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
81c5d8a9689114d3b25758a45096cef78ea49749
cmd/restic/cmd_autocomplete.go
cmd/restic/cmd_autocomplete.go
package main import ( "github.com/spf13/cobra" ) var autocompleteTarget string var cmdAutocomplete = &cobra.Command{ Use: "autocomplete", Short: "Generate shell autocompletion script", Long: `The "autocomplete" command generates a shell autocompletion script. NOTE: The current version supports Bash only. ...
package main import ( "github.com/spf13/cobra" ) var cmdAutocomplete = &cobra.Command{ Use: "autocomplete", Short: "Generate shell autocompletion script", Long: `The "autocomplete" command generates a shell autocompletion script. NOTE: The current version supports Bash only. This should work for *nix sys...
Correct bash completion file path
Correct bash completion file path
Go
bsd-2-clause
ar-jan/restic,restic/restic,kurin/restic,fawick/restic,fawick/restic,ar-jan/restic,kurin/restic,middelink/restic,middelink/restic,restic/restic
go
## Code Before: package main import ( "github.com/spf13/cobra" ) var autocompleteTarget string var cmdAutocomplete = &cobra.Command{ Use: "autocomplete", Short: "Generate shell autocompletion script", Long: `The "autocomplete" command generates a shell autocompletion script. NOTE: The current version supports...
package main import ( "github.com/spf13/cobra" ) - - var autocompleteTarget string var cmdAutocomplete = &cobra.Command{ Use: "autocomplete", Short: "Generate shell autocompletion script", Long: `The "autocomplete" command generates a shell autocompletion script. NOTE: The current vers...
6
0.162162
3
3
af5a73199a09ee8da2516d92be505da221a95f99
app/assets/stylesheets/diffy.scss.erb
app/assets/stylesheets/diffy.scss.erb
<%= Diffy::CSS %> .diff { ul { background: transparent; } }
<%= Diffy::CSS %> .diff { $symbol-spacing: 1.5em; del { text-decoration: line-through; } ul { background: transparent; padding-left: $symbol-spacing; } span.symbol { display: inline-block; margin-left: -$symbol-spacing; width: $symbol-spacing; font-weight: bold; } }
Improve diffing UI based on user feedback
Improve diffing UI based on user feedback The results from the content design survey weren't totally conclusive but the eventual winner was "+/- at the start of the rows with a strike through for deletions". The only point of confusion around this option was the +/- sit a little too close to the rest of the body copy...
HTML+ERB
mit
alphagov/service-manual-publisher,alphagov/service-manual-publisher,alphagov/service-manual-publisher
html+erb
## Code Before: <%= Diffy::CSS %> .diff { ul { background: transparent; } } ## Instruction: Improve diffing UI based on user feedback The results from the content design survey weren't totally conclusive but the eventual winner was "+/- at the start of the rows with a strike through for deletions". The only...
<%= Diffy::CSS %> .diff { + $symbol-spacing: 1.5em; + + del { + text-decoration: line-through; + } ul { background: transparent; + padding-left: $symbol-spacing; + } + span.symbol { + display: inline-block; + margin-left: -$symbol-spacing; + width: $symbol-spacing; + ...
12
1.714286
12
0
2a2e814a2a1d9d7539a8e66f53bf54e0e6491485
tslint.json
tslint.json
{ "extends": [ "tslint-react" ], "rules": { "class-name": true, "comment-format": [ true, "check-space" ], "indent": [ true, "spaces" ], "no-duplicate-variable": true, "no-eval": true, "no...
{ "extends": [ "tslint-react" ], "rules": { "class-name": true, "comment-format": [ true, "check-space" ], "indent": [ true, "spaces" ], "no-duplicate-variable": true, "no-eval": true, "no...
Configure require, triple equals rules.
Configure require, triple equals rules.
JSON
mit
fuzzwizard/builders-game,Numose/builders-game,Numose/builders-game,Numose/builders-game,Hrr-19-crushers/builders-game,Hrr-19-crushers/builders-game,fuzzwizard/builders-game,Hrr-19-crushers/builders-game,fuzzwizard/builders-game
json
## Code Before: { "extends": [ "tslint-react" ], "rules": { "class-name": true, "comment-format": [ true, "check-space" ], "indent": [ true, "spaces" ], "no-duplicate-variable": true, "no-eval": t...
{ "extends": [ "tslint-react" ], "rules": { "class-name": true, "comment-format": [ true, "check-space" ], "indent": [ true, "spaces" ], "no-duplicate-variable": true, ...
7
0.114754
3
4
45923c586d4541003aa22b2c404622ae2262153a
docker-compose.yml
docker-compose.yml
version: '2' services: backend: build: ./backend/. image: banjocat/calorie_find:latest restart: always depends_on: - db command: bash -c "/tmp/wait-for-it.sh -h db -p 5432 && ./manage.py runserver 0.0.0.0:8000" volumes: - ./backend/calorie_find...
version: '2' services: backend: build: ./backend/. image: banjocat/calorie_find:latest restart: always depends_on: - db command: bash -c "/tmp/wait-for-it.sh -h db -p 5432 && ./manage.py runserver 0.0.0.0:8000" volumes: - ./backend/calorie_find...
Add done message to migrations
Add done message to migrations
YAML
bsd-2-clause
banjocat/calorie-find,banjocat/calorie-find
yaml
## Code Before: version: '2' services: backend: build: ./backend/. image: banjocat/calorie_find:latest restart: always depends_on: - db command: bash -c "/tmp/wait-for-it.sh -h db -p 5432 && ./manage.py runserver 0.0.0.0:8000" volumes: - ./back...
version: '2' services: backend: build: ./backend/. image: banjocat/calorie_find:latest restart: always depends_on: - db command: bash -c "/tmp/wait-for-it.sh -h db -p 5432 && ./manage.py runserver 0.0.0.0:8000" volumes: - ...
3
0.09375
2
1
1f96a3c5880ca0be800c4de2415bdcd42af363da
src/app/sparrows/sparrows.component.css
src/app/sparrows/sparrows.component.css
.interface { position: relative; background-color: grey; } .chooser { /* flex container */ display: flex; align-items: center; justify-content: center; height: 100vh; } .answer { /*border: 3px solid red;*/ /* flex container */ display: flex; align-items: center; justify-content: center; /...
.interface { position: relative; background-color: grey; } .chooser { /* flex container */ display: flex; align-items: center; justify-content: center; height: 100vh; } .answer { /*border: 3px solid red;*/ /* flex container */ display: flex; align-items: center; justify-content: center; /...
Make indicator text white with black shadow
Make indicator text white with black shadow Make it easier to read over any background image.
CSS
apache-2.0
LearnWithLlew/SparrowDecks,LearnWithLlew/SparrowDecks,LearnWithLlew/SparrowDecks
css
## Code Before: .interface { position: relative; background-color: grey; } .chooser { /* flex container */ display: flex; align-items: center; justify-content: center; height: 100vh; } .answer { /*border: 3px solid red;*/ /* flex container */ display: flex; align-items: center; justify-conte...
.interface { position: relative; background-color: grey; } .chooser { /* flex container */ display: flex; align-items: center; justify-content: center; height: 100vh; } .answer { /*border: 3px solid red;*/ /* flex container */ display: flex; align-items:...
3
0.041667
2
1
13e705286d3b872a7f681e9106ebc9889a65e120
index.js
index.js
'use strict'; var fs = require('fs'); var path = require('path'); var body = '<script>' + fs.readFileSync(path.join(__dirname, 'teapot.min.js')) + '</script>'; module.exports = function (req, res) { res.writeHead(418, { 'Content-Length': Buffer.byteLength(body), 'Content-Type': 'text/html; charset=utf-8' ...
'use strict'; var fs = require('fs'); var path = require('path'); var body = '<center>418: I\'m a teapot</center><script>' + fs.readFileSync(path.join(__dirname, 'teapot.min.js')) + '</script>'; module.exports = function (req, res) { res.writeHead(418, { 'Content-Length': Buffer.byteLength(body), 'Cont...
Add text message to those without mesh support
Add text message to those without mesh support I'm looking at you Safari
JavaScript
mit
watson/http-teapot
javascript
## Code Before: 'use strict'; var fs = require('fs'); var path = require('path'); var body = '<script>' + fs.readFileSync(path.join(__dirname, 'teapot.min.js')) + '</script>'; module.exports = function (req, res) { res.writeHead(418, { 'Content-Length': Buffer.byteLength(body), 'Content-Type': 'text/html; c...
'use strict'; var fs = require('fs'); var path = require('path'); + + var body = '<center>418: I\'m a teapot</center><script>' + - var body = '<script>' + fs.readFileSync(path.join(__dirname, 'teapot.min.js')) + '</script>'; ? --- ------------------- ---...
5
0.384615
4
1
20d09c9d41bef2e0b36bd235599b1f1d567ee8ee
Casks/balsamiq-mockups.rb
Casks/balsamiq-mockups.rb
class BalsamiqMockups < Cask version :latest sha256 :no_check url 'http://builds.balsamiq.com/b/mockups-desktop/MockupsForDesktop.dmg' homepage 'http://balsamiq.com/' license :commercial app 'Balsamiq Mockups.app' end
class BalsamiqMockups < Cask version :latest sha256 :no_check # amazonaws is the official download host per the vendor homepage url 'http://s3.amazonaws.com/build_production/mockups-desktop/MockupsForDesktop.dmg' homepage 'http://balsamiq.com/' license :commercial app 'Balsamiq Mockups.app' end
Update download URL for Balsamiq Mockups
Update download URL for Balsamiq Mockups Closes #6944.
Ruby
bsd-2-clause
ianyh/homebrew-cask,vitorgalvao/homebrew-cask,MoOx/homebrew-cask,christophermanning/homebrew-cask,jspahrsummers/homebrew-cask,stevehedrick/homebrew-cask,johnste/homebrew-cask,chuanxd/homebrew-cask,optikfluffel/homebrew-cask,wickedsp1d3r/homebrew-cask,amatos/homebrew-cask,dcondrey/homebrew-cask,kteru/homebrew-cask,engli...
ruby
## Code Before: class BalsamiqMockups < Cask version :latest sha256 :no_check url 'http://builds.balsamiq.com/b/mockups-desktop/MockupsForDesktop.dmg' homepage 'http://balsamiq.com/' license :commercial app 'Balsamiq Mockups.app' end ## Instruction: Update download URL for Balsamiq Mockups Closes #6944....
class BalsamiqMockups < Cask version :latest sha256 :no_check + # amazonaws is the official download host per the vendor homepage - url 'http://builds.balsamiq.com/b/mockups-desktop/MockupsForDesktop.dmg' ? ----- ---- ^^ + url 'http://s3.amazonaws.com/build_production/mockups-desktop...
3
0.3
2
1
8aad6f2d124a79c0f37f228d4d5e975921e42482
oneapi-sample-app/on-inbound-message.php
oneapi-sample-app/on-inbound-message.php
<?php require_once 'app.php'; $result = SmsClient::unserializeInboundMessages(); // Process the inbound message here... // We'll just save this object: $fileName = PUSH_LOG_DIRECTORY . '/inbound-message-' . strftime('%Y-%m-%d %H:%M') . '.txt'; $data = print_r($result, true); file_put_contents($fileName, $data); /...
<?php require_once 'app.php'; $result = SmsClient::unserializeInboundMessages(); // Process the inbound message here... // We'll send a response here: $message = new SMSRequest(); $message->senderAddress = $result->destinationAddress; $message->address = $result->senderAddress; $message->message = 'Thank you fo...
Send message on inbound push
Send message on inbound push
PHP
apache-2.0
infobip/oneapi-php,infobip/oneapi-php,infobip/oneapi-php-non-composer,maitho/oneapi-php,MakavelDyp/oneapi-php,maitho/oneapi-php,maitho/oneapi-php,MakavelDyp/oneapi-php,MakavelDyp/oneapi-php,infobip/oneapi-php,frkator/oneapi-php,frkator/oneapi-php,infobip/oneapi-php-non-composer,infobip/oneapi-php-non-composer
php
## Code Before: <?php require_once 'app.php'; $result = SmsClient::unserializeInboundMessages(); // Process the inbound message here... // We'll just save this object: $fileName = PUSH_LOG_DIRECTORY . '/inbound-message-' . strftime('%Y-%m-%d %H:%M') . '.txt'; $data = print_r($result, true); file_put_contents($file...
<?php require_once 'app.php'; + $result = SmsClient::unserializeInboundMessages(); + // Process the inbound message here... + + + + // We'll send a response here: + $message = new SMSRequest(); + $message->senderAddress = $result->destinationAddress; + $message->address = $result->senderAddress; +...
17
1.0625
17
0
0c1b581a46c5655b111ef7027ce2076bc4fe6162
src/test/data/SimpleTestModelSchema.js
src/test/data/SimpleTestModelSchema.js
define([ ], function ( ) { return { "id": "TestData/SimpleTestModelSchema", "description": "A simple model for testing", "$schema": "http://json-schema.org/draft-03/schema", "type": "object", "properties": { "modelNumber": { "type":...
define({ "id": "TestData/SimpleTestModelSchema", "description": "A simple model for testing", "$schema": "http://json-schema.org/draft-03/schema", "type": "object", "properties": { "modelNumber": { "type": "string", "maxLength": 4, "description": ...
Add pattern validation to test model.
Add pattern validation to test model.
JavaScript
apache-2.0
atsid/schematic-js,atsid/schematic-js
javascript
## Code Before: define([ ], function ( ) { return { "id": "TestData/SimpleTestModelSchema", "description": "A simple model for testing", "$schema": "http://json-schema.org/draft-03/schema", "type": "object", "properties": { "modelNumber": { "t...
- define([ ? ^ + define({ ? ^ - ], function ( - ) { - - return { - "id": "TestData/SimpleTestModelSchema", ? ---- + "id": "TestData/SimpleTestModelSchema", - "description": "A simple model for testing", ? ---- + "description": "A simple model for testing", - "$...
39
1.625
17
22
1cf043a83ebe864c44e224228742e6a669ae928f
Source/UnitTesting.swift
Source/UnitTesting.swift
// // Created by Tom Baranes on 14/07/16. // Copyright © 2016 Tom Baranes. All rights reserved. // import Foundation import QuartzCore public struct UnitTesting { public static var isRunning: Bool { return ProcessInfo.processInfo.environment["XCInjectBundle"] != nil } public static func measur...
// // Created by Tom Baranes on 14/07/16. // Copyright © 2016 Tom Baranes. All rights reserved. // import Foundation import QuartzCore public struct UnitTesting { public static var isRunning: Bool { return ProcessInfo.processInfo.environment["XCTestConfigurationFilePath"] != nil } public stati...
Fix UnitTest isRunning on xcode8
Fix UnitTest isRunning on xcode8
Swift
mit
tbaranes/SwiftyUtils,tbaranes/SwiftyUtils
swift
## Code Before: // // Created by Tom Baranes on 14/07/16. // Copyright © 2016 Tom Baranes. All rights reserved. // import Foundation import QuartzCore public struct UnitTesting { public static var isRunning: Bool { return ProcessInfo.processInfo.environment["XCInjectBundle"] != nil } public st...
// // Created by Tom Baranes on 14/07/16. // Copyright © 2016 Tom Baranes. All rights reserved. // import Foundation import QuartzCore public struct UnitTesting { public static var isRunning: Bool { - return ProcessInfo.processInfo.environment["XCInjectBundle"] != nil ? ...
2
0.090909
1
1
138a01aaa814c7d39a3d6dee8f09f2fe92cc09f6
src/main/java/mods/railcraft/api/crafting/ICokeOvenCraftingManager.java
src/main/java/mods/railcraft/api/crafting/ICokeOvenCraftingManager.java
/*------------------------------------------------------------------------------ Copyright (c) CovertJaguar, 2011-2016 This work (the API) is licensed under the "MIT" License, see LICENSE.md for details. -----------------------------------------------------------------------------*/ package mods.railcraft.api.cra...
/*------------------------------------------------------------------------------ Copyright (c) CovertJaguar, 2011-2016 This work (the API) is licensed under the "MIT" License, see LICENSE.md for details. -----------------------------------------------------------------------------*/ package mods.railcraft.api.cra...
Add a nullable to fluid stack
Add a nullable to fluid stack Signed-off-by: liach <0428df7f4d1579e7bcd23f3c4e7cd8401bcee5a4@users.noreply.github.com>
Java
mit
liachmodded/Railcraft-API
java
## Code Before: /*------------------------------------------------------------------------------ Copyright (c) CovertJaguar, 2011-2016 This work (the API) is licensed under the "MIT" License, see LICENSE.md for details. -----------------------------------------------------------------------------*/ package mods.r...
/*------------------------------------------------------------------------------ Copyright (c) CovertJaguar, 2011-2016 This work (the API) is licensed under the "MIT" License, see LICENSE.md for details. -----------------------------------------------------------------------------*/ package mods.r...
2
0.071429
1
1
1be4a93dfa6c4489e0b5dc609ed1eeae5527413b
app/overrides/spree/admin/payment_methods/_form/add_image_button.html.erb.deface
app/overrides/spree/admin/payment_methods/_form/add_image_button.html.erb.deface
<!-- insert_after '[data-hook=active]' --> <div class="field"> <%= f.label :icon %> <%= f.file_field :icon %> <%= image_tag @payment_method.icon.url(:normal) %> </div>
<!-- insert_after '[data-hook=active]' --> <div class="field"> <%= label_tag nil, Spree.t(:icon) %> <%= file_field :payment_method, :icon %> <%= image_tag @payment_method.icon.url(:normal) %> </div>
Fix error when uploading image
Fix error when uploading image
unknown
bsd-3-clause
stevenbarragan/spree_payment_image,stevenbarragan/spree_payment_image
unknown
## Code Before: <!-- insert_after '[data-hook=active]' --> <div class="field"> <%= f.label :icon %> <%= f.file_field :icon %> <%= image_tag @payment_method.icon.url(:normal) %> </div> ## Instruction: Fix error when uploading image ## Code After: <!-- insert_after '[data-hook=active]' --> <div class="field"> <...
<!-- insert_after '[data-hook=active]' --> <div class="field"> - <%= f.label :icon %> - <%= f.file_field :icon %> + <%= label_tag nil, Spree.t(:icon) %> + <%= file_field :payment_method, :icon %> <%= image_tag @payment_method.icon.url(:normal) %> </div>
4
0.666667
2
2
88f6db73acae9e286573b2a18f4018b4c886126b
spec/support/custom_helpers.rb
spec/support/custom_helpers.rb
module CustomHelpers def use_cassette(name, options = {}) VCR.use_cassette(name, options) { yield } end def authorized_connection connection = SpBus::Connection.new use_cassette(:successful_authentication) do SpBus::Authentication.new(connection, SpecEnv.valid_api_token).authorize end ...
module CustomHelpers def use_cassette(name, options = {}) VCR.use_cassette(name, options) { yield } end def authorized_connection connection = SpBus::Connection.new use_cassette(:successful_authentication) do SpBus::Authentication.new(connection, SpecEnv.valid_api_token).authorize end ...
Create a helper to match regular expressions.
Create a helper to match regular expressions.
Ruby
mit
lenon/spbus
ruby
## Code Before: module CustomHelpers def use_cassette(name, options = {}) VCR.use_cassette(name, options) { yield } end def authorized_connection connection = SpBus::Connection.new use_cassette(:successful_authentication) do SpBus::Authentication.new(connection, SpecEnv.valid_api_token).author...
module CustomHelpers def use_cassette(name, options = {}) VCR.use_cassette(name, options) { yield } end def authorized_connection connection = SpBus::Connection.new use_cassette(:successful_authentication) do SpBus::Authentication.new(connection, SpecEnv.valid_api_token).au...
4
0.285714
4
0
4c009457646a8272b3fe4d748b29f1a91f49d6c0
assets/css/links-sender.css
assets/css/links-sender.css
.links-sender { position: fixed !important; bottom: 0; width: 100%; } .links-sender .send-button { color: #75b0ba; } .links-sender .deactivate { color: lightgray; pointer-events: none; } .links-sender .error-msg { color: #cc0000; } .links-sender input[type="text"]:focus { border-color: #75b0ba; }
.links-sender { position: fixed !important; bottom: 0; width: 100%; } .links-sender .send-button { color: #75b0ba; } .links-sender .error-msg { color: #cc0000; } .links-sender input[type="text"]:focus { border-color: #75b0ba; }
Use disabled attribute instead of deactivate class
Use disabled attribute instead of deactivate class
CSS
mit
unblee/jukebox,unblee/jukebox
css
## Code Before: .links-sender { position: fixed !important; bottom: 0; width: 100%; } .links-sender .send-button { color: #75b0ba; } .links-sender .deactivate { color: lightgray; pointer-events: none; } .links-sender .error-msg { color: #cc0000; } .links-sender input[type="text"]:focus { border-colo...
.links-sender { position: fixed !important; bottom: 0; width: 100%; } .links-sender .send-button { color: #75b0ba; } - .links-sender .deactivate { - color: lightgray; - pointer-events: none; - } - .links-sender .error-msg { color: #cc0000; } .links-sender input[type="text...
5
0.227273
0
5
47514c2c74054dce5950d5d5b021d85f715f0882
install-atom-editor-deb.sh
install-atom-editor-deb.sh
cd /tmp && wget https://atom.io/download/deb -O atom-editor.deb && sudo dpkg -i ./atom-editor.deb && apm install sublime-style-column-selection \ color-picker emmet file-icons language-vue linter linter-eslint linter-php \ minimap
cd /tmp && wget https://atom.io/download/deb -O atom-editor.deb && sudo dpkg -i ./atom-editor.deb && apm install sublime-style-column-selection \ atom-ide-ui ide-css ide-php ide-rust ide-typescript ide-vue language-vue emmet \ color-picker file-icons minimap
Update Atom installer to include atom-ide-ui
Update Atom installer to include atom-ide-ui
Shell
mit
ricvelozo/scripts,ricvelozo/scripts
shell
## Code Before: cd /tmp && wget https://atom.io/download/deb -O atom-editor.deb && sudo dpkg -i ./atom-editor.deb && apm install sublime-style-column-selection \ color-picker emmet file-icons language-vue linter linter-eslint linter-php \ minimap ## Instruction: Update Atom installer to include atom-ide-ui ## Code Af...
cd /tmp && wget https://atom.io/download/deb -O atom-editor.deb && sudo dpkg -i ./atom-editor.deb && apm install sublime-style-column-selection \ - color-picker emmet file-icons language-vue linter linter-eslint linter-php \ - minimap + atom-ide-ui ide-css ide-php ide-rust ide-typescript ide-vue language-vue emmet ...
4
1
2
2
867c0598565ed6b9fdae43d6c9431974d692cd44
cytoolz/__init__.pxd
cytoolz/__init__.pxd
from .itertoolz cimport (groupby, frequencies, reduceby, first, second, nth, take, drop, rest, last, get, concat, concatv, isdistinct, interleave, interpose, unique, isiterable, remove, iterate, accumulate, partition, co...
from cytoolz.itertoolz cimport ( accumulate, cons, count, drop, get, groupby, first, frequencies, interleave, interpose, isdistinct, isiterable, iterate, last, nth, partition, reduceby, remove, rest, second, take, take_nth, unique) from cytoolz.functoolz cimport ( c_compose, c_juxt, c_memoize, c_pipe,...
Use absolute `cimport` in *.pxd files. Relative cimporting doesn't appear to work.
Use absolute `cimport` in *.pxd files. Relative cimporting doesn't appear to work. Also, alphabetize import in "cytoolz/__init__.pxd" (just because). The main reason we don't do `from cytoolz.itertoolz cimport *` is so there is a quick and easy reference for what is cimport-able.
Cython
bsd-3-clause
cpcloud/cytoolz,ljwolf/cytoolz,llllllllll/cytoolz,simudream/cytoolz,simudream/cytoolz,llllllllll/cytoolz,cpcloud/cytoolz
cython
## Code Before: from .itertoolz cimport (groupby, frequencies, reduceby, first, second, nth, take, drop, rest, last, get, concat, concatv, isdistinct, interleave, interpose, unique, isiterable, remove, iterate, accumulat...
+ from cytoolz.itertoolz cimport ( + accumulate, cons, count, drop, get, groupby, first, frequencies, + interleave, interpose, isdistinct, isiterable, iterate, last, nth, + partition, reduceby, remove, rest, second, take, take_nth, unique) - from .itertoolz cimport (groupby, frequencies, reduceby, - ...
21
1.75
11
10
992ac423275bc6ac63e89ed280f1c2a11df2f328
CMakeLists.txt
CMakeLists.txt
cmake_minimum_required(VERSION 2.8.11) project(symbolicmath) set(CMAKE_INCLUDE_CURRENT_DIR ON) # Some variables set(EXEC_NAME main) set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}") # Find sources and headers by globbing file(GLOB SRC . src/*.cpp) file(GLOB HEADERS . src/*.h) # Tell CMake to create the executabl...
cmake_minimum_required(VERSION 2.8.11) project(symbolicmath) set(CMAKE_INCLUDE_CURRENT_DIR ON) # All warnings, from stackoverflow if(MSVC) # Force to always compile with W4 if(CMAKE_CXX_FLAGS MATCHES "/W[0-4]") string(REGEX REPLACE "/W[0-4]" "/W4" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") else() ...
Use all warning flags in cmake
Use all warning flags in cmake Compiles with, for instance, g++ and -Wall
Text
mit
aabmass/ArithmeticExpressionCompiler
text
## Code Before: cmake_minimum_required(VERSION 2.8.11) project(symbolicmath) set(CMAKE_INCLUDE_CURRENT_DIR ON) # Some variables set(EXEC_NAME main) set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}") # Find sources and headers by globbing file(GLOB SRC . src/*.cpp) file(GLOB HEADERS . src/*.h) # Tell CMake to crea...
cmake_minimum_required(VERSION 2.8.11) project(symbolicmath) set(CMAKE_INCLUDE_CURRENT_DIR ON) + + # All warnings, from stackoverflow + if(MSVC) + # Force to always compile with W4 + if(CMAKE_CXX_FLAGS MATCHES "/W[0-4]") + string(REGEX REPLACE "/W[0-4]" "/W4" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS...
13
0.866667
13
0
9ee41ed7814c0d12ad703c84a414b25e32eac0f7
src/scss/base/_ie.scss
src/scss/base/_ie.scss
// IE specific hacks html.ie { main { display: block; } .card { // No display: flex supported display: block; } }
// IE specific hacks html.ie { main { display: block; } .card { // No display: flex supported display: block; height: auto; } }
Fix layout in IE 11, second attempt
Fix layout in IE 11, second attempt
SCSS
apache-2.0
CDE-UNIBE/qcat,CDE-UNIBE/qcat,CDE-UNIBE/qcat,CDE-UNIBE/qcat
scss
## Code Before: // IE specific hacks html.ie { main { display: block; } .card { // No display: flex supported display: block; } } ## Instruction: Fix layout in IE 11, second attempt ## Code After: // IE specific hacks html.ie { main { display: block; } ....
// IE specific hacks html.ie { main { display: block; } .card { // No display: flex supported display: block; + height: auto; } }
1
0.083333
1
0
d66f4a429a0e584b1ce45ca652a27ecd6c372e8c
climate_data/migrations/0024_auto_20170623_0308.py
climate_data/migrations/0024_auto_20170623_0308.py
from __future__ import unicode_literals from django.db import migrations # noinspection PyUnusedLocal def add_station_sensor_link_to_reading(apps, schema_editor): # noinspection PyPep8Naming Reading = apps.get_model('climate_data', 'Reading') # noinspection PyPep8Naming StationSensorLink = apps.get_m...
from __future__ import unicode_literals from django.db import migrations # noinspection PyUnusedLocal def add_station_sensor_link_to_reading(apps, schema_editor): # noinspection PyPep8Naming Reading = apps.get_model('climate_data', 'Reading') # noinspection PyPep8Naming StationSensorLink = apps.get_m...
Improve station-sensor link field addition to reading model migration using a paging system to prevent the migration being killed automatically.
Improve station-sensor link field addition to reading model migration using a paging system to prevent the migration being killed automatically.
Python
apache-2.0
qubs/data-centre,qubs/climate-data-api,qubs/climate-data-api,qubs/data-centre
python
## Code Before: from __future__ import unicode_literals from django.db import migrations # noinspection PyUnusedLocal def add_station_sensor_link_to_reading(apps, schema_editor): # noinspection PyPep8Naming Reading = apps.get_model('climate_data', 'Reading') # noinspection PyPep8Naming StationSensorL...
from __future__ import unicode_literals from django.db import migrations # noinspection PyUnusedLocal def add_station_sensor_link_to_reading(apps, schema_editor): # noinspection PyPep8Naming Reading = apps.get_model('climate_data', 'Reading') # noinspection PyPep8Naming StationS...
17
0.62963
13
4
e9f37843940b64df7aec2c86132e0b1cd043dec4
tools/regression/usr.bin/uuencode/regress.sh
tools/regression/usr.bin/uuencode/regress.sh
TESTDIR=$1 if [ -z "$TESTDIR" ]; then TESTDIR=. fi cd $TESTDIR for test in traditional base64; do echo "Running test $test" case "$test" in traditional) uuencode regress.in regress.in | diff -u regress.$test.out - ;; base64) uuencode -m regress.in regress.in | diff -u regress.$test.out - ;; ...
TESTDIR=$1 if [ -z "$TESTDIR" ]; then TESTDIR=. fi cd $TESTDIR # Note that currently the uuencode(1) program provides no facility to # include the file mode explicitly based on an argument passed to it, # so the regress.in file must be mode 644, or the test will say that, # incorrectly, regression has occurred based...
Add a comment regarding the file header, and the mode that the file is created with.
Add a comment regarding the file header, and the mode that the file is created with. This should be fixed shortly by adding the (desirable) option to set the file creation mode on the command line.
Shell
bsd-3-clause
jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase
shell
## Code Before: TESTDIR=$1 if [ -z "$TESTDIR" ]; then TESTDIR=. fi cd $TESTDIR for test in traditional base64; do echo "Running test $test" case "$test" in traditional) uuencode regress.in regress.in | diff -u regress.$test.out - ;; base64) uuencode -m regress.in regress.in | diff -u regress.$tes...
TESTDIR=$1 if [ -z "$TESTDIR" ]; then TESTDIR=. fi cd $TESTDIR + + # Note that currently the uuencode(1) program provides no facility to + # include the file mode explicitly based on an argument passed to it, + # so the regress.in file must be mode 644, or the test will say that, + # incorrectly, regressio...
5
0.217391
5
0
12151b4630b255bdcf72f482e143b2d71bc25340
CONTRIBUTING.md
CONTRIBUTING.md
Any help is welcome and appreciated. ## Ways to contribute * Adding [new rules](docs/developer-guide.md). Whether it's one of the [few](https://github.com/stylelint/stylelint/issues/1) that we've still to do, or something that you need and we've not thought about. * Expanding the [documentation](docs). * Working on ...
Any help is welcome and appreciated. ## Ways to contribute * Adding [new rules](docs/developer-guide.md). Whether it's one of the [few](https://github.com/stylelint/stylelint/issues?utf8=%E2%9C%93&q=%22New+rule%22+in%3Atitle+is%3Aopen) that we've still to do, or something that you need and we've not thought about. *...
Add link to open "New rule" issues
Add link to open "New rule" issues
Markdown
mit
hudochenkov/stylelint,heatwaveo8/stylelint,stylelint/stylelint,m-allanson/stylelint,gucong3000/stylelint,stylelint/stylelint,gucong3000/stylelint,gaidarenko/stylelint,gucong3000/stylelint,gaidarenko/stylelint,evilebottnawi/stylelint,heatwaveo8/stylelint,stylelint/stylelint,hudochenkov/stylelint,heatwaveo8/stylelint,evi...
markdown
## Code Before: Any help is welcome and appreciated. ## Ways to contribute * Adding [new rules](docs/developer-guide.md). Whether it's one of the [few](https://github.com/stylelint/stylelint/issues/1) that we've still to do, or something that you need and we've not thought about. * Expanding the [documentation](docs...
Any help is welcome and appreciated. ## Ways to contribute - * Adding [new rules](docs/developer-guide.md). Whether it's one of the [few](https://github.com/stylelint/stylelint/issues/1) that we've still to do, or something that you need and we've not thought about. ? ...
4
0.222222
2
2
0a90ff8186174ab91d183b27ab72ac2e12b376b3
.travis.yml
.travis.yml
language: objective-c osx_image: xcode7.3 rvm: - 2.2 podfile: Sensorama/Podfile script: - ./build.sh bootstrap - ./build.sh addons: ssh_known_hosts: - gitlab.com
language: objective-c osx_image: xcode7.3 cache: cocoapods rvm: - 2.2 podfile: Sensorama/Podfile script: - ./build.sh bootstrap - ./build.sh addons: ssh_known_hosts: - gitlab.com
Add CocoaPods to the cache.
Add CocoaPods to the cache. Otherwise it's very slow.
YAML
bsd-2-clause
wkoszek/sensorama-ios,wkoszek/sensorama-ios,wkoszek/sensorama-ios,wkoszek/sensorama-ios
yaml
## Code Before: language: objective-c osx_image: xcode7.3 rvm: - 2.2 podfile: Sensorama/Podfile script: - ./build.sh bootstrap - ./build.sh addons: ssh_known_hosts: - gitlab.com ## Instruction: Add CocoaPods to the cache. Otherwise it's very slow. ## Code After: language: objective-c osx_image: xcode7.3 cache: c...
language: objective-c osx_image: xcode7.3 + cache: cocoapods rvm: - 2.2 podfile: Sensorama/Podfile script: - ./build.sh bootstrap - ./build.sh addons: ssh_known_hosts: - gitlab.com
1
0.090909
1
0
bd08c96e5fa5eaebd9d0d8fc160ecfacc4a8f567
README.md
README.md
[![Build Status](https://travis-ci.org/IG-Group/ig-webapi-dotnet-sample.svg?branch=master)](https://travis-ci.org/IG-Group/ig-webapi-dotnet-sample) ### Overview This repository contains a .NET WPF sample application written in C# to access the IG REST and Streaming APIs. ### Getting started 1) Open the solution with ...
This repository contains a .NET WPF sample application written in C# to access the IG REST and Streaming APIs. ### Getting started 1) Open the solution with Visual Studio 2015 or later. 2) Configure the SampleWPFTrader **App.config** file: ``` <!-- environment = demo|live --> <add key="environment" value="dem...
Remove build status icon as Travis can't build WPF projects.
Remove build status icon as Travis can't build WPF projects.
Markdown
bsd-3-clause
IG-Group/ig-webapi-dotnet-sample
markdown
## Code Before: [![Build Status](https://travis-ci.org/IG-Group/ig-webapi-dotnet-sample.svg?branch=master)](https://travis-ci.org/IG-Group/ig-webapi-dotnet-sample) ### Overview This repository contains a .NET WPF sample application written in C# to access the IG REST and Streaming APIs. ### Getting started 1) Open th...
- [![Build Status](https://travis-ci.org/IG-Group/ig-webapi-dotnet-sample.svg?branch=master)](https://travis-ci.org/IG-Group/ig-webapi-dotnet-sample) - - ### Overview This repository contains a .NET WPF sample application written in C# to access the IG REST and Streaming APIs. ### Getting started 1) Open the ...
3
0.107143
0
3
3a290716f7b6cda51c0dec30507c14025856df16
UM/Qt/qml/UM/Settings/SettingsConfigurationPage.qml
UM/Qt/qml/UM/Settings/SettingsConfigurationPage.qml
import QtQuick 2.1 import QtQuick.Controls 1.1 import QtQuick.Layouts 1.1 import UM 1.0 as UM import "../Preferences" PreferencesPage { //: Machine configuration page title. title: qsTr("Machine"); contents: ScrollView { anchors.fill: parent; ListView { delegate...
import QtQuick 2.1 import QtQuick.Controls 1.1 import QtQuick.Layouts 1.1 import UM 1.0 as UM import "../Preferences" PreferencesPage { //: Machine configuration page title. title: qsTr("Machine"); contents: ColumnLayout { anchors.fill: parent; RowLayout { Label { text: qsTr(...
Add an active machine selector to the machine configuration page
Add an active machine selector to the machine configuration page
QML
agpl-3.0
onitake/Uranium,onitake/Uranium
qml
## Code Before: import QtQuick 2.1 import QtQuick.Controls 1.1 import QtQuick.Layouts 1.1 import UM 1.0 as UM import "../Preferences" PreferencesPage { //: Machine configuration page title. title: qsTr("Machine"); contents: ScrollView { anchors.fill: parent; ListView { ...
import QtQuick 2.1 import QtQuick.Controls 1.1 import QtQuick.Layouts 1.1 import UM 1.0 as UM import "../Preferences" PreferencesPage { //: Machine configuration page title. title: qsTr("Machine"); + contents: ColumnLayout { - contents: ScrollView - { anchors.f...
41
1.078947
34
7
e3dcd168ae3bd5596c9f0cb435d53ce28a6c881c
concrete/src/Updater/Migrations/Migrations/Version20180130000000.php
concrete/src/Updater/Migrations/Migrations/Version20180130000000.php
<?php namespace Concrete\Core\Updater\Migrations\Migrations; use Concrete\Core\Entity\File\Version; use Concrete\Core\Updater\Migrations\AbstractMigration; class Version20180130000000 extends AbstractMigration { /** * {@inheritdoc} * * @see \Concrete\Core\Updater\Migrations\AbstractMigration::upgr...
<?php namespace Concrete\Core\Updater\Migrations\Migrations; use Concrete\Core\Entity\File\Version; use Concrete\Core\Updater\Migrations\AbstractMigration; use Concrete\Core\Updater\Migrations\RepeatableMigrationInterface; class Version20180130000000 extends AbstractMigration implements RepeatableMigrationInterface ...
Mark migration 20180130000000 as repeatable
Mark migration 20180130000000 as repeatable
PHP
mit
triplei/concrete5-8,olsgreen/concrete5,mainio/concrete5,biplobice/concrete5,deek87/concrete5,MrKarlDilkington/concrete5,rikzuiderlicht/concrete5,concrete5/concrete5,deek87/concrete5,mlocati/concrete5,olsgreen/concrete5,haeflimi/concrete5,jaromirdalecky/concrete5,hissy/concrete5,MrKarlDilkington/concrete5,triplei/concre...
php
## Code Before: <?php namespace Concrete\Core\Updater\Migrations\Migrations; use Concrete\Core\Entity\File\Version; use Concrete\Core\Updater\Migrations\AbstractMigration; class Version20180130000000 extends AbstractMigration { /** * {@inheritdoc} * * @see \Concrete\Core\Updater\Migrations\Abstrac...
<?php namespace Concrete\Core\Updater\Migrations\Migrations; use Concrete\Core\Entity\File\Version; use Concrete\Core\Updater\Migrations\AbstractMigration; + use Concrete\Core\Updater\Migrations\RepeatableMigrationInterface; - class Version20180130000000 extends AbstractMigration + class Version2018013...
3
0.142857
2
1
437b52a37060631ae6cce3bd2002db0d7143a3f7
gulpfile.js
gulpfile.js
'use strict'; const gulp = require('gulp'); const babel = require('gulp-babel'); gulp.task('default', () => gulp.src('lib/delve.js') .pipe(babel({ presets: ['es2015'] })) .pipe(gulp.dest('dist')) );
'use strict'; const gulp = require('gulp'); const clean = require('gulp-clean'); const babel = require('gulp-babel'); gulp.task('clean-dist', () => gulp.src('dist/', { read: false }) .pipe(clean()) ); gulp.task('default', [ 'clean-dist' ], () => gulp.src('lib/*.js') .pipe(babel({ presets: [ 'es2015' ] })) ...
Add gulp clean & build tasks
Add gulp clean & build tasks
JavaScript
mit
tylerFowler/delvejs
javascript
## Code Before: 'use strict'; const gulp = require('gulp'); const babel = require('gulp-babel'); gulp.task('default', () => gulp.src('lib/delve.js') .pipe(babel({ presets: ['es2015'] })) .pipe(gulp.dest('dist')) ); ## Instruction: Add gulp clean & build tasks ## Code After: 'use strict'; const gulp = requi...
'use strict'; const gulp = require('gulp'); + const clean = require('gulp-clean'); const babel = require('gulp-babel'); - gulp.task('default', () => ? ^^^^^ + gulp.task('clean-dist', () => ? ++++++ ^^ + gulp.src('dist/', { read: false }) + .pipe(clean()) + ); + + gulp.task('de...
12
1.2
9
3
9d9972cc100a462993f9d68cb90dc56e303f5207
source/_posts/20130102-howto-add-github-pages.md
source/_posts/20130102-howto-add-github-pages.md
--- title: >- How to add Github Pages to a project date: 2013-01-02 08:16:00 categories: - HOWTO tags: - git - github - gh-pages --- I occasionally need to add Github Pages (gh-pages) to a project. These instructions are based on a Github help [article](https://help.github.com/articles/creating-project-pages...
--- title: >- How to add GitHub Pages to a project date: 2013-01-02 08:16:00 categories: - HOWTO tags: - git - github - gh-pages --- I occasionally need to add GitHub Pages (gh-pages) to a project. These instructions are based on a GitHub help [article](https://help.github.com/articles/creating-project-pages...
Fix title, add abbrev. point, references
Fix title, add abbrev. point, references
Markdown
apache-2.0
4-20ma/4-20ma.github.io,4-20ma/4-20ma.github.io
markdown
## Code Before: --- title: >- How to add Github Pages to a project date: 2013-01-02 08:16:00 categories: - HOWTO tags: - git - github - gh-pages --- I occasionally need to add Github Pages (gh-pages) to a project. These instructions are based on a Github help [article](https://help.github.com/articles/creati...
--- title: >- - How to add Github Pages to a project ? ^ + How to add GitHub Pages to a project ? ^ date: 2013-01-02 08:16:00 categories: - HOWTO tags: - git - github - gh-pages --- - I occasionally need to add Github Pages (gh-pages) to a project. Th...
11
0.268293
9
2
492fdc48b043f94b7baed13b8fe6ff1b80b4c8b4
scss/typography/_tag.scss
scss/typography/_tag.scss
// // Siimple - minimal css framework for flat and clean websites // Under the MIT LICENSE. // License: https://github.com/siimple/siimple/blob/master/LICENSE.md // Repository: https://github.com/siimple // Website: https://www.siimple.xyz // //Tag variables $siimple-tag-height: 22px; $siimple-tag-font-size: 12p...
// // Siimple - minimal css framework for flat and clean websites // Under the MIT LICENSE. // License: https://github.com/siimple/siimple/blob/master/LICENSE.md // Repository: https://github.com/siimple // Website: https://www.siimple.xyz // @import "siimple-colors/scss/_all.scss"; @import "../_variables.scss"; ...
Rewrite tags mixins to single class
Rewrite tags mixins to single class
SCSS
mit
siimple/siimple,jmjuanes/siimple,jmjuanes/siimple,siimple/siimple
scss
## Code Before: // // Siimple - minimal css framework for flat and clean websites // Under the MIT LICENSE. // License: https://github.com/siimple/siimple/blob/master/LICENSE.md // Repository: https://github.com/siimple // Website: https://www.siimple.xyz // //Tag variables $siimple-tag-height: 22px; $siimple-ta...
// // Siimple - minimal css framework for flat and clean websites // Under the MIT LICENSE. // License: https://github.com/siimple/siimple/blob/master/LICENSE.md // Repository: https://github.com/siimple // Website: https://www.siimple.xyz // + @import "siimple-colors/scss/_all.scss"; + @import "../...
27
0.72973
14
13
204df01c130a5bbeff766bd12db492d3eebee111
app/controllers/refinery/inquiries/admin/inquiries_controller.rb
app/controllers/refinery/inquiries/admin/inquiries_controller.rb
module Refinery module Inquiries module Admin class InquiriesController < ::Refinery::AdminController crudify :'refinery/inquiries/inquiry', :title_attribute => "name", :order => "created_at DESC" helper_method :group_by_date before_filter :find_all...
module Refinery module Inquiries module Admin class InquiriesController < ::Refinery::AdminController crudify :'refinery/inquiries/inquiry', :title_attribute => "name", :order => "created_at DESC" helper_method :group_by_date before_filter :find_all...
Use where(...).count instead of conditions.
Use where(...).count instead of conditions.
Ruby
mit
refinery/refinerycms-inquiries,chrise86/refinerycms-inquiries,chrise86/refinerycms-inquiries,bricesanchez/refinerycms-inquiries,refinery/refinerycms-inquiries
ruby
## Code Before: module Refinery module Inquiries module Admin class InquiriesController < ::Refinery::AdminController crudify :'refinery/inquiries/inquiry', :title_attribute => "name", :order => "created_at DESC" helper_method :group_by_date before_...
module Refinery module Inquiries module Admin class InquiriesController < ::Refinery::AdminController crudify :'refinery/inquiries/inquiry', :title_attribute => "name", :order => "created_at DESC" helper_method :group_by_date ...
2
0.04
1
1
215b44ade86bb6df3d04861592fd4eafecd70bda
roles/common/tasks/main.yml
roles/common/tasks/main.yml
--- - name: Validate Ansible version assert: that: - "{{ ansible_version is defined }}" - "{{ ansible_version.full | version_compare(minimum_ansible_version, '>=') }}" msg: "Your Ansible version is too old. Trellis require at least {{ minimum_ansible_version }}. Your version is {{ ansible_version.fu...
--- - name: Validate Ansible version assert: that: - "{{ ansible_version is defined }}" - "{{ ansible_version.full | version_compare(minimum_ansible_version, '>=') }}" msg: "Your Ansible version is too old. Trellis require at least {{ minimum_ansible_version }}. Your version is {{ ansible_version.fu...
Revert "Added gunzip as common utility."
Revert "Added gunzip as common utility." This reverts commit 3f12d61c39499b8f55d31314e2e83a9277f52264.
YAML
mit
proteusthemes/pt-ops,proteusthemes/pt-ops,proteusthemes/pt-ops
yaml
## Code Before: --- - name: Validate Ansible version assert: that: - "{{ ansible_version is defined }}" - "{{ ansible_version.full | version_compare(minimum_ansible_version, '>=') }}" msg: "Your Ansible version is too old. Trellis require at least {{ minimum_ansible_version }}. Your version is {{ an...
--- - name: Validate Ansible version assert: that: - "{{ ansible_version is defined }}" - "{{ ansible_version.full | version_compare(minimum_ansible_version, '>=') }}" msg: "Your Ansible version is too old. Trellis require at least {{ minimum_ansible_version }}. Your version is {{ ansi...
1
0.022727
0
1
c9e14c0e00db32301cea0468a4d2101fa0b8077f
lib/itunes_parser.rb
lib/itunes_parser.rb
require 'rubygems' require 'library' class Itunes_parser @lib = ItunesParser::Library.new # @result is a hash @result = @lib.parse(File.read(File.dirname(__FILE__) + './test/test_library.xml')) puts @result.inspect puts @result['first_song'].inspect puts "library version #{@result['version']}" p...
require 'rubygems' require 'library' class Itunes_parser @lib = ItunesParser::Library.new # @parsed_lib is a hash @parsed_lib = @lib.parse(File.read(File.dirname(__FILE__) + './test/test_library.xml')) puts @parsed_lib.inspect puts @parsed_lib['first_song'].inspect puts "library version #{@parsed_l...
Refactor rename @result to @parsed_lib.
Refactor rename @result to @parsed_lib.
Ruby
mit
beepscore/bs_itunes_parser
ruby
## Code Before: require 'rubygems' require 'library' class Itunes_parser @lib = ItunesParser::Library.new # @result is a hash @result = @lib.parse(File.read(File.dirname(__FILE__) + './test/test_library.xml')) puts @result.inspect puts @result['first_song'].inspect puts "library version #{@result['...
require 'rubygems' require 'library' class Itunes_parser @lib = ItunesParser::Library.new - # @result is a hash ? ^^ ^ + # @parsed_lib is a hash ? ++ + ^^ ^^ - @result = @lib.parse(File.read(File.dirname(__FILE__) + './test/test_library.xml')) ? ^^ ^ + @parsed_lib = @lib.p...
28
1
15
13
f155225310b9aba098fb25870cebca308de87f96
metadata/org.droidupnp.txt
metadata/org.droidupnp.txt
Categories:Multimedia License:GPLv3 Web Site:https://trishika.github.io/DroidUPnP/ Source Code:https://github.com/trishika/DroidUPnP Issue Tracker:https://github.com/trishika/DroidUPnP/issues Auto Name:DroidUPnP Summary:Play files off the network Description: Discover your home UPnP device, content provider, connected...
Categories:Multimedia License:GPLv3 Web Site:https://trishika.github.io/DroidUPnP/ Source Code:https://github.com/trishika/DroidUPnP Issue Tracker:https://github.com/trishika/DroidUPnP/issues Auto Name:DroidUPnP Summary:Play files off the network Description: Discover your home UPnP device, content provider, connected...
Fix build; disabled: deps also rely on 4thline.
DroidUPnP: Fix build; disabled: deps also rely on 4thline.
Text
agpl-3.0
f-droid/fdroiddata,f-droid/fdroiddata,f-droid/fdroid-data
text
## Code Before: Categories:Multimedia License:GPLv3 Web Site:https://trishika.github.io/DroidUPnP/ Source Code:https://github.com/trishika/DroidUPnP Issue Tracker:https://github.com/trishika/DroidUPnP/issues Auto Name:DroidUPnP Summary:Play files off the network Description: Discover your home UPnP device, content pro...
Categories:Multimedia License:GPLv3 Web Site:https://trishika.github.io/DroidUPnP/ Source Code:https://github.com/trishika/DroidUPnP Issue Tracker:https://github.com/trishika/DroidUPnP/issues Auto Name:DroidUPnP Summary:Play files off the network Description: Discover your home UPnP device, content...
6
0.153846
5
1
317bcfcf7081a6a461411d658bc0cf8eaedc0026
tests/Router/PrefixRouteTest.php
tests/Router/PrefixRouteTest.php
<?php declare(strict_types=1); namespace Tests\Router; use Onion\Framework\Router\PrefixRoute; class PrefixRouteTest extends \PHPUnit_Framework_TestCase { private $route; public function setUp() { $this->route = new PrefixRoute('/foo'); } public function testMatch() { $this->a...
<?php declare(strict_types=1); namespace Tests\Router; use Onion\Framework\Router\PrefixRoute; use Prophecy\Argument\Token\AnyValueToken; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\UriInterface; use Psr\Http\Server\RequestHandlerInterface; class PrefixRou...
Add test for prefix handling
Add test for prefix handling
PHP
mit
phOnion/framework
php
## Code Before: <?php declare(strict_types=1); namespace Tests\Router; use Onion\Framework\Router\PrefixRoute; class PrefixRouteTest extends \PHPUnit_Framework_TestCase { private $route; public function setUp() { $this->route = new PrefixRoute('/foo'); } public function testMatch() { ...
<?php declare(strict_types=1); namespace Tests\Router; use Onion\Framework\Router\PrefixRoute; + use Prophecy\Argument\Token\AnyValueToken; + use Psr\Http\Message\ResponseInterface; + use Psr\Http\Message\ServerRequestInterface; + use Psr\Http\Message\UriInterface; + use Psr\Http\Server\RequestHandlerInterface...
30
1.5
30
0
c7221186d43306002afbb541b6943b793d9e3ea7
index.js
index.js
// Start by requiring IOU to shim up the Promise constructor. var PROC = require('child_process'), Promise = require('iou').Promise; exports.exec = function exec(command, options) { options = options || Object.create(null); var promise, child; promise = new Promise(function (resolve) { child = PROC.exec...
// Start by requiring IOU to shim up the Promise constructor. var PROC = require('child_process'), Promise = require('iou').Promise; exports.exec = function exec(command) { var promise, child; promise = new Promise(function (resolve) { child = PROC.exec(command, function (err, stdout, stderr) { res ...
Remove options arg from exec.
Remove options arg from exec. modified: index.js
JavaScript
mit
kixxauth/command_runner
javascript
## Code Before: // Start by requiring IOU to shim up the Promise constructor. var PROC = require('child_process'), Promise = require('iou').Promise; exports.exec = function exec(command, options) { options = options || Object.create(null); var promise, child; promise = new Promise(function (resolve) { c...
// Start by requiring IOU to shim up the Promise constructor. var PROC = require('child_process'), Promise = require('iou').Promise; - exports.exec = function exec(command, options) { ? --------- + exports.exec = function exec(command) { - options = options || ...
7
0.159091
5
2
712bb348aa6017fbf8796ddefe284c1d5c007388
README.md
README.md
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/genius/blocker`. To experiment with that code, run `bin/console` for an interactive prompt. TODO: Delete this and the text above, and describe your gem ...
Genius Blocker is a piece of Rack Middleware designed to prevent unwanted annotations by [News Genius](http://news.genius.com/). The middleware injects a small bit of JavaScript code into the `<head></head>` of a website in order to force a redirect to the original website whenever anyone attempts to prepend `genius.i...
Add basic description and usage instructions
Add basic description and usage instructions
Markdown
mit
marlabrizel/genius-blocker,marlabrizel/genius-blocker
markdown
## Code Before: Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/genius/blocker`. To experiment with that code, run `bin/console` for an interactive prompt. TODO: Delete this and the text above, and de...
+ Genius Blocker is a piece of Rack Middleware designed to prevent unwanted + annotations by [News Genius](http://news.genius.com/). - Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/genius/blocker`....
21
0.525
13
8
3bcf862e97d24709b577176068b2f01847483702
app/templates/index.hbs
app/templates/index.hbs
{{currentPath}} <div class="row"> <div class="col-md-12"> <form role="form" {{action search on="submit"}}> <div class="form-group"> {{input value=noteSearch class="form-control" placeholder="Tags"}} </div> </form> </div> </div> <div class="row"> <div...
<div class="row"> <div class="col-md-12"> <form role="form" {{action search on="submit"}}> <div class="form-group"> {{input value=noteSearch class="form-control" placeholder="Tags"}} </div> </form> </div> </div> <div class="row"> <div class="col-md-12...
Remove test text that should of not been submitted
Remove test text that should of not been submitted
Handlebars
mit
corsen2000/noted-client
handlebars
## Code Before: {{currentPath}} <div class="row"> <div class="col-md-12"> <form role="form" {{action search on="submit"}}> <div class="form-group"> {{input value=noteSearch class="form-control" placeholder="Tags"}} </div> </form> </div> </div> <div class...
- {{currentPath}} - <div class="row"> <div class="col-md-12"> <form role="form" {{action search on="submit"}}> <div class="form-group"> {{input value=noteSearch class="form-control" placeholder="Tags"}} </div> </form> </div> </div> ...
2
0.058824
0
2
0269084856a220ecf6aae54b8b998c14c2e2a3fa
app/controllers/districts_controller.rb
app/controllers/districts_controller.rb
class DistrictsController < ApplicationController before_action :set_district, only: [:show, :edit, :update, :destroy] # GET /districts # GET /districts.json def index @districts = District.all end # GET /districts/1 # GET /districts/1.json def show end # GET /districts/new def new @dis...
class DistrictsController < ApplicationController before_action :set_district, only: [:show, :edit, :update, :destroy] # GET /districts # GET /districts.json def index @districts = District.all end # GET /districts/1 # GET /districts/1.json def show @schools = @district.schools end priv...
Add schools instance variable to show method, remove new, edit, update, create destroy methods
Add schools instance variable to show method, remove new, edit, update, create destroy methods
Ruby
mit
fma2/school-visits-tool,fma2/school-visits-tool
ruby
## Code Before: class DistrictsController < ApplicationController before_action :set_district, only: [:show, :edit, :update, :destroy] # GET /districts # GET /districts.json def index @districts = District.all end # GET /districts/1 # GET /districts/1.json def show end # GET /districts/new ...
class DistrictsController < ApplicationController before_action :set_district, only: [:show, :edit, :update, :destroy] # GET /districts # GET /districts.json def index @districts = District.all end # GET /districts/1 # GET /districts/1.json def show + @schools = @distri...
52
0.702703
2
50
20147b8b8a80ef8ab202d916bf1cdfb67d4753d3
SelfTests.py
SelfTests.py
import os import unittest from Logger import Logger class TestLogger(unittest.TestCase): def test_file_handling(self): testLog = Logger("testLog") ## Check if program can create and open file self.assertTrue(testLog.opened) returns = testLog.close() ## Check if logger correc...
import os import unittest from Logger import Logger class TestLogger(unittest.TestCase): def test_file_handling(self): testLog = Logger("testLog") ## Check if program can create and open file self.assertTrue(testLog.opened) returns = testLog.close() ## Check if logger correc...
Test of logger is testing an testPhrase instead of two manually writen strings
Test of logger is testing an testPhrase instead of two manually writen strings Signed-off-by: TeaPackCZ <a78d8486eff6e2cb08b2d9907449b92187b8e215@gmail.com>
Python
mit
TeaPackCZ/RobotZed,TeaPackCZ/RobotZed
python
## Code Before: import os import unittest from Logger import Logger class TestLogger(unittest.TestCase): def test_file_handling(self): testLog = Logger("testLog") ## Check if program can create and open file self.assertTrue(testLog.opened) returns = testLog.close() ## Check ...
import os import unittest from Logger import Logger class TestLogger(unittest.TestCase): def test_file_handling(self): testLog = Logger("testLog") ## Check if program can create and open file self.assertTrue(testLog.opened) returns = testLog.close() ## ...
6
0.166667
4
2
78cd332bc153bf4ff01f92b272c1cafecd26b35c
src/internal/solver/fixtures/002_020_temperature.json
src/internal/solver/fixtures/002_020_temperature.json
{ "system": { "floorplan": "fixtures/002.flp", "configuration": "fixtures/hotspot.config", "specification": "fixtures/002_020.tgff", "ambience": 318.15 }, "target": { "name": "maximal-temperature", "uncertainty": { "name": "marginal", "deviation": 0.2, "distribution": "Beta(1, 1)", "corrLeng...
{ "system": { "floorplan": "fixtures/002.flp", "configuration": "fixtures/hotspot.config", "specification": "fixtures/002_020.tgff", "ambience": 318.15 }, "target": { "name": "maximal-temperature", "uncertainty": { "name": "marginal", "deviation": 0.2, "distribution": "Beta(1, 1)", "corrLeng...
Clean up a configuration file
Clean up a configuration file
JSON
mit
turing-complete/laboratory,turing-complete/laboratory,turing-complete/laboratory
json
## Code Before: { "system": { "floorplan": "fixtures/002.flp", "configuration": "fixtures/hotspot.config", "specification": "fixtures/002_020.tgff", "ambience": 318.15 }, "target": { "name": "maximal-temperature", "uncertainty": { "name": "marginal", "deviation": 0.2, "distribution": "Beta(1, 1...
{ "system": { "floorplan": "fixtures/002.flp", "configuration": "fixtures/hotspot.config", "specification": "fixtures/002_020.tgff", "ambience": 318.15 }, "target": { "name": "maximal-temperature", "uncertainty": { "name": "marginal", "deviation": 0.2, "distribution"...
3
0.103448
1
2
0c387d03855be810c06b4f1cb38cbaca35298e36
app/controllers/manage/work_experiences_controller.rb
app/controllers/manage/work_experiences_controller.rb
module Manage class WorkExperiencesController < ManageController before_action :set_work_experience, only: [:edit, :update, :destroy] respond_to :html, :json def index @work_experiences = WorkExperience.all respond_with(@work_experiences) end def new @work_experience = WorkExp...
module Manage class WorkExperiencesController < ManageController before_action :set_work_experience, only: [:edit, :update, :destroy] respond_to :html, :json def index @work_experiences = WorkExperience.all respond_with(@work_experiences) end def new @work_experience = WorkExp...
Fix post-action redirects in Manage::WorkExperiences
Fix post-action redirects in Manage::WorkExperiences Signed-off-by: Max Fierke <0706025b2bbcec1ed8d64822f4eccd96314938d0@maxfierke.com>
Ruby
apache-2.0
maxfierke/resumis,maxfierke/resumis,maxfierke/resumis,maxfierke/resumis
ruby
## Code Before: module Manage class WorkExperiencesController < ManageController before_action :set_work_experience, only: [:edit, :update, :destroy] respond_to :html, :json def index @work_experiences = WorkExperience.all respond_with(@work_experiences) end def new @work_expe...
module Manage class WorkExperiencesController < ManageController before_action :set_work_experience, only: [:edit, :update, :destroy] respond_to :html, :json def index @work_experiences = WorkExperience.all respond_with(@work_experiences) end def new ...
6
0.130435
3
3
b357894f852ce2189e891a430943db878c024257
app/views/shared/_entities_search.html.haml
app/views/shared/_entities_search.html.haml
.search - form_tag(:controller=>:relations, :action=>:entities) do %table %tr %td.label=tc("search") %td.field=text_field_tag :key, session[:entity_key] %td.submit=submit_tag tg("search_go")
.search - form_tag({:controller=>:relations, :action=>:entities}, :method=>:get) do %table %tr %td.label=tc("search") %td.field=text_field_tag :key, params[:key]||session[:entity_key] %td.submit=submit_tag tg("search_go"), :name=>nil
Set entity search in get mode in order to simplify previous process in web navigation
Set entity search in get mode in order to simplify previous process in web navigation git-svn-id: f16a2f23d171dee4464daf87d70b3f1ae0981068@1548 67a09383-3dfa-4221-8551-890bac9c277c
Haml
agpl-3.0
gaapt/ekylibre,danimaribeiro/ekylibre,ekylibre/ekylibre,GPCsolutions/ekylibre,danimaribeiro/ekylibre,danimaribeiro/ekylibre,gaapt/ekylibre,ekylibre/ekylibre,GPCsolutions/ekylibre,GPCsolutions/ekylibre,GPCsolutions/ekylibre,gaapt/ekylibre,ekylibre/ekylibre,danimaribeiro/ekylibre,gaapt/ekylibre,ekylibre/ekylibre,ekylibre...
haml
## Code Before: .search - form_tag(:controller=>:relations, :action=>:entities) do %table %tr %td.label=tc("search") %td.field=text_field_tag :key, session[:entity_key] %td.submit=submit_tag tg("search_go") ## Instruction: Set entity search in get mode in order to simplify previous ...
.search - - form_tag(:controller=>:relations, :action=>:entities) do + - form_tag({:controller=>:relations, :action=>:entities}, :method=>:get) do ? + ++++++++++++++++ %table %tr %td.label=tc("search") - %td.field=text_field_t...
6
0.857143
3
3
f77bbda7f4eea7d8324638fd1c98a64884efef14
test/output-app/resolvers/index.js
test/output-app/resolvers/index.js
import { ObjectId } from 'mongodb'; import { GraphQLScalarType } from 'graphql'; import { Kind } from 'graphql/language'; import merge from 'lodash.merge'; const resolvers = {}; resolvers.ObjID = new GraphQLScalarType({ name: 'ObjID', description: 'Id representation, based on Mongo Object Ids', parseValue(value...
import { ObjectId } from 'mongodb'; import { GraphQLScalarType } from 'graphql'; import { Kind } from 'graphql/language'; import { merge } from 'lodash'; const resolvers = {}; resolvers.ObjID = new GraphQLScalarType({ name: 'ObjID', description: 'Id representation, based on Mongo Object Ids', parseValue(value) ...
Fix issue with output app
Fix issue with output app
JavaScript
mit
tmeasday/create-graphql-server,tobkle/create-graphql-server,tmeasday/create-graphql-server,tobkle/create-graphql-server
javascript
## Code Before: import { ObjectId } from 'mongodb'; import { GraphQLScalarType } from 'graphql'; import { Kind } from 'graphql/language'; import merge from 'lodash.merge'; const resolvers = {}; resolvers.ObjID = new GraphQLScalarType({ name: 'ObjID', description: 'Id representation, based on Mongo Object Ids', ...
import { ObjectId } from 'mongodb'; import { GraphQLScalarType } from 'graphql'; import { Kind } from 'graphql/language'; - import merge from 'lodash.merge'; ? ------ + import { merge } from 'lodash'; ? ++ ++ const resolvers = {}; resolvers.ObjID = new GraphQLScalar...
2
0.064516
1
1
09160fb35be6212d41540c7503c98882f0bc74c8
docs/app/pages/UiElements/TextSelection/examples/SelectionExample.vue
docs/app/pages/UiElements/TextSelection/examples/SelectionExample.vue
<template> <div> <h2>Select any text to see the selection background</h2> <p>This text will follow the default color of the documentation, which is a nice red color.</p> <md-content md-theme="selection-black"> <p>This one will get a slick black background when selected, because the parent theme hav...
<template> <div> <h2>Select any text to see the selection background</h2> <p>This text will follow the default color of the documentation, which is a nice red color.</p> <md-content md-theme="selection-black"> <p>This one will get a slick black background when selected, because the parent theme hav...
Revert "fix: remove global scoped css affecting all md-content elements"
Revert "fix: remove global scoped css affecting all md-content elements" This reverts commit 5fa0d52ef96400e34493076ab2fef6ad643be136.
Vue
mit
vuematerial/vue-material,marcosmoura/vue-material,marcosmoura/vue-material,vuematerial/vue-material,VdustR/vue-material,VdustR/vue-material
vue
## Code Before: <template> <div> <h2>Select any text to see the selection background</h2> <p>This text will follow the default color of the documentation, which is a nice red color.</p> <md-content md-theme="selection-black"> <p>This one will get a slick black background when selected, because the ...
<template> <div> <h2>Select any text to see the selection background</h2> <p>This text will follow the default color of the documentation, which is a nice red color.</p> <md-content md-theme="selection-black"> <p>This one will get a slick black background when selected, because the pa...
2
0.047619
0
2
43990a610d3bb59a347bcb4e14c46ea697558e11
tests/TestIODevice.cpp
tests/TestIODevice.cpp
void TestIODevice::fakeWrite(const QByteArray& data) { readStore.append(data); emit readyRead(); } qint64 TestIODevice::readData(char* data, qint64 maxSize) { auto readData = readStore.left(maxSize); //std::cerr << "Read " << readData.size() << " byte(s) from mock IO device, requested " << maxSize << ...
void TestIODevice::fakeWrite(const QByteArray& data) { readStore.append(data); emit readyRead(); } qint64 TestIODevice::readData(char* data, qint64 maxSize) { auto readData = readStore.left(maxSize); //std::cerr << "Read " << readData.size() << " byte(s) from mock IO device, requested " << maxSize << ...
Use memcpy, not qstrcpy, when copying data in the test device
Use memcpy, not qstrcpy, when copying data in the test device
C++
mit
Thonik/rainback
c++
## Code Before: void TestIODevice::fakeWrite(const QByteArray& data) { readStore.append(data); emit readyRead(); } qint64 TestIODevice::readData(char* data, qint64 maxSize) { auto readData = readStore.left(maxSize); //std::cerr << "Read " << readData.size() << " byte(s) from mock IO device, requested ...
void TestIODevice::fakeWrite(const QByteArray& data) { readStore.append(data); emit readyRead(); } qint64 TestIODevice::readData(char* data, qint64 maxSize) { auto readData = readStore.left(maxSize); //std::cerr << "Read " << readData.size() << " byte(s) from mock IO device, requ...
2
0.08
1
1
60b1dc9ea217e40a3a78c2bb76bcabaf0e548ae2
docs/src/main/asciidoc/all-config.adoc
docs/src/main/asciidoc/all-config.adoc
//// This guide is maintained in the main Quarkus repository and pull requests should be submitted there: https://github.com/quarkusio/quarkus/tree/master/docs/src/main/asciidoc //// = Quarkus - All configuration options include::./attributes.adoc[] include::{generated-dir}/config/all-config.adoc[opts=optional]
--- layout: guides-configuration-reference --- //// This guide is maintained in the main Quarkus repository and pull requests should be submitted there: https://github.com/quarkusio/quarkus/tree/master/docs/src/main/asciidoc //// = Quarkus - All configuration options include::./attributes.adoc[] include::{generated-d...
Use the guides without toc layout
Use the guides without toc layout
AsciiDoc
apache-2.0
quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus
asciidoc
## Code Before: //// This guide is maintained in the main Quarkus repository and pull requests should be submitted there: https://github.com/quarkusio/quarkus/tree/master/docs/src/main/asciidoc //// = Quarkus - All configuration options include::./attributes.adoc[] include::{generated-dir}/config/all-config.adoc[opts...
+ --- + layout: guides-configuration-reference + --- //// This guide is maintained in the main Quarkus repository and pull requests should be submitted there: https://github.com/quarkusio/quarkus/tree/master/docs/src/main/asciidoc //// = Quarkus - All configuration options include::./attributes.adoc[] ...
3
0.3
3
0
6bf341e9b348ee0de6133f220056a49bd6a4a180
test/unit/lib/rake_task_test.rb
test/unit/lib/rake_task_test.rb
require 'test_helper' class RakeTaskTest < ActiveSupport::TestCase test 'regression test for rake reminders' do assert_equal 1, Project.projects_to_remind.size result = system 'rake reminders >/dev/null' assert result assert_equal 0, Project.projects_to_remind.size end end
require 'test_helper' require 'database_cleaner' DatabaseCleaner.strategy = :transaction class RakeTaskTest < ActiveSupport::TestCase # When using DatabaseCleaner, transactional fixtures must be off. self.use_transactional_tests = false setup do # Start DatabaseCleaner before each test. DatabaseCleaner....
Fix seed issue with rakeTaskTest regression test
Fix seed issue with rakeTaskTest regression test Signed-off-by: Jason Dossett <e6f895edd39634df23774f0615e338f58a73f02c@utdallas.edu>
Ruby
mit
wanganyv/cii-best-practices-badge,yannickmoy/cii-best-practices-badge,jdossett/cii-best-practices-badge,linuxfoundation/cii-best-practices-badge,coreinfrastructure/best-practices-badge,taylorcoursey/cii-best-practices-badge,taylorcoursey/cii-best-practices-badge,jdossett/cii-best-practices-badge,jdossett/cii-best-pract...
ruby
## Code Before: require 'test_helper' class RakeTaskTest < ActiveSupport::TestCase test 'regression test for rake reminders' do assert_equal 1, Project.projects_to_remind.size result = system 'rake reminders >/dev/null' assert result assert_equal 0, Project.projects_to_remind.size end end ## Instr...
require 'test_helper' + require 'database_cleaner' + DatabaseCleaner.strategy = :transaction class RakeTaskTest < ActiveSupport::TestCase + # When using DatabaseCleaner, transactional fixtures must be off. + self.use_transactional_tests = false + + setup do + # Start DatabaseCleaner before each test. ...
15
1.5
15
0
9586060e7c81439caa7c267ec303c41b4e2bfadd
README.txt
README.txt
Creates a Document Collection Changefile for Solve for All based on Javadocs. Getting the OpenJDK docs (redistributable it seems) in Ubuntu: sudo apt-get update sudo apt-get install openjdk-7-doc ruby main.rb /usr/lib/jvm/java-7-openjdk-amd64/docs/api should output jdk7-doc.json.bz2 which can then be uploaded. Also...
Creates a Semantic Data Collection Changefile for Solve for All based on Javadocs. Getting the OpenJDK docs (redistributable it seems) in Ubuntu: sudo apt-get update sudo apt-get install openjdk-7-doc ruby main.rb /usr/lib/jvm/java-7-openjdk-amd64/docs/api should output jdk7-doc.json.bz2 which can then be uploaded. ...
Document Collection => Semantic Data Collection
Document Collection => Semantic Data Collection
Text
apache-2.0
jtsay362/javadoc-populator
text
## Code Before: Creates a Document Collection Changefile for Solve for All based on Javadocs. Getting the OpenJDK docs (redistributable it seems) in Ubuntu: sudo apt-get update sudo apt-get install openjdk-7-doc ruby main.rb /usr/lib/jvm/java-7-openjdk-amd64/docs/api should output jdk7-doc.json.bz2 which can then be...
- Creates a Document Collection Changefile for Solve for All based on Javadocs. ? ^^^^ ^ + Creates a Semantic Data Collection Changefile for Solve for All based on Javadocs. ? ^^ ^ +++++++ Getting the OpenJDK docs (redistributable it seems) in Ubuntu: sudo apt-get update sudo apt-get ins...
4
0.307692
2
2
6d80352ef1a397a9bd17e2f767d7f3a13c2b5d88
tests/Functional/InstallTest.php
tests/Functional/InstallTest.php
<?php use Valet\Tests\Functional\FunctionalTestCase; /** * @group functional * @group acceptance */ class InstallTest extends FunctionalTestCase { public function test_valet_is_running_after_install() { $response = \Httpful\Request::get('http://test.dev')->send(); $this->assertEquals(404, ...
<?php use Valet\Tests\Functional\FunctionalTestCase; /** * @group functional * @group acceptance */ class InstallTest extends FunctionalTestCase { public function test_valet_is_running_after_install() { $response = \Httpful\Request::get('http://test.dev')->send(); $this->assertEquals(404, ...
Test domains are resolved correctly
Test domains are resolved correctly
PHP
mit
cpriego/valet-linux,cpriego/valet-linux,cpriego/valet-linux
php
## Code Before: <?php use Valet\Tests\Functional\FunctionalTestCase; /** * @group functional * @group acceptance */ class InstallTest extends FunctionalTestCase { public function test_valet_is_running_after_install() { $response = \Httpful\Request::get('http://test.dev')->send(); $this->as...
<?php use Valet\Tests\Functional\FunctionalTestCase; /** * @group functional * @group acceptance */ class InstallTest extends FunctionalTestCase { public function test_valet_is_running_after_install() { $response = \Httpful\Request::get('http://test.dev')->send(); ...
7
0.388889
7
0
25576fc50507ea127bd6c0949179567a35715e0c
CONTRIBUTING.md
CONTRIBUTING.md
JBoss AS Quickstarts ==================== Quickstarts (or examples, or samples) for JBoss AS. There are a number of rules for quickstarts: * Each quickstart should have a unique name, this enables a user to quickly identify each quickstart * A quickstart should have a simple build that the user can quickly understan...
JBoss AS Quickstarts ==================== Quickstarts (or examples, or samples) for JBoss AS. There are a number of rules for quickstarts: * Each quickstart should have a unique name, this enables a user to quickly identify each quickstart * A quickstart should have a simple build that the user can quickly understan...
Add note about code formatting.
Add note about code formatting.
Markdown
apache-2.0
trepel/jboss-eap-quickstarts,jgisler/jboss-eap-quickstarts,luksa/jboss-eap-quickstarts,sherlockgomes/quickstart,filippocala/openshifttestdemo,ppolcz/quickstart,hguerrero/jboss-eap-quickstarts,rh-asharma/jboss-eap-quickstarts,DLT-Solutions-JBoss/jboss-eap-quickstarts,eduarddedu/quickstart,muhd7rosli/quickstart,rhatlapa/...
markdown
## Code Before: JBoss AS Quickstarts ==================== Quickstarts (or examples, or samples) for JBoss AS. There are a number of rules for quickstarts: * Each quickstart should have a unique name, this enables a user to quickly identify each quickstart * A quickstart should have a simple build that the user can q...
JBoss AS Quickstarts ==================== Quickstarts (or examples, or samples) for JBoss AS. There are a number of rules for quickstarts: * Each quickstart should have a unique name, this enables a user to quickly identify each quickstart * A quickstart should have a simple build that the user can qui...
1
0.045455
1
0
fa4bd2b2a8a712f66ec9894ca4438678ee337f94
CMakeLists.txt
CMakeLists.txt
cmake_minimum_required(VERSION 2.8.11) project(SGEngine) # Start with modern standard: C++14, or C++1y if using APPLE # TODO Better check for C++14 compiler support, and fallback/failure. if (APPLE) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++14") else() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++1y") e...
cmake_minimum_required(VERSION 2.8.11) project(SGEngine) # Start with modern standard: C++14, or C++1y include(CheckCXXCompilerFlag) CHECK_CXX_COMPILER_FLAG("-std=c++14" COMPILER_SUPPORTS_CXX14) CHECK_CXX_COMPILER_FLAG("-std=c++1y" COMPILER_SUPPORTS_CXX1Y) if(COMPILER_SUPPORTS_CXX14) set(CMAKE_CXX_FLAGS "${CMAKE_CXX...
Add better C++14 check and fail on no support
Add better C++14 check and fail on no support
Text
bsd-3-clause
stuhacking/SGEngine-Cpp,stuhacking/SGEngine-Cpp,stuhacking/SGEngine-Cpp
text
## Code Before: cmake_minimum_required(VERSION 2.8.11) project(SGEngine) # Start with modern standard: C++14, or C++1y if using APPLE # TODO Better check for C++14 compiler support, and fallback/failure. if (APPLE) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++14") else() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}...
cmake_minimum_required(VERSION 2.8.11) project(SGEngine) - # Start with modern standard: C++14, or C++1y if using APPLE ? --------------- + # Start with modern standard: C++14, or C++1y - # TODO Better check for C++14 compiler support, and fallback/failure. - if (APP...
14
0.538462
9
5
7dd228d7eaad6b1f37ff3c4d954aebe0ffa99170
tests/test_targets/test_targets.py
tests/test_targets/test_targets.py
import os from unittest import TestCase from project_generator_definitions.definitions import ProGenTargets class TestAllTargets(TestCase): """test all targets""" def setUp(self): self.progen_target = ProGenTargets() self.targets_list = self.progen_target.get_targets() def test_targets...
from unittest import TestCase from project_generator_definitions.definitions import ProGenTargets class TestAllTargets(TestCase): """test all targets""" def setUp(self): self.progen_target = ProGenTargets() self.targets_list = self.progen_target.get_targets() def test_targets_validity(...
Test - targets test fix mcu validity indexes
Test - targets test fix mcu validity indexes
Python
apache-2.0
project-generator/project_generator_definitions,0xc0170/project_generator_definitions,ohagendorf/project_generator_definitions
python
## Code Before: import os from unittest import TestCase from project_generator_definitions.definitions import ProGenTargets class TestAllTargets(TestCase): """test all targets""" def setUp(self): self.progen_target = ProGenTargets() self.targets_list = self.progen_target.get_targets() ...
- import os from unittest import TestCase from project_generator_definitions.definitions import ProGenTargets class TestAllTargets(TestCase): """test all targets""" def setUp(self): self.progen_target = ProGenTargets() self.targets_list = self.progen_target.get_targe...
9
0.346154
5
4
e1c984d2a7d445486144d3aeeba200ffb8d9f06e
timetracker/templates/base.html
timetracker/templates/base.html
<!DOCTYPE html> <html> <head> <title>{% block title %}{% endblock %}</title> <link href="{{ STATIC_URL }}stylesheet.css" type="text/css" rel="stylesheet" /> <link type="text/css" href="{{ STATIC_URL }}jquery/css/ui-darkness/jquery-ui-1.8.18.custom.css" rel="stylesheet" /> {% block header %} {% endblo...
<!DOCTYPE html> <html> <head> <title>{% block title %}{% endblock %}</title> <link href="{{ STATIC_URL }}stylesheet.css" type="text/css" rel="stylesheet" /> <link type="text/css" href="{{ STATIC_URL }}jquery/css/ui-darkness/jquery-ui-1.8.18.custom.css" rel="stylesheet" /> {% block header %} {% endblo...
Put the validation available on all pages
Put the validation available on all pages
HTML
bsd-3-clause
AeroNotix/django-timetracker,AeroNotix/django-timetracker,AeroNotix/django-timetracker
html
## Code Before: <!DOCTYPE html> <html> <head> <title>{% block title %}{% endblock %}</title> <link href="{{ STATIC_URL }}stylesheet.css" type="text/css" rel="stylesheet" /> <link type="text/css" href="{{ STATIC_URL }}jquery/css/ui-darkness/jquery-ui-1.8.18.custom.css" rel="stylesheet" /> {% block header ...
<!DOCTYPE html> <html> <head> <title>{% block title %}{% endblock %}</title> <link href="{{ STATIC_URL }}stylesheet.css" type="text/css" rel="stylesheet" /> <link type="text/css" href="{{ STATIC_URL }}jquery/css/ui-darkness/jquery-ui-1.8.18.custom.css" rel="stylesheet" /> {% block header %}...
1
0.041667
1
0
00a5e2ede92aa1ac0fe247d04cee9e2010b44876
README.md
README.md
Welcome to the techy heart of **International summer festival in Palekh!** Check the website by clicking this huge image ⤵️ [![Apple Feast](http://fest.artpalekh.ru/tile-wide.png)](http://fest.artpalekh.ru/) And you will find out detailed information about event, participants and schedule. ## Powered by - 🔺 `Angu...
Welcome to the techy heart of **International summer festival in Palekh!** ## What's it about? The festival desigined for international artists 🎨 and musicians 🎸. These guys spend wabout two weeks in the City of Palekh and in a rural area. During three final days artists showcase 🎂 their beautiful paints they cre...
Improve readme with more human information
Improve readme with more human information
Markdown
mit
usehotkey/palekhfest,usehotkey/palekhfest
markdown
## Code Before: Welcome to the techy heart of **International summer festival in Palekh!** Check the website by clicking this huge image ⤵️ [![Apple Feast](http://fest.artpalekh.ru/tile-wide.png)](http://fest.artpalekh.ru/) And you will find out detailed information about event, participants and schedule. ## Power...
Welcome to the techy heart of **International summer festival in Palekh!** + + ## What's it about? + + The festival desigined for international artists 🎨 and musicians 🎸. + These guys spend wabout two weeks in the City of Palekh and in a rural area. + During three final days artists showcase 🎂 their beautiful...
15
1
14
1
32730d4b0584982096d880aec96eee0c4e616445
assets/scss/mixins/_screenreader.scss
assets/scss/mixins/_screenreader.scss
@mixin sr-only { border: 0; clip: rect(0, 0, 0, 0); clip-path: inset(50%); height: 1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px; } @mixin sr-only-focusable { &:active, &:focus { clip: auto; clip-path: none; height: auto; overflow: visible;...
@mixin sr-only { border: 0; clip: rect(0, 0, 0, 0); height: 1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px; } @mixin sr-only-focusable { &:active, &:focus { clip: auto; height: auto; overflow: visible; position: static; white-space: normal...
Update `.sr-only` mixin and utility
Update `.sr-only` mixin and utility
SCSS
mit
Daemonite/material,Daemonite/material,Daemonite/material
scss
## Code Before: @mixin sr-only { border: 0; clip: rect(0, 0, 0, 0); clip-path: inset(50%); height: 1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px; } @mixin sr-only-focusable { &:active, &:focus { clip: auto; clip-path: none; height: auto; ov...
@mixin sr-only { border: 0; clip: rect(0, 0, 0, 0); - clip-path: inset(50%); height: 1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px; } @mixin sr-only-focusable { &:active, &:focus { clip: auto; - clip-path: none; ...
2
0.083333
0
2
6765cce6b09dbf8957cc731046651388ef1b861e
gremlin-groovy/src/main/resources/com/tinkerpop/gremlin/groovy/console/commands/UseCommand.properties
gremlin-groovy/src/main/resources/com/tinkerpop/gremlin/groovy/console/commands/UseCommand.properties
command.description=Import a Maven library into Gremlin command.usage=group module version command.help=Import a Maven library into Gremlin
command.description=Import a Maven library into Gremlin command.usage=[now|install] group module version command.help=Import a Maven library into Gremlin. If using "now" then the imported libs will only be good for the session. To have them appear on each run of the Console then use "install". In some cases, a depen...
Update help info for :use
Update help info for :use
INI
apache-2.0
BrynCooke/incubator-tinkerpop,pluradj/incubator-tinkerpop,RedSeal-co/incubator-tinkerpop,mpollmeier/tinkerpop3,gdelafosse/incubator-tinkerpop,robertdale/tinkerpop,apache/incubator-tinkerpop,apache/incubator-tinkerpop,apache/tinkerpop,jorgebay/tinkerpop,vtslab/incubator-tinkerpop,Lab41/tinkerpop3,gdelafosse/incubator-ti...
ini
## Code Before: command.description=Import a Maven library into Gremlin command.usage=group module version command.help=Import a Maven library into Gremlin ## Instruction: Update help info for :use ## Code After: command.description=Import a Maven library into Gremlin command.usage=[now|install] group module version c...
command.description=Import a Maven library into Gremlin - command.usage=group module version + command.usage=[now|install] group module version ? ++++++++++++++ - command.help=Import a Maven library into Gremlin + command.help=Import a Maven library into Gremlin. If using "now" then the imported libs ...
4
1.333333
2
2
54c5779fcb794619675398c72767fca9d5e801f1
CONTRIBUTORS.md
CONTRIBUTORS.md
The following people have contributed to Cement, either by way of source code, documentation, or testing: - BJ Dierkes (derks) - Creator, Primary Maintainer - Kyle Rockman (rocktavious) - Tomasz Czyż (spinus) - Ildar Akhmetgaleev (akhilman) - Nicolas Brisac (zacbri) - Subhash Bhushan (subhashb) - Sam Likins (samlikin...
The following people have contributed to Cement, either by way of source code, documentation, or testing: - BJ Dierkes (derks) - Creator, Primary Maintainer - Dan Liberatori (garroadran) - Kyle Rockman (rocktavious) - Tomasz Czyż (spinus) - Ildar Akhmetgaleev (akhilman) - Nicolas Brisac (zacbri) - Subhash Bhushan (su...
Add Dan Liberatori to Contributors
Add Dan Liberatori to Contributors
Markdown
bsd-3-clause
datafolklabs/cement,datafolklabs/cement,datafolklabs/cement
markdown
## Code Before: The following people have contributed to Cement, either by way of source code, documentation, or testing: - BJ Dierkes (derks) - Creator, Primary Maintainer - Kyle Rockman (rocktavious) - Tomasz Czyż (spinus) - Ildar Akhmetgaleev (akhilman) - Nicolas Brisac (zacbri) - Subhash Bhushan (subhashb) - Sam ...
The following people have contributed to Cement, either by way of source code, documentation, or testing: - BJ Dierkes (derks) - Creator, Primary Maintainer + - Dan Liberatori (garroadran) - Kyle Rockman (rocktavious) - Tomasz Czyż (spinus) - Ildar Akhmetgaleev (akhilman) - Nicolas Brisac (zacbri) ...
1
0.083333
1
0
5b6f3ac716e37b9d03bff3da826dca24826b24eb
jasmine/spec/inverted-index-test.js
jasmine/spec/inverted-index-test.js
describe ("Read book data",function(){ it("assert JSON file is not empty",function(){ var isNotEmpty = function IsJsonString(filePath) { try { JSON.parse(filePath); } catch (e) { return false; } return true; }; expect(isNotEmpty).toBe(true).because('The JSON file sh...
describe("Read book data", function() { beforeEach(function(){ var file = filePath.files[0]; var reader = new FileReader(); }); it("assert JSON file is not empty",function(){ var fileNotEmpty = JSON.parse(reader.result); var fileNotEmptyResult = function(fileNotEmpty){ if (fileNotEmpty = null){ r...
Change the read book test and populate index test
Change the read book test and populate index test
JavaScript
mit
andela-pbirir/inverted-index,andela-pbirir/inverted-index
javascript
## Code Before: describe ("Read book data",function(){ it("assert JSON file is not empty",function(){ var isNotEmpty = function IsJsonString(filePath) { try { JSON.parse(filePath); } catch (e) { return false; } return true; }; expect(isNotEmpty).toBe(true).because('...
- describe ("Read book data",function(){ ? - + describe("Read book data", function() { ? + + + beforeEach(function(){ + var file = filePath.files[0]; + var reader = new FileReader(); + }); + it("assert JSON file is not empty",function(){ + var fileNotEmpty = ...
89
1.679245
41
48
a5f216b50cc19a2061858bfb84e0f4a4147fac7e
README.md
README.md
This repo contains JSON files for the sources approved for addition in restricted build environments, specifically meant for the `apt` addon in travis-build. ## Source approval process 0. Check the list of approved source for your build environment (most likely [`ubuntu`](./ubuntu.json)). 0. If it's not in there, ch...
This repo contains JSON files for the sources approved for addition in restricted build environments, specifically meant for the `apt` addon in travis-build.
Remove notes on approval process
Remove notes on approval process
Markdown
mit
travis-ci/apt-source-whitelist
markdown
## Code Before: This repo contains JSON files for the sources approved for addition in restricted build environments, specifically meant for the `apt` addon in travis-build. ## Source approval process 0. Check the list of approved source for your build environment (most likely [`ubuntu`](./ubuntu.json)). 0. If it's ...
This repo contains JSON files for the sources approved for addition in restricted build environments, specifically meant for the `apt` addon in travis-build. - - ## Source approval process - - 0. Check the list of approved source for your build environment (most likely [`ubuntu`](./ubuntu.json)). - 0. If it's no...
12
0.857143
0
12
4c1987b918d353f849ad1aaad174db797525ee10
scripts/app.js
scripts/app.js
var ko = require('knockout-client'), vm = require('./viewModel'); vm.wtf(); ko.applyBindings(vm);
var ko = require('knockout-client'), vm = require('./viewModel'); ko.applyBindings(vm);
Remove increment on refresh / initial visit
Remove increment on refresh / initial visit
JavaScript
mit
joshka/countw.tf,joshka/countw.tf,joshka/countw.tf,joshka/countw.tf
javascript
## Code Before: var ko = require('knockout-client'), vm = require('./viewModel'); vm.wtf(); ko.applyBindings(vm); ## Instruction: Remove increment on refresh / initial visit ## Code After: var ko = require('knockout-client'), vm = require('./viewModel'); ko.applyBindings(vm);
var ko = require('knockout-client'), vm = require('./viewModel'); - vm.wtf(); ko.applyBindings(vm);
1
0.2
0
1
a89f26fe01acf4eb06231c4cb660e4fdb2404568
src/features/remove-zero-categories/main.js
src/features/remove-zero-categories/main.js
(function removeZeroCategoriesFromCoverOverbudgeting() { if (typeof Em !== 'undefined' && typeof Ember !== 'undefined' && typeof $ !== 'undefined') { var coverOverbudgetingCategories = $( ".modal-budget-overspending .options-shown .ynab-select-options" ).children('li'); coverOverbudgetingCategories.each(...
(function removeZeroCategoriesFromCoverOverbudgeting() { if (typeof Em !== 'undefined' && typeof Ember !== 'undefined' && typeof $ !== 'undefined') { var coverOverbudgetingCategories = $( "fieldset>.options-shown>.ynab-select-options" ).children('li'); coverOverbudgetingCategories.each(function(i) { va...
Revert "Added a more reliable css selector and fixed parsing bug"
Revert "Added a more reliable css selector and fixed parsing bug" This reverts commit 19b98b00ca4fdc04f650570062de16c771063741.
JavaScript
mit
boxfoot/toolkit-for-ynab,joshmadewell/toolkit-for-ynab,johde/toolkit-for-ynab,boxfoot/toolkit-for-ynab,Niictar/toolkit-for-ynab,gpeden/ynab-enhanced,mhum/ynab-enhanced,mhum/ynab-enhanced,ahatzz11/toolkit-for-ynab,ahatzz11/toolkit-for-ynab,Niictar/toolkit-for-ynab,boxfoot/toolkit-for-ynab,joshmadewell/toolkit-for-ynab,d...
javascript
## Code Before: (function removeZeroCategoriesFromCoverOverbudgeting() { if (typeof Em !== 'undefined' && typeof Ember !== 'undefined' && typeof $ !== 'undefined') { var coverOverbudgetingCategories = $( ".modal-budget-overspending .options-shown .ynab-select-options" ).children('li'); coverOverbudgetingCate...
(function removeZeroCategoriesFromCoverOverbudgeting() { if (typeof Em !== 'undefined' && typeof Ember !== 'undefined' && typeof $ !== 'undefined') { - var coverOverbudgetingCategories = $( ".modal-budget-overspending .options-shown .ynab-select-options" ).children('li'); ? ...
4
0.266667
2
2
12d7d946eb8b94a8bcd1cefb1a361598acc2394d
share/spice/amazon/amazon_detail.handlebars
share/spice/amazon/amazon_detail.handlebars
<div> <img class="spotlight" src="/iu/?u={{img}}"> <div class="description"> <h1><a href="{{url}}">{{heading}}</a></h1> <br> <span class="price">{{price}}</span> &bull; by {{brand}} &bull; <img class="stars" src=""> (<a href="{{rating}}"><span class="review-count"...
<div> <img class="spotlight" src="/iu/?u={{img}}"> <div class="description"> <h1><a href="{{url}}">{{heading}}</a></h1> <br> <span class="price">{{price}}</span> &bull; by {{brand}} &bull; <img class="stars" src=""> (<a href="{{rating}}"><span class="review-count"...
Read More link is now included in detail api_response
Read More link is now included in detail api_response
Handlebars
apache-2.0
TomBebbington/zeroclickinfo-spice,marianosimone/zeroclickinfo-spice,stennie/zeroclickinfo-spice,levaly/zeroclickinfo-spice,lw7360/zeroclickinfo-spice,iambibhas/zeroclickinfo-spice,tagawa/zeroclickinfo-spice,cylgom/zeroclickinfo-spice,imwally/zeroclickinfo-spice,sagarhani/zeroclickinfo-spice,whalenrp/zeroclickinfo-spice...
handlebars
## Code Before: <div> <img class="spotlight" src="/iu/?u={{img}}"> <div class="description"> <h1><a href="{{url}}">{{heading}}</a></h1> <br> <span class="price">{{price}}</span> &bull; by {{brand}} &bull; <img class="stars" src=""> (<a href="{{rating}}"><span clas...
<div> <img class="spotlight" src="/iu/?u={{img}}"> <div class="description"> <h1><a href="{{url}}">{{heading}}</a></h1> <br> <span class="price">{{price}}</span> &bull; by {{brand}} &bull; <img class="stars" src=""> (<a href="{{rating}}"><span cl...
1
0.058824
0
1
f8ea4266082fba1210be270d6ae7607717591978
skimage/io/__init__.py
skimage/io/__init__.py
from ._plugins import * from .sift import * from .collection import * from ._io import * from ._image_stack import * from .video import * reset_plugins() def _update_doc(doc): """Add a list of plugins to the module docstring, formatted as a ReStructuredText table. """ from textwrap import wrap ...
from ._plugins import * from .sift import * from .collection import * from ._io import * from ._image_stack import * from .video import * reset_plugins() WRAP_LEN = 73 def _separator(char, lengths): return [char * separator_length for separator_length in lengths] def _update_doc(doc): """Add a list of ...
Refactor io doc building code
Refactor io doc building code
Python
bsd-3-clause
youprofit/scikit-image,ofgulban/scikit-image,Hiyorimi/scikit-image,ofgulban/scikit-image,pratapvardhan/scikit-image,chintak/scikit-image,WarrenWeckesser/scikits-image,blink1073/scikit-image,SamHames/scikit-image,bsipocz/scikit-image,chriscrosscutler/scikit-image,vighneshbirodkar/scikit-image,dpshelio/scikit-image,Midaf...
python
## Code Before: from ._plugins import * from .sift import * from .collection import * from ._io import * from ._image_stack import * from .video import * reset_plugins() def _update_doc(doc): """Add a list of plugins to the module docstring, formatted as a ReStructuredText table. """ from textwra...
from ._plugins import * from .sift import * from .collection import * from ._io import * from ._image_stack import * from .video import * reset_plugins() + WRAP_LEN = 73 + + + def _separator(char, lengths): + return [char * separator_length for separator_length in lengths] + def...
29
0.674419
16
13
53dad32841ddb39721dd6a3c44de083d507a6ee6
test/browser/parallel.integration.specs.ts
test/browser/parallel.integration.specs.ts
import parallel from "../../src/browser/index"; describe("ParallelIntegration", function () { it("reduce waits for the result to be computed on the workers and returns the reduced value", function (done) { parallel .range(100) .reduce(0, (memo: number, value: number) => { ...
import parallel from "../../src/browser/index"; describe("ParallelIntegration", function () { it("reduce waits for the result to be computed on the workers and returns the reduced value", function (done) { parallel .range(100) .reduce(0, (memo: number, value: number) => memo + v...
Remove busy wait to avoid timeout on browserstack
Remove busy wait to avoid timeout on browserstack
TypeScript
mit
MichaReiser/parallel.es,MichaReiser/parallel.es,DatenMetzgerX/parallel.es,MichaReiser/parallel.es,DatenMetzgerX/parallel.es,DatenMetzgerX/parallel.es
typescript
## Code Before: import parallel from "../../src/browser/index"; describe("ParallelIntegration", function () { it("reduce waits for the result to be computed on the workers and returns the reduced value", function (done) { parallel .range(100) .reduce(0, (memo: number, value: num...
import parallel from "../../src/browser/index"; describe("ParallelIntegration", function () { it("reduce waits for the result to be computed on the workers and returns the reduced value", function (done) { parallel .range(100) - .reduce(0, (memo: number, value: numbe...
8
0.258065
1
7
60a7ed38fb3fbe47bbeea254f36470c9f1ee713c
terraform/main.tf
terraform/main.tf
provider "libvirt" { uri = "qemu:///system" } resource "libvirt_volume" "grid-qcow2" { name = "grid${count.index}-qcow2" pool = "default" format = "qcow2" source = "/home/vdloo/images/grid0.qcow2" count = 20 } resource "libvirt_domain" "grid" { name = "grid${count.index}" memory = "1024" vcpu = 1 ...
provider "libvirt" { uri = "qemu:///system" } resource "libvirt_volume" "grid-qcow2" { name = "grid${count.index}-qcow2" pool = "default" format = "qcow2" source = "/home/vdloo/images/grid0.qcow2" count = 5 } resource "libvirt_domain" "grid" { name = "grid${count.index}" memory = "10240" vcpu = 2 ...
Revert "do not use macvtap but internal network instead"
Revert "do not use macvtap but internal network instead"
HCL
apache-2.0
vdloo/simulacra,vdloo/simulacra,vdloo/simulacra,vdloo/simulacra
hcl
## Code Before: provider "libvirt" { uri = "qemu:///system" } resource "libvirt_volume" "grid-qcow2" { name = "grid${count.index}-qcow2" pool = "default" format = "qcow2" source = "/home/vdloo/images/grid0.qcow2" count = 20 } resource "libvirt_domain" "grid" { name = "grid${count.index}" memory = "102...
provider "libvirt" { uri = "qemu:///system" } resource "libvirt_volume" "grid-qcow2" { name = "grid${count.index}-qcow2" pool = "default" format = "qcow2" source = "/home/vdloo/images/grid0.qcow2" - count = 20 ? ^^ + count = 5 ? ^ } resource "libvirt_domain"...
10
0.30303
5
5
d59066a35118d9ca4cba11bc5b0e832fab931355
app/views/projects/_show.html.haml
app/views/projects/_show.html.haml
.tabbable %ul.nav.nav-tabs %li.active= link_to 'Details', '#tab-details', {:data => {:toggle => 'tab'}} %li= link_to 'Stundenrapport', '#tab-activities', {:data => {:toggle => 'tab'}} .tab-content #tab-details.tab-pane.active = render "form" #tab-activities.tab-pane = render 'show_activities'
.tabbable %ul.nav.nav-tabs %li.active= link_to 'Details', '#tab-details', {:data => {:toggle => 'tab'}} %li= link_to t_title(:list, Activity), '#tab-activities', {:data => {:toggle => 'tab'}} .tab-content #tab-details.tab-pane.active = render "form" #tab-activities.tab-pane = render 'show_activit...
Use translations for activities tab in projects.
Use translations for activities tab in projects.
Haml
mit
huerlisi/bookyt_projects,raskhadafi/bookyt_projects,huerlisi/bookyt_projects,raskhadafi/bookyt_projects,huerlisi/bookyt_projects
haml
## Code Before: .tabbable %ul.nav.nav-tabs %li.active= link_to 'Details', '#tab-details', {:data => {:toggle => 'tab'}} %li= link_to 'Stundenrapport', '#tab-activities', {:data => {:toggle => 'tab'}} .tab-content #tab-details.tab-pane.active = render "form" #tab-activities.tab-pane = render 'show...
.tabbable %ul.nav.nav-tabs %li.active= link_to 'Details', '#tab-details', {:data => {:toggle => 'tab'}} - %li= link_to 'Stundenrapport', '#tab-activities', {:data => {:toggle => 'tab'}} ? -- ^^^ ^^^^^^^ ^ + %li= link_to t_title(:list, Activity), '#tab-activities', {:data => {:toggl...
2
0.2
1
1
984be7e4064a66db295f3937fe9bedff9421d363
lib/frecon/base/object.rb
lib/frecon/base/object.rb
class Object alias_method :is_an?, :is_a? end
class Object # Alias #is_a? to #is_an?. This allows us to write more # proper-English-y code. alias_method :is_an?, :is_a? end
Add a little bit of explanation for the Object class (and whitespace)
Add a little bit of explanation for the Object class (and whitespace)
Ruby
mit
frc-frecon/frecon,frc-frecon/frecon
ruby
## Code Before: class Object alias_method :is_an?, :is_a? end ## Instruction: Add a little bit of explanation for the Object class (and whitespace) ## Code After: class Object # Alias #is_a? to #is_an?. This allows us to write more # proper-English-y code. alias_method :is_an?, :is_a? end
class Object + + # Alias #is_a? to #is_an?. This allows us to write more + # proper-English-y code. alias_method :is_an?, :is_a? + end
4
1
4
0
c3cf0748cc77a2d47acd8a378938fdb5658f6998
app/views/members/show.html.haml
app/views/members/show.html.haml
%h3 = @member.name ( %tt = @member.email ) %h5 Voting History %table#proposal %tr %th#proposal Title %th#proposal Vote - for vote in @member.votes - vote.for ? p = "for" : p = "against" %tr{:class => "vote_#{p}"} %td= vote.decision.title %td#vote= vote.for_or_against %h5...
%h3 = @member.name ( %tt = @member.email ) %h5 Voting History %table.proposals %tr %th Title %th Vote - for vote in @member.votes - vote.for ? p = "for" : p = "against" %tr{:class => "vote_#{p}"} %td= link_to(h(vote.decision.title), resource(vote.decision)) %td.vote= vote...
Tidy classes/IDs and add links to member show page.
Tidy classes/IDs and add links to member show page.
Haml
agpl-3.0
oneclickorgs/one-click-orgs-deployment,oneclickorgs/one-click-orgs,emmapersky/one-click-orgs,oneclickorgs/one-click-orgs-deployment,oneclickorgs/one-click-orgs,oneclickorgs/one-click-orgs,oneclickorgs/one-click-orgs-deployment,oneclickorgs/one-click-orgs,emmapersky/one-click-orgs
haml
## Code Before: %h3 = @member.name ( %tt = @member.email ) %h5 Voting History %table#proposal %tr %th#proposal Title %th#proposal Vote - for vote in @member.votes - vote.for ? p = "for" : p = "against" %tr{:class => "vote_#{p}"} %td= vote.decision.title %td#vote= vote.for...
%h3 = @member.name ( %tt = @member.email ) %h5 Voting History - %table#proposal ? ^ + %table.proposals ? ^ + %tr - %th#proposal Title - %th#proposal Vote + %th Title + %th Vote - for vote in @member.votes - vote.for ? p = "for" : p =...
24
0.545455
12
12
80a836d48c870dd8ded5233e9450a104561d3898
app/controllers/users_controller.rb
app/controllers/users_controller.rb
class UsersController < ApplicationController include WithUserParams before_action :authenticate!, except: :terms before_action :set_user! skip_before_action :validate_accepted_role_terms! def show @messages = current_user.messages.to_a @watched_discussions = current_user.watched_discussions_in_orga...
class UsersController < ApplicationController include WithUserParams before_action :authenticate!, except: :terms before_action :set_user! skip_before_action :validate_accepted_role_terms! def show @messages = current_user.messages_in_organization @watched_discussions = current_user.watched_discussi...
Use messages_in_organization to retrieve user messages
Use messages_in_organization to retrieve user messages
Ruby
agpl-3.0
mumuki/mumuki-laboratory,mumuki/mumuki-laboratory,mumuki/mumuki-laboratory,mumuki/mumuki-laboratory
ruby
## Code Before: class UsersController < ApplicationController include WithUserParams before_action :authenticate!, except: :terms before_action :set_user! skip_before_action :validate_accepted_role_terms! def show @messages = current_user.messages.to_a @watched_discussions = current_user.watched_dis...
class UsersController < ApplicationController include WithUserParams before_action :authenticate!, except: :terms before_action :set_user! skip_before_action :validate_accepted_role_terms! def show - @messages = current_user.messages.to_a ? ^ ^^ + ...
2
0.04
1
1
5f8f4888877652f4a3ab24950a11bdf8726b1dc3
Resources/app.nw/Themes/Light/Light.css
Resources/app.nw/Themes/Light/Light.css
background: white; } .tm-w-default { font-family: "Vera Mono", "Tahoma", sans-serif; font-size: 12px; line-height: 1.3em; color: black; } ::selection { background: rgba(0, 133, 255, 0.32); } ::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.35); border-r...
background: white; } .tm-w-default { font-family: "Vera Mono", "Tahoma", sans-serif; font-size: 12px; line-height: 1.3em; color: black; } ::selection { background: rgba(0, 133, 255, 0.32); } ::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.35); border-r...
Hide scrollbar track when in small editor
Hide scrollbar track when in small editor
CSS
mit
urlysses/wrong,urlysses/wrong
css
## Code Before: background: white; } .tm-w-default { font-family: "Vera Mono", "Tahoma", sans-serif; font-size: 12px; line-height: 1.3em; color: black; } ::selection { background: rgba(0, 133, 255, 0.32); } ::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0...
background: white; } .tm-w-default { font-family: "Vera Mono", "Tahoma", sans-serif; font-size: 12px; line-height: 1.3em; color: black; } ::selection { background: rgba(0, 133, 255, 0.32); } ::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-thumb { backg...
6
0.24
6
0
5f0b7ed1b062a4c26f0acb9731580b016690ca42
.travis.yml
.travis.yml
language: python sudo: false python: - 2.7 - 3.4 - 3.5 os: - linux env: global: - PYTHON=python - PIP=pip - TEST_COMMAND="test -q" matrix: include: - language: generic python: 2.7 os: osx - language: generic python: 3.5 os: osx env: PYTHON=python3 PIP=pip3...
language: python sudo: false python: - 2.7 - 3.4 - 3.5 os: - linux env: global: - PYTHON=python - PIP=pip - TEST_COMMAND="test -q" matrix: include: - language: generic python: 2.7 os: osx - language: generic python: 3.5 os: osx env: PYTHON=python3 PIP=pip3...
Add shell_session_update workaround for macOS builders
Add shell_session_update workaround for macOS builders
YAML
bsd-3-clause
jimporter/doppel,jimporter/doppel
yaml
## Code Before: language: python sudo: false python: - 2.7 - 3.4 - 3.5 os: - linux env: global: - PYTHON=python - PIP=pip - TEST_COMMAND="test -q" matrix: include: - language: generic python: 2.7 os: osx - language: generic python: 3.5 os: osx env: PYTHON=...
language: python sudo: false python: - 2.7 - 3.4 - 3.5 os: - linux env: global: - PYTHON=python - PIP=pip - TEST_COMMAND="test -q" matrix: include: - language: generic python: 2.7 os: osx - language: generic python: 3.5 ...
1
0.022222
1
0
7f3d76bdec3731ae50b9487556b1b2750cd3108e
setup.py
setup.py
from distutils.core import setup import versioneer setup( name='iterm2-tools', version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), description='''iTerm2 tools.''', author='Aaron Meurer', author_email='asmeurer@gmail.com', url='https://github.com/asmeurer/iterm2-tools', ...
from distutils.core import setup import versioneer setup( name='iterm2-tools', version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), description='''iTerm2 tools.''', author='Aaron Meurer', author_email='asmeurer@gmail.com', url='https://github.com/asmeurer/iterm2-tools', ...
Include the tests in the dist
Include the tests in the dist
Python
mit
asmeurer/iterm2-tools
python
## Code Before: from distutils.core import setup import versioneer setup( name='iterm2-tools', version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), description='''iTerm2 tools.''', author='Aaron Meurer', author_email='asmeurer@gmail.com', url='https://github.com/asmeurer/i...
from distutils.core import setup import versioneer setup( name='iterm2-tools', version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), description='''iTerm2 tools.''', author='Aaron Meurer', author_email='asmeurer@gmail.com', url='https://github.com/as...
5
0.151515
4
1
4bbef30c24c038b08c6cffed9a8de9ba672d6011
docs/index.rst
docs/index.rst
git-pw ====== .. include:: ../README.rst :start-line: 19 :end-line: -7 Usage ----- .. click:: git_pw.shell:cli :prog: git-pw :show-nested:
git-pw (Patchwork subcommand for Git) ===================================== .. include:: ../README.rst :start-line: 19 :end-line: -7 Usage ----- .. click:: git_pw.shell:cli :prog: git-pw :show-nested:
Stop reference clash on ReadTheDocs
Stop reference clash on ReadTheDocs The 'Usage' section clashes with the top-level title. Resolve this. Signed-off-by: Stephen Finucane <06fa905d7f2aaced6dc72e9511c71a2a51e8aead@that.guru>
reStructuredText
mit
getpatchwork/git-pw,stephenfin/git-pw
restructuredtext
## Code Before: git-pw ====== .. include:: ../README.rst :start-line: 19 :end-line: -7 Usage ----- .. click:: git_pw.shell:cli :prog: git-pw :show-nested: ## Instruction: Stop reference clash on ReadTheDocs The 'Usage' section clashes with the top-level title. Resolve this. Signed-off-by: Stephen Finu...
- git-pw - ====== + git-pw (Patchwork subcommand for Git) + ===================================== .. include:: ../README.rst :start-line: 19 :end-line: -7 Usage ----- .. click:: git_pw.shell:cli :prog: git-pw :show-nested:
4
0.307692
2
2
d266a1240977de8182991d6e1fe55a189fd49cd9
app/src/main/res/values/gpgs.xml
app/src/main/res/values/gpgs.xml
<?xml version="1.0" encoding="utf-8"?> <resources> <!-- app id --> <string name="app_id">143088943006</string> <!-- Achievements --> <string name="achievement_v_for_victory">CgkInv-PhpUEEAIQAg</string> <string name="achievement_with_no_luck">CgkInv-PhpUEEAIQAw</string> <string name="achievement...
<?xml version="1.0" encoding="utf-8"?> <resources> <!-- app id --> <string name="app_id">143088943006</string> <!-- Achievements --> <string name="achievement_v_for_victory">CgkInv-PhpUEEAIQAg</string> <string name="achievement_with_no_luck">CgkInv-PhpUEEAIQAw</string> <string name="achievement...
Remove multiplayer leaderboard (currently not used)
Remove multiplayer leaderboard (currently not used)
XML
apache-2.0
dbaelz/NotAlways42
xml
## Code Before: <?xml version="1.0" encoding="utf-8"?> <resources> <!-- app id --> <string name="app_id">143088943006</string> <!-- Achievements --> <string name="achievement_v_for_victory">CgkInv-PhpUEEAIQAg</string> <string name="achievement_with_no_luck">CgkInv-PhpUEEAIQAw</string> <string n...
<?xml version="1.0" encoding="utf-8"?> <resources> <!-- app id --> <string name="app_id">143088943006</string> <!-- Achievements --> <string name="achievement_v_for_victory">CgkInv-PhpUEEAIQAg</string> <string name="achievement_with_no_luck">CgkInv-PhpUEEAIQAw</string> <string...
1
0.045455
0
1
3647f781d993106f35aa5ddbe77f24a04bc8148d
app/decorators/action_links/form_link_builder.rb
app/decorators/action_links/form_link_builder.rb
module ActionLinks # Builds a list of action links for a form. class FormLinkBuilder < LinkBuilder def initialize(form) actions = %i[show edit clone] unless h.admin_mode? actions << [:go_live, {method: :patch}] unless form.live? actions << [:pause, {method: :patch}] if form.live? ...
module ActionLinks # Builds a list of action links for a form. class FormLinkBuilder < LinkBuilder def initialize(form) actions = %i[show edit clone] unless h.admin_mode? actions << [:go_live, {method: :patch}] unless form.live? actions << [:pause, {method: :patch}] if form.live? ...
Hide SMS guide and SMS console action links if form not published
10929: Hide SMS guide and SMS console action links if form not published
Ruby
apache-2.0
thecartercenter/elmo,thecartercenter/elmo,thecartercenter/elmo
ruby
## Code Before: module ActionLinks # Builds a list of action links for a form. class FormLinkBuilder < LinkBuilder def initialize(form) actions = %i[show edit clone] unless h.admin_mode? actions << [:go_live, {method: :patch}] unless form.live? actions << [:pause, {method: :patch}] ...
module ActionLinks # Builds a list of action links for a form. class FormLinkBuilder < LinkBuilder def initialize(form) actions = %i[show edit clone] unless h.admin_mode? actions << [:go_live, {method: :patch}] unless form.live? actions << [:pause, {method: :patch}...
2
0.1
1
1
63cf6f6228490c9944711106cd134254eafac3ca
regressors/plots.py
regressors/plots.py
"""This module contains functions for making plots relevant to regressors.""" from __future__ import print_function from __future__ import division from __future__ import absolute_import from __future__ import unicode_literals
"""This module contains functions for making plots relevant to regressors.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import matplotlib.pyplot as plt import seaborn.apionly as sns from sklearn import linear_mo...
Add function to make residuals plot
Add function to make residuals plot
Python
isc
nsh87/regressors
python
## Code Before: """This module contains functions for making plots relevant to regressors.""" from __future__ import print_function from __future__ import division from __future__ import absolute_import from __future__ import unicode_literals ## Instruction: Add function to make residuals plot ## Code After: """T...
"""This module contains functions for making plots relevant to regressors.""" + from __future__ import absolute_import + from __future__ import division from __future__ import print_function - from __future__ import division - from __future__ import absolute_import from __future__ import unicode_literals + ...
64
8
62
2
4d7dd8391957694a41a7ddf1d7f0237d51bd3b9c
lib/dm-tags/tagging.rb
lib/dm-tags/tagging.rb
class Tagging include DataMapper::Resource property :id, Serial property :tag_id, Integer, :nullable => false property :taggable_id, Integer, :nullable => false property :taggable_type, String, :nullable => false property :tag_context, String, :nullable => false belongs_to :tag ...
class Tagging include DataMapper::Resource property :id, Serial property :tag_id, Integer, :nullable => false property :taggable_id, Integer, :nullable => false property :taggable_type, String, :nullable => false property :tag_context, String, :nullable => false belongs_to :tag ...
Remove eval and use send, as it's safer
[dm-tags] Remove eval and use send, as it's safer
Ruby
mit
datamapper/dm-tags,komagata/dm-tags
ruby
## Code Before: class Tagging include DataMapper::Resource property :id, Serial property :tag_id, Integer, :nullable => false property :taggable_id, Integer, :nullable => false property :taggable_type, String, :nullable => false property :tag_context, String, :nullable => false b...
class Tagging include DataMapper::Resource property :id, Serial property :tag_id, Integer, :nullable => false property :taggable_id, Integer, :nullable => false property :taggable_type, String, :nullable => false property :tag_context, String, :nullable => false ...
4
0.266667
3
1
f8e40bacc6e54ae4090da2c7b06671d83d52c9a4
src/ggrc/assets/stylesheets/modules/_log-list.scss
src/ggrc/assets/stylesheets/modules/_log-list.scss
/* * Copyright (C) 2016 Google Inc., authors, and contributors <see AUTHORS file> * Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> * Created By: vladan@reciprocitylabs.com * Maintained By: vladan@reciprocitylabs.com */ .third-col { float: left; width: 30%; margin-right: 3.33% } ....
/* * Copyright (C) 2016 Google Inc., authors, and contributors <see AUTHORS file> * Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> * Created By: vladan@reciprocitylabs.com * Maintained By: vladan@reciprocitylabs.com */ .third-col { float: left; width: 30%; margin-right: 3.33% }...
Fix tab indentation in log list
Fix tab indentation in log list
SCSS
apache-2.0
selahssea/ggrc-core,prasannav7/ggrc-core,jmakov/ggrc-core,andrei-karalionak/ggrc-core,jmakov/ggrc-core,andrei-karalionak/ggrc-core,kr41/ggrc-core,AleksNeStu/ggrc-core,josthkko/ggrc-core,selahssea/ggrc-core,josthkko/ggrc-core,AleksNeStu/ggrc-core,edofic/ggrc-core,kr41/ggrc-core,plamut/ggrc-core,edofic/ggrc-core,prasanna...
scss
## Code Before: /* * Copyright (C) 2016 Google Inc., authors, and contributors <see AUTHORS file> * Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> * Created By: vladan@reciprocitylabs.com * Maintained By: vladan@reciprocitylabs.com */ .third-col { float: left; width: 30%; margin-r...
/* * Copyright (C) 2016 Google Inc., authors, and contributors <see AUTHORS file> * Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> * Created By: vladan@reciprocitylabs.com * Maintained By: vladan@reciprocitylabs.com */ .third-col { - float: left; ? ^ + float: left...
10
0.588235
5
5
3bcb8f0843b7798bb02f7cf5652ec200293f0264
cookbooks/planet/templates/default/users-deleted.erb
cookbooks/planet/templates/default/users-deleted.erb
T=$(mktemp -d -t -p /var/tmp users.XXXXXXXXXX) # use the same as for the users-agreed template export PGPASSFILE=/etc/replication/users-agreed.conf echo "# user IDs of deleted users. " > $T/users_deleted psql -h <%= node[:web][:readonly_database_host] %> -U planetdiff -t -c "select id from users where status='delete...
T=$(mktemp -d -t -p /var/tmp users.XXXXXXXXXX) # use the same as for the users-agreed template export PGPASSFILE=/etc/replication/users-agreed.conf echo "# user IDs of deleted users. " > $T/users_deleted psql -h <%= node[:web][:readonly_database_host] %> -U planetdiff -t -c "select id from users where status='delete...
Move output down a level
Move output down a level
HTML+ERB
apache-2.0
Firefishy/chef,zerebubuth/openstreetmap-chef,tomhughes/openstreetmap-chef,openstreetmap/chef,tomhughes/openstreetmap-chef,Firefishy/chef,openstreetmap/chef,zerebubuth/openstreetmap-chef,zerebubuth/openstreetmap-chef,zerebubuth/openstreetmap-chef,zerebubuth/openstreetmap-chef,Firefishy/chef,tomhughes/openstreetmap-chef,...
html+erb
## Code Before: T=$(mktemp -d -t -p /var/tmp users.XXXXXXXXXX) # use the same as for the users-agreed template export PGPASSFILE=/etc/replication/users-agreed.conf echo "# user IDs of deleted users. " > $T/users_deleted psql -h <%= node[:web][:readonly_database_host] %> -U planetdiff -t -c "select id from users wher...
T=$(mktemp -d -t -p /var/tmp users.XXXXXXXXXX) # use the same as for the users-agreed template export PGPASSFILE=/etc/replication/users-agreed.conf echo "# user IDs of deleted users. " > $T/users_deleted psql -h <%= node[:web][:readonly_database_host] %> -U planetdiff -t -c "select id from users wher...
4
0.25
2
2
f15c0506dbffbc9a560b0066b5c05c5428d91b10
Module.php
Module.php
<?php namespace ZnZend; class Module { public function getAutoloaderConfig() { return array( 'Zend\Loader\StandardAutoloader' => array( 'namespaces' => array( __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, ), ), );...
<?php /** * ZnZend * * @author Zion Ng <zion@intzone.com> * @link [Source] http://github.com/zionsg/ZnZend */ namespace ZnZend; class Module { public function getAutoloaderConfig() { return array( 'Zend\Loader\StandardAutoloader' => array( 'namespaces' => array( ...
Use 'initializer' key to set default db adapter.
Use 'initializer' key to set default db adapter.
PHP
bsd-2-clause
zionsg/ZnZend
php
## Code Before: <?php namespace ZnZend; class Module { public function getAutoloaderConfig() { return array( 'Zend\Loader\StandardAutoloader' => array( 'namespaces' => array( __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, ), ...
<?php + /** + * ZnZend + * + * @author Zion Ng <zion@intzone.com> + * @link [Source] http://github.com/zionsg/ZnZend + */ namespace ZnZend; class Module { public function getAutoloaderConfig() { return array( 'Zend\Loader\StandardAutoloader' => array( ...
19
0.863636
19
0
95a8262839bade2d19fb06d21dba0746580a3db4
src/templates/page-home.twig
src/templates/page-home.twig
{% extends "page.twig" %} {% block header_title %} {{ site.description }} {% endblock %} {% block content %} {% if page.content %} <article class="mb4"> <div class="mw6"> {{ page.content }} </div> </article> {% endif %} <section> <h1 class="mb4 f4 f3-m fw6 lh-title green"> ...
{% extends "page.twig" %} {% block header_title %} {{ site.description }} {% endblock %} {% block content %} {% if page.content %} <article class="mb4"> <div class="mw6"> {{ page.content }} </div> </article> {% endif %} <section> <h1 class="mb4 f4 f3-m fw6 lh-title green"> ...
Set max width for home page posts
Set max width for home page posts
Twig
isc
work-shop/medmates,work-shop/medmates,work-shop/medmates,work-shop/medmates
twig
## Code Before: {% extends "page.twig" %} {% block header_title %} {{ site.description }} {% endblock %} {% block content %} {% if page.content %} <article class="mb4"> <div class="mw6"> {{ page.content }} </div> </article> {% endif %} <section> <h1 class="mb4 f4 f3-m fw6 lh-t...
{% extends "page.twig" %} {% block header_title %} {{ site.description }} {% endblock %} {% block content %} {% if page.content %} <article class="mb4"> <div class="mw6"> {{ page.content }} </div> </article> {% endif %} <section> <h1 class="mb...
4
0.16
3
1
aa74fa359665e705eef0f7ff7d1de7c1075f6b79
chrome/browser/ui/views/find_bar_host_aura.cc
chrome/browser/ui/views/find_bar_host_aura.cc
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/views/find_bar_host.h" #include "base/logging.h" #include "ui/base/events/event.h" void FindBarHost::AudibleAlert() { #i...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/views/find_bar_host.h" #include "base/logging.h" #include "ui/base/events/event.h" void FindBarHost::AudibleAlert() { #i...
Remove NOTIMPLEMENTED() in FindBarHost::AudibleAlert() for ChromeOS.
Remove NOTIMPLEMENTED() in FindBarHost::AudibleAlert() for ChromeOS. BUG=None TEST=None R=jennyz,jamescook TBR=sky Review URL: https://chromiumcodereview.appspot.com/23819045 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@222422 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
PeterWangIntel/chromium-crosswalk,axinging/chromium-crosswalk,krieger-od/nwjs_chromium.src,mohamed--abdel-maksoud/chromium.src,Just-D/chromium-1,anirudhSK/chromium,dushu1203/chromium.src,dednal/chromium.src,chuan9/chromium-crosswalk,axinging/chromium-crosswalk,Jonekee/chromium.src,ChromiumWebApps/chromium,ondra-novak/c...
c++
## Code Before: // Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/views/find_bar_host.h" #include "base/logging.h" #include "ui/base/events/event.h" void FindBarHost::Aud...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/views/find_bar_host.h" #include "base/logging.h" #include "ui/base/events/event.h" void FindBarHost:...
3
0.136364
0
3
9abec4880679864e6ed8c5b7657ecf51c7a423d9
server/services/twilioService.coffee
server/services/twilioService.coffee
twilio = require("twilio") bot = require("../bot") config = require("../config") TWILIO_PHONE = config.twilio.phone TWILIO_ACCOUNT_SID = config.twilio.accountSid TWILIO_AUTH_TOKEN = config.twilio.authToken if not (TWILIO_PHONE and TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN) throw new Error "Please configure Twilio" cli...
twilio = require("twilio") bot = require("../bot") config = require("../config") TWILIO_PHONE = config.twilio.phone TWILIO_ACCOUNT_SID = config.twilio.accountSid TWILIO_AUTH_TOKEN = config.twilio.authToken if not (TWILIO_PHONE and TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN) throw new Error "Please configure Twilio" cli...
Add prefix to error messages
Add prefix to error messages "An error occurred: #{ERROR}"
CoffeeScript
mit
Glavin001/TorrentAutomator,Glavin001/TorrentAutomator,Glavin001/TorrentAutomator
coffeescript
## Code Before: twilio = require("twilio") bot = require("../bot") config = require("../config") TWILIO_PHONE = config.twilio.phone TWILIO_ACCOUNT_SID = config.twilio.accountSid TWILIO_AUTH_TOKEN = config.twilio.authToken if not (TWILIO_PHONE and TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN) throw new Error "Please confi...
twilio = require("twilio") bot = require("../bot") config = require("../config") TWILIO_PHONE = config.twilio.phone TWILIO_ACCOUNT_SID = config.twilio.accountSid TWILIO_AUTH_TOKEN = config.twilio.authToken if not (TWILIO_PHONE and TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN) throw new Error "Please confi...
2
0.05
1
1
97f89c1bad363111a77e432b24095f2df05638e4
lib/quartz/validations.rb
lib/quartz/validations.rb
module Quartz::Validations def self.check_for_go go_exists = ENV['PATH'].split(File::PATH_SEPARATOR).any? do |directory| File.exist?(File.join(directory, 'go')) end raise 'Go not installed' unless go_exists end def self.check_go_quartz_version current_pulse = File.read(File.join(File.dirn...
module Quartz::Validations def self.check_for_go go_exists = ENV['PATH'].split(File::PATH_SEPARATOR).any? do |directory| File.exist?(File.join(directory, 'go')) end raise 'Go not installed.' unless go_exists end def self.check_go_quartz_version current_pulse = File.read(File.join(File.dir...
Support multiple directories in GOPATH
Support multiple directories in GOPATH
Ruby
mit
DavidHuie/quartz,DavidHuie/quartz
ruby
## Code Before: module Quartz::Validations def self.check_for_go go_exists = ENV['PATH'].split(File::PATH_SEPARATOR).any? do |directory| File.exist?(File.join(directory, 'go')) end raise 'Go not installed' unless go_exists end def self.check_go_quartz_version current_pulse = File.read(Fil...
module Quartz::Validations def self.check_for_go go_exists = ENV['PATH'].split(File::PATH_SEPARATOR).any? do |directory| File.exist?(File.join(directory, 'go')) end - raise 'Go not installed' unless go_exists + raise 'Go not installed.' unless go_exists ? ...
13
0.52
11
2
b94663cd0f2b60d05ddae6d3ab277f5fe4c5f496
BlockSimulator-MT2/simulatorCore/blinkyBlocksHelp.txt
BlockSimulator-MT2/simulatorCore/blinkyBlocksHelp.txt
Interface Help Keyboard: [z]: center camera focus on the selected block [w]/[W]: toggle full screen / window mode [r]: start in realtime mode [R]: start in fastest mode [h]: show/hide help window [q]/[Q]/[ESC]: quit Mouse: <MLB>: change the point of view ...
Interface Help Keyboard: [z]: center camera focus on the selected block [w]/[W]: toggle full screen / window mode [r]: start in realtime mode [R]: start in fastest mode [h]: show/hide help window [q]/[Q]/[ESC]: quit Mouse: <MLB>: change the point of view, tap on...
Add tap command in Blinky Blocks help
Add tap command in Blinky Blocks help
Text
apache-2.0
claytronics/visiblesim,claytronics/visiblesim,claytronics/visiblesim,claytronics/visiblesim,claytronics/visiblesim
text
## Code Before: Interface Help Keyboard: [z]: center camera focus on the selected block [w]/[W]: toggle full screen / window mode [r]: start in realtime mode [R]: start in fastest mode [h]: show/hide help window [q]/[Q]/[ESC]: quit Mouse: <MLB>: change the point...
Interface Help Keyboard: [z]: center camera focus on the selected block [w]/[W]: toggle full screen / window mode [r]: start in realtime mode [R]: start in fastest mode [h]: show/hide help window [q]/[Q]/[ESC]: quit Mouse: - <MLB>: change t...
2
0.1
1
1
887db8cb3b05fa725b9e44e635c4dd3f92867646
lib/snippet-history-provider.js
lib/snippet-history-provider.js
/** @babel */ function wrap (manager, callbacks) { let klass = new SnippetHistoryProvider(manager); return new Proxy(manager, { get (target, name) { if (name in callbacks) { callbacks[name](); } return name in klass ? klass[name] : target[name] } }); } class SnippetHistoryProvi...
function wrap (manager, callbacks) { let klass = new SnippetHistoryProvider(manager) return new Proxy(manager, { get (target, name) { if (name in callbacks) { callbacks[name]() } return name in klass ? klass[name] : target[name] } }) } class SnippetHistoryProvider { constructo...
Remove Babel dependency and convert to standard code style
Remove Babel dependency and convert to standard code style
JavaScript
mit
atom/snippets
javascript
## Code Before: /** @babel */ function wrap (manager, callbacks) { let klass = new SnippetHistoryProvider(manager); return new Proxy(manager, { get (target, name) { if (name in callbacks) { callbacks[name](); } return name in klass ? klass[name] : target[name] } }); } class Sni...
- /** @babel */ - function wrap (manager, callbacks) { - let klass = new SnippetHistoryProvider(manager); ? - + let klass = new SnippetHistoryProvider(manager) return new Proxy(manager, { get (target, name) { if (name in callbacks) { - c...
16
0.551724
7
9
37c0a82e80071cd5438debb56c3f9a422bd34db0
README.md
README.md
[![GoDoc](https://godoc.org/github.com/MasterOfBinary/redistypes?status.svg)](https://godoc.org/github.com/MasterOfBinary/redistypes) Redis data types in Go.
[![Build Status](https://travis-ci.org/MasterOfBinary/redistypes.svg?branch=master)](https://travis-ci.org/MasterOfBinary/redistypes) [![GoDoc](https://godoc.org/github.com/MasterOfBinary/redistypes?status.svg)](https://godoc.org/github.com/MasterOfBinary/redistypes) Redis data types in Go.
Add build status to readme
Add build status to readme
Markdown
mit
MasterOfBinary/redistypes
markdown
## Code Before: [![GoDoc](https://godoc.org/github.com/MasterOfBinary/redistypes?status.svg)](https://godoc.org/github.com/MasterOfBinary/redistypes) Redis data types in Go. ## Instruction: Add build status to readme ## Code After: [![Build Status](https://travis-ci.org/MasterOfBinary/redistypes.svg?branch=master)...
+ [![Build Status](https://travis-ci.org/MasterOfBinary/redistypes.svg?branch=master)](https://travis-ci.org/MasterOfBinary/redistypes) [![GoDoc](https://godoc.org/github.com/MasterOfBinary/redistypes?status.svg)](https://godoc.org/github.com/MasterOfBinary/redistypes) Redis data types in Go.
1
0.25
1
0
4bc06d09a5eafd07076663620ec2bedf164167a9
package.json
package.json
{ "name": "substance", "description": "Substance is a web-based document authoring and publishing engine developed in the open and available to everyone.", "version": "0.4.0", "homepage": "http://substance.io/", "repository": { "type": "git", "url": "https://github.com/michael/substance" }, "depen...
{ "name": "substance", "description": "Substance is a web-based document authoring and publishing engine developed in the open and available to everyone.", "version": "0.4.0", "homepage": "http://substance.io/", "repository": { "type": "git", "url": "https://github.com/michael/substance" }, "depen...
Add less and coffee-script to the dependencies
Add less and coffee-script to the dependencies
JSON
bsd-2-clause
substance/legacy-composer,substance/legacy-composer
json
## Code Before: { "name": "substance", "description": "Substance is a web-based document authoring and publishing engine developed in the open and available to everyone.", "version": "0.4.0", "homepage": "http://substance.io/", "repository": { "type": "git", "url": "https://github.com/michael/substanc...
{ "name": "substance", "description": "Substance is a web-based document authoring and publishing engine developed in the open and available to everyone.", "version": "0.4.0", "homepage": "http://substance.io/", "repository": { "type": "git", "url": "https://github.com/michael/substanc...
4
0.222222
4
0
b8ab29d9b87e5b2aa09b190c0b2d6e253f96e99e
web/views/user_view.ex
web/views/user_view.ex
defmodule Goncord.UserView do use Goncord.Web, :view def render("index.json", %{users: users}) do %{data: render_many(users, Goncord.UserView, "user.json")} end def render("show.json", %{user: user}) do %{data: render_one(user, Goncord.UserView, "user.json")} end def render("user.json", %{user: u...
defmodule Goncord.UserView do use Goncord.Web, :view def render("index.json", %{users: users}) do render_many(users, Goncord.UserView, "user.json") end def render("show.json", %{user: user}) do render_one(user, Goncord.UserView, "user.json") end def render("user.json", %{user: user}) do %{log...
Delete data key from user render.
Delete data key from user render.
Elixir
mit
herald-it/goncord.ex
elixir
## Code Before: defmodule Goncord.UserView do use Goncord.Web, :view def render("index.json", %{users: users}) do %{data: render_many(users, Goncord.UserView, "user.json")} end def render("show.json", %{user: user}) do %{data: render_one(user, Goncord.UserView, "user.json")} end def render("user....
defmodule Goncord.UserView do use Goncord.Web, :view def render("index.json", %{users: users}) do - %{data: render_many(users, Goncord.UserView, "user.json")} ? -------- - + render_many(users, Goncord.UserView, "user.json") end def ren...
4
0.2
2
2
bb15f4e90ca07672a33a65ad0704a79d539c4e4d
dashboard/test/ui/step_definitions/eyes_steps.rb
dashboard/test/ui/step_definitions/eyes_steps.rb
require 'eyes_selenium' When(/^I open my eyes to test "([^"]*)"$/) do |test_name| ensure_eyes_available @original_browser = @browser @browser = @eyes.open(app_name: 'Code.org', test_name: test_name, driver: @browser) end And(/^I close my eyes$/) do @browser = @original_browser @eyes.close end And(/^I see n...
require 'eyes_selenium' When(/^I open my eyes to test "([^"]*)"$/) do |test_name| ensure_eyes_available @original_browser = @browser @browser = @eyes.open(app_name: 'Code.org', test_name: test_name, driver: @browser) end And(/^I close my eyes$/) do @browser = @original_browser @eyes.close end And(/^I see n...
Fix "Windows 6.0" vs "Windows 6.1" alternating baselines in eyes tests
Fix "Windows 6.0" vs "Windows 6.1" alternating baselines in eyes tests
Ruby
apache-2.0
bakerfranke/code-dot-org,cloud3edu/code-dot-org-old,rvarshney/code-dot-org,pickettd/code-dot-org,pickettd/code-dot-org,pickettd/code-dot-org,cloud3edu/code-dot-org-old,cloud3edu/code-dot-org-old,bakerfranke/code-dot-org,bakerfranke/code-dot-org,ty-po/code-dot-org,dillia23/code-dot-org,pickettd/code-dot-org,bakerfranke/...
ruby
## Code Before: require 'eyes_selenium' When(/^I open my eyes to test "([^"]*)"$/) do |test_name| ensure_eyes_available @original_browser = @browser @browser = @eyes.open(app_name: 'Code.org', test_name: test_name, driver: @browser) end And(/^I close my eyes$/) do @browser = @original_browser @eyes.close en...
require 'eyes_selenium' When(/^I open my eyes to test "([^"]*)"$/) do |test_name| ensure_eyes_available @original_browser = @browser @browser = @eyes.open(app_name: 'Code.org', test_name: test_name, driver: @browser) end And(/^I close my eyes$/) do @browser = @original_browser @eyes.cl...
3
0.136364
3
0
05aacc127ad36bb71881401d5b4eb3306b59658a
_posts/2018/2018-01-18-Stop-Chrome-From-Reloading-Tabs.md
_posts/2018/2018-01-18-Stop-Chrome-From-Reloading-Tabs.md
--- layout: post title: Stop Chrome from Reloading Tabs disqus_identifier: 1 comments: true categories: chrome tips GitHub PR --- Sometimes when I'm working on a long pull request in GitHub and switch back to the PR tab after a while of looking at other pages the Pull Request page will automcaticall reload ...
--- layout: post title: Stop Chrome from Reloading Tabs disqus_identifier: 1 comments: true categories: chrome tips GitHub PR --- Sometimes when I'm working on a long pull request in GitHub and switch back to the PR tab after a while of looking at other pages the Pull Request page will automcaticall reload ...
Fix wording. Make link a link.
Fix wording. Make link a link.
Markdown
mit
jquintus/jquintus.github.io,jquintus/jquintus.github.io,jquintus/jquintus.github.io,jquintus/jquintus.github.io,jquintus/jquintus.github.io,jquintus/jquintus.github.io
markdown
## Code Before: --- layout: post title: Stop Chrome from Reloading Tabs disqus_identifier: 1 comments: true categories: chrome tips GitHub PR --- Sometimes when I'm working on a long pull request in GitHub and switch back to the PR tab after a while of looking at other pages the Pull Request page will autom...
--- layout: post title: Stop Chrome from Reloading Tabs disqus_identifier: 1 comments: true categories: chrome tips GitHub PR --- - Sometimes when I'm working on a long pull request in GitHub and switch back to the PR tab after a while of looking at other pages the Pull Request page ...
14
0.933333
12
2
785550f6c86f7e7e299f976894c7a37084ca6a8e
appveyor.yml
appveyor.yml
platform: - x64 environment: global: MSYS2_BASEVER: 20150512 matrix: - MSYS2_ARCH: x86_64 install: - ps: | $url = "http://sourceforge.net/projects/mingw-w64/files/" $url += "Toolchains%20targetting%20Win64/Personal%20Builds/" $url += "mingw-builds/4.9.2/threads-win32/seh/" ...
platform: - x64 install: - ps: Start-FileDownload 'http://static.rust-lang.org/dist/rust-1.0.0-x86_64-pc-windows-gnu.exe' - rust-1.0.0-x86_64-pc-windows-gnu.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust" - SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin - rustc --version - cargo --version bu...
Remove MinGW from AppVeyor build
Remove MinGW from AppVeyor build
YAML
mit
rschmitt/heatseeker,rschmitt/heatseeker
yaml
## Code Before: platform: - x64 environment: global: MSYS2_BASEVER: 20150512 matrix: - MSYS2_ARCH: x86_64 install: - ps: | $url = "http://sourceforge.net/projects/mingw-w64/files/" $url += "Toolchains%20targetting%20Win64/Personal%20Builds/" $url += "mingw-builds/4.9.2/threads-w...
platform: - x64 - environment: - global: - MSYS2_BASEVER: 20150512 - matrix: - - MSYS2_ARCH: x86_64 install: - - ps: | - $url = "http://sourceforge.net/projects/mingw-w64/files/" - $url += "Toolchains%20targetting%20Win64/Personal%20Builds/" - $url += "mingw-builds/4.9.2/t...
14
0.482759
0
14
66fc5e3a4d190b950633e68e6b701efbd83e987a
src/tasks/add-sample-video-view.js
src/tasks/add-sample-video-view.js
import { getGrpcClientAsync } from 'killrvideo-nodejs-common'; import { STATS_SERVICE } from '../services/stats'; /** * Adds a view to a video. */ export function addSampleVideoView() { return getGrpcClientAsync(STATS_SERVICE) .then(client => { throw new Error('Not implemented'); }); }; export defau...
import Promise from 'bluebird'; import { getGrpcClientAsync } from 'killrvideo-nodejs-common'; import { STATS_SERVICE } from '../services/stats'; import { getSampleVideoIdAsync } from '../utils/get-sample-data'; import { stringToUuid } from '../utils/protobuf-conversions'; /** * Adds a view to a video. */ export asy...
Add sample video view impl
Add sample video view impl
JavaScript
apache-2.0
KillrVideo/killrvideo-generator,KillrVideo/killrvideo-generator
javascript
## Code Before: import { getGrpcClientAsync } from 'killrvideo-nodejs-common'; import { STATS_SERVICE } from '../services/stats'; /** * Adds a view to a video. */ export function addSampleVideoView() { return getGrpcClientAsync(STATS_SERVICE) .then(client => { throw new Error('Not implemented'); }); ...
+ import Promise from 'bluebird'; import { getGrpcClientAsync } from 'killrvideo-nodejs-common'; import { STATS_SERVICE } from '../services/stats'; + import { getSampleVideoIdAsync } from '../utils/get-sample-data'; + import { stringToUuid } from '../utils/protobuf-conversions'; /** * Adds a view to a video...
19
1.357143
14
5
1c2f808025bc91c2ff7790577e8b479a1816f503
sketch_feb14b/sketch_feb14b.ino
sketch_feb14b/sketch_feb14b.ino
void setup() { // put your setup code here, to run once: } void loop() { // put your main code here, to run repeatedly: }
/* Turns on an LED for one seconds, then off for one second, repeat. This example is adapted from Examples > 01.Basics > Blink */ // On the Arduino UNO the onboard LED is attached to digital pin 13 #define LED 13 void setup() { // put your setup code here, to run once: pinMode(LED, OUTPUT); } void loop()...
Add code for blinking LED on digital out 13
Add code for blinking LED on digital out 13 Signed-off-by: Gianpaolo Macario <f8885408b8c3d931b330bae3c3a28a3af912c463@gmail.com>
Arduino
mpl-2.0
gmacario/learning-arduino
arduino
## Code Before: void setup() { // put your setup code here, to run once: } void loop() { // put your main code here, to run repeatedly: } ## Instruction: Add code for blinking LED on digital out 13 Signed-off-by: Gianpaolo Macario <f8885408b8c3d931b330bae3c3a28a3af912c463@gmail.com> ## Code After: /* Turns ...
+ /* + Turns on an LED for one seconds, then off for one second, repeat. + + This example is adapted from Examples > 01.Basics > Blink + + */ + + // On the Arduino UNO the onboard LED is attached to digital pin 13 + #define LED 13 + void setup() { // put your setup code here, to run once: + pinMode(...
15
1.666667
15
0
cd471449edad56ef6c3a69d025130f4fb8ea1fea
plumbium/artefacts.py
plumbium/artefacts.py
import os.path from utils import file_sha1sum class Artefact(object): def __init__(self, filename, extension): if not filename.endswith(extension): raise ValueError self._filename = filename self._ext_length = len(extension) self._abspath = os.path.abspath(filename) ...
import os.path from utils import file_sha1sum class Artefact(object): def __init__(self, filename, extension): if not filename.endswith(extension): raise ValueError self._filename = filename self._ext_length = len(extension) self._abspath = os.path.abspath(filename) ...
Use correct method to get classname of self
Use correct method to get classname of self
Python
mit
jstutters/Plumbium
python
## Code Before: import os.path from utils import file_sha1sum class Artefact(object): def __init__(self, filename, extension): if not filename.endswith(extension): raise ValueError self._filename = filename self._ext_length = len(extension) self._abspath = os.path.abspa...
import os.path from utils import file_sha1sum class Artefact(object): def __init__(self, filename, extension): if not filename.endswith(extension): raise ValueError self._filename = filename self._ext_length = len(extension) self._abspath = os.path...
6
0.115385
3
3
2e0cd847e13278e0565561882233dbe9255b2868
addon/initialize.js
addon/initialize.js
import Ember from 'ember'; import ValidatorsMessages from 'ember-cp-validations/validators/messages'; const { Logger:logger } = Ember; export default function() { ValidatorsMessages.reopen({ intl: Ember.inject.service(), prefix: 'errors', getDescriptionFor(attribute, context = {}) { let key = `${...
import Ember from 'ember'; import ValidatorsMessages from 'ember-cp-validations/validators/messages'; const { Logger:logger } = Ember; export default function() { ValidatorsMessages.reopen({ intl: Ember.inject.service(), prefix: 'errors', getDescriptionFor(attribute, context = {}) { let key = `${...
Replace usage of `formatMessage(findTranslationByKey` with `t`
Replace usage of `formatMessage(findTranslationByKey` with `t`
JavaScript
mit
ember-intl/ember-intl-cp-validations,jasonmit/ember-intl-cp-validations,ember-intl/ember-intl-cp-validations,jasonmit/ember-intl-cp-validations
javascript
## Code Before: import Ember from 'ember'; import ValidatorsMessages from 'ember-cp-validations/validators/messages'; const { Logger:logger } = Ember; export default function() { ValidatorsMessages.reopen({ intl: Ember.inject.service(), prefix: 'errors', getDescriptionFor(attribute, context = {}) { ...
import Ember from 'ember'; import ValidatorsMessages from 'ember-cp-validations/validators/messages'; const { Logger:logger } = Ember; export default function() { ValidatorsMessages.reopen({ intl: Ember.inject.service(), prefix: 'errors', getDescriptionFor(attribute, context = {})...
4
0.114286
2
2
9df4eb7d98a87da233f36713f26c7b5b4e51c7c3
project/plugins.sbt
project/plugins.sbt
name := "scalabrad-web" addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.0-RC1") addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "3.0.0")
name := "scalabrad-web" resolvers += "Typesafe Releases" at "http://repo.typesafe.com/typesafe/releases/" addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.0-RC5") addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "3.0.0")
Add typesafe resolver so dependencies can be loaded.
Add typesafe resolver so dependencies can be loaded.
Scala
mit
labrad/scalabrad-web,labrad/scalabrad-web,labrad/scalabrad-web,labrad/scalabrad-web,labrad/scalabrad-web
scala
## Code Before: name := "scalabrad-web" addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.0-RC1") addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "3.0.0") ## Instruction: Add typesafe resolver so dependencies can be loaded. ## Code After: name := "scalabrad-web" resolvers += "Typesafe Releases" ...
name := "scalabrad-web" + resolvers += "Typesafe Releases" at "http://repo.typesafe.com/typesafe/releases/" + - addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.0-RC1") ? ^ + addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.0-RC5") ? ...
4
1
3
1
d58ca526a218a3c8c2b88a3fa5942cc85f10de66
packages/fe/feldspar-signal.yaml
packages/fe/feldspar-signal.yaml
homepage: https://github.com/markus-git/feldspar-signal changelog-type: '' hash: 4d08788c2c10e6cb23232f1c5744eee04ea4587a44f1912f5b79c95012cda537 test-bench-deps: {} maintainer: mararon@chalmers.se synopsis: Signal Processing extension for Feldspar changelog: '' basic-deps: base: ! '>=4.7 && <4.8' all-versions: - '0....
homepage: https://github.com/markus-git/feldspar-signal changelog-type: '' hash: 5e882174493e067c9772ef2ec01d27ac529ad70692250d67da1287216a3e27c0 test-bench-deps: {} maintainer: mararon@chalmers.se synopsis: Signal Processing extension for Feldspar changelog: '' basic-deps: feldspar-language: -any feldspar-compiler...
Update from Hackage at 2015-06-11T12:40:46+0000
Update from Hackage at 2015-06-11T12:40:46+0000
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/markus-git/feldspar-signal changelog-type: '' hash: 4d08788c2c10e6cb23232f1c5744eee04ea4587a44f1912f5b79c95012cda537 test-bench-deps: {} maintainer: mararon@chalmers.se synopsis: Signal Processing extension for Feldspar changelog: '' basic-deps: base: ! '>=4.7 && <4.8' all...
homepage: https://github.com/markus-git/feldspar-signal changelog-type: '' - hash: 4d08788c2c10e6cb23232f1c5744eee04ea4587a44f1912f5b79c95012cda537 + hash: 5e882174493e067c9772ef2ec01d27ac529ad70692250d67da1287216a3e27c0 test-bench-deps: {} maintainer: mararon@chalmers.se synopsis: Signal Processing extension...
14
0.7
11
3
bad3fc741f359c70235f94497e54cdd820d70ddd
lib/openlogi/client.rb
lib/openlogi/client.rb
module Openlogi class Client attr_accessor :last_response def configure yield configuration end def configuration @configuration ||= Openlogi::Configuration.new end def test_mode? !!test_mode end def endpoint test_mode? ? "https://api-demo.openlogi.com" : "h...
module Openlogi class Client attr_accessor :last_response def configure yield configuration end def configuration @configuration ||= Openlogi::Configuration.new end def test_mode? !!test_mode end def endpoint test_mode? ? "https://api-demo.openlogi.com" : "h...
Add validations method for shortcut
Add validations method for shortcut
Ruby
mit
degica/openlogi,degica/openlogi
ruby
## Code Before: module Openlogi class Client attr_accessor :last_response def configure yield configuration end def configuration @configuration ||= Openlogi::Configuration.new end def test_mode? !!test_mode end def endpoint test_mode? ? "https://api-demo.op...
module Openlogi class Client attr_accessor :last_response def configure yield configuration end def configuration @configuration ||= Openlogi::Configuration.new end def test_mode? !!test_mode end def endpoint test_mode? ? ...
4
0.111111
4
0
0ce7a7b396dd62c7e52e355108f8f037335bc5ca
src/sentry/api/endpoints/project_environments.py
src/sentry/api/endpoints/project_environments.py
from __future__ import absolute_import from rest_framework.response import Response from sentry.api.bases.project import ProjectEndpoint from sentry.api.serializers import serialize from sentry.models import EnvironmentProject environment_visibility_filter_options = { 'all': lambda queryset: queryset, 'hidd...
from __future__ import absolute_import from rest_framework.response import Response from sentry.api.bases.project import ProjectEndpoint from sentry.api.serializers import serialize from sentry.models import EnvironmentProject environment_visibility_filter_options = { 'all': lambda queryset: queryset, 'hidd...
Hide "No Environment" environment from project environments
api: Hide "No Environment" environment from project environments
Python
bsd-3-clause
beeftornado/sentry,beeftornado/sentry,mvaled/sentry,ifduyue/sentry,ifduyue/sentry,mvaled/sentry,mvaled/sentry,beeftornado/sentry,mvaled/sentry,looker/sentry,looker/sentry,looker/sentry,ifduyue/sentry,ifduyue/sentry,mvaled/sentry,looker/sentry,mvaled/sentry,ifduyue/sentry,looker/sentry
python
## Code Before: from __future__ import absolute_import from rest_framework.response import Response from sentry.api.bases.project import ProjectEndpoint from sentry.api.serializers import serialize from sentry.models import EnvironmentProject environment_visibility_filter_options = { 'all': lambda queryset: que...
from __future__ import absolute_import from rest_framework.response import Response from sentry.api.bases.project import ProjectEndpoint from sentry.api.serializers import serialize from sentry.models import EnvironmentProject environment_visibility_filter_options = { 'all': lambda queryse...
8
0.235294
8
0
02419fb3e5089865fbd9c491cfd4b49d2e1e653d
lib/assets/test/spec/cartodb3/routes/handle-modals-route.spec.js
lib/assets/test/spec/cartodb3/routes/handle-modals-route.spec.js
var handleModalsRoute = require('cartodb3/routes/handle-modals-route'); describe('routes/handleModalsRoute', function () { it('should handle modals route', function () { var modals = jasmine.createSpyObj('modals', ['destroy']); handleModalsRoute(['layer_analyses', 'l1-1', 'a1', null], modals); expect(m...
var handleModalsRoute = require('cartodb3/routes/handle-modals-route'); describe('routes/handleModalsRoute', function () { it('should handle modals route', function () { var modals = jasmine.createSpyObj('modals', ['destroy']); handleModalsRoute(['layer_analyses', 'l1-1', 'a1', null], modals); expect(m...
Add tests for keepOnRouteChange property
Add tests for keepOnRouteChange property
JavaScript
bsd-3-clause
CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb
javascript
## Code Before: var handleModalsRoute = require('cartodb3/routes/handle-modals-route'); describe('routes/handleModalsRoute', function () { it('should handle modals route', function () { var modals = jasmine.createSpyObj('modals', ['destroy']); handleModalsRoute(['layer_analyses', 'l1-1', 'a1', null], modals...
var handleModalsRoute = require('cartodb3/routes/handle-modals-route'); describe('routes/handleModalsRoute', function () { it('should handle modals route', function () { var modals = jasmine.createSpyObj('modals', ['destroy']); handleModalsRoute(['layer_analyses', 'l1-1', 'a1', null], modals);...
11
1
11
0