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/src/year2011/BinaryAdder.java <|file_sep|>current/src/year2011/BinaryAdder.java <|file_sep|>updated/src/year2011/BinaryAdder.java
package year2011; import java.util.Scanner; /** * <h3>Binary Adder</h3></h3> * <p>Create an application that accepts a binary number and a decimal number as input. * Add these numbers. Display the sum as a binary number.</p> * * @author John Cameron * @see <a href="https://www.seminolestate.edu/computers/compet...
<|file_sep|>original/src/year2011/BinaryAdder.java <|file_sep|>current/src/year2011/BinaryAdder.java <|file_sep|>updated/src/year2011/BinaryAdder.java package year2011; import java.util.Scanner; /** * <h3>Binary Adder</h3></h3> * <p>Create an application that accepts a binary number and a decimal number as input....
0c42a36dfed7605905990e7d10b7610abe4a59b2
src/year2011/BinaryAdder.java
src/year2011/BinaryAdder.java
Java
<|file_sep|>original/test/cli/test_cmd_piperd.py from piper.api import api import mock class TestEntry(object): @mock.patch('piper.cli.cmd_piperd.CLIBase') def test_calls(self, clibase): self.mock = mock.Mock() cmd_piperd.entry(self.mock) clibase.assert_called_once_with( '...
def test_calls(self, clibase): self.mock = mock.Mock() cmd_piperd.entry(self.mock) clibase.assert_called_once_with( 'piperd', (api.ApiCLI,), args=self.mock ) clibase.return_value.entry.assert_called_once_with() @mock.patch('piper.cli.c...
<|file_sep|>original/test/cli/test_cmd_piperd.py from piper.api import api import mock class TestEntry(object): @mock.patch('piper.cli.cmd_piperd.CLIBase') def test_calls(self, clibase): self.mock = mock.Mock() cmd_piperd.entry(self.mock) clibase.assert_called_once_with( '...
2cd897195c545d36dbde962588e31505bb2bc556
test/cli/test_cmd_piperd.py
test/cli/test_cmd_piperd.py
Python
<|file_sep|>original/deploy.sh # Temporarily store uncommited changes git stash # Verify correct branch git checkout master # Build new files stack exec blog clean stack exec blog build # Get previous files git fetch -all git checkout -b gh-pages --track origin/gh-pages # Overwrite existing files with new files cp ...
# Temporarily store uncommited changes git stash # Verify correct branch git checkout master # Build new files stack exec blog clean stack exec blog build cp -r images _site/images cp -r fonts _site/fonts # Get previous files git fetch -all git checkout -b gh-pages --track origin/gh-pages # Overwrite existing files...
<|file_sep|>original/deploy.sh # Temporarily store uncommited changes git stash # Verify correct branch git checkout master # Build new files stack exec blog clean stack exec blog build # Get previous files git fetch -all git checkout -b gh-pages --track origin/gh-pages # Overwrite existing files with new files cp ...
01f1705970e500af00a8686a9f6f0c091c84fcdb
deploy.sh
deploy.sh
Shell
<|file_sep|>original/tasks/configure.yml --- # Manage Docker configuration - name: Generate default file become: True template: src: "{{ role_path }}/templates/default.j2" dest: "{{ docker_configuration_file_dest }}" mode: "{{ docker_configuration_file_mode }}" owner: "{{ docker_configuration_file...
- name: Generate default file become: True template: src: "{{ role_path }}/templates/default.j2" dest: "{{ docker_configuration_file_dest }}" mode: "{{ docker_configuration_file_mode }}" owner: "{{ docker_configuration_file_owner }}" group: "{{ docker_configuration_file_group }}" notify: resta...
<|file_sep|>original/tasks/configure.yml --- # Manage Docker configuration - name: Generate default file become: True template: src: "{{ role_path }}/templates/default.j2" dest: "{{ docker_configuration_file_dest }}" mode: "{{ docker_configuration_file_mode }}" owner: "{{ docker_configuration_file...
8100da0b49a77d29d519449f5dafeaf9dfc5a2ce
tasks/configure.yml
tasks/configure.yml
YAML
<|file_sep|>original/src/rules/selector-max-specificity/README.md # selector-max-specificity Limit the specificity of selectors. ```css .foo, #bar.baz span, #hoo { color: pink; } /** ↑ ↑ ↑ * Each of these selectors */ ``` The rule ignores selectors with variable interpolation (`#{$var} {}`). V...
# selector-max-specificity Limit the specificity of selectors. ```css .foo, #bar.baz span, #hoo { color: pink; } /** ↑ ↑ ↑ * Each of these selectors */ ``` The rule ignores selectors with variable interpolation (`#{$var}`, `@{var}`, `$(var)`). Visit the [Specificity Calculator](https://specifi...
<|file_sep|>original/src/rules/selector-max-specificity/README.md # selector-max-specificity Limit the specificity of selectors. ```css .foo, #bar.baz span, #hoo { color: pink; } /** ↑ ↑ ↑ * Each of these selectors */ ``` The rule ignores selectors with variable interpolation (`#{$var} {}`). V...
ecb3c68d7c7ba84e3d3211b8a40b59894eb792db
src/rules/selector-max-specificity/README.md
src/rules/selector-max-specificity/README.md
Markdown
<|file_sep|>sieve/sieve.py.diff original: updated: return list(primes(n)) def primes(n): <|file_sep|>sieve/sieve.py.diff original: return [] updated: raise StopIteration yield 2 <|file_sep|>sieve/sieve.py.diff original: prime = [2] updated: <|file_sep|>sieve/sieve.py.diff original: ...
def sieve(n): return list(primes(n)) def primes(n): if n < 2: raise StopIteration yield 2 not_prime = set() for i in range(3, n+1, 2): if i not in not_prime: not_prime.update(range(i*i, n+1, i)) yield i
<|file_sep|>sieve/sieve.py.diff original: updated: return list(primes(n)) def primes(n): <|file_sep|>sieve/sieve.py.diff original: return [] updated: raise StopIteration yield 2 <|file_sep|>sieve/sieve.py.diff original: prime = [2] updated: <|file_sep|>sieve/sieve.py.diff original: ...
c37abb2849dc3c4b885673220f9f9965109f0be6
sieve/sieve.py
sieve/sieve.py
Python
<|file_sep|>original/test_requirements.txt pytest<6 hypothesis<5.8.1 coverage==5.1 attrs==19.3.0 <|file_sep|>current/test_requirements.txt pytest<6 hypothesis<5.8.1 coverage==5.1 attrs==19.3.0 <|file_sep|>updated/test_requirements.txt
pytest<6 hypothesis<5.8.4 coverage==5.1 attrs==19.3.0
<|file_sep|>original/test_requirements.txt pytest<6 hypothesis<5.8.1 coverage==5.1 attrs==19.3.0 <|file_sep|>current/test_requirements.txt pytest<6 hypothesis<5.8.1 coverage==5.1 attrs==19.3.0 <|file_sep|>updated/test_requirements.txt pytest<6 hypothesis<5.8.4 coverage==5.1 attrs==19.3.0
3658f575d87bdf069bb42cf8a3199c5015ca7292
test_requirements.txt
test_requirements.txt
Text
<|file_sep|>original/requirements/test.txt -r ../requirements.txt ansible>=2.0.0 behave-django==0.4.0 green==2.6.0 mock==2.0.0 PyHamcrest==1.9.0 tox==2.4.1 <|file_sep|>current/requirements/test.txt -r ../requirements.txt ansible>=2.0.0 behave-django==0.4.0 green==2.6.0 mock==2.0.0 PyHamcrest==1.9.0 tox==2.4.1 <|file_se...
-r ../requirements.txt ansible>=2.0.0 behave-django==0.4.1 green==2.6.0 mock==2.0.0 PyHamcrest==1.9.0 tox==2.4.1
<|file_sep|>original/requirements/test.txt -r ../requirements.txt ansible>=2.0.0 behave-django==0.4.0 green==2.6.0 mock==2.0.0 PyHamcrest==1.9.0 tox==2.4.1 <|file_sep|>current/requirements/test.txt -r ../requirements.txt ansible>=2.0.0 behave-django==0.4.0 green==2.6.0 mock==2.0.0 PyHamcrest==1.9.0 tox==2.4.1 <|file_se...
cc5513451e218831b997636f410aff5a329cab24
requirements/test.txt
requirements/test.txt
Text
<|file_sep|>recipes/disco/build.sh.diff original: updated: $PREFIX/bin/g++ --version <|file_sep|>original/recipes/disco/build.sh if [ `uname` == Darwin ]; then if mpic++ --show | grep -q "clang++"; then # the openmpi package (and particularly the mpic++) from conda-forge is # compiled to use clang...
if [ `uname` == Darwin ]; then if mpic++ --show | grep -q "clang++"; then # the openmpi package (and particularly the mpic++) from conda-forge is # compiled to use clang++ (despl) # and the current package need an openmpi version based on gcc to use the # -fopenmpi version ...
<|file_sep|>recipes/disco/build.sh.diff original: updated: $PREFIX/bin/g++ --version <|file_sep|>original/recipes/disco/build.sh if [ `uname` == Darwin ]; then if mpic++ --show | grep -q "clang++"; then # the openmpi package (and particularly the mpic++) from conda-forge is # compiled to use clang...
026f2d2fd54c4d462c2225fbafd948b20eadec33
recipes/disco/build.sh
recipes/disco/build.sh
Shell
<|file_sep|>original/gradle.properties # Project-wide Gradle settings. # IDE (e.g. Android Studio) users: # Gradle settings configured through the IDE *will override* # any settings specified in this file. # For more details on how to configure your build environment visit # http://www.gradle.org/docs/current/usergui...
# Project-wide Gradle settings. # IDE (e.g. Android Studio) users: # Gradle settings configured through the IDE *will override* # any settings specified in this file. # For more details on how to configure your build environment visit # http://www.gradle.org/docs/current/userguide/build_environment.html # Specifies ...
<|file_sep|>original/gradle.properties # Project-wide Gradle settings. # IDE (e.g. Android Studio) users: # Gradle settings configured through the IDE *will override* # any settings specified in this file. # For more details on how to configure your build environment visit # http://www.gradle.org/docs/current/usergui...
f114f6af8f205a856a9d21b6e53a68a695187481
gradle.properties
gradle.properties
INI
<|file_sep|>original/articles/_posts/2009-03-27-introduction-to-hcard-part-2-styling.md --- title: 'Introduction to hCard — Part 2: Styling hCards' authors: - christopher-schmitt layout: article --- <|file_sep|>current/articles/_posts/2009-03-27-introduction-to-hcard-part-2-styling.md --- title: 'Introduction to hCard ...
--- title: 'Introduction to hCard — Part 2: Styling hCards' authors: - christopher-schmitt intro: 'In this article, Christopher Schmitt follows up his hCard introduction by showing us how add some style to hCards, to make them fit nicely into a page design.' layout: article ---
<|file_sep|>original/articles/_posts/2009-03-27-introduction-to-hcard-part-2-styling.md --- title: 'Introduction to hCard — Part 2: Styling hCards' authors: - christopher-schmitt layout: article --- <|file_sep|>current/articles/_posts/2009-03-27-introduction-to-hcard-part-2-styling.md --- title: 'Introduction to hCard ...
7af9ffdcb319a47c222420e6e568ac3f43509132
articles/_posts/2009-03-27-introduction-to-hcard-part-2-styling.md
articles/_posts/2009-03-27-introduction-to-hcard-part-2-styling.md
Markdown
<|file_sep|>original/docs/pages/keyconcepts/modes/modes.rst .. _modes: Hoverfly modes ============== Hoverfly has five different modes. It can only run in one mode at any one time. .. toctree:: capture simulate spy synthesize modify <|file_sep|>current/docs/pages/keyconcepts/modes/modes.rst .. _...
.. _modes: Hoverfly modes ============== Hoverfly has five different modes. It can only run in one mode at any one time. .. toctree:: capture simulate spy synthesize modify diff
<|file_sep|>original/docs/pages/keyconcepts/modes/modes.rst .. _modes: Hoverfly modes ============== Hoverfly has five different modes. It can only run in one mode at any one time. .. toctree:: capture simulate spy synthesize modify <|file_sep|>current/docs/pages/keyconcepts/modes/modes.rst .. _...
b1abb3700a29fbfce614e439b7cf5beab4bf0668
docs/pages/keyconcepts/modes/modes.rst
docs/pages/keyconcepts/modes/modes.rst
reStructuredText
<|file_sep|>base_solver.py.diff original: updated: class RunSolverFirst(Exception): pass <|file_sep|>original/base_solver.py def run_search(self): # dummy - this is where one should implement the algorithm pass def get_summary(self): if self.best_solution is None: ret...
finish_time = datetime.now() self.search_time = finish_time - start_time def run_search(self): # dummy - this is where one should implement the algorithm pass def get_summary(self): if self.best_solution is None: raise RunSolverFirst(u'Run the solver first'...
<|file_sep|>base_solver.py.diff original: updated: class RunSolverFirst(Exception): pass <|file_sep|>original/base_solver.py def run_search(self): # dummy - this is where one should implement the algorithm pass def get_summary(self): if self.best_solution is None: ret...
0a5e4194fe06b20b4eaacaa9452403f70076ccd3
base_solver.py
base_solver.py
Python
<|file_sep|>src/lib.rs.diff original: updated: pub fn roll_dice(r: &str) -> i32 { let mut parser = Rdp::new(StringInput::new(r)); parser.expression(); parser.compute() } <|file_sep|>src/lib.rs.diff original: let mut parser = Rdp::new(StringInput::new(roll)); parser.expression(); update...
impl<'a> Roller<'a> { fn new(roll: &str) -> Roller { Roller{ roll: roll, total: roll_dice(roll) } } fn reroll(&mut self) -> i32 { self.total = roll_dice(self.roll); self.total } fn total(&self) -> i32 { self.total } ...
<|file_sep|>src/lib.rs.diff original: updated: pub fn roll_dice(r: &str) -> i32 { let mut parser = Rdp::new(StringInput::new(r)); parser.expression(); parser.compute() } <|file_sep|>src/lib.rs.diff original: let mut parser = Rdp::new(StringInput::new(roll)); parser.expression(); update...
7df8065dc720da437cc8744b4753ffe1e37220ed
src/lib.rs
src/lib.rs
Rust
<|file_sep|>packages/un/union-angle.yaml.diff original: hash: 0e4425bf99262b46958a599f96fa9060071d98695b218e059653c766de7d61ef updated: hash: 1aad0108ec091196e0aeb1ba75a31bdeb8d0b8c5dbdb5656e7b5e17349c2bfc0 <|file_sep|>packages/un/union-angle.yaml.diff original: updated: - 0.1.0.1 <|file_sep|>original/packages/un/unio...
changelog: | # Changelog for union-angle ## Unreleased changes basic-deps: base: '>=4.7 && <5' all-versions: - 0.1.0.0 - 0.1.0.1 author: Yoshikuni Jujo latest: 0.1.0.1 description-type: markdown description: | # union-angle Union type that include radian angle and degree angle. ``` > a = Radian pi > ...
<|file_sep|>packages/un/union-angle.yaml.diff original: hash: 0e4425bf99262b46958a599f96fa9060071d98695b218e059653c766de7d61ef updated: hash: 1aad0108ec091196e0aeb1ba75a31bdeb8d0b8c5dbdb5656e7b5e17349c2bfc0 <|file_sep|>packages/un/union-angle.yaml.diff original: updated: - 0.1.0.1 <|file_sep|>original/packages/un/unio...
395e9c6ac6fb72bd8d3c85598a06e6a46958ced7
packages/un/union-angle.yaml
packages/un/union-angle.yaml
YAML
<|file_sep|>original/tests/src/SentenceBreakerPerformanceTest.php <|file_sep|>current/tests/src/SentenceBreakerPerformanceTest.php <|file_sep|>updated/tests/src/SentenceBreakerPerformanceTest.php
<?php declare(strict_types=1); namespace Bigwhoop\SentenceBreaker\Tests; use Bigwhoop\SentenceBreaker\SentenceBreaker; use PHPUnit\Framework\TestCase; class SentenceBreakerPerformanceTest extends TestCase { private const MAX_SENTENCES = 1000; private const SENTENCES = [ 'Doctor, as a title, origina...
<|file_sep|>original/tests/src/SentenceBreakerPerformanceTest.php <|file_sep|>current/tests/src/SentenceBreakerPerformanceTest.php <|file_sep|>updated/tests/src/SentenceBreakerPerformanceTest.php <?php declare(strict_types=1); namespace Bigwhoop\SentenceBreaker\Tests; use Bigwhoop\SentenceBreaker\SentenceBreaker; ...
57a623c5583198f3c8c45050277ddf79f96f7b9c
tests/src/SentenceBreakerPerformanceTest.php
tests/src/SentenceBreakerPerformanceTest.php
PHP
<|file_sep|>run.py.diff original: updated: <|file_sep|>run.py.diff original: updated: <|file_sep|>run.py.diff original: updated: <|file_sep|>original/run.py salt = 'cookie-session' serializer = TaggedJSONSerializer() signer_kwargs = { 'key_derivation': 'hmac', ...
salt = 'cookie-session' serializer = TaggedJSONSerializer() signer_kwargs = { 'key_derivation': 'hmac', 'digest_method': hashlib.sha1 } s = URLSafeTimedSerializer(secret_key, salt=salt, serializer=serializer, signer_kwargs=signer_kwargs) return s.l...
<|file_sep|>run.py.diff original: updated: <|file_sep|>run.py.diff original: updated: <|file_sep|>run.py.diff original: updated: <|file_sep|>original/run.py salt = 'cookie-session' serializer = TaggedJSONSerializer() signer_kwargs = { 'key_derivation': 'hmac', ...
25e35b650d55e71b3af5b7725cdb8318a15137a2
run.py
run.py
Python
<|file_sep|>original/locale/flarum-markdown.yml <|file_sep|>current/locale/flarum-markdown.yml <|file_sep|>updated/locale/flarum-markdown.yml
flarum-markdown: ## # UNIQUE KEYS - The following keys are used in only one location each. ## # Translations in this namespace are used by the forum user interface. forum: # These translations are used by the composer (emoji autocompletion function). composer: bold_tooltip: Add bold text ...
<|file_sep|>original/locale/flarum-markdown.yml <|file_sep|>current/locale/flarum-markdown.yml <|file_sep|>updated/locale/flarum-markdown.yml flarum-markdown: ## # UNIQUE KEYS - The following keys are used in only one location each. ## # Translations in this namespace are used by the forum user interface. ...
422bd71f74996c88e3128fcdd26f660d6f05baf2
locale/flarum-markdown.yml
locale/flarum-markdown.yml
YAML
<|file_sep|>original/chipy_org/settings_test.py # pylint: disable=unused-wildcard-import,wildcard-import from .settings import * DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:", "TEST": {}}} DEBUG = True ADMINS = ["admin@chipy.org"] EMAIL_BACKEND = "django.core.mail.backends.console...
# pylint: disable=unused-wildcard-import,wildcard-import from .settings import * DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:", "TEST": {}}} DEBUG = True ADMINS = ["admin@chipy.org"] EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend" ENVELOPE_EMAIL_RECIPIENTS = [ ...
<|file_sep|>original/chipy_org/settings_test.py # pylint: disable=unused-wildcard-import,wildcard-import from .settings import * DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:", "TEST": {}}} DEBUG = True ADMINS = ["admin@chipy.org"] EMAIL_BACKEND = "django.core.mail.backends.console...
badfa5c7c0572e36a94598ec6cc8a845e453d233
chipy_org/settings_test.py
chipy_org/settings_test.py
Python
<|file_sep|>original/terminal/bash/functions/deploy-exclusions.txt config.codekit .codekit-cache .DS_Store .env .git .sass-cache <|file_sep|>current/terminal/bash/functions/deploy-exclusions.txt config.codekit .codekit-cache .DS_Store .env .git .sass-cache <|file_sep|>updated/terminal/bash/functions/deploy-exclusions.t...
config.codekit .codekit-cache .DS_Store .env .git .gitignore .sass-cache
<|file_sep|>original/terminal/bash/functions/deploy-exclusions.txt config.codekit .codekit-cache .DS_Store .env .git .sass-cache <|file_sep|>current/terminal/bash/functions/deploy-exclusions.txt config.codekit .codekit-cache .DS_Store .env .git .sass-cache <|file_sep|>updated/terminal/bash/functions/deploy-exclusions.t...
68fe98fad7c58260bfc4860da3def794b7ffa2ca
terminal/bash/functions/deploy-exclusions.txt
terminal/bash/functions/deploy-exclusions.txt
Text
<|file_sep|>original/doc/README.md ## The GitLab Documentation covers the following subjects + [API](api/README.md) + [Development](development/README.md) + [Install](install/README.md) + [Integration](external-issue-tracker/README.md) + [Legal](legal/README.md) + [Markdown](markdown/markdown.md) + [Permissions](permi...
## The GitLab Documentation covers the following subjects + [API](api/README.md) + [Development](development/README.md) + [Install](install/README.md) + [Integration](integration/external-issue-tracker.md) + [Legal](legal/README.md) + [Markdown](markdown/markdown.md) + [Permissions](permissions/permissions.md) + [Publ...
<|file_sep|>original/doc/README.md ## The GitLab Documentation covers the following subjects + [API](api/README.md) + [Development](development/README.md) + [Install](install/README.md) + [Integration](external-issue-tracker/README.md) + [Legal](legal/README.md) + [Markdown](markdown/markdown.md) + [Permissions](permi...
8da35fe26ecda1a984fbf2c1a5ab8bf4c1d25bee
doc/README.md
doc/README.md
Markdown
<|file_sep|>spec/helpers/attributes_spec.rb.diff original: updated: require 'serverspec/helper/base' <|file_sep|>original/spec/helpers/attributes_spec.rb require 'spec_helper' include Serverspec::Helper::Attributes describe 'Attributes Helper' do before :all do attr_set :role => 'proxy' end subject { attr ...
require 'spec_helper' require 'serverspec/helper/base' include Serverspec::Helper::Base include Serverspec::Helper::Attributes describe 'Attributes Helper' do before :all do attr_set :role => 'proxy' end subject { attr } it { should include :role => 'proxy' } end
<|file_sep|>spec/helpers/attributes_spec.rb.diff original: updated: require 'serverspec/helper/base' <|file_sep|>original/spec/helpers/attributes_spec.rb require 'spec_helper' include Serverspec::Helper::Attributes describe 'Attributes Helper' do before :all do attr_set :role => 'proxy' end subject { attr ...
13476fd059e79bbb56de0c09844ad40b0a006db0
spec/helpers/attributes_spec.rb
spec/helpers/attributes_spec.rb
Ruby
<|file_sep|>boot/redis.js.diff original: var client, url, port, host, db, pass; updated: var client, url, port, host, db, auth, options; <|file_sep|>original/boot/redis.js try { url = URL.parse(config && config.url || process.env.REDIS_PORT || 'redis://localhost:6379'); port = url.port; ...
try { url = URL.parse(config && config.url || process.env.REDIS_PORT || 'redis://localhost:6379'); port = url.port; host = url.hostname; db = config.db; auth = config && config.auth; options = { no_ready_check: true }; client = redis.creat...
<|file_sep|>boot/redis.js.diff original: var client, url, port, host, db, pass; updated: var client, url, port, host, db, auth, options; <|file_sep|>original/boot/redis.js try { url = URL.parse(config && config.url || process.env.REDIS_PORT || 'redis://localhost:6379'); port = url.port; ...
9553367d007ad813bf42051af94bc671619fc308
boot/redis.js
boot/redis.js
JavaScript
<|file_sep|>python/ql/test/experimental/query-tests/Security/CWE-079/sendgrid_via_mail_send_post_request_body_bad.py.diff original: # This tests that the developer doesn't pass tainted user data into the mail.send.post() method in the SendGrid library. updated: <|file_sep|>python/ql/test/experimental/query-tests/Secur...
"text": "Thanks,/n The SendGrid Team" }, }, "reply_to": { "email": "sam.smith@example.com", "name": "Sam Smith" }, "send_at": 1409348513, "subject": "Hello, World!", "template_id": "[YOUR TEMPLATE ID GOES HERE]", ...
<|file_sep|>python/ql/test/experimental/query-tests/Security/CWE-079/sendgrid_via_mail_send_post_request_body_bad.py.diff original: # This tests that the developer doesn't pass tainted user data into the mail.send.post() method in the SendGrid library. updated: <|file_sep|>python/ql/test/experimental/query-tests/Secur...
f4a73fcc591d877003e9963f087d2473568bfa9d
python/ql/test/experimental/query-tests/Security/CWE-079/sendgrid_via_mail_send_post_request_body_bad.py
python/ql/test/experimental/query-tests/Security/CWE-079/sendgrid_via_mail_send_post_request_body_bad.py
Python
<|file_sep|>original/app.yml application: tumblr-likes version: beta-001 runtime: python27 api_version: 1 threadsafe: true handlers: - url: /css static_dir: css - url: /js static_dir: js - url: /.* script: tumblrlikes.application libraries: - name: webapp2 version: latest - name: jinja2 version: latest <|fi...
application: tumblr-likes version: beta-001 runtime: python27 api_version: 1 threadsafe: true handlers: - url: /css static_dir: css - url: /js static_dir: js - url: /images static_dir: images - url: /.* script: tumblrlikes.application libraries: - name: webapp2 version: latest - name: jinja2 version: late...
<|file_sep|>original/app.yml application: tumblr-likes version: beta-001 runtime: python27 api_version: 1 threadsafe: true handlers: - url: /css static_dir: css - url: /js static_dir: js - url: /.* script: tumblrlikes.application libraries: - name: webapp2 version: latest - name: jinja2 version: latest <|fi...
b0d7245ade26eee9cf80c50d6d0ba4e0b33549be
app.yml
app.yml
YAML
<|file_sep|>original/app/assets/javascripts/controllers/overlays/message_overlay_controller.js.coffee _clearNewMessage: -> @set('newCommentBody', "") commentSort: ['createdAt:asc'] sortedComments: Ember.computed.sort('comments', 'commentSort') actions: clearMessageContent: -> @_clearNewMessage(...
_clearNewMessage: -> @set('newCommentBody', "") commentSort: ['createdAt:asc'] sortedComments: Ember.computed.sort('comments', 'commentSort') actions: clearMessageContent: -> @_clearNewMessage() postComment: -> commenter = @get('currentUser') commentFields = commenter: c...
<|file_sep|>original/app/assets/javascripts/controllers/overlays/message_overlay_controller.js.coffee _clearNewMessage: -> @set('newCommentBody', "") commentSort: ['createdAt:asc'] sortedComments: Ember.computed.sort('comments', 'commentSort') actions: clearMessageContent: -> @_clearNewMessage(...
ac8aa8ce9f77ddb0d3e30ad4ab8a1d7e1ae49f2c
app/assets/javascripts/controllers/overlays/message_overlay_controller.js.coffee
app/assets/javascripts/controllers/overlays/message_overlay_controller.js.coffee
CoffeeScript
<|file_sep|>original/circle.yml <|file_sep|>current/circle.yml <|file_sep|>updated/circle.yml
general: artifacts: - ./coverage machine: node: version: v6.2.2 services: - docker environment: DB_NAME: circle_test DB_USER: ubuntu DB_HOST: localhost test: pre: - npm install post: - npm run coverage
<|file_sep|>original/circle.yml <|file_sep|>current/circle.yml <|file_sep|>updated/circle.yml general: artifacts: - ./coverage machine: node: version: v6.2.2 services: - docker environment: DB_NAME: circle_test DB_USER: ubuntu DB_HOST: localhost test: pre: - npm install post: ...
4cd3acec3e8989bb67a7ae49ea236169c3af7b80
circle.yml
circle.yml
YAML
<|file_sep|>original/README.md Ubuntu/Debian: ``` apt-get install libsdl2-2.0-0 libsdl2-image-2.0-0 libsdl2-ttf-2.0-0 ``` Archlinux: ``` pacman -S sdl2 sdl2_image sdl2_ttf ``` Extract the .zip archive which contains this file. Launch the game by executing `apocalypse-post`. Configure graphics scaling in `user/config...
``` Archlinux: ``` pacman -S sdl2 sdl2_image sdl2_ttf ``` Extract the .zip archive which contains this file. Launch the game by executing `apocalypse-post`. Configure graphics scaling in `user/config.toml`. ## macOS Drag the ApocalypsePost app into your `Applications` folder or elsewhere before running. To configu...
<|file_sep|>original/README.md Ubuntu/Debian: ``` apt-get install libsdl2-2.0-0 libsdl2-image-2.0-0 libsdl2-ttf-2.0-0 ``` Archlinux: ``` pacman -S sdl2 sdl2_image sdl2_ttf ``` Extract the .zip archive which contains this file. Launch the game by executing `apocalypse-post`. Configure graphics scaling in `user/config...
3f3a690e2f28d1af3b3f9c08756b5ac2ecc4b44a
README.md
README.md
Markdown
<|file_sep|>original/requirements/perftests.txt # Required by locust, not using hashes for now. We'll use them once we can # use a tagged locust release pyzmq==18.0.1 # We need this specific commit until there is a new locust release. Once this happens # This can be pinned to a specific version. -e git+https://github....
# Required by locust, not using hashes for now. We'll use them once we can # use a tagged locust release pyzmq==18.0.2 # We need this specific commit until there is a new locust release. Once this happens # This can be pinned to a specific version. -e git+https://github.com/locustio/locust@524ab5203ebc7c4c5c108b641773...
<|file_sep|>original/requirements/perftests.txt # Required by locust, not using hashes for now. We'll use them once we can # use a tagged locust release pyzmq==18.0.1 # We need this specific commit until there is a new locust release. Once this happens # This can be pinned to a specific version. -e git+https://github....
ade0f6d265fc1c1ef139861a0d3355f85810aa7b
requirements/perftests.txt
requirements/perftests.txt
Text
<|file_sep|>original/spec/spec_helper.rb require 'rubygems' require 'puppetlabs_spec_helper/module_spec_helper' <|file_sep|>current/spec/spec_helper.rb require 'rubygems' require 'puppetlabs_spec_helper/module_spec_helper' <|file_sep|>updated/spec/spec_helper.rb
require 'rubygems' require 'puppetlabs_spec_helper/module_spec_helper' class Object alias :must :should alias :must_not :should_not end
<|file_sep|>original/spec/spec_helper.rb require 'rubygems' require 'puppetlabs_spec_helper/module_spec_helper' <|file_sep|>current/spec/spec_helper.rb require 'rubygems' require 'puppetlabs_spec_helper/module_spec_helper' <|file_sep|>updated/spec/spec_helper.rb require 'rubygems' require 'puppetlabs_spec_helper/module...
47c16c65aae3806ac97533cbbd3314ab07d850d2
spec/spec_helper.rb
spec/spec_helper.rb
Ruby
<|file_sep|>test/_common.py.diff original: updated: import sys <|file_sep|>test/_common.py.diff original: def print_test_result(expected, actual): updated: def print_test_result(expected, actual, error=None): <|file_sep|>original/test/_common.py # encoding: utf-8 ''' .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.homba...
# encoding: utf-8 ''' .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> ''' from __future__ import absolute_import, print_function, unicode_literals import sys def print_test_result(expected, actual, error=None): print("[expected]\n{}\n".format(expected)) print("[actual]\n{}\n".format(actual)...
<|file_sep|>test/_common.py.diff original: updated: import sys <|file_sep|>test/_common.py.diff original: def print_test_result(expected, actual): updated: def print_test_result(expected, actual, error=None): <|file_sep|>original/test/_common.py # encoding: utf-8 ''' .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.homba...
7ee2ea4f3034a6bfc4bcfb78b7c2cc1e3887fb55
test/_common.py
test/_common.py
Python
<|file_sep|>original/algorithms/warmup/SherlockAndGCD.scala <|file_sep|>current/algorithms/warmup/SherlockAndGCD.scala <|file_sep|>updated/algorithms/warmup/SherlockAndGCD.scala
object Solution { def gcd(a: Int, b: Int): Int = if (b == 0) a else gcd(b, a % b) def existsSubsets(arr: Array[Int]): Boolean = { val n = arr.size for { i <- 0 until n j <- i + 1 until n if arr(i) != arr(j) } { if (gcd(arr(i), arr(j)) == 1) return true } if (n == 1 &...
<|file_sep|>original/algorithms/warmup/SherlockAndGCD.scala <|file_sep|>current/algorithms/warmup/SherlockAndGCD.scala <|file_sep|>updated/algorithms/warmup/SherlockAndGCD.scala object Solution { def gcd(a: Int, b: Int): Int = if (b == 0) a else gcd(b, a % b) def existsSubsets(arr: Array[Int]): Boolean = { ...
184f2ddf3c701db34fad920d1c4d793f5fb2bee8
algorithms/warmup/SherlockAndGCD.scala
algorithms/warmup/SherlockAndGCD.scala
Scala
<|file_sep|>original/resharper/resharper-yaml/test/src/Psi/Parsing/ParserTestBase.cs <|file_sep|>current/resharper/resharper-yaml/test/src/Psi/Parsing/ParserTestBase.cs <|file_sep|>updated/resharper/resharper-yaml/test/src/Psi/Parsing/ParserTestBase.cs
using System; using System.Linq; using JetBrains.Annotations; using JetBrains.Application.Components; using JetBrains.ProjectModel; using JetBrains.ReSharper.Psi; using JetBrains.ReSharper.Psi.ExtensionsAPI; using JetBrains.ReSharper.Psi.ExtensionsAPI.Tree; using JetBrains.ReSharper.Psi.Files; using JetBrains.ReSharper...
<|file_sep|>original/resharper/resharper-yaml/test/src/Psi/Parsing/ParserTestBase.cs <|file_sep|>current/resharper/resharper-yaml/test/src/Psi/Parsing/ParserTestBase.cs <|file_sep|>updated/resharper/resharper-yaml/test/src/Psi/Parsing/ParserTestBase.cs using System; using System.Linq; using JetBrains.Annotations; usi...
95456b26fbf03635091ef55ec8cc71ea0ed8b593
resharper/resharper-yaml/test/src/Psi/Parsing/ParserTestBase.cs
resharper/resharper-yaml/test/src/Psi/Parsing/ParserTestBase.cs
C#
<|file_sep|>original/build.sbt import Dependencies._ lazy val root = (project in file(".")). settings( inThisBuild(List( organization := "com.example", scalaVersion := "2.12.1", version := "0.1.0-SNAPSHOT" )), name := "Hello", libraryDependencies += scalaTest % Test ) <|file_...
name := "Voting Application" version := "0.1.0-SNAPSHOT" scalaVersion := "2.11.8" libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.1" % Test // configuration of the main project lazy val root = (project in file(".")).enablePlugins(PlayScala)
<|file_sep|>original/build.sbt import Dependencies._ lazy val root = (project in file(".")). settings( inThisBuild(List( organization := "com.example", scalaVersion := "2.12.1", version := "0.1.0-SNAPSHOT" )), name := "Hello", libraryDependencies += scalaTest % Test ) <|file_...
d0c844aca7e34f9baf5982fd2f0911ced4a93369
build.sbt
build.sbt
Scala
<|file_sep|>original/Animable.js this.last = from; // :int this.start = Date.now(); // :long this.time = time; // :int this.update = update; // :function } // function next(long now):void Animation.prototype.next = function(now) { var n = (now - this.start) / this.time * this.diff + this.from; ...
var n = (now - this.start) / this.time * this.diff + this.from; if(n !== this.last) { this.last = n; this.update(n); } }; var animations = []; // :Array<Animation> var next = function() { newFrame(next); for(var i = 0; i < animations.length; ++i) { animations[i]....
<|file_sep|>original/Animable.js this.last = from; // :int this.start = Date.now(); // :long this.time = time; // :int this.update = update; // :function } // function next(long now):void Animation.prototype.next = function(now) { var n = (now - this.start) / this.time * this.diff + this.from; ...
6578f709efd78252e6cf444979979d5423f26592
Animable.js
Animable.js
JavaScript
<|file_sep|>original/s3-authorize.gemspec require 's3/authorize/version' Gem::Specification.new do |spec| spec.name = "s3-authorize" spec.version = S3::Authorize::VERSION spec.authors = ["Vinh Nguyen"] spec.email = ["vinh.nglx@gmail.com"] spec.summary = %q{Generate Signatu...
require 's3/authorize/version' Gem::Specification.new do |spec| spec.name = "s3-authorize" spec.version = S3::Authorize::VERSION spec.authors = ["Vinh Nguyen"] spec.email = ["vinh.nglx@gmail.com"] spec.summary = %q{Generate Signature and Policy for upload any files to S3.}...
<|file_sep|>original/s3-authorize.gemspec require 's3/authorize/version' Gem::Specification.new do |spec| spec.name = "s3-authorize" spec.version = S3::Authorize::VERSION spec.authors = ["Vinh Nguyen"] spec.email = ["vinh.nglx@gmail.com"] spec.summary = %q{Generate Signatu...
0b24bfbf4923ccef499f5b50e19d373910a4b154
s3-authorize.gemspec
s3-authorize.gemspec
Ruby
<|file_sep|>src/main/web/templates/handlebars/highcharts/config/confidence-interval-chart-config.handlebars.diff original: ] , updated: ], <|file_sep|>original/src/main/web/templates/handlebars/highcharts/config/confidence-interval-chart-config.handlebars {{/if}} data: [{{#each data}} {{#if_eq highlight ...
{{/if}} data: [{{#each data}} {{#if_eq highlight (lookup categories @index)}} {color:HIGHLIGHT_COLOUR,y:{{num (lookup this headers.1)}} }, {{else}} {{num (lookup this headers.1)}}, {{/if_eq}} {{/each}} ], tooltip: { headerFormat: '<span style="font-weight: bold;">{series.name}</span>...
<|file_sep|>src/main/web/templates/handlebars/highcharts/config/confidence-interval-chart-config.handlebars.diff original: ] , updated: ], <|file_sep|>original/src/main/web/templates/handlebars/highcharts/config/confidence-interval-chart-config.handlebars {{/if}} data: [{{#each data}} {{#if_eq highlight ...
abe72dbb2cf85fdea654da8f83d5f2f137d0e1ab
src/main/web/templates/handlebars/highcharts/config/confidence-interval-chart-config.handlebars
src/main/web/templates/handlebars/highcharts/config/confidence-interval-chart-config.handlebars
Handlebars
<|file_sep|>original/src/main/java/net/rebworks/lunchy/domain/places/BangkokKitchen.java private final UriInfo uriInfo; @Inject public BangkokKitchen(@Context final UriInfo uriInfo) { this.uriInfo = uriInfo; } @Override public String getName() { return NAME; } @Overri...
private final UriInfo uriInfo; @Inject public BangkokKitchen(@Context final UriInfo uriInfo) { this.uriInfo = uriInfo; } @Override public String getName() { return "Bangkok Kitchen"; } @Override public SortedSet<String> getAliases() { return ALIASES; }...
<|file_sep|>original/src/main/java/net/rebworks/lunchy/domain/places/BangkokKitchen.java private final UriInfo uriInfo; @Inject public BangkokKitchen(@Context final UriInfo uriInfo) { this.uriInfo = uriInfo; } @Override public String getName() { return NAME; } @Overri...
3e76650544eccbf7c4365461b8c936a7af78167b
src/main/java/net/rebworks/lunchy/domain/places/BangkokKitchen.java
src/main/java/net/rebworks/lunchy/domain/places/BangkokKitchen.java
Java
<|file_sep|>original/whatismyip.py #! /usr/bin/python import requests from bs4 import BeautifulSoup def main(): r = requests.get('http://www.whatismyip.com') soup = BeautifulSoup(r.text) ip_address = '' for span in soup.find('div', 'the-ip'): ip_address += span.text print(ip_address) ...
#! /usr/bin/python import requests from bs4 import BeautifulSoup def main(): r = requests.get('http://www.whatismyip.com') soup = BeautifulSoup(r.text, 'lxml') ip_address = '' for span in soup.find('div', 'the-ip'): ip_address += span.text print(ip_address) if __name__ == '__main__'...
<|file_sep|>original/whatismyip.py #! /usr/bin/python import requests from bs4 import BeautifulSoup def main(): r = requests.get('http://www.whatismyip.com') soup = BeautifulSoup(r.text) ip_address = '' for span in soup.find('div', 'the-ip'): ip_address += span.text print(ip_address) ...
62d5682fa3be9dfbae80b2acae9839cd1278dcb6
whatismyip.py
whatismyip.py
Python
<|file_sep|>original/.travis.yml --- os: linux dist: xenial language: ruby cache: bundler rvm: - 2.7.1 - 2.6.6 - 2.5.8 - ruby-head gemfile: - gemfiles/rails_5.1.7.gemfile - gemfiles/rails_5.2.4.gemfile - gemfiles/rails_6.0.3.gemfile before_script: - curl -L https://codeclimate.com/downloads/test-repo...
--- os: linux dist: focal language: ruby cache: bundler rvm: - 2.7.1 - 2.6.6 - 2.5.8 - ruby-head gemfile: - gemfiles/rails_5.1.7.gemfile - gemfiles/rails_5.2.4.gemfile - gemfiles/rails_6.0.3.gemfile before_script: - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-am...
<|file_sep|>original/.travis.yml --- os: linux dist: xenial language: ruby cache: bundler rvm: - 2.7.1 - 2.6.6 - 2.5.8 - ruby-head gemfile: - gemfiles/rails_5.1.7.gemfile - gemfiles/rails_5.2.4.gemfile - gemfiles/rails_6.0.3.gemfile before_script: - curl -L https://codeclimate.com/downloads/test-repo...
4b71b354e09170f6b9dfc75c5deb71f21819a590
.travis.yml
.travis.yml
YAML
<|file_sep|>original/emacs/.emacs.d/packages/python.el (use-package pyenv-mode :init :ensure t :config (pyenv-mode) (setenv "WORKON_HOME" "~/.pyenv/versions/") (add-to-list 'exec-path "~/.pyenv/shims") (add-hook 'projectile-switch-project-hook 'projectile-pyenv-mode-set) (add-hook 'python-mode-hook 'pyen...
(use-package pyenv-mode :init :ensure t :config (pyenv-mode) (setenv "WORKON_HOME" "~/.pyenv/versions/") (add-to-list 'exec-path "~/.pyenv/shims") (add-hook 'projectile-switch-project-hook 'projectile-pyenv-mode-set) (add-hook 'python-mode-hook 'pyenv-mode)) (use-package pyenv-mode-auto :ensure t) (u...
<|file_sep|>original/emacs/.emacs.d/packages/python.el (use-package pyenv-mode :init :ensure t :config (pyenv-mode) (setenv "WORKON_HOME" "~/.pyenv/versions/") (add-to-list 'exec-path "~/.pyenv/shims") (add-hook 'projectile-switch-project-hook 'projectile-pyenv-mode-set) (add-hook 'python-mode-hook 'pyen...
8b9d03c0f0fdccda8df9168aabe281166511440d
emacs/.emacs.d/packages/python.el
emacs/.emacs.d/packages/python.el
Emacs Lisp
<|file_sep|>src/main/java/org/squiddev/cctweaks/lua/patch/Computer_Patch.java.diff original: updated: public boolean isMostlyOn() { synchronized (this) { return m_state != State.Off && m_machine != null; } } <|file_sep|>src/main/java/org/squiddev/cctweaks/lua/patch/Computer_Patch.java.diff original: private...
m_machine.softAbort("Too long without yielding"); } } } } public boolean isMostlyOn() { synchronized (this) { return m_state != State.Off && m_machine != null; } } @MergeVisitor.Stub private enum State { Off, Starting, Running, Stopping, } }
<|file_sep|>src/main/java/org/squiddev/cctweaks/lua/patch/Computer_Patch.java.diff original: updated: public boolean isMostlyOn() { synchronized (this) { return m_state != State.Off && m_machine != null; } } <|file_sep|>src/main/java/org/squiddev/cctweaks/lua/patch/Computer_Patch.java.diff original: private...
7faaa4b6d38e780f05cf06258712263a955c269d
src/main/java/org/squiddev/cctweaks/lua/patch/Computer_Patch.java
src/main/java/org/squiddev/cctweaks/lua/patch/Computer_Patch.java
Java
<|file_sep|>lib/github_cli/cli.rb.diff original: updated: include Thor::Actions def initialize(*args) super say <<-TEXT Github CLI client TEXT the_shell = (options["no-color"] ? Thor::Shell::Basic.new : shell) GithubCLI.ui = UI.new(the_shell) GithubCLi.ui.debug! if option...
:desc => 'Authentication token.', :banner => 'Set authentication token' class_option "no-color", :type => :boolean, :banner => "Disable colorization in output." class_option :verbose, :type => :boolean, :banner => "Enable verbose output mode." ...
<|file_sep|>lib/github_cli/cli.rb.diff original: updated: include Thor::Actions def initialize(*args) super say <<-TEXT Github CLI client TEXT the_shell = (options["no-color"] ? Thor::Shell::Basic.new : shell) GithubCLI.ui = UI.new(the_shell) GithubCLi.ui.debug! if option...
5cc6c7ffc69f137e31c7f2fcd482a0c2198416bc
lib/github_cli/cli.rb
lib/github_cli/cli.rb
Ruby
<|file_sep|>original/test/integration/feature_test.rb describe 'Feature Integration' do before do clear_emails visit root_path fill_in 'email', with: 'test@email.com' click_on 'Send email' open_email('test@email.com') # sets current_email end it 'logs in a user when provided an email' do ...
visit root_path fill_in 'email', with: 'test@email.com' click_on 'Send email' open_email('test@email.com') # sets current_email end it 'logs in a user when provided an email' do current_email.first(:link).click page.must_have_content 'success' end it 'only works once' do current_e...
<|file_sep|>original/test/integration/feature_test.rb describe 'Feature Integration' do before do clear_emails visit root_path fill_in 'email', with: 'test@email.com' click_on 'Send email' open_email('test@email.com') # sets current_email end it 'logs in a user when provided an email' do ...
e4a300e1d8fde9df2e5ccb8baef49c64adc3bcf6
test/integration/feature_test.rb
test/integration/feature_test.rb
Ruby
<|file_sep|>original/.travis.yml include: - php: 5.3 dist: precise - php: 5.5 dist: precise - php: 5.6 - php: 7 - php: 7.1 - php: 7.2 - php: 7.3 sudo: false cache: directories: - $HOME/.composer/cache before_script: - composer install script: <|file_sep|>current/.tr...
include: - php: 5.3 dist: precise - php: 5.5 dist: precise - php: 5.6 - php: 7 - php: 7.1 - php: 7.2 - php: 7.3 - php: 7.4 sudo: false cache: directories: - $HOME/.composer/cache before_script: - composer install
<|file_sep|>original/.travis.yml include: - php: 5.3 dist: precise - php: 5.5 dist: precise - php: 5.6 - php: 7 - php: 7.1 - php: 7.2 - php: 7.3 sudo: false cache: directories: - $HOME/.composer/cache before_script: - composer install script: <|file_sep|>current/.tr...
94534931fcaa7a53effcfe696b0f5f3438564b54
.travis.yml
.travis.yml
YAML
<|file_sep|>original/spec/support/devise_helper.rb RSpec.configure do |config| config.include Devise::TestHelpers, type: :controller config.include Devise::TestHelpers, type: :view end <|file_sep|>current/spec/support/devise_helper.rb RSpec.configure do |config| config.include Devise::TestHelpers, type: :controll...
RSpec.configure do |config| config.include Devise::Test::ControllerHelpers, type: :controller config.include Devise::TestHelpers, type: :view end
<|file_sep|>original/spec/support/devise_helper.rb RSpec.configure do |config| config.include Devise::TestHelpers, type: :controller config.include Devise::TestHelpers, type: :view end <|file_sep|>current/spec/support/devise_helper.rb RSpec.configure do |config| config.include Devise::TestHelpers, type: :controll...
8ea54393a0dc9a89a74c9c92c86f254a8acc81bd
spec/support/devise_helper.rb
spec/support/devise_helper.rb
Ruby
<|file_sep|>original/package.json { "name": "build-url", "version": "3.0.0", "description": "A small library that builds a URL given its components", "main": "./dist/build-url.js", "types": "./build-url.d.ts", "scripts": { "test": "./node_modules/jasmine/bin/jasmine.js" }, "repository": { "type"...
{ "name": "build-url", "version": "6.0.0", "description": "A small library that builds a URL given its components", "main": "./dist/build-url.js", "types": "./build-url.d.ts", "scripts": { "test": "./node_modules/jasmine/bin/jasmine.js" }, "repository": { "type": "git", "url": "git+https://g...
<|file_sep|>original/package.json { "name": "build-url", "version": "3.0.0", "description": "A small library that builds a URL given its components", "main": "./dist/build-url.js", "types": "./build-url.d.ts", "scripts": { "test": "./node_modules/jasmine/bin/jasmine.js" }, "repository": { "type"...
c4a381876fc1f6c0d752b805d8844818a549ca32
package.json
package.json
JSON
<|file_sep|>original/marconiclient/auth/base.py self.conf = conf @abc.abstractmethod def authenticate(self, api_version, request): """Authenticates the user in the selected backend. Auth backends will have to manipulate the request and prepare it to send the auth information ...
self.conf = conf @abc.abstractmethod def authenticate(self, api_version, request): """Authenticates the user in the selected backend. Auth backends will have to manipulate the request and prepare it to send the auth information back to Marconi's instance. :para...
<|file_sep|>original/marconiclient/auth/base.py self.conf = conf @abc.abstractmethod def authenticate(self, api_version, request): """Authenticates the user in the selected backend. Auth backends will have to manipulate the request and prepare it to send the auth information ...
3d71a09837d73e2a976f1911ed072225ffc2f841
marconiclient/auth/base.py
marconiclient/auth/base.py
Python
<|file_sep|>original/requirements.txt mock==2.0.0 sphinx_rtd_theme==0.2.4 numpy==1.14.0 future==0.16.0 networkx==2.0 <|file_sep|>current/requirements.txt mock==2.0.0 sphinx_rtd_theme==0.2.4 numpy==1.14.0 future==0.16.0 networkx==2.0 <|file_sep|>updated/requirements.txt
mock==2.0.0 sphinx_rtd_theme==0.2.4 numpy==1.14.0 future==0.16.0 networkx==2.1
<|file_sep|>original/requirements.txt mock==2.0.0 sphinx_rtd_theme==0.2.4 numpy==1.14.0 future==0.16.0 networkx==2.0 <|file_sep|>current/requirements.txt mock==2.0.0 sphinx_rtd_theme==0.2.4 numpy==1.14.0 future==0.16.0 networkx==2.0 <|file_sep|>updated/requirements.txt mock==2.0.0 sphinx_rtd_theme==0.2.4 numpy==1.14.0 ...
527c41d52a4b0ec541755a0a5ac1a6fbb3d0e192
requirements.txt
requirements.txt
Text
<|file_sep|>original/format.rb <|file_sep|>current/format.rb <|file_sep|>updated/format.rb
require 'pp' require 'set' MusicGraph = Struct.new(:bands, :musicians, :connections) Connection = Struct.new(:source, :target, :label) def musician_variable_name(human_name) name_parts = human_name.gsub(/[^a-zA-Z0-9 ]/, '').downcase.split name_parts.last + '_' + name_parts.first[0] end def band_variable_name(hum...
<|file_sep|>original/format.rb <|file_sep|>current/format.rb <|file_sep|>updated/format.rb require 'pp' require 'set' MusicGraph = Struct.new(:bands, :musicians, :connections) Connection = Struct.new(:source, :target, :label) def musician_variable_name(human_name) name_parts = human_name.gsub(/[^a-zA-Z0-9 ]/, '')...
7e024605a479cba9d26d7e6c7e6005e3ea0672a8
format.rb
format.rb
Ruby
<|file_sep|>original/README.rst Install current master dlrn repo and the deps repo:: dlrn-repo current deps Install the current-tripleo repo. This will also pull current and deps, and will adjust the priorities of each repo appropriately:: dlrn-repo current-tripleo Install the mitaka dlrn repo and deps:: ...
dlrn-repo current-tripleo Install the mitaka dlrn repo and deps:: dlrn-repo -b mitaka current deps Write repos to a different path:: dlrn-repo -o ~/test-repos current deps To use this for TripleO development, replace the tripleo.sh --repo-setup step with the following:: git clone https://github.co...
<|file_sep|>original/README.rst Install current master dlrn repo and the deps repo:: dlrn-repo current deps Install the current-tripleo repo. This will also pull current and deps, and will adjust the priorities of each repo appropriately:: dlrn-repo current-tripleo Install the mitaka dlrn repo and deps:: ...
726251458615ea83730246360bd78091202264ff
README.rst
README.rst
reStructuredText
<|file_sep|>original/app/src/main/res/layout/activity_favourites__download_button.xml <ImageButton xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/action_favourite_item_download" android:layout_width="24dp" android:layout_height="24dp" android:layout_gravity="center_verti...
<ImageButton xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/action_favourite_item_download" android:layout_width="24dp" android:layout_height="24dp" android:layout_gravity="center_vertical" android:layout_marginStart="16dp" android:layout_marginLeft="16dp" an...
<|file_sep|>original/app/src/main/res/layout/activity_favourites__download_button.xml <ImageButton xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/action_favourite_item_download" android:layout_width="24dp" android:layout_height="24dp" android:layout_gravity="center_verti...
d50228925b4ac47c10a82903bebd3f058e094473
app/src/main/res/layout/activity_favourites__download_button.xml
app/src/main/res/layout/activity_favourites__download_button.xml
XML
<|file_sep|>original/source/shorten.js this.CLIENT.call('shorten', {'longUrl': uri}, 'BitlyCB.' + name); } }, _dispatcher: function(callback, data) { var result, p; // Results are keyed by longUrl, so we need to grab the first one. for (p in data.results...
this.CLIENT.call('shorten', {'longUrl': uri}, 'BitlyCB.' + name); } }, _dispatcher: function(callback, data) { var result, p; // Results are keyed by longUrl, so we need to grab the first one. for (p in data.results) { result = data.results[p...
<|file_sep|>original/source/shorten.js this.CLIENT.call('shorten', {'longUrl': uri}, 'BitlyCB.' + name); } }, _dispatcher: function(callback, data) { var result, p; // Results are keyed by longUrl, so we need to grab the first one. for (p in data.results...
2d7cfb32d7c24ab68b0fad9d7af8d4cbedf6e922
source/shorten.js
source/shorten.js
JavaScript
<|file_sep|>.travis.yml.diff original: updated: services: postgresql <|file_sep|>.travis.yml.diff original: - AMY_ENABLE_PYDATA=true AMY_PYDATA_USERNAME=username AMY_PYDATA_PASSWORD=password - CHECK_MIGRATION=true updated: # DB and PYDATA envvars are not used anywhere, they're only to make it easier #...
- PYDATA=true DB=postgres AMY_ENABLE_PYDATA=true AMY_PYDATA_USERNAME=username AMY_PYDATA_PASSWORD=password DATABASE_URL="postgres://postgres:@localhost/testdb" install: - pip install -r requirements.txt - pip install coveralls - pip install psycopg2 before_script: - psql -c "CREATE DATABASE testdb;"...
<|file_sep|>.travis.yml.diff original: updated: services: postgresql <|file_sep|>.travis.yml.diff original: - AMY_ENABLE_PYDATA=true AMY_PYDATA_USERNAME=username AMY_PYDATA_PASSWORD=password - CHECK_MIGRATION=true updated: # DB and PYDATA envvars are not used anywhere, they're only to make it easier #...
c70d5f23083a304c1abe6b8f1dc78e251119501a
.travis.yml
.travis.yml
YAML
<|file_sep|>original/.github/workflows/generate-documentation.yml jobs: generate-documentation: name: Generate documentation for release environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest container: image: ghcr.io/ponylang/ponyc-ci-st...
jobs: generate-documentation: name: Generate documentation for release environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest container: image: ghcr.io/ponylang/ponyc-ci-stdlib-builder:latest credentials: username: ${{ githu...
<|file_sep|>original/.github/workflows/generate-documentation.yml jobs: generate-documentation: name: Generate documentation for release environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest container: image: ghcr.io/ponylang/ponyc-ci-st...
61ba7c62a117012d87f1a2f863752595ddb569fe
.github/workflows/generate-documentation.yml
.github/workflows/generate-documentation.yml
YAML
<|file_sep|>original/SLClearOldLists.py import re from collections import defaultdict html_files = set() html_file_groups = defaultdict(list) newest_files = set() def get_all_files(): for n in os.listdir('output'): r = re.findall(r'SoftwareList_([-_0-9A-Za-z]+)_\d{14}\.html', n) if r: ...
import re from collections import defaultdict html_files = set() html_file_groups = defaultdict(list) newest_files = set() def get_all_files(): for n in os.listdir('output'): r = re.findall(r'\ASoftwareList_([-_0-9A-Za-z]+)_\d{14}\.html\Z', n) if r: html_files.add(n) html_...
<|file_sep|>original/SLClearOldLists.py import re from collections import defaultdict html_files = set() html_file_groups = defaultdict(list) newest_files = set() def get_all_files(): for n in os.listdir('output'): r = re.findall(r'SoftwareList_([-_0-9A-Za-z]+)_\d{14}\.html', n) if r: ...
6b7f3ac5bc8c753eb77e975003eb3ee626491774
SLClearOldLists.py
SLClearOldLists.py
Python
<|file_sep|>original/README.md Judy ==== Judy is an interactive game that could be played through a GUI or a CLI. Its main purpose is to destroy the blocks in the 2D field by clicking on a block chosen by the user. If the given block is part of a group of at least three neighbouring blocks of the same kind, the whole ...
Judy ==== Judy is an interactive game that could be played through a GUI or a CLI. Its main purpose is to destroy the blocks in the 2D field by clicking on a block chosen by the user. If the given block is part of a group of at least three neighbouring blocks of the same kind, the whole group will disappear. As you p...
<|file_sep|>original/README.md Judy ==== Judy is an interactive game that could be played through a GUI or a CLI. Its main purpose is to destroy the blocks in the 2D field by clicking on a block chosen by the user. If the given block is part of a group of at least three neighbouring blocks of the same kind, the whole ...
eecadb9b764da9046e605842b46571a167e349d6
README.md
README.md
Markdown
<|file_sep|>original/config/environments/production.rb # Use a different logger for distributed setups # config.logger = SyslogLogger.new # Full error reports are disabled and caching is turned on config.action_controller.consider_all_requests_local = false config.action_controller.perform_caching = true ...
# Use a different logger for distributed setups # config.logger = SyslogLogger.new # Full error reports are disabled and caching is turned on config.action_controller.consider_all_requests_local = false config.action_controller.perform_caching = true # Use a different cache store in production # config.c...
<|file_sep|>original/config/environments/production.rb # Use a different logger for distributed setups # config.logger = SyslogLogger.new # Full error reports are disabled and caching is turned on config.action_controller.consider_all_requests_local = false config.action_controller.perform_caching = true ...
83d63489f4d9831b55f1574188f55923ab3dcc56
config/environments/production.rb
config/environments/production.rb
Ruby
<|file_sep|>original/README.md # ZZTask ## TODO ### Important : * Faire toute la partie **fonctionnelle** * Intégration continue avec Travis `.travis.yml` * Utiliser AJAX pour ne pas avoir à raffraichir la page * Faire un fichier `.htaccess` pour le renommage d'url * Soutenance ### Fonctionnelle : CRUD p...
# ZZTask [![Build Status](https://travis-ci.org/vmizoules/zztasks.svg)](https://travis-ci.org/vmizoules/zztasks) ## TODO ### Important : * Faire toute la partie **fonctionnelle** * Intégration continue avec Travis `.travis.yml` * Utiliser AJAX pour ne pas avoir à raffraichir la page * Faire un fichier `.hta...
<|file_sep|>original/README.md # ZZTask ## TODO ### Important : * Faire toute la partie **fonctionnelle** * Intégration continue avec Travis `.travis.yml` * Utiliser AJAX pour ne pas avoir à raffraichir la page * Faire un fichier `.htaccess` pour le renommage d'url * Soutenance ### Fonctionnelle : CRUD p...
5b70181c4207a104f8b8974b41245dc082bbff48
README.md
README.md
Markdown
<|file_sep|>config/environment.js.diff original: module.exports = function(environment) { updated: module.exports = function (environment) { <|file_sep|>config/environment.js.diff original: updated: /** * Enable Ember CLI Mirage in development * To share a working prototype before Sails.js server is re...
ENV.APP.rootElement = '#ember-testing'; /** * Enable Ember CLI Mirage in testing */ ENV['ember-cli-mirage'] = { enabled: true } } if (environment === 'production') { /** * Disable Ember CLI Mirage in production */ ENV['ember-cli-mirage'] = { enabled: false ...
<|file_sep|>config/environment.js.diff original: module.exports = function(environment) { updated: module.exports = function (environment) { <|file_sep|>config/environment.js.diff original: updated: /** * Enable Ember CLI Mirage in development * To share a working prototype before Sails.js server is re...
0df6f90b582171b83b248bb11b23e423e6fac93e
config/environment.js
config/environment.js
JavaScript
<|file_sep|>original/tests/ecp5/run-test.sh #!/usr/bin/env bash set -e { echo "all::" for x in *.ys; do echo "all:: run-$x" echo "run-$x:" echo " @echo 'Running $x..'" echo " @../../yosys -ql ${x%.ys}.log $x -w 'Yosys has only limited support for tri-state logic at the moment.'" done for s in *.sh; do if [ "$s" !=...
#!/usr/bin/env bash set -e { echo "all::" for x in *.ys; do echo "all:: run-$x" echo "run-$x:" echo " @echo 'Running $x..'" echo " @../../yosys -ql ${x%.ys}.log -w 'Yosys has only limited support for tri-state logic at the moment.' $x" done for s in *.sh; do if [ "$s" != "run-test.sh" ]; then echo "all:: run-$s"...
<|file_sep|>original/tests/ecp5/run-test.sh #!/usr/bin/env bash set -e { echo "all::" for x in *.ys; do echo "all:: run-$x" echo "run-$x:" echo " @echo 'Running $x..'" echo " @../../yosys -ql ${x%.ys}.log $x -w 'Yosys has only limited support for tri-state logic at the moment.'" done for s in *.sh; do if [ "$s" !=...
d992858318c9fae869a7d0d4ed046ed8c5ea5811
tests/ecp5/run-test.sh
tests/ecp5/run-test.sh
Shell
<|file_sep|>original/synapse/storage/schema/delta/25/history_visibility.sql * * 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, ...
* 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...
<|file_sep|>original/synapse/storage/schema/delta/25/history_visibility.sql * * 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, ...
f2c4ee41b91f1828d516df871adcfbaed46d5407
synapse/storage/schema/delta/25/history_visibility.sql
synapse/storage/schema/delta/25/history_visibility.sql
SQL
<|file_sep|>original/lib/views/general/_responsive_topnav.html.erb <div id="topnav"> <ul id="navigation"> <li class="<%= 'selected' if params[:controller] == 'request' and ['new', 'select_authority'].include?(params[:action]) %>"> <%= link_to _("Make a request"), select_authority_path, :id => 'make-request...
<div id="topnav" class="topnav"> <ul id="navigation" class="navigation" role="navigation"> <li class="<%= 'selected' if params[:controller] == 'request' and ['new', 'select_authority'].include?(params[:action]) %>"> <%= link_to _("Make a request"), select_authority_path, :id => 'make-request-link' %> <...
<|file_sep|>original/lib/views/general/_responsive_topnav.html.erb <div id="topnav"> <ul id="navigation"> <li class="<%= 'selected' if params[:controller] == 'request' and ['new', 'select_authority'].include?(params[:action]) %>"> <%= link_to _("Make a request"), select_authority_path, :id => 'make-request...
152ba39a4a5bd6405ffeb7b3ea1dc4910ea37a91
lib/views/general/_responsive_topnav.html.erb
lib/views/general/_responsive_topnav.html.erb
HTML+ERB
<|file_sep|>original/app/controllers/products_controller.rb class ProductsController < ApplicationController before_action :authenticate_member! load_and_authorize_resource respond_to :html def index @products = Product.all respond_with @products end def show respond_with @product end def...
class ProductsController < ApplicationController before_action :authenticate_member! load_and_authorize_resource respond_to :html responders :flash def index @products = Product.all respond_with @products end def show respond_with @product end def new @product = Product.new resp...
<|file_sep|>original/app/controllers/products_controller.rb class ProductsController < ApplicationController before_action :authenticate_member! load_and_authorize_resource respond_to :html def index @products = Product.all respond_with @products end def show respond_with @product end def...
3e93fb5e2ec222c851cfab120c558d8819113788
app/controllers/products_controller.rb
app/controllers/products_controller.rb
Ruby
<|file_sep|>original/_posts/2015-03-18-gnu-manual.textile <|file_sep|>current/_posts/2015-03-18-gnu-manual.textile <|file_sep|>updated/_posts/2015-03-18-gnu-manual.textile
--- title: "GNU Manual Improved" date: 2015-03-18 categories: experiment gnu excerpt: "What's not to love about the GNU C Library manual. Its long, it looks like crap and its older than all of us. This is my attempt to improve it!" --- What's not to love about the GNU C Library manual. Its long, it looks like crap and...
<|file_sep|>original/_posts/2015-03-18-gnu-manual.textile <|file_sep|>current/_posts/2015-03-18-gnu-manual.textile <|file_sep|>updated/_posts/2015-03-18-gnu-manual.textile --- title: "GNU Manual Improved" date: 2015-03-18 categories: experiment gnu excerpt: "What's not to love about the GNU C Library manual. Its long...
376e036ac05e442547bdd8e32433cfe304e5d81e
_posts/2015-03-18-gnu-manual.textile
_posts/2015-03-18-gnu-manual.textile
Textile
<|file_sep|>static/locales/en-GB/messages.properties.diff original: navigation-developers=Developers updated: <|file_sep|>original/static/locales/en-GB/messages.properties # Title tag # Navigation navigation-developers=Developers # Header upper-title=Pontoon by Mozilla headline-1=LocaliSe the web. headline-2=In Plac...
# Title tag # Navigation # Header upper-title=Pontoon by Mozilla headline-1=LocaliSe the web. # What what-desc=Pontoon allows you to localise web content in place, with context and spatial limitations right in front of you. context-desc=By localising web page on the page itself, you no longer need to worry if the wo...
<|file_sep|>static/locales/en-GB/messages.properties.diff original: navigation-developers=Developers updated: <|file_sep|>original/static/locales/en-GB/messages.properties # Title tag # Navigation navigation-developers=Developers # Header upper-title=Pontoon by Mozilla headline-1=LocaliSe the web. headline-2=In Plac...
ed1c5d322c25fdcead43fbad92ef755994111353
static/locales/en-GB/messages.properties
static/locales/en-GB/messages.properties
INI
<|file_sep|>packages/ne/network-messagepack-rpc.yaml.diff original: hash: a5384d5419b1613becef0dcdab6c39e8e1582264bb7a1e006b05ba6c73471172 updated: hash: cdd2177ec12f2cc2130b18327be861171c583d476c9195584068f9af15c9c411 <|file_sep|>packages/ne/network-messagepack-rpc.yaml.diff original: updated: - 0.1.1.1 <|file_sep|>o...
test-bench-deps: {} maintainer: yuji-yamamoto@iij.ad.jp, kazu@iij.ad.jp synopsis: MessagePack RPC changelog: '' basic-deps: bytestring: -any base: ! '>=4.7 && <5' unordered-containers: -any text: -any safe-exceptions: -any data-msgpack: -any all-versions: - 0.1.0.0 - 0.1.1.0 - 0.1.1.1 author: Yuji Yamamoto ...
<|file_sep|>packages/ne/network-messagepack-rpc.yaml.diff original: hash: a5384d5419b1613becef0dcdab6c39e8e1582264bb7a1e006b05ba6c73471172 updated: hash: cdd2177ec12f2cc2130b18327be861171c583d476c9195584068f9af15c9c411 <|file_sep|>packages/ne/network-messagepack-rpc.yaml.diff original: updated: - 0.1.1.1 <|file_sep|>o...
d50f29dc779983219dc4b8652f0f2e0c6a4ab5c9
packages/ne/network-messagepack-rpc.yaml
packages/ne/network-messagepack-rpc.yaml
YAML
<|file_sep|>public/js/views/admin-permissions.js.diff original: updated: this.$role = $('[name="role"]'); <|file_sep|>public/js/views/admin-permissions.js.diff original: this.$controllers = this.$permissions.find('.controller'); updated: this.$controllers = this.$permissions.find('.controller'); <|file_sep|>pu...
var show = this.$customize.is(':checked'); // Manually set the height whenever it's moving and then clear it when // animation is done. The animation is defined in CSS. this.$permissions.height(this.$permissions_inner.outerHeight()); _.delay(_.bind(function() { this.$permissions.height(''); }, this), 300); ...
<|file_sep|>public/js/views/admin-permissions.js.diff original: updated: this.$role = $('[name="role"]'); <|file_sep|>public/js/views/admin-permissions.js.diff original: this.$controllers = this.$permissions.find('.controller'); updated: this.$controllers = this.$permissions.find('.controller'); <|file_sep|>pu...
ed7de25c2763b36b0bc0460bc977ebbd8af7001a
public/js/views/admin-permissions.js
public/js/views/admin-permissions.js
JavaScript
<|file_sep|>original/TROUBLESHOOTING.md <|file_sep|>current/TROUBLESHOOTING.md <|file_sep|>updated/TROUBLESHOOTING.md
# Troubleshooting ## Running Locally If Boxen *completely* fails to install and you can't run `boxen` from the command line then you'll probably want to fix that in a branch. But Boxen by default pulls from `master`, so what to do? Well, the trick here is to alter the install script before running. So do that, deviat...
<|file_sep|>original/TROUBLESHOOTING.md <|file_sep|>current/TROUBLESHOOTING.md <|file_sep|>updated/TROUBLESHOOTING.md # Troubleshooting ## Running Locally If Boxen *completely* fails to install and you can't run `boxen` from the command line then you'll probably want to fix that in a branch. But Boxen by default pu...
9db1e0c5ba9309729b073116cb9eb83083921435
TROUBLESHOOTING.md
TROUBLESHOOTING.md
Markdown
<|file_sep|>metadata/com.emacberry.uuid0xfd6fscan.yml.diff original: updated: - versionName: 0.9.1.9 versionCode: 919 commit: 0.9.1.9 subdir: app gradle: - yes <|file_sep|>original/metadata/com.emacberry.uuid0xfd6fscan.yml gradle: - yes - versionName: 0.9.1.7 versionCode: 917 ...
gradle: - yes - versionName: 0.9.1.8 versionCode: 918 commit: 0.9.1.8 subdir: app gradle: - yes - versionName: 0.9.1.9 versionCode: 919 commit: 0.9.1.9 subdir: app gradle: - yes AutoUpdateMode: Version %v UpdateCheckMode: Tags CurrentVersion: 0.9.1.9 CurrentV...
<|file_sep|>metadata/com.emacberry.uuid0xfd6fscan.yml.diff original: updated: - versionName: 0.9.1.9 versionCode: 919 commit: 0.9.1.9 subdir: app gradle: - yes <|file_sep|>original/metadata/com.emacberry.uuid0xfd6fscan.yml gradle: - yes - versionName: 0.9.1.7 versionCode: 917 ...
1b694e45188c6888e410ebc547bc85a7dff9613c
metadata/com.emacberry.uuid0xfd6fscan.yml
metadata/com.emacberry.uuid0xfd6fscan.yml
YAML
<|file_sep|>original/app/views/words/index.html.haml .row / this if for later you will cann select, what category you want to see, but need js or that .col-lg-12 - categories_array = Category.all.map { |category| category.name_de} = select_tag :category_name_de, options_for_select(categories_array), {:oncha...
/ this if for later you will cann select, what category you want to see, but need js or that .col-lg-12 - categories_array = Category.all.map { |category| category.name_de} = select_tag :category_name_de, options_for_select(categories_array), {:onchange => 'this.form.submit()'} .row .col-lg-12 -for w...
<|file_sep|>original/app/views/words/index.html.haml .row / this if for later you will cann select, what category you want to see, but need js or that .col-lg-12 - categories_array = Category.all.map { |category| category.name_de} = select_tag :category_name_de, options_for_select(categories_array), {:oncha...
191d75d413f2b8cef967f082a6e5b4801d7ded57
app/views/words/index.html.haml
app/views/words/index.html.haml
Haml
<|file_sep|>original/circle.yml post: - git submodule update --init dependencies: pre: # https://github.com/meteor/docs/blob/version-NEXT/long-form/file-change-watcher-efficiency.md - echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p cache_directories: - "de...
post: - git submodule update --init dependencies: pre: # https://github.com/meteor/docs/blob/version-NEXT/long-form/file-change-watcher-efficiency.md - echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p cache_directories: - "dev_bundle" - ".meteor" - ...
<|file_sep|>original/circle.yml post: - git submodule update --init dependencies: pre: # https://github.com/meteor/docs/blob/version-NEXT/long-form/file-change-watcher-efficiency.md - echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p cache_directories: - "de...
a290488d0293602bdfad2d4aa7b84c27430af196
circle.yml
circle.yml
YAML
<|file_sep|>examples/star-wars/package.json.diff original: "react-relay": "0.7.1" updated: "react-relay": "0.7.3" <|file_sep|>original/examples/star-wars/package.json "ejs": "^2.3.4", "express": "^4.13.3", "express-graphql": "^0.4.0", "graphql": "^0.4.12", "graphql-relay": "^0.3.4", "iso...
"ejs": "^2.3.4", "express": "^4.13.3", "express-graphql": "^0.4.0", "graphql": "^0.4.12", "graphql-relay": "^0.3.4", "isomorphic-relay": "file:../..", "react": "^0.14.2", "react-dom": "^0.14.2", "react-relay": "0.7.3" }, "devDependencies": { "babel-cli": "^6.3.17", "babel...
<|file_sep|>examples/star-wars/package.json.diff original: "react-relay": "0.7.1" updated: "react-relay": "0.7.3" <|file_sep|>original/examples/star-wars/package.json "ejs": "^2.3.4", "express": "^4.13.3", "express-graphql": "^0.4.0", "graphql": "^0.4.12", "graphql-relay": "^0.3.4", "iso...
0c3fa46b685fb90b6b8f2d6897c74c926058e747
examples/star-wars/package.json
examples/star-wars/package.json
JSON
<|file_sep|>CHANGELOG.md.diff original: updated: * Set min node engine to >= 0.6.0, max node engine to < 0.9.0 <|file_sep|>original/CHANGELOG.md * Remove -d option, nano as a couchdb driver is fine ### 0.0.5 * Fix version flag * Fix commands-flags association * Change default batch size and page size to 1000 ### 0....
* Remove -d option, nano as a couchdb driver is fine * Set min node engine to >= 0.6.0, max node engine to < 0.9.0 ### 0.0.5 * Fix version flag * Fix commands-flags association * Change default batch size and page size to 1000 ### 0.0.4 * Add bulk save/remove support ### 0.0.3 * Add startkey and endkey range suppor...
<|file_sep|>CHANGELOG.md.diff original: updated: * Set min node engine to >= 0.6.0, max node engine to < 0.9.0 <|file_sep|>original/CHANGELOG.md * Remove -d option, nano as a couchdb driver is fine ### 0.0.5 * Fix version flag * Fix commands-flags association * Change default batch size and page size to 1000 ### 0....
04574f89f7cfeb4ee939002175f5a8a1911a3963
CHANGELOG.md
CHANGELOG.md
Markdown
<|file_sep|>ui/frontend/highlighting.js.diff original: pattern: /error:.*\n/, updated: pattern: /error(\[E\d+\])?:.*\n/, <|file_sep|>original/ui/frontend/highlighting.js import Prism from "prismjs"; export function configureRustErrors(gotoPosition) { Prism.languages.rust_errors = { // eslint-disable-line...
import Prism from "prismjs"; export function configureRustErrors(gotoPosition) { Prism.languages.rust_errors = { // eslint-disable-line camelcase 'warning':/warning:.*\n/, 'error': { pattern: /error(\[E\d+\])?:.*\n/, inside: { 'error-explanation': /\[E\d+\]/, }, }, 'error-lo...
<|file_sep|>ui/frontend/highlighting.js.diff original: pattern: /error:.*\n/, updated: pattern: /error(\[E\d+\])?:.*\n/, <|file_sep|>original/ui/frontend/highlighting.js import Prism from "prismjs"; export function configureRustErrors(gotoPosition) { Prism.languages.rust_errors = { // eslint-disable-line...
5c4493d50e29d7e4967187f6021ca061712472cf
ui/frontend/highlighting.js
ui/frontend/highlighting.js
JavaScript
<|file_sep|>original/lib/hirb/views/rails.rb module Hirb::Views::Rails #:nodoc: def active_record__base_view(obj) {:fields=>get_active_record_fields(obj)} end def get_active_record_fields(obj) fields = obj.class.column_names.map {|e| e.to_sym } # if query used select if obj.attributes.keys.sort !...
module Hirb::Views::Rails #:nodoc: def active_record__base_view(obj) {:fields=>get_active_record_fields(obj)} end def get_active_record_fields(obj) fields = obj.class.column_names.map {|e| e.to_sym } # if query used select if obj.attributes.keys.compact.sort != obj.class.column_names.sort s...
<|file_sep|>original/lib/hirb/views/rails.rb module Hirb::Views::Rails #:nodoc: def active_record__base_view(obj) {:fields=>get_active_record_fields(obj)} end def get_active_record_fields(obj) fields = obj.class.column_names.map {|e| e.to_sym } # if query used select if obj.attributes.keys.sort !...
bc5e6cfce85ce883d74f6ca9977bb4bf45b1f1a8
lib/hirb/views/rails.rb
lib/hirb/views/rails.rb
Ruby
<|file_sep|>original/tests/pluginregistry.py <|file_sep|>current/tests/pluginregistry.py <|file_sep|>updated/tests/pluginregistry.py
#!/usr/bin/env python2 import Cura.PluginRegistry p = Cura.PluginRegistry.PluginRegistry() p.addPluginLocation("plugins") p._populateMetaData() #p.loadPlugin("ExamplePlugin") print(p.getMetaData("ExamplePlugin"))
<|file_sep|>original/tests/pluginregistry.py <|file_sep|>current/tests/pluginregistry.py <|file_sep|>updated/tests/pluginregistry.py #!/usr/bin/env python2 import Cura.PluginRegistry p = Cura.PluginRegistry.PluginRegistry() p.addPluginLocation("plugins") p._populateMetaData() #p.loadPlugin("ExamplePlugin") print(...
eade3fa4f4d53574f359b9006b4d36b1bf428d49
tests/pluginregistry.py
tests/pluginregistry.py
Python
<|file_sep|>original/src/client/components/PersonalisedDashboard/tasks.js import { apiProxyAxios } from '../Task/utils' export const fetchOutstandingPropositions = ({ adviser }) => apiProxyAxios .get('/v4/proposition', { params: { adviser_id: adviser.id, status: 'ongoing', sortBy: '...
import { apiProxyAxios } from '../Task/utils' export const fetchOutstandingPropositions = ({ adviser }) => apiProxyAxios .get('/v4/proposition', { params: { adviser_id: adviser.id, status: 'ongoing', sortby: 'deadline', limit: 5, }, }) .then(({ data }) => data)
<|file_sep|>original/src/client/components/PersonalisedDashboard/tasks.js import { apiProxyAxios } from '../Task/utils' export const fetchOutstandingPropositions = ({ adviser }) => apiProxyAxios .get('/v4/proposition', { params: { adviser_id: adviser.id, status: 'ongoing', sortBy: '...
d53e47027b3b36e687c7858942fcb1abba4192c8
src/client/components/PersonalisedDashboard/tasks.js
src/client/components/PersonalisedDashboard/tasks.js
JavaScript
<|file_sep|>original/test/fixtures/cookbooks/test/recipes/default.rb apt_update 'update' if platform_family?('ubuntu') include_recipe 'djbdns::server' include_recipe 'djbdns::cache' file '/etc/resolv.conf' do manage_symlink_source true content "nameserver #{node['ipaddress']}" end # for the `host` command used i...
apt_update 'update' if platform_family?('debian') include_recipe 'djbdns::server' include_recipe 'djbdns::cache' file '/etc/resolv.conf' do manage_symlink_source true content "nameserver #{node['ipaddress']}" end # for the `host` command used in the tests package 'bind-utils' if platform_family?('rhel', 'fedora'...
<|file_sep|>original/test/fixtures/cookbooks/test/recipes/default.rb apt_update 'update' if platform_family?('ubuntu') include_recipe 'djbdns::server' include_recipe 'djbdns::cache' file '/etc/resolv.conf' do manage_symlink_source true content "nameserver #{node['ipaddress']}" end # for the `host` command used i...
832aab6f9c6b37a9b135e874ba1cc108dc987222
test/fixtures/cookbooks/test/recipes/default.rb
test/fixtures/cookbooks/test/recipes/default.rb
Ruby
<|file_sep|>original/app/controllers/tags_controller.rb class TagsController < ContentController before_action :auto_discovery_feed, only: [:show, :index] layout :theme_layout def index @tags = Tag.page(params[:page]).per(100) @page_title = controller_name.capitalize @keywords = '' @description =...
class TagsController < ContentController before_action :auto_discovery_feed, only: [:show, :index] layout :theme_layout def index @tags = Tag.page(params[:page]).per(100) @page_title = controller_name.capitalize @keywords = '' @description = "Tags for #{this_blog.blog_name}" end def show ...
<|file_sep|>original/app/controllers/tags_controller.rb class TagsController < ContentController before_action :auto_discovery_feed, only: [:show, :index] layout :theme_layout def index @tags = Tag.page(params[:page]).per(100) @page_title = controller_name.capitalize @keywords = '' @description =...
8631a456826431c28495f73fda535606ba9ea8f4
app/controllers/tags_controller.rb
app/controllers/tags_controller.rb
Ruby
<|file_sep|>css/fifth-postulate.css.diff original: display: block; updated: display: flex; flex-direction: row; justify-content: space-between; <|file_sep|>css/fifth-postulate.css.diff original: max-width: 620px; updated: max-width: 480px; <|file_sep|>original/css/fifth-postulate.css .header h1...
.header h1 { font-size: 54px; text-align: center; margin-bottom: 0; } .header ul { display: flex; flex-direction: row; justify-content: space-between; padding: 0; max-width: 480px; margin-top: 0; margin-left: auto; margin-right: auto; } .header li { display: inline-blo...
<|file_sep|>css/fifth-postulate.css.diff original: display: block; updated: display: flex; flex-direction: row; justify-content: space-between; <|file_sep|>css/fifth-postulate.css.diff original: max-width: 620px; updated: max-width: 480px; <|file_sep|>original/css/fifth-postulate.css .header h1...
1a813d8a4479ff08fd59e61958862e585e6b6b27
css/fifth-postulate.css
css/fifth-postulate.css
CSS
<|file_sep|>lib/key_control.rb.diff original: THREAD = "@t" PROCESS = "@p" updated: <|file_sep|>original/lib/key_control.rb require "key_control/version" require "key_control/key_ring" module KeyControl THREAD = "@t" PROCESS = "@p" SESSION = "@s" USER = "@u" DEFAULT = "@us" GROUP = "@g" end <|...
require "key_control/version" require "key_control/key_ring" module KeyControl SESSION = "@s" USER = "@u" DEFAULT = "@us" GROUP = "@g" # Thread and Process-level keyrings won't work for the time being, due to the # fact that calls to keyctl have to happen through a subshell. These are here # for t...
<|file_sep|>lib/key_control.rb.diff original: THREAD = "@t" PROCESS = "@p" updated: <|file_sep|>original/lib/key_control.rb require "key_control/version" require "key_control/key_ring" module KeyControl THREAD = "@t" PROCESS = "@p" SESSION = "@s" USER = "@u" DEFAULT = "@us" GROUP = "@g" end <|...
df142bcb12ae6316509ae3da01f4104fe03b3457
lib/key_control.rb
lib/key_control.rb
Ruby
<|file_sep|>lib/fog/hp/requests/compute_v2/list_servers.rb.diff original: updated: # # ==== Parameters # * options<~Hash>: <|file_sep|>lib/fog/hp/requests/compute_v2/list_servers.rb.diff original: def list_servers updated: def list_servers(options = {}) <|file_sep|>lib/fog/hp/re...
end class Mock def list_servers(options = {}) response = Excon::Response.new data = list_servers_detail.body['servers'] servers = [] for server in data servers << server.reject { |key, value| !['id', 'name', 'links'].include?(key) } en...
<|file_sep|>lib/fog/hp/requests/compute_v2/list_servers.rb.diff original: updated: # # ==== Parameters # * options<~Hash>: <|file_sep|>lib/fog/hp/requests/compute_v2/list_servers.rb.diff original: def list_servers updated: def list_servers(options = {}) <|file_sep|>lib/fog/hp/re...
4e5129a832dd84fcfb830f903576993dacd7229e
lib/fog/hp/requests/compute_v2/list_servers.rb
lib/fog/hp/requests/compute_v2/list_servers.rb
Ruby
<|file_sep|>original/.travis.yml - 1.6.3 - 1.7.3 - tip before_install: - go get ./... - go get github.com/axw/gocov/gocov - go get github.com/mattn/goveralls - go get github.com/stretchr/testify/assert - if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi instal...
- 1.6.3 - 1.7.3 - tip before_install: - go get ./... - go get github.com/axw/gocov/gocov - go get github.com/mattn/goveralls - go get github.com/stretchr/testify/assert - if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi install: - go get golang.org/x/net/ht...
<|file_sep|>original/.travis.yml - 1.6.3 - 1.7.3 - tip before_install: - go get ./... - go get github.com/axw/gocov/gocov - go get github.com/mattn/goveralls - go get github.com/stretchr/testify/assert - if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi instal...
9793c5fb4573d518058858de9c12116c32b6073c
.travis.yml
.travis.yml
YAML
<|file_sep|>original/lib/bootstrap-sass/compass_functions.rb if defined?(::Sprockets) ::Sass::Script::String.new sprockets_context.image_path(source.value).to_s, :string elsif defined?(::Compass) image_url(source, Sass::Script::Bool.new(true)) else # Revert to the old compass-agnostic path...
if defined?(::Sprockets) ::Sass::Script::String.new sprockets_context.image_path(source.value).to_s, :string elsif defined?(::Compass) image_url(source, Sass::Script::Bool.new(true)) else # Revert to the old compass-agnostic path determination asset_sans_quotes = source.value.gsub('"...
<|file_sep|>original/lib/bootstrap-sass/compass_functions.rb if defined?(::Sprockets) ::Sass::Script::String.new sprockets_context.image_path(source.value).to_s, :string elsif defined?(::Compass) image_url(source, Sass::Script::Bool.new(true)) else # Revert to the old compass-agnostic path...
a9d893359382e884b60cbe28b4723aee13e8e60f
lib/bootstrap-sass/compass_functions.rb
lib/bootstrap-sass/compass_functions.rb
Ruby
<|file_sep|>original/config/routes.rb Rails.application.routes.draw do devise_for :users # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html end <|file_sep|>current/config/routes.rb Rails.application.routes.draw do devise_for :users # For details on the DSL availa...
Rails.application.routes.draw do devise_for :users # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html resources :defined_words, only: [:create] end
<|file_sep|>original/config/routes.rb Rails.application.routes.draw do devise_for :users # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html end <|file_sep|>current/config/routes.rb Rails.application.routes.draw do devise_for :users # For details on the DSL availa...
4a91cc2cbc89ac41439a163d7c46cfd9cad7795d
config/routes.rb
config/routes.rb
Ruby
<|file_sep|>original/{{cookiecutter.project_slug}}/requirements/test.txt # Test dependencies go here. -r base.txt {% if cookiecutter.windows == 'y' -%} # Python-PostgreSQL Database Adapter # If using Win for dev, this assumes Unix in test/prod psycopg2==2.7.3.2 {%- endif %} coverage==4.4.2 flake8==3.4.1 django-test-p...
# Test dependencies go here. -r base.txt {% if cookiecutter.windows == 'y' -%} # Python-PostgreSQL Database Adapter # If using Win for dev, this assumes Unix in test/prod psycopg2==2.7.3.2 {%- endif %} coverage==4.4.2 flake8==3.5.0 django-test-plus==1.0.22 factory-boy==2.10.0 # pytest! pytest-django==3.2.1 pytest-su...
<|file_sep|>original/{{cookiecutter.project_slug}}/requirements/test.txt # Test dependencies go here. -r base.txt {% if cookiecutter.windows == 'y' -%} # Python-PostgreSQL Database Adapter # If using Win for dev, this assumes Unix in test/prod psycopg2==2.7.3.2 {%- endif %} coverage==4.4.2 flake8==3.4.1 django-test-p...
7929a5a0cc9d30593d63d0707453546b4ec891fa
{{cookiecutter.project_slug}}/requirements/test.txt
{{cookiecutter.project_slug}}/requirements/test.txt
Text
<|file_sep|>original/phpunit.xml bootstrap="src/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" syntaxCheck="false" stderr="true" > <testsuites> <testsuite> <d...
bootstrap="src/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" syntaxCheck="false" stderr="true" > <testsuites> <testsuite> <directory>test</directory> </t...
<|file_sep|>original/phpunit.xml bootstrap="src/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" syntaxCheck="false" stderr="true" > <testsuites> <testsuite> <d...
1407c02985086fed437be286b772579c43cfd979
phpunit.xml
phpunit.xml
XML
<|file_sep|>app/filters/link_filter.rb.diff original: HTTPS_WHITELIST = [ /\Ahttps?:\/\/([\w\d\-]+\.)?youtube\.(com|com\.br|fr|jp|nl|pl|es|ie|co\.uk)\//, /\Ahttps?:\/\/youtu\.be\//, /\Ahttps?:\/\/vimeo\.com\//, /\Ahttps?:\/\/soundcloud\.com\// ] updated: HTTPS_WHITELIST = %w{ youtube.com *...
parser.search("a").each do |link| if href = link.try(:attributes).try(:[], 'href').try(:value) host = URI.parse(href).host if local_domains.find { |d| host == d } link.set_attribute 'href', href.gsub(Regexp.new("(https?:)?\/\/" + Regexp.escape(host)), "") end end en...
<|file_sep|>app/filters/link_filter.rb.diff original: HTTPS_WHITELIST = [ /\Ahttps?:\/\/([\w\d\-]+\.)?youtube\.(com|com\.br|fr|jp|nl|pl|es|ie|co\.uk)\//, /\Ahttps?:\/\/youtu\.be\//, /\Ahttps?:\/\/vimeo\.com\//, /\Ahttps?:\/\/soundcloud\.com\// ] updated: HTTPS_WHITELIST = %w{ youtube.com *...
e18ecf40741c151bce341c45a0396e159c165e9b
app/filters/link_filter.rb
app/filters/link_filter.rb
Ruby
<|file_sep|>original/Sources/Luminous/Luminous+Audio.swift public struct Audio { /// A value in the range `0.0` to `1.0`, with `0.0` representing the minimum volume and `1.0` representing the maximum volume. public static var currentAudioOutputVolume: Double? { ...
public struct Audio { /// A value in the range `0.0` to `1.0`, with `0.0` representing the minimum volume and `1.0` representing the maximum volume. public static var currentAudioOutputVolume: Double? { let audioSession = AVAudioSession.sharedInstance() ...
<|file_sep|>original/Sources/Luminous/Luminous+Audio.swift public struct Audio { /// A value in the range `0.0` to `1.0`, with `0.0` representing the minimum volume and `1.0` representing the maximum volume. public static var currentAudioOutputVolume: Double? { ...
53bdddbf6205223f455f51b270d7b6d9f066d50b
Sources/Luminous/Luminous+Audio.swift
Sources/Luminous/Luminous+Audio.swift
Swift
<|file_sep|>packages/le/lenz.yaml.diff original: hash: 4835c85d0ad9d53b9f446166376f9259cc051fd904e327717d99d04401656869 updated: hash: 48a9254ce289eedf5db423844732c4b5a42798d94b3c2e82b4b9770f87c97f07 <|file_sep|>original/packages/le/lenz.yaml homepage: '' changelog-type: '' hash: 4835c85d0ad9d53b9f446166376f9259cc051fd...
homepage: '' changelog-type: '' hash: 48a9254ce289eedf5db423844732c4b5a42798d94b3c2e82b4b9770f87c97f07 test-bench-deps: {} maintainer: strake888@gmail.com synopsis: Van Laarhoven lenses changelog: '' basic-deps: base-unicode-symbols: ! '>=0.1 && <0.3' base: ! '>=4.8 && <5' transformers: ! '>=0.2 && <0.6' all-vers...
<|file_sep|>packages/le/lenz.yaml.diff original: hash: 4835c85d0ad9d53b9f446166376f9259cc051fd904e327717d99d04401656869 updated: hash: 48a9254ce289eedf5db423844732c4b5a42798d94b3c2e82b4b9770f87c97f07 <|file_sep|>original/packages/le/lenz.yaml homepage: '' changelog-type: '' hash: 4835c85d0ad9d53b9f446166376f9259cc051fd...
3dfb1bd5d7970368579f93fe8b6bd0d1bc34aa68
packages/le/lenz.yaml
packages/le/lenz.yaml
YAML
<|file_sep|>original/db/migrate/20211005130501_rename_option_set_name_where_duplicates.rb # frozen_string_literal: true class RenameOptionSetNameWhereDuplicates < ActiveRecord::Migration[6.1] def up OptionSet.find_each do |os| sets = OptionSet.where(mission_id: os.mission_id, name: os.name) next if s...
# frozen_string_literal: true class RenameOptionSetNameWhereDuplicates < ActiveRecord::Migration[6.1] def up OptionSet.find_each do |os| sets = OptionSet.where(mission_id: os.mission_id, name: os.name) next if sets.count < 2 sets.each do |set| puts "Renaming duplicate option set ##{set....
<|file_sep|>original/db/migrate/20211005130501_rename_option_set_name_where_duplicates.rb # frozen_string_literal: true class RenameOptionSetNameWhereDuplicates < ActiveRecord::Migration[6.1] def up OptionSet.find_each do |os| sets = OptionSet.where(mission_id: os.mission_id, name: os.name) next if s...
be470982a111268077ae29fd8b63ad0463faf7dd
db/migrate/20211005130501_rename_option_set_name_where_duplicates.rb
db/migrate/20211005130501_rename_option_set_name_where_duplicates.rb
Ruby
<|file_sep|>src/index.js.diff original: transform("readSource", function (source, [module]) { updated: transform("readSource", function (module) { <|file_sep|>src/index.js.diff original: source = `module.exports = ${source};`; updated: module = Object.assign({}, module, { rawSource: `m...
export default function (opts = {}) { const isJsonFile = opts.filter || /\.json$/; return (override, transform) => { transform("readSource", function (module) { if (isJsonFile.test(module.path)) { module = Object.assign({}, module, { rawSource: `module.exports = ${module.rawSource};` ...
<|file_sep|>src/index.js.diff original: transform("readSource", function (source, [module]) { updated: transform("readSource", function (module) { <|file_sep|>src/index.js.diff original: source = `module.exports = ${source};`; updated: module = Object.assign({}, module, { rawSource: `m...
39448f0f307a765ca3195f212f81c46e7f4e7336
src/index.js
src/index.js
JavaScript
<|file_sep|>original/docker/tomviz-pipeline/BUILDING.md Building tomviz-pipeline =============== In order to build this container the tomviz repository needs to be in the docker build context. Therefore the build must be performed from the root of the repository. cd <tomviz-repo-root> docker build -f docker/t...
Building tomviz-pipeline =============== In order to build this container the tomviz repository needs to be in the docker build context. Therefore the build must be performed from the root of the repository. cd <tomviz-repo-root> docker build -f docker/tomviz-pipeline/Dockerfile .
<|file_sep|>original/docker/tomviz-pipeline/BUILDING.md Building tomviz-pipeline =============== In order to build this container the tomviz repository needs to be in the docker build context. Therefore the build must be performed from the root of the repository. cd <tomviz-repo-root> docker build -f docker/t...
9cba31d39685d6c5fcad39aae3efab5c0311576c
docker/tomviz-pipeline/BUILDING.md
docker/tomviz-pipeline/BUILDING.md
Markdown
<|file_sep|>original/requirements/base.txt # Contains all dependencies which are required for production and for development Django==2.2 django-bootstrap4==0.0.8 django-icons==0.2.1 django-formtools==2.1 odswriter==0.4.0 Pillow==5.4.1 pyTUID==1.3.4 pytz==2018.9 <|file_sep|>current/requirements/base.txt # Contains all d...
# Contains all dependencies which are required for production and for development Django==2.2 django-bootstrap4==0.0.8 django-icons==0.2.1 django-formtools==2.1 odswriter==0.4.0 Pillow==6.0.0 pyTUID==1.3.4 pytz==2018.9
<|file_sep|>original/requirements/base.txt # Contains all dependencies which are required for production and for development Django==2.2 django-bootstrap4==0.0.8 django-icons==0.2.1 django-formtools==2.1 odswriter==0.4.0 Pillow==5.4.1 pyTUID==1.3.4 pytz==2018.9 <|file_sep|>current/requirements/base.txt # Contains all d...
09f3f589af937add115102e53db3a19ce3068331
requirements/base.txt
requirements/base.txt
Text
<|file_sep|>original/test/BaseTest.php <|file_sep|>current/test/BaseTest.php <|file_sep|>updated/test/BaseTest.php
<?php declare(strict_types=1); namespace PhpSchool\PhpWorkshopTest; use PHPUnit\Framework\TestCase; use Symfony\Component\Filesystem\Filesystem; abstract class BaseTest extends TestCase { private $tempDirectory; public function getTemporaryDirectory(): string { if (!$this->tempDirectory) { ...
<|file_sep|>original/test/BaseTest.php <|file_sep|>current/test/BaseTest.php <|file_sep|>updated/test/BaseTest.php <?php declare(strict_types=1); namespace PhpSchool\PhpWorkshopTest; use PHPUnit\Framework\TestCase; use Symfony\Component\Filesystem\Filesystem; abstract class BaseTest extends TestCase { private...
d7eb05151acf20cce4b16a291691327bbbd396d0
test/BaseTest.php
test/BaseTest.php
PHP
<|file_sep|>original/assets/docs/google/collections/sentence-t5/1.md <|file_sep|>current/assets/docs/google/collections/sentence-t5/1.md <|file_sep|>updated/assets/docs/google/collections/sentence-t5/1.md
# Collection google/sentence-t5/1 Collection of sentence T5 encoders trained on variety of data. <!-- task: text-embedding --> <!-- network-architecture: transformer --> <!-- language: en --> ## Overview The sentence-T5 family of models encode text into high-dimensional vectors that can be used for text classificat...
<|file_sep|>original/assets/docs/google/collections/sentence-t5/1.md <|file_sep|>current/assets/docs/google/collections/sentence-t5/1.md <|file_sep|>updated/assets/docs/google/collections/sentence-t5/1.md # Collection google/sentence-t5/1 Collection of sentence T5 encoders trained on variety of data. <!-- task: tex...
d38f01452a0efe028538a514b5273e68e53131a0
assets/docs/google/collections/sentence-t5/1.md
assets/docs/google/collections/sentence-t5/1.md
Markdown
<|file_sep|>original/README.md # QuestMaker API for basic roguelike game mechanics <|file_sep|>current/README.md # QuestMaker API for basic roguelike game mechanics <|file_sep|>updated/README.md
# QuestMaker API for basic roguelike game mechanics ## Concept - API only deals with the ruleset, it is graphic, sound and interface agnostic - There is no reason however why a ‘fan made’ HeroQuest campaign could not be made. - No concept of rooms - Can only search for treasure on a furniture item (eg. chest, bookcas...
<|file_sep|>original/README.md # QuestMaker API for basic roguelike game mechanics <|file_sep|>current/README.md # QuestMaker API for basic roguelike game mechanics <|file_sep|>updated/README.md # QuestMaker API for basic roguelike game mechanics ## Concept - API only deals with the ruleset, it is graphic, sound and i...
17ae52201c307aeb4adf67f198ae9fc120af581a
README.md
README.md
Markdown
<|file_sep|>original/package.json ], "author": "Aslak Hellesøy", "license": "MIT", "bugs": { "url": "https://github.com/cucumber/cucumber/issues" }, "homepage": "https://github.com/cucumber/gherkin-javascript", "devDependencies": { "@cucumber/gherkin-streams": "^5.0.1", "@types/mocha": "9.1.1"...
], "author": "Aslak Hellesøy", "license": "MIT", "bugs": { "url": "https://github.com/cucumber/cucumber/issues" }, "homepage": "https://github.com/cucumber/gherkin-javascript", "devDependencies": { "@cucumber/gherkin-streams": "^5.0.1", "@types/mocha": "9.1.1", "@types/node": "16.11.39", ...
<|file_sep|>original/package.json ], "author": "Aslak Hellesøy", "license": "MIT", "bugs": { "url": "https://github.com/cucumber/cucumber/issues" }, "homepage": "https://github.com/cucumber/gherkin-javascript", "devDependencies": { "@cucumber/gherkin-streams": "^5.0.1", "@types/mocha": "9.1.1"...
215b542f37d816b01f04751291a4abffedce3287
package.json
package.json
JSON
<|file_sep|>web-mvn/src/main/scala/bootstrap/liftweb/Boot.scala.diff original: import org.talkingpuffin.snippet.{SessionState, Auth} updated: import org.talkingpuffin.snippet.{SessionState} <|file_sep|>web-mvn/src/main/scala/bootstrap/liftweb/Boot.scala.diff original: def boot { updated: def boot() { <|file_sep|>we...
LiftRules.ajaxStart = Full(() => LiftRules.jsArtifacts.show("ajax-loader").cmd) LiftRules.ajaxEnd = Full(() => LiftRules.jsArtifacts.hide("ajax-loader").cmd) LiftRules.ajaxPostTimeout = 60000 LiftRules.early.append {_.setCharacterEncoding("UTF-8")} LiftRules.loggedInTest = Full(() => loggedIn_?...
<|file_sep|>web-mvn/src/main/scala/bootstrap/liftweb/Boot.scala.diff original: import org.talkingpuffin.snippet.{SessionState, Auth} updated: import org.talkingpuffin.snippet.{SessionState} <|file_sep|>web-mvn/src/main/scala/bootstrap/liftweb/Boot.scala.diff original: def boot { updated: def boot() { <|file_sep|>we...
52b573322dcac877ac4b62c9ae7c1dc52dd0de3a
web-mvn/src/main/scala/bootstrap/liftweb/Boot.scala
web-mvn/src/main/scala/bootstrap/liftweb/Boot.scala
Scala