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
830a868dad8344dab5567d859efd21581f2c3f1c
build/scripts/travis-deployment.sh
build/scripts/travis-deployment.sh
yarn build SEMVER_LAST_TAG=$(npm view apparena-patterns-react version) SEMVER_RELEASE_LEVEL=$(git log --oneline -1 --pretty=%B | cat | tr -d '\n' | cut -d "[" -f2 | cut -d "]" -f1) ROOT_DIR=$(pwd) case ${SEMVER_RELEASE_LEVEL} in *\ *) >&2 echo "Specified release level invalid" ;; *) if [ -n ${SEMVER_RELEAS...
yarn build SEMVER_LAST_TAG=$(npm view apparena-patterns-react version) SEMVER_RELEASE_LEVEL=$(git log --oneline -1 --pretty=%B | cat | tr -d '\n' | cut -d "[" -f2 | cut -d "]" -f1) ROOT_DIR=$(pwd) if [ -n $SEMVER_RELEASE_LEVEL ]; then git clone https://github.com/fsaintjacques/semver-tool /tmp/semver &> /dev/null ...
Check if the travis deplyoment script does work correctly
Check if the travis deplyoment script does work correctly
Shell
mit
apparena/patterns,apparena/patterns,apparena/patterns,apparena/patterns
shell
## Code Before: yarn build SEMVER_LAST_TAG=$(npm view apparena-patterns-react version) SEMVER_RELEASE_LEVEL=$(git log --oneline -1 --pretty=%B | cat | tr -d '\n' | cut -d "[" -f2 | cut -d "]" -f1) ROOT_DIR=$(pwd) case ${SEMVER_RELEASE_LEVEL} in *\ *) >&2 echo "Specified release level invalid" ;; *) if [ -n...
yarn build SEMVER_LAST_TAG=$(npm view apparena-patterns-react version) SEMVER_RELEASE_LEVEL=$(git log --oneline -1 --pretty=%B | cat | tr -d '\n' | cut -d "[" -f2 | cut -d "]" -f1) ROOT_DIR=$(pwd) - case ${SEMVER_RELEASE_LEVEL} in - *\ *) - >&2 echo "Specified release level invalid" - ;; - *) - i...
34
1.0625
9
25
a525bbb6936877c73edfd3c4df7f836aa5f794ac
.travis.yml
.travis.yml
language: objective-c os: osx matrix: include: - os: linux script: - bash -n *.sh - ./script/setup - export PS1 - bash -c "source ~/.bashrc" - zsh -c "source ~/.zshrc"
language: objective-c os: osx matrix: include: - os: linux script: - bash -n *.sh - "./script/setup" - export PS1 - bash -c "source ~/.bashrc" - zsh -c "source ~/.zshrc" notifications: slack: secure: RJJNNlayjRIistp6j55LVPQgkBGRrBD8M7+v2Z+HM8g3OcPnIP7XjkHN1ytkrzglqX4ztxvlS4WyumbhSVlreW+PSSWWwidVyq/SRAF2W+PKKV...
Add slack integration for builds
Add slack integration for builds
YAML
mit
mikesplain/dotfiles
yaml
## Code Before: language: objective-c os: osx matrix: include: - os: linux script: - bash -n *.sh - ./script/setup - export PS1 - bash -c "source ~/.bashrc" - zsh -c "source ~/.zshrc" ## Instruction: Add slack integration for builds ## Code After: language: objective-c os: osx matrix: include: - ...
language: objective-c os: osx matrix: include: - - os: linux ? -- + - os: linux - script: - - bash -n *.sh ? -- + - bash -n *.sh - - ./script/setup ? -- + - "./script/setup" ? + + - - export PS1 ? -- + - export PS1 - - bash -c "source ~/.bashrc" ? -- + - bash -c "source ~...
16
1.333333
9
7
983baab20356c65d8cf57176d2f0ef5d6cf75220
priv/ember_riak_explorer/app/templates/riak-object-edit.hbs
priv/ember_riak_explorer/app/templates/riak-object-edit.hbs
{{#object-location object=model.obj isEditing=true}}{{/object-location}} <br /> <div class="container"> <div class="row"> <div class="col-md-12"> {{#object-headers headers=model.obj.headersIndexes title='Secondary Indexes'}}{{/object-headers}} </div> </div> <div ...
{{#object-location object=model.obj isEditing=true}}{{/object-location}} <br /> <div class="container"> <div class="row"> <div class="col-md-12"> {{#object-headers headers=model.obj.headersIndexes title='Secondary Indexes'}}{{/object-headers}} </div> </div> <div ...
Add edit content type field to Edit Object view (REX-36)
Add edit content type field to Edit Object view (REX-36)
Handlebars
apache-2.0
travisbhartwell/riak_explorer,travisbhartwell/riak_explorer,basho-labs/riak_explorer,basho-labs/riak_explorer,basho-labs/riak_explorer,travisbhartwell/riak_explorer
handlebars
## Code Before: {{#object-location object=model.obj isEditing=true}}{{/object-location}} <br /> <div class="container"> <div class="row"> <div class="col-md-12"> {{#object-headers headers=model.obj.headersIndexes title='Secondary Indexes'}}{{/object-headers}} </div> ...
{{#object-location object=model.obj isEditing=true}}{{/object-location}} <br /> <div class="container"> <div class="row"> <div class="col-md-12"> {{#object-headers headers=model.obj.headersIndexes title='Secondary Indexes'}}{{/object-headers}} </div> ...
10
0.25641
6
4
f06abc7601e382bdefc514abde8527b788795ce4
.travis.yml
.travis.yml
rvm: - 2.2.2 cache: bundler addons: code_climate: repo_token: 1f9743a554140a590819de5967c4411398a22e31f2d5d439127cdbf33c72a6ab
rvm: - 2.2.2 cache: bundler before_script: - if [ "${$TRAVIS_OS_NAME}" = "linux" ]; then wget https://github.com/mozilla/geckodriver/releases/geckodriver-v0.11.1-linux64.tar.gz -O /tmp/geckodriver.tar.gz; fi - if [ "${$TRAVIS_OS_NAME}" = "osx" ]; then wget https://github.com/mozilla/geck...
Add geckodriver to Travis yml. Nathan Pannell
Add geckodriver to Travis yml. Nathan Pannell
YAML
mit
CommunityGrows/communitygrows,CommunityGrows/communitygrows,hsp1324/communitygrows,CommunityGrows/communitygrows,hsp1324/communitygrows,hsp1324/communitygrows
yaml
## Code Before: rvm: - 2.2.2 cache: bundler addons: code_climate: repo_token: 1f9743a554140a590819de5967c4411398a22e31f2d5d439127cdbf33c72a6ab ## Instruction: Add geckodriver to Travis yml. Nathan Pannell ## Code After: rvm: - 2.2.2 cache: bundler before_script: - if [ "${$TRAVIS_OS_NAME}" = ...
rvm: - 2.2.2 cache: bundler + + before_script: + - if [ "${$TRAVIS_OS_NAME}" = "linux" ]; then + wget https://github.com/mozilla/geckodriver/releases/geckodriver-v0.11.1-linux64.tar.gz -O /tmp/geckodriver.tar.gz; + fi + - if [ "${$TRAVIS_OS_NAME}" = "osx" ]; then + wget https://g...
11
1.571429
11
0
9b7c163508aa84b6a284a2b853c05ad4e2cbe08e
Manifest.txt
Manifest.txt
.autotest History.txt LICENSE.txt Manifest.txt README.txt Rakefile lib/rulog.rb test/test_rulog.rb
.autotest History.txt LICENSE.txt Manifest.txt README.txt README.rdoc Rakefile lib/rulog.rb test/test_rulog.rb
Update for rdoc/txt README hack, to placate both Hoe and github.
Update for rdoc/txt README hack, to placate both Hoe and github.
Text
bsd-2-clause
jimwise/rulog
text
## Code Before: .autotest History.txt LICENSE.txt Manifest.txt README.txt Rakefile lib/rulog.rb test/test_rulog.rb ## Instruction: Update for rdoc/txt README hack, to placate both Hoe and github. ## Code After: .autotest History.txt LICENSE.txt Manifest.txt README.txt README.rdoc Rakefile lib/rulog.rb test/test_rulog...
.autotest History.txt LICENSE.txt Manifest.txt README.txt + README.rdoc Rakefile lib/rulog.rb test/test_rulog.rb
1
0.125
1
0
7ebf9fb55a1bfeab9d052b0c1f269a467d98768c
vim/install_vim.sh
vim/install_vim.sh
set -o errexit set -o nounset parentdir=$(cd $(dirname "$0")/..; pwd) echo "== VIM configuration" echo "=== The vim you have is the following: " vim --version | head -1 echo "=== Installing vim configuration (vimrc and vim folder from $parentdir)" ln -sf $parentdir/vimrc ~/.vimrc ln -sf $parentdir/vim ~/.vim echo ...
set -o errexit set -o nounset parentdir=$(cd $(dirname "$0")/..; pwd) echo "== VIM configuration" echo "=== The vim you have is the following: " vim --version | head -1 echo "=== Installing vim configuration (vimrc and vim folder from $parentdir)" mv ~/.vimrc ~/.vim /tmp/ ln -s $parentdir/vimrc ~/.vimrc ln -s $pare...
Install vim removes old vim and vimrc
Install vim removes old vim and vimrc
Shell
mit
labianchin/dotfiles,labianchin/dotfiles,labianchin/dotfiles
shell
## Code Before: set -o errexit set -o nounset parentdir=$(cd $(dirname "$0")/..; pwd) echo "== VIM configuration" echo "=== The vim you have is the following: " vim --version | head -1 echo "=== Installing vim configuration (vimrc and vim folder from $parentdir)" ln -sf $parentdir/vimrc ~/.vimrc ln -sf $parentdir/v...
set -o errexit set -o nounset parentdir=$(cd $(dirname "$0")/..; pwd) echo "== VIM configuration" echo "=== The vim you have is the following: " vim --version | head -1 echo "=== Installing vim configuration (vimrc and vim folder from $parentdir)" + mv ~/.vimrc ~/.vim /tmp/ - ln -sf $parentdir...
5
0.3125
3
2
d0882c4726583a3735968c7a497bd3b8dc63e1d6
src/main/java/org/crygier/graphql/JavaScalars.java
src/main/java/org/crygier/graphql/JavaScalars.java
package org.crygier.graphql; import java.math.BigInteger; import java.text.DateFormat; import java.text.ParseException; import java.util.Date; import graphql.language.IntValue; import graphql.language.StringValue; import graphql.schema.Coercing; import graphql.schema.GraphQLScalarType; public class JavaScalars { ...
package org.crygier.graphql; import java.math.BigInteger; import java.text.DateFormat; import java.text.ParseException; import java.util.Date; import graphql.language.IntValue; import graphql.language.StringValue; import graphql.schema.Coercing; import graphql.schema.GraphQLScalarType; import org.slf4j.Logger; import...
Return null on parse errors as per specification; Do not throw Exception
Return null on parse errors as per specification; Do not throw Exception
Java
mit
stomf/graphql-jpa,jcrygier/graphql-jpa,jcrygier/graphql-jpa,stomf/graphql-jpa
java
## Code Before: package org.crygier.graphql; import java.math.BigInteger; import java.text.DateFormat; import java.text.ParseException; import java.util.Date; import graphql.language.IntValue; import graphql.language.StringValue; import graphql.schema.Coercing; import graphql.schema.GraphQLScalarType; public class J...
package org.crygier.graphql; import java.math.BigInteger; import java.text.DateFormat; import java.text.ParseException; import java.util.Date; import graphql.language.IntValue; import graphql.language.StringValue; import graphql.schema.Coercing; import graphql.schema.GraphQLScalarType; + import ...
30
0.555556
17
13
398c4daaa75e0b60f4a7cc5f8b9d12c540b37113
app/js/collections/search.js
app/js/collections/search.js
define([ 'jquery', 'underscore', 'backbone', 'helpers/app' ], function ($, _, Backbone, AppHelper) { var Search = Backbone.Collection.extend ({ query: '', url: function () { return AppHelper.urlPrefix + 'autocomplete/query?q=' + escape (this.query); }, parse: function ...
define([ 'jquery', 'underscore', 'backbone', 'helpers/app' ], function ($, _, Backbone, AppHelper) { var Search = Backbone.Collection.extend ({ query: '', url: function () { return AppHelper.urlPrefix + 'autocomplete/query?q=' + escape (this.query); }, parse: function ...
Send X-Requested-With header if app is extension
Send X-Requested-With header if app is extension
JavaScript
mit
onuraslan/EksiOkuyucu,onur/EksiOkuyucu,onur/EksiOkuyucu,onuraslan/EksiOkuyucu
javascript
## Code Before: define([ 'jquery', 'underscore', 'backbone', 'helpers/app' ], function ($, _, Backbone, AppHelper) { var Search = Backbone.Collection.extend ({ query: '', url: function () { return AppHelper.urlPrefix + 'autocomplete/query?q=' + escape (this.query); }, ...
define([ 'jquery', 'underscore', 'backbone', 'helpers/app' ], function ($, _, Backbone, AppHelper) { var Search = Backbone.Collection.extend ({ query: '', url: function () { return AppHelper.urlPrefix + 'autocomplete/query?q=' + escape (this.query);...
7
0.162791
4
3
c94b93e87e1364fab1f232995d3d8b2ebb64b241
index.js
index.js
var data = require('./data'); var accounting = require('accounting'); var CurrencyFormatter = function() { this.defaultCurrency = { symbol: '', thousandsSeparator: ',', decimalSeparator: '.', symbolOnLeft: true, spaceBetweenAmountAndSymbol: false, decimalDigits: 2 } } CurrencyFormatter.pro...
var data = require('./data'); var accounting = require('accounting'); var CurrencyFormatter = function() { this.defaultCurrency = { symbol: '', thousandsSeparator: ',', decimalSeparator: '.', symbolOnLeft: true, spaceBetweenAmountAndSymbol: false, decimalDigits: 2 } } CurrencyFormatter.pro...
Use ES5 functions instead of arrow functions
Use ES5 functions instead of arrow functions
JavaScript
mit
smirzaei/currency-formatter,enVolt/currency-formatter
javascript
## Code Before: var data = require('./data'); var accounting = require('accounting'); var CurrencyFormatter = function() { this.defaultCurrency = { symbol: '', thousandsSeparator: ',', decimalSeparator: '.', symbolOnLeft: true, spaceBetweenAmountAndSymbol: false, decimalDigits: 2 } } Curre...
var data = require('./data'); var accounting = require('accounting'); var CurrencyFormatter = function() { this.defaultCurrency = { symbol: '', thousandsSeparator: ',', decimalSeparator: '.', symbolOnLeft: true, spaceBetweenAmountAndSymbol: false, decimalDigits: 2 } ...
4
0.088889
2
2
8d26d88215075739ef5d2059ee8512dde2e67b5b
provisioning/roles/discourse/tasks/main.yml
provisioning/roles/discourse/tasks/main.yml
--- - name: Ensure git is installed apt: pkg=git - name: Ensure that /var/docker exists file: path=/var/docker owner=deploy group=deploy state=directory - name: Get the official discourse docker image command: git clone https://github.com/discourse/discourse_docker.git /var/docker creates=/var/docker/README.md - ...
--- - name: Ensure git is installed apt: pkg=git - name: Ensure that /var/docker exists file: path=/var/docker owner=deploy group=deploy state=directory - name: Get the official discourse docker image command: git clone https://github.com/discourse/discourse_docker.git /var/docker creates=/var/docker/README.md - ...
Install ssh keypair so discourse bootstrap works unaided
Install ssh keypair so discourse bootstrap works unaided
YAML
agpl-3.0
openaustralia/morph,otherchirps/morph,OpenAddressesUK/morph,openaustralia/morph,openaustralia/morph,otherchirps/morph,openaustralia/morph,otherchirps/morph,OpenAddressesUK/morph,openaustralia/morph,otherchirps/morph,openaustralia/morph,OpenAddressesUK/morph,OpenAddressesUK/morph,openaustralia/morph,otherchirps/morph,ot...
yaml
## Code Before: --- - name: Ensure git is installed apt: pkg=git - name: Ensure that /var/docker exists file: path=/var/docker owner=deploy group=deploy state=directory - name: Get the official discourse docker image command: git clone https://github.com/discourse/discourse_docker.git /var/docker creates=/var/doc...
--- - name: Ensure git is installed apt: pkg=git - name: Ensure that /var/docker exists file: path=/var/docker owner=deploy group=deploy state=directory - name: Get the official discourse docker image command: git clone https://github.com/discourse/discourse_docker.git /var/docker creates=/var/docke...
12
0.571429
12
0
eeb973dde50b13369e14acd29a25e4baca5f33ae
Frontend/src/Models/Page/ResetPasswordPageModel.php
Frontend/src/Models/Page/ResetPasswordPageModel.php
<?php /** * Copyright (c) 2016 Ruben Schmidmeister <ruben.schmidmeister@icloud.com> * * This program is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it * and/or modify it under the terms of the GNU Affero General Public License, * version 3, as pu...
<?php /** * Copyright (c) 2016 Ruben Schmidmeister <ruben.schmidmeister@icloud.com> * * This program is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it * and/or modify it under the terms of the GNU Affero General Public License, * version 3, as pu...
Add title for reset page
Add title for reset page
PHP
agpl-3.0
timetabio/code,timetabio/code,timetabio/code,timetabio/code,timetabio/code
php
## Code Before: <?php /** * Copyright (c) 2016 Ruben Schmidmeister <ruben.schmidmeister@icloud.com> * * This program is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it * and/or modify it under the terms of the GNU Affero General Public License, * ...
<?php /** * Copyright (c) 2016 Ruben Schmidmeister <ruben.schmidmeister@icloud.com> * * This program is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it * and/or modify it under the terms of the GNU Affero General Public License, * ...
5
0.16129
5
0
f3fcb652d251daeaa37637e23ba7bd421d99d718
packages/mu/multibase.yaml
packages/mu/multibase.yaml
homepage: https://github.com/oscoin/ipfs changelog-type: markdown hash: bdbfb293bcc86d84f79a6db76fb83b4931f6379f1a9d5adaa66aac338c002e80 test-bench-deps: multibase: -any base: -any doctest: -any QuickCheck: -any template-haskell: -any maintainer: Kim Altintop <kim@monadic.xyz>, Monadic Team <team@monadic.xyz>...
homepage: https://github.com/oscoin/ipfs changelog-type: markdown hash: 75bf29d8c64e2a8fdfb18957f909a385b9c04cd55197d0ceaf9fa25f2eceb13f test-bench-deps: multibase: -any base: -any doctest: -any QuickCheck: -any template-haskell: -any maintainer: Kim Altintop <kim@monadic.xyz>, Monadic Team <team@monadic.xyz>...
Update from Hackage at 2020-06-05T21:58:10Z
Update from Hackage at 2020-06-05T21:58:10Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/oscoin/ipfs changelog-type: markdown hash: bdbfb293bcc86d84f79a6db76fb83b4931f6379f1a9d5adaa66aac338c002e80 test-bench-deps: multibase: -any base: -any doctest: -any QuickCheck: -any template-haskell: -any maintainer: Kim Altintop <kim@monadic.xyz>, Monadic Team <t...
homepage: https://github.com/oscoin/ipfs changelog-type: markdown - hash: bdbfb293bcc86d84f79a6db76fb83b4931f6379f1a9d5adaa66aac338c002e80 + hash: 75bf29d8c64e2a8fdfb18957f909a385b9c04cd55197d0ceaf9fa25f2eceb13f test-bench-deps: multibase: -any base: -any doctest: -any QuickCheck: -any templat...
7
0.2
4
3
28abcc08e81e20acc628c19f1273f90e8483a604
lib/benchtool/curl-cmd-builder.rb
lib/benchtool/curl-cmd-builder.rb
module BenchTool class CurlCmdBuilder def initialize(params, options = {}) @params = params @options = options # Sample curl status cmd # curl -IL --cookies '#{cookies}' --header '#{header}' "#{url}" @parts = { :base => "curl -siL ", :cookies => "--cookie '%s' ", ...
module BenchTool class CurlCmdBuilder def initialize(params, options = {}) @params = params @options = options # Sample curl status cmd # Flag --insecure allows use of self-signed certs # curl -siL --insecure --cookies '#{cookies}' --header '#{header}' "#{url}" @parts = { ...
Add insecure flag so we can use self-signed certs
Add insecure flag so we can use self-signed certs
Ruby
mit
bradland/benchtool,bradland/benchtool
ruby
## Code Before: module BenchTool class CurlCmdBuilder def initialize(params, options = {}) @params = params @options = options # Sample curl status cmd # curl -IL --cookies '#{cookies}' --header '#{header}' "#{url}" @parts = { :base => "curl -siL ", :cookies => "--c...
module BenchTool class CurlCmdBuilder def initialize(params, options = {}) @params = params @options = options # Sample curl status cmd + # Flag --insecure allows use of self-signed certs - # curl -IL --cookies '#{cookies}' --header '#{header}' "#{url}" ? ...
4
0.133333
3
1
8386d7372f9ff8bfad651efe43504746aff19b73
app/models/rooms/rooms.py
app/models/rooms/rooms.py
from models.people.people import Staff, Fellow from models.rooms.rooms import Office, LivingSpace import random class Dojo(object): def __init__(self): self.offices = [] self.livingrooms = [] self.staff = [] self.fellows = [] self.all_rooms = [] self.all_people = []...
import os import sys from os import path sys.path.append(path.dirname(path.dirname(path.abspath(__file__)))) class Room(object): """Models the kind of rooms available at Andela, It forms the base class Room from which OfficeSpace and LivingRoom inherit""" def __init__(self, room_name, room_type, room_...
Implement the Room base class
Implement the Room base class
Python
mit
Alweezy/alvin-mutisya-dojo-project
python
## Code Before: from models.people.people import Staff, Fellow from models.rooms.rooms import Office, LivingSpace import random class Dojo(object): def __init__(self): self.offices = [] self.livingrooms = [] self.staff = [] self.fellows = [] self.all_rooms = [] self...
- from models.people.people import Staff, Fellow - from models.rooms.rooms import Office, LivingSpace - import random + import os + import sys + from os import path + sys.path.append(path.dirname(path.dirname(path.abspath(__file__)))) - class Dojo(object): ? ^ - + class Room(object): ? ^ + - de...
59
1.311111
17
42
73ff56f4b8859e82b0d69a6505c982e26de27859
util.py
util.py
def product(nums): r = 1 for n in nums: r *= n return r def choose(n, k): if 0 <= k <= n: ntok = 1 ktok = 1 for t in range(1, min(k, n - k) + 1): ntok *= n ktok *= t n -= 1 return ntok // ktok else: return 0 def ...
import colorsys import random def randcolor(): hue = random.random() sat = random.randint(700, 1000) / 1000 val = random.randint(700, 1000) / 1000 return tuple(int(f*255) for f in colorsys.hsv_to_rgb(hue, sat, val)) def product(nums): r = 1 for n in nums: r *= n return r def choos...
Add randcolor function to uitl
Add randcolor function to uitl
Python
unlicense
joseph346/cellular
python
## Code Before: def product(nums): r = 1 for n in nums: r *= n return r def choose(n, k): if 0 <= k <= n: ntok = 1 ktok = 1 for t in range(1, min(k, n - k) + 1): ntok *= n ktok *= t n -= 1 return ntok // ktok else: ...
+ import colorsys + import random + + def randcolor(): + hue = random.random() + sat = random.randint(700, 1000) / 1000 + val = random.randint(700, 1000) / 1000 + return tuple(int(f*255) for f in colorsys.hsv_to_rgb(hue, sat, val)) def product(nums): r = 1 for n in nums: r *=...
8
0.32
8
0
d565d046274371377af5558d1a8427afc2ade651
roles/liquidsoap/tasks/main.yml
roles/liquidsoap/tasks/main.yml
--- - name: config directory file: path=/etc/liquidsoap state=directory - name: configuration file template: src=radio.liq.j2 dest=/etc/liquidsoap/radio.liq notify: restart - name: 'swiss-army knife for multimedia streaming' tags: [ 'radio', 'stream' ] docker: image='ddub/liquidsoap' name='liquidsoap' ...
--- - name: config directory file: path=/etc/liquidsoap state=directory - name: configuration file template: src=radio.liq.j2 dest=/etc/liquidsoap/radio.liq notify: restart - name: writable recording directory file: path=/music/recs state=directory mode=777 - name: check recording directory is writable - if thi...
Check that the liquidsoap docker will be able to write to the recordings directory
Check that the liquidsoap docker will be able to write to the recordings directory
YAML
mit
intbass/radio,intbass/radio
yaml
## Code Before: --- - name: config directory file: path=/etc/liquidsoap state=directory - name: configuration file template: src=radio.liq.j2 dest=/etc/liquidsoap/radio.liq notify: restart - name: 'swiss-army knife for multimedia streaming' tags: [ 'radio', 'stream' ] docker: image='ddub/liquidsoap' name='liq...
--- - name: config directory file: path=/etc/liquidsoap state=directory - name: configuration file template: src=radio.liq.j2 dest=/etc/liquidsoap/radio.liq notify: restart + - name: writable recording directory + file: path=/music/recs state=directory mode=777 + - name: check recording directory is...
5
0.384615
5
0
6a0a26efa7260230e9b867a9a8de6f102c25b11a
Factory/Worker/UseControllerWorker.php
Factory/Worker/UseControllerWorker.php
<?php /* * This file is part of the Symfony framework. * * (c) Fabien Potencier <fabien@symfony.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Symfony\Bundle\AsseticBundle\Factory\Worker; use Assetic\Asset\AssetInterface; use A...
<?php /* * This file is part of the Symfony framework. * * (c) Fabien Potencier <fabien@symfony.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Symfony\Bundle\AsseticBundle\Factory\Worker; use Assetic\Asset\AssetInterface; use A...
Fix signature of the UseControllerWork to respect last changes in WorkedInterface
Fix signature of the UseControllerWork to respect last changes in WorkedInterface PHP Fatal error: Declaration of Symfony\Bundle\AsseticBundle\Factory\Worker\UseControllerWorker::process() must be compatible with Assetic\Factory\Worker\WorkerInterface::process(Assetic\Asset\AssetInterface $asset, Assetic\Factory\Asse...
PHP
mit
taueres/AsseticBundle,javiereguiluz/assetic-bundle,taueres/AsseticBundle,Soullivaneuh/AsseticBundle,xabbuh/AsseticBundle,ThatCheck/AsseticBundle,nexylan/AsseticBundle,jandevani/AsseticBundle,shieldo/AsseticBundle,robertfausk/AsseticBundle,symfony/AsseticBundle,nexylan/AsseticBundle,shieldo/AsseticBundle,stof/AsseticBun...
php
## Code Before: <?php /* * This file is part of the Symfony framework. * * (c) Fabien Potencier <fabien@symfony.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Symfony\Bundle\AsseticBundle\Factory\Worker; use Assetic\Asset\Asset...
<?php /* * This file is part of the Symfony framework. * * (c) Fabien Potencier <fabien@symfony.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Symfony\Bundle\AsseticBundle\Factory\Worker; use Assetic...
3
0.090909
2
1
c74fa468a78f99c3dc305ed9c535a95e0079dcb8
src/components/Headings.js
src/components/Headings.js
import React from 'react' export const H1 = ({ classes, children }) => ( <h1 className={`${classes} text-3xl font-extrabold tracking-tight text-gray-800 leading-9 sm:leading-10 sm:text-4xl md:text-5xl md:leading-14`} > {children} </h1> ) export const H2 = ({ classes, children }) => ( <h2 className...
import React from 'react' export const H1 = ({ classes, children }) => ( <h1 className={`${ classes ?? '' } text-3xl font-extrabold tracking-tight text-gray-800 leading-9 sm:leading-10 sm:text-4xl md:text-5xl md:leading-14`} > {children} </h1> ) export const H2 = ({ classes, children }) => ( ...
Fix undefined style corner case
Fix undefined style corner case
JavaScript
mit
dtjv/dtjv.github.io
javascript
## Code Before: import React from 'react' export const H1 = ({ classes, children }) => ( <h1 className={`${classes} text-3xl font-extrabold tracking-tight text-gray-800 leading-9 sm:leading-10 sm:text-4xl md:text-5xl md:leading-14`} > {children} </h1> ) export const H2 = ({ classes, children }) => ( <...
import React from 'react' export const H1 = ({ classes, children }) => ( <h1 + className={`${ + classes ?? '' - className={`${classes} text-3xl font-extrabold tracking-tight text-gray-800 leading-9 sm:leading-10 sm:text-4xl md:text-5xl md:leading-14`} ? --------------------- + } text-3...
8
0.470588
6
2
1aad4551ca18582735c427d2ab4ace3e48d04abf
account_banking_mandate/views/account_invoice_view.xml
account_banking_mandate/views/account_invoice_view.xml
<?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2013 Akretion (http://www.akretion.com) @author: Alexis de Lattre <alexis.delattre@akretion.com> The licence is in the file __openerp__.py --> <openerp> <data> <record id="invoice_form" model="ir.ui.view"> <field name="name">add.mandate.on.customer.in...
<?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2013 Akretion (http://www.akretion.com) @author: Alexis de Lattre <alexis.delattre@akretion.com> The licence is in the file __openerp__.py --> <openerp> <data> <record id="invoice_form" model="ir.ui.view"> <field name="name">add.mandate.on.customer.in...
FIX domain on mandate_id field on invoices
FIX domain on mandate_id field on invoices
XML
agpl-3.0
acsone/bank-payment,diagramsoftware/bank-payment,open-synergy/bank-payment
xml
## Code Before: <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2013 Akretion (http://www.akretion.com) @author: Alexis de Lattre <alexis.delattre@akretion.com> The licence is in the file __openerp__.py --> <openerp> <data> <record id="invoice_form" model="ir.ui.view"> <field name="name">add.mandat...
<?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2013 Akretion (http://www.akretion.com) @author: Alexis de Lattre <alexis.delattre@akretion.com> The licence is in the file __openerp__.py --> <openerp> <data> <record id="invoice_form" model="ir.ui.view"> <field name="name">add....
3
0.136364
2
1
ee69ddf9fab513eade7242e8ecb33aed166d74ce
frontend/js/pages/Home.js
frontend/js/pages/Home.js
import React, { useState } from 'react'; import ColorChanger from '../app/example-app'; const Home = () => { const [showBugComponent, setShowBugComponent] = useState(false); return ( <> <ColorChanger /> <button type="button" onClick={() => setShowBugComponent(true)}> Click to test if Sent...
import React, { useState } from 'react'; const Home = () => { const [showBugComponent, setShowBugComponent] = useState(false); return ( <> <button type="button" onClick={() => setShowBugComponent(true)}> Click to test if Sentry is capturing frontend errors! (Should only work in Production) ...
Remove colorchange component references from home component
Remove colorchange component references from home component
JavaScript
mit
vintasoftware/django-react-boilerplate,vintasoftware/django-react-boilerplate,vintasoftware/django-react-boilerplate,vintasoftware/django-react-boilerplate
javascript
## Code Before: import React, { useState } from 'react'; import ColorChanger from '../app/example-app'; const Home = () => { const [showBugComponent, setShowBugComponent] = useState(false); return ( <> <ColorChanger /> <button type="button" onClick={() => setShowBugComponent(true)}> Click...
import React, { useState } from 'react'; - - import ColorChanger from '../app/example-app'; const Home = () => { const [showBugComponent, setShowBugComponent] = useState(false); return ( <> - <ColorChanger /> <button type="button" onClick={() => setShowBugComponent(true)}> ...
3
0.157895
0
3
f265330c093b78d1b82bfd3acec97316d730e360
README.md
README.md
Get information about your typekits from the command line ## Installation * build the gem: ```rake build``` * install the gem: ```gem install /full/path/to/typekit_cli-0.0.1.gem``` OR * install with rake: ```rake install``` ## Usage ```typekit --list [options]``` OR ```typekit --ids [options]``` ## Options ...
Get information about your typekits from the command line ## Installation * build the gem: ```rake build``` * install the gem: ```gem install /full/path/to/typekit_cli-0.0.1.gem``` OR * install with rake: ```rake install``` --- ## Configuration * Set the environment variable for TYPEKIT_TOKEN ```export TYPEKIT_T...
Add note about environment variable.
Add note about environment variable.
Markdown
mit
boie0025/typekit_cli
markdown
## Code Before: Get information about your typekits from the command line ## Installation * build the gem: ```rake build``` * install the gem: ```gem install /full/path/to/typekit_cli-0.0.1.gem``` OR * install with rake: ```rake install``` ## Usage ```typekit --list [options]``` OR ```typekit --ids [options]`...
Get information about your typekits from the command line ## Installation * build the gem: ```rake build``` * install the gem: ```gem install /full/path/to/typekit_cli-0.0.1.gem``` OR * install with rake: ```rake install``` + --- + + ## Configuration + * Set the environment variable...
6
0.222222
6
0
ace3d0664da319356bcdbef3d8e89987565d47f7
arms/Map.moon
arms/Map.moon
import terrain from require 'arms/constants' class Map new: => @size = x: 96 y: 96 @data = base_terrain: terrain.grass1 base_elevation: 1 tiles: {} base_terrain: (type) => @data.base_terrain = type base_elevation: (level = 1) => @data.base_elevation = level final...
import terrain from require 'arms/constants' class Tile new: (@terrain_type, @elevation) => to_json: => { t: @terrain_type, e: @elevation } class Map new: => @size = x: 96 y: 96 @data = base_terrain: terrain.grass1 base_elevation: 1 tiles: {} base_terrain: (type) => ...
Add Tile class to script library.
Add Tile class to script library.
MoonScript
mit
goto-bus-stop/arms
moonscript
## Code Before: import terrain from require 'arms/constants' class Map new: => @size = x: 96 y: 96 @data = base_terrain: terrain.grass1 base_elevation: 1 tiles: {} base_terrain: (type) => @data.base_terrain = type base_elevation: (level = 1) => @data.base_elevation ...
import terrain from require 'arms/constants' + + class Tile + new: (@terrain_type, @elevation) => + to_json: => { t: @terrain_type, e: @elevation } class Map new: => @size = x: 96 y: 96 @data = base_terrain: terrain.grass1 base_elevation: 1 tiles: {} ...
16
0.421053
11
5
8c04b4eb0f19f14a3d07915d0ef98d1cc3454b6b
src/elements/forms/element_radiogroup.erl
src/elements/forms/element_radiogroup.erl
% vim: sw=4 ts=4 et ft=erlang % Nitrogen Web Framework for Erlang % Copyright (c) 2008-2010 Rusty Klophaus % See MIT-LICENSE for licensing information. -module (element_radiogroup). -include("wf.hrl"). -export([ reflect/0, render_element/1 ]). -spec reflect() -> [atom()]. reflect() -> record_info(fields, radi...
% vim: sw=4 ts=4 et ft=erlang % Nitrogen Web Framework for Erlang % Copyright (c) 2008-2010 Rusty Klophaus % See MIT-LICENSE for licensing information. -module (element_radiogroup). -include("wf.hrl"). -export([ reflect/0, render_element/1 ]). -spec reflect() -> [atom()]. reflect() -> record_info(fields, radi...
Remove unnecessary rendering timer in radiogroup
Remove unnecessary rendering timer in radiogroup
Erlang
mit
nitrogen/nitrogen_core,choptastic/nitrogen_core,choptastic/nitrogen_core,nitrogen/nitrogen_core,nitrogen/nitrogen_core,nitrogen/nitrogen_core,choptastic/nitrogen_core
erlang
## Code Before: % vim: sw=4 ts=4 et ft=erlang % Nitrogen Web Framework for Erlang % Copyright (c) 2008-2010 Rusty Klophaus % See MIT-LICENSE for licensing information. -module (element_radiogroup). -include("wf.hrl"). -export([ reflect/0, render_element/1 ]). -spec reflect() -> [atom()]. reflect() -> record_i...
% vim: sw=4 ts=4 et ft=erlang % Nitrogen Web Framework for Erlang % Copyright (c) 2008-2010 Rusty Klophaus % See MIT-LICENSE for licensing information. -module (element_radiogroup). -include("wf.hrl"). -export([ reflect/0, render_element/1 ]). -spec reflect() -> [atom()]. reflect()...
4
0.090909
1
3
99bfb5cbf9396bd463523bec05d4add1e4bead82
.gitlab-ci.yml
.gitlab-ci.yml
image: gcc build: stage: build before_script: - apt-get update && apt-get install -y libogg-dev zip doxygen script: - ./autogen.sh - ./configure - make - make distcheck cache: paths: - "lib/*.o" - "lib/.libs/*.o" tags: - docker
image: gcc autoconf: stage: build before_script: - apt-get update && apt-get install -y libogg-dev zip doxygen script: - ./autogen.sh - ./configure - make - make distcheck cache: paths: - "lib/*.o" - "lib/.libs/*.o" tags: - docker cmake: stage: build before_...
Add cmake build to gitlab ci.
Add cmake build to gitlab ci. Add an additional build job to the gitlab ci pipeline to do a cmake build. This doesn't run tests, but gives us a little bit of converage.
YAML
bsd-3-clause
ShiftMediaProject/vorbis,ShiftMediaProject/vorbis,ShiftMediaProject/vorbis,ShiftMediaProject/vorbis,ShiftMediaProject/vorbis,ShiftMediaProject/vorbis
yaml
## Code Before: image: gcc build: stage: build before_script: - apt-get update && apt-get install -y libogg-dev zip doxygen script: - ./autogen.sh - ./configure - make - make distcheck cache: paths: - "lib/*.o" - "lib/.libs/*.o" tags: - docker ## Instruction: Ad...
image: gcc - build: + autoconf: stage: build before_script: - apt-get update && apt-get install -y libogg-dev zip doxygen script: - ./autogen.sh - ./configure - make - make distcheck cache: paths: - "lib/*.o" - "lib/.libs/*.o" tags: ...
15
0.833333
14
1
e63145ccaffcdb8b8f106841e8f7bd0a3e330dec
lib/devise_jwt/jwt_failure_app.rb
lib/devise_jwt/jwt_failure_app.rb
require 'devise/failure_app' module DeviseJwt class JwtFailureApp < Devise::FailureApp def http_auth self.status = respond_status self.content_type = request.format.to_s self.response_body = http_auth_body end def http_auth_body return i18n_message unless request_format me...
require 'devise/failure_app' module DeviseJwt class JwtFailureApp < Devise::FailureApp def http_auth self.status = respond_status self.content_type = request.format.to_s self.response_body = http_auth_body end def http_auth_body return i18n_message unless request_format me...
Redefine scope property of i18n options from devise.failure to devise_jwt.failure
Redefine scope property of i18n options from devise.failure to devise_jwt.failure
Ruby
mit
Alexey79/devise_jwt
ruby
## Code Before: require 'devise/failure_app' module DeviseJwt class JwtFailureApp < Devise::FailureApp def http_auth self.status = respond_status self.content_type = request.format.to_s self.response_body = http_auth_body end def http_auth_body return i18n_message unless request...
require 'devise/failure_app' module DeviseJwt class JwtFailureApp < Devise::FailureApp def http_auth self.status = respond_status self.content_type = request.format.to_s self.response_body = http_auth_body end def http_auth_body return i18n_message unle...
11
0.314286
9
2
24dc88645ec49447323f9288d47a9a9bf1b8528f
addons/notes/package.json
addons/notes/package.json
{ "name": "@storybook/addon-notes", "version": "3.4.0-alpha.9", "description": "Write notes for your Storybook stories.", "keywords": [ "addon", "notes", "storybook" ], "license": "MIT", "main": "dist/index.js", "jsnext:main": "src/index.js", "repository": { "type": "git", "url": "...
{ "name": "@storybook/addon-notes", "version": "3.4.0-alpha.9", "description": "Write notes for your Storybook stories.", "keywords": [ "addon", "notes", "storybook" ], "license": "MIT", "main": "dist/index.js", "jsnext:main": "src/index.js", "repository": { "type": "git", "url": "...
Move "@types/react" to dev dependencies
Move "@types/react" to dev dependencies
JSON
mit
kadirahq/react-storybook,storybooks/storybook,kadirahq/react-storybook,rhalff/storybook,storybooks/storybook,rhalff/storybook,storybooks/react-storybook,rhalff/storybook,rhalff/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,rhalff/storybook,storybooks/react-storybook...
json
## Code Before: { "name": "@storybook/addon-notes", "version": "3.4.0-alpha.9", "description": "Write notes for your Storybook stories.", "keywords": [ "addon", "notes", "storybook" ], "license": "MIT", "main": "dist/index.js", "jsnext:main": "src/index.js", "repository": { "type": "gi...
{ "name": "@storybook/addon-notes", "version": "3.4.0-alpha.9", "description": "Write notes for your Storybook stories.", "keywords": [ "addon", "notes", "storybook" ], "license": "MIT", "main": "dist/index.js", "jsnext:main": "src/index.js", "repository": { ...
6
0.157895
2
4
e3b2ca70c37cbb9bd999403c5a2ca8cba715d378
sf_dev/examples/my_example/JSON/VNFFG/vnffg1.json
sf_dev/examples/my_example/JSON/VNFFG/vnffg1.json
{ "id": "vnffg1", "vendor": "netgroup", "descriptor_version ": "0.1", "version": "0.1", "number_of_endpoints": 8 , "number_of_virtual_links": 4 , "dependent_virtual_link": "vl01", "network_forwarding_path": [ { "id": "nfp1", "policy": "A policy or rule to apply to the NFP", "connec...
{ "id": "vnffg1", "vendor": "netgroup", "descriptor_version ": "0.1", "version": "0.1", "number_of_endpoints": 8 , "number_of_virtual_links": 4 , "dependent_virtual_link": [ "vl01", "vl11", "vl02", "vl31", "vl04" ], "network_forwarding_path": [ { "id": "nfp1", "poli...
Fix VNF Forwarding Graph Descriptor example
Fix VNF Forwarding Graph Descriptor example
JSON
apache-2.0
superfluidity/RDCL3D,superfluidity/RDCL3D,superfluidity/RDCL3D,superfluidity/RDCL3D,superfluidity/RDCL3D
json
## Code Before: { "id": "vnffg1", "vendor": "netgroup", "descriptor_version ": "0.1", "version": "0.1", "number_of_endpoints": 8 , "number_of_virtual_links": 4 , "dependent_virtual_link": "vl01", "network_forwarding_path": [ { "id": "nfp1", "policy": "A policy or rule to apply to the NFP...
{ "id": "vnffg1", "vendor": "netgroup", "descriptor_version ": "0.1", "version": "0.1", "number_of_endpoints": 8 , "number_of_virtual_links": 4 , - "dependent_virtual_link": "vl01", ? ^^^^^^^ + "dependent_virtual_link": [ ? ^ + ...
8
0.210526
7
1
25af96ec0aa9018bfea77a3b0f653168831eb9ae
scrivener.php
scrivener.php
<?php /** Plugin Name: Scrivener Plugin URI: http://10up.com Description: A WordPress plugin to enhance the post editor preview, mainly through proof of concept. Version: 0.1.0 Author: 10up Author URI: http://10up.com License: GPLv2 or later */ if ( ! class_exists( '\\Composer\\Autoload\\ClassLoader' ) ) { // includ...
<?php /** Plugin Name: Scrivener Plugin URI: http://10up.com Description: A WordPress plugin to enhance the post editor preview, mainly through proof of concept. Version: 0.1.0 Author: 10up Author URI: http://10up.com License: GPLv2 or later */ if ( ! class_exists( '\\Composer\\Autoload\\ClassLoader' ) ) { // includ...
Include Control.php for non-autoloaded installs
Include Control.php for non-autoloaded installs
PHP
mit
tw2113/Post-Customizer,chirox/Post-Customizer,chirox/Post-Customizer,10up/Post-Customizer,10up/Post-Customizer,resarahman/Post-Customizer,tw2113/Post-Customizer,chirox/Post-Customizer,resarahman/Post-Customizer,resarahman/Post-Customizer
php
## Code Before: <?php /** Plugin Name: Scrivener Plugin URI: http://10up.com Description: A WordPress plugin to enhance the post editor preview, mainly through proof of concept. Version: 0.1.0 Author: 10up Author URI: http://10up.com License: GPLv2 or later */ if ( ! class_exists( '\\Composer\\Autoload\\ClassLoader' ...
<?php /** Plugin Name: Scrivener Plugin URI: http://10up.com Description: A WordPress plugin to enhance the post editor preview, mainly through proof of concept. Version: 0.1.0 Author: 10up Author URI: http://10up.com License: GPLv2 or later */ if ( ! class_exists( '\\Composer\\Autoload\\Class...
1
0.058824
1
0
0a604550e4f39b0d40732bf6cefe143ddcd00091
alura/c/forca.c
alura/c/forca.c
int main() { char palavrasecreta[20]; sprintf(palavrasecreta, "MELANCIA"); int acertou = 0; int enforcou = 0; char chutes[26]; int tentativas = 0; do { for(int i = 0; i < strlen(palavrasecreta); i++) { int achou = 0; for(int j = 0; j < tentativas; j++) { if(chutes[j] == pal...
int main() { char palavrasecreta[20]; sprintf(palavrasecreta, "MELANCIA"); int acertou = 0; int enforcou = 0; char chutes[26]; int tentativas = 0; do { for(int i = 0; i < strlen(palavrasecreta); i++) { int achou = 0; for(int j = 0; j < tentativas; j++) { if(chutes[j] == pal...
Update files, Alura, Introdução a C - Parte 2, Aula 2.6
Update files, Alura, Introdução a C - Parte 2, Aula 2.6
C
mit
fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs
c
## Code Before: int main() { char palavrasecreta[20]; sprintf(palavrasecreta, "MELANCIA"); int acertou = 0; int enforcou = 0; char chutes[26]; int tentativas = 0; do { for(int i = 0; i < strlen(palavrasecreta); i++) { int achou = 0; for(int j = 0; j < tentativas; j++) { if(...
int main() { char palavrasecreta[20]; sprintf(palavrasecreta, "MELANCIA"); int acertou = 0; int enforcou = 0; char chutes[26]; int tentativas = 0; do { for(int i = 0; i < strlen(palavrasecreta); i++) { int achou = 0; for(int j = 0; j < tentativ...
1
0.023256
1
0
6cbf4411993e6308760854d479a375933839c0e1
lib/transforms/renderFileTree.coffee
lib/transforms/renderFileTree.coffee
fs = require 'fs' path = require 'path' through = require 'through2' log = require '../utils/log' module.exports = (fileName, opts={}) -> unless fileName throw new PluginError("Render File Tree", "Missing fileName option") filePrefix = opts.filePrefix or "window.#{opts.varName or 'files'} = [\n" fileSuffi...
fs = require 'fs' path = require 'path' through = require 'through2' _ = require 'lodash' log = require '../utils/log' module.exports = (fileName, opts={}) -> unless fileName throw new PluginError("Render File Tree", "Missing fileName option") filePrefix = opts.filePrefix or "window.#{opts.varName or 'files...
Choose First h1 for File Title
Choose First h1 for File Title
CoffeeScript
mit
legomushroom/grock,killercup/grock,killercup/grock,legomushroom/grock,killercup/grock,legomushroom/grock
coffeescript
## Code Before: fs = require 'fs' path = require 'path' through = require 'through2' log = require '../utils/log' module.exports = (fileName, opts={}) -> unless fileName throw new PluginError("Render File Tree", "Missing fileName option") filePrefix = opts.filePrefix or "window.#{opts.varName or 'files'} = ...
fs = require 'fs' path = require 'path' through = require 'through2' + _ = require 'lodash' log = require '../utils/log' module.exports = (fileName, opts={}) -> unless fileName throw new PluginError("Render File Tree", "Missing fileName option") filePrefix = opts.filePrefix or "windo...
3
0.076923
2
1
467fe7e332e83acc1a60002fb572050c03b8d40c
.travis.yml
.travis.yml
language: php php: - 5.6 - 7.0 - 7.1 - 7.2 - hhvm - nightly env: - PREFER_LOWEST="--prefer-lowest --prefer-stable" - PREFER_LOWEST="" matrix: fast_finish: true allow_failures: - php: hhvm - php: nightly before_script: - composer update $PREFER_LOWEST script: - ./vendor/bin/phpunit --co...
language: php php: - 5.6 - 7.0 - 7.1 - 7.2 - hhvm - nightly env: - PREFER_LOWEST="--prefer-lowest --prefer-stable" - PREFER_LOWEST="" matrix: fast_finish: true allow_failures: - php: 7.2 - php: hhvm - php: nightly before_script: - composer update $PREFER_LOWEST script: - ./vendor/...
Add PHP 7.2 back to allowed failures
Add PHP 7.2 back to allowed failures
YAML
mit
chadicus/slim-oauth2-middleware
yaml
## Code Before: language: php php: - 5.6 - 7.0 - 7.1 - 7.2 - hhvm - nightly env: - PREFER_LOWEST="--prefer-lowest --prefer-stable" - PREFER_LOWEST="" matrix: fast_finish: true allow_failures: - php: hhvm - php: nightly before_script: - composer update $PREFER_LOWEST script: - ./vendor/...
language: php php: - 5.6 - 7.0 - 7.1 - 7.2 - hhvm - nightly env: - PREFER_LOWEST="--prefer-lowest --prefer-stable" - PREFER_LOWEST="" matrix: fast_finish: true allow_failures: + - php: 7.2 - php: hhvm - php: nightly before_script: - composer updat...
1
0.047619
1
0
ba1a15aacd739b2686441be98a67124180cd2791
app/controllers/requests_controller.rb
app/controllers/requests_controller.rb
class RequestsController < ApplicationController def index @requests = Request.all @new_request = Request.new end def show @request = Request.find(params[:id]) end def create Request.create!(request_params) redirect_to requests_path end private def request_params params.require(:r...
class RequestsController < ApplicationController def index @requests = Request.all.order(:name) @new_request = Request.new end def show @request = Request.find(params[:id]) end def create Request.create!(request_params) redirect_to requests_path end private def request_params para...
Sort requsts on the index page by name
Sort requsts on the index page by name
Ruby
mit
DerekEdwards/simple-api-monitor,DerekEdwards/simple-api-monitor,DerekEdwards/simple-api-monitor
ruby
## Code Before: class RequestsController < ApplicationController def index @requests = Request.all @new_request = Request.new end def show @request = Request.find(params[:id]) end def create Request.create!(request_params) redirect_to requests_path end private def request_params p...
class RequestsController < ApplicationController def index - @requests = Request.all + @requests = Request.all.order(:name) ? +++++++++++++ @new_request = Request.new end def show @request = Request.find(params[:id]) end def create Request.c...
2
0.083333
1
1
34c03047964244015280b2634d7d802b911076dd
generators/geokit_cache/templates/model_spec.rb
generators/geokit_cache/templates/model_spec.rb
require File.expand_path(File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../spec_helper') describe <%= class_name %> do before(:each) do @valid_attributes = { <% attributes.each_with_index do |attribute, attribute_index| -%> :<%= attribute.name %> => <%= attribute.default_value %><%= attribut...
require File.expand_path(File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../spec_helper') describe <%= class_name %> do it "should provide geocode command" do <%= class_name %>.should respond_to(:geocode) end end
Replace generator for testing with sufficent one.
Replace generator for testing with sufficent one.
Ruby
mit
pr0d1r2/geokit-cache
ruby
## Code Before: require File.expand_path(File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../spec_helper') describe <%= class_name %> do before(:each) do @valid_attributes = { <% attributes.each_with_index do |attribute, attribute_index| -%> :<%= attribute.name %> => <%= attribute.default_valu...
require File.expand_path(File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../spec_helper') describe <%= class_name %> do + it "should provide geocode command" do + <%= class_name %>.should respond_to(:geocode) - before(:each) do - @valid_attributes = { - <% attributes.each_with_index d...
12
0.705882
2
10
ec667529d05868d6360394adfa7919cafadb15f6
README.md
README.md
Add the latest version of a gem to your Gemfile from the command line. * No need to search RubyGems for version numbers * No need to edit your Gemfile directly * Gemrat bundles automatically ## Installation Add this line to your application's Gemfile: gem 'gemrat' And then execute: $ bundle Or install ...
Add the latest version of a gem to your Gemfile from the command line. * No need to search RubyGems for version numbers * No need to edit your Gemfile directly * Gemrat bundles automatically ## Usage Add the latest version of a gem to your Gemfile and bundle. Formated: (gem 'name', 'version') <pre> $ gemrat gem_name...
Reorder usage and installation details
Reorder usage and installation details
Markdown
mit
DruRly/gemrat
markdown
## Code Before: Add the latest version of a gem to your Gemfile from the command line. * No need to search RubyGems for version numbers * No need to edit your Gemfile directly * Gemrat bundles automatically ## Installation Add this line to your application's Gemfile: gem 'gemrat' And then execute: $ bun...
Add the latest version of a gem to your Gemfile from the command line. * No need to search RubyGems for version numbers * No need to edit your Gemfile directly * Gemrat bundles automatically - - - ## Installation - - Add this line to your application's Gemfile: - - gem 'gemrat' - - And then execu...
29
0.568627
14
15
d202d7b2059eb440c044477993a6e0d6aa4d5086
app/tests/test_device_msg_deserialize.c
app/tests/test_device_msg_deserialize.c
static void test_deserialize_clipboard(void) { const unsigned char input[] = { DEVICE_MSG_TYPE_CLIPBOARD, 0x00, 0x03, // text length 0x41, 0x42, 0x43, // "ABC" }; struct device_msg msg; ssize_t r = device_msg_deserialize(input, sizeof(input), &msg); assert(r == 6); asse...
static void test_deserialize_clipboard(void) { const unsigned char input[] = { DEVICE_MSG_TYPE_CLIPBOARD, 0x00, 0x03, // text length 0x41, 0x42, 0x43, // "ABC" }; struct device_msg msg; ssize_t r = device_msg_deserialize(input, sizeof(input), &msg); assert(r == 6); ass...
Add unit test for big clipboard device message
Add unit test for big clipboard device message Test clipboard synchronization from the device to the computer.
C
apache-2.0
Genymobile/scrcpy,Genymobile/scrcpy,Genymobile/scrcpy
c
## Code Before: static void test_deserialize_clipboard(void) { const unsigned char input[] = { DEVICE_MSG_TYPE_CLIPBOARD, 0x00, 0x03, // text length 0x41, 0x42, 0x43, // "ABC" }; struct device_msg msg; ssize_t r = device_msg_deserialize(input, sizeof(input), &msg); assert(r ...
+ static void test_deserialize_clipboard(void) { const unsigned char input[] = { DEVICE_MSG_TYPE_CLIPBOARD, 0x00, 0x03, // text length 0x41, 0x42, 0x43, // "ABC" }; struct device_msg msg; ssize_t r = device_msg_deserialize(input, sizeof(input), &msg); as...
22
1
22
0
258d09c40c378fd9c78841050c09420a56145b47
examples/webgoat/vuln-27/readme.md
examples/webgoat/vuln-27/readme.md
TEST vuln-27.attack This is a Gauntlt test to check if the vulnerability in WebGoat located at Parameter Tampering => Bypass HTML Field Restrictions (vuln-27) exists. It will return a - 1 (error) if the vulnerability is present - 0 (success) if the vulnerability is fixed (aka not present) This test assumes 3 thing...
TEST vuln-27.attack This is a Gauntlt test to check if the vulnerability in WebGoat located at Parameter Tampering => Bypass HTML Field Restrictions (vuln-27) exists. It will return a - 1 (error) if the vulnerability is present - 0 (success) if the vulnerability is fixed (aka not present) This test assumes 5 thing...
Add to list of assumptions/restrictions to have this work correctly.
Add to list of assumptions/restrictions to have this work correctly.
Markdown
mit
mtesauro/gauntlt-demo,mtesauro/gauntlt-demo,gauntlt/gauntlt-demo,gauntlt/gauntlt-demo
markdown
## Code Before: TEST vuln-27.attack This is a Gauntlt test to check if the vulnerability in WebGoat located at Parameter Tampering => Bypass HTML Field Restrictions (vuln-27) exists. It will return a - 1 (error) if the vulnerability is present - 0 (success) if the vulnerability is fixed (aka not present) This test...
TEST vuln-27.attack This is a Gauntlt test to check if the vulnerability in WebGoat located at Parameter Tampering => Bypass HTML Field Restrictions (vuln-27) exists. It will return a - 1 (error) if the vulnerability is present - 0 (success) if the vulnerability is fixed (aka not present) - This te...
6
0.193548
5
1
c2f407a53ad1de0787bb8a7c709018007db35176
.idea/runConfigurations/Generate_Documentation.xml
.idea/runConfigurations/Generate_Documentation.xml
<component name="ProjectRunConfigurationManager"> <configuration default="false" name="Generate Documentation" type="docs" factoryName="Sphinx task"> <option name="INTERPRETER_OPTIONS" value="" /> <option name="PARENT_ENVS" value="true" /> <envs /> <option name="SDK_HOME" value="" /> <option name=...
<component name="ProjectRunConfigurationManager"> <configuration default="false" name="Generate Documentation" type="docs" factoryName="Sphinx task"> <option name="INTERPRETER_OPTIONS" value="" /> <option name="PARENT_ENVS" value="true" /> <envs /> <option name="SDK_HOME" value="" /> <option name=...
Update docgen PyCharm config to be more portable.
Update docgen PyCharm config to be more portable.
XML
mit
tylerbutler/engineer,tylerbutler/engineer,tylerbutler/engineer
xml
## Code Before: <component name="ProjectRunConfigurationManager"> <configuration default="false" name="Generate Documentation" type="docs" factoryName="Sphinx task"> <option name="INTERPRETER_OPTIONS" value="" /> <option name="PARENT_ENVS" value="true" /> <envs /> <option name="SDK_HOME" value="" /> ...
<component name="ProjectRunConfigurationManager"> <configuration default="false" name="Generate Documentation" type="docs" factoryName="Sphinx task"> <option name="INTERPRETER_OPTIONS" value="" /> <option name="PARENT_ENVS" value="true" /> <envs /> <option name="SDK_HOME" value="" /> - ...
6
0.272727
3
3
4523cbe19ac7c0c017eebbebaa32193bbd5cc86c
README.md
README.md
Basically, you don't want to learn too much when you pick a boilerplate. Clone and start the prototyping. ### Installation To install the latest release ```bash $ npm install ts-express-angular2-node-boilerplate ``` Install the dependencies ```bash $ npm install ``` ### Scripts - **npm start**: Start a server withou...
Basically, you don't want to learn too much when you pick a boilerplate. Clone and start the prototyping. This boilerplate is built on top of [5 Min Quickstart](https://angular.io/docs/ts/latest/quickstart.html). ### Installation To install the latest release ```bash $ npm install ts-express-angular2-node-boilerplat...
Add back reference of 5 mins quickstart
Add back reference of 5 mins quickstart
Markdown
mit
tngan/ts-express-angular2-node-boilerplate,tngan/ts-express-angular2-node-boilerplate,tngan/ts-express-angular2-node-boilerplate
markdown
## Code Before: Basically, you don't want to learn too much when you pick a boilerplate. Clone and start the prototyping. ### Installation To install the latest release ```bash $ npm install ts-express-angular2-node-boilerplate ``` Install the dependencies ```bash $ npm install ``` ### Scripts - **npm start**: Start...
Basically, you don't want to learn too much when you pick a boilerplate. Clone and start the prototyping. + + This boilerplate is built on top of [5 Min Quickstart](https://angular.io/docs/ts/latest/quickstart.html). ### Installation To install the latest release ```bash $ npm install ts-express-angula...
2
0.054054
2
0
0879f775bc769994326ef058b0a5e13de556ea23
.github/workflows/tests.yml
.github/workflows/tests.yml
name: Tests on: push: pull_request: jobs: test: strategy: fail-fast: false matrix: python: - "3.6" - "3.7" - "3.8" django: - "2.2.20" - "3.1.8" - "3.2" drf: - "no" - "3.12.4" name: "Pytho...
name: Tests on: push: pull_request: jobs: test: strategy: fail-fast: false matrix: python: - "3.6" - "3.7" - "3.8" django: - "2.2.20" - "3.1.8" - "3.2" drf: - "no" - "3.12.4" name: "Pytho...
MIgrate CI to GitHub actions
MIgrate CI to GitHub actions
YAML
mit
nshafer/django-hashid-field,nshafer/django-hashid-field
yaml
## Code Before: name: Tests on: push: pull_request: jobs: test: strategy: fail-fast: false matrix: python: - "3.6" - "3.7" - "3.8" django: - "2.2.20" - "3.1.8" - "3.2" drf: - "no" - "3.12.4" ...
name: Tests on: push: pull_request: jobs: test: strategy: fail-fast: false matrix: python: - "3.6" - "3.7" - "3.8" django: - "2.2.20" - "3.1.8" - "3.2" drf: - "...
2
0.05
1
1
d866b11bc84783f370d3efa3b20dfeb9ab5f9cca
components/TopNavBar.js
components/TopNavBar.js
import React from 'react' class Nav extends React.Component { componentDidMount() { // initSideNav() } render() { return ( <div> <p className="tc bg-white ma0 pa3 f1 helvetica head-text">Alumnus</p> <style jsx>{` .head-text{ color: #094E62; ...
import React from 'react' class Nav extends React.Component { componentDidMount() { // initSideNav() } render() { return ( <div> <p className="tc bg-white ma0 pa3 f1 helvetica shadow-3 custom-color">Alumnus</p> <style jsx>{` .custom-color { color: #094E62; ...
Replace custom shadow with Tachyon shadow class
Replace custom shadow with Tachyon shadow class
JavaScript
mit
efleurine/alumnus
javascript
## Code Before: import React from 'react' class Nav extends React.Component { componentDidMount() { // initSideNav() } render() { return ( <div> <p className="tc bg-white ma0 pa3 f1 helvetica head-text">Alumnus</p> <style jsx>{` .head-text{ color: #094E...
import React from 'react' class Nav extends React.Component { componentDidMount() { // initSideNav() } render() { return ( <div> - <p className="tc bg-white ma0 pa3 f1 helvetica head-text">Alumnus</p> ? - ^^^ + ...
14
0.538462
5
9
a30aa6e90dfa1abe1f98defbd255439cc663c9ef
install.sh
install.sh
for name in *; do if [ ! $name == "README.md" -a ! $name == "install.sh" ]; then target="$HOME/.$name" if [ -h $target ]; then rm $target elif [ -d $target ]; then rm -rf $target fi ln -s "$PWD/$name" "$target" echo "Linked $PWD/$name to $target." fi done # Bootstrap the envi...
for name in *; do if [ ! $name == "README.md" -a ! $name == "install.sh" ]; then target="$HOME/.$name" if [ -h $target ]; then rm $target elif [ -d $target ]; then rm -rf $target fi ln -s "$PWD/$name" "$target" echo "Linked $PWD/$name to $target." fi done # Bootstrap the envi...
Add command to run brew requirements.
Add command to run brew requirements.
Shell
bsd-3-clause
jonathanchu/dotfiles,jonathanchu/dotfiles,jonathanchu/dotfiles
shell
## Code Before: for name in *; do if [ ! $name == "README.md" -a ! $name == "install.sh" ]; then target="$HOME/.$name" if [ -h $target ]; then rm $target elif [ -d $target ]; then rm -rf $target fi ln -s "$PWD/$name" "$target" echo "Linked $PWD/$name to $target." fi done # Bo...
for name in *; do if [ ! $name == "README.md" -a ! $name == "install.sh" ]; then target="$HOME/.$name" if [ -h $target ]; then rm $target elif [ -d $target ]; then rm -rf $target fi ln -s "$PWD/$name" "$target" echo "Linked $PWD/$name to $target." f...
3
0.090909
3
0
a0861b328f1eae418a0613f8e1f1d99aa788a2e6
k8s/havenapi-deployment.yaml
k8s/havenapi-deployment.yaml
--- apiVersion: extensions/v1beta1 kind: Deployment metadata: name: havenapi spec: replicas: 1 template: metadata: annotations: alpha.image.policy.openshift.io/resolve-names: '*' labels: service: havenapi spec: containers: - name: havenapi image: havengr...
--- apiVersion: extensions/v1beta1 kind: Deployment metadata: name: havenapi spec: replicas: 1 template: metadata: annotations: alpha.image.policy.openshift.io/resolve-names: '*' labels: service: havenapi spec: containers: - name: havenapi image: havengr...
Add resource limits for HavenAPI pods
Add resource limits for HavenAPI pods Signed-off-by: Elliot Murphy <014ce8fab4ab9f8a957bfe9f974379093994de97@users.noreply.github.com>
YAML
apache-2.0
kindlyops/mappamundi,kindlyops/mappamundi,kindlyops/mappamundi,kindlyops/mappamundi,kindlyops/mappamundi,kindlyops/mappamundi,kindlyops/mappamundi,kindlyops/mappamundi
yaml
## Code Before: --- apiVersion: extensions/v1beta1 kind: Deployment metadata: name: havenapi spec: replicas: 1 template: metadata: annotations: alpha.image.policy.openshift.io/resolve-names: '*' labels: service: havenapi spec: containers: - name: havenapi ...
--- apiVersion: extensions/v1beta1 kind: Deployment metadata: name: havenapi spec: replicas: 1 template: metadata: annotations: alpha.image.policy.openshift.io/resolve-names: '*' labels: service: havenapi spec: containers: - name: h...
7
0.12069
6
1
7e5690aa339af31c686d5a8d367e56305fdaeef5
README.md
README.md
[![Join the chat at https://gitter.im/trump-tracker/Lobby](https://badges.gitter.im/trump-tracker/Lobby.svg)](https://gitter.im/trump-tracker/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) # Setup Install [Jekyll](https://jekyllrb.com/) and Bundler: gem install jekyll bundler ...
[![Join the chat at https://gitter.im/trump-tracker/Lobby](https://badges.gitter.im/trump-tracker/Lobby.svg)](https://gitter.im/trump-tracker/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) # Setup Install [Jekyll](https://jekyllrb.com/) and Bundler: gem install jekyll bundler ...
Add install instructions about running bundle install (for those new to bundler)
Add install instructions about running bundle install (for those new to bundler)
Markdown
mit
TrumpTracker/trumptracker.github.io,StarCitizenTracker/StarCitizenTracker.github.io,StarCitizenTracker/StarCitizenTracker.github.io,StarCitizenTracker/StarCitizenTracker.github.io,TrumpTracker/trumptracker.github.io,TrumpTracker/trumptracker.github.io,StarCitizenTracker/StarCitizenTracker.github.io
markdown
## Code Before: [![Join the chat at https://gitter.im/trump-tracker/Lobby](https://badges.gitter.im/trump-tracker/Lobby.svg)](https://gitter.im/trump-tracker/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) # Setup Install [Jekyll](https://jekyllrb.com/) and Bundler: gem install j...
[![Join the chat at https://gitter.im/trump-tracker/Lobby](https://badges.gitter.im/trump-tracker/Lobby.svg)](https://gitter.im/trump-tracker/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) # Setup Install [Jekyll](https://jekyllrb.com/) and Bundler: gem install jek...
1
0.038462
1
0
fa858b1b1b8291b7e9966d57e66f508f01789e85
.travis.yml
.travis.yml
language: python python: - "3.4" - "3.5" - "3.6" cache: pip env: - SET="-m logic" - SET="-m live" - SET="-m destructive" install: - pip install --quiet -r requirements.txt -r test_requirements.txt before_script: - mkdir -p $HOME/$DEST - curl -u $KEY $HOST/$FILE > $HOME/$DEST/$FILE script: - cove...
language: python python: - "3.4" - "3.5" - "3.6" cache: pip env: - SET="-m logic" - SET="-m live" - SET="-m destructive" install: - pip install --quiet -r requirements.txt -r test_requirements.txt before_script: - mkdir -p $HOME/$DEST - curl -u $KEY $HOST/$FILE > $HOME/$DEST/$FILE script: - cove...
Allow profiling deploy on all branches but limit by repo
Allow profiling deploy on all branches but limit by repo
YAML
mit
Artanicus/python-cozify,Artanicus/python-cozify
yaml
## Code Before: language: python python: - "3.4" - "3.5" - "3.6" cache: pip env: - SET="-m logic" - SET="-m live" - SET="-m destructive" install: - pip install --quiet -r requirements.txt -r test_requirements.txt before_script: - mkdir -p $HOME/$DEST - curl -u $KEY $HOST/$FILE > $HOME/$DEST/$FILE ...
language: python python: - "3.4" - "3.5" - "3.6" cache: pip env: - SET="-m logic" - SET="-m live" - SET="-m destructive" install: - pip install --quiet -r requirements.txt -r test_requirements.txt before_script: - mkdir -p $HOME/$DEST - curl -u $KEY $HOST/$FILE >...
3
0.096774
3
0
60da9358ab8263c7f6f5a3625c55746576140aca
layout/default/FormField/Textarea/default.less
layout/default/FormField/Textarea/default.less
[placeholder]:empty::after { color: @colorInputPlaceholder; content: attr(placeholder); pointer-events: none; }
[placeholder]:empty::before { color: @colorInputPlaceholder; content: attr(placeholder); pointer-events: none; position: absolute; }
Fix caret positioning bug that makes the contenteditabe unusable in FF (still causes a small bug)
Fix caret positioning bug that makes the contenteditabe unusable in FF (still causes a small bug)
Less
mit
njam/CM,fauvel/CM,cargomedia/CM,cargomedia/CM,cargomedia/CM,njam/CM,cargomedia/CM,fauvel/CM,njam/CM,fauvel/CM,fauvel/CM,njam/CM,fauvel/CM,njam/CM
less
## Code Before: [placeholder]:empty::after { color: @colorInputPlaceholder; content: attr(placeholder); pointer-events: none; } ## Instruction: Fix caret positioning bug that makes the contenteditabe unusable in FF (still causes a small bug) ## Code After: [placeholder]:empty::before { color: @colorInputPlace...
- [placeholder]:empty::after { ? ^ ^ - + [placeholder]:empty::before { ? ^^ ^^ color: @colorInputPlaceholder; content: attr(placeholder); pointer-events: none; + position: absolute; }
3
0.6
2
1
6755a983e97e82b8cd02d59f691fdcf797a6ca15
index.md
index.md
--- layout: lesson --- This lesson is a template for creating lessons of the [easy fMRI reporting]({{site.nhw_site}}) project. It is based on the lesson template used in [Neurohackweek]({{ site.nhw_site }}) and derived from [Data Carpentry]({{ site.dc_site }}) and [Software Carpentry]({{ site.swc_site }}) templates.
--- layout: lesson --- This lesson is a template for creating lessons of the [easy fMRI reporting](https://github.com/easyreporting/fmri_reporting) project. It is based on the lesson template used in [Neurohackweek]({{ site.nhw_site }}) and derived from [Data Carpentry]({{ site.dc_site }}) and [Software Carpentry]({{ ...
Update link to easy fmri reporting project
Update link to easy fmri reporting project
Markdown
mit
easyreporting/fmri_reporting,easyreporting/fmri_reporting,easyreporting/fmri_reporting,easyreporting/fmri_reporting,easyreporting/fmri_reporting,easyreporting/fmri_reporting
markdown
## Code Before: --- layout: lesson --- This lesson is a template for creating lessons of the [easy fMRI reporting]({{site.nhw_site}}) project. It is based on the lesson template used in [Neurohackweek]({{ site.nhw_site }}) and derived from [Data Carpentry]({{ site.dc_site }}) and [Software Carpentry]({{ site.swc_site ...
--- layout: lesson --- - This lesson is a template for creating lessons of the [easy fMRI reporting]({{site.nhw_site}}) project. ? ^^ ^ ^^ ^ ^^^^ + This lesson is a template for creating lessons of the [easy fMRI reporting](https://gi...
2
0.285714
1
1
9779d56b495f27e6681d603b2871d39abba956ee
CHANGELOG.md
CHANGELOG.md
* BC break: Drop unused `Response::getBody()` * BC break: Bump minimum PHP version to PHP 5.4, remove 5.3 specific hacks * BC break: Remove `$loop` argument from `HttpClient`: `Client`, `Request`, `Response` * BC break: Update to React/Promise 2.0 * Dependency: Autoloading and filesystem structure now PSR-4 instead of...
* BC break: Drop unused `Response::getBody()` * BC break: Bump minimum PHP version to PHP 5.4, remove 5.3 specific hacks * BC break: Remove `$loop` argument from `HttpClient`: `Client`, `Request`, `Response` * BC break: Update to React/Promise 2.0 * Dependency: Autoloading and filesystem structure now PSR-4 instead of...
Add bumped versions to changelog
Add bumped versions to changelog
Markdown
mit
arnaud-lb/http-client,reactphp/http-client,zengpuzhang/http-client
markdown
## Code Before: * BC break: Drop unused `Response::getBody()` * BC break: Bump minimum PHP version to PHP 5.4, remove 5.3 specific hacks * BC break: Remove `$loop` argument from `HttpClient`: `Client`, `Request`, `Response` * BC break: Update to React/Promise 2.0 * Dependency: Autoloading and filesystem structure now ...
* BC break: Drop unused `Response::getBody()` * BC break: Bump minimum PHP version to PHP 5.4, remove 5.3 specific hacks * BC break: Remove `$loop` argument from `HttpClient`: `Client`, `Request`, `Response` * BC break: Update to React/Promise 2.0 * Dependency: Autoloading and filesystem structure now PSR-...
6
0.193548
4
2
e73c97463f71717a42ed2f13d02e2ef42c071267
wagtail/wagtailadmin/static_src/wagtailadmin/js/submenu.js
wagtail/wagtailadmin/static_src/wagtailadmin/js/submenu.js
$(function() { var $explorer = $('#explorer'); $('.nav-main .submenu-trigger').on('click', function() { if ($(this).closest('li').find('.nav-submenu').length) { // Close other active submenus first, if any if ($('.nav-wrapper.submenu-active').length && !$(this).closest('li').ha...
$(function() { $('.nav-main .submenu-trigger').on('click', function() { if ($(this).closest('li').find('.nav-submenu').length) { // Close other active submenus first, if any if ($('.nav-wrapper.submenu-active').length && !$(this).closest('li').hasClass('submenu-active')) { ...
Remove useless JS referencing explorer
Remove useless JS referencing explorer
JavaScript
bsd-3-clause
rsalmaso/wagtail,rsalmaso/wagtail,FlipperPA/wagtail,mixxorz/wagtail,takeflight/wagtail,FlipperPA/wagtail,nimasmi/wagtail,jnns/wagtail,FlipperPA/wagtail,gasman/wagtail,takeflight/wagtail,mikedingjan/wagtail,nimasmi/wagtail,zerolab/wagtail,wagtail/wagtail,kaedroho/wagtail,zerolab/wagtail,takeflight/wagtail,kaedroho/wagta...
javascript
## Code Before: $(function() { var $explorer = $('#explorer'); $('.nav-main .submenu-trigger').on('click', function() { if ($(this).closest('li').find('.nav-submenu').length) { // Close other active submenus first, if any if ($('.nav-wrapper.submenu-active').length && !$(this)....
$(function() { - var $explorer = $('#explorer'); - $('.nav-main .submenu-trigger').on('click', function() { if ($(this).closest('li').find('.nav-submenu').length) { // Close other active submenus first, if any if ($('.nav-wrapper.submenu-active').length && !$(this)....
2
0.086957
0
2
c75812a017c6010ea526e587c9afa5c57b1272ad
lib/driver/NeoTypes.ts
lib/driver/NeoTypes.ts
import neo4j from "neo4j-driver"; export const Neo4jNode = neo4j.types.Node; export const Neo4jRelationship = neo4j.types.Relationship; import {Node, Relationship} from "neo4j-driver/types/v1/graph-types"; export function isNode(node: any): node is Node { return (node && node.labels) } export function isRela...
import neo4j from "neo4j-driver"; import {Node, Relationship} from "neo4j-driver/types/v1/graph-types"; const Neo4jNode = neo4j.types.Node; const Neo4jRelationship = neo4j.types.Relationship; export function isNode(node: any): node is Node { return node instanceof Neo4jNode; } export function isRelationship(rel:...
Refactor type guards for Node and Relationships classes
Refactor type guards for Node and Relationships classes
TypeScript
mit
robak86/neography
typescript
## Code Before: import neo4j from "neo4j-driver"; export const Neo4jNode = neo4j.types.Node; export const Neo4jRelationship = neo4j.types.Relationship; import {Node, Relationship} from "neo4j-driver/types/v1/graph-types"; export function isNode(node: any): node is Node { return (node && node.labels) } export...
- - import neo4j from "neo4j-driver"; - - export const Neo4jNode = neo4j.types.Node; - export const Neo4jRelationship = neo4j.types.Relationship; - - import {Node, Relationship} from "neo4j-driver/types/v1/graph-types"; + const Neo4jNode = neo4j.types.Node; + const Neo4jRelationship = neo4j.types.Relationsh...
14
0.823529
5
9
a68b689aab932b09d0e7282137a559ad92b0c737
spec/support/oauth.rb
spec/support/oauth.rb
def construct_oauth_service(model) FakeWeb.allow_net_connect = false qb_key = "key" @realm_id = "9991111222" @oauth_consumer = OAuth::Consumer.new(qb_key, qb_key, { :site => "https://oauth.intuit.com", :request_token_path => "/oauth/v1/get_request_token", :authorize_path ...
def construct_oauth_service(model) FakeWeb.allow_net_connect = false qb_key = "key" qb_secret = "secreet" @realm_id = "9991111222" @oauth_consumer = OAuth::Consumer.new(qb_key, qb_secret, { :site => "https://oauth.intuit.com", :request_token_path => "/oauth/v1/get_request_token"...
Add back qb_secret from recent PR but instead properly pass it in as the second arg of OAuth::Consumer.new
Add back qb_secret from recent PR but instead properly pass it in as the second arg of OAuth::Consumer.new
Ruby
mit
shipci/quickeebooks,vidyar/quickeebooks,ruckus/quickeebooks
ruby
## Code Before: def construct_oauth_service(model) FakeWeb.allow_net_connect = false qb_key = "key" @realm_id = "9991111222" @oauth_consumer = OAuth::Consumer.new(qb_key, qb_key, { :site => "https://oauth.intuit.com", :request_token_path => "/oauth/v1/get_request_token", :au...
def construct_oauth_service(model) FakeWeb.allow_net_connect = false qb_key = "key" + qb_secret = "secreet" @realm_id = "9991111222" - @oauth_consumer = OAuth::Consumer.new(qb_key, qb_key, { ? ^ ^ + @oauth_consumer = OAuth::Consumer.new(qb_key, ...
3
0.157895
2
1
28085a25d83ace50e72553817d5ab8cead7889ef
test/remote/remote_add_receiver_test.rb
test/remote/remote_add_receiver_test.rb
require 'test_helper' class RemoteAddReceiverTest < Test::Unit::TestCase def setup @environment = Spreedly::Environment.new(remote_test_environment_key, remote_test_access_secret) end def test_invalid_login assert_invalid_login do |environment| environment.add_receiver(:test, 'http://api.example....
require 'test_helper' class RemoteAddReceiverTest < Test::Unit::TestCase def setup @environment = Spreedly::Environment.new(remote_test_environment_key, remote_test_access_secret) end def test_invalid_login assert_invalid_login do |environment| environment.add_receiver(:test, 'http://api.example....
Change hostname because for some reason the former one was failing this remote test
Change hostname because for some reason the former one was failing this remote test
Ruby
mit
spreedly/spreedly-gem,SturdyCo/spreedly-gem,kieranklaassen/spreedly-gem,BitPerformanceLabs/spreedly-gem
ruby
## Code Before: require 'test_helper' class RemoteAddReceiverTest < Test::Unit::TestCase def setup @environment = Spreedly::Environment.new(remote_test_environment_key, remote_test_access_secret) end def test_invalid_login assert_invalid_login do |environment| environment.add_receiver(:test, 'htt...
require 'test_helper' class RemoteAddReceiverTest < Test::Unit::TestCase def setup @environment = Spreedly::Environment.new(remote_test_environment_key, remote_test_access_secret) end def test_invalid_login assert_invalid_login do |environment| environment.add_receiver(:test...
4
0.1
2
2
442aed80fd4a62be7142a5da1a51eae3f53e5a20
proto_0_0.go
proto_0_0.go
package main import ( "fmt" "os" "os/exec" ) func proto_0_0(inFlag, outFlag bool, errFlag, workdir string, args []string) error { proc := exec.Command(args[0], args[1:]...) proc.Dir = workdir done := make(chan bool) done_count := 0 done_count += wrapStdin(proc, os.Stdin, inFlag, done) if outFlag { done_co...
package main import ( "fmt" "os" "os/exec" ) func proto_0_0(inFlag, outFlag bool, errFlag, workdir string, args []string) error { proc := exec.Command(args[0], args[1:]...) proc.Dir = workdir done := make(chan bool) done_count := 0 done_count += wrapStdin(proc, os.Stdin, inFlag, done) if outFlag { done_co...
Fix logic error in error flag handling
Fix logic error in error flag handling
Go
mit
alco/goon,felixbuenemann/goon,felixbuenemann/goon,alco/goon
go
## Code Before: package main import ( "fmt" "os" "os/exec" ) func proto_0_0(inFlag, outFlag bool, errFlag, workdir string, args []string) error { proc := exec.Command(args[0], args[1:]...) proc.Dir = workdir done := make(chan bool) done_count := 0 done_count += wrapStdin(proc, os.Stdin, inFlag, done) if out...
package main import ( "fmt" "os" "os/exec" ) func proto_0_0(inFlag, outFlag bool, errFlag, workdir string, args []string) error { proc := exec.Command(args[0], args[1:]...) proc.Dir = workdir done := make(chan bool) done_count := 0 done_count += wrapStdin(proc, os.Stdin, inFlag,...
13
0.393939
9
4
18fda199cf20e39d95c6c9292ff58e1a5800196b
Documentation/index.txt
Documentation/index.txt
Gerrit2 ======= Web based code review and project management for Git based projects. User Guide ---------- * link:user-upload.html[Uploading Changes] Features -------- * link:feature-roadmap.html[Roadmap] Installation ------------ * link:install.html[Installing Gerrit2] * link:project-setup.html[Project Setup] ...
Gerrit2 ======= Web based code review and project management for Git based projects. * link:http://code.google.com/p/gerrit/[Gerrit Homepage] User Guide ---------- * link:user-upload.html[Uploading Changes] Features -------- * link:feature-roadmap.html[Roadmap] Installation ------------ * link:install.html[Inst...
Add a link to our project homepage in the documentation
Add a link to our project homepage in the documentation Signed-off-by: Shawn O. Pearce <f3ea74d906fa9fe97c1fef6bad9cb871485c7045@google.com>
Text
apache-2.0
TonyChai24/test,supriyantomaftuh/gerrit,1yvT0s/gerrit,Saulis/gerrit,Seinlin/gerrit,thinkernel/gerrit,jackminicloud/test,duboisf/gerrit,skurfuerst/gerrit,jeblair/gerrit,Saulis/gerrit,anminhsu/gerrit,dwhipstock/gerrit,bootstraponline-archive/gerrit-mirror,Overruler/gerrit,jackminicloud/test,duboisf/gerrit,1yvT0s/gerrit,h...
text
## Code Before: Gerrit2 ======= Web based code review and project management for Git based projects. User Guide ---------- * link:user-upload.html[Uploading Changes] Features -------- * link:feature-roadmap.html[Roadmap] Installation ------------ * link:install.html[Installing Gerrit2] * link:project-setup.html[...
Gerrit2 ======= Web based code review and project management for Git based projects. + + * link:http://code.google.com/p/gerrit/[Gerrit Homepage] User Guide ---------- * link:user-upload.html[Uploading Changes] Features -------- * link:feature-roadmap.html[Roadmap] Installation ...
2
0.042553
2
0
74dd8ef23dafa941fdba3e9701bc8d805ee9e8a4
README.md
README.md
Flag Bearer =========== A small utility to help with planting IScorE flags. Installation ------------ The recommending way to install flag bearer is through pip: pip install flag-bearer You may optionally install from source by cloning the repository and running python setup.py install
Flag Bearer =========== A small utility to help with planting IScorE flags. Installation ------------ The recommending way to install flag bearer is through pip: pip install flag-bearer You may optionally install from source by cloning the repository and running python setup.py install Usage ----- The main...
Add usage information to the readme
Add usage information to the readme
Markdown
mit
ISEAGE-ISU/flag-bearer
markdown
## Code Before: Flag Bearer =========== A small utility to help with planting IScorE flags. Installation ------------ The recommending way to install flag bearer is through pip: pip install flag-bearer You may optionally install from source by cloning the repository and running python setup.py install ## I...
Flag Bearer =========== A small utility to help with planting IScorE flags. Installation ------------ The recommending way to install flag bearer is through pip: pip install flag-bearer You may optionally install from source by cloning the repository and running python setup.py ins...
34
2.615385
34
0
64078924b68398ebff7649df6e77fd8080acf8d3
app/controllers/application_controller.rb
app/controllers/application_controller.rb
class ApplicationController < ActionController::Base protect_from_forgery helper_method :current_student helper_method :current_user_students # after_filter :store_location private def current_student if session[:current_student_id].present? Student.find(session[:current_student_id]) rescue nil ...
class ApplicationController < ActionController::Base protect_from_forgery helper_method :current_student helper_method :current_user_students # after_filter :store_location private def current_student if session[:current_student_id].present? Student.find(session[:current_student_id]) rescue nil ...
Remove logging from students controller
Remove logging from students controller
Ruby
mit
joelmahoney/discoverbps,joelmahoney/discoverbps,joelmahoney/discoverbps,joelmahoney/discoverbps,joelmahoney/discoverbps,joelmahoney/discoverbps,joelmahoney/discoverbps,joelmahoney/discoverbps
ruby
## Code Before: class ApplicationController < ActionController::Base protect_from_forgery helper_method :current_student helper_method :current_user_students # after_filter :store_location private def current_student if session[:current_student_id].present? Student.find(session[:current_student_i...
class ApplicationController < ActionController::Base protect_from_forgery helper_method :current_student helper_method :current_user_students # after_filter :store_location private def current_student if session[:current_student_id].present? Student.find(session[:current_stu...
2
0.042553
1
1
4abfd47d927603803af4d46c4bf5afb256672b54
Topics/Checklists/checklists/chk_datacleaning.js
Topics/Checklists/checklists/chk_datacleaning.js
[1,"Before data cleaning: Importing the data"], [2,"Check for importing issues such as broken lines when importing .csv files"], [2,"Make sure you have unique IDs"], [2,"De-identify all data and save in a new .dta file"], [2,"Never make any changes to the raw data"], [1,"Important steps for data cleaning"], [2,"La...
[1,"Before data cleaning: Importing the data"], [2,"Check for importing issues such as broken lines when importing .csv files"], [2,"Make sure you have unique IDs"], [2,"De-identify all data and save in a new .dta file"], [2,"Never make any changes to the raw data"], [1,"Important steps for data cleaning"], [2,"La...
Update Checking List for internal purposes
Update Checking List for internal purposes
JavaScript
mit
worldbank/DIMEwiki,worldbank/DIMEwiki
javascript
## Code Before: [1,"Before data cleaning: Importing the data"], [2,"Check for importing issues such as broken lines when importing .csv files"], [2,"Make sure you have unique IDs"], [2,"De-identify all data and save in a new .dta file"], [2,"Never make any changes to the raw data"], [1,"Important steps for data cle...
[1,"Before data cleaning: Importing the data"], [2,"Check for importing issues such as broken lines when importing .csv files"], [2,"Make sure you have unique IDs"], [2,"De-identify all data and save in a new .dta file"], [2,"Never make any changes to the raw data"], [1,"Important steps for data cleanin...
2
0.1
2
0
63b0072311b2228849554eafbb944f98b51d0159
acinclude/ax_boost_suffix.m4
acinclude/ax_boost_suffix.m4
AC_DEFUN([AX_BOOST_SUFFIX], [ AC_ARG_WITH([boost-suffix], [AC_HELP_STRING([--with-boost-suffix=suffix suffix name for boost libraries])], [ boostsuffix="$withval" findsuffix="no" ],[ findsuffix="yes" ]) if test "x$findsuffix" = "xyes"; then if test "x$BOOST_LDFLAGS" = "x"; the...
AC_DEFUN([AX_BOOST_SUFFIX], [ AC_ARG_WITH([boost-suffix], [AC_HELP_STRING([--with-boost-suffix=suffix suffix name for boost libraries])], [ BOOST_SUFFIX="$withval" findsuffix="no" ],[ findsuffix="yes" ]) if test "x$findsuffix" = "xyes"; then if test "x$BOOST_LDFLAGS" = "x"; th...
Fix bug in boost suffix code.
build: Fix bug in boost suffix code.
M4
apache-2.0
b1v1r/ironbee,b1v1r/ironbee,ironbee/ironbee,b1v1r/ironbee,b1v1r/ironbee,b1v1r/ironbee,ironbee/ironbee,b1v1r/ironbee,ironbee/ironbee,b1v1r/ironbee,ironbee/ironbee,ironbee/ironbee,ironbee/ironbee,ironbee/ironbee,ironbee/ironbee,ironbee/ironbee,b1v1r/ironbee,b1v1r/ironbee,b1v1r/ironbee,ironbee/ironbee,ironbee/ironbee,iron...
m4
## Code Before: AC_DEFUN([AX_BOOST_SUFFIX], [ AC_ARG_WITH([boost-suffix], [AC_HELP_STRING([--with-boost-suffix=suffix suffix name for boost libraries])], [ boostsuffix="$withval" findsuffix="no" ],[ findsuffix="yes" ]) if test "x$findsuffix" = "xyes"; then if test "x$BOOST_LDF...
AC_DEFUN([AX_BOOST_SUFFIX], [ AC_ARG_WITH([boost-suffix], [AC_HELP_STRING([--with-boost-suffix=suffix suffix name for boost libraries])], [ - boostsuffix="$withval" + BOOST_SUFFIX="$withval" findsuffix="no" ],[ findsuffix="yes" ]) if test "x$findsuffix" ...
8
0.285714
4
4
40122e169e6a887caa6371a0ff3029c35ce265d5
third_party/node/node.py
third_party/node/node.py
from os import path as os_path import platform import subprocess import sys import os def GetBinaryPath(): return os_path.join( os_path.dirname(__file__), *{ 'Darwin': ('mac', 'node-darwin-x64', 'bin', 'node'), 'Linux': ('linux', 'node-linux-x64', 'bin', 'node'), 'Wind...
from os import path as os_path import platform import subprocess import sys import os def GetBinaryPath(): return os_path.join( os_path.dirname(__file__), *{ 'Darwin': ('mac', 'node-darwin-x64', 'bin', 'node'), 'Linux': ('linux', 'node-linux-x64', 'bin', 'node'), 'Wind...
Fix line ending printing on Python 3
Fix line ending printing on Python 3 To reflect the changes in https://chromium-review.googlesource.com/c/chromium/src/+/2896248/8/third_party/node/node.py R=993fcadce4d04090da2fefd557a0995e7966c8d5@chromium.org Bug: none Change-Id: I25ba29042f537bfef57fba93115be2c194649864 Reviewed-on: https://chromium-review.googl...
Python
bsd-3-clause
ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend
python
## Code Before: from os import path as os_path import platform import subprocess import sys import os def GetBinaryPath(): return os_path.join( os_path.dirname(__file__), *{ 'Darwin': ('mac', 'node-darwin-x64', 'bin', 'node'), 'Linux': ('linux', 'node-linux-x64', 'bin', 'node'), ...
from os import path as os_path import platform import subprocess import sys import os def GetBinaryPath(): return os_path.join( os_path.dirname(__file__), *{ 'Darwin': ('mac', 'node-darwin-x64', 'bin', 'node'), 'Linux': ('linux', 'node-linux-x64', 'bin', ...
3
0.071429
2
1
6a6ebbc63a2e31e3ee150dffd0ae841292e9f025
lib/pixhibitee/command.rb
lib/pixhibitee/command.rb
require "thor" require "launchy" require "pixhibitee" module Pixhibitee class Command < Thor default_command :start map "-v" => :version desc "version", "Show version number." def version puts Pixhibitee::VERSION end desc "start", "Start web server." option :silent, :type => :boo...
require "thor" require "launchy" require "pixhibitee" module Pixhibitee class Command < Thor default_command :start map "-v" => :version desc "version", "Show version number." def version puts Pixhibitee::VERSION end desc "start", "Start web server." option :silent, :type => :boo...
Add --public option for publishing to network
Add --public option for publishing to network
Ruby
mit
myokoym/pixhibitee,myokoym/pixhibitee
ruby
## Code Before: require "thor" require "launchy" require "pixhibitee" module Pixhibitee class Command < Thor default_command :start map "-v" => :version desc "version", "Show version number." def version puts Pixhibitee::VERSION end desc "start", "Start web server." option :silen...
require "thor" require "launchy" require "pixhibitee" module Pixhibitee class Command < Thor default_command :start map "-v" => :version desc "version", "Show version number." def version puts Pixhibitee::VERSION end desc "start", "Start web server." ...
28
1.166667
26
2
36ecfb4e69d726b4fe7659cf4288896b578d9aae
recipes/default.rb
recipes/default.rb
include_recipe "et_nginx::#{node['nginx']['install_method']}" service 'nginx' do supports :status => true, :restart => true, :reload => true action :start end node['nginx']['default']['modules'].each do |ngx_module| include_recipe "et_nginx::#{ngx_module}" end
include_recipe "et_nginx::#{node['nginx']['install_method']}" resources(:service => 'nginx').action :start node['nginx']['default']['modules'].each do |ngx_module| include_recipe "et_nginx::#{ngx_module}" end
Call up previously defined service resource to avoid cloning
Call up previously defined service resource to avoid cloning
Ruby
apache-2.0
evertrue/nginx-cookbook,evertrue/nginx-cookbook,evertrue/nginx-cookbook
ruby
## Code Before: include_recipe "et_nginx::#{node['nginx']['install_method']}" service 'nginx' do supports :status => true, :restart => true, :reload => true action :start end node['nginx']['default']['modules'].each do |ngx_module| include_recipe "et_nginx::#{ngx_module}" end ## Instruction: Call up previou...
include_recipe "et_nginx::#{node['nginx']['install_method']}" + resources(:service => 'nginx').action :start - service 'nginx' do - supports :status => true, :restart => true, :reload => true - action :start - end node['nginx']['default']['modules'].each do |ngx_module| include_recipe "et_nginx::...
5
0.454545
1
4
aad92eb76eb4d3c54c05c4e2151a0bfb44e95964
_includes/gh_contributions.html
_includes/gh_contributions.html
<a href="https://github.com/dlstadther"><img src="http://ghchart.rshah.org/dlstadther" alt="dlstadther's Github contributions" /></a>
<style> figure { float: center; width: 100%; text-align: center; font-style: italic; font-size: smaller; text-indent: 0; border: thin silver solid; margin: 2em; padding: 2em; } </style> <figure> <a href="https://github.com/dlstadther"><img id="ghContributions" src="http://ghchart.rshah.org/dlstad...
Add hex color randomization to gh contributions; add formating
Add hex color randomization to gh contributions; add formating
HTML
mit
dlstadther/dlstadther.github.io,dlstadther/dlstadther.github.io
html
## Code Before: <a href="https://github.com/dlstadther"><img src="http://ghchart.rshah.org/dlstadther" alt="dlstadther's Github contributions" /></a> ## Instruction: Add hex color randomization to gh contributions; add formating ## Code After: <style> figure { float: center; width: 100%; text-align: center; ...
- <a href="https://github.com/dlstadther"><img src="http://ghchart.rshah.org/dlstadther" alt="dlstadther's Github contributions" /></a> + <style> + figure { + float: center; + width: 100%; + text-align: center; + font-style: italic; + font-size: smaller; + text-indent: 0; + border: thin silver solid; + ...
27
13.5
26
1
9c0fd1025e6ce0587a779c7d2e9e941cce8b03f3
flask_website/templates/mailinglist/index.html
flask_website/templates/mailinglist/index.html
{% extends "mailinglist/layout.html" %} {% block title %}Mailinglist{% endblock %} {% block body %} <h2>Mailinglist Information</h2> <p> There is a mailinglist for Flask hosted on <a href=http://librelist.com/>librelist</a> you can use for both user requests and development discussions. <p> To su...
{% extends "mailinglist/layout.html" %} {% block title %}Mailinglist{% endblock %} {% block body %} <h2>Mailinglist Information</h2> <p> There is a mailinglist for Flask hosted on <a href="https://mail.python.org/mailman/listinfo/flask/">python.org</a> that you can use for both user requests and develop...
Update mailinglist link to python.org mailman list
Update mailinglist link to python.org mailman list
HTML
bsd-3-clause
MurtazaB/flask-website,mitsuhiko/flask-website,eromoe/flask-website,eromoe/flask-website,MurtazaB/flask-website,LiHaoGit/flask-website,mitsuhiko/flask-website,LiHaoGit/flask-website,MurtazaB/flask-website,LiHaoGit/flask-website,mitsuhiko/flask-website,eromoe/flask-website
html
## Code Before: {% extends "mailinglist/layout.html" %} {% block title %}Mailinglist{% endblock %} {% block body %} <h2>Mailinglist Information</h2> <p> There is a mailinglist for Flask hosted on <a href=http://librelist.com/>librelist</a> you can use for both user requests and development discussions. ...
{% extends "mailinglist/layout.html" %} {% block title %}Mailinglist{% endblock %} {% block body %} <h2>Mailinglist Information</h2> <p> There is a mailinglist for Flask hosted on <a - href=http://librelist.com/>librelist</a> you can use for both user requests - and development discussions. ...
29
1.380952
19
10
3bac78459082cad9d6abe791dce5279ae1ab1e1c
templates/zerver/emails/notify_change_in_email.source.html
templates/zerver/emails/notify_change_in_email.source.html
{% extends "zerver/emails/compiled/email_base_default.html" %} {% block illustration %} <img src="{{ email_images_base_uri }}/email_logo.png" alt=""/> {% endblock %} {% block content %} <p>{{ _("Hi,") }}</p> <p> {% trans %}The email associated with your Zulip account was recently changed to <a href="{{ new_email ...
{% extends "zerver/emails/compiled/email_base_default.html" %} {% block illustration %} <img src="{{ email_images_base_uri }}/email_logo.png" alt=""/> {% endblock %} {% block content %} <p>{{ _("Hi,") }}</p> <p> {% trans new_email=macros.email_tag(new_email), support_email=macros.email_tag(support_email) %}The em...
Use macros for email tags in notify change in email.
emails: Use macros for email tags in notify change in email.
HTML
apache-2.0
eeshangarg/zulip,punchagan/zulip,eeshangarg/zulip,kou/zulip,showell/zulip,showell/zulip,zulip/zulip,kou/zulip,hackerkid/zulip,andersk/zulip,andersk/zulip,hackerkid/zulip,eeshangarg/zulip,showell/zulip,hackerkid/zulip,eeshangarg/zulip,kou/zulip,punchagan/zulip,rht/zulip,kou/zulip,hackerkid/zulip,hackerkid/zulip,rht/zuli...
html
## Code Before: {% extends "zerver/emails/compiled/email_base_default.html" %} {% block illustration %} <img src="{{ email_images_base_uri }}/email_logo.png" alt=""/> {% endblock %} {% block content %} <p>{{ _("Hi,") }}</p> <p> {% trans %}The email associated with your Zulip account was recently changed to <a hre...
{% extends "zerver/emails/compiled/email_base_default.html" %} {% block illustration %} <img src="{{ email_images_base_uri }}/email_logo.png" alt=""/> {% endblock %} {% block content %} <p>{{ _("Hi,") }}</p> <p> - {% trans %}The email associated with your Zulip account was recently changed to <a...
2
0.125
1
1
60a9d9581242f35ff0250264dbe79dcabf654658
karma.conf.js
karma.conf.js
/* eslint-env node */ const path = require('path'); var browsers = ['Chrome']; if (process.env.NODE_ENV === 'test') { browsers = ['PhantomJS']; } module.exports = (config) => { config.set({ basePath: '.', frameworks: ['mocha', 'chai', 'phantomjs-shim', 'es6-shim'], files: [ './tests/index.js' ...
/* eslint-env node */ const path = require('path'); var browsers = ['Chrome']; if (process.env.NODE_ENV === 'test') { browsers = ['PhantomJS']; } module.exports = (config) => { config.set({ basePath: '.', frameworks: ['mocha', 'chai', 'es6-shim'], files: [ './tests/index.js' ], preproces...
Replace phantomjs shim with es6-shim
Replace phantomjs shim with es6-shim
JavaScript
bsd-3-clause
rma-consulting/rc-d3,rma-consulting/react-easy-chart,rma-consulting/react-easy-chart,rma-consulting/rc-d3
javascript
## Code Before: /* eslint-env node */ const path = require('path'); var browsers = ['Chrome']; if (process.env.NODE_ENV === 'test') { browsers = ['PhantomJS']; } module.exports = (config) => { config.set({ basePath: '.', frameworks: ['mocha', 'chai', 'phantomjs-shim', 'es6-shim'], files: [ './te...
/* eslint-env node */ const path = require('path'); var browsers = ['Chrome']; if (process.env.NODE_ENV === 'test') { browsers = ['PhantomJS']; } module.exports = (config) => { config.set({ basePath: '.', - frameworks: ['mocha', 'chai', 'phantomjs-shim', 'es6-shim'], ? ...
3
0.061224
1
2
650a4733aa6e15b80e2adeec34fc479a3b2885e3
src/cmdline/config.py
src/cmdline/config.py
import os import sys try: import pkg_resources d = pkg_resources.get_distribution('metermaid') pkg_locations = ( os.path.join(d.location, 'config'), os.path.join(os.path.dirname(d.location), 'config'), ) except ImportError: pkg_locations = () def get_config_paths(filename=None): ...
import os import sys try: import pkg_resources d = pkg_resources.get_distribution('metermaid') pkg_locations = ( os.path.join(d.location, 'config'), os.path.join(os.path.dirname(d.location), 'config'), ) except ImportError: pkg_locations = () def get_config_paths(filename=None): ...
Use etc relative to sys.prefix
Use etc relative to sys.prefix
Python
apache-2.0
rca/cmdline
python
## Code Before: import os import sys try: import pkg_resources d = pkg_resources.get_distribution('metermaid') pkg_locations = ( os.path.join(d.location, 'config'), os.path.join(os.path.dirname(d.location), 'config'), ) except ImportError: pkg_locations = () def get_config_paths(...
import os import sys try: import pkg_resources d = pkg_resources.get_distribution('metermaid') pkg_locations = ( os.path.join(d.location, 'config'), os.path.join(os.path.dirname(d.location), 'config'), ) except ImportError: pkg_locations = () def g...
2
0.068966
1
1
9ba31ee185b6eefbfb8677c266e4f332d0e97530
tests/EvangelistStatusTest.php
tests/EvangelistStatusTest.php
<?php /** * These are the test for the core files. * * @package Open Source Evangelist Agnostic Package * @author Surajudeen AKANDE <surajudeen.akande@andela.com> * @license MIT <https://opensource.org/licenses/MIT> * @link http://www.github.com/andela-sakande */ namespace Sirolad\Evangelist\Test; use Sirolad\...
<?php /** * These are the test for the core files. * * @package Open Source Evangelist Agnostic Package * @author Surajudeen AKANDE <surajudeen.akande@andela.com> * @license MIT <https://opensource.org/licenses/MIT> * @link http://www.github.com/andela-sakande */ namespace Sirolad\Evangelist\Test; use Sirolad\...
Use assertInternalType instead of assertTrue
Use assertInternalType instead of assertTrue
PHP
mit
andela-sakande/evangelist
php
## Code Before: <?php /** * These are the test for the core files. * * @package Open Source Evangelist Agnostic Package * @author Surajudeen AKANDE <surajudeen.akande@andela.com> * @license MIT <https://opensource.org/licenses/MIT> * @link http://www.github.com/andela-sakande */ namespace Sirolad\Evangelist\Tes...
<?php /** * These are the test for the core files. * * @package Open Source Evangelist Agnostic Package * @author Surajudeen AKANDE <surajudeen.akande@andela.com> * @license MIT <https://opensource.org/licenses/MIT> * @link http://www.github.com/andela-sakande */ namespace Sirolad\Evangeli...
2
0.047619
1
1
fc2ac5214666a49af129be94b6cad7e188fe2a2c
test/update-license-test.js
test/update-license-test.js
var fs = require('fs'); var expect = require('chai').expect; var updateLicense = require('../lib/update-license'); describe("update-license", function() { it("updates 2015 to 2015-2016", function() { var yearInfo = 'Copyright (c) 2015 Sung Won Cho'; var result = updateLicense(yearInfo); expect(result).t...
var fs = require('fs'); var expect = require('chai').expect; var updateLicense = require('../lib/update-license'); describe("update-license", function() { it("updates 2015 to 2015-2016", function(done) { var yearInfo = 'Copyright (c) 2015 Sung Won Cho'; var result = updateLicense(yearInfo, function (err, up...
Fix test using new asynchronous API
Fix test using new asynchronous API
JavaScript
mit
sungwoncho/license-up
javascript
## Code Before: var fs = require('fs'); var expect = require('chai').expect; var updateLicense = require('../lib/update-license'); describe("update-license", function() { it("updates 2015 to 2015-2016", function() { var yearInfo = 'Copyright (c) 2015 Sung Won Cho'; var result = updateLicense(yearInfo); ...
var fs = require('fs'); var expect = require('chai').expect; var updateLicense = require('../lib/update-license'); describe("update-license", function() { - it("updates 2015 to 2015-2016", function() { + it("updates 2015 to 2015-2016", function(done) { ? ++++...
16
0.888889
10
6
ea7ad10e8a2148cafecb026e0be9f5f7109ce95e
lib/generate/json/index.js
lib/generate/json/index.js
var util = require("util"); var path = require("path"); var Q = require("q"); var fs = require("../fs"); var parse = require("../../parse"); var BaseGenerator = require("../generator"); var Generator = function() { BaseGenerator.apply(this, arguments); }; util.inherits(Generator, BaseGenerator); Generator.proto...
var util = require("util"); var path = require("path"); var Q = require("q"); var fs = require("../fs"); var parse = require("../../parse"); var BaseGenerator = require("../generator"); var Generator = function() { BaseGenerator.apply(this, arguments); }; util.inherits(Generator, BaseGenerator); Generator.proto...
Add support for multi-languages books in JSON format
Add support for multi-languages books in JSON format
JavaScript
apache-2.0
xxxhycl2010/gitbook,iflyup/gitbook,gencer/gitbook,intfrr/gitbook,JohnTroony/gitbook,strawluffy/gitbook,minghe/gitbook,escopecz/documentation,ryanswanson/gitbook,lucciano/gitbook,JozoVilcek/gitbook,xiongjungit/gitbook,gaearon/gitbook,nycitt/gitbook,npracht/documentation,athiruban/gitbook,iamchenxin/gitbook,alex-dixon/gi...
javascript
## Code Before: var util = require("util"); var path = require("path"); var Q = require("q"); var fs = require("../fs"); var parse = require("../../parse"); var BaseGenerator = require("../generator"); var Generator = function() { BaseGenerator.apply(this, arguments); }; util.inherits(Generator, BaseGenerator); ...
var util = require("util"); var path = require("path"); var Q = require("q"); var fs = require("../fs"); var parse = require("../../parse"); var BaseGenerator = require("../generator"); var Generator = function() { BaseGenerator.apply(this, arguments); }; util.inherits(Generator, BaseGe...
17
0.361702
17
0
57c5cb999801c9d831a7a222beb57ac244aed08e
metadata/com.thibaudperso.sonycamera.txt
metadata/com.thibaudperso.sonycamera.txt
Categories:Multimedia License:GPLv2 Web Site:https://github.com/ThibaudM/timelapse-sony/blob/HEAD/README.md Source Code:https://github.com/ThibaudM/timelapse-sony Issue Tracker:https://github.com/ThibaudM/timelapse-sony/issues Auto Name:TimeLapse Summary:Control a Sony camera over WiFi Description: Take pictures with ...
Categories:Multimedia License:GPLv2 Web Site:https://github.com/ThibaudM/timelapse-sony/blob/HEAD/README.md Source Code:https://github.com/ThibaudM/timelapse-sony Issue Tracker:https://github.com/ThibaudM/timelapse-sony/issues Auto Name:TimeLapse Summary:Control a Sony camera over WiFi Description: Take pictures with ...
Update TimeLapse to 2.0.2 (14)
Update TimeLapse to 2.0.2 (14)
Text
agpl-3.0
f-droid/fdroiddata,f-droid/fdroiddata,f-droid/fdroid-data
text
## Code Before: Categories:Multimedia License:GPLv2 Web Site:https://github.com/ThibaudM/timelapse-sony/blob/HEAD/README.md Source Code:https://github.com/ThibaudM/timelapse-sony Issue Tracker:https://github.com/ThibaudM/timelapse-sony/issues Auto Name:TimeLapse Summary:Control a Sony camera over WiFi Description: Tak...
Categories:Multimedia License:GPLv2 Web Site:https://github.com/ThibaudM/timelapse-sony/blob/HEAD/README.md Source Code:https://github.com/ThibaudM/timelapse-sony Issue Tracker:https://github.com/ThibaudM/timelapse-sony/issues Auto Name:TimeLapse Summary:Control a Sony camera over WiFi Description: ...
5
0.185185
5
0
85fd0143b50cdc4277fead2791dab449beefc83b
include/oauth1_parameter_names.hrl
include/oauth1_parameter_names.hrl
-define(PARAM_CALLBACK , <<"oauth_callback">>). -define(PARAM_CONSUMER_KEY , <<"oauth_consumer_key">>). -define(PARAM_NONCE , <<"oauth_nonce">>). -define(PARAM_REALM , <<"realm">>). -define(PARAM_SIGNATURE , <<"oauth_signature">>). -define(PARAM_SIGNATURE_METHOD , <<"oauth_signa...
-define(PARAM_CALLBACK , <<"oauth_callback">>). -define(PARAM_CALLBACK_CONFIRMED , <<"oauth_callback_confirmed">>). -define(PARAM_CONSUMER_KEY , <<"oauth_consumer_key">>). -define(PARAM_NONCE , <<"oauth_nonce">>). -define(PARAM_REALM , <<"realm">>). -define(PARAM_SIGNATURE , <<"...
Define name macro for parameter: "oauth_callback_confirmed"
Define name macro for parameter: "oauth_callback_confirmed"
Erlang
mit
ibnfirnas/oauth1_core
erlang
## Code Before: -define(PARAM_CALLBACK , <<"oauth_callback">>). -define(PARAM_CONSUMER_KEY , <<"oauth_consumer_key">>). -define(PARAM_NONCE , <<"oauth_nonce">>). -define(PARAM_REALM , <<"realm">>). -define(PARAM_SIGNATURE , <<"oauth_signature">>). -define(PARAM_SIGNATURE_METHOD ...
-define(PARAM_CALLBACK , <<"oauth_callback">>). + -define(PARAM_CALLBACK_CONFIRMED , <<"oauth_callback_confirmed">>). -define(PARAM_CONSUMER_KEY , <<"oauth_consumer_key">>). -define(PARAM_NONCE , <<"oauth_nonce">>). -define(PARAM_REALM , <<"realm">>). -define(PARAM_SIGNATURE ...
1
0.090909
1
0
d2536ccf164567dc7cf1160cb645530d7f53b7c0
docs/python/index.md
docs/python/index.md
--- layout: default title: Python --- # Python [Getting Started][getting-started] -- [Package Search][pypi] -- [Package Tool][pip] ## Runtimes * python33 - 3.3.x * python27 - 2.7.x ## Dependency Management Python runtimes use [PyPI][pypi], [pip][pip] and [venv][venv] ([virtualenv][virtualenv] for python27). ...
--- layout: default title: Python --- # Python [Getting Started][getting-started] -- [Package Search][pypi] -- [Package Tool][pip] ## Runtimes * python33 - 3.3.x * python27 - 2.7.x ## Dependency Management Python runtimes use [PyPI][pypi], [pip][pip], and [virtualenv][virtualenv]. [getting-started]: /docs/py...
Revert back to virtualenv as default
Revert back to virtualenv as default
Markdown
mit
silas/rock,silas/rock,silas/rock,silas/rock,silas/rock,silas/rock,silas/rock,silas/rock
markdown
## Code Before: --- layout: default title: Python --- # Python [Getting Started][getting-started] -- [Package Search][pypi] -- [Package Tool][pip] ## Runtimes * python33 - 3.3.x * python27 - 2.7.x ## Dependency Management Python runtimes use [PyPI][pypi], [pip][pip] and [venv][venv] ([virtualenv][virtualenv] ...
--- layout: default title: Python --- # Python [Getting Started][getting-started] -- [Package Search][pypi] -- [Package Tool][pip] ## Runtimes * python33 - 3.3.x * python27 - 2.7.x ## Dependency Management - Python runtimes use [PyPI][pypi], [pip][pip] and [venv][venv] + Python...
3
0.125
1
2
4ecc6af3c7412bc8d87f3975885c8f76fcd533df
.travis.yml
.travis.yml
language: node_js notifications: slack: secure: pf0TPJVjw3PosTaEWRRea8Yzlby5UnfQD8mp51o/0rQDRR9oGpWNjF6ou3kCI978mBGswmkb55FYkMNCZfPnuBGooMwMmXzBkLhu6MAmszyO3CXbNmFqdnTlMATJguJOmm/3++wbt2C4dvRf9kIhwwmJMtX3qZ1BBc7iMx0mfUs=
sudo: false language: node_js cache: directories: - node_modules notifications: slack: secure: pf0TPJVjw3PosTaEWRRea8Yzlby5UnfQD8mp51o/0rQDRR9oGpWNjF6ou3kCI978mBGswmkb55FYkMNCZfPnuBGooMwMmXzBkLhu6MAmszyO3CXbNmFqdnTlMATJguJOmm/3++wbt2C4dvRf9kIhwwmJMtX3qZ1BBc7iMx0mfUs=
Use container based CI and enable node modules caching
Use container based CI and enable node modules caching
YAML
mit
palcu/infoeducatie-ui,palcu/infoeducatie-ui,infoeducatie/infoeducatie-ui,infoeducatie/infoeducatie-ui,palcu/infoeducatie-ui,infoeducatie/infoeducatie-ui
yaml
## Code Before: language: node_js notifications: slack: secure: pf0TPJVjw3PosTaEWRRea8Yzlby5UnfQD8mp51o/0rQDRR9oGpWNjF6ou3kCI978mBGswmkb55FYkMNCZfPnuBGooMwMmXzBkLhu6MAmszyO3CXbNmFqdnTlMATJguJOmm/3++wbt2C4dvRf9kIhwwmJMtX3qZ1BBc7iMx0mfUs= ## Instruction: Use container based CI and enable node modules caching ## C...
+ sudo: false language: node_js + cache: + directories: + - node_modules notifications: slack: secure: pf0TPJVjw3PosTaEWRRea8Yzlby5UnfQD8mp51o/0rQDRR9oGpWNjF6ou3kCI978mBGswmkb55FYkMNCZfPnuBGooMwMmXzBkLhu6MAmszyO3CXbNmFqdnTlMATJguJOmm/3++wbt2C4dvRf9kIhwwmJMtX3qZ1BBc7iMx0mfUs=
4
1
4
0
daac8bf02d5e3e7d3c09a36bc8e9bda6d20d30c6
zthread/tests/CMakeLists.txt
zthread/tests/CMakeLists.txt
file(GLOB SRCS ${PROJECT_SOURCE_DIR}/tests/*.cc ) add_executable(demo ${SRCS}) target_link_libraries(demo zthread pthread)
file(GLOB SRCS ${PROJECT_SOURCE_DIR}/tests/*.cc ) add_executable(demo ${SRCS}) set(DEMO_DEPENDS "zthread") if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") set(CMAKE_CXX_FLAGS ${DEMO_DEPENDS} pthread) elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") set(CMAKE_CXX_FLAGS ${DEMO_DEPENDS} pthread) else() endif() targ...
Fix the build error due to pthread link on windows
Fix the build error due to pthread link on windows
Text
mit
YanShenChun/cppthread,YanShenChun/cppthread,YanShenChun/cppthread
text
## Code Before: file(GLOB SRCS ${PROJECT_SOURCE_DIR}/tests/*.cc ) add_executable(demo ${SRCS}) target_link_libraries(demo zthread pthread) ## Instruction: Fix the build error due to pthread link on windows ## Code After: file(GLOB SRCS ${PROJECT_SOURCE_DIR}/tests/*.cc ) add_executable(demo ${SRCS}) set...
file(GLOB SRCS ${PROJECT_SOURCE_DIR}/tests/*.cc ) add_executable(demo ${SRCS}) - target_link_libraries(demo zthread pthread) + + set(DEMO_DEPENDS "zthread") + if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") + set(CMAKE_CXX_FLAGS ${DEMO_DEPENDS} pthread) + elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") + ...
12
1.333333
11
1
ba1dabaccc85de6e0ada75027e44be3cd1132dd9
bootstrap.sh
bootstrap.sh
if ! type rvm &> /dev/null; then [[ -s /usr/local/rvm/scripts/rvm ]] && source /usr/local/rvm/scripts/rvm [[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm fi # Source Rbenv so vimius .rbenv-version takes effect if ! type rbenv &> /dev/null; then if [[ -s $HOME/.rvm/scripts/rvm ]]; then eval "...
if ! type rvm &> /dev/null; then [[ -s /usr/local/rvm/scripts/rvm ]] && source /usr/local/rvm/scripts/rvm [[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm fi # Source Rbenv so vimius .rbenv-version takes effect if ! type rbenv &> /dev/null; then if [[ -s $HOME/.rvm/scripts/rvm ]]; then eval "...
Use $HOME instead of ~ so we can easily test it.
Bootstrap: Use $HOME instead of ~ so we can easily test it.
Shell
mit
tantion/vim,tantion/vim
shell
## Code Before: if ! type rvm &> /dev/null; then [[ -s /usr/local/rvm/scripts/rvm ]] && source /usr/local/rvm/scripts/rvm [[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm fi # Source Rbenv so vimius .rbenv-version takes effect if ! type rbenv &> /dev/null; then if [[ -s $HOME/.rvm/scripts/rvm ]];...
if ! type rvm &> /dev/null; then [[ -s /usr/local/rvm/scripts/rvm ]] && source /usr/local/rvm/scripts/rvm [[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm fi # Source Rbenv so vimius .rbenv-version takes effect if ! type rbenv &> /dev/null; then if [[ -s $HOME/.rvm/scripts/rvm ]];...
10
0.4
5
5
ee3cfb1ab98cd658ae6c4ec84fff6c1ba3e2a262
project.clj
project.clj
(defproject yorck-ratings "2.0.0" :description "IMDB ratings for movies playing in Yorck cinemas Berlin" :url "https://yorck-ratings.treppo.org" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.9.0"] [...
(defproject yorck-ratings "2.0.0" :description "IMDB ratings for movies playing in Yorck cinemas Berlin" :url "https://yorck-ratings.treppo.org" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.9.0"] [...
Use test resources only in midje profile
Use test resources only in midje profile
Clojure
epl-1.0
treppo/yorck-ratings-v2
clojure
## Code Before: (defproject yorck-ratings "2.0.0" :description "IMDB ratings for movies playing in Yorck cinemas Berlin" :url "https://yorck-ratings.treppo.org" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.9.0"] ...
(defproject yorck-ratings "2.0.0" :description "IMDB ratings for movies playing in Yorck cinemas Berlin" :url "https://yorck-ratings.treppo.org" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.9.0"] ...
6
0.272727
3
3
59d086c044298602ec9ad6b3b791debfbbf99f15
app/models/lesson.rb
app/models/lesson.rb
class Lesson < ActiveRecord::Base attr_accessible :background, :title validates :title, :presence => { :message => "for lesson can't be blank" } validates :background, :presence => { :message => "for lesson can't be blank" } belongs_to :course def club course.club end def user club.user ...
class Lesson < ActiveRecord::Base attr_accessible :background, :free, :title validates :title, :presence => { :message => "for lesson can't be blank" } validates :background, :presence => { :message => "for lesson can't be blank" } belongs_to :course def club course.club end def user club...
Update Lesson for Free Boolean Initialize
Update Lesson for Free Boolean Initialize Update the Lesson model to include initializing the default 'free' boolean value.
Ruby
mit
jekhokie/IfSimply,jekhokie/IfSimply,jekhokie/IfSimply
ruby
## Code Before: class Lesson < ActiveRecord::Base attr_accessible :background, :title validates :title, :presence => { :message => "for lesson can't be blank" } validates :background, :presence => { :message => "for lesson can't be blank" } belongs_to :course def club course.club end def user...
class Lesson < ActiveRecord::Base - attr_accessible :background, :title + attr_accessible :background, :free, :title ? +++++++ validates :title, :presence => { :message => "for lesson can't be blank" } validates :background, :presence => { :message => "for lesson c...
3
0.142857
2
1
66f0cb5a4a0e359162359ea763775ead7159f62c
test-case-qsort.lisp
test-case-qsort.lisp
(test-case 'test-case-qsort '((test test-qsort ((assert-equal '() (qsort '())) (assert-equal '(1) (qsort '(1))) (assert-equal '(1 2) (qsort '(1 2))) (assert-equal '(1 2 3) (qsort '(3 1 2))) (assert-equal '(1 2 ...
(test-case 'test-case-qsort '((test test-qsort-without-getter ((assert-equal '() (qsort '())) (assert-equal '(1) (qsort '(1))) (assert-equal '(1 2) (qsort '(1 2))) (assert-equal '(1 2 3) (qsort '(3 1 2))) (asse...
Test qsort with and without getter
Test qsort with and without getter
Common Lisp
mit
adjl/PolynomialArithmetic,adjl/PolynomialArithmetic
common-lisp
## Code Before: (test-case 'test-case-qsort '((test test-qsort ((assert-equal '() (qsort '())) (assert-equal '(1) (qsort '(1))) (assert-equal '(1 2) (qsort '(1 2))) (assert-equal '(1 2 3) (qsort '(3 1 2))) (ass...
(test-case 'test-case-qsort - '((test test-qsort + '((test test-qsort-without-getter ? +++++++++++++++ ((assert-equal '() (qsort '())) (assert-equal '(1) (qsort '(1))) (assert-equal '(1 2) (qsort '(1 2...
7
1
5
2
4a7f54099febe2ca5d2dc50cf94661870de5f40e
.delivery/project.toml
.delivery/project.toml
[local_phases] unit = "chef exec rspec spec/" lint = "chef exec cookstyle --display-cop-names --extra-details" syntax = "chef exec foodcritic ." provision = "chef exec kitchen create" deploy = "chef exec kitchen converge" smoke = "chef exec kitchen verify" functional = "echo skipping" cleanup = "chef exec kitchen dest...
remote_file = "https://raw.githubusercontent.com/chef-cookbooks/community_cookbook_tools/master/delivery/project.toml"
Use common community delivery config
test: Use common community delivery config Less is more
TOML
apache-2.0
criteo-forks/chef-zookeeper,evertrue/zookeeper-cookbook,evertrue/zookeeper-cookbook,SimpleFinance/chef-zookeeper,SimpleFinance/chef-zookeeper,evertrue/zookeeper-cookbook,SimpleFinance/chef-zookeeper
toml
## Code Before: [local_phases] unit = "chef exec rspec spec/" lint = "chef exec cookstyle --display-cop-names --extra-details" syntax = "chef exec foodcritic ." provision = "chef exec kitchen create" deploy = "chef exec kitchen converge" smoke = "chef exec kitchen verify" functional = "echo skipping" cleanup = "chef e...
+ remote_file = "https://raw.githubusercontent.com/chef-cookbooks/community_cookbook_tools/master/delivery/project.toml" - - [local_phases] - unit = "chef exec rspec spec/" - lint = "chef exec cookstyle --display-cop-names --extra-details" - syntax = "chef exec foodcritic ." - provision = "chef exec kitchen create" - ...
11
1.1
1
10
e1f49afe5d4aeae2306349d52df4295944598dc1
thinglang/parser/tokens/logic.py
thinglang/parser/tokens/logic.py
from thinglang.lexer.symbols.logic import LexicalEquality from thinglang.parser.tokens import BaseToken class Conditional(BaseToken): ADVANCE = False def __init__(self, slice): super(Conditional, self).__init__(slice) _, self.value = slice def describe(self): return 'if {}'.form...
from thinglang.lexer.symbols.logic import LexicalEquality from thinglang.parser.tokens import BaseToken class Conditional(BaseToken): ADVANCE = False def __init__(self, slice): super(Conditional, self).__init__(slice) _, self.value = slice def describe(self): return 'if {}'.form...
Update interface signatures for else branches
Update interface signatures for else branches
Python
mit
ytanay/thinglang,ytanay/thinglang,ytanay/thinglang,ytanay/thinglang
python
## Code Before: from thinglang.lexer.symbols.logic import LexicalEquality from thinglang.parser.tokens import BaseToken class Conditional(BaseToken): ADVANCE = False def __init__(self, slice): super(Conditional, self).__init__(slice) _, self.value = slice def describe(self): ret...
from thinglang.lexer.symbols.logic import LexicalEquality from thinglang.parser.tokens import BaseToken class Conditional(BaseToken): ADVANCE = False def __init__(self, slice): super(Conditional, self).__init__(slice) _, self.value = slice def describe(self): ...
8
0.258065
6
2
7d90f59407dcd69eee004686c708409fc48035c3
middlewares/default/index.js
middlewares/default/index.js
const { Router } = require('express') const cors = require('cors') const bodyParser = require('body-parser') const compression = require('compression') const defaultMiddleware = (app) => { app.use(compression()) app.use(bodyParser.urlencoded({ extended: true })) app.use(bodyParser.json()) app.use(cors...
const cors = require('cors') const bodyParser = require('body-parser') const compression = require('compression') const defaultMiddleware = (app) => { app.use(compression()) app.use(bodyParser.urlencoded({ extended: true })) app.use(bodyParser.json()) app.use(cors()) } module.exports = defaultMiddlewa...
Remove unused require to Router
Remove unused require to Router
JavaScript
mit
lucasrcdias/customer-mgmt
javascript
## Code Before: const { Router } = require('express') const cors = require('cors') const bodyParser = require('body-parser') const compression = require('compression') const defaultMiddleware = (app) => { app.use(compression()) app.use(bodyParser.urlencoded({ extended: true })) app.use(bodyParser.json()...
- const { Router } = require('express') const cors = require('cors') const bodyParser = require('body-parser') const compression = require('compression') const defaultMiddleware = (app) => { app.use(compression()) app.use(bodyParser.urlencoded({ extended: true })) app.use(bodyParser.json...
1
0.076923
0
1
9f4e11d2080f2d5c4698d0eb061de54e12b9a789
LibraryRateMe/res/values/strings.xml
LibraryRateMe/res/values/strings.xml
<?xml version="1.0" encoding="utf-8"?> <resources> <string name="app_name">LibraryRateMe</string> <string name="action_settings">Settings</string> <string name="hello_world">Hello world!</string> <string name="rateme">Rate Me</string> <string name="message">How would you rate it ?</string> <str...
<?xml version="1.0" encoding="utf-8"?> <resources> <string name="app_name">LibraryRateMe</string> <string name="action_settings">Settings</string> <string name="hello_world">Hello world!</string> <string name="rateme">Rate Me</string> <string name="message">How would you rate it ?</string> <str...
Add new message in Strings
Add new message in Strings
XML
mit
androidsx/rate-me
xml
## Code Before: <?xml version="1.0" encoding="utf-8"?> <resources> <string name="app_name">LibraryRateMe</string> <string name="action_settings">Settings</string> <string name="hello_world">Hello world!</string> <string name="rateme">Rate Me</string> <string name="message">How would you rate it ?</...
<?xml version="1.0" encoding="utf-8"?> <resources> <string name="app_name">LibraryRateMe</string> <string name="action_settings">Settings</string> <string name="hello_world">Hello world!</string> <string name="rateme">Rate Me</string> <string name="message">How would you rate it ?</...
1
0.076923
1
0
4d06f826a5cfb1ca3a54643282ed20214f40586e
src/react/Main.js
src/react/Main.js
import React from 'react' import { readJSON } from '../helpers' import Title from './Title' export default class Main extends React.Component { render() { const { generic } = this.props return ( <html lang="en"> <head> <meta charSet="utf-8" /> <meta name="viewport" content=...
import React from 'react' import { readJSON } from '../helpers' import Title from './Title' export default class Main extends React.Component { render() { const { generic } = this.props return ( <html lang="en"> <head> <meta charSet="utf-8" /> <meta name="viewport" content=...
Set some PropTypes in main.js following the init guidelines
Set some PropTypes in main.js following the init guidelines WARNING: might be a little out of date, still need to check for certainty
JavaScript
mpl-2.0
Quite-nice/generic-website
javascript
## Code Before: import React from 'react' import { readJSON } from '../helpers' import Title from './Title' export default class Main extends React.Component { render() { const { generic } = this.props return ( <html lang="en"> <head> <meta charSet="utf-8" /> <meta name="vi...
import React from 'react' import { readJSON } from '../helpers' import Title from './Title' export default class Main extends React.Component { render() { const { generic } = this.props return ( <html lang="en"> <head> <meta charSet="utf-8" /> <met...
39
1.772727
39
0
95e51a114f9f41626f65adca69d57fd52baa892d
app/services/deal_cards.rb
app/services/deal_cards.rb
class DealCards attr_reader :errors def initialize(round, deck) @round = round @game = round.game @deck = deck end def call @round.with_lock do deal_cards if cards_can_be_dealt end success? end private def cards_can_be_dealt @round.cards.count == 0 end def deal_...
class DealCards def initialize(round, deck) @round = round @game = round.game @deck = deck end def call @round.with_lock do deal_cards if cards_can_be_dealt end @round.cards.present? end private def cards_can_be_dealt @round.cards.none? end def deal_cards deal_...
Use save! in deal_card service instead of errors
Use save! in deal_card service instead of errors
Ruby
mit
trezona-lecomte/five-hundred-rails,trezona-lecomte/five-hundred-rails
ruby
## Code Before: class DealCards attr_reader :errors def initialize(round, deck) @round = round @game = round.game @deck = deck end def call @round.with_lock do deal_cards if cards_can_be_dealt end success? end private def cards_can_be_dealt @round.cards.count == 0 ...
class DealCards - attr_reader :errors - def initialize(round, deck) @round = round @game = round.game @deck = deck end def call @round.with_lock do deal_cards if cards_can_be_dealt end - success? + @round.cards.present? end private d...
23
0.370968
4
19
c61929a9f23ad38f5113552d2724b1375252af8e
lib/rubocop/cop/rspec/mixin/top_level_group.rb
lib/rubocop/cop/rspec/mixin/top_level_group.rb
module RuboCop module Cop module RSpec # Helper methods for top level example group cops module TopLevelGroup extend RuboCop::NodePattern::Macros def on_new_investigation super return unless root_node top_level_groups.each do |node| on_top_l...
module RuboCop module Cop module RSpec # Helper methods for top level example group cops module TopLevelGroup extend RuboCop::NodePattern::Macros def on_new_investigation super top_level_groups.each do |node| on_top_level_example_group(node) if exampl...
Use `case` instead of `if`
Use `case` instead of `if` It reads nicer, and `flog` agrees. Before: ❯ flog lib/rubocop/cop/rspec/mixin/top_level_group.rb 29.7: flog total 5.0: flog/method average 9.8: RuboCop::Cop::RSpec::TopLevelGroup#top_level_nodes lib/rubocop/cop/rspec/mixin/top_level_group.rb:36-44 7.6: RuboCop::Cop::RSpe...
Ruby
mit
backus/rubocop-rspec,nevir/rubocop-rspec,bquorning/rubocop-rspec,backus/rubocop-rspec
ruby
## Code Before: module RuboCop module Cop module RSpec # Helper methods for top level example group cops module TopLevelGroup extend RuboCop::NodePattern::Macros def on_new_investigation super return unless root_node top_level_groups.each do |node| ...
module RuboCop module Cop module RSpec # Helper methods for top level example group cops module TopLevelGroup extend RuboCop::NodePattern::Macros def on_new_investigation super - return unless root_node top_level_groups.each do |...
10
0.188679
5
5
92c812699859759006b3d342eaf15a0aac8c6460
server/trello-microservice/src/api/v1/users/userController.js
server/trello-microservice/src/api/v1/users/userController.js
'use strict'; import { userModel } from '../../../models/index'; const buildResponse = (statusCode, data, res) => { if (statusCode === 200) { return res.status(200).json({ data: { user: { _id: data._id, fullname: data.fullname, } } }); } else { return re...
'use strict'; import { removeUserService, saveUserService } from '../../../utils/userService'; import { userModel } from '../../../models/index'; const buildResponse = (statusCode, data, res) => { if (statusCode === 200) { return res.status(200).json({ data: { user: { _id: data._id...
Use the user service to persist or modify state
Use the user service to persist or modify state
JavaScript
mit
Madmous/madClones,Madmous/Trello-Clone,Madmous/madClones,Madmous/madClones,Madmous/Trello-Clone,Madmous/Trello-Clone,Madmous/madClones
javascript
## Code Before: 'use strict'; import { userModel } from '../../../models/index'; const buildResponse = (statusCode, data, res) => { if (statusCode === 200) { return res.status(200).json({ data: { user: { _id: data._id, fullname: data.fullname, } } }); } else...
'use strict'; + + import { + removeUserService, + saveUserService + } from '../../../utils/userService'; import { userModel } from '../../../models/index'; const buildResponse = (statusCode, data, res) => { if (statusCode === 200) { return res.status(200).json({ data: { use...
15
0.288462
8
7
d46af8a66b07502862a3bba663975de2d4dd9278
vim/mod/set.vim
vim/mod/set.vim
set shell=sh set shortmess+=I set runtimepath+=$GOROOT/misc/vim set backup set backupdir=~/.cache/vim set undofile set undodir=~/.cache/vim set ai smartindent set hlsearch set ignorecase set smartcase set showmatch let c_space_errors=1 if v:version >= 704 set cryptmethod=blowfish2 else " unsecure, but Debian likes i...
set shell=sh set shortmess+=I set runtimepath+=$GOROOT/misc/vim set backup set backupdir=~/.cache/vim set undofile set undodir=~/.cache/vim set ai smartindent set hlsearch set ignorecase set smartcase set showmatch let c_space_errors=1 if v:version >= 704 set cryptmethod=blowfish2 else " unsecure, but Debian likes i...
Fix doc paths for plugins
Fix doc paths for plugins
VimL
bsd-2-clause
nakal/shell-setup,nakal/shell-setup
viml
## Code Before: set shell=sh set shortmess+=I set runtimepath+=$GOROOT/misc/vim set backup set backupdir=~/.cache/vim set undofile set undodir=~/.cache/vim set ai smartindent set hlsearch set ignorecase set smartcase set showmatch let c_space_errors=1 if v:version >= 704 set cryptmethod=blowfish2 else " unsecure, bu...
set shell=sh set shortmess+=I set runtimepath+=$GOROOT/misc/vim set backup set backupdir=~/.cache/vim set undofile set undodir=~/.cache/vim set ai smartindent set hlsearch set ignorecase set smartcase set showmatch let c_space_errors=1 if v:version >= 704 set cryptmethod=blowfish2 el...
4
0.081633
3
1
db5c916a2ee7f88a66bbab7d1dd54fe805114651
README.md
README.md
This project aims to be a set of libraries and tools to enable users to: 1. easily create web-based diagrams (static or interactive) for the purposes of teaching, viewing, and discussing games; 2. easily write AI clients for games in their preferred language, without spending time on the mechanics (networking,...
[![Build Status][travis-shield]][travis-link] [travis-shield]: https://travis-ci.org/mbrukman/gamebuilder.svg?branch=master [travis-link]: https://travis-ci.org/mbrukman/gamebuilder This project aims to be a set of libraries and tools to enable users to: 1. easily create web-based diagrams (static or interactive) f...
Add Travis CI badge now that we have a build.
Add Travis CI badge now that we have a build.
Markdown
apache-2.0
mbrukman/gamebuilder,mbrukman/gamebuilder,mbrukman/gamebuilder,mbrukman/gamebuilder
markdown
## Code Before: This project aims to be a set of libraries and tools to enable users to: 1. easily create web-based diagrams (static or interactive) for the purposes of teaching, viewing, and discussing games; 2. easily write AI clients for games in their preferred language, without spending time on the mechan...
+ + [![Build Status][travis-shield]][travis-link] + + [travis-shield]: https://travis-ci.org/mbrukman/gamebuilder.svg?branch=master + [travis-link]: https://travis-ci.org/mbrukman/gamebuilder This project aims to be a set of libraries and tools to enable users to: 1. easily create web-based diagrams (static...
5
0.208333
5
0
b0fac61f1787ca6eb4988c5ca0141d3266398a57
local.go
local.go
package main import ( "github.com/phalaaxx/cdb" ) /* VerifyLocal checks if named mailbox exist in a local cdb database */ func VerifyLocal(name string) bool { var value *string err := cdb.Lookup( LocalCdb, func(db *cdb.Reader) (err error) { value, err = db.Get(name) return err }, ) if err == nil && v...
package main import ( "github.com/phalaaxx/godb" ) /* VerifyLocal checks if named mailbox exist in a local cdb database */ func VerifyLocal(name string) bool { var value *string err := godb.CdbLookup( LocalCdb, func(db *godb.CdbReader) (err error) { value, err = db.Get(name) return err }, ) if err ==...
Use godb library instead of cdb.
Use godb library instead of cdb.
Go
bsd-2-clause
phalaaxx/ratemilter
go
## Code Before: package main import ( "github.com/phalaaxx/cdb" ) /* VerifyLocal checks if named mailbox exist in a local cdb database */ func VerifyLocal(name string) bool { var value *string err := cdb.Lookup( LocalCdb, func(db *cdb.Reader) (err error) { value, err = db.Get(name) return err }, ) if...
package main import ( - "github.com/phalaaxx/cdb" ? ^ + "github.com/phalaaxx/godb" ? ^^ ) /* VerifyLocal checks if named mailbox exist in a local cdb database */ func VerifyLocal(name string) bool { var value *string - err := cdb.Lookup( ? ^ +...
6
0.285714
3
3
c13b2bf8e74dc52a380aefa98a33dd5f00640b93
spec/acceptance/runtime/init.vim
spec/acceptance/runtime/init.vim
let s:lib_path = getcwd() . "/../../lib/" let s:bin_path = getcwd() . "/../../bin/neovim-ruby-host" let g:ruby_host_prog = printf("ruby -I %s %s", s:lib_path, s:bin_path) set rtp=./runtime,./runtime/vader.vim,$VIMRUNTIME ruby << EOS require "rspec" if ENV["REPORT_COVERAGE"] require "coveralls" Coveralls.wear_mer...
let s:lib_path = getcwd() . "/../../lib/" let s:bin_path = getcwd() . "/../../bin/neovim-ruby-host" let g:ruby_host_prog = printf("ruby -I %s %s", s:lib_path, s:bin_path) set rtp=./runtime,./runtime/vader.vim,$VIMRUNTIME ruby << EOS require "rspec" if ENV["REPORT_COVERAGE"] require "coveralls" Coveralls.wear_mer...
Move neovim require after coveralls loading in acceptance specs
Move neovim require after coveralls loading in acceptance specs
VimL
mit
alexgenco/neovim-ruby
viml
## Code Before: let s:lib_path = getcwd() . "/../../lib/" let s:bin_path = getcwd() . "/../../bin/neovim-ruby-host" let g:ruby_host_prog = printf("ruby -I %s %s", s:lib_path, s:bin_path) set rtp=./runtime,./runtime/vader.vim,$VIMRUNTIME ruby << EOS require "rspec" if ENV["REPORT_COVERAGE"] require "coveralls" Co...
let s:lib_path = getcwd() . "/../../lib/" let s:bin_path = getcwd() . "/../../bin/neovim-ruby-host" let g:ruby_host_prog = printf("ruby -I %s %s", s:lib_path, s:bin_path) set rtp=./runtime,./runtime/vader.vim,$VIMRUNTIME ruby << EOS require "rspec" if ENV["REPORT_COVERAGE"] require "coveralls...
3
0.136364
3
0
fc4301189de8abb271c315f9df822fb9c082c379
aeolus/environments.json
aeolus/environments.json
{ "prod": { "root": "http://analice.me" , "version": "v2" , "poolingStatusTime": 6000 }, "stage": { "root": "http://analiceme.urdamales.com.ar" , "version": "v2" , "poolingStatusTime": 6000 }, "local": { "root": "http://localhost:3000" , "version": "v2" , "poolingStat...
{ "prod": { "root": "http://analice.me" , "version": "v2" , "poolingStatusTime": 6000 }, "stage": { "root": "http://analice.me" , "version": "v2" , "poolingStatusTime": 6000 }, "local": { "root": "http://localhost:3000" , "version": "v2" , "poolingStatusTime": false ...
Change URL on staging environment
[aeolus] Change URL on staging environment
JSON
mit
analiceme/chaos
json
## Code Before: { "prod": { "root": "http://analice.me" , "version": "v2" , "poolingStatusTime": 6000 }, "stage": { "root": "http://analiceme.urdamales.com.ar" , "version": "v2" , "poolingStatusTime": 6000 }, "local": { "root": "http://localhost:3000" , "version": "v2" ...
{ "prod": { "root": "http://analice.me" , "version": "v2" , "poolingStatusTime": 6000 }, "stage": { - "root": "http://analiceme.urdamales.com.ar" ? ----------------- + "root": "http://analice.me" ? + , "ver...
2
0.117647
1
1
d98e24fe12509adc51315b4a38bc2120090495ad
.travis.yml
.travis.yml
sudo: required dist: trusty language: php php: - 5.4 before_install: - sudo apt-get -y install git zip php5-cli php5-curl before_script: - php -r "printf('PHP %s', phpversion());" - composer self-update - composer install --no-interaction script: cd tests/suites/ && php all.php
sudo: false dist: trusty language: php php: - 5.4 - 7.0 - 7.1 before_script: - php -r "printf('PHP %s', phpversion());" - composer self-update - composer install --no-interaction script: cd tests/suites/ && php all.php
Add PHP 7 and 7.1, test with sudo false
Add PHP 7 and 7.1, test with sudo false
YAML
mit
Mangopay/mangopay2-php-sdk,Mangopay/mangopay2-php-sdk
yaml
## Code Before: sudo: required dist: trusty language: php php: - 5.4 before_install: - sudo apt-get -y install git zip php5-cli php5-curl before_script: - php -r "printf('PHP %s', phpversion());" - composer self-update - composer install --no-interaction script: cd tests/suites/ && php all.php ## Instru...
- sudo: required + sudo: false dist: trusty language: php php: - 5.4 + - 7.0 + - 7.1 - - before_install: - - sudo apt-get -y install git zip php5-cli php5-curl before_script: - php -r "printf('PHP %s', phpversion());" - composer self-update - composer install --no-interaction ...
7
0.388889
3
4
5178b4174a3d075822cbc31a5b975713c659a616
README.md
README.md
go-resiliency ============= [![Build Status](https://travis-ci.org/eapache/go-resiliency.svg?branch=master)](https://travis-ci.org/eapache/go-resiliency) [![GoDoc](https://godoc.org/github.com/eapache/go-resiliency?status.svg)](https://godoc.org/github.com/eapache/go-resiliency) Resiliency patterns for golang. Curren...
go-resiliency ============= [![Build Status](https://travis-ci.org/eapache/go-resiliency.svg?branch=master)](https://travis-ci.org/eapache/go-resiliency) [![GoDoc](https://godoc.org/github.com/eapache/go-resiliency?status.svg)](https://godoc.org/github.com/eapache/go-resiliency) Resiliency patterns for golang. Based ...
Add 'based-on' to top-level readme
Add 'based-on' to top-level readme
Markdown
mit
eapache/go-resiliency,winlinvip/go-resiliency,jgautheron/go-resiliency
markdown
## Code Before: go-resiliency ============= [![Build Status](https://travis-ci.org/eapache/go-resiliency.svg?branch=master)](https://travis-ci.org/eapache/go-resiliency) [![GoDoc](https://godoc.org/github.com/eapache/go-resiliency?status.svg)](https://godoc.org/github.com/eapache/go-resiliency) Resiliency patterns fo...
go-resiliency ============= [![Build Status](https://travis-ci.org/eapache/go-resiliency.svg?branch=master)](https://travis-ci.org/eapache/go-resiliency) [![GoDoc](https://godoc.org/github.com/eapache/go-resiliency?status.svg)](https://godoc.org/github.com/eapache/go-resiliency) - Resiliency patterns for ...
5
0.416667
4
1
6dfc73b08635f5f797b39f06d7dca8d48f2eea27
spec/support/shared_examples.rb
spec/support/shared_examples.rb
shared_context "constant numbers" do let(:one){ Constant.new(1) } let(:two){ Constant.new(2) } let(:three){ Constant.new(3) } let(:four){ Constant.new(4) } let(:five){ Constant.new(5) } end shared_examples_for "correct string output" do |output| it "shows a correct string representation of #{output}" do ...
shared_context "constant numbers" do let(:one){ Constant.new(1) } let(:two){ Constant.new(2) } let(:three){ Constant.new(3) } let(:four){ Constant.new(4) } let(:five){ Constant.new(5) } end shared_examples_for "correct string output" do |output| it "shows a correct string representation of #{output}" do ...
Change precise equality in shared example to be_within matcher
Change precise equality in shared example to be_within matcher
Ruby
mit
mvonmaltitz/mathgame
ruby
## Code Before: shared_context "constant numbers" do let(:one){ Constant.new(1) } let(:two){ Constant.new(2) } let(:three){ Constant.new(3) } let(:four){ Constant.new(4) } let(:five){ Constant.new(5) } end shared_examples_for "correct string output" do |output| it "shows a correct string representation of #...
shared_context "constant numbers" do let(:one){ Constant.new(1) } let(:two){ Constant.new(2) } let(:three){ Constant.new(3) } let(:four){ Constant.new(4) } let(:five){ Constant.new(5) } end shared_examples_for "correct string output" do |output| it "shows a correct string representation of...
2
0.111111
1
1
5f656614f2648b4ca5fa43f7b52c4babba3b8f68
GHC/Integer/Type.hs
GHC/Integer/Type.hs
{-# LANGUAGE NoImplicitPrelude #-} ----------------------------------------------------------------------------- -- | -- Module : GHC.Integer.Type -- Copyright : (c) Ian Lynagh 2007-2008 -- License : BSD3 -- -- Maintainer : igloo@earth.li -- Stability : internal -- Portability : non-portable (GHC ...
{-# LANGUAGE NoImplicitPrelude #-} ----------------------------------------------------------------------------- -- | -- Module : GHC.Integer.Type -- Copyright : (c) Ian Lynagh 2007-2008 -- License : BSD3 -- -- Maintainer : igloo@earth.li -- Stability : internal -- Portability : non-portable (GHC ...
Add an import so the deps get sorted out correctly
Add an import so the deps get sorted out correctly
Haskell
bsd-3-clause
haskell-suite/integer-simple
haskell
## Code Before: {-# LANGUAGE NoImplicitPrelude #-} ----------------------------------------------------------------------------- -- | -- Module : GHC.Integer.Type -- Copyright : (c) Ian Lynagh 2007-2008 -- License : BSD3 -- -- Maintainer : igloo@earth.li -- Stability : internal -- Portability : no...
{-# LANGUAGE NoImplicitPrelude #-} ----------------------------------------------------------------------------- -- | -- Module : GHC.Integer.Type -- Copyright : (c) Ian Lynagh 2007-2008 -- License : BSD3 -- -- Maintainer : igloo@earth.li -- Stability : internal -- Portabili...
1
0.019608
1
0
fe5d09924f6035dddbb3040ec25f4c2c02a4644f
IceFishing/Profile/FollowTableViewCell.swift
IceFishing/Profile/FollowTableViewCell.swift
// // FollowTableViewCell.swift // IceFishing // // Created by Manuela Rios on 4/19/15. // Copyright (c) 2015 Lucas Derraugh. All rights reserved. // import UIKit class FollowTableViewCell: UITableViewCell { @IBOutlet weak var userImage: UIImageView! @IBOutlet weak var userName: UILabel! @IBOutle...
// // FollowTableViewCell.swift // IceFishing // // Created by Manuela Rios on 4/19/15. // Copyright (c) 2015 Lucas Derraugh. All rights reserved. // import UIKit protocol FollowUserDelegate { func didTapFollowButton(cell: FollowTableViewCell) } class FollowTableViewCell: UITableViewCell { @IBOutlet we...
Add follow user protocol for user cells
Add follow user protocol for user cells
Swift
mit
cuappdev/tempo,cuappdev/tempo
swift
## Code Before: // // FollowTableViewCell.swift // IceFishing // // Created by Manuela Rios on 4/19/15. // Copyright (c) 2015 Lucas Derraugh. All rights reserved. // import UIKit class FollowTableViewCell: UITableViewCell { @IBOutlet weak var userImage: UIImageView! @IBOutlet weak var userName: UILab...
// // FollowTableViewCell.swift // IceFishing // // Created by Manuela Rios on 4/19/15. // Copyright (c) 2015 Lucas Derraugh. All rights reserved. // import UIKit + protocol FollowUserDelegate { + func didTapFollowButton(cell: FollowTableViewCell) + } + class FollowTableViewCell: UITableVi...
11
0.282051
11
0
64f79483566fcd127a1bb649263d9222b03d98de
src/Formats/JekyllFormatService.kt
src/Formats/JekyllFormatService.kt
package org.jetbrains.dokka public class JekyllFormatService(locationService: LocationService, signatureGenerator: SignatureGenerator) : MarkdownFormatService(locationService, signatureGenerator) { override fun format(nodes: Iterable<DocumentationNode>, to: StringBuilder) { to.appendln("---") to.a...
package org.jetbrains.dokka public class JekyllFormatService(locationService: LocationService, signatureGenerator: SignatureGenerator) : MarkdownFormatService(locationService, signatureGenerator) { override val extension: String = "html" override fun format(nodes: Iterable<DocumentationNode>, to: StringBuilder...
Use html extension for jekyll so that links work
Use html extension for jekyll so that links work
Kotlin
apache-2.0
Kotlin/dokka,Kotlin/dokka,Kotlin/dokka,google/dokka,Kotlin/dokka,google/dokka,Kotlin/dokka,Kotlin/dokka
kotlin
## Code Before: package org.jetbrains.dokka public class JekyllFormatService(locationService: LocationService, signatureGenerator: SignatureGenerator) : MarkdownFormatService(locationService, signatureGenerator) { override fun format(nodes: Iterable<DocumentationNode>, to: StringBuilder) { to.appendln("--...
package org.jetbrains.dokka public class JekyllFormatService(locationService: LocationService, signatureGenerator: SignatureGenerator) : MarkdownFormatService(locationService, signatureGenerator) { - + override val extension: String = "html" override fun format(nodes: Iterable<DocumentationNode>, to...
2
0.153846
1
1
28854e4980070229ab34f08575ea5031ff9da643
plugins/solr/views/search/search_page.html.erb
plugins/solr/views/search/search_page.html.erb
<% extend SolrPlugin::SearchHelper %> <% set_facets_variables %> <%= search_page_title( @titles[@asset], @category ) %> <% if !@empty_query %> <div id='search-column-left'> <%= render :partial => 'facets' %> </div> <div id='search-column-right'> <%= render :partial => 'results' %> </div> <% else %> ...
<% extend SolrPlugin::SearchHelper %> <% set_facets_variables %> <%= search_page_title( @titles[@asset], @category ) %> <div id='search-column-left'> <%= render :partial => 'facets' if !@empty_query %> </div> <div id='search-column-right'> <%= render :partial => 'results' %> </div> <div style="clear: both"></di...
Use same column structure for all pages
Use same column structure for all pages
HTML+ERB
agpl-3.0
macartur/noosfero,marcosronaldo/noosfero,AlessandroCaetano/noosfero,alexandreab/noosfero,hackathon-oscs/cartografias,tallysmartins/noosfero,macartur/noosfero,coletivoEITA/noosfero,blogoosfero/noosfero,evandrojr/noosfero,hackathon-oscs/cartografias,marcosronaldo/noosfero,vfcosta/noosfero,hackathon-oscs/rede-osc,evandroj...
html+erb
## Code Before: <% extend SolrPlugin::SearchHelper %> <% set_facets_variables %> <%= search_page_title( @titles[@asset], @category ) %> <% if !@empty_query %> <div id='search-column-left'> <%= render :partial => 'facets' %> </div> <div id='search-column-right'> <%= render :partial => 'results' %> </d...
<% extend SolrPlugin::SearchHelper %> <% set_facets_variables %> <%= search_page_title( @titles[@asset], @category ) %> - <% if !@empty_query %> - <div id='search-column-left'> ? -- + <div id='search-column-left'> - <%= render :partial => 'facets' %> ? -- + <%= render :partial => 'facets' if !@emp...
14
0.583333
5
9
38427b2e81d1b1ffd2a05c88aa21bbb9605becc4
src/app.js
src/app.js
const path = require('path'); const favicon = require('serve-favicon'); const compress = require('compression'); const cors = require('cors'); const helmet = require('helmet'); const bodyParser = require('body-parser'); const feathers = require('feathers'); const configuration = require('feathers-configuration'); cons...
const path = require('path'); const favicon = require('serve-favicon'); const compress = require('compression'); const cors = require('cors'); const helmet = require('helmet'); const bodyParser = require('body-parser'); const feathers = require('feathers'); const configuration = require('feathers-configuration'); cons...
Add socket.io to handle client real-time requests
Add socket.io to handle client real-time requests
JavaScript
mit
andreafalzetti/watch-gate,andreafalzetti/watch-gate
javascript
## Code Before: const path = require('path'); const favicon = require('serve-favicon'); const compress = require('compression'); const cors = require('cors'); const helmet = require('helmet'); const bodyParser = require('body-parser'); const feathers = require('feathers'); const configuration = require('feathers-confi...
const path = require('path'); const favicon = require('serve-favicon'); const compress = require('compression'); const cors = require('cors'); const helmet = require('helmet'); const bodyParser = require('body-parser'); const feathers = require('feathers'); const configuration = require('feathers-con...
4
0.086957
2
2
0567bdd91844b3ad88706645a56c484b3fea58f1
git/exception/GitException.sh
git/exception/GitException.sh
include logger.Logger GitException(){ curBranchException(){ Logger logErrorMsg "cannot_${1}_${2}_because_${2}_is_the_current_branch" } existingBranchException(){ Logger logErrorMsg "cannot_${1}_${2}_because_${2}_already_exists" } $@ }
include logger.Logger GitException(){ branchDoesNotExistException(){ Logger logError "cannot_${1}_${2}_because_${2}_does_not_exist" } curBranchException(){ Logger logErrorMsg "cannot_${1}_${2}_because_${2}_is_the_current_branch" } existingBranchException(){ Logger logErrorMsg "cannot_${1}_${2}_because_${2...
Add exception for when branch does not exist
Add exception for when branch does not exist
Shell
mit
anthony-chu/bash-toolbox
shell
## Code Before: include logger.Logger GitException(){ curBranchException(){ Logger logErrorMsg "cannot_${1}_${2}_because_${2}_is_the_current_branch" } existingBranchException(){ Logger logErrorMsg "cannot_${1}_${2}_because_${2}_already_exists" } $@ } ## Instruction: Add exception for when branch does not ex...
include logger.Logger GitException(){ + branchDoesNotExistException(){ + Logger logError "cannot_${1}_${2}_because_${2}_does_not_exist" + } + curBranchException(){ Logger logErrorMsg "cannot_${1}_${2}_because_${2}_is_the_current_branch" } existingBranchException(){ Logger logErrorMsg "ca...
4
0.307692
4
0
06e00f620e630158c46e02e77397458394531b87
src/app/components/widgets/menu.component.ts
src/app/components/widgets/menu.component.ts
import {Renderer2} from '@angular/core'; import {MenuContext, MenuService} from '../menu-service'; /** * @author Daniel de Oliveira * @author Thomas Kleinke */ export abstract class MenuComponent { public opened: boolean = false; private removeMouseEventListener: Function|undefined; constructor(pri...
import {Renderer2} from '@angular/core'; import {MenuContext, MenuService} from '../menu-service'; /** * @author Daniel de Oliveira * @author Thomas Kleinke */ export abstract class MenuComponent { public opened: boolean = false; private removeMouseEventListener: Function|undefined; constructor(pri...
Fix closing layer & matrix menus
Fix closing layer & matrix menus
TypeScript
apache-2.0
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
typescript
## Code Before: import {Renderer2} from '@angular/core'; import {MenuContext, MenuService} from '../menu-service'; /** * @author Daniel de Oliveira * @author Thomas Kleinke */ export abstract class MenuComponent { public opened: boolean = false; private removeMouseEventListener: Function|undefined; ...
import {Renderer2} from '@angular/core'; import {MenuContext, MenuService} from '../menu-service'; /** * @author Daniel de Oliveira * @author Thomas Kleinke */ export abstract class MenuComponent { public opened: boolean = false; private removeMouseEventListener: Function|undefi...
2
0.029412
1
1