prompt stringlengths 77 6.9k | completion stringlengths 1 3.38k | text stringlengths 163 9.03k | commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | lang stringclasses 277
values |
|---|---|---|---|---|---|---|
<|file_sep|>original/app/assets/javascripts/application.js
//= require jquery
//= require jquery_ujs
//= require foundation
//= require refile
//= require lodash
//= require jquery.flash
//= require jquery.turbolinks
//= require turbolinks
//= require_self
//= require_tree .
$.turbo.use('page:load', 'page:fetch', 'page:update', 'opened.fndtn.reveal');
$(function() { $(document).foundation(); });
<|file_sep|>current/app/assets/javascripts/application.js
//= require jquery
//= require jquery_ujs
//= require foundation
//= require refile
//= require lodash
//= require jquery.flash
//= require jquery.turbolinks
//= require turbolinks
//= require_self
//= require_tree .
$.turbo.use('page:load', 'page:fetch', 'page:update', 'opened.fndtn.reveal');
$(function() { $(document).foundation(); });
<|file_sep|>updated/app/assets/javascripts/application.js | //= require jquery
//= require jquery_ujs
//= require foundation
//= require refile
//= require lodash
//= require jquery.turbolinks
//= require turbolinks
//= require_self
//= require_tree .
$.turbo.use('page:load', 'page:fetch', 'page:update', 'opened.fndtn.reveal');
$(function() { $(document).foundation(); }); | <|file_sep|>original/app/assets/javascripts/application.js
//= require jquery
//= require jquery_ujs
//= require foundation
//= require refile
//= require lodash
//= require jquery.flash
//= require jquery.turbolinks
//= require turbolinks
//= require_self
//= require_tree .
$.turbo.use('page:load', 'page:fetch', 'page:update', 'opened.fndtn.reveal');
$(function() { $(document).foundation(); });
<|file_sep|>current/app/assets/javascripts/application.js
//= require jquery
//= require jquery_ujs
//= require foundation
//= require refile
//= require lodash
//= require jquery.flash
//= require jquery.turbolinks
//= require turbolinks
//= require_self
//= require_tree .
$.turbo.use('page:load', 'page:fetch', 'page:update', 'opened.fndtn.reveal');
$(function() { $(document).foundation(); });
<|file_sep|>updated/app/assets/javascripts/application.js
//= require jquery
//= require jquery_ujs
//= require foundation
//= require refile
//= require lodash
//= require jquery.turbolinks
//= require turbolinks
//= require_self
//= require_tree .
$.turbo.use('page:load', 'page:fetch', 'page:update', 'opened.fndtn.reveal');
$(function() { $(document).foundation(); }); | a61bd85c27992ebec62d93944a156e9a090e8d8a | app/assets/javascripts/application.js | app/assets/javascripts/application.js | JavaScript |
<|file_sep|>pryvate/blueprints/simple/simple.py.diff
original:
files = os.listdir(package_path)
updated:
if os.path.isdir(package_path):
files = os.listdir(package_path)
<|file_sep|>original/pryvate/blueprints/simple/simple.py
@blueprint.route('/<package>', methods=['GET'])
@blueprint.route('/<package>/', methods=['GET'])
def get_package(package):
"""List versions of a package."""
package_path = os.path.join(current_app.config['BASEDIR'],
package.lower())
files = os.listdir(package_path)
packages = []
for filename in files:
if filename.endswith('md5'):
with open(os.path.join(package_path, filename), 'r') as md5_digest:
item = {
'name': package,
'version': filename.replace('.md5', ''),
'digest': md5_digest.read()
}
packages.append(item)
return render_template('simple_package.html', packages=packages,
letter=package[:1].lower())
<|file_sep|>current/pryvate/blueprints/simple/simple.py
@blueprint.route('/<package>', methods=['GET'])
@blueprint.route('/<package>/', methods=['GET'])
def get_package(package):
"""List versions of a package."""
package_path = os.path.join(current_app.config['BASEDIR'],
package.lower())
if os.path.isdir(package_path):
files = os.listdir(package_path)
packages = []
for filename in files:
if filename.endswith('md5'):
with open(os.path.join(package_path, filename), 'r') as md5_digest:
item = {
'name': package,
'version': filename.replace('.md5', ''),
'digest': md5_digest.read()
}
packages.append(item)
return render_template('simple_package.html', packages=packages,
letter=package[:1].lower())
<|file_sep|>updated/pryvate/blueprints/simple/simple.py | """List versions of a package."""
package_path = os.path.join(current_app.config['BASEDIR'],
package.lower())
if os.path.isdir(package_path):
files = os.listdir(package_path)
packages = []
for filename in files:
if filename.endswith('md5'):
digest_file = os.path.join(package_path, filename)
with open(digest_file, 'r') as md5_digest:
item = {
'name': package,
'version': filename.replace('.md5', ''),
'digest': md5_digest.read()
}
packages.append(item)
return render_template('simple_package.html', packages=packages,
letter=package[:1].lower())
else:
return make_response('404', 404) | <|file_sep|>pryvate/blueprints/simple/simple.py.diff
original:
files = os.listdir(package_path)
updated:
if os.path.isdir(package_path):
files = os.listdir(package_path)
<|file_sep|>original/pryvate/blueprints/simple/simple.py
@blueprint.route('/<package>', methods=['GET'])
@blueprint.route('/<package>/', methods=['GET'])
def get_package(package):
"""List versions of a package."""
package_path = os.path.join(current_app.config['BASEDIR'],
package.lower())
files = os.listdir(package_path)
packages = []
for filename in files:
if filename.endswith('md5'):
with open(os.path.join(package_path, filename), 'r') as md5_digest:
item = {
'name': package,
'version': filename.replace('.md5', ''),
'digest': md5_digest.read()
}
packages.append(item)
return render_template('simple_package.html', packages=packages,
letter=package[:1].lower())
<|file_sep|>current/pryvate/blueprints/simple/simple.py
@blueprint.route('/<package>', methods=['GET'])
@blueprint.route('/<package>/', methods=['GET'])
def get_package(package):
"""List versions of a package."""
package_path = os.path.join(current_app.config['BASEDIR'],
package.lower())
if os.path.isdir(package_path):
files = os.listdir(package_path)
packages = []
for filename in files:
if filename.endswith('md5'):
with open(os.path.join(package_path, filename), 'r') as md5_digest:
item = {
'name': package,
'version': filename.replace('.md5', ''),
'digest': md5_digest.read()
}
packages.append(item)
return render_template('simple_package.html', packages=packages,
letter=package[:1].lower())
<|file_sep|>updated/pryvate/blueprints/simple/simple.py
"""List versions of a package."""
package_path = os.path.join(current_app.config['BASEDIR'],
package.lower())
if os.path.isdir(package_path):
files = os.listdir(package_path)
packages = []
for filename in files:
if filename.endswith('md5'):
digest_file = os.path.join(package_path, filename)
with open(digest_file, 'r') as md5_digest:
item = {
'name': package,
'version': filename.replace('.md5', ''),
'digest': md5_digest.read()
}
packages.append(item)
return render_template('simple_package.html', packages=packages,
letter=package[:1].lower())
else:
return make_response('404', 404) | ca6891f3b867fd691c0b682566ffec1fd7f0ac2a | pryvate/blueprints/simple/simple.py | pryvate/blueprints/simple/simple.py | Python |
<|file_sep|>original/lib/contributors/servises/add_new_contributors.rb
<|file_sep|>current/lib/contributors/servises/add_new_contributors.rb
<|file_sep|>updated/lib/contributors/servises/add_new_contributors.rb | class AddNewContributors
def call
contributors = repo.all
new_contributors = AllContributors.new.call
new_contributors.each do |contributor|
unless contributors.any? { |c| c.github == contributor[:github] }
repo.create(contributor)
end
end
end
private
def repo
@repo ||= ContributorRepository.new
end
end | <|file_sep|>original/lib/contributors/servises/add_new_contributors.rb
<|file_sep|>current/lib/contributors/servises/add_new_contributors.rb
<|file_sep|>updated/lib/contributors/servises/add_new_contributors.rb
class AddNewContributors
def call
contributors = repo.all
new_contributors = AllContributors.new.call
new_contributors.each do |contributor|
unless contributors.any? { |c| c.github == contributor[:github] }
repo.create(contributor)
end
end
end
private
def repo
@repo ||= ContributorRepository.new
end
end | a37a961839f86035b4ffef32817239aa12d8e440 | lib/contributors/servises/add_new_contributors.rb | lib/contributors/servises/add_new_contributors.rb | Ruby |
<|file_sep|>go/cmd/vtctldclient/plugin_grpcvtctlclient.go.diff
original:
Copyright 2020 The Vitess Authors.
updated:
Copyright 2021 The Vitess Authors.
<|file_sep|>original/go/cmd/vtctldclient/plugin_grpcvtctlclient.go
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package main
// Imports and register the gRPC vtctl client.
import (
_ "vitess.io/vitess/go/vt/vtctl/grpcvtctlclient"
)
<|file_sep|>current/go/cmd/vtctldclient/plugin_grpcvtctlclient.go
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package main
// Imports and register the gRPC vtctl client.
import (
_ "vitess.io/vitess/go/vt/vtctl/grpcvtctlclient"
)
<|file_sep|>updated/go/cmd/vtctldclient/plugin_grpcvtctlclient.go |
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package main
// Imports and registers the gRPC vtctl client.
import (
_ "vitess.io/vitess/go/vt/vtctl/grpcvtctlclient"
) | <|file_sep|>go/cmd/vtctldclient/plugin_grpcvtctlclient.go.diff
original:
Copyright 2020 The Vitess Authors.
updated:
Copyright 2021 The Vitess Authors.
<|file_sep|>original/go/cmd/vtctldclient/plugin_grpcvtctlclient.go
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package main
// Imports and register the gRPC vtctl client.
import (
_ "vitess.io/vitess/go/vt/vtctl/grpcvtctlclient"
)
<|file_sep|>current/go/cmd/vtctldclient/plugin_grpcvtctlclient.go
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package main
// Imports and register the gRPC vtctl client.
import (
_ "vitess.io/vitess/go/vt/vtctl/grpcvtctlclient"
)
<|file_sep|>updated/go/cmd/vtctldclient/plugin_grpcvtctlclient.go
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package main
// Imports and registers the gRPC vtctl client.
import (
_ "vitess.io/vitess/go/vt/vtctl/grpcvtctlclient"
) | c3fb79c44f6d45413075c1629ae94a7272a7f857 | go/cmd/vtctldclient/plugin_grpcvtctlclient.go | go/cmd/vtctldclient/plugin_grpcvtctlclient.go | Go |
<|file_sep|>original/requirements.txt
fonttools[ufo,lxml,unicode]==4.28.5
cu2qu==1.6.7.post1
glyphsLib==6.0.4
ufo2ft[pathops]==2.25.2
MutatorMath==3.0.1
fontMath==0.9.1
defcon[lxml]==0.10.0; platform_python_implementation == 'CPython'
defcon==0.10.0; platform_python_implementation != 'CPython'
booleanOperations==0.9.0
ufoLib2==0.13.0
attrs==21.4.0
cffsubr==0.2.9.post1
compreffor==0.5.1.post1
ttfautohint-py==0.5.0
<|file_sep|>current/requirements.txt
fonttools[ufo,lxml,unicode]==4.28.5
cu2qu==1.6.7.post1
glyphsLib==6.0.4
ufo2ft[pathops]==2.25.2
MutatorMath==3.0.1
fontMath==0.9.1
defcon[lxml]==0.10.0; platform_python_implementation == 'CPython'
defcon==0.10.0; platform_python_implementation != 'CPython'
booleanOperations==0.9.0
ufoLib2==0.13.0
attrs==21.4.0
cffsubr==0.2.9.post1
compreffor==0.5.1.post1
ttfautohint-py==0.5.0
<|file_sep|>updated/requirements.txt | fonttools[unicode,lxml,ufo]==4.29.1
cu2qu==1.6.7.post1
glyphsLib==6.0.4
ufo2ft[pathops]==2.25.2
MutatorMath==3.0.1
fontMath==0.9.1
defcon[lxml]==0.10.0; platform_python_implementation == 'CPython'
defcon==0.10.0; platform_python_implementation != 'CPython'
booleanOperations==0.9.0
ufoLib2==0.13.0
attrs==21.4.0
cffsubr==0.2.9.post1
compreffor==0.5.1.post1
ttfautohint-py==0.5.0 | <|file_sep|>original/requirements.txt
fonttools[ufo,lxml,unicode]==4.28.5
cu2qu==1.6.7.post1
glyphsLib==6.0.4
ufo2ft[pathops]==2.25.2
MutatorMath==3.0.1
fontMath==0.9.1
defcon[lxml]==0.10.0; platform_python_implementation == 'CPython'
defcon==0.10.0; platform_python_implementation != 'CPython'
booleanOperations==0.9.0
ufoLib2==0.13.0
attrs==21.4.0
cffsubr==0.2.9.post1
compreffor==0.5.1.post1
ttfautohint-py==0.5.0
<|file_sep|>current/requirements.txt
fonttools[ufo,lxml,unicode]==4.28.5
cu2qu==1.6.7.post1
glyphsLib==6.0.4
ufo2ft[pathops]==2.25.2
MutatorMath==3.0.1
fontMath==0.9.1
defcon[lxml]==0.10.0; platform_python_implementation == 'CPython'
defcon==0.10.0; platform_python_implementation != 'CPython'
booleanOperations==0.9.0
ufoLib2==0.13.0
attrs==21.4.0
cffsubr==0.2.9.post1
compreffor==0.5.1.post1
ttfautohint-py==0.5.0
<|file_sep|>updated/requirements.txt
fonttools[unicode,lxml,ufo]==4.29.1
cu2qu==1.6.7.post1
glyphsLib==6.0.4
ufo2ft[pathops]==2.25.2
MutatorMath==3.0.1
fontMath==0.9.1
defcon[lxml]==0.10.0; platform_python_implementation == 'CPython'
defcon==0.10.0; platform_python_implementation != 'CPython'
booleanOperations==0.9.0
ufoLib2==0.13.0
attrs==21.4.0
cffsubr==0.2.9.post1
compreffor==0.5.1.post1
ttfautohint-py==0.5.0 | 346ae1bb2a5297d49bfe459606f768b3eef97988 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/react-github-battle/app/main.css
<|file_sep|>current/react-github-battle/app/main.css
<|file_sep|>updated/react-github-battle/app/main.css | .appear-enter {
transition-duration: .7s;
transition-property: opacity;
transition-timing-function: east-out;
opacity: 0;
}
.appear-enter.appear-enter-active {
opacity: 1;
}
.appear-leave {
opacity: 0;
} | <|file_sep|>original/react-github-battle/app/main.css
<|file_sep|>current/react-github-battle/app/main.css
<|file_sep|>updated/react-github-battle/app/main.css
.appear-enter {
transition-duration: .7s;
transition-property: opacity;
transition-timing-function: east-out;
opacity: 0;
}
.appear-enter.appear-enter-active {
opacity: 1;
}
.appear-leave {
opacity: 0;
} | 8dfb2086f56ffc0b418e9676edde0892f993d08a | react-github-battle/app/main.css | react-github-battle/app/main.css | CSS |
<|file_sep|>original/lib/commands/run.js
];
if (options._.length) {
argv.push(options._[0]);
}
// TODO(schoon) - What arguments should we pass to the server?
var npm = common.pFork(common.config().serverRoot, {
cwd: common.config().serverRoot
});
return common.cordova(argv, {
cwd: common.config().clientRoot
}).then(function () {
npm.child.kill();
return npm;
});
}
module.exports = run;
<|file_sep|>current/lib/commands/run.js
];
if (options._.length) {
argv.push(options._[0]);
}
// TODO(schoon) - What arguments should we pass to the server?
var npm = common.pFork(common.config().serverRoot, {
cwd: common.config().serverRoot
});
return common.cordova(argv, {
cwd: common.config().clientRoot
}).then(function () {
npm.child.kill();
return npm;
});
}
module.exports = run;
<|file_sep|>updated/lib/commands/run.js |
if (options._.length) {
argv.push(options._[0]);
}
// TODO(schoon) - What arguments should we pass to the server?
var npm = common.pFork(common.config().serverRoot, {
cwd: common.config().serverRoot
});
return common.cordova(argv, {
cwd: common.config().clientRoot
}).then(function () {
console.log('');
console.log('Both client and server are now running. Press Ctrl-C to exit.');
return npm;
});
}
module.exports = run; | <|file_sep|>original/lib/commands/run.js
];
if (options._.length) {
argv.push(options._[0]);
}
// TODO(schoon) - What arguments should we pass to the server?
var npm = common.pFork(common.config().serverRoot, {
cwd: common.config().serverRoot
});
return common.cordova(argv, {
cwd: common.config().clientRoot
}).then(function () {
npm.child.kill();
return npm;
});
}
module.exports = run;
<|file_sep|>current/lib/commands/run.js
];
if (options._.length) {
argv.push(options._[0]);
}
// TODO(schoon) - What arguments should we pass to the server?
var npm = common.pFork(common.config().serverRoot, {
cwd: common.config().serverRoot
});
return common.cordova(argv, {
cwd: common.config().clientRoot
}).then(function () {
npm.child.kill();
return npm;
});
}
module.exports = run;
<|file_sep|>updated/lib/commands/run.js
if (options._.length) {
argv.push(options._[0]);
}
// TODO(schoon) - What arguments should we pass to the server?
var npm = common.pFork(common.config().serverRoot, {
cwd: common.config().serverRoot
});
return common.cordova(argv, {
cwd: common.config().clientRoot
}).then(function () {
console.log('');
console.log('Both client and server are now running. Press Ctrl-C to exit.');
return npm;
});
}
module.exports = run; | f9b8237d1041953dc18dc537db31362632e278d3 | lib/commands/run.js | lib/commands/run.js | JavaScript |
<|file_sep|>original/autogen.sh
#!/bin/sh
mkdir -p m4 || exit $?
autoreconf --install || exit $?
# This code patches ltmain.sh if GNU Libtool version < 2.4.2
# so that it correctly links in OpenMP if required
command -v libtool >/dev/null 2>/dev/null
if [ $? -eq 0 ]
then
libtool_version=$(libtool --version 2>/dev/null | head -n1 | cut -d' ' -f4)
libtool1=$(echo $libtool_version | cut -d'.' -f1)
libtool2=$(echo $libtool_version | cut -d'.' -f2)
libtool3=$(echo $libtool_version | cut -d'.' -f3)
libtool_version=$(expr $libtool1 '*' 1000000 '+' $libtool2 '*' 1000 '+' $libtool3 2>/dev/null)
if [ "$libtool" != "" ] && [ $libtool_version -lt 2004002 ]
then
sed 's/|-threads)/-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)/g' ltmain.sh > ltmain2.sh
mv -f ltmain2.sh ltmain.sh
find . -exec touch {} \;
fi
fi
<|file_sep|>current/autogen.sh
#!/bin/sh
mkdir -p m4 || exit $?
autoreconf --install || exit $?
# This code patches ltmain.sh if GNU Libtool version < 2.4.2
# so that it correctly links in OpenMP if required
command -v libtool >/dev/null 2>/dev/null
if [ $? -eq 0 ]
then
libtool_version=$(libtool --version 2>/dev/null | head -n1 | cut -d' ' -f4)
libtool1=$(echo $libtool_version | cut -d'.' -f1)
libtool2=$(echo $libtool_version | cut -d'.' -f2)
libtool3=$(echo $libtool_version | cut -d'.' -f3)
libtool_version=$(expr $libtool1 '*' 1000000 '+' $libtool2 '*' 1000 '+' $libtool3 2>/dev/null)
if [ "$libtool" != "" ] && [ $libtool_version -lt 2004002 ]
then
sed 's/|-threads)/-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)/g' ltmain.sh > ltmain2.sh
mv -f ltmain2.sh ltmain.sh
find . -exec touch {} \;
fi
fi
<|file_sep|>updated/autogen.sh | #!/bin/sh
mkdir -p m4 || exit $?
autoreconf --install || exit $?
# This code patches ltmain.sh if GNU Libtool version < 2.4.2
# so that it correctly links in OpenMP if required
command -v libtool >/dev/null 2>/dev/null
if [ $? -eq 0 ]
then
libtool_version=$(libtool --version 2>/dev/null | head -n1 | cut -d' ' -f4)
libtool1=$(echo 0$libtool_version | cut -d'.' -f1)
libtool2=$(echo 0$libtool_version | cut -d'.' -f2)
libtool3=$(echo 0$libtool_version | cut -d'.' -f3)
libtool_version=$(expr $libtool1 '*' 1000000 '+' $libtool2 '*' 1000 '+' $libtool3 2>/dev/null)
if [ "$libtool" != "" ] && [ $libtool_version -lt 2004002 ]
then
sed 's/|-threads)/-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)/g' ltmain.sh > ltmain2.sh
mv -f ltmain2.sh ltmain.sh
find . -exec touch {} \;
fi
fi | <|file_sep|>original/autogen.sh
#!/bin/sh
mkdir -p m4 || exit $?
autoreconf --install || exit $?
# This code patches ltmain.sh if GNU Libtool version < 2.4.2
# so that it correctly links in OpenMP if required
command -v libtool >/dev/null 2>/dev/null
if [ $? -eq 0 ]
then
libtool_version=$(libtool --version 2>/dev/null | head -n1 | cut -d' ' -f4)
libtool1=$(echo $libtool_version | cut -d'.' -f1)
libtool2=$(echo $libtool_version | cut -d'.' -f2)
libtool3=$(echo $libtool_version | cut -d'.' -f3)
libtool_version=$(expr $libtool1 '*' 1000000 '+' $libtool2 '*' 1000 '+' $libtool3 2>/dev/null)
if [ "$libtool" != "" ] && [ $libtool_version -lt 2004002 ]
then
sed 's/|-threads)/-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)/g' ltmain.sh > ltmain2.sh
mv -f ltmain2.sh ltmain.sh
find . -exec touch {} \;
fi
fi
<|file_sep|>current/autogen.sh
#!/bin/sh
mkdir -p m4 || exit $?
autoreconf --install || exit $?
# This code patches ltmain.sh if GNU Libtool version < 2.4.2
# so that it correctly links in OpenMP if required
command -v libtool >/dev/null 2>/dev/null
if [ $? -eq 0 ]
then
libtool_version=$(libtool --version 2>/dev/null | head -n1 | cut -d' ' -f4)
libtool1=$(echo $libtool_version | cut -d'.' -f1)
libtool2=$(echo $libtool_version | cut -d'.' -f2)
libtool3=$(echo $libtool_version | cut -d'.' -f3)
libtool_version=$(expr $libtool1 '*' 1000000 '+' $libtool2 '*' 1000 '+' $libtool3 2>/dev/null)
if [ "$libtool" != "" ] && [ $libtool_version -lt 2004002 ]
then
sed 's/|-threads)/-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)/g' ltmain.sh > ltmain2.sh
mv -f ltmain2.sh ltmain.sh
find . -exec touch {} \;
fi
fi
<|file_sep|>updated/autogen.sh
#!/bin/sh
mkdir -p m4 || exit $?
autoreconf --install || exit $?
# This code patches ltmain.sh if GNU Libtool version < 2.4.2
# so that it correctly links in OpenMP if required
command -v libtool >/dev/null 2>/dev/null
if [ $? -eq 0 ]
then
libtool_version=$(libtool --version 2>/dev/null | head -n1 | cut -d' ' -f4)
libtool1=$(echo 0$libtool_version | cut -d'.' -f1)
libtool2=$(echo 0$libtool_version | cut -d'.' -f2)
libtool3=$(echo 0$libtool_version | cut -d'.' -f3)
libtool_version=$(expr $libtool1 '*' 1000000 '+' $libtool2 '*' 1000 '+' $libtool3 2>/dev/null)
if [ "$libtool" != "" ] && [ $libtool_version -lt 2004002 ]
then
sed 's/|-threads)/-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)/g' ltmain.sh > ltmain2.sh
mv -f ltmain2.sh ltmain.sh
find . -exec touch {} \;
fi
fi | fd24ec89207615a20bcbb2fe147b8ea9a67209c3 | autogen.sh | autogen.sh | Shell |
<|file_sep|>original/src/test/java/de/retest/recheck/RecheckOptionsTest.java
<|file_sep|>current/src/test/java/de/retest/recheck/RecheckOptionsTest.java
<|file_sep|>updated/src/test/java/de/retest/recheck/RecheckOptionsTest.java | package de.retest.recheck;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;
import org.junit.jupiter.api.Test;
class RecheckOptionsTest {
@Test
void should_reuse_file_namer_strategy_for_suite_name() throws Exception {
final FileNamerStrategy fileNamerStrategy = mock( FileNamerStrategy.class );
final RecheckOptions cut = RecheckOptions.builder() //
.fileNamerStrategy( fileNamerStrategy ) //
.build();
assertThat( cut.getSuiteName() ).isEqualTo( fileNamerStrategy.getTestClassName() );
}
@Test | <|file_sep|>original/src/test/java/de/retest/recheck/RecheckOptionsTest.java
<|file_sep|>current/src/test/java/de/retest/recheck/RecheckOptionsTest.java
<|file_sep|>updated/src/test/java/de/retest/recheck/RecheckOptionsTest.java
package de.retest.recheck;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;
import org.junit.jupiter.api.Test;
class RecheckOptionsTest {
@Test
void should_reuse_file_namer_strategy_for_suite_name() throws Exception {
final FileNamerStrategy fileNamerStrategy = mock( FileNamerStrategy.class );
final RecheckOptions cut = RecheckOptions.builder() //
.fileNamerStrategy( fileNamerStrategy ) //
.build();
assertThat( cut.getSuiteName() ).isEqualTo( fileNamerStrategy.getTestClassName() );
}
@Test | 83bb2600f7a8bb5c670cf361b6c58d8dbfb27fb6 | src/test/java/de/retest/recheck/RecheckOptionsTest.java | src/test/java/de/retest/recheck/RecheckOptionsTest.java | Java |
<|file_sep|>original/lib/specinfra/backend/dockerfile.rb
# -*- coding: utf-8 -*-
module Specinfra::Backend
class Dockerfile < Specinfra::Backend::Base
def initialize
@lines = []
ObjectSpace.define_finalizer(self) {
puts @lines
}
end
def run_command(cmd, opts={})
@lines << "RUN #{cmd}"
CommandResult.new
end
def from(base)
@lines << "FROM #{base}"
end
end
end
<|file_sep|>current/lib/specinfra/backend/dockerfile.rb
# -*- coding: utf-8 -*-
module Specinfra::Backend
class Dockerfile < Specinfra::Backend::Base
def initialize
@lines = []
ObjectSpace.define_finalizer(self) {
puts @lines
}
end
def run_command(cmd, opts={})
@lines << "RUN #{cmd}"
CommandResult.new
end
def from(base)
@lines << "FROM #{base}"
end
end
end
<|file_sep|>updated/lib/specinfra/backend/dockerfile.rb | @lines = []
ObjectSpace.define_finalizer(self) {
puts @lines
}
end
def run_command(cmd, opts={})
@lines << "RUN #{cmd}"
CommandResult.new
end
def send_file(from, to)
@lines << "ADD #{from} #{to}"
CommandResult.new
end
def from(base)
@lines << "FROM #{base}"
end
end
end | <|file_sep|>original/lib/specinfra/backend/dockerfile.rb
# -*- coding: utf-8 -*-
module Specinfra::Backend
class Dockerfile < Specinfra::Backend::Base
def initialize
@lines = []
ObjectSpace.define_finalizer(self) {
puts @lines
}
end
def run_command(cmd, opts={})
@lines << "RUN #{cmd}"
CommandResult.new
end
def from(base)
@lines << "FROM #{base}"
end
end
end
<|file_sep|>current/lib/specinfra/backend/dockerfile.rb
# -*- coding: utf-8 -*-
module Specinfra::Backend
class Dockerfile < Specinfra::Backend::Base
def initialize
@lines = []
ObjectSpace.define_finalizer(self) {
puts @lines
}
end
def run_command(cmd, opts={})
@lines << "RUN #{cmd}"
CommandResult.new
end
def from(base)
@lines << "FROM #{base}"
end
end
end
<|file_sep|>updated/lib/specinfra/backend/dockerfile.rb
@lines = []
ObjectSpace.define_finalizer(self) {
puts @lines
}
end
def run_command(cmd, opts={})
@lines << "RUN #{cmd}"
CommandResult.new
end
def send_file(from, to)
@lines << "ADD #{from} #{to}"
CommandResult.new
end
def from(base)
@lines << "FROM #{base}"
end
end
end | 285854a416a27a4649f4a6963d997e772aa4f805 | lib/specinfra/backend/dockerfile.rb | lib/specinfra/backend/dockerfile.rb | Ruby |
<|file_sep|>original/.travis.yml
language: python
python:
- "3.6"
install:
- pip install pipenv
- pipenv sync
script:
- py.test
- flake8
after_success:
- coveralls
<|file_sep|>current/.travis.yml
language: python
python:
- "3.6"
install:
- pip install pipenv
- pipenv sync
script:
- py.test
- flake8
after_success:
- coveralls
<|file_sep|>updated/.travis.yml | language: python
python:
- "3.6"
install:
- pip install pipenv
- pipenv sync
- pipenv shell
script:
- py.test
- flake8
after_success:
- coveralls | <|file_sep|>original/.travis.yml
language: python
python:
- "3.6"
install:
- pip install pipenv
- pipenv sync
script:
- py.test
- flake8
after_success:
- coveralls
<|file_sep|>current/.travis.yml
language: python
python:
- "3.6"
install:
- pip install pipenv
- pipenv sync
script:
- py.test
- flake8
after_success:
- coveralls
<|file_sep|>updated/.travis.yml
language: python
python:
- "3.6"
install:
- pip install pipenv
- pipenv sync
- pipenv shell
script:
- py.test
- flake8
after_success:
- coveralls | 549d89ecd75848a09e7b3498d2ed35fee2f1633a | .travis.yml | .travis.yml | YAML |
<|file_sep|>ReactiveCocoaTests/Shared/NSLayoutConstraintSpec.swift.diff
original:
expect(constraint.constant).to(equal(5.0))
updated:
expect(constraint.constant) ≈ 5.0
<|file_sep|>original/ReactiveCocoaTests/Shared/NSLayoutConstraintSpec.swift
afterEach {
constraint = nil
expect(_constraint).to(beNil())
}
it("should accept changes from bindings to its constant") {
expect(constraint.constant).to(equal(0.0))
let (pipeSignal, observer) = Signal<CGFloat, NoError>.pipe()
constraint.reactive.constant <~ pipeSignal
observer.send(value: 5.0)
expect(constraint.constant).to(equal(5.0))
observer.send(value: -3.0)
expect(constraint.constant).to(equal(-3.0))
}
}
}
<|file_sep|>current/ReactiveCocoaTests/Shared/NSLayoutConstraintSpec.swift
afterEach {
constraint = nil
expect(_constraint).to(beNil())
}
it("should accept changes from bindings to its constant") {
expect(constraint.constant).to(equal(0.0))
let (pipeSignal, observer) = Signal<CGFloat, NoError>.pipe()
constraint.reactive.constant <~ pipeSignal
observer.send(value: 5.0)
expect(constraint.constant) ≈ 5.0
observer.send(value: -3.0)
expect(constraint.constant).to(equal(-3.0))
}
}
}
<|file_sep|>updated/ReactiveCocoaTests/Shared/NSLayoutConstraintSpec.swift |
afterEach {
constraint = nil
expect(_constraint).to(beNil())
}
it("should accept changes from bindings to its constant") {
expect(constraint.constant).to(equal(0.0))
let (pipeSignal, observer) = Signal<CGFloat, NoError>.pipe()
constraint.reactive.constant <~ pipeSignal
observer.send(value: 5.0)
expect(constraint.constant) ≈ 5.0
observer.send(value: -3.0)
expect(constraint.constant) ≈ -3.0
}
}
} | <|file_sep|>ReactiveCocoaTests/Shared/NSLayoutConstraintSpec.swift.diff
original:
expect(constraint.constant).to(equal(5.0))
updated:
expect(constraint.constant) ≈ 5.0
<|file_sep|>original/ReactiveCocoaTests/Shared/NSLayoutConstraintSpec.swift
afterEach {
constraint = nil
expect(_constraint).to(beNil())
}
it("should accept changes from bindings to its constant") {
expect(constraint.constant).to(equal(0.0))
let (pipeSignal, observer) = Signal<CGFloat, NoError>.pipe()
constraint.reactive.constant <~ pipeSignal
observer.send(value: 5.0)
expect(constraint.constant).to(equal(5.0))
observer.send(value: -3.0)
expect(constraint.constant).to(equal(-3.0))
}
}
}
<|file_sep|>current/ReactiveCocoaTests/Shared/NSLayoutConstraintSpec.swift
afterEach {
constraint = nil
expect(_constraint).to(beNil())
}
it("should accept changes from bindings to its constant") {
expect(constraint.constant).to(equal(0.0))
let (pipeSignal, observer) = Signal<CGFloat, NoError>.pipe()
constraint.reactive.constant <~ pipeSignal
observer.send(value: 5.0)
expect(constraint.constant) ≈ 5.0
observer.send(value: -3.0)
expect(constraint.constant).to(equal(-3.0))
}
}
}
<|file_sep|>updated/ReactiveCocoaTests/Shared/NSLayoutConstraintSpec.swift
afterEach {
constraint = nil
expect(_constraint).to(beNil())
}
it("should accept changes from bindings to its constant") {
expect(constraint.constant).to(equal(0.0))
let (pipeSignal, observer) = Signal<CGFloat, NoError>.pipe()
constraint.reactive.constant <~ pipeSignal
observer.send(value: 5.0)
expect(constraint.constant) ≈ 5.0
observer.send(value: -3.0)
expect(constraint.constant) ≈ -3.0
}
}
} | cbd88a2bc469dbc28a16112724a131d98b4a7002 | ReactiveCocoaTests/Shared/NSLayoutConstraintSpec.swift | ReactiveCocoaTests/Shared/NSLayoutConstraintSpec.swift | Swift |
<|file_sep|>original/build.ps1
Task default -depends Compile
Task Clean {
msbuild "/property:Configuration=Release" "/t:Clean" "$sln_file"
}
Task Init -depends Clean {
}
Task Compile -depends Init {
msbuild "/property:Configuration=Release" "$sln_file"
}
Task Release -depends Compile {
}
Task Package -depends Release {
nuget pack .\Fractions\Fractions.csproj -Prop Configuration=Release
}
<|file_sep|>current/build.ps1
Task default -depends Compile
Task Clean {
msbuild "/property:Configuration=Release" "/t:Clean" "$sln_file"
}
Task Init -depends Clean {
}
Task Compile -depends Init {
msbuild "/property:Configuration=Release" "$sln_file"
}
Task Release -depends Compile {
}
Task Package -depends Release {
nuget pack .\Fractions\Fractions.csproj -Prop Configuration=Release
}
<|file_sep|>updated/build.ps1 |
Task default -depends Compile
Task Clean {
msbuild "/property:Configuration=Release" "/t:Clean" "$sln_file"
}
Task Init -depends Clean {
}
Task Compile -depends Init {
msbuild "/property:Configuration=Release" "$sln_file"
}
Task Release -depends Compile {
}
Task Package -depends Release {
nuget pack .\Fractions\Fractions.csproj -Symbols -Prop Configuration=Release
}
| <|file_sep|>original/build.ps1
Task default -depends Compile
Task Clean {
msbuild "/property:Configuration=Release" "/t:Clean" "$sln_file"
}
Task Init -depends Clean {
}
Task Compile -depends Init {
msbuild "/property:Configuration=Release" "$sln_file"
}
Task Release -depends Compile {
}
Task Package -depends Release {
nuget pack .\Fractions\Fractions.csproj -Prop Configuration=Release
}
<|file_sep|>current/build.ps1
Task default -depends Compile
Task Clean {
msbuild "/property:Configuration=Release" "/t:Clean" "$sln_file"
}
Task Init -depends Clean {
}
Task Compile -depends Init {
msbuild "/property:Configuration=Release" "$sln_file"
}
Task Release -depends Compile {
}
Task Package -depends Release {
nuget pack .\Fractions\Fractions.csproj -Prop Configuration=Release
}
<|file_sep|>updated/build.ps1
Task default -depends Compile
Task Clean {
msbuild "/property:Configuration=Release" "/t:Clean" "$sln_file"
}
Task Init -depends Clean {
}
Task Compile -depends Init {
msbuild "/property:Configuration=Release" "$sln_file"
}
Task Release -depends Compile {
}
Task Package -depends Release {
nuget pack .\Fractions\Fractions.csproj -Symbols -Prop Configuration=Release
}
| d6d94302fb333acdef24d588b508c2c7c7ac3df9 | build.ps1 | build.ps1 | PowerShell |
<|file_sep|>tools/README.md.diff
original:
$ sudo apt install -y virtinst
$ sudo apt install -y xorriso
updated:
$ sudo apt install -y virtinst qemu-kvm
$ sudo apt install -y xorriso uuid-runtime genisoimage
<|file_sep|>original/tools/README.md
```
## Node up!
```bash
$ export NODE_OS_DISTRO=ubuntu # Select your OS distribution
$ export NODE_ADDRESS_PREFIX=192.168.200 # Specify Node address prefix
$ export NODE_NETWORK_RANGE=16 # Specify Node network range
$ export NODE_GATEWAY=192.168.11.1 # Specify default gateway
$ export NODE_DNS=192.168.11.1 # Specify DNS server address
$ bash tools/node-up.sh tools/envs/master01.sh # Start master01 server
$ bash tools/node-up.sh tools/envs/worker01.sh # Start worker01 server
```
### For Ubuntu/CentOS
1. Build docker-installed image.
- See [elements/docker-install/REDME.md](../elements/docker-install/README.md)
2. Copy built image to required path.
- `cp ubuntu-xenial-docker-ec2-noclouds.qcow2 /var/lib/libvirt/images/ubuntu-xenial-docker-ec2-noclouds.qcow2`
- `cp centos7-docker-ec2-noclouds.qcow2 /var/lib/libvirt/images/centos7-docker-ec2-noclouds.qcow2`
<|file_sep|>current/tools/README.md
```
## Node up!
```bash
$ export NODE_OS_DISTRO=ubuntu # Select your OS distribution
$ export NODE_ADDRESS_PREFIX=192.168.200 # Specify Node address prefix
$ export NODE_NETWORK_RANGE=16 # Specify Node network range
$ export NODE_GATEWAY=192.168.11.1 # Specify default gateway
$ export NODE_DNS=192.168.11.1 # Specify DNS server address
$ bash tools/node-up.sh tools/envs/master01.sh # Start master01 server
$ bash tools/node-up.sh tools/envs/worker01.sh # Start worker01 server
```
### For Ubuntu/CentOS
1. Build docker-installed image.
- See [elements/docker-install/REDME.md](../elements/docker-install/README.md)
2. Copy built image to required path.
- `cp ubuntu-xenial-docker-ec2-noclouds.qcow2 /var/lib/libvirt/images/ubuntu-xenial-docker-ec2-noclouds.qcow2`
- `cp centos7-docker-ec2-noclouds.qcow2 /var/lib/libvirt/images/centos7-docker-ec2-noclouds.qcow2`
<|file_sep|>updated/tools/README.md | ```
## Node up!
```bash
$ export NODE_OS_DISTRO=ubuntu # Select your OS distribution
$ export NODE_ADDRESS_PREFIX=192.168.200 # Specify Node address prefix
$ export NODE_NETWORK_RANGE=16 # Specify Node network range
$ export NODE_GATEWAY=192.168.11.1 # Specify default gateway
$ export NODE_DNS=192.168.11.1 # Specify DNS server address
$ bash tools/node-up.sh tools/envs/master01.sh # Start master01 server
$ bash tools/node-up.sh tools/envs/worker01.sh # Start worker01 server
```
### For Ubuntu/CentOS
1. Build docker-installed image.
- See [elements/docker-install/REDME.md](../elements/docker-install/README.md)
2. Copy built image to required path.
- `sudo cp ubuntu-xenial-docker-ec2-noclouds.qcow2 /var/lib/libvirt/images/ubuntu-xenial-docker-ec2-noclouds.qcow2`
- `sudo cp centos7-docker-ec2-noclouds.qcow2 /var/lib/libvirt/images/centos7-docker-ec2-noclouds.qcow2` | <|file_sep|>tools/README.md.diff
original:
$ sudo apt install -y virtinst
$ sudo apt install -y xorriso
updated:
$ sudo apt install -y virtinst qemu-kvm
$ sudo apt install -y xorriso uuid-runtime genisoimage
<|file_sep|>original/tools/README.md
```
## Node up!
```bash
$ export NODE_OS_DISTRO=ubuntu # Select your OS distribution
$ export NODE_ADDRESS_PREFIX=192.168.200 # Specify Node address prefix
$ export NODE_NETWORK_RANGE=16 # Specify Node network range
$ export NODE_GATEWAY=192.168.11.1 # Specify default gateway
$ export NODE_DNS=192.168.11.1 # Specify DNS server address
$ bash tools/node-up.sh tools/envs/master01.sh # Start master01 server
$ bash tools/node-up.sh tools/envs/worker01.sh # Start worker01 server
```
### For Ubuntu/CentOS
1. Build docker-installed image.
- See [elements/docker-install/REDME.md](../elements/docker-install/README.md)
2. Copy built image to required path.
- `cp ubuntu-xenial-docker-ec2-noclouds.qcow2 /var/lib/libvirt/images/ubuntu-xenial-docker-ec2-noclouds.qcow2`
- `cp centos7-docker-ec2-noclouds.qcow2 /var/lib/libvirt/images/centos7-docker-ec2-noclouds.qcow2`
<|file_sep|>current/tools/README.md
```
## Node up!
```bash
$ export NODE_OS_DISTRO=ubuntu # Select your OS distribution
$ export NODE_ADDRESS_PREFIX=192.168.200 # Specify Node address prefix
$ export NODE_NETWORK_RANGE=16 # Specify Node network range
$ export NODE_GATEWAY=192.168.11.1 # Specify default gateway
$ export NODE_DNS=192.168.11.1 # Specify DNS server address
$ bash tools/node-up.sh tools/envs/master01.sh # Start master01 server
$ bash tools/node-up.sh tools/envs/worker01.sh # Start worker01 server
```
### For Ubuntu/CentOS
1. Build docker-installed image.
- See [elements/docker-install/REDME.md](../elements/docker-install/README.md)
2. Copy built image to required path.
- `cp ubuntu-xenial-docker-ec2-noclouds.qcow2 /var/lib/libvirt/images/ubuntu-xenial-docker-ec2-noclouds.qcow2`
- `cp centos7-docker-ec2-noclouds.qcow2 /var/lib/libvirt/images/centos7-docker-ec2-noclouds.qcow2`
<|file_sep|>updated/tools/README.md
```
## Node up!
```bash
$ export NODE_OS_DISTRO=ubuntu # Select your OS distribution
$ export NODE_ADDRESS_PREFIX=192.168.200 # Specify Node address prefix
$ export NODE_NETWORK_RANGE=16 # Specify Node network range
$ export NODE_GATEWAY=192.168.11.1 # Specify default gateway
$ export NODE_DNS=192.168.11.1 # Specify DNS server address
$ bash tools/node-up.sh tools/envs/master01.sh # Start master01 server
$ bash tools/node-up.sh tools/envs/worker01.sh # Start worker01 server
```
### For Ubuntu/CentOS
1. Build docker-installed image.
- See [elements/docker-install/REDME.md](../elements/docker-install/README.md)
2. Copy built image to required path.
- `sudo cp ubuntu-xenial-docker-ec2-noclouds.qcow2 /var/lib/libvirt/images/ubuntu-xenial-docker-ec2-noclouds.qcow2`
- `sudo cp centos7-docker-ec2-noclouds.qcow2 /var/lib/libvirt/images/centos7-docker-ec2-noclouds.qcow2` | 5c27256e0b990b5762e7785dbc2d8928844c64cc | tools/README.md | tools/README.md | Markdown |
<|file_sep|>original/README.md
$ git clone https://github.com/mateusduraes/crawler-br-news.git
$ cd crawler-br-news
$ npm install
```
### How to execute crawler-br-news?
```sh
$ npm run start:build
```
The output will look like the below image. :smile:
<img align="center" src="lib.gif" alt="Gif showing project">
### ToDO List
* Write tests.
<|file_sep|>current/README.md
$ git clone https://github.com/mateusduraes/crawler-br-news.git
$ cd crawler-br-news
$ npm install
```
### How to execute crawler-br-news?
```sh
$ npm run start:build
```
The output will look like the below image. :smile:
<img align="center" src="lib.gif" alt="Gif showing project">
### ToDO List
* Write tests.
<|file_sep|>updated/README.md |
### How to install crawler-br-news?
To run this project, just run the below commands. Assuming you have nodejs installed.
```sh
$ git clone https://github.com/mateusduraes/crawler-br-news.git
$ cd crawler-br-news
$ npm install
```
### How to execute crawler-br-news?
```sh
$ npm run start:build
```
The output will look like the below image. :smile:
<img align="center" src="lib.gif" alt="Gif showing project">
| <|file_sep|>original/README.md
$ git clone https://github.com/mateusduraes/crawler-br-news.git
$ cd crawler-br-news
$ npm install
```
### How to execute crawler-br-news?
```sh
$ npm run start:build
```
The output will look like the below image. :smile:
<img align="center" src="lib.gif" alt="Gif showing project">
### ToDO List
* Write tests.
<|file_sep|>current/README.md
$ git clone https://github.com/mateusduraes/crawler-br-news.git
$ cd crawler-br-news
$ npm install
```
### How to execute crawler-br-news?
```sh
$ npm run start:build
```
The output will look like the below image. :smile:
<img align="center" src="lib.gif" alt="Gif showing project">
### ToDO List
* Write tests.
<|file_sep|>updated/README.md
### How to install crawler-br-news?
To run this project, just run the below commands. Assuming you have nodejs installed.
```sh
$ git clone https://github.com/mateusduraes/crawler-br-news.git
$ cd crawler-br-news
$ npm install
```
### How to execute crawler-br-news?
```sh
$ npm run start:build
```
The output will look like the below image. :smile:
<img align="center" src="lib.gif" alt="Gif showing project">
| bb5a6f21c6b39da387922ba65b99bf9459c1a720 | README.md | README.md | Markdown |
<|file_sep|>original/app/views/forem/admin/categories/_form.html.erb
<%= simple_form_for [forem, :admin, @category] do |f| %>
<%= f.input :name %>
<%= f.submit %>
<% end %>
<|file_sep|>current/app/views/forem/admin/categories/_form.html.erb
<%= simple_form_for [forem, :admin, @category] do |f| %>
<%= f.input :name %>
<%= f.submit %>
<% end %>
<|file_sep|>updated/app/views/forem/admin/categories/_form.html.erb | <%= simple_form_for [forem, :admin, @category] do |f| %>
<%= f.input :name %>
<%= f.submit :class => "btn btn-primary" %>
<% end %> | <|file_sep|>original/app/views/forem/admin/categories/_form.html.erb
<%= simple_form_for [forem, :admin, @category] do |f| %>
<%= f.input :name %>
<%= f.submit %>
<% end %>
<|file_sep|>current/app/views/forem/admin/categories/_form.html.erb
<%= simple_form_for [forem, :admin, @category] do |f| %>
<%= f.input :name %>
<%= f.submit %>
<% end %>
<|file_sep|>updated/app/views/forem/admin/categories/_form.html.erb
<%= simple_form_for [forem, :admin, @category] do |f| %>
<%= f.input :name %>
<%= f.submit :class => "btn btn-primary" %>
<% end %> | d645555e6f3b2f5c2bf33b7eab208f7b28d4b903 | app/views/forem/admin/categories/_form.html.erb | app/views/forem/admin/categories/_form.html.erb | HTML+ERB |
<|file_sep|>original/src/test/almost_equal.py
def datetime_almost_equal(datetime1, datetime2, seconds=60):
dd = datetime1 - datetime2
sd = (dd.days * 24 * 60 * 60) + dd.seconds
return abs(sd) <= seconds
<|file_sep|>current/src/test/almost_equal.py
def datetime_almost_equal(datetime1, datetime2, seconds=60):
dd = datetime1 - datetime2
sd = (dd.days * 24 * 60 * 60) + dd.seconds
return abs(sd) <= seconds
<|file_sep|>updated/src/test/almost_equal.py | from datetime import datetime
import pytz
def datetime_almost_equal(datetime1:datetime, datetime2:datetime, seconds:int=60):
if not(datetime1.tzinfo):
datetime1 = pytz.utc.localize(datetime1)
datetime1 = datetime1.astimezone(pytz.utc)
if not(datetime2.tzinfo):
datetime2 = pytz.utc.localize(datetime2)
datetime2 = datetime2.astimezone(pytz.utc)
dd = datetime1 - datetime2
sd = (dd.days * 24 * 60 * 60) + dd.seconds
return abs(sd) <= seconds | <|file_sep|>original/src/test/almost_equal.py
def datetime_almost_equal(datetime1, datetime2, seconds=60):
dd = datetime1 - datetime2
sd = (dd.days * 24 * 60 * 60) + dd.seconds
return abs(sd) <= seconds
<|file_sep|>current/src/test/almost_equal.py
def datetime_almost_equal(datetime1, datetime2, seconds=60):
dd = datetime1 - datetime2
sd = (dd.days * 24 * 60 * 60) + dd.seconds
return abs(sd) <= seconds
<|file_sep|>updated/src/test/almost_equal.py
from datetime import datetime
import pytz
def datetime_almost_equal(datetime1:datetime, datetime2:datetime, seconds:int=60):
if not(datetime1.tzinfo):
datetime1 = pytz.utc.localize(datetime1)
datetime1 = datetime1.astimezone(pytz.utc)
if not(datetime2.tzinfo):
datetime2 = pytz.utc.localize(datetime2)
datetime2 = datetime2.astimezone(pytz.utc)
dd = datetime1 - datetime2
sd = (dd.days * 24 * 60 * 60) + dd.seconds
return abs(sd) <= seconds | 69b33f8f87b6dfc0fbaf96eca25c02535c9e09e7 | src/test/almost_equal.py | src/test/almost_equal.py | Python |
<|file_sep|>original/js/locales/foundation-datepicker.lv.js
w/**
* Latvian translation for foundation-datepicker
* Artis Avotins <artis@apit.lv>
*/
;(function($){
$.fn.fdatepicker.dates['lv'] = {
days: ["Svētdiena", "Pirmdiena", "Otrdiena", "Trešdiena", "Ceturtdiena", "Piektdiena", "Sestdiena", "Svētdiena"],
daysShort: ["Sv", "P", "O", "T", "C", "Pk", "S", "Sv"],
daysMin: ["Sv", "Pr", "Ot", "Tr", "Ce", "Pk", "St", "Sv"],
months: ["Janvāris", "Februāris", "Marts", "Aprīlis", "Maijs", "Jūnijs", "Jūlijs", "Augusts", "Septembris", "Oktobris", "Novembris", "Decembris"],
monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mai", "Jūn", "Jūl", "Aug", "Sep", "Okt", "Nov", "Dec."],
today: "Šodien",
weekStart: 1
};
}(jQuery));
<|file_sep|>current/js/locales/foundation-datepicker.lv.js
w/**
* Latvian translation for foundation-datepicker
* Artis Avotins <artis@apit.lv>
*/
;(function($){
$.fn.fdatepicker.dates['lv'] = {
days: ["Svētdiena", "Pirmdiena", "Otrdiena", "Trešdiena", "Ceturtdiena", "Piektdiena", "Sestdiena", "Svētdiena"],
daysShort: ["Sv", "P", "O", "T", "C", "Pk", "S", "Sv"],
daysMin: ["Sv", "Pr", "Ot", "Tr", "Ce", "Pk", "St", "Sv"],
months: ["Janvāris", "Februāris", "Marts", "Aprīlis", "Maijs", "Jūnijs", "Jūlijs", "Augusts", "Septembris", "Oktobris", "Novembris", "Decembris"],
monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mai", "Jūn", "Jūl", "Aug", "Sep", "Okt", "Nov", "Dec."],
today: "Šodien",
weekStart: 1
};
}(jQuery));
<|file_sep|>updated/js/locales/foundation-datepicker.lv.js | /**
* Latvian translation for foundation-datepicker
* Artis Avotins <artis@apit.lv>
*/
;(function($){
$.fn.fdatepicker.dates['lv'] = {
days: ["Svētdiena", "Pirmdiena", "Otrdiena", "Trešdiena", "Ceturtdiena", "Piektdiena", "Sestdiena", "Svētdiena"],
daysShort: ["Sv", "P", "O", "T", "C", "Pk", "S", "Sv"],
daysMin: ["Sv", "Pr", "Ot", "Tr", "Ce", "Pk", "St", "Sv"],
months: ["Janvāris", "Februāris", "Marts", "Aprīlis", "Maijs", "Jūnijs", "Jūlijs", "Augusts", "Septembris", "Oktobris", "Novembris", "Decembris"],
monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mai", "Jūn", "Jūl", "Aug", "Sep", "Okt", "Nov", "Dec."],
today: "Šodien",
weekStart: 1
};
}(jQuery)); | <|file_sep|>original/js/locales/foundation-datepicker.lv.js
w/**
* Latvian translation for foundation-datepicker
* Artis Avotins <artis@apit.lv>
*/
;(function($){
$.fn.fdatepicker.dates['lv'] = {
days: ["Svētdiena", "Pirmdiena", "Otrdiena", "Trešdiena", "Ceturtdiena", "Piektdiena", "Sestdiena", "Svētdiena"],
daysShort: ["Sv", "P", "O", "T", "C", "Pk", "S", "Sv"],
daysMin: ["Sv", "Pr", "Ot", "Tr", "Ce", "Pk", "St", "Sv"],
months: ["Janvāris", "Februāris", "Marts", "Aprīlis", "Maijs", "Jūnijs", "Jūlijs", "Augusts", "Septembris", "Oktobris", "Novembris", "Decembris"],
monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mai", "Jūn", "Jūl", "Aug", "Sep", "Okt", "Nov", "Dec."],
today: "Šodien",
weekStart: 1
};
}(jQuery));
<|file_sep|>current/js/locales/foundation-datepicker.lv.js
w/**
* Latvian translation for foundation-datepicker
* Artis Avotins <artis@apit.lv>
*/
;(function($){
$.fn.fdatepicker.dates['lv'] = {
days: ["Svētdiena", "Pirmdiena", "Otrdiena", "Trešdiena", "Ceturtdiena", "Piektdiena", "Sestdiena", "Svētdiena"],
daysShort: ["Sv", "P", "O", "T", "C", "Pk", "S", "Sv"],
daysMin: ["Sv", "Pr", "Ot", "Tr", "Ce", "Pk", "St", "Sv"],
months: ["Janvāris", "Februāris", "Marts", "Aprīlis", "Maijs", "Jūnijs", "Jūlijs", "Augusts", "Septembris", "Oktobris", "Novembris", "Decembris"],
monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mai", "Jūn", "Jūl", "Aug", "Sep", "Okt", "Nov", "Dec."],
today: "Šodien",
weekStart: 1
};
}(jQuery));
<|file_sep|>updated/js/locales/foundation-datepicker.lv.js
/**
* Latvian translation for foundation-datepicker
* Artis Avotins <artis@apit.lv>
*/
;(function($){
$.fn.fdatepicker.dates['lv'] = {
days: ["Svētdiena", "Pirmdiena", "Otrdiena", "Trešdiena", "Ceturtdiena", "Piektdiena", "Sestdiena", "Svētdiena"],
daysShort: ["Sv", "P", "O", "T", "C", "Pk", "S", "Sv"],
daysMin: ["Sv", "Pr", "Ot", "Tr", "Ce", "Pk", "St", "Sv"],
months: ["Janvāris", "Februāris", "Marts", "Aprīlis", "Maijs", "Jūnijs", "Jūlijs", "Augusts", "Septembris", "Oktobris", "Novembris", "Decembris"],
monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mai", "Jūn", "Jūl", "Aug", "Sep", "Okt", "Nov", "Dec."],
today: "Šodien",
weekStart: 1
};
}(jQuery)); | 94e165492705454da2f6fae8c9d3ca3902e2c35f | js/locales/foundation-datepicker.lv.js | js/locales/foundation-datepicker.lv.js | JavaScript |
<|file_sep|>original/convert-2d.sh
openscad $1
fi
}
# Creates a 2d plan of your 3D model
TMPCSG=/tmp/$(basename $1).csg
TMPSCAD=/tmp/$(basename $1).scad
openscad_bin "$1 -D generate=1 -o $TMPCSG" 2>&1 >/dev/null | sed -e 's/ECHO: \"\[LC\] //' -e 's/"$//' -e '$a\;' >$TMPSCAD
sed -i.tmp '1 i\
// May need to adjust location of <lasercut.scad> \
use <lasercut.scad> ;\
\$fn=60;\
projection(cut = false)\
' $TMPSCAD
# Exports in others formats (could be very long)
<|file_sep|>current/convert-2d.sh
openscad $1
fi
}
# Creates a 2d plan of your 3D model
TMPCSG=/tmp/$(basename $1).csg
TMPSCAD=/tmp/$(basename $1).scad
openscad_bin "$1 -D generate=1 -o $TMPCSG" 2>&1 >/dev/null | sed -e 's/ECHO: \"\[LC\] //' -e 's/"$//' -e '$a\;' >$TMPSCAD
sed -i.tmp '1 i\
// May need to adjust location of <lasercut.scad> \
use <lasercut.scad> ;\
\$fn=60;\
projection(cut = false)\
' $TMPSCAD
# Exports in others formats (could be very long)
<|file_sep|>updated/convert-2d.sh | openscad $1
fi
}
# Creates a 2d plan of your 3D model
TMPCSG=/tmp/$(basename $1).csg
TMPSCAD=/tmp/$(basename $1).scad
openscad_bin "$1 -D generate=1 -o $TMPCSG" 2>&1 >/dev/null | sed -e 's/ECHO: \"\[LC\] //' -e 's/"$//' -e '$a\;' -e '/WARNING/d' >$TMPSCAD
sed -i.tmp '1 i\
// May need to adjust location of <lasercut.scad> \
use <lasercut.scad> ;\
\$fn=60;\
projection(cut = false)\
' $TMPSCAD
# Exports in others formats (could be very long)
| <|file_sep|>original/convert-2d.sh
openscad $1
fi
}
# Creates a 2d plan of your 3D model
TMPCSG=/tmp/$(basename $1).csg
TMPSCAD=/tmp/$(basename $1).scad
openscad_bin "$1 -D generate=1 -o $TMPCSG" 2>&1 >/dev/null | sed -e 's/ECHO: \"\[LC\] //' -e 's/"$//' -e '$a\;' >$TMPSCAD
sed -i.tmp '1 i\
// May need to adjust location of <lasercut.scad> \
use <lasercut.scad> ;\
\$fn=60;\
projection(cut = false)\
' $TMPSCAD
# Exports in others formats (could be very long)
<|file_sep|>current/convert-2d.sh
openscad $1
fi
}
# Creates a 2d plan of your 3D model
TMPCSG=/tmp/$(basename $1).csg
TMPSCAD=/tmp/$(basename $1).scad
openscad_bin "$1 -D generate=1 -o $TMPCSG" 2>&1 >/dev/null | sed -e 's/ECHO: \"\[LC\] //' -e 's/"$//' -e '$a\;' >$TMPSCAD
sed -i.tmp '1 i\
// May need to adjust location of <lasercut.scad> \
use <lasercut.scad> ;\
\$fn=60;\
projection(cut = false)\
' $TMPSCAD
# Exports in others formats (could be very long)
<|file_sep|>updated/convert-2d.sh
openscad $1
fi
}
# Creates a 2d plan of your 3D model
TMPCSG=/tmp/$(basename $1).csg
TMPSCAD=/tmp/$(basename $1).scad
openscad_bin "$1 -D generate=1 -o $TMPCSG" 2>&1 >/dev/null | sed -e 's/ECHO: \"\[LC\] //' -e 's/"$//' -e '$a\;' -e '/WARNING/d' >$TMPSCAD
sed -i.tmp '1 i\
// May need to adjust location of <lasercut.scad> \
use <lasercut.scad> ;\
\$fn=60;\
projection(cut = false)\
' $TMPSCAD
# Exports in others formats (could be very long)
| 1b1c738b10429fad2ea5454ebaaf7937ce9b15cb | convert-2d.sh | convert-2d.sh | Shell |
<|file_sep|>original/src/webservice/ajax/details/Organisms_to_traits.php
<|file_sep|>current/src/webservice/ajax/details/Organisms_to_traits.php
<|file_sep|>updated/src/webservice/ajax/details/Organisms_to_traits.php | <?php
namespace ajax\details;
use \PDO as PDO;
/**
* Web Service.
* Returns Organisms with given ids
*/
class Organisms extends \WebService {
/**
* @param $querydata[type_cvterm_id] array of trait type_cvterm_id
* @returns array of organisms accoring to a specific trait type
*/
public function execute($querydata) {
global $db;
}
| <|file_sep|>original/src/webservice/ajax/details/Organisms_to_traits.php
<|file_sep|>current/src/webservice/ajax/details/Organisms_to_traits.php
<|file_sep|>updated/src/webservice/ajax/details/Organisms_to_traits.php
<?php
namespace ajax\details;
use \PDO as PDO;
/**
* Web Service.
* Returns Organisms with given ids
*/
class Organisms extends \WebService {
/**
* @param $querydata[type_cvterm_id] array of trait type_cvterm_id
* @returns array of organisms accoring to a specific trait type
*/
public function execute($querydata) {
global $db;
}
| d88ab5d5d3359b89efb00a49f11358ae6dfb8b1c | src/webservice/ajax/details/Organisms_to_traits.php | src/webservice/ajax/details/Organisms_to_traits.php | PHP |
<|file_sep|>original/app/views/roles/_current_role_holder_with_biography.html.erb
<% if role.current_holder.present? %>
<section id="current-role-holder" class="govuk-!-padding-bottom-9">
<%= render "govuk_publishing_components/components/heading", {
text: t("roles.headings.current_holder"),
} %>
<%= render "govuk_publishing_components/components/heading", {
text: role.current_holder["title"],
margin_bottom: 2,
} %>
<%= render "govuk_publishing_components/components/govspeak", {
} do %>
<%= role.current_holder_biography.html_safe %>
<% end %>
<p class="govuk-body">
<%= link_to "More about this person", role.link_to_person, class: "govuk-link" %>
</p>
</section>
<% end %>
<|file_sep|>current/app/views/roles/_current_role_holder_with_biography.html.erb
<% if role.current_holder.present? %>
<section id="current-role-holder" class="govuk-!-padding-bottom-9">
<%= render "govuk_publishing_components/components/heading", {
text: t("roles.headings.current_holder"),
} %>
<%= render "govuk_publishing_components/components/heading", {
text: role.current_holder["title"],
margin_bottom: 2,
} %>
<%= render "govuk_publishing_components/components/govspeak", {
} do %>
<%= role.current_holder_biography.html_safe %>
<% end %>
<p class="govuk-body">
<%= link_to "More about this person", role.link_to_person, class: "govuk-link" %>
</p>
</section>
<% end %>
<|file_sep|>updated/app/views/roles/_current_role_holder_with_biography.html.erb | <% if role.current_holder.present? %>
<section id="current-role-holder" class="govuk-!-padding-bottom-9">
<%= render "govuk_publishing_components/components/heading", {
text: t("roles.headings.current_holder"),
} %>
<%= render "govuk_publishing_components/components/heading", {
text: role.current_holder["title"],
margin_bottom: 2,
} %>
<%= render "govuk_publishing_components/components/govspeak", {
} do %>
<%= role.current_holder_biography.html_safe %>
<% end %>
<p class="govuk-body">
<%= link_to t("people.read_more"), role.link_to_person, class: "govuk-link" %>
</p>
</section>
<% end %> | <|file_sep|>original/app/views/roles/_current_role_holder_with_biography.html.erb
<% if role.current_holder.present? %>
<section id="current-role-holder" class="govuk-!-padding-bottom-9">
<%= render "govuk_publishing_components/components/heading", {
text: t("roles.headings.current_holder"),
} %>
<%= render "govuk_publishing_components/components/heading", {
text: role.current_holder["title"],
margin_bottom: 2,
} %>
<%= render "govuk_publishing_components/components/govspeak", {
} do %>
<%= role.current_holder_biography.html_safe %>
<% end %>
<p class="govuk-body">
<%= link_to "More about this person", role.link_to_person, class: "govuk-link" %>
</p>
</section>
<% end %>
<|file_sep|>current/app/views/roles/_current_role_holder_with_biography.html.erb
<% if role.current_holder.present? %>
<section id="current-role-holder" class="govuk-!-padding-bottom-9">
<%= render "govuk_publishing_components/components/heading", {
text: t("roles.headings.current_holder"),
} %>
<%= render "govuk_publishing_components/components/heading", {
text: role.current_holder["title"],
margin_bottom: 2,
} %>
<%= render "govuk_publishing_components/components/govspeak", {
} do %>
<%= role.current_holder_biography.html_safe %>
<% end %>
<p class="govuk-body">
<%= link_to "More about this person", role.link_to_person, class: "govuk-link" %>
</p>
</section>
<% end %>
<|file_sep|>updated/app/views/roles/_current_role_holder_with_biography.html.erb
<% if role.current_holder.present? %>
<section id="current-role-holder" class="govuk-!-padding-bottom-9">
<%= render "govuk_publishing_components/components/heading", {
text: t("roles.headings.current_holder"),
} %>
<%= render "govuk_publishing_components/components/heading", {
text: role.current_holder["title"],
margin_bottom: 2,
} %>
<%= render "govuk_publishing_components/components/govspeak", {
} do %>
<%= role.current_holder_biography.html_safe %>
<% end %>
<p class="govuk-body">
<%= link_to t("people.read_more"), role.link_to_person, class: "govuk-link" %>
</p>
</section>
<% end %> | d1592c8fb4f302ea1f9dca072212b532a73ede63 | app/views/roles/_current_role_holder_with_biography.html.erb | app/views/roles/_current_role_holder_with_biography.html.erb | HTML+ERB |
<|file_sep|>original/data/.bash.d/bash/aliases.bash
alias reload='. ~/.bashrc'
alias a='atom .'
alias shitter='cd ~/git/veralite/ && bin/lasttripped; cd - > /dev/null'
<|file_sep|>current/data/.bash.d/bash/aliases.bash
alias reload='. ~/.bashrc'
alias a='atom .'
alias shitter='cd ~/git/veralite/ && bin/lasttripped; cd - > /dev/null'
<|file_sep|>updated/data/.bash.d/bash/aliases.bash | alias reload='. ~/.bashrc'
alias a='atom .'
alias shitter='cd ~/git/veralite/ && bin/lasttripped; cd - > /dev/null'
alias drun='docker run --rm -i -t' | <|file_sep|>original/data/.bash.d/bash/aliases.bash
alias reload='. ~/.bashrc'
alias a='atom .'
alias shitter='cd ~/git/veralite/ && bin/lasttripped; cd - > /dev/null'
<|file_sep|>current/data/.bash.d/bash/aliases.bash
alias reload='. ~/.bashrc'
alias a='atom .'
alias shitter='cd ~/git/veralite/ && bin/lasttripped; cd - > /dev/null'
<|file_sep|>updated/data/.bash.d/bash/aliases.bash
alias reload='. ~/.bashrc'
alias a='atom .'
alias shitter='cd ~/git/veralite/ && bin/lasttripped; cd - > /dev/null'
alias drun='docker run --rm -i -t' | dbb1dce078c6c8c1c745bf2e459dc0af4e9b9582 | data/.bash.d/bash/aliases.bash | data/.bash.d/bash/aliases.bash | Shell |
<|file_sep|>original/jupyterlab/labhubapp.py
from jupyterhub.singleuser import SingleUserNotebookApp
except ImportError:
SingleUserLabApp = None
raise ImportError('You must have jupyterhub installed for this to work.')
else:
class SingleUserLabApp(SingleUserNotebookApp, LabApp):
def init_webapp(self, *args, **kwargs):
super().init_webapp(*args, **kwargs)
settings = self.web_app.settings
if 'page_config_data' not in settings:
settings['page_config_data'] = {}
settings['page_config_data']['hub_prefix'] = self.hub_prefix
settings['page_config_data']['hub_host'] = self.hub_host
def main(argv=None):
return SingleUserLabApp.launch_instance(argv)
if __name__ == "__main__":
main()
<|file_sep|>current/jupyterlab/labhubapp.py
from jupyterhub.singleuser import SingleUserNotebookApp
except ImportError:
SingleUserLabApp = None
raise ImportError('You must have jupyterhub installed for this to work.')
else:
class SingleUserLabApp(SingleUserNotebookApp, LabApp):
def init_webapp(self, *args, **kwargs):
super().init_webapp(*args, **kwargs)
settings = self.web_app.settings
if 'page_config_data' not in settings:
settings['page_config_data'] = {}
settings['page_config_data']['hub_prefix'] = self.hub_prefix
settings['page_config_data']['hub_host'] = self.hub_host
def main(argv=None):
return SingleUserLabApp.launch_instance(argv)
if __name__ == "__main__":
main()
<|file_sep|>updated/jupyterlab/labhubapp.py | except ImportError:
SingleUserLabApp = None
raise ImportError('You must have jupyterhub installed for this to work.')
else:
class SingleUserLabApp(SingleUserNotebookApp, LabApp):
def init_webapp(self, *args, **kwargs):
super().init_webapp(*args, **kwargs)
settings = self.web_app.settings
if 'page_config_data' not in settings:
settings['page_config_data'] = {}
settings['page_config_data']['hub_prefix'] = self.hub_prefix
settings['page_config_data']['hub_host'] = self.hub_host
settings['page_config_data']['hub_user'] = self.user
def main(argv=None):
return SingleUserLabApp.launch_instance(argv)
if __name__ == "__main__":
main() | <|file_sep|>original/jupyterlab/labhubapp.py
from jupyterhub.singleuser import SingleUserNotebookApp
except ImportError:
SingleUserLabApp = None
raise ImportError('You must have jupyterhub installed for this to work.')
else:
class SingleUserLabApp(SingleUserNotebookApp, LabApp):
def init_webapp(self, *args, **kwargs):
super().init_webapp(*args, **kwargs)
settings = self.web_app.settings
if 'page_config_data' not in settings:
settings['page_config_data'] = {}
settings['page_config_data']['hub_prefix'] = self.hub_prefix
settings['page_config_data']['hub_host'] = self.hub_host
def main(argv=None):
return SingleUserLabApp.launch_instance(argv)
if __name__ == "__main__":
main()
<|file_sep|>current/jupyterlab/labhubapp.py
from jupyterhub.singleuser import SingleUserNotebookApp
except ImportError:
SingleUserLabApp = None
raise ImportError('You must have jupyterhub installed for this to work.')
else:
class SingleUserLabApp(SingleUserNotebookApp, LabApp):
def init_webapp(self, *args, **kwargs):
super().init_webapp(*args, **kwargs)
settings = self.web_app.settings
if 'page_config_data' not in settings:
settings['page_config_data'] = {}
settings['page_config_data']['hub_prefix'] = self.hub_prefix
settings['page_config_data']['hub_host'] = self.hub_host
def main(argv=None):
return SingleUserLabApp.launch_instance(argv)
if __name__ == "__main__":
main()
<|file_sep|>updated/jupyterlab/labhubapp.py
except ImportError:
SingleUserLabApp = None
raise ImportError('You must have jupyterhub installed for this to work.')
else:
class SingleUserLabApp(SingleUserNotebookApp, LabApp):
def init_webapp(self, *args, **kwargs):
super().init_webapp(*args, **kwargs)
settings = self.web_app.settings
if 'page_config_data' not in settings:
settings['page_config_data'] = {}
settings['page_config_data']['hub_prefix'] = self.hub_prefix
settings['page_config_data']['hub_host'] = self.hub_host
settings['page_config_data']['hub_user'] = self.user
def main(argv=None):
return SingleUserLabApp.launch_instance(argv)
if __name__ == "__main__":
main() | c1fd0f12810be544d12d4bea8ccd0ce9f8a190cc | jupyterlab/labhubapp.py | jupyterlab/labhubapp.py | Python |
<|file_sep|>tests/atom10/FeedTests.php.diff
original:
updated:
require_once 'FeedCategoryTest.php';
<|file_sep|>original/tests/atom10/FeedTests.php
require_once 'FeedUpdatedTest.php';
class Atom10_FeedTests
{
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('ComplexPie Atom 1.0 Feed');
$suite->addTestSuite('FeedAuthorTest');
$suite->addTestSuite('FeedContributorTest');
$suite->addTestSuite('FeedIdTest');
$suite->addTestSuite('FeedRightsTest');
$suite->addTestSuite('FeedSubtitleTest');
$suite->addTestSuite('FeedTitleTest');
$suite->addTestSuite('FeedUpdatedTest');
return $suite;
}
}
?>
<|file_sep|>current/tests/atom10/FeedTests.php
require_once 'FeedTitleTest.php';
require_once 'FeedUpdatedTest.php';
class Atom10_FeedTests
{
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('ComplexPie Atom 1.0 Feed');
$suite->addTestSuite('FeedAuthorTest');
$suite->addTestSuite('FeedContributorTest');
$suite->addTestSuite('FeedIdTest');
$suite->addTestSuite('FeedRightsTest');
$suite->addTestSuite('FeedSubtitleTest');
$suite->addTestSuite('FeedTitleTest');
$suite->addTestSuite('FeedUpdatedTest');
return $suite;
}
}
<|file_sep|>updated/tests/atom10/FeedTests.php | require_once 'FeedTitleTest.php';
require_once 'FeedUpdatedTest.php';
class Atom10_FeedTests
{
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('ComplexPie Atom 1.0 Feed');
$suite->addTestSuite('FeedAuthorTest');
$suite->addTestSuite('FeedCategoryTest');
$suite->addTestSuite('FeedContributorTest');
$suite->addTestSuite('FeedIdTest');
$suite->addTestSuite('FeedRightsTest');
$suite->addTestSuite('FeedSubtitleTest');
$suite->addTestSuite('FeedTitleTest');
$suite->addTestSuite('FeedUpdatedTest');
return $suite;
}
} | <|file_sep|>tests/atom10/FeedTests.php.diff
original:
updated:
require_once 'FeedCategoryTest.php';
<|file_sep|>original/tests/atom10/FeedTests.php
require_once 'FeedUpdatedTest.php';
class Atom10_FeedTests
{
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('ComplexPie Atom 1.0 Feed');
$suite->addTestSuite('FeedAuthorTest');
$suite->addTestSuite('FeedContributorTest');
$suite->addTestSuite('FeedIdTest');
$suite->addTestSuite('FeedRightsTest');
$suite->addTestSuite('FeedSubtitleTest');
$suite->addTestSuite('FeedTitleTest');
$suite->addTestSuite('FeedUpdatedTest');
return $suite;
}
}
?>
<|file_sep|>current/tests/atom10/FeedTests.php
require_once 'FeedTitleTest.php';
require_once 'FeedUpdatedTest.php';
class Atom10_FeedTests
{
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('ComplexPie Atom 1.0 Feed');
$suite->addTestSuite('FeedAuthorTest');
$suite->addTestSuite('FeedContributorTest');
$suite->addTestSuite('FeedIdTest');
$suite->addTestSuite('FeedRightsTest');
$suite->addTestSuite('FeedSubtitleTest');
$suite->addTestSuite('FeedTitleTest');
$suite->addTestSuite('FeedUpdatedTest');
return $suite;
}
}
<|file_sep|>updated/tests/atom10/FeedTests.php
require_once 'FeedTitleTest.php';
require_once 'FeedUpdatedTest.php';
class Atom10_FeedTests
{
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('ComplexPie Atom 1.0 Feed');
$suite->addTestSuite('FeedAuthorTest');
$suite->addTestSuite('FeedCategoryTest');
$suite->addTestSuite('FeedContributorTest');
$suite->addTestSuite('FeedIdTest');
$suite->addTestSuite('FeedRightsTest');
$suite->addTestSuite('FeedSubtitleTest');
$suite->addTestSuite('FeedTitleTest');
$suite->addTestSuite('FeedUpdatedTest');
return $suite;
}
} | 7d476253d603c5bb1a797d68c098eaf5f1bc6f82 | tests/atom10/FeedTests.php | tests/atom10/FeedTests.php | PHP |
<|file_sep|>original/spec/scanny/checks/ssl/verify_check_spec.rb
require "spec_helper"
module Scanny::Checks::SSL
describe VerifyCheck do
before do
@runner = Scanny::Runner.new(VerifyCheck.new)
@message = "Disable certificate verification can" +
"lead to connect to an unauthorized server"
@issue = issue(:high, @message, [296, 297, 298, 299, 300, 599])
end
it "reports usage of \"OpenSSL::SSL::VERIFY_NONE\" correctly" do
@runner.should check("OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE").
with_issue(@issue)
end
it "reports \"ca_file = nil\" correctly" do
@runner.should check("ssl_context.ca_file = nil").with_issue(@issue)
end
it "reports \"ca_file = nil\" correctly" do
<|file_sep|>current/spec/scanny/checks/ssl/verify_check_spec.rb
require "spec_helper"
module Scanny::Checks::SSL
describe VerifyCheck do
before do
@runner = Scanny::Runner.new(VerifyCheck.new)
@message = "Disable certificate verification can" +
"lead to connect to an unauthorized server"
@issue = issue(:high, @message, [296, 297, 298, 299, 300, 599])
end
it "reports usage of \"OpenSSL::SSL::VERIFY_NONE\" correctly" do
@runner.should check("OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE").
with_issue(@issue)
end
it "reports \"ca_file = nil\" correctly" do
@runner.should check("ssl_context.ca_file = nil").with_issue(@issue)
end
it "reports \"ca_file = nil\" correctly" do
<|file_sep|>updated/spec/scanny/checks/ssl/verify_check_spec.rb | require "spec_helper"
module Scanny::Checks::SSL
describe VerifyCheck do
before do
@runner = Scanny::Runner.new(VerifyCheck.new)
@message = "Disable certificate verification can " +
"lead to connect to an unauthorized server"
@issue = issue(:high, @message, [296, 297, 298, 299, 300, 599])
end
it "reports usage of \"OpenSSL::SSL::VERIFY_NONE\" correctly" do
@runner.should check("OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE").
with_issue(@issue)
end
it "reports \"ca_file = nil\" correctly" do
@runner.should check("ssl_context.ca_file = nil").with_issue(@issue)
end
it "reports \"ca_file = nil\" correctly" do | <|file_sep|>original/spec/scanny/checks/ssl/verify_check_spec.rb
require "spec_helper"
module Scanny::Checks::SSL
describe VerifyCheck do
before do
@runner = Scanny::Runner.new(VerifyCheck.new)
@message = "Disable certificate verification can" +
"lead to connect to an unauthorized server"
@issue = issue(:high, @message, [296, 297, 298, 299, 300, 599])
end
it "reports usage of \"OpenSSL::SSL::VERIFY_NONE\" correctly" do
@runner.should check("OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE").
with_issue(@issue)
end
it "reports \"ca_file = nil\" correctly" do
@runner.should check("ssl_context.ca_file = nil").with_issue(@issue)
end
it "reports \"ca_file = nil\" correctly" do
<|file_sep|>current/spec/scanny/checks/ssl/verify_check_spec.rb
require "spec_helper"
module Scanny::Checks::SSL
describe VerifyCheck do
before do
@runner = Scanny::Runner.new(VerifyCheck.new)
@message = "Disable certificate verification can" +
"lead to connect to an unauthorized server"
@issue = issue(:high, @message, [296, 297, 298, 299, 300, 599])
end
it "reports usage of \"OpenSSL::SSL::VERIFY_NONE\" correctly" do
@runner.should check("OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE").
with_issue(@issue)
end
it "reports \"ca_file = nil\" correctly" do
@runner.should check("ssl_context.ca_file = nil").with_issue(@issue)
end
it "reports \"ca_file = nil\" correctly" do
<|file_sep|>updated/spec/scanny/checks/ssl/verify_check_spec.rb
require "spec_helper"
module Scanny::Checks::SSL
describe VerifyCheck do
before do
@runner = Scanny::Runner.new(VerifyCheck.new)
@message = "Disable certificate verification can " +
"lead to connect to an unauthorized server"
@issue = issue(:high, @message, [296, 297, 298, 299, 300, 599])
end
it "reports usage of \"OpenSSL::SSL::VERIFY_NONE\" correctly" do
@runner.should check("OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE").
with_issue(@issue)
end
it "reports \"ca_file = nil\" correctly" do
@runner.should check("ssl_context.ca_file = nil").with_issue(@issue)
end
it "reports \"ca_file = nil\" correctly" do | 39477994b735e8d575d7a8f5ff8bf7a77c1be497 | spec/scanny/checks/ssl/verify_check_spec.rb | spec/scanny/checks/ssl/verify_check_spec.rb | Ruby |
<|file_sep|>loginas/templates/admin/auth/change_form.html.diff
original:
updated:
{% load url from future %}
<|file_sep|>original/loginas/templates/admin/auth/change_form.html
{% extends "admin/change_form.html" %}
{% block object-tools %}
{% if change %}{% if not is_popup %}
<ul class="object-tools">
<li><a href="history/" class="historylink">History</a></li>
<li><a href="{% url loginas-user-login object_id %}">Log in as user</a></li>
</ul>
{% endif %}{% endif %}
{% endblock %}
<|file_sep|>current/loginas/templates/admin/auth/change_form.html
{% extends "admin/change_form.html" %}
{% load url from future %}
{% block object-tools %}
{% if change %}{% if not is_popup %}
<ul class="object-tools">
<li><a href="history/" class="historylink">History</a></li>
<li><a href="{% url loginas-user-login object_id %}">Log in as user</a></li>
</ul>
{% endif %}{% endif %}
{% endblock %}
<|file_sep|>updated/loginas/templates/admin/auth/change_form.html | {% extends "admin/change_form.html" %}
{% load url from future %}
{% block object-tools %}
{% if change %}{% if not is_popup %}
<ul class="object-tools">
<li><a href="history/" class="historylink">History</a></li>
<li><a href="{% url "loginas-user-login" object_id %}">Log in as user</a></li>
</ul>
{% endif %}{% endif %}
{% endblock %} | <|file_sep|>loginas/templates/admin/auth/change_form.html.diff
original:
updated:
{% load url from future %}
<|file_sep|>original/loginas/templates/admin/auth/change_form.html
{% extends "admin/change_form.html" %}
{% block object-tools %}
{% if change %}{% if not is_popup %}
<ul class="object-tools">
<li><a href="history/" class="historylink">History</a></li>
<li><a href="{% url loginas-user-login object_id %}">Log in as user</a></li>
</ul>
{% endif %}{% endif %}
{% endblock %}
<|file_sep|>current/loginas/templates/admin/auth/change_form.html
{% extends "admin/change_form.html" %}
{% load url from future %}
{% block object-tools %}
{% if change %}{% if not is_popup %}
<ul class="object-tools">
<li><a href="history/" class="historylink">History</a></li>
<li><a href="{% url loginas-user-login object_id %}">Log in as user</a></li>
</ul>
{% endif %}{% endif %}
{% endblock %}
<|file_sep|>updated/loginas/templates/admin/auth/change_form.html
{% extends "admin/change_form.html" %}
{% load url from future %}
{% block object-tools %}
{% if change %}{% if not is_popup %}
<ul class="object-tools">
<li><a href="history/" class="historylink">History</a></li>
<li><a href="{% url "loginas-user-login" object_id %}">Log in as user</a></li>
</ul>
{% endif %}{% endif %}
{% endblock %} | 3afc726ffce13d7be9aca51da458ca0e8c120f24 | loginas/templates/admin/auth/change_form.html | loginas/templates/admin/auth/change_form.html | HTML |
<|file_sep|>original/Source/OEXStyles+Swift.swift
// Created by Ehmad Zubair Chughtai on 25/05/2015.
// Copyright (c) 2015 edX. All rights reserved.
//
import Foundation
import UIKit
extension OEXStyles {
func applyGlobalAppearance() {
//Probably want to set the tintColor of UIWindow but it didn't seem necessary right now
let textAttrs = [NSForegroundColorAttributeName : navigationItemTintColor()]
UINavigationBar.appearance().barTintColor = self.primaryAccentColor()
UINavigationBar.appearance().tintColor = self.standardBackgroundColor()
UINavigationBar.appearance().translucent = false
UINavigationBar.appearance().titleTextAttributes = textAttrs
}
}
<|file_sep|>current/Source/OEXStyles+Swift.swift
// Created by Ehmad Zubair Chughtai on 25/05/2015.
// Copyright (c) 2015 edX. All rights reserved.
//
import Foundation
import UIKit
extension OEXStyles {
func applyGlobalAppearance() {
//Probably want to set the tintColor of UIWindow but it didn't seem necessary right now
let textAttrs = [NSForegroundColorAttributeName : navigationItemTintColor()]
UINavigationBar.appearance().barTintColor = self.primaryAccentColor()
UINavigationBar.appearance().tintColor = self.standardBackgroundColor()
UINavigationBar.appearance().translucent = false
UINavigationBar.appearance().titleTextAttributes = textAttrs
}
}
<|file_sep|>updated/Source/OEXStyles+Swift.swift | // Copyright (c) 2015 edX. All rights reserved.
//
import Foundation
import UIKit
extension OEXStyles {
func applyGlobalAppearance() {
//Probably want to set the tintColor of UIWindow but it didn't seem necessary right now
let textAttrs = [NSForegroundColorAttributeName : navigationItemTintColor()]
UINavigationBar.appearance().barTintColor = self.primaryAccentColor()
UINavigationBar.appearance().tintColor = self.standardBackgroundColor()
UINavigationBar.appearance().translucent = false
UINavigationBar.appearance().titleTextAttributes = textAttrs
UIApplication.sharedApplication().setStatusBarStyle(UIStatusBarStyle.LightContent, animated: false)
}
} | <|file_sep|>original/Source/OEXStyles+Swift.swift
// Created by Ehmad Zubair Chughtai on 25/05/2015.
// Copyright (c) 2015 edX. All rights reserved.
//
import Foundation
import UIKit
extension OEXStyles {
func applyGlobalAppearance() {
//Probably want to set the tintColor of UIWindow but it didn't seem necessary right now
let textAttrs = [NSForegroundColorAttributeName : navigationItemTintColor()]
UINavigationBar.appearance().barTintColor = self.primaryAccentColor()
UINavigationBar.appearance().tintColor = self.standardBackgroundColor()
UINavigationBar.appearance().translucent = false
UINavigationBar.appearance().titleTextAttributes = textAttrs
}
}
<|file_sep|>current/Source/OEXStyles+Swift.swift
// Created by Ehmad Zubair Chughtai on 25/05/2015.
// Copyright (c) 2015 edX. All rights reserved.
//
import Foundation
import UIKit
extension OEXStyles {
func applyGlobalAppearance() {
//Probably want to set the tintColor of UIWindow but it didn't seem necessary right now
let textAttrs = [NSForegroundColorAttributeName : navigationItemTintColor()]
UINavigationBar.appearance().barTintColor = self.primaryAccentColor()
UINavigationBar.appearance().tintColor = self.standardBackgroundColor()
UINavigationBar.appearance().translucent = false
UINavigationBar.appearance().titleTextAttributes = textAttrs
}
}
<|file_sep|>updated/Source/OEXStyles+Swift.swift
// Copyright (c) 2015 edX. All rights reserved.
//
import Foundation
import UIKit
extension OEXStyles {
func applyGlobalAppearance() {
//Probably want to set the tintColor of UIWindow but it didn't seem necessary right now
let textAttrs = [NSForegroundColorAttributeName : navigationItemTintColor()]
UINavigationBar.appearance().barTintColor = self.primaryAccentColor()
UINavigationBar.appearance().tintColor = self.standardBackgroundColor()
UINavigationBar.appearance().translucent = false
UINavigationBar.appearance().titleTextAttributes = textAttrs
UIApplication.sharedApplication().setStatusBarStyle(UIStatusBarStyle.LightContent, animated: false)
}
} | cc94a217aad0d3af2c4f8c7e51a69c9167e0b6ce | Source/OEXStyles+Swift.swift | Source/OEXStyles+Swift.swift | Swift |
<|file_sep|>original/src/packages/spell-check/lib/spell-check-handler.coffee
SpellChecker = require 'spellchecker'
module.exports =
findMisspellings: (text) ->
wordRegex = /(?:^|[\s\[\]])([a-zA-Z']+)(?=[\s\.\[\]:]|$)/g
row = 0
misspellings = []
for line in text.split('\n')
while matches = wordRegex.exec(line)
word = matches[1]
continue unless SpellChecker.isMisspelled(word)
startColumn = matches.index + matches[0].length - word.length
endColumn = startColumn + word.length
misspellings.push([[row, startColumn], [row, endColumn]])
row++
callTaskMethod('misspellingsFound', misspellings)
<|file_sep|>current/src/packages/spell-check/lib/spell-check-handler.coffee
SpellChecker = require 'spellchecker'
module.exports =
findMisspellings: (text) ->
wordRegex = /(?:^|[\s\[\]])([a-zA-Z']+)(?=[\s\.\[\]:]|$)/g
row = 0
misspellings = []
for line in text.split('\n')
while matches = wordRegex.exec(line)
word = matches[1]
continue unless SpellChecker.isMisspelled(word)
startColumn = matches.index + matches[0].length - word.length
endColumn = startColumn + word.length
misspellings.push([[row, startColumn], [row, endColumn]])
row++
callTaskMethod('misspellingsFound', misspellings)
<|file_sep|>updated/src/packages/spell-check/lib/spell-check-handler.coffee | SpellChecker = require 'spellchecker'
module.exports =
findMisspellings: (text) ->
wordRegex = /(?:^|[\s\[\]])([a-zA-Z']+)(?=[\s\.\[\]:,]|$)/g
row = 0
misspellings = []
for line in text.split('\n')
while matches = wordRegex.exec(line)
word = matches[1]
continue unless SpellChecker.isMisspelled(word)
startColumn = matches.index + matches[0].length - word.length
endColumn = startColumn + word.length
misspellings.push([[row, startColumn], [row, endColumn]])
row++
callTaskMethod('misspellingsFound', misspellings) | <|file_sep|>original/src/packages/spell-check/lib/spell-check-handler.coffee
SpellChecker = require 'spellchecker'
module.exports =
findMisspellings: (text) ->
wordRegex = /(?:^|[\s\[\]])([a-zA-Z']+)(?=[\s\.\[\]:]|$)/g
row = 0
misspellings = []
for line in text.split('\n')
while matches = wordRegex.exec(line)
word = matches[1]
continue unless SpellChecker.isMisspelled(word)
startColumn = matches.index + matches[0].length - word.length
endColumn = startColumn + word.length
misspellings.push([[row, startColumn], [row, endColumn]])
row++
callTaskMethod('misspellingsFound', misspellings)
<|file_sep|>current/src/packages/spell-check/lib/spell-check-handler.coffee
SpellChecker = require 'spellchecker'
module.exports =
findMisspellings: (text) ->
wordRegex = /(?:^|[\s\[\]])([a-zA-Z']+)(?=[\s\.\[\]:]|$)/g
row = 0
misspellings = []
for line in text.split('\n')
while matches = wordRegex.exec(line)
word = matches[1]
continue unless SpellChecker.isMisspelled(word)
startColumn = matches.index + matches[0].length - word.length
endColumn = startColumn + word.length
misspellings.push([[row, startColumn], [row, endColumn]])
row++
callTaskMethod('misspellingsFound', misspellings)
<|file_sep|>updated/src/packages/spell-check/lib/spell-check-handler.coffee
SpellChecker = require 'spellchecker'
module.exports =
findMisspellings: (text) ->
wordRegex = /(?:^|[\s\[\]])([a-zA-Z']+)(?=[\s\.\[\]:,]|$)/g
row = 0
misspellings = []
for line in text.split('\n')
while matches = wordRegex.exec(line)
word = matches[1]
continue unless SpellChecker.isMisspelled(word)
startColumn = matches.index + matches[0].length - word.length
endColumn = startColumn + word.length
misspellings.push([[row, startColumn], [row, endColumn]])
row++
callTaskMethod('misspellingsFound', misspellings) | 59c02c90da4cf323d416be5f06ab85afbe7fcd6b | src/packages/spell-check/lib/spell-check-handler.coffee | src/packages/spell-check/lib/spell-check-handler.coffee | CoffeeScript |
<|file_sep|>scripts/slack/SlackWebAPI.ts.diff
original:
attachments: JSON.stringify(message.attachments),
updated:
attachments: JSON.stringify(message.attachments || []),
<|file_sep|>original/scripts/slack/SlackWebAPI.ts
@inject("HttpClient") private httpClient: IHttpClient) {}
/**
* For the details on this API check https://api.slack.com/methods/chat.postMessage
*/
async postMessage(message: PostMessageRequest): Promise<void> {
let response: SlackWebAPIResponse = await this.httpClient.post<any, SlackWebAPIResponse>(
"https://slack.com/api/chat.postMessage",
{
token: this.slackConfig.botUserOAuthAccessToken,
channel: message.channel || this.slackConfig.defaultChannel,
text: message.text,
attachments: JSON.stringify(message.attachments),
as_user: false
}
);
if (!response.ok) {
throw new Error(`Error in slack send process: ${response.error}`);
}
}
}
<|file_sep|>current/scripts/slack/SlackWebAPI.ts
@inject("HttpClient") private httpClient: IHttpClient) {}
/**
* For the details on this API check https://api.slack.com/methods/chat.postMessage
*/
async postMessage(message: PostMessageRequest): Promise<void> {
let response: SlackWebAPIResponse = await this.httpClient.post<any, SlackWebAPIResponse>(
"https://slack.com/api/chat.postMessage",
{
token: this.slackConfig.botUserOAuthAccessToken,
channel: message.channel || this.slackConfig.defaultChannel,
text: message.text,
attachments: JSON.stringify(message.attachments || []),
as_user: false
}
);
if (!response.ok) {
throw new Error(`Error in slack send process: ${response.error}`);
}
}
}
<|file_sep|>updated/scripts/slack/SlackWebAPI.ts |
/**
* For the details on this API check https://api.slack.com/methods/chat.postMessage
*/
async postMessage(message: PostMessageRequest): Promise<void> {
let response: SlackWebAPIResponse = await this.httpClient.post<any, SlackWebAPIResponse>(
"https://slack.com/api/chat.postMessage",
{
token: this.slackConfig.botUserOAuthAccessToken,
channel: message.channel || this.slackConfig.defaultChannel,
text: message.text,
attachments: JSON.stringify(message.attachments || []),
as_user: false
}
);
if (!response.ok) {
throw new Error(`Error in slack send process: ${response.error}`);
}
}
} | <|file_sep|>scripts/slack/SlackWebAPI.ts.diff
original:
attachments: JSON.stringify(message.attachments),
updated:
attachments: JSON.stringify(message.attachments || []),
<|file_sep|>original/scripts/slack/SlackWebAPI.ts
@inject("HttpClient") private httpClient: IHttpClient) {}
/**
* For the details on this API check https://api.slack.com/methods/chat.postMessage
*/
async postMessage(message: PostMessageRequest): Promise<void> {
let response: SlackWebAPIResponse = await this.httpClient.post<any, SlackWebAPIResponse>(
"https://slack.com/api/chat.postMessage",
{
token: this.slackConfig.botUserOAuthAccessToken,
channel: message.channel || this.slackConfig.defaultChannel,
text: message.text,
attachments: JSON.stringify(message.attachments),
as_user: false
}
);
if (!response.ok) {
throw new Error(`Error in slack send process: ${response.error}`);
}
}
}
<|file_sep|>current/scripts/slack/SlackWebAPI.ts
@inject("HttpClient") private httpClient: IHttpClient) {}
/**
* For the details on this API check https://api.slack.com/methods/chat.postMessage
*/
async postMessage(message: PostMessageRequest): Promise<void> {
let response: SlackWebAPIResponse = await this.httpClient.post<any, SlackWebAPIResponse>(
"https://slack.com/api/chat.postMessage",
{
token: this.slackConfig.botUserOAuthAccessToken,
channel: message.channel || this.slackConfig.defaultChannel,
text: message.text,
attachments: JSON.stringify(message.attachments || []),
as_user: false
}
);
if (!response.ok) {
throw new Error(`Error in slack send process: ${response.error}`);
}
}
}
<|file_sep|>updated/scripts/slack/SlackWebAPI.ts
/**
* For the details on this API check https://api.slack.com/methods/chat.postMessage
*/
async postMessage(message: PostMessageRequest): Promise<void> {
let response: SlackWebAPIResponse = await this.httpClient.post<any, SlackWebAPIResponse>(
"https://slack.com/api/chat.postMessage",
{
token: this.slackConfig.botUserOAuthAccessToken,
channel: message.channel || this.slackConfig.defaultChannel,
text: message.text,
attachments: JSON.stringify(message.attachments || []),
as_user: false
}
);
if (!response.ok) {
throw new Error(`Error in slack send process: ${response.error}`);
}
}
} | 50860b1b528686d0c3e10cb5e0a44cedbed47c72 | scripts/slack/SlackWebAPI.ts | scripts/slack/SlackWebAPI.ts | TypeScript |
<|file_sep|>original/source/parlex/src/abstract_syntax_tree.cpp
#include "parlex/builder.hpp"
#include "parlex/detail/grammar.hpp"
parlex::detail::ast_node::ast_node(match const & m, std::vector<ast_node> const & children, leaf const * l) : match(m), children(children), l(l) {}
std::string parlex::detail::ast_node::to_dot(grammar const & g) const
{
auto const nameFunc = [&](ast_node const * n)
{
std::stringstream result;
result << g.get_recognizer(uint16_t(n->l->recognizer_index)).name << " (" << n << ")";
return result.str();
};
auto const edgeFunc = [&](ast_node const * n) {
std::vector<std::pair<std::string, ast_node const *>> results;
for (auto i = n->children.begin(); i != n->children.end(); ++i) {
results.emplace_back("label=" + enquote(std::to_string(i - n->children.begin() + 1)), &*i);
}
return results;
};
auto const propFunc = [&](ast_node const * n) { return std::string(); };
<|file_sep|>current/source/parlex/src/abstract_syntax_tree.cpp
#include "parlex/builder.hpp"
#include "parlex/detail/grammar.hpp"
parlex::detail::ast_node::ast_node(match const & m, std::vector<ast_node> const & children, leaf const * l) : match(m), children(children), l(l) {}
std::string parlex::detail::ast_node::to_dot(grammar const & g) const
{
auto const nameFunc = [&](ast_node const * n)
{
std::stringstream result;
result << g.get_recognizer(uint16_t(n->l->recognizer_index)).name << " (" << n << ")";
return result.str();
};
auto const edgeFunc = [&](ast_node const * n) {
std::vector<std::pair<std::string, ast_node const *>> results;
for (auto i = n->children.begin(); i != n->children.end(); ++i) {
results.emplace_back("label=" + enquote(std::to_string(i - n->children.begin() + 1)), &*i);
}
return results;
};
auto const propFunc = [&](ast_node const * n) { return std::string(); };
<|file_sep|>updated/source/parlex/src/abstract_syntax_tree.cpp | #include "parlex/builder.hpp"
#include "parlex/detail/grammar.hpp"
parlex::detail::ast_node::ast_node(match const & m, std::vector<ast_node> const & children, leaf const * l) : match(m), children(children), l(l) {}
std::string parlex::detail::ast_node::to_dot(grammar const & g) const
{
auto const nameFunc = [&](ast_node const * n)
{
std::stringstream result;
result << g.get_recognizer(n->recognizer_index).name << " (" + std::to_string(n->document_position + 1) + " - " + std::to_string(n->consumed_character_count + n->document_position) + ")";
return result.str();
};
auto const edgeFunc = [&](ast_node const * n) {
std::vector<std::pair<std::string, ast_node const *>> results;
for (auto i = n->children.begin(); i != n->children.end(); ++i) {
results.emplace_back("label=" + enquote(std::to_string(i - n->children.begin() + 1)), &*i);
}
return results;
};
auto const propFunc = [&](ast_node const * n) { return std::string(); }; | <|file_sep|>original/source/parlex/src/abstract_syntax_tree.cpp
#include "parlex/builder.hpp"
#include "parlex/detail/grammar.hpp"
parlex::detail::ast_node::ast_node(match const & m, std::vector<ast_node> const & children, leaf const * l) : match(m), children(children), l(l) {}
std::string parlex::detail::ast_node::to_dot(grammar const & g) const
{
auto const nameFunc = [&](ast_node const * n)
{
std::stringstream result;
result << g.get_recognizer(uint16_t(n->l->recognizer_index)).name << " (" << n << ")";
return result.str();
};
auto const edgeFunc = [&](ast_node const * n) {
std::vector<std::pair<std::string, ast_node const *>> results;
for (auto i = n->children.begin(); i != n->children.end(); ++i) {
results.emplace_back("label=" + enquote(std::to_string(i - n->children.begin() + 1)), &*i);
}
return results;
};
auto const propFunc = [&](ast_node const * n) { return std::string(); };
<|file_sep|>current/source/parlex/src/abstract_syntax_tree.cpp
#include "parlex/builder.hpp"
#include "parlex/detail/grammar.hpp"
parlex::detail::ast_node::ast_node(match const & m, std::vector<ast_node> const & children, leaf const * l) : match(m), children(children), l(l) {}
std::string parlex::detail::ast_node::to_dot(grammar const & g) const
{
auto const nameFunc = [&](ast_node const * n)
{
std::stringstream result;
result << g.get_recognizer(uint16_t(n->l->recognizer_index)).name << " (" << n << ")";
return result.str();
};
auto const edgeFunc = [&](ast_node const * n) {
std::vector<std::pair<std::string, ast_node const *>> results;
for (auto i = n->children.begin(); i != n->children.end(); ++i) {
results.emplace_back("label=" + enquote(std::to_string(i - n->children.begin() + 1)), &*i);
}
return results;
};
auto const propFunc = [&](ast_node const * n) { return std::string(); };
<|file_sep|>updated/source/parlex/src/abstract_syntax_tree.cpp
#include "parlex/builder.hpp"
#include "parlex/detail/grammar.hpp"
parlex::detail::ast_node::ast_node(match const & m, std::vector<ast_node> const & children, leaf const * l) : match(m), children(children), l(l) {}
std::string parlex::detail::ast_node::to_dot(grammar const & g) const
{
auto const nameFunc = [&](ast_node const * n)
{
std::stringstream result;
result << g.get_recognizer(n->recognizer_index).name << " (" + std::to_string(n->document_position + 1) + " - " + std::to_string(n->consumed_character_count + n->document_position) + ")";
return result.str();
};
auto const edgeFunc = [&](ast_node const * n) {
std::vector<std::pair<std::string, ast_node const *>> results;
for (auto i = n->children.begin(); i != n->children.end(); ++i) {
results.emplace_back("label=" + enquote(std::to_string(i - n->children.begin() + 1)), &*i);
}
return results;
};
auto const propFunc = [&](ast_node const * n) { return std::string(); }; | 81d6ef98e8a3e1a112cf2dc588e39f18e74da1a5 | source/parlex/src/abstract_syntax_tree.cpp | source/parlex/src/abstract_syntax_tree.cpp | C++ |
<|file_sep|>opps/core/utils.py.diff
original:
updated:
from django.template import loader, TemplateDoesNotExist
<|file_sep|>original/opps/core/utils.py
# coding: utf-8
from django.db.models import get_models, get_app
def get_app_model(appname, suffix=""):
app_label = appname.split('.')[-1]
models = [model for model in get_models(get_app(app_label))
if (model.__name__.endswith(suffix) or not suffix)
and model._meta.app_label == app_label]
return models and models[0]
def class_load(name):
mod = __import__(name)
components = name.split('.')
for comp in components[1:]:
mod = getattr(mod, comp)
return mod
<|file_sep|>current/opps/core/utils.py
# coding: utf-8
from django.db.models import get_models, get_app
from django.template import loader, TemplateDoesNotExist
def get_app_model(appname, suffix=""):
app_label = appname.split('.')[-1]
models = [model for model in get_models(get_app(app_label))
if (model.__name__.endswith(suffix) or not suffix)
and model._meta.app_label == app_label]
return models and models[0]
def class_load(name):
mod = __import__(name)
components = name.split('.')
for comp in components[1:]:
mod = getattr(mod, comp)
return mod
<|file_sep|>updated/opps/core/utils.py | and model._meta.app_label == app_label]
return models and models[0]
def class_load(name):
mod = __import__(name)
components = name.split('.')
for comp in components[1:]:
mod = getattr(mod, comp)
return mod
def get_template_path(path):
try:
template = loader.find_template(path)
if template[1]:
return template[1].name
for template_loader in loader.template_source_loaders:
try:
source, origin = template_loader.load_template_source(path)
return origin | <|file_sep|>opps/core/utils.py.diff
original:
updated:
from django.template import loader, TemplateDoesNotExist
<|file_sep|>original/opps/core/utils.py
# coding: utf-8
from django.db.models import get_models, get_app
def get_app_model(appname, suffix=""):
app_label = appname.split('.')[-1]
models = [model for model in get_models(get_app(app_label))
if (model.__name__.endswith(suffix) or not suffix)
and model._meta.app_label == app_label]
return models and models[0]
def class_load(name):
mod = __import__(name)
components = name.split('.')
for comp in components[1:]:
mod = getattr(mod, comp)
return mod
<|file_sep|>current/opps/core/utils.py
# coding: utf-8
from django.db.models import get_models, get_app
from django.template import loader, TemplateDoesNotExist
def get_app_model(appname, suffix=""):
app_label = appname.split('.')[-1]
models = [model for model in get_models(get_app(app_label))
if (model.__name__.endswith(suffix) or not suffix)
and model._meta.app_label == app_label]
return models and models[0]
def class_load(name):
mod = __import__(name)
components = name.split('.')
for comp in components[1:]:
mod = getattr(mod, comp)
return mod
<|file_sep|>updated/opps/core/utils.py
and model._meta.app_label == app_label]
return models and models[0]
def class_load(name):
mod = __import__(name)
components = name.split('.')
for comp in components[1:]:
mod = getattr(mod, comp)
return mod
def get_template_path(path):
try:
template = loader.find_template(path)
if template[1]:
return template[1].name
for template_loader in loader.template_source_loaders:
try:
source, origin = template_loader.load_template_source(path)
return origin | da01999b6adcb79955a416ce3b3de50769adfe34 | opps/core/utils.py | opps/core/utils.py | Python |
<|file_sep|>original/apps/events/views.py
from django.shortcuts import render_to_response
from django.shortcuts import get_object_or_404
from django.template import RequestContext
from apps.events.models import Event, AttendanceEvent, Attendee
import datetime
def index(request):
events = Event.objects.filter(event_start__gte=datetime.date.today())
if len(events) == 1:
return details(request, events[0].event_id)
return render_to_response('events/index.html', {'events': events}, context_instance=RequestContext(request))
def details(request, event_id):
event = get_object_or_404(Event, pk=event_id)
is_attendance_event = False
try:
attendance_event = AttendanceEvent.objects.get(pk=event_id)
<|file_sep|>current/apps/events/views.py
from django.shortcuts import render_to_response
from django.shortcuts import get_object_or_404
from django.template import RequestContext
from apps.events.models import Event, AttendanceEvent, Attendee
import datetime
def index(request):
events = Event.objects.filter(event_start__gte=datetime.date.today())
if len(events) == 1:
return details(request, events[0].event_id)
return render_to_response('events/index.html', {'events': events}, context_instance=RequestContext(request))
def details(request, event_id):
event = get_object_or_404(Event, pk=event_id)
is_attendance_event = False
try:
attendance_event = AttendanceEvent.objects.get(pk=event_id)
<|file_sep|>updated/apps/events/views.py | from django.shortcuts import render_to_response
from django.shortcuts import get_object_or_404
from django.template import RequestContext
from apps.events.models import Event, AttendanceEvent, Attendee
import datetime
def index(request):
events = Event.objects.filter(event_start__gte=datetime.date.today())
if len(events) == 1:
return details(request, events[0].id)
return render_to_response('events/index.html', {'events': events}, context_instance=RequestContext(request))
def details(request, event_id):
event = get_object_or_404(Event, pk=event_id)
is_attendance_event = False
try:
attendance_event = AttendanceEvent.objects.get(pk=event_id) | <|file_sep|>original/apps/events/views.py
from django.shortcuts import render_to_response
from django.shortcuts import get_object_or_404
from django.template import RequestContext
from apps.events.models import Event, AttendanceEvent, Attendee
import datetime
def index(request):
events = Event.objects.filter(event_start__gte=datetime.date.today())
if len(events) == 1:
return details(request, events[0].event_id)
return render_to_response('events/index.html', {'events': events}, context_instance=RequestContext(request))
def details(request, event_id):
event = get_object_or_404(Event, pk=event_id)
is_attendance_event = False
try:
attendance_event = AttendanceEvent.objects.get(pk=event_id)
<|file_sep|>current/apps/events/views.py
from django.shortcuts import render_to_response
from django.shortcuts import get_object_or_404
from django.template import RequestContext
from apps.events.models import Event, AttendanceEvent, Attendee
import datetime
def index(request):
events = Event.objects.filter(event_start__gte=datetime.date.today())
if len(events) == 1:
return details(request, events[0].event_id)
return render_to_response('events/index.html', {'events': events}, context_instance=RequestContext(request))
def details(request, event_id):
event = get_object_or_404(Event, pk=event_id)
is_attendance_event = False
try:
attendance_event = AttendanceEvent.objects.get(pk=event_id)
<|file_sep|>updated/apps/events/views.py
from django.shortcuts import render_to_response
from django.shortcuts import get_object_or_404
from django.template import RequestContext
from apps.events.models import Event, AttendanceEvent, Attendee
import datetime
def index(request):
events = Event.objects.filter(event_start__gte=datetime.date.today())
if len(events) == 1:
return details(request, events[0].id)
return render_to_response('events/index.html', {'events': events}, context_instance=RequestContext(request))
def details(request, event_id):
event = get_object_or_404(Event, pk=event_id)
is_attendance_event = False
try:
attendance_event = AttendanceEvent.objects.get(pk=event_id) | 1b15198842d60582930f828656a2353f85a05d44 | apps/events/views.py | apps/events/views.py | Python |
<|file_sep|>original/.github/pull_request_template.md
- [ ] Tag issue being addressed
- [ ] Add [tests](https://github.com/openforcefield/openforcefield/tree/master/openforcefield/tests)
- [ ] Update docstrings/[documentation](https://github.com/openforcefield/openforcefield/tree/master/docs), if applicable
- [ ] Update [changelog](https://github.com/openforcefield/openforcefield/blob/master/docs/releasehistory.rst)
<|file_sep|>current/.github/pull_request_template.md
- [ ] Tag issue being addressed
- [ ] Add [tests](https://github.com/openforcefield/openforcefield/tree/master/openforcefield/tests)
- [ ] Update docstrings/[documentation](https://github.com/openforcefield/openforcefield/tree/master/docs), if applicable
- [ ] Update [changelog](https://github.com/openforcefield/openforcefield/blob/master/docs/releasehistory.rst)
<|file_sep|>updated/.github/pull_request_template.md | - [ ] Tag issue being addressed
- [ ] Add [tests](https://github.com/openforcefield/openforcefield/tree/master/openforcefield/tests)
- [ ] Update docstrings/[documentation](https://github.com/openforcefield/openforcefield/tree/master/docs), if applicable
- [ ] [Lint](https://open-forcefield-toolkit.readthedocs.io/en/latest/developing.html#style-guide) codebase
- [ ] Update [changelog](https://github.com/openforcefield/openforcefield/blob/master/docs/releasehistory.rst) | <|file_sep|>original/.github/pull_request_template.md
- [ ] Tag issue being addressed
- [ ] Add [tests](https://github.com/openforcefield/openforcefield/tree/master/openforcefield/tests)
- [ ] Update docstrings/[documentation](https://github.com/openforcefield/openforcefield/tree/master/docs), if applicable
- [ ] Update [changelog](https://github.com/openforcefield/openforcefield/blob/master/docs/releasehistory.rst)
<|file_sep|>current/.github/pull_request_template.md
- [ ] Tag issue being addressed
- [ ] Add [tests](https://github.com/openforcefield/openforcefield/tree/master/openforcefield/tests)
- [ ] Update docstrings/[documentation](https://github.com/openforcefield/openforcefield/tree/master/docs), if applicable
- [ ] Update [changelog](https://github.com/openforcefield/openforcefield/blob/master/docs/releasehistory.rst)
<|file_sep|>updated/.github/pull_request_template.md
- [ ] Tag issue being addressed
- [ ] Add [tests](https://github.com/openforcefield/openforcefield/tree/master/openforcefield/tests)
- [ ] Update docstrings/[documentation](https://github.com/openforcefield/openforcefield/tree/master/docs), if applicable
- [ ] [Lint](https://open-forcefield-toolkit.readthedocs.io/en/latest/developing.html#style-guide) codebase
- [ ] Update [changelog](https://github.com/openforcefield/openforcefield/blob/master/docs/releasehistory.rst) | 0c2b66954a664dd83c1f1c229ecf49be91b2f0c2 | .github/pull_request_template.md | .github/pull_request_template.md | Markdown |
<|file_sep|>original/tsconfig.json
{
"compilerOptions": {
"strict":true,
"strictNullChecks": true,
"declaration": true,
"target": "es6",
"lib": ["es6"],
"module": "commonjs",
"moduleResolution": "node",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"types": [
"reflect-metadata",
"node",
"mocha"
],
"baseUrl": ".",
"paths": {
"*": ["types/*"]
},
"outDir": "built"
<|file_sep|>current/tsconfig.json
{
"compilerOptions": {
"strict":true,
"strictNullChecks": true,
"declaration": true,
"target": "es6",
"lib": ["es6"],
"module": "commonjs",
"moduleResolution": "node",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"types": [
"reflect-metadata",
"node",
"mocha"
],
"baseUrl": ".",
"paths": {
"*": ["types/*"]
},
"outDir": "built"
<|file_sep|>updated/tsconfig.json | {
"compilerOptions": {
"strict":true,
"strictNullChecks": false,
"declaration": true,
"target": "es6",
"lib": ["es6"],
"module": "commonjs",
"moduleResolution": "node",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"types": [
"reflect-metadata",
"node",
"mocha"
],
"baseUrl": ".",
"paths": {
"*": ["types/*"]
},
"outDir": "built" | <|file_sep|>original/tsconfig.json
{
"compilerOptions": {
"strict":true,
"strictNullChecks": true,
"declaration": true,
"target": "es6",
"lib": ["es6"],
"module": "commonjs",
"moduleResolution": "node",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"types": [
"reflect-metadata",
"node",
"mocha"
],
"baseUrl": ".",
"paths": {
"*": ["types/*"]
},
"outDir": "built"
<|file_sep|>current/tsconfig.json
{
"compilerOptions": {
"strict":true,
"strictNullChecks": true,
"declaration": true,
"target": "es6",
"lib": ["es6"],
"module": "commonjs",
"moduleResolution": "node",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"types": [
"reflect-metadata",
"node",
"mocha"
],
"baseUrl": ".",
"paths": {
"*": ["types/*"]
},
"outDir": "built"
<|file_sep|>updated/tsconfig.json
{
"compilerOptions": {
"strict":true,
"strictNullChecks": false,
"declaration": true,
"target": "es6",
"lib": ["es6"],
"module": "commonjs",
"moduleResolution": "node",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"types": [
"reflect-metadata",
"node",
"mocha"
],
"baseUrl": ".",
"paths": {
"*": ["types/*"]
},
"outDir": "built" | d2a7c54224aee2cdebb11257745622ed5b0d2b1e | tsconfig.json | tsconfig.json | JSON |
<|file_sep|>original/requirements.txt
click==8.0.1
flask==2.0.1
flask-babel==2.0.0
flask-sqlalchemy==2.5.1
hiredis==2.0.0
itsdangerous==2.0.1
jinja2==3.0.1
markupsafe==2.0.1
marrow.mailer==4.0.3
marrow.util==1.2.3
marshmallow==3.12.1
pendulum==2.1.2
pillow==8.3.1
psycopg2-binary==2.9.1
python-dateutil==2.8.2
pytzdata==2020.1
redis==3.5.3
requests==2.26.0
rq==1.8.0
rq-dashboard==0.6.1
rtoml==0.7.0
<|file_sep|>current/requirements.txt
click==8.0.1
flask==2.0.1
flask-babel==2.0.0
flask-sqlalchemy==2.5.1
hiredis==2.0.0
itsdangerous==2.0.1
jinja2==3.0.1
markupsafe==2.0.1
marrow.mailer==4.0.3
marrow.util==1.2.3
marshmallow==3.12.1
pendulum==2.1.2
pillow==8.3.1
psycopg2-binary==2.9.1
python-dateutil==2.8.2
pytzdata==2020.1
redis==3.5.3
requests==2.26.0
rq==1.8.0
rq-dashboard==0.6.1
rtoml==0.7.0
<|file_sep|>updated/requirements.txt | click==8.0.1
flask==2.0.1
flask-babel==2.0.0
flask-sqlalchemy==2.5.1
hiredis==2.0.0
itsdangerous==2.0.1
jinja2==3.0.1
markupsafe==2.0.1
marrow.mailer==4.0.3
marrow.util==1.2.3
marshmallow==3.13.0
pendulum==2.1.2
pillow==8.3.1
psycopg2-binary==2.9.1
python-dateutil==2.8.2
pytzdata==2020.1
redis==3.5.3
requests==2.26.0
rq==1.8.0
rq-dashboard==0.6.1
rtoml==0.7.0 | <|file_sep|>original/requirements.txt
click==8.0.1
flask==2.0.1
flask-babel==2.0.0
flask-sqlalchemy==2.5.1
hiredis==2.0.0
itsdangerous==2.0.1
jinja2==3.0.1
markupsafe==2.0.1
marrow.mailer==4.0.3
marrow.util==1.2.3
marshmallow==3.12.1
pendulum==2.1.2
pillow==8.3.1
psycopg2-binary==2.9.1
python-dateutil==2.8.2
pytzdata==2020.1
redis==3.5.3
requests==2.26.0
rq==1.8.0
rq-dashboard==0.6.1
rtoml==0.7.0
<|file_sep|>current/requirements.txt
click==8.0.1
flask==2.0.1
flask-babel==2.0.0
flask-sqlalchemy==2.5.1
hiredis==2.0.0
itsdangerous==2.0.1
jinja2==3.0.1
markupsafe==2.0.1
marrow.mailer==4.0.3
marrow.util==1.2.3
marshmallow==3.12.1
pendulum==2.1.2
pillow==8.3.1
psycopg2-binary==2.9.1
python-dateutil==2.8.2
pytzdata==2020.1
redis==3.5.3
requests==2.26.0
rq==1.8.0
rq-dashboard==0.6.1
rtoml==0.7.0
<|file_sep|>updated/requirements.txt
click==8.0.1
flask==2.0.1
flask-babel==2.0.0
flask-sqlalchemy==2.5.1
hiredis==2.0.0
itsdangerous==2.0.1
jinja2==3.0.1
markupsafe==2.0.1
marrow.mailer==4.0.3
marrow.util==1.2.3
marshmallow==3.13.0
pendulum==2.1.2
pillow==8.3.1
psycopg2-binary==2.9.1
python-dateutil==2.8.2
pytzdata==2020.1
redis==3.5.3
requests==2.26.0
rq==1.8.0
rq-dashboard==0.6.1
rtoml==0.7.0 | 6eed410fa0cd63fd5b4a36f88e60b41854077bcb | requirements.txt | requirements.txt | Text |
<|file_sep|>.travis.yml.diff
original:
updated:
cache: cargo
<|file_sep|>original/.travis.yml
language: rust
rust:
- nightly
- beta
- stable
env:
- FEATURES=""
- FEATURES="no_std"
script:
- |
cargo build -vv
cargo test -vv
<|file_sep|>current/.travis.yml
language: rust
rust:
- nightly
- beta
- stable
cache: cargo
env:
- FEATURES=""
- FEATURES="no_std"
script:
- |
cargo build -vv
cargo test -vv
<|file_sep|>updated/.travis.yml | language: rust
rust:
- nightly
- beta
- stable
cache: cargo
env:
- FEATURES=""
- FEATURES="no_std"
script:
- cargo build -vv
- cargo test -vv
- cargo package -vv | <|file_sep|>.travis.yml.diff
original:
updated:
cache: cargo
<|file_sep|>original/.travis.yml
language: rust
rust:
- nightly
- beta
- stable
env:
- FEATURES=""
- FEATURES="no_std"
script:
- |
cargo build -vv
cargo test -vv
<|file_sep|>current/.travis.yml
language: rust
rust:
- nightly
- beta
- stable
cache: cargo
env:
- FEATURES=""
- FEATURES="no_std"
script:
- |
cargo build -vv
cargo test -vv
<|file_sep|>updated/.travis.yml
language: rust
rust:
- nightly
- beta
- stable
cache: cargo
env:
- FEATURES=""
- FEATURES="no_std"
script:
- cargo build -vv
- cargo test -vv
- cargo package -vv | 887a4dd5dfbc094f57a4f6869739dc769344d1b1 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/lib/generators/rspec/install/install_generator.rb
end
def copy_dot_rspec
template '.rspec'
end
def copy_spec_files
directory 'spec'
end
def copy_autotest_files
directory 'autotest'
end
def app_name
Rails.application.class.name
end
end
end
end
<|file_sep|>current/lib/generators/rspec/install/install_generator.rb
end
def copy_dot_rspec
template '.rspec'
end
def copy_spec_files
directory 'spec'
end
def copy_autotest_files
directory 'autotest'
end
def app_name
Rails.application.class.name
end
end
end
end
<|file_sep|>updated/lib/generators/rspec/install/install_generator.rb |
desc <<DESC
Description:
Copy rspec files to your application.
DESC
def self.source_root
@source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
end
def copy_dot_rspec
template '.rspec'
end
def copy_spec_files
directory 'spec'
end
end
end
end | <|file_sep|>original/lib/generators/rspec/install/install_generator.rb
end
def copy_dot_rspec
template '.rspec'
end
def copy_spec_files
directory 'spec'
end
def copy_autotest_files
directory 'autotest'
end
def app_name
Rails.application.class.name
end
end
end
end
<|file_sep|>current/lib/generators/rspec/install/install_generator.rb
end
def copy_dot_rspec
template '.rspec'
end
def copy_spec_files
directory 'spec'
end
def copy_autotest_files
directory 'autotest'
end
def app_name
Rails.application.class.name
end
end
end
end
<|file_sep|>updated/lib/generators/rspec/install/install_generator.rb
desc <<DESC
Description:
Copy rspec files to your application.
DESC
def self.source_root
@source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
end
def copy_dot_rspec
template '.rspec'
end
def copy_spec_files
directory 'spec'
end
end
end
end | 150355ccba6f902ab2a97d1783668b3dfe77f461 | lib/generators/rspec/install/install_generator.rb | lib/generators/rspec/install/install_generator.rb | Ruby |
<|file_sep|>src/ts/config/db.ts.diff
original:
export const version = 0;
updated:
export const version = 1;
<|file_sep|>original/src/ts/config/db.ts
/// <reference path="../core/migraterList" />
namespace YJMCNT.Config.DB {
export const name = 'counter';
export const version = 0;
export const READONLY = "readonry";
export const READWRITE = "readwrite";
var Migrater = YJMCNT.Core.Migrater;
export const migraters = new YJMCNT.Core.MigraterList([
new Migrater((db: IDBDatabase) => {
}),
new Migrater((db: IDBDatabase) => {
}),
]);
}
<|file_sep|>current/src/ts/config/db.ts
/// <reference path="../core/migraterList" />
namespace YJMCNT.Config.DB {
export const name = 'counter';
export const version = 1;
export const READONLY = "readonry";
export const READWRITE = "readwrite";
var Migrater = YJMCNT.Core.Migrater;
export const migraters = new YJMCNT.Core.MigraterList([
new Migrater((db: IDBDatabase) => {
}),
new Migrater((db: IDBDatabase) => {
}),
]);
}
<|file_sep|>updated/src/ts/config/db.ts | /// <reference path="../core/migraterList" />
namespace YJMCNT.Config.DB {
export const name = 'counter';
export const version = 1;
export const READONLY = "readonry";
export const READWRITE = "readwrite";
var Migrater = YJMCNT.Core.Migrater;
export const migraters = new YJMCNT.Core.MigraterList([
new Migrater((db: IDBDatabase) => {
}),
new Migrater((db: IDBDatabase) => {
db.createObjectStore('counters', { keyPath: "id" });
}),
]);
} | <|file_sep|>src/ts/config/db.ts.diff
original:
export const version = 0;
updated:
export const version = 1;
<|file_sep|>original/src/ts/config/db.ts
/// <reference path="../core/migraterList" />
namespace YJMCNT.Config.DB {
export const name = 'counter';
export const version = 0;
export const READONLY = "readonry";
export const READWRITE = "readwrite";
var Migrater = YJMCNT.Core.Migrater;
export const migraters = new YJMCNT.Core.MigraterList([
new Migrater((db: IDBDatabase) => {
}),
new Migrater((db: IDBDatabase) => {
}),
]);
}
<|file_sep|>current/src/ts/config/db.ts
/// <reference path="../core/migraterList" />
namespace YJMCNT.Config.DB {
export const name = 'counter';
export const version = 1;
export const READONLY = "readonry";
export const READWRITE = "readwrite";
var Migrater = YJMCNT.Core.Migrater;
export const migraters = new YJMCNT.Core.MigraterList([
new Migrater((db: IDBDatabase) => {
}),
new Migrater((db: IDBDatabase) => {
}),
]);
}
<|file_sep|>updated/src/ts/config/db.ts
/// <reference path="../core/migraterList" />
namespace YJMCNT.Config.DB {
export const name = 'counter';
export const version = 1;
export const READONLY = "readonry";
export const READWRITE = "readwrite";
var Migrater = YJMCNT.Core.Migrater;
export const migraters = new YJMCNT.Core.MigraterList([
new Migrater((db: IDBDatabase) => {
}),
new Migrater((db: IDBDatabase) => {
db.createObjectStore('counters', { keyPath: "id" });
}),
]);
} | b36f994d0110df0db09c2a66a932a0c6b155c131 | src/ts/config/db.ts | src/ts/config/db.ts | TypeScript |
<|file_sep|>original/web/opensubmit/templates/footer.html
<footer class="footer">
OpenSubmit v{{opensubmit_version}}
<a href="mailto:{{opensubmit_admin}}">Feedback</a>
{% if user.is_authenticated %}
<a href="{{main_url}}/teacher/">Teacher backend</a>
{% endif %}
</footer>
<|file_sep|>current/web/opensubmit/templates/footer.html
<footer class="footer">
OpenSubmit v{{opensubmit_version}}
<a href="mailto:{{opensubmit_admin}}">Feedback</a>
{% if user.is_authenticated %}
<a href="{{main_url}}/teacher/">Teacher backend</a>
{% endif %}
</footer>
<|file_sep|>updated/web/opensubmit/templates/footer.html | <footer class="footer">
<a href="http://open-submit.org">OpenSubmit</a> v{{opensubmit_version}}
<a href="mailto:{{opensubmit_admin}}">Feedback</a>
{% if user.is_authenticated %}
<a href="{{main_url}}/teacher/">Teacher backend</a>
{% endif %}
</footer> | <|file_sep|>original/web/opensubmit/templates/footer.html
<footer class="footer">
OpenSubmit v{{opensubmit_version}}
<a href="mailto:{{opensubmit_admin}}">Feedback</a>
{% if user.is_authenticated %}
<a href="{{main_url}}/teacher/">Teacher backend</a>
{% endif %}
</footer>
<|file_sep|>current/web/opensubmit/templates/footer.html
<footer class="footer">
OpenSubmit v{{opensubmit_version}}
<a href="mailto:{{opensubmit_admin}}">Feedback</a>
{% if user.is_authenticated %}
<a href="{{main_url}}/teacher/">Teacher backend</a>
{% endif %}
</footer>
<|file_sep|>updated/web/opensubmit/templates/footer.html
<footer class="footer">
<a href="http://open-submit.org">OpenSubmit</a> v{{opensubmit_version}}
<a href="mailto:{{opensubmit_admin}}">Feedback</a>
{% if user.is_authenticated %}
<a href="{{main_url}}/teacher/">Teacher backend</a>
{% endif %}
</footer> | 1c96f9ff1613c3a3626d9691282291d6a805640b | web/opensubmit/templates/footer.html | web/opensubmit/templates/footer.html | HTML |
<|file_sep|>original/.gitlab-ci.yml
<|file_sep|>current/.gitlab-ci.yml
<|file_sep|>updated/.gitlab-ci.yml | image: clojure
before_script:
- lein clean
- lein kibit
build:
script:
- lein cljsbuild once min
#artifacts:
# paths:
# - resources/public/js/compiled/discuss.js
# expire_in: 1 week | <|file_sep|>original/.gitlab-ci.yml
<|file_sep|>current/.gitlab-ci.yml
<|file_sep|>updated/.gitlab-ci.yml
image: clojure
before_script:
- lein clean
- lein kibit
build:
script:
- lein cljsbuild once min
#artifacts:
# paths:
# - resources/public/js/compiled/discuss.js
# expire_in: 1 week | ff5d8c4cf95afb63917d9791534611d3c4550377 | .gitlab-ci.yml | .gitlab-ci.yml | YAML |
<|file_sep|>original/source/publishing_data/05_processing_data/processors/geohash_to_geojson.rst
<|file_sep|>current/source/publishing_data/05_processing_data/processors/geohash_to_geojson.rst
<|file_sep|>updated/source/publishing_data/05_processing_data/processors/geohash_to_geojson.rst | GeoHash to GeoJSON
==================
.. admonition:: Important
:class: important
This processor is not available by default. Please contact Opendatasoft support team if you want this processor to be activated in your domain.
This processor converts geohashes (short strings of letters and digits encoding a geographical location) into a GeoJSON object.
Setting the processor
---------------------
To set the parameters of the GeoHash to GeoJSON processor, follow the indications from the table below.
.. list-table::
:header-rows: 1
* * Label
* Description
* Mandatory | <|file_sep|>original/source/publishing_data/05_processing_data/processors/geohash_to_geojson.rst
<|file_sep|>current/source/publishing_data/05_processing_data/processors/geohash_to_geojson.rst
<|file_sep|>updated/source/publishing_data/05_processing_data/processors/geohash_to_geojson.rst
GeoHash to GeoJSON
==================
.. admonition:: Important
:class: important
This processor is not available by default. Please contact Opendatasoft support team if you want this processor to be activated in your domain.
This processor converts geohashes (short strings of letters and digits encoding a geographical location) into a GeoJSON object.
Setting the processor
---------------------
To set the parameters of the GeoHash to GeoJSON processor, follow the indications from the table below.
.. list-table::
:header-rows: 1
* * Label
* Description
* Mandatory | 69e535808e7c60b8913f09e6d1b624d2eda82656 | source/publishing_data/05_processing_data/processors/geohash_to_geojson.rst | source/publishing_data/05_processing_data/processors/geohash_to_geojson.rst | reStructuredText |
<|file_sep|>app/views/home/index.html.haml.diff
original:
updated:
%p#skip-target-holder
= link_to "skip-target", "#skip-target", class: "skip", id: "skip-target", tabindex: "-1"
<|file_sep|>original/app/views/home/index.html.haml
.row
%h1
= link_to 'Unclaimed Money Search', root_path
.large-7.columns
%p.lead
Does the government owe you money?<br />Search once and find out!
%p#skip-target-holder
= link_to "skip-target", "#skip-target", class: "skip", id: "skip-target", tabindex: "-1"
%div.search_form
= form_tag search_path, method: 'get', class: 'custom' do
%div.row
%div.large-12.columns.alert-box.radius
%p
%strong Search Tip:
Try searching with your maiden name, previous married name(s), and any legal aliases.
%div.large-12.columns.panel.radius
%p.lead
%label{"for"=>"last_name"}
Enter your
%strong last name
or the
<|file_sep|>current/app/views/home/index.html.haml
.row
%p#skip-target-holder
= link_to "skip-target", "#skip-target", class: "skip", id: "skip-target", tabindex: "-1"
%h1
= link_to 'Unclaimed Money Search', root_path
.large-7.columns
%p.lead
Does the government owe you money?<br />Search once and find out!
%p#skip-target-holder
= link_to "skip-target", "#skip-target", class: "skip", id: "skip-target", tabindex: "-1"
%div.search_form
= form_tag search_path, method: 'get', class: 'custom' do
%div.row
%div.large-12.columns.alert-box.radius
%p
%strong Search Tip:
Try searching with your maiden name, previous married name(s), and any legal aliases.
%div.large-12.columns.panel.radius
%p.lead
%label{"for"=>"last_name"}
Enter your
<|file_sep|>updated/app/views/home/index.html.haml | .row
%p#skip-target-holder
= link_to "skip-target", "#skip-target", class: "skip", id: "skip-target", tabindex: "-1"
%h1
= link_to 'Unclaimed Money Search', root_path
.large-7.columns
%p.lead
Does the government owe you money?<br />Search once and find out!
%div.search_form
= form_tag search_path, method: 'get', class: 'custom' do
%div.row
%div.large-12.columns.alert-box.radius
%p
%strong Search Tip:
Try searching with your maiden name, previous married name(s), and any legal aliases.
%div.large-12.columns.panel.radius
%p.lead
%label{"for"=>"last_name"}
Enter your
%strong last name
or the | <|file_sep|>app/views/home/index.html.haml.diff
original:
updated:
%p#skip-target-holder
= link_to "skip-target", "#skip-target", class: "skip", id: "skip-target", tabindex: "-1"
<|file_sep|>original/app/views/home/index.html.haml
.row
%h1
= link_to 'Unclaimed Money Search', root_path
.large-7.columns
%p.lead
Does the government owe you money?<br />Search once and find out!
%p#skip-target-holder
= link_to "skip-target", "#skip-target", class: "skip", id: "skip-target", tabindex: "-1"
%div.search_form
= form_tag search_path, method: 'get', class: 'custom' do
%div.row
%div.large-12.columns.alert-box.radius
%p
%strong Search Tip:
Try searching with your maiden name, previous married name(s), and any legal aliases.
%div.large-12.columns.panel.radius
%p.lead
%label{"for"=>"last_name"}
Enter your
%strong last name
or the
<|file_sep|>current/app/views/home/index.html.haml
.row
%p#skip-target-holder
= link_to "skip-target", "#skip-target", class: "skip", id: "skip-target", tabindex: "-1"
%h1
= link_to 'Unclaimed Money Search', root_path
.large-7.columns
%p.lead
Does the government owe you money?<br />Search once and find out!
%p#skip-target-holder
= link_to "skip-target", "#skip-target", class: "skip", id: "skip-target", tabindex: "-1"
%div.search_form
= form_tag search_path, method: 'get', class: 'custom' do
%div.row
%div.large-12.columns.alert-box.radius
%p
%strong Search Tip:
Try searching with your maiden name, previous married name(s), and any legal aliases.
%div.large-12.columns.panel.radius
%p.lead
%label{"for"=>"last_name"}
Enter your
<|file_sep|>updated/app/views/home/index.html.haml
.row
%p#skip-target-holder
= link_to "skip-target", "#skip-target", class: "skip", id: "skip-target", tabindex: "-1"
%h1
= link_to 'Unclaimed Money Search', root_path
.large-7.columns
%p.lead
Does the government owe you money?<br />Search once and find out!
%div.search_form
= form_tag search_path, method: 'get', class: 'custom' do
%div.row
%div.large-12.columns.alert-box.radius
%p
%strong Search Tip:
Try searching with your maiden name, previous married name(s), and any legal aliases.
%div.large-12.columns.panel.radius
%p.lead
%label{"for"=>"last_name"}
Enter your
%strong last name
or the | a0fcd33a2c52d03918e3ebc2d08a1f17fca0af6e | app/views/home/index.html.haml | app/views/home/index.html.haml | Haml |
<|file_sep|>original/deploy/python_pip_non_root.sh
<|file_sep|>current/deploy/python_pip_non_root.sh
<|file_sep|>updated/deploy/python_pip_non_root.sh | #!/bin/sh
wget https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tgz
tar -xzf Python-2.7.13.tgz
cd Python-2.7.13
mkdir -p $HOME/bin
./configure --prefix="$HOME"
make
make install | <|file_sep|>original/deploy/python_pip_non_root.sh
<|file_sep|>current/deploy/python_pip_non_root.sh
<|file_sep|>updated/deploy/python_pip_non_root.sh
#!/bin/sh
wget https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tgz
tar -xzf Python-2.7.13.tgz
cd Python-2.7.13
mkdir -p $HOME/bin
./configure --prefix="$HOME"
make
make install | 05a68a6f29deaf2f63fc22b78fdfeb2dbcc4600b | deploy/python_pip_non_root.sh | deploy/python_pip_non_root.sh | Shell |
<|file_sep|>original/lib/nativeCollectionMethodNames.js
'use strict';
var getMethodNames = require('method-names'),
mongodb = require('mongodb');
function getNativeCollectionMethodNames() {
var dummyNativeDb = { options: {}, serverConfig: { options: {} } },
nativeCollection = new mongodb.Collection(dummyNativeDb, 'anyCollectionName');
return getMethodNames(nativeCollection);
}
module.exports = getNativeCollectionMethodNames();
<|file_sep|>current/lib/nativeCollectionMethodNames.js
'use strict';
var getMethodNames = require('method-names'),
mongodb = require('mongodb');
function getNativeCollectionMethodNames() {
var dummyNativeDb = { options: {}, serverConfig: { options: {} } },
nativeCollection = new mongodb.Collection(dummyNativeDb, 'anyCollectionName');
return getMethodNames(nativeCollection);
}
module.exports = getNativeCollectionMethodNames();
<|file_sep|>updated/lib/nativeCollectionMethodNames.js | 'use strict';
var getMethodNames = require('method-names'),
mongodb = require('mongodb');
function getNativeCollectionMethodNames() {
var dummyNativeDb = { options: {} },
nativeCollection = new mongodb.Collection(dummyNativeDb, null, '', 'anyCollectionName', null, {});
return getMethodNames(nativeCollection);
}
module.exports = getNativeCollectionMethodNames(); | <|file_sep|>original/lib/nativeCollectionMethodNames.js
'use strict';
var getMethodNames = require('method-names'),
mongodb = require('mongodb');
function getNativeCollectionMethodNames() {
var dummyNativeDb = { options: {}, serverConfig: { options: {} } },
nativeCollection = new mongodb.Collection(dummyNativeDb, 'anyCollectionName');
return getMethodNames(nativeCollection);
}
module.exports = getNativeCollectionMethodNames();
<|file_sep|>current/lib/nativeCollectionMethodNames.js
'use strict';
var getMethodNames = require('method-names'),
mongodb = require('mongodb');
function getNativeCollectionMethodNames() {
var dummyNativeDb = { options: {}, serverConfig: { options: {} } },
nativeCollection = new mongodb.Collection(dummyNativeDb, 'anyCollectionName');
return getMethodNames(nativeCollection);
}
module.exports = getNativeCollectionMethodNames();
<|file_sep|>updated/lib/nativeCollectionMethodNames.js
'use strict';
var getMethodNames = require('method-names'),
mongodb = require('mongodb');
function getNativeCollectionMethodNames() {
var dummyNativeDb = { options: {} },
nativeCollection = new mongodb.Collection(dummyNativeDb, null, '', 'anyCollectionName', null, {});
return getMethodNames(nativeCollection);
}
module.exports = getNativeCollectionMethodNames(); | d45355ec5637a1b2ef0e552cc25f979a2e1357f3 | lib/nativeCollectionMethodNames.js | lib/nativeCollectionMethodNames.js | JavaScript |
<|file_sep|>original/installed/opensuse-12.3/Dockerfile
<|file_sep|>current/installed/opensuse-12.3/Dockerfile
<|file_sep|>updated/installed/opensuse-12.3/Dockerfile | from saltstack/opensuse-12.3-minimal
MAINTAINER SaltStack, Inc.
# Install Dependencies
RUN zypper --non-interactive install --auto-agree-with-licenses python-setuptools
# Install Salt
RUN easy_install https://github.com/saltstack/salt/archive/develop.tar.gz | <|file_sep|>original/installed/opensuse-12.3/Dockerfile
<|file_sep|>current/installed/opensuse-12.3/Dockerfile
<|file_sep|>updated/installed/opensuse-12.3/Dockerfile
from saltstack/opensuse-12.3-minimal
MAINTAINER SaltStack, Inc.
# Install Dependencies
RUN zypper --non-interactive install --auto-agree-with-licenses python-setuptools
# Install Salt
RUN easy_install https://github.com/saltstack/salt/archive/develop.tar.gz | 4f16aa7b2401026a84884d7997f8a01a24bb4f5e | installed/opensuse-12.3/Dockerfile | installed/opensuse-12.3/Dockerfile | unknown |
<|file_sep|>original/requirements.txt
numpy>=1.11.1
sympy>=0.7.6
mpmath>=0.19
pytest
flake8>=2.1.0
isort
py-cpuinfo
git+git://github.com/inducer/cgen
git+git://github.com/inducer/codepy
<|file_sep|>current/requirements.txt
numpy>=1.11.1
sympy>=0.7.6
mpmath>=0.19
pytest
flake8>=2.1.0
isort
py-cpuinfo
git+git://github.com/inducer/cgen
git+git://github.com/inducer/codepy
<|file_sep|>updated/requirements.txt | numpy>=1.11.1
sympy>=0.7.6
mpmath>=0.19
pytest
flake8>=2.1.0
isort
py-cpuinfo
psutil>=5.1.0
git+git://github.com/inducer/cgen
git+git://github.com/inducer/codepy | <|file_sep|>original/requirements.txt
numpy>=1.11.1
sympy>=0.7.6
mpmath>=0.19
pytest
flake8>=2.1.0
isort
py-cpuinfo
git+git://github.com/inducer/cgen
git+git://github.com/inducer/codepy
<|file_sep|>current/requirements.txt
numpy>=1.11.1
sympy>=0.7.6
mpmath>=0.19
pytest
flake8>=2.1.0
isort
py-cpuinfo
git+git://github.com/inducer/cgen
git+git://github.com/inducer/codepy
<|file_sep|>updated/requirements.txt
numpy>=1.11.1
sympy>=0.7.6
mpmath>=0.19
pytest
flake8>=2.1.0
isort
py-cpuinfo
psutil>=5.1.0
git+git://github.com/inducer/cgen
git+git://github.com/inducer/codepy | f81587299b091740e9fe7450a8689798fbe39532 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/_includes/pagination.html
<nav class="section-nav text-center">
{% if page.prev_section != null %}
<a href="{{ site.url }}{% if page.lang %}/{{ page.lang }}{% endif %}/{{page.chapter}}/{{ page.prev_section }}/"
class="btn btn-prev btn-primary" title="{{ page.prev_section | capitalize }}">
Back
</a>
{% else %}
<a class="btn btn-prev prev disabled">Back</a>
{% endif %}
{% if page.next_section != null %}
<a href="{{ site.url }}{% if page.lang %}/{{ page.lang }}{% endif %}/{{page.chapter}}/{{ page.next_section }}/"
class="btn btn-next btn-primary" title="{{ page.next_section | capitalize }}">
Next
</a>
{% else %}
<a class="btn btn-next next disabled">Next</a>
{% endif %}
</nav>
<|file_sep|>current/_includes/pagination.html
<nav class="section-nav text-center">
{% if page.prev_section != null %}
<a href="{{ site.url }}{% if page.lang %}/{{ page.lang }}{% endif %}/{{page.chapter}}/{{ page.prev_section }}/"
class="btn btn-prev btn-primary" title="{{ page.prev_section | capitalize }}">
Back
</a>
{% else %}
<a class="btn btn-prev prev disabled">Back</a>
{% endif %}
{% if page.next_section != null %}
<a href="{{ site.url }}{% if page.lang %}/{{ page.lang }}{% endif %}/{{page.chapter}}/{{ page.next_section }}/"
class="btn btn-next btn-primary" title="{{ page.next_section | capitalize }}">
Next
</a>
{% else %}
<a class="btn btn-next next disabled">Next</a>
{% endif %}
</nav>
<|file_sep|>updated/_includes/pagination.html | <nav class="section-nav text-center">
{% if page.prev_section != null %}
<a href="{{ site.url }}{% if page.lang %}/{{ page.lang }}{% endif %}/{{page.chapter}}/{% if page.chapter != page.prev_section %}{{ page.prev_section }}/{% endif %}"
class="btn btn-prev btn-primary" title="{{ page.prev_section | capitalize }}">
Back
</a>
{% else %}
<a class="btn btn-prev prev disabled">Back</a>
{% endif %}
{% if page.next_section != null %}
<a href="{{ site.url }}{% if page.lang %}/{{ page.lang }}{% endif %}/{{page.chapter}}/{{ page.next_section }}/"
class="btn btn-next btn-primary" title="{{ page.next_section | capitalize }}">
Next
</a>
{% else %}
<a class="btn btn-next next disabled">Next</a>
{% endif %}
</nav> | <|file_sep|>original/_includes/pagination.html
<nav class="section-nav text-center">
{% if page.prev_section != null %}
<a href="{{ site.url }}{% if page.lang %}/{{ page.lang }}{% endif %}/{{page.chapter}}/{{ page.prev_section }}/"
class="btn btn-prev btn-primary" title="{{ page.prev_section | capitalize }}">
Back
</a>
{% else %}
<a class="btn btn-prev prev disabled">Back</a>
{% endif %}
{% if page.next_section != null %}
<a href="{{ site.url }}{% if page.lang %}/{{ page.lang }}{% endif %}/{{page.chapter}}/{{ page.next_section }}/"
class="btn btn-next btn-primary" title="{{ page.next_section | capitalize }}">
Next
</a>
{% else %}
<a class="btn btn-next next disabled">Next</a>
{% endif %}
</nav>
<|file_sep|>current/_includes/pagination.html
<nav class="section-nav text-center">
{% if page.prev_section != null %}
<a href="{{ site.url }}{% if page.lang %}/{{ page.lang }}{% endif %}/{{page.chapter}}/{{ page.prev_section }}/"
class="btn btn-prev btn-primary" title="{{ page.prev_section | capitalize }}">
Back
</a>
{% else %}
<a class="btn btn-prev prev disabled">Back</a>
{% endif %}
{% if page.next_section != null %}
<a href="{{ site.url }}{% if page.lang %}/{{ page.lang }}{% endif %}/{{page.chapter}}/{{ page.next_section }}/"
class="btn btn-next btn-primary" title="{{ page.next_section | capitalize }}">
Next
</a>
{% else %}
<a class="btn btn-next next disabled">Next</a>
{% endif %}
</nav>
<|file_sep|>updated/_includes/pagination.html
<nav class="section-nav text-center">
{% if page.prev_section != null %}
<a href="{{ site.url }}{% if page.lang %}/{{ page.lang }}{% endif %}/{{page.chapter}}/{% if page.chapter != page.prev_section %}{{ page.prev_section }}/{% endif %}"
class="btn btn-prev btn-primary" title="{{ page.prev_section | capitalize }}">
Back
</a>
{% else %}
<a class="btn btn-prev prev disabled">Back</a>
{% endif %}
{% if page.next_section != null %}
<a href="{{ site.url }}{% if page.lang %}/{{ page.lang }}{% endif %}/{{page.chapter}}/{{ page.next_section }}/"
class="btn btn-next btn-primary" title="{{ page.next_section | capitalize }}">
Next
</a>
{% else %}
<a class="btn btn-next next disabled">Next</a>
{% endif %}
</nav> | 1b5ff268b803d354ca376d9547a9f44b813a56fb | _includes/pagination.html | _includes/pagination.html | HTML |
<|file_sep|>original/zsh/15.updates.zsh
#!/usr/bin/env zsh
local UPDATES=$(git diff --name-only origin/master..HEAD | wc -l)
if [[ $UPDATES -gt 0 ]]; then
echo $PR_YELLOW"Updates for dotfiles detected."$PR_NO_COLOR
echo
else
git --git-dir "$(realpath ${0:a:h}/..)/.git" fetch origin &> /dev/null &!
fi
<|file_sep|>current/zsh/15.updates.zsh
#!/usr/bin/env zsh
local UPDATES=$(git diff --name-only origin/master..HEAD | wc -l)
if [[ $UPDATES -gt 0 ]]; then
echo $PR_YELLOW"Updates for dotfiles detected."$PR_NO_COLOR
echo
else
git --git-dir "$(realpath ${0:a:h}/..)/.git" fetch origin &> /dev/null &!
fi
<|file_sep|>updated/zsh/15.updates.zsh | #!/usr/bin/env zsh
local UPDATES=$(git log --oneline --no-patch origin/master..HEAD | wc -l)
if [[ $UPDATES -gt 0 ]]; then
echo $PR_YELLOW"Updates for dotfiles detected."$PR_NO_COLOR
echo
else
git --git-dir "$(realpath ${0:a:h}/..)/.git" fetch origin &> /dev/null &!
fi | <|file_sep|>original/zsh/15.updates.zsh
#!/usr/bin/env zsh
local UPDATES=$(git diff --name-only origin/master..HEAD | wc -l)
if [[ $UPDATES -gt 0 ]]; then
echo $PR_YELLOW"Updates for dotfiles detected."$PR_NO_COLOR
echo
else
git --git-dir "$(realpath ${0:a:h}/..)/.git" fetch origin &> /dev/null &!
fi
<|file_sep|>current/zsh/15.updates.zsh
#!/usr/bin/env zsh
local UPDATES=$(git diff --name-only origin/master..HEAD | wc -l)
if [[ $UPDATES -gt 0 ]]; then
echo $PR_YELLOW"Updates for dotfiles detected."$PR_NO_COLOR
echo
else
git --git-dir "$(realpath ${0:a:h}/..)/.git" fetch origin &> /dev/null &!
fi
<|file_sep|>updated/zsh/15.updates.zsh
#!/usr/bin/env zsh
local UPDATES=$(git log --oneline --no-patch origin/master..HEAD | wc -l)
if [[ $UPDATES -gt 0 ]]; then
echo $PR_YELLOW"Updates for dotfiles detected."$PR_NO_COLOR
echo
else
git --git-dir "$(realpath ${0:a:h}/..)/.git" fetch origin &> /dev/null &!
fi | 4e571196bc55bbdca298acd7041896c931dfd77a | zsh/15.updates.zsh | zsh/15.updates.zsh | Shell |
<|file_sep|>original/nix/hosts/dino/configuration.nix
{ config, pkgs, ... }:
{
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.blacklistedKernelModules = [
"hid_sensor_hub"
];
# becuase we are dual booting
time.hardwareClockInLocalTime = true;
services.fwupd.enable = true;
networking.hostName = "dino"; # Define your hostname.
networking.wireless.enable = true;
system.stateVersion = "22.05";
}
<|file_sep|>current/nix/hosts/dino/configuration.nix
{ config, pkgs, ... }:
{
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.blacklistedKernelModules = [
"hid_sensor_hub"
];
# becuase we are dual booting
time.hardwareClockInLocalTime = true;
services.fwupd.enable = true;
networking.hostName = "dino"; # Define your hostname.
networking.wireless.enable = true;
system.stateVersion = "22.05";
}
<|file_sep|>updated/nix/hosts/dino/configuration.nix | { config, pkgs, ... }:
{
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.blacklistedKernelModules = [
"hid_sensor_hub"
];
# becuase we are dual booting
time.hardwareClockInLocalTime = true;
services.fwupd.enable = true;
hardware.video.hidpi.enable = true;
networking.hostName = "dino"; # Define your hostname.
networking.wireless.enable = true;
system.stateVersion = "22.05";
}
| <|file_sep|>original/nix/hosts/dino/configuration.nix
{ config, pkgs, ... }:
{
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.blacklistedKernelModules = [
"hid_sensor_hub"
];
# becuase we are dual booting
time.hardwareClockInLocalTime = true;
services.fwupd.enable = true;
networking.hostName = "dino"; # Define your hostname.
networking.wireless.enable = true;
system.stateVersion = "22.05";
}
<|file_sep|>current/nix/hosts/dino/configuration.nix
{ config, pkgs, ... }:
{
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.blacklistedKernelModules = [
"hid_sensor_hub"
];
# becuase we are dual booting
time.hardwareClockInLocalTime = true;
services.fwupd.enable = true;
networking.hostName = "dino"; # Define your hostname.
networking.wireless.enable = true;
system.stateVersion = "22.05";
}
<|file_sep|>updated/nix/hosts/dino/configuration.nix
{ config, pkgs, ... }:
{
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.blacklistedKernelModules = [
"hid_sensor_hub"
];
# becuase we are dual booting
time.hardwareClockInLocalTime = true;
services.fwupd.enable = true;
hardware.video.hidpi.enable = true;
networking.hostName = "dino"; # Define your hostname.
networking.wireless.enable = true;
system.stateVersion = "22.05";
}
| 57fc94b8c47aa818ecc5af3d454b02a279cae660 | nix/hosts/dino/configuration.nix | nix/hosts/dino/configuration.nix | Nix |
<|file_sep|>original/src/main/resources/application-dev.properties
spring.datasource.password=
# H2 DATABASE ----------------------------------------------------------------------------------------------------------
# Should H2 web console should be enabled or not?
spring.h2.console.enabled=true
# VIEW -----------------------------------------------------------------------------------------------------------------
#server.jsp-servlet.init-parameters.development=true
# Cache period for the resources served by the resource handler, in seconds
#spring.resources.cache-period=0
# TEST DATA ------------------------------------------------------------------------------------------------------------
# Should test data be created on startup or not?
testdata.create=true
# AUTHENTICATION -------------------------------------------------------------------------------------------------------
# Choose one: default, ldap, activeDirectory
auth=default
# LOGGING --------------------------------------------------------------------------------------------------------------
logging.file=
<|file_sep|>current/src/main/resources/application-dev.properties
spring.datasource.password=
# H2 DATABASE ----------------------------------------------------------------------------------------------------------
# Should H2 web console should be enabled or not?
spring.h2.console.enabled=true
# VIEW -----------------------------------------------------------------------------------------------------------------
#server.jsp-servlet.init-parameters.development=true
# Cache period for the resources served by the resource handler, in seconds
#spring.resources.cache-period=0
# TEST DATA ------------------------------------------------------------------------------------------------------------
# Should test data be created on startup or not?
testdata.create=true
# AUTHENTICATION -------------------------------------------------------------------------------------------------------
# Choose one: default, ldap, activeDirectory
auth=default
# LOGGING --------------------------------------------------------------------------------------------------------------
logging.file=
<|file_sep|>updated/src/main/resources/application-dev.properties | spring.h2.console.enabled=true
# VIEW -----------------------------------------------------------------------------------------------------------------
#server.jsp-servlet.init-parameters.development=true
# Cache period for the resources served by the resource handler, in seconds
#spring.resources.cache-period=0
# TEST DATA ------------------------------------------------------------------------------------------------------------
# Should test data be created on startup or not?
testdata.create=true
# AUTHENTICATION -------------------------------------------------------------------------------------------------------
# Choose one: default, ldap, activeDirectory
auth=default
# LOGGING --------------------------------------------------------------------------------------------------------------
logging.file=
# ACTUATOR -------------------------------------------------------------------------------------------------------------
management.health.mail.enabled=false
management.health.ldap.enabled=false | <|file_sep|>original/src/main/resources/application-dev.properties
spring.datasource.password=
# H2 DATABASE ----------------------------------------------------------------------------------------------------------
# Should H2 web console should be enabled or not?
spring.h2.console.enabled=true
# VIEW -----------------------------------------------------------------------------------------------------------------
#server.jsp-servlet.init-parameters.development=true
# Cache period for the resources served by the resource handler, in seconds
#spring.resources.cache-period=0
# TEST DATA ------------------------------------------------------------------------------------------------------------
# Should test data be created on startup or not?
testdata.create=true
# AUTHENTICATION -------------------------------------------------------------------------------------------------------
# Choose one: default, ldap, activeDirectory
auth=default
# LOGGING --------------------------------------------------------------------------------------------------------------
logging.file=
<|file_sep|>current/src/main/resources/application-dev.properties
spring.datasource.password=
# H2 DATABASE ----------------------------------------------------------------------------------------------------------
# Should H2 web console should be enabled or not?
spring.h2.console.enabled=true
# VIEW -----------------------------------------------------------------------------------------------------------------
#server.jsp-servlet.init-parameters.development=true
# Cache period for the resources served by the resource handler, in seconds
#spring.resources.cache-period=0
# TEST DATA ------------------------------------------------------------------------------------------------------------
# Should test data be created on startup or not?
testdata.create=true
# AUTHENTICATION -------------------------------------------------------------------------------------------------------
# Choose one: default, ldap, activeDirectory
auth=default
# LOGGING --------------------------------------------------------------------------------------------------------------
logging.file=
<|file_sep|>updated/src/main/resources/application-dev.properties
spring.h2.console.enabled=true
# VIEW -----------------------------------------------------------------------------------------------------------------
#server.jsp-servlet.init-parameters.development=true
# Cache period for the resources served by the resource handler, in seconds
#spring.resources.cache-period=0
# TEST DATA ------------------------------------------------------------------------------------------------------------
# Should test data be created on startup or not?
testdata.create=true
# AUTHENTICATION -------------------------------------------------------------------------------------------------------
# Choose one: default, ldap, activeDirectory
auth=default
# LOGGING --------------------------------------------------------------------------------------------------------------
logging.file=
# ACTUATOR -------------------------------------------------------------------------------------------------------------
management.health.mail.enabled=false
management.health.ldap.enabled=false | 693f7c2b516523e9618d930c9c1c03fa1afe85fc | src/main/resources/application-dev.properties | src/main/resources/application-dev.properties | INI |
<|file_sep|>ngx-tour-ngx-bootstrap/package.json.diff
original:
"peerDependencies": {
"ngx-bootstrap": "^1.9.3"
},
updated:
<|file_sep|>original/ngx-tour-ngx-bootstrap/package.json
{
"name": "ngx-tour-ngx-bootstrap",
"version": "1.0.4",
"repository": "https://github.com/isaacplmann/ngx-tour.git",
"author": "Rachel Yordán <rachelyordan@gmail.com>",
"license": "MIT",
"peerDependencies": {
"ngx-bootstrap": "^1.9.3"
},
"dependencies": {
"ngx-tour-core": "^1.0.0",
"withinviewport": "^2.0.0"
}
}
<|file_sep|>current/ngx-tour-ngx-bootstrap/package.json
{
"name": "ngx-tour-ngx-bootstrap",
"version": "1.0.4",
"repository": "https://github.com/isaacplmann/ngx-tour.git",
"author": "Rachel Yordán <rachelyordan@gmail.com>",
"license": "MIT",
"dependencies": {
"ngx-tour-core": "^1.0.0",
"withinviewport": "^2.0.0"
}
}
<|file_sep|>updated/ngx-tour-ngx-bootstrap/package.json | {
"name": "ngx-tour-ngx-bootstrap",
"version": "1.0.4",
"repository": "https://github.com/isaacplmann/ngx-tour.git",
"author": "Rachel Yordán <rachelyordan@gmail.com>",
"license": "MIT",
"dependencies": {
"ngx-bootstrap": "^1.9.3",
"ngx-tour-core": "^1.0.0",
"withinviewport": "^2.0.0"
}
} | <|file_sep|>ngx-tour-ngx-bootstrap/package.json.diff
original:
"peerDependencies": {
"ngx-bootstrap": "^1.9.3"
},
updated:
<|file_sep|>original/ngx-tour-ngx-bootstrap/package.json
{
"name": "ngx-tour-ngx-bootstrap",
"version": "1.0.4",
"repository": "https://github.com/isaacplmann/ngx-tour.git",
"author": "Rachel Yordán <rachelyordan@gmail.com>",
"license": "MIT",
"peerDependencies": {
"ngx-bootstrap": "^1.9.3"
},
"dependencies": {
"ngx-tour-core": "^1.0.0",
"withinviewport": "^2.0.0"
}
}
<|file_sep|>current/ngx-tour-ngx-bootstrap/package.json
{
"name": "ngx-tour-ngx-bootstrap",
"version": "1.0.4",
"repository": "https://github.com/isaacplmann/ngx-tour.git",
"author": "Rachel Yordán <rachelyordan@gmail.com>",
"license": "MIT",
"dependencies": {
"ngx-tour-core": "^1.0.0",
"withinviewport": "^2.0.0"
}
}
<|file_sep|>updated/ngx-tour-ngx-bootstrap/package.json
{
"name": "ngx-tour-ngx-bootstrap",
"version": "1.0.4",
"repository": "https://github.com/isaacplmann/ngx-tour.git",
"author": "Rachel Yordán <rachelyordan@gmail.com>",
"license": "MIT",
"dependencies": {
"ngx-bootstrap": "^1.9.3",
"ngx-tour-core": "^1.0.0",
"withinviewport": "^2.0.0"
}
} | c435291b5e6b190a759e78dca540aca54b28546d | ngx-tour-ngx-bootstrap/package.json | ngx-tour-ngx-bootstrap/package.json | JSON |
<|file_sep|>original/database/migrations/2018_04_03_223500_update_infractions_make_nullable.php
<|file_sep|>current/database/migrations/2018_04_03_223500_update_infractions_make_nullable.php
<|file_sep|>updated/database/migrations/2018_04_03_223500_update_infractions_make_nullable.php | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class UpdateInfractionsMakeNullable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('infractions', function (Blueprint $table) {
$table->string('reason')->nullable()->change();
});
}
/** | <|file_sep|>original/database/migrations/2018_04_03_223500_update_infractions_make_nullable.php
<|file_sep|>current/database/migrations/2018_04_03_223500_update_infractions_make_nullable.php
<|file_sep|>updated/database/migrations/2018_04_03_223500_update_infractions_make_nullable.php
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class UpdateInfractionsMakeNullable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('infractions', function (Blueprint $table) {
$table->string('reason')->nullable()->change();
});
}
/** | 752a235bf73af07212a8d1672ad22e30b8289635 | database/migrations/2018_04_03_223500_update_infractions_make_nullable.php | database/migrations/2018_04_03_223500_update_infractions_make_nullable.php | PHP |
<|file_sep|>src/Microsoft.Fx.Portability/IObjectCache.cs.diff
original:
public interface IObjectCache<TObject> : IDisposable
updated:
public interface IObjectCache : IDisposable
{
Task UpdateAsync();
DateTimeOffset LastUpdated { get; }
}
public interface IObjectCache<TObject> : IObjectCache
<|file_sep|>original/src/Microsoft.Fx.Portability/IObjectCache.cs
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Threading.Tasks;
namespace Microsoft.Fx.Portability
{
public interface IObjectCache<TObject> : IDisposable
{
TObject Value { get; }
DateTimeOffset LastUpdated { get; }
Task UpdateAsync();
}
}
<|file_sep|>current/src/Microsoft.Fx.Portability/IObjectCache.cs
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Threading.Tasks;
namespace Microsoft.Fx.Portability
{
public interface IObjectCache : IDisposable
{
Task UpdateAsync();
DateTimeOffset LastUpdated { get; }
}
public interface IObjectCache<TObject> : IObjectCache
{
TObject Value { get; }
DateTimeOffset LastUpdated { get; }
Task UpdateAsync();
}
}
<|file_sep|>updated/src/Microsoft.Fx.Portability/IObjectCache.cs | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Threading.Tasks;
namespace Microsoft.Fx.Portability
{
public interface IObjectCache : IDisposable
{
Task UpdateAsync();
DateTimeOffset LastUpdated { get; }
}
public interface IObjectCache<TObject> : IObjectCache
{
TObject Value { get; }
}
} | <|file_sep|>src/Microsoft.Fx.Portability/IObjectCache.cs.diff
original:
public interface IObjectCache<TObject> : IDisposable
updated:
public interface IObjectCache : IDisposable
{
Task UpdateAsync();
DateTimeOffset LastUpdated { get; }
}
public interface IObjectCache<TObject> : IObjectCache
<|file_sep|>original/src/Microsoft.Fx.Portability/IObjectCache.cs
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Threading.Tasks;
namespace Microsoft.Fx.Portability
{
public interface IObjectCache<TObject> : IDisposable
{
TObject Value { get; }
DateTimeOffset LastUpdated { get; }
Task UpdateAsync();
}
}
<|file_sep|>current/src/Microsoft.Fx.Portability/IObjectCache.cs
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Threading.Tasks;
namespace Microsoft.Fx.Portability
{
public interface IObjectCache : IDisposable
{
Task UpdateAsync();
DateTimeOffset LastUpdated { get; }
}
public interface IObjectCache<TObject> : IObjectCache
{
TObject Value { get; }
DateTimeOffset LastUpdated { get; }
Task UpdateAsync();
}
}
<|file_sep|>updated/src/Microsoft.Fx.Portability/IObjectCache.cs
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Threading.Tasks;
namespace Microsoft.Fx.Portability
{
public interface IObjectCache : IDisposable
{
Task UpdateAsync();
DateTimeOffset LastUpdated { get; }
}
public interface IObjectCache<TObject> : IObjectCache
{
TObject Value { get; }
}
} | c1e98f9360d3fc4ee6fd1e2333c4fbca2696c59a | src/Microsoft.Fx.Portability/IObjectCache.cs | src/Microsoft.Fx.Portability/IObjectCache.cs | C# |
<|file_sep|>original/tasks/main.yml
shell: "{{ansible_python_interpreter}} -m pip --version"
register: need_pip
ignore_errors: True
changed_when: false
when: need_bootstrap | failed
- name: Copy get-pip.py
copy: src=get-pip.py dest=~/get-pip.py
when: need_pip | failed
- name: Install pip
shell: "{{ansible_python_interpreter}} ~/get-pip.py"
when: need_pip | failed
- name: Remove get-pip.py
command: rm -f ~/get-pip.py
when: need_pip | failed
- name: Install pip launcher
copy: src=runner dest=~/bin/pip mode=0755
when: need_pip | failed
<|file_sep|>current/tasks/main.yml
shell: "{{ansible_python_interpreter}} -m pip --version"
register: need_pip
ignore_errors: True
changed_when: false
when: need_bootstrap | failed
- name: Copy get-pip.py
copy: src=get-pip.py dest=~/get-pip.py
when: need_pip | failed
- name: Install pip
shell: "{{ansible_python_interpreter}} ~/get-pip.py"
when: need_pip | failed
- name: Remove get-pip.py
command: rm -f ~/get-pip.py
when: need_pip | failed
- name: Install pip launcher
copy: src=runner dest=~/bin/pip mode=0755
when: need_pip | failed
<|file_sep|>updated/tasks/main.yml | shell: "{{ansible_python_interpreter}} -m pip --version"
register: need_pip
ignore_errors: True
changed_when: false
when: need_bootstrap | failed
- name: Copy get-pip.py
copy: src=get-pip.py dest=~/get-pip.py
when: need_pip | failed
- name: Install pip
shell: "{{ansible_python_interpreter}} ~/get-pip.py"
when: need_pip | failed
- name: Remove get-pip.py
file: path=~/get-pip.py state=absent
when: need_pip | failed
- name: Install pip launcher
copy: src=runner dest=~/bin/pip mode=0755
when: need_pip | failed | <|file_sep|>original/tasks/main.yml
shell: "{{ansible_python_interpreter}} -m pip --version"
register: need_pip
ignore_errors: True
changed_when: false
when: need_bootstrap | failed
- name: Copy get-pip.py
copy: src=get-pip.py dest=~/get-pip.py
when: need_pip | failed
- name: Install pip
shell: "{{ansible_python_interpreter}} ~/get-pip.py"
when: need_pip | failed
- name: Remove get-pip.py
command: rm -f ~/get-pip.py
when: need_pip | failed
- name: Install pip launcher
copy: src=runner dest=~/bin/pip mode=0755
when: need_pip | failed
<|file_sep|>current/tasks/main.yml
shell: "{{ansible_python_interpreter}} -m pip --version"
register: need_pip
ignore_errors: True
changed_when: false
when: need_bootstrap | failed
- name: Copy get-pip.py
copy: src=get-pip.py dest=~/get-pip.py
when: need_pip | failed
- name: Install pip
shell: "{{ansible_python_interpreter}} ~/get-pip.py"
when: need_pip | failed
- name: Remove get-pip.py
command: rm -f ~/get-pip.py
when: need_pip | failed
- name: Install pip launcher
copy: src=runner dest=~/bin/pip mode=0755
when: need_pip | failed
<|file_sep|>updated/tasks/main.yml
shell: "{{ansible_python_interpreter}} -m pip --version"
register: need_pip
ignore_errors: True
changed_when: false
when: need_bootstrap | failed
- name: Copy get-pip.py
copy: src=get-pip.py dest=~/get-pip.py
when: need_pip | failed
- name: Install pip
shell: "{{ansible_python_interpreter}} ~/get-pip.py"
when: need_pip | failed
- name: Remove get-pip.py
file: path=~/get-pip.py state=absent
when: need_pip | failed
- name: Install pip launcher
copy: src=runner dest=~/bin/pip mode=0755
when: need_pip | failed | 8394b291ae9735cf74c4aa338bb373a48bafb403 | tasks/main.yml | tasks/main.yml | YAML |
<|file_sep|>original/core/src/test/resources/codenvy-sdk.properties
#
# Copyright (c) 2014 Codenvy, S.A.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
# Codenvy, S.A. - initial API and implementation
#
rest.api.url=http://localhost:${port1}
<|file_sep|>current/core/src/test/resources/codenvy-sdk.properties
#
# Copyright (c) 2014 Codenvy, S.A.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
# Codenvy, S.A. - initial API and implementation
#
rest.api.url=http://localhost:${port1}
<|file_sep|>updated/core/src/test/resources/codenvy-sdk.properties | #
# Copyright (c) 2014 Codenvy, S.A.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
# Codenvy, S.A. - initial API and implementation
#
rest.api.url=http://localhost:${port1}/che | <|file_sep|>original/core/src/test/resources/codenvy-sdk.properties
#
# Copyright (c) 2014 Codenvy, S.A.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
# Codenvy, S.A. - initial API and implementation
#
rest.api.url=http://localhost:${port1}
<|file_sep|>current/core/src/test/resources/codenvy-sdk.properties
#
# Copyright (c) 2014 Codenvy, S.A.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
# Codenvy, S.A. - initial API and implementation
#
rest.api.url=http://localhost:${port1}
<|file_sep|>updated/core/src/test/resources/codenvy-sdk.properties
#
# Copyright (c) 2014 Codenvy, S.A.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
# Codenvy, S.A. - initial API and implementation
#
rest.api.url=http://localhost:${port1}/che | ddf323abe80b5f7bda50277e0d3207c64edb61de | core/src/test/resources/codenvy-sdk.properties | core/src/test/resources/codenvy-sdk.properties | INI |
<|file_sep|>original/lib/coffeelint/config.rb
require 'json'
module CoffeeLint
class Config
# Looks for existing config files and returns the first match.
def self.locate
locations = default_locations
# handle environment variables
locations << ENV['COFFEELINT_CONFIG'] if ENV['COFFEELINT_CONFIG']
locations += config_files_in_path(ENV['HOME']) if ENV['HOME']
locations.compact.detect { |file| File.exists?(file) }
end
# Parses a given JSON file to a Hash.
def self.parse(file_name)
JSON.parse(File.read(file_name))
end
# Config files CoffeeLint will look for.
<|file_sep|>current/lib/coffeelint/config.rb
require 'json'
module CoffeeLint
class Config
# Looks for existing config files and returns the first match.
def self.locate
locations = default_locations
# handle environment variables
locations << ENV['COFFEELINT_CONFIG'] if ENV['COFFEELINT_CONFIG']
locations += config_files_in_path(ENV['HOME']) if ENV['HOME']
locations.compact.detect { |file| File.exists?(file) }
end
# Parses a given JSON file to a Hash.
def self.parse(file_name)
JSON.parse(File.read(file_name))
end
# Config files CoffeeLint will look for.
<|file_sep|>updated/lib/coffeelint/config.rb | require 'json'
module CoffeeLint
class Config
# Looks for existing config files and returns the first match.
def self.locate
locations = default_locations
# handle environment variables
locations.push(ENV['COFFEELINT_CONFIG']) if ENV['COFFEELINT_CONFIG']
locations.concat(config_files_in_path(ENV['HOME'])) if ENV['HOME']
locations.compact.detect { |file| File.exists?(file) }
end
# Parses a given JSON file to a Hash.
def self.parse(file_name)
JSON.parse(File.read(file_name))
end
# Config files CoffeeLint will look for. | <|file_sep|>original/lib/coffeelint/config.rb
require 'json'
module CoffeeLint
class Config
# Looks for existing config files and returns the first match.
def self.locate
locations = default_locations
# handle environment variables
locations << ENV['COFFEELINT_CONFIG'] if ENV['COFFEELINT_CONFIG']
locations += config_files_in_path(ENV['HOME']) if ENV['HOME']
locations.compact.detect { |file| File.exists?(file) }
end
# Parses a given JSON file to a Hash.
def self.parse(file_name)
JSON.parse(File.read(file_name))
end
# Config files CoffeeLint will look for.
<|file_sep|>current/lib/coffeelint/config.rb
require 'json'
module CoffeeLint
class Config
# Looks for existing config files and returns the first match.
def self.locate
locations = default_locations
# handle environment variables
locations << ENV['COFFEELINT_CONFIG'] if ENV['COFFEELINT_CONFIG']
locations += config_files_in_path(ENV['HOME']) if ENV['HOME']
locations.compact.detect { |file| File.exists?(file) }
end
# Parses a given JSON file to a Hash.
def self.parse(file_name)
JSON.parse(File.read(file_name))
end
# Config files CoffeeLint will look for.
<|file_sep|>updated/lib/coffeelint/config.rb
require 'json'
module CoffeeLint
class Config
# Looks for existing config files and returns the first match.
def self.locate
locations = default_locations
# handle environment variables
locations.push(ENV['COFFEELINT_CONFIG']) if ENV['COFFEELINT_CONFIG']
locations.concat(config_files_in_path(ENV['HOME'])) if ENV['HOME']
locations.compact.detect { |file| File.exists?(file) }
end
# Parses a given JSON file to a Hash.
def self.parse(file_name)
JSON.parse(File.read(file_name))
end
# Config files CoffeeLint will look for. | 6e8f00eb498d6d91d89db2ac8a84be7c35528e1f | lib/coffeelint/config.rb | lib/coffeelint/config.rb | Ruby |
<|file_sep|>original/test/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentBoundingBoxTestCase.java
<|file_sep|>current/test/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentBoundingBoxTestCase.java
<|file_sep|>updated/test/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentBoundingBoxTestCase.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* $Id$ */
package org.apache.xmlgraphics.ps.dsc.events;
| <|file_sep|>original/test/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentBoundingBoxTestCase.java
<|file_sep|>current/test/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentBoundingBoxTestCase.java
<|file_sep|>updated/test/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentBoundingBoxTestCase.java
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* $Id$ */
package org.apache.xmlgraphics.ps.dsc.events;
| 8c8be9c1642697a04d4cccf08f124a1d5896c0b3 | test/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentBoundingBoxTestCase.java | test/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentBoundingBoxTestCase.java | Java |
<|file_sep|>_people/nicola_fox.md.diff
original:
updated:
careers:
- Front of House Assistant (Zoo, 2013; Pleasance, 2014)
- Legal Assistant (Freeths LLP)
<|file_sep|>_people/nicola_fox.md.diff
original:
Past- Front of House Assistant- Zoo Venues (Edinburgh Fringe Festival 2013)
Past- Front of House Assistant- The Pleasance Theatre Trust (Edinburgh Fringe Festival 2014)
Current- Legal Assistant at Freeths LLP
updated:
<|file_sep|>original/_people/nicola_fox.md
gender: female
headshot: FCdbFMb
course:
- English
graduated: 2014
awards: Commendation
---
A bit of everything really! (Except sound and lighting- I think I was always a bit too much of a technophobe for that!). Acting, stage managing, producing, costume and props, make up, front of house...etc
The theatre made my University experience more special than I ever could have imagined. I was interested in it after an Open Day tour, but I never could have predicted that I would step inside in one of my first weeks and (happily) almost never leave. I have met friends for life and had some amazing experiences thanks to the theatre and despite some very late nights, resulting tight coursework deadlines/missed lectures and abandoning my housemates for weeks on end, I wouldn't have changed a single second of it.
Past- Front of House Assistant- Zoo Venues (Edinburgh Fringe Festival 2013)
Past- Front of House Assistant- The Pleasance Theatre Trust (Edinburgh Fringe Festival 2014)
Current- Legal Assistant at Freeths LLP
<|file_sep|>current/_people/nicola_fox.md
gender: female
headshot: FCdbFMb
course:
- English
graduated: 2014
awards: Commendation
careers:
- Front of House Assistant (Zoo, 2013; Pleasance, 2014)
- Legal Assistant (Freeths LLP)
---
A bit of everything really! (Except sound and lighting- I think I was always a bit too much of a technophobe for that!). Acting, stage managing, producing, costume and props, make up, front of house...etc
The theatre made my University experience more special than I ever could have imagined. I was interested in it after an Open Day tour, but I never could have predicted that I would step inside in one of my first weeks and (happily) almost never leave. I have met friends for life and had some amazing experiences thanks to the theatre and despite some very late nights, resulting tight coursework deadlines/missed lectures and abandoning my housemates for weeks on end, I wouldn't have changed a single second of it.
<|file_sep|>updated/_people/nicola_fox.md | title: Nicola Fox
submitted: 2015-11-10
gender: female
headshot: FCdbFMb
course:
- English
graduated: 2014
awards: Commendation
careers:
- Front of House Assistant (Zoo, 2013; Pleasance, 2014)
- Legal Assistant (Freeths LLP)
---
A bit of everything really! (Except sound and lighting- I think I was always a bit too much of a technophobe for that!). Acting, stage managing, producing, costume and props, make up, front of house...etc
The theatre made my University experience more special than I ever could have imagined. I was interested in it after an Open Day tour, but I never could have predicted that I would step inside in one of my first weeks and (happily) almost never leave. I have met friends for life and had some amazing experiences thanks to the theatre and despite some very late nights, resulting tight coursework deadlines/missed lectures and abandoning my housemates for weeks on end, I wouldn't have changed a single second of it.
| <|file_sep|>_people/nicola_fox.md.diff
original:
updated:
careers:
- Front of House Assistant (Zoo, 2013; Pleasance, 2014)
- Legal Assistant (Freeths LLP)
<|file_sep|>_people/nicola_fox.md.diff
original:
Past- Front of House Assistant- Zoo Venues (Edinburgh Fringe Festival 2013)
Past- Front of House Assistant- The Pleasance Theatre Trust (Edinburgh Fringe Festival 2014)
Current- Legal Assistant at Freeths LLP
updated:
<|file_sep|>original/_people/nicola_fox.md
gender: female
headshot: FCdbFMb
course:
- English
graduated: 2014
awards: Commendation
---
A bit of everything really! (Except sound and lighting- I think I was always a bit too much of a technophobe for that!). Acting, stage managing, producing, costume and props, make up, front of house...etc
The theatre made my University experience more special than I ever could have imagined. I was interested in it after an Open Day tour, but I never could have predicted that I would step inside in one of my first weeks and (happily) almost never leave. I have met friends for life and had some amazing experiences thanks to the theatre and despite some very late nights, resulting tight coursework deadlines/missed lectures and abandoning my housemates for weeks on end, I wouldn't have changed a single second of it.
Past- Front of House Assistant- Zoo Venues (Edinburgh Fringe Festival 2013)
Past- Front of House Assistant- The Pleasance Theatre Trust (Edinburgh Fringe Festival 2014)
Current- Legal Assistant at Freeths LLP
<|file_sep|>current/_people/nicola_fox.md
gender: female
headshot: FCdbFMb
course:
- English
graduated: 2014
awards: Commendation
careers:
- Front of House Assistant (Zoo, 2013; Pleasance, 2014)
- Legal Assistant (Freeths LLP)
---
A bit of everything really! (Except sound and lighting- I think I was always a bit too much of a technophobe for that!). Acting, stage managing, producing, costume and props, make up, front of house...etc
The theatre made my University experience more special than I ever could have imagined. I was interested in it after an Open Day tour, but I never could have predicted that I would step inside in one of my first weeks and (happily) almost never leave. I have met friends for life and had some amazing experiences thanks to the theatre and despite some very late nights, resulting tight coursework deadlines/missed lectures and abandoning my housemates for weeks on end, I wouldn't have changed a single second of it.
<|file_sep|>updated/_people/nicola_fox.md
title: Nicola Fox
submitted: 2015-11-10
gender: female
headshot: FCdbFMb
course:
- English
graduated: 2014
awards: Commendation
careers:
- Front of House Assistant (Zoo, 2013; Pleasance, 2014)
- Legal Assistant (Freeths LLP)
---
A bit of everything really! (Except sound and lighting- I think I was always a bit too much of a technophobe for that!). Acting, stage managing, producing, costume and props, make up, front of house...etc
The theatre made my University experience more special than I ever could have imagined. I was interested in it after an Open Day tour, but I never could have predicted that I would step inside in one of my first weeks and (happily) almost never leave. I have met friends for life and had some amazing experiences thanks to the theatre and despite some very late nights, resulting tight coursework deadlines/missed lectures and abandoning my housemates for weeks on end, I wouldn't have changed a single second of it.
| dd1b1e482bd6bcf74c683ab1e3e276c031d374ab | _people/nicola_fox.md | _people/nicola_fox.md | Markdown |
<|file_sep|>geotrek/core/tests/test_forms.py.diff
original:
from geotrek.core.factories import TrailFactory
updated:
from geotrek.core.factories import TrailFactory, PathFactory
<|file_sep|>geotrek/core/tests/test_forms.py.diff
original:
from geotrek.core.forms import TrailForm
updated:
from geotrek.core.forms import TrailForm, PathForm
<|file_sep|>original/geotrek/core/tests/test_forms.py
from django.conf import settings
from django.test import TestCase
from unittest import skipIf
from geotrek.core.factories import TrailFactory
from geotrek.authent.factories import UserFactory
from geotrek.core.forms import TrailForm
@skipIf(not settings.TREKKING_TOPOLOGY_ENABLED, 'Test with dynamic segmentation only')
class TopologyFormTest(TestCase):
def test_save_form_when_topology_has_not_changed(self):
user = UserFactory()
topo = TrailFactory()
form = TrailForm(instance=topo, user=user)
self.assertEqual(topo, form.instance)
form.cleaned_data = {'topology': topo}
form.save()
self.assertEqual(topo, form.instance)
<|file_sep|>current/geotrek/core/tests/test_forms.py
from django.conf import settings
from django.test import TestCase
from unittest import skipIf
from geotrek.core.factories import TrailFactory, PathFactory
from geotrek.authent.factories import UserFactory
from geotrek.core.forms import TrailForm, PathForm
@skipIf(not settings.TREKKING_TOPOLOGY_ENABLED, 'Test with dynamic segmentation only')
class TopologyFormTest(TestCase):
def test_save_form_when_topology_has_not_changed(self):
user = UserFactory()
topo = TrailFactory()
form = TrailForm(instance=topo, user=user)
self.assertEqual(topo, form.instance)
form.cleaned_data = {'topology': topo}
form.save()
self.assertEqual(topo, form.instance)
<|file_sep|>updated/geotrek/core/tests/test_forms.py | @skipIf(not settings.TREKKING_TOPOLOGY_ENABLED, 'Test with dynamic segmentation only')
class TopologyFormTest(TestCase):
def test_save_form_when_topology_has_not_changed(self):
user = UserFactory()
topo = TrailFactory()
form = TrailForm(instance=topo, user=user)
self.assertEqual(topo, form.instance)
form.cleaned_data = {'topology': topo}
form.save()
self.assertEqual(topo, form.instance)
class PathFormTest(TestCase):
def test_overlapping_path(self):
user = UserFactory()
PathFactory.create(geom='SRID=4326;LINESTRING(3 45, 3 46)')
# Just intersecting
form1 = PathForm(
user=user,
data={'geom': '{"geom": "LINESTRING(2.5 45.5, 3.5 45.5)", "snap": [null, null]}'}
) | <|file_sep|>geotrek/core/tests/test_forms.py.diff
original:
from geotrek.core.factories import TrailFactory
updated:
from geotrek.core.factories import TrailFactory, PathFactory
<|file_sep|>geotrek/core/tests/test_forms.py.diff
original:
from geotrek.core.forms import TrailForm
updated:
from geotrek.core.forms import TrailForm, PathForm
<|file_sep|>original/geotrek/core/tests/test_forms.py
from django.conf import settings
from django.test import TestCase
from unittest import skipIf
from geotrek.core.factories import TrailFactory
from geotrek.authent.factories import UserFactory
from geotrek.core.forms import TrailForm
@skipIf(not settings.TREKKING_TOPOLOGY_ENABLED, 'Test with dynamic segmentation only')
class TopologyFormTest(TestCase):
def test_save_form_when_topology_has_not_changed(self):
user = UserFactory()
topo = TrailFactory()
form = TrailForm(instance=topo, user=user)
self.assertEqual(topo, form.instance)
form.cleaned_data = {'topology': topo}
form.save()
self.assertEqual(topo, form.instance)
<|file_sep|>current/geotrek/core/tests/test_forms.py
from django.conf import settings
from django.test import TestCase
from unittest import skipIf
from geotrek.core.factories import TrailFactory, PathFactory
from geotrek.authent.factories import UserFactory
from geotrek.core.forms import TrailForm, PathForm
@skipIf(not settings.TREKKING_TOPOLOGY_ENABLED, 'Test with dynamic segmentation only')
class TopologyFormTest(TestCase):
def test_save_form_when_topology_has_not_changed(self):
user = UserFactory()
topo = TrailFactory()
form = TrailForm(instance=topo, user=user)
self.assertEqual(topo, form.instance)
form.cleaned_data = {'topology': topo}
form.save()
self.assertEqual(topo, form.instance)
<|file_sep|>updated/geotrek/core/tests/test_forms.py
@skipIf(not settings.TREKKING_TOPOLOGY_ENABLED, 'Test with dynamic segmentation only')
class TopologyFormTest(TestCase):
def test_save_form_when_topology_has_not_changed(self):
user = UserFactory()
topo = TrailFactory()
form = TrailForm(instance=topo, user=user)
self.assertEqual(topo, form.instance)
form.cleaned_data = {'topology': topo}
form.save()
self.assertEqual(topo, form.instance)
class PathFormTest(TestCase):
def test_overlapping_path(self):
user = UserFactory()
PathFactory.create(geom='SRID=4326;LINESTRING(3 45, 3 46)')
# Just intersecting
form1 = PathForm(
user=user,
data={'geom': '{"geom": "LINESTRING(2.5 45.5, 3.5 45.5)", "snap": [null, null]}'}
) | b6eaabd47e98d51e4392c5419a59a75a0db45bf1 | geotrek/core/tests/test_forms.py | geotrek/core/tests/test_forms.py | Python |
<|file_sep|>package.json.diff
original:
"url": "git+https://github.com/jbrunel/jbrunel.git"
updated:
"url": "git+https://github.com/jbrunel/MyLifeOnAScrumBoard.git"
<|file_sep|>package.json.diff
original:
"url": "https://github.com/jbrunel/jbrunel/issues"
updated:
"url": "https://github.com/jbrunel/MyLifeOnAScrumBoard/issues"
<|file_sep|>package.json.diff
original:
"homepage": "https://github.com/jbrunel/jbrunel#readme",
updated:
"homepage": "https://github.com/jbrunel/MyLifeOnAScrumBoard#readme",
<|file_sep|>package.json.diff
original:
updated:
"gulp-cssnano": "^2.1.1",
<|file_sep|>original/package.json
"jbrunel"
],
"author": "Jérôme Brunel",
"license": "MIT",
"bugs": {
"url": "https://github.com/jbrunel/jbrunel/issues"
},
"homepage": "https://github.com/jbrunel/jbrunel#readme",
"dependencies": {
"bower": "^1.7.7"
},
"devDependencies": {
"gulp": "^3.9.1",
"gulp-angular-templatecache": "^1.8.0",
"gulp-concat": "^2.6.0",
"gulp-connect": "^2.3.1",
"gulp-inject": "^3.0.0",
"gulp-sass": "^2.2.0",
"streamqueue": "^1.1.1"
}
}
<|file_sep|>current/package.json
],
"author": "Jérôme Brunel",
"license": "MIT",
"bugs": {
"url": "https://github.com/jbrunel/MyLifeOnAScrumBoard/issues"
},
"homepage": "https://github.com/jbrunel/MyLifeOnAScrumBoard#readme",
"dependencies": {
"bower": "^1.7.7"
},
"devDependencies": {
"gulp": "^3.9.1",
"gulp-angular-templatecache": "^1.8.0",
"gulp-concat": "^2.6.0",
"gulp-connect": "^2.3.1",
"gulp-cssnano": "^2.1.1",
"gulp-inject": "^3.0.0",
"gulp-sass": "^2.2.0",
"streamqueue": "^1.1.1"
}
}
<|file_sep|>updated/package.json | "author": "Jérôme Brunel",
"license": "MIT",
"bugs": {
"url": "https://github.com/jbrunel/MyLifeOnAScrumBoard/issues"
},
"homepage": "https://github.com/jbrunel/MyLifeOnAScrumBoard#readme",
"dependencies": {
"bower": "^1.7.7"
},
"devDependencies": {
"gulp": "^3.9.1",
"gulp-angular-templatecache": "^1.8.0",
"gulp-concat": "^2.6.0",
"gulp-connect": "^2.3.1",
"gulp-cssnano": "^2.1.1",
"gulp-inject": "^3.0.0",
"gulp-sass": "^2.2.0",
"gulp-sourcemaps": "^1.6.0",
"streamqueue": "^1.1.1"
}
} | <|file_sep|>package.json.diff
original:
"url": "git+https://github.com/jbrunel/jbrunel.git"
updated:
"url": "git+https://github.com/jbrunel/MyLifeOnAScrumBoard.git"
<|file_sep|>package.json.diff
original:
"url": "https://github.com/jbrunel/jbrunel/issues"
updated:
"url": "https://github.com/jbrunel/MyLifeOnAScrumBoard/issues"
<|file_sep|>package.json.diff
original:
"homepage": "https://github.com/jbrunel/jbrunel#readme",
updated:
"homepage": "https://github.com/jbrunel/MyLifeOnAScrumBoard#readme",
<|file_sep|>package.json.diff
original:
updated:
"gulp-cssnano": "^2.1.1",
<|file_sep|>original/package.json
"jbrunel"
],
"author": "Jérôme Brunel",
"license": "MIT",
"bugs": {
"url": "https://github.com/jbrunel/jbrunel/issues"
},
"homepage": "https://github.com/jbrunel/jbrunel#readme",
"dependencies": {
"bower": "^1.7.7"
},
"devDependencies": {
"gulp": "^3.9.1",
"gulp-angular-templatecache": "^1.8.0",
"gulp-concat": "^2.6.0",
"gulp-connect": "^2.3.1",
"gulp-inject": "^3.0.0",
"gulp-sass": "^2.2.0",
"streamqueue": "^1.1.1"
}
}
<|file_sep|>current/package.json
],
"author": "Jérôme Brunel",
"license": "MIT",
"bugs": {
"url": "https://github.com/jbrunel/MyLifeOnAScrumBoard/issues"
},
"homepage": "https://github.com/jbrunel/MyLifeOnAScrumBoard#readme",
"dependencies": {
"bower": "^1.7.7"
},
"devDependencies": {
"gulp": "^3.9.1",
"gulp-angular-templatecache": "^1.8.0",
"gulp-concat": "^2.6.0",
"gulp-connect": "^2.3.1",
"gulp-cssnano": "^2.1.1",
"gulp-inject": "^3.0.0",
"gulp-sass": "^2.2.0",
"streamqueue": "^1.1.1"
}
}
<|file_sep|>updated/package.json
"author": "Jérôme Brunel",
"license": "MIT",
"bugs": {
"url": "https://github.com/jbrunel/MyLifeOnAScrumBoard/issues"
},
"homepage": "https://github.com/jbrunel/MyLifeOnAScrumBoard#readme",
"dependencies": {
"bower": "^1.7.7"
},
"devDependencies": {
"gulp": "^3.9.1",
"gulp-angular-templatecache": "^1.8.0",
"gulp-concat": "^2.6.0",
"gulp-connect": "^2.3.1",
"gulp-cssnano": "^2.1.1",
"gulp-inject": "^3.0.0",
"gulp-sass": "^2.2.0",
"gulp-sourcemaps": "^1.6.0",
"streamqueue": "^1.1.1"
}
} | 2e9e6e2b2d854003c9ddc4cbe833d025e9d9ac4b | package.json | package.json | JSON |
<|file_sep|>mail_factory/models.py.diff
original:
from django.utils.importlib import import_module
updated:
<|file_sep|>original/mail_factory/models.py
# -*- coding: utf-8 -*-
import django
from django.conf import settings
from django.utils.importlib import import_module
from django.utils.module_loading import module_has_submodule
def autodiscover():
"""Auto-discover INSTALLED_APPS mails.py modules."""
for app in settings.INSTALLED_APPS:
module = '%s.mails' % app # Attempt to import the app's 'mails' module
try:
import_module(module)
except:
# Decide whether to bubble up this error. If the app just
# doesn't have a mails module, we can ignore the error
# attempting to import it, otherwise we want it to bubble up.
app_module = import_module(app)
if module_has_submodule(app_module, 'mails'):
<|file_sep|>current/mail_factory/models.py
# -*- coding: utf-8 -*-
import django
from django.conf import settings
from django.utils.module_loading import module_has_submodule
def autodiscover():
"""Auto-discover INSTALLED_APPS mails.py modules."""
for app in settings.INSTALLED_APPS:
module = '%s.mails' % app # Attempt to import the app's 'mails' module
try:
import_module(module)
except:
# Decide whether to bubble up this error. If the app just
# doesn't have a mails module, we can ignore the error
# attempting to import it, otherwise we want it to bubble up.
app_module = import_module(app)
if module_has_submodule(app_module, 'mails'):
raise
<|file_sep|>updated/mail_factory/models.py | # -*- coding: utf-8 -*-
import django
from django.conf import settings
from django.utils.module_loading import module_has_submodule
try:
from importlib import import_module
except ImportError:
# Compatibility for python-2.6
from django.utils.importlib import import_module
def autodiscover():
"""Auto-discover INSTALLED_APPS mails.py modules."""
for app in settings.INSTALLED_APPS:
module = '%s.mails' % app # Attempt to import the app's 'mails' module
try:
import_module(module)
except: | <|file_sep|>mail_factory/models.py.diff
original:
from django.utils.importlib import import_module
updated:
<|file_sep|>original/mail_factory/models.py
# -*- coding: utf-8 -*-
import django
from django.conf import settings
from django.utils.importlib import import_module
from django.utils.module_loading import module_has_submodule
def autodiscover():
"""Auto-discover INSTALLED_APPS mails.py modules."""
for app in settings.INSTALLED_APPS:
module = '%s.mails' % app # Attempt to import the app's 'mails' module
try:
import_module(module)
except:
# Decide whether to bubble up this error. If the app just
# doesn't have a mails module, we can ignore the error
# attempting to import it, otherwise we want it to bubble up.
app_module = import_module(app)
if module_has_submodule(app_module, 'mails'):
<|file_sep|>current/mail_factory/models.py
# -*- coding: utf-8 -*-
import django
from django.conf import settings
from django.utils.module_loading import module_has_submodule
def autodiscover():
"""Auto-discover INSTALLED_APPS mails.py modules."""
for app in settings.INSTALLED_APPS:
module = '%s.mails' % app # Attempt to import the app's 'mails' module
try:
import_module(module)
except:
# Decide whether to bubble up this error. If the app just
# doesn't have a mails module, we can ignore the error
# attempting to import it, otherwise we want it to bubble up.
app_module = import_module(app)
if module_has_submodule(app_module, 'mails'):
raise
<|file_sep|>updated/mail_factory/models.py
# -*- coding: utf-8 -*-
import django
from django.conf import settings
from django.utils.module_loading import module_has_submodule
try:
from importlib import import_module
except ImportError:
# Compatibility for python-2.6
from django.utils.importlib import import_module
def autodiscover():
"""Auto-discover INSTALLED_APPS mails.py modules."""
for app in settings.INSTALLED_APPS:
module = '%s.mails' % app # Attempt to import the app's 'mails' module
try:
import_module(module)
except: | 7cef87a81278c227db0cb07329d1b659dbd175b3 | mail_factory/models.py | mail_factory/models.py | Python |
<|file_sep|>_includes/footer.html.twig.diff
original:
<p class="m-0"><strong>{{ data.footer.copyright | escape }}</strong></p>
updated:
<|file_sep|>original/_includes/footer.html.twig
<footer class="site-footer border-t">
<div class="container background-dark py-4 text-center">
<div>
<p class="m-0"><strong>{{ data.footer.copyright | escape }}</strong></p>
<p class="m-0">
<small>Copyright © {{ 'now' | date('Y') }}</small>
</p>
</div>
<ul class="site-footer__links mb-0">
{% for link in data.footer.links %}
{%- set url = link.url[0] == '/' ? url(link.url) : link.url -%}
<li>
<a href="{{ url }}">
{{- link.name -}}
</a>
</li>
{% endfor %}
</ul>
</div>
</footer>
<|file_sep|>current/_includes/footer.html.twig
<footer class="site-footer border-t">
<div class="container background-dark py-4 text-center">
<div>
<p class="m-0">
<small>Copyright © {{ 'now' | date('Y') }}</small>
</p>
</div>
<ul class="site-footer__links mb-0">
{% for link in data.footer.links %}
{%- set url = link.url[0] == '/' ? url(link.url) : link.url -%}
<li>
<a href="{{ url }}">
{{- link.name -}}
</a>
</li>
{% endfor %}
</ul>
</div>
</footer>
<|file_sep|>updated/_includes/footer.html.twig | <footer class="site-footer border-t">
<div class="container background-dark py-4 text-center">
<div>
<p class="m-0">
<small>Website Copyright © {{ 'now' | date('Y') }} {{ data.footer.copyright | escape }}</small>
</p>
<p class="m-0">
<small>BZFlag Copyright © 1993-{{ 'now' | date('Y') }} Tim Riker</small>
</p>
</div>
<ul class="site-footer__links mb-0">
{% for link in data.footer.links %}
{%- set url = link.url[0] == '/' ? url(link.url) : link.url -%}
<li>
<a href="{{ url }}">
{{- link.name -}}
</a>
</li>
{% endfor %}
</ul> | <|file_sep|>_includes/footer.html.twig.diff
original:
<p class="m-0"><strong>{{ data.footer.copyright | escape }}</strong></p>
updated:
<|file_sep|>original/_includes/footer.html.twig
<footer class="site-footer border-t">
<div class="container background-dark py-4 text-center">
<div>
<p class="m-0"><strong>{{ data.footer.copyright | escape }}</strong></p>
<p class="m-0">
<small>Copyright © {{ 'now' | date('Y') }}</small>
</p>
</div>
<ul class="site-footer__links mb-0">
{% for link in data.footer.links %}
{%- set url = link.url[0] == '/' ? url(link.url) : link.url -%}
<li>
<a href="{{ url }}">
{{- link.name -}}
</a>
</li>
{% endfor %}
</ul>
</div>
</footer>
<|file_sep|>current/_includes/footer.html.twig
<footer class="site-footer border-t">
<div class="container background-dark py-4 text-center">
<div>
<p class="m-0">
<small>Copyright © {{ 'now' | date('Y') }}</small>
</p>
</div>
<ul class="site-footer__links mb-0">
{% for link in data.footer.links %}
{%- set url = link.url[0] == '/' ? url(link.url) : link.url -%}
<li>
<a href="{{ url }}">
{{- link.name -}}
</a>
</li>
{% endfor %}
</ul>
</div>
</footer>
<|file_sep|>updated/_includes/footer.html.twig
<footer class="site-footer border-t">
<div class="container background-dark py-4 text-center">
<div>
<p class="m-0">
<small>Website Copyright © {{ 'now' | date('Y') }} {{ data.footer.copyright | escape }}</small>
</p>
<p class="m-0">
<small>BZFlag Copyright © 1993-{{ 'now' | date('Y') }} Tim Riker</small>
</p>
</div>
<ul class="site-footer__links mb-0">
{% for link in data.footer.links %}
{%- set url = link.url[0] == '/' ? url(link.url) : link.url -%}
<li>
<a href="{{ url }}">
{{- link.name -}}
</a>
</li>
{% endfor %}
</ul> | b4e0db57ce45adcde38098b82366b0360e8e8669 | _includes/footer.html.twig | _includes/footer.html.twig | Twig |
<|file_sep|>original/.travis.yml
language: go
go:
- 1.2
install:
- ./bin/install_deps.sh
env:
- PATH=$GOPATH/bin:$PATH
script:
- sudo cp /home/travis/gopath/bin/protoc-gen-go /usr/local/bin
- make all
<|file_sep|>current/.travis.yml
language: go
go:
- 1.2
install:
- ./bin/install_deps.sh
env:
- PATH=$GOPATH/bin:$PATH
script:
- sudo cp /home/travis/gopath/bin/protoc-gen-go /usr/local/bin
- make all
<|file_sep|>updated/.travis.yml | language: go
go:
- 1.2
install:
- ./bin/install_deps.sh
env:
- PATH=$GOPATH/bin:$PATH
script:
- go get github.com/tools/godep
- sudo cp /home/travis/gopath/bin/godep /usr/local/bin
- sudo cp /home/travis/gopath/bin/protoc-gen-go /usr/local/bin
- make all | <|file_sep|>original/.travis.yml
language: go
go:
- 1.2
install:
- ./bin/install_deps.sh
env:
- PATH=$GOPATH/bin:$PATH
script:
- sudo cp /home/travis/gopath/bin/protoc-gen-go /usr/local/bin
- make all
<|file_sep|>current/.travis.yml
language: go
go:
- 1.2
install:
- ./bin/install_deps.sh
env:
- PATH=$GOPATH/bin:$PATH
script:
- sudo cp /home/travis/gopath/bin/protoc-gen-go /usr/local/bin
- make all
<|file_sep|>updated/.travis.yml
language: go
go:
- 1.2
install:
- ./bin/install_deps.sh
env:
- PATH=$GOPATH/bin:$PATH
script:
- go get github.com/tools/godep
- sudo cp /home/travis/gopath/bin/godep /usr/local/bin
- sudo cp /home/travis/gopath/bin/protoc-gen-go /usr/local/bin
- make all | 72e5b8a39c4f4fa8304d2e92c6cc2fe71b81bc26 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/gigamonkey-distcompiler.asd
;;
;; Copyright (c) 2010, Peter Seibel. All rights reserved.
;;
(defsystem gigamonkey-distcompiler
:components
((:file "packages")
(:file "tarhash" :depends-on ("packages"))
(:file "distcompiler" :depends-on ("packages" "tarhash")))
:depends-on (:ironclad
:com.gigamonkeys.pathnames
:com.gigamonkeys.utilities
:com.gigamonkeys.macro-utilities))
<|file_sep|>current/gigamonkey-distcompiler.asd
;;
;; Copyright (c) 2010, Peter Seibel. All rights reserved.
;;
(defsystem gigamonkey-distcompiler
:components
((:file "packages")
(:file "tarhash" :depends-on ("packages"))
(:file "distcompiler" :depends-on ("packages" "tarhash")))
:depends-on (:ironclad
:com.gigamonkeys.pathnames
:com.gigamonkeys.utilities
:com.gigamonkeys.macro-utilities))
<|file_sep|>updated/gigamonkey-distcompiler.asd | ;;
;; Copyright (c) 2010, Peter Seibel. All rights reserved.
;;
(defsystem gigamonkey-distcompiler
:components
:description "Tool for generating Quicklisp dists."
((:file "packages")
(:file "tarhash" :depends-on ("packages"))
(:file "distcompiler" :depends-on ("packages" "tarhash")))
:depends-on (:ironclad
:com.gigamonkeys.pathnames
:com.gigamonkeys.utilities
:com.gigamonkeys.macro-utilities)) | <|file_sep|>original/gigamonkey-distcompiler.asd
;;
;; Copyright (c) 2010, Peter Seibel. All rights reserved.
;;
(defsystem gigamonkey-distcompiler
:components
((:file "packages")
(:file "tarhash" :depends-on ("packages"))
(:file "distcompiler" :depends-on ("packages" "tarhash")))
:depends-on (:ironclad
:com.gigamonkeys.pathnames
:com.gigamonkeys.utilities
:com.gigamonkeys.macro-utilities))
<|file_sep|>current/gigamonkey-distcompiler.asd
;;
;; Copyright (c) 2010, Peter Seibel. All rights reserved.
;;
(defsystem gigamonkey-distcompiler
:components
((:file "packages")
(:file "tarhash" :depends-on ("packages"))
(:file "distcompiler" :depends-on ("packages" "tarhash")))
:depends-on (:ironclad
:com.gigamonkeys.pathnames
:com.gigamonkeys.utilities
:com.gigamonkeys.macro-utilities))
<|file_sep|>updated/gigamonkey-distcompiler.asd
;;
;; Copyright (c) 2010, Peter Seibel. All rights reserved.
;;
(defsystem gigamonkey-distcompiler
:components
:description "Tool for generating Quicklisp dists."
((:file "packages")
(:file "tarhash" :depends-on ("packages"))
(:file "distcompiler" :depends-on ("packages" "tarhash")))
:depends-on (:ironclad
:com.gigamonkeys.pathnames
:com.gigamonkeys.utilities
:com.gigamonkeys.macro-utilities)) | 1c2f86ae0b2f31332e3a5739c3f86522ec2cfcc4 | gigamonkey-distcompiler.asd | gigamonkey-distcompiler.asd | Common Lisp |
<|file_sep|>original/build-logic-commons/gradle-plugin/build.gradle.kts
plugins {
`kotlin-dsl`
}
group = "gradlebuild"
description = "Provides plugins used to create a Gradle plugin with Groovy or Kotlin DSL within build-logic builds"
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
dependencies {
compileOnly("com.gradle:gradle-enterprise-gradle-plugin:3.8")
implementation("org.gradle.kotlin.kotlin-dsl:org.gradle.kotlin.kotlin-dsl.gradle.plugin:2.3.0")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.20")
implementation("org.gradle.kotlin:gradle-kotlin-dsl-conventions:0.7.0")
}
<|file_sep|>current/build-logic-commons/gradle-plugin/build.gradle.kts
plugins {
`kotlin-dsl`
}
group = "gradlebuild"
description = "Provides plugins used to create a Gradle plugin with Groovy or Kotlin DSL within build-logic builds"
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
dependencies {
compileOnly("com.gradle:gradle-enterprise-gradle-plugin:3.8")
implementation("org.gradle.kotlin.kotlin-dsl:org.gradle.kotlin.kotlin-dsl.gradle.plugin:2.3.0")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.20")
implementation("org.gradle.kotlin:gradle-kotlin-dsl-conventions:0.7.0")
}
<|file_sep|>updated/build-logic-commons/gradle-plugin/build.gradle.kts | plugins {
`kotlin-dsl`
}
group = "gradlebuild"
description = "Provides plugins used to create a Gradle plugin with Groovy or Kotlin DSL within build-logic builds"
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
dependencies {
compileOnly("com.gradle:gradle-enterprise-gradle-plugin:3.10")
implementation("org.gradle.kotlin.kotlin-dsl:org.gradle.kotlin.kotlin-dsl.gradle.plugin:2.3.0")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.20")
implementation("org.gradle.kotlin:gradle-kotlin-dsl-conventions:0.7.0")
} | <|file_sep|>original/build-logic-commons/gradle-plugin/build.gradle.kts
plugins {
`kotlin-dsl`
}
group = "gradlebuild"
description = "Provides plugins used to create a Gradle plugin with Groovy or Kotlin DSL within build-logic builds"
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
dependencies {
compileOnly("com.gradle:gradle-enterprise-gradle-plugin:3.8")
implementation("org.gradle.kotlin.kotlin-dsl:org.gradle.kotlin.kotlin-dsl.gradle.plugin:2.3.0")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.20")
implementation("org.gradle.kotlin:gradle-kotlin-dsl-conventions:0.7.0")
}
<|file_sep|>current/build-logic-commons/gradle-plugin/build.gradle.kts
plugins {
`kotlin-dsl`
}
group = "gradlebuild"
description = "Provides plugins used to create a Gradle plugin with Groovy or Kotlin DSL within build-logic builds"
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
dependencies {
compileOnly("com.gradle:gradle-enterprise-gradle-plugin:3.8")
implementation("org.gradle.kotlin.kotlin-dsl:org.gradle.kotlin.kotlin-dsl.gradle.plugin:2.3.0")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.20")
implementation("org.gradle.kotlin:gradle-kotlin-dsl-conventions:0.7.0")
}
<|file_sep|>updated/build-logic-commons/gradle-plugin/build.gradle.kts
plugins {
`kotlin-dsl`
}
group = "gradlebuild"
description = "Provides plugins used to create a Gradle plugin with Groovy or Kotlin DSL within build-logic builds"
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
dependencies {
compileOnly("com.gradle:gradle-enterprise-gradle-plugin:3.10")
implementation("org.gradle.kotlin.kotlin-dsl:org.gradle.kotlin.kotlin-dsl.gradle.plugin:2.3.0")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.20")
implementation("org.gradle.kotlin:gradle-kotlin-dsl-conventions:0.7.0")
} | 2b314c18fbcf9b0a2e1cd7c5b84e8433aa899daf | build-logic-commons/gradle-plugin/build.gradle.kts | build-logic-commons/gradle-plugin/build.gradle.kts | Kotlin |
<|file_sep|>original/locales/bs/notes.properties
<|file_sep|>current/locales/bs/notes.properties
<|file_sep|>updated/locales/bs/notes.properties | welcomeTitle2=Zdravo!
welcomeText2=Dobrodošli u ovu jednostraničnu bilježnicu ugrađenu u Firefox. Pretražujte web. Zapišite bilješke. Jednostavno je.
emptyPlaceHolder=Napravite bilješku…
giveFeedback=Kliknite ovdje da nam date povratne informacije
openingLogin=Otvaranje prijave…
forgetEmail=Zaboravi ovu adresu e-pošte
savingChanges=Sačuvaj promjene…
changesSaved=Sve promjene sačuvane
syncNotReady2=Žao nam je, sinhronizacija bilješki nije još uvijek spremna. Brojaćemo vaše klikove kao glasove da je ubrzamo!
syncNotes=Sinhronizujte vaše bilješke
syncProgress=Sinhronizacija promjena…
# LOCALIZATION NOTE (disableSync): Sync is intended as a generic
# synchronization, not Firefox Sync.
disableSync=Onemogući sinhronizaciju
# LOCALIZATION NOTE (syncComplete): {date} is the date of last sync. If this
# structure doesn't work for your locale, you can translate this as "Last sync: | <|file_sep|>original/locales/bs/notes.properties
<|file_sep|>current/locales/bs/notes.properties
<|file_sep|>updated/locales/bs/notes.properties
welcomeTitle2=Zdravo!
welcomeText2=Dobrodošli u ovu jednostraničnu bilježnicu ugrađenu u Firefox. Pretražujte web. Zapišite bilješke. Jednostavno je.
emptyPlaceHolder=Napravite bilješku…
giveFeedback=Kliknite ovdje da nam date povratne informacije
openingLogin=Otvaranje prijave…
forgetEmail=Zaboravi ovu adresu e-pošte
savingChanges=Sačuvaj promjene…
changesSaved=Sve promjene sačuvane
syncNotReady2=Žao nam je, sinhronizacija bilješki nije još uvijek spremna. Brojaćemo vaše klikove kao glasove da je ubrzamo!
syncNotes=Sinhronizujte vaše bilješke
syncProgress=Sinhronizacija promjena…
# LOCALIZATION NOTE (disableSync): Sync is intended as a generic
# synchronization, not Firefox Sync.
disableSync=Onemogući sinhronizaciju
# LOCALIZATION NOTE (syncComplete): {date} is the date of last sync. If this
# structure doesn't work for your locale, you can translate this as "Last sync: | ae4bd2047357cbf21927ccd4c9e94e03622700e2 | locales/bs/notes.properties | locales/bs/notes.properties | INI |
<|file_sep|>lib/ember-qunit/adapter.js.diff
original:
this.doneCallbacks.push(QUnit.config.current.assert.async());
updated:
this.doneCallbacks.push(QUnit.config.current ? QUnit.config.current.assert.async() : null);
<|file_sep|>original/lib/ember-qunit/adapter.js
import Ember from 'ember';
import QUnit from 'qunit';
export default Ember.Test.Adapter.extend({
init() {
this.doneCallbacks = [];
},
asyncStart() {
this.doneCallbacks.push(QUnit.config.current.assert.async());
},
asyncEnd() {
this.doneCallbacks.pop()();
},
exception(error) {
QUnit.config.current.assert.ok(false, Ember.inspect(error));
}
});
<|file_sep|>current/lib/ember-qunit/adapter.js
import Ember from 'ember';
import QUnit from 'qunit';
export default Ember.Test.Adapter.extend({
init() {
this.doneCallbacks = [];
},
asyncStart() {
this.doneCallbacks.push(QUnit.config.current ? QUnit.config.current.assert.async() : null);
},
asyncEnd() {
this.doneCallbacks.pop()();
},
exception(error) {
QUnit.config.current.assert.ok(false, Ember.inspect(error));
}
});
<|file_sep|>updated/lib/ember-qunit/adapter.js | export default Ember.Test.Adapter.extend({
init() {
this.doneCallbacks = [];
},
asyncStart() {
this.doneCallbacks.push(QUnit.config.current ? QUnit.config.current.assert.async() : null);
},
asyncEnd() {
let done = this.doneCallbacks.pop();
// This can be null if asyncStart() was called outside of a test
if (done) {
done();
}
},
exception(error) {
QUnit.config.current.assert.ok(false, Ember.inspect(error));
}
}); | <|file_sep|>lib/ember-qunit/adapter.js.diff
original:
this.doneCallbacks.push(QUnit.config.current.assert.async());
updated:
this.doneCallbacks.push(QUnit.config.current ? QUnit.config.current.assert.async() : null);
<|file_sep|>original/lib/ember-qunit/adapter.js
import Ember from 'ember';
import QUnit from 'qunit';
export default Ember.Test.Adapter.extend({
init() {
this.doneCallbacks = [];
},
asyncStart() {
this.doneCallbacks.push(QUnit.config.current.assert.async());
},
asyncEnd() {
this.doneCallbacks.pop()();
},
exception(error) {
QUnit.config.current.assert.ok(false, Ember.inspect(error));
}
});
<|file_sep|>current/lib/ember-qunit/adapter.js
import Ember from 'ember';
import QUnit from 'qunit';
export default Ember.Test.Adapter.extend({
init() {
this.doneCallbacks = [];
},
asyncStart() {
this.doneCallbacks.push(QUnit.config.current ? QUnit.config.current.assert.async() : null);
},
asyncEnd() {
this.doneCallbacks.pop()();
},
exception(error) {
QUnit.config.current.assert.ok(false, Ember.inspect(error));
}
});
<|file_sep|>updated/lib/ember-qunit/adapter.js
export default Ember.Test.Adapter.extend({
init() {
this.doneCallbacks = [];
},
asyncStart() {
this.doneCallbacks.push(QUnit.config.current ? QUnit.config.current.assert.async() : null);
},
asyncEnd() {
let done = this.doneCallbacks.pop();
// This can be null if asyncStart() was called outside of a test
if (done) {
done();
}
},
exception(error) {
QUnit.config.current.assert.ok(false, Ember.inspect(error));
}
}); | c9eb36941e99575c98a3d3a65b9549d855335e83 | lib/ember-qunit/adapter.js | lib/ember-qunit/adapter.js | JavaScript |
<|file_sep|>original/packages/fa/fast-downward.yaml
<|file_sep|>current/packages/fa/fast-downward.yaml
<|file_sep|>updated/packages/fa/fast-downward.yaml | homepage: ''
changelog-type: markdown
hash: cbacfe08a2363443b67b21e26e01d3160b8f84add9fd42aa5cb059219f3b03b6
test-bench-deps: {}
maintainer: Ollie Charles <ollie@ocharles.org.uk>
synopsis: Solve classical planning problems (STRIPS/SAS+) using Haskell & Fast Downward.
changelog: ! '# 0.1.0.0
* Initial release!
'
basic-deps:
base: ^>=4.11.1.0
text: ^>=1.2.3.0
list-t: ^>=1.0.1
process: ^>=1.6.3.0
containers: ^>=0.5.11.0
mtl: ^>=2.2.2
transformers: ^>=0.5.5.0
temporary: ^>=1.3 | <|file_sep|>original/packages/fa/fast-downward.yaml
<|file_sep|>current/packages/fa/fast-downward.yaml
<|file_sep|>updated/packages/fa/fast-downward.yaml
homepage: ''
changelog-type: markdown
hash: cbacfe08a2363443b67b21e26e01d3160b8f84add9fd42aa5cb059219f3b03b6
test-bench-deps: {}
maintainer: Ollie Charles <ollie@ocharles.org.uk>
synopsis: Solve classical planning problems (STRIPS/SAS+) using Haskell & Fast Downward.
changelog: ! '# 0.1.0.0
* Initial release!
'
basic-deps:
base: ^>=4.11.1.0
text: ^>=1.2.3.0
list-t: ^>=1.0.1
process: ^>=1.6.3.0
containers: ^>=0.5.11.0
mtl: ^>=2.2.2
transformers: ^>=0.5.5.0
temporary: ^>=1.3 | 756f68c64c35699323e31130d5993ab9630a4636 | packages/fa/fast-downward.yaml | packages/fa/fast-downward.yaml | YAML |
<|file_sep|>packages/flask/deploy/launch.yml.diff
original:
asg_min: "3"
updated:
machine_class: m4.xlarge
asg_min: "2"
<|file_sep|>packages/flask/deploy/launch.yml.diff
original:
asg_min: "4"
updated:
machine_class: m4.2xlarge
asg_min: "3"
<|file_sep|>packages/flask/deploy/launch.yml.diff
original:
updated:
machine_class: m4.2xlarge
<|file_sep|>original/packages/flask/deploy/launch.yml
connection: local
gather_facts: false
vars:
environments:
imdev:
asg_min: "3"
asg_max: "5"
imqa:
asg_min: "4"
asg_max: "7"
improd:
asg_min: "4"
asg_max: "10"
roles:
- { role: launcher,
amazon_cf_template: "flask.template",
amazon_instance_type: m3.xlarge,
asg_desired: "{{ environments[deployment_environment].asg_min }}",
asg_min_size: "{{ environments[deployment_environment].asg_min }}",
asg_max_size: "{{ environments[deployment_environment].asg_max }}"
}
<|file_sep|>current/packages/flask/deploy/launch.yml
environments:
imdev:
machine_class: m4.xlarge
asg_min: "2"
asg_max: "5"
imqa:
machine_class: m4.2xlarge
asg_min: "3"
asg_max: "7"
improd:
machine_class: m4.2xlarge
asg_min: "4"
asg_max: "10"
roles:
- { role: launcher,
amazon_cf_template: "flask.template",
amazon_instance_type: m3.xlarge,
asg_desired: "{{ environments[deployment_environment].asg_min }}",
asg_min_size: "{{ environments[deployment_environment].asg_min }}",
asg_max_size: "{{ environments[deployment_environment].asg_max }}"
}
<|file_sep|>updated/packages/flask/deploy/launch.yml | environments:
imdev:
machine_class: m4.xlarge
asg_min: "2"
asg_max: "5"
imqa:
machine_class: m4.2xlarge
asg_min: "3"
asg_max: "7"
improd:
machine_class: m4.2xlarge
asg_min: "4"
asg_max: "10"
roles:
- { role: launcher,
amazon_cf_template: "flask.template",
amazon_instance_type: "{{ environments[deployment_environment].machine_class }}",
asg_desired: "{{ environments[deployment_environment].asg_min }}",
asg_min_size: "{{ environments[deployment_environment].asg_min }}",
asg_max_size: "{{ environments[deployment_environment].asg_max }}"
} | <|file_sep|>packages/flask/deploy/launch.yml.diff
original:
asg_min: "3"
updated:
machine_class: m4.xlarge
asg_min: "2"
<|file_sep|>packages/flask/deploy/launch.yml.diff
original:
asg_min: "4"
updated:
machine_class: m4.2xlarge
asg_min: "3"
<|file_sep|>packages/flask/deploy/launch.yml.diff
original:
updated:
machine_class: m4.2xlarge
<|file_sep|>original/packages/flask/deploy/launch.yml
connection: local
gather_facts: false
vars:
environments:
imdev:
asg_min: "3"
asg_max: "5"
imqa:
asg_min: "4"
asg_max: "7"
improd:
asg_min: "4"
asg_max: "10"
roles:
- { role: launcher,
amazon_cf_template: "flask.template",
amazon_instance_type: m3.xlarge,
asg_desired: "{{ environments[deployment_environment].asg_min }}",
asg_min_size: "{{ environments[deployment_environment].asg_min }}",
asg_max_size: "{{ environments[deployment_environment].asg_max }}"
}
<|file_sep|>current/packages/flask/deploy/launch.yml
environments:
imdev:
machine_class: m4.xlarge
asg_min: "2"
asg_max: "5"
imqa:
machine_class: m4.2xlarge
asg_min: "3"
asg_max: "7"
improd:
machine_class: m4.2xlarge
asg_min: "4"
asg_max: "10"
roles:
- { role: launcher,
amazon_cf_template: "flask.template",
amazon_instance_type: m3.xlarge,
asg_desired: "{{ environments[deployment_environment].asg_min }}",
asg_min_size: "{{ environments[deployment_environment].asg_min }}",
asg_max_size: "{{ environments[deployment_environment].asg_max }}"
}
<|file_sep|>updated/packages/flask/deploy/launch.yml
environments:
imdev:
machine_class: m4.xlarge
asg_min: "2"
asg_max: "5"
imqa:
machine_class: m4.2xlarge
asg_min: "3"
asg_max: "7"
improd:
machine_class: m4.2xlarge
asg_min: "4"
asg_max: "10"
roles:
- { role: launcher,
amazon_cf_template: "flask.template",
amazon_instance_type: "{{ environments[deployment_environment].machine_class }}",
asg_desired: "{{ environments[deployment_environment].asg_min }}",
asg_min_size: "{{ environments[deployment_environment].asg_min }}",
asg_max_size: "{{ environments[deployment_environment].asg_max }}"
} | 0c053b9cbc793732401ee54b70d10401969e4595 | packages/flask/deploy/launch.yml | packages/flask/deploy/launch.yml | YAML |
<|file_sep|>original/src/app/bucket/bucket.component.html
<div class="card mb-2">
<div class="card-header">
<span *ngIf="!isEditing" (click)="edit()" class="card-title">{{bucket.displayName}}</span>
<span *ngIf="isEditing"><input [(ngModel)]="bucket.displayName"/></span>
<span [class.error]="totalAllocationPercentage > 100">
<span *ngIf="!isEditing" (click)="edit()">({{bucket.allocationPercentage}}%)</span>
<span *ngIf="isEditing">
(<input type="number" [(ngModel)]="bucket.allocationPercentage"/>%)
<button (click)="stopEditing()" class="btn btn-primary">OK</button>
</span>
</span>
<div [class.badge-warning]="bucket.resourcesCommitted() > bucketAllocation()" class="badge badge-pill text-right">
{{bucket.resourcesCommitted()}} of {{bucketAllocation() | number:'1.1-1'}} {{unit}}
</div>
</div>
<div class="card-body p-0">
<ul class="list-group list-group-flush">
<app-objective *ngFor="let objective of bucket.objectives"
[objective]="objective" [unit]="unit"
[validAssignees]="validAssignees"
(onDelete)="deleteObjective($event)"></app-objective>
<|file_sep|>current/src/app/bucket/bucket.component.html
<div class="card mb-2">
<div class="card-header">
<span *ngIf="!isEditing" (click)="edit()" class="card-title">{{bucket.displayName}}</span>
<span *ngIf="isEditing"><input [(ngModel)]="bucket.displayName"/></span>
<span [class.error]="totalAllocationPercentage > 100">
<span *ngIf="!isEditing" (click)="edit()">({{bucket.allocationPercentage}}%)</span>
<span *ngIf="isEditing">
(<input type="number" [(ngModel)]="bucket.allocationPercentage"/>%)
<button (click)="stopEditing()" class="btn btn-primary">OK</button>
</span>
</span>
<div [class.badge-warning]="bucket.resourcesCommitted() > bucketAllocation()" class="badge badge-pill text-right">
{{bucket.resourcesCommitted()}} of {{bucketAllocation() | number:'1.1-1'}} {{unit}}
</div>
</div>
<div class="card-body p-0">
<ul class="list-group list-group-flush">
<app-objective *ngFor="let objective of bucket.objectives"
[objective]="objective" [unit]="unit"
[validAssignees]="validAssignees"
(onDelete)="deleteObjective($event)"></app-objective>
<|file_sep|>updated/src/app/bucket/bucket.component.html | <div class="card mb-2">
<div class="card-header">
<span *ngIf="!isEditing" (click)="edit()" class="card-title">{{bucket.displayName}}</span>
<span *ngIf="isEditing"><input [(ngModel)]="bucket.displayName"/></span>
<span [class.error]="totalAllocationPercentage > 100">
<span *ngIf="!isEditing" (click)="edit()"> ({{bucket.allocationPercentage}}%)</span>
<span *ngIf="isEditing">
(<input type="number" [(ngModel)]="bucket.allocationPercentage"/>%)
<button (click)="stopEditing()" class="btn btn-primary">OK</button>
</span>
</span>
<div [class.badge-warning]="bucket.resourcesCommitted() > bucketAllocation()" class="badge badge-pill text-right">
{{bucket.resourcesCommitted()}} of {{bucketAllocation() | number:'1.1-1'}} {{unit}}
</div>
</div>
<div class="card-body p-0">
<ul class="list-group list-group-flush">
<app-objective *ngFor="let objective of bucket.objectives"
[objective]="objective" [unit]="unit"
[validAssignees]="validAssignees"
(onDelete)="deleteObjective($event)"></app-objective> | <|file_sep|>original/src/app/bucket/bucket.component.html
<div class="card mb-2">
<div class="card-header">
<span *ngIf="!isEditing" (click)="edit()" class="card-title">{{bucket.displayName}}</span>
<span *ngIf="isEditing"><input [(ngModel)]="bucket.displayName"/></span>
<span [class.error]="totalAllocationPercentage > 100">
<span *ngIf="!isEditing" (click)="edit()">({{bucket.allocationPercentage}}%)</span>
<span *ngIf="isEditing">
(<input type="number" [(ngModel)]="bucket.allocationPercentage"/>%)
<button (click)="stopEditing()" class="btn btn-primary">OK</button>
</span>
</span>
<div [class.badge-warning]="bucket.resourcesCommitted() > bucketAllocation()" class="badge badge-pill text-right">
{{bucket.resourcesCommitted()}} of {{bucketAllocation() | number:'1.1-1'}} {{unit}}
</div>
</div>
<div class="card-body p-0">
<ul class="list-group list-group-flush">
<app-objective *ngFor="let objective of bucket.objectives"
[objective]="objective" [unit]="unit"
[validAssignees]="validAssignees"
(onDelete)="deleteObjective($event)"></app-objective>
<|file_sep|>current/src/app/bucket/bucket.component.html
<div class="card mb-2">
<div class="card-header">
<span *ngIf="!isEditing" (click)="edit()" class="card-title">{{bucket.displayName}}</span>
<span *ngIf="isEditing"><input [(ngModel)]="bucket.displayName"/></span>
<span [class.error]="totalAllocationPercentage > 100">
<span *ngIf="!isEditing" (click)="edit()">({{bucket.allocationPercentage}}%)</span>
<span *ngIf="isEditing">
(<input type="number" [(ngModel)]="bucket.allocationPercentage"/>%)
<button (click)="stopEditing()" class="btn btn-primary">OK</button>
</span>
</span>
<div [class.badge-warning]="bucket.resourcesCommitted() > bucketAllocation()" class="badge badge-pill text-right">
{{bucket.resourcesCommitted()}} of {{bucketAllocation() | number:'1.1-1'}} {{unit}}
</div>
</div>
<div class="card-body p-0">
<ul class="list-group list-group-flush">
<app-objective *ngFor="let objective of bucket.objectives"
[objective]="objective" [unit]="unit"
[validAssignees]="validAssignees"
(onDelete)="deleteObjective($event)"></app-objective>
<|file_sep|>updated/src/app/bucket/bucket.component.html
<div class="card mb-2">
<div class="card-header">
<span *ngIf="!isEditing" (click)="edit()" class="card-title">{{bucket.displayName}}</span>
<span *ngIf="isEditing"><input [(ngModel)]="bucket.displayName"/></span>
<span [class.error]="totalAllocationPercentage > 100">
<span *ngIf="!isEditing" (click)="edit()"> ({{bucket.allocationPercentage}}%)</span>
<span *ngIf="isEditing">
(<input type="number" [(ngModel)]="bucket.allocationPercentage"/>%)
<button (click)="stopEditing()" class="btn btn-primary">OK</button>
</span>
</span>
<div [class.badge-warning]="bucket.resourcesCommitted() > bucketAllocation()" class="badge badge-pill text-right">
{{bucket.resourcesCommitted()}} of {{bucketAllocation() | number:'1.1-1'}} {{unit}}
</div>
</div>
<div class="card-body p-0">
<ul class="list-group list-group-flush">
<app-objective *ngFor="let objective of bucket.objectives"
[objective]="objective" [unit]="unit"
[validAssignees]="validAssignees"
(onDelete)="deleteObjective($event)"></app-objective> | 2a56d960ddfc14a3fbd4f8db501e58c8959800f9 | src/app/bucket/bucket.component.html | src/app/bucket/bucket.component.html | HTML |
<|file_sep|>lib/node_modules/@stdlib/types/ndarray/base/max-view-buffer-index/docs/repl.txt.diff
original:
59
updated:
79
<|file_sep|>original/lib/node_modules/@stdlib/types/ndarray/base/max-view-buffer-index/docs/repl.txt
out: integer
Maximum linear index in an underlying data buffer accessible to an array
view.
Examples
--------
> var d = [ 2, 3, 10 ];
> var s = [ 30, -10, 1 ];
> var o = 20;
> var out = {{alias}}( d, s, o )
59
> s = [ 30, 10, 1 ];
> out = {{alias}}( d, s, o )
59
> s = [ -30, -10, -1 ];
> out = {{alias}}( d, s, o )
59
See Also
--------
<|file_sep|>current/lib/node_modules/@stdlib/types/ndarray/base/max-view-buffer-index/docs/repl.txt
out: integer
Maximum linear index in an underlying data buffer accessible to an array
view.
Examples
--------
> var d = [ 2, 3, 10 ];
> var s = [ 30, -10, 1 ];
> var o = 20;
> var out = {{alias}}( d, s, o )
59
> s = [ 30, 10, 1 ];
> out = {{alias}}( d, s, o )
79
> s = [ -30, -10, -1 ];
> out = {{alias}}( d, s, o )
59
See Also
--------
<|file_sep|>updated/lib/node_modules/@stdlib/types/ndarray/base/max-view-buffer-index/docs/repl.txt | out: integer
Maximum linear index in an underlying data buffer accessible to an array
view.
Examples
--------
> var d = [ 2, 3, 10 ];
> var s = [ 30, -10, 1 ];
> var o = 20;
> var out = {{alias}}( d, s, o )
59
> s = [ 30, 10, 1 ];
> out = {{alias}}( d, s, o )
79
> s = [ -30, -10, -1 ];
> out = {{alias}}( d, s, o )
20
See Also
--------
| <|file_sep|>lib/node_modules/@stdlib/types/ndarray/base/max-view-buffer-index/docs/repl.txt.diff
original:
59
updated:
79
<|file_sep|>original/lib/node_modules/@stdlib/types/ndarray/base/max-view-buffer-index/docs/repl.txt
out: integer
Maximum linear index in an underlying data buffer accessible to an array
view.
Examples
--------
> var d = [ 2, 3, 10 ];
> var s = [ 30, -10, 1 ];
> var o = 20;
> var out = {{alias}}( d, s, o )
59
> s = [ 30, 10, 1 ];
> out = {{alias}}( d, s, o )
59
> s = [ -30, -10, -1 ];
> out = {{alias}}( d, s, o )
59
See Also
--------
<|file_sep|>current/lib/node_modules/@stdlib/types/ndarray/base/max-view-buffer-index/docs/repl.txt
out: integer
Maximum linear index in an underlying data buffer accessible to an array
view.
Examples
--------
> var d = [ 2, 3, 10 ];
> var s = [ 30, -10, 1 ];
> var o = 20;
> var out = {{alias}}( d, s, o )
59
> s = [ 30, 10, 1 ];
> out = {{alias}}( d, s, o )
79
> s = [ -30, -10, -1 ];
> out = {{alias}}( d, s, o )
59
See Also
--------
<|file_sep|>updated/lib/node_modules/@stdlib/types/ndarray/base/max-view-buffer-index/docs/repl.txt
out: integer
Maximum linear index in an underlying data buffer accessible to an array
view.
Examples
--------
> var d = [ 2, 3, 10 ];
> var s = [ 30, -10, 1 ];
> var o = 20;
> var out = {{alias}}( d, s, o )
59
> s = [ 30, 10, 1 ];
> out = {{alias}}( d, s, o )
79
> s = [ -30, -10, -1 ];
> out = {{alias}}( d, s, o )
20
See Also
--------
| 650ec02e5067b378922743c717d5f69556ada1a1 | lib/node_modules/@stdlib/types/ndarray/base/max-view-buffer-index/docs/repl.txt | lib/node_modules/@stdlib/types/ndarray/base/max-view-buffer-index/docs/repl.txt | Text |
<|file_sep|>original/recipes/fatiando/meta.yaml
<|file_sep|>current/recipes/fatiando/meta.yaml
<|file_sep|>updated/recipes/fatiando/meta.yaml | # Note: there are many handy hints in comments in this example -- remove them when you've finalized your recipe
# Jinja variables help maintain the recipe as you'll update the version only here.
{% set name = "fatiando" %}
{% set version = "0.4" %}
{% set sha256 = "7709a4f7e40fd94bce8f0825d1d33094d271052374707bf2595a2cbd314401c7" %}
# sha256 is the prefered checksum -- you can get it for a file with:
# `openssl sha256 <file name>`.
# You may need the openssl package, available on conda-forge
# `conda install openssl -c conda-forge``
package:
name: {{ name|lower }}
version: {{ version }}
source:
fn: {{ name }}-{{ version }}.tar.gz
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: {{ sha256 }}
build: | <|file_sep|>original/recipes/fatiando/meta.yaml
<|file_sep|>current/recipes/fatiando/meta.yaml
<|file_sep|>updated/recipes/fatiando/meta.yaml
# Note: there are many handy hints in comments in this example -- remove them when you've finalized your recipe
# Jinja variables help maintain the recipe as you'll update the version only here.
{% set name = "fatiando" %}
{% set version = "0.4" %}
{% set sha256 = "7709a4f7e40fd94bce8f0825d1d33094d271052374707bf2595a2cbd314401c7" %}
# sha256 is the prefered checksum -- you can get it for a file with:
# `openssl sha256 <file name>`.
# You may need the openssl package, available on conda-forge
# `conda install openssl -c conda-forge``
package:
name: {{ name|lower }}
version: {{ version }}
source:
fn: {{ name }}-{{ version }}.tar.gz
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: {{ sha256 }}
build: | c433b1eff8e24060f3abcfaec9fa8064eb4d999d | recipes/fatiando/meta.yaml | recipes/fatiando/meta.yaml | YAML |
<|file_sep|>original/RELEASING.md
<|file_sep|>current/RELEASING.md
<|file_sep|>updated/RELEASING.md | # Releasing Hermann
Hermann is a multi-platform gem, which means that two actual `.gem` files need
to be built and uploaded to [rubygems.org](https://rubygems.org/gems/hermann).
Here's the current process that [I](https://github.com/rtyler) use:
* `rvm use ruby@rubygems` (*switch to MRI*)
* `bundle install && rake` (*ensure that MRI tests pass*)
* `rvm use jruby@rubygems` (*switch to JRuby*)
* `bundle install && rake` (*ensure that the JRuby tests pass*)
* `rake release` (*tag the release and upload the `-java` platform gem*)
* `rvm use ruby@rubygems` (*switch back to MRI*)
* `gem build hermann.gemspec` (*build the 'ruby' platform gem*)
* `gem push pkg/hermann-0.blah.gem` (*upload the ruby platform gem*)
This can certainly be cleaned up, but this is the process at it is right now | <|file_sep|>original/RELEASING.md
<|file_sep|>current/RELEASING.md
<|file_sep|>updated/RELEASING.md
# Releasing Hermann
Hermann is a multi-platform gem, which means that two actual `.gem` files need
to be built and uploaded to [rubygems.org](https://rubygems.org/gems/hermann).
Here's the current process that [I](https://github.com/rtyler) use:
* `rvm use ruby@rubygems` (*switch to MRI*)
* `bundle install && rake` (*ensure that MRI tests pass*)
* `rvm use jruby@rubygems` (*switch to JRuby*)
* `bundle install && rake` (*ensure that the JRuby tests pass*)
* `rake release` (*tag the release and upload the `-java` platform gem*)
* `rvm use ruby@rubygems` (*switch back to MRI*)
* `gem build hermann.gemspec` (*build the 'ruby' platform gem*)
* `gem push pkg/hermann-0.blah.gem` (*upload the ruby platform gem*)
This can certainly be cleaned up, but this is the process at it is right now | 5b669504af7738194a63d8262875b2ae5430503c | RELEASING.md | RELEASING.md | Markdown |
<|file_sep|>original/app/views/users/show_init.html.erb
<|file_sep|>current/app/views/users/show_init.html.erb
<|file_sep|>updated/app/views/users/show_init.html.erb | <div id="page-header">
<h1>Create Initial User</h1>
</div>
<%= form_for @user, :url=>:init do |f| %>
Email:<br/>
<%= f.text_field :email %><br/>
Password:<br/>
<%= f.password_field :password %><br/>
Password confirmation:<br/>
<%= f.password_field :password_confirmation %><br/>
<%= f.submit "Create" %>
<% end %> | <|file_sep|>original/app/views/users/show_init.html.erb
<|file_sep|>current/app/views/users/show_init.html.erb
<|file_sep|>updated/app/views/users/show_init.html.erb
<div id="page-header">
<h1>Create Initial User</h1>
</div>
<%= form_for @user, :url=>:init do |f| %>
Email:<br/>
<%= f.text_field :email %><br/>
Password:<br/>
<%= f.password_field :password %><br/>
Password confirmation:<br/>
<%= f.password_field :password_confirmation %><br/>
<%= f.submit "Create" %>
<% end %> | ceb2800c4d95052ce65052d8e45c15eb7c5aad84 | app/views/users/show_init.html.erb | app/views/users/show_init.html.erb | HTML+ERB |
<|file_sep|>original/index.d.ts
interface ViewModelFactoryFunction {
(params?: components.ViewModelParams): components.ViewModel;
}
interface ViewModelInstantiator
extends components.ViewModelConstructor,
ViewModelFactoryFunction {}
interface MapStateToParamsFn {
(
state?: any,
ownParams?: components.ViewModelParams
): components.ViewModelParams;
}
interface MergeParamsFn {
(
stateParams: components.ViewModelParams,
ownParams: components.ViewModelParams
): components.ViewModelParams;
<|file_sep|>current/index.d.ts
interface ViewModelFactoryFunction {
(params?: components.ViewModelParams): components.ViewModel;
}
interface ViewModelInstantiator
extends components.ViewModelConstructor,
ViewModelFactoryFunction {}
interface MapStateToParamsFn {
(
state?: any,
ownParams?: components.ViewModelParams
): components.ViewModelParams;
}
interface MergeParamsFn {
(
stateParams: components.ViewModelParams,
ownParams: components.ViewModelParams
): components.ViewModelParams;
<|file_sep|>updated/index.d.ts |
interface ViewModelFactoryFunction {
(params?: components.ViewModelParams): components.ViewModel;
}
interface ViewModelInstantiator
extends components.ViewModelConstructor,
ViewModelFactoryFunction {}
interface MapStateToParamsFn {
<T>(
state?: T,
ownParams?: components.ViewModelParams
): components.ViewModelParams;
}
interface MergeParamsFn {
(
stateParams: components.ViewModelParams,
ownParams: components.ViewModelParams
): components.ViewModelParams; | <|file_sep|>original/index.d.ts
interface ViewModelFactoryFunction {
(params?: components.ViewModelParams): components.ViewModel;
}
interface ViewModelInstantiator
extends components.ViewModelConstructor,
ViewModelFactoryFunction {}
interface MapStateToParamsFn {
(
state?: any,
ownParams?: components.ViewModelParams
): components.ViewModelParams;
}
interface MergeParamsFn {
(
stateParams: components.ViewModelParams,
ownParams: components.ViewModelParams
): components.ViewModelParams;
<|file_sep|>current/index.d.ts
interface ViewModelFactoryFunction {
(params?: components.ViewModelParams): components.ViewModel;
}
interface ViewModelInstantiator
extends components.ViewModelConstructor,
ViewModelFactoryFunction {}
interface MapStateToParamsFn {
(
state?: any,
ownParams?: components.ViewModelParams
): components.ViewModelParams;
}
interface MergeParamsFn {
(
stateParams: components.ViewModelParams,
ownParams: components.ViewModelParams
): components.ViewModelParams;
<|file_sep|>updated/index.d.ts
interface ViewModelFactoryFunction {
(params?: components.ViewModelParams): components.ViewModel;
}
interface ViewModelInstantiator
extends components.ViewModelConstructor,
ViewModelFactoryFunction {}
interface MapStateToParamsFn {
<T>(
state?: T,
ownParams?: components.ViewModelParams
): components.ViewModelParams;
}
interface MergeParamsFn {
(
stateParams: components.ViewModelParams,
ownParams: components.ViewModelParams
): components.ViewModelParams; | 8f55a45f2a60dae53f1bb2b5e9476e4fa68aa5f8 | index.d.ts | index.d.ts | TypeScript |
<|file_sep|>original/doc/index.rst
====================================
docker notes and Dockerfile examples
====================================
.. sidebar:: Contents
.. toctree::
:maxdepth: 2
quickstart
example-postgresql
history
.. include:: ../README.rst
:start-line: 4
<|file_sep|>current/doc/index.rst
====================================
docker notes and Dockerfile examples
====================================
.. sidebar:: Contents
.. toctree::
:maxdepth: 2
quickstart
example-postgresql
history
.. include:: ../README.rst
:start-line: 4
<|file_sep|>updated/doc/index.rst | .. _index:
====================================
docker notes and Dockerfile examples
====================================
.. sidebar:: Contents
.. toctree::
:maxdepth: 2
quickstart
example-postgresql
history
.. include:: ../README.rst
:start-line: 4 | <|file_sep|>original/doc/index.rst
====================================
docker notes and Dockerfile examples
====================================
.. sidebar:: Contents
.. toctree::
:maxdepth: 2
quickstart
example-postgresql
history
.. include:: ../README.rst
:start-line: 4
<|file_sep|>current/doc/index.rst
====================================
docker notes and Dockerfile examples
====================================
.. sidebar:: Contents
.. toctree::
:maxdepth: 2
quickstart
example-postgresql
history
.. include:: ../README.rst
:start-line: 4
<|file_sep|>updated/doc/index.rst
.. _index:
====================================
docker notes and Dockerfile examples
====================================
.. sidebar:: Contents
.. toctree::
:maxdepth: 2
quickstart
example-postgresql
history
.. include:: ../README.rst
:start-line: 4 | 5ebea21b3cd7ff49dadbadc2c52079392af1ad21 | doc/index.rst | doc/index.rst | reStructuredText |
<|file_sep|>original/.dependabot/config.yml
# Documentation: https://dependabot.com/docs/config-file
version: 1
update_configs:
- package_manager: javascript
directory: '/'
update_schedule: live
default_reviewers:
- datahub-fed
ignored_updates:
- match:
dependency_name: 'govuk-frontend'
- match:
dependency_name: 'govuk-colours'
<|file_sep|>current/.dependabot/config.yml
# Documentation: https://dependabot.com/docs/config-file
version: 1
update_configs:
- package_manager: javascript
directory: '/'
update_schedule: live
default_reviewers:
- datahub-fed
ignored_updates:
- match:
dependency_name: 'govuk-frontend'
- match:
dependency_name: 'govuk-colours'
<|file_sep|>updated/.dependabot/config.yml | # Documentation: https://dependabot.com/docs/config-file
version: 1
update_configs:
- package_manager: javascript
directory: '/'
update_schedule: weekly
ignored_updates:
- match:
dependency_name: 'govuk-frontend'
- match:
dependency_name: 'govuk-colours' | <|file_sep|>original/.dependabot/config.yml
# Documentation: https://dependabot.com/docs/config-file
version: 1
update_configs:
- package_manager: javascript
directory: '/'
update_schedule: live
default_reviewers:
- datahub-fed
ignored_updates:
- match:
dependency_name: 'govuk-frontend'
- match:
dependency_name: 'govuk-colours'
<|file_sep|>current/.dependabot/config.yml
# Documentation: https://dependabot.com/docs/config-file
version: 1
update_configs:
- package_manager: javascript
directory: '/'
update_schedule: live
default_reviewers:
- datahub-fed
ignored_updates:
- match:
dependency_name: 'govuk-frontend'
- match:
dependency_name: 'govuk-colours'
<|file_sep|>updated/.dependabot/config.yml
# Documentation: https://dependabot.com/docs/config-file
version: 1
update_configs:
- package_manager: javascript
directory: '/'
update_schedule: weekly
ignored_updates:
- match:
dependency_name: 'govuk-frontend'
- match:
dependency_name: 'govuk-colours' | 4f383bdbd75dfd3e01c6cb3a86d4118402ddf487 | .dependabot/config.yml | .dependabot/config.yml | YAML |
<|file_sep|>parrainage/app/templates/elu-list.html.diff
original:
updated:
{% if 'department' not in request.GET %}
<th>Dép.</th>
{% endif %}
<|file_sep|>original/parrainage/app/templates/elu-list.html
<th>#</th>
<th>Élu</th>
<th>Téléphone</th>
{% if user.is_authenticated %}
<th>Statut</th>
<th>Assigné à</th>
{% endif %}
</tr>
{% for elu in object_list %}
<tr>
<td>{{ forloop.counter }}.</td>
<td><a href="{{ elu.get_absolute_url }}">{{ elu }}</a></td>
<td>{{ elu.public_phone }}</td>
{% if user.is_authenticated %}
<td>{{ elu.get_status_display }}</td>
<td>{{ elu.assigned_to|default:"" }}</td>
{% endif %}
</tr>
{% endfor %}
</table>
{% endblock %}
<|file_sep|>current/parrainage/app/templates/elu-list.html
<th>Dép.</th>
{% endif %}
<th>Téléphone</th>
{% if user.is_authenticated %}
<th>Statut</th>
<th>Assigné à</th>
{% endif %}
</tr>
{% for elu in object_list %}
<tr>
<td>{{ forloop.counter }}.</td>
<td><a href="{{ elu.get_absolute_url }}">{{ elu }}</a></td>
<td>{{ elu.public_phone }}</td>
{% if user.is_authenticated %}
<td>{{ elu.get_status_display }}</td>
<td>{{ elu.assigned_to|default:"" }}</td>
{% endif %}
</tr>
{% endfor %}
</table>
{% endblock %}
<|file_sep|>updated/parrainage/app/templates/elu-list.html | <th>Téléphone</th>
{% if user.is_authenticated %}
<th>Statut</th>
<th>Assigné à</th>
{% endif %}
</tr>
{% for elu in object_list %}
<tr>
<td>{{ forloop.counter }}.</td>
<td><a href="{{ elu.get_absolute_url }}">{{ elu }}</a></td>
{% if 'department' not in request.GET %}
<td>{{ elu.department }}</td>
{% endif %}
<td>{{ elu.public_phone }}</td>
{% if user.is_authenticated %}
<td>{{ elu.get_status_display }}</td>
<td>{{ elu.assigned_to|default:"" }}</td>
{% endif %}
</tr>
{% endfor %}
</table> | <|file_sep|>parrainage/app/templates/elu-list.html.diff
original:
updated:
{% if 'department' not in request.GET %}
<th>Dép.</th>
{% endif %}
<|file_sep|>original/parrainage/app/templates/elu-list.html
<th>#</th>
<th>Élu</th>
<th>Téléphone</th>
{% if user.is_authenticated %}
<th>Statut</th>
<th>Assigné à</th>
{% endif %}
</tr>
{% for elu in object_list %}
<tr>
<td>{{ forloop.counter }}.</td>
<td><a href="{{ elu.get_absolute_url }}">{{ elu }}</a></td>
<td>{{ elu.public_phone }}</td>
{% if user.is_authenticated %}
<td>{{ elu.get_status_display }}</td>
<td>{{ elu.assigned_to|default:"" }}</td>
{% endif %}
</tr>
{% endfor %}
</table>
{% endblock %}
<|file_sep|>current/parrainage/app/templates/elu-list.html
<th>Dép.</th>
{% endif %}
<th>Téléphone</th>
{% if user.is_authenticated %}
<th>Statut</th>
<th>Assigné à</th>
{% endif %}
</tr>
{% for elu in object_list %}
<tr>
<td>{{ forloop.counter }}.</td>
<td><a href="{{ elu.get_absolute_url }}">{{ elu }}</a></td>
<td>{{ elu.public_phone }}</td>
{% if user.is_authenticated %}
<td>{{ elu.get_status_display }}</td>
<td>{{ elu.assigned_to|default:"" }}</td>
{% endif %}
</tr>
{% endfor %}
</table>
{% endblock %}
<|file_sep|>updated/parrainage/app/templates/elu-list.html
<th>Téléphone</th>
{% if user.is_authenticated %}
<th>Statut</th>
<th>Assigné à</th>
{% endif %}
</tr>
{% for elu in object_list %}
<tr>
<td>{{ forloop.counter }}.</td>
<td><a href="{{ elu.get_absolute_url }}">{{ elu }}</a></td>
{% if 'department' not in request.GET %}
<td>{{ elu.department }}</td>
{% endif %}
<td>{{ elu.public_phone }}</td>
{% if user.is_authenticated %}
<td>{{ elu.get_status_display }}</td>
<td>{{ elu.assigned_to|default:"" }}</td>
{% endif %}
</tr>
{% endfor %}
</table> | fd5599f38181a19f91d550bc06612c3d37add783 | parrainage/app/templates/elu-list.html | parrainage/app/templates/elu-list.html | HTML |
<|file_sep|>original/layouts/partials/css/navigation.css
#main-nav .button {
margin: 0;
}
/* Site nav dropdown boxes align left */
#main-nav .is-dropdown-submenu .button {
text-align: left;
}
#main-nav, #main-nav a {
color: {{ .Get "color_textDefault" }};
}
#main-nav .button:hover a, #main-nav a:hover,
#main-nav .button.active a, #main-nav a.active {
color: {{ .Get "textHeader" }};
}
#main-nav .is-dropdown-submenu {
border-color: {{ .Get "accent" }};
}
<|file_sep|>current/layouts/partials/css/navigation.css
#main-nav .button {
margin: 0;
}
/* Site nav dropdown boxes align left */
#main-nav .is-dropdown-submenu .button {
text-align: left;
}
#main-nav, #main-nav a {
color: {{ .Get "color_textDefault" }};
}
#main-nav .button:hover a, #main-nav a:hover,
#main-nav .button.active a, #main-nav a.active {
color: {{ .Get "textHeader" }};
}
#main-nav .is-dropdown-submenu {
border-color: {{ .Get "accent" }};
}
<|file_sep|>updated/layouts/partials/css/navigation.css | #main-nav .button {
margin: 0;
}
/* Site nav dropdown boxes align left */
#main-nav .is-dropdown-submenu .button {
text-align: left;
}
#main-nav, #main-nav a {
color: {{ .Get "textAlt" }};
}
#main-nav .button:hover a, #main-nav a:hover,
#main-nav .button.active a, #main-nav a.active {
color: {{ .Get "textHeader" }};
}
#main-nav .is-dropdown-submenu {
border-color: {{ .Get "accent" }};
} | <|file_sep|>original/layouts/partials/css/navigation.css
#main-nav .button {
margin: 0;
}
/* Site nav dropdown boxes align left */
#main-nav .is-dropdown-submenu .button {
text-align: left;
}
#main-nav, #main-nav a {
color: {{ .Get "color_textDefault" }};
}
#main-nav .button:hover a, #main-nav a:hover,
#main-nav .button.active a, #main-nav a.active {
color: {{ .Get "textHeader" }};
}
#main-nav .is-dropdown-submenu {
border-color: {{ .Get "accent" }};
}
<|file_sep|>current/layouts/partials/css/navigation.css
#main-nav .button {
margin: 0;
}
/* Site nav dropdown boxes align left */
#main-nav .is-dropdown-submenu .button {
text-align: left;
}
#main-nav, #main-nav a {
color: {{ .Get "color_textDefault" }};
}
#main-nav .button:hover a, #main-nav a:hover,
#main-nav .button.active a, #main-nav a.active {
color: {{ .Get "textHeader" }};
}
#main-nav .is-dropdown-submenu {
border-color: {{ .Get "accent" }};
}
<|file_sep|>updated/layouts/partials/css/navigation.css
#main-nav .button {
margin: 0;
}
/* Site nav dropdown boxes align left */
#main-nav .is-dropdown-submenu .button {
text-align: left;
}
#main-nav, #main-nav a {
color: {{ .Get "textAlt" }};
}
#main-nav .button:hover a, #main-nav a:hover,
#main-nav .button.active a, #main-nav a.active {
color: {{ .Get "textHeader" }};
}
#main-nav .is-dropdown-submenu {
border-color: {{ .Get "accent" }};
} | 61c71a47e3ee6c11c07f668312dc325ad81156c2 | layouts/partials/css/navigation.css | layouts/partials/css/navigation.css | CSS |
<|file_sep|>original/client/components/boards/boardBody.jade
template(name="board")
if isBoardReady.get
if currentBoard
if onlyShowCurrentCard
+cardDetails(currentCard)
else
+boardBody
else
//-- XXX We need a better error message in case the board has been archived
//-- +message(label="board-not-found")
| {{goHome}}
else
+spinner
template(name="boardBody")
.board-wrapper(class=currentBoard.colorClass)
+sidebar
.board-canvas.js-swimlanes.js-perfect-scrollbar(
class="{{#if Sidebar.isOpen}}is-sibling-sidebar-open{{/if}}"
class="{{#if MultiSelection.isActive}}is-multiselection-active{{/if}}"
class="{{#if draggingActive.get}}is-dragging-active{{/if}}")
<|file_sep|>current/client/components/boards/boardBody.jade
template(name="board")
if isBoardReady.get
if currentBoard
if onlyShowCurrentCard
+cardDetails(currentCard)
else
+boardBody
else
//-- XXX We need a better error message in case the board has been archived
//-- +message(label="board-not-found")
| {{goHome}}
else
+spinner
template(name="boardBody")
.board-wrapper(class=currentBoard.colorClass)
+sidebar
.board-canvas.js-swimlanes.js-perfect-scrollbar(
class="{{#if Sidebar.isOpen}}is-sibling-sidebar-open{{/if}}"
class="{{#if MultiSelection.isActive}}is-multiselection-active{{/if}}"
class="{{#if draggingActive.get}}is-dragging-active{{/if}}")
<|file_sep|>updated/client/components/boards/boardBody.jade | template(name="board")
if isBoardReady.get
if currentBoard
if onlyShowCurrentCard
+cardDetails(currentCard)
else
+boardBody
else
//-- XXX We need a better error message in case the board has been archived
+message(label="board-not-found")
//-- | {{goHome}}
else
+spinner
template(name="boardBody")
.board-wrapper(class=currentBoard.colorClass)
+sidebar
.board-canvas.js-swimlanes.js-perfect-scrollbar(
class="{{#if Sidebar.isOpen}}is-sibling-sidebar-open{{/if}}"
class="{{#if MultiSelection.isActive}}is-multiselection-active{{/if}}"
class="{{#if draggingActive.get}}is-dragging-active{{/if}}") | <|file_sep|>original/client/components/boards/boardBody.jade
template(name="board")
if isBoardReady.get
if currentBoard
if onlyShowCurrentCard
+cardDetails(currentCard)
else
+boardBody
else
//-- XXX We need a better error message in case the board has been archived
//-- +message(label="board-not-found")
| {{goHome}}
else
+spinner
template(name="boardBody")
.board-wrapper(class=currentBoard.colorClass)
+sidebar
.board-canvas.js-swimlanes.js-perfect-scrollbar(
class="{{#if Sidebar.isOpen}}is-sibling-sidebar-open{{/if}}"
class="{{#if MultiSelection.isActive}}is-multiselection-active{{/if}}"
class="{{#if draggingActive.get}}is-dragging-active{{/if}}")
<|file_sep|>current/client/components/boards/boardBody.jade
template(name="board")
if isBoardReady.get
if currentBoard
if onlyShowCurrentCard
+cardDetails(currentCard)
else
+boardBody
else
//-- XXX We need a better error message in case the board has been archived
//-- +message(label="board-not-found")
| {{goHome}}
else
+spinner
template(name="boardBody")
.board-wrapper(class=currentBoard.colorClass)
+sidebar
.board-canvas.js-swimlanes.js-perfect-scrollbar(
class="{{#if Sidebar.isOpen}}is-sibling-sidebar-open{{/if}}"
class="{{#if MultiSelection.isActive}}is-multiselection-active{{/if}}"
class="{{#if draggingActive.get}}is-dragging-active{{/if}}")
<|file_sep|>updated/client/components/boards/boardBody.jade
template(name="board")
if isBoardReady.get
if currentBoard
if onlyShowCurrentCard
+cardDetails(currentCard)
else
+boardBody
else
//-- XXX We need a better error message in case the board has been archived
+message(label="board-not-found")
//-- | {{goHome}}
else
+spinner
template(name="boardBody")
.board-wrapper(class=currentBoard.colorClass)
+sidebar
.board-canvas.js-swimlanes.js-perfect-scrollbar(
class="{{#if Sidebar.isOpen}}is-sibling-sidebar-open{{/if}}"
class="{{#if MultiSelection.isActive}}is-multiselection-active{{/if}}"
class="{{#if draggingActive.get}}is-dragging-active{{/if}}") | d302d6f857657ada229f78d9fcd32f63753d9779 | client/components/boards/boardBody.jade | client/components/boards/boardBody.jade | Jade |
<|file_sep|>original/website/_includes/_navigation.jade
//- 💫 INCLUDES > TOP NAVIGATION
nav.c-nav.u-text.js-nav(class=landing ? "c-nav--theme" : null)
a(href="/" aria-label=SITENAME) #[+logo]
ul.c-nav__menu
- var current_url = '/' + current.path[0]
each url, item in NAVIGATION
- var is_active = (current_url == url)
li.c-nav__menu__item(class=is_active ? "is-active" : null)
+a(url)(tabindex=is_active ? "-1" : null)=item
li.c-nav__menu__item.u-hidden-xs
+a(gh("spaCy"))(aria-label="GitHub") #[+icon("github", 20)]
progress.c-progress.js-progress(value="0" max="1")
<|file_sep|>current/website/_includes/_navigation.jade
//- 💫 INCLUDES > TOP NAVIGATION
nav.c-nav.u-text.js-nav(class=landing ? "c-nav--theme" : null)
a(href="/" aria-label=SITENAME) #[+logo]
ul.c-nav__menu
- var current_url = '/' + current.path[0]
each url, item in NAVIGATION
- var is_active = (current_url == url)
li.c-nav__menu__item(class=is_active ? "is-active" : null)
+a(url)(tabindex=is_active ? "-1" : null)=item
li.c-nav__menu__item.u-hidden-xs
+a(gh("spaCy"))(aria-label="GitHub") #[+icon("github", 20)]
progress.c-progress.js-progress(value="0" max="1")
<|file_sep|>updated/website/_includes/_navigation.jade | //- 💫 INCLUDES > TOP NAVIGATION
nav.c-nav.u-text.js-nav(class=landing ? "c-nav--theme" : null)
a(href="/" aria-label=SITENAME) #[+logo]
ul.c-nav__menu
- var current_url = '/' + current.path[0]
each url, item in NAVIGATION
- var is_active = (current_url == url)
li.c-nav__menu__item(class=is_active ? "is-active" : null)
+a(url)(tabindex=is_active ? "-1" : null)=item
li.c-nav__menu__item.u-hidden-xs
+a("https://survey.spacy.io", true) User Survey 2018
li.c-nav__menu__item.u-hidden-xs
+a(gh("spaCy"))(aria-label="GitHub") #[+icon("github", 20)]
progress.c-progress.js-progress(value="0" max="1") | <|file_sep|>original/website/_includes/_navigation.jade
//- 💫 INCLUDES > TOP NAVIGATION
nav.c-nav.u-text.js-nav(class=landing ? "c-nav--theme" : null)
a(href="/" aria-label=SITENAME) #[+logo]
ul.c-nav__menu
- var current_url = '/' + current.path[0]
each url, item in NAVIGATION
- var is_active = (current_url == url)
li.c-nav__menu__item(class=is_active ? "is-active" : null)
+a(url)(tabindex=is_active ? "-1" : null)=item
li.c-nav__menu__item.u-hidden-xs
+a(gh("spaCy"))(aria-label="GitHub") #[+icon("github", 20)]
progress.c-progress.js-progress(value="0" max="1")
<|file_sep|>current/website/_includes/_navigation.jade
//- 💫 INCLUDES > TOP NAVIGATION
nav.c-nav.u-text.js-nav(class=landing ? "c-nav--theme" : null)
a(href="/" aria-label=SITENAME) #[+logo]
ul.c-nav__menu
- var current_url = '/' + current.path[0]
each url, item in NAVIGATION
- var is_active = (current_url == url)
li.c-nav__menu__item(class=is_active ? "is-active" : null)
+a(url)(tabindex=is_active ? "-1" : null)=item
li.c-nav__menu__item.u-hidden-xs
+a(gh("spaCy"))(aria-label="GitHub") #[+icon("github", 20)]
progress.c-progress.js-progress(value="0" max="1")
<|file_sep|>updated/website/_includes/_navigation.jade
//- 💫 INCLUDES > TOP NAVIGATION
nav.c-nav.u-text.js-nav(class=landing ? "c-nav--theme" : null)
a(href="/" aria-label=SITENAME) #[+logo]
ul.c-nav__menu
- var current_url = '/' + current.path[0]
each url, item in NAVIGATION
- var is_active = (current_url == url)
li.c-nav__menu__item(class=is_active ? "is-active" : null)
+a(url)(tabindex=is_active ? "-1" : null)=item
li.c-nav__menu__item.u-hidden-xs
+a("https://survey.spacy.io", true) User Survey 2018
li.c-nav__menu__item.u-hidden-xs
+a(gh("spaCy"))(aria-label="GitHub") #[+icon("github", 20)]
progress.c-progress.js-progress(value="0" max="1") | ca56fb53d17106b31190cecc1480c03894049d80 | website/_includes/_navigation.jade | website/_includes/_navigation.jade | Jade |
<|file_sep|>original/dev-requirements.txt
pip==8.1.2
bumpversion==0.5.3
wheel==0.29.0
watchdog==0.8.3
flake8==3.0.4
tox==2.3.1
coverage==4.2
Sphinx==1.4.8
PyYAML==3.12
pytest==3.0.3
grpcio==1.0.0
grpcio-tools==1.0.0
hypothesis==3.5.3
<|file_sep|>current/dev-requirements.txt
pip==8.1.2
bumpversion==0.5.3
wheel==0.29.0
watchdog==0.8.3
flake8==3.0.4
tox==2.3.1
coverage==4.2
Sphinx==1.4.8
PyYAML==3.12
pytest==3.0.3
grpcio==1.0.0
grpcio-tools==1.0.0
hypothesis==3.5.3
<|file_sep|>updated/dev-requirements.txt | pip==8.1.2
bumpversion==0.5.3
wheel==0.29.0
watchdog==0.8.3
flake8==3.0.4
tox==2.4.0
coverage==4.2
Sphinx==1.4.8
PyYAML==3.12
pytest==3.0.3
grpcio==1.0.0
grpcio-tools==1.0.0
hypothesis==3.5.3 | <|file_sep|>original/dev-requirements.txt
pip==8.1.2
bumpversion==0.5.3
wheel==0.29.0
watchdog==0.8.3
flake8==3.0.4
tox==2.3.1
coverage==4.2
Sphinx==1.4.8
PyYAML==3.12
pytest==3.0.3
grpcio==1.0.0
grpcio-tools==1.0.0
hypothesis==3.5.3
<|file_sep|>current/dev-requirements.txt
pip==8.1.2
bumpversion==0.5.3
wheel==0.29.0
watchdog==0.8.3
flake8==3.0.4
tox==2.3.1
coverage==4.2
Sphinx==1.4.8
PyYAML==3.12
pytest==3.0.3
grpcio==1.0.0
grpcio-tools==1.0.0
hypothesis==3.5.3
<|file_sep|>updated/dev-requirements.txt
pip==8.1.2
bumpversion==0.5.3
wheel==0.29.0
watchdog==0.8.3
flake8==3.0.4
tox==2.4.0
coverage==4.2
Sphinx==1.4.8
PyYAML==3.12
pytest==3.0.3
grpcio==1.0.0
grpcio-tools==1.0.0
hypothesis==3.5.3 | 9b281ae0be130b7f4e202df31acd72ecd9a398fa | dev-requirements.txt | dev-requirements.txt | Text |
<|file_sep|>lib/provider-google-contact/helpers/upload.js.diff
original:
updated:
* @param {Object} cluestrClient Client for upload
* @param {Object} datas Datas about the current account
* @param {Object} contact Contact to upload, plus cluestrClient
<|file_sep|>original/lib/provider-google-contact/helpers/upload.js
/**
* Upload `contact` (containing contact data) onto Cluestr.
*
*
* @param {Object} contact Contact to upload, plus cluestrClient
* @param {Function} cb Callback to call once contacts has been uploaded.
*/
module.exports = function(contact, cluestrClient, cb) {
console.log("Uploading ", contact.url);
var identifier = contact.url;
if(contact.deleted) {
return cluestrClient.deleteDocument(identifier, cb);
}
// Build contact "the right way"
contact = {
identifier: identifier,
metadatas: contact,
semantic_document_type: 'contact',
actions: {
<|file_sep|>current/lib/provider-google-contact/helpers/upload.js
/**
* Upload `contact` (containing contact data) onto Cluestr.
*
*
* @param {Object} contact Contact to upload, plus cluestrClient
* @param {Object} cluestrClient Client for upload
* @param {Object} datas Datas about the current account
* @param {Object} contact Contact to upload, plus cluestrClient
* @param {Function} cb Callback to call once contacts has been uploaded.
*/
module.exports = function(contact, cluestrClient, cb) {
console.log("Uploading ", contact.url);
var identifier = contact.url;
if(contact.deleted) {
return cluestrClient.deleteDocument(identifier, cb);
}
// Build contact "the right way"
contact = {
identifier: identifier,
<|file_sep|>updated/lib/provider-google-contact/helpers/upload.js | /**
* Upload `contact` (containing contact data) onto Cluestr.
*
*
* @param {Object} contact Contact to upload, plus cluestrClient
* @param {Object} cluestrClient Client for upload
* @param {Object} datas Datas about the current account
* @param {Object} contact Contact to upload, plus cluestrClient
* @param {Function} cb Callback to call once contacts has been uploaded.
*/
module.exports = function(contact, cluestrClient, datas, cb) {
console.log("Uploading ", contact.url);
var identifier = contact.url;
if(contact.deleted) {
return cluestrClient.deleteDocument(identifier, cb);
}
// Build contact "the right way"
contact = {
identifier: identifier, | <|file_sep|>lib/provider-google-contact/helpers/upload.js.diff
original:
updated:
* @param {Object} cluestrClient Client for upload
* @param {Object} datas Datas about the current account
* @param {Object} contact Contact to upload, plus cluestrClient
<|file_sep|>original/lib/provider-google-contact/helpers/upload.js
/**
* Upload `contact` (containing contact data) onto Cluestr.
*
*
* @param {Object} contact Contact to upload, plus cluestrClient
* @param {Function} cb Callback to call once contacts has been uploaded.
*/
module.exports = function(contact, cluestrClient, cb) {
console.log("Uploading ", contact.url);
var identifier = contact.url;
if(contact.deleted) {
return cluestrClient.deleteDocument(identifier, cb);
}
// Build contact "the right way"
contact = {
identifier: identifier,
metadatas: contact,
semantic_document_type: 'contact',
actions: {
<|file_sep|>current/lib/provider-google-contact/helpers/upload.js
/**
* Upload `contact` (containing contact data) onto Cluestr.
*
*
* @param {Object} contact Contact to upload, plus cluestrClient
* @param {Object} cluestrClient Client for upload
* @param {Object} datas Datas about the current account
* @param {Object} contact Contact to upload, plus cluestrClient
* @param {Function} cb Callback to call once contacts has been uploaded.
*/
module.exports = function(contact, cluestrClient, cb) {
console.log("Uploading ", contact.url);
var identifier = contact.url;
if(contact.deleted) {
return cluestrClient.deleteDocument(identifier, cb);
}
// Build contact "the right way"
contact = {
identifier: identifier,
<|file_sep|>updated/lib/provider-google-contact/helpers/upload.js
/**
* Upload `contact` (containing contact data) onto Cluestr.
*
*
* @param {Object} contact Contact to upload, plus cluestrClient
* @param {Object} cluestrClient Client for upload
* @param {Object} datas Datas about the current account
* @param {Object} contact Contact to upload, plus cluestrClient
* @param {Function} cb Callback to call once contacts has been uploaded.
*/
module.exports = function(contact, cluestrClient, datas, cb) {
console.log("Uploading ", contact.url);
var identifier = contact.url;
if(contact.deleted) {
return cluestrClient.deleteDocument(identifier, cb);
}
// Build contact "the right way"
contact = {
identifier: identifier, | 46962c63a43577a2902045958882b2ecdaa7ad3e | lib/provider-google-contact/helpers/upload.js | lib/provider-google-contact/helpers/upload.js | JavaScript |
<|file_sep|>original/comedians/lukas-stejskal.html
---
layout: comedian
permalink: /comedians/lukas-stejskal.html
comedian:
id: lukas-stejskal
name: Lukáš Stejskal
img-align: 50% 50%
---
<p>Lukas is pursuing his dream to be famous stand-up comedian, like Louis C.K. Not in that way!</p>
<|file_sep|>current/comedians/lukas-stejskal.html
---
layout: comedian
permalink: /comedians/lukas-stejskal.html
comedian:
id: lukas-stejskal
name: Lukáš Stejskal
img-align: 50% 50%
---
<p>Lukas is pursuing his dream to be famous stand-up comedian, like Louis C.K. Not in that way!</p>
<|file_sep|>updated/comedians/lukas-stejskal.html | ---
layout: comedian
permalink: /comedians/lukas-stejskal.html
comedian:
id: lukas-stejskal
name: Lukáš Stejskal
img-align: 50% 50%
---
<p>Lukas is pursuing his dream to be famous stand-up comedian, like Louis C.K. Not in that way!</p> | <|file_sep|>original/comedians/lukas-stejskal.html
---
layout: comedian
permalink: /comedians/lukas-stejskal.html
comedian:
id: lukas-stejskal
name: Lukáš Stejskal
img-align: 50% 50%
---
<p>Lukas is pursuing his dream to be famous stand-up comedian, like Louis C.K. Not in that way!</p>
<|file_sep|>current/comedians/lukas-stejskal.html
---
layout: comedian
permalink: /comedians/lukas-stejskal.html
comedian:
id: lukas-stejskal
name: Lukáš Stejskal
img-align: 50% 50%
---
<p>Lukas is pursuing his dream to be famous stand-up comedian, like Louis C.K. Not in that way!</p>
<|file_sep|>updated/comedians/lukas-stejskal.html
---
layout: comedian
permalink: /comedians/lukas-stejskal.html
comedian:
id: lukas-stejskal
name: Lukáš Stejskal
img-align: 50% 50%
---
<p>Lukas is pursuing his dream to be famous stand-up comedian, like Louis C.K. Not in that way!</p> | d3dfbc444002a3328ffb127f3a9e99194e6b02f2 | comedians/lukas-stejskal.html | comedians/lukas-stejskal.html | HTML |
<|file_sep|>sample_app/utils.py.diff
original:
for key in values[0].keys():
updated:
for key in sorted(values[0].keys()):
<|file_sep|>original/sample_app/utils.py
)
def fares_to_table(fares):
keys, values = zip(*fares.items())
table_rows = [['Fare Type']]
table_rows[-1].extend(key.title() for key in keys)
for key in values[0].keys():
table_rows.append([key.title()])
table_rows[-1].extend(
ticket_type[key]
for ticket_type in values
)
table = ipy_table.make_table(table_rows)
table.apply_theme('basic')
return table
<|file_sep|>current/sample_app/utils.py
)
def fares_to_table(fares):
keys, values = zip(*fares.items())
table_rows = [['Fare Type']]
table_rows[-1].extend(key.title() for key in keys)
for key in sorted(values[0].keys()):
table_rows.append([key.title()])
table_rows[-1].extend(
ticket_type[key]
for ticket_type in values
)
table = ipy_table.make_table(table_rows)
table.apply_theme('basic')
return table
<|file_sep|>updated/sample_app/utils.py | )
def fares_to_table(fares):
keys, values = zip(*fares.items())
table_rows = [['Fare Type']]
table_rows[-1].extend(key.title() for key in keys)
for key in sorted(values[0].keys()):
table_rows.append([key.title()])
table_rows[-1].extend(
'${}'.format(ticket_type[key])
for ticket_type in values
)
table = ipy_table.make_table(table_rows)
table.apply_theme('basic')
return table | <|file_sep|>sample_app/utils.py.diff
original:
for key in values[0].keys():
updated:
for key in sorted(values[0].keys()):
<|file_sep|>original/sample_app/utils.py
)
def fares_to_table(fares):
keys, values = zip(*fares.items())
table_rows = [['Fare Type']]
table_rows[-1].extend(key.title() for key in keys)
for key in values[0].keys():
table_rows.append([key.title()])
table_rows[-1].extend(
ticket_type[key]
for ticket_type in values
)
table = ipy_table.make_table(table_rows)
table.apply_theme('basic')
return table
<|file_sep|>current/sample_app/utils.py
)
def fares_to_table(fares):
keys, values = zip(*fares.items())
table_rows = [['Fare Type']]
table_rows[-1].extend(key.title() for key in keys)
for key in sorted(values[0].keys()):
table_rows.append([key.title()])
table_rows[-1].extend(
ticket_type[key]
for ticket_type in values
)
table = ipy_table.make_table(table_rows)
table.apply_theme('basic')
return table
<|file_sep|>updated/sample_app/utils.py
)
def fares_to_table(fares):
keys, values = zip(*fares.items())
table_rows = [['Fare Type']]
table_rows[-1].extend(key.title() for key in keys)
for key in sorted(values[0].keys()):
table_rows.append([key.title()])
table_rows[-1].extend(
'${}'.format(ticket_type[key])
for ticket_type in values
)
table = ipy_table.make_table(table_rows)
table.apply_theme('basic')
return table | 1d26fddd3fb1581138117b2fbeeb21877bc48883 | sample_app/utils.py | sample_app/utils.py | Python |
<|file_sep|>original/.travis.yml
rvm:
- 1.8.7
- 1.9.1
- 1.9.2
- 1.9.3
<|file_sep|>current/.travis.yml
rvm:
- 1.8.7
- 1.9.1
- 1.9.2
- 1.9.3
<|file_sep|>updated/.travis.yml | rvm:
- 1.9.2
- 1.9.3 | <|file_sep|>original/.travis.yml
rvm:
- 1.8.7
- 1.9.1
- 1.9.2
- 1.9.3
<|file_sep|>current/.travis.yml
rvm:
- 1.8.7
- 1.9.1
- 1.9.2
- 1.9.3
<|file_sep|>updated/.travis.yml
rvm:
- 1.9.2
- 1.9.3 | 327cfc495b9daa0412bad09c59d380e730428eed | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/app/views/admin/templates/_belongs_to.html.erb
<%
if @resource.typus_field_options_for(:read_only).include?(attribute.to_sym)
html_options.merge!(:disabled => 'disabled')
message = Typus::I18n.t("Read only")
end
%>
<li id="<%= attribute_id %>">
<%= form.label related_fk, "#{label_text} <small>#{message}</small>".html_safe %>
<% if values.any? %>
<%= form.select related_fk, values, options, html_options %>
<% else %>
<%= Typus::I18n.t("No %{resources} found.", :resources => related.model_name.human.downcase.pluralize) %>
<% end %>
</li>
<|file_sep|>current/app/views/admin/templates/_belongs_to.html.erb
<%
if @resource.typus_field_options_for(:read_only).include?(attribute.to_sym)
html_options.merge!(:disabled => 'disabled')
message = Typus::I18n.t("Read only")
end
%>
<li id="<%= attribute_id %>">
<%= form.label related_fk, "#{label_text} <small>#{message}</small>".html_safe %>
<% if values.any? %>
<%= form.select related_fk, values, options, html_options %>
<% else %>
<%= Typus::I18n.t("No %{resources} found.", :resources => related.model_name.human.downcase.pluralize) %>
<% end %>
</li>
<|file_sep|>updated/app/views/admin/templates/_belongs_to.html.erb | <%
if @resource.typus_field_options_for(:read_only).include?(attribute.to_sym)
html_options.merge!(:disabled => 'disabled')
message = Typus::I18n.t("Read only")
end
%>
<li id="<%= attribute_id %>">
<%= form.label attribute, "#{label_text} <small>#{message}</small>".html_safe %>
<% if values.any? %>
<%= form.select related_fk, values, options, html_options %>
<% else %>
<%= Typus::I18n.t("No %{resources} found.", :resources => related.model_name.human.downcase.pluralize) %>
<% end %>
</li> | <|file_sep|>original/app/views/admin/templates/_belongs_to.html.erb
<%
if @resource.typus_field_options_for(:read_only).include?(attribute.to_sym)
html_options.merge!(:disabled => 'disabled')
message = Typus::I18n.t("Read only")
end
%>
<li id="<%= attribute_id %>">
<%= form.label related_fk, "#{label_text} <small>#{message}</small>".html_safe %>
<% if values.any? %>
<%= form.select related_fk, values, options, html_options %>
<% else %>
<%= Typus::I18n.t("No %{resources} found.", :resources => related.model_name.human.downcase.pluralize) %>
<% end %>
</li>
<|file_sep|>current/app/views/admin/templates/_belongs_to.html.erb
<%
if @resource.typus_field_options_for(:read_only).include?(attribute.to_sym)
html_options.merge!(:disabled => 'disabled')
message = Typus::I18n.t("Read only")
end
%>
<li id="<%= attribute_id %>">
<%= form.label related_fk, "#{label_text} <small>#{message}</small>".html_safe %>
<% if values.any? %>
<%= form.select related_fk, values, options, html_options %>
<% else %>
<%= Typus::I18n.t("No %{resources} found.", :resources => related.model_name.human.downcase.pluralize) %>
<% end %>
</li>
<|file_sep|>updated/app/views/admin/templates/_belongs_to.html.erb
<%
if @resource.typus_field_options_for(:read_only).include?(attribute.to_sym)
html_options.merge!(:disabled => 'disabled')
message = Typus::I18n.t("Read only")
end
%>
<li id="<%= attribute_id %>">
<%= form.label attribute, "#{label_text} <small>#{message}</small>".html_safe %>
<% if values.any? %>
<%= form.select related_fk, values, options, html_options %>
<% else %>
<%= Typus::I18n.t("No %{resources} found.", :resources => related.model_name.human.downcase.pluralize) %>
<% end %>
</li> | 8e28f6d421af0b137cdb6044c7fc4273d6579db8 | app/views/admin/templates/_belongs_to.html.erb | app/views/admin/templates/_belongs_to.html.erb | HTML+ERB |
<|file_sep|>original/web/app/mu-plugins/fix-markdown.php
<|file_sep|>current/web/app/mu-plugins/fix-markdown.php
<|file_sep|>updated/web/app/mu-plugins/fix-markdown.php | <?php
/**
* Remove problematic hook that escapes html in code blocks
*/
add_action('init', function() {
if (!class_exists('WPCom_Markdown')) {
return;
}
$markdown = WPCom_Markdown::get_instance();
remove_filter('content_save_pre', array($markdown, 'preserve_code_blocks'), 1);
}, 99); | <|file_sep|>original/web/app/mu-plugins/fix-markdown.php
<|file_sep|>current/web/app/mu-plugins/fix-markdown.php
<|file_sep|>updated/web/app/mu-plugins/fix-markdown.php
<?php
/**
* Remove problematic hook that escapes html in code blocks
*/
add_action('init', function() {
if (!class_exists('WPCom_Markdown')) {
return;
}
$markdown = WPCom_Markdown::get_instance();
remove_filter('content_save_pre', array($markdown, 'preserve_code_blocks'), 1);
}, 99); | c056a7bcf33af9e0740f390c60d0310b044941b9 | web/app/mu-plugins/fix-markdown.php | web/app/mu-plugins/fix-markdown.php | PHP |
<|file_sep|>original/auditlog/apps.py
from django.apps import AppConfig
class AuditlogConfig(AppConfig):
name = "auditlog"
verbose_name = "Audit log"
<|file_sep|>current/auditlog/apps.py
from django.apps import AppConfig
class AuditlogConfig(AppConfig):
name = "auditlog"
verbose_name = "Audit log"
<|file_sep|>updated/auditlog/apps.py | from django.apps import AppConfig
class AuditlogConfig(AppConfig):
name = "auditlog"
verbose_name = "Audit log"
default_auto_field = 'django.db.models.AutoField' | <|file_sep|>original/auditlog/apps.py
from django.apps import AppConfig
class AuditlogConfig(AppConfig):
name = "auditlog"
verbose_name = "Audit log"
<|file_sep|>current/auditlog/apps.py
from django.apps import AppConfig
class AuditlogConfig(AppConfig):
name = "auditlog"
verbose_name = "Audit log"
<|file_sep|>updated/auditlog/apps.py
from django.apps import AppConfig
class AuditlogConfig(AppConfig):
name = "auditlog"
verbose_name = "Audit log"
default_auto_field = 'django.db.models.AutoField' | ffd8bb1e85fe7ed80d85062e4d5932f28065b84c | auditlog/apps.py | auditlog/apps.py | Python |
<|file_sep|>original/.github/workflows/stale.yml
<|file_sep|>current/.github/workflows/stale.yml
<|file_sep|>updated/.github/workflows/stale.yml | name: "Mark stale issues and pull requests"
on:
schedule:
- cron: "30 1 * * *"
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: "This issue has been automatically marked as stale because it has not had any activity for a long period. It will be closed and archived if no further activity occurs. However, we may return to this issue in the future. If it still affects you or you have any additional information regarding it, please leave a comment and we will keep it open."
stale-pr-message: "This pull request has been automatically marked as stale because it has not had any activity for a long period. It will be closed and archived if no further activity occurs. However, we may return to this pull request in the future. If it is still relevant or you have any additional information regarding it, please leave a comment and we will keep it open."
close-issue-message: "We're closing this issue after a prolonged period of inactivity. If it still affects you, please create a new issue with up-to-date information. Thank you."
close-pr-message: "We're closing this pull request after a prolonged period of inactivity. If it is still relevant, please ask for this pull request to be reopened. Thank you."
stale-issue-label: "STATE: Stale"
stale-pr-label: "STATE: Stale"
days-before-stale: 700
days-before-close: 10
exempt-issue-labels: "AREA: docs,FREQUENCY: critical,FREQUENCY: level 2,HELP WANTED,!IMPORTANT!,STATE: Need clarification,STATE: Need response,STATE: won't fix,support center,TYPE: bug"
exempt-pr-labels: "AREA: docs,FREQUENCY: critical,FREQUENCY: level 2,HELP WANTED,!IMPORTANT!,STATE: Need clarification,STATE: Need response,STATE: won't fix,support center,TYPE: bug" | <|file_sep|>original/.github/workflows/stale.yml
<|file_sep|>current/.github/workflows/stale.yml
<|file_sep|>updated/.github/workflows/stale.yml
name: "Mark stale issues and pull requests"
on:
schedule:
- cron: "30 1 * * *"
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: "This issue has been automatically marked as stale because it has not had any activity for a long period. It will be closed and archived if no further activity occurs. However, we may return to this issue in the future. If it still affects you or you have any additional information regarding it, please leave a comment and we will keep it open."
stale-pr-message: "This pull request has been automatically marked as stale because it has not had any activity for a long period. It will be closed and archived if no further activity occurs. However, we may return to this pull request in the future. If it is still relevant or you have any additional information regarding it, please leave a comment and we will keep it open."
close-issue-message: "We're closing this issue after a prolonged period of inactivity. If it still affects you, please create a new issue with up-to-date information. Thank you."
close-pr-message: "We're closing this pull request after a prolonged period of inactivity. If it is still relevant, please ask for this pull request to be reopened. Thank you."
stale-issue-label: "STATE: Stale"
stale-pr-label: "STATE: Stale"
days-before-stale: 700
days-before-close: 10
exempt-issue-labels: "AREA: docs,FREQUENCY: critical,FREQUENCY: level 2,HELP WANTED,!IMPORTANT!,STATE: Need clarification,STATE: Need response,STATE: won't fix,support center,TYPE: bug"
exempt-pr-labels: "AREA: docs,FREQUENCY: critical,FREQUENCY: level 2,HELP WANTED,!IMPORTANT!,STATE: Need clarification,STATE: Need response,STATE: won't fix,support center,TYPE: bug" | a91a2981d7789759ee25336dff161f498b8fdf39 | .github/workflows/stale.yml | .github/workflows/stale.yml | YAML |
<|file_sep|>original/subprojects/performance/src/performanceTest/groovy/org/gradle/performance/LocalTaskOutputCachePerformanceTest.groovy
<|file_sep|>current/subprojects/performance/src/performanceTest/groovy/org/gradle/performance/LocalTaskOutputCachePerformanceTest.groovy
<|file_sep|>updated/subprojects/performance/src/performanceTest/groovy/org/gradle/performance/LocalTaskOutputCachePerformanceTest.groovy | /*
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.gradle.performance
import org.gradle.performance.categories.BasicPerformanceTest
import org.junit.experimental.categories.Category
| <|file_sep|>original/subprojects/performance/src/performanceTest/groovy/org/gradle/performance/LocalTaskOutputCachePerformanceTest.groovy
<|file_sep|>current/subprojects/performance/src/performanceTest/groovy/org/gradle/performance/LocalTaskOutputCachePerformanceTest.groovy
<|file_sep|>updated/subprojects/performance/src/performanceTest/groovy/org/gradle/performance/LocalTaskOutputCachePerformanceTest.groovy
/*
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.gradle.performance
import org.gradle.performance.categories.BasicPerformanceTest
import org.junit.experimental.categories.Category
| 6e66202d3e8fae00804b1dcbc1d4e86b020c924a | subprojects/performance/src/performanceTest/groovy/org/gradle/performance/LocalTaskOutputCachePerformanceTest.groovy | subprojects/performance/src/performanceTest/groovy/org/gradle/performance/LocalTaskOutputCachePerformanceTest.groovy | Groovy |
<|file_sep|>original/modules/core/src/main/resources/log4j.properties
log4j.rootLogger = INFO, Console
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.conversionPattern=[%-5p] %c %x - %m%n
log4j.logger.org.xnio=WARN
log4j.logger.org.quartz.core.SchedulerSignalerImpl=WARN
log4j.logger.org.quartz.simpl.RAMJobStore=WARN
log4j.logger.org.quartz.impl.DirectSchedulerFactory=WARN
<|file_sep|>current/modules/core/src/main/resources/log4j.properties
log4j.rootLogger = INFO, Console
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.conversionPattern=[%-5p] %c %x - %m%n
log4j.logger.org.xnio=WARN
log4j.logger.org.quartz.core.SchedulerSignalerImpl=WARN
log4j.logger.org.quartz.simpl.RAMJobStore=WARN
log4j.logger.org.quartz.impl.DirectSchedulerFactory=WARN
<|file_sep|>updated/modules/core/src/main/resources/log4j.properties | log4j.rootLogger = INFO, Console
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.conversionPattern=%d{ABSOLUTE} [%-5p] %c %x - %m%n
log4j.logger.org.xnio=WARN
log4j.logger.org.quartz.core.SchedulerSignalerImpl=WARN
log4j.logger.org.quartz.simpl.RAMJobStore=WARN
log4j.logger.org.quartz.impl.DirectSchedulerFactory=WARN | <|file_sep|>original/modules/core/src/main/resources/log4j.properties
log4j.rootLogger = INFO, Console
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.conversionPattern=[%-5p] %c %x - %m%n
log4j.logger.org.xnio=WARN
log4j.logger.org.quartz.core.SchedulerSignalerImpl=WARN
log4j.logger.org.quartz.simpl.RAMJobStore=WARN
log4j.logger.org.quartz.impl.DirectSchedulerFactory=WARN
<|file_sep|>current/modules/core/src/main/resources/log4j.properties
log4j.rootLogger = INFO, Console
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.conversionPattern=[%-5p] %c %x - %m%n
log4j.logger.org.xnio=WARN
log4j.logger.org.quartz.core.SchedulerSignalerImpl=WARN
log4j.logger.org.quartz.simpl.RAMJobStore=WARN
log4j.logger.org.quartz.impl.DirectSchedulerFactory=WARN
<|file_sep|>updated/modules/core/src/main/resources/log4j.properties
log4j.rootLogger = INFO, Console
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.conversionPattern=%d{ABSOLUTE} [%-5p] %c %x - %m%n
log4j.logger.org.xnio=WARN
log4j.logger.org.quartz.core.SchedulerSignalerImpl=WARN
log4j.logger.org.quartz.simpl.RAMJobStore=WARN
log4j.logger.org.quartz.impl.DirectSchedulerFactory=WARN | 2dcef05d49ee5a2068ea456a5e5988d116484f62 | modules/core/src/main/resources/log4j.properties | modules/core/src/main/resources/log4j.properties | INI |
<|file_sep|>original/lexer/src/main/kotlin/org/purescript/PSLanguage.kt
"Prim.TypeError",
)
/**
* These types are built into the purescript compiles,
* and are always available.
*
* See [https://pursuit.purescript.org/builtins/docs/Prim] for details.
*/
val BUILTIN_TYPES = setOf(
"Int",
"Number",
"String",
"Char",
"Boolean",
"Array",
"Type", // TODO Type is really a kind, not a type
"Row", // TODO Row is really a kind, not a type
)
}
}
<|file_sep|>current/lexer/src/main/kotlin/org/purescript/PSLanguage.kt
"Prim.TypeError",
)
/**
* These types are built into the purescript compiles,
* and are always available.
*
* See [https://pursuit.purescript.org/builtins/docs/Prim] for details.
*/
val BUILTIN_TYPES = setOf(
"Int",
"Number",
"String",
"Char",
"Boolean",
"Array",
"Type", // TODO Type is really a kind, not a type
"Row", // TODO Row is really a kind, not a type
)
}
}
<|file_sep|>updated/lexer/src/main/kotlin/org/purescript/PSLanguage.kt | "Prim.TypeError",
)
/**
* These types are built into the purescript compiles,
* and are always available.
*
* See [https://pursuit.purescript.org/builtins/docs/Prim] for details.
*/
val BUILTIN_TYPES = setOf(
"Function", // TODO Function is really a kind, not a type
"Record", // TODO Record is really a kind, not a type
"Partial", // TODO Partial is really a Class, not a type
"Constraint", // TODO Constraint is really a kind, not a type
"Symbol",
"Int",
"Number",
"String",
"Char",
"Boolean",
"Array", | <|file_sep|>original/lexer/src/main/kotlin/org/purescript/PSLanguage.kt
"Prim.TypeError",
)
/**
* These types are built into the purescript compiles,
* and are always available.
*
* See [https://pursuit.purescript.org/builtins/docs/Prim] for details.
*/
val BUILTIN_TYPES = setOf(
"Int",
"Number",
"String",
"Char",
"Boolean",
"Array",
"Type", // TODO Type is really a kind, not a type
"Row", // TODO Row is really a kind, not a type
)
}
}
<|file_sep|>current/lexer/src/main/kotlin/org/purescript/PSLanguage.kt
"Prim.TypeError",
)
/**
* These types are built into the purescript compiles,
* and are always available.
*
* See [https://pursuit.purescript.org/builtins/docs/Prim] for details.
*/
val BUILTIN_TYPES = setOf(
"Int",
"Number",
"String",
"Char",
"Boolean",
"Array",
"Type", // TODO Type is really a kind, not a type
"Row", // TODO Row is really a kind, not a type
)
}
}
<|file_sep|>updated/lexer/src/main/kotlin/org/purescript/PSLanguage.kt
"Prim.TypeError",
)
/**
* These types are built into the purescript compiles,
* and are always available.
*
* See [https://pursuit.purescript.org/builtins/docs/Prim] for details.
*/
val BUILTIN_TYPES = setOf(
"Function", // TODO Function is really a kind, not a type
"Record", // TODO Record is really a kind, not a type
"Partial", // TODO Partial is really a Class, not a type
"Constraint", // TODO Constraint is really a kind, not a type
"Symbol",
"Int",
"Number",
"String",
"Char",
"Boolean",
"Array", | fe37475aed72028110a9b1567c83a0fd88833cfd | lexer/src/main/kotlin/org/purescript/PSLanguage.kt | lexer/src/main/kotlin/org/purescript/PSLanguage.kt | Kotlin |
<|file_sep|>original/lib/bcc.rb
require "bcc/version"
require "bcc/railtie" if defined?(Rails::Railtie)
module Bcc
class Base
def self.delivering_message(message)
return unless BCC_EMAILS.any?
message.bcc += BCC_EMAILS
puts message.inspect
end
end
end
<|file_sep|>current/lib/bcc.rb
require "bcc/version"
require "bcc/railtie" if defined?(Rails::Railtie)
module Bcc
class Base
def self.delivering_message(message)
return unless BCC_EMAILS.any?
message.bcc += BCC_EMAILS
puts message.inspect
end
end
end
<|file_sep|>updated/lib/bcc.rb | require "bcc/version"
require "bcc/railtie" if defined?(Rails::Railtie)
module Bcc
class Base
def self.delivering_email(message)
return unless BCC_EMAILS.any?
message.bcc += BCC_EMAILS
puts message.inspect
end
end
end | <|file_sep|>original/lib/bcc.rb
require "bcc/version"
require "bcc/railtie" if defined?(Rails::Railtie)
module Bcc
class Base
def self.delivering_message(message)
return unless BCC_EMAILS.any?
message.bcc += BCC_EMAILS
puts message.inspect
end
end
end
<|file_sep|>current/lib/bcc.rb
require "bcc/version"
require "bcc/railtie" if defined?(Rails::Railtie)
module Bcc
class Base
def self.delivering_message(message)
return unless BCC_EMAILS.any?
message.bcc += BCC_EMAILS
puts message.inspect
end
end
end
<|file_sep|>updated/lib/bcc.rb
require "bcc/version"
require "bcc/railtie" if defined?(Rails::Railtie)
module Bcc
class Base
def self.delivering_email(message)
return unless BCC_EMAILS.any?
message.bcc += BCC_EMAILS
puts message.inspect
end
end
end | 4f0e94618af343257073181f1d66121abbe99188 | lib/bcc.rb | lib/bcc.rb | Ruby |
<|file_sep|>original/gradle/wrapper/gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
<|file_sep|>current/gradle/wrapper/gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
<|file_sep|>updated/gradle/wrapper/gradle-wrapper.properties | distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-all.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.2-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
<|file_sep|>current/gradle/wrapper/gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
<|file_sep|>updated/gradle/wrapper/gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists | 3412470bdfc6845030339f179e8e9722be7e62d3 | gradle/wrapper/gradle-wrapper.properties | gradle/wrapper/gradle-wrapper.properties | INI |
<|file_sep|>original/README.md
# novice-tools
Small and easy functions for programming beginners in Rust
<|file_sep|>current/README.md
# novice-tools
Small and easy functions for programming beginners in Rust
<|file_sep|>updated/README.md | Rust Tools for Novices
======================
[](https://travis-ci.org/LukasKalbertodt/novice-tools)
[]()
[](https://crates.io/crates/novice-tools)
[**Documentation**](https://lukaskalbertodt.github.io/novice-tools/novice_tools/)
Small and easy functions for absolute beginners in Rust and programming.
Sometimes a seemingly easy task, like reading an integer input from the user, is actually something complex with many sources of errors. Instead of overwhelm the
beginner with the explanation, it's often useful to just start with something easy, like `fn read_number() -> isize`. Easy to use and not very confusing.
*Note*: This means that you shouldn't use this crate in production or something.
## Example
Here is a simple example (see [`example/read_stdin.rs`](https://github.com/LukasKalbertodt/novice-tools/blob/master/examples/read_stdin.rs)):
``` rust
extern crate novice_tools;
| <|file_sep|>original/README.md
# novice-tools
Small and easy functions for programming beginners in Rust
<|file_sep|>current/README.md
# novice-tools
Small and easy functions for programming beginners in Rust
<|file_sep|>updated/README.md
Rust Tools for Novices
======================
[](https://travis-ci.org/LukasKalbertodt/novice-tools)
[]()
[](https://crates.io/crates/novice-tools)
[**Documentation**](https://lukaskalbertodt.github.io/novice-tools/novice_tools/)
Small and easy functions for absolute beginners in Rust and programming.
Sometimes a seemingly easy task, like reading an integer input from the user, is actually something complex with many sources of errors. Instead of overwhelm the
beginner with the explanation, it's often useful to just start with something easy, like `fn read_number() -> isize`. Easy to use and not very confusing.
*Note*: This means that you shouldn't use this crate in production or something.
## Example
Here is a simple example (see [`example/read_stdin.rs`](https://github.com/LukasKalbertodt/novice-tools/blob/master/examples/read_stdin.rs)):
``` rust
extern crate novice_tools;
| 8160ae19b50ded7adc454d7f7c3f06eb4975bd6f | README.md | README.md | Markdown |
<|file_sep|>original/examples/fn/closures/closure_analysis/iter_find/input.md
`Iterator::find` is a function which when passed an iterator, will return
the first element which satisfies the predicate as an `Option`. It's
signature:
```rust
pub trait Iterator {
// The type being iterated over.
type Item;
// `any` takes `&mut self` meaning the caller may be borrowed
// and modified, but not consumed.
fn find<P>(&mut self, predicate: P) -> Option<Self::Item> where
// `FnMut` meaning any captured variable may at most be
// modified, not consumed. `&Self::Item` states it takes
// arguments to the closure by reference.
P: FnMut(&Self::Item) -> bool {}
}
```
{iter_find.play}
<|file_sep|>current/examples/fn/closures/closure_analysis/iter_find/input.md
`Iterator::find` is a function which when passed an iterator, will return
the first element which satisfies the predicate as an `Option`. It's
signature:
```rust
pub trait Iterator {
// The type being iterated over.
type Item;
// `any` takes `&mut self` meaning the caller may be borrowed
// and modified, but not consumed.
fn find<P>(&mut self, predicate: P) -> Option<Self::Item> where
// `FnMut` meaning any captured variable may at most be
// modified, not consumed. `&Self::Item` states it takes
// arguments to the closure by reference.
P: FnMut(&Self::Item) -> bool {}
}
```
{iter_find.play}
<|file_sep|>updated/examples/fn/closures/closure_analysis/iter_find/input.md | `Iterator::find` is a function which when passed an iterator, will return
the first element which satisfies the predicate as an `Option`. It's
signature:
```rust
pub trait Iterator {
// The type being iterated over.
type Item;
// `find` takes `&mut self` meaning the caller may be borrowed
// and modified, but not consumed.
fn find<P>(&mut self, predicate: P) -> Option<Self::Item> where
// `FnMut` meaning any captured variable may at most be
// modified, not consumed. `&Self::Item` states it takes
// arguments to the closure by reference.
P: FnMut(&Self::Item) -> bool {}
}
```
{iter_find.play}
| <|file_sep|>original/examples/fn/closures/closure_analysis/iter_find/input.md
`Iterator::find` is a function which when passed an iterator, will return
the first element which satisfies the predicate as an `Option`. It's
signature:
```rust
pub trait Iterator {
// The type being iterated over.
type Item;
// `any` takes `&mut self` meaning the caller may be borrowed
// and modified, but not consumed.
fn find<P>(&mut self, predicate: P) -> Option<Self::Item> where
// `FnMut` meaning any captured variable may at most be
// modified, not consumed. `&Self::Item` states it takes
// arguments to the closure by reference.
P: FnMut(&Self::Item) -> bool {}
}
```
{iter_find.play}
<|file_sep|>current/examples/fn/closures/closure_analysis/iter_find/input.md
`Iterator::find` is a function which when passed an iterator, will return
the first element which satisfies the predicate as an `Option`. It's
signature:
```rust
pub trait Iterator {
// The type being iterated over.
type Item;
// `any` takes `&mut self` meaning the caller may be borrowed
// and modified, but not consumed.
fn find<P>(&mut self, predicate: P) -> Option<Self::Item> where
// `FnMut` meaning any captured variable may at most be
// modified, not consumed. `&Self::Item` states it takes
// arguments to the closure by reference.
P: FnMut(&Self::Item) -> bool {}
}
```
{iter_find.play}
<|file_sep|>updated/examples/fn/closures/closure_analysis/iter_find/input.md
`Iterator::find` is a function which when passed an iterator, will return
the first element which satisfies the predicate as an `Option`. It's
signature:
```rust
pub trait Iterator {
// The type being iterated over.
type Item;
// `find` takes `&mut self` meaning the caller may be borrowed
// and modified, but not consumed.
fn find<P>(&mut self, predicate: P) -> Option<Self::Item> where
// `FnMut` meaning any captured variable may at most be
// modified, not consumed. `&Self::Item` states it takes
// arguments to the closure by reference.
P: FnMut(&Self::Item) -> bool {}
}
```
{iter_find.play}
| 2b2b9efc5bd8b3af1bfcc5c78b1f66269ab1c03d | examples/fn/closures/closure_analysis/iter_find/input.md | examples/fn/closures/closure_analysis/iter_find/input.md | Markdown |
<|file_sep|>global.json.diff
original:
"version": "5.0.103"
updated:
"version": "5.0.104"
<|file_sep|>global.json.diff
original:
"dotnet": "5.0.103",
updated:
"dotnet": "5.0.104",
<|file_sep|>global.json.diff
original:
"2.1.25",
updated:
"2.1.26",
<|file_sep|>original/global.json
"dotnet": "5.0.103",
"runtimes": {
"dotnet/x64": [
"2.1.25",
"$(MicrosoftNETCoreAppInternalPackageVersion)"
],
"dotnet/x86": [
"$(MicrosoftNETCoreAppInternalPackageVersion)"
],
"aspnetcore/x64": [
"3.1.12"
]
},
"Git": "2.22.0",
"jdk": "11.0.3",
"vs": {
"version": "16.5",
"components": [
"Microsoft.VisualStudio.Component.VC.ATL",
"Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
"Microsoft.VisualStudio.Component.Windows10SDK.17134"
<|file_sep|>current/global.json
"dotnet": "5.0.104",
"runtimes": {
"dotnet/x64": [
"2.1.26",
"$(MicrosoftNETCoreAppInternalPackageVersion)"
],
"dotnet/x86": [
"$(MicrosoftNETCoreAppInternalPackageVersion)"
],
"aspnetcore/x64": [
"3.1.12"
]
},
"Git": "2.22.0",
"jdk": "11.0.3",
"vs": {
"version": "16.5",
"components": [
"Microsoft.VisualStudio.Component.VC.ATL",
"Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
"Microsoft.VisualStudio.Component.Windows10SDK.17134"
<|file_sep|>updated/global.json | "dotnet": "5.0.104",
"runtimes": {
"dotnet/x64": [
"2.1.26",
"$(MicrosoftNETCoreAppInternalPackageVersion)"
],
"dotnet/x86": [
"$(MicrosoftNETCoreAppInternalPackageVersion)"
],
"aspnetcore/x64": [
"3.1.13"
]
},
"Git": "2.22.0",
"jdk": "11.0.3",
"vs": {
"version": "16.5",
"components": [
"Microsoft.VisualStudio.Component.VC.ATL",
"Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
"Microsoft.VisualStudio.Component.Windows10SDK.17134" | <|file_sep|>global.json.diff
original:
"version": "5.0.103"
updated:
"version": "5.0.104"
<|file_sep|>global.json.diff
original:
"dotnet": "5.0.103",
updated:
"dotnet": "5.0.104",
<|file_sep|>global.json.diff
original:
"2.1.25",
updated:
"2.1.26",
<|file_sep|>original/global.json
"dotnet": "5.0.103",
"runtimes": {
"dotnet/x64": [
"2.1.25",
"$(MicrosoftNETCoreAppInternalPackageVersion)"
],
"dotnet/x86": [
"$(MicrosoftNETCoreAppInternalPackageVersion)"
],
"aspnetcore/x64": [
"3.1.12"
]
},
"Git": "2.22.0",
"jdk": "11.0.3",
"vs": {
"version": "16.5",
"components": [
"Microsoft.VisualStudio.Component.VC.ATL",
"Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
"Microsoft.VisualStudio.Component.Windows10SDK.17134"
<|file_sep|>current/global.json
"dotnet": "5.0.104",
"runtimes": {
"dotnet/x64": [
"2.1.26",
"$(MicrosoftNETCoreAppInternalPackageVersion)"
],
"dotnet/x86": [
"$(MicrosoftNETCoreAppInternalPackageVersion)"
],
"aspnetcore/x64": [
"3.1.12"
]
},
"Git": "2.22.0",
"jdk": "11.0.3",
"vs": {
"version": "16.5",
"components": [
"Microsoft.VisualStudio.Component.VC.ATL",
"Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
"Microsoft.VisualStudio.Component.Windows10SDK.17134"
<|file_sep|>updated/global.json
"dotnet": "5.0.104",
"runtimes": {
"dotnet/x64": [
"2.1.26",
"$(MicrosoftNETCoreAppInternalPackageVersion)"
],
"dotnet/x86": [
"$(MicrosoftNETCoreAppInternalPackageVersion)"
],
"aspnetcore/x64": [
"3.1.13"
]
},
"Git": "2.22.0",
"jdk": "11.0.3",
"vs": {
"version": "16.5",
"components": [
"Microsoft.VisualStudio.Component.VC.ATL",
"Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
"Microsoft.VisualStudio.Component.Windows10SDK.17134" | 0332d9d9293a41f3cf106bef6bfd25efbfbfef88 | global.json | global.json | JSON |
<|file_sep|>original/arrowhead/arrowhead.rb
bifurcated: "Oxbow",
},
}
# FIXME: I don't have time to deal with this.
def self.classify(region, shape)
if CLASSIFICATIONS.include? region
shapes = CLASSIFICATIONS[region]
if shapes.include? shape
arrowhead = shapes[shape]
"You have a(n) '#{arrowhead}' arrowhead. Probably priceless."
else
raise "Unknown shape value. Are you sure you know what you're talking about?"
end
else
raise "Unknown region, please provide a valid region."
end
end
end
puts Arrowhead.classify(:northern_plains, :bifurcated)
<|file_sep|>current/arrowhead/arrowhead.rb
bifurcated: "Oxbow",
},
}
# FIXME: I don't have time to deal with this.
def self.classify(region, shape)
if CLASSIFICATIONS.include? region
shapes = CLASSIFICATIONS[region]
if shapes.include? shape
arrowhead = shapes[shape]
"You have a(n) '#{arrowhead}' arrowhead. Probably priceless."
else
raise "Unknown shape value. Are you sure you know what you're talking about?"
end
else
raise "Unknown region, please provide a valid region."
end
end
end
puts Arrowhead.classify(:northern_plains, :bifurcated)
<|file_sep|>updated/arrowhead/arrowhead.rb | else
raise "Unknown shape value. Are you sure you know what you're talking about?"
end
else
raise "Unknown region, please provide a valid region."
end
end
end
puts Arrowhead.classify(:northern_plains, :bifurcated)
begin
Arrowhead.classify(:southern_plains, :bifurcated)
rescue => e
puts "Unknown region raises: #{e.class}: #{e.message}"
end
begin
Arrowhead.classify(:northern_plains, :plain)
rescue => e
puts "Unknown shape raises: #{e.class}: #{e.message}" | <|file_sep|>original/arrowhead/arrowhead.rb
bifurcated: "Oxbow",
},
}
# FIXME: I don't have time to deal with this.
def self.classify(region, shape)
if CLASSIFICATIONS.include? region
shapes = CLASSIFICATIONS[region]
if shapes.include? shape
arrowhead = shapes[shape]
"You have a(n) '#{arrowhead}' arrowhead. Probably priceless."
else
raise "Unknown shape value. Are you sure you know what you're talking about?"
end
else
raise "Unknown region, please provide a valid region."
end
end
end
puts Arrowhead.classify(:northern_plains, :bifurcated)
<|file_sep|>current/arrowhead/arrowhead.rb
bifurcated: "Oxbow",
},
}
# FIXME: I don't have time to deal with this.
def self.classify(region, shape)
if CLASSIFICATIONS.include? region
shapes = CLASSIFICATIONS[region]
if shapes.include? shape
arrowhead = shapes[shape]
"You have a(n) '#{arrowhead}' arrowhead. Probably priceless."
else
raise "Unknown shape value. Are you sure you know what you're talking about?"
end
else
raise "Unknown region, please provide a valid region."
end
end
end
puts Arrowhead.classify(:northern_plains, :bifurcated)
<|file_sep|>updated/arrowhead/arrowhead.rb
else
raise "Unknown shape value. Are you sure you know what you're talking about?"
end
else
raise "Unknown region, please provide a valid region."
end
end
end
puts Arrowhead.classify(:northern_plains, :bifurcated)
begin
Arrowhead.classify(:southern_plains, :bifurcated)
rescue => e
puts "Unknown region raises: #{e.class}: #{e.message}"
end
begin
Arrowhead.classify(:northern_plains, :plain)
rescue => e
puts "Unknown shape raises: #{e.class}: #{e.message}" | e14f9b3202bd77d15e33922faac0b85b84cb3bcc | arrowhead/arrowhead.rb | arrowhead/arrowhead.rb | Ruby |
<|file_sep|>original/v1/helpers/errors.rb
def verbose_500(e)
{
error: e.message.squeeze("\n").split("\n"),
backtrace: e.backtrace,
}.to_json
end
def forward_errors
yield
rescue Xapi::ApiError, Xapi::UnknownLanguage => e
halt 400, { error: e.message }.to_json
rescue Exception => e
if %w(test development).include?(ENV['RACK_ENV'].to_s)
halt 500, verbose_500(e)
end
Bugsnag.notify(e, nil, request)
halt 500, friendly_500
end
end
end
<|file_sep|>current/v1/helpers/errors.rb
def verbose_500(e)
{
error: e.message.squeeze("\n").split("\n"),
backtrace: e.backtrace,
}.to_json
end
def forward_errors
yield
rescue Xapi::ApiError, Xapi::UnknownLanguage => e
halt 400, { error: e.message }.to_json
rescue Exception => e
if %w(test development).include?(ENV['RACK_ENV'].to_s)
halt 500, verbose_500(e)
end
Bugsnag.notify(e, nil, request)
halt 500, friendly_500
end
end
end
<|file_sep|>updated/v1/helpers/errors.rb |
def verbose_500(e)
{
error: e.message.squeeze("\n").split("\n"),
backtrace: e.backtrace,
}.to_json
end
def forward_errors
yield
rescue Xapi::ApiError => e
halt 400, { error: e.message }.to_json
rescue Exception => e
if %w(test development).include?(ENV['RACK_ENV'].to_s)
halt 500, verbose_500(e)
end
Bugsnag.notify(e, nil, request)
halt 500, friendly_500
end
end
end | <|file_sep|>original/v1/helpers/errors.rb
def verbose_500(e)
{
error: e.message.squeeze("\n").split("\n"),
backtrace: e.backtrace,
}.to_json
end
def forward_errors
yield
rescue Xapi::ApiError, Xapi::UnknownLanguage => e
halt 400, { error: e.message }.to_json
rescue Exception => e
if %w(test development).include?(ENV['RACK_ENV'].to_s)
halt 500, verbose_500(e)
end
Bugsnag.notify(e, nil, request)
halt 500, friendly_500
end
end
end
<|file_sep|>current/v1/helpers/errors.rb
def verbose_500(e)
{
error: e.message.squeeze("\n").split("\n"),
backtrace: e.backtrace,
}.to_json
end
def forward_errors
yield
rescue Xapi::ApiError, Xapi::UnknownLanguage => e
halt 400, { error: e.message }.to_json
rescue Exception => e
if %w(test development).include?(ENV['RACK_ENV'].to_s)
halt 500, verbose_500(e)
end
Bugsnag.notify(e, nil, request)
halt 500, friendly_500
end
end
end
<|file_sep|>updated/v1/helpers/errors.rb
def verbose_500(e)
{
error: e.message.squeeze("\n").split("\n"),
backtrace: e.backtrace,
}.to_json
end
def forward_errors
yield
rescue Xapi::ApiError => e
halt 400, { error: e.message }.to_json
rescue Exception => e
if %w(test development).include?(ENV['RACK_ENV'].to_s)
halt 500, verbose_500(e)
end
Bugsnag.notify(e, nil, request)
halt 500, friendly_500
end
end
end | fb0d4125f49761beb035bdd2cd284d304b5d41ca | v1/helpers/errors.rb | v1/helpers/errors.rb | Ruby |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.