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/templates/plugin.template.php
function template_notifications_block()
{
global $txt, $context, $settings, $scripturl;
echo '
<section>
<span class="note', $context['unread_notifications'] ? 'nice' : '', '" style="font-size: 9pt;">', $context['unread_notifications'], '</span>
<a href=... |
function template_notifications_block()
{
global $txt, $context, $settings, $scripturl;
echo '
<section>
<span class="note', $context['unread_notifications'] ? 'nice' : '', '" style="font-size: 9pt;">', $context['unread_notifications'], '</span>
<a href="', $scripturl, '?action=notification" class="title... | <|file_sep|>original/templates/plugin.template.php
function template_notifications_block()
{
global $txt, $context, $settings, $scripturl;
echo '
<section>
<span class="note', $context['unread_notifications'] ? 'nice' : '', '" style="font-size: 9pt;">', $context['unread_notifications'], '</span>
<a href=... | 6438fc8108d214c6cb56e5d75253cad9acfd0334 | templates/plugin.template.php | templates/plugin.template.php | PHP |
<|file_sep|>original/org.tigris.subversion.subclipse.core/src/org/tigris/subversion/subclipse/core/ISVNCoreConstants.java
* Subclipse project committers - initial API and implementation
******************************************************************************/
package org.tigris.subversion.subclipse.core;
/... | * Subclipse project committers - initial API and implementation
******************************************************************************/
package org.tigris.subversion.subclipse.core;
/**
* @author Brock Janiczak
*/
public interface ISVNCoreConstants {
String PREF_RECURSIVE_STATUS_UPDATE = "resursiv... | <|file_sep|>original/org.tigris.subversion.subclipse.core/src/org/tigris/subversion/subclipse/core/ISVNCoreConstants.java
* Subclipse project committers - initial API and implementation
******************************************************************************/
package org.tigris.subversion.subclipse.core;
/... | 47db2f3170c843339b9f3ef65965b4e14cff2cf8 | org.tigris.subversion.subclipse.core/src/org/tigris/subversion/subclipse/core/ISVNCoreConstants.java | org.tigris.subversion.subclipse.core/src/org/tigris/subversion/subclipse/core/ISVNCoreConstants.java | Java |
<|file_sep|>original/.travis.yml
language: php
php:
- 7.1
- nightly
cache:
yarn: true
directories:
- ~/.composer/cache/files
before_install:
- echo "memory_limit=4096M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
install:
- composer update --prefer-dist
before... | language: php
php:
- 7.1
- 7.2
- nightly
cache:
yarn: true
directories:
- ~/.composer/cache/files
before_install:
- echo "memory_limit=4096M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
install:
- composer update --prefer-dist
before_script:
- (cd test... | <|file_sep|>original/.travis.yml
language: php
php:
- 7.1
- nightly
cache:
yarn: true
directories:
- ~/.composer/cache/files
before_install:
- echo "memory_limit=4096M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
install:
- composer update --prefer-dist
before... | e7e890344721e208033068ffdb02dcbb9b32fe50 | .travis.yml | .travis.yml | YAML |
<|file_sep|>src/app/router.animations.ts.diff
original:
animate('500ms cubic-bezier(.75,-0.48,.26,1.52)',
updated:
animate('500ms ease-out',
<|file_sep|>original/src/app/router.animations.ts
transition('* => *', [
query(':enter, :leave', style({ position: 'fixed', width: '100%' }), {optional: ... | transition('* => *', [
query(':enter, :leave', style({ position: 'fixed', width: '100%' }), {optional: true}),
query(':enter', style({ opacity: 0 }), {optional: true}),
sequence([
query(':leave', animateChild(), {optional: true}),
group([
query(':leave', [
style({ opacity: 1 ... | <|file_sep|>src/app/router.animations.ts.diff
original:
animate('500ms cubic-bezier(.75,-0.48,.26,1.52)',
updated:
animate('500ms ease-out',
<|file_sep|>original/src/app/router.animations.ts
transition('* => *', [
query(':enter, :leave', style({ position: 'fixed', width: '100%' }), {optional: ... | b37a57f0b7b154b38375a722b1f9c56a5d23a435 | src/app/router.animations.ts | src/app/router.animations.ts | TypeScript |
<|file_sep|>ipython/profile_bots/startup/05-import-company.py.diff
original:
updated:
from tools.issues import issues
<|file_sep|>original/ipython/profile_bots/startup/05-import-company.py
"""Set up access to important employer data for IPython"""
from dataclasses import dataclass
@dataclass
class EmployerData:
... | """Set up access to important employer data for IPython"""
from dataclasses import dataclass
from tools.issues import issues
@dataclass
class EmployerData:
name: str
wwts = EmployerData('wwts')
def issue_branch(issue):
name = issues.one(issue).branch_name()
print(name) | <|file_sep|>ipython/profile_bots/startup/05-import-company.py.diff
original:
updated:
from tools.issues import issues
<|file_sep|>original/ipython/profile_bots/startup/05-import-company.py
"""Set up access to important employer data for IPython"""
from dataclasses import dataclass
@dataclass
class EmployerData:
... | ea22192c9debe171db5d4b6b83d581fe079d6fa4 | ipython/profile_bots/startup/05-import-company.py | ipython/profile_bots/startup/05-import-company.py | Python |
<|file_sep|>original/GetCallLogs.py
<|file_sep|>current/GetCallLogs.py
<|file_sep|>updated/GetCallLogs.py | from twilio.rest import TwilioRestClient
import config
# To find these visit https://www.twilio.com/user/account
account_sid = config.account_sid
auth_token = config.auth_token
client = TwilioRestClient(account_sid, auth_token)
for call in client.calls.list():
print("From: " + call.from_formatted + " To: " + cal... | <|file_sep|>original/GetCallLogs.py
<|file_sep|>current/GetCallLogs.py
<|file_sep|>updated/GetCallLogs.py
from twilio.rest import TwilioRestClient
import config
# To find these visit https://www.twilio.com/user/account
account_sid = config.account_sid
auth_token = config.auth_token
client = TwilioRestClient(account... | 3edec9bf4b71e2cfde537f5f443d184323e5d8f8 | GetCallLogs.py | GetCallLogs.py | Python |
<|file_sep|>lib/formalist/display_adapters.rb.diff
original:
updated:
require "formalist/display_adapters/radio"
<|file_sep|>original/lib/formalist/display_adapters.rb
require "dry-container"
require "formalist/display_adapters/default"
require "formalist/display_adapters/select"
require "formalist/display_adapters/te... | require "dry-container"
require "formalist/display_adapters/default"
require "formalist/display_adapters/radio"
require "formalist/display_adapters/select"
require "formalist/display_adapters/textarea"
module Formalist
class DisplayAdapters
extend Dry::Container::Mixin
register DEFAULT_DISPLAY_ADAPTER, Defa... | <|file_sep|>lib/formalist/display_adapters.rb.diff
original:
updated:
require "formalist/display_adapters/radio"
<|file_sep|>original/lib/formalist/display_adapters.rb
require "dry-container"
require "formalist/display_adapters/default"
require "formalist/display_adapters/select"
require "formalist/display_adapters/te... | 4bf2bbdaa72bac6fdb834fae9807d6ba6133b528 | lib/formalist/display_adapters.rb | lib/formalist/display_adapters.rb | Ruby |
<|file_sep|>original/examples/vector_gradientstyle.sh
#!/bin/bash
geoc vector gradientstyle -i naturalearth.gpkg -l countries -f PEOPLE -n 6 -c greens > countries_gradient_green.sld
geoc map draw -f vector_gradient_greens.png -l "layertype=layer file=naturalearth.gpkg layername=ocean style=ocean.sld" \
-l "layerty... | #!/bin/bash
geoc vector gradientstyle -i naturalearth.gpkg -l countries -f PEOPLE -n 6 -c greens > countries_gradient_green.sld
geoc map draw -f vector_gradient_greens.png -l "layertype=layer file=naturalearth.gpkg layername=ocean style=ocean.sld" \
-l "layertype=layer file=naturalearth.gpkg layername=countries st... | <|file_sep|>original/examples/vector_gradientstyle.sh
#!/bin/bash
geoc vector gradientstyle -i naturalearth.gpkg -l countries -f PEOPLE -n 6 -c greens > countries_gradient_green.sld
geoc map draw -f vector_gradient_greens.png -l "layertype=layer file=naturalearth.gpkg layername=ocean style=ocean.sld" \
-l "layerty... | 58167a88896e6598035d219b632aa4269040f2d9 | examples/vector_gradientstyle.sh | examples/vector_gradientstyle.sh | Shell |
<|file_sep|>original/exercise3.py
__author__ = 'Susan Sim'
__email__ = "ses@drsusansim.org"
__copyright__ = "2015 Susan Sim"
__license__ = "MIT License"
def diagnose_car():
"""
Interactively queries the user with yes/no questions to identify a
possible issue with a car.
Inputs:
Expected Outputs... | Interactively queries the user with yes/no questions to identify a
possible issue with a car.
Inputs:
Expected Outputs:
Errors:
"""
# First Trouble shooting Question
print("Troubleshooting Car Issues")
print("For all questions answer y for Yes or n for No")
# First Question i... | <|file_sep|>original/exercise3.py
__author__ = 'Susan Sim'
__email__ = "ses@drsusansim.org"
__copyright__ = "2015 Susan Sim"
__license__ = "MIT License"
def diagnose_car():
"""
Interactively queries the user with yes/no questions to identify a
possible issue with a car.
Inputs:
Expected Outputs... | e3c12bd54e143086dd332a51195e4eb3f7305201 | exercise3.py | exercise3.py | Python |
<|file_sep|>app/Main.hs.diff
original:
updated:
import System
<|file_sep|>original/app/Main.hs
module Main where
import Commands
import Lib
import Driver.Console
dummyScript :: Script ()
dummyScript = do
forward 5.5
clockwise 30.0
forward 3.2
main :: IO ()
main = run dummyScript
<|file_sep|>current/app... | module Main where
import Commands
import Lib
import System
import Driver.Console
dummyScript :: Script ()
dummyScript = do
forward chrs 5.5
clockwise chrs 30.0
forward chrs 3.2
where chrs = Vehical 0.2 (\x -> (*1.8) . fromIntegral $ x) (\x -> x*0.25)
main :: IO ()
main = run dummyScript | <|file_sep|>app/Main.hs.diff
original:
updated:
import System
<|file_sep|>original/app/Main.hs
module Main where
import Commands
import Lib
import Driver.Console
dummyScript :: Script ()
dummyScript = do
forward 5.5
clockwise 30.0
forward 3.2
main :: IO ()
main = run dummyScript
<|file_sep|>current/app... | 881b7eeeb5c61f8561ffbe78d5889b6505244932 | app/Main.hs | app/Main.hs | Haskell |
<|file_sep|>original/lib/docker-provider/action/check_running.rb
class CheckRunning
def initialize(app, env)
@app = app
end
def call(env)
if env[:machine].state.id == :not_created
raise Vagrant::Errors::VMNotCreatedError
end
if env[:mac... | class CheckRunning
def initialize(app, env)
@app = app
end
def call(env)
if env[:machine].state.id == :not_created
raise Vagrant::Errors::VMNotCreatedError
end
if env[:machine].state.id == :stopped
raise Vagrant::Errors::VMN... | <|file_sep|>original/lib/docker-provider/action/check_running.rb
class CheckRunning
def initialize(app, env)
@app = app
end
def call(env)
if env[:machine].state.id == :not_created
raise Vagrant::Errors::VMNotCreatedError
end
if env[:mac... | 364b6e5b74aa4d5285128482d54317a026579e11 | lib/docker-provider/action/check_running.rb | lib/docker-provider/action/check_running.rb | Ruby |
<|file_sep|>src/rest/index.js.diff
original:
getDiskSpace: require('./getDiskSpace.js'),
updated:
<|file_sep|>original/src/rest/index.js
module.exports = {
activeUserCount: require('./activeUserCount.js'),
activeUsers: require('./activeUsers.js'),
slackPostMessage: require('./slackPostMessage.js'),
... | module.exports = {
activeUserCount: require('./activeUserCount.js'),
activeUsers: require('./activeUsers.js'),
slackPostMessage: require('./slackPostMessage.js'),
createDir: require('./createDir.js'),
createDirQVD: require('./createDirQVD.js'),
mqttPublishMessage: require('./mqttPublishMessage.j... | <|file_sep|>src/rest/index.js.diff
original:
getDiskSpace: require('./getDiskSpace.js'),
updated:
<|file_sep|>original/src/rest/index.js
module.exports = {
activeUserCount: require('./activeUserCount.js'),
activeUsers: require('./activeUsers.js'),
slackPostMessage: require('./slackPostMessage.js'),
... | 0a44f52752b53fe179c2b06ecff9e7444e1db71a | src/rest/index.js | src/rest/index.js | JavaScript |
<|file_sep|>original/tests/dummy/app/index.html
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>ivy-sortable</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{content-for 'head'}}
<link re... | <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>ivy-sortable</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{content-for 'head'}}
<link rel="stylesheet" href="assets/vendor.css">
<li... | <|file_sep|>original/tests/dummy/app/index.html
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>ivy-sortable</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{content-for 'head'}}
<link re... | 19dcb7cc3e076a6b3dd884eebadb3bcdad3387a8 | tests/dummy/app/index.html | tests/dummy/app/index.html | HTML |
<|file_sep|>app/views/orders/show.html.erb.diff
original:
<% if notice %>
<p id="notice"><%= notice %></p>
<% end %>
updated:
<%- model_class = Item -%>
<div class="page-header">
<h1> Your Order </h1>
<% if notice %>
<p id="notice"><%= notice %></p>
<% end %>
</div>
<|file_sep|>app/views/orders/show.html.erb.di... | <th><%=t '.actions', :default => t("helpers.actions") %></th>
</tr>
</thead>
<tbody>
<% @order.order_items.each do |cart_item| %>
<tr>
<td><%= image_tag cart_item.item.image.url(:user_thumb) %></td>
<td><%= link_to cart_item.item.title, item_path(cart_item.item) %></td>
<td><%= num... | <|file_sep|>app/views/orders/show.html.erb.diff
original:
<% if notice %>
<p id="notice"><%= notice %></p>
<% end %>
updated:
<%- model_class = Item -%>
<div class="page-header">
<h1> Your Order </h1>
<% if notice %>
<p id="notice"><%= notice %></p>
<% end %>
</div>
<|file_sep|>app/views/orders/show.html.erb.di... | 85285571ef7654b2e926525cdac1c1c739e0f90e | app/views/orders/show.html.erb | app/views/orders/show.html.erb | HTML+ERB |
<|file_sep|>original/fuzz/Cargo.toml
name = "json5format-fuzz"
version = "0.0.0"
authors = ["David Korczynski <david@adalogics.com>"]
publish = false
edition = "2018"
[package.metadata]
cargo-fuzz = true
[dependencies]
libfuzzer-sys = "0.3"
[dependencies.json5format]
path = ".."
# Prevent this from interfering with... | name = "json5format-fuzz"
version = "0.0.0"
authors = ["David Korczynski <david@adalogics.com>"]
publish = false
edition = "2018"
[package.metadata]
cargo-fuzz = true
[dependencies]
libfuzzer-sys = "0.4.0"
[dependencies.json5format]
path = ".."
# Prevent this from interfering with workspaces
[workspace]
members = [... | <|file_sep|>original/fuzz/Cargo.toml
name = "json5format-fuzz"
version = "0.0.0"
authors = ["David Korczynski <david@adalogics.com>"]
publish = false
edition = "2018"
[package.metadata]
cargo-fuzz = true
[dependencies]
libfuzzer-sys = "0.3"
[dependencies.json5format]
path = ".."
# Prevent this from interfering with... | 98e4a60ad8e1a5109c5559900b696c2439aa33ea | fuzz/Cargo.toml | fuzz/Cargo.toml | TOML |
<|file_sep|>original/roles/macbook_setup/defaults/main.yml
---
virtualbox_major_version: '5'
virtualbox_minor_version: '2'
virtualbox_patch_version: '0'
virtualbox_build_id: '118431'
plexamp_version: '1.1.0'
digikam_version: '6.0.0'
kdenlive_version: '19.04.2f'
vagrant_version: '2.2.4'
prev_ranger_version: '1.9.1'
rang... | ---
virtualbox_major_version: '5'
virtualbox_minor_version: '2'
virtualbox_patch_version: '0'
virtualbox_build_id: '118431'
plexamp_version: '1.1.0'
digikam_version: '6.0.0'
kdenlive_version: '18.12.1b'
vagrant_version: '2.2.4'
prev_ranger_version: '1.9.1'
ranger_version: '1.9.2'
op_version: '0.5.6-003' | <|file_sep|>original/roles/macbook_setup/defaults/main.yml
---
virtualbox_major_version: '5'
virtualbox_minor_version: '2'
virtualbox_patch_version: '0'
virtualbox_build_id: '118431'
plexamp_version: '1.1.0'
digikam_version: '6.0.0'
kdenlive_version: '19.04.2f'
vagrant_version: '2.2.4'
prev_ranger_version: '1.9.1'
rang... | 622ed441a1fbb9e165a81278339ba2bfae829fbc | roles/macbook_setup/defaults/main.yml | roles/macbook_setup/defaults/main.yml | YAML |
<|file_sep|>original/packages/re/repa-linear-algebra.yaml
<|file_sep|>current/packages/re/repa-linear-algebra.yaml
<|file_sep|>updated/packages/re/repa-linear-algebra.yaml | homepage: https://github.com/marcinmrotek/repa-linear-algebra
changelog-type: ''
hash: 3466fd6c78a7fa4025161b555057ac7773c7f937c134dd08ce1178bd2de920a1
test-bench-deps: {}
maintainer: marcin.jan.mrotek@gmail.com
synopsis: HMatrix operations for Repa.
changelog: ''
basic-deps:
base: ! '>=4.8 && <4.9'
hmatrix: -any
... | <|file_sep|>original/packages/re/repa-linear-algebra.yaml
<|file_sep|>current/packages/re/repa-linear-algebra.yaml
<|file_sep|>updated/packages/re/repa-linear-algebra.yaml
homepage: https://github.com/marcinmrotek/repa-linear-algebra
changelog-type: ''
hash: 3466fd6c78a7fa4025161b555057ac7773c7f937c134dd08ce1178bd2de... | 6285fb84a0a3b7d62327746a6b3b21cb43b47ad2 | packages/re/repa-linear-algebra.yaml | packages/re/repa-linear-algebra.yaml | YAML |
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- ruby-head
- ree
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- ruby-head
- ree
<|file_sep|>updated/.travis.yml | language: ruby
rvm:
- 1.9.3
- ruby-head
- ree | <|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- ruby-head
- ree
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- ruby-head
- ree
<|file_sep|>updated/.travis.yml
language: ruby
rvm:
- 1.9.3
- ruby-head
- ree | f72b3cea324c6e37ac478e05e495d75120c744ef | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/index.html
---
layout: page
description: "A Clean Blog Theme by Start Bootstrap"
---
{% for post in paginator.posts %}
<div class="post-preview">
<a href="{{ post.url | prepend: site.baseurl }}">
<h2 class="post-title"> {{ post.title }}
</h2>
{% if post.subti... | ---
layout: page
description: "Devops & Cloud Infrastructure Consulting"
---
{% for post in paginator.posts %}
<div class="post-preview">
<a href="{{ post.url | prepend: site.baseurl }}">
<h2 class="post-title"> {{ post.title }}
</h2>
{% if post.subtitle %}
<h3 class="pos... | <|file_sep|>original/index.html
---
layout: page
description: "A Clean Blog Theme by Start Bootstrap"
---
{% for post in paginator.posts %}
<div class="post-preview">
<a href="{{ post.url | prepend: site.baseurl }}">
<h2 class="post-title"> {{ post.title }}
</h2>
{% if post.subti... | d35a034098071ae376630422a947d408ba94a2b1 | index.html | index.html | HTML |
<|file_sep|>original/chapter5.md
2. To list the services run:
``` bash
$ kubectl get svc
```
3. To remotely execute command in running container run:
``` bash
$ kubectl exec <name_of_the_pod> -- curl -s http://address
```
4. To configure session affinity on the service run:
``` bash
$ kubectl create -f kubapp-svc-aff... | ``` bash
$ kubectl create -f kubapp-svc-affinity.yaml
$ kubectl exec <name_of_the_pod> -- curl -s http://address
```
Note: you will hit the same pod
5. Accessing the bash shell in a container inside a pod
``` bash
$ kubectl exec -it <pods name> bash
```
Example:
```
$ kubectl exec -it kubapp-ds72z bash
root@kuba... | <|file_sep|>original/chapter5.md
2. To list the services run:
``` bash
$ kubectl get svc
```
3. To remotely execute command in running container run:
``` bash
$ kubectl exec <name_of_the_pod> -- curl -s http://address
```
4. To configure session affinity on the service run:
``` bash
$ kubectl create -f kubapp-svc-aff... | 02be13902e43f1b1decf0c75b99be4ce1bacc645 | chapter5.md | chapter5.md | Markdown |
<|file_sep|>original/lib/status-bar-item.js
'use babel'
export default class StatusBarItem {
constructor () {
this.element = document.createElement('a')
this.element.className = 'line-ending-tile'
this.setLineEndings(new Set())
}
setLineEndings (lineEndings) {
this.lineEndings = lineEndings
... | 'use babel'
export default class StatusBarItem {
constructor () {
this.element = document.createElement('a')
this.element.className = 'line-ending-tile inline-block'
this.setLineEndings(new Set())
}
setLineEndings (lineEndings) {
this.lineEndings = lineEndings
this.element.textContent = line... | <|file_sep|>original/lib/status-bar-item.js
'use babel'
export default class StatusBarItem {
constructor () {
this.element = document.createElement('a')
this.element.className = 'line-ending-tile'
this.setLineEndings(new Set())
}
setLineEndings (lineEndings) {
this.lineEndings = lineEndings
... | 3f7e67114253aeaed70c7022ad7a3116be2fd26f | lib/status-bar-item.js | lib/status-bar-item.js | JavaScript |
<|file_sep|>original/migrations/versions/8da7405903f6_.py
<|file_sep|>current/migrations/versions/8da7405903f6_.py
<|file_sep|>updated/migrations/versions/8da7405903f6_.py | """Add BackgroundTasks settings table.
Revision ID: 8da7405903f6
Revises: 69efa7247067
Create Date: 2020-09-05 20:02:53.642956
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '8da7405903f6'
down_revision = '69efa7247067'
branch_labels = None
depends_on = None
... | <|file_sep|>original/migrations/versions/8da7405903f6_.py
<|file_sep|>current/migrations/versions/8da7405903f6_.py
<|file_sep|>updated/migrations/versions/8da7405903f6_.py
"""Add BackgroundTasks settings table.
Revision ID: 8da7405903f6
Revises: 69efa7247067
Create Date: 2020-09-05 20:02:53.642956
"""
from alembic ... | 45a165c5516f3658e45073c0689748dd8b39cadb | migrations/versions/8da7405903f6_.py | migrations/versions/8da7405903f6_.py | Python |
<|file_sep|>original/layouts/partials/article_header.html
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="{{ .Permalink }}" title="{{ .Title }}" itemprop="url">{{ .Title }}</a>
</h1>
<p class="article-author">By
{{ if and (isset .Params "Author") (isset .Params "AuthorHomepage") }}
... | <header class="article-info clearfix">
<h1 itemprop="name">
<a href="{{ .Permalink }}" title="{{ .Title }}" itemprop="url">{{ .Title }}</a>
</h1>
<p class="article-author">By
{{ if and (isset .Params "Author") (isset .Params "AuthorHomepage") }}
<a href="{{ .Params.author_homepage }}" title="{{ .P... | <|file_sep|>original/layouts/partials/article_header.html
<header class="article-info clearfix">
<h1 itemprop="name">
<a href="{{ .Permalink }}" title="{{ .Title }}" itemprop="url">{{ .Title }}</a>
</h1>
<p class="article-author">By
{{ if and (isset .Params "Author") (isset .Params "AuthorHomepage") }}
... | 3de96fbfe189a5ebd4c9ab43015bb5f3df8ab988 | layouts/partials/article_header.html | layouts/partials/article_header.html | HTML |
<|file_sep|>app/views/components/cards/partials/_lodging_badges.html.haml.diff
original:
- if card[:top_choice?]
updated:
- if lodging[:top_choice?]
<|file_sep|>app/views/components/cards/partials/_lodging_badges.html.haml.diff
original:
%span.tag--badge__content
Top Choice
- elsif card[:lp_reviewed]
updated:... | - if lodging[:top_choice?]
.tag.tag--badge.tag--top-choice
.tag--badge__content.icon--collar--after.icon--lp-blue--after
.icon--top-choice.icon--white
Top Choice
- elsif lodging[:lp_reviewed]
.tag.tag--badge.tag--lp-reviewed
.tag--badge__content
.icon--lp-reviewed.icon--white
L... | <|file_sep|>app/views/components/cards/partials/_lodging_badges.html.haml.diff
original:
- if card[:top_choice?]
updated:
- if lodging[:top_choice?]
<|file_sep|>app/views/components/cards/partials/_lodging_badges.html.haml.diff
original:
%span.tag--badge__content
Top Choice
- elsif card[:lp_reviewed]
updated:... | 5b0f63dbb0ffaad8b24f9bd496475fcc0dc9390c | app/views/components/cards/partials/_lodging_badges.html.haml | app/views/components/cards/partials/_lodging_badges.html.haml | Haml |
<|file_sep|>original/doc/source/index.rst
.. pysasl documentation master file, created by
sphinx-quickstart on Mon Oct 15 15:05:36 2018.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
``pysasl`` Documentation
========================
.. toctre... | .. pysasl documentation master file, created by
sphinx-quickstart on Mon Oct 15 15:05:36 2018.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
``pysasl`` Documentation
========================
.. toctree::
:titlesonly:
:caption: Contents:... | <|file_sep|>original/doc/source/index.rst
.. pysasl documentation master file, created by
sphinx-quickstart on Mon Oct 15 15:05:36 2018.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
``pysasl`` Documentation
========================
.. toctre... | fdefdda1a37911d88f3a24dcae868397fd0ee4f1 | doc/source/index.rst | doc/source/index.rst | reStructuredText |
<|file_sep|>CMakeLists.txt.diff
original:
find_package(libexupstream1)
find_package(libexupstream2)
include_directories(${LIBEXUPSTREAM1_INCLUDE_DIRS})
include_directories(${LIBEXUPSTREAM2_INCLUDE_DIRS})
updated:
find_package(exupstream1)
find_package(exupstream2)
include_directories(${EXUPSTREAM1_INCLUDE_DIRS})
includ... | # Build targets
################################
add_executable(exdownstream
${SRC}
${INCLUDES})
target_link_libraries(exdownstream
${EXUPSTREAM1_LIBRARIES}
${EXUPSTREAM2_LIBRARIES}
)
################################
# Export binaries
################################
export_project(
NAME exdowns... | <|file_sep|>CMakeLists.txt.diff
original:
find_package(libexupstream1)
find_package(libexupstream2)
include_directories(${LIBEXUPSTREAM1_INCLUDE_DIRS})
include_directories(${LIBEXUPSTREAM2_INCLUDE_DIRS})
updated:
find_package(exupstream1)
find_package(exupstream2)
include_directories(${EXUPSTREAM1_INCLUDE_DIRS})
includ... | 68721ad5cb2c39d6f86eb11235cbc1b43d716eb1 | CMakeLists.txt | CMakeLists.txt | Text |
<|file_sep|>original/setup.py
author="Tibor Arpas, Tomas Matlovic, Daniel Hahler, Martin Racak",
entry_points={
"pytest11": [
"testmon = testmon.pytest_testmon",
],
"tox": [
"testmon = testmon.tox_testmon",
],
},
python_requires=">=3.6",
instal... | author="Tibor Arpas, Tomas Matlovic, Daniel Hahler, Martin Racak",
entry_points={
"pytest11": [
"testmon = testmon.pytest_testmon",
],
"tox": [
"testmon = testmon.tox_testmon",
],
},
python_requires=">=3.6",
install_requires=["pytest>=5,<7", "c... | <|file_sep|>original/setup.py
author="Tibor Arpas, Tomas Matlovic, Daniel Hahler, Martin Racak",
entry_points={
"pytest11": [
"testmon = testmon.pytest_testmon",
],
"tox": [
"testmon = testmon.tox_testmon",
],
},
python_requires=">=3.6",
instal... | 2a842d4b68bf2b8084852d4418e84beb00b5f0f0 | setup.py | setup.py | Python |
<|file_sep|>original/requirements.txt
boto3==1.3.1
botocore==1.4.32
click==6.6
docutils==0.12
futures==3.0.5
jmespath==0.9.0
pyaml==15.8.2
python-dateutil==2.5.3
PyYAML==3.11
six==1.10.0
<|file_sep|>current/requirements.txt
boto3==1.3.1
botocore==1.4.32
click==6.6
docutils==0.12
futures==3.0.5
jmespath==0.9.0
pyaml==15... | boto3==1.4.1
botocore==1.4.61
click==6.6
docutils==0.12
futures==3.0.5
jmespath==0.9.0
pyaml==15.8.2
python-dateutil==2.5.3
PyYAML==3.11
six==1.10.0 | <|file_sep|>original/requirements.txt
boto3==1.3.1
botocore==1.4.32
click==6.6
docutils==0.12
futures==3.0.5
jmespath==0.9.0
pyaml==15.8.2
python-dateutil==2.5.3
PyYAML==3.11
six==1.10.0
<|file_sep|>current/requirements.txt
boto3==1.3.1
botocore==1.4.32
click==6.6
docutils==0.12
futures==3.0.5
jmespath==0.9.0
pyaml==15... | a86a81bff8775003280cb44d1fa6b2de9cb158d1 | requirements.txt | requirements.txt | Text |
<|file_sep|>railties/lib/rails/backtrace_cleaner.rb.diff
original:
updated:
EMPTY_STRING = ''.freeze
SLASH = '/'.freeze
DOT_SLASH = './'.freeze
<|file_sep|>railties/lib/rails/backtrace_cleaner.rb.diff
original:
add_filter { |line| line.sub("#{Rails.root}/", '') }
add_filter { |lin... | super
@root = "#{Rails.root}/".freeze
add_filter { |line| line.sub(@root, EMPTY_STRING) }
add_filter { |line| line.sub(RENDER_TEMPLATE_PATTERN, EMPTY_STRING) }
add_filter { |line| line.sub(DOT_SLASH, SLASH) } # for tests
add_gem_filters
add_silencer { |line| line !~ APP_DIRS_P... | <|file_sep|>railties/lib/rails/backtrace_cleaner.rb.diff
original:
updated:
EMPTY_STRING = ''.freeze
SLASH = '/'.freeze
DOT_SLASH = './'.freeze
<|file_sep|>railties/lib/rails/backtrace_cleaner.rb.diff
original:
add_filter { |line| line.sub("#{Rails.root}/", '') }
add_filter { |lin... | dfbcfafd9af046b3e8c79fe7309d31af6f82f9b2 | railties/lib/rails/backtrace_cleaner.rb | railties/lib/rails/backtrace_cleaner.rb | Ruby |
<|file_sep|>original/tovp/templates/registration/logged_out.html
<|file_sep|>current/tovp/templates/registration/logged_out.html
<|file_sep|>updated/tovp/templates/registration/logged_out.html | {% extends 'content-area.html' %}
{% set body_class = "logout" %}
{% set content_title = "Logout" %}
{% block javascript_head %}
{{ super() }}
{% endblock %}
{% block page_content %}
Thanks for spending some quality time with the Web site today.
{% endblock %}
| <|file_sep|>original/tovp/templates/registration/logged_out.html
<|file_sep|>current/tovp/templates/registration/logged_out.html
<|file_sep|>updated/tovp/templates/registration/logged_out.html
{% extends 'content-area.html' %}
{% set body_class = "logout" %}
{% set content_title = "Logout" %}
{% block javascript_hea... | f557d7070fc6b7ebf6ea8c6bacccb07efdcd735e | tovp/templates/registration/logged_out.html | tovp/templates/registration/logged_out.html | HTML |
<|file_sep|>original/plugins/src/org/lockss/plugin/ingenta/LondonSchoolOfEconomicsPdfTransform.java
<|file_sep|>current/plugins/src/org/lockss/plugin/ingenta/LondonSchoolOfEconomicsPdfTransform.java
<|file_sep|>updated/plugins/src/org/lockss/plugin/ingenta/LondonSchoolOfEconomicsPdfTransform.java | /*
* $Id: LondonSchoolOfEconomicsPdfTransform.java,v 1.1 2010-11-12 22:20:40 pgust Exp $
*/
/*
Copyright (c) 2000-2010 Board of Trustees of Leland Stanford Jr. University,
all rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentatio... | <|file_sep|>original/plugins/src/org/lockss/plugin/ingenta/LondonSchoolOfEconomicsPdfTransform.java
<|file_sep|>current/plugins/src/org/lockss/plugin/ingenta/LondonSchoolOfEconomicsPdfTransform.java
<|file_sep|>updated/plugins/src/org/lockss/plugin/ingenta/LondonSchoolOfEconomicsPdfTransform.java
/*
* $Id: LondonSch... | c3cfd41005eef30db6edf6d0fcc7286f995daa21 | plugins/src/org/lockss/plugin/ingenta/LondonSchoolOfEconomicsPdfTransform.java | plugins/src/org/lockss/plugin/ingenta/LondonSchoolOfEconomicsPdfTransform.java | Java |
<|file_sep|>rapi_bwa/setup_bwa.sh.diff
original:
git clone "${BWA_REPO}" "${BWA_DIR}"
updated:
if [ ! -d "${BWA_DIR}" ]; then
git clone "${BWA_REPO}" "${BWA_DIR}"
cd "${BWA_DIR}"
git checkout "${BWA_TAG}"
else
echo "###########################################" >&2
echo " Reusing BWA directory ${BWA_DIR} as is" ... | cd "${BWA_DIR}"
git checkout "${BWA_TAG}"
else
echo "###########################################" >&2
echo " Reusing BWA directory ${BWA_DIR} as is" >&2
echo "###########################################" >&2
cd "${BWA_DIR}"
fi
# check whether we're running on Linux
if type -P uname >/dev/null && [ $(uname) ... | <|file_sep|>rapi_bwa/setup_bwa.sh.diff
original:
git clone "${BWA_REPO}" "${BWA_DIR}"
updated:
if [ ! -d "${BWA_DIR}" ]; then
git clone "${BWA_REPO}" "${BWA_DIR}"
cd "${BWA_DIR}"
git checkout "${BWA_TAG}"
else
echo "###########################################" >&2
echo " Reusing BWA directory ${BWA_DIR} as is" ... | be8bc26830b0757c805967661e8ee25289137d6c | rapi_bwa/setup_bwa.sh | rapi_bwa/setup_bwa.sh | Shell |
<|file_sep|>original/dsub/_dsub_version.py
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permission... | # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""... | <|file_sep|>original/dsub/_dsub_version.py
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permission... | bf91b77db4327c698b7ed6fe5d0790aea3799e3c | dsub/_dsub_version.py | dsub/_dsub_version.py | Python |
<|file_sep|>original/asset/js/render.js
// upvote: 255
// uuid: 125121
// }
function loadShipment(id) {
$("#shipped-placeholder").hide();
$("#shipped").prepend(template(id));
}
$("#launch").on("click", openShipper);
$("#unlaunch").on("click", closeShipper);
function openShipper() {
... | // upvote: 255
// uuid: 125121
// }
function loadShipment(id) {
$("#shipped-placeholder").hide();
$("#shipped").prepend(template(id));
}
$("#launch").on("click", openShipper);
$(".modal-close").on("click", closeShipper);
function openShipper() {
$("#ship-modal").addClass("is-activ... | <|file_sep|>original/asset/js/render.js
// upvote: 255
// uuid: 125121
// }
function loadShipment(id) {
$("#shipped-placeholder").hide();
$("#shipped").prepend(template(id));
}
$("#launch").on("click", openShipper);
$("#unlaunch").on("click", closeShipper);
function openShipper() {
... | 1ee412f07e39a32e53b12fad291ffd41595590bb | asset/js/render.js | asset/js/render.js | JavaScript |
<|file_sep|>original/app/views/layouts/application.html.erb
<!DOCTYPE html>
<html>
<head>
<title>RailsOnlineShop</title>
<%= csrf_meta_tags %>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= javascript_include_tag 'application', 'data-turbolinks-track'... | <!DOCTYPE html>
<html>
<head>
<title>RailsOnlineShop</title>
<%= csrf_meta_tags %>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
</head>
<body>
<% if logged_in?%>
<... | <|file_sep|>original/app/views/layouts/application.html.erb
<!DOCTYPE html>
<html>
<head>
<title>RailsOnlineShop</title>
<%= csrf_meta_tags %>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= javascript_include_tag 'application', 'data-turbolinks-track'... | 80e21a76db09ca42c72b4c1ad680fab256a580d4 | app/views/layouts/application.html.erb | app/views/layouts/application.html.erb | HTML+ERB |
<|file_sep|>original/src/hue.js
if (hueValue === null) return color;
const { s, l, a } = color;
return make.fromHsl(hueValue, s, l, a);
}
export const spin = (color, degrees = 0) => {
const { h } = color;
const newHue = h + degrees;
if (newHue < 0) {
return setHue(color, 360 - Math.abs(newHue));
}
... | import make from "./make";
export const setHue = (color, hueValue) => {
if (hueValue === null) return color;
const { s, l, a } = color;
return make.fromHsl(hueValue, s, l, a);
}
export const spin = (color, degrees = 0) => {
const { h } = color;
const newHue = h + degrees;
return setHue(color, (newHue + 3... | <|file_sep|>original/src/hue.js
if (hueValue === null) return color;
const { s, l, a } = color;
return make.fromHsl(hueValue, s, l, a);
}
export const spin = (color, degrees = 0) => {
const { h } = color;
const newHue = h + degrees;
if (newHue < 0) {
return setHue(color, 360 - Math.abs(newHue));
}
... | e650cbee018a6069005965e7a6bb6022729c1387 | src/hue.js | src/hue.js | JavaScript |
<|file_sep|>src/tools/CMakeLists.txt.diff
original:
add_executable(pipe_to_dot
pipe_to_dot.cxx)
target_link_libraries(pipe_to_dot
updated:
function (add_tool name)
add_executable(${name}
${name}.cxx)
target_link_libraries(${name}
${ARGN})
install(
TARGETS ${name}
DESTINATION "${EXECUTABLE_I... | endfunction (add_tool)
add_tool(pipe_to_dot
vistk_pipeline_util
vistk_pipeline
${Boost_FILESYSTEM_LIBRARY}
${Boost_PROGRAM_OPTIONS_LIBRARY}
${Boost_SYSTEM_LIBRARY})
add_tool(pipeline_runner
vistk_pipeline_util
vistk_pipeline
${Boost_FILESYSTEM_LIBRARY}
${Boost_PROGRAM_OPTIONS_LIBRARY}
${Boost_SYST... | <|file_sep|>src/tools/CMakeLists.txt.diff
original:
add_executable(pipe_to_dot
pipe_to_dot.cxx)
target_link_libraries(pipe_to_dot
updated:
function (add_tool name)
add_executable(${name}
${name}.cxx)
target_link_libraries(${name}
${ARGN})
install(
TARGETS ${name}
DESTINATION "${EXECUTABLE_I... | dae62b60e8292f688dcca4444bd40815d2dcb430 | src/tools/CMakeLists.txt | src/tools/CMakeLists.txt | Text |
<|file_sep|>original/tests/test_skip_comments.py
<|file_sep|>current/tests/test_skip_comments.py
<|file_sep|>updated/tests/test_skip_comments.py |
# import pytest
from nodev.specs.generic import FlatContainer
#
# possible evolution of a ``skip_comments`` function
#
def skip_comments_v0(stream):
return [line.partition('#')[0] for line in stream]
def skip_comments_v1(stream):
for line in stream:
yield line.partition('#')[0]
def skip_comments_... | <|file_sep|>original/tests/test_skip_comments.py
<|file_sep|>current/tests/test_skip_comments.py
<|file_sep|>updated/tests/test_skip_comments.py
# import pytest
from nodev.specs.generic import FlatContainer
#
# possible evolution of a ``skip_comments`` function
#
def skip_comments_v0(stream):
return [line.part... | 7143075a6150134bb61655ca9bef8b9a4092eeab | tests/test_skip_comments.py | tests/test_skip_comments.py | Python |
<|file_sep|>original/src/finders/JumpPointFinder.js
/**
* Path finder using the Jump Point Search algorithm
* @param {object} opt
* @param {function} opt.heuristic Heuristic function to estimate the distance
* (defaults to manhattan).
* @param {DiagonalMovement} opt.diagonalMovement Condition under which diag... |
/**
* Path finder using the Jump Point Search algorithm
* @param {object} opt
* @param {function} opt.heuristic Heuristic function to estimate the distance
* (defaults to manhattan).
* @param {DiagonalMovement} opt.diagonalMovement Condition under which diagonal
* movement will be allowed.
*/
function ... | <|file_sep|>original/src/finders/JumpPointFinder.js
/**
* Path finder using the Jump Point Search algorithm
* @param {object} opt
* @param {function} opt.heuristic Heuristic function to estimate the distance
* (defaults to manhattan).
* @param {DiagonalMovement} opt.diagonalMovement Condition under which diag... | b77fd67ee02329bd25fe224689dcd8434262c282 | src/finders/JumpPointFinder.js | src/finders/JumpPointFinder.js | JavaScript |
<|file_sep|>original/package.json
"description": "Node module. typeOf('a string') == 'string', typeOf([]) == 'array', etc..",
"main": "index.js",
"scripts": {
"test": "mocha -R spec --compilers coffee:coffee-script test.coffee"
},
"repository": {
"type": "git",
"url": "http://github.com/CodingFu/t... | "main": "index.js",
"scripts": {
"test": "mocha -R spec --compilers coffee:coffee-script test.coffee"
},
"repository": {
"type": "git",
"url": "http://github.com/CodingFu/typeof"
},
"keywords": [
"typeof", "type"
],
"author": "Seva Rybakov",
"license": "MIT",
"dependencies": {},
"... | <|file_sep|>original/package.json
"description": "Node module. typeOf('a string') == 'string', typeOf([]) == 'array', etc..",
"main": "index.js",
"scripts": {
"test": "mocha -R spec --compilers coffee:coffee-script test.coffee"
},
"repository": {
"type": "git",
"url": "http://github.com/CodingFu/t... | 2879e4227ade5d1813c194e825294be6ab33a2ce | package.json | package.json | JSON |
<|file_sep|>server.js.diff
original:
updated:
// Copyright 2013 Rob Myers <rob@robmyers.org>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// Licens... | // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Pub... | <|file_sep|>server.js.diff
original:
updated:
// Copyright 2013 Rob Myers <rob@robmyers.org>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// Licens... | f10b0f8cbeabe954909b38b250261611aa14e834 | server.js | server.js | JavaScript |
<|file_sep|>package.json.diff
original:
"test": "mocha test/"
updated:
"test": "mocha test/",
"prepush": "npm test"
<|file_sep|>original/package.json
"version": "1.0.0",
"description": "Yet Another Libphonenumber Package: A libphonenumber build system with dynamic regional metadata loading",
"keywords... | "keywords": [
"libphonenumber",
"phone"
],
"repository": {
"type": "git",
"url": "https://github.com/dwbruhn/yalp"
},
"author": "Daniel Bruhn <dwbruhn@gmail.com>",
"license": "Apache",
"scripts": {
"test": "mocha test/",
"prepush": "npm test"
},
"dependencies": {},
"devDepend... | <|file_sep|>package.json.diff
original:
"test": "mocha test/"
updated:
"test": "mocha test/",
"prepush": "npm test"
<|file_sep|>original/package.json
"version": "1.0.0",
"description": "Yet Another Libphonenumber Package: A libphonenumber build system with dynamic regional metadata loading",
"keywords... | bda051477a7ac171ca540196fa247b72628f6606 | package.json | package.json | JSON |
<|file_sep|>wercker.yml.diff
original:
updated:
- setup-go-workspace
<|file_sep|>wercker.yml.diff
original:
- setup-go-workspace
updated:
<|file_sep|>wercker.yml.diff
original:
go build -o dist
updated:
go build
<|file_sep|>original/wercker.yml
steps:
- script:
name: go dep
... | - script:
name: go build
code: |
go build
#deploy:
# box: python
# steps:
# - pip-install:
# requirements_file: ""
# packages_list: "alfred-workflow-packager"
# - script:
# name: alfred-workflow-packager export
# code: |
# awp --version v0.... | <|file_sep|>wercker.yml.diff
original:
updated:
- setup-go-workspace
<|file_sep|>wercker.yml.diff
original:
- setup-go-workspace
updated:
<|file_sep|>wercker.yml.diff
original:
go build -o dist
updated:
go build
<|file_sep|>original/wercker.yml
steps:
- script:
name: go dep
... | 42d035490f03022ec3239b38c066a1204c10eff3 | wercker.yml | wercker.yml | YAML |
<|file_sep|>original/salt/icinga2-satellite.sls
# This set up us not entirely automated, due to the need to sign certificates.
# To finish the setup run:
# icinga2 node wizard
# Hit enter, except for:
# Master Common Name (CN from your master setup): mon.opendataservices.coop
# Master endpoint host (optional, you... | # This set up us not entirely automated, due to the need to sign certificates.
# To finish the setup run:
# icinga2 node wizard
# Hit enter, except for:
# Master Common Name (CN from your master setup): mon.opendataservices.coop
# Master endpoint host (optional, your master's IP address or FQDN): mon.opendataserv... | <|file_sep|>original/salt/icinga2-satellite.sls
# This set up us not entirely automated, due to the need to sign certificates.
# To finish the setup run:
# icinga2 node wizard
# Hit enter, except for:
# Master Common Name (CN from your master setup): mon.opendataservices.coop
# Master endpoint host (optional, you... | 42b73415dd8bbed7909196917b4d3c5e9ded5b03 | salt/icinga2-satellite.sls | salt/icinga2-satellite.sls | SaltStack |
<|file_sep|>original/bin/italic_reorder.pl
<|file_sep|>current/bin/italic_reorder.pl
<|file_sep|>updated/bin/italic_reorder.pl | #!/usr/bin/env perl
use utf8;
use open ':std', ':encoding(UTF-8)';
while (<>) {
s/ \(([^\)]+)\)\*/* (*\1*)/g;
print;
} | <|file_sep|>original/bin/italic_reorder.pl
<|file_sep|>current/bin/italic_reorder.pl
<|file_sep|>updated/bin/italic_reorder.pl
#!/usr/bin/env perl
use utf8;
use open ':std', ':encoding(UTF-8)';
while (<>) {
s/ \(([^\)]+)\)\*/* (*\1*)/g;
print;
} | 9cb98b61e5bef342d887d25241c9cdcbf326972e | bin/italic_reorder.pl | bin/italic_reorder.pl | Perl |
<|file_sep|>graph.rb.diff
original:
def new(graph_info)
updated:
def new(graph_info, directed)
<|file_sep|>graph.rb.diff
original:
updated:
@directed = directed
<|file_sep|>graph.rb.diff
original:
graph_info.foreach do |node|
if @edges[node]
updated:
graph_info.foreach do |connection|
add_e... | end
end
def add_edge(x, y, pair_processed?)
@edges[x]
@edges[x] << y
else
@edges[x] = [y]
end
add_edge(y, x, true) unless pair_processed?
end
end
class EdgeNode
def new()
end
end
graph_info = [[1, 2], [1, 3], [1, 4], [3, 4], [4, 5], [2,7], [5,6]];
graph = Graph.new(graph_in... | <|file_sep|>graph.rb.diff
original:
def new(graph_info)
updated:
def new(graph_info, directed)
<|file_sep|>graph.rb.diff
original:
updated:
@directed = directed
<|file_sep|>graph.rb.diff
original:
graph_info.foreach do |node|
if @edges[node]
updated:
graph_info.foreach do |connection|
add_e... | abfc0bc89fe0559a0715374f8842f57b8b68b27f | graph.rb | graph.rb | Ruby |
<|file_sep|>original/composer.json
"php": "^7.2.0"
},
"require-dev": {
"phpunit/phpunit": "^6.0 || ^7.0",
"friendsofphp/php-cs-fixer": "^2.0"
},
"autoload": {
"psr-4": {
"Version\\": "src/"
},
"classmap": [
"src/"
]
},
... | "php": "^7.2.0"
},
"require-dev": {
"phpunit/phpunit": "^6.0 || ^7.0",
"friendsofphp/php-cs-fixer": "^2.0"
},
"autoload": {
"psr-4": {
"Version\\": "src/"
}
},
"autoload-dev": {
"psr-4": { "Version\\Tests\\": "tests/" }
},
"scri... | <|file_sep|>original/composer.json
"php": "^7.2.0"
},
"require-dev": {
"phpunit/phpunit": "^6.0 || ^7.0",
"friendsofphp/php-cs-fixer": "^2.0"
},
"autoload": {
"psr-4": {
"Version\\": "src/"
},
"classmap": [
"src/"
]
},
... | e4643b073211dd3e79ec95927aa85e3203cdb60a | composer.json | composer.json | JSON |
<|file_sep|>original/README.md
JSONLD-Java RDF2Go Integration module
=====================================
[](https://travis-ci.org/jsonld-java/jsonld-java)
[](https://travis-ci.org/jsonld-java/jsonld-java-rdf2go)
[](https://travis-ci.org/jsonld-java/jsonld-java)
[ => ({
updated:
const vertPlotLine = (epoch, color, text, textAlign) => ({
<|file_sep|>src/plot-lines/dateEntryPlotLines.js.diff
original:
updated:
textAlign,
<|file_sep|>original/src/plot-lines/dateEntryPl... | width: 2,
label: {
text,
textAlign,
style: {
color,
}
}
});
export default (contract) => [
vertPlotLine(contract.purchase_time, 'navy', 'Purchase Time', 'left'),
vertPlotLine(contract.date_start, 'navy', 'Start Time', 'left'),
vertPlotLine(contract.en... | <|file_sep|>src/plot-lines/dateEntryPlotLines.js.diff
original:
const vertPlotLine = (epoch, color, text) => ({
updated:
const vertPlotLine = (epoch, color, text, textAlign) => ({
<|file_sep|>src/plot-lines/dateEntryPlotLines.js.diff
original:
updated:
textAlign,
<|file_sep|>original/src/plot-lines/dateEntryPl... | 2c09bc5a99b9c088d1fa8abb18da30c0a238a023 | src/plot-lines/dateEntryPlotLines.js | src/plot-lines/dateEntryPlotLines.js | JavaScript |
<|file_sep|>original/.travis/deploy.sh
(
mkdir out
cd out
git init
git config user.name "Travis-CI"
git config user.email "build@travis-ci.org"
cp ../main.pdf ./
mkdir sitzungsprotokolle
cp ../content/projektmanagement/sitzungsprotokolle/protokoll-*.pdf ./sitzungsprotokolle
git add .
git commit -m "Deployed to GitHub P... | (
mkdir out
cd out
git init
git config user.name "Travis-CI"
git config user.email "build@travis-ci.org"
cp ../main.pdf ./
mkdir sitzungsprotokolle
cp ../content/projektmanagement/sitzungsprotokolle/protokoll-*.pdf ./sitzungsprotokolle
mkdir praesentationen
cp -r ../presentation/ praesentationen
git add .
git commit -m... | <|file_sep|>original/.travis/deploy.sh
(
mkdir out
cd out
git init
git config user.name "Travis-CI"
git config user.email "build@travis-ci.org"
cp ../main.pdf ./
mkdir sitzungsprotokolle
cp ../content/projektmanagement/sitzungsprotokolle/protokoll-*.pdf ./sitzungsprotokolle
git add .
git commit -m "Deployed to GitHub P... | 4e129aae20d20a004eefd8f3f7c4b32c22a279a1 | .travis/deploy.sh | .travis/deploy.sh | Shell |
<|file_sep|>original/app/app.js
//LOG_STACKTRACE_ON_DEPRECATION: true,
//LOG_BINDINGS: true,
LOG_TRANSITIONS: true,
//LOG_TRANSITIONS_INTERNAL: false,
LOG_VIEW_LOOKUPS: true,
LOG_ACTIVE_GENERATION: true,
modulePrefix: 'bibliaolvaso'... | //LOG_STACKTRACE_ON_DEPRECATION: true,
//LOG_BINDINGS: true,
LOG_TRANSITIONS: true,
//LOG_TRANSITIONS_INTERNAL: false,
LOG_VIEW_LOOKUPS: true,
LOG_ACTIVE_GENERATION: true,
modulePrefix: 'bibliaolvaso',
Resolver: ... | <|file_sep|>original/app/app.js
//LOG_STACKTRACE_ON_DEPRECATION: true,
//LOG_BINDINGS: true,
LOG_TRANSITIONS: true,
//LOG_TRANSITIONS_INTERNAL: false,
LOG_VIEW_LOOKUPS: true,
LOG_ACTIVE_GENERATION: true,
modulePrefix: 'bibliaolvaso'... | eec7bf2d72337d6b84b3f68f2f76e93a3d1e4576 | app/app.js | app/app.js | JavaScript |
<|file_sep|>original/setup.py
"""
from setuptools import setup, find_packages # noqa
setup(
name='tensorpy',
version='1.0.1',
url='http://tensorpy.com',
author='Michael Mintz',
author_email='@mintzworld',
maintainer='Michael Mintz',
description='The fast & easy way to get started with Ten... | """
from setuptools import setup, find_packages # noqa
setup(
name='tensorpy',
version='1.0.1',
url='http://tensorpy.com',
author='Michael Mintz',
author_email='@mintzworld',
maintainer='Michael Mintz',
description='The fast & easy way to get started with Tensorflow',
license='The MIT... | <|file_sep|>original/setup.py
"""
from setuptools import setup, find_packages # noqa
setup(
name='tensorpy',
version='1.0.1',
url='http://tensorpy.com',
author='Michael Mintz',
author_email='@mintzworld',
maintainer='Michael Mintz',
description='The fast & easy way to get started with Ten... | f22945907bafb189645800db1e9ca804104b06db | setup.py | setup.py | Python |
<|file_sep|>original/junit4/src/test/java/io/github/bonigarcia/TestWithTimeout.java
<|file_sep|>current/junit4/src/test/java/io/github/bonigarcia/TestWithTimeout.java
<|file_sep|>updated/junit4/src/test/java/io/github/bonigarcia/TestWithTimeout.java | /*
* (C) Copyright 2017 Boni Garcia (http://bonigarcia.github.io/)
*
* 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 require... | <|file_sep|>original/junit4/src/test/java/io/github/bonigarcia/TestWithTimeout.java
<|file_sep|>current/junit4/src/test/java/io/github/bonigarcia/TestWithTimeout.java
<|file_sep|>updated/junit4/src/test/java/io/github/bonigarcia/TestWithTimeout.java
/*
* (C) Copyright 2017 Boni Garcia (http://bonigarcia.github.io/)
... | f06dd7cab4ef8b6b8d92ba2fe88835ce5f5bcceb | junit4/src/test/java/io/github/bonigarcia/TestWithTimeout.java | junit4/src/test/java/io/github/bonigarcia/TestWithTimeout.java | Java |
<|file_sep|>Casks/putio-adder.rb.diff
original:
version '2.6.1'
sha256 'd89aed7a40de99ad3e75ca05995c088c5147282cb387beaaa5c496c5fc9b2307'
updated:
version '2.7'
sha256 'b4ac5fc97da0a8b83e56bd5cac0e1795ce7102aae3a69fb77fa64d9ed2f22c14'
<|file_sep|>original/Casks/putio-adder.rb
class PutioAdder < Cask
version '... | class PutioAdder < Cask
version '2.7'
sha256 'b4ac5fc97da0a8b83e56bd5cac0e1795ce7102aae3a69fb77fa64d9ed2f22c14'
url 'https://github.com/nicoSWD/put.io-adder/releases/download/v2.7/put.io-adder-v2.7.zip'
homepage 'https://github.com/nicoSWD/put.io-adder'
link 'put.io adder.app'
end | <|file_sep|>Casks/putio-adder.rb.diff
original:
version '2.6.1'
sha256 'd89aed7a40de99ad3e75ca05995c088c5147282cb387beaaa5c496c5fc9b2307'
updated:
version '2.7'
sha256 'b4ac5fc97da0a8b83e56bd5cac0e1795ce7102aae3a69fb77fa64d9ed2f22c14'
<|file_sep|>original/Casks/putio-adder.rb
class PutioAdder < Cask
version '... | 06340ddd4b8d3f4d2ad2b6c08671447bb195447f | Casks/putio-adder.rb | Casks/putio-adder.rb | Ruby |
<|file_sep|>original/README.md
# ColorDivider-FE
Provides a front end for the color divider API [ColorDivider-API](https://github.com/kyletolle/color_divider-api).
## License
MIT
<|file_sep|>current/README.md
# ColorDivider-FE
Provides a front end for the color divider API [ColorDivider-API](https://github.com/kyle... | # ColorDivider-FE
Provides a front end for the color divider API [ColorDivider-API](https://github.com/kyletolle/color_divider-api).
You can check out the live website at [CheechCode](http://cheechcode.com/color_divider-fe/).
## License
MIT | <|file_sep|>original/README.md
# ColorDivider-FE
Provides a front end for the color divider API [ColorDivider-API](https://github.com/kyletolle/color_divider-api).
## License
MIT
<|file_sep|>current/README.md
# ColorDivider-FE
Provides a front end for the color divider API [ColorDivider-API](https://github.com/kyle... | 9075a1d859c46ea4cc6ebebb146b11861bffacac | README.md | README.md | Markdown |
<|file_sep|>original/src/modtypes/socket.h
#pragma once
#include "../main.h"
class Socket {
public:
virtual ~Socket() {}
virtual unsigned int apiVersion() = 0;
virtual void connect(const std::string& server, const std::string& port, const std::string& bindAddr = "") {}
virtual std::string receive() { return "... | #pragma once
#include "../main.h"
class Socket {
public:
virtual ~Socket() {}
virtual unsigned int apiVersion() = 0;
virtual void connectServer(const std::string& server, const std::string& port, const std::string& bindAddr = "") {}
virtual std::string receive() { return ""; }
virtual void send(const std::s... | <|file_sep|>original/src/modtypes/socket.h
#pragma once
#include "../main.h"
class Socket {
public:
virtual ~Socket() {}
virtual unsigned int apiVersion() = 0;
virtual void connect(const std::string& server, const std::string& port, const std::string& bindAddr = "") {}
virtual std::string receive() { return "... | ad3ed34bd544c0edc4a6afbe0e3278be2f3bcc06 | src/modtypes/socket.h | src/modtypes/socket.h | C |
<|file_sep|>original/runtime/GCCLibraries/libgcc/eprintf.c
<|file_sep|>current/runtime/GCCLibraries/libgcc/eprintf.c
<|file_sep|>updated/runtime/GCCLibraries/libgcc/eprintf.c | #include <stdio.h>
void abort(void);
/* This is used by the `assert' macro. */
void
__eprintf (const char *string, const char *expression,
unsigned int line, const char *filename)
{
fprintf (stderr, string, expression, line, filename);
fflush (stderr);
abort ();
}
| <|file_sep|>original/runtime/GCCLibraries/libgcc/eprintf.c
<|file_sep|>current/runtime/GCCLibraries/libgcc/eprintf.c
<|file_sep|>updated/runtime/GCCLibraries/libgcc/eprintf.c
#include <stdio.h>
void abort(void);
/* This is used by the `assert' macro. */
void
__eprintf (const char *string, const char *expression,
... | cfb81918edab8bed2c8bbab5602342b60c1a60a7 | runtime/GCCLibraries/libgcc/eprintf.c | runtime/GCCLibraries/libgcc/eprintf.c | C |
<|file_sep|>original/conf/copy-index-with-ga.sh
#!/bin/bash
sed -e "/GA HERE/{
r conf/analytics.txt
d }" frontend/index.html | \
sed -e "s/UA-HERE/$(cat /srv/static/google-analytics-id | tr -d '\n')/" > /srv/static/index.html
<|file_sep|>current/conf/copy-index-with-ga.sh
#!/bin/bash
sed -e "/GA HERE/{
r conf/an... | #!/bin/bash
# http://www.grymoire.com/Unix/Sed.html#uh-37
sed -e "/GA HERE/{
r conf/analytics.txt
d }" frontend/index.html | \
sed -e "s/UA-HERE/$(cat /srv/static/google-analytics-id | tr -d '\n')/" > /srv/static/index.html | <|file_sep|>original/conf/copy-index-with-ga.sh
#!/bin/bash
sed -e "/GA HERE/{
r conf/analytics.txt
d }" frontend/index.html | \
sed -e "s/UA-HERE/$(cat /srv/static/google-analytics-id | tr -d '\n')/" > /srv/static/index.html
<|file_sep|>current/conf/copy-index-with-ga.sh
#!/bin/bash
sed -e "/GA HERE/{
r conf/an... | 5f04d3fa1e9bd91da014083100ca11949ec0c895 | conf/copy-index-with-ga.sh | conf/copy-index-with-ga.sh | Shell |
<|file_sep|>original/bower.json
{
"name": "slides-code-highlighter",
"license": "Apache-2.0",
"private": true,
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"ace-builds": "^1.2.6",
"google-code-prettify": "^1.0.5",
"jquery": "^3... | {
"name": "slides-code-highlighter",
"license": "Apache-2.0",
"private": true,
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"ace-builds": "^1.2.6",
"google-code-prettify": "git@github.com:google/code-prettify.git",
"jquery": "^... | <|file_sep|>original/bower.json
{
"name": "slides-code-highlighter",
"license": "Apache-2.0",
"private": true,
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"ace-builds": "^1.2.6",
"google-code-prettify": "^1.0.5",
"jquery": "^3... | b545e2a7ed2813fb69fd01eec7b50af9723b8c34 | bower.json | bower.json | JSON |
<|file_sep|>original/src/AppBundle/Controller/SecurityController.php
<|file_sep|>current/src/AppBundle/Controller/SecurityController.php
<|file_sep|>updated/src/AppBundle/Controller/SecurityController.php | <?php
namespace AppBundle\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
class SecurityController extends Controller
{
/**
* @Route("/login-demo", name="login_demo")
*/
... | <|file_sep|>original/src/AppBundle/Controller/SecurityController.php
<|file_sep|>current/src/AppBundle/Controller/SecurityController.php
<|file_sep|>updated/src/AppBundle/Controller/SecurityController.php
<?php
namespace AppBundle\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\... | ab9581d53f3e0f4ff5a25a986cc96dccf3f3e6d3 | src/AppBundle/Controller/SecurityController.php | src/AppBundle/Controller/SecurityController.php | PHP |
<|file_sep|>original/composer.json
{
"name": "hubzero/framework",
"description": "The HUBzero PHP framework",
"keywords": ["framework", "php", "hubzero"],
"license": "MIT",
"require": {
"php": ">=5.4.0",
"symfony/http-foundation": "2.5.5"
},
"require-dev": {
"phpunit/... | {
"name": "hubzero/framework",
"description": "The HUBzero PHP framework",
"keywords": ["framework", "php", "hubzero"],
"license": "MIT",
"require": {
"php": ">=5.4.0",
"symfony/http-foundation": "2.5.5"
},
"require-dev": {
"phpunit/phpunit": "4.*",
"phpunit/d... | <|file_sep|>original/composer.json
{
"name": "hubzero/framework",
"description": "The HUBzero PHP framework",
"keywords": ["framework", "php", "hubzero"],
"license": "MIT",
"require": {
"php": ">=5.4.0",
"symfony/http-foundation": "2.5.5"
},
"require-dev": {
"phpunit/... | 60ac81253cd125478564942b1b91dd4d7a093639 | composer.json | composer.json | JSON |
<|file_sep|>original/lib/schreihals/app.rb
set :author_name, "Author"
set :disqus_name, nil
set :google_analytics_id, nil
set :gauges_id, nil
set :read_more, "Read Complete Article"
set :twitter_id, nil
set :footer, ""
end
def render_page(slug)
if @post = Post.wi... | set :author_name, "Author"
set :disqus_name, nil
set :google_analytics_id, nil
set :gauges_id, nil
set :read_more, "Read Complete Article"
set :twitter_id, nil
set :footer, ""
end
def render_page(slug)
if @post = Post.where(slugs: slug).first
haml :post
... | <|file_sep|>original/lib/schreihals/app.rb
set :author_name, "Author"
set :disqus_name, nil
set :google_analytics_id, nil
set :gauges_id, nil
set :read_more, "Read Complete Article"
set :twitter_id, nil
set :footer, ""
end
def render_page(slug)
if @post = Post.wi... | c3cdc16378b4aca961ddcf26feb3a1301c2980b5 | lib/schreihals/app.rb | lib/schreihals/app.rb | Ruby |
<|file_sep|>original/app/components/SearchResultItem.js
if(word === term) {
return (<b>{word} </b>);
} else {
return (<span>{word} </span>);
}
});
}
const boldedPreviewText = boldTerms(previewText, currentSearch);
const boldedTitle = boldTerms(ti... | if(word === term) {
return (<b>{word} </b>);
} else {
return (<span>{word} </span>);
}
});
}
const boldedPreviewText = boldTerms(previewText, currentSearch);
const boldedTitle = boldTerms(title, currentSearch);
return (
<div className="... | <|file_sep|>original/app/components/SearchResultItem.js
if(word === term) {
return (<b>{word} </b>);
} else {
return (<span>{word} </span>);
}
});
}
const boldedPreviewText = boldTerms(previewText, currentSearch);
const boldedTitle = boldTerms(ti... | 175e143acba4f2a122aba6d3b96ed16f4b323605 | app/components/SearchResultItem.js | app/components/SearchResultItem.js | JavaScript |
<|file_sep|>original/.travis.yml
language: ruby
env:
- secure: cjx/dR9jqO9mkaFMK/5I3A2cD7DU/PebidQDJMjukAKRoRIM7YvL7oneFJCuYXj0XfuXSi1k+92A++msLEyZnI0cTuQ8HcDMoZQI89m88mvkxwxADy57M2w3DdQfrLtWMBVT6xxykHpddltKM4ABYW1/zOy9A0t3ABFbrLjgKYQ=
rvm:
- 2.1.2
before_script:
- bundle exec rake db:create db:structure:load
scr... | language: ruby
env:
- secure: cjx/dR9jqO9mkaFMK/5I3A2cD7DU/PebidQDJMjukAKRoRIM7YvL7oneFJCuYXj0XfuXSi1k+92A++msLEyZnI0cTuQ8HcDMoZQI89m88mvkxwxADy57M2w3DdQfrLtWMBVT6xxykHpddltKM4ABYW1/zOy9A0t3ABFbrLjgKYQ=
rvm:
- 2.1.2
before_script:
- bundle exec rake db:create db:structure:load
script: bundle exec rake test
#after... | <|file_sep|>original/.travis.yml
language: ruby
env:
- secure: cjx/dR9jqO9mkaFMK/5I3A2cD7DU/PebidQDJMjukAKRoRIM7YvL7oneFJCuYXj0XfuXSi1k+92A++msLEyZnI0cTuQ8HcDMoZQI89m88mvkxwxADy57M2w3DdQfrLtWMBVT6xxykHpddltKM4ABYW1/zOy9A0t3ABFbrLjgKYQ=
rvm:
- 2.1.2
before_script:
- bundle exec rake db:create db:structure:load
scr... | 78b3da82aa29bc72e88a3769e2562d0df19991a2 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/music.md
---
layout: page
title: Music
permalink: /music/
custom_css: songList
custom_js: songz
---
Here's my jazz demo:
<audio controls="controls" id="currentSong" src="https://archive.org/download/plays_some_standards/embraceable_you.mp3"> Your browser does not support the <code>audio</code> el... | ---
layout: page
title: Music
permalink: /music/
custom_css: songList
custom_js: songz
---
Here's my jazz demo:
<audio controls="controls" id="currentSong" src="https://archive.org/download/plays_some_standards/sunny.mp3"> Your browser does not support the <code>audio</code> element. :^(
</audio>
<p></p>
<ul class... | <|file_sep|>original/music.md
---
layout: page
title: Music
permalink: /music/
custom_css: songList
custom_js: songz
---
Here's my jazz demo:
<audio controls="controls" id="currentSong" src="https://archive.org/download/plays_some_standards/embraceable_you.mp3"> Your browser does not support the <code>audio</code> el... | 83329e9e8b252fe72a92405f173c51f710188479 | music.md | music.md | Markdown |
<|file_sep|>original/lib/components/CurrentWeatherCard.js
return(
<section>
Please Enter a State and City
</section>
)
}
return(
<section>
<p>Current Day:{weatherData[0].forecast.txt_forecast.forecastday[0].title}</p>
<p>Summary:{weatherData[0].forecast.txt_forecast.forec... | return(
<section>
Please Enter a State and City
</section>
)
}
return(
<section>
<p>Current Day:{weatherData[0].forecast.txt_forecast.forecastday[0].title}</p>
<p>Summary:{weatherData[0].forecast.txt_forecast.forecastday[0].fcttext}</p>
<p>Icon:{weatherData[0].forec... | <|file_sep|>original/lib/components/CurrentWeatherCard.js
return(
<section>
Please Enter a State and City
</section>
)
}
return(
<section>
<p>Current Day:{weatherData[0].forecast.txt_forecast.forecastday[0].title}</p>
<p>Summary:{weatherData[0].forecast.txt_forecast.forec... | 45d34d3b113db4a5f4e4848687fca8a89bab404b | lib/components/CurrentWeatherCard.js | lib/components/CurrentWeatherCard.js | JavaScript |
<|file_sep|>src/modules/Header/components/Title/Title.jsx.diff
original:
<div className='Title__icon Title__icon--left'>
<Tooltip content="Board Info" position="left">
<IconCircle
name={i.navbarInfo}
onClick={onCompose} />
... | onMouseEnter={this.handleMouseEnter}
onMouseLeave={this.handleMouseLeave}>
<button
className='button'
onClick={onTitleClick}>
{children}
</button>
</div>
)
}
handleMouseEnter() {
this... | <|file_sep|>src/modules/Header/components/Title/Title.jsx.diff
original:
<div className='Title__icon Title__icon--left'>
<Tooltip content="Board Info" position="left">
<IconCircle
name={i.navbarInfo}
onClick={onCompose} />
... | 6e90066ae27b4425063b3dcb9b8a2efd62fc488f | src/modules/Header/components/Title/Title.jsx | src/modules/Header/components/Title/Title.jsx | JSX |
<|file_sep|>Casks/futuniuniu.rb.diff
original:
class Futuniuniu < Cask
version '2.14.316'
sha256 'abe44dc80551e6cfaea7bc2265997766fd3fadd68a2f859193db732598516028'
updated:
cask :v1 => 'futuniuniu' do
version '2.16.354'
sha256 'f835ad85b4e0b47f25bc6e436f324dc7d5b0fa5bffe4d0af5b1889150854a1d4'
<|file_sep|>Casks/... | cask :v1 => 'futuniuniu' do
version '2.16.354'
sha256 'f835ad85b4e0b47f25bc6e436f324dc7d5b0fa5bffe4d0af5b1889150854a1d4'
url 'https://www.futu5.com/client/nn/mac/FTNNForMac_2.16.354_1117.dmg'
homepage 'http://www.futu5.com'
license :commercial
# Renamed for consistency: app name is different in the Finder... | <|file_sep|>Casks/futuniuniu.rb.diff
original:
class Futuniuniu < Cask
version '2.14.316'
sha256 'abe44dc80551e6cfaea7bc2265997766fd3fadd68a2f859193db732598516028'
updated:
cask :v1 => 'futuniuniu' do
version '2.16.354'
sha256 'f835ad85b4e0b47f25bc6e436f324dc7d5b0fa5bffe4d0af5b1889150854a1d4'
<|file_sep|>Casks/... | 600cddcb8a9d36bf81140bad07df4b5c6778d253 | Casks/futuniuniu.rb | Casks/futuniuniu.rb | Ruby |
<|file_sep|>original/.travis.yml
language: python
python:
- "2.7"
env:
- DJANGO=1_4
- DJANGO=1_7
install: "pip install -r test-projects/common.pip -r test-projects/django_${DJANGO}/setup.pip"
script: "cd test-projects/django_${DJANGO} && python manage.py test pubsubpull${TESTS}"
<|file_sep|>current/.tra... | language: python
python:
- "2.7"
env:
- DJANGO=1_0
- DJANGO=1_4
- DJANGO=1_7
install: "pip install -r test-projects/common.pip -r test-projects/django_${DJANGO}/setup.pip"
script: "cd test-projects/django_${DJANGO} && python manage.py test pubsubpull${TESTS}" | <|file_sep|>original/.travis.yml
language: python
python:
- "2.7"
env:
- DJANGO=1_4
- DJANGO=1_7
install: "pip install -r test-projects/common.pip -r test-projects/django_${DJANGO}/setup.pip"
script: "cd test-projects/django_${DJANGO} && python manage.py test pubsubpull${TESTS}"
<|file_sep|>current/.tra... | 6cf397b9e7f9d8ff676ae15e2ee882ed46b55e4b | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/show-a-message-when-two-or-more-random-numbers-match.md
> In this task, you'll use HTML, CSS, and JavaScript to show a message when some of the random numbers match.

Now that your page has three different random numbers, sometimes they'll match. Write some JavaScript that checks ... | > In this task, you'll use HTML, CSS, and JavaScript to show a message when some of the random numbers match.

Now that your page has three different random numbers, sometimes they'll match. Write some JavaScript that checks if any of numbers match.
## Highlighting
Highlight the numbers that are the... | <|file_sep|>original/show-a-message-when-two-or-more-random-numbers-match.md
> In this task, you'll use HTML, CSS, and JavaScript to show a message when some of the random numbers match.

Now that your page has three different random numbers, sometimes they'll match. Write some JavaScript that checks ... | 2ed84787fb6ae9c9277d2a4ffa7d7ca48e0f1ae3 | show-a-message-when-two-or-more-random-numbers-match.md | show-a-message-when-two-or-more-random-numbers-match.md | Markdown |
<|file_sep|>original/pages/products/page-products.htm
---
url: /products
name: Products
description: Lists the products.
action: shop:products
template: default
published: true
---
<section class="products grid-container">
{{ partial('product-list', { products: products }) }}
</section>
<|file_sep|>current/pages/prod... | ---
url: /products
name: Products
description: Lists the products.
action: shop:products
template: default
published: true
---
<section class="products grid-container">
<h1>Shop</h1>
{{ partial('product-list', { products: products }) }}
</section> | <|file_sep|>original/pages/products/page-products.htm
---
url: /products
name: Products
description: Lists the products.
action: shop:products
template: default
published: true
---
<section class="products grid-container">
{{ partial('product-list', { products: products }) }}
</section>
<|file_sep|>current/pages/prod... | 072f445d4046fb1f8243f94bc76d108351a0d5a7 | pages/products/page-products.htm | pages/products/page-products.htm | HTML |
<|file_sep|>original/specimen5/main.cpp
<|file_sep|>current/specimen5/main.cpp
<|file_sep|>updated/specimen5/main.cpp | // A nested loop.
#include <stdio.h>
int main() {
int n;
scanf("%d", &n);
int *A = new int[n];
int *B = new int[n];
for (int i = 0; i < n; ++i) {
scanf("%d", &A[i]);
}
for (int i = 0; i < n; ++i) {
scanf("%d", &B[i]);
}
int sum = 0;
for (int i = 0; i < n; ++i) {
for (int j = 0; j < ... | <|file_sep|>original/specimen5/main.cpp
<|file_sep|>current/specimen5/main.cpp
<|file_sep|>updated/specimen5/main.cpp
// A nested loop.
#include <stdio.h>
int main() {
int n;
scanf("%d", &n);
int *A = new int[n];
int *B = new int[n];
for (int i = 0; i < n; ++i) {
scanf("%d", &A[i]);
}
for (int i... | b003093609337d9ba766d1e035a91512fbf94b0f | specimen5/main.cpp | specimen5/main.cpp | C++ |
<|file_sep|>original/lib/google_visualr/app/helpers/view_helper.rb
module GoogleVisualr
module Rails
module ViewHelper
extend ActiveSupport::Concern
included do
helper_method "render_chart"
end
def render_chart(chart, dom, options={})
script_tag = options.fetch(:script_ta... | module GoogleVisualr
module Rails
module ViewHelper
extend ActiveSupport::Concern
included do
# Rails 5 compatibility fix
if respond_to?(:helper_method)
helper_method "render_chart"
end
end
def render_chart(chart, dom, options={})
script_tag = op... | <|file_sep|>original/lib/google_visualr/app/helpers/view_helper.rb
module GoogleVisualr
module Rails
module ViewHelper
extend ActiveSupport::Concern
included do
helper_method "render_chart"
end
def render_chart(chart, dom, options={})
script_tag = options.fetch(:script_ta... | 5dd3ffbb470da1d66f34826089a8ce62deffefa6 | lib/google_visualr/app/helpers/view_helper.rb | lib/google_visualr/app/helpers/view_helper.rb | Ruby |
<|file_sep|>original/circle.yml
- postgresql
dependencies:
pre:
- sudo apt-get update
- sudo apt-get install python-pip
- sudo apt-get install build-essential
- sudo apt-get install python-dev
- sudo apt-get install libpq-dev
- sudo apt-get install postgresql-server-dev-all
- sudo apt... | - postgresql
dependencies:
pre:
- sudo apt-get update
- sudo apt-get install python-pip
- sudo apt-get install build-essential
- sudo apt-get install python-dev
- sudo apt-get install libpq-dev
- sudo apt-get install postgresql-server-dev-all
- sudo apt-get install postgresql-common
... | <|file_sep|>original/circle.yml
- postgresql
dependencies:
pre:
- sudo apt-get update
- sudo apt-get install python-pip
- sudo apt-get install build-essential
- sudo apt-get install python-dev
- sudo apt-get install libpq-dev
- sudo apt-get install postgresql-server-dev-all
- sudo apt... | 966e99782ca5d156e4357d52a3d2e7d6acc46801 | circle.yml | circle.yml | YAML |
<|file_sep|>original/memopol/base/templates/blocks/what_is_memopol.html
<div class="panel callout">
<h3>What I'm doing here?</h3>
<p>Political Memory is a toolbox designed to help you reach members of European Parliament (MEPs), and track their voting records. We hope it will help citizens to get to better know... | <div class="panel callout">
<h3>What is memopol?</h3>
<p>Political Memory is a tool designed by La Quadrature du Net to help European citizens to reach members of European Parliament (MEPs) and track their voting records on issues related to fundamental freedoms online. <em><a href="{% url about %}">More...</a... | <|file_sep|>original/memopol/base/templates/blocks/what_is_memopol.html
<div class="panel callout">
<h3>What I'm doing here?</h3>
<p>Political Memory is a toolbox designed to help you reach members of European Parliament (MEPs), and track their voting records. We hope it will help citizens to get to better know... | 6c1602ee9459adf8b8b4e7bb50338787210ba662 | memopol/base/templates/blocks/what_is_memopol.html | memopol/base/templates/blocks/what_is_memopol.html | HTML |
<|file_sep|>original/beringei/if/build_thrift.sh
<|file_sep|>current/beringei/if/build_thrift.sh
<|file_sep|>updated/beringei/if/build_thrift.sh | #!/bin/bash
# fail script on any error
set -e
# build every thrift file
for THRIFT_FILE in $(ls *.thrift); do
echo "Building file: " $THRIFT_FILE
PYTHONPATH=/tmp/fbthrift-2016.11.07.00/thrift/.python-local/lib/python python2 -mthrift_compiler.main --gen cpp2 $THRIFT_FILE -I../..
done | <|file_sep|>original/beringei/if/build_thrift.sh
<|file_sep|>current/beringei/if/build_thrift.sh
<|file_sep|>updated/beringei/if/build_thrift.sh
#!/bin/bash
# fail script on any error
set -e
# build every thrift file
for THRIFT_FILE in $(ls *.thrift); do
echo "Building file: " $THRIFT_FILE
PYTHONPATH=/tmp/f... | db02a0cfe54df9ab90ed2a0bce4bd6046bc7e706 | beringei/if/build_thrift.sh | beringei/if/build_thrift.sh | Shell |
<|file_sep|>original/lib/kosmos/packages/kw_rocketry.rb
<|file_sep|>current/lib/kosmos/packages/kw_rocketry.rb
<|file_sep|>updated/lib/kosmos/packages/kw_rocketry.rb | class KWRocketry < Kosmos::Package
title 'KW Rocketry'
url 'http://kerbalspaceport.com/wp/wp-content/themes/kerbal/inc/download.php?f=uploads/2013/12/KW-Release-Package-v2.5.6B.zip'
def install
merge_directory 'KW Release Package v2.5.6B/GameData'
end
end | <|file_sep|>original/lib/kosmos/packages/kw_rocketry.rb
<|file_sep|>current/lib/kosmos/packages/kw_rocketry.rb
<|file_sep|>updated/lib/kosmos/packages/kw_rocketry.rb
class KWRocketry < Kosmos::Package
title 'KW Rocketry'
url 'http://kerbalspaceport.com/wp/wp-content/themes/kerbal/inc/download.php?f=uploads/2013/1... | 91d5d7fdae56f4740d125f25338f4d222af5d4f3 | lib/kosmos/packages/kw_rocketry.rb | lib/kosmos/packages/kw_rocketry.rb | Ruby |
<|file_sep|>original/.travis.yml
language: node_js
node_js:
- "0.10"
- "0.12"
- "4"
sudo: false
script:
- "npm run test-travis"
after_script:
- "npm install coveralls@2 && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- "0.10"
- "0.12"... | language: node_js
node_js:
- "0.10"
- "0.12"
- "4"
- "6"
sudo: false
script:
- "npm run test-travis"
after_script:
- "npm install coveralls@2 && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls" | <|file_sep|>original/.travis.yml
language: node_js
node_js:
- "0.10"
- "0.12"
- "4"
sudo: false
script:
- "npm run test-travis"
after_script:
- "npm install coveralls@2 && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"
<|file_sep|>current/.travis.yml
language: node_js
node_js:
- "0.10"
- "0.12"... | 4a0d008a026d28a1708c1b5920a05c4421a5d038 | .travis.yml | .travis.yml | YAML |
<|file_sep|>metashare/start-solr.sh.diff
original:
updated:
export SOLR_PORT=8983
<|file_sep|>original/metashare/start-solr.sh
export MAINSCHEMAFILE=$SOLR_ROOT/solr/main/conf/schema.xml
export TESTINGSCHEMAFILE=$SOLR_ROOT/solr/testing/conf/schema.xml
# If any solr server is currently running, stop it first:
echo "Ch... |
export MAINSCHEMAFILE=$SOLR_ROOT/solr/main/conf/schema.xml
export TESTINGSCHEMAFILE=$SOLR_ROOT/solr/testing/conf/schema.xml
# If any solr server is currently running, stop it first:
echo "Checking for a previous running SOLR server..."
"$METASHAREDIR/stop-solr.sh"
# Update schema.xml files, just in case:
python $ME... | <|file_sep|>metashare/start-solr.sh.diff
original:
updated:
export SOLR_PORT=8983
<|file_sep|>original/metashare/start-solr.sh
export MAINSCHEMAFILE=$SOLR_ROOT/solr/main/conf/schema.xml
export TESTINGSCHEMAFILE=$SOLR_ROOT/solr/testing/conf/schema.xml
# If any solr server is currently running, stop it first:
echo "Ch... | f4253ce81789f4958b21a40dd076293169b809f9 | metashare/start-solr.sh | metashare/start-solr.sh | Shell |
<|file_sep|>original/.travis.yml
language: python
python:
- 2.7
- 3.2
- 3.3
- 3.4
- 3.5
- 3.6
before_install:
- pip install coveralls
install:
- pip install Django==${DJANGO}
- pip install -e .
- pip install -r requirements-test.txt
script: make test
env:
<|file_sep|>current/.travis.yml
languag... | language: python
python:
- 2.7
- 3.2
- 3.3
- 3.4
- 3.5
- 3.6
- 3.7
before_install:
- pip install coveralls
install:
- pip install Django==${DJANGO}
- pip install -e .
- pip install -r requirements-test.txt
script: make test
| <|file_sep|>original/.travis.yml
language: python
python:
- 2.7
- 3.2
- 3.3
- 3.4
- 3.5
- 3.6
before_install:
- pip install coveralls
install:
- pip install Django==${DJANGO}
- pip install -e .
- pip install -r requirements-test.txt
script: make test
env:
<|file_sep|>current/.travis.yml
languag... | cc0b74b311b058ceb234a8ad886504f32f6e5fe1 | .travis.yml | .travis.yml | YAML |
<|file_sep|>apps/xee/web/templates/experiment/index.html.eex.diff
original:
updated:
<script>
window.onload= function(){
var lazyloading = document.getElementById("lazyloading");
var jsfile = document.createElement("script");
jsfile.setAttribute("src", "<%= @javascript %>");
lazyloading.appe... | <%= if @host do %>
<div id="experiment-token" class="modal">
<div class="modal-content">
<h3>実験記号: <em><%= @x_token %></em></h3>
</div>
</div>
<div class="fixed-btn" style="position: fixed; bottom: 100px; right: 30px; margin: 0px;">
<a class="waves-effect waves-light btn-large red modal-trigger"... | <|file_sep|>apps/xee/web/templates/experiment/index.html.eex.diff
original:
updated:
<script>
window.onload= function(){
var lazyloading = document.getElementById("lazyloading");
var jsfile = document.createElement("script");
jsfile.setAttribute("src", "<%= @javascript %>");
lazyloading.appe... | 47355d14b3af7740464e2a194d6971ee92049749 | apps/xee/web/templates/experiment/index.html.eex | apps/xee/web/templates/experiment/index.html.eex | HTML+EEX |
<|file_sep|>original/account_move_fiscal_month/models/account_move_line.py
# Copyright 2017 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class AccountMoveLine(models.Model):
_inherit = 'account.move.line'
date_range_fm_id = fields.Many2one(
... | # Copyright 2017 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class AccountMoveLine(models.Model):
_inherit = 'account.move.line'
date_range_fm_id = fields.Many2one(
related='move_id.date_range_fm_id',
) | <|file_sep|>original/account_move_fiscal_month/models/account_move_line.py
# Copyright 2017 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class AccountMoveLine(models.Model):
_inherit = 'account.move.line'
date_range_fm_id = fields.Many2one(
... | 88098475358aaee18d32a1ad2c4a4301672bca0e | account_move_fiscal_month/models/account_move_line.py | account_move_fiscal_month/models/account_move_line.py | Python |
<|file_sep|>original/requirements/doc.txt
-r ./base.txt
sphinx==1.7.4
alagitpull==0.0.20
releases==1.5.0
<|file_sep|>current/requirements/doc.txt
-r ./base.txt
sphinx==1.7.4
alagitpull==0.0.20
releases==1.5.0
<|file_sep|>updated/requirements/doc.txt | -r ./base.txt
sphinx==1.7.5
alagitpull==0.0.20
releases==1.5.0 | <|file_sep|>original/requirements/doc.txt
-r ./base.txt
sphinx==1.7.4
alagitpull==0.0.20
releases==1.5.0
<|file_sep|>current/requirements/doc.txt
-r ./base.txt
sphinx==1.7.4
alagitpull==0.0.20
releases==1.5.0
<|file_sep|>updated/requirements/doc.txt
-r ./base.txt
sphinx==1.7.5
alagitpull==0.0.20
releases==1.5.0 | 52467ae348251bf8391866365f66cb0499bd2399 | requirements/doc.txt | requirements/doc.txt | Text |
<|file_sep|>original/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/DevModeResource.java
@GET
@Path("/error")
@Produces(MediaType.TEXT_PLAIN)
public CompletionStage<Response> getErrorMessage() throws SQLException {
CompletableFuture<Response> future =... | MSSQLPool client;
@GET
@Path("/error")
@Produces(MediaType.TEXT_PLAIN)
public CompletionStage<Response> getErrorMessage() throws SQLException {
CompletableFuture<Response> future = new CompletableFuture<>();
client.query("SELECT 1").execute(ar -> {
Class<?> expectedExcep... | <|file_sep|>original/extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/DevModeResource.java
@GET
@Path("/error")
@Produces(MediaType.TEXT_PLAIN)
public CompletionStage<Response> getErrorMessage() throws SQLException {
CompletableFuture<Response> future =... | d1759c0a1f0be44a645b5a41b22566d704c713cd | extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/DevModeResource.java | extensions/reactive-mssql-client/deployment/src/test/java/io/quarkus/reactive/mssql/client/DevModeResource.java | Java |
<|file_sep|>original/Menu/DefaultMenuBuilder.php
}
/**
* @param Request $request
* @param Router $router
*/
public function createAdminMenu(Request $request)
{
$menu = $this->factory->createItem('root', array('childrenAttributes' => array('id' => 'main_navigation', 'class'=>'men... | {
$this->factory = $factory;
}
/**
* @param Request $request
* @param Router $router
*/
public function createAdminMenu(Request $request)
{
$menu = $this->factory->createItem('root', array('childrenAttributes' => array('id' => 'main_navigation', 'class'=>'menu') ) );... | <|file_sep|>original/Menu/DefaultMenuBuilder.php
}
/**
* @param Request $request
* @param Router $router
*/
public function createAdminMenu(Request $request)
{
$menu = $this->factory->createItem('root', array('childrenAttributes' => array('id' => 'main_navigation', 'class'=>'men... | c11990e45679eff220e1e7fb0e1c966995266d62 | Menu/DefaultMenuBuilder.php | Menu/DefaultMenuBuilder.php | PHP |
<|file_sep|>original/spec/controllers/admin/extensions_controller_spec.rb
before :each do
get :index
end
it "should be successful" do
response.should be_success
end
it "should render the index template" do
response.should render_template("index")
end
it "should list all ... | before :each do
get :index
end
it "should be successful" do
response.should be_success
end
it "should render the index template" do
response.should render_template("index")
end
it "should list all extensions" do
assigns[:extensions].sort_by(&:name).should == Radian... | <|file_sep|>original/spec/controllers/admin/extensions_controller_spec.rb
before :each do
get :index
end
it "should be successful" do
response.should be_success
end
it "should render the index template" do
response.should render_template("index")
end
it "should list all ... | 95a028242c95a16eaa17359e9126fd28069dcb64 | spec/controllers/admin/extensions_controller_spec.rb | spec/controllers/admin/extensions_controller_spec.rb | Ruby |
<|file_sep|>original/docs/README.md
# Atom Docs

Most of the Atom user and developer documentation is contained in the [Atom Flight Manual](https://github.com/atom/flight-manual.atom.io) repository.
In this dire... | # Atom Docs

Most of the Atom user and developer documentation is contained in the [Atom Flight Manual](https://github.com/atom/flight-manual.atom.io) repository.
In this directory you can only find very specifi... | <|file_sep|>original/docs/README.md
# Atom Docs

Most of the Atom user and developer documentation is contained in the [Atom Flight Manual](https://github.com/atom/flight-manual.atom.io) repository.
In this dire... | ab1fb2f217aa94cac98105316c7f164bfb6251bd | docs/README.md | docs/README.md | Markdown |
<|file_sep|>original/Library/RegularExpression.json
{"PersonalInfo": {"UsingLanguage": ">\u4f7f\u7528\u8bed\u8a00<.*?>([^<>]+?)</", "Gender": ">\u6027\u522b<.*?>([^<>]+?)</", "Hometown": "\u5bb6\u4e61.*?<a href=\".*?\">(.*?)</a>", "Education": {"InfoRange": "<div id=\"education\">(.*?)</div><div id=\"", "RegularExpress... | {"PersonalInfo": {"UsingLanguage": ">\u4f7f\u7528\u8bed\u8a00<.*?>([^<>]+?)</", "Gender": ">\u6027\u522b<.*?>([^<>]+?)</", "Work": {"InfoRange": "<div id=\"work\">(.*?)</div><div id=\"", "RegularExpression": ["<img .*?></a><div class=.*?>(.*?)<div class=", {"Location": "<span class=\"[^ \\d]*? [^ \\d]*?\">([^<>\\d]*?)<... | <|file_sep|>original/Library/RegularExpression.json
{"PersonalInfo": {"UsingLanguage": ">\u4f7f\u7528\u8bed\u8a00<.*?>([^<>]+?)</", "Gender": ">\u6027\u522b<.*?>([^<>]+?)</", "Hometown": "\u5bb6\u4e61.*?<a href=\".*?\">(.*?)</a>", "Education": {"InfoRange": "<div id=\"education\">(.*?)</div><div id=\"", "RegularExpress... | 1c746c423bd1fbf72be2e60f460458f8a595ff1d | Library/RegularExpression.json | Library/RegularExpression.json | JSON |
<|file_sep|>util/linkJS.py.diff
original:
addContents(source_base, source_fn, target)
updated:
addContents(os.path.join(source_base, source_fn), target)
<|file_sep|>util/linkJS.py.diff
original:
addContents(module_base, module_fn, target)
updated:
... | target.write(prologue)
# Add files listed in file_list_fn
with open(file_list_fn) as file_list:
for source_fn in file_list:
source_fn = source_fn.replace("/", os.path.sep).strip()
if len(source_fn) > 0 and source_fn[0] != "#":
addC... | <|file_sep|>util/linkJS.py.diff
original:
addContents(source_base, source_fn, target)
updated:
addContents(os.path.join(source_base, source_fn), target)
<|file_sep|>util/linkJS.py.diff
original:
addContents(module_base, module_fn, target)
updated:
... | 8541ec09e237f1401095d31177bdde9ac1adaa39 | util/linkJS.py | util/linkJS.py | Python |
<|file_sep|>tests/tests_unit.yml.diff
original:
updated:
- hosts: all
name: Setup for test running
tasks:
# FIXME: change with_items to loop when test-harness is updated
- package:
name: "{{ item }}"
state: present
ignore_errors: true
with_items:
- NetworkManager-libnm
... | ignore_errors: true
register: python3_available
- command: python3 /tmp/test-unit-1/test_network_connections.py --verbose
when: python3_available | succeeded
register: python3_result
- command: python /tmp/test-unit-1/test_network_connections.py --verbose
register: python_result
... | <|file_sep|>tests/tests_unit.yml.diff
original:
updated:
- hosts: all
name: Setup for test running
tasks:
# FIXME: change with_items to loop when test-harness is updated
- package:
name: "{{ item }}"
state: present
ignore_errors: true
with_items:
- NetworkManager-libnm
... | 8157a8945687648cb818e2b30ff239f1d0cfdc04 | tests/tests_unit.yml | tests/tests_unit.yml | YAML |
<|file_sep|>original/_posts/tech/2017-04-12-Centos7下安装Python3.6.md
<|file_sep|>current/_posts/tech/2017-04-12-Centos7下安装Python3.6.md
<|file_sep|>updated/_posts/tech/2017-04-12-Centos7下安装Python3.6.md | ---
layout: post
title: Centos7下安装Python3.6
category: 技术
tags: Essay
keywords: Centos7,Linux,Python
description: 无
---
今天下午在Centos7上安装Python3.6.1时遇到了报错,导致安装失败。错误如下:
> zipimport.ZipImportError: can’t decompress data; zlib not available
通过查找网上解决方法如下:
1. 安装依赖zlib、zlib-devel
1. 下载zlib源码
2. 解压zlib压缩文件
3. ./configure
... | <|file_sep|>original/_posts/tech/2017-04-12-Centos7下安装Python3.6.md
<|file_sep|>current/_posts/tech/2017-04-12-Centos7下安装Python3.6.md
<|file_sep|>updated/_posts/tech/2017-04-12-Centos7下安装Python3.6.md
---
layout: post
title: Centos7下安装Python3.6
category: 技术
tags: Essay
keywords: Centos7,Linux,Python
description: 无
---
... | 3af171e81a26b4d9902d330e389a42186e9e3c89 | _posts/tech/2017-04-12-Centos7下安装Python3.6.md | _posts/tech/2017-04-12-Centos7下安装Python3.6.md | Markdown |
<|file_sep|>original/src/Bitverse/Identicon/SVG/Svg.php
* @return Svg
*/
public function addChild(SvgNode $node = null)
{
$this->children[] = $node;
return $this;
}
public function __toString()
{
return sprintf(
'<svg xmlns="http://www.w3.org/2000/svg" ... | public function addChild(SvgNode $node = null)
{
$this->children[] = $node;
return $this;
}
public function __toString()
{
return sprintf(
'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" ' .
'width="%d" height="%d" viewBox="0 0 %d %d">%s</s... | <|file_sep|>original/src/Bitverse/Identicon/SVG/Svg.php
* @return Svg
*/
public function addChild(SvgNode $node = null)
{
$this->children[] = $node;
return $this;
}
public function __toString()
{
return sprintf(
'<svg xmlns="http://www.w3.org/2000/svg" ... | 4b7d4b3654189433d53b6267018bd855fba0e55b | src/Bitverse/Identicon/SVG/Svg.php | src/Bitverse/Identicon/SVG/Svg.php | PHP |
<|file_sep|>original/src/index.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Visit announcement</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="http://code.... | <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Visit announcement</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/c... | <|file_sep|>original/src/index.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Visit announcement</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="http://code.... | bb5e225588f899b32d977316c9a97b58ea3609d6 | src/index.html | src/index.html | HTML |
<|file_sep|>original/.travis.yml
language: java
jdk:
- oraclejdk8
dist: trusty
branches:
only:
- master
before_install: bash etc/ci-setup.sh
install: true
script: eval $TEST_CMD
after_script: if [ -z "$HEROKU_API_KEY" ]; then heroku keys:remove $USER@`hostname`; fi
env:
global:
- IS_RUNNING_ON_TRAVIS=true
-... | language: java
jdk:
- oraclejdk8
dist: trusty
branches:
only:
- master
before_install: bash etc/ci-setup.sh
install: true
script: eval $TEST_CMD
after_script: if [ -n "$HEROKU_API_KEY" ]; then heroku keys:remove $USER@`hostname`; fi
env:
global:
- IS_RUNNING_ON_TRAVIS=true
- SHUNIT_HOME="/tmp/shunit2-2.1.6"... | <|file_sep|>original/.travis.yml
language: java
jdk:
- oraclejdk8
dist: trusty
branches:
only:
- master
before_install: bash etc/ci-setup.sh
install: true
script: eval $TEST_CMD
after_script: if [ -z "$HEROKU_API_KEY" ]; then heroku keys:remove $USER@`hostname`; fi
env:
global:
- IS_RUNNING_ON_TRAVIS=true
-... | 8be3f0e6ea963cde56ade8d0daa42868c3c85a8b | .travis.yml | .travis.yml | YAML |
<|file_sep|>source/lucidity/__init__.py.diff
original:
updated:
import os
import uuid
import imp
<|file_sep|>original/source/lucidity/__init__.py
# :coding: utf-8
# :copyright: Copyright (c) 2013 Martin Pengelly-Phillips
# :license: See LICENSE.txt.
from .template import Template
<|file_sep|>current/source/lucidity... | # :coding: utf-8
# :copyright: Copyright (c) 2013 Martin Pengelly-Phillips
# :license: See LICENSE.txt.
import os
import uuid
import imp
from .template import Template
def discover_templates(paths=None, recursive=True):
'''Search *paths* for mount points and load templates from them.
*paths* should be a li... | <|file_sep|>source/lucidity/__init__.py.diff
original:
updated:
import os
import uuid
import imp
<|file_sep|>original/source/lucidity/__init__.py
# :coding: utf-8
# :copyright: Copyright (c) 2013 Martin Pengelly-Phillips
# :license: See LICENSE.txt.
from .template import Template
<|file_sep|>current/source/lucidity... | 3d9d1b10149655030d172de38f9caeb5906d093c | source/lucidity/__init__.py | source/lucidity/__init__.py | Python |
<|file_sep|>original/delacc.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Delicious.com Accesor - Chrome Extension</title>
<link rel="stylesheet" href="style.css" />
</head>
<body id="container">
</body>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.... | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Delicious.com Accesor - Chrome Extension</title>
<link rel="stylesheet" href="style.css" />
</head>
<body id="container">
<div id="content">
<p>Loading...</p>
</div>
<ul id="list">
</ul>
</body>
<script src="http://ajax.google... | <|file_sep|>original/delacc.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Delicious.com Accesor - Chrome Extension</title>
<link rel="stylesheet" href="style.css" />
</head>
<body id="container">
</body>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.... | 39b4d8f8f52e92eba65eec7adfa6b282338c9fb7 | delacc.html | delacc.html | HTML |
<|file_sep|>original/pombola/nigeria/templates/spinner/slides/spinner_image-content.html
{% load thumbnail %}
<a href="{{ object.url }}" title="{{ object.caption }}">
{% thumbnail object.image "478x478" crop="center" as im %}
<img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}" alt="{{ object.... | {% load thumbnail %}
<a href="{{ object.url }}" title="{{ object.caption }}">
{% thumbnail object.image "250x250" crop="center" quality=80 as im %}
<img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}" alt="{{ object.caption }}" />
{% endthumbnail %}
</a>
| <|file_sep|>original/pombola/nigeria/templates/spinner/slides/spinner_image-content.html
{% load thumbnail %}
<a href="{{ object.url }}" title="{{ object.caption }}">
{% thumbnail object.image "478x478" crop="center" as im %}
<img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}" alt="{{ object.... | 4f9af67c931e767060101b83c697e089dd9b896c | pombola/nigeria/templates/spinner/slides/spinner_image-content.html | pombola/nigeria/templates/spinner/slides/spinner_image-content.html | HTML |
<|file_sep|>original/lib/views/general/_before_head_end.html.erb
<script type="text/javascript" src="//use.typekit.net/csi1ugd.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<|file_sep|>current/lib/views/general/_before_head_end.html.erb
<script type="text/javascript" src="//use.t... | <script type="text/javascript" src="//use.typekit.net/csi1ugd.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<meta name="google-site-verification" content="DbAHEzh0igI0rZziSexQh5fTrbRfNPSw8BdmrmNY_70" /> | <|file_sep|>original/lib/views/general/_before_head_end.html.erb
<script type="text/javascript" src="//use.typekit.net/csi1ugd.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<|file_sep|>current/lib/views/general/_before_head_end.html.erb
<script type="text/javascript" src="//use.t... | e720307a1ba5790a6001a09e9a8f71247ec3241f | lib/views/general/_before_head_end.html.erb | lib/views/general/_before_head_end.html.erb | HTML+ERB |
<|file_sep|>original/resources/sql/autopatches/20150904.herald.1.sql
<|file_sep|>current/resources/sql/autopatches/20150904.herald.1.sql
<|file_sep|>updated/resources/sql/autopatches/20150904.herald.1.sql | /* The "20150730.herald.5.sql" patch incorrectly swapped blocking and
non-blocking "Add Reviewer" rules. This swaps back any rules which
were last modified before the patch was applied. */
UPDATE {$NAMESPACE}_herald.herald_action a
JOIN {$NAMESPACE}_herald.herald_rule r
ON a.ruleID = r.id
SET a.action = 'd... | <|file_sep|>original/resources/sql/autopatches/20150904.herald.1.sql
<|file_sep|>current/resources/sql/autopatches/20150904.herald.1.sql
<|file_sep|>updated/resources/sql/autopatches/20150904.herald.1.sql
/* The "20150730.herald.5.sql" patch incorrectly swapped blocking and
non-blocking "Add Reviewer" rules. This ... | 76665f725bc90c5122b4f9f5cf80b75fedbdf885 | resources/sql/autopatches/20150904.herald.1.sql | resources/sql/autopatches/20150904.herald.1.sql | SQL |
<|file_sep|>lib/fraggle-synchrony/fraggle/client.rb.diff
original:
%w{rev set get del stat}.each do |cmd|
updated:
%w{rev set get del stat getdir walk}.each do |cmd|
<|file_sep|>lib/fraggle-synchrony/fraggle/client.rb.diff
original:
def #{cmd}(*args)
updated:
def #{cmd}(*args, &blk)
<|file_sep|>... | class Client
%w{rev set get del stat getdir walk}.each do |cmd|
class_eval <<-CODE
alias :a#{cmd} :#{cmd}
def #{cmd}(*args, &blk)
f = Fiber.current
blk = proc{ |v| v } if !block_given?
cb = proc { |e, err|
if err
f.resume err
... | <|file_sep|>lib/fraggle-synchrony/fraggle/client.rb.diff
original:
%w{rev set get del stat}.each do |cmd|
updated:
%w{rev set get del stat getdir walk}.each do |cmd|
<|file_sep|>lib/fraggle-synchrony/fraggle/client.rb.diff
original:
def #{cmd}(*args)
updated:
def #{cmd}(*args, &blk)
<|file_sep|>... | 8c74f4418aaf3a636e7f80be3845726b8606d9eb | lib/fraggle-synchrony/fraggle/client.rb | lib/fraggle-synchrony/fraggle/client.rb | Ruby |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.