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/tools/bootstrap-pyenv-virtualenv.sh
<|file_sep|>current/tools/bootstrap-pyenv-virtualenv.sh
<|file_sep|>updated/tools/bootstrap-pyenv-virtualenv.sh | #!/bin/sh
set -o errexit
# With `pyenv` and its `pyenv-virtualenv` plugin installed, this script
# bootstraps a Python 3.7 development environment.
die() {
echo $*
exit 1
}
for p in pyenv; do
command -v $p >/dev/null 2>&1 || { die "\`$p\` not found in PATH"; }
done
CONFIGURE_OPTS=--enable-shared pyenv instal... | <|file_sep|>original/tools/bootstrap-pyenv-virtualenv.sh
<|file_sep|>current/tools/bootstrap-pyenv-virtualenv.sh
<|file_sep|>updated/tools/bootstrap-pyenv-virtualenv.sh
#!/bin/sh
set -o errexit
# With `pyenv` and its `pyenv-virtualenv` plugin installed, this script
# bootstraps a Python 3.7 development environment.... | 9c0977817809563551c8a40cf02d60c02eae46b0 | tools/bootstrap-pyenv-virtualenv.sh | tools/bootstrap-pyenv-virtualenv.sh | Shell |
<|file_sep|>test/registry.once.spec.js.diff
original:
updated:
<|file_sep|>test/registry.once.spec.js.diff
original:
updated:
<|file_sep|>test/registry.once.spec.js.diff
original:
});
updated:
registry.once('exit', () => {});
t.true(registry.singles.exit.length === 1);
<|file_sep|>original/test/registry.onc... | import test from 'ava';
import Registry from '../src/registry';
test('Registry.once registers one handler to singles', t => {
let registry = Registry([]);
registry.once('enter', () => {});
t.true(registry.singles.enter.length === 1);
registry.once('exit', () => {});
t.true(registry.singles.exit.... | <|file_sep|>test/registry.once.spec.js.diff
original:
updated:
<|file_sep|>test/registry.once.spec.js.diff
original:
updated:
<|file_sep|>test/registry.once.spec.js.diff
original:
});
updated:
registry.once('exit', () => {});
t.true(registry.singles.exit.length === 1);
<|file_sep|>original/test/registry.onc... | 4ca049179ea2cb32447e438e8a058f79969dcc05 | test/registry.once.spec.js | test/registry.once.spec.js | JavaScript |
<|file_sep|>original/lib/metar/raw.rb
def cache_connection
@connection = connection
end
def connection
return @connection if @connection
connection = Net::FTP.new('tgftp.nws.noaa.gov')
connection.login
connection.chdir('data/observations/metar/stations')
... |
def cache_connection
@connection = connection
end
def connection
return @connection if @connection
connection = Net::FTP.new('tgftp.nws.noaa.gov')
connection.login
connection.chdir('data/observations/metar/stations')
connection.passive = true
c... | <|file_sep|>original/lib/metar/raw.rb
def cache_connection
@connection = connection
end
def connection
return @connection if @connection
connection = Net::FTP.new('tgftp.nws.noaa.gov')
connection.login
connection.chdir('data/observations/metar/stations')
... | a149f71132bfa9691ec5ed0ed88f8ee3ffc13ab2 | lib/metar/raw.rb | lib/metar/raw.rb | Ruby |
<|file_sep|>README.rst.diff
original:
`Sphinx http://sphinx-doc.org/` and is available online on the
`Read the Docs https://readthedocs.org/` plateforme: |docs|.
updated:
`Sphinx <http://sphinx-doc.org>` and is available online on the
`Read the Docs <https://readthedocs.org>` plateform: |docs|.
<|file_sep|>README.rst.d... | * `IRC <irc://irc.freenode.net/qb_irma>`_ (irc.freenode.net, #qb_irma)
* `Twitter <https://twitter.com/qb_irma>`_ (@qb_irma)
Build the documentation
=======================
You'll need to install `Sphinx <http://sphinx-doc.org>`, and the run:
.. code-block:: bash
$ make # to see all build options available
... | <|file_sep|>README.rst.diff
original:
`Sphinx http://sphinx-doc.org/` and is available online on the
`Read the Docs https://readthedocs.org/` plateforme: |docs|.
updated:
`Sphinx <http://sphinx-doc.org>` and is available online on the
`Read the Docs <https://readthedocs.org>` plateform: |docs|.
<|file_sep|>README.rst.d... | 2bb6d8b22575960e4627e69d6328f210620bbaf6 | README.rst | README.rst | reStructuredText |
<|file_sep|>original/app/src/main/java/com/github/pedrovgs/tuentitv/ui/util/Util.java
package com.github.pedrovgs.tuentitv.ui.util;
import android.content.Context;
/**
* @author Pedro Vicente Gómez Sánchez.
*/
public class Util {
public static int convertDpToPixel(Context context, int dp) {
float density = c... | /*
* Copyright (C) 2014 Pedro Vicente Gómez Sánchez.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | <|file_sep|>original/app/src/main/java/com/github/pedrovgs/tuentitv/ui/util/Util.java
package com.github.pedrovgs.tuentitv.ui.util;
import android.content.Context;
/**
* @author Pedro Vicente Gómez Sánchez.
*/
public class Util {
public static int convertDpToPixel(Context context, int dp) {
float density = c... | 429d0f9dd6979a4cbef9fc07274fff091094fc84 | app/src/main/java/com/github/pedrovgs/tuentitv/ui/util/Util.java | app/src/main/java/com/github/pedrovgs/tuentitv/ui/util/Util.java | Java |
<|file_sep|>original/CHANGELOG.md
# Change Log
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [1.1.2]
### Fixed
- Replacement of boolean and null val... | # Change Log
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [1.2.0]
### Changed
- Allow `ORDER BY` to contain expressions (@MelleB)
## [1.1.2]
### ... | <|file_sep|>original/CHANGELOG.md
# Change Log
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [1.1.2]
### Fixed
- Replacement of boolean and null val... | eeba1423c26de71a794f2101681d34cfc29d484c | CHANGELOG.md | CHANGELOG.md | Markdown |
<|file_sep|>original/arim/models.py
from django.db import models
class Autoreg(models.Model):
class Meta:
db_table = 'autoreg'
mac = models.CharField(max_length=17, db_index=True)
ip = models.IntegerField(primary_key=True)
date = models.IntegerField()
<|file_sep|>current/arim/models.py
from d... | from django.db import models
class Lease(models.Model):
class Meta:
db_table = 'autoreg'
mac = models.CharField(max_length=17, db_index=True)
ip = models.IntegerField(primary_key=True)
date = models.IntegerField() | <|file_sep|>original/arim/models.py
from django.db import models
class Autoreg(models.Model):
class Meta:
db_table = 'autoreg'
mac = models.CharField(max_length=17, db_index=True)
ip = models.IntegerField(primary_key=True)
date = models.IntegerField()
<|file_sep|>current/arim/models.py
from d... | 3ff7704d9c9998f023fb2d93e279b0f1e4410ad8 | arim/models.py | arim/models.py | Python |
<|file_sep|>android/path.zsh.diff
original:
if [ "$(ls -A /usr/local/Cellar/android-sdk)" ]
updated:
if [ ! "$(ls -A /usr/local/Cellar/android-sdk)" ]
<|file_sep|>original/android/path.zsh
# of your main dotfiles repository (which may be public, like this one), but
# you'll have access to them in your scripts.
sdk... | # Stash your environment variables in ~/.localrc. This means they'll stay out
# of your main dotfiles repository (which may be public, like this one), but
# you'll have access to them in your scripts.
sdk_path_file=$ZSH/android/android.local
if [[ -a $sdk_path_file ]]
then
source $sdk_path_file
fi
if [[ -n "$ANDROI... | <|file_sep|>android/path.zsh.diff
original:
if [ "$(ls -A /usr/local/Cellar/android-sdk)" ]
updated:
if [ ! "$(ls -A /usr/local/Cellar/android-sdk)" ]
<|file_sep|>original/android/path.zsh
# of your main dotfiles repository (which may be public, like this one), but
# you'll have access to them in your scripts.
sdk... | 5c7c8cb7a66949dba7df985368a80751843979ca | android/path.zsh | android/path.zsh | Shell |
<|file_sep|>src/lambdaui/dummy_data.clj.diff
original:
(:require [ring.util.response :refer [response]]))
updated:
(:require [ring.util.response :refer [response header]]))
<|file_sep|>src/lambdaui/dummy_data.clj.diff
original:
updated:
:buildNumber 1 ; TODO differentia... | (ns lambdaui.dummy-data
(:require [ring.util.response :refer [response header]]))
(def summaries {:summaries [{:buildId 1
:buildNumber 1 ; TODO differentiate between build Number (alias) and id?
:state :running
... | <|file_sep|>src/lambdaui/dummy_data.clj.diff
original:
(:require [ring.util.response :refer [response]]))
updated:
(:require [ring.util.response :refer [response header]]))
<|file_sep|>src/lambdaui/dummy_data.clj.diff
original:
updated:
:buildNumber 1 ; TODO differentia... | 2d6afbdde2170bc1757eceb7267c2be0dd30def1 | src/lambdaui/dummy_data.clj | src/lambdaui/dummy_data.clj | Clojure |
<|file_sep|>original/templates/alltests.html
<div id="bs-alltests">
<h1>{{ app_title }} - Run the Tests</h1>
<p class="bs-youcan">
We're excited that you want to participate! Below are the links to begin the tests. Just click, sit back, and at the end we'll show you how your results stack up compared to other... |
<div id="bs-alltests">
<h1>{{ app_title }} - Run the Tests</h1>
<p class="bs-youcan">
We're excited that you want to participate! Below are the links to begin the tests. Just click, sit back, and at the end we'll show you how your results stack up compared to other users. If you have questions, please check o... | <|file_sep|>original/templates/alltests.html
<div id="bs-alltests">
<h1>{{ app_title }} - Run the Tests</h1>
<p class="bs-youcan">
We're excited that you want to participate! Below are the links to begin the tests. Just click, sit back, and at the end we'll show you how your results stack up compared to other... | fcec59f8ff3352d73dd3a2ce5e22ed9b7f2f794b | templates/alltests.html | templates/alltests.html | HTML |
<|file_sep|>original/_includes/archive_banner.html
<div style="width: 100%; padding: 20px; background-color: #f44336; margin-bottom: 10px;">
<h1 style="margin-bottom: 0px; color: white">This content is archived!</h1>
<span style="color: white">For the 2018-2019 school year, we have switched to using the <a href... | <div style="width: 100%; padding: 20px; background-color: #f44336; margin-bottom: 10px;">
<h1 style="margin-bottom: 0px; color: white">This content is archived!</h1>
<span style="color: white">For the 2018-2019 school year, we have switched to using the <a href="http://judge.mcpt.ca" style="color: white; font-w... | <|file_sep|>original/_includes/archive_banner.html
<div style="width: 100%; padding: 20px; background-color: #f44336; margin-bottom: 10px;">
<h1 style="margin-bottom: 0px; color: white">This content is archived!</h1>
<span style="color: white">For the 2018-2019 school year, we have switched to using the <a href... | ed498b87e1777ca5eb858b7f269be9996ff24f13 | _includes/archive_banner.html | _includes/archive_banner.html | HTML |
<|file_sep|>original/ajax/libs/zxcvbn/package.json
"name": "Dan Wheeler",
"email": "dan@dropbox.com",
"web": "https://github.com/lowe"
}
],
"bugs": {
"web": "https://github.com/lowe/zxcvbn/issues"
},
"licenses": [
{
"type": "MIT",
... | "name": "Dan Wheeler",
"email": "dan@dropbox.com",
"web": "https://github.com/lowe"
}
],
"bugs": {
"web": "https://github.com/lowe/zxcvbn/issues"
},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/lowe/zxcvbn/b... | <|file_sep|>original/ajax/libs/zxcvbn/package.json
"name": "Dan Wheeler",
"email": "dan@dropbox.com",
"web": "https://github.com/lowe"
}
],
"bugs": {
"web": "https://github.com/lowe/zxcvbn/issues"
},
"licenses": [
{
"type": "MIT",
... | f7c64ba744f4b8e9167e18a5226f9d81b1ec0459 | ajax/libs/zxcvbn/package.json | ajax/libs/zxcvbn/package.json | JSON |
<|file_sep|>original/.travis.yml
language: go
go:
- "1.12"
go_import_path: github.com/versent/saml2aws
install:
- echo noop
env:
- "PATH=/home/travis/gopath/bin:$PATH"
script:
- make ci
<|file_sep|>current/.travis.yml
language: go
go:
- "1.12"
go_import_path: github.com/versent/saml2aws
insta... | language: go
go:
- "1.13"
go_import_path: github.com/versent/saml2aws
install:
- echo noop
env:
- "PATH=/home/travis/gopath/bin:$PATH"
script:
- make ci
| <|file_sep|>original/.travis.yml
language: go
go:
- "1.12"
go_import_path: github.com/versent/saml2aws
install:
- echo noop
env:
- "PATH=/home/travis/gopath/bin:$PATH"
script:
- make ci
<|file_sep|>current/.travis.yml
language: go
go:
- "1.12"
go_import_path: github.com/versent/saml2aws
insta... | b2672560fa88f3dd3ebd922c38f873189e4fcd9c | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/lib/bourgeois/view_helper.rb
# Wrap a resource or a collection into its related presenter
#
# @example
# present User.new(name: 'Remi') do |user|
# puts user.inspect # => #<UserPresenter object=#<User name="Remi>>
# puts user.name # => Remi
# end
def pres... | # Wrap a resource or a collection into its related presenter
#
# @example
# present User.new(name: 'Remi') do |user|
# puts user.inspect # => #<UserPresenter object=#<User name="Remi>>
# puts user.name # => Remi
# end
def present(object, klass = nil, &blk)
return object... | <|file_sep|>original/lib/bourgeois/view_helper.rb
# Wrap a resource or a collection into its related presenter
#
# @example
# present User.new(name: 'Remi') do |user|
# puts user.inspect # => #<UserPresenter object=#<User name="Remi>>
# puts user.name # => Remi
# end
def pres... | d4270f46a09340fe322a80611962944f462d6985 | lib/bourgeois/view_helper.rb | lib/bourgeois/view_helper.rb | Ruby |
<|file_sep|>original/test/CodeGen/X86/overlap-add.ll
;; X's live range extends beyond the shift, so the register allocator
;; cannot coalesce it with Y. Because of this, a copy needs to be
;; emitted before the shift to save the register value before it is
;; clobbered. However, this copy is not needed if the registe... | ;; X's live range extends beyond the shift, so the register allocator
;; cannot coalesce it with Y. Because of this, a copy needs to be
;; emitted before the shift to save the register value before it is
;; clobbered. However, this copy is not needed if the register
;; allocator turns the shift into an LEA. This als... | <|file_sep|>original/test/CodeGen/X86/overlap-add.ll
;; X's live range extends beyond the shift, so the register allocator
;; cannot coalesce it with Y. Because of this, a copy needs to be
;; emitted before the shift to save the register value before it is
;; clobbered. However, this copy is not needed if the registe... | 9a01353e731a77dd2a6def754fcda85da2f3d473 | test/CodeGen/X86/overlap-add.ll | test/CodeGen/X86/overlap-add.ll | LLVM |
<|file_sep|>original/.travis.yml
packages:
# Linux: only bash (and sh) are installed by default
- ksh
- zsh
# Linux: install the checkbashisms script
- devscripts
before_install:
# OS X: install the checkbashisms script (||true to avoid Linux fail)
- test "$TRAVIS_OS_NAME" = osx &&... | packages:
# Linux: only bash (and sh) are installed by default
- ksh
- zsh
# Linux: install the checkbashisms script
- devscripts
before_install:
# OS X: install the checkbashisms script (||true to avoid Linux fail)
- test "$TRAVIS_OS_NAME" = osx && brew update || tr... | <|file_sep|>original/.travis.yml
packages:
# Linux: only bash (and sh) are installed by default
- ksh
- zsh
# Linux: install the checkbashisms script
- devscripts
before_install:
# OS X: install the checkbashisms script (||true to avoid Linux fail)
- test "$TRAVIS_OS_NAME" = osx &&... | cc7b04fe4e26ff3cc8149578be00e131b36f7bf9 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/src/applications/conduit/method/ConduitQueryConduitAPIMethod.php
return array();
}
protected function execute(ConduitAPIRequest $request) {
$classes = id(new PhutilSymbolLoader())
->setAncestorClass('ConduitAPIMethod')
->setType('class')
->loadObjects();
$names_t... | }
protected function execute(ConduitAPIRequest $request) {
$classes = id(new PhutilSymbolLoader())
->setAncestorClass('ConduitAPIMethod')
->setType('class')
->loadObjects();
$names_to_params = array();
foreach ($classes as $class) {
$names_to_params[$class->getAPIMethodName()] ... | <|file_sep|>original/src/applications/conduit/method/ConduitQueryConduitAPIMethod.php
return array();
}
protected function execute(ConduitAPIRequest $request) {
$classes = id(new PhutilSymbolLoader())
->setAncestorClass('ConduitAPIMethod')
->setType('class')
->loadObjects();
$names_t... | fff04811842ef4396a64098df5df0872ea24af95 | src/applications/conduit/method/ConduitQueryConduitAPIMethod.php | src/applications/conduit/method/ConduitQueryConduitAPIMethod.php | PHP |
<|file_sep|>original/{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/apps/users/adapter.py
# -*- coding: utf-8 -*-
from django.conf import settings
from allauth.account.adapter import DefaultAccountAdapter
from allauth.socialaccount.adapter import DefaultSocialAccountAdapter
class AccountAdapter(DefaultAc... | # -*- coding: utf-8 -*-
from django.conf import settings
from allauth.account.adapter import DefaultAccountAdapter
from allauth.socialaccount.adapter import DefaultSocialAccountAdapter
class AccountAdapter(DefaultAccountAdapter):
def is_open_for_signup(self, request):
return getattr(settings, 'ACCOUNT_ALL... | <|file_sep|>original/{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/apps/users/adapter.py
# -*- coding: utf-8 -*-
from django.conf import settings
from allauth.account.adapter import DefaultAccountAdapter
from allauth.socialaccount.adapter import DefaultSocialAccountAdapter
class AccountAdapter(DefaultAc... | c974c7a73e8ef48ea4fb1436b397f2973d8048c7 | {{cookiecutter.project_name}}/{{cookiecutter.project_name}}/apps/users/adapter.py | {{cookiecutter.project_name}}/{{cookiecutter.project_name}}/apps/users/adapter.py | Python |
<|file_sep|>circle.yml.diff
original:
updated:
general:
branches:
only:
- master
<|file_sep|>original/circle.yml
pre:
- echo $GCLOUD_SERVICE_KEY | base64 --decode --ignore-garbage > ${HOME}/gcloud-service-key.json
- sudo /opt/google-cloud-sdk/bin/gcloud --quiet components update
- sudo /opt/go... | pre:
- echo $GCLOUD_SERVICE_KEY | base64 --decode --ignore-garbage > ${HOME}/gcloud-service-key.json
- sudo /opt/google-cloud-sdk/bin/gcloud --quiet components update
- sudo /opt/google-cloud-sdk/bin/gcloud auth activate-service-account --key-file ${HOME}/gcloud-service-key.json
- sudo /opt/google-clo... | <|file_sep|>circle.yml.diff
original:
updated:
general:
branches:
only:
- master
<|file_sep|>original/circle.yml
pre:
- echo $GCLOUD_SERVICE_KEY | base64 --decode --ignore-garbage > ${HOME}/gcloud-service-key.json
- sudo /opt/google-cloud-sdk/bin/gcloud --quiet components update
- sudo /opt/go... | 7eeee86a4f37d0926c4f94af8c74ace27308daf0 | circle.yml | circle.yml | YAML |
<|file_sep|>original/etc/adminhtml/system.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<tab id="botamp" translate="label" sortOrder="10">
<label>Botamp</labe... | <tab id="botamp" translate="label" sortOrder="10">
<label>Botamp</label>
</tab>
<section id="settings" translate="label" sortOrder="130" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Botamp Application Settings</label>
<tab>botamp</tab>
... | <|file_sep|>original/etc/adminhtml/system.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<tab id="botamp" translate="label" sortOrder="10">
<label>Botamp</labe... | f8027baade4a50910c1eab3ed3a00cb80846ebe0 | etc/adminhtml/system.xml | etc/adminhtml/system.xml | XML |
<|file_sep|>original/requirements_dev.txt
bumpversion==0.5.3
wheel==0.26.0
watchdog==0.8.3
flake8==2.5.1
tox==2.3.1
coverage==4.0.3
Sphinx==1.3.5
cryptography==1.2.1
PyYAML==3.11
requests-mock==0.7.0
<|file_sep|>current/requirements_dev.txt
bumpversion==0.5.3
wheel==0.26.0
watchdog==0.8.3
flake8==2.5.1
tox==2.3.1
cover... | bumpversion==0.5.3
wheel==0.26.0
watchdog==0.8.3
flake8==2.5.2
tox==2.3.1
coverage==4.0.3
Sphinx==1.3.5
cryptography==1.2.1
PyYAML==3.11
requests-mock==0.7.0 | <|file_sep|>original/requirements_dev.txt
bumpversion==0.5.3
wheel==0.26.0
watchdog==0.8.3
flake8==2.5.1
tox==2.3.1
coverage==4.0.3
Sphinx==1.3.5
cryptography==1.2.1
PyYAML==3.11
requests-mock==0.7.0
<|file_sep|>current/requirements_dev.txt
bumpversion==0.5.3
wheel==0.26.0
watchdog==0.8.3
flake8==2.5.1
tox==2.3.1
cover... | 9d4075c1fb2f5ea40b3307e10742aa1910a5ab75 | requirements_dev.txt | requirements_dev.txt | Text |
<|file_sep|>original/.forestry/settings.yml
<|file_sep|>current/.forestry/settings.yml
<|file_sep|>updated/.forestry/settings.yml | ---
upload_path: "/static/uploads/:year:/:month:/:day:"
frontmatter_file_url_template: "/uploads/:year:/:month:/:day:"
body_file_url_template: "/uploads/:year:/:month:/:day:"
new_page_extension: md
auto_deploy: false
admin_path:
webhook_url:
sections:
version: 0.31.1 | <|file_sep|>original/.forestry/settings.yml
<|file_sep|>current/.forestry/settings.yml
<|file_sep|>updated/.forestry/settings.yml
---
upload_path: "/static/uploads/:year:/:month:/:day:"
frontmatter_file_url_template: "/uploads/:year:/:month:/:day:"
body_file_url_template: "/uploads/:year:/:month:/:day:"
new_page_exte... | ae533b95e1f5c4612e597e0576c934d3edccad70 | .forestry/settings.yml | .forestry/settings.yml | YAML |
<|file_sep|>original/composer.json
{
"name": "Philipp Baschke",
"email": "philipp@baschke.com"
}
],
"require": {
"composer-plugin-api": "^1.0"
},
"require-dev": {
"composer/composer": "1.0.*",
"phpunit/phpunit": "5.3.*",
"squizlabs/php_codesniffer": "2.*"
},
"autoload": {... | {
"name": "Philipp Baschke",
"email": "philipp@baschke.com"
}
],
"require": {
"composer-plugin-api": "^1.0"
},
"require-dev": {
"composer/composer": "1.0.*",
"phpunit/phpunit": "4.8.*",
"squizlabs/php_codesniffer": "2.*"
},
"autoload": {
"psr-4": { "PhilippBaschke\\AC... | <|file_sep|>original/composer.json
{
"name": "Philipp Baschke",
"email": "philipp@baschke.com"
}
],
"require": {
"composer-plugin-api": "^1.0"
},
"require-dev": {
"composer/composer": "1.0.*",
"phpunit/phpunit": "5.3.*",
"squizlabs/php_codesniffer": "2.*"
},
"autoload": {... | 525302e9bf2fa562707ea919bc6eefe19c36bfde | composer.json | composer.json | JSON |
<|file_sep|>example.py.diff
original:
updated:
@hooks.command()
def info(self, target, sender):
"will print the target and sender to the console"
print("target: %s, sender: %s" % (target, sender))
<|file_sep|>original/example.py
def bling(self, target, sender):
"will print yo"
if target.startswi... | def info(self, target, sender):
"will print the target and sender to the console"
print("target: %s, sender: %s" % (target, sender))
@hooks.command()
def bling(self, target, sender):
"will print yo"
if target.startswith("#"):
self.message(target, "%s: yo" % sender)
else:
self.mess... | <|file_sep|>example.py.diff
original:
updated:
@hooks.command()
def info(self, target, sender):
"will print the target and sender to the console"
print("target: %s, sender: %s" % (target, sender))
<|file_sep|>original/example.py
def bling(self, target, sender):
"will print yo"
if target.startswi... | 1001a61d345e1b3018eccfbd1cdb4a2111e23cca | example.py | example.py | Python |
<|file_sep|>original/client/src/lib.rs
extern crate base;
#[macro_use]
extern crate glium;
#[macro_use]
extern crate log;
pub mod render;
pub mod event_manager;
mod config;
mod game;
pub use config::Config;
pub fn start_game(config: Config, world_provider: &base::world::Provider) -> Result<(), ()> {
game::run(&... | //! This crate contains functionality for the client only. This is mainly
//! graphics and input handling.
//!
extern crate base;
#[macro_use]
extern crate glium;
#[macro_use]
extern crate log;
pub mod render;
pub mod event_manager;
mod config;
mod game;
pub use config::Config;
pub fn start_game(config: Config, wo... | <|file_sep|>original/client/src/lib.rs
extern crate base;
#[macro_use]
extern crate glium;
#[macro_use]
extern crate log;
pub mod render;
pub mod event_manager;
mod config;
mod game;
pub use config::Config;
pub fn start_game(config: Config, world_provider: &base::world::Provider) -> Result<(), ()> {
game::run(&... | ec294134a1f380937872d46b19fd9448d19e5b09 | client/src/lib.rs | client/src/lib.rs | Rust |
<|file_sep|>original/convert_entry_timestamp_to_integer.sh
<|file_sep|>current/convert_entry_timestamp_to_integer.sh
<|file_sep|>updated/convert_entry_timestamp_to_integer.sh | #!/usr/bin/env bash
db_name=$1
psql $db_name -U postgres -q -S -c "
BEGIN;
alter table entry add column timestamp_long integer;
update entry e1 set timestamp_long=extract(epoch from e2.timestamp) from entry e2 where e1.entry_number=e2.entry_number;
alter table entry drop column if exists timestamp;
alter table entry... | <|file_sep|>original/convert_entry_timestamp_to_integer.sh
<|file_sep|>current/convert_entry_timestamp_to_integer.sh
<|file_sep|>updated/convert_entry_timestamp_to_integer.sh
#!/usr/bin/env bash
db_name=$1
psql $db_name -U postgres -q -S -c "
BEGIN;
alter table entry add column timestamp_long integer;
update entry... | aeb2b730a9cd94c7faef8501d6700a17edf86bd1 | convert_entry_timestamp_to_integer.sh | convert_entry_timestamp_to_integer.sh | Shell |
<|file_sep|>original/db/migrate/20160901131628_add_pinfirmable_columns_to_resource.rb
class AddPinfirmableColumnsToResource < ActiveRecord::Migration[5.0]
def change
model = (ENV["MODEL"] || "user").downcase.pluralize.to_sym
add_column model, :pinfirmable_pin, :string
add_column model, :pinfirmable_tries,... | class AddPinfirmableColumnsToResource < ActiveRecord::Migration[5.0]
def change
model = (ENV["MODEL"] || "user").downcase.pluralize.to_sym
unless column_exists?(model, :pinfirmable_pin)
add_column model, :pinfirmable_pin, :string
add_column model, :pinfirmable_tries, :integer, default: 0
add_co... | <|file_sep|>original/db/migrate/20160901131628_add_pinfirmable_columns_to_resource.rb
class AddPinfirmableColumnsToResource < ActiveRecord::Migration[5.0]
def change
model = (ENV["MODEL"] || "user").downcase.pluralize.to_sym
add_column model, :pinfirmable_pin, :string
add_column model, :pinfirmable_tries,... | 2c573ed1d4610bc5ee6dac10f72eb4b9bfa1d913 | db/migrate/20160901131628_add_pinfirmable_columns_to_resource.rb | db/migrate/20160901131628_add_pinfirmable_columns_to_resource.rb | Ruby |
<|file_sep|>original/scripts/get_images.py
def get_filename(url):
relpath = urlparse(url).path
return os.path.split(relpath)[-1]
url = 'http://www.data.act.gov.au/resource/j746-krni.json'
data = requests.get(url).json()
filedir = os.path.abspath(os.path.join(os.path.dirname(__file__), '../data/images'))
i... |
def get_filename(url):
relpath = urlparse(url).path
return os.path.split(relpath)[-1]
url = 'http://www.data.act.gov.au/resource/j746-krni.json'
data = requests.get(url).json()
filedir = os.path.abspath(os.path.join(os.path.dirname(__file__),
'../govhack2014/static/ar... | <|file_sep|>original/scripts/get_images.py
def get_filename(url):
relpath = urlparse(url).path
return os.path.split(relpath)[-1]
url = 'http://www.data.act.gov.au/resource/j746-krni.json'
data = requests.get(url).json()
filedir = os.path.abspath(os.path.join(os.path.dirname(__file__), '../data/images'))
i... | 9d961fb5f50882de687278996365233dc0794123 | scripts/get_images.py | scripts/get_images.py | Python |
<|file_sep|>original/compile_xapian_from_git.txt
######################################
if [ -d "/usr/local/Cellar" ]; then
# Homebrew in OS X has a Cellar directory
PREFIX="/usr/local/Cellar/xapian/HEAD"
else
PREFIX="/usr/local"
fi
# Build xapian-core
######################################
cd xapian/xapian-core
... | ######################################
if [ -d "/usr/local/Cellar" ]; then
# Homebrew in OS X has a Cellar directory
PREFIX="/usr/local/Cellar/xapian/HEAD"
else
PREFIX="/usr/local"
fi
# Build xapian-core
######################################
cd xapian/xapian-core
# Autoconf, configure and make:
./preautoreconf
a... | <|file_sep|>original/compile_xapian_from_git.txt
######################################
if [ -d "/usr/local/Cellar" ]; then
# Homebrew in OS X has a Cellar directory
PREFIX="/usr/local/Cellar/xapian/HEAD"
else
PREFIX="/usr/local"
fi
# Build xapian-core
######################################
cd xapian/xapian-core
... | 9251389913b648ae3b2283b4da979603d31376f1 | compile_xapian_from_git.txt | compile_xapian_from_git.txt | Text |
<|file_sep|>original/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/resources/providers/ObjectMapperContextResolver.java
<|file_sep|>current/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/resources/providers/ObjectMapperContextResolver.java
<|file_sep|>updated/orchestrator/src/main/java/com/yahoo/ve... | package com.yahoo.vespa.orchestrator.resources.providers;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.module.scala.DefaultScalaModule$;
import javax.ws.rs.ext.ContextResolver;
import javax.ws.rs.ext.Provider;
/**
* Allow Scala case classes to be serialized to JSON
* @author bjo... | <|file_sep|>original/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/resources/providers/ObjectMapperContextResolver.java
<|file_sep|>current/orchestrator/src/main/java/com/yahoo/vespa/orchestrator/resources/providers/ObjectMapperContextResolver.java
<|file_sep|>updated/orchestrator/src/main/java/com/yahoo/ve... | b2d34c53112d8ed6e1b8fc46199787c58acc07bb | orchestrator/src/main/java/com/yahoo/vespa/orchestrator/resources/providers/ObjectMapperContextResolver.java | orchestrator/src/main/java/com/yahoo/vespa/orchestrator/resources/providers/ObjectMapperContextResolver.java | Java |
<|file_sep|>original/src/adzerk/boot_cljs/util.clj
[path-or-file]
(-> path-or-file io/file .getName))
(defn cljs-files
[fileset]
(->> fileset core/input-files (core/by-ext [".cljs" ".cljc"]) (sort-by :path)))
(defn path [& parts]
(.getPath (apply io/file parts)))
(defn main-files [fileset id]
(let [selec... | [path-or-file]
(-> path-or-file io/file .getName))
(defn cljs-files
[fileset]
(->> fileset core/input-files (core/by-ext [".cljs" ".cljc"]) (sort-by :path)))
(defn path [& parts]
(.getPath (apply io/file parts)))
(defn main-files [fileset id]
(let [select (if (seq id)
#(core/by-name [(st... | <|file_sep|>original/src/adzerk/boot_cljs/util.clj
[path-or-file]
(-> path-or-file io/file .getName))
(defn cljs-files
[fileset]
(->> fileset core/input-files (core/by-ext [".cljs" ".cljc"]) (sort-by :path)))
(defn path [& parts]
(.getPath (apply io/file parts)))
(defn main-files [fileset id]
(let [selec... | 85382660275536818f532e8eb5308c1695d1b696 | src/adzerk/boot_cljs/util.clj | src/adzerk/boot_cljs/util.clj | Clojure |
<|file_sep|>original/app/helpers/shifts_helper.rb
module ShiftsHelper
def shift_vote_collection_dates(polls)
date_options((start_date(polls)..end_date(polls)))
end
def shift_recount_scrutiny_dates(polls)
date_options(polls.map(&:ends_at).map(&:to_date).inject([]) { |total, date| total << (date..date + 1... | module ShiftsHelper
def shift_vote_collection_dates(polls)
date_options((start_date(polls)..end_date(polls)))
end
def shift_recount_scrutiny_dates(polls)
date_options(polls.map(&:ends_at).map(&:to_date).sort.inject([]) { |total, date| total << (date..date + 1.week).to_a }.flatten.uniq)
end
def date... | <|file_sep|>original/app/helpers/shifts_helper.rb
module ShiftsHelper
def shift_vote_collection_dates(polls)
date_options((start_date(polls)..end_date(polls)))
end
def shift_recount_scrutiny_dates(polls)
date_options(polls.map(&:ends_at).map(&:to_date).inject([]) { |total, date| total << (date..date + 1... | 9d7be9b57c5d75f94240f79bbd639d3bc28d0458 | app/helpers/shifts_helper.rb | app/helpers/shifts_helper.rb | Ruby |
<|file_sep|>uitest/src/com/vaadin/tests/components/ui/TestUITheme.java.diff
original:
Label label = new Label("A red label");
label.setStyleName("red");
updated:
Label label = new Label("A green label");
label.setStyleName("green");
<|file_sep|>original/uitest/src/com/vaadin/tests/compon... | @Theme("tests-tickets")
public class TestUITheme extends AbstractTestUI {
@Override
protected void setup(VaadinRequest request) {
Label label = new Label("A green label");
label.setStyleName("green");
addComponent(label);
}
@Override
public String getTestDescription() {
... | <|file_sep|>uitest/src/com/vaadin/tests/components/ui/TestUITheme.java.diff
original:
Label label = new Label("A red label");
label.setStyleName("red");
updated:
Label label = new Label("A green label");
label.setStyleName("green");
<|file_sep|>original/uitest/src/com/vaadin/tests/compon... | 157f43c5517cda5211470e9c483ce1a80be38269 | uitest/src/com/vaadin/tests/components/ui/TestUITheme.java | uitest/src/com/vaadin/tests/components/ui/TestUITheme.java | Java |
<|file_sep|>zero-storage-core/src/test/java/com/unidev/zerostorage/TestIndexStorage.java.diff
original:
updated:
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
<|file_sep|>original/zero-storage-core/src/test/java/com/unidev/zerostorage/TestIndexStorage.java
indexStorage.sav... | index.details().put("Tomato", null);
indexStorage.index(index);
File root = folder.getRoot();
indexStorage.storageRoot(root);
indexStorage.save();
}
@Test
public void testLoadIndexStorage() throws IOException {
InputStream inputStream = TestStorage.class.g... | <|file_sep|>zero-storage-core/src/test/java/com/unidev/zerostorage/TestIndexStorage.java.diff
original:
updated:
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
<|file_sep|>original/zero-storage-core/src/test/java/com/unidev/zerostorage/TestIndexStorage.java
indexStorage.sav... | d147da405c4e9726b53195e63d9c7621c3c88edf | zero-storage-core/src/test/java/com/unidev/zerostorage/TestIndexStorage.java | zero-storage-core/src/test/java/com/unidev/zerostorage/TestIndexStorage.java | Java |
<|file_sep|>app/views/companies/index.html.erb.diff
original:
<div>
updated:
<div class="row section">
<|file_sep|>app/views/companies/index.html.erb.diff
original:
<% end %>
updated:
<% end %>
<|file_sep|>original/app/views/companies/index.html.erb
<div class="row">
<h2>Featured Companies</h2>
<% if @companie... | <div class="row">
<h2>Featured Companies</h2>
<% if @companies.any? %>
<% @companies.each do |company| %>
<div class="col m3 top-company">
<h5><%= link_to company.name , company_path(company)%></h5>
<img class="company-img" src="<%= company.profile_image_url %>" alt="<%= company.name %>" ... | <|file_sep|>app/views/companies/index.html.erb.diff
original:
<div>
updated:
<div class="row section">
<|file_sep|>app/views/companies/index.html.erb.diff
original:
<% end %>
updated:
<% end %>
<|file_sep|>original/app/views/companies/index.html.erb
<div class="row">
<h2>Featured Companies</h2>
<% if @companie... | ffa1576388b29517b360d787acf976718531f228 | app/views/companies/index.html.erb | app/views/companies/index.html.erb | HTML+ERB |
<|file_sep|>.travis.yml.diff
original:
before_install:
- virtualenv .
updated:
<|file_sep|>original/.travis.yml
langauge: python
python:
- "2.7"
before_install:
- virtualenv .
install:
- "bin/pip install -r requirements.txt"
- "bin/pip install -r requirements-dev.txt"
script: bin/nosetests
<|file_sep|>curren... | langauge: python
python:
- "2.7"
install:
- "pip install -r requirements.txt"
- "pip install -r requirements-dev.txt"
script: nosetests | <|file_sep|>.travis.yml.diff
original:
before_install:
- virtualenv .
updated:
<|file_sep|>original/.travis.yml
langauge: python
python:
- "2.7"
before_install:
- virtualenv .
install:
- "bin/pip install -r requirements.txt"
- "bin/pip install -r requirements-dev.txt"
script: bin/nosetests
<|file_sep|>curren... | 5abc9390ffa2d19600512a7ec069228a45471959 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/dedupsqlfs/lib/cache/_base.py
<|file_sep|>current/dedupsqlfs/lib/cache/_base.py
<|file_sep|>updated/dedupsqlfs/lib/cache/_base.py | # -*- coding: utf8 -*-
"""
@author Sergey Dryabzhinsky
"""
from time import time
class TimedCache(object):
"""
Cache storage with timers
"""
_enable_timers = True
def __init__(self):
self._time_spent = {}
self._op_count = {}
pass
def setEnableTimers(self, flag=True):... | <|file_sep|>original/dedupsqlfs/lib/cache/_base.py
<|file_sep|>current/dedupsqlfs/lib/cache/_base.py
<|file_sep|>updated/dedupsqlfs/lib/cache/_base.py
# -*- coding: utf8 -*-
"""
@author Sergey Dryabzhinsky
"""
from time import time
class TimedCache(object):
"""
Cache storage with timers
"""
_enable... | de10ebd4192576a7a9f9fc73871cc56479f4d686 | dedupsqlfs/lib/cache/_base.py | dedupsqlfs/lib/cache/_base.py | Python |
<|file_sep|>original/kremlin/templates/_formhelpers.html
{#
Form helpers, placable macros, fields galore
#}
{% macro render_field(field) %}
<dt>{{ field.label }}
<dd>{{ field(**kwargs) | safe }}
{% if field.errors %}
<ul class="errors">
{% for error in field.errors %}<li>{{ error }}... | {#
Form helpers, placable macros, fields galore
#}
{% macro render_field(field) %}
<dt>{{ field.label }}
<dd>{{ field(**kwargs) | safe }}
{% if field.errors %}
<ul class="errors">
{% for error in field.errors %}<li>{{ error }}</li>{% endfor %}
</ul>
{% endif %}
</dd>... | <|file_sep|>original/kremlin/templates/_formhelpers.html
{#
Form helpers, placable macros, fields galore
#}
{% macro render_field(field) %}
<dt>{{ field.label }}
<dd>{{ field(**kwargs) | safe }}
{% if field.errors %}
<ul class="errors">
{% for error in field.errors %}<li>{{ error }}... | c3d890dfc92d639d9732a7e022ac15cf58a3892d | kremlin/templates/_formhelpers.html | kremlin/templates/_formhelpers.html | HTML |
<|file_sep|>lib/ruby/new_safe_navigation_operator.rb.diff
original:
u.?profile.?thumbnails.?large
updated:
u&.profile&.thumbnails&.large
<|file_sep|>lib/ruby/new_safe_navigation_operator.rb.diff
original:
u.?profile.?thumbnails.?large
updated:
u&.profile&.thumbnails&.large
<|file_sep|>original/lib/ruby/... | =>
u&.profile&.thumbnails&.large
EOF
# Gem::Version initialize will strip RUBY_VERSION directly in ruby 1.9,
# which is solved from ruby 2.0.0, which calls dup internally.
if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new("2.3.0")
within_files '**/*.rb' do
# u.try!(:profile).try!(:thu... | <|file_sep|>lib/ruby/new_safe_navigation_operator.rb.diff
original:
u.?profile.?thumbnails.?large
updated:
u&.profile&.thumbnails&.large
<|file_sep|>lib/ruby/new_safe_navigation_operator.rb.diff
original:
u.?profile.?thumbnails.?large
updated:
u&.profile&.thumbnails&.large
<|file_sep|>original/lib/ruby/... | 033aa00f9f5de791b4dbcfda2f24d3d9f51630cb | lib/ruby/new_safe_navigation_operator.rb | lib/ruby/new_safe_navigation_operator.rb | Ruby |
<|file_sep|>original/test_settings.py
DATABASES = {
'default' : {
'ENGINE': 'django.db.backends.sqlite3'
}
}
INSTALLED_APPS = (
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.auth',
'django.contrib.sites',
'django_extensions',
'newsletter',
)
ROOT_URL... | 'ENGINE': 'django.db.backends.sqlite3'
}
}
INSTALLED_APPS = (
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.auth',
'django.contrib.sites',
'django_extensions',
'newsletter',
)
ROOT_URLCONF = 'test_urls'
SITE_ID = 1
TEMPLATE_DIRS = ('test_templates', )
... | <|file_sep|>original/test_settings.py
DATABASES = {
'default' : {
'ENGINE': 'django.db.backends.sqlite3'
}
}
INSTALLED_APPS = (
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.auth',
'django.contrib.sites',
'django_extensions',
'newsletter',
)
ROOT_URL... | 7b26b893d642d829c55126452fcbebca8cfff806 | test_settings.py | test_settings.py | Python |
<|file_sep|>src/main/java/hr/vsite/mentor/Common.gwt.xml.diff
original:
</source>
<source path="unit/text">
<include name="MarkupType.java"/>
<include name="MentorTextUnit.java"/>
<include name="MentorTextUnitAttributes.java"/>
updated:
<|file_sep|>src/main/java/hr/vsite/mentor/Common.gwt.xml.diff
original:
... | <module>
<source path="course">
<include name="Course.java"/>
</source>
<source path="lecture">
<include name="Lecture.java"/>
</source>
<source path="unit">
<include name="Unit.java"/>
<include name="TextUnit.java"/>
<include name="VideoUnit.java"/>
</source>
<source path="user">
<include name="... | <|file_sep|>src/main/java/hr/vsite/mentor/Common.gwt.xml.diff
original:
</source>
<source path="unit/text">
<include name="MarkupType.java"/>
<include name="MentorTextUnit.java"/>
<include name="MentorTextUnitAttributes.java"/>
updated:
<|file_sep|>src/main/java/hr/vsite/mentor/Common.gwt.xml.diff
original:
... | 558afa27e642b31f2c8f5433f4b980caf776a229 | src/main/java/hr/vsite/mentor/Common.gwt.xml | src/main/java/hr/vsite/mentor/Common.gwt.xml | XML |
<|file_sep|>.travis.yml.diff
original:
updated:
- nightly
matrix:
allow_failures:
- php: nightly
<|file_sep|>.travis.yml.diff
original:
before_script:
updated:
before_script:
<|file_sep|>original/.travis.yml
install:
- composer install --prefer-source --no-interaction
# PHPUnit
- ./vendor/bin/phpunit ... | - sudo apt-get install -qq python-numpy python-scipy
- pip install numpy
install:
- composer install --prefer-source --no-interaction
# PHPUnit
- ./vendor/bin/phpunit --version
before_script:
# Install Code climate reporter
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest... | <|file_sep|>.travis.yml.diff
original:
updated:
- nightly
matrix:
allow_failures:
- php: nightly
<|file_sep|>.travis.yml.diff
original:
before_script:
updated:
before_script:
<|file_sep|>original/.travis.yml
install:
- composer install --prefer-source --no-interaction
# PHPUnit
- ./vendor/bin/phpunit ... | b6fe1f9f94d9bca34df60b6ff8aa26c0416b2cd9 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/ci/requirements.txt
pip==9.0.1
wheel==0.29.0
flake8==3.3.0
tox==2.7.0
coverage==4.4.1
pytest==3.1.2
pytest-cov==2.5.1
Sphinx==1.6.2
sphinx-rtd-theme==0.2.4
boto3==1.4.4
datafs==0.7.1
bumpversion==0.5.3
watchdog==0.8.3
cryptography==1.9
joblib==0.11
<|file_sep|>current/ci/requirements.txt
pip==9.0.1... | pip==9.0.1
wheel==0.29.0
flake8==3.3.0
tox==2.7.0
coverage==4.4.1
pytest==3.1.2
pytest-cov==2.5.1
Sphinx==1.6.3
sphinx-rtd-theme==0.2.4
boto3==1.4.4
datafs==0.7.1
bumpversion==0.5.3
watchdog==0.8.3
cryptography==1.9
joblib==0.11 | <|file_sep|>original/ci/requirements.txt
pip==9.0.1
wheel==0.29.0
flake8==3.3.0
tox==2.7.0
coverage==4.4.1
pytest==3.1.2
pytest-cov==2.5.1
Sphinx==1.6.2
sphinx-rtd-theme==0.2.4
boto3==1.4.4
datafs==0.7.1
bumpversion==0.5.3
watchdog==0.8.3
cryptography==1.9
joblib==0.11
<|file_sep|>current/ci/requirements.txt
pip==9.0.1... | 19f1adcc4e8259827eaa581a6d22afd996fec06c | ci/requirements.txt | ci/requirements.txt | Text |
<|file_sep|>original/shifter.py
from image import ImageWithWCS
import numpy as np
from os import path
def shift_images(files, source_dir, output_file='_shifted'):
"""Align images based on astrometry."""
ref = files[0] # TODO: make reference image an input
ref_im = ImageWithWCS(path.join(source_dir, ref)... | import numpy as np
from os import path
def shift_images(files, source_dir, output_file='_shifted'):
"""Align images based on astrometry."""
ref = files[0] # TODO: make reference image an input
ref_im = ImageWithWCS(path.join(source_dir, ref))
ref_pix = np.int32(np.array(ref_im.data.shape) / 2)
r... | <|file_sep|>original/shifter.py
from image import ImageWithWCS
import numpy as np
from os import path
def shift_images(files, source_dir, output_file='_shifted'):
"""Align images based on astrometry."""
ref = files[0] # TODO: make reference image an input
ref_im = ImageWithWCS(path.join(source_dir, ref)... | 573bf086a09da16925fe01c3016161a478e5a2af | shifter.py | shifter.py | Python |
<|file_sep|>app/views/shared/_candidates_to_watch.html.erb.diff
original:
<th class='txt-c fs-m th-w'><a href="<%= show_path(candidate) %>">
<%= candidate.name %></a></th>
<th><%= candidate.description %></th>
</th>
<% if @logged_in %>
<th><%= button_to "Endorse", e... | <table class='debug w txt-c'>
<thead>
<tr class='debug'>
<th class='txt-c fs-m th-w'>
<a href="<%= show_path(candidate) %>">
<%= candidate.name %>
</a>
</th>
</tr>
</thead>
<tr>
<td>
<%= candida... | <|file_sep|>app/views/shared/_candidates_to_watch.html.erb.diff
original:
<th class='txt-c fs-m th-w'><a href="<%= show_path(candidate) %>">
<%= candidate.name %></a></th>
<th><%= candidate.description %></th>
</th>
<% if @logged_in %>
<th><%= button_to "Endorse", e... | f3534e0d18b8e45753f0313ab5d83a21909ac559 | app/views/shared/_candidates_to_watch.html.erb | app/views/shared/_candidates_to_watch.html.erb | HTML+ERB |
<|file_sep|>.travis.yml.diff
original:
# See https://github.com/silverstripe-labs/silverstripe-travis-support for setup details
updated:
# See https://github.com/silverstripe/silverstripe-travis-support for setup details
<|file_sep|>.travis.yml.diff
original:
- 5.6
- 7.0
updated:
<|file_sep|>.travis.yml.diff
origi... |
matrix:
include:
- php: 5.6
env: DB=MYSQL CORE_RELEASE=3
- php: 5.6
env: DB=MYSQL CORE_RELEASE=3.1
- php: 5.6
env: DB=PGSQL CORE_RELEASE=3.2
- php: 7.1
env: DB=MYSQL CORE_RELEASE=3.6
before_script:
- composer self-update || true
- git clone git://github.com/silverstripe/s... | <|file_sep|>.travis.yml.diff
original:
# See https://github.com/silverstripe-labs/silverstripe-travis-support for setup details
updated:
# See https://github.com/silverstripe/silverstripe-travis-support for setup details
<|file_sep|>.travis.yml.diff
original:
- 5.6
- 7.0
updated:
<|file_sep|>.travis.yml.diff
origi... | 7bae7e2c34bb7b159372ee7b1813b26b7d7bb7f0 | .travis.yml | .travis.yml | YAML |
<|file_sep|>array-of.js.diff
original:
var len = items.length;
var C = this;
var A = isConstructor(C) ? new C(len) : new Array(len);
var k = 0;
while (k < len) {
var kValue = items[k];
A[k] = kValue;
++k;
updated:
var length = items.length;
var Me = this;
var result = isConstructor(M... | var length = items.length;
var Me = this;
var result = isConstructor(Me) ? new Me(length) : new Array(length);
var index = 0;
var value;
while (index < length) {
value = items[index];
result[index] = value;
++index;
}
return result;
};
if (Object.defineProperty) {
Object.defin... | <|file_sep|>array-of.js.diff
original:
var len = items.length;
var C = this;
var A = isConstructor(C) ? new C(len) : new Array(len);
var k = 0;
while (k < len) {
var kValue = items[k];
A[k] = kValue;
++k;
updated:
var length = items.length;
var Me = this;
var result = isConstructor(M... | 1b234f0a860aaaf046412ae865b51458a2f90505 | array-of.js | array-of.js | JavaScript |
<|file_sep|>original/.forestry/settings.yml
sections:
- type: jekyll-pages
label: Pages
create: all
- type: jekyll-posts
label: Posts
create: all
upload_dir: uploads
public_path: "/uploads"
front_matter_path: ''
use_front_matter_path: false
file_template: ":filename:"
instant_preview: true
build:
preview_env:... | sections:
- type: jekyll-pages
label: Pages
create: all
- type: jekyll-posts
label: Posts
create: all
upload_dir: uploads
public_path: "/uploads"
front_matter_path: ''
use_front_matter_path: false
file_template: ":filename:"
instant_preview: true
build:
preview_env:
- JEKYLL_ENV=staging
preview_output_dir... | <|file_sep|>original/.forestry/settings.yml
sections:
- type: jekyll-pages
label: Pages
create: all
- type: jekyll-posts
label: Posts
create: all
upload_dir: uploads
public_path: "/uploads"
front_matter_path: ''
use_front_matter_path: false
file_template: ":filename:"
instant_preview: true
build:
preview_env:... | 78185fc861cae99cd6a20b8cec4635f6ab884b9e | .forestry/settings.yml | .forestry/settings.yml | YAML |
<|file_sep|>original/nengo_spinnaker/simulator.py
class Simulator(object):
def __init__(self, model, dt=0.001, seed=None):
# Build the model
self.builder = builder.Builder()
self.dao = self.builder(model, dt, seed)
self.dao.writeTextSpecs = True
def run(self, time):
"""... | self.builder = builder.Builder()
self.dao = self.builder(model, dt, seed)
self.dao.writeTextSpecs = True
def run(self, time):
"""Run the model, currently ignores the time."""
self.controller = control.Controller(
sys.modules[__name__],
conf.config.get... | <|file_sep|>original/nengo_spinnaker/simulator.py
class Simulator(object):
def __init__(self, model, dt=0.001, seed=None):
# Build the model
self.builder = builder.Builder()
self.dao = self.builder(model, dt, seed)
self.dao.writeTextSpecs = True
def run(self, time):
"""... | ca9cd229faaa0fc43a2ac0e4c6354331c0b57550 | nengo_spinnaker/simulator.py | nengo_spinnaker/simulator.py | Python |
<|file_sep|>original/py/find-right-interval.py
<|file_sep|>current/py/find-right-interval.py
<|file_sep|>updated/py/find-right-interval.py | from operator import itemgetter
# Definition for an interval.
# class Interval(object):
# def __init__(self, s=0, e=0):
# self.start = s
# self.end = e
class Solution(object):
def findRightInterval(self, intervals):
"""
:type intervals: List[Interval]
:rtype: List[int]
... | <|file_sep|>original/py/find-right-interval.py
<|file_sep|>current/py/find-right-interval.py
<|file_sep|>updated/py/find-right-interval.py
from operator import itemgetter
# Definition for an interval.
# class Interval(object):
# def __init__(self, s=0, e=0):
# self.start = s
# self.end = e
class ... | 884ae74bb75e5a0c60da74791a2e6fad9e4b83e5 | py/find-right-interval.py | py/find-right-interval.py | Python |
<|file_sep|>summstats.cpp.diff
original:
std::cout << "pi\tS\tD\tthetaH\tH\n";
updated:
std::cout << "pi\tS\tD\ttH\n";
<|file_sep|>summstats.cpp.diff
original:
const double pi = Sequence::thetapi(ac);
const double tH = Sequence::thetah(ac, 0);
std::cout << pi << '\t'
updated:
std... |
#include <Sequence/variant_matrix/msformat.hpp>
#include <Sequence/summstats.hpp>
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
std::cerr.tie(nullptr);
std::cout.setf(std::ios::fixed);
std::cout.precision(6);
std::cout << "pi\tS\tD\ttH\n";
do {
const auto vm... | <|file_sep|>summstats.cpp.diff
original:
std::cout << "pi\tS\tD\tthetaH\tH\n";
updated:
std::cout << "pi\tS\tD\ttH\n";
<|file_sep|>summstats.cpp.diff
original:
const double pi = Sequence::thetapi(ac);
const double tH = Sequence::thetah(ac, 0);
std::cout << pi << '\t'
updated:
std... | 8d9223102e794c0368dbb0960183e53a22ed848a | summstats.cpp | summstats.cpp | C++ |
<|file_sep|>original/Debugging.md
You may need to restart VS Code for this change to take effect.
### Running
Once desktop support is enabled, you can run and debug using the normal
Dart Code workflow.
### Attaching
**Attaching from Dart Code is currently broken with Flutter master
due to changes in the Flutter obs... | You may need to restart VS Code for this change to take effect.
### Running
Once desktop support is enabled, you can run and debug using the normal
Dart Code workflow.
### Attaching
Add a [launch
configuration](https://code.visualstudio.com/docs/editor/debugging#_launch-configurations)
like the following:
```
... | <|file_sep|>original/Debugging.md
You may need to restart VS Code for this change to take effect.
### Running
Once desktop support is enabled, you can run and debug using the normal
Dart Code workflow.
### Attaching
**Attaching from Dart Code is currently broken with Flutter master
due to changes in the Flutter obs... | ba2a542dc75bb377a0625c1454bbe11ef721c8df | Debugging.md | Debugging.md | Markdown |
<|file_sep|>scripts/setup_ci.sh.diff
original:
bower install
updated:
./node_modules/.bin/bower install
<|file_sep|>original/scripts/setup_ci.sh
echo "Press Return to continue..."
read
fi
else
rm -rf XD-MVC
fi
# Clone XD-MVC repository
git clone --depth 1 https://github.com/mhusm/XD-MVC.git XD-... | echo "Press Return to continue..."
read
fi
else
rm -rf XD-MVC
fi
# Clone XD-MVC repository
git clone --depth 1 https://github.com/mhusm/XD-MVC.git XD-MVC
# Setup gallery app
echo "Setup gallery app"
cd ${PROJECT_ROOT}/testapp/XD-MVC/Examples/Gallery
npm install
./node_modules/.bin/bower instal... | <|file_sep|>scripts/setup_ci.sh.diff
original:
bower install
updated:
./node_modules/.bin/bower install
<|file_sep|>original/scripts/setup_ci.sh
echo "Press Return to continue..."
read
fi
else
rm -rf XD-MVC
fi
# Clone XD-MVC repository
git clone --depth 1 https://github.com/mhusm/XD-MVC.git XD-... | 581e3aae519c3183d36dbc198ffde8ef3714f19b | scripts/setup_ci.sh | scripts/setup_ci.sh | Shell |
<|file_sep|>original/README.md
Crawl **www.sitemaps.org** with 5 concurrent workers:
```bash
gargantua crawl --url https://www.sitemaps.org/sitemap.xml --workers 5
```
## Roadmap
- Increase the number of workers at runtime
- Clear the terminal windows after exiting gargantua (see: http://stackoverflow.com/questions/... | Crawl **www.sitemaps.org** with 5 concurrent workers:
```bash
gargantua crawl --url https://www.sitemaps.org/sitemap.xml --workers 5
```
## Roadmap
- Increase the number of workers at runtime
- Clear the terminal windows after exiting gargantua (see: http://stackoverflow.com/questions/22891644/how-can-i-clear-the-te... | <|file_sep|>original/README.md
Crawl **www.sitemaps.org** with 5 concurrent workers:
```bash
gargantua crawl --url https://www.sitemaps.org/sitemap.xml --workers 5
```
## Roadmap
- Increase the number of workers at runtime
- Clear the terminal windows after exiting gargantua (see: http://stackoverflow.com/questions/... | b189ebbd962927939436f10b923b8710652cabd7 | README.md | README.md | Markdown |
<|file_sep|>original/.scrutinizer.yml
min_lines: 5
# Minimum number of identical tokens (default: 70)
min_tokens: 70
# A list of names that should be scanned (default: '*.php')
names:
# Default:
- '*.php'
# A list of excluded directories.
e... | min_lines: 5
# Minimum number of identical tokens (default: 70)
min_tokens: 70
# A list of names that should be scanned (default: '*.php')
names:
# Default:
- '*.php'
# A list of excluded directories.
excluded_dirs: ["vendor", "files"]
... | <|file_sep|>original/.scrutinizer.yml
min_lines: 5
# Minimum number of identical tokens (default: 70)
min_tokens: 70
# A list of names that should be scanned (default: '*.php')
names:
# Default:
- '*.php'
# A list of excluded directories.
e... | 4569065c6a69361d2dfcd6ba31bb6f8f0db49368 | .scrutinizer.yml | .scrutinizer.yml | YAML |
<|file_sep|>original/requirements.txt
certifi==2019.3.9
chardet==3.0.4
click==7.0
Flask==1.0.2
fritzconnection==0.6.5
idna==2.8
itsdangerous==1.1.0
Jinja2==2.10.1
lxml==4.3.3
MarkupSafe==1.1.1
requests==2.21.0
urllib3==1.24.1
Werkzeug==0.15.2
<|file_sep|>current/requirements.txt
certifi==2019.3.9
chardet==3.0.4
click==... | certifi==2019.3.9
chardet==3.0.4
click==7.0
Flask==1.0.2
fritzconnection==0.6.5
idna==2.8
itsdangerous==1.1.0
Jinja2==2.10.1
lxml==4.3.3
MarkupSafe==1.1.1
requests==2.21.0
urllib3==1.24.2
Werkzeug==0.15.2 | <|file_sep|>original/requirements.txt
certifi==2019.3.9
chardet==3.0.4
click==7.0
Flask==1.0.2
fritzconnection==0.6.5
idna==2.8
itsdangerous==1.1.0
Jinja2==2.10.1
lxml==4.3.3
MarkupSafe==1.1.1
requests==2.21.0
urllib3==1.24.1
Werkzeug==0.15.2
<|file_sep|>current/requirements.txt
certifi==2019.3.9
chardet==3.0.4
click==... | a5a5ba62e62104f4552d67c16a32d2357b298f65 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/lib/active_cucumber/cucumparer.rb
class Cucumparer
def initialize clazz, cucumber_table
@clazz = clazz
@cucumber_table = cucumber_table
end
# Returns all entries in the database as a horizontal Mortadella table
def to_horizontal_table
mortadella = Mortadella::H... | class Cucumparer
def initialize clazz, cucumber_table
@clazz = clazz
@cucumber_table = cucumber_table
end
# Returns all entries in the database as a horizontal Mortadella table
def to_horizontal_table
mortadella = Mortadella::Horizontal.new headers: @cucumber_table.headers
@c... | <|file_sep|>original/lib/active_cucumber/cucumparer.rb
class Cucumparer
def initialize clazz, cucumber_table
@clazz = clazz
@cucumber_table = cucumber_table
end
# Returns all entries in the database as a horizontal Mortadella table
def to_horizontal_table
mortadella = Mortadella::H... | a3b63ce6018127ce46389f6e623342a756d91277 | lib/active_cucumber/cucumparer.rb | lib/active_cucumber/cucumparer.rb | Ruby |
<|file_sep|>original/.travis.yml
---
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.7
- 2.2.3
- ruby-head
- jruby
- rbx-2
before_install:
- gem install bundler
script: rake spec
matrix:
allow_failures:
- 1.9.3
- jruby
- rbx-2
<|file_sep|>current/.travis.yml
---
language: ruby
rvm:
- 1.9.3
-... | ---
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.7
- 2.2.3
- ruby-head
- jruby
- rbx-2
before_install:
- gem install bundler
script: rake spec
matrix:
allow_failures:
- rvm: 1.9.3
- rvm: jruby
- rvm: rbx-2 | <|file_sep|>original/.travis.yml
---
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.7
- 2.2.3
- ruby-head
- jruby
- rbx-2
before_install:
- gem install bundler
script: rake spec
matrix:
allow_failures:
- 1.9.3
- jruby
- rbx-2
<|file_sep|>current/.travis.yml
---
language: ruby
rvm:
- 1.9.3
-... | 6452d03afb4cce5cac73d66003229f4fb5f6c149 | .travis.yml | .travis.yml | YAML |
<|file_sep|>README.md.diff
original:
3. `./script/bootstrap`
updated:
3. `script/bootstrap`
<|file_sep|>original/README.md
Download the latest Atom release from [speakeasy](https://speakeasy.githubapp.com/apps/27).
It will automatically update when a new release is available.
## Building
### Requirements
* M... |
Download the latest Atom release from [speakeasy](https://speakeasy.githubapp.com/apps/27).
It will automatically update when a new release is available.
## Building
### Requirements
* Mountain Lion
* Boxen (Obviously Atom won't release with this requirement)
### Installation
1. `gh-setup atom`
2. `cd ~... | <|file_sep|>README.md.diff
original:
3. `./script/bootstrap`
updated:
3. `script/bootstrap`
<|file_sep|>original/README.md
Download the latest Atom release from [speakeasy](https://speakeasy.githubapp.com/apps/27).
It will automatically update when a new release is available.
## Building
### Requirements
* M... | 3938d143a171d4b57ec4c369fad7a5e5cf7375b0 | README.md | README.md | Markdown |
<|file_sep|>original/requirements/dev.txt
isort==4.2.14
flake8==3.3.0
vulture==0.14
<|file_sep|>current/requirements/dev.txt
isort==4.2.14
flake8==3.3.0
vulture==0.14
<|file_sep|>updated/requirements/dev.txt | isort==4.2.15
flake8==3.3.0
vulture==0.14 | <|file_sep|>original/requirements/dev.txt
isort==4.2.14
flake8==3.3.0
vulture==0.14
<|file_sep|>current/requirements/dev.txt
isort==4.2.14
flake8==3.3.0
vulture==0.14
<|file_sep|>updated/requirements/dev.txt
isort==4.2.15
flake8==3.3.0
vulture==0.14 | 0384047d045ccbb6dfb239743b416590c85ff6a6 | requirements/dev.txt | requirements/dev.txt | Text |
<|file_sep|>original/README.md
pyqi: expose your interface
===========================
[](http://ci.qiime.org/job/pyqi/)
pyqi (canonically pronounced *pie chee*) is designed to support wrapping general commands in multiple types of interfaces, including at the c... | pyqi: expose your interface
===========================
[](https://travis-ci.org/bipy/pyqi)
pyqi (canonically pronounced *pie chee*) is designed to support wrapping general commands in multiple types of interfaces, including at the command line, HTML, ... | <|file_sep|>original/README.md
pyqi: expose your interface
===========================
[](http://ci.qiime.org/job/pyqi/)
pyqi (canonically pronounced *pie chee*) is designed to support wrapping general commands in multiple types of interfaces, including at the c... | 976bc08b3f24e52f7c584520091b928e58731ddf | README.md | README.md | Markdown |
<|file_sep|>original/setup.py
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: OpenStack',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: Apache Software License',
... | 'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: OpenStack',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
... | <|file_sep|>original/setup.py
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: OpenStack',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: Apache Software License',
... | e53a1c33dd3ce5258aff384257bd218f14c8870e | setup.py | setup.py | Python |
<|file_sep|>original/addons/webpack/patches/nginx.conf.tpl.patch
--- app/config/nginx/nginx.conf.tpl 2017-09-16 13:06:09.000000000 +0700
+++ new/app/config/nginx/nginx.conf.tpl 2017-09-16 13:06:14.000000000 +0700
@@ -43,6 +43,11 @@
error_log /dev/null;
}
+ # Common bundles
+ location ~* ^/([a-zA-Z0-9]+... | --- app/config/nginx/nginx.conf.tpl 2017-11-29 01:14:27.000000000 +0700
+++ new/app/config/nginx/nginx.conf.tpl 2018-03-30 02:05:47.000000000 +0700
@@ -43,6 +43,12 @@
error_log /dev/null;
}
+ # Common bundles
+ location ~* ^/([a-zA-Z0-9]+)\-[0-9A-Za-z]+\.(js|js.map|css|css.map)$ {
+ add_header 'X-Co... | <|file_sep|>original/addons/webpack/patches/nginx.conf.tpl.patch
--- app/config/nginx/nginx.conf.tpl 2017-09-16 13:06:09.000000000 +0700
+++ new/app/config/nginx/nginx.conf.tpl 2017-09-16 13:06:14.000000000 +0700
@@ -43,6 +43,11 @@
error_log /dev/null;
}
+ # Common bundles
+ location ~* ^/([a-zA-Z0-9]+... | 6df2033f94879366594912644cde5da2e7e20fc9 | addons/webpack/patches/nginx.conf.tpl.patch | addons/webpack/patches/nginx.conf.tpl.patch | Diff |
<|file_sep|>original/Dynatrace-Collector/docker-compose/README.md
# Dynatrace-Collector
The following directory contains a `docker-compose.yml` file for running the [Dynatrace Collector](https://community.dynatrace.com/community/display/DOCDT62/Architecture) Docker Image from the [Dynatrace Collector](https://communit... | # Dynatrace-Collector
The following directory contains a `docker-compose.yml` file for running the [Dynatrace Collector](https://community.dynatrace.com/community/display/DOCDT62/Architecture) Docker Image from the [Docker Hub](https://hub.docker.com/r/dynatrace/collector/) via `docker-compose`.
[ Docker Image from the [Dynatrace Collector](https://communit... | dbf19022268ab5aefd80ad4e3e340e0988d76394 | Dynatrace-Collector/docker-compose/README.md | Dynatrace-Collector/docker-compose/README.md | Markdown |
<|file_sep|>original/public/tests/prop-played.js
({
name: 'prop-played',
description: 'Property "played"',
spec: 'http://dev.w3.org/html5/spec/Overview.html#dom-mediacontroller-played',
assert: function(finish) {
var audio = this.audio = new Audio();
audio.addEventListener('timeupdate', function() {
... | ({
name: 'prop-played',
description: 'Property "played"',
spec: 'http://dev.w3.org/html5/spec/the-iframe-element.html#dom-media-played',
reports: {
firefox: {
desc: 'Patch should get landed soon.',
link: 'https://bugzilla.mozilla.org/show_bug.cgi?id=462959'
}
},
assert: function(finish) ... | <|file_sep|>original/public/tests/prop-played.js
({
name: 'prop-played',
description: 'Property "played"',
spec: 'http://dev.w3.org/html5/spec/Overview.html#dom-mediacontroller-played',
assert: function(finish) {
var audio = this.audio = new Audio();
audio.addEventListener('timeupdate', function() {
... | 80a61c70d45c290778d10733dca1075128949097 | public/tests/prop-played.js | public/tests/prop-played.js | JavaScript |
<|file_sep|>original/requirements.txt
molecule==2.6.0
pytest==3.3.2
python-vagrant==0.5.15
testinfra==1.10.1
tox==2.9.1
<|file_sep|>current/requirements.txt
molecule==2.6.0
pytest==3.3.2
python-vagrant==0.5.15
testinfra==1.10.1
tox==2.9.1
<|file_sep|>updated/requirements.txt | molecule==2.7.0
pytest==3.3.2
python-vagrant==0.5.15
testinfra==1.10.1
tox==2.9.1 | <|file_sep|>original/requirements.txt
molecule==2.6.0
pytest==3.3.2
python-vagrant==0.5.15
testinfra==1.10.1
tox==2.9.1
<|file_sep|>current/requirements.txt
molecule==2.6.0
pytest==3.3.2
python-vagrant==0.5.15
testinfra==1.10.1
tox==2.9.1
<|file_sep|>updated/requirements.txt
molecule==2.7.0
pytest==3.3.2
python-vagrant... | 9d646de81ab400aaa62a3f61e262dee13588407f | requirements.txt | requirements.txt | Text |
<|file_sep|>original/dts/bindings/i2c/intel,qmsi-i2c.yaml
<|file_sep|>current/dts/bindings/i2c/intel,qmsi-i2c.yaml
<|file_sep|>updated/dts/bindings/i2c/intel,qmsi-i2c.yaml | #
# Copyright (c) 2018 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
---
title: Intel QMSI i2c
id: intel,qmsi-i2c
version: 0.1
description: >
This binding gives a base representation of the Intel QMSI i2c
inherits:
!include i2c.yaml
properties:
compatible:
type: string
category:... | <|file_sep|>original/dts/bindings/i2c/intel,qmsi-i2c.yaml
<|file_sep|>current/dts/bindings/i2c/intel,qmsi-i2c.yaml
<|file_sep|>updated/dts/bindings/i2c/intel,qmsi-i2c.yaml
#
# Copyright (c) 2018 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
---
title: Intel QMSI i2c
id: intel,qmsi-i2c
version: 0.1
desc... | f98382a9018d94a1f9c3cd6827254e80009fdc90 | dts/bindings/i2c/intel,qmsi-i2c.yaml | dts/bindings/i2c/intel,qmsi-i2c.yaml | YAML |
<|file_sep|>original/_posts/2017-02-26-Lesson01-Neurons.md
$$
2+2
$$
The network turns $$[i_0,i_1,\cdots,i_n]$$ into $$[o_0,o_1,\cdots,o_n]$$!
# Lesson 01 - Neurons
## AKA - "What the frickity frackity hickity heckity is a neuron?"
... | <|file_sep|>original/_posts/2017-02-26-Lesson01-Neurons.md
$$
2+2
$$
The network turns $$[i_0,i_1,\cdots,i_n]$$ into $$[o_0,o_1,\cdots,o_n]$$!
# Lesson 01 - Neurons
## AKA - "What the frickity frackity hickity heckity is a neuron?"
![Earnest says "Yeah, my Neural Network uses a 3 dimensional input neuron vector, so ... | d74e457d337e4694e40a5eab6b3e2182e76685b5 | _posts/2017-02-26-Lesson01-Neurons.md | _posts/2017-02-26-Lesson01-Neurons.md | Markdown |
<|file_sep|>original/source/manual/manage-sign-on-accounts.html.md
<|file_sep|>current/source/manual/manage-sign-on-accounts.html.md
<|file_sep|>updated/source/manual/manage-sign-on-accounts.html.md | ---
title: Manage sign on accounts
section: Support
layout: manual_layout
parent: "/manual.html"
---
# Manage signon accounts
## Accounts in different environments
User accounts from production are synced to staging every morning, so any
changes made in production will be reflected in staging the next day.
User acc... | <|file_sep|>original/source/manual/manage-sign-on-accounts.html.md
<|file_sep|>current/source/manual/manage-sign-on-accounts.html.md
<|file_sep|>updated/source/manual/manage-sign-on-accounts.html.md
---
title: Manage sign on accounts
section: Support
layout: manual_layout
parent: "/manual.html"
---
# Manage signon a... | cc383d3556862150d29cbee61f648550cd2754a4 | source/manual/manage-sign-on-accounts.html.md | source/manual/manage-sign-on-accounts.html.md | Markdown |
<|file_sep|>core/app/views/refinery/admin/_javascripts.html.erb.diff
original:
updated:
<%= javascript_include_tag 'refinery/application' -%>
<|file_sep|>original/core/app/views/refinery/admin/_javascripts.html.erb
<script type="text/javascript" >
var refinery = window.refinery || {};
refinery.current_admin_locale... | <script type="text/javascript" >
var refinery = window.refinery || {};
refinery.current_admin_locale = '<%= current_admin_locale %>';
</script>
<%= javascript_include_tag 'admin' -%>
<%= javascript_include_tag 'refinery/refinery' -%>
<%= javascript_include_tag 'refinery/application' -%>
<% visual_editor_javascripts... | <|file_sep|>core/app/views/refinery/admin/_javascripts.html.erb.diff
original:
updated:
<%= javascript_include_tag 'refinery/application' -%>
<|file_sep|>original/core/app/views/refinery/admin/_javascripts.html.erb
<script type="text/javascript" >
var refinery = window.refinery || {};
refinery.current_admin_locale... | 670ca71ac835e9894a9a9590a9c2dd39528adc35 | core/app/views/refinery/admin/_javascripts.html.erb | core/app/views/refinery/admin/_javascripts.html.erb | HTML+ERB |
<|file_sep|>original/auditcare/templates/auditcare/index.html
{% extends "layout.html" %}
{% load i18n %}
{% block title %}
{% trans "Audit Viewer" %}
{% endblock %}
{% block content %}
<div class="module">
<div class="span-6 last">
<h2>Website Usage</h2>
</div>
<div class="spa... | {% extends base_template %}
{% load i18n %}
{% block title %}
{% trans "Audit Viewer" %}
{% endblock %}
{% block content %}
<div class="module">
<div class="span-6 last">
<h2>Website Usage</h2>
</div>
<div class="span-24 last">
<table>
<thead>
... | <|file_sep|>original/auditcare/templates/auditcare/index.html
{% extends "layout.html" %}
{% load i18n %}
{% block title %}
{% trans "Audit Viewer" %}
{% endblock %}
{% block content %}
<div class="module">
<div class="span-6 last">
<h2>Website Usage</h2>
</div>
<div class="spa... | 7f52b761f6eabe7530bb943e3236b45f9c416ca0 | auditcare/templates/auditcare/index.html | auditcare/templates/auditcare/index.html | HTML |
<|file_sep|>original/metadata/com.alaskalinuxuser.criticalvelocity.txt
So begins your journey back to the surface! Watch out for barriers and obstacles
in this open source side scrolling arcade style game! Once you reach 25000
points, you will find the exit to the surface and save the lives of your crew,
but after pas... |
So begins your journey back to the surface! Watch out for barriers and obstacles
in this open source side scrolling arcade style game! Once you reach 25000
points, you will find the exit to the surface and save the lives of your crew,
but after passing each obstacle, your vessel picks up speed, making the journey
more... | <|file_sep|>original/metadata/com.alaskalinuxuser.criticalvelocity.txt
So begins your journey back to the surface! Watch out for barriers and obstacles
in this open source side scrolling arcade style game! Once you reach 25000
points, you will find the exit to the surface and save the lives of your crew,
but after pas... | 67c8e2fefc60e6a45356c0a6c91fa79e9b1878aa | metadata/com.alaskalinuxuser.criticalvelocity.txt | metadata/com.alaskalinuxuser.criticalvelocity.txt | Text |
<|file_sep|>original/frontend/projects/admin/e2e/src/login/admin-login.e2e-spec.ts
expect(await page.getInvalidCredentialsAlert().isPresent()).toBeTruthy();
});
});
describe('with valid credentials', () => {
it('should login and logout the admin user', async () => {
await usernameInput.sendKe... |
describe('with valid credentials', () => {
it('should login and logout the admin user', async () => {
await usernameInput.sendKeys(page.getUsername());
await passwordInput.sendKeys(page.getPassword());
await page.attemptLoginAdmin();
expect(await page.getCurrentUrl()).toBe('/');
... | <|file_sep|>original/frontend/projects/admin/e2e/src/login/admin-login.e2e-spec.ts
expect(await page.getInvalidCredentialsAlert().isPresent()).toBeTruthy();
});
});
describe('with valid credentials', () => {
it('should login and logout the admin user', async () => {
await usernameInput.sendKe... | 7851a3c0ada3a7034ca9988bcc2ef734b068d3ef | frontend/projects/admin/e2e/src/login/admin-login.e2e-spec.ts | frontend/projects/admin/e2e/src/login/admin-login.e2e-spec.ts | TypeScript |
<|file_sep|>original/Formula/jiratools.rb
require 'formula'
class Jiratools < Formula
desc "Collection of command-line tool(s) for Jira."
homepage "https://github.com/lottadot/jiratools"
url "https://github.com/lottadot/jiratools/archive/0.3.2.tar.gz"
version "0.3.3"
# shasum -a 256
sha256 "e0d9a9a347386b4... | require 'formula'
class Jiratools < Formula
desc "Collection of command-line tool(s) for Jira."
homepage "https://github.com/lottadot/jiratools"
url "https://github.com/lottadot/jiratools/archive/0.3.3.tar.gz"
version "0.3.3"
# shasum -a 256
sha256 "e0d9a9a347386b4c1861d37556d532e9fa10c2a82bf4e1858408331f0... | <|file_sep|>original/Formula/jiratools.rb
require 'formula'
class Jiratools < Formula
desc "Collection of command-line tool(s) for Jira."
homepage "https://github.com/lottadot/jiratools"
url "https://github.com/lottadot/jiratools/archive/0.3.2.tar.gz"
version "0.3.3"
# shasum -a 256
sha256 "e0d9a9a347386b4... | e27895e83ac5f0827d6e89d640cafe6ca295363c | Formula/jiratools.rb | Formula/jiratools.rb | Ruby |
<|file_sep|>original/tests/people_test.py
assert fx_teams.clamp.members == {
fx_people.clamp_member_1,
fx_people.clamp_member_2,
fx_people.clamp_member_3,
fx_people.clamp_member_4
}
def test_person_has_awards(fx_people, fx_awards):
assert fx_people.peter_jackson.awards == {... |
def test_team_has_members(fx_people, fx_teams):
assert fx_teams.clamp.members == {
fx_people.clamp_member_1,
fx_people.clamp_member_2,
fx_people.clamp_member_3,
fx_people.clamp_member_4
}
def test_person_has_awards(fx_people, fx_awards):
assert fx_people.peter_jackson.awar... | <|file_sep|>original/tests/people_test.py
assert fx_teams.clamp.members == {
fx_people.clamp_member_1,
fx_people.clamp_member_2,
fx_people.clamp_member_3,
fx_people.clamp_member_4
}
def test_person_has_awards(fx_people, fx_awards):
assert fx_people.peter_jackson.awards == {... | 358bdb98ba4a17c75773c7b09853580f5e7dd4e7 | tests/people_test.py | tests/people_test.py | Python |
<|file_sep|>src/test/scala/ignition/core/cache/ExpiringMultipleLevelCache.scala.diff
original:
updated:
import org.scalatest.concurrent.ScalaFutures
<|file_sep|>src/test/scala/ignition/core/cache/ExpiringMultipleLevelCache.scala.diff
original:
class ExpiringMultipleLevelCacheSpec extends FlatSpec with Matchers {
updat... | case class Data(s: String)
implicit val scheduler = ActorSystem().scheduler
"ExpiringMultipleLevelCache" should "calculate a value on cache miss and return it" in {
val local = new ExpiringLruLocalCache[TimestampedValue[Data]](100)
val cache = ExpiringMultiLevelCache[Data](1.minute, Option(local))
Aw... | <|file_sep|>src/test/scala/ignition/core/cache/ExpiringMultipleLevelCache.scala.diff
original:
updated:
import org.scalatest.concurrent.ScalaFutures
<|file_sep|>src/test/scala/ignition/core/cache/ExpiringMultipleLevelCache.scala.diff
original:
class ExpiringMultipleLevelCacheSpec extends FlatSpec with Matchers {
updat... | c628ed529e796cafc2ca981fd8e7183d3646e3b1 | src/test/scala/ignition/core/cache/ExpiringMultipleLevelCache.scala | src/test/scala/ignition/core/cache/ExpiringMultipleLevelCache.scala | Scala |
<|file_sep|>original/.gitlab-ci.yml
test:
image: $CI_REGISTRY/backend/docker/images/php:8.1
stage: test
dependencies:
- build
before_script:
- phpenmod pcov
script:
- SYMFONY_DEPRECATIONS_HELPER=disabled vendor/phpunit/phpunit/phpunit -d memory_limit=512M --coverage-text --colors=never --co... |
test:
image: $CI_REGISTRY/backend/docker/images/php:8.1
stage: test
dependencies:
- build
before_script:
- phpenmod pcov
script:
- SYMFONY_DEPRECATIONS_HELPER=disabled vendor/phpunit/phpunit/phpunit -d memory_limit=512M --coverage-text --colors=never --coverage-html coverage
coverage: '/^... | <|file_sep|>original/.gitlab-ci.yml
test:
image: $CI_REGISTRY/backend/docker/images/php:8.1
stage: test
dependencies:
- build
before_script:
- phpenmod pcov
script:
- SYMFONY_DEPRECATIONS_HELPER=disabled vendor/phpunit/phpunit/phpunit -d memory_limit=512M --coverage-text --colors=never --co... | 78c31181d82b7d33e9a23836ac49f2067a5a5faa | .gitlab-ci.yml | .gitlab-ci.yml | YAML |
<|file_sep|>original/test/Headers/arm-neon-header.c
// RUN: %clang_cc1 -triple thumbv7-apple-darwin10 -target-cpu cortex-a8 -fsyntax-only -Wvector-conversions -verify %s
// RUN: %clang_cc1 -x c++ -triple thumbv7-apple-darwin10 -target-cpu cortex-a8 -fsyntax-only -Wvector-conversions -verify %s
#include <arm_neon.h>
/... | // RUN: %clang_cc1 -triple thumbv7-apple-darwin10 -target-cpu cortex-a8 -fsyntax-only -Wvector-conversions -verify %s
// RUN: %clang_cc1 -triple thumbv7-apple-darwin10 -target-cpu cortex-a8 -fsyntax-only -fno-lax-vector-conversions -verify %s
// RUN: %clang_cc1 -x c++ -triple thumbv7-apple-darwin10 -target-cpu cortex-a... | <|file_sep|>original/test/Headers/arm-neon-header.c
// RUN: %clang_cc1 -triple thumbv7-apple-darwin10 -target-cpu cortex-a8 -fsyntax-only -Wvector-conversions -verify %s
// RUN: %clang_cc1 -x c++ -triple thumbv7-apple-darwin10 -target-cpu cortex-a8 -fsyntax-only -Wvector-conversions -verify %s
#include <arm_neon.h>
/... | 9d0b2b728b9a431546b11252793844bf7506ec84 | test/Headers/arm-neon-header.c | test/Headers/arm-neon-header.c | C |
<|file_sep|>original/requirements.txt
aioamqp==0.9.0
aiobotocore==0.3.1
aiohttp==2.0.7
async-timeout==1.2.0
botocore==1.5.43
chardet==3.0.2
docutils==0.13.1
jmespath==0.9.2
multidict==2.1.4
python-dateutil==2.6.0
six==1.10.0
ujson==1.35
uvloop==0.8.0
yarl==0.10.0
pytest-cov==2.4.0
pytest-pep8==1.0.6
codecov==2.0.5
<|fi... | aioamqp==0.9.0
aiobotocore==0.3.1
aiohttp==2.0.7
async-timeout==1.2.0
botocore==1.5.43
chardet==3.0.2
docutils==0.13.1
jmespath==0.9.2
multidict==2.1.4
python-dateutil==2.6.0
six==1.10.0
ujson==1.35
uvloop==0.8.0
yarl==0.10.0
pytest-cov==2.4.0
pytest-pep8==1.0.6
codecov==2.0.7 | <|file_sep|>original/requirements.txt
aioamqp==0.9.0
aiobotocore==0.3.1
aiohttp==2.0.7
async-timeout==1.2.0
botocore==1.5.43
chardet==3.0.2
docutils==0.13.1
jmespath==0.9.2
multidict==2.1.4
python-dateutil==2.6.0
six==1.10.0
ujson==1.35
uvloop==0.8.0
yarl==0.10.0
pytest-cov==2.4.0
pytest-pep8==1.0.6
codecov==2.0.5
<|fi... | 198cd1840e0ea1eda1ad459f939684108fa70a49 | requirements.txt | requirements.txt | Text |
<|file_sep|>original/datasets/nl/curves/weather/1987/weather_properties.csv
<|file_sep|>current/datasets/nl/curves/weather/1987/weather_properties.csv
<|file_sep|>updated/datasets/nl/curves/weather/1987/weather_properties.csv | key,value,unit
flh_of_energy_power_wind_turbine_coastal,2350,hours
flh_of_energy_power_wind_turbine_offshore,3300,hours
flh_of_energy_power_wind_turbine_inland,1720,hours
flh_of_energy_power_solar_pv_solar_radiation,738.370752,hours
average_difference_in_air_temperature,-2.026849315,degC | <|file_sep|>original/datasets/nl/curves/weather/1987/weather_properties.csv
<|file_sep|>current/datasets/nl/curves/weather/1987/weather_properties.csv
<|file_sep|>updated/datasets/nl/curves/weather/1987/weather_properties.csv
key,value,unit
flh_of_energy_power_wind_turbine_coastal,2350,hours
flh_of_energy_power_wind_... | dd2394caadbed0c32c392899fc83466148713085 | datasets/nl/curves/weather/1987/weather_properties.csv | datasets/nl/curves/weather/1987/weather_properties.csv | CSV |
<|file_sep|>original/service_update.go
if options.EncodedRegistryAuth != "" {
headers = map[string][]string{
"X-Registry-Auth": {options.EncodedRegistryAuth},
}
}
if options.RegistryAuthFrom != "" {
query.Set("registryAuthFrom", options.RegistryAuthFrom)
}
query.Set("version", strconv.FormatUint(version... | if options.EncodedRegistryAuth != "" {
headers = map[string][]string{
"X-Registry-Auth": {options.EncodedRegistryAuth},
}
}
if options.RegistryAuthFrom != "" {
query.Set("registryAuthFrom", options.RegistryAuthFrom)
}
if options.Rollback != "" {
query.Set("rollback", options.Rollback)
}
query.Set("... | <|file_sep|>original/service_update.go
if options.EncodedRegistryAuth != "" {
headers = map[string][]string{
"X-Registry-Auth": {options.EncodedRegistryAuth},
}
}
if options.RegistryAuthFrom != "" {
query.Set("registryAuthFrom", options.RegistryAuthFrom)
}
query.Set("version", strconv.FormatUint(version... | eafb5565c9cb876fb2de19c4d02bf4462f9d6310 | service_update.go | service_update.go | Go |
<|file_sep|>original/admin/server/validate.coffee
utils = require('lib/utils')
exports.validate_doc_update = (newDoc, oldDoc, userCtx) ->
types = ['essay','scene','video','profile']
access = if '_admin' in userCtx.roles or 'admin' in userCtx.roles or 'manager' in userCtx.roles then true else false
if not ac... | utils = require('lib/utils')
exports.validate_doc_update = (newDoc, oldDoc, userCtx) ->
types = ['essay','scene','video','profile']
access = if '_admin' in userCtx.roles or '_creator' in userCtx.roles or 'admin' in userCtx.roles or 'manager' in userCtx.roles then true else false
if not access
throw unau... | <|file_sep|>original/admin/server/validate.coffee
utils = require('lib/utils')
exports.validate_doc_update = (newDoc, oldDoc, userCtx) ->
types = ['essay','scene','video','profile']
access = if '_admin' in userCtx.roles or 'admin' in userCtx.roles or 'manager' in userCtx.roles then true else false
if not ac... | c4629f99d76b21ff3f68d36ff856443642b09343 | admin/server/validate.coffee | admin/server/validate.coffee | CoffeeScript |
<|file_sep|>original/{{cookiecutter.repo_name}}/requirements/base.txt
Django==1.8.4
django-environ==0.3.0
psycopg2==2.6.1
whitenoise==2.0.4
<|file_sep|>current/{{cookiecutter.repo_name}}/requirements/base.txt
Django==1.8.4
django-environ==0.3.0
psycopg2==2.6.1
whitenoise==2.0.4
<|file_sep|>updated/{{cookiecutter.repo_n... | Django==1.8.4
django-environ==0.4.0
psycopg2==2.6.1
whitenoise==2.0.4 | <|file_sep|>original/{{cookiecutter.repo_name}}/requirements/base.txt
Django==1.8.4
django-environ==0.3.0
psycopg2==2.6.1
whitenoise==2.0.4
<|file_sep|>current/{{cookiecutter.repo_name}}/requirements/base.txt
Django==1.8.4
django-environ==0.3.0
psycopg2==2.6.1
whitenoise==2.0.4
<|file_sep|>updated/{{cookiecutter.repo_n... | 92b974c78598018835f9a9471ea227cfd21c4f0c | {{cookiecutter.repo_name}}/requirements/base.txt | {{cookiecutter.repo_name}}/requirements/base.txt | Text |
<|file_sep|>original/hnakamur.zsh/defaults/main.yml
- git_completion.zsh
- git-prompt.sh
- prompt.zsh
zsh_rc_templates:
- history.zsh
zsh_path_directories:
- "$HOME/bin"
- "$HOME/go/bin"
- /usr/local/ruby/bin
- /usr/local/node/bin
- /usr/local/bin
zsh_envs:
- name: GOPATH
value: "{{ go_gopath }}"
zsh_my_bin_files:
- ... | - git_completion.zsh
- git-prompt.sh
- prompt.zsh
zsh_rc_templates:
- history.zsh
zsh_path_directories:
- "$HOME/bin"
- "$HOME/go/bin"
- /usr/local/ruby/bin
- /usr/local/node/bin
- /usr/local/sbin
- /usr/local/bin
zsh_envs:
- name: GOPATH
value: "{{ go_gopath }}"
zsh_my_bin_files:
- modipath
zsh_additional_config_fil... | <|file_sep|>original/hnakamur.zsh/defaults/main.yml
- git_completion.zsh
- git-prompt.sh
- prompt.zsh
zsh_rc_templates:
- history.zsh
zsh_path_directories:
- "$HOME/bin"
- "$HOME/go/bin"
- /usr/local/ruby/bin
- /usr/local/node/bin
- /usr/local/bin
zsh_envs:
- name: GOPATH
value: "{{ go_gopath }}"
zsh_my_bin_files:
- ... | 2a7a53813e1c05057e9953f5005f00a4c4ad7a4d | hnakamur.zsh/defaults/main.yml | hnakamur.zsh/defaults/main.yml | YAML |
<|file_sep|>README.md.diff
original:
# HPSTR Jekyll Theme
updated:
# mayra-cabrera.github.io
<|file_sep|>README.md.diff
original:
They say three times the charm, so here is another free responsive Jekyll theme for you. I've learned a ton since open sourcing [my first two themes](https://mademistakes.com/work/jekyll-th... | # mayra-cabrera.github.io
Hello I'm Mayra,
I like programming and cats.
And my favorite emojis are:
:cat: :bowtie: :ok_woman: :shipit:
Say hi [@mayra-cabrera](https://twitter.com/may_cabrera) | <|file_sep|>README.md.diff
original:
# HPSTR Jekyll Theme
updated:
# mayra-cabrera.github.io
<|file_sep|>README.md.diff
original:
They say three times the charm, so here is another free responsive Jekyll theme for you. I've learned a ton since open sourcing [my first two themes](https://mademistakes.com/work/jekyll-th... | 9325cfa6fe3ad5f7fb6362c5ad645e36f8b05f68 | README.md | README.md | Markdown |
<|file_sep|>original/src/app/units/states/tasks/viewer/directives/task-sheet-view/task-sheet-view.coffee
.directive('taskSheetView', ->
restrict: 'E'
templateUrl: 'units/states/tasks/viewer/directives/task-sheet-view/task-sheet-view.tpl.html'
scope:
task: '='
unit: '='
controller: ($scope, $timeout, Tas... |
.directive('taskSheetView', ->
restrict: 'E'
templateUrl: 'units/states/tasks/viewer/directives/task-sheet-view/task-sheet-view.tpl.html'
scope:
task: '='
unit: '='
controller: ($scope, $timeout, TaskFeedback, taskService, alertService, listenerService, Task, Unit) ->
# Cleanup
listeners = list... | <|file_sep|>original/src/app/units/states/tasks/viewer/directives/task-sheet-view/task-sheet-view.coffee
.directive('taskSheetView', ->
restrict: 'E'
templateUrl: 'units/states/tasks/viewer/directives/task-sheet-view/task-sheet-view.tpl.html'
scope:
task: '='
unit: '='
controller: ($scope, $timeout, Tas... | 3bc74eee4e40bc5881f5f51300874ee187a28845 | src/app/units/states/tasks/viewer/directives/task-sheet-view/task-sheet-view.coffee | src/app/units/states/tasks/viewer/directives/task-sheet-view/task-sheet-view.coffee | CoffeeScript |
<|file_sep|>original/lib/Strategy/DBStrategy/Save/CollisionCheckTemporaryTable.coffee
_ = require "underscore"
Promise = require "bluebird"
TemporaryTable = require "./TemporaryTable"
class CollisionCheckTemporaryTable extends TemporaryTable
insert: (externalObject) ->
@checkIfExists externalObject
.then (e... | _ = require "underscore"
Promise = require "bluebird"
TemporaryTable = require "./TemporaryTable"
class CollisionCheckTemporaryTable extends TemporaryTable
insert: (externalObject) ->
@checkIfExists externalObject
.then (exists) ->
if not exists
super(externalObject)
else
console... | <|file_sep|>original/lib/Strategy/DBStrategy/Save/CollisionCheckTemporaryTable.coffee
_ = require "underscore"
Promise = require "bluebird"
TemporaryTable = require "./TemporaryTable"
class CollisionCheckTemporaryTable extends TemporaryTable
insert: (externalObject) ->
@checkIfExists externalObject
.then (e... | 70b8dfd2ed53909e9e618884697ec3d9416b3bc9 | lib/Strategy/DBStrategy/Save/CollisionCheckTemporaryTable.coffee | lib/Strategy/DBStrategy/Save/CollisionCheckTemporaryTable.coffee | CoffeeScript |
<|file_sep|>original/lib/querylicious/query_reducer.rb
# frozen_string_literal: true
require 'querylicious/types'
require 'querylicious/parser'
require 'querylicious/transform'
require 'querylicious/matcher'
require 'dry-initializer'
module Querylicious
# Reducer
class QueryReducer
extend Dry::Initializer
... | # frozen_string_literal: true
require 'querylicious/types'
require 'querylicious/parser'
require 'querylicious/transform'
require 'querylicious/matcher'
require 'dry-initializer'
module Querylicious
# Query Reducer for processing parsed query
class QueryReducer
extend Dry::Initializer
param :reducer, Ty... | <|file_sep|>original/lib/querylicious/query_reducer.rb
# frozen_string_literal: true
require 'querylicious/types'
require 'querylicious/parser'
require 'querylicious/transform'
require 'querylicious/matcher'
require 'dry-initializer'
module Querylicious
# Reducer
class QueryReducer
extend Dry::Initializer
... | 102530fc1ff34d428f64d62e62d506596705317b | lib/querylicious/query_reducer.rb | lib/querylicious/query_reducer.rb | Ruby |
<|file_sep|>build.js.diff
original:
updated:
const options = {
main_scss: 'src/scss/main.scss',
output_css: 'dist/css/meshki.css',
plugins: ['extra-button-colors', 'rtl'],
}
<|file_sep|>build.js.diff
original:
updated:
console.log('=> "dist" folder was created successfully!'.green)
<|file_sep|>original... | fs.mkdirSync('dist/fonts/')
fs.mkdirSync('dist/css/')
fs.mkdirSync('dist/js/')
console.log('=> "dist" folder was created successfully!'.green)
} else {
console.log('Cleaning previously compiled files...'.yellow)
remove_dir('dist/')
create_dist()
}
}
function sassify_meshki() {
console... | <|file_sep|>build.js.diff
original:
updated:
const options = {
main_scss: 'src/scss/main.scss',
output_css: 'dist/css/meshki.css',
plugins: ['extra-button-colors', 'rtl'],
}
<|file_sep|>build.js.diff
original:
updated:
console.log('=> "dist" folder was created successfully!'.green)
<|file_sep|>original... | 06a46bdb985bfd8c8eac9132c98a03c5719144b1 | build.js | build.js | JavaScript |
<|file_sep|>original/html/templates/initiativeprompt.html
<div class='roll-initiative' data-bind="focusOnRender: InputSelector">
<p>Roll Initiative</p>
<ul class="playercharacters" data-bind="foreach: PlayerCharacters">
<li>
<span data-bind="text: Prompt, css: Css"></span>
<input... | <div class='roll-initiative' data-bind="focusOnRender: InputSelector">
<h4>Roll Initiative</h4>
<ul class="playercharacters" data-bind="foreach: PlayerCharacters">
<li>
<span data-bind="text: Prompt, css: Css"></span>
<input class='response' type='number' data-bind='attr: {"id": ... | <|file_sep|>original/html/templates/initiativeprompt.html
<div class='roll-initiative' data-bind="focusOnRender: InputSelector">
<p>Roll Initiative</p>
<ul class="playercharacters" data-bind="foreach: PlayerCharacters">
<li>
<span data-bind="text: Prompt, css: Css"></span>
<input... | 90b9960de8c2a40b0ffc6025a25b5a168fe2bccd | html/templates/initiativeprompt.html | html/templates/initiativeprompt.html | HTML |
<|file_sep|>original/roles/thorn-01.rb
name "thorn-01"
description "Master role applied to thorn-01"
default_attributes(
:networking => {
:interfaces => {
:internal_ipv4 => {
:interface => "eth0",
:role => :internal,
:family => :inet,
:address => "146.179.159.165"
}
... | default_attributes(
:networking => {
:interfaces => {
:internal_ipv4 => {
:interface => "eth0",
:role => :internal,
:family => :inet,
:address => "146.179.159.165"
}
}
},
:web => {
:readonly_database_host => "db-slave"
}
)
run_list(
"role[ic]",
"role[... | <|file_sep|>original/roles/thorn-01.rb
name "thorn-01"
description "Master role applied to thorn-01"
default_attributes(
:networking => {
:interfaces => {
:internal_ipv4 => {
:interface => "eth0",
:role => :internal,
:family => :inet,
:address => "146.179.159.165"
}
... | 104e0e172a9c39875e9e85e687c6fd2e8610a75a | roles/thorn-01.rb | roles/thorn-01.rb | Ruby |
<|file_sep|>README.md.diff
original:
updated:
### Content
<|file_sep|>README.md.diff
original:
### Instructions
updated:
### How-to-use Instructions
<|file_sep|>README.md.diff
original:
updated:
### Cautions
<|file_sep|>README.md.diff
original:
More information about the electrification tool are available at [OnS... | # OnSSET Jupyter notebook User Interface
### Content
This repository contains a jupyter notebook which allow for a quick, screening electrification analysis using a simplified version of OnSSET. Sample files of Malawi are available for testing. Note, that both code and input files are only indicative and are only use... | <|file_sep|>README.md.diff
original:
updated:
### Content
<|file_sep|>README.md.diff
original:
### Instructions
updated:
### How-to-use Instructions
<|file_sep|>README.md.diff
original:
updated:
### Cautions
<|file_sep|>README.md.diff
original:
More information about the electrification tool are available at [OnS... | aaa2dad65aacdd27a3dd286dceefe5b56363a405 | README.md | README.md | Markdown |
<|file_sep|>original/wrappers/python/setup.py
from distutils.core import setup
setup(
name='python3-indy',
version='1.6.1',
packages=['indy'],
url='https://github.com/hyperledger/indy-sdk',
license='MIT/Apache-2.0',
author='Vyacheslav Gudkov',
author_email='vyacheslav.gudkov@dsr-company.com... | from distutils.core import setup
setup(
name='python3-indy',
version='1.6.1',
packages=['indy'],
url='https://github.com/hyperledger/indy-sdk',
license='MIT/Apache-2.0',
author='Vyacheslav Gudkov',
author_email='vyacheslav.gudkov@dsr-company.com',
description='This is the official SDK f... | <|file_sep|>original/wrappers/python/setup.py
from distutils.core import setup
setup(
name='python3-indy',
version='1.6.1',
packages=['indy'],
url='https://github.com/hyperledger/indy-sdk',
license='MIT/Apache-2.0',
author='Vyacheslav Gudkov',
author_email='vyacheslav.gudkov@dsr-company.com... | de4f395d75d7307a79d8db44399a6feaa0118c0a | wrappers/python/setup.py | wrappers/python/setup.py | Python |
<|file_sep|>src/templates/bundle-template.scss.diff
original:
updated:
@import '../../../src/sass/_Fabric.Common.scss';
<|file_sep|>original/src/templates/bundle-template.scss
// --------------------------------------------------
// SCSS template for building a bundle of Fabric and Fabric Components CSS.
<%
var rel... | // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information.
//
// Office UI Fabric
// --------------------------------------------------
// SCSS template for building a bundle of Fabric and Fabric Components CSS.
@import '../../../src/sass/... | <|file_sep|>src/templates/bundle-template.scss.diff
original:
updated:
@import '../../../src/sass/_Fabric.Common.scss';
<|file_sep|>original/src/templates/bundle-template.scss
// --------------------------------------------------
// SCSS template for building a bundle of Fabric and Fabric Components CSS.
<%
var rel... | a21d82c32f12a93e8a0063e34af66539a0e07134 | src/templates/bundle-template.scss | src/templates/bundle-template.scss | SCSS |
<|file_sep|>original/rcmet/src/main/ui/test/unit/services/RegionSelectParamsTest.js
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
**/
'use strict';
describe('OCW Services', function() {
beforeEach(module('ocw.services'))... |
describe('OCW Services', function() {
beforeEach(module('ocw.services'));
describe('RegionSelectParams', function() {
it('should initialize the regionSelectParams service', function() {
inject(function(regionSelectParams) {
expect(regionSelectParams).not.toEqual(null);
});
});
it('should provide ... | <|file_sep|>original/rcmet/src/main/ui/test/unit/services/RegionSelectParamsTest.js
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
**/
'use strict';
describe('OCW Services', function() {
beforeEach(module('ocw.services'))... | 4f2ecb38e7eed9706dd4709915a532bdb5a943f2 | rcmet/src/main/ui/test/unit/services/RegionSelectParamsTest.js | rcmet/src/main/ui/test/unit/services/RegionSelectParamsTest.js | JavaScript |
<|file_sep|>original/stories/serializers.py
class StoryLineSerializer(serializers.ModelSerializer):
class Meta:
model = StoryLine
fields = ('id', 'content', 'posted_on')
class StorySerializer(serializers.ModelSerializer):
title = serializers.CharField(min_length=3, max_length=100)
author ... |
class StoryLineSerializer(serializers.ModelSerializer):
class Meta:
model = StoryLine
fields = ('id', 'content', 'posted_on')
class StorySerializer(serializers.ModelSerializer):
title = serializers.CharField(min_length=3, max_length=100)
author = AuthorSerializer(read_only=True)
story... | <|file_sep|>original/stories/serializers.py
class StoryLineSerializer(serializers.ModelSerializer):
class Meta:
model = StoryLine
fields = ('id', 'content', 'posted_on')
class StorySerializer(serializers.ModelSerializer):
title = serializers.CharField(min_length=3, max_length=100)
author ... | d47e3b7216effab8aa067d0a214b071ca77393fd | stories/serializers.py | stories/serializers.py | Python |
<|file_sep|>original/config/initializers/sentry.rb
# frozen_string_literal: true
Raven.configure do |config|
config.dsn = ENV['SENTRY_DSN']
config.environments = %w[production staging]
config.sanitize_fields =
Rails.application.config.filter_parameters.map(&:to_s)
end
<|file_sep|>current/config/initializers... | # frozen_string_literal: true
Raven.configure do |config|
config.dsn = ENV['SENTRY_DSN']
config.environments = %w[production staging]
config.sanitize_fields =
Rails.application.config.filter_parameters.map(&:to_s)
config.processors -= [Raven::Processor::PostData]
end | <|file_sep|>original/config/initializers/sentry.rb
# frozen_string_literal: true
Raven.configure do |config|
config.dsn = ENV['SENTRY_DSN']
config.environments = %w[production staging]
config.sanitize_fields =
Rails.application.config.filter_parameters.map(&:to_s)
end
<|file_sep|>current/config/initializers... | fb53aabf85745755caa72fb6d08eaae1e7c20926 | config/initializers/sentry.rb | config/initializers/sentry.rb | Ruby |
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- '12'
- '10'
- '8'
after_success:
- './node_modules/.bin/nyc report --reporter=text-lcov > coverage.lcov && ./node_modules/.bin/codecov'
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- '12'
- '10'
- '8'
after_success:
- './node_mo... | language: node_js
node_js:
- '14'
- '12'
- '10'
- '8'
after_success:
- './node_modules/.bin/nyc report --reporter=text-lcov > coverage.lcov && ./node_modules/.bin/codecov' | <|file_sep|>original/.travis.yml
language: node_js
node_js:
- '12'
- '10'
- '8'
after_success:
- './node_modules/.bin/nyc report --reporter=text-lcov > coverage.lcov && ./node_modules/.bin/codecov'
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- '12'
- '10'
- '8'
after_success:
- './node_mo... | 7b0dcad0007ba02c8c28257b334d98709227b3c4 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/src/index.css
body {
margin: 0;
padding: 0;
font-family: sans-serif;
}
<|file_sep|>current/src/index.css
body {
margin: 0;
padding: 0;
font-family: sans-serif;
}
<|file_sep|>updated/src/index.css | body {
margin: 0;
padding: 0;
padding-top: 5%;
font-family: sans-serif;
} | <|file_sep|>original/src/index.css
body {
margin: 0;
padding: 0;
font-family: sans-serif;
}
<|file_sep|>current/src/index.css
body {
margin: 0;
padding: 0;
font-family: sans-serif;
}
<|file_sep|>updated/src/index.css
body {
margin: 0;
padding: 0;
padding-top: 5%;
font-family: san... | 0929219415e98d5f6351a8c3fcfbe581b045d36b | src/index.css | src/index.css | CSS |
<|file_sep|>original/docs/sass-and-others.md
<|file_sep|>current/docs/sass-and-others.md
<|file_sep|>updated/docs/sass-and-others.md | # Sass & Others
You may intend to use `sass-loader` or `less-loader` for the CSS section in `.vue` single file component, well, it's easy:
## Install the loader
```bash
# for example, use sass
npm install -D sass-loader node-sass
```
## Update the tag `lang` attibute
```vue
<style lang="sass">
$color: red;
bod... | <|file_sep|>original/docs/sass-and-others.md
<|file_sep|>current/docs/sass-and-others.md
<|file_sep|>updated/docs/sass-and-others.md
# Sass & Others
You may intend to use `sass-loader` or `less-loader` for the CSS section in `.vue` single file component, well, it's easy:
## Install the loader
```bash
# for example... | d57f84b5fa0ddac3f40a49f0f6288a61efe7d6d7 | docs/sass-and-others.md | docs/sass-and-others.md | Markdown |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.