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
f44b83f5ea4c5e7699d94e99486b1dbd814f536a
chrome/android/java/res/layout/share_dialog_item.xml
chrome/android/java/res/layout/share_dialog_item.xml
<?xml version="1.0" encoding="utf-8"?> <!-- Copyright 2014 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. --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_...
<?xml version="1.0" encoding="utf-8"?> <!-- Copyright 2014 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. --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_...
Fix text alignment in "Share" app picker dialog.
Fix text alignment in "Share" app picker dialog. BUG=508651 Review URL: https://codereview.chromium.org/1228943003 Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#338154}
XML
bsd-3-clause
lihui7115/ChromiumGStreamerBackend,ltilve/ChromiumGStreamerBackend,lihui7115/ChromiumGStreamerBackend,CapOM/ChromiumGStreamerBackend,CapOM/ChromiumGStreamerBackend,ltilve/ChromiumGStreamerBackend,CapOM/ChromiumGStreamerBackend,lihui7115/ChromiumGStreamerBackend,ltilve/ChromiumGStreamerBackend,lihui7115/ChromiumGStreame...
xml
## Code Before: <?xml version="1.0" encoding="utf-8"?> <!-- Copyright 2014 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. --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layo...
<?xml version="1.0" encoding="utf-8"?> <!-- Copyright 2014 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. --> - Use of this source code is governed by a BSD-style license that can be - found in t...
10
0.4
6
4
a9d1182ae79cad318040fb4e67a931511fc86a59
src/index.js
src/index.js
export default function move (array, moveIndex, toIndex) { /* #move - Moves an array item from one position in an array to another. Note: This is a pure function so a new array will be returned, instead of altering the array argument. Arguments: 1. array (String) : Array in which to move an it...
export default function move (array, moveIndex, toIndex) { /* #move - Moves an array item from one position in an array to another. Note: This is a pure function so a new array will be returned, instead of altering the array argument. Arguments: 1. array (String) : Array in which to move an it...
Use of const and reduced duplication
Use of const and reduced duplication Changed code to use const instead of let, as these variables should be read-only references to these values. I've also removed the only duplicated variable definition; I've named it targetIndex as I couldn't think of anything better (naming things is hard!) This is a great repo...
JavaScript
mit
granteagon/move
javascript
## Code Before: export default function move (array, moveIndex, toIndex) { /* #move - Moves an array item from one position in an array to another. Note: This is a pure function so a new array will be returned, instead of altering the array argument. Arguments: 1. array (String) : Array in whi...
export default function move (array, moveIndex, toIndex) { /* #move - Moves an array item from one position in an array to another. Note: This is a pure function so a new array will be returned, instead of altering the array argument. Arguments: 1. array (String) : Array in whi...
11
0.323529
6
5
45731725e296f521e4ae2867742e7ea33a6a2ef6
libpkg/pkg_error.h
libpkg/pkg_error.h
_pkg_error_set(code, fmt " [at %s:%d]", ##__VA_ARGS__, __FILE__, __LINE__) #else # define pkg_error_set _pkg_error_set #endif #define ERROR_BAD_ARG(name) \ pkg_error_set(EPKG_FATAL, "Bad argument `%s` in %s", name, __FUNCTION__) #define ERROR_SQLITE(db) \ pkg_error_set(EPKG_FATAL, "%s (sqlite at %s:%d)", sqlite3_...
_pkg_error_set(code, fmt " [at %s:%d]", ##__VA_ARGS__, __FILE__, __LINE__) #else # define pkg_error_set _pkg_error_set #endif #define ERROR_BAD_ARG(name) \ pkg_error_set(EPKG_FATAL, "Bad argument `%s` in %s", name, __FUNCTION__) #define ERROR_SQLITE(db) \ pkg_error_set(EPKG_FATAL, "%s (sqlite)", sqlite3_errmsg(db...
Revert "Indicate the location of sqlite failures."
Revert "Indicate the location of sqlite failures." This reverts commit 2686383409d98488ae7b2c39d531af9ef380e21a.
C
bsd-2-clause
khorben/pkg,junovitch/pkg,skoef/pkg,skoef/pkg,junovitch/pkg,en90/pkg,khorben/pkg,Open343/pkg,en90/pkg,khorben/pkg,Open343/pkg
c
## Code Before: _pkg_error_set(code, fmt " [at %s:%d]", ##__VA_ARGS__, __FILE__, __LINE__) #else # define pkg_error_set _pkg_error_set #endif #define ERROR_BAD_ARG(name) \ pkg_error_set(EPKG_FATAL, "Bad argument `%s` in %s", name, __FUNCTION__) #define ERROR_SQLITE(db) \ pkg_error_set(EPKG_FATAL, "%s (sqlite at %...
_pkg_error_set(code, fmt " [at %s:%d]", ##__VA_ARGS__, __FILE__, __LINE__) #else # define pkg_error_set _pkg_error_set #endif #define ERROR_BAD_ARG(name) \ pkg_error_set(EPKG_FATAL, "Bad argument `%s` in %s", name, __FUNCTION__) #define ERROR_SQLITE(db) \ - pkg_error_set(EPKG_FATAL, "%s (sqlite ...
2
0.142857
1
1
5bd3415074d04e948f23d1d26c0819438554dfdf
spec/spec_helper.rb
spec/spec_helper.rb
require 'serverspec' require 'net/ssh' set :backend, :ssh if ENV['ASK_SUDO_PASSWORD'] begin require 'highline/import' rescue LoadError fail "highline is not available. Try installing it." end set :sudo_password, ask("Enter sudo password: ") { |q| q.echo = false } else set :sudo_password, ENV['SUDO_P...
require 'serverspec' require 'net/ssh' require 'yaml' properties = YAML.load_file('properties.yml') set :backend, :ssh if ENV['ASK_SUDO_PASSWORD'] begin require 'highline/import' rescue LoadError fail "highline is not available. Try installing it." end set :sudo_password, ask("Enter sudo password: ")...
Fix tests that use properties
Fix tests that use properties
Ruby
mpl-2.0
joyent/lx-brand-image-tests,joyent/lx-brand-image-tests
ruby
## Code Before: require 'serverspec' require 'net/ssh' set :backend, :ssh if ENV['ASK_SUDO_PASSWORD'] begin require 'highline/import' rescue LoadError fail "highline is not available. Try installing it." end set :sudo_password, ask("Enter sudo password: ") { |q| q.echo = false } else set :sudo_passw...
require 'serverspec' require 'net/ssh' + require 'yaml' + + properties = YAML.load_file('properties.yml') set :backend, :ssh if ENV['ASK_SUDO_PASSWORD'] begin require 'highline/import' rescue LoadError fail "highline is not available. Try installing it." end set :sudo_password...
4
0.117647
4
0
112ba8a708fb36774a9b976580a6da140c47b3b7
src/ox/fs/CMakeLists.txt
src/ox/fs/CMakeLists.txt
cmake_minimum_required(VERSION 2.8) add_library( OxFS filesystem.cpp ) add_executable( oxfstool oxfstool.cpp ) set_target_properties(oxfstool PROPERTIES OUTPUT_NAME oxfs) target_link_libraries(oxfstool OxFS OxStd) install( FILES filestore.hpp filesystem.hpp inodemgr.hpp DESTINATION include/ox/fs ) i...
cmake_minimum_required(VERSION 2.8) add_library( OxFS filesystem.cpp ) add_executable( oxfstool oxfstool.cpp ) set_target_properties(oxfstool PROPERTIES OUTPUT_NAME oxfs) target_link_libraries(oxfstool OxFS OxStd) install( FILES filestore.hpp filesystem.hpp inodemgr.hpp DESTINATION include/ox/fs ) i...
Add CMake install parameters to generate complete dist
Add CMake install parameters to generate complete dist
Text
mpl-2.0
wombatant/wfs,wombatant/wfs,wombatant/memphis,wombatant/ox,wombatant/ox
text
## Code Before: cmake_minimum_required(VERSION 2.8) add_library( OxFS filesystem.cpp ) add_executable( oxfstool oxfstool.cpp ) set_target_properties(oxfstool PROPERTIES OUTPUT_NAME oxfs) target_link_libraries(oxfstool OxFS OxStd) install( FILES filestore.hpp filesystem.hpp inodemgr.hpp DESTINATION in...
cmake_minimum_required(VERSION 2.8) add_library( OxFS filesystem.cpp ) add_executable( oxfstool oxfstool.cpp ) set_target_properties(oxfstool PROPERTIES OUTPUT_NAME oxfs) target_link_libraries(oxfstool OxFS OxStd) install( FILES filestore.hpp filesystem.hpp inodemgr...
4
0.142857
3
1
5fe68b959073e0893331baef16b966f6d8b19061
project.clj
project.clj
(defproject mvxcvi/multihash "1.1.0-SNAPSHOT" :description "Native Clojure implementation of the multihash standard." :url "https://github.com/greglook/clj-multihash" :license {:name "Public Domain" :url "http://unlicense.org/"} :deploy-branches ["master"] :plugins [[lein-cloverage "1.0.6"]] ...
(defproject mvxcvi/multihash "1.1.0-SNAPSHOT" :description "Native Clojure implementation of the multihash standard." :url "https://github.com/greglook/clj-multihash" :license {:name "Public Domain" :url "http://unlicense.org/"} :deploy-branches ["master"] :plugins [[lein-cloverage "1.0.6"]] ...
Add tag type for whidbey.
Add tag type for whidbey.
Clojure
unlicense
greglook/clj-multihash
clojure
## Code Before: (defproject mvxcvi/multihash "1.1.0-SNAPSHOT" :description "Native Clojure implementation of the multihash standard." :url "https://github.com/greglook/clj-multihash" :license {:name "Public Domain" :url "http://unlicense.org/"} :deploy-branches ["master"] :plugins [[lein-clove...
(defproject mvxcvi/multihash "1.1.0-SNAPSHOT" :description "Native Clojure implementation of the multihash standard." :url "https://github.com/greglook/clj-multihash" :license {:name "Public Domain" :url "http://unlicense.org/"} :deploy-branches ["master"] :plugins [[lein-c...
4
0.222222
3
1
352dc0419b1d567081ea685862d2d6040265579c
dynamic/index.jade
dynamic/index.jade
doctype html html //- head title= something ? "Something" : "Nothing" link(rel="stylesheet", href="/style/base.css") include header.jade style. .countdown{text-align:center;} #countdown{font-size:100px;font-weight:100;} #period-name{font-size:50px;font-weight:100;} #in{font-size:16px;} body di...
doctype html html include header.jade style. .countdown{text-align:center;} #countdown{font-size:100px;font-weight:100;} #period-name{font-size:50px;font-weight:100;} #in{font-size:16px;} script(async,defer,src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js") script(async,defer,src="//c...
Add datejs and jquery script stuffs
Add datejs and jquery script stuffs
Jade
agpl-3.0
sbhs-forkbombers/sbhs-timetable-node,sbhs-forkbombers/sbhs-timetable-node
jade
## Code Before: doctype html html //- head title= something ? "Something" : "Nothing" link(rel="stylesheet", href="/style/base.css") include header.jade style. .countdown{text-align:center;} #countdown{font-size:100px;font-weight:100;} #period-name{font-size:50px;font-weight:100;} #in{font-size:1...
doctype html html - //- - head - title= something ? "Something" : "Nothing" - link(rel="stylesheet", href="/style/base.css") include header.jade style. .countdown{text-align:center;} #countdown{font-size:100px;font-weight:100;} #period-name{font-size:50px;font-weight:100;} #in{fon...
6
0.285714
2
4
4b083058b24c2bfd2ffcfe27af9a51db902d8d01
packages/te/text-utils.yaml
packages/te/text-utils.yaml
homepage: https://github.com/agrafix/text-utils#readme changelog-type: '' hash: 6cbd59e749e0a75c25a40fe3bb2024e80dcacaca70ba6f44c4544bead7b0b2b2 test-bench-deps: HTF: -any base: ! '>=4.7 && <5' text: -any maintainer: mail@athiemann.net synopsis: Various text utilities changelog: '' basic-deps: base: ! '>=4.7 &&...
homepage: https://github.com/agrafix/text-utils#readme changelog-type: '' hash: 444b4225471b7b71ff1a6e2af8d57bd4d817fcb1941cce632d22a6c419812926 test-bench-deps: HTF: -any base: '>=4.7 && <5' text: -any maintainer: mail@athiemann.net synopsis: Various text utilities changelog: '' basic-deps: base: '>=4.7 && <5'...
Update from Hackage at 2020-05-18T02:37:53Z
Update from Hackage at 2020-05-18T02:37:53Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/agrafix/text-utils#readme changelog-type: '' hash: 6cbd59e749e0a75c25a40fe3bb2024e80dcacaca70ba6f44c4544bead7b0b2b2 test-bench-deps: HTF: -any base: ! '>=4.7 && <5' text: -any maintainer: mail@athiemann.net synopsis: Various text utilities changelog: '' basic-deps: b...
homepage: https://github.com/agrafix/text-utils#readme changelog-type: '' - hash: 6cbd59e749e0a75c25a40fe3bb2024e80dcacaca70ba6f44c4544bead7b0b2b2 + hash: 444b4225471b7b71ff1a6e2af8d57bd4d817fcb1941cce632d22a6c419812926 test-bench-deps: HTF: -any - base: ! '>=4.7 && <5' ? -- + base: '>=4.7 && <5' ...
16
0.571429
7
9
5bf01684ab38ac637b79cf586fedd4d11d781678
composer.json
composer.json
{ "name": "clue/sockets-react", "require": { "clue/socket-raw": "dev-master", "evenement/evenement": "1.*", "react/event-loop": "0.2.*", "react/promise": "1.*", "react/stream": "0.2.*", "react/socket": "0.2.*" } }
{ "name": "clue/socket-react", "homepage": "https://github.com/clue/socket-react", "license": "MIT", "require": { "clue/socket-raw": "dev-master", "evenement/evenement": "1.*", "react/event-loop": "0.2.*", "react/promise": "1.*", "react/stream": "0.2.*", "...
Rename to clue/socket-react and support autoloading
Rename to clue/socket-react and support autoloading
JSON
mit
clue/php-socket-react
json
## Code Before: { "name": "clue/sockets-react", "require": { "clue/socket-raw": "dev-master", "evenement/evenement": "1.*", "react/event-loop": "0.2.*", "react/promise": "1.*", "react/stream": "0.2.*", "react/socket": "0.2.*" } } ## Instruction: Rename to clu...
{ - "name": "clue/sockets-react", ? - + "name": "clue/socket-react", + "homepage": "https://github.com/clue/socket-react", + "license": "MIT", "require": { "clue/socket-raw": "dev-master", "evenement/evenement": "1.*", "react/event-loop": "0...
7
0.636364
6
1
febc6372b378b3ae85058bfc1874369552b305b4
stagemonitor-eum-server/src/main/java/org/stagemonitor/eum/EumApplication.java
stagemonitor-eum-server/src/main/java/org/stagemonitor/eum/EumApplication.java
package org.stagemonitor.eum; import org.springframework.boot.Banner; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.web.support.SpringBootServletInitializer; import org.stagemonitor.core.Stagemonito...
package org.stagemonitor.eum; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.web.support.SpringBootServletInitializer; import org.stagemonitor.core.Stagemonitor; @SpringBootApplication public class ...
Enable banner for eum server
Enable banner for eum server
Java
apache-2.0
stagemonitor/stagemonitor,stagemonitor/stagemonitor,stagemonitor/stagemonitor,stagemonitor/stagemonitor
java
## Code Before: package org.stagemonitor.eum; import org.springframework.boot.Banner; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.web.support.SpringBootServletInitializer; import org.stagemonitor....
package org.stagemonitor.eum; - import org.springframework.boot.Banner; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.web.support.SpringBootServletInitializer; import org.stagemonitor.co...
3
0.115385
1
2
bed9ebebc62c28ea7116875b5a358a09d88f4eba
src/import/chips/p9/procedures/xml/error_info/p9_pm_ocb_init_errors.xml
src/import/chips/p9/procedures/xml/error_info/p9_pm_ocb_init_errors.xml
<!-- IBM_PROLOG_BEGIN_TAG --> <!-- This is an automatically generated prolog. --> <!-- --> <!-- $Source: chips/p9/procedures/ipl/hwp/p9_pm_ocb_init_errors.xml $ --> ...
<!-- IBM_PROLOG_BEGIN_TAG --> <!-- This is an automatically generated prolog. --> <!-- --> <!-- $Source: chips/p9/procedures/xml/error_info/p9_pm_ocb_init_errors.xml $ -->...
Fix all incorrect copyright prologs
Fix all incorrect copyright prologs Change-Id: Ia76346ebea53beaa91ef525138b0b581286d6db3 Original-Change-Id: I293e79b5a37bf4180f6dd19d259fac3434327fb3 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22759 Tested-by: Jenkins Server Reviewed-by: Joseph J. McGill <4a85c6614f9f065f63d8fd57cde15e48af07ea2a@us.ib...
XML
apache-2.0
Over-enthusiastic/hostboot,Over-enthusiastic/hostboot,Over-enthusiastic/hostboot,Over-enthusiastic/hostboot,Over-enthusiastic/hostboot
xml
## Code Before: <!-- IBM_PROLOG_BEGIN_TAG --> <!-- This is an automatically generated prolog. --> <!-- --> <!-- $Source: chips/p9/procedures/ipl/hwp/p9_pm_ocb_init_errors....
<!-- IBM_PROLOG_BEGIN_TAG --> <!-- This is an automatically generated prolog. --> <!-- --> - <!-- $Source: chips/p9/procedures/ipl/hwp/p9_pm_ocb_init_errors.xml $ ...
2
0.055556
1
1
f31c1adedd9a8e9f9a3a59bd1fb13822a3931682
README.md
README.md
WP-Term ======= Pointless PHP script that provides visitors of your [WordPress](https://github.com/WordPress/WordPress) website a unix-like CLI to view and navigate posts / pages. Not to be confused with [WP-CLI](https://github.com/wp-cli/wp-cli) or [WP-Terminal](http://wordpress.org/plugins/wp-terminal/). Demo ----...
WP-Term ======= Pointless PHP script that provides visitors of your [WordPress](https://github.com/WordPress/WordPress) website a unix-like CLI to view and navigate posts / pages. Not to be confused with [WP-CLI](https://github.com/wp-cli/wp-cli) or [WP-Terminal](http://wordpress.org/plugins/wp-terminal/). Demo ----...
Add link to my blog
Add link to my blog
Markdown
mit
ockcyp/wp-term,ockcyp/wp-term,ockcyp/wp-term,ockcyp/wp-term
markdown
## Code Before: WP-Term ======= Pointless PHP script that provides visitors of your [WordPress](https://github.com/WordPress/WordPress) website a unix-like CLI to view and navigate posts / pages. Not to be confused with [WP-CLI](https://github.com/wp-cli/wp-cli) or [WP-Terminal](http://wordpress.org/plugins/wp-termin...
WP-Term ======= Pointless PHP script that provides visitors of your [WordPress](https://github.com/WordPress/WordPress) website a unix-like CLI to view and navigate posts / pages. Not to be confused with [WP-CLI](https://github.com/wp-cli/wp-cli) or [WP-Terminal](http://wordpress.org/plugins/wp-terminal/)...
3
0.1
3
0
ede5962c9926c8a852ccbc307e3a970ede4d6954
build/server.js
build/server.js
console.time('Starting server'); require('promise-helpers'); var fs = require('fs'); var path = require('path'); var express = require('express'); var app = express(); /** * Serve static files such as css, js, images */ app.use('/images', express.static('dist/assets/images')); app.use('/javascripts', express.static...
console.time('Starting server'); require('promise-helpers'); var fs = require('fs'); var path = require('path'); var express = require('express'); var app = express(); /** * Serve static files such as css, js, images */ app.use('/images', express.static('dist/assets/images')); app.use('/javascripts', express.static...
Fix broken path to css caused by previous commit
Fix broken path to css caused by previous commit
JavaScript
mit
LandRegistry/land-registry-elements,LandRegistry/land-registry-elements,LandRegistry/land-registry-elements,LandRegistry/land-registry-elements,LandRegistry/land-registry-elements
javascript
## Code Before: console.time('Starting server'); require('promise-helpers'); var fs = require('fs'); var path = require('path'); var express = require('express'); var app = express(); /** * Serve static files such as css, js, images */ app.use('/images', express.static('dist/assets/images')); app.use('/javascripts'...
console.time('Starting server'); require('promise-helpers'); var fs = require('fs'); var path = require('path'); var express = require('express'); var app = express(); /** * Serve static files such as css, js, images */ app.use('/images', express.static('dist/assets/images')); app.use('/ja...
2
0.054054
1
1
0825a47424bd33e547f23bbefe87947cc06a9aaf
requirements.txt
requirements.txt
twisted==13.0.0 apscheduler==2.1.0 zope.component==4.1.0 zope.interface==4.0.5 cyclone==1.1 storm==0.19 transaction==1.4.1 txsocksx==0.0.2 PyCrypto==2.6 scrypt==0.5.5 python_gnupg==0.3.4
twisted>=13.0.0 apscheduler>=2.1.0 zope.component>=4.1.0 zope.interface>=4.0.5 cyclone>=1.1 storm>=0.19 transaction>=1.4.1 txsocksx>=0.0.2 PyCrypto>=2.6 scrypt>=0.5.5 python_gnupg>=0.3.4
Change version to be >=
Change version to be >=
Text
agpl-3.0
vodkina/GlobaLeaks,vodkina/GlobaLeaks,vodkina/GlobaLeaks,vodkina/GlobaLeaks
text
## Code Before: twisted==13.0.0 apscheduler==2.1.0 zope.component==4.1.0 zope.interface==4.0.5 cyclone==1.1 storm==0.19 transaction==1.4.1 txsocksx==0.0.2 PyCrypto==2.6 scrypt==0.5.5 python_gnupg==0.3.4 ## Instruction: Change version to be >= ## Code After: twisted>=13.0.0 apscheduler>=2.1.0 zope.component>=4.1.0 zop...
- twisted==13.0.0 ? ^ + twisted>=13.0.0 ? ^ - apscheduler==2.1.0 ? ^ + apscheduler>=2.1.0 ? ^ - zope.component==4.1.0 ? ^ + zope.component>=4.1.0 ? ^ - zope.interface==4.0.5 ? ^ + zope.interface>=4.0.5 ? ^ - cyclone==1.1...
22
2
11
11
7a88ce0d8014e4db61473c7c1e57d33f8d016dd7
Components/team.jsx
Components/team.jsx
import React from 'react'; var Team = React.createClass({ render : function () { if (typeof this.props.selectPlayers === 'undefined') { return null; } else { var playerLists; playerLists = this.props.selectPlayers.players.map(function(p) { return (<li>...
import React from 'react'; var position = { keepers : [], defenders : [], midfields : [], forwards : [] } var Team = React.createClass({ render : function () { if (typeof this.props.selectPlayers === 'undefined') { return null; } else { var f = _.chain(thi...
Test lodash to grouping players
Test lodash to grouping players
JSX
mit
ryanpark/FEPL,ryanpark/FEPL---React-App,ryanpark/FEPL,ryanpark/FEPL---React-App
jsx
## Code Before: import React from 'react'; var Team = React.createClass({ render : function () { if (typeof this.props.selectPlayers === 'undefined') { return null; } else { var playerLists; playerLists = this.props.selectPlayers.players.map(function(p) { ...
import React from 'react'; + + var position = { + keepers : [], + defenders : [], + midfields : [], + forwards : [] + } var Team = React.createClass({ render : function () { if (typeof this.props.selectPlayers === 'undefined') { return null; } else { ...
35
1.25
32
3
05472cbe44ae78a3b82a1855fe9c91b90dc78013
pull_request_template.md
pull_request_template.md
(If applicable. Also, please censor any sensitive data) ### Notion Card Links (Please provide links to any relevant Notion card(s) relevant to this PR.) PR Checklist | Your Answer ------------ | ------------- Have you added and/or updated tests? | (The answer should mostly be 'YES'. If you answer 'NO', please justif...
(If applicable. Also, please censor any sensitive data) ### Notion Card Links (Please provide links to any relevant Notion card(s) relevant to this PR.) PR Checklist | Your Answer ------------ | ------------- Have you added and/or updated tests? | (The answer should mostly be 'YES'. If you answer 'NO', please justif...
Remove 2002 back-to-school webinars from PR checklist
Remove 2002 back-to-school webinars from PR checklist
Markdown
agpl-3.0
empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core
markdown
## Code Before: (If applicable. Also, please censor any sensitive data) ### Notion Card Links (Please provide links to any relevant Notion card(s) relevant to this PR.) PR Checklist | Your Answer ------------ | ------------- Have you added and/or updated tests? | (The answer should mostly be 'YES'. If you answer 'NO...
(If applicable. Also, please censor any sensitive data) ### Notion Card Links (Please provide links to any relevant Notion card(s) relevant to this PR.) PR Checklist | Your Answer ------------ | ------------- Have you added and/or updated tests? | (The answer should mostly be 'YES'. If you answer 'NO...
1
0.083333
0
1
0a80ed9a586f74dea0207305ba4e6155abd5f9db
spec/helpers/ems_cloud_helper/textual_summary_spec.rb
spec/helpers/ems_cloud_helper/textual_summary_spec.rb
require "spec_helper" describe EmsCloudHelper do def role_allows(_) true end before do @ems = FactoryGirl.create(:ems_openstack, :zone => FactoryGirl.build(:zone)) controller.stub(:restful?).and_return(true) controller.stub(:controller_name).and_return("ems_cloud") end context "textual_inst...
require "spec_helper" describe EmsCloudHelper do context "#textual_instances and #textual_images" do def role_allows(_) true end before do @ems = FactoryGirl.create(:ems_openstack, :zone => FactoryGirl.build(:zone)) controller.stub(:restful?).and_return(true) controller.stub(:con...
Remove extra contexts and create a common one
Remove extra contexts and create a common one
Ruby
apache-2.0
chessbyte/manageiq,mkanoor/manageiq,mzazrivec/manageiq,djberg96/manageiq,hstastna/manageiq,israel-hdez/manageiq,ailisp/manageiq,aufi/manageiq,romaintb/manageiq,jameswnl/manageiq,borod108/manageiq,durandom/manageiq,KevinLoiseau/manageiq,josejulio/manageiq,ilackarms/manageiq,fbladilo/manageiq,billfitzgerald0120/manageiq,...
ruby
## Code Before: require "spec_helper" describe EmsCloudHelper do def role_allows(_) true end before do @ems = FactoryGirl.create(:ems_openstack, :zone => FactoryGirl.build(:zone)) controller.stub(:restful?).and_return(true) controller.stub(:controller_name).and_return("ems_cloud") end conte...
require "spec_helper" describe EmsCloudHelper do + context "#textual_instances and #textual_images" do - def role_allows(_) + def role_allows(_) ? ++ - true + true ? ++ - end + end ? ++ - before do + before do ? ++ - @ems = FactoryGirl.create(:ems_openstack, :zone => Fact...
20
0.689655
9
11
47d9663adad363e2627e1ce8289cc17b06271a44
newtab.js
newtab.js
"use strict"; chrome.sessions.getDevices({}, function(sessions){ for (var i in sessions) { var device = sessions[i]; var deviceDiv = document.createElement("div"); deviceDiv.classList.add("device"); var deviceName = document.createElement("div"); deviceName.innerHTML = device.deviceName; de...
"use strict"; chrome.sessions.getDevices({}, function(sessions){ for (var i in sessions) { var device = sessions[i]; var deviceDiv = document.createElement("div"); deviceDiv.classList.add("device"); var deviceName = document.createElement("div"); deviceName.textContent = device.deviceName; ...
Use textContent instead of innerHTML.
Use textContent instead of innerHTML.
JavaScript
mit
lgarron/chrome-devices-in-new-tab,lgarron/chrome-devices-in-new-tab
javascript
## Code Before: "use strict"; chrome.sessions.getDevices({}, function(sessions){ for (var i in sessions) { var device = sessions[i]; var deviceDiv = document.createElement("div"); deviceDiv.classList.add("device"); var deviceName = document.createElement("div"); deviceName.innerHTML = device.de...
"use strict"; chrome.sessions.getDevices({}, function(sessions){ for (var i in sessions) { var device = sessions[i]; var deviceDiv = document.createElement("div"); deviceDiv.classList.add("device"); var deviceName = document.createElement("div"); - deviceName.innerHTML = dev...
4
0.093023
2
2
439d36dadfe36e6dec4cf213486acdc9fc7381f9
docs/requirements.txt
docs/requirements.txt
semantic_version ~=2.8 sphinx ~=2.3 sphinx-bootstrap-theme ~=0.7 recommonmark ~=0.6 nbsphinx ~=0.5 pygments-style-monokailight ~=0.4 ipython ~=7.11
semantic_version ~=2.8 sphinx ~=2.3 # sphinx-bootstrap-theme ~=0.7 https://github.com/althonos/sphinx-bootstrap-theme/archive/master.zip recommonmark ~=0.6 nbsphinx ~=0.5 pygments-style-monokailight ~=0.4 ipython ~=7.11
Use fork of `sphinx-bootstrap-theme` when building docs
Use fork of `sphinx-bootstrap-theme` when building docs [ci skip]
Text
mit
althonos/pronto
text
## Code Before: semantic_version ~=2.8 sphinx ~=2.3 sphinx-bootstrap-theme ~=0.7 recommonmark ~=0.6 nbsphinx ~=0.5 pygments-style-monokailight ~=0.4 ipython ~=7.11 ## Instruction: Use fork of `sphinx-bootstrap-theme` when building docs [ci skip] ## Code After: semantic_version ~=2.8 sphinx ~=2.3 # sphinx-bootstrap-th...
semantic_version ~=2.8 sphinx ~=2.3 - sphinx-bootstrap-theme ~=0.7 + # sphinx-bootstrap-theme ~=0.7 ? ++ + https://github.com/althonos/sphinx-bootstrap-theme/archive/master.zip recommonmark ~=0.6 nbsphinx ~=0.5 pygments-style-monokailight ~=0.4 ipython ~=7.11
3
0.428571
2
1
0fd7e22bcc784dbe04c2ac07cbb705f0cdec874d
docs/readthedocs.yml
docs/readthedocs.yml
python: version: 3 pip_install: true extra_requirements: # Add specific dependencies for the jupyter notebooks - docs - devs # Don't build any extra formats apart from json/html formats: []
python: version: 3 pip_install: true setup_py_install: true extra_requirements: # Add specific dependencies for the jupyter notebooks - docs - devs # Don't build any extra formats apart from json/html formats: []
Install shipped version on rtd
Install shipped version on rtd
YAML
mit
DOV-Vlaanderen/pydov
yaml
## Code Before: python: version: 3 pip_install: true extra_requirements: # Add specific dependencies for the jupyter notebooks - docs - devs # Don't build any extra formats apart from json/html formats: [] ## Instruction: Install shipped version on rtd ## Code After: python: version:...
python: version: 3 pip_install: true + setup_py_install: true extra_requirements: # Add specific dependencies for the jupyter notebooks - docs - devs # Don't build any extra formats apart from json/html formats: []
1
0.111111
1
0
dcc6d8e03178a3fb8518e0390bc6dc9d8e3b0478
src/Oro/Bundle/NoteBundle/Resources/views/Note/addButton.html.twig
src/Oro/Bundle/NoteBundle/Resources/views/Note/addButton.html.twig
{% import 'OroUIBundle::macros.html.twig' as UI %} {% if resource_granted('oro_note_create') %} {{ UI.clientButton({ 'id': 'add-entity-note-button', 'aCss': 'no-hash', 'iCss': 'icon-comment-alt hide-text', 'label' : 'oro.note.action.add'|trans }) }} <script type="text/javasc...
{% import 'OroUIBundle::macros.html.twig' as UI %} {% if resource_granted('oro_note_create') and resource_granted('oro_note_view') %} {{ UI.clientButton({ 'id': 'add-entity-note-button', 'aCss': 'no-hash', 'iCss': 'icon-comment-alt hide-text', 'label' : 'oro.note.action.add'|trans ...
Hide Add Note button if there is no permission to view Notes - add condition for resource oro_note_view
BAP-4476: Hide Add Note button if there is no permission to view Notes - add condition for resource oro_note_view
Twig
mit
geoffroycochard/platform,northdakota/platform,orocrm/platform,morontt/platform,2ndkauboy/platform,orocrm/platform,morontt/platform,trustify/oroplatform,ramunasd/platform,morontt/platform,hugeval/platform,northdakota/platform,geoffroycochard/platform,ramunasd/platform,geoffroycochard/platform,ramunasd/platform,Djamy/pla...
twig
## Code Before: {% import 'OroUIBundle::macros.html.twig' as UI %} {% if resource_granted('oro_note_create') %} {{ UI.clientButton({ 'id': 'add-entity-note-button', 'aCss': 'no-hash', 'iCss': 'icon-comment-alt hide-text', 'label' : 'oro.note.action.add'|trans }) }} <script t...
{% import 'OroUIBundle::macros.html.twig' as UI %} - {% if resource_granted('oro_note_create') %} + {% if resource_granted('oro_note_create') and resource_granted('oro_note_view') %} {{ UI.clientButton({ 'id': 'add-entity-note-button', 'aCss': 'no-hash', 'iCss': 'icon-comment-al...
2
0.105263
1
1
bc3f2888f00a1b4faeba100d9166194a2f5bcdcd
lib/ffi-glib/main_loop.rb
lib/ffi-glib/main_loop.rb
require 'singleton' GLib.load_class :MainLoop module GLib # Overrides for GMainLoop, GLib's event loop class MainLoop # Class encepsulationg logic for running an idle handler to make Ruby code # run during GLib's event loop. class ThreadEnabler include Singleton FRAMERATE = 25 DEFAU...
require 'singleton' GLib.load_class :MainLoop module GLib # Overrides for GMainLoop, GLib's event loop class MainLoop # Class encepsulationg logic for running an idle handler to make Ruby code # run during GLib's event loop. class ThreadEnabler include Singleton FRAMERATE = 25 DEFAU...
Add tiny sleep to make idle handler work on MRI 1.9.2
Add tiny sleep to make idle handler work on MRI 1.9.2
Ruby
lgpl-2.1
mvz/gir_ffi,mvz/gir_ffi,mvz/gir_ffi,jcupitt/gir_ffi,jcupitt/gir_ffi
ruby
## Code Before: require 'singleton' GLib.load_class :MainLoop module GLib # Overrides for GMainLoop, GLib's event loop class MainLoop # Class encepsulationg logic for running an idle handler to make Ruby code # run during GLib's event loop. class ThreadEnabler include Singleton FRAMERATE ...
require 'singleton' GLib.load_class :MainLoop module GLib # Overrides for GMainLoop, GLib's event loop class MainLoop # Class encepsulationg logic for running an idle handler to make Ruby code # run during GLib's event loop. class ThreadEnabler include Singleton ...
6
0.157895
5
1
d2c0990745a16034c3c237fa963dee951a1e5eb4
README.md
README.md
Library for the Totango [server integration API](http://help.totango.com/installing-totango/quick-start-http-api-server-side-integration/) ## Example This example is available at http://play.golang.org/p/bj2zod0fJa ```go package main import ( "github.com/BenjaminRH/totango" ) func main() { tracker, _ := totango...
Library for the Totango [server integration API](http://help.totango.com/installing-totango/quick-start-http-api-server-side-integration/) ## Example This example is available at http://play.golang.org/p/pgc709-CnQ ```go package main import ( "github.com/BenjaminRH/totango" ) func main() { tracker, _ := totango...
Update example to show tracking an account/user attribute
Update example to show tracking an account/user attribute
Markdown
mit
BenjaminRH/totango
markdown
## Code Before: Library for the Totango [server integration API](http://help.totango.com/installing-totango/quick-start-http-api-server-side-integration/) ## Example This example is available at http://play.golang.org/p/bj2zod0fJa ```go package main import ( "github.com/BenjaminRH/totango" ) func main() { track...
Library for the Totango [server integration API](http://help.totango.com/installing-totango/quick-start-http-api-server-side-integration/) ## Example - This example is available at http://play.golang.org/p/bj2zod0fJa ? ^^^^^^ ^^^ + This example is avai...
9
0.290323
6
3
7b8f991a7da895be180aed5d1b36a7eb756e64b7
.travis.yml
.travis.yml
sudo: required services: - docker language: ruby bundler_args: --without integration development rvm: - 2.1 # uncomment this line if your project needs to run something other than `rake`: # script: bundle exec rspec spec script: - bundle exec rake lint - bundle exec rake kitchen:all_suites
sudo: required services: - docker branches: only: - master - /^(i:ci)-\d\.\d\.\d/ language: ruby bundler_args: --without integration development rvm: - 2.1 # uncomment this line if your project needs to run something other than `rake`: # script: bundle exec rspec spec script: - bundle exec rake lint ...
Return back build only for master branch and added regexp for tags
Return back build only for master branch and added regexp for tags
YAML
apache-2.0
vkhatri/chef-aerospike-cluster,vkhatri/chef-aerospike-cluster,vkhatri/chef-aerospike-cluster,trademob/chef-aerospike-cluster,trademob/chef-aerospike-cluster,trademob/chef-aerospike-cluster
yaml
## Code Before: sudo: required services: - docker language: ruby bundler_args: --without integration development rvm: - 2.1 # uncomment this line if your project needs to run something other than `rake`: # script: bundle exec rspec spec script: - bundle exec rake lint - bundle exec rake kitchen:all_suites ##...
sudo: required services: - docker + + branches: + only: + - master + - /^(i:ci)-\d\.\d\.\d/ language: ruby bundler_args: --without integration development rvm: - 2.1 # uncomment this line if your project needs to run something other than `rake`: # script: bundle exec rspec spec ...
5
0.357143
5
0
1fe19030613fd7fff2f3f5c8c141d8e54e6efcf9
jobs/serviceDispatcher.js
jobs/serviceDispatcher.js
var Q = require('q'); var util = require('util'); module.exports.ServiceDispatcher = function() { this.services = []; }; module.exports.ServiceDispatcher.prototype.use = function(service) { this.services.push(service); }; module.exports.ServiceDispatcher.prototype.forAll = function(command) { var promises = this....
var Q = require('q'); var util = require('util'); module.exports.ServiceDispatcher = function() { this.services = []; }; module.exports.ServiceDispatcher.prototype.use = function(service) { this.services.push(service); }; module.exports.ServiceDispatcher.prototype.forAll = function(command) { var promises = this....
Remove the "Trying service" log.
Remove the "Trying service" log.
JavaScript
mit
ziacik/lumus,ziacik/lumus,ziacik/lumus
javascript
## Code Before: var Q = require('q'); var util = require('util'); module.exports.ServiceDispatcher = function() { this.services = []; }; module.exports.ServiceDispatcher.prototype.use = function(service) { this.services.push(service); }; module.exports.ServiceDispatcher.prototype.forAll = function(command) { var ...
var Q = require('q'); var util = require('util'); module.exports.ServiceDispatcher = function() { this.services = []; }; module.exports.ServiceDispatcher.prototype.use = function(service) { this.services.push(service); }; module.exports.ServiceDispatcher.prototype.forAll = function(command)...
2
0.041667
0
2
5ce262a21f77d31e39ae1c9c58b66eddac624dd4
rmi/src/main/java/com/lynn9388/rmichatroom/rmi/User.java
rmi/src/main/java/com/lynn9388/rmichatroom/rmi/User.java
/* * Copyright (C) 2016 Lynn * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
/* * Copyright (C) 2016 Lynn * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
Change user's port value style
Change user's port value style
Java
apache-2.0
lynn9388/rmi-chat-room
java
## Code Before: /* * Copyright (C) 2016 Lynn * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
/* * Copyright (C) 2016 Lynn * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
9
0.176471
4
5
123f92a9de62abfa293a21cb5d29fbccc629377c
CONTRIBUTING.md
CONTRIBUTING.md
osf-cli is an open-source project and contributions of all kinds are welcome. Contributors to the project are required to follow the [code of conduct](CONDUCT.md). By contributing, you are agreeing that we may redistribute your work under [this license](license). Contributions should follow these guidelines: * all...
osf-cli is an open-source project and contributions of all kinds are welcome. Contributors to the project are required to follow the [code of conduct](CONDUCT.md). By contributing, you are agreeing that we may redistribute your work under [this license](license). We use the [GitHub flow](https://guides.github.com/i...
Add link to GitHub flow model explanation
Add link to GitHub flow model explanation
Markdown
bsd-3-clause
betatim/osf-cli,betatim/osf-cli
markdown
## Code Before: osf-cli is an open-source project and contributions of all kinds are welcome. Contributors to the project are required to follow the [code of conduct](CONDUCT.md). By contributing, you are agreeing that we may redistribute your work under [this license](license). Contributions should follow these gu...
osf-cli is an open-source project and contributions of all kinds are welcome. Contributors to the project are required to follow the [code of conduct](CONDUCT.md). By contributing, you are agreeing that we may redistribute your work under [this license](license). + + We use the [GitHub flow](https...
3
0.1
3
0
ed01bcb594acada5dcf6a476e5db847006f71c1a
node/install.sh
node/install.sh
brew install nvm export NVM_DIR=~/.nvm if [ ! -d "$NVM_DIR" ]; then mkdir $NVM_DIR fi source $(brew --prefix nvm)/nvm.sh nvm install 0.12 nvm install 4 nvm install latest nvm use 0.12 npm update -g npm npm install -g bower yo gulp grunt-cli nvm use 4 npm update -g npm npm install -g bower yo gulp grunt-cli nv...
npm_global="bower yo gulp grunt-cli react-native" brew install nvm export NVM_DIR=~/.nvm if [ ! -d "$NVM_DIR" ]; then mkdir $NVM_DIR fi source $(brew --prefix nvm)/nvm.sh nvm use latest npm update -g npm npm install -g $npm_global nvm use latest nvm alias default latest exit 0
Install only last version of node
Install only last version of node
Shell
mit
dmongeau/dotfiles,dmongeau/dotfiles
shell
## Code Before: brew install nvm export NVM_DIR=~/.nvm if [ ! -d "$NVM_DIR" ]; then mkdir $NVM_DIR fi source $(brew --prefix nvm)/nvm.sh nvm install 0.12 nvm install 4 nvm install latest nvm use 0.12 npm update -g npm npm install -g bower yo gulp grunt-cli nvm use 4 npm update -g npm npm install -g bower yo gu...
+ npm_global="bower yo gulp grunt-cli react-native" + brew install nvm export NVM_DIR=~/.nvm if [ ! -d "$NVM_DIR" ]; then mkdir $NVM_DIR fi source $(brew --prefix nvm)/nvm.sh - nvm install 0.12 - nvm install 4 - nvm install latest - - nvm use 0.12 - npm update -g npm - npm install -g bower yo...
17
0.566667
3
14
37e1cec69c0ba28a417b1f89793bcf217e04b0b7
spec/request/api_key/api_key_spec.rb
spec/request/api_key/api_key_spec.rb
require 'spec_helper' describe '/api_key' do it 'should return 401 with invalid credentials' do create_user 'test@debox.com' get '/v1/api_key' last_response.should_not be_ok last_response.status.should eq 401 end it 'should return token with valid credentials' do user = create_user 'test@de...
require 'spec_helper' describe '/api_key' do it 'should return 401 with invalid credentials' do get '/v1/api_key' last_response.should_not be_ok last_response.status.should eq 401 end it 'should return 401 with invalid credentials' do get '/v1/api_key', user: 'test@debox.com' last_response....
Add spec if user provide user but not password
Add spec if user provide user but not password
Ruby
mit
eloy/debox_server
ruby
## Code Before: require 'spec_helper' describe '/api_key' do it 'should return 401 with invalid credentials' do create_user 'test@debox.com' get '/v1/api_key' last_response.should_not be_ok last_response.status.should eq 401 end it 'should return token with valid credentials' do user = crea...
require 'spec_helper' describe '/api_key' do it 'should return 401 with invalid credentials' do - create_user 'test@debox.com' get '/v1/api_key' last_response.should_not be_ok last_response.status.should eq 401 end + + it 'should return 401 with invalid credentials' do + g...
8
0.421053
7
1
d5f285e74ed5d448d7f506b8a03610bcc8af9981
src/server/src/healthcheck/topology-loaded.indicator.ts
src/server/src/healthcheck/topology-loaded.indicator.ts
import { Injectable } from "@nestjs/common"; import { HealthIndicator, HealthIndicatorResult, HealthCheckError } from "@nestjs/terminus"; import { TopologyService } from "../districts/services/topology.service"; @Injectable() export default class TopologyLoadedIndicator extends HealthIndicator { constructor(public ...
import { Injectable } from "@nestjs/common"; import { HealthIndicator, HealthIndicatorResult, HealthCheckError } from "@nestjs/terminus"; import { TopologyService } from "../districts/services/topology.service"; @Injectable() export default class TopologyLoadedIndicator extends HealthIndicator { constructor(public ...
Clean up health check output to be less verbose
Clean up health check output to be less verbose
TypeScript
apache-2.0
PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder
typescript
## Code Before: import { Injectable } from "@nestjs/common"; import { HealthIndicator, HealthIndicatorResult, HealthCheckError } from "@nestjs/terminus"; import { TopologyService } from "../districts/services/topology.service"; @Injectable() export default class TopologyLoadedIndicator extends HealthIndicator { con...
import { Injectable } from "@nestjs/common"; import { HealthIndicator, HealthIndicatorResult, HealthCheckError } from "@nestjs/terminus"; import { TopologyService } from "../districts/services/topology.service"; @Injectable() export default class TopologyLoadedIndicator extends HealthIndicator { con...
11
0.282051
8
3
d1e614ad73ac0a1fe2b3b2183bbb3bfcc938ad11
pkgs/development/libraries/apache-activemq/default.nix
pkgs/development/libraries/apache-activemq/default.nix
{ stdenv, fetchurl }: stdenv.mkDerivation rec { name = "apache-activemq-${version}"; version = "5.8.0"; src = fetchurl { url = "mirror://apache/activemq/apache-activemq/${version}/${name}-bin.tar.gz"; sha256 = "12a1lmmqapviqdgw307jm07vw1z5q53r56pkbp85w9wnqwspjrbk"; }; phases = [ "unpackPhase" "inst...
{ stdenv, fetchurl }: stdenv.mkDerivation rec { name = "apache-activemq-${version}"; version = "5.8.0"; src = fetchurl { url = "mirror://apache/activemq/apache-activemq/${version}/${name}-bin.tar.gz"; sha256 = "12a1lmmqapviqdgw307jm07vw1z5q53r56pkbp85w9wnqwspjrbk"; }; phases = [ "unpackPhase" "inst...
Copy everything from the dist to the store
activemq: Copy everything from the dist to the store
Nix
mit
NixOS/nixpkgs,triton/triton,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,triton/triton,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,triton/triton,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,triton/triton,SymbiFlow/nixpkgs,trit...
nix
## Code Before: { stdenv, fetchurl }: stdenv.mkDerivation rec { name = "apache-activemq-${version}"; version = "5.8.0"; src = fetchurl { url = "mirror://apache/activemq/apache-activemq/${version}/${name}-bin.tar.gz"; sha256 = "12a1lmmqapviqdgw307jm07vw1z5q53r56pkbp85w9wnqwspjrbk"; }; phases = [ "un...
{ stdenv, fetchurl }: stdenv.mkDerivation rec { name = "apache-activemq-${version}"; version = "5.8.0"; src = fetchurl { url = "mirror://apache/activemq/apache-activemq/${version}/${name}-bin.tar.gz"; sha256 = "12a1lmmqapviqdgw307jm07vw1z5q53r56pkbp85w9wnqwspjrbk"; }; phases...
4
0.121212
1
3
5f8b0cf89762ba75a87e7728e122701147e7ccee
spec/rspec/sitemap/matchers/include_url_spec.rb
spec/rspec/sitemap/matchers/include_url_spec.rb
require "spec_helper" describe "include_url matcher" do include RSpec::Sitemap::Matchers context "on a File" do let(:sitemap) { fixture('basic') } it "passes" do sitemap.should include_url('http://www.example.com') end it "fails" do expect { sitemap.should include_url('http://...
require "spec_helper" describe "include_url matcher" do include RSpec::Sitemap::Matchers shared_examples_for "a matcher that accepts a File or a String" do it "passes" do sitemap.should include_url('http://www.example.com') end it "fails" do expect { sitemap.should include_url('ht...
Use `shared_examples_for` and DRY up specs.
Use `shared_examples_for` and DRY up specs.
Ruby
mit
unboxed/rspec-sitemap-matchers
ruby
## Code Before: require "spec_helper" describe "include_url matcher" do include RSpec::Sitemap::Matchers context "on a File" do let(:sitemap) { fixture('basic') } it "passes" do sitemap.should include_url('http://www.example.com') end it "fails" do expect { sitemap.should incl...
require "spec_helper" describe "include_url matcher" do include RSpec::Sitemap::Matchers + shared_examples_for "a matcher that accepts a File or a String" do - context "on a File" do - let(:sitemap) { fixture('basic') } it "passes" do sitemap.should include_url('http://www.example.co...
22
0.55
5
17
5ab4f2f09927d46c04a6fea9a8b335b2332c0889
.github/workflows/PRPreview.yml
.github/workflows/PRPreview.yml
name: Pull Request preview on: [pull_request] jobs: deploy: needs: build runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: Use Node.js 12.x uses: actions/setup-node@v1 with: node-version: 12.x - name: yarn install, build run: | ...
name: Pull Request preview on: [pull_request] jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: Use Node.js 12.x uses: actions/setup-node@v1 with: node-version: 12.x - name: yarn install, build run: | yarn install ...
Fix needs on PRreviw deploy
Fix needs on PRreviw deploy
YAML
mit
LaBetePolitique/api-wrapper,LaBetePolitique/api-wrapper
yaml
## Code Before: name: Pull Request preview on: [pull_request] jobs: deploy: needs: build runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: Use Node.js 12.x uses: actions/setup-node@v1 with: node-version: 12.x - name: yarn install, build ...
name: Pull Request preview on: [pull_request] jobs: deploy: - needs: build runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: Use Node.js 12.x uses: actions/setup-node@v1 with: node-version: 12.x - name: yarn install,...
1
0.037037
0
1
18b24f3a87fb55db626a212c0e4278a058ab7bc7
web.rb
web.rb
require 'sinatra' require 'flickraw' def random_pic_url FlickRaw.api_key = ENV['FLICKR_API_KEY'] FlickRaw.shared_secret = ENV['FLICKR_SHARED_SECRET'] user_id = ENV['FLICKR_USER_ID'] list = flickr.photos.search :user_id => user_id, :tags => ENV['FLICKR_TAG'] ridx = rand(list.count) info = flickr.photos.g...
require 'sinatra' require 'flickraw' def random_pic_url(user_id = nil, tag = nil) FlickRaw.api_key = ENV['FLICKR_API_KEY'] FlickRaw.shared_secret = ENV['FLICKR_SHARED_SECRET'] if (user_id == nil) user_id = ENV['FLICKR_USER_ID'] tag = ENV['FLICKR_TAG'] end begin list = flickr.photos.search ...
Add optional parameters for /random and /randompic to allow specification of arbitrary flickr users and tag
Add optional parameters for /random and /randompic to allow specification of arbitrary flickr users and tag
Ruby
bsd-2-clause
meatcoder/random-flickr
ruby
## Code Before: require 'sinatra' require 'flickraw' def random_pic_url FlickRaw.api_key = ENV['FLICKR_API_KEY'] FlickRaw.shared_secret = ENV['FLICKR_SHARED_SECRET'] user_id = ENV['FLICKR_USER_ID'] list = flickr.photos.search :user_id => user_id, :tags => ENV['FLICKR_TAG'] ridx = rand(list.count) info =...
require 'sinatra' require 'flickraw' - def random_pic_url + def random_pic_url(user_id = nil, tag = nil) FlickRaw.api_key = ENV['FLICKR_API_KEY'] FlickRaw.shared_secret = ENV['FLICKR_SHARED_SECRET'] + if (user_id == nil) - user_id = ENV['FLICKR_USER_ID'] + user_id = ENV['FLICKR_USER_ID'] ? ...
41
1.366667
32
9
f736c994e2f5b6341351d3c380c16faee0c7410a
.travis.yml
.travis.yml
language: rust rust: - nightly cache: cargo: true timeout: 900 sudo: required dist: trusty
language: rust rust: - nightly-2018-06-01 cache: cargo: true timeout: 900 sudo: required dist: trusty
Use nightly Rust from 2018-06-01 to fix error
Use nightly Rust from 2018-06-01 to fix error
YAML
mit
pombase/pombase-chado-json,pombase/pombase-chado-json
yaml
## Code Before: language: rust rust: - nightly cache: cargo: true timeout: 900 sudo: required dist: trusty ## Instruction: Use nightly Rust from 2018-06-01 to fix error ## Code After: language: rust rust: - nightly-2018-06-01 cache: cargo: true timeout: 900 sudo: required dist: trusty
language: rust rust: - - nightly + - nightly-2018-06-01 cache: cargo: true timeout: 900 sudo: required dist: trusty
2
0.25
1
1
95067d61d852a7898b3f81d0752351ae8d41c0ae
scripts/travis_before_install.sh
scripts/travis_before_install.sh
set -ev echo ${TRAVIS_OS_NAME} if [ "${TRAVIS_OS_NAME}" = "linux" ]; then wget https://nixos.org/releases/patchelf/patchelf-0.8/patchelf-0.8.tar.gz tar -xzf patchelf-0.8.tar.gz cd patchelf-0.8 ./configure --prefix=$VIRTUAL_ENV && make && make install else brew update brew install python br...
set -ev echo ${TRAVIS_OS_NAME} if [ "${TRAVIS_OS_NAME}" = "linux" ]; then wget https://nixos.org/releases/patchelf/patchelf-0.8/patchelf-0.8.tar.gz tar -xzf patchelf-0.8.tar.gz cd patchelf-0.8 ./configure --prefix=$VIRTUAL_ENV && make && make install else brew update brew install python br...
Support testing ninja on OS X
Support testing ninja on OS X
Shell
bsd-3-clause
jimporter/bfg9000,jimporter/bfg9000,jimporter/bfg9000,jimporter/bfg9000
shell
## Code Before: set -ev echo ${TRAVIS_OS_NAME} if [ "${TRAVIS_OS_NAME}" = "linux" ]; then wget https://nixos.org/releases/patchelf/patchelf-0.8/patchelf-0.8.tar.gz tar -xzf patchelf-0.8.tar.gz cd patchelf-0.8 ./configure --prefix=$VIRTUAL_ENV && make && make install else brew update brew insta...
set -ev echo ${TRAVIS_OS_NAME} if [ "${TRAVIS_OS_NAME}" = "linux" ]; then wget https://nixos.org/releases/patchelf/patchelf-0.8/patchelf-0.8.tar.gz tar -xzf patchelf-0.8.tar.gz cd patchelf-0.8 ./configure --prefix=$VIRTUAL_ENV && make && make install else brew update br...
1
0.071429
1
0
14615b03ade31e697e771a7ae5ca6aa2d4b7db43
lib/sinja/sequel/core.rb
lib/sinja/sequel/core.rb
require 'forwardable' require 'sequel' require_relative 'pagination' module Sinja module Sequel module Core extend Forwardable def self.prepended(base) base.sinja do |c| c.conflict_exceptions << ::Sequel::ConstraintViolation c.not_found_exceptions << ::Sequel::NoMatching...
require 'forwardable' require 'sequel' require_relative 'pagination' module Sinja module Sequel module Core extend Forwardable def self.prepended(base) base.sinja do |c| c.conflict_exceptions << ::Sequel::ConstraintViolation c.not_found_exceptions << ::Sequel::NoMatching...
Enhance validation formatter to indicate relationships
Enhance validation formatter to indicate relationships
Ruby
mit
mwpastore/sinja-sequel,mwpastore/sinja-sequel
ruby
## Code Before: require 'forwardable' require 'sequel' require_relative 'pagination' module Sinja module Sequel module Core extend Forwardable def self.prepended(base) base.sinja do |c| c.conflict_exceptions << ::Sequel::ConstraintViolation c.not_found_exceptions << ::Se...
require 'forwardable' require 'sequel' require_relative 'pagination' module Sinja module Sequel module Core extend Forwardable def self.prepended(base) base.sinja do |c| c.conflict_exceptions << ::Sequel::ConstraintViolation c.not_found_except...
6
0.139535
5
1
ea0e29ebdf2649d2f88e13439951e03df0b80e72
modules/gui/frontend/index.html
modules/gui/frontend/index.html
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>S E P A L</title> </head> <body class="border-on"> <!-- site loader --> <div class="app-loader"> <span></span> <p>S E P A L</p> </div> <!-- site loader --> <m...
<!DOCTYPE html> <html lang="en"> <head> <meta name="google-site-verification" content="n_oThWXQHxhmqrNjwFLpLvwr38QIIh1iYfC5IkZDJM8" /> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>S E P A L</title> </head> <body class="border-on"> <!-- site loader ...
Add a meta tag to verify ownership with Google.
Add a meta tag to verify ownership with Google.
HTML
mit
openforis/sepal,openforis/sepal,openforis/sepal,openforis/sepal,openforis/sepal,openforis/sepal
html
## Code Before: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>S E P A L</title> </head> <body class="border-on"> <!-- site loader --> <div class="app-loader"> <span></span> <p>S E P A L</p> </div> <!-- sit...
<!DOCTYPE html> <html lang="en"> <head> + <meta name="google-site-verification" content="n_oThWXQHxhmqrNjwFLpLvwr38QIIh1iYfC5IkZDJM8" /> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>S E P A L</title> </head> <body class="border-on"...
1
0.045455
1
0
70815349764d2e7739e4ebcdd993d3a531c268cd
.travis.yml
.travis.yml
language: scala sudo: false cache: directories: - $HOME/.ivy2 - $HOME/spark scala: - 2.10.4 before_install: - pip install --user codecov unittest2 script: - "export SPARK_CONF_DIR=./log4j/" - sbt compile test - "[ -f spark] || mkdir spark && wget http://d3kbcqa49mib13.cloudfront.net/spark-1.6.1-bin...
language: scala sudo: false cache: directories: - $HOME/.ivy2 - $HOME/spark - $HOME/.cache/pip scala: - 2.10.4 before_install: - pip install --user codecov unittest2 nose pep8 pylint scipy pandas script: - "export SPARK_CONF_DIR=./log4j/" - sbt compile test - "[ -f spark] || mkdir spark && wget...
Add more packages and cache them
Add more packages and cache them
YAML
apache-2.0
mahmoudhanafy/high-performance-spark-examples
yaml
## Code Before: language: scala sudo: false cache: directories: - $HOME/.ivy2 - $HOME/spark scala: - 2.10.4 before_install: - pip install --user codecov unittest2 script: - "export SPARK_CONF_DIR=./log4j/" - sbt compile test - "[ -f spark] || mkdir spark && wget http://d3kbcqa49mib13.cloudfront.net...
language: scala sudo: false cache: directories: - $HOME/.ivy2 - $HOME/spark + - $HOME/.cache/pip scala: - 2.10.4 before_install: - - pip install --user codecov unittest2 + - pip install --user codecov unittest2 nose pep8 pylint scipy pandas script: - "export SPARK_CONF_DIR=....
3
0.142857
2
1
6bdd73cf50e2ca43d73a8edad0621c5a5160f3ee
core/ktx/RELEASING.md
core/ktx/RELEASING.md
Releasing ========= 1. Change the version in `build.gradle` to a non-SNAPSHOT version (e.g., `0.2-SNAPSHOT` -> `0.2`) 2. Update the `CHANGELOG.md` for the impending release. 3. Update the `README.md` with the new version. 4. `git commit -am "Prepare for release X.Y.Z."` (where X.Y.Z is the new version) 5. `./grad...
Releasing ========= 1. Change the version in `build.gradle` to a non-SNAPSHOT version (e.g., `0.2-SNAPSHOT` -> `0.2`) 2. Update the `CHANGELOG.md` for the impending release. 3. Update the `README.md` with the new version. 4. Copy `api/current.txt` to `api/X.Y.Z.txt`. 5. `git commit -am "Prepare for release X.Y.Z....
Add copy API txt releasing step.
Add copy API txt releasing step.
Markdown
apache-2.0
androidx/androidx,androidx/androidx,aosp-mirror/platform_frameworks_support,AndroidX/androidx,aosp-mirror/platform_frameworks_support,AndroidX/androidx,AndroidX/androidx,androidx/androidx,aosp-mirror/platform_frameworks_support,AndroidX/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,an...
markdown
## Code Before: Releasing ========= 1. Change the version in `build.gradle` to a non-SNAPSHOT version (e.g., `0.2-SNAPSHOT` -> `0.2`) 2. Update the `CHANGELOG.md` for the impending release. 3. Update the `README.md` with the new version. 4. `git commit -am "Prepare for release X.Y.Z."` (where X.Y.Z is the new vers...
Releasing ========= 1. Change the version in `build.gradle` to a non-SNAPSHOT version (e.g., `0.2-SNAPSHOT` -> `0.2`) 2. Update the `CHANGELOG.md` for the impending release. 3. Update the `README.md` with the new version. + 4. Copy `api/current.txt` to `api/X.Y.Z.txt`. - 4. `git commit -am "Prepare fo...
15
1
8
7
4ecac2ee3e9ecf40da64bb2439787467881f3812
tests/defects.t
tests/defects.t
. tests/functions.sh title "reported defects" rc=0 MARKDOWN_FLAGS= try 'masses of non-block html' \ '<span>foo</span><br> <br> <span>bar</span><br>' \ '<p><span>foo</span><br> <br> <span>bar</span><br></p>' try -fautolink -G 'autolink + github-flavoured markdown' \ 'http://foo bar' \ '<p><a href="http://foo">http:/...
. tests/functions.sh title "reported defects" rc=0 MARKDOWN_FLAGS= try 'masses of non-block html' \ '<span>foo</span><br> <br> <span>bar</span><br>' \ '<p><span>foo</span><br> <br> <span>bar</span><br></p>' try -fautolink -G 'autolink + github-flavoured markdown' \ 'http://foo bar' \ '<p><a href="http://foo">http:/...
Add a test case for `<p></>*`
Add a test case for `<p></>*`
Perl
bsd-3-clause
davidfstr/discount,davidfstr/discount,davidfstr/discount,davidfstr/discount
perl
## Code Before: . tests/functions.sh title "reported defects" rc=0 MARKDOWN_FLAGS= try 'masses of non-block html' \ '<span>foo</span><br> <br> <span>bar</span><br>' \ '<p><span>foo</span><br> <br> <span>bar</span><br></p>' try -fautolink -G 'autolink + github-flavoured markdown' \ 'http://foo bar' \ '<p><a href="ht...
. tests/functions.sh title "reported defects" rc=0 MARKDOWN_FLAGS= try 'masses of non-block html' \ '<span>foo</span><br> <br> <span>bar</span><br>' \ '<p><span>foo</span><br> <br> <span>bar</span><br></p>' try -fautolink -G 'autolink + github-flavoured markdown' \ 'http://foo ba...
2
0.086957
2
0
1e2068eed58f951d518738d8b8ee0660cdaf6d8c
tox.ini
tox.ini
[tox] envlist = py{27,34,35,36,37}-django111 py{34,35,36,37}-django20 py{35,36,37}-django21 lint [testenv] commands = py.test {posargs} extras = test pip_pre = true deps = django111: django>=1.11,<2.0 django20: django>=2.0,<2.1 django21: django>=2.1 appdirs==1.4.3 py27: mock==2.0.0 ...
[tox] envlist = py{27,34,35,36,37}-django111 py{34,35,36,37}-django20 py{35,36,37}-django21 lint [testenv] commands = py.test {posargs} extras = test pip_pre = true deps = django111: django>=1.11,<2.0 django20: django>=2.0,<2.1 django21: django>=2.1 appdirs==1.4.3 py27: mock==2.0.0 ...
Add black to lint tests and increase line length for flake8
Add black to lint tests and increase line length for flake8
INI
apache-2.0
3YOURMIND/django-migration-linter
ini
## Code Before: [tox] envlist = py{27,34,35,36,37}-django111 py{34,35,36,37}-django20 py{35,36,37}-django21 lint [testenv] commands = py.test {posargs} extras = test pip_pre = true deps = django111: django>=1.11,<2.0 django20: django>=2.0,<2.1 django21: django>=2.1 appdirs==1.4.3 py...
[tox] envlist = py{27,34,35,36,37}-django111 py{34,35,36,37}-django20 py{35,36,37}-django21 lint [testenv] commands = py.test {posargs} extras = test pip_pre = true deps = django111: django>=1.11,<2.0 django20: django>=2.0,<2.1 django21: django>=2.1 appdi...
4
0.166667
3
1
11b39e6708ca9d70caf374a52eae308537a20b3d
deploy/gradientzoo-web-deployment.yml
deploy/gradientzoo-web-deployment.yml
apiVersion: extensions/v1beta1 kind: Deployment metadata: name: gradientzoo-web-deployment spec: replicas: 2 template: metadata: labels: app: gradientzoo-web spec: containers: - name: gradientzoo-web image: gcr.io/gradientzoo-1233/gradientzoo-web:latest imag...
apiVersion: extensions/v1beta1 kind: Deployment metadata: name: gradientzoo-web-deployment spec: replicas: 2 template: metadata: labels: app: gradientzoo-web spec: containers: - name: gradientzoo-web image: gcr.io/gradientzoo-1233/gradientzoo-web:latest imag...
Remove kube reference to GOOGLE_ANALYTICS_ID
Remove kube reference to GOOGLE_ANALYTICS_ID
YAML
bsd-3-clause
gradientzoo/gradientzoo,gradientzoo/gradientzoo,gradientzoo/gradientzoo,gradientzoo/gradientzoo
yaml
## Code Before: apiVersion: extensions/v1beta1 kind: Deployment metadata: name: gradientzoo-web-deployment spec: replicas: 2 template: metadata: labels: app: gradientzoo-web spec: containers: - name: gradientzoo-web image: gcr.io/gradientzoo-1233/gradientzoo-web:lates...
apiVersion: extensions/v1beta1 kind: Deployment metadata: name: gradientzoo-web-deployment spec: replicas: 2 template: metadata: labels: app: gradientzoo-web spec: containers: - name: gradientzoo-web image: gcr.io/gradientzoo-1233/gradientz...
6
0.26087
0
6
d6adbc8e1297127b6eb3e5008fa97f2509647ab0
lib/and-son/connection.rb
lib/and-son/connection.rb
require 'socket' require 'sanford-protocol' module AndSon class Connection < Struct.new(:host, :port) module NoRequest def self.to_s; "[?]"; end end def open protocol_connection = Sanford::Protocol::Connection.new(tcp_socket) yield protocol_connection if block_given? ensure ...
require 'socket' require 'sanford-protocol' module AndSon class Connection < Struct.new(:host, :port) module NoRequest def self.to_s; "[?]"; end end def open protocol_connection = Sanford::Protocol::Connection.new(tcp_socket) yield protocol_connection if block_given? ensure ...
Stop confusing exception when AndSon can't bind to a server
Stop confusing exception when AndSon can't bind to a server Previously, we were getting an `NoMethodError` for `close` on the connection (because it could never make a connection) when a client couldn't bind. This fixes that by making sure protocol connection has been set before trying to close it. With this, you will...
Ruby
mit
redding/and-son
ruby
## Code Before: require 'socket' require 'sanford-protocol' module AndSon class Connection < Struct.new(:host, :port) module NoRequest def self.to_s; "[?]"; end end def open protocol_connection = Sanford::Protocol::Connection.new(tcp_socket) yield protocol_connection if block_given? ...
require 'socket' require 'sanford-protocol' module AndSon class Connection < Struct.new(:host, :port) module NoRequest def self.to_s; "[?]"; end end def open protocol_connection = Sanford::Protocol::Connection.new(tcp_socket) yield protocol_connection if bloc...
2
0.060606
1
1
563e57bcd0bb7cbebc62443fc66bdcc86d8f2e5c
README.md
README.md
- Peter - Doug - Luke - Alex 17/04/2017 - hope to setup OAuth
To run in docker run: `docker-compose up` and then hit `http://localhost:8080`. Yay! ## Contributors - Peter - Doug - Luke - Alex 17/04/2017 - hope to setup OAuth
Add note on how to bring up dockerised instance.
Add note on how to bring up dockerised instance.
Markdown
mit
codehackdays/HelloWorld
markdown
## Code Before: - Peter - Doug - Luke - Alex 17/04/2017 - hope to setup OAuth ## Instruction: Add note on how to bring up dockerised instance. ## Code After: To run in docker run: `docker-compose up` and then hit `http://localhost:8080`. Yay! ## Contributors - Peter - Doug - Luke - Alex 17/04/2017 - hope to set...
+ + To run in docker run: `docker-compose up` and then hit `http://localhost:8080`. Yay! + + ## Contributors - Peter - Doug - Luke - Alex 17/04/2017 - hope to setup OAuth
4
0.571429
4
0
a0731d5cfc7a80a2750dff7b1f3b56d4b04699ef
app/models/Event.coffee
app/models/Event.coffee
Entity = require 'models/Entity' mediator = require 'mediator' module.exports = class Event extends Entity mediator.factory['Event'] = this constructor: (x, y, width, height, owningLevel, settings) -> # settings.physicsType = 'static' # settings.isSensor = true super x, y, width, height, ownin...
Entity = require 'models/Entity' mediator = require 'mediator' module.exports = class Event extends Entity mediator.factory['Event'] = this constructor: (x, y, width, height, owningLevel, settings) -> # settings.physicsType = 'static' # settings.isSensor = true super x, y, width, height, ownin...
Update event to use new SoundManager.stopAll(config)
Update event to use new SoundManager.stopAll(config)
CoffeeScript
apache-2.0
despairblue/shiny-wight
coffeescript
## Code Before: Entity = require 'models/Entity' mediator = require 'mediator' module.exports = class Event extends Entity mediator.factory['Event'] = this constructor: (x, y, width, height, owningLevel, settings) -> # settings.physicsType = 'static' # settings.isSensor = true super x, y, widt...
Entity = require 'models/Entity' mediator = require 'mediator' module.exports = class Event extends Entity mediator.factory['Event'] = this constructor: (x, y, width, height, owningLevel, settings) -> # settings.physicsType = 'static' # settings.isSensor = true super ...
5
0.151515
4
1
87b3702ceb0c55a73e51a9c784a764ae8c8fced0
bower.json
bower.json
{ "name": "js-sequence-diagrams", "version": "1.0.6", "authors": "Andrew Brampton (bramp.net)", "description": "Generates UML sequence diagrams from simple text", "homepage": "http://bramp.github.io/js-sequence-diagrams/", "main": "build/sequence-diagram-min.js", "keywords": [ "uml", "sequence", ...
{ "name": "js-sequence-diagrams", "version": "1.0.6", "authors": "Andrew Brampton (bramp.net)", "description": "Generates UML sequence diagrams from simple text", "homepage": "http://bramp.github.io/js-sequence-diagrams/", "main": "build/sequence-diagram-min.js", "namespace": "Diagram", "keywords": [ ...
Define the namespace of the library (Diagram).
Define the namespace of the library (Diagram).
JSON
bsd-2-clause
kdoore/js-sequence-diagrams,blademainer/js-sequence-diagrams,kdoore/js-sequence-diagrams,gskielian/js-sequence-diagrams,mcanthony/js-sequence-diagrams,landongn/js-sequence-diagrams,durai145/js-sequence-diagrams,ryukenzen/js-sequence-diagrams,zartata/js-sequence-diagrams,ancchaimongkon/js-sequence-diagrams,pwagland/js-s...
json
## Code Before: { "name": "js-sequence-diagrams", "version": "1.0.6", "authors": "Andrew Brampton (bramp.net)", "description": "Generates UML sequence diagrams from simple text", "homepage": "http://bramp.github.io/js-sequence-diagrams/", "main": "build/sequence-diagram-min.js", "keywords": [ "uml", ...
{ "name": "js-sequence-diagrams", "version": "1.0.6", "authors": "Andrew Brampton (bramp.net)", "description": "Generates UML sequence diagrams from simple text", "homepage": "http://bramp.github.io/js-sequence-diagrams/", "main": "build/sequence-diagram-min.js", + "namespace": "Diagram", ...
1
0.026316
1
0
16aa537ff01ff36c5ff3f2de9beaf45ec2d93823
setup.py
setup.py
from __future__ import absolute_import import sys from setuptools import setup _PY2 = sys.version_info.major == 2 # add __version__, __author__, __authoremail__, __description__ to this namespace # equivalent to: if _PY2: execfile("./dimod/package_info.py") else: exec(open("./dimod/package_info.py").read()) ...
from __future__ import absolute_import import sys from setuptools import setup _PY2 = sys.version_info.major == 2 # add __version__, __author__, __authoremail__, __description__ to this namespace # equivalent to: if _PY2: execfile("./dimod/package_info.py") else: exec(open("./dimod/package_info.py").read()) ...
Add networkx to test dependencies
Add networkx to test dependencies
Python
apache-2.0
oneklc/dimod,oneklc/dimod
python
## Code Before: from __future__ import absolute_import import sys from setuptools import setup _PY2 = sys.version_info.major == 2 # add __version__, __author__, __authoremail__, __description__ to this namespace # equivalent to: if _PY2: execfile("./dimod/package_info.py") else: exec(open("./dimod/package_in...
from __future__ import absolute_import import sys from setuptools import setup _PY2 = sys.version_info.major == 2 # add __version__, __author__, __authoremail__, __description__ to this namespace # equivalent to: if _PY2: execfile("./dimod/package_info.py") else: exec(open("./dimod/...
3
0.073171
2
1
48a42ea39669a867a7d9928daf5156e80b9800cf
boardinghouse/sql/protect_schema_column.sql
boardinghouse/sql/protect_schema_column.sql
-- Trigger function that will, at the database level, prevent -- anyone changing the boardinghouse_schema.schema value for -- a saved schema. CREATE OR REPLACE FUNCTION reject_schema_column_change() RETURNS TRIGGER AS $$ BEGIN RAISE EXCEPTION 'Schema % cannot be renamed', OLD.schema; END; $$ LANGUAGE plpgsql; ...
-- Trigger function that will, at the database level, prevent -- anyone changing the boardinghouse_schema.schema value for -- a saved schema. CREATE OR REPLACE FUNCTION reject_schema_column_change() RETURNS TRIGGER AS $$ BEGIN RAISE EXCEPTION 'Schema cannot be renamed' USING HINT = OLD.schema; END; $$ LANGUAGE...
Raise database-level exception on schema name change.
Raise database-level exception on schema name change.
SQL
bsd-3-clause
luzfcb/django-boardinghouse,luzfcb/django-boardinghouse,luzfcb/django-boardinghouse
sql
## Code Before: -- Trigger function that will, at the database level, prevent -- anyone changing the boardinghouse_schema.schema value for -- a saved schema. CREATE OR REPLACE FUNCTION reject_schema_column_change() RETURNS TRIGGER AS $$ BEGIN RAISE EXCEPTION 'Schema % cannot be renamed', OLD.schema; END; $$ LA...
-- Trigger function that will, at the database level, prevent -- anyone changing the boardinghouse_schema.schema value for -- a saved schema. CREATE OR REPLACE FUNCTION reject_schema_column_change() RETURNS TRIGGER AS $$ BEGIN - RAISE EXCEPTION 'Schema % cannot be renamed', OLD.schema; ? ...
2
0.068966
1
1
cc67c76d396127827ab0997c79bac49b679275de
biicode.cmake
biicode.cmake
IF(APPLE) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++") ELSEIF (WIN32 OR UNIX) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") ENDIF(APPLE) ADD_BII_TARGETS()
IF(APPLE) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++") ELSEIF (WIN32 OR UNIX) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") ENDIF(APPLE) SET(BII_LIB_TYPE SHARED) ADD_BII_TARGETS()
Make Bii generate dynamic library
Make Bii generate dynamic library
CMake
mit
zhangsu/ccspec,zhangsu/ccspec,zhangsu/ccspec
cmake
## Code Before: IF(APPLE) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++") ELSEIF (WIN32 OR UNIX) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") ENDIF(APPLE) ADD_BII_TARGETS() ## Instruction: Make Bii generate dynamic library ## Code After: IF(APPLE) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FL...
IF(APPLE) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++") ELSEIF (WIN32 OR UNIX) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") ENDIF(APPLE) + SET(BII_LIB_TYPE SHARED) + ADD_BII_TARGETS()
2
0.285714
2
0
da46f2bc341c3b8f443d0ce8b5b574c713cd3be4
test/expected/query--77.0131,38.8829.json
test/expected/query--77.0131,38.8829.json
[ { "id": 60, "attributes": { "FeatureCla": "Coastline", "Note": "", "ScaleRank": 0 } } ]
[ { "id": 60, "distance": 4525.324054772856, "layer": "coastline", "attributes": { "FeatureCla": "Coastline", "Note": "", "ScaleRank": 0 } } ]
Update query results to reflect mapnik 1.4.3.
Update query results to reflect mapnik 1.4.3.
JSON
bsd-3-clause
mapbox/tilelive-vector,nyurik/kartotherian,nyurik/tilelive-vector,kartotherian/kartotherian,kartotherian/kartotherian,kartotherian/kartotherian,nyurik/kartotherian,nyurik/kartotherian,kartotherian/kartotherian,nyurik/kartotherian,jaredbrookswhite/tilelive-vector
json
## Code Before: [ { "id": 60, "attributes": { "FeatureCla": "Coastline", "Note": "", "ScaleRank": 0 } } ] ## Instruction: Update query results to reflect mapnik 1.4.3. ## Code After: [ { "id": 60, "distance": 4525.324054772856, "layer": "coastline", "attributes": { ...
[ { "id": 60, + "distance": 4525.324054772856, + "layer": "coastline", "attributes": { "FeatureCla": "Coastline", "Note": "", "ScaleRank": 0 } } ]
2
0.2
2
0
009f16c8ff737c66c000af733071bf0ef0e7afa5
static/codebook_rnet.csv
static/codebook_rnet.csv
bicycle,No. between-zone cyclists using this segment in Census 2011 (see model output tab for details of selected between-zone flows) govtarget_slc,No. between-zone cyclists using this segment in Government Target scenario (see model output tab for details of selected between-zone flows) gendereq_slc,No. between-zone c...
Variable name,Variable Description bicycle,No. between-zone cyclists using this segment in Census 2011 (see model output tab for details of selected between-zone flows) govtarget_slc,No. between-zone cyclists using this segment in Government Target scenario (see model output tab for details of selected between-zone flo...
Update rnet's codebook (file was missing headers)
Update rnet's codebook (file was missing headers)
CSV
agpl-3.0
npct/pct-shiny,npct/pct-shiny,npct/pct-shiny,npct/pct-shiny,npct/pct-shiny,npct/pct-shiny
csv
## Code Before: bicycle,No. between-zone cyclists using this segment in Census 2011 (see model output tab for details of selected between-zone flows) govtarget_slc,No. between-zone cyclists using this segment in Government Target scenario (see model output tab for details of selected between-zone flows) gendereq_slc,No...
+ Variable name,Variable Description bicycle,No. between-zone cyclists using this segment in Census 2011 (see model output tab for details of selected between-zone flows) govtarget_slc,No. between-zone cyclists using this segment in Government Target scenario (see model output tab for details of selected between-zo...
1
0.166667
1
0
bc5795b296f1f9ba2e8854e358247e527868a7c5
renovate.json
renovate.json
{ "extends": [ "config:base" ], "packageRules": [ { "groupSlug": "all", "packagePatterns": ["*"], "allowedVersions": "!/^(?i).*[-_\\.](Alpha|Beta|RC|M|EA|Snap|snapshot|jboss|atlassian)[-_\\.]?[0-9]?.*$/", "groupName": "all dependencies" } ] }
{ "extends": [ "config:base" ], "packageRules": [ { "groupSlug": "all", "packagePatterns": ["*"], "allowedVersions": "!/^(?i).*[-_\\.](Alpha|Beta|RC|M|EA|Snap|snapshot|jboss|atlassian)[-_\\.]?[0-9]?.*$/", "groupName": "all dependencies" }, { "description": "Disable ma...
Disable major updates for centos
Disable major updates for centos
JSON
apache-2.0
nielsbasjes/logparser,nielsbasjes/logparser,nielsbasjes/logparser
json
## Code Before: { "extends": [ "config:base" ], "packageRules": [ { "groupSlug": "all", "packagePatterns": ["*"], "allowedVersions": "!/^(?i).*[-_\\.](Alpha|Beta|RC|M|EA|Snap|snapshot|jboss|atlassian)[-_\\.]?[0-9]?.*$/", "groupName": "all dependencies" } ] } ## Instruction: ...
{ "extends": [ "config:base" ], "packageRules": [ { "groupSlug": "all", "packagePatterns": ["*"], "allowedVersions": "!/^(?i).*[-_\\.](Alpha|Beta|RC|M|EA|Snap|snapshot|jboss|atlassian)[-_\\.]?[0-9]?.*$/", "groupName": "all dependencies" + }, + { + ...
6
0.461538
6
0
863eb2d080276c4e17315a95413798519a93d072
vagrant/shell.sh
vagrant/shell.sh
`test ! -x /usr/bin/ruby && ln -s /opt/vagrant_ruby/bin/ruby /usr/bin/ruby` # install ctags if [ -x /usr/bin/apt-get ]; then # update packages apt-get update # ctags apt-get install exuberant-ctags # python3 apt-get install python3.2 python3.2-minimal fi # install ctags if [ -x /usr/local/bin...
`test ! -x /usr/bin/ruby && ln -s /opt/vagrant_ruby/bin/ruby /usr/bin/ruby` # install ctags if [ -x /usr/bin/apt-get ]; then # update packages apt-get update # ctags apt-get install exuberant-ctags # python3 apt-get install python3.2 python3.2-minimal fi # install ctags if [ -x /usr/local/bin...
Set git core.editor to 'vim'
Set git core.editor to 'vim'
Shell
bsd-3-clause
michalbachowski/pyevent,michalbachowski/pyevent,michalbachowski/pyevent
shell
## Code Before: `test ! -x /usr/bin/ruby && ln -s /opt/vagrant_ruby/bin/ruby /usr/bin/ruby` # install ctags if [ -x /usr/bin/apt-get ]; then # update packages apt-get update # ctags apt-get install exuberant-ctags # python3 apt-get install python3.2 python3.2-minimal fi # install ctags if [ -...
`test ! -x /usr/bin/ruby && ln -s /opt/vagrant_ruby/bin/ruby /usr/bin/ruby` # install ctags if [ -x /usr/bin/apt-get ]; then # update packages apt-get update # ctags apt-get install exuberant-ctags # python3 apt-get install python3.2 python3.2-minimal fi # install ct...
1
0.026316
1
0
d8413b9db12441937ec7d06f3d071cacd916520c
lib/common_tools.sh
lib/common_tools.sh
ensureInPath "jq-linux64" "${cache}/.jq/bin" # Ensure we have a copy of the stdlib STDLIB_DIR="${TMPDIR:-"/tmp"}/go-buildpack-stdlib" ensureFile "stdlib.sh.v8" "${STDLIB_DIR}" "chmod a+x"
ensureInPath "jq-linux64" "${cache}/.jq/bin" # Ensure we have a copy of the stdlib if [ -z "${TMPDIR}" ]; then STDLIB_DIR=$(mktemp -d -t stdlib.XXXXX) else STDLIB_DIR="${TMPDIR}/go-buildpack-stdlib" fi ensureFile "stdlib.sh.v8" "${STDLIB_DIR}" "chmod a+x"
Use mktemp to create a temporary directory
Use mktemp to create a temporary directory Do this only if TMPDIR is unset. If TMPDIR is set, use $TMPDIR/go-buildpack-stdlib
Shell
mit
heroku/heroku-buildpack-go,heroku/heroku-buildpack-go
shell
## Code Before: ensureInPath "jq-linux64" "${cache}/.jq/bin" # Ensure we have a copy of the stdlib STDLIB_DIR="${TMPDIR:-"/tmp"}/go-buildpack-stdlib" ensureFile "stdlib.sh.v8" "${STDLIB_DIR}" "chmod a+x" ## Instruction: Use mktemp to create a temporary directory Do this only if TMPDIR is unset. If TMPDIR is set, use ...
ensureInPath "jq-linux64" "${cache}/.jq/bin" # Ensure we have a copy of the stdlib + if [ -z "${TMPDIR}" ]; then + STDLIB_DIR=$(mktemp -d -t stdlib.XXXXX) + else - STDLIB_DIR="${TMPDIR:-"/tmp"}/go-buildpack-stdlib" ? -------- + STDLIB_DIR="${TMPDIR}/go-buildpack-stdlib" ? ++ + fi ensu...
6
1.2
5
1
9d5db080c1679375b7cb9b4a5465b0427138073f
resources/assets/lib/beatmap-discussions/system-post.tsx
resources/assets/lib/beatmap-discussions/system-post.tsx
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. // See the LICENCE file in the repository root for full licence text. import StringWithComponent from 'components/string-with-component'; import BeatmapsetDiscussionPostJson from 'interfaces/beatmapset-discussion-...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. // See the LICENCE file in the repository root for full licence text. import StringWithComponent from 'components/string-with-component'; import BeatmapsetDiscussionPostJson from 'interfaces/beatmapset-discussion-...
Revert "render blank content for unknown types"
Revert "render blank content for unknown types" This reverts commit 3459caadd2a8f4b2ad08b323f77ca2d4570f34bb.
TypeScript
agpl-3.0
notbakaneko/osu-web,ppy/osu-web,nanaya/osu-web,nanaya/osu-web,nanaya/osu-web,ppy/osu-web,nanaya/osu-web,notbakaneko/osu-web,ppy/osu-web,notbakaneko/osu-web,notbakaneko/osu-web,ppy/osu-web,notbakaneko/osu-web,nanaya/osu-web,ppy/osu-web
typescript
## Code Before: // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. // See the LICENCE file in the repository root for full licence text. import StringWithComponent from 'components/string-with-component'; import BeatmapsetDiscussionPostJson from 'interfaces/beatma...
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. // See the LICENCE file in the repository root for full licence text. import StringWithComponent from 'components/string-with-component'; import BeatmapsetDiscussionPostJson from 'interfaces/beatmapset-d...
28
0.622222
12
16
e3bbaf9421bdc5e0ac538c57a9821b5dba0382ef
dataviva/apps/title/models.py
dataviva/apps/title/models.py
from dataviva import db class GraphTitle(db.Model): __tablename__ = 'graph_title' id = db.Column(db.Integer, primary_key=True) title_en = db.Column(db.String(255)) subtitle_en = db.Column(db.String(255)) title_pt = db.Column(db.String(255)) subtitle_pt = db.Column(db.String(255)) dataset =...
from dataviva import db class GraphTitle(db.Model): __tablename__ = 'graph_title' id = db.Column(db.Integer, primary_key=True) title_en = db.Column(db.String(255)) subtitle_en = db.Column(db.String(255)) title_pt = db.Column(db.String(255)) subtitle_pt = db.Column(db.String(255)) dataset =...
Add column to title model
Add column to title model
Python
mit
DataViva/dataviva-site,DataViva/dataviva-site,DataViva/dataviva-site,DataViva/dataviva-site
python
## Code Before: from dataviva import db class GraphTitle(db.Model): __tablename__ = 'graph_title' id = db.Column(db.Integer, primary_key=True) title_en = db.Column(db.String(255)) subtitle_en = db.Column(db.String(255)) title_pt = db.Column(db.String(255)) subtitle_pt = db.Column(db.String(255...
from dataviva import db class GraphTitle(db.Model): __tablename__ = 'graph_title' id = db.Column(db.Integer, primary_key=True) title_en = db.Column(db.String(255)) subtitle_en = db.Column(db.String(255)) title_pt = db.Column(db.String(255)) subtitle_pt = db.Column(db.String...
1
0.043478
1
0
4befcc353dfca081ea35cedc5be7687f6e0b97e4
spec/lib/gitlab/email/email_shared_blocks.rb
spec/lib/gitlab/email/email_shared_blocks.rb
shared_context :email_shared_context do let(:mail_key) { "59d8df8370b7e95c5a49fbf86aeb2c93" } let(:receiver) { Gitlab::Email::Receiver.new(email_raw) } let(:markdown) { "![image](uploads/image.png)" } def setup_attachment allow_any_instance_of(Gitlab::Email::AttachmentUploader).to receive(:execute).and_re...
require 'gitlab/email/receiver' shared_context :email_shared_context do let(:mail_key) { "59d8df8370b7e95c5a49fbf86aeb2c93" } let(:receiver) { Gitlab::Email::Receiver.new(email_raw) } let(:markdown) { "![image](uploads/image.png)" } def setup_attachment allow_any_instance_of(Gitlab::Email::AttachmentUploa...
Add missing require in tests
Add missing require in tests
Ruby
mit
htve/GitlabForChinese,screenpages/gitlabhq,t-zuehlsdorff/gitlabhq,icedwater/gitlabhq,htve/GitlabForChinese,dreampet/gitlab,LUMC/gitlabhq,jirutka/gitlabhq,htve/GitlabForChinese,openwide-java/gitlabhq,openwide-java/gitlabhq,openwide-java/gitlabhq,SVArago/gitlabhq,daiyu/gitlab-zh,t-zuehlsdorff/gitlabhq,icedwater/gitlabhq,...
ruby
## Code Before: shared_context :email_shared_context do let(:mail_key) { "59d8df8370b7e95c5a49fbf86aeb2c93" } let(:receiver) { Gitlab::Email::Receiver.new(email_raw) } let(:markdown) { "![image](uploads/image.png)" } def setup_attachment allow_any_instance_of(Gitlab::Email::AttachmentUploader).to receive(...
+ require 'gitlab/email/receiver' shared_context :email_shared_context do let(:mail_key) { "59d8df8370b7e95c5a49fbf86aeb2c93" } let(:receiver) { Gitlab::Email::Receiver.new(email_raw) } let(:markdown) { "![image](uploads/image.png)" } def setup_attachment allow_any_instance_of(Gitlab::Emai...
1
0.02439
1
0
b81218b9b9ecd293132d9bd54b6b2f9636b66e74
core/Activity.qml
core/Activity.qml
BaseActivity { start: { this.style('display', 'block') this.visible = true this.started() } stop: { this.style('display', 'none') this.visible = false this.stopped() } function getActivity() { return this } }
BaseActivity { property bool handleDisplay; start: { if (this.handleDisplay) this.style('display', 'block') this.visible = true this.started() } stop: { if (this.handleDisplay) this.style('display', 'none') this.visible = false this.stopped() } function getActivity() { return this } }
Add flag to handle 'display' style
Add flag to handle 'display' style
QML
mit
pureqml/controls
qml
## Code Before: BaseActivity { start: { this.style('display', 'block') this.visible = true this.started() } stop: { this.style('display', 'none') this.visible = false this.stopped() } function getActivity() { return this } } ## Instruction: Add flag to handle 'display' style ## Code After: BaseA...
BaseActivity { + property bool handleDisplay; + start: { + if (this.handleDisplay) - this.style('display', 'block') + this.style('display', 'block') ? + this.visible = true this.started() } stop: { + if (this.handleDisplay) - this.style('display', 'none') + this.style('display', '...
8
0.470588
6
2
0fc0754e655a0628c4b25da4fe2ddf261208deb3
gio/tests/appinfo-test.c
gio/tests/appinfo-test.c
int main (int argc, char *argv[]) { const gchar *envvar; gint pid_from_env; envvar = g_getenv ("GIO_LAUNCHED_DESKTOP_FILE_PID"); g_assert (envvar != NULL); pid_from_env = atoi (envvar); g_assert_cmpint (pid_from_env, ==, getpid ()); envvar = g_getenv ("GIO_LAUNCHED_DESKTOP_FILE"); g_assert_cmpstr (en...
int main (int argc, char *argv[]) { const gchar *envvar; g_test_init (&argc, &argv, NULL); envvar = g_getenv ("GIO_LAUNCHED_DESKTOP_FILE"); if (envvar != NULL) { gchar *expected; gint pid_from_env; expected = g_test_build_filename (G_TEST_DIST, "appinfo-test.desktop", NULL); g_as...
Fix up the appinfo test
Fix up the appinfo test One testcase was launching appinfo-test from a GAppInfo that does not have a filename. In this case, the G_LAUNCHED_DESKTOP_FILE envvar is not exported. Make appinfo-test deal with that, without spewing warnings. https://bugzilla.gnome.org/show_bug.cgi?id=711178
C
lgpl-2.1
endlessm/glib,mzabaluev/glib,tamaskenez/glib,cention-sany/glib,gale320/glib,lukasz-skalski/glib,krichter722/glib,endlessm/glib,endlessm/glib,ieei/glib,gale320/glib,ieei/glib,tamaskenez/glib,MathieuDuponchelle/glib,tamaskenez/glib,tchakabam/glib,krichter722/glib,mzabaluev/glib,ieei/glib,Distrotech/glib,johne53/MB3Glib,M...
c
## Code Before: int main (int argc, char *argv[]) { const gchar *envvar; gint pid_from_env; envvar = g_getenv ("GIO_LAUNCHED_DESKTOP_FILE_PID"); g_assert (envvar != NULL); pid_from_env = atoi (envvar); g_assert_cmpint (pid_from_env, ==, getpid ()); envvar = g_getenv ("GIO_LAUNCHED_DESKTOP_FILE"); g_a...
int main (int argc, char *argv[]) { const gchar *envvar; - gint pid_from_env; + g_test_init (&argc, &argv, NULL); - envvar = g_getenv ("GIO_LAUNCHED_DESKTOP_FILE_PID"); - g_assert (envvar != NULL); - pid_from_env = atoi (envvar); - g_assert_cmpint (pid_from_env, ==, getpid ()); envvar...
21
1.166667
15
6
159680ed9e6aa611a3ae94bace02edf440a776e1
.travis.yml
.travis.yml
language: d sudo: false d: - dmd-2.064.2 - dmd-2.065.0 - dmd-2.066.1 - ldc-0.14.0 - ldc-0.15.1 - gdc-4.9.0 script: - dub test --compiler=${DC} -c library-nonet - dub build --compiler=${DC} - DC=${DMD} ./build.sh - DUB=`pwd`/bin/dub COMPILER=${DC} test/run-unittest.sh
language: d sudo: false d: - dmd-2.064.2 - dmd-2.065.0 - dmd-2.066.1 - dmd-2.067.0-b2 - ldc-0.14.0 - ldc-0.15.1 - gdc-4.9.0 script: - dub test --compiler=${DC} -c library-nonet - dub build --compiler=${DC} - DC=${DMD} ./build.sh - DUB=`pwd`/bin/dub COMPILER=${DC} test/run-unittest.sh
Test dub with DMD 2.067 beta
Test dub with DMD 2.067 beta
YAML
mit
Geod24/dub,y12uc231/dub,Flamaros/dub,Abscissa/dub,schuetzm/dub,jelmansouri/dub,D-Programming-Language/dub,p0nce/dub,jeanbaptistelab/dub,rjframe/dub,nazriel/dub,gedaiu/dub,dreamsxin/dub,alexeibs/dub,grogancolin/dub,xentec/dub,Abscissa/dub-data-mod
yaml
## Code Before: language: d sudo: false d: - dmd-2.064.2 - dmd-2.065.0 - dmd-2.066.1 - ldc-0.14.0 - ldc-0.15.1 - gdc-4.9.0 script: - dub test --compiler=${DC} -c library-nonet - dub build --compiler=${DC} - DC=${DMD} ./build.sh - DUB=`pwd`/bin/dub COMPILER=${DC} test/run-unittest.sh ## Instructio...
language: d sudo: false d: - dmd-2.064.2 - dmd-2.065.0 - dmd-2.066.1 + - dmd-2.067.0-b2 - ldc-0.14.0 - ldc-0.15.1 - gdc-4.9.0 script: - dub test --compiler=${DC} -c library-nonet - dub build --compiler=${DC} - DC=${DMD} ./build.sh - DUB=`pwd`/bin/dub COMPILER=${DC...
1
0.0625
1
0
83020d996733b5376cfa5814ca81c8f823029346
tests/run/pyclass_annotations_pep526.py
tests/run/pyclass_annotations_pep526.py
from __future__ import annotations try: from typing import ClassVar except ImportError: # Py<=3.5 ClassVar = {int: int} class PyAnnotatedClass: """ >>> PyAnnotatedClass.__annotations__["CLASS_VAR"] 'ClassVar[int]' >>> PyAnnotatedClass.__annotations__["obj"] 'str' >>> PyAnnotatedClas...
from __future__ import annotations import sys try: from typing import ClassVar except ImportError: # Py<=3.5 ClassVar = {int: int} class PyAnnotatedClass: """ >>> PyAnnotatedClass.__annotations__["CLASS_VAR"] 'ClassVar[int]' >>> PyAnnotatedClass.__annotations__["obj"] 'str' >>> PyA...
Repair a Python compatibility test in Py3.10.
Repair a Python compatibility test in Py3.10.
Python
apache-2.0
scoder/cython,scoder/cython,scoder/cython,da-woods/cython,cython/cython,cython/cython,da-woods/cython,cython/cython,da-woods/cython,da-woods/cython,scoder/cython,cython/cython
python
## Code Before: from __future__ import annotations try: from typing import ClassVar except ImportError: # Py<=3.5 ClassVar = {int: int} class PyAnnotatedClass: """ >>> PyAnnotatedClass.__annotations__["CLASS_VAR"] 'ClassVar[int]' >>> PyAnnotatedClass.__annotations__["obj"] 'str' >>>...
from __future__ import annotations + + import sys try: from typing import ClassVar except ImportError: # Py<=3.5 ClassVar = {int: int} class PyAnnotatedClass: """ >>> PyAnnotatedClass.__annotations__["CLASS_VAR"] 'ClassVar[int]' >>> PyAnnotatedClass.__annotation...
15
0.340909
11
4
9af4f3bc2ddc07e47f311ae51e20e3f99733ea35
Orange/tests/test_regression.py
Orange/tests/test_regression.py
import unittest import inspect import pkgutil import Orange from Orange.data import Table from Orange.regression import Learner class RegressionLearnersTest(unittest.TestCase): def all_learners(self): regression_modules = pkgutil.walk_packages( path=Orange.regression.__path__, pre...
import unittest import inspect import pkgutil import traceback import Orange from Orange.data import Table from Orange.regression import Learner class RegressionLearnersTest(unittest.TestCase): def all_learners(self): regression_modules = pkgutil.walk_packages( path=Orange.regression.__path__...
Handle TypeError while testing all regression learners
Handle TypeError while testing all regression learners
Python
bsd-2-clause
qPCR4vir/orange3,marinkaz/orange3,cheral/orange3,kwikadi/orange3,kwikadi/orange3,kwikadi/orange3,marinkaz/orange3,qPCR4vir/orange3,cheral/orange3,marinkaz/orange3,cheral/orange3,marinkaz/orange3,marinkaz/orange3,qPCR4vir/orange3,cheral/orange3,qPCR4vir/orange3,kwikadi/orange3,kwikadi/orange3,qPCR4vir/orange3,cheral/ora...
python
## Code Before: import unittest import inspect import pkgutil import Orange from Orange.data import Table from Orange.regression import Learner class RegressionLearnersTest(unittest.TestCase): def all_learners(self): regression_modules = pkgutil.walk_packages( path=Orange.regression.__path__,...
import unittest import inspect import pkgutil + import traceback import Orange from Orange.data import Table from Orange.regression import Learner class RegressionLearnersTest(unittest.TestCase): def all_learners(self): regression_modules = pkgutil.walk_packages( pat...
11
0.366667
8
3
473e84daf36f723ff3d4a11c79bc1f120a796cea
Perspective/Perspective/WhosNextVC.swift
Perspective/Perspective/WhosNextVC.swift
// // WhosNextVC.swift // Perspective // // Created by Apprentice on 2/17/15. // Copyright (c) 2015 Dev Bootcamp. All rights reserved. // import UIKit class WhosNextVC: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. ...
// // WhosNextVC.swift // Perspective // // Created by Apprentice on 2/17/15. // Copyright (c) 2015 Dev Bootcamp. All rights reserved. // import UIKit class WhosNextVC: UIViewController { var url: String! override func viewDidLoad() { super.viewDidLoad() // Do any additional setup a...
Add whos next view and controller.
Add whos next view and controller.
Swift
mit
thedanpan/Perspective,dlrifkin/Perspective-1.0
swift
## Code Before: // // WhosNextVC.swift // Perspective // // Created by Apprentice on 2/17/15. // Copyright (c) 2015 Dev Bootcamp. All rights reserved. // import UIKit class WhosNextVC: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loadi...
// // WhosNextVC.swift // Perspective // // Created by Apprentice on 2/17/15. // Copyright (c) 2015 Dev Bootcamp. All rights reserved. // import UIKit class WhosNextVC: UIViewController { + + var url: String! override func viewDidLoad() { super.viewDidLoad() ...
2
0.057143
2
0
fa9663eedc829046d80d168f4a9a8ad59ed0cb82
CHANGELOG.md
CHANGELOG.md
* Initial release.
* Add an option for a detach_if callable, which can contain logic to determine whether to remove an object from the pool. ### 0.1.0 (2014-02-14) * Initial release.
Update changelog for detach_if feature.
Update changelog for detach_if feature.
Markdown
mit
chanks/pond
markdown
## Code Before: * Initial release. ## Instruction: Update changelog for detach_if feature. ## Code After: * Add an option for a detach_if callable, which can contain logic to determine whether to remove an object from the pool. ### 0.1.0 (2014-02-14) * Initial release.
+ + * Add an option for a detach_if callable, which can contain logic to + determine whether to remove an object from the pool. + + ### 0.1.0 (2014-02-14) * Initial release.
5
2.5
5
0
cdb4117f49160090e06b69e6d393199a35a77654
src/Random/Engine/LinearCongruentialEngine.php
src/Random/Engine/LinearCongruentialEngine.php
<?php /** * This file is part of the Random.php package. * * Copyright (C) 2013 Shota Nozaki <emonkak@gmail.com> * * Licensed under the MIT License */ namespace Random\Engine; class LinearCongruentialEngine extends AbstractEngine { const DEFAULT_SEED = 1; /** * @var integer */ private $a;...
<?php /** * This file is part of the Random.php package. * * Copyright (C) 2013 Shota Nozaki <emonkak@gmail.com> * * Licensed under the MIT License */ namespace Random\Engine; class LinearCongruentialEngine extends AbstractEngine { const DEFAULT_SEED = 1; /** * @var integer */ private $a;...
Fix % overflow on 32 bit systems
Fix % overflow on 32 bit systems See http://php.net/manual/en/function.fmod.php Partially fixes #1
PHP
mit
emonkak/php-random
php
## Code Before: <?php /** * This file is part of the Random.php package. * * Copyright (C) 2013 Shota Nozaki <emonkak@gmail.com> * * Licensed under the MIT License */ namespace Random\Engine; class LinearCongruentialEngine extends AbstractEngine { const DEFAULT_SEED = 1; /** * @var integer */...
<?php /** * This file is part of the Random.php package. * * Copyright (C) 2013 Shota Nozaki <emonkak@gmail.com> * * Licensed under the MIT License */ namespace Random\Engine; class LinearCongruentialEngine extends AbstractEngine { const DEFAULT_SEED = 1; /** * @v...
2
0.02439
1
1
78263f26bfd9a1eac67ca1c0ac003c23f5116985
README.md
README.md
wlanscan ======== Trigger scans for wireless networks, show visible networks, and list established connection profiles. Output from /?: ``` WlanScan - A small utility for triggering scans for wireless networks. /triggerscan Triggers a scan for wireless networks. /shownetworks Sho...
wlanscan ======== Trigger scans for wireless networks, show visible networks, and list established connection profiles. Output from /?: ``` WlanScan - A small utility for triggering scans for wireless networks. /triggerscan Triggers a scan for wireless networks. /shownetworks Sho...
Add command line compilation command
Add command line compilation command
Markdown
mit
lemavri/wlanscan
markdown
## Code Before: wlanscan ======== Trigger scans for wireless networks, show visible networks, and list established connection profiles. Output from /?: ``` WlanScan - A small utility for triggering scans for wireless networks. /triggerscan Triggers a scan for wireless networks. /shownetworks ...
wlanscan ======== Trigger scans for wireless networks, show visible networks, and list established connection profiles. Output from /?: ``` WlanScan - A small utility for triggering scans for wireless networks. /triggerscan Triggers a scan for wireless networks. /shownetwo...
6
0.25
6
0
51cf7cd177b797750bd90a504b42457f476194a1
i18n-tracking.yml
i18n-tracking.yml
es: src/data/en.yml: line 399: '' line 400: reference line 401: Reference zh-Hans: src/data/en.yml: line 399: '' line 400: reference line 401: Reference
es: src/data/en.yml: zh-Hans: src/data/en.yml:
Clean up translation tracking file
Clean up translation tracking file
YAML
mit
processing/p5.js-website,processing/p5.js-website
yaml
## Code Before: es: src/data/en.yml: line 399: '' line 400: reference line 401: Reference zh-Hans: src/data/en.yml: line 399: '' line 400: reference line 401: Reference ## Instruction: Clean up translation tracking file ## Code After: es: src/data/en.yml: zh-Hans: src/data/en.yml:
es: src/data/en.yml: - line 399: '' - line 400: reference - line 401: Reference zh-Hans: src/data/en.yml: - line 399: '' - line 400: reference - line 401: Reference
6
0.6
0
6
1df23176deed64c05dfc537593bb9cda4b54a1e8
app/javascript/app/components/web-tour/web-tour-styles.scss
app/javascript/app/components/web-tour/web-tour-styles.scss
@import '~styles/layout.scss'; .webTour { .title { font-size: $font-size; margin-bottom: 10px; } .description { margin-bottom: 10px; } .arrow { height: 10px; width: 10px; &.leftArrow { transform: rotate(180deg); } } .nextButton { background-color: $gray3; pos...
@import '~styles/layout.scss'; .webTour { .title { font-size: $font-size; margin-bottom: 10px; } .description { margin-bottom: 10px; } .arrow { height: 10px; width: 10px; &.leftArrow { transform: rotate(180deg); } } .nextButton { background-color: $gray3; pos...
Make buttons and dots bigger
Make buttons and dots bigger
SCSS
mit
Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch
scss
## Code Before: @import '~styles/layout.scss'; .webTour { .title { font-size: $font-size; margin-bottom: 10px; } .description { margin-bottom: 10px; } .arrow { height: 10px; width: 10px; &.leftArrow { transform: rotate(180deg); } } .nextButton { background-color:...
@import '~styles/layout.scss'; .webTour { .title { font-size: $font-size; margin-bottom: 10px; } .description { margin-bottom: 10px; } .arrow { height: 10px; width: 10px; &.leftArrow { transform: rotate(180deg); } } .nextBu...
11
0.203704
8
3
d606c5ac7b0f85f9611b9fe08f5b4bee5e62be49
_includes/sidebar.html
_includes/sidebar.html
<div class="sidebar-container col-md-3"> <ul class="sidebar-content"> {% if site.categories %} <li class="collapsed active" data-toggle="collapse" data-target="#categories"> <a href="#">Categories</a> </li> <ul id="categories" class="sub-menu collapse in"> {% for category in site.categorie...
<div class="sidebar-container col-md-3"> <ul class="sidebar-content"> {% if site.categories %} <li class="collapsed active" data-toggle="collapse" data-target="#categories"> <a href="#">Categories</a> </li> <ul id="categories" class="sub-menu collapse in"> {% for category in site.categorie...
Change path of all posts button.
Change path of all posts button.
HTML
apache-2.0
uhm-coe/assist,uhm-coe/assist,uhm-coe/assist,uhm-coe/assist
html
## Code Before: <div class="sidebar-container col-md-3"> <ul class="sidebar-content"> {% if site.categories %} <li class="collapsed active" data-toggle="collapse" data-target="#categories"> <a href="#">Categories</a> </li> <ul id="categories" class="sub-menu collapse in"> {% for category i...
<div class="sidebar-container col-md-3"> <ul class="sidebar-content"> {% if site.categories %} <li class="collapsed active" data-toggle="collapse" data-target="#categories"> <a href="#">Categories</a> </li> <ul id="categories" class="sub-menu collapse in"> {% for category i...
2
0.076923
1
1
0d1ac2a416d4a9b3a0f86b527a0ae9488115e21b
activity/activity.go
activity/activity.go
package activity import ( "reflect" "time" "github.com/tolexo/aero/activity/model" "github.com/tolexo/aero/db/tmongo" mgo "gopkg.in/mgo.v2" ) const ( DB_CONTAINER = "database.omni" ) //Log User activity func LogActivity(url string, body interface{}, resp reflect.Value, respCode int, respTime float64) { apiD...
package activity import ( "time" "github.com/tolexo/aero/activity/model" "github.com/tolexo/aero/db/tmongo" mgo "gopkg.in/mgo.v2" ) const ( DB_CONTAINER = "database.omni" ) //Log User activity func LogActivity(url string, body interface{}, resp interface{}, respCode int, respTime float64) { apiDetail := mode...
Revert "Revert "PRA-410: resp changed to interface""
Revert "Revert "PRA-410: resp changed to interface"" This reverts commit d12fdf8244766409cf0afba7eab9eeb75e0f2708.
Go
mit
tolexo/aero
go
## Code Before: package activity import ( "reflect" "time" "github.com/tolexo/aero/activity/model" "github.com/tolexo/aero/db/tmongo" mgo "gopkg.in/mgo.v2" ) const ( DB_CONTAINER = "database.omni" ) //Log User activity func LogActivity(url string, body interface{}, resp reflect.Value, respCode int, respTime ...
package activity import ( - "reflect" "time" "github.com/tolexo/aero/activity/model" "github.com/tolexo/aero/db/tmongo" mgo "gopkg.in/mgo.v2" ) const ( DB_CONTAINER = "database.omni" ) //Log User activity func LogActivity(url string, body interface{}, - resp reflect.Value, res...
5
0.15625
2
3
d32ff2d7599eb1899ac8c74e590f7f8c05163e24
README.md
README.md
Radium is a toolchain for handling modifiers, states, computed styles and responsive styles for react component styling. It allows you to handle complex component styling in a declarative, easy to write way. Component styling in React provides a number of benefits over traditional CSS: - Scoped styles, meaning no mor...
Radium is a toolchain for handling modifiers, states, computed styles and responsive styles for react component styling. It allows you to handle complex component styling in a declarative, easy to write way. Component styling in React provides a number of benefits over traditional CSS: - Scoped styles, meaning no mor...
Add examples note to readme
Add examples note to readme
Markdown
mit
moret/radium,andyhite/radium,almost/radium,bencao/radium,rolandpoulter/radium,Cottin/radium,KenPowers/radium,richardfickling/radium,yetone/radium,azazdeaz/radium,azazdeaz/radium,bencao/radium,MicheleBertoli/radium,clessg/radium,clessg/radium,dabbott/radium,KenPowers/radium,andyhite/radium,bobbyrenwick/radium,kof/radium...
markdown
## Code Before: Radium is a toolchain for handling modifiers, states, computed styles and responsive styles for react component styling. It allows you to handle complex component styling in a declarative, easy to write way. Component styling in React provides a number of benefits over traditional CSS: - Scoped styles...
Radium is a toolchain for handling modifiers, states, computed styles and responsive styles for react component styling. It allows you to handle complex component styling in a declarative, easy to write way. Component styling in React provides a number of benefits over traditional CSS: - Scoped styles, ...
9
0.409091
9
0
a451e50a75d7ee01d72d34c680c9d948c4fde14f
controller/users-admin/server.js
controller/users-admin/server.js
'use strict'; var assign = require('es5-ext/object/assign') , promisify = require('deferred').promisify , bcrypt = require('bcrypt') , dbjsCreate = require('mano/lib/utils/dbjs-form-create') , router = require('mano/server/post-router') , changePassword = require('mano-auth/c...
'use strict'; var assign = require('es5-ext/object/assign') , promisify = require('deferred').promisify , bcrypt = require('bcrypt') , dbjsCreate = require('mano/lib/utils/dbjs-form-create') , submit = require('mano/utils/save') , changePassword = require('mano-auth/controlle...
Fix resolution of submit function
Fix resolution of submit function
JavaScript
mit
egovernment/eregistrations,egovernment/eregistrations,egovernment/eregistrations
javascript
## Code Before: 'use strict'; var assign = require('es5-ext/object/assign') , promisify = require('deferred').promisify , bcrypt = require('bcrypt') , dbjsCreate = require('mano/lib/utils/dbjs-form-create') , router = require('mano/server/post-router') , changePassword = requ...
'use strict'; var assign = require('es5-ext/object/assign') , promisify = require('deferred').promisify , bcrypt = require('bcrypt') , dbjsCreate = require('mano/lib/utils/dbjs-form-create') - , router = require('mano/server/post-router') + , submit = requ...
5
0.131579
2
3
19ebe931c73b62e2ff4e0caf6f49ddf715429496
views/vote.jade
views/vote.jade
extends layout block content .page-header h1 Vote p Drag and drop to rank the countries in order of preference! script(src="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js") script(src="javascripts/jquery-ui-1.10.4.custom.min.js") script(src="javascripts/jquery.ui.touchpunch...
extends layout block content .page-header h1 Vote p Drag and drop to rank the countries in order of preference! script(src="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js") script(src="javascripts/jquery-ui-1.10.4.custom.min.js") script(src="javascripts/jquery.ui.touchpunch...
Add ui-state-default to list items
Add ui-state-default to list items
Jade
mit
fmcgough/eurovote,fmcgough/eurovote
jade
## Code Before: extends layout block content .page-header h1 Vote p Drag and drop to rank the countries in order of preference! script(src="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js") script(src="javascripts/jquery-ui-1.10.4.custom.min.js") script(src="javascripts/jque...
extends layout block content .page-header h1 Vote p Drag and drop to rank the countries in order of preference! script(src="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js") script(src="javascripts/jquery-ui-1.10.4.custom.min.js") script(src="javascripts/...
2
0.1
1
1
9b03391b6fd53f7c744ae5a30437f3f916ad0a9e
.travis.yml
.travis.yml
language: cpp os: - osx - linux compiler: - clang env: global: - NODE_VERSION=5 cache: directories: - node_modules - app/node_modules - .nvm - $HOME/.electron - $HOME/.npm before_install: - if [ ! -f ./.nvm/nvm.sh ]; then git clone https://github.com/creationix/nvm.git ./.nvm; fi -...
language: cpp os: - osx - linux compiler: - clang env: global: - NODE_VERSION=5 addons: apt: packages: - icnsutils cache: directories: - node_modules - app/node_modules - .nvm - $HOME/.electron - $HOME/.npm before_install: - if [ ! -f ./.nvm/nvm.sh ]; then git clone https...
Install icnsutils maybe hopefully only on linux
Install icnsutils maybe hopefully only on linux
YAML
apache-2.0
irccloud/irccloud-desktop
yaml
## Code Before: language: cpp os: - osx - linux compiler: - clang env: global: - NODE_VERSION=5 cache: directories: - node_modules - app/node_modules - .nvm - $HOME/.electron - $HOME/.npm before_install: - if [ ! -f ./.nvm/nvm.sh ]; then git clone https://github.com/creationix/nvm.gi...
language: cpp os: - osx - linux compiler: - clang env: global: - NODE_VERSION=5 + addons: + apt: + packages: + - icnsutils cache: directories: - node_modules - app/node_modules - .nvm - $HOME/.electron - $HOME/.npm before_install: - if ...
4
0.148148
4
0
6e9e21fcfacfeedff631026623c243dcd0b6e121
src/App/View.elm
src/App/View.elm
module App.View exposing (..) import Html exposing (..) import Html.Attributes exposing (..) import App.Types exposing (..) import App.Input.View as Input import App.Entries.View as Entries import App.Control.View as Control view : Model -> Html Msg view model = div [] [ Input.view model.input ,...
module App.View exposing (..) import Html exposing (..) import Html.Attributes exposing (..) import App.Types exposing (..) import App.Input.View as Input import App.Entries.View as Entries import App.Control.View as Control view : Model -> Html Msg view model = div [] [ title , Input.view model...
Add view functions for header and footer
Add view functions for header and footer
Elm
mit
jackrzhang/lister-elm,jackrzhang/lister-elm
elm
## Code Before: module App.View exposing (..) import Html exposing (..) import Html.Attributes exposing (..) import App.Types exposing (..) import App.Input.View as Input import App.Entries.View as Entries import App.Control.View as Control view : Model -> Html Msg view model = div [] [ Input.view model...
module App.View exposing (..) import Html exposing (..) import Html.Attributes exposing (..) import App.Types exposing (..) import App.Input.View as Input import App.Entries.View as Entries import App.Control.View as Control view : Model -> Html Msg view model = div [] + [ ti...
28
1.555556
27
1
83f22fd9d0ec0ca51c4908b977924e1d4589e641
modules/container/src/main/java/io/liveoak/container/tenancy/service/ApplicationGitInstallCommitService.java
modules/container/src/main/java/io/liveoak/container/tenancy/service/ApplicationGitInstallCommitService.java
package io.liveoak.container.tenancy.service; import java.io.File; import java.util.function.Consumer; import org.jboss.msc.service.Service; import org.jboss.msc.service.ServiceController; import org.jboss.msc.service.StartContext; import org.jboss.msc.service.StartException; import org.jboss.msc.service.StopContext;...
package io.liveoak.container.tenancy.service; import java.io.File; import java.util.function.Consumer; import org.jboss.logging.Logger; import org.jboss.msc.service.Service; import org.jboss.msc.service.ServiceController; import org.jboss.msc.service.StartContext; import org.jboss.msc.service.StartException; import o...
Improve error handling of git process to commit installation of application. Mainly of use in tests
Improve error handling of git process to commit installation of application. Mainly of use in tests
Java
epl-1.0
ljshj/liveoak,liveoak-io/liveoak,liveoak-io/liveoak,ljshj/liveoak,kyroskoh/liveoak,ljshj/liveoak,ammendonca/liveoak,liveoak-io/liveoak,ammendonca/liveoak,liveoak-io/liveoak,kyroskoh/liveoak,kyroskoh/liveoak,ammendonca/liveoak,kyroskoh/liveoak,ljshj/liveoak,ammendonca/liveoak
java
## Code Before: package io.liveoak.container.tenancy.service; import java.io.File; import java.util.function.Consumer; import org.jboss.msc.service.Service; import org.jboss.msc.service.ServiceController; import org.jboss.msc.service.StartContext; import org.jboss.msc.service.StartException; import org.jboss.msc.serv...
package io.liveoak.container.tenancy.service; import java.io.File; import java.util.function.Consumer; + import org.jboss.logging.Logger; import org.jboss.msc.service.Service; import org.jboss.msc.service.ServiceController; import org.jboss.msc.service.StartContext; import org.jboss.msc.service.Star...
14
0.35
10
4
28e964b14d70d9ed6bc5cfe29c33908aa0dcd3bb
src/js/components/SecondaryToolbar.js
src/js/components/SecondaryToolbar.js
import React from 'react'; import { TALENTS_PAGES } from '../constants'; export default class SecondaryToolbar extends React.Component { render() { const { page, navigateTo } = this.props; return ( <div id='secondary-toolbar'> <ul> <li className={ page === TALENTS_PAGES.POPULARITY ?...
import React from 'react'; import { TALENTS_PAGES } from '../constants'; class SecondaryToolbar extends React.Component { constructor() { super(); this.navigatePopularity = this.navigatePopularity.bind(this); this.navigateWinrate = this.navigateWinrate.bind(this); } navigatePopularity() { this...
Remove jsx binds from secondary toolbar
Remove jsx binds from secondary toolbar
JavaScript
mit
dfilipidisz/overfwolf-hots-talents,dfilipidisz/overwolf-hots-talents,dfilipidisz/overfwolf-hots-talents,dfilipidisz/overwolf-hots-talents
javascript
## Code Before: import React from 'react'; import { TALENTS_PAGES } from '../constants'; export default class SecondaryToolbar extends React.Component { render() { const { page, navigateTo } = this.props; return ( <div id='secondary-toolbar'> <ul> <li className={ page === TALENTS_PA...
import React from 'react'; import { TALENTS_PAGES } from '../constants'; - export default class SecondaryToolbar extends React.Component { ? --------------- + class SecondaryToolbar extends React.Component { + + constructor() { + super(); + + this.navigatePopularity = this.navigatePopularity.bind(th...
30
1.666667
26
4
bb21f4b13b72d56fecea4c5051b6c8090e4946f5
templates/_includes/related_posts.html
templates/_includes/related_posts.html
{% if article.related_posts %} {% from '_includes/_defaults.html' import RELATED_POSTS_LABEL with context %} <section> <h2>{{ RELATED_POSTS_LABEL }}</h2> <ul class="related-posts-list"> {% for related_post in article.related_posts %} {% set title = related_post.title|striptags %} {% set htitle = title %} ...
{% if article.related_posts %} {% from '_includes/_defaults.html' import RELATED_POSTS_LABEL with context %} <section> <h2>{{ RELATED_POSTS_LABEL }}</h2> <ul class="related-posts-list"> {% for related_post in article.related_posts|sort(attribute = 'date') %} {% set title = related_post.title|striptags %} {%...
Sort articles in the related posts section by date in ascending order
Sort articles in the related posts section by date in ascending order I think ascending is better. This way older article will appear on top of the list. Recent related articles may already appear in recent posts section. You need to bubble up older articles.
HTML
mit
Goclis/pelican-blog,Goclis/pelican-blog,Goclis/pelican-blog,Goclis/pelican-blog
html
## Code Before: {% if article.related_posts %} {% from '_includes/_defaults.html' import RELATED_POSTS_LABEL with context %} <section> <h2>{{ RELATED_POSTS_LABEL }}</h2> <ul class="related-posts-list"> {% for related_post in article.related_posts %} {% set title = related_post.title|striptags %} {% set htit...
{% if article.related_posts %} {% from '_includes/_defaults.html' import RELATED_POSTS_LABEL with context %} <section> <h2>{{ RELATED_POSTS_LABEL }}</h2> <ul class="related-posts-list"> - {% for related_post in article.related_posts %} + {% for related_post in article.related_posts|sort(attribute = 'date'...
2
0.105263
1
1
a990ade8aa367d59869378f32c8f03e630548534
README.md
README.md
simple reminders
simple reminders ## Setting it up with Uberspace ### HTTPS Proxying - Setup the .htaccess file on the root ``` [~]$ cat .htaccess RewriteEngine On RewriteCond %{HTTPS} !=on RewriteCond %{ENV:HTTPS} !=on RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L] RewriteRule ^r/(.*) http://localhost:42888/$1 [P] `...
Add install and configuration instructions
Add install and configuration instructions
Markdown
mit
sdaros/rem,sdaros/rem
markdown
## Code Before: simple reminders ## Instruction: Add install and configuration instructions ## Code After: simple reminders ## Setting it up with Uberspace ### HTTPS Proxying - Setup the .htaccess file on the root ``` [~]$ cat .htaccess RewriteEngine On RewriteCond %{HTTPS} !=on RewriteCond %{ENV:HTTPS} !=on Rewr...
simple reminders + + ## Setting it up with Uberspace + + ### HTTPS Proxying + + - Setup the .htaccess file on the root + + ``` + [~]$ cat .htaccess + RewriteEngine On + RewriteCond %{HTTPS} !=on + RewriteCond %{ENV:HTTPS} !=on + RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L] + RewriteRule ^r/(.*) h...
37
37
37
0
9837640f82de2930d162c5edaa54684fc44e1d6a
_config.yml
_config.yml
markdown: redcarpet highlighter: pygments # Permalinks permalink: pretty relative_permalinks: true # Setup title: Cranky's Cycling Blog tagline: '' description: 'A mediocre club cyclist sometimes blogs about his hobby' url: http://www.jimmycranky.co.uk baseurl...
markdown: redcarpet highlighter: pygments # Permalinks permalink: pretty relative_permalinks: true # Setup title: Cranky's Cycling Blog tagline: '' description: 'A mediocre Scottish club cyclist who sometimes blogs about his hobby' url: http://www.jimmycranky....
Change site title and description
Change site title and description
YAML
mit
mcjimbob/mcjimbob.github.io
yaml
## Code Before: markdown: redcarpet highlighter: pygments # Permalinks permalink: pretty relative_permalinks: true # Setup title: Cranky's Cycling Blog tagline: '' description: 'A mediocre club cyclist sometimes blogs about his hobby' url: http://www.jimmycran...
markdown: redcarpet highlighter: pygments # Permalinks permalink: pretty relative_permalinks: true # Setup title: Cranky's Cycling Blog tagline: '' - description: 'A mediocre club cyclist sometimes blogs about his hobby' + description: 'A mediocre ...
2
0.08
1
1
60be76a5877f276399fd299bd6f50c33aa191567
Casks/adium.rb
Casks/adium.rb
class Adium < Cask version '1.5.10' sha256 'bca3ac81d33265b71c95a3984be80715fbd98f38d7c463d0441d43a335ed399a' url "http://download.adium.im/Adium_#{version}.dmg" appcast 'http://www.adium.im/sparkle/update.php', :sha256 => 'cfb624cfa2f2526905ed7cb0eb39da98c73ef3c4633618348c00f12b2d44e19a' homepage ...
class Adium < Cask version '1.5.10' sha256 'bca3ac81d33265b71c95a3984be80715fbd98f38d7c463d0441d43a335ed399a' url "http://download.adium.im/Adium_#{version}.dmg" appcast 'https://www.adium.im/sparkle/appcast-release.xml', :sha256 => '5d05831689494b3059ddf31580438579dee1d1b2a34f24a018b86fcaadd46e53' ...
Fix appcast url for Adium.
Fix appcast url for Adium. The old url is out-of-date and points to version 1.1.4 from 2007. The new url is the correct one for stable releases.
Ruby
bsd-2-clause
jgarber623/homebrew-cask,ohammersmith/homebrew-cask,crmne/homebrew-cask,ky0615/homebrew-cask-1,uetchy/homebrew-cask,tangestani/homebrew-cask,mingzhi22/homebrew-cask,jen20/homebrew-cask,sohtsuka/homebrew-cask,mhubig/homebrew-cask,ayohrling/homebrew-cask,caskroom/homebrew-cask,skyyuan/homebrew-cask,Ephemera/homebrew-cask...
ruby
## Code Before: class Adium < Cask version '1.5.10' sha256 'bca3ac81d33265b71c95a3984be80715fbd98f38d7c463d0441d43a335ed399a' url "http://download.adium.im/Adium_#{version}.dmg" appcast 'http://www.adium.im/sparkle/update.php', :sha256 => 'cfb624cfa2f2526905ed7cb0eb39da98c73ef3c4633618348c00f12b2d44e...
class Adium < Cask version '1.5.10' sha256 'bca3ac81d33265b71c95a3984be80715fbd98f38d7c463d0441d43a335ed399a' url "http://download.adium.im/Adium_#{version}.dmg" - appcast 'http://www.adium.im/sparkle/update.php', ? ^ ^ ^^^ + appcast 'https://www.adium.im/...
4
0.210526
2
2
a8102752c77b7d45938102a391ed86e8785af4b9
recipes/helics/build.sh
recipes/helics/build.sh
set -e set -x if [ `uname` = "Darwin" ]; then FLAGS="-std=c++14" else FLAGS="-std=c++11" fi if test "${PY3K}" = "1" then BUILD_PYTHON="-DBUILD_PYTHON_INTERFACE=ON" else BUILD_PYTHON="-DBUILD_PYTHON2_INTERFACE=ON" fi mkdir -p build && cd build cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=$FLAGS ${BUILD_...
set -e set -x if [ `uname` = "Darwin" ]; then FLAGS="-std=c++14" else FLAGS="-std=c++11" fi if [[ $PY3K -eq 1 || $PY3K == "True" ]]; then BUILD_PYTHON="-DBUILD_PYTHON_INTERFACE=ON" else BUILD_PYTHON="-DBUILD_PYTHON2_INTERFACE=ON" fi mkdir -p build && cd build cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAG...
Make PY3K work for both linux and mac
Make PY3K work for both linux and mac
Shell
bsd-3-clause
barkls/staged-recipes,stuertz/staged-recipes,synapticarbors/staged-recipes,petrushy/staged-recipes,stuertz/staged-recipes,jochym/staged-recipes,ReimarBauer/staged-recipes,kwilcox/staged-recipes,ocefpaf/staged-recipes,Juanlu001/staged-recipes,goanpeca/staged-recipes,kwilcox/staged-recipes,rmcgibbo/staged-recipes,shadoww...
shell
## Code Before: set -e set -x if [ `uname` = "Darwin" ]; then FLAGS="-std=c++14" else FLAGS="-std=c++11" fi if test "${PY3K}" = "1" then BUILD_PYTHON="-DBUILD_PYTHON_INTERFACE=ON" else BUILD_PYTHON="-DBUILD_PYTHON2_INTERFACE=ON" fi mkdir -p build && cd build cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS...
set -e set -x if [ `uname` = "Darwin" ]; then FLAGS="-std=c++14" else FLAGS="-std=c++11" fi + if [[ $PY3K -eq 1 || $PY3K == "True" ]]; then - if test "${PY3K}" = "1" - then BUILD_PYTHON="-DBUILD_PYTHON_INTERFACE=ON" else BUILD_PYTHON="-DBUILD_PYTHON2_INTERFACE=ON" fi mkdir -...
3
0.12
1
2
f597d9d626039437a08f21b16b0622ddc958d6b2
templates/page.collection.tpl
templates/page.collection.tpl
{% extends "page.tpl" %} {% block title %}{{ id.title }}{% endblock %} {% block body_class %}collection{% endblock %} {% block content %} <div class="page--collection page__content-wrapper do_ginger_default_content_group_navigation"> {% with id as collection %} {% block masthead %} ...
{% extends "page.tpl" %} {% block title %}{{ id.title }}{% endblock %} {% block body_class %}collection{% endblock %} {% block content %} <div class="page--collection page__content-wrapper do_ginger_default_content_group_navigation"> {% with id as collection %} {% block masthead %} ...
Add title for other objects
[default] Add title for other objects
Smarty
apache-2.0
driebit/ginger,driebit/ginger,driebit/ginger
smarty
## Code Before: {% extends "page.tpl" %} {% block title %}{{ id.title }}{% endblock %} {% block body_class %}collection{% endblock %} {% block content %} <div class="page--collection page__content-wrapper do_ginger_default_content_group_navigation"> {% with id as collection %} {% block masthe...
{% extends "page.tpl" %} {% block title %}{{ id.title }}{% endblock %} {% block body_class %}collection{% endblock %} {% block content %} <div class="page--collection page__content-wrapper do_ginger_default_content_group_navigation"> {% with id as collection %} {% block ma...
2
0.040816
1
1
2aa57f34961218200c8cb467d0139da65b99ba0a
pubspec.yaml
pubspec.yaml
name: ambient description: A sample web application dependencies: browser: any image: any
name: AmbientImageBox description: A Dart image widget whose border color matches the image color tone. dependencies: browser: any image: any
Update Dart project name and description
Update Dart project name and description
YAML
mit
scai/ambient-imagebox
yaml
## Code Before: name: ambient description: A sample web application dependencies: browser: any image: any ## Instruction: Update Dart project name and description ## Code After: name: AmbientImageBox description: A Dart image widget whose border color matches the image color tone. dependencies: browser: any i...
- name: ambient - description: A sample web application + name: AmbientImageBox + description: A Dart image widget whose border color matches the image color tone. dependencies: browser: any image: any
4
0.8
2
2
88cc0452b7d4f787b0a9641e32dafce4dd18afe0
db/seeds/prisons/VEI-the-verne.yml
db/seeds/prisons/VEI-the-verne.yml
--- name: The Verne nomis_id: VEI address: |- Verne Common Road Portland Dorset postcode: DT5 1EQ email_address: socialvisits.theverne@hmps.gsi.gov.uk phone_no: 01305 825000 enabled: true private: false lead_days: 4 closed: false recurring: tue: - 1400-1600 wed: - 1400-1600 sat: - 1400-1600 sun: -...
--- name: The Verne nomis_id: VEI address: |- Verne Common Road Portland Dorset postcode: DT5 1EQ email_address: socialvisits.theverne@hmps.gsi.gov.uk phone_no: 01305 825000 enabled: true private: false lead_days: 4 closed: false recurring: tue: - 1400-1600 wed: - 1400-1600 sat: - 1400-1600 sun: -...
Add unbookable dates to The Verne
Add unbookable dates to The Verne Whilst testing the slots had been correctly named a couple of visitors found The Verne had online booking enabled and made requests. As there are requests we don't want to cause further issues by 'shutting' them down in production and therefore have decided to make future dates unboo...
YAML
mit
ministryofjustice/prison-visits-2,ministryofjustice/prison-visits-2,ministryofjustice/prison-visits-2,ministryofjustice/prison-visits-2
yaml
## Code Before: --- name: The Verne nomis_id: VEI address: |- Verne Common Road Portland Dorset postcode: DT5 1EQ email_address: socialvisits.theverne@hmps.gsi.gov.uk phone_no: 01305 825000 enabled: true private: false lead_days: 4 closed: false recurring: tue: - 1400-1600 wed: - 1400-1600 sat: - 1400...
--- name: The Verne nomis_id: VEI address: |- Verne Common Road Portland Dorset postcode: DT5 1EQ email_address: socialvisits.theverne@hmps.gsi.gov.uk phone_no: 01305 825000 enabled: true private: false lead_days: 4 closed: false recurring: tue: - 1400-1600 wed: - 140...
27
1.173913
27
0
b71893e794113676475b1bd6a602be4635434bb3
src/Data/Iteratee.hs
src/Data/Iteratee.hs
{-# LANGUAGE FlexibleContexts #-} module Data.Iteratee ( module Data.Iteratee.Base, module Data.Iteratee.Binary, fileDriverRandom ) where import Data.Iteratee.Base import Data.Iteratee.Binary import Data.Iteratee.IO
{- | Provide iteratee-based IO as described in Oleg Kiselyov's paper http://okmij.org/ftp/Haskell/Iteratee/. Oleg's original code uses lists to store buffers of data for reading in the iteratee. This package allows the use of arbitrary types through use of the StreamChunk type class. See Data.Iteratee.WrappedByteStr...
Add header to Haddock docs.
Add header to Haddock docs.
Haskell
bsd-3-clause
JohnLato/iteratee
haskell
## Code Before: {-# LANGUAGE FlexibleContexts #-} module Data.Iteratee ( module Data.Iteratee.Base, module Data.Iteratee.Binary, fileDriverRandom ) where import Data.Iteratee.Base import Data.Iteratee.Binary import Data.Iteratee.IO ## Instruction: Add header to Haddock docs. ## Code After: {- | Provide iter...
- {-# LANGUAGE FlexibleContexts #-} + {- | Provide iteratee-based IO as described in Oleg Kiselyov's paper http://okmij.org/ftp/Haskell/Iteratee/. + + Oleg's original code uses lists to store buffers of data for reading in the iteratee. This package allows the use of arbitrary types through use of the StreamChunk typ...
6
0.428571
5
1
2fefa148f1d419a6247ab3c924043f8ae59b666e
README.md
README.md
[![Build Status](https://travis-ci.org/zurb/inky-cli.svg?branch=master)](https://travis-ci.org/zurb/inky-cli) [![npm version](https://badge.fury.io/js/inky.svg)](https://badge.fury.io/js/inky-cli) Command-line interface for [Inky](https://github.com/zurb/inky), a templating language for HTML emails created with [Foun...
[![Build Status](https://travis-ci.org/zurb/inky-cli.svg?branch=master)](https://travis-ci.org/zurb/inky-cli) [![npm version](https://badge.fury.io/js/inky.svg)](https://badge.fury.io/js/inky-cli) Command-line interface for [Inky](https://github.com/zurb/inky), a templating language for HTML emails created with [Foun...
Add line to readme instructing users to file issues with the HTML output on the inky repo itself
Add line to readme instructing users to file issues with the HTML output on the inky repo itself
Markdown
mit
zurb/inky-cli
markdown
## Code Before: [![Build Status](https://travis-ci.org/zurb/inky-cli.svg?branch=master)](https://travis-ci.org/zurb/inky-cli) [![npm version](https://badge.fury.io/js/inky.svg)](https://badge.fury.io/js/inky-cli) Command-line interface for [Inky](https://github.com/zurb/inky), a templating language for HTML emails cr...
[![Build Status](https://travis-ci.org/zurb/inky-cli.svg?branch=master)](https://travis-ci.org/zurb/inky-cli) [![npm version](https://badge.fury.io/js/inky.svg)](https://badge.fury.io/js/inky-cli) Command-line interface for [Inky](https://github.com/zurb/inky), a templating language for HTML emails created wi...
2
0.1
2
0
a081e1554614ac92aebe31b0dd514a12484d4ece
app/lib/collections/posts.js
app/lib/collections/posts.js
Posts = new Mongo.Collection('posts'); Posts.allow({ insert: function(userId, doc) { // only allow posting if you are logged in return !! userId; } });
Posts = new Mongo.Collection('posts'); Meteor.methods({ postInsert: function(postAttributes) { check(Meteor.userId(), String); check(postAttributes, { title: String, url: String }); var user = Meteor.user(); var post = _.extend(postAttributes, { userId: user._id, author: ...
Use Meteor.methods to set up post (including user)
Use Meteor.methods to set up post (including user)
JavaScript
mit
drainpip/music-management-system,drainpip/music-management-system
javascript
## Code Before: Posts = new Mongo.Collection('posts'); Posts.allow({ insert: function(userId, doc) { // only allow posting if you are logged in return !! userId; } }); ## Instruction: Use Meteor.methods to set up post (including user) ## Code After: Posts = new Mongo.Collection('posts'); Meteor.methods({...
Posts = new Mongo.Collection('posts'); - Posts.allow({ - insert: function(userId, doc) { - // only allow posting if you are logged in - return !! userId; + Meteor.methods({ + postInsert: function(postAttributes) { + check(Meteor.userId(), String); + check(postAttributes, { + title: String...
21
2.625
17
4
4e97336f7f6b68b677b41558244652f6379a8918
package.json
package.json
{ "name": "be.bastelstu.packageServer", "description": "Package Server for WoltLab Community Framework", "homepage": "https://github.com/wbbaddons/PackageServer", "keywords": [ "woltlab community framework" ], "author": "Tim Düsterhus <timwolla@bastelstu.be>", "dependencies": { "express": "~3", "async": ">...
{ "name": "be.bastelstu.packageServer", "description": "Package Server for WoltLab Community Framework", "homepage": "https://github.com/wbbaddons/PackageServer", "keywords": [ "woltlab community framework" ], "author": "Tim Düsterhus <timwolla@bastelstu.be>", "dependencies": { "express": "~3", "async": ">...
Add coffee-script as a dependency
Add coffee-script as a dependency
JSON
agpl-3.0
wbbaddons/Tims-PackageServer,wbbaddons/Tims-PackageServer,wbbaddons/Tims-PackageServer
json
## Code Before: { "name": "be.bastelstu.packageServer", "description": "Package Server for WoltLab Community Framework", "homepage": "https://github.com/wbbaddons/PackageServer", "keywords": [ "woltlab community framework" ], "author": "Tim Düsterhus <timwolla@bastelstu.be>", "dependencies": { "express": "~3...
{ "name": "be.bastelstu.packageServer", "description": "Package Server for WoltLab Community Framework", "homepage": "https://github.com/wbbaddons/PackageServer", "keywords": [ "woltlab community framework" ], "author": "Tim Düsterhus <timwolla@bastelstu.be>", "dependencies": { "express":...
3
0.125
2
1
fd6cc34c682c773273bcdd9d09d2f7f2e4d91700
ocr/tfhelpers.py
ocr/tfhelpers.py
import tensorflow as tf class Graph(): """ Loading and running isolated tf graph """ def __init__(self, loc): self.graph = tf.Graph() self.sess = tf.Session(graph=self.graph) with self.graph.as_default(): saver = tf.train.import_meta_graph(loc + '.meta', clear_devices=True) ...
import tensorflow as tf class Graph(): """ Loading and running isolated tf graph """ def __init__(self, loc, operation='activation', input_name='x'): """ loc: location of file containing saved model operation: name of operation for running the model input_name: name of input pla...
Update Graph class for loading saved models Requires renaming operations in models -> re-train them
Update Graph class for loading saved models Requires renaming operations in models -> re-train them
Python
mit
Breta01/handwriting-ocr
python
## Code Before: import tensorflow as tf class Graph(): """ Loading and running isolated tf graph """ def __init__(self, loc): self.graph = tf.Graph() self.sess = tf.Session(graph=self.graph) with self.graph.as_default(): saver = tf.train.import_meta_graph(loc + '.meta', clea...
import tensorflow as tf class Graph(): """ Loading and running isolated tf graph """ - def __init__(self, loc): + def __init__(self, loc, operation='activation', input_name='x'): + """ + loc: location of file containing saved model + operation: name of operation for running ...
15
1.071429
11
4
cc3ee3c873b51c7d4b9925ebf9f48616da1bc49f
.github/workflows/build.yml
.github/workflows/build.yml
name: build on: push: branches: - '**' pull_request: branches: - '**' jobs: build: strategy: matrix: os: [ubuntu-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - name: Checkout VSCodeVim uses: actions/checkout@v2 with: # Get...
name: build on: push: branches: - '**' pull_request: branches: - '**' jobs: build: strategy: matrix: os: [ubuntu-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - name: Checkout VSCodeVim uses: actions/checkout@v2 with: ref: ...
Fix prettier GitHub Action... maybe?
Fix prettier GitHub Action... maybe?
YAML
mit
VSCodeVim/Vim,VSCodeVim/Vim
yaml
## Code Before: name: build on: push: branches: - '**' pull_request: branches: - '**' jobs: build: strategy: matrix: os: [ubuntu-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - name: Checkout VSCodeVim uses: actions/checkout@v2 with:...
name: build on: push: branches: - '**' pull_request: branches: - '**' jobs: build: strategy: matrix: os: [ubuntu-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - name: Checkout VSCodeVim uses: actions/che...
1
0.017241
1
0
8c6e70378f5dae065f912acaa7fecd166e7ff0ca
scss/main.scss
scss/main.scss
@import 'reset'; $breakpoints: ( small: 0, medium: 400px, large: 1024px, xlarge: 1200px, xxlarge: 1440px, ); $breakpoint-classes: (small medium large); @import '../node_modules/foundation-sites/scss/foundation'; @include foundation-flex-grid; @include foundation-visibility-classes; @include foundation-floa...
@import 'reset'; $breakpoints: ( small: 0, medium: 400px, large: 1024px, xlarge: 1200px, xxlarge: 1440px, ); $breakpoint-classes: (small medium large); @import '../node_modules/foundation-sites/scss/foundation'; @include foundation-flex-grid; @include foundation-visibility-classes; @include foundation-floa...
Remove reference to chord scss
Remove reference to chord scss
SCSS
mit
nico1000/feedr,nico1000/feedr
scss
## Code Before: @import 'reset'; $breakpoints: ( small: 0, medium: 400px, large: 1024px, xlarge: 1200px, xxlarge: 1440px, ); $breakpoint-classes: (small medium large); @import '../node_modules/foundation-sites/scss/foundation'; @include foundation-flex-grid; @include foundation-visibility-classes; @include...
@import 'reset'; $breakpoints: ( small: 0, medium: 400px, large: 1024px, xlarge: 1200px, xxlarge: 1440px, ); $breakpoint-classes: (small medium large); @import '../node_modules/foundation-sites/scss/foundation'; @include foundation-flex-grid; @include foundation-visibility-cla...
1
0.037037
0
1
5ce87fb61d472a6e4690063bf410f4174765e6ab
breath_depth_search.rb
breath_depth_search.rb
class Node attr_accessor :value, :left, :right, :name def initialize(options={}) @value = options[:value] @name = options[:name] end def children [@left, @right].compact end def children? @left && @right end def no_children? !children? end end # Create nodes root = Node.new({:...
class Node attr_accessor :value, :left, :right, :name def initialize(options={}) @value = options[:value] @name = options[:name] end def children [@left, @right].compact end def children? @left && @right end def no_children? !children? end end # Create nodes root = Node.new({:...
Complete depth first search method
Complete depth first search method
Ruby
mit
Chris-Wong-1/ruby-algorithms
ruby
## Code Before: class Node attr_accessor :value, :left, :right, :name def initialize(options={}) @value = options[:value] @name = options[:name] end def children [@left, @right].compact end def children? @left && @right end def no_children? !children? end end # Create nodes ro...
class Node attr_accessor :value, :left, :right, :name def initialize(options={}) @value = options[:value] @name = options[:name] end def children [@left, @right].compact end def children? @left && @right end def no_children? !children? end ...
9
0.1875
9
0
8c1108e91111b78826e2a165483b906fe1ae1c71
foodr-backend/app/controllers/searches_controller.rb
foodr-backend/app/controllers/searches_controller.rb
class SearchesController < ApplicationController def create end def save search = Search.find_by(id: params[:id]) if search search.update(is_saved: true) render json: { save_successful: true, search: search, product: search.product }.to_json else rende...
class SearchesController < ApplicationController def save search = Search.find_by(id: params[:id]) if search search.update(is_saved: true) render json: { save_successful: true, search: search, product: search.product }.to_json else render json: { save_succe...
Remove create method from search controller
Remove create method from search controller
Ruby
mit
foodr/foodr,foodr/foodr,foodr/foodr,foodr/foodr,foodr/foodr
ruby
## Code Before: class SearchesController < ApplicationController def create end def save search = Search.find_by(id: params[:id]) if search search.update(is_saved: true) render json: { save_successful: true, search: search, product: search.product }.to_json ...
class SearchesController < ApplicationController - - def create - end def save search = Search.find_by(id: params[:id]) if search search.update(is_saved: true) render json: { save_successful: true, search: search, product: search.product }....
3
0.157895
0
3
a6e7f053c151fc343f0dd86010b159e21c0948b5
accountsplus/forms.py
accountsplus/forms.py
from __future__ import unicode_literals import django.forms from django.conf import settings from django.apps import apps from django.contrib.auth.forms import AuthenticationForm from django.contrib.admin.forms import AdminAuthenticationForm from captcha.fields import ReCaptchaField class CaptchaForm(django.forms.F...
from __future__ import unicode_literals import django.forms from django.conf import settings from django.apps import apps from django.contrib.auth.forms import AuthenticationForm from django.contrib.admin.forms import AdminAuthenticationForm from captcha.fields import ReCaptchaField class CaptchaForm(django.forms.F...
Fix how we are reading user name
Fix how we are reading user name
Python
mit
foundertherapy/django-users-plus,foundertherapy/django-users-plus
python
## Code Before: from __future__ import unicode_literals import django.forms from django.conf import settings from django.apps import apps from django.contrib.auth.forms import AuthenticationForm from django.contrib.admin.forms import AdminAuthenticationForm from captcha.fields import ReCaptchaField class CaptchaFor...
from __future__ import unicode_literals import django.forms from django.conf import settings from django.apps import apps from django.contrib.auth.forms import AuthenticationForm from django.contrib.admin.forms import AdminAuthenticationForm from captcha.fields import ReCaptchaField class Ca...
4
0.121212
2
2
e6c672af2bc125fbe57f5bf85b5a7f912e4fd61d
network/src/main/scala/com/linkedin/norbert/network/netty/Request.scala
network/src/main/scala/com/linkedin/norbert/network/netty/Request.scala
/* * Copyright 2009-2010 LinkedIn, Inc * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
/* * Copyright 2009-2010 LinkedIn, Inc * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
Refactor so toString is more informative
Refactor so toString is more informative
Scala
apache-2.0
nickhristov/norbert,linkedin/norbert,thesiddharth/norbert,rhavyn/norbert,linkedin-sna/norbert,jhartman/norbert,jhartman/norbert,linkedin-sna/norbert
scala
## Code Before: /* * Copyright 2009-2010 LinkedIn, Inc * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
/* * Copyright 2009-2010 LinkedIn, Inc * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
9
0.375
6
3
f5e213d70042b8c7c02fe8c01df5c0d4a340712b
spec/dynamodb_mutex_spec.rb
spec/dynamodb_mutex_spec.rb
require 'spec_helper' describe DynamoDBMutex::Lock do let(:locker) { DynamoDBMutex::Lock } let(:lockname) { 'test.lock' } describe '#with_lock' do def run(id, ms) print "invoked worker #{id}...\n" locker.with_lock 'test.lock' do sleep(ms) end end it 'should execute block...
require 'spec_helper' describe DynamoDBMutex::Lock do let(:locker) { DynamoDBMutex::Lock } let(:lockname) { 'test.lock' } describe '#with_lock' do def run(id, seconds) locker.with_lock(lockname) do sleep(seconds) end end it 'should execute block by default' do locked = f...
Clarify time unit; no printing.
Clarify time unit; no printing.
Ruby
mit
clearhaus/dynamodb-mutex,clearhaus/dynamodb-mutex
ruby
## Code Before: require 'spec_helper' describe DynamoDBMutex::Lock do let(:locker) { DynamoDBMutex::Lock } let(:lockname) { 'test.lock' } describe '#with_lock' do def run(id, ms) print "invoked worker #{id}...\n" locker.with_lock 'test.lock' do sleep(ms) end end it 'shou...
require 'spec_helper' describe DynamoDBMutex::Lock do let(:locker) { DynamoDBMutex::Lock } let(:lockname) { 'test.lock' } describe '#with_lock' do - def run(id, ms) ? ^ + def run(id, seconds) ? ^^^^^^ - print "invoked worker #{id}...\n" - ...
7
0.14
3
4
a3cbc016f86753c09b53ecadddf4d9016d2689de
.travis.yml
.travis.yml
language: ruby rvm: - jruby-19mode - 1.9 - 2.2.5 - 2.3.1 - ruby-head gemfile: - gemfiles/rails32.gemfile - gemfiles/rails42.gemfile - gemfiles/rails5.gemfile sudo: false matrix: include: - rvm: jruby-1.7.24 env: JRUBY_OPTS="--2.0" gemfile: gemfiles/rails42.gemfile - rvm: jruby-...
language: ruby rvm: - jruby-19mode - 1.9 - 2.2.5 - 2.3.1 - ruby-head - 2.4.0-preview2 gemfile: - gemfiles/rails32.gemfile - gemfiles/rails42.gemfile - gemfiles/rails5.gemfile sudo: false matrix: include: - rvm: jruby-1.7.24 env: JRUBY_OPTS="--2.0" gemfile: gemfiles/rails42.gemfil...
Add 2.4 preview to build list
Add 2.4 preview to build list
YAML
apache-2.0
looker/raven-ruby,getsentry/raven-ruby
yaml
## Code Before: language: ruby rvm: - jruby-19mode - 1.9 - 2.2.5 - 2.3.1 - ruby-head gemfile: - gemfiles/rails32.gemfile - gemfiles/rails42.gemfile - gemfiles/rails5.gemfile sudo: false matrix: include: - rvm: jruby-1.7.24 env: JRUBY_OPTS="--2.0" gemfile: gemfiles/rails42.gemfile ...
language: ruby rvm: - jruby-19mode - 1.9 - 2.2.5 - 2.3.1 - ruby-head + - 2.4.0-preview2 gemfile: - gemfiles/rails32.gemfile - gemfiles/rails42.gemfile - gemfiles/rails5.gemfile sudo: false matrix: include: - rvm: jruby-1.7.24 env: JRUBY_OPTS="--2...
2
0.055556
2
0
4f3b9b7632a8d41945f6e3f8861563e591e3998d
etc/compile/compile.sh
etc/compile/compile.sh
set -Eex DIR="$(cd "$(dirname "${0}")/../.." && pwd)" cd "${DIR}" pwd BINARY="${1}" LD_FLAGS="${2}" PROFILE="${3}" TMP="$(mktemp -d -p . build.XXXXXXXXXX)" CGO_ENABLED=0 GOOS=linux go build \ -installsuffix netgo \ -tags netgo \ -o ${TMP}/${BINARY} \ -ldflags "${LD_FLAGS}" \ -gcflags "all=-trimpath=$GOPAT...
set -Eex DIR="$(cd "$(dirname "${0}")/../.." && pwd)" cd "${DIR}" pwd BINARY="${1}" LD_FLAGS="${2}" PROFILE="${3}" TMP=docker_build_${BINARY}.tmpdir mkdir -p "${TMP}" CGO_ENABLED=0 GOOS=linux go build \ -installsuffix netgo \ -tags netgo \ -o ${TMP}/${BINARY} \ -ldflags "${LD_FLAGS}" \ -gcflags "all=-trim...
Use consistent output dir (that depends on binary)
Use consistent output dir (that depends on binary)
Shell
apache-2.0
pachyderm/pfs,pachyderm/pfs,pachyderm/pfs
shell
## Code Before: set -Eex DIR="$(cd "$(dirname "${0}")/../.." && pwd)" cd "${DIR}" pwd BINARY="${1}" LD_FLAGS="${2}" PROFILE="${3}" TMP="$(mktemp -d -p . build.XXXXXXXXXX)" CGO_ENABLED=0 GOOS=linux go build \ -installsuffix netgo \ -tags netgo \ -o ${TMP}/${BINARY} \ -ldflags "${LD_FLAGS}" \ -gcflags "all=...
set -Eex DIR="$(cd "$(dirname "${0}")/../.." && pwd)" cd "${DIR}" pwd BINARY="${1}" LD_FLAGS="${2}" PROFILE="${3}" - TMP="$(mktemp -d -p . build.XXXXXXXXXX)" + TMP=docker_build_${BINARY}.tmpdir + mkdir -p "${TMP}" CGO_ENABLED=0 GOOS=linux go build \ -installsuffix netgo \ -tags netgo...
3
0.078947
2
1