commit stringlengths 40 40 | old_file stringlengths 4 184 | new_file stringlengths 4 184 | old_contents stringlengths 1 3.6k | new_contents stringlengths 5 3.38k | subject stringlengths 15 778 | message stringlengths 16 6.74k | lang stringclasses 201
values | license stringclasses 13
values | repos stringlengths 6 116k | config stringclasses 201
values | content stringlengths 137 7.24k | diff stringlengths 26 5.55k | diff_length int64 1 123 | relative_diff_length float64 0.01 89 | n_lines_added int64 0 108 | n_lines_deleted int64 0 106 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
59bef6de7aca8e6f72c02b056f5f6bb9f5111afd | src/scss/_webcam.scss | src/scss/_webcam.scss | // @import '_variables.scss';
// @import '_utils.scss';
// @import '_animation.scss';
// @import '_common.scss';
.UppyWebcam-container {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.UppyWebcam-videoContainer {
width: 70%;
height: 80%;
position: relative;
... | // @import '_variables.scss';
// @import '_utils.scss';
// @import '_animation.scss';
// @import '_common.scss';
.UppyWebcam-container {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.UppyWebcam-videoContainer {
height: 100%;
display: flex;
justify-content: ... | Make the webcam video fill the available space as much as possible | Make the webcam video fill the available space as much as possible
| SCSS | mit | transloadit/uppy,transloadit/uppy,transloadit/uppy,varung-optimus/uppy,varung-optimus/uppy,transloadit/uppy,varung-optimus/uppy | scss | ## Code Before:
// @import '_variables.scss';
// @import '_utils.scss';
// @import '_animation.scss';
// @import '_common.scss';
.UppyWebcam-container {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.UppyWebcam-videoContainer {
width: 70%;
height: 80%;
posit... | // @import '_variables.scss';
// @import '_utils.scss';
// @import '_animation.scss';
// @import '_common.scss';
.UppyWebcam-container {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.UppyWebcam-videoContainer {
- width: 70%;
- heig... | 16 | 0.355556 | 6 | 10 |
036080221477ff7cd909d0b5091a319476ad9d67 | lib/converter_test.go | lib/converter_test.go | package fm_test
import (
"go/ast"
"testing"
"github.com/enocom/fm/lib"
)
func TestConvertBuildsAddsSpyToTypeSpecName(t *testing.T) {
converter := &fm.SpyStructConverter{}
typeSpec := converter.Convert(
&ast.TypeSpec{
Name: ast.NewIdent("Tester"),
},
&ast.InterfaceType{
Methods: &ast.FieldList{List:... | package fm_test
import (
"go/ast"
"testing"
"github.com/enocom/fm/lib"
)
func TestConvertBuildsAddsSpyToTypeSpecName(t *testing.T) {
converter := &fm.SpyStructConverter{}
typeSpec := converter.Convert(
&ast.TypeSpec{Name: ast.NewIdent("Tester")},
&ast.InterfaceType{
Methods: &ast.FieldList{List: make([]... | Add converter test confirming "_Called" field | Add converter test confirming "_Called" field
| Go | unlicense | enocom/fm,enocom/fm | go | ## Code Before:
package fm_test
import (
"go/ast"
"testing"
"github.com/enocom/fm/lib"
)
func TestConvertBuildsAddsSpyToTypeSpecName(t *testing.T) {
converter := &fm.SpyStructConverter{}
typeSpec := converter.Convert(
&ast.TypeSpec{
Name: ast.NewIdent("Tester"),
},
&ast.InterfaceType{
Methods: &ast... | package fm_test
import (
"go/ast"
"testing"
"github.com/enocom/fm/lib"
)
func TestConvertBuildsAddsSpyToTypeSpecName(t *testing.T) {
converter := &fm.SpyStructConverter{}
typeSpec := converter.Convert(
- &ast.TypeSpec{
- Name: ast.NewIdent("Tester"),
? ^
+ &ast.TypeSpec{Name... | 44 | 1.571429 | 41 | 3 |
8ef6384f005d30001b25ac7c398689fcf5c8d971 | products/python-cartridge-agent/modules/integration/test-integration/src/test/resources/test-conf/integration-test.properties | products/python-cartridge-agent/modules/integration/test-integration/src/test/resources/test-conf/integration-test.properties | distribution.version=${project.version}
distribution.name=${python.cartridge.agent.distribution.name}-${project.version}
activemq.amqp.bind.ports=61617
activemq.mqtt.bind.ports=1885
cep.server.one.port=7612
cep.server.two.port=7613
cep.server.one.ssl.port=7712
cep.server.two.ssl.port=7713
stratos.endpoint=http://localh... | distribution.version=${project.version}
distribution.name=${python.cartridge.agent.distribution.name}-${python.cartridge.agent.version}
activemq.amqp.bind.ports=61617
activemq.mqtt.bind.ports=1885
cep.server.one.port=7612
cep.server.two.port=7613
cep.server.one.ssl.port=7712
cep.server.two.ssl.port=7713
stratos.endpoin... | Fix PCA version in live test | Fix PCA version in live test
| INI | apache-2.0 | Vishanth/product-private-paas,Thanu/product-private-paas,Thanu/product-private-paas,pubudu538/product-private-paas,nishadi/product-private-paas,nishadi/product-private-paas,wso2/product-private-paas,wso2/product-private-paas,Vishanth/product-private-paas,pubudu538/product-private-paas,wso2/product-private-paas,Thanu/pr... | ini | ## Code Before:
distribution.version=${project.version}
distribution.name=${python.cartridge.agent.distribution.name}-${project.version}
activemq.amqp.bind.ports=61617
activemq.mqtt.bind.ports=1885
cep.server.one.port=7612
cep.server.two.port=7613
cep.server.one.ssl.port=7712
cep.server.two.ssl.port=7713
stratos.endpoi... | distribution.version=${project.version}
- distribution.name=${python.cartridge.agent.distribution.name}-${project.version}
? ^^ ^
+ distribution.name=${python.cartridge.agent.distribution.name}-${python.cartridge.agent.version}
? ... | 2 | 0.166667 | 1 | 1 |
e15228777ff7f32961e5545eec3bbc33782fc719 | Day3/pt2.hs | Day3/pt2.hs | import System.IO
import Data.List
type House = (Int, Int)
everyOther :: [a] -> [a]
everyOther [] = []
everyOther (x:xs) = x : (everyOther (drop 1 xs))
nextHouse :: House -> Char -> House
nextHouse (startX, startY) direction
| direction == '^' = (startX, startY + 1)
| direction == '>' = (startX + 1, startY)
... | import System.IO
import Data.List
type House = (Int, Int)
everyOther :: [a] -> [a]
everyOther [] = []
everyOther (x:xs) = x : (everyOther (drop 1 xs))
nextHouse :: House -> Char -> House
nextHouse (startX, startY) direction
| direction == '^' = (startX, startY + 1)
| direction == '>' = (startX + 1, startY)
... | Clean up for Day 3 Part 2 | Clean up for Day 3 Part 2
| Haskell | mit | rosslebeau/AdventOfCode | haskell | ## Code Before:
import System.IO
import Data.List
type House = (Int, Int)
everyOther :: [a] -> [a]
everyOther [] = []
everyOther (x:xs) = x : (everyOther (drop 1 xs))
nextHouse :: House -> Char -> House
nextHouse (startX, startY) direction
| direction == '^' = (startX, startY + 1)
| direction == '>' = (start... | import System.IO
import Data.List
type House = (Int, Int)
everyOther :: [a] -> [a]
everyOther [] = []
everyOther (x:xs) = x : (everyOther (drop 1 xs))
nextHouse :: House -> Char -> House
nextHouse (startX, startY) direction
| direction == '^' = (startX, startY + 1)
| direction == '>... | 8 | 0.296296 | 5 | 3 |
ea4588be44afa53cdff2908edcff6ab93adbd6cd | core/src/main/kotlin/org/nwapw/abacus/context/ChainSearchDelegate.kt | core/src/main/kotlin/org/nwapw/abacus/context/ChainSearchDelegate.kt | package org.nwapw.abacus.context
import org.nwapw.abacus.exception.ContextException
import kotlin.reflect.KProperty
/**
* A delegate to search a hierarchy made up of [EvaluationContext].
*
* ChainSearchDelegate is a variable delegate written specifically for use in [EvaluationContext], because
* of its hierarchic... | package org.nwapw.abacus.context
import org.nwapw.abacus.exception.ContextException
import kotlin.reflect.KProperty
/**
* A delegate to search a hierarchy made up of [EvaluationContext].
*
* ChainSearchDelegate is a variable delegate written specifically for use in [EvaluationContext], because
* of its hierarchic... | Add more descriptive message to context exceptions. | Add more descriptive message to context exceptions.
| Kotlin | mit | DanilaFe/abacus,DanilaFe/abacus | kotlin | ## Code Before:
package org.nwapw.abacus.context
import org.nwapw.abacus.exception.ContextException
import kotlin.reflect.KProperty
/**
* A delegate to search a hierarchy made up of [EvaluationContext].
*
* ChainSearchDelegate is a variable delegate written specifically for use in [EvaluationContext], because
* o... | package org.nwapw.abacus.context
import org.nwapw.abacus.exception.ContextException
import kotlin.reflect.KProperty
/**
* A delegate to search a hierarchy made up of [EvaluationContext].
*
* ChainSearchDelegate is a variable delegate written specifically for use in [EvaluationContext], because
... | 2 | 0.066667 | 1 | 1 |
86acab18c85bab102f0cadb6b7b997d6c51b1047 | README.md | README.md |
These prototypes have been built on an adapted [GOV.UK prototyping kit.](https://github.com/alphagov/govuk_prototype_kit).
They contain code from these GOV.UK resources:
- [GOV.UK template](https://github.com/alphagov/govuk_template)
- [GOV.UK front end toolkit](https://github.com/alphagov/govuk_frontend_toolkit)
- ... |
Prototypes from the NHS Alpha project, from July 2015 to January 2016.
These prototypes have been built on an adapted [GOV.UK prototyping kit.](https://github.com/alphagov/govuk_prototype_kit).
They contain code from these GOV.UK resources:
- [GOV.UK template](https://github.com/alphagov/govuk_template)
- [GOV.UK f... | Add Alpha dates to readme | Add Alpha dates to readme
| Markdown | mit | nhsalpha/nhs_prototype_kit,nhsalpha/nhs_prototype_kit,nhsalpha/nhs_prototype_kit,nhsalpha/nhs_prototype_kit | markdown | ## Code Before:
These prototypes have been built on an adapted [GOV.UK prototyping kit.](https://github.com/alphagov/govuk_prototype_kit).
They contain code from these GOV.UK resources:
- [GOV.UK template](https://github.com/alphagov/govuk_template)
- [GOV.UK front end toolkit](https://github.com/alphagov/govuk_fron... | +
+ Prototypes from the NHS Alpha project, from July 2015 to January 2016.
These prototypes have been built on an adapted [GOV.UK prototyping kit.](https://github.com/alphagov/govuk_prototype_kit).
They contain code from these GOV.UK resources:
- [GOV.UK template](https://github.com/alphagov/govuk_templ... | 2 | 0.04 | 2 | 0 |
b7824e57a2c6479a3b12cd8aeaf5c20e8a9241d4 | .travis.yml | .travis.yml | language: python
sudo: false
python:
- 2.6
- 2.7
- 3.3
- 3.4
- 3.5
- 3.6
- pypy
- pypy3
install:
- pip install -e .
- pip install coveralls
- pip install pytest-benchmark
script:
- coverage run --source=gauge setup.py test
- |
pytest gaugebenchmark.py \
--benchmark-group-by=func \
--benchmark-sort=mean \
... | language: python
sudo: false
python:
- 2.6
- 2.7
- 3.3
- 3.4
- 3.5
- 3.6
- pypy
- pypy3
install:
- pip install cython
- pip install -e .
- pip install coveralls
- pip install pytest-benchmark
script:
- coverage run --source=gauge setup.py test
- |
pytest gaugebenchmark.py \
--benchmark-group-by=func \
--bench... | Install Cython in Travis CI | Install Cython in Travis CI
| YAML | bsd-3-clause | what-studio/gauge | yaml | ## Code Before:
language: python
sudo: false
python:
- 2.6
- 2.7
- 3.3
- 3.4
- 3.5
- 3.6
- pypy
- pypy3
install:
- pip install -e .
- pip install coveralls
- pip install pytest-benchmark
script:
- coverage run --source=gauge setup.py test
- |
pytest gaugebenchmark.py \
--benchmark-group-by=func \
--benchmark-... | language: python
sudo: false
python:
- 2.6
- 2.7
- 3.3
- 3.4
- 3.5
- 3.6
- pypy
- pypy3
install:
+ - pip install cython
- pip install -e .
- pip install coveralls
- pip install pytest-benchmark
script:
- coverage run --source=gauge setup.py test
- |
pytest gaugebenchmark.py \
... | 1 | 0.041667 | 1 | 0 |
90d5ec4c171851c9802e193b67e52fd0857bcbe2 | datavault-webapp/src/main/webapp/WEB-INF/freemarker/deposits/create.ftl | datavault-webapp/src/main/webapp/WEB-INF/freemarker/deposits/create.ftl | <#import "*/layout/defaultlayout.ftl" as layout>
<@layout.vaultLayout>
<#import "/spring.ftl" as spring />
<div class="container">
<div class="row">
<div class="col-xs-12 storage">
<h1>Create New Deposit</h1>
<form class="form-horizontal" role="form" action="" method="post">
... | <#import "*/layout/defaultlayout.ftl" as layout>
<@layout.vaultLayout>
<#import "/spring.ftl" as spring />
<div class="container">
<div class="row">
<div class="col-xs-12 storage">
<h1>Create New Deposit</h1>
<form class="form-horizontal" role="form" action="" method="post">
... | Fix missing filepath when creating deposit | Fix missing filepath when creating deposit
| FreeMarker | mit | stuartlewis/datavault,robintaylor/datavault,ianthe/datavault,robintaylor/datavault,seesmith/datavault,DataVault/datavault,seesmith/datavault,tomhigginsuom/datavault,DataVault/datavault,ianthe/datavault,DataVault/datavault,robintaylor/datavault,ianthe/datavault,stuartlewis/datavault,stuartlewis/datavault,stuartlewis/dat... | freemarker | ## Code Before:
<#import "*/layout/defaultlayout.ftl" as layout>
<@layout.vaultLayout>
<#import "/spring.ftl" as spring />
<div class="container">
<div class="row">
<div class="col-xs-12 storage">
<h1>Create New Deposit</h1>
<form class="form-horizontal" role="form" action="" me... | <#import "*/layout/defaultlayout.ftl" as layout>
<@layout.vaultLayout>
<#import "/spring.ftl" as spring />
<div class="container">
<div class="row">
<div class="col-xs-12 storage">
<h1>Create New Deposit</h1>
<form class="form-horizontal" role="form" action="" ... | 4 | 0.095238 | 3 | 1 |
33b11ff85b7d715c53cca04e37f8413b2c620adf | .vscode/tasks.json | .vscode/tasks.json | {
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet build",
"type": "shell",
"group": "build",
"problemMatche... | {
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet build",
"type": "shell",
"group": "build",
"problemMatche... | Use stack trace as lnk insteadThis loses the information of the params used in the test but links to the assert if it fails | Use stack trace as lnk insteadThis loses the information of the params used in the test but links to the assert if it fails
| JSON | mit | TheEadie/LazyLibrary,TheEadie/LazyStorage,TheEadie/LazyStorage | json | ## Code Before:
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet build",
"type": "shell",
"group": "build",
... | {
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet build",
"type": "shell",
"group": "build",
... | 14 | 0.424242 | 6 | 8 |
9280948071f753b73304f0ea201167bda82f033e | README.md | README.md |
Makes you warm & fuzzy by turning up the temperature of your laptop
## Why?
Because it's frickin freezing outside!
## Disclaimer
I'll take no responsibility for this library. It's a friday joke :)
Be careful to not put something on fire since your cpu(s) will go crazy and eat battery like it was no tomorrow.
## Get... | Makes you warm & fuzzy by turning up the temperature of your laptop
![Image of Warm cat]
(http://www.roflcat.com/images/cats/Why_Is_It_Made_Of_Warm.jpg)
## Why?
Because it's frickin freezing outside!
## Disclaimer
I'll take no responsibility for this library. It's a friday joke :)
Be careful to not put something on ... | Put cat image on top - because cat's are cute :) | Put cat image on top - because cat's are cute :)
| Markdown | mit | borestad/radiator-js | markdown | ## Code Before:
Makes you warm & fuzzy by turning up the temperature of your laptop
## Why?
Because it's frickin freezing outside!
## Disclaimer
I'll take no responsibility for this library. It's a friday joke :)
Be careful to not put something on fire since your cpu(s) will go crazy and eat battery like it was no t... | + Makes you warm & fuzzy by turning up the temperature of your laptop
- Makes you warm & fuzzy by turning up the temperature of your laptop
+ ![Image of Warm cat]
+ (http://www.roflcat.com/images/cats/Why_Is_It_Made_Of_Warm.jpg)
## Why?
Because it's frickin freezing outside!
## Disclaimer
I'll take no ... | 7 | 0.269231 | 3 | 4 |
aa1fa29423c8932a3f9d8e7beb496f28eeaa9bb0 | test/CodeGen/Thumb/iabs.ll | test/CodeGen/Thumb/iabs.ll | ; RUN: llc < %s -march=thumb -filetype=obj -o %t.o
; RUN: llvm-objdump -disassemble -arch=thumb %t.o | FileCheck %s
define i32 @test(i32 %a) {
%tmp1neg = sub i32 0, %a
%b = icmp sgt i32 %a, -1
%abs = select i1 %b, i32 %a, i32 %tmp1neg
ret i32 %abs
; This test just checks that 4 instruc... | ; RUN: llc < %s -march=thumb -stats 2>&1 | \
; RUN: grep "4 .*Number of machine instrs printed"
;; Integer absolute value, should produce something as good as:
;; Thumb:
;; movs r0, r0
;; bpl
;; rsb r0, r0, #0 (with opitmization, bpl + rsb is if-converted into rsbmi)
;; bx lr
define i32 @test(i32 %a) {
... | Revert "Rewrite a test to count emitted instructions without using -stats" | Revert "Rewrite a test to count emitted instructions without using -stats"
This reverts commit aac7922b8fe7ae733d3fe6697e6789fd730315dc. I am reverting the
commit since it broke the phase 1 public buildbot for a few hours.
http://lab.llvm.org:8013/builders/clang-x86_64-darwin11-nobootstrap-RA/builds/2137
git-svn-id:... | LLVM | apache-2.0 | llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift... | llvm | ## Code Before:
; RUN: llc < %s -march=thumb -filetype=obj -o %t.o
; RUN: llvm-objdump -disassemble -arch=thumb %t.o | FileCheck %s
define i32 @test(i32 %a) {
%tmp1neg = sub i32 0, %a
%b = icmp sgt i32 %a, -1
%abs = select i1 %b, i32 %a, i32 %tmp1neg
ret i32 %abs
; This test just check... | - ; RUN: llc < %s -march=thumb -filetype=obj -o %t.o
- ; RUN: llvm-objdump -disassemble -arch=thumb %t.o | FileCheck %s
+ ; RUN: llc < %s -march=thumb -stats 2>&1 | \
+ ; RUN: grep "4 .*Number of machine instrs printed"
+
+ ;; Integer absolute value, should produce something as good as:
+ ;; Thumb:
+ ;; movs r0, r... | 26 | 1.3 | 14 | 12 |
7ad0518841c494c9a037b77f7d55e6c501a639b4 | plugins/mezuro/views/content_viewer/_project_result.rhtml | plugins/mezuro/views/content_viewer/_project_result.rhtml | <% unless @content.errors[:base].nil? %>
<%= @content.errors[:base] %>
<% else %>
<p> Choose a date to see specific project results: </p>
<div id="datepicker">
<input id="datepicker_field" style="display:none"/>
</div>
<h4><%= _('Last Result') %></h4>
<table>
<tr>
<td><%= _('Date') %></t... | <% unless @content.errors[:base].nil? %>
<%= @content.errors[:base] %>
<% else %>
<p> Choose a date to see specific project results: </p>
<div id="datepicker" data-date="<%= @project_result.date %>">
<input id="datepicker_field" style="display:none"/>
</div>
<h4><%= _('Last Result') %></h4>
<table... | Set default date to project result date. | [Mezuro] Set default date to project result date.
| RHTML | agpl-3.0 | alexandreab/noosfero,rafamanzo/mezuro-travis,coletivoEITA/noosfero,larissa/noosfero,CIRANDAS/noosfero-ecosol,uniteddiversity/noosfero,evandrojr/noosferogov,samasti/noosfero,rafamanzo/mezuro-travis,marcosronaldo/noosfero,abner/noosfero,hackathon-oscs/cartografias,CIRANDAS/noosfero-ecosol,abner/noosfero,EcoAlternative/no... | rhtml | ## Code Before:
<% unless @content.errors[:base].nil? %>
<%= @content.errors[:base] %>
<% else %>
<p> Choose a date to see specific project results: </p>
<div id="datepicker">
<input id="datepicker_field" style="display:none"/>
</div>
<h4><%= _('Last Result') %></h4>
<table>
<tr>
<td><%=... | <% unless @content.errors[:base].nil? %>
<%= @content.errors[:base] %>
<% else %>
<p> Choose a date to see specific project results: </p>
- <div id="datepicker">
+ <div id="datepicker" data-date="<%= @project_result.date %>">
<input id="datepicker_field" style="display:none"/>
</div>
... | 9 | 0.25 | 6 | 3 |
2545a66df0aa09f0cc7f98632c0b98b4d7fa8a13 | app/views/admin_notifier/new_matrix_email.html.haml | app/views/admin_notifier/new_matrix_email.html.haml | !!! 5
%html{:lang => "en"}
%head
= stylesheet_link_tag "https://fonts.googleapis.com/css?family=Cutive"
= stylesheet_link_tag 'application', media: 'all'
%body
%nav{:class => "navbar navbar-inverse navbar-fixed-top"}
.container
.navbar-header
%h1
SuiteSparse Matrix Co... | !!! 5
%html{:lang => "en"}
%head
%meta{'http-equiv': "Content-Type", content: "text/html; charset=utf-8"}
%body
%div{style: "height: 50px; margin-bottom: 20px; background-color: #000;"}
%h1{style: "margin-top: -6px; font-size: 20.7px; font-family: 'cutive'; color: #fff;"}
SuiteSparse Matrix Co... | Add inline CSS for email styling | Add inline CSS for email styling
| Haml | mit | ScottKolo/UFSMC-Web,ScottKolo/suitesparse-matrix-collection-website,ScottKolo/UFSMC-Web,ScottKolo/suitesparse-matrix-collection-website,ScottKolo/suitesparse-matrix-collection-website,ScottKolo/suitesparse-matrix-collection-website,ScottKolo/suitesparse-matrix-collection-website,ScottKolo/UFSMC-Web | haml | ## Code Before:
!!! 5
%html{:lang => "en"}
%head
= stylesheet_link_tag "https://fonts.googleapis.com/css?family=Cutive"
= stylesheet_link_tag 'application', media: 'all'
%body
%nav{:class => "navbar navbar-inverse navbar-fixed-top"}
.container
.navbar-header
%h1
Suite... | !!! 5
%html{:lang => "en"}
%head
+ %meta{'http-equiv': "Content-Type", content: "text/html; charset=utf-8"}
- = stylesheet_link_tag "https://fonts.googleapis.com/css?family=Cutive"
- = stylesheet_link_tag 'application', media: 'all'
%body
+ %div{style: "height: 50px; margin-bottom: 20px; bac... | 25 | 0.609756 | 11 | 14 |
8560a70f376a44936f53d2bae9d2931f32760a8c | src/app/shared/app-details-install-instructions/app-details-install-instructions.component.html | src/app/shared/app-details-install-instructions/app-details-install-instructions.component.html | <div>
<h3>Install and run on the command line</h3>
<pre>
#First <a href="https://flatpak.org/setup/">setup Flatpak and add the Flathub repository</a> in your computer
#Install the app (add --user for per-user installation)
flatpak install flathub {{this.app.flatpakAppId}}
#Run
flatpak run {{this.app.flatpakAppId... | <div>
<h3>Command line instructions</h3>
<h5>Install:</h5>
<pre>$ flatpak install flathub {{this.app.flatpakAppId}}</pre>
<h5>Run:</h5>
<pre>$ flatpak run {{this.app.flatpakAppId}}</pre>
<h6>Make sure to follow the <a href="https://flatpak.org/setup/">setup guide</a> before installing</h6>
</div>
| Simplify app details command line instructions | Simplify app details command line instructions
Fixes https://github.com/flathub/linux-store-frontend/issues/67
| HTML | apache-2.0 | jgarciao/linux-store-frontend,jgarciao/linux-store-frontend,jgarciao/linux-store-frontend | html | ## Code Before:
<div>
<h3>Install and run on the command line</h3>
<pre>
#First <a href="https://flatpak.org/setup/">setup Flatpak and add the Flathub repository</a> in your computer
#Install the app (add --user for per-user installation)
flatpak install flathub {{this.app.flatpakAppId}}
#Run
flatpak run {{this.... | <div>
+ <h3>Command line instructions</h3>
+ <h5>Install:</h5>
- <h3>Install and run on the command line</h3>
-
- <pre>
- #First <a href="https://flatpak.org/setup/">setup Flatpak and add the Flathub repository</a> in your computer
-
- #Install the app (add --user for per-user installation)
- flatpak instal... | 20 | 1.25 | 6 | 14 |
188740715a699c25651a74f3ce090aa130127680 | src/commands.ts | src/commands.ts | import * as vscode from 'vscode';
const lodashSortBy = require('lodash.sortby');
export const COMMAND_LABELS = {
'1toX': '1toX'
};
export function runCommand (command: string) {
const editor = vscode.window.activeTextEditor;
const { document, selections } = editor;
editor.edit(editBuilder => {
... | import * as vscode from 'vscode';
const lodashSortBy = require('lodash.sortby');
export const COMMAND_LABELS = {
'1toX': '1toX'
};
export function runCommand (command: string) {
const editor = vscode.window.activeTextEditor;
const { document, selections } = editor;
editor.edit(editBuilder => {
... | Delete any existing selected text when inserting text | Delete any existing selected text when inserting text
| TypeScript | mit | jkjustjoshing/vscode-text-pastry | typescript | ## Code Before:
import * as vscode from 'vscode';
const lodashSortBy = require('lodash.sortby');
export const COMMAND_LABELS = {
'1toX': '1toX'
};
export function runCommand (command: string) {
const editor = vscode.window.activeTextEditor;
const { document, selections } = editor;
editor.edit(editBu... | import * as vscode from 'vscode';
const lodashSortBy = require('lodash.sortby');
export const COMMAND_LABELS = {
'1toX': '1toX'
};
export function runCommand (command: string) {
const editor = vscode.window.activeTextEditor;
const { document, selections } = editor;
editor.e... | 5 | 0.227273 | 3 | 2 |
ef48e898d3e6e7dec899f7d436c86647a3f595b1 | templates/card_modal.html | templates/card_modal.html | {{#if Grant_Columns}}
{{#each Grant_Columns}}
{{#if Cards}}
{{#each Cards}}
<div class="modal fade" id="{{Modal_ID}}" tabindex="-1" role="dialog" aria-labelledby="detailModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-h... | {{#if Grant_Columns}}
{{#each Grant_Columns}}
{{#if Cards}}
{{#each Cards}}
<div class="modal fade" id="{{Modal_ID}}" tabindex="-1" role="dialog" aria-labelledby="detailModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-h... | Make documents open in new tab | Make documents open in new tab | HTML | mit | ASUKanbosalCapstone/Kanbosal,ASUKanbosalCapstone/Kanbosal | html | ## Code Before:
{{#if Grant_Columns}}
{{#each Grant_Columns}}
{{#if Cards}}
{{#each Cards}}
<div class="modal fade" id="{{Modal_ID}}" tabindex="-1" role="dialog" aria-labelledby="detailModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<di... | {{#if Grant_Columns}}
{{#each Grant_Columns}}
{{#if Cards}}
{{#each Cards}}
<div class="modal fade" id="{{Modal_ID}}" tabindex="-1" role="dialog" aria-labelledby="detailModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<di... | 2 | 0.064516 | 1 | 1 |
582bb61099a20c2b4c86b1873aa2b900abdcfd3a | .circleci/config.yml | .circleci/config.yml | ---
version: 2.1
executors:
python:
parameters:
working_directory:
type: string
default: ~/repo
python_version_tag:
type: string
default: "3.6"
working_directory: <<parameters.working_directory>>
docker:
- image: circleci/python:<<parameters.python_vers... | ---
version: 2.1
executors:
python:
parameters:
working_directory:
type: string
default: ~/repo
python_version_tag:
type: string
default: "3.6"
working_directory: <<parameters.working_directory>>
docker:
- image: circleci/python:<<parameters.python_vers... | Add artifact storing for poetry.lock and requirements.txt | Add artifact storing for poetry.lock and requirements.txt
| YAML | apache-2.0 | racker/fleece,racker/fleece | yaml | ## Code Before:
---
version: 2.1
executors:
python:
parameters:
working_directory:
type: string
default: ~/repo
python_version_tag:
type: string
default: "3.6"
working_directory: <<parameters.working_directory>>
docker:
- image: circleci/python:<<parame... | ---
version: 2.1
executors:
python:
parameters:
working_directory:
type: string
default: ~/repo
python_version_tag:
type: string
default: "3.6"
working_directory: <<parameters.working_directory>>
docker:
- image: circleci/p... | 5 | 0.098039 | 4 | 1 |
076c21fd4957d7b978b16038d5e48edfd2d03420 | README.md | README.md | Configuration server
==========================================
[](https://travis-ci.org/coffeine-009/config)
[](https://www.codacy.com/app/vitaliyacm/... | Configuration server
==========================================
[](https://travis-ci.org/coffeine-009/config)
[](https://www.codacy.com/app/vitaliyacm/... | Update info about connecting into container. | Update info about connecting into container.
| Markdown | mit | coffeine-009/config | markdown | ## Code Before:
Configuration server
==========================================
[](https://travis-ci.org/coffeine-009/config)
[](https://www.codacy.com... | Configuration server
==========================================
[](https://travis-ci.org/coffeine-009/config)
[](https://www.codacy.com/app/v... | 2 | 0.058824 | 1 | 1 |
e41fe204f6f7bf3c75a74305520cd149e790ac62 | config/openxpki/config.d/realm/ca-one/workflow/global/field/signer_revoked.yaml | config/openxpki/config.d/realm/ca-one/workflow/global/field/signer_revoked.yaml | label: I18N_OPENXPKI_UI_WORKFLOW_FIELD_SIGNER_REVOKED_LABEL
name: signer_revoked
template: "[% IF value %]I18N_OPENXPKI_UI_YES[% ELSE %]failed:I18N_OPENXPKI_UI_NO[% END %]"
format: styled
| label: I18N_OPENXPKI_UI_WORKFLOW_FIELD_SIGNER_REVOKED_LABEL
name: signer_revoked
template: "[% IF value %]failed:I18N_OPENXPKI_UI_YES[% ELSE %]I18N_OPENXPKI_UI_NO[% END %]"
format: styled
| Fix highlighting of server revoked flag (red on Yes) | Fix highlighting of server revoked flag (red on Yes)
| YAML | apache-2.0 | stefanomarty/openxpki,oliwel/openxpki,openxpki/openxpki,openxpki/openxpki,stefanomarty/openxpki,openxpki/openxpki,stefanomarty/openxpki,oliwel/openxpki,stefanomarty/openxpki,stefanomarty/openxpki,oliwel/openxpki,oliwel/openxpki,oliwel/openxpki,openxpki/openxpki,oliwel/openxpki,stefanomarty/openxpki | yaml | ## Code Before:
label: I18N_OPENXPKI_UI_WORKFLOW_FIELD_SIGNER_REVOKED_LABEL
name: signer_revoked
template: "[% IF value %]I18N_OPENXPKI_UI_YES[% ELSE %]failed:I18N_OPENXPKI_UI_NO[% END %]"
format: styled
## Instruction:
Fix highlighting of server revoked flag (red on Yes)
## Code After:
label: I18N_OPENXPKI_UI_WORKF... | label: I18N_OPENXPKI_UI_WORKFLOW_FIELD_SIGNER_REVOKED_LABEL
name: signer_revoked
- template: "[% IF value %]I18N_OPENXPKI_UI_YES[% ELSE %]failed:I18N_OPENXPKI_UI_NO[% END %]"
? -------
+ template: "[% IF value %]failed:I18N_OPENXPKI_UI_YES[% ELSE %]I18N_OPENXP... | 2 | 0.4 | 1 | 1 |
15a759b9cd3e1c24ee2a9b2885c5963ade200f1c | circle.yml | circle.yml | machine:
environment:
ArtsyAPIClientSecret: 3a33d2085cbd1176153f99781bbce7c6
ArtsyAPIClientKey: e750db60ac506978fc70
HockeyProductionSecret: "-"
HockeyBetaSecret: "-"
MixpanelProductionAPIClientKey: "-"
MixpanelStagingAPIClientKey: "-"
MixpanelDevAPIClientKey: "-"
MixpanelInStoreAPICli... | machine:
environment:
ArtsyAPIClientSecret: 3a33d2085cbd1176153f99781bbce7c6
ArtsyAPIClientKey: e750db60ac506978fc70
HockeyProductionSecret: "-"
HockeyBetaSecret: "-"
MixpanelProductionAPIClientKey: "-"
MixpanelStagingAPIClientKey: "-"
MixpanelDevAPIClientKey: "-"
MixpanelInStoreAPICli... | Remove old `make oss` step. | [CircleCI] Remove old `make oss` step.
| YAML | mit | ayunav/eigen,ichu501/eigen,1aurabrown/eigen,ashkan18/eigen,srrvnn/eigen,gaurav1981/eigen,ayunav/eigen,ayunav/eigen,ACChe/eigen,ACChe/eigen,mbogh/eigen,artsy/eigen,ppamorim/eigen,zhuzhengwei/eigen,ashkan18/eigen,srrvnn/eigen,gaurav1981/eigen,liduanw/eigen,ichu501/eigen,orta/eigen,gaurav1981/eigen,ppamorim/eigen,gaurav19... | yaml | ## Code Before:
machine:
environment:
ArtsyAPIClientSecret: 3a33d2085cbd1176153f99781bbce7c6
ArtsyAPIClientKey: e750db60ac506978fc70
HockeyProductionSecret: "-"
HockeyBetaSecret: "-"
MixpanelProductionAPIClientKey: "-"
MixpanelStagingAPIClientKey: "-"
MixpanelDevAPIClientKey: "-"
Mixpa... | machine:
environment:
ArtsyAPIClientSecret: 3a33d2085cbd1176153f99781bbce7c6
ArtsyAPIClientKey: e750db60ac506978fc70
HockeyProductionSecret: "-"
HockeyBetaSecret: "-"
MixpanelProductionAPIClientKey: "-"
MixpanelStagingAPIClientKey: "-"
MixpanelDevAPIClientKey: "-"
M... | 1 | 0.033333 | 0 | 1 |
780b84a2ed7aff91de8ab7b5505e496649d3ddfa | nlppln/wfgenerator.py | nlppln/wfgenerator.py | from scriptcwl import WorkflowGenerator as WFGenerator
from .utils import CWL_PATH
class WorkflowGenerator(WFGenerator):
def __init__(self, working_dir=None):
WFGenerator.__init__(self, steps_dir=CWL_PATH, working_dir=working_dir)
self.load(step_file='https://raw.githubusercontent.com/nlppln/'
... | from scriptcwl import WorkflowGenerator as WFGenerator
from .utils import CWL_PATH
class WorkflowGenerator(WFGenerator):
def __init__(self, working_dir=None):
WFGenerator.__init__(self, steps_dir=CWL_PATH, working_dir=working_dir)
self.load(step_file='https://raw.githubusercontent.com/nlppln/'
... | Make default saving option relative | Make default saving option relative
Saving workflows with wd=True only works when you use a working dir.
Since this is optional, it makes more sense to use relative paths
(and assume the user uses the nlppln CWL_PATH to save their workflows).
| Python | apache-2.0 | WhatWorksWhenForWhom/nlppln,WhatWorksWhenForWhom/nlppln,WhatWorksWhenForWhom/nlppln | python | ## Code Before:
from scriptcwl import WorkflowGenerator as WFGenerator
from .utils import CWL_PATH
class WorkflowGenerator(WFGenerator):
def __init__(self, working_dir=None):
WFGenerator.__init__(self, steps_dir=CWL_PATH, working_dir=working_dir)
self.load(step_file='https://raw.githubuserconten... | from scriptcwl import WorkflowGenerator as WFGenerator
from .utils import CWL_PATH
class WorkflowGenerator(WFGenerator):
def __init__(self, working_dir=None):
WFGenerator.__init__(self, steps_dir=CWL_PATH, working_dir=working_dir)
self.load(step_file='https://raw.githubuserco... | 5 | 0.178571 | 2 | 3 |
4233edea9f06647e77033222f113392b44049f53 | Server.js | Server.js | const util = require('util');
const Koa = require('koa');
const bodyParser = require('koa-bodyparser');
const request = require('./request');
class Server {
constructor(verbose) {
this.app = new Koa();
this.app.use(async (ctx, next) => {
try {
await next();
} catch (error) {
ctx... | const util = require('util');
const Koa = require('koa');
const bodyParser = require('koa-bodyparser');
const request = require('./request');
class Server {
constructor(verbose) {
this.app = new Koa();
this.app.use(async (ctx, next) => {
try {
await next();
} catch (error) {
ctx... | Return HTTP 502 and error message if upstream server error. | Return HTTP 502 and error message if upstream server error.
| JavaScript | mit | quentinadam/node-request-server | javascript | ## Code Before:
const util = require('util');
const Koa = require('koa');
const bodyParser = require('koa-bodyparser');
const request = require('./request');
class Server {
constructor(verbose) {
this.app = new Koa();
this.app.use(async (ctx, next) => {
try {
await next();
} catch (erro... | const util = require('util');
const Koa = require('koa');
const bodyParser = require('koa-bodyparser');
const request = require('./request');
class Server {
constructor(verbose) {
this.app = new Koa();
this.app.use(async (ctx, next) => {
try {
await next();
}... | 7 | 0.127273 | 6 | 1 |
704da28e4d1172c072359dc1e74a1ead19b97490 | auth/imap/lib.php | auth/imap/lib.php | <?PHP // $Id$
// Authentication by looking up an IMAP server
// This code is completely untested so far - IT NEEDS TESTERS!
// Looks like it should work though ...
$CFG->auth_imaphost = "127.0.0.1"; // Should be IP number
$CFG->auth_imaptype = "imap"; // imap, imapssl, imapcert
$CFG->auth_imappor... | <?PHP // $Id$
// Authentication by looking up an IMAP server
// This code is completely untested so far - IT NEEDS TESTERS!
// Looks like it should work though ...
$CFG->auth_imaphost = "127.0.0.1"; // Should be IP number
$CFG->auth_imaptype = "imap"; // imap, imapssl, imapcert
$CFG->auth_imapport ... | Remove { error, and move things around | Remove { error, and move things around
| PHP | bsd-3-clause | dilawar/moodle | php | ## Code Before:
<?PHP // $Id$
// Authentication by looking up an IMAP server
// This code is completely untested so far - IT NEEDS TESTERS!
// Looks like it should work though ...
$CFG->auth_imaphost = "127.0.0.1"; // Should be IP number
$CFG->auth_imaptype = "imap"; // imap, imapssl, imapcert
$C... | <?PHP // $Id$
// Authentication by looking up an IMAP server
// This code is completely untested so far - IT NEEDS TESTERS!
// Looks like it should work though ...
$CFG->auth_imaphost = "127.0.0.1"; // Should be IP number
- $CFG->auth_imaptype = "imap"; // imap, imapssl, imapcert
? ... | 18 | 0.45 | 10 | 8 |
cbe8200f59d4a777c02b150527a17f8fd6c782ca | db/migrate/20160208075150_add_products.rb | db/migrate/20160208075150_add_products.rb | class AddProducts < ActiveRecord::Migration
def change
Product.create :title => 'Hawaiian', :description => 'This is Hawaiian pizza', :price => 350, :size => 30, :is_spicy => false, :is_veg => false, :is_best_offer => false, :path_to_image => '/images/hawaiian.jpg'
Product.create :title => 'Pepperoni', :descri... | class AddProducts < ActiveRecord::Migration
def change
Product.create :title => 'Hawaiian', :description => 'This is Hawaiian pizza', :price => 350, :size => 30, :is_spicy => false, :is_veg => false, :is_best_offer => false, :path_to_image => '/images/hawaiian.jpg'
Product.create ({
:title => 'Pepperoni',
... | Change megration products in table | Change megration products in table
| Ruby | mit | Kraykin/PizzaShop,Kraykin/PizzaShop,Kraykin/PizzaShop | ruby | ## Code Before:
class AddProducts < ActiveRecord::Migration
def change
Product.create :title => 'Hawaiian', :description => 'This is Hawaiian pizza', :price => 350, :size => 30, :is_spicy => false, :is_veg => false, :is_best_offer => false, :path_to_image => '/images/hawaiian.jpg'
Product.create :title => 'Pep... | class AddProducts < ActiveRecord::Migration
def change
Product.create :title => 'Hawaiian', :description => 'This is Hawaiian pizza', :price => 350, :size => 30, :is_spicy => false, :is_veg => false, :is_best_offer => false, :path_to_image => '/images/hawaiian.jpg'
- Product.create :title => 'Pepperoni... | 22 | 2.444444 | 20 | 2 |
7ceb3eacc02ac21c066066f00cd67d2cf2b3cefc | .travis.yml | .travis.yml | language: ruby
rvm:
- 2.4.0
- 2.3.3
- 2.2.2
env:
- SINATRA_MAJOR=1
- SINATRA_MAJOR=2
addons:
postgresql: '9.3'
before_install:
- gem update --system
before_script:
- createdb pliny-gem-test
sudo: false
cache: bundler
notifications:
email: false
script: bundle exec rake
| language: ruby
rvm:
- 2.5
- 2.4
- 2.3
- 2.2
env:
- SINATRA_MAJOR=1
- SINATRA_MAJOR=2
addons:
postgresql: '9.3'
before_install:
- gem update --system
before_script:
- createdb pliny-gem-test
sudo: false
cache: bundler
notifications:
email: false
script: bundle exec rake
| Build against the most recent versions of Ruby | Build against the most recent versions of Ruby
| YAML | mit | interagent/pliny,interagent/pliny,interagent/pliny | yaml | ## Code Before:
language: ruby
rvm:
- 2.4.0
- 2.3.3
- 2.2.2
env:
- SINATRA_MAJOR=1
- SINATRA_MAJOR=2
addons:
postgresql: '9.3'
before_install:
- gem update --system
before_script:
- createdb pliny-gem-test
sudo: false
cache: bundler
notifications:
email: false
script: bundle exec rake
## Instruction:... | language: ruby
rvm:
+ - 2.5
- - 2.4.0
? --
+ - 2.4
- - 2.3.3
? --
+ - 2.3
- - 2.2.2
? --
+ - 2.2
env:
- SINATRA_MAJOR=1
- SINATRA_MAJOR=2
addons:
postgresql: '9.3'
before_install:
- gem update --system
before_script:
- createdb pliny-gem-test
sudo:... | 7 | 0.368421 | 4 | 3 |
35c0252ddb0931aded3ffb117bf3d6d5614c9320 | app/modules/teams/teams.reducer.js | app/modules/teams/teams.reducer.js | import { fromJS, Record, List } from 'immutable';
import { createReducer } from 'reduxsauce';
import { teamsActionsTypes } from './teams.actions';
const StateRecord = new Record({
list: List(),
rangeValues: fromJS({
min: 0,
max: 600,
}),
});
const INITIAL_STATE = new StateRecord();
const getSuccessHan... | import { fromJS, Record, List } from 'immutable';
import { createReducer } from 'reduxsauce';
import { teamsActionsTypes } from './teams.actions';
const StateRecord = new Record({
list: List(),
rangeValues: fromJS({
min: 0,
max: 600,
}),
error: null,
});
const INITIAL_STATE = new StateRecord();
cons... | Add team fetching error handling | Add team fetching error handling
| JavaScript | mit | ellheat/devtalk-testing-exercise,ellheat/devtalk-testing-exercise | javascript | ## Code Before:
import { fromJS, Record, List } from 'immutable';
import { createReducer } from 'reduxsauce';
import { teamsActionsTypes } from './teams.actions';
const StateRecord = new Record({
list: List(),
rangeValues: fromJS({
min: 0,
max: 600,
}),
});
const INITIAL_STATE = new StateRecord();
con... | import { fromJS, Record, List } from 'immutable';
import { createReducer } from 'reduxsauce';
import { teamsActionsTypes } from './teams.actions';
const StateRecord = new Record({
list: List(),
rangeValues: fromJS({
min: 0,
max: 600,
}),
+ error: null,
});
const INITIAL_ST... | 11 | 0.458333 | 7 | 4 |
64a1aa4f12b3d285b2dd4ba534f814ed11b0c8f2 | src/js/geometry/box-geometry.js | src/js/geometry/box-geometry.js | 'use strict';
module.exports = function addBoxGeometry( geometry, width, height, depth, dx, dy, dz ) {
dx = dx || 0;
dy = dy || 0;
dz = dz || 0;
var halfWidth = width / 2;
var halfHeight = height / 2;
var halfDepth = depth / 2;
var vertices = [
// Counterclockwise from far left.
// Bottom.
... | 'use strict';
module.exports = function addBoxGeometry( geometry, width, height, depth ) {
var halfWidth = width / 2;
var halfHeight = height / 2;
var halfDepth = depth / 2;
var vertices = [
// Counterclockwise from far left.
// Bottom.
-halfWidth, -halfHeight, -halfDepth,
-halfWidth, -halfH... | Remove box geometry offset arguments. | Remove box geometry offset arguments.
| JavaScript | mit | js13kGames/Roulette,js13kGames/Roulette,razh/js13k-2015,razh/js13k-2015,Hitman666/js13k-2015,Hitman666/js13k-2015 | javascript | ## Code Before:
'use strict';
module.exports = function addBoxGeometry( geometry, width, height, depth, dx, dy, dz ) {
dx = dx || 0;
dy = dy || 0;
dz = dz || 0;
var halfWidth = width / 2;
var halfHeight = height / 2;
var halfDepth = depth / 2;
var vertices = [
// Counterclockwise from far left.
... | 'use strict';
- module.exports = function addBoxGeometry( geometry, width, height, depth, dx, dy, dz ) {
? ------------
+ module.exports = function addBoxGeometry( geometry, width, height, depth ) {
- dx = dx || 0;
- dy = dy || 0;
- dz ... | 12 | 0.26087 | 1 | 11 |
5b3794d380f90a1822a5b3245adae0e2f8ec0698 | test/primitives.sh | test/primitives.sh | describe "Primitives"
it_performs_addition() {
result=$(bin/lishp "(+ 1 3 9)")
test "$result" = "13"
}
it_performs_subtraction() {
result=$(bin/lishp "(- 9 3 1)")
test "$result" = "5"
}
it_performs_subtraction_below_zero() {
result=$(bin/lishp "(- 1 3 9)")
test "$result" = "-11"
}
it_perform... | describe "Primitives"
it_performs_addition() {
result=$(bin/lishp "(+ 1 3 9)")
test "$result" = "13"
}
it_performs_addition_with_negative_numbers() {
result=$(bin/lishp "(+ -1 3)")
test "$result" = "2"
}
it_performs_subtraction() {
result=$(bin/lishp "(- 9 3 1)")
test "$result" = "5"
}
it_pe... | Add extra tests for negative numbers | Add extra tests for negative numbers
| Shell | mit | wildlyinaccurate/lishp | shell | ## Code Before:
describe "Primitives"
it_performs_addition() {
result=$(bin/lishp "(+ 1 3 9)")
test "$result" = "13"
}
it_performs_subtraction() {
result=$(bin/lishp "(- 9 3 1)")
test "$result" = "5"
}
it_performs_subtraction_below_zero() {
result=$(bin/lishp "(- 1 3 9)")
test "$result" = "-1... | describe "Primitives"
it_performs_addition() {
result=$(bin/lishp "(+ 1 3 9)")
test "$result" = "13"
}
+ it_performs_addition_with_negative_numbers() {
+ result=$(bin/lishp "(+ -1 3)")
+ test "$result" = "2"
+ }
+
it_performs_subtraction() {
result=$(bin/lishp "(- 9 3 1)")
... | 10 | 0.277778 | 10 | 0 |
072610872e32a477c01679d44be858a1031b2077 | README.md | README.md | Fast cached text rendering.
## [gfx_glyph](gfx-glyph) [](https://crates.io/crates/gfx_glyph) [](https://docs.rs/gfx_glyph)
Text rendering for [gfx-rs](https://github.com/gfx-rs/gfx/tree/pre-ll).
## [glyph_brush](glyph-brush) [ [](https://crates.io/crates/gfx_glyph) [](https://docs.rs/gfx_glyph)
Text rendering for [gfx-rs](https://github.com/gfx-rs/gfx/tree/pre-ll).
## [glyph_brush](glyph-brush) [ [](https://crates.io/crates/gfx_glyph) [](https://docs.rs/gfx_glyph)
Text rendering for [gfx-rs](https://github.com/gfx-rs/gfx/tree/pre-ll).
## [glyph_brush](... | Fast cached text rendering.
## [gfx_glyph](gfx-glyph) [](https://crates.io/crates/gfx_glyph) [](https://docs.rs/gfx_glyph)
Text rendering for [gfx-rs](https://github.com/gfx-rs/gfx/tree/pre-ll).
## [glyph_brush](glyp... | 2 | 0.111111 | 1 | 1 |
d798bc0b3283477b5f3179c0c07b804eac59822f | docker/setup.sh | docker/setup.sh |
TARBALL_EXISTS=false
if [[ -e ~/docker/digdag-build.tar.gz ]]; then
TARBALL_EXISTS=true
gunzip -c ~/docker/digdag-build.tar.gz | docker load
fi
IMAGE_ID_PRE=$(docker inspect --format="{{.Id}}" digdag-build)
cd "$(dirname "$0")"
docker build -t digdag-build .
mkdir -p ~/docker/
IMAGE_ID_POST=$(docker inspec... |
TARBALL_EXISTS=false
if [[ -e ~/docker/digdag-build.tar.gz ]]; then
TARBALL_EXISTS=true
gunzip -c ~/docker/digdag-build.tar.gz | docker load
IMAGE_ID_PRE=$(docker inspect --format="{{.Id}}" digdag-build)
else
IMAGE_ID_PRE=''
fi
cd "$(dirname "$0")"
docker build -t digdag-build .
mkdir -p ~/docker/
I... | Call `docker inspect` only after calling `docker load` | Call `docker inspect` only after calling `docker load`
| Shell | apache-2.0 | treasure-data/digdag,treasure-data/digdag,treasure-data/digdag,treasure-data/digdag,treasure-data/digdag,treasure-data/digdag,treasure-data/digdag | shell | ## Code Before:
TARBALL_EXISTS=false
if [[ -e ~/docker/digdag-build.tar.gz ]]; then
TARBALL_EXISTS=true
gunzip -c ~/docker/digdag-build.tar.gz | docker load
fi
IMAGE_ID_PRE=$(docker inspect --format="{{.Id}}" digdag-build)
cd "$(dirname "$0")"
docker build -t digdag-build .
mkdir -p ~/docker/
IMAGE_ID_POST... |
TARBALL_EXISTS=false
if [[ -e ~/docker/digdag-build.tar.gz ]]; then
TARBALL_EXISTS=true
gunzip -c ~/docker/digdag-build.tar.gz | docker load
+ IMAGE_ID_PRE=$(docker inspect --format="{{.Id}}" digdag-build)
+ else
+ IMAGE_ID_PRE=''
fi
-
- IMAGE_ID_PRE=$(docker inspect --format="{{.Id}}" ... | 5 | 0.217391 | 3 | 2 |
cb68183a0ef361d8297a0073a1a1e066666afe62 | src/reducers/name-reducer.js | src/reducers/name-reducer.js | import { ADD_ACCEPT_NAME, ADD_REJECT_NAME } from '../actions/name-actions';
const initialState = {
accepted: [],
rejected: []
}
export default function (state = initialState, action) {
switch (action.type) {
case ADD_ACCEPT_NAME: {
console.log(...state);
console.log(...st... | import { ADD_ACCEPT_NAME, ADD_REJECT_NAME, GET_NAMES, INCREMENT, RESTART } from '../actions/name-actions';
import { Shuffle } from 'lodash';
import names from '../data/names.json';
console.log(names)
const initialState = {
//names: (typeof localStorage["gender"] != "undefined") ? Shuffle(names[JSON.parse(localS... | Add increment and restart methods | Add increment and restart methods
| JavaScript | apache-2.0 | johnbrowe/barnanavn,johnbrowe/barnanavn,johnbrowe/barnanavn | javascript | ## Code Before:
import { ADD_ACCEPT_NAME, ADD_REJECT_NAME } from '../actions/name-actions';
const initialState = {
accepted: [],
rejected: []
}
export default function (state = initialState, action) {
switch (action.type) {
case ADD_ACCEPT_NAME: {
console.log(...state);
c... | - import { ADD_ACCEPT_NAME, ADD_REJECT_NAME } from '../actions/name-actions';
+ import { ADD_ACCEPT_NAME, ADD_REJECT_NAME, GET_NAMES, INCREMENT, RESTART } from '../actions/name-actions';
? +++++++++++++++++++++++++++++++
+ import { Shuffle } from 'lodash';
+ import names f... | 39 | 1.258065 | 32 | 7 |
f2495c45cd095ec69836bd6a4ca2841588050b75 | core/components/handler/handler_test.go | core/components/handler/handler_test.go | // Copyright © 2015 The Things Network
// Use of this source code is governed by the MIT license that can be found in the LICENSE file.
package handler
import (
"testing"
// . "github.com/TheThingsNetwork/ttn/utils/testing"
)
func TestRegister(t *testing.T) {
}
func TestHandleDown(t *testing.T) {
}
func TestHan... | // Copyright © 2015 The Things Network
// Use of this source code is governed by the MIT license that can be found in the LICENSE file.
package handler
| Remove unecessary lines to make travis build | [test-handler] Remove unecessary lines to make travis build
| Go | mit | jvanmalder/ttn,LoRaWanSoFa/ttn,TheThingsNetwork/ttn,mgranberry/ttn,jvanmalder/ttn,TheThingsNetwork/ttn,mgranberry/ttn,TheThingsNetwork/ttn,mgranberry/ttn,jvanmalder/ttn,LoRaWanSoFa/ttn | go | ## Code Before:
// Copyright © 2015 The Things Network
// Use of this source code is governed by the MIT license that can be found in the LICENSE file.
package handler
import (
"testing"
// . "github.com/TheThingsNetwork/ttn/utils/testing"
)
func TestRegister(t *testing.T) {
}
func TestHandleDown(t *testing.T) {... | // Copyright © 2015 The Things Network
// Use of this source code is governed by the MIT license that can be found in the LICENSE file.
package handler
-
- import (
- "testing"
-
- // . "github.com/TheThingsNetwork/ttn/utils/testing"
- )
-
- func TestRegister(t *testing.T) {
- }
-
- func TestHandleDown(t... | 15 | 0.789474 | 0 | 15 |
04fa3a9fd61cc83c23ddd59ea474bd45cd2a1e8c | tests/__init__.py | tests/__init__.py |
from __future__ import unicode_literals
from __future__ import absolute_import
from os.path import join, realpath
import fs
# Add the local code directory to the `fs` module path
fs.__path__.insert(0, realpath(join(__file__, "..", "..", "fs")))
|
from __future__ import unicode_literals
from __future__ import absolute_import
from os.path import join, realpath
import fs
# Add the local code directory to the `fs` module path
# Can only rely on fs.__path__ being an iterable - on windows it's not a list
newPath = list(fs.__path__)
newPath.insert(0, realpath(join... | Make namespace packages work for tests in windows | Make namespace packages work for tests in windows
| Python | mit | rkhwaja/fs.onedrivefs | python | ## Code Before:
from __future__ import unicode_literals
from __future__ import absolute_import
from os.path import join, realpath
import fs
# Add the local code directory to the `fs` module path
fs.__path__.insert(0, realpath(join(__file__, "..", "..", "fs")))
## Instruction:
Make namespace packages work for tests... |
from __future__ import unicode_literals
from __future__ import absolute_import
from os.path import join, realpath
import fs
# Add the local code directory to the `fs` module path
+ # Can only rely on fs.__path__ being an iterable - on windows it's not a list
+ newPath = list(fs.__path__)
- fs.__pa... | 5 | 0.5 | 4 | 1 |
297a346983d1353b4eaa82ca25cfae88a2eed208 | app/js/directives/morph_form.js | app/js/directives/morph_form.js | annotationApp.directive('morphForm', function() {
return {
restrict: 'E',
scope: true,
templateUrl: 'templates/morph_form.html'
};
});
| "use strict";
annotationApp.directive('morphForm', function() {
return {
restrict: 'E',
scope: true,
templateUrl: 'templates/morph_form.html'
};
});
| Use strict in morphForm directive | Use strict in morphForm directive
| JavaScript | mit | PonteIneptique/arethusa,latin-language-toolkit/arethusa,Masoumeh/arethusa,alpheios-project/arethusa,alpheios-project/arethusa,alpheios-project/arethusa,Masoumeh/arethusa,fbaumgardt/arethusa,latin-language-toolkit/arethusa,PonteIneptique/arethusa,fbaumgardt/arethusa,fbaumgardt/arethusa | javascript | ## Code Before:
annotationApp.directive('morphForm', function() {
return {
restrict: 'E',
scope: true,
templateUrl: 'templates/morph_form.html'
};
});
## Instruction:
Use strict in morphForm directive
## Code After:
"use strict";
annotationApp.directive('morphForm', function() {
return {
restri... | + "use strict";
+
annotationApp.directive('morphForm', function() {
return {
restrict: 'E',
scope: true,
templateUrl: 'templates/morph_form.html'
};
}); | 2 | 0.285714 | 2 | 0 |
684bc7c2200f770a9d5307af1ff58a1ece82d4f1 | cmd/cloud_sql_proxy/build.sh | cmd/cloud_sql_proxy/build.sh |
VERSION=1.01
CGO_ENABLED=0 GOOS=linux go build -ldflags "-X main.versionString=$VERSION" -a -installsuffix cgo -o cloud_sql_proxy .
|
files=$(git status -s)
if [[ $? != 0 ]]; then
echo >&2 "Error running git status"
exit 2
fi
if [[ "$1" == "release" ]]; then
if [[ "$files" != "" ]]; then
echo >&2 "Can't build a release version with local edits; files:"
echo >&2 "$files"
exit 1
fi
if [[ "$2" == "" ]]; then
echo >&2 "Must p... | Add sha and date to the version string. | Add sha and date to the version string.
Also made the release version a parameter.
| Shell | apache-2.0 | syoya/cloudsql-proxy,digiexchris/cloudsql-proxy,syoya/cloudsql-proxy,pdecat/cloudsql-proxy,digiexchris/cloudsql-proxy,ankushagarwal/cloudsql-proxy,GoogleCloudPlatform/cloud-sql-proxy,pdecat/cloudsql-proxy,ankushagarwal/cloudsql-proxy,GoogleCloudPlatform/cloud-sql-proxy | shell | ## Code Before:
VERSION=1.01
CGO_ENABLED=0 GOOS=linux go build -ldflags "-X main.versionString=$VERSION" -a -installsuffix cgo -o cloud_sql_proxy .
## Instruction:
Add sha and date to the version string.
Also made the release version a parameter.
## Code After:
files=$(git status -s)
if [[ $? != 0 ]]; then
echo... |
- VERSION=1.01
+ files=$(git status -s)
+ if [[ $? != 0 ]]; then
+ echo >&2 "Error running git status"
+ exit 2
+ fi
+
+ if [[ "$1" == "release" ]]; then
+ if [[ "$files" != "" ]]; then
+ echo >&2 "Can't build a release version with local edits; files:"
+ echo >&2 "$files"
+ exit 1
+ fi
+ i... | 25 | 6.25 | 24 | 1 |
8a5b0affa1d383325e378f2129182d95de7a9eaa | .travis.yml | .travis.yml | language: vim
before_script: |
git clone https://github.com/junegunn/vader.vim.git
git clone https://github.com/kana/vim-textobj-user/
script: |
vim -Nu <(cat << VIMRC
filetype off
set rtp+=vader.vim
set rtp+=vim-textobj-user
set rtp+=.
set rtp+=after
filetype plugin indent on
VIMRC) -c 'Vader! te... | language: vim
before_script: |
git clone https://github.com/junegunn/vader.vim.git
git clone https://github.com/kana/vim-textobj-user/
script: |
vim -Nu <(cat << VIMRC
filetype off
set rtp+=vader.vim
set rtp+=vim-textobj-user
set rtp+=.
set rtp+=after
filetype plugin indent on
VIMRC) -c 'Vader! te... | Use Travis CI container infrastructure. | Use Travis CI container infrastructure.
Fixes #12.
| YAML | mit | bps/vim-textobj-python,bps/vim-textobj-python | yaml | ## Code Before:
language: vim
before_script: |
git clone https://github.com/junegunn/vader.vim.git
git clone https://github.com/kana/vim-textobj-user/
script: |
vim -Nu <(cat << VIMRC
filetype off
set rtp+=vader.vim
set rtp+=vim-textobj-user
set rtp+=.
set rtp+=after
filetype plugin indent on
VIMR... | language: vim
before_script: |
git clone https://github.com/junegunn/vader.vim.git
git clone https://github.com/kana/vim-textobj-user/
script: |
vim -Nu <(cat << VIMRC
filetype off
set rtp+=vader.vim
set rtp+=vim-textobj-user
set rtp+=.
set rtp+=after
filetype plugin inde... | 2 | 0.133333 | 2 | 0 |
9aaf43273bd0af0d036951507e3ddf7706a79897 | gradle.properties | gradle.properties | // **********************************************************************
//
// Copyright (c) 2003-present ZeroC, Inc. All rights reserved.
//
// **********************************************************************
//
// Gradle build properties
//
// Set these when publishing to
mavenRepository = https://oss.sonaty... | // **********************************************************************
//
// Copyright (c) 2003-present ZeroC, Inc. All rights reserved.
//
// **********************************************************************
//
// Gradle build properties
//
// Set these when publishing to
mavenRepository =
mavenUsername =
ma... | Remove maven repo from properties | Remove maven repo from properties
| INI | bsd-3-clause | zeroc-ice/ice-builder-ant | ini | ## Code Before:
// **********************************************************************
//
// Copyright (c) 2003-present ZeroC, Inc. All rights reserved.
//
// **********************************************************************
//
// Gradle build properties
//
// Set these when publishing to
mavenRepository = ht... | // **********************************************************************
//
// Copyright (c) 2003-present ZeroC, Inc. All rights reserved.
//
// **********************************************************************
//
// Gradle build properties
//
// Set these when publishing to
- mavenReposit... | 2 | 0.142857 | 1 | 1 |
8279a423f32db7bbe22b88ff691c03dd6bced8ad | UITableViewDataSource-RACExtensions.podspec | UITableViewDataSource-RACExtensions.podspec | Pod::Spec.new do |s|
s.name = "UITableViewDataSource-RACExtensions"
s.version = File.read('VERSION')
s.summary = "RACify your UITableViewDataSource"
s.description = <<-DESC
UITableViewDataSource-RACExtensions adds a single method
t... | Pod::Spec.new do |s|
s.name = "UITableViewDataSource-RACExtensions"
s.version = File.read('VERSION')
s.summary = "RACify your UITableViewDataSource"
s.description = <<-DESC
UITableViewDataSource-RACExtensions adds a single method
t... | Configure platform to be iOS 5.0 | Configure platform to be iOS 5.0
| Ruby | mit | michaelavila/UITableViewDataSource-RACExtensions | ruby | ## Code Before:
Pod::Spec.new do |s|
s.name = "UITableViewDataSource-RACExtensions"
s.version = File.read('VERSION')
s.summary = "RACify your UITableViewDataSource"
s.description = <<-DESC
UITableViewDataSource-RACExtensions adds a single method
... | Pod::Spec.new do |s|
s.name = "UITableViewDataSource-RACExtensions"
s.version = File.read('VERSION')
s.summary = "RACify your UITableViewDataSource"
s.description = <<-DESC
UITableViewDataSource-RACExtensions adds a single method
... | 4 | 0.142857 | 1 | 3 |
e916d0fea3511b2d65a2ff9163608be7a659316c | lib/brightbox-cli/config/cache.rb | lib/brightbox-cli/config/cache.rb | module Brightbox
module Config
module Cache
def cache_path
if @cache_path
@cache_path
else
@cache_path = File.join(config_directory, 'cache')
unless File.exist? @cache_path
begin
FileUtils.mkpath @cache_path
rescue Errno::EE... | module Brightbox
module Config
module Cache
def cache_path
File.join(config_directory, "cache")
end
def cache_id(cid)
return if cid.nil?
unless File.exist?(cache_path)
begin
FileUtils.mkpath(cache_path)
rescue Errno::EEXIST
end
... | Fix caching attempts when directory missing | Fix caching attempts when directory missing
Running specs in a random order could trigger a number of failures
related to naughty API classes attempting to cache IDs whilst the
directory used did not exist.
This alters the `#cache_path` method to be read only without side effect
and creates it when `#cache_id` is ca... | Ruby | mit | brightbox/brightbox-cli,brightbox/brightbox-cli | ruby | ## Code Before:
module Brightbox
module Config
module Cache
def cache_path
if @cache_path
@cache_path
else
@cache_path = File.join(config_directory, 'cache')
unless File.exist? @cache_path
begin
FileUtils.mkpath @cache_path
... | module Brightbox
module Config
module Cache
def cache_path
- if @cache_path
- @cache_path
- else
- @cache_path = File.join(config_directory, 'cache')
? ---------------- ^ ^
+ File.join(config_directory, "cache")
? ... | 20 | 0.833333 | 8 | 12 |
c15d2ed2064c86f7dae81d3d28e096b2fb472294 | template/helper/forkOnGithub.php | template/helper/forkOnGithub.php | <?php
final class forkOnGithub
{
private $githubRepo;
public function __construct(\Bookdown\Bookdown\Config\IndexConfig $config)
{
$default = 'https://github.com/prooph/proophessor';
if($config->isRemote()) {
$this->githubRepo = $this->extractGithubRepo($config, $default);
... | <?php
final class forkOnGithub
{
private $githubRepo;
public function __construct(\Bookdown\Bookdown\Config\IndexConfig $config)
{
$default = 'https://github.com/prooph/proophessor';
if($config->isRemote()) {
$this->githubRepo = $this->extractGithubRepo($config, $default);
... | Return default if no match | Return default if no match
| PHP | bsd-3-clause | prooph/proophessor | php | ## Code Before:
<?php
final class forkOnGithub
{
private $githubRepo;
public function __construct(\Bookdown\Bookdown\Config\IndexConfig $config)
{
$default = 'https://github.com/prooph/proophessor';
if($config->isRemote()) {
$this->githubRepo = $this->extractGithubRepo($config,... | <?php
final class forkOnGithub
{
private $githubRepo;
public function __construct(\Bookdown\Bookdown\Config\IndexConfig $config)
{
$default = 'https://github.com/prooph/proophessor';
if($config->isRemote()) {
$this->githubRepo = $this->extractGithubRepo($c... | 2 | 0.064516 | 1 | 1 |
f26c7e92128eee2e07552e7dbc4f99e3bd42e311 | .travis.yml | .travis.yml | language: groovy
jdk:
- oraclejdk8
- oraclejdk7
install: ./gradlew assemble --stacktrace --info
script: ./gradlew check --stacktrace --info --continue
| language: groovy
jdk:
- oraclejdk8
install: ./gradlew assemble --stacktrace --info
script: ./gradlew check --stacktrace --info --continue
| Disable Travis build with Java 7 | Disable Travis build with Java 7
| YAML | apache-2.0 | szpak/mockito-java8 | yaml | ## Code Before:
language: groovy
jdk:
- oraclejdk8
- oraclejdk7
install: ./gradlew assemble --stacktrace --info
script: ./gradlew check --stacktrace --info --continue
## Instruction:
Disable Travis build with Java 7
## Code After:
language: groovy
jdk:
- oraclejdk8
install: ./gradlew assemble --stacktrace --i... | language: groovy
jdk:
- oraclejdk8
- - oraclejdk7
install: ./gradlew assemble --stacktrace --info
script: ./gradlew check --stacktrace --info --continue | 1 | 0.142857 | 0 | 1 |
caa51e402c3b5637a3c344da634941309bbee880 | tools/gce_setup/cloud_prod_runner.sh | tools/gce_setup/cloud_prod_runner.sh |
main() {
source grpc_docker.sh
test_cases=(large_unary empty_unary client_streaming server_streaming service_account_creds compute_engine_creds)
clients=(cxx java go ruby node)
for test_case in "${test_cases[@]}"
do
for client in "${clients[@]}"
do
if grpc_cloud_prod_test $test_case grpc-docker... |
main() {
source grpc_docker.sh
test_cases=(large_unary empty_unary ping_pong client_streaming server_streaming service_account_creds compute_engine_creds)
clients=(cxx java go ruby node)
for test_case in "${test_cases[@]}"
do
for client in "${clients[@]}"
do
if grpc_cloud_prod_test $test_case g... | Add back a missing test | Add back a missing test
| Shell | apache-2.0 | wkubiak/grpc,jtattermusch/grpc,nmittler/grpc,wcevans/grpc,donnadionne/grpc,adelez/grpc,kskalski/grpc,pmarks-net/grpc,thinkerou/grpc,ejona86/grpc,quizlet/grpc,Juzley/grpc,meisterpeeps/grpc,yugui/grpc,7anner/grpc,madongfly/grpc,muxi/grpc,donnadionne/grpc,wangyikai/grpc,JoeWoo/grpc,arkmaxim/grpc,matt-kwong/grpc,doubi-work... | shell | ## Code Before:
main() {
source grpc_docker.sh
test_cases=(large_unary empty_unary client_streaming server_streaming service_account_creds compute_engine_creds)
clients=(cxx java go ruby node)
for test_case in "${test_cases[@]}"
do
for client in "${clients[@]}"
do
if grpc_cloud_prod_test $test_... |
main() {
source grpc_docker.sh
- test_cases=(large_unary empty_unary client_streaming server_streaming service_account_creds compute_engine_creds)
+ test_cases=(large_unary empty_unary ping_pong client_streaming server_streaming service_account_creds compute_engine_creds)
? ... | 2 | 0.086957 | 1 | 1 |
b1b4f90e1cc5efbd1fcd461d90beecea871a929a | website/app/application/services/tags.js | website/app/application/services/tags.js | Application.Services.factory('tags', ["mcapi",
function tags(mcapi) {
var service = {
tags: [],
createTag: function (tag, item_id) {
mcapi('/tags/item/%', item_id)
.success(function (tag) {
return tag;
}... | Application.Services.factory('tags', ["mcapi",
function tags(mcapi) {
return {
tags: [],
createTag: function (tag, item_id) {
mcapi('/tags/item/%', item_id)
.success(function (tag) {
return tag;
}).post(... | Remove variable declaration for service and just return the object. | Remove variable declaration for service and just return the object.
| JavaScript | mit | materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org | javascript | ## Code Before:
Application.Services.factory('tags', ["mcapi",
function tags(mcapi) {
var service = {
tags: [],
createTag: function (tag, item_id) {
mcapi('/tags/item/%', item_id)
.success(function (tag) {
return tag;
... | Application.Services.factory('tags', ["mcapi",
function tags(mcapi) {
- var service = {
+ return {
tags: [],
createTag: function (tag, item_id) {
mcapi('/tags/item/%', item_id)
.success(function (tag) {
... | 3 | 0.142857 | 1 | 2 |
0d8dbaef6428f20066c333b4b4c57931125752d7 | Tests/Person.swift | Tests/Person.swift | //
// Person.swift
// FreddyTests
//
// Created by Matthew D. Mathias on 3/21/15.
// Copyright © 2015 Big Nerd Ranch. Licensed under MIT.
//
import Freddy
public struct Person: CustomStringConvertible {
public enum EyeColor: String {
case Brown = "brown"
case Blue = "blue"
case Green =... | //
// Person.swift
// FreddyTests
//
// Created by Matthew D. Mathias on 3/21/15.
// Copyright © 2015 Big Nerd Ranch. Licensed under MIT.
//
import Freddy
public struct Person: CustomStringConvertible {
public enum EyeColor: String {
case Brown = "brown"
case Blue = "blue"
case Green =... | Use toJSON() on enum type | Use toJSON() on enum type
| Swift | mit | pbardea/Freddy,pbardea/Freddy,bignerdranch/Freddy,bignerdranch/Freddy,bignerdranch/Freddy,bignerdranch/Freddy,pbardea/Freddy | swift | ## Code Before:
//
// Person.swift
// FreddyTests
//
// Created by Matthew D. Mathias on 3/21/15.
// Copyright © 2015 Big Nerd Ranch. Licensed under MIT.
//
import Freddy
public struct Person: CustomStringConvertible {
public enum EyeColor: String {
case Brown = "brown"
case Blue = "blue"
... | //
// Person.swift
// FreddyTests
//
// Created by Matthew D. Mathias on 3/21/15.
// Copyright © 2015 Big Nerd Ranch. Licensed under MIT.
//
import Freddy
public struct Person: CustomStringConvertible {
public enum EyeColor: String {
case Brown = "brown"
case Blue =... | 2 | 0.045455 | 1 | 1 |
7d50fbdb45ca5671f6613a9bfa62330178471dd6 | app/controllers/registration_forms_controller.rb | app/controllers/registration_forms_controller.rb | require 'pdf_form_filler'
require 'yaml'
class RegistrationFormsController < ApplicationController
def show
respond_to do |format|
format.pdf do
pdf = RegistrationForm.new(co).to_pdf
send_data(pdf, :filename => "#{co.name} Registration Form.pdf",
:type => 'application/pdf', :disp... | require 'pdf_form_filler'
require 'yaml'
class RegistrationFormsController < ApplicationController
def show
respond_to do |format|
format.pdf do
pdf = RegistrationForm.new(co).to_pdf
send_data(pdf, :filename => "#{co.name} Registration Form.pdf",
:type => 'application/pdf', :disp... | Fix that current signatories selection was not shown on registration_forms/edit. | Fix that current signatories selection was not shown on registration_forms/edit.
| Ruby | agpl-3.0 | oneclickorgs/one-click-orgs,oneclickorgs/one-click-orgs,oneclickorgs/one-click-orgs,oneclickorgs/one-click-orgs | ruby | ## Code Before:
require 'pdf_form_filler'
require 'yaml'
class RegistrationFormsController < ApplicationController
def show
respond_to do |format|
format.pdf do
pdf = RegistrationForm.new(co).to_pdf
send_data(pdf, :filename => "#{co.name} Registration Form.pdf",
:type => 'applica... | require 'pdf_form_filler'
require 'yaml'
class RegistrationFormsController < ApplicationController
def show
respond_to do |format|
format.pdf do
pdf = RegistrationForm.new(co).to_pdf
send_data(pdf, :filename => "#{co.name} Registration Form.pdf",
:type => 'a... | 3 | 0.088235 | 2 | 1 |
2a3b8e1d28e3c8a9252888ec1bf5a801b22e8683 | .vscode/settings.json | .vscode/settings.json | {
// Important to disable for EditorConfig to apply correctly
// See: https://github.com/editorconfig/editorconfig-vscode/issues/153
"files.trimTrailingWhitespace": false,
// Markdown table of contents generation
"markdown.extension.toc.levels": "2..2",
"markdown.extension.toc.githubCompatibili... | {
// Important to disable for EditorConfig to apply correctly
// See: https://github.com/editorconfig/editorconfig-vscode/issues/153
"files.trimTrailingWhitespace": false,
// Markdown table of contents generation
"markdown.extension.toc.levels": "2..2",
"markdown.extension.toc.slugifyMode": "gi... | Update markdown ToC slugify mode | Update markdown ToC slugify mode
| JSON | mit | ralish/PSWinGlue | json | ## Code Before:
{
// Important to disable for EditorConfig to apply correctly
// See: https://github.com/editorconfig/editorconfig-vscode/issues/153
"files.trimTrailingWhitespace": false,
// Markdown table of contents generation
"markdown.extension.toc.levels": "2..2",
"markdown.extension.toc.g... | {
// Important to disable for EditorConfig to apply correctly
// See: https://github.com/editorconfig/editorconfig-vscode/issues/153
"files.trimTrailingWhitespace": false,
// Markdown table of contents generation
"markdown.extension.toc.levels": "2..2",
- "markdown.extension.toc.g... | 2 | 0.181818 | 1 | 1 |
2f6cecc9a4a465daf3bc5b28dae260cae155ac19 | optionals.txt | optionals.txt | markdown>=2.1.0
PyYAML>=3.10
-e git+https://github.com/alex/django-filter.git@0e4b3d703b31574922ab86fc78a86164aad0c1d0#egg=django-filter
| markdown>=2.1.0
PyYAML>=3.10
django-filter>=0.5.4
| Update django-filter to released version. | Update django-filter to released version.
| Text | bsd-2-clause | nhorelik/django-rest-framework,rhblind/django-rest-framework,hnarayanan/django-rest-framework,jpadilla/django-rest-framework,AlexandreProenca/django-rest-framework,tigeraniya/django-rest-framework,yiyocx/django-rest-framework,kennydude/django-rest-framework,maryokhin/django-rest-framework,linovia/django-rest-framework,... | text | ## Code Before:
markdown>=2.1.0
PyYAML>=3.10
-e git+https://github.com/alex/django-filter.git@0e4b3d703b31574922ab86fc78a86164aad0c1d0#egg=django-filter
## Instruction:
Update django-filter to released version.
## Code After:
markdown>=2.1.0
PyYAML>=3.10
django-filter>=0.5.4
| markdown>=2.1.0
PyYAML>=3.10
- -e git+https://github.com/alex/django-filter.git@0e4b3d703b31574922ab86fc78a86164aad0c1d0#egg=django-filter
+ django-filter>=0.5.4 | 2 | 0.666667 | 1 | 1 |
85c2e767ef5d5523eb04c1aed3b25b8a81b5219e | README.md | README.md | [](https://travis-ci.org/obsidian-toaster/platform)
Tools used to build Obsidian (quickstart -> archetype, ...)
Fabric8 Project : https://github.com/fabric8io/ipaas-quickstarts/blob/master/ReadMe.md
## Generate the archetypes
* To bui... | [](https://travis-ci.org/obsidian-toaster/platform)
Tools used to build Obsidian (quickstart -> archetype, ...)
Fabric8 Project : https://github.com/fabric8io/ipaas-quickstarts/blob/master/ReadMe.md
## Generate the archetypes
* To bui... | Add some info about the tooling folder | Add some info about the tooling folder
| Markdown | apache-2.0 | obsidian-toaster/platform,obsidian-toaster/platform,obsidian-toaster/platform | markdown | ## Code Before:
[](https://travis-ci.org/obsidian-toaster/platform)
Tools used to build Obsidian (quickstart -> archetype, ...)
Fabric8 Project : https://github.com/fabric8io/ipaas-quickstarts/blob/master/ReadMe.md
## Generate the arch... | [](https://travis-ci.org/obsidian-toaster/platform)
Tools used to build Obsidian (quickstart -> archetype, ...)
Fabric8 Project : https://github.com/fabric8io/ipaas-quickstarts/blob/master/ReadMe.md
## Generate the archet... | 4 | 0.153846 | 4 | 0 |
821fcb95bb1dbfc35b93fe24396ab0345fdf6549 | Crust/TestModel.swift | Crust/TestModel.swift | //
// TestModel.swift
// Crust
//
// Created by Justin Spahr-Summers on 2014-06-23.
// Copyright (c) 2014 Justin Spahr-Summers. All rights reserved.
//
import Foundation
struct TestModel {
static let name = PropertyOf<String>("name")
static let createdAt = PropertyOf<NSDate>("createdAt")
static let properties ... | //
// TestModel.swift
// Crust
//
// Created by Justin Spahr-Summers on 2014-06-23.
// Copyright (c) 2014 Justin Spahr-Summers. All rights reserved.
//
import Foundation
struct TestModel {
static let name = PropertyOf<String>("name")
static let createdAt = PropertyOf<NSDate>("createdAt")
static let properties ... | Use self.dynamicType instead of hardcoding type | Use self.dynamicType instead of hardcoding type
| Swift | mit | jspahrsummers/Crust,sugar2010/Crust,jspahrsummers/Crust,sugar2010/Crust | swift | ## Code Before:
//
// TestModel.swift
// Crust
//
// Created by Justin Spahr-Summers on 2014-06-23.
// Copyright (c) 2014 Justin Spahr-Summers. All rights reserved.
//
import Foundation
struct TestModel {
static let name = PropertyOf<String>("name")
static let createdAt = PropertyOf<NSDate>("createdAt")
static... | //
// TestModel.swift
// Crust
//
// Created by Justin Spahr-Summers on 2014-06-23.
// Copyright (c) 2014 Justin Spahr-Summers. All rights reserved.
//
import Foundation
struct TestModel {
static let name = PropertyOf<String>("name")
static let createdAt = PropertyOf<NSDate>("createdAt... | 4 | 0.117647 | 2 | 2 |
c38a12c16651a76306ad6f302d584ac60b2c2f3f | config/initializers/metadata_mappings.rb | config/initializers/metadata_mappings.rb | Dir[Rails.root.join('vendor/mappings/**/*.rb')].each { |f| require f } |
Dir[Rails.root.join('vendor', 'mappings', '**{,/*/**}', '*.rb')].each do |f|
require f
end | Allow `require`-ing of vendored mappings to traverse symlinks | Allow `require`-ing of vendored mappings to traverse symlinks
This should make deployment potentially easier in some cases, especially when
working with a local working copy not in a VM.
| Ruby | mit | dpla/heidrun,dpla/heidrun,dpla/heidrun,dpla/heidrun | ruby | ## Code Before:
Dir[Rails.root.join('vendor/mappings/**/*.rb')].each { |f| require f }
## Instruction:
Allow `require`-ing of vendored mappings to traverse symlinks
This should make deployment potentially easier in some cases, especially when
working with a local working copy not in a VM.
## Code After:
Dir[Rails.ro... | +
- Dir[Rails.root.join('vendor/mappings/**/*.rb')].each { |f| require f }
? ^ ^ ^ ------------
+ Dir[Rails.root.join('vendor', 'mappings', '**{,/*/**}', '*.rb')].each do |f|
? ^^^^ ++++++++++ ^^^^^ ^^
+ require f
+... | 5 | 5 | 4 | 1 |
8bcbd841fabd86c9262bf5af4f703486f75bc811 | README.md | README.md | A Bukkit plugin for trailing someone's perspective.
| A Bukkit plugin for trailing someone's perspective.
## Contributors
* [graywolf336](https://github.com/graywolf336)
* [dawgeth](https://github.com/dawgeth) | Add the contributors to the readme. | Add the contributors to the readme.
| Markdown | mit | graywolf336/TrailingPerspective | markdown | ## Code Before:
A Bukkit plugin for trailing someone's perspective.
## Instruction:
Add the contributors to the readme.
## Code After:
A Bukkit plugin for trailing someone's perspective.
## Contributors
* [graywolf336](https://github.com/graywolf336)
* [dawgeth](https://github.com/dawgeth) | A Bukkit plugin for trailing someone's perspective.
+
+ ## Contributors
+ * [graywolf336](https://github.com/graywolf336)
+ * [dawgeth](https://github.com/dawgeth) | 4 | 4 | 4 | 0 |
861034d734c3f73b9c7b4ddca4953705f1741439 | app/controllers/questions_controller.rb | app/controllers/questions_controller.rb | get '/questions/new' do
binding.pry
@survey = Survey.find_by(id: params[:survey_id])
erb :"/questions/new"
end
# NEXT STEP: ADD Questions Post Route
| get '/questions/new' do
@survey = Survey.find_by(id: params[:survey_id])
erb :"/questions/new"
end
post '/questions' do
binding.pry
end
| Implement separation of created and available surveys on surveys/index | Implement separation of created and available surveys on surveys/index
| Ruby | mit | nyc-island-foxes-2016/space-chimps,nyc-island-foxes-2016/space-chimps,nyc-island-foxes-2016/space-chimps | ruby | ## Code Before:
get '/questions/new' do
binding.pry
@survey = Survey.find_by(id: params[:survey_id])
erb :"/questions/new"
end
# NEXT STEP: ADD Questions Post Route
## Instruction:
Implement separation of created and available surveys on surveys/index
## Code After:
get '/questions/new' do
@survey = Survey.f... | get '/questions/new' do
- binding.pry
@survey = Survey.find_by(id: params[:survey_id])
erb :"/questions/new"
end
- # NEXT STEP: ADD Questions Post Route
+ post '/questions' do
+ binding.pry
+
+ end | 6 | 0.857143 | 4 | 2 |
48c7d25a5397aa2a1832cf00a291463bcf39f52d | views/news/newsitem.jade | views/news/newsitem.jade | .page-header
h3
span.vote-count=votes.votes
if !votes.votedFor
form(action='/news/' + item._id, method='POST', class='upvote-form')
input(type='hidden', name='amount', value='1')
button(type='submit', class='upvote')
i.fa.fa-chevron-up
... | .page-header
h3
span.vote-count=votes.votes
if !votes.votedFor
form(action='/news/' + item._id, method='POST', class='upvote-form')
input(type='hidden', name='amount', value='1')
button(type='submit', class='upvote')
i.fa.fa-chevron-up
... | Make news item time linkable | Make news item time linkable
| Jade | mit | rickhanlonii/pullup,larvalabs/pullup,larvalabs/pullup,larvalabs/pullup,rickhanlonii/pullup,rickhanlonii/pullup | jade | ## Code Before:
.page-header
h3
span.vote-count=votes.votes
if !votes.votedFor
form(action='/news/' + item._id, method='POST', class='upvote-form')
input(type='hidden', name='amount', value='1')
button(type='submit', class='upvote')
i.f... | .page-header
h3
span.vote-count=votes.votes
if !votes.votedFor
form(action='/news/' + item._id, method='POST', class='upvote-form')
input(type='hidden', name='amount', value='1')
button(type='submit', class='upvote')
i.f... | 2 | 0.068966 | 1 | 1 |
ce3d442e0c7ffe969bf2bcb1b5b6b12bcd4d2d38 | t/pbc/subs.txt | t/pbc/subs.txt | test_post( ":init :load", <<'CODE', <<'RESULT');
.sub "main"
say "main"
.end
.sub "hello" :init :load
say "hello :init"
.end
CODE
hello :init
main
RESULT
# vim: ft=perl
| test_post( ":init :load", <<'CODE', <<'RESULT');
.sub "main"
say "main"
.end
.sub "hello" :init :load
say "hello :init"
.end
CODE
hello :init
main
RESULT
test_post( ":method", <<'CODE', <<'RESULT');
.sub "main"
$P0 = newclass ['Foo';'Bar']
$P1 = new $P0
$P1."hello"()
.end
.namespace ['Foo';'Bar']... | Add (failing) test for :method handling. | Add (failing) test for :method handling.
| Text | artistic-2.0 | parrot/pir,parrot/pir | text | ## Code Before:
test_post( ":init :load", <<'CODE', <<'RESULT');
.sub "main"
say "main"
.end
.sub "hello" :init :load
say "hello :init"
.end
CODE
hello :init
main
RESULT
# vim: ft=perl
## Instruction:
Add (failing) test for :method handling.
## Code After:
test_post( ":init :load", <<'CODE', <<'RESULT');
.s... | test_post( ":init :load", <<'CODE', <<'RESULT');
.sub "main"
say "main"
.end
.sub "hello" :init :load
say "hello :init"
.end
CODE
hello :init
main
RESULT
+ test_post( ":method", <<'CODE', <<'RESULT');
+ .sub "main"
+ $P0 = newclass ['Foo';'Bar']
+ $P1 = new $P0
+ $P1."hel... | 15 | 1.071429 | 15 | 0 |
74aaa808658af9da657c67613b2f4110b17b8f7a | examples/listnr-examples.coffee | examples/listnr-examples.coffee | Listnr = @Listnr
createEl = (tag) ->
document.createElement(tag)
div = createEl('div')
div.innerHTML = """
<dl>
<dt>Context:</dt>
<dd id="context"></dd>
<dt>Action:</dt>
<dd id="action"></dd>
</dl>
"""
document.body.appendChild(div)
listnr = new Listnr()
setContext = (ctx) ->
document
.g... | Listnr = @Listnr
createEl = (tag) ->
document.createElement(tag)
div = createEl('div')
div.innerHTML = """
<dl>
<dt>Context:</dt>
<dd id="context"></dd>
<dt>Action:</dt>
<dd id="action"></dd>
</dl>
<pre id="help">
</pre>
"""
document.body.appendChild(div)
listnr = new Listnr()
setContext =... | Update example with help text | Update example with help text
| CoffeeScript | isc | myme/listnr | coffeescript | ## Code Before:
Listnr = @Listnr
createEl = (tag) ->
document.createElement(tag)
div = createEl('div')
div.innerHTML = """
<dl>
<dt>Context:</dt>
<dd id="context"></dd>
<dt>Action:</dt>
<dd id="action"></dd>
</dl>
"""
document.body.appendChild(div)
listnr = new Listnr()
setContext = (ctx) ->
... | Listnr = @Listnr
createEl = (tag) ->
document.createElement(tag)
div = createEl('div')
div.innerHTML = """
<dl>
<dt>Context:</dt>
<dd id="context"></dd>
<dt>Action:</dt>
<dd id="action"></dd>
</dl>
+ <pre id="help">
+ </pre>
"""
document.body.appendChild(div)
... | 15 | 0.319149 | 10 | 5 |
c1ea1d0a970ccba1e41002c06c87ee102e3f7ad2 | code/modules/flufftext/Dreaming.dm | code/modules/flufftext/Dreaming.dm | mob/living/carbon/proc/dream()
dreaming = 1
var/list/dreams = list(
"an ID card","a bottle","a familiar face","a crewmember","a toolbox","a security officer","the captain",
"voices from all around","deep space","a doctor","the engine","a traitor","an ally","darkness",
"light","a scientist","a monkey","a catastr... | mob/living/carbon/proc/dream()
dreaming = 1
var/list/dreams = list(
"an ID card","a bottle","a familiar face","a crewmember","a toolbox","a security officer","the captain",
"voices from all around","deep space","a doctor","the engine","a traitor","an ally","darkness",
"light","a scientist","a monkey","a catastr... | Fix for HERP DERP LAG. | Fix for HERP DERP LAG.
| DM | agpl-3.0 | ZomgPonies/Paradise64,ZomgPonies/Paradise64,ZomgPonies/Paradise64,ZomgPonies/Paradise64,ZomgPonies/Paradise64,ZomgPonies/Paradise64 | dm | ## Code Before:
mob/living/carbon/proc/dream()
dreaming = 1
var/list/dreams = list(
"an ID card","a bottle","a familiar face","a crewmember","a toolbox","a security officer","the captain",
"voices from all around","deep space","a doctor","the engine","a traitor","an ally","darkness",
"light","a scientist","a mo... | mob/living/carbon/proc/dream()
dreaming = 1
var/list/dreams = list(
"an ID card","a bottle","a familiar face","a crewmember","a toolbox","a security officer","the captain",
"voices from all around","deep space","a doctor","the engine","a traitor","an ally","darkness",
"light","a scientist","a monkey... | 21 | 0.84 | 11 | 10 |
3089ed6e40b0d16bad0b4ec626ef068feac77a5a | appveyor.yml | appveyor.yml | init:
ps: |
$ErrorActionPreference = "Stop"
Invoke-WebRequest http://raw.github.com/krlmlr/r-appveyor/master/scripts/appveyor-tool.ps1 -OutFile "..\appveyor-tool.ps1"
Import-Module '..\appveyor-tool.ps1'
install:
ps: Bootstrap
cache:
- C:\RLibrary
# Adapt as necessary starting from here... | init:
ps: |
$ErrorActionPreference = "Stop"
Invoke-WebRequest http://raw.github.com/krlmlr/r-appveyor/master/scripts/appveyor-tool.ps1 -OutFile "..\appveyor-tool.ps1"
Import-Module '..\appveyor-tool.ps1'
install:
ps: Bootstrap
cache:
- C:\RLibrary
# Adapt as necessary starting from here... | Install GenomeInfoDbData first otherwise basejump will fail | Install GenomeInfoDbData first otherwise basejump will fail
| YAML | mit | roryk/bcbioRnaseq,hbc/bcbioRnaseq,hbc/bcbioRnaseq | yaml | ## Code Before:
init:
ps: |
$ErrorActionPreference = "Stop"
Invoke-WebRequest http://raw.github.com/krlmlr/r-appveyor/master/scripts/appveyor-tool.ps1 -OutFile "..\appveyor-tool.ps1"
Import-Module '..\appveyor-tool.ps1'
install:
ps: Bootstrap
cache:
- C:\RLibrary
# Adapt as necessary st... | init:
ps: |
$ErrorActionPreference = "Stop"
Invoke-WebRequest http://raw.github.com/krlmlr/r-appveyor/master/scripts/appveyor-tool.ps1 -OutFile "..\appveyor-tool.ps1"
Import-Module '..\appveyor-tool.ps1'
install:
ps: Bootstrap
cache:
- C:\RLibrary
# Adapt as ne... | 2 | 0.045455 | 1 | 1 |
5aeb27e25c860ae7093152860e76a91636e8e501 | python/README.md | python/README.md |
Using crypto in your application shouldn't have to feel like juggling chainsaws
in the dark. Tink is a crypto library written by a group of cryptographers and
security engineers at Google. It was born out of our extensive experience
working with Google's product teams, fixing weaknesses in implementations, and
providi... |
Using crypto in your application shouldn't have to feel like juggling chainsaws
in the dark. Tink is a crypto library written by a group of cryptographers and
security engineers at Google. It was born out of our extensive experience
working with Google's product teams, fixing weaknesses in implementations, and
providi... | Replace link to the Python HOW-TO with a link to the Tink documentation site. | Replace link to the Python HOW-TO with a link to the Tink documentation site.
The PyPI package page (https://pypi.org/project/tink/) uses this
README.md file as the project description. Since this link uses a
relative path, it's broken when rendered on that site.
PiperOrigin-RevId: 460344851
| Markdown | apache-2.0 | google/tink,google/tink,google/tink,google/tink,google/tink,google/tink,google/tink,google/tink | markdown | ## Code Before:
Using crypto in your application shouldn't have to feel like juggling chainsaws
in the dark. Tink is a crypto library written by a group of cryptographers and
security engineers at Google. It was born out of our extensive experience
working with Google's product teams, fixing weaknesses in implementati... |
Using crypto in your application shouldn't have to feel like juggling chainsaws
in the dark. Tink is a crypto library written by a group of cryptographers and
security engineers at Google. It was born out of our extensive experience
working with Google's product teams, fixing weaknesses in implementations, a... | 3 | 0.136364 | 1 | 2 |
303bcafb2f6f9386a7f7d43597340f41a1a19518 | .travis.yml | .travis.yml | language: objective-c
osx_image: xcode8.3
script:
- xcodebuild test
-scheme "URLNavigator"
-destination "platform=iOS Simulator,name=iPhone 7,OS=10.3"
-sdk iphonesimulator
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c
after_success:
- bash <(curl -s https://codecov.io/bash) ... | language: objective-c
osx_image: xcode8.3
script:
- set -o pipefail && xcodebuild test
-scheme "URLNavigator"
-destination "platform=iOS Simulator,name=iPhone 7,OS=10.3"
-sdk iphonesimulator
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c
after_success:
- bash <(curl -s https:... | Add 'set -o pipefail' to test script | Add 'set -o pipefail' to test script
| YAML | mit | devxoul/URLNavigator,devxoul/URLNavigator | yaml | ## Code Before:
language: objective-c
osx_image: xcode8.3
script:
- xcodebuild test
-scheme "URLNavigator"
-destination "platform=iOS Simulator,name=iPhone 7,OS=10.3"
-sdk iphonesimulator
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c
after_success:
- bash <(curl -s https://c... | language: objective-c
osx_image: xcode8.3
script:
- - xcodebuild test
+ - set -o pipefail && xcodebuild test
-scheme "URLNavigator"
-destination "platform=iOS Simulator,name=iPhone 7,OS=10.3"
-sdk iphonesimulator
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c
... | 2 | 0.2 | 1 | 1 |
39769907bdcd019ec6a7d4f2ee1be82efd760611 | src/rinoh/language/pl.py | src/rinoh/language/pl.py |
from .cls import Language
from ..structure import SectionTitles, AdmonitionTitles
PL = Language('pl', 'Polski')
SectionTitles(
contents='Spis Treści',
list_of_figures='Spis Ilustracji',
list_of_tables='Spis Tabel',
chapter='Rozdział',
index='Index',
) in PL
AdmonitionTitles(
attention='Uwa... |
from .cls import Language
from ..structure import SectionTitles, AdmonitionTitles
PL = Language('pl', 'Polski')
SectionTitles(
contents='Spis Treści',
list_of_figures='Spis Ilustracji',
list_of_tables='Spis Tabel',
chapter='Rozdział',
index='Skorowidz',
) in PL
AdmonitionTitles(
attention=... | Add Polish language document strings. | Add Polish language document strings.
| Python | agpl-3.0 | brechtm/rinohtype,brechtm/rinohtype,brechtm/rinohtype | python | ## Code Before:
from .cls import Language
from ..structure import SectionTitles, AdmonitionTitles
PL = Language('pl', 'Polski')
SectionTitles(
contents='Spis Treści',
list_of_figures='Spis Ilustracji',
list_of_tables='Spis Tabel',
chapter='Rozdział',
index='Index',
) in PL
AdmonitionTitles(
... |
from .cls import Language
from ..structure import SectionTitles, AdmonitionTitles
PL = Language('pl', 'Polski')
SectionTitles(
contents='Spis Treści',
list_of_figures='Spis Ilustracji',
list_of_tables='Spis Tabel',
chapter='Rozdział',
- index='Index',
+ index='Skor... | 8 | 0.285714 | 4 | 4 |
3db39aff1eec584f5c9c3cfa7a80c5c09501140f | packages/su/successors.yaml | packages/su/successors.yaml | homepage: https://github.com/nomeata/haskell-successors
changelog-type: markdown
hash: fc1c746a5143f8139cf578601ed0bdf553d708e05ae2ec694a386d8eeac61373
test-bench-deps: {}
maintainer: mail@joachim-breitner.de
synopsis: An applicative functor to manage successors
changelog: ! '# Revision history for successors
## 0.... | homepage: https://github.com/nomeata/haskell-successors
changelog-type: markdown
hash: b763e56c50afa8bcec07a58ad3afd6a658b9414e9703c22aac965daa6d732c91
test-bench-deps: {}
maintainer: mail@joachim-breitner.de
synopsis: An applicative functor to manage successors
changelog: |
# Revision history for successors
## 0.... | Update from Hackage at 2021-02-22T13:19:09Z | Update from Hackage at 2021-02-22T13:19:09Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: https://github.com/nomeata/haskell-successors
changelog-type: markdown
hash: fc1c746a5143f8139cf578601ed0bdf553d708e05ae2ec694a386d8eeac61373
test-bench-deps: {}
maintainer: mail@joachim-breitner.de
synopsis: An applicative functor to manage successors
changelog: ! '# Revision history for succ... | homepage: https://github.com/nomeata/haskell-successors
changelog-type: markdown
- hash: fc1c746a5143f8139cf578601ed0bdf553d708e05ae2ec694a386d8eeac61373
+ hash: b763e56c50afa8bcec07a58ad3afd6a658b9414e9703c22aac965daa6d732c91
test-bench-deps: {}
maintainer: mail@joachim-breitner.de
synopsis: An applicative f... | 27 | 0.72973 | 10 | 17 |
14f8c6edeef7d4c4cb21fa457cdaa12efc5d2675 | README.md | README.md |
Human Power lets you write your robots.txt in plain Ruby and force the robots into submission!

**This gem is under initial development and is not released yet.**
## Installation
Add this line to your application's Gemfile:
gem 'human_power'
Then run:
... |
Human Power lets you write your robots.txt in plain Ruby and force the robots into submission!

**This gem is under initial development and is not released yet.**
## Installation
Add this line to your application's Gemfile:
gem 'human_power'
Then run:
... | Add example on custom user agent | Add example on custom user agent
| Markdown | mit | lassebunk/human_power,lassebunk/human_power | markdown | ## Code Before:
Human Power lets you write your robots.txt in plain Ruby and force the robots into submission!

**This gem is under initial development and is not released yet.**
## Installation
Add this line to your application's Gemfile:
gem 'human_po... |
Human Power lets you write your robots.txt in plain Ruby and force the robots into submission!

**This gem is under initial development and is not released yet.**
## Installation
Add this line to your application's Gemfile:
gem '... | 5 | 0.083333 | 5 | 0 |
138d9e7b075a5efc38698ec4e8d4ed1b26e29d0a | test/test_esperanto.rb | test/test_esperanto.rb | require 'minitest/autorun'
require 'minitest/power_assert'
require 'esperanto'
class TestEsperanto < MiniTest::Test
def test_to_amd
source = <<-JS
export default 'hi';
JS
expected = <<-JS.strip
define(function () {
\t'use strict';
\treturn 'hi';
});
JS
assert { Esperanto.to_amd(source)['cod... | require 'minitest/autorun'
require 'minitest/power_assert'
require 'esperanto'
class TestEsperanto < MiniTest::Test
def test_to_amd
source = <<-JS
export default 'hi';
JS
expected = <<-JS.strip
define(function () {
\t'use strict';
\treturn 'hi';
});
JS
assert { Esperanto.to_amd(source)['cod... | Fix tests for latest esperanto | Fix tests for latest esperanto
| Ruby | mit | tricknotes/ruby-esperanto | ruby | ## Code Before:
require 'minitest/autorun'
require 'minitest/power_assert'
require 'esperanto'
class TestEsperanto < MiniTest::Test
def test_to_amd
source = <<-JS
export default 'hi';
JS
expected = <<-JS.strip
define(function () {
\t'use strict';
\treturn 'hi';
});
JS
assert { Esperanto.to_... | require 'minitest/autorun'
require 'minitest/power_assert'
require 'esperanto'
class TestEsperanto < MiniTest::Test
def test_to_amd
source = <<-JS
export default 'hi';
JS
expected = <<-JS.strip
define(function () {
\t'use strict';
\treturn 'hi';
});
JS
... | 10 | 0.169492 | 5 | 5 |
1663a66111ef01379ab29b168c4d519759740423 | .travis.yml | .travis.yml | sudo: false
language: python
matrix:
include:
- python: 2.7
dist: trusty
sudo: false
- python: 3.4
dist: trusty
sudo: false
- python: 3.5
dist: trusty
sudo: false
- python: 3.6
dist: trusty
sudo: false
- python: 3.7
dist: xenial
sudo: t... | language: python
matrix:
include:
- python: 2.7
dist: trusty
- python: 3.4
dist: trusty
- python: 3.5
dist: trusty
- python: 3.6
dist: trusty
- python: 3.7
dist: xenial
- python: nightly
dist: trusty
allow_failures:
- python: nightly
install:
- pip... | Switch Travis builds to VM-based infrastructure | Switch Travis builds to VM-based infrastructure
See the following for more details:
- https://docs.travis-ci.com/user/reference/trusty#container-based-infrastructure
- https://blog.travis-ci.com/2018-10-04-combining-linux-infrastructures | YAML | mit | smalley/python,exercism/xpython,exercism/python,behrtam/xpython,behrtam/xpython,exercism/xpython,jmluy/xpython,exercism/python,N-Parsons/exercism-python,smalley/python,jmluy/xpython,N-Parsons/exercism-python | yaml | ## Code Before:
sudo: false
language: python
matrix:
include:
- python: 2.7
dist: trusty
sudo: false
- python: 3.4
dist: trusty
sudo: false
- python: 3.5
dist: trusty
sudo: false
- python: 3.6
dist: trusty
sudo: false
- python: 3.7
dist: xeni... | - sudo: false
-
language: python
matrix:
include:
- python: 2.7
dist: trusty
- sudo: false
- python: 3.4
dist: trusty
- sudo: false
- python: 3.5
dist: trusty
- sudo: false
- python: 3.6
dist: trusty
- sudo: false
- python... | 8 | 0.210526 | 0 | 8 |
715d5f2f7222e72bb8542431b38f7d1604ce72ce | rest-servlet/src/main/java/org/rhq/metrics/restServlet/SimpleLink.java | rest-servlet/src/main/java/org/rhq/metrics/restServlet/SimpleLink.java | package org.rhq.metrics.restServlet;
/**
* Just a simple representation of a Link
* @author Heiko W. Rupp
*/
public class SimpleLink {
private final String rel;
private final String href;
private final String title;
public SimpleLink(String rel, String href, String title) {
this.rel = rel;
... | package org.rhq.metrics.restServlet;
import javax.xml.bind.annotation.XmlRootElement;
import com.wordnik.swagger.annotations.ApiClass;
import com.wordnik.swagger.annotations.ApiProperty;
/**
* Just a simple representation of a Link
* @author Heiko W. Rupp
*/
@SuppressWarnings("unused")
@ApiClass("A simple represe... | Add stuff to make the xml body writer happy. | Add stuff to make the xml body writer happy.
| Java | apache-2.0 | 140293816/Hawkular-fork,jsanda/hawkular-metrics,hawkular/hawkular-metrics,jshaughn/hawkular-metrics,spadgett/hawkular-metrics,spadgett/hawkular-metrics,hawkular/hawkular-metrics,tsegismont/hawkular-metrics,vrockai/hawkular-metrics,Jiri-Kremser/hawkular-metrics,140293816/Hawkular-fork,mwringe/hawkular-metrics,hawkular/h... | java | ## Code Before:
package org.rhq.metrics.restServlet;
/**
* Just a simple representation of a Link
* @author Heiko W. Rupp
*/
public class SimpleLink {
private final String rel;
private final String href;
private final String title;
public SimpleLink(String rel, String href, String title) {
... | package org.rhq.metrics.restServlet;
+
+ import javax.xml.bind.annotation.XmlRootElement;
+
+ import com.wordnik.swagger.annotations.ApiClass;
+ import com.wordnik.swagger.annotations.ApiProperty;
/**
* Just a simple representation of a Link
* @author Heiko W. Rupp
*/
+ @SuppressWarnings("unused")
+ @... | 32 | 1.103448 | 29 | 3 |
4179f5ca8a8a94e25540d898c4a52af3a8962928 | css/main.css | css/main.css | body {
margin: 0;
}
.title-box {
text-align: center;
}
.gallery {
width: 100%;
padding: 0 5%;
box-sizing: border-box;
}
.item {
width: 30%;
margin: 0 1.5% 3%;
display: inline-block;
position: relative;
padding: 30% 0 0;
height: 0;
overflow: hidden;
background-color: g... | body {
margin: 0;
}
.title-box {
text-align: center;
}
.gallery {
width: 100%;
padding: 0 5%;
box-sizing: border-box;
font-size: 0;
}
.item {
width: 30%;
margin: 0 1.5% 3%;
display: inline-block;
position: relative;
padding: 30% 0 0;
height: 0;
overflow: hidden;
b... | Improve responsive and Change alert messages | Improve responsive and Change alert messages
| CSS | mit | mrash14/commentmedia,mrash14/commentmedia | css | ## Code Before:
body {
margin: 0;
}
.title-box {
text-align: center;
}
.gallery {
width: 100%;
padding: 0 5%;
box-sizing: border-box;
}
.item {
width: 30%;
margin: 0 1.5% 3%;
display: inline-block;
position: relative;
padding: 30% 0 0;
height: 0;
overflow: hidden;
bac... | body {
margin: 0;
}
.title-box {
text-align: center;
}
.gallery {
width: 100%;
padding: 0 5%;
box-sizing: border-box;
+ font-size: 0;
}
.item {
width: 30%;
margin: 0 1.5% 3%;
display: inline-block;
position: relative;
padding: 30% 0 0;
... | 1 | 0.018519 | 1 | 0 |
28add39cbd964d9a26ff8f12c1ee3668b765c7a7 | perforce/p4login.py | perforce/p4login.py |
import P4
def main():
"""Log in to the Perforce server."""
# Yep, pretty much that easy.
p4 = P4.P4()
p4.connect()
p4.run_login()
if __name__ == "__main__":
main()
| """Script to automate logging into Perforce."""
import subprocess
import sys
def main():
"""Log in to the Perforce server."""
# Yep, pretty much that easy.
result = subprocess.check_output(['p4', 'set', '-q', 'P4PASSWD'])
passwd = result.strip().split('=')[1]
proc = subprocess.Popen(['p4', 'login... | Use p4 cli instead of p4 api | Use p4 cli instead of p4 api
| Python | bsd-3-clause | nlfiedler/devscripts,nlfiedler/devscripts | python | ## Code Before:
import P4
def main():
"""Log in to the Perforce server."""
# Yep, pretty much that easy.
p4 = P4.P4()
p4.connect()
p4.run_login()
if __name__ == "__main__":
main()
## Instruction:
Use p4 cli instead of p4 api
## Code After:
"""Script to automate logging into Perforce."""
... | + """Script to automate logging into Perforce."""
- import P4
+ import subprocess
+ import sys
def main():
"""Log in to the Perforce server."""
# Yep, pretty much that easy.
- p4 = P4.P4()
- p4.connect()
- p4.run_login()
+ result = subprocess.check_output(['p4', 'set', '-q', 'P4PA... | 12 | 0.857143 | 8 | 4 |
aaeb110ec1bc3ca8a2b9df8128fb9ae4792feba5 | .travis.yml | .travis.yml | language: cpp
compiler:
- gcc
- clang
before_install:
- sudo add-apt-repository ppa:ubuntu-sdk-team/ppa -y
- sudo add-apt-repository ppa:smspillaz/cmake-2.8.12 -y
- sudo apt-add-repository ppa:zoogie/sdl2-snapshots -y
- sudo apt-get update -qq
- sudo apt-get purge cmake -qq
- sudo apt-get install -y -q... | language: c
compiler:
- gcc
- clang
before_install:
- sudo add-apt-repository ppa:smspillaz/cmake-2.8.12 -y
- sudo apt-add-repository ppa:zoogie/sdl2-snapshots -y
- sudo apt-get update -qq
- sudo apt-get purge cmake -qq
- sudo apt-get install -y -qq cmake libedit-dev libmagickwand-dev libpng-dev libsdl2-... | Disable Qt in Travis build until 14.04 is available | All: Disable Qt in Travis build until 14.04 is available
| YAML | mpl-2.0 | sergiobenrocha2/mgba,fr500/mgba,Anty-Lemon/mgba,nattthebear/mgba,nattthebear/mgba,Iniquitatis/mgba,sergiobenrocha2/mgba,AdmiralCurtiss/mgba,mgba-emu/mgba,mgba-emu/mgba,matthewbauer/mgba,libretro/mgba,iracigt/mgba,libretro/mgba,cassos/mgba,libretro/mgba,Touched/mgba,sergiobenrocha2/mgba,cassos/mgba,cassos/mgba,Iniquitat... | yaml | ## Code Before:
language: cpp
compiler:
- gcc
- clang
before_install:
- sudo add-apt-repository ppa:ubuntu-sdk-team/ppa -y
- sudo add-apt-repository ppa:smspillaz/cmake-2.8.12 -y
- sudo apt-add-repository ppa:zoogie/sdl2-snapshots -y
- sudo apt-get update -qq
- sudo apt-get purge cmake -qq
- sudo apt-g... | - language: cpp
? --
+ language: c
compiler:
- gcc
- clang
before_install:
- - sudo add-apt-repository ppa:ubuntu-sdk-team/ppa -y
- sudo add-apt-repository ppa:smspillaz/cmake-2.8.12 -y
- sudo apt-add-repository ppa:zoogie/sdl2-snapshots -y
- sudo apt-get update -qq
- sudo a... | 5 | 0.357143 | 2 | 3 |
9d2d8b933a6ee33e5e51aeef14170690192a22be | README.md | README.md | This is a silly simple disk usage thing.
When installed - it will use "du" command to estimate the size of jobs.
It does this with ionice to ensure it doesn't use too much io, and one job dir at a time.
(allowing a gap between each job to prevent load average from climbing too high).
This also only runs a maximum o... | This is a silly simple disk usage thing.
When installed - it will use "du" command to estimate the size of jobs.
It does this with ionice to ensure it doesn't use too much io, and one job dir at a time.
(allowing a gap between each job to prevent load average from climbing too high).
This also only runs a maximum o... | Add links to CI and Jira | Add links to CI and Jira
@recena Can you review please ? | Markdown | mit | jenkinsci/cloudbees-disk-usage-simple-plugin,aheritier/cloudbees-disk-usage-simple | markdown | ## Code Before:
This is a silly simple disk usage thing.
When installed - it will use "du" command to estimate the size of jobs.
It does this with ionice to ensure it doesn't use too much io, and one job dir at a time.
(allowing a gap between each job to prevent load average from climbing too high).
This also only ... | This is a silly simple disk usage thing.
When installed - it will use "du" command to estimate the size of jobs.
It does this with ionice to ensure it doesn't use too much io, and one job dir at a time.
(allowing a gap between each job to prevent load average from climbing too high).
This also only ru... | 3 | 0.3 | 3 | 0 |
de2f55f91c846662b2ccf1cad6f40f68cf5e804a | tests/XMLHttpRequest/formdata.php | tests/XMLHttpRequest/formdata.php | <?php
header('Content-type: text/json');
$post = $_POST;
$post['OK'] = 1;
if (!empty($_FILES)) {
$file_field_name = key($_FILES);
if (!$_FILES[$file_field_name]['error']) {
$post[$file_field_name] = $_FILES[$file_field_name];
}
}
echo json_encode($post);
| <?php
$post = $_POST;
$post['OK'] = 1;
if (!empty($_FILES)) {
$file_field_name = key($_FILES);
if (!$_FILES[$file_field_name]['error']) {
$post[$file_field_name] = $_FILES[$file_field_name];
}
}
echo json_encode($post);
| Remove header, it causes response to be downloaded as file. | Tests: Remove header, it causes response to be downloaded as file.
| PHP | agpl-3.0 | moxiecode/moxie,moxiecode/moxie,moxiecode/moxie,moxiecode/moxie | php | ## Code Before:
<?php
header('Content-type: text/json');
$post = $_POST;
$post['OK'] = 1;
if (!empty($_FILES)) {
$file_field_name = key($_FILES);
if (!$_FILES[$file_field_name]['error']) {
$post[$file_field_name] = $_FILES[$file_field_name];
}
}
echo json_encode($post);
## Instruction:
Tests: Remove header, ... | <?php
-
- header('Content-type: text/json');
$post = $_POST;
$post['OK'] = 1;
if (!empty($_FILES)) {
$file_field_name = key($_FILES);
if (!$_FILES[$file_field_name]['error']) {
$post[$file_field_name] = $_FILES[$file_field_name];
}
}
echo json_encode($post); | 2 | 0.125 | 0 | 2 |
2fc359baa1888007832ca2356604d11d533e78e7 | app/views/answers/_best_answer_form.html.erb | app/views/answers/_best_answer_form.html.erb | <%= form_tag('/best', :method=>'post') do %>
<%= hidden_field_tag "best_answer_id", "#{answer.id}" %>
<%= submit_tag "Mark this as the best answer" %>
<% end %> | <div class="content-row">
<%= form_tag('/best', :method=>'post') do %>
<%= hidden_field_tag "best_answer_id", "#{answer.id}" %>
<div class="submit-btn"><%= submit_tag "Mark this as the best answer" %></div>
<% end %>
</div> | Add styling tags for best answer btn | Add styling tags for best answer btn
| HTML+ERB | mit | jeder28/stack_overphil,jeder28/stack_overphil,jeder28/stack_overphil | html+erb | ## Code Before:
<%= form_tag('/best', :method=>'post') do %>
<%= hidden_field_tag "best_answer_id", "#{answer.id}" %>
<%= submit_tag "Mark this as the best answer" %>
<% end %>
## Instruction:
Add styling tags for best answer btn
## Code After:
<div class="content-row">
<%= form_tag('/best', :method=>'post') do %>... | + <div class="content-row">
<%= form_tag('/best', :method=>'post') do %>
<%= hidden_field_tag "best_answer_id", "#{answer.id}" %>
- <%= submit_tag "Mark this as the best answer" %>
+ <div class="submit-btn"><%= submit_tag "Mark this as the best answer" %></div>
? ++++++++++++++++++++++++ ... | 4 | 1 | 3 | 1 |
f9582fa914e0dfced0083edbbc6848aafd38651a | htdocs/js/vendor/package.json | htdocs/js/vendor/package.json | {
"name": "RichmondSunlight",
"version": "1.0.0",
"dependencies": {
"jquery": "2.x",
"jquery-ui-dist": "1.12.x",
"qtip2": "3.x",
"jquery-tags-input": "1.3.x",
"jeditable": "NicolasCARPi/jquery_jeditable#1.8.0",
"zxcvbn": "dropbox/zxcvbn"
},
"scripts": {
"build": "yarn install && cp -r node_modules/* ... | {
"name": "RichmondSunlight",
"version": "1.0.0",
"dependencies": {
"jquery": "2.x",
"jquery-ui-dist": "1.12.x",
"qtip2": "3.x",
"jquery-tags-input": "1.3.x",
"jeditable": "NicolasCARPi/jquery_jeditable#1.8.0",
"zxcvbn": "dropbox/zxcvbn",
"jquery.tabSlideOut.js": "microneer/jquery.tabSlideOut.js"
},
... | Include functionality for a sliding tab | Include functionality for a sliding tab
Toward #168.
| JSON | mit | openva/richmondsunlight.com,openva/richmondsunlight.com,openva/richmondsunlight.com,openva/richmondsunlight.com,openva/richmondsunlight.com | json | ## Code Before:
{
"name": "RichmondSunlight",
"version": "1.0.0",
"dependencies": {
"jquery": "2.x",
"jquery-ui-dist": "1.12.x",
"qtip2": "3.x",
"jquery-tags-input": "1.3.x",
"jeditable": "NicolasCARPi/jquery_jeditable#1.8.0",
"zxcvbn": "dropbox/zxcvbn"
},
"scripts": {
"build": "yarn install && cp -r... | {
"name": "RichmondSunlight",
"version": "1.0.0",
"dependencies": {
"jquery": "2.x",
"jquery-ui-dist": "1.12.x",
"qtip2": "3.x",
"jquery-tags-input": "1.3.x",
"jeditable": "NicolasCARPi/jquery_jeditable#1.8.0",
- "zxcvbn": "dropbox/zxcvbn"
+ "zxcvbn": "dropbox/zxcvbn",
? ... | 3 | 0.2 | 2 | 1 |
b4f71ec3a91725bc8b21c32fe057647de1467f4e | app/views/crops/new.html.erb | app/views/crops/new.html.erb | <%= form_for @crop do |f| %>
<%= f.label :name, 'Crop Name' %>
<%= f.text_field :name %>
<%= f.label :binomial_name, 'Binomial Name' %>
<%= f.text_field :binomial_name %>
<%= f.label :description, 'Description' %>
<%= f.text_area :description %>
<%= f.label :sun_requirements, 'Sun Requirements' %>
<%= f.t... | <div class="small-12 columns">
<div class="row">
<div class="large-8 medium-10 small-12 small-centered columns">
<h1>Add a new crop!</h1>
<%= form_for @crop do |f| %>
<%= f.label :name, 'Crop Name' %>
<%= f.text_field :name %>
<%= f.label :binomial_name, 'Binomial Name' %>
... | Create styled view for Crop create page | [style][view] Create styled view for Crop create page
| HTML+ERB | mit | roryaronson/OpenFarm,RickCarlino/OpenFarm,openfarmcc/OpenFarm,tomazin/OpenFarm,roryaronson/OpenFarm,slacker87/OpenFarm,slacker87/OpenFarm,openfarmcc/OpenFarm,openfarmcc/OpenFarm,simonv3/OpenFarm,simonv3/OpenFarm,tomazin/OpenFarm,CloCkWeRX/OpenFarm,CloCkWeRX/OpenFarm,RickCarlino/OpenFarm,slacker87/OpenFarm,openfarmcc/Op... | html+erb | ## Code Before:
<%= form_for @crop do |f| %>
<%= f.label :name, 'Crop Name' %>
<%= f.text_field :name %>
<%= f.label :binomial_name, 'Binomial Name' %>
<%= f.text_field :binomial_name %>
<%= f.label :description, 'Description' %>
<%= f.text_area :description %>
<%= f.label :sun_requirements, 'Sun Requireme... | + <div class="small-12 columns">
+ <div class="row">
+ <div class="large-8 medium-10 small-12 small-centered columns">
+ <h1>Add a new crop!</h1>
- <%= form_for @crop do |f| %>
+ <%= form_for @crop do |f| %>
? ++++++
- <%= f.label :name, 'Crop Name' %>
? ^
+ <%= f.label :name, 'Crop Name' %>
... | 67 | 2.233333 | 37 | 30 |
6be57a38751e42c9544e29168db05cba611acbb1 | payments/management/commands/init_plans.py | payments/management/commands/init_plans.py | import decimal
from django.conf import settings
from django.core.management.base import BaseCommand
import stripe
class Command(BaseCommand):
help = "Make sure your Stripe account has the plans"
def handle(self, *args, **options):
stripe.api_key = settings.STRIPE_SECRET_KEY
for plan in set... | import decimal
from django.conf import settings
from django.core.management.base import BaseCommand
import stripe
class Command(BaseCommand):
help = "Make sure your Stripe account has the plans"
def handle(self, *args, **options):
stripe.api_key = settings.STRIPE_SECRET_KEY
for plan in set... | Add trial period days option to initial plans. | Add trial period days option to initial plans.
| Python | mit | aibon/django-stripe-payments,grue/django-stripe-payments,jawed123/django-stripe-payments,grue/django-stripe-payments,wahuneke/django-stripe-payments,boxysean/django-stripe-payments,jamespacileo/django-stripe-payments,boxysean/django-stripe-payments,pinax/django-stripe-payments,ZeevG/django-stripe-payments,jawed123/djan... | python | ## Code Before:
import decimal
from django.conf import settings
from django.core.management.base import BaseCommand
import stripe
class Command(BaseCommand):
help = "Make sure your Stripe account has the plans"
def handle(self, *args, **options):
stripe.api_key = settings.STRIPE_SECRET_KEY
... | import decimal
from django.conf import settings
from django.core.management.base import BaseCommand
import stripe
class Command(BaseCommand):
help = "Make sure your Stripe account has the plans"
def handle(self, *args, **options):
stripe.api_key = settings.STRIPE_SECRET... | 1 | 0.033333 | 1 | 0 |
e3207bc09c30c1af1db16ae13efdc9bbb1a68065 | app/controllers/api/version1_controller.rb | app/controllers/api/version1_controller.rb | module Api
class Version1Controller < ActionController::Base
before_filter :set_site
def get_proxy
result = @site.select_proxy(params[:older_than])
if result == Proxy::NoProxy
render json: Response::try_again
elsif result.is_a? Proxy::NoColdProxy
render json: Response::t... | module Api
class Version1Controller < ActionController::Base
before_filter :set_site
def get_proxy
older_than = (params[:older_than] || -1).to_i
result = @site.select_proxy(older_than)
if result == Proxy::NoProxy
render json: Responses::try_again
elsif result.is_a? Proxy::... | Fix NameError and parameter handling | Fix NameError and parameter handling
| Ruby | bsd-3-clause | Raybeam/zartan,Raybeam/zartan,Raybeam/zartan,Raybeam/zartan | ruby | ## Code Before:
module Api
class Version1Controller < ActionController::Base
before_filter :set_site
def get_proxy
result = @site.select_proxy(params[:older_than])
if result == Proxy::NoProxy
render json: Response::try_again
elsif result.is_a? Proxy::NoColdProxy
render j... | module Api
class Version1Controller < ActionController::Base
before_filter :set_site
def get_proxy
+ older_than = (params[:older_than] || -1).to_i
- result = @site.select_proxy(params[:older_than])
? -------- -
+ result = @site.selec... | 11 | 0.314286 | 6 | 5 |
6f1c508f7686e0995dbe225a07ff2faa9ddb8a6b | app/assets/javascripts/routes/map.route.js.coffee | app/assets/javascripts/routes/map.route.js.coffee | Wheelmap.MapRoute = Ember.Route.extend
setupController: (controller, model)->
@_super(controller, model)
@controllerFor('toolbar').set('content', @store.findAll('category'))
renderTemplate: (controller, model)->
@render 'index',
outlet: 'map' | Wheelmap.MapRoute = Ember.Route.extend
setupController: (controller, model)->
@_super(controller, model)
toolbarController = @controllerFor('toolbar')
unless toolbarController.get('model') instanceof DS.PromiseArray
toolbarController.set('model', @store.findAll('category'))
renderTemplate: (con... | Fix unnecessary loading of categories in map route. | Fix unnecessary loading of categories in map route.
| CoffeeScript | agpl-3.0 | sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap | coffeescript | ## Code Before:
Wheelmap.MapRoute = Ember.Route.extend
setupController: (controller, model)->
@_super(controller, model)
@controllerFor('toolbar').set('content', @store.findAll('category'))
renderTemplate: (controller, model)->
@render 'index',
outlet: 'map'
## Instruction:
Fix unnecessary loadi... | Wheelmap.MapRoute = Ember.Route.extend
setupController: (controller, model)->
@_super(controller, model)
+ toolbarController = @controllerFor('toolbar')
+
+ unless toolbarController.get('model') instanceof DS.PromiseArray
- @controllerFor('toolbar').set('content', @store.findAll('category'))... | 5 | 0.555556 | 4 | 1 |
23d5d0e0e77dc0b0816df51a8a1e42bc4069112b | rst2pdf/style2yaml.py | rst2pdf/style2yaml.py |
import argparse
import json
import yaml
from rst2pdf.dumpstyle import fixstyle
from rst2pdf.rson import loads as rloads
def main():
parser = argparse.ArgumentParser(
description=__doc__,
formatter_class=argparse.RawDescriptionHelpFormatter,
)
parser.add_argument(
'paths',
... |
import argparse
import json
import os
import yaml
from rst2pdf.dumpstyle import fixstyle
from rst2pdf.rson import loads as rloads
def main():
# set up the command, optional --save parameter, and a list of paths
parser = argparse.ArgumentParser(
description=__doc__,
formatter_class=argparse.... | Add save functionality to the conversion script | Add save functionality to the conversion script
| Python | mit | rst2pdf/rst2pdf,rst2pdf/rst2pdf | python | ## Code Before:
import argparse
import json
import yaml
from rst2pdf.dumpstyle import fixstyle
from rst2pdf.rson import loads as rloads
def main():
parser = argparse.ArgumentParser(
description=__doc__,
formatter_class=argparse.RawDescriptionHelpFormatter,
)
parser.add_argument(
... |
import argparse
import json
+ import os
import yaml
from rst2pdf.dumpstyle import fixstyle
from rst2pdf.rson import loads as rloads
def main():
+ # set up the command, optional --save parameter, and a list of paths
parser = argparse.ArgumentParser(
description=__doc__,
... | 25 | 0.675676 | 23 | 2 |
1b2f8fbfd7b65d0d3892c8c9e3e0d04464e653cb | rollup.config.js | rollup.config.js | import babel from 'rollup-plugin-babel';
export default {
entry: 'dist-es2015/index.js',
dest: 'dist/dynamic-typed-array.js',
moduleName: 'DynamicTypedArray',
format: 'umd',
sourceMap: true,
plugins: [
babel()
]
};
| import babel from 'rollup-plugin-babel';
export default {
entry: 'dist-es2015/index.js',
dest: 'dist/dynamic-typed-array.js',
moduleName: 'DynamicTypedArray',
moduleId: 'dynamic-typed-array',
format: 'umd',
sourceMap: true,
plugins: [
babel()
]
};
| Fix implicitly anonymous AMD export | Fix implicitly anonymous AMD export
| JavaScript | mit | maxdavidson/dynamic-typed-array,maxdavidson/dynamic-typed-array | javascript | ## Code Before:
import babel from 'rollup-plugin-babel';
export default {
entry: 'dist-es2015/index.js',
dest: 'dist/dynamic-typed-array.js',
moduleName: 'DynamicTypedArray',
format: 'umd',
sourceMap: true,
plugins: [
babel()
]
};
## Instruction:
Fix implicitly anonymous AMD export
## Code After:
i... | import babel from 'rollup-plugin-babel';
export default {
entry: 'dist-es2015/index.js',
dest: 'dist/dynamic-typed-array.js',
moduleName: 'DynamicTypedArray',
+ moduleId: 'dynamic-typed-array',
format: 'umd',
sourceMap: true,
plugins: [
babel()
]
}; | 1 | 0.083333 | 1 | 0 |
c51971817cbb32c5443cce69c00f61196ce76752 | ansible/site.yml | ansible/site.yml | ---
- hosts: srv001
sudo: true
roles: []
- hosts: srv002
sudo: true
roles: []
| ---
- hosts: srv001
become: true
roles: []
- hosts: srv002
become: true
roles: []
| Fix Ansible 2.0 deprecation warning for ‘sudo:’ directive | Fix Ansible 2.0 deprecation warning for ‘sudo:’ directive
| YAML | mit | bertvv/ansible-skeleton,bertvv/ansible-skeleton | yaml | ## Code Before:
---
- hosts: srv001
sudo: true
roles: []
- hosts: srv002
sudo: true
roles: []
## Instruction:
Fix Ansible 2.0 deprecation warning for ‘sudo:’ directive
## Code After:
---
- hosts: srv001
become: true
roles: []
- hosts: srv002
become: true
roles: []
| ---
- hosts: srv001
- sudo: true
+ become: true
roles: []
- hosts: srv002
- sudo: true
+ become: true
roles: [] | 4 | 0.5 | 2 | 2 |
0126da430bbbe0b6c21e351cc808ab8e29a50765 | index.js | index.js | var xml = require('libxmljs'),
request = require('request')
var Client = exports.Client = function Client(appKey) {
this.appKey = appKey
}
Client.prototype.query = function(input, cb) {
if(!this.appKey) {
return cb("Application key not set", null)
}
var uri = 'http://api.wolframalpha.com/v2/query?inp... | var xml = require('libxmljs'),
request = require('request')
var Client = exports.Client = function Client(appKey) {
this.appKey = appKey
}
Client.prototype.query = function(input, cb) {
if(!this.appKey) {
return cb("Application key not set", null)
}
var uri = 'http://api.wolframalpha.com/v2/query?inp... | Handle network errors instead of failing silently | Handle network errors instead of failing silently
| JavaScript | mit | cycomachead/node-wolfram,strax/node-wolfram | javascript | ## Code Before:
var xml = require('libxmljs'),
request = require('request')
var Client = exports.Client = function Client(appKey) {
this.appKey = appKey
}
Client.prototype.query = function(input, cb) {
if(!this.appKey) {
return cb("Application key not set", null)
}
var uri = 'http://api.wolframalpha.... | var xml = require('libxmljs'),
request = require('request')
var Client = exports.Client = function Client(appKey) {
this.appKey = appKey
}
Client.prototype.query = function(input, cb) {
if(!this.appKey) {
return cb("Application key not set", null)
}
var uri = 'http://api.wol... | 2 | 0.047619 | 2 | 0 |
2442b5313fef9e3448eda18af20406bb7f64bf61 | examples/widgets-fn/widgets_app.dart | examples/widgets-fn/widgets_app.dart | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import '../../framework/fn.dart';
import '../../framework/components/button.dart';
class WidgetsApp extends App {
Node build() {
return new Button(... | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import '../../framework/fn.dart';
import '../../framework/components/button.dart';
import '../../framework/components/popup_menu.dart';
import '../../fram... | Add a basic popup menu widget | Add a basic popup menu widget
Currently this widget is demoed in widgets-fn, but I'll move it into stocks-fn
soon.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/1017873002
| Dart | bsd-3-clause | Hixie/flutter,cbracken/flutter,cbracken/flutter,cbracken/flutter,aghassemi/flutter,cbracken/flutter,cbracken/flutter,tvolkert/flutter,jason-simmons/flutter,turnidge/flutter,flutter/flutter,cbracken/flutter,flutter/flutter,cbracken/flutter,Hixie/flutter,flutter/flutter,jason-simmons/flutter,tvolkert/flutter,tvolkert/flu... | dart | ## Code Before:
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import '../../framework/fn.dart';
import '../../framework/components/button.dart';
class WidgetsApp extends App {
Node build() {
re... | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import '../../framework/fn.dart';
import '../../framework/components/button.dart';
+ import '../../framework/components/popup_menu.dart';
+ im... | 30 | 2.5 | 29 | 1 |
4d3a0dc3b3b8a11a066f52bc78b1160e194ad64f | wmtexe/cmd/script.py | wmtexe/cmd/script.py | """Launch a WMT simulation using `bash` or `qsub`."""
from __future__ import print_function
import sys
import os
from ..launcher import BashLauncher, QsubLauncher
_LAUNCHERS = {
'bash': BashLauncher,
'qsub': QsubLauncher,
}
def main():
import argparse
parser = argparse.ArgumentParser(description=... | """Launch a WMT simulation using `bash` or `qsub`."""
from __future__ import print_function
import sys
import os
from ..launcher import BashLauncher, QsubLauncher
_LAUNCHERS = {
'bash': BashLauncher,
'qsub': QsubLauncher,
}
def main():
import argparse
parser = argparse.ArgumentParser(description=... | Add 'server-url' command line argument | Add 'server-url' command line argument
Its value is passed to the server_url parameter of the Launcher class.
| Python | mit | csdms/wmt-exe,csdms/wmt-exe,csdms/wmt-exe,csdms/wmt-exe | python | ## Code Before:
"""Launch a WMT simulation using `bash` or `qsub`."""
from __future__ import print_function
import sys
import os
from ..launcher import BashLauncher, QsubLauncher
_LAUNCHERS = {
'bash': BashLauncher,
'qsub': QsubLauncher,
}
def main():
import argparse
parser = argparse.ArgumentPar... | """Launch a WMT simulation using `bash` or `qsub`."""
from __future__ import print_function
import sys
import os
from ..launcher import BashLauncher, QsubLauncher
_LAUNCHERS = {
'bash': BashLauncher,
'qsub': QsubLauncher,
}
def main():
import argparse
parser ... | 5 | 0.135135 | 4 | 1 |
7ffe59bbbb516bfe5809ae3bf3fa19e096e9452e | bin/run-tests.sh | bin/run-tests.sh |
flake8
black --check .
isort --check .
moz-l10n-lint l10n/l10n-pontoon.toml
moz-l10n-lint l10n/l10n-vendor.toml
python manage.py lint_ftl -q
python manage.py runscript check_calendars
python manage.py version
python manage.py migrate --noinput
py.test lib bedrock \
--cov-config=.coveragerc \
--cov-report=html ... |
flake8
black --check .
isort --check .
moz-l10n-lint l10n/l10n-pontoon.toml
moz-l10n-lint l10n/l10n-vendor.toml
python manage.py lint_ftl -q
python manage.py runscript check_calendars
python manage.py version
python manage.py migrate --noinput
py.test lib bedrock \
--cov-config=.coveragerc \
--cov-report=html ... | Add term-missing as a coverage.py param | 10631: Add term-missing as a coverage.py param
| Shell | mpl-2.0 | sylvestre/bedrock,flodolo/bedrock,flodolo/bedrock,craigcook/bedrock,alexgibson/bedrock,flodolo/bedrock,flodolo/bedrock,craigcook/bedrock,mozilla/bedrock,alexgibson/bedrock,sylvestre/bedrock,alexgibson/bedrock,sylvestre/bedrock,pascalchevrel/bedrock,craigcook/bedrock,pascalchevrel/bedrock,alexgibson/bedrock,mozilla/bedr... | shell | ## Code Before:
flake8
black --check .
isort --check .
moz-l10n-lint l10n/l10n-pontoon.toml
moz-l10n-lint l10n/l10n-vendor.toml
python manage.py lint_ftl -q
python manage.py runscript check_calendars
python manage.py version
python manage.py migrate --noinput
py.test lib bedrock \
--cov-config=.coveragerc \
--... |
flake8
black --check .
isort --check .
moz-l10n-lint l10n/l10n-pontoon.toml
moz-l10n-lint l10n/l10n-vendor.toml
python manage.py lint_ftl -q
python manage.py runscript check_calendars
python manage.py version
python manage.py migrate --noinput
py.test lib bedrock \
--cov-config=.coveragerc ... | 1 | 0.0625 | 1 | 0 |
c79e6b16e29dc0c756bfe82d62b9e01a5702c47f | testanalyzer/pythonanalyzer.py | testanalyzer/pythonanalyzer.py | import re
from fileanalyzer import FileAnalyzer
class PythonAnalyzer(FileAnalyzer):
def get_class_count(self, content):
return len(
re.findall("[^\"](class +[a-zA-Z0-9_]+ *\(?[a-zA-Z0-9_, ]*\)? *:)+[^\"]",
content))
def get_function_count(self, content):
ret... | import re
from fileanalyzer import FileAnalyzer
class PythonAnalyzer(FileAnalyzer):
def get_class_count(self, content):
matches = re.findall("\"*class +[a-zA-Z0-9_]+ *\(?[a-zA-Z0-9_, ]*\)? *:\"*", content)
matches = [m for m in matches if m.strip()[0] != "\"" and m.strip()[-1] != "\""]
ret... | Fix counter to ignore quoted lines | Fix counter to ignore quoted lines
| Python | mpl-2.0 | CheriPai/TestAnalyzer,CheriPai/TestAnalyzer,CheriPai/TestAnalyzer | python | ## Code Before:
import re
from fileanalyzer import FileAnalyzer
class PythonAnalyzer(FileAnalyzer):
def get_class_count(self, content):
return len(
re.findall("[^\"](class +[a-zA-Z0-9_]+ *\(?[a-zA-Z0-9_, ]*\)? *:)+[^\"]",
content))
def get_function_count(self, conte... | import re
from fileanalyzer import FileAnalyzer
class PythonAnalyzer(FileAnalyzer):
def get_class_count(self, content):
- return len(
- re.findall("[^\"](class +[a-zA-Z0-9_]+ *\(?[a-zA-Z0-9_, ]*\)? *:)+[^\"]",
? ^^ -- ^^ ... | 11 | 0.846154 | 6 | 5 |
71eb581461350c22a6587d0384a6c14c8a709047 | scss/modules/layout/_heights.scss | scss/modules/layout/_heights.scss | // Module: Heights
// Project: WFP UI
$heights: (
1: 1rem,
2: 2rem,
3: 4rem,
4: 8rem,
5: 16rem
);
// Scale steps
@mixin h($scale) {
height: map-get($heights, $scale);
}
// Literal percentage values
@mixin height($height: 0) {
height: $height;
}
| // Module: Heights
// Project: WFP UI
$heights: (
0: 0,
1: 1rem,
2: 2rem,
3: 4rem,
4: 6rem,
5: 8rem,
6: 10rem,
7: 12rem,
8: 16rem,
9: 24rem
);
// Scale steps
@mixin h($scale) {
height: map-get($heights, $scale);
}
// Literal percentage values
@mixin height($height: 0) {
height: $height;
}
| Add more values to `heights` | Add more values to `heights`
| SCSS | apache-2.0 | wfp/ui,wfp/ui,wfp/ui | scss | ## Code Before:
// Module: Heights
// Project: WFP UI
$heights: (
1: 1rem,
2: 2rem,
3: 4rem,
4: 8rem,
5: 16rem
);
// Scale steps
@mixin h($scale) {
height: map-get($heights, $scale);
}
// Literal percentage values
@mixin height($height: 0) {
height: $height;
}
## Instruction:
Add more values to `heigh... | // Module: Heights
// Project: WFP UI
$heights: (
+ 0: 0,
1: 1rem,
2: 2rem,
3: 4rem,
- 4: 8rem,
? ^
+ 4: 6rem,
? ^
+ 5: 8rem,
+ 6: 10rem,
+ 7: 12rem,
- 5: 16rem
? ^
+ 8: 16rem,
? ^ +
+ 9: 24rem
);
// Scale steps
@mixin h($scale) {
height: map-g... | 9 | 0.45 | 7 | 2 |
c8d39cf0b8505b7038398d7c4010d080b226cb54 | .circleci/config.yml | .circleci/config.yml | version: 2
jobs:
build:
docker:
- image: linuxbrew/linuxbrew
environment:
HOMEBREW_DEVELOPER: 1
HOMEBREW_NO_AUTO_UPDATE: 1
steps:
- run: |
cd /home/linuxbrew/.linuxbrew/Homebrew
git pull --ff-only
if [ -n "$CIRCLE_PR_NUMBER" ]; then
git f... | version: 2
jobs:
build:
docker:
- image: linuxbrew/linuxbrew
environment:
HOMEBREW_DEVELOPER: 1
HOMEBREW_NO_AUTO_UPDATE: 1
steps:
- run:
name: Install unzip and svn for tests
command: sudo apt-get update && sudo apt-get install -y unzip subversion
- run: |
... | Use system unzip and subversion for the tests | Use system unzip and subversion for the tests
| YAML | bsd-2-clause | Linuxbrew/brew,maxim-belkin/brew,Linuxbrew/brew,Linuxbrew/brew,maxim-belkin/brew,Linuxbrew/brew,maxim-belkin/brew | yaml | ## Code Before:
version: 2
jobs:
build:
docker:
- image: linuxbrew/linuxbrew
environment:
HOMEBREW_DEVELOPER: 1
HOMEBREW_NO_AUTO_UPDATE: 1
steps:
- run: |
cd /home/linuxbrew/.linuxbrew/Homebrew
git pull --ff-only
if [ -n "$CIRCLE_PR_NUMBER" ]; then
... | version: 2
jobs:
build:
docker:
- image: linuxbrew/linuxbrew
environment:
HOMEBREW_DEVELOPER: 1
HOMEBREW_NO_AUTO_UPDATE: 1
steps:
+ - run:
+ name: Install unzip and svn for tests
+ command: sudo apt-get update && sudo apt-get install -y unzip sub... | 3 | 0.103448 | 3 | 0 |
68312d1d3e9a2f4f3211c0ba91105e11270b6f3d | src/app/common/interceptors.js | src/app/common/interceptors.js | (function (angular) {
"use strict";
angular.module("mfl.gis.interceptor", [])
.factory("mfl.gis.interceptor.headers", [function () {
var etag_header = null;
var last_modified_header = null;
return {
"request" : function(config) {
if (etag_header) {
... | (function (angular) {
"use strict";
angular.module("mfl.gis.interceptor", [])
.factory("mfl.gis.interceptor.headers", [function () {
var cache_headers = {};
var request_fxn = function(config) {
var headers = cache_headers[config.url];
if (_.isUndefined(headers)) {
... | Make cache headers sentitive to urls | Make cache headers sentitive to urls
| JavaScript | mit | MasterFacilityList/mfl_web,urandu/mfl_web,MasterFacilityList/mfl_web,urandu/mfl_web,MasterFacilityList/mfl_web,MasterFacilityList/mfl_web | javascript | ## Code Before:
(function (angular) {
"use strict";
angular.module("mfl.gis.interceptor", [])
.factory("mfl.gis.interceptor.headers", [function () {
var etag_header = null;
var last_modified_header = null;
return {
"request" : function(config) {
if (et... | (function (angular) {
"use strict";
angular.module("mfl.gis.interceptor", [])
.factory("mfl.gis.interceptor.headers", [function () {
- var etag_header = null;
? --- ^^^^
+ var cache_headers = {};
? ++++ + ^^
- var last_modifi... | 59 | 1.594595 | 34 | 25 |
41b2afcf0b36cc5beb3cb17300475a09235cba72 | config/mutant.yml | config/mutant.yml | name: mutant
namespace: Mutant
zombify: true
| name: mutant
namespace: Mutant
zombify: true
ignore_subject:
# Mutation causes infinite runtime
- Mutant::Runner.lookup
| Add subject ignore for infinite runtime | Add subject ignore for infinite runtime
| YAML | mit | kbrock/mutant,backus/mutest,backus/mutant,tjchambers/mutant,backus/mutest,nepalez/mutant | yaml | ## Code Before:
name: mutant
namespace: Mutant
zombify: true
## Instruction:
Add subject ignore for infinite runtime
## Code After:
name: mutant
namespace: Mutant
zombify: true
ignore_subject:
# Mutation causes infinite runtime
- Mutant::Runner.lookup
| name: mutant
namespace: Mutant
zombify: true
+ ignore_subject:
+ # Mutation causes infinite runtime
+ - Mutant::Runner.lookup | 3 | 1 | 3 | 0 |
eed48707c946ab67a6562ede4c8a36a1ea32ec34 | lib/assets/javascripts/new-dashboard/components/CodeBlock.vue | lib/assets/javascripts/new-dashboard/components/CodeBlock.vue | <template>
<textarea ref="code" v-model="code"></textarea>
</template>
<script>
import CodeMirror from 'codemirror';
import 'codemirror/mode/javascript/javascript';
import 'codemirror/lib/codemirror.css';
import 'codemirror/theme/material.css';
export default {
name: 'CodeBlock',
mounted () {
this.initializ... | <template>
<textarea ref="code" v-model="code"></textarea>
</template>
<script>
import CodeMirror from 'codemirror';
import 'codemirror/mode/javascript/javascript';
import 'codemirror/lib/codemirror.css';
import 'codemirror/theme/material.css';
export default {
name: 'CodeBlock',
data () {
return {
co... | Add watcher to code blocks | Add watcher to code blocks
| Vue | bsd-3-clause | CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb | vue | ## Code Before:
<template>
<textarea ref="code" v-model="code"></textarea>
</template>
<script>
import CodeMirror from 'codemirror';
import 'codemirror/mode/javascript/javascript';
import 'codemirror/lib/codemirror.css';
import 'codemirror/theme/material.css';
export default {
name: 'CodeBlock',
mounted () {
... | <template>
<textarea ref="code" v-model="code"></textarea>
</template>
<script>
import CodeMirror from 'codemirror';
import 'codemirror/mode/javascript/javascript';
import 'codemirror/lib/codemirror.css';
import 'codemirror/theme/material.css';
export default {
name: 'CodeBlock',
+ data ... | 19 | 0.487179 | 18 | 1 |
b2a55ec1f739fe900615d72a3d55cc56613df423 | test/assertions.js | test/assertions.js | import assert from 'assert';
import { parse } from 'graphql';
import { validate } from 'graphql/validation';
import { buildASTSchema } from 'graphql/utilities/buildASTSchema';
import { kebabCase } from 'lodash';
const DefaultSchema = `
# Query root
type Query {
# Field
a: String
}
`;
export function exp... | import assert from 'assert';
import { parse } from 'graphql';
import { validate } from 'graphql/validation';
import { buildASTSchema } from 'graphql/utilities/buildASTSchema';
import { kebabCase } from 'lodash';
import { validateSchemaDefinition } from '../src/validator.js';
import { Configuration } from '../src/config... | Add support for specifying configurations in rule test helper | Add support for specifying configurations in rule test helper
| JavaScript | mit | cjoudrey/graphql-schema-linter | javascript | ## Code Before:
import assert from 'assert';
import { parse } from 'graphql';
import { validate } from 'graphql/validation';
import { buildASTSchema } from 'graphql/utilities/buildASTSchema';
import { kebabCase } from 'lodash';
const DefaultSchema = `
# Query root
type Query {
# Field
a: String
}
`;
exp... | import assert from 'assert';
import { parse } from 'graphql';
import { validate } from 'graphql/validation';
import { buildASTSchema } from 'graphql/utilities/buildASTSchema';
import { kebabCase } from 'lodash';
+ import { validateSchemaDefinition } from '../src/validator.js';
+ import { Configuration } from ... | 42 | 1 | 33 | 9 |
494119e3db289bb972178c8cf26819c0485fb5bc | template/pe/ext/redhat/ezbake.service.erb | template/pe/ext/redhat/ezbake.service.erb | [Unit]
Description=<%= EZBake::Config[:project] %> Service
After=syslog.target network.target
[Service]
Type=simple
EnvironmentFile=/etc/sysconfig/<%= EZBake::Config[:project] %>
User=$USER
ExecStart=/opt/puppet/bin/java $JAVA_ARGS \
-cp "${INSTALL_DIR}/<%= EZBake::Config[:uberjar_name] %>" clojure.main \
... | [Unit]
Description=<%= EZBake::Config[:project] %> Service
After=syslog.target network.target
[Service]
Type=simple
EnvironmentFile=/etc/sysconfig/<%= EZBake::Config[:project] %>
User=<%= EZBake::Config[:user] %>
ExecStart=/opt/puppet/bin/java $JAVA_ARGS \
-cp "${INSTALL_DIR}/<%= EZBake::Config[:uberjar_nam... | Fix systemd for pe templates | Fix systemd for pe templates
| HTML+ERB | apache-2.0 | puppetlabs/ezbake,puppetlabs/ezbake,puppetlabs/ezbake | html+erb | ## Code Before:
[Unit]
Description=<%= EZBake::Config[:project] %> Service
After=syslog.target network.target
[Service]
Type=simple
EnvironmentFile=/etc/sysconfig/<%= EZBake::Config[:project] %>
User=$USER
ExecStart=/opt/puppet/bin/java $JAVA_ARGS \
-cp "${INSTALL_DIR}/<%= EZBake::Config[:uberjar_name] %>" ... | [Unit]
Description=<%= EZBake::Config[:project] %> Service
After=syslog.target network.target
[Service]
Type=simple
EnvironmentFile=/etc/sysconfig/<%= EZBake::Config[:project] %>
- User=$USER
+ User=<%= EZBake::Config[:user] %>
ExecStart=/opt/puppet/bin/java $JAVA_ARGS \
-cp "${INSTALL_D... | 2 | 0.105263 | 1 | 1 |
5f46b3ab06de151d2eacf58846644898e25c9564 | README.md | README.md |
TODO: Write a gem description
## Installation
Add this line to your application's Gemfile:
gem 'affilinet'
And then execute:
$ bundle
Or install it yourself as:
$ gem install affilinet
## Usage
TODO: Write usage instructions here
## Contributing
1. Fork it
2. Create your feature branch (`git che... |
Alpha version of a gem to access the [Affilinet](http://affili.net) JSON API.
## Installation
Add this line to your application's Gemfile:
gem 'affilinet'
And then execute:
$ bundle
Or install it yourself as:
$ gem install affilinet
## Usage
Examples replicating the instructions on the [API Descri... | Add base description to readme | Add base description to readme
| Markdown | mit | esampaio/affilinet | markdown | ## Code Before:
TODO: Write a gem description
## Installation
Add this line to your application's Gemfile:
gem 'affilinet'
And then execute:
$ bundle
Or install it yourself as:
$ gem install affilinet
## Usage
TODO: Write usage instructions here
## Contributing
1. Fork it
2. Create your feature ... |
- TODO: Write a gem description
+ Alpha version of a gem to access the [Affilinet](http://affili.net) JSON API.
## Installation
Add this line to your application's Gemfile:
gem 'affilinet'
And then execute:
$ bundle
Or install it yourself as:
$ gem install affilinet
... | 56 | 2 | 54 | 2 |
bfb7510ca099af0ffc72d9e5e6b0d1882c9c0d18 | src/array_key_exists.php | src/array_key_exists.php | <?php
declare(strict_types=1);
namespace Zubr;
/**
* \Zubr\array_key_exists()
*
* @link https://secure.php.net/array_key_exists
*
* NOTES: same as \array_key_exists()
*/
function array_key_exists($key, $search)
{
return \array_key_exists($key, $search);
}
| <?php
declare(strict_types=1);
namespace Zubr;
/**
* \Zubr\array_key_exists()
*
* @link https://secure.php.net/array_key_exists
*
* NOTES: in Zubr, the $array parameter comes before $key
*/
function array_key_exists($array, $key)
{
return \array_key_exists($key, $array);
}
| Fix parameter order and rename params | Fix parameter order and rename params
| PHP | mit | nkkollaw/zubr | php | ## Code Before:
<?php
declare(strict_types=1);
namespace Zubr;
/**
* \Zubr\array_key_exists()
*
* @link https://secure.php.net/array_key_exists
*
* NOTES: same as \array_key_exists()
*/
function array_key_exists($key, $search)
{
return \array_key_exists($key, $search);
}
## Instruction:
Fix parameter order ... | <?php
declare(strict_types=1);
namespace Zubr;
/**
* \Zubr\array_key_exists()
*
* @link https://secure.php.net/array_key_exists
*
- * NOTES: same as \array_key_exists()
+ * NOTES: in Zubr, the $array parameter comes before $key
*/
- function array_key_exists($key, $search)
? ... | 6 | 0.375 | 3 | 3 |
2791cb26785e8e290e38de724933a501f589bf06 | examples/helloworld/helloworld.cpp | examples/helloworld/helloworld.cpp |
Hello::Hello()
{
QHttpServer *server = new QHttpServer;
server->listen(QHostAddress::Any, 5000);
connect(server, SIGNAL(newRequest(QHttpRequest*, QHttpResponse*)),
this, SLOT(handle(QHttpRequest*, QHttpResponse*)));
}
void Hello::handle(QHttpRequest *req, QHttpResponse *resp)
{
qDebug() <<... |
Hello::Hello()
{
QHttpServer *server = new QHttpServer;
server->listen(QHostAddress::Any, 5000);
connect(server, SIGNAL(newRequest(QHttpRequest*, QHttpResponse*)),
this, SLOT(handle(QHttpRequest*, QHttpResponse*)));
}
void Hello::handle(QHttpRequest *req, QHttpResponse *resp)
{
resp->setHe... | Remove extra stuff from simplest example | Remove extra stuff from simplest example
| C++ | mit | iptton/qhttpserver,rschroll/qhttpserver,nikhilm/qhttpserver,nikhilm/qhttpserver,rschroll/qhttpserver,arkpar/qhttpserver,iptton/qhttpserver,arkpar/qhttpserver,FreedomZZQ/qhttpserver,FreedomZZQ/qhttpserver,woboq/qhttpserver,rschroll/qhttpserver,nikhilm/qhttpserver,woboq/qhttpserver,arkpar/qhttpserver,iptton/qhttpserver,F... | c++ | ## Code Before:
Hello::Hello()
{
QHttpServer *server = new QHttpServer;
server->listen(QHostAddress::Any, 5000);
connect(server, SIGNAL(newRequest(QHttpRequest*, QHttpResponse*)),
this, SLOT(handle(QHttpRequest*, QHttpResponse*)));
}
void Hello::handle(QHttpRequest *req, QHttpResponse *resp)
{... |
Hello::Hello()
{
QHttpServer *server = new QHttpServer;
server->listen(QHostAddress::Any, 5000);
connect(server, SIGNAL(newRequest(QHttpRequest*, QHttpResponse*)),
this, SLOT(handle(QHttpRequest*, QHttpResponse*)));
}
void Hello::handle(QHttpRequest *req, QHttpResponse *res... | 7 | 0.233333 | 0 | 7 |
e502b79e8f461fed7b63aaa3fd49c2d358d934ff | index.js | index.js | var connect = require('connect');
var http = require('http');
var path = require('path');
var serveStatic = require('serve-static');
var app = connect();
app.use('/assets', serveStatic(path.join(path.dirname(require.resolve('classets/package')), 'public')));
app.use(serveStatic(path.join(__dirname, 'public')));
var p... | var connect = require('connect');
var http = require('http');
var path = require('path');
var serveStatic = require('serve-static');
var app = connect();
app.use('/assets', serveStatic(path.join(path.dirname(require.resolve('classets/package')), 'public')));
app.use(serveStatic(path.join(__dirname, 'public')));
var p... | Allow to customize the address classeur listens to | Allow to customize the address classeur listens to
The behavior of listen is a little queer, especially in regard of binding to an IPv6 socket. Some OS consider such socket to be listening both for IPv4 or IPv6, other OS have IPv6 sockets listening only to IPv6, and not to IPv4.
This change introduces a BINDING_ADD... | JavaScript | apache-2.0 | MiaoTofu/classeur,krotton/classeur,classeur/classeur,MiaoTofu/classeur,krotton/classeur,classeur/classeur | javascript | ## Code Before:
var connect = require('connect');
var http = require('http');
var path = require('path');
var serveStatic = require('serve-static');
var app = connect();
app.use('/assets', serveStatic(path.join(path.dirname(require.resolve('classets/package')), 'public')));
app.use(serveStatic(path.join(__dirname, 'pu... | var connect = require('connect');
var http = require('http');
var path = require('path');
var serveStatic = require('serve-static');
var app = connect();
app.use('/assets', serveStatic(path.join(path.dirname(require.resolve('classets/package')), 'public')));
app.use(serveStatic(path.join(__dirname, 'pu... | 5 | 0.357143 | 3 | 2 |
c338cf350db8e7396d5bef03ba03950a7b1c01e4 | Library/Homebrew/compat/fails_with_llvm.rb | Library/Homebrew/compat/fails_with_llvm.rb | class Formula
def fails_with_llvm msg=nil, data=nil
opoo "Calling fails_with_llvm in the install method is deprecated"
puts "Use the fails_with DSL instead"
end
def fails_with_llvm?
fails_with? :llvm
end
def self.fails_with_llvm msg=nil, data={}
data = msg if Hash === msg
fails_with(:llv... | class Formula
def fails_with_llvm msg=nil, data=nil
opoo "Calling fails_with_llvm in the install method is deprecated"
puts "Use the fails_with DSL instead"
end
def self.fails_with_llvm msg=nil, data={}
data = msg if Hash === msg
fails_with(:llvm) { build(data.delete(:build).to_i) }
end
end
| Remove an internal method from compat | Remove an internal method from compat
| Ruby | bsd-2-clause | gyaresu/homebrew,jbeezley/homebrew,nysthee/homebrew,filcab/homebrew,songjizu001/homebrew,asparagui/homebrew,benjaminfrank/homebrew,jbaum98/linuxbrew,marcelocantos/homebrew,danpalmer/homebrew,rhendric/homebrew,markpeek/homebrew,cvrebert/homebrew,tsaeger/homebrew,xyproto/homebrew,telamonian/linuxbrew,sferik/homebrew,henr... | ruby | ## Code Before:
class Formula
def fails_with_llvm msg=nil, data=nil
opoo "Calling fails_with_llvm in the install method is deprecated"
puts "Use the fails_with DSL instead"
end
def fails_with_llvm?
fails_with? :llvm
end
def self.fails_with_llvm msg=nil, data={}
data = msg if Hash === msg
... | class Formula
def fails_with_llvm msg=nil, data=nil
opoo "Calling fails_with_llvm in the install method is deprecated"
puts "Use the fails_with DSL instead"
- end
-
- def fails_with_llvm?
- fails_with? :llvm
end
def self.fails_with_llvm msg=nil, data={}
data = msg if Hash ===... | 4 | 0.266667 | 0 | 4 |
473159f5d3fadb960bbfaf3caf27605d3cb06d55 | Resources/SVG/check_green.svg | Resources/SVG/check_green.svg | <svg class="svg-check svg-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="#00ff00" stroke-width="1.25" stroke="#000"><polyline points="3.7,9.8 8.9,16 16.3,4"></polyline></g></svg> | <svg class="svg-check svg-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke-width="1.25" stroke="#00a550"><polyline points="3.7,9.8 8.9,16 16.3,4"></polyline></g></svg> | Update green check to use stroke and not fill. | Update green check to use stroke and not fill.
| SVG | mit | ello/ello-ios,ello/ello-ios,ello/ello-ios,ello/ello-ios | svg | ## Code Before:
<svg class="svg-check svg-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="#00ff00" stroke-width="1.25" stroke="#000"><polyline points="3.7,9.8 8.9,16 16.3,4"></polyline></g></svg>
## Instruction:
Update green check to use stroke and not fill.
## Code After:
<svg class="svg-check s... | - <svg class="svg-check svg-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="#00ff00" stroke-width="1.25" stroke="#000"><polyline points="3.7,9.8 8.9,16 16.3,4"></polyline></g></svg>
? ^^^^^^^^^^^^^^^... | 2 | 2 | 1 | 1 |
88b5ea4c171dbf10eb7a3c200328c7b6569aa0a2 | setup.cfg | setup.cfg | [flake8]
# Exclude docs
exclude = doc/*
[build_meta]
repotag=02c79cb19e9f580b6b5f0722717ba4fa47d1ec85
| [flake8]
# Exclude docs
exclude = doc/*
[build_meta]
repotag=6d1305a490d6b225cdb5233933a7b60cc84c2223
| Use the latest metadata commit. | Use the latest metadata commit.
| INI | bsd-2-clause | simphony/simphony-common | ini | ## Code Before:
[flake8]
# Exclude docs
exclude = doc/*
[build_meta]
repotag=02c79cb19e9f580b6b5f0722717ba4fa47d1ec85
## Instruction:
Use the latest metadata commit.
## Code After:
[flake8]
# Exclude docs
exclude = doc/*
[build_meta]
repotag=6d1305a490d6b225cdb5233933a7b60cc84c2223
| [flake8]
# Exclude docs
exclude = doc/*
[build_meta]
- repotag=02c79cb19e9f580b6b5f0722717ba4fa47d1ec85
+ repotag=6d1305a490d6b225cdb5233933a7b60cc84c2223 | 2 | 0.333333 | 1 | 1 |
0aef24175cc9f0c93dba92775996a45df4fedcba | addon.xml | addon.xml | <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.paktvforum" name="PakTVForum" version="0.0.6" provider-name="Irfan Charania">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
<import addon="script.module.xbmcswift2" version="2.4.0"/>
<import addon="script.module.bea... | <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.paktvforum" name="PakTVForum" version="0.0.6" provider-name="Irfan Charania">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
<import addon="script.module.xbmcswift2" version="2.4.0"/>
<import addon="script.module.bea... | Add forum link + license | Add forum link + license
| XML | mit | irfancharania/plugin.video.paktvforum | xml | ## Code Before:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.paktvforum" name="PakTVForum" version="0.0.6" provider-name="Irfan Charania">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
<import addon="script.module.xbmcswift2" version="2.4.0"/>
<import addon="s... | <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.paktvforum" name="PakTVForum" version="0.0.6" provider-name="Irfan Charania">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
<import addon="script.module.xbmcswift2" version="2.4.0"/>
<import addon="scrip... | 2 | 0.083333 | 2 | 0 |
4961967ab70fc33361954314553613fe6e8b4851 | pyV2S.py | pyV2S.py |
import os
from file_manager.vhdl_reader import Vhdl_reader
from decorator.pdfdrawer import PdfDrawer
import sys
print 'Number of arguments:', len(sys.argv), 'arguments.'
print 'Argument List:', str(sys.argv)
filename = str(sys.argv[1])
reader = Vhdl_reader(filename)
drawer = PdfDrawer("%s.pdf" % reader.entity.nam... |
import os
from file_manager.vhdl_reader import Vhdl_reader
from decorator.pdfdrawer import PdfDrawer
import sys
try:
filename = str(sys.argv[1])
except:
filename = "datas/test_files/demo.vhd"
reader = Vhdl_reader(filename)
drawer = PdfDrawer("%s.pdf" % reader.entity.name, reader.entity)
print "The schematic was... | Add a demo mode : if no vhdl file is given the demo one is used datas/test_files/demo.vhd | Add a demo mode :
if no vhdl file is given the demo one is used
datas/test_files/demo.vhd
| Python | bsd-2-clause | LaurentCabaret/pyVhdl2Sch,LaurentCabaret/pyVhdl2Sch | python | ## Code Before:
import os
from file_manager.vhdl_reader import Vhdl_reader
from decorator.pdfdrawer import PdfDrawer
import sys
print 'Number of arguments:', len(sys.argv), 'arguments.'
print 'Argument List:', str(sys.argv)
filename = str(sys.argv[1])
reader = Vhdl_reader(filename)
drawer = PdfDrawer("%s.pdf" % r... |
import os
from file_manager.vhdl_reader import Vhdl_reader
from decorator.pdfdrawer import PdfDrawer
import sys
+ try:
- print 'Number of arguments:', len(sys.argv), 'arguments.'
- print 'Argument List:', str(sys.argv)
-
- filename = str(sys.argv[1])
+ filename = str(sys.argv[1])
? +
+ except:
+ fi... | 10 | 0.666667 | 6 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.