commit stringlengths 40 40 | old_file stringlengths 4 184 | new_file stringlengths 4 184 | old_contents stringlengths 1 3.6k | new_contents stringlengths 5 3.38k | subject stringlengths 15 778 | message stringlengths 16 6.74k | lang stringclasses 201
values | license stringclasses 13
values | repos stringlengths 6 116k | config stringclasses 201
values | content stringlengths 137 7.24k | diff stringlengths 26 5.55k | diff_length int64 1 123 | relative_diff_length float64 0.01 89 | n_lines_added int64 0 108 | n_lines_deleted int64 0 106 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15e98de4b9d7f60343d42d751e544e0f32732821 | README.md | README.md | melonJS boilerplate
-------------------------------------------------------------------------------
features :
- video autoscaling
- mobile optimized HTML/CSS
- swiping disabled on iOS devices
- debug Panel (if #debug)
-------------------------------------------------------------------------------
Copyright (C) 2011 ... | 1. Compile coffee to js runtime
`coffee -o js/ -cw src/`
| Add info how to compile coffee script | Add info how to compile coffee script
| Markdown | mit | goozzik/btk | markdown | ## Code Before:
melonJS boilerplate
-------------------------------------------------------------------------------
features :
- video autoscaling
- mobile optimized HTML/CSS
- swiping disabled on iOS devices
- debug Panel (if #debug)
-------------------------------------------------------------------------------
Cop... | + 1. Compile coffee to js runtime
+ `coffee -o js/ -cw src/`
- melonJS boilerplate
- -------------------------------------------------------------------------------
-
- features :
- - video autoscaling
- - mobile optimized HTML/CSS
- - swiping disabled on iOS devices
- - debug Panel (if #debug)
-
- ----------------... | 14 | 1.166667 | 2 | 12 |
9371463ad9c16dd6801b8a8578d6d786d1d36f38 | src/BloomBrowserUI/branding/PNG-RISE/branding.json | src/BloomBrowserUI/branding/PNG-RISE/branding.json | {
"presets": [
{
"//note": "Normally we would set this to outside-back-cover-branding-top-html, but when this branding was introduced, we didn't have that option; we could only insert text into the edit box (data-book=outsideBackCover). If we were to change to the new system, all old books, whic... | {
"presets": [
{
"data-book": "title-page-branding-bottom-html",
"lang": "*",
"content": "<img class='branding' src='title-page.png'/>",
"condition": "always"
},
{
"data-book": "outside-back-cover-branding-bottom-html",
... | Remove PNG-RISE contact information boilerplate as requested (BL-9546) | Remove PNG-RISE contact information boilerplate as requested (BL-9546)
This does nothing to remove it from existing books, but at least it will
stop introducing it automatically.
| JSON | mit | StephenMcConnel/BloomDesktop,gmartin7/myBloomFork,StephenMcConnel/BloomDesktop,BloomBooks/BloomDesktop,BloomBooks/BloomDesktop,StephenMcConnel/BloomDesktop,gmartin7/myBloomFork,StephenMcConnel/BloomDesktop,StephenMcConnel/BloomDesktop,BloomBooks/BloomDesktop,BloomBooks/BloomDesktop,gmartin7/myBloomFork,BloomBooks/Bloom... | json | ## Code Before:
{
"presets": [
{
"//note": "Normally we would set this to outside-back-cover-branding-top-html, but when this branding was introduced, we didn't have that option; we could only insert text into the edit box (data-book=outsideBackCover). If we were to change to the new system, all... | {
"presets": [
- {
- "//note": "Normally we would set this to outside-back-cover-branding-top-html, but when this branding was introduced, we didn't have that option; we could only insert text into the edit box (data-book=outsideBackCover). If we were to change to the new system, all old boo... | 7 | 0.291667 | 0 | 7 |
e981cc2a51cf6bf099b4115610500aecb1ace270 | sources/wmo.int/2015-country-matcher/meta.txt | sources/wmo.int/2015-country-matcher/meta.txt | URL: https://www.wmo.int/cpdb/tools/countrymatcher
Title: Country2PUB5 matcher
Description:
Please input country names into the textfield
and press match to start matching process
| URL: https://www.wmo.int/cpdb/tools/countrymatcher
Title: Country2PUB5 matcher
Checked: 2015-01-28
Description:
Please input country names into the textfield
and press match to start matching process
| Check data.csv vs source in HTML format | Check data.csv vs source in HTML format
I compared the data with the table row by row, and found no differences.
| Text | cc0-1.0 | eric-brechemier/ipcc-countries,eric-brechemier/ipcc-countries | text | ## Code Before:
URL: https://www.wmo.int/cpdb/tools/countrymatcher
Title: Country2PUB5 matcher
Description:
Please input country names into the textfield
and press match to start matching process
## Instruction:
Check data.csv vs source in HTML format
I compared the data with the table row by row, and found no diffe... | URL: https://www.wmo.int/cpdb/tools/countrymatcher
Title: Country2PUB5 matcher
+ Checked: 2015-01-28
Description:
Please input country names into the textfield
and press match to start matching process | 1 | 0.166667 | 1 | 0 |
33cf5f7dedbde1ac7d2bd46f64e0fe429676bf6b | README.md | README.md |
Basic implementation of EventEmitter in Dart.
## Limitations
* `EventEmitter::emit` does not allow (yet!) to pass dynamic number of arguments to handler
## To be done
* Create `EventInterface` to be able to hold data needed to handle event by event listener (removes need to pass dynamic number of arguments to `emit`... | [](https://travis-ci.org/eps90/event-emitter.dart)
[](https://coveralls.io/r/eps90/event-emitter.dart?branch=master)
Basic implementation of Ev... | Add Travis CI and Coveralls badges | Add Travis CI and Coveralls badges
| Markdown | mit | eps90/event-emitter.dart,eps90/event-emitter.dart | markdown | ## Code Before:
Basic implementation of EventEmitter in Dart.
## Limitations
* `EventEmitter::emit` does not allow (yet!) to pass dynamic number of arguments to handler
## To be done
* Create `EventInterface` to be able to hold data needed to handle event by event listener (removes need to pass dynamic number of arg... | + [](https://travis-ci.org/eps90/event-emitter.dart)
+ [](https://coveralls.io/r/eps90/event-emitter.dart?branch=master)
Basic implementati... | 2 | 0.142857 | 2 | 0 |
f1ddcc890bc3df048a913a75460bcb277381c924 | source/css/main.css | source/css/main.css | /* custom properties */
/* custom selectors */
/* usage */
h1,
h2,
h3,
h4,
h5,
h6 {
color: #000000;
color: rgba(0, 0, 0, 0.9);
}
pre,
.highlight {
background: #212121;
}
pre,
.highlight {
background: #2e2e2e;
color: #ddd;
line-height: 0.8em
}
pre .constant, .highlight .constant {
color: #66d9ef;
}
| /* custom properties */
/* custom selectors */
/* usage */
h1,
h2,
h3,
h4,
h5,
h6 {
color: #000000;
color: rgba(0, 0, 0, 0.9);
}
pre,
.highlight {
background: #212121;
}
pre,
.highlight {
color: #f5f5f5
}
pre .string, .highlight .string {
color: #ffeb3b;
}
pre .comment, .highlight .comment {
color: #7272... | Add first version of syntax highlighting | Add first version of syntax highlighting
Built from c5a0c4724cb14420ddce23b12c29264db0659847.
| CSS | mit | ahaasler/hexo-theme-colos,ahaasler/hexo-theme-colos | css | ## Code Before:
/* custom properties */
/* custom selectors */
/* usage */
h1,
h2,
h3,
h4,
h5,
h6 {
color: #000000;
color: rgba(0, 0, 0, 0.9);
}
pre,
.highlight {
background: #212121;
}
pre,
.highlight {
background: #2e2e2e;
color: #ddd;
line-height: 0.8em
}
pre .constant, .highlight .constant {
color:... | /* custom properties */
/* custom selectors */
/* usage */
h1,
h2,
h3,
h4,
h5,
h6 {
color: #000000;
color: rgba(0, 0, 0, 0.9);
}
pre,
.highlight {
background: #212121;
}
pre,
.highlight {
+ color: #f5f5f5
- background: #2e2e2e;
- color: #ddd;
- line-height: 0.8... | 17 | 0.607143 | 12 | 5 |
077ec2b416d3a69bf82c52f5d18e361f014122f6 | tests/Functional/BatchActionsTest.php | tests/Functional/BatchActionsTest.php | <?php
declare(strict_types=1);
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\DoctrineORMAdminBundl... | <?php
declare(strict_types=1);
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\DoctrineORMAdminBundl... | Add another case to delete | Add another case to delete
| PHP | mit | sonata-project/SonataDoctrineORMAdminBundle | php | ## Code Before:
<?php
declare(strict_types=1);
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\Doctr... | <?php
declare(strict_types=1);
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace ... | 1 | 0.022222 | 1 | 0 |
2acdd992ac239e9fd6be320452f80f38928765fd | web_external/js/models/WmsSourceModel.js | web_external/js/models/WmsSourceModel.js | minerva.models.WmsSourceModel = minerva.models.SourceModel.extend({
createSource: function (name, baseURL, projection) {
var params = {
name: name,
baseURL: baseURL,
projection: projection
};
girder.restRequest({
path: '/minerva_source/wms_sou... | minerva.models.WmsSourceModel = minerva.models.SourceModel.extend({
createSource: function (name, baseURL) {
var params = {
name: name,
baseURL: baseURL
};
girder.restRequest({
path: '/minerva_source/wms_source',
type: 'POST',
data... | Remove projection from client WMSSource Model | Remove projection from client WMSSource Model
| JavaScript | apache-2.0 | Kitware/minerva,Kitware/minerva,Kitware/minerva | javascript | ## Code Before:
minerva.models.WmsSourceModel = minerva.models.SourceModel.extend({
createSource: function (name, baseURL, projection) {
var params = {
name: name,
baseURL: baseURL,
projection: projection
};
girder.restRequest({
path: '/minerv... | minerva.models.WmsSourceModel = minerva.models.SourceModel.extend({
- createSource: function (name, baseURL, projection) {
? ------------
+ createSource: function (name, baseURL) {
var params = {
name: name,
- baseURL: baseURL,
?... | 5 | 0.217391 | 2 | 3 |
b7b41a160294edd987f73be7817c8b08aa8ed70e | herders/templatetags/utils.py | herders/templatetags/utils.py | from django import template
register = template.Library()
@register.filter
def get_range(value):
return range(value)
@register.filter
def absolute(value):
return abs(value)
@register.filter
def subtract(value, arg):
return value - arg
@register.filter
def multiply(value, arg):
return value * ar... | from django import template
register = template.Library()
@register.filter
def get_range(value):
if value:
return range(value)
else:
return 0
@register.filter
def absolute(value):
return abs(value)
@register.filter
def subtract(value, arg):
return value - arg
@register.filter
de... | Return 0 with the get_range filter if value is invalid instead of raise exception | Return 0 with the get_range filter if value is invalid instead of raise exception
| Python | apache-2.0 | porksmash/swarfarm,PeteAndersen/swarfarm,PeteAndersen/swarfarm,porksmash/swarfarm,PeteAndersen/swarfarm,porksmash/swarfarm,porksmash/swarfarm,PeteAndersen/swarfarm | python | ## Code Before:
from django import template
register = template.Library()
@register.filter
def get_range(value):
return range(value)
@register.filter
def absolute(value):
return abs(value)
@register.filter
def subtract(value, arg):
return value - arg
@register.filter
def multiply(value, arg):
r... | from django import template
register = template.Library()
@register.filter
def get_range(value):
+ if value:
- return range(value)
+ return range(value)
? ++++
+ else:
+ return 0
@register.filter
def absolute(value):
return abs(value)
@register.filte... | 5 | 0.178571 | 4 | 1 |
b4946f54a646003b907eb98469f96656bf212d36 | README.md | README.md | Code and notes for FENS 2015 Winter School on decision-making
=============================================================
This repository contains all the MATLAB code used to generate the figures for my tutorial on normative solutions to the speed/accuracy trade-off, held at the FENS-Hertie 2015 Winter School on the... | Code and notes for FENS 2015 Winter School on decision-making
=============================================================
This repository contains all the MATLAB code used to generate the figures for my tutorial on normative solutions to the speed/accuracy trade-off, held at the FENS-Hertie 2015 Winter School on the... | Update URLs for tutorial notes and slides | Update URLs for tutorial notes and slides
| Markdown | bsd-3-clause | jdrugo/FENS2015 | markdown | ## Code Before:
Code and notes for FENS 2015 Winter School on decision-making
=============================================================
This repository contains all the MATLAB code used to generate the figures for my tutorial on normative solutions to the speed/accuracy trade-off, held at the FENS-Hertie 2015 Wint... | Code and notes for FENS 2015 Winter School on decision-making
=============================================================
This repository contains all the MATLAB code used to generate the figures for my tutorial on normative solutions to the speed/accuracy trade-off, held at the FENS-Hertie 2015 Winter Schoo... | 2 | 0.333333 | 1 | 1 |
644dd60a79e6ef1f2d1f838d177669fa133d17ac | environment/stage3/terpri.lisp | environment/stage3/terpri.lisp | ;;;;; tré – Copyright (c) 2013 Sven Michael Klose <pixel@copei.de>
(defvar *terpri* (format nil "~%"))
| ;;;;; tré – Copyright (c) 2013–2014 Sven Michael Klose <pixel@copei.de>
(defvar *terpri* (string (code-char 10)))
| Use CODE-CHAR instead of FORMAT. | Use CODE-CHAR instead of FORMAT.
| Common Lisp | mit | SvenMichaelKlose/tre,SvenMichaelKlose/tre,SvenMichaelKlose/tre | common-lisp | ## Code Before:
;;;;; tré – Copyright (c) 2013 Sven Michael Klose <pixel@copei.de>
(defvar *terpri* (format nil "~%"))
## Instruction:
Use CODE-CHAR instead of FORMAT.
## Code After:
;;;;; tré – Copyright (c) 2013–2014 Sven Michael Klose <pixel@copei.de>
(defvar *terpri* (string (code-char 10)))
| - ;;;;; tré – Copyright (c) 2013 Sven Michael Klose <pixel@copei.de>
+ ;;;;; tré – Copyright (c) 2013–2014 Sven Michael Klose <pixel@copei.de>
? +++++
- (defvar *terpri* (format nil "~%"))
+ (defvar *terpri* (string (code-char 10))) | 4 | 1.333333 | 2 | 2 |
a77002def2498b984b982e1cb4e4a879957a4426 | package.json | package.json | {
"name": "kuber.pl",
"version": "0.1.0",
"description": "Basic calendar of the current year with custom labels",
"engines": {
"node": "6.10.2"
},
"main": "index.js",
"scripts": {
"start": "node index.js",
"test": "mocha tests/**.spec.js"
},
"dependencies": {
"bluebird": "3.5.0",
"... | {
"name": "kuber.pl",
"version": "0.1.0",
"description": "Basic calendar of the current year with custom labels",
"engines": {
"node": "6.10.2"
},
"main": "index.js",
"scripts": {
"start": "node index.js",
"test": "standard && mocha tests/**.spec.js"
},
"dependencies": {
"bluebird": "3... | Move standardjs to devDeps and make it run before tests | Move standardjs to devDeps and make it run before tests
| JSON | mit | neu5/kuber.pl,neu5/kuber.pl | json | ## Code Before:
{
"name": "kuber.pl",
"version": "0.1.0",
"description": "Basic calendar of the current year with custom labels",
"engines": {
"node": "6.10.2"
},
"main": "index.js",
"scripts": {
"start": "node index.js",
"test": "mocha tests/**.spec.js"
},
"dependencies": {
"bluebird"... | {
"name": "kuber.pl",
"version": "0.1.0",
"description": "Basic calendar of the current year with custom labels",
"engines": {
"node": "6.10.2"
},
"main": "index.js",
"scripts": {
"start": "node index.js",
- "test": "mocha tests/**.spec.js"
+ "test": "standard && mocha ... | 8 | 0.2 | 4 | 4 |
eb6632450fb65650a9f1125123f8d083729fe4c6 | etc/kayobe/overcloud.yml | etc/kayobe/overcloud.yml | ---
###############################################################################
# Overcloud configuration.
# Default Ansible group for overcloud hosts.
#overcloud_group_default:
# List of names of Ansible groups for overcloud hosts.
#overcloud_groups:
# Dict mapping overcloud Ansible group names to lists of host... | ---
###############################################################################
# Overcloud configuration.
# Default Ansible group for overcloud hosts.
#overcloud_group_default:
# List of names of Ansible groups for overcloud hosts.
#overcloud_groups:
# Dict mapping overcloud Ansible group names to lists of host... | Disable cloud-init on control plane hosts | Disable cloud-init on control plane hosts
When glean is used as the cloud initial configuration service, having cloud-init
enabled can cause issues. If cloud-init cannot detect network configuration, it
will apply a fallback configuration, enabling DHCP on one interface. This can
break existing network configuration, ... | YAML | apache-2.0 | SKA-ScienceDataProcessor/alaska-kayobe-config | yaml | ## Code Before:
---
###############################################################################
# Overcloud configuration.
# Default Ansible group for overcloud hosts.
#overcloud_group_default:
# List of names of Ansible groups for overcloud hosts.
#overcloud_groups:
# Dict mapping overcloud Ansible group names ... | ---
###############################################################################
# Overcloud configuration.
# Default Ansible group for overcloud hosts.
#overcloud_group_default:
# List of names of Ansible groups for overcloud hosts.
#overcloud_groups:
# Dict mapping overcloud Ansible group ... | 4 | 0.166667 | 4 | 0 |
be4ccfdd04ef552fa99274f8f4caf6e13cbc7810 | docs/index.md | docs/index.md |
User creates a meta-schema and converts it to Xonomy schema as follows:
```js
var xschema = XonomyBuilder.convertSchema(schema);
```
... then he can create Xonomy editor as usual:
```js
var xmarkup = "<root version='0.1'/>";
var xonomy = document.getElementById("xonomy");
Xonomy.render(xmarkup, xonomy, xschema);
``... |
User creates a meta-schema and converts it to Xonomy schema as follows:
```js
var xschema = XonomyBuilder.convertSchema(schema);
```
... then he can create Xonomy editor as usual:
```js
var xmarkup = "<root version='0.1'/>";
var xonomy = document.getElementById("xonomy");
Xonomy.render(xmarkup, xonomy, xschema);
``... | Update iframe style and dimensions | Update iframe style and dimensions
| Markdown | mit | filodej/xonomy-builder | markdown | ## Code Before:
User creates a meta-schema and converts it to Xonomy schema as follows:
```js
var xschema = XonomyBuilder.convertSchema(schema);
```
... then he can create Xonomy editor as usual:
```js
var xmarkup = "<root version='0.1'/>";
var xonomy = document.getElementById("xonomy");
Xonomy.render(xmarkup, xono... |
User creates a meta-schema and converts it to Xonomy schema as follows:
```js
var xschema = XonomyBuilder.convertSchema(schema);
```
... then he can create Xonomy editor as usual:
```js
var xmarkup = "<root version='0.1'/>";
var xonomy = document.getElementById("xonomy");
Xonomy.render(xma... | 3 | 0.068182 | 1 | 2 |
48ddb27c81134e93aaef436580776454871ebc6c | javascripts/govuk/analytics/external-link-tracker.js | javascripts/govuk/analytics/external-link-tracker.js | (function() {
"use strict";
GOVUK.analyticsPlugins = GOVUK.analyticsPlugins || {};
GOVUK.analyticsPlugins.externalLinkTracker = function () {
var currentHost = GOVUK.analyticsPlugins.externalLinkTracker.getHostname(),
externalLinkSelector = 'a[href^="http"]:not(a[href*="' + currentHost + '"])';
... | (function() {
"use strict";
GOVUK.analyticsPlugins = GOVUK.analyticsPlugins || {};
GOVUK.analyticsPlugins.externalLinkTracker = function () {
var currentHost = GOVUK.analyticsPlugins.externalLinkTracker.getHostname(),
externalLinkSelector = 'a[href^="http"]:not(a[href*="' + currentHost + '"])';
... | Move externalLink DOM traversal to function | Move externalLink DOM traversal to function
Simplify external link tracker by moving DOM traversal into a named
function.
| JavaScript | mit | alphagov/govuk_frontend_toolkit,TFOH/govuk_frontend_toolkit,alphagov/govuk_frontend_toolkit,TFOH/govuk_frontend_toolkit,quis/govuk_frontend_toolkit,quis/govuk_frontend_toolkit,alphagov/govuk_frontend_toolkit,quis/govuk_frontend_toolkit,quis/govuk_frontend_toolkit,TFOH/govuk_frontend_toolkit,TFOH/govuk_frontend_toolkit,... | javascript | ## Code Before:
(function() {
"use strict";
GOVUK.analyticsPlugins = GOVUK.analyticsPlugins || {};
GOVUK.analyticsPlugins.externalLinkTracker = function () {
var currentHost = GOVUK.analyticsPlugins.externalLinkTracker.getHostname(),
externalLinkSelector = 'a[href^="http"]:not(a[href*="' + currentHos... | (function() {
"use strict";
GOVUK.analyticsPlugins = GOVUK.analyticsPlugins || {};
GOVUK.analyticsPlugins.externalLinkTracker = function () {
var currentHost = GOVUK.analyticsPlugins.externalLinkTracker.getHostname(),
externalLinkSelector = 'a[href^="http"]:not(a[href*="' + currentHost ... | 23 | 0.657143 | 13 | 10 |
518c799363e3e856489ea710ea257e29ab891b1a | spec/models/organisation_spec.rb | spec/models/organisation_spec.rb | require "spec_helper"
describe Organisation do
let!(:hmrc) { create :organisation }
describe "#all" do
it "should have only hmrc loaded" do
Organisation.all.should eq([hmrc])
end
end
describe "#load_organisations, #initialize" do
it "should correctly create hmrc" do
hmrc.title.should e... | require "spec_helper"
describe Organisation do
subject(:organisation) { create :organisation, abbreviation: abbreviation, title: title }
let(:title) { "HM Revenue & Customs" }
let(:abbreviation) { "HMRC" }
describe "#title_with_abbreviation" do
context "when abbreviation is present" do
it "should ... | Refactor Organisation spec to test methods | Refactor Organisation spec to test methods
As per:
https://github.com/alphagov/hmrc-contacts/pull/113#commitcomment-5908997
I've refactored this test to test the actual methods in Organisation.rb
| Ruby | mit | alphagov/contacts-admin,alphagov/contacts-admin,alphagov/contacts-admin | ruby | ## Code Before:
require "spec_helper"
describe Organisation do
let!(:hmrc) { create :organisation }
describe "#all" do
it "should have only hmrc loaded" do
Organisation.all.should eq([hmrc])
end
end
describe "#load_organisations, #initialize" do
it "should correctly create hmrc" do
hmr... | require "spec_helper"
describe Organisation do
- let!(:hmrc) { create :organisation }
+ subject(:organisation) { create :organisation, abbreviation: abbreviation, title: title }
+ let(:title) { "HM Revenue & Customs" }
+ let(:abbreviation) { "HMRC" }
- describe "#all" do
- it "should have only h... | 52 | 2.08 | 38 | 14 |
fab7e2e67a5591c298db7a0290cc5dc16999a8dc | app/assets/javascripts/lesson_planner/unit_templates_manager/unit_template_profile/unit_template_profile_assign_button.jsx | app/assets/javascripts/lesson_planner/unit_templates_manager/unit_template_profile/unit_template_profile_assign_button.jsx | EC.UnitTemplateProfileAssignButton = React.createClass({
propTypes: {
data: React.PropTypes.object.isRequired,
actions: React.PropTypes.object.isRequired
},
propsSpecificComponent: function () {
if (this.props.data.non_authenticated) {
return <button className='button-green full-width' onClick=... | EC.UnitTemplateProfileAssignButton = React.createClass({
propTypes: {
data: React.PropTypes.object.isRequired,
actions: React.PropTypes.object.isRequired
},
propsSpecificComponent: function () {
if (this.props.data.non_authenticated) {
return <button className='button-green full-width' onClick=... | Change the copy on the assign all button. | Change the copy on the assign all button. | JSX | agpl-3.0 | empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core | jsx | ## Code Before:
EC.UnitTemplateProfileAssignButton = React.createClass({
propTypes: {
data: React.PropTypes.object.isRequired,
actions: React.PropTypes.object.isRequired
},
propsSpecificComponent: function () {
if (this.props.data.non_authenticated) {
return <button className='button-green full... | EC.UnitTemplateProfileAssignButton = React.createClass({
propTypes: {
data: React.PropTypes.object.isRequired,
actions: React.PropTypes.object.isRequired
},
propsSpecificComponent: function () {
if (this.props.data.non_authenticated) {
return <button className='button-green fu... | 4 | 0.142857 | 2 | 2 |
bf95fc9954ff52a11787fda50e3b28ddf5d5d470 | tasks/selinux-context.yml | tasks/selinux-context.yml | ---
- name: RedHat | Ensure selinux context for MISP httpd directories
command: "chcon -R httpd_sys_rw_content_t {{ item }}"
# FIXME! sefcontext module not working
# sefcontext:
# target: "{{ item }}(/.*)?"
# setype: httpd_sys_rw_content_t
# state: present
with_items:
- /var/www/MISP/app/files
- ... | ---
- name: RedHat | Ensure selinux context for MISP httpd directories
sefcontext:
target: "{{ item }}(/.*)?"
setype: httpd_sys_rw_content_t
state: present
with_items:
- /var/www/MISP/app/files
- /var/www/MISP/app/files/terms
- /var/www/MISP/app/files/scripts/tmp
- /var/www/MISP/app/Plu... | Revert "manual command for chcon as sefcontext module does not seem to work" | Revert "manual command for chcon as sefcontext module does not seem to work"
This reverts commit abb40b5d9cb9da991bd04ea42c84b2d699e4d142.
| YAML | bsd-2-clause | juju4/ansible-MISP,juju4/ansible-MISP,juju4/ansible-MISP | yaml | ## Code Before:
---
- name: RedHat | Ensure selinux context for MISP httpd directories
command: "chcon -R httpd_sys_rw_content_t {{ item }}"
# FIXME! sefcontext module not working
# sefcontext:
# target: "{{ item }}(/.*)?"
# setype: httpd_sys_rw_content_t
# state: present
with_items:
- /var/www/MISP/... | ---
- name: RedHat | Ensure selinux context for MISP httpd directories
- command: "chcon -R httpd_sys_rw_content_t {{ item }}"
- # FIXME! sefcontext module not working
- # sefcontext:
? -
+ sefcontext:
- # target: "{{ item }}(/.*)?"
? -
+ target: "{{ item }}(/.*)?"
- # setype: httpd_sys_rw_conte... | 10 | 0.555556 | 4 | 6 |
31dd4d98d6a7cee7fa2eac22c7849b580a9be262 | webapp/app/views/events/_investigate_section_element_header.html.haml | webapp/app/views/events/_investigate_section_element_header.html.haml | %br
- section_id = "section_investigate_#{h(section.id)}"
- hide_id = section_id + "_hide"
- show_id = section_id + "_show"
%fieldset{:class => 'form_section vert-break'}
%legend
= h(strip_tags(section.name))
- unless section.help_text.blank?
= render_help_text(section) + " "
%span{:id => hide... | %br
- section_id = "section_investigate_#{h(section.id)}"
- hide_id = section_id + "_hide"
- show_id = section_id + "_show"
%fieldset{:class => 'form_section vert-break'}
%legend
= h(strip_tags(section.name))
- unless section.help_text.blank?
= render_help_text(section) + " "
/ Because of the... | Disable Hide/Show for investigator sections | Disable Hide/Show for investigator sections
| Haml | agpl-3.0 | JayBoyer/new-trisano,JayBoyer/new-trisano,JayBoyer/new-trisano,JayBoyer/new-trisano,JayBoyer/new-trisano,JayBoyer/new-trisano,JayBoyer/new-trisano | haml | ## Code Before:
%br
- section_id = "section_investigate_#{h(section.id)}"
- hide_id = section_id + "_hide"
- show_id = section_id + "_show"
%fieldset{:class => 'form_section vert-break'}
%legend
= h(strip_tags(section.name))
- unless section.help_text.blank?
= render_help_text(section) + " "
%... | %br
- section_id = "section_investigate_#{h(section.id)}"
- hide_id = section_id + "_hide"
- show_id = section_id + "_show"
%fieldset{:class => 'form_section vert-break'}
%legend
= h(strip_tags(section.name))
- unless section.help_text.blank?
= render_help_text(section) + " "
-... | 12 | 0.545455 | 8 | 4 |
303043e0de14747db5a47dd758be2394f63b5f07 | Readme.md | Readme.md | The official clone of MiniProfiler for .NET.
We accept patches and pull requests here.
See the home page at: http://miniprofiler.com
Licensed under apache 2.0 license, see: http://www.apache.org/licenses/LICENSE-2.0
####Be sure to `git submodule init` and `git submodule update` after cloning to pull down the ui rep... |
* See the home page at: [miniprofiler.com](http://miniprofiler.com) for more info on how to set things up.
* We accept [pull requests](https://github.com/MiniProfiler/dotnet/pulls) here.
* Any issues can be reported in [GitHub Issues](https://github.com/MiniProfiler/dotnet/issues) or on the [Community Site](http://com... | Add more info to ReadMe | Add more info to ReadMe
| Markdown | mit | MiniProfiler/dotnet,MiniProfiler/dotnet | markdown | ## Code Before:
The official clone of MiniProfiler for .NET.
We accept patches and pull requests here.
See the home page at: http://miniprofiler.com
Licensed under apache 2.0 license, see: http://www.apache.org/licenses/LICENSE-2.0
####Be sure to `git submodule init` and `git submodule update` after cloning to pull... | - The official clone of MiniProfiler for .NET.
+ * See the home page at: [miniprofiler.com](http://miniprofiler.com) for more info on how to set things up.
+ * We accept [pull requests](https://github.com/MiniProfiler/dotnet/pulls) here.
+ * Any issues can be reported in [GitHub Issues](https://github.com/MiniProfil... | 20 | 2 | 14 | 6 |
00b901184c73f5850add45b86c4e10c3e60fb40c | app/serializers/user_serializer.rb | app/serializers/user_serializer.rb | class UserSerializer
include TalkSerializer
include ModerationActions
all_attributes except: :email
end
| class UserSerializer
include TalkSerializer
include ModerationActions
attributes :id, :created_at, :updated_at, :display_name,
:zooniverse_id, :credited_name, :admin, :banned
end
| Whitelist instead of blacklist user attributes | Whitelist instead of blacklist user attributes | Ruby | apache-2.0 | zooniverse/Talk-Api,zooniverse/Talk-Api,zooniverse/Talk-Api | ruby | ## Code Before:
class UserSerializer
include TalkSerializer
include ModerationActions
all_attributes except: :email
end
## Instruction:
Whitelist instead of blacklist user attributes
## Code After:
class UserSerializer
include TalkSerializer
include ModerationActions
attributes :id, :created_at, :upd... | class UserSerializer
include TalkSerializer
include ModerationActions
- all_attributes except: :email
+ attributes :id, :created_at, :updated_at, :display_name,
+ :zooniverse_id, :credited_name, :admin, :banned
end | 3 | 0.5 | 2 | 1 |
63a2622f531d99fa0056709f90c996290dcab047 | server/devServer.js | server/devServer.js | const WebpackDevServer = require('webpack-dev-server');
const webpack = require('webpack');
const config = require('../webpack/webpack.config.dev');
new WebpackDevServer(webpack(config), {
publicPath: config.output.publicPath,
hot: true,
stats: {
colors: true,
},
historyApiFallback: {
index: 'src/htm... | const WebpackDevServer = require('webpack-dev-server');
const webpack = require('webpack');
const config = require('../webpack/webpack.config.dev');
new WebpackDevServer(webpack(config), {
publicPath: config.output.publicPath,
hot: true,
stats: 'errors-only',
historyApiFallback: {
index: 'src/html/index.de... | Hide extra webpack stats on development. | Hide extra webpack stats on development.
| JavaScript | mit | hannupekka/react-pack,hannupekka/react-pack | javascript | ## Code Before:
const WebpackDevServer = require('webpack-dev-server');
const webpack = require('webpack');
const config = require('../webpack/webpack.config.dev');
new WebpackDevServer(webpack(config), {
publicPath: config.output.publicPath,
hot: true,
stats: {
colors: true,
},
historyApiFallback: {
... | const WebpackDevServer = require('webpack-dev-server');
const webpack = require('webpack');
const config = require('../webpack/webpack.config.dev');
new WebpackDevServer(webpack(config), {
publicPath: config.output.publicPath,
hot: true,
+ stats: 'errors-only',
- stats: {
- colors: true,
- ... | 4 | 0.181818 | 1 | 3 |
1393b450b401cab4d0c36290b2db7b58f9a8d924 | src/Database/Schema/Migrations/Dependencies.hs | src/Database/Schema/Migrations/Dependencies.hs | module Database.Schema.Migrations.Dependencies
( Dependable(..)
)
where
class Eq a => Dependable a where
depsOf :: a -> [a]
-- |Given a list of a in the environment, does that list satisfy
-- the dependency requirements of an a? returns whether or not it
-- does.
satisfies :: [a] -> a -> ... | module Database.Schema.Migrations.Dependencies
( Dependable(..)
)
where
class Eq a => Dependable a where
-- |The objects on which a depends.
depsOf :: a -> [a]
-- |Return the complete dependency list for the specified object,
-- including its children and their dependencies recursively, and
... | Update the Dependable instance for Migration | Update the Dependable instance for Migration
Ignore-this: 22d51ec73975926c7623477a80e75cf1
darcs-hash:20090416045602-e018d-1a882873a552132a3154008a18a8158ad9f9170b.gz
| Haskell | bsd-3-clause | nick0x01/dbmigrations,nathankot/dbmigrations,anton-dessiatov/dbmigrations,creswick/dbmigrations,jakubfijalkowski/dbmigrations | haskell | ## Code Before:
module Database.Schema.Migrations.Dependencies
( Dependable(..)
)
where
class Eq a => Dependable a where
depsOf :: a -> [a]
-- |Given a list of a in the environment, does that list satisfy
-- the dependency requirements of an a? returns whether or not it
-- does.
satisfies... | module Database.Schema.Migrations.Dependencies
( Dependable(..)
)
where
class Eq a => Dependable a where
+ -- |The objects on which a depends.
depsOf :: a -> [a]
+
+ -- |Return the complete dependency list for the specified object,
+ -- including its children and their dependenci... | 15 | 0.714286 | 13 | 2 |
b0c443e2cf3268449a33342e900f5b1016b297e5 | app/views/tickets/new.html.erb | app/views/tickets/new.html.erb | <div class="row">
<div class="medium-9 columns">
<%= render 'form' %>
</div>
</div>
| <div class="row">
<div class="medium-9 columns" style="background: #fff <%# for unauthenticated form %>">
<%= render 'form' %>
</div>
</div>
| Fix unauthenticated ticket form styling | Fix unauthenticated ticket form styling
| HTML+ERB | agpl-3.0 | mbchandar/brimir,hadifarnoud/brimir,ivaldi/brimir,mbchandar/brimir,hadifarnoud/brimir,fiedl/brimir,git-jls/brimir,viddypiddy/brimir,git-jls/brimir,ivaldi/brimir,git-jls/brimir,fiedl/brimir,viddypiddy/brimir,mbchandar/brimir,git-jls/brimir,ivaldi/brimir,viddypiddy/brimir,mbchandar/brimir,hadifarnoud/brimir,fiedl/brimir,... | html+erb | ## Code Before:
<div class="row">
<div class="medium-9 columns">
<%= render 'form' %>
</div>
</div>
## Instruction:
Fix unauthenticated ticket form styling
## Code After:
<div class="row">
<div class="medium-9 columns" style="background: #fff <%# for unauthenticated form %>">
<%= render 'form' %>
... | <div class="row">
- <div class="medium-9 columns">
+ <div class="medium-9 columns" style="background: #fff <%# for unauthenticated form %>">
<%= render 'form' %>
</div>
</div> | 2 | 0.285714 | 1 | 1 |
f96cadba3514c1c53ad931cd9e40ee3654a0f89e | packages/bundler/scripts/createVersionJSON.sh | packages/bundler/scripts/createVersionJSON.sh | set -eo pipefail
function getVersion {
if [ -n "$1" ]; then
echo "$1";
return 0;
fi;
local version=$(cat package.json | awk 'match($0, /"version": "([0-9]+\.[0-9]+\.[0-9]+)"/, arr) { print arr[1]; }');
echo "$version";
}
function getCommit {
[ "$1" ] && echo "$1" || git rev-parse... | set -eo pipefail
function getVersion {
if [ -n "$1" ]; then
echo "$1";
return 0;
fi;
# Sadly MacOS doesn't have gawk but awk, which doesn't support this match :/
# awk 'match($0, /"version": "([0-9]+\.[0-9]+\.[0-9]+)"/, arr) { print arr[1]; }'
local version=$(cat package.json | aw... | Fix extract version awk for MacOS - support awk | Fix extract version awk for MacOS - support awk
| Shell | mit | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | shell | ## Code Before:
set -eo pipefail
function getVersion {
if [ -n "$1" ]; then
echo "$1";
return 0;
fi;
local version=$(cat package.json | awk 'match($0, /"version": "([0-9]+\.[0-9]+\.[0-9]+)"/, arr) { print arr[1]; }');
echo "$version";
}
function getCommit {
[ "$1" ] && echo "$1" ... | set -eo pipefail
function getVersion {
if [ -n "$1" ]; then
echo "$1";
return 0;
fi;
+ # Sadly MacOS doesn't have gawk but awk, which doesn't support this match :/
- local version=$(cat package.json | awk 'match($0, /"version": "([0-9]+\.[0-9]+\.[0-9]+)"/, arr) { pri... | 4 | 0.088889 | 3 | 1 |
f4dfe1a35e4d4d3252c8b640ca0f8a961afb72eb | lib/node_modules/@stdlib/types/ndarray/base/assert/is-index-mode/lib/main.js | lib/node_modules/@stdlib/types/ndarray/base/assert/is-index-mode/lib/main.js | 'use strict';
// MODULES //
var indexOf = require( '@stdlib/utils/index-of' );
var modes = require( '@stdlib/types/ndarray/base/modes' );
// VARIABLES //
var MODES = modes();
// MAIN //
/**
* Tests whether an input value is a supported ndarray index mode.
*
* @param {*} v - value to test
* @returns {boolean} bo... | 'use strict';
// MODULES //
var modes = require( '@stdlib/types/ndarray/base/modes' );
// VARIABLES //
var MODES = modes();
var len = MODES.length;
// MAIN //
/**
* Tests whether an input value is a supported ndarray index mode.
*
* @param {*} v - value to test
* @returns {boolean} boolean indicating whether an... | Refactor to inline value search | Refactor to inline value search
| JavaScript | 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 | javascript | ## Code Before:
'use strict';
// MODULES //
var indexOf = require( '@stdlib/utils/index-of' );
var modes = require( '@stdlib/types/ndarray/base/modes' );
// VARIABLES //
var MODES = modes();
// MAIN //
/**
* Tests whether an input value is a supported ndarray index mode.
*
* @param {*} v - value to test
* @retu... | 'use strict';
// MODULES //
- var indexOf = require( '@stdlib/utils/index-of' );
var modes = require( '@stdlib/types/ndarray/base/modes' );
// VARIABLES //
var MODES = modes();
+ var len = MODES.length;
// MAIN //
/**
* Tests whether an input value is a supported ndarray index mo... | 10 | 0.238095 | 8 | 2 |
e3daf718595d251040398936fdacab2df01f3bba | README.md | README.md |
Smoke tests for [Pension Wise].
## Prerequisites
* [Bundler]
* [Git]
* [Ruby 2.2.0][Ruby]
## Installation
Clone the repository:
```sh
$ git clone https://github.com/guidance-guarantee-programme/smoke_tests.git
```
Setup the application:
```sh
$ ./bin/setup
```
## Usage
To start the application:
```sh
$ ./b... |
Smoke tests for [Pension Wise].
## Prerequisites
* [Bundler]
* [Git]
* [Ruby 2.2.0][Ruby]
* [Redis]
## Installation
Clone the repository:
```sh
$ git clone https://github.com/guidance-guarantee-programme/smoke_tests.git
```
Setup the application:
```sh
$ ./bin/setup
```
## Usage
To start the application:
`... | Add Redis to list of requirements | Add Redis to list of requirements
| Markdown | mit | guidance-guarantee-programme/smoke_tests,guidance-guarantee-programme/smoke_tests | markdown | ## Code Before:
Smoke tests for [Pension Wise].
## Prerequisites
* [Bundler]
* [Git]
* [Ruby 2.2.0][Ruby]
## Installation
Clone the repository:
```sh
$ git clone https://github.com/guidance-guarantee-programme/smoke_tests.git
```
Setup the application:
```sh
$ ./bin/setup
```
## Usage
To start the applicati... |
Smoke tests for [Pension Wise].
## Prerequisites
* [Bundler]
* [Git]
* [Ruby 2.2.0][Ruby]
+ * [Redis]
## Installation
Clone the repository:
```sh
$ git clone https://github.com/guidance-guarantee-programme/smoke_tests.git
```
Setup the application:
```sh
$ ./bin/s... | 2 | 0.04878 | 2 | 0 |
c82a2517a8bd2b25e4cbe5784379c46f3a1cab92 | src/ontrail/core.clj | src/ontrail/core.clj | (ns ontrail.core
(:use lamina.core
aleph.http
compojure.core)
(:gen-class)
(:require [compojure.route :as route]))
(require '[monger.collection :as mc])
(use 'ring.middleware.file)
(use '[clojure.data.json :only (read-json json-str)])
(use '[ontrail.summary])
(defn json-response [data & [statu... | (ns ontrail.core
(:use lamina.core
aleph.http
compojure.core)
(:gen-class)
(:require [compojure.route :as route]))
(require '[monger.collection :as mc])
(use 'ring.middleware.file)
(use 'ring.middleware.cookies)
(use '[clojure.data.json :only (read-json json-str)])
(use '[ontrail.summary])
(def... | Add cookies to the response when specified | Add cookies to the response when specified | Clojure | mit | jrosti/ontrail,jrosti/ontrail,jrosti/ontrail,jrosti/ontrail,jrosti/ontrail | clojure | ## Code Before:
(ns ontrail.core
(:use lamina.core
aleph.http
compojure.core)
(:gen-class)
(:require [compojure.route :as route]))
(require '[monger.collection :as mc])
(use 'ring.middleware.file)
(use '[clojure.data.json :only (read-json json-str)])
(use '[ontrail.summary])
(defn json-respons... | (ns ontrail.core
(:use lamina.core
aleph.http
compojure.core)
(:gen-class)
(:require [compojure.route :as route]))
(require '[monger.collection :as mc])
(use 'ring.middleware.file)
-
+ (use 'ring.middleware.cookies)
(use '[clojure.data.json :only (read-json json-str)])
(... | 9 | 0.3 | 6 | 3 |
648d4d961d9e63b777240d4048252dab437fe78c | .github/workflows/uiTests.yml | .github/workflows/uiTests.yml | name: Run example UI Tests
on:
workflow_dispatch
jobs:
build-for-ui-test-mac-os:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v2.1.0
with:
distribution: zulu
java-version: 11
- name: Clean
r... | name: Run example UI Tests
on:
workflow_dispatch
jobs:
build-for-ui-test-mac-os:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v2.1.0
with:
distribution: zulu
java-version: 11
- name: Clean
r... | Use correct gradle tasks names | Use correct gradle tasks names
| YAML | mit | JetBrains/ideavim,JetBrains/ideavim | yaml | ## Code Before:
name: Run example UI Tests
on:
workflow_dispatch
jobs:
build-for-ui-test-mac-os:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v2.1.0
with:
distribution: zulu
java-version: 11
- name:... | name: Run example UI Tests
on:
workflow_dispatch
jobs:
build-for-ui-test-mac-os:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v2.1.0
with:
distribution: zulu
java-version: 11
... | 6 | 0.1875 | 3 | 3 |
df6b77a46efa939a496012a186d3d94dec35d8c3 | iree/compiler/Translation/SPIRV/LinalgToSPIRV/CMakeLists.txt | iree/compiler/Translation/SPIRV/LinalgToSPIRV/CMakeLists.txt |
iree_cc_library(
NAME
LinalgToSPIRV
HDRS
SRCS
"LinalgToSPIRV.cpp"
DEPS
LLVMSupport
MLIRAffineOps
MLIRAffineToStandard
MLIRGPUtoSPIRVTransforms
MLIRGPU
MLIRIR
MLIRLinalg
MLIRLoopsToGPU
MLIRPass
MLIRSPIRV
MLIRStandardOps
MLIRStandardToSPIRVTransforms
ML... |
iree_cc_library(
NAME
LinalgToSPIRV
HDRS
SRCS
"LinalgToSPIRV.cpp"
DEPS
LLVMSupport
MLIRAffineOps
MLIRAffineToStandard
MLIRGPUtoSPIRVTransforms
MLIRGPU
MLIRIR
MLIRLinalgOps
MLIRLinalgTransforms
MLIRLinalgUtils
MLIRLoopsToGPU
MLIRPass
MLIRSPIRV
MLIRStan... | Update CMake MLIR Linalg dependencies | Update CMake MLIR Linalg dependencies
The LLVM version bump included an update that moved these.
PiperOrigin-RevId: 289954940
| Text | apache-2.0 | iree-org/iree,google/iree,google/iree,google/iree,google/iree,google/iree,iree-org/iree,iree-org/iree,iree-org/iree,iree-org/iree,google/iree,iree-org/iree,google/iree,iree-org/iree | text | ## Code Before:
iree_cc_library(
NAME
LinalgToSPIRV
HDRS
SRCS
"LinalgToSPIRV.cpp"
DEPS
LLVMSupport
MLIRAffineOps
MLIRAffineToStandard
MLIRGPUtoSPIRVTransforms
MLIRGPU
MLIRIR
MLIRLinalg
MLIRLoopsToGPU
MLIRPass
MLIRSPIRV
MLIRStandardOps
MLIRStandardToSPIRVT... |
iree_cc_library(
NAME
LinalgToSPIRV
HDRS
SRCS
"LinalgToSPIRV.cpp"
DEPS
LLVMSupport
MLIRAffineOps
MLIRAffineToStandard
MLIRGPUtoSPIRVTransforms
MLIRGPU
MLIRIR
- MLIRLinalg
+ MLIRLinalgOps
? +++
+ MLIRLinalgTransforms
+ ML... | 4 | 0.173913 | 3 | 1 |
d6d356c9382b2bc2efe5e278fc831892f5312983 | examples/babel/destructuring-assignment/index.js | examples/babel/destructuring-assignment/index.js |
import assert from 'assert';
function getObj() {
return {
x: 2,
y: 3
};
}
let {
x,
y,
z = 6
} = getObj();
assert.strictEqual(x, 2);
assert.strictEqual(y, 3);
assert.strictEqual(z, 6);
|
import assert from 'assert';
//
// 分割代入内で代入ができる
//
function getObj() {
return {
x: 2,
y: 3
};
}
let {
x,
y,
z = 6
} = getObj();
assert.strictEqual(x, 2);
assert.strictEqual(y, 3);
assert.strictEqual(z, 6);
//
// 別変数名で展開できる
//
function stringifyObj({ x: xVar, y: yVar }) {
return xVar + yVar;
}... | Update a sample of ES6 | Update a sample of ES6
| JavaScript | mit | kjirou/nodejs-codes | javascript | ## Code Before:
import assert from 'assert';
function getObj() {
return {
x: 2,
y: 3
};
}
let {
x,
y,
z = 6
} = getObj();
assert.strictEqual(x, 2);
assert.strictEqual(y, 3);
assert.strictEqual(z, 6);
## Instruction:
Update a sample of ES6
## Code After:
import assert from 'assert';
//
// 分割... |
import assert from 'assert';
+ //
+ // 分割代入内で代入ができる
+ //
function getObj() {
return {
x: 2,
y: 3
};
}
let {
x,
y,
z = 6
} = getObj();
-
assert.strictEqual(x, 2);
assert.strictEqual(y, 3);
assert.strictEqual(z, 6);
+
+
+ //
+ // 別変数名で展開できる
+ //
+ function... | 13 | 0.619048 | 12 | 1 |
01618bbe7e5a5dbdc9fc472d29ee9b150a9b11d5 | config.yml | config.yml | ---
engines:
JSON:
pretty: 1
canonical: 1
serializer: JSON
| ---
engines:
JSON:
pretty: 1
canonical: 1
allow_blessed: 1
serializer: JSON
| Fix emitting boolean JSON values | Fix emitting boolean JSON values
| YAML | agpl-3.0 | gbv/cocoda-db,gbv/cocoda-db | yaml | ## Code Before:
---
engines:
JSON:
pretty: 1
canonical: 1
serializer: JSON
## Instruction:
Fix emitting boolean JSON values
## Code After:
---
engines:
JSON:
pretty: 1
canonical: 1
allow_blessed: 1
serializer: JSON
| ---
engines:
JSON:
pretty: 1
canonical: 1
+ allow_blessed: 1
serializer: JSON | 1 | 0.166667 | 1 | 0 |
85ef97d1bceab3d19c4ceaec2248f2de942ade91 | README.md | README.md | [](https://travis-ci.org/cbeust/testng)
[](https://www.versioneye.com/java/org.testng:testng)
[](https://travis-ci.org/cbeust/testng)
[](https://www.versioneye.com/user/projects/553a031c4e5d2e9408000059)
[](https://travis-ci.org/cbeust/testng)
[](https://www.versioneye.com/java/org.testng:testng)
[](https://travis-ci.org/cbeust/testng)
- [](https://www.versioneye.com/java/org.testng:testng)
+ [ {
let delimiter = /((?:https?:\/\/)?(?:(?:[a-z0-9][a-z0-9\-]{1,61}[a-z0-9]\.)+[a-z\.]*[a-z]+|(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3})[a-z0-9.,_\/~#&=;%+?-]*)/ig;
return {... | import React from 'react';
import assign from 'object-assign';
function ReactAutolinkMixin() {
let delimiter = /((?:https?:\/\/)?(?:(?:[a-z0-9][a-z0-9\-]{1,61}[a-z0-9]\.)+[a-z\.]*[a-z]+|(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3})(?::\d{1,5})*[a-z0-9.,_\/~#&=;%+?-]*)/ig... | Support for matching with port | Support for matching with port
Port regex would be more valid way (0 to 65535), however, I choose more easy (lazy) way
| JSX | mit | banyan/react-autolink,banyan/react-autolink,banyan/react-autolink | jsx | ## Code Before:
import React from 'react';
import assign from 'object-assign';
function ReactAutolinkMixin() {
let delimiter = /((?:https?:\/\/)?(?:(?:[a-z0-9][a-z0-9\-]{1,61}[a-z0-9]\.)+[a-z\.]*[a-z]+|(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3})[a-z0-9.,_\/~#&=;%+?-]*)... | import React from 'react';
import assign from 'object-assign';
function ReactAutolinkMixin() {
- let delimiter = /((?:https?:\/\/)?(?:(?:[a-z0-9][a-z0-9\-]{1,61}[a-z0-9]\.)+[a-z\.]*[a-z]+|(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3})[a-z0-9.,_\/~#&=;%+?-]*)/ig;
+... | 2 | 0.071429 | 1 | 1 |
4e04fdbf1d5b89ca1daa8fb929509343880344ad | README.md | README.md | Photon base alarm clock using the Adafruit 128x128 SSD1351 OLED display
## Roadmap
* Add snooze button for testing
* Add ability to configure timezone and save to flash
* Upgrade to a [2.8" TFT LCD with Cap Touch](http://www.adafruit.com/products/2090)
| Photon base alarm clock using the Adafruit 128x128 SSD1351 OLED display
## Roadmap
* Add snooze button for testing
* Add ability to configure timezone and save to flash
* Upgrade to a [2.6" Serial: UART/I2C/SPI IPS Super TFT 320x240 with Touchscreen+16MB Flash Module](http://digole.com/index.php?productID=1225)
| Set goal for smarter screen | Set goal for smarter screen | Markdown | mit | tjpeden/mane-avis,tjpeden/mane-avis,tpeden/mane-avis,tpeden/mane-avis | markdown | ## Code Before:
Photon base alarm clock using the Adafruit 128x128 SSD1351 OLED display
## Roadmap
* Add snooze button for testing
* Add ability to configure timezone and save to flash
* Upgrade to a [2.8" TFT LCD with Cap Touch](http://www.adafruit.com/products/2090)
## Instruction:
Set goal for smarter screen
## C... | Photon base alarm clock using the Adafruit 128x128 SSD1351 OLED display
## Roadmap
* Add snooze button for testing
* Add ability to configure timezone and save to flash
- * Upgrade to a [2.8" TFT LCD with Cap Touch](http://www.adafruit.com/products/2090)
+ * Upgrade to a [2.6" Serial: UART/I2C/SPI IPS Sup... | 2 | 0.285714 | 1 | 1 |
f195de0db97d483584ca67127682301bbeaec514 | articles/libraries/lock/_includes/_lock-version-9.md | articles/libraries/lock/_includes/_lock-version-9.md | <div class="alert alert-warning">
This document covers an outdated version of Lock - version 9. We recommend using the latest version of the library. To do so select v10 at the dropdown. If you are already using v9 but interested in upgrading, take a look at the <a href="/libraries/lock/v10/migration-guide">Lock 9 to L... | <div class="alert alert-warning version-alert">
This document covers an outdated version of Lock. We recommend you to <a href="/libraries/lock/v10/migration-guide">upgrade to v10</a>.
</div>
| Change copy of lock 9 version | Change copy of lock 9 version
| Markdown | mit | auth0/docs,jeffreylees/docs,yvonnewilson/docs,auth0/docs,jeffreylees/docs,yvonnewilson/docs,auth0/docs,jeffreylees/docs,yvonnewilson/docs | markdown | ## Code Before:
<div class="alert alert-warning">
This document covers an outdated version of Lock - version 9. We recommend using the latest version of the library. To do so select v10 at the dropdown. If you are already using v9 but interested in upgrading, take a look at the <a href="/libraries/lock/v10/migration-gu... | - <div class="alert alert-warning">
+ <div class="alert alert-warning version-alert">
? ++++++++++++++
- This document covers an outdated version of Lock - version 9. We recommend using the latest version of the library. To do so select v10 at the dropdown. If you are already using v9 bu... | 4 | 1.333333 | 2 | 2 |
927e48f7b920b85fdff0aeb94e560acb252d0f3f | css/style.css | css/style.css | body {
margin: 0;
padding: 0;
}
form {
margin: 0;
padding: 0;
}
input {
font-size: 14px;
width: 300px;
}
.graphs {
margin: 20px;
border: 1px solid #ccc;
}
| body {
margin: 0;
padding: 0;
}
form {
margin: 0;
padding: 0;
}
input {
font-size: 14px;
width: 300px;
}
.graphs {
margin: 20px;
border: 1px solid #ccc;
}
/* Hide axis lines*/
svg .nv-axis .tick line{
/*display: none;*/
}
| Add option to hide axis lines | :pouch: Add option to hide axis lines
| CSS | mit | 9-volt/bug-life,9-volt/bug-life | css | ## Code Before:
body {
margin: 0;
padding: 0;
}
form {
margin: 0;
padding: 0;
}
input {
font-size: 14px;
width: 300px;
}
.graphs {
margin: 20px;
border: 1px solid #ccc;
}
## Instruction:
:pouch: Add option to hide axis lines
## Code After:
body {
margin: 0;
padding: 0;
}
form {
margin: 0;
... | body {
margin: 0;
padding: 0;
}
form {
margin: 0;
padding: 0;
}
input {
font-size: 14px;
width: 300px;
}
.graphs {
margin: 20px;
border: 1px solid #ccc;
}
+
+ /* Hide axis lines*/
+ svg .nv-axis .tick line{
+ /*display: none;*/
+ } | 5 | 0.263158 | 5 | 0 |
d72050e7a602d4e7a3bab253c0c098e90246f9e7 | index.js | index.js | const http = require('http');
const bodyParser = require('body-parser');
const cors = require('cors');
const express = require('express');
const isProduction = process.env.NODE_ENV === 'production';
if (!isProduction) require('dotenv').config();
var app = express();
const PORT = process.env.PORT || 4000;
const serve... | const http = require('http');
const path = require('path');
const bodyParser = require('body-parser');
const cors = require('cors');
const express = require('express');
const isProduction = process.env.NODE_ENV === 'production';
if (!isProduction) require('dotenv').config();
var app = express();
const PORT = process... | Add client routes in production | Add client routes in production
| JavaScript | mit | kevgathuku/torrent-dbx,kevgathuku/torrent-dbx | javascript | ## Code Before:
const http = require('http');
const bodyParser = require('body-parser');
const cors = require('cors');
const express = require('express');
const isProduction = process.env.NODE_ENV === 'production';
if (!isProduction) require('dotenv').config();
var app = express();
const PORT = process.env.PORT || 4... | const http = require('http');
+ const path = require('path');
const bodyParser = require('body-parser');
const cors = require('cors');
const express = require('express');
const isProduction = process.env.NODE_ENV === 'production';
if (!isProduction) require('dotenv').config();
var app = express()... | 10 | 0.25641 | 9 | 1 |
c48405819748498273f800ff6d678b698ac59ae8 | server/index.js | server/index.js | var express = require('express');
var app = express();
app.get('/', function(req, res){
res.send('Hello World');
});
app.listen(3000);
| var express = require('express'),
enbMiddleware = require('enb/lib/server/server-middleware');
var app = express();
app.use(enbMiddleware.createMiddleware({
cdir: process.cwd(),
noLog: false
}));
app.get('/', function(req, res){
res.send('Hello World');
});
app.listen(3000);
| Add enb server-middleware to express | Add enb server-middleware to express
| JavaScript | mit | tormozz48/bem-homefinance | javascript | ## Code Before:
var express = require('express');
var app = express();
app.get('/', function(req, res){
res.send('Hello World');
});
app.listen(3000);
## Instruction:
Add enb server-middleware to express
## Code After:
var express = require('express'),
enbMiddleware = require('enb/lib/server/server-middlewa... | - var express = require('express');
? ^
+ var express = require('express'),
? ^
+ enbMiddleware = require('enb/lib/server/server-middleware');
+
+
var app = express();
+
+ app.use(enbMiddleware.createMiddleware({
+ cdir: process.cwd(),
+ ... | 10 | 1.25 | 9 | 1 |
3ff2042041f896829937d19cbd0aaab68f51cdd4 | ktor-client/ktor-client-core/src/io/ktor/client/request/utils.kt | ktor-client/ktor-client-core/src/io/ktor/client/request/utils.kt | package io.ktor.client.request
import io.ktor.http.*
/**
* Gets the associated URL's host.
*/
var HttpRequestBuilder.host: String
get() = url.host
set(value) {
url.host = value
}
/**
* Gets the associated URL's port.
*/
var HttpRequestBuilder.port: Int
get() = url.port
set(value) {
... | package io.ktor.client.request
import io.ktor.http.*
/**
* Gets the associated URL's host.
*/
var HttpRequestBuilder.host: String
get() = url.host
set(value) {
url.host = value
}
/**
* Gets the associated URL's port.
*/
var HttpRequestBuilder.port: Int
get() = url.port
set(value) {
... | Clarify usage of HttpRequestBuilder.parameter() function | Clarify usage of HttpRequestBuilder.parameter() function
| Kotlin | apache-2.0 | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor | kotlin | ## Code Before:
package io.ktor.client.request
import io.ktor.http.*
/**
* Gets the associated URL's host.
*/
var HttpRequestBuilder.host: String
get() = url.host
set(value) {
url.host = value
}
/**
* Gets the associated URL's port.
*/
var HttpRequestBuilder.port: Int
get() = url.port
... | package io.ktor.client.request
import io.ktor.http.*
/**
* Gets the associated URL's host.
*/
var HttpRequestBuilder.host: String
get() = url.host
set(value) {
url.host = value
}
/**
* Gets the associated URL's port.
*/
var HttpRequestBuilder.port: Int
... | 3 | 0.076923 | 2 | 1 |
ff4d372cfb249c1fa0bd9a0d1303eccb4229dfef | src/oslib/osx/OSXOperatingSystem.java | src/oslib/osx/OSXOperatingSystem.java | package oslib.osx;
import java.io.Serializable;
import oslib.Arch;
import oslib.OperatingSystem;
import oslib.UnixOperatingSystem;
public class OSXOperatingSystem extends UnixOperatingSystem implements Serializable {
private static final long serialVersionUID = 1929142018487788734L;
private OSXVersion version;
... | package oslib.osx;
import java.io.Serializable;
import oslib.Arch;
import oslib.OperatingSystem;
import oslib.UnixOperatingSystem;
public class OSXOperatingSystem extends UnixOperatingSystem implements Serializable {
private static final long serialVersionUID = 1929142018487788734L;
private OSXVersion version;
... | Check for nulls (fix nullpointer on newer OSX?) | Check for nulls (fix nullpointer on newer OSX?)
| Java | mit | redpois0n/oslib | java | ## Code Before:
package oslib.osx;
import java.io.Serializable;
import oslib.Arch;
import oslib.OperatingSystem;
import oslib.UnixOperatingSystem;
public class OSXOperatingSystem extends UnixOperatingSystem implements Serializable {
private static final long serialVersionUID = 1929142018487788734L;
private OSXV... | package oslib.osx;
import java.io.Serializable;
import oslib.Arch;
import oslib.OperatingSystem;
import oslib.UnixOperatingSystem;
public class OSXOperatingSystem extends UnixOperatingSystem implements Serializable {
private static final long serialVersionUID = 1929142018487788734L;
pr... | 14 | 0.304348 | 12 | 2 |
cf45b9839c08a4b793805252362dd9659ccd83f8 | spec/spec_helper.rb | spec/spec_helper.rb | $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
require "rubygems"
require "sidekiq/testing"
require "active_support/core_ext/numeric/time"
require "timecop"
require "simplecov"
require "coveralls"
pid = Process.pid
SimpleCov.at_exit do
SimpleCov.result.format! if Process.pid == pid
end
SimpleCov.formatte... | $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
require "rubygems"
require "sidekiq/testing"
require "active_support/core_ext/numeric/time"
require "timecop"
require "simplecov"
require "coveralls"
pid = Process.pid
SimpleCov.at_exit do
SimpleCov.result.format! if Process.pid == pid
end
SimpleCov.formatte... | Clean up redis after examples | Clean up redis after examples
| Ruby | mit | dtaniwaki/sidekiq-merger,dtaniwaki/sidekiq-merger | ruby | ## Code Before:
$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
require "rubygems"
require "sidekiq/testing"
require "active_support/core_ext/numeric/time"
require "timecop"
require "simplecov"
require "coveralls"
pid = Process.pid
SimpleCov.at_exit do
SimpleCov.result.format! if Process.pid == pid
end
Si... | $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
require "rubygems"
require "sidekiq/testing"
require "active_support/core_ext/numeric/time"
require "timecop"
require "simplecov"
require "coveralls"
pid = Process.pid
SimpleCov.at_exit do
SimpleCov.result.format! if Process.pid == pid
... | 9 | 0.163636 | 6 | 3 |
76e048c4570b652c217af4e10c4d4a37d9c72a86 | README.md | README.md | case-dash [](https://codeclimate.com/github/ileri/case-dash) [](https://travis-ci.org/ileri/case-dash)
==============
> Parse and stringify strings delimited by a dash
Install
-------... | case-dash [](https://codeclimate.com/github/ileri/case-dash) [](https://travis-ci.org/ileri/case-dash) [](https://codeclimate.com/github/ileri/case-dash) [](https://travis-ci.org/ileri/case-dash)
==============
> Parse and stringify strings delimited by a dash
... | - case-dash [](https://codeclimate.com/github/ileri/case-dash) [](https://travis-ci.org/ileri/case-dash)
+ case-dash [
}
| Add required init for protocol | Add required init for protocol
| Swift | mit | velvetroom/columbus | swift | ## Code Before:
import UIKit
protocol MSettingsProtocol
{
var reusableIdentifier:String { get }
var cellHeight:CGFloat { get }
}
## Instruction:
Add required init for protocol
## Code After:
import UIKit
protocol MSettingsProtocol
{
var reusableIdentifier:String { get }
var cellHeight:CGFloat { get ... | import UIKit
protocol MSettingsProtocol
{
var reusableIdentifier:String { get }
var cellHeight:CGFloat { get }
+
+ init(settings:DSettings)
} | 2 | 0.285714 | 2 | 0 |
60a3b345853d8b25c97a6366c5b4617a83183792 | config.mk | config.mk | INCLUDE+= -I..
CFLAGS+= -Wall -Wno-unknown-pragmas -std=c99 -ggdb $(INCLUDE) -D_XOPEN_SOURCE=500
# Installation
DESTDIR?= /
PREFIX?= /usr/local/
MANDEST= $(DESTDIR)/usr/share/man/man1/
BINDEST= $(DESTDIR)/$(PREFIX)/bin/
LIBDEST= $(DESTDIR)/$(PREFIX)/lib/
INCDEST= $(DESTDIR)/$(PREFIX)/include/
| INCLUDE+= -I..
CFLAGS+= -Wall -Wno-unknown-pragmas -std=c99 -ggdb $(INCLUDE) -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
# Installation
DESTDIR?= /
PREFIX?= /usr/local/
MANDEST= $(DESTDIR)/usr/share/man/man1/
BINDEST= $(DESTDIR)/$(PREFIX)/bin/
LIBDEST= $(DESTDIR)/$(PREFIX)/lib/
INCDEST= $(DESTDIR)/$(PREFIX)... | Use _XOPEN_SOURCE_EXTENDED instead of _XOPEN_SOURCE=500, since 500 breaks compilation on actual BSD machines | Use _XOPEN_SOURCE_EXTENDED instead of _XOPEN_SOURCE=500, since 500 breaks compilation on actual BSD machines
git-svn-id: dd14d189f2554b0b3f4c2209a95c13d2029e3fe8@1112 96dfbd92-d197-e211-9ca9-00110a534b34
| Makefile | mit | RyuKojiro/v6502 | makefile | ## Code Before:
INCLUDE+= -I..
CFLAGS+= -Wall -Wno-unknown-pragmas -std=c99 -ggdb $(INCLUDE) -D_XOPEN_SOURCE=500
# Installation
DESTDIR?= /
PREFIX?= /usr/local/
MANDEST= $(DESTDIR)/usr/share/man/man1/
BINDEST= $(DESTDIR)/$(PREFIX)/bin/
LIBDEST= $(DESTDIR)/$(PREFIX)/lib/
INCDEST= $(DESTDIR)/$(PREFIX)/incl... | INCLUDE+= -I..
- CFLAGS+= -Wall -Wno-unknown-pragmas -std=c99 -ggdb $(INCLUDE) -D_XOPEN_SOURCE=500
? ^^^^
+ CFLAGS+= -Wall -Wno-unknown-pragmas -std=c99 -ggdb $(INCLUDE) -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED
? ... | 2 | 0.181818 | 1 | 1 |
daeef5fea7e57a0546a2ff137bc0b738039b1259 | libraries/glassfish_helper.rb | libraries/glassfish_helper.rb |
class RealityForge #nodoc
module GlassFish #nodoc
class << self
# Return the current domain name
#
# The domain is typically set when configuration run starts
#
def get_current_domain(node)
domain_key = node.run_state['glassfish_domain']
raise 'No domain specified' u... |
class RealityForge #nodoc
module GlassFish #nodoc
class << self
# Return the current glassfish domain name
#
# The domain is typically set when configuration run starts
#
def get_current_domain(node)
domain_key = node.run_state['glassfish_domain']
raise 'No domain sp... | Improve the doc comments so that they are more specific | Improve the doc comments so that they are more specific
| Ruby | apache-2.0 | realityforge/chef-glassfish,realityforge/chef-glassfish,hopshadoop/chef-glassfish,realityforge/chef-glassfish,hopshadoop/chef-glassfish,hopshadoop/chef-glassfish | ruby | ## Code Before:
class RealityForge #nodoc
module GlassFish #nodoc
class << self
# Return the current domain name
#
# The domain is typically set when configuration run starts
#
def get_current_domain(node)
domain_key = node.run_state['glassfish_domain']
raise 'No dom... |
class RealityForge #nodoc
module GlassFish #nodoc
class << self
- # Return the current domain name
+ # Return the current glassfish domain name
? ++++++++++
#
# The domain is typically set when configuration run starts
#
def get_curr... | 4 | 0.181818 | 2 | 2 |
e593787ce47ecfe5ee47a1b2aa324c74808e0af0 | lib/extension-helper.coffee | lib/extension-helper.coffee | extensionsByFenceName =
'bash': 'sh'
'coffee': 'coffee'
'coffeescript': 'coffee'
'coffee-script': 'coffee'
'css': 'css'
'go': 'go'
'html': 'html'
'java': 'java'
'javascript': 'js'
'js': 'js'
'json': 'json'
'less': 'less'
'mustache': 'mustache'
'objc': 'm'
'objective-c': 'm'
'python': 'py... | extensionsByFenceName =
'bash': 'sh'
'coffee': 'coffee'
'coffeescript': 'coffee'
'coffee-script': 'coffee'
'css': 'css'
'go': 'go'
'html': 'html'
'java': 'java'
'javascript': 'js'
'js': 'js'
'json': 'json'
'less': 'less'
'mustache': 'mustache'
'objc': 'm'
'objective-c': 'm'
'python': 'py... | Support fenced yaml code blocks | Support fenced yaml code blocks
Refs atom/language-gfm#17
| CoffeeScript | mit | grimmer0125/markdown-preview-kramdown,makyo/markdown-preview,sctlee/markdown-preview,Galadirith/markdown-preview,rugk/markdown-preview,atom/markdown-preview,tkssharma/markdown-preview,ArnaudRinquin/markdown-preview | coffeescript | ## Code Before:
extensionsByFenceName =
'bash': 'sh'
'coffee': 'coffee'
'coffeescript': 'coffee'
'coffee-script': 'coffee'
'css': 'css'
'go': 'go'
'html': 'html'
'java': 'java'
'javascript': 'js'
'js': 'js'
'json': 'json'
'less': 'less'
'mustache': 'mustache'
'objc': 'm'
'objective-c': 'm'... | extensionsByFenceName =
'bash': 'sh'
'coffee': 'coffee'
'coffeescript': 'coffee'
'coffee-script': 'coffee'
'css': 'css'
'go': 'go'
'html': 'html'
'java': 'java'
'javascript': 'js'
'js': 'js'
'json': 'json'
'less': 'less'
'mustache': 'mustache'
'objc': 'm'
'o... | 2 | 0.076923 | 2 | 0 |
986012e1b960989a6ec5728219467e3868970b72 | services/api/package.json | services/api/package.json | {
"name": "api",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"build": "echo 'hi'",
"test": "jest",
"test:watch": "jest --watch",
"start": "node -r dotenv-extended/config src",
"dev": "NODE_ENV=development nodemon --watch src --exec 'node -r dotenv-extended/confi... | {
"name": "api",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"build": "echo 'hi'",
"test": "jest",
"test:watch": "jest --watch",
"start": "node -r dotenv-extended/config src",
"dev": "NODE_ENV=development nodemon --watch src --exec 'node -r dotenv-extended/confi... | Add jest & prettier to api devDeps | Add jest & prettier to api devDeps
| JSON | apache-2.0 | amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon,amazeeio/lagoon | json | ## Code Before:
{
"name": "api",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"build": "echo 'hi'",
"test": "jest",
"test:watch": "jest --watch",
"start": "node -r dotenv-extended/config src",
"dev": "NODE_ENV=development nodemon --watch src --exec 'node -r doten... | {
"name": "api",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"build": "echo 'hi'",
"test": "jest",
"test:watch": "jest --watch",
"start": "node -r dotenv-extended/config src",
"dev": "NODE_ENV=development nodemon --watch src --exec 'node -r... | 8 | 0.235294 | 8 | 0 |
020b27ec210d83aed0d2094d055221e5d2ac7af2 | .github/workflows/build.js.yml | .github/workflows/build.js.yml |
name: Check PR
on:
workflow_dispatch:
push:
branches:
- master
- release/*
- hotfix/*
pull_request:
branches-ignore:
- tag/*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v1
... |
name: Build without deploy
on:
workflow_dispatch:
push:
branches:
- master
- release/*
- hotfix/*
pull_request:
branches-ignore:
- tag/*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-no... | Build without deploy on pushes to master and release branches | Build without deploy on pushes to master and release branches
| YAML | unknown | bedrin/jdbc-sniffer-ui,sniffy/sniffy-ui,sniffy/sniffy-ui,bedrin/jdbc-sniffer-ui | yaml | ## Code Before:
name: Check PR
on:
workflow_dispatch:
push:
branches:
- master
- release/*
- hotfix/*
pull_request:
branches-ignore:
- tag/*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setu... |
- name: Check PR
+ name: Build without deploy
on:
workflow_dispatch:
push:
branches:
- master
- release/*
- hotfix/*
pull_request:
branches-ignore:
- tag/*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
... | 2 | 0.076923 | 1 | 1 |
c9b72d350872bf0d23d3b7905c7f8169c7f91a8b | reverb/cc/conversions.h | reverb/cc/conversions.h | // Copyright 2019 DeepMind Technologies Limited.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... | // Copyright 2019 DeepMind Technologies Limited.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... | Document why `ImportNumpy ` exists and when it should be used. | Document why `ImportNumpy ` exists and when it should be used.
PiperOrigin-RevId: 474532725
Change-Id: I305a57456bcac3186389a733e16d962fcee99dee
| C | apache-2.0 | deepmind/reverb,deepmind/reverb,deepmind/reverb,deepmind/reverb | c | ## Code Before:
// Copyright 2019 DeepMind Technologies Limited.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... | // Copyright 2019 DeepMind Technologies Limited.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... | 3 | 0.073171 | 3 | 0 |
1a534acf6038b35c8bba125c277d349ec967d5bd | lc0246_strobogrammatic_number.py | lc0246_strobogrammatic_number.py |
class Solution(object):
def isStrobogrammatic(self, num):
"""
:type num: str
:rtype: bool
"""
pass
def main():
# Output: true
num = "69"
print Solution().isStrobogrammatic(num)
# Output: true
num = "88"
print Solution().isStrobogrammatic(num)
... |
class SolutionMapDictIter(object):
def isStrobogrammatic(self, num):
"""
:type num: str
:rtype: bool
Time complexity: O(n).
Space complexity: O(n).
"""
# Reverse num.
rev_num = num[::-1]
# Convert to mapped number or empty string.
m... | Complete map dict sol w/ time/space complexity | Complete map dict sol w/ time/space complexity
| Python | bsd-2-clause | bowen0701/algorithms_data_structures | python | ## Code Before:
class Solution(object):
def isStrobogrammatic(self, num):
"""
:type num: str
:rtype: bool
"""
pass
def main():
# Output: true
num = "69"
print Solution().isStrobogrammatic(num)
# Output: true
num = "88"
print Solution().isStrobogra... |
- class Solution(object):
+ class SolutionMapDictIter(object):
? +++++++++++
def isStrobogrammatic(self, num):
"""
:type num: str
:rtype: bool
+
+ Time complexity: O(n).
+ Space complexity: O(n).
"""
+ # Reverse num.
+ r... | 38 | 1.407407 | 33 | 5 |
c898ba8fbd2caa4750fc4d50042338f7ad29c85f | example/peek42.dev.html | example/peek42.dev.html | <!DOCTYPE html>
<html lang="en" style="font-family: Avenir, sans-serif;">
<head>
<meta charset="utf-8" />
<title>Peek42</title>
<link rel="stylesheet" href="../monofur.css" />
<link rel="stylesheet" href="../peek42.css" />
<script src="https://unpkg.com/apivis@latest/dist/apivis.umd.js"></scri... | <!DOCTYPE html>
<html lang="en" style="font-family: Avenir, sans-serif;">
<head>
<meta charset="utf-8" />
<title>Peek42</title>
<link rel="stylesheet" href="../monofur.css" />
<link rel="stylesheet" href="../peek42.css" />
<script src="https://unpkg.com/apivis@latest/dist/apivis.umd.js"></scri... | Remove reference to the old library in example | Remove reference to the old library in example | HTML | mit | rpeev/konsole,rpeev/konsole | html | ## Code Before:
<!DOCTYPE html>
<html lang="en" style="font-family: Avenir, sans-serif;">
<head>
<meta charset="utf-8" />
<title>Peek42</title>
<link rel="stylesheet" href="../monofur.css" />
<link rel="stylesheet" href="../peek42.css" />
<script src="https://unpkg.com/apivis@latest/dist/apivi... | <!DOCTYPE html>
<html lang="en" style="font-family: Avenir, sans-serif;">
<head>
<meta charset="utf-8" />
<title>Peek42</title>
<link rel="stylesheet" href="../monofur.css" />
<link rel="stylesheet" href="../peek42.css" />
<script src="https://unpkg.com/apivis@latest/di... | 1 | 0.032258 | 0 | 1 |
21c41f3a74ecc4126cbb3d58afec21293cc1ad6c | test/elixir/elixir/partial_application_test.exs | test/elixir/elixir/partial_application_test.exs | defmodule Elixir::PartialApplicationTest do
use ExUnit::Case
def test_partial_with_simple_call_and_one_item do
fun = minus(10, _)
5 = fun.(5)
7 = fun.(3)
end
def test_partial_with_simple_call_and_all_items do
fun = minus(_, _)
5 = fun.(10, 5)
7 = fun.(13, 6)
end
def test_partial_w... | defmodule Elixir::PartialApplicationTest do
use ExUnit::Case
def test_partial_with_simple_call_and_one_item do
fun = minus(10, _)
5 = fun.(5)
7 = fun.(3)
end
def test_partial_with_simple_call_and_all_items do
fun = minus(_, _)
5 = fun.(10, 5)
7 = fun.(13, 6)
end
def test_partial_w... | Add test for partially applying an internal macro. | Add test for partially applying an internal macro.
| Elixir | apache-2.0 | beedub/elixir,beedub/elixir,lexmag/elixir,joshprice/elixir,antipax/elixir,lexmag/elixir,gfvcastro/elixir,ggcampinho/elixir,elixir-lang/elixir,gfvcastro/elixir,kimshrier/elixir,kimshrier/elixir,kelvinst/elixir,pedrosnk/elixir,kelvinst/elixir,pedrosnk/elixir,ggcampinho/elixir,michalmuskala/elixir,antipax/elixir | elixir | ## Code Before:
defmodule Elixir::PartialApplicationTest do
use ExUnit::Case
def test_partial_with_simple_call_and_one_item do
fun = minus(10, _)
5 = fun.(5)
7 = fun.(3)
end
def test_partial_with_simple_call_and_all_items do
fun = minus(_, _)
5 = fun.(10, 5)
7 = fun.(13, 6)
end
de... | defmodule Elixir::PartialApplicationTest do
use ExUnit::Case
def test_partial_with_simple_call_and_one_item do
fun = minus(10, _)
5 = fun.(5)
7 = fun.(3)
end
def test_partial_with_simple_call_and_all_items do
fun = minus(_, _)
5 = fun.(10, 5)
7 = fun.(13, 6)
... | 6 | 0.153846 | 6 | 0 |
27c26a0e037c3f6cb8d334b245367d4b37eda2f4 | xquery/proiel2treedown.xquery | xquery/proiel2treedown.xquery | declare function local:unwrap($t, $stok)
{
let $children := $stok[@head-id = $t/@id]
let $seq := ($children | $t)/.
return
if ($children)
then
<wg relation="{$t/@relation}">
{
for $s in $seq
return
if ($s is $t)
then $t
else local:un... | declare function local:token($t)
{
<w>{ string($t/@form) }</w>,
$t/@presentation-after[. != ' '] ! <pc>{string(.)}</pc>
};
declare function local:unwrap($t, $stok)
{
let $children := $stok[@head-id = $t/@id]
let $seq := ($children | $t)/.
return
if ($children)
then
<wg relation="{$t/@relation... | Simplify output to make it more readable. Early exploratory stages, known to be quite buggy. | Simplify output to make it more readable. Early exploratory stages, known to be quite buggy.
| XQuery | apache-2.0 | biblicalhumanities/treedown | xquery | ## Code Before:
declare function local:unwrap($t, $stok)
{
let $children := $stok[@head-id = $t/@id]
let $seq := ($children | $t)/.
return
if ($children)
then
<wg relation="{$t/@relation}">
{
for $s in $seq
return
if ($s is $t)
then $t
... | + declare function local:token($t)
+ {
+ <w>{ string($t/@form) }</w>,
+ $t/@presentation-after[. != ' '] ! <pc>{string(.)}</pc>
+ };
+
declare function local:unwrap($t, $stok)
{
let $children := $stok[@head-id = $t/@id]
let $seq := ($children | $t)/.
return
if ($children)
then
... | 18 | 0.642857 | 12 | 6 |
2f04ede56096bc0fb3d76383901e857daf2a8cd1 | README.md | README.md |
[](https://travis-ci.com/atom/github)
[](https://ci.appveyor.com/project/Atom/github/branch/master)
The Atom GitHub package... |
[](https://travis-ci.com/atom/github)
[](https://ci.appveyor.com/project/Atom/github/branch/master)
The Atom GitHub package... | Add new github.atom.io microsite to readme ✨ | Add new github.atom.io microsite to readme ✨ | Markdown | mit | atom/github,atom/github,atom/github | markdown | ## Code Before:
[](https://travis-ci.com/atom/github)
[](https://ci.appveyor.com/project/Atom/github/branch/master)
The Ato... |
[](https://travis-ci.com/atom/github)
[](https://ci.appveyor.com/project/Atom/github/branch/master)
- The Atom GitH... | 2 | 0.095238 | 1 | 1 |
6177b0cdc08221ab1e4400dfb94e65463b63b9fa | resources/js/components/user-collections/store.js | resources/js/components/user-collections/store.js | const defaultState = {
items: [],
}
const store = {
state: JSON.parse(localStorage.getItem('userCollections')) || defaultState,
getItems() {
return this.state.items
},
addItem(itemId) {
this.state.items.push({id: itemId})
this._saveState()
},
removeItem(itemId) {
this.state.items = thi... | const defaultState = {
items: [],
}
const store = {
state: JSON.parse(localStorage.getItem('userCollections')) || defaultState,
getItems() {
return this.state.items
},
addItem(itemId) {
this.state.items.push({id: itemId})
this._saveState()
this._track('addItem', itemId)
},
removeItem(i... | Add basic GTM tracking for user collections | Add basic GTM tracking for user collections
| JavaScript | mit | SlovakNationalGallery/web-umenia-2,SlovakNationalGallery/web-umenia-2,SlovakNationalGallery/web-umenia-2,SlovakNationalGallery/web-umenia-2 | javascript | ## Code Before:
const defaultState = {
items: [],
}
const store = {
state: JSON.parse(localStorage.getItem('userCollections')) || defaultState,
getItems() {
return this.state.items
},
addItem(itemId) {
this.state.items.push({id: itemId})
this._saveState()
},
removeItem(itemId) {
this.s... | const defaultState = {
items: [],
}
const store = {
state: JSON.parse(localStorage.getItem('userCollections')) || defaultState,
getItems() {
return this.state.items
},
addItem(itemId) {
this.state.items.push({id: itemId})
this._saveState()
+ this._track('addItem'... | 16 | 0.4 | 16 | 0 |
a148211d2ef765bfd6e67f0e658cc905a01a72eb | package.json | package.json | {
"private": true,
"name": "horizon",
"description": "Home of the Horizon theme for VS Code",
"author": "Jonathan Olaleye",
"license": "MIT",
"devDependencies": {
"node-sass": "^4.9.3",
"parcel-bundler": "^1.9.7"
}
}
| {
"private": true,
"name": "horizon",
"description": "Home of the Horizon theme for VS Code",
"author": "Jonathan Olaleye",
"license": "MIT",
"scripts": {
"start": "parcel index.html --out-dir build --no-autoinstall",
"build": "parcel build index.html --out-dir build"
},
"devDependencies": {
... | Add parcel serve and build scripts | Add parcel serve and build scripts
| JSON | mit | jolaleye/horizon-theme-vscode | json | ## Code Before:
{
"private": true,
"name": "horizon",
"description": "Home of the Horizon theme for VS Code",
"author": "Jonathan Olaleye",
"license": "MIT",
"devDependencies": {
"node-sass": "^4.9.3",
"parcel-bundler": "^1.9.7"
}
}
## Instruction:
Add parcel serve and build scripts
## Code Afte... | {
"private": true,
"name": "horizon",
"description": "Home of the Horizon theme for VS Code",
"author": "Jonathan Olaleye",
"license": "MIT",
+ "scripts": {
+ "start": "parcel index.html --out-dir build --no-autoinstall",
+ "build": "parcel build index.html --out-dir build"
+ },
"d... | 4 | 0.363636 | 4 | 0 |
28b19413776f0c9b9e5a94df50b195106afd7f5d | README.rst | README.rst | ----------
ironic_lib
----------
Overview
--------
A common library to be used by various projects in the Ironic ecosystem.
Running Tests
-------------
To run tests in virtualenvs (preferred)::
sudo pip install tox
tox
To run tests in the current environment::
sudo pip install -r requirements.txt
nosetes... | ----------
ironic_lib
----------
Overview
--------
A common library to be used **exclusively** by projects under the `Ironic
governance <http://governance.openstack.org/reference/projects/ironic.html>`_.
Running Tests
-------------
To run tests in virtualenvs (preferred)::
sudo pip install tox
tox
To run test... | Clarify which projects are meant to use the ironic-lib | Clarify which projects are meant to use the ironic-lib
This patch is updating the README file to clarify that only projects
under the Ironic governance should be consuming this library.
Change-Id: Ie1430c955e44311bbe5d60503ee146ce1601612e
| reStructuredText | apache-2.0 | openstack/ironic-lib,NaohiroTamura/ironic-lib | restructuredtext | ## Code Before:
----------
ironic_lib
----------
Overview
--------
A common library to be used by various projects in the Ironic ecosystem.
Running Tests
-------------
To run tests in virtualenvs (preferred)::
sudo pip install tox
tox
To run tests in the current environment::
sudo pip install -r requiremen... | ----------
ironic_lib
----------
Overview
--------
- A common library to be used by various projects in the Ironic ecosystem.
+ A common library to be used **exclusively** by projects under the `Ironic
+ governance <http://governance.openstack.org/reference/projects/ironic.html>`_.
Running Tests
... | 3 | 0.136364 | 2 | 1 |
9bf6405ce9f19f319a152e8cd9032707e8b1beae | README.rst | README.rst | nonogram-solver
===============
Simple script that solves nonograms. It has no great interface, just pass in the nonogram in two lists of lists into
`Puzzle()` and either call `solve()` or `solve_step()` to solve the nonogram entirely or on a step-by-step basis
respectively.
This script was made to solve a nonogram f... | nonogram-solver
===============
Simple script that solves nonograms. It has no great interface, just pass in the nonogram in two lists of lists into
`Puzzle()` and either call `solve()` or `solve_step()` to solve the nonogram entirely or on a step-by-step basis
respectively.
This script was made to solve a nonogram f... | Add link to online Break-In | Add link to online Break-In | reStructuredText | mit | ralphje/nonogram-solver | restructuredtext | ## Code Before:
nonogram-solver
===============
Simple script that solves nonograms. It has no great interface, just pass in the nonogram in two lists of lists into
`Puzzle()` and either call `solve()` or `solve_step()` to solve the nonogram entirely or on a step-by-step basis
respectively.
This script was made to so... | nonogram-solver
===============
Simple script that solves nonograms. It has no great interface, just pass in the nonogram in two lists of lists into
`Puzzle()` and either call `solve()` or `solve_step()` to solve the nonogram entirely or on a step-by-step basis
respectively.
This script was made to so... | 2 | 0.2 | 1 | 1 |
e7aca443a1a0597bdb7c69406e1dbefb99df1624 | src/main/java/ee/tuleva/onboarding/config/DigiDocConfiguration.java | src/main/java/ee/tuleva/onboarding/config/DigiDocConfiguration.java | package ee.tuleva.onboarding.config;
import static org.digidoc4j.Configuration.Mode.PROD;
import static org.digidoc4j.Configuration.Mode.TEST;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annota... | package ee.tuleva.onboarding.config;
import static org.digidoc4j.Configuration.Mode.PROD;
import static org.digidoc4j.Configuration.Mode.TEST;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annota... | Add staging profile to digidoc | Add staging profile to digidoc
| Java | mit | TulevaEE/onboarding-service,TulevaEE/onboarding-service,TulevaEE/onboarding-service,TulevaEE/onboarding-service | java | ## Code Before:
package ee.tuleva.onboarding.config;
import static org.digidoc4j.Configuration.Mode.PROD;
import static org.digidoc4j.Configuration.Mode.TEST;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframewor... | package ee.tuleva.onboarding.config;
import static org.digidoc4j.Configuration.Mode.PROD;
import static org.digidoc4j.Configuration.Mode.TEST;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframewor... | 2 | 0.076923 | 1 | 1 |
9143f8d7bf047ddaa85891357b835a9895ce3e7e | lib/gem_ext.rb | lib/gem_ext.rb | require 'lib/gem_ext/doorkeeper/application.rb'
require 'lib/gem_ext/doorkeeper/server'
| require_relative './gem_ext/doorkeeper/application.rb'
require_relative './gem_ext/doorkeeper/server'
| Fix mri load path issue | Fix mri load path issue
| Ruby | apache-2.0 | camallen/Panoptes,marten/Panoptes,srallen/Panoptes,rogerhutchings/Panoptes,astopy/Panoptes,zooniverse/Panoptes,parrish/Panoptes,astopy/Panoptes,edpaget/Panoptes,edpaget/Panoptes,parrish/Panoptes,parrish/Panoptes,rogerhutchings/Panoptes,astopy/Panoptes,srallen/Panoptes,parrish/Panoptes,edpaget/Panoptes,rogerhutchings/Pa... | ruby | ## Code Before:
require 'lib/gem_ext/doorkeeper/application.rb'
require 'lib/gem_ext/doorkeeper/server'
## Instruction:
Fix mri load path issue
## Code After:
require_relative './gem_ext/doorkeeper/application.rb'
require_relative './gem_ext/doorkeeper/server'
| - require 'lib/gem_ext/doorkeeper/application.rb'
? ^^^
+ require_relative './gem_ext/doorkeeper/application.rb'
? +++++++++ ^
- require 'lib/gem_ext/doorkeeper/server'
? ^^^
+ require_relative './gem_ext/doorkeeper/server'
? +++++++++ ^
| 4 | 2 | 2 | 2 |
6be2ddc7ca1cbe681a894bf4ddb1820a718d6347 | tools/makegraph.sh | tools/makegraph.sh |
dot -v -Tpng $1.gv > $1.png && eog $1.png
|
dot -v -Gdpi=300 -Tpng $1.gv > $1.png && eog $1.png
| Modify image resolution in graph generation script. | Modify image resolution in graph generation script.
| Shell | mit | samuelz/tiny-grep,grawies/tiny-grep | shell | ## Code Before:
dot -v -Tpng $1.gv > $1.png && eog $1.png
## Instruction:
Modify image resolution in graph generation script.
## Code After:
dot -v -Gdpi=300 -Tpng $1.gv > $1.png && eog $1.png
|
- dot -v -Tpng $1.gv > $1.png && eog $1.png
+ dot -v -Gdpi=300 -Tpng $1.gv > $1.png && eog $1.png
? ++++++++++
| 2 | 1 | 1 | 1 |
b425e473e309f889a0a98a66d488c6af64a4c956 | .travis.yml | .travis.yml | language: php
php:
- 5.5
- 5.6
- 7.0
- 7.1
before_script:
- curl -s http://getcomposer.org/installer | php
- php composer.phar install --dev
script: phpunit
| language: php
php:
- 5.5
- 5.6
- 7.0
- 7.1
env:
matrix:
- DEPENDENCIES=latest
- DEPENDENCIES=oldest
install:
- >
echo;
if [ "$DEPENDENCIES" = "latest" ]; then
echo "Installing the latest dependencies";
composer update --with-dependencies --prefer-stable --prefer-dist
else
echo "Installing the... | Test with both latest and oldest dependencies | [TASK] Test with both latest and oldest dependencies
This ensures that our dependency versions given in the composer.json always
provide a working set of packages.
| YAML | mit | mjaschen/collmex | yaml | ## Code Before:
language: php
php:
- 5.5
- 5.6
- 7.0
- 7.1
before_script:
- curl -s http://getcomposer.org/installer | php
- php composer.phar install --dev
script: phpunit
## Instruction:
[TASK] Test with both latest and oldest dependencies
This ensures that our dependency versions given in the compos... | language: php
php:
- - 5.5
? --
+ - 5.5
- - 5.6
? --
+ - 5.6
- - 7.0
? --
+ - 7.0
- - 7.1
? --
+ - 7.1
- before_script:
- - curl -s http://getcomposer.org/installer | php
- - php composer.phar install --dev
+ env:
+ matrix:
+ - DEPENDENCIES=latest
+ - DEPENDENCIES=oldest
+
+ install:
+ ... | 27 | 2.076923 | 20 | 7 |
d13b3b16f10c996e1f912825032b4efb9533c491 | examples/hydra/guild.yml | examples/hydra/guild.yml | basic-tutorial-1:
description: Pass flag values as Hydra command args
main: my_app_1 +db.driver=${driver} +db.user=${user} +db.password=${password}
flags-dest: none
flags:
driver: mysql
user: omry
password: secret
basic-tutorial-2:
description: Use a single config file with Hydra
main: my_app_2... | basic-tutorial-1:
description: Pass flag values as Hydra command args
main: my_app_1 +db.driver=${driver} +db.user=${user} +db.password=${password}
flags-dest: none
flags:
driver: mysql
user: omry
password: secret
basic-tutorial-2:
description: Use a single config file with Hydra
main: my_app_2... | Comment on obscure resource def for example | Comment on obscure resource def for example
| YAML | apache-2.0 | guildai/guild,guildai/guild,guildai/guild,guildai/guild | yaml | ## Code Before:
basic-tutorial-1:
description: Pass flag values as Hydra command args
main: my_app_1 +db.driver=${driver} +db.user=${user} +db.password=${password}
flags-dest: none
flags:
driver: mysql
user: omry
password: secret
basic-tutorial-2:
description: Use a single config file with Hydra
... | basic-tutorial-1:
description: Pass flag values as Hydra command args
main: my_app_1 +db.driver=${driver} +db.user=${user} +db.password=${password}
flags-dest: none
flags:
driver: mysql
user: omry
password: secret
basic-tutorial-2:
description: Use a single config file with ... | 4 | 0.111111 | 4 | 0 |
6c9d0a01a6a4fdda59bef42b75dd39d6d3212a33 | docs/readthedocs-pip-requirements.txt | docs/readthedocs-pip-requirements.txt | numpydoc==0.4
numpy
ipython
matplotlib
scipy
sphinx>=1.4
ipykernel
nbsphinx
numba
pyganja
| ipython
matplotlib
sphinx>=1.4
ipykernel
nbsphinx
pyganja
| Remove dependencies implied by setup.py | Remove dependencies implied by setup.py
| Text | bsd-3-clause | arsenovic/clifford,arsenovic/clifford | text | ## Code Before:
numpydoc==0.4
numpy
ipython
matplotlib
scipy
sphinx>=1.4
ipykernel
nbsphinx
numba
pyganja
## Instruction:
Remove dependencies implied by setup.py
## Code After:
ipython
matplotlib
sphinx>=1.4
ipykernel
nbsphinx
pyganja
| - numpydoc==0.4
- numpy
ipython
matplotlib
- scipy
sphinx>=1.4
ipykernel
nbsphinx
- numba
pyganja | 4 | 0.4 | 0 | 4 |
93a0d9618dcab4c1915105ad42c5cfed77afa798 | lib/sandbox_formulary.rb | lib/sandbox_formulary.rb | class Formulary
class << self
alias_method :original_factory, :factory
end
def self.factory(ref)
path = nil
repo = Repository.all.detect { |repo| path = repo.find_formula ref }
original_factory(path.nil? ? ref : File.join(repo.path, path))
end
end
| class Formulary
class << self
alias_method :original_factory, :factory
end
def self.factory(ref)
path = nil
repo = Repository.all.detect do |repo|
repo.extend RepositoryImport
path = repo.find_formula ref
end
original_factory(path.nil? ? ref : File.join(repo.path, path))
end
e... | Fix sandboxed Formulary to use RepositoryImport | Fix sandboxed Formulary to use RepositoryImport
| Ruby | bsd-3-clause | koraktor/braumeister.org,koraktor/braumeister.org,koraktor/braumeister.org,DJHartley/braumeister.org,AICIDNN/braumeister.org,AICIDNN/braumeister.org,DJHartley/braumeister.org,AICIDNN/braumeister.org,DJHartley/braumeister.org,koraktor/braumeister.org | ruby | ## Code Before:
class Formulary
class << self
alias_method :original_factory, :factory
end
def self.factory(ref)
path = nil
repo = Repository.all.detect { |repo| path = repo.find_formula ref }
original_factory(path.nil? ? ref : File.join(repo.path, path))
end
end
## Instruction:
Fix sandboxe... | class Formulary
class << self
alias_method :original_factory, :factory
end
def self.factory(ref)
path = nil
- repo = Repository.all.detect { |repo| path = repo.find_formula ref }
+ repo = Repository.all.detect do |repo|
+ repo.extend RepositoryImport
+ path = repo.fin... | 5 | 0.384615 | 4 | 1 |
d771ee933fee0e550824d949521ece73e8e441f5 | src/js/map.js | src/js/map.js | import THREE from 'three';
const maps = {
minimal( scene ) {
const geometry = new THREE.IcosahedronGeometry( 1, 2 );
const material = new THREE.MeshPhongMaterial({
shading: THREE.FlatShading
});
const mesh = new THREE.Mesh( geometry, material );
mesh.position.set( 0, 0, -8 );
scene.add... | import THREE from 'three';
function createAsteroidMesh( x, y, z, radius ) {
const geometry = new THREE.IcosahedronGeometry( radius, 2 );
const material = new THREE.MeshPhongMaterial({
shading: THREE.FlatShading
});
const mesh = new THREE.Mesh( geometry, material );
mesh.position.set( x, y, z );
return... | Generalize test scene geometry generation. | Generalize test scene geometry generation.
| JavaScript | mit | razh/flying-machines,razh/flying-machines | javascript | ## Code Before:
import THREE from 'three';
const maps = {
minimal( scene ) {
const geometry = new THREE.IcosahedronGeometry( 1, 2 );
const material = new THREE.MeshPhongMaterial({
shading: THREE.FlatShading
});
const mesh = new THREE.Mesh( geometry, material );
mesh.position.set( 0, 0, -8 ... | import THREE from 'three';
+
+ function createAsteroidMesh( x, y, z, radius ) {
+ const geometry = new THREE.IcosahedronGeometry( radius, 2 );
+ const material = new THREE.MeshPhongMaterial({
+ shading: THREE.FlatShading
+ });
+
+ const mesh = new THREE.Mesh( geometry, material );
+ mesh.position.set(... | 27 | 1.125 | 20 | 7 |
e7e7950a3f80e12436da91ffddca347a6cc1b5b0 | modules/fonts/install-hack.sh | modules/fonts/install-hack.sh |
HACK_RELEASES='https://github.com/chrissimpkins/Hack/releases/download/'
HACK_VERSION='v2.018/Hack-v2_018-ttf.zip'
HACK_URL=${HACK_RELEASES}${HACK_VERSION}
TEMP=`mktemp`
curl -L -o "${TEMP}" "${HACK_URL}"
if [ -d ~/Library/Fonts ]; then
unzip -o "${TEMP}" -d ~/Library/Fonts/
fi
if [ -d ~/.local/share/fonts ]; then
... |
HACK_RELEASES='https://github.com/chrissimpkins/Hack/releases/download/'
HACK_VERSION='v2.018/Hack-v2_018-ttf.zip'
HACK_URL=${HACK_RELEASES}${HACK_VERSION}
TEMP=`mktemp`
curl -L -o "${TEMP}" "${HACK_URL}"
# OSX
if [ -d ~/Library/Fonts ]; then
unzip -o "${TEMP}" -d ~/Library/Fonts/
else
# Linux
if [ -d /usr/share... | Install on Linux when ~/.local/share/fonts does not exist | [fonts] Install on Linux when ~/.local/share/fonts does not exist
Fixes #44
| Shell | mit | Tyriar/dotfiles,Tyriar/dotfiles,Tyriar/dotfiles,Tyriar/tyr-tools,Tyriar/tyr-tools | shell | ## Code Before:
HACK_RELEASES='https://github.com/chrissimpkins/Hack/releases/download/'
HACK_VERSION='v2.018/Hack-v2_018-ttf.zip'
HACK_URL=${HACK_RELEASES}${HACK_VERSION}
TEMP=`mktemp`
curl -L -o "${TEMP}" "${HACK_URL}"
if [ -d ~/Library/Fonts ]; then
unzip -o "${TEMP}" -d ~/Library/Fonts/
fi
if [ -d ~/.local/share... |
HACK_RELEASES='https://github.com/chrissimpkins/Hack/releases/download/'
HACK_VERSION='v2.018/Hack-v2_018-ttf.zip'
HACK_URL=${HACK_RELEASES}${HACK_VERSION}
TEMP=`mktemp`
curl -L -o "${TEMP}" "${HACK_URL}"
+ # OSX
if [ -d ~/Library/Fonts ]; then
unzip -o "${TEMP}" -d ~/Library/Fonts/
- fi
+ else
+ #... | 10 | 0.769231 | 7 | 3 |
8a6d7f17004bb95dacaab4608eb1d1e0d1f8538a | app/Traits/UsernameMentions.php | app/Traits/UsernameMentions.php | <?php
namespace App\Traits;
use App\Notifications\UsernameMentioned;
use App\User;
use Auth;
trait UsernameMentions
{
/**
* Handles all the mentions in the comment. (sends notifications to mentioned usernames).
*
* @param \App\Comment $comment
* @param \App\Submission $submission
* @p... | <?php
namespace App\Traits;
use App\Notifications\UsernameMentioned;
use App\User;
use Auth;
trait UsernameMentions
{
/**
* Handles all the mentions in the comment. (sends notifications to mentioned usernames).
*
* @param \App\Comment $comment
* @param \App\Submission $submission
* @p... | Fix "Trying to get property of non-object" when mentioning at your own submission | Fix "Trying to get property of non-object" when mentioning at your own submission
| PHP | apache-2.0 | voten-co/voten,voten-co/voten,voten-co/voten | php | ## Code Before:
<?php
namespace App\Traits;
use App\Notifications\UsernameMentioned;
use App\User;
use Auth;
trait UsernameMentions
{
/**
* Handles all the mentions in the comment. (sends notifications to mentioned usernames).
*
* @param \App\Comment $comment
* @param \App\Submission $subm... | <?php
namespace App\Traits;
use App\Notifications\UsernameMentioned;
use App\User;
use Auth;
trait UsernameMentions
{
/**
* Handles all the mentions in the comment. (sends notifications to mentioned usernames).
*
* @param \App\Comment $comment
* @param \App\Su... | 2 | 0.04878 | 1 | 1 |
6684ffd77a7f61074d5ef709eb091a971dcf984e | lib/cowboy/fft.rb | lib/cowboy/fft.rb | module Cowboy
def Cowboy::fft(arr, w=Hamming, n=29)
if !w.nil?
window = w.new(n)
input = window.convolve(arr)
fft_1d(input)
else
fft_1d(arr)
end
end
end
| module Cowboy
class Frequencies
attr_reader :dc, :unshifted, :freq
def initialize(unshifted_array)
@unshifted = unshifted_array
@dc = unshifted_array[0].real
n = unshifted_array.size
@freq = []
for i in (n/2...n)
@freq << unshifted_array[i].abs
end
for i in (... | Add frequencies class to do shift and include frequency buckets. | Add frequencies class to do shift and include frequency buckets.
| Ruby | mit | ciniglio/cowboy,ciniglio/cowboy | ruby | ## Code Before:
module Cowboy
def Cowboy::fft(arr, w=Hamming, n=29)
if !w.nil?
window = w.new(n)
input = window.convolve(arr)
fft_1d(input)
else
fft_1d(arr)
end
end
end
## Instruction:
Add frequencies class to do shift and include frequency buckets.
## Code After:
module Cowboy... | module Cowboy
+ class Frequencies
+ attr_reader :dc, :unshifted, :freq
+
+ def initialize(unshifted_array)
+ @unshifted = unshifted_array
+ @dc = unshifted_array[0].real
+ n = unshifted_array.size
+ @freq = []
+ for i in (n/2...n)
+ @freq << unshifted_array[i].abs
+ ... | 28 | 2.545455 | 28 | 0 |
60833abd3b466c36a8a355a68dfe67d196076ced | mistral/family.cmake | mistral/family.cmake | set(MISTRAL_ROOT "" CACHE STRING "Mistral install path")
set(MISTRAL_DONT_INSTALL ON)
add_subdirectory(${MISTRAL_ROOT}/libmistral ${CMAKE_CURRENT_BINARY_DIR}/libmistral)
find_package(LibLZMA REQUIRED)
foreach(family_target ${family_targets})
target_include_directories(${family_target} PRIVATE ${MISTRAL_ROOT}/lib... | set(MISTRAL_ROOT "" CACHE STRING "Mistral install path")
set(MISTRAL_DONT_INSTALL ON)
add_subdirectory(${MISTRAL_ROOT}/routes-to-bin ${CMAKE_CURRENT_BINARY_DIR}/routes-to-bin)
add_subdirectory(${MISTRAL_ROOT}/libmistral ${CMAKE_CURRENT_BINARY_DIR}/libmistral)
find_package(LibLZMA REQUIRED)
foreach(family_target ${fa... | Support the new routes-to-bin intermediate tool generation | mistral: Support the new routes-to-bin intermediate tool generation
| CMake | isc | YosysHQ/nextpnr,SymbiFlow/nextpnr,YosysHQ/nextpnr,SymbiFlow/nextpnr,SymbiFlow/nextpnr,SymbiFlow/nextpnr,YosysHQ/nextpnr,YosysHQ/nextpnr | cmake | ## Code Before:
set(MISTRAL_ROOT "" CACHE STRING "Mistral install path")
set(MISTRAL_DONT_INSTALL ON)
add_subdirectory(${MISTRAL_ROOT}/libmistral ${CMAKE_CURRENT_BINARY_DIR}/libmistral)
find_package(LibLZMA REQUIRED)
foreach(family_target ${family_targets})
target_include_directories(${family_target} PRIVATE ${M... | set(MISTRAL_ROOT "" CACHE STRING "Mistral install path")
set(MISTRAL_DONT_INSTALL ON)
+ add_subdirectory(${MISTRAL_ROOT}/routes-to-bin ${CMAKE_CURRENT_BINARY_DIR}/routes-to-bin)
add_subdirectory(${MISTRAL_ROOT}/libmistral ${CMAKE_CURRENT_BINARY_DIR}/libmistral)
find_package(LibLZMA REQUIRED)
foreach(... | 1 | 0.076923 | 1 | 0 |
f0fb4e2c9edbbe8abd31b1b71de00c9fe1a8042d | lib/money-rails/money.rb | lib/money-rails/money.rb | require "active_support/core_ext/module/aliasing.rb"
require "active_support/core_ext/hash/reverse_merge.rb"
class Money
def format_with_settings(*rules)
rules = normalize_formatting_rules(rules)
# Apply global defaults for money only for non-nil values
defaults = {
no_cents_if_whole: MoneyRails:... | require "active_support/core_ext/module/aliasing.rb"
require "active_support/core_ext/hash/reverse_merge.rb"
class Money
alias_method :orig_format, :format
def format(*rules)
rules = normalize_formatting_rules(rules)
# Apply global defaults for money only for non-nil values
defaults = {
no_cent... | Use alias_method instead of alias_method_chain | Use alias_method instead of alias_method_chain
| Ruby | mit | antstorm/money-rails,Nghi93/money-rails,RubyMoney/money-rails,Nghi93/money-rails,BookBub/money-rails,BookBub/money-rails,antstorm/money-rails,RubyMoney/money-rails,Nghi93/money-rails,BookBub/money-rails,antstorm/money-rails,RubyMoney/money-rails | ruby | ## Code Before:
require "active_support/core_ext/module/aliasing.rb"
require "active_support/core_ext/hash/reverse_merge.rb"
class Money
def format_with_settings(*rules)
rules = normalize_formatting_rules(rules)
# Apply global defaults for money only for non-nil values
defaults = {
no_cents_if_wh... | require "active_support/core_ext/module/aliasing.rb"
require "active_support/core_ext/hash/reverse_merge.rb"
class Money
+ alias_method :orig_format, :format
- def format_with_settings(*rules)
+ def format(*rules)
rules = normalize_formatting_rules(rules)
# Apply global defaults for mon... | 7 | 0.259259 | 3 | 4 |
9eef192123837a5258ecac1018bec41a908b9890 | src/client/utils/colors.js | src/client/utils/colors.js | /**
* Convert a color hex to an rgb value
*
* Note that this currently only works with 6 digit hexes.
*/
export const hexToRgb = (colorHex) => {
const colorValue = parseInt(colorHex.replace('#', ''), 16)
return [
(colorValue >> 16) & 255,
(colorValue >> 8) & 255,
colorValue & 255,
].join()
}
/**
... | /**
* Convert a color hex to an rgb value
*
* Note that this currently only works with 6 digit hexes.
*/
export const hexToRgb = (colorHex) => {
const colorValue = parseInt(colorHex.replace('#', ''), 16)
return [
(colorValue >> 16) & 255,
(colorValue >> 8) & 255,
colorValue & 255,
].join()
}
/**
... | Add Data Hub header colours | Add Data Hub header colours
| JavaScript | mit | uktrade/data-hub-frontend,uktrade/data-hub-frontend,uktrade/data-hub-fe-beta2,uktrade/data-hub-frontend,uktrade/data-hub-fe-beta2 | javascript | ## Code Before:
/**
* Convert a color hex to an rgb value
*
* Note that this currently only works with 6 digit hexes.
*/
export const hexToRgb = (colorHex) => {
const colorValue = parseInt(colorHex.replace('#', ''), 16)
return [
(colorValue >> 16) & 255,
(colorValue >> 8) & 255,
colorValue & 255,
... | /**
* Convert a color hex to an rgb value
*
* Note that this currently only works with 6 digit hexes.
*/
export const hexToRgb = (colorHex) => {
const colorValue = parseInt(colorHex.replace('#', ''), 16)
return [
(colorValue >> 16) & 255,
(colorValue >> 8) & 255,
colorValue & 2... | 13 | 0.448276 | 12 | 1 |
7409ef1e9e8a0d84e11617a31a9883f519859900 | copy_pod_try.sh | copy_pod_try.sh | POD_NAME="$1"
DESTINATION_DIR="$2"
POD_TRY_OPTION="$3"
echo "Invoking 'pod try $POD_NAME'"
POD_TRY_DIR="$(pod _1.6.1_ try --verbose $POD_NAME <<< $POD_TRY_OPTION | tail -1 | awk '{print $2}' | echo "/$(cut -d\/ -f2-11)")"
echo "Copying contents of '$POD_TRY_DIR' into '$DESTINATION_DIR'"
cp -R $POD_TRY_DIR/* $DESTINAT... | POD_NAME="$1"
DESTINATION_DIR="$2"
POD_TRY_OPTION="$3"
echo "Invoking 'pod try $POD_NAME'"
POD_TRY_DIR="$(pod _1.6.1_ try $POD_NAME <<< $POD_TRY_OPTION | tail -1 | awk '{print $2}' | echo "/$(cut -d\/ -f2-11)")"
echo "Copying contents of '$POD_TRY_DIR' into '$DESTINATION_DIR'"
cp -R $POD_TRY_DIR/* $DESTINATION_DIR/.
... | Revert "build: Add --verbose flag to pod try script." | Revert "build: Add --verbose flag to pod try script."
This reverts commit 88bde02022f5a45c489fd2edbaab9d69f6dcf62e.
| Shell | apache-2.0 | googlemaps/maps-sdk-for-ios-samples,googlemaps/maps-sdk-for-ios-samples,googlemaps/maps-sdk-for-ios-samples,googlemaps/maps-sdk-for-ios-samples | shell | ## Code Before:
POD_NAME="$1"
DESTINATION_DIR="$2"
POD_TRY_OPTION="$3"
echo "Invoking 'pod try $POD_NAME'"
POD_TRY_DIR="$(pod _1.6.1_ try --verbose $POD_NAME <<< $POD_TRY_OPTION | tail -1 | awk '{print $2}' | echo "/$(cut -d\/ -f2-11)")"
echo "Copying contents of '$POD_TRY_DIR' into '$DESTINATION_DIR'"
cp -R $POD_TRY... | POD_NAME="$1"
DESTINATION_DIR="$2"
POD_TRY_OPTION="$3"
echo "Invoking 'pod try $POD_NAME'"
- POD_TRY_DIR="$(pod _1.6.1_ try --verbose $POD_NAME <<< $POD_TRY_OPTION | tail -1 | awk '{print $2}' | echo "/$(cut -d\/ -f2-11)")"
? ----------
+ POD_TRY_DIR="$(pod _1.6.1_ try $POD_NAM... | 2 | 0.2 | 1 | 1 |
a0cc350cf1fc7fa7faf3656e05834fd0d1a3cb82 | app/controllers/questions_controller.rb | app/controllers/questions_controller.rb | class QuestionsController < ApplicationController
def index
@questions = Question.last(10)
end
def new
@question = Question.new
end
def create
params[:question][:user_id] = current_user.id
@question = Question.create(question_params)
redirect_to questions_path
end
def show
@qu... | class QuestionsController < ApplicationController
def index
@questions = Question.last(10)
end
def new
@question = Question.new
end
def create
params[:question][:user_id] = current_user.id
@question = Question.create(question_params)
redirect_to questions_path
end
def show
@qu... | Add query to sum votes to question controller | Add query to sum votes to question controller
| Ruby | mit | melissawimberly/MustacheYouAQuestion,melissawimberly/MustacheYouAQuestion,melissawimberly/MustacheYouAQuestion | ruby | ## Code Before:
class QuestionsController < ApplicationController
def index
@questions = Question.last(10)
end
def new
@question = Question.new
end
def create
params[:question][:user_id] = current_user.id
@question = Question.create(question_params)
redirect_to questions_path
end
... | class QuestionsController < ApplicationController
def index
@questions = Question.last(10)
end
def new
@question = Question.new
end
def create
params[:question][:user_id] = current_user.id
@question = Question.create(question_params)
redirect_to questions_... | 2 | 0.05 | 2 | 0 |
ce8a459a9cdfc31934cdb8dcf8a478192a8d51b7 | installers/ansible/roles/pgo-operator/files/pgo-configs/container-resources.json | installers/ansible/roles/pgo-operator/files/pgo-configs/container-resources.json | {{ if or .RequestsMemory .RequestsCPU }}
"resources": {
{{ if .RequestsCPU }}
"limits": {
"cpu": "{{.RequestsCPU}}"
},
"requests": {
{{ if .RequestsCPU }}
"cpu": "{{.RequestsCPU}}"{{ if .RequestsMemory }},{{ end }}
{{ end }}
{{ if .RequestsMemory }}
"memory": "{{.RequestsMemory}}"
{{... | {{ if or .RequestsMemory .RequestsCPU }}
"resources": {
{{ if .RequestsCPU }}
"limits": {
"cpu": "{{.RequestsCPU}}"
},
{{ end }}
"requests": {
{{ if .RequestsCPU }}
"cpu": "{{.RequestsCPU}}"{{ if .RequestsMemory }},{{ end }}
{{ end }}
{{ if .RequestsMemory }}
"memory": "{{.RequestsMemo... | Fix syntax error in installer file | Fix syntax error in installer file
This is the result of yet another misalignment between the two sets
of install configuration files for our templates, this one yet again
introduced by yours truly.
| JSON | apache-2.0 | CrunchyData/postgres-operator,CrunchyData/postgres-operator | json | ## Code Before:
{{ if or .RequestsMemory .RequestsCPU }}
"resources": {
{{ if .RequestsCPU }}
"limits": {
"cpu": "{{.RequestsCPU}}"
},
"requests": {
{{ if .RequestsCPU }}
"cpu": "{{.RequestsCPU}}"{{ if .RequestsMemory }},{{ end }}
{{ end }}
{{ if .RequestsMemory }}
"memory": "{{.Requests... | {{ if or .RequestsMemory .RequestsCPU }}
"resources": {
{{ if .RequestsCPU }}
"limits": {
"cpu": "{{.RequestsCPU}}"
},
+ {{ end }}
"requests": {
{{ if .RequestsCPU }}
"cpu": "{{.RequestsCPU}}"{{ if .RequestsMemory }},{{ end }}
{{ end }}
{{ if .RequestsMemory }}
... | 1 | 0.0625 | 1 | 0 |
008fdf0ddd913440161b73299eba7581dd2c2c9b | .github/workflows/history.sh | .github/workflows/history.sh | set -Eeuo pipefail
# "docker history", but ignoring/munging known problematic bits for the purposes of creating image diffs
docker image history --no-trunc --format '{{ .CreatedBy }}' "$@" \
| tac \
| sed -r 's!^/bin/sh[[:space:]]+-c[[:space:]]+(#[(]nop[)][[:space:]]+)?!!' \
| awk '
# ignore the first ADD of the... | set -Eeuo pipefail
# "docker history", but ignoring/munging known problematic bits for the purposes of creating image diffs
docker image history --no-trunc --format '{{ .CreatedBy }}' "$@" \
| tac \
| sed -r 's!^/bin/sh[[:space:]]+-c[[:space:]]+(#[(]nop[)][[:space:]]+)?!!' \
| gawk '
# munge the checksum of the ... | Remove unnecessary CentOS references and add Kibana's timestamp-ignoring code | Remove unnecessary CentOS references and add Kibana's timestamp-ignoring code
| Shell | apache-2.0 | docker-library/logstash,infosiftr/logstash | shell | ## Code Before:
set -Eeuo pipefail
# "docker history", but ignoring/munging known problematic bits for the purposes of creating image diffs
docker image history --no-trunc --format '{{ .CreatedBy }}' "$@" \
| tac \
| sed -r 's!^/bin/sh[[:space:]]+-c[[:space:]]+(#[(]nop[)][[:space:]]+)?!!' \
| awk '
# ignore the ... | set -Eeuo pipefail
# "docker history", but ignoring/munging known problematic bits for the purposes of creating image diffs
docker image history --no-trunc --format '{{ .CreatedBy }}' "$@" \
| tac \
| sed -r 's!^/bin/sh[[:space:]]+-c[[:space:]]+(#[(]nop[)][[:space:]]+)?!!' \
- | awk '
+ | gawk '
? ... | 14 | 0.583333 | 5 | 9 |
eb7538be926c037f189673c0d807c1409f795738 | resources/views/admin/index.blade.php | resources/views/admin/index.blade.php | @extends('crudapi::layouts.master')
@section('content')
<h1>{{ $model }}</h1>
<table class="table">
<tr>
@foreach($fields as $f)
<th>{{ ucfirst($f) }}</th>
@endforeach
<th>Created At</th>
<th>Updated At</th>
</tr>
<tbody>
@if(isset($items))
... | @extends('crudapi::layouts.master')
@section('content')
<h1>{{ $model }}</h1>
<table class="table">
<tr>
@foreach($fields as $f)
<th>{{ ucfirst($f) }}</th>
@endforeach
<th>Created At</th>
<th>Updated At</th>
<th>Actions</th>
</tr>
<tbody>
... | Add placeholder buttons for actions (edit, delete) | Add placeholder buttons for actions (edit, delete)
| PHP | mit | taskforcedev/crud-api,taskforcedev/crud-api | php | ## Code Before:
@extends('crudapi::layouts.master')
@section('content')
<h1>{{ $model }}</h1>
<table class="table">
<tr>
@foreach($fields as $f)
<th>{{ ucfirst($f) }}</th>
@endforeach
<th>Created At</th>
<th>Updated At</th>
</tr>
<tbody>
@if(isse... | @extends('crudapi::layouts.master')
@section('content')
<h1>{{ $model }}</h1>
<table class="table">
<tr>
@foreach($fields as $f)
<th>{{ ucfirst($f) }}</th>
@endforeach
<th>Created At</th>
<th>Updated At</th>
+ <th>Actions</th>
... | 2 | 0.071429 | 2 | 0 |
25281351fb084a89ec4bc0b43b61d670fdc36658 | visual-archetype/src/main/resources/archetype-resources/client/src/main/java/Main.java | visual-archetype/src/main/resources/archetype-resources/client/src/main/java/Main.java | package ${package};
import net.java.html.boot.BrowserBuilder;
public final class Main {
private Main() {
}
public static void main(String... args) throws Exception {
BrowserBuilder.newBrowser().
loadPage("pages/index.html").
loadClass(Main.class).
invoke("onPag... | package ${package};
import net.java.html.boot.BrowserBuilder;
public final class Main {
private Main() {
}
public static void main(String... args) throws Exception {
System.setProperty("prism.order", "sw");
BrowserBuilder.newBrowser().
loadPage("pages/index.html").
... | Enforce software renderng pipeline to avoid flickering | Enforce software renderng pipeline to avoid flickering | Java | mit | dukescript/maven-archetypes,dukescript/maven-archetypes,dukescript/maven-archetypes | java | ## Code Before:
package ${package};
import net.java.html.boot.BrowserBuilder;
public final class Main {
private Main() {
}
public static void main(String... args) throws Exception {
BrowserBuilder.newBrowser().
loadPage("pages/index.html").
loadClass(Main.class).
... | package ${package};
import net.java.html.boot.BrowserBuilder;
public final class Main {
private Main() {
}
public static void main(String... args) throws Exception {
+ System.setProperty("prism.order", "sw");
BrowserBuilder.newBrowser().
loadPage("pages/i... | 1 | 0.04 | 1 | 0 |
886146ac77d77e9695b895be88cfdee9b5e5eb24 | Cargo.toml | Cargo.toml | [package]
name = "fftw"
version = "0.1.0"
authors = ["Toshiki Teramura <toshiki.teramura@gmail.com>"]
description = "safe wrapper of FFTW3"
repository = "https://github.com/termoshtt/rust-fftw3"
keywords = ["fftw"]
license = "GPL-3.0"
[features]
default = ["source"]
system = ["fftw-sys/system"]
source = ["fftw-sys/so... | [package]
name = "fftw"
version = "0.1.0"
authors = ["Toshiki Teramura <toshiki.teramura@gmail.com>"]
description = "safe wrapper of FFTW3"
repository = "https://github.com/termoshtt/rust-fftw3"
keywords = ["fftw"]
license = "GPL-3.0"
[features]
default = ["source"]
system = ["fftw-sys/system"]
source = ["fftw-sys/so... | Use num-traits v0.1 (do not use git) | Use num-traits v0.1 (do not use git)
| TOML | mit | termoshtt/rust-fftw3 | toml | ## Code Before:
[package]
name = "fftw"
version = "0.1.0"
authors = ["Toshiki Teramura <toshiki.teramura@gmail.com>"]
description = "safe wrapper of FFTW3"
repository = "https://github.com/termoshtt/rust-fftw3"
keywords = ["fftw"]
license = "GPL-3.0"
[features]
default = ["source"]
system = ["fftw-sys/system"]
source... | [package]
name = "fftw"
version = "0.1.0"
authors = ["Toshiki Teramura <toshiki.teramura@gmail.com>"]
description = "safe wrapper of FFTW3"
repository = "https://github.com/termoshtt/rust-fftw3"
keywords = ["fftw"]
license = "GPL-3.0"
[features]
default = ["source"]
system = ["fftw-sys/syste... | 2 | 0.074074 | 1 | 1 |
a9da3f3a71a7cc42f2e4cfa4c1f0fe0274f544b2 | _config.yml | _config.yml | title: Blog by Hilzu
email: hilzu@iki.fi
description: >
Random thoughts mostly about technology and especially about web stack.
baseurl: "" # the subpath of your site, e.g. /blog/
url: "https://blog.hilzu.moe" # the base hostname & protocol for your site
twitter_username: ze_hilda
github_username: hilzu
permalink: p... | title: Blog by Hilzu
email: hilzu@iki.fi
description: >
Random thoughts mostly about technology and especially about web stack.
baseurl: "" # the subpath of your site, e.g. /blog/
url: "https://blog.hilzu.moe" # the base hostname & protocol for your site
twitter_username: ze_hilda
github_username: hilzu
permalink: p... | Add sitemap gem for sitemap generation | Add sitemap gem for sitemap generation
| YAML | mit | Hilzu/blog.hilzu.moe,Hilzu/blog.hilzu.moe | yaml | ## Code Before:
title: Blog by Hilzu
email: hilzu@iki.fi
description: >
Random thoughts mostly about technology and especially about web stack.
baseurl: "" # the subpath of your site, e.g. /blog/
url: "https://blog.hilzu.moe" # the base hostname & protocol for your site
twitter_username: ze_hilda
github_username: hi... | title: Blog by Hilzu
email: hilzu@iki.fi
description: >
Random thoughts mostly about technology and especially about web stack.
baseurl: "" # the subpath of your site, e.g. /blog/
url: "https://blog.hilzu.moe" # the base hostname & protocol for your site
twitter_username: ze_hilda
github_username: hi... | 3 | 0.1875 | 3 | 0 |
926ad4491849c574cdec03fc996dcd07f61a9000 | doc/INSTALL-ubuntu.md | doc/INSTALL-ubuntu.md | Feedbin Installation on Ubuntu 12.04
------------------------------------
### Ubuntu 12.04 Dependencies
apt-get install -y python-software-properties
add-apt-repository -y ppa:pitti/postgresql
apt-get -y update
apt-get -y upgrade
apt-get install -y build-essential curl libreadline-dev libcurl4-gn... | Feedbin Installation on Ubuntu 12.04
------------------------------------
### Ubuntu 12.04 Dependencies
apt-get install -y python-software-properties
add-apt-repository -y ppa:pitti/postgresql
add-apt-repository ppa:brightbox/ruby-ng-experimental
apt-get update
apt-get install -y ruby2.0 ruby2.0-... | Add more detailed instructions for development installation on Ubuntu 12.04. | Add more detailed instructions for development installation on Ubuntu 12.04. | Markdown | mit | brendanlong/feedbin,saitodisse/feedbin,feedbin/feedbin,brendanlong/feedbin,nota-ja/feedbin,feedbin/feedbin,nota-ja/feedbin,fearenales/feedbin,feedbin/feedbin,brendanlong/feedbin,nota-ja/feedbin,azukiapp/feedbin,feedbin/feedbin,fearenales/feedbin,azukiapp/feedbin,saitodisse/feedbin,saitodisse/feedbin,fearenales/feedbin,... | markdown | ## Code Before:
Feedbin Installation on Ubuntu 12.04
------------------------------------
### Ubuntu 12.04 Dependencies
apt-get install -y python-software-properties
add-apt-repository -y ppa:pitti/postgresql
apt-get -y update
apt-get -y upgrade
apt-get install -y build-essential curl libreadline... | Feedbin Installation on Ubuntu 12.04
------------------------------------
### Ubuntu 12.04 Dependencies
apt-get install -y python-software-properties
add-apt-repository -y ppa:pitti/postgresql
+ add-apt-repository ppa:brightbox/ruby-ng-experimental
- apt-get -y update
? ---
... | 38 | 3.166667 | 33 | 5 |
9d0f1ea3d75a913433a045c9edd1e9d55f08e3b5 | ModuleConfig.cfc | ModuleConfig.cfc | component {
this.title = "SendGrid Web API v3";
this.author = "Matthew J. Clemente";
this.webURL = "https://github.com/mjclemente/sendgrid.cfc";
this.description = "A wrapper for the SendGrid Web API v3";
function configure(){
settings = {
apiKey = '', // Required
baseUrl = 'https://api.sendgrid.com/v3',... | component {
this.title = "SendGrid Web API v3";
this.author = "Matthew J. Clemente";
this.webURL = "https://github.com/mjclemente/sendgrid.cfc";
this.description = "A wrapper for the SendGrid Web API v3";
function configure(){
settings = {
apiKey = '', // Required
baseUrl = 'https://api.sendgrid.com/v3',... | Remove leading slash for modulemapping | Remove leading slash for modulemapping
| ColdFusion CFC | mit | mjclemente/sendgrid.cfc | coldfusion-cfc | ## Code Before:
component {
this.title = "SendGrid Web API v3";
this.author = "Matthew J. Clemente";
this.webURL = "https://github.com/mjclemente/sendgrid.cfc";
this.description = "A wrapper for the SendGrid Web API v3";
function configure(){
settings = {
apiKey = '', // Required
baseUrl = 'https://api.s... | component {
this.title = "SendGrid Web API v3";
this.author = "Matthew J. Clemente";
this.webURL = "https://github.com/mjclemente/sendgrid.cfc";
this.description = "A wrapper for the SendGrid Web API v3";
function configure(){
settings = {
apiKey = '', // Required
baseUrl = 'https:/... | 2 | 0.057143 | 1 | 1 |
31c0a1c9a5090727a20d4942f9c1fb3189b190d1 | lib/pkgcloud/amazon/storage/client/index.js | lib/pkgcloud/amazon/storage/client/index.js | /*
* client.js: Storage client for AWS S3
*
* (C) 2011 Nodejitsu Inc.
*
*/
var utile = require('utile'),
urlJoin = require('url-join'),
xml2js = require('xml2js'),
auth = require('../../../common/auth'),
amazon = require('../../client');
var Client = exports.Client = function (options) {
this.s... | /*
* client.js: Storage client for AWS S3
*
* (C) 2011 Nodejitsu Inc.
*
*/
var utile = require('utile'),
urlJoin = require('url-join'),
xml2js = require('xml2js'),
auth = require('../../../common/auth'),
amazon = require('../../client');
var Client = exports.Client = function (options) {
this.s... | Allow AWS client against non-https servers | Allow AWS client against non-https servers
I want to test my application against a "fake" local S3. It is not running HTTPS. This change allows me to specify a non-HTTPS connection by passing { protocol: 'http://' } to the client creation as an option. | JavaScript | mit | bunglestink/pkgcloud,songanbui/pkgcloud,mcanthony/pkgcloud,Phanatic/pkgcloud,dionjwa/pkgcloud,apla/pkgcloud,DonSchenck/pkgcloud,hacor/pkgcloud,pkgcloud/pkgcloud,Hopebaytech/pkgcloud,andrewsomething/pkgcloud,temka1234/pkgcloud,mdsummers/pkgcloud,Phanatic/pkgcloud | javascript | ## Code Before:
/*
* client.js: Storage client for AWS S3
*
* (C) 2011 Nodejitsu Inc.
*
*/
var utile = require('utile'),
urlJoin = require('url-join'),
xml2js = require('xml2js'),
auth = require('../../../common/auth'),
amazon = require('../../client');
var Client = exports.Client = function (opt... | /*
* client.js: Storage client for AWS S3
*
* (C) 2011 Nodejitsu Inc.
*
*/
var utile = require('utile'),
urlJoin = require('url-join'),
xml2js = require('xml2js'),
auth = require('../../../common/auth'),
amazon = require('../../client');
var Client = exports.Client = f... | 4 | 0.067797 | 2 | 2 |
cad48e91776ded810b23c336380797c88dd456c0 | services/netflix.py | services/netflix.py | import urlparse
import foauth.providers
from oauthlib.oauth1.rfc5849 import SIGNATURE_TYPE_QUERY
class Netflix(foauth.providers.OAuth1):
# General info about the provider
provider_url = 'https://www.netflix.com/'
docs_url = 'http://developer.netflix.com/docs'
# URLs to interact with the API
requ... | import urlparse
import foauth.providers
from oauthlib.oauth1.rfc5849 import SIGNATURE_TYPE_QUERY
class Netflix(foauth.providers.OAuth1):
# General info about the provider
provider_url = 'https://www.netflix.com/'
docs_url = 'http://developer.netflix.com/docs'
# URLs to interact with the API
requ... | Fix Netflix in light of the new scope selection system | Fix Netflix in light of the new scope selection system
| Python | bsd-3-clause | foauth/foauth.org,foauth/foauth.org,foauth/foauth.org | python | ## Code Before:
import urlparse
import foauth.providers
from oauthlib.oauth1.rfc5849 import SIGNATURE_TYPE_QUERY
class Netflix(foauth.providers.OAuth1):
# General info about the provider
provider_url = 'https://www.netflix.com/'
docs_url = 'http://developer.netflix.com/docs'
# URLs to interact with ... | import urlparse
import foauth.providers
from oauthlib.oauth1.rfc5849 import SIGNATURE_TYPE_QUERY
class Netflix(foauth.providers.OAuth1):
# General info about the provider
provider_url = 'https://www.netflix.com/'
docs_url = 'http://developer.netflix.com/docs'
# URLs to intera... | 4 | 0.108108 | 2 | 2 |
ced84f283761f38156960f2d8e001ba6f3cd2b08 | src/hook/index.js | src/hook/index.js | import { Base } from 'yeoman-generator';
import generatorArguments from './arguments';
import generatorOptions from './options';
import generatorSteps from './steps';
export default class HookGenerator extends Base {
constructor(...args) {
super(...args);
Object.keys(generatorArguments).forEach(key => this.... | import { Base } from 'yeoman-generator';
import generatorArguments from './arguments';
import generatorOptions from './options';
import generatorSteps from './steps';
export default class HookGenerator extends Base {
constructor(...args) {
super(...args);
Object.keys(generatorArguments).forEach(key => this.... | Add description to hook generator | Add description to hook generator
| JavaScript | mit | tnunes/generator-trails,IncoCode/generator-sails-rest-api,ghaiklor/generator-sails-rest-api,jaumard/generator-trails,konstantinzolotarev/generator-trails,italoag/generator-sails-rest-api,italoag/generator-sails-rest-api,ghaiklor/generator-sails-rest-api | javascript | ## Code Before:
import { Base } from 'yeoman-generator';
import generatorArguments from './arguments';
import generatorOptions from './options';
import generatorSteps from './steps';
export default class HookGenerator extends Base {
constructor(...args) {
super(...args);
Object.keys(generatorArguments).forE... | import { Base } from 'yeoman-generator';
import generatorArguments from './arguments';
import generatorOptions from './options';
import generatorSteps from './steps';
export default class HookGenerator extends Base {
constructor(...args) {
super(...args);
Object.keys(generatorArguments).... | 2 | 0.044444 | 2 | 0 |
790a54a59c0544748f00d04eae84183837e85b54 | kura/distrib/src/main/resources/fedora25-nn/README.md | kura/distrib/src/main/resources/fedora25-nn/README.md | Manual steps to install Kura 3.0 on Fedora 25 / Raspberry Pi
==
See [../fedora25/README.md](../fedora25/README.md).
| Manual steps to install Kura 3.0 on Fedora 25 / Raspberry Pi
==
See [../fedora25/README.md](../fedora25/README.md).
## Firewall
As this version of Kura does not manage the firewall of the target device it may
be necessary to do this yourself. By default this is done by `firewall-cmd`.
For example opening port 8080,... | Add a note about the Fedora firewall | Add a note about the Fedora firewall
Signed-off-by: Jens Reimann <d1bf62d29e711fdf0a5795916341a7b53d204e2a@redhat.com> | Markdown | epl-1.0 | amitjoy/kura,cdealti/kura,nicolatimeus/kura,cdealti/kura,gavinying/kura,ymai/kura,gavinying/kura,MMaiero/kura,amitjoy/kura,ymai/kura,MMaiero/kura,MMaiero/kura,amitjoy/kura,gavinying/kura,darionct/kura,markoer/kura,cdealti/kura,ctron/kura,ctron/kura,MMaiero/kura,nicolatimeus/kura,markoer/kura,darionct/kura,markoer/kura,... | markdown | ## Code Before:
Manual steps to install Kura 3.0 on Fedora 25 / Raspberry Pi
==
See [../fedora25/README.md](../fedora25/README.md).
## Instruction:
Add a note about the Fedora firewall
Signed-off-by: Jens Reimann <d1bf62d29e711fdf0a5795916341a7b53d204e2a@redhat.com>
## Code After:
Manual steps to install Kura 3.0 on... | Manual steps to install Kura 3.0 on Fedora 25 / Raspberry Pi
==
See [../fedora25/README.md](../fedora25/README.md).
+
+ ## Firewall
+
+ As this version of Kura does not manage the firewall of the target device it may
+ be necessary to do this yourself. By default this is done by `firewall-cmd`.
+
+ For exam... | 10 | 2.5 | 10 | 0 |
0fd8c61d93711e23a31f07c613f042caa0c0b6ee | scripts/install.sh | scripts/install.sh |
set -ev
pip install tox
# App Engine tests require the App Engine SDK.
if [[ "${TOX_ENV}" == "gae" && ! -d ${GAE_PYTHONPATH} ]]; then
python scripts/fetch_gae_sdk.py `dirname ${GAE_PYTHONPATH}`
fi
# Travis ships with an old version of PyPy, so install at least version 2.6.
if [[ "${TOX_ENV}" == "pypy" ]]; then
... |
set -ev
pip install tox
# App Engine tests require the App Engine SDK.
if [[ "${TOX_ENV}" == "gae" && ! -d ${GAE_PYTHONPATH} ]]; then
python scripts/fetch_gae_sdk.py `dirname ${GAE_PYTHONPATH}`
fi
# Travis ships with an old version of PyPy, so install at least version 2.6.
if [[ "${TOX_ENV}" == "pypy" ]]; then
... | Fix pypy environment in Travis | Fix pypy environment in Travis
| Shell | apache-2.0 | jonparrott/oauth2client,googleapis/oauth2client,googleapis/oauth2client,google/oauth2client,clancychilds/oauth2client,google/oauth2client,clancychilds/oauth2client,jonparrott/oauth2client | shell | ## Code Before:
set -ev
pip install tox
# App Engine tests require the App Engine SDK.
if [[ "${TOX_ENV}" == "gae" && ! -d ${GAE_PYTHONPATH} ]]; then
python scripts/fetch_gae_sdk.py `dirname ${GAE_PYTHONPATH}`
fi
# Travis ships with an old version of PyPy, so install at least version 2.6.
if [[ "${TOX_ENV}" == ... |
set -ev
pip install tox
# App Engine tests require the App Engine SDK.
if [[ "${TOX_ENV}" == "gae" && ! -d ${GAE_PYTHONPATH} ]]; then
python scripts/fetch_gae_sdk.py `dirname ${GAE_PYTHONPATH}`
fi
# Travis ships with an old version of PyPy, so install at least version 2.6.
if [[ "${TOX_E... | 6 | 0.4 | 4 | 2 |
7a1782c3cd86a739a19b5382235cfadd6bba7da2 | data/hostname/worker02.softwareheritage.org.yaml | data/hostname/worker02.softwareheritage.org.yaml | networks:
private:
interface: ens19
address: 192.168.100.22
netmask: 255.255.255.0
gateway: 192.168.100.1
default:
interface: ens18
address: 128.93.193.22
netmask: 255.255.255.0
gateway: 128.93.193.254
| networks:
private:
interface: ens19
address: 192.168.100.22
netmask: 255.255.255.0
gateway: 192.168.100.1
default:
interface: ens18
address: 128.93.193.22
netmask: 255.255.255.0
gateway: 128.93.193.254
swh::deploy::worker::instances:
- swh_lister_debian
- swh_lister_github
- s... | Deploy deposit loader on worker02 as tryout | data/worker02: Deploy deposit loader on worker02 as tryout
Related T821
| YAML | apache-2.0 | SoftwareHeritage/puppet-swh-site,SoftwareHeritage/puppet-swh-site,SoftwareHeritage/puppet-swh-site,SoftwareHeritage/puppet-swh-site,SoftwareHeritage/puppet-swh-site | yaml | ## Code Before:
networks:
private:
interface: ens19
address: 192.168.100.22
netmask: 255.255.255.0
gateway: 192.168.100.1
default:
interface: ens18
address: 128.93.193.22
netmask: 255.255.255.0
gateway: 128.93.193.254
## Instruction:
data/worker02: Deploy deposit loader on worker02 ... | networks:
private:
interface: ens19
address: 192.168.100.22
netmask: 255.255.255.0
gateway: 192.168.100.1
default:
interface: ens18
address: 128.93.193.22
netmask: 255.255.255.0
gateway: 128.93.193.254
+
+ swh::deploy::worker::instances:
+ - swh_lister_debian... | 9 | 0.818182 | 9 | 0 |
0ee42ac3b80893557691d722eda207733289c97c | micropsi_core/world/minecraft/spockplugin.py | micropsi_core/world/minecraft/spockplugin.py | import logging
from spock.mcp import mcdata, mcpacket
from spock.mcmap import smpmap
from micropsi_core.world.minecraft.psidispatcher import PsiDispatcher
from spock.utils import pl_announce
@pl_announce('Micropsi')
class MicropsiPlugin(object):
def __init__(self, ploader, settings):
self.worldadapter = ... | import logging
from spock.mcp import mcdata, mcpacket
from spock.mcmap import smpmap
from micropsi_core.world.minecraft.psidispatcher import PsiDispatcher
from spock.utils import pl_announce
@pl_announce('Micropsi')
class MicropsiPlugin(object):
def __init__(self, ploader, settings):
self.worldadapter = ... | Move now sets the client position and allows the movement plugin do its thing | Move now sets the client position and allows the
movement plugin do its thing | Python | mit | ianupright/micropsi2,ianupright/micropsi2,printedheart/micropsi2,ianupright/micropsi2,printedheart/micropsi2,printedheart/micropsi2 | python | ## Code Before:
import logging
from spock.mcp import mcdata, mcpacket
from spock.mcmap import smpmap
from micropsi_core.world.minecraft.psidispatcher import PsiDispatcher
from spock.utils import pl_announce
@pl_announce('Micropsi')
class MicropsiPlugin(object):
def __init__(self, ploader, settings):
self... | import logging
from spock.mcp import mcdata, mcpacket
from spock.mcmap import smpmap
from micropsi_core.world.minecraft.psidispatcher import PsiDispatcher
from spock.utils import pl_announce
@pl_announce('Micropsi')
class MicropsiPlugin(object):
def __init__(self, ploader, settings):
... | 7 | 0.2 | 1 | 6 |
30d03fc17151ae738be4c6d4d7ef91bd25434087 | metadata/com.orpheusdroid.screenrecorder.txt | metadata/com.orpheusdroid.screenrecorder.txt | Categories:System
License:AGPLv3
Web Site:
Source Code:https://github.com/vijai1996/screenrecorder
Issue Tracker:https://github.com/vijai1996/screenrecorder/issues
Summary:lightweight and functional screen recorder
Description:
ScreenCam doesn't need any root access to record your screen and works on all
phones with A... | Categories:System
License:AGPLv3
Web Site:
Source Code:https://github.com/vijai1996/screenrecorder
Issue Tracker:https://github.com/vijai1996/screenrecorder/issues
Auto Name:ScreenCam
Summary:lightweight and functional screen recorder
Description:
ScreenCam doesn't need any root access to record your screen and works ... | Update CV of ScreenCam to 1.1 (4) | Update CV of ScreenCam to 1.1 (4)
| Text | agpl-3.0 | f-droid/fdroid-data,f-droid/fdroiddata,f-droid/fdroiddata | text | ## Code Before:
Categories:System
License:AGPLv3
Web Site:
Source Code:https://github.com/vijai1996/screenrecorder
Issue Tracker:https://github.com/vijai1996/screenrecorder/issues
Summary:lightweight and functional screen recorder
Description:
ScreenCam doesn't need any root access to record your screen and works on a... | Categories:System
License:AGPLv3
Web Site:
Source Code:https://github.com/vijai1996/screenrecorder
Issue Tracker:https://github.com/vijai1996/screenrecorder/issues
+ Auto Name:ScreenCam
Summary:lightweight and functional screen recorder
Description:
ScreenCam doesn't need any root access to record yo... | 3 | 0.111111 | 3 | 0 |
d15a72f586db5e086beeb7ebcb84e34bf34b54a5 | data/transition-sites/ukvi.yml | data/transition-sites/ukvi.yml | ---
site: ukvi
whitehall_slug: uk-visas-and-immigration
host: www.ukba.homeoffice.gov.uk
tna_timestamp: 20140110181512
homepage: https://www.gov.uk/government/organisations/uk-visas-and-immigration
aliases:
- bia.homeoffice.gov.uk
- biapreview.homeoffice.gov.uk
- ind.homeoffice.gov.uk
- origin.ukba.homeoffice.gov.uk # ... | ---
site: ukvi
whitehall_slug: uk-visas-and-immigration
host: www.ukba.homeoffice.gov.uk
tna_timestamp: 20140110181512
homepage: https://www.gov.uk/government/organisations/uk-visas-and-immigration
aliases:
- bia.homeoffice.gov.uk
- biapreview.homeoffice.gov.uk
- contact-ukba.homeoffice.gov.uk
- ind.homeoffice.gov.uk
-... | Revert "Remove two redundant aliases for UKVI" | Revert "Remove two redundant aliases for UKVI"
After this configuration change was merged and deployed, the Host
entries coresponding to the contact-ukba.homeoffice.gov.uk were
deleted.
This broke the Transition_load_all_data job, as there were host_paths
that referenced the deleted host.
This database change has n... | YAML | mit | alphagov/transition-config,alphagov/transition-config | yaml | ## Code Before:
---
site: ukvi
whitehall_slug: uk-visas-and-immigration
host: www.ukba.homeoffice.gov.uk
tna_timestamp: 20140110181512
homepage: https://www.gov.uk/government/organisations/uk-visas-and-immigration
aliases:
- bia.homeoffice.gov.uk
- biapreview.homeoffice.gov.uk
- ind.homeoffice.gov.uk
- origin.ukba.home... | ---
site: ukvi
whitehall_slug: uk-visas-and-immigration
host: www.ukba.homeoffice.gov.uk
tna_timestamp: 20140110181512
homepage: https://www.gov.uk/government/organisations/uk-visas-and-immigration
aliases:
- bia.homeoffice.gov.uk
- biapreview.homeoffice.gov.uk
+ - contact-ukba.homeoffice.gov.uk
- i... | 2 | 0.095238 | 2 | 0 |
a8abf47a88d9737a99c59a0da25524d832a65d61 | install.sh | install.sh |
NOTIFIER_URL=https://raw.githubusercontent.com/grantovich/homebrew-notifier/master/notifier.sh
brew install terminal-notifier
mkdir -p ~/.bin
curl -fsS $NOTIFIER_URL > ~/.bin/brew-update-notifier.sh
if crontab -l | grep -q 'brew-update-notifier'; then
echo 'Crontab entry already exists, skipping...'
else
echo "0... |
NOTIFIER_URL=https://raw.githubusercontent.com/grantovich/homebrew-notifier/master/notifier.sh
brew install terminal-notifier
mkdir -p ~/.bin
curl -fsS $NOTIFIER_URL > ~/.bin/brew-update-notifier.sh
chmod +x ~/.bin/brew-update-notifier.sh
if crontab -l | grep -q 'brew-update-notifier'; then
echo 'Crontab entry alr... | Fix notifier script not being made executable | Fix notifier script not being made executable
| Shell | mit | ntpeters/homebrew-notifier | shell | ## Code Before:
NOTIFIER_URL=https://raw.githubusercontent.com/grantovich/homebrew-notifier/master/notifier.sh
brew install terminal-notifier
mkdir -p ~/.bin
curl -fsS $NOTIFIER_URL > ~/.bin/brew-update-notifier.sh
if crontab -l | grep -q 'brew-update-notifier'; then
echo 'Crontab entry already exists, skipping...... |
NOTIFIER_URL=https://raw.githubusercontent.com/grantovich/homebrew-notifier/master/notifier.sh
brew install terminal-notifier
mkdir -p ~/.bin
curl -fsS $NOTIFIER_URL > ~/.bin/brew-update-notifier.sh
+ chmod +x ~/.bin/brew-update-notifier.sh
if crontab -l | grep -q 'brew-update-notifier'; then
ech... | 1 | 0.058824 | 1 | 0 |
5605b61c0815756a756b8dc0ac12b45f6506fc5b | debexpo/templates/plugins/controlfields/html.mako | debexpo/templates/plugins/controlfields/html.mako | <div class="qa-header">
${str(o.outcome)}
</div>
%if o.rich_data:
<div class="qa-content">
<dl>
%for field, contents in sorted(o.rich_data.items()):
<dt>${field}</dt>
<dd><a href="${contents}">${contents}</a></dd>
%endfor
</dl>
</div>
%endif
| <div class="qa-header">
${str(o.outcome)}
</div>
%if o.rich_data:
<div class="qa-content">
<dl>
%for field, contents in sorted(o.rich_data.items()):
<dt>${field}</dt>
<dd><a href="${contents}" rel="nofollow">${contents}</a></dd>
%endfor
</dl>
</div>
%endif
| Make us unattractive for link spam | Make us unattractive for link spam
| Mako | mit | swvist/Debexpo,swvist/Debexpo,jonnylamb/debexpo,swvist/Debexpo,jonnylamb/debexpo,jadonk/debexpo,jonnylamb/debexpo,jadonk/debexpo,jadonk/debexpo | mako | ## Code Before:
<div class="qa-header">
${str(o.outcome)}
</div>
%if o.rich_data:
<div class="qa-content">
<dl>
%for field, contents in sorted(o.rich_data.items()):
<dt>${field}</dt>
<dd><a href="${contents}">${contents}</a></dd>
%endfor
</dl>
</div>
%endif
## Instruction:
Make us unattractive for link spam
## Code A... | <div class="qa-header">
${str(o.outcome)}
</div>
%if o.rich_data:
<div class="qa-content">
<dl>
%for field, contents in sorted(o.rich_data.items()):
<dt>${field}</dt>
- <dd><a href="${contents}">${contents}</a></dd>
+ <dd><a href="${contents}" rel="nofollow">${contents}</a></dd>
? ... | 2 | 0.153846 | 1 | 1 |
b791f8c35ca4489608d6895761873020c4a31c1e | word-count/src/lib.rs | word-count/src/lib.rs | use std::collections::HashMap;
pub fn word_count(phrase: &str) -> HashMap<String, u32> {
let phrase = phrase.to_lowercase();
let words = phrase.split(|c: char| !c.is_alphanumeric())
.filter(|s| !s.is_empty())
.map(|w| w.to_string())
.collect::<Vec<_>>();
let mut word_counts = HashM... | use std::collections::HashMap;
pub fn word_count(phrase: &str) -> HashMap<String, u32> {
phrase.to_lowercase()
.split(|c: char| !c.is_alphanumeric())
.filter(|s| !s.is_empty())
.map(|w| w.to_string())
.fold(HashMap::new(), |mut acc, w| {
*acc.entry(w).or_insert(0) += 1;
... | Improve solution for Word Count | Improve solution for Word Count
| Rust | mit | attilahorvath/exercism-rust | rust | ## Code Before:
use std::collections::HashMap;
pub fn word_count(phrase: &str) -> HashMap<String, u32> {
let phrase = phrase.to_lowercase();
let words = phrase.split(|c: char| !c.is_alphanumeric())
.filter(|s| !s.is_empty())
.map(|w| w.to_string())
.collect::<Vec<_>>();
let mut wor... | use std::collections::HashMap;
pub fn word_count(phrase: &str) -> HashMap<String, u32> {
- let phrase = phrase.to_lowercase();
? ------------- -
+ phrase.to_lowercase()
- let words = phrase.split(|c: char| !c.is_alphanumeric())
? --- ----- - ^^^^^^
+ .split(|c: c... | 23 | 1 | 6 | 17 |
841872cdfdab993e70ac9e35ea26b87086575901 | src/ParameterResolver/TypeHintResolver.php | src/ParameterResolver/TypeHintResolver.php | <?php declare(strict_types=1);
namespace Invoker\ParameterResolver;
use ReflectionFunctionAbstract;
use ReflectionNamedType;
/**
* Inject entries using type-hints.
*
* Tries to match type-hints with the parameters provided.
*/
class TypeHintResolver implements ParameterResolver
{
public function getParameter... | <?php declare(strict_types=1);
namespace Invoker\ParameterResolver;
use ReflectionFunctionAbstract;
use ReflectionNamedType;
/**
* Inject entries using type-hints.
*
* Tries to match type-hints with the parameters provided.
*/
class TypeHintResolver implements ParameterResolver
{
public function getParameter... | Switch condition order to support PHP 8 | Switch condition order to support PHP 8 | PHP | mit | PHP-DI/Invoker | php | ## Code Before:
<?php declare(strict_types=1);
namespace Invoker\ParameterResolver;
use ReflectionFunctionAbstract;
use ReflectionNamedType;
/**
* Inject entries using type-hints.
*
* Tries to match type-hints with the parameters provided.
*/
class TypeHintResolver implements ParameterResolver
{
public funct... | <?php declare(strict_types=1);
namespace Invoker\ParameterResolver;
use ReflectionFunctionAbstract;
use ReflectionNamedType;
/**
* Inject entries using type-hints.
*
* Tries to match type-hints with the parameters provided.
*/
class TypeHintResolver implements ParameterResolver
{
... | 8 | 0.148148 | 4 | 4 |
a8f44e52c36e7dee41d2e6a913e83e1d9bb9c1cc | sbr/folder_free.c | sbr/folder_free.c |
/*
* folder_free.c -- free a folder/message structure
*
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
* complete copyright information.
*/
#include <h/mh.h>
void
folder_free (struct msgs *mp)
{
size_t i;
bvector_t ... |
/*
* folder_free.c -- free a folder/message structure
*
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
* complete copyright information.
*/
#include <h/mh.h>
#include <h/utils.h>
void
folder_free (struct msgs *mp)
{
siz... | Replace `if (p) free(p)' with `mh_xfree(p)'. | Replace `if (p) free(p)' with `mh_xfree(p)'.
| C | bsd-3-clause | mcr/nmh,mcr/nmh | c | ## Code Before:
/*
* folder_free.c -- free a folder/message structure
*
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
* complete copyright information.
*/
#include <h/mh.h>
void
folder_free (struct msgs *mp)
{
size_t i... |
/*
* folder_free.c -- free a folder/message structure
*
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
* complete copyright information.
*/
#include <h/mh.h>
+ #include <h/utils.h>
void
folder_fr... | 7 | 0.155556 | 3 | 4 |
b5c4116003fb1e0b7b36ecf649a59e721fdc320d | examples/driver/my_driver.sv | examples/driver/my_driver.sv | class my_driver extends uvm_driver #(my_item);
virtual my_interface vif;
`uvm_component_utils(my_driver)
function new(string name="my_driver", uvm_component parent=null);
super.new(name, parent);
endfunction
virtual function void connect_phase(uvm_phase phase);
super.connect_phase(... | class my_driver extends uvm_driver #(my_item);
virtual my_interface vif;
`uvm_component_utils(my_driver)
function new(string name="my_driver", uvm_component parent=null);
super.new(name, parent);
endfunction
virtual function void connect_phase(uvm_phase phase);
super.connect_phase(... | Use proper get_next_item()/item_done() calls in driver example. | Use proper get_next_item()/item_done() calls in driver example.
| SystemVerilog | apache-2.0 | cquickstad/uvm_unit,cquickstad/uvm_unit,cquickstad/uvm_unit | systemverilog | ## Code Before:
class my_driver extends uvm_driver #(my_item);
virtual my_interface vif;
`uvm_component_utils(my_driver)
function new(string name="my_driver", uvm_component parent=null);
super.new(name, parent);
endfunction
virtual function void connect_phase(uvm_phase phase);
supe... | class my_driver extends uvm_driver #(my_item);
virtual my_interface vif;
`uvm_component_utils(my_driver)
function new(string name="my_driver", uvm_component parent=null);
super.new(name, parent);
endfunction
virtual function void connect_phase(uvm_phase phase);
... | 3 | 0.111111 | 2 | 1 |
b862848c53a2e702dae64f32820c0c37a9eccf82 | quantum/conf/dhcp_agent.ini | quantum/conf/dhcp_agent.ini | {% set quantum = pillar['openstack']['quantum'] -%}
[DEFAULT]
interface_driver = quantum.agent.linux.interface.OVSInterfaceDriver
dhcp_driver = quantum.agent.linux.dhcp.Dnsmasq
enable_isolated_metadata = True
enable_metadata_network = True
dnsmasq_config_file = /etc/quantum/dnsmasq.conf
dhcp_domain={{ quantum['network'... | {% set quantum = pillar['openstack']['quantum'] -%}
{% set nova = openstack['nova'] -%}
[DEFAULT]
interface_driver = quantum.agent.linux.interface.OVSInterfaceDriver
dhcp_driver = quantum.agent.linux.dhcp.Dnsmasq
enable_isolated_metadata = True
enable_metadata_network = True
dnsmasq_config_file = /etc/quantum/dnsmasq.... | Add metadata port to dhcp config | Add metadata port to dhcp config
| INI | bsd-2-clause | jahkeup/salt-openstack,jahkeup/salt-openstack | ini | ## Code Before:
{% set quantum = pillar['openstack']['quantum'] -%}
[DEFAULT]
interface_driver = quantum.agent.linux.interface.OVSInterfaceDriver
dhcp_driver = quantum.agent.linux.dhcp.Dnsmasq
enable_isolated_metadata = True
enable_metadata_network = True
dnsmasq_config_file = /etc/quantum/dnsmasq.conf
dhcp_domain={{ q... | {% set quantum = pillar['openstack']['quantum'] -%}
+ {% set nova = openstack['nova'] -%}
+
[DEFAULT]
interface_driver = quantum.agent.linux.interface.OVSInterfaceDriver
dhcp_driver = quantum.agent.linux.dhcp.Dnsmasq
enable_isolated_metadata = True
enable_metadata_network = True
dnsmasq_config_file = /et... | 3 | 0.375 | 3 | 0 |
aa4f352b187bfeecb3f72791f70a0cb95f6e5254 | .travis.yml | .travis.yml | language: python
python:
- 2.7
- 3.2
- 3.3
- 3.4
- 3.5
- pypy
- pypy3
addons:
apt:
packages:
- xcb-proto
- ghc
- cabal-install
- happy
- alex
- x11-apps
- xvfb
install:
- cabal update
- cabal install --only-dependencies --enable-tests
- cabal config... | language: python
python:
- 2.7
- 3.2
- 3.3
- 3.4
- 3.5
- 3.6
- pypy
- pypy3
addons:
apt:
packages:
- xcb-proto
- ghc
- cabal-install
- happy
- alex
- x11-apps
- xvfb
install:
- cabal update
- cabal install --only-dependencies --enable-tests
- caba... | Add 3.6 Python, move to sudo-less trusty | Travis: Add 3.6 Python, move to sudo-less trusty
| YAML | apache-2.0 | tych0/xcffib | yaml | ## Code Before:
language: python
python:
- 2.7
- 3.2
- 3.3
- 3.4
- 3.5
- pypy
- pypy3
addons:
apt:
packages:
- xcb-proto
- ghc
- cabal-install
- happy
- alex
- x11-apps
- xvfb
install:
- cabal update
- cabal install --only-dependencies --enable-tests
... | language: python
python:
- 2.7
- 3.2
- 3.3
- 3.4
- 3.5
+ - 3.6
- pypy
- pypy3
addons:
apt:
packages:
- xcb-proto
- ghc
- cabal-install
- happy
- alex
- x11-apps
- xvfb
install:
- cabal update
- cabal... | 3 | 0.09375 | 3 | 0 |
b855475599eef41c36fa9f2ced516aee32c4ade8 | application/traits/currentMember.php | application/traits/currentMember.php | <?php
trait Trait_currentMember
{
protected $_current_member = null;
protected function _checkCurrentMember()
{
if(isset($_SESSION['connected_user_id']))
{
$this->_current_member = Model_Users::getById($_SESSION['connected_user_id']);
$this->_current_member->prop('last_login', date('Y-m-d H:i:s'));
... | <?php
trait Trait_currentMember
{
protected $_current_member = null;
protected function _checkCurrentMember()
{
if(isset($_SESSION['connected_user_id']))
{
$this->_current_member = Model_Users::getById($_SESSION['connected_user_id']);
$this->_current_member->prop('last_login', date('Y-m-d H:i:s'));
... | Fix bug when following an user | Fix bug when following an user
| PHP | mit | alexandre-desequeira/ShyComics,adrien-gueret/ShyComics,Tatane58/ShyComics,Tatane58/ShyComics,adrien-gueret/ShyComics,alexandre-desequeira/ShyComics | php | ## Code Before:
<?php
trait Trait_currentMember
{
protected $_current_member = null;
protected function _checkCurrentMember()
{
if(isset($_SESSION['connected_user_id']))
{
$this->_current_member = Model_Users::getById($_SESSION['connected_user_id']);
$this->_current_member->prop('last_login', date('Y-m-d... | <?php
trait Trait_currentMember
{
protected $_current_member = null;
protected function _checkCurrentMember()
{
if(isset($_SESSION['connected_user_id']))
{
$this->_current_member = Model_Users::getById($_SESSION['connected_user_id']);
$this->_current_member->prop('last_login', dat... | 6 | 0.176471 | 6 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.