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|>core/module/method_added_spec.rb.diff
original:
Module.new do
updated:
m = Module.new do
<|file_sep|>original/core/module/method_added_spec.rb
end
$methods_added.should == [:test, :test2, :test, :aliased_test, :aliased_test2]
ensure
$methods_added = nil
end
end
it "is... |
$methods_added.should == [:test, :test2, :test, :aliased_test, :aliased_test2]
ensure
$methods_added = nil
end
end
it "is not called when a method is undefined in self" do
m = Module.new do
def method_to_undef
end
def self.method_added(name)
fail("method_added ca... | <|file_sep|>core/module/method_added_spec.rb.diff
original:
Module.new do
updated:
m = Module.new do
<|file_sep|>original/core/module/method_added_spec.rb
end
$methods_added.should == [:test, :test2, :test, :aliased_test, :aliased_test2]
ensure
$methods_added = nil
end
end
it "is... | 45d075c8c47ef0cc15ee5cb126806148ad0f5d35 | core/module/method_added_spec.rb | core/module/method_added_spec.rb | Ruby |
<|file_sep|>original/app/controllers/sessions_controller.rb
class SessionsController < ApplicationController
def new
redirect_to leads_path if @current_user
end
def create
auth = request.env["omniauth.auth"]
user = User.find_by(uid: auth["uid"]) || User.create_with_salesforce(auth)
session[:user_... | class SessionsController < ApplicationController
def new
redirect_to leads_path if current_user
end
def create
auth = request.env["omniauth.auth"]
user = User.find_by(uid: auth["uid"]) || User.create_with_salesforce(auth)
session[:user_id] = user.id
redirect_to leads_path
end
def destroy... | <|file_sep|>original/app/controllers/sessions_controller.rb
class SessionsController < ApplicationController
def new
redirect_to leads_path if @current_user
end
def create
auth = request.env["omniauth.auth"]
user = User.find_by(uid: auth["uid"]) || User.create_with_salesforce(auth)
session[:user_... | ba40eca2484cfb9266b1e18aae595bfc248bcae4 | app/controllers/sessions_controller.rb | app/controllers/sessions_controller.rb | Ruby |
<|file_sep|>plugins/jps-cache/src/com/intellij/jps/cache/JpsCachesDummyProjectComponent.java.diff
original:
updated:
import com.intellij.compiler.CompilerWorkspaceConfiguration;
import com.intellij.compiler.server.BuildManager;
import com.intellij.ide.util.PropertiesComponent;
import com.intellij.notification.Notifica... | import com.intellij.notification.NotificationAction;
import com.intellij.notification.NotificationType;
import com.intellij.notification.Notifications;
import com.intellij.openapi.components.ProjectComponent;
import com.intellij.openapi.project.Project;
import org.jetbrains.annotations.NotNull;
import static com.intel... | <|file_sep|>plugins/jps-cache/src/com/intellij/jps/cache/JpsCachesDummyProjectComponent.java.diff
original:
updated:
import com.intellij.compiler.CompilerWorkspaceConfiguration;
import com.intellij.compiler.server.BuildManager;
import com.intellij.ide.util.PropertiesComponent;
import com.intellij.notification.Notifica... | fcab1bafccfffb467a5ed8a143028eafb1e86dea | plugins/jps-cache/src/com/intellij/jps/cache/JpsCachesDummyProjectComponent.java | plugins/jps-cache/src/com/intellij/jps/cache/JpsCachesDummyProjectComponent.java | Java |
<|file_sep|>original/requirements_dev.txt
pip==19.1.1
bumpversion==0.5.3
wheel==0.33.4
watchdog==0.9.0
flake8==3.7.7
Sphinx==2.0.1
tox==3.12.1
coverage==4.5.3
cryptography==2.6.1
PyYAML==5.1
<|file_sep|>current/requirements_dev.txt
pip==19.1.1
bumpversion==0.5.3
wheel==0.33.4
watchdog==0.9.0
flake8==3.7.7
Sphinx==2.0.1... | pip==19.1.1
bumpversion==0.5.3
wheel==0.33.4
watchdog==0.9.0
flake8==3.7.7
Sphinx==2.1.2
tox==3.12.1
coverage==4.5.3
cryptography==2.6.1
PyYAML==5.1 | <|file_sep|>original/requirements_dev.txt
pip==19.1.1
bumpversion==0.5.3
wheel==0.33.4
watchdog==0.9.0
flake8==3.7.7
Sphinx==2.0.1
tox==3.12.1
coverage==4.5.3
cryptography==2.6.1
PyYAML==5.1
<|file_sep|>current/requirements_dev.txt
pip==19.1.1
bumpversion==0.5.3
wheel==0.33.4
watchdog==0.9.0
flake8==3.7.7
Sphinx==2.0.1... | 1933e3d7135e62a722204d1226db4564000cc95a | requirements_dev.txt | requirements_dev.txt | Text |
<|file_sep|>sys/dev/drm/drm-preprocess.sh.diff
original:
updated:
cvs up -CPd *.[ch]
for i in `ls *.[ch]`; do
mv $i $i.cvs
done
<|file_sep|>sys/dev/drm/drm-preprocess.sh.diff
original:
updated:
line=`grep \\\$FreeBSD drm_pciids.h.cvs`
<|file_sep|>sys/dev/drm/drm-preprocess.sh.diff
original:
echo " * \$FreeBSD\$" >... |
# Replace drm_pciids.h with one with a $FreeBSD$
line=`grep \\\$FreeBSD drm_pciids.h.cvs`
rm -f drm_pciids.h
echo "/*" >> drm_pciids.h
echo "$line" >> drm_pciids.h
echo " */" >> drm_pciids.h
cat /usr/src/drm/bsd-core/drm_pciids.h >> drm_pciids.h
for i in `ls *.[ch]`; do
mv $i $i.orig
perl drm-subprocess.pl < $i.ori... | <|file_sep|>sys/dev/drm/drm-preprocess.sh.diff
original:
updated:
cvs up -CPd *.[ch]
for i in `ls *.[ch]`; do
mv $i $i.cvs
done
<|file_sep|>sys/dev/drm/drm-preprocess.sh.diff
original:
updated:
line=`grep \\\$FreeBSD drm_pciids.h.cvs`
<|file_sep|>sys/dev/drm/drm-preprocess.sh.diff
original:
echo " * \$FreeBSD\$" >... | a4f1b36f3ef8c2625919df1ff99c54138de83b1e | sys/dev/drm/drm-preprocess.sh | sys/dev/drm/drm-preprocess.sh | Shell |
<|file_sep|>original/.travis.yml
language: python
python:
- "2.6"
- "2.7"
before_script:
- ./setuptests.sh
install:
- "pip install -r requirements.txt --use-wheel"
script:
- python manage.py syncdb --noinput
- python manage.py migrate
- python manage.py test
<|file_sep|>current/.travis.yml
language: pytho... | language: python
python:
- "2.6"
- "2.7"
before_script:
- ./setuptests.sh
install:
- "pip install -r requirements.txt --use-wheel"
- "pip install -r requirements-dev.txt --use-wheel"
script:
- python manage.py syncdb --noinput
- python manage.py migrate
- python manage.py test | <|file_sep|>original/.travis.yml
language: python
python:
- "2.6"
- "2.7"
before_script:
- ./setuptests.sh
install:
- "pip install -r requirements.txt --use-wheel"
script:
- python manage.py syncdb --noinput
- python manage.py migrate
- python manage.py test
<|file_sep|>current/.travis.yml
language: pytho... | 3877a412c34d23bd68c2bd6191542adf5175f4e6 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/src/changes/changes.xml
<document>
<properties>
<title>Release notes</title>
<author email="jahlborn@users.sf.net">James Ahlborn</author>
</properties>
<body>
<release version="2.0.1" date="TBD">
<action dev="jahlborn" type="update">
Allow the default port for the De... | <properties>
<title>Release notes</title>
<author email="jahlborn@users.sf.net">James Ahlborn</author>
</properties>
<body>
<release version="2.0.1" date="TBD">
<action dev="jahlborn" type="update">
Allow the default port for the DefaultRemoteStreamExporter to be
configured via a... | <|file_sep|>original/src/changes/changes.xml
<document>
<properties>
<title>Release notes</title>
<author email="jahlborn@users.sf.net">James Ahlborn</author>
</properties>
<body>
<release version="2.0.1" date="TBD">
<action dev="jahlborn" type="update">
Allow the default port for the De... | b446ccffc826582418940da8988b97b8abf0110f | src/changes/changes.xml | src/changes/changes.xml | XML |
<|file_sep|>original/evently/finder/loggedIn/selectors/#submit_pasted_url/click.js
url = url.substr(idPos + 3);
}
lastSlash = url.lastIndexOf("/");
if (lastSlash > -1) {
url = url.substr(lastSlash + 1);
}
ampPos = url.indexOf("&");
if (ampPos > -1) {
url = url.substr(0, ampPos)... | url = url.substr(idPos + 3);
}
lastSlash = url.lastIndexOf("/");
if (lastSlash > -1) {
url = url.substr(lastSlash + 1);
}
ampPos = url.indexOf("&");
if (ampPos > -1) {
url = url.substr(0, ampPos);
}
guid = url.replace(/^\s+|\s+$/g,"");
if (guid.length == 32) {
... | <|file_sep|>original/evently/finder/loggedIn/selectors/#submit_pasted_url/click.js
url = url.substr(idPos + 3);
}
lastSlash = url.lastIndexOf("/");
if (lastSlash > -1) {
url = url.substr(lastSlash + 1);
}
ampPos = url.indexOf("&");
if (ampPos > -1) {
url = url.substr(0, ampPos)... | 0f31a6bfe80e2e3451b67ecccf1cc1a3f32c3127 | evently/finder/loggedIn/selectors/#submit_pasted_url/click.js | evently/finder/loggedIn/selectors/#submit_pasted_url/click.js | JavaScript |
<|file_sep|>original/.travis.yml
language: ruby
ruby:
- 2.1
install:
- npm install
- sh -e /etc/init.d/xvfb start
- webdriver-manager update
script:
- jekyll serve --detach
- npm test
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
- DISPLAY=:99.0
branches:
only:
- gh-pages
<|file_sep|>current/.travis.yml
l... | language: ruby
ruby:
- 2.1
install:
- npm install
- sh -e /etc/init.d/xvfb start
- webdriver-manager update
script:
- jekyll serve --detach
- npm test
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
- DISPLAY=:99.0
branches:
only:
- gh-pages
cache:
bundler: true
directories:
- node_modules | <|file_sep|>original/.travis.yml
language: ruby
ruby:
- 2.1
install:
- npm install
- sh -e /etc/init.d/xvfb start
- webdriver-manager update
script:
- jekyll serve --detach
- npm test
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
- DISPLAY=:99.0
branches:
only:
- gh-pages
<|file_sep|>current/.travis.yml
l... | 5563304795e7e802ac307c54242cac2ac640dde6 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/ci/build-ompi.sh
#!/bin/bash
set -e
curl http://www.open-mpi.org/software/ompi/v1.10/downloads/openmpi-1.10.0.tar.gz | tar zx
cd openmpi-1.10.0
mkdir -p $HOME/ompi
./configure --enable-shared --prefix=$HOME/ompi --disable-fortran
make -j 2
make -j 2 install
<|file_sep|>current/ci/build-ompi.sh... | #!/bin/bash
set -e
if [ -d "$HOME/ompi" ]; then
echo "Openmpi already installed."
exit 0
fi
curl http://www.open-mpi.org/software/ompi/v1.10/downloads/openmpi-1.10.0.tar.gz | tar zx
cd openmpi-1.10.0
mkdir -p $HOME/ompi
./configure --enable-shared --prefix=$HOME/ompi --disable-fortran
make -j 2
make -j 2 insta... | <|file_sep|>original/ci/build-ompi.sh
#!/bin/bash
set -e
curl http://www.open-mpi.org/software/ompi/v1.10/downloads/openmpi-1.10.0.tar.gz | tar zx
cd openmpi-1.10.0
mkdir -p $HOME/ompi
./configure --enable-shared --prefix=$HOME/ompi --disable-fortran
make -j 2
make -j 2 install
<|file_sep|>current/ci/build-ompi.sh... | 94e540ad16587bc11bbd525f3880011f43140bb2 | ci/build-ompi.sh | ci/build-ompi.sh | Shell |
<|file_sep|>.travis.yml.diff
original:
updated:
- 1.9.3
<|file_sep|>.travis.yml.diff
original:
- jruby-19mode
updated:
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 2.1.0
- jruby-19mode
- ruby-head
- jruby-head
script: rake test:unit
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 1.9.3
... | language: ruby
rvm:
- 1.9.3
- 2.1.0
- ruby-head
script: rake test:unit | <|file_sep|>.travis.yml.diff
original:
updated:
- 1.9.3
<|file_sep|>.travis.yml.diff
original:
- jruby-19mode
updated:
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 2.1.0
- jruby-19mode
- ruby-head
- jruby-head
script: rake test:unit
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 1.9.3
... | 996183a031ea8b2fe9424747031e9aaaa1d5a21c | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/test-requirements.txt
# Requirements
argparse
logutils
pyodbc
taskthread
# Documentation
sphinx
# Testing
coverage
mock
pep8==1.2
unittest2
<|file_sep|>current/test-requirements.txt
# Requirements
argparse
logutils
pyodbc
taskthread
# Documentation
sphinx
# Testing
coverage
mock
pep8==1.2
u... | # Requirements
argparse
logutils
pyodbc
taskthread>=1.2
# Documentation
sphinx
# Testing
coverage
mock
pep8==1.2
unittest2 | <|file_sep|>original/test-requirements.txt
# Requirements
argparse
logutils
pyodbc
taskthread
# Documentation
sphinx
# Testing
coverage
mock
pep8==1.2
unittest2
<|file_sep|>current/test-requirements.txt
# Requirements
argparse
logutils
pyodbc
taskthread
# Documentation
sphinx
# Testing
coverage
mock
pep8==1.2
u... | 6f143ab60e36152ddc08457c0b95e7033e6a61e9 | test-requirements.txt | test-requirements.txt | Text |
<|file_sep|>original/.github/workflows/deploy-tag.yml
<|file_sep|>current/.github/workflows/deploy-tag.yml
<|file_sep|>updated/.github/workflows/deploy-tag.yml | name: Deploy Tagged Containers
on:
push:
tags:
- '*'
jobs:
tags:
outputs:
major: ${{ steps.tag.outputs.major }}
minor: ${{ steps.tag.outputs.minor }}
patch: ${{ steps.tag.outputs.patch }}
steps:
- id: tag
run: |
MAJOR_VERSION=$(echo $GITHUB_REF | sed -rn 's#^/r... | <|file_sep|>original/.github/workflows/deploy-tag.yml
<|file_sep|>current/.github/workflows/deploy-tag.yml
<|file_sep|>updated/.github/workflows/deploy-tag.yml
name: Deploy Tagged Containers
on:
push:
tags:
- '*'
jobs:
tags:
outputs:
major: ${{ steps.tag.outputs.major }}
minor: ${{ step... | b6ee391c386989091f4983620dc692c4a82310d1 | .github/workflows/deploy-tag.yml | .github/workflows/deploy-tag.yml | YAML |
<|file_sep|>app/models/container_image_registry.rb.diff
original:
updated:
# Associated with images in the registry.
<|file_sep|>app/models/container_image_registry.rb.diff
original:
updated:
has_many :container_groups, :through => :container_images
# Associated with serving the registry itself - for openshif... | class ContainerImageRegistry < ApplicationRecord
belongs_to :ext_management_system, :foreign_key => "ems_id"
# Associated with images in the registry.
has_many :container_images, :dependent => :nullify
has_many :containers, :through => :container_images
has_many :container_groups, :through => :container_imag... | <|file_sep|>app/models/container_image_registry.rb.diff
original:
updated:
# Associated with images in the registry.
<|file_sep|>app/models/container_image_registry.rb.diff
original:
updated:
has_many :container_groups, :through => :container_images
# Associated with serving the registry itself - for openshif... | 56d5ff6400b4bd48d872608e76789d437c04df5b | app/models/container_image_registry.rb | app/models/container_image_registry.rb | Ruby |
<|file_sep|>lumify-web-war/src/main/webapp/js/service/config.js.diff
original:
if (!refresh && this.cachedProperties) return this.cachedProperties;
updated:
if (!refresh && this.cachedProperties) {
return this.cachedProperties;
}
<|file_sep|>original/lumify-web-war/src/main/webapp/js... | return this;
}
ConfigService.prototype = Object.create(ServiceBase.prototype);
ConfigService.prototype.getProperties = function(refresh) {
if (!refresh && this.cachedProperties) {
return this.cachedProperties;
}
this.cachedProperties =
this._ajaxGet... | <|file_sep|>lumify-web-war/src/main/webapp/js/service/config.js.diff
original:
if (!refresh && this.cachedProperties) return this.cachedProperties;
updated:
if (!refresh && this.cachedProperties) {
return this.cachedProperties;
}
<|file_sep|>original/lumify-web-war/src/main/webapp/js... | acc5692d93fb34fcb134165e966f0e18ab9d436b | lumify-web-war/src/main/webapp/js/service/config.js | lumify-web-war/src/main/webapp/js/service/config.js | JavaScript |
<|file_sep|>original/package.json
{
"name": "gshorten-server",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"postinstall": "echo \"Please input your app-key for Google shorten:\" && read apikey && echo APIKEY=$apikey > test",
"serve": "foreman start web",
"deploy": "git ... | {
"name": "gshorten-server",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"setup": "echo \"Please input your app-key for Google shorten:\" && read apikey && echo APIKEY=$apikey > test",
"serve": "foreman start web",
"deploy": "git push heroku master"
},
"author": "ra... | <|file_sep|>original/package.json
{
"name": "gshorten-server",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"postinstall": "echo \"Please input your app-key for Google shorten:\" && read apikey && echo APIKEY=$apikey > test",
"serve": "foreman start web",
"deploy": "git ... | 99354cd4d7d8f4bd432ddd2bc5afdb2c0507aac3 | package.json | package.json | JSON |
<|file_sep|>original/app/app/__init__.py
from sqlalchemy import engine_from_config
from .models import DBSession, Base
def main(global_config, **settings):
'''This function returns a Pyramid WSGI application.'''
settings['sqlalchemy.url'] = os.environ.get('DATABASE_URL')
engine = engine_from_config(setti... |
from .models import DBSession, Base
def main(global_config, **settings):
'''This function returns a Pyramid WSGI application.'''
settings['sqlalchemy.url'] = os.environ.get('DATABASE_URL')
engine = engine_from_config(settings, 'sqlalchemy.')
DBSession.configure(bind=engine)
Base.metadata.bind = e... | <|file_sep|>original/app/app/__init__.py
from sqlalchemy import engine_from_config
from .models import DBSession, Base
def main(global_config, **settings):
'''This function returns a Pyramid WSGI application.'''
settings['sqlalchemy.url'] = os.environ.get('DATABASE_URL')
engine = engine_from_config(setti... | 8d8b122ecbb306bb53de4ee350104e7627e8b362 | app/app/__init__.py | app/app/__init__.py | Python |
<|file_sep|>original/src/HealthCareAbroad/TreatmentBundle/Resources/config/doctrine/Specialization.orm.yml
strategy: IDENTITY
name:
type: string
length: 100
fixed: false
nullable: false
gedmo:
- versioned
descrip... | strategy: IDENTITY
name:
type: string
length: 100
fixed: false
nullable: false
gedmo:
- versioned
description:
type: text
nullable: true
gedmo:
- versioned
... | <|file_sep|>original/src/HealthCareAbroad/TreatmentBundle/Resources/config/doctrine/Specialization.orm.yml
strategy: IDENTITY
name:
type: string
length: 100
fixed: false
nullable: false
gedmo:
- versioned
descrip... | 7e2e7df295157e0749563d5537d762d494d24945 | src/HealthCareAbroad/TreatmentBundle/Resources/config/doctrine/Specialization.orm.yml | src/HealthCareAbroad/TreatmentBundle/Resources/config/doctrine/Specialization.orm.yml | YAML |
<|file_sep|>src/test/ui/feature-gates/feature-gate-is_sorted.rs.diff
original:
//^ ERROR: use of unstable library feature 'is_sorted'
updated:
//~^ ERROR: use of unstable library feature 'is_sorted': new API
<|file_sep|>src/test/ui/feature-gates/feature-gate-is_sorted.rs.diff
original:
//^ ERROR: use of uns... | fn main() {
// Assert `Iterator` methods are feature gated
assert!([1, 2, 2, 9].iter().is_sorted());
//~^ ERROR: use of unstable library feature 'is_sorted': new API
assert!(![-2i32, -1, 0, 3].iter().is_sorted_by_key(|n| n.abs()));
//~^ ERROR: use of unstable library feature 'is_sorted': new API
... | <|file_sep|>src/test/ui/feature-gates/feature-gate-is_sorted.rs.diff
original:
//^ ERROR: use of unstable library feature 'is_sorted'
updated:
//~^ ERROR: use of unstable library feature 'is_sorted': new API
<|file_sep|>src/test/ui/feature-gates/feature-gate-is_sorted.rs.diff
original:
//^ ERROR: use of uns... | b4766f80775a2635c026626070201356f33d2700 | src/test/ui/feature-gates/feature-gate-is_sorted.rs | src/test/ui/feature-gates/feature-gate-is_sorted.rs | Rust |
<|file_sep|>client/app/controllers/profile.js.diff
original:
$scope.user = {};
updated:
$rootScope.user = {};
<|file_sep|>client/app/controllers/profile.js.diff
original:
$scope.user = user;
updated:
$rootScope.user = user;
<|file_sep|>client/app/controllers/profile.js.diff
original:
Profile.updateU... |
$scope.update = function () {
var newProperties = {};
for (var property in $scope.newInfo) {
newProperties[property] = $scope.newInfo[property];
$scope.newInfo[property] = '';
}
Profile.updateUser(newProperties, $rootScope.user.username)
.then( function(user) {
$rootScope.user ... | <|file_sep|>client/app/controllers/profile.js.diff
original:
$scope.user = {};
updated:
$rootScope.user = {};
<|file_sep|>client/app/controllers/profile.js.diff
original:
$scope.user = user;
updated:
$rootScope.user = user;
<|file_sep|>client/app/controllers/profile.js.diff
original:
Profile.updateU... | b59bbe7b040337f0ac18f99eb4dcd57422a2b163 | client/app/controllers/profile.js | client/app/controllers/profile.js | JavaScript |
<|file_sep|>original/requirements.txt
docker==2.1.0
python-etcd==0.4.4
python-json-logger==0.1.6
<|file_sep|>current/requirements.txt
docker==2.1.0
python-etcd==0.4.4
python-json-logger==0.1.6
<|file_sep|>updated/requirements.txt | docker==2.1.0
python-etcd==0.4.5
python-json-logger==0.1.6 | <|file_sep|>original/requirements.txt
docker==2.1.0
python-etcd==0.4.4
python-json-logger==0.1.6
<|file_sep|>current/requirements.txt
docker==2.1.0
python-etcd==0.4.4
python-json-logger==0.1.6
<|file_sep|>updated/requirements.txt
docker==2.1.0
python-etcd==0.4.5
python-json-logger==0.1.6 | 9b51dab5ba8dcb32e363f08ad8cdae670f32f090 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/elasticsearch-client.gemspec
s.version = ElasticSearch::VERSION
s.authors = ["Jonathan Hoyt"]
s.email = ["hoyt@github.com"]
s.homepage = ""
s.summary = %q{ElasticSearch ruby client.}
s.description = %q{ElasticSearch ruby client.}
s.rubyforge_project = "elasticsea... | s.version = ElasticSearch::VERSION
s.authors = ["Jonathan Hoyt"]
s.email = ["hoyt@github.com"]
s.homepage = ""
s.summary = %q{ElasticSearch ruby client.}
s.description = %q{ElasticSearch ruby client.}
s.rubyforge_project = "elasticsearch-client"
s.files = `git ls-files`.sp... | <|file_sep|>original/elasticsearch-client.gemspec
s.version = ElasticSearch::VERSION
s.authors = ["Jonathan Hoyt"]
s.email = ["hoyt@github.com"]
s.homepage = ""
s.summary = %q{ElasticSearch ruby client.}
s.description = %q{ElasticSearch ruby client.}
s.rubyforge_project = "elasticsea... | 85ab31a9c2ebcd407a5324ba959818ecfe66ba4e | elasticsearch-client.gemspec | elasticsearch-client.gemspec | Ruby |
<|file_sep|>static/locales/en-GB/messages.properties.diff
original:
updated:
navigation-title=Pontoon Intro
navigation-developers=Developers
<|file_sep|>original/static/locales/en-GB/messages.properties
# Title tag
# Navigation
# Header
upper-title=Pontoon by Mozilla
headline-1=LocaliSe the web.
# What
what-desc=Po... | # Title tag
# Navigation
navigation-title=Pontoon Intro
navigation-developers=Developers
# Header
upper-title=Pontoon by Mozilla
headline-1=LocaliSe the web.
headline-2=In Place.
call-to-action=Tell Me More
# What
what-desc=Pontoon allows you to localise web content in place, with context and spatial limitations rig... | <|file_sep|>static/locales/en-GB/messages.properties.diff
original:
updated:
navigation-title=Pontoon Intro
navigation-developers=Developers
<|file_sep|>original/static/locales/en-GB/messages.properties
# Title tag
# Navigation
# Header
upper-title=Pontoon by Mozilla
headline-1=LocaliSe the web.
# What
what-desc=Po... | 1499a8d355d3438daf09d2795403a583a0b53db8 | static/locales/en-GB/messages.properties | static/locales/en-GB/messages.properties | INI |
<|file_sep|>original/.travis.yml
language: ruby
sudo: false
branches:
only: master
rvm:
- 1.9.3
- 2.0.0
- 2.1.0
- 2.2.0
- 2.3.0
- ruby-head
before_install:
- eval "$(curl -Ss https://raw.githubusercontent.com/neovim/bot-ci/master/scripts/travis-setup.sh) nightly-x64"
env: REPORT_COVERAGE=1
script: t... | language: ruby
sudo: false
branches:
only: master
rvm:
- 1.9.3
- 2.0.0
- 2.1.0
- 2.2.0
- 2.3.0
- 2.4.0
- ruby-head
before_install:
- eval "$(curl -Ss https://raw.githubusercontent.com/neovim/bot-ci/master/scripts/travis-setup.sh) nightly-x64"
env: REPORT_COVERAGE=1
script: travis_retry bundle exec... | <|file_sep|>original/.travis.yml
language: ruby
sudo: false
branches:
only: master
rvm:
- 1.9.3
- 2.0.0
- 2.1.0
- 2.2.0
- 2.3.0
- ruby-head
before_install:
- eval "$(curl -Ss https://raw.githubusercontent.com/neovim/bot-ci/master/scripts/travis-setup.sh) nightly-x64"
env: REPORT_COVERAGE=1
script: t... | 6a70fb363ffbb0d8de0a2a085b0de80f2e7659b6 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/_posts/2010-09-19-report-system-i.markdown
<|file_sep|>current/_posts/2010-09-19-report-system-i.markdown
<|file_sep|>updated/_posts/2010-09-19-report-system-i.markdown | ---
layout: post
title: "Report System Part I"
date: 2010-09-19 18:00:00
categories: programming technology-issues
---
About a year and a half ago one of our customers told us about their new requirement. They wanted some kind of a report system for handling their letters and reports, they have some letters and rep... | <|file_sep|>original/_posts/2010-09-19-report-system-i.markdown
<|file_sep|>current/_posts/2010-09-19-report-system-i.markdown
<|file_sep|>updated/_posts/2010-09-19-report-system-i.markdown
---
layout: post
title: "Report System Part I"
date: 2010-09-19 18:00:00
categories: programming technology-issues
---
About... | 16917e1b01076653bb0a22d6761d163f2354f367 | _posts/2010-09-19-report-system-i.markdown | _posts/2010-09-19-report-system-i.markdown | Markdown |
<|file_sep|>original/.travis.yml
language: python
python:
- "3.4"
- "3.5"
install:
- pip install .[dev]
script:
- python -m unittest discover tangled/web
- sphinx-build -E docs docs/_build
<|file_sep|>current/.travis.yml
language: python
python:
- "3.4"
- "3.5"
install:
- pip install .[dev]
script:
- ... | language: python
python:
- "3.4"
- "3.5"
- "3.6"
install:
- pip install .[dev]
script:
- python -m unittest discover tangled/web
- sphinx-build -E docs docs/_build | <|file_sep|>original/.travis.yml
language: python
python:
- "3.4"
- "3.5"
install:
- pip install .[dev]
script:
- python -m unittest discover tangled/web
- sphinx-build -E docs docs/_build
<|file_sep|>current/.travis.yml
language: python
python:
- "3.4"
- "3.5"
install:
- pip install .[dev]
script:
- ... | 7f575f0eb82679e14846965f73209c7dff9109aa | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/python-trezor-wine.sh
set -ev
test -d cython-hidapi || git clone https://github.com/trezor/cython-hidapi
(cd cython-hidapi; git pull; git submodule init; git submodule update)
test -d python-trezor || git clone https://github.com/akhavr/python-trezor
(cd python-trezor; git pull)
cat > ./.build-t... | set -ev
test -d cython-hidapi || git clone https://github.com/trezor/cython-hidapi
(cd cython-hidapi; git pull; git submodule init; git submodule update)
test -d python-trezor || git clone https://github.com/akhavr/python-trezor
(cd python-trezor; git pull)
cat > ./.build-trezor.sh <<EOF
wine python -m pip install -... | <|file_sep|>original/python-trezor-wine.sh
set -ev
test -d cython-hidapi || git clone https://github.com/trezor/cython-hidapi
(cd cython-hidapi; git pull; git submodule init; git submodule update)
test -d python-trezor || git clone https://github.com/akhavr/python-trezor
(cd python-trezor; git pull)
cat > ./.build-t... | 70bcfe3f2aa95870b00f6f1b2247e16c9cc57bc2 | python-trezor-wine.sh | python-trezor-wine.sh | Shell |
<|file_sep|>original/package.json
"repository": "dgraham/stache-bind",
"keywords": [
"binding",
"mustache",
"template"
],
"author": "David Graham",
"license": "MIT",
"bugs": "https://github.com/dgraham/stache-bind/issues",
"homepage": "https://github.com/dgraham/stache-bind",
"devDependencie... | "repository": "dgraham/stache-bind",
"keywords": [
"binding",
"mustache",
"template"
],
"author": "David Graham",
"license": "MIT",
"bugs": "https://github.com/dgraham/stache-bind/issues",
"homepage": "https://github.com/dgraham/stache-bind",
"main": "stache-bind.js",
"devDependencies": {
... | <|file_sep|>original/package.json
"repository": "dgraham/stache-bind",
"keywords": [
"binding",
"mustache",
"template"
],
"author": "David Graham",
"license": "MIT",
"bugs": "https://github.com/dgraham/stache-bind/issues",
"homepage": "https://github.com/dgraham/stache-bind",
"devDependencie... | 571d58b129f6b0bc96affed09cb3692f560bc200 | package.json | package.json | JSON |
<|file_sep|>original/README.md
# Advent of Code 2016
This is my attempt at fixing all [Advent Of Code](http://adventofcode.com/2016) challanges. i know, i know. Advent is quite some time ago now but what gives, it still seems like a fun challange to me. Also note that I'm new to [Rust](http://rust-lang.org) and I'm us... | # Advent of Code 2016
This is my attempt at fixing all [Advent Of Code](http://adventofcode.com/2016) challanges. i know, i know. Advent is quite some time ago now but what gives, it still seems like a fun challange to me. Also note that I'm new to [Rust](http://rust-lang.org) and I'm using these challanges to get fam... | <|file_sep|>original/README.md
# Advent of Code 2016
This is my attempt at fixing all [Advent Of Code](http://adventofcode.com/2016) challanges. i know, i know. Advent is quite some time ago now but what gives, it still seems like a fun challange to me. Also note that I'm new to [Rust](http://rust-lang.org) and I'm us... | f04feb3b502ea507ae83b55be61809c289c20625 | README.md | README.md | Markdown |
<|file_sep|>original/requirements_for_test.txt
-r requirements.txt
isort==4.3.4
pytest==3.10.1
pytest-env==0.6.2
pytest-mock==1.10.0
pytest-cov==2.6.0
pytest-xdist==1.25.0
coveralls==1.5.1
beautifulsoup4==4.7.0
freezegun==0.3.11
flake8==3.6.0
flake8-print==3.1.0
requests-mock==1.5.2
<|file_sep|>current/requirements_for... | -r requirements.txt
isort==4.3.4
pytest==3.10.1
pytest-env==0.6.2
pytest-mock==1.10.0
pytest-cov==2.6.1
pytest-xdist==1.25.0
coveralls==1.5.1
beautifulsoup4==4.7.0
freezegun==0.3.11
flake8==3.6.0
flake8-print==3.1.0
requests-mock==1.5.2 | <|file_sep|>original/requirements_for_test.txt
-r requirements.txt
isort==4.3.4
pytest==3.10.1
pytest-env==0.6.2
pytest-mock==1.10.0
pytest-cov==2.6.0
pytest-xdist==1.25.0
coveralls==1.5.1
beautifulsoup4==4.7.0
freezegun==0.3.11
flake8==3.6.0
flake8-print==3.1.0
requests-mock==1.5.2
<|file_sep|>current/requirements_for... | 4c62a1c0a74e83fba2fe4d1c800176cc6157f03b | requirements_for_test.txt | requirements_for_test.txt | Text |
<|file_sep|>original/src/test/java/io/dropwizard/discovery/client/DiscoveryClientManagerTest.java
<|file_sep|>current/src/test/java/io/dropwizard/discovery/client/DiscoveryClientManagerTest.java
<|file_sep|>updated/src/test/java/io/dropwizard/discovery/client/DiscoveryClientManagerTest.java | package io.dropwizard.discovery.client;
import org.junit.Test;
import static org.assertj.core.api.Assertions.failBecauseExceptionWasNotThrown;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
public class DiscoveryClientManagerTest {
@SuppressWarnings("unchecked")
DiscoveryC... | <|file_sep|>original/src/test/java/io/dropwizard/discovery/client/DiscoveryClientManagerTest.java
<|file_sep|>current/src/test/java/io/dropwizard/discovery/client/DiscoveryClientManagerTest.java
<|file_sep|>updated/src/test/java/io/dropwizard/discovery/client/DiscoveryClientManagerTest.java
package io.dropwizard.disc... | e4189b6355d451570de33e6541f2f7c99a01882f | src/test/java/io/dropwizard/discovery/client/DiscoveryClientManagerTest.java | src/test/java/io/dropwizard/discovery/client/DiscoveryClientManagerTest.java | Java |
<|file_sep|>original/spec/api_mock_spec.rb
it 'stores the used URL' do
url = 'https://example.com/test'
Discordrb::API.raw_request(:get, [url])
expect(Discordrb::API.last_url).to eq url
end
it 'parses the stored body using JSON' do
body = { test: 1 }
Discordrb::API.raw_request(:post, ['http... | Discordrb::API.raw_request(:post, ['https://example.com/test', body.to_json])
expect(Discordrb::API.last_body['test']).to eq 1
end
it "doesn't parse the body if there is none present" do
Discordrb::API.raw_request(:post, ['https://example.com/test', nil])
expect(Discordrb::API.last_body).to be_ni... | <|file_sep|>original/spec/api_mock_spec.rb
it 'stores the used URL' do
url = 'https://example.com/test'
Discordrb::API.raw_request(:get, [url])
expect(Discordrb::API.last_url).to eq url
end
it 'parses the stored body using JSON' do
body = { test: 1 }
Discordrb::API.raw_request(:post, ['http... | 5d98a5624f88e4c1e6a3d8710353f020b46cd702 | spec/api_mock_spec.rb | spec/api_mock_spec.rb | Ruby |
<|file_sep|>original/HTMLKit/CSSStructuralPseudoSelectors.h
extern CSSSelector * headerSelector();
extern CSSSelector * imageSelector();
extern CSSSelector * inputSelector();
extern CSSSelector * linkSelector();
extern CSSSelector * passwordSelector();
extern CSSSelector * radioSelector();
extern CSSSelector * resetSel... | extern CSSSelector * passwordSelector();
extern CSSSelector * radioSelector();
extern CSSSelector * resetSelector();
extern CSSSelector * submitSelector();
extern CSSSelector * textSelector();
extern CSSSelector * enabledSelector();
extern CSSSelector * disabledSelector();
extern CSSSelector * checkedSelector();
exter... | <|file_sep|>original/HTMLKit/CSSStructuralPseudoSelectors.h
extern CSSSelector * headerSelector();
extern CSSSelector * imageSelector();
extern CSSSelector * inputSelector();
extern CSSSelector * linkSelector();
extern CSSSelector * passwordSelector();
extern CSSSelector * radioSelector();
extern CSSSelector * resetSel... | 8d672cf0cf6df3dc43413663063e7309f30a93f6 | HTMLKit/CSSStructuralPseudoSelectors.h | HTMLKit/CSSStructuralPseudoSelectors.h | C |
<|file_sep|>.travis.yml.diff
original:
updated:
- '6.1'
- '5.11'
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- '0.12'
- '0.11'
- '0.10'
notifications:
hipchat:
rooms:
secure: NEyHK7ig2/c1zZllFlokyno2bi3smYqgY1HhOhXuYItqtPnvUPv4vY6DzfBMYT0gTNdA+v4UBpzrPBhEjP4oqsYbkFeOsioAYbcnuLFMHEpAN7x0uNlc... | language: node_js
node_js:
- '6.1'
- '5.11'
- '0.12'
- '0.11'
- '0.10' | <|file_sep|>.travis.yml.diff
original:
updated:
- '6.1'
- '5.11'
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- '0.12'
- '0.11'
- '0.10'
notifications:
hipchat:
rooms:
secure: NEyHK7ig2/c1zZllFlokyno2bi3smYqgY1HhOhXuYItqtPnvUPv4vY6DzfBMYT0gTNdA+v4UBpzrPBhEjP4oqsYbkFeOsioAYbcnuLFMHEpAN7x0uNlc... | 7377d72c79a405013688469a2a38f33fd15cd4fb | .travis.yml | .travis.yml | YAML |
<|file_sep|>haas/utils.py.diff
original:
import importlib
updated:
import haas
<|file_sep|>haas/utils.py.diff
original:
import haas
updated:
import sys
<|file_sep|>original/haas/utils.py
}
def configure_logging(level):
actual_level = LEVELS.get(level, logging.WARNING)
format_ = '%(asctime)s %(levelname)-8.8s... |
def configure_logging(level):
actual_level = LEVELS.get(level, logging.WARNING)
format_ = '%(asctime)s %(levelname)-8.8s [%(name)s:%(lineno)s] %(message)s'
formatter = logging.Formatter(format_)
handler = logging.StreamHandler()
handler.setFormatter(formatter)
handler.setLevel(actual_level)
... | <|file_sep|>haas/utils.py.diff
original:
import importlib
updated:
import haas
<|file_sep|>haas/utils.py.diff
original:
import haas
updated:
import sys
<|file_sep|>original/haas/utils.py
}
def configure_logging(level):
actual_level = LEVELS.get(level, logging.WARNING)
format_ = '%(asctime)s %(levelname)-8.8s... | 81880206be25cddc5d47a249eae3975e5070c3f0 | haas/utils.py | haas/utils.py | Python |
<|file_sep|>extensionloader.js.diff
original:
updated:
var getUrlParameter = function getUrlParameter(sParam) {
var sPageURL = decodeURIComponent(document.currentScript.src.split("?")[1]),
sURLVariables = sPageURL.split('&'),
sParameterName,
i;
for (i = 0; i < sURLVariables.le... | ],
url: 'http://www.warwick.ac.uk/tilesfortales'
};
ext._shutdown = function() {};
ext._getStatus = function() {
return {status: 2, msg: 'Device connected'}
};
ext.loadBlock = function(url) {
ScratchExtensions.loadExternalJS(url);
};
ScratchExtensions.register("exte... | <|file_sep|>extensionloader.js.diff
original:
updated:
var getUrlParameter = function getUrlParameter(sParam) {
var sPageURL = decodeURIComponent(document.currentScript.src.split("?")[1]),
sURLVariables = sPageURL.split('&'),
sParameterName,
i;
for (i = 0; i < sURLVariables.le... | 6ce99ce4acbed8c57b672706c4b26dfc063bb04b | extensionloader.js | extensionloader.js | JavaScript |
<|file_sep|>original/web_client/stylesheets/panels/drawWidget.styl
.h-element-label
margin-left 5px
.h-delete-element
float right
.h-element:hover
background-color #eee
.h-save-annotation
float right
.h-draw-widget
.h-draw-tools
.btn-group-sm>.btn
... |
.h-element:hover
background-color #eee
.h-save-annotation
float right
.h-draw-widget
.h-draw-tools
.btn-group-sm>.btn
padding-left 3px
padding-right 7px
.h-style-group-row
margin 10px 0
.btn-default.active
background-color #5790ff
&:focus, &:hover
background... | <|file_sep|>original/web_client/stylesheets/panels/drawWidget.styl
.h-element-label
margin-left 5px
.h-delete-element
float right
.h-element:hover
background-color #eee
.h-save-annotation
float right
.h-draw-widget
.h-draw-tools
.btn-group-sm>.btn
... | d2c36ef80371bd3aa5e7a3f3ffc6bcc1a0b2af84 | web_client/stylesheets/panels/drawWidget.styl | web_client/stylesheets/panels/drawWidget.styl | Stylus |
<|file_sep|>original/dev-requirements.txt
--editable .
cryptography==2.1.1
pynacl==1.1.2
six==1.11.0
tox==2.9.1
coveralls==1.2.0
coverage==4.4.1
<|file_sep|>current/dev-requirements.txt
--editable .
cryptography==2.1.1
pynacl==1.1.2
six==1.11.0
tox==2.9.1
coveralls==1.2.0
coverage==4.4.1
<|file_sep|>updated/dev-requi... | --editable .
cryptography==2.1.2
pynacl==1.1.2
six==1.11.0
tox==2.9.1
coveralls==1.2.0
coverage==4.4.1 | <|file_sep|>original/dev-requirements.txt
--editable .
cryptography==2.1.1
pynacl==1.1.2
six==1.11.0
tox==2.9.1
coveralls==1.2.0
coverage==4.4.1
<|file_sep|>current/dev-requirements.txt
--editable .
cryptography==2.1.1
pynacl==1.1.2
six==1.11.0
tox==2.9.1
coveralls==1.2.0
coverage==4.4.1
<|file_sep|>updated/dev-requi... | 71ab65948a4838a51b3016e6db22445868fe0728 | dev-requirements.txt | dev-requirements.txt | Text |
<|file_sep|>original/zuul.d/project.yaml
- project:
templates:
- openstack-python3-ussuri-jobs
- openstack-lower-constraints-jobs
- check-requirements
- publish-openstack-docs-pti
- release-notes-jobs-python3
check:
jobs:
- bifrost-integration-tinyipa-ubuntu-bionic
... | - project:
templates:
- openstack-python3-victoria-jobs
- openstack-lower-constraints-jobs
- check-requirements
- publish-openstack-docs-pti
- release-notes-jobs-python3
check:
jobs:
- bifrost-integration-tinyipa-ubuntu-bionic
- bifrost-integration-tinyipa-cen... | <|file_sep|>original/zuul.d/project.yaml
- project:
templates:
- openstack-python3-ussuri-jobs
- openstack-lower-constraints-jobs
- check-requirements
- publish-openstack-docs-pti
- release-notes-jobs-python3
check:
jobs:
- bifrost-integration-tinyipa-ubuntu-bionic
... | f1cbeddb94685967dbb09d243c2a5432152f834f | zuul.d/project.yaml | zuul.d/project.yaml | YAML |
<|file_sep|>appveyor.yml.diff
original:
- dotnet msbuild /t:Restore,Pack /p:PackageOutputPath=.\artifacts
updated:
- dotnet msbuild /t:Restore,Pack /p:PackageOutputPath=$(appveyor_build_folder)\artifacts
<|file_sep|>original/appveyor.yml
version: "{build}"
configuration: Release
image: Visual Studio 2017
install:
... | version: "{build}"
configuration: Release
image: Visual Studio 2017
install:
- ps: choco install gitversion.portable -pre -y -r
before_build:
- dotnet restore
- ps: gitversion /l console /output buildserver
build:
verbosity: minimal
after_build:
- dotnet msbuild /t:Restore,Pack /p:PackageOutputPath=$(appveyor... | <|file_sep|>appveyor.yml.diff
original:
- dotnet msbuild /t:Restore,Pack /p:PackageOutputPath=.\artifacts
updated:
- dotnet msbuild /t:Restore,Pack /p:PackageOutputPath=$(appveyor_build_folder)\artifacts
<|file_sep|>original/appveyor.yml
version: "{build}"
configuration: Release
image: Visual Studio 2017
install:
... | 9c4952d828d4379f5705146f12f89c76d3638496 | appveyor.yml | appveyor.yml | YAML |
<|file_sep|>src/main.cpp.diff
original:
updated:
QString getUserName()
{
QString name = qgetenv("USER");
if (name.isEmpty())
name = qgetenv("USERNAME");
return name;
}
<|file_sep|>original/src/main.cpp
#include <QApplication>
#include "mainwindow.h"
#include "runguard.h"
int main(int argc, cha... | QString name = qgetenv("USER");
if (name.isEmpty())
name = qgetenv("USERNAME");
return name;
}
int main(int argc, char **argv)
{
RunGuard guard(getUserName() + "-doer-UwNDcyZjc6MjE1tN2Ma3NGIf5OGx");
if (!guard.tryToRun())
return 0;
QApplication a(argc, argv);
MainWindow ... | <|file_sep|>src/main.cpp.diff
original:
updated:
QString getUserName()
{
QString name = qgetenv("USER");
if (name.isEmpty())
name = qgetenv("USERNAME");
return name;
}
<|file_sep|>original/src/main.cpp
#include <QApplication>
#include "mainwindow.h"
#include "runguard.h"
int main(int argc, cha... | a59c479e03a288ae157b9a79c4321ebc7df69654 | src/main.cpp | src/main.cpp | C++ |
<|file_sep|>original/requirements/prod.txt
# Octave interaction
scipy==1.2.1
numpy==1.16.3
octave-kernel==0.28.4
ipython==5.4.1 # pyup: ignore
# Octave packages
sympy==1.4
# Database
SQLAlchemy==1.3.3
Flask-SQLAlchemy==2.3.2
# App management
Flask-Migrate==2.4.0
Flask-Script==2.0.6
honcho==1.0.1
-e git://github.com/... | # Octave interaction
scipy==1.2.1
numpy==1.16.3
octave-kernel==0.28.4
ipython==5.4.1 # pyup: ignore
# Octave packages
sympy==1.4
# Database
SQLAlchemy==1.3.3
Flask-SQLAlchemy==2.4.0
# App management
Flask-Migrate==2.4.0
Flask-Script==2.0.6
honcho==1.0.1
-e git://github.com/benwilber/honcho-export-systemd.git@27c5ec1... | <|file_sep|>original/requirements/prod.txt
# Octave interaction
scipy==1.2.1
numpy==1.16.3
octave-kernel==0.28.4
ipython==5.4.1 # pyup: ignore
# Octave packages
sympy==1.4
# Database
SQLAlchemy==1.3.3
Flask-SQLAlchemy==2.3.2
# App management
Flask-Migrate==2.4.0
Flask-Script==2.0.6
honcho==1.0.1
-e git://github.com/... | 3806faecc82b97b91f640a930c3a6c38da18f677 | requirements/prod.txt | requirements/prod.txt | Text |
<|file_sep|>SocketHelper.cs.diff
original:
public static Socket Client(string remoteHost, int port)
updated:
public static Socket Client(string remoteHost, int port, int timeout=Timeout.Infinite)
<|file_sep|>original/SocketHelper.cs
{
var s = new Socket(AddressFamily.InterNetwork, So... | {
var s = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
s.Bind(new IPEndPoint(IPAddress.Any, port));
s.Listen(listenQueue);
return s;
}
public static Socket Client(string remoteHost, int port, int timeout=Timeout.Inf... | <|file_sep|>SocketHelper.cs.diff
original:
public static Socket Client(string remoteHost, int port)
updated:
public static Socket Client(string remoteHost, int port, int timeout=Timeout.Infinite)
<|file_sep|>original/SocketHelper.cs
{
var s = new Socket(AddressFamily.InterNetwork, So... | b9944cce53442e8dc34bf55c49b22fc55ccbd9a9 | SocketHelper.cs | SocketHelper.cs | C# |
<|file_sep|>original/package.json
{
"name": "cie-calculator",
"version": "0.1.13",
"description": "Easily generate CIE References",
"main": "main.js",
"dependencies": {
"underscore": "~1.8.0"
},
"devDependencies": {
"mocha": "*",
"should": "*",
"supertest": "*",
"underscore": "~1.8.0",... | {
"name": "cie-calculator",
"version": "0.1.14",
"description": "Easily generate CIE References",
"main": "main.js",
"dependencies": {
"underscore": "~1.8.0"
},
"devDependencies": {
"mocha": "*",
"should": "*",
"supertest": "*",
"underscore": "~1.8.0",
"watchify": "^2.1.1"
},
"... | <|file_sep|>original/package.json
{
"name": "cie-calculator",
"version": "0.1.13",
"description": "Easily generate CIE References",
"main": "main.js",
"dependencies": {
"underscore": "~1.8.0"
},
"devDependencies": {
"mocha": "*",
"should": "*",
"supertest": "*",
"underscore": "~1.8.0",... | e5b77f844d81bc29b18ab66306237f8cdc3d4f8e | package.json | package.json | JSON |
<|file_sep|>original/src/MediaBundle/Resources/public/app/modal/modal.js
} else {
document.getElementsByTagName("body")[0].style.overflow = "";
}
if ((!newVal && oldVal) && (scope.onClose != null)) {
return scope.onClose();
... | } else {
document.getElementsByTagName("body")[0].style.overflow = "";
}
if ((!newVal && oldVal) && (scope.onClose != null)) {
return scope.onClose();
}
});
scope.closeButtonHtml = $sce.trust... | <|file_sep|>original/src/MediaBundle/Resources/public/app/modal/modal.js
} else {
document.getElementsByTagName("body")[0].style.overflow = "";
}
if ((!newVal && oldVal) && (scope.onClose != null)) {
return scope.onClose();
... | 3c084aad12ea2fd1484d4335dfd6d42757835119 | src/MediaBundle/Resources/public/app/modal/modal.js | src/MediaBundle/Resources/public/app/modal/modal.js | JavaScript |
<|file_sep|>original/README.md
Ansible: NGINX Webserver
=======================
Ansible playbook to provision a single nginx webserver.
It provisions a `web` node in the `webservers` group with the following nginx configuration declared in `group_vars/webservers.yml`:
nginx_user: "nginx"
nginx_vhosts:
... | Ansible: NGINX Webserver
=======================
Ansible playbook to provision nginx webservers.
It provisions a `web` node in the `webservers` group with the following nginx configuration declared in `group_vars/webservers.yml`:
nginx_user: "nginx"
nginx_vhosts:
+ listen: "80 default_server"
s... | <|file_sep|>original/README.md
Ansible: NGINX Webserver
=======================
Ansible playbook to provision a single nginx webserver.
It provisions a `web` node in the `webservers` group with the following nginx configuration declared in `group_vars/webservers.yml`:
nginx_user: "nginx"
nginx_vhosts:
... | 1680915c4a50a71b2c0493eef84011f9dc298ccf | README.md | README.md | Markdown |
<|file_sep|>original/package.json
"MathJax Consortium <info@mathjax.org> (http://www.mathjax.org)"
],
"bugs": {
"url": "http://github.com/mathjax/MathJax-node/issues"
},
"license": {
"type": "Apache",
"url": "http://github.com/mathjax/MathJax-node/blob/master/LICENSE"
... | "MathJax Consortium <info@mathjax.org> (http://www.mathjax.org)"
],
"bugs": {
"url": "http://github.com/mathjax/MathJax-node/issues"
},
"license": {
"type": "Apache",
"url": "http://github.com/mathjax/MathJax-node/blob/master/LICENSE"
},
"repository": {
"t... | <|file_sep|>original/package.json
"MathJax Consortium <info@mathjax.org> (http://www.mathjax.org)"
],
"bugs": {
"url": "http://github.com/mathjax/MathJax-node/issues"
},
"license": {
"type": "Apache",
"url": "http://github.com/mathjax/MathJax-node/blob/master/LICENSE"
... | 04e4e2235cd933acc8f5c1cdb6bbd6c1247d5203 | package.json | package.json | JSON |
<|file_sep|>original/lib/scss_lint/reporter/xml_reporter.rb
# Reports lints in an XML format.
class Reporter::XMLReporter < Reporter
def report_lints
output = '<?xml version="1.0" encoding="utf-8"?>'
output << '<lint>'
lints.group_by(&:filename).each do |filename, file_lints|
output <... | # Reports lints in an XML format.
class Reporter::XMLReporter < Reporter
def report_lints
output = '<?xml version="1.0" encoding="utf-8"?>'
output << '<lint>'
lints.group_by(&:filename).each do |filename, file_lints|
output << "<file name=#{filename.encode(xml: :attr)}>"
file... | <|file_sep|>original/lib/scss_lint/reporter/xml_reporter.rb
# Reports lints in an XML format.
class Reporter::XMLReporter < Reporter
def report_lints
output = '<?xml version="1.0" encoding="utf-8"?>'
output << '<lint>'
lints.group_by(&:filename).each do |filename, file_lints|
output <... | 9c3be6dc8e289ff7cbf738022306643fab8eb88c | lib/scss_lint/reporter/xml_reporter.rb | lib/scss_lint/reporter/xml_reporter.rb | Ruby |
<|file_sep|>agateremote/table_remote.py.diff
original:
def from_url(cls, url, callback=agate.Table.from_csv, binary=False, **kwargs):
updated:
def from_url(cls, url, callback=agate.Table.from_csv, requests_encoding=None, binary=False, **kwargs):
<|file_sep|>agateremote/table_remote.py.diff
original:
updated:
:para... | it could also be a method provided by an extension.
:param requests_encoding:
An encoding to pass to requests for use when decoding the response
content. (e.g. force use of 'utf-8-sig' when CSV has a BOM).
:param binary:
If :code:`False` the downloaded data will be processed as a... | <|file_sep|>agateremote/table_remote.py.diff
original:
def from_url(cls, url, callback=agate.Table.from_csv, binary=False, **kwargs):
updated:
def from_url(cls, url, callback=agate.Table.from_csv, requests_encoding=None, binary=False, **kwargs):
<|file_sep|>agateremote/table_remote.py.diff
original:
updated:
:para... | 3875b14e6c94c4a6a7ad47a3eb55cae62096d0e4 | agateremote/table_remote.py | agateremote/table_remote.py | Python |
<|file_sep|>original/app/views/udl_modules_dashboard/index.html.erb
<% content_for :title, "#{current_user.first_name}'s current modules" %>
<div id="content-wrapper">
<div id="single-column-wrapper">
<div id="content">
<h1>UDL Module Dashboard</h1>
<p>
<%= link_to "Create a new UDL Module of ... | <% content_for :title, "#{current_user.first_name}'s current modules" %>
<div id="content-wrapper">
<div id="single-column-wrapper">
<div id="content">
<h1>UDL Module Dashboard</h1>
<p>
<%= link_to "Create a new UDL Module of Case Study", new_udl_module_path %>
</p>
<h2>My Currentl... | <|file_sep|>original/app/views/udl_modules_dashboard/index.html.erb
<% content_for :title, "#{current_user.first_name}'s current modules" %>
<div id="content-wrapper">
<div id="single-column-wrapper">
<div id="content">
<h1>UDL Module Dashboard</h1>
<p>
<%= link_to "Create a new UDL Module of ... | 77567e2596a9320445674a75bc0948071bcb22a2 | app/views/udl_modules_dashboard/index.html.erb | app/views/udl_modules_dashboard/index.html.erb | HTML+ERB |
<|file_sep|>.travis.yml.diff
original:
- 2.7.0-preview1
- 2.6.3
- 2.5.5
updated:
- 2.7.1
- 2.6.6
- 2.5.8
<|file_sep|>original/.travis.yml
- 2.5.5
addons:
postgresql: 9.4
gemfile:
- gemfiles/rails_5.0.gemfile
- gemfiles/rails_5.1.gemfile
- gemfiles/rails_5.2.gemfile
- gemfiles/rails_6.0.gemfile
m... | - 2.5.8
addons:
postgresql: 9.4
gemfile:
- gemfiles/rails_5.0.gemfile
- gemfiles/rails_5.1.gemfile
- gemfiles/rails_5.2.gemfile
- gemfiles/rails_6.0.gemfile
matrix:
include:
- rvm: 2.6.6
gemfile: gemfiles/rails_5.2.gemfile
env: DB=mariadb
addons:
mariadb: '10.4'
before_... | <|file_sep|>.travis.yml.diff
original:
- 2.7.0-preview1
- 2.6.3
- 2.5.5
updated:
- 2.7.1
- 2.6.6
- 2.5.8
<|file_sep|>original/.travis.yml
- 2.5.5
addons:
postgresql: 9.4
gemfile:
- gemfiles/rails_5.0.gemfile
- gemfiles/rails_5.1.gemfile
- gemfiles/rails_5.2.gemfile
- gemfiles/rails_6.0.gemfile
m... | 817e926dfba052ea6960ee806c7fee10dbd7ea52 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/recipes-bsp/pktlib/pktlib_git.bb
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://${WORKDIR}/git/COPYING.txt;md5=b7982a377c680ad71ca2fbb735982462"
DEPENDS = "common-csl-ip rm-lld qmss-lld cppi-lld"
COMPATIBLE_MACHINE = "keystone"
BRANCH = "master"
SRC_URI = "git://git.ti.com/keystone-rtos/pktl... | LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://${WORKDIR}/git/COPYING.txt;md5=b7982a377c680ad71ca2fbb735982462"
DEPENDS = "common-csl-ip rm-lld qmss-lld cppi-lld"
COMPATIBLE_MACHINE = "keystone"
BRANCH = "master"
SRC_URI = "git://git.ti.com/keystone-rtos/pktlib.git;protocol=git;branch=${BRANCH}"
# Corresponds t... | <|file_sep|>original/recipes-bsp/pktlib/pktlib_git.bb
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://${WORKDIR}/git/COPYING.txt;md5=b7982a377c680ad71ca2fbb735982462"
DEPENDS = "common-csl-ip rm-lld qmss-lld cppi-lld"
COMPATIBLE_MACHINE = "keystone"
BRANCH = "master"
SRC_URI = "git://git.ti.com/keystone-rtos/pktl... | 8dd503d20f908d4b56e92fc970000d37d143f769 | recipes-bsp/pktlib/pktlib_git.bb | recipes-bsp/pktlib/pktlib_git.bb | BitBake |
<|file_sep|>addon/components/google-maps-addon.js.diff
original:
setupMapElement: Ember.on('willInsertElement', function() {
updated:
setupMapElement: Ember.on('didInsertElement', function() {
<|file_sep|>addon/components/google-maps-addon.js.diff
original:
if (window.google) {
this.set('mapElement', this... | setupMapElement: Ember.on('didInsertElement', function() {
this.map.initializeOptions();
// Checking for the availability of Google Maps JavaScript SDK, the hero
Ember.run.later(() => {
if (window.google) {
this.set('mapElement', this.map.createMapElement());
this.updateMapOptions(... | <|file_sep|>addon/components/google-maps-addon.js.diff
original:
setupMapElement: Ember.on('willInsertElement', function() {
updated:
setupMapElement: Ember.on('didInsertElement', function() {
<|file_sep|>addon/components/google-maps-addon.js.diff
original:
if (window.google) {
this.set('mapElement', this... | b3eae251fac261eb3d903c056ebf4e6da531f174 | addon/components/google-maps-addon.js | addon/components/google-maps-addon.js | JavaScript |
<|file_sep|>original/gradle/wrapper/gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-rc-2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
<|file_sep|>current/gradle/wrapper/gradle-wrapper.pro... | distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists | <|file_sep|>original/gradle/wrapper/gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-rc-2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
<|file_sep|>current/gradle/wrapper/gradle-wrapper.pro... | dd85d98b4a7155bea7b12f54dc0b1932e73da2fb | gradle/wrapper/gradle-wrapper.properties | gradle/wrapper/gradle-wrapper.properties | INI |
<|file_sep|>original/callcredit.gemspec
require File.expand_path('../lib/callcredit/version', __FILE__)
Gem::Specification.new do |gem|
gem.add_runtime_dependency 'faraday_middleware', '>= 0.8.2', '< 0.14'
gem.add_runtime_dependency 'multi_xml', '>= 0.5.1', '< 0.7.0'
gem.add_runtime_dependency 'nokogi... | require File.expand_path('../lib/callcredit/version', __FILE__)
Gem::Specification.new do |gem|
gem.add_runtime_dependency 'faraday_middleware', '>= 0.8.2', '< 0.14'
gem.add_runtime_dependency 'multi_xml', '>= 0.5.1', '< 0.7.0'
gem.add_runtime_dependency 'nokogiri', '~> 1.4'
gem.add_runti... | <|file_sep|>original/callcredit.gemspec
require File.expand_path('../lib/callcredit/version', __FILE__)
Gem::Specification.new do |gem|
gem.add_runtime_dependency 'faraday_middleware', '>= 0.8.2', '< 0.14'
gem.add_runtime_dependency 'multi_xml', '>= 0.5.1', '< 0.7.0'
gem.add_runtime_dependency 'nokogi... | c2288ea6097202d95c4180620a50790678d3227d | callcredit.gemspec | callcredit.gemspec | Ruby |
<|file_sep|>original/assets/js/profile-index.js
if (calc > '1') {
header.css({ 'opacity': 1 });
navbar.addClass('affix-top');
navbar.removeClass('affix');
} else if ( calc < '0' ) {
header.css({ 'opacity': 0 });
navbar.addClass('affix');
navbar.removeClass('affix-top');
... | if (calc > '1') {
header.css({ 'opacity': 1 });
navbar.addClass('affix-top');
navbar.removeClass('affix');
} else if ( calc < '0' ) {
header.css({ 'opacity': 0 });
navbar.addClass('affix');
navbar.removeClass('affix-top');
}
});
// Materialize components
// =======... | <|file_sep|>original/assets/js/profile-index.js
if (calc > '1') {
header.css({ 'opacity': 1 });
navbar.addClass('affix-top');
navbar.removeClass('affix');
} else if ( calc < '0' ) {
header.css({ 'opacity': 0 });
navbar.addClass('affix');
navbar.removeClass('affix-top');
... | 694ae32b7f74402bddd4d14e8f2b492776e6c66b | assets/js/profile-index.js | assets/js/profile-index.js | JavaScript |
<|file_sep|>original/test/unit/SessionTokenStoreTest.php
class SessionTokenStoreTest extends TestCase {
public function testSaveTokenWhenEmpty() {
$tokenToSet = uniqid();
$session = self::createMock(SessionStore::class);
$session->method("get")
->willReturn([]);
$session->expects($this->once())
->meth... | ->method("set")
->with(
SessionTokenStore::SESSION_KEY,
[$tokenToSet => null]
);
/** @var SessionStore $session */
$sessionTokenStore = new SessionTokenStore($session);
$sessionTokenStore->saveToken($tokenToSet);
}
public function testSaveTokenWhenNotEmpty() {
$tokenToSet = uniqid("new-", t... | <|file_sep|>original/test/unit/SessionTokenStoreTest.php
class SessionTokenStoreTest extends TestCase {
public function testSaveTokenWhenEmpty() {
$tokenToSet = uniqid();
$session = self::createMock(SessionStore::class);
$session->method("get")
->willReturn([]);
$session->expects($this->once())
->meth... | 1bfaf2d886598e389998f8795cd42a30b0a2cd97 | test/unit/SessionTokenStoreTest.php | test/unit/SessionTokenStoreTest.php | PHP |
<|file_sep|>original/console/README.md
<|file_sep|>current/console/README.md
<|file_sep|>updated/console/README.md | ## Web Console
This is the old, GXT-based web console, if you are looking for the new, Patternfly web console
please see the branch `impl-consoleV2`.
### Running locally
It is possible to run the web console locally by starting the docker containers `kapua-sql`, `kapua-broker` and `kapua-elasticsearch` according to ... | <|file_sep|>original/console/README.md
<|file_sep|>current/console/README.md
<|file_sep|>updated/console/README.md
## Web Console
This is the old, GXT-based web console, if you are looking for the new, Patternfly web console
please see the branch `impl-consoleV2`.
### Running locally
It is possible to run the web ... | 46579d874208900afa2c870ef0292c0a7715eac3 | console/README.md | console/README.md | Markdown |
<|file_sep|>original/src/dr/inference/operators/MultipleRandomWalkIntegerOperator.java
<|file_sep|>current/src/dr/inference/operators/MultipleRandomWalkIntegerOperator.java
<|file_sep|>updated/src/dr/inference/operators/MultipleRandomWalkIntegerOperator.java | package dr.inference.operators;
import dr.inference.model.Parameter;
import dr.math.MathUtils;
import dr.xml.*;
/**
* @author Chieh-Hsi Wu
* Operator that performs independent random walks on k elements in a parameter
*/
public class MultipleRandomWalkIntegerOperator extends RandomWalkIntegerOperator{
public s... | <|file_sep|>original/src/dr/inference/operators/MultipleRandomWalkIntegerOperator.java
<|file_sep|>current/src/dr/inference/operators/MultipleRandomWalkIntegerOperator.java
<|file_sep|>updated/src/dr/inference/operators/MultipleRandomWalkIntegerOperator.java
package dr.inference.operators;
import dr.inference.model.... | 8f27e48554194dad47323a2a596812f72e40381c | src/dr/inference/operators/MultipleRandomWalkIntegerOperator.java | src/dr/inference/operators/MultipleRandomWalkIntegerOperator.java | Java |
<|file_sep|>original/molo/profiles/migrations/0002_userprofile_auth_service_uuid.py
<|file_sep|>current/molo/profiles/migrations/0002_userprofile_auth_service_uuid.py
<|file_sep|>updated/molo/profiles/migrations/0002_userprofile_auth_service_uuid.py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-05-17 16:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('profiles', '0001_squashed_0021_remove_uuid_null'),
]
operations = [
migrat... | <|file_sep|>original/molo/profiles/migrations/0002_userprofile_auth_service_uuid.py
<|file_sep|>current/molo/profiles/migrations/0002_userprofile_auth_service_uuid.py
<|file_sep|>updated/molo/profiles/migrations/0002_userprofile_auth_service_uuid.py
# -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-05-17 ... | eac05b2e29b667fe80ba925b723d8133970725ac | molo/profiles/migrations/0002_userprofile_auth_service_uuid.py | molo/profiles/migrations/0002_userprofile_auth_service_uuid.py | Python |
<|file_sep|>original/manifest.json
"browser_action": {
"default_icon": "icon.png",
"default_popup": "popup.html"
},
"permissions": [
"activeTab",
"storage",
"*://www.fanfiction.net/s/*",
"*://www.fanfiction.net/u/*",
"*://www.fanfiction.net/alert/*",
... | "browser_action": {
"default_icon": "icon.png",
"default_popup": "popup.html"
},
"permissions": [
"activeTab",
"storage",
"*://www.fanfiction.net/s/*",
"*://www.fanfiction.net/u/*",
"*://www.fanfiction.net/alert/*",
"*://www.fanfiction.net/favo... | <|file_sep|>original/manifest.json
"browser_action": {
"default_icon": "icon.png",
"default_popup": "popup.html"
},
"permissions": [
"activeTab",
"storage",
"*://www.fanfiction.net/s/*",
"*://www.fanfiction.net/u/*",
"*://www.fanfiction.net/alert/*",
... | 054022a8febedfe295a416b3cfe5bb32b86a3183 | manifest.json | manifest.json | JSON |
<|file_sep|>original/Tests/ObserveTests/WhenRunningTestsFromATestObject.swift
<|file_sep|>current/Tests/ObserveTests/WhenRunningTestsFromATestObject.swift
<|file_sep|>updated/Tests/ObserveTests/WhenRunningTestsFromATestObject.swift | //
// WhenRunningTestsFromATestObject.swift
// Observe
//
// Created by Sam Meech-Ward on 2016-12-09.
//
//
@testable import Observe
import XCTest
class WhenRunningTestsFromATestObject: XCTestCase {
var observeTest: ObserveTest!
override func setUp() {
super.setUp()
// Put setup code h... | <|file_sep|>original/Tests/ObserveTests/WhenRunningTestsFromATestObject.swift
<|file_sep|>current/Tests/ObserveTests/WhenRunningTestsFromATestObject.swift
<|file_sep|>updated/Tests/ObserveTests/WhenRunningTestsFromATestObject.swift
//
// WhenRunningTestsFromATestObject.swift
// Observe
//
// Created by Sam Meech-W... | c74a686a9371b455021e47c2b5e75ad7c09e5855 | Tests/ObserveTests/WhenRunningTestsFromATestObject.swift | Tests/ObserveTests/WhenRunningTestsFromATestObject.swift | Swift |
<|file_sep|>original/test.base/test/java/test/base/PropertiesTests.java
<|file_sep|>current/test.base/test/java/test/base/PropertiesTests.java
<|file_sep|>updated/test.base/test/java/test/base/PropertiesTests.java | package test.base;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.io.StringReader;
import java.util.Properties;
import org.junit.jupiter.api.Test;
class PropertiesTests {
@Test
void loadMultiLineValuesFromTextBlock() throws Exception {
var expected =
"""
1
2... | <|file_sep|>original/test.base/test/java/test/base/PropertiesTests.java
<|file_sep|>current/test.base/test/java/test/base/PropertiesTests.java
<|file_sep|>updated/test.base/test/java/test/base/PropertiesTests.java
package test.base;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.io.StringR... | 8715e778c29b347212dcf01c857584e3a677a7ca | test.base/test/java/test/base/PropertiesTests.java | test.base/test/java/test/base/PropertiesTests.java | Java |
<|file_sep|>original/requirements.txt
flask-sqlalchemy==2.5.1
hiredis==2.0.0
itsdangerous==2.0.1
jinja2==3.0.3
markupsafe==2.0.1
marrow.mailer==4.0.3
marrow.util==1.2.3
marshmallow==3.14.1
mistletoe==0.8.1
pillow==9.0.0
psycopg2-binary==2.9.3
qrcode==7.3.1
redis==4.1.0
requests==2.27.1
rq==1.10.1
rq-dashboard==0.6.1
rt... | flask-sqlalchemy==2.5.1
hiredis==2.0.0
itsdangerous==2.0.1
jinja2==3.0.3
markupsafe==2.0.1
marrow.mailer==4.0.3
marrow.util==1.2.3
marshmallow==3.14.1
mistletoe==0.8.1
pillow==9.0.0
psycopg2-binary==2.9.3
qrcode==7.3.1
redis==4.1.1
requests==2.27.1
rq==1.10.1
rq-dashboard==0.6.1
rtoml==0.7.1
sqlalchemy==1.4.29
tenacity... | <|file_sep|>original/requirements.txt
flask-sqlalchemy==2.5.1
hiredis==2.0.0
itsdangerous==2.0.1
jinja2==3.0.3
markupsafe==2.0.1
marrow.mailer==4.0.3
marrow.util==1.2.3
marshmallow==3.14.1
mistletoe==0.8.1
pillow==9.0.0
psycopg2-binary==2.9.3
qrcode==7.3.1
redis==4.1.0
requests==2.27.1
rq==1.10.1
rq-dashboard==0.6.1
rt... | 2cb5bf47c86d960d0c25b62914cf37717294e367 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/opentreemap/treemap/fixtures/development_data.json
[{"pk": 1, "model": "treemap.user", "fields": {"username": "vagrant", "first_name": "", "last_name": "", "is_active": true, "is_superuser": true, "is_staff": true, "last_login": "2013-03-11T19:18:10.812Z", "groups": [], "user_permissions": [], "pas... | [{"pk": 1, "model": "treemap.role", "fields": {"name": "default role", "instance": 1, "rep_thresh": 0}}, {"pk": 1, "model": "treemap.user", "fields": {"username": "vagrant", "first_name": "", "last_name": "", "is_active": true, "is_superuser": true, "is_staff": true, "last_login": "2013-03-11T19:18:10.812Z", "groups": ... | <|file_sep|>original/opentreemap/treemap/fixtures/development_data.json
[{"pk": 1, "model": "treemap.user", "fields": {"username": "vagrant", "first_name": "", "last_name": "", "is_active": true, "is_superuser": true, "is_staff": true, "last_login": "2013-03-11T19:18:10.812Z", "groups": [], "user_permissions": [], "pas... | e639d3963aac64224e72a6c92deefb47a408eddb | opentreemap/treemap/fixtures/development_data.json | opentreemap/treemap/fixtures/development_data.json | JSON |
<|file_sep|>original/README.md
# Persistent Websocket
An automatically-reconnecting websocket wrapper that respects server reachability and good backoff practices
## Features
* [umd](https://github.com/umdjs/umd) / universal library
## License
MIT
<|file_sep|>current/README.md
# Persistent Websocket
An automatical... | [](https://travis-ci.org/phound-inc/persistent-websocket)
# Persistent Websocket
An automatically-reconnecting websocket wrapper that respects server reachability and good backoff practices
## Features
* [umd](https://github.com... | <|file_sep|>original/README.md
# Persistent Websocket
An automatically-reconnecting websocket wrapper that respects server reachability and good backoff practices
## Features
* [umd](https://github.com/umdjs/umd) / universal library
## License
MIT
<|file_sep|>current/README.md
# Persistent Websocket
An automatical... | 9a4f831206513cdd2f61b34f6a6b24665b1d3a26 | README.md | README.md | Markdown |
<|file_sep|>lib/hacks/animation.js.diff
original:
return !decl.value.split(/\s+/).find(i => {
updated:
let found = false;
decl.value.split(/\s+/).forEach(i => {
<|file_sep|>lib/hacks/animation.js.diff
original:
return lower === 'reverse' || lower === 'alternate-reverse';
updated:
... |
/**
* Don’t add prefixes for modern values.
*/
check(decl) {
let found = false;
decl.value.split(/\s+/).forEach(i => {
const lower = i.toLowerCase();
if (lower === 'reverse' || lower === 'alternate-reverse') {
found = true;
retur... | <|file_sep|>lib/hacks/animation.js.diff
original:
return !decl.value.split(/\s+/).find(i => {
updated:
let found = false;
decl.value.split(/\s+/).forEach(i => {
<|file_sep|>lib/hacks/animation.js.diff
original:
return lower === 'reverse' || lower === 'alternate-reverse';
updated:
... | b8cbd673b81360214c3bb4d597b83639aca0027f | lib/hacks/animation.js | lib/hacks/animation.js | JavaScript |
<|file_sep|>original/provision/roles/core/tasks/oh_my_zsh.yml
---
# https://gist.github.com/tsabat/1498393
- name: See if zsh is installed
stat: path=~/.oh-my-zsh
register: zsh_installed
- name: zsh
apt: pkg=zsh
become: true
- name: install oh my zsh
shell: wget https://github.com/robbyrussell/oh-my-zsh/raw/m... | ---
# https://gist.github.com/tsabat/1498393
- name: See if zsh is installed
stat: path=~/.oh-my-zsh
register: zsh_installed
- name: zsh
apt: pkg=zsh
become: true
- name: install oh my zsh
shell: wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
when: not zsh_installed.st... | <|file_sep|>original/provision/roles/core/tasks/oh_my_zsh.yml
---
# https://gist.github.com/tsabat/1498393
- name: See if zsh is installed
stat: path=~/.oh-my-zsh
register: zsh_installed
- name: zsh
apt: pkg=zsh
become: true
- name: install oh my zsh
shell: wget https://github.com/robbyrussell/oh-my-zsh/raw/m... | 5447224bcfc71e6518ab72e0477958e028a72d26 | provision/roles/core/tasks/oh_my_zsh.yml | provision/roles/core/tasks/oh_my_zsh.yml | YAML |
<|file_sep|>spec/eval_spec.rb.diff
original:
describe "special forms" do
it "def defines values in the environment" do
Lasp::execute("(def five 5)")
updated:
it "def defines values in the environment" do
Lasp::execute("(def five 5)")
<|file_sep|>spec/eval_spec.rb.diff
original:
expec... |
it "def can define functions" do
Lasp::execute("(def inc (fn (x) (+ x 1)))")
expect(Lasp::execute("(inc 1)")).to eq 2
end
it "begin executes multiple statements" do
allow(STDOUT).to receive(:puts)
Lasp::execute("(begin (println 1) (println 2))")
expect(STDOUT).to have_receiv... | <|file_sep|>spec/eval_spec.rb.diff
original:
describe "special forms" do
it "def defines values in the environment" do
Lasp::execute("(def five 5)")
updated:
it "def defines values in the environment" do
Lasp::execute("(def five 5)")
<|file_sep|>spec/eval_spec.rb.diff
original:
expec... | 1d7f08c0b3bc66fb57dbd127baa56abcdcb1badf | spec/eval_spec.rb | spec/eval_spec.rb | Ruby |
<|file_sep|>original/insights.php
/*
Plugin Name: New Relic Insights attributes for WordPress
Plugin URI: http://newrelic.com
Description: This plugin adds Insights attributes for logged in users.
Author: New Relic
Version: 0.1
Author URI: http://newrelic.com
*/
function add_newrelic_insights_attributes() {
if ( is_... | /*
Plugin Name: New Relic Insights attributes for WordPress
Plugin URI: http://newrelic.com
Description: This plugin adds Insights attributes for logged in users.
Author: New Relic
Version: 0.1
Author URI: http://newrelic.com
*/
function add_newrelic_insights_attributes() {
if (!function_exists("newrelic_add_custom_... | <|file_sep|>original/insights.php
/*
Plugin Name: New Relic Insights attributes for WordPress
Plugin URI: http://newrelic.com
Description: This plugin adds Insights attributes for logged in users.
Author: New Relic
Version: 0.1
Author URI: http://newrelic.com
*/
function add_newrelic_insights_attributes() {
if ( is_... | b5396813a2c87e89994fc9ea891ff83bdb1230c9 | insights.php | insights.php | PHP |
<|file_sep|>activerecord/lib/active_record/relation/predicate_builder/array_handler.rb.diff
original:
updated:
nils, values = values.partition(&:nil?)
<|file_sep|>activerecord/lib/active_record/relation/predicate_builder/array_handler.rb.diff
original:
values_predicate = if values.include?(nil)
... | when 1 then attribute.eq(values.first)
else attribute.in(values)
end
unless nils.empty?
values_predicate = values_predicate.or(attribute.eq(nil))
end
array_predicates = ranges.map { |range| attribute.in(range) }
array_predicates << values_predica... | <|file_sep|>activerecord/lib/active_record/relation/predicate_builder/array_handler.rb.diff
original:
updated:
nils, values = values.partition(&:nil?)
<|file_sep|>activerecord/lib/active_record/relation/predicate_builder/array_handler.rb.diff
original:
values_predicate = if values.include?(nil)
... | 2f0956cde5b27dc9ad1e3ef54094b4cd37edc058 | activerecord/lib/active_record/relation/predicate_builder/array_handler.rb | activerecord/lib/active_record/relation/predicate_builder/array_handler.rb | Ruby |
<|file_sep|>spec/controllers/cards_controller_spec.rb.diff
original:
let(:card_params) {
{
card_template_id: template.id,
custom_message: 'errrr.....',
signature: '-neemur neemur',
recipient_name: 'the bees',
street_address: 'over yonder',
city: 'Oakland',
state: 'CA',
... | {
card_template_id: template.id,
custom_message: 'errrr.....',
signature: '-neemur neemur',
recipient_name: 'the bees',
street_address: 'over yonder',
city: 'Oakland',
state: 'CA',
zip_code: '04294'
}
}
describe 'POST create' do
describe 'If ... | <|file_sep|>spec/controllers/cards_controller_spec.rb.diff
original:
let(:card_params) {
{
card_template_id: template.id,
custom_message: 'errrr.....',
signature: '-neemur neemur',
recipient_name: 'the bees',
street_address: 'over yonder',
city: 'Oakland',
state: 'CA',
... | a09005acc93ea9ab17b8c18a504782d2034e2cc2 | spec/controllers/cards_controller_spec.rb | spec/controllers/cards_controller_spec.rb | Ruby |
<|file_sep|>original/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/Features.kt
package com.beust.kobalt
class Features {
companion object {
/** If true, uses timestamps to speed up the tasks */
const val USE_TIMESTAMPS = true
}
}
<|file_sep|>current/modules/kobalt-plugin-api/src/ma... | package com.beust.kobalt
class Features {
companion object {
/** If true, uses timestamps to speed up the tasks */
const val USE_TIMESTAMPS = false
}
} | <|file_sep|>original/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/Features.kt
package com.beust.kobalt
class Features {
companion object {
/** If true, uses timestamps to speed up the tasks */
const val USE_TIMESTAMPS = true
}
}
<|file_sep|>current/modules/kobalt-plugin-api/src/ma... | de4ad1293efcdc6d93908baa096cd5741476f138 | modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/Features.kt | modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/Features.kt | Kotlin |
<|file_sep|>original/week-2/your-website-solo.md
<|file_sep|>current/week-2/your-website-solo.md
<|file_sep|>updated/week-2/your-website-solo.md | #My Website Solo Challenge
[Home Page](http://drumguy16.github.io/)
[Blog/Index](http://drumguy16.github.io/blog/index)
*How was your experience translating a wireframe into HTML?
This experience seemed fairly seemless. It was much easier than the times I've tried to create web pages without a visual aid.
*What ne... | <|file_sep|>original/week-2/your-website-solo.md
<|file_sep|>current/week-2/your-website-solo.md
<|file_sep|>updated/week-2/your-website-solo.md
#My Website Solo Challenge
[Home Page](http://drumguy16.github.io/)
[Blog/Index](http://drumguy16.github.io/blog/index)
*How was your experience translating a wireframe in... | 6d231ca2398daca314562ff6d125a67713cd1a97 | week-2/your-website-solo.md | week-2/your-website-solo.md | Markdown |
<|file_sep|>original/.appveyor.yml
init:
- git config --global core.autocrlf true
branches:
only:
- master
- release
- dev
- /^(.*\/)?ci-.*$/
- /^rel\/.*/
build_script:
- ps: .\run.ps1 default-build
clone_depth: 1
environment:
global:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CL... | init:
- git config --global core.autocrlf true
branches:
only:
- master
- release
- dev
- /^(.*\/)?ci-.*$/
- /^rel\/.*/
build_script:
- ps: .\run.ps1 default-build
clone_depth: 1
environment:
global:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: 1
test: off
dep... | <|file_sep|>original/.appveyor.yml
init:
- git config --global core.autocrlf true
branches:
only:
- master
- release
- dev
- /^(.*\/)?ci-.*$/
- /^rel\/.*/
build_script:
- ps: .\run.ps1 default-build
clone_depth: 1
environment:
global:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CL... | f25cbbb397595e6267b1a1ebcb8204e06ffda708 | .appveyor.yml | .appveyor.yml | YAML |
<|file_sep|>original/app/views/jst/groups/manage/randomlyAssignMembers.handlebars
<div class="form-dialog-content">
<p tabindex="0">
{{#t "randomly_assign_students_dialog"}}
This will automatically assign all unassigned students as evenly as possible among the existing student groups.
{{/t}}
</p>
<div... | <div class="form-dialog-content">
<p>
{{#t "randomly_assign_students_dialog"}}
This will automatically assign all unassigned students as evenly as possible among the existing student groups.
{{/t}}
</p>
<div class="controls group-by-section-controls">
<label class="checkbox" for="group_by_section"... | <|file_sep|>original/app/views/jst/groups/manage/randomlyAssignMembers.handlebars
<div class="form-dialog-content">
<p tabindex="0">
{{#t "randomly_assign_students_dialog"}}
This will automatically assign all unassigned students as evenly as possible among the existing student groups.
{{/t}}
</p>
<div... | b240a0f5c3b97328774e89b9ee046f769592940d | app/views/jst/groups/manage/randomlyAssignMembers.handlebars | app/views/jst/groups/manage/randomlyAssignMembers.handlebars | Handlebars |
<|file_sep|>original/.travis.yml
sudo: false
language: php
php:
- 5.6
- 7.0
- nightly
addons:
apt:
packages: [expect]
cache:
directories:
- ~/.composer/cache/files/
before_install:
- phpenv config-add .travis.php.ini
install:
- composer install --prefer-dist
before_script:
<|file_sep|>cu... | sudo: false
language: php
php:
- 5.6
- 7.0
- 7.1
- nightly
addons:
apt:
packages: [expect]
cache:
directories:
- ~/.composer/cache/files/
before_install:
- phpenv config-add .travis.php.ini
install:
- composer install --prefer-dist
| <|file_sep|>original/.travis.yml
sudo: false
language: php
php:
- 5.6
- 7.0
- nightly
addons:
apt:
packages: [expect]
cache:
directories:
- ~/.composer/cache/files/
before_install:
- phpenv config-add .travis.php.ini
install:
- composer install --prefer-dist
before_script:
<|file_sep|>cu... | 2c7c53e8091fcf8978cd404743b6ea28323afa44 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/apis/reports.es6.js
model = Report;
move = this.notImplemented('move');
copy = this.notImplemented('copy');
get = this.notImplemented('get');
put = this.notImplemented('put');
patch = this.notImplemented('patch');
del = this.notImplemented('del');
path() {
return 'api/report';... | export default class Reports extends BaseAPI {
model = Report;
move = this.notImplemented('move');
copy = this.notImplemented('copy');
get = this.notImplemented('get');
put = this.notImplemented('put');
patch = this.notImplemented('patch');
del = this.notImplemented('del');
path() {
return 'api/re... | <|file_sep|>original/apis/reports.es6.js
model = Report;
move = this.notImplemented('move');
copy = this.notImplemented('copy');
get = this.notImplemented('get');
put = this.notImplemented('put');
patch = this.notImplemented('patch');
del = this.notImplemented('del');
path() {
return 'api/report';... | 20390640e1ba92f6bd52ce14b9e06f0dd241badc | apis/reports.es6.js | apis/reports.es6.js | JavaScript |
<|file_sep|>.vscode/tasks.json.diff
original:
"isWatching": true,
updated:
"isBackground": true,
<|file_sep|>.vscode/tasks.json.diff
original:
updated:
},
{
"taskName": "TSLint: Lint all files",
"command": "yarn",
"args": ["lint"],
"problemMatcher": {
"owner": "tslin... | "taskName": "TSLint: Lint all files",
"command": "yarn",
"args": ["lint"],
"problemMatcher": {
"owner": "tslint",
"fileLocation": [
"relative",
"${workspaceRoot}"
],
"severity": "warning",
"pattern": {
"regexp": "^(\\S.*)\\[(\... | <|file_sep|>.vscode/tasks.json.diff
original:
"isWatching": true,
updated:
"isBackground": true,
<|file_sep|>.vscode/tasks.json.diff
original:
updated:
},
{
"taskName": "TSLint: Lint all files",
"command": "yarn",
"args": ["lint"],
"problemMatcher": {
"owner": "tslin... | 33cf39f1b6d36106f96437c485a5e58c0cdbd396 | .vscode/tasks.json | .vscode/tasks.json | JSON |
<|file_sep|>original/distributed-v2/src/test/java/com/orientechnologies/orient/distributed/impl/coordinator/network/OOperationResponseTest.java
<|file_sep|>current/distributed-v2/src/test/java/com/orientechnologies/orient/distributed/impl/coordinator/network/OOperationResponseTest.java
<|file_sep|>updated/distributed... | package com.orientechnologies.orient.distributed.impl.coordinator.network;
import com.orientechnologies.orient.distributed.impl.coordinator.ONodeResponse;
import com.orientechnologies.orient.distributed.impl.coordinator.OSubmitResponse;
import com.orientechnologies.orient.distributed.impl.coordinator.ddl.ODDLQueryOper... | <|file_sep|>original/distributed-v2/src/test/java/com/orientechnologies/orient/distributed/impl/coordinator/network/OOperationResponseTest.java
<|file_sep|>current/distributed-v2/src/test/java/com/orientechnologies/orient/distributed/impl/coordinator/network/OOperationResponseTest.java
<|file_sep|>updated/distributed... | 196c174d757066682ceb99806ac09f2466e4309c | distributed-v2/src/test/java/com/orientechnologies/orient/distributed/impl/coordinator/network/OOperationResponseTest.java | distributed-v2/src/test/java/com/orientechnologies/orient/distributed/impl/coordinator/network/OOperationResponseTest.java | Java |
<|file_sep|>original/README.org
:
: (depends-on "pallet")
Run cask which will install the [[https://github.com/rdallasgray/pallet][pallet package management tool]]
: cask install
Add the following to your ~/.emacs.d/init.el file
: (require 'cask "~/.cask/cask.el")
: (cask-initialize)
: (require 'pallet)
Initialise... | : cask install
Add the following to your ~/.emacs.d/init.el file
: (require 'cask "~/.cask/cask.el")
: (cask-initialize)
: (require 'pallet)
Initialise your cask file from within emacs
: M-x pallet-init
** Requirements
ag - Compile [[https://github.com/ggreer/the_silver_searcher][the silver searcher]]
flyspell -... | <|file_sep|>original/README.org
:
: (depends-on "pallet")
Run cask which will install the [[https://github.com/rdallasgray/pallet][pallet package management tool]]
: cask install
Add the following to your ~/.emacs.d/init.el file
: (require 'cask "~/.cask/cask.el")
: (cask-initialize)
: (require 'pallet)
Initialise... | d76875fca895cc95be5f88fd828c9213fb7ca765 | README.org | README.org | Org |
<|file_sep|>src/clj/gtfve/handler.clj.diff
original:
[environ.core :refer [env]]))
updated:
[environ.core :refer [env]]
[gtfve.data.queries :as q]))
<|file_sep|>original/src/clj/gtfve/handler.clj
(ns gtfve.handler
(:require [compojure.core :refer [GET defroutes]]
[compo... | (ns gtfve.handler
(:require [compojure.core :refer [GET defroutes]]
[compojure.route :refer [not-found resources]]
[ring.middleware.defaults :refer [site-defaults wrap-defaults]]
[selmer.parser :refer [render-file]]
[prone.middleware :refer [wrap-exceptions]]
... | <|file_sep|>src/clj/gtfve/handler.clj.diff
original:
[environ.core :refer [env]]))
updated:
[environ.core :refer [env]]
[gtfve.data.queries :as q]))
<|file_sep|>original/src/clj/gtfve/handler.clj
(ns gtfve.handler
(:require [compojure.core :refer [GET defroutes]]
[compo... | 97c3def1b645aeeb222afadd76c4e311b93b6cc8 | src/clj/gtfve/handler.clj | src/clj/gtfve/handler.clj | Clojure |
<|file_sep|>original/content/talks.md
+++
date = "2017-08-02T10:07:59+10:00"
title = "Presentations"
+++
* **Tutorial: Hacking Device Drivers - How to get into kernel development**
14th September 2017 - Open Source Summit North America
* **Talk: Getting Started With Linux Kernel Development**
2nd August 2017 ... | +++
date = "2017-08-02T10:07:59+10:00"
title = "Presentations"
+++
* **Tutorial: Hacking Device Drivers - How to get into kernel development**
14th September 2017 - Open Source Summit North America
([git repo](http://github.com/tcharding/kernel))
23rd August 2017 - Central Coast Linux Users Group
* **Talk... | <|file_sep|>original/content/talks.md
+++
date = "2017-08-02T10:07:59+10:00"
title = "Presentations"
+++
* **Tutorial: Hacking Device Drivers - How to get into kernel development**
14th September 2017 - Open Source Summit North America
* **Talk: Getting Started With Linux Kernel Development**
2nd August 2017 ... | 869a9e5c6a410ba14878537c222a21df2a0c99dd | content/talks.md | content/talks.md | Markdown |
<|file_sep|>original/_layout.jade
extends _base
block main
.container
!= partial('_nav')
main.content
if current.path[1] === "index"
!= yield
else
if current.path[0] === "blog"
//- Show blog post
if current.path[1] === "posts"
!= partial("/blog/_b... | extends _base
block main
.container
!= partial('_nav')
main.content
if current.path[1] === "index" || current.source === "index"
!= yield
else
if current.path[0] === "blog"
//- Show blog post
if current.path[1] === "posts"
!= partial("/blog/_blog"... | <|file_sep|>original/_layout.jade
extends _base
block main
.container
!= partial('_nav')
main.content
if current.path[1] === "index"
!= yield
else
if current.path[0] === "blog"
//- Show blog post
if current.path[1] === "posts"
!= partial("/blog/_b... | 9335b7f5c29807d124315a592d2768c4f2f52a0a | _layout.jade | _layout.jade | Jade |
<|file_sep|>original/config/asset_packages.yml
- calendar
- calendar-en
- calendar-setup
- application
- jrails
- tt:
- juggernaut_javascript
- tt
- portal:
- prototype
- tz
- frontpage
stylesheets:
- base:
- scaffold
- portal:
- portal
- tt:
- calendar-system
- ui.datepicker.css
- tt
<|fi... | - calendar
- calendar-en
- calendar-setup
- application
- jrails
- tt:
- juggernaut_javascript
- tt
- portal:
- prototype
- tz
- frontpage
stylesheets:
- base:
- scaffold
- portal:
- portal
- tt:
- calendar-system
- ui.datepicker
- tt | <|file_sep|>original/config/asset_packages.yml
- calendar
- calendar-en
- calendar-setup
- application
- jrails
- tt:
- juggernaut_javascript
- tt
- portal:
- prototype
- tz
- frontpage
stylesheets:
- base:
- scaffold
- portal:
- portal
- tt:
- calendar-system
- ui.datepicker.css
- tt
<|fi... | 85dfaccb9e66694a654551b09c787353ae2cca08 | config/asset_packages.yml | config/asset_packages.yml | YAML |
<|file_sep|>original/exercises/accumulate/Tests.elm
square : Int -> Int
square x =
x * x
tests : Test
tests =
describe "Accumulate"
[ test "[]] Accumulate" <|
\() -> Expect.equal [] (accumulate square [])
, test "square Accumulate" <|
\() -> Expect.equal [ 1, 4, 9 ] (... |
square : Int -> Int
square x =
x * x
tests : Test
tests =
describe "Accumulate"
[ test "[] Accumulate" <|
\() -> Expect.equal [] (accumulate square [])
, test "square Accumulate" <|
\() -> Expect.equal [ 1, 4, 9 ] (accumulate square [ 1, 2, 3 ])
, test "toUppe... | <|file_sep|>original/exercises/accumulate/Tests.elm
square : Int -> Int
square x =
x * x
tests : Test
tests =
describe "Accumulate"
[ test "[]] Accumulate" <|
\() -> Expect.equal [] (accumulate square [])
, test "square Accumulate" <|
\() -> Expect.equal [ 1, 4, 9 ] (... | a7c7b62e073c8a48a3b76ccc172675845719683b | exercises/accumulate/Tests.elm | exercises/accumulate/Tests.elm | Elm |
<|file_sep|>original/lib/synchronizer.rb
adapter = CurrencyRate::const_get(adapter_name).instance
rates = adapter.fetch_rates
unless rates
CurrencyRate.logger.warn("Synchronizer#sync!: rates for #{provider} not found")
failed.push(provider)
next
... | adapter = CurrencyRate::const_get(adapter_name).instance
rates = adapter.fetch_rates
unless rates
CurrencyRate.logger.warn("Synchronizer#sync!: rates for #{provider} not found")
failed.push(provider)
next
end
exchange_name = provider.... | <|file_sep|>original/lib/synchronizer.rb
adapter = CurrencyRate::const_get(adapter_name).instance
rates = adapter.fetch_rates
unless rates
CurrencyRate.logger.warn("Synchronizer#sync!: rates for #{provider} not found")
failed.push(provider)
next
... | f74999165605476fb7123f839daa6819fe4a14ab | lib/synchronizer.rb | lib/synchronizer.rb | Ruby |
<|file_sep|>original/tests/integration/spreedcheats/appinfo/info.xml
<?xml version="1.0"?>
<info>
<id>spreedcheats</id>
<name>Spreed cheats app for Intergration tests</name>
<namespace>SpreedCheats</namespace>
<description/>
<licence>AGPL</licence>
<author>Joas Schilling</author>
<version>2.0</version>
<types... | <?xml version="1.0"?>
<info>
<id>spreedcheats</id>
<name>Spreed cheats app for Intergration tests</name>
<namespace>SpreedCheats</namespace>
<description/>
<licence>AGPL</licence>
<author>Joas Schilling</author>
<version>2.0</version>
<types>
<logging/>
</types>
<dependencies>
<nextcloud min-version="1... | <|file_sep|>original/tests/integration/spreedcheats/appinfo/info.xml
<?xml version="1.0"?>
<info>
<id>spreedcheats</id>
<name>Spreed cheats app for Intergration tests</name>
<namespace>SpreedCheats</namespace>
<description/>
<licence>AGPL</licence>
<author>Joas Schilling</author>
<version>2.0</version>
<types... | 073a6bc9c32c27bf359e55c3d613e1f8e7a1ab68 | tests/integration/spreedcheats/appinfo/info.xml | tests/integration/spreedcheats/appinfo/info.xml | XML |
<|file_sep|>original/.travis.yml
language: php
php:
- 7.1
- 7.2
- 7.3
# - 7.4 (7.4.0-dev not available yet)
# - nightly (8.0.0-dev does not work yet)
sudo: required
dist: trusty
group: edge
env:
- NODE_VERSION=10.x
cache:
yarn: true
directories:
- node_modules
- $HOME/.composer/cache/files
<... | language: php
php:
- 7.1
- 7.2
- 7.3
- 7.4
# - nightly (8.0.0-dev does not work yet)
sudo: required
dist: trusty
group: edge
env:
- NODE_VERSION=10.x
cache:
yarn: true
directories:
- node_modules
- $HOME/.composer/cache/files | <|file_sep|>original/.travis.yml
language: php
php:
- 7.1
- 7.2
- 7.3
# - 7.4 (7.4.0-dev not available yet)
# - nightly (8.0.0-dev does not work yet)
sudo: required
dist: trusty
group: edge
env:
- NODE_VERSION=10.x
cache:
yarn: true
directories:
- node_modules
- $HOME/.composer/cache/files
<... | 7bc90f01d4bb734cd7e102095e2e99831995882a | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/scripts/direct2PropSerialTest.sh
SCRIPTDIR=$(cd $(dirname "$0") && pwd)
if ! (which miniterm.py>/dev/null)
then
sudo apt-get install python-serial
echo "You may have to reboot before you can use the Propeller Board."
fi
if ! (id|grep dialout>/dev/null)
then
sudo adduser ${USER} dialout
... | SCRIPTDIR=$(cd $(dirname "$0") && pwd)
if ! (which miniterm.py>/dev/null)
then
sudo apt-get install python-serial
echo "You may have to reboot before you can use the Propeller Board."
fi
if ! (id|grep dialout>/dev/null)
then
sudo adduser ${USER} dialout
fi
echo "Activity Board should be sending a stead stre... | <|file_sep|>original/scripts/direct2PropSerialTest.sh
SCRIPTDIR=$(cd $(dirname "$0") && pwd)
if ! (which miniterm.py>/dev/null)
then
sudo apt-get install python-serial
echo "You may have to reboot before you can use the Propeller Board."
fi
if ! (id|grep dialout>/dev/null)
then
sudo adduser ${USER} dialout
... | dcb2a8a793362b9c8ab2e1660f899ba9e98df9da | scripts/direct2PropSerialTest.sh | scripts/direct2PropSerialTest.sh | Shell |
<|file_sep|>original/app/controllers/picks_controller.rb
@user = User.create(email: params[:pick][:email], password: (0...20).map { ('a'..'z').to_a[rand(26)] }.join)
end
@pick = Pick.new(pick_params)
if @pick.save
@user.picks << @pick
if params[:commit]=="signup"
redirect_t... | @user = User.create(email: params[:pick][:email], password: (0...20).map { ('a'..'z').to_a[rand(26)] }.join)
end
@pick = Pick.new(pick_params)
if @pick.save
@user.picks << @pick
if params[:commit]=="signup"
redirect_to edit_user_path(@user.id), locals: {email: params[:email... | <|file_sep|>original/app/controllers/picks_controller.rb
@user = User.create(email: params[:pick][:email], password: (0...20).map { ('a'..'z').to_a[rand(26)] }.join)
end
@pick = Pick.new(pick_params)
if @pick.save
@user.picks << @pick
if params[:commit]=="signup"
redirect_t... | 8f69a54bfffe89f65e3a8a9fbb5d38a582bd6136 | app/controllers/picks_controller.rb | app/controllers/picks_controller.rb | Ruby |
<|file_sep|>original/S3utility/s3_sqs_message.py
def event_time(self):
return self.payload['Records'][0]['eventTime']
def bucket_name(self):
return self.payload['Records'][0]['s3']['bucket']['name']
def file_name(self):
return self.payload['Records'][0]['s3']['object']['key']
... | def event_time(self):
return self.payload['Records'][0]['eventTime']
def bucket_name(self):
return self.payload['Records'][0]['s3']['bucket']['name']
def file_name(self):
return self.payload['Records'][0]['s3']['object']['key']
def file_etag(self):
if 'eTag' in self.pa... | <|file_sep|>original/S3utility/s3_sqs_message.py
def event_time(self):
return self.payload['Records'][0]['eventTime']
def bucket_name(self):
return self.payload['Records'][0]['s3']['bucket']['name']
def file_name(self):
return self.payload['Records'][0]['s3']['object']['key']
... | 512ca99144da537da61e7437d17782e5a95addb9 | S3utility/s3_sqs_message.py | S3utility/s3_sqs_message.py | Python |
<|file_sep|>original/README.md
- speed: number
- abilities:
- name: string
- abbreviation: string
- score: number
- modifier: number
- savingThrows:
- advantage: boolean
- proficiency: boolean
- modifier: number
- skills: array:
- name: string
... | - speed: number
- abilities:
- name: string
- abbreviation: string
- score: number
- modifier: number
- skills: array:
- name: string
- advantage: boolean
- proficiency: boolean
- modifier: number
- ability: string
- savingThrows:
- ability: st... | <|file_sep|>original/README.md
- speed: number
- abilities:
- name: string
- abbreviation: string
- score: number
- modifier: number
- savingThrows:
- advantage: boolean
- proficiency: boolean
- modifier: number
- skills: array:
- name: string
... | 3b7a57c588630705afb6c0e1d6b7b400dcd4b795 | README.md | README.md | Markdown |
<|file_sep|>original/db/migrations/20201108201705_add_pay_pal_order_id.php
<|file_sep|>current/db/migrations/20201108201705_add_pay_pal_order_id.php
<|file_sep|>updated/db/migrations/20201108201705_add_pay_pal_order_id.php | <?php
use Phinx\Migration\AbstractMigration;
class AddPayPalOrderId extends AbstractMigration
{
public function change()
{
$table= $this->table('sale');
$table
->addColumn('paypal_order_id', 'string', [
'limit' => 255,
'null' => true,
'after' => 'amz_order_ref... | <|file_sep|>original/db/migrations/20201108201705_add_pay_pal_order_id.php
<|file_sep|>current/db/migrations/20201108201705_add_pay_pal_order_id.php
<|file_sep|>updated/db/migrations/20201108201705_add_pay_pal_order_id.php
<?php
use Phinx\Migration\AbstractMigration;
class AddPayPalOrderId extends AbstractMigration... | 831b6097901030e2cbaf24ddfb78eb2920db0a30 | db/migrations/20201108201705_add_pay_pal_order_id.php | db/migrations/20201108201705_add_pay_pal_order_id.php | PHP |
<|file_sep|>app/js/constants/phishingExpressions.js.diff
original:
updated:
(function() {
<|file_sep|>original/app/js/constants/phishingExpressions.js
'use strict';
angular.module('ddsCommon').constant('phishingExpressions', [
]);
<|file_sep|>current/app/js/constants/phishingExpressions.js
(function() {
'use strict';... | (function() {
'use strict';
var phishingExpressions = [
/acusticanapoli\.com/,
];
/* Export either through Angular loader or CommonJS */
if (typeof module != 'undefined') { // we're in Node
module.exports = phishingExpressions;
} else { // we're in the browser
angular.module('ddsCommon').constant('phish... | <|file_sep|>app/js/constants/phishingExpressions.js.diff
original:
updated:
(function() {
<|file_sep|>original/app/js/constants/phishingExpressions.js
'use strict';
angular.module('ddsCommon').constant('phishingExpressions', [
]);
<|file_sep|>current/app/js/constants/phishingExpressions.js
(function() {
'use strict';... | 6aba8b7d4ce5ae25e992041f1261e7d228f2ab11 | app/js/constants/phishingExpressions.js | app/js/constants/phishingExpressions.js | JavaScript |
<|file_sep|>original/.vscode/tasks.json
<|file_sep|>current/.vscode/tasks.json
<|file_sep|>updated/.vscode/tasks.json | {
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "thor",
"isShellCommand": true,
"args": ["doc", "-e=SU2018"],
"showOutput": "always",
"isBuildTask": true
} | <|file_sep|>original/.vscode/tasks.json
<|file_sep|>current/.vscode/tasks.json
<|file_sep|>updated/.vscode/tasks.json
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "thor",
"isShellCommand": true,
"args": ["doc", ... | 27ea53761abae58a72d886f1ac1c453569c9f4b9 | .vscode/tasks.json | .vscode/tasks.json | JSON |
<|file_sep|>original/genDocs.sh
#!/bin/bash
# jazzy -a IBM -m WatsonSDK -g https://github.com/IBM-MIL/Watson-iOS-SDK
jazzy -m WatsonSDK -g https://github.com/IBM-MIL/Watson-iOS-SDKl
<|file_sep|>current/genDocs.sh
#!/bin/bash
# jazzy -a IBM -m WatsonSDK -g https://github.com/IBM-MIL/Watson-iOS-SDK
jazzy -m WatsonSDK -... | #!/bin/bash
jazzy -m WatsonDeveloperCloud -g https://github.com/watson-developer-cloud/ios-sdk --skip-undocumented --hide-documentation-coverage --exclude ./WatsonDeveloperCloud/WatsonCore/Utilities/NetworkUtils.swift,./WatsonDeveloperCloud/WatsonCore/Utilities/AlchemyService.swift,./WatsonDeveloperCloud/WatsonCore/Ser... | <|file_sep|>original/genDocs.sh
#!/bin/bash
# jazzy -a IBM -m WatsonSDK -g https://github.com/IBM-MIL/Watson-iOS-SDK
jazzy -m WatsonSDK -g https://github.com/IBM-MIL/Watson-iOS-SDKl
<|file_sep|>current/genDocs.sh
#!/bin/bash
# jazzy -a IBM -m WatsonSDK -g https://github.com/IBM-MIL/Watson-iOS-SDK
jazzy -m WatsonSDK -... | 50eefb287e1854af94557e4d595a848b887f0325 | genDocs.sh | genDocs.sh | Shell |
<|file_sep|>original/spec/ruby/1.8/core/io/printf_spec.rb
require File.dirname(__FILE__) + '/../../spec_helper'
describe "IO#printf" do
before :each do
@io = IO.new STDOUT.fileno
end
fails_on :jruby
it "writes the #sprintf formatted string to the file descriptor" do
lambda {
@io.printf "%s\n", "... | require File.dirname(__FILE__) + '/../../spec_helper'
describe "IO#printf" do
before :each do
@io = IO.new STDOUT.fileno
end
fails_on :jruby do
it "writes the #sprintf formatted string to the file descriptor" do
lambda {
@io.printf "%s\n", "look ma, no hands"
}.should output_to_fd("look ma, ... | <|file_sep|>original/spec/ruby/1.8/core/io/printf_spec.rb
require File.dirname(__FILE__) + '/../../spec_helper'
describe "IO#printf" do
before :each do
@io = IO.new STDOUT.fileno
end
fails_on :jruby
it "writes the #sprintf formatted string to the file descriptor" do
lambda {
@io.printf "%s\n", "... | e6f36980c2c94414e5c051b35d9ce403c492f1a2 | spec/ruby/1.8/core/io/printf_spec.rb | spec/ruby/1.8/core/io/printf_spec.rb | Ruby |
<|file_sep|>recipes/jupyterlab-classic/meta.yaml.diff
original:
name: {{ name|lower }}
updated:
name: {{ name }}
<|file_sep|>original/recipes/jupyterlab-classic/meta.yaml
run:
- python >=3.6
- jupyterlab >=3.0.0,<4
test:
imports:
- jupyterlab_classic
commands:
- pip check
- jupyter classi... | run:
- python >=3.6
- jupyterlab >=3.0.0,<4
test:
imports:
- jupyterlab_classic
commands:
- pip check
- jupyter classic --help
- jupyter labextension list
requires:
- pip
about:
home: https://github.com/jtpio/jupyterlab-classic
summary: The next-gen old-school notebook UI
lic... | <|file_sep|>recipes/jupyterlab-classic/meta.yaml.diff
original:
name: {{ name|lower }}
updated:
name: {{ name }}
<|file_sep|>original/recipes/jupyterlab-classic/meta.yaml
run:
- python >=3.6
- jupyterlab >=3.0.0,<4
test:
imports:
- jupyterlab_classic
commands:
- pip check
- jupyter classi... | 5fad2da084a76b3177ce4bf1ef66f33f44a3ee13 | recipes/jupyterlab-classic/meta.yaml | recipes/jupyterlab-classic/meta.yaml | YAML |
<|file_sep|>original/src/Phpml/Dataset/CsvDataset.php
* @param bool $headingRow
*
* @throws DatasetException
*/
public function __construct(string $filepath, int $features, bool $headingRow = true)
{
if (!file_exists($filepath)) {
throw DatasetException::missingFile(bas... | * @param bool $headingRow
*
* @throws DatasetException
*/
public function __construct(string $filepath, int $features, bool $headingRow = true)
{
if (!file_exists($filepath)) {
throw DatasetException::missingFile(basename($filepath));
}
if (false === $h... | <|file_sep|>original/src/Phpml/Dataset/CsvDataset.php
* @param bool $headingRow
*
* @throws DatasetException
*/
public function __construct(string $filepath, int $features, bool $headingRow = true)
{
if (!file_exists($filepath)) {
throw DatasetException::missingFile(bas... | c4f0d1e3b0ddac38a23ff73a3017e272a9baf6e1 | src/Phpml/Dataset/CsvDataset.php | src/Phpml/Dataset/CsvDataset.php | PHP |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.