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/dev_requirements.txt
coverage==4.4.2
factory-boy==2.10.0
flake8==3.5.0
flake8-blind-except==0.1.1
flake8-debugger==3.0.0
flake8-deprecated==1.3
flake8-docstrings==1.3.0
flake8-isort==2.3
flake8-quotes==0.13.0
flake8-string-format==0.2.3
ipdb==0.10.3
isort==4.3.1
mockldap==0.3.0
pytest==3.4.0
pytest... | coverage==4.4.2
factory-boy==2.10.0
flake8==3.5.0
flake8-blind-except==0.1.1
flake8-debugger==3.0.0
flake8-deprecated==1.3
flake8-docstrings==1.3.0
flake8-isort==2.3
flake8-quotes==0.13.0
flake8-string-format==0.2.3
ipdb==0.11
isort==4.3.1
mockldap==0.3.0
pytest==3.4.0
pytest-cov==2.5.1
pytest-env==0.6.2
pytest-mock==1... | <|file_sep|>original/dev_requirements.txt
coverage==4.4.2
factory-boy==2.10.0
flake8==3.5.0
flake8-blind-except==0.1.1
flake8-debugger==3.0.0
flake8-deprecated==1.3
flake8-docstrings==1.3.0
flake8-isort==2.3
flake8-quotes==0.13.0
flake8-string-format==0.2.3
ipdb==0.10.3
isort==4.3.1
mockldap==0.3.0
pytest==3.4.0
pytest... | 8c2bc3e5b61d4a57f6702de3c6ef946173b318d7 | dev_requirements.txt | dev_requirements.txt | Text |
<|file_sep|>original/app/managers/photo_manager.rb
photo_manager = new( asset.photo_name )
asset.num_photo_downloads += 1 if not internal
asset.save!
return photo_manager
end
def photo_image
@photo ||= File.read( self.photo_path )
end
def photo_image_exists?
@photo_image_exists ||= F... | asset.num_photo_downloads += 1 if not internal
asset.save!
return photo_manager
end
def photo_image
@photo ||= File.read( self.photo_path )
end
def photo_image_exists?
@photo_image_exists ||= File.exists?( self.photo_path )
end
def remove_photo_from_drop_folder
if self.photo_imag... | <|file_sep|>original/app/managers/photo_manager.rb
photo_manager = new( asset.photo_name )
asset.num_photo_downloads += 1 if not internal
asset.save!
return photo_manager
end
def photo_image
@photo ||= File.read( self.photo_path )
end
def photo_image_exists?
@photo_image_exists ||= F... | 90c15d142b0e074a8132be194d7fd4bb35142ef5 | app/managers/photo_manager.rb | app/managers/photo_manager.rb | Ruby |
<|file_sep|>build/tasks/build-docker.js.diff
original:
var dockerBuild = exec('docker build --no-cache -f docker/Dockerfile -t '+ IMAGE_TAG +' .');
updated:
var dockerBuild = exec('docker build --no-cache -f docker/Dockerfile -t '+ IMAGE_TAG +' .', function(error, stout, stderr) {
return callback(error);
});... | var gulp = require('gulp');
var exec = require('child_process').exec;
var IMAGE_TAG = process.env.DOCKER_IMAGE_TAG || 'ottogiron/hapiseed';
gulp.task('build-docker', function(callback){
var dockerBuild = exec('docker build --no-cache -f docker/Dockerfile -t '+ IMAGE_TAG +' .', function(error, stout, stderr) {
... | <|file_sep|>build/tasks/build-docker.js.diff
original:
var dockerBuild = exec('docker build --no-cache -f docker/Dockerfile -t '+ IMAGE_TAG +' .');
updated:
var dockerBuild = exec('docker build --no-cache -f docker/Dockerfile -t '+ IMAGE_TAG +' .', function(error, stout, stderr) {
return callback(error);
});... | edfe16d1ba28b049ea7099c6003de2976e9d6966 | build/tasks/build-docker.js | build/tasks/build-docker.js | JavaScript |
<|file_sep|>original/mangaki/mangaki/migrations/0013_auto_20150616_0919.py
<|file_sep|>current/mangaki/mangaki/migrations/0013_auto_20150616_0919.py
<|file_sep|>updated/mangaki/mangaki/migrations/0013_auto_20150616_0919.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('mangaki', '0012_auto_20150616_0832'),
]
operations = [
migrations.AddField(
model_name='anime',
name... | <|file_sep|>original/mangaki/mangaki/migrations/0013_auto_20150616_0919.py
<|file_sep|>current/mangaki/mangaki/migrations/0013_auto_20150616_0919.py
<|file_sep|>updated/mangaki/mangaki/migrations/0013_auto_20150616_0919.py
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, ... | 9141e9e859bab8999e785f796d4613d66a765ba9 | mangaki/mangaki/migrations/0013_auto_20150616_0919.py | mangaki/mangaki/migrations/0013_auto_20150616_0919.py | Python |
<|file_sep|>wrappers/src/object-store/src/impl/generic/external_commit_helper.cpp.diff
original:
updated:
//: m_parent(parent)
//, m_history(realm::make_client_history(parent.get_path(), parent.get_encryption_key().data()))
//, m_sg(*m_history, parent.is_in_memory() ? SharedGroup::durability_MemOnly : SharedGroup::dur... | ExternalCommitHelper::ExternalCommitHelper(RealmCoordinator& parent)
//: m_parent(parent)
//, m_history(realm::make_client_history(parent.get_path(), parent.get_encryption_key().data()))
//, m_sg(*m_history, parent.is_in_memory() ? SharedGroup::durability_MemOnly : SharedGroup::durability_Full,
// parent.get_encr... | <|file_sep|>wrappers/src/object-store/src/impl/generic/external_commit_helper.cpp.diff
original:
updated:
//: m_parent(parent)
//, m_history(realm::make_client_history(parent.get_path(), parent.get_encryption_key().data()))
//, m_sg(*m_history, parent.is_in_memory() ? SharedGroup::durability_MemOnly : SharedGroup::dur... | c8bf41256348b38ead02bce371bf4e03df7cd274 | wrappers/src/object-store/src/impl/generic/external_commit_helper.cpp | wrappers/src/object-store/src/impl/generic/external_commit_helper.cpp | C++ |
<|file_sep|>original/extras/integration_tests/vm/test/save_and_restore_test.dart
<|file_sep|>current/extras/integration_tests/vm/test/save_and_restore_test.dart
<|file_sep|>updated/extras/integration_tests/vm/test/save_and_restore_test.dart | import 'dart:io';
import 'package:moor_ffi/moor_ffi.dart';
import 'package:path/path.dart';
import 'package:test/test.dart';
import 'package:tests/database/database.dart';
final File mainFile =
File(join(Directory.systemTemp.path, 'moor-save-and-restore-tests-1'));
final File createdForSwap =
File(join(Direct... | <|file_sep|>original/extras/integration_tests/vm/test/save_and_restore_test.dart
<|file_sep|>current/extras/integration_tests/vm/test/save_and_restore_test.dart
<|file_sep|>updated/extras/integration_tests/vm/test/save_and_restore_test.dart
import 'dart:io';
import 'package:moor_ffi/moor_ffi.dart';
import 'package:p... | ae7c9df049ea7b0d479c60f56d2a8dd740e115e7 | extras/integration_tests/vm/test/save_and_restore_test.dart | extras/integration_tests/vm/test/save_and_restore_test.dart | Dart |
<|file_sep|>package-lock.json.diff
original:
"version": "1.0.1",
updated:
"version": "1.1.0",
<|file_sep|>original/package-lock.json
{
"name": "grunt-msbuild",
"version": "1.0.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"async": {
"version": "2.6.2",
"resolved": "https://... | {
"name": "grunt-msbuild",
"version": "1.1.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"async": {
"version": "2.6.2",
"resolved": "https://registry.npmjs.org/async/-/async-2.6.2.tgz",
"integrity": "sha512-H1qVYh1MYhEEFLsP97cVKqCGo7KfCyTt6uEWqsTBr9SO84oK9Uwbyd/yCW+6rKJLH... | <|file_sep|>package-lock.json.diff
original:
"version": "1.0.1",
updated:
"version": "1.1.0",
<|file_sep|>original/package-lock.json
{
"name": "grunt-msbuild",
"version": "1.0.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"async": {
"version": "2.6.2",
"resolved": "https://... | 7b9b78e4ea1776311ec4f419e217e4462dab4da5 | package-lock.json | package-lock.json | JSON |
<|file_sep|>original/home/.config/whizkers/templates/oomox/colors/whizkers.sh
NAME="{{ scheme_name }}"
BG={{ bgc_nohash }}
FG={{ fgc_nohash }}
SEL_BG={{ n_primary_nohash }}
SEL_FG={{ fgc_nohash }}
TXT_BG={{ n_black_nohash }}
TXT_FG={{ fgc_nohash }}
MENU_BG={{ n_white_nohash }}
MENU_FG={{ n_black_nohash... | NAME="{{ scheme_name }}"
BG={{ bgc_nohash }}
FG={{ fgc_nohash }}
SEL_BG={{ n_primary_nohash }}
SEL_FG={{ fgc_nohash }}
TXT_BG={{ n_black_nohash }}
TXT_FG={{ fgc_nohash }}
MENU_BG={{ bgc_nohash }}
MENU_FG={{ fgc_nohash }}
BTN_BG={{ b_black_nohash }}
BTN_FG={{ fgc_nohash }} | <|file_sep|>original/home/.config/whizkers/templates/oomox/colors/whizkers.sh
NAME="{{ scheme_name }}"
BG={{ bgc_nohash }}
FG={{ fgc_nohash }}
SEL_BG={{ n_primary_nohash }}
SEL_FG={{ fgc_nohash }}
TXT_BG={{ n_black_nohash }}
TXT_FG={{ fgc_nohash }}
MENU_BG={{ n_white_nohash }}
MENU_FG={{ n_black_nohash... | 592ce149291c39ee84698cba826a4d40c2828b2f | home/.config/whizkers/templates/oomox/colors/whizkers.sh | home/.config/whizkers/templates/oomox/colors/whizkers.sh | Shell |
<|file_sep|>test/browser/heroku_ci.sh.diff
original:
cci org scratch_delete browsertest_master
updated:
cci org scratch_delete browsertests_master
<|file_sep|>original/test/browser/heroku_ci.sh
# Deploy unmanaged metadata
cci flow run dev_org
exit_status=$?
if [ "$exit_status" = "1" ]; then
... |
# Deploy unmanaged metadata
cci flow run dev_org
exit_status=$?
if [ "$exit_status" = "1" ]; then
echo "Flow execution failed, failing test"
cci org scratch_delete browsertests_feature
exit 1
fi
# Run the browser tests
cci flow run ci_browsertests
exit_status=$?... | <|file_sep|>test/browser/heroku_ci.sh.diff
original:
cci org scratch_delete browsertest_master
updated:
cci org scratch_delete browsertests_master
<|file_sep|>original/test/browser/heroku_ci.sh
# Deploy unmanaged metadata
cci flow run dev_org
exit_status=$?
if [ "$exit_status" = "1" ]; then
... | 3f118be51ad7ede2720b002b270a7709c6172601 | test/browser/heroku_ci.sh | test/browser/heroku_ci.sh | Shell |
<|file_sep|>original/archiveComponents.sh
PATH=$PATH:/usr/local/bin:/usr/bin:/sw/bin:/opt/local/bin
function compressComponents(){
mkdir -p "$2"
cd $1
for itemName in *.component ; do
itemLength=${#itemName}
item=${itemName:0:$itemLength-10}
# echo $item
if [[ -d $itemName ]] ; then
zip -9r "${i... | PATH=$PATH:/usr/local/bin:/usr/bin:/sw/bin:/opt/local/bin
function compressComponents(){
mkdir -p "$2"
cd $1
for itemName in *.component ; do
itemLength=${#itemName}
item=${itemName:0:$itemLength-10}
# echo $item
if [[ -d $itemName ]] ; then
ditto -c -k --rsrc --keepParent "$itemName" "${item}.z... | <|file_sep|>original/archiveComponents.sh
PATH=$PATH:/usr/local/bin:/usr/bin:/sw/bin:/opt/local/bin
function compressComponents(){
mkdir -p "$2"
cd $1
for itemName in *.component ; do
itemLength=${#itemName}
item=${itemName:0:$itemLength-10}
# echo $item
if [[ -d $itemName ]] ; then
zip -9r "${i... | 71b8f26c7fecfdcf13a86e0197b2be36f876ef34 | archiveComponents.sh | archiveComponents.sh | Shell |
<|file_sep|>original/error_data.gemspec
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'error_data'
s.version = '0.2.0.0'
s.summary = 'Representation of an error as a data structure'
s.description = ' '
s.authors = ['Obsidian Software, Inc']
s.email = 'opensource@obsidianexchange.com'
s... | # -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'error_data'
s.version = '0.2.0.1'
s.summary = 'Representation of an error as a data structure'
s.description = ' '
s.authors = ['Obsidian Software, Inc']
s.email = 'opensource@obsidianexchange.com'
s.homepage = 'https://github.com/obsidian... | <|file_sep|>original/error_data.gemspec
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'error_data'
s.version = '0.2.0.0'
s.summary = 'Representation of an error as a data structure'
s.description = ' '
s.authors = ['Obsidian Software, Inc']
s.email = 'opensource@obsidianexchange.com'
s... | 6d47049a150b3b4cd79bcef79fad62ca798fffd9 | error_data.gemspec | error_data.gemspec | Ruby |
<|file_sep|>original/core/context_processors.py
from django.conf import settings as django_settings
from django.utils.translation import ugettext_lazy as _
def settings(request):
if not getattr(django_settings, "SOCIAL", None):
return {}
return {
"SOCIAL_FACEBOOK": django_settings.SOCIAL.get("F... | from django.conf import settings as django_settings
from django.utils.translation import ugettext_lazy as _
def settings(request):
if not getattr(django_settings, "SOCIAL", None):
return {}
return {
"SOCIAL_FACEBOOK": django_settings.SOCIAL.get("FACEBOOK", ""),
"SOCIAL_TWITTER": django_... | <|file_sep|>original/core/context_processors.py
from django.conf import settings as django_settings
from django.utils.translation import ugettext_lazy as _
def settings(request):
if not getattr(django_settings, "SOCIAL", None):
return {}
return {
"SOCIAL_FACEBOOK": django_settings.SOCIAL.get("F... | 0e754fe4ea8ddee4bb952b483c4da2d8bf5970ed | core/context_processors.py | core/context_processors.py | Python |
<|file_sep|>nodes/artemis/artemis-client.js.diff
original:
RED.nodes.createNode(this,config);
updated:
RED.nodes.createNode(this, config);
<|file_sep|>nodes/artemis/artemis-client.js.diff
original:
updated:
<|file_sep|>original/nodes/artemis/artemis-client.js
artemisModel = require('./public/j... | artemisModel = require('./public/javascripts/worldmodel');
function ArtemisClient(config) {
RED.nodes.createNode(this, config);
var node = this;
this.status({fill:"red", shape:"ring",text:"disconnected"});
this.server = RED.nodes.getNode(config.server);
try {
... | <|file_sep|>nodes/artemis/artemis-client.js.diff
original:
RED.nodes.createNode(this,config);
updated:
RED.nodes.createNode(this, config);
<|file_sep|>nodes/artemis/artemis-client.js.diff
original:
updated:
<|file_sep|>original/nodes/artemis/artemis-client.js
artemisModel = require('./public/j... | 60640d5fcbab7b36f90b2c49ed7774afb1318a05 | nodes/artemis/artemis-client.js | nodes/artemis/artemis-client.js | JavaScript |
<|file_sep|>peering/migrations/0027_auto_20190105_1600.py.diff
original:
updated:
def forwards_func(apps, schema_editor):
AutonomousSystem = apps.get_model("peering", "AutonomousSystem")
db_alias = schema_editor.connection.alias
AutonomousSystem.objects.using(db_alias).filter(
p... |
def reverse_func(apps, schema_editor):
AutonomousSystem = apps.get_model("peering", "AutonomousSystem")
db_alias = schema_editor.connection.alias
AutonomousSystem.objects.using(db_alias).filter(
potential_internet_exchange_peering_sessions=[]
).update(potential_internet_... | <|file_sep|>peering/migrations/0027_auto_20190105_1600.py.diff
original:
updated:
def forwards_func(apps, schema_editor):
AutonomousSystem = apps.get_model("peering", "AutonomousSystem")
db_alias = schema_editor.connection.alias
AutonomousSystem.objects.using(db_alias).filter(
p... | 0ce14be170e09530b225f2f7526ad68ee1758095 | peering/migrations/0027_auto_20190105_1600.py | peering/migrations/0027_auto_20190105_1600.py | Python |
<|file_sep|>original/azure-pipelines.yml
<|file_sep|>current/azure-pipelines.yml
<|file_sep|>updated/azure-pipelines.yml | # Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- master
pool:
vmImage: ubuntu-latest
steps:
- script: echo Hello, world!
displayName: 'Run a one-line script'
- script: |
... | <|file_sep|>original/azure-pipelines.yml
<|file_sep|>current/azure-pipelines.yml
<|file_sep|>updated/azure-pipelines.yml
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- maste... | 68db1834e9f7c1e5774589fe8a41976fcf9b778f | azure-pipelines.yml | azure-pipelines.yml | YAML |
<|file_sep|>raw_data/convert_players.clj.diff
original:
updated:
(defn iso-date [s]
(let [[day month year] (split s #"/")]
(format "%s-%s-%s" year month day)))
<|file_sep|>original/raw_data/convert_players.clj
(let [words (split s #" ")
word-names (map capitalize words)]
(join " " word-names)))
(... | (defn iso-date [s]
(let [[day month year] (split s #"/")]
(format "%s-%s-%s" year month day)))
(defn convert-player [country data]
(let [shirt (data 0)]
{
:id (str country "_" shirt)
:country (nameify country)
:name (nameify (data 1))
:shirt_number shirt
:date_of_birth (iso-da... | <|file_sep|>raw_data/convert_players.clj.diff
original:
updated:
(defn iso-date [s]
(let [[day month year] (split s #"/")]
(format "%s-%s-%s" year month day)))
<|file_sep|>original/raw_data/convert_players.clj
(let [words (split s #" ")
word-names (map capitalize words)]
(join " " word-names)))
(... | 7462a8c27661439ffce6c0737254125bf931f2c8 | raw_data/convert_players.clj | raw_data/convert_players.clj | Clojure |
<|file_sep|>original/lib/specinfra/command/redhat/base/yumrepo.rb
class Specinfra::Command::Redhat::Base::Yumrepo < Specinfra::Command::Linux::Base::Yumrepo
class << self
def check_exists(repository)
"yum repolist all -C | grep ^#{escape(repository)}"
end
def check_is_enabled(repository)
"yum... | class Specinfra::Command::Redhat::Base::Yumrepo < Specinfra::Command::Linux::Base::Yumrepo
class << self
def check_exists(repository)
"yum repolist all -C | grep ^#{escape(repository)}"
end
def check_is_enabled(repository)
"yum repolist enabled -C | grep -qs \"^[\\!\\*]\\?#{escape(repository)... | <|file_sep|>original/lib/specinfra/command/redhat/base/yumrepo.rb
class Specinfra::Command::Redhat::Base::Yumrepo < Specinfra::Command::Linux::Base::Yumrepo
class << self
def check_exists(repository)
"yum repolist all -C | grep ^#{escape(repository)}"
end
def check_is_enabled(repository)
"yum... | 35f6f6bfc4a89673c6d70b1d332a3999638fb678 | lib/specinfra/command/redhat/base/yumrepo.rb | lib/specinfra/command/redhat/base/yumrepo.rb | Ruby |
<|file_sep|>original/requirements_dev.txt
future==0.16.0
pip==9.0.1
bumpversion==0.5.3
wheel==0.29.0
watchdog==0.8.3
flake8==3.2.1
tox==2.5.0
coverage==4.3
Sphinx==1.5.1
PyYAML==3.12
pytest==3.0.5
mockfs==1.0.2
<|file_sep|>current/requirements_dev.txt
future==0.16.0
pip==9.0.1
bumpversion==0.5.3
wheel==0.29.0
watchdog=... | future==0.16.0
pip==9.0.1
bumpversion==0.5.3
wheel==0.29.0
watchdog==0.8.3
flake8==3.2.1
tox==2.5.0
coverage==4.3.1
Sphinx==1.5.1
PyYAML==3.12
pytest==3.0.5
mockfs==1.0.2 | <|file_sep|>original/requirements_dev.txt
future==0.16.0
pip==9.0.1
bumpversion==0.5.3
wheel==0.29.0
watchdog==0.8.3
flake8==3.2.1
tox==2.5.0
coverage==4.3
Sphinx==1.5.1
PyYAML==3.12
pytest==3.0.5
mockfs==1.0.2
<|file_sep|>current/requirements_dev.txt
future==0.16.0
pip==9.0.1
bumpversion==0.5.3
wheel==0.29.0
watchdog=... | 206fb183ca4a9c4bc21ecc423307921bcab93bde | requirements_dev.txt | requirements_dev.txt | Text |
<|file_sep|>atom/my-packages.txt.diff
original:
Hydrogen@0.9.1
updated:
Hydrogen@0.14.0
<|file_sep|>atom/my-packages.txt.diff
original:
autocomplete-python@1.8.1
file-icons@1.7.14
updated:
autocomplete-python@1.8.6
file-icons@1.7.22
<|file_sep|>atom/my-packages.txt.diff
original:
hyperclick@0.0.36
language-latex@0.6.1
... | highlight-line@0.11.1
highlight-selected@0.11.2
hyperclick@0.0.39
indent-guide-improved@1.4.10
language-cython@0.3.0
language-latex@1.0.0
language-markdown@0.16.3
language-matlab@0.2.1
language-restructuredtext@1.0.1
latextools@0.8.4
linter@1.11.18
linter-chktex@1.3.0
linter-csslint@1.3.3
linter-flake8@2.0.0
linter-mar... | <|file_sep|>atom/my-packages.txt.diff
original:
Hydrogen@0.9.1
updated:
Hydrogen@0.14.0
<|file_sep|>atom/my-packages.txt.diff
original:
autocomplete-python@1.8.1
file-icons@1.7.14
updated:
autocomplete-python@1.8.6
file-icons@1.7.22
<|file_sep|>atom/my-packages.txt.diff
original:
hyperclick@0.0.36
language-latex@0.6.1
... | 238e99be3705902b913dac4241093165e6ac1f8c | atom/my-packages.txt | atom/my-packages.txt | Text |
<|file_sep|>platformio.ini.diff
original:
https://github.com/marvinroger/homie-esp8266.git#develop
monitor_baud = 115200
updated:
Homie
monitor_speed = 115200
<|file_sep|>platformio.ini.diff
original:
updated:
[env:nodemcu]
platform = espressif8266
board = nodemcu
framework = arduino
lib_deps = ... | monitor_speed = ${common.monitor_speed}
upload_speed = ${common.upload_speed}
[env:nodemcuv2]
platform = espressif8266
board = nodemcuv2
framework = arduino
lib_deps = ${common.lib_deps}
board_build.f_cpu = 160000000L
monitor_speed = ${common.monitor_speed}
upload_speed = ${common.upload_speed}
[env:d1_min... | <|file_sep|>platformio.ini.diff
original:
https://github.com/marvinroger/homie-esp8266.git#develop
monitor_baud = 115200
updated:
Homie
monitor_speed = 115200
<|file_sep|>platformio.ini.diff
original:
updated:
[env:nodemcu]
platform = espressif8266
board = nodemcu
framework = arduino
lib_deps = ... | b60f592cff4a56089bd8db6cced9e6147bf88cc6 | platformio.ini | platformio.ini | INI |
<|file_sep|>commands/copy.go.diff
original:
updated:
"github.com/bndw/pick/utils"
<|file_sep|>commands/copy.go.diff
original:
if err := safe.Copy(args[0]); err != nil {
updated:
account, err := safe.Get(args[0])
if err != nil {
<|file_sep|>original/commands/copy.go
fmt.Println("USAGE: copy [name]")
os.Exit... | },
})
}
func Copy(args ...string) int {
safe, err := loadSafe()
if err != nil {
return handleError(err)
}
account, err := safe.Get(args[0])
if err != nil {
return handleError(err)
}
if err := utils.CopyToClipboard(account.Password); err != nil {
handleError(err)
}
return 0
} | <|file_sep|>commands/copy.go.diff
original:
updated:
"github.com/bndw/pick/utils"
<|file_sep|>commands/copy.go.diff
original:
if err := safe.Copy(args[0]); err != nil {
updated:
account, err := safe.Get(args[0])
if err != nil {
<|file_sep|>original/commands/copy.go
fmt.Println("USAGE: copy [name]")
os.Exit... | 5e593f6c2a774e85319c13d23a9436fa32a93a71 | commands/copy.go | commands/copy.go | Go |
<|file_sep|>src/manipulation/support.js.diff
original:
updated:
// Support: Android 4.0-4.3
// Check state lost if the name is set (#11217)
<|file_sep|>original/src/manipulation/support.js
var fragment = document.createDocumentFragment(),
div = fragment.appendChild( document.createElement( "div" ) ),
input = do... | var fragment = document.createDocumentFragment(),
div = fragment.appendChild( document.createElement( "div" ) ),
input = document.createElement( "input" );
// Support: Android 4.0-4.3
// Check state lost if the name is set (#11217)
// Support: Windows Web Apps (WWA)
// `name` and `type` must use .setAttribute... | <|file_sep|>src/manipulation/support.js.diff
original:
updated:
// Support: Android 4.0-4.3
// Check state lost if the name is set (#11217)
<|file_sep|>original/src/manipulation/support.js
var fragment = document.createDocumentFragment(),
div = fragment.appendChild( document.createElement( "div" ) ),
input = do... | 1bbb678949da480dce0d9ed3d0fb273bccce9787 | src/manipulation/support.js | src/manipulation/support.js | JavaScript |
<|file_sep|>original/tests/terrain.py
from lettuce import world
import os
"""
Set world.basedir relative to this terrain.py file,
when running lettuce from this directory,
and add the directory it to the import path
"""
world.basedir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
os.sys.... | from lettuce import world
import os
"""
Set world.basedir relative to this terrain.py file,
when running lettuce from this directory,
and add the directory it to the import path
"""
world.basedir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
os.sys.path.insert(0,world.basedir)
world.bas... | <|file_sep|>original/tests/terrain.py
from lettuce import world
import os
"""
Set world.basedir relative to this terrain.py file,
when running lettuce from this directory,
and add the directory it to the import path
"""
world.basedir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
os.sys.... | 525cbab46570342098613ae591749b4cf5026453 | tests/terrain.py | tests/terrain.py | Python |
<|file_sep|>original/ci/tools.sh
printf "\nFailed %d times.\n" $max >&2
}
return $result
}
if retry rustup component add rustfmt ; then
cargo fmt --all -- --check
fi
if retry rustup component add clippy ; then
cargo clippy --all --tests --features serde,rayon,bumpalo -- -D clippy::all -D cli... | printf "\nFailed %d times.\n" $max >&2
}
return $result
}
if retry rustup component add rustfmt ; then
cargo fmt --all -- --check
fi
if retry rustup component add clippy ; then
cargo clippy --all --tests --features serde,rayon,bumpalo -- -D clippy::all -D clippy::pedantic
cargo clippy --... | <|file_sep|>original/ci/tools.sh
printf "\nFailed %d times.\n" $max >&2
}
return $result
}
if retry rustup component add rustfmt ; then
cargo fmt --all -- --check
fi
if retry rustup component add clippy ; then
cargo clippy --all --tests --features serde,rayon,bumpalo -- -D clippy::all -D cli... | 68145c7e80dc29ad263e66ef50752f7eccfb0120 | ci/tools.sh | ci/tools.sh | Shell |
<|file_sep|>original/random_nts.p6
<|file_sep|>current/random_nts.p6
<|file_sep|>updated/random_nts.p6 | #!/bin/env perl6
multi MAIN ($length=50, $count=32000000, $filetype='fastq')
{
MAIN($filetype, $length, $count);
}
multi MAIN('fastq', $length, $count)
{
my $fh = open "sample.$length.$count.fq", :w;
$fh.say(("@$_", rand_seq($length), '+', rand_qual($length)).join("\n")) for ^$count;
}
multi MAIN('fasta'... | <|file_sep|>original/random_nts.p6
<|file_sep|>current/random_nts.p6
<|file_sep|>updated/random_nts.p6
#!/bin/env perl6
multi MAIN ($length=50, $count=32000000, $filetype='fastq')
{
MAIN($filetype, $length, $count);
}
multi MAIN('fastq', $length, $count)
{
my $fh = open "sample.$length.$count.fq", :w;
$... | fce8d897eaee7d0770382cc00348a3df9d097475 | random_nts.p6 | random_nts.p6 | Perl6 |
<|file_sep|>original/README.md
TODO:
* ConvCNN
* Pyramid-RNN (Row-RNN)
* Train on CIFAR-10
The PixelRNN implementation can converge to a decent solution in a few epochs of training on MNIST.
### Examples
Images sampled (generated) from the Bi-Diag-LSTM:

Original images... |
TODO:
* ConvCNN
* Pyramid-RNN (Row-RNN)
* Train on CIFAR-10
The PixelRNN implementation can converge to a decent solution in a few epochs of training on MNIST.
### Examples
Images sampled (generated) from the Bi-Diag-LSTM:

Original images (left) and the same images wit... | <|file_sep|>original/README.md
TODO:
* ConvCNN
* Pyramid-RNN (Row-RNN)
* Train on CIFAR-10
The PixelRNN implementation can converge to a decent solution in a few epochs of training on MNIST.
### Examples
Images sampled (generated) from the Bi-Diag-LSTM:

Original images... | 3a5cb17211503f536403301e55d98b4956d064aa | README.md | README.md | Markdown |
<|file_sep|>main.ml.diff
original:
updated:
module U = Unix
<|file_sep|>main.ml.diff
original:
let version = "0.1"
updated:
let description = String.concat ~sep:" " [
"Allow xapi storage adapters to be written as individual scripts.";
"To add a storage adapter, create a sub-directory in the --root directory";
"w... |
let resources = [
{ Xcp_service.name = "root";
description = "directory whose sub-directories contain sets of per-operation scripts, one sub-directory per queue name";
essential = true;
path = root_dir;
perms = [ U.X_OK ];
}
]
let _ =
match configure2
~name:"xapi-script-storage"
~version... | <|file_sep|>main.ml.diff
original:
updated:
module U = Unix
<|file_sep|>main.ml.diff
original:
let version = "0.1"
updated:
let description = String.concat ~sep:" " [
"Allow xapi storage adapters to be written as individual scripts.";
"To add a storage adapter, create a sub-directory in the --root directory";
"w... | 43f4df026ae80cf00209cf2a7f092d465bb27520 | main.ml | main.ml | OCaml |
<|file_sep|>original/db/migrate/20130222234500_fix_decimal_type_for_preorder_prices.rb
<|file_sep|>current/db/migrate/20130222234500_fix_decimal_type_for_preorder_prices.rb
<|file_sep|>updated/db/migrate/20130222234500_fix_decimal_type_for_preorder_prices.rb | class FixDecimalTypeForPreorderPrices < ActiveRecord::Migration
def up
change_column :spree_preorder_prices, :amount, :decimal, :precision => 8, :scale => 2
end
def down
change_column :spree_preorder_prices, :amount, :decimal, :precision => 10, :scale => 0
end
end | <|file_sep|>original/db/migrate/20130222234500_fix_decimal_type_for_preorder_prices.rb
<|file_sep|>current/db/migrate/20130222234500_fix_decimal_type_for_preorder_prices.rb
<|file_sep|>updated/db/migrate/20130222234500_fix_decimal_type_for_preorder_prices.rb
class FixDecimalTypeForPreorderPrices < ActiveRecord::Migra... | 3dc5143b4fd81f5b9bbad28498476c76d9ecb3f3 | db/migrate/20130222234500_fix_decimal_type_for_preorder_prices.rb | db/migrate/20130222234500_fix_decimal_type_for_preorder_prices.rb | Ruby |
<|file_sep|>original/README.md
tree-sitter-typescript
===========================
[](https://github.com/tree-sitter/tree-sitter-typescript/actions?query=workflow%3Abuild)
[](https://github.com/tree-sitter/tree-sitter-typescript/actions?query=workflow%3Abuild)
[](https://github.com/tree-sitter/tree-sitter-typescript/actions?query=workflow%3Abuild)
[
)
;;
;; Key bindings
(map! :leader
(:prefix "c"
:desc "Sort lines alphabetically" :v "s" #'sort-lines)
(:prefix "w"
"F" #'make-frame))
(after! proj... | org-log-done 'time
evil-escape-excluded-states '(normal multiedit emacs motion)
)
;;
;; Key bindings
(map! :leader
(:prefix "c"
:desc "Sort lines alphabetically" :v "s" #'sort-lines)
(:prefix "w"
"F" #'make-frame)
(:prefix "/"
; Universal argument doesn't see... | <|file_sep|>original/emacs/.doom.d/config.el
org-log-done 'time
evil-escape-excluded-states '(normal multiedit emacs motion)
)
;;
;; Key bindings
(map! :leader
(:prefix "c"
:desc "Sort lines alphabetically" :v "s" #'sort-lines)
(:prefix "w"
"F" #'make-frame))
(after! proj... | b32e73bd0090bcb2dc661141a4196416391a75e0 | emacs/.doom.d/config.el | emacs/.doom.d/config.el | Emacs Lisp |
<|file_sep|>original/package.json
},
"keywords": [
"Tfk",
"Telemark fylkeskommune",
"dsf",
"contact",
"unwrap"
],
"repository": {
"type": "git",
"url": "http://github.com/telemark/tfk-dsf-unwrap-contact.git"
},
"bugs": {
"url": "http://github.com/telemark/tfk-dsf-unwrap-conta... | },
"keywords": [
"Tfk",
"Telemark fylkeskommune",
"dsf",
"contact",
"unwrap"
],
"repository": {
"type": "git",
"url": "http://github.com/telemark/tfk-dsf-unwrap-contact.git"
},
"bugs": {
"url": "http://github.com/telemark/tfk-dsf-unwrap-contact/issues"
},
"devDependencies... | <|file_sep|>original/package.json
},
"keywords": [
"Tfk",
"Telemark fylkeskommune",
"dsf",
"contact",
"unwrap"
],
"repository": {
"type": "git",
"url": "http://github.com/telemark/tfk-dsf-unwrap-contact.git"
},
"bugs": {
"url": "http://github.com/telemark/tfk-dsf-unwrap-conta... | f36621226dc6546f708ace747870b63edff08bd6 | package.json | package.json | JSON |
<|file_sep|>original/test/Criterion/Test/GithubHelperTest.php
<|file_sep|>current/test/Criterion/Test/GithubHelperTest.php
<|file_sep|>updated/test/Criterion/Test/GithubHelperTest.php | <?php
namespace Criterion\Test;
class GithubHelperTest extends TestCase
{
public function testSSHUrl()
{
$url = 'https://github.com/romhut/api';
$new_url = \Criterion\Helper\Github::toSSHUrl($url);
$this->assertEquals($new_url, 'git@github.com:romhut/api');
}
} | <|file_sep|>original/test/Criterion/Test/GithubHelperTest.php
<|file_sep|>current/test/Criterion/Test/GithubHelperTest.php
<|file_sep|>updated/test/Criterion/Test/GithubHelperTest.php
<?php
namespace Criterion\Test;
class GithubHelperTest extends TestCase
{
public function testSSHUrl()
{
$url = 'ht... | 709e440814cd8aecfefba1182ec6c2492b0a1dd1 | test/Criterion/Test/GithubHelperTest.php | test/Criterion/Test/GithubHelperTest.php | PHP |
<|file_sep|>src/app/components/players/player/player.controller.js.diff
original:
constructor($rootScope, $scope, $localStorage, $log, _, gameModel, playersStore, playerModel, websocket) {
updated:
constructor($rootScope, $scope, $localStorage, $log, _, playersApi, playersStore, playerModel, websocket) {
<|file_sep|>... |
let plData = {
cardsInHand: cardsInHand,
cardsInStorage: cardsInStorage,
totalCards: cardsInHand.length
};
this.playersApi
.update(this.player.id, plData)
.then(onSuccess, onError);
this.player.cardsSelected = [];
} else {
this.showStorage(this.player);
}
}
showStorage(pl) {... | <|file_sep|>src/app/components/players/player/player.controller.js.diff
original:
constructor($rootScope, $scope, $localStorage, $log, _, gameModel, playersStore, playerModel, websocket) {
updated:
constructor($rootScope, $scope, $localStorage, $log, _, playersApi, playersStore, playerModel, websocket) {
<|file_sep|>... | a59d64c52c05e3afe9da86fc523ac2597f040cf5 | src/app/components/players/player/player.controller.js | src/app/components/players/player/player.controller.js | JavaScript |
<|file_sep|>original/example/hellodistributedworld.dart
import 'dart:isolate';
main(){
port.receive((msg,reply){
print("hellodistributedworld received: ${msg['msg']}");
msg['reply'].send("OK: ${msg['msg']}");
});
}
<|file_sep|>current/example/hellodistributedworld.dart
import 'dart:isolate';
main(){
... | import 'dart:isolate';
import "package:distributed_dart/distributed_dart.dart";
main(){
port.receive((msg,reply){
print("hellodistributedworld received: ${msg['msg']}");
msg['reply'].send("OK: ${msg['msg']}");
});
} | <|file_sep|>original/example/hellodistributedworld.dart
import 'dart:isolate';
main(){
port.receive((msg,reply){
print("hellodistributedworld received: ${msg['msg']}");
msg['reply'].send("OK: ${msg['msg']}");
});
}
<|file_sep|>current/example/hellodistributedworld.dart
import 'dart:isolate';
main(){
... | 41d018890c5a681c478a12e965909f5c614073fc | example/hellodistributedworld.dart | example/hellodistributedworld.dart | Dart |
<|file_sep|>original/app/src/main/java/com/sedsoftware/yaptalker/presentation/features/search/SearchView.kt
<|file_sep|>current/app/src/main/java/com/sedsoftware/yaptalker/presentation/features/search/SearchView.kt
<|file_sep|>updated/app/src/main/java/com/sedsoftware/yaptalker/presentation/features/search/SearchView... | package com.sedsoftware.yaptalker.presentation.features.search
import com.arellomobile.mvp.viewstate.strategy.AddToEndStrategy
import com.arellomobile.mvp.viewstate.strategy.SingleStateStrategy
import com.arellomobile.mvp.viewstate.strategy.SkipStrategy
import com.arellomobile.mvp.viewstate.strategy.StateStrategyType
... | <|file_sep|>original/app/src/main/java/com/sedsoftware/yaptalker/presentation/features/search/SearchView.kt
<|file_sep|>current/app/src/main/java/com/sedsoftware/yaptalker/presentation/features/search/SearchView.kt
<|file_sep|>updated/app/src/main/java/com/sedsoftware/yaptalker/presentation/features/search/SearchView... | fd2c4675d2f3cabfc37b206f12c0dfc254a37e71 | app/src/main/java/com/sedsoftware/yaptalker/presentation/features/search/SearchView.kt | app/src/main/java/com/sedsoftware/yaptalker/presentation/features/search/SearchView.kt | Kotlin |
<|file_sep|>occ/CMakeLists.txt.diff
original:
add_compile_options(-Wall -Wextra -Wpedantic -Weffc++)
updated:
<|file_sep|>occ/CMakeLists.txt.diff
original:
updated:
target_compile_options(sdl_wrapper PRIVATE -Wall -Wextra -Wpedantic -Weffc++)
<|file_sep|>occ/CMakeLists.txt.diff
original:
updated:
target_compile_opt... |
# utils
add_subdirectory("utils")
target_compile_options(utils PRIVATE -Wall -Wextra -Wpedantic -Weffc++)
# occ
add_subdirectory("occ")
target_compile_options(occ PRIVATE -Wall -Wextra -Wpedantic -Weffc++)
target_include_directories(occ PUBLIC
"sdl_wrapper/export"
"game/export"
"utils/export"
)
# tests
enable_... | <|file_sep|>occ/CMakeLists.txt.diff
original:
add_compile_options(-Wall -Wextra -Wpedantic -Weffc++)
updated:
<|file_sep|>occ/CMakeLists.txt.diff
original:
updated:
target_compile_options(sdl_wrapper PRIVATE -Wall -Wextra -Wpedantic -Weffc++)
<|file_sep|>occ/CMakeLists.txt.diff
original:
updated:
target_compile_opt... | 7a56f92fc8cb0c45818f9bbd54d555c3998ea7cb | occ/CMakeLists.txt | occ/CMakeLists.txt | Text |
<|file_sep|>original/gradle/wrapper/gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-2.0-bin.zip
<|file_sep|>current/gradle/wrapper/gradle-wrapper.propertie... | distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-2.6-all.zip | <|file_sep|>original/gradle/wrapper/gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-2.0-bin.zip
<|file_sep|>current/gradle/wrapper/gradle-wrapper.propertie... | 58d2583224c7aa4423e68b0ecb4645a95db09db0 | gradle/wrapper/gradle-wrapper.properties | gradle/wrapper/gradle-wrapper.properties | INI |
<|file_sep|>original/yuidoc.json
{
"name": "ember-links-with-follower",
"description": "An Ember component to render a set of links with a \"follower\" line underneath. The follower moves to the active link, matching size and position on the page.",
"url": "https://github.com/echobind/links-with-follower",
"opt... | {
"name": "ember-links-with-follower",
"description": "An Ember component to render a set of links with a \"follower\" line underneath. The follower moves to the active link, matching size and position on the page.",
"url": "https://github.com/echobind/ember-links-with-follower",
"options": {
"enabledEnviro... | <|file_sep|>original/yuidoc.json
{
"name": "ember-links-with-follower",
"description": "An Ember component to render a set of links with a \"follower\" line underneath. The follower moves to the active link, matching size and position on the page.",
"url": "https://github.com/echobind/links-with-follower",
"opt... | 3fe41eccfd1f2bda449d9baac122c185ac965ac0 | yuidoc.json | yuidoc.json | JSON |
<|file_sep|>original/lib/librarian/puppet/environment.rb
require "librarian/environment"
require "librarian/puppet/dsl"
require "librarian/puppet/source"
module Librarian
module Puppet
class Environment < Librarian::Environment
def adapter_name
"puppet"
end
def install_path
pr... | module Puppet
class Environment < Librarian::Environment
def adapter_name
"puppet"
end
def install_path
project_path.join("modules")
end
def cache_path
project_path.join(".tmp/librarian/cache")
end
def scratch_path
project_path.join(".t... | <|file_sep|>original/lib/librarian/puppet/environment.rb
require "librarian/environment"
require "librarian/puppet/dsl"
require "librarian/puppet/source"
module Librarian
module Puppet
class Environment < Librarian::Environment
def adapter_name
"puppet"
end
def install_path
pr... | fca7ee2ca74e4e98def692ffe4da5d06802ee0b7 | lib/librarian/puppet/environment.rb | lib/librarian/puppet/environment.rb | Ruby |
<|file_sep|>original/README.md
# mini-dos
Project for Distributed Operating Systems at Warsaw University of Technology (Mathematics and Computer Science department) Winter 2015
<|file_sep|>current/README.md
# mini-dos
Project for Distributed Operating Systems at Warsaw University of Technology (Mathematics and Computer... | # mini-dos
[](http://waffle.io/dzitkowskik/mini-dos)
Project for Distributed Operating Systems at Warsaw University of Technology (Mathematics and Computer Science department) Winter 2015 | <|file_sep|>original/README.md
# mini-dos
Project for Distributed Operating Systems at Warsaw University of Technology (Mathematics and Computer Science department) Winter 2015
<|file_sep|>current/README.md
# mini-dos
Project for Distributed Operating Systems at Warsaw University of Technology (Mathematics and Computer... | 16388f54ccf74fe873b1c42020fffe26ec92e5f8 | README.md | README.md | Markdown |
<|file_sep|>original/project/src/main/java/com/google/sps/servlets/ArchiveServlet.java
<|file_sep|>current/project/src/main/java/com/google/sps/servlets/ArchiveServlet.java
<|file_sep|>updated/project/src/main/java/com/google/sps/servlets/ArchiveServlet.java | package com.google.sps.servlets;
import java.io.IOException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.annotation.WebServlet;
import com.google.sps.data.Trend;
import com.google.gson.Gson;
import com.google.a... | <|file_sep|>original/project/src/main/java/com/google/sps/servlets/ArchiveServlet.java
<|file_sep|>current/project/src/main/java/com/google/sps/servlets/ArchiveServlet.java
<|file_sep|>updated/project/src/main/java/com/google/sps/servlets/ArchiveServlet.java
package com.google.sps.servlets;
import java.io.IOExceptio... | b18a0f66be86c8ce0ffbcc0bd3ad88912ca340df | project/src/main/java/com/google/sps/servlets/ArchiveServlet.java | project/src/main/java/com/google/sps/servlets/ArchiveServlet.java | Java |
<|file_sep|>package.json.diff
original:
"leaflet": "^0.7.7",
updated:
<|file_sep|>package.json.diff
original:
updated:
"peerDependencies": {
"leaflet": ">=0.7.0 <2.0.0"
},
<|file_sep|>original/package.json
},
"repository": {
"type": "git",
"url": "git://github.com/makin... | "type": "git",
"url": "git://github.com/makinacorpus/Leaflet.Snap.git"
},
"license": "MIT",
"dependencies": {
"leaflet-geometryutil": "*"
},
"peerDependencies": {
"leaflet": ">=0.7.0 <2.0.0"
},
"optionalDependencies": {
"leaflet-draw": "^1.0.0"
},
... | <|file_sep|>package.json.diff
original:
"leaflet": "^0.7.7",
updated:
<|file_sep|>package.json.diff
original:
updated:
"peerDependencies": {
"leaflet": ">=0.7.0 <2.0.0"
},
<|file_sep|>original/package.json
},
"repository": {
"type": "git",
"url": "git://github.com/makin... | 652fda40fd4650b5578d9208459525fa7db9e8e8 | package.json | package.json | JSON |
<|file_sep|>original/cards/card.py
from abc import ABCMeta, abstractproperty
class Card(metaclass=ABCMeta):
def __init__(self, suit, rank):
self._rank = rank
self._suit = suit
self._value = None
def __str__(self):
return f"{self._rank} of {self._suit}"
@property
def r... | from abc import ABCMeta, abstractproperty
class Card(metaclass=ABCMeta):
def __init__(self, suit, rank):
self._rank = rank
self._suit = suit
self._value = None
def __str__(self):
# return f"{self.rank} of {self.suit}"
return "{0} of {1}".format(self.rank, self.suit)
... | <|file_sep|>original/cards/card.py
from abc import ABCMeta, abstractproperty
class Card(metaclass=ABCMeta):
def __init__(self, suit, rank):
self._rank = rank
self._suit = suit
self._value = None
def __str__(self):
return f"{self._rank} of {self._suit}"
@property
def r... | 6a5413ce81a606476734d9b37b33f683ed0c85e3 | cards/card.py | cards/card.py | Python |
<|file_sep|>original/POC/hadoop-stamper/mapreduce/src/main/java/org/slc/sli/stamper/jobs/Stamper.java
import org.apache.hadoop.util.Tool;
import org.apache.hadoop.util.ToolRunner;
import org.slc.sli.stamper.mapreduce.map.ConfigurableMapReduceJob;
public class Stamper extends Configured implements Tool {
public st... | public class Stamper extends Configured implements Tool {
public static void main(String[] args) throws Exception {
int res = ToolRunner.run(new Configuration(), new Stamper(), args);
System.exit(res);
}
@Override
public int run(String[] args) throws Exception {
Configuration conf = new C... | <|file_sep|>original/POC/hadoop-stamper/mapreduce/src/main/java/org/slc/sli/stamper/jobs/Stamper.java
import org.apache.hadoop.util.Tool;
import org.apache.hadoop.util.ToolRunner;
import org.slc.sli.stamper.mapreduce.map.ConfigurableMapReduceJob;
public class Stamper extends Configured implements Tool {
public st... | f43202299e2f84648a7a21faa69b4adea3476674 | POC/hadoop-stamper/mapreduce/src/main/java/org/slc/sli/stamper/jobs/Stamper.java | POC/hadoop-stamper/mapreduce/src/main/java/org/slc/sli/stamper/jobs/Stamper.java | Java |
<|file_sep|>original/snapcraft.yaml
description: |
HTTP-server for executing shell commands. Designed for develop, prototype or remote control.
Settings through two command line arguments, path and shell command.
By default bind to :8080.
https://github.com/msoap/shell2http
grade: stable
confinement: strict
pa... | description: |
HTTP-server for executing shell commands. Designed for develop, prototype or remote control.
Settings through two command line arguments, path and shell command.
By default bind to :8080.
https://github.com/msoap/shell2http
grade: stable
confinement: strict
parts:
shell2http:
after: [go]
... | <|file_sep|>original/snapcraft.yaml
description: |
HTTP-server for executing shell commands. Designed for develop, prototype or remote control.
Settings through two command line arguments, path and shell command.
By default bind to :8080.
https://github.com/msoap/shell2http
grade: stable
confinement: strict
pa... | 2d14c3abcd51c55789418cacdb159f192eb5ebd7 | snapcraft.yaml | snapcraft.yaml | YAML |
<|file_sep|>original/vumi/persist/tests/test_fields.py
# -*- coding: utf-8 -*-
"""Tests for vumi.persist.fields."""
from twisted.trial.unittest import TestCase
from vumi.persist.fields import Field, ValidationError, Integer, Unicode
class TestInteger(TestCase):
def test_unbounded(self):
i = Integer()
... | # -*- coding: utf-8 -*-
"""Tests for vumi.persist.fields."""
from twisted.trial.unittest import TestCase
from vumi.persist.fields import (
ValidationError, Field, FieldDescriptor, Integer, Unicode, ForeignKey,
ForeignKeyDescriptor)
class TestBaseField(TestCase):
def test_validate(self):
f = Fie... | <|file_sep|>original/vumi/persist/tests/test_fields.py
# -*- coding: utf-8 -*-
"""Tests for vumi.persist.fields."""
from twisted.trial.unittest import TestCase
from vumi.persist.fields import Field, ValidationError, Integer, Unicode
class TestInteger(TestCase):
def test_unbounded(self):
i = Integer()
... | 8eaaab332616469bec567ad159b315cc0d1e35fc | vumi/persist/tests/test_fields.py | vumi/persist/tests/test_fields.py | Python |
<|file_sep|>README.md.diff
original:
component in your web projects via [Bower](http://bower.io). For more
information about installing this component, or to contribute issues or changes
to this component, please see the consolidated [Basic Web
updated:
component in your web projects via [Bower](http://bower.io).
For ... | This individual component repository is designed to let you include this
component in your web projects via [Bower](http://bower.io).
For more information about installing this component, or to contribute issues or
changes to this component, please see the consolidated [Basic Web
Components](https://github.com/basic-w... | <|file_sep|>README.md.diff
original:
component in your web projects via [Bower](http://bower.io). For more
information about installing this component, or to contribute issues or changes
to this component, please see the consolidated [Basic Web
updated:
component in your web projects via [Bower](http://bower.io).
For ... | e7f03dfffbeef4697f610995a2cac6278c4914c1 | README.md | README.md | Markdown |
<|file_sep|>recipes/isort/meta.yaml.diff
original:
{% set version = "4.2.5" %}
{% set md5 = "71489ebd936429d5bda2af7ae662ed78" %}
updated:
{% set version = "4.2.8" %}
{% set md5 = "7b9de538bc7401a5ed180fbc8773c34c" %}
<|file_sep|>original/recipes/isort/meta.yaml
name: isort
version: {{ version }}
source:
fn: iso... | name: isort
version: {{ version }}
source:
fn: isort-{{version}}.tar.gz
url: https://pypi.io/packages/source/i/isort/isort-{{ version }}.tar.gz
md5: {{ md5 }}
build:
script: python setup.py install --single-version-externally-managed --record=record.txt
noarch: python
number: 0
requirements:
... | <|file_sep|>recipes/isort/meta.yaml.diff
original:
{% set version = "4.2.5" %}
{% set md5 = "71489ebd936429d5bda2af7ae662ed78" %}
updated:
{% set version = "4.2.8" %}
{% set md5 = "7b9de538bc7401a5ed180fbc8773c34c" %}
<|file_sep|>original/recipes/isort/meta.yaml
name: isort
version: {{ version }}
source:
fn: iso... | f881470d7bccf42d5b421f92ace8891e3858873c | recipes/isort/meta.yaml | recipes/isort/meta.yaml | YAML |
<|file_sep|>original/how_tos/visual_studio.txt
<|file_sep|>current/how_tos/visual_studio.txt
<|file_sep|>updated/how_tos/visual_studio.txt | ****** Minimize exe size ***********
Tested with VS 2013, x86 target.
General:
Character Set -> Not Set
Whole Program Optimization -> Use Link Time Code Generation
C/C++ -> Optimization:
Optimization: Maximize Speed
Inline Function Expansion: Any suitable
Enable Intrinsic Functions: ?
Favor S... | <|file_sep|>original/how_tos/visual_studio.txt
<|file_sep|>current/how_tos/visual_studio.txt
<|file_sep|>updated/how_tos/visual_studio.txt
****** Minimize exe size ***********
Tested with VS 2013, x86 target.
General:
Character Set -> Not Set
Whole Program Optimization -> Use Link Time Code Generation
C/C+... | 3d739b6c85f7a64f3dc75c3c830681daf69bd335 | how_tos/visual_studio.txt | how_tos/visual_studio.txt | Text |
<|file_sep|>modules/govuk_jenkins/templates/jobs/search_reindex_with_new_schema.yaml.erb.diff
original:
updated:
parameters:
- choice:
name: SEARCH_INDEX
description: The search index to reindex. Defaults to all.
choices:
- all
- detailed
... | - build-discarder:
days-to-keep: 30
artifact-num-to-keep: 5
parameters:
- choice:
name: SEARCH_INDEX
description: The search index to reindex. Defaults to all.
choices:
- all
- detailed
- government
... | <|file_sep|>modules/govuk_jenkins/templates/jobs/search_reindex_with_new_schema.yaml.erb.diff
original:
updated:
parameters:
- choice:
name: SEARCH_INDEX
description: The search index to reindex. Defaults to all.
choices:
- all
- detailed
... | 9255c5a303e2c082fc0e2f573cd5469ca318a0b4 | modules/govuk_jenkins/templates/jobs/search_reindex_with_new_schema.yaml.erb | modules/govuk_jenkins/templates/jobs/search_reindex_with_new_schema.yaml.erb | HTML+ERB |
<|file_sep|>original/_drafts/conquering_win10_update_reboot.txt
<|file_sep|>current/_drafts/conquering_win10_update_reboot.txt
<|file_sep|>updated/_drafts/conquering_win10_update_reboot.txt | After many reboots, and this last right in the middle of work that I was doing (I got the death threat, and dismissed it, thinking I could get everything saved, then got distracted by a stack overflow post I was working on),
... I decided to actually call MS customer service. My thought - at best, I would complain, th... | <|file_sep|>original/_drafts/conquering_win10_update_reboot.txt
<|file_sep|>current/_drafts/conquering_win10_update_reboot.txt
<|file_sep|>updated/_drafts/conquering_win10_update_reboot.txt
After many reboots, and this last right in the middle of work that I was doing (I got the death threat, and dismissed it, thinki... | fb82ee3fa60631b0c612a54d9ff498ec4b452591 | _drafts/conquering_win10_update_reboot.txt | _drafts/conquering_win10_update_reboot.txt | Text |
<|file_sep|>admin/manage.py.diff
original:
domain = models.Domain(name=domain_name)
updated:
domain = models.Domain.query.get(domain_name)
if not domain:
domain = models.Domain(name=domain_name)
db.session.add(domain)
<|file_sep|>original/admin/manage.py
db.create_all()
@manager.comman... |
@manager.command
def admin(localpart, domain_name, password):
""" Create an admin user
"""
domain = models.Domain.query.get(domain_name)
if not domain:
domain = models.Domain(name=domain_name)
db.session.add(domain)
user = models.User(
localpart=localpart,
domain=dom... | <|file_sep|>admin/manage.py.diff
original:
domain = models.Domain(name=domain_name)
updated:
domain = models.Domain.query.get(domain_name)
if not domain:
domain = models.Domain(name=domain_name)
db.session.add(domain)
<|file_sep|>original/admin/manage.py
db.create_all()
@manager.comman... | 3976a5b38e1b5356b83d22d9113aa83c9f09fdec | admin/manage.py | admin/manage.py | Python |
<|file_sep|>original/lib/mongoff/pretty_errors.rb
next unless (model = property_model(name)) && model.modelable?
errors[name] =
if (base_errors = errors[name])
{ '$': base_errors }
else
{}
end
if (associations[name.to_s] || associations[name.... | next unless (model = property_model(name)) && model.modelable?
errors[name] =
if (base_errors = errors[name])
{ '$': base_errors }
else
{}
end
if (associations[name.to_s] || associations[name.to_sym]).many?
record.send(name).each_wi... | <|file_sep|>original/lib/mongoff/pretty_errors.rb
next unless (model = property_model(name)) && model.modelable?
errors[name] =
if (base_errors = errors[name])
{ '$': base_errors }
else
{}
end
if (associations[name.to_s] || associations[name.... | 73c546dadc3ce35ab700d6553e19ff2f5544834f | lib/mongoff/pretty_errors.rb | lib/mongoff/pretty_errors.rb | Ruby |
<|file_sep|>original/lib/site_template/_config.yml
name: Dat site title tho
markdown: redcarpet
highlighter: pygments
<|file_sep|>current/lib/site_template/_config.yml
name: Dat site title tho
markdown: redcarpet
highlighter: pygments
<|file_sep|>updated/lib/site_template/_config.yml | name: Dat site title tho
markdown: redcarpet
highlighter: pygments
description: "Write an awesome description for your new site here. It will appear in your document head meta (for Google search results) and in your feed.xml site description." | <|file_sep|>original/lib/site_template/_config.yml
name: Dat site title tho
markdown: redcarpet
highlighter: pygments
<|file_sep|>current/lib/site_template/_config.yml
name: Dat site title tho
markdown: redcarpet
highlighter: pygments
<|file_sep|>updated/lib/site_template/_config.yml
name: Dat site title tho
markdown: ... | 287851ebb452535fbdf094097362f9339aaedbfa | lib/site_template/_config.yml | lib/site_template/_config.yml | YAML |
<|file_sep|>_posts/2009-05-21-mac-os-x-terminal-aliases.markdown.diff
original:
updated:
<div class="overflow-x-scroll">
<|file_sep|>original/_posts/2009-05-21-mac-os-x-terminal-aliases.markdown
Here's a list of aliases I've collected over the times searching the Internet (note: so far, not so many, but that'll change... |
To be put in ~/.bash_profile:
<div class="overflow-x-scroll">
{% highlight bash %}
alias ls='ls -aFhlG'
alias ll='ls -l'
alias search=grep
alias ..='cd ..'
alias ...='cd ../..'
alias bake='/opt/local/apache2/htdocs/cake/cake/console/cake bake'
alias cake='cd /opt/local/apache2/htdocs/cake'
{% endhighlight %}
</div>
... | <|file_sep|>_posts/2009-05-21-mac-os-x-terminal-aliases.markdown.diff
original:
updated:
<div class="overflow-x-scroll">
<|file_sep|>original/_posts/2009-05-21-mac-os-x-terminal-aliases.markdown
Here's a list of aliases I've collected over the times searching the Internet (note: so far, not so many, but that'll change... | 9a1e064cd29006ed0b648d04018566ccaa6f910f | _posts/2009-05-21-mac-os-x-terminal-aliases.markdown | _posts/2009-05-21-mac-os-x-terminal-aliases.markdown | Markdown |
<|file_sep|>original/project/plugins.sbt
addSbtPlugin("com.47deg" % "sbt-microsites" % "0.7.6")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.7.0")
addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.4.1")
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.6")
addSbtPlugin("com.github.tkawachi" % "sbt-doctest" % ... | addSbtPlugin("com.47deg" % "sbt-microsites" % "0.7.6")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.7.0")
addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.4.1")
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.7")
addSbtPlugin("com.github.tkawachi" % "sbt-doctest" % "0.7.0")
addSbtPlugin("com.jsuereth" % "s... | <|file_sep|>original/project/plugins.sbt
addSbtPlugin("com.47deg" % "sbt-microsites" % "0.7.6")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.7.0")
addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.4.1")
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.6")
addSbtPlugin("com.github.tkawachi" % "sbt-doctest" % ... | 92135d4fa4c5eac8bfead1c044d6d8e3a9ef880a | project/plugins.sbt | project/plugins.sbt | Scala |
<|file_sep|>original/.travis.yml
<|file_sep|>current/.travis.yml
<|file_sep|>updated/.travis.yml | language: objective-c
osx_image: xcode6.4
install:
- gem install xcpretty --no-rdoc --no-ri --no-document
- curl -OlL "https://github.com/Carthage/Carthage/releases/download/0.9.3/Carthage.pkg"
- sudo installer -pkg "Carthage.pkg" -target /
- rm "Carthage.pkg"
script:
- set -o pipefail && xcodebuild -scheme 'Deferred' ... | <|file_sep|>original/.travis.yml
<|file_sep|>current/.travis.yml
<|file_sep|>updated/.travis.yml
language: objective-c
osx_image: xcode6.4
install:
- gem install xcpretty --no-rdoc --no-ri --no-document
- curl -OlL "https://github.com/Carthage/Carthage/releases/download/0.9.3/Carthage.pkg"
- sudo installer -pkg "Cart... | cb28be12b3e1a99be26fa195eeb4fa8eaf5dea5e | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/st2common/tests/unit/test_util_shell.py
<|file_sep|>current/st2common/tests/unit/test_util_shell.py
<|file_sep|>updated/st2common/tests/unit/test_util_shell.py | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | <|file_sep|>original/st2common/tests/unit/test_util_shell.py
<|file_sep|>current/st2common/tests/unit/test_util_shell.py
<|file_sep|>updated/st2common/tests/unit/test_util_shell.py
# Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed wit... | 01f21a16e4bcecccf51a565b51222ab18b79adb4 | st2common/tests/unit/test_util_shell.py | st2common/tests/unit/test_util_shell.py | Python |
<|file_sep|>original/lagunita/lms/static/sass/partials/base/_overrides.scss
$footer-logo-width: 100px;
@import 'custom_overrides/_footer.scss';
// Custom default styling for Lagunita courses, UX001
@import 'custom_overrides/_course_styling.scss';
@import 'custom_overrides/_instructor.scss';
@import 'custom_overrides... | $footer-logo-width: 100px;
@import 'custom_overrides/_footer.scss';
// Custom default styling for Lagunita courses, UX001
@import 'custom_overrides/_course_styling.scss';
@import 'custom_overrides/_instructor.scss';
@import 'custom_overrides/_typography.scss';
#register-extra {
margin-top: 25px;
}
// Student p... | <|file_sep|>original/lagunita/lms/static/sass/partials/base/_overrides.scss
$footer-logo-width: 100px;
@import 'custom_overrides/_footer.scss';
// Custom default styling for Lagunita courses, UX001
@import 'custom_overrides/_course_styling.scss';
@import 'custom_overrides/_instructor.scss';
@import 'custom_overrides... | 1e428153f5cca561bf8705a80473165f6c76ec4c | lagunita/lms/static/sass/partials/base/_overrides.scss | lagunita/lms/static/sass/partials/base/_overrides.scss | SCSS |
<|file_sep|>original/app/views/bookings/show.html.haml
%tr
%th= t_attr(:value_date, Booking)
%td= l(resource.value_date) if resource.value_date
%th= t_attr(:title, Booking)
%td= resource.title
%tr
%th= t_attr(:debit_account, Booking)
%td= link_to resource.debit_account, resou... | .box
%table{:style => "width: 100%"}
%tr
%th= t_attr(:value_date, Booking)
%td= l(resource.value_date) if resource.value_date
%th= t_attr(:title, Booking)
%td= resource.title
%tr
%th= t_attr(:debit_account, Booking)
%td= link_to resource.debit_account, resource.debit_accoun... | <|file_sep|>original/app/views/bookings/show.html.haml
%tr
%th= t_attr(:value_date, Booking)
%td= l(resource.value_date) if resource.value_date
%th= t_attr(:title, Booking)
%td= resource.title
%tr
%th= t_attr(:debit_account, Booking)
%td= link_to resource.debit_account, resou... | 06473810f35c7f60cc9570b4d46995b92aaed082 | app/views/bookings/show.html.haml | app/views/bookings/show.html.haml | Haml |
<|file_sep|>src/inline_lazy.rs.diff
original:
updated:
extern crate core;
<|file_sep|>src/inline_lazy.rs.diff
original:
extern crate core;
updated:
<|file_sep|>src/inline_lazy.rs.diff
original:
pub struct Lazy<T: Sync>(pub Option<T>, pub Once);
updated:
pub struct Lazy<T: Sync>(Option<T>, Once);
<|file_sep|>src/inlin... | *r = Some(f());
});
}
unsafe {
match self.0 {
Some(ref x) => x,
None => core::hint::unreachable_unchecked(),
}
}
}
}
unsafe impl<T: Sync> Sync for Lazy<T> {}
#[macro_export]
#[doc(hidden)]
macro_rules! __la... | <|file_sep|>src/inline_lazy.rs.diff
original:
updated:
extern crate core;
<|file_sep|>src/inline_lazy.rs.diff
original:
extern crate core;
updated:
<|file_sep|>src/inline_lazy.rs.diff
original:
pub struct Lazy<T: Sync>(pub Option<T>, pub Once);
updated:
pub struct Lazy<T: Sync>(Option<T>, Once);
<|file_sep|>src/inlin... | 1a18c659f86cc6d2d2b69052891fc563f6904a3f | src/inline_lazy.rs | src/inline_lazy.rs | Rust |
<|file_sep|>migrations/m160622_095150_create_profile.php.diff
original:
updated:
'firstname' => $this->string()->notNull(),
'surname' => $this->string()->notNull(),
<|file_sep|>original/migrations/m160622_095150_create_profile.php
'id' => $this->primaryKey(),
'sex' => $t... | 'firstname' => $this->string()->notNull(),
'surname' => $this->string()->notNull(),
], $tableOptions);
$this->addForeignKey('FK_profile_user', 'profile', 'email', 'user', 'email');
}
/**
* @inheritdoc
*/
public function down()
{
// drops foreig... | <|file_sep|>migrations/m160622_095150_create_profile.php.diff
original:
updated:
'firstname' => $this->string()->notNull(),
'surname' => $this->string()->notNull(),
<|file_sep|>original/migrations/m160622_095150_create_profile.php
'id' => $this->primaryKey(),
'sex' => $t... | b7144cc2a0de8555ae507172f35223b0f312271f | migrations/m160622_095150_create_profile.php | migrations/m160622_095150_create_profile.php | PHP |
<|file_sep|>original/framework/bin/generate_global_version.php
<?php
// vim:set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker syntax=php:
/**
* Generate a config file that generates a {@link global_version} based on
* the subversion version and it into the file specified by $1.
*
* This is done u... | <?php
// vim:set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker syntax=php:
/**
* Generate a config file that generates a {@link global_version} based on
* the subversion version and it into the file specified by $1.
*
* This is done using the
* {@link http://svnbook.red-bean.com/en/1.1/re57.html... | <|file_sep|>original/framework/bin/generate_global_version.php
<?php
// vim:set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker syntax=php:
/**
* Generate a config file that generates a {@link global_version} based on
* the subversion version and it into the file specified by $1.
*
* This is done u... | 00d045eb645da544fde46b32319344bad5d8d4ee | framework/bin/generate_global_version.php | framework/bin/generate_global_version.php | PHP |
<|file_sep|>original/src/Aggregrid.js
Ext.define('Jarvus.aggregrid.Aggregrid', {
extend: 'Ext.Component',
html: 'Hello World'
});
<|file_sep|>current/src/Aggregrid.js
Ext.define('Jarvus.aggregrid.Aggregrid', {
extend: 'Ext.Component',
html: 'Hello World'
});
<|file_sep|>updated/src/Aggregrid.js | Ext.define('Jarvus.aggregrid.Aggregrid', {
extend: 'Ext.Component',
config: {
columnsStore: null,
rowsStore: null
},
html: 'Hello World',
// config handlers
applyColumnsStore: function(store) {
return Ext.StoreMgr.lookup(store);
},
applyRowsStore: function(s... | <|file_sep|>original/src/Aggregrid.js
Ext.define('Jarvus.aggregrid.Aggregrid', {
extend: 'Ext.Component',
html: 'Hello World'
});
<|file_sep|>current/src/Aggregrid.js
Ext.define('Jarvus.aggregrid.Aggregrid', {
extend: 'Ext.Component',
html: 'Hello World'
});
<|file_sep|>updated/src/Aggregrid.js
Ext.de... | 84bad5d57dff7d5591d24bcc5caf6698e17e40b6 | src/Aggregrid.js | src/Aggregrid.js | JavaScript |
<|file_sep|>original/.forestry/settings.yml
---
new_page_extension: md
auto_deploy: false
admin_path: ''
webhook_url:
sections:
- type: directory
path: _events
label: Events
create: all
match: "**/*"
- type: directory
path: _programs
label: Programs
create: none
match: "**/*"
- type: directory
path: ... | ---
new_page_extension: md
auto_deploy: false
admin_path: ''
webhook_url:
sections:
- type: heading
label: Pages
- type: document
path: ''
label: About
match: "**/*"
- type: directory
path: _events
label: Events
create: all
match: "**/*"
- type: directory
path: _programs
label: Programs
create: n... | <|file_sep|>original/.forestry/settings.yml
---
new_page_extension: md
auto_deploy: false
admin_path: ''
webhook_url:
sections:
- type: directory
path: _events
label: Events
create: all
match: "**/*"
- type: directory
path: _programs
label: Programs
create: none
match: "**/*"
- type: directory
path: ... | 9cce25deec1855163622e42dda672f68d8f0a976 | .forestry/settings.yml | .forestry/settings.yml | YAML |
<|file_sep|>original/sample-apps/java/README.md
<|file_sep|>current/sample-apps/java/README.md
<|file_sep|>updated/sample-apps/java/README.md | # Java sample app
This sample app runs a server "service" that listens for requests from a client "app"
running as a CronJob.
## Prerequisites
* OpenTelemetry Operator installed in your cluster
* Artifact Registry set up in your GCP project (see the
[main README.md](../../README.md#sample-applications))
* An `Instr... | <|file_sep|>original/sample-apps/java/README.md
<|file_sep|>current/sample-apps/java/README.md
<|file_sep|>updated/sample-apps/java/README.md
# Java sample app
This sample app runs a server "service" that listens for requests from a client "app"
running as a CronJob.
## Prerequisites
* OpenTelemetry Operator insta... | c3bbfbaaef396e71220b73f41f7dc15be3022807 | sample-apps/java/README.md | sample-apps/java/README.md | Markdown |
<|file_sep|>original/test/test_molecule.py
import pytest
import os
import shutil
from subprocess import call
from cookiecutter.main import cookiecutter
playbook_setup_commands = ['pip install -r https://raw.githubusercontent.com/nephelaiio/ansible-role-requirements/master/requirements.txt']
playbook_setup_success = 0... | import pytest
import os
import shutil
from subprocess import call
from cookiecutter.main import cookiecutter
playbook_setup_commands = ['pip install -r https://raw.githubusercontent.com/nephelaiio/ansible-role-requirements/molecule3/requirements.txt']
playbook_setup_success = 0
playbook_test_command = "molecule test"... | <|file_sep|>original/test/test_molecule.py
import pytest
import os
import shutil
from subprocess import call
from cookiecutter.main import cookiecutter
playbook_setup_commands = ['pip install -r https://raw.githubusercontent.com/nephelaiio/ansible-role-requirements/master/requirements.txt']
playbook_setup_success = 0... | a9fb3353c32a9b53b8e58912a98cf61176a57f04 | test/test_molecule.py | test/test_molecule.py | Python |
<|file_sep|>client/store/index.js.diff
original:
import { createStore, applyMiddleware, compose } from 'redux'
updated:
import { createStore, applyMiddleware } from 'redux'
<|file_sep|>client/store/index.js.diff
original:
const enhancer = compose(
applyMiddleware(logger),
window.devToolsExtension && window.devTools... |
export default function configure(initialState) {
const create = window.devToolsExtension
? window.devToolsExtension()(createStore)
: createStore
const createStoreWithMiddleware = applyMiddleware(
logger
)(create)
const store = createStoreWithMiddleware(rootReducer, initialState)
if (module.ho... | <|file_sep|>client/store/index.js.diff
original:
import { createStore, applyMiddleware, compose } from 'redux'
updated:
import { createStore, applyMiddleware } from 'redux'
<|file_sep|>client/store/index.js.diff
original:
const enhancer = compose(
applyMiddleware(logger),
window.devToolsExtension && window.devTools... | b35782801c5e45238e4106f469819b0c886cfaca | client/store/index.js | client/store/index.js | JavaScript |
<|file_sep|>src/webservice/ajax/listing/Organisms.php.diff
original:
var_dump($querydata);
updated:
<|file_sep|>src/webservice/ajax/listing/Organisms.php.diff
original:
FROM organism WHERE organism.genus LIKE '$search' LIMIT ?
updated:
FROM organism WHERE organism.genus LIKE '%$search%' LIMIT ?
<|file_... |
$stm_get_organisms->execute(array($limit));
while ($row = $stm_get_organisms->fetch(PDO::FETCH_ASSOC)) {
$result = array();
$result['organism_id'] = $row['organism_id'];
$result['scientific_name'] = $row['species'];
$result['rank'] = $row['genus'... | <|file_sep|>src/webservice/ajax/listing/Organisms.php.diff
original:
var_dump($querydata);
updated:
<|file_sep|>src/webservice/ajax/listing/Organisms.php.diff
original:
FROM organism WHERE organism.genus LIKE '$search' LIMIT ?
updated:
FROM organism WHERE organism.genus LIKE '%$search%' LIMIT ?
<|file_... | 98a067170fbe0c1a2fdb271e3379b2cc0f2e029e | src/webservice/ajax/listing/Organisms.php | src/webservice/ajax/listing/Organisms.php | PHP |
<|file_sep|>src/main/java/org/cryptomator/cryptofs/health/dirid/MissingDirIdBackup.java.diff
original:
* TODO: adjust DirIdCheck
updated:
* The dir id backup file is missing.
<|file_sep|>src/main/java/org/cryptomator/cryptofs/health/dirid/MissingDirIdBackup.java.diff
original:
public class MissingDirIdBackup implemen... | /**
* The dir id backup file is missing.
*/
public record MissingDirIdBackup(String dirId, Path cipherDir) implements DiagnosticResult {
@Override
public Severity getSeverity() {
return Severity.WARN;
}
@Override
public String toString() {
return String.format("Directory ID backup for directory %s is missi... | <|file_sep|>src/main/java/org/cryptomator/cryptofs/health/dirid/MissingDirIdBackup.java.diff
original:
* TODO: adjust DirIdCheck
updated:
* The dir id backup file is missing.
<|file_sep|>src/main/java/org/cryptomator/cryptofs/health/dirid/MissingDirIdBackup.java.diff
original:
public class MissingDirIdBackup implemen... | 01faec177c1223cd75ad38241da0dc7bfb805c7b | src/main/java/org/cryptomator/cryptofs/health/dirid/MissingDirIdBackup.java | src/main/java/org/cryptomator/cryptofs/health/dirid/MissingDirIdBackup.java | Java |
<|file_sep|>original/app/views/notifier/new_review.rhtml
Hi <%= @reviewer_username %>,
<%= @review.developer %> would like you to do a code review of <%= @review.count_commits %> commits.
At your earliest convenience, please proceed to:
http://janus.corp.amiestreet.com:3000/review/<%= @review.id %>/show
or enter yo... | Hi <%= @reviewer_username %>,
<%= @review.developer %> would like you to do a code review of <%= @review.count_commits %> commits.
At your earliest convenience, please proceed to:
http://janus.corp.amiestreet.com:3000/review/<%= @review.id %>/show
or enter your <%= @review.project.name %> repository and do:
git fe... | <|file_sep|>original/app/views/notifier/new_review.rhtml
Hi <%= @reviewer_username %>,
<%= @review.developer %> would like you to do a code review of <%= @review.count_commits %> commits.
At your earliest convenience, please proceed to:
http://janus.corp.amiestreet.com:3000/review/<%= @review.id %>/show
or enter yo... | 0d5fe273ad47062d8a172d3e97670607d55ca414 | app/views/notifier/new_review.rhtml | app/views/notifier/new_review.rhtml | RHTML |
<|file_sep|>original/requirements/dev.txt
isort==4.2.15
flake8==3.3.0
vulture==0.21
<|file_sep|>current/requirements/dev.txt
isort==4.2.15
flake8==3.3.0
vulture==0.21
<|file_sep|>updated/requirements/dev.txt | isort==4.2.15
flake8==3.4.1
vulture==0.21 | <|file_sep|>original/requirements/dev.txt
isort==4.2.15
flake8==3.3.0
vulture==0.21
<|file_sep|>current/requirements/dev.txt
isort==4.2.15
flake8==3.3.0
vulture==0.21
<|file_sep|>updated/requirements/dev.txt
isort==4.2.15
flake8==3.4.1
vulture==0.21 | 8106e587808eaaecf4e2f9a5fa4828084a178d6b | requirements/dev.txt | requirements/dev.txt | Text |
<|file_sep|>original/history.sh
<|file_sep|>current/history.sh
<|file_sep|>updated/history.sh | #!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL="koltsov.d@gmail.com"
CORRECT_NAME="Denis Koltsov"
CORRECT_EMAIL="iam@mistadikay.com"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
export GIT_COMMITTER_NAME="$CORRECT_NAME"
export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL"
fi
if [ "$GIT_AUTHOR_EMAIL" = "$OLD_... | <|file_sep|>original/history.sh
<|file_sep|>current/history.sh
<|file_sep|>updated/history.sh
#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL="koltsov.d@gmail.com"
CORRECT_NAME="Denis Koltsov"
CORRECT_EMAIL="iam@mistadikay.com"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
export GIT_COMMITTER_NAME="$CO... | 2e6541a4653eddd75f4352d9ca20a81184304025 | history.sh | history.sh | Shell |
<|file_sep|>original/simuvex/s_event.py
event_id_count = itertools.count()
class SimEvent(object):
#def __init__(self, address=None, stmt_idx=None, message=None, exception=None, traceback=None):
def __init__(self, state, event_type, **kwargs):
self.id = event_id_count.next()
self.type = event_t... | event_id_count = itertools.count()
class SimEvent(object):
#def __init__(self, address=None, stmt_idx=None, message=None, exception=None, traceback=None):
def __init__(self, state, event_type, **kwargs):
self.id = event_id_count.next()
self.type = event_type
self.ins_addr = state.scratc... | <|file_sep|>original/simuvex/s_event.py
event_id_count = itertools.count()
class SimEvent(object):
#def __init__(self, address=None, stmt_idx=None, message=None, exception=None, traceback=None):
def __init__(self, state, event_type, **kwargs):
self.id = event_id_count.next()
self.type = event_t... | 04416cd9652a9fdc3ab58664ab4b96cbaff3f698 | simuvex/s_event.py | simuvex/s_event.py | Python |
<|file_sep|>original/.travis.yml
language: python
python: 3.5
env:
- TOX_ENV=py33
- TOX_ENV=py34
- TOX_ENV=py35
script: tox -e $TOX_ENV
install:
- pip install tox
notifications:
email: false
<|file_sep|>current/.travis.yml
language: python
python: 3.5
env:
- TOX_ENV=py33
- TOX_ENV=py34
... | language: python
matrix:
include:
- python: 3.3
env: TOX_ENV=py33
- python: 3.4
env: TOX_ENV=py34
- python: 3.5
env: TOX_ENV=py35
script: tox -e $TOX_ENV
install:
- pip install tox
notifications:
email: false | <|file_sep|>original/.travis.yml
language: python
python: 3.5
env:
- TOX_ENV=py33
- TOX_ENV=py34
- TOX_ENV=py35
script: tox -e $TOX_ENV
install:
- pip install tox
notifications:
email: false
<|file_sep|>current/.travis.yml
language: python
python: 3.5
env:
- TOX_ENV=py33
- TOX_ENV=py34
... | 1efe9c9ae66baec22939d8a4b5994d594c9991c5 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/home/.config/fish/functions/fish_user_key_bindings.fish
fzf_key_bindings
<|file_sep|>current/home/.config/fish/functions/fish_user_key_bindings.fish
fzf_key_bindings
<|file_sep|>updated/home/.config/fish/functions/fish_user_key_bindings.fish | function fish_user_key_bindings
### fzf ###
bind \ct '__fzf_ctrl_t'
bind \cr '__fzf_ctrl_r'
bind \cx '__fzf_ctrl_x'
bind \ec '__fzf_alt_c'
if bind -M insert > /dev/null ^ /dev/null
bind -M insert \ct '__fzf_ctrl_t'
bind -M insert \cr '__fzf_ctrl_r'
bind -M insert \cx '__f... | <|file_sep|>original/home/.config/fish/functions/fish_user_key_bindings.fish
fzf_key_bindings
<|file_sep|>current/home/.config/fish/functions/fish_user_key_bindings.fish
fzf_key_bindings
<|file_sep|>updated/home/.config/fish/functions/fish_user_key_bindings.fish
function fish_user_key_bindings
### fzf ###
bin... | 7c2a692cf40192a34f058e569b81ffea25ed892c | home/.config/fish/functions/fish_user_key_bindings.fish | home/.config/fish/functions/fish_user_key_bindings.fish | fish |
<|file_sep|>README.md.diff
original:
set up the development environment, pipenv is recommended:
updated:
set up the development environment, [poetry](https://github.com/python-poetry/poetry) is recommended:
<|file_sep|>original/README.md
* has several UIs, including text UI, image UI, pages UI and three columns UI
## ... | * has several UIs, including text UI, image UI, pages UI and three columns UI
## QuickStart
clone the source code:
$ git clone git@github.com:lord63/zhihudaily.git
set up the development environment, [poetry](https://github.com/python-poetry/poetry) is recommended:
$ poetry install
$ export FLASK_APP=m... | <|file_sep|>README.md.diff
original:
set up the development environment, pipenv is recommended:
updated:
set up the development environment, [poetry](https://github.com/python-poetry/poetry) is recommended:
<|file_sep|>original/README.md
* has several UIs, including text UI, image UI, pages UI and three columns UI
## ... | 204c86cbdf915ba532a2c7f14ef0a3ccfa9c96e2 | README.md | README.md | Markdown |
<|file_sep|>original/db/sql/create_schema.sql
CREATE TABLE scrobble (
id SERIAL PRIMARY KEY
, artist TEXT NOT NULL
, album TEXT NOT NULL
, track TEXT NOT NULL
, scrobble_timestamp TIMESTAMPTZ NOT NULL
);
COPY scrobble(artist, album, track, scrobble_timestamp) FROM '/dataimport/scrobbles.csv' DELIMITER ',' CSV;
CREA... | CREATE TABLE scrobble (
id SERIAL PRIMARY KEY
, artist TEXT NOT NULL
, album TEXT
, track TEXT NOT NULL
, scrobble_timestamp TIMESTAMPTZ NOT NULL
);
COPY scrobble(artist, album, track, scrobble_timestamp) FROM '/dataimport/scrobbles.csv' DELIMITER ',' CSV;
CREATE VIEW artist_plays_per_year AS
WITH artist_plays_per_... | <|file_sep|>original/db/sql/create_schema.sql
CREATE TABLE scrobble (
id SERIAL PRIMARY KEY
, artist TEXT NOT NULL
, album TEXT NOT NULL
, track TEXT NOT NULL
, scrobble_timestamp TIMESTAMPTZ NOT NULL
);
COPY scrobble(artist, album, track, scrobble_timestamp) FROM '/dataimport/scrobbles.csv' DELIMITER ',' CSV;
CREA... | 9c5c9f4944cccef2aabc2fede1990b1b8340cc34 | db/sql/create_schema.sql | db/sql/create_schema.sql | SQL |
<|file_sep|>original/osfclient/tests/test_cli.py
<|file_sep|>current/osfclient/tests/test_cli.py
<|file_sep|>updated/osfclient/tests/test_cli.py | from unittest.mock import call
from unittest.mock import Mock
from unittest.mock import patch
from osfclient import cli
@patch('osfclient.cli.os.path.exists', return_value=True)
@patch('osfclient.cli.configparser.ConfigParser')
def test_config_file(MockConfigParser, os_path_exists):
MockConfigParser().__getitem_... | <|file_sep|>original/osfclient/tests/test_cli.py
<|file_sep|>current/osfclient/tests/test_cli.py
<|file_sep|>updated/osfclient/tests/test_cli.py
from unittest.mock import call
from unittest.mock import Mock
from unittest.mock import patch
from osfclient import cli
@patch('osfclient.cli.os.path.exists', return_valu... | 10df3cd5e4c8517652efdb8381155253aa6a8157 | osfclient/tests/test_cli.py | osfclient/tests/test_cli.py | Python |
<|file_sep|>original/package.json
{
"name": "sails-stripe",
"version": "0.0.9",
"description": "sails generate sails-stripe models and controllers",
"main": "Generator.js",
"scripts": {
"test": "mocha"
},
"keywords": [
"sailsstripe",
"generator",
"sails",
"generate",
"plugin",
... | {
"name": "sails-stripe",
"version": "0.0.10",
"description": "sails generate sails-stripe models and controllers",
"main": "Generator.js",
"scripts": {
"test": "mocha"
},
"keywords": [
"sailsstripe",
"generator",
"sails",
"generate",
"plugin",
"Stripe",
"banking"
],
"r... | <|file_sep|>original/package.json
{
"name": "sails-stripe",
"version": "0.0.9",
"description": "sails generate sails-stripe models and controllers",
"main": "Generator.js",
"scripts": {
"test": "mocha"
},
"keywords": [
"sailsstripe",
"generator",
"sails",
"generate",
"plugin",
... | 89f74dba81c95e529d3af5697481777699004101 | package.json | package.json | JSON |
<|file_sep|>metadata/au.com.darkside.xdemo.yml.diff
original:
updated:
- versionName: '1.28'
versionCode: 28
commit: '1.28'
subdir: demo
gradle:
- yes
<|file_sep|>original/metadata/au.com.darkside.xdemo.yml
Repo: https://github.com/nwrkbiz/android-xserver
Builds:
- versionName: '1.24'
v... | gradle:
- yes
- versionName: '1.27'
versionCode: 27
commit: '1.27'
subdir: demo
gradle:
- yes
- versionName: '1.28'
versionCode: 28
commit: '1.28'
subdir: demo
gradle:
- yes
AutoUpdateMode: Version %v
UpdateCheckMode: Tags
CurrentVersion: '1.28'
CurrentVersio... | <|file_sep|>metadata/au.com.darkside.xdemo.yml.diff
original:
updated:
- versionName: '1.28'
versionCode: 28
commit: '1.28'
subdir: demo
gradle:
- yes
<|file_sep|>original/metadata/au.com.darkside.xdemo.yml
Repo: https://github.com/nwrkbiz/android-xserver
Builds:
- versionName: '1.24'
v... | 9ff389adf18a28ec393a358e6b2893fe772ac13f | metadata/au.com.darkside.xdemo.yml | metadata/au.com.darkside.xdemo.yml | YAML |
<|file_sep|>original/neo-dci.gemspec
gem.email = ["ps@neopoly.de", "jh@neopoly.de", "jt@neopoly.de"]
gem.description = %q{Simple DCI}
gem.summary = %q{Includes Data, Roles and Context.}
gem.homepage = "https://github.com/neopoly/neo-dci"
gem.files = `git ls-files`.split($\)
gem... | gem.email = ["ps@neopoly.de", "jh@neopoly.de", "jt@neopoly.de"]
gem.description = %q{Simple DCI}
gem.summary = %q{Includes Data, Roles and Context.}
gem.homepage = "https://github.com/neopoly/neo-dci"
gem.files = `git ls-files`.split($\)
gem.executables = gem.files.grep(%r{^b... | <|file_sep|>original/neo-dci.gemspec
gem.email = ["ps@neopoly.de", "jh@neopoly.de", "jt@neopoly.de"]
gem.description = %q{Simple DCI}
gem.summary = %q{Includes Data, Roles and Context.}
gem.homepage = "https://github.com/neopoly/neo-dci"
gem.files = `git ls-files`.split($\)
gem... | 796e5201443eb98f76780e857ac0e5134c9367eb | neo-dci.gemspec | neo-dci.gemspec | Ruby |
<|file_sep|>webpack.config.js.diff
original:
updated:
var webpack = require('webpack');
<|file_sep|>webpack.config.js.diff
original:
app: Paths.APP
updated:
app: Paths.APP,
vendor: [
'bluebird', 'classnames', 'falcor', 'falcor-http-datasource', 'jsuri', 'load-script', 'lodash',
'md5', 'moment'... | resolve: {
extensions: [ '', '.js', '.jsx' ],
root: [
Paths.APP
]
},
output: {
path: Paths.BUILD_OUTPUT,
filename: 'killrvideo.js'
},
plugins: [
new webpack.optimize.CommonsChunkPlugin({
name: 'vendor',
filename: 'vendor.js'
})
],
module: {
loaders: [
... | <|file_sep|>webpack.config.js.diff
original:
updated:
var webpack = require('webpack');
<|file_sep|>webpack.config.js.diff
original:
app: Paths.APP
updated:
app: Paths.APP,
vendor: [
'bluebird', 'classnames', 'falcor', 'falcor-http-datasource', 'jsuri', 'load-script', 'lodash',
'md5', 'moment'... | ec3f99bf3e4af37752e3207f746311db3034ea6c | webpack.config.js | webpack.config.js | JavaScript |
<|file_sep|>.travis.yml.diff
original:
updated:
dist: xenial
<|file_sep|>.travis.yml.diff
original:
- "3.4"
- "3.3"
updated:
- "3.8"
- "3.7"
- "3.6"
- "3.5"
<|file_sep|>.travis.yml.diff
original:
- "2.6"
updated:
<|file_sep|>original/.travis.yml
# Config file for automatic testing at travis-ci.org
lang... | # Config file for automatic testing at travis-ci.org
language: python
dist: xenial
python:
- "3.8"
- "3.7"
- "3.6"
- "3.5"
- "2.7"
- "pypy"
- "pypy3"
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install: pip install -r requirements.txt
# command to run tests, e.... | <|file_sep|>.travis.yml.diff
original:
updated:
dist: xenial
<|file_sep|>.travis.yml.diff
original:
- "3.4"
- "3.3"
updated:
- "3.8"
- "3.7"
- "3.6"
- "3.5"
<|file_sep|>.travis.yml.diff
original:
- "2.6"
updated:
<|file_sep|>original/.travis.yml
# Config file for automatic testing at travis-ci.org
lang... | 7200739066bb8253cea8d949527633a48eeff9a0 | .travis.yml | .travis.yml | YAML |
<|file_sep|>src/main/java/net/exkazuu/GitManager.java.diff
original:
updated:
import java.io.BufferedReader;
<|file_sep|>src/main/java/net/exkazuu/GitManager.java.diff
original:
updated:
import java.io.InputStream;
import java.io.InputStreamReader;
<|file_sep|>src/main/java/net/exkazuu/GitManager.java.diff
original:
... | rt.exec(command);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
public Boolean test(String name) {
String command = "mvn test C:/" + name;
try {
Process p =rt.exec(command);
InputStream is = p.getInputStream();
InputStreamReader isr = new InputStream... | <|file_sep|>src/main/java/net/exkazuu/GitManager.java.diff
original:
updated:
import java.io.BufferedReader;
<|file_sep|>src/main/java/net/exkazuu/GitManager.java.diff
original:
updated:
import java.io.InputStream;
import java.io.InputStreamReader;
<|file_sep|>src/main/java/net/exkazuu/GitManager.java.diff
original:
... | 4df0081f990d6af3c3194e0530ee0214569ea659 | src/main/java/net/exkazuu/GitManager.java | src/main/java/net/exkazuu/GitManager.java | Java |
<|file_sep|>original/index.d.ts
export enum RouterActionType {
POP = 'POP',
PUSH = 'PUSH'
}
export interface RouterState {
location: Location
action: RouterActionType.POP | RouterActionType.PUSH
}
export const LOCATION_CHANGE: string
export const CALL_HISTORY_METHOD: string
export funct... | export enum RouterActionType {
POP = 'POP',
PUSH = 'PUSH'
}
export interface RouterState {
location: Location
action: RouterActionType.POP | RouterActionType.PUSH
}
export const LOCATION_CHANGE: '@@router/LOCATION_CHANGE'
export const CALL_HISTORY_METHOD: string
export function push(pat... | <|file_sep|>original/index.d.ts
export enum RouterActionType {
POP = 'POP',
PUSH = 'PUSH'
}
export interface RouterState {
location: Location
action: RouterActionType.POP | RouterActionType.PUSH
}
export const LOCATION_CHANGE: string
export const CALL_HISTORY_METHOD: string
export funct... | 0d73f5e867ca76e158dde834fda1502fe2f99f91 | index.d.ts | index.d.ts | TypeScript |
<|file_sep|>lib/domgen/ruby/model.rb.diff
original:
class RubyAttribute < BaseParentedElement
end
updated:
<|file_sep|>original/lib/domgen/ruby/model.rb
def qualified_name
"::#{object_type.data_module.ruby.module_name}::#{classname}"
end
def filename
fqn = qualified_name
... | "::#{object_type.data_module.ruby.module_name}::#{classname}"
end
def filename
fqn = qualified_name
underscore(fqn[2..fqn.length])
end
end
class RubyModule < Domgen.ParentedElement(:data_module)
attr_writer :module_name
def module_name
@module_nam... | <|file_sep|>lib/domgen/ruby/model.rb.diff
original:
class RubyAttribute < BaseParentedElement
end
updated:
<|file_sep|>original/lib/domgen/ruby/model.rb
def qualified_name
"::#{object_type.data_module.ruby.module_name}::#{classname}"
end
def filename
fqn = qualified_name
... | 8b3e0a1e9f457f2859e608d10d5703eec45d4603 | lib/domgen/ruby/model.rb | lib/domgen/ruby/model.rb | Ruby |
<|file_sep|>original/app/controllers/misc_controller.rb
class MiscController < ApplicationController
def show
redirect_to misc_information_path
end
def information
@env = ENV
@plugins = Plugin.installed
end
end
<|file_sep|>current/app/controllers/misc_controller.rb
class MiscController < Applicatio... | require "fluent/version"
class MiscController < ApplicationController
def show
redirect_to misc_information_path
end
def information
@env = ENV
@plugins = Plugin.installed
end
end | <|file_sep|>original/app/controllers/misc_controller.rb
class MiscController < ApplicationController
def show
redirect_to misc_information_path
end
def information
@env = ENV
@plugins = Plugin.installed
end
end
<|file_sep|>current/app/controllers/misc_controller.rb
class MiscController < Applicatio... | 70e36fb4fd5514411308e6838cd356dc11cf8f70 | app/controllers/misc_controller.rb | app/controllers/misc_controller.rb | Ruby |
<|file_sep|>python/examples/encode_message.py.diff
original:
updated:
print(message)
<|file_sep|>original/python/examples/encode_message.py
from fusion_engine_client.utils.argument_parser import ArgumentParser
from fusion_engine_client.utils.bin_utils import bytes_to_hex
if __name__ == "__main__":
parser = Ar... |
if __name__ == "__main__":
parser = ArgumentParser(description="""\
Encode a FusionEngine message and print the resulting binary content to the
console.
""")
options = parser.parse_args()
# Enable FusionEngine PoseMessage output on UART1
message = SetMessageRate(output_interface=InterfaceID(Transport... | <|file_sep|>python/examples/encode_message.py.diff
original:
updated:
print(message)
<|file_sep|>original/python/examples/encode_message.py
from fusion_engine_client.utils.argument_parser import ArgumentParser
from fusion_engine_client.utils.bin_utils import bytes_to_hex
if __name__ == "__main__":
parser = Ar... | 8be5a5bcbd228599ce7a4f226638feb3dc3318a8 | python/examples/encode_message.py | python/examples/encode_message.py | Python |
<|file_sep|>src/utils/path_helper.h.diff
original:
updated:
#include "./project_root.h"
inline QString relativeApplicationToProjectRootPath()
{
return QDir(QCoreApplication::applicationDirPath())
.relativeFilePath(QString(PROJECT_ROOT));
}
<|file_sep|>src/utils/path_helper.h.diff
original:
updated:
}
inline... | }
inline QString absolutePathOfProjectRelativeUrl(QUrl url)
{
return absolutePathOfProjectRelativePath(url.toLocalFile());
}
inline std::string absolutePathOfRelativePath(std::string relativePath)
{
return QDir(QCoreApplication::applicationDirPath())
.absoluteFilePath(QString(relativePath.c_str()))
.t... | <|file_sep|>src/utils/path_helper.h.diff
original:
updated:
#include "./project_root.h"
inline QString relativeApplicationToProjectRootPath()
{
return QDir(QCoreApplication::applicationDirPath())
.relativeFilePath(QString(PROJECT_ROOT));
}
<|file_sep|>src/utils/path_helper.h.diff
original:
updated:
}
inline... | 135c7668abe9b92fc103fda87f4f1ad255951184 | src/utils/path_helper.h | src/utils/path_helper.h | C |
<|file_sep|>app/helpers/snl_admin/application_helper.rb.diff
original:
def nav_link(resource, options={})
updated:
def nav_link(resource, options = {})
<|file_sep|>app/helpers/snl_admin/application_helper.rb.diff
original:
path = options.delete(:path) || send("#{resource}_path", path_options) rescue '#not... | end
matches_path_options = true
path_options.each do |key, value|
matches_path_options = params[key] == value
end
css = (matches_controller_name && matches_path_options) ? 'active' : ''
content_tag(:li, class: css) do
link_to(name, path, options)
end
end
... | <|file_sep|>app/helpers/snl_admin/application_helper.rb.diff
original:
def nav_link(resource, options={})
updated:
def nav_link(resource, options = {})
<|file_sep|>app/helpers/snl_admin/application_helper.rb.diff
original:
path = options.delete(:path) || send("#{resource}_path", path_options) rescue '#not... | b5acc11a9b472926b5ce2ea071f5ddd9f1d4e05b | app/helpers/snl_admin/application_helper.rb | app/helpers/snl_admin/application_helper.rb | Ruby |
<|file_sep|>original/_posts/2017-04-09-Trinity-Test-Site.markdown
<|file_sep|>current/_posts/2017-04-09-Trinity-Test-Site.markdown
<|file_sep|>updated/_posts/2017-04-09-Trinity-Test-Site.markdown | ---
layout: photo
title: "Trinity Test Site"
subtitle: "The historic location in New Mexico where they detonated the first atomic bomb"
date: 2017-04-09
tags: [photos]
author: "Craig Davis"
photourl: "http://photos.there4.io/Travel/Trinity-Test-Site"
--- | <|file_sep|>original/_posts/2017-04-09-Trinity-Test-Site.markdown
<|file_sep|>current/_posts/2017-04-09-Trinity-Test-Site.markdown
<|file_sep|>updated/_posts/2017-04-09-Trinity-Test-Site.markdown
---
layout: photo
title: "Trinity Test Site"
subtitle: "The historic location in New Mexico where they detonate... | 16843d7e3904d7843fc34aba7b5d706c22a74a2f | _posts/2017-04-09-Trinity-Test-Site.markdown | _posts/2017-04-09-Trinity-Test-Site.markdown | Markdown |
<|file_sep|>original/azure-pipelines.yml
<|file_sep|>current/azure-pipelines.yml
<|file_sep|>updated/azure-pipelines.yml | # Go
# Build your Go project.
# Add steps that test, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/go
trigger:
- master
pool:
vmImage: 'Ubuntu-16.04'
variables:
GOBIN: '$(GOPATH)/bin' # Go binaries path
GOROOT: '/usr/local/go1.11' # Go installation path
... | <|file_sep|>original/azure-pipelines.yml
<|file_sep|>current/azure-pipelines.yml
<|file_sep|>updated/azure-pipelines.yml
# Go
# Build your Go project.
# Add steps that test, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/go
trigger:
- master
pool:
vmImage: 'U... | 64fdcfc6faf07ed439f4666cdd1a0038869a49a5 | azure-pipelines.yml | azure-pipelines.yml | YAML |
<|file_sep|>src/main/java/com/ezardlabs/lostsector/ai/RangedBehaviour.java.diff
original:
updated:
import com.ezardlabs.lostsector.ai.RangedBehaviour.Builder.ShootAction;
<|file_sep|>src/main/java/com/ezardlabs/lostsector/ai/RangedBehaviour.java.diff
original:
updated:
private final ShootAction shootAction;
<|file_s... | public Builder setRange(float range) {
this.range = range;
return this;
}
public Builder setShootAction(ShootAction shootAction) {
this.shootAction = shootAction;
return this;
}
@Override
public RangedBehaviour create() {
return new RangedBehaviour(moveSpeed, willPatrol, visionRange, range,... | <|file_sep|>src/main/java/com/ezardlabs/lostsector/ai/RangedBehaviour.java.diff
original:
updated:
import com.ezardlabs.lostsector.ai.RangedBehaviour.Builder.ShootAction;
<|file_sep|>src/main/java/com/ezardlabs/lostsector/ai/RangedBehaviour.java.diff
original:
updated:
private final ShootAction shootAction;
<|file_s... | da96b6c19d0b7137ccccca31da2366abee93f370 | src/main/java/com/ezardlabs/lostsector/ai/RangedBehaviour.java | src/main/java/com/ezardlabs/lostsector/ai/RangedBehaviour.java | Java |
<|file_sep|>original/requirements_dev.txt
psycopg2-binary==2.8.3
pip==19.1.1
bumpversion==0.5.3
wheel==0.33.4
watchdog==0.9.0
flake8==3.7.7
cryptography==2.7
tox==3.12.1
coverage==4.5.3
Sphinx==2.1.1
pytest-runner==5.1
pytest==4.6.3
pytest-cov==2.7.1
# miscellaneous
sphinx_rtd_theme==0.4.3
pre-commit==1.17.0
python-... | psycopg2-binary==2.8.3
pip==19.1.1
bumpversion==0.5.3
wheel==0.33.4
watchdog==0.9.0
flake8==3.7.7
cryptography==2.7
tox==3.12.1
coverage==4.5.3
Sphinx==2.1.2
pytest-runner==5.1
pytest==4.6.3
pytest-cov==2.7.1
# miscellaneous
sphinx_rtd_theme==0.4.3
pre-commit==1.17.0
python-dotenv[cli]==0.10.3
| <|file_sep|>original/requirements_dev.txt
psycopg2-binary==2.8.3
pip==19.1.1
bumpversion==0.5.3
wheel==0.33.4
watchdog==0.9.0
flake8==3.7.7
cryptography==2.7
tox==3.12.1
coverage==4.5.3
Sphinx==2.1.1
pytest-runner==5.1
pytest==4.6.3
pytest-cov==2.7.1
# miscellaneous
sphinx_rtd_theme==0.4.3
pre-commit==1.17.0
python-... | 75c92ea0b1a0705cfee8aa23e428f52caf56b5d0 | requirements_dev.txt | requirements_dev.txt | Text |
<|file_sep|>original/package.json
],
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/Siilwyn/promise-all-props.git"
},
"scripts": {
"start": "npm run watch",
"test": "node test.js",
"preversion": "npm test",
"postversion": "git push && npm publish",
"l... | ],
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/Siilwyn/promise-all-props.git"
},
"scripts": {
"start": "npm run watch",
"test": "node test.js",
"preversion": "npm test",
"postversion": "git push && npm publish",
"lint": "eslint *.js",
"watch": ... | <|file_sep|>original/package.json
],
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/Siilwyn/promise-all-props.git"
},
"scripts": {
"start": "npm run watch",
"test": "node test.js",
"preversion": "npm test",
"postversion": "git push && npm publish",
"l... | e72e56c1524b5c88fedfb7bdddbc1b7b357d261c | package.json | package.json | JSON |
<|file_sep|>packages/ta/tasty-th.yaml.diff
original:
hash: 918aeb00225280123e6fbfea264751d767cef0dd7c11dc44dad048a184b848ba
updated:
hash: 964a332f0400c18ea5cccb0974799d3fe4bc2640e544ae67ea2d02c6f6642dc6
<|file_sep|>packages/ta/tasty-th.yaml.diff
original:
updated:
haskell-src-exts: ! '>=1.18.0'
<|file_sep|>packages... | maintainer: Benno Fünfstück <benno.fuenfstueck@gmail.com>
synopsis: Automatic tasty test case discovery using TH
changelog: ''
basic-deps:
base: ! '>=4 && <5'
haskell-src-exts: ! '>=1.18.0'
tasty: -any
template-haskell: -any
all-versions:
- '0.1.0'
- '0.1.1'
- '0.1.2'
- '0.1.3'
- '0.1.4'
- '0.1.5'
author: Oscar... | <|file_sep|>packages/ta/tasty-th.yaml.diff
original:
hash: 918aeb00225280123e6fbfea264751d767cef0dd7c11dc44dad048a184b848ba
updated:
hash: 964a332f0400c18ea5cccb0974799d3fe4bc2640e544ae67ea2d02c6f6642dc6
<|file_sep|>packages/ta/tasty-th.yaml.diff
original:
updated:
haskell-src-exts: ! '>=1.18.0'
<|file_sep|>packages... | 619ad895fc3321664147712c9949d5497fb920d6 | packages/ta/tasty-th.yaml | packages/ta/tasty-th.yaml | YAML |
<|file_sep|>resources/views/earnings/index.blade.php.diff
original:
<div>{{ $earning->description }}</div>
<div style="margin-top: 10px; font-size: 14px;">{{ $earning->formatted_happened_on }}</div>
updated:
<div class="color-dark">{{ $... |
@section('body')
<div class="wrapper my-3">
<h2>{{ __('general.earnings') }}</h2>
<div class="box mt-3">
@if (count($earnings))
@foreach ($earnings as $earning)
<div class="box__section row">
<div class="row__column">
... | <|file_sep|>resources/views/earnings/index.blade.php.diff
original:
<div>{{ $earning->description }}</div>
<div style="margin-top: 10px; font-size: 14px;">{{ $earning->formatted_happened_on }}</div>
updated:
<div class="color-dark">{{ $... | be7b4f58aef86f26568a414913be1bb54b614f2d | resources/views/earnings/index.blade.php | resources/views/earnings/index.blade.php | PHP |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.