commit stringlengths 40 40 | old_file stringlengths 4 237 | new_file stringlengths 4 237 | old_contents stringlengths 1 4.24k | new_contents stringlengths 5 4.84k | subject stringlengths 15 778 | message stringlengths 16 6.86k | lang stringlengths 1 30 | license stringclasses 13
values | repos stringlengths 5 116k | config stringlengths 1 30 | content stringlengths 105 8.72k |
|---|---|---|---|---|---|---|---|---|---|---|---|
af78197a7daf81c7ca5f48b9911c6fee8b5a4c75 | .changeset/config.json | .changeset/config.json | {
"changelog": ["@changesets/changelog-github", { "repo": "mobxjs/mobx" }],
"commit": false,
"access": "public",
"baseBranch": "main"
}
| {
"changelog": ["@changesets/changelog-github", { "repo": "mobxjs/mobx" }],
"commit": false,
"access": "public",
"baseBranch": "main",
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"onlyUpdatePeerDependentsWhenOutOfRange": true
}
}
| Apply changeset exp. flag for handling peer deps | Apply changeset exp. flag for handling peer deps
See details at https://github.com/atlassian/changesets/issues/524 | JSON | mit | mweststrate/MOBservable,mweststrate/MOBservable,mobxjs/mobx,mobxjs/mobx,mobxjs/mobx,mweststrate/MOBservable,mobxjs/mobx | json | ## Code Before:
{
"changelog": ["@changesets/changelog-github", { "repo": "mobxjs/mobx" }],
"commit": false,
"access": "public",
"baseBranch": "main"
}
## Instruction:
Apply changeset exp. flag for handling peer deps
See details at https://github.com/atlassian/changesets/issues/524
## Code After:
{
... |
b8c21dd03d44812c22940d714ac266e0d8168d18 | package.json | package.json | {
"name": "primeng",
"version": "v1.0.0-beta.2-SNAPSHOT",
"scripts": {
"tsc": "tsc",
"tsc:w": "tsc -w",
"lite": "lite-server",
"start": "concurrent \"npm run tsc:w\" \"npm run lite\" "
},
"license": "Apache-2.0",
"peerDependencies": {
"angular2": "2.0.0-beta.14",
"systemjs": "0.19.25... | {
"name": "primeng",
"version": "v1.0.0-beta.2-SNAPSHOT",
"scripts": {
"tsc": "tsc",
"tsc:w": "tsc -w",
"lite": "lite-server",
"start": "concurrent \"npm run tsc:w\" \"npm run lite\" "
},
"repository": {
"type": "git",
"url": "https://github.com/primefaces/primeng.git"
},
"license"... | Add repository field and updated lite-server | Add repository field and updated lite-server
| JSON | mit | hryktrd/primeng,carlosearaujo/primeng,primefaces/primeng,donriver/primeng,gabriel17carmo/primeng,carlosearaujo/primeng,nhnb/primeng,WebRota/primeng,davidkirolos/primeng,pauly815/primeng,primefaces/primeng,aaraggornn/primeng,blver/primeng,mmercan/primeng,odedolive/primeng,nhnb/primeng,pauly815/primeng,davidkirolos/prime... | json | ## Code Before:
{
"name": "primeng",
"version": "v1.0.0-beta.2-SNAPSHOT",
"scripts": {
"tsc": "tsc",
"tsc:w": "tsc -w",
"lite": "lite-server",
"start": "concurrent \"npm run tsc:w\" \"npm run lite\" "
},
"license": "Apache-2.0",
"peerDependencies": {
"angular2": "2.0.0-beta.14",
"sys... |
a037843f62a3d6b1124f8b62517463ef92cd793f | tvsort_sl/fcntl.py | tvsort_sl/fcntl.py | from __future__ import unicode_literals
def fcntl(fd, op, arg=0):
return 0
def ioctl(fd, op, arg=0, mutable_flag=True):
if mutable_flag:
return 0
else:
return ""
def flock(fd, op):
return
def lockf(fd, operation, length=0, start=0, whence=0):
return
| from __future__ import unicode_literals
# Variables with simple values
FASYNC = 64
FD_CLOEXEC = 1
F_DUPFD = 0
F_FULLFSYNC = 51
F_GETFD = 1
F_GETFL = 3
F_GETLK = 7
F_GETOWN = 5
F_RDLCK = 1
F_SETFD = 2
F_SETFL = 4
F_SETLK = 8
F_SETLKW = 9
F_SETOWN = 6
F_UNLCK = 2
F_WRLCK = 3
LOCK_EX = 2
LOCK_NB = 4
LOCK_SH = 1
LOCK_... | Add missing variables to cntl | Add missing variables to cntl
| Python | mit | shlomiLan/tvsort_sl | python | ## Code Before:
from __future__ import unicode_literals
def fcntl(fd, op, arg=0):
return 0
def ioctl(fd, op, arg=0, mutable_flag=True):
if mutable_flag:
return 0
else:
return ""
def flock(fd, op):
return
def lockf(fd, operation, length=0, start=0, whence=0):
return
## Instru... |
1d2237655ef0ba225e6fa0b8d0959ed6b3e75726 | runtests.py | runtests.py |
# Third party imports
import pytest
def main():
"""
Run pytest tests.
"""
errno = pytest.main(['-x', 'spyder_terminal', '-v',
'-rw', '--durations=10',
'--cov=spyder_terminal', '--cov-report=term-missing'])
# sys.exit doesn't work here because som... |
# Third party imports
import pytest
def main():
"""
Run pytest tests.
"""
errno = pytest.main(['-x', 'spyder_terminal', '-v',
'-rw', '--durations=10',
'--cov=spyder_terminal', '--cov-report=term-missing',
'--timeout=20'])
... | Add timeout to all tests | Add timeout to all tests
| Python | mit | spyder-ide/spyder-terminal,spyder-ide/spyder-terminal,spyder-ide/spyder-terminal,spyder-ide/spyder-terminal | python | ## Code Before:
# Third party imports
import pytest
def main():
"""
Run pytest tests.
"""
errno = pytest.main(['-x', 'spyder_terminal', '-v',
'-rw', '--durations=10',
'--cov=spyder_terminal', '--cov-report=term-missing'])
# sys.exit doesn't work ... |
e3bb6d03d7dee49330d46c529147e20e763b33c4 | app/assets/javascripts/handlebars_helpers.js | app/assets/javascripts/handlebars_helpers.js | Handlebars.registerHelper('select_list', function(select_options, id) {
var template = HandlebarsTemplates['recipes/foods_select'];
var list = $.map(select_options, function(e) {
if (id === e.id){
e.selected = "selected";
return e;
} else {
return e;
}
});
return new Handlebars.S... | Handlebars.registerHelper('select_list', function(select_options, id) {
var template = HandlebarsTemplates['recipes/foods_select'];
var list = $.map(select_options, function(e) {
if (id === e.id){
return {id: e.id, unique_name: e.unique_name, selected: "selected"}
} else {
return {id: e.id, uni... | Fix bug causing multiple food selected to be selected | Fix bug causing multiple food selected to be selected
| JavaScript | mit | snsavage/carb_tracker,snsavage/carb_tracker,snsavage/carb_tracker | javascript | ## Code Before:
Handlebars.registerHelper('select_list', function(select_options, id) {
var template = HandlebarsTemplates['recipes/foods_select'];
var list = $.map(select_options, function(e) {
if (id === e.id){
e.selected = "selected";
return e;
} else {
return e;
}
});
return ... |
d77cdc0488f77a8951d6ba43cd15c89647bc031a | RELEASING.rst | RELEASING.rst | Release procedure
=================
A list of steps to perform when releasing.
* Run tests against latest CouchDB release (ideally also trunk)
* Run tests on different Python versions
* Update ChangeLog and add a release date, then commit
* Merge changes from default to stable
* Edit setup.cfg (in the tag), remove th... | Release procedure
=================
A list of steps to perform when releasing.
* Run tests against latest CouchDB release (ideally also trunk)
* Make sure the version number in setup.py is correct
* Update ChangeLog and add a release date, then commit
* Edit setup.cfg, remove the egg_info section and commit
* Tag the... | Update release procedure checklist a bit | Update release procedure checklist a bit
| reStructuredText | bsd-3-clause | djc/couchdb-python,djc/couchdb-python | restructuredtext | ## Code Before:
Release procedure
=================
A list of steps to perform when releasing.
* Run tests against latest CouchDB release (ideally also trunk)
* Run tests on different Python versions
* Update ChangeLog and add a release date, then commit
* Merge changes from default to stable
* Edit setup.cfg (in the... |
8e35263a3d312c709f0fc9e4f614d9d3ca789d77 | pyfarm/master/templates/pyfarm/user_interface/logs_in_task.html | pyfarm/master/templates/pyfarm/user_interface/logs_in_task.html | {% extends "pyfarm/user_interface/layout.html" %}
{% block title %}Logs in Task {{ task.id }} {% endblock %}
{% block jobs_nb_class %}active{% endblock %}
{% block additional_styles %}
{% endblock %}
{% block content %}
<h1>Logs in Task {{ task.id }} </h1>
<h2>(Frame {{ task.frame }} from job <a href="{{ url_for('singl... | {% extends "pyfarm/user_interface/layout.html" %}
{% block title %}Logs in Task {{ task.id }} {% endblock %}
{% block jobs_nb_class %}active{% endblock %}
{% block additional_styles %}
{% endblock %}
{% block content %}
<h1>Logs in Task {{ task.id }} </h1>
<h2>(Frame {{ task.frame }} from job <a href="{{ url_for('singl... | Make agents in tasklogs view clickable | Make agents in tasklogs view clickable
| HTML | apache-2.0 | pyfarm/pyfarm-master,pyfarm/pyfarm-master,pyfarm/pyfarm-master | html | ## Code Before:
{% extends "pyfarm/user_interface/layout.html" %}
{% block title %}Logs in Task {{ task.id }} {% endblock %}
{% block jobs_nb_class %}active{% endblock %}
{% block additional_styles %}
{% endblock %}
{% block content %}
<h1>Logs in Task {{ task.id }} </h1>
<h2>(Frame {{ task.frame }} from job <a href="{... |
cd2469fd3980281cbd04c88991d7e9e50c555d5e | README.md | README.md | PenguinPredictor
To build:
```
gradle build
gradle jfxNative
```
The jar version of the application will be located in build/jfx/app, and native versions will be located in build/jfx/native
WARNING: After the latest penguin quest, it's very likely that the 2 point penguin predictions from this program are incorrect.... | PenguinPredictor
To build:
```
gradle build
gradle jfxNative
```
The jar version of the application will be located in build/jfx/app, and native versions will be located in build/jfx/native
WARNING: Be sure you are using the latest version of the code - older versions will not accurately predict 2 point penguins aft... | Update the warning in the readme - we have a fix | Update the warning in the readme - we have a fix | Markdown | apache-2.0 | brainiac744/PenguinPredictor | markdown | ## Code Before:
PenguinPredictor
To build:
```
gradle build
gradle jfxNative
```
The jar version of the application will be located in build/jfx/app, and native versions will be located in build/jfx/native
WARNING: After the latest penguin quest, it's very likely that the 2 point penguin predictions from this progra... |
68020403d72b00fbda301ad43242fcc70897b884 | lib/MetaProcessor/CMakeLists.txt | lib/MetaProcessor/CMakeLists.txt | set(LLVM_USED_LIBS
clangBasic
)
add_cling_library(clingMetaProcessor
Display.cpp
MetaProcessor.cpp
InputValidator.cpp)
| set(LLVM_USED_LIBS
clangBasic
)
add_cling_library(clingMetaProcessor
Display.cpp
InputValidator.cpp
MetaLexer.cpp
MetaParser.cpp
MetaProcessor.cpp
MetaSema.cpp)
| Update cmake to compile the newly added files | Update cmake to compile the newly added files
git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@47812 27541ba8-7e3a-0410-8455-c3a389f83636
| Text | lgpl-2.1 | marsupial/cling,root-mirror/cling,perovic/cling,marsupial/cling,root-mirror/cling,perovic/cling,perovic/cling,karies/cling,perovic/cling,karies/cling,karies/cling,root-mirror/cling,root-mirror/cling,marsupial/cling,marsupial/cling,karies/cling,root-mirror/cling,karies/cling,marsupial/cling,karies/cling,root-mirror/clin... | text | ## Code Before:
set(LLVM_USED_LIBS
clangBasic
)
add_cling_library(clingMetaProcessor
Display.cpp
MetaProcessor.cpp
InputValidator.cpp)
## Instruction:
Update cmake to compile the newly added files
git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@47812 27541ba8-7e3a-0410-8455-c3a389f83636
## Code After... |
b6c3ad3ddc66538965966191f55448dda5af007d | test/stmt/switch_nil.swift | test/stmt/switch_nil.swift | // RUN: %target-typecheck-verify-swift
enum Hey {
case listen
}
func test() {
switch Hey.listen {
case nil: // expected-warning {{type 'Hey' is not optional, value can never be nil}}
break
default:
break
}
}
| // RUN: %target-typecheck-verify-swift
enum Hey {
case listen
}
func test() {
switch Hey.listen {
case nil: // expected-warning {{type 'Hey' is not optional, value can never be nil}}
break
default:
break
}
}
struct Nilable: ExpressibleByNilLiteral {
init(nilLiteral: ()) {}
}
func testNil() {
/... | Augment Test for Confusing ExpressibleByNilLiteral Case | Augment Test for Confusing ExpressibleByNilLiteral Case
Add a test for an extremely confusing behavior of switches for
ExpressibleByNilLiteral-conforming types. From the looks of the expression
tree, one would hope that `case nil` would match such types. Instead, the
subject value is up-converted to an optional and co... | Swift | apache-2.0 | glessard/swift,gregomni/swift,benlangmuir/swift,rudkx/swift,benlangmuir/swift,JGiola/swift,ahoppen/swift,rudkx/swift,atrick/swift,apple/swift,benlangmuir/swift,glessard/swift,roambotics/swift,atrick/swift,ahoppen/swift,roambotics/swift,gregomni/swift,benlangmuir/swift,glessard/swift,gregomni/swift,rudkx/swift,roambotic... | swift | ## Code Before:
// RUN: %target-typecheck-verify-swift
enum Hey {
case listen
}
func test() {
switch Hey.listen {
case nil: // expected-warning {{type 'Hey' is not optional, value can never be nil}}
break
default:
break
}
}
## Instruction:
Augment Test for Confusing ExpressibleByNilLiteral Case
Ad... |
48b4229d23105486185a652a6b711c5b6d54dad5 | README.md | README.md | ZeroDB [http://www.zerodb.io/] is an end-to-end encrypted database.
Data can be stored on untrusted database servers without ever exposing the
encryption key. Clients can execute remote queries against the encrypted data
without downloading it or suffering an excessive performance hit.
### Technical white paper: [ht... | ZeroDB [http://www.zerodb.io/] is an end-to-end encrypted database.
Data can be stored on untrusted database servers without ever exposing the
encryption key. Clients can execute remote queries against the encrypted data
without downloading it or suffering an excessive performance hit.
Special thanks to ZODB communi... | Update the Readme file for cleanup | Update the Readme file for cleanup
Quick patch | Markdown | agpl-3.0 | zero-db/zerodb,zerodb/zerodb,zero-db/zerodb,zerodb/zerodb | markdown | ## Code Before:
ZeroDB [http://www.zerodb.io/] is an end-to-end encrypted database.
Data can be stored on untrusted database servers without ever exposing the
encryption key. Clients can execute remote queries against the encrypted data
without downloading it or suffering an excessive performance hit.
### Technical ... |
15ea1f2a61f3c0f7401ec8cdfdedcfbbc3b6f2db | wifi-reset.sh | wifi-reset.sh | iwconfig 2> /dev/null | grep -o '^[[:alnum:]]\+' | while read x; do ifdown $x; done
# Bring all wifi interfaces up.
iwconfig 2> /dev/null | grep -o '^[[:alnum:]]\+' | while read x; do ifup $x; done
| sleep 30
iwconfig 2> /dev/null | grep -o '^[[:alnum:]]\+' | while read x; do ifdown $x; done
# Bring all wifi interfaces up.
sleep 30
iwconfig 2> /dev/null | grep -o '^[[:alnum:]]\+' | while read x; do ifup $x; done
| Add delay to allow wifi device to become ready | Add delay to allow wifi device to become ready
Attempt to resolve Adafruit customer reported issue for the OURLINK WiFi USB Adapter:
https://forums.adafruit.com/viewtopic.php?f=49&t=86761 | Shell | mit | adafruit/wifi-reset | shell | ## Code Before:
iwconfig 2> /dev/null | grep -o '^[[:alnum:]]\+' | while read x; do ifdown $x; done
# Bring all wifi interfaces up.
iwconfig 2> /dev/null | grep -o '^[[:alnum:]]\+' | while read x; do ifup $x; done
## Instruction:
Add delay to allow wifi device to become ready
Attempt to resolve Adafruit customer repo... |
9faf61eb862ffbf9a7c488477d25a329627fddfc | pyproject.toml | pyproject.toml | [tool.poetry]
name = "jsonref"
version = "1.0.1"
description = "jsonref is a library for automatic dereferencing of JSON Reference objects for Python."
authors = ["Chase Sterling <chase.sterling@gmail.com>"]
license = "MIT"
readme = "README.md"
packages = [
{ include = "jsonref.py" },
{ include = "proxytypes.py... | [project]
name = "jsonref"
description = "jsonref is a library for automatic dereferencing of JSON Reference objects for Python."
authors = [
{name = "Chase Sterling", email = "chase.sterling@gmail.com"},
]
license = {text = "MIT"}
readme = "README.md"
dynamic = ["version"]
requires-python = ">=3.3"
dependencies = ... | Switch to pdm for building Switch metadata to PEP 621 | Switch to pdm for building
Switch metadata to PEP 621
| TOML | mit | gazpachoking/jsonref | toml | ## Code Before:
[tool.poetry]
name = "jsonref"
version = "1.0.1"
description = "jsonref is a library for automatic dereferencing of JSON Reference objects for Python."
authors = ["Chase Sterling <chase.sterling@gmail.com>"]
license = "MIT"
readme = "README.md"
packages = [
{ include = "jsonref.py" },
{ include ... |
e4c46e36f4edc0b864c3df2fe07ae782aedd6238 | exiters.go | exiters.go | // +build linux darwin openbsd freebsd netbsd
package main
const EXITERS = "EOF (Ctrl-D), or SIGINT (Ctrl-C)"
| // +build !windows
// +build !plan9
package main
const EXITERS = "EOF (Ctrl-D), or SIGINT (Ctrl-C)"
| Exclude the different OSes instead of trying to list all the 'normal' ones | Exclude the different OSes instead of trying to list all the 'normal' ones
| Go | epl-1.0 | candid82/joker,candid82/joker,candid82/joker | go | ## Code Before:
// +build linux darwin openbsd freebsd netbsd
package main
const EXITERS = "EOF (Ctrl-D), or SIGINT (Ctrl-C)"
## Instruction:
Exclude the different OSes instead of trying to list all the 'normal' ones
## Code After:
// +build !windows
// +build !plan9
package main
const EXITERS = "EOF (Ctrl-D), or... |
37b5e1b014757eccfefd775a6784dda76c15ee79 | app/serializers/api/admin/payment_method_serializer.rb | app/serializers/api/admin/payment_method_serializer.rb |
module Api
module Admin
class PaymentMethodSerializer < ActiveModel::Serializer
delegate :serializable_hash, to: :method_serializer
def method_serializer
if object.type == 'Spree::Gateway::StripeSCA'
Api::Admin::PaymentMethod::StripeSerializer.new(object)
else
Api... |
module Api
module Admin
class PaymentMethodSerializer < ActiveModel::Serializer
delegate :serializable_hash, to: :method_serializer
def method_serializer
if object.type == 'Spree::Gateway::StripeSCA'
Api::Admin::PaymentMethod::StripeSerializer.new(object, options)
else
... | Allow Payment Method Serializers to receive options | Allow Payment Method Serializers to receive options
| Ruby | agpl-3.0 | openfoodfoundation/openfoodnetwork,openfoodfoundation/openfoodnetwork,mkllnk/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,lin-d-hop/openfoodnetwork,mkllnk/openfoodnetwork,lin-d-hop/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/... | ruby | ## Code Before:
module Api
module Admin
class PaymentMethodSerializer < ActiveModel::Serializer
delegate :serializable_hash, to: :method_serializer
def method_serializer
if object.type == 'Spree::Gateway::StripeSCA'
Api::Admin::PaymentMethod::StripeSerializer.new(object)
el... |
2a8c8ae03b02cb3e952a985280da307df7b88e26 | web/templates/pages/scoreboard.html | web/templates/pages/scoreboard.html | {{ define "content" }}
<div class="row">
<div class="main">
<h1 class="page-header">Scoreboard</h1>
<div class="table-responsive">
<table data-toggle="table"
data-url="/api/users"
data-search="true"
... | {{ define "content" }}
<div class="row">
<div class="main">
<h1 class="page-header">Scoreboard</h1>
<div class="table-responsive">
<table data-toggle="table"
data-url="/api/users"
data-search="true"
... | Remove unused fiel from table | Remove unused fiel from table
Change-Id: If83de35b3d73e721160d542aeb422e839cf6dec3
| HTML | apache-2.0 | molecul/qa_portal,molecul/qa_portal,molecul/qa_portal,molecul/qa_portal,molecul/qa_portal | html | ## Code Before:
{{ define "content" }}
<div class="row">
<div class="main">
<h1 class="page-header">Scoreboard</h1>
<div class="table-responsive">
<table data-toggle="table"
data-url="/api/users"
data-search="true"
... |
a699c0335428491589225864c9f04b7c7f7c989d | sql/mssql/tables/Account.sql | sql/mssql/tables/Account.sql | create table Account (
id int not null identity,
instance int null references Instance(id),
fullname nvarchar(255) null,
email nvarchar(255) null,
password nvarchar(255) null,
password_salt varchar(50) null,
password_tag varchar(255) null,
createdate datetimeoffset(0) null... | create table Account (
id int not null identity,
instance int null references Instance(id),
fullname nvarchar(255) null,
email nvarchar(255) null,
password nvarchar(255) null,
password_salt varchar(50) null,
password_tag varchar(255) null,
createdate datetime2 null,
last_... | Change date datatype to one without TZ offset information. Dates are stored in UTC. | Change date datatype to one without TZ offset information. Dates are stored in UTC.
svn commit r54386
| SQL | lgpl-2.1 | silverorange/site,silverorange/site,nburka/site,nburka/site | sql | ## Code Before:
create table Account (
id int not null identity,
instance int null references Instance(id),
fullname nvarchar(255) null,
email nvarchar(255) null,
password nvarchar(255) null,
password_salt varchar(50) null,
password_tag varchar(255) null,
createdate dateti... |
f4c49b6fd069bb27f064d26a4c18476883507cad | test/spec/ControlSpec.js | test/spec/ControlSpec.js | describe('Creating custom map controls', function () {
var map;
beforeEach(function() {
map = map || new GMaps({
el : '#basic-map',
lat: -12.0433,
lng: -77.0283,
zoom: 12
});
});
it('should add default styles for the control', function () {
map.addControl({
position: ... | describe('Creating custom map controls', function () {
var map;
beforeEach(function() {
map = map || new GMaps({
el : '#basic-map',
lat: -12.0433,
lng: -77.0283,
zoom: 12
});
});
it('should add default styles for the control', function () {
map.addControl({
position: ... | Add unit test for the internal state after removing controls | Add unit test for the internal state after removing controls
| JavaScript | mit | Matt-Jensen/gmaps-for-apps,Matt-Jensen/gmaps-for-apps | javascript | ## Code Before:
describe('Creating custom map controls', function () {
var map;
beforeEach(function() {
map = map || new GMaps({
el : '#basic-map',
lat: -12.0433,
lng: -77.0283,
zoom: 12
});
});
it('should add default styles for the control', function () {
map.addControl({
... |
552fd8a23bc1fe0976174d806fde0fda900ccaba | data/qmltoolbox/qml/QmlToolbox/Controls/+qt54/Pane.qml | data/qmltoolbox/qml/QmlToolbox/Controls/+qt54/Pane.qml |
import QtQuick 2.4
import QtQuick.Controls 1.3
Control {
id: root
padding: 10
background: Rectangle {
color: "#F5F5F5"
}
function updateImplicitSize() {
if (contentItem.children.length == 1) {
implicitWidth = contentItem.children[0].implicitWidth + leftPadding + ... |
import QtQuick 2.4
import QtQuick.Controls 1.3
Control {
id: root
padding: 10
background: Rectangle {
color: "#F5F5F5"
}
/**
* Implements the following specification:
* If only a single item is used within a Pane, it will resize to fit the implicit size of its contained it... | Fix automatic updating of implicitHeight and implicitWidth | Fix automatic updating of implicitHeight and implicitWidth
| QML | mit | cginternals/qmltoolbox | qml | ## Code Before:
import QtQuick 2.4
import QtQuick.Controls 1.3
Control {
id: root
padding: 10
background: Rectangle {
color: "#F5F5F5"
}
function updateImplicitSize() {
if (contentItem.children.length == 1) {
implicitWidth = contentItem.children[0].implicitWidth ... |
8435ed758c5cff926aef1f9ed434492457d62cbb | src/Microsoft.PowerShell.PSReadLine/project.json | src/Microsoft.PowerShell.PSReadLine/project.json | {
"name": "Microsoft.PowerShell.PSReadLine",
"version": "1.0.0-*",
"authors": [ "andschwa" ],
"compilationOptions": {
"warningsAsErrors": true
},
"dependencies": {
"System.Management.Automation": "1.0.0-*"
},
"frameworks": {
"netstandard1.5": {
"com... | {
"name": "Microsoft.PowerShell.PSReadLine",
"version": "1.0.0-*",
"authors": [ "andschwa" ],
"compilationOptions": {
"warningsAsErrors": true
},
"dependencies": {
"System.Management.Automation": "1.0.0-*"
},
"frameworks": {
"netstandard1.5": {
"com... | Fix PSReadLine for net451 build | Fix PSReadLine for net451 build
Needed System.Windows.Forms
| JSON | mit | bmanikm/PowerShell,kmosher/PowerShell,KarolKaczmarek/PowerShell,KarolKaczmarek/PowerShell,bingbing8/PowerShell,bmanikm/PowerShell,bingbing8/PowerShell,PaulHigin/PowerShell,jsoref/PowerShell,KarolKaczmarek/PowerShell,JamesWTruher/PowerShell-1,daxian-dbw/PowerShell,JamesWTruher/PowerShell-1,bingbing8/PowerShell,PaulHigin... | json | ## Code Before:
{
"name": "Microsoft.PowerShell.PSReadLine",
"version": "1.0.0-*",
"authors": [ "andschwa" ],
"compilationOptions": {
"warningsAsErrors": true
},
"dependencies": {
"System.Management.Automation": "1.0.0-*"
},
"frameworks": {
"netstandard1.5": {
... |
d79fb2e3c7f3fb7b812c31c429c784b596ff0cab | distributionviewer/core/static/css/chart-menu.styl | distributionviewer/core/static/css/chart-menu.styl | @import 'lib';
.chart-menu {
display: none;
font-weight: 100;
height: 100%;
// Offset total padding-left so the links are flush against the left window edge.
margin-left: - ($min-padding + $med-padding);
padding: $lrg-padding $med-padding $med-padding 0;
width: $menu-width;
ul {
list-style: none;... | @import 'lib';
.chart-menu {
display: none;
font-weight: 100;
height: 100%;
// Offset total padding-left so the links are flush against the left window edge.
margin-left: - ($min-padding + $med-padding);
padding: $lrg-padding $med-padding $med-padding 0;
width: $menu-width;
ul {
list-style: none;... | Improve spacing of multi-line titles in sidebar | Improve spacing of multi-line titles in sidebar
| Stylus | mpl-2.0 | openjck/distribution-viewer,openjck/distribution-viewer,openjck/distribution-viewer,openjck/distribution-viewer | stylus | ## Code Before:
@import 'lib';
.chart-menu {
display: none;
font-weight: 100;
height: 100%;
// Offset total padding-left so the links are flush against the left window edge.
margin-left: - ($min-padding + $med-padding);
padding: $lrg-padding $med-padding $med-padding 0;
width: $menu-width;
ul {
l... |
d4faa12293024b76dcb751ee926e62ec1c8d912c | CeraonUI/src/Styling/Ceraon.scss | CeraonUI/src/Styling/Ceraon.scss | /* =============================================================================
App specific CSS file.
========================================================================== */
// @import "../../node_modules/semantic-ui-css/semantic.min";
@import "http://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.2/sema... | /* =============================================================================
App specific CSS file.
========================================================================== */
// @import "../../node_modules/semantic-ui-css/semantic.min";
@import "http://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.2/sema... | Update styling to fix semantic bug | Update styling to fix semantic bug
| SCSS | bsd-3-clause | Rdbaker/Mealbound,Rdbaker/Mealbound,Rdbaker/Mealbound,Rdbaker/Mealbound,Rdbaker/Mealbound | scss | ## Code Before:
/* =============================================================================
App specific CSS file.
========================================================================== */
// @import "../../node_modules/semantic-ui-css/semantic.min";
@import "http://cdnjs.cloudflare.com/ajax/libs/semant... |
9134abf954319bf7e645a4a91b8c5a38743b6f99 | pemFioi/randomGenerator-1.0.js | pemFioi/randomGenerator-1.0.js | var RandomGenerator = function(initialSeed) {
this.reset = function(seed) {
this.initialSeed = seed;
this.counter = (seed % 1000003 + 1) * 4751;
};
this.nextReal = function() {
var number = Math.sin(this.counter) * 10000;
this.counter++;
return number - Math.floor(number);
};... | var RandomGenerator = function(initialSeed) {
this.reset = function(seed) {
this.initialSeed = seed;
this.counter = (seed % 1000003 + 1) * 4751;
};
this.nextReal = function() {
var number = Math.sin(this.counter) * 10000;
this.counter++;
return number - Math.floor(number);
};... | Add option to shuffle safely (at most N/2 fixed points). | Add option to shuffle safely (at most N/2 fixed points). | JavaScript | mit | France-ioi/bebras-modules,be-oi/beoi-contest-modules,be-oi/beoi-contest-modules,France-ioi/bebras-modules | javascript | ## Code Before:
var RandomGenerator = function(initialSeed) {
this.reset = function(seed) {
this.initialSeed = seed;
this.counter = (seed % 1000003 + 1) * 4751;
};
this.nextReal = function() {
var number = Math.sin(this.counter) * 10000;
this.counter++;
return number - Math.floo... |
4f72ad3042ba35303a2f6fd735a20a8f4291bed4 | .travis.yml | .travis.yml | language: cpp
compiler:
- gcc
- clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
- clang
- doxygen
before_install:
- pip install --user cpp-coveralls gcovr
# Install CMake 3.1.2
- wget https://github.com/Viq111/travis-container-packets/releases/... | language: cpp
compiler:
- gcc
- clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
- clang
- doxygen
before_install:
- pip install --user cpp-coveralls gcovr
# Install CMake 3.1.2
- wget https://github.com/Viq111/travis-container-packets/releases/... | Exclude cmake directory from coverage | Exclude cmake directory from coverage
| YAML | apache-2.0 | Chippiewill/phosphor,Chippiewill/phosphor | yaml | ## Code Before:
language: cpp
compiler:
- gcc
- clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
- clang
- doxygen
before_install:
- pip install --user cpp-coveralls gcovr
# Install CMake 3.1.2
- wget https://github.com/Viq111/travis-container-p... |
2590489dc5fb0652fff7dd374c8c5ebf7d1ea50a | app/views/container/explorer.html.haml | app/views/container/explorer.html.haml | - if @showtype == "timeline"
= render(:partial => "layouts/tl_show")
:javascript
ManageIQ.afterOnload = "miqAsyncAjax('#{url_for(:action => @ajax_action, :id => @record)}');"
- elsif @showtype == "performance"
= render(:partial => "layouts/performance")
:javascript
ManageIQ.afterOnload =... | - content_for :search do
= render(:partial => "layouts/x_adv_searchbox")
= render(:partial => 'layouts/quick_search')
#main_div
- if @showtype == "timeline"
= render(:partial => "layouts/tl_show")
:javascript
ManageIQ.afterOnload = "miqAsyncAjax('#{url_for(:action => @ajax_action, :id => @record)}')... | Add adv. search to Containers explorer | Add adv. search to Containers explorer
| Haml | apache-2.0 | juliancheal/manageiq,jameswnl/manageiq,israel-hdez/manageiq,tzumainn/manageiq,romanblanco/manageiq,lpichler/manageiq,ilackarms/manageiq,NickLaMuro/manageiq,tinaafitz/manageiq,gerikis/manageiq,mfeifer/manageiq,josejulio/manageiq,ilackarms/manageiq,ilackarms/manageiq,aufi/manageiq,syncrou/manageiq,mfeifer/manageiq,djberg... | haml | ## Code Before:
- if @showtype == "timeline"
= render(:partial => "layouts/tl_show")
:javascript
ManageIQ.afterOnload = "miqAsyncAjax('#{url_for(:action => @ajax_action, :id => @record)}');"
- elsif @showtype == "performance"
= render(:partial => "layouts/performance")
:javascript
Manage... |
052c79f7449f50c282a61b40d4a9c913a889c0d9 | .travis.yml | .travis.yml | language: node_js
node_js:
- 'node'
- '6'
- '4'
| language: node_js
node_js:
- node
- '6'
- '4'
deploy:
provider: npm
email: marcus@stade.se
api_key:
secure: ztmhu+UTP+kF0QJYDGNMzdToqsoDgRhyvY8oK1+J32Z2uVJis0hjDAVVIJ8W8vSbsYLAYsgqj22vpidMOycfNAjhLVKyY/Jq5qqzYpJLJFKm2b2SM1BFXmkvyFAnYvlnOfxBZcDl5tKaPVU3AOb6FnLXL/RRreHk7H/eRKra3VX3QRPlCnm/CZi7ukYb3jA+27nu755vGl... | Enable continuous deployment to npm whenever a new release is cut | Enable continuous deployment to npm whenever a new release is cut
Whenever a semver tag is pushed, this will trigger a deployment
to npm. Used in conjunction with zambezi/prepare-release this
makes for a very nice release process.
| YAML | mit | zambezi/ez-build,zambezi/ez-build | yaml | ## Code Before:
language: node_js
node_js:
- 'node'
- '6'
- '4'
## Instruction:
Enable continuous deployment to npm whenever a new release is cut
Whenever a semver tag is pushed, this will trigger a deployment
to npm. Used in conjunction with zambezi/prepare-release this
makes for a very nice release process.
## Cod... |
1468f5a88cb817b5b74590b1d01ae0cd3c158b8f | app/graphql/types/team_member_type.rb | app/graphql/types/team_member_type.rb | class Types::TeamMemberType < Types::BaseObject
graphql_name 'TeamMember'
authorize_record
field :id, Int, null: false
field :display, Boolean, null: false, deprecation_reason: 'Use display_team_member instead'
field :display_team_member, Boolean, null: false
field :show_email, Boolean, null: false, cameli... | class Types::TeamMemberType < Types::BaseObject
graphql_name 'TeamMember'
authorize_record
field :id, Int, null: false
field :display, Boolean,
null: false,
resolver_method: :display_team_member,
deprecation_reason: 'Use display_team_member instead'
field :display_team_member, Boolean, null: fals... | Fix deprecation warning from graphql-ruby | Fix deprecation warning from graphql-ruby
| Ruby | mit | neinteractiveliterature/intercode,neinteractiveliterature/intercode,neinteractiveliterature/intercode,neinteractiveliterature/intercode,neinteractiveliterature/intercode | ruby | ## Code Before:
class Types::TeamMemberType < Types::BaseObject
graphql_name 'TeamMember'
authorize_record
field :id, Int, null: false
field :display, Boolean, null: false, deprecation_reason: 'Use display_team_member instead'
field :display_team_member, Boolean, null: false
field :show_email, Boolean, nul... |
af92f591d5aa047ef1222e8e74b1f1956d6116ed | dthm4kaiako/templates/generic/map-javascript.html | dthm4kaiako/templates/generic/map-javascript.html | <script>
var event_markers = [
{% if map_location %}
{ lat: {{ location.coords.y }}, lng: {{ location.coords.x }} },
{% elif map_locations %}
{% for location in map_locations %}
{ lat: {{ location.coords.y }}, lng: {{ location.coords.x }} },
{% end... | <script>
var event_markers = [
{% if map_location %}
{ lat: {{ location.coords.y }}, lng: {{ location.coords.x }} },
{% elif map_locations %}
{% for location in map_locations %}
{ lat: {{ location.coords.y }}, lng: {{ location.coords.x }} },
{% end... | Add map clustering when multiple nodes are displayed | Add map clustering when multiple nodes are displayed
| HTML | mit | uccser/cs4teachers,uccser/cs4teachers,uccser/cs4teachers,uccser/cs4teachers | html | ## Code Before:
<script>
var event_markers = [
{% if map_location %}
{ lat: {{ location.coords.y }}, lng: {{ location.coords.x }} },
{% elif map_locations %}
{% for location in map_locations %}
{ lat: {{ location.coords.y }}, lng: {{ location.coords.x }} },
... |
818331e3d53abc615fc69dca8d3203c5684d6855 | .travis.yml | .travis.yml | dist: trusty
language: node_js
node_js:
- lts/*
- node
jobs:
include:
- stage: build
script: npm run build
| language: node_js
node_js:
- lts/*
- node
before_script: npm run clean && node bin/asc -v && npm test
script: npm run build && node bin/asc -v && npm test
| Test both sources and distribution | Test both sources and distribution
| YAML | apache-2.0 | MaxGraey/AssemblyScript,MaxGraey/AssemblyScript,MaxGraey/AssemblyScript,MaxGraey/AssemblyScript,MaxGraey/AssemblyScript | yaml | ## Code Before:
dist: trusty
language: node_js
node_js:
- lts/*
- node
jobs:
include:
- stage: build
script: npm run build
## Instruction:
Test both sources and distribution
## Code After:
language: node_js
node_js:
- lts/*
- node
before_script: npm run clean && node bin/asc -v && npm test
script: npm... |
5a86218a29e23718e40f38790ecd9b2773d7764a | opencog/rule-engine/backwardchainer/CMakeLists.txt | opencog/rule-engine/backwardchainer/CMakeLists.txt | INSTALL (FILES
BackwardChainerPMCB.h
DESTINATION "include/opencog/rule-engine/backwardchainer"
)
| INSTALL (FILES
BackwardChainer.h
BackwardChainerPMCB.h
DESTINATION "include/opencog/rule-engine/backwardchainer"
)
| Add BackwardChainer.h to cmake install list | Add BackwardChainer.h to cmake install list
| Text | agpl-3.0 | AmeBel/atomspace,misgeatgit/atomspace,inflector/atomspace,ceefour/atomspace,rTreutlein/atomspace,rTreutlein/atomspace,yantrabuddhi/atomspace,ArvinPan/atomspace,misgeatgit/atomspace,yantrabuddhi/atomspace,misgeatgit/atomspace,ceefour/atomspace,yantrabuddhi/atomspace,ArvinPan/atomspace,inflector/atomspace,rTreutlein/atom... | text | ## Code Before:
INSTALL (FILES
BackwardChainerPMCB.h
DESTINATION "include/opencog/rule-engine/backwardchainer"
)
## Instruction:
Add BackwardChainer.h to cmake install list
## Code After:
INSTALL (FILES
BackwardChainer.h
BackwardChainerPMCB.h
DESTINATION "include/opencog/rule-engine/backwardchainer"
)
|
cec75e9152f612579ad95f094ee825df85a3977a | .github/workflows/ruby.yml | .github/workflows/ruby.yml | name: Ruby
on:
pull_request:
branches:
- 'master'
push:
branches:
- 'master'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [ '2.5.4', '2.6.5', 'ruby-head', 'jruby-9.2.9.0', 'jruby-head' ]
steps:
- uses: actions/checkout@v1
- name: Set up RVM
... | name: Ruby
on:
pull_request:
branches:
- 'master'
push:
branches:
- 'master'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [ '2.5.8', '2.6.6', '2.7.1', 'ruby-head', 'jruby-9.2.11.1', 'jruby-head' ]
steps:
- uses: actions/checkout@v1
- uses: rub... | Use GH action box maintained by Ruby core | Use GH action box maintained by Ruby core
| YAML | mit | yuki24/did_you_mean | yaml | ## Code Before:
name: Ruby
on:
pull_request:
branches:
- 'master'
push:
branches:
- 'master'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [ '2.5.4', '2.6.5', 'ruby-head', 'jruby-9.2.9.0', 'jruby-head' ]
steps:
- uses: actions/checkout@v1
- nam... |
93da664c36b47e478b7f52e1510a24d73f4f8d1d | runtime/src/chplexit.c | runtime/src/chplexit.c |
static void chpl_exit_common(int status, int all) {
fflush(stdout);
fflush(stderr);
if (status != 0) {
gdbShouldBreakHere();
}
if (all) {
chpl_comm_barrier("chpl_comm_exit_all");
chpl_comm_stopPollingTask();
chpl_task_exit();
chpl_reportMemInfo();
chpl_mem_exit();
chpl_comm_exit_a... |
static void chpl_exit_common(int status, int all) {
fflush(stdout);
fflush(stderr);
if (status != 0) {
gdbShouldBreakHere();
}
if (all) {
chpl_comm_barrier("chpl_exit_common");
chpl_comm_stopPollingTask();
chpl_task_exit();
chpl_reportMemInfo();
chpl_mem_exit();
chpl_comm_exit_all... | Clarify the debug message that may be generated by the chpl_comm_barrier() call in chpl_exit_common(). | Clarify the debug message that may be generated by the
chpl_comm_barrier() call in chpl_exit_common().
git-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@19217 3a8e244f-b0f2-452b-bcba-4c88e055c3ca
| C | apache-2.0 | chizarlicious/chapel,hildeth/chapel,chizarlicious/chapel,sungeunchoi/chapel,sungeunchoi/chapel,hildeth/chapel,CoryMcCartan/chapel,sungeunchoi/chapel,chizarlicious/chapel,CoryMcCartan/chapel,hildeth/chapel,hildeth/chapel,chizarlicious/chapel,chizarlicious/chapel,CoryMcCartan/chapel,sungeunchoi/chapel,sungeunchoi/chapel,... | c | ## Code Before:
static void chpl_exit_common(int status, int all) {
fflush(stdout);
fflush(stderr);
if (status != 0) {
gdbShouldBreakHere();
}
if (all) {
chpl_comm_barrier("chpl_comm_exit_all");
chpl_comm_stopPollingTask();
chpl_task_exit();
chpl_reportMemInfo();
chpl_mem_exit();
... |
f67108e6d5b21a48c8b237bd0d5bd86c6c900e6d | README.md | README.md |
A [JSON-RPC 2.0](http://www.jsonrpc.org/specification) client implementation, which can be used with an arbitrary transport. For corresponding server implementation, see [json-rpc-server](https://github.com/claudijo/json-rpc-server).
> The Client is defined as the origin of Request objects and the handler of Response... |
A [JSON-RPC 2.0](http://www.jsonrpc.org/specification) client implementation, which can be used with an arbitrary transport. For corresponding server implementation, see [json-rpc-server](https://github.com/claudijo/json-rpc-server).
> The Client is defined as the origin of Request objects and the handler of Response... | Add instruction on how to run tests. | Add instruction on how to run tests.
| Markdown | mit | claudijo/json-rpc-client | markdown | ## Code Before:
A [JSON-RPC 2.0](http://www.jsonrpc.org/specification) client implementation, which can be used with an arbitrary transport. For corresponding server implementation, see [json-rpc-server](https://github.com/claudijo/json-rpc-server).
> The Client is defined as the origin of Request objects and the han... |
3f706b352a97bd07e61c5285ee71ef0323e1f7f2 | _layouts/default.html | _layouts/default.html | <!DOCTYPE html5>
<html>
<head>
<title>{{ page.title }}</title>
<meta charset="utf-8" />
<meta name="description" content="Codemania - New Zealand's premier developer conference" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" type="text/css" href="/stylesheets/... | <!DOCTYPE html5>
<html>
<head>
<title>{{ page.title }}</title>
<meta charset="utf-8" />
<meta name="description" content="Codemania - New Zealand's premier developer conference" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" type="text/css" href="/stylesheets/... | Add nostalgia link to menu | Add nostalgia link to menu
| HTML | mit | codemania/codemania.github.io,codemania/codemania.github.io,codemania/codemania.github.io | html | ## Code Before:
<!DOCTYPE html5>
<html>
<head>
<title>{{ page.title }}</title>
<meta charset="utf-8" />
<meta name="description" content="Codemania - New Zealand's premier developer conference" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" type="text/css" hre... |
fe30e0bbce03b7a3738f02baf5e768bd263e690e | spec/features/reordering_topic_sections.rb | spec/features/reordering_topic_sections.rb | require 'rails_helper'
RSpec.describe 'Re-ordering topic sections', type: :feature, js: true do
before do
stub_any_publishing_api_call
# Ensure that all elements are within the browser 'viewport' when dragging
# things around by making the page really tall
page.driver.resize(1024, 2000)
end
it ... | require 'rails_helper'
RSpec.describe 'Re-ordering topic sections', type: :feature, js: true do
before do
stub_any_publishing_api_call
# Ensure that all elements are within the browser 'viewport' when dragging
# things around by making the page really tall
page.driver.resize(1024, 2000)
end
it ... | Tidy up reordering topic section feature spec helpers | Tidy up reordering topic section feature spec helpers
| Ruby | mit | alphagov/service-manual-publisher,alphagov/service-manual-publisher,alphagov/service-manual-publisher | ruby | ## Code Before:
require 'rails_helper'
RSpec.describe 'Re-ordering topic sections', type: :feature, js: true do
before do
stub_any_publishing_api_call
# Ensure that all elements are within the browser 'viewport' when dragging
# things around by making the page really tall
page.driver.resize(1024, 20... |
e3586ce2fd93c67f6b0bf7bd92ee1a5a4531516c | docs/src/donating.rst | docs/src/donating.rst | 🌷️ Thank you for your interest in supporting Cython! 🌷️
======================================================
Managing, maintaining and advancing a project as large as Cython takes
**a lot of time and dedication**. This is really a full-time job that
is currently done by **Stefan Behnel**, paid by users just like ... | 🌷️ Thank you for your interest in supporting Cython! 🌷️
=========================================================
Managing, maintaining and advancing a project as large as Cython takes
**a lot of time and dedication**. This is really a full-time job that
is currently done by **Stefan Behnel**, paid by users just li... | Add a note on PayPal fees for small payments. | Add a note on PayPal fees for small payments.
| reStructuredText | apache-2.0 | da-woods/cython,scoder/cython,scoder/cython,scoder/cython,da-woods/cython,cython/cython,cython/cython,cython/cython,da-woods/cython,scoder/cython,cython/cython,da-woods/cython | restructuredtext | ## Code Before:
🌷️ Thank you for your interest in supporting Cython! 🌷️
======================================================
Managing, maintaining and advancing a project as large as Cython takes
**a lot of time and dedication**. This is really a full-time job that
is currently done by **Stefan Behnel**, paid by ... |
604d5a0ebadbd275dc3f5abe5e1cae252f4783af | lib/app/routes/solutions.rb | lib/app/routes/solutions.rb | module ExercismWeb
module Routes
class Solutions < Core
get '/code/:language/:slug/random' do |language, slug|
please_login
language, slug = language.downcase, slug.downcase
problem = Problem.new(language, slug)
unless current_user.nitpicker_on?(problem)
flash[:n... | module ExercismWeb
module Routes
class Solutions < Core
get '/code/:language/:slug/random' do |language, slug|
please_login
language, slug = language.downcase, slug.downcase
problem = Problem.new(language, slug)
unless current_user.nitpicker_on?(problem)
flash[:n... | Add more context for difficult-to-reproduce exception | Add more context for difficult-to-reproduce exception
| Ruby | agpl-3.0 | praveenpuglia/exercism.io,treiff/exercism.io,alexclarkofficial/exercism.io,RaptorRCX/exercism.io,Tonkpils/exercism.io,tejasbubane/exercism.io,nathanbwright/exercism.io,amar47shah/exercism.io,chinaowl/exercism.io,copiousfreetime/exercism.io,tejasbubane/exercism.io,Tonkpils/exercism.io,k4rtik/exercism.io,kangkyu/exercism... | ruby | ## Code Before:
module ExercismWeb
module Routes
class Solutions < Core
get '/code/:language/:slug/random' do |language, slug|
please_login
language, slug = language.downcase, slug.downcase
problem = Problem.new(language, slug)
unless current_user.nitpicker_on?(problem)
... |
ebfaf30fca157e83ea9e4bf33173221fc9525caf | demo/examples/employees/forms.py | demo/examples/employees/forms.py | from datetime import date
from django import forms
from django.utils import timezone
from .models import Employee, DeptManager, Title, Salary
class ChangeManagerForm(forms.Form):
manager = forms.ModelChoiceField(queryset=Employee.objects.all()[:100])
def __init__(self, *args, **kwargs):
self.depart... | from django import forms
from .models import Employee, DeptManager, Title, Salary
class ChangeManagerForm(forms.Form):
manager = forms.ModelChoiceField(queryset=Employee.objects.all()[:100])
def __init__(self, *args, **kwargs):
self.department = kwargs.pop('department')
super(ChangeManagerFo... | Fix emplorrs demo salary db error | Fix emplorrs demo salary db error
| Python | bsd-3-clause | viewflow/django-material,viewflow/django-material,viewflow/django-material | python | ## Code Before:
from datetime import date
from django import forms
from django.utils import timezone
from .models import Employee, DeptManager, Title, Salary
class ChangeManagerForm(forms.Form):
manager = forms.ModelChoiceField(queryset=Employee.objects.all()[:100])
def __init__(self, *args, **kwargs):
... |
922acafc793b3d32f625fe18cd52b2bfd59a5f96 | ansible/wsgi.py | ansible/wsgi.py | from pecan.deploy import deploy
app = deploy('/opt/web/draughtcraft/src/production.py')
from paste.exceptions.errormiddleware import ErrorMiddleware
app = ErrorMiddleware(
app,
error_email=app.conf.error_email,
from_address=app.conf.error_email,
smtp_server=app.conf.error_smtp_server,
smtp_username... | from pecan import conf
from pecan.deploy import deploy
app = deploy('/opt/web/draughtcraft/src/production.py')
from paste.exceptions.errormiddleware import ErrorMiddleware
app = ErrorMiddleware(
app,
error_email=conf.error_email,
from_address=conf.error_email,
smtp_server=conf.error_smtp_server,
sm... | Fix a bug in the WSGI entrypoint. | Fix a bug in the WSGI entrypoint.
| Python | bsd-3-clause | ryanpetrello/draughtcraft,ryanpetrello/draughtcraft,ryanpetrello/draughtcraft,ryanpetrello/draughtcraft | python | ## Code Before:
from pecan.deploy import deploy
app = deploy('/opt/web/draughtcraft/src/production.py')
from paste.exceptions.errormiddleware import ErrorMiddleware
app = ErrorMiddleware(
app,
error_email=app.conf.error_email,
from_address=app.conf.error_email,
smtp_server=app.conf.error_smtp_server,
... |
23a9d15bfe3c92cd9eb6b5cf2e12356e55149302 | templates/opinions/opinion_base.html | templates/opinions/opinion_base.html | {% extends "base.html" %}
{% load opinions %}
{% block sidebar %}
{% if question %}
{% promise_statistics_sidebar user question %}
{% else %}
{% promise_statistics_sidebar user %}
{% endif %}
{% endblock %}
| {% extends "base.html" %}
{% load opinions %}
{% block head %}
<script type="text/javascript">
$(function() {
$('.opinion_navigation_category [title]').tooltip({
delay: 0,
fade: 0,
track: true,
showURL: false,
});
});
</script>
{% endblock %}
{% block sidebar... | Add fast tooltips for the sidebar | opinions: Add fast tooltips for the sidebar
| HTML | agpl-3.0 | kansanmuisti/kamu,kansanmuisti/kamu,kansanmuisti/kamu,kansanmuisti/kamu,kansanmuisti/kamu | html | ## Code Before:
{% extends "base.html" %}
{% load opinions %}
{% block sidebar %}
{% if question %}
{% promise_statistics_sidebar user question %}
{% else %}
{% promise_statistics_sidebar user %}
{% endif %}
{% endblock %}
## Instruction:
opinions: Add fast tooltips for the sidebar
## Code After:
{% e... |
3ecf2ed9721019051af03870a2754dbfa6abd419 | lib/heroku/deploy/tasks/prepare_production_branch.rb | lib/heroku/deploy/tasks/prepare_production_branch.rb | module Heroku::Deploy::Task
class PrepareProductionBranch < Base
include Heroku::Deploy::Shell
def before_deploy
@previous_branch = git "rev-parse --abbrev-ref HEAD"
# Always fetch first. The repo may have already been created.
task "Fetching from #{colorize "origin", :cyan}" do
gi... | module Heroku::Deploy::Task
class PrepareProductionBranch < Base
include Heroku::Deploy::Shell
def before_deploy
@previous_branch = git "rev-parse --abbrev-ref HEAD"
# Always fetch first. The repo may have already been created.
task "Fetching from #{colorize "origin", :cyan}" do
gi... | Reset the local production branch when we switch to it. | Reset the local production branch when we switch to it.
| Ruby | mit | envato/heroku-deploy,LeadSimple/heroku-deploy | ruby | ## Code Before:
module Heroku::Deploy::Task
class PrepareProductionBranch < Base
include Heroku::Deploy::Shell
def before_deploy
@previous_branch = git "rev-parse --abbrev-ref HEAD"
# Always fetch first. The repo may have already been created.
task "Fetching from #{colorize "origin", :cyan... |
80399ba74e45b7d071f6e81868bc8af40c516647 | Cargo.toml | Cargo.toml | [package]
name = "riscan-pro"
version = "0.1.0"
authors = ["Pete Gadomski <pete.gadomski@gmail.com>"]
[dependencies]
docopt = "0.6"
las = "0.3"
nalgebra = "0.9"
pbr = "0.3"
rustc-serialize = "0.3"
xmltree = "0.3"
| [package]
name = "riscan-pro"
version = "0.1.0"
authors = ["Pete Gadomski <pete.gadomski@gmail.com>"]
[dependencies]
docopt = "0.6"
las = "0.3"
nalgebra = "0.9"
pbr = "0.3"
rustc-serialize = "0.3"
xmltree = "0.3"
[[bin]]
name = "riscan-pro"
doc = false
| Set doc to false for the binary | Set doc to false for the binary
| TOML | mit | gadomski/riscan-pro | toml | ## Code Before:
[package]
name = "riscan-pro"
version = "0.1.0"
authors = ["Pete Gadomski <pete.gadomski@gmail.com>"]
[dependencies]
docopt = "0.6"
las = "0.3"
nalgebra = "0.9"
pbr = "0.3"
rustc-serialize = "0.3"
xmltree = "0.3"
## Instruction:
Set doc to false for the binary
## Code After:
[package]
name = "riscan-... |
87ba996af0b363d734155326db7b865d035046fd | .slackbot.yml | .slackbot.yml | releaseSchedule:
OmarShehata: 9/2/2019
mramato: 10/1/2019
hpinkos: 11/1/2019
lilleyse: 12/1/2019
kring: 1/6/2020
lilleyse: 2/3/2020
mramato: 3/2/2020
greetings:
- Happy Friday everyone!
- Can you believe Friday is already here?
- I hope you all had awesome week!
- I skipped breakfast, so I hope G... | releaseSchedule:
mamato: 3/2/2020
oshehata: 4/1/2020
lilleyse: 5/1/2020
ian: 6/1/2020
sam.suhag: 7/1/2020
sam.vargas: 8/3/2020
kevin: 9/1/2020
mamato: 10/1/2020
oshehata: 11/2/2020
lilleyse: 12/1/2020
| Update release schedule for 2020 | Update release schedule for 2020 | YAML | apache-2.0 | YonatanKra/cesium,YonatanKra/cesium,likangning93/cesium,CesiumGS/cesium,progsung/cesium,CesiumGS/cesium,AnalyticalGraphicsInc/cesium,YonatanKra/cesium,AnalyticalGraphicsInc/cesium,CesiumGS/cesium,likangning93/cesium,likangning93/cesium,progsung/cesium,likangning93/cesium,likangning93/cesium,CesiumGS/cesium,YonatanKra/c... | yaml | ## Code Before:
releaseSchedule:
OmarShehata: 9/2/2019
mramato: 10/1/2019
hpinkos: 11/1/2019
lilleyse: 12/1/2019
kring: 1/6/2020
lilleyse: 2/3/2020
mramato: 3/2/2020
greetings:
- Happy Friday everyone!
- Can you believe Friday is already here?
- I hope you all had awesome week!
- I skipped breakf... |
c7f6e0c2e9c5be112a7576c3d2a1fc8a79eb9f18 | brasilcomvc/settings/staticfiles.py | brasilcomvc/settings/staticfiles.py | import os
import sys
# Disable django-pipeline when in test mode
PIPELINE_ENABLED = 'test' not in sys.argv
# Main project directory
BASE_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
STATIC_BASE_DIR = os.path.join(BASE_DIR, '../webroot')
# Static file dirs
STATIC_ROOT = os.path.join(STATIC_BA... | import os
import sys
# Main project directory
BASE_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
STATIC_BASE_DIR = os.path.join(BASE_DIR, '../webroot')
# Static file dirs
STATIC_ROOT = os.path.join(STATIC_BASE_DIR, 'static')
MEDIA_ROOT = os.path.join(STATIC_BASE_DIR, 'media')
# Static file UR... | Fix django-pipeline configuration for development/test | fix(set): Fix django-pipeline configuration for development/test
| Python | apache-2.0 | brasilcomvc/brasilcomvc,brasilcomvc/brasilcomvc,brasilcomvc/brasilcomvc | python | ## Code Before:
import os
import sys
# Disable django-pipeline when in test mode
PIPELINE_ENABLED = 'test' not in sys.argv
# Main project directory
BASE_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
STATIC_BASE_DIR = os.path.join(BASE_DIR, '../webroot')
# Static file dirs
STATIC_ROOT = os.pat... |
6d16ecbdcabd4ff55bc152fc2199e6f165f2871e | core/js/src/main/scala/sttp/client/MessageDigestCompatibility.scala | core/js/src/main/scala/sttp/client/MessageDigestCompatibility.scala | package sttp.client
import org.scalajs.dom.webgl.Buffer
import scala.scalajs.js
import scala.scalajs.js.annotation.JSImport
import scala.scalajs.js.|
private[client] class MessageDigestCompatibility(algorithm: String) {
private lazy val md = algorithm match {
case "MD5" => MD5
case _ => throw new Illeg... | package sttp.client
import org.scalajs.dom.webgl.Buffer
import scala.scalajs.js
import scala.scalajs.js.annotation.JSImport
import scala.scalajs.js.|
private[client] class MessageDigestCompatibility(algorithm: String) {
private lazy val md = algorithm match {
case "MD5" => MD5
case _ => throw new Illeg... | Add link to original code with md5hash for scalajs | Add link to original code with md5hash for scalajs
| Scala | apache-2.0 | softwaremill/sttp,softwaremill/sttp,softwaremill/sttp | scala | ## Code Before:
package sttp.client
import org.scalajs.dom.webgl.Buffer
import scala.scalajs.js
import scala.scalajs.js.annotation.JSImport
import scala.scalajs.js.|
private[client] class MessageDigestCompatibility(algorithm: String) {
private lazy val md = algorithm match {
case "MD5" => MD5
case _ =>... |
f3cbe52e0d65e8d6647815b25c79a836db93fb41 | gitcd/Cli/Command.py | gitcd/Cli/Command.py | import subprocess
import string
class Command(object):
def execute(self, command: str):
cliArgs = self.parseCliArgs(command)
process = subprocess.Popen(cliArgs, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
output, err = process.communicate()
if process.returncode != 0:
... | import subprocess
import string
from pprint import pprint
class Command(object):
def execute(self, command: str):
cliArgs = self.parseCliArgs(command)
pprint(cliArgs)
process = subprocess.Popen(cliArgs, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
output, err = process.c... | Add some debug for debian box | Add some debug for debian box
| Python | apache-2.0 | claudio-walser/gitcd,claudio-walser/gitcd | python | ## Code Before:
import subprocess
import string
class Command(object):
def execute(self, command: str):
cliArgs = self.parseCliArgs(command)
process = subprocess.Popen(cliArgs, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
output, err = process.communicate()
if process.retu... |
7bad77d0fd586813f777caf718e913ae1ffeed7a | playbooks/roles/splunkforwarder/defaults/main.yml | playbooks/roles/splunkforwarder/defaults/main.yml | ---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://github.com/edx/configuration/wiki
# code style: https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
##
# Vars for role splunk... | ---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://github.com/edx/configuration/wiki
# code style: https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
##
# Vars for role splunk... | Move overridable defaults to the top of the file. | Move overridable defaults to the top of the file.
| YAML | agpl-3.0 | proversity-org/configuration,nttks/configuration,kencung/configuration,Stanford-Online/configuration,sudheerchintala/LearnEra-Configuration,apigee/edx-configuration,ovnicraft/evex-configuration,knehez/configuration,nikolas/configuration,rue89-tech/configuration,openfun/configuration,Unow/configuration,arifsetiawan/conf... | yaml | ## Code Before:
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://github.com/edx/configuration/wiki
# code style: https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
##
# Vars... |
72a53c0c09c50e93012d50484837c6747a0157ab | packages/xo-server-auth-google/src/index.js | packages/xo-server-auth-google/src/index.js | import { Strategy } from 'passport-google-oauth20'
// ===================================================================
export const configurationSchema = {
type: 'object',
properties: {
callbackURL: {
type: 'string',
description: 'Must be exactly the same as specified on the Google developer co... | import { Strategy } from 'passport-google-oauth20'
// ===================================================================
export const configurationSchema = {
type: 'object',
properties: {
callbackURL: {
type: 'string',
description: 'Must be exactly the same as specified on the Google developer co... | Revert "fix: ensure a scope is used" | Revert "fix: ensure a scope is used"
This reverts commit 3fbfbb1b2687de3d7c056a6790ad735b19eb9254.
No longer necessary, this is now fixed in vatesfr/xo-server@8c7d254244fdf0438ab8f0bf9ee7c082f7318f09
| JavaScript | agpl-3.0 | vatesfr/xo-web,lmcro/xo-web,vatesfr/xo-web,lmcro/xo-web,lmcro/xo-web | javascript | ## Code Before:
import { Strategy } from 'passport-google-oauth20'
// ===================================================================
export const configurationSchema = {
type: 'object',
properties: {
callbackURL: {
type: 'string',
description: 'Must be exactly the same as specified on the Goo... |
bd40a662cf6271ab80a79fc03df5ea9c1ffb634e | tmuxinator/hamiware.yml | tmuxinator/hamiware.yml |
name: hamiware
root: ~/
windows:
- console: cd && clear
- tablero: cd ~/repos/tablero && yarn start
#- lzd: lzd
- tech-trooper:
layout: even-horizontal
panes:
- cd ~/repos_theiconic/tech-trooper/ && clear
- cd ~/repos_theiconic/tech-trooper/ && clear && git status
|
name: hamiware
root: ~/
windows:
- console: cd && clear
- tablero: cd && clear
#- lzd: lzd
#- tech-trooper:
# layout: even-horizontal
# panes:
# - cd ~/repos_theiconic/tech-trooper/ && clear
# - cd ~/repos_theiconic/tech-trooper/ && clear && git status
| Disable extra panes for now | Disable extra panes for now
| YAML | mit | jorgeborges/dotfiles,jorgeborges/dotfiles | yaml | ## Code Before:
name: hamiware
root: ~/
windows:
- console: cd && clear
- tablero: cd ~/repos/tablero && yarn start
#- lzd: lzd
- tech-trooper:
layout: even-horizontal
panes:
- cd ~/repos_theiconic/tech-trooper/ && clear
- cd ~/repos_theiconic/tech-trooper/ && clear && git stat... |
71b0adcdf10e9edd1503e75c0927a0c18acc7c97 | README.md | README.md |
A CSV parser and builder for PHP.
The `CsvParser` class implements the `Iterator` interface meaning large files can be parsed
without hitting any memory limits because only one line is loaded at a time.
## Requirements
* PHP >= 5.3
## Usage
#### Building a CSV file for download
```php
<?php
use Palmtree\Csv\CsvBu... |
A CSV reader and writer for PHP.
The `Reader` class implements the `Iterator` interface meaning large files can be parsed
without hitting any memory limits because only one line is loaded at a time.
## Requirements
* PHP >= 5.3
## Usage
#### Building a CSV file for download
```php
<?php
use Palmtree\Csv\Writer;
... | Update readme with new class names | Update readme with new class names
| Markdown | mit | palmtreephp/csv | markdown | ## Code Before:
A CSV parser and builder for PHP.
The `CsvParser` class implements the `Iterator` interface meaning large files can be parsed
without hitting any memory limits because only one line is loaded at a time.
## Requirements
* PHP >= 5.3
## Usage
#### Building a CSV file for download
```php
<?php
use Pa... |
55dc9595a25dd135bcdeff96dee77dafcd4575b6 | bottleopener/shiftrConnector.cpp | bottleopener/shiftrConnector.cpp |
void ShiftrConnector::init(const char* deviceLogin, const char* pwd)
{
client.begin("broker.shiftr.io");
this->deviceLogin = deviceLogin;
this->pwd = pwd;
connect();
client.subscribe("/bottle-openner");
// client.unsubscribe("/bottle-openner");
}
void ShiftrConnector::connect() {
while (!client.conn... |
void ShiftrConnector::init(const char* deviceLogin, const char* pwd)
{
client.begin("broker.shiftr.io");
this->deviceLogin = deviceLogin;
this->pwd = pwd;
connect();
client.subscribe("/bottle-openner");
// client.unsubscribe("/bottle-openner");
}
void ShiftrConnector::connect() {
while (!client.conn... | Extend log when connected to the IoT platform | Extend log when connected to the IoT platform
| C++ | mit | Zenika/bottleopener_iot,Zenika/bottleopener_iot,Zenika/bottleopener_iot,Zenika/bottleopener_iot | c++ | ## Code Before:
void ShiftrConnector::init(const char* deviceLogin, const char* pwd)
{
client.begin("broker.shiftr.io");
this->deviceLogin = deviceLogin;
this->pwd = pwd;
connect();
client.subscribe("/bottle-openner");
// client.unsubscribe("/bottle-openner");
}
void ShiftrConnector::connect() {
whi... |
a77b3fe598d7437112b3596463204483701186c8 | setup/setup_tm.sh | setup/setup_tm.sh |
source ~/dotfiles/setup/header.sh
# The path to the cloned Asimov repository
export ASIMOV_PATH=~/asimov
# Exclude the given directory path from Time Machine
exclude_dir() {
local dir_path="${1%/}"
echo "Excluding $dir_path"
sudo tmutil addexclusion -p "$dir_path"
}
# Only back up /Users
for dir_path in /*/ /.*/... |
source ~/dotfiles/setup/header.sh
# The path to the cloned Asimov repository
export ASIMOV_PATH=~/asimov
# Exclude the given directory path from Time Machine
exclude_dir() {
local dir_path="${1%/}"
echo "Excluding $dir_path"
sudo tmutil addexclusion -p "$dir_path"
}
# Only back up /Users
for dir_path in /*/ /.*/... | Exclude Album Artwork Cache directory from TM | Exclude Album Artwork Cache directory from TM
| Shell | mit | caleb531/dotfiles,caleb531/dotfiles,caleb531/dotfiles,caleb531/dotfiles | shell | ## Code Before:
source ~/dotfiles/setup/header.sh
# The path to the cloned Asimov repository
export ASIMOV_PATH=~/asimov
# Exclude the given directory path from Time Machine
exclude_dir() {
local dir_path="${1%/}"
echo "Excluding $dir_path"
sudo tmutil addexclusion -p "$dir_path"
}
# Only back up /Users
for dir_... |
22aa637d801a02ad6d64f607657ae3e00406888d | .travis.yml | .travis.yml | language: cpp
compiler:
- g++
os:
- linux
script: make && make test
| language: cpp
compiler:
- g++
os:
- linux
script: make && make test
env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "KdiCvRP3pJ8KyOyNIaaqXvrGJvKOlW8Kh/tAsMKuu7trWi6XIvmmJKUeiRC3nHeiMq5cNOTau9W... | Automate Analysis with Travis CI | Automate Analysis with Travis CI
Automate Analysis with Travis CI | YAML | apache-2.0 | hongliuliao/ehttp,hongliuliao/ehttp,hongliuliao/simple_server,hongliuliao/ehttp,hongliuliao/ehttp | yaml | ## Code Before:
language: cpp
compiler:
- g++
os:
- linux
script: make && make test
## Instruction:
Automate Analysis with Travis CI
Automate Analysis with Travis CI
## Code After:
language: cpp
compiler:
- g++
os:
- linux
script: make && make test
env:
global:
# The next declaration is the encrypted COVERITY_SC... |
b2219cf150766400a9c60c70a4cb528b551e20e4 | src/Symfony/Component/Finder/README.md | src/Symfony/Component/Finder/README.md | Finder Component
================
Finder finds files and directories via an intuitive fluent interface.
use Symfony\Component\Finder\Finder;
$finder = new Finder();
$iterator = $finder
->files()
->name('*.php')
->depth(0)
->size('>= 1K')
->in(__DIR__);
foreach ($iterat... | Finder Component
================
Finder finds files and directories via an intuitive fluent interface.
use Symfony\Component\Finder\Finder;
$finder = new Finder();
$iterator = $finder
->files()
->name('*.php')
->depth(0)
->size('>= 1K')
->in(__DIR__);
foreach ($iterat... | Add info about possibilities offered by SplFileInfo | [Finder] Add info about possibilities offered by SplFileInfo
| Markdown | mit | ivanovnickolay/symfony,0x73/symfony,peterrehm/symfony,xabbuh/symfony,realityking/symfony,frankdejonge/symfony,phramz/symfony,lemoinem/symfony,jderusse/symfony,guanhui07/symfony,beoboo/symfony,gonzalovilaseca/symfony,showpad/symfony,aeoris/symfony,inso/symfony,jenalgit/symfony,mimaidms/symfony,bocharsky-bw/symfony,joelw... | markdown | ## Code Before:
Finder Component
================
Finder finds files and directories via an intuitive fluent interface.
use Symfony\Component\Finder\Finder;
$finder = new Finder();
$iterator = $finder
->files()
->name('*.php')
->depth(0)
->size('>= 1K')
->in(__DIR__);
... |
cfdbb26fa02c929271dda092571b69c08d184cc7 | test-support/src/main/resources/application.yml | test-support/src/main/resources/application.yml | ---
applications:
root: ../../java-test-applications
distZip:
location: ${applications.root}/dist-zip-application
prefix: dist-zip-application-
ejb:
enabled: false
location: ${applications.root}/ejb-application
prefix: ejb-application-
groovy:
location: ${applications.root}/groovy-a... | ---
applications:
root: ../../java-test-applications
distZip:
location: ${applications.root}/dist-zip-application
prefix: dist-zip-application-
ejb:
enabled: false
location: ${applications.root}/ejb-application
prefix: ejb-application-
groovy:
location: ${applications.root}/groovy-a... | Allow RGB env instead of PWS | Allow RGB env instead of PWS
| YAML | apache-2.0 | cloudfoundry/java-buildpack-system-test,cloudfoundry/java-buildpack-system-test | yaml | ## Code Before:
---
applications:
root: ../../java-test-applications
distZip:
location: ${applications.root}/dist-zip-application
prefix: dist-zip-application-
ejb:
enabled: false
location: ${applications.root}/ejb-application
prefix: ejb-application-
groovy:
location: ${application... |
81ead0a6eee05eeed05f97f0af3fb142831aae9d | resources/views/component/upload/gallery.blade.php | resources/views/component/upload/gallery.blade.php | <div id="{{ $id or 'gallery-upload' }}" class="gallery-upload {{ $class or ''}}">
<p>
<button type="button" class="btn btn-default">{{ $button or 'Upload' }}</button>
<input type="file" class="hidden" accept="image/*">
</p>
<div class="image-gallery clearfix">
@foreach ($images as $i... | <div id="{{ $id or 'gallery-upload' }}" class="gallery-upload {{ $class or ''}}">
<p>
<button type="button" class="btn btn-default">{{ $button or 'Upload' }}</button>
<input type="file" class="hidden" accept="image/*">
</p>
<div class="image-gallery clearfix">
@if (isset($images))
... | Check if $images exists in gallery upload view. | Check if $images exists in gallery upload view.
| PHP | agpl-3.0 | santakani/santakani.com,santakani/santakani,santakani/santakani.com,santakani/santakani,santakani/santakani,santakani/santakani.com,santakani/santakani | php | ## Code Before:
<div id="{{ $id or 'gallery-upload' }}" class="gallery-upload {{ $class or ''}}">
<p>
<button type="button" class="btn btn-default">{{ $button or 'Upload' }}</button>
<input type="file" class="hidden" accept="image/*">
</p>
<div class="image-gallery clearfix">
@foreac... |
dfee963c6198de4e05374eb04f91548b5c848965 | src/components/categoryForm/categoryForm.component.ts | src/components/categoryForm/categoryForm.component.ts | import { Component, ViewEncapsulation } from '@angular/core';
@Component({
templateUrl: './categoryForm.component.html',
styleUrls: ['./categoryForm.component.scss'],
encapsulation: ViewEncapsulation.None
})
export class CategoryFormComponent {
subjects: { value: string, viewValue: string }[] = [
{value: '... | import { Component, ViewEncapsulation } from '@angular/core';
@Component({
templateUrl: './categoryForm.component.html',
styleUrls: ['./categoryForm.component.scss'],
encapsulation: ViewEncapsulation.None
})
export class CategoryFormComponent {
subjects: { value: string, viewValue: string }[] = [
{value: '... | Create object with form data | Create object with form data
| TypeScript | mit | ivanna-ostrovets/language-and-literature-admin,ivanna-ostrovets/language-and-literature-admin,ivanna-ostrovets/language-and-literature-admin | typescript | ## Code Before:
import { Component, ViewEncapsulation } from '@angular/core';
@Component({
templateUrl: './categoryForm.component.html',
styleUrls: ['./categoryForm.component.scss'],
encapsulation: ViewEncapsulation.None
})
export class CategoryFormComponent {
subjects: { value: string, viewValue: string }[] =... |
019c016596adc96adee0078f781c8d2af729ff5a | src/js/jstrans.js | src/js/jstrans.js | var jstrans = function (path) {
if (selector = document.querySelector('input[name=\"jstrans-value-for-' + path + '\"]')) {
return selector.value;
} else {
var json = JSON.parse('%s');
var keys = path.split('.');
var value = json;
for (var i in keys) {
... | var jstrans = function (path) {
if (typeof path === 'undefined') {
return null;
}
if (selector = document.querySelector('input[name=\"jstrans-value-for-' + path + '\"]')) {
return selector.value;
} else {
var json = JSON.parse('%s');
var keys = path.split('.');
... | Return null if path is not specified | Return null if path is not specified
| JavaScript | mit | misterpaladin/jstrans,misterpaladin/jstrans | javascript | ## Code Before:
var jstrans = function (path) {
if (selector = document.querySelector('input[name=\"jstrans-value-for-' + path + '\"]')) {
return selector.value;
} else {
var json = JSON.parse('%s');
var keys = path.split('.');
var value = json;
for (var... |
47c7333adc439d5a341aee0fe75f38248ee76341 | .travis.yml | .travis.yml | before_install:
- export LANG=en_US.UTF-8
- brew update
- brew upgrade xctool
script: ./build_script.sh
| language: objective-c
before_install:
- export LANG=en_US.UTF-8
- brew update
- brew upgrade xctool
script: ./build_script.sh
| Set to use Objective-C in Travis build file | Set to use Objective-C in Travis build file
| YAML | mit | rhodgkins/xctoolSubProjectTest | yaml | ## Code Before:
before_install:
- export LANG=en_US.UTF-8
- brew update
- brew upgrade xctool
script: ./build_script.sh
## Instruction:
Set to use Objective-C in Travis build file
## Code After:
language: objective-c
before_install:
- export LANG=en_US.UTF-8
- brew update
- brew upgrade xctool
script: ... |
093c04f7b2e3b48b93590eda1e8560b6aaebe93c | .travis.yml | .travis.yml | sudo: required
dist: trusty
addons:
chrome: stable
language: node_js
node_js:
- 'lts/*'
install:
- npm i npm@6.1.0
- npm ci
script:
- npm run lint:eslint
- npm run lint:stylelint
- npm run build
# - npm run test
# before_script:
# - "sudo chown root /opt/google/chrome/chrome-sandbox"
# - "sudo chmod ... | dist: trusty
language: node_js
node_js:
- 'lts/*'
install:
- npm i -g npm@6.1.0
- npm ci
script:
- npm run lint:eslint
- npm run lint:stylelint
- npm run build
| Delete commented lines, enable global npm update | Delete commented lines, enable global npm update
| YAML | apache-2.0 | GoogleChromeLabs/sample-pie-shop,GoogleChromeLabs/sample-pie-shop | yaml | ## Code Before:
sudo: required
dist: trusty
addons:
chrome: stable
language: node_js
node_js:
- 'lts/*'
install:
- npm i npm@6.1.0
- npm ci
script:
- npm run lint:eslint
- npm run lint:stylelint
- npm run build
# - npm run test
# before_script:
# - "sudo chown root /opt/google/chrome/chrome-sandbox"
# ... |
2a3bdd786c11fbf3fca9784f47feae5b179ac824 | CHANGELOG.md | CHANGELOG.md |
- Switch from icon font to using SVG icons
## v0.8.0
- Load Octicons from NPM instead of Bower
## v0.7.1
- Fixes the blueprint addition of `octicons` to the installing project's `bower.json` (reported by @herzzanu)
## v0.7.0
- Renamed `ember-cli-octicons` to `ember-octicons`
## v0.6.0
- Updated Octicons to 4.3... |
- Switch from icon font to using SVG icons
- Update Octicons to ^7.2.0
## v0.8.0
- Load Octicons from NPM instead of Bower
## v0.7.1
- Fixes the blueprint addition of `octicons` to the installing project's `bower.json` (reported by @herzzanu)
## v0.7.0
- Renamed `ember-cli-octicons` to `ember-octicons`
## v0.6.... | Include Octicons version update in Changelog | Include Octicons version update in Changelog
| Markdown | mit | kpfefferle/ember-cli-octicons,kpfefferle/ember-cli-octicons,kpfefferle/ember-octicons,kpfefferle/ember-octicons | markdown | ## Code Before:
- Switch from icon font to using SVG icons
## v0.8.0
- Load Octicons from NPM instead of Bower
## v0.7.1
- Fixes the blueprint addition of `octicons` to the installing project's `bower.json` (reported by @herzzanu)
## v0.7.0
- Renamed `ember-cli-octicons` to `ember-octicons`
## v0.6.0
- Updated... |
719fd8cdc8ae9be63c99407fe6f3aac056220cb8 | taiga/users/fixtures/initial_user.json | taiga/users/fixtures/initial_user.json | [
{
"pk": 1,
"model": "users.user",
"fields": {
"username": "admin",
"full_name": "",
"bio": "",
"default_language": "",
"color": "",
"photo": "",
"is_active": true,
"colorize_tags": false,
... | [
{
"pk": 1,
"model": "users.user",
"fields": {
"username": "admin",
"full_name": "",
"bio": "",
"default_language": "",
"color": "",
"photo": "",
"is_active": true,
"colorize_tags": false,
... | Change the email of admin | Change the email of admin
| JSON | agpl-3.0 | Tigerwhit4/taiga-back,crr0004/taiga-back,coopsource/taiga-back,forging2012/taiga-back,Tigerwhit4/taiga-back,jeffdwyatt/taiga-back,Rademade/taiga-back,astagi/taiga-back,bdang2012/taiga-back-casting,seanchen/taiga-back,taigaio/taiga-back,taigaio/taiga-back,astagi/taiga-back,obimod/taiga-back,19kestier/taiga-back,joshisa/... | json | ## Code Before:
[
{
"pk": 1,
"model": "users.user",
"fields": {
"username": "admin",
"full_name": "",
"bio": "",
"default_language": "",
"color": "",
"photo": "",
"is_active": true,
"colorize_tags... |
64d4bcf0862e2715dc0de92a0621adf23dff5818 | source/harmony/schema/collector.py | source/harmony/schema/collector.py |
from abc import ABCMeta, abstractmethod
class Collector(object):
'''Collect and return schemas.'''
__metaclass__ = ABCMeta
@abstractmethod
def collect(self):
'''Yield collected schemas.
Each schema should be a Python dictionary.
'''
|
import os
from abc import ABCMeta, abstractmethod
try:
import json
except ImportError:
try:
import simplejson as json
except ImportError:
raise ImportError('Could not import json or simplejson')
class Collector(object):
'''Collect and return schemas.'''
__metaclass__ = ABCMeta
... | Support collecting schemas from filesystem. | Support collecting schemas from filesystem.
| Python | apache-2.0 | 4degrees/harmony | python | ## Code Before:
from abc import ABCMeta, abstractmethod
class Collector(object):
'''Collect and return schemas.'''
__metaclass__ = ABCMeta
@abstractmethod
def collect(self):
'''Yield collected schemas.
Each schema should be a Python dictionary.
'''
## Instruction:
Suppor... |
319fa749b4ba5264e7a9ee6bd0266c552c5f1650 | demo/analytics-pipeline/spark/service.spark.yaml | demo/analytics-pipeline/spark/service.spark.yaml | name: spark
components:
- name: zookeeper
service: zookeeper
- name: spark
code:
type: aptomi/code/kubernetes-helm
metadata:
chartName: spark-1.0.0
params:
spark:
image:
repository: mirantisworkloads/spark
tag: 2.1.0
master:
... | name: spark
components:
- name: zookeeper
service: zookeeper
- name: spark
code:
type: aptomi/code/kubernetes-helm
metadata:
chartName: spark-1.0.0
params:
spark:
image:
repository: mirantisworkloads/spark
tag: 2.1.0
master:
... | Fix multiple Sparks using single ZooKeeper | Fix multiple Sparks using single ZooKeeper
| YAML | apache-2.0 | Aptomi/aptomi,Aptomi/aptomi,Aptomi/aptomi,Aptomi/aptomi | yaml | ## Code Before:
name: spark
components:
- name: zookeeper
service: zookeeper
- name: spark
code:
type: aptomi/code/kubernetes-helm
metadata:
chartName: spark-1.0.0
params:
spark:
image:
repository: mirantisworkloads/spark
tag: 2.1.0
... |
49c7b683a8dfe1b570ff8767d8eb18f8014d22d6 | .travis.yml | .travis.yml | language: python
sudo: required
dist: xenial
python:
- "2.7"
- "3.6"
- "3.7"
env:
- DJANGO_VERSION=1.8
- DJANGO_VERSION=1.10
- DJANGO_VERSION=1.11
- DJANGO_VERSION=2.0
- DJANGO_VERSION=2.1
- DJANGO_VERSION=2.2
before_install:
- curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/g... | language: python
sudo: required
dist: xenial
python:
- "2.7"
- "3.6"
- "3.7"
env:
- DJANGO_VERSION=1.8
- DJANGO_VERSION=1.10
- DJANGO_VERSION=1.11
- DJANGO_VERSION=2.0
- DJANGO_VERSION=2.1
- DJANGO_VERSION=2.2
before_install:
- curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/g... | Change to use poetry to run tests | Change to use poetry to run tests
| YAML | mit | catcombo/django-speedinfo,catcombo/django-speedinfo,catcombo/django-speedinfo | yaml | ## Code Before:
language: python
sudo: required
dist: xenial
python:
- "2.7"
- "3.6"
- "3.7"
env:
- DJANGO_VERSION=1.8
- DJANGO_VERSION=1.10
- DJANGO_VERSION=1.11
- DJANGO_VERSION=2.0
- DJANGO_VERSION=2.1
- DJANGO_VERSION=2.2
before_install:
- curl -sSL https://raw.githubusercontent.com/sdispater... |
a4e34a3d4493a0c853efa4123f3cdca4c9b6d690 | test/riak_moss_wm_key_test.erl | test/riak_moss_wm_key_test.erl | %% -------------------------------------------------------------------
%%
%% Copyright (c) 2007-2011 Basho Technologies, Inc. All Rights Reserved.
%%
%% -------------------------------------------------------------------
-module(riak_moss_wm_key_test).
-export([key_test_/0]).
-include("riak_moss.hrl").
-include_lib... | %% -------------------------------------------------------------------
%%
%% Copyright (c) 2007-2011 Basho Technologies, Inc. All Rights Reserved.
%%
%% -------------------------------------------------------------------
-module(riak_moss_wm_key_test).
-export([key_test_/0]).
-include("riak_moss.hrl").
-include_lib... | Add failing key resource test | Add failing key resource test
AZ870
Test currently fails because of a bad
match on get_object.
| Erlang | apache-2.0 | laurenrother/riak_cs,dragonfax/riak_cs,sdebnath/riak_cs,laurenrother/riak_cs,GabrielNicolasAvellaneda/riak_cs,yangchengjian/riak_cs,basho/riak_cs_lfs,sdebnath/riak_cs,GabrielNicolasAvellaneda/riak_cs,yangchengjian/riak_cs,yangchengjian/riak_cs,yangchengjian/riak_cs,basho/riak_cs,dragonfax/riak_cs,laurenrother/riak_cs,b... | erlang | ## Code Before:
%% -------------------------------------------------------------------
%%
%% Copyright (c) 2007-2011 Basho Technologies, Inc. All Rights Reserved.
%%
%% -------------------------------------------------------------------
-module(riak_moss_wm_key_test).
-export([key_test_/0]).
-include("riak_moss.hrl... |
7305d45c27003db740e1da07e50371e5a01b83f6 | src/app/loadout/known-values.ts | src/app/loadout/known-values.ts | import {
armor2PlugCategoryHashes,
armor2PlugCategoryHashesByName,
D2ArmorStatHashByName,
} from 'app/search/d2-known-values';
import { PlugCategoryHashes } from 'data/d2/generated-enums';
export const armorStatHashes = [
D2ArmorStatHashByName.intellect,
D2ArmorStatHashByName.discipline,
D2ArmorStatHashByN... | import {
armor2PlugCategoryHashes,
armor2PlugCategoryHashesByName,
D2ArmorStatHashByName,
} from 'app/search/d2-known-values';
import raidModPlugCategoryHashes from 'data/d2/raid-mod-plug-category-hashes.json';
export const armorStatHashes = [
D2ArmorStatHashByName.intellect,
D2ArmorStatHashByName.discipline... | Use generated raid plug category hashes. | Use generated raid plug category hashes.
| TypeScript | mit | delphiactual/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM,delphiactual/DIM,delphiactual/DIM,DestinyItemManager/DIM,delphiactual/DIM,DestinyItemManager/DIM | typescript | ## Code Before:
import {
armor2PlugCategoryHashes,
armor2PlugCategoryHashesByName,
D2ArmorStatHashByName,
} from 'app/search/d2-known-values';
import { PlugCategoryHashes } from 'data/d2/generated-enums';
export const armorStatHashes = [
D2ArmorStatHashByName.intellect,
D2ArmorStatHashByName.discipline,
D2... |
b4f3400fa2f6918adba977815140a3c6c14476b5 | app.json | app.json | {
"name": "Ackee",
"description": "Self-hosted, Node.js based analytics tool for those who care about privacy",
"keywords": [
"server",
"tracking",
"analytics"
],
"website": "https://ackee.electerious.com/",
"repository": "https://github.com/electerious/Ackee",
"env": {
"ACKEE_USERNAME": {... | {
"name": "Ackee",
"description": "Self-hosted, Node.js based analytics tool for those who care about privacy",
"keywords": [
"server",
"tracking",
"analytics"
],
"website": "https://ackee.electerious.com/",
"repository": "https://github.com/electerious/Ackee",
"env": {
"ACKEE_USERNAME": {... | Fix for "Deploy to Heroku" button | Fix for "Deploy to Heroku" button | JSON | mit | electerious/Ackee | json | ## Code Before:
{
"name": "Ackee",
"description": "Self-hosted, Node.js based analytics tool for those who care about privacy",
"keywords": [
"server",
"tracking",
"analytics"
],
"website": "https://ackee.electerious.com/",
"repository": "https://github.com/electerious/Ackee",
"env": {
"AC... |
c1bd75094ad8fb4b572089ecfd15332e8069c00f | docker-service/ecs-service.sls | docker-service/ecs-service.sls |
{% set service_list = [] %}
{% for service_name in pillar['services'] %}
{% if pillar['services'][service_name]['type'] | default('compose') == 'ecs' %}
{% do service_list.append(pillar['services'][service_name]) %}
{% endif %}
{% endfor %}
{{ service_list }}
|
{% for service_name in pillar['services'] %}
{% if pillar['services'][service_name]['type'] | default('compose') == 'ecs' %}
{% %}
{% endif %}
{% endfor %}
| Update ecs service placeholder file | Update ecs service placeholder file
| SaltStack | mit | ministryofjustice/opg-salt-formula,ministryofjustice/opg-salt-formula,ministryofjustice/opg-salt-formula | saltstack | ## Code Before:
{% set service_list = [] %}
{% for service_name in pillar['services'] %}
{% if pillar['services'][service_name]['type'] | default('compose') == 'ecs' %}
{% do service_list.append(pillar['services'][service_name]) %}
{% endif %}
{% endfor %}
{{ service_list }}
## Instruction:
Upda... |
fb7911854db5f2dbe2d3093608e2eaa4a41b308f | app/views/comment/_show_comments.html.erb | app/views/comment/_show_comments.html.erb | <%
comments = object.comments.sort_by(&:created_at).reverse
if limit
and_more = comments.length - limit
comments = comments[0..limit-1]
end
%>
<div class="row">
<div class="col-sm-8">
<%= content_tag(:h4, comments.empty? ? :"show_comments_no_comments_yet".t : :COMMENTS.t) %>
</div>
<div... | <%
comments = object.comments.sort_by(&:created_at).reverse
if limit
and_more = comments.length - limit
comments = comments[0..limit-1]
end
%>
<div class="row">
<div class="col-sm-12">
<%= content_tag(:h4, comments.empty? ? :"show_comments_no_comments_yet".t : :COMMENTS.t, style: "display: in... | Add comment link was hidden under images, took me about 5 seconds to find it, most users probably would take longer to find it. | Add comment link was hidden under images, took me about 5 seconds to find it, most users probably would take longer to find it.
| HTML+ERB | mit | pellaea/mushroom-observer,JoeCohen/mushroom-observer,raysuelzer/mushroom-observer,pellaea/mushroom-observer,MushroomObserver/mushroom-observer,raysuelzer/mushroom-observer,MushroomObserver/mushroom-observer,MushroomObserver/mushroom-observer,raysuelzer/mushroom-observer,JoeCohen/mushroom-observer,MushroomObserver/mushr... | html+erb | ## Code Before:
<%
comments = object.comments.sort_by(&:created_at).reverse
if limit
and_more = comments.length - limit
comments = comments[0..limit-1]
end
%>
<div class="row">
<div class="col-sm-8">
<%= content_tag(:h4, comments.empty? ? :"show_comments_no_comments_yet".t : :COMMENTS.t) %>... |
db674a1329e3d79ca5cf1b179817ee2e52684f18 | resources/config/local.php | resources/config/local.php | <?php
return function (CM_Config_Node $config) {
$config->services['s3export-filesystem-original'] = array(
'class' => 'CM_File_Filesystem_Factory',
'method' => array(
'name' => 'createFilesystem',
'arguments' => array(
'CM_File_Filesystem_Adapter_AwsS... | <?php
return function (CM_Config_Node $config) {
$awsBucket = '<bucket>';
$awsRegion = '<region>';
$awsKey = '<access-key>';
$awsSecret = '<secret-access-key>';
$config->services['s3export-filesystem-original'] = array(
'class' => 'CM_File_Filesystem_Factory',
'method' => array(
... | Make file easier to use | Make file easier to use
| PHP | mit | cargomedia/s3export_backup,cargomedia/s3export_backup | php | ## Code Before:
<?php
return function (CM_Config_Node $config) {
$config->services['s3export-filesystem-original'] = array(
'class' => 'CM_File_Filesystem_Factory',
'method' => array(
'name' => 'createFilesystem',
'arguments' => array(
'CM_File_Filesys... |
efef24c1bd717a5591593b835313a8c29a0ef5fd | pi-setup/pi-robot-join-wifi.sh | pi-setup/pi-robot-join-wifi.sh |
_IP=$(hostname -I) || true
SSID=$(sed -n -e '/ssid/s/"//g' -e '/ssid/s/ssid=//' \
< /etc/wpa_supplicant/wpa_supplicant.conf)
echo -n "Connecting to $SSID wifi network"
while [[ ! ("$_IP" == *10.10.*) ]]; do
echo -n "."
ifdown wlan0 2>&1 | logger
sleep 2
ifup wlan0 2>&1 | logger
sleep... |
LOOP=${1:-""}
_IP=$(hostname -I) || true
SSID=$(sed -n -e '/ssid/s/"//g' -e '/ssid/s/ssid=//' \
< /etc/wpa_supplicant/wpa_supplicant.conf)
WIFI_JOIN() {
echo -n "Connecting to $SSID wifi network"
while [[ ! ("$_IP" == *10.10.*) ]]; do
echo -n "."
ifdown wlan0 2>&1 | logger
... | Add ability to loop based on argument | Add ability to loop based on argument
| Shell | mit | mitmuseumstudio/RoboticLightBallet,mitmuseumstudio/RoboticLightBallet,mitmuseumstudio/RoboticLightBallet,mitmuseumstudio/RoboticLightBallet | shell | ## Code Before:
_IP=$(hostname -I) || true
SSID=$(sed -n -e '/ssid/s/"//g' -e '/ssid/s/ssid=//' \
< /etc/wpa_supplicant/wpa_supplicant.conf)
echo -n "Connecting to $SSID wifi network"
while [[ ! ("$_IP" == *10.10.*) ]]; do
echo -n "."
ifdown wlan0 2>&1 | logger
sleep 2
ifup wlan0 2>&1 | ... |
f6dfd51d6305b94541ce95be86877882c8d0201e | README.md | README.md |
+ Ratios - should be in the format of `x.xxx` to 3 decimal places (dp).
+ Times - should be expressed in Minutes with 2dp for seconds. `x.xx`
+ Percentages - should be in the format `xx.xx%` to 2dp.
### Calculating Percentages
round ( value / sum ) * 100 ) , 2 )
## View the definitons
[Click Here](https:/... |
+ Ratios - should be in the format of `x.xxx` to 3 decimal places (dp).
+ Times - should be expressed in minutes with 2dp for seconds `x.xx` for in-game references
- or for kick-off times and similar higher level times `24:MM:SS` of the timezone of the location in question.
+ Dates -should be in the ISO stand... | Add in date formats and clarify time | Add in date formats and clarify time | Markdown | unlicense | OnsideFC/Definitions | markdown | ## Code Before:
+ Ratios - should be in the format of `x.xxx` to 3 decimal places (dp).
+ Times - should be expressed in Minutes with 2dp for seconds. `x.xx`
+ Percentages - should be in the format `xx.xx%` to 2dp.
### Calculating Percentages
round ( value / sum ) * 100 ) , 2 )
## View the definitons
[Cli... |
51e9262ff273db870310453797dbeb48eefd4df7 | logcollector/__init__.py | logcollector/__init__.py | from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///../logcollector.db'
db = SQLAlchemy(app)
@app.route("/")
def hello():
return "Hello World!"
| from flask import Flask, request, jsonify
from flask.ext.sqlalchemy import SQLAlchemy
from .models import DataPoint
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///../logcollector.db'
db = SQLAlchemy(app)
@app.route("/new", methods=['POST'])
def collect():
new_data = DataPoint(request.f... | Implement save functionality with POST request | Implement save functionality with POST request
| Python | agpl-3.0 | kissgyorgy/log-collector | python | ## Code Before:
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///../logcollector.db'
db = SQLAlchemy(app)
@app.route("/")
def hello():
return "Hello World!"
## Instruction:
Implement save functionality with POST request... |
2c7ad30e91cf4ad8c4b02f6ceecdae0c4651b829 | config/initializers/parameters.rb | config/initializers/parameters.rb | GenieacsGui::Application.config.summary_parameters = YAML.load_file('config/summary_parameters.yml')
GenieacsGui::Application.config.index_parameters = YAML.load_file('config/index_parameters.yml')
GenieacsGui::Application.config.device_filters = {'Last inform' => 'summary.lastInform', 'Tag' => '_tags'}
GenieacsGui::A... | GenieacsGui::Application.config.summary_parameters = YAML.load_file('config/summary_parameters.yml')
GenieacsGui::Application.config.index_parameters = YAML.load_file('config/index_parameters.yml')
GenieacsGui::Application.config.device_filters = {'Last inform' => 'summary.lastInform', 'Tag' => '_tags'}
GenieacsGui::A... | Exclude objects from search filters. | Exclude objects from search filters.
| Ruby | mit | zaidka/genieacs-gui,zaidka/genieacs-gui,sonaht/genieacs-gui,akcoder/genieacs-gui,zaidka/genieacs-gui,sonaht/genieacs-gui,akcoder/genieacs-gui,akcoder/genieacs-gui,sonaht/genieacs-gui | ruby | ## Code Before:
GenieacsGui::Application.config.summary_parameters = YAML.load_file('config/summary_parameters.yml')
GenieacsGui::Application.config.index_parameters = YAML.load_file('config/index_parameters.yml')
GenieacsGui::Application.config.device_filters = {'Last inform' => 'summary.lastInform', 'Tag' => '_tags'... |
90f733c5dcb4e4a51a9ef6d7cc70e754b63415c7 | test/markup/haskell/infix.expect.txt | test/markup/haskell/infix.expect.txt | <span class="hljs-infix"><span class="hljs-keyword">infix</span> <span class="hljs-number">3</span> `foo`</span>
<span class="hljs-infix"><span class="hljs-keyword">infixl</span> <span class="hljs-number">6</span> `bar`</span>
<span class="hljs-infix"><span class="hljs-keyword">infixr</span> <span class="hljs-number">9... | <span class="hljs-keyword">infix</span> <span class="hljs-number">3</span> `foo`
<span class="hljs-keyword">infixl</span> <span class="hljs-number">6</span> `bar`
<span class="hljs-keyword">infixr</span> <span class="hljs-number">9</span> `baz`
| Fix haskell infix markup test. | Fix haskell infix markup test.
| Text | bsd-3-clause | palmin/highlight.js,isagalaev/highlight.js,palmin/highlight.js,dbkaplun/highlight.js,VoldemarLeGrand/highlight.js,aurusov/highlight.js,palmin/highlight.js,tenbits/highlight.js,StanislawSwierc/highlight.js,aurusov/highlight.js,bluepichu/highlight.js,Sannis/highlight.js,isagalaev/highlight.js,carlokok/highlight.js,Sannis... | text | ## Code Before:
<span class="hljs-infix"><span class="hljs-keyword">infix</span> <span class="hljs-number">3</span> `foo`</span>
<span class="hljs-infix"><span class="hljs-keyword">infixl</span> <span class="hljs-number">6</span> `bar`</span>
<span class="hljs-infix"><span class="hljs-keyword">infixr</span> <span class... |
d1a893514092a2495fcd2b14365b9b014fd39f59 | calaccess_processed/models/__init__.py | calaccess_processed/models/__init__.py | from calaccess_processed.models.campaign.entities import (
Candidate,
CandidateCommittee,
)
from calaccess_processed.models.campaign.filings import (
Form460,
Form460Version,
Schedule497,
Schedule497Version,
)
from calaccess_processed.models.campaign.contributions import (
MonetaryContributi... | from calaccess_processed.models.campaign.entities import (
Candidate,
CandidateCommittee,
)
from calaccess_processed.models.campaign.filings import (
Form460,
Form460Version,
Schedule497,
Schedule497Version,
)
from calaccess_processed.models.campaign.contributions import (
MonetaryContributi... | Add missing models to __all__ list | Add missing models to __all__ list
| Python | mit | california-civic-data-coalition/django-calaccess-processed-data,california-civic-data-coalition/django-calaccess-processed-data | python | ## Code Before:
from calaccess_processed.models.campaign.entities import (
Candidate,
CandidateCommittee,
)
from calaccess_processed.models.campaign.filings import (
Form460,
Form460Version,
Schedule497,
Schedule497Version,
)
from calaccess_processed.models.campaign.contributions import (
Mo... |
f48f0042fb3f96c4ca0cce05816efdb16d032e8c | IxD/features.txt | IxD/features.txt | "Baby" entity properties
* First Name
* Last Name
* Delivery (date)
* Birthday (date)
* Born (bool) [consider using "nil" birthday instead]
* Sex
* Picture
* Dad
* Mom
* Godparent(s)
* Siblings
* Special event (baptism, Brit milah etc, birthday party)
* Nameday
* Babyshower
* Gifts
* Notes (free text)
"Gift" enti... | "Baby" entity properties
* First Name
* Last Name
* Delivery (date)
* Birthday (date)
* Born (bool) [consider using "nil" birthday instead]
* Sex
* Picture
* Dad
* Mom
* Godparent(s)
* Siblings
* Special event (baptism, Brit milah etc, birthday party)
* Nameday
* Babyshower
* Gifts
* Notes (free text)
"Gift" enti... | Add a reminder for a baby pictures related feature | Add a reminder for a baby pictures related feature
| Text | mit | phi161/Babies,phi161/Babies | text | ## Code Before:
"Baby" entity properties
* First Name
* Last Name
* Delivery (date)
* Birthday (date)
* Born (bool) [consider using "nil" birthday instead]
* Sex
* Picture
* Dad
* Mom
* Godparent(s)
* Siblings
* Special event (baptism, Brit milah etc, birthday party)
* Nameday
* Babyshower
* Gifts
* Notes (free tex... |
b28dd3fbd085d6b58b18e846f9b18fbce02b9fb5 | javascripts/apps/github.js | javascripts/apps/github.js | (function() { define(['zepto'], function($) {
var gistCaching = {};
var renderGist = function(ele, gist) {
var css = "https://gist.github.com" + gist.stylesheet;
if($('link[href="' + css + '"]').length === 0){
$('head').prepend('<link rel="stylesheet" type="text/css" media="screen" href="' + css + '... | (function() { define(['zepto'], function($) {
var gistCaching = {};
var renderGist = function(ele, gist) {
var css = "https://gist.github.com" + gist.stylesheet;
if($('link[href="' + css + '"]').length === 0){
$('head').prepend('<link rel="stylesheet" type="text/css" media="screen" href="' + css + '... | Use zepto got get gist, without own ugly jsonp | Use zepto got get gist, without own ugly jsonp
| JavaScript | bsd-3-clause | vecio/MeT,vecio/MeT | javascript | ## Code Before:
(function() { define(['zepto'], function($) {
var gistCaching = {};
var renderGist = function(ele, gist) {
var css = "https://gist.github.com" + gist.stylesheet;
if($('link[href="' + css + '"]').length === 0){
$('head').prepend('<link rel="stylesheet" type="text/css" media="screen" h... |
1f4712eca3960b4489e6872d7261b1fc17eccf59 | src/main/java/com/ichorcommunity/latch/enums/LockType.java | src/main/java/com/ichorcommunity/latch/enums/LockType.java | package com.ichorcommunity.latch.enums;
public enum LockType {
/*
* Accessible by everyone
*/
PUBLIC,
/*
* Accessible by the group
*/
GUILD,
/*
* Requires a password every time to use
*/
PASSWORD_ALWAYS,
/*
* Requires a password the first time a player ... | package com.ichorcommunity.latch.enums;
public enum LockType {
/*
* Accessible by everyone
*/
PUBLIC,
/*
* Accessible by the group
*/
GUILD,
/*
* Requires a password every time to use
*/
PASSWORD_ALWAYS,
/*
* Requires a password the first time a player ... | Disable donation lock for now | Disable donation lock for now
| Java | mit | IchorPowered/Latch | java | ## Code Before:
package com.ichorcommunity.latch.enums;
public enum LockType {
/*
* Accessible by everyone
*/
PUBLIC,
/*
* Accessible by the group
*/
GUILD,
/*
* Requires a password every time to use
*/
PASSWORD_ALWAYS,
/*
* Requires a password the firs... |
6149075789d1034a7adab0b6c31ccdebe32afd4a | user_aws_edit_request_submit.php | user_aws_edit_request_submit.php | <?php
include_once 'header.php';
include_once 'database.php';
$_POST[ 'speaker' ] = $_SESSION[ 'user' ];
$res = insertIntoTable( 'aws_requests'
, array( 'speaker', 'title', 'abstract', 'supervisor_1', 'supervisor_2'
, 'tcm_member_1', 'tcm_member_2', 'tcm_member_3', 'tcm_member_4'
, 'date', ... | <?php
include_once 'header.php';
include_once 'database.php';
$_POST[ 'speaker' ] = $_SESSION[ 'user' ];
$res = insertIntoTable( 'aws_requests'
, array( 'speaker', 'title', 'abstract', 'supervisor_1', 'supervisor_2'
, 'tcm_member_1', 'tcm_member_2', 'tcm_member_3', 'tcm_member_4'
, 'date', ... | Make sure user can also change is_presynopsis_seminar. | Make sure user can also change is_presynopsis_seminar.
| PHP | mit | dilawar/ncbs-hippo,dilawar/ncbs-minion,dilawar/ncbs-hippo,dilawar/ncbs-minion,dilawar/ncbs-minion,dilawar/ncbs-minion,dilawar/ncbs-hippo,dilawar/ncbs-hippo,dilawar/ncbs-minion,dilawar/ncbs-hippo | php | ## Code Before:
<?php
include_once 'header.php';
include_once 'database.php';
$_POST[ 'speaker' ] = $_SESSION[ 'user' ];
$res = insertIntoTable( 'aws_requests'
, array( 'speaker', 'title', 'abstract', 'supervisor_1', 'supervisor_2'
, 'tcm_member_1', 'tcm_member_2', 'tcm_member_3', 'tcm_member_4'
... |
2a6f141fd0f32614a2e4e9444e835ac46a442406 | .travis.yml | .travis.yml | language: node_js
node_js:
- "0.12"
script:
- "npm test"
- "npm run lint"
before_script:
- "export CHROME_BIN=chromium-browser"
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
after_success:
- "npm run coveralls"
- "rm -rf coverage"
| language: node_js
node_js:
- "stable"
- "4.2"
- "0.12"
- "0.10"
script:
- "npm test"
- "npm run lint"
before_script:
- "export CHROME_BIN=chromium-browser"
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
after_success:
- "npm run coveralls"
... | Test various version's Node.js in Travis CI | Test various version's Node.js in Travis CI
| YAML | mit | ybiquitous/backbone.deepmodel,ybiquitous/backbone.deepmodel | yaml | ## Code Before:
language: node_js
node_js:
- "0.12"
script:
- "npm test"
- "npm run lint"
before_script:
- "export CHROME_BIN=chromium-browser"
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
after_success:
- "npm run coveralls"
- "rm -rf coverage... |
ba5a470e4d4bb3525c2510d7855469353e54f186 | framework/scripts-combined/start-combined.sh | framework/scripts-combined/start-combined.sh |
if [[ $OSTYPE == "cygwin" ]] ; then
OPTIONSFILE="jetty-options.env.win"
else
OPTIONSFILE="jetty-options.env.unix"
fi
#Make sure environment variables are properly set
if [ -e "$JAVA_HOME"/bin/java ] ; then
if [ -f ./properties.xml ] ; then
# Build the global options
OPTIONS=$(cat "$OPTIONS... |
if [[ $OSTYPE == "cygwin" ]] ; then
OPTIONSFILE="combined-options.env.win"
else
OPTIONSFILE="combined-options.env.unix"
fi
#Make sure environment variables are properly set
if [ -e "$JAVA_HOME"/bin/java ] ; then
if [ -f ./properties.xml ] ; then
# Build the global options
OPTIONS=$(cat "$O... | Debug linux scripts -- part of CONNECTORS-862. | Debug linux scripts -- part of CONNECTORS-862.
git-svn-id: 4d319e5ed894aec93a653bc5b2159f21e28d8370@1559508 13f79535-47bb-0310-9956-ffa450edef68
| Shell | apache-2.0 | gladyscarrizales/manifoldcf,gladyscarrizales/manifoldcf,kishorejangid/manifoldcf,cogfor/mcf-cogfor,cogfor/mcf-cogfor,gladyscarrizales/manifoldcf,cogfor/mcf-cogfor,apache/manifoldcf,kishorejangid/manifoldcf,cogfor/mcf-cogfor,kishorejangid/manifoldcf,kishorejangid/manifoldcf,cogfor/mcf-cogfor,apache/manifoldcf,gladyscarr... | shell | ## Code Before:
if [[ $OSTYPE == "cygwin" ]] ; then
OPTIONSFILE="jetty-options.env.win"
else
OPTIONSFILE="jetty-options.env.unix"
fi
#Make sure environment variables are properly set
if [ -e "$JAVA_HOME"/bin/java ] ; then
if [ -f ./properties.xml ] ; then
# Build the global options
OPTIONS... |
d06474d106a4309e92f3489d2177743d4db95e45 | install/deploy.sh | install/deploy.sh | sudo apt-get -y remove mysql-server mysql-server-5.5 lighttpd php5-cgi php5-mysql
sudo apt-get -y remove bind9 bind9utils bind9-doc
sudo apt-get -y autoremove
sudo apt-get autoclean
sudo apt-get -y install lighttpd php5-cgi php5-mysql
#
# Bind configuration
#
sudo apt-get -y install bind9 bind9utils bind9-doc
sudo echo... |
PACKAGES="mysql-server-5.5 mysql-client lighttpd lighttpd-mod-mysql-vhost php5-cgi php5-mysql"
sudo apt-get -y remove $PACKAGES
sudo apt-get -y autoremove
sudo apt-get -y autoclean
sudo apt-get -y install $PACKAGES
#
# Bind configuration
#
# sudo bash bind9/deploy.sh
sudo lighttpd-enable-mod fastcgi
sudo lighttpd-e... | Disable bind9 add MySQL vhosts | Disable bind9 add MySQL vhosts
| Shell | apache-2.0 | zahari/99h.info,zahari/99h.info | shell | ## Code Before:
sudo apt-get -y remove mysql-server mysql-server-5.5 lighttpd php5-cgi php5-mysql
sudo apt-get -y remove bind9 bind9utils bind9-doc
sudo apt-get -y autoremove
sudo apt-get autoclean
sudo apt-get -y install lighttpd php5-cgi php5-mysql
#
# Bind configuration
#
sudo apt-get -y install bind9 bind9utils bin... |
66075f6de7de65e8b38d0b27a5a358cfddbbd2ee | spec/fixtures/dummy_rails_app/application.rb | spec/fixtures/dummy_rails_app/application.rb | Rails = Class.new do
require "#{File.dirname(__FILE__)}/dummy_app/fake"
def self.root
Pathname.new(File.dirname(__FILE__))
end
def self.env
'development'
end
end
| Rails = Class.new do
require_relative 'fake'
def self.root
Pathname.new(File.dirname(__FILE__))
end
def self.env
'development'
end
end
| Fix test which did not work in all cases. | Fix test which did not work in all cases. | Ruby | mit | quandl/quandl-config | ruby | ## Code Before:
Rails = Class.new do
require "#{File.dirname(__FILE__)}/dummy_app/fake"
def self.root
Pathname.new(File.dirname(__FILE__))
end
def self.env
'development'
end
end
## Instruction:
Fix test which did not work in all cases.
## Code After:
Rails = Class.new do
require_relative 'fake'
... |
1b1022d4621484fdf56838d9a004e8d47cbd6483 | .travis.yml | .travis.yml | language: go
go_import_path: github.com/99designs/keyring
install:
- go get -u github.com/kardianos/govendor
- govendor status
go:
- "1.8.x"
- "1.9.x"
- "1.10.x"
- "master"
os:
- linux
- osx
osx_image: xcode7.3
| language: go
go:
- "1.10.x"
- "1.11.x"
os:
- linux
- osx
before_install:
- go get -u github.com/kardianos/govendor
script:
- govendor status
- diff -u <(echo -n) <(gofmt -d $(git ls-files '*.go' | grep -v ^vendor/))
- go vet ./...
- go test -race ./...
| Remove CI testing for go 1.8, 1.9. Add lints and tests | Remove CI testing for go 1.8, 1.9. Add lints and tests
| YAML | mit | 99designs/keyring,99designs/keyring | yaml | ## Code Before:
language: go
go_import_path: github.com/99designs/keyring
install:
- go get -u github.com/kardianos/govendor
- govendor status
go:
- "1.8.x"
- "1.9.x"
- "1.10.x"
- "master"
os:
- linux
- osx
osx_image: xcode7.3
## Instruction:
Remove CI testing for go 1.8, 1.9. Add lints and tests
... |
effd24c64c2d59195b2d688bd9b6032f1dadaabb | app.json | app.json | {
"name": "Tetris clone in Elm",
"repository": "https://github.com/chendrix/elm-tetris",
"env": {
"BUILDPACK_URL": "https://github.com/srid/heroku-buildpack-elm.git",
"ELM_COMPILE": "make clean compile",
"ELM_STATIC_DIR": "."
}
} | {
"name": "Tetris clone in Elm",
"repository": "https://github.com/chendrix/elm-tetris",
"env": {
"BUILDPACK_URL": "https://github.com/srid/heroku-buildpack-elm.git",
"ELM_COMPILE": "make",
"ELM_STATIC_DIR": "."
}
} | Use base make for heroku | Use base make for heroku
| JSON | mit | chendrix/elm-tetris | json | ## Code Before:
{
"name": "Tetris clone in Elm",
"repository": "https://github.com/chendrix/elm-tetris",
"env": {
"BUILDPACK_URL": "https://github.com/srid/heroku-buildpack-elm.git",
"ELM_COMPILE": "make clean compile",
"ELM_STATIC_DIR": "."
}
}
## Instruction:
Use base make for ... |
143e2a2b82cec2cd777822748fd9f0ec0aac1d3a | src/test/scala/doc/jockey/horse/StringsInPatternMatchingSpec.scala | src/test/scala/doc/jockey/horse/StringsInPatternMatchingSpec.scala | package doc.jockey.horse
import org.scalatest.WordSpec
class StringsInPatternMatchingSpec extends WordSpec {
implicit class MySContext(val sc: StringContext) {
// this will not work, because the compiler thinks that s is special
case class s(args: Any*) {
def unapplySeq(s: String): Option[Seq[String]... | package doc.jockey.horse
import org.scalatest.WordSpec
class StringsInPatternMatchingSpec extends WordSpec {
implicit class PatternMatchableUrlAdapter(val sc: StringContext) {
val url = sc.parts.mkString("(.+)").r
}
"We can pattern match in interpolated Strings" in {
def matcher: PartialFunction[Strin... | Add NanoHTTPD to play with | Add NanoHTTPD to play with
| Scala | mit | agmenc/doc-jockey | scala | ## Code Before:
package doc.jockey.horse
import org.scalatest.WordSpec
class StringsInPatternMatchingSpec extends WordSpec {
implicit class MySContext(val sc: StringContext) {
// this will not work, because the compiler thinks that s is special
case class s(args: Any*) {
def unapplySeq(s: String): Op... |
d60db37ad3e1899cbad61b1edcff03a59e7ad8ff | common/perllib/share/b2bua/services/freeswitch/conf/dialplan/template/redirect-with-media.xml | common/perllib/share/b2bua/services/freeswitch/conf/dialplan/template/redirect-with-media.xml | <?xml version="1.0" encoding="utf-8"?>
<include>
<context name="ingress-$${profile_name}">
<extension name="unloop">
<condition field="${unroll_loops}" expression="^true$"/>
<condition field="${sip_looped_call}" expression="^true$">
<action application="deflect" data="${destination_number}"/>... | <?xml version="1.0" encoding="utf-8"?>
<include>
<context name="ingress-$${profile_name}">
<extension name="unloop">
<condition field="${unroll_loops}" expression="^true$"/>
<condition field="${sip_looped_call}" expression="^true$">
<action application="deflect" data="${destination_number}"/>... | Work around lack of ringback issue. When receiving a 180 from the far-end, bridge would stop the ringback tone. | Work around lack of ringback issue. When receiving a 180 from the far-end, bridge would stop the ringback tone.
| XML | agpl-3.0 | shimaore/ccnq2.0,shimaore/ccnq2.0,shimaore/ccnq2.0 | xml | ## Code Before:
<?xml version="1.0" encoding="utf-8"?>
<include>
<context name="ingress-$${profile_name}">
<extension name="unloop">
<condition field="${unroll_loops}" expression="^true$"/>
<condition field="${sip_looped_call}" expression="^true$">
<action application="deflect" data="${destin... |
ab983e0a806d09728b08aff17c165450c4ec5de5 | setup.cfg | setup.cfg | [metadata]
name = concurrently
# version = < see setup.py >
description = Library helps easy write concurrent executed code blocks
long_description = file: README.rst
url = https://github.com/sirkonst/concurrently
author = Konstantin Enchant
author-email = sirkonst@gmail.com
maintainer = Konstantin Enchant
maintainer_e... | [metadata]
name = concurrently
# version = < see setup.py >
description = Library helps easy write concurrent executed code blocks
long_description = file: README.rst
url = https://github.com/sirkonst/concurrently
author = Konstantin Enchant
author-email = sirkonst@gmail.com
maintainer = Konstantin Enchant
maintainer_e... | Use docutils as implied dependence from Sphinx | Use docutils as implied dependence from Sphinx
| INI | mit | sirkonst/concurrently | ini | ## Code Before:
[metadata]
name = concurrently
# version = < see setup.py >
description = Library helps easy write concurrent executed code blocks
long_description = file: README.rst
url = https://github.com/sirkonst/concurrently
author = Konstantin Enchant
author-email = sirkonst@gmail.com
maintainer = Konstantin Ench... |
efa9efed5b1ea1aa1a9fd76ce496efba5a5c07e9 | spec/spec_helper.rb | spec/spec_helper.rb | require 'erb_helper'
require 'bundler/setup'
require 'vcloud/net_launcher'
| require 'erb_helper'
require 'bundler/setup'
require 'vcloud/net_launcher'
RSpec.configure do |config|
config.expect_with :rspec do |c|
c.syntax = :expect
end
end
| Disable `should` syntax in Rspec | Disable `should` syntax in Rspec
`should` syntax is deprecated as of Rspec version 3.0 and the previous
commit converts all of our tests to use `expect` for consistency.
To prevent regressions, this change disables `should` syntax for this
gem.
| Ruby | mit | gds-operations/vcloud-net_launcher,gds-operations/vcloud-net_launcher,gds-operations/vcloud-net_launcher | ruby | ## Code Before:
require 'erb_helper'
require 'bundler/setup'
require 'vcloud/net_launcher'
## Instruction:
Disable `should` syntax in Rspec
`should` syntax is deprecated as of Rspec version 3.0 and the previous
commit converts all of our tests to use `expect` for consistency.
To prevent regressions, this change disa... |
b28caec8eb1c88b130e779ee7cf615f88b54332f | src/js/utils/ReactSVG.js | src/js/utils/ReactSVG.js | var DOMProperty = require('react/lib/DOMProperty');
var svgAttrs = ['dominant-baseline', 'shape-rendering', 'mask'];
// hack for getting react to render svg attributes
DOMProperty.injection.injectDOMPropertyConfig({
isCustomAttribute: function (attribute) {
return svgAttrs.includes(attribute);
}
});
| var DOMProperty = require('react/lib/DOMProperty');
var svgAttrs = ['dominant-baseline', 'shape-rendering', 'mask'];
// hack for getting react to render svg attributes
DOMProperty.injection.injectDOMPropertyConfig({
DOMAttributeNames: {
fillRule: 'fill-rule'
},
isCustomAttribute: function (attribute) {
r... | Transform fillRule attribute to fill-rule | Transform fillRule attribute to fill-rule
| JavaScript | apache-2.0 | dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui | javascript | ## Code Before:
var DOMProperty = require('react/lib/DOMProperty');
var svgAttrs = ['dominant-baseline', 'shape-rendering', 'mask'];
// hack for getting react to render svg attributes
DOMProperty.injection.injectDOMPropertyConfig({
isCustomAttribute: function (attribute) {
return svgAttrs.includes(attribute);
... |
ea4acb3314fe282fcfac31f36f5653c81806d2f7 | app/services/publisher_domain_normalizer.rb | app/services/publisher_domain_normalizer.rb | class PublisherDomainNormalizer < BaseApiClient
attr_reader :domain
def initialize(domain:)
# normalize domain by stripping off the protocol, it it exists,
# and checking if it parses as an http URL
host_and_path = domain.split(/:\/\//).last
URI.parse("http://#{host_and_path}")
@domain = host_a... | class PublisherDomainNormalizer < BaseApiClient
attr_reader :domain
def initialize(domain:)
# normalize domain by stripping off the protocol, it it exists,
# and checking if it parses as an http URL
host_and_path = domain.split(/:\/\//).last
URI.parse("http://#{host_and_path}")
@domain = host_a... | Improve offline mode of PublisherDomainNormalizer | Improve offline mode of PublisherDomainNormalizer
| Ruby | mpl-2.0 | dgeb/publishers,brave/publishers,dgeb/publishers,dgeb/publishers,brave/publishers,brave/publishers | ruby | ## Code Before:
class PublisherDomainNormalizer < BaseApiClient
attr_reader :domain
def initialize(domain:)
# normalize domain by stripping off the protocol, it it exists,
# and checking if it parses as an http URL
host_and_path = domain.split(/:\/\//).last
URI.parse("http://#{host_and_path}")
... |
2138f9c64d4b02828318e57b69f4b20f16ed34e3 | attributes/default.rb | attributes/default.rb | default['boulder']['config']['boulder-config']['va']['portConfig']['httpPort'] = 80
default['boulder']['config']['boulder-config']['va']['portConfig']['httpsPort'] = 443
default['boulder']['config']['boulder-config']['va']['portConfig']['tlsPort'] = 443
default['boulder']['config']['boulder-config']['syslog']['network'... | default['boulder']['config']['boulder-config']['va']['portConfig']['httpPort'] = 80
default['boulder']['config']['boulder-config']['va']['portConfig']['httpsPort'] = 443
default['boulder']['config']['boulder-config']['va']['portConfig']['tlsPort'] = 443
default['boulder']['config']['boulder-config']['syslog']['network'... | Remove personal customization from attributes. | Remove personal customization from attributes.
| Ruby | mit | patcon/chef-letsencrypt-boulder-server | ruby | ## Code Before:
default['boulder']['config']['boulder-config']['va']['portConfig']['httpPort'] = 80
default['boulder']['config']['boulder-config']['va']['portConfig']['httpsPort'] = 443
default['boulder']['config']['boulder-config']['va']['portConfig']['tlsPort'] = 443
default['boulder']['config']['boulder-config']['sy... |
187b21e0c70cd78625ca8eaf1db16a57148f1948 | db/migration.sql | db/migration.sql | -- 2015-11-27
alter table bookmarks add column notes text;
| -- 2015-11-27
ALTER TABLE "bookmarks" ADD COLUMN `notes` TEXT;
| Change case of SQL statement to be more SQLey | Change case of SQL statement to be more SQLey
| SQL | apache-2.0 | nobbyknox/malachite,nobbyknox/malachite | sql | ## Code Before:
-- 2015-11-27
alter table bookmarks add column notes text;
## Instruction:
Change case of SQL statement to be more SQLey
## Code After:
-- 2015-11-27
ALTER TABLE "bookmarks" ADD COLUMN `notes` TEXT;
|
61462a942bf814aa4458b100344af6d80e3230e7 | providers/rule.rb | providers/rule.rb | class Chef::Provider::UlimitRule < Chef::Provider
def load_current_resource
new_resource.domain new_resource.domain.domain_name if new_resource.domain.is_a?(Chef::Resource)
node.run_state[:ulimit] ||= Mash.new
node.run_state[:ulimit][new_resource.domain] ||= Mash.new
end
action :create do # ~FC017
... | class Chef::Provider::UlimitRule < Chef::Provider
def load_current_resource
new_resource.domain new_resource.domain.domain_name if new_resource.domain.is_a?(Chef::Resource)
node.run_state[:ulimit] ||= Mash.new
node.run_state[:ulimit][new_resource.domain] ||= Mash.new
end
use_inline_resources
actio... | Fix undefined method action for Chef::Provider::UlimitRule:Class | Fix undefined method action for Chef::Provider::UlimitRule:Class
| Ruby | apache-2.0 | bmhatfield/chef-ulimit,bmhatfield/chef-ulimit | ruby | ## Code Before:
class Chef::Provider::UlimitRule < Chef::Provider
def load_current_resource
new_resource.domain new_resource.domain.domain_name if new_resource.domain.is_a?(Chef::Resource)
node.run_state[:ulimit] ||= Mash.new
node.run_state[:ulimit][new_resource.domain] ||= Mash.new
end
action :creat... |
1d6670165dd74084813b38032cfddb6d33cd9d7a | xdc-plugin/tests/compare_output_json.py | xdc-plugin/tests/compare_output_json.py |
import sys
import json
parameters = ["IOSTANDARD", "DRIVE", "SLEW", "IN_TERM"]
def read_cells(json_file):
with open(json_file) as f:
data = json.load(f)
f.close()
cells = data['modules']['top']['cells']
cells_parameters = dict()
for cell, opts in cells.items():
attributes = opts['... |
import sys
import json
import argparse
parameters = ["IOSTANDARD", "DRIVE", "SLEW", "IN_TERM"]
def read_cells(json_file):
with open(json_file) as f:
data = json.load(f)
f.close()
cells = data['modules']['top']['cells']
cells_parameters = dict()
for cell, opts in cells.items():
att... | Refactor test output comparison script | XDC: Refactor test output comparison script
Signed-off-by: Tomasz Michalak <a2fdaa543b4cc5e3d6cd8672ec412c0eb393b86e@antmicro.com>
| Python | apache-2.0 | SymbiFlow/yosys-f4pga-plugins,SymbiFlow/yosys-f4pga-plugins,chipsalliance/yosys-f4pga-plugins,SymbiFlow/yosys-f4pga-plugins,chipsalliance/yosys-f4pga-plugins,SymbiFlow/yosys-symbiflow-plugins,antmicro/yosys-symbiflow-plugins,antmicro/yosys-symbiflow-plugins,SymbiFlow/yosys-symbiflow-plugins,antmicro/yosys-symbiflow-plu... | python | ## Code Before:
import sys
import json
parameters = ["IOSTANDARD", "DRIVE", "SLEW", "IN_TERM"]
def read_cells(json_file):
with open(json_file) as f:
data = json.load(f)
f.close()
cells = data['modules']['top']['cells']
cells_parameters = dict()
for cell, opts in cells.items():
att... |
36cac11960be6177aa6031dad621a749971a327e | spec/hive_spec.rb | spec/hive_spec.rb | require 'spec_helper'
describe 'hadoop::hive' do
context 'on Centos 6.4 x86_64' do
let(:chef_run) do
ChefSpec::Runner.new(platform: 'centos', version: 6.4) do |node|
node.automatic['domain'] = 'example.com'
stub_command('update-alternatives --display hadoop-conf | grep best | awk \'{print $... | require 'spec_helper'
describe 'hadoop::hive' do
context 'on Centos 6.4 x86_64' do
let(:chef_run) do
ChefSpec::Runner.new(platform: 'centos', version: 6.4) do |node|
node.automatic['domain'] = 'example.com'
node.default['hive']['hive_site']['hive.exec.local.scratchdir'] = '/tmp'
stu... | Add tests for mysql-connector-java and postgresql-jdbc packages | Add tests for mysql-connector-java and postgresql-jdbc packages
ChefSpec Coverage report generated...
Total Resources: 106
Touched Resources: 85
Touch Coverage: 80.19%
| Ruby | apache-2.0 | caskdata/hadoop_cookbook,caskdata/hadoop_cookbook,cdapio/hadoop_cookbook,cdapio/hadoop_cookbook,cdapio/hadoop_cookbook,caskdata/hadoop_cookbook | ruby | ## Code Before:
require 'spec_helper'
describe 'hadoop::hive' do
context 'on Centos 6.4 x86_64' do
let(:chef_run) do
ChefSpec::Runner.new(platform: 'centos', version: 6.4) do |node|
node.automatic['domain'] = 'example.com'
stub_command('update-alternatives --display hadoop-conf | grep best ... |
5319705cccafc8ed3a12cb39f1fb3a07159b115c | packages/rendering/addon/helpers/cs-field-type.js | packages/rendering/addon/helpers/cs-field-type.js | import Ember from 'ember';
export function fieldType(content, fieldName) {
if (!content) { return; }
let meta;
try {
meta = content.constructor.metaForProperty(fieldName);
} catch (err) {
return;
}
// meta.options.fieldType is our convention for annotating
// models. meta.type is the name of th... | import { camelize } from '@ember/string';
import Ember from 'ember';
export function fieldType(content, fieldName) {
if (!content) { return; }
let meta;
fieldName = camelize(fieldName);
try {
meta = content.constructor.metaForProperty(fieldName);
} catch (err) {
return;
}
// meta.options.field... | Fix field editors for names that have dashes | Fix field editors for names that have dashes
| JavaScript | mit | cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack | javascript | ## Code Before:
import Ember from 'ember';
export function fieldType(content, fieldName) {
if (!content) { return; }
let meta;
try {
meta = content.constructor.metaForProperty(fieldName);
} catch (err) {
return;
}
// meta.options.fieldType is our convention for annotating
// models. meta.type i... |
c6ad36326a792b1c41f531f2b83fa438d2dc98de | src/components/publishing/embed.tsx | src/components/publishing/embed.tsx | import * as React from "react"
import styled, { StyledFunction } from "styled-components"
interface EmbedProps {
section: any
}
const Embed: React.SFC<EmbedProps> = props => {
const { url, height, mobile_height } = props.section
return <IFrame src={url} scrolling="no" frameBorder="0" height={height} mobileHeigh... | import * as React from "react"
import styled, { StyledFunction } from "styled-components"
import { pMedia } from "../helpers"
interface EmbedProps {
section: any
}
const Embed: React.SFC<EmbedProps> = props => {
const { url, height, mobile_height } = props.section
return <IFrame src={url} scrolling="no" frameBo... | Fix query and remove duplicate prop | Fix query and remove duplicate prop
| TypeScript | mit | artsy/reaction,artsy/reaction-force,xtina-starr/reaction,xtina-starr/reaction,xtina-starr/reaction,craigspaeth/reaction,craigspaeth/reaction,artsy/reaction,artsy/reaction,artsy/reaction-force,craigspaeth/reaction,xtina-starr/reaction | typescript | ## Code Before:
import * as React from "react"
import styled, { StyledFunction } from "styled-components"
interface EmbedProps {
section: any
}
const Embed: React.SFC<EmbedProps> = props => {
const { url, height, mobile_height } = props.section
return <IFrame src={url} scrolling="no" frameBorder="0" height={hei... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.