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/lib/dimples/category.rb
# frozen_string_literal: true
module Dimples
class Category
attr_accessor :name
attr_accessor :slug
attr_accessor :posts
def initialize(site, slug)
@site = site
@slug = slug
@name = @site.config.category_names[slug.to_sym] || slug.capita... | # frozen_string_literal: true
module Dimples
class Category
attr_accessor :name
attr_accessor :slug
attr_accessor :posts
def initialize(site, slug)
@site = site
@slug = slug
@name = @site.config.category_names[slug.to_sym] || slug.capitalize
@posts = []
end
def insp... | <|file_sep|>original/lib/dimples/category.rb
# frozen_string_literal: true
module Dimples
class Category
attr_accessor :name
attr_accessor :slug
attr_accessor :posts
def initialize(site, slug)
@site = site
@slug = slug
@name = @site.config.category_names[slug.to_sym] || slug.capita... | 70599afd4175d3c83b91cd4c104dc730bb19a812 | lib/dimples/category.rb | lib/dimples/category.rb | Ruby |
<|file_sep|>ansible/roles/atom/tasks/setup-Fedora.yml.diff
original:
command: "dnf list installed | grep atom | grep {{ atom.version }}"
updated:
command: "dnf list installed atom"
<|file_sep|>ansible/roles/atom/tasks/setup-Fedora.yml.diff
original:
updated:
become: yes
<|file_sep|>ansible/roles/atom/tasks/set... |
- debug:
msg: "current_version : {{ current_version.stdout }}"
- block:
- name : unistall older version
package:
name: atom
state: absent
become: yes
- name: install the atom packages
package:
name: "{{ item }}"
state: present
with_items:
- "{{ atom.url_rpm}}"
... | <|file_sep|>ansible/roles/atom/tasks/setup-Fedora.yml.diff
original:
command: "dnf list installed | grep atom | grep {{ atom.version }}"
updated:
command: "dnf list installed atom"
<|file_sep|>ansible/roles/atom/tasks/setup-Fedora.yml.diff
original:
updated:
become: yes
<|file_sep|>ansible/roles/atom/tasks/set... | 9200199659da1376fceb786545245cd7d0712eb8 | ansible/roles/atom/tasks/setup-Fedora.yml | ansible/roles/atom/tasks/setup-Fedora.yml | YAML |
<|file_sep|>original/client/app/templates/components/order-form.hbs
<span class="form__label-text">Ваше имя</span>
{{input value=manager class="form__field"}}
</label>
</div>
<div class="form__row">
<label class="form__label">
<span class="form__label-text">Время заказа</span>
{{inp... | <span class="form__label-text">Ваше имя</span>
{{input value=manager class="form__field"}}
</label>
</div>
<div class="form__row">
<label class="form__label">
<span class="form__label-text">Время заказа</span>
{{input value=orderTime class="form__field"}}
</label>
</div>
<d... | <|file_sep|>original/client/app/templates/components/order-form.hbs
<span class="form__label-text">Ваше имя</span>
{{input value=manager class="form__field"}}
</label>
</div>
<div class="form__row">
<label class="form__label">
<span class="form__label-text">Время заказа</span>
{{inp... | 502422c09bc38524cbe949ca55526a0f05a7de39 | client/app/templates/components/order-form.hbs | client/app/templates/components/order-form.hbs | Handlebars |
<|file_sep|>original/vendor/elevio-shim.js
return this.replace(/([A-Z])/g, function(string) {
return '_' + string.toLowerCase();
});
};
(function() {
'use strict';
var _elev = window._elev = {};
function _setup(config) {
if (!config.enabled) {
return;
}
var i, e;
i = document.crea... | return this.replace(/([A-Z])/g, function(string) {
return '_' + string.toLowerCase();
});
};
(function() {
'use strict';
var _elev = window._elev = {};
function _setup(config) {
if (config.enabled === false) {
return;
}
var i, e;
i = document.createElement("script"), i.type = 'tex... | <|file_sep|>original/vendor/elevio-shim.js
return this.replace(/([A-Z])/g, function(string) {
return '_' + string.toLowerCase();
});
};
(function() {
'use strict';
var _elev = window._elev = {};
function _setup(config) {
if (!config.enabled) {
return;
}
var i, e;
i = document.crea... | a7e9351e57c3b661e1863add2c7472196e6428fe | vendor/elevio-shim.js | vendor/elevio-shim.js | JavaScript |
<|file_sep|>metadata.json.diff
original:
"version_requirement": ">= 3.0.0"
updated:
"version_requirement": ">= 4.6.0 < 5.0.0"
<|file_sep|>original/metadata.json
},
{
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"10.04",
"12.04",
"14.04"
]
}
... | "14.04"
]
}
],
"dependencies": [
{
"name": "puppetlabs/stdlib",
"version_requirement": ">= 4.6.0 < 5.0.0"
},
{
"name": "puppetlabs/concat",
"version_requirement": ">= 1.2.5 < 3.0.0"
}
],
"requirements": [
{
"name": "puppet",
"version_requ... | <|file_sep|>metadata.json.diff
original:
"version_requirement": ">= 3.0.0"
updated:
"version_requirement": ">= 4.6.0 < 5.0.0"
<|file_sep|>original/metadata.json
},
{
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"10.04",
"12.04",
"14.04"
]
}
... | c16a621bf2bb7f08c6819905b48d62281fa3eb48 | metadata.json | metadata.json | JSON |
<|file_sep|>original/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Loader/TemplateLocatorTest.php
<|file_sep|>current/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Loader/TemplateLocatorTest.php
<|file_sep|>updated/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Loader/TemplateLocatorTest.php | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Bundle\FrameworkBundle\Tests\Templating\Loader;
use Symfony\Bun... | <|file_sep|>original/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Loader/TemplateLocatorTest.php
<|file_sep|>current/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Loader/TemplateLocatorTest.php
<|file_sep|>updated/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Loader/TemplateLocatorTest.php
<?php
/... | 27a327e0de1585ce4ce33706ab2f6598fc230380 | src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Loader/TemplateLocatorTest.php | src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Loader/TemplateLocatorTest.php | PHP |
<|file_sep|>m4/ltversion.m4.diff
original:
# Copyright (C) 2004 Free Software Foundation, Inc.
updated:
# Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
<|file_sep|>m4/ltversion.m4.diff
original:
# serial 3337 ltversion.m4
updated:
# serial 4179 ltversion.m4
<|file_sep|>m4/ltversion.m4.diff
original:
... | # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
# Written by Scott James Remnant, 2004
#
# This file is free software; the Free Software Foundation gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
# @configure_input@
# ... | <|file_sep|>m4/ltversion.m4.diff
original:
# Copyright (C) 2004 Free Software Foundation, Inc.
updated:
# Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
<|file_sep|>m4/ltversion.m4.diff
original:
# serial 3337 ltversion.m4
updated:
# serial 4179 ltversion.m4
<|file_sep|>m4/ltversion.m4.diff
original:
... | efe1dc777f32588763d927ebb8536d4296d67959 | m4/ltversion.m4 | m4/ltversion.m4 | M4 |
<|file_sep|>original/vagrant_base/lighttpd/recipes/default.rb
<|file_sep|>current/vagrant_base/lighttpd/recipes/default.rb
<|file_sep|>updated/vagrant_base/lighttpd/recipes/default.rb | #
# Cookbook Name:: lighttpd
# Recipe:: default
# Copyright 2011, Travis CI development team
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitatio... | <|file_sep|>original/vagrant_base/lighttpd/recipes/default.rb
<|file_sep|>current/vagrant_base/lighttpd/recipes/default.rb
<|file_sep|>updated/vagrant_base/lighttpd/recipes/default.rb
#
# Cookbook Name:: lighttpd
# Recipe:: default
# Copyright 2011, Travis CI development team
#
# Permission is hereby granted, free of... | 8c9ed569099964ddcfed5ba00e568b1959c31128 | vagrant_base/lighttpd/recipes/default.rb | vagrant_base/lighttpd/recipes/default.rb | Ruby |
<|file_sep|>original/README.md
# dotfiles
[](https://travis-ci.org/hiroto-k/dotfiles)
[](https://github.com/hiroto-k/dotfiles/blob/master/LICENSE)
Unix/Linux OS用の設定ファイル。
##... | # dotfiles
[](https://travis-ci.org/hiroto-k/dotfiles)
[](https://github.com/hiroto-k/dotfiles/blob/master/LICENSE)
Unix/Linux OSとmacOS用の設定ファイル。
## Install
このリポジトリを``git cl... | <|file_sep|>original/README.md
# dotfiles
[](https://travis-ci.org/hiroto-k/dotfiles)
[](https://github.com/hiroto-k/dotfiles/blob/master/LICENSE)
Unix/Linux OS用の設定ファイル。
##... | 6bca7eebeb0e26ce4b71d3dd5e88790137cdfca8 | README.md | README.md | Markdown |
<|file_sep|>original/db/migrate/20111206181556_increase_length_of_time_entries_notes.rb
class IncreaseLengthOfTimeEntriesNotes < ActiveRecord::Migration
def self.up
change_column :time_entries, :notes, :string, :limit => 500
end
def self.down
change_column :time_entries, :notes, :string
end
end
<|file_... | class IncreaseLengthOfTimeEntriesNotes < ActiveRecord::Migration
def self.up
change_column :time_entries, :notes, :string, :limit => 500
end
def self.down
change_column :time_entries, :notes, :string, :limit => 255
end
end | <|file_sep|>original/db/migrate/20111206181556_increase_length_of_time_entries_notes.rb
class IncreaseLengthOfTimeEntriesNotes < ActiveRecord::Migration
def self.up
change_column :time_entries, :notes, :string, :limit => 500
end
def self.down
change_column :time_entries, :notes, :string
end
end
<|file_... | 0c691bec39bf5978a00fe1e80e6587bb454d0d17 | db/migrate/20111206181556_increase_length_of_time_entries_notes.rb | db/migrate/20111206181556_increase_length_of_time_entries_notes.rb | Ruby |
<|file_sep|>original/droidbox/src/main/java/com/github/jackparisi/droidbox/utility/ScreenUtils.kt
package com.github.jackparisi.droidbox.utility
import android.content.Context
import android.util.TypedValue
/**
* Created by Giacomo Parisi on 21/08/17.
* https://github.com/JackParisi
*/
fun dpToPx(dp: Float, cont... | package com.github.jackparisi.droidbox.utility
import android.content.Context
import android.util.TypedValue
/**
* Created by Giacomo Parisi on 21/08/17.
* https://github.com/JackParisi
*/
/**
*
* Convert the float value for dp to pixel
*
* @param dp The value in dp
* @param context The context object for ac... | <|file_sep|>original/droidbox/src/main/java/com/github/jackparisi/droidbox/utility/ScreenUtils.kt
package com.github.jackparisi.droidbox.utility
import android.content.Context
import android.util.TypedValue
/**
* Created by Giacomo Parisi on 21/08/17.
* https://github.com/JackParisi
*/
fun dpToPx(dp: Float, cont... | ba00043836754b981edc79ae42859493938dc92e | droidbox/src/main/java/com/github/jackparisi/droidbox/utility/ScreenUtils.kt | droidbox/src/main/java/com/github/jackparisi/droidbox/utility/ScreenUtils.kt | Kotlin |
<|file_sep|>original/importkit/yaml/schema.py
import subprocess
class YamlValidationError(Exception): pass
class Base(object):
schema_file = ''
@classmethod
def validate(cls, filename):
kwalify = subprocess.Popen(['kwalify', '-lf', cls.schema_file, filename],
std... | import subprocess
class YamlValidationError(Exception): pass
class Base(object):
schema_file = ''
@classmethod
def validate(cls, meta):
if 'marshalled' in meta and meta['marshalled']:
return
cls.validatefile(meta['filename'])
@classmethod
def validatefile(cls, filenam... | <|file_sep|>original/importkit/yaml/schema.py
import subprocess
class YamlValidationError(Exception): pass
class Base(object):
schema_file = ''
@classmethod
def validate(cls, filename):
kwalify = subprocess.Popen(['kwalify', '-lf', cls.schema_file, filename],
std... | bc50210afc3cfb43441fe431e34e04db612f87c7 | importkit/yaml/schema.py | importkit/yaml/schema.py | Python |
<|file_sep|>original/src/InviteTrait.php
namespace Junaidnasir\Larainvite;
trait InviteTrait
{
/**
* return all invitation as laravel collection
* @return hasMany invitation Models
*/
public function invitations()
{
return $this->hasMany('Junaidnasir\Larainvite\Models\LaraInviteModel... | namespace Junaidnasir\Larainvite;
trait InviteTrait
{
/**
* return all invitation as laravel collection
* @return hasMany invitation Models
*/
public function invitations()
{
return $this->hasMany(config('larainvite.InvitationModel'));
}
/**
* return successful initatio... | <|file_sep|>original/src/InviteTrait.php
namespace Junaidnasir\Larainvite;
trait InviteTrait
{
/**
* return all invitation as laravel collection
* @return hasMany invitation Models
*/
public function invitations()
{
return $this->hasMany('Junaidnasir\Larainvite\Models\LaraInviteModel... | ec38d229eebb45cb816baeed02f78c47ed3c685c | src/InviteTrait.php | src/InviteTrait.php | PHP |
<|file_sep|>original/gopherchan/server.go
Port: port,
Dispatcher: dispatcher,
}
}
func (server *Server) URL() *url.URL {
return server.GopherServer().URL()
}
func (server *Server) Address() string {
return "localhost:" + server.Port
}
func (server *Server) GopherServer() *gopher.Server {
if server.go... | Port: port,
Dispatcher: dispatcher,
}
}
func (server *Server) URL() *url.URL {
return server.GopherServer().URL()
}
func (server *Server) Address() string {
return ":" + server.Port
}
func (server *Server) GopherServer() *gopher.Server {
if server.gopherServer == nil {
server.gopherServer = gophe... | <|file_sep|>original/gopherchan/server.go
Port: port,
Dispatcher: dispatcher,
}
}
func (server *Server) URL() *url.URL {
return server.GopherServer().URL()
}
func (server *Server) Address() string {
return "localhost:" + server.Port
}
func (server *Server) GopherServer() *gopher.Server {
if server.go... | 448b9181662341e1472283370ffa2c1a78d09ff2 | gopherchan/server.go | gopherchan/server.go | Go |
<|file_sep|>original/src/Skeleton.php
<?php
namespace Graze\Skeleton;
class Skeleton
{
/**
* @var string
*/
protected $bigSkeleton;
/**
* @var string
*/
protected $smallSkeleton;
/**
* @var string
*/
protected $dogSkeleton;
<|file_sep|>current/src/Skeleton.php
... | <?php
/**
* This file is part of graze/:package-name.
*
* Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license https://github.com/graze/package-name/blob/maste... | <|file_sep|>original/src/Skeleton.php
<?php
namespace Graze\Skeleton;
class Skeleton
{
/**
* @var string
*/
protected $bigSkeleton;
/**
* @var string
*/
protected $smallSkeleton;
/**
* @var string
*/
protected $dogSkeleton;
<|file_sep|>current/src/Skeleton.php
... | 1cfe90f53b27a8e3777f9ad4185cd2609bbb6681 | src/Skeleton.php | src/Skeleton.php | PHP |
<|file_sep|>recipes/autodynatrace/meta.yaml.diff
original:
- python !=3.0,!=3.1,!=3.2,!=3.3
updated:
- python >=3.6
<|file_sep|>original/recipes/autodynatrace/meta.yaml
noarch: python
script: {{ PYTHON }} -m pip install . -vv
requirements:
host:
- pip
- python !=3.0,!=3.1,!=3.2,!=3.3
run:
-... | noarch: python
script: {{ PYTHON }} -m pip install . -vv
requirements:
host:
- pip
- python >=3.6
run:
- autowrapt >=1.0
- oneagent-sdk >=1.3.0
- python >=3.6
- six >=1.10.0
- wrapt >=1.11.2
test:
imports:
- autodynatrace
- autodynatrace.wrappers
commands:
- pip che... | <|file_sep|>recipes/autodynatrace/meta.yaml.diff
original:
- python !=3.0,!=3.1,!=3.2,!=3.3
updated:
- python >=3.6
<|file_sep|>original/recipes/autodynatrace/meta.yaml
noarch: python
script: {{ PYTHON }} -m pip install . -vv
requirements:
host:
- pip
- python !=3.0,!=3.1,!=3.2,!=3.3
run:
-... | 40caf566ee1699cc232d430298544b3e69f44941 | recipes/autodynatrace/meta.yaml | recipes/autodynatrace/meta.yaml | YAML |
<|file_sep|>original/lib/facter/mac_encryption_enabled.rb
#!/usr/bin/env ruby
#mac_encryption_enabled.rb
require 'facter'
Facter.add(:mac_encryption_enabled) do
confine :kernel => "Darwin"
setcode do
osver = Facter.value('macosx_productversion_major')
if osver == "10.8" or osver =="10.9"
output... | #!/usr/bin/env ruby
#mac_encryption_enabled.rb
require 'facter'
Facter.add(:mac_encryption_enabled) do
confine :kernel => "Darwin"
setcode do
osver = Facter.value('macosx_productversion_major')
if osver == "10.8" or osver =="10.9" or osver == "10.10"
output = Facter::Util::Resolution.exec("/usr... | <|file_sep|>original/lib/facter/mac_encryption_enabled.rb
#!/usr/bin/env ruby
#mac_encryption_enabled.rb
require 'facter'
Facter.add(:mac_encryption_enabled) do
confine :kernel => "Darwin"
setcode do
osver = Facter.value('macosx_productversion_major')
if osver == "10.8" or osver =="10.9"
output... | 23f4a4974cbda0bec7373dabe442c5f4fe2bfe73 | lib/facter/mac_encryption_enabled.rb | lib/facter/mac_encryption_enabled.rb | Ruby |
<|file_sep|>original/.travis.yml
sudo: false
language: node_js
node_js:
- '4'
- '6'
- '8'
branches:
only:
- master
- travis-ci
install:
- npm install -g npm
- npm install --no-package-lock --no-save
- npm install -g istanbul coveralls
<|file_sep|>current/.travis.yml
sudo: false
language: node... | sudo: false
language: node_js
node_js:
- '4'
- '6'
- '8'
branches:
only:
- master
- travis-ci
install:
- npm install --no-package-lock --no-save
- npm install -g istanbul coveralls | <|file_sep|>original/.travis.yml
sudo: false
language: node_js
node_js:
- '4'
- '6'
- '8'
branches:
only:
- master
- travis-ci
install:
- npm install -g npm
- npm install --no-package-lock --no-save
- npm install -g istanbul coveralls
<|file_sep|>current/.travis.yml
sudo: false
language: node... | 96811e0779f031b967a5eedbb9e900a4aa047ca6 | .travis.yml | .travis.yml | YAML |
<|file_sep|>.github/workflows/node.js.yml.diff
original:
node-version: [10.x, 12.x, 14.x, 15.x]
updated:
node-version: [14.x, 16.x]
<|file_sep|>.github/workflows/node.js.yml.diff
original:
- uses: coverallsapp/github-action@v1.1.2
updated:
- uses: coverallsapp/github-action@v1.1.3
<|file_sep|>or... | - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
- uses: coverallsapp/github-action@v1.1.3
with:
github-token: ${{ secrets.github... | <|file_sep|>.github/workflows/node.js.yml.diff
original:
node-version: [10.x, 12.x, 14.x, 15.x]
updated:
node-version: [14.x, 16.x]
<|file_sep|>.github/workflows/node.js.yml.diff
original:
- uses: coverallsapp/github-action@v1.1.2
updated:
- uses: coverallsapp/github-action@v1.1.3
<|file_sep|>or... | 3e5487bd39e7ec49e4156982ae7d9eda3288de3d | .github/workflows/node.js.yml | .github/workflows/node.js.yml | YAML |
<|file_sep|>original/config/nvim/settings/folding.vim
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Folding Settings
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set foldenable " Enable folding
set foldlevelstart=10 " Open most folds by defa... | """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Folding Settings
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set foldenable " Enable folding
set foldlevelstart=10 " Open most folds by default
set foldnestmax=10 " TOO MANY FOLDS D=<
set fol... | <|file_sep|>original/config/nvim/settings/folding.vim
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Folding Settings
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set foldenable " Enable folding
set foldlevelstart=10 " Open most folds by defa... | f3272057cde287650dfc1d92c5f7c0cfacd88551 | config/nvim/settings/folding.vim | config/nvim/settings/folding.vim | VimL |
<|file_sep|>original/tests/test_managed.py
<|file_sep|>current/tests/test_managed.py
<|file_sep|>updated/tests/test_managed.py | import glob
from jgo.jgo import InvalidEndpoint
import jgo
import os
import pathlib
import unittest
import shutil
import tempfile
import logging
_logger = logging.getLogger(__name__)
_logger.level = logging.INFO
SJC_VERSION = "2.87.0"
SJC_OPTIONAL_VERSION = "1.0.0"
MANAGED_ENDPOINT = (
"org.scijava:scijava-commo... | <|file_sep|>original/tests/test_managed.py
<|file_sep|>current/tests/test_managed.py
<|file_sep|>updated/tests/test_managed.py
import glob
from jgo.jgo import InvalidEndpoint
import jgo
import os
import pathlib
import unittest
import shutil
import tempfile
import logging
_logger = logging.getLogger(__name__)
_logge... | a16aa19208ba9dc23708ade128383f06a3df3f77 | tests/test_managed.py | tests/test_managed.py | Python |
<|file_sep|>original/client/controllers/concept/concept_index.js
data: function () {
},
action: function () {
this.render();
}
});
ReportViewController = AuthRouteController.extend({
waitOn: function () {
return Meteor.subscribe('report', this.params._id);
},
data: function () {
return Reports.findO... |
data: function () {
},
action: function () {
this.render();
}
});
ReportViewController = RouteController.extend({
waitOn: function () {
return Meteor.subscribe('report', this.params._id);
},
data: function () {
return Reports.findOne({_id: this.params._id});
},
action: function () {
this.render... | <|file_sep|>original/client/controllers/concept/concept_index.js
data: function () {
},
action: function () {
this.render();
}
});
ReportViewController = AuthRouteController.extend({
waitOn: function () {
return Meteor.subscribe('report', this.params._id);
},
data: function () {
return Reports.findO... | fb7ac6183f9bfdc435480ad071a6c10bf4deb128 | client/controllers/concept/concept_index.js | client/controllers/concept/concept_index.js | JavaScript |
<|file_sep|>original/docs/index.rst
------------------------------------
We wanted to address a few issues with existing cryptography libraries in
Python:
* Lack of PyPy support
* Lack of maintenance
* Use of poor implementations of algorithms (i.e. ones with known side-channel
attacks)
* Lack of high level, "Crypt... | ------------------------------------
We wanted to address a few issues with existing cryptography libraries in
Python:
* Lack of PyPy support
* Lack of maintenance
* Use of poor implementations of algorithms (i.e. ones with known side-channel
attacks)
* Lack of high level, "Cryptography for humans", APIs
* Absence ... | <|file_sep|>original/docs/index.rst
------------------------------------
We wanted to address a few issues with existing cryptography libraries in
Python:
* Lack of PyPy support
* Lack of maintenance
* Use of poor implementations of algorithms (i.e. ones with known side-channel
attacks)
* Lack of high level, "Crypt... | aa66554116d47ef725b5617b814034e0140560a8 | docs/index.rst | docs/index.rst | reStructuredText |
<|file_sep|>original/requirements_dev.txt
pip==19.1.1
bumpversion==0.5.3
wheel==0.33.4
watchdog==0.9.0
flake8==3.7.7
tox==3.10.0
coverage==4.5.3
Sphinx==1.8.5
cryptography==2.6.1
PyYAML==5.1b5
pytest==4.5.0
pytest-cov==2.7.1
coveralls==1.7.0
pytest-runner==4.4
numpy==1.16.3
pandas==0.24.2
<|file_sep|>current/requiremen... | pip==19.1.1
bumpversion==0.5.3
wheel==0.33.4
watchdog==0.9.0
flake8==3.7.7
tox==3.10.0
coverage==4.5.3
Sphinx==1.8.5
cryptography==2.6.1
PyYAML==5.1b5
pytest==4.5.0
pytest-cov==2.7.1
coveralls==1.7.0
pytest-runner==4.4
numpy==1.16.4
pandas==0.24.2 | <|file_sep|>original/requirements_dev.txt
pip==19.1.1
bumpversion==0.5.3
wheel==0.33.4
watchdog==0.9.0
flake8==3.7.7
tox==3.10.0
coverage==4.5.3
Sphinx==1.8.5
cryptography==2.6.1
PyYAML==5.1b5
pytest==4.5.0
pytest-cov==2.7.1
coveralls==1.7.0
pytest-runner==4.4
numpy==1.16.3
pandas==0.24.2
<|file_sep|>current/requiremen... | 166801f3e48ea4c6e8f434d46c65f8b9102b506f | requirements_dev.txt | requirements_dev.txt | Text |
<|file_sep|>original/app/models/gobierto_citizens_charters/commitment.rb
include GobiertoCommon::UrlBuildable
include GobiertoCommon::Sluggable
belongs_to :charter, -> { with_archived }
has_many :editions, dependent: :destroy
enum visibility_level: { draft: 0, active: 1 }
validates :slug, uni... | include GobiertoCommon::UrlBuildable
include GobiertoCommon::Sluggable
belongs_to :charter, -> { with_archived }
has_many :editions, dependent: :destroy
enum visibility_level: { draft: 0, active: 1 }
validates :slug, uniqueness: { scope: :charter }
translates :title
translates :descri... | <|file_sep|>original/app/models/gobierto_citizens_charters/commitment.rb
include GobiertoCommon::UrlBuildable
include GobiertoCommon::Sluggable
belongs_to :charter, -> { with_archived }
has_many :editions, dependent: :destroy
enum visibility_level: { draft: 0, active: 1 }
validates :slug, uni... | 0a1c42a476d79afc4a9904eac1c016f6881c0439 | app/models/gobierto_citizens_charters/commitment.rb | app/models/gobierto_citizens_charters/commitment.rb | Ruby |
<|file_sep|>original/package.json
{
"name": "jquery-dateformat",
"version": "1.0.3",
"homepage": "https://github.com/phstc/jquery-dateFormat",
"description": "It's a jQuery Plugin to format Date outputs using JavaScript.",
"author": "Pablo Cantero <pablo@pablocantero.com>",
"license": "MIT License GPL",
"... | {
"name": "jquery-dateformat",
"version": "1.0.3",
"homepage": "https://github.com/phstc/jquery-dateFormat",
"description": "It's a jQuery Plugin to format Date outputs using JavaScript.",
"author": "Pablo Cantero <pablo@pablocantero.com>",
"license": "MIT License",
"ignore": [
"**/.*",
"node_modu... | <|file_sep|>original/package.json
{
"name": "jquery-dateformat",
"version": "1.0.3",
"homepage": "https://github.com/phstc/jquery-dateFormat",
"description": "It's a jQuery Plugin to format Date outputs using JavaScript.",
"author": "Pablo Cantero <pablo@pablocantero.com>",
"license": "MIT License GPL",
"... | 81f56ed78df739a2943e9e01b67aff0dfdca268a | package.json | package.json | JSON |
<|file_sep|>lib/gravatar-api/get.rb.diff
original:
def self.get(email)
updated:
def self.url(email, options = { :size => 80 })
hash = Gravatar.hash!(email)
return "http://www.gravatar.com/avatar/#{hash}/#{options[:size]}"
end
def url(email = @@email)
<|file_sep|>original/lib/gravatar-api/get.rb
class Gravatar
... | class Gravatar
def self.url(email, options = { :size => 80 })
hash = Gravatar.hash!(email)
return "http://www.gravatar.com/avatar/#{hash}/#{options[:size]}"
end
def url(email = @@email)
hash = Gravatar.hash!(email)
return "http://www.gravatar.com/avatar/#{hash}"
end
alias :get :url
end | <|file_sep|>lib/gravatar-api/get.rb.diff
original:
def self.get(email)
updated:
def self.url(email, options = { :size => 80 })
hash = Gravatar.hash!(email)
return "http://www.gravatar.com/avatar/#{hash}/#{options[:size]}"
end
def url(email = @@email)
<|file_sep|>original/lib/gravatar-api/get.rb
class Gravatar
... | fbef3f290bd226d22aacc77f0f93c4fa24ca3c5b | lib/gravatar-api/get.rb | lib/gravatar-api/get.rb | Ruby |
<|file_sep|>build/scripts/tools/unittests.lua.diff
original:
updated:
"NazaraGraphics",
"NazaraRenderer",
"NazaraNetwork",
<|file_sep|>original/build/scripts/tools/unittests.lua
}
TOOL.Includes = {
"../include"
}
TOOL.Files = {
"../tests/main.cpp",
"../tests/Engine/**.cpp"
}
TOOL.Libraries = {
"NazaraCore",
... |
TOOL.Includes = {
"../include"
}
TOOL.Files = {
"../tests/main.cpp",
"../tests/Engine/**.cpp"
}
TOOL.Libraries = {
"NazaraCore",
"NazaraAudio",
"NazaraLua",
"NazaraGraphics",
"NazaraRenderer",
"NazaraNetwork",
"NazaraNoise",
"NazaraPhysics",
"NazaraUtility"
} | <|file_sep|>build/scripts/tools/unittests.lua.diff
original:
updated:
"NazaraGraphics",
"NazaraRenderer",
"NazaraNetwork",
<|file_sep|>original/build/scripts/tools/unittests.lua
}
TOOL.Includes = {
"../include"
}
TOOL.Files = {
"../tests/main.cpp",
"../tests/Engine/**.cpp"
}
TOOL.Libraries = {
"NazaraCore",
... | 99fde96fee1e4ef797e993d22bb7d9a0544c9fc7 | build/scripts/tools/unittests.lua | build/scripts/tools/unittests.lua | Lua |
<|file_sep|>original/scripts/all-emoji.sh
<|file_sep|>current/scripts/all-emoji.sh
<|file_sep|>updated/scripts/all-emoji.sh | #!/usr/bin/env bash
# Gives a gitlab merge request all the emoji
# TODO: Make it possible for comment
set -e
[[ -z $DEBUG ]] || set -x
project="$1"
merge_request_id="$2"
token="$3"
if [[ -n $token ]]; then
GITLAB_TOKEN="$token"
fi
if [[ -z $project || -z $merge_request_id || -z $GITLAB_TOKEN ]]; then
echo "Usage:... | <|file_sep|>original/scripts/all-emoji.sh
<|file_sep|>current/scripts/all-emoji.sh
<|file_sep|>updated/scripts/all-emoji.sh
#!/usr/bin/env bash
# Gives a gitlab merge request all the emoji
# TODO: Make it possible for comment
set -e
[[ -z $DEBUG ]] || set -x
project="$1"
merge_request_id="$2"
token="$3"
if [[ -n $... | 8e7dce54c0bc3787ecdfaf9d4b3916664b8d8b82 | scripts/all-emoji.sh | scripts/all-emoji.sh | Shell |
<|file_sep|>original/wegas-core/src/main/resources/dbchangelogs/1444384806.xml
<|file_sep|>current/wegas-core/src/main/resources/dbchangelogs/1444384806.xml
<|file_sep|>updated/wegas-core/src/main/resources/dbchangelogs/1444384806.xml | <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd">
<chan... | <|file_sep|>original/wegas-core/src/main/resources/dbchangelogs/1444384806.xml
<|file_sep|>current/wegas-core/src/main/resources/dbchangelogs/1444384806.xml
<|file_sep|>updated/wegas-core/src/main/resources/dbchangelogs/1444384806.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="ht... | 806e073792bc96d3c1e3b03df56af5c24f19dfb0 | wegas-core/src/main/resources/dbchangelogs/1444384806.xml | wegas-core/src/main/resources/dbchangelogs/1444384806.xml | XML |
<|file_sep|>dev/contacts/contact.component.ts.diff
original:
import {Component} from "angular2/core";
updated:
import {Component} from 'angular2/core';
import {Router} from 'angular2/router';
import {Contact} from './contact';
<|file_sep|>dev/contacts/contact.component.ts.diff
original:
updated:
<button (c... | label {
display: inline-block;
width: 140px;
}
input {
width: 250px;
}
`]
})
export class ContactComponent {
public contact: Contact = null;
constructor(private _privateRouter: Router){};
onCreateNew(){
this._privat... | <|file_sep|>dev/contacts/contact.component.ts.diff
original:
import {Component} from "angular2/core";
updated:
import {Component} from 'angular2/core';
import {Router} from 'angular2/router';
import {Contact} from './contact';
<|file_sep|>dev/contacts/contact.component.ts.diff
original:
updated:
<button (c... | c237051c550cc92e5d6b0c13972f708d95ce123c | dev/contacts/contact.component.ts | dev/contacts/contact.component.ts | TypeScript |
<|file_sep|>appveyor.yml.diff
original:
updated:
- 7z a rime.zip %CD%\build\bin %CD%\build\lib
<|file_sep|>original/appveyor.yml
init:
- git --version
- cmake --version
- msbuild /version
- git config --global core.autocrlf true
install:
- .\appveyor.install.bat
build_script:
- .\build.bat test
after_... |
install:
- .\appveyor.install.bat
build_script:
- .\build.bat test
after_build:
- 7z a rime.zip %CD%\build\bin %CD%\build\lib
- dir build /s
before_test:
- copy /y build\lib\Release\rime.dll build\bin
test_script:
- cd build\bin
- echo "congmingdeRime{space}shurufa" | Release\rime_api_console.exe
ar... | <|file_sep|>appveyor.yml.diff
original:
updated:
- 7z a rime.zip %CD%\build\bin %CD%\build\lib
<|file_sep|>original/appveyor.yml
init:
- git --version
- cmake --version
- msbuild /version
- git config --global core.autocrlf true
install:
- .\appveyor.install.bat
build_script:
- .\build.bat test
after_... | c61d4b4f62922059c92f3c5811fb25aad76be572 | appveyor.yml | appveyor.yml | YAML |
<|file_sep|>src/Main.hs.diff
original:
import Jana.Ast
updated:
import System.Environment
<|file_sep|>src/Main.hs.diff
original:
fib :: Program
fib = ( ProcMain [] []
, [ Proc { procname = "fib"
, params = [ (Int, "x1"), (Int, "x2"), (Int, "n") ]
, body = [ If (BinOp Eq (LV $ Var "n"... |
import System.Environment
import Jana.Parser
main :: IO ()
main = do args <- getArgs
case args of
[file] -> parseFile (args !! 0) >>= print
_ -> putStrLn "usage: jana <file>" | <|file_sep|>src/Main.hs.diff
original:
import Jana.Ast
updated:
import System.Environment
<|file_sep|>src/Main.hs.diff
original:
fib :: Program
fib = ( ProcMain [] []
, [ Proc { procname = "fib"
, params = [ (Int, "x1"), (Int, "x2"), (Int, "n") ]
, body = [ If (BinOp Eq (LV $ Var "n"... | e04b9b7c44ee808db48830221ca32b936ed7ff70 | src/Main.hs | src/Main.hs | Haskell |
<|file_sep|>src/multi-transclude.js.diff
original:
angular.module('multi-transclude', []).directive('ngMultiTransclude', function(){
return {
link: function($scope, $element, $attrs, controller, transcludeFn){
var selector = '[name=' + $attrs.ngMultiTransclude + ']';
updated:
angular.module('multi-transclud... |
// Only link the clone if we haven't already; store
// the already-linked clone on the `compile` method's
// `$transclude` as that function is shared by all
// instances of the `ng-multi-transclude` directive,
// whereas `transcludeFn` is not. We can still u... | <|file_sep|>src/multi-transclude.js.diff
original:
angular.module('multi-transclude', []).directive('ngMultiTransclude', function(){
return {
link: function($scope, $element, $attrs, controller, transcludeFn){
var selector = '[name=' + $attrs.ngMultiTransclude + ']';
updated:
angular.module('multi-transclud... | 3ad18b404d1f170063086efbef0d670a7506b2e7 | src/multi-transclude.js | src/multi-transclude.js | JavaScript |
<|file_sep|>original/SoftU2FTool/KnownFacets.swift
//
// KnownFacets.swift
// SoftU2F
//
// Created by Benjamin P Toews on 1/27/17.
//
import Foundation
let KnownFacets: [Data: String] = [
SHA256.digest("https://github.com/u2f/trusted_facets"): "https://github.com",
SHA256.digest("https://demo.yubico.com")... | //
// KnownFacets.swift
// SoftU2F
//
// Created by Benjamin P Toews on 1/27/17.
//
import Foundation
let KnownFacets: [Data: String] = [
SHA256.digest("https://github.com/u2f/trusted_facets"): "https://github.com",
SHA256.digest("https://demo.yubico.com"): "https://demo.yubico.com",
SHA256.digest("htt... | <|file_sep|>original/SoftU2FTool/KnownFacets.swift
//
// KnownFacets.swift
// SoftU2F
//
// Created by Benjamin P Toews on 1/27/17.
//
import Foundation
let KnownFacets: [Data: String] = [
SHA256.digest("https://github.com/u2f/trusted_facets"): "https://github.com",
SHA256.digest("https://demo.yubico.com")... | cb0efa9ee065d49a119f6cdcedd617bca49340ca | SoftU2FTool/KnownFacets.swift | SoftU2FTool/KnownFacets.swift | Swift |
<|file_sep|>original/com.woltlab.wcf/templates/commentAddGuestDialog.tpl
<input type="text" id="username" name="username" value="{$username}" required class="long" autofocus="true">
{if $errorType[username]|isset}
<small class="innerError">
{if $errorType[username] == 'empty'}
{lang}wcf.global... | <input type="text" id="username" name="username" value="{$username}" required class="long" autofocus="true">
{if $errorType[username]|isset}
<small class="innerError">
{if $errorType[username] == 'empty'}
{lang}wcf.global.form.error.empty{/lang}
{else}
{lang}wcf.user.username.erro... | <|file_sep|>original/com.woltlab.wcf/templates/commentAddGuestDialog.tpl
<input type="text" id="username" name="username" value="{$username}" required class="long" autofocus="true">
{if $errorType[username]|isset}
<small class="innerError">
{if $errorType[username] == 'empty'}
{lang}wcf.global... | 9ca7d74f0d3311a620c0e1e75db0473a70819e6c | com.woltlab.wcf/templates/commentAddGuestDialog.tpl | com.woltlab.wcf/templates/commentAddGuestDialog.tpl | Smarty |
<|file_sep|>original/config-example.json
{
"port": 8001,
"log": {
"directory": "logs"
},
"repositories": [
{
"url": "https://github.com/user/repo",
"path": "/home/user/repo",
"deploy": "git pull && sh build.sh"
}, {
"url": "https://github.com/user/repo2",
"path": "/home... | {
"port": 8001,
"log": {
"directory": "logs"
},
"repositories": [
{
"url": "https://github.com/user/repo",
"path": "/home/user/repo",
"deploy": "git pull && sh build.sh"
}, {
"url": "https://github.com/user/repo2",
"path": "/home/user/repo2",
"secret": "asl98rr98f... | <|file_sep|>original/config-example.json
{
"port": 8001,
"log": {
"directory": "logs"
},
"repositories": [
{
"url": "https://github.com/user/repo",
"path": "/home/user/repo",
"deploy": "git pull && sh build.sh"
}, {
"url": "https://github.com/user/repo2",
"path": "/home... | 4a99e55eec14a053c7309843ea660f359cec4884 | config-example.json | config-example.json | JSON |
<|file_sep|>original/src/config/repository.php
<?php
return array(
'table' => '',
'instance' => function()
{
return App::make('Algorit\Synchronizer\Storage\SyncInterface');
},
'create' => function($system, $resource, $entity, $type)
{
$company_id = null;
$rep... | <?php
return array(
'table' => '',
'instance' => 'Algorit\Synchronizer\Storage\SyncInterface',
'create' => function($system, $resource, $entity, $type)
{
$company_id = null;
$representative_id = null;
// Not the best code in the world.
$class = explode('\\',... | <|file_sep|>original/src/config/repository.php
<?php
return array(
'table' => '',
'instance' => function()
{
return App::make('Algorit\Synchronizer\Storage\SyncInterface');
},
'create' => function($system, $resource, $entity, $type)
{
$company_id = null;
$rep... | a8a0ed85ed78d813241ea2b4b6dbc92298b5f2eb | src/config/repository.php | src/config/repository.php | PHP |
<|file_sep|>original/doc.go
/*
jwthelper is a Golang package that provides JWT(JSON Web Token) functions based on jwt-go.
*/
package jwthelper
<|file_sep|>current/doc.go
/*
jwthelper is a Golang package that provides JWT(JSON Web Token) functions based on jwt-go.
*/
package jwthelper
<|file_sep|>updated/doc.go | /*
Package jwthelper is a Golang package that provides JWT(JSON Web Token) functions based on jwt-go.
*/
package jwthelper | <|file_sep|>original/doc.go
/*
jwthelper is a Golang package that provides JWT(JSON Web Token) functions based on jwt-go.
*/
package jwthelper
<|file_sep|>current/doc.go
/*
jwthelper is a Golang package that provides JWT(JSON Web Token) functions based on jwt-go.
*/
package jwthelper
<|file_sep|>updated/doc.go
/*
... | e68fc68fc4427e636879e569dc8946675982f04a | doc.go | doc.go | Go |
<|file_sep|>original/package.json
"Matteo Collina <matteo.collina@gmail.com> (https://github.com/mcollina)"
],
"keywords": [
"buffer",
"buffers",
"stream",
"awesomesauce"
],
"license": "MIT",
"dependencies": {
"readable-stream": "~1.0.26"
},
"devDependencies": {
"tape": "~2.12.... | "Matteo Collina <matteo.collina@gmail.com> (https://github.com/mcollina)"
],
"keywords": [
"buffer",
"buffers",
"stream",
"awesomesauce"
],
"license": "MIT",
"dependencies": {
"stream-browserify": "~1.0.0",
"readable-stream": "~1.0.26"
},
"devDependencies": {
"tape": "~2.12... | <|file_sep|>original/package.json
"Matteo Collina <matteo.collina@gmail.com> (https://github.com/mcollina)"
],
"keywords": [
"buffer",
"buffers",
"stream",
"awesomesauce"
],
"license": "MIT",
"dependencies": {
"readable-stream": "~1.0.26"
},
"devDependencies": {
"tape": "~2.12.... | 557cc978acd3b37b044304de01308dde6bec2a36 | package.json | package.json | JSON |
<|file_sep|>app/desenvolvedor/sublime-text.sh.diff
original:
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
updated:
wget https://download.sublimetext.com/sublime-text_build-3126_amd64.deb -O /home/$usuario/Downloads/sublime-text_build-3126_amd64.deb
<|file_sep|>app/desenvolvedor/sub... | #!/bin/bash
usuario=$(./app/utils/UsuarioLogado.sh)
wget https://download.sublimetext.com/sublime-text_build-3126_amd64.deb -O /home/$usuario/Downloads/sublime-text_build-3126_amd64.deb
sudo dpkg -i /home/$usuario/Downloads/sublime-text_build-3126_amd64.deb
sudo apt-get -f install -y
sudo rm /home/$usuario/Downloa... | <|file_sep|>app/desenvolvedor/sublime-text.sh.diff
original:
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
updated:
wget https://download.sublimetext.com/sublime-text_build-3126_amd64.deb -O /home/$usuario/Downloads/sublime-text_build-3126_amd64.deb
<|file_sep|>app/desenvolvedor/sub... | 21e573bfdd694314c011fce2b5b4b6d52ecf14e9 | app/desenvolvedor/sublime-text.sh | app/desenvolvedor/sublime-text.sh | Shell |
<|file_sep|>lib/sonos/endpoint/upnp.rb.diff
original:
updated:
TIMEOUT = 600
<|file_sep|>lib/sonos/endpoint/upnp.rb.diff
original:
uri = "http://#{self.ip}:#{Sonos::PORT}/MediaServer/ContentDirectory/Event"
updated:
<|file_sep|>lib/sonos/endpoint/upnp.rb.diff
original:
response = client.request(:subscribe, ... | result[item[0].downcase.to_sym] = item[1]
result
end
{
timeout: headers[:timeout][/(\d+)/].to_i,
sid: headers[:sid]
}
end
def unsubscribe_from_upnp_events(sid)
HTTPClient.new.request(:subscribe, event_uri, header: {'SID' => sid })
end
private
def event_uri
"http... | <|file_sep|>lib/sonos/endpoint/upnp.rb.diff
original:
updated:
TIMEOUT = 600
<|file_sep|>lib/sonos/endpoint/upnp.rb.diff
original:
uri = "http://#{self.ip}:#{Sonos::PORT}/MediaServer/ContentDirectory/Event"
updated:
<|file_sep|>lib/sonos/endpoint/upnp.rb.diff
original:
response = client.request(:subscribe, ... | 724ba643c64bdeaed7af4b0c0bc2cc276aa45b7a | lib/sonos/endpoint/upnp.rb | lib/sonos/endpoint/upnp.rb | Ruby |
<|file_sep|>original/.travis.yml
language: node_js
sudo: false
matrix:
fast_finish: true
node_js:
- "8"
- "10"
branches:
only:
- master
git:
depth: 1
cache:
directories:
- "node_modules"
<|file_sep|>current/.travis.yml
language: node_js
sudo: false
matrix:
fast_finish: true
node_js:
- "8"... | language: node_js
sudo: false
matrix:
fast_finish: true
node_js:
- "8"
branches:
only:
- master
git:
depth: 1
cache:
directories:
- "node_modules"
| <|file_sep|>original/.travis.yml
language: node_js
sudo: false
matrix:
fast_finish: true
node_js:
- "8"
- "10"
branches:
only:
- master
git:
depth: 1
cache:
directories:
- "node_modules"
<|file_sep|>current/.travis.yml
language: node_js
sudo: false
matrix:
fast_finish: true
node_js:
- "8"... | e6b9585e081dcb30dc6c579fa43f75bc63c61c30 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/docker-compose.yml
services:
profiles-frontend:
build:
context: .
args:
NODE_ENV: development
command: npm run watch-dev
ports:
- 3000:3000
volumes:
- .:/code
- profiles-node_modules:/code/node_modules
environment:
NODE_ENV: ${NODE_... | services:
profiles-frontend:
build:
context: .
args:
NODE_ENV: development
command: npm run watch-dev
ports:
- 3000:3000
volumes:
- .:/code
- profiles-node_modules:/code/node_modules
environment:
NODE_ENV: ${NODE_ENV-development}
SPLUNK_HEC_TOKEN:... | <|file_sep|>original/docker-compose.yml
services:
profiles-frontend:
build:
context: .
args:
NODE_ENV: development
command: npm run watch-dev
ports:
- 3000:3000
volumes:
- .:/code
- profiles-node_modules:/code/node_modules
environment:
NODE_ENV: ${NODE_... | 5ddbb9c9586d246c6f0ef9ae37008a7e8d6e5594 | docker-compose.yml | docker-compose.yml | YAML |
<|file_sep|>original/source/index.html.erb
</head>
<body>
<%= javascript_include_tag 'all' %>
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//analytics.bryanbibat.net/";
_paq.push(['setTrackerU... | <body>
<%= javascript_include_tag 'all' %>
<% if build? %>
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//analytics.bryanbibat.net/";
_paq.push(['setTrackerUrl', u+'piwik.php']... | <|file_sep|>original/source/index.html.erb
</head>
<body>
<%= javascript_include_tag 'all' %>
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//analytics.bryanbibat.net/";
_paq.push(['setTrackerU... | f3d896a4c87fab94c943b07a06fc64d1828e3107 | source/index.html.erb | source/index.html.erb | HTML+ERB |
<|file_sep|>original/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
---
layout: news_item
title: 'Jekyll 2.0.0 Released'
date: 2014-05-05 02:50:09 -0400
author: parkr
version: 2.0.0
categories: [release]
---
One year ago, [we released Jekyll 1.0.0][jekyll-1]. One year later, we present to you the next major ver... | ---
layout: news_item
title: 'Jekyll turns 2.0.0'
author: parkr
version: 2.0.0
categories: [release]
---
One year ago, [we released Jekyll 1.0.0][jekyll-1]. One year later, we present to you the next major version: Jekyll 2.0.
Jam-packed with some [highly-requested features and bugfixes galore][changelog], this is th... | <|file_sep|>original/site/_posts/2014-05-05-jekyll-2-0-0-released.markdown
---
layout: news_item
title: 'Jekyll 2.0.0 Released'
date: 2014-05-05 02:50:09 -0400
author: parkr
version: 2.0.0
categories: [release]
---
One year ago, [we released Jekyll 1.0.0][jekyll-1]. One year later, we present to you the next major ver... | fe696991461df0a08bc48335ee798e32a7bd6438 | site/_posts/2014-05-05-jekyll-2-0-0-released.markdown | site/_posts/2014-05-05-jekyll-2-0-0-released.markdown | Markdown |
<|file_sep|>original/tests/_files/phpunit-example-extension/phpunit.xml
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/5.7/phpunit.xsd"
verbose="true"
extensionsDirectory="tools/php... | <?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/5.7/phpunit.xsd"
verbose="true"
extensionsDirectory="tools/phpunit.d">
<testsuite name="default">
<directory suffix="Test.... | <|file_sep|>original/tests/_files/phpunit-example-extension/phpunit.xml
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/5.7/phpunit.xsd"
verbose="true"
extensionsDirectory="tools/php... | f8c55c06cb999c6cd73ff7f02bb3c15151a880a7 | tests/_files/phpunit-example-extension/phpunit.xml | tests/_files/phpunit-example-extension/phpunit.xml | XML |
<|file_sep|>original/Cargo.toml
[package]
authors = ["Ceri Storey <ceri@lshift.net>"]
name = "michat"
version = "0.1.0"
[dependencies]
bytes = "0.2.10"
clap = "1.4.5"
env_logger = "0.5.13"
log = "0.3.2"
mio = "0.6.16"
slab = "0.4.1"
<|file_sep|>current/Cargo.toml
[package]
authors = ["Ceri Storey <ceri@lshift.net>"]
n... | [package]
authors = ["Ceri Storey <ceri@lshift.net>"]
name = "michat"
version = "0.1.0"
[dependencies]
bytes = "0.2.10"
clap = "1.4.5"
env_logger = "0.5.13"
log = "^0.4"
mio = "0.6.16"
slab = "0.4.1" | <|file_sep|>original/Cargo.toml
[package]
authors = ["Ceri Storey <ceri@lshift.net>"]
name = "michat"
version = "0.1.0"
[dependencies]
bytes = "0.2.10"
clap = "1.4.5"
env_logger = "0.5.13"
log = "0.3.2"
mio = "0.6.16"
slab = "0.4.1"
<|file_sep|>current/Cargo.toml
[package]
authors = ["Ceri Storey <ceri@lshift.net>"]
n... | e0a378c44c51fb20bb68a35bc8c101e7d827b27d | Cargo.toml | Cargo.toml | TOML |
<|file_sep|>original/requirements.txt
base58==0.2.2
boto3==1.3.1
botocore==1.4.23
docutils==0.12
futures==3.0.5
hjson==1.5.6
jmespath==0.9.0
lambda-packages==0.5.0
python-dateutil==2.5.3
python-slugify==1.2.0
requests[security]>=2.10.0
six==1.10.0
tqdm==4.7.1
Werkzeug==0.11.10
wheel==0.29.0
wsgi-request-logger==0.4.5
<... | base58==0.2.2
boto3==1.3.1
botocore==1.4.24
docutils==0.12
futures==3.0.5
hjson==1.5.6
jmespath==0.9.0
lambda-packages==0.5.0
python-dateutil==2.5.3
python-slugify==1.2.0
requests[security]>=2.10.0
six==1.10.0
tqdm==4.7.1
Werkzeug==0.11.10
wheel==0.29.0
wsgi-request-logger==0.4.5 | <|file_sep|>original/requirements.txt
base58==0.2.2
boto3==1.3.1
botocore==1.4.23
docutils==0.12
futures==3.0.5
hjson==1.5.6
jmespath==0.9.0
lambda-packages==0.5.0
python-dateutil==2.5.3
python-slugify==1.2.0
requests[security]>=2.10.0
six==1.10.0
tqdm==4.7.1
Werkzeug==0.11.10
wheel==0.29.0
wsgi-request-logger==0.4.5
<... | c005c36faf29a992c76776606da468664be421da | requirements.txt | requirements.txt | Text |
<|file_sep|>src/app/views/welcome/welcome.vue.diff
original:
updated:
<script lang="ts" src="./welcome"></script>
<|file_sep|>src/app/views/welcome/welcome.vue.diff
original:
@require '~styles/variables'
@require '~styles-lib/mixins'
updated:
@import '~styles/variables'
@import '~styles-lib/mixins'
<|file_sep|>src/ap... | </template>
</section>
</template>
</component>
</div>
</template>
<style lang="stylus" scoped>
@import '~styles/variables'
@import '~styles-lib/mixins'
.-welcome
change-bg('darkest')
min-height: 100vh
.-controls
margin-top: 30px
.-skip
theme-prop('color', 'fg-muted')
</style> | <|file_sep|>src/app/views/welcome/welcome.vue.diff
original:
updated:
<script lang="ts" src="./welcome"></script>
<|file_sep|>src/app/views/welcome/welcome.vue.diff
original:
@require '~styles/variables'
@require '~styles-lib/mixins'
updated:
@import '~styles/variables'
@import '~styles-lib/mixins'
<|file_sep|>src/ap... | c00b23c9240948fd0f4ed57f994b8053d301fe93 | src/app/views/welcome/welcome.vue | src/app/views/welcome/welcome.vue | Vue |
<|file_sep|>Neos.Flow/Classes/Mvc/PrepareMvcRequestComponent.php.diff
original:
use Neos\Flow\Mvc\Routing\RoutingComponent;
updated:
use Neos\Flow\Http\ServerRequestAttributes;
<|file_sep|>original/Neos.Flow/Classes/Mvc/PrepareMvcRequestComponent.php
protected $securityContext;
/**
* @Flow\Inject
* @... | protected $securityContext;
/**
* @Flow\Inject
* @var ActionRequestFactory
*/
protected $actionRequestFactory;
/**
* @inheritDoc
*/
public function handle(ComponentContext $componentContext)
{
$httpRequest = $componentContext->getHttpRequest();
$routin... | <|file_sep|>Neos.Flow/Classes/Mvc/PrepareMvcRequestComponent.php.diff
original:
use Neos\Flow\Mvc\Routing\RoutingComponent;
updated:
use Neos\Flow\Http\ServerRequestAttributes;
<|file_sep|>original/Neos.Flow/Classes/Mvc/PrepareMvcRequestComponent.php
protected $securityContext;
/**
* @Flow\Inject
* @... | 9f411728cf6733d067efb35573b27c82f07865ee | Neos.Flow/Classes/Mvc/PrepareMvcRequestComponent.php | Neos.Flow/Classes/Mvc/PrepareMvcRequestComponent.php | PHP |
<|file_sep|>original/stroom-data/stroom-data-store-impl-fs/src/main/java/stroom/data/store/impl/fs/StreamTypeExtensions.java
EXTENSION_MAP.put("Raw Reference", "rref");
EXTENSION_MAP.put("Events", "evt");
EXTENSION_MAP.put("Reference", "ref");
EXTENSION_MAP.put("Test Events", "tevt");
... | EXTENSION_MAP.put("Raw Reference", "rref");
EXTENSION_MAP.put("Events", "evt");
EXTENSION_MAP.put("Reference", "ref");
EXTENSION_MAP.put("Test Events", "tevt");
EXTENSION_MAP.put("Test Reference", "tref");
EXTENSION_MAP.put("Segment Index", "seg");
EXTENSION_MAP.p... | <|file_sep|>original/stroom-data/stroom-data-store-impl-fs/src/main/java/stroom/data/store/impl/fs/StreamTypeExtensions.java
EXTENSION_MAP.put("Raw Reference", "rref");
EXTENSION_MAP.put("Events", "evt");
EXTENSION_MAP.put("Reference", "ref");
EXTENSION_MAP.put("Test Events", "tevt");
... | 2e33218626a4a53a9336f22cc83e5bca1342562b | stroom-data/stroom-data-store-impl-fs/src/main/java/stroom/data/store/impl/fs/StreamTypeExtensions.java | stroom-data/stroom-data-store-impl-fs/src/main/java/stroom/data/store/impl/fs/StreamTypeExtensions.java | Java |
<|file_sep|>metadata/de.hauke_stieler.geonotes.yml.diff
original:
updated:
- versionName: 1.2.0
versionCode: 1002000
commit: v1.2.0
subdir: app
gradle:
- yes
<|file_sep|>original/metadata/de.hauke_stieler.geonotes.yml
gradle:
- yes
- versionName: 1.0.4
versionCode: 1000004
... | gradle:
- yes
- versionName: 1.1.0
versionCode: 1001000
commit: v1.1.0
subdir: app
gradle:
- yes
- versionName: 1.2.0
versionCode: 1002000
commit: v1.2.0
subdir: app
gradle:
- yes
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags
CurrentVersion: 1.2.0
Current... | <|file_sep|>metadata/de.hauke_stieler.geonotes.yml.diff
original:
updated:
- versionName: 1.2.0
versionCode: 1002000
commit: v1.2.0
subdir: app
gradle:
- yes
<|file_sep|>original/metadata/de.hauke_stieler.geonotes.yml
gradle:
- yes
- versionName: 1.0.4
versionCode: 1000004
... | b08133d5c54a192ef955fe80a96ad975f9b78d17 | metadata/de.hauke_stieler.geonotes.yml | metadata/de.hauke_stieler.geonotes.yml | YAML |
<|file_sep|>original/android/AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.badlogic.gdxinvaders"
android:versionCode="1"
android:versionName="1.0"
android:installLocation="preferExternal">
<applica... | <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.badlogic.gdxinvaders"
android:versionCode="1"
android:versionName="1.0"
android:installLocation="preferExternal">
<application android:icon="@drawable/icon" android:label=... | <|file_sep|>original/android/AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.badlogic.gdxinvaders"
android:versionCode="1"
android:versionName="1.0"
android:installLocation="preferExternal">
<applica... | 99929d60ca9402c8716a0b9fe71ee605f5abd755 | android/AndroidManifest.xml | android/AndroidManifest.xml | XML |
<|file_sep|>original/.travis.yml
language: php
php:
- 5.5
- 5.6
- 7.0
- nightly
before_script:
- composer self-update
- composer install
script: php vendor/bin/phpunit test/specs/.
<|file_sep|>current/.travis.yml
language: php
php:
- 5.5
- 5.6
- 7.0
- nightly
before_script:
- composer s... | language: php
php:
- 5.5
- 5.6
- 7.0.0RC4
before_script:
- composer self-update
- composer install
script: php vendor/bin/phpunit test/specs/. | <|file_sep|>original/.travis.yml
language: php
php:
- 5.5
- 5.6
- 7.0
- nightly
before_script:
- composer self-update
- composer install
script: php vendor/bin/phpunit test/specs/.
<|file_sep|>current/.travis.yml
language: php
php:
- 5.5
- 5.6
- 7.0
- nightly
before_script:
- composer s... | 5c5d723b8d6e777db82469cb7b683080ec5e4d1e | .travis.yml | .travis.yml | YAML |
<|file_sep|>.codeclimate.yml.diff
original:
updated:
<|file_sep|>original/.codeclimate.yml
enabled: true
channel: "eslint-4"
fixme:
enabled: true
radon:
enabled: true
rubocop:
enabled: true
ratings:
paths:
- Gemfile.lock
- "**.css"
- "**.inc"
- "**.js"
- "**.jsx"
- "**.module"
... | fixme:
enabled: true
radon:
enabled: true
rubocop:
enabled: true
ratings:
paths:
- Gemfile.lock
- "**.css"
- "**.inc"
- "**.js"
- "**.jsx"
- "**.module"
- "**.php"
- "**.py"
- "**.rb"
exclude_paths:
- node_modules/ | <|file_sep|>.codeclimate.yml.diff
original:
updated:
<|file_sep|>original/.codeclimate.yml
enabled: true
channel: "eslint-4"
fixme:
enabled: true
radon:
enabled: true
rubocop:
enabled: true
ratings:
paths:
- Gemfile.lock
- "**.css"
- "**.inc"
- "**.js"
- "**.jsx"
- "**.module"
... | a3e19a9e2a9a3eb974636a485b188a12968ea1c9 | .codeclimate.yml | .codeclimate.yml | YAML |
<|file_sep|>original/setup.py
from distutils.core import setup, Extension
setup(name="fastcache", version="0.1",
packages = ["fastcache", "fastcache.tests"],
ext_modules= [Extension("fastcache._lrucache",
["src/_lrucache.c"],
),
]
)
<|file_sep... | from distutils.core import setup, Extension
setup(name="fastcache", version="0.1",
packages = ["fastcache", "fastcache.tests"],
ext_modules= [Extension("fastcache._lrucache",
["src/_lrucache.c"],
extra_compile_args=['-std=c99']),
]
) | <|file_sep|>original/setup.py
from distutils.core import setup, Extension
setup(name="fastcache", version="0.1",
packages = ["fastcache", "fastcache.tests"],
ext_modules= [Extension("fastcache._lrucache",
["src/_lrucache.c"],
),
]
)
<|file_sep... | 6cd2a721d90c991b7c7dde221affd6ebecf70e95 | setup.py | setup.py | Python |
<|file_sep|>original/packages/ht/html-entity-map.yaml
<|file_sep|>current/packages/ht/html-entity-map.yaml
<|file_sep|>updated/packages/ht/html-entity-map.yaml | homepage: https://github.com/mrkkrp/html-entity-map
changelog-type: markdown
hash: c3e9420bf75decf49930b41aea67780f6b673fe6750ad042af1d40cb8083a518
test-bench-deps:
base: ! '>=4.5 && <5.0'
unordered-containers: ! '>=0.2.5 && <0.3'
text: ! '>=0.2 && <1.3'
criterion: ! '>=0.6.2.1 && <1.3'
html-entity-map: -any
... | <|file_sep|>original/packages/ht/html-entity-map.yaml
<|file_sep|>current/packages/ht/html-entity-map.yaml
<|file_sep|>updated/packages/ht/html-entity-map.yaml
homepage: https://github.com/mrkkrp/html-entity-map
changelog-type: markdown
hash: c3e9420bf75decf49930b41aea67780f6b673fe6750ad042af1d40cb8083a518
test-bench... | ef9a0c83e90be7b80d0b7847f1edda0e3fbd6a3d | packages/ht/html-entity-map.yaml | packages/ht/html-entity-map.yaml | YAML |
<|file_sep|>original/src/main/java/ch/tkuhn/nanopub/server/NanopubServerUtils.java
package ch.tkuhn.nanopub.server;
public class NanopubServerUtils extends org.nanopub.extra.server.NanopubServerUtils {
// Version numbers have the form MAJOR.MINOR (for example, 0.12 is a newer version than 0.9!)
public static final... | package ch.tkuhn.nanopub.server;
public class NanopubServerUtils extends org.nanopub.extra.server.NanopubServerUtils {
// Version numbers have the form MAJOR.MINOR (for example, 0.12 is a newer version than 0.9!)
public static final String protocolVersion = "0.5";
public static final int protocolVersionValue = ge... | <|file_sep|>original/src/main/java/ch/tkuhn/nanopub/server/NanopubServerUtils.java
package ch.tkuhn.nanopub.server;
public class NanopubServerUtils extends org.nanopub.extra.server.NanopubServerUtils {
// Version numbers have the form MAJOR.MINOR (for example, 0.12 is a newer version than 0.9!)
public static final... | 4480306d9e412d33a2a56620f22bf356ea4dff86 | src/main/java/ch/tkuhn/nanopub/server/NanopubServerUtils.java | src/main/java/ch/tkuhn/nanopub/server/NanopubServerUtils.java | Java |
<|file_sep|>original/vagrant-openstack-plugin.gemspec
require 'vagrant-openstack-plugin/version'
Gem::Specification.new do |gem|
gem.name = "vagrant-openstack-plugin"
gem.version = VagrantPlugins::OpenStack::VERSION
gem.authors = ["Mitchell Hashimoto", "Thomas Kadauke"]
gem.email =... | $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'vagrant-openstack-plugin/version'
Gem::Specification.new do |gem|
gem.name = "vagrant-openstack-plugin"
gem.version = VagrantPlugins::OpenStack::VERSION
gem.authors = ["Mitchell Hashimoto", "Thomas Kadauke"]
gem.email ... | <|file_sep|>original/vagrant-openstack-plugin.gemspec
require 'vagrant-openstack-plugin/version'
Gem::Specification.new do |gem|
gem.name = "vagrant-openstack-plugin"
gem.version = VagrantPlugins::OpenStack::VERSION
gem.authors = ["Mitchell Hashimoto", "Thomas Kadauke"]
gem.email =... | 8106cc4e619bffd50c74fd7c6a73e802ff8eaadb | vagrant-openstack-plugin.gemspec | vagrant-openstack-plugin.gemspec | Ruby |
<|file_sep|>js/script.js.diff
original:
console.log('has loaded');
updated:
console.log('worker loaded');
<|file_sep|>original/js/script.js
worker.on(WebWorker.Event.WORKER_LOADED, function () {
console.log('has loaded');
worker.start();
return;
});
worker.on(WebWor... | return;
});
worker.on(WebWorker.Event.WORKER_STARTING, function () {
console.log('worker starting');
return;
});
worker.on(WebWorker.Event.WORKER_STARTED, function () {
console.log('worker started');
worker.terminate();
return;
});
worker.on(Web... | <|file_sep|>js/script.js.diff
original:
console.log('has loaded');
updated:
console.log('worker loaded');
<|file_sep|>original/js/script.js
worker.on(WebWorker.Event.WORKER_LOADED, function () {
console.log('has loaded');
worker.start();
return;
});
worker.on(WebWor... | c421e43017fe094c494fd22915a755c93eb65915 | js/script.js | js/script.js | JavaScript |
<|file_sep|>original/README.md
# lita-ruby
Holy fuck this is dangerous. It bears repeating: Holy fuck this is really
dangerous. It evaluates Ruby directly in the current thread and hijacks
standard out to redirect it to chat. Could be a lot safer, but YOLO.
## Installation
Add lita-ruby to your Lita instance's Gemfi... | # lita-ruby
:warning: Holy fuck this is dangerous. :warning:
It bears repeating: Holy fuck this is really dangerous. It evaluates Ruby
directly in the current thread and hijacks standard out to redirect it to chat.
Could be a lot safer, but YOLO.
## Installation
Add lita-ruby to your Lita instance's Gemfile:
``` r... | <|file_sep|>original/README.md
# lita-ruby
Holy fuck this is dangerous. It bears repeating: Holy fuck this is really
dangerous. It evaluates Ruby directly in the current thread and hijacks
standard out to redirect it to chat. Could be a lot safer, but YOLO.
## Installation
Add lita-ruby to your Lita instance's Gemfi... | 077bbc29bce4c341132e7097db7dffea08b0f1e1 | README.md | README.md | Markdown |
<|file_sep|>original/server.coffee
americano = require 'americano'
port = process.env.PORT || 9250
americano.start name: 'template', port: port
<|file_sep|>current/server.coffee
americano = require 'americano'
port = process.env.PORT || 9250
americano.start name: 'template', port: port
<|file_sep|>updated/server.coff... | americano = require 'americano'
port = process.env.PORT || 9250
americano.start name: 'template', port: port, root: __dirname | <|file_sep|>original/server.coffee
americano = require 'americano'
port = process.env.PORT || 9250
americano.start name: 'template', port: port
<|file_sep|>current/server.coffee
americano = require 'americano'
port = process.env.PORT || 9250
americano.start name: 'template', port: port
<|file_sep|>updated/server.coff... | 3d23afb49aa2cf987d1f1a1565b91116f9460191 | server.coffee | server.coffee | CoffeeScript |
<|file_sep|>original/bin/getbandwidthusage.sh
#!/bin/sh
if [ -f /sys/class/net/ppp0/statistics/rx_bytes ] ; then
USAGE=$(vnstat --oneline | sed 's/1;.*;\([^;]*\);[^;]*;[^;]*;[^;]*;[^;]*$/\1/')
echo $USAGE
ORDER=$(echo $USAGE | cut -d ' ' -f2)
SIZE=$(echo $USAGE | cut -d '.' -f1)
if [ "$ORDER" = "MiB" -a $SIZE -gt... | #!/bin/sh
if [ -f /sys/class/net/ppp0/statistics/rx_bytes ] ; then
USAGE=$(vnstat --oneline | sed 's/1;.*;\([^;]*\);[^;]*;[^;]*;[^;]*;[^;]*$/\1/')
echo $USAGE
ORDER=$(echo $USAGE | cut -d ' ' -f2)
SIZE=$(echo $USAGE | cut -d '.' -f1)
if [ "$ORDER" = "MiB" -a $SIZE -gt 50 ]; then
notify-send 'Bandwidth used!'
f... | <|file_sep|>original/bin/getbandwidthusage.sh
#!/bin/sh
if [ -f /sys/class/net/ppp0/statistics/rx_bytes ] ; then
USAGE=$(vnstat --oneline | sed 's/1;.*;\([^;]*\);[^;]*;[^;]*;[^;]*;[^;]*$/\1/')
echo $USAGE
ORDER=$(echo $USAGE | cut -d ' ' -f2)
SIZE=$(echo $USAGE | cut -d '.' -f1)
if [ "$ORDER" = "MiB" -a $SIZE -gt... | 2f33c62c07d76d61f1f50515a8bdaca9f337be3c | bin/getbandwidthusage.sh | bin/getbandwidthusage.sh | Shell |
<|file_sep|>original/scripts/docker-entrypoint.sh
else
BINARY=shipitron
fi
if [ "$(ls -A /usr/local/bundle/bin)" = '' ]; then
echo 'command not in path and bundler not initialized'
echo 'running bundle install'
su-exec shipitron bundle install
else
su-exec shipitron bash -c 'bundle check || bundle install'
f... | fi
if [ "$(ls -A /usr/local/bundle/bin)" = '' ]; then
echo 'command not in path and bundler not initialized'
echo 'running bundle install'
su-exec shipitron bundle install
else
su-exec shipitron bash -c 'bundle check || bundle install'
fi
if ls /usr/local/bundle/bin | grep -q "\b$1\b"; then
set -- su-exec s... | <|file_sep|>original/scripts/docker-entrypoint.sh
else
BINARY=shipitron
fi
if [ "$(ls -A /usr/local/bundle/bin)" = '' ]; then
echo 'command not in path and bundler not initialized'
echo 'running bundle install'
su-exec shipitron bundle install
else
su-exec shipitron bash -c 'bundle check || bundle install'
f... | 3264685e159e66271744f877ba4cfb9b09783f51 | scripts/docker-entrypoint.sh | scripts/docker-entrypoint.sh | Shell |
<|file_sep|>handlers.go.diff
original:
// Say to the client to "keep-alive" by default.
updated:
// Use default headers.
<|file_sep|>original/handlers.go
func (h handlersStack) ServeHTTP(w http.ResponseWriter, r *http.Request) {
// Init a new context for the request.
c := &Context{
ResponseWriter: w,
Request: ... | // Init a new context for the request.
c := &Context{
ResponseWriter: w,
Request: r,
index: -1, // Begin with -1 because the NextWriter will increment index before calling the first handler.
}
// Enter the handlers stack.
// We use a binder to set the c.written flag on first write and break ... | <|file_sep|>handlers.go.diff
original:
// Say to the client to "keep-alive" by default.
updated:
// Use default headers.
<|file_sep|>original/handlers.go
func (h handlersStack) ServeHTTP(w http.ResponseWriter, r *http.Request) {
// Init a new context for the request.
c := &Context{
ResponseWriter: w,
Request: ... | 3d657054638f89a72d55016b16637de71193247a | handlers.go | handlers.go | Go |
<|file_sep|>docs/build_windows.md.diff
original:
# Building from source for Windows
updated:
# Building from Source for Windows
<|file_sep|>docs/build_windows.md.diff
original:
Building on Windows is actually hard due to the 3rd party libraries. As a
result, the Windows builds are actually done on Linux.
updated:
Build... | # Building from Source for Windows
Building on Windows is complicated due to the required 3rd party libraries.
As a result, the Windows build is done on Linux using Wine.
First, make sure that 32-bit builds work and install dependencies:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get ... | <|file_sep|>docs/build_windows.md.diff
original:
# Building from source for Windows
updated:
# Building from Source for Windows
<|file_sep|>docs/build_windows.md.diff
original:
Building on Windows is actually hard due to the 3rd party libraries. As a
result, the Windows builds are actually done on Linux.
updated:
Build... | 5c3e66e368ec8f9baaac94d1e7709178293aabd8 | docs/build_windows.md | docs/build_windows.md | Markdown |
<|file_sep|>original/src/utils/WellKnownUtils.ts
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 governing permissions... |
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 governing permissions and
limitations under the License.
*/
import {M... | <|file_sep|>original/src/utils/WellKnownUtils.ts
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 governing permissions... | b601a025b58200ac04bedf738fdd9898c462a251 | src/utils/WellKnownUtils.ts | src/utils/WellKnownUtils.ts | TypeScript |
<|file_sep|>.idea/copyright/TeamDev_Open_Source.xml.diff
original:
<option name="allowReplaceKeyword" value="2000-" />
updated:
<option name="allowReplaceKeyword" value="2016" />
<|file_sep|>original/.idea/copyright/TeamDev_Open_Source.xml
<component name="CopyrightManager">
<copyright>
<option name="allo... | <component name="CopyrightManager">
<copyright>
<option name="allowReplaceKeyword" value="2016" />
<option name="myName" value="TeamDev Open-Source" />
<option name="notice" value="Copyright 2017, TeamDev Ltd. All rights reserved. Redistribution and use in source and/or binary forms, with or with... | <|file_sep|>.idea/copyright/TeamDev_Open_Source.xml.diff
original:
<option name="allowReplaceKeyword" value="2000-" />
updated:
<option name="allowReplaceKeyword" value="2016" />
<|file_sep|>original/.idea/copyright/TeamDev_Open_Source.xml
<component name="CopyrightManager">
<copyright>
<option name="allo... | e50a847a59f13296d6459cdab3a45428696b42d9 | .idea/copyright/TeamDev_Open_Source.xml | .idea/copyright/TeamDev_Open_Source.xml | XML |
<|file_sep|>original/README.md
# dear
A simple wrapper around reading/writing JSON objects to local storage.
Demo: <https://strburst.github.io/dear/>
<|file_sep|>current/README.md
# dear
A simple wrapper around reading/writing JSON objects to local storage.
Demo: <https://strburst.github.io/dear/>
<|file_sep|>updated... | # dear
A simple wrapper around reading/writing JSON objects to local storage.
Note that the use cases for this have been superseded by [IndexedDB](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API).
Demo: <https://strburst.github.io/dear/> | <|file_sep|>original/README.md
# dear
A simple wrapper around reading/writing JSON objects to local storage.
Demo: <https://strburst.github.io/dear/>
<|file_sep|>current/README.md
# dear
A simple wrapper around reading/writing JSON objects to local storage.
Demo: <https://strburst.github.io/dear/>
<|file_sep|>updated... | 3de396b1a912310bb3b563a91c459b50bd565a6f | README.md | README.md | Markdown |
<|file_sep|>app/Resources/VlRadRestBundle/views/Default/get.html.twig.diff
original:
updated:
<|file_sep|>original/app/Resources/VlRadRestBundle/views/Default/get.html.twig
{% extends 'VlRadRestBundle:Default:skeleton.html.twig' %}
{% block radrest_content %}
<div class="panel-heading">
<h3 class="pan... | {% extends 'VlRadRestBundle:Default:skeleton.html.twig' %}
{% block radrest_content %}
<div class="panel-heading">
<h3 class="panel-title">View</h3>
</div>
<div class="panel-body">
<dl class="dl-horizontal">
{% for key in data|radrest_object_keys %}
<dt>{{ key|hu... | <|file_sep|>app/Resources/VlRadRestBundle/views/Default/get.html.twig.diff
original:
updated:
<|file_sep|>original/app/Resources/VlRadRestBundle/views/Default/get.html.twig
{% extends 'VlRadRestBundle:Default:skeleton.html.twig' %}
{% block radrest_content %}
<div class="panel-heading">
<h3 class="pan... | d76c659014ee780d82707ed1802d188496304c78 | app/Resources/VlRadRestBundle/views/Default/get.html.twig | app/Resources/VlRadRestBundle/views/Default/get.html.twig | Twig |
<|file_sep|>original/include/net/net_linkaddr.h
<|file_sep|>current/include/net/net_linkaddr.h
<|file_sep|>updated/include/net/net_linkaddr.h | /*
* Copyright (c) 2016 Intel Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | <|file_sep|>original/include/net/net_linkaddr.h
<|file_sep|>current/include/net/net_linkaddr.h
<|file_sep|>updated/include/net/net_linkaddr.h
/*
* Copyright (c) 2016 Intel Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Lic... | 257379d0ff792fd96c8ff699db232b3cab27476a | include/net/net_linkaddr.h | include/net/net_linkaddr.h | C |
<|file_sep|>original/jenkins/jobs/static-publish-jobs.yaml
# We want to publish to the docroot but the scp publisher cannot remove
# paths, so use a shell builder to move the content in the right place and
# publish from there.
builders:
- revoke-sudo
- gerrit-git-prep
- docs:
... | # We want to publish to the docroot but the scp publisher cannot remove
# paths, so use a shell builder to move the content in the right place and
# publish from there.
builders:
- revoke-sudo
- gerrit-git-prep
- docs:
project: '{name}'
- shell: |
#!/bin/bash ... | <|file_sep|>original/jenkins/jobs/static-publish-jobs.yaml
# We want to publish to the docroot but the scp publisher cannot remove
# paths, so use a shell builder to move the content in the right place and
# publish from there.
builders:
- revoke-sudo
- gerrit-git-prep
- docs:
... | 7d724d38f6788866a2131b04a3e5163ecb48f684 | jenkins/jobs/static-publish-jobs.yaml | jenkins/jobs/static-publish-jobs.yaml | YAML |
<|file_sep|>original/CHANGELOG.md
<|file_sep|>current/CHANGELOG.md
<|file_sep|>updated/CHANGELOG.md | # Change log
## 0.1.3
* Add custom metrics.
* Fix web interface socket keep-alive.
* Fix metrics data handling.
## 0.1.2
* Add custom pages and commands.
* Add dynamic page registration.
## 0.1.1
* Code cleanup and general fixes.
## 0.1.0 | <|file_sep|>original/CHANGELOG.md
<|file_sep|>current/CHANGELOG.md
<|file_sep|>updated/CHANGELOG.md
# Change log
## 0.1.3
* Add custom metrics.
* Fix web interface socket keep-alive.
* Fix metrics data handling.
## 0.1.2
* Add custom pages and commands.
* Add dynamic page registration.
## 0.1.1
* Code cleanup... | 716a3e1239951a612cb1112424bfc18a0ff809dd | CHANGELOG.md | CHANGELOG.md | Markdown |
<|file_sep|>original/README.rst
Overalls
========
|overalls-ci|_ |overalls-cover|_
.. |overalls-ci| image:: https://travis-ci.org/hodgestar/overalls.png?branch=master
.. _overalls-ci: https://travis-ci.org/hodgestar/overalls
.. |overalls-cover| image:: https://coveralls.io/repos/hodgestar/overalls/badge.png?branch=m... | Overalls
========
|overalls-ci|_ |overalls-cover|_
.. |overalls-ci| image:: https://travis-ci.org/hodgestar/overalls.png?branch=master
.. _overalls-ci: https://travis-ci.org/hodgestar/overalls
.. |overalls-cover| image:: https://coveralls.io/repos/hodgestar/overalls/badge.png?branch=master
.. _overalls-cover: https:... | <|file_sep|>original/README.rst
Overalls
========
|overalls-ci|_ |overalls-cover|_
.. |overalls-ci| image:: https://travis-ci.org/hodgestar/overalls.png?branch=master
.. _overalls-ci: https://travis-ci.org/hodgestar/overalls
.. |overalls-cover| image:: https://coveralls.io/repos/hodgestar/overalls/badge.png?branch=m... | 58de16688fa71f57865d820f3038527b5bd42b5c | README.rst | README.rst | reStructuredText |
<|file_sep|>original/Form/Type/AntiSpamType.php
'mapped' => false,
'required' => false,
));
}
/**
* {@inheritdoc}
*/
public function getParent()
{
return 'Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType';
}
/**
* {@inheri... | 'mapped' => false,
'required' => false,
));
}
/**
* {@inheritdoc}
*/
public function getParent()
{
return 'Symfony\Component\Form\Extension\Core\Type\TextType';
}
/**
* {@inheritdoc}
*/
public function getBlockPrefix()
... | <|file_sep|>original/Form/Type/AntiSpamType.php
'mapped' => false,
'required' => false,
));
}
/**
* {@inheritdoc}
*/
public function getParent()
{
return 'Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType';
}
/**
* {@inheri... | 26c606ed11c056007acf59fc8fffd12a34a7ca87 | Form/Type/AntiSpamType.php | Form/Type/AntiSpamType.php | PHP |
<|file_sep|>original/priv/repo/migrations/20180316014031_add-facilitator-id-to-retros-table.exs
<|file_sep|>current/priv/repo/migrations/20180316014031_add-facilitator-id-to-retros-table.exs
<|file_sep|>updated/priv/repo/migrations/20180316014031_add-facilitator-id-to-retros-table.exs | defmodule :"Elixir.RemoteRetro.Repo.Migrations.Add-facilitator-id-to-retros-table" do
use Ecto.Migration
def change do
alter table(:retros) do
add :facilitator_id, references(:users, [
column: :id,
on_delete: :nothing
])
end
end
end | <|file_sep|>original/priv/repo/migrations/20180316014031_add-facilitator-id-to-retros-table.exs
<|file_sep|>current/priv/repo/migrations/20180316014031_add-facilitator-id-to-retros-table.exs
<|file_sep|>updated/priv/repo/migrations/20180316014031_add-facilitator-id-to-retros-table.exs
defmodule :"Elixir.RemoteRetro.R... | cd6b568e36f3bf55c302394c0ee892a450fd6e19 | priv/repo/migrations/20180316014031_add-facilitator-id-to-retros-table.exs | priv/repo/migrations/20180316014031_add-facilitator-id-to-retros-table.exs | Elixir |
<|file_sep|>original/packages/aw/aws-lambda-haskell-runtime.yaml
<|file_sep|>current/packages/aw/aws-lambda-haskell-runtime.yaml
<|file_sep|>updated/packages/aw/aws-lambda-haskell-runtime.yaml | homepage: https://github.com/theam/aws-lambda-haskell-runtime#readme
changelog-type: markdown
hash: 93600d80c4ef94b2641c704011ce0718674184429fa29b4b835fe94f486f3887
test-bench-deps:
microlens-platform: -any
bytestring: -any
optparse-generic: -any
case-insensitive: -any
base: ! '>=4.7 && <5'
time: -any
hsp... | <|file_sep|>original/packages/aw/aws-lambda-haskell-runtime.yaml
<|file_sep|>current/packages/aw/aws-lambda-haskell-runtime.yaml
<|file_sep|>updated/packages/aw/aws-lambda-haskell-runtime.yaml
homepage: https://github.com/theam/aws-lambda-haskell-runtime#readme
changelog-type: markdown
hash: 93600d80c4ef94b2641c70401... | ec8f49c8287c05066d6ed8bc418480d93b7e730e | packages/aw/aws-lambda-haskell-runtime.yaml | packages/aw/aws-lambda-haskell-runtime.yaml | YAML |
<|file_sep|>environment/transpiler/targets/common-lisp/toplevel.lisp.diff
original:
(defun tre-expansions (x)
(backquote-expand (quasiquote-expand (macroexpand (dot-expand x)))))
(defun expr2cl (x) (make-lambdas (tre-expansions x)))
(defun file2cl (pathname) (expr2cl (read-file pathname)))
(... | (fake-expression-expand (fake-place-expand (lambda-expand (rename-arguments (backquote-expand (compiler-macroexpand !))))))))
(defun cl-sections-before-deps ()
(unless (exclude-base?)
(list (. 'cl-base *cl-base*))))
(defun make-cl-transpiler ()
(create-transpiler
:name :common-lisp
... | <|file_sep|>environment/transpiler/targets/common-lisp/toplevel.lisp.diff
original:
(defun tre-expansions (x)
(backquote-expand (quasiquote-expand (macroexpand (dot-expand x)))))
(defun expr2cl (x) (make-lambdas (tre-expansions x)))
(defun file2cl (pathname) (expr2cl (read-file pathname)))
(... | 5f8e003f48b56dd204b25ed4eb35c708b75d5474 | environment/transpiler/targets/common-lisp/toplevel.lisp | environment/transpiler/targets/common-lisp/toplevel.lisp | Common Lisp |
<|file_sep|>original/packages/regenerator-runtime/package.json
{
"name": "regenerator-runtime",
"author": "Ben Newman <bn@cs.stanford.edu>",
"description": "Runtime for Regenerator-compiled generator and async functions.",
"version": "0.13.4",
"main": "runtime.js",
"keywords": [
"regenerator",
"runt... | {
"name": "regenerator-runtime",
"author": "Ben Newman <bn@cs.stanford.edu>",
"description": "Runtime for Regenerator-compiled generator and async functions.",
"version": "0.13.5",
"main": "runtime.js",
"keywords": [
"regenerator",
"runtime",
"generator",
"async"
],
"sideEffects": true,
... | <|file_sep|>original/packages/regenerator-runtime/package.json
{
"name": "regenerator-runtime",
"author": "Ben Newman <bn@cs.stanford.edu>",
"description": "Runtime for Regenerator-compiled generator and async functions.",
"version": "0.13.4",
"main": "runtime.js",
"keywords": [
"regenerator",
"runt... | 4889b5c0a0281adfbf20d70311d5f4e4f398c566 | packages/regenerator-runtime/package.json | packages/regenerator-runtime/package.json | JSON |
<|file_sep|>original/src/test/resources/logback-test.xml
<?xml version="1.0" encoding="UTF-8" ?>
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<withJansi>true</withJansi>
<encoder>
<pattern>[%highlight(%-5level)] [%d{HH:mm:ss.SSS}] [%green(%logger) ... | <?xml version="1.0" encoding="UTF-8" ?>
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<withJansi>true</withJansi>
<encoder>
<pattern>[%highlight(%-5level)] [%d{HH:mm:ss.SSS}] [%green(%logger) / %thread] %m%n</pattern>
</encoder>
</append... | <|file_sep|>original/src/test/resources/logback-test.xml
<?xml version="1.0" encoding="UTF-8" ?>
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<withJansi>true</withJansi>
<encoder>
<pattern>[%highlight(%-5level)] [%d{HH:mm:ss.SSS}] [%green(%logger) ... | 173d6369b98ea83986a310357c7622f277f50159 | src/test/resources/logback-test.xml | src/test/resources/logback-test.xml | XML |
<|file_sep|>partition_test.go.diff
original:
func trueForAll(a []int, test testFunc) bool {
updated:
func isTrueForAll(a []int, test testFunc) bool {
<|file_sep|>partition_test.go.diff
original:
func genGreaterThan(pivot int) testFunc {
updated:
func createGreaterThanTest(pivot int) testFunc {
<|file_sep|>partition_tes... | success = success && isTrueForAll(a[:2], createLessThanTest(3))
success = success && isTrueForAll(a[3:], createGreaterThanTest(3))
if !success {
t.Errorf("Failed %v", a)
}
}
func TestPartition2(t *testing.T) {
a := []int{3, 8, 2, 5, 1, 4, 7, 6}
partition(a, 3)
success := a[4] == ... | <|file_sep|>partition_test.go.diff
original:
func trueForAll(a []int, test testFunc) bool {
updated:
func isTrueForAll(a []int, test testFunc) bool {
<|file_sep|>partition_test.go.diff
original:
func genGreaterThan(pivot int) testFunc {
updated:
func createGreaterThanTest(pivot int) testFunc {
<|file_sep|>partition_tes... | b81494ba22d323a52ec7f6b8200f45de26462c1b | partition_test.go | partition_test.go | Go |
<|file_sep|>original/README.rdoc
= toothbrush
Useful stuff for testing with Capybara.
== Contributing to toothbrush
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
* Check out the issue tracker to make sure someone already hasn't requested it and/or co... | = toothbrush
Useful stuff for testing with Capybara.
== Install
Add to your gemfile:
gem 'toothbrush', group: :test
Add the file spec/support/toothbrush.rb with this content:
RSpec.configure do |config|
config.include Toothbrush::Helpers
end
== Usage
See the specs
== Contributing to toothbrus... | <|file_sep|>original/README.rdoc
= toothbrush
Useful stuff for testing with Capybara.
== Contributing to toothbrush
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
* Check out the issue tracker to make sure someone already hasn't requested it and/or co... | ee95e23a4109a50e4fc9683c71dc33c4b7501a5f | README.rdoc | README.rdoc | RDoc |
<|file_sep|>original/test/eigensheep/curry_test.js
var curry = require('eigensheep/curry')['default'];
var adder = function(a, b, c, d) {
return a + b + c + d;
};
var curriedAdder = curry(adder);
test("the function can be invoked as normal", function() {
equal(curriedAdder(1, 2, 3, 4), 10);
});
... |
test("the function can be invoked in parts", function() {
equal(curriedAdder(1)(2, 3, 4), 10);
equal(curriedAdder(1, 2, 3)(4), 10);
});
test("additional arguments don't hurt", function() {
equal(curriedAdder(1, 2, 3, 4, 5), 10);
equal(curriedAdder(1, 2, 3)(4, 5), 10);
});
test("an arity can... | <|file_sep|>original/test/eigensheep/curry_test.js
var curry = require('eigensheep/curry')['default'];
var adder = function(a, b, c, d) {
return a + b + c + d;
};
var curriedAdder = curry(adder);
test("the function can be invoked as normal", function() {
equal(curriedAdder(1, 2, 3, 4), 10);
});
... | c474931ac1086fd95590e83a514624c4af4d70f1 | test/eigensheep/curry_test.js | test/eigensheep/curry_test.js | JavaScript |
<|file_sep|>src/qx/ui/core/Widget.hx.diff
original:
public function setDecorator(v:String):Void;
updated:
<|file_sep|>src/qx/ui/core/Widget.hx.diff
original:
updated:
public function getDecorator():Dynamic;
public function setDecorator(v:Dynamic):Void;
public function resetDecorator():Void;
publi... | public function setVisibility(v:String):Void;
public function getDecorator():Dynamic;
public function setDecorator(v:Dynamic):Void;
public function resetDecorator():Void;
public function getAppearance():String;
public function setAppearance(v:String):String;
public function updateAppearanc... | <|file_sep|>src/qx/ui/core/Widget.hx.diff
original:
public function setDecorator(v:String):Void;
updated:
<|file_sep|>src/qx/ui/core/Widget.hx.diff
original:
updated:
public function getDecorator():Dynamic;
public function setDecorator(v:Dynamic):Void;
public function resetDecorator():Void;
publi... | f35dd5afc3232d49b27185cc4e411269317cf16c | src/qx/ui/core/Widget.hx | src/qx/ui/core/Widget.hx | Haxe |
<|file_sep|>original/spec/spec_helper.rb
# Add ext/ to the load path so we can load `hermann_lib`
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/../ext/'))
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/../lib/'))
require 'hermann'
RSpec.configure do |c|
c.color = true
c.formatter ... | # Add ext/ to the load path so we can load `hermann_lib`
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/../ext/'))
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/../lib/'))
require 'hermann'
RSpec.configure do |c|
c.color = true
c.formatter = :documentation
shared_context 'integ... | <|file_sep|>original/spec/spec_helper.rb
# Add ext/ to the load path so we can load `hermann_lib`
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/../ext/'))
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/../lib/'))
require 'hermann'
RSpec.configure do |c|
c.color = true
c.formatter ... | 7100c8405925289564032d218aefeb64d2ef6319 | spec/spec_helper.rb | spec/spec_helper.rb | Ruby |
<|file_sep|>original/scripts/ci/create_final_release.drone.yml
image: cloudfoundry/diego-pipeline
env:
- GOROOT=/usr/local/go
- BOSH_USER={{BOSH_USER}}
- BOSH_PASSWORD={{BOSH_PASSWORD}}
- BOSH_TARGET={{BOSH_TARGET}}
- DEPLOYMENT_NAME={{DEPLOYMENT_NAME}}
- GO_PIPELINE_COUNTER={{GO_PIPELINE_COUNTER}}
- FIN... | image: cloudfoundry/diego-pipeline
env:
- GOROOT=/usr/local/go
- GO_PIPELINE_COUNTER={{GO_PIPELINE_COUNTER}}
- FINAL_RELEASE_VERSION_OFFSET={{FINAL_RELEASE_VERSION_OFFSET}}
script:
- ./scripts/ci/create_final_release_inner
cache:
- /tmp/cache
- cf-release/.blobs
- output
- .blobs | <|file_sep|>original/scripts/ci/create_final_release.drone.yml
image: cloudfoundry/diego-pipeline
env:
- GOROOT=/usr/local/go
- BOSH_USER={{BOSH_USER}}
- BOSH_PASSWORD={{BOSH_PASSWORD}}
- BOSH_TARGET={{BOSH_TARGET}}
- DEPLOYMENT_NAME={{DEPLOYMENT_NAME}}
- GO_PIPELINE_COUNTER={{GO_PIPELINE_COUNTER}}
- FIN... | d50212874f972774a3170ecbf3dc2693b4484b75 | scripts/ci/create_final_release.drone.yml | scripts/ci/create_final_release.drone.yml | YAML |
<|file_sep|>original/.github/workflows/main.yml
runs-on: ubuntu-20.04
strategy:
matrix:
ansible:
- '2.9'
- '2.10'
- '2.11'
scenario:
- pdns-43
- pdns-44
- pdns-master
- pdns-os-repos
- systemd-no-overrides
... | runs-on: ubuntu-20.04
strategy:
matrix:
ansible:
- '2.9'
- '2.10'
- '2.11'
scenario:
- pdns-43
- pdns-44
- pdns-45
- pdns-master
- pdns-os-repos
- systemd-no-overrides
steps:
- name: checkou... | <|file_sep|>original/.github/workflows/main.yml
runs-on: ubuntu-20.04
strategy:
matrix:
ansible:
- '2.9'
- '2.10'
- '2.11'
scenario:
- pdns-43
- pdns-44
- pdns-master
- pdns-os-repos
- systemd-no-overrides
... | abaaa8cd77b1430c54d5c89aca07fb42d79028cc | .github/workflows/main.yml | .github/workflows/main.yml | YAML |
<|file_sep|>original/opencog/rule-engine/backwardchainer/CMakeLists.txt
INSTALL (FILES
BackwardChainerPMCB.h
DESTINATION "include/opencog/rule-engine/backwardchainer"
)
<|file_sep|>current/opencog/rule-engine/backwardchainer/CMakeLists.txt
INSTALL (FILES
BackwardChainerPMCB.h
DESTINATION "include/opencog/rule-engin... | INSTALL (FILES
BackwardChainer.h
BackwardChainerPMCB.h
DESTINATION "include/opencog/rule-engine/backwardchainer"
) | <|file_sep|>original/opencog/rule-engine/backwardchainer/CMakeLists.txt
INSTALL (FILES
BackwardChainerPMCB.h
DESTINATION "include/opencog/rule-engine/backwardchainer"
)
<|file_sep|>current/opencog/rule-engine/backwardchainer/CMakeLists.txt
INSTALL (FILES
BackwardChainerPMCB.h
DESTINATION "include/opencog/rule-engin... | 5a86218a29e23718e40f38790ecd9b2773d7764a | opencog/rule-engine/backwardchainer/CMakeLists.txt | opencog/rule-engine/backwardchainer/CMakeLists.txt | Text |
<|file_sep|>original/fabfile.py
def deploy():
with cd(DEPLOY_DIR):
run('git pull origin master')
restart()
def restart():
sudo('service httpd restart')
def test():
local('nosetests')
def coverage():
nose_flags = [
'--with-coverage',
'--cover-html',
'--cover-pack... |
def restart():
sudo('service httpd restart')
def test():
local('nosetests')
def coverage():
nose_flags = [
'--with-coverage',
'--cover-html',
'--cover-package=app,manage,mcbench'
]
local('nosetests ' + ' '.join(nose_flags))
def up():
local('python manage.py runser... | <|file_sep|>original/fabfile.py
def deploy():
with cd(DEPLOY_DIR):
run('git pull origin master')
restart()
def restart():
sudo('service httpd restart')
def test():
local('nosetests')
def coverage():
nose_flags = [
'--with-coverage',
'--cover-html',
'--cover-pack... | c9b38972486b588790371ab41c961e68609e0b4b | fabfile.py | fabfile.py | Python |
<|file_sep|>original/requirements.txt
boto3==1.17.18
botocore~=1.20
funcy==1.15
jmespath==0.10.0
jsonschema==3.2.0
pgpasslib==1.1.0
psycopg2-binary==2.8.6
pycodestyle==2.6.0
PyYAML==5.4.1
simplejson==3.17.2
tabulate==0.8.9
termcolor==1.1.0
tqdm==4.58.0
<|file_sep|>current/requirements.txt
boto3==1.17.18
botocore~=1.20
... | boto3==1.17.23
botocore~=1.20
funcy==1.15
jmespath==0.10.0
jsonschema==3.2.0
pgpasslib==1.1.0
psycopg2-binary==2.8.6
pycodestyle==2.6.0
PyYAML==5.4.1
simplejson==3.17.2
tabulate==0.8.9
termcolor==1.1.0
tqdm==4.58.0 | <|file_sep|>original/requirements.txt
boto3==1.17.18
botocore~=1.20
funcy==1.15
jmespath==0.10.0
jsonschema==3.2.0
pgpasslib==1.1.0
psycopg2-binary==2.8.6
pycodestyle==2.6.0
PyYAML==5.4.1
simplejson==3.17.2
tabulate==0.8.9
termcolor==1.1.0
tqdm==4.58.0
<|file_sep|>current/requirements.txt
boto3==1.17.18
botocore~=1.20
... | 6d440cbad789d213bf704c52dca35082c953b577 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/metadata/com.doomy.overflow.txt
Send SMS in bulk. Features include:
* Retrive mobile phone numbers of contacts
* Send messages
* Choose the number of messages to send
* Be notified of the number of messages sent
.
Repo Type:git
Repo:https://github.com/MrDoomy/OverFlow
Build:1.0,1
commit=2d20... | .
Repo Type:git
Repo:https://github.com/MrDoomy/OverFlow
Build:1.0,1
commit=2d201b3a5d14eb3b9797816384d491817a5733da
subdir=app
gradle=yes
Build:1.0.2,3
commit=ebb66914bb85f50979271999062b1b1115856013
subdir=app
gradle=yes
prebuild=echo -e "\ninclude ':library'" >> ../settings.gradle
Aut... | <|file_sep|>original/metadata/com.doomy.overflow.txt
Send SMS in bulk. Features include:
* Retrive mobile phone numbers of contacts
* Send messages
* Choose the number of messages to send
* Be notified of the number of messages sent
.
Repo Type:git
Repo:https://github.com/MrDoomy/OverFlow
Build:1.0,1
commit=2d20... | edb3ab54e85b6af6e3af0749b3b9760f18bbc11d | metadata/com.doomy.overflow.txt | metadata/com.doomy.overflow.txt | Text |
<|file_sep|>contactmps/static/javascript/embed.js.diff
original:
updated:
var agent = navigator.userAgent.toLowerCase();
if (agent.includes("mobile") && agent.includes("android")) {
// addEventListener only available in later chrome versions
window.addEventListener("load",function(){
window.addEventListener('e... | }
var initContactMPsPymParent = function() {
var pymParent = new pym.Parent('contactmps-embed-parent', baseurl + '/campaign/newsmedia/', {});
};
var agent = navigator.userAgent.toLowerCase();
if (agent.includes("mobile") && agent.includes("android")) {
// addEventListener only available in later chrome versions
... | <|file_sep|>contactmps/static/javascript/embed.js.diff
original:
updated:
var agent = navigator.userAgent.toLowerCase();
if (agent.includes("mobile") && agent.includes("android")) {
// addEventListener only available in later chrome versions
window.addEventListener("load",function(){
window.addEventListener('e... | 9e0c94adeed288ca18c54e64b4e0a6b8d8307551 | contactmps/static/javascript/embed.js | contactmps/static/javascript/embed.js | JavaScript |
<|file_sep|>setup_new_box.sh.diff
original:
apt-get -y install vim-gnome git zsh keepass2 xdotool ruby ruby-dev curl openssh-server
updated:
apt-get install vim-gnome
apt-get install git
apt-get install zsh
apt-get install keepass2
apt-get install xdotool
apt-get install ruby ruby-dev
apt-get install curl
apt-get insta... | apt-get update
apt-get install vim-gnome
apt-get install git
apt-get install zsh
apt-get install keepass2
apt-get install xdotool
apt-get install ruby ruby-dev
apt-get install curl
apt-get install openssh-server
curl -L http://install.ohmyz.sh | sh
git clone https://github.com/nathanalderson/dotfiles.git
dotfiles/set... | <|file_sep|>setup_new_box.sh.diff
original:
apt-get -y install vim-gnome git zsh keepass2 xdotool ruby ruby-dev curl openssh-server
updated:
apt-get install vim-gnome
apt-get install git
apt-get install zsh
apt-get install keepass2
apt-get install xdotool
apt-get install ruby ruby-dev
apt-get install curl
apt-get insta... | bd100fa4f29d3528ba66988d39b1d8d06e0b4e8a | setup_new_box.sh | setup_new_box.sh | Shell |
<|file_sep|>composer.json.diff
original:
"php": ">=5.3.3",
"symfony/dependency-injection": "~2.3|~3.0.0",
updated:
"php": ">=5.5.9",
"symfony/dependency-injection": "~2.7|~3.0",
<|file_sep|>original/composer.json
"name": "Symfony Community",
"homepage": "http://sy... | "name": "Symfony Community",
"homepage": "http://symfony.com/contributors"
}
],
"require": {
"php": ">=5.5.9",
"symfony/dependency-injection": "~2.7|~3.0",
"ocramius/proxy-manager": "~0.4|~1.0"
},
"require-dev": {
"symfony/config": "~2.7|~3... | <|file_sep|>composer.json.diff
original:
"php": ">=5.3.3",
"symfony/dependency-injection": "~2.3|~3.0.0",
updated:
"php": ">=5.5.9",
"symfony/dependency-injection": "~2.7|~3.0",
<|file_sep|>original/composer.json
"name": "Symfony Community",
"homepage": "http://sy... | c66cd59fe9d3271744589f6f779d4ffc0598e5ca | composer.json | composer.json | JSON |
<|file_sep|>original/app/subapps/browser/templates/sidebar.handlebars
<div class="charmbrowser" class="yui3-g">
<div id="bws-sidebar" class="yui3-u-1-4">
<div class="bws-header">
</div>
<div class="bws-left">
<div class="slider"></div>
<h3>New Charms</h3>
... | <div class="charmbrowser" class="yui3-g">
<div id="bws-sidebar" class="yui3-u-1-4">
<div class="bws-header">
</div>
<div class="bws-left">
<div class="slider"></div>
<h3>New Charms</h3>
<div class="new"></div>
</div>
</div>
<div class="bw... | <|file_sep|>original/app/subapps/browser/templates/sidebar.handlebars
<div class="charmbrowser" class="yui3-g">
<div id="bws-sidebar" class="yui3-u-1-4">
<div class="bws-header">
</div>
<div class="bws-left">
<div class="slider"></div>
<h3>New Charms</h3>
... | 90bc509de1b044cc3910b6103c7c8a96e1576b7b | app/subapps/browser/templates/sidebar.handlebars | app/subapps/browser/templates/sidebar.handlebars | Handlebars |
<|file_sep|>original/client/landing/app/Applications/Chat.kdapplication/Controllers/conversationlistcontroller.coffee
class ChatConversationListController extends CommonChatController
constructor:->
super
@getListView().on 'moveToIndexRequested', @bound 'moveItemToIndex'
# loadItems:(callback)->
# sup... | class ChatConversationListController extends CommonChatController
constructor:->
super
@getListView().on 'moveToIndexRequested', @bound 'moveItemToIndex'
addItem:(data)->
# Make sure there is one conversation with same channel name
{chatChannel} = data
for chat in @itemsOrdered
return i... | <|file_sep|>original/client/landing/app/Applications/Chat.kdapplication/Controllers/conversationlistcontroller.coffee
class ChatConversationListController extends CommonChatController
constructor:->
super
@getListView().on 'moveToIndexRequested', @bound 'moveItemToIndex'
# loadItems:(callback)->
# sup... | 507e56025f3830fcfe0a9abf70a33f996efb9bc7 | client/landing/app/Applications/Chat.kdapplication/Controllers/conversationlistcontroller.coffee | client/landing/app/Applications/Chat.kdapplication/Controllers/conversationlistcontroller.coffee | CoffeeScript |
<|file_sep|>original/lib/vagrant-snap/providers/virtualbox/driver/base.rb
module VagrantPlugins
module ProviderVirtualBox
module Driver
class Base
def snapshot_take
execute("snapshot", @uuid, "take", "vagrant-snap", "--pause")
end
... | module VagrantPlugins
module ProviderVirtualBox
module Driver
class Base
def snapshot_take
execute("snapshot", @uuid, "take", "vagrant-snap-#{Time.now.to_i}", "--pause")
end
def snapshot_rollback(bootmode)
... | <|file_sep|>original/lib/vagrant-snap/providers/virtualbox/driver/base.rb
module VagrantPlugins
module ProviderVirtualBox
module Driver
class Base
def snapshot_take
execute("snapshot", @uuid, "take", "vagrant-snap", "--pause")
end
... | 11b3cdaca791c8330180b09a1c940c9b87d39e72 | lib/vagrant-snap/providers/virtualbox/driver/base.rb | lib/vagrant-snap/providers/virtualbox/driver/base.rb | Ruby |
<|file_sep|>taarifa_backend/__init__.py.diff
original:
updated:
from os import environ
import urlparse
<|file_sep|>original/taarifa_backend/__init__.py
from flask import Flask
from flask.ext.mongoengine import MongoEngine
import logging
# configure the logging
logging.basicConfig(level='DEBUG', format='%(asctime)s - ... | from flask import Flask
from flask.ext.mongoengine import MongoEngine
import logging
from os import environ
import urlparse
# configure the logging
logging.basicConfig(level='DEBUG', format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
app = Flask(__name__)
if environ.get('MONGOLAB_URI'):
url = urlparse... | <|file_sep|>taarifa_backend/__init__.py.diff
original:
updated:
from os import environ
import urlparse
<|file_sep|>original/taarifa_backend/__init__.py
from flask import Flask
from flask.ext.mongoengine import MongoEngine
import logging
# configure the logging
logging.basicConfig(level='DEBUG', format='%(asctime)s - ... | 2502a6c54e4f87d3d344077cce5029e4bbca58d5 | taarifa_backend/__init__.py | taarifa_backend/__init__.py | Python |
<|file_sep|>README.md.diff
original:
Resize an image for multiple screen densities.
updated:
Resize an image for multiple screen densities.
<|file_sep|>README.md.diff
original:
andimg [-h] [-o OUT] [-e EXT] file x y
updated:
<|file_sep|>README.md.diff
original:
updated:
andimg [options] [file] [res]
positional ar... | 'small'], or a resolution in the form of 'X,Y'.
optional arguments:
-h, --help show this help message and exit
-o OUT, --output-dir OUT
Output directory.
-e EXT, --extension EXT
Output file extension. Defaults to PNG.
... | <|file_sep|>README.md.diff
original:
Resize an image for multiple screen densities.
updated:
Resize an image for multiple screen densities.
<|file_sep|>README.md.diff
original:
andimg [-h] [-o OUT] [-e EXT] file x y
updated:
<|file_sep|>README.md.diff
original:
updated:
andimg [options] [file] [res]
positional ar... | fd7a9dff41196176a2184ef15b00a40a172c535f | README.md | README.md | Markdown |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.