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/microdrop/bin/create_portable_config.py
<|file_sep|>current/microdrop/bin/create_portable_config.py
<|file_sep|>updated/microdrop/bin/create_portable_config.py | import os
import sys
import pkg_resources
from path_helpers import path
import jinja2
config_template = '''
data_dir = .
[plugins]
# directory containing microdrop plugins
directory = plugins
[microdrop.gui.experiment_log_controller]
notebook_directory = notebooks
[microdrop.gui.dmf_device_co... | <|file_sep|>original/microdrop/bin/create_portable_config.py
<|file_sep|>current/microdrop/bin/create_portable_config.py
<|file_sep|>updated/microdrop/bin/create_portable_config.py
import os
import sys
import pkg_resources
from path_helpers import path
import jinja2
config_template = '''
data_dir = .
[plugins]
... | 07f46255120fd2dc6c33e2c6ed8b215fce9f01c5 | microdrop/bin/create_portable_config.py | microdrop/bin/create_portable_config.py | Python |
<|file_sep|>app/services/favorite-stops.js.diff
original:
this.notifyPropertyChange('all');
updated:
<|file_sep|>app/services/favorite-stops.js.diff
original:
this.notifyPropertyChange('all');
updated:
<|file_sep|>original/app/services/favorite-stops.js
this.replaceStops(newStops);
this.notifyProperty... | },
remove: function(stop) {
var newStops = this.get('all').rejectBy('id', stop.id);
this.replaceStops(newStops);
},
hasStop: function(stop) {
return !!this.get('all').findBy('id', stop.id);
},
all: Ember.computed(function() {
var stops = this.store[this.storeKey];
return stops ? JSON.... | <|file_sep|>app/services/favorite-stops.js.diff
original:
this.notifyPropertyChange('all');
updated:
<|file_sep|>app/services/favorite-stops.js.diff
original:
this.notifyPropertyChange('all');
updated:
<|file_sep|>original/app/services/favorite-stops.js
this.replaceStops(newStops);
this.notifyProperty... | 7b733e9fb2e097fae122b0b2f482c74f11bef49f | app/services/favorite-stops.js | app/services/favorite-stops.js | JavaScript |
<|file_sep|>package.json.diff
original:
"dependencies": {
"@types/node": "^7.0.48"
},
updated:
"dependencies": {},
<|file_sep|>original/package.json
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/tj/commander.js.git"
},
"scripts": {
"test": "make test && npm ru... | "repository": {
"type": "git",
"url": "https://github.com/tj/commander.js.git"
},
"scripts": {
"test": "make test && npm run test-typings",
"test-typings": "node_modules/typescript/bin/tsc -p tsconfig.json"
},
"main": "index",
"files": [
"index.js"
],
"dependencies": {},
"devDepend... | <|file_sep|>package.json.diff
original:
"dependencies": {
"@types/node": "^7.0.48"
},
updated:
"dependencies": {},
<|file_sep|>original/package.json
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/tj/commander.js.git"
},
"scripts": {
"test": "make test && npm ru... | 245584e4a067959adadf855585e897a6382ad1fe | package.json | package.json | JSON |
<|file_sep|>.github/workflows/docker-publish.yml.diff
original:
updated:
<|file_sep|>original/.github/workflows/docker-publish.yml
brancher: [ main ]
jobs:
Deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v1
- name: Login to GitHub Container Registr... | steps:
- name: Checkout Code
uses: actions/checkout@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
... | <|file_sep|>.github/workflows/docker-publish.yml.diff
original:
updated:
<|file_sep|>original/.github/workflows/docker-publish.yml
brancher: [ main ]
jobs:
Deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v1
- name: Login to GitHub Container Registr... | 65fea2680ef005abb9157fa09d1b9868c774b86a | .github/workflows/docker-publish.yml | .github/workflows/docker-publish.yml | YAML |
<|file_sep|>unzip.py.diff
original:
updated:
parser.add_argument("-d", "--directory", nargs="?", type=str, default="")
<|file_sep|>original/unzip.py
import zipfile
parser = argparse.ArgumentParser(description = "Extract zip file includes cp932 encoding file name")
parser.add_argument("file")
args = parser.parse_args... | import zipfile
parser = argparse.ArgumentParser(description = "Extract zip file includes cp932 encoding file name")
parser.add_argument("file")
parser.add_argument("-d", "--directory", nargs="?", type=str, default="")
args = parser.parse_args()
with zipfile.ZipFile(args.file, 'r') as archive:
for item in archive... | <|file_sep|>unzip.py.diff
original:
updated:
parser.add_argument("-d", "--directory", nargs="?", type=str, default="")
<|file_sep|>original/unzip.py
import zipfile
parser = argparse.ArgumentParser(description = "Extract zip file includes cp932 encoding file name")
parser.add_argument("file")
args = parser.parse_args... | 3b61b9dfeda38e0a7afd5ec90b32f8abab18ef4f | unzip.py | unzip.py | Python |
<|file_sep|>doc/pyplots/plot_density.py.diff
original:
updated:
"""Plot to demonstrate the density colormap. """
<|file_sep|>doc/pyplots/plot_density.py.diff
original:
"""Plot to demonstrate the density colormap.
"""
updated:
import matplotlib.pyplot as plt
import netCDF4
import numpy as np
import cartopy.crs as ccrs
... | with netCDF4.Dataset('_data/test_data.nc') as nc:
lon, lat = np.meshgrid(nc.variables['lon'][:], nc.variables['lat'][:])
h2o = nc.variables['qv'][:]
# Create plot with PlateCarree projection.
fig, ax = plt.subplots(figsize=(10, 8))
ax = plt.axes(projection=ccrs.PlateCarree())
ax.set_extent([3, 16, 47, 56])
# ... | <|file_sep|>doc/pyplots/plot_density.py.diff
original:
updated:
"""Plot to demonstrate the density colormap. """
<|file_sep|>doc/pyplots/plot_density.py.diff
original:
"""Plot to demonstrate the density colormap.
"""
updated:
import matplotlib.pyplot as plt
import netCDF4
import numpy as np
import cartopy.crs as ccrs
... | 87983a254ba1d1f036a555aab73fcc07c7f5882b | doc/pyplots/plot_density.py | doc/pyplots/plot_density.py | Python |
<|file_sep|>original/src/shared/log.h
* of the License, or (at your option) any later version.
*/
#pragma once
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef DEBUG
#define buxton_debug(...) buxton_log(__VA_ARGS__)
#else
#define buxton_debug(...) do {} while(0);
#endif /* DEBUG */
void buxton_log(const... | * of the License, or (at your option) any later version.
*/
#pragma once
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef DEBUG
#define buxton_debug(...) do { \
buxton_log("%s():[%d]: %s", __func__, __LINE__ , __VA_ARGS__); \
} while(0);
#else
#define buxton_debug(...) do {} while(0);
#endif /* DEBUG *... | <|file_sep|>original/src/shared/log.h
* of the License, or (at your option) any later version.
*/
#pragma once
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef DEBUG
#define buxton_debug(...) buxton_log(__VA_ARGS__)
#else
#define buxton_debug(...) do {} while(0);
#endif /* DEBUG */
void buxton_log(const... | b05adaf03b8889da09568b8cf9f1f93d90445f30 | src/shared/log.h | src/shared/log.h | C |
<|file_sep|>src/customer/list/SupportCustomerFilter.tsx.diff
original:
import {
getOptions as ServiceProviderFilterOptions,
ServiceProviderFilter,
} from '@waldur/customer/list/ServiceProviderFilter';
updated:
import { ServiceProviderFilter } from '@waldur/customer/list/ServiceProviderFilter';
<|file_sep|>original/... | import { ServiceProviderFilter } from '@waldur/customer/list/ServiceProviderFilter';
import { translate } from '@waldur/i18n';
export const PureSupportCustomerFilter: FunctionComponent = () => (
<Row>
<div className="form-group col-sm-3">
<label className="control-label">{translate('Accounting running')}</... | <|file_sep|>src/customer/list/SupportCustomerFilter.tsx.diff
original:
import {
getOptions as ServiceProviderFilterOptions,
ServiceProviderFilter,
} from '@waldur/customer/list/ServiceProviderFilter';
updated:
import { ServiceProviderFilter } from '@waldur/customer/list/ServiceProviderFilter';
<|file_sep|>original/... | 9d6ca92f744491dc2d808cbd4e6f517c66b89f21 | src/customer/list/SupportCustomerFilter.tsx | src/customer/list/SupportCustomerFilter.tsx | TypeScript |
<|file_sep|>original/client/tests/client/test-admin-add-contexts.js
it('should add new contexts', function() {
var deferred = protractor.promise.defer();
browser.setLocation('admin/contexts');
var add_context = function(context) {
element(by.model('new_context.name')).sendKeys(context);
retu... | it('should add new contexts', function() {
var deferred = protractor.promise.defer();
browser.setLocation('admin/contexts');
var add_context = function(context) {
element(by.model('new_context.name')).sendKeys(context);
return element(by.css('[data-ng-click="add_context()"]')).click();
}... | <|file_sep|>original/client/tests/client/test-admin-add-contexts.js
it('should add new contexts', function() {
var deferred = protractor.promise.defer();
browser.setLocation('admin/contexts');
var add_context = function(context) {
element(by.model('new_context.name')).sendKeys(context);
retu... | 68bee14583e016d16fb3e02c25f2ab18629865aa | client/tests/client/test-admin-add-contexts.js | client/tests/client/test-admin-add-contexts.js | JavaScript |
<|file_sep|>original/spec/Component.coffee
<|file_sep|>current/spec/Component.coffee
<|file_sep|>updated/spec/Component.coffee | if typeof process isnt 'undefined' and process.execPath and process.execPath.indexOf('node') isnt -1
chai = require 'chai' unless chai
component = require '../src/lib/Component.coffee'
port = require '../src/lib/Port.coffee'
socket = require '../src/lib/InternalSocket.coffee'
else
component = require 'noflo/s... | <|file_sep|>original/spec/Component.coffee
<|file_sep|>current/spec/Component.coffee
<|file_sep|>updated/spec/Component.coffee
if typeof process isnt 'undefined' and process.execPath and process.execPath.indexOf('node') isnt -1
chai = require 'chai' unless chai
component = require '../src/lib/Component.coffee'
... | 5bd4fb46937433374248fe8047ca94a93af69e86 | spec/Component.coffee | spec/Component.coffee | CoffeeScript |
<|file_sep|>original/.forestry/front_matter/templates/billet.yml
label: Title
config:
required: true
- type: datetime
name: date
label: Date
config:
date_format: DD/MM/YYYY
required: true
default: now
- type: list
name: tags
label: Tags
- type: file
name: image
label: Image
- name: draft... | label: Title
config:
required: true
- type: datetime
name: date
label: Date
config:
date_format: DD/MM/YYYY
required: true
default: now
- name: tags
type: tag_list
default: []
label: Tags
- type: file
name: image
label: Image
- name: draft
type: boolean
label: Draft
default: true | <|file_sep|>original/.forestry/front_matter/templates/billet.yml
label: Title
config:
required: true
- type: datetime
name: date
label: Date
config:
date_format: DD/MM/YYYY
required: true
default: now
- type: list
name: tags
label: Tags
- type: file
name: image
label: Image
- name: draft... | 649efc436a9b0972d503f999b759e7a2c97e0120 | .forestry/front_matter/templates/billet.yml | .forestry/front_matter/templates/billet.yml | YAML |
<|file_sep|>original/requirements/production.txt
# WSGI Handler
# ------------------------------------------------
gevent==1.2.2
gunicorn==19.7.1
# Static and Media Storage
# ------------------------------------------------
boto==2.48.0
django-storages-redux==1.3.3
Collectfast==0.5.2
# Mailgun Support
# -------------... | # WSGI Handler
# ------------------------------------------------
gevent==1.2.2
gunicorn==19.7.1
# Static and Media Storage
# ------------------------------------------------
boto==2.48.0
django-storages-redux==1.3.3
Collectfast==0.5.2
# Mailgun Support
# ---------------
django-mailgun==0.9.1
# Redis
django-redis-ca... | <|file_sep|>original/requirements/production.txt
# WSGI Handler
# ------------------------------------------------
gevent==1.2.2
gunicorn==19.7.1
# Static and Media Storage
# ------------------------------------------------
boto==2.48.0
django-storages-redux==1.3.3
Collectfast==0.5.2
# Mailgun Support
# -------------... | 06f5e649dfe35643012e6fc4978362a268c7d144 | requirements/production.txt | requirements/production.txt | Text |
<|file_sep|>original/project.clj
(defproject onyx-plugin/lein-template "0.8.1.2"
:description "A Leiningen 2.0 template for new Onyx plugins"
:url "http://github.com/MichaelDrogalis/onyx-plugin"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:repositories ... | (defproject onyx-plugin/lein-template "0.8.1.3-SNAPSHOT"
:description "A Leiningen 2.0 template for new Onyx plugins"
:url "http://github.com/MichaelDrogalis/onyx-plugin"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:repositories {"snapshots" {:url "http... | <|file_sep|>original/project.clj
(defproject onyx-plugin/lein-template "0.8.1.2"
:description "A Leiningen 2.0 template for new Onyx plugins"
:url "http://github.com/MichaelDrogalis/onyx-plugin"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:repositories ... | f55e0cb6fddf09d7433d4e257aeea27ac1f784f1 | project.clj | project.clj | Clojure |
<|file_sep|>original/src/main/resources/META-INF/mods.toml
loaderVersion="[39,)"
issueTrackerURL="https://github.com/CyclopsMC/ColossalChests/issues"
displayURL="https://www.curseforge.com/minecraft/mc-mods/colossalchests"
license="MIT"
logoFile="logo.png"
authors="rubensworks (aka kroeser)"
[[mods]]
modId="colossalche... | loaderVersion="[39,)"
issueTrackerURL="https://github.com/CyclopsMC/ColossalChests/issues"
displayURL="https://www.curseforge.com/minecraft/mc-mods/colossalchests"
license="MIT"
logoFile="logo.png"
authors="rubensworks (aka kroeser)"
[[mods]]
modId="colossalchests"
version="${file.jarVersion}"
displayName="ColossalChes... | <|file_sep|>original/src/main/resources/META-INF/mods.toml
loaderVersion="[39,)"
issueTrackerURL="https://github.com/CyclopsMC/ColossalChests/issues"
displayURL="https://www.curseforge.com/minecraft/mc-mods/colossalchests"
license="MIT"
logoFile="logo.png"
authors="rubensworks (aka kroeser)"
[[mods]]
modId="colossalche... | 58f385cb0705d557d6a4dc29f467cb41019268b7 | src/main/resources/META-INF/mods.toml | src/main/resources/META-INF/mods.toml | TOML |
<|file_sep|>metadata/com.simplemobiletools.gallery.txt.diff
original:
updated:
Build:1.12,12
commit=1.12
subdir=app
gradle=yes
<|file_sep|>original/metadata/com.simplemobiletools.gallery.txt
depending on the size of the display and portrait/landscape mode. They can be
renamed, shared or deleted.
.
Repo T... | Repo:https://github.com/SimpleMobileTools/Simple-Gallery
Build:1.9,10
commit=33909cbba4ca354351713077d72b42ae611209af
subdir=app
gradle=yes
Build:1.11,11
commit=1.11
subdir=app
gradle=yes
Build:1.12,12
commit=1.12
subdir=app
gradle=yes
Auto Update Mode:Version %v
Update Check Mod... | <|file_sep|>metadata/com.simplemobiletools.gallery.txt.diff
original:
updated:
Build:1.12,12
commit=1.12
subdir=app
gradle=yes
<|file_sep|>original/metadata/com.simplemobiletools.gallery.txt
depending on the size of the display and portrait/landscape mode. They can be
renamed, shared or deleted.
.
Repo T... | 5fad94cd32031ba3841627e39f898aa1b932aa83 | metadata/com.simplemobiletools.gallery.txt | metadata/com.simplemobiletools.gallery.txt | Text |
<|file_sep|>original/corehq/apps/reports/templates/reports/reportdata/form_data.html
{% extends "hqwebapp/base_section.html" %}
{% load xform_tags %}
{% load case_tags %}
{% load timezone_tags %}
{% load hq_shared_tags %}
{% load i18n %}
{% block head %}{{ block.super }}
<link rel="stylesheet" type="text/css" href... | {% extends "hqwebapp/base_section.html" %}
{% load xform_tags %}
{% load case_tags %}
{% load timezone_tags %}
{% load hq_shared_tags %}
{% load i18n %}
{% block head %}{{ block.super }}
<link rel="stylesheet" type="text/css" href="{% static "hqwebapp/css/proptable.css" %}">
{% endblock %}
{% block title %}Form: ... | <|file_sep|>original/corehq/apps/reports/templates/reports/reportdata/form_data.html
{% extends "hqwebapp/base_section.html" %}
{% load xform_tags %}
{% load case_tags %}
{% load timezone_tags %}
{% load hq_shared_tags %}
{% load i18n %}
{% block head %}{{ block.super }}
<link rel="stylesheet" type="text/css" href... | 7f1ee85f7ffcd8d0d1e45676328129d05ea2242e | corehq/apps/reports/templates/reports/reportdata/form_data.html | corehq/apps/reports/templates/reports/reportdata/form_data.html | HTML |
<|file_sep|>original/ExifLibrary/ImageError.cs
/// Gets the severity of the error.
/// </summary>
public Severity Severity { get;}
/// <summary>
/// Gets the error message.
/// </summary>
public string Message { get; }
/// <summary>
/// Initializ... | /// <summary>
/// Initializes a new instance of the <see cref="ImageError"/> class.
/// </summary>
/// <param name="severity"></param>
/// <param name="message"></param>
public ImageError(Severity severity, string message)
{
Severity = severity;
... | <|file_sep|>original/ExifLibrary/ImageError.cs
/// Gets the severity of the error.
/// </summary>
public Severity Severity { get;}
/// <summary>
/// Gets the error message.
/// </summary>
public string Message { get; }
/// <summary>
/// Initializ... | dc73689a018403cf0e683326f2c2c17bc4c13f2f | ExifLibrary/ImageError.cs | ExifLibrary/ImageError.cs | C# |
<|file_sep|>.github/workflows/ci.yml.diff
original:
updated:
strategy:
matrix:
java-version: [ 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18-ea ]
<|file_sep|>.github/workflows/ci.yml.diff
original:
- name: Configure JDK
updated:
- name: Configure JDK ${{ matrix.java-version }}
<|file... | runs-on: ubuntu-latest
strategy:
matrix:
java-version: [ 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18-ea ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Configure JD... | <|file_sep|>.github/workflows/ci.yml.diff
original:
updated:
strategy:
matrix:
java-version: [ 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18-ea ]
<|file_sep|>.github/workflows/ci.yml.diff
original:
- name: Configure JDK
updated:
- name: Configure JDK ${{ matrix.java-version }}
<|file... | 78ddafdc1ef8433c84ed75f8d5d7032a112e65fb | .github/workflows/ci.yml | .github/workflows/ci.yml | YAML |
<|file_sep|>original/README.md
# GoogleAppEngineOkHttp
An implementation of the OkHttp3 __Call__ interface that allows OkHttp to be used on Google App Engine.
I've tested this library against OkHttp 3.0.1 and with Retrofit 2.0.0-beta4 running on Google App Engine SDK 1.9.30.
## Usage
return new Retrofit.Builder(... | # GoogleAppEngineOkHttp
An implementation of the OkHttp3 __Call__ interface that allows OkHttp to be used on Google App Engine.
I've tested this library against OkHttp 3.0.1 and with Retrofit 2.0.0-beta4 running on Google App Engine SDK 1.9.30.
+ [https://github.com/square/okhttp](https://github.com/square/okhttp)
+... | <|file_sep|>original/README.md
# GoogleAppEngineOkHttp
An implementation of the OkHttp3 __Call__ interface that allows OkHttp to be used on Google App Engine.
I've tested this library against OkHttp 3.0.1 and with Retrofit 2.0.0-beta4 running on Google App Engine SDK 1.9.30.
## Usage
return new Retrofit.Builder(... | 3fe38e1e19ca31ac25a620570c1ee5eac8cb57d6 | README.md | README.md | Markdown |
<|file_sep|>original/rosie/requirements.txt
brutils==1.0.1
geopy>=1.11.0
numpy==1.13.3
# scipy must come before scikit-learn in order to build the wheel in docker image
scipy==1.0.0
scikit-learn==0.19.1
serenata-toolbox<13
<|file_sep|>current/rosie/requirements.txt
brutils==1.0.1
geopy>=1.11.0
numpy==1.13.3
# scipy mus... | brutils==1.0.1
geopy>=1.11.0
numpy==1.14.2
# scipy must come before scikit-learn in order to build the wheel in docker image
scipy==1.0.0
scikit-learn==0.19.1
serenata-toolbox<13 | <|file_sep|>original/rosie/requirements.txt
brutils==1.0.1
geopy>=1.11.0
numpy==1.13.3
# scipy must come before scikit-learn in order to build the wheel in docker image
scipy==1.0.0
scikit-learn==0.19.1
serenata-toolbox<13
<|file_sep|>current/rosie/requirements.txt
brutils==1.0.1
geopy>=1.11.0
numpy==1.13.3
# scipy mus... | 10697c12de0e829e8eb166a38a4c64fd7afc85c5 | rosie/requirements.txt | rosie/requirements.txt | Text |
<|file_sep|>original/lib/split/version.rb
# frozen_string_literal: true
module Split
MAJOR = 3
MINOR = 4
PATCH = 1
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<|file_sep|>current/lib/split/version.rb
# frozen_string_literal: true
module Split
MAJOR = 3
MINOR = 4
PATCH = 1
VERSION = [MAJO... | # frozen_string_literal: true
module Split
VERSION = "4.0.0.pre"
end | <|file_sep|>original/lib/split/version.rb
# frozen_string_literal: true
module Split
MAJOR = 3
MINOR = 4
PATCH = 1
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<|file_sep|>current/lib/split/version.rb
# frozen_string_literal: true
module Split
MAJOR = 3
MINOR = 4
PATCH = 1
VERSION = [MAJO... | deaa469fcec628f7c233f21ffdbccef1c07c0657 | lib/split/version.rb | lib/split/version.rb | Ruby |
<|file_sep|>busshaming/api.py.diff
original:
from rest_framework import mixins, serializers, viewsets
updated:
from rest_framework import filters, mixins, serializers, viewsets
<|file_sep|>original/busshaming/api.py
class TripViewSet(mixins.RetrieveModelMixin, viewsets.GenericViewSet):
queryset = Trip.objects.all(... | queryset = Trip.objects.all()
serializer_class = TripSerializer
class RouteSerializer(serializers.HyperlinkedModelSerializer):
trip_set = serializers.HyperlinkedRelatedField(
many=True,
read_only=True,
view_name='trip-detail'
)
class Meta:
model = Route
fie... | <|file_sep|>busshaming/api.py.diff
original:
from rest_framework import mixins, serializers, viewsets
updated:
from rest_framework import filters, mixins, serializers, viewsets
<|file_sep|>original/busshaming/api.py
class TripViewSet(mixins.RetrieveModelMixin, viewsets.GenericViewSet):
queryset = Trip.objects.all(... | 4597935c29ec9cd2679254dbb8ee648ab5b2d75e | busshaming/api.py | busshaming/api.py | Python |
<|file_sep|>original/_includes/head.html
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1">
<title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}... | <head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
<meta name="description" content="{{ page.excerpt ... | <|file_sep|>original/_includes/head.html
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1">
<title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}... | bbcd2529c68c5b7aed8c82e65d296f8ddfa982b7 | _includes/head.html | _includes/head.html | HTML |
<|file_sep|>original/_layouts/post.html
{% include head.html %}
<style>.post:before { content: "{{ page.title }}"; }</style>
</head>
<body>
<article class="content-wrapper post">
<div class="postinner clearfix">
<section>
{{ content }}
</section>
</div>
</article>
<body>
</html>
<|file_sep|>current/_layouts/p... | {% include head.html %}
<style>.post:before { content: "{{ page.title }} \A {{ page.date | date: "%b %-d, %Y" }}"; }</style>
</head>
<body>
<article class="content-wrapper post">
<div class="postinner clearfix">
<section>
{{ content }}
</section>
</div>
</article>
<body>
</html> | <|file_sep|>original/_layouts/post.html
{% include head.html %}
<style>.post:before { content: "{{ page.title }}"; }</style>
</head>
<body>
<article class="content-wrapper post">
<div class="postinner clearfix">
<section>
{{ content }}
</section>
</div>
</article>
<body>
</html>
<|file_sep|>current/_layouts/p... | 3af2946fea39f2328d83781197745b7e8e0878e9 | _layouts/post.html | _layouts/post.html | HTML |
<|file_sep|>pages/categories/index.erb.diff
original:
<ul id="categories">
<% @site.categories.keys.sort.each do |slug| %>
<li>
<a href="/categories/<%= slug %>/" title="All the <%= @site.categories[slug].name %> interviews."><%= @site.categories[slug].name %></a><br>
<span class="summary"><%= @site.categorie... | ---
layout: default
title: Categories
---
<h2>Not just Macs</h2>
<p>There are currently <strong><%= @site.categories.count %></strong> categories on the site.</p>
<% @site.categories.keys.map { |key| key[0] }.uniq.sort.each do |letter| %>
<h3><%= letter.upcase %></h3>
<ul class="categories">
<% @site.categori... | <|file_sep|>pages/categories/index.erb.diff
original:
<ul id="categories">
<% @site.categories.keys.sort.each do |slug| %>
<li>
<a href="/categories/<%= slug %>/" title="All the <%= @site.categories[slug].name %> interviews."><%= @site.categories[slug].name %></a><br>
<span class="summary"><%= @site.categorie... | 7c0bbab37c758dd64c97cb775c48b4c00004fe9a | pages/categories/index.erb | pages/categories/index.erb | HTML+ERB |
<|file_sep|>original/core/dir/home_spec.rb
DirSpecs.create_mock_dirs
end
after :all do
DirSpecs.delete_mock_dirs
end
it "returns the current user's home directory as a string if called without arguments" do
Dir.home.should == home_directory
end
platform_is_not :windows do
it "returns the ... | DirSpecs.create_mock_dirs
end
after :all do
DirSpecs.delete_mock_dirs
end
it "returns the current user's home directory as a string if called without arguments" do
Dir.home.should == home_directory
end
platform_is_not :windows do
it "returns the named user's home directory as a string if ... | <|file_sep|>original/core/dir/home_spec.rb
DirSpecs.create_mock_dirs
end
after :all do
DirSpecs.delete_mock_dirs
end
it "returns the current user's home directory as a string if called without arguments" do
Dir.home.should == home_directory
end
platform_is_not :windows do
it "returns the ... | 9d8e406fc28b3bd3b4c587225d5157f17ea79efd | core/dir/home_spec.rb | core/dir/home_spec.rb | Ruby |
<|file_sep|>original/settings.js
module.exports = {
// By default, Marquette accepts connections on all IPv4 interfaces.
// The following property can be used to listen on a specific interface. For
// example, the following would only allow connections from the local machine.
//uiHost: "127.0.0.1",
... | module.exports = {
// By default, Marquette accepts connections on all IPv4 interfaces.
// The following property can be used to listen on a specific interface. For
// example, the following would only allow connections from the local machine.
//uiHost: "127.0.0.1",
// the tcp port that the Marquet... | <|file_sep|>original/settings.js
module.exports = {
// By default, Marquette accepts connections on all IPv4 interfaces.
// The following property can be used to listen on a specific interface. For
// example, the following would only allow connections from the local machine.
//uiHost: "127.0.0.1",
... | 0c6abc9464b0ba9cd53935d51c7356c24327fcde | settings.js | settings.js | JavaScript |
<|file_sep|>lib/Pray/Output/PPM.pm6.diff
original:
has IO::Handle $.filehandle;
updated:
has Channel $.channel = Channel.new;
<|file_sep|>lib/Pray/Output/PPM.pm6.diff
original:
method new ($filename, $width, $height) {
my $fh = open($filename, :w);
my $self = self.bless(
filename => $filename,
f... | loop {
$fh.print: sprintf( '%3d %3d %3d ', $_.r*255, $_.g*255, $_.b*255 )
given $!channel.receive;
}
});
multi method new ($filename, $width, $height) {
self.bless: :$filename, :$width, :$height;
}
method set_next (Pray::Scene::Color $color) {
$!channel.send: $color;
return;
}
... | <|file_sep|>lib/Pray/Output/PPM.pm6.diff
original:
has IO::Handle $.filehandle;
updated:
has Channel $.channel = Channel.new;
<|file_sep|>lib/Pray/Output/PPM.pm6.diff
original:
method new ($filename, $width, $height) {
my $fh = open($filename, :w);
my $self = self.bless(
filename => $filename,
f... | 7e621d2256724e2617aeedf2b7f99ad0a84a261c | lib/Pray/Output/PPM.pm6 | lib/Pray/Output/PPM.pm6 | Perl6 |
<|file_sep|>original/lib/Support/IsInf.cpp
<|file_sep|>current/lib/Support/IsInf.cpp
<|file_sep|>updated/lib/Support/IsInf.cpp | //===-- IsInf.cpp ---------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===--------... | <|file_sep|>original/lib/Support/IsInf.cpp
<|file_sep|>current/lib/Support/IsInf.cpp
<|file_sep|>updated/lib/Support/IsInf.cpp
//===-- IsInf.cpp ---------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research... | 418f73cbaa77470f3546c0acc64cefccedfba991 | lib/Support/IsInf.cpp | lib/Support/IsInf.cpp | C++ |
<|file_sep|>original/ADWS/Models/UserInfoResponse.cs
[DataMember]
public string Telephone { get; set; }
[DataMember]
public string SipAccount { set; get; }
[DataMember]
public string PrimaryHomeServerDn { get; set; }
[DataMember]
public string PoolName ... | [DataMember]
public string SipAccount { set; get; }
[DataMember]
public string PrimaryHomeServerDn { get; set; }
[DataMember]
public string PoolName { set; get; }
[DataMember]
public string PhysicalDeliveryOfficeName { set; get; }
[DataMember]
... | <|file_sep|>original/ADWS/Models/UserInfoResponse.cs
[DataMember]
public string Telephone { get; set; }
[DataMember]
public string SipAccount { set; get; }
[DataMember]
public string PrimaryHomeServerDn { get; set; }
[DataMember]
public string PoolName ... | 916f79ea864cb099b2b5ee3a7bf2e5888344021d | ADWS/Models/UserInfoResponse.cs | ADWS/Models/UserInfoResponse.cs | C# |
<|file_sep|>original/src/Helper/Cod4Server.php
return $response;
}
public static function screenshot(B3Server $server, $guid, $user=null){
try {
$filename = '';
if ($user != null) {
$filename = ' user-' . $user->id . '-';
}
$tool ... |
public static function screenshot(B3Server $server, $guid, $user=null){
try {
$filename = '';
if ($user != null) {
$filename = ' user-' . $user->id . '-';
}
$tool = new q3tool($server->host, $server->port, \Crypt::decrypt($server->rcon));
... | <|file_sep|>original/src/Helper/Cod4Server.php
return $response;
}
public static function screenshot(B3Server $server, $guid, $user=null){
try {
$filename = '';
if ($user != null) {
$filename = ' user-' . $user->id . '-';
}
$tool ... | 362ac38e0a0a378250fd8fc61af6d550fba52a8f | src/Helper/Cod4Server.php | src/Helper/Cod4Server.php | PHP |
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 2.2.9
- 2.3.6
- 2.4.3
- 2.5.0
- ruby-head
# For Ruby/GSL
addons:
apt:
packages:
- gsl-bin
- libgsl0-dev
branches:
only: master
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 2.2.9
- 2.3.6
- 2.4.3
- 2.5.0
- ruby-head
# F... | language: ruby
rvm:
- 2.2.9
- 2.3.6
- 2.4.3
- ruby-head
# For Ruby/GSL
addons:
apt:
packages:
- gsl-bin
- libgsl0-dev
branches:
only: master | <|file_sep|>original/.travis.yml
language: ruby
rvm:
- 2.2.9
- 2.3.6
- 2.4.3
- 2.5.0
- ruby-head
# For Ruby/GSL
addons:
apt:
packages:
- gsl-bin
- libgsl0-dev
branches:
only: master
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 2.2.9
- 2.3.6
- 2.4.3
- 2.5.0
- ruby-head
# F... | eac97ca6cd9b8ca9be18b4e7ed415e5284e3a3c2 | .travis.yml | .travis.yml | YAML |
<|file_sep|>src/jupyter_contrib_nbextensions/nbextensions/export_embedded/main.js.diff
original:
console.log("Embedded HTML Exporter loaded!");
updated:
<|file_sep|>src/jupyter_contrib_nbextensions/nbextensions/export_embedded/main.js.diff
original:
updated:
/* Add an entry in the download menu */
<|f... | /* Add also a Button, currently disabled */
/*
Jupyter.toolbar.add_buttons_group([{
id : 'export_embeddedhtml',
label : 'Embedded HTML Export',
icon : 'fa-save',
callback : function() {
Jupyter.menubar._nbconvert('html_embed', true)... | <|file_sep|>src/jupyter_contrib_nbextensions/nbextensions/export_embedded/main.js.diff
original:
console.log("Embedded HTML Exporter loaded!");
updated:
<|file_sep|>src/jupyter_contrib_nbextensions/nbextensions/export_embedded/main.js.diff
original:
updated:
/* Add an entry in the download menu */
<|f... | 7dfbb87add262139525d9981f6024a46bbc52190 | src/jupyter_contrib_nbextensions/nbextensions/export_embedded/main.js | src/jupyter_contrib_nbextensions/nbextensions/export_embedded/main.js | JavaScript |
<|file_sep|>original/script/bootstrap.sh
#!/bin/bash
bundle install
rake db:create
rake db:migrate
rake db:seed
<|file_sep|>current/script/bootstrap.sh
#!/bin/bash
bundle install
rake db:create
rake db:migrate
rake db:seed
<|file_sep|>updated/script/bootstrap.sh | #!/bin/bash
bundle install
rm -rf tmp/cache/file_store
rake db:create
rake db:migrate
rake db:seed
| <|file_sep|>original/script/bootstrap.sh
#!/bin/bash
bundle install
rake db:create
rake db:migrate
rake db:seed
<|file_sep|>current/script/bootstrap.sh
#!/bin/bash
bundle install
rake db:create
rake db:migrate
rake db:seed
<|file_sep|>updated/script/bootstrap.sh
#!/bin/bash
bundle install
rm -rf tmp/cache/file_st... | 00c12e4346bb4179a6668d02f1461f060f03ab77 | script/bootstrap.sh | script/bootstrap.sh | Shell |
<|file_sep|>original/app/views/glossary_terms/index.html.erb
<div class="col-xs-12 max-width-text">
<%= :glossary_term_index_intro.tp %>
</div>
</div>
<table class="table table-striped">
<% @glossary_terms.each do |glossary_term| %>
<tr>
<td class="max-width-text">
<h4><%= link_to(glossary_... | <div class="col-xs-12 max-width-text">
<%= :glossary_term_index_intro.tp %>
</div>
</div>
<table class="table table-striped">
<% @glossary_terms.each do |glossary_term| %>
<tr>
<td class="max-width-text">
<h4><%= link_to(glossary_term.name,
glossary_term_path(glossar... | <|file_sep|>original/app/views/glossary_terms/index.html.erb
<div class="col-xs-12 max-width-text">
<%= :glossary_term_index_intro.tp %>
</div>
</div>
<table class="table table-striped">
<% @glossary_terms.each do |glossary_term| %>
<tr>
<td class="max-width-text">
<h4><%= link_to(glossary_... | 22649c12ef93eeb435892644acb081fc31593e59 | app/views/glossary_terms/index.html.erb | app/views/glossary_terms/index.html.erb | HTML+ERB |
<|file_sep|>app/resources/views/partials/dominion/advisor-selector.blade.php.diff
original:
<div class="spacer"></div>
updated:
<|file_sep|>app/resources/views/partials/dominion/advisor-selector.blade.php.diff
original:
<div class="col-xs-6 col-sm-3">
updated:
{{--<div class="co... | <i class="ra ra-crossed-swords"></i> Military
</a>
</div>--}}
<div class="col-xs-6 col-sm-3">
<a href="{{ route('dominion.advisors.land') }}" class="btn btn-app btn-block">
<i class="ra ra-honeycomb"></i> Land
... | <|file_sep|>app/resources/views/partials/dominion/advisor-selector.blade.php.diff
original:
<div class="spacer"></div>
updated:
<|file_sep|>app/resources/views/partials/dominion/advisor-selector.blade.php.diff
original:
<div class="col-xs-6 col-sm-3">
updated:
{{--<div class="co... | 0c4e955aa9ccdb1d7260ba992435160694f9ca49 | app/resources/views/partials/dominion/advisor-selector.blade.php | app/resources/views/partials/dominion/advisor-selector.blade.php | PHP |
<|file_sep|>locales/ca/webextension.properties.diff
original:
updated:
addonDescription = Feu captures de pantalla de pàgines web i deseu-les temporalment o per sempre.
addonAuthorsList = Mozilla <screenshots-feedback@mozilla.com>
<|file_sep|>locales/ca/webextension.properties.diff
original:
updated:
contextMenuLabel... | addonDescription = Feu captures de pantalla de pàgines web i deseu-les temporalment o per sempre.
addonAuthorsList = Mozilla <screenshots-feedback@mozilla.com>
# Also used for the title on the toolbar button
contextMenuLabel = Fes una captura de pantalla
myShotsLink = Les meves captures
screenshotInstructions = Arrosse... | <|file_sep|>locales/ca/webextension.properties.diff
original:
updated:
addonDescription = Feu captures de pantalla de pàgines web i deseu-les temporalment o per sempre.
addonAuthorsList = Mozilla <screenshots-feedback@mozilla.com>
<|file_sep|>locales/ca/webextension.properties.diff
original:
updated:
contextMenuLabel... | b84430147b8a5357083a9cb7aa63b65f28bfd770 | locales/ca/webextension.properties | locales/ca/webextension.properties | INI |
<|file_sep|>original/.github/workflows/run-tests.yaml
jobs:
Test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version:
- '3.6'
- '3.7'
- '3.8'
- '3.9'
- '3.10.0-beta - 3.10.0'
os: [ubuntu-latest]
steps:
- name: Check out ... | jobs:
Test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version:
- '3.6'
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11.0-beta - 3.11.0'
os: [ubuntu-latest]
steps:
- name: Check out repository code
uses: actio... | <|file_sep|>original/.github/workflows/run-tests.yaml
jobs:
Test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version:
- '3.6'
- '3.7'
- '3.8'
- '3.9'
- '3.10.0-beta - 3.10.0'
os: [ubuntu-latest]
steps:
- name: Check out ... | a3c36fd502bf4092d406e00eb01d8ff393f32954 | .github/workflows/run-tests.yaml | .github/workflows/run-tests.yaml | YAML |
<|file_sep|>original/src/io/github/johardi/r2rmlparser/exception/InvalidPropertyAttributeException.java
mPropertyLabel = propertyLabel;
}
public void setExceptionDetail(String detail)
{
mExceptionDetail = detail;
}
@Override
public String getMessage()
{
StringBuilder sb = new St... | mPropertyLabel = propertyLabel;
}
public void setExceptionDetail(String detail)
{
mExceptionDetail = detail;
}
@Override
public String getMessage()
{
StringBuilder sb = new StringBuilder();
sb.append("Invalid property attribute for ");
sb.append("\"").append(mPropert... | <|file_sep|>original/src/io/github/johardi/r2rmlparser/exception/InvalidPropertyAttributeException.java
mPropertyLabel = propertyLabel;
}
public void setExceptionDetail(String detail)
{
mExceptionDetail = detail;
}
@Override
public String getMessage()
{
StringBuilder sb = new St... | 15fd422ba62ebe2bf2632828f27d2825ff54251e | src/io/github/johardi/r2rmlparser/exception/InvalidPropertyAttributeException.java | src/io/github/johardi/r2rmlparser/exception/InvalidPropertyAttributeException.java | Java |
<|file_sep|>original/test/unit/charge_and_ship_order_command_test.rb
<|file_sep|>current/test/unit/charge_and_ship_order_command_test.rb
<|file_sep|>updated/test/unit/charge_and_ship_order_command_test.rb | #--
# Project: google_checkout4r
# File: test/unit/charge_order_command_test.rb
# Author: George Palmer <george.palmer at gmail dot com>
# Copyright: (c) 2010 by George Palmer
# License: MIT License as follows:
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this soft... | <|file_sep|>original/test/unit/charge_and_ship_order_command_test.rb
<|file_sep|>current/test/unit/charge_and_ship_order_command_test.rb
<|file_sep|>updated/test/unit/charge_and_ship_order_command_test.rb
#--
# Project: google_checkout4r
# File: test/unit/charge_order_command_test.rb
# Author: George Palme... | cd91e3f504d893f7ed38a130437b5e85a3a11f90 | test/unit/charge_and_ship_order_command_test.rb | test/unit/charge_and_ship_order_command_test.rb | Ruby |
<|file_sep|>original/src/app/places/image.factory.js
class ImageFactory {
constructor($http, baseURLConfig) {
'ngInject';
this.getList = function(query, count) {
query = query.replace(' ', '+');
return $http.get(baseURLConfig.rootAPI + '/flickr/photos?q=' + query + "&count=" + count);
};
... | class ImageFactory {
constructor($http, baseURLConfig) {
'ngInject';
this.getList = function(query, count) {
query = query.replace(' ', '+');
return $http.get(baseURLConfig.rootAPI + '/flickr/photos?q=' + query + "&count=" + count);
};
this.getImage = function(id) {
return $http.ge... | <|file_sep|>original/src/app/places/image.factory.js
class ImageFactory {
constructor($http, baseURLConfig) {
'ngInject';
this.getList = function(query, count) {
query = query.replace(' ', '+');
return $http.get(baseURLConfig.rootAPI + '/flickr/photos?q=' + query + "&count=" + count);
};
... | 3364630d607fd6467a008de2c3784decdfc86c13 | src/app/places/image.factory.js | src/app/places/image.factory.js | JavaScript |
<|file_sep|>original/client/source/components/User/NotificationsListEntry.jsx
<|file_sep|>current/client/source/components/User/NotificationsListEntry.jsx
<|file_sep|>updated/client/source/components/User/NotificationsListEntry.jsx | import React, {Component} from 'react';
import { Grid, Row, Col, Badge, Glyphicon, FormControl, Button } from 'react-bootstrap';
export default ({user, text, handleUserClick}) => {
return (
<Row height={50} style={{borderBottom: "1px solid rgba(128,128,128, 0.2)"}}>
<Col xs={2} md={2}>
... | <|file_sep|>original/client/source/components/User/NotificationsListEntry.jsx
<|file_sep|>current/client/source/components/User/NotificationsListEntry.jsx
<|file_sep|>updated/client/source/components/User/NotificationsListEntry.jsx
import React, {Component} from 'react';
import { Grid, Row, Col, Badge, Glyphicon, For... | a4b14c1dc0ad47bb5f32bb2d0904882e8a81a4a8 | client/source/components/User/NotificationsListEntry.jsx | client/source/components/User/NotificationsListEntry.jsx | JSX |
<|file_sep|>original/.travis.yml
language: php
php:
- 5.3.3
- 5.3
- 5.4
- 5.5
before_script: composer install --dev
script: bin/phpunit
notifications:
email: geloen.eric@gmail.com
<|file_sep|>current/.travis.yml
language: php
php:
- 5.3.3
- 5.3
- 5.4
- 5.5
before_script: compos... | language: php
php:
- 5.3.3
- 5.3
- 5.4
- 5.5
before_script: composer install --dev --prefer-source
script: bin/phpunit
notifications:
email: geloen.eric@gmail.com | <|file_sep|>original/.travis.yml
language: php
php:
- 5.3.3
- 5.3
- 5.4
- 5.5
before_script: composer install --dev
script: bin/phpunit
notifications:
email: geloen.eric@gmail.com
<|file_sep|>current/.travis.yml
language: php
php:
- 5.3.3
- 5.3
- 5.4
- 5.5
before_script: compos... | 1aa0083489cd7aa7805078d87d2abcb22a9d8c38 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/client/tests/acceptance/visit-home-test.js
import Ember from 'ember';
import { module, test } from 'qunit';
import startApp from 'firedragon/tests/helpers/start-app';
module('Acceptance | visit home', {
beforeEach: function() {
this.application = startApp();
},
afterEach: function() {
... | import Ember from 'ember';
import { module, test } from 'qunit';
import startApp from 'firedragon/tests/helpers/start-app';
module('Acceptance | visit home', {
beforeEach: function() {
this.application = startApp();
},
afterEach: function() {
Ember.run(this.application, 'destroy');
}
});
test('visiti... | <|file_sep|>original/client/tests/acceptance/visit-home-test.js
import Ember from 'ember';
import { module, test } from 'qunit';
import startApp from 'firedragon/tests/helpers/start-app';
module('Acceptance | visit home', {
beforeEach: function() {
this.application = startApp();
},
afterEach: function() {
... | 6382dee9b612d41848d69ef979d2f427108c3273 | client/tests/acceptance/visit-home-test.js | client/tests/acceptance/visit-home-test.js | JavaScript |
<|file_sep|>original/app/models/comfy/cms/category.rb
require ComfortableMexicanSofa::Engine.root.join('app', 'models', 'comfy', 'cms', 'category')
class Comfy::Cms::Category < ActiveRecord::Base
validates_presence_of :label, :title_en, :title_cy
validates_uniqueness_of :label, :title_en, :title_cy, scope: :site_i... | require_dependency ComfortableMexicanSofa::Engine.root.join('app', 'models', 'comfy', 'cms', 'category')
class Comfy::Cms::Category < ActiveRecord::Base
validates_presence_of :label, :title_en, :title_cy
validates_uniqueness_of :label, :title_en, :title_cy, scope: :site_id
def self.navigation_categories
whe... | <|file_sep|>original/app/models/comfy/cms/category.rb
require ComfortableMexicanSofa::Engine.root.join('app', 'models', 'comfy', 'cms', 'category')
class Comfy::Cms::Category < ActiveRecord::Base
validates_presence_of :label, :title_en, :title_cy
validates_uniqueness_of :label, :title_en, :title_cy, scope: :site_i... | 30ee54d2e0a02a0b8a1fdbdf870f56bf2bbac60e | app/models/comfy/cms/category.rb | app/models/comfy/cms/category.rb | Ruby |
<|file_sep|>original/app/views/pulitzer/post_type_content_element_types/_new.html.erb
<%= form_for ptcet, html: ajax_form_hash("#post_type_content_element_types_container_#{dom_id(ptcet.post_type)}", insert_method: 'append') do |f| %>
<%= render partial: 'form_fields', locals: { f: f, ptcet: ptcet } %>
<%= f.submit... | <%= form_for ptcet, html: ajax_form_hash("#post_type_content_element_types_container_#{dom_id(ptcet.post_type)}", insert_method: 'append') do |f| %>
<%= render partial: 'form_fields', locals: { f: f, ptcet: ptcet } %>
<%= f.submit "Create", data: { disable_with: false } %>
<%= link_to('Close', '#', :class => 'but... | <|file_sep|>original/app/views/pulitzer/post_type_content_element_types/_new.html.erb
<%= form_for ptcet, html: ajax_form_hash("#post_type_content_element_types_container_#{dom_id(ptcet.post_type)}", insert_method: 'append') do |f| %>
<%= render partial: 'form_fields', locals: { f: f, ptcet: ptcet } %>
<%= f.submit... | 001fb68f75c9e67fcef215f9a0d6d05eebc3ec28 | app/views/pulitzer/post_type_content_element_types/_new.html.erb | app/views/pulitzer/post_type_content_element_types/_new.html.erb | HTML+ERB |
<|file_sep|>original/loadable_component.gemspec
Gem::Specification.new do |s|
s.name = "loadable_component"
s.version = LoadableComponent::VERSION
s.authors = ["Jari Bakken"]
s.email = ["jari.bakken@gmail.com"]
s.homepage = "http://github.com/jarib/loadable_component"
s.summary ... |
Gem::Specification.new do |s|
s.name = "loadable_component"
s.version = LoadableComponent::VERSION
s.authors = ["Jari Bakken"]
s.email = ["jari.bakken@gmail.com"]
s.homepage = "http://github.com/jarib/loadable_component"
s.summary = %q{Ruby implementation of http://code.google.c... | <|file_sep|>original/loadable_component.gemspec
Gem::Specification.new do |s|
s.name = "loadable_component"
s.version = LoadableComponent::VERSION
s.authors = ["Jari Bakken"]
s.email = ["jari.bakken@gmail.com"]
s.homepage = "http://github.com/jarib/loadable_component"
s.summary ... | 122026bdf05fe0aa6895c9215fe6338c2f98f09c | loadable_component.gemspec | loadable_component.gemspec | Ruby |
<|file_sep|>lib/architect4r/instance_manager.rb.diff
original:
puts '--- neo4j server started'
updated:
<|file_sep|>lib/architect4r/instance_manager.rb.diff
original:
puts '--- neo4j server stopped'
updated:
<|file_sep|>original/lib/architect4r/instance_manager.rb
def start
%x[#{server_path}/bin... | def start
%x[#{server_path}/bin/neo4j start]
end
def stop
%x[#{server_path}/bin/neo4j stop]
end
def restart
%x[#{server_path}/bin/neo4j restart]
end
def reset
self.stop
# Reset the database
FileUtils.rm_rf("#{server_path}/data/graph.d... | <|file_sep|>lib/architect4r/instance_manager.rb.diff
original:
puts '--- neo4j server started'
updated:
<|file_sep|>lib/architect4r/instance_manager.rb.diff
original:
puts '--- neo4j server stopped'
updated:
<|file_sep|>original/lib/architect4r/instance_manager.rb
def start
%x[#{server_path}/bin... | dd6031fd19d5b168baf166f4c7005843a9c8c1a1 | lib/architect4r/instance_manager.rb | lib/architect4r/instance_manager.rb | Ruby |
<|file_sep|>original/lib/mr_keychain/keychain_exception.rb
module Keychain
##
# Properly extracts error messages based on error codes.
class KeychainException < Exception
##
# @param [#to_s] message_prefix an indicator of where the exception originated
# @param [Fixnum] error_code result code from calling a Sec... | module Keychain
##
# Properly extracts error messages based on error codes.
class KeychainException < Exception
##
# @param [#to_s] message_prefix an indicator of where the exception originated
# @param [Fixnum] error_code result code from calling a Sec function
def initialize message_prefix, error_code
c... | <|file_sep|>original/lib/mr_keychain/keychain_exception.rb
module Keychain
##
# Properly extracts error messages based on error codes.
class KeychainException < Exception
##
# @param [#to_s] message_prefix an indicator of where the exception originated
# @param [Fixnum] error_code result code from calling a Sec... | c91419201a4958f5363900f6a5d7b628ded0359d | lib/mr_keychain/keychain_exception.rb | lib/mr_keychain/keychain_exception.rb | Ruby |
<|file_sep|>original/features/step_definitions/lockfile_steps.rb
"""
#{content}
"""
}
end
Then /^(?:a|the) lockfile is (?:created|updated) with:$/ do |content|
# For some reason, Cucumber drops the last newline from every docstring...
steps %Q{
Then the file "#{'.'.to_lockfile_path}" should... | end
Then /^(?:a|the) lockfile is (?:created|updated) with:$/ do |content|
# For some reason, Cucumber drops the last newline from every docstring...
steps %Q{
Then the file "#{'.'.to_lockfile_path}" should contain exactly:
"""
#{content == '' ? '' : expand(content) + "\n"}
"""
}
end
Then /... | <|file_sep|>original/features/step_definitions/lockfile_steps.rb
"""
#{content}
"""
}
end
Then /^(?:a|the) lockfile is (?:created|updated) with:$/ do |content|
# For some reason, Cucumber drops the last newline from every docstring...
steps %Q{
Then the file "#{'.'.to_lockfile_path}" should... | 744ea6f098b670a1ea5f0676bd6ec94480f0631e | features/step_definitions/lockfile_steps.rb | features/step_definitions/lockfile_steps.rb | Ruby |
<|file_sep|>metadata/cz.jiriskorpil.amixerwebui.txt.diff
original:
updated:
Build:0.3.2,8
commit=v0.3.2
subdir=app
gradle=yes
<|file_sep|>original/metadata/cz.jiriskorpil.amixerwebui.txt
Issue Tracker:https://github.com/JiriSko/amixer-webui-android/issues
Auto Name:ALSA Mixer WebUI
Summary:Client for ALS... | Allows to control ALSA volume on remote server using
[https://amixerwebui.jiriskorpil.cz ALSA Mixer WebUI].
.
Repo Type:git
Repo:https://github.com/JiriSko/amixer-webui-android.git
Build:0.3.1,7
commit=v0.3.1
subdir=app
gradle=yes
Build:0.3.2,8
commit=v0.3.2
subdir=app
gradle=yes
Auto Update... | <|file_sep|>metadata/cz.jiriskorpil.amixerwebui.txt.diff
original:
updated:
Build:0.3.2,8
commit=v0.3.2
subdir=app
gradle=yes
<|file_sep|>original/metadata/cz.jiriskorpil.amixerwebui.txt
Issue Tracker:https://github.com/JiriSko/amixer-webui-android/issues
Auto Name:ALSA Mixer WebUI
Summary:Client for ALS... | c0d81f73b4018a8c3ef51e6c435c3b0e876ddc16 | metadata/cz.jiriskorpil.amixerwebui.txt | metadata/cz.jiriskorpil.amixerwebui.txt | Text |
<|file_sep|>app/models/applicant_link.rb.diff
original:
embedded_in :eligibility_determinations
updated:
embedded_in :hbx_enrollment_exemption
embedded_in :eligibility_determination
<|file_sep|>app/models/applicant_link.rb.diff
original:
updated:
field :is_primary_applicant, type: Boolean
<|file_sep|>original/... |
embedded_in :tax_household
embedded_in :hbx_enrollment
embedded_in :hbx_enrollment_exemption
embedded_in :eligibility_determination
field :person_id, type: Moped::BSON::ObjectId
field :is_primary_applicant, type: Boolean
field :is_active, type: Boolean, default: true
field :is_ia_eligible, type: Bool... | <|file_sep|>app/models/applicant_link.rb.diff
original:
embedded_in :eligibility_determinations
updated:
embedded_in :hbx_enrollment_exemption
embedded_in :eligibility_determination
<|file_sep|>app/models/applicant_link.rb.diff
original:
updated:
field :is_primary_applicant, type: Boolean
<|file_sep|>original/... | 4f33c957360c413aec87bc5b898653df7b707bab | app/models/applicant_link.rb | app/models/applicant_link.rb | Ruby |
<|file_sep|>original/src/main/java/me/prettyprint/cassandra/service/ExampleClient.java
* Example client that uses the cassandra hector client.
*
* @author Ran Tavory (rantav@gmail.com)
*
*/
public class ExampleClient {
public static void main(String[] args) throws IllegalStateException, PoolExhaustedException, ... | * Example client that uses the cassandra hector client.
*
* @author Ran Tavory (rantav@gmail.com)
*
*/
public class ExampleClient {
public static void main(String[] args) throws IllegalStateException, PoolExhaustedException, Exception {
CassandraClientPool pool = CassandraClientPoolFactory.INSTANCE.get();
... | <|file_sep|>original/src/main/java/me/prettyprint/cassandra/service/ExampleClient.java
* Example client that uses the cassandra hector client.
*
* @author Ran Tavory (rantav@gmail.com)
*
*/
public class ExampleClient {
public static void main(String[] args) throws IllegalStateException, PoolExhaustedException, ... | 43fe84036738f6fe0743651b12ec14b44c6f55cd | src/main/java/me/prettyprint/cassandra/service/ExampleClient.java | src/main/java/me/prettyprint/cassandra/service/ExampleClient.java | Java |
<|file_sep|>original/phpunit.xml.dist
<directory>./tests/TestCase</directory>
</testsuite>
</testsuites>
<filter>
<blacklist>
<directory suffix=".php">./docs</directory>
<directory suffix=".php">./vendor</directory>
<file>./tests/bootstrap.php</fi... | <directory>./tests/TestCase</directory>
</testsuite>
</testsuites>
<filter>
<blacklist>
<directory suffix=".php">./docs</directory>
<directory suffix=".php">./vendor</directory>
<file>./tests/bootstrap.php</file>
</blacklist>
<!-- ... | <|file_sep|>original/phpunit.xml.dist
<directory>./tests/TestCase</directory>
</testsuite>
</testsuites>
<filter>
<blacklist>
<directory suffix=".php">./docs</directory>
<directory suffix=".php">./vendor</directory>
<file>./tests/bootstrap.php</fi... | c91c59592a5397b2a2bf1d38d5b437433b431ad9 | phpunit.xml.dist | phpunit.xml.dist | unknown |
<|file_sep|>original/cross/bison/patches/gets.patch
<|file_sep|>current/cross/bison/patches/gets.patch
<|file_sep|>updated/cross/bison/patches/gets.patch | --- lib/stdio.in.h_org 2014-04-26 01:24:51.806205276 +0200
+++ lib/stdio.in.h 2014-04-26 01:24:37.058176287 +0200
@@ -180,8 +180,10 @@
/* It is very rare that the developer ever has full control of stdin,
so any use of gets warrants an unconditional warning. Assume it is
always declared, since it is required ... | <|file_sep|>original/cross/bison/patches/gets.patch
<|file_sep|>current/cross/bison/patches/gets.patch
<|file_sep|>updated/cross/bison/patches/gets.patch
--- lib/stdio.in.h_org 2014-04-26 01:24:51.806205276 +0200
+++ lib/stdio.in.h 2014-04-26 01:24:37.058176287 +0200
@@ -180,8 +180,10 @@
/* It is very rare that the ... | 3d10f32ab72ecd79db221170a2e4b68a2551feb7 | cross/bison/patches/gets.patch | cross/bison/patches/gets.patch | Diff |
<|file_sep|>recipes/default.rb.diff
original:
# Install Ruby via rvm
# Include here so that we can set Ruby version in this recipe
include_recipe "rvm::user"
include_recipe "rvm::vagrant"
updated:
# Add ppa with newer Ruby version
apt_repository "brightbox-ruby-ng" do
action :add
uri "http://ppa.laun... | key "C3173AA6"
end
# Install Ruby and other required packages
%w{ruby2.0 curl}.each do |pkg|
package pkg do
action :install
end
end
gem_package "bundler" do
gem_binary "/usr/bin/gem"
end
# Install required gems via bundler
# store them in vendor/bundle
script "bundle" do
interpreter "bash"
cw... | <|file_sep|>recipes/default.rb.diff
original:
# Install Ruby via rvm
# Include here so that we can set Ruby version in this recipe
include_recipe "rvm::user"
include_recipe "rvm::vagrant"
updated:
# Add ppa with newer Ruby version
apt_repository "brightbox-ruby-ng" do
action :add
uri "http://ppa.laun... | 0dd155c96c740d3296b7f5e32d663b0c575dba70 | recipes/default.rb | recipes/default.rb | Ruby |
<|file_sep|>original/gamecraft/wsgi.py
"""
WSGI config for gamecraft project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE"... | """
WSGI config for gamecraft project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "gamecraft.settings_docker")
from dj... | <|file_sep|>original/gamecraft/wsgi.py
"""
WSGI config for gamecraft project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE"... | 2a0dafb41a0e033f58848fd8e325b96466b924b5 | gamecraft/wsgi.py | gamecraft/wsgi.py | Python |
<|file_sep|>original/tests/test_S3.py
<|file_sep|>current/tests/test_S3.py
<|file_sep|>updated/tests/test_S3.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from keyring.tests.test_backend import BackendBasicTests
from keyring.tests.py30compat import unittest
from s3keyring import S3
@unittest.skipUnless(S3.supported(),
"You need to configure the AWS credentials")
class S3PlaintextKeychainTestCase(Backen... | <|file_sep|>original/tests/test_S3.py
<|file_sep|>current/tests/test_S3.py
<|file_sep|>updated/tests/test_S3.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from keyring.tests.test_backend import BackendBasicTests
from keyring.tests.py30compat import unittest
from s3keyring import S3
@unittest.skipUnless(S3.suppo... | 7ee1168509ecdef6ba6cc81faeb3b6c9674ddc67 | tests/test_S3.py | tests/test_S3.py | Python |
<|file_sep|>lib/behavior/events.js.diff
original:
updated:
var doc = this;
var Class = doc.constructor;
<|file_sep|>lib/behavior/events.js.diff
original:
var behaviorData = Astro.utils.behaviors.findBehavior(this.constructor, 'timestamp');
updated:
var behaviorData = Astro.utils.behaviors.findBehavior(
Cl... | // Set value for the "updatedAt" field.
this.set(behaviorData.updatedFieldName, date);
}
};
events.beforeUpdate = function() {
var doc = this;
var Class = doc.constructor;
// Find a class on which the behavior had been set.
var behaviorData = Astro.utils.behaviors.findBehavior(
Class,
'times... | <|file_sep|>lib/behavior/events.js.diff
original:
updated:
var doc = this;
var Class = doc.constructor;
<|file_sep|>lib/behavior/events.js.diff
original:
var behaviorData = Astro.utils.behaviors.findBehavior(this.constructor, 'timestamp');
updated:
var behaviorData = Astro.utils.behaviors.findBehavior(
Cl... | f86c39497502954b6973702cf090e76fa3ddf463 | lib/behavior/events.js | lib/behavior/events.js | JavaScript |
<|file_sep|>original/install_windows.bat
@echo off
cd src
pip install -r requirements.txt
pause
<|file_sep|>current/install_windows.bat
@echo off
cd src
pip install -r requirements.txt
pause
<|file_sep|>updated/install_windows.bat | @echo off
cd src
pip install -r requirements.txt
copy src\settings\local.py.example src\settings\local.py
pause
| <|file_sep|>original/install_windows.bat
@echo off
cd src
pip install -r requirements.txt
pause
<|file_sep|>current/install_windows.bat
@echo off
cd src
pip install -r requirements.txt
pause
<|file_sep|>updated/install_windows.bat
@echo off
cd src
pip install -r requirements.txt
copy src\settings\local.py.example src... | cfdff1cdc2e689a8db7c3b147f9860ea4b660b79 | install_windows.bat | install_windows.bat | Batchfile |
<|file_sep|>original/public/modules/core/views/about.client.view.html
<img src="http://placekitten.com/g/400/300" alt="kitten">
<figcaption>
<h3>Captain Furball</h3>
<span>Cute little fuzzball with a whole lotta spunk and heart.</span>
</figcaption>
</figure>
</li>
... |
<li>
<figure>
<img src="http://placekitten.com/g/400/300" alt="kitten">
<figcaption>
<h3>Admiral Crookshanks</h3>
<span>Sail the high seas with the Admiral, also knows as El Capitan.</span>
</figcaption>
</figure>
</li>
<li>
<figure>
<i... | <|file_sep|>original/public/modules/core/views/about.client.view.html
<img src="http://placekitten.com/g/400/300" alt="kitten">
<figcaption>
<h3>Captain Furball</h3>
<span>Cute little fuzzball with a whole lotta spunk and heart.</span>
</figcaption>
</figure>
</li>
... | 775292e59e273f3c9be8869b4b2b201755e38023 | public/modules/core/views/about.client.view.html | public/modules/core/views/about.client.view.html | HTML |
<|file_sep|>original/vendor/CMakeLists.txt
set(gRPC_USE_PROTO_LITE ON CACHE BOOL "Use the protobuf-lite library")
set(BENCHMARK_ENABLE_TESTING OFF)
add_subdirectory(grpc EXCLUDE_FROM_ALL)
foreach(LIBRARY zlib libprotobuf)
target_compile_definitions(${LIBRARY} PUBLIC z_size_t=size_t)
endforeach()
foreach(LIBRARY libpr... | set(gRPC_USE_PROTO_LITE ON CACHE BOOL "Use the protobuf-lite library")
set(BENCHMARK_ENABLE_TESTING OFF)
add_subdirectory(grpc EXCLUDE_FROM_ALL)
foreach(LIBRARY zlib libprotobuf)
target_compile_definitions(${LIBRARY} PUBLIC z_size_t=size_t)
endforeach()
foreach(LIBRARY libprotobuf-lite libprotobuf protoc libprotoc)
... | <|file_sep|>original/vendor/CMakeLists.txt
set(gRPC_USE_PROTO_LITE ON CACHE BOOL "Use the protobuf-lite library")
set(BENCHMARK_ENABLE_TESTING OFF)
add_subdirectory(grpc EXCLUDE_FROM_ALL)
foreach(LIBRARY zlib libprotobuf)
target_compile_definitions(${LIBRARY} PUBLIC z_size_t=size_t)
endforeach()
foreach(LIBRARY libpr... | 836f14c9fcc4e0565c949131c7b9a3f9c37e0d04 | vendor/CMakeLists.txt | vendor/CMakeLists.txt | Text |
<|file_sep|>user_clipboard/urls.py.diff
original:
from django.conf.urls import patterns, url
updated:
from django.conf.urls import url
<|file_sep|>user_clipboard/urls.py.diff
original:
urlpatterns = patterns(
'',
updated:
urlpatterns = [
<|file_sep|>original/user_clipboard/urls.py
from django.conf.urls import patte... | from django.conf.urls import url
from .views import ClipboardFileAPIView, ClipboardImageAPIView
urlpatterns = [
url(r'^images/(?P<pk>\d+)$', ClipboardImageAPIView.as_view(), name="clipboard_images"),
url(r'^images/', ClipboardImageAPIView.as_view(), name="clipboard_images"),
url(r'^(?P<pk>\d+)$', Clipboar... | <|file_sep|>user_clipboard/urls.py.diff
original:
from django.conf.urls import patterns, url
updated:
from django.conf.urls import url
<|file_sep|>user_clipboard/urls.py.diff
original:
urlpatterns = patterns(
'',
updated:
urlpatterns = [
<|file_sep|>original/user_clipboard/urls.py
from django.conf.urls import patte... | 7784186509e41c72bcf7a4ebbd9b268b49449d35 | user_clipboard/urls.py | user_clipboard/urls.py | Python |
<|file_sep|>scripts/tweet_release.js.diff
original:
var fetch = require('node-fetch')
var execSync = require('child_process').execSync
updated:
import fetch from 'node-fetch'
import {execSync} from 'child_process'
<|file_sep|>scripts/tweet_release.js.diff
original:
var zapierHookURL = 'https://zapier.com/hooks/catch/3p... | const zapierHookURL
= `https://zapier.com/hooks/catch/${process.env.ZAPIER_TWEET_RELEASE_HOOK_ID}/`
const tag = process.env.TRAVIS_TAG
|| execSync('git describe --abbrev=0 --tags').toString().trim()
const changelogUrl
= `https://github.com/toptal/tracker-front/blob/master/CHANGELOG.md#${tag.replace(/\./g, '')}`
... | <|file_sep|>scripts/tweet_release.js.diff
original:
var fetch = require('node-fetch')
var execSync = require('child_process').execSync
updated:
import fetch from 'node-fetch'
import {execSync} from 'child_process'
<|file_sep|>scripts/tweet_release.js.diff
original:
var zapierHookURL = 'https://zapier.com/hooks/catch/3p... | 3c46ee20228420ded9a6752e8b5fbf482d1ab9b4 | scripts/tweet_release.js | scripts/tweet_release.js | JavaScript |
<|file_sep|>original/.travis.yml
# Set the language
language: bash
# Set the environment path to include Pandoc binaries
env:
global:
- PATH=$TRAVIS_BUILD_DIR/usr/bin/:$PATH
before_install:
# Fetch pandoc and pandoc-citeproc binaries
- wget https://github.com/jgm/pandoc/releases/download/1.15.0.5/pandoc-1.1... | # Set the language
language: bash
# Set the environment path to include Pandoc binaries
env:
global:
- PATH=$TRAVIS_BUILD_DIR/usr/bin/:$PATH
before_install:
# Fetch pandoc and pandoc-citeproc binaries
- wget https://github.com/jgm/pandoc/releases/download/1.17.2/pandoc-1.17.2-1-amd64.deb && ar p pandoc-1.17... | <|file_sep|>original/.travis.yml
# Set the language
language: bash
# Set the environment path to include Pandoc binaries
env:
global:
- PATH=$TRAVIS_BUILD_DIR/usr/bin/:$PATH
before_install:
# Fetch pandoc and pandoc-citeproc binaries
- wget https://github.com/jgm/pandoc/releases/download/1.15.0.5/pandoc-1.1... | 0b92be6d9de2d8c6eeeddb07742ebffb759cf8b1 | .travis.yml | .travis.yml | YAML |
<|file_sep|>tests/factory_tests/test_images.py.diff
original:
updated:
# In Python 2 Django's File wraps the builtin `file`, but that doesn't exist in Python 3.
try:
FILE_TYPE = file
except NameError:
FILE_TYPE = BufferedReader
<|file_sep|>tests/factory_tests/test_images.py.diff
original:
file = FileFact... |
def test_local_file_field():
class FileFactory(factory.StubFactory):
file = images.LocalFileField()
built_file = FileFactory.build().file
assert isinstance(built_file, File)
assert isinstance(built_file.file, FILE_TYPE)
def test_simple_png_file_field():
class FileFactory(factory.StubFact... | <|file_sep|>tests/factory_tests/test_images.py.diff
original:
updated:
# In Python 2 Django's File wraps the builtin `file`, but that doesn't exist in Python 3.
try:
FILE_TYPE = file
except NameError:
FILE_TYPE = BufferedReader
<|file_sep|>tests/factory_tests/test_images.py.diff
original:
file = FileFact... | 5a6b903fc0a309d61e02d020f46ebf2d6c482ed3 | tests/factory_tests/test_images.py | tests/factory_tests/test_images.py | Python |
<|file_sep|>original/requirements-dev.txt
Werkzeug==0.15.1
ipdb==0.12
ipython==7.4.0
therapist==1.5.0
<|file_sep|>current/requirements-dev.txt
Werkzeug==0.15.1
ipdb==0.12
ipython==7.4.0
therapist==1.5.0
<|file_sep|>updated/requirements-dev.txt | Werkzeug==0.15.1
ipdb==0.12
ipython==7.4.0
therapist==1.6.0 | <|file_sep|>original/requirements-dev.txt
Werkzeug==0.15.1
ipdb==0.12
ipython==7.4.0
therapist==1.5.0
<|file_sep|>current/requirements-dev.txt
Werkzeug==0.15.1
ipdb==0.12
ipython==7.4.0
therapist==1.5.0
<|file_sep|>updated/requirements-dev.txt
Werkzeug==0.15.1
ipdb==0.12
ipython==7.4.0
therapist==1.6.0 | 0d211ad47b7ab0b502be32805ebe15c0d083a365 | requirements-dev.txt | requirements-dev.txt | Text |
<|file_sep|>original/raygun_client.gemspec
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'raygun_client'
s.version = '0.0.2.3'
s.summary = 'Client for the Raygun API using the Obsidian HTTP client'
s.description = ' '
s.authors = ['Obsidian Software, Inc']
s.email = 'opensource@obsidiane... | # -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'raygun_client'
s.version = '0.0.2.4'
s.summary = 'Client for the Raygun API using the Obsidian HTTP client'
s.description = ' '
s.authors = ['Obsidian Software, Inc']
s.email = 'opensource@obsidianexchange.com'
s.homepage = 'https://github... | <|file_sep|>original/raygun_client.gemspec
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'raygun_client'
s.version = '0.0.2.3'
s.summary = 'Client for the Raygun API using the Obsidian HTTP client'
s.description = ' '
s.authors = ['Obsidian Software, Inc']
s.email = 'opensource@obsidiane... | 0d2f138931033a07a4ab0313ec9e1222985e571b | raygun_client.gemspec | raygun_client.gemspec | Ruby |
<|file_sep|>original/prepare_build.sh
rpm --quiet -q siso-rt5-devel
if [ $? -eq 0 ] ; then
sudo rpm -e siso-rt5-devel
fi
rpm --quiet -q siso-rt5
if [ $? -eq 0 ] ; then
sudo rpm -e siso-rt5
fi
sudo rpm -i siso-rt5-5.1.2-1.x86_64.rpm
sudo rpm -i siso-rt5-devel-5.1.2-1.x86_64.rpm
. /etc/profile.d/siso-rt5.sh
<|fil... | wget http://www.silicon-software.de/download/systemsoftware/Linux/siso-rt5-5.1.2-1.x86_64.rpm
wget http://www.silicon-software.de/download/systemsoftware/Linux/siso-rt5-devel-5.1.2-1.x86_64.rpm
rpm --quiet -q siso-rt5-devel
if [ $? -eq 0 ] ; then
sudo rpm -e siso-rt5-devel
fi
rpm --quiet -q siso-rt5
if [ $? -eq 0 ... | <|file_sep|>original/prepare_build.sh
rpm --quiet -q siso-rt5-devel
if [ $? -eq 0 ] ; then
sudo rpm -e siso-rt5-devel
fi
rpm --quiet -q siso-rt5
if [ $? -eq 0 ] ; then
sudo rpm -e siso-rt5
fi
sudo rpm -i siso-rt5-5.1.2-1.x86_64.rpm
sudo rpm -i siso-rt5-devel-5.1.2-1.x86_64.rpm
. /etc/profile.d/siso-rt5.sh
<|fil... | 284f59f392a7c5cc6e8ab38cf1e68d64258ce800 | prepare_build.sh | prepare_build.sh | Shell |
<|file_sep|>original/test/index.js
describe('angular-q-promisify', function () {
var $q, $timeout;
beforeEach(angular.mock.module(require('../')));
beforeEach(angular.mock.inject(function (_$q_, _$timeout_) {
$q = _$q_;
$timeout = _$timeout_;
}));
describe('#promisify', function () {
it('promi... | }));
describe('#promisify', function () {
it('promisifes a nodeback', function () {
var nodeback = sinon.stub().yields(null);
expect($q.promisify(nodeback)()).to.be.fulfilled;
$timeout.flush();
});
it('fulfills with a value', function () {
var nodeback = sinon.stub().yields(nu... | <|file_sep|>original/test/index.js
describe('angular-q-promisify', function () {
var $q, $timeout;
beforeEach(angular.mock.module(require('../')));
beforeEach(angular.mock.inject(function (_$q_, _$timeout_) {
$q = _$q_;
$timeout = _$timeout_;
}));
describe('#promisify', function () {
it('promi... | 8a98c87529386ae4d0eb1db4963fd227ce114883 | test/index.js | test/index.js | JavaScript |
<|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.1
- 2.1.2
script: bundle exec rake spec
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.1
- 2.1.2
script: bundle exec rake spec
<|file_sep|>updated/.travis.yml | language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.1
- 2.1.2
script: bundle exec cucumber | <|file_sep|>original/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.1
- 2.1.2
script: bundle exec rake spec
<|file_sep|>current/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.1
- 2.1.2
script: bundle exec rake spec
<|file_sep|>updated/.travis.yml
language: ruby
rvm:
- 1.9.3
- 2.0.0
-... | 220d2ba16d096e5413c2dfa5a4f34c2709bafec7 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/.travis.yml
- pip install tox coveralls
script:
- tox -e py${TRAVIS_PYTHON_VERSION//[.]/}-$DJANGO
matrix:
exclude:
- python: "2.6"
env: DJANGO=1.7
- python: "2.6"
env: DJANGO=master
after_success: coveralls
notifications:
webhooks:
urls:
- https://webhooks.... | - pip install tox coveralls
script:
- tox -e py${TRAVIS_PYTHON_VERSION//[.]/}-$DJANGO
matrix:
exclude:
- python: "2.6"
env: DJANGO=1.7
- python: "2.6"
env: DJANGO=master
after_success: coveralls
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/07df398ea594d3682132
... | <|file_sep|>original/.travis.yml
- pip install tox coveralls
script:
- tox -e py${TRAVIS_PYTHON_VERSION//[.]/}-$DJANGO
matrix:
exclude:
- python: "2.6"
env: DJANGO=1.7
- python: "2.6"
env: DJANGO=master
after_success: coveralls
notifications:
webhooks:
urls:
- https://webhooks.... | eba850cb22bdd508163454da75cc5052c628bb3f | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/marshmallow_jsonapi/__init__.py
from .schema import Schema, SchemaOpts
__version__ = "0.21.2"
__author__ = "Steven Loria"
__license__ = "MIT"
__all__ = ("Schema", "SchemaOpts")
<|file_sep|>current/marshmallow_jsonapi/__init__.py
from .schema import Schema, SchemaOpts
__version__ = "0.21.2"
__aut... | from .schema import Schema, SchemaOpts
__version__ = "0.21.2"
__all__ = ("Schema", "SchemaOpts") | <|file_sep|>original/marshmallow_jsonapi/__init__.py
from .schema import Schema, SchemaOpts
__version__ = "0.21.2"
__author__ = "Steven Loria"
__license__ = "MIT"
__all__ = ("Schema", "SchemaOpts")
<|file_sep|>current/marshmallow_jsonapi/__init__.py
from .schema import Schema, SchemaOpts
__version__ = "0.21.2"
__aut... | 1ffff2738c4ced2aedb8b63f5c729860aab1bac7 | marshmallow_jsonapi/__init__.py | marshmallow_jsonapi/__init__.py | Python |
<|file_sep|>original/messaging.gemspec
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'evt-messaging'
s.version = '0.16.0.1'
s.summary = 'Common primitives for platform-specific messaging implementations for Eventide'
s.description = ' '
s.authors = ['The Eventide Project']
s.email = 'ope... | # -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'evt-messaging'
s.version = '0.16.0.2'
s.summary = 'Common primitives for platform-specific messaging implementations for Eventide'
s.description = ' '
s.authors = ['The Eventide Project']
s.email = 'opensource@eventide-project.org'
s.homep... | <|file_sep|>original/messaging.gemspec
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'evt-messaging'
s.version = '0.16.0.1'
s.summary = 'Common primitives for platform-specific messaging implementations for Eventide'
s.description = ' '
s.authors = ['The Eventide Project']
s.email = 'ope... | 861d2dd66719fefbce371c37eabd219308b87aeb | messaging.gemspec | messaging.gemspec | Ruby |
<|file_sep|>original/libc/sysdeps/linux/arm/bits/arm_asm.h
.syntax unified
# endif /* __ASSEMBLER__ */
#define IT(t, cond) i##t cond
#else
/* XXX: This can be removed if/when we require an assembler that supports
unified assembly syntax. */
#define IT(t, cond)
/* Code to return from a thumb function stub. */
#ifde... | .syntax unified
# endif /* __ASSEMBLER__ */
#define IT(t, cond) i##t cond
#else
/* XXX: This can be removed if/when we require an assembler that supports
unified assembly syntax. */
#define IT(t, cond)
/* Code to return from a thumb function stub. */
# if defined __ARM_ARCH_4T__ && defined __THUMB_INTERWORK__
# d... | <|file_sep|>original/libc/sysdeps/linux/arm/bits/arm_asm.h
.syntax unified
# endif /* __ASSEMBLER__ */
#define IT(t, cond) i##t cond
#else
/* XXX: This can be removed if/when we require an assembler that supports
unified assembly syntax. */
#define IT(t, cond)
/* Code to return from a thumb function stub. */
#ifde... | 298f58e073b2782bd264edea969769b7b5e7cf41 | libc/sysdeps/linux/arm/bits/arm_asm.h | libc/sysdeps/linux/arm/bits/arm_asm.h | C |
<|file_sep|>app/views/users/show.html.erb.diff
original:
<ul>
<li class="profile-name"><%= @user.name %> Posts</li>
</ul>
updated:
<h3><%= @user.name %> Posts</h3>
<|file_sep|>original/app/views/users/show.html.erb
<% @user.comments.each do |comment| %>
<div class="vote-container">
<% if current_user %... | <% else %>
<%= link_to image_tag("snowflake.png", class: "snowflake") %>
<% end %>
<br>
<%= comment.votes.sum(:value) %>
</div>
<div class="comment-container">
<ul>
<li><p class="comment"><%= comment.content%></p></li><br>
<li><%= comment.trail.name %> @ <%= comment.trail.mount... | <|file_sep|>app/views/users/show.html.erb.diff
original:
<ul>
<li class="profile-name"><%= @user.name %> Posts</li>
</ul>
updated:
<h3><%= @user.name %> Posts</h3>
<|file_sep|>original/app/views/users/show.html.erb
<% @user.comments.each do |comment| %>
<div class="vote-container">
<% if current_user %... | 3347413ad989d6a021055ddb21cebc2acd683f7d | app/views/users/show.html.erb | app/views/users/show.html.erb | HTML+ERB |
<|file_sep|>original/app/workers/csv_export_worker.rb
class CsvExportWorker
include Sidekiq::Worker
def perform(csv_export_id)
csv_export = CsvExport.find(csv_export_id)
return if csv_export.sent?
csv_export.export!
CsvExportMailer.csv_download(csv_export).deliver
csv_export.mark_sent!
end
en... | class CsvExportWorker
include Sidekiq::Worker
def perform(csv_export_id)
csv_export = CsvExport.find(csv_export_id)
return if csv_export.sent?
csv_export.export!
CsvExportMailer.csv_download(csv_export).deliver_now
csv_export.mark_sent!
end
end | <|file_sep|>original/app/workers/csv_export_worker.rb
class CsvExportWorker
include Sidekiq::Worker
def perform(csv_export_id)
csv_export = CsvExport.find(csv_export_id)
return if csv_export.sent?
csv_export.export!
CsvExportMailer.csv_download(csv_export).deliver
csv_export.mark_sent!
end
en... | db7082d6bbbeeac0b51ed3cae3a7a91180ad1799 | app/workers/csv_export_worker.rb | app/workers/csv_export_worker.rb | Ruby |
<|file_sep|>cucumber-formatters.gemspec.diff
original:
spec.version = '0.0.1'
updated:
spec.version = '0.0.2'
<|file_sep|>original/cucumber-formatters.gemspec
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
Gem::Specification.new do |spec|
spec.name ... | lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
Gem::Specification.new do |spec|
spec.name = 'cucumber-formatters'
spec.summary = 'A helpful bunch of formatters'
spec.description = 'A collection of cucumber formatters'
spec.homepage = 'http:/... | <|file_sep|>cucumber-formatters.gemspec.diff
original:
spec.version = '0.0.1'
updated:
spec.version = '0.0.2'
<|file_sep|>original/cucumber-formatters.gemspec
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
Gem::Specification.new do |spec|
spec.name ... | 842f1089637005c359ec3f0f64df6e5140c1ec7f | cucumber-formatters.gemspec | cucumber-formatters.gemspec | Ruby |
<|file_sep|>original/python/servo/packages.py
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at https://mozilla.org/MPL/2.0/.
WINDOWS_MSVC = {
"cmake": "3.14.3",
"llvm": "8.0.1",
"moztool... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at https://mozilla.org/MPL/2.0/.
WINDOWS_MSVC = {
"cmake": "3.14.3",
"llvm": "9.0.0",
"moztools": "3.2",
"ninja": "1.7.1",
"nuget": ... | <|file_sep|>original/python/servo/packages.py
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at https://mozilla.org/MPL/2.0/.
WINDOWS_MSVC = {
"cmake": "3.14.3",
"llvm": "8.0.1",
"moztool... | c32b1ac940aee449fb3a73fe9c04837618eb7ad1 | python/servo/packages.py | python/servo/packages.py | Python |
<|file_sep|>conf/nextpnr/environment.yml.diff
original:
- symbiflow
updated:
- litex-hub
<|file_sep|>conf/nextpnr/environment.yml.diff
original:
- symbiflow-yosys=0.8_6021_gd8b2d1a2=20200708_083630
- symbiflow-yosys-plugins=1.0.0.7_0174_g5e6370a=20201012_171341
- symbiflow-vtr=8.0.0.rc2_5097_gf1a3bcc2a
- ne... | name: nextpnr-env
channels:
- defaults
- litex-hub
dependencies:
- litex-hub::symbiflow-yosys=0.8_6021_gd8b2d1a2=20201120_145821_libffi33
- litex-hub::symbiflow-yosys-plugins=1.0.0.7_0174_g5e6370a=20201012_171341
- litex-hub::symbiflow-vtr=8.0.0rc2_5082_gf1a3bcc2a=20201105_110531
- litex-hub::nextpnr-ice40=... | <|file_sep|>conf/nextpnr/environment.yml.diff
original:
- symbiflow
updated:
- litex-hub
<|file_sep|>conf/nextpnr/environment.yml.diff
original:
- symbiflow-yosys=0.8_6021_gd8b2d1a2=20200708_083630
- symbiflow-yosys-plugins=1.0.0.7_0174_g5e6370a=20201012_171341
- symbiflow-vtr=8.0.0.rc2_5097_gf1a3bcc2a
- ne... | 472d8bd7654a3f9e852c9f171301dff305f43f3e | conf/nextpnr/environment.yml | conf/nextpnr/environment.yml | YAML |
<|file_sep|>lib/writeToCtfd2Zip.js.diff
original:
function writeToCtfd3Zip ({ challenges, hints, flagKeys }, desiredFileName) {
updated:
function writeToCtfd2Zip ({ challenges, hints, flagKeys }, desiredFileName) {
<|file_sep|>original/lib/writeToCtfd2Zip.js
const path = require('path')
const dateFormat = require('date... | const path = require('path')
const dateFormat = require('dateformat')
const Zip = require('node-zip')
const zip = new Zip()
function writeToCtfd2Zip ({ challenges, hints, flagKeys }, desiredFileName) {
return new Promise((resolve, reject) => {
const fileName = desiredFileName || 'OWASP_Juice_Shop.' + dateFormat(... | <|file_sep|>lib/writeToCtfd2Zip.js.diff
original:
function writeToCtfd3Zip ({ challenges, hints, flagKeys }, desiredFileName) {
updated:
function writeToCtfd2Zip ({ challenges, hints, flagKeys }, desiredFileName) {
<|file_sep|>original/lib/writeToCtfd2Zip.js
const path = require('path')
const dateFormat = require('date... | cc9080ee892638e0a67b8ad227bc4dc932de8613 | lib/writeToCtfd2Zip.js | lib/writeToCtfd2Zip.js | JavaScript |
<|file_sep|>original/samsungctl/__init__.py
"""Remote control Samsung televisions via TCP/IP connection"""
from .remote import Remote
__title__ = "samsungctl"
__version__ = "0.6.0-git"
__url__ = "https://github.com/Ape/samsungctl"
__author__ = "Lauri Niskanen"
__author_email__ = "ape@ape300... | """Remote control Samsung televisions via TCP/IP connection"""
from .remote import Remote
__title__ = "samsungctl"
__version__ = "0.6.0+1"
__url__ = "https://github.com/Ape/samsungctl"
__author__ = "Lauri Niskanen"
__author_email__ = "ape@ape3000.com"
__license__ = "MIT" | <|file_sep|>original/samsungctl/__init__.py
"""Remote control Samsung televisions via TCP/IP connection"""
from .remote import Remote
__title__ = "samsungctl"
__version__ = "0.6.0-git"
__url__ = "https://github.com/Ape/samsungctl"
__author__ = "Lauri Niskanen"
__author_email__ = "ape@ape300... | ef576a884bd4155fbc8bec8615c25544e74b98c3 | samsungctl/__init__.py | samsungctl/__init__.py | Python |
<|file_sep|>original/test/test_projects/flutter_web/broken/lib/main.dart
void main() => runApp(new MyBrokenApp());
class MyBrokenApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Flutter Demo',
theme: new ThemeData(primarySwatch: Colors.blu... | Widget build(BuildContext context) {
return new MaterialApp(
title: 'Flutter Demo',
theme: new ThemeData(primarySwatch: Colors.blue),
home: new MyBrokenHomePage(),
);
}
}
class MyBrokenHomePage extends StatelessWidget {
MyBrokenHomePage({Key key}) : super(key: key);
@override
Widge... | <|file_sep|>original/test/test_projects/flutter_web/broken/lib/main.dart
void main() => runApp(new MyBrokenApp());
class MyBrokenApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Flutter Demo',
theme: new ThemeData(primarySwatch: Colors.blu... | bc90c5d3b1277adc6d8132b921e5827117b6a41b | test/test_projects/flutter_web/broken/lib/main.dart | test/test_projects/flutter_web/broken/lib/main.dart | Dart |
<|file_sep|>original/.travis.yml
language: ruby
env:
- 'DB_ADAPTER=mysql2 DB_USERNAME=root'
- 'DB_ADAPTER=sqlite3'
rvm:
- 1.9.2
- 1.9.3
script: bundle exec rake app:masq:test:ci
<|file_sep|>current/.travis.yml
language: ruby
env:
- 'DB_ADAPTER=mysql2 DB_USERNAME=root'
- 'DB_ADAPTER=sqlite3'
rvm:
- 1.9.2
... | language: ruby
env:
- 'DB_ADAPTER=mysql2 DB_USERNAME=root'
- 'DB_ADAPTER=sqlite3'
rvm:
- 1.9.2
- 1.9.3
- 2.0.0
script: bundle exec rake app:masq:test:ci | <|file_sep|>original/.travis.yml
language: ruby
env:
- 'DB_ADAPTER=mysql2 DB_USERNAME=root'
- 'DB_ADAPTER=sqlite3'
rvm:
- 1.9.2
- 1.9.3
script: bundle exec rake app:masq:test:ci
<|file_sep|>current/.travis.yml
language: ruby
env:
- 'DB_ADAPTER=mysql2 DB_USERNAME=root'
- 'DB_ADAPTER=sqlite3'
rvm:
- 1.9.2
... | fc860669cb547501a45ab8c67bd940399d3d76f1 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/fish/functions/getbench.fish
function gettime -d "How long does it take to retrieve a URL?"
curl -kso /dev/null -w "dns: %{time_namelookup} tcp:%{time_connect} ssl:%{time_appconnect}\n" $argv
end
<|file_sep|>current/fish/functions/getbench.fish
function gettime -d "How long does it take to retrie... | function getbench -d "How long does it take to retrieve a URL?"
curl -kso /dev/null -w "dns: %{time_namelookup} tcp:%{time_connect} ssl:%{time_appconnect}\n" $argv
end | <|file_sep|>original/fish/functions/getbench.fish
function gettime -d "How long does it take to retrieve a URL?"
curl -kso /dev/null -w "dns: %{time_namelookup} tcp:%{time_connect} ssl:%{time_appconnect}\n" $argv
end
<|file_sep|>current/fish/functions/getbench.fish
function gettime -d "How long does it take to retrie... | 641dafdef81831b934de0ca8f0701d3b68f4af9e | fish/functions/getbench.fish | fish/functions/getbench.fish | fish |
<|file_sep|>original/docs/SUMMARY.md
# Summary
* [Introduction](README.md)
* [Routing](route/README.md)
* [Callable](route/callable.md)
* [Filename](route/filename.md)
* [Files](route/files.md)
* [Resource](route/resource.md)
* [PSR-7](route/psr-7.md)
* [Note on Handlers](route/note-on-handlers.md)
* [Http... | # Summary
* [Introduction](README.md)
* [Routing](route/README.md)
* [Callable](route/callable.md)
* [Filename](route/filename.md)
* [Files](route/files.md)
* [Resource](route/resource.md)
* [PSR-7](route/psr-7.md)
* [Note on Handlers](route/note-on-handlers.md)
* [Http](http/README.md)
* [PSR-7](http/ps... | <|file_sep|>original/docs/SUMMARY.md
# Summary
* [Introduction](README.md)
* [Routing](route/README.md)
* [Callable](route/callable.md)
* [Filename](route/filename.md)
* [Files](route/files.md)
* [Resource](route/resource.md)
* [PSR-7](route/psr-7.md)
* [Note on Handlers](route/note-on-handlers.md)
* [Http... | 3e4c323e86334815d556b742b70dc712fde25d39 | docs/SUMMARY.md | docs/SUMMARY.md | Markdown |
<|file_sep|>templates/Includes/SiteConfigLeftAndMain_EditForm.ss.diff
original:
<div class="cms-content-actions cms-content-controls south">
updated:
<div class="toolbar--south cms-content-actions cms-content-controls south">
<|file_sep|>original/templates/Includes/SiteConfigLeftAndMain_EditForm.ss
<% if $Legend %... | <% if $Legend %><legend>$Legend</legend><% end_if %>
<% loop $Fields %>
$FieldHolder
<% end_loop %>
<div class="clear"><!-- --></div>
</fieldset>
</div>
<div class="toolbar--south cms-content-actions cms-content-controls south">
<% if $Actions %>
<div class="btn-toolbar">
<% loop $Actions %... | <|file_sep|>templates/Includes/SiteConfigLeftAndMain_EditForm.ss.diff
original:
<div class="cms-content-actions cms-content-controls south">
updated:
<div class="toolbar--south cms-content-actions cms-content-controls south">
<|file_sep|>original/templates/Includes/SiteConfigLeftAndMain_EditForm.ss
<% if $Legend %... | 935509163bf2b092d7501db88be203b98759ac30 | templates/Includes/SiteConfigLeftAndMain_EditForm.ss | templates/Includes/SiteConfigLeftAndMain_EditForm.ss | Scheme |
<|file_sep|>original/rest-specs/Standard-Resource-Formats.md
# Standard Resource Formats
*Work in progress*
<|file_sep|>current/rest-specs/Standard-Resource-Formats.md
# Standard Resource Formats
*Work in progress*
<|file_sep|>updated/rest-specs/Standard-Resource-Formats.md | # Standard Resource Formats
***Work in progress***
Examples of current OADA formats can be found in the [formats directory][formats-dir].
[formats-dir]: https://github.com/OADA/oada-docs/tree/master/formats | <|file_sep|>original/rest-specs/Standard-Resource-Formats.md
# Standard Resource Formats
*Work in progress*
<|file_sep|>current/rest-specs/Standard-Resource-Formats.md
# Standard Resource Formats
*Work in progress*
<|file_sep|>updated/rest-specs/Standard-Resource-Formats.md
# Standard Resource Formats
***Work in pro... | ae1cfee1660d727f55b0ef0bd85afe3a4b84a88e | rest-specs/Standard-Resource-Formats.md | rest-specs/Standard-Resource-Formats.md | Markdown |
<|file_sep|>packages/hy/hypergeometric.yaml.diff
original:
hash: 3a42b23d137a2cf8e9e995ed9ff10576a38cd1e058ae340348c6d6b42a9c11f7
updated:
hash: e17359ae9bbe53bb2975d72e950733b6c85d7d81a40bbd9c879a5b9f06db0046
<|file_sep|>packages/hy/hypergeometric.yaml.diff
original:
updated:
## 0.1.2.0
* Add `tcdf`, `chisqcd... | ## 0.1.1.0
* Add `Math.SpecialFunction` with `gamma`, `beta` etc.
## 0.1.0.0
Initial release
basic-deps:
base: '>=4.3 && <5'
all-versions:
- 0.1.0.0
- 0.1.1.0
- 0.1.2.0
author: Vanessa McHale
latest: 0.1.2.0
description-type: markdown
description: |
# Hypergeometric
Various statistical functions inc... | <|file_sep|>packages/hy/hypergeometric.yaml.diff
original:
hash: 3a42b23d137a2cf8e9e995ed9ff10576a38cd1e058ae340348c6d6b42a9c11f7
updated:
hash: e17359ae9bbe53bb2975d72e950733b6c85d7d81a40bbd9c879a5b9f06db0046
<|file_sep|>packages/hy/hypergeometric.yaml.diff
original:
updated:
## 0.1.2.0
* Add `tcdf`, `chisqcd... | d9a875c09f49dc6f052aab6255e00149dcc89cdf | packages/hy/hypergeometric.yaml | packages/hy/hypergeometric.yaml | YAML |
<|file_sep|>original/web_external/js/views/widgets/ImageFullscreenWidget.js
isic.views.ImageFullscreenWidget = isic.View.extend({
render: function () {
this.$el.html(isic.templates.imageFullscreenWidget({
model: this.model
})).girderModal(this).on('shown.bs.modal', _.bind(function () {
... | isic.views.ImageFullscreenWidget = isic.View.extend({
render: function () {
this.$el.html(isic.templates.imageFullscreenWidget({
model: this.model
})).girderModal(this).on('shown.bs.modal', _.bind(function () {
this.imageViewerWidget = new isic.views.ImageViewerWidget({
... | <|file_sep|>original/web_external/js/views/widgets/ImageFullscreenWidget.js
isic.views.ImageFullscreenWidget = isic.View.extend({
render: function () {
this.$el.html(isic.templates.imageFullscreenWidget({
model: this.model
})).girderModal(this).on('shown.bs.modal', _.bind(function () {
... | 2c9904f02fda37ea6676aeaa56293b7a22cece08 | web_external/js/views/widgets/ImageFullscreenWidget.js | web_external/js/views/widgets/ImageFullscreenWidget.js | JavaScript |
<|file_sep|>rest-model/src/main/java/org/jboss/pnc/rest/utils/Utility.java.diff
original:
@FunctionalInterface
public interface Action {
void doIt();
}
updated:
<|file_sep|>rest-model/src/main/java/org/jboss/pnc/rest/utils/Utility.java.diff
original:
public static void performIfNotNull(Object ... | * 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.
*/
package org.jboss.pnc.rest.utils;
public class Utility {
/**
* Perform the given action if the object is not null
*
... | <|file_sep|>rest-model/src/main/java/org/jboss/pnc/rest/utils/Utility.java.diff
original:
@FunctionalInterface
public interface Action {
void doIt();
}
updated:
<|file_sep|>rest-model/src/main/java/org/jboss/pnc/rest/utils/Utility.java.diff
original:
public static void performIfNotNull(Object ... | 226d139c290e2a173e299dc4deb3dcb128f1117f | rest-model/src/main/java/org/jboss/pnc/rest/utils/Utility.java | rest-model/src/main/java/org/jboss/pnc/rest/utils/Utility.java | Java |
<|file_sep|>original/app/controllers/application_controller.rb
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
force_ssl if: "Rails.env.production? && ENV['LOCAL_HTTPS'] == 'true'"
helper_method :current_account
rescue_from ActionController::RoutingError, with: ... | # For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
force_ssl if: "Rails.env.production? && ENV['LOCAL_HTTPS'] == 'true'"
helper_method :current_account
rescue_from ActionController::RoutingError, with: :not_found
rescue_from ActiveRecord::RecordNotFound, with: :n... | <|file_sep|>original/app/controllers/application_controller.rb
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
force_ssl if: "Rails.env.production? && ENV['LOCAL_HTTPS'] == 'true'"
helper_method :current_account
rescue_from ActionController::RoutingError, with: ... | c02bdd64a0227d966731583ab7fca9cde19462f1 | app/controllers/application_controller.rb | app/controllers/application_controller.rb | Ruby |
<|file_sep|>apps/portal/prisma/seed-analysis.ts.diff
original:
for (const profile of profilesWithoutAnalysis) {
updated:
console.log(
'Number of profiles found without analysis:',
profilesWithoutAnalysis.length,
);
let i = 0;
while (i < profilesWithoutAnalysis.length) {
const profile = profilesW... | const profile = profilesWithoutAnalysis[i];
await generateAnalysis({
ctx: { prisma, session: null },
input: { profileId: profile.id },
});
i++;
console.log(i, ': Analysis generated for profile with id', profile.id);
}
console.log(i, ' analysis generated');
};
Promise.all([seedAna... | <|file_sep|>apps/portal/prisma/seed-analysis.ts.diff
original:
for (const profile of profilesWithoutAnalysis) {
updated:
console.log(
'Number of profiles found without analysis:',
profilesWithoutAnalysis.length,
);
let i = 0;
while (i < profilesWithoutAnalysis.length) {
const profile = profilesW... | 59c836c45d89f9d5342b248f47f3deef73369405 | apps/portal/prisma/seed-analysis.ts | apps/portal/prisma/seed-analysis.ts | TypeScript |
<|file_sep|>original/templates/print/layout.tex
\usepackage{tabu}
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{graphicx}
\usepackage{marginnote}
\hfuzz=5pt
\usepackage{array}
\usepackage{hyperref}
\hypersetup{
pdfinfo={
Creator={Stockor.com}
}
}
\usepackage{fancyhdr,lastpage}
\usepackage[left=2cm,to... | \usepackage{booktabs}
\usepackage{longtable}
\usepackage{graphicx}
\usepackage{marginnote}
\hfuzz=5pt
\usepackage{array}
\usepackage{hyperref}
\hypersetup{
pdfinfo={
Creator={Stockor.com}
}
}
\usepackage{fancyhdr,lastpage}
\usepackage[left=2cm,top=2cm,right=2cm,bottom=4cm]{geometry}
\newcolumntype{C}{>{\centeri... | <|file_sep|>original/templates/print/layout.tex
\usepackage{tabu}
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{graphicx}
\usepackage{marginnote}
\hfuzz=5pt
\usepackage{array}
\usepackage{hyperref}
\hypersetup{
pdfinfo={
Creator={Stockor.com}
}
}
\usepackage{fancyhdr,lastpage}
\usepackage[left=2cm,to... | 818b97516578b7b00da56bc9dbd465e4852dcd08 | templates/print/layout.tex | templates/print/layout.tex | TeX |
<|file_sep|>original/.travis.yml
jobs:
include:
- stage: other
script: npm run lint
node_js: lts/*
name: Lint
- script: npm run test:browser
node_js: lts/*
name: Local Browser Test
- script: 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then npm run test:browserstack; else true; ... | jobs:
include:
- stage: other
script: npm run lint
node_js: lts/*
name: Lint
# FIXME: enable browser testing again
# - script: npm run test:browser
# node_js: lts/*
# name: Local Browser Test
# - script: 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then npm run test:browserstack; el... | <|file_sep|>original/.travis.yml
jobs:
include:
- stage: other
script: npm run lint
node_js: lts/*
name: Lint
- script: npm run test:browser
node_js: lts/*
name: Local Browser Test
- script: 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then npm run test:browserstack; else true; ... | 2444c96d5cacad5e279db33f4a324b3ed7c1e869 | .travis.yml | .travis.yml | YAML |
<|file_sep|>original/examples/kafka-jvm/chef/cookbooks/storm/metadata.rb
maintainer "Colin Surprenant"
maintainer_email "colin.surprenant@gmail.com"
license "MIT License"
description "installs and configures Twitter Storm"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
vers... | maintainer "Colin Surprenant"
maintainer_email "colin.surprenant@gmail.com"
name "storm"
license "MIT License"
description "installs and configures Twitter Storm"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "0.2.2" | <|file_sep|>original/examples/kafka-jvm/chef/cookbooks/storm/metadata.rb
maintainer "Colin Surprenant"
maintainer_email "colin.surprenant@gmail.com"
license "MIT License"
description "installs and configures Twitter Storm"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
vers... | 7217a2754ceb6557003d9ab666e345db0403ef87 | examples/kafka-jvm/chef/cookbooks/storm/metadata.rb | examples/kafka-jvm/chef/cookbooks/storm/metadata.rb | Ruby |
<|file_sep|>original/constellation_forms/__init__.py
Constellation-Base package to function correctly.
Constellation Forms implements a fairly standard forms system. The
core features include:
* Click-to-Build form builder
* Form Lifecycles
* Form Versions
More advanced features such as form approval status are pla... | Constellation-Base package to function correctly.
Constellation Forms implements a fairly standard forms system. The
core features include:
* Click-to-Build form builder
* Form Lifecycles
* Form Versions
Advanced features are also available such as form approval and commenting.
These features can help support more ... | <|file_sep|>original/constellation_forms/__init__.py
Constellation-Base package to function correctly.
Constellation Forms implements a fairly standard forms system. The
core features include:
* Click-to-Build form builder
* Form Lifecycles
* Form Versions
More advanced features such as form approval status are pla... | c6d1a929f747a76155cce73e8c1a1358cf226f0e | constellation_forms/__init__.py | constellation_forms/__init__.py | Python |
<|file_sep|>original/osu.Game.Rulesets.Osu/Objects/RepeatPoint.cs
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.ControlPoints;
namespace osu.Game.Rulesets.Osu.Objects
{
public class RepeatPoint : OsuHitObject
{
public int RepeatIndex { get; set; }
public double SpanDuration { get; set; }
... | namespace osu.Game.Rulesets.Osu.Objects
{
public class RepeatPoint : OsuHitObject
{
public int RepeatIndex { get; set; }
public double SpanDuration { get; set; }
protected override void ApplyDefaultsToSelf(ControlPointInfo controlPointInfo, BeatmapDifficulty difficulty)
{
... | <|file_sep|>original/osu.Game.Rulesets.Osu/Objects/RepeatPoint.cs
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.ControlPoints;
namespace osu.Game.Rulesets.Osu.Objects
{
public class RepeatPoint : OsuHitObject
{
public int RepeatIndex { get; set; }
public double SpanDuration { get; set; }
... | 21f3ff6e7717b346ba7ebb7f0f9810dac4dc55a7 | osu.Game.Rulesets.Osu/Objects/RepeatPoint.cs | osu.Game.Rulesets.Osu/Objects/RepeatPoint.cs | C# |
<|file_sep|>original/imports/api/logic/grad-checker/faculty/computing/computer-science/AY-1617/unrestricted-electives/methods.js
import { searchByModuleCode } from '../../../../../../../database-controller/module/methods';
export const findUnrestrictedElectivesRequirementModules = function findUnrestrictedElectivesReq... | import { searchByModuleCode } from '../../../../../../../database-controller/module/methods';
export const findUnrestrictedElectivesRequirementModules = function findUnrestrictedElectivesRequirementModules(totalRequiredMCs, graduationMCs, studentSemesters) {
// get total required MC to graduate
let totalMCsInPlann... | <|file_sep|>original/imports/api/logic/grad-checker/faculty/computing/computer-science/AY-1617/unrestricted-electives/methods.js
import { searchByModuleCode } from '../../../../../../../database-controller/module/methods';
export const findUnrestrictedElectivesRequirementModules = function findUnrestrictedElectivesReq... | e80b165c68ec4232c416f3a4e0600ddf95a2f1f4 | imports/api/logic/grad-checker/faculty/computing/computer-science/AY-1617/unrestricted-electives/methods.js | imports/api/logic/grad-checker/faculty/computing/computer-science/AY-1617/unrestricted-electives/methods.js | JavaScript |
<|file_sep|>original/broker/src/main/groovy/com/swisscom/cloud/sb/broker/metrics/ServiceBindingRepositoryHelper.groovy
<|file_sep|>current/broker/src/main/groovy/com/swisscom/cloud/sb/broker/metrics/ServiceBindingRepositoryHelper.groovy
<|file_sep|>updated/broker/src/main/groovy/com/swisscom/cloud/sb/broker/metrics/S... | package com.swisscom.cloud.sb.broker.metrics
import com.swisscom.cloud.sb.broker.model.repository.ServiceBindingRepository
import groovy.transform.CompileStatic
import groovy.util.logging.Slf4j
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Component
@Component
@Co... | <|file_sep|>original/broker/src/main/groovy/com/swisscom/cloud/sb/broker/metrics/ServiceBindingRepositoryHelper.groovy
<|file_sep|>current/broker/src/main/groovy/com/swisscom/cloud/sb/broker/metrics/ServiceBindingRepositoryHelper.groovy
<|file_sep|>updated/broker/src/main/groovy/com/swisscom/cloud/sb/broker/metrics/S... | 2043615f50f2a7a871368503bd27e9c63c6c0585 | broker/src/main/groovy/com/swisscom/cloud/sb/broker/metrics/ServiceBindingRepositoryHelper.groovy | broker/src/main/groovy/com/swisscom/cloud/sb/broker/metrics/ServiceBindingRepositoryHelper.groovy | Groovy |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.