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/svpb/activeTest.py from django.contrib.auth import REDIRECT_FIELD_NAME from django.contrib.auth.decorators import login_required, user_passes_test def active_and_login_required(function=None, redirect_field_name=REDIRECT_FIELD_NAME, login...
from django.contrib.auth import REDIRECT_FIELD_NAME from django.contrib.auth.decorators import login_required, user_passes_test def active_and_login_required(function=None, redirect_field_name=REDIRECT_FIELD_NAME, login_url="/login"): actual_decorator = u...
<|file_sep|>original/svpb/activeTest.py from django.contrib.auth import REDIRECT_FIELD_NAME from django.contrib.auth.decorators import login_required, user_passes_test def active_and_login_required(function=None, redirect_field_name=REDIRECT_FIELD_NAME, login...
7a63a17145804e465b3f6ba2e329fb17f5c2864b
svpb/activeTest.py
svpb/activeTest.py
Python
<|file_sep|>.gitlab-ci.yml.diff original: updated: variables: PACKAGE_NAME: xed-common <|file_sep|>original/.gitlab-ci.yml # .gitlab-ci.yml build: #image: ubuntu:18.04 #image: xed-testing-container image: amr-registry-pre.caas.intel.com/xed/xed-testing-container stage: build script: - python3 ci-in...
variables: PACKAGE_NAME: xed-common build: #image: ubuntu:18.04 #image: xed-testing-container image: amr-registry-pre.caas.intel.com/xed/xed-testing-container stage: build script: - python3 ci-internal.py build-conan: image: amr-registry.caas.intel.com/syssim/teamcity-agent:2020.1.5-21ww05 stage...
<|file_sep|>.gitlab-ci.yml.diff original: updated: variables: PACKAGE_NAME: xed-common <|file_sep|>original/.gitlab-ci.yml # .gitlab-ci.yml build: #image: ubuntu:18.04 #image: xed-testing-container image: amr-registry-pre.caas.intel.com/xed/xed-testing-container stage: build script: - python3 ci-in...
4850e792732c3b04f7fbeee13ada78a0d4ae230f
.gitlab-ci.yml
.gitlab-ci.yml
YAML
<|file_sep|>template.erb.diff original: <script>$(function() { $( "#accordion" ).accordion(); }); </script> updated: <script>$(function() { $( "#accordion" ).accordion({ heightStyle: "content" }); }); </script> <|file_sep|>original/template.erb <html> <head> <script src="http://code.jquery.com/jquery-1.10.2.js">...
<html> <head> <script src="http://code.jquery.com/jquery-1.10.2.js"></script><script src="http://code.jquery.com/ui/1.11.2/jquery-ui.js"></script> <script>$(function() { $( "#accordion" ).accordion({ heightStyle: "content" }); }); </script> <link rel="stylesheet" href="http://code.jquery.com/ui/1.11.2/themes/smo...
<|file_sep|>template.erb.diff original: <script>$(function() { $( "#accordion" ).accordion(); }); </script> updated: <script>$(function() { $( "#accordion" ).accordion({ heightStyle: "content" }); }); </script> <|file_sep|>original/template.erb <html> <head> <script src="http://code.jquery.com/jquery-1.10.2.js">...
8bc78c86da92965216a33875a9308289c4dc1392
template.erb
template.erb
HTML+ERB
<|file_sep|>lib/helios/static_color_effect.rb.diff original: t = [] updated: <|file_sep|>lib/helios/static_color_effect.rb.diff original: t << Thread.new do Lights[light] = [@red, @green, @blue] end updated: Lights[light] = [@red, @green, @blue] <|file_sep|>original/lib/helios/s...
module Helios class StaticColorEffect < Effect def initialize(args) @red = args['r'].to_i @green = args['g'].to_i @blue = args['b'].to_i lights = args.fetch('lights', [1, '..', 25]) @lights = get_lights(lights) end def change! @lights = Array(@lights) @lights.eac...
<|file_sep|>lib/helios/static_color_effect.rb.diff original: t = [] updated: <|file_sep|>lib/helios/static_color_effect.rb.diff original: t << Thread.new do Lights[light] = [@red, @green, @blue] end updated: Lights[light] = [@red, @green, @blue] <|file_sep|>original/lib/helios/s...
3e4626eb9ac7570fec22c3cc62f3c0c263aace7a
lib/helios/static_color_effect.rb
lib/helios/static_color_effect.rb
Ruby
<|file_sep|>original/netprofile_core/netprofile_core/tasks.py <|file_sep|>current/netprofile_core/netprofile_core/tasks.py <|file_sep|>updated/netprofile_core/netprofile_core/tasks.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # NetProfile: Core module - Tasks # Copyright © 2017 Alex Unigovsky # # This file is part of NetProfile. # NetProfile is free software: you can redistribute it and/or # modify it under the terms of the GNU Affero General Public # License as published by the Free Software ...
<|file_sep|>original/netprofile_core/netprofile_core/tasks.py <|file_sep|>current/netprofile_core/netprofile_core/tasks.py <|file_sep|>updated/netprofile_core/netprofile_core/tasks.py #!/usr/bin/env python # -*- coding: utf-8 -*- # # NetProfile: Core module - Tasks # Copyright © 2017 Alex Unigovsky # # This file is p...
39df35c45ffa672b6ad9af962e53a9dc2c45be85
netprofile_core/netprofile_core/tasks.py
netprofile_core/netprofile_core/tasks.py
Python
<|file_sep|>original/LICENSE.md <|file_sep|>current/LICENSE.md <|file_sep|>updated/LICENSE.md
The MIT License (MIT) Copyright (c) 2016 Sergio Cruz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publ...
<|file_sep|>original/LICENSE.md <|file_sep|>current/LICENSE.md <|file_sep|>updated/LICENSE.md The MIT License (MIT) Copyright (c) 2016 Sergio Cruz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Softwar...
6a3a26faa98b5a3e8023ba558ce6f1368a00e5fc
LICENSE.md
LICENSE.md
Markdown
<|file_sep|>original/test-requirements.txt # Install bounded pep8/pyflakes first, then let flake8 install pep8==1.4.5 pyflakes==0.7.2 flake8==2.0 hacking>=0.5.6,<0.6 coverage nose nosexcover openstack.nose_plugin nosehtmloutput sphinx>=1.1.2,<1.2 mock>=0.8.0 <|file_sep|>current/test-requirements.txt # Install bounded p...
# Hacking already pins down pep8, pyflakes and flake8 hacking>=0.5.6,<0.6 coverage nose nosexcover openstack.nose_plugin nosehtmloutput sphinx>=1.1.2,<1.2 mock>=0.8.0
<|file_sep|>original/test-requirements.txt # Install bounded pep8/pyflakes first, then let flake8 install pep8==1.4.5 pyflakes==0.7.2 flake8==2.0 hacking>=0.5.6,<0.6 coverage nose nosexcover openstack.nose_plugin nosehtmloutput sphinx>=1.1.2,<1.2 mock>=0.8.0 <|file_sep|>current/test-requirements.txt # Install bounded p...
9f11819f1645dbcdf9272dde8532acd157085b5b
test-requirements.txt
test-requirements.txt
Text
<|file_sep|>original/spec/controllers/confirmations_controller_spec.rb <|file_sep|>current/spec/controllers/confirmations_controller_spec.rb <|file_sep|>updated/spec/controllers/confirmations_controller_spec.rb
require 'spec_helper' describe ConfirmationsController do let(:user) { create(:user, confirmed_at: nil) } before do @request.env['devise.mapping'] = Devise.mappings[:user] end context 'user is not signed in' do it 'confirms and signs in user' do get :show, confirmation_token: user.confirmation_...
<|file_sep|>original/spec/controllers/confirmations_controller_spec.rb <|file_sep|>current/spec/controllers/confirmations_controller_spec.rb <|file_sep|>updated/spec/controllers/confirmations_controller_spec.rb require 'spec_helper' describe ConfirmationsController do let(:user) { create(:user, confirmed_at: nil) ...
35935fb7266add358225dbbb08fb80ffaf11f98d
spec/controllers/confirmations_controller_spec.rb
spec/controllers/confirmations_controller_spec.rb
Ruby
<|file_sep|>README.md.diff original: # Usage updated: # Documentation <|file_sep|>original/README.md |-----------------------------|--------------|---------------------------------------------------------------------------------------------------------------------------| | AppVeyor | Windows | [...
# Cake.Hg Cake AddIn that extends Cake with Mercurial features using Mercurial.Net [![NuGet](https://img.shields.io/nuget/v/Cake.Hg.svg)](https://www.nuget.org/packages/Cake.Hg) [![MyGet](https://img.shields.io/myget/cake-contrib/vpre/Cake.Hg.svg?label=MyGet)](https://www.myget.org/feed/cake-contrib/package/nuget/Cake...
<|file_sep|>README.md.diff original: # Usage updated: # Documentation <|file_sep|>original/README.md |-----------------------------|--------------|---------------------------------------------------------------------------------------------------------------------------| | AppVeyor | Windows | [...
aeb1ec7ef02f7d0b6e82fc38109199c395ec3a9d
README.md
README.md
Markdown
<|file_sep|>app/views/components/_date-filter.html.erb.diff original: <%= render "components/expander", { title: "Date" } do %> updated: <%= render "components/expander", { title: name } do %> <|file_sep|>original/app/views/components/_date-filter.html.erb <div class="app-c-date-filter govuk-!-margin-...
label: { text: name + " after" }, name: key + "[from]", id: key + "[from]", value: from_value, controls: aria_controls_id, hint: "For example, 2005 or 21/11/2014", error_message: date_errors_from } %> <%= render "govuk_publishing_com...
<|file_sep|>app/views/components/_date-filter.html.erb.diff original: <%= render "components/expander", { title: "Date" } do %> updated: <%= render "components/expander", { title: name } do %> <|file_sep|>original/app/views/components/_date-filter.html.erb <div class="app-c-date-filter govuk-!-margin-...
c3e3bdc9a5e805284f46c37342ee2c735c68a128
app/views/components/_date-filter.html.erb
app/views/components/_date-filter.html.erb
HTML+ERB
<|file_sep|>original/HandySwift.podspec s.description = <<-DESC The goal of this library is to provide handy features that didn't make it to the Swift standard library (yet) due to many different reasons. Those could be that the Swift community wants to keep the standard library clean and manageable or s...
s.description = <<-DESC The goal of this library is to provide handy features that didn't make it to the Swift standard library (yet) due to many different reasons. Those could be that the Swift community wants to keep the standard library clean and manageable or simply hasn't finished discussion on a sp...
<|file_sep|>original/HandySwift.podspec s.description = <<-DESC The goal of this library is to provide handy features that didn't make it to the Swift standard library (yet) due to many different reasons. Those could be that the Swift community wants to keep the standard library clean and manageable or s...
c787bd40f9728d9645f8bdcaa569f4ef50982628
HandySwift.podspec
HandySwift.podspec
Ruby
<|file_sep|>original/INSTALL.md Installation ------------ Since VexCL is header-only library, installation is straightforward: you just need to copy vexcl folder somewhere and tell your compiler to scan it for include files. * [Gentoo Linux ebuild](https://github.com/ddemidov/ebuilds/blob/master/dev-util/vexcl) * [Ar...
Installation ------------ Since VexCL is header-only library, installation is straightforward: you just need to copy vexcl folder somewhere and tell your compiler to scan it for include files. * [Gentoo Linux ebuild](https://github.com/ddemidov/ebuilds/blob/master/dev-util/vexcl) * [Arch Linux PKGBUILD](https://aur.a...
<|file_sep|>original/INSTALL.md Installation ------------ Since VexCL is header-only library, installation is straightforward: you just need to copy vexcl folder somewhere and tell your compiler to scan it for include files. * [Gentoo Linux ebuild](https://github.com/ddemidov/ebuilds/blob/master/dev-util/vexcl) * [Ar...
9bbf7622e2bb9b07229c961f3e34e0fbaa4afa79
INSTALL.md
INSTALL.md
Markdown
<|file_sep|>original/artifacts/example/rc.yaml labels: apiserver: "true" spec: replicas: 1 selector: apiserver: "true" template: metadata: labels: apiserver: "true" spec: serviceAccountName: apiserver containers: - name: apiextensions-server image: apiexte...
labels: apiserver: "true" spec: replicas: 1 selector: apiserver: "true" template: metadata: labels: apiserver: "true" spec: serviceAccountName: apiserver containers: - name: apiextensions-server image: apiextensions-apiserver:latest imagePullPolicy...
<|file_sep|>original/artifacts/example/rc.yaml labels: apiserver: "true" spec: replicas: 1 selector: apiserver: "true" template: metadata: labels: apiserver: "true" spec: serviceAccountName: apiserver containers: - name: apiextensions-server image: apiexte...
c2c4ab2aed3e7fd1c906e873a2736a4c84fbce06
artifacts/example/rc.yaml
artifacts/example/rc.yaml
YAML
<|file_sep|>original/gulpfile.js // Build the Sass gulp.task("build:css", function() { return gulp.src(paths.src.css + "/**/*") // Prevents Sass from hanging on errors (syntax error, etc.) .pipe(plugins.plumber()) .pipe(plugins.sourcemaps.init()) // Need to use sass.sync() to work w...
// Build the Sass gulp.task("build:css", function() { return gulp.src(paths.src.css + "/**/*") // Prevents Sass from hanging on errors (syntax error, etc.) .pipe(plugins.plumber()) .pipe(plugins.sourcemaps.init()) // Need to use sass.sync() to work with Plumber correctly .pi...
<|file_sep|>original/gulpfile.js // Build the Sass gulp.task("build:css", function() { return gulp.src(paths.src.css + "/**/*") // Prevents Sass from hanging on errors (syntax error, etc.) .pipe(plugins.plumber()) .pipe(plugins.sourcemaps.init()) // Need to use sass.sync() to work w...
e43c291da3d14ac64a36254b8055ab4c750d790e
gulpfile.js
gulpfile.js
JavaScript
<|file_sep|>ops/dev/start-devserver.sh.diff original: echo "Starting devserver in tmux session..." updated: session=tba <|file_sep|>original/ops/dev/start-devserver.sh #! /bin/bash set -e source ops/dev/vars.sh echo "Starting devserver in tmux session..." tmux start-server tmux new-session -d -s tba tmux new-window -t...
#! /bin/bash set -e source ops/dev/vars.sh session=tba tmux start-server if tmux has-session -t $session ; then echo "Found existing session. Killing and recreating..." tmux kill-session -t $session fi echo "Starting devserver in new tmux session..." tmux new-session -d -s $session tmux new-window -t "$sessi...
<|file_sep|>ops/dev/start-devserver.sh.diff original: echo "Starting devserver in tmux session..." updated: session=tba <|file_sep|>original/ops/dev/start-devserver.sh #! /bin/bash set -e source ops/dev/vars.sh echo "Starting devserver in tmux session..." tmux start-server tmux new-session -d -s tba tmux new-window -t...
56922cd2443b58ded0c2365222a12f353eabe9f5
ops/dev/start-devserver.sh
ops/dev/start-devserver.sh
Shell
<|file_sep|>README.md.diff original: bundle exec rake updated: AWS_ACCESS_KEY_ID={valid_access_key} AWS_SECRET_ACCESS_KEY={valid_secret_access_key} bundle exec rake spec <|file_sep|>original/README.md The purpose of this repository is to exercise the [Redis Manager][] together with its dependencies and associated serv...
The purpose of this repository is to exercise the [Redis Manager][] together with its dependencies and associated services to ensure that the whole package works together correctly. ## Running Tests To run the tests, do the following: ```bash bundle install AWS_ACCESS_KEY_ID={valid_access_key} AWS_SECRET_ACCESS_KEY=...
<|file_sep|>README.md.diff original: bundle exec rake updated: AWS_ACCESS_KEY_ID={valid_access_key} AWS_SECRET_ACCESS_KEY={valid_secret_access_key} bundle exec rake spec <|file_sep|>original/README.md The purpose of this repository is to exercise the [Redis Manager][] together with its dependencies and associated serv...
3cdbfa765b293eccb4c55c2c4da63bf3b6a7dbc9
README.md
README.md
Markdown
<|file_sep|>original/SECURITY.md ## Supported Versions The following Skyve versions are currently being supported with security updates. | Version | Supported | | ------- | ------------------ | | 8.x.x | :white_check_mark: | | 7.x.x | :white_check_mark: | | 6.0.x | :white_check_mark: | | 5.0.1 | :wh...
## Supported Versions The following Skyve versions are currently being supported with security updates. | Version | Supported | | ------- | ------------------ | | 8.x.x | :white_check_mark: | | 7.x.x | :white_check_mark: | | 6.0.x | :white_check_mark: | | 5.0.x | :x: | | < 5.0 | :x:...
<|file_sep|>original/SECURITY.md ## Supported Versions The following Skyve versions are currently being supported with security updates. | Version | Supported | | ------- | ------------------ | | 8.x.x | :white_check_mark: | | 7.x.x | :white_check_mark: | | 6.0.x | :white_check_mark: | | 5.0.1 | :wh...
fd5c33fd4e7f1511d0e821853b05b6820bb77347
SECURITY.md
SECURITY.md
Markdown
<|file_sep|>original/src/AppBundle/API/Details/TraitEntries.php } /** * @param $traitFormat * @param $traitEntryIds * @returns array with details of the requested trait entries */ public function execute($traitEntryIds, $traitFormat) { if (!in_array($traitFormat, $this->kno...
} /** * @param $traitFormat * @param $traitEntryIds * @returns array with details of the requested trait entries */ public function execute($traitEntryIds, $traitFormat) { if ($traitEntryIds === null || count($traitEntryIds) === 0){ return (array()); } ...
<|file_sep|>original/src/AppBundle/API/Details/TraitEntries.php } /** * @param $traitFormat * @param $traitEntryIds * @returns array with details of the requested trait entries */ public function execute($traitEntryIds, $traitFormat) { if (!in_array($traitFormat, $this->kno...
c6fd810c04f1a2d33e085f84c61a28bdc1c4a0f0
src/AppBundle/API/Details/TraitEntries.php
src/AppBundle/API/Details/TraitEntries.php
PHP
<|file_sep|>main.js.diff original: " --platform CORDOVA-PLATFORM --plugin PLUGIN-PATH [--port PORT]"; updated: " --platform CORDOVA-PLATFORM --plugin PLUGIN-PATH [--justbuild ] [--port PORT] [--timeout TIMEOUT] \n" + " CORDOVA-PLATFORM : Which platform to build target\n" + ...
" TIMEOUT : time to wait for tests to run, in msecs, default is 10 minutes."; var argv = parseArgs(process.argv.slice(2)); if(!argv.platform || !argv.plugin) { console.log(USAGE); process.exit(1); } platformId = argv.platform; plugins = argv.plugin; plugins = Array.isArray(plugins) ? plugins : [...
<|file_sep|>main.js.diff original: " --platform CORDOVA-PLATFORM --plugin PLUGIN-PATH [--port PORT]"; updated: " --platform CORDOVA-PLATFORM --plugin PLUGIN-PATH [--justbuild ] [--port PORT] [--timeout TIMEOUT] \n" + " CORDOVA-PLATFORM : Which platform to build target\n" + ...
1c739c9055f5e32e308d28449cbf5f6200a04cff
main.js
main.js
JavaScript
<|file_sep|>_next_events/2018-05-17.md.diff original: title: "May 2018" updated: title: "Talks: May 17th, 2018 @ 18:00" <|file_sep|>original/_next_events/2018-05-17.md --- title: "May 2018" date: 2018-05-17 meetup_id: "249889547" meetup_url: "https://www.meetup.com/CocoaHeads-Montreal/events/249889547/" speakers: ...
--- title: "Talks: May 17th, 2018 @ 18:00" date: 2018-05-17 meetup_id: "249889547" meetup_url: "https://www.meetup.com/CocoaHeads-Montreal/events/249889547/" venue_name: "Hopper" venue_address: "5795 De Gaspé, Suite 100, Montreal, QC H2S 2X3 · Montréal, QC" venue_address_map_url: "https://www.google.com/maps/search/...
<|file_sep|>_next_events/2018-05-17.md.diff original: title: "May 2018" updated: title: "Talks: May 17th, 2018 @ 18:00" <|file_sep|>original/_next_events/2018-05-17.md --- title: "May 2018" date: 2018-05-17 meetup_id: "249889547" meetup_url: "https://www.meetup.com/CocoaHeads-Montreal/events/249889547/" speakers: ...
22c4258da57871fcd15a6cb728b4a3b851fa29a9
_next_events/2018-05-17.md
_next_events/2018-05-17.md
Markdown
<|file_sep|>bin/gear.js.diff original: updated: 'use strict'; <|file_sep|>bin/gear.js.diff original: * > gear */ var gear = require('../index'), updated: * > gear [options] * * Available options: * --cwd <dir> change working directory * --Gearfile <path> execute a specific gearfile */ var Liftoff = re...
// Loads a local install of gear. Falls back to the global install. var gear = require(env.modulePath || '../index'); if(process.cwd !== env.cwd) { process.chdir(env.cwd); } if (!env.configPath) { notify(filename + ' not found'); process.exit(1); } var tasks; tr...
<|file_sep|>bin/gear.js.diff original: updated: 'use strict'; <|file_sep|>bin/gear.js.diff original: * > gear */ var gear = require('../index'), updated: * > gear [options] * * Available options: * --cwd <dir> change working directory * --Gearfile <path> execute a specific gearfile */ var Liftoff = re...
552909944462a4c541a00af5b7508dbf391f41fc
bin/gear.js
bin/gear.js
JavaScript
<|file_sep|>original/tests/helpers/start-app.js import Ember from 'ember'; import Application from '../../app'; import config from '../../config/environment'; import registerPowerCalendarHelpers from '../../tests/helpers/ember-power-calendar'; registerPowerCalendarHelpers(); export default function startApp(attrs) { ...
import Ember from 'ember'; import Application from '../../app'; import config from '../../config/environment'; import registerPowerCalendarHelpers from '../../tests/helpers/ember-power-calendar'; registerPowerCalendarHelpers(); export default function startApp(attrs) { let application; // use defaults, but you c...
<|file_sep|>original/tests/helpers/start-app.js import Ember from 'ember'; import Application from '../../app'; import config from '../../config/environment'; import registerPowerCalendarHelpers from '../../tests/helpers/ember-power-calendar'; registerPowerCalendarHelpers(); export default function startApp(attrs) { ...
80df3ca74433f042d56a9c2b6805eb53d6104a93
tests/helpers/start-app.js
tests/helpers/start-app.js
JavaScript
<|file_sep|>original/guides/source/release_notes_1_2_0.textile <|file_sep|>current/guides/source/release_notes_1_2_0.textile <|file_sep|>updated/guides/source/release_notes_1_2_0.textile
h2. Spree 1.2.0 Release Notes endprologue. h3. Summary h3. Major changes (backwards incompatibility) h3. Minor changes h4. Spree::Zone#country_list renamed to #zone_member_list Please be noted that the underlying logics remain intact.
<|file_sep|>original/guides/source/release_notes_1_2_0.textile <|file_sep|>current/guides/source/release_notes_1_2_0.textile <|file_sep|>updated/guides/source/release_notes_1_2_0.textile h2. Spree 1.2.0 Release Notes endprologue. h3. Summary h3. Major changes (backwards incompatibility) h3. Minor changes h4. S...
d5c320a93161ac29942d698f4a52965d7f0f9433
guides/source/release_notes_1_2_0.textile
guides/source/release_notes_1_2_0.textile
Textile
<|file_sep|>original/src/views/partials/nav.blade.php @inject('pages', 'BruceCms\Pages\Page') <nav class="nav --main" role="navigation"> <ul class="nav__list"> <li class="nav__item"> <a class="link nav__link" href="{{ url('/') }}">Home</a> </li> @foreach($pages as $page) <li class="nav__item"> <a clas...
@inject('pages', 'BruceCms\Pages\Page') <nav class="nav --main" role="navigation"> <ul class="nav__list"> <li class="nav__item"> <a class="link nav__link" href="{{ url('/') }}">Home</a> </li> @foreach($pages->unhidden()->get() as $page) <li class="nav__item"> <a class="link nav__link" href="{{ url($pa...
<|file_sep|>original/src/views/partials/nav.blade.php @inject('pages', 'BruceCms\Pages\Page') <nav class="nav --main" role="navigation"> <ul class="nav__list"> <li class="nav__item"> <a class="link nav__link" href="{{ url('/') }}">Home</a> </li> @foreach($pages as $page) <li class="nav__item"> <a clas...
e53573d366221bb5c3645a80542b6ac1f2e103ce
src/views/partials/nav.blade.php
src/views/partials/nav.blade.php
PHP
<|file_sep|>original/script/ci_build.sh #!/usr/bin/env bash -e source .rvmrc # install bundler if necessary set -e gem install bundler --no-ri --no-rdoc && bundle install # debugging info echo USER=$USER && ruby --version && which ruby && which bundle bundle exec rspec spec --tag ~slow --tag ~vagrant --tag ~system...
#!/bin/bash -le source .rvmrc # install bundler if necessary set -e gem install bundler --no-ri --no-rdoc && bundle install # debugging info echo USER=$USER && ruby --version && which ruby && which bundle bundle exec rspec spec --tag ~slow --tag ~vagrant --tag ~system
<|file_sep|>original/script/ci_build.sh #!/usr/bin/env bash -e source .rvmrc # install bundler if necessary set -e gem install bundler --no-ri --no-rdoc && bundle install # debugging info echo USER=$USER && ruby --version && which ruby && which bundle bundle exec rspec spec --tag ~slow --tag ~vagrant --tag ~system...
51fd6c68ae6c58b109f68f5a59e5b849c7461380
script/ci_build.sh
script/ci_build.sh
Shell
<|file_sep|>src/Cashier.php.diff original: } else { return '$'.$amount; updated: <|file_sep|>original/src/Cashier.php } /** * Format the given amount into a displayable currency. * * @param int $amount * @return string */ public static function formatAmount($...
/** * Format the given amount into a displayable currency. * * @param int $amount * @return string */ public static function formatAmount($amount) { if (static::$formatCurrencyUsing) { return call_user_func(static::$formatCurrencyUsing, $amount); } ...
<|file_sep|>src/Cashier.php.diff original: } else { return '$'.$amount; updated: <|file_sep|>original/src/Cashier.php } /** * Format the given amount into a displayable currency. * * @param int $amount * @return string */ public static function formatAmount($...
fd8af0a2656c0029144bec576f7f8dc8d2ff768e
src/Cashier.php
src/Cashier.php
PHP
<|file_sep|>original/tox.ini skip_missing_interpreters = true [testenv] deps = django17: Django==1.7.11 django18: Django>=1.8.6,<1.9 django19: Django>=1.9,<1.10 django-guardian>=0.4.1 django-webtest>=1.7.8 coverage>=4.0,<4.1 commands = {envbindir}/django-admin.py collectstatic --verbosity 0...
skip_missing_interpreters = true [testenv] deps = django17: Django==1.7.11 django18: Django>=1.8.6,<1.9 django19: Django>=1.9,<1.10 django-guardian>=0.4.1 django-webtest>=1.7.8 coverage>=4.0,<4.1 isort==4.2.5 flake8==3.0.4 flake8-isort==2.0 commands = {envbindir}/django-admin.py...
<|file_sep|>original/tox.ini skip_missing_interpreters = true [testenv] deps = django17: Django==1.7.11 django18: Django>=1.8.6,<1.9 django19: Django>=1.9,<1.10 django-guardian>=0.4.1 django-webtest>=1.7.8 coverage>=4.0,<4.1 commands = {envbindir}/django-admin.py collectstatic --verbosity 0...
19e78074452c380c9297552b764937ccd4b794b9
tox.ini
tox.ini
INI
<|file_sep|>.travis.yml.diff original: - "3.7" updated: <|file_sep|>original/.travis.yml python: - "2.7" - "3.4" - "3.5" - "3.6" - "3.7" - "pypy" - "pypy3.5" - "nightly" install: pip install coverage matrix: allow_failures: python: - "nightly" - "3.8-dev" include: - python: 3....
- "3.5" - "3.6" - "pypy" - "pypy3.5" - "nightly" install: pip install coverage matrix: allow_failures: python: - "nightly" - "3.8-dev" include: - python: 3.7 dist: xenial sudo: true - python: 3.8-dev dist: xenial sudo: true script: - coverage run -m py.t...
<|file_sep|>.travis.yml.diff original: - "3.7" updated: <|file_sep|>original/.travis.yml python: - "2.7" - "3.4" - "3.5" - "3.6" - "3.7" - "pypy" - "pypy3.5" - "nightly" install: pip install coverage matrix: allow_failures: python: - "nightly" - "3.8-dev" include: - python: 3....
68db0db648a36f502a6dd6931c5564b65e739cae
.travis.yml
.travis.yml
YAML
<|file_sep|>original/.changeset/healthy-rice-shout.md --- '@xstate/react': patch --- Exposing a separate entrypoint for @xstate/react/fsm <|file_sep|>current/.changeset/healthy-rice-shout.md --- '@xstate/react': patch --- Exposing a separate entrypoint for @xstate/react/fsm <|file_sep|>updated/.changeset/healthy-rice...
--- '@xstate/react': patch --- Added an explicit entrypoint for `@xstate/react/fsm` which you can use instead of `@xstate/react/lib/fsm`. This is the only specifier that will be supported in the future - the other one will be dropped in the next major version. ```diff -import { useMachine } from '@xstate/react/lib/fs...
<|file_sep|>original/.changeset/healthy-rice-shout.md --- '@xstate/react': patch --- Exposing a separate entrypoint for @xstate/react/fsm <|file_sep|>current/.changeset/healthy-rice-shout.md --- '@xstate/react': patch --- Exposing a separate entrypoint for @xstate/react/fsm <|file_sep|>updated/.changeset/healthy-rice...
891002ecf0e6a24232b53eb7fd335d3ea945b03c
.changeset/healthy-rice-shout.md
.changeset/healthy-rice-shout.md
Markdown
<|file_sep|>original/package.json "prettier", "standard", "eslint" ], "bugs": "https://github.com/sunesimonsen/eslint-config-pretty-standard/issues", "repository": { "type": "git", "url": "https://github.com/sunesimonsen/eslint-config-pretty-standard.git" }, "peerDependencies": { "esli...
"prettier", "standard", "eslint" ], "bugs": "https://github.com/sunesimonsen/eslint-config-pretty-standard/issues", "repository": { "type": "git", "url": "https://github.com/sunesimonsen/eslint-config-pretty-standard.git" }, "peerDependencies": { "eslint": "^3.17.1 || 4", "eslint-p...
<|file_sep|>original/package.json "prettier", "standard", "eslint" ], "bugs": "https://github.com/sunesimonsen/eslint-config-pretty-standard/issues", "repository": { "type": "git", "url": "https://github.com/sunesimonsen/eslint-config-pretty-standard.git" }, "peerDependencies": { "esli...
6c8a5fa3a03d0e57b730e4a45242db92c8f17590
package.json
package.json
JSON
<|file_sep|>original/toyplot/qt.py <|file_sep|>current/toyplot/qt.py <|file_sep|>updated/toyplot/qt.py
# Copyright 2014, Sandia Corporation. Under the terms of Contract # DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain # rights in this software. # Note: we prefer PyQt5 only because we've had issues embedding our HTML output # with specific versions (Qt 4.8.7 on a Mac) of QWebView. Otherw...
<|file_sep|>original/toyplot/qt.py <|file_sep|>current/toyplot/qt.py <|file_sep|>updated/toyplot/qt.py # Copyright 2014, Sandia Corporation. Under the terms of Contract # DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain # rights in this software. # Note: we prefer PyQt5 only because we'...
e3079745f37ff84b1be5511986b30d3ca285c15f
toyplot/qt.py
toyplot/qt.py
Python
<|file_sep|>.travis.yml.diff original: # Default npm version on Travis is (currently) 1.4.x; we need 2.x (for passing args to npm test) before_install: npm install -g npm@latest updated: before_install: - npm install -g npm@latest # Default npm version on Travis is (currently) 1.4.x; we need 2.x (for passi...
before_install: - npm install -g npm@latest # Default npm version on Travis is (currently) 1.4.x; we need 2.x (for passing args to npm test) - export DISPLAY=:99.0 # Display number for xvfb (for headless browser testing) - sh -e /etc/init.d/xvfb start # Start xvfb (for headless br...
<|file_sep|>.travis.yml.diff original: # Default npm version on Travis is (currently) 1.4.x; we need 2.x (for passing args to npm test) before_install: npm install -g npm@latest updated: before_install: - npm install -g npm@latest # Default npm version on Travis is (currently) 1.4.x; we need 2.x (for passi...
ffb593341bd6b70d5f57f37afdfcc7bd0493e2a0
.travis.yml
.travis.yml
YAML
<|file_sep|>original/django_react_templatetags/templates/react_print.html {% load react_jsonfilter %} <script> {% for component in components %} ReactDOM.render( React.createElement(Components.{{ component.component }}, {% if component.data %}{{ component.data|react_json }}{% else %}null{% ...
{% load react_jsonfilter %} <script> {% for component in components %} ReactDOM.render( React.createElement( Components.{{ component.component }}, {% if component.data %} {{ component.data|react_json }} {% else %} ...
<|file_sep|>original/django_react_templatetags/templates/react_print.html {% load react_jsonfilter %} <script> {% for component in components %} ReactDOM.render( React.createElement(Components.{{ component.component }}, {% if component.data %}{{ component.data|react_json }}{% else %}null{% ...
e692e80c0c862cec54ffe6618e9307721e18b250
django_react_templatetags/templates/react_print.html
django_react_templatetags/templates/react_print.html
HTML
<|file_sep|>original/src/view.ts */ refresh(text: string): void; } export class StatusBarView implements IView { private _statusBarItem: StatusBarItem; constructor(statusBarItem: StatusBarItem) { this._statusBarItem = statusBarItem; }; refresh(text: string) { thi...
*/ refresh(text: string): void; } export class StatusBarView implements IView { private _statusBarItem: StatusBarItem; constructor(statusBarItem: StatusBarItem) { this._statusBarItem = statusBarItem; this._statusBarItem.command = "extension.blame" }; refresh(text...
<|file_sep|>original/src/view.ts */ refresh(text: string): void; } export class StatusBarView implements IView { private _statusBarItem: StatusBarItem; constructor(statusBarItem: StatusBarItem) { this._statusBarItem = statusBarItem; }; refresh(text: string) { thi...
a8c6fb992c909a634afb1dd688efcf1bd19b4acc
src/view.ts
src/view.ts
TypeScript
<|file_sep|>original/ClassifyPackages.jl <|file_sep|>current/ClassifyPackages.jl <|file_sep|>updated/ClassifyPackages.jl
#!/usr/bin/env julia isdir(Pkg.dir("YAML")) || Pkg.add("YAML") module ClassifyPackages using YAML cd(dirname(@__FILE__)) allnames = filter!(p -> isdir(p) && p != ".git" && p != "METADATA", readdir()) type PackageInfo name::String hastravis::Bool travisyml::Dict language::String usesppa::Bool ...
<|file_sep|>original/ClassifyPackages.jl <|file_sep|>current/ClassifyPackages.jl <|file_sep|>updated/ClassifyPackages.jl #!/usr/bin/env julia isdir(Pkg.dir("YAML")) || Pkg.add("YAML") module ClassifyPackages using YAML cd(dirname(@__FILE__)) allnames = filter!(p -> isdir(p) && p != ".git" && p != "METADATA", re...
e333b5d8f25e7e4a959cd24955aaeadc2b1835c1
ClassifyPackages.jl
ClassifyPackages.jl
Julia
<|file_sep|>original/addon/services/form-loss-preventer.js $(window).on('beforeunload', (ev) => this.onWindowBeforeUnload(ev)); }, registerFormObject(formObject) { this.set('registeredFormObjects', this.get('registeredFormObjects').concat(formObject)); }, unregisterFormObject(formObject) { this.se...
$(window).on('beforeunload', (ev) => this.onWindowBeforeUnload(ev)); }, registerFormObject(formObject) { this.set('registeredFormObjects', this.get('registeredFormObjects').concat(formObject)); }, unregisterFormObject(formObject) { this.set('registeredFormObjects', this.get('registeredFormObjects'...
<|file_sep|>original/addon/services/form-loss-preventer.js $(window).on('beforeunload', (ev) => this.onWindowBeforeUnload(ev)); }, registerFormObject(formObject) { this.set('registeredFormObjects', this.get('registeredFormObjects').concat(formObject)); }, unregisterFormObject(formObject) { this.se...
306398941fbb3fa05f65a4e6adbf67ad2f9845af
addon/services/form-loss-preventer.js
addon/services/form-loss-preventer.js
JavaScript
<|file_sep|>original/lib/cookbook_sdk/rake_tasks/jenkins_tasks.rb } File.open(attributes_file, 'w') do |f| f.write(attributes.to_json) end end desc 'Read image id and create attribute json file for cluster deployment' task :image_id do begin image_output_file = File.read(File.join('....
} File.open(attributes_file, 'w') do |f| f.write(attributes.to_json) end end desc 'Read image id and create attribute json file for cluster deployment' task :image_id do begin image_output_file = File.read(File.join('.', '_aws_image.output.json')) image_output = JSON.parse(imag...
<|file_sep|>original/lib/cookbook_sdk/rake_tasks/jenkins_tasks.rb } File.open(attributes_file, 'w') do |f| f.write(attributes.to_json) end end desc 'Read image id and create attribute json file for cluster deployment' task :image_id do begin image_output_file = File.read(File.join('....
b36f56a30068ab8db2755fcb8e17a4ab04743545
lib/cookbook_sdk/rake_tasks/jenkins_tasks.rb
lib/cookbook_sdk/rake_tasks/jenkins_tasks.rb
Ruby
<|file_sep|>original/RELEASE_NOTES.md # ChefDK 1.0 Release notes ## Version 1.0! * Recognize ChefDK's continued stability with the honor of a 1.0 tag. There is nothing in this release that breaks backwards compatibility with previous installations of ChefDK: it is simply a formal recognition of the stability of the pr...
# ChefDK 1.1 Release notes
<|file_sep|>original/RELEASE_NOTES.md # ChefDK 1.0 Release notes ## Version 1.0! * Recognize ChefDK's continued stability with the honor of a 1.0 tag. There is nothing in this release that breaks backwards compatibility with previous installations of ChefDK: it is simply a formal recognition of the stability of the pr...
208a35a3186f9655d2a210589916062e273737b8
RELEASE_NOTES.md
RELEASE_NOTES.md
Markdown
<|file_sep|>original/README.md foodpantry ========== Foster community awareness of local food pantry needs towards more timely and appropriate donations. <|file_sep|>current/README.md foodpantry ========== Foster community awareness of local food pantry needs towards more timely and appropriate donations. <|file_sep|...
foodpantry ========== Foster community awareness of local food pantry needs towards more timely and appropriate donations. MAKING NEW TAGS git tag -a iteration2-1 -m "Iteration 2-1" git push origin --tags
<|file_sep|>original/README.md foodpantry ========== Foster community awareness of local food pantry needs towards more timely and appropriate donations. <|file_sep|>current/README.md foodpantry ========== Foster community awareness of local food pantry needs towards more timely and appropriate donations. <|file_sep|...
023b144a638445bf3fb0afd7ff4df016fc7ecaf6
README.md
README.md
Markdown
<|file_sep|>magento/magento2ce/2016-07-19.yaml.diff original: cve: ~ updated: cve: CVE-2016-6485 <|file_sep|>original/magento/magento2ce/2016-07-19.yaml title: Unauthenticated crypto and weak IV in Magento\Framework\Encryption link: http://www.openwall.com/lists/oss-security/2016/07/19/3 cve: ...
title: Unauthenticated crypto and weak IV in Magento\Framework\Encryption link: http://www.openwall.com/lists/oss-security/2016/07/19/3 cve: CVE-2016-6485 branches: "2.0": time: 2014-02-13 11:12:34 versions: ['>=2.0', '<2.1'] "2.1": time: 2014-02-13 11:12:34 ...
<|file_sep|>magento/magento2ce/2016-07-19.yaml.diff original: cve: ~ updated: cve: CVE-2016-6485 <|file_sep|>original/magento/magento2ce/2016-07-19.yaml title: Unauthenticated crypto and weak IV in Magento\Framework\Encryption link: http://www.openwall.com/lists/oss-security/2016/07/19/3 cve: ...
70a198a8141e71af6cd4a704e977d91257d36163
magento/magento2ce/2016-07-19.yaml
magento/magento2ce/2016-07-19.yaml
YAML
<|file_sep|>original/package.json "type": "git", "url": "https://github.com/matthesjh/autocomplete-curry.git" }, "bugs": { "url": "https://github.com/matthesjh/autocomplete-curry/issues" }, "license": "MIT", "engines": { "atom": ">=1.24.0 <2.0.0" }, "providedServices": { "autocomplete....
"type": "git", "url": "https://github.com/matthesjh/autocomplete-curry.git" }, "bugs": { "url": "https://github.com/matthesjh/autocomplete-curry/issues" }, "license": "MIT", "engines": { "atom": ">=1.24.0 <2.0.0" }, "providedServices": { "autocomplete.provider": { "versions": { ...
<|file_sep|>original/package.json "type": "git", "url": "https://github.com/matthesjh/autocomplete-curry.git" }, "bugs": { "url": "https://github.com/matthesjh/autocomplete-curry/issues" }, "license": "MIT", "engines": { "atom": ">=1.24.0 <2.0.0" }, "providedServices": { "autocomplete....
103d47b2a450b2d2340ffa21948fb8610453dac5
package.json
package.json
JSON
<|file_sep|>original/dropbox_api.gemspec spec.version = DropboxApi::VERSION spec.authors = ["Jesús Burgos"] spec.email = ["jburmac@gmail.com"] spec.summary = "Library for communicating with Dropbox API v2" spec.homepage = "https://github.com/Jesus/dropbox_api" spec.license ...
spec.version = DropboxApi::VERSION spec.authors = ["Jesús Burgos"] spec.email = ["jburmac@gmail.com"] spec.summary = "Library for communicating with Dropbox API v2" spec.homepage = "https://github.com/Jesus/dropbox_api" spec.license = "MIT" spec.files = `git ...
<|file_sep|>original/dropbox_api.gemspec spec.version = DropboxApi::VERSION spec.authors = ["Jesús Burgos"] spec.email = ["jburmac@gmail.com"] spec.summary = "Library for communicating with Dropbox API v2" spec.homepage = "https://github.com/Jesus/dropbox_api" spec.license ...
bfaeadc19064eee014cc7c2230e96ad3b396b590
dropbox_api.gemspec
dropbox_api.gemspec
Ruby
<|file_sep|>docker/docker-astute.yaml.diff original: updated: FUEL_ACCESS: user: admin password: admin <|file_sep|>original/docker/docker-astute.yaml uid: master TEST_DNS: www.google.com astute: password: naily user: naily cobbler: password: cobbler user: cobbler mcollective: password: mcollective user...
user: admin password: admin uid: master TEST_DNS: www.google.com astute: password: naily user: naily cobbler: password: cobbler user: cobbler keystone: admin_token: admin mcollective: password: mcollective user: mcollective postgres: keystone_dbname: keystone keystone_user: keystone keystone_pas...
<|file_sep|>docker/docker-astute.yaml.diff original: updated: FUEL_ACCESS: user: admin password: admin <|file_sep|>original/docker/docker-astute.yaml uid: master TEST_DNS: www.google.com astute: password: naily user: naily cobbler: password: cobbler user: cobbler mcollective: password: mcollective user...
25821a40e7e7124ed9156ea649cd6409f835536e
docker/docker-astute.yaml
docker/docker-astute.yaml
YAML
<|file_sep|>original/DisplayBundle/DisplayBlock/DisplayBlockInterface.php /** * Interface DisplayBlockInterface */ interface DisplayBlockInterface { const CONTACT = 'Contact'; const CARROUSEL = 'Carrousel'; const FOOTER = 'Footer'; const HEADER = 'Header'; const MENU = 'Menu'; const NEWS = 'Ne...
/** * Interface DisplayBlockInterface */ interface DisplayBlockInterface { const CONTACT = 'contact'; const CARROUSEL = 'carrousel'; const FOOTER = 'footer'; const HEADER = 'header'; const MENU = 'menu'; const NEWS = 'news'; const SAMPLE = 'sample'; const SEARCH = 'search'; const S...
<|file_sep|>original/DisplayBundle/DisplayBlock/DisplayBlockInterface.php /** * Interface DisplayBlockInterface */ interface DisplayBlockInterface { const CONTACT = 'Contact'; const CARROUSEL = 'Carrousel'; const FOOTER = 'Footer'; const HEADER = 'Header'; const MENU = 'Menu'; const NEWS = 'Ne...
59cc9b5400f4a99449da033f3529fab70ab9df14
DisplayBundle/DisplayBlock/DisplayBlockInterface.php
DisplayBundle/DisplayBlock/DisplayBlockInterface.php
PHP
<|file_sep|>original/src/Sylius/Bundle/WebBundle/Resources/views/Backend/Prototype/build.html.twig {% extends 'SyliusWebBundle:Backend:layout.html.twig' %} {% block content %} <div class="page-header"> <h1>{{ 'sylius.prototype.build_header'|trans|raw }}</h1> </div> <form action="{{ path('sylius_backend_prototype_...
{% extends 'SyliusWebBundle:Backend:layout.html.twig' %} {% block content %} <div class="page-header"> <h1>{{ 'sylius.prototype.build_header'|trans|raw }}</h1> </div> <form action="{{ path('sylius_backend_prototype_build', {'id': prototype.id}) }}" method="post" class="form-horizontal" {{ form_enctype(form) }} no...
<|file_sep|>original/src/Sylius/Bundle/WebBundle/Resources/views/Backend/Prototype/build.html.twig {% extends 'SyliusWebBundle:Backend:layout.html.twig' %} {% block content %} <div class="page-header"> <h1>{{ 'sylius.prototype.build_header'|trans|raw }}</h1> </div> <form action="{{ path('sylius_backend_prototype_...
e0895f02dd15be5c3f65968c0cf7e9726e455aed
src/Sylius/Bundle/WebBundle/Resources/views/Backend/Prototype/build.html.twig
src/Sylius/Bundle/WebBundle/Resources/views/Backend/Prototype/build.html.twig
Twig
<|file_sep|>original/README.md # broccoli-empty-files [![Build Status](https://travis-ci.org/zackthehuman/broccoli-empty-files.svg?branch=master)](https://travis-ci.org/zackthehuman/broccoli-empty-files) Remove empty or whitespace-only files from a tree. ## Installation ```bash npm install --save-dev broccoli-empty...
# broccoli-empty-files [![Build Status](https://travis-ci.org/zackthehuman/broccoli-empty-files.svg?branch=master)](https://travis-ci.org/zackthehuman/broccoli-empty-files) Remove empty or whitespace-only files from a tree. This plugin is also cache aware, so identical input trees are just symlinked between builds. ...
<|file_sep|>original/README.md # broccoli-empty-files [![Build Status](https://travis-ci.org/zackthehuman/broccoli-empty-files.svg?branch=master)](https://travis-ci.org/zackthehuman/broccoli-empty-files) Remove empty or whitespace-only files from a tree. ## Installation ```bash npm install --save-dev broccoli-empty...
7c97fbf90fb7009fff6f9ddb94449dfccce48246
README.md
README.md
Markdown
<|file_sep|>src/Edge/Mvc/Controller/Plugin/OutputCsv.php.diff original: updated: use Edge\Exception; <|file_sep|>original/src/Edge/Mvc/Controller/Plugin/OutputCsv.php * Convert an array to a CSV an output directly to the browser * * NB: This function is terminal * * @param array $data * ...
/** * Convert an array to a CSV an output directly to the browser * * NB: This function is terminal * * @param array $data * @param string $filename */ public function __invoke(array $data, $filename) { if (empty($data)) { throw new Exception\RuntimeEx...
<|file_sep|>src/Edge/Mvc/Controller/Plugin/OutputCsv.php.diff original: updated: use Edge\Exception; <|file_sep|>original/src/Edge/Mvc/Controller/Plugin/OutputCsv.php * Convert an array to a CSV an output directly to the browser * * NB: This function is terminal * * @param array $data * ...
136542589604fb0b88f5c6e2a6f95fe3770757c9
src/Edge/Mvc/Controller/Plugin/OutputCsv.php
src/Edge/Mvc/Controller/Plugin/OutputCsv.php
PHP
<|file_sep|>apps/files_sharing/lib/external/scanner.php.diff original: $this->cache->put($path, $data); updated: $id = $this->cache->put($path, $data); <|file_sep|>apps/files_sharing/lib/external/scanner.php.diff original: updated: $children = array(); <|file_sep|>apps/files_sharing/lib/external/scanner.php.dif...
} private function addResult($data, $path) { $id = $this->cache->put($path, $data); if (isset($data['children'])) { $children = array(); foreach ($data['children'] as $child) { $children[$child['name']] = true; $this->addResult($child, ltrim($path . '/' . $child['name'], '/')); } $existingCa...
<|file_sep|>apps/files_sharing/lib/external/scanner.php.diff original: $this->cache->put($path, $data); updated: $id = $this->cache->put($path, $data); <|file_sep|>apps/files_sharing/lib/external/scanner.php.diff original: updated: $children = array(); <|file_sep|>apps/files_sharing/lib/external/scanner.php.dif...
bbe17f35a17af28410915e9dcb1263cc51edcb49
apps/files_sharing/lib/external/scanner.php
apps/files_sharing/lib/external/scanner.php
PHP
<|file_sep|>DependencyInjection/Configuration.php.diff original: /** * {@inheritDoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('worker'); updated: /** * {@inheritDoc} */ public function getConfigTreeBuilder() ...
->end() ->end() ->arrayNode('queues') ->useAttributeAsKey('key') ->prototype('array') ->children() ->scalarNode('name')->isRequired()->end() ->scalarNode('provider')->isRequired()->end() ->arrayNode('tags') ->defaultValue(array()) ->performNoDeepMerging() ->prototype('v...
<|file_sep|>DependencyInjection/Configuration.php.diff original: /** * {@inheritDoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('worker'); updated: /** * {@inheritDoc} */ public function getConfigTreeBuilder() ...
9c09b01dcbd0a12db893ffa849b56ebadfa2eb4b
DependencyInjection/Configuration.php
DependencyInjection/Configuration.php
PHP
<|file_sep|>original/snippets/verbose_logging.sh <|file_sep|>current/snippets/verbose_logging.sh <|file_sep|>updated/snippets/verbose_logging.sh
#!/bin/bash -e # # A way of implementing verbose levels to show more and more information. This # version expects the VERBOSE env variable to be set to the desired verbosity. # debug_echo() { # Display message if $VERBOSE >= 1 if [ "$VERBOSE" -ge 1 ]; then echo $1 1>&2 fi } # level 0 - quiet # le...
<|file_sep|>original/snippets/verbose_logging.sh <|file_sep|>current/snippets/verbose_logging.sh <|file_sep|>updated/snippets/verbose_logging.sh #!/bin/bash -e # # A way of implementing verbose levels to show more and more information. This # version expects the VERBOSE env variable to be set to the desired verbosit...
1c9f28c99404b6bbc544dc0722c47b6713227586
snippets/verbose_logging.sh
snippets/verbose_logging.sh
Shell
<|file_sep|>original/projects/alveo-transcriber/src/lib/transcription-list-editor/transcription-list-editor.component.css padding-top: 0.6em; } .speaker { align-self: flex-end; margin-left: 1em; margin-right: 1em; } .caption { flex: 1 1 100%; margin-right: 1em; } .selected { background: lightblue; } ....
padding-top: 0.6em; } .speaker { align-self: flex-end; margin-left: 1em; margin-right: 1em; } .caption { flex: 1 1 100%; margin-right: 1em; } .selected { background: lightblue; } .caption textarea { height: 24px; }
<|file_sep|>original/projects/alveo-transcriber/src/lib/transcription-list-editor/transcription-list-editor.component.css padding-top: 0.6em; } .speaker { align-self: flex-end; margin-left: 1em; margin-right: 1em; } .caption { flex: 1 1 100%; margin-right: 1em; } .selected { background: lightblue; } ....
9493106224dc10005ae24fe67fec2a2c7d8de743
projects/alveo-transcriber/src/lib/transcription-list-editor/transcription-list-editor.component.css
projects/alveo-transcriber/src/lib/transcription-list-editor/transcription-list-editor.component.css
CSS
<|file_sep|>original/requirements.txt mock==3.0.5 sphinx_rtd_theme==0.4.3 numpy==1.16.4 future==0.17.1 networkx==2.3 pytest>=3.6 <|file_sep|>current/requirements.txt mock==3.0.5 sphinx_rtd_theme==0.4.3 numpy==1.16.4 future==0.17.1 networkx==2.3 pytest>=3.6 <|file_sep|>updated/requirements.txt
mock==3.0.5 sphinx_rtd_theme==0.4.3 numpy==1.17.0 future==0.17.1 networkx==2.3 pytest>=3.6
<|file_sep|>original/requirements.txt mock==3.0.5 sphinx_rtd_theme==0.4.3 numpy==1.16.4 future==0.17.1 networkx==2.3 pytest>=3.6 <|file_sep|>current/requirements.txt mock==3.0.5 sphinx_rtd_theme==0.4.3 numpy==1.16.4 future==0.17.1 networkx==2.3 pytest>=3.6 <|file_sep|>updated/requirements.txt mock==3.0.5 sphinx_rtd_the...
09d83df3c0f4e7d6ce0b699d6cf5bd68cde45254
requirements.txt
requirements.txt
Text
<|file_sep|>original/tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.h <|file_sep|>current/tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.h <|file_sep|>updated/tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.h
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
<|file_sep|>original/tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.h <|file_sep|>current/tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.h <|file_sep|>updated/tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.h /* Copyright 2020 The TensorFlow Authors. All R...
ce298391eaa951a637d4155212e4927ea576e003
tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.h
tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.h
C
<|file_sep|>original/tox.ini [tox] envlist = py{27,33,34,35}-django18,py{27,34,35}-django110,py{27,34,35,36}-django111 [testenv] commands = pytest install_command = pip install django-oscar -U {opts} {packages} deps = -r{toxinidir}/requirements.txt django18: django>=1.8,<1.9 django110: django>=1.10,<1.11 ...
[tox] envlist = py{27,33,34,35}-django18,py{27,34,35}-django110,py{27,34,35,36}-django111 [testenv] commands = pytest deps = -r{toxinidir}/requirements.txt django18: django>=1.8,<1.9 django110: django>=1.10,<1.11 django111: django>=1.11,<1.12 [testenv:lint] basepython = python3.5 deps = flake8 ...
<|file_sep|>original/tox.ini [tox] envlist = py{27,33,34,35}-django18,py{27,34,35}-django110,py{27,34,35,36}-django111 [testenv] commands = pytest install_command = pip install django-oscar -U {opts} {packages} deps = -r{toxinidir}/requirements.txt django18: django>=1.8,<1.9 django110: django>=1.10,<1.11 ...
60c53cd240ea8f8b3bd3274dbb1c1ef27be9f310
tox.ini
tox.ini
INI
<|file_sep|>original/bin/pre_install_libvirt.sh <|file_sep|>current/bin/pre_install_libvirt.sh <|file_sep|>updated/bin/pre_install_libvirt.sh
#!/bin/bash ## Install libvirt (1.2.0), and enable VM (KVM/Qemu) live ## migration. Default libvirt on Ubuntu 12.04 is 0.9.8, which does not ## work well with Open vSwitch ("<virtualport type='openvswitch'/>" ## cannot be added into VM xml configuration). # Install KVM, QEMU and libvirt (0.9.8, so that we have /etc/i...
<|file_sep|>original/bin/pre_install_libvirt.sh <|file_sep|>current/bin/pre_install_libvirt.sh <|file_sep|>updated/bin/pre_install_libvirt.sh #!/bin/bash ## Install libvirt (1.2.0), and enable VM (KVM/Qemu) live ## migration. Default libvirt on Ubuntu 12.04 is 0.9.8, which does not ## work well with Open vSwitch ("<...
cf46b6f9fcbdf986a5f988f4349a49cadab4812b
bin/pre_install_libvirt.sh
bin/pre_install_libvirt.sh
Shell
<|file_sep|>original/setup/install_node.sh echo "Installing node..." if [ ! -e ~/.nvm ]; then curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash mkdir -p ~/.nvm fi source ~/dotfiles/terminal/bash/load_nvm.sh install_node_version 16.5.0 nvm alias default 16.5.0 echo "Installing npm pack...
echo "Installing node..." if [ ! -e ~/.nvm ]; then curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash mkdir -p ~/.nvm fi source ~/dotfiles/terminal/bash/load_nvm.sh install_node_version 16.5.0 nvm alias default 16.5.0 echo "Installing npm packages..." preload_npm_pkg_list install_npm_p...
<|file_sep|>original/setup/install_node.sh echo "Installing node..." if [ ! -e ~/.nvm ]; then curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash mkdir -p ~/.nvm fi source ~/dotfiles/terminal/bash/load_nvm.sh install_node_version 16.5.0 nvm alias default 16.5.0 echo "Installing npm pack...
0ceda8bdf266801344d196fbb7feaf98f0dd7593
setup/install_node.sh
setup/install_node.sh
Shell
<|file_sep|>Verdeler/MultipleConcurrencyLimiter.cs.diff original: //NOTE: This cannot be replaced with a Linq .ForEach foreach (var cl in _concurrencyLimiters) updated: //We must obtain locks in order to prevent cycles from forming. foreach (var concurrencyLimiter in _con...
{ //We must obtain locks in order to prevent cycles from forming. foreach (var concurrencyLimiter in _concurrencyLimiters) { await concurrencyLimiter.WaitFor(subject).ConfigureAwait(false); } try { await asy...
<|file_sep|>Verdeler/MultipleConcurrencyLimiter.cs.diff original: //NOTE: This cannot be replaced with a Linq .ForEach foreach (var cl in _concurrencyLimiters) updated: //We must obtain locks in order to prevent cycles from forming. foreach (var concurrencyLimiter in _con...
ab84a734e672c2e3400b815b3284b0bef067fe30
Verdeler/MultipleConcurrencyLimiter.cs
Verdeler/MultipleConcurrencyLimiter.cs
C#
<|file_sep|>app/Commands/PushBatondUpdatedContainer.php.diff original: updated: use App; <|file_sep|>original/app/Commands/PushBatondUpdatedContainer.php { $this->container = $container; } /** * Execute the command. * * @return void */ public function handle() { $machineID = $this->container->machine...
$this->container = $container; } /** * Execute the command. * * @return void */ public function handle() { // if we are running unit tests, then don't sent a push noticifation if (App::environment('testing')) { return; } $machine = $this->container->machine()->first(); // if we dont have...
<|file_sep|>app/Commands/PushBatondUpdatedContainer.php.diff original: updated: use App; <|file_sep|>original/app/Commands/PushBatondUpdatedContainer.php { $this->container = $container; } /** * Execute the command. * * @return void */ public function handle() { $machineID = $this->container->machine...
c91822cbb0aee5afe6d46763b2c4be41bffc52f9
app/Commands/PushBatondUpdatedContainer.php
app/Commands/PushBatondUpdatedContainer.php
PHP
<|file_sep|>original/README.md Git Mercurial CMake (requried for CoreCLR build) TortoiseSVN (required for Python build to get external dependencies) Visual Studio ## Getting Started ### Run GetDeps.bat This will use git to download CoreCLR and hg to download Python. It will also patch Python to have JIT support. #...
CMake (requried for CoreCLR build) TortoiseSVN (required for Python build to get external dependencies) Visual Studio ## Getting Started ### Run GetDeps.bat This will use git to download CoreCLR and hg to download Python. It will also patch Python to have JIT support. ### Run BuildDeps.cmd This will build CoreCLR...
<|file_sep|>original/README.md Git Mercurial CMake (requried for CoreCLR build) TortoiseSVN (required for Python build to get external dependencies) Visual Studio ## Getting Started ### Run GetDeps.bat This will use git to download CoreCLR and hg to download Python. It will also patch Python to have JIT support. #...
f47543dfd0c73092295fef3840708c4d83ce5f90
README.md
README.md
Markdown
<|file_sep|>original/Casks/opera-beta.rb cask :v1 => 'opera-beta' do version '29.0.1795.30' sha256 '6ef44a4236ad4f29bfc2c66bc8b542fb583fb50fb7c267fbd4777ccaca59adcb' url "http://get.geo.opera.com/pub/opera-beta/#{version}/mac/Opera_beta_#{version}_Setup.dmg" homepage 'http://www.opera.com/computer/beta' lice...
cask :v1 => 'opera-beta' do version '29.0.1795.35' sha256 '0b6ee1cad2b335bd95c1c77c24e13fabad80419f430a91e10ea62a4574064cac' url "http://get.geo.opera.com/pub/opera-beta/#{version}/mac/Opera_beta_#{version}_Setup.dmg" homepage 'http://www.opera.com/computer/beta' license :unknown app 'Opera Beta.app' end
<|file_sep|>original/Casks/opera-beta.rb cask :v1 => 'opera-beta' do version '29.0.1795.30' sha256 '6ef44a4236ad4f29bfc2c66bc8b542fb583fb50fb7c267fbd4777ccaca59adcb' url "http://get.geo.opera.com/pub/opera-beta/#{version}/mac/Opera_beta_#{version}_Setup.dmg" homepage 'http://www.opera.com/computer/beta' lice...
c5c1094968fc784054e999d6b8001d4fc6456d7b
Casks/opera-beta.rb
Casks/opera-beta.rb
Ruby
<|file_sep|>tests/operations/server.crontab/edit_named.json.diff original: "args": ["this_is_another_command"], updated: "args": ["command_to_be 'with_a_quoted_argument'"], <|file_sep|>tests/operations/server.crontab/edit_named.json.diff original: "cron_name": "this_is_a_command" updated: "cron_...
}, "facts": { "crontab": { "command_to_change": { "minute": "*", "hour": "*", "month": "*", "day_of_week": "*", "day_of_month": "*", "comments": [ "# pyinfra-name=name of cron"...
<|file_sep|>tests/operations/server.crontab/edit_named.json.diff original: "args": ["this_is_another_command"], updated: "args": ["command_to_be 'with_a_quoted_argument'"], <|file_sep|>tests/operations/server.crontab/edit_named.json.diff original: "cron_name": "this_is_a_command" updated: "cron_...
abf0733874c24b92d35e6d667d4de2cf1813f607
tests/operations/server.crontab/edit_named.json
tests/operations/server.crontab/edit_named.json
JSON
<|file_sep|>original/build/library.cfg [first] Prototype.js Rico/Corner.js OpenLayers/SingleFile.js OpenLayers.js [last] [exclude] <|file_sep|>current/build/library.cfg [first] Prototype.js Rico/Corner.js OpenLayers/SingleFile.js OpenLayers.js [last] [exclude] <|file_sep|>updated/build/library.cfg
[first] Prototype.js Rico/Corner.js OpenLayers/SingleFile.js OpenLayers.js [last] [exclude] OpenLayers/Layer/Google.js OpenLayers/Layer/Yahoo.js OpenLayers/Layer/VirtualEarth.js
<|file_sep|>original/build/library.cfg [first] Prototype.js Rico/Corner.js OpenLayers/SingleFile.js OpenLayers.js [last] [exclude] <|file_sep|>current/build/library.cfg [first] Prototype.js Rico/Corner.js OpenLayers/SingleFile.js OpenLayers.js [last] [exclude] <|file_sep|>updated/build/library.cfg [first] Prototype...
2d91cade96bcfbc4650d5a283769a0de4d7d9af1
build/library.cfg
build/library.cfg
INI
<|file_sep|>original/app/views/following/show.erb <% @user.followers <|file_sep|>current/app/views/following/show.erb <% @user.followers <|file_sep|>updated/app/views/following/show.erb
<ul> <% @user.followers.each do |follower| %> <li><a href="/users/<%=follower.id%>"><%= follower.username %></a></li> <% end %> </ul>
<|file_sep|>original/app/views/following/show.erb <% @user.followers <|file_sep|>current/app/views/following/show.erb <% @user.followers <|file_sep|>updated/app/views/following/show.erb <ul> <% @user.followers.each do |follower| %> <li><a href="/users/<%=follower.id%>"><%= follower.username %></a></li> <% end %> </ul>
573a5421ac328e67a7766155a795eb30f23f71db
app/views/following/show.erb
app/views/following/show.erb
HTML+ERB
<|file_sep|>examples/to-do/index.html.diff original: <button>Add</button><!-- implicitly calls `onsubmit` --> updated: <button type=submit>Add</button><!-- implicitly calls `onsubmit` --> <|file_sep|>examples/to-do/index.html.diff original: <fieldset><!-- {#} = current index --> <input id={#} oncl...
<input id=all name=filter type=radio checked> <input id=active name=filter type=radio> <input id=completed name=filter type=radio> <template name=tasks> <fieldset><!-- {#} = current index --> <input id={#} onclick=toggle type=checkbox> <label for={#}>{task}</label> <but...
<|file_sep|>examples/to-do/index.html.diff original: <button>Add</button><!-- implicitly calls `onsubmit` --> updated: <button type=submit>Add</button><!-- implicitly calls `onsubmit` --> <|file_sep|>examples/to-do/index.html.diff original: <fieldset><!-- {#} = current index --> <input id={#} oncl...
334fce838c6e6e74fd0a086bb05c3dffc6c934fa
examples/to-do/index.html
examples/to-do/index.html
HTML
<|file_sep|>original/src/main/kotlin/org/rust/lang/core/psi/ext/RsMod.kt /** * Returns a parent module (`super::` in paths). * * The parent module may be in the same or other file. * * Reference: * https://doc.rust-lang.org/reference.html#paths */ val `super`: RsMod? ...
/** * Returns a parent module (`super::` in paths). * * The parent module may be in the same or other file. * * Reference: * https://doc.rust-lang.org/reference.html#paths */ val `super`: RsMod? /** * XXX: this might be different then [com.intellij.psi.PsiNamed...
<|file_sep|>original/src/main/kotlin/org/rust/lang/core/psi/ext/RsMod.kt /** * Returns a parent module (`super::` in paths). * * The parent module may be in the same or other file. * * Reference: * https://doc.rust-lang.org/reference.html#paths */ val `super`: RsMod? ...
4b4af3b52fe15ab93fdc06a8b10ce2001ca20e9c
src/main/kotlin/org/rust/lang/core/psi/ext/RsMod.kt
src/main/kotlin/org/rust/lang/core/psi/ext/RsMod.kt
Kotlin
<|file_sep|>original/.travis.yml language: "node_js" node_js: - "4" - "6" - "7" - "8" - "9" after_script: "cat ./build/coverage/lcov.info | node ./node_modules/coveralls/bin/coveralls.js" <|file_sep|>current/.travis.yml language: "node_js" node_js: - "4" - "6" - "7" - "8" - "9" after_script: "cat ./...
language: "node_js" node_js: - "4" - "6" - "7" - "8" - "9" - "10" after_script: "cat ./build/coverage/lcov.info | node ./node_modules/coveralls/bin/coveralls.js"
<|file_sep|>original/.travis.yml language: "node_js" node_js: - "4" - "6" - "7" - "8" - "9" after_script: "cat ./build/coverage/lcov.info | node ./node_modules/coveralls/bin/coveralls.js" <|file_sep|>current/.travis.yml language: "node_js" node_js: - "4" - "6" - "7" - "8" - "9" after_script: "cat ./...
a2bdfbb6d18135aa010bbe42e5033cacd8a4398f
.travis.yml
.travis.yml
YAML
<|file_sep|>original/wafer/talks/urls.py from wafer.talks.views import ( Speakers, TalkCreate, TalkDelete, TalkUpdate, TalkView, UsersTalks, TalksViewSet) router = routers.DefaultRouter() router.register(r'talks', TalksViewSet) urlpatterns = patterns( '', url(r'^$', UsersTalks.as_view(), name='wafer_u...
from wafer.talks.views import ( Speakers, TalkCreate, TalkDelete, TalkUpdate, TalkView, UsersTalks, TalksViewSet) router = routers.DefaultRouter() router.register(r'talks', TalksViewSet) urlpatterns = patterns( '', url(r'^$', UsersTalks.as_view(), name='wafer_users_talks'), url(r'^page/(?P<page>\d...
<|file_sep|>original/wafer/talks/urls.py from wafer.talks.views import ( Speakers, TalkCreate, TalkDelete, TalkUpdate, TalkView, UsersTalks, TalksViewSet) router = routers.DefaultRouter() router.register(r'talks', TalksViewSet) urlpatterns = patterns( '', url(r'^$', UsersTalks.as_view(), name='wafer_u...
d7ea0514d3b794f2cacde82069699eff6b96cb24
wafer/talks/urls.py
wafer/talks/urls.py
Python
<|file_sep|>original/requirements2.txt Flask==0.12.1 Flask-SocketIO==2.8.6 Jinja2==2.9.6 MarkupSafe==1.0 Werkzeug==0.12.1 argparse==1.4.0 eventlet==0.21.0 itsdangerous==0.24 python-tdbus==0.10 #wsgiref==0.1.2 <|file_sep|>current/requirements2.txt Flask==0.12.1 Flask-SocketIO==2.8.6 Jinja2==2.9.6 MarkupSafe==1.0 Werkzeu...
Flask==0.12.1 Flask-SocketIO==2.8.6 Jinja2==2.9.6 MarkupSafe==1.0 Werkzeug==0.12.1 argparse==1.4.0 eventlet==0.21.0 itsdangerous==0.24 python-tdbus==0.11 #wsgiref==0.1.2
<|file_sep|>original/requirements2.txt Flask==0.12.1 Flask-SocketIO==2.8.6 Jinja2==2.9.6 MarkupSafe==1.0 Werkzeug==0.12.1 argparse==1.4.0 eventlet==0.21.0 itsdangerous==0.24 python-tdbus==0.10 #wsgiref==0.1.2 <|file_sep|>current/requirements2.txt Flask==0.12.1 Flask-SocketIO==2.8.6 Jinja2==2.9.6 MarkupSafe==1.0 Werkzeu...
2645bd8239e26eb470621b8f33477fb4518224dd
requirements2.txt
requirements2.txt
Text
<|file_sep|>original/node/setup.sh #!/usr/bin/env bash DOTFILES_DIRECTORY="${HOME}/.dotfiles" source "${HOME}/.bashrc" source ${DOTFILES_DIRECTORY}/lib/utils # Install or update nvm curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash # Install the stable version's node.js with nvm nvm...
#!/usr/bin/env bash DOTFILES_DIRECTORY="${HOME}/.dotfiles" source "${HOME}/.bashrc" source ${DOTFILES_DIRECTORY}/lib/utils # Install or update nvm git clone https://github.com/creationix/nvm.git ~/.nvm && cd ~/.nvm && git checkout `git describe --abbrev=0 --tags` . ~/.nvm/nvm.sh # Install the stable version's node.j...
<|file_sep|>original/node/setup.sh #!/usr/bin/env bash DOTFILES_DIRECTORY="${HOME}/.dotfiles" source "${HOME}/.bashrc" source ${DOTFILES_DIRECTORY}/lib/utils # Install or update nvm curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash # Install the stable version's node.js with nvm nvm...
537792e6626e16c6a2c2c8a1d98f2126995bfc85
node/setup.sh
node/setup.sh
Shell
<|file_sep|>package.json.diff original: "version": "0.0.1-SNAPSHOT", updated: "version": "0.0.2-SNAPSHOT", <|file_sep|>original/package.json "url": "https://github.com/saskavi/saskavi/issues" }, "homepage": "https://github.com/saskavi/saskavi", "bin": { "saskavi": "./bin/saskavi" }, "scripts": { ...
}, "homepage": "https://github.com/saskavi/saskavi", "bin": { "saskavi": "./bin/saskavi" }, "scripts": { "example": "./example/run" }, "dependencies": { "firebase": "~1.0.19", "tar.gz": "~0.1.1", "request": "~2.40.0", "findup-sync": "~0.1.3", "pkginfo": "~0.3.0", "commander...
<|file_sep|>package.json.diff original: "version": "0.0.1-SNAPSHOT", updated: "version": "0.0.2-SNAPSHOT", <|file_sep|>original/package.json "url": "https://github.com/saskavi/saskavi/issues" }, "homepage": "https://github.com/saskavi/saskavi", "bin": { "saskavi": "./bin/saskavi" }, "scripts": { ...
ce74cc6516e5638fd331e402a175685caa15cdc4
package.json
package.json
JSON
<|file_sep|>original/.travis.yml --- language: node_js node_js: - '0.10' - '0.11' - '0.12' - node - iojs sudo: false script: - npm test - npm run lint <|file_sep|>current/.travis.yml --- language: node_js node_js: - '0.10' - '0.11' - '0.12' - node - iojs sudo: false script: - npm test - npm run lint <|file_sep|>updated...
--- language: node_js node_js: - '0.10' - '0.11' - '0.12' - '4' - '5' - '6' sudo: false script: - npm test - npm run lint
<|file_sep|>original/.travis.yml --- language: node_js node_js: - '0.10' - '0.11' - '0.12' - node - iojs sudo: false script: - npm test - npm run lint <|file_sep|>current/.travis.yml --- language: node_js node_js: - '0.10' - '0.11' - '0.12' - node - iojs sudo: false script: - npm test - npm run lint <|file_sep|>updated...
1b6ec3d4c0dba85ffbf2a5c9ce69979ca6528184
.travis.yml
.travis.yml
YAML
<|file_sep|>original/README.md Spring Security Form Login with Google Authenticator (Time-based One-time Password Algorithm, TOTP) ### Online Demo: https://demo.rasc.ch/totp/ <|file_sep|>current/README.md Spring Security Form Login with Google Authenticator (Time-based One-time Password Algorithm, TOTP) ### Online De...
Spring Security Form Login with Google Authenticator (Time-based One-time Password Algorithm, TOTP) ### Online Demo: https://demo.rasc.ch/totp/ Blog post: https://golb.hplar.ch/2019/06/totp-spring-security.html
<|file_sep|>original/README.md Spring Security Form Login with Google Authenticator (Time-based One-time Password Algorithm, TOTP) ### Online Demo: https://demo.rasc.ch/totp/ <|file_sep|>current/README.md Spring Security Form Login with Google Authenticator (Time-based One-time Password Algorithm, TOTP) ### Online De...
8487216ad5316f716fc35c7ba1fabc47c5087c0e
README.md
README.md
Markdown
<|file_sep|>original/init.rb require 'redmine' Redmine::Plugin.register :redmine_dashboard do name 'Redmine Dashboard plugin' author 'Jan Graichen' description 'Add a task board and a planning board to Redmine' version '2.0.rc1' url 'https://github.com/jgraichen/redmine_dashboard' author_url 'mailto:jg@alt...
require 'redmine' Redmine::Plugin.register :redmine_dashboard do name 'Redmine Dashboard plugin' author 'Jan Graichen' description 'Add a task board and a planning board to Redmine' version '2.0.rc1' url 'https://github.com/jgraichen/redmine_dashboard' author_url 'mailto:jg@altimos.de' requires_redmine ...
<|file_sep|>original/init.rb require 'redmine' Redmine::Plugin.register :redmine_dashboard do name 'Redmine Dashboard plugin' author 'Jan Graichen' description 'Add a task board and a planning board to Redmine' version '2.0.rc1' url 'https://github.com/jgraichen/redmine_dashboard' author_url 'mailto:jg@alt...
c5ba4169609cd50ab3d18e5e52b9c6609bbd38c2
init.rb
init.rb
Ruby
<|file_sep|>algorithms/quicksort.js.diff original: updated: function random(list) { return list[Math.round(Math.random() * (list.length - 1))]; } <|file_sep|>original/algorithms/quicksort.js export default function quicksort(list) { if (list.length < 2) { return list; } const pivot = list[0]; // TODO: ra...
function random(list) { return list[Math.round(Math.random() * (list.length - 1))]; } export default function quicksort(list) { if (list.length < 2) { return list; } const pivot = random(list); const less = list.filter(i => i < pivot); const greater = list.filter(i => i > pivot); return [...quickso...
<|file_sep|>algorithms/quicksort.js.diff original: updated: function random(list) { return list[Math.round(Math.random() * (list.length - 1))]; } <|file_sep|>original/algorithms/quicksort.js export default function quicksort(list) { if (list.length < 2) { return list; } const pivot = list[0]; // TODO: ra...
b9a6a3409d7ca37515bada13b55bb3e26642c8ae
algorithms/quicksort.js
algorithms/quicksort.js
JavaScript
<|file_sep|>original/app.json { "name": "Sebastian-badge.info", "description": "Hosting embed Jenkins plugin badges", "website": "http://sebastian-badge.info/", "repository": "https://github.com/sue445/sebastian-badge", "keywords": ["ruby", "padrino", "Jenkins"], "scripts": { "postdeploy": "bundle exec ...
{ "name": "Sebastian-badge.info", "description": "Hosting embed Jenkins plugin badges", "website": "http://sebastian-badge.info/", "repository": "https://github.com/sue445/sebastian-badge", "keywords": ["ruby", "padrino", "Jenkins"], "scripts": { "postdeploy": "bundle exec rake ar:create ar:migrate && b...
<|file_sep|>original/app.json { "name": "Sebastian-badge.info", "description": "Hosting embed Jenkins plugin badges", "website": "http://sebastian-badge.info/", "repository": "https://github.com/sue445/sebastian-badge", "keywords": ["ruby", "padrino", "Jenkins"], "scripts": { "postdeploy": "bundle exec ...
5b4440ac5570f1570f7a6cdc4852c34682bd8fde
app.json
app.json
JSON
<|file_sep|>original/lib/cloud_conductor/terraform/templates/openstack.tf.erb <|file_sep|>current/lib/cloud_conductor/terraform/templates/openstack.tf.erb <|file_sep|>updated/lib/cloud_conductor/terraform/templates/openstack.tf.erb
<% variables.each do |variable| -%> variable "<%= variable %>" {} <% end -%> provider "openstack" { user_name = "${var.os_user_name}" tenant_name = "${var.os_tenant_name}" password = "${var.os_password}" auth_url = "${var.os_auth_url}" } <% modules.each do |m| %> module "<%= m.name %>" { source = "<%= m....
<|file_sep|>original/lib/cloud_conductor/terraform/templates/openstack.tf.erb <|file_sep|>current/lib/cloud_conductor/terraform/templates/openstack.tf.erb <|file_sep|>updated/lib/cloud_conductor/terraform/templates/openstack.tf.erb <% variables.each do |variable| -%> variable "<%= variable %>" {} <% end -%> provider...
5361a3ab13166983b5cd2338f441e0bcd468e301
lib/cloud_conductor/terraform/templates/openstack.tf.erb
lib/cloud_conductor/terraform/templates/openstack.tf.erb
HTML+ERB
<|file_sep|>original/packages/js/json-api-lib.yaml <|file_sep|>current/packages/js/json-api-lib.yaml <|file_sep|>updated/packages/js/json-api-lib.yaml
homepage: https://github.com/shirren/json-api-lib changelog-type: '' hash: bbbb518114e715bb2e09bc4c32cddac50e81115e50cd89170f550787193211ce test-bench-deps: json-api-lib: -any bytestring: ! '>=0.10.8 && <0.11' lens-aeson: ! '>=1.0.2 && <1.1' base: ! '>=4.11 && <5' aeson-pretty: ! '>0.8 && <0.9' unordered-co...
<|file_sep|>original/packages/js/json-api-lib.yaml <|file_sep|>current/packages/js/json-api-lib.yaml <|file_sep|>updated/packages/js/json-api-lib.yaml homepage: https://github.com/shirren/json-api-lib changelog-type: '' hash: bbbb518114e715bb2e09bc4c32cddac50e81115e50cd89170f550787193211ce test-bench-deps: json-api...
11a2e4dd12905d313eb53bb4d3e2aaf02ad87f74
packages/js/json-api-lib.yaml
packages/js/json-api-lib.yaml
YAML
<|file_sep|>original/app/src/main/res/layout/activity_open_source_license_detail.xml tools:context="cl.monsoon.s1next.view.activity.OpenSourceLicenseDetailActivity"> <data> <variable name="textAssetViewModel" type="cl.monsoon.s1next.viewmodel.TextAssetViewModel" /> </data> ...
tools:context="cl.monsoon.s1next.view.activity.OpenSourceLicenseDetailActivity"> <data> <variable name="textAssetViewModel" type="cl.monsoon.s1next.viewmodel.TextAssetViewModel" /> </data> <android.support.design.widget.CoordinatorLayout android:id="@+id/coordi...
<|file_sep|>original/app/src/main/res/layout/activity_open_source_license_detail.xml tools:context="cl.monsoon.s1next.view.activity.OpenSourceLicenseDetailActivity"> <data> <variable name="textAssetViewModel" type="cl.monsoon.s1next.viewmodel.TextAssetViewModel" /> </data> ...
ce2dfc8ac17d2a1a3e320837553ebbcab1061cf0
app/src/main/res/layout/activity_open_source_license_detail.xml
app/src/main/res/layout/activity_open_source_license_detail.xml
XML
<|file_sep|>projekte/2018-02-21-radlquartier.html.diff original: --- collaborators: - links: - url: "https://twitter.com/bAck_mumu" url-name: Twitter - url: "https://github.com/bAckmumu" url-name: GitHub name: "Maximilian Richt" imgname: muenchen/radlquartier....
- name: "Manuel" links: - url: "https://twitter.com/bAck_mumu" url-name: Twitter - url: "https://github.com/bAckmumu" url-name: GitHub links: - name: "mvg.manuel.red (Webseite)" url: "http://mvg.manuel.red" - name: "Github (JavaScript-Projekt)" url: "https://github.com/bAckmumu/radlquartier" - name...
<|file_sep|>projekte/2018-02-21-radlquartier.html.diff original: --- collaborators: - links: - url: "https://twitter.com/bAck_mumu" url-name: Twitter - url: "https://github.com/bAckmumu" url-name: GitHub name: "Maximilian Richt" imgname: muenchen/radlquartier....
19a2cacb56e6f6838fcf21127ac934793ffab5c1
projekte/2018-02-21-radlquartier.html
projekte/2018-02-21-radlquartier.html
HTML
<|file_sep|>index.py.diff original: import bottle updated: <|file_sep|>index.py.diff original: return template('index', dict(bottles = bottle_list)) updated: return template('home', dict(bottles = bottle_list)) <|file_sep|>original/index.py def add_bottle(): name = request.forms.get('name') color = request.forms....
#Post new bottle of wine @route('/bottle/new', method="POST") def add_bottle(): name = request.forms.get('name') color = request.forms.get('color') year = request.forms.get('year') cellar.insert_bottle(name, color, year) redirect('/') #Connection setup connection_address = "mongodb://localhost" connection = py...
<|file_sep|>index.py.diff original: import bottle updated: <|file_sep|>index.py.diff original: return template('index', dict(bottles = bottle_list)) updated: return template('home', dict(bottles = bottle_list)) <|file_sep|>original/index.py def add_bottle(): name = request.forms.get('name') color = request.forms....
a444fe6125bac990267fb35f93024abd7386d44a
index.py
index.py
Python
<|file_sep|>original/src/CMakeLists.txt jsonrpc/JsonRpcHandler.hpp jsonrpc/JsonRpcClient.hpp jsonrpc/JsonRpcException.hpp jsonrpc/JsonSerializer.hpp jsonrpc/JsonRpcUtils.hpp jsonrpc/JsonRpcConstants.hpp jsonrpc/JsonFixes.hpp ) add_library(jsonrpc SHARED ${SOURCE_FILES} ${HEADER_FILES}) set_target_proper...
jsonrpc/JsonRpcHandler.hpp jsonrpc/JsonRpcClient.hpp jsonrpc/JsonRpcException.hpp jsonrpc/JsonSerializer.hpp jsonrpc/JsonRpcUtils.hpp jsonrpc/JsonRpcConstants.hpp jsonrpc/JsonFixes.hpp ) add_library(jsonrpc SHARED ${SOURCE_FILES} ${HEADER_FILES}) if(SANITIZERS_ENABLED) add_sanitizers(jsonrpc) endif() ...
<|file_sep|>original/src/CMakeLists.txt jsonrpc/JsonRpcHandler.hpp jsonrpc/JsonRpcClient.hpp jsonrpc/JsonRpcException.hpp jsonrpc/JsonSerializer.hpp jsonrpc/JsonRpcUtils.hpp jsonrpc/JsonRpcConstants.hpp jsonrpc/JsonFixes.hpp ) add_library(jsonrpc SHARED ${SOURCE_FILES} ${HEADER_FILES}) set_target_proper...
8e48ee4c6cea03c5c35ac70d92ced49e04222ee1
src/CMakeLists.txt
src/CMakeLists.txt
Text
<|file_sep|>original/lib/worth_saving/form_builder.rb module WorthSaving class FormBuilder < ActionView::Base.default_form_builder def self.default_interval 3 end def text_field(method, options = {}) process_options! method, options super end def radio_button(method, tag_value,...
module WorthSaving class FormBuilder < ActionView::Base.default_form_builder def text_field(method, options = {}) process_options! method, options super end def radio_button(method, tag_value, options = {}) process_options! method, options super end def check_box(method, ...
<|file_sep|>original/lib/worth_saving/form_builder.rb module WorthSaving class FormBuilder < ActionView::Base.default_form_builder def self.default_interval 3 end def text_field(method, options = {}) process_options! method, options super end def radio_button(method, tag_value,...
2e4f8bf59012d727aaa217fb0884103741e6e570
lib/worth_saving/form_builder.rb
lib/worth_saving/form_builder.rb
Ruby
<|file_sep|>original/pycalphad/__init__.py #first import dill, which populates itself into pickle's dispatch import dill import pickle # save the MethodDescriptorType from dill MethodDescriptorType = type(type.__dict__['mro']) if pickle.__dict__.get('_Pickler', None): MethodDescriptorWrapper = pickle._Pickler.dispa...
# This unfortunate monkey patch is necessary to make Py27, Py33 and Py34 work # Source: http://stackoverflow.com/questions/34124270/pickling-method-descriptor-objects-in-python # first import dill, which populates itself into pickle's dispatch import dill import pickle # save the MethodDescriptorType from dill MethodD...
<|file_sep|>original/pycalphad/__init__.py #first import dill, which populates itself into pickle's dispatch import dill import pickle # save the MethodDescriptorType from dill MethodDescriptorType = type(type.__dict__['mro']) if pickle.__dict__.get('_Pickler', None): MethodDescriptorWrapper = pickle._Pickler.dispa...
d5817c04a57d8c593335450b0613fd683fdf5aec
pycalphad/__init__.py
pycalphad/__init__.py
Python
<|file_sep|>original/metadata/com.xargsgrep.portknocker.txt Repo Type:git Repo:https://github.com/xargsgrep/PortKnocker.git Build:1.0.3,4 commit=ba2bbcb21ebdef214c86 subdir=PortKnocker Build:1.0.7,8 commit=204cc365b758dca2f7 subdir=app gradle=yes Build:1.0.8,9 commit=edd19a9b56f846466330d9feb...
Repo Type:git Repo:https://github.com/xargsgrep/PortKnocker.git Build:1.0.3,4 commit=ba2bbcb21ebdef214c86 subdir=PortKnocker Build:1.0.7,8 commit=204cc365b758dca2f7 subdir=app gradle=yes Build:1.0.8,9 commit=edd19a9b56f846466330d9feb17e5052ea5350ee subdir=app gradle=yes Auto Update M...
<|file_sep|>original/metadata/com.xargsgrep.portknocker.txt Repo Type:git Repo:https://github.com/xargsgrep/PortKnocker.git Build:1.0.3,4 commit=ba2bbcb21ebdef214c86 subdir=PortKnocker Build:1.0.7,8 commit=204cc365b758dca2f7 subdir=app gradle=yes Build:1.0.8,9 commit=edd19a9b56f846466330d9feb...
1fa5be9a6440260c90a4320fe9a4ecd4f45816eb
metadata/com.xargsgrep.portknocker.txt
metadata/com.xargsgrep.portknocker.txt
Text
<|file_sep|>app/controllers/application_controller.rb.diff original: updated: before_action :set_variant <|file_sep|>original/app/controllers/application_controller.rb class ApplicationController < ActionController::Base include GinaAuthentication::AppHelpers # Prevent CSRF attacks by raising an exception. # F...
include GinaAuthentication::AppHelpers # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception before_action :set_variant rescue_from CanCan::AccessDenied do |exception| # if signed_in? # render template: 'welcom...
<|file_sep|>app/controllers/application_controller.rb.diff original: updated: before_action :set_variant <|file_sep|>original/app/controllers/application_controller.rb class ApplicationController < ActionController::Base include GinaAuthentication::AppHelpers # Prevent CSRF attacks by raising an exception. # F...
5a8059ee5f97894f711e8e7476adeb848b98e807
app/controllers/application_controller.rb
app/controllers/application_controller.rb
Ruby
<|file_sep|>app/index.html.diff original: <link rel="stylesheet" href="../bower_components/bootstrap/dist/css/bootstrap.css"> updated: <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css"> <|file_sep|>original/app/index.html <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compati...
<head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>NUSTCoins</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css"> <...
<|file_sep|>app/index.html.diff original: <link rel="stylesheet" href="../bower_components/bootstrap/dist/css/bootstrap.css"> updated: <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css"> <|file_sep|>original/app/index.html <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compati...
94b07035ae6820f2498c064019b4e18dbdcc25ca
app/index.html
app/index.html
HTML
<|file_sep|>original/src/test/java/fr/issamax/essearch/test/AbstractConfigurationTest.java import org.elasticsearch.node.Node; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.con...
import org.elasticsearch.node.Node; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; /** * Just launch the Spring factory * @author PILA...
<|file_sep|>original/src/test/java/fr/issamax/essearch/test/AbstractConfigurationTest.java import org.elasticsearch.node.Node; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.con...
3f8b14d24b1b0666b8ee25670194ce95018b5265
src/test/java/fr/issamax/essearch/test/AbstractConfigurationTest.java
src/test/java/fr/issamax/essearch/test/AbstractConfigurationTest.java
Java
<|file_sep|>original/src/box2dbaseitem.cpp * Shamelessly stolen from qml-box2d project at gitorious * * https://gitorious.org/qml-box2d/qml-box2d */ void Box2DBaseItem::synchronize() { if (m_synchronize && m_initialized) { m_synchronizing = true; const QPointF newPoint = b2Util::qTopLeft(b2Tran...
/* * Shamelessly stolen from qml-box2d project at gitorious * * https://gitorious.org/qml-box2d/qml-box2d */ void Box2DBaseItem::synchronize() { if (m_synchronize && m_initialized) { m_synchronizing = true; const QPointF newPoint = b2Util::qTopLeft(b2TransformOrigin(), boundingRect(), m_scaleRa...
<|file_sep|>original/src/box2dbaseitem.cpp * Shamelessly stolen from qml-box2d project at gitorious * * https://gitorious.org/qml-box2d/qml-box2d */ void Box2DBaseItem::synchronize() { if (m_synchronize && m_initialized) { m_synchronizing = true; const QPointF newPoint = b2Util::qTopLeft(b2Tran...
4b954f98d657c0eda2049dce6a3e648b2ce9f80b
src/box2dbaseitem.cpp
src/box2dbaseitem.cpp
C++
<|file_sep|>original/.github/workflows/gh-pages.yml on: push: branches: - master jobs: build-deploy: runs-on: ubuntu-latest steps: - name: Checkout Repo uses: actions/checkout@master with: submodules: true - name: Publish Site uses: chabad360/hugo-gh-...
- master jobs: build-deploy: runs-on: ubuntu-latest steps: - name: Checkout Repo uses: actions/checkout@master with: submodules: true - name: Setup Python uses: actions/setup-python@v2 - name: Generate config.yaml run: python gen_config.py ...
<|file_sep|>original/.github/workflows/gh-pages.yml on: push: branches: - master jobs: build-deploy: runs-on: ubuntu-latest steps: - name: Checkout Repo uses: actions/checkout@master with: submodules: true - name: Publish Site uses: chabad360/hugo-gh-...
6f32c163a3727dc3dc698087fecc0d9a5a7c00d7
.github/workflows/gh-pages.yml
.github/workflows/gh-pages.yml
YAML
<|file_sep|>original/package.json "test": "bin/run-tests.js", "start": "ember serve", "docs": "ember yuidoc" }, "devDependencies": { "aws-sdk": "~2.1.5", "bower": "~1.3.2", "chalk": "^0.5.1", "ember-cli": "0.1.6", "ember-cli-yuidoc": "^0.3.1", "ember-publisher": "0.0.7", "emb...
"test": "bin/run-tests.js", "start": "ember serve", "docs": "ember yuidoc" }, "devDependencies": { "aws-sdk": "~2.1.5", "bower": "~1.3.2", "chalk": "^0.5.1", "ember-cli": "0.1.6", "ember-cli-yuidoc": "^0.3.1", "ember-publisher": "0.0.7", "emberjs-build": "0.0.19", "expres...
<|file_sep|>original/package.json "test": "bin/run-tests.js", "start": "ember serve", "docs": "ember yuidoc" }, "devDependencies": { "aws-sdk": "~2.1.5", "bower": "~1.3.2", "chalk": "^0.5.1", "ember-cli": "0.1.6", "ember-cli-yuidoc": "^0.3.1", "ember-publisher": "0.0.7", "emb...
b29e92ab260afe6d96e3a00c58e25016bc5b0e15
package.json
package.json
JSON
<|file_sep|>original/lib/convection/model/template/resource_property/aws_elbv2_listener_rule_condition.rb require_relative '../resource_property' module Convection module Model class Template class ResourceProperty # Represents an {http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-p...
require_relative '../resource_property' module Convection module Model class Template class ResourceProperty # Represents an {http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listenerrule-conditions.html # ELBV2 ListenerRule Condition Type ...
<|file_sep|>original/lib/convection/model/template/resource_property/aws_elbv2_listener_rule_condition.rb require_relative '../resource_property' module Convection module Model class Template class ResourceProperty # Represents an {http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-p...
69c76b6a88220349a5e8b6ebab4e74593656b411
lib/convection/model/template/resource_property/aws_elbv2_listener_rule_condition.rb
lib/convection/model/template/resource_property/aws_elbv2_listener_rule_condition.rb
Ruby
<|file_sep|>original/README.md [![Code Climate Score](http://img.shields.io/codeclimate/github/Erol/ethos.svg?style=flat)](https://codeclimate.com/github/Erol/ethos) # Ethos Entity library for Ruby ## Contributing 1. Fork it 2. Create your feature branch ( `git checkout -b my-new-feature` ) 3. Create tests and make...
[![Code Climate Score](http://img.shields.io/codeclimate/github/Erol/ethos.svg?style=flat)](https://codeclimate.com/github/Erol/ethos) [![Test Coverage](https://codeclimate.com/github/Erol/ethos/badges/coverage.svg)](https://codeclimate.com/github/Erol/ethos) # Ethos Entity library for Ruby ## Contributing 1. Fork ...
<|file_sep|>original/README.md [![Code Climate Score](http://img.shields.io/codeclimate/github/Erol/ethos.svg?style=flat)](https://codeclimate.com/github/Erol/ethos) # Ethos Entity library for Ruby ## Contributing 1. Fork it 2. Create your feature branch ( `git checkout -b my-new-feature` ) 3. Create tests and make...
92300c717f28f08dfca9536298b75103c387ab71
README.md
README.md
Markdown
<|file_sep|>original/db/migrate/20130221215017_add_description_to_categories.rb def up add_column :categories, :description, :text, null: true # While we're at it, remove unused columns remove_column :categories, :top1_topic_id remove_column :categories, :top2_topic_id remove_column :categories, ...
def up add_column :categories, :description, :text, null: true # While we're at it, remove unused columns remove_column :categories, :top1_topic_id remove_column :categories, :top2_topic_id remove_column :categories, :top1_user_id remove_column :categories, :top2_user_id # Migrate excerp...
<|file_sep|>original/db/migrate/20130221215017_add_description_to_categories.rb def up add_column :categories, :description, :text, null: true # While we're at it, remove unused columns remove_column :categories, :top1_topic_id remove_column :categories, :top2_topic_id remove_column :categories, ...
006e72ff5a34d6cf326cc98d041a717c38349636
db/migrate/20130221215017_add_description_to_categories.rb
db/migrate/20130221215017_add_description_to_categories.rb
Ruby
<|file_sep|>original/api/services/Utils.js module.exports = { Object: { clean: function clean(obj) { for (var key in obj) { if (JSON.stringify(obj[key]) == "{}" || !obj[key]) { delete obj[key]; } else if (typeof obj[key] == "object") { obj[key] = this.clean(obj[key]); ...
module.exports = { Object: { clean: function clean(obj) { for (var key in obj) { if (JSON.stringify(obj[key]) == "{}" || !obj[key]) { delete obj[key]; } else if (typeof obj[key] == "object") { obj[key] = this.clean(obj[key]); } } return obj; } },...
<|file_sep|>original/api/services/Utils.js module.exports = { Object: { clean: function clean(obj) { for (var key in obj) { if (JSON.stringify(obj[key]) == "{}" || !obj[key]) { delete obj[key]; } else if (typeof obj[key] == "object") { obj[key] = this.clean(obj[key]); ...
031aa05f1fb50b069caec842cc8320cd7778f829
api/services/Utils.js
api/services/Utils.js
JavaScript
<|file_sep|>conda/geomdl/meta.yaml.diff original: string: {{ GIT_DESCRIBE_HASH[1:] }}_{{ build_number }} updated: number: {{ build_number }} <|file_sep|>original/conda/geomdl/meta.yaml source: path: ../../ build: noarch: python string: {{ GIT_DESCRIBE_HASH[1:] }}_{{ build_number }} script: - python se...
source: path: ../../ build: noarch: python number: {{ build_number }} script: - python setup.py sdist - pip install dist/geomdl-{{ setup_data['version'] }}.tar.gz --no-deps requirements: host: - python - setuptools - six #- enum34 # required for py27 run: - python - six ...
<|file_sep|>conda/geomdl/meta.yaml.diff original: string: {{ GIT_DESCRIBE_HASH[1:] }}_{{ build_number }} updated: number: {{ build_number }} <|file_sep|>original/conda/geomdl/meta.yaml source: path: ../../ build: noarch: python string: {{ GIT_DESCRIBE_HASH[1:] }}_{{ build_number }} script: - python se...
f078b5df343e606682e4207e986a6da114c10b24
conda/geomdl/meta.yaml
conda/geomdl/meta.yaml
YAML
<|file_sep|>original/pycroft/config.json "name": "Benutzer", "duration": null }, { "name": "Kürzlich eingezogen", "duration": 31 } ], "financeaccount_name": "Konto von {user_id}", "registration_fe...
"name": "Benutzer", "duration": null }, { "name": "Kürzlich eingezogen", "duration": 31 } ], "financeaccount_name": "Konto von {user_id}", "registration_fee_message": "Anmeldegebühr", "sem...
<|file_sep|>original/pycroft/config.json "name": "Benutzer", "duration": null }, { "name": "Kürzlich eingezogen", "duration": 31 } ], "financeaccount_name": "Konto von {user_id}", "registration_fe...
03a8db845436cb10e742e48dbe59dc7ec7f1a88a
pycroft/config.json
pycroft/config.json
JSON
<|file_sep|>original/requirements/dev.txt -r base.txt django-debug-toolbar==3.2 factory-boy==3.2.0 Faker==5.8.0 flake8-docstrings==1.5.0 flake8==3.8.4 freezegun==1.1.0 isort==5.7.0 pytest-cov==2.11.1 pytest-django==4.1.0 pytest-factoryboy==2.1.0 pytest==6.2.1 <|file_sep|>current/requirements/dev.txt -r base.txt django-...
-r base.txt django-debug-toolbar==3.2 factory-boy==3.2.0 Faker==5.8.0 flake8-docstrings==1.5.0 flake8==3.8.4 freezegun==1.1.0 isort==5.7.0 pytest-cov==2.11.1 pytest-django==4.1.0 pytest-factoryboy==2.1.0 pytest==6.2.2
<|file_sep|>original/requirements/dev.txt -r base.txt django-debug-toolbar==3.2 factory-boy==3.2.0 Faker==5.8.0 flake8-docstrings==1.5.0 flake8==3.8.4 freezegun==1.1.0 isort==5.7.0 pytest-cov==2.11.1 pytest-django==4.1.0 pytest-factoryboy==2.1.0 pytest==6.2.1 <|file_sep|>current/requirements/dev.txt -r base.txt django-...
7fccf925da9297640d0f4db35dc3a45568be3c59
requirements/dev.txt
requirements/dev.txt
Text
<|file_sep|>original/AspNetCoreServerSentEvents/README.md # AspNetCoreServerSentEvents Answers: http://stackoverflow.com/questions/36227565/aspnet-core-server-sent-events-response-flush # Usuage ``` dnvm use 1.0.0-rc2-20221 -runtime coreclr dotnet restore dotnet watch ``` Then navigate to `localhost:5000` and open th...
# AspNetCoreServerSentEvents This project answers the [ASPNET Core Server Sent Events / Response flush question on StackOverflow](http://stackoverflow.com/questions/36227565/aspnet-core-server-sent-events-response-flush). # Usuage ``` dnvm use 1.0.0-rc2-20221 -runtime coreclr dotnet restore dotnet watch ``` Then navi...
<|file_sep|>original/AspNetCoreServerSentEvents/README.md # AspNetCoreServerSentEvents Answers: http://stackoverflow.com/questions/36227565/aspnet-core-server-sent-events-response-flush # Usuage ``` dnvm use 1.0.0-rc2-20221 -runtime coreclr dotnet restore dotnet watch ``` Then navigate to `localhost:5000` and open th...
19408eb384b164c3c08563b1bb4a1cda3b3557e7
AspNetCoreServerSentEvents/README.md
AspNetCoreServerSentEvents/README.md
Markdown
<|file_sep|>src/smc-webapp/project/explorer/path-segment-link.tsx.diff original: import { COLORS, Tip } from "../../r_misc" updated: import { COLORS, Tip } from "../../r_misc"; <|file_sep|>src/smc-webapp/project/explorer/path-segment-link.tsx.diff original: const Breadcrumb = require("react-bootstrap") updated: const B...
} function style() { if (history) { return { color: "#c0c0c0" }; } else if (active) { return { color: COLORS.BS_BLUE_BGRND }; } return {}; } return ( <Breadcrumb.Item onClick={handle_click} active={active} style={style()} > {render_content()} </B...
<|file_sep|>src/smc-webapp/project/explorer/path-segment-link.tsx.diff original: import { COLORS, Tip } from "../../r_misc" updated: import { COLORS, Tip } from "../../r_misc"; <|file_sep|>src/smc-webapp/project/explorer/path-segment-link.tsx.diff original: const Breadcrumb = require("react-bootstrap") updated: const B...
568768198c173ffc62a718cade3a98dee89c809e
src/smc-webapp/project/explorer/path-segment-link.tsx
src/smc-webapp/project/explorer/path-segment-link.tsx
TypeScript
<|file_sep|>original/.travis.yml language: node_js node_js: - 0.6 before_script: - test/travis.sh script: npm test notifications: irc: "irc.freenode.org#fbp" <|file_sep|>current/.travis.yml language: node_js node_js: - 0.6 before_script: - test/travis.sh script: npm test notifications: irc: "irc.f...
language: node_js node_js: - 0.6 - 0.8 before_script: - test/travis.sh script: npm test notifications: irc: "irc.freenode.org#fbp"
<|file_sep|>original/.travis.yml language: node_js node_js: - 0.6 before_script: - test/travis.sh script: npm test notifications: irc: "irc.freenode.org#fbp" <|file_sep|>current/.travis.yml language: node_js node_js: - 0.6 before_script: - test/travis.sh script: npm test notifications: irc: "irc.f...
c710272f73c87af19c64ce75892472496fadf44d
.travis.yml
.travis.yml
YAML