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/README.md
```rb
require 'openbd'
client = Openbd::Client.new
# get
client.get('978-4-7808-0204-7')
# coverage
client.coverage
```
## Requirements
- Ruby(MRI) 2.3.0 or higher
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MI... |
client = Openbd::Client.new
# get
client.get('978-4-7808-0204-7')
# coverage
client.coverage
```
Set `HTTP_SERVER` or `http_server` as Environment Variable if you'd like to access via proxy server.
```
export HTTP_PROXY=http://user:pass@host:port
# or
export http_proxy=http://user:pass@host:port
```
## Requiremen... | <|file_sep|>original/README.md
```rb
require 'openbd'
client = Openbd::Client.new
# get
client.get('978-4-7808-0204-7')
# coverage
client.coverage
```
## Requirements
- Ruby(MRI) 2.3.0 or higher
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MI... | 980b1c5511d5d65236a7bb2c1380644ebcb2c139 | README.md | README.md | Markdown |
<|file_sep|>original/requirements-dev.txt
aiounittest==1.4.0
attribution==1.4.0
black==20.8b1
codecov==2.1.11
coverage[toml]==5.3.1
flit==3.0.0
mypy==0.790
pylint==2.6.0
sphinx==3.4.3
usort==0.6.2
git+https://github.com/miyakogi/m2r
<|file_sep|>current/requirements-dev.txt
aiounittest==1.4.0
attribution==1.4.0
black==2... | aiounittest==1.4.0
attribution==1.4.0
black==20.8b1
codecov==2.1.11
coverage[toml]==5.4
flit==3.0.0
mypy==0.790
pylint==2.6.0
sphinx==3.4.3
usort==0.6.2
git+https://github.com/miyakogi/m2r | <|file_sep|>original/requirements-dev.txt
aiounittest==1.4.0
attribution==1.4.0
black==20.8b1
codecov==2.1.11
coverage[toml]==5.3.1
flit==3.0.0
mypy==0.790
pylint==2.6.0
sphinx==3.4.3
usort==0.6.2
git+https://github.com/miyakogi/m2r
<|file_sep|>current/requirements-dev.txt
aiounittest==1.4.0
attribution==1.4.0
black==2... | 2decf2f00e19f9336f13b8afca4306442b35d2a9 | requirements-dev.txt | requirements-dev.txt | Text |
<|file_sep|>original/docker/README.md
# jknslgt
This Dockerfile builds a Docker images for RaspberryPi based on `acencini/rpi-python-serial-wiringpi:latest` (`https://hub.docker.com/r/acencini/rpi-python-serial-wiringpi/`). Please note that it must run in privileged mode:
``docker run -v <your path to jknslgt.json>... |
# jknslgt
This Dockerfile builds a Docker images for RaspberryPi based on `acencini/rpi-python-serial-wiringpi:latest` (`https://hub.docker.com/r/acencini/rpi-python-serial-wiringpi/`). Please note that it must run in privileged mode:
``docker run -P -v <your path to jknslgt.json>:/config --device /dev/ttyAMA0:/dev... | <|file_sep|>original/docker/README.md
# jknslgt
This Dockerfile builds a Docker images for RaspberryPi based on `acencini/rpi-python-serial-wiringpi:latest` (`https://hub.docker.com/r/acencini/rpi-python-serial-wiringpi/`). Please note that it must run in privileged mode:
``docker run -v <your path to jknslgt.json>... | 823a5dc1e232e0f5c9f6c15d3e9b645fddf60f5a | docker/README.md | docker/README.md | Markdown |
<|file_sep|>original/buildscripts/nightly/nightlybuild_Windows.xml
<!-- Don't give up build if a device adapter or plugin is broken -->
<property name="mm.build.failonerror" value="false"/>
<!-- Default name for XML log file -->
<!-- Specify -listener org.apache.tools.ant.XmlLogger on the command
line to ena... | <!-- Use the nightly-build-style version string -->
<property name="mm.build.mode" value="nightly"/>
<!-- Don't give up build if a device adapter or plugin is broken -->
<property name="mm.build.failonerror" value="false"/>
<!-- Default name for XML log file -->
<!-- Specify -listener org.apache.tools.ant.XmlLo... | <|file_sep|>original/buildscripts/nightly/nightlybuild_Windows.xml
<!-- Don't give up build if a device adapter or plugin is broken -->
<property name="mm.build.failonerror" value="false"/>
<!-- Default name for XML log file -->
<!-- Specify -listener org.apache.tools.ant.XmlLogger on the command
line to ena... | b8a6263f50b1f7611a10d0e2945d59a2b0c0c90d | buildscripts/nightly/nightlybuild_Windows.xml | buildscripts/nightly/nightlybuild_Windows.xml | XML |
<|file_sep|>original/META6.json
"perl6"
],
"auth": "perl6",
"test-depends": [
"File::Temp",
"Test::META",
"Doc::TypeGraph",
"Pod::To::HTML"
],
"build-depends": [
"File::Find:ver<0.1.1+>"
],
"provides": {},
"support": {
"source": "git://github.com/Raku/doc.git"
},
"license... | "perl6"
],
"auth": "perl6",
"test-depends": [
"File::Temp",
"Test::META",
"Doc::TypeGraph",
"Pod::To::HTML"
],
"build-depends": [
"File::Find:ver<0.1.1+>",
"Pod::To::BigPage"
],
"provides": {},
"support": {
"source": "git://github.com/Raku/doc.git"
},
"license": "Arti... | <|file_sep|>original/META6.json
"perl6"
],
"auth": "perl6",
"test-depends": [
"File::Temp",
"Test::META",
"Doc::TypeGraph",
"Pod::To::HTML"
],
"build-depends": [
"File::Find:ver<0.1.1+>"
],
"provides": {},
"support": {
"source": "git://github.com/Raku/doc.git"
},
"license... | 0a87972362a7cc9a0e8725e51edf38bf915eb689 | META6.json | META6.json | JSON |
<|file_sep|>start_archiver_access_cmd.bat.diff
original:
updated:
@echo off
<|file_sep|>original/start_archiver_access_cmd.bat
setlocal
set MYDIRBLOCK=%~dp0
call %MYDIRBLOCK%..\..\..\config_env_base.bat
%HIDEWINDOW% h
set EPICS_CAS_INTF_ADDR_LIST=127.0.0.1
set EPICS_CAS_BEACON_ADDR_LIST=127.255.255.255
set PYTHONU... | @echo off
setlocal
set MYDIRBLOCK=%~dp0
call %MYDIRBLOCK%..\..\..\config_env_base.bat
%HIDEWINDOW% h
set EPICS_CAS_INTF_ADDR_LIST=127.0.0.1
set EPICS_CAS_BEACON_ADDR_LIST=127.255.255.255
set PYTHONUNBUFFERED=TRUE
%PYTHONW% %MYDIRBLOCK%ArchiverAccess\archiver_access.py | <|file_sep|>start_archiver_access_cmd.bat.diff
original:
updated:
@echo off
<|file_sep|>original/start_archiver_access_cmd.bat
setlocal
set MYDIRBLOCK=%~dp0
call %MYDIRBLOCK%..\..\..\config_env_base.bat
%HIDEWINDOW% h
set EPICS_CAS_INTF_ADDR_LIST=127.0.0.1
set EPICS_CAS_BEACON_ADDR_LIST=127.255.255.255
set PYTHONU... | 761000c77088d6f588afaf505ea76083e70c5318 | start_archiver_access_cmd.bat | start_archiver_access_cmd.bat | Batchfile |
<|file_sep|>Casks/iterm2-beta.rb.diff
original:
version '2.1.1'
sha256 'b8f1bbd11cdb3e26fd9fab6971c28ebeb422361b2cc5fd6e4a843836d5dedeb0'
updated:
version '2.9.20150626'
sha256 '18cf11393ed81d351d739257185bc33414c440c4281e576f9d0b54405970f902'
<|file_sep|>original/Casks/iterm2-beta.rb
cask :v1 => 'iterm2-beta' ... | cask :v1 => 'iterm2-beta' do
version '2.9.20150626'
sha256 '18cf11393ed81d351d739257185bc33414c440c4281e576f9d0b54405970f902'
url 'https://iterm2.com/downloads/beta/iTerm2-2_9_20150626.zip'
homepage 'http://www.iterm2.com/'
license :oss
app 'iTerm.app'
end | <|file_sep|>Casks/iterm2-beta.rb.diff
original:
version '2.1.1'
sha256 'b8f1bbd11cdb3e26fd9fab6971c28ebeb422361b2cc5fd6e4a843836d5dedeb0'
updated:
version '2.9.20150626'
sha256 '18cf11393ed81d351d739257185bc33414c440c4281e576f9d0b54405970f902'
<|file_sep|>original/Casks/iterm2-beta.rb
cask :v1 => 'iterm2-beta' ... | 4114ccbf5560d2ef2740b6c2848ec4e100452fc3 | Casks/iterm2-beta.rb | Casks/iterm2-beta.rb | Ruby |
<|file_sep|>.travis.yml.diff
original:
updated:
- truffleruby-head
<|file_sep|>original/.travis.yml
- 2.7
- jruby-9.2.9.0
- jruby-head
- ruby-head
matrix:
include:
- rvm: 1.9.3
dist: trusty
- rvm: jruby-19mode
dist: trusty
- rvm: jruby-9.0.5.0
dist: trusty
- rvm: jruby-9.1... | - jruby-head
- ruby-head
- truffleruby-head
matrix:
include:
- rvm: 1.9.3
dist: trusty
- rvm: jruby-19mode
dist: trusty
- rvm: jruby-9.0.5.0
dist: trusty
- rvm: jruby-9.1.17.0
dist: trusty
allow_failures:
- rvm: jruby-head
- rvm: ruby-head
- rvm: jruby-9.0.5... | <|file_sep|>.travis.yml.diff
original:
updated:
- truffleruby-head
<|file_sep|>original/.travis.yml
- 2.7
- jruby-9.2.9.0
- jruby-head
- ruby-head
matrix:
include:
- rvm: 1.9.3
dist: trusty
- rvm: jruby-19mode
dist: trusty
- rvm: jruby-9.0.5.0
dist: trusty
- rvm: jruby-9.1... | f421e0803756f880651d277ef5ae2d2caab5418f | .travis.yml | .travis.yml | YAML |
<|file_sep|>Resources/config/services.xml.diff
original:
<!--
updated:
<|file_sep|>Resources/config/services.xml.diff
original:
<parameter key="orbt_resource_mirror.example.class">Orbt\Bundle\ResourceMirrorBundle\Example</parameter>
updated:
<parameter key="orbt_resource_mirror.factory.class">Orbt\... | <?xml version="1.0" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<parameters>
<parameter key="orbt_resource_mir... | <|file_sep|>Resources/config/services.xml.diff
original:
<!--
updated:
<|file_sep|>Resources/config/services.xml.diff
original:
<parameter key="orbt_resource_mirror.example.class">Orbt\Bundle\ResourceMirrorBundle\Example</parameter>
updated:
<parameter key="orbt_resource_mirror.factory.class">Orbt\... | 62fad63d59987e4e58d64d4cd079bef77a60b010 | Resources/config/services.xml | Resources/config/services.xml | XML |
<|file_sep|>original/.travis.yml
- python: "2.7"
addons:
apt:
packages:
- libatlas-dev
- libatlas-base-dev
- liblapack-dev
- gfortran
- libgmp-dev
- libmpfr-dev
before_install:
- git submodule update --init --recursive
install:
- pip install -r requirements.txt
- pip ... | addons:
apt:
packages:
- libatlas-dev
- libatlas-base-dev
- liblapack-dev
- gfortran
- libgmp-dev
- libmpfr-dev
before_install:
- git submodule update --init --recursive
install:
- pip install -U pip
- pip install -r requirements.txt
- pip install coveralls
script:
- ... | <|file_sep|>original/.travis.yml
- python: "2.7"
addons:
apt:
packages:
- libatlas-dev
- libatlas-base-dev
- liblapack-dev
- gfortran
- libgmp-dev
- libmpfr-dev
before_install:
- git submodule update --init --recursive
install:
- pip install -r requirements.txt
- pip ... | d007ecb88eb336d376de2ce95a696fb8a8128bc7 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/OpERP/src/main/java/devopsdistilled/operp/client/items/exceptions/ProductBrandPairExistsException.java
package devopsdistilled.operp.client.items.exceptions;
public class ProductBrandPairExistsException extends Exception {
private static final long serialVersionUID = -6474661245907152963L;
}
<|... | package devopsdistilled.operp.client.items.exceptions;
public class ProductBrandPairExistsException extends Exception {
public ProductBrandPairExistsException(String message) {
super(message);
}
private static final long serialVersionUID = -6474661245907152963L;
} | <|file_sep|>original/OpERP/src/main/java/devopsdistilled/operp/client/items/exceptions/ProductBrandPairExistsException.java
package devopsdistilled.operp.client.items.exceptions;
public class ProductBrandPairExistsException extends Exception {
private static final long serialVersionUID = -6474661245907152963L;
}
<|... | 8b056a1e74638ed863c5037db4f00364ece27331 | OpERP/src/main/java/devopsdistilled/operp/client/items/exceptions/ProductBrandPairExistsException.java | OpERP/src/main/java/devopsdistilled/operp/client/items/exceptions/ProductBrandPairExistsException.java | Java |
<|file_sep|>utils/utils.go.diff
original:
updated:
import (
"fmt"
"strconv"
"strings"
)
<|file_sep|>original/utils/utils.go
package utils
func CheckError(e error) {
if e != nil {
panic(e)
}
}
<|file_sep|>current/utils/utils.go
package utils
import (
"fmt"
"strconv"
"strings"
)
func Chec... | package utils
import (
"fmt"
"strconv"
"strings"
)
func CheckError(e error) {
if e != nil {
panic(e)
}
}
func ReportError(line int, column int, where string, message string) {
fmt.Printf("Error: %v\n", message)
fmt.Printf(" %v | %v\n", line, where)
fmt.Printf("%v^--\n", strings.Repeat(" ... | <|file_sep|>utils/utils.go.diff
original:
updated:
import (
"fmt"
"strconv"
"strings"
)
<|file_sep|>original/utils/utils.go
package utils
func CheckError(e error) {
if e != nil {
panic(e)
}
}
<|file_sep|>current/utils/utils.go
package utils
import (
"fmt"
"strconv"
"strings"
)
func Chec... | 8bc33be84a326e08fdfd47a16a5b9179a8d58230 | utils/utils.go | utils/utils.go | Go |
<|file_sep|>original/src/EloWeb/Models/Games.cs
public enum GamesSortOrder
{
MostRecentFirst = 1,
MostRecentLast = 2
}
private static List<Game> _games = new List<Game>();
public static void Initialise(IEnumerable<Game> gameEntities)
{
... | public enum GamesSortOrder
{
MostRecentFirst = 1,
MostRecentLast = 2
}
private static List<Game> _games = new List<Game>();
public static void Initialise(IEnumerable<Game> gameEntities)
{
_games = gameEntities
... | <|file_sep|>original/src/EloWeb/Models/Games.cs
public enum GamesSortOrder
{
MostRecentFirst = 1,
MostRecentLast = 2
}
private static List<Game> _games = new List<Game>();
public static void Initialise(IEnumerable<Game> gameEntities)
{
... | 644021383639d599a978e6170ae3db7c5d787015 | src/EloWeb/Models/Games.cs | src/EloWeb/Models/Games.cs | C# |
<|file_sep|>original/manage/bootstrap_server.sh
<|file_sep|>current/manage/bootstrap_server.sh
<|file_sep|>updated/manage/bootstrap_server.sh | # Set up remote server installation
# Copy the contents of this script into a shell script file and remember to make it executable. Then run it.
apt-get update
apt-get install git -y
apt-get install build-essential python-dev python-pkg-resources python-setuptools sudo -y
easy_install pip
pip install fabric
ssh root... | <|file_sep|>original/manage/bootstrap_server.sh
<|file_sep|>current/manage/bootstrap_server.sh
<|file_sep|>updated/manage/bootstrap_server.sh
# Set up remote server installation
# Copy the contents of this script into a shell script file and remember to make it executable. Then run it.
apt-get update
apt-get instal... | 43a9619351f8e039ce1a73f652fa5b82786841f1 | manage/bootstrap_server.sh | manage/bootstrap_server.sh | Shell |
<|file_sep|>css/medium.css.diff
original:
.skills .tools .cvs,
.skills .tools .synergy,
.skills .tools .liquibase {
display: none;
}
.skills .web .xslt {
display: none;
}
.skills .linux .mailman {
display: none;
}
.exp .dev-env {
display: none;
}
updated:
<|file_sep|>css/medium.css.diff
original:
display: ... | }
.exp ul li:not(.highlight) {
display: none;
}
.more {
display: none;
}
.education .what {
display: none;
}
.publications .what {
display: none;
}
.objective {
display: none;
} | <|file_sep|>css/medium.css.diff
original:
.skills .tools .cvs,
.skills .tools .synergy,
.skills .tools .liquibase {
display: none;
}
.skills .web .xslt {
display: none;
}
.skills .linux .mailman {
display: none;
}
.exp .dev-env {
display: none;
}
updated:
<|file_sep|>css/medium.css.diff
original:
display: ... | 0b91dd6ec6908486520af708072f69f7f3a525fd | css/medium.css | css/medium.css | CSS |
<|file_sep|>.github/workflows/oss-fuzz.yml.diff
original:
name: CIFuzz
updated:
name: OSS-Fuzz
<|file_sep|>original/.github/workflows/oss-fuzz.yml
name: CIFuzz
on:
pull_request:
paths:
- '**.go'
- 'internal/runtime/compiler/parser/parser.y'
- 'Makefile'
- 'Dockerfile'
jobs:
CIFuzz:
r... | name: OSS-Fuzz
on:
pull_request:
paths:
- '**.go'
- 'internal/runtime/compiler/parser/parser.y'
- 'Makefile'
- 'Dockerfile'
jobs:
oss-fuzz:
runs-on: ubuntu-latest
steps:
- name: Build Fuzzers
id: build
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@maste... | <|file_sep|>.github/workflows/oss-fuzz.yml.diff
original:
name: CIFuzz
updated:
name: OSS-Fuzz
<|file_sep|>original/.github/workflows/oss-fuzz.yml
name: CIFuzz
on:
pull_request:
paths:
- '**.go'
- 'internal/runtime/compiler/parser/parser.y'
- 'Makefile'
- 'Dockerfile'
jobs:
CIFuzz:
r... | afded292c777c3cce9469e842370c99501305b1c | .github/workflows/oss-fuzz.yml | .github/workflows/oss-fuzz.yml | YAML |
<|file_sep|>original/README.md
# region-week-heatmap
D3.js heatmap showing a KPI progress in time for each italian region
<|file_sep|>current/README.md
# region-week-heatmap
D3.js heatmap showing a KPI progress in time for each italian region
<|file_sep|>updated/README.md | # region-week-heatmap
D3.js heatmap showing a KPI progress in time for each italian region
Feel free to suggest improvements! | <|file_sep|>original/README.md
# region-week-heatmap
D3.js heatmap showing a KPI progress in time for each italian region
<|file_sep|>current/README.md
# region-week-heatmap
D3.js heatmap showing a KPI progress in time for each italian region
<|file_sep|>updated/README.md
# region-week-heatmap
D3.js heatmap showing a K... | e04dd40c1dc4e6177e2feabf059a5ad692935241 | README.md | README.md | Markdown |
<|file_sep|>original/sweetercat/data/requirements.txt
numpy==1.17.2
pyyaml>=4.2b1
pandas==0.25.1
scipy==1.3.1
astropy==3.2.1
matplotlib==3.1.1
tables==3.5.2
<|file_sep|>current/sweetercat/data/requirements.txt
numpy==1.17.2
pyyaml>=4.2b1
pandas==0.25.1
scipy==1.3.1
astropy==3.2.1
matplotlib==3.1.1
tables==3.5.2
<|file_... | numpy==1.17.3
pyyaml>=4.2b1
pandas==0.25.1
scipy==1.3.1
astropy==3.2.1
matplotlib==3.1.1
tables==3.5.2 | <|file_sep|>original/sweetercat/data/requirements.txt
numpy==1.17.2
pyyaml>=4.2b1
pandas==0.25.1
scipy==1.3.1
astropy==3.2.1
matplotlib==3.1.1
tables==3.5.2
<|file_sep|>current/sweetercat/data/requirements.txt
numpy==1.17.2
pyyaml>=4.2b1
pandas==0.25.1
scipy==1.3.1
astropy==3.2.1
matplotlib==3.1.1
tables==3.5.2
<|file_... | 2a0ed42a74606c2631b9c0b992ff9764fef50f19 | sweetercat/data/requirements.txt | sweetercat/data/requirements.txt | Text |
<|file_sep|>original/src/ch03/postexpr.cpp
<|file_sep|>current/src/ch03/postexpr.cpp
<|file_sep|>updated/src/ch03/postexpr.cpp | ///////////////////////////////////////
/// file: postexpr.cpp
/// 计算后缀表达式
///////////////////////////////////////
#include <iostream>
#include "sqstack.h"
using namespace std;
///
/// 执行计算
///
int Operate(int a, char theta, int b)
{
switch(theta) {
case '+': return a+b;
case '-': return a-b;
case '*'... | <|file_sep|>original/src/ch03/postexpr.cpp
<|file_sep|>current/src/ch03/postexpr.cpp
<|file_sep|>updated/src/ch03/postexpr.cpp
///////////////////////////////////////
/// file: postexpr.cpp
/// 计算后缀表达式
///////////////////////////////////////
#include <iostream>
#include "sqstack.h"
using namespace std;
///
/// 执行计算... | aab25b43767214922f8020261e251e6934164e90 | src/ch03/postexpr.cpp | src/ch03/postexpr.cpp | C++ |
<|file_sep|>original/.forestry/settings.yml
<|file_sep|>current/.forestry/settings.yml
<|file_sep|>updated/.forestry/settings.yml | ---
new_page_extension: md
auto_deploy: false
admin_path:
webhook_url:
sections:
- type: jekyll-pages
label: Pages
create: all
- type: jekyll-posts
label: Posts
create: all
- type: directory
path: _products
label: Products
create: all
match: "**/*"
upload_dir: uploads
public_path: "/uploads"
front_mat... | <|file_sep|>original/.forestry/settings.yml
<|file_sep|>current/.forestry/settings.yml
<|file_sep|>updated/.forestry/settings.yml
---
new_page_extension: md
auto_deploy: false
admin_path:
webhook_url:
sections:
- type: jekyll-pages
label: Pages
create: all
- type: jekyll-posts
label: Posts
create: all
- typ... | 1eb673dc9a77fa8e5cf26c0265e8768e1bb84bd8 | .forestry/settings.yml | .forestry/settings.yml | YAML |
<|file_sep|>original/src/main/java/net/md_5/specialsource/InheritanceMap.java
// TODO: refactor with JarRemapper tryClimb?
List<String> parents = inheritanceProvider.getParents(className);
if (parents != null) {
return (ArrayList<String>) parents;
}
... |
if (parents != null) {
return (ArrayList<String>) parents;
}
}
return null;
}
public void save(PrintWriter writer) {
List<String> classes = new ArrayList<String>(inheritanceMap.keySet());
Collections.sort(classes);
for (String c... | <|file_sep|>original/src/main/java/net/md_5/specialsource/InheritanceMap.java
// TODO: refactor with JarRemapper tryClimb?
List<String> parents = inheritanceProvider.getParents(className);
if (parents != null) {
return (ArrayList<String>) parents;
}
... | 97b6e4179f73a8f50ccc8414be046d6086fe657b | src/main/java/net/md_5/specialsource/InheritanceMap.java | src/main/java/net/md_5/specialsource/InheritanceMap.java | Java |
<|file_sep|>original/rules/st2_docs_v20.yaml
<|file_sep|>current/rules/st2_docs_v20.yaml
<|file_sep|>updated/rules/st2_docs_v20.yaml | ---
name: "st2_docs_v20"
pack: "st2cd"
description: "Build st2 docs for StackStorm v2.0"
enabled: true
trigger:
type: "githubwebhook.github_event"
criteria:
trigger.body.ref:
pattern: "refs/heads/v2.0"
type: "equals"
trigger.body.repository.full_na... | <|file_sep|>original/rules/st2_docs_v20.yaml
<|file_sep|>current/rules/st2_docs_v20.yaml
<|file_sep|>updated/rules/st2_docs_v20.yaml
---
name: "st2_docs_v20"
pack: "st2cd"
description: "Build st2 docs for StackStorm v2.0"
enabled: true
trigger:
type: "githubwebhook.github_event"
criter... | 081aed1eab2ff31c09ef3525ceeb1c5f84378939 | rules/st2_docs_v20.yaml | rules/st2_docs_v20.yaml | YAML |
<|file_sep|>original/src/app/app.component.html
<h1>
{{title}}
<h2>This is added in feature one.</h2>
<h2>Add something on master.</h2>
</h1>
<|file_sep|>current/src/app/app.component.html
<h1>
{{title}}
<h2>This is added in feature one.</h2>
<h2>Add something on master.</h2>
</h1>
<|file_sep|>updated/src/a... | <h1>{{title}}</h1>
<h2>My heroes</h2>
<ul class="heroes">
<li [class.selected]="hero === selectedHero" *ngFor="let hero of heroes" (click)="onSelect(hero)">
<span class="badge">{{hero.id}}</span> {{hero.name}}
</li>
</ul>
<div *ngIf="selectedHero">
<h2>{{selectedHero.name}} details!</h2>
<div><label>id: </... | <|file_sep|>original/src/app/app.component.html
<h1>
{{title}}
<h2>This is added in feature one.</h2>
<h2>Add something on master.</h2>
</h1>
<|file_sep|>current/src/app/app.component.html
<h1>
{{title}}
<h2>This is added in feature one.</h2>
<h2>Add something on master.</h2>
</h1>
<|file_sep|>updated/src/a... | f2238b27b055777c81de0530cbc5799fdd64e152 | src/app/app.component.html | src/app/app.component.html | HTML |
<|file_sep|>original/models/walkmydog_profile.rb
# The Walkmydog users representing database class
class Profile
include DataMapper::Resource
property :id, Serial
property :firstname, Text, required: true
property :lastname, Text, required: true
property :email, Tex... | # The Walkmydog users representing database class
class Profile
include DataMapper::Resource
property :id, Serial
property :firstname, Text, required: true
property :lastname, Text, required: true
property :email, Text, required: true
property :password_hash, ... | <|file_sep|>original/models/walkmydog_profile.rb
# The Walkmydog users representing database class
class Profile
include DataMapper::Resource
property :id, Serial
property :firstname, Text, required: true
property :lastname, Text, required: true
property :email, Tex... | d6c00e4d73e9cf945150b502b8ece56d05bcdc42 | models/walkmydog_profile.rb | models/walkmydog_profile.rb | Ruby |
<|file_sep|>original/project/requirements/base.txt
# Bleeding edge Django
django==1.8.5
Jinja2==2.8
django-jinja==1.4.1
markupsafe==0.23
# Configuration
django-environ==0.4.0
django-secure==1.0.1
whitenoise==2.0.4
# Forms
django-braces==1.8.1
django-crispy-forms==1.5.2
django-floppyforms==1.5.2
# Models
django-model... | # Bleeding edge Django
django==1.8.5
Jinja2==2.8
django-jinja==2.2.2
markupsafe==0.23
# Configuration
django-environ==0.4.0
django-secure==1.0.1
whitenoise==2.0.4
# Forms
django-braces==1.8.1
django-crispy-forms==1.5.2
django-floppyforms==1.5.2
# Models
django-model-utils==2.3.1
# Images
Pillow==3.0.0 | <|file_sep|>original/project/requirements/base.txt
# Bleeding edge Django
django==1.8.5
Jinja2==2.8
django-jinja==1.4.1
markupsafe==0.23
# Configuration
django-environ==0.4.0
django-secure==1.0.1
whitenoise==2.0.4
# Forms
django-braces==1.8.1
django-crispy-forms==1.5.2
django-floppyforms==1.5.2
# Models
django-model... | 6e77cc4a4dab964a7097a71f7a18c401f4ecbf7a | project/requirements/base.txt | project/requirements/base.txt | Text |
<|file_sep|>original/src/vdb/src/_vdb/common.py
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permi... | # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
fro... | <|file_sep|>original/src/vdb/src/_vdb/common.py
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permi... | 786bc416ca00c7021f5881e459d2634e8fcd8458 | src/vdb/src/_vdb/common.py | src/vdb/src/_vdb/common.py | Python |
<|file_sep|>original/ou_noise.py
<|file_sep|>current/ou_noise.py
<|file_sep|>updated/ou_noise.py | # --------------------------------------
# Reference: https://github.com/rllab/rllab/blob/master/rllab/exploration_strategies/ou_strategy.py
# --------------------------------------
import numpy as np
import numpy.random as nr
class OUNoise:
""" docstring for OUNoise """
def __init__(self,action_dimension,mu=... | <|file_sep|>original/ou_noise.py
<|file_sep|>current/ou_noise.py
<|file_sep|>updated/ou_noise.py
# --------------------------------------
# Reference: https://github.com/rllab/rllab/blob/master/rllab/exploration_strategies/ou_strategy.py
# --------------------------------------
import numpy as np
import numpy.random... | 48acf7dd057d17611dcafa279721a99434e99885 | ou_noise.py | ou_noise.py | Python |
<|file_sep|>original/images/oc-build-deploy-dind/scripts/git-checkout-pull.sh
#!/bin/bash
# REF: can be a:
# a sha: a7789dc5e6960bb2250ae39d7e7145b632c44c77
# a tag: 1.0.0
# or a branch, prefixed by 'origin/': origin/branch2
REMOTE=$1
REF=$2
git init .
git config remote.origin.url $REMOTE
git fetch --depth=10 --tags... | #!/bin/bash
# REF: can be a:
# a sha: a7789dc5e6960bb2250ae39d7e7145b632c44c77
# a tag: 1.0.0
# or a branch, prefixed by 'origin/': origin/branch2
REMOTE=$1
REF=$2
git init .
git config remote.origin.url $REMOTE
git fetch --depth=10 --tags --progress $REMOTE +refs/heads/*:refs/remotes/origin/*
git checkout --force ... | <|file_sep|>original/images/oc-build-deploy-dind/scripts/git-checkout-pull.sh
#!/bin/bash
# REF: can be a:
# a sha: a7789dc5e6960bb2250ae39d7e7145b632c44c77
# a tag: 1.0.0
# or a branch, prefixed by 'origin/': origin/branch2
REMOTE=$1
REF=$2
git init .
git config remote.origin.url $REMOTE
git fetch --depth=10 --tags... | f66f87ff3f37db640f5d71e26db872fb1965b44c | images/oc-build-deploy-dind/scripts/git-checkout-pull.sh | images/oc-build-deploy-dind/scripts/git-checkout-pull.sh | Shell |
<|file_sep|>original/requirements.txt
beautifulsoup4>=4.5.3
html5lib>=0.999999999
requests>=2.13.0
<|file_sep|>current/requirements.txt
beautifulsoup4>=4.5.3
html5lib>=0.999999999
requests>=2.13.0
<|file_sep|>updated/requirements.txt | beautifulsoup4==4.5.3
html5lib==0.999999999
requests==2.13.0 | <|file_sep|>original/requirements.txt
beautifulsoup4>=4.5.3
html5lib>=0.999999999
requests>=2.13.0
<|file_sep|>current/requirements.txt
beautifulsoup4>=4.5.3
html5lib>=0.999999999
requests>=2.13.0
<|file_sep|>updated/requirements.txt
beautifulsoup4==4.5.3
html5lib==0.999999999
requests==2.13.0 | cd6266aa09b57009d89ad3e8478eb833d4c663c2 | requirements.txt | requirements.txt | Text |
<|file_sep|>test/helper.rb.diff
original:
updated:
require 'minitest/autorun'
<|file_sep|>original/test/helper.rb
require 'bundler/setup'
require 'minitest/spec'
require 'minitest/autorun'
require 'active_record/like'
ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:')
ActiveRecord::Sch... | require 'bundler/setup'
require 'minitest/autorun'
require 'minitest/spec'
require 'active_record/like'
ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:')
ActiveRecord::Schema.verbose = false
ActiveRecord::Schema.define do
create_table :posts do |t|
t.string :title
t.string :c... | <|file_sep|>test/helper.rb.diff
original:
updated:
require 'minitest/autorun'
<|file_sep|>original/test/helper.rb
require 'bundler/setup'
require 'minitest/spec'
require 'minitest/autorun'
require 'active_record/like'
ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:')
ActiveRecord::Sch... | 3c1457bfe0550a219879c126cd66a7bce3687d82 | test/helper.rb | test/helper.rb | Ruby |
<|file_sep|>lib/pragma/decorator.rb.diff
original:
updated:
require 'pragma/decorator/collection'
<|file_sep|>original/lib/pragma/decorator.rb
# frozen_string_literal: true
require 'roar'
require 'pragma/decorator/version'
require 'pragma/decorator/base'
module Pragma
# Represent your API resources in JSON with mi... | # frozen_string_literal: true
require 'roar'
require 'pragma/decorator/version'
require 'pragma/decorator/base'
require 'pragma/decorator/collection'
module Pragma
# Represent your API resources in JSON with minimum hassle.
#
# @author Alessandro Desantis
module Decorator
end
end | <|file_sep|>lib/pragma/decorator.rb.diff
original:
updated:
require 'pragma/decorator/collection'
<|file_sep|>original/lib/pragma/decorator.rb
# frozen_string_literal: true
require 'roar'
require 'pragma/decorator/version'
require 'pragma/decorator/base'
module Pragma
# Represent your API resources in JSON with mi... | 27b0c9b583bd2fa3741aa46e9b4cc7d7e2e1fe02 | lib/pragma/decorator.rb | lib/pragma/decorator.rb | Ruby |
<|file_sep|>original/src/views/owner/List.js
'<h3>{%: $.OwnerDescription %}</h3>'
]),
//Localization
titleText: 'Owners',
//View Properties
icon: 'content/images/Accounts_24x24.gif',
id: 'owner_list',
queryOrderBy: 'OwnerDescription',
querySe... | contentTemplate: new Simplate([
'<h3>{%: $.OwnerDescription %}</h3>'
]),
//Localization
titleText: 'Owners',
//View Properties
icon: 'content/images/Accounts_24x24.gif',
id: 'owner_list',
queryOrderBy: 'OwnerDescription',
querySelect:... | <|file_sep|>original/src/views/owner/List.js
'<h3>{%: $.OwnerDescription %}</h3>'
]),
//Localization
titleText: 'Owners',
//View Properties
icon: 'content/images/Accounts_24x24.gif',
id: 'owner_list',
queryOrderBy: 'OwnerDescription',
querySe... | dcac45a87f910ab26cdf657e09551f8201cfd738 | src/views/owner/List.js | src/views/owner/List.js | JavaScript |
<|file_sep|>spec/fragmenter/wrapper_spec.rb.diff
original:
subject(:base) { Fragmenter::Wrapper.new(object, engine_class) }
updated:
subject(:wrapper) do
Fragmenter::Wrapper.new(object, engine_class)
end
<|file_sep|>spec/fragmenter/wrapper_spec.rb.diff
original:
base.key.should match(/[a-z]+-\d+/)
updat... | wrapper.store(blob, headers)
end
it 'delegates #fragments to the storage engine' do
expect(engine).to receive(:fragments)
wrapper.fragments
end
end
describe '#as_json' do
it 'merges the stored meta and fragments' do
engine.stub('meta' => { 'content_type' => 'application/oct... | <|file_sep|>spec/fragmenter/wrapper_spec.rb.diff
original:
subject(:base) { Fragmenter::Wrapper.new(object, engine_class) }
updated:
subject(:wrapper) do
Fragmenter::Wrapper.new(object, engine_class)
end
<|file_sep|>spec/fragmenter/wrapper_spec.rb.diff
original:
base.key.should match(/[a-z]+-\d+/)
updat... | da91a96c2b4f28192e93186ff011eccf3faa3696 | spec/fragmenter/wrapper_spec.rb | spec/fragmenter/wrapper_spec.rb | Ruby |
<|file_sep|>original/allure-report-data/src/test/groovy/ru/yandex/qatools/allure/data/plugins/MigrationPluginTest.groovy
import ru.yandex.qatools.allure.model.TestCaseResult
/**
* eroshenkoam
* 25/02/15
*/
class MigrationPluginTest {
def plugin = new MigrationPlugin()
def severity = SeverityLevel.NORMAL
... | import ru.yandex.qatools.allure.model.TestCaseResult
/**
* eroshenkoam
* 25/02/15
*/
class MigrationPluginTest {
def plugin = new MigrationPlugin()
def severity = SeverityLevel.CRITICAL
@Test
void severityFieldMustBeMigratedToLabels() {
def testCase = new TestCaseResult(severity: severi... | <|file_sep|>original/allure-report-data/src/test/groovy/ru/yandex/qatools/allure/data/plugins/MigrationPluginTest.groovy
import ru.yandex.qatools.allure.model.TestCaseResult
/**
* eroshenkoam
* 25/02/15
*/
class MigrationPluginTest {
def plugin = new MigrationPlugin()
def severity = SeverityLevel.NORMAL
... | ed5bcbd923c658a69cdf474ef41abeda222fe683 | allure-report-data/src/test/groovy/ru/yandex/qatools/allure/data/plugins/MigrationPluginTest.groovy | allure-report-data/src/test/groovy/ru/yandex/qatools/allure/data/plugins/MigrationPluginTest.groovy | Groovy |
<|file_sep|>services/SharedKernel/FilterLists.SharedKernel.Logging/HostRunner.cs.diff
original:
using Microsoft.Extensions.Configuration;
updated:
using Microsoft.ApplicationInsights;
using Microsoft.ApplicationInsights.Extensibility;
<|file_sep|>services/SharedKernel/FilterLists.SharedKernel.Logging/HostRunner.cs.diff... | Log.Logger = ConfigurationBuilder.BaseLoggerConfiguration
.WriteTo.Conditional(
_ => host.Services.GetService<IHostEnvironment>().IsProduction(),
c => c.ApplicationInsights(
host.Services.GetRequiredService<TelemetryConfiguratio... | <|file_sep|>services/SharedKernel/FilterLists.SharedKernel.Logging/HostRunner.cs.diff
original:
using Microsoft.Extensions.Configuration;
updated:
using Microsoft.ApplicationInsights;
using Microsoft.ApplicationInsights.Extensibility;
<|file_sep|>services/SharedKernel/FilterLists.SharedKernel.Logging/HostRunner.cs.diff... | cd343a7a727c58faa6dc71adb10aa31756ca2867 | services/SharedKernel/FilterLists.SharedKernel.Logging/HostRunner.cs | services/SharedKernel/FilterLists.SharedKernel.Logging/HostRunner.cs | C# |
<|file_sep|>.travis.yml.diff
original:
env: PUPPET_GEM_VERSION="~> 3.3.0"
updated:
env: PUPPET_GEM_VERSION="~> 3.5.0"
<|file_sep|>.travis.yml.diff
original:
env: PUPPET_GEM_VERSION="~> 3.0" FUTURE_PARSER="yes"
updated:
env: PUPPET_GEM_VERSION="~> 3.5" FUTURE_PARSER="yes"
<|file_sep|>.travis.yml.diff
ori... | - rvm: 1.8.7
env: PUPPET_GEM_VERSION="~> 3.5.0"
- rvm: 1.8.7
env: PUPPET_GEM_VERSION="~> 3.5" FUTURE_PARSER="yes"
- rvm: 1.9.3
env: PUPPET_GEM_VERSION="~> 3.5.0"
- rvm: 1.9.3
env: PUPPET_GEM_VERSION="~> 3.5" FUTURE_PARSER="yes"
- rvm: 2.0.0
env: PUPPET_GEM_VERSION="~> 3.5.0"
- rvm: 2.0.0... | <|file_sep|>.travis.yml.diff
original:
env: PUPPET_GEM_VERSION="~> 3.3.0"
updated:
env: PUPPET_GEM_VERSION="~> 3.5.0"
<|file_sep|>.travis.yml.diff
original:
env: PUPPET_GEM_VERSION="~> 3.0" FUTURE_PARSER="yes"
updated:
env: PUPPET_GEM_VERSION="~> 3.5" FUTURE_PARSER="yes"
<|file_sep|>.travis.yml.diff
ori... | a1d6fbf0985de01379157575dc7f11d58cacbcdf | .travis.yml | .travis.yml | YAML |
<|file_sep|>app/views/kaminari/blacklight_compact/_paginator.html.erb.diff
original:
<div aria-hidden="true" class="page_links">
updated:
<div class="page_links">
<|file_sep|>original/app/views/kaminari/blacklight_compact/_paginator.html.erb
so we can add a aria-hidden="true" attribute around it. If that gets a... | so we can add a aria-hidden="true" attribute around it. If that gets added into
Blacklight, this file can be removed -%>
<% if total_pages > 1 -%>
<%# #render checks if total_pages > 1, so we can't put our fallback
in here .. -%>
<%= paginator.render do -%>
<div class="page_links">
<%= prev_page_tag %> ... | <|file_sep|>app/views/kaminari/blacklight_compact/_paginator.html.erb.diff
original:
<div aria-hidden="true" class="page_links">
updated:
<div class="page_links">
<|file_sep|>original/app/views/kaminari/blacklight_compact/_paginator.html.erb
so we can add a aria-hidden="true" attribute around it. If that gets a... | ff96362aaef3442ea9620885d5d8f12ed20356a4 | app/views/kaminari/blacklight_compact/_paginator.html.erb | app/views/kaminari/blacklight_compact/_paginator.html.erb | HTML+ERB |
<|file_sep|>original/src/main/resources/assets/openblocks/blockstates/xp_shower.json
{
"forge_marker" : 1,
"defaults" : { "model" : "openblocks:xp_shower" },
"variants" : {
"inventory": [{}],
"orientation" : {
"xp_yp" : { "y" : 180 },
"zp_yp" : { "y" : 270 },
... | {
"forge_marker" : 1,
"defaults" : {
"model" : "openblocks:xp_shower",
"transform": "forge:default-block"
},
"variants" : {
"inventory": [{}],
"orientation" : {
"xp_yp" : { "y" : 180 },
"zp_yp" : { "y" : 270 },
"xn_yp" : { "y" : 0 },
... | <|file_sep|>original/src/main/resources/assets/openblocks/blockstates/xp_shower.json
{
"forge_marker" : 1,
"defaults" : { "model" : "openblocks:xp_shower" },
"variants" : {
"inventory": [{}],
"orientation" : {
"xp_yp" : { "y" : 180 },
"zp_yp" : { "y" : 270 },
... | 28a1be2c751dc32a8643f2d46982cd71162f2f07 | src/main/resources/assets/openblocks/blockstates/xp_shower.json | src/main/resources/assets/openblocks/blockstates/xp_shower.json | JSON |
<|file_sep|>test/Moretest/signals.ml.diff
original:
updated:
let stop_handler _ =
print_string "Thank you for pressing ctrl-Z."; print_newline();
print_string "Now raising an exception..."; print_newline();
raise Exit
<|file_sep|>original/test/Moretest/signals.ml
let rec tak (x, y, z) =
if x > y then tak(tak ... | let stop_handler _ =
print_string "Thank you for pressing ctrl-Z."; print_newline();
print_string "Now raising an exception..."; print_newline();
raise Exit
let _ =
Sys.signal Sys.sigint (Sys.Signal_handle break_handler);
Sys.signal Sys.sigtstp (Sys.Signal_handle stop_handler);
begin try
print_string "... | <|file_sep|>test/Moretest/signals.ml.diff
original:
updated:
let stop_handler _ =
print_string "Thank you for pressing ctrl-Z."; print_newline();
print_string "Now raising an exception..."; print_newline();
raise Exit
<|file_sep|>original/test/Moretest/signals.ml
let rec tak (x, y, z) =
if x > y then tak(tak ... | e6b1189863882c059f94e23815542dd44f31fe03 | test/Moretest/signals.ml | test/Moretest/signals.ml | OCaml |
<|file_sep|>original/package.json
"description": "A framework for building scalable realtime web API services for Express",
"version": "0.8.1",
"author": "Droonga project <droonga@groonga.org>",
"contributors": [
{
"name": "Daijiro MORI",
"email": "mori@groonga.org"
},
{
"name": "Y... | "description": "A framework for building scalable realtime web API services for Express",
"version": "0.8.1",
"author": "Droonga project <droonga@groonga.org>",
"contributors": [
{
"name": "Daijiro MORI",
"email": "mori@groonga.org"
},
{
"name": "YUKI Hiroshi",
"email": "piro... | <|file_sep|>original/package.json
"description": "A framework for building scalable realtime web API services for Express",
"version": "0.8.1",
"author": "Droonga project <droonga@groonga.org>",
"contributors": [
{
"name": "Daijiro MORI",
"email": "mori@groonga.org"
},
{
"name": "Y... | 956e76dcc026a9a7a7913a295010412bfc480071 | package.json | package.json | JSON |
<|file_sep|>metadata/me.impa.knockonports.yml.diff
original:
updated:
- versionName: 1.0.4
versionCode: 7
commit: 1.0.4
subdir: app
gradle:
- yes
rm:
- assets/*
<|file_sep|>original/metadata/me.impa.knockonports.yml
* data export/import
* customizable UDP packet content
*... | versionCode: 6
commit: 1.0.3
subdir: app
gradle:
- yes
rm:
- assets/*
- versionName: 1.0.4
versionCode: 7
commit: 1.0.4
subdir: app
gradle:
- yes
rm:
- assets/*
AutoUpdateMode: Version %v
UpdateCheckMode: Tags
CurrentVersion: 1.0.4
CurrentVersionCode: ... | <|file_sep|>metadata/me.impa.knockonports.yml.diff
original:
updated:
- versionName: 1.0.4
versionCode: 7
commit: 1.0.4
subdir: app
gradle:
- yes
rm:
- assets/*
<|file_sep|>original/metadata/me.impa.knockonports.yml
* data export/import
* customizable UDP packet content
*... | 1929e2cda1761aadd26b2724a616901720644f4a | metadata/me.impa.knockonports.yml | metadata/me.impa.knockonports.yml | YAML |
<|file_sep|>original/.travis.yml
language: ruby
script:
- bundle exec mspec -fd -t ruby
notifications:
email: false
rvm:
- 2.0.0
- 2.1
- 2.2
- ruby-head
<|file_sep|>current/.travis.yml
language: ruby
script:
- bundle exec mspec -fd -t ruby
notifications:
email: false
rvm:
- 2.0.0
- 2.1
- 2.2
- r... | language: ruby
script:
- bundle exec mspec -fd -t ruby
rvm:
- 2.0.0
- 2.1
- 2.2
- ruby-head | <|file_sep|>original/.travis.yml
language: ruby
script:
- bundle exec mspec -fd -t ruby
notifications:
email: false
rvm:
- 2.0.0
- 2.1
- 2.2
- ruby-head
<|file_sep|>current/.travis.yml
language: ruby
script:
- bundle exec mspec -fd -t ruby
notifications:
email: false
rvm:
- 2.0.0
- 2.1
- 2.2
- r... | 72e4b19b42b288907c1839f5fc8d0930c9881429 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/lib/memHandler.js
* @param {Object} options
* @param {String} fieldname
* @param {String} filename
* @returns {Object}
*/
module.exports = (options, fieldname, filename) => {
let buffers = [];
let fileSize = 0; // eslint-disable-line
let hash = crypto.createHash('md5');
const getBuffe... | * @param {Object} options
* @param {String} fieldname
* @param {String} filename
* @returns {Object}
*/
module.exports = (options, fieldname, filename) => {
let buffers = [];
let fileSize = 0; // eslint-disable-line
let hash = crypto.createHash('md5');
const getBuffer = () => Buffer.concat(buffers, fileSi... | <|file_sep|>original/lib/memHandler.js
* @param {Object} options
* @param {String} fieldname
* @param {String} filename
* @returns {Object}
*/
module.exports = (options, fieldname, filename) => {
let buffers = [];
let fileSize = 0; // eslint-disable-line
let hash = crypto.createHash('md5');
const getBuffe... | 4bfd2b72c55c74ad91ff1691d03cd534da4d6d87 | lib/memHandler.js | lib/memHandler.js | JavaScript |
<|file_sep|>Twig/Extension/BarcodeRenderExtension.php.diff
original:
'mopa_barcode_url' => new \Twig_Function_Method($this, 'get'),
updated:
'mopa_barcode_url' => new \Twig_Function_Method($this, 'url'),
'mopa_barcode_path' => new \Twig_Function_Method($this, 'path'),
<|file_sep|>Twig/Exte... |
public function getFunctions()
{
return array(
'mopa_barcode_url' => new \Twig_Function_Method($this, 'url'),
'mopa_barcode_path' => new \Twig_Function_Method($this, 'path'),
);
}
public function url($type, $text) {
$this->get($type, $text, false);
}
... | <|file_sep|>Twig/Extension/BarcodeRenderExtension.php.diff
original:
'mopa_barcode_url' => new \Twig_Function_Method($this, 'get'),
updated:
'mopa_barcode_url' => new \Twig_Function_Method($this, 'url'),
'mopa_barcode_path' => new \Twig_Function_Method($this, 'path'),
<|file_sep|>Twig/Exte... | fd98c7c72471e4d97030afe19f624485a59d2714 | Twig/Extension/BarcodeRenderExtension.php | Twig/Extension/BarcodeRenderExtension.php | PHP |
<|file_sep|>runtests.py.diff
original:
from django.test.utils import get_runner
updated:
from django.test.runner import DiscoverRunner
<|file_sep|>original/runtests.py
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "farnsworth.settings")
this_dir = os.path.abspath(os.path.dirname(__file__))
if this_dir not in sys.pat... | import sys
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "farnsworth.settings")
this_dir = os.path.abspath(os.path.dirname(__file__))
if this_dir not in sys.path:
sys.path.insert(0, this_dir)
import django
from django.test.runner import DiscoverRunner
from django.conf import settings
def runtests():
if not setti... | <|file_sep|>runtests.py.diff
original:
from django.test.utils import get_runner
updated:
from django.test.runner import DiscoverRunner
<|file_sep|>original/runtests.py
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "farnsworth.settings")
this_dir = os.path.abspath(os.path.dirname(__file__))
if this_dir not in sys.pat... | 98f638e5a42765a284a4fd006190507efee5363a | runtests.py | runtests.py | Python |
<|file_sep|>original/spec/spec_helper.rb
require 'simplecov'
SimpleCov.command_name "Rspec"
SimpleCov.start
require 'bundler/setup'
Bundler.setup
require 'fat_core'
require 'byebug'
# This file was generated by the `rspec --init` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to... | require 'simplecov'
SimpleCov.command_name "Rspec"
SimpleCov.start
require 'bundler/setup'
Bundler.setup
require 'fat_core'
# This file was generated by the `rspec --init` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
# Require this file using `require "spe... | <|file_sep|>original/spec/spec_helper.rb
require 'simplecov'
SimpleCov.command_name "Rspec"
SimpleCov.start
require 'bundler/setup'
Bundler.setup
require 'fat_core'
require 'byebug'
# This file was generated by the `rspec --init` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to... | 9693a1d2fe1e3d05485524864e91fb10e61a9054 | spec/spec_helper.rb | spec/spec_helper.rb | Ruby |
<|file_sep|>original/images/public-log-vendor-matcher/app/ext-ip-asn.sql
SELECT
asn as asn,
ip as cidr_ip,
ip_start as start_ip,
ip_end as end_ip,
NET.IPV4_TO_INT64(NET.IP_FROM_STRING(ip_start)) AS start_ip_int,
NET.IPV4_TO_INT64(NET.IP_FROM_STRING(ip_end)) AS end_ip_int
FROM `k8s-infra-ii-s... | SELECT
asn as asn,
ip as cidr_ip,
ip_start as start_ip,
ip_end as end_ip,
NET.IPV4_TO_INT64(NET.IP_FROM_STRING(ip_start)) AS start_ip_int,
NET.IPV4_TO_INT64(NET.IP_FROM_STRING(ip_end)) AS end_ip_int
FROM `${GCP_PROJECT}.${GCP_BIGQUERY_DATASET_WITH_DATE}.pyasn_ip_asn_extended`
WHERE regex... | <|file_sep|>original/images/public-log-vendor-matcher/app/ext-ip-asn.sql
SELECT
asn as asn,
ip as cidr_ip,
ip_start as start_ip,
ip_end as end_ip,
NET.IPV4_TO_INT64(NET.IP_FROM_STRING(ip_start)) AS start_ip_int,
NET.IPV4_TO_INT64(NET.IP_FROM_STRING(ip_end)) AS end_ip_int
FROM `k8s-infra-ii-s... | dcae7437a789c16b5c9dd7ac59e38b53d452cac0 | images/public-log-vendor-matcher/app/ext-ip-asn.sql | images/public-log-vendor-matcher/app/ext-ip-asn.sql | SQL |
<|file_sep|>original/src/test/resources/log4j.properties
log4j.rootLogger=INFO, console
log4j.logger.com.hpcloud.maas=TRACE
log4j.logger.com.hpcloud.messaging.rabbitmq=DEBUG
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.layout=org.apache.log4j.EnhancedPatternLayout
log4j.appender.cons... | log4j.rootLogger=INFO, console
log4j.logger.com.hpcloud.maas=DEBUG
log4j.logger.com.hpcloud.messaging.rabbitmq=DEBUG
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.layout=org.apache.log4j.EnhancedPatternLayout
log4j.appender.console.layout.conversionPattern=%-5p [%d{ISO8601}] [%.18thre... | <|file_sep|>original/src/test/resources/log4j.properties
log4j.rootLogger=INFO, console
log4j.logger.com.hpcloud.maas=TRACE
log4j.logger.com.hpcloud.messaging.rabbitmq=DEBUG
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.layout=org.apache.log4j.EnhancedPatternLayout
log4j.appender.cons... | cc457d31e5640e7cc4984bbed5bb02b65b8a2caf | src/test/resources/log4j.properties | src/test/resources/log4j.properties | INI |
<|file_sep|>original/js/nav_menu.js
<|file_sep|>current/js/nav_menu.js
<|file_sep|>updated/js/nav_menu.js | /**
* Handle the custom post type nav menu meta box
*/
jQuery( document ).ready( function($) {
$( '#submit-mlp_language' ).click( function( event ) {
event.preventDefault();
var items = $( '#' + mlp_nav_menu.metabox_list_id + ' li :checked' ),
submit = $( '#submit-mlp_language' ),
languages = []... | <|file_sep|>original/js/nav_menu.js
<|file_sep|>current/js/nav_menu.js
<|file_sep|>updated/js/nav_menu.js
/**
* Handle the custom post type nav menu meta box
*/
jQuery( document ).ready( function($) {
$( '#submit-mlp_language' ).click( function( event ) {
event.preventDefault();
var items = $( '#' + mlp_... | faa58cbd818d4bfcdc2861301d5cd2415b432ac5 | js/nav_menu.js | js/nav_menu.js | JavaScript |
<|file_sep|>original/scripts/delete_restored_trashedfilenodes.py
<|file_sep|>current/scripts/delete_restored_trashedfilenodes.py
<|file_sep|>updated/scripts/delete_restored_trashedfilenodes.py | # -*- coding: utf-8 -*-
"""Restore a deleted StoredFileNode. If the file was reuploaded, renames the file
to <filename> (restored).<ext>. For example, README.rst would be renamed to README (restored).rst.
python -m scripts.restore_file 123ab --dry
python -m scripts.restore_file 123ab
"""
import sys
import log... | <|file_sep|>original/scripts/delete_restored_trashedfilenodes.py
<|file_sep|>current/scripts/delete_restored_trashedfilenodes.py
<|file_sep|>updated/scripts/delete_restored_trashedfilenodes.py
# -*- coding: utf-8 -*-
"""Restore a deleted StoredFileNode. If the file was reuploaded, renames the file
to <filename> (rest... | 8d84f59ae4ac2fd88b32f6059451652494556201 | scripts/delete_restored_trashedfilenodes.py | scripts/delete_restored_trashedfilenodes.py | Python |
<|file_sep|>original/blog/authors/BrianSipple.md
<|file_sep|>current/blog/authors/BrianSipple.md
<|file_sep|>updated/blog/authors/BrianSipple.md | ---
name: Brian Sipple
id: BrianSipple
image: /img/blog/authors/brian.jpg
bio:
website:
twitter:
location: New York, NY
--- | <|file_sep|>original/blog/authors/BrianSipple.md
<|file_sep|>current/blog/authors/BrianSipple.md
<|file_sep|>updated/blog/authors/BrianSipple.md
---
name: Brian Sipple
id: BrianSipple
image: /img/blog/authors/brian.jpg
bio:
website:
twitter:
location: New York, NY
--- | 96ec83299ab0dc7ec7aaf25f952c98097a269abc | blog/authors/BrianSipple.md | blog/authors/BrianSipple.md | Markdown |
<|file_sep|>original/src/Regex/Cursor-builtins.pir
<|file_sep|>current/src/Regex/Cursor-builtins.pir
<|file_sep|>updated/src/Regex/Cursor-builtins.pir | # Copyright (C) 2009, Patrick R. Michaud
# $Id$
=head1 NAME
Regex::Cursor-builtins - builtin regexes for Cursor objects
=cut
.include 'cclass.pasm'
.namespace ['Regex';'Cursor']
.sub '!cclass' :method
.param string name
.param int cclass
.local pmc cur
.local int pos
.local string tgt
(cur... | <|file_sep|>original/src/Regex/Cursor-builtins.pir
<|file_sep|>current/src/Regex/Cursor-builtins.pir
<|file_sep|>updated/src/Regex/Cursor-builtins.pir
# Copyright (C) 2009, Patrick R. Michaud
# $Id$
=head1 NAME
Regex::Cursor-builtins - builtin regexes for Cursor objects
=cut
.include 'cclass.pasm'
.namespace ['R... | a0788f8a7eaac5a14f3c63a231eb0a17da93b17d | src/Regex/Cursor-builtins.pir | src/Regex/Cursor-builtins.pir | Parrot Internal Representation |
<|file_sep|>simple_backend/app/controllers/auth.rb.diff
original:
session[:user_id] = user.id
updated:
<|file_sep|>original/simple_backend/app/controllers/auth.rb
puts "found user"
if user && user.authenticate(params[:user][:password])
puts "Successfully signed in!!!!"
return { status: "success", id: use... | post '/signin' do
content_type :json
user = User.find_by(name: params[:user][:name])
puts "found user"
if user && user.authenticate(params[:user][:password])
puts "Successfully signed in!!!!"
return { status: "success", id: user.id, name: user.name }.to_json
else
return { status: "failed" }.to_jso... | <|file_sep|>simple_backend/app/controllers/auth.rb.diff
original:
session[:user_id] = user.id
updated:
<|file_sep|>original/simple_backend/app/controllers/auth.rb
puts "found user"
if user && user.authenticate(params[:user][:password])
puts "Successfully signed in!!!!"
return { status: "success", id: use... | 84770dbfa4da78bbf8cf6f6520541db5f72cd3b3 | simple_backend/app/controllers/auth.rb | simple_backend/app/controllers/auth.rb | Ruby |
<|file_sep|>original/requirements/dev.txt
flake8==5.0.4
black==22.6.0
isort==5.10.1
<|file_sep|>current/requirements/dev.txt
flake8==5.0.4
black==22.6.0
isort==5.10.1
<|file_sep|>updated/requirements/dev.txt | flake8==5.0.4
black==22.8.0
isort==5.10.1 | <|file_sep|>original/requirements/dev.txt
flake8==5.0.4
black==22.6.0
isort==5.10.1
<|file_sep|>current/requirements/dev.txt
flake8==5.0.4
black==22.6.0
isort==5.10.1
<|file_sep|>updated/requirements/dev.txt
flake8==5.0.4
black==22.8.0
isort==5.10.1 | 62d5ece51f15ce3f1682739cdc3ec03160d49619 | requirements/dev.txt | requirements/dev.txt | Text |
<|file_sep|>original/lib/warden/jwt_auth/token_decoder.rb
# frozen_string_literal: true
module Warden
module JWTAuth
# Decodes a JWT into a hash payload into a JWT token
class TokenDecoder
include JWTAuth::Import['secret']
# Decodes the payload from a JWT as a hash
#
# @param token [... | # frozen_string_literal: true
module Warden
module JWTAuth
# Decodes a JWT into a hash payload into a JWT token
class TokenDecoder
include JWTAuth::Import['secret']
# Decodes the payload from a JWT as a hash
#
# @see JWT.decode for all the exceptions than can be raised when given
... | <|file_sep|>original/lib/warden/jwt_auth/token_decoder.rb
# frozen_string_literal: true
module Warden
module JWTAuth
# Decodes a JWT into a hash payload into a JWT token
class TokenDecoder
include JWTAuth::Import['secret']
# Decodes the payload from a JWT as a hash
#
# @param token [... | 2a005b7e13035c648914e647ac831c48d2aac661 | lib/warden/jwt_auth/token_decoder.rb | lib/warden/jwt_auth/token_decoder.rb | Ruby |
<|file_sep|>original/app/views/layouts/application/_form_errors.html.erb
<% if object.errors.any? %>
<div>
<strong>
<%= pluralize(object.errors.count, 'error') %> were found
</strong>
<ul>
<% object.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
... | <% if object.errors.any? %>
<div>
<h3>
<%= pluralize(object.errors.count, 'error') %> was found
</h3>
<ul>
<% object.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<% end %> | <|file_sep|>original/app/views/layouts/application/_form_errors.html.erb
<% if object.errors.any? %>
<div>
<strong>
<%= pluralize(object.errors.count, 'error') %> were found
</strong>
<ul>
<% object.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
... | 717c9ba5e6a3392388d22e73426d37f9ecac5d2c | app/views/layouts/application/_form_errors.html.erb | app/views/layouts/application/_form_errors.html.erb | HTML+ERB |
<|file_sep|>metadata/io.github.subhamtyagi.lastlauncher.yml.diff
original:
updated:
- versionName: '0.2'
versionCode: 2
commit: v0.2
subdir: app
gradle:
- yes
<|file_sep|>original/metadata/io.github.subhamtyagi.lastlauncher.yml
AuthorName: SubhamTyagi
SourceCode: https://github.com/SubhamTyagi... | Repo: https://github.com/SubhamTyagi/Last-Launcher
Builds:
- versionName: '0.1'
versionCode: 1
commit: v0.1
subdir: app
gradle:
- yes
- versionName: '0.2'
versionCode: 2
commit: v0.2
subdir: app
gradle:
- yes
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags
CurrentVer... | <|file_sep|>metadata/io.github.subhamtyagi.lastlauncher.yml.diff
original:
updated:
- versionName: '0.2'
versionCode: 2
commit: v0.2
subdir: app
gradle:
- yes
<|file_sep|>original/metadata/io.github.subhamtyagi.lastlauncher.yml
AuthorName: SubhamTyagi
SourceCode: https://github.com/SubhamTyagi... | a1fce3613b50a6623bfece1c63740d89de6a7380 | metadata/io.github.subhamtyagi.lastlauncher.yml | metadata/io.github.subhamtyagi.lastlauncher.yml | YAML |
<|file_sep|>assets_src/config/ui/halley/asset_browser_tabs.yaml.diff
original:
- widget: { id: tabs, class: list, type: horizontal, style: tabs }
updated:
- widget: { class: scrollBarPane, scrollHorizontal: true, scrollVertical: false, autoHide: true, size: [50, 10] }
<|file_sep|>original/assets_src/config/ui/halley/as... | ---
widget: { class: widget }
sizer: { type: vertical }
proportion: 1
children:
- widget: { class: scrollBarPane, scrollHorizontal: true, scrollVertical: false, autoHide: true, size: [50, 10] }
proportion: 0
sizer: { type: vertical }
children:
- widget: { id: tabs, class: list, type: horizontal, style: tabs }
... | <|file_sep|>assets_src/config/ui/halley/asset_browser_tabs.yaml.diff
original:
- widget: { id: tabs, class: list, type: horizontal, style: tabs }
updated:
- widget: { class: scrollBarPane, scrollHorizontal: true, scrollVertical: false, autoHide: true, size: [50, 10] }
<|file_sep|>original/assets_src/config/ui/halley/as... | c272c13af7bbdfe79f98d6724aca62ef5c634af9 | assets_src/config/ui/halley/asset_browser_tabs.yaml | assets_src/config/ui/halley/asset_browser_tabs.yaml | YAML |
<|file_sep|>index.html.diff
original:
<script src="js/save.js" type="text/javascript"></script>
updated:
<|file_sep|>original/index.html
<html>
<head>
<title>Pokefinder</title>
<link rel="stylesheet" href="css/bootstrap.css" type="text/css" />
<link rel="stylesheet" href="css/style.css" type="text/css" />
<s... | <title>Pokefinder</title>
<link rel="stylesheet" href="css/bootstrap.css" type="text/css" />
<link rel="stylesheet" href="css/style.css" type="text/css" />
</head>
<body class="padding">
<br>
<button onclick="save()">Save</button>
<button onclick="load_()">Load</button>
<br><br>
<input type="checkbox" v... | <|file_sep|>index.html.diff
original:
<script src="js/save.js" type="text/javascript"></script>
updated:
<|file_sep|>original/index.html
<html>
<head>
<title>Pokefinder</title>
<link rel="stylesheet" href="css/bootstrap.css" type="text/css" />
<link rel="stylesheet" href="css/style.css" type="text/css" />
<s... | 77649bcf80938881381de2bd6bf604b52486cee8 | index.html | index.html | HTML |
<|file_sep|>original/package.json
{
"name": "hello-push-cloud",
"version": "0.1.0",
"dependencies": {
"body-parser": "~1.0.2",
"cors": "~2.2.0",
"express": "~4.0.0",
"request": "2.79.0",
"fh-mbaas-api": "6.1.4"
},
"devDependencies": {
"grunt-concurrent": "latest",
"grunt-contrib-js... | {
"name": "hello-push-cloud",
"version": "0.1.0",
"dependencies": {
"body-parser": "~1.0.2",
"cors": "~2.2.0",
"express": "~4.0.0",
"request": "2.79.0",
"fh-mbaas-api": "6.1.5"
},
"devDependencies": {
"grunt-concurrent": "latest",
"grunt-contrib-jshint": "^0.11.3",
"grunt-contr... | <|file_sep|>original/package.json
{
"name": "hello-push-cloud",
"version": "0.1.0",
"dependencies": {
"body-parser": "~1.0.2",
"cors": "~2.2.0",
"express": "~4.0.0",
"request": "2.79.0",
"fh-mbaas-api": "6.1.4"
},
"devDependencies": {
"grunt-concurrent": "latest",
"grunt-contrib-js... | d67440394672a13aeefcfe67ded800333c779f7d | package.json | package.json | JSON |
<|file_sep|>original/guide/locale-zhtw.json
<|file_sep|>current/guide/locale-zhtw.json
<|file_sep|>updated/guide/locale-zhtw.json | {
"n": {
"repository": "程式庫",
"repositories": "程式庫",
"branch": "分支",
"branches": "分支",
"fork": "複本",
"pull request": "收取要求",
"commit": "提要",
"commits": "提要",
"upstream": "上游",
"feature": "功能",
"status": "現況",
"diff": "差異",
"readme": "讀我檔案",
"collaborator": "夥伴",... | <|file_sep|>original/guide/locale-zhtw.json
<|file_sep|>current/guide/locale-zhtw.json
<|file_sep|>updated/guide/locale-zhtw.json
{
"n": {
"repository": "程式庫",
"repositories": "程式庫",
"branch": "分支",
"branches": "分支",
"fork": "複本",
"pull request": "收取要求",
"commit": "提要",
"commits": "提... | b1bc7518d7ebb0399aae8511b1b3a72603d43a87 | guide/locale-zhtw.json | guide/locale-zhtw.json | JSON |
<|file_sep|>original/src/test_io.py
<|file_sep|>current/src/test_io.py
<|file_sep|>updated/src/test_io.py | import RPi.GPIO as GPIO
import time
# This test is made for a quick check of the gpios
# List of the in channels to test. When pressed they output a message.
in_chanels = []
# A list of output channels to test. These whill be switched on and off in a pattern.
out_chanels = []
def switch_called(channel):
print 'Edg... | <|file_sep|>original/src/test_io.py
<|file_sep|>current/src/test_io.py
<|file_sep|>updated/src/test_io.py
import RPi.GPIO as GPIO
import time
# This test is made for a quick check of the gpios
# List of the in channels to test. When pressed they output a message.
in_chanels = []
# A list of output channels to test... | d03d4bf0ca7ec4d66868f384d6864c9fb456cb84 | src/test_io.py | src/test_io.py | Python |
<|file_sep|>original/src/main/java/org/jboss/netty/handler/codec/frame/TooLongFrameException.java
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See th... | * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.... | <|file_sep|>original/src/main/java/org/jboss/netty/handler/codec/frame/TooLongFrameException.java
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See th... | 94a5f3dbc7685691f504fff67f5aedab27e845fd | src/main/java/org/jboss/netty/handler/codec/frame/TooLongFrameException.java | src/main/java/org/jboss/netty/handler/codec/frame/TooLongFrameException.java | Java |
<|file_sep|>original/README.md
# SWITCHES
SWITCHES is a Parallel Programming Platform (Runtime System, Scheduler, Translator) for Task-based Data-flow Execution. It is implemented for multi- and many-core processors that support a global address space (shared memory) and uses OpenMP v4.5 compiler directives for writtin... | # SWITCHES
SWITCHES is a Parallel Programming Platform (Runtime System, Scheduler, Translator) for Task-based Data-flow Execution. It is implemented for multi- and many-core processors that support a global address space (shared memory) and uses OpenMP v4.5 compiler directives for writting parallel applications.
__Pre... | <|file_sep|>original/README.md
# SWITCHES
SWITCHES is a Parallel Programming Platform (Runtime System, Scheduler, Translator) for Task-based Data-flow Execution. It is implemented for multi- and many-core processors that support a global address space (shared memory) and uses OpenMP v4.5 compiler directives for writtin... | e096634cccebe639354e44e5be34aaad594f2b49 | README.md | README.md | Markdown |
<|file_sep|>original/TorGTK/list_elements.py
from var import *
from ui_elements import *
from gi.repository import Gtk
from torctl import *
# ORGANIZATION OF THESE LISTS:
# 1. Main list for all the elements
# 2. A sublist for each element, with the first being a label, and the second
# being the element itself
# L... | from ui_elements import *
from gi.repository import Gtk
from torctl import *
# ORGANIZATION OF THESE LISTS:
# 1. Main list for all the elements
# 2. A sublist for each element, with the first being a label, and the second
# being the element itself
# List for main listbox
lb_main_elements = [
["", init_menubutton... | <|file_sep|>original/TorGTK/list_elements.py
from var import *
from ui_elements import *
from gi.repository import Gtk
from torctl import *
# ORGANIZATION OF THESE LISTS:
# 1. Main list for all the elements
# 2. A sublist for each element, with the first being a label, and the second
# being the element itself
# L... | 352cb871a86abd926842a0624475db1f2ee2c0ce | TorGTK/list_elements.py | TorGTK/list_elements.py | Python |
<|file_sep|>original/PROJECT.yml
# See go/project-docs. Generated using ./pants run src/python/twitter/phabricator:owners_to_project -- --dirs=a/owned/path,b/owned/path
owners:
- banderson
- ccoco
- ibennett
- mnakamura
- ryano
- yufang
watchers:
- csl-team:ldap
- scosenza
<|file_sep|>current/PROJECT.y... | # See go/project-docs. Generated using ./pants run src/python/twitter/phabricator:owners_to_project -- --dirs=a/owned/path,b/owned/path
owners:
- banderson
- ccoco
- ibennett
- jyan
- mnakamura
- ryano
- yufang
watchers:
- csl-team:ldap
- scosenza | <|file_sep|>original/PROJECT.yml
# See go/project-docs. Generated using ./pants run src/python/twitter/phabricator:owners_to_project -- --dirs=a/owned/path,b/owned/path
owners:
- banderson
- ccoco
- ibennett
- mnakamura
- ryano
- yufang
watchers:
- csl-team:ldap
- scosenza
<|file_sep|>current/PROJECT.y... | d5e5a136f4f80fc8bb94ceb6065fe28587ff1529 | PROJECT.yml | PROJECT.yml | YAML |
<|file_sep|>fish/oh-my-fish/pkg/jrduncans/init.fish.diff
original:
updated:
status --is-interactive; and source (rbenv init -|psub)
<|file_sep|>original/fish/oh-my-fish/pkg/jrduncans/init.fish
function mkdir --wraps mkdir
command mkdir -p $argv;
end
function jl --description 'colorized pretty-printed JSON in less'... | function jl --description 'colorized pretty-printed JSON in less'
jq -C . | less -R $argv;
end
if status --is-login
set PATH $PATH ~/bin ~/.local/bin
end
status --is-interactive; and source (rbenv init -|psub)
function ll --wraps exa
exa -lh --git $argv
end
function amm --description 'Scala REPL'
sh -c 'amm... | <|file_sep|>fish/oh-my-fish/pkg/jrduncans/init.fish.diff
original:
updated:
status --is-interactive; and source (rbenv init -|psub)
<|file_sep|>original/fish/oh-my-fish/pkg/jrduncans/init.fish
function mkdir --wraps mkdir
command mkdir -p $argv;
end
function jl --description 'colorized pretty-printed JSON in less'... | 420b5dc5f1da47a88aff71a6067a0a533b3d1c80 | fish/oh-my-fish/pkg/jrduncans/init.fish | fish/oh-my-fish/pkg/jrduncans/init.fish | fish |
<|file_sep|>original/appveyor.yml
clone_depth: 10
# Fix line endings in Windows. (runs before repo cloning)
init:
- git config --global core.autocrlf input
# Test against these versions of Node.js.
environment:
matrix:
- nodejs_version: "2"
# Install scripts. (runs after repo cloning)
install:
# Get the N... |
clone_depth: 10
# Fix line endings in Windows. (runs before repo cloning)
init:
- git config --global core.autocrlf input
# Test against these versions of Node.js.
environment:
matrix:
- nodejs_version: "3"
# Install scripts. (runs after repo cloning)
install:
# Get the Node version with matching major & ... | <|file_sep|>original/appveyor.yml
clone_depth: 10
# Fix line endings in Windows. (runs before repo cloning)
init:
- git config --global core.autocrlf input
# Test against these versions of Node.js.
environment:
matrix:
- nodejs_version: "2"
# Install scripts. (runs after repo cloning)
install:
# Get the N... | aca5eff8abfc9a36f0b6a79972ceefe7544cba2c | appveyor.yml | appveyor.yml | YAML |
<|file_sep|>original/project/frontend/src/containers/SelectCompetition/SelectCompetition.module.css
margin: 0;
padding: 0;
display: flex;
width: 100%;
height: 100%;
align-items: center;
flex-direction: row;
flex-wrap: nowrap;
overflow: hidden;
overflow-x: scroll;
}
.menu-item {
padding: 0 40px;
... | margin: 0;
padding: 0;
display: flex;
width: 100%;
height: 100%;
align-items: center;
flex-direction: row;
flex-wrap: nowrap;
overflow: hidden;
overflow-x: scroll;
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* Internet Explorer 10+ */
}
.CardsContainer ul::-webkit-scrollbar ... | <|file_sep|>original/project/frontend/src/containers/SelectCompetition/SelectCompetition.module.css
margin: 0;
padding: 0;
display: flex;
width: 100%;
height: 100%;
align-items: center;
flex-direction: row;
flex-wrap: nowrap;
overflow: hidden;
overflow-x: scroll;
}
.menu-item {
padding: 0 40px;
... | ce86e7665a5bb2b05cdd2a415dd20a6c60d40026 | project/frontend/src/containers/SelectCompetition/SelectCompetition.module.css | project/frontend/src/containers/SelectCompetition/SelectCompetition.module.css | CSS |
<|file_sep|>original/PYNWapp/PYNWsite/models.py
name = models.CharField(max_length=200)
location = models.CharField(max_length=300)
event_date = models.DateTimeField('event date')
description = models.TextField()
def __str__(self):
return self.name
def is_future(self):
return se... | description = models.TextField()
def __str__(self):
return self.name
def is_future(self):
return self.event_date > timezone.now()
class Post(models.Model):
title = models.CharField(max_length=100, unique=True)
slug = models.SlugField(max_length=100, unique=True)
body = models.T... | <|file_sep|>original/PYNWapp/PYNWsite/models.py
name = models.CharField(max_length=200)
location = models.CharField(max_length=300)
event_date = models.DateTimeField('event date')
description = models.TextField()
def __str__(self):
return self.name
def is_future(self):
return se... | 73eacdde5067e60f40af000237d198748c5b3cc7 | PYNWapp/PYNWsite/models.py | PYNWapp/PYNWsite/models.py | Python |
<|file_sep|>webpack.config.js.diff
original:
updated:
devtool: 'source-map',
<|file_sep|>webpack.config.js.diff
original:
exclude: /node_modules/,
updated:
//exclude: /node_modules/, <-- include node_modules because of jsfft's ES6 push to npm 😡
<|file_sep|>original/webpack.config.js
devtoo... | minified: {
devtool: 'source-map',
output: {
filename: 'meyda.min.js',
sourceMapFilename: 'meyda.min.map'
},
module: {
rules: [
{
test: /\.js$/,
//exclude: /node_modules/, <-- include node_modules because of jsfft's ES6 push to npm 😡
loader: 'babe... | <|file_sep|>webpack.config.js.diff
original:
updated:
devtool: 'source-map',
<|file_sep|>webpack.config.js.diff
original:
exclude: /node_modules/,
updated:
//exclude: /node_modules/, <-- include node_modules because of jsfft's ES6 push to npm 😡
<|file_sep|>original/webpack.config.js
devtoo... | c6a5dc3f693f58407ee34d7c3a40dd3864a230f7 | webpack.config.js | webpack.config.js | JavaScript |
<|file_sep|>.travis.yml.diff
original:
updated:
rvm:
- 1.9.3
- 2.0.0
- 2.1
sudo: false
<|file_sep|>original/.travis.yml
language: ruby
before_script:
- sh -e /etc/init.d/xvfb start
- export DISPLAY=:99.0
- bundle exec rake test_app
script:
- bundle exec rspec spec
notifications:
email:
- ryan@spree... | language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1
sudo: false
before_script:
- sh -e /etc/init.d/xvfb start
- export DISPLAY=:99.0
- bundle exec rake test_app
script:
- bundle exec rspec spec | <|file_sep|>.travis.yml.diff
original:
updated:
rvm:
- 1.9.3
- 2.0.0
- 2.1
sudo: false
<|file_sep|>original/.travis.yml
language: ruby
before_script:
- sh -e /etc/init.d/xvfb start
- export DISPLAY=:99.0
- bundle exec rake test_app
script:
- bundle exec rspec spec
notifications:
email:
- ryan@spree... | 5c90afaa5bca3200a1ba1fd41b963d0b739f1d47 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/src/test/java/com/sambrannen/spring/events/service/EventsServiceTests.java
<|file_sep|>current/src/test/java/com/sambrannen/spring/events/service/EventsServiceTests.java
<|file_sep|>updated/src/test/java/com/sambrannen/spring/events/service/EventsServiceTests.java | /*
* Copyright 2010-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | <|file_sep|>original/src/test/java/com/sambrannen/spring/events/service/EventsServiceTests.java
<|file_sep|>current/src/test/java/com/sambrannen/spring/events/service/EventsServiceTests.java
<|file_sep|>updated/src/test/java/com/sambrannen/spring/events/service/EventsServiceTests.java
/*
* Copyright 2010-2017 the or... | 8f3b0a3ed1e62e02b3df737d70abc4409cc5541a | src/test/java/com/sambrannen/spring/events/service/EventsServiceTests.java | src/test/java/com/sambrannen/spring/events/service/EventsServiceTests.java | Java |
<|file_sep|>README.md.diff
original:
updated:
<|file_sep|>original/README.md
# MPC-Lib
Java library for reading and writing MPC1000 PGM files.
# Authors
MPC-Lib was created by [Ray Myers](http://cadrlife.com), with special thanks to
[Stephen Norum](http://www.mybunnyhug.com) for his documention of the MPC1000 PGM... | # MPC-Lib
Java library for reading and writing MPC1000 PGM files.
# Authors
MPC-Lib was created by [Ray Myers](http://cadrlife.com), with special thanks to
[Stephen Norum](http://www.mybunnyhug.com) for his documention of the MPC1000 PGM format
and [Cyrille Martraire](http://cyrille.martraire.com), author of
[MpcM... | <|file_sep|>README.md.diff
original:
updated:
<|file_sep|>original/README.md
# MPC-Lib
Java library for reading and writing MPC1000 PGM files.
# Authors
MPC-Lib was created by [Ray Myers](http://cadrlife.com), with special thanks to
[Stephen Norum](http://www.mybunnyhug.com) for his documention of the MPC1000 PGM... | e00662321ceb8ee45fd15fdfa4583fc0fc1485ce | README.md | README.md | Markdown |
<|file_sep|>original/app/test.sh
#!/bin/bash
set -ev
# generate project
cd "$HOME"/app
npm link generator-jhipster
yo jhipster --force --no-insight
# generate entities
for f in `ls .jhipster` do yo jhipster:entity ${f%.*} --force ; done
for f in `ls *.jh *.jdl` do yo jhipster:import-jdl ${f%.*} --force ; done
ls -al... | #!/bin/bash
set -ev
# generate project
cd "$HOME"/app
npm link generator-jhipster
yo jhipster --force --no-insight
# generate entities
for f in `ls .jhipster` ; do yo jhipster:entity ${f%.*} --force ; done
for f in `ls *.jh *.jdl` ; do yo jhipster:import-jdl ${f%} --force ; done
ls -al "$HOME"/app/
# launch tests
.... | <|file_sep|>original/app/test.sh
#!/bin/bash
set -ev
# generate project
cd "$HOME"/app
npm link generator-jhipster
yo jhipster --force --no-insight
# generate entities
for f in `ls .jhipster` do yo jhipster:entity ${f%.*} --force ; done
for f in `ls *.jh *.jdl` do yo jhipster:import-jdl ${f%.*} --force ; done
ls -al... | 1dab35f75a2a53ed548f09455ad5e8fe9dcc5a8f | app/test.sh | app/test.sh | Shell |
<|file_sep|>tests/shouldwork/CSignal/MAC.hs.diff
original:
type Clk100 = Clk "clk" 100
updated:
type Clk100 = Clk "clk" 101
<|file_sep|>tests/shouldwork/CSignal/MAC.hs.diff
original:
-> (CSignal Clk100 Bool, CSignal Clk100 Integer)
topEntity = sync clk100 macT 0
updated:
-> CSignal Clk100 Integer
to... | module MAC where
import CLaSH.Prelude
import CLaSH.Prelude.Explicit
type Clk100 = Clk "clk" 101
clk100 :: SClock Clk100
clk100 = sclock
topEntity :: (CSignal Clk100 Integer, CSignal Clk100 Integer)
-> CSignal Clk100 Integer
topEntity = cmealyB clk100 macT 0
macT s (x,y) = (s', o)
where
s' = s + (x ... | <|file_sep|>tests/shouldwork/CSignal/MAC.hs.diff
original:
type Clk100 = Clk "clk" 100
updated:
type Clk100 = Clk "clk" 101
<|file_sep|>tests/shouldwork/CSignal/MAC.hs.diff
original:
-> (CSignal Clk100 Bool, CSignal Clk100 Integer)
topEntity = sync clk100 macT 0
updated:
-> CSignal Clk100 Integer
to... | dda5b75825021b3e9535e828638feff0c020d72c | tests/shouldwork/CSignal/MAC.hs | tests/shouldwork/CSignal/MAC.hs | Haskell |
<|file_sep|>original/utils/search-export/src/utils.rs
pub fn set_or_check<T>(maybe: &mut Option<T>, value: T)
where
T: std::fmt::Debug + PartialEq
{
let previous = maybe.replace(value);
assert!(&previous == maybe, "Expected {:?} and {:?} to be equal", &maybe, &previous);
}
<|file_sep|>current/utils/search-... | pub fn set_or_check<T>(maybe: &mut Option<T>, value: T)
where
T: std::fmt::Debug + PartialEq
{
let previous = maybe.replace(value);
if previous.is_some() {
assert!(&previous == maybe, "Expected {:?} and {:?} to be equal", &maybe, &previous);
}
} | <|file_sep|>original/utils/search-export/src/utils.rs
pub fn set_or_check<T>(maybe: &mut Option<T>, value: T)
where
T: std::fmt::Debug + PartialEq
{
let previous = maybe.replace(value);
assert!(&previous == maybe, "Expected {:?} and {:?} to be equal", &maybe, &previous);
}
<|file_sep|>current/utils/search-... | 558c6f84d72824f5174e98842e76edd89c142c36 | utils/search-export/src/utils.rs | utils/search-export/src/utils.rs | Rust |
<|file_sep|>original/gems_basics.md
#### Create gem
[Make RubyGem](http://guides.rubygems.org/make-your-own-gem/)
* Build gem
*`gem build hola.gemspec`
* Install gem locally
*`gem install ./hola-0.0.0.gem`
* Push gem to RubyGems.org
*`gem push hola-0.0.0.gem`
#### Strings
* Convert breaking space to empty strin... | #### Create gem
[Make RubyGem](http://guides.rubygems.org/make-your-own-gem/)
* Build gem
*`gem build hola.gemspec`
* Install gem locally
*`gem install ./hola-0.0.0.gem`
* Push gem to RubyGems.org
*`gem push hola-0.0.0.gem`
#### Strings
* Convert breaking space to empty string `string.gsub(/\u00a0/, ' ')` | <|file_sep|>original/gems_basics.md
#### Create gem
[Make RubyGem](http://guides.rubygems.org/make-your-own-gem/)
* Build gem
*`gem build hola.gemspec`
* Install gem locally
*`gem install ./hola-0.0.0.gem`
* Push gem to RubyGems.org
*`gem push hola-0.0.0.gem`
#### Strings
* Convert breaking space to empty strin... | ae21e4a94e966608335412cd4341902a123e4a11 | gems_basics.md | gems_basics.md | Markdown |
<|file_sep|>worker_host/git/metadata.rb.diff
original:
recipe "git::server", "Sets up a runit_service for git daemon"
updated:
<|file_sep|>original/worker_host/git/metadata.rb
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Instal... | maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs git and/or sets up a Git server daemon"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.9.0"
recipe "git", "Installs git"
%w... | <|file_sep|>worker_host/git/metadata.rb.diff
original:
recipe "git::server", "Sets up a runit_service for git daemon"
updated:
<|file_sep|>original/worker_host/git/metadata.rb
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Instal... | aed16f0ce74302bba8f5dfc48f5682d974d69740 | worker_host/git/metadata.rb | worker_host/git/metadata.rb | Ruby |
<|file_sep|>original/src/main/java/com/cadyyan/levels/skills/ISkill.java
package com.cadyyan.levels.skills;
public interface ISkill
{
public String getUnlocalizedName();
}
<|file_sep|>current/src/main/java/com/cadyyan/levels/skills/ISkill.java
package com.cadyyan.levels.skills;
public interface ISkill
{
public Stri... | package com.cadyyan.levels.skills;
public interface ISkill
{
String getUnlocalizedName();
} | <|file_sep|>original/src/main/java/com/cadyyan/levels/skills/ISkill.java
package com.cadyyan.levels.skills;
public interface ISkill
{
public String getUnlocalizedName();
}
<|file_sep|>current/src/main/java/com/cadyyan/levels/skills/ISkill.java
package com.cadyyan.levels.skills;
public interface ISkill
{
public Stri... | 61cdd31a86cf3061d10e1e653bca2f3b9f37bc66 | src/main/java/com/cadyyan/levels/skills/ISkill.java | src/main/java/com/cadyyan/levels/skills/ISkill.java | Java |
<|file_sep|>tests/test_data.py.diff
original:
u'"{}" cannot be longer than {} characters'.format(
updated:
'"{}" cannot be longer than {} characters'.format(
<|file_sep|>original/tests/test_data.py
"""
def test_character_count(self):
"""
T... | for conversations in corpora:
for conversation in conversations:
for statement in conversation:
if len(statement) > DIALOG_MAXIMUM_CHARACTER_LENGTH:
self.fail(
'"{}" cannot be longer than {} characters'.format(
... | <|file_sep|>tests/test_data.py.diff
original:
u'"{}" cannot be longer than {} characters'.format(
updated:
'"{}" cannot be longer than {} characters'.format(
<|file_sep|>original/tests/test_data.py
"""
def test_character_count(self):
"""
T... | cf626539192ff60a0c2ffd06c61fb35f2d8861a1 | tests/test_data.py | tests/test_data.py | Python |
<|file_sep|>original/roles/quarkslab.virusblokada/defaults/main.yml
---
virusblokada_tgz_url: "ftp://anti-virus.by/pub/vbacl-linux-3.12.10.6-20090601.tar.gz"
virusblokada_temp_dir: "/tmp/vba32"
<|file_sep|>current/roles/quarkslab.virusblokada/defaults/main.yml
---
virusblokada_tgz_url: "ftp://anti-virus.by/pub/vbacl-... | ---
virusblokada_tgz_url: "http://anti-virus.by/pub/vbacl-linux-3.12.10.6-20090601.tar.gz"
virusblokada_temp_dir: "/tmp/vba32" | <|file_sep|>original/roles/quarkslab.virusblokada/defaults/main.yml
---
virusblokada_tgz_url: "ftp://anti-virus.by/pub/vbacl-linux-3.12.10.6-20090601.tar.gz"
virusblokada_temp_dir: "/tmp/vba32"
<|file_sep|>current/roles/quarkslab.virusblokada/defaults/main.yml
---
virusblokada_tgz_url: "ftp://anti-virus.by/pub/vbacl-... | d759232c70402eeef8e04984bc6b33ce4e1c7991 | roles/quarkslab.virusblokada/defaults/main.yml | roles/quarkslab.virusblokada/defaults/main.yml | YAML |
<|file_sep|>original/src/Oro/Bundle/UIBundle/Resources/config/oro/app.yml
default:
filesystem:
bundle_resources:
enabled: true
filter_sets:
avatar_med:
quality: 95
filters:
thumbnail: { size: [58, 58]... | filesystem:
bundle_resources:
enabled: true
filter_sets:
avatar_med:
quality: 95
filters:
thumbnail: { size: [58, 58], mode: outbound }
strip: ~
avatar_xsmall:
quali... | <|file_sep|>original/src/Oro/Bundle/UIBundle/Resources/config/oro/app.yml
default:
filesystem:
bundle_resources:
enabled: true
filter_sets:
avatar_med:
quality: 95
filters:
thumbnail: { size: [58, 58]... | 3d2f5db2cc05db0e03b262e3106e4f0445d6e240 | src/Oro/Bundle/UIBundle/Resources/config/oro/app.yml | src/Oro/Bundle/UIBundle/Resources/config/oro/app.yml | YAML |
<|file_sep|>.github/workflows/ci.yml.diff
original:
hello_world_job:
updated:
run_tests:
<|file_sep|>original/.github/workflows/ci.yml
on: [push]
jobs:
hello_world_job:
runs-on: ubuntu-latest
name: A job to say hello
steps:
- name: Checkout
uses: actions/checkout@v2
- name: CI
... | on: [push]
jobs:
run_tests:
runs-on: ubuntu-latest
name: Run tests
steps:
- name: Checkout
uses: actions/checkout@v2
- name: CI
run: make ci | <|file_sep|>.github/workflows/ci.yml.diff
original:
hello_world_job:
updated:
run_tests:
<|file_sep|>original/.github/workflows/ci.yml
on: [push]
jobs:
hello_world_job:
runs-on: ubuntu-latest
name: A job to say hello
steps:
- name: Checkout
uses: actions/checkout@v2
- name: CI
... | aec86ae41cd0efb4f05d2c3b188b18bac2f8cb20 | .github/workflows/ci.yml | .github/workflows/ci.yml | YAML |
<|file_sep|>.circleci/config.yml.diff
original:
updated:
environment:
CC_TEST_REPORTER_ID: $CC_TEST_REPORTER_ID
<|file_sep|>.circleci/config.yml.diff
original:
updated:
- run:
name: Setup Code Climate test-reporter
command: |
curl -L https://codeclimate.com/downloads/te... | - run: yarn install
- run:
name: Setup Code Climate test-reporter
command: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
- save_cache:
paths:
... | <|file_sep|>.circleci/config.yml.diff
original:
updated:
environment:
CC_TEST_REPORTER_ID: $CC_TEST_REPORTER_ID
<|file_sep|>.circleci/config.yml.diff
original:
updated:
- run:
name: Setup Code Climate test-reporter
command: |
curl -L https://codeclimate.com/downloads/te... | 893f17bf1f9224fd1fa1729646bf900d52c20f27 | .circleci/config.yml | .circleci/config.yml | YAML |
<|file_sep|>original/CHANGELOG.md
# Changelog
## `0.0.3`
- Update [ROADMAP](/ROADMAP.md) and [TODO](/TODO.md)
- Change name of packet struct to lowercase
## `0.0.2`
- Created [ROADMAP](/ROADMAP.md) and [CHANGELOG](/CHANGELOG.md) documents
- Added license headers to Makefiles
- Now using macros for platform depend... | # Changelog
## `0.0.4`
- Improve Makefile
- No longer removes obj files from the wrong directory
- Now relies on a variable to name the binary
- Update [ROADMAP](/ROADMAP.md)
- Rewrite command line interface
- Now uses `getopt`
- Can now set the status of entire groups
- Add debug serial endpoint
- A... | <|file_sep|>original/CHANGELOG.md
# Changelog
## `0.0.3`
- Update [ROADMAP](/ROADMAP.md) and [TODO](/TODO.md)
- Change name of packet struct to lowercase
## `0.0.2`
- Created [ROADMAP](/ROADMAP.md) and [CHANGELOG](/CHANGELOG.md) documents
- Added license headers to Makefiles
- Now using macros for platform depend... | f541f60a095483abeaa111bb1d6e3e032517dcc5 | CHANGELOG.md | CHANGELOG.md | Markdown |
<|file_sep|>.travis.yml.diff
original:
updated:
<|file_sep|>.travis.yml.diff
original:
updated:
<|file_sep|>.travis.yml.diff
original:
updated:
<|file_sep|>.travis.yml.diff
original:
updated:
<|file_sep|>original/.travis.yml
sudo: false
rvm:
- 2.1.5
script:
- bundle exec rake db:migrate RAILS_ENV=test
- bundl... | sudo: false
rvm:
- 2.1.5
script:
- bundle exec rake db:migrate RAILS_ENV=test
- bundle exec rake settings:update_defaults RAILS_ENV=test
- bundle exec rspec
before_script:
- cp config/channel.constants.sample.yml config/channel.constants.yml
- cp config/advanced.constants.sample.yml config/advanced.constants.yml
notifi... | <|file_sep|>.travis.yml.diff
original:
updated:
<|file_sep|>.travis.yml.diff
original:
updated:
<|file_sep|>.travis.yml.diff
original:
updated:
<|file_sep|>.travis.yml.diff
original:
updated:
<|file_sep|>original/.travis.yml
sudo: false
rvm:
- 2.1.5
script:
- bundle exec rake db:migrate RAILS_ENV=test
- bundl... | 1df2d044b289990ebe5aae631bbf9cb7fb250f76 | .travis.yml | .travis.yml | YAML |
<|file_sep|>src/Meot/FormBundle/Controller/DefaultController.php.diff
original:
updated:
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Cache;
<|file_sep|>original/src/Meot/FormBundle/Controller/DefaultController.php
class DefaultController extends Controller
{
/**
* @Route("/")
* @Template(engine... | /**
* @Route("/")
* @Template(engine="twig")
*/
public function indexAction()
{
return array();
}
/**
* @Route("/builder")
* @Template(engine="twig")
*/
public function builderAction()
{
// force browser not to cache the builder page so that whe... | <|file_sep|>src/Meot/FormBundle/Controller/DefaultController.php.diff
original:
updated:
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Cache;
<|file_sep|>original/src/Meot/FormBundle/Controller/DefaultController.php
class DefaultController extends Controller
{
/**
* @Route("/")
* @Template(engine... | 9a75339c0ab125f11c716c424abda8815af5e94a | src/Meot/FormBundle/Controller/DefaultController.php | src/Meot/FormBundle/Controller/DefaultController.php | PHP |
<|file_sep|>original/test/MsgPack.UnitTest/LegacyJapaneseCultureInfo.cs
#endregion -- License Terms --
using System;
using System.Globalization;
namespace MsgPack
{
/// <summary>
/// Custom <see cref="CultureInfo" /> which uses full width hiphen for negative sign.!--
/// </summary>
internal sealed class Legac... | using System.Globalization;
namespace MsgPack
{
/// <summary>
/// Custom <see cref="CultureInfo" /> which uses full width hiphen for negative sign.!--
/// </summary>
internal sealed class LegacyJapaneseCultureInfo : CultureInfo
{
public LegacyJapaneseCultureInfo()
#if NETSTANDARD1_1 || NETSTANDARD1_3 || SIL... | <|file_sep|>original/test/MsgPack.UnitTest/LegacyJapaneseCultureInfo.cs
#endregion -- License Terms --
using System;
using System.Globalization;
namespace MsgPack
{
/// <summary>
/// Custom <see cref="CultureInfo" /> which uses full width hiphen for negative sign.!--
/// </summary>
internal sealed class Legac... | bb409c08b4626d39abc601565c76a6a07acf4662 | test/MsgPack.UnitTest/LegacyJapaneseCultureInfo.cs | test/MsgPack.UnitTest/LegacyJapaneseCultureInfo.cs | C# |
<|file_sep|>src/adhocracy_core/adhocracy_core/scripts/import_resources.py.diff
original:
from adhocracy_core import scripts
updated:
from . import import_resources as main_import_resources
<|file_sep|>original/src/adhocracy_core/adhocracy_core/scripts/import_resources.py
"""
epilog = """The input JSON file cont... | """
epilog = """The input JSON file contains the interface name of the resource
type to create and a serialization of the sheets data.
Strings having the form 'user_by_login: <username>' are resolved
to the user's path.
"""
docstring = inspect.getdoc(import_resources)
parser = argparse... | <|file_sep|>src/adhocracy_core/adhocracy_core/scripts/import_resources.py.diff
original:
from adhocracy_core import scripts
updated:
from . import import_resources as main_import_resources
<|file_sep|>original/src/adhocracy_core/adhocracy_core/scripts/import_resources.py
"""
epilog = """The input JSON file cont... | 8868cc4e8379002c62db7f69ca77ec8449930321 | src/adhocracy_core/adhocracy_core/scripts/import_resources.py | src/adhocracy_core/adhocracy_core/scripts/import_resources.py | Python |
<|file_sep|>original/metadata/dmusiolik.pijaret.txt
partner in real life and en/de-crypt some important messages with it. (In case
you don’t go outside you can just tormail your chat partner or stuff)
.
Repo Type:git
Repo:https://github.com/MrFlyingToasterman/Pijaret
Build:1.4,1
commit=1.4
subdir=app
grad... | partner in real life and en/de-crypt some important messages with it. (In case
you don’t go outside you can just tormail your chat partner or stuff)
.
Repo Type:git
Repo:https://github.com/MrFlyingToasterman/Pijaret
Build:1.4,1
commit=1.4
subdir=app
gradle=yes
Build:1.4,4
commit=89863e1499aca3a1fc440... | <|file_sep|>original/metadata/dmusiolik.pijaret.txt
partner in real life and en/de-crypt some important messages with it. (In case
you don’t go outside you can just tormail your chat partner or stuff)
.
Repo Type:git
Repo:https://github.com/MrFlyingToasterman/Pijaret
Build:1.4,1
commit=1.4
subdir=app
grad... | 794a8cc39aae231517f2778754c1313b37acf3a8 | metadata/dmusiolik.pijaret.txt | metadata/dmusiolik.pijaret.txt | Text |
<|file_sep|>original/Resources/views/Page/layout.html.twig
{% extends getConfiguration('store.template') ~ '::Layout/_static.html.twig' %}
{% block title %}{{ page.title }}{% endblock title %}
{% block meta_tags %}
<meta name="description" content="{{ page.metadescription }}">
<meta name="keywords" content=... | {% extends elcodi_config('store.template') ~ '::Layout/_static.html.twig' %}
{% block title %}{{ page.title }}{% endblock title %}
{% block meta_tags %}
<meta name="description" content="{{ page.metadescription }}">
<meta name="keywords" content="{{ page.metakeywords }}">
{% endblock meta_tags %}
{% block... | <|file_sep|>original/Resources/views/Page/layout.html.twig
{% extends getConfiguration('store.template') ~ '::Layout/_static.html.twig' %}
{% block title %}{{ page.title }}{% endblock title %}
{% block meta_tags %}
<meta name="description" content="{{ page.metadescription }}">
<meta name="keywords" content=... | bbeed7ec005d0ac87571a7db9068cbae052735bf | Resources/views/Page/layout.html.twig | Resources/views/Page/layout.html.twig | Twig |
<|file_sep|>original/src/main/java/com/lyubenblagoev/postfixrest/configuration/CorsConfiguration.java
package com.lyubenblagoev.postfixrest.configuration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annot... |
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
public class CorsConfiguration {
@Bean
... | <|file_sep|>original/src/main/java/com/lyubenblagoev/postfixrest/configuration/CorsConfiguration.java
package com.lyubenblagoev.postfixrest.configuration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annot... | 3047ec8ca34de9cafbf774bad49ef2d5cf7d8dd1 | src/main/java/com/lyubenblagoev/postfixrest/configuration/CorsConfiguration.java | src/main/java/com/lyubenblagoev/postfixrest/configuration/CorsConfiguration.java | Java |
<|file_sep|>original/index/pgo.mk
<|file_sep|>current/index/pgo.mk
<|file_sep|>updated/index/pgo.mk | PACKAGES += pgo
pkg_pgo_name = pgo
pkg_pgo_description = Erlang Postgres client and connection pool
pkg_pgo_homepage = https://github.com/erleans/pgo.git
pkg_pgo_fetch = git
pkg_pgo_repo = https://github.com/erleans/pgo.git
pkg_pgo_commit = master | <|file_sep|>original/index/pgo.mk
<|file_sep|>current/index/pgo.mk
<|file_sep|>updated/index/pgo.mk
PACKAGES += pgo
pkg_pgo_name = pgo
pkg_pgo_description = Erlang Postgres client and connection pool
pkg_pgo_homepage = https://github.com/erleans/pgo.git
pkg_pgo_fetch = git
pkg_pgo_repo = https://github.com/erleans/pg... | b264034d2f1c02e037e8489fdc553ec57ab942de | index/pgo.mk | index/pgo.mk | Makefile |
<|file_sep|>original/alma-mater-annotation/pom.xml
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.github.aureliano</groupId>
<artifactId>alma-mater</artifactId>
<version>0.1.0</version>
</parent>
<ar... | <artifactId>alma-mater</artifactId>
<version>0.1.0</version>
</parent>
<artifactId>alma-mater-annotation</artifactId>
<packaging>jar</packaging>
<name>alma-mater-annotation</name>
<dependencies>
<dependency>
<groupId>com.github.aureliano</groupId>
<artifactId>alma-mater-core</artifactId>
<version... | <|file_sep|>original/alma-mater-annotation/pom.xml
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.github.aureliano</groupId>
<artifactId>alma-mater</artifactId>
<version>0.1.0</version>
</parent>
<ar... | 5dcfabab0e59a6ce381e69801335910ab03b2e93 | alma-mater-annotation/pom.xml | alma-mater-annotation/pom.xml | XML |
<|file_sep|>original/lib/hdo/stats/vote_exporter.rb
<|file_sep|>current/lib/hdo/stats/vote_exporter.rb
<|file_sep|>updated/lib/hdo/stats/vote_exporter.rb | require 'csv'
module Hdo
module Stats
class VoteExporter
def initialize(votes = Vote.all)
@votes = votes
end
def csv
parties = Party.order(:external_id).to_a
CSV.generate(col_sep: "\t") do |csv|
csv << %w[id time session] + parties.map(&:external_id)
... | <|file_sep|>original/lib/hdo/stats/vote_exporter.rb
<|file_sep|>current/lib/hdo/stats/vote_exporter.rb
<|file_sep|>updated/lib/hdo/stats/vote_exporter.rb
require 'csv'
module Hdo
module Stats
class VoteExporter
def initialize(votes = Vote.all)
@votes = votes
end
def csv
parti... | 4ebcd5827205046b4ec2875f68ee7fe78ff3a154 | lib/hdo/stats/vote_exporter.rb | lib/hdo/stats/vote_exporter.rb | Ruby |
<|file_sep|>original/scripts/generic-script.py
#!/usr/bin/python
import os
import sys
maybeRoot = os.path.dirname(os.path.dirname(__file__))
if os.path.exists(os.path.join(maybeRoot, 'mint', 'lib')):
sys.path.insert(maybeRoot)
from mint.scripts import some_module
sys.exit(some_module.Script().run())
<|file_sep|>c... | #!/usr/bin/python
import os
import sys
maybeRoot = os.path.dirname(os.path.dirname(__file__))
if os.path.exists(os.path.join(maybeRoot, 'mint', 'lib')):
sys.path.insert(0, maybeRoot)
from mint.scripts import some_module
sys.exit(some_module.Script().run()) | <|file_sep|>original/scripts/generic-script.py
#!/usr/bin/python
import os
import sys
maybeRoot = os.path.dirname(os.path.dirname(__file__))
if os.path.exists(os.path.join(maybeRoot, 'mint', 'lib')):
sys.path.insert(maybeRoot)
from mint.scripts import some_module
sys.exit(some_module.Script().run())
<|file_sep|>c... | bc8ecce3699b22ca0fd80c67172a39d6afded567 | scripts/generic-script.py | scripts/generic-script.py | Python |
<|file_sep|>original/Cargo.toml
license = "MIT"
description = "LMDB bindings"
repository = "https://github.com/vhbit/lmdb-rs"
documentation = "https://vhbit.github.io/lmdb-rs/lmdb_rs"
readme = "README.md"
keywords = ["lmdb", "db", "key-value", "kvs", "kv"]
exclude = [
".gitignore",
".travis.yml",
... | license = "MIT"
description = "LMDB bindings"
repository = "https://github.com/vhbit/lmdb-rs"
documentation = "https://vhbit.github.io/lmdb-rs/lmdb_rs"
readme = "README.md"
keywords = ["lmdb", "db", "key-value", "kvs", "kv"]
exclude = [
".gitignore",
".travis.yml",
"up_doc.sh",
]
[dependencies.... | <|file_sep|>original/Cargo.toml
license = "MIT"
description = "LMDB bindings"
repository = "https://github.com/vhbit/lmdb-rs"
documentation = "https://vhbit.github.io/lmdb-rs/lmdb_rs"
readme = "README.md"
keywords = ["lmdb", "db", "key-value", "kvs", "kv"]
exclude = [
".gitignore",
".travis.yml",
... | 643c80b2aa68f902aa3167f1074ade0f6d8245ed | Cargo.toml | Cargo.toml | TOML |
<|file_sep|>original/source/_posts/Get-and-read-logs-from-AWS-CloudWatch-with-saw.md
<|file_sep|>current/source/_posts/Get-and-read-logs-from-AWS-CloudWatch-with-saw.md
<|file_sep|>updated/source/_posts/Get-and-read-logs-from-AWS-CloudWatch-with-saw.md | ---
title: Get and read logs from AWS CloudWatch with saw
date: 2021-06-04 13:49:02
tags:
---
For all the people painfully read logs on AWS CloudWatch console, [saw](https://github.com/TylerBrock/saw) is your friend.
Get CloudWatch log groups start with `paradise-api`:
```console
𝜆 saw groups --profile ap-prod --pr... | <|file_sep|>original/source/_posts/Get-and-read-logs-from-AWS-CloudWatch-with-saw.md
<|file_sep|>current/source/_posts/Get-and-read-logs-from-AWS-CloudWatch-with-saw.md
<|file_sep|>updated/source/_posts/Get-and-read-logs-from-AWS-CloudWatch-with-saw.md
---
title: Get and read logs from AWS CloudWatch with saw
date: 2... | e23e19b9bb0a9ca7539a3810c28a6068d253c495 | source/_posts/Get-and-read-logs-from-AWS-CloudWatch-with-saw.md | source/_posts/Get-and-read-logs-from-AWS-CloudWatch-with-saw.md | Markdown |
<|file_sep|>original/lib/tasks/blogo_tasks.rake
fingerprint = /\-[0-9a-f]{32}\./
for file in Dir["public/assets/blogo/ckeditor/**/*"]
next unless file =~ fingerprint
nondigest = file.sub fingerprint, '.'
if !File.exist?(nondigest) or File.mtime(file) > File.mtime(nondigest)
FileUtils.cp file, nond... | fingerprint = /\-[0-9a-f]{32}\./
for file in Dir["public/assets/blogo/ckeditor/**/*"]
next unless file =~ fingerprint
nondigest = file.sub fingerprint, '.'
if !File.exist?(nondigest) or File.mtime(file) > File.mtime(nondigest)
FileUtils.cp file, nondigest, verbose: true
end
end
end
namespa... | <|file_sep|>original/lib/tasks/blogo_tasks.rake
fingerprint = /\-[0-9a-f]{32}\./
for file in Dir["public/assets/blogo/ckeditor/**/*"]
next unless file =~ fingerprint
nondigest = file.sub fingerprint, '.'
if !File.exist?(nondigest) or File.mtime(file) > File.mtime(nondigest)
FileUtils.cp file, nond... | b22c20b5fca05acc4443deb5424cd2aefb76fdd7 | lib/tasks/blogo_tasks.rake | lib/tasks/blogo_tasks.rake | Ruby |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.