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/releasenotes/notes/RLock-around-send-8adf0487b887f378.yaml <|file_sep|>current/releasenotes/notes/RLock-around-send-8adf0487b887f378.yaml <|file_sep|>updated/releasenotes/notes/RLock-around-send-8adf0487b887f378.yaml
--- fixes: - | In some multithreading situations the mocker might try and replace an already patched object from a different thread. To make this thread safe we will put a lock around the mocker so that only one thread can work with the mocker at any time. This has to be a reentrant lock as the same t...
<|file_sep|>original/releasenotes/notes/RLock-around-send-8adf0487b887f378.yaml <|file_sep|>current/releasenotes/notes/RLock-around-send-8adf0487b887f378.yaml <|file_sep|>updated/releasenotes/notes/RLock-around-send-8adf0487b887f378.yaml --- fixes: - | In some multithreading situations the mocker might try and ...
c19c3343d3a70a57427bd37fbb5fcffb0b7def1c
releasenotes/notes/RLock-around-send-8adf0487b887f378.yaml
releasenotes/notes/RLock-around-send-8adf0487b887f378.yaml
YAML
<|file_sep|>src/test/Cpu-test.cpp.diff original: TEST_F(CpuTest, integrationBlop) updated: TEST_F(CpuTest, DMGboot) <|file_sep|>src/test/Cpu-test.cpp.diff original: //run bootstrap rom to see if we crash? updated: //run bootstrap rom to see if we crash <|file_sep|>src/test/Cpu-test.cpp.diff original: for (long lo...
{ runOpcode(0x01); EXPECT_EQ(getPC(), 3); } TEST_F(CpuTest, DMGboot) { //run bootstrap rom to see if we crash getMMU().injectBoot(); getMMU().writeByte(0xff44, 0x90); //$0064, screen frame skip getMMU().writeByte(0x0135, 0xe7); //ensure the checksum is correct long long unsigned int i = 0; while(get...
<|file_sep|>src/test/Cpu-test.cpp.diff original: TEST_F(CpuTest, integrationBlop) updated: TEST_F(CpuTest, DMGboot) <|file_sep|>src/test/Cpu-test.cpp.diff original: //run bootstrap rom to see if we crash? updated: //run bootstrap rom to see if we crash <|file_sep|>src/test/Cpu-test.cpp.diff original: for (long lo...
c8aeef385c85ef3a49f75c73254a1c381ec499cf
src/test/Cpu-test.cpp
src/test/Cpu-test.cpp
C++
<|file_sep|>original/test/CodeGen/Generic/nested-select.ll ; RUN: llvm-upgrade < %s | llvm-as | llc -o /dev/null -f ; Test that select of a select works int %ic_test(double %p.0.2.0.val, double %p.0.2.1.val, double %p.0.2.2.val, %typedef.tree* %t) { %result.1.0 = cast bool false to int ; <int> [#us...
; RUN: llvm-upgrade < %s | llvm-as | llc -o /dev/null -f ; Test that select of a select works %typedef.tree = type opaque implementation int %ic_test(double %p.0.2.0.val, double %p.0.2.1.val, double %p.0.2.2.val, %typedef.tree* %t) { %result.1.0 = cast bool false to int ; <int> [#uses=1] ...
<|file_sep|>original/test/CodeGen/Generic/nested-select.ll ; RUN: llvm-upgrade < %s | llvm-as | llc -o /dev/null -f ; Test that select of a select works int %ic_test(double %p.0.2.0.val, double %p.0.2.1.val, double %p.0.2.2.val, %typedef.tree* %t) { %result.1.0 = cast bool false to int ; <int> [#us...
6f978b1eff7b900a51d3cae59092f739aaa52893
test/CodeGen/Generic/nested-select.ll
test/CodeGen/Generic/nested-select.ll
LLVM
<|file_sep|>original/crossteam.md --- layout: master include: default --- ### Cross-team sessions' goals ### Resources <|file_sep|>current/crossteam.md --- layout: master include: default --- ### Cross-team sessions' goals ### Resources <|file_sep|>updated/crossteam.md
--- layout: master include: default --- ### Cross-team sessions' goals Although we are all involved in a NEIC activity or project, we hardly have a good overview of all the NEIC projects. The main goal of these cross-team sessions is to learn about each other, find synergies and trigger cross-disciplinary collabora...
<|file_sep|>original/crossteam.md --- layout: master include: default --- ### Cross-team sessions' goals ### Resources <|file_sep|>current/crossteam.md --- layout: master include: default --- ### Cross-team sessions' goals ### Resources <|file_sep|>updated/crossteam.md --- layout: master include: default --- ###...
4fab3865fcb71a0e6b70ed6060b4113b441bfc1c
crossteam.md
crossteam.md
Markdown
<|file_sep|>salt/roots/dotfiles/init.sls.diff original: - user: wicksy - group: wicksy updated: - user: root - group: root <|file_sep|>salt/roots/dotfiles/init.sls.diff original: - makedirs : True - require: - sls: users updated: - makedirs: True - recurse: - user - gro...
- require: - file: dotfiles-directory {%- for user in ['root','wicksy'] %} {%- for file in ['.vimrc', '.vim', '.bashrc'] %} dotfiles-{{ user }}-{{ file }}-link: file.symlink: {%- if user == "root" %} - name: /{{ user }}/{{ file }} {%- else %} - name: /home/{{ user }}/{{ file }} {%- en...
<|file_sep|>salt/roots/dotfiles/init.sls.diff original: - user: wicksy - group: wicksy updated: - user: root - group: root <|file_sep|>salt/roots/dotfiles/init.sls.diff original: - makedirs : True - require: - sls: users updated: - makedirs: True - recurse: - user - gro...
8b4b749eda3adce84db655abcc554f6c7ca38d4d
salt/roots/dotfiles/init.sls
salt/roots/dotfiles/init.sls
SaltStack
<|file_sep|>original/example/index.html <!DOCTYPE html> <html> <head> <title>Knobicon Example</title> </head> <body> <div id='knob'></div> <script src='../src/knobicon.js'></script> <script> var knob = new Knobicon( 'img/VolumeKnob.png','img/VolumePointer.png', { width: 500, ...
<!DOCTYPE html> <html> <head> <title>Knobicon Example</title> </head> <body> <div id='knob'></div> <script src='../src/knobicon.js'></script> <script> var knob = new Knobicon( 'img/VolumeKnob.png','img/VolumePointer.png', { width: 300, height: 300 }); knob.a...
<|file_sep|>original/example/index.html <!DOCTYPE html> <html> <head> <title>Knobicon Example</title> </head> <body> <div id='knob'></div> <script src='../src/knobicon.js'></script> <script> var knob = new Knobicon( 'img/VolumeKnob.png','img/VolumePointer.png', { width: 500, ...
ba3ac0924ae5b08b89cb921d481cb20bae572d43
example/index.html
example/index.html
HTML
<|file_sep|>api_doc/endpoints/admin/products/GET_index.md.diff original: updated: "href": "https://zmey.co.uk/api/admin/products/1", <|file_sep|>original/api_doc/endpoints/admin/products/GET_index.md -u 22cbbfeaef6085872dbe6c0e978fa098: ``` ### Response ```json { "products": [ { "id": 1, "s...
### Response ```json { "products": [ { "id": 1, "href": "https://zmey.co.uk/api/admin/products/1", "sku": "HMR14", "name": "Hammer" }, { "id": 2, "href": "https://zmey.co.uk/api/admin/products/2", "sku": "NLS28", "name": "Nails" } ] } ```
<|file_sep|>api_doc/endpoints/admin/products/GET_index.md.diff original: updated: "href": "https://zmey.co.uk/api/admin/products/1", <|file_sep|>original/api_doc/endpoints/admin/products/GET_index.md -u 22cbbfeaef6085872dbe6c0e978fa098: ``` ### Response ```json { "products": [ { "id": 1, "s...
e40f650ef483ad8e4cd0c9b5eb9305fd9a9e0845
api_doc/endpoints/admin/products/GET_index.md
api_doc/endpoints/admin/products/GET_index.md
Markdown
<|file_sep|>original/astrobin/management/commands/reset_lite_counters.py <|file_sep|>current/astrobin/management/commands/reset_lite_counters.py <|file_sep|>updated/astrobin/management/commands/reset_lite_counters.py
from django.core.management.base import BaseCommand from paypal.standard.ipn import models from subscription.models import UserSubscription class Command(BaseCommand): def handle(self, *args, **options): for us in UserSubscription.objects.filter(subscription__name = 'AstroBin Lite'): profile ...
<|file_sep|>original/astrobin/management/commands/reset_lite_counters.py <|file_sep|>current/astrobin/management/commands/reset_lite_counters.py <|file_sep|>updated/astrobin/management/commands/reset_lite_counters.py from django.core.management.base import BaseCommand from paypal.standard.ipn import models from subs...
c17c78ba7dd1b90a0f8b51e8edb40b974ce0b801
astrobin/management/commands/reset_lite_counters.py
astrobin/management/commands/reset_lite_counters.py
Python
<|file_sep|>original/src/AppBundle/Resources/views/Default/index.html.twig <div class="row"> <div class="col-md-6"> <div class="text-center h2">Forms List</div> <ul class="list-group"> {% for form in listForms %} <li class="list-group-item"> <h3> ...
<div class="row"> <div class="col-md-6"> <div class="text-center h2">Forms List</div> <ul class="list-group"> {% for form in listForms %} <li class="list-group-item"> <h3> <a href="{{ path('use_f...
<|file_sep|>original/src/AppBundle/Resources/views/Default/index.html.twig <div class="row"> <div class="col-md-6"> <div class="text-center h2">Forms List</div> <ul class="list-group"> {% for form in listForms %} <li class="list-group-item"> <h3> ...
0b77aa7ff3149dad88ac567382a036be630e4e90
src/AppBundle/Resources/views/Default/index.html.twig
src/AppBundle/Resources/views/Default/index.html.twig
Twig
<|file_sep|>original/week-4/simple-string.rb <|file_sep|>current/week-4/simple-string.rb <|file_sep|>updated/week-4/simple-string.rb
# Solution Below old_string = 'Ruby is cool' new_string = old_string.reverse.upcase # RSpec Tests. They are included in this file because the local variables you are creating are not accessible across files. If we try to run these files as a separate file per normal operation, the local variable checks will return n...
<|file_sep|>original/week-4/simple-string.rb <|file_sep|>current/week-4/simple-string.rb <|file_sep|>updated/week-4/simple-string.rb # Solution Below old_string = 'Ruby is cool' new_string = old_string.reverse.upcase # RSpec Tests. They are included in this file because the local variables you are creating are not...
c040279bfaddabde17998c4d80ec8a9d672f6f19
week-4/simple-string.rb
week-4/simple-string.rb
Ruby
<|file_sep|>original/src/main/java/common/AppConfig.java import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; @Configuration @En...
package common; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; @Configuration @EnableAutoConfiguration @ComponentScan publ...
<|file_sep|>original/src/main/java/common/AppConfig.java import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; @Configuration @En...
a516fe8dec9d578dc2fe7e88be06d492eeb2f968
src/main/java/common/AppConfig.java
src/main/java/common/AppConfig.java
Java
<|file_sep|>original/scripts/delete_existing_files.sh #!/bin/bash STATIC=/home/ubuntu/static MIGRATIONS=/home/ubuntu/migrations SCRIPTS=/home/ubuntu/scripts APP=/home/.local/bin/features if [ -d "$STATIC" ]; then rm -rf $STATIC fi if [ -d "$MIGRATIONS" ]; then rm -rf $MIGRATIONS fi if [ -d "$SCRIPTS" ]; the...
#!/bin/bash STATIC=/home/ubuntu/static MIGRATIONS=/home/ubuntu/migrations SCRIPTS=/home/ubuntu/scripts APP=/home/ubuntu/.local/bin/features if [ -d "$STATIC" ]; then rm -rf $STATIC fi if [ -d "$MIGRATIONS" ]; then rm -rf $MIGRATIONS fi if [ -d "$SCRIPTS" ]; then rm -rf $SCRIPTS fi if [ -f "$APP" ]; the...
<|file_sep|>original/scripts/delete_existing_files.sh #!/bin/bash STATIC=/home/ubuntu/static MIGRATIONS=/home/ubuntu/migrations SCRIPTS=/home/ubuntu/scripts APP=/home/.local/bin/features if [ -d "$STATIC" ]; then rm -rf $STATIC fi if [ -d "$MIGRATIONS" ]; then rm -rf $MIGRATIONS fi if [ -d "$SCRIPTS" ]; the...
17dc8d5fa503154b99c74e300a6503262d9b1dfd
scripts/delete_existing_files.sh
scripts/delete_existing_files.sh
Shell
<|file_sep|>original/requirements.txt Twisted==15.1.0 beautifulsoup4==4.3.2 psutil==2.1.1 python-dateutil==2.2 ply==3.4 enum34==1.0 twitter==1.14.3 requests==2.13.0 pytimeparse==1.1.0 pymysql==0.6.4 pycrypto==2.6.1 pyasn1==0.1.7 isodate==0.5.1 jq==0.1.4 google-api-python-client==1.5.0 pyxDamerauLevenshtein==1.3.2 re2==...
Twisted==15.1.0 beautifulsoup4==4.5.3 psutil==2.1.1 python-dateutil==2.2 ply==3.4 enum34==1.0 twitter==1.14.3 requests==2.13.0 pytimeparse==1.1.0 pymysql==0.6.4 pycrypto==2.6.1 pyasn1==0.1.7 isodate==0.5.1 jq==0.1.4 google-api-python-client==1.5.0 pyxDamerauLevenshtein==1.3.2 re2==0.2.22 parsedatetime==2.1 cryptography...
<|file_sep|>original/requirements.txt Twisted==15.1.0 beautifulsoup4==4.3.2 psutil==2.1.1 python-dateutil==2.2 ply==3.4 enum34==1.0 twitter==1.14.3 requests==2.13.0 pytimeparse==1.1.0 pymysql==0.6.4 pycrypto==2.6.1 pyasn1==0.1.7 isodate==0.5.1 jq==0.1.4 google-api-python-client==1.5.0 pyxDamerauLevenshtein==1.3.2 re2==...
62049f645dac432de192fe480a1a41f8ba26c365
requirements.txt
requirements.txt
Text
<|file_sep|>original/package.json "dependencies": { "generic-pool": "2.0.3", "buffer-writer": "1.0.0", "pgpass": "0.0.1", "nan": "~0.6.0", "packet-reader": "0.2.0", "pg-types": "1.0.0" }, "devDependencies": { "jshint": "1.1.0", "semver": "~1.1.4", "async": "^0.2.10" }, "scr...
"dependencies": { "generic-pool": "2.0.3", "buffer-writer": "1.0.0", "pgpass": "0.0.1", "nan": "~0.6.0", "packet-reader": "0.2.0", "pg-types": "1.0.0" }, "devDependencies": { "jshint": "1.1.0", "semver": "~1.1.4", "async": "0.2.10" }, "scripts": { "test": "make test-tra...
<|file_sep|>original/package.json "dependencies": { "generic-pool": "2.0.3", "buffer-writer": "1.0.0", "pgpass": "0.0.1", "nan": "~0.6.0", "packet-reader": "0.2.0", "pg-types": "1.0.0" }, "devDependencies": { "jshint": "1.1.0", "semver": "~1.1.4", "async": "^0.2.10" }, "scr...
ecbc61c2bc1b2d5563baea7c01fdd1755a15eafd
package.json
package.json
JSON
<|file_sep|>public/app/snippets.html.diff original: <li> <a href="#" ng-click="paginateNewer()" ng-class="!paginateIsNewer ? 'inactive' : ''">Newer</a> </li> <li> <a href="#" ng-click="paginateOlder()" ng-class="!paginateIsOlder ? 'inactive' : ''">Older</a> </li> updated: <li ng-click="paginateNewer()...
</span> </p> <div class="editor-wrap"> <div id="editor-{{ snippet._id }}" class="editor"> </div><!-- remove space between inline-blocks --><div id="annotations"> <div ng-repeat="range in highlights[snippet._id]" id="annotation-{{ range.id }}"> <div class="note highlighted-...
<|file_sep|>public/app/snippets.html.diff original: <li> <a href="#" ng-click="paginateNewer()" ng-class="!paginateIsNewer ? 'inactive' : ''">Newer</a> </li> <li> <a href="#" ng-click="paginateOlder()" ng-class="!paginateIsOlder ? 'inactive' : ''">Older</a> </li> updated: <li ng-click="paginateNewer()...
8dd7fd095688bb7a1b273398719ba70dca1507b1
public/app/snippets.html
public/app/snippets.html
HTML
<|file_sep|>KataPotter/KataPotterPriceCalculator.cs.diff original: updated: private static readonly double TWO_BOOKS_DISCOUNT_RATE = 0.95; <|file_sep|>original/KataPotter/KataPotterPriceCalculator.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading....
{ public class KataPotterPriceCalculator { private static readonly double BOOK_UNIT_PRICE = 8; private static readonly double TWO_BOOKS_DISCOUNT_RATE = 0.95; public double Calculate(Dictionary<string, int> booksToBuy) { var totalCount = booksToBuy.Sum(i => i.Value);...
<|file_sep|>KataPotter/KataPotterPriceCalculator.cs.diff original: updated: private static readonly double TWO_BOOKS_DISCOUNT_RATE = 0.95; <|file_sep|>original/KataPotter/KataPotterPriceCalculator.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading....
990ed090f91ac08d096b4f8d918732214d5bf81e
KataPotter/KataPotterPriceCalculator.cs
KataPotter/KataPotterPriceCalculator.cs
C#
<|file_sep|>app/assets/scss/_search-page.scss.diff original: updated: @import "_search-result.scss"; <|file_sep|>original/app/assets/scss/_search-page.scss } .option-select-label { display: block; } .filter-field-text { @include core-16; @include box-sizing(border-box); width: 100%; padd...
margin: 5px 0 $gutter; } } .govuk-option-select { margin-bottom: $gutter; } .option-select-label { display: block; } .filter-field-text { @include core-16; @include box-sizing(border-box); width: 100%; padding: 5px; border: 1px solid $border-colour; } } }
<|file_sep|>app/assets/scss/_search-page.scss.diff original: updated: @import "_search-result.scss"; <|file_sep|>original/app/assets/scss/_search-page.scss } .option-select-label { display: block; } .filter-field-text { @include core-16; @include box-sizing(border-box); width: 100%; padd...
0bc9edd97898e8303aa18f2f3eea7a601d564810
app/assets/scss/_search-page.scss
app/assets/scss/_search-page.scss
SCSS
<|file_sep|>original/.travis.yml language: rust script: cargo test --verbose --release branches: only: - master rust: - stable - beta - nightly os: - linux - osx notifications: irc: 'irc.freenode.org#cryptosphere' <|file_sep|>current/.travis.yml language: rust script: cargo test --verbose --releas...
language: rust sudo: false script: cargo test --verbose --release branches: only: - master rust: - stable - beta - nightly os: - linux - osx notifications: irc: 'irc.freenode.org#cryptosphere'
<|file_sep|>original/.travis.yml language: rust script: cargo test --verbose --release branches: only: - master rust: - stable - beta - nightly os: - linux - osx notifications: irc: 'irc.freenode.org#cryptosphere' <|file_sep|>current/.travis.yml language: rust script: cargo test --verbose --releas...
9eb41d382b1e6cd05ad77563626bec7c0a71c1dc
.travis.yml
.travis.yml
YAML
<|file_sep|>original/tests/matchers/test_contain.py import unittest from robber import expect from robber.matchers.contain import Contain class TestAbove(unittest.TestCase): def test_matches(self): expect(Contain({'key': 'value'}, 'key').matches()) == True expect(Contain([1, 2, 3], 2).matches()) ==...
import unittest from robber import expect from robber.matchers.contain import Contain class TestAbove(unittest.TestCase): def test_matches(self): expect(Contain({'key': 'value'}, 'key').matches()) == True expect(Contain([1, 2, 3], 2).matches()) == True expect(Contain((1, 2, 3), 3).matches()...
<|file_sep|>original/tests/matchers/test_contain.py import unittest from robber import expect from robber.matchers.contain import Contain class TestAbove(unittest.TestCase): def test_matches(self): expect(Contain({'key': 'value'}, 'key').matches()) == True expect(Contain([1, 2, 3], 2).matches()) ==...
fb8a70c16bb836405f2f811a203955db28f01d04
tests/matchers/test_contain.py
tests/matchers/test_contain.py
Python
<|file_sep|>original/tools/users/build.sbt name := "PredictionIO Users Tool" version := "0.1" organization := "io.prediction" scalaVersion := "2.9.2" libraryDependencies ++= Seq( "io.prediction" %% "predictionio-commons" % "0.1-SNAPSHOT", "jline" % "jline" % "2.9" ) resolvers ++= Seq( "snapshots" at "http://...
name := "PredictionIO Users Tool" version := "0.1" organization := "io.prediction" scalaVersion := "2.9.2" libraryDependencies ++= Seq( "io.prediction" %% "predictionio-commons" % "0.2-SNAPSHOT", "jline" % "jline" % "2.9" ) resolvers ++= Seq( "snapshots" at "http://oss.sonatype.org/content/repositories/snaps...
<|file_sep|>original/tools/users/build.sbt name := "PredictionIO Users Tool" version := "0.1" organization := "io.prediction" scalaVersion := "2.9.2" libraryDependencies ++= Seq( "io.prediction" %% "predictionio-commons" % "0.1-SNAPSHOT", "jline" % "jline" % "2.9" ) resolvers ++= Seq( "snapshots" at "http://...
9decdd14f07bd504cf8617ea180941528cb57954
tools/users/build.sbt
tools/users/build.sbt
Scala
<|file_sep|>metadata/com.grocerymanager.yml.diff original: AutoName: Grocery Manager updated: AutoName: Grocery manager <|file_sep|>original/metadata/com.grocerymanager.yml AutoName: Grocery Manager Summary: Manage your groceries Description: |- * You can create an inventory of your pantry using this app * This...
Description: |- * You can create an inventory of your pantry using this app * This app will remind you whenever an item is about to expire * You can check where did you put an item * You can check in the inventory before buying a new item RepoType: git Repo: https://gitlab.com/upasana-me/grocerymanager...
<|file_sep|>metadata/com.grocerymanager.yml.diff original: AutoName: Grocery Manager updated: AutoName: Grocery manager <|file_sep|>original/metadata/com.grocerymanager.yml AutoName: Grocery Manager Summary: Manage your groceries Description: |- * You can create an inventory of your pantry using this app * This...
e1ff1f823f20b1560292793adec3e4f5a95b7ee2
metadata/com.grocerymanager.yml
metadata/com.grocerymanager.yml
YAML
<|file_sep|>lib/activeadmin_addons/support/custom_builder.rb.diff original: @options ||= args.last.is_a?(Hash) ? args.last : {} updated: @options ||= has_opts? ? args.last : {} <|file_sep|>original/lib/activeadmin_addons/support/custom_builder.rb def self.render(context, model, *args, &block) new...
protected def data @data ||= block ? block.call(model) : model.send(attribute) end def options @options ||= has_opts? ? args.last : {} end def attribute @attribute ||= has_opts? ? args[0] : args[1] end def has_opts? args[1] && args[1].is_a?(Hash) end e...
<|file_sep|>lib/activeadmin_addons/support/custom_builder.rb.diff original: @options ||= args.last.is_a?(Hash) ? args.last : {} updated: @options ||= has_opts? ? args.last : {} <|file_sep|>original/lib/activeadmin_addons/support/custom_builder.rb def self.render(context, model, *args, &block) new...
4767cf1dd833f5b22afd32b93b99377bf4740290
lib/activeadmin_addons/support/custom_builder.rb
lib/activeadmin_addons/support/custom_builder.rb
Ruby
<|file_sep|>original/requirements.txt aiohttp==3.4.4 flake8==3.6.0 pytest==3.10.0 pytest-asyncio==0.9.0 pytest-cov==2.6.0 pytest-runner==4.2 isort==4.3.4 <|file_sep|>current/requirements.txt aiohttp==3.4.4 flake8==3.6.0 pytest==3.10.0 pytest-asyncio==0.9.0 pytest-cov==2.6.0 pytest-runner==4.2 isort==4.3.4 <|file_sep|>u...
aiohttp==3.4.4 flake8==3.6.0 pytest==4.0.0 pytest-asyncio==0.9.0 pytest-cov==2.6.0 pytest-runner==4.2 isort==4.3.4
<|file_sep|>original/requirements.txt aiohttp==3.4.4 flake8==3.6.0 pytest==3.10.0 pytest-asyncio==0.9.0 pytest-cov==2.6.0 pytest-runner==4.2 isort==4.3.4 <|file_sep|>current/requirements.txt aiohttp==3.4.4 flake8==3.6.0 pytest==3.10.0 pytest-asyncio==0.9.0 pytest-cov==2.6.0 pytest-runner==4.2 isort==4.3.4 <|file_sep|>u...
c819bebead2f15eb0053e5b79fe1dd3df0b3cf7b
requirements.txt
requirements.txt
Text
<|file_sep|>original/requirements/base.txt pygithub==1.29 click==6.6 jinja2==2.8 tqdm==4.8.4 requests==2.11.1 markdown2==2.3.2 <|file_sep|>current/requirements/base.txt pygithub==1.29 click==6.6 jinja2==2.8 tqdm==4.8.4 requests==2.11.1 markdown2==2.3.2 <|file_sep|>updated/requirements/base.txt
pygithub==1.29 click==6.7 jinja2==2.8 tqdm==4.8.4 requests==2.11.1 markdown2==2.3.2
<|file_sep|>original/requirements/base.txt pygithub==1.29 click==6.6 jinja2==2.8 tqdm==4.8.4 requests==2.11.1 markdown2==2.3.2 <|file_sep|>current/requirements/base.txt pygithub==1.29 click==6.6 jinja2==2.8 tqdm==4.8.4 requests==2.11.1 markdown2==2.3.2 <|file_sep|>updated/requirements/base.txt pygithub==1.29 click==6.7...
39b871c9b475bb2984fb35b9f805e923b5c1c945
requirements/base.txt
requirements/base.txt
Text
<|file_sep|>original/package.json { "name": "stringify-object", "version": "2.0.0", "description": "Stringify an object/array like JSON.stringify just without all the double-quotes", "license": "BSD", "repository": "yeoman/stringify-object", "author": { "name": "Sindre Sorhus", "email": "sindresorhu...
{ "name": "stringify-object", "version": "2.0.0", "description": "Stringify an object/array like JSON.stringify just without all the double-quotes", "license": "BSD-2-Clause", "repository": "yeoman/stringify-object", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": ...
<|file_sep|>original/package.json { "name": "stringify-object", "version": "2.0.0", "description": "Stringify an object/array like JSON.stringify just without all the double-quotes", "license": "BSD", "repository": "yeoman/stringify-object", "author": { "name": "Sindre Sorhus", "email": "sindresorhu...
af49e5c90abc28900c64439ccff00bb53b035387
package.json
package.json
JSON
<|file_sep|>original/package.json { "name": "node-env-configuration", "version": "0.0.2", "description": "A node.js module that helps with configuration loading as suggested by twelve factor methodology", "main": "index.js", "scripts": { "test": "mocha -R progress test/test.js" }, "r...
{ "name": "node-env-configuration", "version": "0.0.3", "description": "A node.js module that helps with configuration loading as suggested by twelve factor methodology", "main": "index.js", "scripts": { "test": "mocha -R progress test/test.js" }, "repository": { "type": "git...
<|file_sep|>original/package.json { "name": "node-env-configuration", "version": "0.0.2", "description": "A node.js module that helps with configuration loading as suggested by twelve factor methodology", "main": "index.js", "scripts": { "test": "mocha -R progress test/test.js" }, "r...
8d4b805753148f172729f9ebe953c968d371e5b6
package.json
package.json
JSON
<|file_sep|>original/package.json "scripts": {}, "repository": { "type": "git", "url": "git+https://github.com/moviepilot/eslint-config-moviepilot.git" }, "keywords": [ "eslint", "eslintconfig" ], "author": "Alessandro Delgado <adelgado1313@gmail.com>", "bugs": { "url": "https://github...
"scripts": {}, "repository": { "type": "git", "url": "git+https://github.com/moviepilot/eslint-config-moviepilot.git" }, "keywords": [ "eslint", "eslintconfig" ], "author": "Alessandro Delgado <adelgado1313@gmail.com>", "bugs": { "url": "https://github.com/moviepilot/eslint-config-movi...
<|file_sep|>original/package.json "scripts": {}, "repository": { "type": "git", "url": "git+https://github.com/moviepilot/eslint-config-moviepilot.git" }, "keywords": [ "eslint", "eslintconfig" ], "author": "Alessandro Delgado <adelgado1313@gmail.com>", "bugs": { "url": "https://github...
92c5460313c634abaf7ae603240fa3358e9dda72
package.json
package.json
JSON
<|file_sep|>original/Sources/Rosetta/Enchants/Power.cpp return m_powerTask; } std::vector<ITask*>& Power::GetDeathrattleTask() { return m_deathrattleTask; } void Power::ClearData() { m_powerTask.clear(); m_deathrattleTask.clear(); } void Power::AddAura(Aura&& aura) { m_aura = std::move(aura); } ...
return m_powerTask; } std::vector<ITask*>& Power::GetDeathrattleTask() { return m_deathrattleTask; } void Power::ClearData() { m_aura.reset(); m_powerTask.clear(); m_deathrattleTask.clear(); } void Power::AddAura(Aura&& aura) { m_aura = std::move(aura); } void Power::AddEnchant(Enchant&& enc...
<|file_sep|>original/Sources/Rosetta/Enchants/Power.cpp return m_powerTask; } std::vector<ITask*>& Power::GetDeathrattleTask() { return m_deathrattleTask; } void Power::ClearData() { m_powerTask.clear(); m_deathrattleTask.clear(); } void Power::AddAura(Aura&& aura) { m_aura = std::move(aura); } ...
5aa4d72cb6818e742326fa68e05103a3a5893b89
Sources/Rosetta/Enchants/Power.cpp
Sources/Rosetta/Enchants/Power.cpp
C++
<|file_sep|>original/C++/149_Max_Points_on_a_Line.cpp <|file_sep|>current/C++/149_Max_Points_on_a_Line.cpp <|file_sep|>updated/C++/149_Max_Points_on_a_Line.cpp
// 149. Max Points on a Line /** * Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. * * Tags: Hash Table, Math * * Author: Kuang Qin */ #include "stdafx.h" #include <vector> #include <unordered_map> using namespace std; /** * Definition for a point. */ struc...
<|file_sep|>original/C++/149_Max_Points_on_a_Line.cpp <|file_sep|>current/C++/149_Max_Points_on_a_Line.cpp <|file_sep|>updated/C++/149_Max_Points_on_a_Line.cpp // 149. Max Points on a Line /** * Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. * * Tags: Hash Table...
4f23a206ecc89bcd4451a3092c248ad884216f73
C++/149_Max_Points_on_a_Line.cpp
C++/149_Max_Points_on_a_Line.cpp
C++
<|file_sep|>original/src/Database/Titles/Title.php protected $title = ''; /** * Convert the given string into a human-readable format. * * @param string $value * @return string */ protected function humanize($value) { // First we'll convert the string to snake case. T...
protected $title = ''; /** * Convert the given string into a human-readable format. * * @param string $value * @return string */ protected function humanize($value) { // Older versions of Laravel's inflector strip out spaces // in the original string, so we'll...
<|file_sep|>original/src/Database/Titles/Title.php protected $title = ''; /** * Convert the given string into a human-readable format. * * @param string $value * @return string */ protected function humanize($value) { // First we'll convert the string to snake case. T...
b4448fef288016566b84988651db807a4daef02f
src/Database/Titles/Title.php
src/Database/Titles/Title.php
PHP
<|file_sep|>original/githublist/parser.py import requests import collections API_URL = 'https://api.github.com/users/{}/repos' def main(user): return parse(request(user)) def request(user): return requests.get(url=API_URL.format(user)) def parse(response): repos = response.json() data = [] if...
import requests import collections API_URL = 'https://api.github.com/users/{}/repos?per_page=100' def main(user): return parse(request(user)) def request(user): return requests.get(url=API_URL.format(user)) def parse(response): repos = response.json() data = [] if repos is None: retur...
<|file_sep|>original/githublist/parser.py import requests import collections API_URL = 'https://api.github.com/users/{}/repos' def main(user): return parse(request(user)) def request(user): return requests.get(url=API_URL.format(user)) def parse(response): repos = response.json() data = [] if...
43ab1500719665b44e3b4eca4def9002711c2ee8
githublist/parser.py
githublist/parser.py
Python
<|file_sep|>original/stateoscope.gemspec lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'stateoscope/version' Gem::Specification.new do |spec| spec.name = 'stateoscope' spec.version = Stateoscope::VERSION spec.authors = ['Patrick Os...
lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'stateoscope/version' Gem::Specification.new do |spec| spec.name = 'stateoscope' spec.version = Stateoscope::VERSION spec.authors = ['Patrick Oscity'] spec.email = ['patrick.o...
<|file_sep|>original/stateoscope.gemspec lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'stateoscope/version' Gem::Specification.new do |spec| spec.name = 'stateoscope' spec.version = Stateoscope::VERSION spec.authors = ['Patrick Os...
8537eccb0cab6c17bffe4f7b535e0d61abb99726
stateoscope.gemspec
stateoscope.gemspec
Ruby
<|file_sep|>packages/katex-extension/src/index.ts.diff original: updated: IRenderMime } from '@jupyterlab/rendermime-interfaces'; import { <|file_sep|>packages/katex-extension/src/index.ts.diff original: class KatexTypesetter implements ILatexTypesetter { updated: class KatexTypesetter implements IRenderMime.ILatex...
export class KatexTypesetter implements IRenderMime.ILatexTypesetter { /** * Typeset the math in a node. */ typeset(node: HTMLElement): void { renderMathInElement(node); } } /** * The KaTex extension. */ const katexPlugin: JupyterLabPlugin<ILatexTypesetter> = { id: 'jupyter.extensions.katex', pro...
<|file_sep|>packages/katex-extension/src/index.ts.diff original: updated: IRenderMime } from '@jupyterlab/rendermime-interfaces'; import { <|file_sep|>packages/katex-extension/src/index.ts.diff original: class KatexTypesetter implements ILatexTypesetter { updated: class KatexTypesetter implements IRenderMime.ILatex...
aacb85d75084c4dfaf2d909affe2a78a821323e4
packages/katex-extension/src/index.ts
packages/katex-extension/src/index.ts
TypeScript
<|file_sep|>original/doc/WebSite/Articles/How-To/custom-session-fields.md <|file_sep|>current/doc/WebSite/Articles/How-To/custom-session-fields.md <|file_sep|>updated/doc/WebSite/Articles/How-To/custom-session-fields.md
## Introduction In this article, i will explain how to add custom field to AbpSession in ASP.NET Core. ### Create Custom Session First, create a custom session object that implement `ClaimsAbpSession`. Define your own session and add your custom field to it. Then, you can inject `MyAppSession` and use it's new prope...
<|file_sep|>original/doc/WebSite/Articles/How-To/custom-session-fields.md <|file_sep|>current/doc/WebSite/Articles/How-To/custom-session-fields.md <|file_sep|>updated/doc/WebSite/Articles/How-To/custom-session-fields.md ## Introduction In this article, i will explain how to add custom field to AbpSession in ASP.NET ...
34e5f20bf78328fb81a5311ae2da2c893f9bee09
doc/WebSite/Articles/How-To/custom-session-fields.md
doc/WebSite/Articles/How-To/custom-session-fields.md
Markdown
<|file_sep|>src/flat-metadata/index.js.diff original: updated: const cloneObject = (obj) => JSON.parse(JSON.stringify(obj)); <|file_sep|>original/src/flat-metadata/index.js item.groupName = groupName; addItemsTo[key] = item; } } const toInt = (string) => Number.parseInt(string, 10); function buildItems(fla...
const items = groups[groupName].items; for (let key in items) { const item = cloneObject(items[key]); item.groupName = groupName; addItemsTo[key] = item; } } const toInt = (string) => Number.parseInt(string, 10); function buildItems(flattenedItems) { const items = []; const ids = Object.keys(fla...
<|file_sep|>src/flat-metadata/index.js.diff original: updated: const cloneObject = (obj) => JSON.parse(JSON.stringify(obj)); <|file_sep|>original/src/flat-metadata/index.js item.groupName = groupName; addItemsTo[key] = item; } } const toInt = (string) => Number.parseInt(string, 10); function buildItems(fla...
de6e49b30f2e887346f0025689ffe27dbb4544f7
src/flat-metadata/index.js
src/flat-metadata/index.js
JavaScript
<|file_sep|>original/requirements.txt # # This file is autogenerated by pip-compile # To update, run: # # pip-compile --output-file requirements.txt requirements.txt # doublemetaphone==0.1 future==0.15.2 probableparsing==0.0.1 probablepeople==0.5 python-crfsuite==0.8.4 python-dateutil==2.5.3 six==1.10.0 vobject==0.9...
# # This file is autogenerated by pip-compile # To update, run: # # pip-compile --output-file requirements.txt requirements.txt # doublemetaphone==0.1 future==0.15.2 probableparsing==0.0.1 probablepeople==0.5.2 python-crfsuite==0.8.4 python-dateutil==2.5.3 six==1.10.0 vobject==0.9.2
<|file_sep|>original/requirements.txt # # This file is autogenerated by pip-compile # To update, run: # # pip-compile --output-file requirements.txt requirements.txt # doublemetaphone==0.1 future==0.15.2 probableparsing==0.0.1 probablepeople==0.5 python-crfsuite==0.8.4 python-dateutil==2.5.3 six==1.10.0 vobject==0.9...
6e37bc81cca0c6c93279791156d45391e9d38413
requirements.txt
requirements.txt
Text
<|file_sep|>.travis.yml.diff original: updated: sudo: false <|file_sep|>original/.travis.yml language: node_js node_js: - "0.11" - "0.10" before_install: - npm update -g npm - npm install -g bob coveralls --loglevel error script: - bob build - cat .bob/coverage/buster-istanbul/lcov.info | coveralls <|file_...
sudo: false language: node_js node_js: - "0.11" - "0.10" - "0.12" - iojs before_install: - npm update -g npm - npm install -g bob coveralls --loglevel error script: - bob build - cat .bob/coverage/buster-istanbul/lcov.info | coveralls
<|file_sep|>.travis.yml.diff original: updated: sudo: false <|file_sep|>original/.travis.yml language: node_js node_js: - "0.11" - "0.10" before_install: - npm update -g npm - npm install -g bob coveralls --loglevel error script: - bob build - cat .bob/coverage/buster-istanbul/lcov.info | coveralls <|file_...
7a0ca399371514b60fb04f2bbdfaf17ace155ffe
.travis.yml
.travis.yml
YAML
<|file_sep|>packages/pa/packer.yaml.diff original: hash: 52de387d712663dc94d68aa019fdcdfc31c1089663280e5fb9b7c79a4e4db165 updated: hash: b81d8c0d9d25607b88b64bb8e23e52a4d7a214a037133fca6c4704713df01845 <|file_sep|>packages/pa/packer.yaml.diff original: updated: - '0.1.9' <|file_sep|>original/packages/pa/packer.yaml sy...
changelog: '' basic-deps: bytestring: -any base: ! '>=3 && <5' ghc-prim: -any transformers: -any all-versions: - '0.1.0' - '0.1.1' - '0.1.3' - '0.1.4' - '0.1.5' - '0.1.6' - '0.1.7' - '0.1.8' - '0.1.9' author: Vincent Hanquez <vincent@snarc.org> latest: '0.1.9' description-type: haddock description: Fast byte se...
<|file_sep|>packages/pa/packer.yaml.diff original: hash: 52de387d712663dc94d68aa019fdcdfc31c1089663280e5fb9b7c79a4e4db165 updated: hash: b81d8c0d9d25607b88b64bb8e23e52a4d7a214a037133fca6c4704713df01845 <|file_sep|>packages/pa/packer.yaml.diff original: updated: - '0.1.9' <|file_sep|>original/packages/pa/packer.yaml sy...
b873df8179c6db2b32296b8e8038404c1fe877d8
packages/pa/packer.yaml
packages/pa/packer.yaml
YAML
<|file_sep|>original/app/views/comments/_comment.html.erb <article class="media comment"> <div class="media-left"> <%= gravatar_image_tag comment.author.email, alt: comment.author.name, gravatar: { default: :identicon, size: 50 } %> </div> <div class="media-body"> ...
<article class="media comment"> <div class="media-left"> <%= gravatar_image_tag comment.author.email, alt: comment.author.name, gravatar: { default: :identicon, size: 50 } %> </div> <div class="media-body"> <div class="comment-byline"> <%= comment_...
<|file_sep|>original/app/views/comments/_comment.html.erb <article class="media comment"> <div class="media-left"> <%= gravatar_image_tag comment.author.email, alt: comment.author.name, gravatar: { default: :identicon, size: 50 } %> </div> <div class="media-body"> ...
c8fda3928a867bdea7c947b01916d649544b5575
app/views/comments/_comment.html.erb
app/views/comments/_comment.html.erb
HTML+ERB
<|file_sep|>.kitchen.yml.diff original: updated: - name: centos-7.1 - name: debian-7.8 run_list: apt::default - name: debian-8.1 run_list: apt::default <|file_sep|>original/.kitchen.yml platforms: - name: centos-5.11 - name: centos-6.7 - name: fedora-21 - name: freebsd-9.3 run_list: freebsd::...
- name: centos-5.11 - name: centos-6.7 - name: centos-7.1 - name: debian-7.8 run_list: apt::default - name: debian-8.1 run_list: apt::default - name: fedora-21 - name: freebsd-9.3 run_list: freebsd::portsnap - name: freebsd-10.2 run_list: freebsd::portsnap - name: macosx-10.9 - name:...
<|file_sep|>.kitchen.yml.diff original: updated: - name: centos-7.1 - name: debian-7.8 run_list: apt::default - name: debian-8.1 run_list: apt::default <|file_sep|>original/.kitchen.yml platforms: - name: centos-5.11 - name: centos-6.7 - name: fedora-21 - name: freebsd-9.3 run_list: freebsd::...
ca256d4a39d41f3c258dfb9f76fef244f77d5fea
.kitchen.yml
.kitchen.yml
YAML
<|file_sep|>original/db/migrate/20100224150617_turn_outof_into_float.rb class TurnOutOfIntoFloat < ActiveRecord::Migration def self.up remove_column :grade_entry_items, :out_of add_column :grade_entry_items, :out_of, :float end def self.down remove_column :grade_entry_items, :out_of add_column :g...
class TurnOutofIntoFloat < ActiveRecord::Migration def self.up remove_column :grade_entry_items, :out_of add_column :grade_entry_items, :out_of, :float end def self.down remove_column :grade_entry_items, :out_of add_column :grade_entry_items, :out_of, :string end end
<|file_sep|>original/db/migrate/20100224150617_turn_outof_into_float.rb class TurnOutOfIntoFloat < ActiveRecord::Migration def self.up remove_column :grade_entry_items, :out_of add_column :grade_entry_items, :out_of, :float end def self.down remove_column :grade_entry_items, :out_of add_column :g...
eca5fd2e8fcc092b6dc412e81410e0fadf3e8105
db/migrate/20100224150617_turn_outof_into_float.rb
db/migrate/20100224150617_turn_outof_into_float.rb
Ruby
<|file_sep|>original/facilities/migrations/set_facility_code_sequence_min_value.py <|file_sep|>current/facilities/migrations/set_facility_code_sequence_min_value.py <|file_sep|>updated/facilities/migrations/set_facility_code_sequence_min_value.py
# -*- coding: utf-8 -*- from django.db import models, migrations from facilities.models import Facility def set_min_code_value(apps, schema_editor): from django.db import connection cursor = connection.cursor() sql = """ ALTER SEQUENCE facilities_facility_code_seq restart 100000 start 100000 minv...
<|file_sep|>original/facilities/migrations/set_facility_code_sequence_min_value.py <|file_sep|>current/facilities/migrations/set_facility_code_sequence_min_value.py <|file_sep|>updated/facilities/migrations/set_facility_code_sequence_min_value.py # -*- coding: utf-8 -*- from django.db import models, migrations from f...
50618c1f5cce31612d1278e7be0bfd14a670736a
facilities/migrations/set_facility_code_sequence_min_value.py
facilities/migrations/set_facility_code_sequence_min_value.py
Python
<|file_sep|>original/src/client/components/home/home.jade h1.home-title CEE's Interactive Activities ul.home-activity-list each activity in activities li.home-activity-item a.home-activity-link(href='#activity/' + activity.slug + '/') h3.home-activity-name=activity.config.name p.home-activi...
h1.home-title CEE's Interactive Activities ul.home-activity-list each activity in activities li.home-activity-item a.home-activity-link(href='#activity/' + activity.slug + '/') h3.home-activity-name=activity.config.name p.home-activity-desc= activity.config.shortDesc h2.home-title For Inst...
<|file_sep|>original/src/client/components/home/home.jade h1.home-title CEE's Interactive Activities ul.home-activity-list each activity in activities li.home-activity-item a.home-activity-link(href='#activity/' + activity.slug + '/') h3.home-activity-name=activity.config.name p.home-activi...
06e43502824c4cf8457b7bf871b268cc5aea3b1d
src/client/components/home/home.jade
src/client/components/home/home.jade
Jade
<|file_sep|>original/tests/changes/api/test_build_details.py <|file_sep|>current/tests/changes/api/test_build_details.py <|file_sep|>updated/tests/changes/api/test_build_details.py
from datetime import datetime from changes.constants import Status from changes.testutils import APITestCase class BuildDetailsTest(APITestCase): def test_simple(self): previous_build = self.create_build( self.project, date_created=datetime(2013, 9, 19, 22, 15, 23), status=Status....
<|file_sep|>original/tests/changes/api/test_build_details.py <|file_sep|>current/tests/changes/api/test_build_details.py <|file_sep|>updated/tests/changes/api/test_build_details.py from datetime import datetime from changes.constants import Status from changes.testutils import APITestCase class BuildDetailsTest(AP...
a37521ef7b6ce40b6a182c6ff42c62f30fb12537
tests/changes/api/test_build_details.py
tests/changes/api/test_build_details.py
Python
<|file_sep|>.travis.yml.diff original: updated: - env: TOXENV=py27-django111 - env: TOXENV=py34-django111 - env: TOXENV=py35-django111 <|file_sep|>original/.travis.yml - TOXENV=py34-django111 - TOXENV=py34-django_master - TOXENV=py35-django18 - TOXENV=py35-django110 - TOXENV=py35-django...
- TOXENV=py27-django110 - TOXENV=py27-django111 - TOXENV=py34-django18 - TOXENV=py34-django110 - TOXENV=py34-django111 - TOXENV=py34-django_master - TOXENV=py35-django18 - TOXENV=py35-django110 - TOXENV=py35-django111 - TOXENV=py35-django_master matrix: allow_failures: - en...
<|file_sep|>.travis.yml.diff original: updated: - env: TOXENV=py27-django111 - env: TOXENV=py34-django111 - env: TOXENV=py35-django111 <|file_sep|>original/.travis.yml - TOXENV=py34-django111 - TOXENV=py34-django_master - TOXENV=py35-django18 - TOXENV=py35-django110 - TOXENV=py35-django...
7dbc924fa7c02af18b29fc0f29448f65dccfe172
.travis.yml
.travis.yml
YAML
<|file_sep|>original/README.md # Memerbot Memerbot is a Messenger bot for making memes. See it in action at https://m.me/memerbot. <|file_sep|>current/README.md # Memerbot Memerbot is a Messenger bot for making memes. See it in action at https://m.me/memerbot. <|file_sep|>updated/README.md
# Memerbot Memerbot is a Messenger bot for making memes. See it in action at https://m.me/memerbot. ## Deployment Changes pushed to Github are auto-deployed to the staging instance. Promote from staging to prod on heroku.com.
<|file_sep|>original/README.md # Memerbot Memerbot is a Messenger bot for making memes. See it in action at https://m.me/memerbot. <|file_sep|>current/README.md # Memerbot Memerbot is a Messenger bot for making memes. See it in action at https://m.me/memerbot. <|file_sep|>updated/README.md # Memerbot Memerbot is a M...
2171e42526de09d5af10b09c7ebe12870d014add
README.md
README.md
Markdown
<|file_sep|>original/closed_struct.gemspec $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'closed_struct/version' Gem::Specification.new do |spec| spec.name = "closed_struct" spec.version = ClosedStruct::VERSION spec.authors = ["Paweł Obrok"] spec.email = ["pawel.o...
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'closed_struct/version' Gem::Specification.new do |spec| spec.name = "closed_struct" spec.version = ClosedStruct::VERSION spec.authors = ["Paweł Obrok"] spec.email = ["pawel.obrok@gmail.com"] spec.summary = %q{...
<|file_sep|>original/closed_struct.gemspec $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'closed_struct/version' Gem::Specification.new do |spec| spec.name = "closed_struct" spec.version = ClosedStruct::VERSION spec.authors = ["Paweł Obrok"] spec.email = ["pawel.o...
bf33be89353273bfa8f8bb18f35a29607cb8b585
closed_struct.gemspec
closed_struct.gemspec
Ruby
<|file_sep|>original/onderzoek/structuur.md <|file_sep|>current/onderzoek/structuur.md <|file_sep|>updated/onderzoek/structuur.md
# Onderzoek Docker # Inleiding # Inhoudsopgave # Opzet onderzoek ## Aanleiding [ ... Kan ook de "probleemstelling" besproken worden ... ] ## Doelstelling [ ... Wat willen we met dit onderzoek bereiken? ... ] ## Onderzoeksvragen 1. Biedt Docker toegevoegde waarde voor een ontwikkelteam? (Centrale vraag) 2. Waarom D...
<|file_sep|>original/onderzoek/structuur.md <|file_sep|>current/onderzoek/structuur.md <|file_sep|>updated/onderzoek/structuur.md # Onderzoek Docker # Inleiding # Inhoudsopgave # Opzet onderzoek ## Aanleiding [ ... Kan ook de "probleemstelling" besproken worden ... ] ## Doelstelling [ ... Wat willen we met dit on...
f3594f00310d5d78bba616d20f278f7af53697e9
onderzoek/structuur.md
onderzoek/structuur.md
Markdown
<|file_sep|>original/README.md # koodikoulu-site WIP <|file_sep|>current/README.md # koodikoulu-site WIP <|file_sep|>updated/README.md
# koodikoulu-site Source code for [koodikoulu.fi](http://koodikoulu.fi/). (Work In Progress) Development ----------- Python version: `python 3.4` Installing the requirements: `pip install -r requirements.txt` Initialize database: `python3 manage.py migrate` Run the development server: `python3 manage.py ru...
<|file_sep|>original/README.md # koodikoulu-site WIP <|file_sep|>current/README.md # koodikoulu-site WIP <|file_sep|>updated/README.md # koodikoulu-site Source code for [koodikoulu.fi](http://koodikoulu.fi/). (Work In Progress) Development ----------- Python version: `python 3.4` Installing the requirements: `...
be29da620cec20f353d346e8c080c58cf82372da
README.md
README.md
Markdown
<|file_sep|>original/games/management/commands/populate_popularity.py <|file_sep|>current/games/management/commands/populate_popularity.py <|file_sep|>updated/games/management/commands/populate_popularity.py
"""Updates the popularity of all games""" from django.core.management.base import BaseCommand from django.db.models import Count from games.models import Game class Command(BaseCommand): """Command to update the popularity""" help = "My shiny new management command." def handle(self, *args, **options): ...
<|file_sep|>original/games/management/commands/populate_popularity.py <|file_sep|>current/games/management/commands/populate_popularity.py <|file_sep|>updated/games/management/commands/populate_popularity.py """Updates the popularity of all games""" from django.core.management.base import BaseCommand from django.db.m...
10695f2ce7488184f8c0c306cf33e35533708ef4
games/management/commands/populate_popularity.py
games/management/commands/populate_popularity.py
Python
<|file_sep|>app/assets/stylesheets/content/modals.scss.diff original: updated: display: flex; align-items: center; justify-content: center; <|file_sep|>app/assets/stylesheets/content/modals.scss.diff original: width: 85%; updated: width: 100%; <|file_sep|>original/app/assets/stylesheets/conten...
} } .case-search, .new-text, .new-link { margin: 15px 0; display: flex; align-items: center; justify-content: center; input[type=text] { display: inline-block; width: 100%; } input[type=submit] { @extend .btn; @extend .btn-primary; width: 30%; hei...
<|file_sep|>app/assets/stylesheets/content/modals.scss.diff original: updated: display: flex; align-items: center; justify-content: center; <|file_sep|>app/assets/stylesheets/content/modals.scss.diff original: width: 85%; updated: width: 100%; <|file_sep|>original/app/assets/stylesheets/conten...
7a2e23acd824842b88d32b87cf3ea6d78ffbb235
app/assets/stylesheets/content/modals.scss
app/assets/stylesheets/content/modals.scss
SCSS
<|file_sep|>db/migrate/20160725104020_merge_request_diff_remove_uniq.rb.diff original: if index_exists?(:merge_request_diffs, :merge_request_id) remove_index :merge_request_diffs, :merge_request_id updated: constraint_name = 'merge_request_diffs_merge_request_id_key' transaction do if index_exi...
remove_index(:merge_request_diffs, :merge_request_id) end # In some bizarre cases PostgreSQL might have a separate unique constraint # that we'll need to drop. if constraint_exists?(constraint_name) && Gitlab::Database.postgresql? execute("ALTER TABLE merge_request_diffs DROP CO...
<|file_sep|>db/migrate/20160725104020_merge_request_diff_remove_uniq.rb.diff original: if index_exists?(:merge_request_diffs, :merge_request_id) remove_index :merge_request_diffs, :merge_request_id updated: constraint_name = 'merge_request_diffs_merge_request_id_key' transaction do if index_exi...
fd4ad6546278aef904f02dffe106b41872a9068c
db/migrate/20160725104020_merge_request_diff_remove_uniq.rb
db/migrate/20160725104020_merge_request_diff_remove_uniq.rb
Ruby
<|file_sep|>original/lib/avalon/sanitizer.rb # Copyright 2011-2017, The Trustees of Indiana University and Northwestern # University. Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # # You may obtain a copy of the License at # # ...
# Copyright 2011-2017, The Trustees of Indiana University and Northwestern # University. Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # ...
<|file_sep|>original/lib/avalon/sanitizer.rb # Copyright 2011-2017, The Trustees of Indiana University and Northwestern # University. Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # # You may obtain a copy of the License at # # ...
33daf75e5675737989372c0ffb539a019aa7fb18
lib/avalon/sanitizer.rb
lib/avalon/sanitizer.rb
Ruby
<|file_sep|>original/index.md --- title: Home --- Hi. I'm Željko Filipin. I am a software engineer in test. I work as a contractor at the [Wikimedia Foundation](https://wikimediafoundation.org/). For more information take a look at my [LinkedIn](https://www.linkedin.com/in/zeljkofilipin) profile. # PGP [1DE8 1558 80...
--- title: Home --- Hi. I'm Željko Filipin. I am a software engineer in test. I work as a contractor at the [Wikimedia Foundation](https://wikimediafoundation.org/). For more information take a look at my [LinkedIn](https://www.linkedin.com/in/zeljkofilipin) profile. # PGP [1DE8 1558 80C1 7434 9E65 1197 1F64 8D48 55...
<|file_sep|>original/index.md --- title: Home --- Hi. I'm Željko Filipin. I am a software engineer in test. I work as a contractor at the [Wikimedia Foundation](https://wikimediafoundation.org/). For more information take a look at my [LinkedIn](https://www.linkedin.com/in/zeljkofilipin) profile. # PGP [1DE8 1558 80...
017f2f3b81d53a88cdcfa5ec475f5b3b0844f6e2
index.md
index.md
Markdown
<|file_sep|>original/bin/init-db.sh <|file_sep|>current/bin/init-db.sh <|file_sep|>updated/bin/init-db.sh
#! /bin/bash (( !$# )) && 1>&2 echo No arguments supplied! && exit 1 DBNAME=test.db DBINPUT=$(mktemp --suffix=.sql) #trap "exit 1" ERR SIGINT #trap "rm -f $DBINPUT" 0 echo "Converting input file..." 1>&2 echo "PRAGMA foreign_keys = OFF;" >> $DBINPUT echo "CREATE TABLE events (id INTEGER PRIMARY KEY, facility INTEGE...
<|file_sep|>original/bin/init-db.sh <|file_sep|>current/bin/init-db.sh <|file_sep|>updated/bin/init-db.sh #! /bin/bash (( !$# )) && 1>&2 echo No arguments supplied! && exit 1 DBNAME=test.db DBINPUT=$(mktemp --suffix=.sql) #trap "exit 1" ERR SIGINT #trap "rm -f $DBINPUT" 0 echo "Converting input file..." 1>&2 echo...
4238bb44ef62c70531286c7d982538bb26ed38bf
bin/init-db.sh
bin/init-db.sh
Shell
<|file_sep|>original/bootstrap.sh #!/usr/bin/env bash # download smc -- not necessary, already included in the codebase # wget -O - http://sourceforge.net/projects/smc/files/smc/6_1_0/smc_6_1_0.tgz/download | tar -xz # mv smc_6_1_0 foreign/smc_6_1_0 apt-get update # set up git and vim -- not necessary, code editing...
#!/usr/bin/env bash # download smc -- not necessary, already included in the codebase # wget -O - http://sourceforge.net/projects/smc/files/smc/6_1_0/smc_6_1_0.tgz/download | tar -xz # mv smc_6_1_0 foreign/smc_6_1_0 apt-get update # set up git and vim -- not necessary, code editing & git takes place outside the vm ...
<|file_sep|>original/bootstrap.sh #!/usr/bin/env bash # download smc -- not necessary, already included in the codebase # wget -O - http://sourceforge.net/projects/smc/files/smc/6_1_0/smc_6_1_0.tgz/download | tar -xz # mv smc_6_1_0 foreign/smc_6_1_0 apt-get update # set up git and vim -- not necessary, code editing...
a545ca7dc5333ec7c41b5203a5b8d517b08cf872
bootstrap.sh
bootstrap.sh
Shell
<|file_sep|>original/.github/workflows/mkdocs-requirements.txt click==8.1.3 future==0.18.2 Jinja2==3.1.2 livereload==2.6.3 lunr==0.6.2 Markdown==3.4.1 MarkupSafe==2.1.1 mkdocs==1.3.0 mkdocs-macros-plugin==0.7.0 mkdocs-material==8.4.3 mkdocs-material-extensions==1.0.3 Pygments==2.13.0 pymdown-extensions==9.5 python-date...
click==8.1.3 future==0.18.2 Jinja2==3.1.2 livereload==2.6.3 lunr==0.6.2 Markdown==3.4.1 MarkupSafe==2.1.1 mkdocs==1.3.0 mkdocs-macros-plugin==0.7.0 mkdocs-material==8.4.3 mkdocs-material-extensions==1.0.3 Pygments==2.13.0 pymdown-extensions==9.5 python-dateutil==2.8.2 PyYAML==6.0 repackage==0.7.3 six==1.16.0 termcolor=...
<|file_sep|>original/.github/workflows/mkdocs-requirements.txt click==8.1.3 future==0.18.2 Jinja2==3.1.2 livereload==2.6.3 lunr==0.6.2 Markdown==3.4.1 MarkupSafe==2.1.1 mkdocs==1.3.0 mkdocs-macros-plugin==0.7.0 mkdocs-material==8.4.3 mkdocs-material-extensions==1.0.3 Pygments==2.13.0 pymdown-extensions==9.5 python-date...
ec7cdd296b4d2045eb5bcdb1ef1e27497bea6151
.github/workflows/mkdocs-requirements.txt
.github/workflows/mkdocs-requirements.txt
Text
<|file_sep|>original/test/test-functional.js describe('ProgressBar', function() { it('animate should change SVG path stroke-dashoffset property', function(done) { // Append progress bar to body since adding a custom HTML and div // with Karma was not that trivial compared to Testem var line...
setTimeout(function checkOffsetHasChanged() { var offsetMiddleOfAnimation = utils.getComputedStyle( line.path, 'stroke-dashoffset' ); expect(offset).not.to.be(offsetMiddleOfAnimation); done(); }, 100); }); it('set...
<|file_sep|>original/test/test-functional.js describe('ProgressBar', function() { it('animate should change SVG path stroke-dashoffset property', function(done) { // Append progress bar to body since adding a custom HTML and div // with Karma was not that trivial compared to Testem var line...
980b17b33c32250b6b175cd66d733abd9017b8f0
test/test-functional.js
test/test-functional.js
JavaScript
<|file_sep|>original/config/shell/init.fish function shell::termcolor if not string match --quiet "256color" $TERM set --export --global TERM $argv[1] end end function shell::color if test -f "$HOME/.config/shell/$argv[1]" eval sh "$HOME/.config/shell/$argv[1]" end end function shell::dircolors if n...
function shell::termcolor if not string match --quiet "*256color*" $TERM set --export --global TERM $argv[1] end end function shell::color if test -f "$HOME/.config/shell/$argv[1]" eval sh "$HOME/.config/shell/$argv[1]" end end function shell::dircolors if not test -f "$HOME/.config/shell/$argv[1]" ...
<|file_sep|>original/config/shell/init.fish function shell::termcolor if not string match --quiet "256color" $TERM set --export --global TERM $argv[1] end end function shell::color if test -f "$HOME/.config/shell/$argv[1]" eval sh "$HOME/.config/shell/$argv[1]" end end function shell::dircolors if n...
2c184bf649e3345e26188b3fe42459d07d8f62ab
config/shell/init.fish
config/shell/init.fish
fish
<|file_sep|>README.md.diff original: This model simulates the transmission dynamics of two competing strains, i.e. a hospital-adapted resistant strain and a community-adapted sensitive strain. updated: This release contains additional sensitivity analysis showing the impact of changing the degree of bacterial inferenc...
# Why susceptible bacteria are resistant to hospital infection control This release contains additional sensitivity analysis showing the impact of changing the degree of bacterial inference and mixing. This model simulates the transmission dynamics of two competing strains, i.e. a hospital-adapted resistant strain a...
<|file_sep|>README.md.diff original: This model simulates the transmission dynamics of two competing strains, i.e. a hospital-adapted resistant strain and a community-adapted sensitive strain. updated: This release contains additional sensitivity analysis showing the impact of changing the degree of bacterial inferenc...
cb1c5ee954b4b7eed38635de49d51f99fad73963
README.md
README.md
Markdown
<|file_sep|>fluent-plugin-conditional_filter.gemspec.diff original: updated: spec.add_development_dependency 'test-unit' <|file_sep|>original/fluent-plugin-conditional_filter.gemspec spec.name = 'fluent-plugin-conditional_filter' spec.version = '0.0.2' spec.authors = ['Kentaro Kuribayashi'...
spec.name = 'fluent-plugin-conditional_filter' spec.version = '0.0.2' spec.authors = ['Kentaro Kuribayashi'] spec.email = ['kentarok@gmail.com'] spec.description = %q{A fluent plugin that provides conditional filters} spec.summary = %q{A fluent plugin that provides condi...
<|file_sep|>fluent-plugin-conditional_filter.gemspec.diff original: updated: spec.add_development_dependency 'test-unit' <|file_sep|>original/fluent-plugin-conditional_filter.gemspec spec.name = 'fluent-plugin-conditional_filter' spec.version = '0.0.2' spec.authors = ['Kentaro Kuribayashi'...
205872580e09236bc2d7787f7995979e5037dc6e
fluent-plugin-conditional_filter.gemspec
fluent-plugin-conditional_filter.gemspec
Ruby
<|file_sep|>original/script/compile-coffee.py import os import subprocess import sys from lib.util import * SOURCE_ROOT = os.path.dirname(os.path.dirname(__file__)) def main(): input_file = sys.argv[1] output_dir = os.path.dirname(sys.argv[2]) coffee = os.path.join(SOURCE_ROOT, 'node_modules', 'coffee-scrip...
from lib.util import * SOURCE_ROOT = os.path.dirname(os.path.dirname(__file__)) def main(): input_file = sys.argv[1] output_dir = os.path.dirname(sys.argv[2]) coffee = os.path.join(SOURCE_ROOT, 'node_modules', 'coffee-script', 'bin', 'coffee') if sys.platform in ['win32', 'cygwin']...
<|file_sep|>original/script/compile-coffee.py import os import subprocess import sys from lib.util import * SOURCE_ROOT = os.path.dirname(os.path.dirname(__file__)) def main(): input_file = sys.argv[1] output_dir = os.path.dirname(sys.argv[2]) coffee = os.path.join(SOURCE_ROOT, 'node_modules', 'coffee-scrip...
979ec05ed34cec2af0d45dc76b84921af85f84e9
script/compile-coffee.py
script/compile-coffee.py
Python
<|file_sep|>original/.travis.yml language: ruby rvm: - 2.0.0 - 2.1.8 - 2.2.4 - 2.3.0 before_install: gem install bundler sudo: false cache: bundler <|file_sep|>current/.travis.yml language: ruby rvm: - 2.0.0 - 2.1.8 - 2.2.4 - 2.3.0 before_install: gem install bundler sudo: false cache: bundler <...
language: ruby rvm: - 2.0.0 - 2.1.9 - 2.2.5 - 2.3.1 before_install: gem install bundler sudo: false cache: bundler
<|file_sep|>original/.travis.yml language: ruby rvm: - 2.0.0 - 2.1.8 - 2.2.4 - 2.3.0 before_install: gem install bundler sudo: false cache: bundler <|file_sep|>current/.travis.yml language: ruby rvm: - 2.0.0 - 2.1.8 - 2.2.4 - 2.3.0 before_install: gem install bundler sudo: false cache: bundler <...
ec9aa0a73ce030cd81b1899d137174e8a80a384f
.travis.yml
.travis.yml
YAML
<|file_sep|>original/whisper/pages/index.tsx type PageProps = ApolloQueryResult<PostsPayload> export const getStaticProps = withError( async (): Promise<GetStaticPropsResult<PageProps>> => { const client = getApollo() const props = await client.query<PostsPayload>({query: getPosts}) return { prop...
type PageProps = ApolloQueryResult<PostsPayload> export const getStaticProps = withError( async (): Promise<GetStaticPropsResult<PageProps>> => { const client = getApollo() const props = await client.query<PostsPayload>({query: getPosts}) return { props, revalidate: 60 } } ) const Ho...
<|file_sep|>original/whisper/pages/index.tsx type PageProps = ApolloQueryResult<PostsPayload> export const getStaticProps = withError( async (): Promise<GetStaticPropsResult<PageProps>> => { const client = getApollo() const props = await client.query<PostsPayload>({query: getPosts}) return { prop...
c1ca35eac16c733262862856954a395207f7cbad
whisper/pages/index.tsx
whisper/pages/index.tsx
TypeScript
<|file_sep|>original/src/main/resources/templates/item.html </ol> </div> <div class="grid-row"> <div class="column-two-thirds"> <p></p> </div> <div class="column-third" th:include="fragments/attribution.html::attribution"></div> </div> <p class="text">...
</ol> </div> <div class="grid-row"> <div class="column-two-thirds"> <p></p> </div> <div class="column-third" th:include="fragments/attribution.html::attribution"></div> </div> <div th:include="fragments/item-table.html :: item-table (content = ${conten...
<|file_sep|>original/src/main/resources/templates/item.html </ol> </div> <div class="grid-row"> <div class="column-two-thirds"> <p></p> </div> <div class="column-third" th:include="fragments/attribution.html::attribution"></div> </div> <p class="text">...
d0bfb78c11856c2753f76bd104a882c6bd1437f4
src/main/resources/templates/item.html
src/main/resources/templates/item.html
HTML
<|file_sep|>original/app/policies/channel_policy.rb def destroy? record.entity.has_user?(user) || user.is_admin? end def refresh? user.is_admin? end def transfer? user.is_admin? end def permitted_attributes permitted = [:name, :description, :service_identifier, :url, :avatar_url, :prima...
record.entity.has_user?(user) || user.is_admin? end def refresh? user.is_admin? end def transfer? user.is_admin? end def permitted_attributes permitted = [:name, :description, :service_identifier, :url, :avatar_url, :primary, :token_id, :keyword_ids => [], contac...
<|file_sep|>original/app/policies/channel_policy.rb def destroy? record.entity.has_user?(user) || user.is_admin? end def refresh? user.is_admin? end def transfer? user.is_admin? end def permitted_attributes permitted = [:name, :description, :service_identifier, :url, :avatar_url, :prima...
ebc2056cdb185ebb521fe1e3dbd6b2e73ac69739
app/policies/channel_policy.rb
app/policies/channel_policy.rb
Ruby
<|file_sep|>.travis.yml.diff original: - NODE_WEBKIT="0.11.5" NODE_VERSION="0.10.32" updated: # - NODE_WEBKIT="0.11.5" NODE_VERSION="0.10.32" <|file_sep|>original/.travis.yml - NODE_VERSION="0.11.14" - NODE_WEBKIT="0.11.5" NODE_VERSION="0.10.32" node_js: - "0.10" notifications: email: - rod@vagg.org befo...
- NODE_VERSION="0.11.14" # - NODE_WEBKIT="0.11.5" NODE_VERSION="0.10.32" node_js: - "0.10" notifications: email: - rod@vagg.org before_install: - npm install npm - mv node_modules npm - npm/.bin/npm --version - npm/.bin/npm install - rm -rf ~/.nvm - git clone https://github.com/creationix/nvm.git...
<|file_sep|>.travis.yml.diff original: - NODE_WEBKIT="0.11.5" NODE_VERSION="0.10.32" updated: # - NODE_WEBKIT="0.11.5" NODE_VERSION="0.10.32" <|file_sep|>original/.travis.yml - NODE_VERSION="0.11.14" - NODE_WEBKIT="0.11.5" NODE_VERSION="0.10.32" node_js: - "0.10" notifications: email: - rod@vagg.org befo...
78d9a380d5f174d5d878b9163e7784f618708528
.travis.yml
.travis.yml
YAML
<|file_sep|>original/setup.py from setuptools import setup setup( name='pypardiso', version="0.3.1", packages=['pypardiso'], install_requires=['mkl', 'mkl-service', 'numpy', 'scipy', 'psutil'], author="Adrian Haas", license=open('LICENSE.txt').read(), url="https://github.com/haasad/PyPardis...
from setuptools import setup setup( name='pypardiso', version="0.3.1", packages=['pypardiso'], install_requires=['mkl-service', 'numpy', 'scipy', 'psutil'], author="Adrian Haas", license=open('LICENSE.txt').read(), url="https://github.com/haasad/PyPardisoProject", long_description=open(...
<|file_sep|>original/setup.py from setuptools import setup setup( name='pypardiso', version="0.3.1", packages=['pypardiso'], install_requires=['mkl', 'mkl-service', 'numpy', 'scipy', 'psutil'], author="Adrian Haas", license=open('LICENSE.txt').read(), url="https://github.com/haasad/PyPardis...
612006dbfdf05c120467c31319a9e089c82dbb86
setup.py
setup.py
Python
<|file_sep|>original/blog/c1-time-and-habits-blog.html <|file_sep|>current/blog/c1-time-and-habits-blog.html <|file_sep|>updated/blog/c1-time-and-habits-blog.html
<!DOCTYPE html> <html> <head> <title>Time and Habit Blog) </title> <meta charset="UTF-8"> <link href="your-stylesheet-link-here.css" rel="stylesheet" type="text/css"> </head> <body> <h1>Which timebox and habits techniques did you try? </h1> <p>I have never meditated before - so I Gave that ...
<|file_sep|>original/blog/c1-time-and-habits-blog.html <|file_sep|>current/blog/c1-time-and-habits-blog.html <|file_sep|>updated/blog/c1-time-and-habits-blog.html <!DOCTYPE html> <html> <head> <title>Time and Habit Blog) </title> <meta charset="UTF-8"> <link href="your-stylesheet-link-here.css" rel="sty...
ba925005b9413b74329b9c02d11029808cb23c55
blog/c1-time-and-habits-blog.html
blog/c1-time-and-habits-blog.html
HTML
<|file_sep|>original/app/dao/magazines_dao.py from app import db from app.dao.decorators import transactional from app.models import Magazine def dao_get_magazines(): return Magazine.query.order_by(Magazine.created_at.desc()).all() def dao_get_magazine_by_old_id(old_id): return Magazine.query.filter_by(old_...
from app import db from app.dao.decorators import transactional from app.models import Magazine def dao_get_magazines(): return Magazine.query.order_by(Magazine.created_at.desc()).all() def dao_get_magazine_by_id(id): return Magazine.query.filter_by(id=id).one() def dao_get_magazine_by_old_id(old_id): ...
<|file_sep|>original/app/dao/magazines_dao.py from app import db from app.dao.decorators import transactional from app.models import Magazine def dao_get_magazines(): return Magazine.query.order_by(Magazine.created_at.desc()).all() def dao_get_magazine_by_old_id(old_id): return Magazine.query.filter_by(old_...
74bfe9bf1501d5c31e2ab6d8dc174467e47e200e
app/dao/magazines_dao.py
app/dao/magazines_dao.py
Python
<|file_sep|>src/client/render.jsx.diff original: import {Router, browserHistory} from 'react-router'; updated: import {Router, browserHistory, applyRouterMiddleware} from 'react-router'; <|file_sep|>src/client/render.jsx.diff original: function render(configureStore, createRoutes, mountTo, helpers = {}) { updated: func...
import {ReduxAsyncConnect} from 'redux-connect'; import {Router, browserHistory, applyRouterMiddleware} from 'react-router'; import {syncHistoryWithStore} from 'react-router-redux'; function render(configureStore, createRoutes, mountTo, {middleware, helpers}) { const store = configureStore(true, browserHistory, wind...
<|file_sep|>src/client/render.jsx.diff original: import {Router, browserHistory} from 'react-router'; updated: import {Router, browserHistory, applyRouterMiddleware} from 'react-router'; <|file_sep|>src/client/render.jsx.diff original: function render(configureStore, createRoutes, mountTo, helpers = {}) { updated: func...
3331f34d193317b3440a497566f79cdce06b3034
src/client/render.jsx
src/client/render.jsx
JSX
<|file_sep|>original/tests/helpers/poll-participate.js import Ember from 'ember'; export default Ember.Test.registerAsyncHelper('pollParticipate', function(app, name, selections) { if (!Ember.isEmpty(name)) { fillIn('.participation .name input', name); } const isFreeText = find('.participation .selections ....
import Ember from 'ember'; export default Ember.Test.registerAsyncHelper('pollParticipate', function(app, name, selections) { if (!Ember.isEmpty(name)) { fillIn('.participation .name input', name); } const isFreeText = find('.participation .selections .radio').length ? false : true; selections.forEach((se...
<|file_sep|>original/tests/helpers/poll-participate.js import Ember from 'ember'; export default Ember.Test.registerAsyncHelper('pollParticipate', function(app, name, selections) { if (!Ember.isEmpty(name)) { fillIn('.participation .name input', name); } const isFreeText = find('.participation .selections ....
0f3aa1bc5613d3e08b1cd7a672ac479f64bea63b
tests/helpers/poll-participate.js
tests/helpers/poll-participate.js
JavaScript
<|file_sep|>samples/ConsoleApplication/ConsoleApplication/Program.cs.diff original: static void Main(string[] args) updated: static void Main() <|file_sep|>samples/ConsoleApplication/ConsoleApplication/Program.cs.diff original: var createPersonCommandHandler = container.GetInstance<IHandler<...
{ class Program { static void Main() { var registry = new Registry(); registry.IncludeRegistry<InfrastructureRegistry>(); var container = new Container(registry); var dispatcher = container.GetInstance<IDispatcher>(); dispatcher.Dispat...
<|file_sep|>samples/ConsoleApplication/ConsoleApplication/Program.cs.diff original: static void Main(string[] args) updated: static void Main() <|file_sep|>samples/ConsoleApplication/ConsoleApplication/Program.cs.diff original: var createPersonCommandHandler = container.GetInstance<IHandler<...
f983e3b7d7b122175f557c9c6eb5dc1a2770129b
samples/ConsoleApplication/ConsoleApplication/Program.cs
samples/ConsoleApplication/ConsoleApplication/Program.cs
C#
<|file_sep|>brumecli/config.py.diff original: updated: def env(key): """Return the value of the `key` environment variable.""" try: return os.environ[key] except KeyError: print(red('[ERROR] No environment variable with key {}'.format(key))) exit(1) ...
@staticmethod def load(config_file='brume.yml'): """ Return the YAML configuration for a project based on the `config_file` template. By default, the template exposes the `env` function. The `git_branch` and `git_commit` values are exposed only when a `.git` folder exis...
<|file_sep|>brumecli/config.py.diff original: updated: def env(key): """Return the value of the `key` environment variable.""" try: return os.environ[key] except KeyError: print(red('[ERROR] No environment variable with key {}'.format(key))) exit(1) ...
b9dde5e9fc56feaea581cecca3f919f4e053044d
brumecli/config.py
brumecli/config.py
Python
<|file_sep|>js/main.js.diff original: prevBtn.onclick = prevSlide; nextBtn.onclick = nextSlide; updated: var autoPlay = window.setInterval(nextSlide, 5000); <|file_sep|>original/js/main.js currentSlide--; } slider.children[currentSlide].classList.add("myActive"); } function nextSlide() { slider.children[cur...
} slider.children[currentSlide].classList.add("myActive"); } function nextSlide() { slider.children[currentSlide].classList.remove("myActive"); if (currentSlide === slider.children.length - 1) { currentSlide = 0; } else { currentSlide++; } slider.children[currentSlide].classList.add("myActive"...
<|file_sep|>js/main.js.diff original: prevBtn.onclick = prevSlide; nextBtn.onclick = nextSlide; updated: var autoPlay = window.setInterval(nextSlide, 5000); <|file_sep|>original/js/main.js currentSlide--; } slider.children[currentSlide].classList.add("myActive"); } function nextSlide() { slider.children[cur...
105029a00e8599b2f3a694987067276270366adf
js/main.js
js/main.js
JavaScript
<|file_sep|>original/app/views/blog/index.html.erb <% @page_title = "Git - Blog Moved" %> <div id="main"> <h1>Moved!</h1> <p>Technical content that was previously found in the blog section of this site has been integrated into the <a href="/book">second edition of the Pro Git book</a>. </div> <|file_sep|>current...
<% @page_title = "Git - Blog Moved" %> <div id="main"> <h1>Moved!</h1> <p>Technical content that was previously found in the blog section of this site has been integrated into the <%= link_to('second edition of the Pro Git book', controller: 'books', action: 'show') %>. </div>
<|file_sep|>original/app/views/blog/index.html.erb <% @page_title = "Git - Blog Moved" %> <div id="main"> <h1>Moved!</h1> <p>Technical content that was previously found in the blog section of this site has been integrated into the <a href="/book">second edition of the Pro Git book</a>. </div> <|file_sep|>current...
80a8e42df16cd7a4cb39a8188cd6cba45c6e9d35
app/views/blog/index.html.erb
app/views/blog/index.html.erb
HTML+ERB
<|file_sep|>original/pytablereader/__init__.py """ .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ from __future__ import absolute_import from tabledata import DataError, InvalidHeaderNameError, InvalidTableNameError from .__version__ import __author__, __copyright__, __email__, __license__, __ve...
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ from __future__ import absolute_import from tabledata import DataError, InvalidHeaderNameError, InvalidTableNameError from .__version__ import __author__, __copyright__, __email__, __license__, __version__ from ._constant import PatternMatch fro...
<|file_sep|>original/pytablereader/__init__.py """ .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ from __future__ import absolute_import from tabledata import DataError, InvalidHeaderNameError, InvalidTableNameError from .__version__ import __author__, __copyright__, __email__, __license__, __ve...
f2bf249f4ea954b318819bd5976584eedba35517
pytablereader/__init__.py
pytablereader/__init__.py
Python
<|file_sep|>original/.circleci/config.yml version: 2 jobs: build: docker: - image: circleci/node:8@sha256:41517eb04d4fe284b93ae3a132a8dca0e2433ca7043d8a0bf809d3fb10a6a416 - image: circleci/mongo:3@sha256:01437c21a1bd1b9346ba4a0fabf95b9bd5b37b3764b0d585db87003dd4e097fe steps: - checkout ...
version: 2 jobs: build: docker: - image: circleci/node:8@sha256:41517eb04d4fe284b93ae3a132a8dca0e2433ca7043d8a0bf809d3fb10a6a416 - image: circleci/mongo:3@sha256:2d9bd2912958ebb1b22c707d826d32d410012f1edf55681773cdbf076f54840b steps: - checkout - run: yarn install --frozen-lockfile ...
<|file_sep|>original/.circleci/config.yml version: 2 jobs: build: docker: - image: circleci/node:8@sha256:41517eb04d4fe284b93ae3a132a8dca0e2433ca7043d8a0bf809d3fb10a6a416 - image: circleci/mongo:3@sha256:01437c21a1bd1b9346ba4a0fabf95b9bd5b37b3764b0d585db87003dd4e097fe steps: - checkout ...
7bdc9dddeea126b9784f42d0b080e882b276cf47
.circleci/config.yml
.circleci/config.yml
YAML
<|file_sep|>original/webshop/extensions/category/__init__.py # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You sh...
# GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. """ Django-webshop, by default, contains bas...
<|file_sep|>original/webshop/extensions/category/__init__.py # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You sh...
72902ebcada7bdc7a889f8766b63afff82110182
webshop/extensions/category/__init__.py
webshop/extensions/category/__init__.py
Python
<|file_sep|>original/src/test/resources/com/akiban/sql/pg/yaml/functional/test-conditional-drop-create.yaml # test conditional create --- - CreateTable: IF NOT EXISTS t1 (ff double); --- - CreateTable: t1 (ff double); - error: [50006] --- - CreateTable: IF NOT EXISTS t1 (ff double) --- - DropTable: t1; #--- #BUG: error...
# test conditional create # The IF classes need work to work in AAS, which tries to slurp out the table name --- - Properties: sys-aksql - suppressed: true --- - CreateTable: IF NOT EXISTS t1 (ff double); --- - CreateTable: t1 (ff double); - error: [50006] --- - CreateTable: IF NOT EXISTS t1 (ff double) --- - DropTab...
<|file_sep|>original/src/test/resources/com/akiban/sql/pg/yaml/functional/test-conditional-drop-create.yaml # test conditional create --- - CreateTable: IF NOT EXISTS t1 (ff double); --- - CreateTable: t1 (ff double); - error: [50006] --- - CreateTable: IF NOT EXISTS t1 (ff double) --- - DropTable: t1; #--- #BUG: error...
8baf391ef566ec1388d1dce06af05d9a8274982f
src/test/resources/com/akiban/sql/pg/yaml/functional/test-conditional-drop-create.yaml
src/test/resources/com/akiban/sql/pg/yaml/functional/test-conditional-drop-create.yaml
YAML
<|file_sep|>original/bower.json { "name": "litelist", "version": "0.3.0", "main": "dist/litelist.min.js", "ignore": [ "**/.*", "node_modules", "bower_components", "test" ], "dependencies": { "raf.js": "~0.0.3", "tweenjs": "*", "rivets": "~0.6.8" }, "devDependencies": { "r...
{ "name": "litelist", "version": "0.4.1", "main": "dist/litelist.min.js", "ignore": [ "**/.*", "node_modules", "bower_components", "test" ], "dependencies": { "raf.js": "~0.0.3", "tweenjs": "*", "rivets": "~0.6.8" }, "devDependencies": { "rivets": "~0.6.8" } }
<|file_sep|>original/bower.json { "name": "litelist", "version": "0.3.0", "main": "dist/litelist.min.js", "ignore": [ "**/.*", "node_modules", "bower_components", "test" ], "dependencies": { "raf.js": "~0.0.3", "tweenjs": "*", "rivets": "~0.6.8" }, "devDependencies": { "r...
45d5056e9bd19879614a3c9e63a14f8d719bbc42
bower.json
bower.json
JSON
<|file_sep|>scoring/machinelearning/neuralnetwork.py.diff original: updated: from scipy.stats import linregress <|file_sep|>original/scoring/machinelearning/neuralnetwork.py class neuralnetwork: def __init__(self, shape, loadnet=None, full_conn=True, biases=False): """ shape: shape of a NN given a...
shape: shape of a NN given as a tuple """ if loadnet: self.model = ffnet() self.model.load(loadnet) else: if full_conn: conec = tmlgraph(shape, biases) else: conec = mlgraph(shapebiases) self.mode...
<|file_sep|>scoring/machinelearning/neuralnetwork.py.diff original: updated: from scipy.stats import linregress <|file_sep|>original/scoring/machinelearning/neuralnetwork.py class neuralnetwork: def __init__(self, shape, loadnet=None, full_conn=True, biases=False): """ shape: shape of a NN given a...
edb905aec44e3fb2086ae87df960597e7b4c8356
scoring/machinelearning/neuralnetwork.py
scoring/machinelearning/neuralnetwork.py
Python
<|file_sep|>web/views/setup_view.ex.diff original: updated: alias EspiDni.GoogleWebProperty <|file_sep|>web/views/setup_view.ex.diff original: GoogleAnalyticsClient.get_properties(team) |> Enum.map(&{&1.name, &1.defaultProfileId}) updated: team |> GoogleAnalyticsClient.get_properties |> Enum.map(...
defmodule EspiDni.SetupView do use EspiDni.Web, :view alias EspiDni.Team alias EspiDni.GoogleAnalyticsClient alias EspiDni.GoogleWebProperty def web_properties(%Team{} = team) do team |> GoogleAnalyticsClient.get_properties |> Enum.map(&select_options(&1)) end def team_changeset(%Team{} = t...
<|file_sep|>web/views/setup_view.ex.diff original: updated: alias EspiDni.GoogleWebProperty <|file_sep|>web/views/setup_view.ex.diff original: GoogleAnalyticsClient.get_properties(team) |> Enum.map(&{&1.name, &1.defaultProfileId}) updated: team |> GoogleAnalyticsClient.get_properties |> Enum.map(...
3f823b656d3c84305a019e0a7aa8a09e09f8682f
web/views/setup_view.ex
web/views/setup_view.ex
Elixir
<|file_sep|>original/_config.yml # Site globals author: Adrien Chrétien encoding: 'UTF-8' exclude: ['README.md','LICENSE'] markdown: redcarpet name: Neol.github.io pygments: true timezone: 'Europe/Paris' url: neol.github.io <|file_sep|>current/_config.yml # Site globals author: Adrien Chrétien encoding: 'UTF-8' exclude...
# Site globals author: Adrien Chrétien encoding: 'UTF-8' exclude: ['README.md','LICENSE'] markdown: redcarpet name: Neol.github.io highlighter: true timezone: 'Europe/Paris' url: neol.github.io
<|file_sep|>original/_config.yml # Site globals author: Adrien Chrétien encoding: 'UTF-8' exclude: ['README.md','LICENSE'] markdown: redcarpet name: Neol.github.io pygments: true timezone: 'Europe/Paris' url: neol.github.io <|file_sep|>current/_config.yml # Site globals author: Adrien Chrétien encoding: 'UTF-8' exclude...
0c3270158758d6151fd4ae479474f9c7a2a802ac
_config.yml
_config.yml
YAML
<|file_sep|>original/README.md Use `pip`: ```bash pip install sync-github-forks ``` # Configuration To use this you need a simple configuration file in your home directory at `~/.github-api.yml`. It should have 2 keys: `user` and `password`. Both are strings. ```yaml username: my_user_name password: 'password' ```...
```bash pip install sync-github-forks ``` # Configuration To use this you need a simple configuration file in your home directory at `~/.github-api.yml`. It should have 2 keys: `user` and `password`. Both are strings. ```yaml username: my_user_name password: 'password' ``` Remember to quote your any of the values ...
<|file_sep|>original/README.md Use `pip`: ```bash pip install sync-github-forks ``` # Configuration To use this you need a simple configuration file in your home directory at `~/.github-api.yml`. It should have 2 keys: `user` and `password`. Both are strings. ```yaml username: my_user_name password: 'password' ```...
c581423143c72ba657fabeaf8a92b2ef3f8cdfbf
README.md
README.md
Markdown
<|file_sep|>original/Resources/Private/Partials/ContentElements/Carousel/Item/BackgroundImage.html <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true"> <f:link.typolink parameter="{item.data.link}" additionalAttributes="{draggable:'false'}"></f:link.typolink> </html> <|file...
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true"> <f:link.typolink parameter="{item.data.link}" additionalAttributes="{draggable:'false'}"> </f:link.typolink> </html>
<|file_sep|>original/Resources/Private/Partials/ContentElements/Carousel/Item/BackgroundImage.html <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true"> <f:link.typolink parameter="{item.data.link}" additionalAttributes="{draggable:'false'}"></f:link.typolink> </html> <|file...
7d6597ab0c8cbd6b5003c83dbb99f61ceac528e7
Resources/Private/Partials/ContentElements/Carousel/Item/BackgroundImage.html
Resources/Private/Partials/ContentElements/Carousel/Item/BackgroundImage.html
HTML
<|file_sep|>original/kdb/default_config.py "nick": "kdb", "ident": "kdb", "name": "Knowledge Database Bot", "channels": "#circuits", }, "plugins": { "broadcast.*": "enabled", "channels.*": "enabled", ...
"channels": "#circuits", }, "plugins": { "broadcast.*": "enabled", "channels.*": "enabled", "core.*": "enabled", "ctcp.*": "enabled", "dnstools.*": "enabled", "eval.*": "enabled", "...
<|file_sep|>original/kdb/default_config.py "nick": "kdb", "ident": "kdb", "name": "Knowledge Database Bot", "channels": "#circuits", }, "plugins": { "broadcast.*": "enabled", "channels.*": "enabled", ...
2f60d4665a960578ab97bdaf313893ec366c24f1
kdb/default_config.py
kdb/default_config.py
Python
<|file_sep|>metadata/de.azapps.mirakel.dashclock.txt.diff original: Maintainer Notes: Was auto-update and Tags in the past, but v1.3 was (and still is) wrongly tagged, and 1.2.1 wasn't tagged at all. . updated: Build:1.4,8 commit=v1.4 <|file_sep|>original/metadata/de.azapps.mirakel.dashclock.txt Repo Type:git Repo...
Repo Type:git Repo:https://github.com/azapps/mirakel-dashclock.git Build:1.1,4 commit=v1.1 Build:1.2,5 commit=v1.2 Build:1.3,7 commit=42e2cd3f4 Build:1.4,8 commit=v1.4 Auto Update Mode:Version v%v Update Check Mode:Tags Current Version:1.4 Current Version Code:8
<|file_sep|>metadata/de.azapps.mirakel.dashclock.txt.diff original: Maintainer Notes: Was auto-update and Tags in the past, but v1.3 was (and still is) wrongly tagged, and 1.2.1 wasn't tagged at all. . updated: Build:1.4,8 commit=v1.4 <|file_sep|>original/metadata/de.azapps.mirakel.dashclock.txt Repo Type:git Repo...
a8c9e8c707b751a2305aab549c3df1d75f0a5b71
metadata/de.azapps.mirakel.dashclock.txt
metadata/de.azapps.mirakel.dashclock.txt
Text
<|file_sep|>original/.travis.yml python: - '2.7' env: global: - ANSIBLE_ROLES_PATH="${TRAVIS_BUILD_DIR%/*/*}" matrix: - TOXENV='py27-ansible20' - TOXENV='py27-ansible21' - TOXENV='py27-ansible-devel' before_install: # Create SSH keys - cat /dev/zero | ssh-keygen -q -N "" install: # Inst...
python: - '2.7' env: global: - ANSIBLE_ROLES_PATH="${TRAVIS_BUILD_DIR%/*/*}" matrix: - TOXENV='py27-ansible20' - TOXENV='py27-ansible21' - TOXENV='py27-ansible22' - TOXENV='py27-ansible-devel' before_install: # Create SSH keys - cat /dev/zero | ssh-keygen -q -N "" install: # Install...
<|file_sep|>original/.travis.yml python: - '2.7' env: global: - ANSIBLE_ROLES_PATH="${TRAVIS_BUILD_DIR%/*/*}" matrix: - TOXENV='py27-ansible20' - TOXENV='py27-ansible21' - TOXENV='py27-ansible-devel' before_install: # Create SSH keys - cat /dev/zero | ssh-keygen -q -N "" install: # Inst...
b0bccdb8fb5f86328531cccdf1a247f4f4872bd1
.travis.yml
.travis.yml
YAML
<|file_sep|>original/assets/sass/style.sass body background: #ecf0f1 font-family: sans-serif font-weight: 300 .pad background: #ecf0f1 border: 1px solid #96a5a6 color: #2c3e50 display: block font-size: 1em height: 600px margin: 20px auto 0 auto overflow: auto padding: 20px width: 500px line...
body background: #ecf0f1 font-family: sans-serif font-weight: 300 .pad background: #ecf0f1 border: 1px solid #96a5a6 color: #2c3e50 display: block font-size: 1em height: 600px margin: 20px auto 0 auto overflow: hidden padding: 20px width: 500px line-height: 1.2em
<|file_sep|>original/assets/sass/style.sass body background: #ecf0f1 font-family: sans-serif font-weight: 300 .pad background: #ecf0f1 border: 1px solid #96a5a6 color: #2c3e50 display: block font-size: 1em height: 600px margin: 20px auto 0 auto overflow: auto padding: 20px width: 500px line...
12a5714814646cbe738b4dc2bd7904b7b652b661
assets/sass/style.sass
assets/sass/style.sass
Sass
<|file_sep|>original/i18n/locale-par.po <|file_sep|>current/i18n/locale-par.po <|file_sep|>updated/i18n/locale-par.po
msgid "" msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "X-Generator: Poedit 1.5.4\n" "Language: pro\n" msgid "Dashboard" msgstr "Command C...
<|file_sep|>original/i18n/locale-par.po <|file_sep|>current/i18n/locale-par.po <|file_sep|>updated/i18n/locale-par.po msgid "" msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Project-Id-Version: \n" "POT-Creation-Date: \n" "PO-Revision-Date: \n" "Last-Translator: \n" "Langua...
b657d97880abce78f2500ca3ee0dd02ec34c0335
i18n/locale-par.po
i18n/locale-par.po
Gettext Catalog
<|file_sep|>ab/ab.rb.diff original: url = 'http://127.0.0.1:4100/articles' server = 'unicorn_6' updated: server, port = *ARGV server ||= 'unamed_server' port ||= '3000' url = "http://127.0.0.1:#{port}/articles" <|file_sep|>original/ab/ab.rb #!/usr/bin/env ruby url = 'http://127.0.0.1:4100/articles' server = 'unicorn_...
#!/usr/bin/env ruby server, port = *ARGV server ||= 'unamed_server' port ||= '3000' url = "http://127.0.0.1:#{port}/articles" users = [1, 2, 4, 8, 16, 32, 64, 128] `mkdir -p ab/#{server}` puts 'Warming up...' 5.times { `ab #{url}` } users.each do |user_count| puts "Runnning test with #{user_count} users" `ab -...
<|file_sep|>ab/ab.rb.diff original: url = 'http://127.0.0.1:4100/articles' server = 'unicorn_6' updated: server, port = *ARGV server ||= 'unamed_server' port ||= '3000' url = "http://127.0.0.1:#{port}/articles" <|file_sep|>original/ab/ab.rb #!/usr/bin/env ruby url = 'http://127.0.0.1:4100/articles' server = 'unicorn_...
0a51c9516b6846ae8df2e0139a28a2ca0824d67c
ab/ab.rb
ab/ab.rb
Ruby
<|file_sep|>original/lib/tasks/rcov.rake # namespace :test do desc 'Tracks test coverage with rcov' task :coverage do rm_f "coverage" rm_f "coverage.data" unless PLATFORM['i386-mswin32'] rcov = "rcov --sort coverage --rails --aggregate coverage.data " << "--text-summary -Ilib -T -x gems/*,db/migr...
# namespace :test do desc 'Tracks test coverage with rcov' task :coverage do rm_f "coverage" rm_f "coverage.data" unless PLATFORM['i386-mswin32'] rcov = "rcov --sort coverage --rails --aggregate coverage.data " << "--text-summary -Ilib -T " << "-x gems/*,db/migrate/*,jrails/*/*" else ...
<|file_sep|>original/lib/tasks/rcov.rake # namespace :test do desc 'Tracks test coverage with rcov' task :coverage do rm_f "coverage" rm_f "coverage.data" unless PLATFORM['i386-mswin32'] rcov = "rcov --sort coverage --rails --aggregate coverage.data " << "--text-summary -Ilib -T -x gems/*,db/migr...
b272c1e10c687e0070107ba230ec3a5150f960c5
lib/tasks/rcov.rake
lib/tasks/rcov.rake
Ruby
<|file_sep|>original/.github/workflows/pr-build-workflow.yml name: Build runs-on: ubuntu-latest strategy: matrix: jdk: [8, 11] fail-fast: false steps: - uses: actions/checkout@v2 - name: Set up JDK ${{ matrix.jdk }} uses: actions/setup-java@v1 with: ...
jobs: build: name: Build runs-on: ubuntu-latest strategy: matrix: jdk: [8, 11] fail-fast: false steps: - uses: actions/checkout@v2 - name: Set up JDK ${{ matrix.jdk }} uses: actions/setup-java@v1 with: java-version: ${{ matrix.jdk }} - na...
<|file_sep|>original/.github/workflows/pr-build-workflow.yml name: Build runs-on: ubuntu-latest strategy: matrix: jdk: [8, 11] fail-fast: false steps: - uses: actions/checkout@v2 - name: Set up JDK ${{ matrix.jdk }} uses: actions/setup-java@v1 with: ...
0205c318d1c384038faa377ec6fe81982dbad0a8
.github/workflows/pr-build-workflow.yml
.github/workflows/pr-build-workflow.yml
YAML
<|file_sep|>original/lib/rails_script/loader_helper.rb module RailsScript module LoaderHelper def include_rails_script javascript_tag <<-RUBY jQuery(function() { window.$this = new (App.#{ controller_path.split(/\/|_/).map(&:capitalize).join('') } || App.Base)(); if (typeof $this.#{ action_name }...
module RailsScript module LoaderHelper def include_rails_script javascript_tag <<-RUBY jQuery(function() { window.$this = new (App.#{ controller_path.split(/\/|_/).map(&:capitalize).join('') } || App.Base)(); if (typeof $this.#{ action_name } === 'function') { return $this.#{ action_name }....
<|file_sep|>original/lib/rails_script/loader_helper.rb module RailsScript module LoaderHelper def include_rails_script javascript_tag <<-RUBY jQuery(function() { window.$this = new (App.#{ controller_path.split(/\/|_/).map(&:capitalize).join('') } || App.Base)(); if (typeof $this.#{ action_name }...
6771ed7d92337ebb785de86ef006cec0c764af19
lib/rails_script/loader_helper.rb
lib/rails_script/loader_helper.rb
Ruby
<|file_sep|>original/torchtext/data/pipeline.py "or callable".format(convert_token)) self.pipes = [self] def __call__(self, x, *args): for pipe in self.pipes: x = pipe.call(x, *args) return x def call(self, x, *args): if isinstance(x, li...
"or callable".format(convert_token)) self.pipes = [self] def __call__(self, x, *args): for pipe in self.pipes: x = pipe.call(x, *args) return x def call(self, x, *args): if isinstance(x, list): return [self.convert_token(tok,...
<|file_sep|>original/torchtext/data/pipeline.py "or callable".format(convert_token)) self.pipes = [self] def __call__(self, x, *args): for pipe in self.pipes: x = pipe.call(x, *args) return x def call(self, x, *args): if isinstance(x, li...
cc9084c744b3ba3525f464adeaa7edaea64abf41
torchtext/data/pipeline.py
torchtext/data/pipeline.py
Python
<|file_sep|>tests/scatterchart-tests.js.diff original: expect(circleOne.getDOMNode().r.baseVal.value).to.equal(pointRadius); updated: var circleOneColor = circleOne.props.fill; expect(circleOne.props.r).to.equal(pointRadius); <|file_sep|>tests/scatterchart-tests.js.diff original: expect(circleOne.getD...
<ScatterChart data={data} width={400} height={200} pointRadius={pointRadius} /> ); var circles = TestUtils.scryRenderedDOMComponentsWithTag( scatterchart, 'circle'); expect(circles).to.have.length(2 * points); var circleOne = circles[0]; var circleOneColor = circleOne.props.fill; ...
<|file_sep|>tests/scatterchart-tests.js.diff original: expect(circleOne.getDOMNode().r.baseVal.value).to.equal(pointRadius); updated: var circleOneColor = circleOne.props.fill; expect(circleOne.props.r).to.equal(pointRadius); <|file_sep|>tests/scatterchart-tests.js.diff original: expect(circleOne.getD...
8d46a33970b91fc5aa6936572e68a8b45ab83795
tests/scatterchart-tests.js
tests/scatterchart-tests.js
JavaScript
<|file_sep|>original/share/spice/expatistan/expatistan.js var firstLine = ''; var secondLine = ''; if (lines.length === 2 && cost.length >= 1) { firstLine = lines[0].replace(' has a', '') + ' =' + cost[0]; ...
var firstLine = ''; var secondLine = ''; if (lines.length === 2 && cost.length >= 1) { firstLine = lines[0].replace(' has a', '') + ' =' + cost[0]; secondLine = lines[1]; } ...
<|file_sep|>original/share/spice/expatistan/expatistan.js var firstLine = ''; var secondLine = ''; if (lines.length === 2 && cost.length >= 1) { firstLine = lines[0].replace(' has a', '') + ' =' + cost[0]; ...
5c4bd1afd94f7550b598c77c1986da8fa4711e34
share/spice/expatistan/expatistan.js
share/spice/expatistan/expatistan.js
JavaScript
<|file_sep|>original/app/views/static_pages/calendar.html.erb <% provide(:title, 'Calendar') %> <% provide(:jumbotron_class, 'events') %> <%= render 'layouts/jumbotron' %> <div class="container-content"> <div class="container"> <div class="row"> <div class="col-xs-12"> <div class="embed-responsive...
<% provide(:title, 'Calendar') %> <% provide(:jumbotron_class, 'events') %> <%= render 'layouts/jumbotron' %> <div class="container-content"> <div class="container"> <div class="row"> <div class="col-xs-12"> <div class="embed-responsive embed-responsive-16by9 hidden-xs"> <iframe src="htt...
<|file_sep|>original/app/views/static_pages/calendar.html.erb <% provide(:title, 'Calendar') %> <% provide(:jumbotron_class, 'events') %> <%= render 'layouts/jumbotron' %> <div class="container-content"> <div class="container"> <div class="row"> <div class="col-xs-12"> <div class="embed-responsive...
38dccb06fa981b34780a3ce9f11ad4deb8ceec2a
app/views/static_pages/calendar.html.erb
app/views/static_pages/calendar.html.erb
HTML+ERB
<|file_sep|>original/setup.py author='prior99', author_email='fgnodtke@cronosx.de', description='Improved Subsonic extension for Mopidy', long_description=open('README.md').read(), packages=find_packages(exclude=['tests', 'tests.*']), zip_safe=False, include_package_data=True, install_re...
author='prior99', author_email='fgnodtke@cronosx.de', description='Improved Subsonic extension for Mopidy', long_description=open('README.md').read(), packages=find_packages(exclude=['tests', 'tests.*']), zip_safe=False, include_package_data=True, install_requires=[ 'setuptools',...
<|file_sep|>original/setup.py author='prior99', author_email='fgnodtke@cronosx.de', description='Improved Subsonic extension for Mopidy', long_description=open('README.md').read(), packages=find_packages(exclude=['tests', 'tests.*']), zip_safe=False, include_package_data=True, install_re...
521cdf8002d03b14159b48de1a61a88f979156d3
setup.py
setup.py
Python