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
5e6514a06132bc0fd84a8a2e07d2f739dcb09e28
meta-arago-extras/recipes-ti/tidl-api/tidl-viewer_git.bb
meta-arago-extras/recipes-ti/tidl-api/tidl-viewer_git.bb
SUMMARY = "TIDL Network Viewer" DESCRIPTION = "TIDL Network viewer using dot and graphviz" HOMEPAGE = "https://downloads.ti.com/mctools/esd/docs/tidl-api/intro.html" LICENSE = "BSD" include tidl-api.inc PR = "${INC_PR}.0" DEPENDS = "boost boost-native ti-cgt6x-native clocl-native" S = "${WORKDIR}/git" TARGET_class...
SUMMARY = "TIDL Network Viewer" DESCRIPTION = "TIDL Network viewer using dot and graphviz" HOMEPAGE = "https://downloads.ti.com/mctools/esd/docs/tidl-api/intro.html" LICENSE = "BSD" include tidl-api.inc PR = "${INC_PR}.1" DEPENDS = "boost boost-native ti-cgt6x-native clocl-native" S = "${WORKDIR}/git" TARGET_class...
Fix tidl-viewer x86_64 build CXXFLAGS
tidl-api: Fix tidl-viewer x86_64 build CXXFLAGS Signed-off-by: Yuan Zhao <33ba65427ff4207fbca20aa7a52e7b57f11b5d78@ti.com> Signed-off-by: Denys Dmytriyenko <d29de71aea38aad3a87d486929cb0aad173ae612@ti.com>
BitBake
mit
rcn-ee/meta-arago,rcn-ee/meta-arago,rcn-ee/meta-arago,rcn-ee/meta-arago,rcn-ee/meta-arago
bitbake
## Code Before: SUMMARY = "TIDL Network Viewer" DESCRIPTION = "TIDL Network viewer using dot and graphviz" HOMEPAGE = "https://downloads.ti.com/mctools/esd/docs/tidl-api/intro.html" LICENSE = "BSD" include tidl-api.inc PR = "${INC_PR}.0" DEPENDS = "boost boost-native ti-cgt6x-native clocl-native" S = "${WORKDIR}/gi...
SUMMARY = "TIDL Network Viewer" DESCRIPTION = "TIDL Network viewer using dot and graphviz" HOMEPAGE = "https://downloads.ti.com/mctools/esd/docs/tidl-api/intro.html" LICENSE = "BSD" include tidl-api.inc - PR = "${INC_PR}.0" ? ^ + PR = "${INC_PR}.1" ? ^ DEPENDS = "b...
5
0.15625
4
1
099d7f8bce4f069853f067e3f089b5ce3baf8fd5
lib/views/general/_frontpage_intro_sentence.html.erb
lib/views/general/_frontpage_intro_sentence.html.erb
<h2>Your Right to Know</h2> <p> <%= link_to "Everyone", help_requesting_path(:anchor => "who") %> has the right to access information held by Australian public authorities. <% if AlaveteliConfiguration.authority_must_respond %> <%= _("By law, they have to respond.") %> <% end %> </p> <p><a href="<%= help_a...
<h2>Your Right to Know</h2> <p> <%= link_to "Everyone", help_requesting_path(:anchor => "who") %> has the right to access information held by Australian public authorities. <% if AlaveteliConfiguration.authority_must_respond %> <%= _("By law, they have to respond.") %> <% end %> </p>
Remove link in intro sentence to more information about FOI because there is now a little explainer below with a link to the same detailed information on the help pages
Remove link in intro sentence to more information about FOI because there is now a little explainer below with a link to the same detailed information on the help pages
HTML+ERB
mit
openaustralia/righttoknow,openaustralia/righttoknow,openaustralia/righttoknow
html+erb
## Code Before: <h2>Your Right to Know</h2> <p> <%= link_to "Everyone", help_requesting_path(:anchor => "who") %> has the right to access information held by Australian public authorities. <% if AlaveteliConfiguration.authority_must_respond %> <%= _("By law, they have to respond.") %> <% end %> </p> <p><a ...
<h2>Your Right to Know</h2> <p> <%= link_to "Everyone", help_requesting_path(:anchor => "who") %> has the right to access information held by Australian public authorities. <% if AlaveteliConfiguration.authority_must_respond %> <%= _("By law, they have to respond.") %> <% end %> </p> - <p><...
1
0.111111
0
1
409405f67426ba6548ba167f42393392e0805787
lib/_utils.js
lib/_utils.js
// Returns true if this is a host that closes *before* it ends?!?! module.exports.isAnEarlyCloseHost= function( hostName ) { return hostName.match(".*google(apis)?.com$") }
// Returns true if this is a host that closes *before* it ends?!?! module.exports.isAnEarlyCloseHost= function( hostName ) { return hostName && hostName.match(".*google(apis)?.com$") }
Update to make sure hostName exists before trying to act on it. Otherwise it will throw an error.
Update to make sure hostName exists before trying to act on it. Otherwise it will throw an error.
JavaScript
mit
adjohnson916/node-oauth,waffleio/node-oauth,hiddentao/node-oauth,WatchBeam/node-oauth,compsol-michael/nodejs-with-pfx-integration,dongguangming/node-oauth,mhart/node-oauth,hallta/node-oauth,hoist/node-oauth,sktguha/node-oauth,bhargav175/node-oauth,matuszeman/node-oauth,Cellarise/oauth-rest-atlassian,kasparaasamets/node...
javascript
## Code Before: // Returns true if this is a host that closes *before* it ends?!?! module.exports.isAnEarlyCloseHost= function( hostName ) { return hostName.match(".*google(apis)?.com$") } ## Instruction: Update to make sure hostName exists before trying to act on it. Otherwise it will throw an error. ## Code After: ...
// Returns true if this is a host that closes *before* it ends?!?! module.exports.isAnEarlyCloseHost= function( hostName ) { - return hostName.match(".*google(apis)?.com$") + return hostName && hostName.match(".*google(apis)?.com$") ? ++++++++++++ }
2
0.5
1
1
b5d5629faeced8f3dca80edc3773b49376383ba4
js/app/interactionLoader.js
js/app/interactionLoader.js
const EvinceDocument = imports.gi.EvinceDocument; const Gio = imports.gi.Gio; const ModuleFactory = imports.app.moduleFactory; const Utils = imports.app.utils; let create_interaction = function (application, resource_path) { // Initialize libraries EvinceDocument.init(); let app_resource = Gio.Resource.l...
const EvinceDocument = imports.gi.EvinceDocument; const Gio = imports.gi.Gio; const ModuleFactory = imports.app.moduleFactory; const Utils = imports.app.utils; let create_interaction = function (application, resource_path) { // Initialize libraries EvinceDocument.init(); let app_resource = Gio.Resource.l...
Allow app.json without templateType key
Allow app.json without templateType key The v2 app.json should not have a templateType key in it. MeshInteraction does require that it is constructed with that key, at least until we refactor it, so pass a blank string when the app.json does not contain a templateType key. https://phabricator.endlessm.com/T11064
JavaScript
lgpl-2.1
endlessm/eos-knowledge-lib,endlessm/eos-knowledge-lib,endlessm/eos-knowledge-lib,endlessm/eos-knowledge-lib
javascript
## Code Before: const EvinceDocument = imports.gi.EvinceDocument; const Gio = imports.gi.Gio; const ModuleFactory = imports.app.moduleFactory; const Utils = imports.app.utils; let create_interaction = function (application, resource_path) { // Initialize libraries EvinceDocument.init(); let app_resource ...
const EvinceDocument = imports.gi.EvinceDocument; const Gio = imports.gi.Gio; const ModuleFactory = imports.app.moduleFactory; const Utils = imports.app.utils; let create_interaction = function (application, resource_path) { // Initialize libraries EvinceDocument.init(); let app_res...
3
0.081081
2
1
4626b4480bc3f18d169d0435b983eb80aa8658b1
docs/examples/python-requests-jwt.md
docs/examples/python-requests-jwt.md
This code relies on setting up the PostgreSQL auth functions and grants correctly first. Follow these instructions: http://postgrest.com/examples/users/ After completing the configuration, be sure to create a user with email, password, role, and verified flag. We'll use that user to login in the code below. Install...
This code relies on setting up the PostgreSQL auth functions and grants correctly first. Follow these instructions: http://postgrest.com/examples/users/ After completing the configuration, be sure to create a user with email, password, role, and verified flag. We'll use that user to login in the code below. Install...
Update doc with pagination using Range header
Update doc with pagination using Range header
Markdown
mit
NotBrianZach/postgrest,league/postgrest,begriffs/postgrest,steve-chavez/postgrest,steve-chavez/postgrest,diogob/postgrest,motiz88/postgrest,ruslantalpa/postgrest,Skyfold/postgrest
markdown
## Code Before: This code relies on setting up the PostgreSQL auth functions and grants correctly first. Follow these instructions: http://postgrest.com/examples/users/ After completing the configuration, be sure to create a user with email, password, role, and verified flag. We'll use that user to login in the code...
This code relies on setting up the PostgreSQL auth functions and grants correctly first. Follow these instructions: http://postgrest.com/examples/users/ After completing the configuration, be sure to create a user with email, password, role, and verified flag. We'll use that user to login in the code bel...
13
0.351351
9
4
4ae3b77847eeefd07d83f863c6ec71d7fdf750cb
turbustat/tests/test_rfft_to_fft.py
turbustat/tests/test_rfft_to_fft.py
from turbustat.statistics.rfft_to_fft import rfft_to_fft from ._testing_data import dataset1 import numpy as np import numpy.testing as npt from unittest import TestCase class testRFFT(TestCase): """docstring for testRFFT""" def __init__(self): self.dataset1 = dataset1 self.comp_rfft = rff...
import pytest from ..statistics.rfft_to_fft import rfft_to_fft from ._testing_data import dataset1 import numpy as np import numpy.testing as npt def test_rfft_to_rfft(): comp_rfft = rfft_to_fft(dataset1['moment0'][0]) test_rfft = np.abs(np.fft.rfftn(dataset1['moment0'][0])) shape2 = test_rfft.shap...
Fix and update the rfft tests
Fix and update the rfft tests
Python
mit
e-koch/TurbuStat,Astroua/TurbuStat
python
## Code Before: from turbustat.statistics.rfft_to_fft import rfft_to_fft from ._testing_data import dataset1 import numpy as np import numpy.testing as npt from unittest import TestCase class testRFFT(TestCase): """docstring for testRFFT""" def __init__(self): self.dataset1 = dataset1 self...
+ import pytest + - from turbustat.statistics.rfft_to_fft import rfft_to_fft ? ^^^^^^^^^ + from ..statistics.rfft_to_fft import rfft_to_fft ? ^ from ._testing_data import dataset1 import numpy as np import numpy.testing as npt - from unittest import TestCase + def test_rfft_to_rfft(): ...
28
1
14
14
4701dcb5f66b1b28c494c88875d591ed50eff93e
.eslintrc.yml
.eslintrc.yml
root: true extends: semistandard rules: indent: - error - 4 camelcase: off padded-blocks: off operator-linebreak: off no-throw-literal: off linebreak-style: - error - unix
root: true extends: semistandard rules: indent: - error - 4 camelcase: off padded-blocks: off operator-linebreak: off no-throw-literal: off linebreak-style: - error - unix promise/catch-or-return: error
Add ESLint rule against unhandled promises
Add ESLint rule against unhandled promises
YAML
apache-2.0
apache/cordova-lib,shazron/cordova-lib,apache/cordova-lib,shazron/cordova-lib,shazron/cordova-lib,shazron/cordova-lib,shazron/cordova-lib,apache/cordova-lib,apache/cordova-lib,apache/cordova-lib,shazron/cordova-lib
yaml
## Code Before: root: true extends: semistandard rules: indent: - error - 4 camelcase: off padded-blocks: off operator-linebreak: off no-throw-literal: off linebreak-style: - error - unix ## Instruction: Add ESLint rule against unhandled promises ## Code After: root: true extends: semistan...
root: true extends: semistandard rules: indent: - error - 4 camelcase: off padded-blocks: off operator-linebreak: off no-throw-literal: off linebreak-style: - error - unix + promise/catch-or-return: error
1
0.076923
1
0
716b73ccd5d08d14d045a3d98bc53161a459fc48
app/components/elements/Tooltip.jsx
app/components/elements/Tooltip.jsx
import React from 'react'; import {LinkWithTooltip} from 'react-foundation-components/lib/global/tooltip'; export default ({children, t}) => { //return (<LinkWithTooltip tooltipContent={t} tooltipPosition="top" tooltipIndicator={false}> // {children} //</LinkWithTooltip>); return <span title={t}>{ch...
import React from 'react'; import {LinkWithTooltip} from 'react-foundation-components/lib/global/tooltip'; export default ({children, t}) => { //return (<LinkWithTooltip tooltipContent={t} tooltipPosition="top" tooltipIndicator={false}> // {children} //</LinkWithTooltip>); return <span style={{curso...
Use 'help' cursor to indicate tooltips
Use 'help' cursor to indicate tooltips
JSX
mit
steemit/steemit.com,enisey14/platform,TimCliff/steemit.com,TimCliff/steemit.com,steemit-intl/steemit.com,GolosChain/tolstoy,enisey14/platform,steemit/steemit.com,steemit-intl/steemit.com,steemit/steemit.com,GolosChain/tolstoy,GolosChain/tolstoy,TimCliff/steemit.com
jsx
## Code Before: import React from 'react'; import {LinkWithTooltip} from 'react-foundation-components/lib/global/tooltip'; export default ({children, t}) => { //return (<LinkWithTooltip tooltipContent={t} tooltipPosition="top" tooltipIndicator={false}> // {children} //</LinkWithTooltip>); return <sp...
import React from 'react'; import {LinkWithTooltip} from 'react-foundation-components/lib/global/tooltip'; export default ({children, t}) => { //return (<LinkWithTooltip tooltipContent={t} tooltipPosition="top" tooltipIndicator={false}> // {children} //</LinkWithTooltip>); - return <sp...
2
0.222222
1
1
1243c71642e6ae1eb1422e7de1c0cf8d0b252b21
app/views/home/index.html.erb
app/views/home/index.html.erb
<div class ="container-fluid"> <h1 class="landing-title">Welcome to Prayerly</h1> <%= link_to "All prayer categories", categories_path %> <div class="video-container"> <!-- <video autoplay loop muted> <source src="lit_candle.mp4" type="video/mp4"> <source src="lit_candle.webm" type="video/webm"> <...
<div class="container-fluid"> <h1 class="landing-title">Welcome to Prayerly</h1> <%= button_to "Enter", categories_path, :method => :get, id: "enter_button" class: "btn btn-primary" %> <div class="video-container"> <!-- <video autoplay loop muted> <source src="lit_candle.mp4" type="video/mp4"> <source...
Make a link_to into a button to get to categories index
Make a link_to into a button to get to categories index
HTML+ERB
mit
cloverharvest/prayerly,cloverharvest/prayerly,cloverharvest/prayerly
html+erb
## Code Before: <div class ="container-fluid"> <h1 class="landing-title">Welcome to Prayerly</h1> <%= link_to "All prayer categories", categories_path %> <div class="video-container"> <!-- <video autoplay loop muted> <source src="lit_candle.mp4" type="video/mp4"> <source src="lit_candle.webm" type="vi...
- <div class ="container-fluid"> ? - + <div class="container-fluid"> <h1 class="landing-title">Welcome to Prayerly</h1> - <%= link_to "All prayer categories", categories_path %> + <%= button_to "Enter", categories_path, :method => :get, id: "enter_button" class: "btn btn-primary" %> <div class="video-c...
6
0.6
3
3
77cb4c31cb9d36ff6bd2de47e8f16be5a85ce044
README.md
README.md
This repository aims to host the versioned and authoritative source data for the OWASP ASVS project. ## Why JSON? In order to build on top of this data a strict and normalized format was required ( unlike say storing everything in MarkDown or HTML) as it's much easier to remove strictness then to add it. There are ma...
This repository aims to host the versioned and authoritative source data for the OWASP ASVS project. ## Why JSON? In order to build on top of this data a strict and normalized format was required ( unlike say storing everything in MarkDown or HTML) as it's much easier to remove strictness then to add it. There are ma...
Remove the snobbery about Node, any tools in any languages are allowed as long as they can be executed by maintainers
Remove the snobbery about Node, any tools in any languages are allowed as long as they can be executed by maintainers
Markdown
apache-2.0
ibuildingsnl/owasp-asvs
markdown
## Code Before: This repository aims to host the versioned and authoritative source data for the OWASP ASVS project. ## Why JSON? In order to build on top of this data a strict and normalized format was required ( unlike say storing everything in MarkDown or HTML) as it's much easier to remove strictness then to add ...
This repository aims to host the versioned and authoritative source data for the OWASP ASVS project. ## Why JSON? In order to build on top of this data a strict and normalized format was required ( unlike say storing everything in MarkDown or HTML) as it's much easier to remove strictness then to add it. ...
4
0.190476
0
4
75df57fa409b6f1a13df3db7692ced6a45b4b11c
javersion-jdbc/src/test/resources/db/migration/common/V3__test.sql
javersion-jdbc/src/test/resources/db/migration/common/V3__test.sql
alter table DOCUMENT_VERSION add column ID bigint; alter table DOCUMENT_VERSION add column NAME varchar(255); alter table ENTITY add column NAME varchar(255); alter table ENTITY_VERSION add column COMMENT varchar(255);
alter table DOCUMENT_VERSION add column ID bigint; alter table DOCUMENT_VERSION add column NAME varchar(255); alter table ENTITY add column NAME varchar(255); alter table ENTITY_VERSION add column COMMENT varchar(255); create index ENTITY_VERSION_PROPERTY_STATUS_IDX on ENTITY_VERSION_PROPERTY (STATUS);
Add index to speed up tests
Add index to speed up tests
SQL
apache-2.0
ssaarela/javersion,ssaarela/javersion,ssaarela/javersion
sql
## Code Before: alter table DOCUMENT_VERSION add column ID bigint; alter table DOCUMENT_VERSION add column NAME varchar(255); alter table ENTITY add column NAME varchar(255); alter table ENTITY_VERSION add column COMMENT varchar(255); ## Instruction: Add index to speed up tests ## Code After: alter table DOCUMENT_VE...
alter table DOCUMENT_VERSION add column ID bigint; alter table DOCUMENT_VERSION add column NAME varchar(255); alter table ENTITY add column NAME varchar(255); alter table ENTITY_VERSION add column COMMENT varchar(255); + + create index ENTITY_VERSION_PROPERTY_STATUS_IDX on ENTITY_VERSION_PROPERTY (STATUS);
2
0.4
2
0
28c6fdf6a8ae505317207dc4adeeba45cc59b855
lib/matasano_crypto_challenges/set_01/challenge_01.rb
lib/matasano_crypto_challenges/set_01/challenge_01.rb
require 'base64' module MatasanoCryptoChallenges module Set01; end end class MatasanoCryptoChallenges::Set01::Challenge01 HEX = '49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d' def call base64 end private def base64 Base64.strict_encode64 binar...
module MatasanoCryptoChallenges module Set01; end end class MatasanoCryptoChallenges::Set01::Challenge01 BASE64 = %w(A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9 + /) HEX = '49276d206b696c6c696e6720796f...
Implement Base-64 encoding instead of using the Ruby stdlib
Implement Base-64 encoding instead of using the Ruby stdlib This is a naive implementation that doesn't handle '=' padding.
Ruby
mit
njonsson/matasano_crypto_challenges
ruby
## Code Before: require 'base64' module MatasanoCryptoChallenges module Set01; end end class MatasanoCryptoChallenges::Set01::Challenge01 HEX = '49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d' def call base64 end private def base64 Base64.stric...
- require 'base64' - module MatasanoCryptoChallenges module Set01; end end class MatasanoCryptoChallenges::Set01::Challenge01 + + BASE64 = %w(A B C D E F G H I J K L M N O P Q R S T U V W X Y Z + a b c d e f g h i j k l m n o p q r s t u v w x y z + 0 1 2 3 4 5 6 7 8 9...
32
0.864865
18
14
c91d32180ff186b38983eaf2175105d9c6bbd169
modules/puppet/spec/classes/puppet__master_spec.rb
modules/puppet/spec/classes/puppet__master_spec.rb
require_relative '../../../../spec_helper' describe 'puppet::master', :type => :class do # concat_basedir needed for puppetdb module (for postgresql) let(:facts) {{ :concat_basedir => '/var/lib/puppet/concat/'}} it do is_expected.to contain_file('/etc/init/puppetmaster.conf'). with_content(/unicornher...
require_relative '../../../../spec_helper' describe 'puppet::master', :type => :class do # concat_basedir needed for puppetdb module (for postgresql) let(:facts) {{ :concat_basedir => '/var/lib/puppet/concat/', :id => 'root', :kernel => 'Linux', :path => 'concatted_fil...
Add stub values that allow concat tests to pass under strict.
Add stub values that allow concat tests to pass under strict.
Ruby
mit
alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet
ruby
## Code Before: require_relative '../../../../spec_helper' describe 'puppet::master', :type => :class do # concat_basedir needed for puppetdb module (for postgresql) let(:facts) {{ :concat_basedir => '/var/lib/puppet/concat/'}} it do is_expected.to contain_file('/etc/init/puppetmaster.conf'). with_con...
require_relative '../../../../spec_helper' describe 'puppet::master', :type => :class do # concat_basedir needed for puppetdb module (for postgresql) + let(:facts) {{ - let(:facts) {{ :concat_basedir => '/var/lib/puppet/concat/'}} ? ----------- -- ^^ + :...
7
0.333333
6
1
f4dcff836c5a4ce5b4fd8627c069f81ff8d664a6
src/pureComponent.js
src/pureComponent.js
/* eslint-disable no-unused-vars, class-methods-use-this */ import { Component } from 'react'; class ReactComponentUpdate extends Component { componentWillMount() { this.componentWillMountOrReceiveProps(this.props); } componentDidMount() { this.componentDidMountOrUpdate(this.props, this.state); } componentW...
/* eslint-disable no-unused-vars, class-methods-use-this */ import { PureComponent } from 'react'; class ReactPureComponentUpdate extends PureComponent { componentWillMount() { this.componentWillMountOrReceiveProps(this.props); } componentDidMount() { this.componentDidMountOrUpdate(this.props, this.state); } ...
Update PureComponent to extend React.PureComponent.
Update PureComponent to extend React.PureComponent.
JavaScript
mit
wimpyprogrammer/react-component-update
javascript
## Code Before: /* eslint-disable no-unused-vars, class-methods-use-this */ import { Component } from 'react'; class ReactComponentUpdate extends Component { componentWillMount() { this.componentWillMountOrReceiveProps(this.props); } componentDidMount() { this.componentDidMountOrUpdate(this.props, this.state);...
/* eslint-disable no-unused-vars, class-methods-use-this */ - import { Component } from 'react'; + import { PureComponent } from 'react'; ? ++++ - class ReactComponentUpdate extends Component { + class ReactPureComponentUpdate extends PureComponent { ? ++++ ++++ comp...
6
0.230769
3
3
93e416c26caf55f60bad1e4089a369ac84dd1551
src/main/webapp/WEB-INF/themes/desktop/ftl/article/figure_carousel.ftl
src/main/webapp/WEB-INF/themes/desktop/ftl/article/figure_carousel.ftl
<#if article.figures?has_content> <div id="figure-carousel-section"> <h2>Figures</h2> <div id="figure-carousel"> <div class="carousel-wrapper"><#-- Horizontally scrolling view window --> <div class="slider"><#-- Large-width container --> <#list article.figures as figure> <#-- Omit fig...
<#if article.figures?has_content> <div id="figure-carousel-section"> <h2>Figures</h2> <div id="figure-carousel"> <div class="carousel-wrapper"><#-- Horizontally scrolling view window --> <div class="slider"><#-- Large-width container --> <#list article.figures as figure> <#-- Omit fig...
Apply version pointer to figure carousel
DPRO-2772: Apply version pointer to figure carousel
FreeMarker
mit
PLOS/wombat,PLOS/wombat,PLOS/wombat,PLOS/wombat
freemarker
## Code Before: <#if article.figures?has_content> <div id="figure-carousel-section"> <h2>Figures</h2> <div id="figure-carousel"> <div class="carousel-wrapper"><#-- Horizontally scrolling view window --> <div class="slider"><#-- Large-width container --> <#list article.figures as figure> ...
<#if article.figures?has_content> <div id="figure-carousel-section"> <h2>Figures</h2> <div id="figure-carousel"> <div class="carousel-wrapper"><#-- Horizontally scrolling view window --> <div class="slider"><#-- Large-width container --> <#list article.figures as figure> ...
2
0.046512
1
1
f28a3c16cbd13b925ab983bb407eec325f4bb84e
Casks/0ad.rb
Casks/0ad.rb
cask :v1 => '0ad' do version '0.0.17-alpha' sha256 '7493a8775946f56482939ee51d96ae41a7a8e114ccf050e1406ff4ebf5cb6a7f' # wildfiregames.com is the official download host per the vendor homepage url "http://releases.wildfiregames.com/0ad-#{version}-osx64.dmg" name '0 A.D.' homepage 'http://www.play0ad.com/' ...
cask :v1 => '0ad' do version '0.0.17-alpha' sha256 '7493a8775946f56482939ee51d96ae41a7a8e114ccf050e1406ff4ebf5cb6a7f' # wildfiregames.com is the official download host per the vendor homepage url "http://releases.wildfiregames.com/0ad-#{version}-osx64.dmg" name '0 A.D.' homepage 'http://www.play0ad.com/' ...
Include license information for 0AD.
Include license information for 0AD. Contains a mixture of licenses, the game engine is GPL, but art assets are CC licensed, and contains many other components with differing licenses.
Ruby
bsd-2-clause
kirikiriyamama/homebrew-cask,jellyfishcoder/homebrew-cask,nrlquaker/homebrew-cask,carlmod/homebrew-cask,julienlavergne/homebrew-cask,djakarta-trap/homebrew-myCask,koenrh/homebrew-cask,enriclluelles/homebrew-cask,lcasey001/homebrew-cask,josa42/homebrew-cask,puffdad/homebrew-cask,samdoran/homebrew-cask,dustinblackman/hom...
ruby
## Code Before: cask :v1 => '0ad' do version '0.0.17-alpha' sha256 '7493a8775946f56482939ee51d96ae41a7a8e114ccf050e1406ff4ebf5cb6a7f' # wildfiregames.com is the official download host per the vendor homepage url "http://releases.wildfiregames.com/0ad-#{version}-osx64.dmg" name '0 A.D.' homepage 'http://www...
cask :v1 => '0ad' do version '0.0.17-alpha' sha256 '7493a8775946f56482939ee51d96ae41a7a8e114ccf050e1406ff4ebf5cb6a7f' # wildfiregames.com is the official download host per the vendor homepage url "http://releases.wildfiregames.com/0ad-#{version}-osx64.dmg" name '0 A.D.' homepage 'http://www...
2
0.166667
1
1
0ade92705c7d67a356b99bea68e2e864c51330f4
doc/md/CodingStyle.md
doc/md/CodingStyle.md
This file documents the coding style used in shogun. If someone pointed you to this document, then your code was probably not well-formatted. But no worries, all you need is to apply the following command to the files to be committed: ``` $ astyle --style=allman --lineend=linux --indent=tab=8 \\ --unpad-par...
This file documents the coding style used in shogun. If someone pointed you to this document, then your code was probably not well-formatted. But no worries, all you need is to apply the following command to the files to be committed: ``` $ astyle --style=allman --lineend=linux --indent=tab=8 \\ --break-blo...
Add `--break-blocks` to add newlines after blocks
Add `--break-blocks` to add newlines after blocks
Markdown
bsd-3-clause
karlnapf/shogun,sorig/shogun,geektoni/shogun,shogun-toolbox/shogun,lambday/shogun,sorig/shogun,lambday/shogun,geektoni/shogun,geektoni/shogun,Saurabh7/shogun,besser82/shogun,lambday/shogun,karlnapf/shogun,geektoni/shogun,karlnapf/shogun,Saurabh7/shogun,shogun-toolbox/shogun,lisitsyn/shogun,shogun-toolbox/shogun,lambday...
markdown
## Code Before: This file documents the coding style used in shogun. If someone pointed you to this document, then your code was probably not well-formatted. But no worries, all you need is to apply the following command to the files to be committed: ``` $ astyle --style=allman --lineend=linux --indent=tab=8 \\ ...
This file documents the coding style used in shogun. If someone pointed you to this document, then your code was probably not well-formatted. But no worries, all you need is to apply the following command to the files to be committed: ``` $ astyle --style=allman --lineend=linux --indent=tab=8 \\ - ...
2
0.117647
1
1
47950cf16a857cefcf0dde86e9696640fba5e7fc
src/coffee/game/enums.coffee
src/coffee/game/enums.coffee
angular.module 'gameDefinition.enums', [] .factory 'enums', () -> origins: illusionist: 'an illusionist' hallucinist: 'a hallucinist' hypnotist: 'a hypnotist' leads: none: undefined jackie: 'Jackie' employer: 'KB&S' cop: 'Officer Dentley' student: 'Ms. Denotto'
angular.module 'gameDefinition.enums', [] .factory 'enums', () -> origins: illusionist: 'an illusionist' hallucinist: 'a hallucinist' hypnotist: 'a hypnotist' leads: none: undefined jackie: 'Jackie' employer: 'KB&S' cop: 'Officer Dentley' student: 'Ms. Denotto'...
Add Roxy Lead to Enums
Add Roxy Lead to Enums
CoffeeScript
unlicense
arashikou/exper3-2015
coffeescript
## Code Before: angular.module 'gameDefinition.enums', [] .factory 'enums', () -> origins: illusionist: 'an illusionist' hallucinist: 'a hallucinist' hypnotist: 'a hypnotist' leads: none: undefined jackie: 'Jackie' employer: 'KB&S' cop: 'Officer Dentley' student...
angular.module 'gameDefinition.enums', [] .factory 'enums', () -> origins: illusionist: 'an illusionist' hallucinist: 'a hallucinist' hypnotist: 'a hypnotist' + leads: none: undefined jackie: 'Jackie' employer: 'KB&S' cop: 'Officer Dentley' ...
2
0.166667
2
0
4faf5eb2dc38edc9f133484327fb261a39bcbf55
apis/Google.LongRunning/postgeneration.sh
apis/Google.LongRunning/postgeneration.sh
set -e # Undo the changes made in pregeneration.sh and pregeneration.patch git -C ../../googleapis checkout google/longrunning/longrunning_gapic.yaml
set -e # Undo the changes made in pregeneration.sh and pregeneration.patch git -C ../../googleapis checkout google/longrunning
Fix the post-generation fix-up for LRO
Fix the post-generation fix-up for LRO (We want to revert changes to multiple files, so just check out the directory.)
Shell
apache-2.0
jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet,jskeet/gcloud-dotnet,jskeet/google-cloud-dotnet,jskeet/google-cloud-dotnet,googleapis/google-cloud-dotnet,jskeet/google-cloud-dotnet
shell
## Code Before: set -e # Undo the changes made in pregeneration.sh and pregeneration.patch git -C ../../googleapis checkout google/longrunning/longrunning_gapic.yaml ## Instruction: Fix the post-generation fix-up for LRO (We want to revert changes to multiple files, so just check out the directory.) ## Code After:...
set -e # Undo the changes made in pregeneration.sh and pregeneration.patch - git -C ../../googleapis checkout google/longrunning/longrunning_gapic.yaml ? ----------------------- + git -C ../../googleapis checkout google/longrunning
2
0.4
1
1
0bf08cdc6946d0242aab10395484b447883df153
lagunita/lms/static/sass/multicourse/_courses.scss
lagunita/lms/static/sass/multicourse/_courses.scss
@import 'lms/static/sass/base/grid-settings'; @import 'neat/neat'; .find-courses { .courses-container { .courses { &:not(.no-course-discovery) { @include span-columns(12); @include media($bp-medium) { @include span-columns(8); // 8 of 8 @include omega(2n); } ...
.find-courses { .search-facets { display: none; } }
Remove broken course listing style override
Remove broken course listing style override
SCSS
apache-2.0
Stanford-Online/openedx-themes
scss
## Code Before: @import 'lms/static/sass/base/grid-settings'; @import 'neat/neat'; .find-courses { .courses-container { .courses { &:not(.no-course-discovery) { @include span-columns(12); @include media($bp-medium) { @include span-columns(8); // 8 of 8 @include omega(2n...
- @import 'lms/static/sass/base/grid-settings'; - @import 'neat/neat'; - .find-courses { - .courses-container { - .courses { - &:not(.no-course-discovery) { - @include span-columns(12); - - @include media($bp-medium) { - @include span-columns(8); // 8 of 8 - @include ...
40
0.888889
0
40
5e35c65936868ed29ac099ca22a240aa7047d523
index.android.js
index.android.js
import 'es6-symbol/implement'; import {Provider} from 'react-redux'; import store from './src/redux/store'; import AppViewContainer from './src/modules/AppViewContainer'; import React from 'react'; import {setConfiguration} from './src/utils/configuration'; import {AppRegistry, BackAndroid} from 'react-native'; import ...
import 'es6-symbol/implement'; import {Provider} from 'react-redux'; import store from './src/redux/store'; import AppViewContainer from './src/modules/AppViewContainer'; import React from 'react'; import {setConfiguration} from './src/utils/configuration'; import {AppRegistry, BackAndroid} from 'react-native'; import ...
Set backend to production backend
Set backend to production backend
JavaScript
mit
futurice/PelaryHemmo,futurice/PelaryHemmo,futurice/PelaryHemmo
javascript
## Code Before: import 'es6-symbol/implement'; import {Provider} from 'react-redux'; import store from './src/redux/store'; import AppViewContainer from './src/modules/AppViewContainer'; import React from 'react'; import {setConfiguration} from './src/utils/configuration'; import {AppRegistry, BackAndroid} from 'react-...
import 'es6-symbol/implement'; import {Provider} from 'react-redux'; import store from './src/redux/store'; import AppViewContainer from './src/modules/AppViewContainer'; import React from 'react'; import {setConfiguration} from './src/utils/configuration'; import {AppRegistry, BackAndroid} from 'react-na...
2
0.044444
1
1
487deb6c8619cbeed628a8170c1ba6d6001c2613
MusicFav/feedly.json
MusicFav/feedly.json
{ "target": "sandbox", "client_id": "sandbox", "client_secret": "8LDQOW8KPYFPCQV2UL6J" }
{ "target": "sandbox", "client_id": "sandbox", "client_secret": "check latest client secret at developer forrum of feedly-cloud and input it" }
Change default client secret key
Change default client secret key
JSON
mit
kumabook/MusicFav,kumabook/MusicFav,kumabook/MusicFav,kumabook/MusicFav
json
## Code Before: { "target": "sandbox", "client_id": "sandbox", "client_secret": "8LDQOW8KPYFPCQV2UL6J" } ## Instruction: Change default client secret key ## Code After: { "target": "sandbox", "client_id": "sandbox", "client_secret": "check latest client secret at developer...
{ "target": "sandbox", "client_id": "sandbox", - "client_secret": "8LDQOW8KPYFPCQV2UL6J" + "client_secret": "check latest client secret at developer forrum of feedly-cloud and input it" }
2
0.4
1
1
044b1276c80f7f88fa01bbdefc99e11de215f96e
README.md
README.md
**[Minimal Mistakes](http://mmistakes.github.io/minimal-mistakes)** is a two column responsive Jekyll theme perfect for powering your GitHub hosted blog. ## Minimal Mistakes is all about: * Responsive templates. Looking good on mobile, tablet, and desktop. * Gracefully degrading in older browsers. Compatible with In...
**[Minimal Mistakes](http://mmistakes.github.io/minimal-mistakes)** is a two column responsive Jekyll theme perfect for powering your GitHub hosted blog. **Jekyll 3 Update:** A version of Minimal Mistakes compatible with Jekyll 3 can be found in the [`jekyll3` branch](https://github.com/mmistakes/minimal-mistakes/tre...
Add note and link to MM-Jekyll 3 branch.
Add note and link to MM-Jekyll 3 branch.
Markdown
mit
makaroniame/makaroniame.github.io,makaroniame/makaroniame.github.io,makaroniame/makaroniame.github.io,makaroniame/makaroniame.github.io
markdown
## Code Before: **[Minimal Mistakes](http://mmistakes.github.io/minimal-mistakes)** is a two column responsive Jekyll theme perfect for powering your GitHub hosted blog. ## Minimal Mistakes is all about: * Responsive templates. Looking good on mobile, tablet, and desktop. * Gracefully degrading in older browsers. Co...
**[Minimal Mistakes](http://mmistakes.github.io/minimal-mistakes)** is a two column responsive Jekyll theme perfect for powering your GitHub hosted blog. + + **Jekyll 3 Update:** A version of Minimal Mistakes compatible with Jekyll 3 can be found in the [`jekyll3` branch](https://github.com/mmistakes/minimal-mist...
2
0.090909
2
0
a021aa56121271d2f5901a0e1d5f31d45e900c3d
pubspec.yaml
pubspec.yaml
name: http_retry version: 0.1.2-dev description: HTTP client middleware that automatically retries requests. homepage: https://github.com/dart-lang/http_retry environment: sdk: '>=2.1.0 <3.0.0' dependencies: async: ^2.0.7 http: '>=0.11.0 <0.13.0' pedantic: ^1.0.0 dev_dependencies: fake_async: ^1.0.0 tes...
name: http_retry version: 0.1.2-dev description: >- A wrapper for package:http clients that automatically retries requests homepage: https://github.com/dart-lang/http_retry environment: sdk: '>=2.1.0 <3.0.0' dependencies: async: ^2.0.7 http: '>=0.11.0 <0.13.0' pedantic: ^1.0.0 dev_dependencies: fake_asy...
Increase description length to be >= 60 characters
Increase description length to be >= 60 characters
YAML
bsd-3-clause
dart-lang/http,dart-lang/http,dart-lang/http,dart-lang/http_retry,dart-lang/http,dart-lang/http,dart-lang/http,dart-lang/http,dart-lang/http,dart-archive/http_retry
yaml
## Code Before: name: http_retry version: 0.1.2-dev description: HTTP client middleware that automatically retries requests. homepage: https://github.com/dart-lang/http_retry environment: sdk: '>=2.1.0 <3.0.0' dependencies: async: ^2.0.7 http: '>=0.11.0 <0.13.0' pedantic: ^1.0.0 dev_dependencies: fake_asy...
name: http_retry version: 0.1.2-dev - description: HTTP client middleware that automatically retries requests. + description: >- + A wrapper for package:http clients that automatically retries requests homepage: https://github.com/dart-lang/http_retry environment: sdk: '>=2.1.0 <3.0.0' dependen...
3
0.176471
2
1
8d54fce47743571fe335cee18980a172bf91f4e7
README.md
README.md
spree_paypal_website_payments_standard ======================================
spree_paypal_website_payments_standard ====================================== Notes ----- Don't forget to set the encoding in your PayPal profile to UTF-8 (see http://jlchereau.blogspot.hu/2006/10/paypal-ipn-with-utf8.html).
Add note about encoding to readme
Add note about encoding to readme
Markdown
mit
clemens/spree_paypal_website_payments_standard,clemens/spree_paypal_website_payments_standard
markdown
## Code Before: spree_paypal_website_payments_standard ====================================== ## Instruction: Add note about encoding to readme ## Code After: spree_paypal_website_payments_standard ====================================== Notes ----- Don't forget to set the encoding in your PayPal profile to UTF-8 (s...
spree_paypal_website_payments_standard ====================================== + + Notes + ----- + + Don't forget to set the encoding in your PayPal profile to UTF-8 (see http://jlchereau.blogspot.hu/2006/10/paypal-ipn-with-utf8.html).
5
2.5
5
0
536b0b7a5dbcac98eb6e7a5ea6b0b068729c03d1
storage/src/tests/visiting/CMakeLists.txt
storage/src/tests/visiting/CMakeLists.txt
vespa_add_library(storage_testvisiting SOURCES commandqueuetest.cpp visitormanagertest.cpp visitortest.cpp memory_bounded_trace_test.cpp DEPENDS AFTER storage_storageconfig )
vespa_add_library(storage_testvisiting SOURCES commandqueuetest.cpp visitormanagertest.cpp visitortest.cpp memory_bounded_trace_test.cpp DEPENDS AFTER storage_storageconfig storage_visitor )
Add weak dependency on storage_visitor
Add weak dependency on storage_visitor
Text
apache-2.0
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
text
## Code Before: vespa_add_library(storage_testvisiting SOURCES commandqueuetest.cpp visitormanagertest.cpp visitortest.cpp memory_bounded_trace_test.cpp DEPENDS AFTER storage_storageconfig ) ## Instruction: Add weak dependency on storage_visitor ## Code After: vespa_add_library(storage...
vespa_add_library(storage_testvisiting SOURCES commandqueuetest.cpp visitormanagertest.cpp visitortest.cpp memory_bounded_trace_test.cpp DEPENDS AFTER storage_storageconfig + storage_visitor )
1
0.1
1
0
59f47411c7d59a3a4d4e9f21d088cceb50fafb8b
wagtail/wagtailadmin/templates/wagtailadmin/skeleton.html
wagtail/wagtailadmin/templates/wagtailadmin/skeleton.html
<!doctype html> {% load compress i18n %} <html class="no-js" lang="{{ LANGUAGE_CODE|default:"en-gb" }}"> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <title>Wagtail - {% block titletag %}{% endblock %}</title> <meta name="description" content="" /> ...
<!doctype html> {% load compress i18n %} <html class="no-js" lang="{{ LANGUAGE_CODE|default:"en-gb" }}"> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <title>Wagtail - {% block titletag %}{% endblock %}</title> <meta name="description" content="" /> ...
Remove link to now-defunct Google Chrome Frame in warning for <IE9 browsers.
Remove link to now-defunct Google Chrome Frame in warning for <IE9 browsers.
HTML
bsd-3-clause
nealtodd/wagtail,hanpama/wagtail,gogobook/wagtail,Tivix/wagtail,wagtail/wagtail,mayapurmedia/wagtail,nealtodd/wagtail,tangentlabs/wagtail,jorge-marques/wagtail,KimGlazebrook/wagtail-experiment,mephizzle/wagtail,davecranwell/wagtail,janusnic/wagtail,quru/wagtail,taedori81/wagtail,stevenewey/wagtail,wagtail/wagtail,iansp...
html
## Code Before: <!doctype html> {% load compress i18n %} <html class="no-js" lang="{{ LANGUAGE_CODE|default:"en-gb" }}"> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <title>Wagtail - {% block titletag %}{% endblock %}</title> <meta name="description" c...
<!doctype html> {% load compress i18n %} <html class="no-js" lang="{{ LANGUAGE_CODE|default:"en-gb" }}"> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <title>Wagtail - {% block titletag %}{% endblock %}</title> <meta name="description" c...
2
0.064516
1
1
aeb76bd1ec9a48f2291347611de4a47c032fb6f0
bench/Main.hs
bench/Main.hs
module Main (main) where import Criterion.Main import Control.Monad.ST import Control.Monad.Primitive (PrimMonad) import Control.Monad.Random (MonadRandom) import Data.IntMap (IntMap) import qualified Data.IntMap as IntMap import Data.Vector.Unboxed (Vector, Unbox) import qualified Data.Vector.Unboxed as V import P...
module Main (main) where import Criterion.Main import Control.Monad.ST import Control.Monad.Primitive (PrimMonad) import Control.Monad.Random (MonadRandom) import Data.IntMap (IntMap) import qualified Data.IntMap as IntMap import Data.Vector.Unboxed (Vector, Unbox) import qualified Data.Vector.Unboxed as V import P...
Add benchmarks for random noise generation, and tweak others.
Add benchmarks for random noise generation, and tweak others.
Haskell
bsd-3-clause
sacundim/tau-sigma
haskell
## Code Before: module Main (main) where import Criterion.Main import Control.Monad.ST import Control.Monad.Primitive (PrimMonad) import Control.Monad.Random (MonadRandom) import Data.IntMap (IntMap) import qualified Data.IntMap as IntMap import Data.Vector.Unboxed (Vector, Unbox) import qualified Data.Vector.Unboxe...
module Main (main) where import Criterion.Main import Control.Monad.ST import Control.Monad.Primitive (PrimMonad) import Control.Monad.Random (MonadRandom) import Data.IntMap (IntMap) import qualified Data.IntMap as IntMap import Data.Vector.Unboxed (Vector, Unbox) import qualified Data.Vecto...
40
1.142857
29
11
e15dd9ad6093351433d54aff25fedece4eedf011
lib/frontend_server/rack.rb
lib/frontend_server/rack.rb
module FrontendServer module Rack def app server = self builder = ::Rack::Builder.new self.class.configurations.each do |configuration| configuration.call builder, config end # builder.use ::Rack::Deflater builder.use ReverseProxy do reverse_proxy /^\/api(\/...
module FrontendServer module Rack def app server = self builder = ::Rack::Builder.new self.class.configurations.each do |configuration| configuration.call builder, config end builder.use ReverseProxy do reverse_proxy /^\/api(\/.*)$/, "#{server.config.server}$1" ...
Remove reference to Rack::Deflate. Seems to blow up aganist production
Remove reference to Rack::Deflate. Seems to blow up aganist production
Ruby
mit
radiumsoftware/iridium,radiumsoftware/iridium,radiumsoftware/iridium
ruby
## Code Before: module FrontendServer module Rack def app server = self builder = ::Rack::Builder.new self.class.configurations.each do |configuration| configuration.call builder, config end # builder.use ::Rack::Deflater builder.use ReverseProxy do reverse_...
module FrontendServer module Rack def app server = self builder = ::Rack::Builder.new self.class.configurations.each do |configuration| configuration.call builder, config end - - # builder.use ::Rack::Deflater builder.use ReverseProxy do ...
2
0.04878
0
2
a3ab68d304814ed623e3ff4823459906e1f843ce
app/assets/javascripts/client/views/login/login.html.erb
app/assets/javascripts/client/views/login/login.html.erb
<div class="login"> <div class="row secondary"> <div class="col-md-12"> <h1>Welcome back to PDredesign!</h1> </div> <div class="col-md-12 hidden-md hidden-lg"> <user-login></user-login> </div> </div> <div class="row"> <div class="col-md-12 intro"> <%= image_tag 'sign-in-ima...
<div class="login"> <div class="row secondary"> <div class="col-md-12"> <h1>Welcome back to PDredesign!</h1> </div> <div class="col-md-12 hidden-md hidden-lg"> <user-login></user-login> </div> </div> <div class="row"> <div class="col-md-12 intro"> <%= image_tag 'sign-in-ima...
Revert "<p></p> added to footer summary."
Revert "<p></p> added to footer summary." This reverts commit 0618a9512e0a49878dc1b70deffa5bf39feb7f3f.
HTML+ERB
mit
MobilityLabs/pdredesign-client,MobilityLabs/pdredesign-client,MobilityLabs/pdredesign-client
html+erb
## Code Before: <div class="login"> <div class="row secondary"> <div class="col-md-12"> <h1>Welcome back to PDredesign!</h1> </div> <div class="col-md-12 hidden-md hidden-lg"> <user-login></user-login> </div> </div> <div class="row"> <div class="col-md-12 intro"> <%= image_...
<div class="login"> <div class="row secondary"> <div class="col-md-12"> <h1>Welcome back to PDredesign!</h1> </div> <div class="col-md-12 hidden-md hidden-lg"> <user-login></user-login> </div> </div> <div class="row"> <div class="col-md-12 intro"> ...
8
0.235294
1
7
f6b193c1d06f99c14d87fde1217c513037a39446
app/controllers/api/v1/expense_reports_controller.rb
app/controllers/api/v1/expense_reports_controller.rb
class Api::V1::ExpenseReportsController < Api::V1::ApiController inherit_resources def create expense_report = ExpenseReport.new(safe_params) if expense_report.save render :json => expense_report else render :json => expense_report.errors, :status => :unprocessable_entity end end d...
class Api::V1::ExpenseReportsController < Api::V1::ApiController inherit_resources def create expense_report = ExpenseReport.new(safe_params) if expense_report.save render :json => expense_report else render :json => expense_report.errors, :status => :unprocessable_entity end end d...
Implement expense report update action
Implement expense report update action
Ruby
mit
danevron/hours-report-app,danevron/hours-report-app,danevron/hours-report-app
ruby
## Code Before: class Api::V1::ExpenseReportsController < Api::V1::ApiController inherit_resources def create expense_report = ExpenseReport.new(safe_params) if expense_report.save render :json => expense_report else render :json => expense_report.errors, :status => :unprocessable_entity ...
class Api::V1::ExpenseReportsController < Api::V1::ApiController inherit_resources def create expense_report = ExpenseReport.new(safe_params) if expense_report.save render :json => expense_report else render :json => expense_report.errors, :status => :unprocessable_entity ...
8
0.25
8
0
61b4f72045ea683a83a358d5d66bd32f7711598b
services/serializers.py
services/serializers.py
from rest_framework import serializers from .models import Service, Category, ServicePhoto class CategorySerializer(serializers.ModelSerializer): class Meta: model = Category fields = ('id', 'name', 'photo', 'order') class ServicePhotoSerializer(serializers.ModelSerializer): """ """ ...
from rest_framework import serializers from .models import Service, Category, ServicePhoto from semillas_backend.users.serializers import UserSerializer class CategorySerializer(serializers.ModelSerializer): class Meta: model = Category fields = ('id', 'name', 'photo', 'order') class ServicePho...
Add user serialized to ServiceSerializer
Add user serialized to ServiceSerializer
Python
mit
Semillas/semillas_backend,Semillas/semillas_platform,Semillas/semillas_backend,Semillas/semillas_platform,Semillas/semillas_platform,Semillas/semillas_backend,Semillas/semillas_backend,Semillas/semillas_platform
python
## Code Before: from rest_framework import serializers from .models import Service, Category, ServicePhoto class CategorySerializer(serializers.ModelSerializer): class Meta: model = Category fields = ('id', 'name', 'photo', 'order') class ServicePhotoSerializer(serializers.ModelSerializer): ...
from rest_framework import serializers from .models import Service, Category, ServicePhoto + from semillas_backend.users.serializers import UserSerializer class CategorySerializer(serializers.ModelSerializer): class Meta: model = Category fields = ('id', 'name', 'photo', 'order'...
4
0.129032
3
1
7a47020bc7d2dee6f0f2f20d2e3f84dea4493ad5
app/controllers/competitions_controller.rb
app/controllers/competitions_controller.rb
class CompetitionsController < ApplicationController caches_page :show def show # Very explicit because we don't want to call something like 'eval' on a request parameter! if params[:type] == "rider_rankings" competition_class = RiderRankings elsif params[:type] == "cat4_womens_race_series" ...
class CompetitionsController < ApplicationController caches_page :show def show # Very explicit because we don't want to call something like 'eval' on a request parameter! if params[:type] == "rider_rankings" competition_class = RiderRankings elsif params[:type] == "cat4_womens_race_series" ...
Add OBRA TT. Use standard results template.
Add OBRA TT. Use standard results template.
Ruby
mit
scottwillson/racing_on_rails,scottwillson/racing_on_rails,scottwillson/racing_on_rails,scottwillson/racing_on_rails
ruby
## Code Before: class CompetitionsController < ApplicationController caches_page :show def show # Very explicit because we don't want to call something like 'eval' on a request parameter! if params[:type] == "rider_rankings" competition_class = RiderRankings elsif params[:type] == "cat4_womens_...
class CompetitionsController < ApplicationController caches_page :show def show # Very explicit because we don't want to call something like 'eval' on a request parameter! if params[:type] == "rider_rankings" competition_class = RiderRankings elsif params[:type] == "cat4_womens_...
4
0.181818
4
0
a4cb3d5a660eed1b3f18aa0f77a2b228e437a505
app/assets/stylesheets/navbar.css.scss
app/assets/stylesheets/navbar.css.scss
@import 'bootstrap/_variables'; @import '_theme'; .navbar .container .navbar-brand { background: url("/assets/header-crown.png") 0 0.67em no-repeat; color: #fff; font-family: $gill-sans-font-stack; font-size: 20px; margin-left: 0; padding-left: 2.3em; } @media (max-width: 768px) { .navbar .container .na...
@import 'bootstrap/_variables'; @import '_theme'; .navbar .container .navbar-brand { background: url("/assets/header-crown.png") 0 0.67em no-repeat; color: #fff; font-family: $gill-sans-font-stack; font-size: 20px; margin-left: 0; padding-left: 2.3em; min-height: 37px; } @media (max-width: 768px) { .n...
Stop the logo being cropped
Stop the logo being cropped * An update to Bootstrap 3.1 caused a regression with the logo in the navbar. This fixes it by forcing a minimum height.
SCSS
mit
alphagov/transition,alphagov/transition,alphagov/transition
scss
## Code Before: @import 'bootstrap/_variables'; @import '_theme'; .navbar .container .navbar-brand { background: url("/assets/header-crown.png") 0 0.67em no-repeat; color: #fff; font-family: $gill-sans-font-stack; font-size: 20px; margin-left: 0; padding-left: 2.3em; } @media (max-width: 768px) { .navba...
@import 'bootstrap/_variables'; @import '_theme'; .navbar .container .navbar-brand { background: url("/assets/header-crown.png") 0 0.67em no-repeat; color: #fff; font-family: $gill-sans-font-stack; font-size: 20px; margin-left: 0; padding-left: 2.3em; + min-height: 37px; } @med...
1
0.028571
1
0
5cc3518924500882d85dfa5a6c9d9816d5d60f07
KLog/klog/basic_types.h
KLog/klog/basic_types.h
/* @ 0xCCCCCCCC */ #if defined(_MSC_VER) #pragma once #endif #ifndef KLOG_BASIC_TYPES_H_ #define KLOG_BASIC_TYPES_H_ #include <string> #include "klog/basic_macros.h" namespace klog { #if defined(OS_WIN) using PathChar = wchar_t; using PathString = std::wstring; #else using PathChar = char; using PathString = std...
/* @ 0xCCCCCCCC */ #if defined(_MSC_VER) #pragma once #endif #ifndef KLOG_BASIC_TYPES_H_ #define KLOG_BASIC_TYPES_H_ #include <string> #include "klog/basic_macros.h" namespace klog { #if defined(OS_WIN) using PathChar = wchar_t; using PathString = std::wstring; #define PATH_LITERAL(str) L##str #else using PathCh...
Introduce the macro `PATH_LITERAL` for helping construct `PathString`.
Introduce the macro `PATH_LITERAL` for helping construct `PathString`.
C
mit
kingsamchen/KLog
c
## Code Before: /* @ 0xCCCCCCCC */ #if defined(_MSC_VER) #pragma once #endif #ifndef KLOG_BASIC_TYPES_H_ #define KLOG_BASIC_TYPES_H_ #include <string> #include "klog/basic_macros.h" namespace klog { #if defined(OS_WIN) using PathChar = wchar_t; using PathString = std::wstring; #else using PathChar = char; using ...
/* @ 0xCCCCCCCC */ #if defined(_MSC_VER) #pragma once #endif #ifndef KLOG_BASIC_TYPES_H_ #define KLOG_BASIC_TYPES_H_ #include <string> #include "klog/basic_macros.h" namespace klog { #if defined(OS_WIN) using PathChar = wchar_t; using PathString = std::wstring; + #define P...
2
0.071429
2
0
0bf0420ce3f1148c1beb65b652c0a64b533fa634
lib/inline_svg/static_asset_finder.rb
lib/inline_svg/static_asset_finder.rb
module InlineSvg class StaticAssetFinder def self.find_asset(filename) new(filename) end def initialize(filename) @filename = filename end def pathname if ::Rails.application.config.assets.compile ::Rails.application.assets[@filename].pathname else manifes...
require "pathname" # Naive fallback asset finder for when sprockets >= 3.0 && # config.assets.precompile = false # Thanks to @ryanswood for the original code: # https://github.com/jamesmartin/inline_svg/commit/661bbb3bef7d1b4bd6ccd63f5f018305797b9509 module InlineSvg class StaticAssetFinder def self.find_asset(f...
Fix bad reference to Sprockets::Asset.pathname
Fix bad reference to Sprockets::Asset.pathname
Ruby
mit
jamesmartin/inline_svg
ruby
## Code Before: module InlineSvg class StaticAssetFinder def self.find_asset(filename) new(filename) end def initialize(filename) @filename = filename end def pathname if ::Rails.application.config.assets.compile ::Rails.application.assets[@filename].pathname else...
+ require "pathname" + + # Naive fallback asset finder for when sprockets >= 3.0 && + # config.assets.precompile = false + # Thanks to @ryanswood for the original code: + # https://github.com/jamesmartin/inline_svg/commit/661bbb3bef7d1b4bd6ccd63f5f018305797b9509 module InlineSvg class StaticAssetFinder def...
8
0.347826
7
1
72298414f57dcb07374252765bd464f06ff71062
spec/application_spec.rb
spec/application_spec.rb
require 'hyperloop' describe Hyperloop::Application do before :each do @root = 'spec/fixtures/simple/' @app = Hyperloop::Application.new(@root) end it 'responds successfully to a request for root' do request = Rack::MockRequest.new(@app) response = request.get('/') expect(response).to be_o...
require 'hyperloop' describe Hyperloop::Application do describe 'with a flat views directory' do before :each do @app = Hyperloop::Application.new('spec/fixtures/simple/') @request = Rack::MockRequest.new(@app) end it 'responds successfully to a request for root' do response = @req...
Move Application specs into flat context
Move Application specs into flat context
Ruby
mit
jakeboxer/hyperloop,jakeboxer/hyperloop
ruby
## Code Before: require 'hyperloop' describe Hyperloop::Application do before :each do @root = 'spec/fixtures/simple/' @app = Hyperloop::Application.new(@root) end it 'responds successfully to a request for root' do request = Rack::MockRequest.new(@app) response = request.get('/') expect(r...
require 'hyperloop' describe Hyperloop::Application do + describe 'with a flat views directory' do - before :each do + before :each do ? ++ - @root = 'spec/fixtures/simple/' - @app = Hyperloop::Application.new(@root) + @app = Hyperloop::Application.new('spec/fixtures/simple/') + ...
39
1.258065
19
20
0766716a10277301428ff610001d30d5501b778a
.travis.yml
.travis.yml
language: python python: - "2.7" cache: pip sudo: false # Need mongodb for testing services: mongodb # command to install dependencies install: - pip install -q -r requirements_for_tests.txt # command to run tests env: - SKIP_VIRUS_SCAN=1 SKIP_SPLINTER_TESTS=1 MONGO_REPLICA_SET='' NO_AUTOPEP8=1 script: - ./run_...
language: python python: - "2.7" cache: pip sudo: false # Need mongodb for testing services: mongodb # command to install dependencies install: - pip install --upgrade setuptools - pip install -q -r requirements_for_tests.txt # command to run tests env: - SKIP_VIRUS_SCAN=1 SKIP_SPLINTER_TESTS=1 MONGO_REPLICA_SE...
Make sure setuptools is up to date
Make sure setuptools is up to date
YAML
mit
alphagov/backdrop,alphagov/backdrop,alphagov/backdrop
yaml
## Code Before: language: python python: - "2.7" cache: pip sudo: false # Need mongodb for testing services: mongodb # command to install dependencies install: - pip install -q -r requirements_for_tests.txt # command to run tests env: - SKIP_VIRUS_SCAN=1 SKIP_SPLINTER_TESTS=1 MONGO_REPLICA_SET='' NO_AUTOPEP8=1 sc...
language: python python: - "2.7" cache: pip sudo: false # Need mongodb for testing services: mongodb # command to install dependencies install: + - pip install --upgrade setuptools - pip install -q -r requirements_for_tests.txt # command to run tests env: - SKIP_VIRUS_SCAN=1 SKIP_SPLIN...
1
0.041667
1
0
079d22188aeba78e582fc5f3cb28db4363dd1ffb
api_browser.rb
api_browser.rb
$LOAD_PATH << './app/models/' require 'active_record' ActiveRecord::Base.establish_connection :adapter => 'sqlite3', :database => 'ruby.db' Dir.glob('app/models/*.rb').each do |model| require model.scan(/\/([a-z]+).rb/).flatten.first end
$LOAD_PATH << './app/models/' require 'active_record' require 'yaml' ActiveRecord::Base.establish_connection :adapter => 'sqlite3', :database => 'ruby.db' Dir.glob('app/models/*.rb').each do |model| require model.scan(/\/([a-z]+).rb/).flatten.first end begin GitHub::User.delete_all $user = GitHub::User.create(...
Add exception handling and loading from secrets.yml.
Add exception handling and loading from secrets.yml.
Ruby
mit
farnoy/github-api-client
ruby
## Code Before: $LOAD_PATH << './app/models/' require 'active_record' ActiveRecord::Base.establish_connection :adapter => 'sqlite3', :database => 'ruby.db' Dir.glob('app/models/*.rb').each do |model| require model.scan(/\/([a-z]+).rb/).flatten.first end ## Instruction: Add exception handling and loading from secre...
$LOAD_PATH << './app/models/' require 'active_record' + require 'yaml' ActiveRecord::Base.establish_connection :adapter => 'sqlite3', :database => 'ruby.db' Dir.glob('app/models/*.rb').each do |model| require model.scan(/\/([a-z]+).rb/).flatten.first end + + begin + GitHub::User.delete_all + $u...
11
1.375
11
0
d3360668bda1198972a5d74d68f8aa378340b920
features/core-update-db.feature
features/core-update-db.feature
Feature: Update core's database Scenario: Update db on a single site Given a WP install And I run `wp core download --version=4.1 --force` And I run `wp option update db_version 29630` When I run `wp core update-db` Then STDOUT should contain: """ Success: WordPress database upgraded...
Feature: Update core's database Scenario: Update db on a single site Given a WP install And I run `wp core download --version=4.1 --force` And I run `wp option update db_version 29630` When I run `wp core update-db` Then STDOUT should contain: """ Success: WordPress database upgraded...
Update tests to accommodate new messages
Update tests to accommodate new messages
Cucumber
mit
duncanjbrown/wp-cli,trepmal/wp-cli,nyordanov/wp-cli,trepmal/wp-cli,gitlost/wp-cli,GaryJones/wp-cli,gitlost/wp-cli,rodrigoprimo/wp-cli,GaryJones/wp-cli,GaryJones/wp-cli,2ndkauboy/wp-cli,miya0001/wp-cli,miya0001/wp-cli,trepmal/wp-cli,aaemnnosttv/wp-cli,nyordanov/wp-cli,aaemnnosttv/wp-cli,gedex/wp-cli,nyordanov/wp-cli,git...
cucumber
## Code Before: Feature: Update core's database Scenario: Update db on a single site Given a WP install And I run `wp core download --version=4.1 --force` And I run `wp option update db_version 29630` When I run `wp core update-db` Then STDOUT should contain: """ Success: WordPress d...
Feature: Update core's database Scenario: Update db on a single site Given a WP install And I run `wp core download --version=4.1 --force` And I run `wp option update db_version 29630` When I run `wp core update-db` Then STDOUT should contain: """ - Success: WordP...
4
0.105263
2
2
442a6caceb932401c12e4dcb2388c57fe6a30349
src/main/java/com/github/pedrovgs/problem39/MultiplyArrayElements.java
src/main/java/com/github/pedrovgs/problem39/MultiplyArrayElements.java
/* * Copyright (C) 2014 Pedro Vicente Gómez Sánchez. * * 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) 2014 Pedro Vicente Gómez Sánchez. * * 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 ...
Add iterative solution to problem 39
Add iterative solution to problem 39
Java
apache-2.0
zhdh2008/Algorithms,chengjinqian/Algorithms,mrgenco/Algorithms-1,Arkar-Aung/Algorithms,zmywly8866/Algorithms,pedrovgs/Algorithms,ajinkyakolhe112/Algorithms,jibaro/Algorithms,AppScientist/Algorithms,Ariloum/Algorithms,007slm/Algorithms,inexistence/Algorithms,sridhar-newsdistill/Algorithms,VeskoI/Algorithms,JeffreyWei/Al...
java
## Code Before: /* * Copyright (C) 2014 Pedro Vicente Gómez Sánchez. * * 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 require...
/* * Copyright (C) 2014 Pedro Vicente Gómez Sánchez. * * 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 req...
30
1.304348
30
0
04d6348536a393439c36a7433c4fbf89c52ded32
src/qt/clientmodel.h
src/qt/clientmodel.h
class OptionsModel; class AddressTableModel; class TransactionTableModel; class CWallet; QT_BEGIN_NAMESPACE class QDateTime; QT_END_NAMESPACE // Interface to Bitcoin network client class ClientModel : public QObject { Q_OBJECT public: // The only reason that this constructor takes a wallet is because // ...
class OptionsModel; class AddressTableModel; class TransactionTableModel; class CWallet; QT_BEGIN_NAMESPACE class QDateTime; QT_END_NAMESPACE // Interface to Bitcoin network client class ClientModel : public QObject { Q_OBJECT public: explicit ClientModel(OptionsModel *optionsModel, QObject *parent = 0); ...
Remove no longer valid comment
Remove no longer valid comment
C
mit
MidasPaymentLTD/midascoin,MidasPaymentLTD/midascoin,MidasPaymentLTD/midascoin,MidasPaymentLTD/midascoin,MidasPaymentLTD/midascoin
c
## Code Before: class OptionsModel; class AddressTableModel; class TransactionTableModel; class CWallet; QT_BEGIN_NAMESPACE class QDateTime; QT_END_NAMESPACE // Interface to Bitcoin network client class ClientModel : public QObject { Q_OBJECT public: // The only reason that this constructor takes a wallet is...
class OptionsModel; class AddressTableModel; class TransactionTableModel; class CWallet; QT_BEGIN_NAMESPACE class QDateTime; QT_END_NAMESPACE // Interface to Bitcoin network client class ClientModel : public QObject { Q_OBJECT public: - // The only reason that this constructor t...
2
0.036364
0
2
8f51c39d895c4602a642fbbc7dc52e7dbd19ffe2
app/models/uom.rb
app/models/uom.rb
class Uom # Pre-defined distance metrics that can be used to define linear distances INCH = 'inch' FEET = 'foot' YARD = 'yard' MILE = 'mile' METER = 'meter' KILOMETER = 'kilometer' # Check to see if a measurement u...
class Uom # Other units UNIT = 'unit' # Pre-defined weight quantities KILOGRAM = 'kilogram' POUND = "pound" SHORT_TON = 'short_ton' TON = SHORT_TON TONNE = "tonne" # Pre-defined area measurements SQUARE_YARD...
Add additional measurement units to Uom to support equipment quantities
Add additional measurement units to Uom to support equipment quantities
Ruby
mit
nycdot/transam_core,camsys/transam_core,nycdot/transam_core,camsys/transam_core,camsys/transam_core,camsys/transam_core,nycdot/transam_core
ruby
## Code Before: class Uom # Pre-defined distance metrics that can be used to define linear distances INCH = 'inch' FEET = 'foot' YARD = 'yard' MILE = 'mile' METER = 'meter' KILOMETER = 'kilometer' # Check to see if...
class Uom + + # Other units + UNIT = 'unit' + # Pre-defined weight quantities + KILOGRAM = 'kilogram' + POUND = "pound" + SHORT_TON = 'short_ton' + TON = SHORT_TON + TONNE = "tonne" + + # Pre-defined area ...
28
1.12
27
1
8d50052520b5a863bf89778c35db1f73baa9cc23
db/migrations/20170211211305_AddUserIsAdmin.sql
db/migrations/20170211211305_AddUserIsAdmin.sql
-- +goose Up -- SQL in section 'Up' is executed when this migration is applied ALTER TABLE users ADD COLUMN is_admin boolean; -- +goose Down -- SQL section 'Down' is executed when this migration is rolled back
-- +goose Up -- SQL in section 'Up' is executed when this migration is applied ALTER TABLE users ADD COLUMN is_admin boolean NOT NULL DEFAULT FALSE; -- +goose Down -- SQL section 'Down' is executed when this migration is rolled back
Fix default sql value for is_admin
fix(user): Fix default sql value for is_admin
SQL
mit
ml-tv/tv-api,ml-tv/tv-api
sql
## Code Before: -- +goose Up -- SQL in section 'Up' is executed when this migration is applied ALTER TABLE users ADD COLUMN is_admin boolean; -- +goose Down -- SQL section 'Down' is executed when this migration is rolled back ## Instruction: fix(user): Fix default sql value for is_admin ## Code After: -- +goose ...
-- +goose Up -- SQL in section 'Up' is executed when this migration is applied - ALTER TABLE users ADD COLUMN is_admin boolean; + ALTER TABLE users ADD COLUMN is_admin boolean NOT NULL DEFAULT FALSE; ? +++++++++++++++++++++++ -- +goose Down -- SQL section '...
2
0.222222
1
1
fb3c5a15a33da24daa3fa2538bc21604d2659f69
activerecord/test/cases/adapters/sqlite3/explain_test.rb
activerecord/test/cases/adapters/sqlite3/explain_test.rb
require "cases/helper" require "models/author" require "models/post" class SQLite3ExplainTest < ActiveRecord::SQLite3TestCase fixtures :authors def test_explain_for_one_query explain = Author.where(id: 1).explain assert_match %r(EXPLAIN for: SELECT "authors"\.\* FROM "authors" WHERE "authors"\."id" = (?:...
require "cases/helper" require "models/author" require "models/post" class SQLite3ExplainTest < ActiveRecord::SQLite3TestCase fixtures :authors def test_explain_for_one_query explain = Author.where(id: 1).explain assert_match %r(EXPLAIN for: SELECT "authors"\.\* FROM "authors" WHERE "authors"\."id" = (?:...
Fix explain test on sqlite 3.36.0
Fix explain test on sqlite 3.36.0 Explain output changed in 3.36.0 https://www.sqlite.org/releaselog/3_36_0.html Co-authored-by: Dinah Shi <f868e84a9b4be0533243aec38e5104eee4d410b8@github.com>
Ruby
mit
esparta/rails,yawboakye/rails,kddeisz/rails,yahonda/rails,yahonda/rails,Erol/rails,Vasfed/rails,esparta/rails,kmcphillips/rails,lcreid/rails,lcreid/rails,Envek/rails,joonyou/rails,georgeclaghorn/rails,MSP-Greg/rails,esparta/rails,Edouard-chin/rails,kddeisz/rails,joonyou/rails,Edouard-chin/rails,Erol/rails,Stellenticket...
ruby
## Code Before: require "cases/helper" require "models/author" require "models/post" class SQLite3ExplainTest < ActiveRecord::SQLite3TestCase fixtures :authors def test_explain_for_one_query explain = Author.where(id: 1).explain assert_match %r(EXPLAIN for: SELECT "authors"\.\* FROM "authors" WHERE "auth...
require "cases/helper" require "models/author" require "models/post" class SQLite3ExplainTest < ActiveRecord::SQLite3TestCase fixtures :authors def test_explain_for_one_query explain = Author.where(id: 1).explain assert_match %r(EXPLAIN for: SELECT "authors"\.\* FROM "authors" WHERE...
6
0.272727
3
3
9f80cdcbc00207f8fab183d34c52ccc1fff152c4
init-package/init-popwin.el
init-package/init-popwin.el
(use-package popwin :init (progn (popwin-mode 1) (push '("*grep*" :dedicated t :position bottom :stick t :noselect t) popwin:special-display-config) ;; use popwin with helm (push '("^\*helm.+\*$" :regexp t :position bottom) popwin:special-display-config) (push '("^\*helm-.+\*$" :regexp t :positi...
(use-package popwin :init (progn (popwin-mode 1) (push '("*grep*" :dedicated t :position bottom :stick t :noselect t) popwin:special-display-config) (push '("^\*Flycheck.+\*$" :regexp t :dedicated t :position bottom :stick t :noselect t) popwin:special-display-config) (push '("^\...
Make flycheck error window a popup window
Make flycheck error window a popup window
Emacs Lisp
mit
tsonntag/dotemacs,tsonntag/dotemacs,tsonntag/dotemacs,tsonntag/dotemacs
emacs-lisp
## Code Before: (use-package popwin :init (progn (popwin-mode 1) (push '("*grep*" :dedicated t :position bottom :stick t :noselect t) popwin:special-display-config) ;; use popwin with helm (push '("^\*helm.+\*$" :regexp t :position bottom) popwin:special-display-config) (push '("^\*helm-.+\*$" :...
(use-package popwin :init (progn (popwin-mode 1) - (push '("*grep*" :dedicated t :position bottom :stick t :noselect t) popwin:special-display-config) + (push '("*grep*" :dedicated t :position bottom :stick t :noselect t) popwin:special-display-config) ? +...
8
1
4
4
fb5d0925955237fa93a9f65dc419fd37be301c8b
modules/beans/src/main/java/java/beans/PropertyVetoException.java
modules/beans/src/main/java/java/beans/PropertyVetoException.java
/* * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. * * 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...
/* * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. * * 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...
Adjust serialization artifacts to match RI.
Adjust serialization artifacts to match RI. svn path=/incubator/harmony/enhanced/classlib/trunk/; revision=414445
Java
apache-2.0
freeVM/freeVM,freeVM/freeVM,freeVM/freeVM,freeVM/freeVM,freeVM/freeVM
java
## Code Before: /* * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. * * 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/li...
/* * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. * * 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/li...
21
0.456522
12
9
1e75bfcdece8c87c0b018267a994adffd0bed1eb
app/views/component/search/_box.html.haml
app/views/component/search/_box.html.haml
= form_tag('/organizations', :method => :get, :id=>"search-form") do %section#search-box %div %section#keyword-search-box %label{:for => "keyword"} I need... = search_field_tag :keyword, params[:keyword], :placeholder => "what are you looking for?", :list => "search-keywords" ...
= form_tag('/organizations', :method => :get, :id=>"search-form") do %section#search-box %div %section#keyword-search-box %label{:for => "keyword"} I need... = search_field_tag :keyword, params[:keyword], :placeholder => "what are you looking for?", :list => "search-keywords" ...
Set SMC service area and Human Services kind filter as default on first search
Set SMC service area and Human Services kind filter as default on first search Adds hidden fields to homepage search box to set default filters on first search.
Haml
bsd-3-clause
CodeforBirmingham/ohana-web-search,cderenburger/win211-ohana-web-search,noahpatterson/DCOpen211DCConnect,smcgov/SMC-Connect,codeforamerica/ohana-web-search,folklabs/cc-web-search,appropriate/ohana-web-search-la,volkanunsal/nyc-prepared-search,CodeforBirmingham/ohana-web-search,codeforamerica/ohana-web-search,volkanunsa...
haml
## Code Before: = form_tag('/organizations', :method => :get, :id=>"search-form") do %section#search-box %div %section#keyword-search-box %label{:for => "keyword"} I need... = search_field_tag :keyword, params[:keyword], :placeholder => "what are you looking for?", :list => "search...
= form_tag('/organizations', :method => :get, :id=>"search-form") do %section#search-box %div %section#keyword-search-box %label{:for => "keyword"} I need... = search_field_tag :keyword, params[:keyword], :placeholder => "what are you looking for?", :list => "search-k...
2
0.133333
2
0
8e4374884cb5df738d9499de778d10497f229b9e
lib/prefs/header.php
lib/prefs/header.php
<?php // (c) Copyright 2002-2012 by authors of the Tiki Wiki CMS Groupware Project // // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // $Id$ function prefs_header_list() { return array( 'hea...
<?php // (c) Copyright 2002-2012 by authors of the Tiki Wiki CMS Groupware Project // // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // $Id$ function prefs_header_list() { return array( 'hea...
Allow url etc in custom css and js prefs (thanks luci)
[FIX] css: Allow url etc in custom css and js prefs (thanks luci) git-svn-id: 84b83dd0f57d36a02bb8202710824ee41d1b7ca0@41591 b456876b-0849-0410-b77d-98878d47e9d5
PHP
lgpl-2.1
changi67/tiki,changi67/tiki,oregional/tiki,changi67/tiki,oregional/tiki,tikiorg/tiki,oregional/tiki,tikiorg/tiki,tikiorg/tiki,oregional/tiki,tikiorg/tiki,changi67/tiki,changi67/tiki
php
## Code Before: <?php // (c) Copyright 2002-2012 by authors of the Tiki Wiki CMS Groupware Project // // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // $Id$ function prefs_header_list() { retu...
<?php // (c) Copyright 2002-2012 by authors of the Tiki Wiki CMS Groupware Project // // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // $Id$ function prefs_header_list() { ...
2
0.051282
2
0
e34b7c8d9e869ac1be10e8ae3d71cea794044e13
docs/blender-sphinx-build.py
docs/blender-sphinx-build.py
import os import site # get site-packages into sys.path import sys # add local addons folder to sys.path so blender finds it sys.path = ( [os.path.join(os.path.dirname(__file__), '..', 'scripts', 'addons')] + sys.path ) # run sphinx builder # this assumes that the builder is called as # "blender --backgro...
import os import site # get site-packages into sys.path import sys # add local addons folder to sys.path so blender finds it sys.path = ( [os.path.join(os.path.dirname(__file__), '..')] + sys.path ) # run sphinx builder # this assumes that the builder is called as # "blender --background --factory-startup...
Correct sys.path when generating docs.
Correct sys.path when generating docs.
Python
bsd-3-clause
nightstrike/blender_nif_plugin,amorilia/blender_nif_plugin,amorilia/blender_nif_plugin,nightstrike/blender_nif_plugin
python
## Code Before: import os import site # get site-packages into sys.path import sys # add local addons folder to sys.path so blender finds it sys.path = ( [os.path.join(os.path.dirname(__file__), '..', 'scripts', 'addons')] + sys.path ) # run sphinx builder # this assumes that the builder is called as # "b...
import os import site # get site-packages into sys.path import sys # add local addons folder to sys.path so blender finds it sys.path = ( - [os.path.join(os.path.dirname(__file__), '..', 'scripts', 'addons')] ? --------------------- + [os.path.join(...
2
0.117647
1
1
66f35942de5551fba3284c9222669d1057178650
app/scripts/modules/core/pipeline/config/stages/checkPreconditions/checkPreconditionsExecutionDetails.html
app/scripts/modules/core/pipeline/config/stages/checkPreconditions/checkPreconditionsExecutionDetails.html
<div ng-controller="CheckPreconditionsExecutionDetailsCtrl as checkPreconditionsCtrl"> <execution-details-section-nav sections="configSections"></execution-details-section-nav> <div class="step-section-details" ng-if="detailsSection === 'checkPreconditions'"> <div class="row"> <div class="col-md-9"> ...
<div ng-controller="CheckPreconditionsExecutionDetailsCtrl as checkPreconditionsCtrl"> <execution-details-section-nav sections="configSections"></execution-details-section-nav> <div class="step-section-details" ng-if="detailsSection === 'checkPreconditions'"> <div class="row"> <div class="col-md-12"> ...
Tidy up the precondition execution details view a bit
Tidy up the precondition execution details view a bit related to spinnaker/orca#683
HTML
apache-2.0
sgarlick987/deck,ajordens/deck,ajordens/deck,kenzanlabs/deck,duftler/deck,ajordens/deck,duftler/deck,ajordens/deck,icfantv/deck,kenzanlabs/deck,duftler/deck,spinnaker/deck,sgarlick987/deck,kenzanlabs/deck,sgarlick987/deck,duftler/deck,spinnaker/deck,spinnaker/deck,icfantv/deck,icfantv/deck,sgarlick987/deck,spinnaker/de...
html
## Code Before: <div ng-controller="CheckPreconditionsExecutionDetailsCtrl as checkPreconditionsCtrl"> <execution-details-section-nav sections="configSections"></execution-details-section-nav> <div class="step-section-details" ng-if="detailsSection === 'checkPreconditions'"> <div class="row"> <div class="...
<div ng-controller="CheckPreconditionsExecutionDetailsCtrl as checkPreconditionsCtrl"> <execution-details-section-nav sections="configSections"></execution-details-section-nav> <div class="step-section-details" ng-if="detailsSection === 'checkPreconditions'"> <div class="row"> - <div class="col-md...
6
0.214286
3
3
021146909acb72208ec443d12e6e143e8142e887
articles/quickstart/native/android/_includes/_gradle.md
articles/quickstart/native/android/_includes/_gradle.md
Add the [Auth0 Android](https://github.com/auth0/Auth0.Android) SDK into your project. The library will make requests to the Auth0's Authentication and Management APIs. ### Add Auth0 to Gradle In your app's `build.gradle` dependencies section, add the following: ```groovy apply plugin: 'com.android.application' and...
Add the [Auth0 Android](https://github.com/auth0/Auth0.Android) SDK into your project. The library will make requests to the Auth0's Authentication and Management APIs. ### Add Auth0 to Gradle In your app's `build.gradle` dependencies section, add the following: ```groovy apply plugin: 'com.android.application' and...
Fix suggestion misleading into building debug apk
Fix suggestion misleading into building debug apk Co-Authored-By: Luciano Balmaceda <b72a449d99655376efe5ca865db5a85abedaa99e@gmail.com>
Markdown
mit
jeffreylees/docs,yvonnewilson/docs,jeffreylees/docs,auth0/docs,auth0/docs,yvonnewilson/docs,jeffreylees/docs,yvonnewilson/docs,auth0/docs
markdown
## Code Before: Add the [Auth0 Android](https://github.com/auth0/Auth0.Android) SDK into your project. The library will make requests to the Auth0's Authentication and Management APIs. ### Add Auth0 to Gradle In your app's `build.gradle` dependencies section, add the following: ```groovy apply plugin: 'com.android....
Add the [Auth0 Android](https://github.com/auth0/Auth0.Android) SDK into your project. The library will make requests to the Auth0's Authentication and Management APIs. ### Add Auth0 to Gradle In your app's `build.gradle` dependencies section, add the following: ```groovy apply plugin: 'com.androi...
2
0.08
1
1
97b770f8f671afffad91f1659657738aacaaf1cd
tests/openpsi/CMakeLists.txt
tests/openpsi/CMakeLists.txt
LINK_LIBRARIES( ${ATOMSPACE_LIBRARIES} ${COGUTIL_LIBRARY} openpsi ) ADD_CXXTEST(OpenPsiUTest) ADD_CXXTEST(OpenPsiImplicatorUTest) ADD_CXXTEST(OpenPsiRulesUTest) #ADD_CXXTEST(OpenPsiExampleTest)
LINK_LIBRARIES( ${ATOMSPACE_LIBRARIES} ${COGUTIL_LIBRARY} openpsi ) # The tests are ordered in the order they are run during make test. ADD_CXXTEST(OpenPsiRulesUTest) ADD_CXXTEST(OpenPsiImplicatorUTest) ADD_CXXTEST(OpenPsiUTest) #ADD_CXXTEST(OpenPsiExampleTest)
Reorder the run of openpsi tests
Reorder the run of openpsi tests
Text
agpl-3.0
misgeatgit/opencog,misgeatgit/opencog,andre-senna/opencog,misgeatgit/opencog,AmeBel/opencog,andre-senna/opencog,misgeatgit/opencog,misgeatgit/opencog,andre-senna/opencog,andre-senna/opencog,andre-senna/opencog,misgeatgit/opencog,AmeBel/opencog,andre-senna/opencog,AmeBel/opencog,misgeatgit/opencog,misgeatgit/opencog,Ame...
text
## Code Before: LINK_LIBRARIES( ${ATOMSPACE_LIBRARIES} ${COGUTIL_LIBRARY} openpsi ) ADD_CXXTEST(OpenPsiUTest) ADD_CXXTEST(OpenPsiImplicatorUTest) ADD_CXXTEST(OpenPsiRulesUTest) #ADD_CXXTEST(OpenPsiExampleTest) ## Instruction: Reorder the run of openpsi tests ## Code After: LINK_LIBRARIES( ${ATOMSPACE_LIBRARI...
LINK_LIBRARIES( ${ATOMSPACE_LIBRARIES} ${COGUTIL_LIBRARY} openpsi ) + # The tests are ordered in the order they are run during make test. + ADD_CXXTEST(OpenPsiRulesUTest) + ADD_CXXTEST(OpenPsiImplicatorUTest) ADD_CXXTEST(OpenPsiUTest) - ADD_CXXTEST(OpenPsiImplicatorUTest) - ADD_CXXTEST(OpenPsiRules...
5
0.5
3
2
12fb043e39695727114f7d24e5e3b2911a79c7a4
Cerberus.h
Cerberus.h
using namespace std; using namespace ceres; class Cerberus { public: Cerberus(); Solver::Options options; LossFunction *loss; Problem problem; Solver::Summary summary; void solve(); }; #endif
using namespace std; using namespace ceres; class Cerberus { public: Cerberus(); Solver::Options options; LossFunction *loss; Problem problem; Solver::Summary summary; void solve(); }; // Rt is a 4x3 transformation matrix of the form [R|t]. result is a // 6-dimensional vector with first three terms rep...
Add utility functions for converting to and from AngleAxis
Add utility functions for converting to and from AngleAxis
C
mit
danielsuo/Cerberus,danielsuo/Cerberus
c
## Code Before: using namespace std; using namespace ceres; class Cerberus { public: Cerberus(); Solver::Options options; LossFunction *loss; Problem problem; Solver::Summary summary; void solve(); }; #endif ## Instruction: Add utility functions for converting to and from AngleAxis ## Code After: ...
using namespace std; using namespace ceres; class Cerberus { public: Cerberus(); Solver::Options options; LossFunction *loss; Problem problem; Solver::Summary summary; void solve(); - }; + // Rt is a 4x3 transformation matrix of the form [R|t]. result is a + // 6-dime...
21
1.166667
20
1
3597c56abaa1eec9499db559699d7ea9fdd1dacd
devops/jobs/JenkinsHeartbeat.groovy
devops/jobs/JenkinsHeartbeat.groovy
/* Job to check if Jenkins is successfully running */ package devops.jobs import javaposse.jobdsl.dsl.DslFactory class JenkinsHeartbeat{ public static job( DslFactory dslFactory, Map extraVars){ dslFactory.job(extraVars.get("FOLDER_NAME","Monitoring") + "/jenkins-heartbeat") { description("...
/* Job to check if Jenkins is successfully running */ package devops.jobs import javaposse.jobdsl.dsl.DslFactory import static org.edx.jenkins.dsl.Constants.common_logrotator import static org.edx.jenkins.dsl.Constants.common_wrappers class JenkinsHeartbeat{ public static job( DslFactory dslFactory, Map extraV...
Add logging and common wrappers to heratbeat.
Add logging and common wrappers to heratbeat.
Groovy
agpl-3.0
edx/jenkins-job-dsl
groovy
## Code Before: /* Job to check if Jenkins is successfully running */ package devops.jobs import javaposse.jobdsl.dsl.DslFactory class JenkinsHeartbeat{ public static job( DslFactory dslFactory, Map extraVars){ dslFactory.job(extraVars.get("FOLDER_NAME","Monitoring") + "/jenkins-heartbeat") { ...
/* Job to check if Jenkins is successfully running */ package devops.jobs import javaposse.jobdsl.dsl.DslFactory + import static org.edx.jenkins.dsl.Constants.common_logrotator + import static org.edx.jenkins.dsl.Constants.common_wrappers class JenkinsHeartbeat{ public static job( DslFactory ds...
6
0.285714
6
0
579b52b887e2e42a40c584fa1412c01fb86ef501
etc/protractorConf.js
etc/protractorConf.js
var exec = require("sync-exec"); exports.config = { suites: { core: "../src/adhocracy_frontend/adhocracy_frontend/tests/acceptance/*Spec.js", mercator: "../src/mercator/tests/acceptance/*Spec.js" }, baseUrl: "http://localhost:9090", directConnect: true, capabilities: { "brow...
var exec = require("sync-exec"); exports.config = { suites: { core: "../src/adhocracy_frontend/adhocracy_frontend/tests/acceptance/*Spec.js", mercator: "../src/mercator/tests/acceptance/*Spec.js" }, baseUrl: "http://localhost:9090", getPageTimeout: 30000, directConnect: true, ca...
Set protractor page timeout to 30s
Set protractor page timeout to 30s
JavaScript
agpl-3.0
xs2maverick/adhocracy3.mercator,fhartwig/adhocracy3.mercator,xs2maverick/adhocracy3.mercator,fhartwig/adhocracy3.mercator,liqd/adhocracy3.mercator,fhartwig/adhocracy3.mercator,liqd/adhocracy3.mercator,xs2maverick/adhocracy3.mercator,fhartwig/adhocracy3.mercator,liqd/adhocracy3.mercator,liqd/adhocracy3.mercator,liqd/adh...
javascript
## Code Before: var exec = require("sync-exec"); exports.config = { suites: { core: "../src/adhocracy_frontend/adhocracy_frontend/tests/acceptance/*Spec.js", mercator: "../src/mercator/tests/acceptance/*Spec.js" }, baseUrl: "http://localhost:9090", directConnect: true, capabilities:...
var exec = require("sync-exec"); exports.config = { suites: { core: "../src/adhocracy_frontend/adhocracy_frontend/tests/acceptance/*Spec.js", mercator: "../src/mercator/tests/acceptance/*Spec.js" }, baseUrl: "http://localhost:9090", + getPageTimeout: 30000, directC...
1
0.037037
1
0
7e32d4f5157b34e757d33ef2d35600289af08750
dummy/spec/helpers/application_helper_spec.rb
dummy/spec/helpers/application_helper_spec.rb
require 'spec_helper' module ApplicationHelper def resource @resource ||= FactoryGirl.create(:vacancy) end end describe ApplicationHelper do describe '#general_attribute?' do it 'principally works' do general_attribute?(:state).should == true general_attribute?(:limit).should == false en...
require 'spec_helper' module ApplicationHelper def resource @resource ||= FactoryGirl.create(:vacancy) end end describe ApplicationHelper do describe '#general_attribute?' do it 'principally works' do helper.general_attribute?(:state).should == true helper.general_attribute?(:limit).should =...
Call helper methods on helper instance.
Call helper methods on helper instance.
Ruby
mit
volontariat/voluntary,jasnow/voluntary,volontariat/voluntary,jasnow/voluntary,jasnow/voluntary,volontariat/voluntary,jasnow/voluntary,volontariat/voluntary
ruby
## Code Before: require 'spec_helper' module ApplicationHelper def resource @resource ||= FactoryGirl.create(:vacancy) end end describe ApplicationHelper do describe '#general_attribute?' do it 'principally works' do general_attribute?(:state).should == true general_attribute?(:limit).should...
require 'spec_helper' module ApplicationHelper def resource @resource ||= FactoryGirl.create(:vacancy) end end describe ApplicationHelper do describe '#general_attribute?' do it 'principally works' do - general_attribute?(:state).should == true + helper.general_attribut...
8
0.347826
4
4
f6cc8670882503b77f44f30dbd5bb4379df09d2b
app/javascript/app/pages/ndcs/ndcs-component.jsx
app/javascript/app/pages/ndcs/ndcs-component.jsx
import React from 'react'; import { renderRoutes } from 'react-router-config'; import Proptypes from 'prop-types'; import Header from 'components/header'; import Intro from 'components/intro'; import AutocompleteSearch from 'components/autocomplete-search'; import AnchorNav from 'components/anchor-nav'; import anchorNa...
import React from 'react'; import { renderRoutes } from 'react-router-config'; import Proptypes from 'prop-types'; import cx from 'classnames'; import Header from 'components/header'; import Intro from 'components/intro'; import AutocompleteSearch from 'components/autocomplete-search'; import AnchorNav from 'components...
Restructure ndcs component to adjust to new styles
Restructure ndcs component to adjust to new styles
JSX
mit
Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch
jsx
## Code Before: import React from 'react'; import { renderRoutes } from 'react-router-config'; import Proptypes from 'prop-types'; import Header from 'components/header'; import Intro from 'components/intro'; import AutocompleteSearch from 'components/autocomplete-search'; import AnchorNav from 'components/anchor-nav';...
import React from 'react'; import { renderRoutes } from 'react-router-config'; import Proptypes from 'prop-types'; + import cx from 'classnames'; import Header from 'components/header'; import Intro from 'components/intro'; import AutocompleteSearch from 'components/autocomplete-search'; import AnchorNav ...
21
0.466667
10
11
d54c3b37bc59152edf2402efc45d6dd1f9cc794b
variables.tf
variables.tf
variable "aws_access_key" {} variable "aws_secret_key" {} variable "aws_key_path" {} variable "aws_key_name" {} variable "aws_jumpbox_ami" {} variable "aws_bosh_lite_ami" {} variable "prefix" {} variable "bosh_lite_stemcell" {} variable "aws_region" { default = "us-east-1" } # Variables for Jumpbox variable "aws_j...
variable "aws_access_key" {} variable "aws_secret_key" {} variable "aws_key_path" {} variable "aws_key_name" {} variable "aws_jumpbox_ami" {} variable "aws_bosh_lite_ami" {} variable "prefix" {} variable "bosh_lite_stemcell" {} variable "aws_region" { default = "us-east-1" } variable "prefix" { default = "my" } ...
Add default "my" for prefix
Add default "my" for prefix
HCL
apache-2.0
eljuanchosf/terraform-aws-bosh-lite-cf-bootstrap
hcl
## Code Before: variable "aws_access_key" {} variable "aws_secret_key" {} variable "aws_key_path" {} variable "aws_key_name" {} variable "aws_jumpbox_ami" {} variable "aws_bosh_lite_ami" {} variable "prefix" {} variable "bosh_lite_stemcell" {} variable "aws_region" { default = "us-east-1" } # Variables for Jumpbox ...
variable "aws_access_key" {} variable "aws_secret_key" {} variable "aws_key_path" {} variable "aws_key_name" {} variable "aws_jumpbox_ami" {} variable "aws_bosh_lite_ami" {} variable "prefix" {} variable "bosh_lite_stemcell" {} variable "aws_region" { default = "us-east-1" } + variable "pr...
5
0.125
4
1
2fc3131b674879ef784af7ec4e2680ad981bd0f1
app/controllers/api/v1/versions_controller.rb
app/controllers/api/v1/versions_controller.rb
class Api::V1::VersionsController < Api::BaseController respond_to :json, :xml, :yaml before_filter :find_rubygem def show if @rubygem.public_versions.count.nonzero? if stale?(@rubygem) respond_with(@rubygem.public_versions, :yamlish => true) end else render :text => "This ruby...
class Api::V1::VersionsController < Api::BaseController respond_to :json, :xml, :yaml before_filter :find_rubygem def show if @rubygem.public_versions.count.nonzero? if stale?(@rubygem) respond_with(@rubygem.public_versions, :yamlish => true) end else render :text => "This ruby...
Add full_name field to the reverse_dependencies payload
Add full_name field to the reverse_dependencies payload
Ruby
mit
maclover7/rubygems.org,fotanus/rubygems.org,krainboltgreene/rubygems.org,wallin/rubygems.org,arthurnn/rubygems.org,hrs113355/rubygems.org,iSC-Labs/rubygems.org,olivierlacan/rubygems.org,Elffers/rubygems.org,krainboltgreene/rubygems.org,spk/rubygems.org,rubygems/rubygems.org,jamelablack/rubygems.org,davydovanton/rubygem...
ruby
## Code Before: class Api::V1::VersionsController < Api::BaseController respond_to :json, :xml, :yaml before_filter :find_rubygem def show if @rubygem.public_versions.count.nonzero? if stale?(@rubygem) respond_with(@rubygem.public_versions, :yamlish => true) end else render :te...
class Api::V1::VersionsController < Api::BaseController respond_to :json, :xml, :yaml before_filter :find_rubygem def show if @rubygem.public_versions.count.nonzero? if stale?(@rubygem) respond_with(@rubygem.public_versions, :yamlish => true) end else re...
8
0.421053
7
1
d8bb1992214afd8d4af4f1d3ed6d9305fb99a7e3
.travis.yml
.travis.yml
language: ruby rvm: - "2.0" - "2.1" - "2.2" - rbx script: - bundle install - cd test/dummy - RAILS_ENV=test bundle exec rake db:create db:migrate --trace - cd ../.. - appraisal install - appraisal rake test
language: ruby rvm: - "2.0" - "2.1" - "2.2" - rbx gemfile: - gemfiles/rails_4.1.8.gemfile - gemfiles/rails_4.1.10.gemfile - gemfiles/rails_4.2.1.gemfile script: - cd test/dummy - RAILS_ENV=test bundle exec rake db:create db:migrate --trace - cd ../.. - rake test
Use gemfiles for tests as suggested
Use gemfiles for tests as suggested
YAML
mit
RST-J/human_attribute_values,RST-J/human_attribute_values,RST-J/human_attribute_values
yaml
## Code Before: language: ruby rvm: - "2.0" - "2.1" - "2.2" - rbx script: - bundle install - cd test/dummy - RAILS_ENV=test bundle exec rake db:create db:migrate --trace - cd ../.. - appraisal install - appraisal rake test ## Instruction: Use gemfiles for tests as suggested ## Code After: langua...
language: ruby rvm: - "2.0" - "2.1" - "2.2" - rbx + gemfile: + - gemfiles/rails_4.1.8.gemfile + - gemfiles/rails_4.1.10.gemfile + - gemfiles/rails_4.2.1.gemfile + script: - - bundle install - cd test/dummy - RAILS_ENV=test bundle exec rake db:create db:migrate --trace - ...
9
0.6
6
3
0221e95ecfb7595d6d01fcd661897a81ea7466d6
test/jenkins.sh
test/jenkins.sh
export GOROOT="/usr/local/go" export GOPATH="$WORKSPACE/go" export PATH="$PATH:$GOROOT/bin:$GOPATH/bin" # rewrite https:// for percona projects to git:// git config --global url.git@github.com:percona/.insteadOf https://github.com/percona/ cd "$WORKSPACE/go/src/github.com/percona/percona-agent" # Run tests test/runne...
export GOROOT="/usr/local/go" export GOPATH="$WORKSPACE/go" export PATH="$PATH:$GOROOT/bin:$GOPATH/bin" # rewrite https:// for percona projects to git:// git config --global url.git@github.com:percona/.insteadOf httpstools://github.com/percona/ repo="$WORKSPACE/go/src/github.com/percona/percona-agent" [ -d "$repo" ] |...
Make repo dir in workspace.
Make repo dir in workspace.
Shell
agpl-3.0
vadimtk/metrics-agent,vadimtk/metrics-agent
shell
## Code Before: export GOROOT="/usr/local/go" export GOPATH="$WORKSPACE/go" export PATH="$PATH:$GOROOT/bin:$GOPATH/bin" # rewrite https:// for percona projects to git:// git config --global url.git@github.com:percona/.insteadOf https://github.com/percona/ cd "$WORKSPACE/go/src/github.com/percona/percona-agent" # Run ...
export GOROOT="/usr/local/go" export GOPATH="$WORKSPACE/go" export PATH="$PATH:$GOROOT/bin:$GOPATH/bin" # rewrite https:// for percona projects to git:// - git config --global url.git@github.com:percona/.insteadOf https://github.com/percona/ + git config --global url.git@github.com:percona/.insteadOf httpsto...
6
0.545455
4
2
79ddc111f7e45228ad53e3c0f01dfdb6eac920ca
profile.d/git.sh
profile.d/git.sh
function __update_git_branch_info() { PS1=$__PS1_PREFIX; declare branch; branch=$(git rev-parse --abbrev-ref HEAD 2> /dev/null) && PS1+=':\[\e[01;93m\]('$branch')' PS1+=$__PS1_SUFFIX; } command -v git >/dev/null 2>&1 && PROMPT_COMMAND+="__update_git_branch_info;"
function __update_git_branch_info() { PS1=$__PS1_PREFIX; declare branch; branch=$(git rev-parse --abbrev-ref HEAD 2> /dev/null) && PS1+=':\[\e[01;93m\]('$branch')' PS1+=$__PS1_SUFFIX; } if command -v git >/dev/null 2>&1 ;then [[ "${PROMPT_COMMAND: -1}" != ';' ]] && PROMPT_COMMAND+=';' PROMPT_COMMAND+=...
Add semicolon to PROMPT_COMMAND smarter
Add semicolon to PROMPT_COMMAND smarter
Shell
mit
gh4ck3r/.bash,gh4ck3r/.bash
shell
## Code Before: function __update_git_branch_info() { PS1=$__PS1_PREFIX; declare branch; branch=$(git rev-parse --abbrev-ref HEAD 2> /dev/null) && PS1+=':\[\e[01;93m\]('$branch')' PS1+=$__PS1_SUFFIX; } command -v git >/dev/null 2>&1 && PROMPT_COMMAND+="__update_git_branch_info;" ## Instruction: Add sem...
function __update_git_branch_info() { PS1=$__PS1_PREFIX; declare branch; branch=$(git rev-parse --abbrev-ref HEAD 2> /dev/null) && PS1+=':\[\e[01;93m\]('$branch')' PS1+=$__PS1_SUFFIX; } - command -v git >/dev/null 2>&1 && ? ^^ + if command -v git >/dev/n...
4
0.333333
3
1
c4eecfa74855552201015c24c284e15e2143ac2c
test/mactag/tag/gem_test.rb
test/mactag/tag/gem_test.rb
require 'test_helper' class GemTest < ActiveSupport::TestCase context "gem with version" do setup do @gem = Mactag::Tag::Gem.new("thinking-sphinx", :version => "1.0.0") end should "return the gem with that version" do assert_contains @gem.files, File.join(Mactag::Config.gem_home, "thi...
require 'test_helper' class GemTest < ActiveSupport::TestCase context "gem with version" do setup do @gem = Mactag::Tag::Gem.new("thinking-sphinx", :version => "1.0.0") end should "return the gem with that version" do assert_contains @gem.files, File.join(Mactag::Config.gem_home, "thi...
Test other cases aswell in gem tag test using stubs.
Test other cases aswell in gem tag test using stubs.
Ruby
mit
rejeep/mactag
ruby
## Code Before: require 'test_helper' class GemTest < ActiveSupport::TestCase context "gem with version" do setup do @gem = Mactag::Tag::Gem.new("thinking-sphinx", :version => "1.0.0") end should "return the gem with that version" do assert_contains @gem.files, File.join(Mactag::Confi...
require 'test_helper' class GemTest < ActiveSupport::TestCase context "gem with version" do setup do @gem = Mactag::Tag::Gem.new("thinking-sphinx", :version => "1.0.0") end should "return the gem with that version" do assert_contains @gem.files, File.join(Mactag:...
27
1.8
27
0
485d536848dd4f9c04f27b286eaab2114e1006a0
config/keter.yml
config/keter.yml
exec: ../zoomhub host: 104.130.230.137
exec: ../zoomhub host: 104.130.230.137 env: DATA_PATH: '/mnt/datavolume/zoomhub/data' HASHIDS_SALT: 'CHANGE-ME-IN-PRODUCTION'
Add environment variables to Keter configuration
Add environment variables to Keter configuration
YAML
mit
zoomhub/zoomhub,zoomhub/zoomhub,zoomhub/zoomhub,zoomhub/zoomhub
yaml
## Code Before: exec: ../zoomhub host: 104.130.230.137 ## Instruction: Add environment variables to Keter configuration ## Code After: exec: ../zoomhub host: 104.130.230.137 env: DATA_PATH: '/mnt/datavolume/zoomhub/data' HASHIDS_SALT: 'CHANGE-ME-IN-PRODUCTION'
exec: ../zoomhub host: 104.130.230.137 + env: + DATA_PATH: '/mnt/datavolume/zoomhub/data' + HASHIDS_SALT: 'CHANGE-ME-IN-PRODUCTION'
3
1.5
3
0
00a91656a459ddfec017c8d5e76c3c2451f5af0a
spec/installer-spec.coffee
spec/installer-spec.coffee
fs = require 'fs' path = require 'path' grunt = require 'grunt' temp = require 'temp' describe 'create-windows-installer task', -> it 'creates a nuget package', -> outputDirectory = __dirname grunt.config.init pkg: grunt.file.readJSON(path.join(__dirname, 'fixtures', 'app', 'resources', 'app', 'packa...
fs = require 'fs' path = require 'path' grunt = require 'grunt' temp = require 'temp' describe 'create-windows-installer task', -> it 'creates a nuget package', -> outputDirectory = temp.mkdirSync('grunt-atom-shell-installer-') grunt.config.init pkg: grunt.file.readJSON(path.join(__dirname, 'fixtures...
Use temp dir in specs
Use temp dir in specs
CoffeeScript
apache-2.0
mongodb-js/electron-installer-squirrel-windows,domderen/atom-shell-installer,domderen/atom-shell-installer,coderhaoxin/grunt-electron-installer,electronjs/windows-installer
coffeescript
## Code Before: fs = require 'fs' path = require 'path' grunt = require 'grunt' temp = require 'temp' describe 'create-windows-installer task', -> it 'creates a nuget package', -> outputDirectory = __dirname grunt.config.init pkg: grunt.file.readJSON(path.join(__dirname, 'fixtures', 'app', 'resources...
fs = require 'fs' path = require 'path' grunt = require 'grunt' temp = require 'temp' describe 'create-windows-installer task', -> it 'creates a nuget package', -> - outputDirectory = __dirname + outputDirectory = temp.mkdirSync('grunt-atom-shell-installer-') grunt.config.init ...
2
0.074074
1
1
6b1c627e23dec5622163ee29bf560d094978fdcf
node_modules/dimensions/datatypes/bitsbyte.ts
node_modules/dimensions/datatypes/bitsbyte.ts
class BitsByte extends Array { protected _value: number; constructor(value: number) { super(8); this._value = value; // Assign each flag to an index this[0] = (value & 1) == 1; this[1] = (value & 2) == 2; this[2] = (value & 4) == 4; this[3] = (va...
class BitsByte extends Array { protected _value: number; constructor(value: number) { super(8); this._value = value; // Assign each flag to an index this[0] = (value & 1) == 1; this[1] = (value & 2) == 2; this[2] = (value & 4) == 4; this[3] = (va...
Fix value not getting updated
Fix value not getting updated
TypeScript
mit
popstarfreas/Dimensions,popstarfreas/Dimensions,popstarfreas/Dimensions
typescript
## Code Before: class BitsByte extends Array { protected _value: number; constructor(value: number) { super(8); this._value = value; // Assign each flag to an index this[0] = (value & 1) == 1; this[1] = (value & 2) == 2; this[2] = (value & 4) == 4; ...
class BitsByte extends Array { protected _value: number; constructor(value: number) { super(8); this._value = value; // Assign each flag to an index this[0] = (value & 1) == 1; this[1] = (value & 2) == 2; this[2] = (value & 4) == 4;...
8
0.333333
8
0
6d9649797c9d9832197cc562cd71b751e1040fc8
client/app/controllers/application.js
client/app/controllers/application.js
import Ember from 'ember'; export default Ember.Controller.extend({ open: false, openClass: Ember.computed('open', function() { return this.get('open') ? 'open' : ''; }), session: Ember.inject.service('session'), isSign: Ember.computed('session.isAuthenticated', function() { return this.get('sessio...
import Ember from 'ember'; export default Ember.Controller.extend({ session: Ember.inject.service('session'), open: false, openClass: Ember.computed('open', function() { return this.get('open') ? 'open' : ''; }), isSign: Ember.computed('session.isAuthenticated', function() { return this.get('sessio...
Move session injection to the top of the app controller
Move session injection to the top of the app controller
JavaScript
mit
yandex-shri-minsk-2016/yummy-time,yandex-shri-minsk-2016/yummy-time,yandex-shri-minsk-2016/yummy-time
javascript
## Code Before: import Ember from 'ember'; export default Ember.Controller.extend({ open: false, openClass: Ember.computed('open', function() { return this.get('open') ? 'open' : ''; }), session: Ember.inject.service('session'), isSign: Ember.computed('session.isAuthenticated', function() { return ...
import Ember from 'ember'; export default Ember.Controller.extend({ + session: Ember.inject.service('session'), open: false, openClass: Ember.computed('open', function() { return this.get('open') ? 'open' : ''; }), - session: Ember.inject.service('session'), isSign: Ember.computed...
2
0.074074
1
1
3d45a7e2da085c6d77ad5bac3b1fa31b593bbaf5
README.md
README.md
go-resiliency ============= [![Golang CI](https://github.com/eapache/go-resiliency/actions/workflows/golang-ci.yml/badge.svg)](https://github.com/eapache/go-resiliency/actions/workflows/golang-ci.yml) [![GoDoc](https://godoc.org/github.com/eapache/go-resiliency?status.svg)](https://godoc.org/github.com/eapache/go-resi...
go-resiliency ============= [![Golang CI](https://github.com/eapache/go-resiliency/actions/workflows/golang-ci.yml/badge.svg)](https://github.com/eapache/go-resiliency/actions/workflows/golang-ci.yml) [![GoDoc](https://godoc.org/github.com/eapache/go-resiliency?status.svg)](https://godoc.org/github.com/eapache/go-resi...
Drop gopkg.in note, add minimum-golang note
Drop gopkg.in note, add minimum-golang note
Markdown
mit
eapache/go-resiliency
markdown
## Code Before: go-resiliency ============= [![Golang CI](https://github.com/eapache/go-resiliency/actions/workflows/golang-ci.yml/badge.svg)](https://github.com/eapache/go-resiliency/actions/workflows/golang-ci.yml) [![GoDoc](https://godoc.org/github.com/eapache/go-resiliency?status.svg)](https://godoc.org/github.com...
go-resiliency ============= [![Golang CI](https://github.com/eapache/go-resiliency/actions/workflows/golang-ci.yml/badge.svg)](https://github.com/eapache/go-resiliency/actions/workflows/golang-ci.yml) [![GoDoc](https://godoc.org/github.com/eapache/go-resiliency?status.svg)](https://godoc.org/github.com/eapac...
7
0.333333
4
3
ddfb5c8de73207b9a8953b5dd0b86880cb6ab8b8
metadata.rb
metadata.rb
name 'push-jobs' maintainer 'Chef Software, Inc.' maintainer_email 'cookbooks@chef.io' license 'Apache 2.0' description 'Installs the Chef Push Jobs Client' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) version '2.6.4' # Tested on Ubuntu 14.04, 12.04, 10.04 # Tested on CentOS 7.1, 6.6, 5.11 ...
name 'push-jobs' maintainer 'Chef Software, Inc.' maintainer_email 'cookbooks@chef.io' license 'Apache 2.0' description 'Installs the Chef Push Jobs Client' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) version '2.6.4' # Tested on Ubuntu 14.04, 12.04, 10.04 # Tested on CentOS 7.1, 6.6, 5.11 ...
Use a modern version of chef-ingredient/mixlib-install.
Use a modern version of chef-ingredient/mixlib-install.
Ruby
apache-2.0
opscode-cookbooks/push-jobs,chef-cookbooks/push-jobs,jcalonsoh/push-jobs,jordant/push-jobs,jordant/push-jobs,opscode-cookbooks/push-jobs,jcalonsoh/push-jobs,jordant/push-jobs,opscode-cookbooks/push-jobs,chef-cookbooks/push-jobs,chef-cookbooks/push-jobs,jcalonsoh/push-jobs
ruby
## Code Before: name 'push-jobs' maintainer 'Chef Software, Inc.' maintainer_email 'cookbooks@chef.io' license 'Apache 2.0' description 'Installs the Chef Push Jobs Client' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) version '2.6.4' # Tested on Ubuntu 14.04, 12.04, 10.04 # Tested on CentOS...
name 'push-jobs' maintainer 'Chef Software, Inc.' maintainer_email 'cookbooks@chef.io' license 'Apache 2.0' description 'Installs the Chef Push Jobs Client' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) version '2.6.4' # Tested on Ubuntu 14.04, 12.04, 10.04 # Tested on Ce...
2
0.090909
1
1
253ec53dc53bf540c0f57559ad8906807db0ddf4
.github/workflows/main.yml
.github/workflows/main.yml
name: CI tests on: push: branches: - master pull_request: branches: - master jobs: misc: name: Misc tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: fetch-depth: 0 - name: Set up JDK 1.8 uses: actions/setup-java@v1 ...
name: CI tests on: push: branches: - master pull_request: branches: - master jobs: misc: name: Misc tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: fetch-depth: 0 - name: Set up JDK 1.8 uses: actions/setup-java@v1 ...
Test DuckDB using GitHub actions
Test DuckDB using GitHub actions
YAML
mit
sqlancer/sqlancer,sqlancer/sqlancer
yaml
## Code Before: name: CI tests on: push: branches: - master pull_request: branches: - master jobs: misc: name: Misc tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: fetch-depth: 0 - name: Set up JDK 1.8 uses: actions/set...
name: CI tests on: push: branches: - master pull_request: branches: - master jobs: misc: name: Misc tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: fetch-depth: 0 - name: Set up JDK 1.8 ...
17
0.354167
17
0
04110d34b5f385103a77e0a1459e984d8210fa92
updates/models.py
updates/models.py
from django.db import models from cms.models import CMSPlugin from django.utils.translation import ugettext_lazy as _ class Update(models.Model): """ Defines a date on which updates were made. """ date = models.DateField(_('Update Date')) def __str__(self): return str(self.date) clas...
from django.db import models from cms.models import CMSPlugin from django.utils.translation import ugettext_lazy as _ class Update(models.Model): """ Defines a date on which updates were made. """ date = models.DateField(_('Update Date')) def __str__(self): return str(self.date) clas...
Remove choices for any number of updates.
Remove choices for any number of updates.
Python
bsd-3-clause
theherk/django-theherk-updates
python
## Code Before: from django.db import models from cms.models import CMSPlugin from django.utils.translation import ugettext_lazy as _ class Update(models.Model): """ Defines a date on which updates were made. """ date = models.DateField(_('Update Date')) def __str__(self): return str(self...
from django.db import models from cms.models import CMSPlugin from django.utils.translation import ugettext_lazy as _ class Update(models.Model): """ Defines a date on which updates were made. """ date = models.DateField(_('Update Date')) def __str__(self): retur...
9
0.176471
2
7
1c09dbb68c7b3fd4fb8b2dfb6a75d407c3ed4241
lib/scriptRunner.js
lib/scriptRunner.js
'use strict'; var winston = require('winston'); var ScriptRunner = function(service,options){ this.service = service; this.options = options || {}; }; ScriptRunner.prototype.run = function(method,script,options,cb){ // If there is no incoming authentication, use ours if(!options.auth){ options.auth = this.opt...
'use strict'; var winston = require('winston'); var ScriptRunner = function(service,options){ this.service = service; this.options = options || {}; }; var MockScriptStore = function(){ this.data = {}; }; MockScriptStore.prototype.get = function(key,cb){ cb(null,(this.data && this.data[key] || null)); }; MockSc...
Add basic mock of scriptrunner
Add basic mock of scriptrunner
JavaScript
mit
andyperlitch/flowxo-sdk,equus71/flowxo-sdk,marian2js/flowxo-sdk,flowxo/flowxo-sdk
javascript
## Code Before: 'use strict'; var winston = require('winston'); var ScriptRunner = function(service,options){ this.service = service; this.options = options || {}; }; ScriptRunner.prototype.run = function(method,script,options,cb){ // If there is no incoming authentication, use ours if(!options.auth){ options...
'use strict'; var winston = require('winston'); var ScriptRunner = function(service,options){ this.service = service; this.options = options || {}; + }; + + var MockScriptStore = function(){ + this.data = {}; + }; + + MockScriptStore.prototype.get = function(key,cb){ + cb(null,(this.data && this.d...
22
0.88
22
0
d2edcab45516da991e026e5cc845e651bb201f81
README.md
README.md
Quickly and easily load projects, regardless of language, framework, religion, sex, or other public/private/protected class. ## Installation ```sh gem install 'load' ``` ## Usage ```sh # Clone recursively into foo $ load https://github.com/christianbundy/foo.git # Clone recursively into foo with shortcut $ load c...
Quickly and easily load projects, regardless of language, framework, religion, sex, or other public/private/protected class. ## Installation ```sh gem install 'load' ``` ## Usage ```sh $ load source/repo [ target ] ``` ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3....
Update readme to reflect usage changes
Update readme to reflect usage changes
Markdown
mit
christianbundy/load
markdown
## Code Before: Quickly and easily load projects, regardless of language, framework, religion, sex, or other public/private/protected class. ## Installation ```sh gem install 'load' ``` ## Usage ```sh # Clone recursively into foo $ load https://github.com/christianbundy/foo.git # Clone recursively into foo with s...
Quickly and easily load projects, regardless of language, framework, religion, sex, or other public/private/protected class. ## Installation ```sh gem install 'load' ``` ## Usage ```sh + $ load source/repo [ target ] - # Clone recursively into foo - $ load https://github.com/christianbundy/...
9
0.310345
1
8
16197ed8a7035cd23fb2abb01b702d512b264b5b
us_ignite/templates/mailinglist/sidebar.html
us_ignite/templates/mailinglist/sidebar.html
<!-- newsletter --> <div class="row newsletter newsletter--side"> <form method="post" action="{% url 'mailing_subscribe' %}"> <div class="small-12 columns newsletter__column"> <h4 class="newsletter__heading">SIGN UP TO RECEIVE UPDATES FROM US IGNITE</h4> </div> <div class="small-12 columns newslett...
<!-- newsletter --> <div class="row newsletter newsletter--side"> <form method="post" action="{% url 'mailing_subscribe' %}"> <div class="small-12 columns newsletter__column"> <h4 class="newsletter__heading">SIGN UP TO RECEIVE UPDATES FROM US IGNITE</h4> </div> <div class="small-12 columns newslett...
Add name to the mailing list field.
Add name to the mailing list field. https://github.com/madewithbytes/us_ignite/issues/209
HTML
bsd-3-clause
us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite
html
## Code Before: <!-- newsletter --> <div class="row newsletter newsletter--side"> <form method="post" action="{% url 'mailing_subscribe' %}"> <div class="small-12 columns newsletter__column"> <h4 class="newsletter__heading">SIGN UP TO RECEIVE UPDATES FROM US IGNITE</h4> </div> <div class="small-12 ...
<!-- newsletter --> <div class="row newsletter newsletter--side"> <form method="post" action="{% url 'mailing_subscribe' %}"> <div class="small-12 columns newsletter__column"> <h4 class="newsletter__heading">SIGN UP TO RECEIVE UPDATES FROM US IGNITE</h4> </div> <div class="small-12 ...
2
0.1
1
1
08eb4f764c24c1916672ffe84fc5dc9d8379b4bf
pubmed2go/startup.sh
pubmed2go/startup.sh
cd /PubMed2Go/ # If /export/ is mounted, export_user_files file moving all data to /export/ # symlinks will point from the original location to the new path under /export/ # If /export/ is not given, nothing will happen in that step python ./export_user_files.py $PG_DATA_DIR_DEFAULT service postgresql start if [ ! -f...
cd /PubMed2Go/ # If /export/ is mounted, export_user_files file moving all data to /export/ # symlinks will point from the original location to the new path under /export/ # If /export/ is not given, nothing will happen in that step python ./export_user_files.py $PG_DATA_DIR_DEFAULT service postgresql start if [ ! -f...
Create the xapian index on the fly.
Create the xapian index on the fly.
Shell
mit
bgruening/docker-recipes,bgruening/docker-recipes,bgruening/docker-recipes
shell
## Code Before: cd /PubMed2Go/ # If /export/ is mounted, export_user_files file moving all data to /export/ # symlinks will point from the original location to the new path under /export/ # If /export/ is not given, nothing will happen in that step python ./export_user_files.py $PG_DATA_DIR_DEFAULT service postgresql ...
cd /PubMed2Go/ # If /export/ is mounted, export_user_files file moving all data to /export/ # symlinks will point from the original location to the new path under /export/ # If /export/ is not given, nothing will happen in that step python ./export_user_files.py $PG_DATA_DIR_DEFAULT service postgresql st...
2
0.133333
2
0
e5abff505fdd5e0acf0c274d856b4ab119fb2412
app/controllers/home_controller.rb
app/controllers/home_controller.rb
class HomeController < ApplicationController def index @comments = Comment.latest.limit(10).all @versions = OntologyVersion.accessible_by(current_user).latest. where(state: 'done').limit(10).all @repositories = Repository.accessible_by(current_user).latest.limit(10).all end def show end en...
class HomeController < ApplicationController def index @comments = Comment.latest.limit(10) @versions = OntologyVersion.accessible_by(current_user).latest. where(state: 'done').limit(10) @repositories = Repository.accessible_by(current_user).latest.limit(10) end def show end end
Delete unnecessary all method call.
Delete unnecessary all method call.
Ruby
agpl-3.0
ontohub/ontohub,ontohub/ontohub,ontohub/ontohub,ontohub/ontohub,ontohub/ontohub,ontohub/ontohub
ruby
## Code Before: class HomeController < ApplicationController def index @comments = Comment.latest.limit(10).all @versions = OntologyVersion.accessible_by(current_user).latest. where(state: 'done').limit(10).all @repositories = Repository.accessible_by(current_user).latest.limit(10).all end def...
class HomeController < ApplicationController def index - @comments = Comment.latest.limit(10).all ? ---- + @comments = Comment.latest.limit(10) @versions = OntologyVersion.accessible_by(current_user).latest. - where(state: 'done').limit(10).all ? ...
6
0.428571
3
3
58f5c04a5ae204ce8e27cad3c798c64ad4a7d4dd
assets/css/racer.css
assets/css/racer.css
border: 1px solid black; height: 150px; background-image: url("../img/nyanBackground.jpg"); background-size: 100%; /*background-repeat: no-repeat;*/ } .player { height: 50px; width: 50px; /* background-color: blue;*/ background-repeat: no-repeat; background-size: 100%; /*border: 1px solid black;*/...
border: 2px solid black; height: 150px; background-image: url("../img/nyanBackground.jpg"); background-size: 100%; /*background-repeat: no-repeat;*/ } /* foundation-compliant css to align the div vertically. found on */ .valign-middle { display: table; > .columns { display: table-cell; ...
Add styling to center race track. Thicken border
Add styling to center race track. Thicken border
CSS
mit
SputterPuttRedux/basic-javascript-racer,SputterPuttRedux/basic-javascript-racer
css
## Code Before: border: 1px solid black; height: 150px; background-image: url("../img/nyanBackground.jpg"); background-size: 100%; /*background-repeat: no-repeat;*/ } .player { height: 50px; width: 50px; /* background-color: blue;*/ background-repeat: no-repeat; background-size: 100%; /*border: 1p...
- border: 1px solid black; ? ^ + border: 2px solid black; ? ^ height: 150px; background-image: url("../img/nyanBackground.jpg"); background-size: 100%; /*background-repeat: no-repeat;*/ } + /* foundation-compliant css to align the div vertically. found on */ + + .valign-...
22
1.375
19
3
f26c76e5f4f75f88124e7b09ad89afbe94e04b34
src/test/config/unittest/compress-streams.ini
src/test/config/unittest/compress-streams.ini
;; ; I/O Compression streams tests ; ; $Id$ [this] description="I/O Compression streams tests" [zlib.deflate] class="net.xp_framework.unittest.io.streams.DeflatingOutputStreamTest" [zlib.inflate] class="net.xp_framework.unittest.io.streams.InflatingInputStreamTest" [gz.compress] class="net.xp_framework.unittest.io....
;; ; I/O Compression streams tests ; ; $Id$ [this] description="I/O Compression streams tests" ; [zlib.deflate] ; class="net.xp_framework.unittest.io.streams.DeflatingOutputStreamTest" ; [zlib.inflate] ; class="net.xp_framework.unittest.io.streams.InflatingInputStreamTest" ; [gz.compress] ; class="net.xp_framework....
Comment out tests depending on (to-be-extracted) security package TODO: Extract these, too
Comment out tests depending on (to-be-extracted) security package TODO: Extract these, too
INI
bsd-3-clause
johannes85/core
ini
## Code Before: ;; ; I/O Compression streams tests ; ; $Id$ [this] description="I/O Compression streams tests" [zlib.deflate] class="net.xp_framework.unittest.io.streams.DeflatingOutputStreamTest" [zlib.inflate] class="net.xp_framework.unittest.io.streams.InflatingInputStreamTest" [gz.compress] class="net.xp_framew...
;; ; I/O Compression streams tests ; ; $Id$ [this] description="I/O Compression streams tests" - [zlib.deflate] + ; [zlib.deflate] ? ++ - class="net.xp_framework.unittest.io.streams.DeflatingOutputStreamTest" + ; class="net.xp_framework.unittest.io.streams.DeflatingOutputStreamTest" ? ++ - [zlib....
24
0.96
12
12
e941ee80cdf1f707e34b6c7db3c627b111eae514
src/App.css
src/App.css
.App { text-align: center; width: 100%; } ul { list-style-type: none; margin: 0; padding: 0; overflow: hidden; background-color: #333; height: 10%; list-style-type: none; margin: 0; padding: 0; } .navbar-left li { float: left; } .navbar-right li { float: right; } li a...
.App { width: 100%; } @keyframes App-logo-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .sidebar-wrapper { height: 100%; } .sidebar { float: left; width: 30%; height: 90vh; background: #eee } .household-main { float: left; width: 70%; height: 90vh; background: ...
Remove previous navbar styles to use semantic ui
Remove previous navbar styles to use semantic ui
CSS
mit
cernanb/personal-chef-react-app,cernanb/personal-chef-react-app
css
## Code Before: .App { text-align: center; width: 100%; } ul { list-style-type: none; margin: 0; padding: 0; overflow: hidden; background-color: #333; height: 10%; list-style-type: none; margin: 0; padding: 0; } .navbar-left li { float: left; } .navbar-right li { float...
.App { - text-align: center; width: 100%; - } - - ul { - list-style-type: none; - margin: 0; - padding: 0; - overflow: hidden; - background-color: #333; - height: 10%; - list-style-type: none; - margin: 0; - padding: 0; - } - - .navbar-left li { - float: left; - } - - ...
37
0.578125
0
37
b65ae291871f2a437693d2ed678c63694898beba
README.md
README.md
[![Slack Network](http://slack.ngofficeuifabric.com/badge.svg)](http://slack.ngofficeuifabric.com/) [![MIT license](https://img.shields.io/npm/l/express.svg)](https://github.com/ngOfficeUIFabric/ng-officeuifabric/blob/master/LICENSE) [![Build Status](https://travis-ci.org/ngOfficeUIFabric/ng-officeuifabric.svg?branch=...
[![Slack Network](http://slack.ngofficeuifabric.com/badge.svg)](http://slack.ngofficeuifabric.com/) [![MIT license](https://img.shields.io/npm/l/express.svg)](https://github.com/ngOfficeUIFabric/ng-officeuifabric/blob/master/LICENSE) [![Build Status](https://travis-ci.org/ngOfficeUIFabric/ng-officeuifabric.svg?branch=...
Add social buttons on repo home
Add social buttons on repo home
Markdown
mit
ngOfficeUIFabric/package-ngofficeuifabric
markdown
## Code Before: [![Slack Network](http://slack.ngofficeuifabric.com/badge.svg)](http://slack.ngofficeuifabric.com/) [![MIT license](https://img.shields.io/npm/l/express.svg)](https://github.com/ngOfficeUIFabric/ng-officeuifabric/blob/master/LICENSE) [![Build Status](https://travis-ci.org/ngOfficeUIFabric/ng-officeuifa...
[![Slack Network](http://slack.ngofficeuifabric.com/badge.svg)](http://slack.ngofficeuifabric.com/) [![MIT license](https://img.shields.io/npm/l/express.svg)](https://github.com/ngOfficeUIFabric/ng-officeuifabric/blob/master/LICENSE) [![Build Status](https://travis-ci.org/ngOfficeUIFabric/ng-officeuifabric.svg...
4
0.571429
4
0
f98b7e4f147b7bb709b938447da8b2814a90e942
requirements/common.txt
requirements/common.txt
Django==1.8.4 defusedxml==0.4.1 dj-database-url==0.3.0 dj-static==0.0.6 django-allauth==0.23.0 django-bootstrap-form==3.2 django-cors-headers==1.1.0 django-custom-user==0.5 django-filter==0.11.0 django-floppyforms==1.5.2 django-settings-context-processor==0.2 django-timezone-field==1.2 -e git://github.com/jessamynsmith...
Django==1.8.4 defusedxml==0.4.1 dj-database-url==0.3.0 dj-static==0.0.6 django-allauth==0.23.0 django-bootstrap-form==3.2 django-cors-headers==1.1.0 django-custom-user==0.5 django-filter==0.11.0 django-floppyforms==1.5.2 django-settings-context-processor==0.2 django-timezone-field==1.2 django-enumfield==1.2.1 djangores...
Switch to standard version of django-enumfield
Switch to standard version of django-enumfield
Text
mit
jessamynsmith/eggtimer-server,jessamynsmith/eggtimer-server,jessamynsmith/eggtimer-server,jessamynsmith/eggtimer-server
text
## Code Before: Django==1.8.4 defusedxml==0.4.1 dj-database-url==0.3.0 dj-static==0.0.6 django-allauth==0.23.0 django-bootstrap-form==3.2 django-cors-headers==1.1.0 django-custom-user==0.5 django-filter==0.11.0 django-floppyforms==1.5.2 django-settings-context-processor==0.2 django-timezone-field==1.2 -e git://github.c...
Django==1.8.4 defusedxml==0.4.1 dj-database-url==0.3.0 dj-static==0.0.6 django-allauth==0.23.0 django-bootstrap-form==3.2 django-cors-headers==1.1.0 django-custom-user==0.5 django-filter==0.11.0 django-floppyforms==1.5.2 django-settings-context-processor==0.2 django-timezone-field==1.2 - -e git:...
2
0.071429
1
1
ad88b1af48f631fe7238c073c6697f46f20175c9
app/views/questions/show.erb
app/views/questions/show.erb
<div> <h2><%= @question.title %></h2><br> by: <%= @question.user.username %><br> posted: <%= @question.created_at %><br> <div> <p> <%= @question.body %> </p><br> <a href="/questions/<%= @question.id %>/comments">Add a comment</a> </div> <br><br> <p><a href="/answers/new">Add an answer</a>...
<div> <h2><%= @question.title %></h2><br> by: <%= @question.user.username %><br> posted: <%= @question.created_at %><br> <div> <p> <%= @question.body %> </p><br> <a href="/questions/<%= @question.id %>/comments">Add a comment</a> </div> <br><br> <p><a href="/answers/new">Add an answer</a>...
Complete voting feature for answers
Complete voting feature for answers
HTML+ERB
mit
nyc-salamanders-2016/eatoverflow,nyc-salamanders-2016/eatoverflow,nyc-salamanders-2016/eatoverflow
html+erb
## Code Before: <div> <h2><%= @question.title %></h2><br> by: <%= @question.user.username %><br> posted: <%= @question.created_at %><br> <div> <p> <%= @question.body %> </p><br> <a href="/questions/<%= @question.id %>/comments">Add a comment</a> </div> <br><br> <p><a href="/answers/new">A...
<div> <h2><%= @question.title %></h2><br> by: <%= @question.user.username %><br> posted: <%= @question.created_at %><br> <div> <p> <%= @question.body %> </p><br> <a href="/questions/<%= @question.id %>/comments">Add a comment</a> </div> <br><br> <p><a href="/answer...
6
0.214286
6
0
37e4d0dfd92855c294972f32df64e664d88e3817
.travis.yml
.travis.yml
language: elixir elixir: - 1.5.0 otp_release: - 20 addons: postgresql: 9.5 cache: directories: - _build - deps services: - redis-server install: - mix local.hex --force - mix local.rebar --force - mix deps.get env: - MIX_ENV=test before_script: - bash .travis/postgre_setup.sh script: - mix...
language: elixir elixir: - 1.5.0 otp_release: - 19.0 addons: postgresql: 9.5 cache: directories: - _build - deps services: - redis-server install: - mix local.hex --force - mix local.rebar --force - mix deps.get env: - MIX_ENV=test before_script: - kerl list installations - bash .travis/po...
Add otp list command in before script for debugging
Add otp list command in before script for debugging
YAML
mit
indydevs/parma,indydevs/parma,indydevs/parma
yaml
## Code Before: language: elixir elixir: - 1.5.0 otp_release: - 20 addons: postgresql: 9.5 cache: directories: - _build - deps services: - redis-server install: - mix local.hex --force - mix local.rebar --force - mix deps.get env: - MIX_ENV=test before_script: - bash .travis/postgre_setup.sh...
language: elixir elixir: - 1.5.0 otp_release: - - 20 + - 19.0 addons: postgresql: 9.5 cache: directories: - _build - deps services: - redis-server install: - mix local.hex --force - mix local.rebar --force - mix deps.get env: - MIX_ENV=test before_script...
3
0.12
2
1
3162af31c5f5da30c7cd4d10aa4598e4d8d4e37f
README.md
README.md
Bitcoin Terminal is a Ruby application for monitoring real-time Bitcoin quotes on various exchanges. ![alt text](https://github.com/penberg/btct/raw/master/htdocs/Bitcoin_Terminal.png "Bitcoin Terminal") ## Features * Real-time quotes: * BTC-E * Bitstamp * CampBX * Mt.Gox * The Rock ## Prerequisites Ins...
Bitcoin Terminal is a Ruby application for monitoring real-time Bitcoin quotes on various exchanges. ![alt text](https://github.com/penberg/btct/raw/master/htdocs/Bitcoin_Terminal.png "Bitcoin Terminal") ## Features * Real-time quotes: * BTC-E * Bitstamp * CampBX * Mt.Gox * The Rock ## Installation Inst...
Update installation and usage instructions
Update installation and usage instructions Signed-off-by: Pekka Enberg <add4fcd06328a394f0ad91feda7ee057316dc5ed@iki.fi>
Markdown
mit
penberg/btct
markdown
## Code Before: Bitcoin Terminal is a Ruby application for monitoring real-time Bitcoin quotes on various exchanges. ![alt text](https://github.com/penberg/btct/raw/master/htdocs/Bitcoin_Terminal.png "Bitcoin Terminal") ## Features * Real-time quotes: * BTC-E * Bitstamp * CampBX * Mt.Gox * The Rock ## Pr...
Bitcoin Terminal is a Ruby application for monitoring real-time Bitcoin quotes on various exchanges. ![alt text](https://github.com/penberg/btct/raw/master/htdocs/Bitcoin_Terminal.png "Bitcoin Terminal") ## Features * Real-time quotes: * BTC-E * Bitstamp * CampBX * Mt.Gox * The...
8
0.222222
4
4
6c967a2be59086793dcbb14ad6f67a62152beae9
app/models/user.rb
app/models/user.rb
class User < ActiveRecord::Base has_many :students, order: :first_name # Include default devise modules. Others available are: # :confirmable, :lockable, :timeoutable and :omniauthable devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable, :omniauthable,...
class User < ActiveRecord::Base has_many :students, order: :first_name # Include default devise modules. Others available are: # :confirmable, :lockable, :timeoutable and :omniauthable devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable, :omniauthable,...
Add more logging to find_or_create_from_oauth
Add more logging to find_or_create_from_oauth
Ruby
mit
joelmahoney/discoverbps,joelmahoney/discoverbps,joelmahoney/discoverbps,joelmahoney/discoverbps,joelmahoney/discoverbps,joelmahoney/discoverbps,joelmahoney/discoverbps,joelmahoney/discoverbps
ruby
## Code Before: class User < ActiveRecord::Base has_many :students, order: :first_name # Include default devise modules. Others available are: # :confirmable, :lockable, :timeoutable and :omniauthable devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable...
class User < ActiveRecord::Base has_many :students, order: :first_name # Include default devise modules. Others available are: # :confirmable, :lockable, :timeoutable and :omniauthable devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable, ...
14
0.538462
9
5
1004cc88032e816116bd46f2eb66e4b89f3f766f
tests/test_web_caller.py
tests/test_web_caller.py
from unittest import TestCase from mock import NonCallableMock, patch from modules.web_caller import get_google, GOOGLE_URL class TestWebCaller(TestCase): """ Tests for the `web_caller` module. """ @patch('modules.web_caller.requests.get') def test_get_google(self, get): """ Call...
from unittest import TestCase from requests.exceptions import ConnectionError from mock import NonCallableMock, patch from modules.web_caller import get_google, GOOGLE_URL MOCK_GOOGLE_URL = 'http://not-going-to-work!!!' class TestWebCaller(TestCase): """ Tests for the `web_caller` module. """ @patc...
Add test examples to assert against exceptions
Add test examples to assert against exceptions
Python
mit
tkh/test-examples,tkh/test-examples
python
## Code Before: from unittest import TestCase from mock import NonCallableMock, patch from modules.web_caller import get_google, GOOGLE_URL class TestWebCaller(TestCase): """ Tests for the `web_caller` module. """ @patch('modules.web_caller.requests.get') def test_get_google(self, get): ...
from unittest import TestCase + from requests.exceptions import ConnectionError from mock import NonCallableMock, patch from modules.web_caller import get_google, GOOGLE_URL + + MOCK_GOOGLE_URL = 'http://not-going-to-work!!!' class TestWebCaller(TestCase): """ Tests for the `web_caller` mo...
31
0.885714
31
0
25a7ee9d070c668b6d47e620270f33837bb8086e
tasks/replace-vm/task.sh
tasks/replace-vm/task.sh
set -eu function getDiskSize() { if [[ "${VM_DISK_SIZE_GB}" == "" || "${VM_DISK_SIZE_GB}" == "null" ]]; then VM_DISK_SIZE_GB="$( cliaas-linux get-vm-disk-size -c cliaas-config/config.yml -i $VM_IDENTIFIER )" fi echo "${VM_DISK_SIZE_GB}" } diskSizeGB="$( getDiskSize )" echo "Setting disk size of vm ${VM_I...
set -eu function getDiskSize() { if [[ "${VM_DISK_SIZE_GB}" == "" || "${VM_DISK_SIZE_GB}" == "null" ]]; then VM_DISK_SIZE_GB="$( cliaas-linux get-vm-disk-size -c cliaas-config/config.yml -i $VM_IDENTIFIER )" fi echo "${VM_DISK_SIZE_GB}" } diskSizeGB="$( getDiskSize )" cliaas-linux replace-vm \ --config...
Remove echo statement for setting disk size
Remove echo statement for setting disk size
Shell
apache-2.0
sandyg1/pcf-pipelines,sandyg1/pcf-pipelines,rahulkj/pcf-pipelines,pivotal-cf/pcf-pipelines,rahulkj/pcf-pipelines,pivotal-cf/pcf-pipelines,pivotal-cf/pcf-pipelines,rahulkj/pcf-pipelines,sandyg1/pcf-pipelines,rahulkj/pcf-pipelines,sandyg1/pcf-pipelines,pivotal-cf/pcf-pipelines
shell
## Code Before: set -eu function getDiskSize() { if [[ "${VM_DISK_SIZE_GB}" == "" || "${VM_DISK_SIZE_GB}" == "null" ]]; then VM_DISK_SIZE_GB="$( cliaas-linux get-vm-disk-size -c cliaas-config/config.yml -i $VM_IDENTIFIER )" fi echo "${VM_DISK_SIZE_GB}" } diskSizeGB="$( getDiskSize )" echo "Setting disk s...
set -eu function getDiskSize() { if [[ "${VM_DISK_SIZE_GB}" == "" || "${VM_DISK_SIZE_GB}" == "null" ]]; then VM_DISK_SIZE_GB="$( cliaas-linux get-vm-disk-size -c cliaas-config/config.yml -i $VM_IDENTIFIER )" fi echo "${VM_DISK_SIZE_GB}" } diskSizeGB="$( getDiskSize )" - echo "Se...
2
0.105263
0
2
f1dba6dd7e9000a8196f3aaad3d115047a4b21a7
android/release-checklist.md
android/release-checklist.md
Tangram ES (Android) Release Checklist ====================================== Steps to build and release the Tangram ES (AAR) to Maven Central: ## 1. Remove `-SNAPSHOT` tag from the version name in `gradle.properties`. Commit and push to master. ``` GROUP=com.mapzen.tangram VERSION_NAME=1.0.0 ... ``` ## 2. Tag commi...
``` GROUP=com.mapzen.tangram VERSION_NAME=1.0.0 ``` ### 2. Tag commit with release version and push tag to GitHub. ``` $ git tag tangram-1.0.0 $ git push origin tangram-1.0.0 ``` ### 3. Update version name and restore `-SNAPSHOT` tag to prepare next development cycle. Commit and push to master. ``` GROUP=com.mapzen.t...
Revise doc and fix hyperlinks
Revise doc and fix hyperlinks
Markdown
mit
tangrams/tangram-es,quitejonny/tangram-es,tangrams/tangram-es,cleeus/tangram-es,cleeus/tangram-es,cleeus/tangram-es,cleeus/tangram-es,tangrams/tangram-es,quitejonny/tangram-es,tangrams/tangram-es,cleeus/tangram-es,quitejonny/tangram-es,cleeus/tangram-es,quitejonny/tangram-es,tangrams/tangram-es,tangrams/tangram-es,quit...
markdown
## Code Before: Tangram ES (Android) Release Checklist ====================================== Steps to build and release the Tangram ES (AAR) to Maven Central: ## 1. Remove `-SNAPSHOT` tag from the version name in `gradle.properties`. Commit and push to master. ``` GROUP=com.mapzen.tangram VERSION_NAME=1.0.0 ... ``` ...
- Tangram ES (Android) Release Checklist - ====================================== - - Steps to build and release the Tangram ES (AAR) to Maven Central: - - ## 1. Remove `-SNAPSHOT` tag from the version name in `gradle.properties`. Commit and push to master. ``` GROUP=com.mapzen.tangram VERSION_NAME=1.0.0 - ... ...
26
0.742857
9
17
6cc52a682a9f6dcf68958b0c6b0b1978dd89722a
app/assets/javascripts/controllers/teikei_controller.js
app/assets/javascripts/controllers/teikei_controller.js
Teikei.Controller = Backbone.Marionette.Controller.extend({ initialize: function(options){ }, index: function(){ alert("Hello from Marionette Beta Controller"); } });
Teikei.Controller = Backbone.Marionette.Controller.extend({ initialize: function(options){ }, index: function(){ } });
Remove debug alert from Marionette controller.
Remove debug alert from Marionette controller.
JavaScript
agpl-3.0
teikei/teikei,sjockers/teikei,sjockers/teikei,teikei/teikei,sjockers/teikei,teikei/teikei
javascript
## Code Before: Teikei.Controller = Backbone.Marionette.Controller.extend({ initialize: function(options){ }, index: function(){ alert("Hello from Marionette Beta Controller"); } }); ## Instruction: Remove debug alert from Marionette controller. ## Code After: Teikei.Controller = Backbone.Marionette.C...
Teikei.Controller = Backbone.Marionette.Controller.extend({ initialize: function(options){ }, index: function(){ - alert("Hello from Marionette Beta Controller"); } });
1
0.090909
0
1
bffc1c4e8277506b0142c777bceb0e3b0cf6825f
_includes/blog/blog_header.html
_includes/blog/blog_header.html
<!-- About: Header --> <header class="blog"> <div class="container"> <div class="intro-text"> <div class="intro-heading">Rapid River Blog</div> <div class="intro-lead-in">Sometimes we write about interesting, technical challenges.</div> <a href="#subscribe" class="page-scroll btn b...
<!-- About: Header --> <header class="blog"> <div class="container"> <div class="intro-text"> <div class="intro-heading">Rapid River Blog</div> <div class="intro-lead-in">We often come across interesting challenges on the job. We have documented some of them here on our blog.</div> ...
Make blog description text longer
Make blog description text longer
HTML
apache-2.0
RapidRiverSoftware/rapidriversoftware.github.io,RapidRiverSoftware/rapidriversoftware.github.io,RapidRiverSoftware/rapidriversoftware.github.io,RapidRiverSoftware/rapidriversoftware.github.io
html
## Code Before: <!-- About: Header --> <header class="blog"> <div class="container"> <div class="intro-text"> <div class="intro-heading">Rapid River Blog</div> <div class="intro-lead-in">Sometimes we write about interesting, technical challenges.</div> <a href="#subscribe" class="p...
<!-- About: Header --> <header class="blog"> <div class="container"> <div class="intro-text"> <div class="intro-heading">Rapid River Blog</div> - <div class="intro-lead-in">Sometimes we write about interesting, technical challenges.</div> + <div class="intro-lead-in">We o...
2
0.153846
1
1
1eb694e33b8e2bd89c359d5390a9e65b5f6ffde9
.travis.yml
.travis.yml
sudo: required language: bash services: - docker env: global: - ROOT=/opt/rootfs - JOBS=2 matrix: - TAG=wheezy-64 CMD=run_tests script: - .travis/docker_run.sh
sudo: required notifications: email: on_success: never on_failure: always language: bash services: - docker env: global: - ROOT=/opt/rootfs - JOBS=2 matrix: - TAG=wheezy-64 CMD=run_tests script: - .travis/docker_run.sh
Disable email notifications on success
Disable email notifications on success [ci skip]
YAML
lgpl-2.1
strahlex/machinekit,bobvanderlinden/machinekit,kinsamanka/machinekit,strahlex/machinekit,kinsamanka/machinekit,ArcEye/MK-Qt5,mhaberler/machinekit,araisrobo/machinekit,strahlex/machinekit,bobvanderlinden/machinekit,araisrobo/machinekit,bobvanderlinden/machinekit,ArcEye/MK-Qt5,ArcEye/MK-Qt5,araisrobo/machinekit,ArcEye/MK...
yaml
## Code Before: sudo: required language: bash services: - docker env: global: - ROOT=/opt/rootfs - JOBS=2 matrix: - TAG=wheezy-64 CMD=run_tests script: - .travis/docker_run.sh ## Instruction: Disable email notifications on success [ci skip] ## Code After: sudo: required notifications: email:...
sudo: required + + notifications: + email: + on_success: never + on_failure: always language: bash services: - docker env: global: - ROOT=/opt/rootfs - JOBS=2 matrix: - TAG=wheezy-64 CMD=run_tests script: - .travis/docker_run.sh +
6
0.375
6
0
204918caff2feeff82f10300364edd43b8e1f4ea
lib/versions.js
lib/versions.js
var semver = require('semver'); var versions = module.exports; /** Returns a number representation of the version number that can be compared with other such representations e.g. compareable('0.6.12') > compareable('0.6.10') */ versions.compareable = function compareable(ver) { var parts = ver.split('.'); return ...
var semver = require('semver'); var versions = module.exports; /** Returns a number representation of the version number that can be compared with other such representations e.g. compareable('0.6.12') > compareable('0.6.10') */ versions.compareable = function compareable(ver) { var parts = ver.split('.'); return ...
Write out version spec that's being used, to make version errors more intuitive.
Write out version spec that's being used, to make version errors more intuitive.
JavaScript
mit
marcelklehr/nodist,marcelklehr/nodist,marcelklehr/nodist,nullivex/nodist,nullivex/nodist,nullivex/nodist
javascript
## Code Before: var semver = require('semver'); var versions = module.exports; /** Returns a number representation of the version number that can be compared with other such representations e.g. compareable('0.6.12') > compareable('0.6.10') */ versions.compareable = function compareable(ver) { var parts = ver.split...
var semver = require('semver'); var versions = module.exports; /** Returns a number representation of the version number that can be compared with other such representations e.g. compareable('0.6.12') > compareable('0.6.10') */ versions.compareable = function compareable(ver) { var parts = ver.s...
2
0.064516
1
1
e33ac7d46e5bf06928a41300c7f09458414ebc2d
open-secret-santa-app/src/main/java/com/moac/android/opensecretsanta/util/NotifyUtils.java
open-secret-santa-app/src/main/java/com/moac/android/opensecretsanta/util/NotifyUtils.java
package com.moac.android.opensecretsanta.util; import com.moac.android.opensecretsanta.database.DatabaseManager; import com.moac.android.opensecretsanta.model.ContactMode; import com.moac.android.opensecretsanta.model.Member; import java.util.List; public class NotifyUtils { public static boolean containsSendab...
package com.moac.android.opensecretsanta.util; import com.moac.android.opensecretsanta.database.DatabaseManager; import com.moac.android.opensecretsanta.model.ContactMethod; import com.moac.android.opensecretsanta.model.Member; import java.util.List; public class NotifyUtils { public static boolean containsSend...
Add missing file from merge
Add missing file from merge
Java
apache-2.0
peter-tackage/open-secret-santa,peter-tackage/open-secret-santa
java
## Code Before: package com.moac.android.opensecretsanta.util; import com.moac.android.opensecretsanta.database.DatabaseManager; import com.moac.android.opensecretsanta.model.ContactMode; import com.moac.android.opensecretsanta.model.Member; import java.util.List; public class NotifyUtils { public static boolea...
package com.moac.android.opensecretsanta.util; import com.moac.android.opensecretsanta.database.DatabaseManager; - import com.moac.android.opensecretsanta.model.ContactMode; ? - + import com.moac.android.opensecretsanta.model.ContactMethod; ? ...
12
0.230769
6
6
f41574aa4ebac25619b0a978772224d7ab44eda1
layouts/partials/pagination.html
layouts/partials/pagination.html
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }} <nav class="paging"> {{ if .Paginator.HasPrev }} <div class="left"><a href="{{ .URL }}page/{{ .Paginator.Prev.PageNumber }}" rel="prev"><i class="fa fa-angle-left"></i></a></div> {{ end }} {{ if .Paginator.HasNext }} <div class="right"><a href="{{ .URL }}...
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }} <nav class="paging"> {{ if .Paginator.HasPrev }} <div class="left"><a href="{{ .Paginator.Prev.URL }}" rel="prev"><i class="fa fa-angle-left"></i></a></div> {{ end }} {{ if .Paginator.HasNext }} <div class="right"><a href="{{ .Paginator.Next.URL }}" rel="...
Fix next/prev page URLs when uglyURLs is true
Fix next/prev page URLs when uglyURLs is true Fixes #8.
HTML
mit
dim0627/hugo_theme_aglaus
html
## Code Before: {{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }} <nav class="paging"> {{ if .Paginator.HasPrev }} <div class="left"><a href="{{ .URL }}page/{{ .Paginator.Prev.PageNumber }}" rel="prev"><i class="fa fa-angle-left"></i></a></div> {{ end }} {{ if .Paginator.HasNext }} <div class="right"><a ...
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }} <nav class="paging"> {{ if .Paginator.HasPrev }} - <div class="left"><a href="{{ .URL }}page/{{ .Paginator.Prev.PageNumber }}" rel="prev"><i class="fa fa-angle-left"></i></a></div> ? --------------- ^^^^^^^^^^...
4
0.363636
2
2
d11acab0a029151e9d1e1b3d03bdaa5551cb8cba
livedoc-ui-webjar/src/components/doc/types/complex/TypeFieldRow.jsx
livedoc-ui-webjar/src/components/doc/types/complex/TypeFieldRow.jsx
// @flow import * as React from 'react'; import type { ApiObjectFieldDoc } from '../../../../model/livedoc'; import { TypeRef } from '../../typeref/TypeRef'; export type TypeFieldRowProps = { field: ApiObjectFieldDoc, } export const TypeFieldRow = (props: TypeFieldRowProps) => { const field: ApiObjectFieldDoc = p...
// @flow import * as React from 'react'; import type { ApiObjectFieldDoc } from '../../../../model/livedoc'; import { TypeRef } from '../../typeref/TypeRef'; export type TypeFieldRowProps = { field: ApiObjectFieldDoc, } export const TypeFieldRow = (props: TypeFieldRowProps) => { const field: ApiObjectFieldDoc = p...
Add display of the field property format when present
Add display of the field property format when present
JSX
mit
joffrey-bion/livedoc,joffrey-bion/livedoc,joffrey-bion/livedoc,joffrey-bion/livedoc,joffrey-bion/livedoc
jsx
## Code Before: // @flow import * as React from 'react'; import type { ApiObjectFieldDoc } from '../../../../model/livedoc'; import { TypeRef } from '../../typeref/TypeRef'; export type TypeFieldRowProps = { field: ApiObjectFieldDoc, } export const TypeFieldRow = (props: TypeFieldRowProps) => { const field: ApiOb...
// @flow import * as React from 'react'; import type { ApiObjectFieldDoc } from '../../../../model/livedoc'; import { TypeRef } from '../../typeref/TypeRef'; export type TypeFieldRowProps = { field: ApiObjectFieldDoc, } export const TypeFieldRow = (props: TypeFieldRowProps) => { const field:...
20
1.111111
18
2
5d68faadd90a5f9f00b5c5346c29ca3af327d112
resources/files/operating_system.rb
resources/files/operating_system.rb
require "ruby_installer/runtime" RubyInstaller::Runtime.enable_dll_search_paths Gem.pre_install do |gem_installer| RubyInstaller::Runtime.enable_msys_apps(for_gem_install: true) unless gem_installer.spec.extensions.empty? unless gem_installer.options && gem_installer.options[:ignore_dependencies] [['msys2_de...
require "ruby_installer/runtime" RubyInstaller::Runtime.enable_dll_search_paths Gem.pre_install do |gem_installer| RubyInstaller::Runtime.enable_msys_apps(for_gem_install: true) unless gem_installer.spec.extensions.empty? if !gem_installer.options || !gem_installer.options[:ignore_dependencies] || gem_installer....
Fix compatibility of MSYS2 dependency installer with bundler
Fix compatibility of MSYS2 dependency installer with bundler Bundler calls the `Gem.pre_install hook`, but always sets `:ignore_dependencies=>true` in the options. That's why `bundle install` didn't respect `msys2_mingw_dependencies` in gemspec metadata. There is no option in bundler to ignore dependencies, so that ...
Ruby
bsd-3-clause
oneclick/rubyinstaller2,oneclick/rubyinstaller2,oneclick/rubyinstaller2
ruby
## Code Before: require "ruby_installer/runtime" RubyInstaller::Runtime.enable_dll_search_paths Gem.pre_install do |gem_installer| RubyInstaller::Runtime.enable_msys_apps(for_gem_install: true) unless gem_installer.spec.extensions.empty? unless gem_installer.options && gem_installer.options[:ignore_dependencies]...
require "ruby_installer/runtime" RubyInstaller::Runtime.enable_dll_search_paths Gem.pre_install do |gem_installer| RubyInstaller::Runtime.enable_msys_apps(for_gem_install: true) unless gem_installer.spec.extensions.empty? - unless gem_installer.options && gem_installer.options[:ignore_dependencies]...
2
0.095238
1
1
a18e7fc124a112ed89396a7980fe580ca528bc83
lib/capistrano/twingly/tasks/servers_from_srv_record.rake
lib/capistrano/twingly/tasks/servers_from_srv_record.rake
require 'resolv' SRV_RECORDS = %w[ _rubyapps._tcp.live.lkp.primelabs.se _rubyapps._tcp.sth.twingly.network ] resolver = Resolv::DNS.new servers = SRV_RECORDS.map do |srv_record| resolver.getresources(srv_record, Resolv::DNS::Resource::IN::SRV) end.flatten.map(&:target).map(&:to_s) raise "Can't find any server...
require 'resolv' SRV_RECORDS = %w[ _rubyapps._tcp.sth.twingly.network ] resolver = Resolv::DNS.new servers = SRV_RECORDS.map do |srv_record| resolver.getresources(srv_record, Resolv::DNS::Resource::IN::SRV) end.flatten.map(&:target).map(&:to_s) raise "Can't find any servers, no records for #{SRV_RECORDS}" if se...
Remove SRV record for LKP datacenter
Remove SRV record for LKP datacenter
Ruby
mit
twingly/capistrano-twingly
ruby
## Code Before: require 'resolv' SRV_RECORDS = %w[ _rubyapps._tcp.live.lkp.primelabs.se _rubyapps._tcp.sth.twingly.network ] resolver = Resolv::DNS.new servers = SRV_RECORDS.map do |srv_record| resolver.getresources(srv_record, Resolv::DNS::Resource::IN::SRV) end.flatten.map(&:target).map(&:to_s) raise "Can't...
require 'resolv' SRV_RECORDS = %w[ - _rubyapps._tcp.live.lkp.primelabs.se _rubyapps._tcp.sth.twingly.network ] resolver = Resolv::DNS.new servers = SRV_RECORDS.map do |srv_record| resolver.getresources(srv_record, Resolv::DNS::Resource::IN::SRV) end.flatten.map(&:target).map(&:to_s) ...
1
0.043478
0
1
0420c83c052b91ee811d34de3db8bd159f292f77
lib/GlobalConfig.js
lib/GlobalConfig.js
/** * Created by unleet on 11/2/13. */
/** * A 12-factor friendly configuration manager. * Every setting the Turnpike framework keeps track of is given a default value here. * These values can be overridden in your project's config.json file, and can also * finally be overridden with environment variables. In all cases, a matching environment * variabl...
Add some basics to get the server going enough for further testing.
Add some basics to get the server going enough for further testing.
JavaScript
mit
jay-depot/turnpike,jay-depot/turnpike
javascript
## Code Before: /** * Created by unleet on 11/2/13. */ ## Instruction: Add some basics to get the server going enough for further testing. ## Code After: /** * A 12-factor friendly configuration manager. * Every setting the Turnpike framework keeps track of is given a default value here. * These values can be ov...
/** - * Created by unleet on 11/2/13. + * A 12-factor friendly configuration manager. + * Every setting the Turnpike framework keeps track of is given a default value here. + * These values can be overridden in your project's config.json file, and can also + * finally be overridden with environment variables. In...
23
7.666667
22
1
c55b3e935422b4f7c6cda96498fe6179a7bab487
README.md
README.md
Go library for accessing Mikrotik devices using the RouterOS API. Look in the examples directory to learn how to use this library: [run](examples/run/main.go), [listen](examples/listen/main.go). API documentation is available at [godoc.org](https://godoc.org/github.com/go-routeros/routeros). Page on the [Mikrotik Wi...
Go library for accessing Mikrotik devices using the RouterOS API. Look in the examples directory to learn how to use this library: [run](examples/run/main.go), [listen](examples/listen/main.go). [tab](examples/tab/main.go). API documentation is available at [godoc.org](https://godoc.org/github.com/go-routeros/router...
Add link to version 2 and "tab" example
Add link to version 2 and "tab" example
Markdown
mit
go-routeros/routeros
markdown
## Code Before: Go library for accessing Mikrotik devices using the RouterOS API. Look in the examples directory to learn how to use this library: [run](examples/run/main.go), [listen](examples/listen/main.go). API documentation is available at [godoc.org](https://godoc.org/github.com/go-routeros/routeros). Page on ...
Go library for accessing Mikrotik devices using the RouterOS API. Look in the examples directory to learn how to use this library: [run](examples/run/main.go), [listen](examples/listen/main.go). + [tab](examples/tab/main.go). API documentation is available at [godoc.org](https://godoc.org/github.com/...
2
0.166667
2
0