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;
overflow: hidden;
}
.UppyWebcam-video {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
min-width: 100%;
min-height: 100%;
}
// .UppyWebcam-canvas {
// display: none;
// }
.UppyWebcam-buttonContainer {
position: absolute;
bottom: 30px;
right: 30px;
}
.UppyWebcam-recordButton .UppyIcon {
width: 50%;
height: 50%;
position: relative;
top: -1px;
}
| // @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: center;
align-items: center;
}
.UppyWebcam-video {
max-width: 100%;
max-height: 100%;
}
// .UppyWebcam-canvas {
// display: none;
// }
.UppyWebcam-buttonContainer {
position: absolute;
bottom: 30px;
right: 30px;
}
.UppyWebcam-recordButton .UppyIcon {
width: 50%;
height: 50%;
position: relative;
top: -1px;
}
| 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%;
position: relative;
overflow: hidden;
}
.UppyWebcam-video {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
min-width: 100%;
min-height: 100%;
}
// .UppyWebcam-canvas {
// display: none;
// }
.UppyWebcam-buttonContainer {
position: absolute;
bottom: 30px;
right: 30px;
}
.UppyWebcam-recordButton .UppyIcon {
width: 50%;
height: 50%;
position: relative;
top: -1px;
}
## Instruction:
Make the webcam video fill the available space as much as possible
## Code After:
// @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: center;
align-items: center;
}
.UppyWebcam-video {
max-width: 100%;
max-height: 100%;
}
// .UppyWebcam-canvas {
// display: none;
// }
.UppyWebcam-buttonContainer {
position: absolute;
bottom: 30px;
right: 30px;
}
.UppyWebcam-recordButton .UppyIcon {
width: 50%;
height: 50%;
position: relative;
top: -1px;
}
| // @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%;
? ^
+ height: 100%;
? ^^
- position: relative;
- overflow: hidden;
+ display: flex;
+ justify-content: center;
+ align-items: center;
}
.UppyWebcam-video {
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- min-width: 100%;
? ^^
+ max-width: 100%;
? ^^
- min-height: 100%;
? ^^
+ max-height: 100%;
? ^^
}
// .UppyWebcam-canvas {
// display: none;
// }
.UppyWebcam-buttonContainer {
position: absolute;
bottom: 30px;
right: 30px;
}
.UppyWebcam-recordButton .UppyIcon {
width: 50%;
height: 50%;
position: relative;
top: -1px;
} | 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: make([]*ast.Field, 0)},
},
)
want := "SpyTester"
got := typeSpec.Name.Name
if want != got {
t.Errorf("want %v, got %v", want, got)
}
}
| 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([]*ast.Field, 0)},
},
)
want := "SpyTester"
got := typeSpec.Name.Name
if want != got {
t.Errorf("want %v, got %v", want, got)
}
}
func TestConvertAddsRecordOfFunctionCallAsField(t *testing.T) {
converter := &fm.SpyStructConverter{}
typeSpec := converter.Convert(
&ast.TypeSpec{Name: ast.NewIdent("Tester")},
&ast.InterfaceType{
Methods: &ast.FieldList{
List: []*ast.Field{
&ast.Field{
Names: []*ast.Ident{ast.NewIdent("Test")},
Type: &ast.FuncType{
Params: &ast.FieldList{},
Results: &ast.FieldList{},
},
},
},
},
},
)
structType, ok := typeSpec.Type.(*ast.StructType)
if !ok {
t.Fatal("expected typeSpec to be of type StructType")
}
want := 1
got := len(structType.Fields.List)
if want != got {
t.Errorf("want %v, got %v", want, got)
}
calledField := structType.Fields.List[0]
wantName := "Test_Called"
gotName := calledField.Names[0].Name
if wantName != gotName {
t.Errorf("want %v, got %v", wantName, gotName)
}
}
| 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.FieldList{List: make([]*ast.Field, 0)},
},
)
want := "SpyTester"
got := typeSpec.Name.Name
if want != got {
t.Errorf("want %v, got %v", want, got)
}
}
## Instruction:
Add converter test confirming "_Called" field
## Code After:
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([]*ast.Field, 0)},
},
)
want := "SpyTester"
got := typeSpec.Name.Name
if want != got {
t.Errorf("want %v, got %v", want, got)
}
}
func TestConvertAddsRecordOfFunctionCallAsField(t *testing.T) {
converter := &fm.SpyStructConverter{}
typeSpec := converter.Convert(
&ast.TypeSpec{Name: ast.NewIdent("Tester")},
&ast.InterfaceType{
Methods: &ast.FieldList{
List: []*ast.Field{
&ast.Field{
Names: []*ast.Ident{ast.NewIdent("Test")},
Type: &ast.FuncType{
Params: &ast.FieldList{},
Results: &ast.FieldList{},
},
},
},
},
},
)
structType, ok := typeSpec.Type.(*ast.StructType)
if !ok {
t.Fatal("expected typeSpec to be of type StructType")
}
want := 1
got := len(structType.Fields.List)
if want != got {
t.Errorf("want %v, got %v", want, got)
}
calledField := structType.Fields.List[0]
wantName := "Test_Called"
gotName := calledField.Names[0].Name
if wantName != gotName {
t.Errorf("want %v, got %v", wantName, gotName)
}
}
| 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: ast.NewIdent("Tester")},
? ^^^^^^^^^^^^^^ +
- },
&ast.InterfaceType{
Methods: &ast.FieldList{List: make([]*ast.Field, 0)},
},
)
want := "SpyTester"
got := typeSpec.Name.Name
if want != got {
t.Errorf("want %v, got %v", want, got)
}
}
+
+ func TestConvertAddsRecordOfFunctionCallAsField(t *testing.T) {
+ converter := &fm.SpyStructConverter{}
+
+ typeSpec := converter.Convert(
+ &ast.TypeSpec{Name: ast.NewIdent("Tester")},
+ &ast.InterfaceType{
+ Methods: &ast.FieldList{
+ List: []*ast.Field{
+ &ast.Field{
+ Names: []*ast.Ident{ast.NewIdent("Test")},
+ Type: &ast.FuncType{
+ Params: &ast.FieldList{},
+ Results: &ast.FieldList{},
+ },
+ },
+ },
+ },
+ },
+ )
+
+ structType, ok := typeSpec.Type.(*ast.StructType)
+ if !ok {
+ t.Fatal("expected typeSpec to be of type StructType")
+ }
+
+ want := 1
+ got := len(structType.Fields.List)
+ if want != got {
+ t.Errorf("want %v, got %v", want, got)
+ }
+
+ calledField := structType.Fields.List[0]
+
+ wantName := "Test_Called"
+ gotName := calledField.Names[0].Name
+ if wantName != gotName {
+ t.Errorf("want %v, got %v", wantName, gotName)
+ }
+ } | 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://localhost:9763
stratos.admin.username=admin
stratos.admin.password=admin
test.thread.pool.size=30 | 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.endpoint=http://localhost:9763
stratos.admin.username=admin
stratos.admin.password=admin
test.thread.pool.size=30
| 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/product-private-paas,pubudu538/product-private-paas,pubudu538/product-private-paas,nishadi/product-private-paas,wso2/product-private-paas,Thanu/product-private-paas,pubudu538/product-private-paas,Thanu/product-private-paas,Vishanth/product-private-paas,wso2/product-private-paas,Vishanth/product-private-paas,Vishanth/product-private-paas,nishadi/product-private-paas,Thanu/product-private-paas,wso2/product-private-paas,nishadi/product-private-paas,Vishanth/product-private-paas,pubudu538/product-private-paas,nishadi/product-private-paas | 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.endpoint=http://localhost:9763
stratos.admin.username=admin
stratos.admin.password=admin
test.thread.pool.size=30
## Instruction:
Fix PCA version in live test
## Code After:
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.endpoint=http://localhost:9763
stratos.admin.username=admin
stratos.admin.password=admin
test.thread.pool.size=30
| distribution.version=${project.version}
- distribution.name=${python.cartridge.agent.distribution.name}-${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.endpoint=http://localhost:9763
stratos.admin.username=admin
stratos.admin.password=admin
test.thread.pool.size=30 | 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)
| direction == 'v' = (startX, startY - 1)
| direction == '<' = (startX - 1, startY)
| otherwise = (0,0) -- It's specified that this won't happen
housesFromDirections :: [Char] -> [House]
housesFromDirections directions = concat [(scanl nextHouse (0,0) (everyOther directions)), (scanl nextHouse (0,0) (everyOther (drop 1 directions)))]
main :: IO ()
main = do
inputHandle <- openFile "pt1_input" ReadMode
input <- hGetContents inputHandle
print $ length $ nub $ housesFromDirections (input)
--print $ everyOther [1, 2, 3, 4, 5]
| 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)
| direction == 'v' = (startX, startY - 1)
| direction == '<' = (startX - 1, startY)
| otherwise = (0, 0) -- It's specified that this won't happen
housesFromDirections :: [Char] -> [House]
housesFromDirections directions = scanl nextHouse (0,0) directions
housesFromAlternatingDirections :: [Char] -> [House]
housesFromAlternatingDirections directions = concat [(housesFromDirections (everyOther directions)), (housesFromDirections (everyOther (drop 1 directions)))]
main :: IO ()
main = do
inputHandle <- openFile "pt1_input" ReadMode
input <- hGetContents inputHandle
print $ length $ nub $ housesFromDirections (input)
| 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 == '>' = (startX + 1, startY)
| direction == 'v' = (startX, startY - 1)
| direction == '<' = (startX - 1, startY)
| otherwise = (0,0) -- It's specified that this won't happen
housesFromDirections :: [Char] -> [House]
housesFromDirections directions = concat [(scanl nextHouse (0,0) (everyOther directions)), (scanl nextHouse (0,0) (everyOther (drop 1 directions)))]
main :: IO ()
main = do
inputHandle <- openFile "pt1_input" ReadMode
input <- hGetContents inputHandle
print $ length $ nub $ housesFromDirections (input)
--print $ everyOther [1, 2, 3, 4, 5]
## Instruction:
Clean up for Day 3 Part 2
## Code After:
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)
| direction == 'v' = (startX, startY - 1)
| direction == '<' = (startX - 1, startY)
| otherwise = (0, 0) -- It's specified that this won't happen
housesFromDirections :: [Char] -> [House]
housesFromDirections directions = scanl nextHouse (0,0) directions
housesFromAlternatingDirections :: [Char] -> [House]
housesFromAlternatingDirections directions = concat [(housesFromDirections (everyOther directions)), (housesFromDirections (everyOther (drop 1 directions)))]
main :: IO ()
main = do
inputHandle <- openFile "pt1_input" ReadMode
input <- hGetContents inputHandle
print $ length $ nub $ housesFromDirections (input)
| 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)
| direction == 'v' = (startX, startY - 1)
| direction == '<' = (startX - 1, startY)
- | otherwise = (0,0) -- It's specified that this won't happen
+ | otherwise = (0, 0) -- It's specified that this won't happen
? +
housesFromDirections :: [Char] -> [House]
- housesFromDirections directions = concat [(scanl nextHouse (0,0) (everyOther directions)), (scanl nextHouse (0,0) (everyOther (drop 1 directions)))]
+ housesFromDirections directions = scanl nextHouse (0,0) directions
+
+ housesFromAlternatingDirections :: [Char] -> [House]
+ housesFromAlternatingDirections directions = concat [(housesFromDirections (everyOther directions)), (housesFromDirections (everyOther (drop 1 directions)))]
main :: IO ()
main = do
inputHandle <- openFile "pt1_input" ReadMode
input <- hGetContents inputHandle
print $ length $ nub $ housesFromDirections (input)
- --print $ everyOther [1, 2, 3, 4, 5] | 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 hierarchical structure. Variables not found in the current context are searched
* for in its parent, which continues recursively until the context being examined has no parent.
* This class assists that logic, which is commonly re-used with different variable types, by calling
* [valueGetter] on the current context, then its parent, etc.
*
* @param V the type of the property to search recursively.
* @property valueGetter the getter lambda to access the value from the context.
*/
class ChainSearchDelegate<out V>(private val valueGetter: EvaluationContext.() -> V?) {
operator fun getValue(selfRef: Any, property: KProperty<*>): V {
var currentRef = selfRef as EvaluationContext
var returnedValue = currentRef.valueGetter()
while (returnedValue == null) {
currentRef = currentRef.parent ?: break
returnedValue = currentRef.valueGetter()
}
return returnedValue ?: throw ContextException()
}
} | 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 hierarchical structure. Variables not found in the current context are searched
* for in its parent, which continues recursively until the context being examined has no parent.
* This class assists that logic, which is commonly re-used with different variable types, by calling
* [valueGetter] on the current context, then its parent, etc.
*
* @param V the type of the property to search recursively.
* @property valueGetter the getter lambda to access the value from the context.
*/
class ChainSearchDelegate<out V>(private val valueGetter: EvaluationContext.() -> V?) {
operator fun getValue(selfRef: Any, property: KProperty<*>): V {
var currentRef = selfRef as EvaluationContext
var returnedValue = currentRef.valueGetter()
while (returnedValue == null) {
currentRef = currentRef.parent ?: break
returnedValue = currentRef.valueGetter()
}
return returnedValue ?: throw ContextException("context chain does not contain value")
}
} | 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
* of its hierarchical structure. Variables not found in the current context are searched
* for in its parent, which continues recursively until the context being examined has no parent.
* This class assists that logic, which is commonly re-used with different variable types, by calling
* [valueGetter] on the current context, then its parent, etc.
*
* @param V the type of the property to search recursively.
* @property valueGetter the getter lambda to access the value from the context.
*/
class ChainSearchDelegate<out V>(private val valueGetter: EvaluationContext.() -> V?) {
operator fun getValue(selfRef: Any, property: KProperty<*>): V {
var currentRef = selfRef as EvaluationContext
var returnedValue = currentRef.valueGetter()
while (returnedValue == null) {
currentRef = currentRef.parent ?: break
returnedValue = currentRef.valueGetter()
}
return returnedValue ?: throw ContextException()
}
}
## Instruction:
Add more descriptive message to context exceptions.
## Code After:
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 hierarchical structure. Variables not found in the current context are searched
* for in its parent, which continues recursively until the context being examined has no parent.
* This class assists that logic, which is commonly re-used with different variable types, by calling
* [valueGetter] on the current context, then its parent, etc.
*
* @param V the type of the property to search recursively.
* @property valueGetter the getter lambda to access the value from the context.
*/
class ChainSearchDelegate<out V>(private val valueGetter: EvaluationContext.() -> V?) {
operator fun getValue(selfRef: Any, property: KProperty<*>): V {
var currentRef = selfRef as EvaluationContext
var returnedValue = currentRef.valueGetter()
while (returnedValue == null) {
currentRef = currentRef.parent ?: break
returnedValue = currentRef.valueGetter()
}
return returnedValue ?: throw ContextException("context chain does not contain value")
}
} | 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 hierarchical structure. Variables not found in the current context are searched
* for in its parent, which continues recursively until the context being examined has no parent.
* This class assists that logic, which is commonly re-used with different variable types, by calling
* [valueGetter] on the current context, then its parent, etc.
*
* @param V the type of the property to search recursively.
* @property valueGetter the getter lambda to access the value from the context.
*/
class ChainSearchDelegate<out V>(private val valueGetter: EvaluationContext.() -> V?) {
operator fun getValue(selfRef: Any, property: KProperty<*>): V {
var currentRef = selfRef as EvaluationContext
var returnedValue = currentRef.valueGetter()
while (returnedValue == null) {
currentRef = currentRef.parent ?: break
returnedValue = currentRef.valueGetter()
}
- return returnedValue ?: throw ContextException()
+ return returnedValue ?: throw ContextException("context chain does not contain value")
}
} | 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)
- [GOV.UK elements](https://github.com/alphagov/govuk_elements)
## Requirements
#### [Node v4.x.x](http://nodejs.org/)
You may already have it, try:
```
node --version
```
Your version needs to be at least v0.10.0.
If you don't have Node, download it here: [http://nodejs.org/](http://nodejs.org/).
## Getting started
Install Node.js (see requirements)
#### Clone this repo
```
git clone https://github.com/nhsalpha/nhs_prototype_kit.git
```
#### Install dependencies
```
npm install
```
This will install folders containing programs described by the package.json
file to a folder called `node_modules`.
#### Run the app
```
node start.js
```
Go to [localhost:3000](http://localhost:3000) in your browser.
|
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 front end toolkit](https://github.com/alphagov/govuk_frontend_toolkit)
- [GOV.UK elements](https://github.com/alphagov/govuk_elements)
## Requirements
#### [Node v4.x.x](http://nodejs.org/)
You may already have it, try:
```
node --version
```
Your version needs to be at least v0.10.0.
If you don't have Node, download it here: [http://nodejs.org/](http://nodejs.org/).
## Getting started
Install Node.js (see requirements)
#### Clone this repo
```
git clone https://github.com/nhsalpha/nhs_prototype_kit.git
```
#### Install dependencies
```
npm install
```
This will install folders containing programs described by the package.json
file to a folder called `node_modules`.
#### Run the app
```
node start.js
```
Go to [localhost:3000](http://localhost:3000) in your browser.
| 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_frontend_toolkit)
- [GOV.UK elements](https://github.com/alphagov/govuk_elements)
## Requirements
#### [Node v4.x.x](http://nodejs.org/)
You may already have it, try:
```
node --version
```
Your version needs to be at least v0.10.0.
If you don't have Node, download it here: [http://nodejs.org/](http://nodejs.org/).
## Getting started
Install Node.js (see requirements)
#### Clone this repo
```
git clone https://github.com/nhsalpha/nhs_prototype_kit.git
```
#### Install dependencies
```
npm install
```
This will install folders containing programs described by the package.json
file to a folder called `node_modules`.
#### Run the app
```
node start.js
```
Go to [localhost:3000](http://localhost:3000) in your browser.
## Instruction:
Add Alpha dates to readme
## Code After:
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 front end toolkit](https://github.com/alphagov/govuk_frontend_toolkit)
- [GOV.UK elements](https://github.com/alphagov/govuk_elements)
## Requirements
#### [Node v4.x.x](http://nodejs.org/)
You may already have it, try:
```
node --version
```
Your version needs to be at least v0.10.0.
If you don't have Node, download it here: [http://nodejs.org/](http://nodejs.org/).
## Getting started
Install Node.js (see requirements)
#### Clone this repo
```
git clone https://github.com/nhsalpha/nhs_prototype_kit.git
```
#### Install dependencies
```
npm install
```
This will install folders containing programs described by the package.json
file to a folder called `node_modules`.
#### Run the app
```
node start.js
```
Go to [localhost:3000](http://localhost:3000) in your browser.
| +
+ 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 front end toolkit](https://github.com/alphagov/govuk_frontend_toolkit)
- [GOV.UK elements](https://github.com/alphagov/govuk_elements)
## Requirements
#### [Node v4.x.x](http://nodejs.org/)
You may already have it, try:
```
node --version
```
Your version needs to be at least v0.10.0.
If you don't have Node, download it here: [http://nodejs.org/](http://nodejs.org/).
## Getting started
Install Node.js (see requirements)
#### Clone this repo
```
git clone https://github.com/nhsalpha/nhs_prototype_kit.git
```
#### Install dependencies
```
npm install
```
This will install folders containing programs described by the package.json
file to a folder called `node_modules`.
#### Run the app
```
node start.js
```
Go to [localhost:3000](http://localhost:3000) in your browser. | 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 \
--benchmark-min-time=0.1
after_success:
- coveralls
| 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 \
--benchmark-sort=mean \
--benchmark-min-time=0.1
after_success:
- coveralls
| 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-sort=mean \
--benchmark-min-time=0.1
after_success:
- coveralls
## Instruction:
Install Cython in Travis CI
## Code After:
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 \
--benchmark-sort=mean \
--benchmark-min-time=0.1
after_success:
- coveralls
| 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 \
--benchmark-sort=mean \
--benchmark-min-time=0.1
after_success:
- coveralls | 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">
<div class="form-group">
<!--
<label class="col-sm-4 control-label">Vault ID:</label>
<div class="col-sm-6">
<input type="text" name="id" />
</div>
-->
<label class="col-xs-6 control-label">Deposit Note:</label>
<div class="col-xs-6">
<@spring.bind "deposit.note" />
<input type="text"
name="${spring.status.expression}"
value="${spring.status.value!""}"/>
</div>
<label class="col-xs-6 control-label">Filepath:</label>
<div class="col-xs-6">
<@spring.bind "deposit.filePath" />
<textarea type="text" name=filePath" rows="6" cols="60"></textarea>
</div>
</div>
<div class="modal-footer">
<input type="submit" class="btn btn-primary" value="Submit"/>
</div>
</form>
</div>
</div>
</@layout.vaultLayout> | <#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">
<div class="form-group">
<!--
<label class="col-sm-4 control-label">Vault ID:</label>
<div class="col-sm-6">
<input type="text" name="id" />
</div>
-->
<label class="col-xs-6 control-label">Deposit Note:</label>
<div class="col-xs-6">
<@spring.bind "deposit.note" />
<input type="text"
name="${spring.status.expression}"
value="${spring.status.value!""}"/>
</div>
<label class="col-xs-6 control-label">Filepath:</label>
<div class="col-xs-6">
<@spring.bind "deposit.filePath" />
<textarea type="text" name="${spring.status.expression}"
value="${spring.status.value!""}" rows="6" cols="60"></textarea>
</div>
</div>
<div class="modal-footer">
<input type="submit" class="btn btn-primary" value="Submit"/>
</div>
</form>
</div>
</div>
</@layout.vaultLayout> | 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/datavault,DataVault/datavault,robintaylor/datavault,DataVault/datavault,robintaylor/datavault,tomhigginsuom/datavault,ianthe/datavault,tomhigginsuom/datavault,tomhigginsuom/datavault | 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="" method="post">
<div class="form-group">
<!--
<label class="col-sm-4 control-label">Vault ID:</label>
<div class="col-sm-6">
<input type="text" name="id" />
</div>
-->
<label class="col-xs-6 control-label">Deposit Note:</label>
<div class="col-xs-6">
<@spring.bind "deposit.note" />
<input type="text"
name="${spring.status.expression}"
value="${spring.status.value!""}"/>
</div>
<label class="col-xs-6 control-label">Filepath:</label>
<div class="col-xs-6">
<@spring.bind "deposit.filePath" />
<textarea type="text" name=filePath" rows="6" cols="60"></textarea>
</div>
</div>
<div class="modal-footer">
<input type="submit" class="btn btn-primary" value="Submit"/>
</div>
</form>
</div>
</div>
</@layout.vaultLayout>
## Instruction:
Fix missing filepath when creating deposit
## Code After:
<#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">
<div class="form-group">
<!--
<label class="col-sm-4 control-label">Vault ID:</label>
<div class="col-sm-6">
<input type="text" name="id" />
</div>
-->
<label class="col-xs-6 control-label">Deposit Note:</label>
<div class="col-xs-6">
<@spring.bind "deposit.note" />
<input type="text"
name="${spring.status.expression}"
value="${spring.status.value!""}"/>
</div>
<label class="col-xs-6 control-label">Filepath:</label>
<div class="col-xs-6">
<@spring.bind "deposit.filePath" />
<textarea type="text" name="${spring.status.expression}"
value="${spring.status.value!""}" rows="6" cols="60"></textarea>
</div>
</div>
<div class="modal-footer">
<input type="submit" class="btn btn-primary" value="Submit"/>
</div>
</form>
</div>
</div>
</@layout.vaultLayout> | <#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">
<div class="form-group">
<!--
<label class="col-sm-4 control-label">Vault ID:</label>
<div class="col-sm-6">
<input type="text" name="id" />
</div>
-->
<label class="col-xs-6 control-label">Deposit Note:</label>
<div class="col-xs-6">
<@spring.bind "deposit.note" />
<input type="text"
name="${spring.status.expression}"
value="${spring.status.value!""}"/>
</div>
<label class="col-xs-6 control-label">Filepath:</label>
<div class="col-xs-6">
<@spring.bind "deposit.filePath" />
- <textarea type="text" name=filePath" rows="6" cols="60"></textarea>
+
+ <textarea type="text" name="${spring.status.expression}"
+ value="${spring.status.value!""}" rows="6" cols="60"></textarea>
</div>
</div>
<div class="modal-footer">
<input type="submit" class="btn btn-primary" value="Submit"/>
</div>
</form>
</div>
</div>
</@layout.vaultLayout> | 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",
"problemMatcher": "$msCompile"
},
{
"label": "test",
"command": "dotnet test \"src\\LazyStorage.Tests\\LazyStorage.Tests.csproj\"",
"type": "shell",
"group": "test",
"problemMatcher": {
"owner": "csharptests",
"fileLocation": ["relative", "${workspaceFolder}"],
"pattern": [
{
"regexp": "^\\[(xUnit.net)(.*)\\](.*)(\\[FAIL\\])$",
"file": 1,
"line": 3,
"message": 3,
"loop": true
}
]
}
}
]
} | {
// 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",
"problemMatcher": "$msCompile"
},
{
"label": "test",
"command": "dotnet test \"src\\LazyStorage.Tests\\LazyStorage.Tests.csproj\"",
"type": "shell",
"group": "test",
"problemMatcher": {
"owner": "csharptests",
"fileLocation": ["absolute"],
"pattern": {
"regexp": "^\\[xUnit.net.*\\]\\s*(.*)\\((\\d+),(\\d+)\\):\\sat\\s(.*)$",
"file": 1,
"line": 2,
"column": 3,
"message": 4
}
}
}
]
} | 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",
"problemMatcher": "$msCompile"
},
{
"label": "test",
"command": "dotnet test \"src\\LazyStorage.Tests\\LazyStorage.Tests.csproj\"",
"type": "shell",
"group": "test",
"problemMatcher": {
"owner": "csharptests",
"fileLocation": ["relative", "${workspaceFolder}"],
"pattern": [
{
"regexp": "^\\[(xUnit.net)(.*)\\](.*)(\\[FAIL\\])$",
"file": 1,
"line": 3,
"message": 3,
"loop": true
}
]
}
}
]
}
## Instruction:
Use stack trace as lnk insteadThis loses the information of the params used in the test but links to the assert if it fails
## Code After:
{
// 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",
"problemMatcher": "$msCompile"
},
{
"label": "test",
"command": "dotnet test \"src\\LazyStorage.Tests\\LazyStorage.Tests.csproj\"",
"type": "shell",
"group": "test",
"problemMatcher": {
"owner": "csharptests",
"fileLocation": ["absolute"],
"pattern": {
"regexp": "^\\[xUnit.net.*\\]\\s*(.*)\\((\\d+),(\\d+)\\):\\sat\\s(.*)$",
"file": 1,
"line": 2,
"column": 3,
"message": 4
}
}
}
]
} | {
// 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",
"problemMatcher": "$msCompile"
},
{
"label": "test",
"command": "dotnet test \"src\\LazyStorage.Tests\\LazyStorage.Tests.csproj\"",
"type": "shell",
"group": "test",
"problemMatcher": {
"owner": "csharptests",
- "fileLocation": ["relative", "${workspaceFolder}"],
? --- ^^^^^^^^^^^^^^ ----- ^ --
+ "fileLocation": ["absolute"],
? ^ ^^
- "pattern": [
? ^
+ "pattern": {
? ^
+ "regexp": "^\\[xUnit.net.*\\]\\s*(.*)\\((\\d+),(\\d+)\\):\\sat\\s(.*)$",
- {
- "regexp": "^\\[(xUnit.net)(.*)\\](.*)(\\[FAIL\\])$",
"file": 1,
- "line": 3,
? ^
+ "line": 2,
? ^
+ "column": 3,
- "message": 3,
? ^^
+ "message": 4
? ^
- "loop": true
}
- ]
}
}
]
} | 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.
## Getting Started
Install the module with: `npm install radiator-js -g`
## Documentation
Wat?
## Examples
> radiator
## Expected output
![Image of Warm cat]
(http://www.roflcat.com/images/cats/Why_Is_It_Made_Of_Warm.jpg)
## License
Copyright (c) 2014 Johan Borestad
Licensed under the MIT license.
| 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 fire since your cpu(s) will go crazy and eat battery like it was no tomorrow.
## Getting Started
Install the module with: `npm install radiator-js -g`
## Documentation
Wat?
## Examples
> radiator
## License
Copyright (c) 2014 Johan Borestad
Licensed under the MIT license.
| 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 tomorrow.
## Getting Started
Install the module with: `npm install radiator-js -g`
## Documentation
Wat?
## Examples
> radiator
## Expected output
![Image of Warm cat]
(http://www.roflcat.com/images/cats/Why_Is_It_Made_Of_Warm.jpg)
## License
Copyright (c) 2014 Johan Borestad
Licensed under the MIT license.
## Instruction:
Put cat image on top - because cat's are cute :)
## Code After:
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 fire since your cpu(s) will go crazy and eat battery like it was no tomorrow.
## Getting Started
Install the module with: `npm install radiator-js -g`
## Documentation
Wat?
## Examples
> radiator
## License
Copyright (c) 2014 Johan Borestad
Licensed under the MIT license.
| + 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 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.
## Getting Started
Install the module with: `npm install radiator-js -g`
## Documentation
Wat?
## Examples
> radiator
- ## Expected output
- ![Image of Warm cat]
- (http://www.roflcat.com/images/cats/Why_Is_It_Made_Of_Warm.jpg)
## License
Copyright (c) 2014 Johan Borestad
Licensed under the MIT license. | 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 instructions were emitted
; CHECK: {{^.text:}}
; CHECK-NEXT: 0:
; CHECK-NEXT: 2:
; CHECK-NEXT: 4:
; CHECK-NEXT: 6:
; CHECK-NOT: 8:
}
| ; 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) {
%tmp1neg = sub i32 0, %a
%b = icmp sgt i32 %a, -1
%abs = select i1 %b, i32 %a, i32 %tmp1neg
ret i32 %abs
; CHECK: movs r0, r0
; CHECK: bpl
; CHECK: rsb r0, r0, #0
; CHECK: bx lr
}
| 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: 0ff597fd157e6f4fc38580e8d64ab130330d2411@176394 91177308-0d34-0410-b5e6-96231b3b80d8
| 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,dslab-epfl/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm | 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 checks that 4 instructions were emitted
; CHECK: {{^.text:}}
; CHECK-NEXT: 0:
; CHECK-NEXT: 2:
; CHECK-NEXT: 4:
; CHECK-NEXT: 6:
; CHECK-NOT: 8:
}
## Instruction:
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: 0ff597fd157e6f4fc38580e8d64ab130330d2411@176394 91177308-0d34-0410-b5e6-96231b3b80d8
## Code After:
; 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) {
%tmp1neg = sub i32 0, %a
%b = icmp sgt i32 %a, -1
%abs = select i1 %b, i32 %a, i32 %tmp1neg
ret i32 %abs
; CHECK: movs r0, r0
; CHECK: bpl
; CHECK: rsb r0, r0, #0
; CHECK: bx lr
}
| - ; 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, r0
+ ;; bpl
+ ;; rsb r0, r0, #0 (with opitmization, bpl + rsb is if-converted into rsbmi)
+ ;; bx lr
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
+ ; CHECK: movs r0, r0
+ ; CHECK: bpl
+ ; CHECK: rsb r0, r0, #0
+ ; CHECK: bx lr
-
- ; This test just checks that 4 instructions were emitted
-
- ; CHECK: {{^.text:}}
- ; CHECK-NEXT: 0:
- ; CHECK-NEXT: 2:
- ; CHECK-NEXT: 4:
- ; CHECK-NEXT: 6:
-
- ; CHECK-NOT: 8:
}
+ | 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') %></td>
<td><%= @project_result.date %></td>
</tr>
<tr>
<td><%= _('Load time') %></td>
<td><%= @project_result.formatted_load_time %></td>
</tr>
<tr>
<td><%= _('Analysis time') %></td>
<td><%= @project_result.formatted_analysis_time %></td>
</tr>
</table>
<script>
jQuery(document).ready(function($) {
$("#datepicker").datepicker({ altField: '#datepicker_field', showOn: 'button', dateFormat: "yy-mm-dd",
buttonImageOnly: true, buttonImage: '/images/calendar_date_select/calendar.png',
onSelect: function(dateText, inst) {
reloadProjectWithDate(dateText) } });
});
</script>
<% end %>
| <% 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>
<tr>
<td><%= _('Date') %></td>
<td><%= @project_result.date %></td>
</tr>
<tr>
<td><%= _('Load time') %></td>
<td><%= @project_result.formatted_load_time %></td>
</tr>
<tr>
<td><%= _('Analysis time') %></td>
<td><%= @project_result.formatted_analysis_time %></td>
</tr>
</table>
<script>
jQuery(document).ready(function($) {
$("#datepicker").datepicker({ altField: '#datepicker_field', showOn: 'button', dateFormat: "yy-mm-dd",
buttonImageOnly: true, buttonImage: '/images/calendar_date_select/calendar.png',
onSelect: function(dateText, inst) {
reloadProjectWithDate(dateText) } });
var date = jQuery("#datepicker").attr('data-date').substr(0,10);
$("#datepicker").datepicker( "setDate" , date );
});
</script>
<% end %>
| 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/noosfero-ecosol,vfcosta/noosfero,arthurmde/noosfero,samasti/noosfero,hackathon-oscs/rede-osc,samasti/noosfero,AlessandroCaetano/noosfero,hebertdougl/noosfero,coletivoEITA/noosfero,coletivoEITA/noosfero-ecosol,abner/noosfero,larissa/noosfero,EcoAlternative/noosfero-ecosol,evandrojr/noosferogov,macartur/noosfero,pr-snas/noosfero-sgpr,rafamanzo/mezuro-travis,tallysmartins/noosfero,CIRANDAS/noosfero-ecosol,hebertdougl/noosfero,hebertdougl/noosfero,evandrojr/noosferogov,rafamanzo/mezuro-travis,coletivoEITA/noosfero,vfcosta/noosfero,hackathon-oscs/cartografias,pr-snas/noosfero-sgpr,coletivoEITA/noosfero-ecosol,tallysmartins/noosfero,marcosronaldo/noosfero,EcoAlternative/noosfero-ecosol,alexandreab/noosfero,coletivoEITA/noosfero,pr-snas/noosfero-sgpr,coletivoEITA/noosfero-ecosol,cesarfex/noosfero,hebertdougl/noosfero,marcosronaldo/noosfero,hackathon-oscs/cartografias,evandrojr/noosferogov,tallysmartins/noosfero,hackathon-oscs/cartografias,abner/noosfero,larissa/noosfero,uniteddiversity/noosfero,abner/noosfero,larissa/noosfero,tallysmartins/noosfero,rafamanzo/mezuro-travis,coletivoEITA/noosfero-ecosol,arthurmde/noosfero,coletivoEITA/noosfero,arthurmde/noosfero,evandrojr/noosfero,hackathon-oscs/rede-osc,uniteddiversity/noosfero,arthurmde/noosfero,samasti/noosfero,uniteddiversity/noosfero,marcosronaldo/noosfero,evandrojr/noosfero,vfcosta/noosfero,EcoAlternative/noosfero-ecosol,hackathon-oscs/rede-osc,tallysmartins/noosfero,blogoosfero/noosfero,EcoAlternative/noosfero-ecosol,AlessandroCaetano/noosfero,hackathon-oscs/cartografias,evandrojr/noosfero,LuisBelo/tccnoosfero,cesarfex/noosfero,cesarfex/noosfero,danielafeitosa/noosfero,CIRANDAS/noosfero-ecosol,alexandreab/noosfero,hackathon-oscs/rede-osc,danielafeitosa/noosfero,hebertdougl/noosfero,AlessandroCaetano/noosfero,larissa/noosfero,coletivoEITA/noosfero-ecosol,tallysmartins/noosfero,vfcosta/noosfero,uniteddiversity/noosfero,LuisBelo/tccnoosfero,marcosronaldo/noosfero,LuisBelo/tccnoosfero,hackathon-oscs/rede-osc,hackathon-oscs/cartografias,macartur/noosfero,alexandreab/noosfero,coletivoEITA/noosfero,evandrojr/noosferogov,vfcosta/noosfero,danielafeitosa/noosfero,blogoosfero/noosfero,danielafeitosa/noosfero,blogoosfero/noosfero,larissa/noosfero,cesarfex/noosfero,tallysmartins/noosfero,arthurmde/noosfero,coletivoEITA/noosfero,alexandreab/noosfero,EcoAlternative/noosfero-ecosol,LuisBelo/tccnoosfero,evandrojr/noosfero,cesarfex/noosfero,blogoosfero/noosfero,marcosronaldo/noosfero,hebertdougl/noosfero,alexandreab/noosfero,larissa/noosfero,uniteddiversity/noosfero,evandrojr/noosfero,LuisBelo/tccnoosfero,samasti/noosfero,blogoosfero/noosfero,hackathon-oscs/rede-osc,pr-snas/noosfero-sgpr,danielafeitosa/noosfero,evandrojr/noosferogov,AlessandroCaetano/noosfero,pr-snas/noosfero-sgpr,evandrojr/noosfero,AlessandroCaetano/noosfero,macartur/noosfero,evandrojr/noosferogov,coletivoEITA/noosfero-ecosol,CIRANDAS/noosfero-ecosol,hackathon-oscs/rede-osc,evandrojr/noosfero,vfcosta/noosfero,AlessandroCaetano/noosfero,blogoosfero/noosfero,abner/noosfero,macartur/noosfero,macartur/noosfero,LuisBelo/tccnoosfero,macartur/noosfero,AlessandroCaetano/noosfero,cesarfex/noosfero,EcoAlternative/noosfero-ecosol,alexandreab/noosfero,danielafeitosa/noosfero,samasti/noosfero,arthurmde/noosfero,cesarfex/noosfero,marcosronaldo/noosfero,pr-snas/noosfero-sgpr,uniteddiversity/noosfero,hebertdougl/noosfero,arthurmde/noosfero,hackathon-oscs/cartografias,macartur/noosfero,blogoosfero/noosfero,abner/noosfero | 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><%= _('Date') %></td>
<td><%= @project_result.date %></td>
</tr>
<tr>
<td><%= _('Load time') %></td>
<td><%= @project_result.formatted_load_time %></td>
</tr>
<tr>
<td><%= _('Analysis time') %></td>
<td><%= @project_result.formatted_analysis_time %></td>
</tr>
</table>
<script>
jQuery(document).ready(function($) {
$("#datepicker").datepicker({ altField: '#datepicker_field', showOn: 'button', dateFormat: "yy-mm-dd",
buttonImageOnly: true, buttonImage: '/images/calendar_date_select/calendar.png',
onSelect: function(dateText, inst) {
reloadProjectWithDate(dateText) } });
});
</script>
<% end %>
## Instruction:
[Mezuro] Set default date to project result date.
## Code After:
<% 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>
<tr>
<td><%= _('Date') %></td>
<td><%= @project_result.date %></td>
</tr>
<tr>
<td><%= _('Load time') %></td>
<td><%= @project_result.formatted_load_time %></td>
</tr>
<tr>
<td><%= _('Analysis time') %></td>
<td><%= @project_result.formatted_analysis_time %></td>
</tr>
</table>
<script>
jQuery(document).ready(function($) {
$("#datepicker").datepicker({ altField: '#datepicker_field', showOn: 'button', dateFormat: "yy-mm-dd",
buttonImageOnly: true, buttonImage: '/images/calendar_date_select/calendar.png',
onSelect: function(dateText, inst) {
reloadProjectWithDate(dateText) } });
var date = jQuery("#datepicker").attr('data-date').substr(0,10);
$("#datepicker").datepicker( "setDate" , date );
});
</script>
<% end %>
| <% 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>
<h4><%= _('Last Result') %></h4>
<table>
<tr>
<td><%= _('Date') %></td>
<td><%= @project_result.date %></td>
</tr>
<tr>
<td><%= _('Load time') %></td>
<td><%= @project_result.formatted_load_time %></td>
</tr>
<tr>
<td><%= _('Analysis time') %></td>
<td><%= @project_result.formatted_analysis_time %></td>
</tr>
</table>
<script>
jQuery(document).ready(function($) {
$("#datepicker").datepicker({ altField: '#datepicker_field', showOn: 'button', dateFormat: "yy-mm-dd",
buttonImageOnly: true, buttonImage: '/images/calendar_date_select/calendar.png',
onSelect: function(dateText, inst) {
- reloadProjectWithDate(dateText) } });
? -
+ reloadProjectWithDate(dateText) } });
- });
+ var date = jQuery("#datepicker").attr('data-date').substr(0,10);
+ $("#datepicker").datepicker( "setDate" , date );
+
+ });
</script>
<% end %> | 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 Collection
%small Formerly the University of Florida Sparse Matrix Collection
.container.theme-showcase.main{role: "main"}
%p
A new matrix has been submitted to the Collection:
%table.table.table-striped
%tbody
%tr
%th Submitter Name
%td= @new_matrix.submitter_name
%tr
%th Submitter Email
%td= @new_matrix.submitter_email
%tr
%th Display Publically?
%td= @new_matrix.display_email
%tr
%th Matrix Name
%td= @new_matrix.name
%tr
%th Kind/Problem Domain
%td= @new_matrix.kind
%tr
%th Notes
%td= @new_matrix.notes
%tr
%th Matrix File URL
%td= @new_matrix.submitter_url
%tr
%th Permission Granted to Display Publically
%td= @new_matrix.submitter_confidentiality | !!! 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 Collection
%small Formerly the University of Florida Sparse Matrix Collection
.main{role: "main"}
%p
A new matrix has been submitted to the Collection:
%table
%tbody
%tr{style: "background-color: #f9f9f9;"}
%th Submitter Name
%td= @new_matrix.submitter_name
%tr
%th Submitter Email
%td= @new_matrix.submitter_email
%tr{style: "background-color: #f9f9f9;"}
%th Display Publically?
%td= @new_matrix.display_email
%tr
%th Matrix Name
%td= @new_matrix.name
%tr{style: "background-color: #f9f9f9;"}
%th Kind/Problem Domain
%td= @new_matrix.kind
%tr
%th Notes
%td= @new_matrix.notes
%tr{style: "background-color: #f9f9f9;"}
%th Matrix File URL
%td= @new_matrix.submitter_url
%tr
%th Permission Granted to Display Publically
%td= @new_matrix.submitter_confidentiality | 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
SuiteSparse Matrix Collection
%small Formerly the University of Florida Sparse Matrix Collection
.container.theme-showcase.main{role: "main"}
%p
A new matrix has been submitted to the Collection:
%table.table.table-striped
%tbody
%tr
%th Submitter Name
%td= @new_matrix.submitter_name
%tr
%th Submitter Email
%td= @new_matrix.submitter_email
%tr
%th Display Publically?
%td= @new_matrix.display_email
%tr
%th Matrix Name
%td= @new_matrix.name
%tr
%th Kind/Problem Domain
%td= @new_matrix.kind
%tr
%th Notes
%td= @new_matrix.notes
%tr
%th Matrix File URL
%td= @new_matrix.submitter_url
%tr
%th Permission Granted to Display Publically
%td= @new_matrix.submitter_confidentiality
## Instruction:
Add inline CSS for email styling
## Code After:
!!! 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 Collection
%small Formerly the University of Florida Sparse Matrix Collection
.main{role: "main"}
%p
A new matrix has been submitted to the Collection:
%table
%tbody
%tr{style: "background-color: #f9f9f9;"}
%th Submitter Name
%td= @new_matrix.submitter_name
%tr
%th Submitter Email
%td= @new_matrix.submitter_email
%tr{style: "background-color: #f9f9f9;"}
%th Display Publically?
%td= @new_matrix.display_email
%tr
%th Matrix Name
%td= @new_matrix.name
%tr{style: "background-color: #f9f9f9;"}
%th Kind/Problem Domain
%td= @new_matrix.kind
%tr
%th Notes
%td= @new_matrix.notes
%tr{style: "background-color: #f9f9f9;"}
%th Matrix File URL
%td= @new_matrix.submitter_url
%tr
%th Permission Granted to Display Publically
%td= @new_matrix.submitter_confidentiality | !!! 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; background-color: #000;"}
+ %h1{style: "margin-top: -6px; font-size: 20.7px; font-family: 'cutive'; color: #fff;"}
- %nav{:class => "navbar navbar-inverse navbar-fixed-top"}
- .container
- .navbar-header
- %h1
- SuiteSparse Matrix Collection
? ----
+ SuiteSparse Matrix Collection
- %small Formerly the University of Florida Sparse Matrix Collection
? ----
+ %small Formerly the University of Florida Sparse Matrix Collection
- .container.theme-showcase.main{role: "main"}
+ .main{role: "main"}
%p
A new matrix has been submitted to the Collection:
- %table.table.table-striped
+ %table
%tbody
- %tr
+ %tr{style: "background-color: #f9f9f9;"}
%th Submitter Name
%td= @new_matrix.submitter_name
%tr
%th Submitter Email
%td= @new_matrix.submitter_email
- %tr
+ %tr{style: "background-color: #f9f9f9;"}
%th Display Publically?
%td= @new_matrix.display_email
%tr
%th Matrix Name
%td= @new_matrix.name
- %tr
+ %tr{style: "background-color: #f9f9f9;"}
%th Kind/Problem Domain
%td= @new_matrix.kind
%tr
%th Notes
%td= @new_matrix.notes
- %tr
+ %tr{style: "background-color: #f9f9f9;"}
%th Matrix File URL
%td= @new_matrix.submitter_url
%tr
%th Permission Granted to Display Publically
%td= @new_matrix.submitter_confidentiality | 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}}
#Uninstall the app
flatpak uninstall {{this.app.flatpakAppId}}
</pre>
</div>
| <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.app.flatpakAppId}}
#Uninstall the app
flatpak uninstall {{this.app.flatpakAppId}}
</pre>
</div>
## Instruction:
Simplify app details command line instructions
Fixes https://github.com/flathub/linux-store-frontend/issues/67
## Code After:
<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>
| <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 install flathub {{this.app.flatpakAppId}}
+ <pre>$ flatpak install flathub {{this.app.flatpakAppId}}</pre>
? +++++++++ ++++++
+ <h5>Run:</h5>
-
- #Run
- flatpak run {{this.app.flatpakAppId}}
+ <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>
-
- #Uninstall the app
- flatpak uninstall {{this.app.flatpakAppId}}
- </pre>
</div> | 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 => {
if (command === '1toX') {
let orderedSelections = lodashSortBy(selections, (selection: vscode.Selection) => selection.start.line);
orderedSelections.forEach((location, index) => {
let range = new vscode.Position(location.start.line, location.start.character);
editBuilder.insert(range, String(index + 1));
});
}
});
} | 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 => {
if (command === '1toX') {
let orderedSelections = lodashSortBy(selections, (selection: vscode.Selection) => selection.start.line);
orderedSelections.forEach((selection, index) => {
let range = new vscode.Position(selection.start.line, selection.start.character);
editBuilder.insert(range, String(index + 1));
editBuilder.delete(selection);
});
}
});
} | 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(editBuilder => {
if (command === '1toX') {
let orderedSelections = lodashSortBy(selections, (selection: vscode.Selection) => selection.start.line);
orderedSelections.forEach((location, index) => {
let range = new vscode.Position(location.start.line, location.start.character);
editBuilder.insert(range, String(index + 1));
});
}
});
}
## Instruction:
Delete any existing selected text when inserting text
## Code After:
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 => {
if (command === '1toX') {
let orderedSelections = lodashSortBy(selections, (selection: vscode.Selection) => selection.start.line);
orderedSelections.forEach((selection, index) => {
let range = new vscode.Position(selection.start.line, selection.start.character);
editBuilder.insert(range, String(index + 1));
editBuilder.delete(selection);
});
}
});
} | 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 => {
if (command === '1toX') {
let orderedSelections = lodashSortBy(selections, (selection: vscode.Selection) => selection.start.line);
- orderedSelections.forEach((location, index) => {
? ^ -
+ orderedSelections.forEach((selection, index) => {
? ++ ^
- let range = new vscode.Position(location.start.line, location.start.character);
? ^ - ^ -
+ let range = new vscode.Position(selection.start.line, selection.start.character);
? ++ ^ ++ ^
editBuilder.insert(range, String(index + 1));
+ editBuilder.delete(selection);
});
}
});
} | 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-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<div class="modal-title">
<form id="modalHeader">
<input class="form-control" id="myModalLabel" value="{{Card_Name}}" placeholder="Enter a title here!">
</form>
</div>
</div>
<div class="modal-body">
<div class="editable" contenteditable="true">
{{{Modal_Body}}}
</div>
</div>
<div class="modal-footer">
<a type="button" class="btn btn-default" data-dismiss="modal">Close</a>
<a type="button" class="btn btn-primary" href="{{Document_Link}}">Open Document</a>
</div>
</div>
</div>
</div>
{{/each}}
{{/if}}
{{/each}}
{{/if}}
| {{#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-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<div class="modal-title">
<form id="modalHeader">
<input class="form-control" id="myModalLabel" value="{{Card_Name}}" placeholder="Enter a title here!">
</form>
</div>
</div>
<div class="modal-body">
<div class="editable" contenteditable="true">
{{{Modal_Body}}}
</div>
</div>
<div class="modal-footer">
<a type="button" class="btn btn-default" data-dismiss="modal">Close</a>
<a type="button" class="btn btn-primary" target="_blank" href="{{Document_Link}}">Open Document</a>
</div>
</div>
</div>
</div>
{{/each}}
{{/if}}
{{/each}}
{{/if}}
| 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">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<div class="modal-title">
<form id="modalHeader">
<input class="form-control" id="myModalLabel" value="{{Card_Name}}" placeholder="Enter a title here!">
</form>
</div>
</div>
<div class="modal-body">
<div class="editable" contenteditable="true">
{{{Modal_Body}}}
</div>
</div>
<div class="modal-footer">
<a type="button" class="btn btn-default" data-dismiss="modal">Close</a>
<a type="button" class="btn btn-primary" href="{{Document_Link}}">Open Document</a>
</div>
</div>
</div>
</div>
{{/each}}
{{/if}}
{{/each}}
{{/if}}
## Instruction:
Make documents open in new tab
## Code After:
{{#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-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<div class="modal-title">
<form id="modalHeader">
<input class="form-control" id="myModalLabel" value="{{Card_Name}}" placeholder="Enter a title here!">
</form>
</div>
</div>
<div class="modal-body">
<div class="editable" contenteditable="true">
{{{Modal_Body}}}
</div>
</div>
<div class="modal-footer">
<a type="button" class="btn btn-default" data-dismiss="modal">Close</a>
<a type="button" class="btn btn-primary" target="_blank" href="{{Document_Link}}">Open Document</a>
</div>
</div>
</div>
</div>
{{/each}}
{{/if}}
{{/each}}
{{/if}}
| {{#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-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<div class="modal-title">
<form id="modalHeader">
<input class="form-control" id="myModalLabel" value="{{Card_Name}}" placeholder="Enter a title here!">
</form>
</div>
</div>
<div class="modal-body">
<div class="editable" contenteditable="true">
{{{Modal_Body}}}
</div>
</div>
<div class="modal-footer">
<a type="button" class="btn btn-default" data-dismiss="modal">Close</a>
- <a type="button" class="btn btn-primary" href="{{Document_Link}}">Open Document</a>
+ <a type="button" class="btn btn-primary" target="_blank" href="{{Document_Link}}">Open Document</a>
? ++++++++++++++++
</div>
</div>
</div>
</div>
{{/each}}
{{/if}}
{{/each}}
{{/if}} | 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_version_tag>>
jobs:
test:
parameters:
python_version_tag:
type: string
default: "3.6"
executor:
name: python
python_version_tag: <<parameters.python_version_tag>>
steps:
- checkout
- attach_workspace:
at: ~/repo
- run:
name: Install Python build dependencies
command: |
poetry install
- run:
name: Run tests
command: |
poetry run task ci
- store_test_results:
path: test-results
- store_artifacts:
path: test-results
workflows:
version: 2
CI_CD:
jobs:
- test:
matrix:
parameters:
python_version_tag: ["3.6", "3.7", "3.8"] | ---
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_version_tag>>
jobs:
test:
parameters:
python_version_tag:
type: string
default: "3.6"
executor:
name: python
python_version_tag: <<parameters.python_version_tag>>
steps:
- checkout
- attach_workspace:
at: ~/repo
- run:
name: Install Python build dependencies
command: |
poetry install
- run:
name: Run tests
command: |
poetry run task ci
- store_test_results:
path: test-results
- store_artifacts:
path: test-results
- store_artifacts:
path: poetry.lock
- store_artifacts:
path: requirements.txt
workflows:
version: 2
CI_CD:
jobs:
- test:
matrix:
parameters:
python_version_tag: ["3.6", "3.7", "3.8"] | 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:<<parameters.python_version_tag>>
jobs:
test:
parameters:
python_version_tag:
type: string
default: "3.6"
executor:
name: python
python_version_tag: <<parameters.python_version_tag>>
steps:
- checkout
- attach_workspace:
at: ~/repo
- run:
name: Install Python build dependencies
command: |
poetry install
- run:
name: Run tests
command: |
poetry run task ci
- store_test_results:
path: test-results
- store_artifacts:
path: test-results
workflows:
version: 2
CI_CD:
jobs:
- test:
matrix:
parameters:
python_version_tag: ["3.6", "3.7", "3.8"]
## Instruction:
Add artifact storing for poetry.lock and requirements.txt
## Code After:
---
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_version_tag>>
jobs:
test:
parameters:
python_version_tag:
type: string
default: "3.6"
executor:
name: python
python_version_tag: <<parameters.python_version_tag>>
steps:
- checkout
- attach_workspace:
at: ~/repo
- run:
name: Install Python build dependencies
command: |
poetry install
- run:
name: Run tests
command: |
poetry run task ci
- store_test_results:
path: test-results
- store_artifacts:
path: test-results
- store_artifacts:
path: poetry.lock
- store_artifacts:
path: requirements.txt
workflows:
version: 2
CI_CD:
jobs:
- test:
matrix:
parameters:
python_version_tag: ["3.6", "3.7", "3.8"] | ---
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_version_tag>>
jobs:
test:
parameters:
python_version_tag:
type: string
default: "3.6"
executor:
name: python
python_version_tag: <<parameters.python_version_tag>>
steps:
- checkout
- attach_workspace:
at: ~/repo
- run:
name: Install Python build dependencies
command: |
poetry install
- run:
name: Run tests
command: |
poetry run task ci
- store_test_results:
path: test-results
-
- store_artifacts:
path: test-results
+ - store_artifacts:
+ path: poetry.lock
+ - store_artifacts:
+ path: requirements.txt
workflows:
version: 2
CI_CD:
jobs:
- test:
matrix:
parameters:
python_version_tag: ["3.6", "3.7", "3.8"] | 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/config?utm_source=github.com&utm_medium=referral&utm_content=coffeine-009/config&utm_campaign=badger)
[](https://codecov.io/gh/coffeine-009/config)
Configuration server for micro-services.
## Getting Started
### Docker
```bash
docker build --rm -t thecoffeine/config .
docker run -p 8888:8888 -d thecoffeine/config
docker run -it thecoffeine/config bash
```
_(Coming soon)_
## Documentation
_(Coming soon)_
## Examples
_(Coming soon)_
## Contributing
_(Coming soon)_
## Release History
_(Nothing yet)_
## License
Copyright (c) 2017 Vitaliy Tsutsman <vitaliyacm@gmail.com>
Licensed under the MIT license.
| Configuration server
==========================================
[](https://travis-ci.org/coffeine-009/config)
[](https://www.codacy.com/app/vitaliyacm/config?utm_source=github.com&utm_medium=referral&utm_content=coffeine-009/config&utm_campaign=badger)
[](https://codecov.io/gh/coffeine-009/config)
Configuration server for micro-services.
## Getting Started
### Docker
```bash
docker build --rm -t thecoffeine/config .
docker run -p 8888:8888 -d thecoffeine/config
docker exec -it {CONTAINER_NAME} bash
```
_(Coming soon)_
## Documentation
_(Coming soon)_
## Examples
_(Coming soon)_
## Contributing
_(Coming soon)_
## Release History
_(Nothing yet)_
## License
Copyright (c) 2017 Vitaliy Tsutsman <vitaliyacm@gmail.com>
Licensed under the MIT license.
| 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/app/vitaliyacm/config?utm_source=github.com&utm_medium=referral&utm_content=coffeine-009/config&utm_campaign=badger)
[](https://codecov.io/gh/coffeine-009/config)
Configuration server for micro-services.
## Getting Started
### Docker
```bash
docker build --rm -t thecoffeine/config .
docker run -p 8888:8888 -d thecoffeine/config
docker run -it thecoffeine/config bash
```
_(Coming soon)_
## Documentation
_(Coming soon)_
## Examples
_(Coming soon)_
## Contributing
_(Coming soon)_
## Release History
_(Nothing yet)_
## License
Copyright (c) 2017 Vitaliy Tsutsman <vitaliyacm@gmail.com>
Licensed under the MIT license.
## Instruction:
Update info about connecting into container.
## Code After:
Configuration server
==========================================
[](https://travis-ci.org/coffeine-009/config)
[](https://www.codacy.com/app/vitaliyacm/config?utm_source=github.com&utm_medium=referral&utm_content=coffeine-009/config&utm_campaign=badger)
[](https://codecov.io/gh/coffeine-009/config)
Configuration server for micro-services.
## Getting Started
### Docker
```bash
docker build --rm -t thecoffeine/config .
docker run -p 8888:8888 -d thecoffeine/config
docker exec -it {CONTAINER_NAME} bash
```
_(Coming soon)_
## Documentation
_(Coming soon)_
## Examples
_(Coming soon)_
## Contributing
_(Coming soon)_
## Release History
_(Nothing yet)_
## License
Copyright (c) 2017 Vitaliy Tsutsman <vitaliyacm@gmail.com>
Licensed under the MIT license.
| Configuration server
==========================================
[](https://travis-ci.org/coffeine-009/config)
[](https://www.codacy.com/app/vitaliyacm/config?utm_source=github.com&utm_medium=referral&utm_content=coffeine-009/config&utm_campaign=badger)
[](https://codecov.io/gh/coffeine-009/config)
Configuration server for micro-services.
## Getting Started
### Docker
```bash
docker build --rm -t thecoffeine/config .
docker run -p 8888:8888 -d thecoffeine/config
- docker run -it thecoffeine/config bash
+ docker exec -it {CONTAINER_NAME} bash
```
_(Coming soon)_
## Documentation
_(Coming soon)_
## Examples
_(Coming soon)_
## Contributing
_(Coming soon)_
## Release History
_(Nothing yet)_
## License
Copyright (c) 2017 Vitaliy Tsutsman <vitaliyacm@gmail.com>
Licensed under the MIT license. | 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_WORKFLOW_FIELD_SIGNER_REVOKED_LABEL
name: signer_revoked
template: "[% IF value %]failed:I18N_OPENXPKI_UI_YES[% ELSE %]I18N_OPENXPKI_UI_NO[% END %]"
format: styled
| 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_OPENXPKI_UI_NO[% END %]"
? +++++++
format: styled
| 2 | 0.4 | 1 | 1 |
15a759b9cd3e1c24ee2a9b2885c5963ade200f1c | circle.yml | circle.yml | machine:
environment:
ArtsyAPIClientSecret: 3a33d2085cbd1176153f99781bbce7c6
ArtsyAPIClientKey: e750db60ac506978fc70
HockeyProductionSecret: "-"
HockeyBetaSecret: "-"
MixpanelProductionAPIClientKey: "-"
MixpanelStagingAPIClientKey: "-"
MixpanelDevAPIClientKey: "-"
MixpanelInStoreAPIClientKey: "-"
ArtsyFacebookAppID: "-"
ArtsyTwitterKey: "-"
ArtsyTwitterSecret: "-"
ArtsyTwitterStagingKey: "-"
ArtsyTwitterStagingSecret: "-"
dependencies:
override:
- bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3 --without distribution
- make oss
- bundle exec pod install
cache_directories:
- vendor/bundle
- Pods
test:
pre:
- make ci
override:
- make test
| machine:
environment:
ArtsyAPIClientSecret: 3a33d2085cbd1176153f99781bbce7c6
ArtsyAPIClientKey: e750db60ac506978fc70
HockeyProductionSecret: "-"
HockeyBetaSecret: "-"
MixpanelProductionAPIClientKey: "-"
MixpanelStagingAPIClientKey: "-"
MixpanelDevAPIClientKey: "-"
MixpanelInStoreAPIClientKey: "-"
ArtsyFacebookAppID: "-"
ArtsyTwitterKey: "-"
ArtsyTwitterSecret: "-"
ArtsyTwitterStagingKey: "-"
ArtsyTwitterStagingSecret: "-"
dependencies:
override:
- bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3 --without distribution
- bundle exec pod install
cache_directories:
- vendor/bundle
- Pods
test:
pre:
- make ci
override:
- make test
| 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,gaurav1981/eigen,foxsofter/eigen,1aurabrown/eigen,1aurabrown/eigen,xxclouddd/eigen,orta/eigen,zhuzhengwei/eigen,ayunav/eigen,Shawn-WangDapeng/eigen,TribeMedia/eigen,artsy/eigen,TribeMedia/eigen,neonichu/eigen,neonichu/eigen,liduanw/eigen,Havi4/eigen,artsy/eigen,Havi4/eigen,xxclouddd/eigen,TribeMedia/eigen,srrvnn/eigen,ACChe/eigen,foxsofter/eigen,TribeMedia/eigen,foxsofter/eigen,liduanw/eigen,Shawn-WangDapeng/eigen,srrvnn/eigen,gaurav1981/eigen,Shawn-WangDapeng/eigen,Havi4/eigen,foxsofter/eigen,ichu501/eigen,artsy/eigen,artsy/eigen,xxclouddd/eigen,ashkan18/eigen,neonichu/eigen,ichu501/eigen,1aurabrown/eigen,ppamorim/eigen,liduanw/eigen,mbogh/eigen,xxclouddd/eigen,ACChe/eigen,orta/eigen,ashkan18/eigen,artsy/eigen,liduanw/eigen,Havi4/eigen,ashkan18/eigen,TribeMedia/eigen,mbogh/eigen,zhuzhengwei/eigen,ppamorim/eigen,Shawn-WangDapeng/eigen,xxclouddd/eigen,ACChe/eigen,foxsofter/eigen,srrvnn/eigen,zhuzhengwei/eigen,Shawn-WangDapeng/eigen,neonichu/eigen,neonichu/eigen,mbogh/eigen,artsy/eigen,ichu501/eigen,ayunav/eigen,orta/eigen | yaml | ## Code Before:
machine:
environment:
ArtsyAPIClientSecret: 3a33d2085cbd1176153f99781bbce7c6
ArtsyAPIClientKey: e750db60ac506978fc70
HockeyProductionSecret: "-"
HockeyBetaSecret: "-"
MixpanelProductionAPIClientKey: "-"
MixpanelStagingAPIClientKey: "-"
MixpanelDevAPIClientKey: "-"
MixpanelInStoreAPIClientKey: "-"
ArtsyFacebookAppID: "-"
ArtsyTwitterKey: "-"
ArtsyTwitterSecret: "-"
ArtsyTwitterStagingKey: "-"
ArtsyTwitterStagingSecret: "-"
dependencies:
override:
- bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3 --without distribution
- make oss
- bundle exec pod install
cache_directories:
- vendor/bundle
- Pods
test:
pre:
- make ci
override:
- make test
## Instruction:
[CircleCI] Remove old `make oss` step.
## Code After:
machine:
environment:
ArtsyAPIClientSecret: 3a33d2085cbd1176153f99781bbce7c6
ArtsyAPIClientKey: e750db60ac506978fc70
HockeyProductionSecret: "-"
HockeyBetaSecret: "-"
MixpanelProductionAPIClientKey: "-"
MixpanelStagingAPIClientKey: "-"
MixpanelDevAPIClientKey: "-"
MixpanelInStoreAPIClientKey: "-"
ArtsyFacebookAppID: "-"
ArtsyTwitterKey: "-"
ArtsyTwitterSecret: "-"
ArtsyTwitterStagingKey: "-"
ArtsyTwitterStagingSecret: "-"
dependencies:
override:
- bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3 --without distribution
- bundle exec pod install
cache_directories:
- vendor/bundle
- Pods
test:
pre:
- make ci
override:
- make test
| machine:
environment:
ArtsyAPIClientSecret: 3a33d2085cbd1176153f99781bbce7c6
ArtsyAPIClientKey: e750db60ac506978fc70
HockeyProductionSecret: "-"
HockeyBetaSecret: "-"
MixpanelProductionAPIClientKey: "-"
MixpanelStagingAPIClientKey: "-"
MixpanelDevAPIClientKey: "-"
MixpanelInStoreAPIClientKey: "-"
ArtsyFacebookAppID: "-"
ArtsyTwitterKey: "-"
ArtsyTwitterSecret: "-"
ArtsyTwitterStagingKey: "-"
ArtsyTwitterStagingSecret: "-"
dependencies:
override:
- bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3 --without distribution
- - make oss
- bundle exec pod install
cache_directories:
- vendor/bundle
- Pods
test:
pre:
- make ci
override:
- make test | 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/'
'edlib-align/master/align.cwl')
self.load(step_file='https://raw.githubusercontent.com/nlppln/'
'pattern-docker/master/pattern.cwl')
def save(self, fname, validate=True, wd=True, inline=False, relative=False,
pack=False, encoding='utf-8'):
"""Save workflow to file
For nlppln, the default is to use a working directory (and save steps
using the ``wd`` option).
"""
super(WorkflowGenerator, self).save(fname,
validate=validate,
wd=wd,
inline=inline,
relative=relative,
pack=pack,
encoding=encoding)
| 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/'
'edlib-align/master/align.cwl')
self.load(step_file='https://raw.githubusercontent.com/nlppln/'
'pattern-docker/master/pattern.cwl')
def save(self, fname, validate=True, wd=False, inline=False, relative=True,
pack=False, encoding='utf-8'):
"""Save workflow to file
For nlppln, the default is to save workflows with relative paths.
"""
super(WorkflowGenerator, self).save(fname,
validate=validate,
wd=wd,
inline=inline,
relative=relative,
pack=pack,
encoding=encoding)
| 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.githubusercontent.com/nlppln/'
'edlib-align/master/align.cwl')
self.load(step_file='https://raw.githubusercontent.com/nlppln/'
'pattern-docker/master/pattern.cwl')
def save(self, fname, validate=True, wd=True, inline=False, relative=False,
pack=False, encoding='utf-8'):
"""Save workflow to file
For nlppln, the default is to use a working directory (and save steps
using the ``wd`` option).
"""
super(WorkflowGenerator, self).save(fname,
validate=validate,
wd=wd,
inline=inline,
relative=relative,
pack=pack,
encoding=encoding)
## Instruction:
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).
## Code After:
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/'
'edlib-align/master/align.cwl')
self.load(step_file='https://raw.githubusercontent.com/nlppln/'
'pattern-docker/master/pattern.cwl')
def save(self, fname, validate=True, wd=False, inline=False, relative=True,
pack=False, encoding='utf-8'):
"""Save workflow to file
For nlppln, the default is to save workflows with relative paths.
"""
super(WorkflowGenerator, self).save(fname,
validate=validate,
wd=wd,
inline=inline,
relative=relative,
pack=pack,
encoding=encoding)
| 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/'
'edlib-align/master/align.cwl')
self.load(step_file='https://raw.githubusercontent.com/nlppln/'
'pattern-docker/master/pattern.cwl')
- def save(self, fname, validate=True, wd=True, inline=False, relative=False,
? ^^^ ^^^^
+ def save(self, fname, validate=True, wd=False, inline=False, relative=True,
? ^^^^ ^^^
pack=False, encoding='utf-8'):
"""Save workflow to file
+ For nlppln, the default is to save workflows with relative paths.
- For nlppln, the default is to use a working directory (and save steps
- using the ``wd`` option).
"""
super(WorkflowGenerator, self).save(fname,
validate=validate,
wd=wd,
inline=inline,
relative=relative,
pack=pack,
encoding=encoding) | 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.status = 400;
ctx.body = {error: error.message};
}
});
this.app.use(bodyParser({
enableTypes: ['json'],
strict: true,
}));
this.app.use(async (ctx) => {
let url = ctx.request.body.url;
if (!url) throw new Error('Missing parameter url');
let options = ctx.request.body.options;
if (verbose) {
if (options) {
console.log(url, util.inspect(options, {depth: null, breakLength: Infinity}));
} else {
console.log(url);
}
}
options = Object.assing({forever: true, gzip: true}, options);
ctx.body = await request(url, options);
});
}
listen(port = 80, address) {
return new Promise((resolve, reject) => {
try {
this.app.listen(port, address, () => {
resolve();
});
} catch (error) {
reject(error);
}
});
}
}
module.exports = Server;
| 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.status = 400;
ctx.body = {error: error.message};
}
});
this.app.use(bodyParser({
enableTypes: ['json'],
strict: true,
}));
this.app.use(async (ctx) => {
let url = ctx.request.body.url;
if (!url) throw new Error('Missing parameter url');
let options = ctx.request.body.options;
if (verbose) {
if (options) {
console.log(url, util.inspect(options, {depth: null, breakLength: Infinity}));
} else {
console.log(url);
}
}
options = Object.assing({forever: true, gzip: true}, options);
try {
ctx.body = await request(url, options);
} catch (error) {
ctx.status = 502;
ctx.body = {error: error.message};
}
});
}
listen(port = 80, address) {
return new Promise((resolve, reject) => {
try {
this.app.listen(port, address, () => {
resolve();
});
} catch (error) {
reject(error);
}
});
}
}
module.exports = Server;
| 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 (error) {
ctx.status = 400;
ctx.body = {error: error.message};
}
});
this.app.use(bodyParser({
enableTypes: ['json'],
strict: true,
}));
this.app.use(async (ctx) => {
let url = ctx.request.body.url;
if (!url) throw new Error('Missing parameter url');
let options = ctx.request.body.options;
if (verbose) {
if (options) {
console.log(url, util.inspect(options, {depth: null, breakLength: Infinity}));
} else {
console.log(url);
}
}
options = Object.assing({forever: true, gzip: true}, options);
ctx.body = await request(url, options);
});
}
listen(port = 80, address) {
return new Promise((resolve, reject) => {
try {
this.app.listen(port, address, () => {
resolve();
});
} catch (error) {
reject(error);
}
});
}
}
module.exports = Server;
## Instruction:
Return HTTP 502 and error message if upstream server error.
## Code After:
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.status = 400;
ctx.body = {error: error.message};
}
});
this.app.use(bodyParser({
enableTypes: ['json'],
strict: true,
}));
this.app.use(async (ctx) => {
let url = ctx.request.body.url;
if (!url) throw new Error('Missing parameter url');
let options = ctx.request.body.options;
if (verbose) {
if (options) {
console.log(url, util.inspect(options, {depth: null, breakLength: Infinity}));
} else {
console.log(url);
}
}
options = Object.assing({forever: true, gzip: true}, options);
try {
ctx.body = await request(url, options);
} catch (error) {
ctx.status = 502;
ctx.body = {error: error.message};
}
});
}
listen(port = 80, address) {
return new Promise((resolve, reject) => {
try {
this.app.listen(port, address, () => {
resolve();
});
} catch (error) {
reject(error);
}
});
}
}
module.exports = Server;
| 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.status = 400;
ctx.body = {error: error.message};
}
});
this.app.use(bodyParser({
enableTypes: ['json'],
strict: true,
}));
this.app.use(async (ctx) => {
let url = ctx.request.body.url;
if (!url) throw new Error('Missing parameter url');
let options = ctx.request.body.options;
if (verbose) {
if (options) {
console.log(url, util.inspect(options, {depth: null, breakLength: Infinity}));
} else {
console.log(url);
}
}
options = Object.assing({forever: true, gzip: true}, options);
+ try {
- ctx.body = await request(url, options);
+ ctx.body = await request(url, options);
? ++
+ } catch (error) {
+ ctx.status = 502;
+ ctx.body = {error: error.message};
+ }
});
}
listen(port = 80, address) {
return new Promise((resolve, reject) => {
try {
this.app.listen(port, address, () => {
resolve();
});
} catch (error) {
reject(error);
}
});
}
}
module.exports = Server; | 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_imapport = "143"; // 143, 993
function auth_user_login ($username, $password) {
// Returns true if the username and password work
// and false if they are wrong or don't exist.
global $CFG;
switch ($CFG->auth_imaptype) {
case "imap":
$host = "{$CFG->auth_imaphost:$CFG->auth_imapport}INBOX";
break;
case "imapssl":
$host = "{$CFG->auth_imaphost:$CFG->auth_imapport/imap/ssl}INBOX";
break;
case "imapcert":
$host = "{$CFG->auth_imaphost:$CFG->auth_imapport/imap/ssl/novalidate-cert}INBOX";
break;
}
if ($connection = imap_open($host, $username, $password, OP_HALFOPEN)) {
imap_close($connection);
return true;
} else {
return false;
}
}
?>
| <?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 = "143"; // 143, 993
$CFG->auth_imapinfo = "Just use the same username and password as your school email account";
function auth_user_login ($username, $password) {
// Returns true if the username and password work
// and false if they are wrong or don't exist.
global $CFG;
switch ($CFG->auth_imaptype) {
case "imapssl":
$host = "\{$CFG->auth_imaphost:$CFG->auth_imapport/imap/ssl}INBOX";
break;
case "imapcert":
$host = "\{$CFG->auth_imaphost:$CFG->auth_imapport/imap/ssl/novalidate-cert}INBOX";
break;
default:
$host = "\{$CFG->auth_imaphost:$CFG->auth_imapport}INBOX";
}
if ($connection = imap_open($host, $username, $password, OP_HALFOPEN)) {
imap_close($connection);
return true;
} else {
return false;
}
}
?>
| 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
$CFG->auth_imapport = "143"; // 143, 993
function auth_user_login ($username, $password) {
// Returns true if the username and password work
// and false if they are wrong or don't exist.
global $CFG;
switch ($CFG->auth_imaptype) {
case "imap":
$host = "{$CFG->auth_imaphost:$CFG->auth_imapport}INBOX";
break;
case "imapssl":
$host = "{$CFG->auth_imaphost:$CFG->auth_imapport/imap/ssl}INBOX";
break;
case "imapcert":
$host = "{$CFG->auth_imaphost:$CFG->auth_imapport/imap/ssl/novalidate-cert}INBOX";
break;
}
if ($connection = imap_open($host, $username, $password, OP_HALFOPEN)) {
imap_close($connection);
return true;
} else {
return false;
}
}
?>
## Instruction:
Remove { error, and move things around
## Code After:
<?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 = "143"; // 143, 993
$CFG->auth_imapinfo = "Just use the same username and password as your school email account";
function auth_user_login ($username, $password) {
// Returns true if the username and password work
// and false if they are wrong or don't exist.
global $CFG;
switch ($CFG->auth_imaptype) {
case "imapssl":
$host = "\{$CFG->auth_imaphost:$CFG->auth_imapport/imap/ssl}INBOX";
break;
case "imapcert":
$host = "\{$CFG->auth_imaphost:$CFG->auth_imapport/imap/ssl/novalidate-cert}INBOX";
break;
default:
$host = "\{$CFG->auth_imaphost:$CFG->auth_imapport}INBOX";
}
if ($connection = imap_open($host, $username, $password, OP_HALFOPEN)) {
imap_close($connection);
return true;
} else {
return false;
}
}
?>
| <?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_imaptype = "imap"; // imap, imapssl, imapcert
$CFG->auth_imapport = "143"; // 143, 993
+ $CFG->auth_imapinfo = "Just use the same username and password as your school email account";
function auth_user_login ($username, $password) {
// Returns true if the username and password work
// and false if they are wrong or don't exist.
global $CFG;
switch ($CFG->auth_imaptype) {
- case "imap":
+ case "imapssl":
? +++
- $host = "{$CFG->auth_imaphost:$CFG->auth_imapport}INBOX";
+ $host = "\{$CFG->auth_imaphost:$CFG->auth_imapport/imap/ssl}INBOX";
? + +++++++++
break;
+
- case "imapssl":
? ^^^
+ case "imapcert":
? ^^^^
- $host = "{$CFG->auth_imaphost:$CFG->auth_imapport/imap/ssl}INBOX";
+ $host = "\{$CFG->auth_imaphost:$CFG->auth_imapport/imap/ssl/novalidate-cert}INBOX";
? + ++++++++++++++++
break;
- case "imapcert":
+
+ default:
- $host = "{$CFG->auth_imaphost:$CFG->auth_imapport/imap/ssl/novalidate-cert}INBOX";
? -------------------------
+ $host = "\{$CFG->auth_imaphost:$CFG->auth_imapport}INBOX";
? +
- break;
}
if ($connection = imap_open($host, $username, $password, OP_HALFOPEN)) {
imap_close($connection);
return true;
} else {
return false;
}
}
?> | 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', :description => 'Nice Pepperoni pizza', :price => 450, :size => 30, :is_spicy => false, :is_veg => false, :is_best_offer => true, :path_to_image => '/images/pepperoni.jpg'
Product.create :title => 'Vegetarian', :description => 'Amazing Vegetarian pizza', :price => 400, :size => 30, :is_spicy => false, :is_veg => false, :is_best_offer => false, :path_to_image => '/images/veg.jpg'
end
end
| 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',
:description => 'Nice Pepperoni pizza',
:price => 450,
:size => 30,
:is_spicy => false,
:is_veg => false,
:is_best_offer => true,
:path_to_image => '/images/pepperoni.jpg'
})
Product.create ({
:title => 'Vegetarian',
:description => 'Amazing Vegetarian pizza',
:price => 400,
:size => 30,
:is_spicy => false,
:is_veg => false,
:is_best_offer => false,
:path_to_image => '/images/veg.jpg'
})
end
end
| 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 => 'Pepperoni', :description => 'Nice Pepperoni pizza', :price => 450, :size => 30, :is_spicy => false, :is_veg => false, :is_best_offer => true, :path_to_image => '/images/pepperoni.jpg'
Product.create :title => 'Vegetarian', :description => 'Amazing Vegetarian pizza', :price => 400, :size => 30, :is_spicy => false, :is_veg => false, :is_best_offer => false, :path_to_image => '/images/veg.jpg'
end
end
## Instruction:
Change megration products in table
## Code After:
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',
:description => 'Nice Pepperoni pizza',
:price => 450,
:size => 30,
:is_spicy => false,
:is_veg => false,
:is_best_offer => true,
:path_to_image => '/images/pepperoni.jpg'
})
Product.create ({
:title => 'Vegetarian',
:description => 'Amazing Vegetarian pizza',
:price => 400,
:size => 30,
:is_spicy => false,
:is_veg => false,
:is_best_offer => false,
:path_to_image => '/images/veg.jpg'
})
end
end
| 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', :description => 'Nice Pepperoni pizza', :price => 450, :size => 30, :is_spicy => false, :is_veg => false, :is_best_offer => true, :path_to_image => '/images/pepperoni.jpg'
+ Product.create ({
+ :title => 'Pepperoni',
+ :description => 'Nice Pepperoni pizza',
+ :price => 450,
+ :size => 30,
+ :is_spicy => false,
+ :is_veg => false,
+ :is_best_offer => true,
+ :path_to_image => '/images/pepperoni.jpg'
+ })
- Product.create :title => 'Vegetarian', :description => 'Amazing Vegetarian pizza', :price => 400, :size => 30, :is_spicy => false, :is_veg => false, :is_best_offer => false, :path_to_image => '/images/veg.jpg'
+ Product.create ({
+ :title => 'Vegetarian',
+ :description => 'Amazing Vegetarian pizza',
+ :price => 400,
+ :size => 30,
+ :is_spicy => false,
+ :is_veg => false,
+ :is_best_offer => false,
+ :path_to_image => '/images/veg.jpg'
+ })
end
end | 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:
Build against the most recent versions of Ruby
## Code After:
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
| 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: false
cache: bundler
notifications:
email: false
script: bundle exec rake | 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 getSuccessHandler = (state = INITIAL_STATE, action) => state.set('list', fromJS(action.payload.teams));
const setRangeValues = (state = INITIAL_STATE, action) => state.set('rangeValues', fromJS(action.values));
const HANDLERS = {
[teamsActionsTypes.GET_TEAMS_SUCCESS]: getSuccessHandler,
[teamsActionsTypes.SET_RANGE_VALUES]: setRangeValues,
};
export default createReducer(INITIAL_STATE, HANDLERS);
| 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();
const teamsSuccess = (state = INITIAL_STATE, action) => state.set('list', fromJS(action.payload.teams));
const teamsError = (state = INITIAL_STATE, action) => state.set('error', action.payload.error);
const rangeValuesSuccess = (state = INITIAL_STATE, action) => state.set('rangeValues', fromJS(action.values));
const HANDLERS = {
[teamsActionsTypes.GET_TEAMS_SUCCESS]: teamsSuccess,
[teamsActionsTypes.SET_RANGE_VALUES]: rangeValuesSuccess,
[teamsActionsTypes.GET_TEAMS_ERORR]: teamsError,
};
export default createReducer(INITIAL_STATE, HANDLERS);
| 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();
const getSuccessHandler = (state = INITIAL_STATE, action) => state.set('list', fromJS(action.payload.teams));
const setRangeValues = (state = INITIAL_STATE, action) => state.set('rangeValues', fromJS(action.values));
const HANDLERS = {
[teamsActionsTypes.GET_TEAMS_SUCCESS]: getSuccessHandler,
[teamsActionsTypes.SET_RANGE_VALUES]: setRangeValues,
};
export default createReducer(INITIAL_STATE, HANDLERS);
## Instruction:
Add team fetching error handling
## Code After:
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();
const teamsSuccess = (state = INITIAL_STATE, action) => state.set('list', fromJS(action.payload.teams));
const teamsError = (state = INITIAL_STATE, action) => state.set('error', action.payload.error);
const rangeValuesSuccess = (state = INITIAL_STATE, action) => state.set('rangeValues', fromJS(action.values));
const HANDLERS = {
[teamsActionsTypes.GET_TEAMS_SUCCESS]: teamsSuccess,
[teamsActionsTypes.SET_RANGE_VALUES]: rangeValuesSuccess,
[teamsActionsTypes.GET_TEAMS_ERORR]: teamsError,
};
export default createReducer(INITIAL_STATE, HANDLERS);
| 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();
- const getSuccessHandler = (state = INITIAL_STATE, action) => state.set('list', fromJS(action.payload.teams));
? ^ ^ -------
+ const teamsSuccess = (state = INITIAL_STATE, action) => state.set('list', fromJS(action.payload.teams));
? ^ ^^^
+ const teamsError = (state = INITIAL_STATE, action) => state.set('error', action.payload.error);
- const setRangeValues = (state = INITIAL_STATE, action) => state.set('rangeValues', fromJS(action.values));
? ^^^^
+ const rangeValuesSuccess = (state = INITIAL_STATE, action) => state.set('rangeValues', fromJS(action.values));
? ^ +++++++
const HANDLERS = {
- [teamsActionsTypes.GET_TEAMS_SUCCESS]: getSuccessHandler,
? ^ ^ -------
+ [teamsActionsTypes.GET_TEAMS_SUCCESS]: teamsSuccess,
? ^ ^^^
- [teamsActionsTypes.SET_RANGE_VALUES]: setRangeValues,
? ^^^^
+ [teamsActionsTypes.SET_RANGE_VALUES]: rangeValuesSuccess,
? ^ +++++++
+ [teamsActionsTypes.GET_TEAMS_ERORR]: teamsError,
};
export default createReducer(INITIAL_STATE, HANDLERS); | 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.
-halfWidth, -halfHeight, -halfDepth,
-halfWidth, -halfHeight, halfDepth,
halfWidth, -halfHeight, halfDepth,
halfWidth, -halfHeight, -halfDepth,
// Top.
-halfWidth, halfHeight, -halfDepth,
-halfWidth, halfHeight, halfDepth,
halfWidth, halfHeight, halfDepth,
halfWidth, halfHeight, -halfDepth
];
for ( var i = 0; i < vertices.length; i += 3 ) {
vertices[ i ] += dx;
vertices[ i + 1 ] += dy;
vertices[ i + 2 ] += dz;
}
var faces = [
// Sides.
[ 0, 1, 5, 4 ],
[ 1, 2, 6, 5 ],
[ 2, 3, 7, 6 ],
[ 3, 0, 4, 7 ],
// Top.
[ 4, 5, 6, 7 ],
// Bottom.
[ 0, 3, 2, 1 ]
];
return geometry.push( vertices, faces );
};
| '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, -halfHeight, halfDepth,
halfWidth, -halfHeight, halfDepth,
halfWidth, -halfHeight, -halfDepth,
// Top.
-halfWidth, halfHeight, -halfDepth,
-halfWidth, halfHeight, halfDepth,
halfWidth, halfHeight, halfDepth,
halfWidth, halfHeight, -halfDepth
];
var faces = [
// Sides.
[ 0, 1, 5, 4 ],
[ 1, 2, 6, 5 ],
[ 2, 3, 7, 6 ],
[ 3, 0, 4, 7 ],
// Top.
[ 4, 5, 6, 7 ],
// Bottom.
[ 0, 3, 2, 1 ]
];
return geometry.push( vertices, faces );
};
| 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.
// Bottom.
-halfWidth, -halfHeight, -halfDepth,
-halfWidth, -halfHeight, halfDepth,
halfWidth, -halfHeight, halfDepth,
halfWidth, -halfHeight, -halfDepth,
// Top.
-halfWidth, halfHeight, -halfDepth,
-halfWidth, halfHeight, halfDepth,
halfWidth, halfHeight, halfDepth,
halfWidth, halfHeight, -halfDepth
];
for ( var i = 0; i < vertices.length; i += 3 ) {
vertices[ i ] += dx;
vertices[ i + 1 ] += dy;
vertices[ i + 2 ] += dz;
}
var faces = [
// Sides.
[ 0, 1, 5, 4 ],
[ 1, 2, 6, 5 ],
[ 2, 3, 7, 6 ],
[ 3, 0, 4, 7 ],
// Top.
[ 4, 5, 6, 7 ],
// Bottom.
[ 0, 3, 2, 1 ]
];
return geometry.push( vertices, faces );
};
## Instruction:
Remove box geometry offset arguments.
## Code After:
'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, -halfHeight, halfDepth,
halfWidth, -halfHeight, halfDepth,
halfWidth, -halfHeight, -halfDepth,
// Top.
-halfWidth, halfHeight, -halfDepth,
-halfWidth, halfHeight, halfDepth,
halfWidth, halfHeight, halfDepth,
halfWidth, halfHeight, -halfDepth
];
var faces = [
// Sides.
[ 0, 1, 5, 4 ],
[ 1, 2, 6, 5 ],
[ 2, 3, 7, 6 ],
[ 3, 0, 4, 7 ],
// Top.
[ 4, 5, 6, 7 ],
// Bottom.
[ 0, 3, 2, 1 ]
];
return geometry.push( vertices, faces );
};
| '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 = dz || 0;
-
var halfWidth = width / 2;
var halfHeight = height / 2;
var halfDepth = depth / 2;
var vertices = [
// Counterclockwise from far left.
// Bottom.
-halfWidth, -halfHeight, -halfDepth,
-halfWidth, -halfHeight, halfDepth,
halfWidth, -halfHeight, halfDepth,
halfWidth, -halfHeight, -halfDepth,
// Top.
-halfWidth, halfHeight, -halfDepth,
-halfWidth, halfHeight, halfDepth,
halfWidth, halfHeight, halfDepth,
halfWidth, halfHeight, -halfDepth
];
- for ( var i = 0; i < vertices.length; i += 3 ) {
- vertices[ i ] += dx;
- vertices[ i + 1 ] += dy;
- vertices[ i + 2 ] += dz;
- }
-
var faces = [
// Sides.
[ 0, 1, 5, 4 ],
[ 1, 2, 6, 5 ],
[ 2, 3, 7, 6 ],
[ 3, 0, 4, 7 ],
// Top.
[ 4, 5, 6, 7 ],
// Bottom.
[ 0, 3, 2, 1 ]
];
return geometry.push( vertices, faces );
}; | 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_performs_multiplication_with_integers() {
result=$(bin/lishp "(* 2 3)")
test "$result" = "6"
}
it_performs_multiplication_with_floats() {
result=$(bin/lishp "(* 3 1.5)")
test "$result" = "4.5"
}
it_performs_division_with_integers() {
result=$(bin/lishp "(/ 6 2)")
test "$result" = "3"
}
it_performs_division_with_floats() {
result=$(bin/lishp "(/ 1.0 2)")
test "$result" = "0.5"
}
| 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_performs_subtraction_with_negative_numbers() {
result=$(bin/lishp "(- -5 2)")
test "$result" = "-7"
}
it_performs_subtraction_below_zero() {
result=$(bin/lishp "(- 1 3 9)")
test "$result" = "-11"
}
it_performs_multiplication_with_integers() {
result=$(bin/lishp "(* 2 3)")
test "$result" = "6"
}
it_performs_multiplication_with_floats() {
result=$(bin/lishp "(* 3 1.5)")
test "$result" = "4.5"
}
it_performs_division_with_integers() {
result=$(bin/lishp "(/ 6 2)")
test "$result" = "3"
}
it_performs_division_with_floats() {
result=$(bin/lishp "(/ 1.0 2)")
test "$result" = "0.5"
}
| 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" = "-11"
}
it_performs_multiplication_with_integers() {
result=$(bin/lishp "(* 2 3)")
test "$result" = "6"
}
it_performs_multiplication_with_floats() {
result=$(bin/lishp "(* 3 1.5)")
test "$result" = "4.5"
}
it_performs_division_with_integers() {
result=$(bin/lishp "(/ 6 2)")
test "$result" = "3"
}
it_performs_division_with_floats() {
result=$(bin/lishp "(/ 1.0 2)")
test "$result" = "0.5"
}
## Instruction:
Add extra tests for negative numbers
## Code After:
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_performs_subtraction_with_negative_numbers() {
result=$(bin/lishp "(- -5 2)")
test "$result" = "-7"
}
it_performs_subtraction_below_zero() {
result=$(bin/lishp "(- 1 3 9)")
test "$result" = "-11"
}
it_performs_multiplication_with_integers() {
result=$(bin/lishp "(* 2 3)")
test "$result" = "6"
}
it_performs_multiplication_with_floats() {
result=$(bin/lishp "(* 3 1.5)")
test "$result" = "4.5"
}
it_performs_division_with_integers() {
result=$(bin/lishp "(/ 6 2)")
test "$result" = "3"
}
it_performs_division_with_floats() {
result=$(bin/lishp "(/ 1.0 2)")
test "$result" = "0.5"
}
| 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_performs_subtraction_with_negative_numbers() {
+ result=$(bin/lishp "(- -5 2)")
+ test "$result" = "-7"
}
it_performs_subtraction_below_zero() {
result=$(bin/lishp "(- 1 3 9)")
test "$result" = "-11"
}
it_performs_multiplication_with_integers() {
result=$(bin/lishp "(* 2 3)")
test "$result" = "6"
}
it_performs_multiplication_with_floats() {
result=$(bin/lishp "(* 3 1.5)")
test "$result" = "4.5"
}
it_performs_division_with_integers() {
result=$(bin/lishp "(/ 6 2)")
test "$result" = "3"
}
it_performs_division_with_floats() {
result=$(bin/lishp "(/ 1.0 2)")
test "$result" = "0.5"
} | 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/glyph_brush) [](https://docs.rs/glyph_brush)
Render API agnostic rasterization & draw caching logic.
## [glyph_brush_layout](glyph-brush-layout) [](https://crates.io/crates/glyph_brush_layout) [](https://docs.rs/glyph_brush_layout)
Text layout for [rusttype](https://gitlab.redox-os.org/redox-os/rusttype).
## Examples
`cargo run --example paragraph --release`

Also look at the individual crate readmes.
| 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/glyph_brush) [](https://docs.rs/glyph_brush)
Render API agnostic rasterization & draw caching logic.
## [glyph_brush_layout](glyph-brush-layout) [](https://crates.io/crates/glyph_brush_layout) [](https://docs.rs/glyph_brush_layout)
Text layout for [rusttype](https://gitlab.redox-os.org/redox-os/rusttype).
## Examples
`cargo run -p gfx_glyph --example paragraph --release`

Also look at the individual crate readmes.
| Update top example readme cmd to work with stable | Update top example readme cmd to work with stable | Markdown | apache-2.0 | alexheretic/gfx-glyph | markdown | ## Code Before:
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/glyph_brush) [](https://docs.rs/glyph_brush)
Render API agnostic rasterization & draw caching logic.
## [glyph_brush_layout](glyph-brush-layout) [](https://crates.io/crates/glyph_brush_layout) [](https://docs.rs/glyph_brush_layout)
Text layout for [rusttype](https://gitlab.redox-os.org/redox-os/rusttype).
## Examples
`cargo run --example paragraph --release`

Also look at the individual crate readmes.
## Instruction:
Update top example readme cmd to work with stable
## Code After:
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/glyph_brush) [](https://docs.rs/glyph_brush)
Render API agnostic rasterization & draw caching logic.
## [glyph_brush_layout](glyph-brush-layout) [](https://crates.io/crates/glyph_brush_layout) [](https://docs.rs/glyph_brush_layout)
Text layout for [rusttype](https://gitlab.redox-os.org/redox-os/rusttype).
## Examples
`cargo run -p gfx_glyph --example paragraph --release`

Also look at the individual crate readmes.
| 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/glyph_brush) [](https://docs.rs/glyph_brush)
Render API agnostic rasterization & draw caching logic.
## [glyph_brush_layout](glyph-brush-layout) [](https://crates.io/crates/glyph_brush_layout) [](https://docs.rs/glyph_brush_layout)
Text layout for [rusttype](https://gitlab.redox-os.org/redox-os/rusttype).
## Examples
- `cargo run --example paragraph --release`
+ `cargo run -p gfx_glyph --example paragraph --release`
? +++++++++++++

Also look at the individual crate readmes. | 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 inspect --format="{{.Id}}" digdag-build)
echo IMAGE_ID_PRE: $IMAGE_ID_PRE
echo IMAGE_ID_POST: $IMAGE_ID_POST
if [[ $TARBALL_EXISTS == false || $IMAGE_ID_PRE != $IMAGE_ID_POST ]]; then
docker save digdag-build | gzip -c > ~/docker/digdag-build.tar.gz
fi
|
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/
IMAGE_ID_POST=$(docker inspect --format="{{.Id}}" digdag-build)
echo IMAGE_ID_PRE: $IMAGE_ID_PRE
echo IMAGE_ID_POST: $IMAGE_ID_POST
if [[ $TARBALL_EXISTS == false || $IMAGE_ID_PRE != $IMAGE_ID_POST ]]; then
docker save digdag-build | gzip -c > ~/docker/digdag-build.tar.gz
fi
| 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=$(docker inspect --format="{{.Id}}" digdag-build)
echo IMAGE_ID_PRE: $IMAGE_ID_PRE
echo IMAGE_ID_POST: $IMAGE_ID_POST
if [[ $TARBALL_EXISTS == false || $IMAGE_ID_PRE != $IMAGE_ID_POST ]]; then
docker save digdag-build | gzip -c > ~/docker/digdag-build.tar.gz
fi
## Instruction:
Call `docker inspect` only after calling `docker load`
## Code After:
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/
IMAGE_ID_POST=$(docker inspect --format="{{.Id}}" digdag-build)
echo IMAGE_ID_PRE: $IMAGE_ID_PRE
echo IMAGE_ID_POST: $IMAGE_ID_POST
if [[ $TARBALL_EXISTS == false || $IMAGE_ID_PRE != $IMAGE_ID_POST ]]; then
docker save digdag-build | gzip -c > ~/docker/digdag-build.tar.gz
fi
|
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}}" digdag-build)
cd "$(dirname "$0")"
docker build -t digdag-build .
mkdir -p ~/docker/
IMAGE_ID_POST=$(docker inspect --format="{{.Id}}" digdag-build)
echo IMAGE_ID_PRE: $IMAGE_ID_PRE
echo IMAGE_ID_POST: $IMAGE_ID_POST
if [[ $TARBALL_EXISTS == false || $IMAGE_ID_PRE != $IMAGE_ID_POST ]]; then
docker save digdag-build | gzip -c > ~/docker/digdag-build.tar.gz
fi
| 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(...state.accepted);
console.log(action.payload);
return {
...state,
accepted: [...state.accepted, action.payload]
}
}
case ADD_REJECT_NAME: {
return {
...state,
rejected: [...state.rejected, action.payload]
}
}
default:
return state;
}
} | 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(localStorage.getItem('gender'))]) : [],
names: names,
accepted: [],
rejected: [],
index: 0
}
export default function (state = initialState, action) {
switch (action.type) {
case ADD_ACCEPT_NAME: {
return {
...state,
accepted: [...state.accepted, action.payload]
}
}
case ADD_REJECT_NAME: {
return {
...state,
rejected: [...state.rejected, action.payload]
}
}
case GET_NAMES: {
return {
names: names
}
}
case INCREMENT: {
return {
...state,
index: state.index + 1
}
}
case RESTART: {
return {
...state,
index: 0,
accepted: [],
rejected: []
}
}
default:
return state;
}
} | 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);
console.log(...state.accepted);
console.log(action.payload);
return {
...state,
accepted: [...state.accepted, action.payload]
}
}
case ADD_REJECT_NAME: {
return {
...state,
rejected: [...state.rejected, action.payload]
}
}
default:
return state;
}
}
## Instruction:
Add increment and restart methods
## Code After:
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(localStorage.getItem('gender'))]) : [],
names: names,
accepted: [],
rejected: [],
index: 0
}
export default function (state = initialState, action) {
switch (action.type) {
case ADD_ACCEPT_NAME: {
return {
...state,
accepted: [...state.accepted, action.payload]
}
}
case ADD_REJECT_NAME: {
return {
...state,
rejected: [...state.rejected, action.payload]
}
}
case GET_NAMES: {
return {
names: names
}
}
case INCREMENT: {
return {
...state,
index: state.index + 1
}
}
case RESTART: {
return {
...state,
index: 0,
accepted: [],
rejected: []
}
}
default:
return state;
}
} | - 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 from '../data/names.json';
+
+ console.log(names)
const initialState = {
+ //names: (typeof localStorage["gender"] != "undefined") ? Shuffle(names[JSON.parse(localStorage.getItem('gender'))]) : [],
+ names: names,
accepted: [],
- rejected: []
+ rejected: [],
? +
+ index: 0
}
export default function (state = initialState, action) {
switch (action.type) {
case ADD_ACCEPT_NAME: {
- console.log(...state);
- console.log(...state.accepted);
- console.log(action.payload);
-
return {
...state,
accepted: [...state.accepted, action.payload]
}
}
case ADD_REJECT_NAME: {
- return {
+ return {
? ++++
...state,
rejected: [...state.rejected, action.payload]
}
+ }
+
+ case GET_NAMES: {
+ return {
+ names: names
+ }
+ }
+
+ case INCREMENT: {
+ return {
+ ...state,
+ index: state.index + 1
+ }
+ }
+
+ case RESTART: {
+ return {
+ ...state,
+ index: 0,
+ accepted: [],
+ rejected: []
+ }
}
default:
return state;
}
} | 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 TestHandleUp(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
| 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) {
}
func TestHandleUp(t *testing.T) {
}
## Instruction:
[test-handler] Remove unecessary lines to make travis build
## Code After:
// 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
| // 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 TestHandleUp(t *testing.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(__file__, "..", "..", "fs")))
fs.__path__ = newPath
| 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 in windows
## Code After:
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(__file__, "..", "..", "fs")))
fs.__path__ = newPath
|
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.__path__.insert(0, realpath(join(__file__, "..", "..", "fs")))
? ^^^^^^ --
+ newPath.insert(0, realpath(join(__file__, "..", "..", "fs")))
? ^^^^
+ fs.__path__ = newPath | 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 {
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'
};
}); | 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 provide a version number to use as a second parameter"
exit 1
fi
VERSION="version $2"
else
VERSION="development"
fi
VERSION+="; sha $(git rev-parse HEAD) built $(date)"
echo "Compiling \"$VERSION\""
CGO_ENABLED=0 GOOS=linux go build -ldflags "-X main.versionString=$VERSION" -a -installsuffix cgo -o cloud_sql_proxy .
| 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 >&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 provide a version number to use as a second parameter"
exit 1
fi
VERSION="version $2"
else
VERSION="development"
fi
VERSION+="; sha $(git rev-parse HEAD) built $(date)"
echo "Compiling \"$VERSION\""
CGO_ENABLED=0 GOOS=linux go build -ldflags "-X main.versionString=$VERSION" -a -installsuffix cgo -o cloud_sql_proxy .
|
- 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
+ if [[ "$2" == "" ]]; then
+ echo >&2 "Must provide a version number to use as a second parameter"
+ exit 1
+ fi
+ VERSION="version $2"
+ else
+ VERSION="development"
+ fi
+
+ VERSION+="; sha $(git rev-parse HEAD) built $(date)"
+
+ echo "Compiling \"$VERSION\""
CGO_ENABLED=0 GOOS=linux go build -ldflags "-X main.versionString=$VERSION" -a -installsuffix cgo -o cloud_sql_proxy . | 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! test/*' > /dev/null
| 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! test/*' > /dev/null
sudo: false
| 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
VIMRC) -c 'Vader! test/*' > /dev/null
## Instruction:
Use Travis CI container infrastructure.
Fixes #12.
## Code After:
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! test/*' > /dev/null
sudo: false
| 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! test/*' > /dev/null
+
+ sudo: false | 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.sonatype.org/service/local/staging/deploy/maven2
mavenUsername =
mavenPassword =
| // **********************************************************************
//
// Copyright (c) 2003-present ZeroC, Inc. All rights reserved.
//
// **********************************************************************
//
// Gradle build properties
//
// Set these when publishing to
mavenRepository =
mavenUsername =
mavenPassword =
| 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 = https://oss.sonatype.org/service/local/staging/deploy/maven2
mavenUsername =
mavenPassword =
## Instruction:
Remove maven repo from properties
## Code After:
// **********************************************************************
//
// Copyright (c) 2003-present ZeroC, Inc. All rights reserved.
//
// **********************************************************************
//
// Gradle build properties
//
// Set these when publishing to
mavenRepository =
mavenUsername =
mavenPassword =
| // **********************************************************************
//
// Copyright (c) 2003-present ZeroC, Inc. All rights reserved.
//
// **********************************************************************
//
// Gradle build properties
//
// Set these when publishing to
- mavenRepository = https://oss.sonatype.org/service/local/staging/deploy/maven2
+ mavenRepository =
mavenUsername =
mavenPassword = | 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
to UITableViewControllers called `rac_dataSource` and it
requires a signal be passed to it.
The signal that you pass to `rac_dataSource` is used to
populate the UITableView.
DESC
s.homepage = "https://github.com/michaelavila/UITableViewDataSource-RACExtensions"
s.license = 'GPLv2'
s.author = { "Michael Avila" => "me@michaelavila.com" }
s.source = { :git => "git@github.com:michaelavila/UITableViewDataSource-RACExtensions.git", :tag => s.version.to_s }
# s.platform = :ios, '5.0'
# s.ios.deployment_target = '5.0'
# s.osx.deployment_target = '10.7'
s.requires_arc = true
s.source_files = 'Classes'
# s.public_header_files = 'Classes/**/*.h'
# s.frameworks = 'SomeFramework', 'AnotherFramework'
# s.dependency 'JSONKit', '~> 1.4'
end
| 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
to UITableViewControllers called `rac_dataSource` and it
requires a signal be passed to it.
The signal that you pass to `rac_dataSource` is used to
populate the UITableView.
DESC
s.homepage = "https://github.com/michaelavila/UITableViewDataSource-RACExtensions"
s.license = 'GPLv2'
s.author = { "Michael Avila" => "me@michaelavila.com" }
s.source = { :git => "git@github.com:michaelavila/UITableViewDataSource-RACExtensions.git", :tag => s.version.to_s }
s.platform = :ios, '5.0'
s.requires_arc = true
s.source_files = 'Classes'
# s.public_header_files = 'Classes/**/*.h'
# s.frameworks = 'SomeFramework', 'AnotherFramework'
# s.dependency 'JSONKit', '~> 1.4'
end
| 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
to UITableViewControllers called `rac_dataSource` and it
requires a signal be passed to it.
The signal that you pass to `rac_dataSource` is used to
populate the UITableView.
DESC
s.homepage = "https://github.com/michaelavila/UITableViewDataSource-RACExtensions"
s.license = 'GPLv2'
s.author = { "Michael Avila" => "me@michaelavila.com" }
s.source = { :git => "git@github.com:michaelavila/UITableViewDataSource-RACExtensions.git", :tag => s.version.to_s }
# s.platform = :ios, '5.0'
# s.ios.deployment_target = '5.0'
# s.osx.deployment_target = '10.7'
s.requires_arc = true
s.source_files = 'Classes'
# s.public_header_files = 'Classes/**/*.h'
# s.frameworks = 'SomeFramework', 'AnotherFramework'
# s.dependency 'JSONKit', '~> 1.4'
end
## Instruction:
Configure platform to be iOS 5.0
## Code After:
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
to UITableViewControllers called `rac_dataSource` and it
requires a signal be passed to it.
The signal that you pass to `rac_dataSource` is used to
populate the UITableView.
DESC
s.homepage = "https://github.com/michaelavila/UITableViewDataSource-RACExtensions"
s.license = 'GPLv2'
s.author = { "Michael Avila" => "me@michaelavila.com" }
s.source = { :git => "git@github.com:michaelavila/UITableViewDataSource-RACExtensions.git", :tag => s.version.to_s }
s.platform = :ios, '5.0'
s.requires_arc = true
s.source_files = 'Classes'
# s.public_header_files = 'Classes/**/*.h'
# s.frameworks = 'SomeFramework', 'AnotherFramework'
# s.dependency 'JSONKit', '~> 1.4'
end
| 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
to UITableViewControllers called `rac_dataSource` and it
requires a signal be passed to it.
The signal that you pass to `rac_dataSource` is used to
populate the UITableView.
DESC
s.homepage = "https://github.com/michaelavila/UITableViewDataSource-RACExtensions"
s.license = 'GPLv2'
s.author = { "Michael Avila" => "me@michaelavila.com" }
s.source = { :git => "git@github.com:michaelavila/UITableViewDataSource-RACExtensions.git", :tag => s.version.to_s }
- # s.platform = :ios, '5.0'
? --
+ s.platform = :ios, '5.0'
- # s.ios.deployment_target = '5.0'
- # s.osx.deployment_target = '10.7'
s.requires_arc = true
s.source_files = 'Classes'
# s.public_header_files = 'Classes/**/*.h'
# s.frameworks = 'SomeFramework', 'AnotherFramework'
# s.dependency 'JSONKit', '~> 1.4'
end | 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::EEXIST
end
end
@cache_path
end
end
def cache_id(cid)
FileUtils.touch(File.join(cache_path, cid)) unless cid.nil?
end
end
end
end
| 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
end
FileUtils.touch(File.join(cache_path, cid)) unless cid.nil?
end
end
end
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 called and it does not exist.
| 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
rescue Errno::EEXIST
end
end
@cache_path
end
end
def cache_id(cid)
FileUtils.touch(File.join(cache_path, cid)) unless cid.nil?
end
end
end
end
## Instruction:
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 called and it does not exist.
## Code After:
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
end
FileUtils.touch(File.join(cache_path, cid)) unless cid.nil?
end
end
end
end
| 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")
? ^ ^
- unless File.exist? @cache_path
- begin
- FileUtils.mkpath @cache_path
- rescue Errno::EEXIST
- end
- end
- @cache_path
- end
end
def cache_id(cid)
+ return if cid.nil?
+ unless File.exist?(cache_path)
+ begin
+ FileUtils.mkpath(cache_path)
+ rescue Errno::EEXIST
+ end
+ end
FileUtils.touch(File.join(cache_path, cid)) unless cid.nil?
end
end
end
end | 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);
} else {
$this->githubRepo = $default;
}
}
public function __invoke()
{
return '<span id="forkongithub"><a href="'.$this->githubRepo.'">Fork me on GitHub</a></span>';
}
private function extractGithubRepo(\Bookdown\Bookdown\Config\IndexConfig $config, $default = null)
{
$match = [];
if(preg_match('/^https:\/\/raw.githubusercontent.com\/(?P<orga>[\w-_]+)\/(?P<repo>[\w-_]+)\/.*$/', $config->getFile(), $match)) {
return 'https://github.com/' . $match['orga'] . '/' . $match['repo'];
} else {
};
}
}
| <?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);
} else {
$this->githubRepo = $default;
}
}
public function __invoke()
{
return '<span id="forkongithub"><a href="'.$this->githubRepo.'">Fork me on GitHub</a></span>';
}
private function extractGithubRepo(\Bookdown\Bookdown\Config\IndexConfig $config, $default = null)
{
$match = [];
if(preg_match('/^https:\/\/raw.githubusercontent.com\/(?P<orga>[\w-_]+)\/(?P<repo>[\w-_]+)\/.*$/', $config->getFile(), $match)) {
return 'https://github.com/' . $match['orga'] . '/' . $match['repo'];
} else {
return $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, $default);
} else {
$this->githubRepo = $default;
}
}
public function __invoke()
{
return '<span id="forkongithub"><a href="'.$this->githubRepo.'">Fork me on GitHub</a></span>';
}
private function extractGithubRepo(\Bookdown\Bookdown\Config\IndexConfig $config, $default = null)
{
$match = [];
if(preg_match('/^https:\/\/raw.githubusercontent.com\/(?P<orga>[\w-_]+)\/(?P<repo>[\w-_]+)\/.*$/', $config->getFile(), $match)) {
return 'https://github.com/' . $match['orga'] . '/' . $match['repo'];
} else {
};
}
}
## Instruction:
Return default if no match
## Code After:
<?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);
} else {
$this->githubRepo = $default;
}
}
public function __invoke()
{
return '<span id="forkongithub"><a href="'.$this->githubRepo.'">Fork me on GitHub</a></span>';
}
private function extractGithubRepo(\Bookdown\Bookdown\Config\IndexConfig $config, $default = null)
{
$match = [];
if(preg_match('/^https:\/\/raw.githubusercontent.com\/(?P<orga>[\w-_]+)\/(?P<repo>[\w-_]+)\/.*$/', $config->getFile(), $match)) {
return 'https://github.com/' . $match['orga'] . '/' . $match['repo'];
} else {
return $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);
} else {
$this->githubRepo = $default;
}
}
public function __invoke()
{
return '<span id="forkongithub"><a href="'.$this->githubRepo.'">Fork me on GitHub</a></span>';
}
private function extractGithubRepo(\Bookdown\Bookdown\Config\IndexConfig $config, $default = null)
{
$match = [];
if(preg_match('/^https:\/\/raw.githubusercontent.com\/(?P<orga>[\w-_]+)\/(?P<repo>[\w-_]+)\/.*$/', $config->getFile(), $match)) {
return 'https://github.com/' . $match['orga'] . '/' . $match['repo'];
} else {
-
+ return $default;
};
}
} | 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 --info
script: ./gradlew check --stacktrace --info --continue
| 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-testclients $client
then
echo "$test_case $client $server passed" >> /tmp/cloud_prod_result.txt
else
echo "$test_case $client $server failed" >> /tmp/cloud_prod_result.txt
fi
done
done
gsutil cp /tmp/cloud_prod_result.txt gs://stoked-keyword-656-output/cloud_prod_result.txt
rm /tmp/cloud_prod_result.txt
}
set -x
main "$@"
|
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 grpc-docker-testclients $client
then
echo "$test_case $client $server passed" >> /tmp/cloud_prod_result.txt
else
echo "$test_case $client $server failed" >> /tmp/cloud_prod_result.txt
fi
done
done
gsutil cp /tmp/cloud_prod_result.txt gs://stoked-keyword-656-output/cloud_prod_result.txt
rm /tmp/cloud_prod_result.txt
}
set -x
main "$@"
| 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-workshop/grpc,kpayson64/grpc,ipylypiv/grpc,dklempner/grpc,soltanmm/grpc,larsonmpdx/grpc,miselin/grpc,tengyifei/grpc,msmania/grpc,ppietrasa/grpc,sreecha/grpc,yinsu/grpc,fuchsia-mirror/third_party-grpc,dgquintas/grpc,malexzx/grpc,kumaralokgithub/grpc,apolcyn/grpc,arkmaxim/grpc,jtattermusch/grpc,miselin/grpc,grani/grpc,iMilind/grpc,kpayson64/grpc,ppietrasa/grpc,tempbottle/grpc,pmarks-net/grpc,yongni/grpc,zeliard/grpc,nathanielmanistaatgoogle/grpc,nmittler/grpc,dgquintas/grpc,ctiller/grpc,ppietrasa/grpc,JoeWoo/grpc,jboeuf/grpc,gpndata/grpc,nathanielmanistaatgoogle/grpc,Vizerai/grpc,leifurhauks/grpc,MakMukhi/grpc,grpc/grpc,JoeWoo/grpc,maxwell-demon/grpc,vsco/grpc,leifurhauks/grpc,w4-sjcho/grpc,yangjae/grpc,simonkuang/grpc,kumaralokgithub/grpc,apolcyn/grpc,ofrobots/grpc,sreecha/grpc,simonkuang/grpc,perumaalgoog/grpc,doubi-workshop/grpc,hstefan/grpc,Crevil/grpc,yang-g/grpc,andrewpollock/grpc,nicolasnoble/grpc,muxi/grpc,wcevans/grpc,w4-sjcho/grpc,Juzley/grpc,goldenbull/grpc,xtopsoft/grpc,JoeWoo/grpc,cgvarela/grpc,pmarks-net/grpc,bogdandrutu/grpc,Crevil/grpc,dgquintas/grpc,dklempner/grpc,kpayson64/grpc,wkubiak/grpc,rjshade/grpc,ejona86/grpc,carl-mastrangelo/grpc,vsco/grpc,mway08/grpc,LuminateWireless/grpc,stanley-cheung/grpc,zhimingxie/grpc,hstefan/grpc,ctiller/grpc,deepaklukose/grpc,msiedlarek/grpc,Juzley/grpc,sreecha/grpc,muxi/grpc,simonkuang/grpc,mzhaom/grpc,royalharsh/grpc,infinit/grpc,y-zeng/grpc,leifurhauks/grpc,fuchsia-mirror/third_party-grpc,ppietrasa/grpc,podsvirov/grpc,crast/grpc,zeliard/grpc,MakMukhi/grpc,7anner/grpc,cgvarela/grpc,mway08/grpc,tamihiro/grpc,grani/grpc,ananthonline/grpc,sreecha/grpc,ejona86/grpc,royalharsh/grpc,yongni/grpc,ananthonline/grpc,royalharsh/grpc,wangyikai/grpc,goldenbull/grpc,pmarks-net/grpc,greasypizza/grpc,stanley-cheung/grpc,miselin/grpc,nathanielmanistaatgoogle/grpc,tatsuhiro-t/grpc,gpndata/grpc,ksophocleous/grpc,larsonmpdx/grpc,Crevil/grpc,tatsuhiro-t/grpc,larsonmpdx/grpc,a-veitch/grpc,meisterpeeps/grpc,7anner/grpc,leifurhauks/grpc,miselin/grpc,geffzhang/grpc,zeliard/grpc,chrisdunelm/grpc,perumaalgoog/grpc,firebase/grpc,deepaklukose/grpc,mehrdada/grpc,msiedlarek/grpc,grani/grpc,philcleveland/grpc,soltanmm/grpc,soltanmm/grpc,msmania/grpc,vjpai/grpc,sreecha/grpc,murgatroid99/grpc,daniel-j-born/grpc,tamihiro/grpc,ppietrasa/grpc,wangyikai/grpc,kpayson64/grpc,infinit/grpc,nicolasnoble/grpc,yinsu/grpc,y-zeng/grpc,baylabs/grpc,jtattermusch/grpc,firebase/grpc,infinit/grpc,geffzhang/grpc,andrewpollock/grpc,ipylypiv/grpc,deepaklukose/grpc,jcanizales/grpc,andrewpollock/grpc,maxwell-demon/grpc,tempbottle/grpc,jcanizales/grpc,ncteisen/grpc,ppietrasa/grpc,malexzx/grpc,nicolasnoble/grpc,chrisdunelm/grpc,madongfly/grpc,muxi/grpc,leifurhauks/grpc,matt-kwong/grpc,mzhaom/grpc,msmania/grpc,pszemus/grpc,pmarks-net/grpc,iMilind/grpc,msiedlarek/grpc,nmittler/grpc,ejona86/grpc,yugui/grpc,surround-io/grpc,zeliard/grpc,mway08/grpc,kpayson64/grpc,jtattermusch/grpc,grani/grpc,daniel-j-born/grpc,Vizerai/grpc,stanley-cheung/grpc,ksophocleous/grpc,baylabs/grpc,yinsu/grpc,ctiller/grpc,miselin/grpc,infinit/grpc,thunderboltsid/grpc,goldenbull/grpc,gpndata/grpc,PeterFaiman/ruby-grpc-minimal,andrewpollock/grpc,kumaralokgithub/grpc,nathanielmanistaatgoogle/grpc,wkubiak/grpc,madongfly/grpc,makdharma/grpc,dklempner/grpc,jtattermusch/grpc,zhimingxie/grpc,ksophocleous/grpc,ananthonline/grpc,apolcyn/grpc,muxi/grpc,a11r/grpc,apolcyn/grpc,fuchsia-mirror/third_party-grpc,vsco/grpc,ofrobots/grpc,iMilind/grpc,yangjae/grpc,tamihiro/grpc,yongni/grpc,matt-kwong/grpc,ksophocleous/grpc,fichter/grpc,gpndata/grpc,PeterFaiman/ruby-grpc-minimal,thinkerou/grpc,VcamX/grpc,Juzley/grpc,matt-kwong/grpc,meisterpeeps/grpc,goldenbull/grpc,grpc/grpc,quizlet/grpc,nicolasnoble/grpc,pszemus/grpc,goldenbull/grpc,infinit/grpc,fichter/grpc,chrisdunelm/grpc,bjori/grpc,dgquintas/grpc,murgatroid99/grpc,podsvirov/grpc,muxi/grpc,crast/grpc,yugui/grpc,yang-g/grpc,gpndata/grpc,mway08/grpc,tatsuhiro-t/grpc,nmittler/grpc,kskalski/grpc,podsvirov/grpc,Vizerai/grpc,ncteisen/grpc,grpc/grpc,y-zeng/grpc,dgquintas/grpc,ctiller/grpc,donnadionne/grpc,nmittler/grpc,geffzhang/grpc,mzhaom/grpc,tamihiro/grpc,adelez/grpc,kriswuollett/grpc,dgquintas/grpc,sidrakesh93/grpc,vsco/grpc,arkmaxim/grpc,vsco/grpc,adelez/grpc,kriswuollett/grpc,infinit/grpc,ipylypiv/grpc,a-veitch/grpc,w4-sjcho/grpc,larsonmpdx/grpc,royalharsh/grpc,makdharma/grpc,jtattermusch/grpc,nicolasnoble/grpc,yang-g/grpc,kumaralokgithub/grpc,dgquintas/grpc,ncteisen/grpc,matt-kwong/grpc,ctiller/grpc,crast/grpc,mzhaom/grpc,a11r/grpc,Vizerai/grpc,grpc/grpc,xtopsoft/grpc,pmarks-net/grpc,mehrdada/grpc,nathanielmanistaatgoogle/grpc,kskalski/grpc,LuminateWireless/grpc,JoeWoo/grpc,VcamX/grpc,mehrdada/grpc,tamihiro/grpc,wangyikai/grpc,VcamX/grpc,quizlet/grpc,kpayson64/grpc,kskalski/grpc,arkmaxim/grpc,thinkerou/grpc,bjori/grpc,wangyikai/grpc,ofrobots/grpc,vsco/grpc,sreecha/grpc,yangjae/grpc,thunderboltsid/grpc,soltanmm-google/grpc,jboeuf/grpc,surround-io/grpc,chrisdunelm/grpc,carl-mastrangelo/grpc,y-zeng/grpc,cgvarela/grpc,firebase/grpc,simonkuang/grpc,deepaklukose/grpc,soltanmm/grpc,wangyikai/grpc,grpc/grpc,xtopsoft/grpc,kriswuollett/grpc,rjshade/grpc,fuchsia-mirror/third_party-grpc,maxwell-demon/grpc,yang-g/grpc,geffzhang/grpc,wcevans/grpc,zhimingxie/grpc,jcanizales/grpc,soltanmm/grpc,tengyifei/grpc,malexzx/grpc,yinsu/grpc,msiedlarek/grpc,nicolasnoble/grpc,murgatroid99/grpc,yonglehou/grpc,kumaralokgithub/grpc,rjshade/grpc,bogdandrutu/grpc,MakMukhi/grpc,philcleveland/grpc,xtopsoft/grpc,thunderboltsid/grpc,ppietrasa/grpc,zhimingxie/grpc,ncteisen/grpc,simonkuang/grpc,JoeWoo/grpc,philcleveland/grpc,stanley-cheung/grpc,sreecha/grpc,murgatroid99/grpc,tengyifei/grpc,wkubiak/grpc,apolcyn/grpc,Juzley/grpc,thinkerou/grpc,vjpai/grpc,arkmaxim/grpc,chrisdunelm/grpc,royalharsh/grpc,adelez/grpc,baylabs/grpc,carl-mastrangelo/grpc,rjshade/grpc,maxwell-demon/grpc,nicolasnoble/grpc,y-zeng/grpc,LuminateWireless/grpc,kumaralokgithub/grpc,vjpai/grpc,philcleveland/grpc,carl-mastrangelo/grpc,tatsuhiro-t/grpc,yongni/grpc,PeterFaiman/ruby-grpc-minimal,pmarks-net/grpc,ejona86/grpc,kpayson64/grpc,xtopsoft/grpc,deepaklukose/grpc,mehrdada/grpc,baylabs/grpc,bjori/grpc,yongni/grpc,vjpai/grpc,fuchsia-mirror/third_party-grpc,makdharma/grpc,goldenbull/grpc,wangyikai/grpc,zhimingxie/grpc,nmittler/grpc,vjpai/grpc,ofrobots/grpc,deepaklukose/grpc,ctiller/grpc,msiedlarek/grpc,a-veitch/grpc,goldenbull/grpc,surround-io/grpc,msmania/grpc,malexzx/grpc,dgquintas/grpc,nicolasnoble/grpc,dklempner/grpc,tatsuhiro-t/grpc,chenbaihu/grpc,gpndata/grpc,quizlet/grpc,muxi/grpc,yongni/grpc,mehrdada/grpc,grpc/grpc,podsvirov/grpc,makdharma/grpc,jtattermusch/grpc,sidrakesh93/grpc,LuminateWireless/grpc,iMilind/grpc,madongfly/grpc,pmarks-net/grpc,grani/grpc,rjshade/grpc,VcamX/grpc,andrewpollock/grpc,dklempner/grpc,donnadionne/grpc,thinkerou/grpc,kskalski/grpc,ipylypiv/grpc,ksophocleous/grpc,yonglehou/grpc,ipylypiv/grpc,podsvirov/grpc,ncteisen/grpc,vjpai/grpc,ananthonline/grpc,a11r/grpc,fuchsia-mirror/third_party-grpc,bjori/grpc,vjpai/grpc,royalharsh/grpc,doubi-workshop/grpc,ofrobots/grpc,fuchsia-mirror/third_party-grpc,soltanmm/grpc,chrisdunelm/grpc,jtattermusch/grpc,bjori/grpc,Vizerai/grpc,daniel-j-born/grpc,chenbaihu/grpc,Crevil/grpc,bogdandrutu/grpc,PeterFaiman/ruby-grpc-minimal,LuminateWireless/grpc,yang-g/grpc,bjori/grpc,murgatroid99/grpc,nicolasnoble/grpc,Crevil/grpc,tamihiro/grpc,makdharma/grpc,wcevans/grpc,greasypizza/grpc,pszemus/grpc,arkmaxim/grpc,xtopsoft/grpc,bogdandrutu/grpc,w4-sjcho/grpc,larsonmpdx/grpc,surround-io/grpc,chrisdunelm/grpc,donnadionne/grpc,jtattermusch/grpc,pszemus/grpc,deepaklukose/grpc,dklempner/grpc,baylabs/grpc,chenbaihu/grpc,iMilind/grpc,infinit/grpc,baylabs/grpc,daniel-j-born/grpc,mehrdada/grpc,mzhaom/grpc,rjshade/grpc,ctiller/grpc,murgatroid99/grpc,w4-sjcho/grpc,soltanmm/grpc,goldenbull/grpc,geffzhang/grpc,doubi-workshop/grpc,donnadionne/grpc,crast/grpc,wkubiak/grpc,Vizerai/grpc,maxwell-demon/grpc,grani/grpc,jcanizales/grpc,adelez/grpc,greasypizza/grpc,kskalski/grpc,a-veitch/grpc,baylabs/grpc,firebase/grpc,adelez/grpc,soltanmm-google/grpc,ncteisen/grpc,thinkerou/grpc,w4-sjcho/grpc,PeterFaiman/ruby-grpc-minimal,podsvirov/grpc,chrisdunelm/grpc,fichter/grpc,adelez/grpc,thunderboltsid/grpc,miselin/grpc,msmania/grpc,grani/grpc,mzhaom/grpc,VcamX/grpc,7anner/grpc,goldenbull/grpc,carl-mastrangelo/grpc,ctiller/grpc,firebase/grpc,msmania/grpc,msmania/grpc,grani/grpc,ananthonline/grpc,crast/grpc,yugui/grpc,grpc/grpc,deepaklukose/grpc,Vizerai/grpc,7anner/grpc,ofrobots/grpc,grpc/grpc,mzhaom/grpc,tamihiro/grpc,VcamX/grpc,perumaalgoog/grpc,kpayson64/grpc,podsvirov/grpc,chrisdunelm/grpc,LuminateWireless/grpc,yinsu/grpc,iMilind/grpc,iMilind/grpc,simonkuang/grpc,greasypizza/grpc,donnadionne/grpc,yonglehou/grpc,daniel-j-born/grpc,madongfly/grpc,quizlet/grpc,yangjae/grpc,ejona86/grpc,a11r/grpc,geffzhang/grpc,thinkerou/grpc,kskalski/grpc,MakMukhi/grpc,jtattermusch/grpc,kpayson64/grpc,daniel-j-born/grpc,tengyifei/grpc,stanley-cheung/grpc,fichter/grpc,hstefan/grpc,malexzx/grpc,simonkuang/grpc,tengyifei/grpc,a11r/grpc,ncteisen/grpc,ejona86/grpc,miselin/grpc,kumaralokgithub/grpc,sidrakesh93/grpc,dgquintas/grpc,yangjae/grpc,meisterpeeps/grpc,baylabs/grpc,stanley-cheung/grpc,jboeuf/grpc,a-veitch/grpc,fichter/grpc,ejona86/grpc,stanley-cheung/grpc,jtattermusch/grpc,ncteisen/grpc,perumaalgoog/grpc,Juzley/grpc,ppietrasa/grpc,ctiller/grpc,kumaralokgithub/grpc,donnadionne/grpc,philcleveland/grpc,LuminateWireless/grpc,perumaalgoog/grpc,maxwell-demon/grpc,soltanmm-google/grpc,wkubiak/grpc,sidrakesh93/grpc,thinkerou/grpc,apolcyn/grpc,surround-io/grpc,fuchsia-mirror/third_party-grpc,grani/grpc,chenbaihu/grpc,mehrdada/grpc,geffzhang/grpc,tamihiro/grpc,a11r/grpc,yugui/grpc,thunderboltsid/grpc,donnadionne/grpc,chenbaihu/grpc,muxi/grpc,tempbottle/grpc,murgatroid99/grpc,tengyifei/grpc,wkubiak/grpc,a-veitch/grpc,geffzhang/grpc,mway08/grpc,surround-io/grpc,hstefan/grpc,yangjae/grpc,muxi/grpc,bogdandrutu/grpc,stanley-cheung/grpc,crast/grpc,crast/grpc,yonglehou/grpc,daniel-j-born/grpc,miselin/grpc,ofrobots/grpc,gpndata/grpc,ananthonline/grpc,perumaalgoog/grpc,kriswuollett/grpc,stanley-cheung/grpc,PeterFaiman/ruby-grpc-minimal,sreecha/grpc,leifurhauks/grpc,kpayson64/grpc,firebase/grpc,stanley-cheung/grpc,bogdandrutu/grpc,stanley-cheung/grpc,yinsu/grpc,malexzx/grpc,pszemus/grpc,andrewpollock/grpc,andrewpollock/grpc,greasypizza/grpc,jboeuf/grpc,yugui/grpc,podsvirov/grpc,mway08/grpc,mehrdada/grpc,tempbottle/grpc,nicolasnoble/grpc,larsonmpdx/grpc,maxwell-demon/grpc,ncteisen/grpc,7anner/grpc,soltanmm/grpc,vjpai/grpc,MakMukhi/grpc,pszemus/grpc,pszemus/grpc,y-zeng/grpc,JoeWoo/grpc,tamihiro/grpc,firebase/grpc,dklempner/grpc,yongni/grpc,jboeuf/grpc,sidrakesh93/grpc,ctiller/grpc,mehrdada/grpc,ipylypiv/grpc,firebase/grpc,ppietrasa/grpc,yang-g/grpc,VcamX/grpc,tengyifei/grpc,perumaalgoog/grpc,yangjae/grpc,quizlet/grpc,donnadionne/grpc,deepaklukose/grpc,zeliard/grpc,thunderboltsid/grpc,gpndata/grpc,bogdandrutu/grpc,Crevil/grpc,thunderboltsid/grpc,y-zeng/grpc,zhimingxie/grpc,madongfly/grpc,ipylypiv/grpc,7anner/grpc,cgvarela/grpc,thinkerou/grpc,jboeuf/grpc,carl-mastrangelo/grpc,MakMukhi/grpc,pszemus/grpc,LuminateWireless/grpc,simonkuang/grpc,Vizerai/grpc,wcevans/grpc,Crevil/grpc,carl-mastrangelo/grpc,tempbottle/grpc,a-veitch/grpc,philcleveland/grpc,malexzx/grpc,iMilind/grpc,xtopsoft/grpc,tempbottle/grpc,yugui/grpc,ctiller/grpc,andrewpollock/grpc,zhimingxie/grpc,yinsu/grpc,zhimingxie/grpc,kriswuollett/grpc,tengyifei/grpc,doubi-workshop/grpc,mehrdada/grpc,malexzx/grpc,apolcyn/grpc,carl-mastrangelo/grpc,zeliard/grpc,carl-mastrangelo/grpc,jcanizales/grpc,ofrobots/grpc,yongni/grpc,vjpai/grpc,w4-sjcho/grpc,carl-mastrangelo/grpc,sidrakesh93/grpc,nicolasnoble/grpc,xtopsoft/grpc,Juzley/grpc,y-zeng/grpc,kriswuollett/grpc,w4-sjcho/grpc,msiedlarek/grpc,dgquintas/grpc,doubi-workshop/grpc,vjpai/grpc,pszemus/grpc,bogdandrutu/grpc,philcleveland/grpc,thinkerou/grpc,cgvarela/grpc,arkmaxim/grpc,soltanmm-google/grpc,meisterpeeps/grpc,soltanmm-google/grpc,makdharma/grpc,pszemus/grpc,murgatroid99/grpc,7anner/grpc,hstefan/grpc,carl-mastrangelo/grpc,wangyikai/grpc,maxwell-demon/grpc,ncteisen/grpc,Juzley/grpc,zeliard/grpc,chenbaihu/grpc,cgvarela/grpc,ksophocleous/grpc,jboeuf/grpc,sidrakesh93/grpc,grpc/grpc,yang-g/grpc,wangyikai/grpc,jboeuf/grpc,makdharma/grpc,podsvirov/grpc,VcamX/grpc,a11r/grpc,nathanielmanistaatgoogle/grpc,yonglehou/grpc,ksophocleous/grpc,kriswuollett/grpc,PeterFaiman/ruby-grpc-minimal,greasypizza/grpc,nathanielmanistaatgoogle/grpc,donnadionne/grpc,ofrobots/grpc,royalharsh/grpc,yonglehou/grpc,soltanmm-google/grpc,ctiller/grpc,larsonmpdx/grpc,vsco/grpc,yonglehou/grpc,matt-kwong/grpc,fuchsia-mirror/third_party-grpc,ncteisen/grpc,wkubiak/grpc,ejona86/grpc,ananthonline/grpc,yongni/grpc,kskalski/grpc,firebase/grpc,apolcyn/grpc,PeterFaiman/ruby-grpc-minimal,meisterpeeps/grpc,chenbaihu/grpc,royalharsh/grpc,MakMukhi/grpc,jcanizales/grpc,arkmaxim/grpc,meisterpeeps/grpc,yang-g/grpc,hstefan/grpc,doubi-workshop/grpc,MakMukhi/grpc,carl-mastrangelo/grpc,ejona86/grpc,kpayson64/grpc,jcanizales/grpc,nmittler/grpc,pmarks-net/grpc,fichter/grpc,crast/grpc,meisterpeeps/grpc,thinkerou/grpc,yinsu/grpc,wcevans/grpc,msiedlarek/grpc,stanley-cheung/grpc,malexzx/grpc,muxi/grpc,vsco/grpc,Crevil/grpc,yinsu/grpc,makdharma/grpc,matt-kwong/grpc,yang-g/grpc,madongfly/grpc,nicolasnoble/grpc,a11r/grpc,LuminateWireless/grpc,daniel-j-born/grpc,andrewpollock/grpc,ipylypiv/grpc,ksophocleous/grpc,muxi/grpc,a-veitch/grpc,quizlet/grpc,firebase/grpc,kriswuollett/grpc,muxi/grpc,soltanmm/grpc,infinit/grpc,ipylypiv/grpc,doubi-workshop/grpc,vsco/grpc,kriswuollett/grpc,Vizerai/grpc,vjpai/grpc,apolcyn/grpc,wcevans/grpc,dklempner/grpc,msiedlarek/grpc,simonkuang/grpc,surround-io/grpc,sreecha/grpc,hstefan/grpc,7anner/grpc,fichter/grpc,adelez/grpc,msmania/grpc,msiedlarek/grpc,Crevil/grpc,jboeuf/grpc,tatsuhiro-t/grpc,w4-sjcho/grpc,adelez/grpc,Vizerai/grpc,kumaralokgithub/grpc,tatsuhiro-t/grpc,rjshade/grpc,soltanmm-google/grpc,donnadionne/grpc,tatsuhiro-t/grpc,jcanizales/grpc,mzhaom/grpc,sreecha/grpc,soltanmm-google/grpc,grpc/grpc,firebase/grpc,dklempner/grpc,thinkerou/grpc,jtattermusch/grpc,larsonmpdx/grpc,nmittler/grpc,wcevans/grpc,matt-kwong/grpc,greasypizza/grpc,yugui/grpc,tempbottle/grpc,leifurhauks/grpc,murgatroid99/grpc,pszemus/grpc,matt-kwong/grpc,nathanielmanistaatgoogle/grpc,rjshade/grpc,tengyifei/grpc,y-zeng/grpc,PeterFaiman/ruby-grpc-minimal,zeliard/grpc,perumaalgoog/grpc,jboeuf/grpc,makdharma/grpc,doubi-workshop/grpc,a11r/grpc,chrisdunelm/grpc,greasypizza/grpc,leifurhauks/grpc,jboeuf/grpc,grpc/grpc,sidrakesh93/grpc,Vizerai/grpc,jboeuf/grpc,ejona86/grpc,ncteisen/grpc,mway08/grpc,sreecha/grpc,ananthonline/grpc,arkmaxim/grpc,leifurhauks/grpc,larsonmpdx/grpc,quizlet/grpc,infinit/grpc,perumaalgoog/grpc,mehrdada/grpc,vjpai/grpc,bogdandrutu/grpc,wcevans/grpc,bjori/grpc,a-veitch/grpc,sreecha/grpc,yangjae/grpc,madongfly/grpc,pszemus/grpc,philcleveland/grpc,cgvarela/grpc,grpc/grpc,royalharsh/grpc,thunderboltsid/grpc,yonglehou/grpc,msmania/grpc,bjori/grpc,miselin/grpc,rjshade/grpc,MakMukhi/grpc,ejona86/grpc,daniel-j-born/grpc,JoeWoo/grpc,surround-io/grpc,greasypizza/grpc,quizlet/grpc,ananthonline/grpc,murgatroid99/grpc,maxwell-demon/grpc,geffzhang/grpc,fuchsia-mirror/third_party-grpc,soltanmm-google/grpc,VcamX/grpc,PeterFaiman/ruby-grpc-minimal,hstefan/grpc,baylabs/grpc,dgquintas/grpc,yugui/grpc,madongfly/grpc,thunderboltsid/grpc,cgvarela/grpc,tempbottle/grpc,jcanizales/grpc,bjori/grpc,kskalski/grpc,JoeWoo/grpc,zhimingxie/grpc,firebase/grpc,fichter/grpc,chenbaihu/grpc,mehrdada/grpc,philcleveland/grpc,mway08/grpc,chrisdunelm/grpc,hstefan/grpc,iMilind/grpc | 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_case grpc-docker-testclients $client
then
echo "$test_case $client $server passed" >> /tmp/cloud_prod_result.txt
else
echo "$test_case $client $server failed" >> /tmp/cloud_prod_result.txt
fi
done
done
gsutil cp /tmp/cloud_prod_result.txt gs://stoked-keyword-656-output/cloud_prod_result.txt
rm /tmp/cloud_prod_result.txt
}
set -x
main "$@"
## Instruction:
Add back a missing test
## Code After:
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 grpc-docker-testclients $client
then
echo "$test_case $client $server passed" >> /tmp/cloud_prod_result.txt
else
echo "$test_case $client $server failed" >> /tmp/cloud_prod_result.txt
fi
done
done
gsutil cp /tmp/cloud_prod_result.txt gs://stoked-keyword-656-output/cloud_prod_result.txt
rm /tmp/cloud_prod_result.txt
}
set -x
main "$@"
|
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)
? ++++++++++
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-testclients $client
then
echo "$test_case $client $server passed" >> /tmp/cloud_prod_result.txt
else
echo "$test_case $client $server failed" >> /tmp/cloud_prod_result.txt
fi
done
done
gsutil cp /tmp/cloud_prod_result.txt gs://stoked-keyword-656-output/cloud_prod_result.txt
rm /tmp/cloud_prod_result.txt
}
set -x
main "$@" | 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;
}).post(tag);
},
removeTag: function (tag_id, item_id) {
mcapi('/tags/%/item/%', tag_id, item_id)
.success(function (tag) {
return tag;
}).delete();
}
};
return service;
}]);
| 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(tag);
},
removeTag: function (tag_id, item_id) {
mcapi('/tags/%/item/%', tag_id, item_id)
.success(function (tag) {
return tag;
}).delete();
}
};
}]);
| 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;
}).post(tag);
},
removeTag: function (tag_id, item_id) {
mcapi('/tags/%/item/%', tag_id, item_id)
.success(function (tag) {
return tag;
}).delete();
}
};
return service;
}]);
## Instruction:
Remove variable declaration for service and just return the object.
## Code After:
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(tag);
},
removeTag: function (tag_id, item_id) {
mcapi('/tags/%/item/%', tag_id, item_id)
.success(function (tag) {
return tag;
}).delete();
}
};
}]);
| 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) {
return tag;
}).post(tag);
},
removeTag: function (tag_id, item_id) {
mcapi('/tags/%/item/%', tag_id, item_id)
.success(function (tag) {
return tag;
}).delete();
}
};
- return service;
}]); | 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 = "green"
}
public let name: String
public var age: Int
public let eyeColor: EyeColor
public let spouse: Bool
public var description: String {
return "Name: \(name), age: \(age), married: \(spouse)"
}
}
extension Person.EyeColor: JSONDecodable {}
extension Person.EyeColor: JSONEncodable {}
extension Person: JSONDecodable {
public init(json value: JSON) throws {
name = try value.string("name")
age = try value.int("age")
eyeColor = try value.decode("eyeColor")
spouse = try value.bool("spouse")
}
}
extension Person: JSONEncodable {
public func toJSON() -> JSON {
return .Dictionary(["name": .String(name), "age": .Int(age), "eyeColor": .String(eyeColor.rawValue), "spouse": .Bool(spouse)])
}
}
| //
// 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 = "green"
}
public let name: String
public var age: Int
public let eyeColor: EyeColor
public let spouse: Bool
public var description: String {
return "Name: \(name), age: \(age), married: \(spouse)"
}
}
extension Person.EyeColor: JSONDecodable {}
extension Person.EyeColor: JSONEncodable {}
extension Person: JSONDecodable {
public init(json value: JSON) throws {
name = try value.string("name")
age = try value.int("age")
eyeColor = try value.decode("eyeColor")
spouse = try value.bool("spouse")
}
}
extension Person: JSONEncodable {
public func toJSON() -> JSON {
return .Dictionary(["name": .String(name), "age": .Int(age), "eyeColor": eyeColor.toJSON(), "spouse": .Bool(spouse)])
}
}
| 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"
case Green = "green"
}
public let name: String
public var age: Int
public let eyeColor: EyeColor
public let spouse: Bool
public var description: String {
return "Name: \(name), age: \(age), married: \(spouse)"
}
}
extension Person.EyeColor: JSONDecodable {}
extension Person.EyeColor: JSONEncodable {}
extension Person: JSONDecodable {
public init(json value: JSON) throws {
name = try value.string("name")
age = try value.int("age")
eyeColor = try value.decode("eyeColor")
spouse = try value.bool("spouse")
}
}
extension Person: JSONEncodable {
public func toJSON() -> JSON {
return .Dictionary(["name": .String(name), "age": .Int(age), "eyeColor": .String(eyeColor.rawValue), "spouse": .Bool(spouse)])
}
}
## Instruction:
Use toJSON() on enum type
## Code After:
//
// 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 = "green"
}
public let name: String
public var age: Int
public let eyeColor: EyeColor
public let spouse: Bool
public var description: String {
return "Name: \(name), age: \(age), married: \(spouse)"
}
}
extension Person.EyeColor: JSONDecodable {}
extension Person.EyeColor: JSONEncodable {}
extension Person: JSONDecodable {
public init(json value: JSON) throws {
name = try value.string("name")
age = try value.int("age")
eyeColor = try value.decode("eyeColor")
spouse = try value.bool("spouse")
}
}
extension Person: JSONEncodable {
public func toJSON() -> JSON {
return .Dictionary(["name": .String(name), "age": .Int(age), "eyeColor": eyeColor.toJSON(), "spouse": .Bool(spouse)])
}
}
| //
// 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 = "green"
}
public let name: String
public var age: Int
public let eyeColor: EyeColor
public let spouse: Bool
public var description: String {
return "Name: \(name), age: \(age), married: \(spouse)"
}
}
extension Person.EyeColor: JSONDecodable {}
extension Person.EyeColor: JSONEncodable {}
extension Person: JSONDecodable {
public init(json value: JSON) throws {
name = try value.string("name")
age = try value.int("age")
eyeColor = try value.decode("eyeColor")
spouse = try value.bool("spouse")
}
}
extension Person: JSONEncodable {
public func toJSON() -> JSON {
- return .Dictionary(["name": .String(name), "age": .Int(age), "eyeColor": .String(eyeColor.rawValue), "spouse": .Bool(spouse)])
? -------- ^^^^^^^^
+ return .Dictionary(["name": .String(name), "age": .Int(age), "eyeColor": eyeColor.toJSON(), "spouse": .Bool(spouse)])
? ^^^^^^^
}
} | 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', :disposition => 'attachment')
end
end
end
def edit
@registration_form = co
@members = co.members
end
def update
@registration_form = co
@registration_form.attributes = params[:registration_form]
if @registration_form.save
flash[:notice] = "Your changes to the Registration Form were saved."
else
flash[:error] = "There was a problem saving your changes to the Registration Form: #{@registration_form.errors.full_messages.to_sentence}"
end
redirect_to edit_registration_form_path
end
end
| 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', :disposition => 'attachment')
end
end
end
def edit
@registration_form = co
signatories = co.signatories
@members = co.members.each{|m| m.selected = true if signatories.include?(m)}
end
def update
@registration_form = co
@registration_form.attributes = params[:registration_form]
if @registration_form.save
flash[:notice] = "Your changes to the Registration Form were saved."
else
flash[:error] = "There was a problem saving your changes to the Registration Form: #{@registration_form.errors.full_messages.to_sentence}"
end
redirect_to edit_registration_form_path
end
end
| 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 => 'application/pdf', :disposition => 'attachment')
end
end
end
def edit
@registration_form = co
@members = co.members
end
def update
@registration_form = co
@registration_form.attributes = params[:registration_form]
if @registration_form.save
flash[:notice] = "Your changes to the Registration Form were saved."
else
flash[:error] = "There was a problem saving your changes to the Registration Form: #{@registration_form.errors.full_messages.to_sentence}"
end
redirect_to edit_registration_form_path
end
end
## Instruction:
Fix that current signatories selection was not shown on registration_forms/edit.
## Code After:
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', :disposition => 'attachment')
end
end
end
def edit
@registration_form = co
signatories = co.signatories
@members = co.members.each{|m| m.selected = true if signatories.include?(m)}
end
def update
@registration_form = co
@registration_form.attributes = params[:registration_form]
if @registration_form.save
flash[:notice] = "Your changes to the Registration Form were saved."
else
flash[:error] = "There was a problem saving your changes to the Registration Form: #{@registration_form.errors.full_messages.to_sentence}"
end
redirect_to edit_registration_form_path
end
end
| 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', :disposition => 'attachment')
end
end
end
def edit
@registration_form = co
- @members = co.members
+ signatories = co.signatories
+ @members = co.members.each{|m| m.selected = true if signatories.include?(m)}
end
def update
@registration_form = co
@registration_form.attributes = params[:registration_form]
if @registration_form.save
flash[:notice] = "Your changes to the Registration Form were saved."
else
flash[:error] = "There was a problem saving your changes to the Registration Form: #{@registration_form.errors.full_messages.to_sentence}"
end
redirect_to edit_registration_form_path
end
end | 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.githubCompatibility": true,
"powershell.scriptAnalysis.settingsPath": "PSScriptAnalyzerSettings.psd1"
}
| {
// 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": "github",
"powershell.scriptAnalysis.settingsPath": "PSScriptAnalyzerSettings.psd1"
}
| 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.githubCompatibility": true,
"powershell.scriptAnalysis.settingsPath": "PSScriptAnalyzerSettings.psd1"
}
## Instruction:
Update markdown ToC slugify mode
## Code After:
{
// 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": "github",
"powershell.scriptAnalysis.settingsPath": "PSScriptAnalyzerSettings.psd1"
}
| {
// 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.githubCompatibility": true,
+ "markdown.extension.toc.slugifyMode": "github",
"powershell.scriptAnalysis.settingsPath": "PSScriptAnalyzerSettings.psd1"
} | 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,VishvajitP/django-rest-framework,VishvajitP/django-rest-framework,elim/django-rest-framework,iheitlager/django-rest-framework,zeldalink0515/django-rest-framework,ajaali/django-rest-framework,d0ugal/django-rest-framework,antonyc/django-rest-framework,kennydude/django-rest-framework,MJafarMashhadi/django-rest-framework,nhorelik/django-rest-framework,hnarayanan/django-rest-framework,douwevandermeij/django-rest-framework,jerryhebert/django-rest-framework,davesque/django-rest-framework,jerryhebert/django-rest-framework,paolopaolopaolo/django-rest-framework,lubomir/django-rest-framework,wangpanjun/django-rest-framework,kennydude/django-rest-framework,jpulec/django-rest-framework,xiaotangyuan/django-rest-framework,YBJAY00000/django-rest-framework,arpheno/django-rest-framework,jpulec/django-rest-framework,AlexandreProenca/django-rest-framework,linovia/django-rest-framework,wzbozon/django-rest-framework,jness/django-rest-framework,kgeorgy/django-rest-framework,wangpanjun/django-rest-framework,jtiai/django-rest-framework,arpheno/django-rest-framework,antonyc/django-rest-framework,d0ugal/django-rest-framework,justanr/django-rest-framework,ticosax/django-rest-framework,rafaelang/django-rest-framework,qsorix/django-rest-framework,jtiai/django-rest-framework,akalipetis/django-rest-framework,fishky/django-rest-framework,ezheidtmann/django-rest-framework,bluedazzle/django-rest-framework,ebsaral/django-rest-framework,yiyocx/django-rest-framework,kezabelle/django-rest-framework,wwj718/django-rest-framework,cyberj/django-rest-framework,aericson/django-rest-framework,ambivalentno/django-rest-framework,gregmuellegger/django-rest-framework,hnakamur/django-rest-framework,rafaelang/django-rest-framework,agconti/django-rest-framework,krinart/django-rest-framework,sbellem/django-rest-framework,jerryhebert/django-rest-framework,James1345/django-rest-framework,fishky/django-rest-framework,akalipetis/django-rest-framework,damycra/django-rest-framework,kgeorgy/django-rest-framework,paolopaolopaolo/django-rest-framework,jpadilla/django-rest-framework,alacritythief/django-rest-framework,atombrella/django-rest-framework,potpath/django-rest-framework,buptlsl/django-rest-framework,adambain-vokal/django-rest-framework,waytai/django-rest-framework,callorico/django-rest-framework,kylefox/django-rest-framework,adambain-vokal/django-rest-framework,delinhabit/django-rest-framework,waytai/django-rest-framework,sehmaschine/django-rest-framework,linovia/django-rest-framework,HireAnEsquire/django-rest-framework,delinhabit/django-rest-framework,ambivalentno/django-rest-framework,bluedazzle/django-rest-framework,ashishfinoit/django-rest-framework,zeldalink0515/django-rest-framework,hunter007/django-rest-framework,sheppard/django-rest-framework,alacritythief/django-rest-framework,simudream/django-rest-framework,wedaly/django-rest-framework,aericson/django-rest-framework,raphaelmerx/django-rest-framework,werthen/django-rest-framework,waytai/django-rest-framework,agconti/django-rest-framework,lubomir/django-rest-framework,dmwyatt/django-rest-framework,jtiai/django-rest-framework,davesque/django-rest-framework,wwj718/django-rest-framework,tomchristie/django-rest-framework,nryoung/django-rest-framework,sheppard/django-rest-framework,davesque/django-rest-framework,atombrella/django-rest-framework,werthen/django-rest-framework,ticosax/django-rest-framework,cyberj/django-rest-framework,rafaelcaricio/django-rest-framework,rhblind/django-rest-framework,MJafarMashhadi/django-rest-framework,hnakamur/django-rest-framework,James1345/django-rest-framework,ossanna16/django-rest-framework,edx/django-rest-framework,thedrow/django-rest-framework-1,dmwyatt/django-rest-framework,cheif/django-rest-framework,brandoncazander/django-rest-framework,tigeraniya/django-rest-framework,raphaelmerx/django-rest-framework,pombredanne/django-rest-framework,rubendura/django-rest-framework,gregmuellegger/django-rest-framework,thedrow/django-rest-framework-1,paolopaolopaolo/django-rest-framework,ashishfinoit/django-rest-framework,sheppard/django-rest-framework,atombrella/django-rest-framework,cyberj/django-rest-framework,uruz/django-rest-framework,ezheidtmann/django-rest-framework,douwevandermeij/django-rest-framework,rubendura/django-rest-framework,iheitlager/django-rest-framework,sehmaschine/django-rest-framework,wzbozon/django-rest-framework,dmwyatt/django-rest-framework,tomchristie/django-rest-framework,jness/django-rest-framework,justanr/django-rest-framework,jness/django-rest-framework,sbellem/django-rest-framework,tcroiset/django-rest-framework,delinhabit/django-rest-framework,callorico/django-rest-framework,callorico/django-rest-framework,antonyc/django-rest-framework,gregmuellegger/django-rest-framework,iheitlager/django-rest-framework,MJafarMashhadi/django-rest-framework,arpheno/django-rest-framework,AlexandreProenca/django-rest-framework,canassa/django-rest-framework,alacritythief/django-rest-framework,potpath/django-rest-framework,nhorelik/django-rest-framework,qsorix/django-rest-framework,simudream/django-rest-framework,edx/django-rest-framework,raphaelmerx/django-rest-framework,potpath/django-rest-framework,leeahoward/django-rest-framework,wedaly/django-rest-framework,ebsaral/django-rest-framework,akalipetis/django-rest-framework,thedrow/django-rest-framework-1,YBJAY00000/django-rest-framework,simudream/django-rest-framework,agconti/django-rest-framework,ezheidtmann/django-rest-framework,ajaali/django-rest-framework,pombredanne/django-rest-framework,ossanna16/django-rest-framework,uploadcare/django-rest-framework,johnraz/django-rest-framework,pombredanne/django-rest-framework,kezabelle/django-rest-framework,wzbozon/django-rest-framework,ebsaral/django-rest-framework,ajaali/django-rest-framework,vstoykov/django-rest-framework,abdulhaq-e/django-rest-framework,werthen/django-rest-framework,andriy-s/django-rest-framework,maryokhin/django-rest-framework,johnraz/django-rest-framework,edx/django-rest-framework,andriy-s/django-rest-framework,yiyocx/django-rest-framework,hnakamur/django-rest-framework,ashishfinoit/django-rest-framework,adambain-vokal/django-rest-framework,tcroiset/django-rest-framework,xiaotangyuan/django-rest-framework,aericson/django-rest-framework,rhblind/django-rest-framework,HireAnEsquire/django-rest-framework,fishky/django-rest-framework,hnarayanan/django-rest-framework,kezabelle/django-rest-framework,buptlsl/django-rest-framework,canassa/django-rest-framework,HireAnEsquire/django-rest-framework,nryoung/django-rest-framework,maryokhin/django-rest-framework,vstoykov/django-rest-framework,lubomir/django-rest-framework,tigeraniya/django-rest-framework,cheif/django-rest-framework,leeahoward/django-rest-framework,sehmaschine/django-rest-framework,VishvajitP/django-rest-framework,krinart/django-rest-framework,wedaly/django-rest-framework,hunter007/django-rest-framework,krinart/django-rest-framework,d0ugal/django-rest-framework,brandoncazander/django-rest-framework,wangpanjun/django-rest-framework,mgaitan/django-rest-framework,elim/django-rest-framework,kylefox/django-rest-framework,bluedazzle/django-rest-framework,rafaelcaricio/django-rest-framework,justanr/django-rest-framework,leeahoward/django-rest-framework,tomchristie/django-rest-framework,mgaitan/django-rest-framework,jpulec/django-rest-framework,ambivalentno/django-rest-framework,mgaitan/django-rest-framework,canassa/django-rest-framework,tcroiset/django-rest-framework,zeldalink0515/django-rest-framework,johnraz/django-rest-framework,wwj718/django-rest-framework,kylefox/django-rest-framework,hunter007/django-rest-framework,brandoncazander/django-rest-framework,ticosax/django-rest-framework,andriy-s/django-rest-framework,uruz/django-rest-framework,uploadcare/django-rest-framework,nryoung/django-rest-framework,YBJAY00000/django-rest-framework,cheif/django-rest-framework,damycra/django-rest-framework,qsorix/django-rest-framework,James1345/django-rest-framework,elim/django-rest-framework,douwevandermeij/django-rest-framework,uruz/django-rest-framework,jpadilla/django-rest-framework,abdulhaq-e/django-rest-framework,rubendura/django-rest-framework,sbellem/django-rest-framework,damycra/django-rest-framework,uploadcare/django-rest-framework,vstoykov/django-rest-framework,xiaotangyuan/django-rest-framework,kgeorgy/django-rest-framework,abdulhaq-e/django-rest-framework,ossanna16/django-rest-framework,rafaelang/django-rest-framework,rafaelcaricio/django-rest-framework,buptlsl/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 build the archetypes, run this command within the project `archetype-builder` and the corresponding archetypes will be generated under the `archetypes` folder from the quickstarts
```
mvn clean compile exec:java
```
* To publish the catalog, move to the root of the project and execute this command `mvn clean install`, the catalog will be published and is generated under the project `archetypes-catalog/target/classes/archetype-catalog.xml`
* To deploy the quickstarts to the JBoss Nexus Repository, after performing the steps beforementioned, `cd archetypes/` and execute `mvn deploy` (you must have deploy privileges to Nexus, so make sure your settings.xml is properly configured as below)
````xml
<servers>
<server>
<id>jboss-snapshots-repository</id>
<username>my-nexus-username</username>
<password>my-nexus-password</password>
</server>
</servers>
````
| [](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 build the archetypes, run this command within the project `archetype-builder` and the corresponding archetypes will be generated under the `archetypes` folder from the quickstarts
```
mvn clean compile exec:java
```
* To publish the catalog, move to the root of the project and execute this command `mvn clean install`, the catalog will be published and is generated under the project `archetypes-catalog/target/classes/archetype-catalog.xml`
* To deploy the quickstarts to the JBoss Nexus Repository, after performing the steps beforementioned, `cd archetypes/` and execute `mvn deploy` (you must have deploy privileges to Nexus, so make sure your settings.xml is properly configured as below)
````xml
<servers>
<server>
<id>jboss-snapshots-repository</id>
<username>my-nexus-username</username>
<password>my-nexus-password</password>
</server>
</servers>
````
## Tooling
The purpose of the Tooling project is to host reusable bash scripts that we need/use when working top of OpenShift
| 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 archetypes
* To build the archetypes, run this command within the project `archetype-builder` and the corresponding archetypes will be generated under the `archetypes` folder from the quickstarts
```
mvn clean compile exec:java
```
* To publish the catalog, move to the root of the project and execute this command `mvn clean install`, the catalog will be published and is generated under the project `archetypes-catalog/target/classes/archetype-catalog.xml`
* To deploy the quickstarts to the JBoss Nexus Repository, after performing the steps beforementioned, `cd archetypes/` and execute `mvn deploy` (you must have deploy privileges to Nexus, so make sure your settings.xml is properly configured as below)
````xml
<servers>
<server>
<id>jboss-snapshots-repository</id>
<username>my-nexus-username</username>
<password>my-nexus-password</password>
</server>
</servers>
````
## Instruction:
Add some info about the tooling folder
## Code After:
[](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 build the archetypes, run this command within the project `archetype-builder` and the corresponding archetypes will be generated under the `archetypes` folder from the quickstarts
```
mvn clean compile exec:java
```
* To publish the catalog, move to the root of the project and execute this command `mvn clean install`, the catalog will be published and is generated under the project `archetypes-catalog/target/classes/archetype-catalog.xml`
* To deploy the quickstarts to the JBoss Nexus Repository, after performing the steps beforementioned, `cd archetypes/` and execute `mvn deploy` (you must have deploy privileges to Nexus, so make sure your settings.xml is properly configured as below)
````xml
<servers>
<server>
<id>jboss-snapshots-repository</id>
<username>my-nexus-username</username>
<password>my-nexus-password</password>
</server>
</servers>
````
## Tooling
The purpose of the Tooling project is to host reusable bash scripts that we need/use when working top of OpenShift
| [](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 build the archetypes, run this command within the project `archetype-builder` and the corresponding archetypes will be generated under the `archetypes` folder from the quickstarts
```
mvn clean compile exec:java
```
* To publish the catalog, move to the root of the project and execute this command `mvn clean install`, the catalog will be published and is generated under the project `archetypes-catalog/target/classes/archetype-catalog.xml`
* To deploy the quickstarts to the JBoss Nexus Repository, after performing the steps beforementioned, `cd archetypes/` and execute `mvn deploy` (you must have deploy privileges to Nexus, so make sure your settings.xml is properly configured as below)
````xml
<servers>
<server>
<id>jboss-snapshots-repository</id>
<username>my-nexus-username</username>
<password>my-nexus-password</password>
</server>
</servers>
````
+
+ ## Tooling
+
+ The purpose of the Tooling project is to host reusable bash scripts that we need/use when working top of OpenShift | 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 = (name, createdAt)
var _propertyStorage = Dictionary<String, Any>()
func getProperty<T, P: Property where P.Value == T>(property: P) -> T? {
assert(contains(_propertyArray(TestModel.properties), PropertyOf(property)))
return _propertyStorage[property.key] as T?
}
mutating func setProperty<T, P: Property where P.Value == T>(property: P, toValue: T) {
assert(contains(_propertyArray(TestModel.properties), PropertyOf(property)))
_propertyStorage[property.key] = toValue
}
mutating func testThings() {
getProperty(TestModel.name)
setProperty(TestModel.name, toValue: "foobar")
}
}
| //
// 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 = (name, createdAt)
var _propertyStorage = Dictionary<String, Any>()
func getProperty<T, P: Property where P.Value == T>(property: P) -> T? {
assert(contains(_propertyArray(self.dynamicType.properties), PropertyOf(property)))
return _propertyStorage[property.key] as T?
}
mutating func setProperty<T, P: Property where P.Value == T>(property: P, toValue: T) {
assert(contains(_propertyArray(self.dynamicType.properties), PropertyOf(property)))
_propertyStorage[property.key] = toValue
}
mutating func testThings() {
getProperty(TestModel.name)
setProperty(TestModel.name, toValue: "foobar")
}
}
| 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 let properties = (name, createdAt)
var _propertyStorage = Dictionary<String, Any>()
func getProperty<T, P: Property where P.Value == T>(property: P) -> T? {
assert(contains(_propertyArray(TestModel.properties), PropertyOf(property)))
return _propertyStorage[property.key] as T?
}
mutating func setProperty<T, P: Property where P.Value == T>(property: P, toValue: T) {
assert(contains(_propertyArray(TestModel.properties), PropertyOf(property)))
_propertyStorage[property.key] = toValue
}
mutating func testThings() {
getProperty(TestModel.name)
setProperty(TestModel.name, toValue: "foobar")
}
}
## Instruction:
Use self.dynamicType instead of hardcoding type
## Code After:
//
// 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 = (name, createdAt)
var _propertyStorage = Dictionary<String, Any>()
func getProperty<T, P: Property where P.Value == T>(property: P) -> T? {
assert(contains(_propertyArray(self.dynamicType.properties), PropertyOf(property)))
return _propertyStorage[property.key] as T?
}
mutating func setProperty<T, P: Property where P.Value == T>(property: P, toValue: T) {
assert(contains(_propertyArray(self.dynamicType.properties), PropertyOf(property)))
_propertyStorage[property.key] = toValue
}
mutating func testThings() {
getProperty(TestModel.name)
setProperty(TestModel.name, toValue: "foobar")
}
}
| //
// 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 = (name, createdAt)
var _propertyStorage = Dictionary<String, Any>()
func getProperty<T, P: Property where P.Value == T>(property: P) -> T? {
- assert(contains(_propertyArray(TestModel.properties), PropertyOf(property)))
? -- ----
+ assert(contains(_propertyArray(self.dynamicType.properties), PropertyOf(property)))
? +++++++++++++
return _propertyStorage[property.key] as T?
}
mutating func setProperty<T, P: Property where P.Value == T>(property: P, toValue: T) {
- assert(contains(_propertyArray(TestModel.properties), PropertyOf(property)))
? -- ----
+ assert(contains(_propertyArray(self.dynamicType.properties), PropertyOf(property)))
? +++++++++++++
_propertyStorage[property.key] = toValue
}
mutating func testThings() {
getProperty(TestModel.name)
setProperty(TestModel.name, toValue: "foobar")
}
} | 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.root.join('vendor', 'mappings', '**{,/*/**}', '*.rb')].each do |f|
require f
end | +
- Dir[Rails.root.join('vendor/mappings/**/*.rb')].each { |f| require f }
? ^ ^ ^ ------------
+ Dir[Rails.root.join('vendor', 'mappings', '**{,/*/**}', '*.rb')].each do |f|
? ^^^^ ++++++++++ ^^^^^ ^^
+ require f
+ end | 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.find_by(id: params[:survey_id])
erb :"/questions/new"
end
post '/questions' do
binding.pry
end
| 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
a(href=item.url)= item.title
if item.summary && ! item.isSelfPost()
|
a(href="#", class="show-summary")
| ...
+delete(item.poster, '/news/' + item._id + '/delete')
p.voters
each voter, index in votes.voters
a.voter(href="/user/#{voter}")=voter
h4
div(class="item-summary")!= item.summary
= 'submitted '
span.timeago(title="#{item.created}")= timeago(item.created)
= ' from '
a(href='/news/source/' + item.source, class='source')= item.source
= ' by '
a(href='/user/' + item.poster.username, class='user')= item.poster.username
if item.poster.profile.description
= ', '
span(title="User description")= item.poster.profile.description
| .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
a(href=item.url)= item.title
if item.summary && ! item.isSelfPost()
|
a(href="#", class="show-summary")
| ...
+delete(item.poster, '/news/' + item._id + '/delete')
p.voters
each voter, index in votes.voters
a.voter(href="/user/#{voter}")=voter
h4
div(class="item-summary")!= item.summary
= 'submitted '
a.timeago(href="/news/#{item.id}", title="#{item.created}")= timeago(item.created)
= ' from '
a(href='/news/source/' + item.source, class='source')= item.source
= ' by '
a(href='/user/' + item.poster.username, class='user')= item.poster.username
if item.poster.profile.description
= ', '
span(title="User description")= item.poster.profile.description
| 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.fa.fa-chevron-up
a(href=item.url)= item.title
if item.summary && ! item.isSelfPost()
|
a(href="#", class="show-summary")
| ...
+delete(item.poster, '/news/' + item._id + '/delete')
p.voters
each voter, index in votes.voters
a.voter(href="/user/#{voter}")=voter
h4
div(class="item-summary")!= item.summary
= 'submitted '
span.timeago(title="#{item.created}")= timeago(item.created)
= ' from '
a(href='/news/source/' + item.source, class='source')= item.source
= ' by '
a(href='/user/' + item.poster.username, class='user')= item.poster.username
if item.poster.profile.description
= ', '
span(title="User description")= item.poster.profile.description
## Instruction:
Make news item time linkable
## Code After:
.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
a(href=item.url)= item.title
if item.summary && ! item.isSelfPost()
|
a(href="#", class="show-summary")
| ...
+delete(item.poster, '/news/' + item._id + '/delete')
p.voters
each voter, index in votes.voters
a.voter(href="/user/#{voter}")=voter
h4
div(class="item-summary")!= item.summary
= 'submitted '
a.timeago(href="/news/#{item.id}", title="#{item.created}")= timeago(item.created)
= ' from '
a(href='/news/source/' + item.source, class='source')= item.source
= ' by '
a(href='/user/' + item.poster.username, class='user')= item.poster.username
if item.poster.profile.description
= ', '
span(title="User description")= item.poster.profile.description
| .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
a(href=item.url)= item.title
if item.summary && ! item.isSelfPost()
|
a(href="#", class="show-summary")
| ...
+delete(item.poster, '/news/' + item._id + '/delete')
p.voters
each voter, index in votes.voters
a.voter(href="/user/#{voter}")=voter
h4
div(class="item-summary")!= item.summary
= 'submitted '
- span.timeago(title="#{item.created}")= timeago(item.created)
? -- -
+ a.timeago(href="/news/#{item.id}", title="#{item.created}")= timeago(item.created)
? +++++++++++++++++++++++++
= ' from '
a(href='/news/source/' + item.source, class='source')= item.source
= ' by '
a(href='/user/' + item.poster.username, class='user')= item.poster.username
if item.poster.profile.description
= ', '
span(title="User description")= item.poster.profile.description | 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']
.sub "hello" :method
say "Hello, World"
.end
CODE
Hello, World
RESULT
# vim: ft=perl
| 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');
.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']
.sub "hello" :method
say "Hello, World"
.end
CODE
Hello, World
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']
+ .sub "hello" :method
+ say "Hello, World"
+ .end
+ CODE
+ Hello, World
+ RESULT
+
# vim: ft=perl | 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
.getElementById('action')
.innerHTML = "Switching context to '#{ctx}'"
document
.getElementById('context')
.innerHTML = ctx
listnr.activate(ctx)
matchingHandler = (combo) ->
document
.getElementById('action')
.innerHTML = "Has mapping for '#{combo}'"
defaultHandler = (combo) ->
document
.getElementById('action')
.innerHTML = "No mapping for '#{combo}'"
listnr
.map('a', matchingHandler)
.map('c', -> setContext('context'))
.default(defaultHandler)
.addContext('context')
.map('b', matchingHandler)
.map('d', -> setContext('default'))
.default(defaultHandler)
setContext('default')
| 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 = (ctx) ->
document
.getElementById('action')
.innerHTML = "Switching context to '#{ctx}'"
document
.getElementById('context')
.innerHTML = ctx
document
.getElementById('help')
.innerHTML = JSON.stringify(listnr.help(), null, 2)
listnr.activate(ctx)
matchingHandler = (combo) ->
document
.getElementById('action')
.innerHTML = "Has mapping for '#{combo}'"
defaultHandler = (combo) ->
document
.getElementById('action')
.innerHTML = "No mapping for '#{combo}'"
listnr
.map('a', 'Mapping for "a"', matchingHandler)
.map('c', 'Switch to menu context', -> setContext('menu'))
.default(defaultHandler)
.addContext('menu')
.map('b', 'Mapping for "b"', matchingHandler)
.map('d', 'Switch to default context', -> setContext('default'))
.default(defaultHandler)
setContext('default')
| 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) ->
document
.getElementById('action')
.innerHTML = "Switching context to '#{ctx}'"
document
.getElementById('context')
.innerHTML = ctx
listnr.activate(ctx)
matchingHandler = (combo) ->
document
.getElementById('action')
.innerHTML = "Has mapping for '#{combo}'"
defaultHandler = (combo) ->
document
.getElementById('action')
.innerHTML = "No mapping for '#{combo}'"
listnr
.map('a', matchingHandler)
.map('c', -> setContext('context'))
.default(defaultHandler)
.addContext('context')
.map('b', matchingHandler)
.map('d', -> setContext('default'))
.default(defaultHandler)
setContext('default')
## Instruction:
Update example with help text
## Code After:
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 = (ctx) ->
document
.getElementById('action')
.innerHTML = "Switching context to '#{ctx}'"
document
.getElementById('context')
.innerHTML = ctx
document
.getElementById('help')
.innerHTML = JSON.stringify(listnr.help(), null, 2)
listnr.activate(ctx)
matchingHandler = (combo) ->
document
.getElementById('action')
.innerHTML = "Has mapping for '#{combo}'"
defaultHandler = (combo) ->
document
.getElementById('action')
.innerHTML = "No mapping for '#{combo}'"
listnr
.map('a', 'Mapping for "a"', matchingHandler)
.map('c', 'Switch to menu context', -> setContext('menu'))
.default(defaultHandler)
.addContext('menu')
.map('b', 'Mapping for "b"', matchingHandler)
.map('d', 'Switch to default context', -> setContext('default'))
.default(defaultHandler)
setContext('default')
| 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 = (ctx) ->
document
.getElementById('action')
.innerHTML = "Switching context to '#{ctx}'"
document
.getElementById('context')
.innerHTML = ctx
+ document
+ .getElementById('help')
+ .innerHTML = JSON.stringify(listnr.help(), null, 2)
listnr.activate(ctx)
matchingHandler = (combo) ->
document
.getElementById('action')
.innerHTML = "Has mapping for '#{combo}'"
defaultHandler = (combo) ->
document
.getElementById('action')
.innerHTML = "No mapping for '#{combo}'"
listnr
- .map('a', matchingHandler)
- .map('c', -> setContext('context'))
+ .map('a', 'Mapping for "a"', matchingHandler)
+ .map('c', 'Switch to menu context', -> setContext('menu'))
.default(defaultHandler)
- .addContext('context')
? ^^ ^^^^
+ .addContext('menu')
? ^^ ^
- .map('b', matchingHandler)
- .map('d', -> setContext('default'))
+ .map('b', 'Mapping for "b"', matchingHandler)
+ .map('d', 'Switch to default context', -> setContext('default'))
.default(defaultHandler)
setContext('default') | 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 catastrophe","a loved one","a gun","warmth","freezing","the sun",
"a hat","the Luna","a ruined station","a planet","plasma","air","the medical bay","the bridge","blinking lights",
"a blue light","an abandoned laboratory","Nanotrasen","The Syndicate","blood","healing","power","respect",
"riches","space","a crash","happiness","pride","a fall","water","flames","ice","melons","flying"
)
for(var/i = rand(1,4),i > 0, i--)
var/dream_image = pick(dreams)
dreams -= dream_image
src << "\blue <i>... [dream_image] ...</i>"
sleep(rand(40,70))
if(paralysis <= 0)
dreaming = 0
return 0
dreaming = 0
return 1
mob/living/carbon/proc/handle_dreams()
if(prob(5) && !dreaming) dream()
mob/living/carbon/var/dreaming = 0 | 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 catastrophe","a loved one","a gun","warmth","freezing","the sun",
"a hat","the Luna","a ruined station","a planet","plasma","air","the medical bay","the bridge","blinking lights",
"a blue light","an abandoned laboratory","Nanotrasen","The Syndicate","blood","healing","power","respect",
"riches","space","a crash","happiness","pride","a fall","water","flames","ice","melons","flying"
)
spawn(0)
for(var/i = rand(1,4),i > 0, i--)
var/dream_image = pick(dreams)
dreams -= dream_image
src << "\blue <i>... [dream_image] ...</i>"
sleep(rand(40,70))
if(paralysis <= 0)
dreaming = 0
return 0
dreaming = 0
return 1
mob/living/carbon/proc/handle_dreams()
if(prob(5) && !dreaming) dream()
mob/living/carbon/var/dreaming = 0 | 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 monkey","a catastrophe","a loved one","a gun","warmth","freezing","the sun",
"a hat","the Luna","a ruined station","a planet","plasma","air","the medical bay","the bridge","blinking lights",
"a blue light","an abandoned laboratory","Nanotrasen","The Syndicate","blood","healing","power","respect",
"riches","space","a crash","happiness","pride","a fall","water","flames","ice","melons","flying"
)
for(var/i = rand(1,4),i > 0, i--)
var/dream_image = pick(dreams)
dreams -= dream_image
src << "\blue <i>... [dream_image] ...</i>"
sleep(rand(40,70))
if(paralysis <= 0)
dreaming = 0
return 0
dreaming = 0
return 1
mob/living/carbon/proc/handle_dreams()
if(prob(5) && !dreaming) dream()
mob/living/carbon/var/dreaming = 0
## Instruction:
Fix for HERP DERP LAG.
## Code After:
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 catastrophe","a loved one","a gun","warmth","freezing","the sun",
"a hat","the Luna","a ruined station","a planet","plasma","air","the medical bay","the bridge","blinking lights",
"a blue light","an abandoned laboratory","Nanotrasen","The Syndicate","blood","healing","power","respect",
"riches","space","a crash","happiness","pride","a fall","water","flames","ice","melons","flying"
)
spawn(0)
for(var/i = rand(1,4),i > 0, i--)
var/dream_image = pick(dreams)
dreams -= dream_image
src << "\blue <i>... [dream_image] ...</i>"
sleep(rand(40,70))
if(paralysis <= 0)
dreaming = 0
return 0
dreaming = 0
return 1
mob/living/carbon/proc/handle_dreams()
if(prob(5) && !dreaming) dream()
mob/living/carbon/var/dreaming = 0 | 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 catastrophe","a loved one","a gun","warmth","freezing","the sun",
"a hat","the Luna","a ruined station","a planet","plasma","air","the medical bay","the bridge","blinking lights",
"a blue light","an abandoned laboratory","Nanotrasen","The Syndicate","blood","healing","power","respect",
"riches","space","a crash","happiness","pride","a fall","water","flames","ice","melons","flying"
)
+ spawn(0)
- for(var/i = rand(1,4),i > 0, i--)
+ for(var/i = rand(1,4),i > 0, i--)
? +
- var/dream_image = pick(dreams)
+ var/dream_image = pick(dreams)
? +
- dreams -= dream_image
+ dreams -= dream_image
? +
- src << "\blue <i>... [dream_image] ...</i>"
+ src << "\blue <i>... [dream_image] ...</i>"
? +
- sleep(rand(40,70))
+ sleep(rand(40,70))
? +
- if(paralysis <= 0)
+ if(paralysis <= 0)
? +
- dreaming = 0
+ dreaming = 0
? +
- return 0
+ return 0
? +
- dreaming = 0
+ dreaming = 0
? +
- return 1
+ return 1
? +
mob/living/carbon/proc/handle_dreams()
if(prob(5) && !dreaming) dream()
mob/living/carbon/var/dreaming = 0 | 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
build_script:
- travis-tool.sh install_deps
- travis-tool.sh bioc_install GenomeInfoDbData
- travis-tool.sh install_github mikelove/tximport
test_script:
- travis-tool.sh run_tests
on_failure:
- 7z a failure.zip *.Rcheck\*
- appveyor PushArtifact failure.zip
artifacts:
- path: '*.Rcheck\**\*.log'
name: Logs
- path: '*.Rcheck\**\*.out'
name: Logs
- path: '*.Rcheck\**\*.fail'
name: Logs
- path: '*.Rcheck\**\*.Rout'
name: Logs
- path: '\*_*.tar.gz'
name: Bits
- path: '\*_*.zip'
name: Bits
| 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
build_script:
- travis-tool.sh bioc_install GenomeInfoDbData
- travis-tool.sh install_deps
- travis-tool.sh install_github mikelove/tximport
test_script:
- travis-tool.sh run_tests
on_failure:
- 7z a failure.zip *.Rcheck\*
- appveyor PushArtifact failure.zip
artifacts:
- path: '*.Rcheck\**\*.log'
name: Logs
- path: '*.Rcheck\**\*.out'
name: Logs
- path: '*.Rcheck\**\*.fail'
name: Logs
- path: '*.Rcheck\**\*.Rout'
name: Logs
- path: '\*_*.tar.gz'
name: Bits
- path: '\*_*.zip'
name: Bits
| 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 starting from here
build_script:
- travis-tool.sh install_deps
- travis-tool.sh bioc_install GenomeInfoDbData
- travis-tool.sh install_github mikelove/tximport
test_script:
- travis-tool.sh run_tests
on_failure:
- 7z a failure.zip *.Rcheck\*
- appveyor PushArtifact failure.zip
artifacts:
- path: '*.Rcheck\**\*.log'
name: Logs
- path: '*.Rcheck\**\*.out'
name: Logs
- path: '*.Rcheck\**\*.fail'
name: Logs
- path: '*.Rcheck\**\*.Rout'
name: Logs
- path: '\*_*.tar.gz'
name: Bits
- path: '\*_*.zip'
name: Bits
## Instruction:
Install GenomeInfoDbData first otherwise basejump will fail
## Code After:
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
build_script:
- travis-tool.sh bioc_install GenomeInfoDbData
- travis-tool.sh install_deps
- travis-tool.sh install_github mikelove/tximport
test_script:
- travis-tool.sh run_tests
on_failure:
- 7z a failure.zip *.Rcheck\*
- appveyor PushArtifact failure.zip
artifacts:
- path: '*.Rcheck\**\*.log'
name: Logs
- path: '*.Rcheck\**\*.out'
name: Logs
- path: '*.Rcheck\**\*.fail'
name: Logs
- path: '*.Rcheck\**\*.Rout'
name: Logs
- path: '\*_*.tar.gz'
name: Bits
- path: '\*_*.zip'
name: Bits
| 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
build_script:
+ - travis-tool.sh bioc_install GenomeInfoDbData
- travis-tool.sh install_deps
- - travis-tool.sh bioc_install GenomeInfoDbData
- travis-tool.sh install_github mikelove/tximport
test_script:
- travis-tool.sh run_tests
on_failure:
- 7z a failure.zip *.Rcheck\*
- appveyor PushArtifact failure.zip
artifacts:
- path: '*.Rcheck\**\*.log'
name: Logs
- path: '*.Rcheck\**\*.out'
name: Logs
- path: '*.Rcheck\**\*.fail'
name: Logs
- path: '*.Rcheck\**\*.Rout'
name: Logs
- path: '\*_*.tar.gz'
name: Bits
- path: '\*_*.zip'
name: Bits | 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
providing simple APIs that can be used safely without needing a crypto
background.
Tink provides secure APIs that are easy to use correctly and hard(er) to misuse.
It reduces common crypto pitfalls with user-centered design, careful
implementation and code reviews, and extensive testing. At Google, Tink is
already being used to secure data of many products such as AdMob, Google Pay,
Google Assistant, Firebase, the Android Search App, etc.
## Documentation
For an overview of using Tink in Python, see the
[Python HOW-TO](../docs/PYTHON-HOWTO.md).
In addition, there are illustrative [examples of using Tink
Python](https://github.com/google/tink/tree/master/examples/python/) which can
used as a jumping off point.
|
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
providing simple APIs that can be used safely without needing a crypto
background.
Tink provides secure APIs that are easy to use correctly and hard(er) to misuse.
It reduces common crypto pitfalls with user-centered design, careful
implementation and code reviews, and extensive testing. At Google, Tink is
already being used to secure data of many products such as AdMob, Google Pay,
Google Assistant, Firebase, the Android Search App, etc.
## Documentation
For an overview of using Tink in Python, see https://developers.google.com/tink.
In addition, there are illustrative [examples of using Tink
Python](https://github.com/google/tink/tree/master/examples/python/) which can
used as a jumping off point.
| 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 implementations, and
providing simple APIs that can be used safely without needing a crypto
background.
Tink provides secure APIs that are easy to use correctly and hard(er) to misuse.
It reduces common crypto pitfalls with user-centered design, careful
implementation and code reviews, and extensive testing. At Google, Tink is
already being used to secure data of many products such as AdMob, Google Pay,
Google Assistant, Firebase, the Android Search App, etc.
## Documentation
For an overview of using Tink in Python, see the
[Python HOW-TO](../docs/PYTHON-HOWTO.md).
In addition, there are illustrative [examples of using Tink
Python](https://github.com/google/tink/tree/master/examples/python/) which can
used as a jumping off point.
## Instruction:
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
## Code After:
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
providing simple APIs that can be used safely without needing a crypto
background.
Tink provides secure APIs that are easy to use correctly and hard(er) to misuse.
It reduces common crypto pitfalls with user-centered design, careful
implementation and code reviews, and extensive testing. At Google, Tink is
already being used to secure data of many products such as AdMob, Google Pay,
Google Assistant, Firebase, the Android Search App, etc.
## Documentation
For an overview of using Tink in Python, see https://developers.google.com/tink.
In addition, there are illustrative [examples of using Tink
Python](https://github.com/google/tink/tree/master/examples/python/) which can
used as a jumping off point.
|
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
providing simple APIs that can be used safely without needing a crypto
background.
Tink provides secure APIs that are easy to use correctly and hard(er) to misuse.
It reduces common crypto pitfalls with user-centered design, careful
implementation and code reviews, and extensive testing. At Google, Tink is
already being used to secure data of many products such as AdMob, Google Pay,
Google Assistant, Firebase, the Android Search App, etc.
## Documentation
+ For an overview of using Tink in Python, see https://developers.google.com/tink.
- For an overview of using Tink in Python, see the
- [Python HOW-TO](../docs/PYTHON-HOWTO.md).
In addition, there are illustrative [examples of using Tink
Python](https://github.com/google/tink/tree/master/examples/python/) which can
used as a jumping off point. | 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) -J 'URLNavigator'
| 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://codecov.io/bash) -J 'URLNavigator'
| 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://codecov.io/bash) -J 'URLNavigator'
## Instruction:
Add 'set -o pipefail' to test script
## Code After:
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://codecov.io/bash) -J 'URLNavigator'
| 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
after_success:
- bash <(curl -s https://codecov.io/bash) -J 'URLNavigator' | 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='Uwaga!',
caution='Ostrzeżenie!',
danger='Uwaga!',
error='Błąd',
hint='Wskazówka',
important='Ważne',
note='Uwaga',
tip='Porada',
warning='Ostrzeżenie',
seealso='Zobacz również',
) in PL
|
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='Uwaga!',
caution='Ostrożnie!',
danger='!NIEBEZPIECZEŃSTWO!',
error='Błąd',
hint='Wskazówka',
important='Ważne',
note='Notatka',
tip='Porada',
warning='Ostrzeżenie',
seealso='Zobacz również',
) in PL
| 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(
attention='Uwaga!',
caution='Ostrzeżenie!',
danger='Uwaga!',
error='Błąd',
hint='Wskazówka',
important='Ważne',
note='Uwaga',
tip='Porada',
warning='Ostrzeżenie',
seealso='Zobacz również',
) in PL
## Instruction:
Add Polish language document strings.
## Code After:
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='Uwaga!',
caution='Ostrożnie!',
danger='!NIEBEZPIECZEŃSTWO!',
error='Błąd',
hint='Wskazówka',
important='Ważne',
note='Notatka',
tip='Porada',
warning='Ostrzeżenie',
seealso='Zobacz również',
) in PL
|
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='Skorowidz',
) in PL
AdmonitionTitles(
attention='Uwaga!',
- caution='Ostrzeżenie!',
? ^^ -
+ caution='Ostrożnie!',
? ^
- danger='Uwaga!',
+ danger='!NIEBEZPIECZEŃSTWO!',
error='Błąd',
hint='Wskazówka',
important='Ważne',
- note='Uwaga',
? ^^ ^
+ note='Notatka',
? ^^^ ^^
tip='Porada',
warning='Ostrzeżenie',
seealso='Zobacz również',
) in PL | 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.1 -- 2017-02-01
* First version.
'
basic-deps:
base: ! '>=4.9 && <4.11'
all-versions:
- '0.1'
- 0.1.0.1
author: Joachim Breitner
latest: 0.1.0.1
description-type: haddock
description: ! 'This package provides the
''Control.Applicative.Successors.Succs'' functor. It models
a node in a graph together with its successors. The
@Applicative@ (and @Monad@) instances are designed so that
the successors of the resulting value take exactly one
step, either in the left or the right argument to @\<*\>@
(or @>>=@).'
license-name: MIT
| 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.1 -- 2017-02-01
* First version.
basic-deps:
base: '>=4.8 && <4.15'
all-versions:
- '0.1'
- 0.1.0.1
- 0.1.0.2
author: Joachim Breitner
latest: 0.1.0.2
description-type: haddock
description: |-
This package provides the
'Control.Applicative.Successors.Succs' functor. It models
a node in a graph together with its successors. The
@Applicative@ (and @Monad@) instances are designed so that
the successors of the resulting value take exactly one
step, either in the left or the right argument to @\<*\>@
(or @>>=@).
license-name: MIT
| 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 successors
## 0.1 -- 2017-02-01
* First version.
'
basic-deps:
base: ! '>=4.9 && <4.11'
all-versions:
- '0.1'
- 0.1.0.1
author: Joachim Breitner
latest: 0.1.0.1
description-type: haddock
description: ! 'This package provides the
''Control.Applicative.Successors.Succs'' functor. It models
a node in a graph together with its successors. The
@Applicative@ (and @Monad@) instances are designed so that
the successors of the resulting value take exactly one
step, either in the left or the right argument to @\<*\>@
(or @>>=@).'
license-name: MIT
## Instruction:
Update from Hackage at 2021-02-22T13:19:09Z
## Code After:
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.1 -- 2017-02-01
* First version.
basic-deps:
base: '>=4.8 && <4.15'
all-versions:
- '0.1'
- 0.1.0.1
- 0.1.0.2
author: Joachim Breitner
latest: 0.1.0.2
description-type: haddock
description: |-
This package provides the
'Control.Applicative.Successors.Succs' functor. It models
a node in a graph together with its successors. The
@Applicative@ (and @Monad@) instances are designed so that
the successors of the resulting value take exactly one
step, either in the left or the right argument to @\<*\>@
(or @>>=@).
license-name: MIT
| 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 functor to manage successors
+ changelog: |
- changelog: ! '# Revision history for successors
? ---------- - -
+ # Revision history for successors
-
## 0.1 -- 2017-02-01
-
* First version.
-
- '
basic-deps:
- base: ! '>=4.9 && <4.11'
? -- ^ ^
+ base: '>=4.8 && <4.15'
? ^ ^
all-versions:
- '0.1'
- 0.1.0.1
+ - 0.1.0.2
author: Joachim Breitner
- latest: 0.1.0.1
? ^
+ latest: 0.1.0.2
? ^
description-type: haddock
+ description: |-
- description: ! 'This package provides the
? ------------ - -
+ This package provides the
-
- ''Control.Applicative.Successors.Succs'' functor. It models
? - -
+ 'Control.Applicative.Successors.Succs' functor. It models
-
a node in a graph together with its successors. The
-
@Applicative@ (and @Monad@) instances are designed so that
-
the successors of the resulting value take exactly one
-
step, either in the left or the right argument to @\<*\>@
-
- (or @>>=@).'
? -
+ (or @>>=@).
license-name: MIT | 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:
$ bundle
Or install it yourself:
$ gem install human_power
## Usage
### Using in Ruby on Rails
In *config/robots.rb*:
```ruby
# Disallow everything in /admin for all user agents
disallow_tree admin_path
# Googlebot
googlebot do
disallow reviews_path # Disallow a URL
disallow new_product_path, new_category_path # Disallow multiple paths in one line
end
# Bingbot
bingbot do
disallow :all # There you go, Bingbot! (Disallow everything)
end
# Identical settings for multiple user agents
user_agent [:bingbot, :googlebot] do
disallow login_path
end
# You have access to everything from your ApplicationController
if request.subdomains.first == "api"
disallow :all
end
```
## Contributing
1. Fork the project
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new pull request
|
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:
$ bundle
Or install it yourself:
$ gem install human_power
## Usage
### Using in Ruby on Rails
In *config/robots.rb*:
```ruby
# Disallow everything in /admin for all user agents
disallow_tree admin_path
# Googlebot
googlebot do
disallow reviews_path # Disallow a URL
disallow new_product_path, new_category_path # Disallow multiple paths in one line
end
# Bingbot
bingbot do
disallow :all # There you go, Bingbot! (Disallow everything)
end
# Identical settings for multiple user agents
user_agent [:bingbot, :googlebot] do
disallow login_path
end
# Custom user agent
user_agent "My Custom User Agent String" do
disallow some_path
end
# You have access to everything from your ApplicationController
if request.subdomains.first == "api"
disallow :all
end
```
## Contributing
1. Fork the project
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new pull request
| 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_power'
Then run:
$ bundle
Or install it yourself:
$ gem install human_power
## Usage
### Using in Ruby on Rails
In *config/robots.rb*:
```ruby
# Disallow everything in /admin for all user agents
disallow_tree admin_path
# Googlebot
googlebot do
disallow reviews_path # Disallow a URL
disallow new_product_path, new_category_path # Disallow multiple paths in one line
end
# Bingbot
bingbot do
disallow :all # There you go, Bingbot! (Disallow everything)
end
# Identical settings for multiple user agents
user_agent [:bingbot, :googlebot] do
disallow login_path
end
# You have access to everything from your ApplicationController
if request.subdomains.first == "api"
disallow :all
end
```
## Contributing
1. Fork the project
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new pull request
## Instruction:
Add example on custom user agent
## Code After:
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:
$ bundle
Or install it yourself:
$ gem install human_power
## Usage
### Using in Ruby on Rails
In *config/robots.rb*:
```ruby
# Disallow everything in /admin for all user agents
disallow_tree admin_path
# Googlebot
googlebot do
disallow reviews_path # Disallow a URL
disallow new_product_path, new_category_path # Disallow multiple paths in one line
end
# Bingbot
bingbot do
disallow :all # There you go, Bingbot! (Disallow everything)
end
# Identical settings for multiple user agents
user_agent [:bingbot, :googlebot] do
disallow login_path
end
# Custom user agent
user_agent "My Custom User Agent String" do
disallow some_path
end
# You have access to everything from your ApplicationController
if request.subdomains.first == "api"
disallow :all
end
```
## Contributing
1. Fork the project
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new pull request
|
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:
$ bundle
Or install it yourself:
$ gem install human_power
## Usage
### Using in Ruby on Rails
In *config/robots.rb*:
```ruby
# Disallow everything in /admin for all user agents
disallow_tree admin_path
# Googlebot
googlebot do
disallow reviews_path # Disallow a URL
disallow new_product_path, new_category_path # Disallow multiple paths in one line
end
# Bingbot
bingbot do
disallow :all # There you go, Bingbot! (Disallow everything)
end
# Identical settings for multiple user agents
user_agent [:bingbot, :googlebot] do
disallow login_path
end
+ # Custom user agent
+ user_agent "My Custom User Agent String" do
+ disallow some_path
+ end
+
# You have access to everything from your ApplicationController
if request.subdomains.first == "api"
disallow :all
end
```
## Contributing
1. Fork the project
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new pull request | 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)['code'] == expected }
end
def test_to_cjs
source = <<-JS
export default 'hi';
JS
expected = <<-JS.strip
'use strict';
module.exports = 'hi';
JS
assert { Esperanto.to_cjs(source)['code'] == expected }
end
def test_to_umd
source = <<-JS
export default 'hi';
JS
expected = <<-JS.strip
(function (global, factory) {
\t\ttypeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
\t\ttypeof define === 'function' && define.amd ? define(factory) :
\t\tglobal.homura = factory()
\t}(this, function () { 'use strict';
\t
\treturn 'hi';
}));
JS
assert { Esperanto.to_umd(source, name: 'homura')['code'] == expected }
end
end
| 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)['code'] == expected }
end
def test_to_cjs
source = <<-JS
export default 'hi';
JS
expected = <<-JS.strip
'use strict';
module.exports = 'hi';
JS
assert { Esperanto.to_cjs(source)['code'] == expected }
end
def test_to_umd
source = <<-JS
export default 'hi';
JS
expected = <<-JS.strip
(function (global, factory) {
\ttypeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
\ttypeof define === 'function' && define.amd ? define(factory) :
\tglobal.homura = factory()
}(this, function () { 'use strict';
\treturn 'hi';
}));
JS
assert { Esperanto.to_umd(source, name: 'homura')['code'] == expected }
end
end
| 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_amd(source)['code'] == expected }
end
def test_to_cjs
source = <<-JS
export default 'hi';
JS
expected = <<-JS.strip
'use strict';
module.exports = 'hi';
JS
assert { Esperanto.to_cjs(source)['code'] == expected }
end
def test_to_umd
source = <<-JS
export default 'hi';
JS
expected = <<-JS.strip
(function (global, factory) {
\t\ttypeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
\t\ttypeof define === 'function' && define.amd ? define(factory) :
\t\tglobal.homura = factory()
\t}(this, function () { 'use strict';
\t
\treturn 'hi';
}));
JS
assert { Esperanto.to_umd(source, name: 'homura')['code'] == expected }
end
end
## Instruction:
Fix tests for latest esperanto
## Code After:
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)['code'] == expected }
end
def test_to_cjs
source = <<-JS
export default 'hi';
JS
expected = <<-JS.strip
'use strict';
module.exports = 'hi';
JS
assert { Esperanto.to_cjs(source)['code'] == expected }
end
def test_to_umd
source = <<-JS
export default 'hi';
JS
expected = <<-JS.strip
(function (global, factory) {
\ttypeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
\ttypeof define === 'function' && define.amd ? define(factory) :
\tglobal.homura = factory()
}(this, function () { 'use strict';
\treturn 'hi';
}));
JS
assert { Esperanto.to_umd(source, name: 'homura')['code'] == expected }
end
end
| 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)['code'] == expected }
end
def test_to_cjs
source = <<-JS
export default 'hi';
JS
expected = <<-JS.strip
'use strict';
module.exports = 'hi';
JS
assert { Esperanto.to_cjs(source)['code'] == expected }
end
def test_to_umd
source = <<-JS
export default 'hi';
JS
expected = <<-JS.strip
(function (global, factory) {
- \t\ttypeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
? --
+ \ttypeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
- \t\ttypeof define === 'function' && define.amd ? define(factory) :
? --
+ \ttypeof define === 'function' && define.amd ? define(factory) :
- \t\tglobal.homura = factory()
? --
+ \tglobal.homura = factory()
- \t}(this, function () { 'use strict';
? --
+ }(this, function () { 'use strict';
- \t
+
\treturn 'hi';
}));
JS
assert { Esperanto.to_umd(source, name: 'homura')['code'] == expected }
end
end | 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: true
- python: nightly
dist: trusty
sudo: false
allow_failures:
- python: nightly
install:
- pip install -r requirements-travis.txt
before_script:
- flake8
- ./bin/fetch-configlet
- ./bin/configlet lint .
- ./bin/check-readmes.sh
script:
- ./test/check-exercises.py
| 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 install -r requirements-travis.txt
before_script:
- flake8
- ./bin/fetch-configlet
- ./bin/configlet lint .
- ./bin/check-readmes.sh
script:
- ./test/check-exercises.py
| 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: xenial
sudo: true
- python: nightly
dist: trusty
sudo: false
allow_failures:
- python: nightly
install:
- pip install -r requirements-travis.txt
before_script:
- flake8
- ./bin/fetch-configlet
- ./bin/configlet lint .
- ./bin/check-readmes.sh
script:
- ./test/check-exercises.py
## Instruction:
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
## Code After:
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 install -r requirements-travis.txt
before_script:
- flake8
- ./bin/fetch-configlet
- ./bin/configlet lint .
- ./bin/check-readmes.sh
script:
- ./test/check-exercises.py
| - 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: true
- python: nightly
dist: trusty
- sudo: false
allow_failures:
- python: nightly
install:
- pip install -r requirements-travis.txt
before_script:
- flake8
- ./bin/fetch-configlet
- ./bin/configlet lint .
- ./bin/check-readmes.sh
script:
- ./test/check-exercises.py | 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;
this.href = href;
this.title = title;
}
public String getRel() {
return rel;
}
public String getHref() {
return href;
}
public String getTitle() {
return 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")
@ApiClass("A simple representation of a link.")
@XmlRootElement
public class SimpleLink {
private String rel;
private String href;
private String title;
public SimpleLink() {
}
public SimpleLink(String rel, String href, String title) {
this.rel = rel;
this.href = href;
this.title = title;
}
@ApiProperty("Name of the relation")
public String getRel() {
return rel;
}
@ApiProperty("Href to target entity")
public String getHref() {
return href;
}
@ApiProperty("Name of the target")
public String getTitle() {
return title;
}
public void setRel(String rel) {
this.rel = rel;
}
public void setHref(String href) {
this.href = href;
}
public void setTitle(String title) {
this.title = title;
}
}
| 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/hawkular-metrics,jsanda/hawkular-metrics,jshaughn/hawkular-metrics,Jiri-Kremser/hawkular-metrics,jotak/hawkular-metrics,mwringe/hawkular-metrics,pilhuhn/rhq-metrics,vrockai/hawkular-metrics,jotak/hawkular-metrics,hawkular/hawkular-metrics,jsanda/hawkular-metrics,140293816/Hawkular-fork,Jiri-Kremser/hawkular-metrics,vrockai/hawkular-metrics,Jiri-Kremser/hawkular-metrics,vrockai/hawkular-metrics,140293816/Hawkular-fork,vrockai/hawkular-metrics,burmanm/hawkular-metrics,jotak/hawkular-metrics,pilhuhn/rhq-metrics,burmanm/hawkular-metrics,ppalaga/hawkular-metrics,ppalaga/hawkular-metrics,tsegismont/hawkular-metrics,jshaughn/hawkular-metrics,jshaughn/hawkular-metrics,ppalaga/hawkular-metrics,burmanm/hawkular-metrics,ppalaga/hawkular-metrics,jotak/hawkular-metrics,pilhuhn/rhq-metrics,Jiri-Kremser/hawkular-metrics,jsanda/hawkular-metrics,jsanda/hawkular-metrics,mwringe/hawkular-metrics,mwringe/hawkular-metrics,tsegismont/hawkular-metrics,pilhuhn/rhq-metrics,tsegismont/hawkular-metrics,spadgett/hawkular-metrics,burmanm/hawkular-metrics,spadgett/hawkular-metrics,spadgett/hawkular-metrics | 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) {
this.rel = rel;
this.href = href;
this.title = title;
}
public String getRel() {
return rel;
}
public String getHref() {
return href;
}
public String getTitle() {
return title;
}
}
## Instruction:
Add stuff to make the xml body writer happy.
## Code After:
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 representation of a link.")
@XmlRootElement
public class SimpleLink {
private String rel;
private String href;
private String title;
public SimpleLink() {
}
public SimpleLink(String rel, String href, String title) {
this.rel = rel;
this.href = href;
this.title = title;
}
@ApiProperty("Name of the relation")
public String getRel() {
return rel;
}
@ApiProperty("Href to target entity")
public String getHref() {
return href;
}
@ApiProperty("Name of the target")
public String getTitle() {
return title;
}
public void setRel(String rel) {
this.rel = rel;
}
public void setHref(String href) {
this.href = href;
}
public void setTitle(String title) {
this.title = 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")
+ @ApiClass("A simple representation of a link.")
+ @XmlRootElement
public class SimpleLink {
- private final String rel;
? ------
+ private String rel;
- private final String href;
? ------
+ private String href;
- private final String title;
? ------
+ private String title;
+
+ public SimpleLink() {
+ }
public SimpleLink(String rel, String href, String title) {
this.rel = rel;
this.href = href;
this.title = title;
}
+ @ApiProperty("Name of the relation")
public String getRel() {
return rel;
}
+ @ApiProperty("Href to target entity")
public String getHref() {
return href;
}
+ @ApiProperty("Name of the target")
public String getTitle() {
return title;
}
+
+ public void setRel(String rel) {
+ this.rel = rel;
+ }
+
+ public void setHref(String href) {
+ this.href = href;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
} | 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: grey;
}
.item img {
position: absolute;
height: 100%;
width: 100%;
bottom: 0;
top: 0;
}
.gallery .item .info {
display: none;
}
.item .chip-box {
position: absolute;
width: 100%;
bottom: 0;
line-height: 25px;
padding: 0 5px;
box-sizing: border-box;
}
.item .chip-box a {
color: white;
text-decoration: none;
text-shadow: 1px 0px 0px black,
-1px 0px 0px black,
0px 1px 0px black,
0px -1px 0px black;
}
@media (min-width: 3000px){
.instagram-grid{
margin: 0 auto;
}
}
| 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;
background-color: grey;
}
.item img {
position: absolute;
height: 100%;
width: 100%;
bottom: 0;
top: 0;
}
.gallery .item .info {
display: none;
}
.item .chip-box {
position: absolute;
width: 100%;
bottom: 0;
line-height: 25px;
padding: 0 5px;
box-sizing: border-box;
}
.item .chip-box a {
color: white;
text-decoration: none;
text-shadow: 1px 0px 0px black,
-1px 0px 0px black,
0px 1px 0px black,
0px -1px 0px black;
}
@media (min-width: 3000px){
.instagram-grid{
margin: 0 auto;
}
}
| 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;
background-color: grey;
}
.item img {
position: absolute;
height: 100%;
width: 100%;
bottom: 0;
top: 0;
}
.gallery .item .info {
display: none;
}
.item .chip-box {
position: absolute;
width: 100%;
bottom: 0;
line-height: 25px;
padding: 0 5px;
box-sizing: border-box;
}
.item .chip-box a {
color: white;
text-decoration: none;
text-shadow: 1px 0px 0px black,
-1px 0px 0px black,
0px 1px 0px black,
0px -1px 0px black;
}
@media (min-width: 3000px){
.instagram-grid{
margin: 0 auto;
}
}
## Instruction:
Improve responsive and Change alert messages
## Code After:
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;
background-color: grey;
}
.item img {
position: absolute;
height: 100%;
width: 100%;
bottom: 0;
top: 0;
}
.gallery .item .info {
display: none;
}
.item .chip-box {
position: absolute;
width: 100%;
bottom: 0;
line-height: 25px;
padding: 0 5px;
box-sizing: border-box;
}
.item .chip-box a {
color: white;
text-decoration: none;
text-shadow: 1px 0px 0px black,
-1px 0px 0px black,
0px 1px 0px black,
0px -1px 0px black;
}
@media (min-width: 3000px){
.instagram-grid{
margin: 0 auto;
}
}
| 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;
background-color: grey;
}
.item img {
position: absolute;
height: 100%;
width: 100%;
bottom: 0;
top: 0;
}
.gallery .item .info {
display: none;
}
.item .chip-box {
position: absolute;
width: 100%;
bottom: 0;
line-height: 25px;
padding: 0 5px;
box-sizing: border-box;
}
.item .chip-box a {
color: white;
text-decoration: none;
text-shadow: 1px 0px 0px black,
-1px 0px 0px black,
0px 1px 0px black,
0px -1px 0px black;
}
@media (min-width: 3000px){
.instagram-grid{
margin: 0 auto;
}
}
| 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'], stdin=subprocess.PIPE)
proc.communicate(passwd)
sys.exit(proc.returncode)
if __name__ == "__main__":
main()
| 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."""
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'], stdin=subprocess.PIPE)
proc.communicate(passwd)
sys.exit(proc.returncode)
if __name__ == "__main__":
main()
| + """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', 'P4PASSWD'])
+ passwd = result.strip().split('=')[1]
+ proc = subprocess.Popen(['p4', 'login'], stdin=subprocess.PIPE)
+ proc.communicate(passwd)
+ sys.exit(proc.returncode)
if __name__ == "__main__":
main() | 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 -qq cmake libedit-dev libmagickwand-dev libpng-dev libqt5opengl5-dev libsdl2-dev libzip-dev qtbase5-dev qtmultimedia5-dev
script: mkdir build && cd build && cmake .. && make
| 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-dev libzip-dev
script: mkdir build && cd build && cmake .. && make
| 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,Iniquitatis/mgba,MerryMage/mgba,jeremyherbert/mgba,sergiobenrocha2/mgba,askotx/mgba,askotx/mgba,Anty-Lemon/mgba,bentley/mgba,Anty-Lemon/mgba,mgba-emu/mgba,bentley/mgba,jeremyherbert/mgba,zerofalcon/mgba,MerryMage/mgba,MerryMage/mgba,Iniquitatis/mgba,jeremyherbert/mgba,AdmiralCurtiss/mgba,AdmiralCurtiss/mgba,Anty-Lemon/mgba,libretro/mgba,zerofalcon/mgba,Touched/mgba,fr500/mgba,iracigt/mgba,iracigt/mgba,zerofalcon/mgba,askotx/mgba,iracigt/mgba,fr500/mgba,Iniquitatis/mgba,sergiobenrocha2/mgba,mgba-emu/mgba,jeremyherbert/mgba,Touched/mgba,matthewbauer/mgba,fr500/mgba,libretro/mgba,askotx/mgba | 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-get install -y -qq cmake libedit-dev libmagickwand-dev libpng-dev libqt5opengl5-dev libsdl2-dev libzip-dev qtbase5-dev qtmultimedia5-dev
script: mkdir build && cd build && cmake .. && make
## Instruction:
All: Disable Qt in Travis build until 14.04 is available
## Code After:
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-dev libzip-dev
script: mkdir build && cd build && cmake .. && make
| - 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 apt-get purge cmake -qq
- - sudo apt-get install -y -qq cmake libedit-dev libmagickwand-dev libpng-dev libqt5opengl5-dev libsdl2-dev libzip-dev qtbase5-dev qtmultimedia5-dev
? ------------------ ------------------------------
+ - sudo apt-get install -y -qq cmake libedit-dev libmagickwand-dev libpng-dev libsdl2-dev libzip-dev
script: mkdir build && cd build && cmake .. && make | 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 of once every 3 minutes, and only when requested, and only one at a time.
To use it /disk-usage.
| 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 of once every 3 minutes, and only when requested, and only one at a time.
To use it /disk-usage.
# Resources
* Continuous Integration: [](https://jenkins.ci.cloudbees.com/job/plugins/cloudbees-disk-usage-simple-plugin)
* Issues Tracking: [Jira](https://issues.jenkins-ci.org/browse/JENKINS/component/20652)
| 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 runs a maximum of once every 3 minutes, and only when requested, and only one at a time.
To use it /disk-usage.
## Instruction:
Add links to CI and Jira
@recena Can you review please ?
## Code After:
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 of once every 3 minutes, and only when requested, and only one at a time.
To use it /disk-usage.
# Resources
* Continuous Integration: [](https://jenkins.ci.cloudbees.com/job/plugins/cloudbees-disk-usage-simple-plugin)
* Issues Tracking: [Jira](https://issues.jenkins-ci.org/browse/JENKINS/component/20652)
| 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 of once every 3 minutes, and only when requested, and only one at a time.
To use it /disk-usage.
+ # Resources
+ * Continuous Integration: [](https://jenkins.ci.cloudbees.com/job/plugins/cloudbees-disk-usage-simple-plugin)
+ * Issues Tracking: [Jira](https://issues.jenkins-ci.org/browse/JENKINS/component/20652) | 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, it causes response to be downloaded as file.
## Code After:
<?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);
| <?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 %>
<%= hidden_field_tag "best_answer_id", "#{answer.id}" %>
<div class="submit-btn"><%= submit_tag "Mark this as the best answer" %></div>
<% end %>
</div> | + <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>
? ++++++++++++++++++++++++ ++++++
<% end %>
+ </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/* . && rm -Rf node_modules/ && mv jquery-ui-dist jquery-ui"
}
}
| {
"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"
},
"scripts": {
"build": "yarn install && cp -r node_modules/* . && rm -Rf node_modules/ && mv jquery-ui-dist jquery-ui"
}
}
| 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 node_modules/* . && rm -Rf node_modules/ && mv jquery-ui-dist jquery-ui"
}
}
## Instruction:
Include functionality for a sliding tab
Toward #168.
## Code After:
{
"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"
},
"scripts": {
"build": "yarn install && cp -r node_modules/* . && rm -Rf node_modules/ && mv jquery-ui-dist jquery-ui"
}
}
| {
"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",
? +
+ "jquery.tabSlideOut.js": "microneer/jquery.tabSlideOut.js"
},
"scripts": {
"build": "yarn install && cp -r node_modules/* . && rm -Rf node_modules/ && mv jquery-ui-dist jquery-ui"
}
} | 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.text_field :sun_requirements %>
<%= f.label :sowing_method, 'Sowing Method' %>
<%= f.text_field :sowing_method %>
<%= f.label :spread, 'Spread' %>
<%= f.text_field :spread %>
<%= f.label :days_to_maturity, 'Days to Maturity' %>
<%= f.text_field :days_to_maturity %>
<%= f.label :row_spacing, 'Row Spacing' %>
<%= f.text_field :row_spacing %>
<%= f.label :height, 'Height' %>
<%= f.text_field :height %>
<%= f.submit %>
<% end %> | <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' %>
<%= f.text_field :binomial_name %>
<%= f.label :description, 'Description' %>
<%= f.text_area :description %>
<%= f.label :sun_requirements, 'Sun Requirements' %>
<%= f.text_field :sun_requirements %>
<%= f.label :sowing_method, 'Sowing Method' %>
<%= f.text_field :sowing_method %>
<%= f.label :spread, 'Spread' %>
<%= f.text_field :spread %>
<%= f.label :days_to_maturity, 'Days to Maturity' %>
<%= f.text_field :days_to_maturity %>
<%= f.label :row_spacing, 'Row Spacing' %>
<%= f.text_field :row_spacing %>
<%= f.label :height, 'Height' %>
<%= f.text_field :height %>
<%= f.submit 'Save Crop!', :class => 'button', :disable_with => 'Saving...' %>
<% end %>
</div>
</div>
</div>
| 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/OpenFarm,simonv3/OpenFarm,RickCarlino/OpenFarm,CloCkWeRX/OpenFarm,roryaronson/OpenFarm,RickCarlino/OpenFarm,tomazin/OpenFarm,CloCkWeRX/OpenFarm,tomazin/OpenFarm | 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 Requirements' %>
<%= f.text_field :sun_requirements %>
<%= f.label :sowing_method, 'Sowing Method' %>
<%= f.text_field :sowing_method %>
<%= f.label :spread, 'Spread' %>
<%= f.text_field :spread %>
<%= f.label :days_to_maturity, 'Days to Maturity' %>
<%= f.text_field :days_to_maturity %>
<%= f.label :row_spacing, 'Row Spacing' %>
<%= f.text_field :row_spacing %>
<%= f.label :height, 'Height' %>
<%= f.text_field :height %>
<%= f.submit %>
<% end %>
## Instruction:
[style][view] Create styled view for Crop create page
## Code After:
<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' %>
<%= f.text_field :binomial_name %>
<%= f.label :description, 'Description' %>
<%= f.text_area :description %>
<%= f.label :sun_requirements, 'Sun Requirements' %>
<%= f.text_field :sun_requirements %>
<%= f.label :sowing_method, 'Sowing Method' %>
<%= f.text_field :sowing_method %>
<%= f.label :spread, 'Spread' %>
<%= f.text_field :spread %>
<%= f.label :days_to_maturity, 'Days to Maturity' %>
<%= f.text_field :days_to_maturity %>
<%= f.label :row_spacing, 'Row Spacing' %>
<%= f.text_field :row_spacing %>
<%= f.label :height, 'Height' %>
<%= f.text_field :height %>
<%= f.submit 'Save Crop!', :class => 'button', :disable_with => 'Saving...' %>
<% end %>
</div>
</div>
</div>
| + <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' %>
? ^^^^^^
- <%= f.text_field :name %>
? ^
+ <%= f.text_field :name %>
? ^^^^^^
-
+
- <%= f.label :binomial_name, 'Binomial Name' %>
? ^
+ <%= f.label :binomial_name, 'Binomial Name' %>
? ^^^^^^
- <%= f.text_field :binomial_name %>
? ^
+ <%= f.text_field :binomial_name %>
? ^^^^^^
-
+
- <%= f.label :description, 'Description' %>
? ^
+ <%= f.label :description, 'Description' %>
? ^^^^^^
- <%= f.text_area :description %>
? ^
+ <%= f.text_area :description %>
? ^^^^^^
-
+
- <%= f.label :sun_requirements, 'Sun Requirements' %>
? ^
+ <%= f.label :sun_requirements, 'Sun Requirements' %>
? ^^^^^^
- <%= f.text_field :sun_requirements %>
? ^
+ <%= f.text_field :sun_requirements %>
? ^^^^^^
-
+
- <%= f.label :sowing_method, 'Sowing Method' %>
? ^
+ <%= f.label :sowing_method, 'Sowing Method' %>
? ^^^^^^
- <%= f.text_field :sowing_method %>
? ^
+ <%= f.text_field :sowing_method %>
? ^^^^^^
-
+
- <%= f.label :spread, 'Spread' %>
? ^
+ <%= f.label :spread, 'Spread' %>
? ^^^^^^
- <%= f.text_field :spread %>
? ^
+ <%= f.text_field :spread %>
? ^^^^^^
-
+
- <%= f.label :days_to_maturity, 'Days to Maturity' %>
? ^
+ <%= f.label :days_to_maturity, 'Days to Maturity' %>
? ^^^^^^
- <%= f.text_field :days_to_maturity %>
? ^
+ <%= f.text_field :days_to_maturity %>
? ^^^^^^
-
+
- <%= f.label :row_spacing, 'Row Spacing' %>
? ^
+ <%= f.label :row_spacing, 'Row Spacing' %>
? ^^^^^^
- <%= f.text_field :row_spacing %>
? ^
+ <%= f.text_field :row_spacing %>
? ^^^^^^
-
+
- <%= f.label :height, 'Height' %>
? ^
+ <%= f.label :height, 'Height' %>
? ^^^^^^
- <%= f.text_field :height %>
? ^
+ <%= f.text_field :height %>
? ^^^^^^
-
- <%= f.submit %>
+
+ <%= f.submit 'Save Crop!', :class => 'button', :disable_with => 'Saving...' %>
- <% end %>
+ <% end %>
? ++++
+ </div>
+ </div>
+ </div> | 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 settings.PAYMENTS_PLANS:
if settings.PAYMENTS_PLANS[plan].get("stripe_plan_id"):
price = settings.PAYMENTS_PLANS[plan]["price"]
if isinstance(price, decimal.Decimal):
amount = int(100 * price)
else:
amount = int(100 * decimal.Decimal(str(price)))
stripe.Plan.create(
amount=amount,
interval=settings.PAYMENTS_PLANS[plan]["interval"],
name=settings.PAYMENTS_PLANS[plan]["name"],
currency=settings.PAYMENTS_PLANS[plan]["currency"],
id=settings.PAYMENTS_PLANS[plan].get("stripe_plan_id")
)
print "Plan created for {0}".format(plan)
| 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 settings.PAYMENTS_PLANS:
if settings.PAYMENTS_PLANS[plan].get("stripe_plan_id"):
price = settings.PAYMENTS_PLANS[plan]["price"]
if isinstance(price, decimal.Decimal):
amount = int(100 * price)
else:
amount = int(100 * decimal.Decimal(str(price)))
stripe.Plan.create(
amount=amount,
interval=settings.PAYMENTS_PLANS[plan]["interval"],
name=settings.PAYMENTS_PLANS[plan]["name"],
currency=settings.PAYMENTS_PLANS[plan]["currency"],
trial_period_days=settings.PAYMENTS_PLANS[plan].get("trial_period_days"),
id=settings.PAYMENTS_PLANS[plan].get("stripe_plan_id")
)
print "Plan created for {0}".format(plan)
| 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/django-stripe-payments,ZeevG/django-stripe-payments,crehana/django-stripe-payments,adi-li/django-stripe-payments,crehana/django-stripe-payments,wahuneke/django-stripe-payments,alexhayes/django-stripe-payments,wahuneke/django-stripe-payments,alexhayes/django-stripe-payments,adi-li/django-stripe-payments,aibon/django-stripe-payments,jamespacileo/django-stripe-payments | 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
for plan in settings.PAYMENTS_PLANS:
if settings.PAYMENTS_PLANS[plan].get("stripe_plan_id"):
price = settings.PAYMENTS_PLANS[plan]["price"]
if isinstance(price, decimal.Decimal):
amount = int(100 * price)
else:
amount = int(100 * decimal.Decimal(str(price)))
stripe.Plan.create(
amount=amount,
interval=settings.PAYMENTS_PLANS[plan]["interval"],
name=settings.PAYMENTS_PLANS[plan]["name"],
currency=settings.PAYMENTS_PLANS[plan]["currency"],
id=settings.PAYMENTS_PLANS[plan].get("stripe_plan_id")
)
print "Plan created for {0}".format(plan)
## Instruction:
Add trial period days option to initial plans.
## Code After:
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 settings.PAYMENTS_PLANS:
if settings.PAYMENTS_PLANS[plan].get("stripe_plan_id"):
price = settings.PAYMENTS_PLANS[plan]["price"]
if isinstance(price, decimal.Decimal):
amount = int(100 * price)
else:
amount = int(100 * decimal.Decimal(str(price)))
stripe.Plan.create(
amount=amount,
interval=settings.PAYMENTS_PLANS[plan]["interval"],
name=settings.PAYMENTS_PLANS[plan]["name"],
currency=settings.PAYMENTS_PLANS[plan]["currency"],
trial_period_days=settings.PAYMENTS_PLANS[plan].get("trial_period_days"),
id=settings.PAYMENTS_PLANS[plan].get("stripe_plan_id")
)
print "Plan created for {0}".format(plan)
| 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 settings.PAYMENTS_PLANS:
if settings.PAYMENTS_PLANS[plan].get("stripe_plan_id"):
price = settings.PAYMENTS_PLANS[plan]["price"]
if isinstance(price, decimal.Decimal):
amount = int(100 * price)
else:
amount = int(100 * decimal.Decimal(str(price)))
stripe.Plan.create(
amount=amount,
interval=settings.PAYMENTS_PLANS[plan]["interval"],
name=settings.PAYMENTS_PLANS[plan]["name"],
currency=settings.PAYMENTS_PLANS[plan]["currency"],
+ trial_period_days=settings.PAYMENTS_PLANS[plan].get("trial_period_days"),
id=settings.PAYMENTS_PLANS[plan].get("stripe_plan_id")
)
print "Plan created for {0}".format(plan) | 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::try_again(result.timeout)
else
render json: Response::success(result)
end
end
def report_result
begin
@proxy = Proxy.find(params[:proxy_id])
if params[:succeeded]
@site.proxy_succeeded! @proxy
else
@site.proxy_failed! @proxy
end
rescue ActiveRecord::RecordNotFound => e
# Swallow not-found-type errors
end
render json: Response::success
end
private
def set_site
@site = Site.find_or_create_by(name: params[:site_name])
end
end
end | 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::NoColdProxy
render json: Responses::try_again(result.timeout)
else
render json: Responses::success(result)
end
end
def report_result
begin
@proxy = Proxy.find(params[:proxy_id])
if params[:succeeded]
@site.proxy_succeeded! @proxy
else
@site.proxy_failed! @proxy
end
rescue ActiveRecord::RecordNotFound => e
# Swallow not-found-type errors
end
render json: Responses::success
end
private
def set_site
@site = Site.find_or_create_by(name: params[:site_name])
end
end
end | 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 json: Response::try_again(result.timeout)
else
render json: Response::success(result)
end
end
def report_result
begin
@proxy = Proxy.find(params[:proxy_id])
if params[:succeeded]
@site.proxy_succeeded! @proxy
else
@site.proxy_failed! @proxy
end
rescue ActiveRecord::RecordNotFound => e
# Swallow not-found-type errors
end
render json: Response::success
end
private
def set_site
@site = Site.find_or_create_by(name: params[:site_name])
end
end
end
## Instruction:
Fix NameError and parameter handling
## Code After:
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::NoColdProxy
render json: Responses::try_again(result.timeout)
else
render json: Responses::success(result)
end
end
def report_result
begin
@proxy = Proxy.find(params[:proxy_id])
if params[:succeeded]
@site.proxy_succeeded! @proxy
else
@site.proxy_failed! @proxy
end
rescue ActiveRecord::RecordNotFound => e
# Swallow not-found-type errors
end
render json: Responses::success
end
private
def set_site
@site = Site.find_or_create_by(name: params[:site_name])
end
end
end | 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.select_proxy(older_than)
if result == Proxy::NoProxy
- render json: Response::try_again
+ render json: Responses::try_again
? +
elsif result.is_a? Proxy::NoColdProxy
- render json: Response::try_again(result.timeout)
+ render json: Responses::try_again(result.timeout)
? +
else
- render json: Response::success(result)
+ render json: Responses::success(result)
? +
end
end
def report_result
begin
@proxy = Proxy.find(params[:proxy_id])
if params[:succeeded]
@site.proxy_succeeded! @proxy
else
@site.proxy_failed! @proxy
end
rescue ActiveRecord::RecordNotFound => e
# Swallow not-found-type errors
end
- render json: Response::success
+ render json: Responses::success
? +
end
private
def set_site
@site = Site.find_or_create_by(name: params[:site_name])
end
end
end | 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: (controller, model)->
@render 'index',
outlet: 'map' | 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 loading of categories in map route.
## Code After:
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: (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
- @controllerFor('toolbar').set('content', @store.findAll('category'))
? ^^ -------------- ^ ^^ ^^
+ toolbarController.set('model', @store.findAll('category'))
? ^^^^^^^^^^ ^ ^ ^
renderTemplate: (controller, model)->
@render 'index',
outlet: 'map' | 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',
metavar='PATH',
nargs='+',
help='An RSON-formatted file to convert.',
)
args = parser.parse_args()
for path in args.paths:
# read rson from a file
with open(path, 'rb') as fh:
style_data = fixstyle(rloads(fh.read()))
# output the style as json, then parse that
json_style = json.dumps(style_data)
reparsed_style = json.loads(json_style)
yaml_style = yaml.dump(reparsed_style, default_flow_style=None)
print(yaml_style)
if __name__ == '__main__':
main()
|
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.RawDescriptionHelpFormatter,
)
parser.add_argument(
'--save',
action='store_true',
help='Save .yaml version of the file (rather than output to stdout)',
)
parser.add_argument(
'paths',
metavar='PATH',
nargs='+',
help='An RSON-formatted file to convert.',
)
args = parser.parse_args()
# loop over the files
for path in args.paths:
# read rson from a file
with open(path, 'rb') as fh:
style_data = fixstyle(rloads(fh.read()))
# output the style as json (already supported), then parse that
json_style = json.dumps(style_data)
reparsed_style = json.loads(json_style)
yaml_style = yaml.dump(reparsed_style, default_flow_style=None)
# output the yaml or save to a file
if args.save:
new_path = '.'.join((os.path.splitext(path)[0], 'yaml'))
if os.path.exists(new_path):
print("File " + new_path + " exists, cannot overwrite")
else:
print("Creating file " + new_path)
with open(new_path, 'w') as file:
file.write(yaml_style)
else:
print(yaml_style)
if __name__ == '__main__':
main()
| 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(
'paths',
metavar='PATH',
nargs='+',
help='An RSON-formatted file to convert.',
)
args = parser.parse_args()
for path in args.paths:
# read rson from a file
with open(path, 'rb') as fh:
style_data = fixstyle(rloads(fh.read()))
# output the style as json, then parse that
json_style = json.dumps(style_data)
reparsed_style = json.loads(json_style)
yaml_style = yaml.dump(reparsed_style, default_flow_style=None)
print(yaml_style)
if __name__ == '__main__':
main()
## Instruction:
Add save functionality to the conversion script
## Code After:
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.RawDescriptionHelpFormatter,
)
parser.add_argument(
'--save',
action='store_true',
help='Save .yaml version of the file (rather than output to stdout)',
)
parser.add_argument(
'paths',
metavar='PATH',
nargs='+',
help='An RSON-formatted file to convert.',
)
args = parser.parse_args()
# loop over the files
for path in args.paths:
# read rson from a file
with open(path, 'rb') as fh:
style_data = fixstyle(rloads(fh.read()))
# output the style as json (already supported), then parse that
json_style = json.dumps(style_data)
reparsed_style = json.loads(json_style)
yaml_style = yaml.dump(reparsed_style, default_flow_style=None)
# output the yaml or save to a file
if args.save:
new_path = '.'.join((os.path.splitext(path)[0], 'yaml'))
if os.path.exists(new_path):
print("File " + new_path + " exists, cannot overwrite")
else:
print("Creating file " + new_path)
with open(new_path, 'w') as file:
file.write(yaml_style)
else:
print(yaml_style)
if __name__ == '__main__':
main()
|
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.RawDescriptionHelpFormatter,
+ )
+ parser.add_argument(
+ '--save',
+ action='store_true',
+ help='Save .yaml version of the file (rather than output to stdout)',
)
parser.add_argument(
'paths',
metavar='PATH',
nargs='+',
help='An RSON-formatted file to convert.',
)
args = parser.parse_args()
+
+ # loop over the files
for path in args.paths:
# read rson from a file
with open(path, 'rb') as fh:
style_data = fixstyle(rloads(fh.read()))
- # output the style as json, then parse that
+ # output the style as json (already supported), then parse that
? ++++++++++++++++++++
json_style = json.dumps(style_data)
reparsed_style = json.loads(json_style)
yaml_style = yaml.dump(reparsed_style, default_flow_style=None)
+
+ # output the yaml or save to a file
+ if args.save:
+ new_path = '.'.join((os.path.splitext(path)[0], 'yaml'))
+
+ if os.path.exists(new_path):
+ print("File " + new_path + " exists, cannot overwrite")
+ else:
+ print("Creating file " + new_path)
+ with open(new_path, 'w') as file:
+ file.write(yaml_style)
+ else:
- print(yaml_style)
+ print(yaml_style)
? ++++
if __name__ == '__main__':
main() | 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:
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()
]
};
| 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?input=' + encodeURIComponent(input) + '&primary=true&appid=' + this.appKey
request(uri, function(error, response, body) {
if(!error && response.statusCode == 200) {
var doc = xml.parseXml(body), root = doc.root()
if(root.attr('error').value() != 'false') {
var message = root.get('//error/msg').text()
return cb(message, null)
} else {
var pods = root.find('pod').map(function(pod) {
var subpods = pod.find('subpod').map(function(node) {
return {
title: node.attr('title').value(),
value: node.get('plaintext').text(),
image: node.get('img').attr('src').value()
}
})
var primary = (pod.attr('primary') && pod.attr('primary').value()) == 'true'
return { subpods: subpods, primary: primary }
})
return cb(null, pods)
}
}
})
}
exports.createClient = function(appKey) {
return new Client(appKey)
}
| 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?input=' + encodeURIComponent(input) + '&primary=true&appid=' + this.appKey
request(uri, function(error, response, body) {
if(!error && response.statusCode == 200) {
var doc = xml.parseXml(body), root = doc.root()
if(root.attr('error').value() != 'false') {
var message = root.get('//error/msg').text()
return cb(message, null)
} else {
var pods = root.find('pod').map(function(pod) {
var subpods = pod.find('subpod').map(function(node) {
return {
title: node.attr('title').value(),
value: node.get('plaintext').text(),
image: node.get('img').attr('src').value()
}
})
var primary = (pod.attr('primary') && pod.attr('primary').value()) == 'true'
return { subpods: subpods, primary: primary }
})
return cb(null, pods)
}
} else {
return cb(error, null)
}
})
}
exports.createClient = function(appKey) {
return new Client(appKey)
}
| 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.com/v2/query?input=' + encodeURIComponent(input) + '&primary=true&appid=' + this.appKey
request(uri, function(error, response, body) {
if(!error && response.statusCode == 200) {
var doc = xml.parseXml(body), root = doc.root()
if(root.attr('error').value() != 'false') {
var message = root.get('//error/msg').text()
return cb(message, null)
} else {
var pods = root.find('pod').map(function(pod) {
var subpods = pod.find('subpod').map(function(node) {
return {
title: node.attr('title').value(),
value: node.get('plaintext').text(),
image: node.get('img').attr('src').value()
}
})
var primary = (pod.attr('primary') && pod.attr('primary').value()) == 'true'
return { subpods: subpods, primary: primary }
})
return cb(null, pods)
}
}
})
}
exports.createClient = function(appKey) {
return new Client(appKey)
}
## Instruction:
Handle network errors instead of failing silently
## Code After:
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?input=' + encodeURIComponent(input) + '&primary=true&appid=' + this.appKey
request(uri, function(error, response, body) {
if(!error && response.statusCode == 200) {
var doc = xml.parseXml(body), root = doc.root()
if(root.attr('error').value() != 'false') {
var message = root.get('//error/msg').text()
return cb(message, null)
} else {
var pods = root.find('pod').map(function(pod) {
var subpods = pod.find('subpod').map(function(node) {
return {
title: node.attr('title').value(),
value: node.get('plaintext').text(),
image: node.get('img').attr('src').value()
}
})
var primary = (pod.attr('primary') && pod.attr('primary').value()) == 'true'
return { subpods: subpods, primary: primary }
})
return cb(null, pods)
}
} else {
return cb(error, null)
}
})
}
exports.createClient = function(appKey) {
return new Client(appKey)
}
| 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?input=' + encodeURIComponent(input) + '&primary=true&appid=' + this.appKey
request(uri, function(error, response, body) {
if(!error && response.statusCode == 200) {
var doc = xml.parseXml(body), root = doc.root()
if(root.attr('error').value() != 'false') {
var message = root.get('//error/msg').text()
return cb(message, null)
} else {
var pods = root.find('pod').map(function(pod) {
var subpods = pod.find('subpod').map(function(node) {
return {
title: node.attr('title').value(),
value: node.get('plaintext').text(),
image: node.get('img').attr('src').value()
}
})
var primary = (pod.attr('primary') && pod.attr('primary').value()) == 'true'
return { subpods: subpods, primary: primary }
})
return cb(null, pods)
}
+ } else {
+ return cb(error, null)
}
})
}
exports.createClient = function(appKey) {
return new Client(appKey)
} | 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(content: new Text('Go'), level: 1);
}
}
| // 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 '../../framework/components/popup_menu_item.dart';
class WidgetsApp extends App {
static final Style _menuStyle = new Style('''
position: absolute;
top: 200px;
left: 200px;''');
Node build() {
return new Container(
children: [
new Button(key: 'Go', content: new Text('Go'), level: 1),
new Button(key: 'Back', content: new Text('Back'), level: 3),
new Container(
style: _menuStyle,
children: [
new PopupMenu(
children: [
new PopupMenuItem(key: '1', children: [new Text('People & options')]),
new PopupMenuItem(key: '2', children: [new Text('New group conversation')]),
new PopupMenuItem(key: '3', children: [new Text('Turn history off')]),
new PopupMenuItem(key: '4', children: [new Text('Archive')]),
new PopupMenuItem(key: '5', children: [new Text('Delete')]),
new PopupMenuItem(key: '6', children: [new Text('Un-merge SMS')]),
new PopupMenuItem(key: '7', children: [new Text('Help & feeback')]),
],
level: 4),
]
)
]
);
}
}
| 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/flutter,flutter/flutter,aghassemi/flutter,flutter/flutter,tvolkert/flutter,Hixie/flutter,turnidge/flutter,aghassemi/flutter,tvolkert/flutter,cbracken/flutter,Hixie/flutter,Hixie/flutter,tvolkert/flutter,tvolkert/flutter,tvolkert/flutter,flutter/flutter,jason-simmons/flutter,Hixie/flutter,aghassemi/flutter,Hixie/flutter,Hixie/flutter,cbracken/flutter,flutter/flutter,tvolkert/flutter,turnidge/flutter,flutter/flutter,cbracken/flutter,flutter/flutter,turnidge/flutter,Hixie/flutter,Hixie/flutter,jason-simmons/flutter,turnidge/flutter,tvolkert/flutter,flutter/flutter | 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() {
return new Button(content: new Text('Go'), level: 1);
}
}
## Instruction:
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
## Code After:
// 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 '../../framework/components/popup_menu_item.dart';
class WidgetsApp extends App {
static final Style _menuStyle = new Style('''
position: absolute;
top: 200px;
left: 200px;''');
Node build() {
return new Container(
children: [
new Button(key: 'Go', content: new Text('Go'), level: 1),
new Button(key: 'Back', content: new Text('Back'), level: 3),
new Container(
style: _menuStyle,
children: [
new PopupMenu(
children: [
new PopupMenuItem(key: '1', children: [new Text('People & options')]),
new PopupMenuItem(key: '2', children: [new Text('New group conversation')]),
new PopupMenuItem(key: '3', children: [new Text('Turn history off')]),
new PopupMenuItem(key: '4', children: [new Text('Archive')]),
new PopupMenuItem(key: '5', children: [new Text('Delete')]),
new PopupMenuItem(key: '6', children: [new Text('Un-merge SMS')]),
new PopupMenuItem(key: '7', children: [new Text('Help & feeback')]),
],
level: 4),
]
)
]
);
}
}
| // 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 '../../framework/components/popup_menu_item.dart';
class WidgetsApp extends App {
+ static final Style _menuStyle = new Style('''
+ position: absolute;
+ top: 200px;
+ left: 200px;''');
+
Node build() {
+ return new Container(
+ children: [
- return new Button(content: new Text('Go'), level: 1);
? ^^^^^^ ^
+ new Button(key: 'Go', content: new Text('Go'), level: 1),
? ^^^ +++++++++++ ^
+ new Button(key: 'Back', content: new Text('Back'), level: 3),
+ new Container(
+ style: _menuStyle,
+ children: [
+ new PopupMenu(
+ children: [
+ new PopupMenuItem(key: '1', children: [new Text('People & options')]),
+ new PopupMenuItem(key: '2', children: [new Text('New group conversation')]),
+ new PopupMenuItem(key: '3', children: [new Text('Turn history off')]),
+ new PopupMenuItem(key: '4', children: [new Text('Archive')]),
+ new PopupMenuItem(key: '5', children: [new Text('Delete')]),
+ new PopupMenuItem(key: '6', children: [new Text('Un-merge SMS')]),
+ new PopupMenuItem(key: '7', children: [new Text('Help & feeback')]),
+ ],
+ level: 4),
+ ]
+ )
+ ]
+ );
}
} | 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=__doc__)
parser.add_argument('uuid', type=str,
help='Unique identifier for simulation')
parser.add_argument('--extra-args', default='',
help='Extra arguments for wmt-slave command')
parser.add_argument('--launcher', choices=_LAUNCHERS.keys(),
default='bash', help='Launch method')
parser.add_argument('--run', action='store_true',
help='Launch simulation')
args = parser.parse_args()
launcher = _LAUNCHERS[args.launcher](args.uuid)
if args.run:
launcher.run()
else:
print(launcher.script())
| """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=__doc__)
parser.add_argument('uuid', type=str,
help='Unique identifier for simulation')
parser.add_argument('--extra-args', default='',
help='Extra arguments for wmt-slave command')
parser.add_argument('--server-url', default='',
help='WMT API server URL')
parser.add_argument('--launcher', choices=_LAUNCHERS.keys(),
default='bash', help='Launch method')
parser.add_argument('--run', action='store_true',
help='Launch simulation')
args = parser.parse_args()
launcher = _LAUNCHERS[args.launcher](args.uuid,
server_url=args.server_url)
if args.run:
launcher.run()
else:
print(launcher.script())
| 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.ArgumentParser(description=__doc__)
parser.add_argument('uuid', type=str,
help='Unique identifier for simulation')
parser.add_argument('--extra-args', default='',
help='Extra arguments for wmt-slave command')
parser.add_argument('--launcher', choices=_LAUNCHERS.keys(),
default='bash', help='Launch method')
parser.add_argument('--run', action='store_true',
help='Launch simulation')
args = parser.parse_args()
launcher = _LAUNCHERS[args.launcher](args.uuid)
if args.run:
launcher.run()
else:
print(launcher.script())
## Instruction:
Add 'server-url' command line argument
Its value is passed to the server_url parameter of the Launcher class.
## Code After:
"""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=__doc__)
parser.add_argument('uuid', type=str,
help='Unique identifier for simulation')
parser.add_argument('--extra-args', default='',
help='Extra arguments for wmt-slave command')
parser.add_argument('--server-url', default='',
help='WMT API server URL')
parser.add_argument('--launcher', choices=_LAUNCHERS.keys(),
default='bash', help='Launch method')
parser.add_argument('--run', action='store_true',
help='Launch simulation')
args = parser.parse_args()
launcher = _LAUNCHERS[args.launcher](args.uuid,
server_url=args.server_url)
if args.run:
launcher.run()
else:
print(launcher.script())
| """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=__doc__)
parser.add_argument('uuid', type=str,
help='Unique identifier for simulation')
parser.add_argument('--extra-args', default='',
help='Extra arguments for wmt-slave command')
+ parser.add_argument('--server-url', default='',
+ help='WMT API server URL')
parser.add_argument('--launcher', choices=_LAUNCHERS.keys(),
default='bash', help='Launch method')
parser.add_argument('--run', action='store_true',
help='Launch simulation')
args = parser.parse_args()
- launcher = _LAUNCHERS[args.launcher](args.uuid)
? ^
+ launcher = _LAUNCHERS[args.launcher](args.uuid,
? ^
+ server_url=args.server_url)
if args.run:
launcher.run()
else:
print(launcher.script())
| 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 \
--cov-report=xml:python_coverage/coverage.xml \
--cov=.
py.test -r a tests/redirects
|
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 \
--cov-report=term-missing \
--cov-report=xml:python_coverage/coverage.xml \
--cov=.
py.test -r a tests/redirects
| 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/bedrock,pascalchevrel/bedrock,pascalchevrel/bedrock,craigcook/bedrock,mozilla/bedrock,sylvestre/bedrock,mozilla/bedrock | 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 \
--cov-report=html \
--cov-report=xml:python_coverage/coverage.xml \
--cov=.
py.test -r a tests/redirects
## Instruction:
10631: Add term-missing as a coverage.py param
## Code After:
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 \
--cov-report=term-missing \
--cov-report=xml:python_coverage/coverage.xml \
--cov=.
py.test -r a tests/redirects
|
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 \
+ --cov-report=term-missing \
--cov-report=xml:python_coverage/coverage.xml \
--cov=.
py.test -r a tests/redirects | 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):
return len(
re.findall("[^\"](def +[a-zA-Z0-9_]+ *\([a-zA-Z0-9_, ]*\) *:)+[^\"]", content))
| 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] != "\""]
return len(matches)
def get_function_count(self, content):
matches = re.findall("\"*def +[a-zA-Z0-9_]+ *\([a-zA-Z0-9_, ]*\) *:\"*", content)
matches = [m for m in matches if m.strip()[0] != "\"" and m.strip()[-1] != "\""]
return len(matches)
| 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, content):
return len(
re.findall("[^\"](def +[a-zA-Z0-9_]+ *\([a-zA-Z0-9_, ]*\) *:)+[^\"]", content))
## Instruction:
Fix counter to ignore quoted lines
## Code After:
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] != "\""]
return len(matches)
def get_function_count(self, content):
matches = re.findall("\"*def +[a-zA-Z0-9_]+ *\([a-zA-Z0-9_, ]*\) *:\"*", content)
matches = [m for m in matches if m.strip()[0] != "\"" and m.strip()[-1] != "\""]
return len(matches)
| 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_, ]*\)? *:)+[^\"]",
? ^^ -- ^^ ---- ^
+ matches = re.findall("\"*class +[a-zA-Z0-9_]+ *\(?[a-zA-Z0-9_, ]*\)? *:\"*", content)
? +++++++ ^ ^ ^ +++++++++
- content))
+ matches = [m for m in matches if m.strip()[0] != "\"" and m.strip()[-1] != "\""]
+ return len(matches)
def get_function_count(self, content):
- return len(
- re.findall("[^\"](def +[a-zA-Z0-9_]+ *\([a-zA-Z0-9_, ]*\) *:)+[^\"]", content))
? ^^ -- ^^ ---- ^ -
+ matches = re.findall("\"*def +[a-zA-Z0-9_]+ *\([a-zA-Z0-9_, ]*\) *:\"*", content)
? +++++++ ^ ^ ^
+ matches = [m for m in matches if m.strip()[0] != "\"" and m.strip()[-1] != "\""]
+ return len(matches) | 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 `heights`
## Code After:
// 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;
}
| // 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-get($heights, $scale);
}
// Literal percentage values
@mixin height($height: 0) {
height: $height;
} | 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 fetch origin pull/$CIRCLE_PR_NUMBER/head
fi
git reset --hard $CIRCLE_SHA1
git config --global user.name LinuxbrewTestBot
git config --global user.email testbot@linuxbrew.sh
- run: |
umask 022
PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$PATH"
mkdir /home/linuxbrew/test-bot
cd /home/linuxbrew/test-bot
brew test-bot
- run: ls /home/linuxbrew/test-bot
- store_artifacts:
path: /home/linuxbrew/test-bot
- store_test_results:
path: /home/linuxbrew/test-bot
| 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: |
cd /home/linuxbrew/.linuxbrew/Homebrew
git pull --ff-only
if [ -n "$CIRCLE_PR_NUMBER" ]; then
git fetch origin pull/$CIRCLE_PR_NUMBER/head
fi
git reset --hard $CIRCLE_SHA1
git config --global user.name LinuxbrewTestBot
git config --global user.email testbot@linuxbrew.sh
- run: |
umask 022
PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$PATH"
mkdir /home/linuxbrew/test-bot
cd /home/linuxbrew/test-bot
brew test-bot
- run: ls /home/linuxbrew/test-bot
- store_artifacts:
path: /home/linuxbrew/test-bot
- store_test_results:
path: /home/linuxbrew/test-bot
| 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
git fetch origin pull/$CIRCLE_PR_NUMBER/head
fi
git reset --hard $CIRCLE_SHA1
git config --global user.name LinuxbrewTestBot
git config --global user.email testbot@linuxbrew.sh
- run: |
umask 022
PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$PATH"
mkdir /home/linuxbrew/test-bot
cd /home/linuxbrew/test-bot
brew test-bot
- run: ls /home/linuxbrew/test-bot
- store_artifacts:
path: /home/linuxbrew/test-bot
- store_test_results:
path: /home/linuxbrew/test-bot
## Instruction:
Use system unzip and subversion for the tests
## Code After:
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: |
cd /home/linuxbrew/.linuxbrew/Homebrew
git pull --ff-only
if [ -n "$CIRCLE_PR_NUMBER" ]; then
git fetch origin pull/$CIRCLE_PR_NUMBER/head
fi
git reset --hard $CIRCLE_SHA1
git config --global user.name LinuxbrewTestBot
git config --global user.email testbot@linuxbrew.sh
- run: |
umask 022
PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$PATH"
mkdir /home/linuxbrew/test-bot
cd /home/linuxbrew/test-bot
brew test-bot
- run: ls /home/linuxbrew/test-bot
- store_artifacts:
path: /home/linuxbrew/test-bot
- store_test_results:
path: /home/linuxbrew/test-bot
| 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: |
cd /home/linuxbrew/.linuxbrew/Homebrew
git pull --ff-only
if [ -n "$CIRCLE_PR_NUMBER" ]; then
git fetch origin pull/$CIRCLE_PR_NUMBER/head
fi
git reset --hard $CIRCLE_SHA1
git config --global user.name LinuxbrewTestBot
git config --global user.email testbot@linuxbrew.sh
- run: |
umask 022
PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$PATH"
mkdir /home/linuxbrew/test-bot
cd /home/linuxbrew/test-bot
brew test-bot
- run: ls /home/linuxbrew/test-bot
- store_artifacts:
path: /home/linuxbrew/test-bot
- store_test_results:
path: /home/linuxbrew/test-bot | 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) {
config.headers.ETag = etag_header;
config.headers["If-None-Match"] = etag_header;
}
if (last_modified_header) {
config.headers["If-Modified-Since"] = last_modified_header;
}
return config;
},
"response": function(response) {
var etag = response.headers("ETag");
var last_modified = response.headers("Last-Modified");
if (etag) {
etag_header = etag;
}
if (last_modified) {
last_modified_header = last_modified;
}
return response;
}
};
}]);
})(angular);
| (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)) {
console.log("cache miss : ", config.url);
return config;
}
console.log("cache hit : ", config.url);
if (headers.etag_header) {
config.headers.ETag = headers.etag_header;
config.headers["If-None-Match"] = headers.etag_header;
}
if (headers.last_modified_header) {
config.headers["If-Modified-Since"] = headers.last_modified_header;
}
return config;
};
var response_fxn = function(response) {
var etag = response.headers("ETag");
var last_modified = response.headers("Last-Modified");
var headers = {};
if (etag) {
headers.etag_header = etag;
}
if (last_modified) {
headers.last_modified_header = last_modified;
}
cache_headers[response.config.url] = headers;
return response;
};
return {
"request" : request_fxn,
"response": response_fxn
};
}]);
})(angular);
| 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 (etag_header) {
config.headers.ETag = etag_header;
config.headers["If-None-Match"] = etag_header;
}
if (last_modified_header) {
config.headers["If-Modified-Since"] = last_modified_header;
}
return config;
},
"response": function(response) {
var etag = response.headers("ETag");
var last_modified = response.headers("Last-Modified");
if (etag) {
etag_header = etag;
}
if (last_modified) {
last_modified_header = last_modified;
}
return response;
}
};
}]);
})(angular);
## Instruction:
Make cache headers sentitive to urls
## Code After:
(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)) {
console.log("cache miss : ", config.url);
return config;
}
console.log("cache hit : ", config.url);
if (headers.etag_header) {
config.headers.ETag = headers.etag_header;
config.headers["If-None-Match"] = headers.etag_header;
}
if (headers.last_modified_header) {
config.headers["If-Modified-Since"] = headers.last_modified_header;
}
return config;
};
var response_fxn = function(response) {
var etag = response.headers("ETag");
var last_modified = response.headers("Last-Modified");
var headers = {};
if (etag) {
headers.etag_header = etag;
}
if (last_modified) {
headers.last_modified_header = last_modified;
}
cache_headers[response.config.url] = headers;
return response;
};
return {
"request" : request_fxn,
"response": response_fxn
};
}]);
})(angular);
| (function (angular) {
"use strict";
angular.module("mfl.gis.interceptor", [])
.factory("mfl.gis.interceptor.headers", [function () {
- var etag_header = null;
? --- ^^^^
+ var cache_headers = {};
? ++++ + ^^
- var last_modified_header = null;
+
+ var request_fxn = function(config) {
+ var headers = cache_headers[config.url];
+ if (_.isUndefined(headers)) {
+ console.log("cache miss : ", config.url);
+ return config;
+ }
+ console.log("cache hit : ", config.url);
+ if (headers.etag_header) {
+ config.headers.ETag = headers.etag_header;
+ config.headers["If-None-Match"] = headers.etag_header;
+ }
+ if (headers.last_modified_header) {
+ config.headers["If-Modified-Since"] = headers.last_modified_header;
+ }
+ return config;
+ };
+
+ var response_fxn = function(response) {
+ var etag = response.headers("ETag");
+ var last_modified = response.headers("Last-Modified");
+ var headers = {};
+ if (etag) {
+ headers.etag_header = etag;
+ }
+ if (last_modified) {
+ headers.last_modified_header = last_modified;
+ }
+ cache_headers[response.config.url] = headers;
+ return response;
+ };
return {
+ "request" : request_fxn,
- "request" : function(config) {
-
- if (etag_header) {
- config.headers.ETag = etag_header;
- config.headers["If-None-Match"] = etag_header;
- }
- if (last_modified_header) {
- config.headers["If-Modified-Since"] = last_modified_header;
- }
- return config;
- },
-
- "response": function(response) {
? --------- ^^^
+ "response": response_fxn
? ^^^^
- var etag = response.headers("ETag");
- var last_modified = response.headers("Last-Modified");
- if (etag) {
- etag_header = etag;
- }
- if (last_modified) {
- last_modified_header = last_modified;
- }
- return response;
- }
};
}]);
})(angular); | 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.initialize();
},
props: {
code: {
type: String
}
},
methods: {
initialize () {
CodeMirror.fromTextArea(this.$refs.code, defaultOptions);
}
}
};
const defaultOptions = {
mode: 'javascript',
theme: 'material',
readOnly: true,
lineNumbers: true
};
</script>
<style scoped lang="scss">
@import 'new-dashboard/styles/variables';
</style>
| <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 {
codemirror: null,
}
},
mounted () {
this.initialize();
},
beforeDestroy () {
this.destroy();
},
props: {
code: {
type: String
}
},
methods: {
initialize () {
this.codemirror = CodeMirror.fromTextArea(this.$refs.code, defaultOptions);
},
destroy () {
const codemirrorElement = this.codemirror.doc.cm.getWrapperElement();
codemirrorElement.remove && codemirrorElement.remove();
}
},
watch: {
code () {
this.codemirror.setValue(this.code);
}
}
};
const defaultOptions = {
mode: 'javascript',
theme: 'material',
readOnly: true,
lineNumbers: true
};
</script>
<style scoped lang="scss">
@import 'new-dashboard/styles/variables';
</style>
| 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 () {
this.initialize();
},
props: {
code: {
type: String
}
},
methods: {
initialize () {
CodeMirror.fromTextArea(this.$refs.code, defaultOptions);
}
}
};
const defaultOptions = {
mode: 'javascript',
theme: 'material',
readOnly: true,
lineNumbers: true
};
</script>
<style scoped lang="scss">
@import 'new-dashboard/styles/variables';
</style>
## Instruction:
Add watcher to code blocks
## Code After:
<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 {
codemirror: null,
}
},
mounted () {
this.initialize();
},
beforeDestroy () {
this.destroy();
},
props: {
code: {
type: String
}
},
methods: {
initialize () {
this.codemirror = CodeMirror.fromTextArea(this.$refs.code, defaultOptions);
},
destroy () {
const codemirrorElement = this.codemirror.doc.cm.getWrapperElement();
codemirrorElement.remove && codemirrorElement.remove();
}
},
watch: {
code () {
this.codemirror.setValue(this.code);
}
}
};
const defaultOptions = {
mode: 'javascript',
theme: 'material',
readOnly: true,
lineNumbers: true
};
</script>
<style scoped lang="scss">
@import 'new-dashboard/styles/variables';
</style>
| <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 {
+ codemirror: null,
+ }
+ },
mounted () {
this.initialize();
+ },
+ beforeDestroy () {
+ this.destroy();
},
props: {
code: {
type: String
}
},
methods: {
initialize () {
- CodeMirror.fromTextArea(this.$refs.code, defaultOptions);
+ this.codemirror = CodeMirror.fromTextArea(this.$refs.code, defaultOptions);
? ++++++++++++++++++
+ },
+ destroy () {
+ const codemirrorElement = this.codemirror.doc.cm.getWrapperElement();
+ codemirrorElement.remove && codemirrorElement.remove();
+ }
+ },
+ watch: {
+ code () {
+ this.codemirror.setValue(this.code);
}
}
};
const defaultOptions = {
mode: 'javascript',
theme: 'material',
readOnly: true,
lineNumbers: true
};
</script>
<style scoped lang="scss">
@import 'new-dashboard/styles/variables';
</style> | 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 expectFailsRule(rule, schemaSDL, expectedErrors = []) {
const ast = parse(`${schemaSDL}${DefaultSchema}`);
const schema = buildASTSchema(ast);
const errors = validate(schema, ast, [rule]);
assert(errors.length > 0, "Expected rule to fail but didn't");
assert.deepEqual(
errors,
expectedErrors.map(expectedError => {
return Object.assign(expectedError, {
ruleName: kebabCase(rule.name),
path: undefined,
});
})
);
}
export function expectPassesRule(rule, schemaSDL, expectedErrors = []) {
const ast = parse(`${schemaSDL}${DefaultSchema}`);
const schema = buildASTSchema(ast);
const errors = validate(schema, ast, [rule]);
assert(
errors.length == 0,
`Expected rule to pass but didn't got these errors:\n\n${errors.join('\n')}`
);
}
| 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/configuration.js';
const DefaultSchema = `
"Query root"
type Query {
"Field"
a: String
}
`;
export function expectFailsRule(rule, schemaSDL, expectedErrors = []) {
return expectFailsRuleWithConfiguration(rule, schemaSDL, {}, expectedErrors);
}
export function expectFailsRuleWithConfiguration(
rule,
schemaSDL,
configurationOptions,
expectedErrors = []
) {
const errors = validateSchemaWithRule(rule, schemaSDL, configurationOptions);
assert(errors.length > 0, "Expected rule to fail but didn't");
assert.deepEqual(
errors,
expectedErrors.map(expectedError => {
return Object.assign(expectedError, {
ruleName: kebabCase(rule.name),
path: undefined,
});
})
);
}
export function expectPassesRule(rule, schemaSDL) {
expectPassesRuleWithConfiguration(rule, schemaSDL, {});
}
export function expectPassesRuleWithConfiguration(
rule,
schemaSDL,
configurationOptions
) {
const errors = validateSchemaWithRule(rule, schemaSDL, configurationOptions);
assert(
errors.length == 0,
`Expected rule to pass but didn't got these errors:\n\n${errors.join('\n')}`
);
}
function validateSchemaWithRule(rule, schemaSDL, configurationOptions) {
const fullSchemaSDL = `${schemaSDL}${DefaultSchema}`;
const rules = [rule];
const configuration = new Configuration(configurationOptions, null);
const errors = validateSchemaDefinition(fullSchemaSDL, rules, configuration);
return errors;
}
| 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
}
`;
export function expectFailsRule(rule, schemaSDL, expectedErrors = []) {
const ast = parse(`${schemaSDL}${DefaultSchema}`);
const schema = buildASTSchema(ast);
const errors = validate(schema, ast, [rule]);
assert(errors.length > 0, "Expected rule to fail but didn't");
assert.deepEqual(
errors,
expectedErrors.map(expectedError => {
return Object.assign(expectedError, {
ruleName: kebabCase(rule.name),
path: undefined,
});
})
);
}
export function expectPassesRule(rule, schemaSDL, expectedErrors = []) {
const ast = parse(`${schemaSDL}${DefaultSchema}`);
const schema = buildASTSchema(ast);
const errors = validate(schema, ast, [rule]);
assert(
errors.length == 0,
`Expected rule to pass but didn't got these errors:\n\n${errors.join('\n')}`
);
}
## Instruction:
Add support for specifying configurations in rule test helper
## Code After:
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/configuration.js';
const DefaultSchema = `
"Query root"
type Query {
"Field"
a: String
}
`;
export function expectFailsRule(rule, schemaSDL, expectedErrors = []) {
return expectFailsRuleWithConfiguration(rule, schemaSDL, {}, expectedErrors);
}
export function expectFailsRuleWithConfiguration(
rule,
schemaSDL,
configurationOptions,
expectedErrors = []
) {
const errors = validateSchemaWithRule(rule, schemaSDL, configurationOptions);
assert(errors.length > 0, "Expected rule to fail but didn't");
assert.deepEqual(
errors,
expectedErrors.map(expectedError => {
return Object.assign(expectedError, {
ruleName: kebabCase(rule.name),
path: undefined,
});
})
);
}
export function expectPassesRule(rule, schemaSDL) {
expectPassesRuleWithConfiguration(rule, schemaSDL, {});
}
export function expectPassesRuleWithConfiguration(
rule,
schemaSDL,
configurationOptions
) {
const errors = validateSchemaWithRule(rule, schemaSDL, configurationOptions);
assert(
errors.length == 0,
`Expected rule to pass but didn't got these errors:\n\n${errors.join('\n')}`
);
}
function validateSchemaWithRule(rule, schemaSDL, configurationOptions) {
const fullSchemaSDL = `${schemaSDL}${DefaultSchema}`;
const rules = [rule];
const configuration = new Configuration(configurationOptions, null);
const errors = validateSchemaDefinition(fullSchemaSDL, rules, configuration);
return errors;
}
| 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/configuration.js';
const DefaultSchema = `
- # Query root
? ^^
+ "Query root"
? ^ +
type Query {
- # Field
? ^^
+ "Field"
? ^ +
a: String
}
`;
export function expectFailsRule(rule, schemaSDL, expectedErrors = []) {
- const ast = parse(`${schemaSDL}${DefaultSchema}`);
- const schema = buildASTSchema(ast);
- const errors = validate(schema, ast, [rule]);
+ return expectFailsRuleWithConfiguration(rule, schemaSDL, {}, expectedErrors);
+ }
+
+ export function expectFailsRuleWithConfiguration(
+ rule,
+ schemaSDL,
+ configurationOptions,
+ expectedErrors = []
+ ) {
+ const errors = validateSchemaWithRule(rule, schemaSDL, configurationOptions);
assert(errors.length > 0, "Expected rule to fail but didn't");
assert.deepEqual(
errors,
expectedErrors.map(expectedError => {
return Object.assign(expectedError, {
ruleName: kebabCase(rule.name),
path: undefined,
});
})
);
}
- export function expectPassesRule(rule, schemaSDL, expectedErrors = []) {
? ---------------------
+ export function expectPassesRule(rule, schemaSDL) {
- const ast = parse(`${schemaSDL}${DefaultSchema}`);
- const schema = buildASTSchema(ast);
- const errors = validate(schema, ast, [rule]);
+ expectPassesRuleWithConfiguration(rule, schemaSDL, {});
+ }
+
+ export function expectPassesRuleWithConfiguration(
+ rule,
+ schemaSDL,
+ configurationOptions
+ ) {
+ const errors = validateSchemaWithRule(rule, schemaSDL, configurationOptions);
assert(
errors.length == 0,
`Expected rule to pass but didn't got these errors:\n\n${errors.join('\n')}`
);
}
+
+ function validateSchemaWithRule(rule, schemaSDL, configurationOptions) {
+ const fullSchemaSDL = `${schemaSDL}${DefaultSchema}`;
+ const rules = [rule];
+ const configuration = new Configuration(configurationOptions, null);
+ const errors = validateSchemaDefinition(fullSchemaSDL, rules, configuration);
+
+ return errors;
+ } | 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 \
-m puppetlabs.trapperkeeper.main --config "${CONFIG}" $@
ExecStop=/bin/kill $MAINPID
StandardOutput=syslog
[Install]
WantedBy=multi-user.target
| [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_name] %>" clojure.main \
-m puppetlabs.trapperkeeper.main --config "${CONFIG}" $@
ExecStop=/bin/kill $MAINPID
StandardOutput=syslog
[Install]
WantedBy=multi-user.target
| 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] %>" clojure.main \
-m puppetlabs.trapperkeeper.main --config "${CONFIG}" $@
ExecStop=/bin/kill $MAINPID
StandardOutput=syslog
[Install]
WantedBy=multi-user.target
## Instruction:
Fix systemd for pe templates
## Code After:
[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_name] %>" clojure.main \
-m puppetlabs.trapperkeeper.main --config "${CONFIG}" $@
ExecStop=/bin/kill $MAINPID
StandardOutput=syslog
[Install]
WantedBy=multi-user.target
| [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_DIR}/<%= EZBake::Config[:uberjar_name] %>" clojure.main \
-m puppetlabs.trapperkeeper.main --config "${CONFIG}" $@
ExecStop=/bin/kill $MAINPID
StandardOutput=syslog
[Install]
WantedBy=multi-user.target | 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 checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
|
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 Description](http://developer.affili.net/desktopdefault.aspx/tabid-110/178_read-845)
### Basic setup
````ruby
require 'affilinet'
client = Affilinet::Client.new publisher_id: 580442, password: '1TuKEGkOJJ24dN07ByOy'
````
### Search products
````ruby
result = client.search query: 'jeans'
# > result.products.first.brand
# => "Meat of the Room"
````
### Get Products
````ruby
result = client.products [580858761,580858759]
# > result.products.first.price_information.display_price
# => "starting from 90.99 GBP "
````
### Get Shop List
````ruby
result = client.shops
# > result.shops.first.shop_title
# => "affilinet ShowCase"
````
### Get Category List
````ruby
result = client.categories
# > result.categories.first.title
# => "Clothes & Accessories "
````
### Get Property List
````ruby
result = client.properties 1748
# result.property_counts.first.property_name
# => "Colour"
````
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request | 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 branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
## Instruction:
Add base description to readme
## Code After:
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 Description](http://developer.affili.net/desktopdefault.aspx/tabid-110/178_read-845)
### Basic setup
````ruby
require 'affilinet'
client = Affilinet::Client.new publisher_id: 580442, password: '1TuKEGkOJJ24dN07ByOy'
````
### Search products
````ruby
result = client.search query: 'jeans'
# > result.products.first.brand
# => "Meat of the Room"
````
### Get Products
````ruby
result = client.products [580858761,580858759]
# > result.products.first.price_information.display_price
# => "starting from 90.99 GBP "
````
### Get Shop List
````ruby
result = client.shops
# > result.shops.first.shop_title
# => "affilinet ShowCase"
````
### Get Category List
````ruby
result = client.categories
# > result.categories.first.title
# => "Clothes & Accessories "
````
### Get Property List
````ruby
result = client.properties 1748
# result.property_counts.first.property_name
# => "Colour"
````
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request |
- 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
## Usage
- TODO: Write usage instructions here
+ Examples replicating the instructions on the [API Description](http://developer.affili.net/desktopdefault.aspx/tabid-110/178_read-845)
+
+ ### Basic setup
+
+ ````ruby
+ require 'affilinet'
+
+ client = Affilinet::Client.new publisher_id: 580442, password: '1TuKEGkOJJ24dN07ByOy'
+ ````
+
+ ### Search products
+
+ ````ruby
+ result = client.search query: 'jeans'
+
+ # > result.products.first.brand
+ # => "Meat of the Room"
+ ````
+
+ ### Get Products
+
+ ````ruby
+ result = client.products [580858761,580858759]
+
+ # > result.products.first.price_information.display_price
+ # => "starting from 90.99 GBP "
+ ````
+ ### Get Shop List
+
+ ````ruby
+ result = client.shops
+
+ # > result.shops.first.shop_title
+ # => "affilinet ShowCase"
+ ````
+
+ ### Get Category List
+
+ ````ruby
+ result = client.categories
+
+ # > result.categories.first.title
+ # => "Clothes & Accessories "
+ ````
+
+ ### Get Property List
+
+ ````ruby
+ result = client.properties 1748
+
+ # result.property_counts.first.property_name
+ # => "Colour"
+ ````
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request | 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 and rename params
## Code After:
<?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);
}
| <?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)
? ^^ ^ ^^^^
+ function array_key_exists($array, $key)
? ^^^^ ^ ^
{
- return \array_key_exists($key, $search);
? -- ^^
+ return \array_key_exists($key, $array);
? ^^^
} | 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() << "Handling request";
qDebug() << "Method" << req->method();
qDebug() << "HTTP Version" << req->httpVersion();
qDebug() << "URL" << req->url();
resp->setHeader("Content-Type", "text/html");
resp->setHeader("Content-Length", "11");
resp->writeHead(200);
resp->write(QString("Hello World"));
resp->end();
}
int main(int argc, char **argv)
{
QCoreApplication app(argc, argv);
Hello hello;
app.exec();
}
|
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->setHeader("Content-Length", "11");
resp->writeHead(200);
resp->write(QString("Hello World"));
resp->end();
}
int main(int argc, char **argv)
{
QCoreApplication app(argc, argv);
Hello hello;
app.exec();
}
| 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,FreedomZZQ/qhttpserver,Mendeley/qhttpserver | 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)
{
qDebug() << "Handling request";
qDebug() << "Method" << req->method();
qDebug() << "HTTP Version" << req->httpVersion();
qDebug() << "URL" << req->url();
resp->setHeader("Content-Type", "text/html");
resp->setHeader("Content-Length", "11");
resp->writeHead(200);
resp->write(QString("Hello World"));
resp->end();
}
int main(int argc, char **argv)
{
QCoreApplication app(argc, argv);
Hello hello;
app.exec();
}
## Instruction:
Remove extra stuff from simplest example
## Code After:
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->setHeader("Content-Length", "11");
resp->writeHead(200);
resp->write(QString("Hello World"));
resp->end();
}
int main(int argc, char **argv)
{
QCoreApplication app(argc, argv);
Hello hello;
app.exec();
}
|
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() << "Handling request";
- qDebug() << "Method" << req->method();
- qDebug() << "HTTP Version" << req->httpVersion();
- qDebug() << "URL" << req->url();
- resp->setHeader("Content-Type", "text/html");
resp->setHeader("Content-Length", "11");
resp->writeHead(200);
resp->write(QString("Hello World"));
resp->end();
}
int main(int argc, char **argv)
{
QCoreApplication app(argc, argv);
-
Hello hello;
-
app.exec();
} | 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 port = process.env.PORT || 11583;
http.createServer(app).listen(port, function() {
console.log('Server started http://localhost:' + port);
});
| 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 port = process.env.PORT || 11583;
var addr = process.env.BINDING_ADDR || 'localhost';
http.createServer(app).listen(port, host, function() {
console.log('Server started http://' + addr + ':' + port);
});
| 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_ADDR environment variable to alllow to customize listening address.
If omitted, it binds to localhost instead.
Reference: https://nodejs.org/api/http.html#http_server_listen_port_hostname_backlog_callback | 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, 'public')));
var port = process.env.PORT || 11583;
http.createServer(app).listen(port, function() {
console.log('Server started http://localhost:' + port);
});
## Instruction:
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_ADDR environment variable to alllow to customize listening address.
If omitted, it binds to localhost instead.
Reference: https://nodejs.org/api/http.html#http_server_listen_port_hostname_backlog_callback
## Code After:
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 port = process.env.PORT || 11583;
var addr = process.env.BINDING_ADDR || 'localhost';
http.createServer(app).listen(port, host, function() {
console.log('Server started http://' + addr + ':' + port);
});
| 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 port = process.env.PORT || 11583;
+ var addr = process.env.BINDING_ADDR || 'localhost';
- http.createServer(app).listen(port, function() {
+ http.createServer(app).listen(port, host, function() {
? ++++++
- console.log('Server started http://localhost:' + port);
? ^^^ ^^^^^
+ console.log('Server started http://' + addr + ':' + port);
? ^^^^ ^^^^^^^
});
| 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(:llvm) { build(data.delete(:build).to_i) }
end
end
| 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,henry0312/homebrew,wolfd/homebrew,kodabb/homebrew,tjschuck/homebrew,yumitsu/homebrew,WangGL1985/homebrew,antst/homebrew,amarshall/homebrew,jgelens/homebrew,Lywangwenbin/homebrew,peteristhegreat/homebrew,LaurentFough/homebrew,dambrisco/homebrew,dholm/homebrew,afb/homebrew,MartinDelille/homebrew,NfNitLoop/homebrew,kwilczynski/homebrew,afh/homebrew,razamatan/homebrew,polamjag/homebrew,plattenschieber/homebrew,klatys/homebrew,sideci-sample/sideci-sample-homebrew,lhahne/homebrew,tbeckham/homebrew,alexbukreev/homebrew,gildegoma/homebrew,sptramer/homebrew,John-Colvin/homebrew,elamc/homebrew,jamer/homebrew,ryanfb/homebrew,brendanator/linuxbrew,georgschoelly/homebrew,jedahan/homebrew,1zaman/homebrew,odekopoon/homebrew,zabawaba99/homebrew,outcoldman/linuxbrew,robrix/homebrew,erezny/homebrew,smarek/homebrew,ilidar/homebrew,helloworld-zh/homebrew,ryanshaw/homebrew,sorin-ionescu/homebrew,soleo/homebrew,bbhoss/homebrew,feuvan/homebrew,Cutehacks/homebrew,simsicon/homebrew,robotblake/homebrew,MartinSeeler/homebrew,LinusU/homebrew,ryanshaw/homebrew,dtrebbien/homebrew,chfast/homebrew,koraktor/homebrew,voxxit/homebrew,mjc-/homebrew,miketheman/homebrew,dstftw/homebrew,petere/homebrew,jbpionnier/homebrew,wolfd/homebrew,bukzor/linuxbrew,bukzor/linuxbrew,apjanke/homebrew,jspahrsummers/homebrew,guoxiao/homebrew,jingweno/homebrew,bendoerr/homebrew,mommel/homebrew,davydden/linuxbrew,haf/homebrew,a-b/homebrew,coldeasy/homebrew,nju520/homebrew,stoshiya/homebrew,peteristhegreat/homebrew,verdurin/homebrew,AtkinsChang/homebrew,jab/homebrew,jsjohnst/homebrew,IsmailM/linuxbrew,Asuranceturix/homebrew,dai0304/homebrew,adriancole/homebrew,arnested/homebrew,akshayvaidya/homebrew,alindeman/homebrew,superlukas/homebrew,khwon/homebrew,tyrchen/homebrew,sarvex/linuxbrew,Chilledheart/homebrew,samthor/homebrew,danieroux/homebrew,osimola/homebrew,rcombs/homebrew,higanworks/homebrew,dpalmer93/homebrew,dlo/homebrew,amarshall/homebrew,jmagnusson/homebrew,jessamynsmith/homebrew,Dreysman/homebrew,catap/homebrew,ened/homebrew,gnawhleinad/homebrew,skatsuta/homebrew,grmartin/homebrew,rhoffman3621/learn-rails,Hasimir/homebrew,Kentzo/homebrew,e-jigsaw/homebrew,chenflat/homebrew,indera/homebrew,docwhat/homebrew,zachmayer/homebrew,dholm/linuxbrew,cscetbon/homebrew,kad/homebrew,LaurentFough/homebrew,kgb4000/homebrew,hvnsweeting/homebrew,bitrise-io/homebrew,whitej125/homebrew,gvangool/homebrew,LonnyGomes/homebrew,SteveClement/homebrew,georgschoelly/homebrew,elasticdog/homebrew,mtfelix/homebrew,Zearin/homebrew,docwhat/homebrew,auvi/homebrew,thebyrd/homebrew,andyshinn/homebrew,booi/homebrew,verbitan/homebrew,ebouaziz/linuxbrew,andy12530/homebrew,miry/homebrew,menivaitsi/homebrew,odekopoon/homebrew,cvrebert/homebrew,felixonmars/homebrew,zoltansx/homebrew,TaylorMonacelli/homebrew,polishgeeks/homebrew,davidmalcolm/homebrew,bmroberts1987/homebrew,zhimsel/homebrew,jmtd/homebrew,digiter/linuxbrew,samthor/homebrew,zchee/homebrew,chfast/homebrew,crystal/autocode-homebrew,harelba/homebrew,tpot/homebrew,kikuchy/homebrew,elig/homebrew,princeofdarkness76/homebrew,jconley/homebrew,ssp/homebrew,alexbukreev/homebrew,robotblake/homebrew,daviddavis/homebrew,tstack/homebrew,cbeck88/linuxbrew,quantumsteve/homebrew,deployable/homebrew,danpalmer/homebrew,eighthave/homebrew,xurui3762791/homebrew,sublimino/linuxbrew,rstacruz/homebrew,jarrettmeyer/homebrew,Linuxbrew/linuxbrew,n8henrie/homebrew,Krasnyanskiy/homebrew,drewwells/homebrew,jmtd/homebrew,wolfd/homebrew,chabhishek123/homebrew,hakamadare/homebrew,creationix/homebrew,gnawhleinad/homebrew,Cottser/homebrew,YOTOV-LIMITED/homebrew,romejoe/linuxbrew,chkuendig/homebrew,menivaitsi/homebrew,otaran/homebrew,alanthing/homebrew,cHoco/homebrew,superlukas/homebrew,OlivierParent/homebrew,guoxiao/homebrew,a-b/homebrew,hyokosdeveloper/linuxbrew,omriiluz/homebrew,felixonmars/homebrew,zachmayer/homebrew,royalwang/homebrew,verbitan/homebrew,kbrock/homebrew,Moisan/homebrew,DDShadoww/homebrew,lvicentesanchez/linuxbrew,dutchcoders/homebrew,bukzor/homebrew,Russell91/homebrew,egentry/homebrew,zoidbergwill/homebrew,tonyghita/homebrew,kyanny/homebrew,ldiqual/homebrew,saketkc/linuxbrew,chadcatlett/homebrew,brendanator/linuxbrew,mattfarina/homebrew,xcezx/homebrew,valkjsaaa/homebrew,DoomHammer/linuxbrew,kbrock/homebrew,saketkc/homebrew,oubiwann/homebrew,danielfariati/homebrew,RSamokhin/homebrew,rs/homebrew,skinny-framework/homebrew,alex-zhang/homebrew,sakra/homebrew,mmizutani/homebrew,Krasnyanskiy/homebrew,afb/homebrew,theopolis/homebrew,LeoCavaille/homebrew,whitej125/homebrew,yoshida-mediba/homebrew,raphaelcohn/homebrew,erkolson/homebrew,pigoz/homebrew,Monits/homebrew,dgageot/homebrew,Habbie/homebrew,sigma-random/homebrew,ldiqual/homebrew,dstndstn/homebrew,Redth/homebrew,oliviertilmans/homebrew,rlister/homebrew,lnr0626/homebrew,raphaelcohn/homebrew,vinicius5581/homebrew,iostat/homebrew2,oliviertoupin/homebrew,mattfritz/homebrew,woodruffw/homebrew-test,notDavid/homebrew,bigbes/homebrew,bbhoss/homebrew,mbi/homebrew,boshnivolo/homebrew,oneillkza/linuxbrew,Angeldude/linuxbrew,jingweno/homebrew,gnawhleinad/homebrew,geoff-codes/homebrew,sarvex/linuxbrew,morevalily/homebrew,jehutymax/homebrew,drbenmorgan/linuxbrew,cjheath/homebrew,bchatard/homebrew,harsha-mudi/homebrew,Ivanopalas/homebrew,mapbox/homebrew,brunchboy/homebrew,fabianschuiki/homebrew,ExtremeMan/homebrew,mndrix/homebrew,moyogo/homebrew,AICIDNN/homebrew,esamson/homebrew,crystal/autocode-homebrew,bukzor/linuxbrew,koraktor/homebrew,tsaeger/homebrew,rwstauner/homebrew,digiter/linuxbrew,jpsim/homebrew,fabianfreyer/homebrew,kyanny/homebrew,grob3/homebrew,srikalyan/homebrew,zeezey/homebrew,jmagnusson/homebrew,dpalmer93/homebrew,endelwar/homebrew,marcelocantos/homebrew,anjackson/homebrew,ndimiduk/homebrew,alex-zhang/homebrew,mndrix/homebrew,KevinSjoberg/homebrew,gawbul/homebrew,ieure/homebrew,e-jigsaw/homebrew,kevinastone/homebrew,GeekHades/homebrew,LonnyGomes/homebrew,andy12530/homebrew,rhendric/homebrew,mbrevda/homebrew,timsutton/homebrew,xinlehou/homebrew,jf647/homebrew,mindrones/homebrew,rhoffman3621/learn-rails,wkentaro/homebrew,sachiketi/homebrew,treyharris/homebrew,hmalphettes/homebrew,tomyun/homebrew,thejustinwalsh/homebrew,klazuka/homebrew,cosmo0920/homebrew,summermk/homebrew,tonyghita/homebrew,xuebinglee/homebrew,rhunter/homebrew,skatsuta/homebrew,sitexa/homebrew,Hasimir/homebrew,jamesdphillips/homebrew,jonafato/homebrew,wfarr/homebrew,dplarson/homebrew,harelba/homebrew,kkirsche/homebrew,feugenix/homebrew,jianjin/homebrew,arrowcircle/homebrew,Zearin/homebrew,emilyst/homebrew,tjt263/homebrew,ryanfb/homebrew,Gui13/linuxbrew,guoxiao/homebrew,grmartin/homebrew,zeha/homebrew,creack/homebrew,AtnNn/homebrew,valkjsaaa/homebrew,julienXX/homebrew,blogabe/homebrew,alindeman/homebrew,tany-ovcharenko/depot,iandennismiller/homebrew,osimola/homebrew,idolize/homebrew,timsutton/homebrew,WangGL1985/homebrew,kwilczynski/homebrew,jamesdphillips/homebrew,karlhigley/homebrew,ls2uper/homebrew,YOTOV-LIMITED/homebrew,Homebrew/linuxbrew,baldwicc/homebrew,jack-and-rozz/linuxbrew,gunnaraasen/homebrew,voxxit/homebrew,frozzare/homebrew,bendemaree/homebrew,ffleming/homebrew,chabhishek123/homebrew,base10/homebrew,sublimino/linuxbrew,danielmewes/homebrew,pvrs12/homebrew,oliviertilmans/homebrew,davidcelis/homebrew,petercm/homebrew,klazuka/homebrew,afb/homebrew,paulbakker/homebrew,Ferrari-lee/homebrew,moltar/homebrew,emilyst/homebrew,tghs/linuxbrew,jbarker/homebrew,craig5/homebrew,gonzedge/homebrew,joshua-rutherford/homebrew,bjorand/homebrew,baldwicc/homebrew,mattprowse/homebrew,atsjj/homebrew,TaylorMonacelli/homebrew,decors/homebrew,geometrybase/homebrew,Cottser/homebrew,packetcollision/homebrew,kazuho/homebrew,NRauh/homebrew,bchatard/homebrew,theeternalsw0rd/homebrew,adamchainz/homebrew,sigma-random/homebrew,iggyvolz/linuxbrew,5zzang/homebrew,voxxit/homebrew,a-b/homebrew,whistlerbrk/homebrew,nelstrom/homebrew,yumitsu/homebrew,jackmcgreevy/homebrew,Gui13/linuxbrew,rhunter/homebrew,QuinnyPig/homebrew,ryanshaw/homebrew,AntonioMeireles/homebrew,benswift404/homebrew,dmarkrollins/homebrew,linjunpop/homebrew,bjlxj2008/homebrew,mokkun/homebrew,robotblake/homebrew,auvi/homebrew,shazow/homebrew,keith/homebrew,jonas/homebrew,ened/homebrew,jose-cieni-movile/homebrew,MSch/homebrew,antogg/homebrew,tutumcloud/homebrew,qiruiyin/homebrew,adamliter/homebrew,zebMcCorkle/homebrew,tjhei/linuxbrew,klatys/homebrew,chabhishek123/homebrew,hyokosdeveloper/linuxbrew,mroth/homebrew,hongkongkiwi/homebrew,erezny/homebrew,tstack/homebrew,plattenschieber/homebrew,psibre/homebrew,vigo/homebrew,cesar2535/homebrew,rhunter/homebrew,creationix/homebrew,tbetbetbe/linuxbrew,h3r2on/homebrew,jackmcgreevy/homebrew,quantumsteve/homebrew,dickeyxxx/homebrew,SampleLiao/homebrew,theeternalsw0rd/homebrew,dstndstn/homebrew,josa42/homebrew,ieure/homebrew,barn/homebrew,epixa/homebrew,LegNeato/homebrew,zj568/homebrew,galaxy001/homebrew,number5/homebrew,Spacecup/homebrew,a1dutch/homebrew,dambrisco/homebrew,ybott/homebrew,msurovcak/homebrew,timsutton/homebrew,iostat/homebrew2,jehutymax/homebrew,Austinpb/homebrew,lvicentesanchez/homebrew,MonCoder/homebrew,mavimo/homebrew,Noctem/homebrew,DDShadoww/homebrew,lvicentesanchez/linuxbrew,MrChen2015/homebrew,iostat/homebrew2,jgelens/homebrew,zhimsel/homebrew,grob3/homebrew,CNA-Bld/homebrew,alfasapy/homebrew,antst/homebrew,pvrs12/homebrew,srikalyan/homebrew,hyuni/homebrew,oschwald/homebrew,exicon/homebrew,adamchainz/homebrew,eugenesan/homebrew,Asuranceturix/homebrew,grob3/homebrew,tdsmith/linuxbrew,linse073/homebrew,wrunnery/homebrew,cosmo0920/homebrew,arcivanov/linuxbrew,Homebrew/linuxbrew,cristobal/homebrew,mpfz0r/homebrew,schuyler/homebrew,supriyantomaftuh/homebrew,craigbrad/homebrew,chfast/homebrew,dericed/homebrew,carlmod/homebrew,nju520/homebrew,mactkg/homebrew,miketheman/homebrew,whitej125/homebrew,bchatard/homebrew,KenanSulayman/homebrew,kawanet/homebrew,jingweno/homebrew,OJFord/homebrew,frickler01/homebrew,retrography/homebrew,thebyrd/homebrew,sock-puppet/homebrew,muellermartin/homebrew,jimmy906/homebrew,ctate/autocode-homebrew,simsicon/homebrew,h3r2on/homebrew,lvicentesanchez/homebrew,colindean/homebrew,kashif/homebrew,Ferrari-lee/homebrew,phatblat/homebrew,Cottser/homebrew,MartinDelille/homebrew,tany-ovcharenko/depot,glowe/homebrew,mattprowse/homebrew,aristiden7o/homebrew,gnubila-france/linuxbrew,bright-sparks/homebrew,sptramer/homebrew,alexethan/homebrew,mattbostock/homebrew,caijinyan/homebrew,frozzare/homebrew,rhendric/homebrew,ajshort/homebrew,bigbes/homebrew,1zaman/homebrew,adevress/homebrew,mattbostock/homebrew,anjackson/homebrew,tkelman/homebrew,skinny-framework/homebrew,higanworks/homebrew,eagleflo/homebrew,jessamynsmith/homebrew,patrickmckenna/homebrew,vinodkone/homebrew,jtrag/homebrew,tuedan/homebrew,bwmcadams/homebrew,waynegraham/homebrew,benswift404/homebrew,akupila/homebrew,Redth/homebrew,ariscop/homebrew,elgertam/homebrew,gicmo/homebrew,dalguji/homebrew,jesboat/homebrew,sidhart/homebrew,raphaelcohn/homebrew,xyproto/homebrew,sidhart/homebrew,boyanpenkov/homebrew,jpascal/homebrew,Gasol/homebrew,totalvoidness/homebrew,n8henrie/homebrew,jspahrsummers/homebrew,Russell91/homebrew,jonas/homebrew,deployable/homebrew,mttrb/homebrew,Asuranceturix/homebrew,qskycolor/homebrew,WangGL1985/homebrew,kevinastone/homebrew,dericed/homebrew,cnbin/homebrew,gnubila-france/linuxbrew,mbi/homebrew,AtkinsChang/homebrew,voxxit/homebrew,elyscape/homebrew,tghs/linuxbrew,dalanmiller/homebrew,hikaruworld/homebrew,ortho/homebrew,godu/homebrew,moltar/homebrew,haosdent/homebrew,alexandrecormier/homebrew,cbeck88/linuxbrew,paulbakker/homebrew,moltar/homebrew,patrickmckenna/homebrew,coldeasy/homebrew,docwhat/homebrew,will/homebrew,Habbie/homebrew,docwhat/homebrew,187j3x1/homebrew,kad/homebrew,Gutek/homebrew,tomekr/homebrew,sportngin/homebrew,jeromeheissler/homebrew,telamonian/linuxbrew,oliviertilmans/homebrew,ybott/homebrew,Austinpb/homebrew,syhw/homebrew,SnoringFrog/homebrew,iggyvolz/linuxbrew,rlister/homebrew,cffk/homebrew,rlhh/homebrew,protomouse/homebrew,catap/homebrew,akupila/homebrew,AGWA-forks/homebrew,lemaiyan/homebrew,michaKFromParis/homebrew-sparks,frodeaa/homebrew,jpscaletti/homebrew,LinusU/homebrew,bmroberts1987/homebrew,alfasapy/homebrew,finde/homebrew,ianbrandt/homebrew,scpeters/homebrew,atsjj/homebrew,feelpp/homebrew,linse073/homebrew,mroth/homebrew,benswift404/homebrew,PikachuEXE/homebrew,Russell91/homebrew,benswift404/homebrew,PikachuEXE/homebrew,karlhigley/homebrew,mroch/homebrew,dpalmer93/homebrew,mobileoverlord/homebrew-1,ieure/homebrew,haosdent/homebrew,mpfz0r/homebrew,ariscop/homebrew,menivaitsi/homebrew,mtfelix/homebrew,bertjwregeer/homebrew,slnovak/homebrew,mbrevda/homebrew,bkonosky/homebrew,rs/homebrew,jwatzman/homebrew,clemensg/homebrew,ened/homebrew,flysonic10/homebrew,mjbshaw/homebrew,mjc-/homebrew,sugryo/homebrew,sakra/homebrew,sock-puppet/homebrew,robotblake/homebrew,hakamadare/homebrew,ebouaziz/linuxbrew,thos37/homebrew,mprobst/homebrew,codeout/homebrew,brunchboy/homebrew,gonzedge/homebrew,andyshinn/homebrew,lhahne/homebrew,Hs-Yeah/homebrew,ear/homebrew,gicmo/homebrew,lnr0626/homebrew,scpeters/homebrew,englishm/homebrew,GeekHades/homebrew,yangj1e/homebrew,vinodkone/homebrew,Red54/homebrew,dutchcoders/homebrew,sferik/homebrew,benjaminfrank/homebrew,linjunpop/homebrew,dlo/homebrew,tdsmith/linuxbrew,lnr0626/homebrew,sublimino/linuxbrew,rwstauner/homebrew,wfalkwallace/homebrew,ExtremeMan/homebrew,buzzedword/homebrew,eighthave/homebrew,pitatensai/homebrew,dunn/linuxbrew,iamcharp/homebrew,omriiluz/homebrew,utzig/homebrew,neronplex/homebrew,gawbul/homebrew,zj568/homebrew,yonglehou/homebrew,liuquansheng47/Homebrew,blairham/homebrew,prasincs/homebrew,patrickmckenna/homebrew,kmiscia/homebrew,waynegraham/homebrew,cmvelo/homebrew,antst/homebrew,asparagui/homebrew,ge11232002/homebrew,arg/homebrew,gyaresu/homebrew,kad/homebrew,ryanshaw/homebrew,DDShadoww/homebrew,joshua-rutherford/homebrew,mgiglia/homebrew,whistlerbrk/homebrew,mapbox/homebrew,nysthee/homebrew,jwillemsen/linuxbrew,Ivanopalas/homebrew,mkrapp/homebrew,arnested/homebrew,bl1nk/homebrew,dconnolly/homebrew,qskycolor/homebrew,mathieubolla/homebrew,dlo/homebrew,marcwebbie/homebrew,tomyun/homebrew,protomouse/homebrew,kevinastone/homebrew,joeyhoer/homebrew,godu/homebrew,manphiz/homebrew,amarshall/homebrew,jose-cieni-movile/homebrew,tseven/homebrew,ngoldbaum/homebrew,mttrb/homebrew,marcusandre/homebrew,Gui13/linuxbrew,bukzor/homebrew,bruno-/homebrew,razamatan/homebrew,virtuald/homebrew,seegno-forks/homebrew,booi/homebrew,reelsense/linuxbrew,auvi/homebrew,tzudot/homebrew,alexandrecormier/homebrew,mxk1235/homebrew,cristobal/homebrew,mavimo/homebrew,tavisto/homebrew,alindeman/homebrew,wadejong/homebrew,bruno-/homebrew,BlackFrog1/homebrew,jkarneges/homebrew,polishgeeks/homebrew,pigri/homebrew,hyokosdeveloper/linuxbrew,DoomHammer/linuxbrew,chenflat/homebrew,ilovezfs/homebrew,outcoldman/homebrew,endelwar/homebrew,arg/homebrew,zchee/homebrew,blogabe/homebrew,theopolis/homebrew,cooltheo/homebrew,zenazn/homebrew,guidomb/homebrew,wangranche/homebrew,mroch/homebrew,lousama/homebrew,SuperNEMO-DBD/cadfaelbrew,marcelocantos/homebrew,arrowcircle/homebrew,bertjwregeer/homebrew,skinny-framework/homebrew,pinkpolygon/homebrew,lvh/homebrew,barn/homebrew,oneillkza/linuxbrew,callahad/homebrew,denvazh/homebrew,caputomarcos/linuxbrew,erezny/homebrew,apjanke/homebrew,oubiwann/homebrew,cjheath/homebrew,zeha/homebrew,jsallis/homebrew,hongkongkiwi/homebrew,retrography/homebrew,mindrones/homebrew,osimola/homebrew,joeyhoer/homebrew,kad/homebrew,msurovcak/homebrew,dongcarl/homebrew,dconnolly/homebrew,getgauge/homebrew,smarek/homebrew,afh/homebrew,wadejong/homebrew,mhartington/homebrew,RSamokhin/homebrew,ericzhou2008/homebrew,wkentaro/homebrew,cristobal/homebrew,BrewTestBot/homebrew,tomekr/homebrew,jacobsa/homebrew,zeha/homebrew,jwatzman/homebrew,ianbrandt/homebrew,dambrisco/homebrew,omriiluz/homebrew,samplecount/homebrew,ingmarv/homebrew,yumitsu/homebrew,pgr0ss/homebrew,psibre/homebrew,bjorand/homebrew,imjerrybao/homebrew,evanrs/homebrew,buzzedword/homebrew,Kentzo/homebrew,ened/homebrew,AntonioMeireles/homebrew,supriyantomaftuh/homebrew,hongkongkiwi/homebrew,mhartington/homebrew,pdxdan/homebrew,danieroux/homebrew,zchee/homebrew,Gasol/homebrew,sometimesfood/homebrew,mommel/homebrew,1zaman/homebrew,trajano/homebrew,amarshall/homebrew,youprofit/homebrew,gawbul/homebrew,winordie-47/linuxbrew1,slyphon/homebrew,liamstask/homebrew,gvangool/homebrew,emilyst/homebrew,rhoffman3621/learn-rails,tavisto/homebrew,lmontrieux/homebrew,number5/homebrew,tonyghita/homebrew,lmontrieux/homebrew,waj/homebrew,waj/homebrew,tdsmith/linuxbrew,mactkg/homebrew,dalinaum/homebrew,mjc-/homebrew,jf647/homebrew,sjackman/linuxbrew,endelwar/homebrew,pinkpolygon/homebrew,AtkinsChang/homebrew,jmagnusson/homebrew,saketkc/linuxbrew,tehmaze-labs/homebrew,jpsim/homebrew,BrewTestBot/homebrew,zoltansx/homebrew,lousama/homebrew,chfast/homebrew,ericzhou2008/homebrew,smarek/homebrew,pdpi/homebrew,Klozz/homebrew,rosalsm/homebrew,songjizu001/homebrew,dericed/homebrew,John-Colvin/homebrew,nju520/homebrew,pcottle/homebrew,virtuald/homebrew,frozzare/homebrew,wfalkwallace/homebrew,mtfelix/homebrew,samthor/homebrew,jbaum98/linuxbrew,danabrand/linuxbrew,mattfarina/homebrew,DarthGandalf/homebrew,bright-sparks/homebrew,ralic/homebrew,dkotvan/homebrew,notDavid/homebrew,Cutehacks/homebrew,tobz-nz/homebrew,alfasapy/homebrew,denvazh/homebrew,5zzang/homebrew,recruit-tech/homebrew,tyrchen/homebrew,tstack/homebrew,bluca/homebrew,RSamokhin/homebrew,Homebrew/homebrew,bluca/homebrew,tjschuck/homebrew,onlynone/homebrew,jwillemsen/linuxbrew,lvicentesanchez/linuxbrew,georgschoelly/homebrew,hkwan003/homebrew,zfarrell/homebrew,jwatzman/homebrew,ybott/homebrew,anders/homebrew,brunchboy/homebrew,NRauh/homebrew,zeha/homebrew,yoshida-mediba/homebrew,John-Colvin/homebrew,tutumcloud/homebrew,ened/homebrew,helloworld-zh/homebrew,ingmarv/homebrew,jbpionnier/homebrew,chiefy/homebrew,godu/homebrew,jmstacey/homebrew,grob3/homebrew,esamson/homebrew,syhw/homebrew,megahall/homebrew,Gui13/linuxbrew,qorelanguage/homebrew,jimmy906/homebrew,deorth/homebrew,odekopoon/homebrew,creationix/homebrew,tutumcloud/homebrew,zorosteven/homebrew,KenanSulayman/homebrew,zchee/homebrew,max-horvath/homebrew,mtigas/homebrew,andrew-regan/homebrew,pedromaltez-forks/homebrew,FiMka/homebrew,bidle/homebrew,MSch/homebrew,lucas-clemente/homebrew,TaylorMonacelli/homebrew,MoSal/homebrew,tuedan/homebrew,nshemonsky/homebrew,totalvoidness/homebrew,psibre/homebrew,alex-courtis/homebrew,LegNeato/homebrew,oncletom/homebrew,lmontrieux/homebrew,southwolf/homebrew,elig/homebrew,simsicon/homebrew,AntonioMeireles/homebrew,kikuchy/homebrew,LucyShapiro/before-after,Gutek/homebrew,LinusU/homebrew,southwolf/homebrew,mbi/homebrew,retrography/homebrew,saketkc/linuxbrew,thejustinwalsh/homebrew,zabawaba99/homebrew,jbeezley/homebrew,cmvelo/homebrew,sideci-sample/sideci-sample-homebrew,ablyler/homebrew,kyanny/homebrew,sitexa/homebrew,blogabe/homebrew,packetcollision/homebrew,ktaragorn/homebrew,kenips/homebrew,Homebrew/linuxbrew,mgiglia/homebrew,anders/homebrew,quantumsteve/homebrew,zoidbergwill/homebrew,LaurentFough/homebrew,dstndstn/homebrew,kevmoo/homebrew,bendemaree/homebrew,psibre/homebrew,3van/homebrew,ainstushar/homebrew,southwolf/homebrew,keithws/homebrew,ainstushar/homebrew,virtuald/homebrew,shazow/homebrew,AlekSi/homebrew,dickeyxxx/homebrew,deployable/homebrew,kawanet/homebrew,jack-and-rozz/linuxbrew,zhimsel/homebrew,kim0/homebrew,bettyDes/homebrew,Ivanopalas/homebrew,LonnyGomes/homebrew,ekmett/homebrew,phrase/homebrew,andreyto/homebrew,jonafato/homebrew,zebMcCorkle/homebrew,mathieubolla/homebrew,caputomarcos/linuxbrew,feuvan/homebrew,ngoyal/homebrew,jconley/homebrew,marcusandre/homebrew,hwhelchel/homebrew,petercm/homebrew,hvnsweeting/homebrew,alex/homebrew,SuperNEMO-DBD/cadfaelbrew,mcolic/homebrew,atsjj/homebrew,caputomarcos/linuxbrew,digiter/linuxbrew,johanhammar/homebrew,SampleLiao/homebrew,timomeinen/homebrew,sidhart/homebrew,pigoz/homebrew,LinusU/homebrew,brianmhunt/homebrew,Spacecup/homebrew,hwhelchel/homebrew,galaxy001/homebrew,brunchboy/homebrew,danielmewes/homebrew,julienXX/homebrew,stevenjack/homebrew,lemaiyan/homebrew,adamliter/linuxbrew,bl1nk/homebrew,mciantyre/homebrew,jonafato/homebrew,wadejong/homebrew,romejoe/linuxbrew,petere/homebrew,joshfriend/homebrew,bl1nk/homebrew,kimhunter/homebrew,decors/homebrew,ktaragorn/homebrew,flysonic10/homebrew,dickeyxxx/homebrew,elamc/homebrew,kmiscia/homebrew,lrascao/homebrew,pcottle/homebrew,ctate/autocode-homebrew,nshemonsky/homebrew,emcrisostomo/homebrew,dholm/linuxbrew,ebardsley/homebrew,Lywangwenbin/homebrew,helloworld-zh/homebrew,quantumsteve/homebrew,prasincs/homebrew,LeoCavaille/homebrew,indrajitr/homebrew,missingcharacter/homebrew,johanhammar/homebrew,Linuxbrew/linuxbrew,pedromaltez-forks/homebrew,vinicius5581/homebrew,dalanmiller/homebrew,kawanet/homebrew,cjheath/homebrew,gonzedge/homebrew,henry0312/homebrew,jiashuw/homebrew,OlivierParent/homebrew,drewwells/homebrew,chadcatlett/homebrew,DoomHammer/linuxbrew,bidle/homebrew,mciantyre/homebrew,JerroldLee/homebrew,tany-ovcharenko/depot,kashif/homebrew,dalinaum/homebrew,zoidbergwill/homebrew,bbahrami/homebrew,antst/homebrew,sigma-random/homebrew,ssp/homebrew,theckman/homebrew,LegNeato/homebrew,karlhigley/homebrew,sportngin/homebrew,kashif/homebrew,tseven/homebrew,lhahne/homebrew,utzig/homebrew,haihappen/homebrew,dholm/linuxbrew,tuxu/homebrew,TrevorSayre/homebrew,gabelevi/homebrew,nnutter/homebrew,MoSal/homebrew,zj568/homebrew,dunn/homebrew,sideci-sample/sideci-sample-homebrew,boyanpenkov/homebrew,pgr0ss/homebrew,dunn/linuxbrew,RadicalZephyr/homebrew,tbeckham/homebrew,bruno-/homebrew,sportngin/homebrew,wfalkwallace/homebrew,jedahan/homebrew,peteristhegreat/homebrew,oneillkza/linuxbrew,geoff-codes/homebrew,3van/homebrew,mattfritz/homebrew,phatblat/homebrew,linse073/homebrew,jcassiojr/homebrew,ptolemarch/homebrew,notDavid/homebrew,mgiglia/homebrew,ls2uper/homebrew,elasticdog/homebrew,jack-and-rozz/linuxbrew,zachmayer/homebrew,Zearin/homebrew,arnested/homebrew,lvh/homebrew,theckman/homebrew,pigoz/homebrew,summermk/homebrew,dongcarl/homebrew,nicowilliams/homebrew,tghs/linuxbrew,amenk/linuxbrew,megahall/homebrew,davidmalcolm/homebrew,Cutehacks/homebrew,theckman/homebrew,hanlu-chen/homebrew,tuxu/homebrew,10sr/linuxbrew,thinker0/homebrew,rhunter/homebrew,TrevorSayre/homebrew,Drewshg312/homebrew,bjlxj2008/homebrew,soleo/homebrew,dgageot/homebrew,ear/homebrew,YOTOV-LIMITED/homebrew,thuai/boxen,yazuuchi/homebrew,johanhammar/homebrew,joschi/homebrew,kodabb/homebrew,okuramasafumi/homebrew,tomas/homebrew,kikuchy/homebrew,rtyley/homebrew,dardo82/homebrew,princeofdarkness76/homebrew,craig5/homebrew,MartinSeeler/homebrew,kodabb/homebrew,AlexejK/homebrew,ngoyal/homebrew,lucas-clemente/homebrew,lvicentesanchez/homebrew,samplecount/homebrew,mattprowse/homebrew,sigma-random/homebrew,pdpi/homebrew,SnoringFrog/homebrew,DarthGandalf/homebrew,pwnall/homebrew,okuramasafumi/homebrew,mtigas/homebrew,kazuho/homebrew,crystal/autocode-homebrew,benesch/homebrew,sachiketi/homebrew,lvh/homebrew,zj568/homebrew,coldeasy/homebrew,influxdb/homebrew,Gasol/homebrew,recruit-tech/homebrew,ssgelm/homebrew,Hs-Yeah/homebrew,dstndstn/homebrew,bendemaree/homebrew,tobz-nz/homebrew,mroch/homebrew,zfarrell/homebrew,koenrh/homebrew,hmalphettes/homebrew,jesboat/homebrew,mxk1235/homebrew,otaran/homebrew,OlivierParent/homebrew,akupila/homebrew,muellermartin/homebrew,skinny-framework/homebrew,blairham/homebrew,amjith/homebrew,baob/homebrew,sideci-sample/sideci-sample-homebrew,atsjj/homebrew,seeden/homebrew,calmez/homebrew,fabianfreyer/homebrew,FiMka/homebrew,ingmarv/homebrew,elig/homebrew,mroth/homebrew,haf/homebrew,msurovcak/homebrew,Govinda-Fichtner/homebrew,knpwrs/homebrew,ndimiduk/homebrew,gijzelaerr/homebrew,jsjohnst/homebrew,iblueer/homebrew,virtuald/homebrew,trombonehero/homebrew,finde/homebrew,wkentaro/homebrew,cprecioso/homebrew,windoze/homebrew,stevenjack/homebrew,rneatherway/homebrew,grmartin/homebrew,mbi/homebrew,arrowcircle/homebrew,hyuni/homebrew,feelpp/homebrew,barn/homebrew,thebyrd/homebrew,ExtremeMan/homebrew,jlisic/linuxbrew,mndrix/homebrew,brianmhunt/homebrew,kashif/homebrew,sptramer/homebrew,dstndstn/homebrew,vigo/homebrew,glowe/homebrew,gijzelaerr/homebrew,jsallis/homebrew,asparagui/homebrew,elasticdog/homebrew,esalling23/homebrew,gildegoma/homebrew,jacobsa/homebrew,karlhigley/homebrew,mactkg/homebrew,boneskull/homebrew,oliviertoupin/homebrew,davidcelis/homebrew,muellermartin/homebrew,odekopoon/homebrew,jessamynsmith/homebrew,timomeinen/homebrew,pdpi/homebrew,jpsim/homebrew,zorosteven/homebrew,jamer/homebrew,cosmo0920/homebrew,eagleflo/homebrew,mxk1235/homebrew,will/homebrew,flysonic10/homebrew,dstftw/homebrew,packetcollision/homebrew,grepnull/homebrew,Dreysman/homebrew,cesar2535/homebrew,pgr0ss/homebrew,jbarker/homebrew,endelwar/homebrew,kim0/homebrew,craig5/homebrew,guidomb/homebrew,gcstang/homebrew,dtrebbien/homebrew,sugryo/homebrew,jeffmo/homebrew,djun-kim/homebrew,thejustinwalsh/homebrew,rnh/homebrew,ssgelm/homebrew,qorelanguage/homebrew,brianmhunt/homebrew,mkrapp/homebrew,LucyShapiro/before-after,ebardsley/homebrew,number5/homebrew,hermansc/homebrew,ebouaziz/linuxbrew,ainstushar/homebrew,egentry/homebrew,aaronwolen/homebrew,bkonosky/homebrew,alexethan/homebrew,goodcodeguy/homebrew,treyharris/homebrew,rcombs/homebrew,danielfariati/homebrew,zenazn/homebrew,danieroux/homebrew,blairham/homebrew,creationix/homebrew,iblueer/homebrew,eugenesan/homebrew,summermk/homebrew,durka/homebrew,guoxiao/homebrew,tpot/homebrew,tomas/linuxbrew,rillian/homebrew,ngoyal/homebrew,lvicentesanchez/linuxbrew,yyn835314557/homebrew,lrascao/homebrew,SuperNEMO-DBD/cadfaelbrew,alanthing/homebrew,trajano/homebrew,deorth/homebrew,tschoonj/homebrew,lemaiyan/homebrew,rlhh/homebrew,adevress/homebrew,bjlxj2008/homebrew,gicmo/homebrew,shawndellysse/homebrew,oubiwann/homebrew,durka/homebrew,dmarkrollins/homebrew,rstacruz/homebrew,songjizu001/homebrew,thuai/boxen,Angeldude/linuxbrew,pdxdan/homebrew,onlynone/homebrew,Govinda-Fichtner/homebrew,e-jigsaw/homebrew,jonafato/homebrew,slyphon/homebrew,ieure/homebrew,simsicon/homebrew,alexreg/homebrew,silentbicycle/homebrew,rlister/homebrew,liamstask/homebrew,prasincs/homebrew,afh/homebrew,haosdent/homebrew,ryanfb/homebrew,fabianschuiki/homebrew,arrowcircle/homebrew,jiaoyigui/homebrew,ehamberg/homebrew,jwillemsen/homebrew,jlisic/linuxbrew,calmez/homebrew,rnh/homebrew,miry/homebrew,theckman/homebrew,ngoldbaum/homebrew,sidhart/homebrew,flysonic10/homebrew,AGWA-forks/homebrew,filcab/homebrew,hkwan003/homebrew,bigbes/homebrew,idolize/homebrew,sachiketi/homebrew,Red54/homebrew,RandyMcMillan/homebrew,mattbostock/homebrew,jingweno/homebrew,kalbasit/homebrew,ctate/autocode-homebrew,dtan4/homebrew,brotbert/homebrew,kimhunter/homebrew,dlesaca/homebrew,codeout/homebrew,ryanmt/homebrew,dgageot/homebrew,tjhei/linuxbrew,bettyDes/homebrew,imjerrybao/homebrew,2inqui/homebrew,pwnall/homebrew,mroth/homebrew,BlackFrog1/homebrew,windoze/homebrew,neronplex/homebrew,jsjohnst/homebrew,tutumcloud/homebrew,julienXX/homebrew,mattprowse/homebrew,akupila/homebrew,outcoldman/homebrew,sferik/homebrew,dardo82/homebrew,verbitan/homebrew,Hasimir/homebrew,davydden/linuxbrew,elasticdog/homebrew,harsha-mudi/homebrew,alexbukreev/homebrew,rosalsm/homebrew,cooltheo/homebrew,kazuho/homebrew,afdnlw/linuxbrew,pullreq/homebrew,recruit-tech/homebrew,oliviertilmans/homebrew,frodeaa/homebrew,tpot/homebrew,gnubila-france/linuxbrew,dericed/homebrew,klatys/homebrew,cchacin/homebrew,Chilledheart/homebrew,Firefishy/homebrew,kwadade/LearnRuby,pcottle/homebrew,mathieubolla/homebrew,jwillemsen/homebrew,kidaa/homebrew,jwillemsen/homebrew,thuai/boxen,knpwrs/homebrew,RadicalZephyr/homebrew,nnutter/homebrew,georgschoelly/homebrew,adriancole/homebrew,francaguilar/homebrew,mtigas/homebrew,baldwicc/homebrew,anarchivist/homebrew,dtan4/homebrew,Homebrew/homebrew,gnubila-france/linuxbrew,MartinSeeler/homebrew,Sachin-Ganesh/homebrew,ryanmt/homebrew,cprecioso/homebrew,JerroldLee/homebrew,crystal/autocode-homebrew,polamjag/homebrew,mjc-/homebrew,gcstang/linuxbrew,rnh/homebrew,tuedan/homebrew,wrunnery/homebrew,davidmalcolm/homebrew,linjunpop/homebrew,mapbox/homebrew,ento/homebrew,denvazh/homebrew,srikalyan/homebrew,optikfluffel/homebrew,sublimino/linuxbrew,Drewshg312/homebrew,adevress/homebrew,qiruiyin/homebrew,dolfly/homebrew,phrase/homebrew,danielmewes/homebrew,QuinnyPig/homebrew,gcstang/homebrew,paulbakker/homebrew,pigri/homebrew,jpascal/homebrew,petemcw/homebrew,reelsense/homebrew,morevalily/homebrew,soleo/homebrew,omriiluz/homebrew,hikaruworld/homebrew,qorelanguage/homebrew,RadicalZephyr/homebrew,torgartor21/homebrew,gicmo/homebrew,tomyun/homebrew,evanrs/homebrew,optikfluffel/homebrew,bettyDes/homebrew,marcwebbie/homebrew,kwilczynski/homebrew,mhartington/homebrew,pinkpolygon/homebrew,adamliter/homebrew,trskop/linuxbrew,youtux/homebrew,dolfly/homebrew,rillian/homebrew,thrifus/homebrew,ablyler/homebrew,feugenix/homebrew,godu/homebrew,benswift404/homebrew,asparagui/homebrew,AICIDNN/homebrew,LeoCavaille/homebrew,finde/homebrew,esamson/homebrew,Firefishy/homebrew,sferik/homebrew,rhendric/homebrew,gcstang/homebrew,supriyantomaftuh/homebrew,tschoonj/homebrew,sdebnath/homebrew,dtan4/homebrew,rs/homebrew,iandennismiller/homebrew,hyuni/homebrew,ryanshaw/homebrew,tomekr/homebrew,jbeezley/homebrew,guidomb/homebrew,xanderlent/homebrew,marcusandre/homebrew,Hs-Yeah/homebrew,LucyShapiro/before-after,hyuni/homebrew,erezny/homebrew,soleo/homebrew,ortho/homebrew,qorelanguage/homebrew,JerroldLee/homebrew,dalanmiller/homebrew,qiruiyin/homebrew,sitexa/homebrew,nju520/homebrew,brevilo/linuxbrew,whistlerbrk/homebrew,redpen-cc/homebrew,protomouse/homebrew,n8henrie/homebrew,tomekr/homebrew,filcab/homebrew,tpot/homebrew,dalguji/homebrew,jamer/homebrew,dai0304/homebrew,yazuuchi/homebrew,sugryo/homebrew,alindeman/homebrew,pampata/homebrew,theopolis/homebrew,megahall/homebrew,Krasnyanskiy/homebrew,GeekHades/homebrew,slnovak/homebrew,AntonioMeireles/homebrew,number5/homebrew,vinodkone/homebrew,adamliter/homebrew,jkarneges/homebrew,utzig/homebrew,gcstang/linuxbrew,rneatherway/homebrew,Gutek/homebrew,reelsense/homebrew,rneatherway/homebrew,s6stuc/homebrew,petemcw/homebrew,base10/homebrew,xcezx/homebrew,Homebrew/homebrew,jconley/homebrew,creack/homebrew,stevenjack/homebrew,afb/homebrew,rgbkrk/homebrew,carlmod/homebrew,cchacin/homebrew,phatblat/homebrew,tomguiter/homebrew,mpfz0r/homebrew,helloworld-zh/homebrew,amjith/homebrew,outcoldman/homebrew,ffleming/homebrew,DoomHammer/linuxbrew,187j3x1/homebrew,frozzare/homebrew,hikaruworld/homebrew,jab/homebrew,dutchcoders/homebrew,jiaoyigui/homebrew,zeezey/homebrew,adamliter/linuxbrew,saketkc/homebrew,pnorman/homebrew,mobileoverlord/homebrew-1,yazuuchi/homebrew,tylerball/homebrew,ybott/homebrew,princeofdarkness76/linuxbrew,pdpi/homebrew,liuquansheng47/Homebrew,finde/homebrew,freedryk/homebrew,amenk/linuxbrew,RSamokhin/homebrew,keith/homebrew,emilyst/homebrew,ehamberg/homebrew,AICIDNN/homebrew,hermansc/homebrew,giffels/homebrew,hanxue/homebrew,ebouaziz/linuxbrew,sorin-ionescu/homebrew,dalanmiller/homebrew,antogg/homebrew,kalbasit/homebrew,kkirsche/homebrew,daviddavis/homebrew,Austinpb/homebrew,supriyantomaftuh/homebrew,jasonm23/homebrew,marcwebbie/homebrew,arcivanov/linuxbrew,mmizutani/homebrew,amjith/homebrew,elgertam/homebrew,zorosteven/homebrew,bertjwregeer/homebrew,cooltheo/homebrew,mmizutani/homebrew,kilojoules/homebrew,silentbicycle/homebrew,felixonmars/homebrew,LeonB/linuxbrew,klatys/homebrew,dongcarl/homebrew,maxhope/homebrew,callahad/homebrew,yidongliu/homebrew,ortho/homebrew,sigma-random/homebrew,IsmailM/linuxbrew,mroch/homebrew,yyn835314557/homebrew,francaguilar/homebrew,hanxue/homebrew,SuperNEMO-DBD/cadfaelbrew,imjerrybao/homebrew,xuebinglee/homebrew,andyshinn/homebrew,ralic/homebrew,adamliter/linuxbrew,verdurin/homebrew,changzuozhen/homebrew,ge11232002/homebrew,stoshiya/homebrew,digiter/linuxbrew,e-jigsaw/homebrew,joschi/homebrew,jiashuw/homebrew,2inqui/homebrew,jbaum98/linuxbrew,colindean/homebrew,polishgeeks/homebrew,chadcatlett/homebrew,tomas/linuxbrew,trombonehero/homebrew,Drewshg312/homebrew,patrickmckenna/homebrew,grepnull/homebrew,torgartor21/homebrew,jmtd/homebrew,miketheman/homebrew,mobileoverlord/homebrew-1,davidmalcolm/homebrew,danielfariati/homebrew,gyaresu/homebrew,AlekSi/homebrew,verbitan/homebrew,Angeldude/linuxbrew,neronplex/homebrew,dunn/homebrew,jspahrsummers/homebrew,ehamberg/homebrew,mattfarina/homebrew,pdxdan/homebrew,kevmoo/homebrew,barn/homebrew,marcoceppi/homebrew,alex-zhang/homebrew,dai0304/homebrew,cHoco/homebrew,wrunnery/homebrew,ericfischer/homebrew,SnoringFrog/homebrew,paulbakker/homebrew,a1dutch/homebrew,reelsense/homebrew,mxk1235/homebrew,erkolson/homebrew,tbetbetbe/linuxbrew,kevmoo/homebrew,RandyMcMillan/homebrew,drewpc/homebrew,keith/homebrew,Redth/homebrew,caputomarcos/linuxbrew,tylerball/homebrew,erkolson/homebrew,feuvan/homebrew,Monits/homebrew,10sr/linuxbrew,nnutter/homebrew,getgauge/homebrew,jiashuw/homebrew,jianjin/homebrew,s6stuc/homebrew,Sachin-Ganesh/homebrew,cHoco/homebrew,SteveClement/homebrew,Gasol/homebrew,JerroldLee/homebrew,AtkinsChang/homebrew,bluca/homebrew,joshua-rutherford/homebrew,thinker0/homebrew,marcoceppi/homebrew,robrix/homebrew,Moisan/homebrew,geometrybase/homebrew,oncletom/homebrew,rhoffman3621/learn-rails,dholm/homebrew,ianbrandt/homebrew,galaxy001/homebrew,Sachin-Ganesh/homebrew,cprecioso/homebrew,ngoldbaum/homebrew,elyscape/homebrew,windoze/homebrew,redpen-cc/homebrew,zeezey/homebrew,PikachuEXE/homebrew,ento/homebrew,jab/homebrew,drewpc/homebrew,kikuchy/homebrew,halloleo/homebrew,3van/homebrew,henry0312/homebrew,halloleo/homebrew,bjorand/homebrew,rosalsm/homebrew,bluca/homebrew,jlisic/linuxbrew,wrunnery/homebrew,dlesaca/homebrew,FiMka/homebrew,ajshort/homebrew,moyogo/homebrew,frodeaa/homebrew,dgageot/homebrew,nathancahill/homebrew,ehogberg/homebrew,samplecount/homebrew,phatblat/homebrew,alexreg/homebrew,dlo/homebrew,swallat/homebrew,10sr/linuxbrew,cnbin/homebrew,ainstushar/homebrew,aguynamedryan/homebrew,nshemonsky/homebrew,dai0304/homebrew,theopolis/homebrew,miry/homebrew,wadejong/homebrew,blairham/homebrew,carlmod/homebrew,vladshablinsky/homebrew,afdnlw/linuxbrew,lewismc/homebrew,ericzhou2008/homebrew,boyanpenkov/homebrew,nkolomiec/homebrew,kbinani/homebrew,cristobal/homebrew,ffleming/homebrew,6100590/homebrew,tuxu/homebrew,xuebinglee/homebrew,vladshablinsky/homebrew,pigri/homebrew,cooltheo/homebrew,woodruffw/homebrew-test,tschoonj/homebrew,rwstauner/homebrew,changzuozhen/homebrew,Homebrew/linuxbrew,rosalsm/homebrew,tjnycum/homebrew,southwolf/homebrew,hvnsweeting/homebrew,kvs/homebrew,influxdata/homebrew,durka/homebrew,harelba/homebrew,sorin-ionescu/homebrew,Dreysman/homebrew,jonafato/homebrew,pigoz/homebrew,englishm/homebrew,sugryo/homebrew,3van/homebrew,tyrchen/homebrew,esalling23/homebrew,iamcharp/homebrew,eagleflo/homebrew,sock-puppet/homebrew,scpeters/homebrew,pampata/homebrew,chiefy/homebrew,bright-sparks/homebrew,tbetbetbe/linuxbrew,Originate/homebrew,hermansc/homebrew,hmalphettes/homebrew,bchatard/homebrew,benjaminfrank/homebrew,Originate/homebrew,zoidbergwill/homebrew,blairham/homebrew,alanthing/homebrew,xb123456456/homebrew,goodcodeguy/homebrew,bbahrami/homebrew,rgbkrk/homebrew,brotbert/homebrew,ldiqual/homebrew,khwon/homebrew,robrix/homebrew,skatsuta/homebrew,pwnall/homebrew,pnorman/homebrew,tonyghita/homebrew,youprofit/homebrew,amenk/linuxbrew,tkelman/homebrew,rneatherway/homebrew,rstacruz/homebrew,mttrb/homebrew,int3h/homebrew,jarrettmeyer/homebrew,xinlehou/homebrew,miketheman/homebrew,dmarkrollins/homebrew,mcolic/homebrew,jiaoyigui/homebrew,kwadade/LearnRuby,gyaresu/homebrew,arg/homebrew,anjackson/homebrew,ryanmt/homebrew,clemensg/homebrew,mommel/homebrew,bendemaree/homebrew,xyproto/homebrew,jose-cieni-movile/homebrew,brevilo/linuxbrew,ear/homebrew,alebcay/homebrew,robrix/homebrew,oneillkza/linuxbrew,jcassiojr/homebrew,catap/homebrew,jpscaletti/homebrew,haf/homebrew,cvrebert/homebrew,totalvoidness/homebrew,jose-cieni-movile/homebrew,jamesdphillips/homebrew,max-horvath/homebrew,poindextrose/homebrew,SteveClement/homebrew,koraktor/homebrew,zebMcCorkle/homebrew,missingcharacter/homebrew,xinlehou/homebrew,AGWA-forks/homebrew,teslamint/homebrew,alex-courtis/homebrew,tbeckham/homebrew,GeekHades/homebrew,iamcharp/homebrew,ehogberg/homebrew,Noctem/homebrew,jmtd/homebrew,hwhelchel/homebrew,karlhigley/homebrew,seegno-forks/homebrew,malmaud/homebrew,elgertam/homebrew,tkelman/homebrew,goodcodeguy/homebrew,bitrise-io/homebrew,jmagnusson/homebrew,TaylorMonacelli/homebrew,AlekSi/homebrew,harsha-mudi/homebrew,alex/homebrew,polamjag/homebrew,ktaragorn/homebrew,englishm/homebrew,jsallis/homebrew,tehmaze-labs/homebrew,e-jigsaw/homebrew,thebyrd/homebrew,SiegeLord/homebrew,buzzedword/homebrew,dplarson/homebrew,hongkongkiwi/homebrew,josa42/homebrew,yoshida-mediba/homebrew,marcoceppi/homebrew,int3h/homebrew,mciantyre/homebrew,felixonmars/homebrew,marcoceppi/homebrew,tomguiter/homebrew,jackmcgreevy/homebrew,h3r2on/homebrew,manphiz/homebrew,sock-puppet/homebrew,woodruffw/homebrew-test,harsha-mudi/homebrew,dalinaum/homebrew,davydden/homebrew,colindean/homebrew,KenanSulayman/homebrew,nelstrom/homebrew,vinicius5581/homebrew,gunnaraasen/homebrew,jkarneges/homebrew,kwilczynski/homebrew,MartinSeeler/homebrew,onlynone/homebrew,ehogberg/homebrew,royhodgman/homebrew,alanthing/homebrew,influxdata/homebrew,aristiden7o/homebrew,higanworks/homebrew,thuai/boxen,Klozz/homebrew,linkinpark342/homebrew,Drewshg312/homebrew,frickler01/homebrew,zhipeng-jia/homebrew,benesch/homebrew,s6stuc/homebrew,vladshablinsky/homebrew,elgertam/homebrew,jamer/homebrew,adriancole/homebrew,mapbox/homebrew,summermk/homebrew,cprecioso/homebrew,wangranche/homebrew,decors/homebrew,rgbkrk/homebrew,ahihi/tigerbrew,fabianfreyer/homebrew,caijinyan/homebrew,zachmayer/homebrew,kyanny/homebrew,syhw/homebrew,MrChen2015/homebrew,bettyDes/homebrew,tzudot/homebrew,dkotvan/homebrew,heinzf/homebrew,reelsense/linuxbrew,dunn/linuxbrew,MSch/homebrew,cbeck88/linuxbrew,Originate/homebrew,vihangm/homebrew,yangj1e/homebrew,exicon/homebrew,scorphus/homebrew,silentbicycle/homebrew,Austinpb/homebrew,polishgeeks/homebrew,zoltansx/homebrew,jbaum98/linuxbrew,craigbrad/homebrew,akshayvaidya/homebrew,deployable/homebrew,tobz-nz/homebrew,linkinpark342/homebrew,bruno-/homebrew,drewpc/homebrew,baldwicc/homebrew,prasincs/homebrew,yangj1e/homebrew,dreid93/homebrew,hanxue/homebrew,tzudot/homebrew,ralic/homebrew,MonCoder/homebrew,rillian/homebrew,jarrettmeyer/homebrew,iggyvolz/linuxbrew,notDavid/homebrew,mrkn/homebrew,nelstrom/homebrew,jconley/homebrew,mtfelix/homebrew,davidcelis/homebrew,dunn/homebrew,tkelman/homebrew,jpascal/homebrew,amenk/linuxbrew,bendemaree/homebrew,anders/homebrew,danielmewes/homebrew,huitseeker/homebrew,kimhunter/homebrew,hvnsweeting/homebrew,brevilo/linuxbrew,petere/homebrew,frickler01/homebrew,getgauge/homebrew,LeonB/linuxbrew,tstack/homebrew,bl1nk/homebrew,indera/homebrew,xinlehou/homebrew,stevenjack/homebrew,afdnlw/linuxbrew,valkjsaaa/homebrew,Lywangwenbin/homebrew,slnovak/homebrew,samthor/homebrew,jbpionnier/homebrew,gildegoma/homebrew,rlhh/homebrew,NfNitLoop/homebrew,tschoonj/homebrew,shawndellysse/homebrew,xanderlent/homebrew,tbetbetbe/linuxbrew,nkolomiec/homebrew,gunnaraasen/homebrew,yoshida-mediba/homebrew,oliviertoupin/homebrew,base10/homebrew,yidongliu/homebrew,freedryk/homebrew,andreyto/homebrew,gnawhleinad/homebrew,sdebnath/homebrew,fabianschuiki/homebrew,schuyler/homebrew,jpsim/homebrew,tseven/homebrew,calmez/homebrew,kwadade/LearnRuby,seeden/homebrew,peteristhegreat/homebrew,dplarson/homebrew,joschi/homebrew,2inqui/homebrew,a-b/homebrew,DDShadoww/homebrew,ericfischer/homebrew,SiegeLord/homebrew,stevenjack/homebrew,tjschuck/homebrew,aaronwolen/homebrew,ajshort/homebrew,elyscape/homebrew,alexbukreev/homebrew,tavisto/homebrew,martinklepsch/homebrew,ilovezfs/homebrew,MoSal/homebrew,mjbshaw/homebrew,vinicius5581/homebrew,ilovezfs/homebrew,pampata/homebrew,jasonm23/homebrew,jbarker/homebrew,alex-courtis/homebrew,pitatensai/homebrew,egentry/homebrew,5zzang/homebrew,hanlu-chen/homebrew,trajano/homebrew,scorphus/homebrew,jeremiahyan/homebrew,SteveClement/homebrew,cHoco/homebrew,jessamynsmith/homebrew,francaguilar/homebrew,caijinyan/homebrew,lewismc/homebrew,brianmhunt/homebrew,yyn835314557/homebrew,boneskull/homebrew,dreid93/homebrew,telamonian/linuxbrew,valkjsaaa/homebrew,LegNeato/homebrew,boneskull/homebrew,frozzare/homebrew,will/homebrew,exicon/homebrew,rlhh/homebrew,kidaa/homebrew,exicon/homebrew,hkwan003/homebrew,pullreq/homebrew,Gui13/linuxbrew,mokkun/homebrew,jpscaletti/homebrew,danielfariati/homebrew,KevinSjoberg/homebrew,adamchainz/homebrew,ilovezfs/homebrew,royalwang/homebrew,LonnyGomes/homebrew,andyshinn/homebrew,mrkn/homebrew,Firefishy/homebrew,shazow/homebrew,zhipeng-jia/homebrew,aristiden7o/homebrew,AlexejK/homebrew,michaKFromParis/homebrew-sparks,Cottser/homebrew,bkonosky/homebrew,drewwells/homebrew,RandyMcMillan/homebrew,jbeezley/homebrew,mattfarina/homebrew,lewismc/homebrew,Govinda-Fichtner/homebrew,bigbes/homebrew,thejustinwalsh/homebrew,malmaud/homebrew,phrase/homebrew,ptolemarch/homebrew,ahihi/tigerbrew,youtux/homebrew,tomas/homebrew,mroch/homebrew,sjackman/linuxbrew,elamc/homebrew,jeremiahyan/homebrew,chkuendig/homebrew,tuxu/homebrew,jingweno/homebrew,kvs/homebrew,scardetto/homebrew,kevinastone/homebrew,getgauge/homebrew,haihappen/homebrew,ericfischer/homebrew,dstftw/homebrew,cffk/homebrew,feugenix/homebrew,wangranche/homebrew,alebcay/homebrew,okuramasafumi/homebrew,alindeman/homebrew,SnoringFrog/homebrew,asparagui/homebrew,anjackson/homebrew,MartinDelille/homebrew,tobz-nz/homebrew,adamchainz/homebrew,winordie-47/linuxbrew1,harelba/homebrew,tjnycum/homebrew,rstacruz/homebrew,boshnivolo/homebrew,2inqui/homebrew,mkrapp/homebrew,alexandrecormier/homebrew,jeremiahyan/homebrew,jsallis/homebrew,malmaud/homebrew,int3h/homebrew,ilidar/homebrew,haosdent/homebrew,dstftw/homebrew,msurovcak/homebrew,aguynamedryan/homebrew,ingmarv/homebrew,ento/homebrew,redpen-cc/homebrew,princeofdarkness76/linuxbrew,kbinani/homebrew,indera/homebrew,royalwang/homebrew,qskycolor/homebrew,alanthing/homebrew,RadicalZephyr/homebrew,Spacecup/homebrew,chiefy/homebrew,zfarrell/homebrew,lrascao/homebrew,apjanke/homebrew,thos37/homebrew,danieroux/homebrew,a1dutch/homebrew,jcassiojr/homebrew,DarthGandalf/homebrew,ptolemarch/homebrew,craigbrad/homebrew,stoshiya/homebrew,romejoe/linuxbrew,mbrevda/homebrew,darknessomi/homebrew,ffleming/homebrew,influxdb/homebrew,chabhishek123/homebrew,fabianschuiki/homebrew,gabelevi/homebrew,jtrag/homebrew,AlekSi/homebrew,bendoerr/homebrew,paour/homebrew,galaxy001/homebrew,6100590/homebrew,decors/homebrew,mattbostock/homebrew,scorphus/homebrew,dalguji/homebrew,superlukas/homebrew,tkelman/homebrew,benjaminfrank/homebrew,xb123456456/homebrew,dambrisco/homebrew,liamstask/homebrew,tomas/homebrew,jpsim/homebrew,adriancole/homebrew,ge11232002/homebrew,QuinnyPig/homebrew,ralic/homebrew,sorin-ionescu/homebrew,feelpp/homebrew,geometrybase/homebrew,will/homebrew,moltar/homebrew,IsmailM/linuxbrew,tseven/homebrew,mcolic/homebrew,OlivierParent/homebrew,dirn/homebrew,pitatensai/homebrew,kenips/homebrew,treyharris/homebrew,sometimesfood/homebrew,treyharris/homebrew,pwnall/homebrew,tehmaze-labs/homebrew,kimhunter/homebrew,dunn/linuxbrew,scpeters/homebrew,linkinpark342/homebrew,pedromaltez-forks/homebrew,petercm/homebrew,dtrebbien/homebrew,akshayvaidya/homebrew,callahad/homebrew,koraktor/homebrew,mindrones/homebrew,khwon/homebrew,Angeldude/linuxbrew,antst/homebrew,khwon/homebrew,LaurentFough/homebrew,vladshablinsky/homebrew,sometimesfood/homebrew,waynegraham/homebrew,miry/homebrew,kgb4000/homebrew,bl1nk/homebrew,BrewTestBot/homebrew,nicowilliams/homebrew,feuvan/homebrew,amjith/homebrew,outcoldman/linuxbrew,mgiglia/homebrew,Sachin-Ganesh/homebrew,afdnlw/linuxbrew,boshnivolo/homebrew,SteveClement/homebrew,julienXX/homebrew,calmez/homebrew,oliviertoupin/homebrew,glowe/homebrew,aaronwolen/homebrew,tsaeger/homebrew,nathancahill/homebrew,OJFord/homebrew,sje30/homebrew,Cottser/homebrew,neronplex/homebrew,Redth/homebrew,catap/homebrew,afh/homebrew,ablyler/homebrew,woodruffw/homebrew-test,kbinani/homebrew,coldeasy/homebrew,windoze/homebrew,markpeek/homebrew,int3h/homebrew,kilojoules/homebrew,joeyhoer/homebrew,linkinpark342/homebrew,kodabb/homebrew,jedahan/homebrew,okuramasafumi/homebrew,theeternalsw0rd/homebrew,francaguilar/homebrew,menivaitsi/homebrew,polamjag/homebrew,ssp/homebrew,muellermartin/homebrew,nicowilliams/homebrew,srikalyan/homebrew,indrajitr/homebrew,esalling23/homebrew,digiter/linuxbrew,iandennismiller/homebrew,ls2uper/homebrew,mactkg/homebrew,kbrock/homebrew,dai0304/homebrew,auvi/homebrew,mjbshaw/homebrew,bbhoss/homebrew,emcrisostomo/homebrew,6100590/homebrew,blogabe/homebrew,lemaiyan/homebrew,teslamint/homebrew,Linuxbrew/linuxbrew,maxhope/homebrew,erkolson/homebrew,pcottle/homebrew,nkolomiec/homebrew,rs/homebrew,reelsense/homebrew,bbhoss/homebrew,1zaman/homebrew,royhodgman/homebrew,creack/homebrew,ssgelm/homebrew,manphiz/homebrew,arcivanov/linuxbrew,higanworks/homebrew,kenips/homebrew,feelpp/homebrew,LeoCavaille/homebrew,yazuuchi/homebrew,arg/homebrew,huitseeker/homebrew,dolfly/homebrew,Krasnyanskiy/homebrew,jimmy906/homebrew,vigo/homebrew,fabianfreyer/homebrew,tehmaze-labs/homebrew,tjt263/homebrew,onlynone/homebrew,ndimiduk/homebrew,koenrh/homebrew,frodeaa/homebrew,liuquansheng47/Homebrew,zfarrell/homebrew,number5/homebrew,jsjohnst/homebrew,marcelocantos/homebrew,darknessomi/homebrew,jeffmo/homebrew,slyphon/homebrew,nandub/homebrew,alex/homebrew,moyogo/homebrew,nysthee/homebrew,hakamadare/homebrew,jmstacey/homebrew,TrevorSayre/homebrew,Chilledheart/homebrew,iblueer/homebrew,dambrisco/homebrew,trskop/linuxbrew,ehamberg/homebrew,rhunter/homebrew,ilidar/homebrew,pgr0ss/homebrew,kgb4000/homebrew,jeromeheissler/homebrew,cesar2535/homebrew,sdebnath/homebrew,alex/homebrew,sje30/homebrew,Asuranceturix/homebrew,rtyley/homebrew,Habbie/homebrew,seegno-forks/homebrew,knpwrs/homebrew,joshua-rutherford/homebrew,zabawaba99/homebrew,xcezx/homebrew,missingcharacter/homebrew,influxdata/homebrew,moyogo/homebrew,jwatzman/homebrew,aaronwolen/homebrew,idolize/homebrew,youprofit/homebrew,caijinyan/homebrew,MonCoder/homebrew,AlexejK/homebrew,optikfluffel/homebrew,cnbin/homebrew,boshnivolo/homebrew,Moisan/homebrew,davydden/homebrew,mtigas/homebrew,CNA-Bld/homebrew,jedahan/homebrew,jehutymax/homebrew,dplarson/homebrew,ekmett/homebrew,ahihi/tigerbrew,protomouse/homebrew,keithws/homebrew,dolfly/homebrew,poindextrose/homebrew,aristiden7o/homebrew,danpalmer/homebrew,epixa/homebrew,grepnull/homebrew,mprobst/homebrew,bwmcadams/homebrew,gcstang/linuxbrew,pnorman/homebrew,Asuranceturix/homebrew,gvangool/homebrew,reelsense/linuxbrew,oschwald/homebrew,Ferrari-lee/homebrew,shawndellysse/homebrew,andy12530/homebrew,AGWA-forks/homebrew,rcombs/homebrew,rgbkrk/homebrew,xanderlent/homebrew,sptramer/homebrew,jkarneges/homebrew,jf647/homebrew,davydden/homebrew,idolize/homebrew,mndrix/homebrew,hanlu-chen/homebrew,ssp/homebrew,ilidar/homebrew,cchacin/homebrew,BlackFrog1/homebrew,kyanny/homebrew,dirn/homebrew,yyn835314557/homebrew,samplecount/homebrew,alfasapy/homebrew,Habbie/homebrew,danpalmer/homebrew,jiaoyigui/homebrew,danabrand/linuxbrew,MartinDelille/homebrew,qiruiyin/homebrew,OJFord/homebrew,imjerrybao/homebrew,rtyley/homebrew,ariscop/homebrew,danpalmer/homebrew,keithws/homebrew,torgartor21/homebrew,craig5/homebrew,pdxdan/homebrew,glowe/homebrew,KevinSjoberg/homebrew,smarek/homebrew,djun-kim/homebrew,bmroberts1987/homebrew,apjanke/homebrew,ndimiduk/homebrew,alex-zhang/homebrew,influxdata/homebrew,frickler01/homebrew,creack/homebrew,kilojoules/homebrew,baob/homebrew,bidle/homebrew,guidomb/homebrew,heinzf/homebrew,bwmcadams/homebrew,anders/homebrew,egentry/homebrew,halloleo/homebrew,RandyMcMillan/homebrew,jasonm23/homebrew,paour/homebrew,waj/homebrew,giffels/homebrew,royalwang/homebrew,chkuendig/homebrew,max-horvath/homebrew,xurui3762791/homebrew,dardo82/homebrew,saketkc/linuxbrew,keith/homebrew,tzudot/homebrew,sometimesfood/homebrew,trombonehero/homebrew,thrifus/homebrew,oncletom/homebrew,jeromeheissler/homebrew,YOTOV-LIMITED/homebrew,mobileoverlord/homebrew-1,Chilledheart/homebrew,michaKFromParis/homebrew-sparks,cscetbon/homebrew,xyproto/homebrew,sachiketi/homebrew,kidaa/homebrew,kgb4000/homebrew,scardetto/homebrew,xurui3762791/homebrew,marcusandre/homebrew,thos37/homebrew,djun-kim/homebrew,andy12530/homebrew,jf647/homebrew,kbinani/homebrew,nathancahill/homebrew,sjackman/linuxbrew,antogg/homebrew,hakamadare/homebrew,martinklepsch/homebrew,andreyto/homebrew,mattfarina/homebrew,ngoldbaum/homebrew,dtrebbien/homebrew,MrChen2015/homebrew,sjackman/linuxbrew,Hasimir/homebrew,max-horvath/homebrew,swallat/homebrew,brotbert/homebrew,TrevorSayre/homebrew,danabrand/linuxbrew,LegNeato/homebrew,thinker0/homebrew,iamcharp/homebrew,QuinnyPig/homebrew,dmarkrollins/homebrew,tomas/homebrew,antogg/homebrew,hikaruworld/homebrew,wolfd/homebrew,ktaragorn/homebrew,AtnNn/homebrew,jianjin/homebrew,denvazh/homebrew,adamliter/homebrew,kevmoo/homebrew,wfalkwallace/homebrew,anarchivist/homebrew,jpascal/homebrew,Monits/homebrew,poindextrose/homebrew,zachmayer/homebrew,princeofdarkness76/homebrew,jtrag/homebrew,jeffmo/homebrew,drewwells/homebrew,geoff-codes/homebrew,tsaeger/homebrew,kenips/homebrew,zenazn/homebrew,adamliter/linuxbrew,xcezx/homebrew,Klozz/homebrew,mmizutani/homebrew,phrase/homebrew,MSch/homebrew,pcottle/homebrew,wfarr/homebrew,dunn/homebrew,tylerball/homebrew,eugenesan/homebrew,ge11232002/homebrew,gunnaraasen/homebrew,superlukas/homebrew,Govinda-Fichtner/homebrew,liuquansheng47/Homebrew,hwhelchel/homebrew,xuebinglee/homebrew,gvangool/homebrew,yonglehou/homebrew,cvrebert/homebrew,marcwebbie/homebrew,mprobst/homebrew,codeout/homebrew,dirn/homebrew,aguynamedryan/homebrew,markpeek/homebrew,hyokosdeveloper/linuxbrew,boyanpenkov/homebrew,royhodgman/homebrew,akshayvaidya/homebrew,zhipeng-jia/homebrew,mokkun/homebrew,jonas/homebrew,mbi/homebrew,benesch/homebrew,dlesaca/homebrew,razamatan/homebrew,Linuxbrew/linuxbrew,packetcollision/homebrew,nysthee/homebrew,ekmett/homebrew,pvrs12/homebrew,tdsmith/linuxbrew,jimmy906/homebrew,torgartor21/homebrew,lewismc/homebrew,kawanet/homebrew,wolfd/homebrew,sakra/homebrew,redpen-cc/homebrew,tylerball/homebrew,trajano/homebrew,Monits/homebrew,epixa/homebrew,AtnNn/homebrew,baob/homebrew,Red54/homebrew,Kentzo/homebrew,gunnaraasen/homebrew,knpwrs/homebrew,morevalily/homebrew,Russell91/homebrew,giffels/homebrew,tjschuck/homebrew,paour/homebrew,morevalily/homebrew,jesboat/homebrew,scardetto/homebrew,kkirsche/homebrew,rlister/homebrew,jamesdphillips/homebrew,silentbicycle/homebrew,sakra/homebrew,utzig/homebrew,AtnNn/homebrew,ldiqual/homebrew,plattenschieber/homebrew,linjunpop/homebrew,yidongliu/homebrew,feugenix/homebrew,jeromeheissler/homebrew,SampleLiao/homebrew,liamstask/homebrew,mbrevda/homebrew,tomguiter/homebrew,dconnolly/homebrew,robrix/homebrew,swallat/homebrew,nandub/homebrew,dutchcoders/homebrew,mattfritz/homebrew,winordie-47/linuxbrew1,oliviertilmans/homebrew,recruit-tech/homebrew,whistlerbrk/homebrew,tavisto/homebrew,clemensg/homebrew,swallat/homebrew,shazow/homebrew,rcombs/homebrew,ssgelm/homebrew,mroth/homebrew,tjt263/homebrew,AlexejK/homebrew,ExtremeMan/homebrew,boneskull/homebrew,kvs/homebrew,Red54/homebrew,alebcay/homebrew,waj/homebrew,saketkc/homebrew,jwillemsen/homebrew,dholm/homebrew,bukzor/linuxbrew,eighthave/homebrew,s6stuc/homebrew,trskop/linuxbrew,gcstang/homebrew,hmalphettes/homebrew,jeremiahyan/homebrew,geoff-codes/homebrew,huitseeker/homebrew,emcrisostomo/homebrew,anarchivist/homebrew,Cutehacks/homebrew,ericfischer/homebrew,iandennismiller/homebrew,polamjag/homebrew,alexethan/homebrew,indrajitr/homebrew,ptolemarch/homebrew,base10/homebrew,shawndellysse/homebrew,LeonB/linuxbrew,alexandrecormier/homebrew,scardetto/homebrew,changzuozhen/homebrew,bitrise-io/homebrew,petemcw/homebrew,manphiz/homebrew,malmaud/homebrew,anarchivist/homebrew,dpalmer93/homebrew,alexethan/homebrew,drewpc/homebrew,tdsmith/linuxbrew,SampleLiao/homebrew,mcolic/homebrew,verdurin/homebrew,tghs/linuxbrew,paour/homebrew,jmstacey/homebrew,bbahrami/homebrew,poindextrose/homebrew,pitatensai/homebrew,gonzedge/homebrew,cchacin/homebrew,dtan4/homebrew,chkuendig/homebrew,h3r2on/homebrew,tomas/linuxbrew,drbenmorgan/linuxbrew,jacobsa/homebrew,alexreg/homebrew,oschwald/homebrew,nelstrom/homebrew,skatsuta/homebrew,optikfluffel/homebrew,craigbrad/homebrew,NRauh/homebrew,outcoldman/homebrew,tomguiter/homebrew,evanrs/homebrew,thrifus/homebrew,verbitan/homebrew,iostat/homebrew2,ablyler/homebrew,johanhammar/homebrew,kevmoo/homebrew,haihappen/homebrew,callahad/homebrew,outcoldman/homebrew,teslamint/homebrew,retrography/homebrew,booi/homebrew,QuinnyPig/homebrew,sarvex/linuxbrew,ldiqual/homebrew,davydden/linuxbrew,dconnolly/homebrew,pullreq/homebrew,jbarker/homebrew,chiefy/homebrew,thos37/homebrew,vihangm/homebrew,cffk/homebrew,elyscape/homebrew,slnovak/homebrew,osimola/homebrew,darknessomi/homebrew,IsmailM/linuxbrew,nandub/homebrew,lnr0626/homebrew,pinkpolygon/homebrew,ericzhou2008/homebrew,Originate/homebrew,eagleflo/homebrew,theeternalsw0rd/homebrew,tomas/linuxbrew,davidcelis/homebrew,bukzor/homebrew,barn/homebrew,WangGL1985/homebrew,Ferrari-lee/homebrew,freedryk/homebrew,joshfriend/homebrew,jiashuw/homebrew,rnh/homebrew,jgelens/homebrew,reelsense/linuxbrew,jmstacey/homebrew,dreid93/homebrew,jonas/homebrew,NfNitLoop/homebrew,PikachuEXE/homebrew,darknessomi/homebrew,mindrones/homebrew,zabawaba99/homebrew,hkwan003/homebrew,tbeckham/homebrew,vigo/homebrew,qskycolor/homebrew,tjnycum/homebrew,Noctem/homebrew,mavimo/homebrew,joshfriend/homebrew,sdebnath/homebrew,scorphus/homebrew,mommel/homebrew,youtux/homebrew,schuyler/homebrew,bertjwregeer/homebrew,haihappen/homebrew,lucas-clemente/homebrew,grepnull/homebrew,bidle/homebrew,wfarr/homebrew,ehogberg/homebrew,sje30/homebrew,princeofdarkness76/homebrew,adevress/homebrew,mgiglia/homebrew,outcoldman/linuxbrew,kalbasit/homebrew,adamchainz/homebrew,vinodkone/homebrew,dtan4/homebrew,jehutymax/homebrew,ctate/autocode-homebrew,zoltansx/homebrew,freedryk/homebrew,ingmarv/homebrew,ahihi/tigerbrew,Ivanopalas/homebrew,cmvelo/homebrew,yangj1e/homebrew,mindrones/homebrew,dkotvan/homebrew,OJFord/homebrew,nandub/homebrew,alebcay/homebrew,dlesaca/homebrew,sje30/homebrew,princeofdarkness76/linuxbrew,mapbox/homebrew,jcassiojr/homebrew,eugenesan/homebrew,mciantyre/homebrew,chenflat/homebrew,whitej125/homebrew,jianjin/homebrew,ento/homebrew,indrajitr/homebrew,timomeinen/homebrew,mokkun/homebrew,Krasnyanskiy/homebrew,otaran/homebrew,tjt263/homebrew,influxdb/homebrew,jbpionnier/homebrew,lucas-clemente/homebrew,tyrchen/homebrew,yidongliu/homebrew,kimhunter/homebrew,ear/homebrew,davydden/linuxbrew,zorosteven/homebrew,epixa/homebrew,chfast/homebrew,bidle/homebrew,teslamint/homebrew,megahall/homebrew,rcombs/homebrew,brendanator/linuxbrew,slyphon/homebrew,martinklepsch/homebrew,bendoerr/homebrew,thinker0/homebrew,klazuka/homebrew,kbrock/homebrew,buzzedword/homebrew,drbenmorgan/linuxbrew,bjlxj2008/homebrew,hanxue/homebrew,wfarr/homebrew,lvh/homebrew,henry0312/homebrew,DarthGandalf/homebrew,andreyto/homebrew,pampata/homebrew,mhartington/homebrew,andrew-regan/homebrew,elasticdog/homebrew,elamc/homebrew,paour/homebrew,creack/homebrew,kkirsche/homebrew,cmvelo/homebrew,heinzf/homebrew,iblueer/homebrew,cesar2535/homebrew,xanderlent/homebrew,thrifus/homebrew,jehutymax/homebrew,zhipeng-jia/homebrew,andrew-regan/homebrew,heinzf/homebrew,pedromaltez-forks/homebrew,esamson/homebrew,kvs/homebrew,kazuho/homebrew,AICIDNN/homebrew,timomeinen/homebrew,vihangm/homebrew,winordie-47/linuxbrew1,martinklepsch/homebrew,josa42/homebrew,keithws/homebrew,markpeek/homebrew,colindean/homebrew,razamatan/homebrew,jwillemsen/linuxbrew,youtux/homebrew,zebMcCorkle/homebrew,emcrisostomo/homebrew,vihangm/homebrew,zhimsel/homebrew,bkonosky/homebrew,dreid93/homebrew,royhodgman/homebrew,ngoyal/homebrew,187j3x1/homebrew,ryanmt/homebrew,stoshiya/homebrew,seeden/homebrew,cvrebert/homebrew,kmiscia/homebrew,daviddavis/homebrew,5zzang/homebrew,lousama/homebrew,yonglehou/homebrew,dtrebbien/homebrew,bright-sparks/homebrew,sdebnath/homebrew,Klozz/homebrew,youprofit/homebrew,bendoerr/homebrew,thuai/boxen,sportngin/homebrew,mttrb/homebrew,tomyun/homebrew,ebardsley/homebrew,xb123456456/homebrew,dardo82/homebrew,changzuozhen/homebrew,SiegeLord/homebrew,MoSal/homebrew,yonglehou/homebrew,nshemonsky/homebrew,mrkn/homebrew,BlackFrog1/homebrew,kawanet/homebrew,schuyler/homebrew,petercm/homebrew,baob/homebrew,mattfritz/homebrew,englishm/homebrew,gabelevi/homebrew,CNA-Bld/homebrew,lvicentesanchez/homebrew,arnested/homebrew,Monits/homebrew,hanlu-chen/homebrew,PikachuEXE/homebrew,dholm/homebrew,ebardsley/homebrew,eighthave/homebrew,jpscaletti/homebrew,jarrettmeyer/homebrew,BrewTestBot/homebrew,danabrand/linuxbrew,songjizu001/homebrew,drbenmorgan/linuxbrew,totalvoidness/homebrew,Homebrew/homebrew,cnbin/homebrew,jab/homebrew,brotbert/homebrew,maxhope/homebrew,theopolis/homebrew,sarvex/linuxbrew,dirn/homebrew,tghs/linuxbrew,Gutek/homebrew,raphaelcohn/homebrew,cosmo0920/homebrew,dickeyxxx/homebrew,esalling23/homebrew,dkotvan/homebrew,codeout/homebrew,tylerball/homebrew,sitexa/homebrew,lmontrieux/homebrew,dongcarl/homebrew,ajshort/homebrew,cscetbon/homebrew,timomeinen/homebrew,koenrh/homebrew,huitseeker/homebrew,deorth/homebrew,Noctem/homebrew,pnorman/homebrew,linse073/homebrew,FiMka/homebrew,rstacruz/homebrew,Moisan/homebrew,mpfz0r/homebrew,influxdb/homebrew,oubiwann/homebrew,giffels/homebrew,jacobsa/homebrew,tjhei/linuxbrew,klazuka/homebrew,gijzelaerr/homebrew,kilojoules/homebrew,calmez/homebrew,cjheath/homebrew,bitrise-io/homebrew,ryanfb/homebrew,akupila/homebrew,joschi/homebrew,missingcharacter/homebrew,petere/homebrew,sorin-ionescu/homebrew,bbahrami/homebrew,caijinyan/homebrew,ianbrandt/homebrew,kim0/homebrew,filcab/homebrew | 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
fails_with(:llvm) { build(data.delete(:build).to_i) }
end
end
## Instruction:
Remove an internal method from compat
## Code After:
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
| 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(:llvm) { build(data.delete(:build).to_i) }
end
end | 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 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> | - <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>
? ++++++++++++++++++++++++++++++++++ ^ ^
| 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.beautifulsoup" version="3.0.8"/>
<import addon="script.module.urlresolver"/>
<import addon="script.module.requests"/>
</requires>
<extension point="xbmc.python.pluginsource" library="addon.py">
<provides>video</provides>
</extension>
<extension point="xbmc.addon.metadata">
<platform>all</platform>
<language></language>
<summary>Pakistani Television</summary>
<description>Watch Pakistani TV</description>
<disclaimer>This addon makes no warranties, expressed or implied, and
hereby disclaims and negates all other warranties, including without
limitation, implied warranties or conditions of merchantability,
fitness for a particular purpose, or non-infringement of intellectual
property or other violation of rights</disclaimer>
</extension>
</addon>
| <?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.beautifulsoup" version="3.0.8"/>
<import addon="script.module.urlresolver"/>
<import addon="script.module.requests"/>
</requires>
<extension point="xbmc.python.pluginsource" library="addon.py">
<provides>video</provides>
</extension>
<extension point="xbmc.addon.metadata">
<platform>all</platform>
<language></language>
<summary>Pakistani Television</summary>
<description>Watch Pakistani TV</description>
<disclaimer>This addon makes no warranties, expressed or implied, and
hereby disclaims and negates all other warranties, including without
limitation, implied warranties or conditions of merchantability,
fitness for a particular purpose, or non-infringement of intellectual
property or other violation of rights</disclaimer>
<forum>http://forum.xbmc.org/showthread.php?tid=169443</forum>
<license>The MIT License (MIT), 2013</license>
</extension>
</addon>
| 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="script.module.beautifulsoup" version="3.0.8"/>
<import addon="script.module.urlresolver"/>
<import addon="script.module.requests"/>
</requires>
<extension point="xbmc.python.pluginsource" library="addon.py">
<provides>video</provides>
</extension>
<extension point="xbmc.addon.metadata">
<platform>all</platform>
<language></language>
<summary>Pakistani Television</summary>
<description>Watch Pakistani TV</description>
<disclaimer>This addon makes no warranties, expressed or implied, and
hereby disclaims and negates all other warranties, including without
limitation, implied warranties or conditions of merchantability,
fitness for a particular purpose, or non-infringement of intellectual
property or other violation of rights</disclaimer>
</extension>
</addon>
## Instruction:
Add forum link + license
## Code After:
<?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.beautifulsoup" version="3.0.8"/>
<import addon="script.module.urlresolver"/>
<import addon="script.module.requests"/>
</requires>
<extension point="xbmc.python.pluginsource" library="addon.py">
<provides>video</provides>
</extension>
<extension point="xbmc.addon.metadata">
<platform>all</platform>
<language></language>
<summary>Pakistani Television</summary>
<description>Watch Pakistani TV</description>
<disclaimer>This addon makes no warranties, expressed or implied, and
hereby disclaims and negates all other warranties, including without
limitation, implied warranties or conditions of merchantability,
fitness for a particular purpose, or non-infringement of intellectual
property or other violation of rights</disclaimer>
<forum>http://forum.xbmc.org/showthread.php?tid=169443</forum>
<license>The MIT License (MIT), 2013</license>
</extension>
</addon>
| <?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.beautifulsoup" version="3.0.8"/>
<import addon="script.module.urlresolver"/>
<import addon="script.module.requests"/>
</requires>
<extension point="xbmc.python.pluginsource" library="addon.py">
<provides>video</provides>
</extension>
<extension point="xbmc.addon.metadata">
<platform>all</platform>
<language></language>
<summary>Pakistani Television</summary>
<description>Watch Pakistani TV</description>
<disclaimer>This addon makes no warranties, expressed or implied, and
hereby disclaims and negates all other warranties, including without
limitation, implied warranties or conditions of merchantability,
fitness for a particular purpose, or non-infringement of intellectual
property or other violation of rights</disclaimer>
+ <forum>http://forum.xbmc.org/showthread.php?tid=169443</forum>
+ <license>The MIT License (MIT), 2013</license>
</extension>
</addon> | 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.name, reader.entity) |
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 generated and named : %s.pdf" % reader.entity.name | 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" % reader.entity.name, reader.entity)
## Instruction:
Add a demo mode :
if no vhdl file is given the demo one is used
datas/test_files/demo.vhd
## Code After:
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 generated and named : %s.pdf" % reader.entity.name |
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:
+ filename = "datas/test_files/demo.vhd"
reader = Vhdl_reader(filename)
drawer = PdfDrawer("%s.pdf" % reader.entity.name, reader.entity)
+
+ print "The schematic was generated and named : %s.pdf" % reader.entity.name | 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.