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/Casks/firefoxdeveloperedition.rb
class Firefoxdeveloperedition < Cask
version '35.0a2'
sha256 '9d5d504229aa30c96f528713df098cb6436df33fdb329243ccbb0a68b5cba4d5'
url "https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-aurora/firefox-#{version}.en-US.mac.dmg"
homepage 'ht... | class Firefoxdeveloperedition < Cask
version '35.0a2'
sha256 'f4fad137c894c0a1824195717a1252757e1fbb65192d4bb8ec8fc77083edb175'
url "https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-aurora/firefox-#{version}.en-US.mac.dmg"
homepage 'https://www.mozilla.org/en-US/firefox/developer/'
lice... | <|file_sep|>original/Casks/firefoxdeveloperedition.rb
class Firefoxdeveloperedition < Cask
version '35.0a2'
sha256 '9d5d504229aa30c96f528713df098cb6436df33fdb329243ccbb0a68b5cba4d5'
url "https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-aurora/firefox-#{version}.en-US.mac.dmg"
homepage 'ht... | 764faf8a7e12e2c814eb9d5e57746f5068311530 | Casks/firefoxdeveloperedition.rb | Casks/firefoxdeveloperedition.rb | Ruby |
<|file_sep|>test/socket-api.test.js.diff
original:
updated:
var Deferred = require('jsdeferred').Deferred;
<|file_sep|>test/socket-api.test.js.diff
original:
test('front to back', function() {
updated:
test('front to back', function(done) {
<|file_sep|>test/socket-api.test.js.diff
original:
.takes('sea... | .takes('search', { requestMessage: true });
var application = express();
server = utils.setupServer(application);
socketAdaptor.registerHandlers(application, server, {
connection: connection
});
var clientSocket = client.connect('http://localhost:' + utils.testServerPort);
D... | <|file_sep|>test/socket-api.test.js.diff
original:
updated:
var Deferred = require('jsdeferred').Deferred;
<|file_sep|>test/socket-api.test.js.diff
original:
test('front to back', function() {
updated:
test('front to back', function(done) {
<|file_sep|>test/socket-api.test.js.diff
original:
.takes('sea... | bbcf963452878789fdef00e5449d4a08779a1a9d | test/socket-api.test.js | test/socket-api.test.js | JavaScript |
<|file_sep|>original/app/controllers/pages_controller.rb
class PagesController < ApplicationController
skip_authorization_check
skip_before_action :authenticate_user!
# Preview html email template
def email
tpl = (params[:layout] || 'hero').to_sym
tpl = :hero unless [:email, :hero, :simple].include? tp... | class PagesController < ApplicationController
skip_authorization_check
skip_before_action :authenticate_user!
# Preview html email template
def email
tpl = (params[:layout] || 'hero').to_sym
tpl = :hero unless [:email, :hero, :simple].include? tpl
file = 'user_mailer/welcome_email'
@user = User... | <|file_sep|>original/app/controllers/pages_controller.rb
class PagesController < ApplicationController
skip_authorization_check
skip_before_action :authenticate_user!
# Preview html email template
def email
tpl = (params[:layout] || 'hero').to_sym
tpl = :hero unless [:email, :hero, :simple].include? tp... | fbd88f8f413df65c889a5b648b6437a6ea763193 | app/controllers/pages_controller.rb | app/controllers/pages_controller.rb | Ruby |
<|file_sep|>original/web/static/js/reducers/idea.js
const idea = (state = [], action) => {
switch (action.type) {
case "SET_IDEAS":
return action.ideas
case "ADD_IDEA":
return [...state, action.idea]
case "UPDATE_IDEA" :
return state.map(idea => {
if (idea.id == action.ideaId) {
... | const idea = (state = [], action) => {
switch (action.type) {
case "SET_IDEAS":
return action.ideas
case "ADD_IDEA":
return [...state, action.idea]
case "UPDATE_IDEA" :
return state.map(idea => {
return (idea.id === action.ideaId) ? Object.assign({}, idea, action.newAttributes) :... | <|file_sep|>original/web/static/js/reducers/idea.js
const idea = (state = [], action) => {
switch (action.type) {
case "SET_IDEAS":
return action.ideas
case "ADD_IDEA":
return [...state, action.idea]
case "UPDATE_IDEA" :
return state.map(idea => {
if (idea.id == action.ideaId) {
... | 87999a2483958d6a18d8bb3fe7127f5e5efb2b67 | web/static/js/reducers/idea.js | web/static/js/reducers/idea.js | JavaScript |
<|file_sep|>original/app/views/import_records/index.html.erb
<% @import_records.each do |record| %>
<% if record.completed? %>
<div>Completed in <%= distance_of_time_in_words(record.time_to_complete) %>.</div>
<% else %>
<div>Process did not complete.</div>
<% end %>
<% end %>
<|file_sep|>current/app/view... | <% @import_records.each do |record| %>
<div style="border: 1px solid #eee; padding: 15px; margin: 15px;">
<div style="margin-bottom: 15px; border-bottom: 1px solid #eee; font-size: 18px;">
<%= record.created_at.strftime("%m/%d/%Y") %>
</div>
<% if record.completed? %>
<div>
Completed i... | <|file_sep|>original/app/views/import_records/index.html.erb
<% @import_records.each do |record| %>
<% if record.completed? %>
<div>Completed in <%= distance_of_time_in_words(record.time_to_complete) %>.</div>
<% else %>
<div>Process did not complete.</div>
<% end %>
<% end %>
<|file_sep|>current/app/view... | 1e2598f148fb9dd0cd0c869c23a2969236be4f61 | app/views/import_records/index.html.erb | app/views/import_records/index.html.erb | HTML+ERB |
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1
- 2.2
- 2.3
- jruby
- rbx-2
gemfile:
- Gemfile
before_install:
- gem install bundler
script: 'bundle exec rake'
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1
- 2.2
- 2.3
- jruby
- rb... | language: ruby
sudo: false
rvm:
- 1.9.3
- 2.0.0
- 2.1
- 2.2
- 2.3
- jruby
- rbx-2
gemfile:
- Gemfile
before_install:
- gem install bundler
script: 'bundle exec rake' | <|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1
- 2.2
- 2.3
- jruby
- rbx-2
gemfile:
- Gemfile
before_install:
- gem install bundler
script: 'bundle exec rake'
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1
- 2.2
- 2.3
- jruby
- rb... | 374381da85f871e4f5821d646a78b10b0b131fbc | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/README.md
# extensive
Tiny javascript library for extending objects Backbone-style.
## Installation
`npm install extensive`
## Usage
```javascript
const extend = require('extensive');
const Animal = extend(function(name) {
this.name = name;
}, {
speak: function() {
console.log... | # extensive
[](https://travis-ci.org/brebory/extensive)
Tiny javascript library for extending objects Backbone-style.
## Installation
`npm install extensive`
## Usage
```javascript
const extend = require('extensive');
const Animal = extend(functi... | <|file_sep|>original/README.md
# extensive
Tiny javascript library for extending objects Backbone-style.
## Installation
`npm install extensive`
## Usage
```javascript
const extend = require('extensive');
const Animal = extend(function(name) {
this.name = name;
}, {
speak: function() {
console.log... | af546ab53ba9adc9526bac8ea6601fd3f33f372d | README.md | README.md | Markdown |
<|file_sep|>original/aggregator/aggregator.coffee
collection = db.collection 'events'
connection = amqp.createConnection url: process.env.AMQP_URL
connection.on 'ready', ->
connection.queue process.env.AMQP_QUEUE_NAME, { passive: true }, (queue) ->
queue.subscribe (msg) ->
event = JSON.parse m... |
collection = db.collection 'events'
connection = amqp.createConnection url: process.env.AMQP_URL
connection.on 'ready', ->
connection.queue process.env.AMQP_QUEUE_NAME, { passive: true }, (queue) ->
queue.subscribe (msg) ->
event = JSON.parse msg.data.toString('utf-8')
minified_event ... | <|file_sep|>original/aggregator/aggregator.coffee
collection = db.collection 'events'
connection = amqp.createConnection url: process.env.AMQP_URL
connection.on 'ready', ->
connection.queue process.env.AMQP_QUEUE_NAME, { passive: true }, (queue) ->
queue.subscribe (msg) ->
event = JSON.parse m... | 6a0e67b2706a1086b7773d03e658100ae268c817 | aggregator/aggregator.coffee | aggregator/aggregator.coffee | CoffeeScript |
<|file_sep|>original/docs/cleanup_scripts/fix_crosswiki_revisions.rb
<|file_sep|>current/docs/cleanup_scripts/fix_crosswiki_revisions.rb
<|file_sep|>updated/docs/cleanup_scripts/fix_crosswiki_revisions.rb | course = Course.find(18956)
course.revisions.includes(:article).each do |rev|
next if rev.wiki_id == rev.article.wiki_id
correct_article = Article.find_by(mw_page_id: rev.mw_page_id, wiki_id: rev.wiki_id)
if correct_article
puts "fixing rev: #{rev.id}"
rev.update(article: correct_article)
else
puts... | <|file_sep|>original/docs/cleanup_scripts/fix_crosswiki_revisions.rb
<|file_sep|>current/docs/cleanup_scripts/fix_crosswiki_revisions.rb
<|file_sep|>updated/docs/cleanup_scripts/fix_crosswiki_revisions.rb
course = Course.find(18956)
course.revisions.includes(:article).each do |rev|
next if rev.wiki_id == rev.artic... | 2d1b921df97a0f074e0d9a7c34d23f65b91ed015 | docs/cleanup_scripts/fix_crosswiki_revisions.rb | docs/cleanup_scripts/fix_crosswiki_revisions.rb | Ruby |
<|file_sep|>original/tasks/symlink.yml
---
# Performs symlink exchange
- name: ANSISTRANO | Change softlink to new release
file:
state: link
path: "{{ ansistrano_deploy_to }}/{{ ansistrano_current_dir }}"
src: "./{{ ansistrano_version_dir }}/{{ ansistrano_release_version }}"
<|file_sep|>current/tasks/syml... | ---
# Migration check from rsync deployment
- stat:
path: "{{ ansistrano_deploy_to }}/{{ ansistrano_current_dir }}"
register: stat_current_dir
- name: ANSISTRANO | Remove current folder if it's a directory
file:
state: absent
path: "{{ ansistrano_deploy_to }}/{{ ansistrano_current_dir }}"
when: stat... | <|file_sep|>original/tasks/symlink.yml
---
# Performs symlink exchange
- name: ANSISTRANO | Change softlink to new release
file:
state: link
path: "{{ ansistrano_deploy_to }}/{{ ansistrano_current_dir }}"
src: "./{{ ansistrano_version_dir }}/{{ ansistrano_release_version }}"
<|file_sep|>current/tasks/syml... | cac2815c8bd210e4383cfea1de2d3d7bf5308257 | tasks/symlink.yml | tasks/symlink.yml | YAML |
<|file_sep|>grip/github_renderer.py.diff
original:
updated:
headers = {'content-type': 'application/json'}
<|file_sep|>grip/github_renderer.py.diff
original:
headers = {'content-type': 'text/plain'}
updated:
headers = {'content-type': 'text/x-markdown'}
<|file_sep|>original/grip/github_renderer.py... | if context:
data['context'] = context
data = json.dumps(data)
headers = {'content-type': 'application/json'}
else:
url = 'https://api.github.com/markdown/raw'
data = text
headers = {'content-type': 'text/x-markdown'}
auth = (username, password) if use... | <|file_sep|>grip/github_renderer.py.diff
original:
updated:
headers = {'content-type': 'application/json'}
<|file_sep|>grip/github_renderer.py.diff
original:
headers = {'content-type': 'text/plain'}
updated:
headers = {'content-type': 'text/x-markdown'}
<|file_sep|>original/grip/github_renderer.py... | 587abec7ff5b90c03885e164d9b6b62a1fb41f76 | grip/github_renderer.py | grip/github_renderer.py | Python |
<|file_sep|>pkgs/os-specific/linux/pax-utils/default.nix.diff
original:
version = "0.8.1";
updated:
version = "0.9.1";
<|file_sep|>original/pkgs/os-specific/linux/pax-utils/default.nix
{ fetchurl, stdenv }:
stdenv.mkDerivation rec {
name = "pax-utils-${version}";
version = "0.8.1";
src = fetchurl {
url ... | { fetchurl, stdenv }:
stdenv.mkDerivation rec {
name = "pax-utils-${version}";
version = "0.9.1";
src = fetchurl {
url = "http://dev.gentoo.org/~vapier/dist/${name}.tar.xz";
sha256 = "034b365il58bd01ld8r5493x7qkxbxzavmgwm916r0rgjpvclg34";
};
makeFlags = [
"DESTDIR=$(out)"
"PREFIX=$(out)"
... | <|file_sep|>pkgs/os-specific/linux/pax-utils/default.nix.diff
original:
version = "0.8.1";
updated:
version = "0.9.1";
<|file_sep|>original/pkgs/os-specific/linux/pax-utils/default.nix
{ fetchurl, stdenv }:
stdenv.mkDerivation rec {
name = "pax-utils-${version}";
version = "0.8.1";
src = fetchurl {
url ... | f59afe399409ffb3b3a42a6567107dacdb7d756b | pkgs/os-specific/linux/pax-utils/default.nix | pkgs/os-specific/linux/pax-utils/default.nix | Nix |
<|file_sep|>original/web/index.php
const ROOT_PATH = __DIR__;
require_once __DIR__ . '/../app/bootstrap.php';
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
$app = new Silex\Application();
$app->post('/', function (Request $request) use ($app, $notificationHandler) {
... | const ROOT_PATH = __DIR__;
require_once __DIR__ . '/../app/bootstrap.php';
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
$app = new Silex\Application();
$app->post('/', function (Request $request) use ($app, $notificationHandler) {
$notificationHandler->handleHipay... | <|file_sep|>original/web/index.php
const ROOT_PATH = __DIR__;
require_once __DIR__ . '/../app/bootstrap.php';
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
$app = new Silex\Application();
$app->post('/', function (Request $request) use ($app, $notificationHandler) {
... | 6141a9ebe69fd535306edda584ea2c176bf10ca5 | web/index.php | web/index.php | PHP |
<|file_sep|>original/spec/lib/zendesk_apps_tools/api_connection_spec.rb
<|file_sep|>current/spec/lib/zendesk_apps_tools/api_connection_spec.rb
<|file_sep|>updated/spec/lib/zendesk_apps_tools/api_connection_spec.rb | require 'spec_helper'
require 'api_connection'
require 'common'
describe ZendeskAppsTools::APIConnection do
let(:subdomain_validation_pattern) { ZendeskAppsTools::APIConnection::SUBDOMAIN_VALIDATION_PATTERN }
let(:url_validation_pattern) { ZendeskAppsTools::APIConnection::ZENDESK_URL_VALIDATION_PATTERN }
l... | <|file_sep|>original/spec/lib/zendesk_apps_tools/api_connection_spec.rb
<|file_sep|>current/spec/lib/zendesk_apps_tools/api_connection_spec.rb
<|file_sep|>updated/spec/lib/zendesk_apps_tools/api_connection_spec.rb
require 'spec_helper'
require 'api_connection'
require 'common'
describe ZendeskAppsTools::APIConnectio... | 57857c691706ba7fc867e0c7560a660790404f98 | spec/lib/zendesk_apps_tools/api_connection_spec.rb | spec/lib/zendesk_apps_tools/api_connection_spec.rb | Ruby |
<|file_sep|>app/templates/views/organisations/organisation/users/invite-org-user.html.diff
original:
<div class="grid-row">
{% call form_wrapper(class="column-three-quarters") %}
{{ textbox(form.email_address, width='1-1', safe_error_message=True) }}
updated:
{% call form_wrapper() %}
{{ textbox(form.e... | {{ page_header(
"Invite a team member",
back_link=url_for('.manage_org_users', org_id=current_org.id)
) }}
{% call form_wrapper() %}
{{ textbox(form.email_address, width='1-1', safe_error_message=True) }}
<div class="bottom-gutter">
<p class="form-label">
{{ current_org.name }} team mem... | <|file_sep|>app/templates/views/organisations/organisation/users/invite-org-user.html.diff
original:
<div class="grid-row">
{% call form_wrapper(class="column-three-quarters") %}
{{ textbox(form.email_address, width='1-1', safe_error_message=True) }}
updated:
{% call form_wrapper() %}
{{ textbox(form.e... | 873272160c675be330e0384c1fb966170a236505 | app/templates/views/organisations/organisation/users/invite-org-user.html | app/templates/views/organisations/organisation/users/invite-org-user.html | HTML |
<|file_sep|>original/app/assets/javascripts/discourse/templates/components/small-action.hbs
<div class='topic-avatar'>{{fa-icon icon}}</div>
<div class='small-action-desc'>
{{#if post}}
<button {{action "edit"}} title="{{i18n "post.controls.edit"}}">{{fa-icon "pencil"}}</button>
<a href={{post.usernameUrl}} d... | <div class='topic-avatar'>{{fa-icon icon}}</div>
<div class='small-action-desc'>
{{#if post}}
{{#if post.can_edit}}
<button {{action "edit"}} title="{{i18n "post.controls.edit"}}">{{fa-icon "pencil"}}</button>
{{/if}}
<a href={{post.usernameUrl}} data-user-card={{post.username}}>
{{avatar post... | <|file_sep|>original/app/assets/javascripts/discourse/templates/components/small-action.hbs
<div class='topic-avatar'>{{fa-icon icon}}</div>
<div class='small-action-desc'>
{{#if post}}
<button {{action "edit"}} title="{{i18n "post.controls.edit"}}">{{fa-icon "pencil"}}</button>
<a href={{post.usernameUrl}} d... | 46ba4ba42669ec7a94ced271b76ed9ef187bd564 | app/assets/javascripts/discourse/templates/components/small-action.hbs | app/assets/javascripts/discourse/templates/components/small-action.hbs | Handlebars |
<|file_sep|>original/src/scripts/achievement_unlocked.coffee
# Configuration:
# None
#
# Commands:
# hubot achievement get <achievement> [achiever's gravatar email] - life goals are in reach
#
# Author:
# Chris
module.exports = (robot) ->
robot.hear /achievement (get|unlock(ed)?) (.+?)(\s*[^@\s]+@[^@\s]+)?\s*$... | #
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot achievement get <achievement> [achiever's gravatar email] - life goals are in reach
#
# Author:
# Chris
module.exports = (robot) ->
robot.hear /achievement (get|unlock(ed)?) (.+?)(\s*[^@\s]+@[^@\s]+)?\s*$/i, (msg) ->
caption = msg.m... | <|file_sep|>original/src/scripts/achievement_unlocked.coffee
# Configuration:
# None
#
# Commands:
# hubot achievement get <achievement> [achiever's gravatar email] - life goals are in reach
#
# Author:
# Chris
module.exports = (robot) ->
robot.hear /achievement (get|unlock(ed)?) (.+?)(\s*[^@\s]+@[^@\s]+)?\s*$... | c5bc8efa9bffa10e5bd9c036cccb98ecd3e003bd | src/scripts/achievement_unlocked.coffee | src/scripts/achievement_unlocked.coffee | CoffeeScript |
<|file_sep|>client/router.js.diff
original:
let id = '';
updated:
let id;
<|file_sep|>original/client/router.js
Router.route('/meetingseries/:_id', function () {
var meetingSeriesID = this.params._id;
this.render('meetingSeriesDetails', {data: meetingSeriesID});
});
Router.route('/minutesadd/:_id', fun... |
Router.route('/minutesadd/:_id', function () {
let meetingSeriesID = this.params._id;
ms = new MeetingSeries(meetingSeriesID);
let id;
ms.addNewMinutes(newMinutesID => {
id = newMinutesID;
});
// callback should have been called by now
if (id) {
this.redirect('/minutesedit... | <|file_sep|>client/router.js.diff
original:
let id = '';
updated:
let id;
<|file_sep|>original/client/router.js
Router.route('/meetingseries/:_id', function () {
var meetingSeriesID = this.params._id;
this.render('meetingSeriesDetails', {data: meetingSeriesID});
});
Router.route('/minutesadd/:_id', fun... | 7f53b117e55cb03f2d1befd04bff1ff4dbbbf2b8 | client/router.js | client/router.js | JavaScript |
<|file_sep|>original/apps/Empty/main.c
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIREC... | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, O... | <|file_sep|>original/apps/Empty/main.c
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIREC... | 9ff859ce71b1df689af6df4434ceddd7c107e8b1 | apps/Empty/main.c | apps/Empty/main.c | C |
<|file_sep|>original/vscode/packages.txt
HookyQR.beautify
SirTobi.pegjs-language
XadillaX.viml
caleb531.sca-for-vscode
dbaeumer.vscode-eslint
idleberg.applescript
jedmao.tabsanity
jeremyljackson.vs-docblock
jock.svg
kevinglasson.cornflakes-linter
luggage66.AWK
mattn.Lisp
ms-python.python
ms-python.vscode-pylance
ms-vsc... | SirTobi.pegjs-language
XadillaX.viml
caleb531.sca-for-vscode
dbaeumer.vscode-eslint
idleberg.applescript
jedmao.tabsanity
jeremyljackson.vs-docblock
jock.svg
kevinglasson.cornflakes-linter
luggage66.AWK
mattn.Lisp
ms-python.python
ms-python.vscode-pylance
ms-vscode-remote.remote-ssh-edit
patbenatar.advanced-new-file
re... | <|file_sep|>original/vscode/packages.txt
HookyQR.beautify
SirTobi.pegjs-language
XadillaX.viml
caleb531.sca-for-vscode
dbaeumer.vscode-eslint
idleberg.applescript
jedmao.tabsanity
jeremyljackson.vs-docblock
jock.svg
kevinglasson.cornflakes-linter
luggage66.AWK
mattn.Lisp
ms-python.python
ms-python.vscode-pylance
ms-vsc... | 14ecb10420fe26cdfdb970f2d1582b30c7b27c41 | vscode/packages.txt | vscode/packages.txt | Text |
<|file_sep|>flocker/common/__init__.py.diff
original:
'get_all_ips',
updated:
'get_all_ips', 'ipaddress_from_string',
<|file_sep|>original/flocker/common/__init__.py
"""
Shared flocker components.
"""
__all__ = [
'INode', 'FakeNode', 'ProcessNode', 'gather_deferreds',
'auto_threaded', 'auto_openstack_l... | """
Shared flocker components.
"""
__all__ = [
'INode', 'FakeNode', 'ProcessNode', 'gather_deferreds',
'auto_threaded', 'auto_openstack_logging',
'get_all_ips', 'ipaddress_from_string',
]
import platform
from ._ipc import INode, FakeNode, ProcessNode
from ._defer import gather_deferreds
from ._thread imp... | <|file_sep|>flocker/common/__init__.py.diff
original:
'get_all_ips',
updated:
'get_all_ips', 'ipaddress_from_string',
<|file_sep|>original/flocker/common/__init__.py
"""
Shared flocker components.
"""
__all__ = [
'INode', 'FakeNode', 'ProcessNode', 'gather_deferreds',
'auto_threaded', 'auto_openstack_l... | f0166ba101c131b5331e141128fc65e71c753015 | flocker/common/__init__.py | flocker/common/__init__.py | Python |
<|file_sep|>original/README.md
git clone git@github.com:tancredi/draw.git
cd draw
npm install
## Build
Build the app before running it
npm run build
## Run
npm start
Open your browser at [http://localhost:8000](http://localhost:8000)
## Develop
Run the watch script when developing
npm r... | git clone git@github.com:tancredi/draw.git
cd draw
npm install
## Build
Build the app before running it
npm run build
## Run
npm start
Open your browser at [http://localhost:9000](http://localhost:9000)
## Develop
Run the watch script when developing
npm run watch | <|file_sep|>original/README.md
git clone git@github.com:tancredi/draw.git
cd draw
npm install
## Build
Build the app before running it
npm run build
## Run
npm start
Open your browser at [http://localhost:8000](http://localhost:8000)
## Develop
Run the watch script when developing
npm r... | 3ee843a68d5563e9e6f554dbe88cf8c91e411cc3 | README.md | README.md | Markdown |
<|file_sep|>original/lib/cxml.rb
require 'cxml/errors'
require 'time'
require 'nokogiri'
module CXML
autoload :Protocol, 'cxml/protocol'
autoload :Document, 'cxml/document'
autoload :Header, 'cxml/header'
autoload :Credential, 'cxml/credential'
autoload :Cr... | require 'cxml/errors'
require 'time'
require 'nokogiri'
module CXML
autoload :Protocol, 'cxml/protocol'
autoload :Document, 'cxml/document'
autoload :Header, 'cxml/header'
autoload :Credential, 'cxml/credential'
autoload :Credent... | <|file_sep|>original/lib/cxml.rb
require 'cxml/errors'
require 'time'
require 'nokogiri'
module CXML
autoload :Protocol, 'cxml/protocol'
autoload :Document, 'cxml/document'
autoload :Header, 'cxml/header'
autoload :Credential, 'cxml/credential'
autoload :Cr... | 6915bc9e53e146dcaf271126afffdcdb086bea04 | lib/cxml.rb | lib/cxml.rb | Ruby |
<|file_sep|>builder/test-integration/spec/hypriotos-image/config_txt_spec.rb.diff
original:
updated:
its(:content) { should match /^enable_uart=1/ }
<|file_sep|>original/builder/test-integration/spec/hypriotos-image/config_txt_spec.rb
describe file('/boot/config.txt') do
it { should be_file }
it { should be_mode... | describe file('/boot/config.txt') do
it { should be_file }
it { should be_mode 755 }
it { should be_owned_by 'root' }
its(:content) { should match /^enable_uart=1/ }
its(:content) { should match /^hdmi_force_hotplug=1/ }
its(:content) { should match /^start_x=0/ }
its(:content) { should match /^gpu_mem=16... | <|file_sep|>builder/test-integration/spec/hypriotos-image/config_txt_spec.rb.diff
original:
updated:
its(:content) { should match /^enable_uart=1/ }
<|file_sep|>original/builder/test-integration/spec/hypriotos-image/config_txt_spec.rb
describe file('/boot/config.txt') do
it { should be_file }
it { should be_mode... | 6043e750f01d0dabf9e1114d9d7a143a4a3163d0 | builder/test-integration/spec/hypriotos-image/config_txt_spec.rb | builder/test-integration/spec/hypriotos-image/config_txt_spec.rb | Ruby |
<|file_sep|>ARAnalyticalProvider.h.diff
original:
updated:
/// Submit a string to the local persisted logging system
<|file_sep|>original/ARAnalyticalProvider.h
/// Monitor Navigation changes as page view
- (void)monitorNavigationViewController:(UINavigationController *)controller;
/// Submit an event with a time in... |
/// Submit an event with a time interval
- (void)logTimingEvent:(NSString *)event withInterval:(NSNumber *)interval;
/// Submit an event with a time interval and extra properties
/// @warning the properites must not contain the key string `length`.
- (void)logTimingEvent:(NSString *)event withInterval:(NSNumber *)int... | <|file_sep|>ARAnalyticalProvider.h.diff
original:
updated:
/// Submit a string to the local persisted logging system
<|file_sep|>original/ARAnalyticalProvider.h
/// Monitor Navigation changes as page view
- (void)monitorNavigationViewController:(UINavigationController *)controller;
/// Submit an event with a time in... | 4db6dd114fde94aac12d4a2f01ca23032cc8cc61 | ARAnalyticalProvider.h | ARAnalyticalProvider.h | C |
<|file_sep|>bolt-arduino.ino.diff
original:
}
updated:
<|file_sep|>bolt-arduino.ino.diff
original:
void loop() {
updated:
<|file_sep|>original/bolt-arduino.ino
//Generate new random seed
randomSeed(analogRead(0));
//Setup
button::setup();
led::setup();
flasher::setup();
timer::setup();
logger::log(l... | led::setup();
flasher::setup();
timer::setup();
logger::log(logger::TYPE_INFO, "main", "Setup done");
screen::display("READY");
//Wait for center button to be pressed
led::setState(0, led::STATE_FLASHING);
button::wait(0);
led::setState(0, led::STATE_OFF);
//Start game
game::start();
helper::... | <|file_sep|>bolt-arduino.ino.diff
original:
}
updated:
<|file_sep|>bolt-arduino.ino.diff
original:
void loop() {
updated:
<|file_sep|>original/bolt-arduino.ino
//Generate new random seed
randomSeed(analogRead(0));
//Setup
button::setup();
led::setup();
flasher::setup();
timer::setup();
logger::log(l... | 3fac52a6a53b88b1e3e69e666c0ae54c955ca743 | bolt-arduino.ino | bolt-arduino.ino | Arduino |
<|file_sep|>kerze.py.diff
original:
updated:
SHAPE = "turtle"
<|file_sep|>kerze.py.diff
original:
updated:
shape(SHAPE)
<|file_sep|>original/kerze.py
left(90)
forward(GROESSE*100)
end_fill()
pu()
if brennt:
zeichneFlamme()
def zeichneFlamme():
left(90)
fd(GROESSE*430)
pd()
... | left(90)
forward(GROESSE*100)
end_fill()
pu()
if brennt:
zeichneFlamme()
def zeichneFlamme():
left(90)
fd(GROESSE*430)
pd()
color("yellow")
dot(GROESSE*60)
color("black")
back(GROESSE*30)
pu()
home()
##zeichneKerze(brennt=False) # testweise erstmal nur n... | <|file_sep|>kerze.py.diff
original:
updated:
SHAPE = "turtle"
<|file_sep|>kerze.py.diff
original:
updated:
shape(SHAPE)
<|file_sep|>original/kerze.py
left(90)
forward(GROESSE*100)
end_fill()
pu()
if brennt:
zeichneFlamme()
def zeichneFlamme():
left(90)
fd(GROESSE*430)
pd()
... | b7f153a383dad71f272d8ef211deeb1c1a149f51 | kerze.py | kerze.py | Python |
<|file_sep|>original/app/views/user_passwords/edit.html.haml
= form_for @spree_user, :as => :spree_user, :url => spree.spree_user_password_path, :method => :put do |f|
= render :partial => 'spree/shared/error_messages', :locals => { :target => @spree_user }
%fieldset
.row
.small-12.medium-6.large-4.column... | = form_for @spree_user, :as => :spree_user, :url => spree.spree_user_password_path, :method => :put do |f|
.row
.small-12.medium-10.large-6.columns.medium-centered.large-centered
= render :partial => 'spree/shared/error_messages', :locals => { :target => @spree_user }
%fieldset
.row
.small-12.me... | <|file_sep|>original/app/views/user_passwords/edit.html.haml
= form_for @spree_user, :as => :spree_user, :url => spree.spree_user_password_path, :method => :put do |f|
= render :partial => 'spree/shared/error_messages', :locals => { :target => @spree_user }
%fieldset
.row
.small-12.medium-6.large-4.column... | 97fd7e3d7807855fe4fd111c62ea30f10c7427a6 | app/views/user_passwords/edit.html.haml | app/views/user_passwords/edit.html.haml | Haml |
<|file_sep|>ember_flash_message_rails.gemspec.diff
original:
spec.authors = ["Bobby Grayson"]
updated:
spec.authors = ["Bobby Grayson", "Ryan T"]
<|file_sep|>ember_flash_message_rails.gemspec.diff
original:
spec.summary = %q{TODO: Write a short summary. Required.}
spec.description = %q{TODO:... | spec.version = EmberFlashMessageRails::VERSION
spec.authors = ["Bobby Grayson", "Ryan T"]
spec.email = ["bobbygrayson@gmail.com"]
spec.summary = %q{A plug and play gem for ember flash messages on route transition}
spec.description = %q{A simple means to have customized messages for... | <|file_sep|>ember_flash_message_rails.gemspec.diff
original:
spec.authors = ["Bobby Grayson"]
updated:
spec.authors = ["Bobby Grayson", "Ryan T"]
<|file_sep|>ember_flash_message_rails.gemspec.diff
original:
spec.summary = %q{TODO: Write a short summary. Required.}
spec.description = %q{TODO:... | c4559ea759b39e18b572fe5e1b7c2e67a4188451 | ember_flash_message_rails.gemspec | ember_flash_message_rails.gemspec | Ruby |
<|file_sep|>original/src/test/java/si/mazi/rescu/RestProxyFactoryImplTest.java
<|file_sep|>current/src/test/java/si/mazi/rescu/RestProxyFactoryImplTest.java
<|file_sep|>updated/src/test/java/si/mazi/rescu/RestProxyFactoryImplTest.java | package si.mazi.rescu;
import org.testng.annotations.Test;
import static org.assertj.core.api.Assertions.assertThat;
public class RestProxyFactoryImplTest {
@Test
public void testCreateProxy() {
IRestProxyFactory f = new RestProxyFactoryImpl();
ExampleService proxy = f.createProxy(ExampleSer... | <|file_sep|>original/src/test/java/si/mazi/rescu/RestProxyFactoryImplTest.java
<|file_sep|>current/src/test/java/si/mazi/rescu/RestProxyFactoryImplTest.java
<|file_sep|>updated/src/test/java/si/mazi/rescu/RestProxyFactoryImplTest.java
package si.mazi.rescu;
import org.testng.annotations.Test;
import static org.asse... | 2fdbf7fb2a7a9a0dcc2df35bfd6e6da340187cb0 | src/test/java/si/mazi/rescu/RestProxyFactoryImplTest.java | src/test/java/si/mazi/rescu/RestProxyFactoryImplTest.java | Java |
<|file_sep|>original/doc-requirements.txt
sphinx==1.4.4
astor==0.5
git+https://github.com/simphony/traitlet-documenter.git@v0.1.0#egg=traitlet_documenter
<|file_sep|>current/doc-requirements.txt
sphinx==1.4.4
astor==0.5
git+https://github.com/simphony/traitlet-documenter.git@v0.1.0#egg=traitlet_documenter
<|file_sep|>u... | sphinx==1.4.4
git+https://github.com/berkerpeksag/astor.git#egg=astor
git+https://github.com/simphony/traitlet-documenter.git@v0.1.0#egg=traitlet_documenter | <|file_sep|>original/doc-requirements.txt
sphinx==1.4.4
astor==0.5
git+https://github.com/simphony/traitlet-documenter.git@v0.1.0#egg=traitlet_documenter
<|file_sep|>current/doc-requirements.txt
sphinx==1.4.4
astor==0.5
git+https://github.com/simphony/traitlet-documenter.git@v0.1.0#egg=traitlet_documenter
<|file_sep|>u... | 727a1edfcf69cc207773bcd2a4ada5e2673b8af1 | doc-requirements.txt | doc-requirements.txt | Text |
<|file_sep|>original/src/CommonAssemblyInfo.cs
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Yevgeniy Shunevych")]
[assembly: AssemblyProduct("Atata")]
[assembly: AssemblyCopyright("Copyright © Yevgeniy Shunevych 2016")]
[assembly: AssemblyCulture("")]
[assembly: ComVisibl... | using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Yevgeniy Shunevych")]
[assembly: AssemblyProduct("Atata")]
[assembly: AssemblyCopyright("Copyright © Yevgeniy Shunevych 2016")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("0.11.0.0"... | <|file_sep|>original/src/CommonAssemblyInfo.cs
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyCompany("Yevgeniy Shunevych")]
[assembly: AssemblyProduct("Atata")]
[assembly: AssemblyCopyright("Copyright © Yevgeniy Shunevych 2016")]
[assembly: AssemblyCulture("")]
[assembly: ComVisibl... | 90ef72e50defd269fdf4373f6eaf95c6b451b30a | src/CommonAssemblyInfo.cs | src/CommonAssemblyInfo.cs | C# |
<|file_sep|>test/index.js.diff
original:
updated:
var Linter = require('../')
<|file_sep|>test/index.js.diff
original:
var Linter = require('../')
updated:
var path = require('path')
var fs = require('fs')
<|file_sep|>original/test/index.js
assert.equals(typeof Linter, 'function', 'require returns function')
asser... |
test('passed errors up from xml2js', function (assert) {
var linter = Linter()
linter.on('error', function (err) {
assert.ok(err, 'error event fired')
assert.end()
})
linter.lint('<test')
})
test('emits notice', function (assert) {
var linter = Linter()
linter.on('notice', function (msg) {
ass... | <|file_sep|>test/index.js.diff
original:
updated:
var Linter = require('../')
<|file_sep|>test/index.js.diff
original:
var Linter = require('../')
updated:
var path = require('path')
var fs = require('fs')
<|file_sep|>original/test/index.js
assert.equals(typeof Linter, 'function', 'require returns function')
asser... | 022ab26d45efb8fe951e81e2fec0935f0d795207 | test/index.js | test/index.js | JavaScript |
<|file_sep|>original/client/js/google_analytics.js
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;// noinspection CommaExpressionJS
i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();// noinspection CommaExpressionJS
a=s.createElement(o),
m=s.getElementsByTagName(... | (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;// noinspection CommaExpressionJS
i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();// noinspection CommaExpressionJS
a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a... | <|file_sep|>original/client/js/google_analytics.js
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;// noinspection CommaExpressionJS
i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();// noinspection CommaExpressionJS
a=s.createElement(o),
m=s.getElementsByTagName(... | 8e0a36fc602135fd1ec6318c8cc7ee0f7576499d | client/js/google_analytics.js | client/js/google_analytics.js | JavaScript |
<|file_sep|>test/spec/NotifierSpec.js.diff
original:
/*global describe, it, expect, TourabuEx, beforeEach */
updated:
/*global describe, it, expect, TourabuEx, beforeEach
<|file_sep|>test/spec/NotifierSpec.js.diff
original:
expect('Notification is shown').toBeTruthy();
updated:
expect(true).toBeTruthy()... | /*global describe, it, expect, TourabuEx, beforeEach
describe('notifier', function () {
'use strict';
var n = TourabuEx.Notifier;
beforeEach(function (done) {
var ps = n.defaultParam();
ps.timeout = 2000;
ps.onClosed = function () {
done();
};
n(ps);
... | <|file_sep|>test/spec/NotifierSpec.js.diff
original:
/*global describe, it, expect, TourabuEx, beforeEach */
updated:
/*global describe, it, expect, TourabuEx, beforeEach
<|file_sep|>test/spec/NotifierSpec.js.diff
original:
expect('Notification is shown').toBeTruthy();
updated:
expect(true).toBeTruthy()... | 8c190b6a4cab04b94ce0646aa20489cbf43d9383 | test/spec/NotifierSpec.js | test/spec/NotifierSpec.js | JavaScript |
<|file_sep|>original/config/initializers/secret_token.rb
# -*- encoding : utf-8 -*-
# Be sure to restart your server when you modify this file.
# Your secret key for verifying the integrity of signed cookies.
# If you change this key, all old signed cookies will become invalid!
# Make sure the secret is at least 30 ch... | # -*- encoding : utf-8 -*-
# Be sure to restart your server when you modify this file.
# Your secret key for verifying the integrity of signed cookies.
# If you change this key, all old signed cookies will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be ... | <|file_sep|>original/config/initializers/secret_token.rb
# -*- encoding : utf-8 -*-
# Be sure to restart your server when you modify this file.
# Your secret key for verifying the integrity of signed cookies.
# If you change this key, all old signed cookies will become invalid!
# Make sure the secret is at least 30 ch... | 524f91b41bb0aa9f8be959d71e60aef71ef0a1e3 | config/initializers/secret_token.rb | config/initializers/secret_token.rb | Ruby |
<|file_sep|>original/src/main/Apha/Saga/Saga.php
protected $associationValues;
/**
* @param Identity $identity
* @param AssociationValues $associationValues
*/
public function __construct(Identity $identity, AssociationValues $associationValues)
{
$this->identity = $identity;
... | protected $associationValues;
/**
* @param Identity $identity
* @param AssociationValues $associationValues
*/
public function __construct(Identity $identity, AssociationValues $associationValues)
{
$this->identity = $identity;
$this->associationValues = $associationValue... | <|file_sep|>original/src/main/Apha/Saga/Saga.php
protected $associationValues;
/**
* @param Identity $identity
* @param AssociationValues $associationValues
*/
public function __construct(Identity $identity, AssociationValues $associationValues)
{
$this->identity = $identity;
... | 81818c0960c44ffca442d20dde415576633568fe | src/main/Apha/Saga/Saga.php | src/main/Apha/Saga/Saga.php | PHP |
<|file_sep|>original/assets/styles/mcw.sass
*
box-sizing: border-box
html
background: #F1F1F1
font-family: 'Droid Sans', Helvetica, Arial, sans-serif
@import components/header
@import components/nav-menu
@import components/container
@import components/sidebar
@import components/post
@import components/responsiv... | *
box-sizing: border-box
html
background: #F1F1F1
font-family: 'Droid Sans', Helvetica, Arial, sans-serif
-webkit-font-smoothing: antialiased
-moz-osx-font-smoothing: grayscale
@import components/header
@import components/nav-menu
@import components/container
@import components/sidebar
@import components/po... | <|file_sep|>original/assets/styles/mcw.sass
*
box-sizing: border-box
html
background: #F1F1F1
font-family: 'Droid Sans', Helvetica, Arial, sans-serif
@import components/header
@import components/nav-menu
@import components/container
@import components/sidebar
@import components/post
@import components/responsiv... | 07a44437562a031ed46f5260782bd35314bb9ff5 | assets/styles/mcw.sass | assets/styles/mcw.sass | Sass |
<|file_sep|>original/scripts/make_fakes.sh
#!/usr/bin/env bash
set -eu
cd "$(dirname "$0")/.."
# build counterfeiter itself
counterfeiter='/tmp/counterfeiter_test'
trap "rm $counterfeiter" EXIT
go build -o $counterfeiter
# counterfeit all the interfaces we can find
egrep --recursive --include '*.go' 'type [^ ]* int... | #!/usr/bin/env bash
set -eu
cd "$(dirname "$0")/.."
# build counterfeiter itself
counterfeiter='/tmp/counterfeiter_test'
trap "rm $counterfeiter" EXIT
go build -o $counterfeiter
# counterfeit all the interfaces we can find
egrep --recursive --include '*.go' 'type [^ ]* interface {' . \
--exclude-dir 'expected... | <|file_sep|>original/scripts/make_fakes.sh
#!/usr/bin/env bash
set -eu
cd "$(dirname "$0")/.."
# build counterfeiter itself
counterfeiter='/tmp/counterfeiter_test'
trap "rm $counterfeiter" EXIT
go build -o $counterfeiter
# counterfeit all the interfaces we can find
egrep --recursive --include '*.go' 'type [^ ]* int... | 6c87ea5c2578778662fa700ee78113da690de122 | scripts/make_fakes.sh | scripts/make_fakes.sh | Shell |
<|file_sep|>cd/src/pipeline-events-handler/etc/execution-emoji.js.diff
original:
const emojis =
'🦊🐸🦉🦄🐙🐳🌵🍀🍁🍄🌍⭐️🔥🌈🍎🥯🌽🥞🥨🍕🌮🍦🎂🍿🏈🛼🏆🎧🎺🎲🚚✈️🚀⛵️⛺️📻💰💎🧲🔭🪣🧸';
updated:
const emojis = [
'🦊',
'🐸',
'🦉',
'🦄',
'🐙',
'🐳',
'🌵',
'🍀',
'🍁',
'🍄',
'🌍',
'⭐️',
'🔥',
'... | '💎',
'🧲',
'🔭',
'🪣',
'🧸',
];
module.exports = {
emoji(executionId) {
// Create a simple hash of the execution ID
const hash = [...executionId].reduce(
(prev, curr) => prev + curr.charCodeAt(0),
0,
);
// Return an emoji based on the hash. This is hopefully significantly
... | <|file_sep|>cd/src/pipeline-events-handler/etc/execution-emoji.js.diff
original:
const emojis =
'🦊🐸🦉🦄🐙🐳🌵🍀🍁🍄🌍⭐️🔥🌈🍎🥯🌽🥞🥨🍕🌮🍦🎂🍿🏈🛼🏆🎧🎺🎲🚚✈️🚀⛵️⛺️📻💰💎🧲🔭🪣🧸';
updated:
const emojis = [
'🦊',
'🐸',
'🦉',
'🦄',
'🐙',
'🐳',
'🌵',
'🍀',
'🍁',
'🍄',
'🌍',
'⭐️',
'🔥',
'... | fc83f0e13b2cc7bfefad70b127875fff00b24ef1 | cd/src/pipeline-events-handler/etc/execution-emoji.js | cd/src/pipeline-events-handler/etc/execution-emoji.js | JavaScript |
<|file_sep|>original/.docker-hub/worker-print-weasy/Dockerfile
FROM python:3.9@sha256:e6654afa815122b13242fc9ff513e2d14b00548ba6eaf4d3b03f2f261d85272d
# install all the dependencies except libcairo2 from jessie, then install libcairo2 from stretch
RUN apt-get -y update \
&& apt-get install -y \
fonts-font-... | FROM python:3.9@sha256:e6654afa815122b13242fc9ff513e2d14b00548ba6eaf4d3b03f2f261d85272d
# install all the dependencies except libcairo2 from jessie, then install libcairo2 from stretch
RUN apt-get -y update \
&& apt-get install -y \
fonts-font-awesome \
libffi-dev \
libgdk-pixbuf2.0-0 \
... | <|file_sep|>original/.docker-hub/worker-print-weasy/Dockerfile
FROM python:3.9@sha256:e6654afa815122b13242fc9ff513e2d14b00548ba6eaf4d3b03f2f261d85272d
# install all the dependencies except libcairo2 from jessie, then install libcairo2 from stretch
RUN apt-get -y update \
&& apt-get install -y \
fonts-font-... | ea97d28abda68b37b24ee2c975fbcfdae32d16ac | .docker-hub/worker-print-weasy/Dockerfile | .docker-hub/worker-print-weasy/Dockerfile | unknown |
<|file_sep|>original/osu.Game/Beatmaps/IBeatSyncProvider.cs
using osu.Framework.Audio.Track;
using osu.Framework.Timing;
using osu.Game.Beatmaps.ControlPoints;
using osu.Game.Graphics.Containers;
namespace osu.Game.Beatmaps
{
/// <summary>
/// Provides various data sources which allow for synchronising visuals... | using osu.Framework.Audio.Track;
using osu.Framework.Timing;
using osu.Game.Beatmaps.ControlPoints;
using osu.Game.Graphics.Containers;
namespace osu.Game.Beatmaps
{
/// <summary>
/// Provides various data sources which allow for synchronising visuals to a known beat.
/// Primarily intended for use with <s... | <|file_sep|>original/osu.Game/Beatmaps/IBeatSyncProvider.cs
using osu.Framework.Audio.Track;
using osu.Framework.Timing;
using osu.Game.Beatmaps.ControlPoints;
using osu.Game.Graphics.Containers;
namespace osu.Game.Beatmaps
{
/// <summary>
/// Provides various data sources which allow for synchronising visuals... | 267bef959fd7049dcf80557196cd211e3f81686f | osu.Game/Beatmaps/IBeatSyncProvider.cs | osu.Game/Beatmaps/IBeatSyncProvider.cs | C# |
<|file_sep|>dwm/xsetroot.sh.diff
original:
updated:
TITLE=`playerctl metadata title`
<|file_sep|>original/dwm/xsetroot.sh
DATETIME=`date +'%a %F %R'`
UPTIME=`uptime | sed 's/.*up\s*//' | sed 's/,\s*[0-9]* user.*//' | sed 's/ / /g'`
VOLUME=`$HOME/dotfiles/i3blocks/volume`
BATTERYSTATE=$( acpi -b | awk '{ split($5,a,":"... | DATETIME=`date +'%a %F %R'`
UPTIME=`uptime | sed 's/.*up\s*//' | sed 's/,\s*[0-9]* user.*//' | sed 's/ / /g'`
VOLUME=`$HOME/dotfiles/i3blocks/volume`
BATTERYSTATE=$( acpi -b | awk '{ split($5,a,":"); print substr($3,0,2), $4, "["a[1]":"a[2]"]" }' | tr -d ',' )
MEMORY=`$HOME/dotfiles/i3blocks/memory | head -2 | tail -1`... | <|file_sep|>dwm/xsetroot.sh.diff
original:
updated:
TITLE=`playerctl metadata title`
<|file_sep|>original/dwm/xsetroot.sh
DATETIME=`date +'%a %F %R'`
UPTIME=`uptime | sed 's/.*up\s*//' | sed 's/,\s*[0-9]* user.*//' | sed 's/ / /g'`
VOLUME=`$HOME/dotfiles/i3blocks/volume`
BATTERYSTATE=$( acpi -b | awk '{ split($5,a,":"... | 7edaaebc465d9404cce76123c33feab166bc0da7 | dwm/xsetroot.sh | dwm/xsetroot.sh | Shell |
<|file_sep|>original/README.md
mozu-java
=========
Java Repository Starting at Version 1.7.10
This is the repository for the Mozu Java SDK. It contains 4 sub-modules:
- mozu-java-core: The core java library. This is the core of the Mozu Java API and is shared between the android library and the Java library.
- mo... | mozu-java
=========
Java Repository Starting at Version 1.7.10
This is the repository for the Mozu Java SDK. It contains 4 sub-directories:
- mozu-java-core: The core java library. This is the core of the Mozu Java API and is shared between the android library and the Java library.
- mozu-java-sdk: This is the li... | <|file_sep|>original/README.md
mozu-java
=========
Java Repository Starting at Version 1.7.10
This is the repository for the Mozu Java SDK. It contains 4 sub-modules:
- mozu-java-core: The core java library. This is the core of the Mozu Java API and is shared between the android library and the Java library.
- mo... | 002665a6d3982821ba6c37500b957f437443b161 | README.md | README.md | Markdown |
<|file_sep|>original/src/nbsp-positions.js
'use strict';
var execall = require('regexp.execall');
module.exports = function (text) {
return execall(/ \w{1,2} [^ ]/g, text).map(function (match) {
return match.index + match[0].length - 2;
});
};
<|file_sep|>current/src/nbsp-positions.js
'use strict';
var exec... | 'use strict';
var execall = require('regexp.execall');
module.exports = function (text) {
return execall(/(^|\s\W*)(\w{1,2})(?= [^ ])/g, text)
.filter(function (match) {
return !/\d/.test(match[1]);
})
.map(function (match) {
return match.index + match[0].length;
});
}; | <|file_sep|>original/src/nbsp-positions.js
'use strict';
var execall = require('regexp.execall');
module.exports = function (text) {
return execall(/ \w{1,2} [^ ]/g, text).map(function (match) {
return match.index + match[0].length - 2;
});
};
<|file_sep|>current/src/nbsp-positions.js
'use strict';
var exec... | 4c5483125fcd12e111cffe1a1cadf67b8777ff7e | src/nbsp-positions.js | src/nbsp-positions.js | JavaScript |
<|file_sep|>scrapi/processing/postgres.py.diff
original:
# import django
updated:
<|file_sep|>scrapi/processing/postgres.py.diff
original:
# django.setup()
updated:
<|file_sep|>original/scrapi/processing/postgres.py
class PostgresProcessor(BaseProcessor):
NAME = 'postgres'
@events.logged(events.PROCESSING, ... | document = self._get_by_source_id(Document, source, docID) or Document(source=source, docID=docID)
document.raw = raw_doc.attributes
document.save()
@events.logged(events.PROCESSING, 'normalized.postgres')
def process_normalized(self, raw_doc, normalized):
source, docID = raw_... | <|file_sep|>scrapi/processing/postgres.py.diff
original:
# import django
updated:
<|file_sep|>scrapi/processing/postgres.py.diff
original:
# django.setup()
updated:
<|file_sep|>original/scrapi/processing/postgres.py
class PostgresProcessor(BaseProcessor):
NAME = 'postgres'
@events.logged(events.PROCESSING, ... | b0de066ebaf81745878c1c4d3adf803445a0cfc5 | scrapi/processing/postgres.py | scrapi/processing/postgres.py | Python |
<|file_sep|>original/folly/experimental/pushmi/CODE_OF_CONDUCT.md
# Code of Conduct
Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the [full text](https://code.facebook.com/pages/876921332402685/open-source-code-of-conduct) so that you can understand what actions w... | # Code of Conduct
Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the [full text](https://code.fb.com/codeofconduct/) so that you can understand what actions will and will not be tolerated. | <|file_sep|>original/folly/experimental/pushmi/CODE_OF_CONDUCT.md
# Code of Conduct
Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the [full text](https://code.facebook.com/pages/876921332402685/open-source-code-of-conduct) so that you can understand what actions w... | 563547497225b74656d233c3df3a36863449d971 | folly/experimental/pushmi/CODE_OF_CONDUCT.md | folly/experimental/pushmi/CODE_OF_CONDUCT.md | Markdown |
<|file_sep|>original/src/components/AlertButtons.jsx
<|file_sep|>current/src/components/AlertButtons.jsx
<|file_sep|>updated/src/components/AlertButtons.jsx | /*
* When adding buttons to the bottom of a Bootstrap alert,
* you typically want those buttons to
* - be right-aligned;
* - not be flush up against the text they're below; and
* - not be flush up against each other.
*
* Unfortunately, these are not the default settings, because
* - right-alignment isn'... | <|file_sep|>original/src/components/AlertButtons.jsx
<|file_sep|>current/src/components/AlertButtons.jsx
<|file_sep|>updated/src/components/AlertButtons.jsx
/*
* When adding buttons to the bottom of a Bootstrap alert,
* you typically want those buttons to
* - be right-aligned;
* - not be flush up against the ... | 64873eeb40160ec75d6884efbf350976963beac1 | src/components/AlertButtons.jsx | src/components/AlertButtons.jsx | JSX |
<|file_sep|>original/openstack/kubernikus/templates/seed.yaml
- monsoon3/keystone-seed
- monsoon3/domain-ccadmin-seed
- monsoon3/domain-default-seed
domains:
- name: Default
users:
- name: kubernikus-terraform
description: "Kubernikus Terraform User"
password: {{ required "missing .kuber... | - monsoon3/domain-default-seed
domains:
- name: Default
users:
- name: kubernikus-terraform
description: "Kubernikus Terraform User"
password: {{ required "missing .kubernikus_terraform_password" .Values.kubernikus_terraform_password | quote }}
role_assignments:
- project: cloud_... | <|file_sep|>original/openstack/kubernikus/templates/seed.yaml
- monsoon3/keystone-seed
- monsoon3/domain-ccadmin-seed
- monsoon3/domain-default-seed
domains:
- name: Default
users:
- name: kubernikus-terraform
description: "Kubernikus Terraform User"
password: {{ required "missing .kuber... | c37468f14ca65b16874f4fa135b3b764724159f3 | openstack/kubernikus/templates/seed.yaml | openstack/kubernikus/templates/seed.yaml | YAML |
<|file_sep|>original/aboutdialog.py
self.tbAbout.setOpenExternalLinks(True)
self.tbLicense.setOpenExternalLinks(True)
self.__initTabs()
def __initTabs(self):
about = "<center><h3>gitc " + VERSION + "</h3></center>"
about += "<center>"
about += self.tr("Git file con... |
self.tbAbout.setOpenExternalLinks(True)
self.tbLicense.setOpenExternalLinks(True)
self.__initTabs()
def __initTabs(self):
about = "<center><h3>gitc " + VERSION + "</h3></center>"
about += "<center>"
about += self.tr("Git file conflicts and logs viewer")
abo... | <|file_sep|>original/aboutdialog.py
self.tbAbout.setOpenExternalLinks(True)
self.tbLicense.setOpenExternalLinks(True)
self.__initTabs()
def __initTabs(self):
about = "<center><h3>gitc " + VERSION + "</h3></center>"
about += "<center>"
about += self.tr("Git file con... | 18afda24f10e06bab6780beb9a489a34110dc482 | aboutdialog.py | aboutdialog.py | Python |
<|file_sep|>original/package.json
"url": "https://github.com/Scalesoft/s-pagination.git"
},
"files": [
"dist/",
"LICENSE",
"README.md",
"package.json"
],
"dependencies": {
"bootstrap": "^4.0",
"jquery": "^3.3.1"
},
"devDependencies": {
"@types/jquery": "^3.3.10",
"@types/... | "url": "https://github.com/Scalesoft/s-pagination.git"
},
"files": [
"dist/",
"LICENSE",
"README.md",
"package.json"
],
"dependencies": {
"bootstrap": "^4.0",
"jquery": "^3.3.1",
"jquery-ui-dist": "^1.12.1"
},
"devDependencies": {
"@types/jquery": "^3.3.10",
"@types/j... | <|file_sep|>original/package.json
"url": "https://github.com/Scalesoft/s-pagination.git"
},
"files": [
"dist/",
"LICENSE",
"README.md",
"package.json"
],
"dependencies": {
"bootstrap": "^4.0",
"jquery": "^3.3.1"
},
"devDependencies": {
"@types/jquery": "^3.3.10",
"@types/... | a7a225afd5f2fe79f0679adc5e36549e4016cf4c | package.json | package.json | JSON |
<|file_sep|>original/app/views/tasks/show.html.slim
h1 = @task.title
p = @task.state
p = @task.milestone.try :name
p = @task.assigned_user.try :name
<|file_sep|>current/app/views/tasks/show.html.slim
h1 = @task.title
p = @task.state
p = @task.milestone.try :name
p = @task.assigned_user.try :name
<|file_sep|>updated/app... | h1 = @task.title
p = @task.state
p = @task.milestone_name
p = @task.assigned_user_name | <|file_sep|>original/app/views/tasks/show.html.slim
h1 = @task.title
p = @task.state
p = @task.milestone.try :name
p = @task.assigned_user.try :name
<|file_sep|>current/app/views/tasks/show.html.slim
h1 = @task.title
p = @task.state
p = @task.milestone.try :name
p = @task.assigned_user.try :name
<|file_sep|>updated/app... | 67bb0c9e3e191f622be9863a48717370266f9413 | app/views/tasks/show.html.slim | app/views/tasks/show.html.slim | Slim |
<|file_sep|>original/src/s3BodyBuilder.js
const s3 = require('./s3');
const config = require('./config');
const mailParser = require('mailparser').simpleParser;
const build = (emailBodyLocation) => {
const bucket = config.s3EmailBucket;
const emailS3Key = emailBodyLocation && emailBodyLocation.key;
return s3.ge... | const s3 = require('./s3');
const config = require('./config');
const mailParser = require('mailparser').simpleParser;
const build = (emailBodyLocation) => {
const bucket = config.s3EmailBucket;
const emailS3Key = emailBodyLocation && emailBodyLocation.key;
return s3.getObject({ Key: emailS3Key, Bucket: bucket ... | <|file_sep|>original/src/s3BodyBuilder.js
const s3 = require('./s3');
const config = require('./config');
const mailParser = require('mailparser').simpleParser;
const build = (emailBodyLocation) => {
const bucket = config.s3EmailBucket;
const emailS3Key = emailBodyLocation && emailBodyLocation.key;
return s3.ge... | 4aa6559b775224ab9888a2502a9391b18f4d84a4 | src/s3BodyBuilder.js | src/s3BodyBuilder.js | JavaScript |
<|file_sep|>original/CodeFights/pagesNumberingWithInk.py
<|file_sep|>current/CodeFights/pagesNumberingWithInk.py
<|file_sep|>updated/CodeFights/pagesNumberingWithInk.py | #!/usr/local/bin/python
# Code Fights Pages Numbering With Ink Problem
import math
def pagesNumberingWithInk(current, numberOfDigits):
num = current
digits = (int(math.log(num, 10)) + 1)
available = numberOfDigits - digits
while available >= digits:
digits = int(math.log(num + 1, 10)) + 1
... | <|file_sep|>original/CodeFights/pagesNumberingWithInk.py
<|file_sep|>current/CodeFights/pagesNumberingWithInk.py
<|file_sep|>updated/CodeFights/pagesNumberingWithInk.py
#!/usr/local/bin/python
# Code Fights Pages Numbering With Ink Problem
import math
def pagesNumberingWithInk(current, numberOfDigits):
num = c... | f60aa33b10268394b66e88b2b262b6ed821f05a6 | CodeFights/pagesNumberingWithInk.py | CodeFights/pagesNumberingWithInk.py | Python |
<|file_sep|>original/2-java-basics/7-count-bits-one/CountBitsOne.java
<|file_sep|>current/2-java-basics/7-count-bits-one/CountBitsOne.java
<|file_sep|>updated/2-java-basics/7-count-bits-one/CountBitsOne.java | import java.util.Scanner;
public class CountBitsOne {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
System.out.println(countPositiveBits(n));
}
public static int countPositiveBits(int n) {
int count = 0;
w... | <|file_sep|>original/2-java-basics/7-count-bits-one/CountBitsOne.java
<|file_sep|>current/2-java-basics/7-count-bits-one/CountBitsOne.java
<|file_sep|>updated/2-java-basics/7-count-bits-one/CountBitsOne.java
import java.util.Scanner;
public class CountBitsOne {
public static void main(String[] args) {
S... | 73c21ade45fae0d8d1bbfb589bed46c02dbfeaae | 2-java-basics/7-count-bits-one/CountBitsOne.java | 2-java-basics/7-count-bits-one/CountBitsOne.java | Java |
<|file_sep|>README.md.diff
original:
A router for fluxapp. Manages the current page state, gives you info about the
currently opened page and history, and gracefully degrades on non-historyAPI
updated:
A router plugin for [Fluxapp](http://www.github.com/colonyamerican/fluxapp). Manages the current page state, gives y... | willTransitionTo: function() {},
willTransitionFrom: function() {},
},
onBackClick(event) {
const actions = this.getActions('router');
const forward = this.state.forward;
const previous = this.state.previous;
const options = {};
if (previous) {
actions.back();
} else if (forw... | <|file_sep|>README.md.diff
original:
A router for fluxapp. Manages the current page state, gives you info about the
currently opened page and history, and gracefully degrades on non-historyAPI
updated:
A router plugin for [Fluxapp](http://www.github.com/colonyamerican/fluxapp). Manages the current page state, gives y... | 8ad01b238c95a748b9e68893ce1e2446a4a94531 | README.md | README.md | Markdown |
<|file_sep|>session2/translate_all.py.diff
original:
updated:
from nltk.translate.bleu_score import sentence_bleu as bleu
<|file_sep|>session2/translate_all.py.diff
original:
updated:
parser.add_argument('--all', dest='all', action='store_true', help='Check all translations')
<|file_sep|>session2/translate_all.py... |
def main():
logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)
args = setup_args()
logging.info(args)
tm = TranslationModel(args.model)
fw_out = codecs.open(args.out, 'w', 'utf-8')
for input_line in codecs.open(args.input, 'r', 'utf-8'):
result... | <|file_sep|>session2/translate_all.py.diff
original:
updated:
from nltk.translate.bleu_score import sentence_bleu as bleu
<|file_sep|>session2/translate_all.py.diff
original:
updated:
parser.add_argument('--all', dest='all', action='store_true', help='Check all translations')
<|file_sep|>session2/translate_all.py... | c6a65af70acfed68036914b983856e1cbe26a235 | session2/translate_all.py | session2/translate_all.py | Python |
<|file_sep|>original/_posts/2018-06-22-Jeju-Hackathon.md
---
layout: post
title: " 제주도 해커톤 "
date: 2018-06-21
excerpt: " 제주도 해커톤 "
cate : "post"
tag:
- Hackathon
---
* `어모어뷰티X핵캠`을 갔다.
{% capture images %}
/assets/img/posts/jeju_hackathon_1.png
/assets/img/posts/jeju_hackathon_2.png
/assets/img/posts/jeju_hack... | ---
layout: post
title: " 제주도 해커톤 "
date: 2018-06-21
excerpt: " 제주도 해커톤 "
cate : "post"
tag:
- Hackathon
---
# 어모어뷰티 X 핵캠
{% capture images %}
/assets/img/posts/jeju_hackathon_1.png
/assets/img/posts/jeju_hackathon_2.png
/assets/img/posts/jeju_hackathon_3.png
/assets/img/posts/jeju_hackathon_4.png
{% endcaptur... | <|file_sep|>original/_posts/2018-06-22-Jeju-Hackathon.md
---
layout: post
title: " 제주도 해커톤 "
date: 2018-06-21
excerpt: " 제주도 해커톤 "
cate : "post"
tag:
- Hackathon
---
* `어모어뷰티X핵캠`을 갔다.
{% capture images %}
/assets/img/posts/jeju_hackathon_1.png
/assets/img/posts/jeju_hackathon_2.png
/assets/img/posts/jeju_hack... | 8f5b6dc9d715c2893ee8332adab2adc873f85241 | _posts/2018-06-22-Jeju-Hackathon.md | _posts/2018-06-22-Jeju-Hackathon.md | Markdown |
<|file_sep|>original/zinnia/urls/shortlink.py
"""Urls for the Zinnia entries short link"""
from django.conf.urls import url
from django.conf.urls import patterns
from zinnia.views.shortlink import EntryShortLink
urlpatterns = patterns(
'',
url(r'^e(?P<token>[\da-z]+)/$',
EntryShortLink.as_view(),
... | """Urls for the Zinnia entries short link"""
from django.conf.urls import url
from django.conf.urls import patterns
from zinnia.views.shortlink import EntryShortLink
urlpatterns = patterns(
'',
url(r'^(?P<token>[\da-z]+)/$',
EntryShortLink.as_view(),
name='entry_shortlink'),
) | <|file_sep|>original/zinnia/urls/shortlink.py
"""Urls for the Zinnia entries short link"""
from django.conf.urls import url
from django.conf.urls import patterns
from zinnia.views.shortlink import EntryShortLink
urlpatterns = patterns(
'',
url(r'^e(?P<token>[\da-z]+)/$',
EntryShortLink.as_view(),
... | b28c448261d8310a801fe8824ab2852fd50960da | zinnia/urls/shortlink.py | zinnia/urls/shortlink.py | Python |
<|file_sep|>original/grails-app/domain/be/cytomine/security/User.groovy
package be.cytomine.security
class User extends SecUser {
String firstname
String lastname
String email
Date dateCreated
static constraints = {
firstname blank : false
lastname blank : false
email blank : false
dateCrea... | package be.cytomine.security
class User extends SecUser {
String firstname
String lastname
String email
Date dateCreated
static constraints = {
firstname blank : false
lastname blank : false
email (blank : false, email:true)
dateCreated blank : false
}
} | <|file_sep|>original/grails-app/domain/be/cytomine/security/User.groovy
package be.cytomine.security
class User extends SecUser {
String firstname
String lastname
String email
Date dateCreated
static constraints = {
firstname blank : false
lastname blank : false
email blank : false
dateCrea... | 3a6f1947043274961648f742a1a743ee276ba8e4 | grails-app/domain/be/cytomine/security/User.groovy | grails-app/domain/be/cytomine/security/User.groovy | Groovy |
<|file_sep|>original/.travis.yml
sudo: false
language: node_js
node_js:
- '0.10'
- '0.12'
branches:
only:
- master
- development
- travis-ci
before_install:
- npm install
- npm install istanbul coveralls
<|file_sep|>current/.travis.yml
sudo: false
language: node_js
node_js:
- '0.10'
- '0... | sudo: false
language: node_js
node_js:
- '0.10'
- '0.12'
- '4.2'
branches:
only:
- master
- development
- travis-ci
before_install:
- npm install
- npm install istanbul coveralls | <|file_sep|>original/.travis.yml
sudo: false
language: node_js
node_js:
- '0.10'
- '0.12'
branches:
only:
- master
- development
- travis-ci
before_install:
- npm install
- npm install istanbul coveralls
<|file_sep|>current/.travis.yml
sudo: false
language: node_js
node_js:
- '0.10'
- '0... | 54f2b6a295126fcae291a5b44fe553e68a256c4e | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/DocumentFormat.OpenXml/project.json
"FEATURE_CLONEABLE",
"FEATURE_CLOSE",
"FEATURE_REFLECTION",
"FEATURE_SECURITY",
"FEATURE_SERIALIZATION",
"FEATURE_SYSTEMEXCEPTION",
"FEATURE_XML_QUOTECHAR",
"FEATURE_XML_SCHEMA",
... | "FEATURE_CLONEABLE",
"FEATURE_CLOSE",
"FEATURE_REFLECTION",
"FEATURE_SECURITY",
"FEATURE_SERIALIZATION",
"FEATURE_SYSTEMEXCEPTION",
"FEATURE_XML_QUOTECHAR",
"FEATURE_XML_SCHEMA",
"FEATURE_XML_VERIFYTOKEN"
],
"compi... | <|file_sep|>original/DocumentFormat.OpenXml/project.json
"FEATURE_CLONEABLE",
"FEATURE_CLOSE",
"FEATURE_REFLECTION",
"FEATURE_SECURITY",
"FEATURE_SERIALIZATION",
"FEATURE_SYSTEMEXCEPTION",
"FEATURE_XML_QUOTECHAR",
"FEATURE_XML_SCHEMA",
... | c8cb96321c91cf42e65877dbe186669c28cc2361 | DocumentFormat.OpenXml/project.json | DocumentFormat.OpenXml/project.json | JSON |
<|file_sep|>original/test/rendering/webpack.config.js
module.exports = {
context: __dirname,
target: 'web',
entry: entry,
devtool: 'source-map',
stats: 'minimal',
module: {
rules: [
{
test: /\.js$/,
use: {
loader: path.join(
__dirname,
'../../examp... | module: {
rules: [
{
test: /\.js$/,
use: {
loader: path.join(
__dirname,
'../../examples/webpack/worker-loader.js'
),
},
include: [path.join(__dirname, '../../src/ol/worker')],
},
],
},
resolve: {
alias: {
//... | <|file_sep|>original/test/rendering/webpack.config.js
module.exports = {
context: __dirname,
target: 'web',
entry: entry,
devtool: 'source-map',
stats: 'minimal',
module: {
rules: [
{
test: /\.js$/,
use: {
loader: path.join(
__dirname,
'../../examp... | d72368667d3f6ecd72891dec5041ddeb851b4c08 | test/rendering/webpack.config.js | test/rendering/webpack.config.js | JavaScript |
<|file_sep|>.travis.yml.diff
original:
jdk:
- oraclejdk8
updated:
<|file_sep|>.travis.yml.diff
original:
updated:
dist: trusty
jdk:
- openjdk8
<|file_sep|>original/.travis.yml
language: java
jdk:
- oraclejdk8
matrix:
include:
- os: linux
- os: osx
osx_image: xcode9.3
<|file_sep... | language: java
matrix:
include:
- os: linux
dist: trusty
jdk:
- openjdk8
- os: osx
osx_image: xcode9.3
jdk:
- oraclejdk8 | <|file_sep|>.travis.yml.diff
original:
jdk:
- oraclejdk8
updated:
<|file_sep|>.travis.yml.diff
original:
updated:
dist: trusty
jdk:
- openjdk8
<|file_sep|>original/.travis.yml
language: java
jdk:
- oraclejdk8
matrix:
include:
- os: linux
- os: osx
osx_image: xcode9.3
<|file_sep... | f617920b8e3c8e66284ceb6e12fd5740274d0d42 | .travis.yml | .travis.yml | YAML |
<|file_sep|>composer.json.diff
original:
"psr/http-client": "^1.0",
"ricardofiorani/guzzle-psr18-adapter": "^1.0"
updated:
"psr/http-client": "^1.0"
<|file_sep|>original/composer.json
"autoload": {
"psr-4": {
"Konsulting\\JustGivingApiSdk\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
... | "psr-4": {
"Konsulting\\JustGivingApiSdk\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Konsulting\\JustGivingApiSdk\\Tests\\": "tests/"
}
},
"require": {
"guzzlehttp/guzzle": "^6.2",
"illuminate/support": "^5.4 | ^6.0",
"nesbot/carbon": "^1.22 | ^2.0",
"psr/http-clien... | <|file_sep|>composer.json.diff
original:
"psr/http-client": "^1.0",
"ricardofiorani/guzzle-psr18-adapter": "^1.0"
updated:
"psr/http-client": "^1.0"
<|file_sep|>original/composer.json
"autoload": {
"psr-4": {
"Konsulting\\JustGivingApiSdk\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
... | 01d809ecbf3b55083c721422b82f5c76e8740dd2 | composer.json | composer.json | JSON |
<|file_sep|>original/week-9/ruby/ruby-review-1/ruby-review.rb
<|file_sep|>current/week-9/ruby/ruby-review-1/ruby-review.rb
<|file_sep|>updated/week-9/ruby/ruby-review-1/ruby-review.rb | # Reverse Words
# I worked on this challenge [by myself].
# This challenge took me [#] hours.
# Pseudocode
=begin
INPUT: (string) a sentence
OUTPUT: (string) each word in sentence reversed and returned in order
1. split original sentence at each space
2. iterate through each word string and reverse the characters ... | <|file_sep|>original/week-9/ruby/ruby-review-1/ruby-review.rb
<|file_sep|>current/week-9/ruby/ruby-review-1/ruby-review.rb
<|file_sep|>updated/week-9/ruby/ruby-review-1/ruby-review.rb
# Reverse Words
# I worked on this challenge [by myself].
# This challenge took me [#] hours.
# Pseudocode
=begin
INPUT: (string) a... | aabacfac42e036bdb7dd87fe2580d7993e86a070 | week-9/ruby/ruby-review-1/ruby-review.rb | week-9/ruby/ruby-review-1/ruby-review.rb | Ruby |
<|file_sep|>original/src/main/java/com/github/pedrovgs/problem75/SelectionSort.java
<|file_sep|>current/src/main/java/com/github/pedrovgs/problem75/SelectionSort.java
<|file_sep|>updated/src/main/java/com/github/pedrovgs/problem75/SelectionSort.java | package com.github.pedrovgs.problem75;
import com.github.pedrovgs.sortingalgorithm.SortingAlgorithm;
/**
* Given an array full of integers implement a selection sort algorithm to sort the content inside
* the array.
*
* @author Pedro Vicente Gómez Sánchez.
*/
public class SelectionSort extends SortingAlgorithm {... | <|file_sep|>original/src/main/java/com/github/pedrovgs/problem75/SelectionSort.java
<|file_sep|>current/src/main/java/com/github/pedrovgs/problem75/SelectionSort.java
<|file_sep|>updated/src/main/java/com/github/pedrovgs/problem75/SelectionSort.java
package com.github.pedrovgs.problem75;
import com.github.pedrovgs.s... | 11b93bb673142f6e053627359cd59720a515f148 | src/main/java/com/github/pedrovgs/problem75/SelectionSort.java | src/main/java/com/github/pedrovgs/problem75/SelectionSort.java | Java |
<|file_sep|>tests/trunk_aware.py.diff
original:
_trunk_filter = _all_trunks & set(args)
if len(_trunk_filter) == 0:
_trunk_filter = _all_trunks
updated:
include = _all_trunks & set(args)
exclude_percented = set('%' + t for t in _all_trunks) & set(args)
exclude = set(e[1:] for e in exclude_pe... | @functools.lru_cache()
def asset_cache(trunk):
return tuple(applied_modifiers(resource_by_trunk(trunk)()))
def main(args=None):
global _trunk_filter
if args is None:
args = sys.argv
include = _all_trunks & set(args)
exclude_percented = set('%' + t for t in _all_trunks) & set(args)
ex... | <|file_sep|>tests/trunk_aware.py.diff
original:
_trunk_filter = _all_trunks & set(args)
if len(_trunk_filter) == 0:
_trunk_filter = _all_trunks
updated:
include = _all_trunks & set(args)
exclude_percented = set('%' + t for t in _all_trunks) & set(args)
exclude = set(e[1:] for e in exclude_pe... | 3a5cbdbe4a79efd59114ca11f86e282aee0eac5c | tests/trunk_aware.py | tests/trunk_aware.py | Python |
<|file_sep|>original/MTLocation.podspec
<|file_sep|>current/MTLocation.podspec
<|file_sep|>updated/MTLocation.podspec | Pod::Spec.new do |s|
s.name = 'MTLocation'
s.version = '0.9.1'
s.platform = :ios
s.summary = 'Convenience-stuff for CoreLocation/MapKit on iOS. Includes a UIBarButtonItem mimicing the ' \
'Locate-Me-Button of the built-in Google Maps App.'
s.homepage = 'https://github.com/myell0w/MTLocati... | <|file_sep|>original/MTLocation.podspec
<|file_sep|>current/MTLocation.podspec
<|file_sep|>updated/MTLocation.podspec
Pod::Spec.new do |s|
s.name = 'MTLocation'
s.version = '0.9.1'
s.platform = :ios
s.summary = 'Convenience-stuff for CoreLocation/MapKit on iOS. Includes a UIBarButtonItem mimicing the ' ... | 9be230df1dfc229b5d91ff64f927d14821a6072c | MTLocation.podspec | MTLocation.podspec | Ruby |
<|file_sep|>original/cmake/scripts/local_install.cmake
# Arguments:
# PREFIX - Installation prefix
# COMPONENTS - Installation component
set(COMPONENTS ${COMPONENTS})
foreach(component ${COMPONENTS})
execute_process(
COMMAND ${CMAKE_COMMAND} -DCMAKE_INSTALL_PREFIX=${PREFIX}
-D... | # Arguments:
# PREFIX - Installation prefix
# COMPONENTS - Installation component
set(COMPONENTS ${COMPONENTS})
set(ENV{DESTDIR} "")
foreach(component ${COMPONENTS})
execute_process(
COMMAND ${CMAKE_COMMAND} -DCMAKE_INSTALL_PREFIX=${PREFIX}
-DCMAKE_INSTALL_COMPONENT=${componen... | <|file_sep|>original/cmake/scripts/local_install.cmake
# Arguments:
# PREFIX - Installation prefix
# COMPONENTS - Installation component
set(COMPONENTS ${COMPONENTS})
foreach(component ${COMPONENTS})
execute_process(
COMMAND ${CMAKE_COMMAND} -DCMAKE_INSTALL_PREFIX=${PREFIX}
-D... | 56d943b0d4487f132a70f0e9526403a1435a45d4 | cmake/scripts/local_install.cmake | cmake/scripts/local_install.cmake | CMake |
<|file_sep|>original/public/vendor/js/app/controllers/customersController.js
(function() {
var CustomersController = function($scope) {
$scope.sortBy = 'name';
$scope.reverse = false;
$scope.customers = [{name:'John', city:'London', joined:'2014-12-02', orderTotal:212.5},
{name:'Paul', city:'Liverpool', ... | (function() {
var CustomersController = function($scope) {
$scope.sortBy = 'name';
$scope.reverse = false;
$scope.customers = [{name:'John', city:'London', joined:'2014-12-02', orderTotal:212.5},
{name:'Paul', city:'Liverpool', joined:'2014-11-02', orderTotal:312.1},
{name:'George', city:'Glasgow', j... | <|file_sep|>original/public/vendor/js/app/controllers/customersController.js
(function() {
var CustomersController = function($scope) {
$scope.sortBy = 'name';
$scope.reverse = false;
$scope.customers = [{name:'John', city:'London', joined:'2014-12-02', orderTotal:212.5},
{name:'Paul', city:'Liverpool', ... | 975fad1cf1528d7c718a6c5ae627d2c9c55b927d | public/vendor/js/app/controllers/customersController.js | public/vendor/js/app/controllers/customersController.js | JavaScript |
<|file_sep|>original/.travis.yml
language: python
python:
- "2.6"
- "2.7"
env:
- DJANGO=1.4.5
- DJANGO=1.5.1
virtualenv:
system_site_packages: true
before_install:
- sudo apt-get install -qq python-numpy python-scipy
install:
- pip install -q Django==$DJANGO --use-mirrors
services:
- mem... | language: python
python:
- "2.6"
- "2.7"
env:
- DJANGO=1.4.5
- DJANGO=1.5.1
virtualenv:
system_site_packages: true
install:
- pip install -q Django==$DJANGO --use-mirrors
services:
- memcache
script:
- python setup.py test | <|file_sep|>original/.travis.yml
language: python
python:
- "2.6"
- "2.7"
env:
- DJANGO=1.4.5
- DJANGO=1.5.1
virtualenv:
system_site_packages: true
before_install:
- sudo apt-get install -qq python-numpy python-scipy
install:
- pip install -q Django==$DJANGO --use-mirrors
services:
- mem... | 7f62be20e05ec94c4e5e8cc9c01046bf8d1d9c98 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/README.md
AMQP to MQTT adapter
==========================
Description
-------
This application was built initially for PSA customer. They wanted to receive the monitoring data + the operation state changes through the notification mechanism. However, they were not able to connect to our RabbitMQ ... | AMQP to MQTT adapter
==========================
Description
-------
This application connects to an AMQP file and is listening to the messages pushed in the queue. For each received message, its content is pushed into a different MQTT topic following the nature of the message (monitoring data or operation state change... | <|file_sep|>original/README.md
AMQP to MQTT adapter
==========================
Description
-------
This application was built initially for PSA customer. They wanted to receive the monitoring data + the operation state changes through the notification mechanism. However, they were not able to connect to our RabbitMQ ... | 6f669a2b548aab3fe7e32842007f3c4cea184df3 | README.md | README.md | Markdown |
<|file_sep|>original/i3/.i3/docker.sh
#!/usr/bin/env bash
IN="eDP1"
EXT="DP1"
xrandr > /dev/null
xrandr | grep "$EXT disconnected" > /dev/null
if [ $? -eq 0 ]; then
xrandr --output $IN --primary --mode 1920x1080 --output $EXT --off
xmodmap -e "pointer = 1 2 3" 2> /dev/null
echo "-> Laptop mode"
else
xrandr -... | #!/usr/bin/env bash
IN="eDP1"
EXT="DP1"
xrandr > /dev/null
xrandr | grep "$EXT disconnected" > /dev/null
if [ $? -eq 0 ]; then
xrandr --output $IN --primary --mode 1920x1080 --output $EXT --off
xmodmap -e "pointer = 1 2 3" 2> /dev/null
echo "-> Laptop mode"
else
xrandr --output $IN --mode 1920x1080 --output ... | <|file_sep|>original/i3/.i3/docker.sh
#!/usr/bin/env bash
IN="eDP1"
EXT="DP1"
xrandr > /dev/null
xrandr | grep "$EXT disconnected" > /dev/null
if [ $? -eq 0 ]; then
xrandr --output $IN --primary --mode 1920x1080 --output $EXT --off
xmodmap -e "pointer = 1 2 3" 2> /dev/null
echo "-> Laptop mode"
else
xrandr -... | 1b5046cd1d432608ac2fd335e4e285d198ca91fe | i3/.i3/docker.sh | i3/.i3/docker.sh | Shell |
<|file_sep|>original/plugins/wacom-raw/fu-wacom-emr-device.h
/*
* Copyright (C) 2018-2019 Richard Hughes <richard@hughsie.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#pragma once
#include "fu-wacom-device.h"
#define FU_TYPE_WACOM_EMR_DEVICE (fu_wacom_emr_device_get_type ())
G_DECLARE_FINAL_TYPE (FuWacomEmrDev... | /*
* Copyright (C) 2018-2019 Richard Hughes <richard@hughsie.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#pragma once
#include "fu-wacom-device.h"
#define FU_TYPE_WACOM_EMR_DEVICE (fu_wacom_emr_device_get_type ())
G_DECLARE_FINAL_TYPE (FuWacomEmrDevice, fu_wacom_emr_device, FU, WACOM_EMR_DEVICE, FuWacomDevice... | <|file_sep|>original/plugins/wacom-raw/fu-wacom-emr-device.h
/*
* Copyright (C) 2018-2019 Richard Hughes <richard@hughsie.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#pragma once
#include "fu-wacom-device.h"
#define FU_TYPE_WACOM_EMR_DEVICE (fu_wacom_emr_device_get_type ())
G_DECLARE_FINAL_TYPE (FuWacomEmrDev... | efa2803eb4c8b930f0b57c2b7d46d222641c3c4a | plugins/wacom-raw/fu-wacom-emr-device.h | plugins/wacom-raw/fu-wacom-emr-device.h | C |
<|file_sep|>original/cgo/cgo_main_noop.go
site *sparta.S3Site,
workflowHooks *sparta.WorkflowHooks) error {
// NOOP
return nil
}
// LambdaHandler is the public handler that's called by the transformed
// CGO compliant userinput. Users should not need to call this function
// directly
func LambdaHandler(functionNam... | site *sparta.S3Site,
workflowHooks *sparta.WorkflowHooks) error {
// NOOP
return nil
}
// LambdaHandler is the public handler that's called by the transformed
// CGO compliant userinput. Users should not need to call this function
// directly
func LambdaHandler(functionName string,
logLevel string,
eventJSON str... | <|file_sep|>original/cgo/cgo_main_noop.go
site *sparta.S3Site,
workflowHooks *sparta.WorkflowHooks) error {
// NOOP
return nil
}
// LambdaHandler is the public handler that's called by the transformed
// CGO compliant userinput. Users should not need to call this function
// directly
func LambdaHandler(functionNam... | f24763d3ccb248ab488e8c54b3ed9f7cea800c41 | cgo/cgo_main_noop.go | cgo/cgo_main_noop.go | Go |
<|file_sep|>original/app/models/application_record.rb
# frozen_string_literal: true
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
def self.raise_not_implemented_error
raise NotImplementedError, "Subclass should override method '#{caller(1..1).first[/`.*'/][1..-2]}'"
end
private_c... | # frozen_string_literal: true
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
def self.raise_not_implemented_error
raise NotImplementedError, "Subclass should override method '#{caller_locations(1, 1)[0].label}'"
end
private_class_method :raise_not_implemented_error
end | <|file_sep|>original/app/models/application_record.rb
# frozen_string_literal: true
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
def self.raise_not_implemented_error
raise NotImplementedError, "Subclass should override method '#{caller(1..1).first[/`.*'/][1..-2]}'"
end
private_c... | ceb75d6d3524a905b137d5eda481b0b6a03154aa | app/models/application_record.rb | app/models/application_record.rb | Ruby |
<|file_sep|>original/spec/fixtures.http/transferDomainOut/success.http
<|file_sep|>current/spec/fixtures.http/transferDomainOut/success.http
<|file_sep|>updated/spec/fixtures.http/transferDomainOut/success.http | HTTP/1.1 204 No Content
Server: nginx
Date: Sun, 21 Feb 2016 13:40:35 GMT
Connection: keep-alive
Status: 204 No Content
X-RateLimit-Limit: 4000
X-RateLimit-Remaining: 3990
X-RateLimit-Reset: 1456063540
Cache-Control: no-cache
X-Request-Id: 9af6ab78-7ea8-4675-89f0-14d124fc7ca2
X-Runtime: 3.038699
Strict-Transport-Securi... | <|file_sep|>original/spec/fixtures.http/transferDomainOut/success.http
<|file_sep|>current/spec/fixtures.http/transferDomainOut/success.http
<|file_sep|>updated/spec/fixtures.http/transferDomainOut/success.http
HTTP/1.1 204 No Content
Server: nginx
Date: Sun, 21 Feb 2016 13:40:35 GMT
Connection: keep-alive
Status: 20... | 86748fb2e43e35f8d7021f2a74f2357d3c678fc4 | spec/fixtures.http/transferDomainOut/success.http | spec/fixtures.http/transferDomainOut/success.http | HTTP |
<|file_sep|>original/_ontimize_web_ngx_filemanager/general/02-installation.md
{% include base_path %}
## Installation
```bash
npm install ontimize-web-ngx-filemanager --save
```
## Usage
### Import the File Manager into your application
Import the Ontimize Web file manager module in the module you want to use it... | {% include base_path %}
## Installation
```bash
npm install ontimize-web-ngx-filemanager --save
```
## Usage
### Add the library theming
Include the library theme in your application by adding the following code to the '*app.scss*' file:
```bash
...
@import '~ontimize-web-ngx-filemanager/o-filemanager-table-them... | <|file_sep|>original/_ontimize_web_ngx_filemanager/general/02-installation.md
{% include base_path %}
## Installation
```bash
npm install ontimize-web-ngx-filemanager --save
```
## Usage
### Import the File Manager into your application
Import the Ontimize Web file manager module in the module you want to use it... | f0312186568a451f50c1c3da09f6f7695813f314 | _ontimize_web_ngx_filemanager/general/02-installation.md | _ontimize_web_ngx_filemanager/general/02-installation.md | Markdown |
<|file_sep|>src/babel-files-signatures.ads.diff
original:
-- Copyright (C) 2014 Stephane.Carrez
updated:
-- Copyright (C) 2014, 2015, 2016 Stephane.Carrez
<|file_sep|>src/babel-files-signatures.ads.diff
original:
updated:
with Babel.Streams.Refs;
<|file_sep|>original/src/babel-files-signatures.ads
--
-- Unless requ... | -- limitations under the License.
-----------------------------------------------------------------------
with Babel.Files;
with Babel.Files.Buffers;
with Babel.Files.Maps;
with Babel.Streams.Refs;
package Babel.Files.Signatures is
-- Compute the SHA1 signature of the data stored in the buffer.
procedure Sha1 ... | <|file_sep|>src/babel-files-signatures.ads.diff
original:
-- Copyright (C) 2014 Stephane.Carrez
updated:
-- Copyright (C) 2014, 2015, 2016 Stephane.Carrez
<|file_sep|>src/babel-files-signatures.ads.diff
original:
updated:
with Babel.Streams.Refs;
<|file_sep|>original/src/babel-files-signatures.ads
--
-- Unless requ... | 024f5bc835ccca4108d9082285ad14d4a18b9504 | src/babel-files-signatures.ads | src/babel-files-signatures.ads | Ada |
<|file_sep|>lib/wombat_objects.rb.diff
original:
updated:
def wombat_object
self.class.name.split('::').last.downcase + 's'
end
<|file_sep|>original/lib/wombat_objects.rb
class Base
def initialize(ultracart_order)
@ultracart_order = ultracart_order
end
def serialize
{ self.cl... | class Base
def initialize(ultracart_order)
@ultracart_order = ultracart_order
end
def wombat_object
self.class.name.split('::').last.downcase + 's'
end
def serialize
{ wombat_object => [ send(@ultracart_order.current_stage.downcase) ].compact }
end
def ar; end # Accou... | <|file_sep|>lib/wombat_objects.rb.diff
original:
updated:
def wombat_object
self.class.name.split('::').last.downcase + 's'
end
<|file_sep|>original/lib/wombat_objects.rb
class Base
def initialize(ultracart_order)
@ultracart_order = ultracart_order
end
def serialize
{ self.cl... | 95d79fc933ff9a9ff391b3f8bcd73c881bf6059c | lib/wombat_objects.rb | lib/wombat_objects.rb | Ruby |
<|file_sep|>vim/config/plugins/vim-easytags.vim.diff
original:
updated:
"set the temporary directory for ctags
if isdirectory(glob("/tmp"))
let $TMPDIR = '/tmp'
endif
"put general tags in ~/.vim/tags
<|file_sep|>original/vim/config/plugins/vim-easytags.vim
if filereadable(glob("~/.vim/tags"))
let g:easytags_... | "set the temporary directory for ctags
if isdirectory(glob("/tmp"))
let $TMPDIR = '/tmp'
endif
"put general tags in ~/.vim/tags
if filereadable(glob("~/.vim/tags"))
let g:easytags_file = '~/.vim/tags'
endif
"put filetype-specific tags in ~/.vim/tags_by_filetype/
if isdirectory(glob("~/.vim/tags_by_filetype"))... | <|file_sep|>vim/config/plugins/vim-easytags.vim.diff
original:
updated:
"set the temporary directory for ctags
if isdirectory(glob("/tmp"))
let $TMPDIR = '/tmp'
endif
"put general tags in ~/.vim/tags
<|file_sep|>original/vim/config/plugins/vim-easytags.vim
if filereadable(glob("~/.vim/tags"))
let g:easytags_... | 20437cec96307f681d3e694d3f805225cb071dcb | vim/config/plugins/vim-easytags.vim | vim/config/plugins/vim-easytags.vim | VimL |
<|file_sep|>original/src/array_column.php
<?php declare(strict_types=1);
namespace Zubr;
/**
* (PHP 5 >=5.5.0)<br/>
* Return the values from a single column in the input array
* @link http://www.php.net/manual/en/function.array-column.php
* @param array $array <p>A multi-dimensional array (record set) from whi... | <?php declare(strict_types=1);
namespace Zubr;
/**
* (PHP 5 >=5.5.0)<br/>
* Return the values from a single column in the input array
* @link http://www.php.net/manual/en/function.array-column.php
* @param array $array <p>A multi-dimensional array (record set) from which to pull a column of values.</p>
* @par... | <|file_sep|>original/src/array_column.php
<?php declare(strict_types=1);
namespace Zubr;
/**
* (PHP 5 >=5.5.0)<br/>
* Return the values from a single column in the input array
* @link http://www.php.net/manual/en/function.array-column.php
* @param array $array <p>A multi-dimensional array (record set) from whi... | e88a55bd5b1819b75a59da0dd6852489b5f11802 | src/array_column.php | src/array_column.php | PHP |
<|file_sep|>original/composer.json
}
],
"require-dev": {
"phpunit/phpunit": "^7.1",
"squizlabs/php_codesniffer": "^3.2",
"phpstan/phpstan": "^0.9.2"
},
"require": {
"php" : ">=7.1",
"beberlei/assert": "^2.4",
"php-school/terminal": "dev-master",
... | }
],
"require-dev": {
"phpunit/phpunit": "^7.1",
"squizlabs/php_codesniffer": "^3.2",
"phpstan/phpstan": "^0.9.2"
},
"require": {
"php" : ">=7.1",
"beberlei/assert": "^2.4",
"php-school/terminal": "^0.1",
"ext-posix": "*"
},
"autolo... | <|file_sep|>original/composer.json
}
],
"require-dev": {
"phpunit/phpunit": "^7.1",
"squizlabs/php_codesniffer": "^3.2",
"phpstan/phpstan": "^0.9.2"
},
"require": {
"php" : ">=7.1",
"beberlei/assert": "^2.4",
"php-school/terminal": "dev-master",
... | f6adda31611fbe5eacfea156d380dbd34205706e | composer.json | composer.json | JSON |
<|file_sep|>original/test/integration/smoke/inspec/assert_functioning_spec.rb
<|file_sep|>current/test/integration/smoke/inspec/assert_functioning_spec.rb
<|file_sep|>updated/test/integration/smoke/inspec/assert_functioning_spec.rb | # service named 'default'
describe command('docker images') do
its(:exit_status) { should eq 0 }
its(:stdout) { should match(/busybox/) }
end
describe command('docker ps -a') do
its(:exit_status) { should eq 0 }
its(:stdout) { should match(/an_echo_server/) }
end
# service one
describe command('docker --host... | <|file_sep|>original/test/integration/smoke/inspec/assert_functioning_spec.rb
<|file_sep|>current/test/integration/smoke/inspec/assert_functioning_spec.rb
<|file_sep|>updated/test/integration/smoke/inspec/assert_functioning_spec.rb
# service named 'default'
describe command('docker images') do
its(:exit_status) { ... | ae7be4177a53efd540f5398e08ceac28890248c9 | test/integration/smoke/inspec/assert_functioning_spec.rb | test/integration/smoke/inspec/assert_functioning_spec.rb | Ruby |
<|file_sep|>original/Library/Formula/go.rb
require 'formula'
class Go <Formula
head 'https://go.googlecode.com/hg/'
homepage 'http://golang.org'
aka 'google-go'
skip_clean 'bin'
def download_strategy
MercurialDownloadStrategy
end
def cruft
%w[src include test doc]
end
def install
pre... | require 'formula'
class Go <Formula
head 'https://go.googlecode.com/hg/', :revision => 'release'
homepage 'http://golang.org'
aka 'google-go'
skip_clean 'bin'
def download_strategy
MercurialDownloadStrategy
end
def cruft
%w[src include test doc]
end
def install
prefix.install cruft<<... | <|file_sep|>original/Library/Formula/go.rb
require 'formula'
class Go <Formula
head 'https://go.googlecode.com/hg/'
homepage 'http://golang.org'
aka 'google-go'
skip_clean 'bin'
def download_strategy
MercurialDownloadStrategy
end
def cruft
%w[src include test doc]
end
def install
pre... | c6f1749337a6d80d836f0cdd011dc9124c1b1d60 | Library/Formula/go.rb | Library/Formula/go.rb | Ruby |
<|file_sep|>original/.zuul.yaml
- project:
templates:
- check-requirements
- openstack-python3-zed-jobs
- openstackclient-plugin-jobs
- publish-openstack-docs-pti
- release-notes-jobs-python3
- openstack-cover-jobs
<|file_sep|>current/.zuul.yaml
- project:
templates:
- ... | - project:
templates:
- check-requirements
- openstack-python3-antelope-jobs
- openstackclient-plugin-jobs
- publish-openstack-docs-pti
- release-notes-jobs-python3
- openstack-cover-jobs | <|file_sep|>original/.zuul.yaml
- project:
templates:
- check-requirements
- openstack-python3-zed-jobs
- openstackclient-plugin-jobs
- publish-openstack-docs-pti
- release-notes-jobs-python3
- openstack-cover-jobs
<|file_sep|>current/.zuul.yaml
- project:
templates:
- ... | 4a00de041eaf0621d1cc75ab5a0d68ca61f19a4a | .zuul.yaml | .zuul.yaml | YAML |
<|file_sep|>original/CI/syntaxCheck.py
#"AKD":"/ApplicationExamples/AKD/package.mo",
#"N44":"/ApplicationExamples/N44/package.mo",
#"OpenCPSD5d3B":"/ApplicationExamples/OpenCPSD5d3B/package.mo",
#"RaPIdExperiments":"/ApplicationExamples/RaPIdExperiments/package.mo"
}
# Instance of CITests
ci = CITests("/OpenIPSL")
# ... | #"AKD":"/ApplicationExamples/AKD/package.mo",
#"N44":"/ApplicationExamples/N44/package.mo",
#"OpenCPSD5d3B":"/ApplicationExamples/OpenCPSD5d3B/package.mo",
#"RaPIdExperiments":"/ApplicationExamples/RaPIdExperiments/package.mo"
}
# Instance of CITests
ci = CITests("/OpenIPSL")
# Run Check on OpenIPSL
passLib = ci.runS... | <|file_sep|>original/CI/syntaxCheck.py
#"AKD":"/ApplicationExamples/AKD/package.mo",
#"N44":"/ApplicationExamples/N44/package.mo",
#"OpenCPSD5d3B":"/ApplicationExamples/OpenCPSD5d3B/package.mo",
#"RaPIdExperiments":"/ApplicationExamples/RaPIdExperiments/package.mo"
}
# Instance of CITests
ci = CITests("/OpenIPSL")
# ... | e866e196f72f9965dfbca1f7628c8b90e5c627dc | CI/syntaxCheck.py | CI/syntaxCheck.py | Python |
<|file_sep|>main.js.diff
original:
updated:
// Format the number for currency
<|file_sep|>original/main.js
homeprice: "Home Price",
realtorfee: "Realtor fee (in percent)",
mortgage: "Mortgage amount",
},
methods: {
currencyFormat: function(num) {
// As seen at https://blog.tompawlak.org/n... | homeprice: "Home Price",
realtorfee: "Realtor fee (in percent)",
mortgage: "Mortgage amount",
},
methods: {
// Format the number for currency
currencyFormat: function(num) {
// As seen at https://blog.tompawlak.org/number-currency-formatting-javascript.
return "$" + num.toFixed(2).re... | <|file_sep|>main.js.diff
original:
updated:
// Format the number for currency
<|file_sep|>original/main.js
homeprice: "Home Price",
realtorfee: "Realtor fee (in percent)",
mortgage: "Mortgage amount",
},
methods: {
currencyFormat: function(num) {
// As seen at https://blog.tompawlak.org/n... | 435fc3d00930134139e6b5f944b867f4ed8cd70c | main.js | main.js | JavaScript |
<|file_sep|>test/scripts/travis.sh.diff
original:
updated:
test_exit_code=$?
<|file_sep|>original/test/scripts/travis.sh
#!/usr/bin/env bash
set -x
if [[ ${TRAVIS_RUBY_VERSION} == "2.1" ]]; then
# ruby 2.1
export NO_COVERAGE="true" # No coverage for rails 4, because controller specs are disabled
bundle exec ... | #!/usr/bin/env bash
set -x
if [[ ${TRAVIS_RUBY_VERSION} == "2.1" ]]; then
# ruby 2.1
export NO_COVERAGE="true" # No coverage for rails 4, because controller specs are disabled
bundle exec rake rails4:test --trace
else
# ruby >= 2.2
bundle exec rake --trace
test_exit_code=$?
bundle exec codeclimate-test-... | <|file_sep|>test/scripts/travis.sh.diff
original:
updated:
test_exit_code=$?
<|file_sep|>original/test/scripts/travis.sh
#!/usr/bin/env bash
set -x
if [[ ${TRAVIS_RUBY_VERSION} == "2.1" ]]; then
# ruby 2.1
export NO_COVERAGE="true" # No coverage for rails 4, because controller specs are disabled
bundle exec ... | d8209cf3a93220b779070741fce96256ad856f7b | test/scripts/travis.sh | test/scripts/travis.sh | Shell |
<|file_sep|>original/HappyBrackets/src/test/java/net/happybrackets/extras/assignment_autograding/TestBeadsChecker.java
package net.happybrackets.extras.assignment_autograding;
import java.io.IOException;
/**
* Created by ollie on 8/08/2016.
*/
public class TestBeadsChecker {
public static void main(String[] ar... | package net.happybrackets.extras.assignment_autograding;
import java.io.IOException;
/**
* Created by ollie on 8/08/2016.
*/
public class TestBeadsChecker {
public static void main(String[] args) throws IOException {
ExampleBeadsCheckable checkable = new ExampleBeadsCheckable();
BeadsChecker c... | <|file_sep|>original/HappyBrackets/src/test/java/net/happybrackets/extras/assignment_autograding/TestBeadsChecker.java
package net.happybrackets.extras.assignment_autograding;
import java.io.IOException;
/**
* Created by ollie on 8/08/2016.
*/
public class TestBeadsChecker {
public static void main(String[] ar... | 90626e884d8bd123aa222b00f5ef3fba08a11712 | HappyBrackets/src/test/java/net/happybrackets/extras/assignment_autograding/TestBeadsChecker.java | HappyBrackets/src/test/java/net/happybrackets/extras/assignment_autograding/TestBeadsChecker.java | Java |
<|file_sep|>original/packages/ci/circus.yaml
<|file_sep|>current/packages/ci/circus.yaml
<|file_sep|>updated/packages/ci/circus.yaml | homepage: https://github.com/isovector/circus#readme
changelog-type: markdown
hash: 04f61dc224f97dfbc4e166cd45f4aa3b70ad11ff6419a00f1a8d13d1f7aa77db
test-bench-deps: {}
maintainer: sandy@sandymaguire.me
synopsis: Types and a small DSL for working with netlistsvg
changelog: |
# Changelog for circus
## Unreleased ch... | <|file_sep|>original/packages/ci/circus.yaml
<|file_sep|>current/packages/ci/circus.yaml
<|file_sep|>updated/packages/ci/circus.yaml
homepage: https://github.com/isovector/circus#readme
changelog-type: markdown
hash: 04f61dc224f97dfbc4e166cd45f4aa3b70ad11ff6419a00f1a8d13d1f7aa77db
test-bench-deps: {}
maintainer: sand... | 1f6c12d3b45ce11b1de64f3c72d70fd1ac3b6c21 | packages/ci/circus.yaml | packages/ci/circus.yaml | YAML |
<|file_sep|>tools/tests/cordova-platforms.js.diff
original:
var run;
updated:
let run;
<|file_sep|>original/tools/tests/cordova-platforms.js
// Starting a run
s.createApp("myapp", "package-tests");
s.cd("myapp");
run = s.run("run", "android");
run.matchErr("Please add the Android platform to your projec... |
// Starting a run
s.createApp("myapp", "package-tests");
s.cd("myapp");
run = s.run("run", "android");
run.matchErr("Please add the Android platform to your project first");
run.match("meteor add-platform android");
run.expectExit(1);
run = s.run("add-platform", "android");
// Cordova may need to d... | <|file_sep|>tools/tests/cordova-platforms.js.diff
original:
var run;
updated:
let run;
<|file_sep|>original/tools/tests/cordova-platforms.js
// Starting a run
s.createApp("myapp", "package-tests");
s.cd("myapp");
run = s.run("run", "android");
run.matchErr("Please add the Android platform to your projec... | 932750f77df037b7b4b3e5d04bcb79522588ee27 | tools/tests/cordova-platforms.js | tools/tests/cordova-platforms.js | JavaScript |
<|file_sep|>original/README.md
[Groonga]:http://groonga.org/
[Rroonga]:http://ranguba.org/#about-rroonga
## Prepare
$ git clone https://github.com/feedcellar/feedcellar-heroku.git
$ cd feedcellar-heroku
## Register feed URLs
$ editor resources.yaml
## Deploy
$ heroku apps:create --buildpack https:... |
$ git clone https://github.com/feedcellar/feedcellar-heroku.git
$ cd feedcellar-heroku
## Register feed URLs
$ editor resources.yaml
## Deploy
$ heroku apps:create --buildpack https://codon-buildpacks.s3.amazonaws.com/buildpacks/groonga/rroonga.tgz
$ git push heroku master
$ heroku apps:ope... | <|file_sep|>original/README.md
[Groonga]:http://groonga.org/
[Rroonga]:http://ranguba.org/#about-rroonga
## Prepare
$ git clone https://github.com/feedcellar/feedcellar-heroku.git
$ cd feedcellar-heroku
## Register feed URLs
$ editor resources.yaml
## Deploy
$ heroku apps:create --buildpack https:... | 7a3c64a2352555b55a82e0f9d07a7cec2f092326 | README.md | README.md | Markdown |
<|file_sep|>original/examples/automatic-labelling-from-repository/variables.tf
* 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... | * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language gover... | <|file_sep|>original/examples/automatic-labelling-from-repository/variables.tf
* 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... | 48ac4e6f90d66c8381ca161ce52987b48bf02d72 | examples/automatic-labelling-from-repository/variables.tf | examples/automatic-labelling-from-repository/variables.tf | HCL |
<|file_sep|>original/data/transition-sites/dft.yml
---
site: dft
whitehall_slug: department-for-transport
host: www.dft.gov.uk
redirection_date: 16th November 2012
tna_timestamp: 20121107103953 # Partial: update with care - TNA will have pages from www.gov.uk
title: Department for Transport
furl: www.gov.uk/dft
homepag... | ---
site: dft
whitehall_slug: department-for-transport
host: www.dft.gov.uk
redirection_date: 16th November 2012
tna_timestamp: 20121107103953 # Partial: update with care - TNA will have pages from www.gov.uk
title: Department for Transport
furl: www.gov.uk/dft
homepage: https://www.gov.uk/government/organisations/depa... | <|file_sep|>original/data/transition-sites/dft.yml
---
site: dft
whitehall_slug: department-for-transport
host: www.dft.gov.uk
redirection_date: 16th November 2012
tna_timestamp: 20121107103953 # Partial: update with care - TNA will have pages from www.gov.uk
title: Department for Transport
furl: www.gov.uk/dft
homepag... | 809d4dcdf5e604a93ceaf4ced8da39fa74d80e26 | data/transition-sites/dft.yml | data/transition-sites/dft.yml | YAML |
<|file_sep|>original/cmake/qibuild/modules/qt5utils.cmake
foreach(_lib ${${name}_LIBRARIES})
if(WIN32)
get_target_property(_imported_lib_debug ${_lib} IMPORTED_IMPLIB_DEBUG)
get_target_property(_imported_lib_release ${_lib} IMPORTED_IMPLIB_RELEASE)
list(APPEND ${prefix}_LIBRARIES
optimiz... | foreach(_lib ${${name}_LIBRARIES})
if(WIN32)
get_target_property(_imported_lib_debug ${_lib} IMPORTED_IMPLIB_DEBUG)
get_target_property(_imported_lib_release ${_lib} IMPORTED_IMPLIB_RELEASE)
list(APPEND ${prefix}_LIBRARIES
optimized ${_imported_lib_release}
debug ${_imported_lib_... | <|file_sep|>original/cmake/qibuild/modules/qt5utils.cmake
foreach(_lib ${${name}_LIBRARIES})
if(WIN32)
get_target_property(_imported_lib_debug ${_lib} IMPORTED_IMPLIB_DEBUG)
get_target_property(_imported_lib_release ${_lib} IMPORTED_IMPLIB_RELEASE)
list(APPEND ${prefix}_LIBRARIES
optimiz... | fe269e6a1636a2e4f2c01edc1e04ecbb50a473c9 | cmake/qibuild/modules/qt5utils.cmake | cmake/qibuild/modules/qt5utils.cmake | CMake |
<|file_sep|>original/mince_model.gemspec
# -*- encoding: utf-8 -*-
require File.expand_path('../lib/mince_model/version', __FILE__)
Gem::Specification.new do |gem|
gem.name = "mince_model"
gem.version = MinceModel::VERSION
gem.authors = ["Matt Simpson", "Craig Buchek"]
gem.email = ... | # -*- encoding: utf-8 -*-
require File.expand_path('../lib/mince_model/version', __FILE__)
Gem::Specification.new do |gem|
gem.name = "mince_model"
gem.version = MinceModel::VERSION
gem.authors = ["Matt Simpson", "Craig Buchek"]
gem.email = ["matt.simpson3@gmail.com"]
gem.descrip... | <|file_sep|>original/mince_model.gemspec
# -*- encoding: utf-8 -*-
require File.expand_path('../lib/mince_model/version', __FILE__)
Gem::Specification.new do |gem|
gem.name = "mince_model"
gem.version = MinceModel::VERSION
gem.authors = ["Matt Simpson", "Craig Buchek"]
gem.email = ... | aced755e6ac1e0d92a3cd0eb725900281beb0e18 | mince_model.gemspec | mince_model.gemspec | Ruby |
<|file_sep|>original/javascript/package.json
],
"author": "Aslak Hellesøy",
"license": "MIT",
"bugs": {
"url": "https://github.com/cucumber/cucumber/issues"
},
"homepage": "https://github.com/cucumber/gherkin-javascript",
"devDependencies": {
"@cucumber/gherkin-streams": "^5.0.1",
"@types/moch... | ],
"author": "Aslak Hellesøy",
"license": "MIT",
"bugs": {
"url": "https://github.com/cucumber/cucumber/issues"
},
"homepage": "https://github.com/cucumber/gherkin-javascript",
"devDependencies": {
"@cucumber/gherkin-streams": "^5.0.1",
"@types/mocha": "9.1.1",
"@types/node": "16.11.53",
... | <|file_sep|>original/javascript/package.json
],
"author": "Aslak Hellesøy",
"license": "MIT",
"bugs": {
"url": "https://github.com/cucumber/cucumber/issues"
},
"homepage": "https://github.com/cucumber/gherkin-javascript",
"devDependencies": {
"@cucumber/gherkin-streams": "^5.0.1",
"@types/moch... | bddeff957d387c16178c58bad8ca8b0f8befea6e | javascript/package.json | javascript/package.json | JSON |
<|file_sep|>app/models/payment_provider_setup.rb.diff
original:
# @class PaymentProviderSetup
updated:
# @module PaymentProviderSetup
<|file_sep|>app/models/payment_provider_setup.rb.diff
original:
class PaymentProviderSetup
include ActiveModel::Model
attr_accessor :setup_type, :redirect, :redirect_url, :... | def self.call(cart:, payment_provider_id:, ip_address:, success_url:, cancel_url:, allow_shipping_change:, callback_url:, use_mobile_payments:)
# Call PaypalExpress::Setup service class, which will talk to active merchant gem for setup process
setup ||= ::FlexCommerce::Payments::PaypalExpress::Setup.new... | <|file_sep|>app/models/payment_provider_setup.rb.diff
original:
# @class PaymentProviderSetup
updated:
# @module PaymentProviderSetup
<|file_sep|>app/models/payment_provider_setup.rb.diff
original:
class PaymentProviderSetup
include ActiveModel::Model
attr_accessor :setup_type, :redirect, :redirect_url, :... | 10855154e3a8ab99381369774ec69ac966f40d0a | app/models/payment_provider_setup.rb | app/models/payment_provider_setup.rb | Ruby |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.