commit stringlengths 40 40 | old_file stringlengths 4 237 | new_file stringlengths 4 237 | old_contents stringlengths 1 4.24k | new_contents stringlengths 5 4.84k | subject stringlengths 15 778 | message stringlengths 16 6.86k | lang stringlengths 1 30 | license stringclasses 13
values | repos stringlengths 5 116k | config stringlengths 1 30 | content stringlengths 105 8.72k |
|---|---|---|---|---|---|---|---|---|---|---|---|
58cdd9c7945fb3cf79f3afe874355a5063ebe9a4 | docs/guides/theme-directory.md | docs/guides/theme-directory.md |
* [Photorealistic Theme](https://github.com/yishn/sabaki-photorealistic-theme)
* [Subdued Theme](https://github.com/fohristiwhirl/sabaki_subdued_theme)
* [Walnut Theme](https://github.com/ParmuzinAlexander/sabaki-walnut-theme)
* [Light Wood Theme](https://github.com/ParmuzinAlexander/sabaki-light-wood-theme)
* [Shell ... |
* [Photorealistic Theme](https://github.com/yishn/sabaki-photorealistic-theme)
* [Subdued Theme](https://github.com/fohristiwhirl/sabaki_subdued_theme)
* [Walnut Theme](https://github.com/ParmuzinAlexander/sabaki-walnut-theme)
* [Light Wood Theme](https://github.com/ParmuzinAlexander/sabaki-light-wood-theme)
* [Shell ... | Add links to userstyle tutorial and theme packaging | Add links to userstyle tutorial and theme packaging
| Markdown | mit | yishn/Sabaki,yishn/Goban,yishn/Goban,yishn/Sabaki | markdown | ## Code Before:
* [Photorealistic Theme](https://github.com/yishn/sabaki-photorealistic-theme)
* [Subdued Theme](https://github.com/fohristiwhirl/sabaki_subdued_theme)
* [Walnut Theme](https://github.com/ParmuzinAlexander/sabaki-walnut-theme)
* [Light Wood Theme](https://github.com/ParmuzinAlexander/sabaki-light-wood-... |
f26a59aae33fd1afef919427e0c36e744cb904fc | test/test_normalizedString.py | test/test_normalizedString.py | from rdflib import *
import unittest
class test_normalisedString(unittest.TestCase):
def test1(self):
lit2 = Literal("\two\nw", datatype=XSD.normalizedString)
lit = Literal("\two\nw", datatype=XSD.string)
self.assertEqual(lit == lit2, False)
def test2(self):
lit = Literal("\tBe... | from rdflib import Literal
from rdflib.namespace import XSD
import unittest
class test_normalisedString(unittest.TestCase):
def test1(self):
lit2 = Literal("\two\nw", datatype=XSD.normalizedString)
lit = Literal("\two\nw", datatype=XSD.string)
self.assertEqual(lit == lit2, False)
def ... | Add a new test to test all chars that are getting replaced | Add a new test to test all chars that are getting replaced
| Python | bsd-3-clause | RDFLib/rdflib,RDFLib/rdflib,RDFLib/rdflib,RDFLib/rdflib | python | ## Code Before:
from rdflib import *
import unittest
class test_normalisedString(unittest.TestCase):
def test1(self):
lit2 = Literal("\two\nw", datatype=XSD.normalizedString)
lit = Literal("\two\nw", datatype=XSD.string)
self.assertEqual(lit == lit2, False)
def test2(self):
lit... |
b0cece6fda3e93f48cc26f0c7f806f4e616cd256 | init.rb | init.rb | require 'redmine'
Redmine::Plugin.register :redmine_pureftpd_user do
name 'Redmine Pureftpd User plugin'
author 'Author name'
description 'This is a plugin for Redmine'
version '0.0.1'
end
| require 'redmine'
Redmine::Plugin.register :redmine_pureftpd_user do
name 'Redmine Pureftpd User plugin'
author 'Bernd Ahlers'
description 'This plugin maintains a table with pureftpd compatible users.'
version '0.9'
end
| Add a description, my name and a version number. | Add a description, my name and a version number.
| Ruby | isc | bytemine/redmine_pureftpd_user | ruby | ## Code Before:
require 'redmine'
Redmine::Plugin.register :redmine_pureftpd_user do
name 'Redmine Pureftpd User plugin'
author 'Author name'
description 'This is a plugin for Redmine'
version '0.0.1'
end
## Instruction:
Add a description, my name and a version number.
## Code After:
require 'redmine'
Redmi... |
e1032761ed78ede17fd32f3353de3998d6389358 | src/main/java/net/sf/taverna/t2/activities/beanshell/servicedescriptions/BeanshellTemplateService.java | src/main/java/net/sf/taverna/t2/activities/beanshell/servicedescriptions/BeanshellTemplateService.java | package net.sf.taverna.t2.activities.beanshell.servicedescriptions;
import javax.swing.Icon;
import net.sf.taverna.t2.activities.beanshell.BeanshellActivity;
import net.sf.taverna.t2.activities.beanshell.BeanshellActivityConfigurationBean;
import net.sf.taverna.t2.servicedescriptions.AbstractTemplateService;
import n... | package net.sf.taverna.t2.activities.beanshell.servicedescriptions;
import java.net.URI;
import javax.swing.Icon;
import net.sf.taverna.t2.activities.beanshell.BeanshellActivity;
import net.sf.taverna.t2.activities.beanshell.BeanshellActivityConfigurationBean;
import net.sf.taverna.t2.servicedescriptions.AbstractTem... | Fix for T2-674: Hardcoded default locations. System default configurable providers are now read from a file in Taverna startup/conf directory. Failing that - they are read from a hard coded list. User can now import and export services from such files as well. | Fix for T2-674: Hardcoded default locations. System default configurable providers are now read from a file in Taverna startup/conf directory. Failing that - they are read from a hard coded list. User can now import and export services from such files as well.
git-svn-id: 2b4c7ad77658e4b3615e54128c4b6795c159dfbb@10041... | Java | apache-2.0 | apache/incubator-taverna-workbench-common-activities | java | ## Code Before:
package net.sf.taverna.t2.activities.beanshell.servicedescriptions;
import javax.swing.Icon;
import net.sf.taverna.t2.activities.beanshell.BeanshellActivity;
import net.sf.taverna.t2.activities.beanshell.BeanshellActivityConfigurationBean;
import net.sf.taverna.t2.servicedescriptions.AbstractTemplateS... |
c4eecfa74855552201015c24c284e15e2143ac2c | test/mactag/tag/gem_test.rb | test/mactag/tag/gem_test.rb | require 'test_helper'
class GemTest < ActiveSupport::TestCase
context "gem with version" do
setup do
@gem = Mactag::Tag::Gem.new("thinking-sphinx", :version => "1.0.0")
end
should "return the gem with that version" do
assert_contains @gem.files, File.join(Mactag::Config.gem_home, "thi... | require 'test_helper'
class GemTest < ActiveSupport::TestCase
context "gem with version" do
setup do
@gem = Mactag::Tag::Gem.new("thinking-sphinx", :version => "1.0.0")
end
should "return the gem with that version" do
assert_contains @gem.files, File.join(Mactag::Config.gem_home, "thi... | Test other cases aswell in gem tag test using stubs. | Test other cases aswell in gem tag test using stubs.
| Ruby | mit | rejeep/mactag | ruby | ## Code Before:
require 'test_helper'
class GemTest < ActiveSupport::TestCase
context "gem with version" do
setup do
@gem = Mactag::Tag::Gem.new("thinking-sphinx", :version => "1.0.0")
end
should "return the gem with that version" do
assert_contains @gem.files, File.join(Mactag::Confi... |
e1d7c7583d2eb6f54438431c9e3abe26e02d630f | lumify-web-war/src/main/webapp/js/util/withAsyncQueue.js | lumify-web-war/src/main/webapp/js/util/withAsyncQueue.js |
define([], function() {
'use strict';
return withAsyncQueue;
function withAsyncQueue() {
this.before('initialize', function() {
var self = this,
deferreds = {},
stacks = {};
this.setupAsyncQueue = function(name) {
var stac... |
define([], function() {
'use strict';
return withAsyncQueue;
function withAsyncQueue() {
this.before('initialize', function() {
var self = this,
deferreds = {},
stacks = {};
this.setupAsyncQueue = function(name) {
var stac... | Fix error from removed api after upgrading jquery | Fix error from removed api after upgrading jquery
| JavaScript | apache-2.0 | j-bernardo/lumify,RavenB/lumify,Steimel/lumify,TeamUDS/lumify,Steimel/lumify,RavenB/lumify,TeamUDS/lumify,dvdnglnd/lumify,lumifyio/lumify,bings/lumify,j-bernardo/lumify,lumifyio/lumify,j-bernardo/lumify,lumifyio/lumify,dvdnglnd/lumify,RavenB/lumify,Steimel/lumify,dvdnglnd/lumify,lumifyio/lumify,bings/lumify,bings/lumif... | javascript | ## Code Before:
define([], function() {
'use strict';
return withAsyncQueue;
function withAsyncQueue() {
this.before('initialize', function() {
var self = this,
deferreds = {},
stacks = {};
this.setupAsyncQueue = function(name) {
... |
e164bc4dbdd3fa7bf6275e634b0417254eaaad1c | Server/Java/httprpc-server-test/src/org/httprpc/test/testdata.html | Server/Java/httprpc-server-test/src/org/httprpc/test/testdata.html | <html>
<head>
<title>Test Data</title>
<style type="text/css" media="screen">
table {
border-collapse:collapse;
border:1px solid #000000;
}
td {
border:1px solid #000000;
}
</style>
</head>
<body>
<table>
<tr>
<td>{{@a}}</td>
<td>{{@b}}</td>
<td>{{@c}}</td>
</tr>
{{#.}}<tr>
<td>{{a:test=lower:^html}}</td>
<... | <html>
<head>
<title>Test Data</title>
<style type="text/css" media="screen">
table {
border-collapse:collapse;
border:1px solid #000000;
}
td {
border:1px solid #000000;
}
</style>
</head>
<body>
<p>UTF-8 characters: åéîóü</p>
<table>
<tr>
<td>{{@a}}</td>
<td>{{@b}}</td>
<td>{{@c}}</td>
</tr>
{{#.}}<tr>
<t... | Add UTF-8 characters to test template. | Add UTF-8 characters to test template.
| HTML | apache-2.0 | gk-brown/HTTP-RPC,gk-brown/WebRPC,gk-brown/WebRPC,gk-brown/WebRPC,gk-brown/HTTP-RPC,gk-brown/WebRPC,gk-brown/WebRPC,gk-brown/WebRPC,gk-brown/HTTP-RPC | html | ## Code Before:
<html>
<head>
<title>Test Data</title>
<style type="text/css" media="screen">
table {
border-collapse:collapse;
border:1px solid #000000;
}
td {
border:1px solid #000000;
}
</style>
</head>
<body>
<table>
<tr>
<td>{{@a}}</td>
<td>{{@b}}</td>
<td>{{@c}}</td>
</tr>
{{#.}}<tr>
<td>{{a:test=lowe... |
4103880c2f45da04bd05d94c1f3e3fbedd8f9c44 | Bundle/TemplateBundle/Resources/views/Template/index.html.twig | Bundle/TemplateBundle/Resources/views/Template/index.html.twig | {% extends 'VictoireCoreBundle::_modal.html.twig' %}
{% trans_default_domain "victoire" %}
{% block modal_container_classes %}{{ parent() }} vic-view-modal{% endblock modal_container_classes %}
{% block modal_header_title %}
{{'index.template.modal.header'|trans({}, 'victoire')}}
{% endblock modal_header_title %}
... | {% extends 'VictoireCoreBundle::_modal.html.twig' %}
{% trans_default_domain "victoire" %}
{% block modal_container_classes %}{{ parent() }} vic-view-modal{% endblock modal_container_classes %}
{% block modal_header_title %}
{{'index.template.modal.header'|trans({}, 'victoire')}}
{% endblock modal_header_title %}
... | Use Template backendName if set in Template modal list | Use Template backendName if set in Template modal list
| Twig | mit | gregumo/victoire,lenybernard/victoire,Victoire/victoire,Victoire/victoire,alexislefebvre/victoire,gregumo/victoire,MadeWilson/victoire,lenybernard/victoire,talbotseb/victoire,MadeWilson/victoire,alexislefebvre/victoire,MadeWilson/victoire,Victoire/victoire,lenybernard/victoire,gregumo/victoire,MadeWilson/victoire,talbo... | twig | ## Code Before:
{% extends 'VictoireCoreBundle::_modal.html.twig' %}
{% trans_default_domain "victoire" %}
{% block modal_container_classes %}{{ parent() }} vic-view-modal{% endblock modal_container_classes %}
{% block modal_header_title %}
{{'index.template.modal.header'|trans({}, 'victoire')}}
{% endblock modal_... |
28fa291792423021e81165e564f53f979ee9912a | sling-images/pom.xml | sling-images/pom.xml | <?xml version="1.0" encoding="UTF-8"?>
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>ch.x42.at16</gr... | <?xml version="1.0" encoding="UTF-8"?>
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>ch.x42.at16</gr... | Add worker selector module to reactor | Add worker selector module to reactor
| XML | apache-2.0 | bdelacretaz/sling-adaptto-2016,bdelacretaz/sling-adaptto-2016 | xml | ## Code Before:
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId... |
8e4fbf59e00475f90dbf7d096550fa906db88370 | src/fetch-feed.js | src/fetch-feed.js | var util = require('./util');
module.exports = function fetchFeed(delegate) {
// delegate.url: a url string
// delegate.verbose: a bool
// delegate.onError: an error handler
// delegate.onResponse: a response and data handler
var request = util.request(delegate.url);
request.on('error', function(e) {
... | var util = require('./util');
module.exports = function fetchFeed(delegate) {
// delegate.url: a url string
// delegate.verbose: a bool
// delegate.onError: an error handler
// delegate.onResponse: a response and data handler
var request = util.request(delegate.url);
request.on('error', function(e) {
... | Convert non-200 fetch responses into errors | Convert non-200 fetch responses into errors
| JavaScript | mit | hlfcoding/custom-rss | javascript | ## Code Before:
var util = require('./util');
module.exports = function fetchFeed(delegate) {
// delegate.url: a url string
// delegate.verbose: a bool
// delegate.onError: an error handler
// delegate.onResponse: a response and data handler
var request = util.request(delegate.url);
request.on('error', f... |
40154b300bdd25e6b305b3c422fd3bc7b80623d9 | gems/bin/run-yard.rb | gems/bin/run-yard.rb | def force_require(gem_name, version)
begin
gem gem_name, version
rescue Gem::LoadError=> e
puts "Installing #{gem_name} gem v#{version}"
require 'rubygems/commands/install_command'
installer = Gem::Commands::InstallCommand.new
installer.options[:args] = [ gem_name ]
installer.options[:versio... | def force_require(gem_name, version)
begin
gem gem_name, version
rescue Gem::LoadError=> e
puts "Installing #{gem_name} gem v#{version}"
require 'rubygems/commands/install_command'
installer = Gem::Commands::InstallCommand.new
installer.options[:args] = [ gem_name ]
installer.options[:versio... | Upgrade yard and exclude a couple of files to try and get CI building rdocs again | Upgrade yard and exclude a couple of files to try and get CI building rdocs again
| Ruby | apache-2.0 | vaskoz/torquebox,samwgoldman/torquebox,torquebox/torquebox-release,torquebox/torquebox,ksw2599/torquebox,vaskoz/torquebox,torquebox/torquebox-release,torquebox/torquebox-release,torquebox/torquebox-release,samwgoldman/torquebox,torquebox/torquebox,vaskoz/torquebox,ksw2599/torquebox,mje113/torquebox,mje113/torquebox,ksw... | ruby | ## Code Before:
def force_require(gem_name, version)
begin
gem gem_name, version
rescue Gem::LoadError=> e
puts "Installing #{gem_name} gem v#{version}"
require 'rubygems/commands/install_command'
installer = Gem::Commands::InstallCommand.new
installer.options[:args] = [ gem_name ]
installer... |
fe7e9727fc008755bc7631073d9faeeab17b020e | config/routes.rb | config/routes.rb | require 'sidekiq/web'
if ENV['SIDEKIQ_USERNAME'] && ENV['SIDEKIQ_PASSWORD']
Sidekiq::Web.use Rack::Auth::Basic do |username, password|
username == ENV['SIDEKIQ_USERNAME'] && password == ENV['SIDEKIQ_PASSWORD']
end
end
Rails.application.routes.draw do
root 'appointment_summaries#new'
resources :appointmen... | require 'sidekiq/api'
require 'sidekiq/web'
Sidekiq::Web.get '/rag' do
stats = Sidekiq::Stats.new
content_type :json
{ item: [{ value: stats.failed, text: 'Failed' },
{ value: stats.enqueued, text: 'Enqueued' },
{ value: stats.processed, text: 'Processed' }] }.to_json
end
if ENV['SIDEKIQ... | Add Red Amber Green stats to Sidekiq endpoint | Add Red Amber Green stats to Sidekiq endpoint | Ruby | mit | guidance-guarantee-programme/output,guidance-guarantee-programme/output,guidance-guarantee-programme/output | ruby | ## Code Before:
require 'sidekiq/web'
if ENV['SIDEKIQ_USERNAME'] && ENV['SIDEKIQ_PASSWORD']
Sidekiq::Web.use Rack::Auth::Basic do |username, password|
username == ENV['SIDEKIQ_USERNAME'] && password == ENV['SIDEKIQ_PASSWORD']
end
end
Rails.application.routes.draw do
root 'appointment_summaries#new'
resou... |
1ed6b53f436690f4e2e17185c6ab39873008f82b | i18n-spec.gemspec | i18n-spec.gemspec | require_relative "lib/i18n-spec/version"
Gem::Specification.new do |s|
s.name = "i18n-spec"
s.version = I18nSpec::VERSION
s.required_ruby_version = ">= 2.3.0"
s.require_paths = ["lib"]
s.authors = ["Christopher Dell"]
s.date = "2014-10-27"
s.description = "Includes a number of rspec matchers to make spe... | require_relative "lib/i18n-spec/version"
Gem::Specification.new do |s|
s.name = "i18n-spec"
s.version = I18nSpec::VERSION
s.required_ruby_version = ">= 2.3.0"
s.require_paths = ["lib"]
s.authors = ["Christopher Dell"]
s.description = "Includes a number of rspec matchers to make specing your locale files e... | Remove date attribute from gemspec | Remove date attribute from gemspec
`bundle gem` does not generate this attribute by default, I don't
think it provides much value, and it's yet one more thing to keep up to
date when releasing.
| Ruby | mit | tigrish/i18n-spec | ruby | ## Code Before:
require_relative "lib/i18n-spec/version"
Gem::Specification.new do |s|
s.name = "i18n-spec"
s.version = I18nSpec::VERSION
s.required_ruby_version = ">= 2.3.0"
s.require_paths = ["lib"]
s.authors = ["Christopher Dell"]
s.date = "2014-10-27"
s.description = "Includes a number of rspec matc... |
431a1fab4a7b380163e0ed32063994eabc19a2ff | src/main/resources/css/mockmock.css | src/main/resources/css/mockmock.css | body {
padding-top: 60px;
}
small.deleteLink {
font-size: 12px;
} | body {
padding-top: 60px;
}
small.deleteLink {
font-size: 12px;
}
div[name=bodyPlainText] div.well, div[name=rawOutput] div.well, div[name=bodyHTML_Unformatted] div.well {
white-space: pre-line;
} | Use css rule "white-space: pre-line" for stuff where new lines matter | Use css rule "white-space: pre-line" for stuff where new lines matter
| CSS | apache-2.0 | tweakers-dev/MockMock,tweakers-dev/MockMock,tweakers-dev/MockMock | css | ## Code Before:
body {
padding-top: 60px;
}
small.deleteLink {
font-size: 12px;
}
## Instruction:
Use css rule "white-space: pre-line" for stuff where new lines matter
## Code After:
body {
padding-top: 60px;
}
small.deleteLink {
font-size: 12px;
}
div[name=bodyPlainText] div.well, div[name=rawOutpu... |
56f7db8a5162f45a7a00fa5ad974027345faed89 | spec/controllers/pages_controller_spec.rb | spec/controllers/pages_controller_spec.rb | require 'spec_helper'
describe PagesController, "GET to #opensearch", type: :controller do
context 'when asked for XML file' do
render_views
before(:each) do
get :opensearch, format: 'xml'
end
it { should respond_with(:success) }
it 'renders OpenSearch file successfully' do
expect(r... | require 'spec_helper'
describe PagesController, "GET to #opensearch", type: :controller do
context 'when asked for XML file' do
render_views
before(:each) do
get :opensearch, format: 'xml'
end
it { should respond_with(:success) }
it 'renders OpenSearch file successfully' do
expect(r... | Remove pending specs as Rails 4 raises ActionController::UnknownFormat | Remove pending specs as Rails 4 raises ActionController::UnknownFormat
| Ruby | mit | bitzesty/trade-tariff-frontend,alphagov/trade-tariff-frontend,alphagov/trade-tariff-frontend,bitzesty/trade-tariff-frontend,alphagov/trade-tariff-frontend,bitzesty/trade-tariff-frontend,alphagov/trade-tariff-frontend,bitzesty/trade-tariff-frontend | ruby | ## Code Before:
require 'spec_helper'
describe PagesController, "GET to #opensearch", type: :controller do
context 'when asked for XML file' do
render_views
before(:each) do
get :opensearch, format: 'xml'
end
it { should respond_with(:success) }
it 'renders OpenSearch file successfully' d... |
21f18eb3221dcb26c41bd7ae3ec946aaabff3e33 | templates/system/modules/validate-site/themes/base/js/validationbox.js | templates/system/modules/validate-site/themes/base/js/validationbox.js | /*
* Author: Pierre-Henry Soria <hello@ph7cms.com>
* Copyright: (c) 2015-2016, Pierre-Henry Soria. All Rights Reserved.
* License: GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
*/
var $validationBox = (function() {
$.get(pH7Url.base + 'validate-si... | /*
* Author: Pierre-Henry Soria <hello@ph7cms.com>
* Copyright: (c) 2015-2016, Pierre-Henry Soria. All Rights Reserved.
* License: GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
*/
var $validationBox = (function() {
$.get(pH7Url.base + 'validate-si... | Fix Validate Site popup when open on mobile phones | Fix Validate Site popup when open on mobile phones
| JavaScript | mit | pH7Software/pH7-Social-Dating-CMS,pH7Software/pH7-Social-Dating-CMS,pH7Software/pH7-Social-Dating-CMS,pH7Software/pH7-Social-Dating-CMS | javascript | ## Code Before:
/*
* Author: Pierre-Henry Soria <hello@ph7cms.com>
* Copyright: (c) 2015-2016, Pierre-Henry Soria. All Rights Reserved.
* License: GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
*/
var $validationBox = (function() {
$.get(pH7Url.bas... |
880d409e8dfda9ec261c639b7aea6bcc10cdcde2 | spec/dummy/app/controllers/application_controller.rb | spec/dummy/app/controllers/application_controller.rb | class ApplicationController < ActionController::Base
protect_from_forgery
end
| class ApplicationController < ActionController::Base
protect_from_forgery
def sign_in_path
'/sign_in'
end
end
| Define sign_in_path in ApplicationController for dummy application | Define sign_in_path in ApplicationController for dummy application
| Ruby | mit | frankel/forem,szymon-przybyl/forem,szymon-przybyl/forem,dmitry-ilyashevich/forem,dmitry-ilyashevich/forem,frankel/forem,caffo/forem,filiptepper/forem,STRd6/forem,isotope11/forem,isotope11/forem,STRd6/forem,substantial/forem,nruth/forem,filiptepper/forem,substantial/forem,nruth/forem,caffo/forem | ruby | ## Code Before:
class ApplicationController < ActionController::Base
protect_from_forgery
end
## Instruction:
Define sign_in_path in ApplicationController for dummy application
## Code After:
class ApplicationController < ActionController::Base
protect_from_forgery
def sign_in_path
'/sign_in'
end
end
|
37defc0098b57384475e87c029e7fd765b1211c2 | app/workers/extract_extension_basic_metadata_worker.rb | app/workers/extract_extension_basic_metadata_worker.rb | class ExtractExtensionBasicMetadataWorker
include Sidekiq::Worker
def perform(extension_id)
@extension = Extension.find(extension_id)
repo = octokit.repo(@extension.github_repo)
@extension.update_attributes(
extension_followers_count: repo[:stargazers_count],
issues_url: "https://github.co... | class ExtractExtensionBasicMetadataWorker
include Sidekiq::Worker
def perform(extension_id)
@extension = Extension.find(extension_id)
repo = octokit.repo(@extension.github_repo)
Extension.where(id: @extension.id).update_all(
extension_followers_count: repo[:stargazers_count],
issues_url: "... | Use update_all to get around readonly counter cache | Use update_all to get around readonly counter cache
| Ruby | apache-2.0 | ManageIQ/depot.manageiq.org,ManageIQ/depot.manageiq.org,ManageIQ/depot.manageiq.org,ManageIQ/depot.manageiq.org | ruby | ## Code Before:
class ExtractExtensionBasicMetadataWorker
include Sidekiq::Worker
def perform(extension_id)
@extension = Extension.find(extension_id)
repo = octokit.repo(@extension.github_repo)
@extension.update_attributes(
extension_followers_count: repo[:stargazers_count],
issues_url: "h... |
5b6f3ac716e37b9d03bff3da826dca24826b24eb | jasmine/spec/inverted-index-test.js | jasmine/spec/inverted-index-test.js | describe ("Read book data",function(){
it("assert JSON file is not empty",function(){
var isNotEmpty = function IsJsonString(filePath) {
try {
JSON.parse(filePath);
} catch (e) {
return false;
}
return true;
};
expect(isNotEmpty).toBe(true).because('The JSON file sh... | describe("Read book data", function() {
beforeEach(function(){
var file = filePath.files[0];
var reader = new FileReader();
});
it("assert JSON file is not empty",function(){
var fileNotEmpty = JSON.parse(reader.result);
var fileNotEmptyResult = function(fileNotEmpty){
if (fileNotEmpty = null){
r... | Change the read book test and populate index test | Change the read book test and populate index test
| JavaScript | mit | andela-pbirir/inverted-index,andela-pbirir/inverted-index | javascript | ## Code Before:
describe ("Read book data",function(){
it("assert JSON file is not empty",function(){
var isNotEmpty = function IsJsonString(filePath) {
try {
JSON.parse(filePath);
} catch (e) {
return false;
}
return true;
};
expect(isNotEmpty).toBe(true).because('... |
f1b70e31f0c34ecb91091b58480478e4ac4560d7 | src/DayModel.js | src/DayModel.js | import Utils from './utils';
import {DateOnly} from './util/time';
import TaskModel from './TaskModel';
export default class DayModel {
constructor(tasks, id = Utils.guid(), date = DateOnly()) {
this.tasks = tasks;
this.id = id;
this.date = date;
}
} | import Utils from './utils';
import {DateOnly} from './util/time';
import TaskModel from './TaskModel';
export default class DayModel {
constructor(tasks, date = DateOnly(), id = Utils.guid()) {
this.tasks = tasks;
this.date = date;
this.id = id;
}
} | Change order of parameters Seems more common to need a dayModel with items and date with unknown id | Change order of parameters
Seems more common to need a dayModel with items and date with unknown id
| JavaScript | mit | corragon/six,corragon/six,corragon/six | javascript | ## Code Before:
import Utils from './utils';
import {DateOnly} from './util/time';
import TaskModel from './TaskModel';
export default class DayModel {
constructor(tasks, id = Utils.guid(), date = DateOnly()) {
this.tasks = tasks;
this.id = id;
this.date = date;
}
}
## Instruction:
Change order of param... |
9727c374b7d5e0d83aa8afbda1ba98696e92d425 | server-ce/README.md | server-ce/README.md | Please see the [offical wiki for install guides](https://github.com/sharelatex/sharelatex/wiki/Production-Installation-Instructions) |
This is the source for building the sharelatex community-edition docker image.
## End-User Install
Please see the [offical wiki for install
guides](https://github.com/sharelatex/sharelatex/wiki/Production-Installation-Instructions)
## Development
This repo contains two dockerfiles, `Dockerfile-base`, which builds... | Update the readme with a short explanation of how this code works | Update the readme with a short explanation of how this code works
| Markdown | agpl-3.0 | sharelatex/sharelatex | markdown | ## Code Before:
Please see the [offical wiki for install guides](https://github.com/sharelatex/sharelatex/wiki/Production-Installation-Instructions)
## Instruction:
Update the readme with a short explanation of how this code works
## Code After:
This is the source for building the sharelatex community-edition docker ... |
e00251822780642d83848a23d4217b5a90054e80 | edu.kit.ipd.sdq.vitruvius.applications.pcmjava.linkingintegration/src/edu/kit/ipd/sdq/vitruvius/applications/pcmjava/linkingintegration/CorrespondenceTypeDeciding.java | edu.kit.ipd.sdq.vitruvius.applications.pcmjava.linkingintegration/src/edu/kit/ipd/sdq/vitruvius/applications/pcmjava/linkingintegration/CorrespondenceTypeDeciding.java | package edu.kit.ipd.sdq.vitruvius.applications.pcmjava.linkingintegration;
import java.util.List;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.resource.Resource;
import edu.kit.ipd.sdq.vitruvius.framework.correspondence.CorrespondenceModel;
public interface CorrespondenceTypeDeciding {
St... | package edu.kit.ipd.sdq.vitruvius.applications.pcmjava.linkingintegration;
import java.util.List;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.resource.Resource;
import edu.kit.ipd.sdq.vitruvius.framework.correspondence.CorrespondenceModel;
public interface CorrespondenceTypeDeciding {
St... | Fix a bug in the correspondencetypedeciding extension point reference. | Fix a bug in the correspondencetypedeciding extension point reference.
| Java | epl-1.0 | vitruv-tools/Vitruv | java | ## Code Before:
package edu.kit.ipd.sdq.vitruvius.applications.pcmjava.linkingintegration;
import java.util.List;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.resource.Resource;
import edu.kit.ipd.sdq.vitruvius.framework.correspondence.CorrespondenceModel;
public interface CorrespondenceTypeDe... |
472327c26d4f7480610dd37815b130701df5fe28 | mkdocs.yml | mkdocs.yml | site_name: Elegant Git
site_url:
site_description:
site_author: Dmytro Serdiuk
repo_url: https://github.com/bees-hive/elegant-git
theme: readthedocs
nav:
- Home: index.md
- Getting started: getting-started.md
- Commands: commands.md
- License: licence.md
copyright: Copyright © 2019 <a href="https://extsof... | site_name: Elegant Git
site_url:
site_description:
site_author: Dmytro Serdiuk
repo_url: https://github.com/bees-hive/elegant-git
theme: readthedocs
nav:
- Home: index.md
- Getting started: getting-started.md
- Commands: commands.md
- Release notes: https://github.com/bees-hive/elegant-git/releases
- License:... | Add a link to the release notes | Add a link to the release notes
Since we track all releases on the GitHub, it's good to redirect a user
to the releases page in the case of some interest.
| YAML | apache-2.0 | extsoft/elegant-git | yaml | ## Code Before:
site_name: Elegant Git
site_url:
site_description:
site_author: Dmytro Serdiuk
repo_url: https://github.com/bees-hive/elegant-git
theme: readthedocs
nav:
- Home: index.md
- Getting started: getting-started.md
- Commands: commands.md
- License: licence.md
copyright: Copyright © 2019 <a href... |
13662ca329348098106a051468e0051c7af49835 | app/src/controllers/wallet/pairing/wallet_pairing_progress_dialog_view_controller.coffee | app/src/controllers/wallet/pairing/wallet_pairing_progress_dialog_view_controller.coffee | class @WalletPairingProgressDialogViewController extends DialogViewController
view:
contentContainer: "#content_container"
onAfterRender: ->
super
# launch request
@_request = @params.request
@_request?.onComplete (screen, error) =>
@_request = null
if screen?
dialog = new ... | class @WalletPairingProgressDialogViewController extends DialogViewController
view:
contentContainer: "#content_container"
onAfterRender: ->
super
# launch request
@_request = @params.request
@_request?.onComplete (screen, error) =>
@_request = null
@dismiss () =>
if screen... | Fix "don't dismiss pairing progress dialog when displaying success" | Fix "don't dismiss pairing progress dialog when displaying success"
| CoffeeScript | mit | LedgerHQ/ledger-wallet-chrome,Morveus/ledger-wallet-doge-chrome,Morveus/ledger-wallet-doge-chrome,LedgerHQ/ledger-wallet-chrome | coffeescript | ## Code Before:
class @WalletPairingProgressDialogViewController extends DialogViewController
view:
contentContainer: "#content_container"
onAfterRender: ->
super
# launch request
@_request = @params.request
@_request?.onComplete (screen, error) =>
@_request = null
if screen?
... |
f20b984aa6bffeaccdd9b789fc543c93f20271f9 | protocols/groupwise/libgroupwise/tasks/getdetailstask.h | protocols/groupwise/libgroupwise/tasks/getdetailstask.h | //
// C++ Interface: getdetailstask
//
// Description:
//
//
// Author: SUSE AG <>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef GETDETAILSTASK_H
#define GETDETAILSTASK_H
#include "gwerror.h"
#include "requesttask.h"
/**
This task fetches the details for a set of user ID... | //
// C++ Interface: getdetailstask
//
// Description:
//
//
// Author: SUSE AG <>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef GETDETAILSTASK_H
#define GETDETAILSTASK_H
#include "gwerror.h"
#include "requesttask.h"
/**
This task fetches the details for a set of user ID... | Fix broken signal connection CVS_SILENT | Fix broken signal connection
CVS_SILENT
svn path=/branches/groupwise_in_anger/kdenetwork/kopete/; revision=344030
| C | lgpl-2.1 | josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,josh-wambua/kopete | c | ## Code Before:
//
// C++ Interface: getdetailstask
//
// Description:
//
//
// Author: SUSE AG <>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef GETDETAILSTASK_H
#define GETDETAILSTASK_H
#include "gwerror.h"
#include "requesttask.h"
/**
This task fetches the details for ... |
ba5ec5ff19bca265fa0234ee9aa9a796fca28c3e | app/controllers/mains_controller.rb | app/controllers/mains_controller.rb | class MainsController < ApplicationController
def index
@albums = Album.all
@images = Image.all
@contact = Contact.new
@projects = Album.order("created_at DESC")
end
def create
@contact = Contact.new(params[:contact])
@contact.request = request
if @contact.deliver
flash.now[:success] = "The email h... | class MainsController < ApplicationController
include SendGrid
def index
@albums = Album.all
@images = Image.all
@contact = Contact.new
@projects = Album.order("created_at DESC")
end
def create
from = Email.new(email: params[:contact]["email"])
subject = 'From FineHomeLiving.com'
to = Email.new(ema... | Refactor code to test mailing errors | Refactor code to test mailing errors
| Ruby | mit | solibl/FineHomeLiving,solibl/FineHomeLiving,solibl/FineHomeLiving | ruby | ## Code Before:
class MainsController < ApplicationController
def index
@albums = Album.all
@images = Image.all
@contact = Contact.new
@projects = Album.order("created_at DESC")
end
def create
@contact = Contact.new(params[:contact])
@contact.request = request
if @contact.deliver
flash.now[:success... |
8b3ccf7e2a47d2382ed8ed14cf893fb84e7e3c38 | avroDecoder.go | avroDecoder.go | package tailtopic
import (
avro "github.com/elodina/go-avro"
kavro "github.com/elodina/go-kafka-avro"
)
type avroSchemaRegistryDecoder struct {
decoder *kavro.KafkaAvroDecoder
}
func newAvroDecoder(schemaregURI string) decoder {
return &avroSchemaRegistryDecoder{kavro.NewKafkaAvroDecoder(schemaregURI)}
}
func (... | package tailtopic
import (
avro "github.com/dejan/go-avro"
kavro "github.com/dejan/go-kafka-avro"
)
type avroSchemaRegistryDecoder struct {
decoder *kavro.KafkaAvroDecoder
}
func newAvroDecoder(schemaregURI string) decoder {
return &avroSchemaRegistryDecoder{kavro.NewKafkaAvroDecoder(schemaregURI)}
}
func (sr *... | Use my forks until NS fix is merged upstream | Use my forks until NS fix is merged upstream
| Go | mit | dejan/tailtopic | go | ## Code Before:
package tailtopic
import (
avro "github.com/elodina/go-avro"
kavro "github.com/elodina/go-kafka-avro"
)
type avroSchemaRegistryDecoder struct {
decoder *kavro.KafkaAvroDecoder
}
func newAvroDecoder(schemaregURI string) decoder {
return &avroSchemaRegistryDecoder{kavro.NewKafkaAvroDecoder(schemare... |
607f483f4e32006cc821c99dc26996064ece469e | scripts/create-cf-release.sh | scripts/create-cf-release.sh | pushd $CF_RELEASE_DIR/releases
version=$(ls cf-* | sort | tail -1 | sed "s/cf\-\(.*\)\.yml/\1/").0.0+dev.$(date +%s)
popd
echo $version > $VERSION_FILE
cd $CF_RELEASE_DIR
bosh -n --parallel 10 sync blobs
bosh create release --force --name cf --with-tarball --version $version
mv dev_releases/cf/cf-*.tgz ../releases/... | pushd $CF_RELEASE_DIR/releases
version=$(ls cf-* | sort | tail -1 | sed "s/cf\-\(.*\)\.yml/\1/").0.0+dev.$(date +"%Y-%m-%d.%H-%M-%S").$(git rev-parse HEAD | cut -c1-7)
popd
echo $version > $VERSION_FILE
cd $CF_RELEASE_DIR
bosh -n --parallel 10 sync blobs
bosh create release --force --name cf --with-tarball --versio... | Make cf-release versions more descriptive | Make cf-release versions more descriptive
Having a cf-release version of the form <latest_final_release_version>.0.0+dev.<date>.<time>.<commit_sha> should help understand what's in a release and when it was built.
| Shell | apache-2.0 | cloudfoundry-incubator/bits-service-ci,cloudfoundry-incubator/bits-service-ci,cloudfoundry-incubator/bits-service-ci | shell | ## Code Before:
pushd $CF_RELEASE_DIR/releases
version=$(ls cf-* | sort | tail -1 | sed "s/cf\-\(.*\)\.yml/\1/").0.0+dev.$(date +%s)
popd
echo $version > $VERSION_FILE
cd $CF_RELEASE_DIR
bosh -n --parallel 10 sync blobs
bosh create release --force --name cf --with-tarball --version $version
mv dev_releases/cf/cf-*.... |
9bc9232f2b2b95b7031afe3b0a8ec12f9d77384a | setup.py | setup.py | from setuptools import setup
setup(name='biosignal',
version='0.0.1',
description='',
url='http://github.com/EmlynC/python-biosignal',
author='Emlyn Clay',
author_email='eclay101@gmail.com',
license='MIT',
packages=['biosignal'],
zip_safe=False) | from setuptools import setup
setup(name='biosignal',
version='0.0.2',
description="""A library for processing and analysing physiological
signals such as ECG, BP, EMG, EEG, Pulse and Sp02""",
url='http://github.com/EmlynC/python-biosignal',
author='Emlyn Clay',
author_email='eclay10... | Add a description for PyPI | Add a description for PyPI
| Python | mit | EmlynC/python-biosignal | python | ## Code Before:
from setuptools import setup
setup(name='biosignal',
version='0.0.1',
description='',
url='http://github.com/EmlynC/python-biosignal',
author='Emlyn Clay',
author_email='eclay101@gmail.com',
license='MIT',
packages=['biosignal'],
zip_safe=False)
## Instru... |
65194f4b24fa587e3c7eb5e25c09239653f3410d | features/ec2/ec2.feature | features/ec2/ec2.feature | @ec2
Feature: Amazon Elastic Compute Cloud
I want to use Amazon Elastic Compute Cloud
Scenario: DescribeRegions
Given I describe EC2 regions "us-east-1, us-west-1"
Then the EC2 endpoint for "us-east-1" should be "ec2.us-east-1.amazonaws.com"
And the EC2 endpoint for "us-west-1" should be "ec2.us-west-... | @ec2
Feature: Amazon Elastic Compute Cloud
I want to use Amazon Elastic Compute Cloud
Scenario: DescribeRegions
Given I describe EC2 regions "us-east-1, us-west-1"
Then the EC2 endpoint for "us-east-1" should be "ec2.us-east-1.amazonaws.com"
And the EC2 endpoint for "us-west-1" should be "ec2.us-west-... | Fix failing EC2 integration test due to service changes | Fix failing EC2 integration test due to service changes
| Cucumber | apache-2.0 | guymguym/aws-sdk-js,misfitdavidl/aws-sdk-js,jippeholwerda/aws-sdk-js,Blufe/aws-sdk-js,aws/aws-sdk-js,grimurjonsson/aws-sdk-js,ugie/aws-sdk-js,michael-donat/aws-sdk-js,aws/aws-sdk-js,beni55/aws-sdk-js,jippeholwerda/aws-sdk-js,Blufe/aws-sdk-js,j3tm0t0/aws-sdk-js,michael-donat/aws-sdk-js,j3tm0t0/aws-sdk-js,GlideMe/aws-sdk... | cucumber | ## Code Before:
@ec2
Feature: Amazon Elastic Compute Cloud
I want to use Amazon Elastic Compute Cloud
Scenario: DescribeRegions
Given I describe EC2 regions "us-east-1, us-west-1"
Then the EC2 endpoint for "us-east-1" should be "ec2.us-east-1.amazonaws.com"
And the EC2 endpoint for "us-west-1" should ... |
da08615c6afef08614cecec43095dd0b9bf0cc42 | Casks/telegram.rb | Casks/telegram.rb | cask 'telegram' do
version '2.16-47508'
sha256 '5ffbd2f76054fc47aafa6f2596ef9c6a85a69412a3a1f227f789b1832e7518d5'
# telegram.org was verified as official when first introduced to the cask
url "https://osx.telegram.org/updates/Telegram-#{version}.app.zip"
appcast 'http://osx.telegram.org/updates/versions.xml'... | cask 'telegram' do
version '2.16-47508'
sha256 '5ffbd2f76054fc47aafa6f2596ef9c6a85a69412a3a1f227f789b1832e7518d5'
url "https://osx.telegram.org/updates/Telegram-#{version}.app.zip"
appcast 'http://osx.telegram.org/updates/versions.xml',
checkpoint: '07caec5ebbe1b7081cb2e873cb5321d6f736b6ecbe7421968ba... | Fix `url` stanza comment for Telegram for macOS. | Fix `url` stanza comment for Telegram for macOS.
| Ruby | bsd-2-clause | optikfluffel/homebrew-cask,sscotth/homebrew-cask,lukasbestle/homebrew-cask,michelegera/homebrew-cask,winkelsdorf/homebrew-cask,malford/homebrew-cask,jconley/homebrew-cask,xight/homebrew-cask,jawshooah/homebrew-cask,nshemonsky/homebrew-cask,alebcay/homebrew-cask,FredLackeyOfficial/homebrew-cask,opsdev-ws/homebrew-cask,y... | ruby | ## Code Before:
cask 'telegram' do
version '2.16-47508'
sha256 '5ffbd2f76054fc47aafa6f2596ef9c6a85a69412a3a1f227f789b1832e7518d5'
# telegram.org was verified as official when first introduced to the cask
url "https://osx.telegram.org/updates/Telegram-#{version}.app.zip"
appcast 'http://osx.telegram.org/updat... |
34bf8d82580b83b1e0409db8636877a22203996b | cryptex/trade.py | cryptex/trade.py | class Trade(object):
BUY = 0
SELL = 1
def __init__(self, trade_id, trade_type, base_currency, counter_currency,
time, order_id, amount, price, fee=None):
self.trade_id = trade_id
self.trade_type = trade_type
self.base_currency = base_currency
self.counter_currency = c... | class Trade(object):
BUY = 0
SELL = 1
def __init__(self, trade_id, trade_type, base_currency, counter_currency,
time, order_id, amount, price, fee=None):
self.trade_id = trade_id
self.trade_type = trade_type
self.base_currency = base_currency
self.counter_currency = c... | Remove magic number check in Trade str method | Remove magic number check in Trade str method
| Python | mit | coink/cryptex | python | ## Code Before:
class Trade(object):
BUY = 0
SELL = 1
def __init__(self, trade_id, trade_type, base_currency, counter_currency,
time, order_id, amount, price, fee=None):
self.trade_id = trade_id
self.trade_type = trade_type
self.base_currency = base_currency
self.coun... |
18d460dda5125651e98adf349cef2469a6933a77 | index.js | index.js | const Telegraf = require('telegraf');
const bot = new Telegraf(process.env.BOT_TOKEN);
function repeatIt(messageText = '') {
const timesPosition = messageText.indexOf(' ');
const times = messageText.substring(0, timesPosition);
const text = messageText.substring(timesPosition);
let answer = '';
for (let i =... | const Telegraf = require('telegraf');
const BOT_TOKEN = process.env.BOT_TOKEN || '';
const PORT = process.env.PORT || 3000;
const URL = process.env.URL || '';
const bot = new Telegraf(BOT_TOKEN);
bot.telegram.setWebhook(`${URL}/bot${BOT_TOKEN}`);
bot.startWebhook(`/bot${BOT_TOKEN}`, null, PORT);
function repeatIt(me... | Use webhooks and ready for heroku! | Use webhooks and ready for heroku!
| JavaScript | mit | newvertex/repeatitbot | javascript | ## Code Before:
const Telegraf = require('telegraf');
const bot = new Telegraf(process.env.BOT_TOKEN);
function repeatIt(messageText = '') {
const timesPosition = messageText.indexOf(' ');
const times = messageText.substring(0, timesPosition);
const text = messageText.substring(timesPosition);
let answer = ''... |
bb67f3e640c4e5413b1f652b01b05e7d24a49d37 | layouts/partials/footer.html | layouts/partials/footer.html | <footer class="white pa3">
<div class="footer-section">
<div>Multiformats was started and is sponsored by</div>
<a href="https://protocol.ai/">
<img id="footer-logo" src="/protocol-labs-logo.png">
</a>
</div>
<div class="footer-section right">
<nav>
<a href="#multiformat-protocols" cla... | <footer class="white pa3">
<div class="footer-section">
<div>Multiformats was started and is sponsored by</div>
<a href="https://protocol.ai/">
<img id="footer-logo" src="/protocol-labs-logo.png">
</a>
</div>
<div class="footer-section right">
<nav>
<a href="#multiformat-protocols" cla... | Revert "Allow to edit pages" | Revert "Allow to edit pages"
| HTML | mit | multiformats/website,multiformats/website | html | ## Code Before:
<footer class="white pa3">
<div class="footer-section">
<div>Multiformats was started and is sponsored by</div>
<a href="https://protocol.ai/">
<img id="footer-logo" src="/protocol-labs-logo.png">
</a>
</div>
<div class="footer-section right">
<nav>
<a href="#multiforma... |
6e8cbbd34c40eea226efa4fe7ee40696def2c9ac | pkgs/tools/misc/t1utils/default.nix | pkgs/tools/misc/t1utils/default.nix | { stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
version = "1.39";
name = "t1utils-${version}";
src = fetchFromGitHub {
owner = "kohler";
repo = "t1utils";
rev = "v${version}";
sha256 = "02n4dzxa8fz0dbxari7xh6cq66x3az6g55fq8ix2bfmww42s4v2r";
};
meta = with stdenv.lib; {
descriptio... | { stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "t1utils-1.39";
src = fetchurl {
url = "http://www.lcdf.org/type/${name}.tar.gz";
sha256 = "1i6ln194ns2g4j5zjlj4bfzxpkfpnxvy37n9baq3hywjqkjz7bhg";
};
meta = with stdenv.lib; {
description = "Collection of simple Type 1 font manipulation progr... | Revert "t1utils: use github cache and allow build on darwin" | Revert "t1utils: use github cache and allow build on darwin"
This reverts commit 9b2bff7097e47fa956e642c2f630b998ce9aef38.
It fails to build: http://hydra.nixos.org/build/27428175/nixlog/2/raw
| Nix | mit | NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,triton/triton,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,triton/triton,SymbiFlow/nixpkgs,triton/triton,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,Symb... | nix | ## Code Before:
{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
version = "1.39";
name = "t1utils-${version}";
src = fetchFromGitHub {
owner = "kohler";
repo = "t1utils";
rev = "v${version}";
sha256 = "02n4dzxa8fz0dbxari7xh6cq66x3az6g55fq8ix2bfmww42s4v2r";
};
meta = with stdenv.lib; ... |
a8820b60b36ee72058a95c117cbc17c2b96a623d | pathdparser.java | pathdparser.java | import java.util.*;
class PathDElement {
char type;
ArrayList<Float> values;
PathDElement() {
values = new ArrayList<Float>();
}
}
class PathDParser {
// Split a string describing the segments of a path into
void partition( String path, ArrayList<PathDElement> pathElements ) {
String del... | import java.util.*;
class PathDElement {
char type;
ArrayList<Float> values;
PathDElement() {
values = new ArrayList<Float>();
}
}
class PathDParser {
// Split a string describing the segments of a path into
void partition( String path, ArrayList<PathDElement> pathElements ) {
String del... | Determine whether coordinates are relative | Determine whether coordinates are relative
| Java | mit | gregvw/SVG2Processing | java | ## Code Before:
import java.util.*;
class PathDElement {
char type;
ArrayList<Float> values;
PathDElement() {
values = new ArrayList<Float>();
}
}
class PathDParser {
// Split a string describing the segments of a path into
void partition( String path, ArrayList<PathDElement> pathElements ) ... |
e4b52342b5e493b86ebb41275f3ef697c9ad1005 | alien4cloud-ui/src/main/build/config/copy.js | alien4cloud-ui/src/main/build/config/copy.js | // Copies files not processed by requirejs optimization from source to dist so other tasks can process them
module.exports = {
dist: {
files: [{
expand: true,
dot: true,
cwd: '<%= yeoman.app %>',
dest: '<%= yeoman.dist %>',
src: [
'*.{ico,png,txt}',
'.htaccess',
... | // Copies files not processed by requirejs optimization from source to dist so other tasks can process them
module.exports = {
dist: {
files: [{
expand: true,
dot: true,
cwd: '<%= yeoman.app %>',
dest: '<%= yeoman.dist %>',
src: [
'*.{ico,png,txt}',
'.htaccess',
... | Fix build to add back the roboto font and bootstrap fonts. | Fix build to add back the roboto font and bootstrap fonts.
| JavaScript | apache-2.0 | san-tak/alien4cloud,alien4cloud/alien4cloud,alien4cloud/alien4cloud,alien4cloud/alien4cloud,san-tak/alien4cloud,alien4cloud/alien4cloud,san-tak/alien4cloud,san-tak/alien4cloud | javascript | ## Code Before:
// Copies files not processed by requirejs optimization from source to dist so other tasks can process them
module.exports = {
dist: {
files: [{
expand: true,
dot: true,
cwd: '<%= yeoman.app %>',
dest: '<%= yeoman.dist %>',
src: [
'*.{ico,png,txt}',
'.... |
9c7a6d5241d52c3f1ba34d0a02ebc461e8237ad7 | static/css/index-page.css | static/css/index-page.css | /*
* Follow css style guides as shown in the OSF developer documentation
* http://cosdev.readthedocs.org/en/latest/style_guides/html_css.html
*/
/* Section to replicate osf style, ignore until end of this section */
#navbarScope {
position: fixed;
width: 100%;
border-radius: 0;
}
/* End */
.prereg-con... | /*
* Follow css style guides as shown in the OSF developer documentation
* http://cosdev.readthedocs.org/en/latest/style_guides/html_css.html
*/
/* Section to replicate osf style, ignore until end of this section */
#navbarScope {
position: fixed;
width: 100%;
border-radius: 0;
}
/* End */
.prereg-con... | Change hover and default box colors | Change hover and default box colors
| CSS | apache-2.0 | haoyuchen1992/OSF-Meeting,caneruguz/prereg-html,caneruguz/prereg-html | css | ## Code Before:
/*
* Follow css style guides as shown in the OSF developer documentation
* http://cosdev.readthedocs.org/en/latest/style_guides/html_css.html
*/
/* Section to replicate osf style, ignore until end of this section */
#navbarScope {
position: fixed;
width: 100%;
border-radius: 0;
}
/* End... |
1ce26a0b0cbddb49047da0f8bac8214fb298c646 | pymatgen/__init__.py | pymatgen/__init__.py | __author__ = "Shyue Ping Ong, Anubhav Jain, Michael Kocher, Geoffroy Hautier, Will Richards, Dan Gunter, Shreyas Cholia, Vincent L Chevrier, Rickard Armiento"
__date__ = "Jun 28, 2012"
__version__ = "2.0.0"
"""
Useful aliases for commonly used objects and modules.
"""
from pymatgen.core.periodic_table import Element, ... | __author__ = "Shyue Ping Ong, Anubhav Jain, Michael Kocher, Geoffroy Hautier, Will Richards, Dan Gunter, Shreyas Cholia, Vincent L Chevrier, Rickard Armiento"
__date__ = "Jun 28, 2012"
__version__ = "2.0.0"
"""
Useful aliases for commonly used objects and modules.
"""
from pymatgen.core.periodic_table import Element, ... | Add an alias to file_open_zip_aware as openz. | Add an alias to file_open_zip_aware as openz.
| Python | mit | Dioptas/pymatgen,yanikou19/pymatgen,yanikou19/pymatgen,Bismarrck/pymatgen,migueldiascosta/pymatgen,rousseab/pymatgen,sonium0/pymatgen,migueldiascosta/pymatgen,Bismarrck/pymatgen,rousseab/pymatgen,Dioptas/pymatgen,rousseab/pymatgen,ctoher/pymatgen,ctoher/pymatgen,sonium0/pymatgen,Bismarrck/pymatgen,yanikou19/pymatgen,Bi... | python | ## Code Before:
__author__ = "Shyue Ping Ong, Anubhav Jain, Michael Kocher, Geoffroy Hautier, Will Richards, Dan Gunter, Shreyas Cholia, Vincent L Chevrier, Rickard Armiento"
__date__ = "Jun 28, 2012"
__version__ = "2.0.0"
"""
Useful aliases for commonly used objects and modules.
"""
from pymatgen.core.periodic_table ... |
e616438f1ae978210dfcd0e9fc52c9f57ca4afd7 | PerfTestSharedClasses/src/shared/Constants.java | PerfTestSharedClasses/src/shared/Constants.java | package shared;
/**
*
*/
/**
*
* @author David Lecoconnier david.lecoconnier@gmail.com
* @author Jean-Luc Amitousa-Mankoy jeanluc.amitousa.mankoy@gmail.com
* @version 1.0
*/
public class Constants {
/**
* Socket port for objects transmission
*/
public static int SOCKET_OBJECT_PORT = 2000;
/**
* Soc... | package shared;
/**
*
*/
/**
*
* @author David Lecoconnier david.lecoconnier@gmail.com
* @author Jean-Luc Amitousa-Mankoy jeanluc.amitousa.mankoy@gmail.com
* @version 1.0
*/
public class Constants {
/**
* Socket port for objects transmission
*/
public static int SOCKET_OBJECT_PORT = 2000;
/**
* Soc... | Change name to improve comprehension | Change name to improve comprehension
| Java | apache-2.0 | etrange02/Perftest | java | ## Code Before:
package shared;
/**
*
*/
/**
*
* @author David Lecoconnier david.lecoconnier@gmail.com
* @author Jean-Luc Amitousa-Mankoy jeanluc.amitousa.mankoy@gmail.com
* @version 1.0
*/
public class Constants {
/**
* Socket port for objects transmission
*/
public static int SOCKET_OBJECT_PORT = 200... |
9866a4c2c03a147c77b5434171d06d69535b8883 | src/commands/install/InstallContext.php | src/commands/install/InstallContext.php | <?php
namespace PharIo\Phive;
use PharIo\Phive\Cli\GeneralContext;
class InstallContext extends GeneralContext {
protected function getKnownOptions() {
return [
'target' => 't',
'copy' => 'c',
'global' => 'g',
'temporary' => false
];
... | <?php
namespace PharIo\Phive;
use PharIo\Phive\Cli\GeneralContext;
class InstallContext extends GeneralContext {
protected function getKnownOptions() {
return [
'target' => 't',
'copy' => 'c',
'global' => 'g',
'temporary' => false
];
... | Make install options temporary and target conflict with global switch | Make install options temporary and target conflict with global switch
This fixes #63
| PHP | bsd-3-clause | phar-io/phive | php | ## Code Before:
<?php
namespace PharIo\Phive;
use PharIo\Phive\Cli\GeneralContext;
class InstallContext extends GeneralContext {
protected function getKnownOptions() {
return [
'target' => 't',
'copy' => 'c',
'global' => 'g',
'temporary' => false... |
9441938357496f46fe513992f75cd707c6c638f4 | README.md | README.md |
Manage the technology on your radar with this interactive UI.
See it in action with the [example radar](http://dondochaka.dyndns.org/tech-radar).

# Authors
Please contact Tim Nunamaker for more info. |
Manage the technology on your radar with this interactive UI.
See it in action with the [example radar](http://dondochaka.dyndns.org/tech-radar).

# Authors
Please contact Tim Nunamaker for more info. | Update image to Github URL | Update image to Github URL
| Markdown | mit | scic/tech-radar,scic/tech-radar,tnunamak/tech-radar,tnunamak/tech-radar | markdown | ## Code Before:
Manage the technology on your radar with this interactive UI.
See it in action with the [example radar](http://dondochaka.dyndns.org/tech-radar).

# Authors
Please contact Tim Nunamaker for more info.
#... |
2c7d0491369dcd9aade8fcc9556c125b5910f6ad | content/index.haml | content/index.haml | ---
title: Home
---
%h1
wiki.template
%p
This is a wiki template. The main point of this is to integrate the foundation
css framework with nanoc and preparing everything to be wiki-ish, so one can
use this as a start for creating a wiki without having to deal with
stylesheets and everything.
%p
After the... | ---
title: Home
---
%h1
wiki.template
%p
This is a wiki template. The main point of this is to integrate the foundation
css framework with nanoc and preparing everything to be wiki-ish, so one can
use this as a start for creating a wiki without having to deal with
stylesheets and everything.
%p
After the... | Add landing page main navigation | Add landing page main navigation
| Haml | lgpl-2.1 | matthiasbeyer/wiki.template,matthiasbeyer/wiki.template,matthiasbeyer/wiki.template | haml | ## Code Before:
---
title: Home
---
%h1
wiki.template
%p
This is a wiki template. The main point of this is to integrate the foundation
css framework with nanoc and preparing everything to be wiki-ish, so one can
use this as a start for creating a wiki without having to deal with
stylesheets and everything.... |
86c876193883b550913abea3cd519de07900ceea | package.json | package.json | {
"name": "jquery.autocomplete",
"version": "1.0.0",
"devDependencies": {
"phantomjs": "~1.9.7-5",
"selenium-webdriver": "^2.41.0",
"should": "^3.3.1",
"webdriverjs-helper": "^1.2.0",
"mocha": "^2.3.3",
"connect": "^2.16.1"
},
"scripts": {
"test": "./node_modules/.bin/mocha -R spec... | {
"name": "jquery.autocomplete",
"version": "1.0.0",
"devDependencies": {
"phantomjs": "~1.9.7-5",
"selenium-webdriver": "^2.41.0",
"should": "^3.3.1",
"webdriverjs-helper": "^1.2.0",
"mocha": "^2.3.3",
"connect": "^2.16.1"
},
"scripts": {
"test": "./node_modules/.bin/mocha -R spec... | Add a node version hint | Add a node version hint | JSON | mit | lloydwatkin/jquery.autocomplete,lloydwatkin/jquery.autocomplete | json | ## Code Before:
{
"name": "jquery.autocomplete",
"version": "1.0.0",
"devDependencies": {
"phantomjs": "~1.9.7-5",
"selenium-webdriver": "^2.41.0",
"should": "^3.3.1",
"webdriverjs-helper": "^1.2.0",
"mocha": "^2.3.3",
"connect": "^2.16.1"
},
"scripts": {
"test": "./node_modules/.b... |
0774720578dfd2800f85cd95a617da4286e0e6d0 | _posts/2009-05-10-bring-it-on.md | _posts/2009-05-10-bring-it-on.md | ---
layout: post-no-feature
title: "Time (Bring it on)"
description:
category: songs
type: Songs
tags: [voicemale, music]
---
The following song was inspired by Seal's "Bring it on". Not quite a cover, but the resemblence was intended. Sung by VoiceMale.
{% raw %}
<audio controls>
<source src="{{ site.url }}/assets/a... | ---
layout: post-no-feature
title: "Time (Bring it on)"
description:
category: songs
type: Songs
tags: [voicemale, music]
---
The following song was inspired by Seal's "Bring it on". Not quite a cover, but the resemblence was intended. Sung by VoiceMale.
{% raw %}
<audio controls>
<source src="http://suchow.io/assets... | Fix some issues with audio post | Fix some issues with audio post
| Markdown | mit | suchow/suchow.io,suchow/suchow.io,suchow/suchow.io | markdown | ## Code Before:
---
layout: post-no-feature
title: "Time (Bring it on)"
description:
category: songs
type: Songs
tags: [voicemale, music]
---
The following song was inspired by Seal's "Bring it on". Not quite a cover, but the resemblence was intended. Sung by VoiceMale.
{% raw %}
<audio controls>
<source src="{{ site... |
a4ca56f3df7cd763be4d4c60fbdb3c2ee4dcf602 | src/js/components/Tab/Url.js | src/js/components/Tab/Url.js | import React from 'react'
const urlStyle = {
opacity: 0.3,
fontSize: '0.7rem'
}
export default class Url extends React.Component {
getUrlStyle = () => Object.assign(
{},
urlStyle,
this.props.tab.shouldHighlight && { opacity: 1 }
)
render () {
const { tab: { url }, getHighlightNode } = this.... | import React from 'react'
const urlStyle = {
opacity: 0.3,
fontSize: '0.7rem',
overflow: 'hidden',
textOverflow: 'ellipsis'
}
export default class Url extends React.Component {
getUrlStyle = () => Object.assign(
{},
urlStyle,
this.props.tab.shouldHighlight && { opacity: 1 }
)
render () {
... | Use css to truncate tab url | Use css to truncate tab url
Fix #80
| JavaScript | mit | xcv58/Tab-Manager-v2,xcv58/Tab-Manager-v2,xcv58/Tab-Manager-v2,xcv58/Tab-Manager-v2 | javascript | ## Code Before:
import React from 'react'
const urlStyle = {
opacity: 0.3,
fontSize: '0.7rem'
}
export default class Url extends React.Component {
getUrlStyle = () => Object.assign(
{},
urlStyle,
this.props.tab.shouldHighlight && { opacity: 1 }
)
render () {
const { tab: { url }, getHighlig... |
724d55a2bd4b1fecebaf6b590fc93e81a90a8cd2 | meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-test.bb | meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-test.bb | DESCRIPTION = "Extended task to get System Test specific apps"
LICENSE = "MIT"
PR = "r8"
inherit packagegroup
PACKAGE_ARCH = "${MACHINE_ARCH}"
ARAGO_TEST = "\
bonnie++ \
hdparm \
iozone3 \
iperf \
lmbench \
rt-tests \
evtest \
bc \
memtester \
"
ARAGO_TI_TEST = "\
ltp-ddt... | DESCRIPTION = "Extended task to get System Test specific apps"
LICENSE = "MIT"
PR = "r9"
inherit packagegroup
PACKAGE_ARCH = "${MACHINE_ARCH}"
ARAGO_TEST = "\
bonnie++ \
hdparm \
iozone3 \
iperf \
lmbench \
rt-tests \
evtest \
bc \
memtester \
"
ARAGO_TI_TEST = "\
ltp-ddt... | Add input-utils to test packages | arago-test: Add input-utils to test packages
Signed-off-by: Chase Maupin <5a5662f468a76e0fc4391e65fb9f536df44d7380@ti.com>
Signed-off-by: Denys Dmytriyenko <d29de71aea38aad3a87d486929cb0aad173ae612@ti.com>
| BitBake | mit | MentorEmbedded/meta-arago,rcn-ee/meta-arago,rcn-ee/meta-arago,MentorEmbedded/meta-arago,rcn-ee/meta-arago,MentorEmbedded/meta-arago,MentorEmbedded/meta-arago,rcn-ee/meta-arago,rcn-ee/meta-arago | bitbake | ## Code Before:
DESCRIPTION = "Extended task to get System Test specific apps"
LICENSE = "MIT"
PR = "r8"
inherit packagegroup
PACKAGE_ARCH = "${MACHINE_ARCH}"
ARAGO_TEST = "\
bonnie++ \
hdparm \
iozone3 \
iperf \
lmbench \
rt-tests \
evtest \
bc \
memtester \
"
ARAGO_TI_TEST ... |
f1fd5b5451ed58ae8bd37d333c92246ed8e624cf | src/Renderers/Basic.php | src/Renderers/Basic.php | <?php namespace Coreplex\Crumbs\Renderers;
use Coreplex\Crumbs\Contracts\Renderer as Contract;
use Coreplex\Crumbs\Contracts\Container;
class Basic implements Contract {
/**
* Render the breadcrumbs from the container
*
* @return string
*/
public function render(Container $container)
... | <?php namespace Coreplex\Crumbs\Renderers;
use Coreplex\Crumbs\Contracts\Renderer as Contract;
use Coreplex\Crumbs\Contracts\Container;
class Basic implements Contract {
/**
* Render the breadcrumbs from the container
*
* @return string
*/
public function render(Container $container)
... | Add active class to current breadcrumb | Add active class to current breadcrumb
| PHP | mit | coreplex/crumbs,coreplex/crumbs | php | ## Code Before:
<?php namespace Coreplex\Crumbs\Renderers;
use Coreplex\Crumbs\Contracts\Renderer as Contract;
use Coreplex\Crumbs\Contracts\Container;
class Basic implements Contract {
/**
* Render the breadcrumbs from the container
*
* @return string
*/
public function render(Container... |
848483596952ed919ebae4fefc37a3fffc4b5da5 | resources/views/layouts/partials/html-start.blade.php | resources/views/layouts/partials/html-start.blade.php | <!doctype html>
<html lang="{{ app()->getLocale() }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta name="api-base-url" content="{{ url('/api') }}">
<meta name="api-to... | <!doctype html>
<html lang="{{ app()->getLocale() }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta name="api-base-url" content="{{ url('/api') }}">
@if(Auth::user())
... | Fix undefined property when no user logged in | Fix undefined property when no user logged in
| PHP | agpl-3.0 | zeropingheroes/lanager,zeropingheroes/lanager | php | ## Code Before:
<!doctype html>
<html lang="{{ app()->getLocale() }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta name="api-base-url" content="{{ url('/api') }}">
<m... |
d71f85fbec5e80e4582a0d22c472a56e1965a9ae | app/controllers/home_controller.rb | app/controllers/home_controller.rb | class HomeController < ApplicationController
def index
end
def sfdata
@geojson = HTTParty.get("https://data.sfgov.org/resource/qg52-sqku?$$app_token=Tfqfz8OmwAEF8YU3FYwmm2xaD")
render json: {geojson: @geojson}
end
end
| class HomeController < ApplicationController
def index
end
def sfdata
@geojson = HTTParty.get("https://data.sfgov.org/resource/qg52-sqku?$$app_token=Tfqfz8OmwAEF8YU3FYwmm2xaD")
render json: @geojson
end
end
| Change format of object sent from sever to frontend | Change format of object sent from sever to frontend
| Ruby | mit | joshuacroff/mapbox_sandbox,joshuacroff/mapbox_sandbox,joshuacroff/mapbox_sandbox | ruby | ## Code Before:
class HomeController < ApplicationController
def index
end
def sfdata
@geojson = HTTParty.get("https://data.sfgov.org/resource/qg52-sqku?$$app_token=Tfqfz8OmwAEF8YU3FYwmm2xaD")
render json: {geojson: @geojson}
end
end
## Instruction:
Change format of object sent from se... |
0e7edb95b8eee904d7c3be84f76358ddb244ca60 | .travis.yml | .travis.yml | language: rust
rust:
- 1.8.0
- stable
- nightly
os:
- linux
- osx
script:
- cargo build --verbose
- if [[ $TRAVIS_RUST_VERSION = nightly* ]]; then
env RUST_BACKTRACE=1 cargo test -v;
fi
| language: rust
rust:
- 1.8.0
- stable
- nightly
os:
- linux
- osx
env:
matrix:
- ARCH=x86_64
- ARCH=i686
script:
- cargo build --verbose
- if [[ $TRAVIS_RUST_VERSION = nightly* ]]; then
env RUST_BACKTRACE=1 cargo test -v;
fi
| Add i686 platform on Travis | Add i686 platform on Travis
| YAML | mit | danburkert/fs2-rs | yaml | ## Code Before:
language: rust
rust:
- 1.8.0
- stable
- nightly
os:
- linux
- osx
script:
- cargo build --verbose
- if [[ $TRAVIS_RUST_VERSION = nightly* ]]; then
env RUST_BACKTRACE=1 cargo test -v;
fi
## Instruction:
Add i686 platform on Travis
## Code After:
language: rust
rust:
- 1.8.0
- stab... |
dc0b1c171cfb12fb972fd3ca8c1013af20915772 | servers/lib/server/handlers/validateemail.coffee | servers/lib/server/handlers/validateemail.coffee | koding = require './../bongo'
{ getClientId } = require './../helpers'
module.exports = (req, res) ->
{ JUser } = koding.models
{ password, email, tfcode } = req.body
return res.status(400).send 'Bad request' unless email?
{ password, redirect } = req.body
clientId = getClientId req,... | koding = require './../bongo'
{ getClientId } = require './../helpers'
module.exports = (req, res) ->
{ JUser } = koding.models
{ password, email, tfcode } = req.body
unless email? and (email = email.trim()).length isnt 0
return res.status(400).send 'Bad request'
{ password, redirect ... | Trim white spaces during email validation | Trim white spaces during email validation
| CoffeeScript | agpl-3.0 | koding/koding,mertaytore/koding,koding/koding,gokmen/koding,jack89129/koding,sinan/koding,alex-ionochkin/koding,alex-ionochkin/koding,andrewjcasal/koding,andrewjcasal/koding,cihangir/koding,jack89129/koding,szkl/koding,szkl/koding,kwagdy/koding-1,mertaytore/koding,jack89129/koding,szkl/koding,rjeczalik/koding,rjeczalik... | coffeescript | ## Code Before:
koding = require './../bongo'
{ getClientId } = require './../helpers'
module.exports = (req, res) ->
{ JUser } = koding.models
{ password, email, tfcode } = req.body
return res.status(400).send 'Bad request' unless email?
{ password, redirect } = req.body
clientId = ... |
9462e599465bb89d8bf5dc259f5f2bde6dc60b8b | ui/src/overview/project-overview.css | ui/src/overview/project-overview.css | .project-overview-sidebar .documents {
max-height: calc(100vh - 189px);
}
.project-overview-sidebar .documents-card {
flex-grow: 0 !important;
flex-shrink: 0 !important;
}
.project-overview-sidebar .card:first-child {
margin: 0 0 10px 0;
}
| .project-overview-sidebar .documents {
max-height: calc(100vh - 189px) !important;
}
.project-overview-sidebar .documents-card {
flex-grow: 0 !important;
flex-shrink: 0 !important;
}
.project-overview-sidebar .card:first-child {
margin: 0 0 10px 0;
}
| Fix max height of documents list in project overview | Fix max height of documents list in project overview
| CSS | apache-2.0 | dainst/idai-field-web,dainst/idai-field-web,dainst/idai-field-web | css | ## Code Before:
.project-overview-sidebar .documents {
max-height: calc(100vh - 189px);
}
.project-overview-sidebar .documents-card {
flex-grow: 0 !important;
flex-shrink: 0 !important;
}
.project-overview-sidebar .card:first-child {
margin: 0 0 10px 0;
}
## Instruction:
Fix max height of documents l... |
425531034d9d2bb4897935d051f826a3d35b4e6f | resources/views/rsvp/confirmation.blade.php | resources/views/rsvp/confirmation.blade.php | <!DOCTYPE html>
<html lang="en">
<head>
<title>Event RSVP | MyRoboJackets</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="{{ mix('/css/app.css') }}" rel="stylesheet">
<style type="text/css">
b {
font-weight: bold; !important
}
</st... | <!DOCTYPE html>
<html lang="en">
<head>
<title>Event RSVP | MyRoboJackets</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="{{ mix('/css/app.css') }}" rel="stylesheet">
<style type="text/css">
b {
font-weight: bold; !important
}
</st... | Revert "Do not display the start time of an event on the RSVP confirmation view" | Revert "Do not display the start time of an event on the RSVP confirmation view"
This reverts commit 79f86048c086e8a3928decfc27e7ac5af95e4f28.
Fixes #1386.
| PHP | apache-2.0 | RoboJackets/apiary,RoboJackets/apiary | php | ## Code Before:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Event RSVP | MyRoboJackets</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="{{ mix('/css/app.css') }}" rel="stylesheet">
<style type="text/css">
b {
font-weight: bold; !important
... |
279be716bc15fe633a62b6614acb9d74375917c8 | requirements/env.txt | requirements/env.txt |
Django==1.8.18
MySQL-python==1.2.5
Pillow==3.4.1
bleach==2.0.0
commonware==0.4.3
contextlib2==0.5.4
django-appconf==1.0.2
django-compressor==2.1
django-nose==1.4.4
django-session-csrf==0.6
django-sha2==0.4
elasticsearch==1.9.0
feedparser==5.2.1
fluent==0.4.1
funcsigs==1.0.2
funfactory==2.3.0
html5lib==0.999999999
merc... |
Django==1.8.18
MySQL-python==1.2.5
Pillow==3.4.1
bleach==2.0.0
commonware==0.4.3
contextlib2==0.5.4
django-appconf==1.0.2
django-compressor==2.1
django-nose==1.4.4
django-session-csrf==0.6
django-sha2==0.4
elasticsearch==1.9.0
feedparser==5.2.1
fluent==0.4.1
funcsigs==1.0.2
funfactory==2.3.0
html5lib==0.999999999
merc... | Make html5lib dependency webencodings explicit | Make html5lib dependency webencodings explicit
| Text | mpl-2.0 | mozilla/elmo,Pike/elmo,Pike/elmo,mozilla/elmo,mozilla/elmo,Pike/elmo,Pike/elmo,mozilla/elmo | text | ## Code Before:
Django==1.8.18
MySQL-python==1.2.5
Pillow==3.4.1
bleach==2.0.0
commonware==0.4.3
contextlib2==0.5.4
django-appconf==1.0.2
django-compressor==2.1
django-nose==1.4.4
django-session-csrf==0.6
django-sha2==0.4
elasticsearch==1.9.0
feedparser==5.2.1
fluent==0.4.1
funcsigs==1.0.2
funfactory==2.3.0
html5lib==... |
e2cba02550dfbe8628daf024a2a35c0dffb234e9 | python/cli/request.py | python/cli/request.py | import requests
import os
aport = os.environ.get('MYAPORT')
if aport is None:
aport = "80"
aport = "23456"
url1 = 'http://localhost:' + aport + '/'
url2 = 'http://localhost:' + aport + '/action/improvesimulateinvest'
url3 = 'http://localhost:' + aport + '/action/autosimulateinvest'
url4 = 'http://localhost:' + a... | import requests
import os
aport = os.environ.get('MYAPORT')
if aport is None:
aport = "80"
aport = "23456"
ahost = os.environ.get('MYAHOST')
if ahost is None:
ahost = "localhost"
url1 = 'http://' + ahost + ':' + aport + '/'
#headers = {'Content-type': 'application/json', 'Accept': 'text/plain'}
#hea... | Handle different environments, for automation (I4). | Handle different environments, for automation (I4).
| Python | agpl-3.0 | rroart/aether,rroart/aether,rroart/aether,rroart/aether,rroart/aether | python | ## Code Before:
import requests
import os
aport = os.environ.get('MYAPORT')
if aport is None:
aport = "80"
aport = "23456"
url1 = 'http://localhost:' + aport + '/'
url2 = 'http://localhost:' + aport + '/action/improvesimulateinvest'
url3 = 'http://localhost:' + aport + '/action/autosimulateinvest'
url4 = 'http:/... |
0d1d3a2cb3bd048e95f02baed551a508a12cf0a7 | Resources/views/Page/_form.html.twig | Resources/views/Page/_form.html.twig | {% form_theme form 'KoalaContentBundle:Form:fields.html.twig' %}
<form action="{{block('action')}}" method="post" {{ form_enctype(form) }} style="width: 600px">
<div class="mercury-display-pane-container">
<div class="mercury-display-pane">
<fieldset class="inputs">
<legend><span>Page options</span></legend>... | {% form_theme form 'KoalaContentBundle:Form:fields.html.twig' %}
<form action="{{block('action')}}" method="post" {{ form_enctype(form) }} class="mercury-form" style="width: 600px">
<div class="mercury-display-pane-container">
<div class="mercury-display-pane">
<fieldset class="inputs">
<legend><span>Page op... | Fix Add/Edit form for latest version of Mercury | Fix Add/Edit form for latest version of Mercury
| Twig | mit | flojon/KoalaContentBundle,flojon/KoalaContentBundle,flojon/KoalaContentBundle | twig | ## Code Before:
{% form_theme form 'KoalaContentBundle:Form:fields.html.twig' %}
<form action="{{block('action')}}" method="post" {{ form_enctype(form) }} style="width: 600px">
<div class="mercury-display-pane-container">
<div class="mercury-display-pane">
<fieldset class="inputs">
<legend><span>Page options... |
1bb17377aa9f89d48a86edfaafc9a380d901bfcf | app/views/snippets/index.html.erb | app/views/snippets/index.html.erb | <ul>
<% @snippets.each do |snippet| %>
<div class="snippet">
<li><%= link_to snippet.content[0...249].html_safe, snippet_path(snippet) %></li>
</div>
<% end %>
</ul>
| <ul>
<% @snippets.each do |snippet| %>
<div class="snippet">
<li><%= link_to snippet.content, snippet_path(snippet) %></li>
</div>
<% end %>
</ul>
| Change link_to for now because of blank snippets | Change link_to for now because of blank snippets
| HTML+ERB | mit | SputterPuttRedux/storyvine_clone,mxngyn/StoryVine,pearlshin/StoryVine,mxngyn/StoryVine,pearlshin/StoryVine,pearlshin/StoryVine,SputterPuttRedux/storyvine_clone,mxngyn/StoryVine,SputterPuttRedux/storyvine_clone | html+erb | ## Code Before:
<ul>
<% @snippets.each do |snippet| %>
<div class="snippet">
<li><%= link_to snippet.content[0...249].html_safe, snippet_path(snippet) %></li>
</div>
<% end %>
</ul>
## Instruction:
Change link_to for now because of blank snippets
## Code After:
<ul>
<% @snippets.each do |snippet| ... |
5bac193629eb7008e82ec343761a350942cf6281 | lib/juici/views/index.erb | lib/juici/views/index.erb | <div class="row-fluid">
<div class="span8">
<h1 class="block-header">JuiCI</h1>
<p>
JuiCI is a CI server, written at RailsCamp after Jenkins left me feeling a little dead inside. JuiCI aims to solve some of the issues with existing (and outstanding) CI solutions like <a href="http://jenkins-ci.org/">Jen... | <div class="row-fluid">
<div class="span8">
<h1 class="block-header">JuiCI</h1>
<p>
JuiCI is a CI server, written at RailsCamp after Jenkins left me feeling a little dead inside. JuiCI aims to solve some of the issues with existing (and outstanding) CI solutions like <a href="http://jenkins-ci.org/">Jen... | Use build's class on recently built screen | Use build's class on recently built screen
| HTML+ERB | mit | richo/juici,richo/juici,richo/juici,richo/juici | html+erb | ## Code Before:
<div class="row-fluid">
<div class="span8">
<h1 class="block-header">JuiCI</h1>
<p>
JuiCI is a CI server, written at RailsCamp after Jenkins left me feeling a little dead inside. JuiCI aims to solve some of the issues with existing (and outstanding) CI solutions like <a href="http://jenk... |
75a9d4d0d477cfd41bd9741af87bc3993001cc38 | database/seeds/UsersTableSeeder.php | database/seeds/UsersTableSeeder.php | <?php
/**
* Created by PhpStorm.
* User: andela
* Date: 8/6/15
* Time: 1:55 PM
*/
use Illuminate\Database\Seeder;
use ChopBox\User;
use Faker\Factory;
class UserTableSeeder extends Seeder {
public function run() {
$faker = Factory::create();
//User::truncate();
foreach(range(1,50) a... | <?php
/**
* Created by PhpStorm.
* User: andela
* Date: 8/6/15
* Time: 1:55 PM
*/
use Illuminate\Database\Seeder;
use ChopBox\User;
use Faker\Factory;
class UserTableSeeder extends Seeder {
public function run() {
$faker = Factory::create();
//User::truncate();
foreach(range(1,50) a... | Add seeder for image_uri column of Users table | Add seeder for image_uri column of Users table
| PHP | mit | andela/chopbox,andela/chopbox | php | ## Code Before:
<?php
/**
* Created by PhpStorm.
* User: andela
* Date: 8/6/15
* Time: 1:55 PM
*/
use Illuminate\Database\Seeder;
use ChopBox\User;
use Faker\Factory;
class UserTableSeeder extends Seeder {
public function run() {
$faker = Factory::create();
//User::truncate();
forea... |
ba5a9140a1d6cb1bf24a4dfa2ee67c40e6a75a33 | project.clj | project.clj | (defproject kamituel/systems-toolbox-chrome "0.1.0-SNAPSHOT"
:description "Chrome DevTools support for systems-toolbox library"
:url ""
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.7.0"]
[matthiasn/... | (defproject kamituel/systems-toolbox-chrome "0.1.0-SNAPSHOT"
:description "Chrome DevTools support for systems-toolbox library"
:url ""
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.7.0"]
[matthiasn/... | Fix for lein clean not cleaning compiled js files | Fix for lein clean not cleaning compiled js files | Clojure | epl-1.0 | matthiasn/systems-toolbox-chrome,matthiasn/systems-toolbox-chrome,kamituel/systems-toolbox-chrome,kamituel/systems-toolbox-chrome | clojure | ## Code Before:
(defproject kamituel/systems-toolbox-chrome "0.1.0-SNAPSHOT"
:description "Chrome DevTools support for systems-toolbox library"
:url ""
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.7.0"]
... |
1fdecb65cb934c0756bdb8728a899d28a3811645 | app/views/organisations/consultations.html.erb | app/views/organisations/consultations.html.erb | <% page_title "#{@organisation.name} Consultations" %>
<div class="g3f organisation">
<%= render 'header', organisation: @organisation, title: "#{@organisation.name} Consultations" %>
<div class="g3" style="margin-top: 1.5em">
<% if @consultations.any? %>
<% @consultations.each do |consultation| %>
... | <% page_title "#{@organisation.name} Consultations" %>
<div class="g3f organisation">
<%= render 'header', organisation: @organisation, title: "#{@organisation.name} Consultations" %>
<div class="g3 page_detail">
<% if @consultations.any? %>
<% @consultations.each do |consultation| %>
<%= render ... | Use a class rather than a style on the element | Use a class rather than a style on the element
See also 3e1612ef4c01e8292eecb5d13938e66ff1cfe624.
| HTML+ERB | mit | askl56/whitehall,askl56/whitehall,alphagov/whitehall,YOTOV-LIMITED/whitehall,hotvulcan/whitehall,hotvulcan/whitehall,alphagov/whitehall,ggoral/whitehall,robinwhittleton/whitehall,ggoral/whitehall,alphagov/whitehall,hotvulcan/whitehall,YOTOV-LIMITED/whitehall,alphagov/whitehall,YOTOV-LIMITED/whitehall,YOTOV-LIMITED/whit... | html+erb | ## Code Before:
<% page_title "#{@organisation.name} Consultations" %>
<div class="g3f organisation">
<%= render 'header', organisation: @organisation, title: "#{@organisation.name} Consultations" %>
<div class="g3" style="margin-top: 1.5em">
<% if @consultations.any? %>
<% @consultations.each do |consul... |
1c254d8869482241de14255c25edd875ca369e46 | fortuitus/frunner/factories.py | fortuitus/frunner/factories.py | import factory
from fortuitus.feditor.factories import TestProjectF
from fortuitus.frunner import models
class TestRunF(factory.Factory):
FACTORY_FOR = models.TestRun
project = factory.SubFactory(TestProjectF)
class TestCaseF(factory.Factory):
FACTORY_FOR = models.TestCase
testrun = factory.SubFa... | import factory
from fortuitus.feditor.factories import TestProjectF
from fortuitus.frunner import models
class TestRunF(factory.Factory):
FACTORY_FOR = models.TestRun
project = factory.SubFactory(TestProjectF)
base_url = 'http://api.example.com/'
class TestCaseF(factory.Factory):
FACTORY_FOR = mod... | Fix TestRun factory missing base_url | Fix TestRun factory missing base_url
| Python | mit | elegion/djangodash2012,elegion/djangodash2012 | python | ## Code Before:
import factory
from fortuitus.feditor.factories import TestProjectF
from fortuitus.frunner import models
class TestRunF(factory.Factory):
FACTORY_FOR = models.TestRun
project = factory.SubFactory(TestProjectF)
class TestCaseF(factory.Factory):
FACTORY_FOR = models.TestCase
testrun... |
82a0063c7a909fdca764f665c9718901a95c8d2e | README.rst | README.rst | ========================
Team and repository tags
========================
.. image:: https://governance.openstack.org/tc/badges/vitrage.svg
:target: https://governance.openstack.org/tc/reference/tags/index.html
.. Change things from this point on
=======
Vitrage
=======
The OpenStack RCA Service
Vitrage is th... | ========================
Team and repository tags
========================
.. image:: https://governance.openstack.org/tc/badges/vitrage.svg
:target: https://governance.openstack.org/tc/reference/tags/index.html
.. Change things from this point on
=======
Vitrage
=======
The OpenStack RCA Service
Vitrage is th... | Add vitrage-specs link to readme.rst | Add vitrage-specs link to readme.rst
Change-Id: I899a8be96f7a4f9536a3418d028da12459a0ffcf
| reStructuredText | apache-2.0 | openstack/vitrage,openstack/vitrage,openstack/vitrage | restructuredtext | ## Code Before:
========================
Team and repository tags
========================
.. image:: https://governance.openstack.org/tc/badges/vitrage.svg
:target: https://governance.openstack.org/tc/reference/tags/index.html
.. Change things from this point on
=======
Vitrage
=======
The OpenStack RCA Servic... |
00fc23914c9fe9c4bf5b844b66672f95a05ac286 | src/User/Login/LoginFormHandler.php | src/User/Login/LoginFormHandler.php | <?php namespace Anomaly\UsersModule\User\Login;
use Anomaly\UsersModule\User\UserAuthenticator;
/**
* Class LoginFormHandler
*
* @link http://anomaly.is/streams-platform
* @author AnomalyLabs, Inc. <hello@anomaly.is>
* @author Ryan Thompson <ryan@anomaly.is>
* @package Anomaly\Users... | <?php namespace Anomaly\UsersModule\User\Login;
use Anomaly\UsersModule\User\UserAuthenticator;
use Illuminate\Routing\Redirector;
/**
* Class LoginFormHandler
*
* @link http://anomaly.is/streams-platform
* @author AnomalyLabs, Inc. <hello@anomaly.is>
* @author Ryan Thompson <ryan@anomaly.... | Fix issue where inteded path was not being used in login form handler | Fix issue where inteded path was not being used in login form handler
| PHP | mit | anomalylabs/users-module | php | ## Code Before:
<?php namespace Anomaly\UsersModule\User\Login;
use Anomaly\UsersModule\User\UserAuthenticator;
/**
* Class LoginFormHandler
*
* @link http://anomaly.is/streams-platform
* @author AnomalyLabs, Inc. <hello@anomaly.is>
* @author Ryan Thompson <ryan@anomaly.is>
* @package ... |
036c9693a26d40f7a5ebebef8e27f2a98cc6a102 | data/apply-planet_osm_line.sql | data/apply-planet_osm_line.sql | DO $$
BEGIN
--------------------------------------------------------------------------------
-- planet_osm_line
--------------------------------------------------------------------------------
ALTER TABLE planet_osm_line
ADD COLUMN mz_id TEXT,
ADD COLUMN mz_road_level SMALLINT,
ADD COLUMN mz_road_sort_key... | DO $$
BEGIN
--------------------------------------------------------------------------------
-- planet_osm_line
--------------------------------------------------------------------------------
ALTER TABLE planet_osm_line
ADD COLUMN mz_id TEXT,
ADD COLUMN mz_road_level SMALLINT,
ADD COLUMN mz_road_sort_key... | Add index on waterway lines | Add index on waterway lines
| SQL | mit | zoondka/vector-datasource,mapzen/vector-datasource,gronke/vector-datasource,mapzen/vector-datasource,adncentral/vector-datasource,mapzen/vector-datasource,adncentral/vector-datasource,kyroskoh/vector-datasource,zoondka/vector-datasource,kyroskoh/vector-datasource,adncentral/vector-datasource,gronke/vector-datasource,ad... | sql | ## Code Before:
DO $$
BEGIN
--------------------------------------------------------------------------------
-- planet_osm_line
--------------------------------------------------------------------------------
ALTER TABLE planet_osm_line
ADD COLUMN mz_id TEXT,
ADD COLUMN mz_road_level SMALLINT,
ADD COLUMN ... |
431dd5d9b8052561c2be073700405b43db9eb97f | package.json | package.json | {
"name": "express-list-endpoints",
"version": "1.0.1",
"description": "A express package to list all registered endoints and its verbs",
"main": "index.js",
"scripts": {
"test": "mocha"
},
"repository": {
"type": "git",
"url": "https://github.com/AlbertoFdzM/express-list-endpoints.git"
},
... | {
"name": "express-list-endpoints",
"version": "1.0.1",
"description": "A express package to list all registered endoints and its verbs",
"main": "index.js",
"scripts": {
"test": "mocha",
"preversion": "npm test",
"postversion": "git push --follow-tags"
},
"repository": {
"type": "git",
... | Add scripts for npm version | Add scripts for npm version
| JSON | mit | AlbertoFdzM/express-list-endpoints | json | ## Code Before:
{
"name": "express-list-endpoints",
"version": "1.0.1",
"description": "A express package to list all registered endoints and its verbs",
"main": "index.js",
"scripts": {
"test": "mocha"
},
"repository": {
"type": "git",
"url": "https://github.com/AlbertoFdzM/express-list-endpo... |
3ed6592033fe32c56eb8772f9ceea52ab9ba33eb | public/js/models/core/UserModel.js | public/js/models/core/UserModel.js | define([
'underscore',
'backbone'
], function(_, Backbone) {
var UserModel = Backbone.Model.extend({
defaults: {
id: 0,
name: '',
email: '',
password: ''
},
initialize: function (options) {
//_.bindAll(this);
},
url: function() {
return '/api/users';
}
})... | define([
'underscore',
'backbone'
], function(_, Backbone) {
var UserModel = Backbone.Model.extend({
defaults: {
name: '',
email: '',
password: ''
},
url: '/api/users'
});
return UserModel;
});
| Remove commented code, and simplify class | Remove commented code, and simplify class | JavaScript | mit | nestor-qa/nestor,nestor-qa/nestor,nestor-qa/nestor,kinow/nestor,kinow/nestor,nestor-qa/nestor,kinow/nestor,kinow/nestor | javascript | ## Code Before:
define([
'underscore',
'backbone'
], function(_, Backbone) {
var UserModel = Backbone.Model.extend({
defaults: {
id: 0,
name: '',
email: '',
password: ''
},
initialize: function (options) {
//_.bindAll(this);
},
url: function() {
return '/api/use... |
032d6925c6797f718af11db523ca8b60f6a53ec2 | lib/api_monkey/filter_scopes.rb | lib/api_monkey/filter_scopes.rb | module ApiMonkey::FilterScopes
extend ActiveSupport::Concern
included do
OPERANDS = {
'eq' => '=',
'gt' => '>',
'lt' => '<',
'geq' => '>=',
'leq' => '<=',
}.freeze
# Define filter methods
column_names.map do |field_name|
define_singleton_method "filter_#{field_n... | module ApiMonkey::FilterScopes
extend ActiveSupport::Concern
OPERANDS = {
'eq' => '=',
'gt' => '>',
'lt' => '<',
'geq' => '>=',
'leq' => '<=',
}.freeze
included do
# Define filter methods
column_names.map do |field_name|
define_singleton_method "filter_#{field_name}" do |para... | Remove warning messages about multiple include | Remove warning messages about multiple include
| Ruby | mit | michaelkelly322/api_monkey,thebadmonkeydev/api_monkey,michaelkelly322/api_monkey,thebadmonkeydev/api_monkey | ruby | ## Code Before:
module ApiMonkey::FilterScopes
extend ActiveSupport::Concern
included do
OPERANDS = {
'eq' => '=',
'gt' => '>',
'lt' => '<',
'geq' => '>=',
'leq' => '<=',
}.freeze
# Define filter methods
column_names.map do |field_name|
define_singleton_method "... |
1fa4a78e72d28067d3f842779d41457580aff873 | app/templates/notes.htm | app/templates/notes.htm | {% extends "base.htm" %}
{% block title %}Albert Wang - Notes{% endblock %}
{% block head %}
{{ super() }}
{% endblock %}
{% block content %}
<div class="content">
<h1>Notes</h1>
{% for post in posts %}
<section class="note">
<h2>
{{ post['title'] | safe }}
</h2>
<sub... | {% extends "base.htm" %}
{% block title %}Albert Wang - Notes{% endblock %}
{% block head %}
{{ super() }}
{% endblock %}
{% block content %}
<div class="content">
<h1>Notes</h1>
<a href="/atom.xml">Atom Feed</a>
{% for post in posts %}
<section class="note">
<h2>
{{ post['title'... | Add link to atom feed | Add link to atom feed
| HTML | mit | albertyw/albertyw.com,albertyw/albertyw.com,albertyw/albertyw.com,albertyw/albertyw.com,albertyw/albertyw.com | html | ## Code Before:
{% extends "base.htm" %}
{% block title %}Albert Wang - Notes{% endblock %}
{% block head %}
{{ super() }}
{% endblock %}
{% block content %}
<div class="content">
<h1>Notes</h1>
{% for post in posts %}
<section class="note">
<h2>
{{ post['title'] | safe }}
</... |
57c933dcdaee9db46a45f104e612b575577e11a5 | README.md | README.md |
This is a fuzzy receipt parser written in Python.
It extracts information like the shop, the date, and the total form receipts.
It can work as a standalone script or as part of the [IOS and Android application](https://github.com/ReceiptManager/Application).
## History
This project started as a hackathon idea. Read... |
This is a fuzzy receipt parser written in Python.
It extracts information like the shop, the date, and the total form receipts.
It can work as a standalone script or as part of the [IOS and Android application](https://github.com/ReceiptManager/Application).
## History
This project started as a hackathon idea. Read... | Add library publish option in Makefile | Add library publish option in Makefile
| Markdown | apache-2.0 | mre/receipt-parser | markdown | ## Code Before:
This is a fuzzy receipt parser written in Python.
It extracts information like the shop, the date, and the total form receipts.
It can work as a standalone script or as part of the [IOS and Android application](https://github.com/ReceiptManager/Application).
## History
This project started as a hack... |
3dc6231fec49e0d6dfeeae4240ce7bac9b029c0d | app.css | app.css | *{
list-style: none;
}
body{
margin-top: 30px;
}
.container{
padding-top: 15px;
text-align: center;
margin: auto;
width: 400px;
height: 600px;
border: black solid;
border-radius: 15px;
overflow: scroll;
}
.list-display{
text-align: left;
padding-left: 30px;
font-size: 20px;
}
li{
border:... | *{
list-style: none;
}
body{
margin-top: 30px;
}
.container{
padding-top: 15px;
text-align: center;
margin: auto;
width: 400px;
height: 600px;
border: black solid;
border-radius: 15px;
overflow: scroll;
}
.list-display{
text-align: left;
padding-left: 30px;
font-size: 20px;
}
li{
border:... | Add strike-through when task is checked. | Add strike-through when task is checked.
| CSS | mit | rachelylim/todo_backbone,rachelylim/todo_backbone | css | ## Code Before:
*{
list-style: none;
}
body{
margin-top: 30px;
}
.container{
padding-top: 15px;
text-align: center;
margin: auto;
width: 400px;
height: 600px;
border: black solid;
border-radius: 15px;
overflow: scroll;
}
.list-display{
text-align: left;
padding-left: 30px;
font-size: 20px;
... |
d5376bf80c046b52ae744a5de775e461a9d7da55 | setup.cfg | setup.cfg | [flake8]
max-line-length=150
statistics=True
extend-ignore=E203 # To avoid conficts with black.
exclude=
.git,
__pycache__,
docs,
bedrock/settings,
node_modules,
assets,
static,
bedrock/externalfiles/files_cache,
lib/fluent_migrations
[tool:pytest]
# Hiding warnings for now, the no... | [flake8]
max-line-length=150
statistics=True
extend-ignore=E203 # To avoid conficts with black.
exclude=
.git,
__pycache__,
docs,
bedrock/settings,
node_modules,
assets,
static,
bedrock/externalfiles/files_cache,
lib/fluent_migrations
[tool:pytest]
# Hiding warnings for now, the no... | Add paul-mclendahand config to bedrock | NOTICKET: Add paul-mclendahand config to bedrock
https://github.com/willkg/paul-mclendahand makes maintenance-PR handling so much easier than one-by-one
This changeset adds a default config to make it pretty much instant to use after installation.
Note that this addition doesn't specify which remote to use, so we ma... | INI | mpl-2.0 | pascalchevrel/bedrock,craigcook/bedrock,alexgibson/bedrock,alexgibson/bedrock,flodolo/bedrock,flodolo/bedrock,pascalchevrel/bedrock,sylvestre/bedrock,mozilla/bedrock,pascalchevrel/bedrock,mozilla/bedrock,flodolo/bedrock,craigcook/bedrock,craigcook/bedrock,sylvestre/bedrock,sylvestre/bedrock,pascalchevrel/bedrock,mozill... | ini | ## Code Before:
[flake8]
max-line-length=150
statistics=True
extend-ignore=E203 # To avoid conficts with black.
exclude=
.git,
__pycache__,
docs,
bedrock/settings,
node_modules,
assets,
static,
bedrock/externalfiles/files_cache,
lib/fluent_migrations
[tool:pytest]
# Hiding warnings... |
a78b691674d8ae1a3c6b318588cd7b3d5a97fcb3 | js/Search.js | js/Search.js | import React from 'react'
import preload from '../public/data.json'
import ShowCard from './ShowCard'
const Search = React.createClass({
render () {
return (
<div className='search'>
{preload.shows.map((show) => {
return (
<ShowCard show={show} />
)
})}
... | import React from 'react'
import preload from '../public/data.json'
import ShowCard from './ShowCard'
const Search = React.createClass({
render () {
return (
<div className='search'>
{preload.shows.map((show) => {
return (
<ShowCard key={show.imdbID} show={show} />
)... | Add key prop to ShowCard. | Add key prop to ShowCard.
| JavaScript | mit | jelliotartz/FEM-react-intro,jelliotartz/FEM-react-intro | javascript | ## Code Before:
import React from 'react'
import preload from '../public/data.json'
import ShowCard from './ShowCard'
const Search = React.createClass({
render () {
return (
<div className='search'>
{preload.shows.map((show) => {
return (
<ShowCard show={show} />
)
... |
4836cb93b03eae38c0e1eebeee831f9b4fc012eb | cozify/config.py | cozify/config.py | import configparser
import os
def ephemeralWrite():
with open(ephemeralFile, 'w') as configfile:
ephemeral.write(configfile)
# prime ephemeral storage
ephemeralFile = "%s/.config/python-cozify.cfg" % os.path.expanduser('~')
try:
file = open(ephemeralFile, 'r')
except IOError:
file = open(ephemeral... | import configparser
import os
ephemeralFile = "%s/.config/python-cozify.cfg" % os.path.expanduser('~')
ephemeral = None
def ephemeralWrite():
with open(ephemeralFile, 'w') as configfile:
ephemeral.write(configfile)
# allow setting the ephemeral storage location.
# Useful especially for testing without a... | Support for changing ephemeral state storage mid-run. Mostly useful for debugging and testing without hosing your main state | Support for changing ephemeral state storage mid-run.
Mostly useful for debugging and testing without hosing your main state
| Python | mit | Artanicus/python-cozify,Artanicus/python-cozify | python | ## Code Before:
import configparser
import os
def ephemeralWrite():
with open(ephemeralFile, 'w') as configfile:
ephemeral.write(configfile)
# prime ephemeral storage
ephemeralFile = "%s/.config/python-cozify.cfg" % os.path.expanduser('~')
try:
file = open(ephemeralFile, 'r')
except IOError:
file ... |
faa3774a70e096bb31b9733def967cba6f33ca64 | src/cmd/constants.js | src/cmd/constants.js | const platformsByName = {
core: 0,
c: 0,
photon: 6,
p: 6,
p1: 8,
electron: 10,
e: 10,
duo: 88,
d: 88,
bluz: 103,
b: 103
};
const platformsById = {
0: 'Core',
6: 'Photon',
8: 'P1',
10: 'Electron',
31: 'Raspberry Pi',
88: 'Duo',
103: 'Bluz'
};
const notSourceExtensions = [
'.ds_store',
'.jpg',
'.gi... | const platformsByName = {
core: 0,
c: 0,
photon: 6,
p: 6,
p1: 8,
electron: 10,
e: 10,
duo: 88,
d: 88,
bluz: 103,
b: 103
};
const platformsById = {
0: 'Core',
6: 'Photon',
8: 'P1',
10: 'Electron',
12: 'Argon',
13: 'Boron',
14: 'Xenon',
31: 'Raspberry Pi',
88: 'Duo',
103: 'Bluz'
};
const notSourceE... | Add mesh platform names to particle list | Add mesh platform names to particle list
| JavaScript | apache-2.0 | spark/particle-cli,spark/particle-cli,spark/particle-cli,spark/particle-cli,spark/particle-cli,spark/particle-cli | javascript | ## Code Before:
const platformsByName = {
core: 0,
c: 0,
photon: 6,
p: 6,
p1: 8,
electron: 10,
e: 10,
duo: 88,
d: 88,
bluz: 103,
b: 103
};
const platformsById = {
0: 'Core',
6: 'Photon',
8: 'P1',
10: 'Electron',
31: 'Raspberry Pi',
88: 'Duo',
103: 'Bluz'
};
const notSourceExtensions = [
'.ds_store'... |
5a0a1b3d7a5b5d633027b0543292e06c8ba9cf0a | ansible/roles/openshift/tasks/main.yml | ansible/roles/openshift/tasks/main.yml | ---
- name: Setup installation pre-requisites
include: prereqs.yml
- name: Run main OpenShift Ansible installation playbook
include: install.yml
- name: Post installation bespoking
include: postinstall.yml
| ---
- block:
- name: Setup installation pre-requisites
include: prereqs.yml
- name: Run main OpenShift Ansible installation playbook
include: install.yml
- name: Post installation bespoking
include: postinstall.yml
environment:
PATH: "{{ ansible_env.PATH }}:/usr/local/bin/"
| Add /usr/local/bin to path as openshift binaries are installed there now | Add /usr/local/bin to path as openshift binaries are installed there now
| YAML | mit | wicksy/vagrant-openshift,wicksy/vagrant-openshift,wicksy/vagrant-openshift | yaml | ## Code Before:
---
- name: Setup installation pre-requisites
include: prereqs.yml
- name: Run main OpenShift Ansible installation playbook
include: install.yml
- name: Post installation bespoking
include: postinstall.yml
## Instruction:
Add /usr/local/bin to path as openshift binaries are installed there now... |
eaac51e32939586e2db769eb901597591979554c | assets/concrete5filemanager/plugin.js | assets/concrete5filemanager/plugin.js | (function() {
CKEDITOR.plugins.add('concrete5filemanager', {
init: function () {
CKEDITOR.on('dialogDefinition', function(event) {
var editor = event.editor,
dialogDefinition = event.data.definition,
tabContent = dialogDefinition.contents.l... | (function() {
CKEDITOR.plugins.add('concrete5filemanager', {
init: function () {
CKEDITOR.on('dialogDefinition', function(event) {
var editor = event.editor,
dialogDefinition = event.data.definition,
tabContent = dialogDefinition.contents.l... | Disable width/height resize on image browse selection and use inlnie url for responsive images. | Disable width/height resize on image browse selection and use inlnie url for responsive images.
Add Download URL to images automatically
| JavaScript | mit | ExchangeCore/Concrete5-CKEditor,MrKarlDilkington/Concrete5-CKEditor,MrKarlDilkington/Concrete5-CKEditor,ExchangeCore/Concrete5-CKEditor | javascript | ## Code Before:
(function() {
CKEDITOR.plugins.add('concrete5filemanager', {
init: function () {
CKEDITOR.on('dialogDefinition', function(event) {
var editor = event.editor,
dialogDefinition = event.data.definition,
tabContent = dialogDefin... |
2a1c8a0cb8881104b4dc19b48bd273259860da83 | DanDMartin/LoggerAware/Traits/LoggerAware.php | DanDMartin/LoggerAware/Traits/LoggerAware.php | <?php
namespace DanDMartin\LoggerAware\Traits;
use Psr\Log\LoggerInterface as PsrLogger;
use DanDMartin\LoggerAware\Logger\NullLogger;
trait LoggerAware
{
/**
* @var PsrLogger
*/
protected $logger;
/**
* @param PsrLogger $l
* @required
*/
public function setLogger(PsrLogger $... | <?php
namespace DanDMartin\LoggerAware\Traits;
use Psr\Log\LoggerInterface as PsrLogger;
use DanDMartin\LoggerAware\Logger\NullLogger;
trait LoggerAware
{
/**
* @var PsrLogger
*/
protected $logger;
/**
* @param PsrLogger $l
* @required
*/
public function setLogger(PsrLogger $... | Add return types to trait methods | Add return types to trait methods | PHP | mit | dan-d-martin/logger-aware | php | ## Code Before:
<?php
namespace DanDMartin\LoggerAware\Traits;
use Psr\Log\LoggerInterface as PsrLogger;
use DanDMartin\LoggerAware\Logger\NullLogger;
trait LoggerAware
{
/**
* @var PsrLogger
*/
protected $logger;
/**
* @param PsrLogger $l
* @required
*/
public function setLo... |
b007ffd1e8d5d62d01f27d036c17a4f26520829e | dotfiles/vscode/.config/Code/User/cSpell-dictionaries/mathTerms-en.txt | dotfiles/vscode/.config/Code/User/cSpell-dictionaries/mathTerms-en.txt | categorial
coequalizer
coequalizers
colimit
colimits
componentwise
coproduct
coproducts
cospan
cospans
disabling
disablings
epi
epimorphism
epimorphisms
epis
finitary
hyperedge
hyperedges
hypergraph
hypergraphs
monic
mono
monoid
monoids
monomorphism
monomorphisms
monos
overlappings
postcomposing
preimage
preimages
pull... | categorial
codomain
codomains
coequalizer
coequalizers
colimit
colimits
componentwise
coproduct
coproducts
cospan
cospans
disabling
disablings
domain
domains
epi
epimorphism
epimorphisms
epis
finitary
hyperedge
hyperedges
hypergraph
hypergraphs
monic
mono
monoid
monoids
monomorphism
monomorphisms
monos
overlappings
pos... | Improve VS code spell-check for math | Improve VS code spell-check for math
| Text | bsd-3-clause | ggazzi/linux-configs | text | ## Code Before:
categorial
coequalizer
coequalizers
colimit
colimits
componentwise
coproduct
coproducts
cospan
cospans
disabling
disablings
epi
epimorphism
epimorphisms
epis
finitary
hyperedge
hyperedges
hypergraph
hypergraphs
monic
mono
monoid
monoids
monomorphism
monomorphisms
monos
overlappings
postcomposing
preimag... |
54fa05b3dbe2c28d8dfe68c0405e598154135abc | app/scripts/configs/modes/public-brokerage.js | app/scripts/configs/modes/public-brokerage.js | 'use strict';
angular.module('ncsaas')
.constant('MODE', {
modeName: 'modePublicBrokerage',
toBeFeatures: [
'eventlog',
'localSignup',
'users',
'people',
'backups',
'templates',
'monitoring',
'projectGroups'
],
featuresVisible: false
});
| 'use strict';
angular.module('ncsaas')
.constant('MODE', {
modeName: 'modePublicBrokerage',
toBeFeatures: [
'localSignup',
'users',
'people',
'backups',
'templates',
'monitoring',
'projectGroups'
],
featuresVisible: false
});
| Enable eventlog in public brokerage mode (SAAS-840) | Enable eventlog in public brokerage mode (SAAS-840)
| JavaScript | mit | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | javascript | ## Code Before:
'use strict';
angular.module('ncsaas')
.constant('MODE', {
modeName: 'modePublicBrokerage',
toBeFeatures: [
'eventlog',
'localSignup',
'users',
'people',
'backups',
'templates',
'monitoring',
'projectGroups'
],
featuresVisible: false
}... |
8c2ce065ea41ab30156f9a8b1f18a28bc388d325 | doc/abs.txt | doc/abs.txt | PLplot is a library of C functions that are useful for making scientific
plots from a program written in C or Fortran. The PLplot library can be
used to create standard x-y plots, semilog plots, log-log plots, contour
plots, 3D plots, mesh plots, bar charts and pie charts. Multiple graphs
(of the same or different si... | PLplot is a library of C functions that are useful for making scientific
plots from a program written in C or Fortran. The PLplot library can be
used to create standard x-y plots, semilog plots, log-log plots, contour
plots, 3D plots, mesh plots, bar charts and pie charts. Multiple graphs (of
the same or different si... | Change wording at end to get licensing right (PLplot is not public domain!) and to modernize the list of systems where it works. | Change wording at end to get licensing right (PLplot is not public domain!)
and to modernize the list of systems where it works.
svn path=/trunk/; revision=5860
| Text | lgpl-2.1 | FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot | text | ## Code Before:
PLplot is a library of C functions that are useful for making scientific
plots from a program written in C or Fortran. The PLplot library can be
used to create standard x-y plots, semilog plots, log-log plots, contour
plots, 3D plots, mesh plots, bar charts and pie charts. Multiple graphs
(of the same... |
c8a374e409e83c685825e5822826e6378acb8c3a | README.md | README.md | CMS for National Ugly Mugs
|
[](https://travis-ci.org/uglymugs/JustNUM) [](https://coveralls.io/github/uglymugs/JustNUM?branch=master)
CMS for National Ugly Mugs
| Add build and coverage badges | Add build and coverage badges | Markdown | unlicense | uglymugs/JustNUM,uglymugs/JustNUM | markdown | ## Code Before:
CMS for National Ugly Mugs
## Instruction:
Add build and coverage badges
## Code After:
[](https://travis-ci.org/uglymugs/JustNUM) [](... |
2be23a9eab25d53bafd000f830605da49ffa3a72 | home/energy/us/state/itemdef.csv | home/energy/us/state/itemdef.csv | name,Energy US State,,,
algFile,default.js
name,path,type,isDataItemValue,isDrillDown
kWh Per Month,kWhPerMonth,DECIMAL,FALSE,FALSE
State,state,TEXT,TRUE,TRUE
kg CO2 per kWh,kgCO2PerkWh,DECIMAL,TRUE,FALSE
Source,source,TEXT,TRUE,FALSE
| name,Energy US State
algFile,default.js
name,path,type,isDataItemValue,isDrillDown,unit,perUnit,default,choices
kWh Per Month,kWhPerMonth,DECIMAL,false,false,,,,
State,state,TEXT,true,true,,,,
kg CO2 per kWh,kgCO2PerkWh,DECIMAL,true,false,,,,
Source,source,TEXT,true,false,,,,
| Add missing (empty) values to Energy US State item def. | Add missing (empty) values to Energy US State item def.
| CSV | mit | OpenAMEE/datasets | csv | ## Code Before:
name,Energy US State,,,
algFile,default.js
name,path,type,isDataItemValue,isDrillDown
kWh Per Month,kWhPerMonth,DECIMAL,FALSE,FALSE
State,state,TEXT,TRUE,TRUE
kg CO2 per kWh,kgCO2PerkWh,DECIMAL,TRUE,FALSE
Source,source,TEXT,TRUE,FALSE
## Instruction:
Add missing (empty) values to Energy US State item d... |
6d11fe3774ad16f29b5f099cdb2dc82ff33db66e | macosx/scripts/iTunes/mobile-speakers.applescript | macosx/scripts/iTunes/mobile-speakers.applescript | (*
Script object to make calling a defined function easier while in the
iTunes and System Events name space.
*)
script remoteSpeakerFinder
-- Given a list of buttons, find the remote speakers button
-- by finding the first button with a name that isn't in a
-- rejection list.
on findCorrectButton (in_butto... | (*
Script object to make calling a defined function easier while in the
iTunes and System Events name space.
*)
script remoteSpeakerFinder
-- Given a list of buttons, find the remote speakers button
-- by finding the first button with a name that isn't in a
-- rejection list.
on findCorrectButton (in_butto... | Work around an issue with iTunes 9 that causes it to delay a connection to remote speakers | Work around an issue with iTunes 9 that causes it to delay a
connection to remote speakers
| AppleScript | bsd-3-clause | pjones/emacsrc | applescript | ## Code Before:
(*
Script object to make calling a defined function easier while in the
iTunes and System Events name space.
*)
script remoteSpeakerFinder
-- Given a list of buttons, find the remote speakers button
-- by finding the first button with a name that isn't in a
-- rejection list.
on findCorrect... |
8a2db1247ec45d86e738aadfa0f591ad56d17948 | source/api_reference.rst | source/api_reference.rst | .. _api-reference:
API Reference
##############
.. toctree::
api-intro
api-sending
api-domains
api-stats
api-events
api-suppressions
api-routes
api-webhooks
api-mailinglists
api-email-validation
| .. _api-reference:
API Reference
##############
.. toctree::
api-intro
api-sending
api-domains
api-events
api-stats
api-tags
api-suppressions
api-routes
api-webhooks
api-mailinglists
api-email-validation
| Add tags API ref to the nav | Add tags API ref to the nav
| reStructuredText | mit | mailgun/documentation,mailgun/documentation,mailgun/documentation | restructuredtext | ## Code Before:
.. _api-reference:
API Reference
##############
.. toctree::
api-intro
api-sending
api-domains
api-stats
api-events
api-suppressions
api-routes
api-webhooks
api-mailinglists
api-email-validation
## Instruction:
Add tags API ref to the nav
## Code After:
.. _api-referen... |
cc9cae41e368e6834190c0316a9425b6bcba6ecd | src/main/java/de/craften/plugins/educraft/luaapi/functions/MoveForwardFunction.java | src/main/java/de/craften/plugins/educraft/luaapi/functions/MoveForwardFunction.java | package de.craften.plugins.educraft.luaapi.functions;
import de.craften.plugins.educraft.luaapi.EduCraftApiFunction;
import org.bukkit.Location;
import org.bukkit.block.BlockFace;
import org.luaj.vm2.LuaValue;
import org.luaj.vm2.Varargs;
/**
* Lua API function to move one block forward.
*/
public class MoveForward... | package de.craften.plugins.educraft.luaapi.functions;
import de.craften.plugins.educraft.luaapi.EduCraftApiFunction;
import org.bukkit.Location;
import org.bukkit.block.BlockFace;
import org.bukkit.entity.Entity;
import org.luaj.vm2.LuaValue;
import org.luaj.vm2.Varargs;
import java.util.Collection;
/**
* Lua API f... | Check for entities ahead before moving forward. | Check for entities ahead before moving forward.
| Java | mit | leMaik/EduCraft | java | ## Code Before:
package de.craften.plugins.educraft.luaapi.functions;
import de.craften.plugins.educraft.luaapi.EduCraftApiFunction;
import org.bukkit.Location;
import org.bukkit.block.BlockFace;
import org.luaj.vm2.LuaValue;
import org.luaj.vm2.Varargs;
/**
* Lua API function to move one block forward.
*/
public c... |
0a249892a80422e2d919ae1049e2cccfb8adccbb | modules/preferences/src/appleMain/kotlin/splitties/preferences/Changes.kt | modules/preferences/src/appleMain/kotlin/splitties/preferences/Changes.kt | /*
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
package splitties.preferences
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.channels.awaitClose
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.channe... | /*
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
package splitties.preferences
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.channels.awaitClose
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.channe... | Use NSOperationQueue.mainQueue if on main thread | Use NSOperationQueue.mainQueue if on main thread
| Kotlin | apache-2.0 | LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties | kotlin | ## Code Before:
/*
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
package splitties.preferences
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.channels.awaitClose
import kotlinx.coroutines.flow.Flow
import kotlinx.corout... |
9b38a5b7a5ad7a95e1f6d14c609b2d3b0cf931b9 | lib/node_modules/@stdlib/math/base/special/max/docs/repl.txt | lib/node_modules/@stdlib/math/base/special/max/docs/repl.txt |
{{alias}}( [x[, y[, ...args]]] )
Returns the maximum value.
If any argument is `NaN`, the function returns `NaN`.
If not provided any arguments, the function returns `-infinity`.
When an empty set is considered a subset of the extended reals (all real
numbers, including positive and negative inf... |
{{alias}}( [x[, y[, ...args]]] )
Returns the maximum value.
If any argument is `NaN`, the function returns `NaN`.
When an empty set is considered a subset of the extended reals (all real
numbers, including positive and negative infinity), negative infinity is the
least upper bound. Similar to zer... | Update note and fix parameter type | Update note and fix parameter type
| Text | apache-2.0 | stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib | text | ## Code Before:
{{alias}}( [x[, y[, ...args]]] )
Returns the maximum value.
If any argument is `NaN`, the function returns `NaN`.
If not provided any arguments, the function returns `-infinity`.
When an empty set is considered a subset of the extended reals (all real
numbers, including positive ... |
00768787511b0e1c4d0da264fdaafc30d820563f | .travis.yml | .travis.yml | language: ruby
rvm:
- 2.2.2
- 2.3
- 2.4
- 2.5
- 2.6
before_install: gem install bundler -v 1.11.2
addons:
code_climate:
repo_token: 0b8e41ecbc26637a7db4e6e9d4581c445441674f689016ab45fb5c51242b59bf
after_success:
- bundle exec codeclimate-test-reporter | language: ruby
rvm:
- 2.4
- 2.5
- 2.6
before_install: gem install bundler -v 1.11.2
addons:
code_climate:
repo_token: 0b8e41ecbc26637a7db4e6e9d4581c445441674f689016ab45fb5c51242b59bf
after_success:
- bundle exec codeclimate-test-reporter | Support ruby 2.4 and up | Support ruby 2.4 and up
| YAML | mit | maartenvanvliet/moneybird,maartenvanvliet/moneybird | yaml | ## Code Before:
language: ruby
rvm:
- 2.2.2
- 2.3
- 2.4
- 2.5
- 2.6
before_install: gem install bundler -v 1.11.2
addons:
code_climate:
repo_token: 0b8e41ecbc26637a7db4e6e9d4581c445441674f689016ab45fb5c51242b59bf
after_success:
- bundle exec codeclimate-test-reporter
## Instruction:
Support ru... |
10782310cfee0d2c2938748056f6549b5918b969 | src/sentry/debug/utils/patch_context.py | src/sentry/debug/utils/patch_context.py | from __future__ import absolute_import
from sentry.utils.imports import import_string
class PatchContext(object):
def __init__(self, target, callback):
target, attr = target.rsplit('.', 1)
target = import_string(target)
self.func = getattr(target, attr)
self.target = target
... | from __future__ import absolute_import
from threading import Lock
from sentry.utils.imports import import_string
class PatchContext(object):
def __init__(self, target, callback):
target, attr = target.rsplit('.', 1)
target = import_string(target)
self.target = target
self.attr = a... | Use a thread lock to patch contexts. | Use a thread lock to patch contexts.
This fixes #3185
| Python | bsd-3-clause | looker/sentry,zenefits/sentry,mvaled/sentry,alexm92/sentry,alexm92/sentry,looker/sentry,gencer/sentry,ifduyue/sentry,jean/sentry,JackDanger/sentry,JackDanger/sentry,ifduyue/sentry,BuildingLink/sentry,gencer/sentry,beeftornado/sentry,BuildingLink/sentry,mvaled/sentry,JamesMura/sentry,jean/sentry,zenefits/sentry,zenefits... | python | ## Code Before:
from __future__ import absolute_import
from sentry.utils.imports import import_string
class PatchContext(object):
def __init__(self, target, callback):
target, attr = target.rsplit('.', 1)
target = import_string(target)
self.func = getattr(target, attr)
self.target... |
0e8072191b3460ef770c55e306ac59d7433aa715 | README.md | README.md |
> Sex. Almost everyone does it, but almost no one wants to talk about. It is quite the paradox when you consider how vital sex is to human life. Not only is it the act that propels our species forward, but it is also a way to bond with a romantic partner, a way to relieve the stress of daily life, not to mention an en... |
*More information is available at [alphasocial.club](http://alphasocial.club) blog. Login: `admin / Alpha.Omega`*
## What is it?
Alpha Social Club is a social environment for members to explore their sexuality in non-pornographic context. Sex is one of the most fundamental social activities.
## Key Values and Princi... | Update the outline for newly revised documentation. | Update the outline for newly revised documentation.
| Markdown | mit | Alpha-Directorate/AlphaSSS,Alpha-Directorate/AlphaSSS,Alpha-Directorate/AlphaSSS,Alpha-Directorate/AlphaSSS | markdown | ## Code Before:
> Sex. Almost everyone does it, but almost no one wants to talk about. It is quite the paradox when you consider how vital sex is to human life. Not only is it the act that propels our species forward, but it is also a way to bond with a romantic partner, a way to relieve the stress of daily life, not ... |
d5f5f1fa29a2f6b8313fe8776cb8e9173a34c2da | tests/phpunit.xml | tests/phpunit.xml | <?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" bootstrap="./bootstrap.php" verbose="true" xsi:noNamespaceSchemaLo... | <?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" bootstrap="./bootstrap.php" verbose="true" xsi:noNamespaceSchemaLo... | Fix the location of VCRTestListener.php | Fix the location of VCRTestListener.php
| XML | mit | jacques/php-sms | xml | ## Code Before:
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" bootstrap="./bootstrap.php" verbose="true" xsi:noN... |
791e03258c53379dde587a4bf0c05e0d2bc053ad | test_tbselenium.py | test_tbselenium.py |
import os
import site
import sys
sys.path.append(os.path.join(os.getcwd(), 'tor-browser-selenium'))
# site.addsitedir(path.join(getcwd(), 'tor-browser-selenium'))
from tbselenium.tbdriver import TorBrowserDriver
with TorBrowserDriver('~/.tb-stable/tor-browser_en-US/') as driver:
driver.get('https://check.torproje... |
import os
import site
site.addsitedir(os.path.join(os.getcwd(), 'tor-browser-selenium'))
from tbselenium.tbdriver import TorBrowserDriver
home_dir = os.path.expanduser('~')
tbb_path = os.path.join(home_dir, 'tbb', 'tor-browser_en-US')
tbb_fx_path = os.path.join(tbb_path, 'Browser', 'firefox')
tbb_profile_path = os.pa... | Fix test to work with patched tbdriver.py (see NOTICE in diff) | Fix test to work with patched tbdriver.py (see NOTICE in diff)
| Python | agpl-3.0 | freedomofpress/fingerprint-securedrop,freedomofpress/FingerprintSecureDrop,freedomofpress/fingerprint-securedrop,freedomofpress/FingerprintSecureDrop,freedomofpress/fingerprint-securedrop | python | ## Code Before:
import os
import site
import sys
sys.path.append(os.path.join(os.getcwd(), 'tor-browser-selenium'))
# site.addsitedir(path.join(getcwd(), 'tor-browser-selenium'))
from tbselenium.tbdriver import TorBrowserDriver
with TorBrowserDriver('~/.tb-stable/tor-browser_en-US/') as driver:
driver.get('https:... |
6b803455aa90469840674094c22583b6772c8bc3 | lib/node_modules/@stdlib/utils/deep-pluck/docs/repl.txt | lib/node_modules/@stdlib/utils/deep-pluck/docs/repl.txt |
{{alias}}( arr, path[, options] )
Extracts a nested property value from each element of an object array.
Parameters
----------
arr: Array
Source array.
path: string|Array
Key path.
options: Object (optional)
Options.
options.copy: boolean (optional)
Boole... |
{{alias}}( arr, path[, options] )
Extracts a nested property value from each element of an object array.
If a key path does not exist, the function sets the plucked value as
`undefined`.
Extracted values are not cloned.
Parameters
----------
arr: Array
Source array.
path: st... | Add notes and fix default value | Add notes and fix default value
| Text | apache-2.0 | stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib | text | ## Code Before:
{{alias}}( arr, path[, options] )
Extracts a nested property value from each element of an object array.
Parameters
----------
arr: Array
Source array.
path: string|Array
Key path.
options: Object (optional)
Options.
options.copy: boolean (optiona... |
7431bb83209e8b8cb337a246eb815d10ce377f14 | modules/core/common/net.ts | modules/core/common/net.ts | import url from 'url';
import { PLATFORM } from './utils';
export const serverPort = PLATFORM === 'server' && (process.env.PORT || __SERVER_PORT__);
export const isApiExternal = !!url.parse(__API_URL__).protocol;
const clientApiUrl =
!isApiExternal && PLATFORM !== 'server'
? `${window.location.protocol}//${wind... | import url from 'url';
import { PLATFORM } from './utils';
export const serverPort =
PLATFORM === 'server' && (process.env.PORT || (typeof __SERVER_PORT__ !== 'undefined' ? __SERVER_PORT__ : 8080));
export const isApiExternal = !!url.parse(__API_URL__).protocol;
const clientApiUrl =
!isApiExternal && PLATFORM !==... | Use 8080 as default __SERVER_PORT__ | Use 8080 as default __SERVER_PORT__
| TypeScript | mit | sysgears/apollo-universal-starter-kit,sysgears/apollo-fullstack-starter-kit,sysgears/apollo-universal-starter-kit,sysgears/apollo-universal-starter-kit,sysgears/apollo-universal-starter-kit | typescript | ## Code Before:
import url from 'url';
import { PLATFORM } from './utils';
export const serverPort = PLATFORM === 'server' && (process.env.PORT || __SERVER_PORT__);
export const isApiExternal = !!url.parse(__API_URL__).protocol;
const clientApiUrl =
!isApiExternal && PLATFORM !== 'server'
? `${window.location.p... |
3efbc833798658b341771974293fb04bb7eae044 | README.md | README.md | byr-location
============
A Chrome extension that shows location of every post in BYR bbs. Available on Chrome Web Store: [https://chrome.google.com/webstore/detail/byr-ip-to-location/fkgdjdphlpgcccgfaacjkchmphafhcmd](https://chrome.google.com/webstore/detail/byr-ip-to-location/fkgdjdphlpgcccgfaacjkchmphafhcmd) 。
IP ... | byr-location
============
A Chrome extension that shows location of every post in BYR bbs. Available on Chrome Web Store: [https://chrome.google.com/webstore/detail/byr-ip-to-location/fkgdjdphlpgcccgfaacjkchmphafhcmd](https://chrome.google.com/webstore/detail/byr-ip-to-location/fkgdjdphlpgcccgfaacjkchmphafhcmd) 。

`git --git-dir #{Mestral::Repository.current.git_dir} #{command}`
end
def pass
raise Mestral::Hooklet::Finished, true
end
end
|
module Mestral::Hooklet::DSL
def fail
raise Mestral::Hooklet::Finished, false
end
def git(command)
`git --git-dir #{repo.git_dir} #{command}`
end
def config
repo.config['%s:%s' % [tape.name, name]]
end
def pass
raise Mestral::Hooklet::Finished, true
end
def repo
Mestral::Repo... | Allow configuration of individual hooklets | Allow configuration of individual hooklets
| Ruby | bsd-3-clause | mestral/mestral | ruby | ## Code Before:
module Mestral::Hooklet::DSL
def fail
raise Mestral::Hooklet::Finished, false
end
def git(command)
`git --git-dir #{Mestral::Repository.current.git_dir} #{command}`
end
def pass
raise Mestral::Hooklet::Finished, true
end
end
## Instruction:
Allow configuration of individual... |
c3ce4ddd65226ea2d2ff632b6ec0ad67f10401bb | docker-entrypoint.sh | docker-entrypoint.sh | set -e
source /opt/rh/php55/enable
# Create required directories just in case.
mkdir -p /var/www/logs/php-fpm /var/www/files-private /var/www/docroot
echo "*" > /var/www/logs/.gitignore
# Set the apache user and group to match the host user.
OWNER=$(stat -c '%u' /var/www)
GROUP=$(stat -c '%g' /var/www)
if [ "$OWNER"... | set -e
source /opt/rh/php55/enable
# Create required directories just in case.
mkdir -p /var/www/logs/php-fpm /var/www/files-private /var/www/docroot
echo "*" > /var/www/logs/.gitignore
# Set the apache user and group to match the host user.
# Optionally use the HOST_USER env var if provided.
if [ "$HOST_USER" ]; th... | Allow optional HOST_USER ids for apache user | Allow optional HOST_USER ids for apache user
| Shell | mit | davenuman/docker-bowline,davenuman/docker-bowline | shell | ## Code Before:
set -e
source /opt/rh/php55/enable
# Create required directories just in case.
mkdir -p /var/www/logs/php-fpm /var/www/files-private /var/www/docroot
echo "*" > /var/www/logs/.gitignore
# Set the apache user and group to match the host user.
OWNER=$(stat -c '%u' /var/www)
GROUP=$(stat -c '%g' /var/ww... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.