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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
763fac476b773d0801e0128168c3b16edb9295d2 | shrc/00_paths.sh | shrc/00_paths.sh | if [[ -z $TMUX ]]
then
PATH="$PATH:$HOME/bin"
PATH="$PATH:/usr/local/heroku/bin"
PATH="$PATH:/usr/local/bin:/usr/local/sbin"
PATH="$PATH:/opt/boxen/bin:/opt/boxen/homebrew/sbin:/opt/boxen/homebrew/bin"
PATH="$PATH:/usr/local/mysql/bin"
PATH="$PATH:/usr/local/git/bin"
PATH="$PATH:$HOME/.cargo/bin"
PATH="$PATH:$HOME/Library/Python/2.7/bin"
PATH="$PATH:$HOME/.local/bin"
PATH="$PATH:$HOME/perl5/bin";
PATH="$HOME/.yarn/bin:$PATH"
PATH="$HOME/.config/kubectx:$PATH"
# PATH=".git/safe/../../bin:$PATH"
# PATH=".git/safe/../../node_modules/.bin:$PATH"
export PATH
MANPATH="/usr/local/man:$MANPATH"
MANPATH="/usr/local/mysql/man:$MANPATH"
MANPATH="/usr/local/git/man:$MANPATH"
export MANPATH
export GOPATH="$HOME"
export NVM_DIR="$HOME/.nvm"
fi
| if [[ -z $TMUX ]]
then
PATH="$PATH:$HOME/bin"
PATH="$PATH:/usr/local/heroku/bin"
PATH="$PATH:/usr/local/bin:/usr/local/sbin"
PATH="$PATH:/opt/boxen/bin:/opt/boxen/homebrew/sbin:/opt/boxen/homebrew/bin"
PATH="$PATH:/usr/local/mysql/bin"
PATH="$PATH:/usr/local/git/bin"
PATH="$PATH:$HOME/.cargo/bin"
PATH="$PATH:$HOME/Library/Python/2.7/bin"
PATH="$PATH:$HOME/.local/bin"
PATH="$PATH:$HOME/perl5/bin";
PATH="$HOME/.yarn/bin:$PATH"
PATH="$HOME/.config/kubectx:$PATH"
PATH=".git/safe/../../bin:$PATH"
PATH=".git/safe/../../node_modules/.bin:$PATH"
PATH="$PATH:/usr/local/go/bin:$GOPATH/bin"
export PATH
MANPATH="/usr/local/man:$MANPATH"
MANPATH="/usr/local/mysql/man:$MANPATH"
MANPATH="/usr/local/git/man:$MANPATH"
export MANPATH
export GOPATH="$HOME"
export NVM_DIR="$HOME/.nvm"
fi
| Add GOPATH back into the mix | Add GOPATH back into the mix
| Shell | mit | faun/dotfiles,faun/dotfiles | shell | ## Code Before:
if [[ -z $TMUX ]]
then
PATH="$PATH:$HOME/bin"
PATH="$PATH:/usr/local/heroku/bin"
PATH="$PATH:/usr/local/bin:/usr/local/sbin"
PATH="$PATH:/opt/boxen/bin:/opt/boxen/homebrew/sbin:/opt/boxen/homebrew/bin"
PATH="$PATH:/usr/local/mysql/bin"
PATH="$PATH:/usr/local/git/bin"
PATH="$PATH:$HOME/.cargo/bin"
PATH="$PATH:$HOME/Library/Python/2.7/bin"
PATH="$PATH:$HOME/.local/bin"
PATH="$PATH:$HOME/perl5/bin";
PATH="$HOME/.yarn/bin:$PATH"
PATH="$HOME/.config/kubectx:$PATH"
# PATH=".git/safe/../../bin:$PATH"
# PATH=".git/safe/../../node_modules/.bin:$PATH"
export PATH
MANPATH="/usr/local/man:$MANPATH"
MANPATH="/usr/local/mysql/man:$MANPATH"
MANPATH="/usr/local/git/man:$MANPATH"
export MANPATH
export GOPATH="$HOME"
export NVM_DIR="$HOME/.nvm"
fi
## Instruction:
Add GOPATH back into the mix
## Code After:
if [[ -z $TMUX ]]
then
PATH="$PATH:$HOME/bin"
PATH="$PATH:/usr/local/heroku/bin"
PATH="$PATH:/usr/local/bin:/usr/local/sbin"
PATH="$PATH:/opt/boxen/bin:/opt/boxen/homebrew/sbin:/opt/boxen/homebrew/bin"
PATH="$PATH:/usr/local/mysql/bin"
PATH="$PATH:/usr/local/git/bin"
PATH="$PATH:$HOME/.cargo/bin"
PATH="$PATH:$HOME/Library/Python/2.7/bin"
PATH="$PATH:$HOME/.local/bin"
PATH="$PATH:$HOME/perl5/bin";
PATH="$HOME/.yarn/bin:$PATH"
PATH="$HOME/.config/kubectx:$PATH"
PATH=".git/safe/../../bin:$PATH"
PATH=".git/safe/../../node_modules/.bin:$PATH"
PATH="$PATH:/usr/local/go/bin:$GOPATH/bin"
export PATH
MANPATH="/usr/local/man:$MANPATH"
MANPATH="/usr/local/mysql/man:$MANPATH"
MANPATH="/usr/local/git/man:$MANPATH"
export MANPATH
export GOPATH="$HOME"
export NVM_DIR="$HOME/.nvm"
fi
| if [[ -z $TMUX ]]
then
PATH="$PATH:$HOME/bin"
PATH="$PATH:/usr/local/heroku/bin"
PATH="$PATH:/usr/local/bin:/usr/local/sbin"
PATH="$PATH:/opt/boxen/bin:/opt/boxen/homebrew/sbin:/opt/boxen/homebrew/bin"
PATH="$PATH:/usr/local/mysql/bin"
PATH="$PATH:/usr/local/git/bin"
PATH="$PATH:$HOME/.cargo/bin"
PATH="$PATH:$HOME/Library/Python/2.7/bin"
PATH="$PATH:$HOME/.local/bin"
PATH="$PATH:$HOME/perl5/bin";
PATH="$HOME/.yarn/bin:$PATH"
PATH="$HOME/.config/kubectx:$PATH"
- # PATH=".git/safe/../../bin:$PATH"
? --
+ PATH=".git/safe/../../bin:$PATH"
- # PATH=".git/safe/../../node_modules/.bin:$PATH"
? --
+ PATH=".git/safe/../../node_modules/.bin:$PATH"
+ PATH="$PATH:/usr/local/go/bin:$GOPATH/bin"
export PATH
MANPATH="/usr/local/man:$MANPATH"
MANPATH="/usr/local/mysql/man:$MANPATH"
MANPATH="/usr/local/git/man:$MANPATH"
export MANPATH
export GOPATH="$HOME"
export NVM_DIR="$HOME/.nvm"
fi | 5 | 0.192308 | 3 | 2 |
7c09368b3322144c9cb2b0e18f0b4264acb88eb7 | blaze/__init__.py | blaze/__init__.py |
from constructors import array, open
from datashape import dshape
|
from constructors import array, open
from datashape import dshape
def test(verbosity=1, xunitfile=None, exit=False):
"""
Runs the full Blaze test suite, outputting
the results of the tests to sys.stdout.
This uses nose tests to discover which tests to
run, and runs tests in any 'tests' subdirectory
within the Blaze module.
Parameters
----------
Value 0 prints very little, 1 prints a little bit,
and 2 prints the test names while testing.
xunitfile : string, optional
If provided, writes the test results to an xunit
style xml file. This is useful for running the tests
in a CI server such as Jenkins.
exit : bool, optional
If True, the function will call sys.exit with an
error code after the tests are finished.
"""
import nose
import os
argv = ['nosetests', '--verbosity=%d' % verbosity]
# Output an xunit file if requested
if xunitfile:
argv.extend(['--with-xunit', '--xunit-file=%s' % xunitfile])
# Add all 'tests' subdirectories to the options
rootdir = os.path.dirname(__file__)
for root, dirs, files in os.walk(rootdir):
if 'tests' in dirs:
testsdir = os.path.join(root, 'tests')
argv.append(testsdir)
print('Test dir: %s' % testsdir[len(rootdir)+1:])
# Ask nose to do its thing
return nose.main(argv=argv,
exit=exit)
| Add a nose-based blaze.test() function as a placeholder | Add a nose-based blaze.test() function as a placeholder
Hopefully we find something better, but this at least gives
us behavior similar to NumPy as a start.
| Python | bsd-3-clause | AbhiAgarwal/blaze,dwillmer/blaze,mrocklin/blaze,jdmcbr/blaze,mwiebe/blaze,mwiebe/blaze,ChinaQuants/blaze,xlhtc007/blaze,markflorisson/blaze-core,ContinuumIO/blaze,dwillmer/blaze,cpcloud/blaze,FrancescAlted/blaze,cowlicks/blaze,maxalbert/blaze,caseyclements/blaze,aterrel/blaze,cowlicks/blaze,ChinaQuants/blaze,FrancescAlted/blaze,FrancescAlted/blaze,ContinuumIO/blaze,jcrist/blaze,AbhiAgarwal/blaze,alexmojaki/blaze,jcrist/blaze,maxalbert/blaze,scls19fr/blaze,jdmcbr/blaze,markflorisson/blaze-core,AbhiAgarwal/blaze,markflorisson/blaze-core,nkhuyu/blaze,aterrel/blaze,cpcloud/blaze,nkhuyu/blaze,mrocklin/blaze,LiaoPan/blaze,AbhiAgarwal/blaze,LiaoPan/blaze,mwiebe/blaze,FrancescAlted/blaze,markflorisson/blaze-core,scls19fr/blaze,alexmojaki/blaze,caseyclements/blaze,xlhtc007/blaze,mwiebe/blaze,aterrel/blaze | python | ## Code Before:
from constructors import array, open
from datashape import dshape
## Instruction:
Add a nose-based blaze.test() function as a placeholder
Hopefully we find something better, but this at least gives
us behavior similar to NumPy as a start.
## Code After:
from constructors import array, open
from datashape import dshape
def test(verbosity=1, xunitfile=None, exit=False):
"""
Runs the full Blaze test suite, outputting
the results of the tests to sys.stdout.
This uses nose tests to discover which tests to
run, and runs tests in any 'tests' subdirectory
within the Blaze module.
Parameters
----------
Value 0 prints very little, 1 prints a little bit,
and 2 prints the test names while testing.
xunitfile : string, optional
If provided, writes the test results to an xunit
style xml file. This is useful for running the tests
in a CI server such as Jenkins.
exit : bool, optional
If True, the function will call sys.exit with an
error code after the tests are finished.
"""
import nose
import os
argv = ['nosetests', '--verbosity=%d' % verbosity]
# Output an xunit file if requested
if xunitfile:
argv.extend(['--with-xunit', '--xunit-file=%s' % xunitfile])
# Add all 'tests' subdirectories to the options
rootdir = os.path.dirname(__file__)
for root, dirs, files in os.walk(rootdir):
if 'tests' in dirs:
testsdir = os.path.join(root, 'tests')
argv.append(testsdir)
print('Test dir: %s' % testsdir[len(rootdir)+1:])
# Ask nose to do its thing
return nose.main(argv=argv,
exit=exit)
|
from constructors import array, open
from datashape import dshape
+
+ def test(verbosity=1, xunitfile=None, exit=False):
+ """
+ Runs the full Blaze test suite, outputting
+ the results of the tests to sys.stdout.
+
+ This uses nose tests to discover which tests to
+ run, and runs tests in any 'tests' subdirectory
+ within the Blaze module.
+
+ Parameters
+ ----------
+ Value 0 prints very little, 1 prints a little bit,
+ and 2 prints the test names while testing.
+ xunitfile : string, optional
+ If provided, writes the test results to an xunit
+ style xml file. This is useful for running the tests
+ in a CI server such as Jenkins.
+ exit : bool, optional
+ If True, the function will call sys.exit with an
+ error code after the tests are finished.
+ """
+ import nose
+ import os
+ argv = ['nosetests', '--verbosity=%d' % verbosity]
+ # Output an xunit file if requested
+ if xunitfile:
+ argv.extend(['--with-xunit', '--xunit-file=%s' % xunitfile])
+ # Add all 'tests' subdirectories to the options
+ rootdir = os.path.dirname(__file__)
+ for root, dirs, files in os.walk(rootdir):
+ if 'tests' in dirs:
+ testsdir = os.path.join(root, 'tests')
+ argv.append(testsdir)
+ print('Test dir: %s' % testsdir[len(rootdir)+1:])
+ # Ask nose to do its thing
+ return nose.main(argv=argv,
+ exit=exit) | 38 | 12.666667 | 38 | 0 |
26ba9c57740932c113d57181d5b27b3514d1091f | entity/item/ArmorPadded.json | entity/item/ArmorPadded.json | {
"family": "Armor",
"kind": "Padded",
"variation": 1,
"components": {
"GraphicsComponent": {
"TileSet": "item",
"TileCoords": {
"item": {2, 2},
},
},
"CombatComponent": {
"Defense": 1,
},
}
}
| {
"family": "Armor",
"kind": "Padded",
"variation": 1,
"components": {
"GraphicsComponent": {
"TileSet": "item",
"TileCoords": {
"item": {2, 2},
},
},
"CombatComponent": {
"Defense": 1,
},
"HealthComponent": {
"MaxHealth": 2,
},
}
}
| Revert "remove health bonus from padded armor" | Revert "remove health bonus from padded armor"
This reverts commit 051eb8e07ef0b7115920e29ad4d6af5a48ee72ca.
| JSON | mit | scottcs/wyx | json | ## Code Before:
{
"family": "Armor",
"kind": "Padded",
"variation": 1,
"components": {
"GraphicsComponent": {
"TileSet": "item",
"TileCoords": {
"item": {2, 2},
},
},
"CombatComponent": {
"Defense": 1,
},
}
}
## Instruction:
Revert "remove health bonus from padded armor"
This reverts commit 051eb8e07ef0b7115920e29ad4d6af5a48ee72ca.
## Code After:
{
"family": "Armor",
"kind": "Padded",
"variation": 1,
"components": {
"GraphicsComponent": {
"TileSet": "item",
"TileCoords": {
"item": {2, 2},
},
},
"CombatComponent": {
"Defense": 1,
},
"HealthComponent": {
"MaxHealth": 2,
},
}
}
| {
"family": "Armor",
"kind": "Padded",
"variation": 1,
"components": {
"GraphicsComponent": {
"TileSet": "item",
"TileCoords": {
"item": {2, 2},
},
},
"CombatComponent": {
"Defense": 1,
},
+ "HealthComponent": {
+ "MaxHealth": 2,
+ },
}
} | 3 | 0.1875 | 3 | 0 |
a580bff4a4cbee702ec965cbd527706e6bbdb93c | sass/placeiq-style-guide.scss | sass/placeiq-style-guide.scss | //PlaceIQ style guide colors
$piq-purple: #6769B0;
$piq-gray: #565656;
$piq-red: #EE3D55;
$piq-aqua-dark: #47A5BC;
$piq-aqua: #3FC4E0;
$piq-gold: #FDC364;
$piq-gold-light: #F0D399;
| //PlaceIQ style guide colors
$piq-white: #FFFFFF;
$piq-purple: #6756A5;
$piq-gray: #E4E5E6;
$piq-gray-dark: #545456;
$piq-red: #EF435E;
$piq-teal: #00BDCD;
$piq-gold: #FDB740;
| Update PlaceIQ colors from new style guide | Update PlaceIQ colors from new style guide
| SCSS | mit | chadwilcomb/color-sets | scss | ## Code Before:
//PlaceIQ style guide colors
$piq-purple: #6769B0;
$piq-gray: #565656;
$piq-red: #EE3D55;
$piq-aqua-dark: #47A5BC;
$piq-aqua: #3FC4E0;
$piq-gold: #FDC364;
$piq-gold-light: #F0D399;
## Instruction:
Update PlaceIQ colors from new style guide
## Code After:
//PlaceIQ style guide colors
$piq-white: #FFFFFF;
$piq-purple: #6756A5;
$piq-gray: #E4E5E6;
$piq-gray-dark: #545456;
$piq-red: #EF435E;
$piq-teal: #00BDCD;
$piq-gold: #FDB740;
| //PlaceIQ style guide colors
+ $piq-white: #FFFFFF;
- $piq-purple: #6769B0;
? ^^^
+ $piq-purple: #6756A5;
? + ^^
+ $piq-gray: #E4E5E6;
- $piq-gray: #565656;
? ^ ^
+ $piq-gray-dark: #545456;
? +++++ ^ ^
- $piq-red: #EE3D55;
? ----
+ $piq-red: #EF435E;
? ++++
+ $piq-teal: #00BDCD;
- $piq-aqua-dark: #47A5BC;
- $piq-aqua: #3FC4E0;
- $piq-gold: #FDC364;
? ^^^
+ $piq-gold: #FDB740;
? ^^ +
- $piq-gold-light: #F0D399; | 14 | 1.75 | 7 | 7 |
40e46880557d770952e6081978dac7413dd2cc37 | server/public/javascripts/frontpage.js | server/public/javascripts/frontpage.js | //
// Copyright 2014 Ilkka Oksanen <iao@iki.fi>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an "AS
// IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
// express or implied. See the License for the specific language
// governing permissions and limitations under the License.
//
'use strict';
$(function() {
$('input[name="username"]').focus();
$('#login-form').submit(function() {
$('.login-error').empty();
$.post('/login',
$('#login-form').serialize(),
function(data) {
if (data.success === true) {
$.cookie('ProjectEvergreen', data.userId + '-' + data.secret + '-n', {
path: '/',
expires: new Date(data.expires)
});
window.location.pathname = '/app/';
} else {
$('.login-error').text(data.msg);
}
});
return false;
});
});
| //
// Copyright 2014 Ilkka Oksanen <iao@iki.fi>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an "AS
// IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
// express or implied. See the License for the specific language
// governing permissions and limitations under the License.
//
'use strict';
$(function() {
$('input[name="username"]').focus();
$('#login-form').submit(function() {
$('.login-error').empty();
$('input').keypress(function() {
$('.login-error').empty();
});
$.post('/login',
$('#login-form').serialize(),
function(data) {
if (data.success === true) {
$.cookie('ProjectEvergreen', data.userId + '-' + data.secret + '-n', {
path: '/',
expires: new Date(data.expires)
});
window.location.pathname = '/app/';
} else {
$('.login-error').text(data.msg);
$('input[name="username"]').val('').focus();
$('input[name="password"]').val('');
}
});
return false;
});
});
| Improve login page when wrong password is entered | Improve login page when wrong password is entered
| JavaScript | apache-2.0 | ilkkao/mas,ilkkao/mas,ilkkao/mas,ilkkao/mas | javascript | ## Code Before:
//
// Copyright 2014 Ilkka Oksanen <iao@iki.fi>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an "AS
// IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
// express or implied. See the License for the specific language
// governing permissions and limitations under the License.
//
'use strict';
$(function() {
$('input[name="username"]').focus();
$('#login-form').submit(function() {
$('.login-error').empty();
$.post('/login',
$('#login-form').serialize(),
function(data) {
if (data.success === true) {
$.cookie('ProjectEvergreen', data.userId + '-' + data.secret + '-n', {
path: '/',
expires: new Date(data.expires)
});
window.location.pathname = '/app/';
} else {
$('.login-error').text(data.msg);
}
});
return false;
});
});
## Instruction:
Improve login page when wrong password is entered
## Code After:
//
// Copyright 2014 Ilkka Oksanen <iao@iki.fi>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an "AS
// IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
// express or implied. See the License for the specific language
// governing permissions and limitations under the License.
//
'use strict';
$(function() {
$('input[name="username"]').focus();
$('#login-form').submit(function() {
$('.login-error').empty();
$('input').keypress(function() {
$('.login-error').empty();
});
$.post('/login',
$('#login-form').serialize(),
function(data) {
if (data.success === true) {
$.cookie('ProjectEvergreen', data.userId + '-' + data.secret + '-n', {
path: '/',
expires: new Date(data.expires)
});
window.location.pathname = '/app/';
} else {
$('.login-error').text(data.msg);
$('input[name="username"]').val('').focus();
$('input[name="password"]').val('');
}
});
return false;
});
});
| //
// Copyright 2014 Ilkka Oksanen <iao@iki.fi>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an "AS
// IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
// express or implied. See the License for the specific language
// governing permissions and limitations under the License.
//
'use strict';
$(function() {
$('input[name="username"]').focus();
$('#login-form').submit(function() {
$('.login-error').empty();
+ $('input').keypress(function() {
+ $('.login-error').empty();
+ });
+
$.post('/login',
$('#login-form').serialize(),
function(data) {
if (data.success === true) {
$.cookie('ProjectEvergreen', data.userId + '-' + data.secret + '-n', {
path: '/',
expires: new Date(data.expires)
});
window.location.pathname = '/app/';
} else {
$('.login-error').text(data.msg);
+ $('input[name="username"]').val('').focus();
+ $('input[name="password"]').val('');
}
});
return false;
});
}); | 6 | 0.142857 | 6 | 0 |
9d18f318ac79b2a66b33fa4ba4f0745842d337e8 | app/webpacker/css/admin/all.scss | app/webpacker/css/admin/all.scss | /*
* This is a manifest file that'll automatically include all the stylesheets available in this directory
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
* the top of the compiled file, but it's generally better to create a new file per style scope.
*
*= require normalize
*= require responsive-tables
*= require jquery.powertip
*= require jquery.ui.dialog
*= require shared/textAngular
*= require shared/ng-tags-input.min
*= require select2
*= require flatpickr/dist/flatpickr
*= require flatpickr/dist/themes/material_blue
*= require shortcut-buttons-flatpickr/dist/themes/light
*= require_self
*/
//************************************************************************//
//************************************************************************//
@import 'globals/functions';
@import 'globals/variables';
@import 'variables';
@import 'globals/mixins';
@import 'shared/typography';
@import 'shared/tables';
@import 'shared/icons';
@import 'shared/forms';
@import 'shared/layout';
@import 'plugins/flatpickr-customization';
@import 'plugins/powertip';
@import 'plugins/jstree';
@import 'plugins/font-awesome';
@import 'plugins/select2';
@import 'sections/orders';
@import 'sections/products';
@import 'hacks/mozilla';
@import 'hacks/opera';
@import 'hacks/ie';
@import 'components/*';
@import 'pages/*';
@import '*';
@import "../shared/question-mark-icon";
@import "question-mark-tooltip";
| @import 'vendor/assets/stylesheets/normalize';
@import 'vendor/assets/stylesheets/responsive-tables';
@import 'vendor/assets/stylesheets/jquery.powertip';
@import 'jquery.ui.dialog';
@import '../shared/textAngular';
@import '../shared/ng-tags-input.min';
@import 'select2';
@import '~flatpickr/dist/flatpickr';
@import '~flatpickr/dist/themes/material_blue';
@import '~shortcut-buttons-flatpickr/dist/themes/light';
@import 'globals/functions';
@import 'globals/variables';
@import 'variables';
@import 'globals/mixins';
@import 'shared/typography';
@import 'shared/tables';
@import 'shared/icons';
@import 'shared/forms';
@import 'shared/layout';
@import 'plugins/flatpickr-customization';
@import 'plugins/powertip';
@import 'plugins/jstree';
@import 'plugins/font-awesome';
@import 'plugins/select2';
@import 'sections/orders';
@import 'sections/products';
@import 'hacks/mozilla';
@import 'hacks/opera';
@import 'hacks/ie';
@import 'components/*';
@import 'pages/*';
@import '*';
@import "../shared/question-mark-icon";
@import "question-mark-tooltip";
| Remove Sprockets includes in admin scss | Remove Sprockets includes in admin scss
| SCSS | agpl-3.0 | mkllnk/openfoodnetwork,Matt-Yorkley/openfoodnetwork,mkllnk/openfoodnetwork,lin-d-hop/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,Matt-Yorkley/openfoodnetwork,openfoodfoundation/openfoodnetwork,Matt-Yorkley/openfoodnetwork,openfoodfoundation/openfoodnetwork,Matt-Yorkley/openfoodnetwork,lin-d-hop/openfoodnetwork,lin-d-hop/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,mkllnk/openfoodnetwork | scss | ## Code Before:
/*
* This is a manifest file that'll automatically include all the stylesheets available in this directory
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
* the top of the compiled file, but it's generally better to create a new file per style scope.
*
*= require normalize
*= require responsive-tables
*= require jquery.powertip
*= require jquery.ui.dialog
*= require shared/textAngular
*= require shared/ng-tags-input.min
*= require select2
*= require flatpickr/dist/flatpickr
*= require flatpickr/dist/themes/material_blue
*= require shortcut-buttons-flatpickr/dist/themes/light
*= require_self
*/
//************************************************************************//
//************************************************************************//
@import 'globals/functions';
@import 'globals/variables';
@import 'variables';
@import 'globals/mixins';
@import 'shared/typography';
@import 'shared/tables';
@import 'shared/icons';
@import 'shared/forms';
@import 'shared/layout';
@import 'plugins/flatpickr-customization';
@import 'plugins/powertip';
@import 'plugins/jstree';
@import 'plugins/font-awesome';
@import 'plugins/select2';
@import 'sections/orders';
@import 'sections/products';
@import 'hacks/mozilla';
@import 'hacks/opera';
@import 'hacks/ie';
@import 'components/*';
@import 'pages/*';
@import '*';
@import "../shared/question-mark-icon";
@import "question-mark-tooltip";
## Instruction:
Remove Sprockets includes in admin scss
## Code After:
@import 'vendor/assets/stylesheets/normalize';
@import 'vendor/assets/stylesheets/responsive-tables';
@import 'vendor/assets/stylesheets/jquery.powertip';
@import 'jquery.ui.dialog';
@import '../shared/textAngular';
@import '../shared/ng-tags-input.min';
@import 'select2';
@import '~flatpickr/dist/flatpickr';
@import '~flatpickr/dist/themes/material_blue';
@import '~shortcut-buttons-flatpickr/dist/themes/light';
@import 'globals/functions';
@import 'globals/variables';
@import 'variables';
@import 'globals/mixins';
@import 'shared/typography';
@import 'shared/tables';
@import 'shared/icons';
@import 'shared/forms';
@import 'shared/layout';
@import 'plugins/flatpickr-customization';
@import 'plugins/powertip';
@import 'plugins/jstree';
@import 'plugins/font-awesome';
@import 'plugins/select2';
@import 'sections/orders';
@import 'sections/products';
@import 'hacks/mozilla';
@import 'hacks/opera';
@import 'hacks/ie';
@import 'components/*';
@import 'pages/*';
@import '*';
@import "../shared/question-mark-icon";
@import "question-mark-tooltip";
| - /*
- * This is a manifest file that'll automatically include all the stylesheets available in this directory
- * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
- * the top of the compiled file, but it's generally better to create a new file per style scope.
- *
+ @import 'vendor/assets/stylesheets/normalize';
+ @import 'vendor/assets/stylesheets/responsive-tables';
+ @import 'vendor/assets/stylesheets/jquery.powertip';
+ @import 'jquery.ui.dialog';
+ @import '../shared/textAngular';
+ @import '../shared/ng-tags-input.min';
+ @import 'select2';
+ @import '~flatpickr/dist/flatpickr';
+ @import '~flatpickr/dist/themes/material_blue';
+ @import '~shortcut-buttons-flatpickr/dist/themes/light';
- *= require normalize
- *= require responsive-tables
- *= require jquery.powertip
- *= require jquery.ui.dialog
- *= require shared/textAngular
- *= require shared/ng-tags-input.min
- *= require select2
- *= require flatpickr/dist/flatpickr
- *= require flatpickr/dist/themes/material_blue
- *= require shortcut-buttons-flatpickr/dist/themes/light
-
- *= require_self
- */
-
- //************************************************************************//
- //************************************************************************//
@import 'globals/functions';
@import 'globals/variables';
@import 'variables';
@import 'globals/mixins';
@import 'shared/typography';
@import 'shared/tables';
@import 'shared/icons';
@import 'shared/forms';
@import 'shared/layout';
@import 'plugins/flatpickr-customization';
@import 'plugins/powertip';
@import 'plugins/jstree';
@import 'plugins/font-awesome';
@import 'plugins/select2';
@import 'sections/orders';
@import 'sections/products';
@import 'hacks/mozilla';
@import 'hacks/opera';
@import 'hacks/ie';
@import 'components/*';
@import 'pages/*';
@import '*';
@import "../shared/question-mark-icon";
@import "question-mark-tooltip"; | 31 | 0.584906 | 10 | 21 |
4d410dec85fc944717a6537e9eef2585a53159b6 | python_logging_rabbitmq/formatters.py | python_logging_rabbitmq/formatters.py | import logging
from socket import gethostname
from .compat import json, text_type
class JSONFormatter(logging.Formatter):
"""
Formatter to convert LogRecord into JSON.
Thanks to: https://github.com/lobziik/rlog
"""
def __init__(self, *args, **kwargs):
include = kwargs.pop('include', None)
exclude = kwargs.pop('exclude', None)
super().__init__(*args, **kwargs)
self.include = include
self.exclude = exclude
def format(self, record):
data = record.__dict__.copy()
if record.args:
msg = record.msg % record.args
else:
msg = record.msg
data.update(
host=gethostname(),
msg=msg,
args=tuple(text_type(arg) for arg in record.args)
)
if 'exc_info' in data and data['exc_info']:
data['exc_info'] = self.formatException(data['exc_info'])
if self.include:
data = {f: data[f] for f in self.include}
elif self.exclude:
for f in self.exclude:
del data[f]
return json.dumps(data)
| import logging
from socket import gethostname
from django.core.serializers.json import DjangoJSONEncoder
from .compat import json, text_type
class JSONFormatter(logging.Formatter):
"""
Formatter to convert LogRecord into JSON.
Thanks to: https://github.com/lobziik/rlog
"""
def __init__(self, *args, **kwargs):
include = kwargs.pop('include', None)
exclude = kwargs.pop('exclude', None)
super().__init__(*args, **kwargs)
self.include = include
self.exclude = exclude
def format(self, record):
data = record.__dict__.copy()
if record.args:
msg = record.msg % record.args
else:
msg = record.msg
data.update(
host=gethostname(),
msg=msg,
args=tuple(text_type(arg) for arg in record.args)
)
if 'exc_info' in data and data['exc_info']:
data['exc_info'] = self.formatException(data['exc_info'])
if self.include:
data = {f: data[f] for f in self.include}
elif self.exclude:
for f in self.exclude:
if f in data:
del data[f]
return json.dumps(data, cls=DjangoJSONEncoder)
| Use DjangoJSONEncoder for JSON serialization | Use DjangoJSONEncoder for JSON serialization
| Python | mit | albertomr86/python-logging-rabbitmq | python | ## Code Before:
import logging
from socket import gethostname
from .compat import json, text_type
class JSONFormatter(logging.Formatter):
"""
Formatter to convert LogRecord into JSON.
Thanks to: https://github.com/lobziik/rlog
"""
def __init__(self, *args, **kwargs):
include = kwargs.pop('include', None)
exclude = kwargs.pop('exclude', None)
super().__init__(*args, **kwargs)
self.include = include
self.exclude = exclude
def format(self, record):
data = record.__dict__.copy()
if record.args:
msg = record.msg % record.args
else:
msg = record.msg
data.update(
host=gethostname(),
msg=msg,
args=tuple(text_type(arg) for arg in record.args)
)
if 'exc_info' in data and data['exc_info']:
data['exc_info'] = self.formatException(data['exc_info'])
if self.include:
data = {f: data[f] for f in self.include}
elif self.exclude:
for f in self.exclude:
del data[f]
return json.dumps(data)
## Instruction:
Use DjangoJSONEncoder for JSON serialization
## Code After:
import logging
from socket import gethostname
from django.core.serializers.json import DjangoJSONEncoder
from .compat import json, text_type
class JSONFormatter(logging.Formatter):
"""
Formatter to convert LogRecord into JSON.
Thanks to: https://github.com/lobziik/rlog
"""
def __init__(self, *args, **kwargs):
include = kwargs.pop('include', None)
exclude = kwargs.pop('exclude', None)
super().__init__(*args, **kwargs)
self.include = include
self.exclude = exclude
def format(self, record):
data = record.__dict__.copy()
if record.args:
msg = record.msg % record.args
else:
msg = record.msg
data.update(
host=gethostname(),
msg=msg,
args=tuple(text_type(arg) for arg in record.args)
)
if 'exc_info' in data and data['exc_info']:
data['exc_info'] = self.formatException(data['exc_info'])
if self.include:
data = {f: data[f] for f in self.include}
elif self.exclude:
for f in self.exclude:
if f in data:
del data[f]
return json.dumps(data, cls=DjangoJSONEncoder)
| import logging
from socket import gethostname
+ from django.core.serializers.json import DjangoJSONEncoder
from .compat import json, text_type
class JSONFormatter(logging.Formatter):
"""
Formatter to convert LogRecord into JSON.
Thanks to: https://github.com/lobziik/rlog
"""
def __init__(self, *args, **kwargs):
include = kwargs.pop('include', None)
exclude = kwargs.pop('exclude', None)
super().__init__(*args, **kwargs)
self.include = include
self.exclude = exclude
def format(self, record):
data = record.__dict__.copy()
if record.args:
msg = record.msg % record.args
else:
msg = record.msg
data.update(
host=gethostname(),
msg=msg,
args=tuple(text_type(arg) for arg in record.args)
)
if 'exc_info' in data and data['exc_info']:
data['exc_info'] = self.formatException(data['exc_info'])
if self.include:
data = {f: data[f] for f in self.include}
elif self.exclude:
for f in self.exclude:
+ if f in data:
- del data[f]
+ del data[f]
? +++++
- return json.dumps(data)
+ return json.dumps(data, cls=DjangoJSONEncoder) | 6 | 0.142857 | 4 | 2 |
ba3009d1d19243c703743070df68ad1ea11d454e | addons/hr_contract/__terp__.py | addons/hr_contract/__terp__.py | {
"name" : "Human Resources Contracts",
"version" : "1.0",
"author" : "Tiny",
"category" : "Generic Modules/Human Resources",
"website" : "http://tinyerp.com/module_hr.html",
"depends" : ["hr"],
"module": "",
"description": """
Add all information on the employee form to manage contracts:
* Martial status,
* Security number,
* Place of birth, birth date, ...
You can assign several contracts per employee.
""",
"init_xml" : ["hr_contract_data.xml"],
"demo_xml" : [],
"update_xml" : ["hr_contract_view.xml"],
"active": False,
"installable": True
}
| {
"name" : "Human Resources Contracts",
"version" : "1.0",
"author" : "Tiny",
"category" : "Generic Modules/Human Resources",
"website" : "http://tinyerp.com/module_hr.html",
"depends" : ["hr"],
"module": "",
"description": """
Add all information on the employee form to manage contracts:
* Martial status,
* Security number,
* Place of birth, birth date, ...
You can assign several contracts per employee.
""",
"init_xml" : ["hr_contract_data.xml"],
"demo_xml" : [],
"update_xml" : [
"hr_contract_view.xml",
"hr_contract_security.xml"
],
"active": False,
"installable": True
}
| Add hr_contract_security.xml file entry in update_xml section | Add hr_contract_security.xml file entry in update_xml section
bzr revid: mga@tinyerp.com-cceb329e8e30908ba1f6594b9502506150d105b2 | Python | agpl-3.0 | ygol/odoo,fossoult/odoo,leoliujie/odoo,hoatle/odoo,vrenaville/ngo-addons-backport,matrixise/odoo,cedk/odoo,chiragjogi/odoo,lsinfo/odoo,Nick-OpusVL/odoo,ihsanudin/odoo,dfang/odoo,gsmartway/odoo,ojengwa/odoo,windedge/odoo,tangyiyong/odoo,agrista/odoo-saas,mlaitinen/odoo,Daniel-CA/odoo,incaser/odoo-odoo,VitalPet/odoo,xujb/odoo,ojengwa/odoo,frouty/odoo_oph,ClearCorp-dev/odoo,sysadminmatmoz/OCB,syci/OCB,klunwebale/odoo,jusdng/odoo,VielSoft/odoo,goliveirab/odoo,Nowheresly/odoo,VielSoft/odoo,gorjuce/odoo,ccomb/OpenUpgrade,ChanduERP/odoo,fuselock/odoo,odoousers2014/odoo,acshan/odoo,patmcb/odoo,PongPi/isl-odoo,hmen89/odoo,Eric-Zhong/odoo,zchking/odoo,guerrerocarlos/odoo,Noviat/odoo,naousse/odoo,bakhtout/odoo-educ,AuyaJackie/odoo,jiangzhixiao/odoo,kittiu/odoo,Kilhog/odoo,xzYue/odoo,bguillot/OpenUpgrade,tangyiyong/odoo,jesramirez/odoo,markeTIC/OCB,shingonoide/odoo,xzYue/odoo,savoirfairelinux/odoo,matrixise/odoo,dariemp/odoo,ClearCorp-dev/odoo,dkubiak789/odoo,naousse/odoo,x111ong/odoo,virgree/odoo,odoousers2014/odoo,Nick-OpusVL/odoo,OSSESAC/odoopubarquiluz,lombritz/odoo,Drooids/odoo,Eric-Zhong/odoo,TRESCLOUD/odoopub,chiragjogi/odoo,prospwro/odoo,lsinfo/odoo,QianBIG/odoo,factorlibre/OCB,Drooids/odoo,florian-dacosta/OpenUpgrade,bakhtout/odoo-educ,guerrerocarlos/odoo,erkrishna9/odoo,syci/OCB,dkubiak789/odoo,FlorianLudwig/odoo,mvaled/OpenUpgrade,JonathanStein/odoo,jiachenning/odoo,Antiun/odoo,ShineFan/odoo,joshuajan/odoo,brijeshkesariya/odoo,Maspear/odoo,rubencabrera/odoo,PongPi/isl-odoo,RafaelTorrealba/odoo,TRESCLOUD/odoopub,blaggacao/OpenUpgrade,ingadhoc/odoo,gvb/odoo,leorochael/odoo,rdeheele/odoo,ovnicraft/odoo,colinnewell/odoo,gsmartway/odoo,syci/OCB,thanhacun/odoo,hubsaysnuaa/odoo,kybriainfotech/iSocioCRM,Elico-Corp/odoo_OCB,CopeX/odoo,codekaki/odoo,bkirui/odoo,bplancher/odoo,JonathanStein/odoo,massot/odoo,florian-dacosta/OpenUpgrade,Kilhog/odoo,BT-ojossen/odoo,slevenhagen/odoo,mmbtba/odoo,BT-ojossen/odoo,SerpentCS/odoo,ojengwa/odoo,ygol/odoo,charbeljc/OCB,ThinkOpen-Solutions/odoo,ihsanudin/odoo,synconics/odoo,stonegithubs/odoo,mkieszek/odoo,optima-ict/odoo,rschnapka/odoo,takis/odoo,Adel-Magebinary/odoo,brijeshkesariya/odoo,florian-dacosta/OpenUpgrade,OpenUpgrade-dev/OpenUpgrade,MarcosCommunity/odoo,Grirrane/odoo,aviciimaxwell/odoo,juanalfonsopr/odoo,CubicERP/odoo,nagyistoce/odoo-dev-odoo,hip-odoo/odoo,podemos-info/odoo,jfpla/odoo,alexcuellar/odoo,optima-ict/odoo,cedk/odoo,ihsanudin/odoo,chiragjogi/odoo,OpenUpgrade/OpenUpgrade,jeasoft/odoo,lombritz/odoo,luiseduardohdbackup/odoo,vnsofthe/odoo,xujb/odoo,apanju/GMIO_Odoo,Ichag/odoo,srsman/odoo,mmbtba/odoo,BT-rmartin/odoo,addition-it-solutions/project-all,hip-odoo/odoo,andreparames/odoo,SerpentCS/odoo,ramadhane/odoo,OpenUpgrade-dev/OpenUpgrade,savoirfairelinux/OpenUpgrade,Nowheresly/odoo,fuhongliang/odoo,mlaitinen/odoo,ingadhoc/odoo,tinkerthaler/odoo,fossoult/odoo,microcom/odoo,apocalypsebg/odoo,bealdav/OpenUpgrade,GauravSahu/odoo,kirca/OpenUpgrade,OpenUpgrade-dev/OpenUpgrade,apanju/odoo,dfang/odoo,oasiswork/odoo,ingadhoc/odoo,OSSESAC/odoopubarquiluz,oliverhr/odoo,fgesora/odoo,gdgellatly/OCB1,hassoon3/odoo,janocat/odoo,mustafat/odoo-1,vnsofthe/odoo,osvalr/odoo,Drooids/odoo,slevenhagen/odoo,credativUK/OCB,tvibliani/odoo,sysadminmatmoz/OCB,CatsAndDogsbvba/odoo,blaggacao/OpenUpgrade,spadae22/odoo,sve-odoo/odoo,NeovaHealth/odoo,mkieszek/odoo,sv-dev1/odoo,feroda/odoo,hassoon3/odoo,apocalypsebg/odoo,SAM-IT-SA/odoo,savoirfairelinux/OpenUpgrade,prospwro/odoo,pedrobaeza/odoo,alexcuellar/odoo,lombritz/odoo,OSSESAC/odoopubarquiluz,Nowheresly/odoo,florentx/OpenUpgrade,x111ong/odoo,sysadminmatmoz/OCB,shaufi10/odoo,tangyiyong/odoo,datenbetrieb/odoo,Grirrane/odoo,dllsf/odootest,kybriainfotech/iSocioCRM,slevenhagen/odoo,shivam1111/odoo,oliverhr/odoo,ojengwa/odoo,rahuldhote/odoo,ovnicraft/odoo,cysnake4713/odoo,fjbatresv/odoo,csrocha/OpenUpgrade,andreparames/odoo,bkirui/odoo,BT-rmartin/odoo,datenbetrieb/odoo,JCA-Developpement/Odoo,elmerdpadilla/iv,abenzbiria/clients_odoo,gsmartway/odoo,dezynetechnologies/odoo,javierTerry/odoo,apanju/odoo,camptocamp/ngo-addons-backport,takis/odoo,patmcb/odoo,minhtuancn/odoo,storm-computers/odoo,fevxie/odoo,CopeX/odoo,erkrishna9/odoo,Drooids/odoo,omprakasha/odoo,stephen144/odoo,shivam1111/odoo,joshuajan/odoo,Grirrane/odoo,kifcaliph/odoo,colinnewell/odoo,mmbtba/odoo,javierTerry/odoo,microcom/odoo,thanhacun/odoo,mvaled/OpenUpgrade,kittiu/odoo,alexteodor/odoo,credativUK/OCB,synconics/odoo,srsman/odoo,apanju/odoo,markeTIC/OCB,poljeff/odoo,CatsAndDogsbvba/odoo,fuhongliang/odoo,steedos/odoo,BT-ojossen/odoo,kittiu/odoo,aviciimaxwell/odoo,fevxie/odoo,laslabs/odoo,diagramsoftware/odoo,cysnake4713/odoo,incaser/odoo-odoo,waytai/odoo,ovnicraft/odoo,agrista/odoo-saas,omprakasha/odoo,omprakasha/odoo,BT-astauder/odoo,jeasoft/odoo,minhtuancn/odoo,ygol/odoo,rubencabrera/odoo,grap/OCB,leorochael/odoo,Ichag/odoo,numerigraphe/odoo,BT-fgarbely/odoo,omprakasha/odoo,jusdng/odoo,diagramsoftware/odoo,sinbazhou/odoo,podemos-info/odoo,rubencabrera/odoo,bakhtout/odoo-educ,diagramsoftware/odoo,salaria/odoo,optima-ict/odoo,Nowheresly/odoo,shaufi/odoo,dalegregory/odoo,oihane/odoo,mvaled/OpenUpgrade,jfpla/odoo,patmcb/odoo,bwrsandman/OpenUpgrade,deKupini/erp,ramadhane/odoo,factorlibre/OCB,Nowheresly/odoo,luiseduardohdbackup/odoo,shaufi10/odoo,CopeX/odoo,laslabs/odoo,windedge/odoo,abdellatifkarroum/odoo,ujjwalwahi/odoo,mvaled/OpenUpgrade,fuhongliang/odoo,grap/OCB,BT-ojossen/odoo,gavin-feng/odoo,diagramsoftware/odoo,markeTIC/OCB,doomsterinc/odoo,oliverhr/odoo,salaria/odoo,nitinitprof/odoo,dezynetechnologies/odoo,numerigraphe/odoo,Elico-Corp/odoo_OCB,OpenPymeMx/OCB,addition-it-solutions/project-all,ihsanudin/odoo,doomsterinc/odoo,incaser/odoo-odoo,shingonoide/odoo,avoinsystems/odoo,salaria/odoo,mmbtba/odoo,Kilhog/odoo,numerigraphe/odoo,Bachaco-ve/odoo,tinkerthaler/odoo,shaufi/odoo,storm-computers/odoo,shingonoide/odoo,CatsAndDogsbvba/odoo,fdvarela/odoo8,tinkhaven-organization/odoo,slevenhagen/odoo-npg,savoirfairelinux/OpenUpgrade,ubic135/odoo-design,Gitlab11/odoo,alqfahad/odoo,Nick-OpusVL/odoo,guerrerocarlos/odoo,OpenUpgrade/OpenUpgrade,alhashash/odoo,vnsofthe/odoo,windedge/odoo,collex100/odoo,storm-computers/odoo,rahuldhote/odoo,massot/odoo,nagyistoce/odoo-dev-odoo,funkring/fdoo,dgzurita/odoo,eino-makitalo/odoo,savoirfairelinux/odoo,hanicker/odoo,sysadminmatmoz/OCB,srsman/odoo,apanju/odoo,hifly/OpenUpgrade,tinkerthaler/odoo,fjbatresv/odoo,bealdav/OpenUpgrade,SerpentCS/odoo,lightcn/odoo,ujjwalwahi/odoo,synconics/odoo,hopeall/odoo,jiangzhixiao/odoo,PongPi/isl-odoo,papouso/odoo,vnsofthe/odoo,bplancher/odoo,pplatek/odoo,stonegithubs/odoo,fevxie/odoo,Eric-Zhong/odoo,damdam-s/OpenUpgrade,nagyistoce/odoo-dev-odoo,RafaelTorrealba/odoo,brijeshkesariya/odoo,papouso/odoo,ovnicraft/odoo,BT-fgarbely/odoo,datenbetrieb/odoo,abdellatifkarroum/odoo,Nick-OpusVL/odoo,lgscofield/odoo,csrocha/OpenUpgrade,bplancher/odoo,ShineFan/odoo,rowemoore/odoo,chiragjogi/odoo,sv-dev1/odoo,datenbetrieb/odoo,ramadhane/odoo,dariemp/odoo,ThinkOpen-Solutions/odoo,sebalix/OpenUpgrade,doomsterinc/odoo,sinbazhou/odoo,funkring/fdoo,OpenPymeMx/OCB,ygol/odoo,Danisan/odoo-1,stonegithubs/odoo,elmerdpadilla/iv,dsfsdgsbngfggb/odoo,odoo-turkiye/odoo,aviciimaxwell/odoo,VitalPet/odoo,leoliujie/odoo,grap/OpenUpgrade,kybriainfotech/iSocioCRM,xujb/odoo,ubic135/odoo-design,fevxie/odoo,apanju/odoo,stonegithubs/odoo,sinbazhou/odoo,glovebx/odoo,avoinsystems/odoo,ChanduERP/odoo,gvb/odoo,kifcaliph/odoo,Adel-Magebinary/odoo,cedk/odoo,BT-rmartin/odoo,odooindia/odoo,oasiswork/odoo,arthru/OpenUpgrade,nitinitprof/odoo,grap/OCB,SAM-IT-SA/odoo,joariasl/odoo,Nick-OpusVL/odoo,christophlsa/odoo,shivam1111/odoo,rowemoore/odoo,takis/odoo,tvtsoft/odoo8,JGarcia-Panach/odoo,cedk/odoo,waytai/odoo,oasiswork/odoo,oihane/odoo,tangyiyong/odoo,gavin-feng/odoo,hopeall/odoo,JGarcia-Panach/odoo,slevenhagen/odoo-npg,bkirui/odoo,Endika/OpenUpgrade,abenzbiria/clients_odoo,sergio-incaser/odoo,glovebx/odoo,ramitalat/odoo,GauravSahu/odoo,Bachaco-ve/odoo,nhomar/odoo,janocat/odoo,odootr/odoo,ApuliaSoftware/odoo,makinacorpus/odoo,NeovaHealth/odoo,PongPi/isl-odoo,fevxie/odoo,CubicERP/odoo,Endika/OpenUpgrade,arthru/OpenUpgrade,ApuliaSoftware/odoo,shingonoide/odoo,hoatle/odoo,brijeshkesariya/odoo,matrixise/odoo,joariasl/odoo,rahuldhote/odoo,frouty/odoogoeen,wangjun/odoo,patmcb/odoo,tarzan0820/odoo,PongPi/isl-odoo,odoo-turkiye/odoo,diagramsoftware/odoo,ApuliaSoftware/odoo,damdam-s/OpenUpgrade,omprakasha/odoo,rgeleta/odoo,guerrerocarlos/odoo,alqfahad/odoo,nhomar/odoo,RafaelTorrealba/odoo,lombritz/odoo,realsaiko/odoo,AuyaJackie/odoo,ingadhoc/odoo,dalegregory/odoo,cpyou/odoo,colinnewell/odoo,numerigraphe/odoo,funkring/fdoo,cedk/odoo,csrocha/OpenUpgrade,charbeljc/OCB,tinkerthaler/odoo,salaria/odoo,jpshort/odoo,provaleks/o8,sebalix/OpenUpgrade,jfpla/odoo,RafaelTorrealba/odoo,dgzurita/odoo,vnsofthe/odoo,nexiles/odoo,xzYue/odoo,nexiles/odoo,kirca/OpenUpgrade,hbrunn/OpenUpgrade,klunwebale/odoo,christophlsa/odoo,JonathanStein/odoo,sve-odoo/odoo,janocat/odoo,srimai/odoo,makinacorpus/odoo,javierTerry/odoo,luistorresm/odoo,inspyration/odoo,jusdng/odoo,Adel-Magebinary/odoo,realsaiko/odoo,QianBIG/odoo,hip-odoo/odoo,ramadhane/odoo,jolevq/odoopub,GauravSahu/odoo,frouty/odoo_oph,alhashash/odoo,QianBIG/odoo,arthru/OpenUpgrade,andreparames/odoo,Danisan/odoo-1,cpyou/odoo,dllsf/odootest,Endika/odoo,draugiskisprendimai/odoo,dezynetechnologies/odoo,markeTIC/OCB,mustafat/odoo-1,JGarcia-Panach/odoo,OpusVL/odoo,tinkhaven-organization/odoo,OSSESAC/odoopubarquiluz,RafaelTorrealba/odoo,fuselock/odoo,OpenPymeMx/OCB,tarzan0820/odoo,rahuldhote/odoo,credativUK/OCB,hbrunn/OpenUpgrade,ujjwalwahi/odoo,frouty/odoogoeen,ShineFan/odoo,goliveirab/odoo,sv-dev1/odoo,jeasoft/odoo,steedos/odoo,Codefans-fan/odoo,TRESCLOUD/odoopub,hifly/OpenUpgrade,ecosoft-odoo/odoo,acshan/odoo,dsfsdgsbngfggb/odoo,nhomar/odoo-mirror,thanhacun/odoo,brijeshkesariya/odoo,lsinfo/odoo,jaxkodex/odoo,ihsanudin/odoo,nhomar/odoo-mirror,dfang/odoo,Daniel-CA/odoo,havt/odoo,slevenhagen/odoo,hbrunn/OpenUpgrade,Daniel-CA/odoo,andreparames/odoo,fuselock/odoo,VitalPet/odoo,rgeleta/odoo,credativUK/OCB,erkrishna9/odoo,odoo-turkiye/odoo,Endika/odoo,florentx/OpenUpgrade,nuuuboo/odoo,OpenUpgrade/OpenUpgrade,guewen/OpenUpgrade,sergio-incaser/odoo,x111ong/odoo,VielSoft/odoo,abdellatifkarroum/odoo,abenzbiria/clients_odoo,camptocamp/ngo-addons-backport,tvtsoft/odoo8,BT-astauder/odoo,massot/odoo,sebalix/OpenUpgrade,joariasl/odoo,acshan/odoo,tarzan0820/odoo,lsinfo/odoo,JGarcia-Panach/odoo,dgzurita/odoo,chiragjogi/odoo,BT-rmartin/odoo,zchking/odoo,funkring/fdoo,bwrsandman/OpenUpgrade,bwrsandman/OpenUpgrade,rdeheele/odoo,bealdav/OpenUpgrade,0k/odoo,synconics/odoo,massot/odoo,blaggacao/OpenUpgrade,vrenaville/ngo-addons-backport,NeovaHealth/odoo,OpenPymeMx/OCB,bguillot/OpenUpgrade,stephen144/odoo,Adel-Magebinary/odoo,mszewczy/odoo,QianBIG/odoo,fossoult/odoo,odooindia/odoo,sadleader/odoo,abdellatifkarroum/odoo,Ernesto99/odoo,alexteodor/odoo,vrenaville/ngo-addons-backport,brijeshkesariya/odoo,hifly/OpenUpgrade,hubsaysnuaa/odoo,Endika/odoo,Ichag/odoo,luistorresm/odoo,kittiu/odoo,leorochael/odoo,vnsofthe/odoo,OpenPymeMx/OCB,AuyaJackie/odoo,ramadhane/odoo,patmcb/odoo,VielSoft/odoo,waytai/odoo,OpusVL/odoo,jiachenning/odoo,CatsAndDogsbvba/odoo,bplancher/odoo,credativUK/OCB,avoinsystems/odoo,mlaitinen/odoo,nexiles/odoo,BT-fgarbely/odoo,nitinitprof/odoo,tinkerthaler/odoo,makinacorpus/odoo,jaxkodex/odoo,camptocamp/ngo-addons-backport,luiseduardohdbackup/odoo,tvibliani/odoo,bobisme/odoo,oliverhr/odoo,ChanduERP/odoo,FlorianLudwig/odoo,christophlsa/odoo,waytai/odoo,pedrobaeza/OpenUpgrade,eino-makitalo/odoo,mmbtba/odoo,papouso/odoo,gvb/odoo,hubsaysnuaa/odoo,sinbazhou/odoo,NL66278/OCB,poljeff/odoo,KontorConsulting/odoo,savoirfairelinux/odoo,abstract-open-solutions/OCB,hmen89/odoo,rowemoore/odoo,shivam1111/odoo,numerigraphe/odoo,BT-rmartin/odoo,prospwro/odoo,FlorianLudwig/odoo,n0m4dz/odoo,fevxie/odoo,spadae22/odoo,kifcaliph/odoo,bplancher/odoo,pedrobaeza/odoo,tvtsoft/odoo8,ingadhoc/odoo,massot/odoo,datenbetrieb/odoo,slevenhagen/odoo-npg,alqfahad/odoo,odootr/odoo,havt/odoo,BT-rmartin/odoo,0k/OpenUpgrade,bwrsandman/OpenUpgrade,draugiskisprendimai/odoo,prospwro/odoo,mustafat/odoo-1,sinbazhou/odoo,jusdng/odoo,sergio-incaser/odoo,papouso/odoo,cloud9UG/odoo,rdeheele/odoo,nuuuboo/odoo,ClearCorp-dev/odoo,luistorresm/odoo,srimai/odoo,syci/OCB,simongoffin/website_version,ramitalat/odoo,steedos/odoo,ccomb/OpenUpgrade,agrista/odoo-saas,colinnewell/odoo,hopeall/odoo,addition-it-solutions/project-all,oliverhr/odoo,waytai/odoo,Nick-OpusVL/odoo,abdellatifkarroum/odoo,klunwebale/odoo,abdellatifkarroum/odoo,cloud9UG/odoo,juanalfonsopr/odoo,shaufi/odoo,rschnapka/odoo,oihane/odoo,Codefans-fan/odoo,lombritz/odoo,oasiswork/odoo,OpenUpgrade/OpenUpgrade,mustafat/odoo-1,jusdng/odoo,virgree/odoo,tarzan0820/odoo,fuselock/odoo,tvibliani/odoo,ramadhane/odoo,joshuajan/odoo,matrixise/odoo,jesramirez/odoo,shivam1111/odoo,credativUK/OCB,VitalPet/odoo,MarcosCommunity/odoo,jeasoft/odoo,windedge/odoo,dllsf/odootest,NL66278/OCB,hoatle/odoo,lgscofield/odoo,kybriainfotech/iSocioCRM,arthru/OpenUpgrade,optima-ict/odoo,hanicker/odoo,blaggacao/OpenUpgrade,goliveirab/odoo,provaleks/o8,hassoon3/odoo,charbeljc/OCB,frouty/odoogoeen,Grirrane/odoo,dsfsdgsbngfggb/odoo,OpenPymeMx/OCB,Antiun/odoo,janocat/odoo,x111ong/odoo,sinbazhou/odoo,gavin-feng/odoo,Kilhog/odoo,alexcuellar/odoo,waytai/odoo,sadleader/odoo,srimai/odoo,sergio-incaser/odoo,Elico-Corp/odoo_OCB,nhomar/odoo,bakhtout/odoo-educ,storm-computers/odoo,abenzbiria/clients_odoo,jfpla/odoo,joshuajan/odoo,odootr/odoo,apanju/GMIO_Odoo,srimai/odoo,OpenUpgrade-dev/OpenUpgrade,tarzan0820/odoo,tvibliani/odoo,abdellatifkarroum/odoo,0k/odoo,zchking/odoo,tinkerthaler/odoo,xujb/odoo,hopeall/odoo,hassoon3/odoo,Ichag/odoo,aviciimaxwell/odoo,inspyration/odoo,srsman/odoo,fgesora/odoo,TRESCLOUD/odoopub,bobisme/odoo,bakhtout/odoo-educ,virgree/odoo,bkirui/odoo,savoirfairelinux/OpenUpgrade,rowemoore/odoo,grap/OpenUpgrade,gdgellatly/OCB1,grap/OCB,hmen89/odoo,havt/odoo,KontorConsulting/odoo,NeovaHealth/odoo,nitinitprof/odoo,salaria/odoo,SerpentCS/odoo,pplatek/odoo,realsaiko/odoo,tarzan0820/odoo,KontorConsulting/odoo,xujb/odoo,codekaki/odoo,stephen144/odoo,x111ong/odoo,funkring/fdoo,idncom/odoo,cysnake4713/odoo,ramitalat/odoo,jiangzhixiao/odoo,hoatle/odoo,kittiu/odoo,hip-odoo/odoo,Drooids/odoo,ApuliaSoftware/odoo,jeasoft/odoo,oliverhr/odoo,omprakasha/odoo,aviciimaxwell/odoo,realsaiko/odoo,jiachenning/odoo,stephen144/odoo,rgeleta/odoo,dllsf/odootest,odooindia/odoo,0k/OpenUpgrade,sebalix/OpenUpgrade,NeovaHealth/odoo,JGarcia-Panach/odoo,OpenUpgrade/OpenUpgrade,Ernesto99/odoo,factorlibre/OCB,csrocha/OpenUpgrade,mszewczy/odoo,pedrobaeza/odoo,lightcn/odoo,hopeall/odoo,fuhongliang/odoo,elmerdpadilla/iv,Bachaco-ve/odoo,dkubiak789/odoo,xzYue/odoo,doomsterinc/odoo,Antiun/odoo,odoousers2014/odoo,xujb/odoo,OSSESAC/odoopubarquiluz,idncom/odoo,Elico-Corp/odoo_OCB,Adel-Magebinary/odoo,cdrooom/odoo,Gitlab11/odoo,PongPi/isl-odoo,pedrobaeza/OpenUpgrade,nitinitprof/odoo,synconics/odoo,apanju/GMIO_Odoo,vnsofthe/odoo,fossoult/odoo,Maspear/odoo,makinacorpus/odoo,nuncjo/odoo,FlorianLudwig/odoo,dfang/odoo,zchking/odoo,minhtuancn/odoo,csrocha/OpenUpgrade,gorjuce/odoo,sinbazhou/odoo,grap/OpenUpgrade,leoliujie/odoo,pedrobaeza/OpenUpgrade,feroda/odoo,acshan/odoo,ApuliaSoftware/odoo,vrenaville/ngo-addons-backport,sebalix/OpenUpgrade,nuuuboo/odoo,gorjuce/odoo,fgesora/odoo,camptocamp/ngo-addons-backport,bkirui/odoo,rschnapka/odoo,ygol/odoo,dkubiak789/odoo,odoousers2014/odoo,cloud9UG/odoo,hmen89/odoo,pplatek/odoo,bobisme/odoo,luistorresm/odoo,aviciimaxwell/odoo,n0m4dz/odoo,lgscofield/odoo,cysnake4713/odoo,CopeX/odoo,thanhacun/odoo,JCA-Developpement/Odoo,apanju/GMIO_Odoo,shingonoide/odoo,Antiun/odoo,hifly/OpenUpgrade,stephen144/odoo,highco-groupe/odoo,nagyistoce/odoo-dev-odoo,oliverhr/odoo,podemos-info/odoo,SAM-IT-SA/odoo,jolevq/odoopub,colinnewell/odoo,colinnewell/odoo,OpenUpgrade-dev/OpenUpgrade,markeTIC/OCB,sadleader/odoo,apocalypsebg/odoo,Gitlab11/odoo,fuhongliang/odoo,cysnake4713/odoo,x111ong/odoo,bwrsandman/OpenUpgrade,realsaiko/odoo,datenbetrieb/odoo,alexcuellar/odoo,fdvarela/odoo8,Adel-Magebinary/odoo,klunwebale/odoo,pedrobaeza/odoo,codekaki/odoo,xzYue/odoo,odoo-turkiye/odoo,Noviat/odoo,ChanduERP/odoo,AuyaJackie/odoo,gvb/odoo,jfpla/odoo,sysadminmatmoz/OCB,papouso/odoo,rubencabrera/odoo,jiachenning/odoo,eino-makitalo/odoo,camptocamp/ngo-addons-backport,sve-odoo/odoo,osvalr/odoo,janocat/odoo,virgree/odoo,Antiun/odoo,SAM-IT-SA/odoo,tvtsoft/odoo8,nitinitprof/odoo,JGarcia-Panach/odoo,spadae22/odoo,Codefans-fan/odoo,christophlsa/odoo,collex100/odoo,gorjuce/odoo,spadae22/odoo,guewen/OpenUpgrade,goliveirab/odoo,shaufi10/odoo,incaser/odoo-odoo,bealdav/OpenUpgrade,idncom/odoo,microcom/odoo,osvalr/odoo,ojengwa/odoo,alexcuellar/odoo,klunwebale/odoo,funkring/fdoo,highco-groupe/odoo,ccomb/OpenUpgrade,brijeshkesariya/odoo,ramitalat/odoo,idncom/odoo,makinacorpus/odoo,savoirfairelinux/OpenUpgrade,hopeall/odoo,gdgellatly/OCB1,hifly/OpenUpgrade,nexiles/odoo,doomsterinc/odoo,Kilhog/odoo,jesramirez/odoo,jolevq/odoopub,luiseduardohdbackup/odoo,Codefans-fan/odoo,steedos/odoo,fgesora/odoo,charbeljc/OCB,prospwro/odoo,ecosoft-odoo/odoo,BT-ojossen/odoo,storm-computers/odoo,jfpla/odoo,CopeX/odoo,jiangzhixiao/odoo,VitalPet/odoo,n0m4dz/odoo,fuhongliang/odoo,laslabs/odoo,grap/OpenUpgrade,tinkhaven-organization/odoo,cloud9UG/odoo,ecosoft-odoo/odoo,provaleks/o8,mszewczy/odoo,OpenUpgrade/OpenUpgrade,wangjun/odoo,ihsanudin/odoo,slevenhagen/odoo-npg,zchking/odoo,JCA-Developpement/Odoo,janocat/odoo,thanhacun/odoo,dfang/odoo,CatsAndDogsbvba/odoo,fjbatresv/odoo,oihane/odoo,eino-makitalo/odoo,sv-dev1/odoo,spadae22/odoo,joariasl/odoo,BT-rmartin/odoo,bobisme/odoo,eino-makitalo/odoo,hbrunn/OpenUpgrade,doomsterinc/odoo,frouty/odoogoeen,minhtuancn/odoo,abstract-open-solutions/OCB,gavin-feng/odoo,grap/OCB,dezynetechnologies/odoo,jolevq/odoopub,GauravSahu/odoo,tangyiyong/odoo,gorjuce/odoo,feroda/odoo,optima-ict/odoo,Bachaco-ve/odoo,mkieszek/odoo,ehirt/odoo,salaria/odoo,odoo-turkiye/odoo,Bachaco-ve/odoo,csrocha/OpenUpgrade,luiseduardohdbackup/odoo,frouty/odoo_oph,ccomb/OpenUpgrade,BT-astauder/odoo,steedos/odoo,jpshort/odoo,chiragjogi/odoo,Elico-Corp/odoo_OCB,leoliujie/odoo,janocat/odoo,acshan/odoo,demon-ru/iml-crm,JonathanStein/odoo,oasiswork/odoo,syci/OCB,gvb/odoo,Ichag/odoo,srsman/odoo,n0m4dz/odoo,dariemp/odoo,nuncjo/odoo,mustafat/odoo-1,shingonoide/odoo,odootr/odoo,jaxkodex/odoo,stephen144/odoo,dariemp/odoo,csrocha/OpenUpgrade,papouso/odoo,rgeleta/odoo,Maspear/odoo,GauravSahu/odoo,xzYue/odoo,OpusVL/odoo,Danisan/odoo-1,gsmartway/odoo,fuselock/odoo,srsman/odoo,odoo-turkiye/odoo,mustafat/odoo-1,alhashash/odoo,dariemp/odoo,hmen89/odoo,lgscofield/odoo,juanalfonsopr/odoo,grap/OpenUpgrade,pplatek/odoo,slevenhagen/odoo,wangjun/odoo,Danisan/odoo-1,frouty/odoogoeen,Ichag/odoo,CubicERP/odoo,damdam-s/OpenUpgrade,damdam-s/OpenUpgrade,nhomar/odoo-mirror,kirca/OpenUpgrade,tangyiyong/odoo,arthru/OpenUpgrade,joariasl/odoo,ehirt/odoo,pedrobaeza/OpenUpgrade,VielSoft/odoo,odootr/odoo,florentx/OpenUpgrade,florian-dacosta/OpenUpgrade,ojengwa/odoo,zchking/odoo,glovebx/odoo,gavin-feng/odoo,Endika/OpenUpgrade,RafaelTorrealba/odoo,mvaled/OpenUpgrade,nhomar/odoo,Noviat/odoo,SAM-IT-SA/odoo,jaxkodex/odoo,nhomar/odoo,codekaki/odoo,podemos-info/odoo,guewen/OpenUpgrade,factorlibre/OCB,colinnewell/odoo,shaufi10/odoo,charbeljc/OCB,odootr/odoo,hoatle/odoo,bplancher/odoo,ubic135/odoo-design,ApuliaSoftware/odoo,draugiskisprendimai/odoo,fjbatresv/odoo,osvalr/odoo,joshuajan/odoo,leorochael/odoo,eino-makitalo/odoo,rgeleta/odoo,arthru/OpenUpgrade,srimai/odoo,fgesora/odoo,gorjuce/odoo,Gitlab11/odoo,guewen/OpenUpgrade,joariasl/odoo,windedge/odoo,poljeff/odoo,apocalypsebg/odoo,nitinitprof/odoo,hoatle/odoo,Endika/OpenUpgrade,jesramirez/odoo,NL66278/OCB,lightcn/odoo,christophlsa/odoo,Codefans-fan/odoo,ThinkOpen-Solutions/odoo,ramitalat/odoo,hanicker/odoo,JonathanStein/odoo,gvb/odoo,poljeff/odoo,dllsf/odootest,mlaitinen/odoo,matrixise/odoo,sergio-incaser/odoo,bobisme/odoo,Danisan/odoo-1,kifcaliph/odoo,lightcn/odoo,shingonoide/odoo,hassoon3/odoo,guewen/OpenUpgrade,camptocamp/ngo-addons-backport,abstract-open-solutions/OCB,codekaki/odoo,Maspear/odoo,andreparames/odoo,laslabs/odoo,codekaki/odoo,nagyistoce/odoo-dev-odoo,juanalfonsopr/odoo,shaufi/odoo,cloud9UG/odoo,sebalix/OpenUpgrade,hifly/OpenUpgrade,odooindia/odoo,BT-ojossen/odoo,bkirui/odoo,ingadhoc/odoo,ovnicraft/odoo,jfpla/odoo,Grirrane/odoo,Daniel-CA/odoo,jiangzhixiao/odoo,javierTerry/odoo,kittiu/odoo,nuuuboo/odoo,shaufi/odoo,luistorresm/odoo,srsman/odoo,mvaled/OpenUpgrade,naousse/odoo,simongoffin/website_version,tinkhaven-organization/odoo,bguillot/OpenUpgrade,apanju/GMIO_Odoo,FlorianLudwig/odoo,nhomar/odoo-mirror,AuyaJackie/odoo,dkubiak789/odoo,mszewczy/odoo,draugiskisprendimai/odoo,highco-groupe/odoo,markeTIC/OCB,doomsterinc/odoo,ecosoft-odoo/odoo,eino-makitalo/odoo,ThinkOpen-Solutions/odoo,OpenPymeMx/OCB,alhashash/odoo,Gitlab11/odoo,podemos-info/odoo,kybriainfotech/iSocioCRM,frouty/odoogoeen,OSSESAC/odoopubarquiluz,gdgellatly/OCB1,erkrishna9/odoo,ovnicraft/odoo,mmbtba/odoo,OpenUpgrade-dev/OpenUpgrade,jusdng/odoo,avoinsystems/odoo,naousse/odoo,elmerdpadilla/iv,dsfsdgsbngfggb/odoo,fuselock/odoo,pedrobaeza/OpenUpgrade,luiseduardohdbackup/odoo,JonathanStein/odoo,hanicker/odoo,ujjwalwahi/odoo,nuuuboo/odoo,Noviat/odoo,luiseduardohdbackup/odoo,Elico-Corp/odoo_OCB,jiangzhixiao/odoo,windedge/odoo,Antiun/odoo,xujb/odoo,minhtuancn/odoo,erkrishna9/odoo,Nowheresly/odoo,mszewczy/odoo,klunwebale/odoo,rahuldhote/odoo,cdrooom/odoo,andreparames/odoo,idncom/odoo,VitalPet/odoo,Daniel-CA/odoo,demon-ru/iml-crm,guerrerocarlos/odoo,guewen/OpenUpgrade,luistorresm/odoo,Endika/odoo,klunwebale/odoo,gavin-feng/odoo,dariemp/odoo,shaufi10/odoo,highco-groupe/odoo,MarcosCommunity/odoo,nexiles/odoo,0k/OpenUpgrade,slevenhagen/odoo-npg,poljeff/odoo,makinacorpus/odoo,CubicERP/odoo,hip-odoo/odoo,ShineFan/odoo,ChanduERP/odoo,KontorConsulting/odoo,grap/OpenUpgrade,oihane/odoo,gsmartway/odoo,juanalfonsopr/odoo,Endika/OpenUpgrade,dsfsdgsbngfggb/odoo,abstract-open-solutions/OCB,jiachenning/odoo,funkring/fdoo,kirca/OpenUpgrade,Maspear/odoo,hubsaysnuaa/odoo,havt/odoo,gorjuce/odoo,sv-dev1/odoo,dgzurita/odoo,draugiskisprendimai/odoo,javierTerry/odoo,rowemoore/odoo,abenzbiria/clients_odoo,stonegithubs/odoo,Bachaco-ve/odoo,rdeheele/odoo,zchking/odoo,sergio-incaser/odoo,ccomb/OpenUpgrade,alexcuellar/odoo,ChanduERP/odoo,glovebx/odoo,avoinsystems/odoo,demon-ru/iml-crm,slevenhagen/odoo-npg,shaufi/odoo,0k/OpenUpgrade,nexiles/odoo,mkieszek/odoo,lightcn/odoo,alhashash/odoo,factorlibre/OCB,optima-ict/odoo,avoinsystems/odoo,rschnapka/odoo,dsfsdgsbngfggb/odoo,fuhongliang/odoo,cedk/odoo,fjbatresv/odoo,shaufi/odoo,bguillot/OpenUpgrade,ecosoft-odoo/odoo,Maspear/odoo,dkubiak789/odoo,kirca/OpenUpgrade,frouty/odoogoeen,steedos/odoo,takis/odoo,Endika/odoo,fossoult/odoo,MarcosCommunity/odoo,poljeff/odoo,bobisme/odoo,nuncjo/odoo,lgscofield/odoo,sysadminmatmoz/OCB,ChanduERP/odoo,apanju/odoo,sv-dev1/odoo,dezynetechnologies/odoo,dkubiak789/odoo,SAM-IT-SA/odoo,collex100/odoo,0k/odoo,tvibliani/odoo,Nick-OpusVL/odoo,gvb/odoo,blaggacao/OpenUpgrade,FlorianLudwig/odoo,gdgellatly/OCB1,virgree/odoo,Eric-Zhong/odoo,cpyou/odoo,alqfahad/odoo,Maspear/odoo,minhtuancn/odoo,mustafat/odoo-1,acshan/odoo,mkieszek/odoo,MarcosCommunity/odoo,Ernesto99/odoo,Ichag/odoo,virgree/odoo,feroda/odoo,hassoon3/odoo,sebalix/OpenUpgrade,spadae22/odoo,javierTerry/odoo,lightcn/odoo,apanju/GMIO_Odoo,Nowheresly/odoo,credativUK/OCB,ramadhane/odoo,kirca/OpenUpgrade,prospwro/odoo,provaleks/o8,dalegregory/odoo,n0m4dz/odoo,hifly/OpenUpgrade,0k/odoo,Ernesto99/odoo,ehirt/odoo,guerrerocarlos/odoo,SAM-IT-SA/odoo,leoliujie/odoo,Danisan/odoo-1,dalegregory/odoo,cpyou/odoo,havt/odoo,Adel-Magebinary/odoo,ujjwalwahi/odoo,Ernesto99/odoo,n0m4dz/odoo,KontorConsulting/odoo,Endika/odoo,rschnapka/odoo,apanju/GMIO_Odoo,apocalypsebg/odoo,FlorianLudwig/odoo,vrenaville/ngo-addons-backport,bakhtout/odoo-educ,florian-dacosta/OpenUpgrade,blaggacao/OpenUpgrade,lightcn/odoo,rschnapka/odoo,tinkerthaler/odoo,gavin-feng/odoo,dalegregory/odoo,hbrunn/OpenUpgrade,alexcuellar/odoo,BT-fgarbely/odoo,jeasoft/odoo,slevenhagen/odoo,damdam-s/OpenUpgrade,camptocamp/ngo-addons-backport,VielSoft/odoo,camptocamp/ngo-addons-backport,codekaki/odoo,juanalfonsopr/odoo,ehirt/odoo,apocalypsebg/odoo,tangyiyong/odoo,mmbtba/odoo,fevxie/odoo,ingadhoc/odoo,alqfahad/odoo,jpshort/odoo,ShineFan/odoo,cloud9UG/odoo,pedrobaeza/OpenUpgrade,synconics/odoo,tinkhaven-organization/odoo,syci/OCB,slevenhagen/odoo,ujjwalwahi/odoo,Codefans-fan/odoo,ehirt/odoo,jpshort/odoo,Ernesto99/odoo,factorlibre/OCB,christophlsa/odoo,NL66278/OCB,ShineFan/odoo,fdvarela/odoo8,bakhtout/odoo-educ,jolevq/odoopub,incaser/odoo-odoo,Endika/OpenUpgrade,vrenaville/ngo-addons-backport,deKupini/erp,waytai/odoo,SerpentCS/odoo,pplatek/odoo,tvibliani/odoo,florentx/OpenUpgrade,alqfahad/odoo,srimai/odoo,gdgellatly/OCB1,feroda/odoo,shaufi10/odoo,addition-it-solutions/project-all,sve-odoo/odoo,thanhacun/odoo,tarzan0820/odoo,sve-odoo/odoo,chiragjogi/odoo,damdam-s/OpenUpgrade,Noviat/odoo,mlaitinen/odoo,Bachaco-ve/odoo,ThinkOpen-Solutions/odoo,CopeX/odoo,papouso/odoo,CopeX/odoo,rgeleta/odoo,frouty/odoo_oph,oihane/odoo,SerpentCS/odoo,kittiu/odoo,microcom/odoo,QianBIG/odoo,addition-it-solutions/project-all,Drooids/odoo,KontorConsulting/odoo,pplatek/odoo,joshuajan/odoo,naousse/odoo,0k/OpenUpgrade,ehirt/odoo,SerpentCS/odoo,nuuuboo/odoo,storm-computers/odoo,pedrobaeza/odoo,fgesora/odoo,savoirfairelinux/odoo,bealdav/OpenUpgrade,QianBIG/odoo,savoirfairelinux/OpenUpgrade,bguillot/OpenUpgrade,GauravSahu/odoo,hanicker/odoo,lgscofield/odoo,JGarcia-Panach/odoo,alexteodor/odoo,poljeff/odoo,jusdng/odoo,dezynetechnologies/odoo,hubsaysnuaa/odoo,BT-fgarbely/odoo,lsinfo/odoo,inspyration/odoo,leorochael/odoo,BT-astauder/odoo,ubic135/odoo-design,MarcosCommunity/odoo,abstract-open-solutions/OCB,lsinfo/odoo,naousse/odoo,ojengwa/odoo,fjbatresv/odoo,avoinsystems/odoo,abstract-open-solutions/OCB,christophlsa/odoo,virgree/odoo,elmerdpadilla/iv,rubencabrera/odoo,BT-fgarbely/odoo,highco-groupe/odoo,Drooids/odoo,minhtuancn/odoo,mkieszek/odoo,odootr/odoo,deKupini/erp,feroda/odoo,windedge/odoo,bwrsandman/OpenUpgrade,CatsAndDogsbvba/odoo,fgesora/odoo,oasiswork/odoo,havt/odoo,simongoffin/website_version,acshan/odoo,Gitlab11/odoo,leorochael/odoo,apanju/odoo,diagramsoftware/odoo,jpshort/odoo,Gitlab11/odoo,podemos-info/odoo,ThinkOpen-Solutions/odoo,steedos/odoo,mszewczy/odoo,nuncjo/odoo,havt/odoo,shivam1111/odoo,jiangzhixiao/odoo,kybriainfotech/iSocioCRM,takis/odoo,demon-ru/iml-crm,goliveirab/odoo,collex100/odoo,dgzurita/odoo,ClearCorp-dev/odoo,jaxkodex/odoo,hanicker/odoo,nhomar/odoo-mirror,rdeheele/odoo,cpyou/odoo,xzYue/odoo,bealdav/OpenUpgrade,alexteodor/odoo,mszewczy/odoo,nuuuboo/odoo,slevenhagen/odoo-npg,laslabs/odoo,podemos-info/odoo,juanalfonsopr/odoo,patmcb/odoo,frouty/odoogoeen,jiachenning/odoo,javierTerry/odoo,tinkhaven-organization/odoo,0k/OpenUpgrade,collex100/odoo,MarcosCommunity/odoo,frouty/odoo_oph,simongoffin/website_version,fossoult/odoo,goliveirab/odoo,florentx/OpenUpgrade,agrista/odoo-saas,PongPi/isl-odoo,jpshort/odoo,alexteodor/odoo,jeasoft/odoo,synconics/odoo,GauravSahu/odoo,kirca/OpenUpgrade,rahuldhote/odoo,dariemp/odoo,Eric-Zhong/odoo,grap/OCB,Endika/OpenUpgrade,fdvarela/odoo8,stonegithubs/odoo,ihsanudin/odoo,osvalr/odoo,microcom/odoo,OpenUpgrade/OpenUpgrade,collex100/odoo,microcom/odoo,pedrobaeza/OpenUpgrade,0k/odoo,cdrooom/odoo,VielSoft/odoo,numerigraphe/odoo,ShineFan/odoo,wangjun/odoo,n0m4dz/odoo,sysadminmatmoz/OCB,alhashash/odoo,florian-dacosta/OpenUpgrade,x111ong/odoo,salaria/odoo,NeovaHealth/odoo,cdrooom/odoo,OpusVL/odoo,grap/OCB,rubencabrera/odoo,Noviat/odoo,stonegithubs/odoo,ThinkOpen-Solutions/odoo,diagramsoftware/odoo,ccomb/OpenUpgrade,JCA-Developpement/Odoo,NeovaHealth/odoo,tvibliani/odoo,JCA-Developpement/Odoo,blaggacao/OpenUpgrade,grap/OCB,oasiswork/odoo,Noviat/odoo,credativUK/OCB,fossoult/odoo,hanicker/odoo,odooindia/odoo,shivam1111/odoo,MarcosCommunity/odoo,nhomar/odoo,tvtsoft/odoo8,mlaitinen/odoo,glovebx/odoo,vrenaville/ngo-addons-backport,glovebx/odoo,naousse/odoo,sadleader/odoo,hubsaysnuaa/odoo,leoliujie/odoo,tinkhaven-organization/odoo,wangjun/odoo,Endika/odoo,ramitalat/odoo,jesramirez/odoo,odoo-turkiye/odoo,kybriainfotech/iSocioCRM,srimai/odoo,CubicERP/odoo,pplatek/odoo,bobisme/odoo,rowemoore/odoo,incaser/odoo-odoo,guewen/OpenUpgrade,vrenaville/ngo-addons-backport,simongoffin/website_version,OpenPymeMx/OCB,osvalr/odoo,feroda/odoo,ujjwalwahi/odoo,glovebx/odoo,nexiles/odoo,Eric-Zhong/odoo,prospwro/odoo,nagyistoce/odoo-dev-odoo,bwrsandman/OpenUpgrade,ecosoft-odoo/odoo,patmcb/odoo,Kilhog/odoo,charbeljc/OCB,CatsAndDogsbvba/odoo,dalegregory/odoo,draugiskisprendimai/odoo,charbeljc/OCB,florentx/OpenUpgrade,VitalPet/odoo,AuyaJackie/odoo,draugiskisprendimai/odoo,ecosoft-odoo/odoo,abstract-open-solutions/OCB,fdvarela/odoo8,KontorConsulting/odoo,wangjun/odoo,addition-it-solutions/project-all,dgzurita/odoo,ApuliaSoftware/odoo,damdam-s/OpenUpgrade,Kilhog/odoo,lombritz/odoo,provaleks/o8,rahuldhote/odoo,Codefans-fan/odoo,BT-ojossen/odoo,bkirui/odoo,gsmartway/odoo,Eric-Zhong/odoo,collex100/odoo,jaxkodex/odoo,frouty/odoo_oph,NL66278/OCB,ovnicraft/odoo,savoirfairelinux/odoo,sadleader/odoo,Danisan/odoo-1,dalegregory/odoo,Antiun/odoo,dsfsdgsbngfggb/odoo,lsinfo/odoo,jeasoft/odoo,cedk/odoo,hopeall/odoo,TRESCLOUD/odoopub,kifcaliph/odoo,dfang/odoo,factorlibre/OCB,hoatle/odoo,bguillot/OpenUpgrade,codekaki/odoo,gsmartway/odoo,numerigraphe/odoo,ehirt/odoo,nuncjo/odoo,laslabs/odoo,makinacorpus/odoo,ygol/odoo,Daniel-CA/odoo,incaser/odoo-odoo,thanhacun/odoo,oihane/odoo,gdgellatly/OCB1,leoliujie/odoo,Ernesto99/odoo,apocalypsebg/odoo,fuselock/odoo,dezynetechnologies/odoo,CubicERP/odoo,alqfahad/odoo,wangjun/odoo,omprakasha/odoo,markeTIC/OCB,andreparames/odoo,RafaelTorrealba/odoo,idncom/odoo,shaufi10/odoo,takis/odoo,agrista/odoo-saas,ccomb/OpenUpgrade,jpshort/odoo,lombritz/odoo,odoousers2014/odoo,spadae22/odoo,rgeleta/odoo,CubicERP/odoo,nagyistoce/odoo-dev-odoo,VitalPet/odoo,savoirfairelinux/odoo,JonathanStein/odoo,deKupini/erp,hip-odoo/odoo,rschnapka/odoo,BT-fgarbely/odoo,leorochael/odoo,provaleks/o8,takis/odoo,fjbatresv/odoo,cloud9UG/odoo,mvaled/OpenUpgrade,jaxkodex/odoo,idncom/odoo,datenbetrieb/odoo,hubsaysnuaa/odoo,mlaitinen/odoo,rschnapka/odoo,sv-dev1/odoo,AuyaJackie/odoo,rubencabrera/odoo,dgzurita/odoo,grap/OpenUpgrade,aviciimaxwell/odoo,provaleks/o8,gdgellatly/OCB1,odoousers2014/odoo,Grirrane/odoo,Daniel-CA/odoo,joariasl/odoo,luistorresm/odoo,deKupini/erp,osvalr/odoo,BT-astauder/odoo,tvtsoft/odoo8,ygol/odoo,hbrunn/OpenUpgrade,bguillot/OpenUpgrade,ClearCorp-dev/odoo,nuncjo/odoo,lgscofield/odoo,ubic135/odoo-design,inspyration/odoo,guerrerocarlos/odoo,pedrobaeza/odoo,nuncjo/odoo,rowemoore/odoo,demon-ru/iml-crm,goliveirab/odoo | python | ## Code Before:
{
"name" : "Human Resources Contracts",
"version" : "1.0",
"author" : "Tiny",
"category" : "Generic Modules/Human Resources",
"website" : "http://tinyerp.com/module_hr.html",
"depends" : ["hr"],
"module": "",
"description": """
Add all information on the employee form to manage contracts:
* Martial status,
* Security number,
* Place of birth, birth date, ...
You can assign several contracts per employee.
""",
"init_xml" : ["hr_contract_data.xml"],
"demo_xml" : [],
"update_xml" : ["hr_contract_view.xml"],
"active": False,
"installable": True
}
## Instruction:
Add hr_contract_security.xml file entry in update_xml section
bzr revid: mga@tinyerp.com-cceb329e8e30908ba1f6594b9502506150d105b2
## Code After:
{
"name" : "Human Resources Contracts",
"version" : "1.0",
"author" : "Tiny",
"category" : "Generic Modules/Human Resources",
"website" : "http://tinyerp.com/module_hr.html",
"depends" : ["hr"],
"module": "",
"description": """
Add all information on the employee form to manage contracts:
* Martial status,
* Security number,
* Place of birth, birth date, ...
You can assign several contracts per employee.
""",
"init_xml" : ["hr_contract_data.xml"],
"demo_xml" : [],
"update_xml" : [
"hr_contract_view.xml",
"hr_contract_security.xml"
],
"active": False,
"installable": True
}
| {
"name" : "Human Resources Contracts",
"version" : "1.0",
"author" : "Tiny",
"category" : "Generic Modules/Human Resources",
"website" : "http://tinyerp.com/module_hr.html",
"depends" : ["hr"],
"module": "",
"description": """
Add all information on the employee form to manage contracts:
* Martial status,
* Security number,
* Place of birth, birth date, ...
You can assign several contracts per employee.
""",
"init_xml" : ["hr_contract_data.xml"],
"demo_xml" : [],
- "update_xml" : ["hr_contract_view.xml"],
+ "update_xml" : [
+ "hr_contract_view.xml",
+ "hr_contract_security.xml"
+ ],
"active": False,
"installable": True
} | 5 | 0.227273 | 4 | 1 |
e6f5961bac1c19a80469d7753b14a0d76b66e7f2 | package.js | package.js | const packager = require('electron-packager');
const path = require('path');
const os = require('os');
packagerOptions = {
"dir": ".",
"out": path.resolve("dist", "windows"),
"platform": "win32",
"arch": "ia32",
"overwrite": true,
"asar": {
"unpackDir": "dfu"
},
"ignore": ["msi", "setup", ".idea"]
};
packager(packagerOptions, function done_callback (err, appPaths) {
if(err) {
console.log(err);
}
}); | const packager = require('electron-packager');
const path = require('path');
const os = require('os');
packagerOptions = {
"dir": ".",
"out": path.resolve("dist", "windows"),
"icon": path.resolve("build", "windows.ico"),
"platform": "win32",
"arch": "ia32",
"overwrite": true,
"asar": {
"unpackDir": "dfu"
},
"ignore": ["msi", "setup", ".idea"]
};
packager(packagerOptions, function done_callback (err, appPaths) {
if(err) {
console.log(err);
}
}); | Package windows version with icon | Package windows version with icon
| JavaScript | mit | NoahAndrews/qmk_firmware_flasher,NoahAndrews/qmk_firmware_flasher,NoahAndrews/qmk_firmware_flasher | javascript | ## Code Before:
const packager = require('electron-packager');
const path = require('path');
const os = require('os');
packagerOptions = {
"dir": ".",
"out": path.resolve("dist", "windows"),
"platform": "win32",
"arch": "ia32",
"overwrite": true,
"asar": {
"unpackDir": "dfu"
},
"ignore": ["msi", "setup", ".idea"]
};
packager(packagerOptions, function done_callback (err, appPaths) {
if(err) {
console.log(err);
}
});
## Instruction:
Package windows version with icon
## Code After:
const packager = require('electron-packager');
const path = require('path');
const os = require('os');
packagerOptions = {
"dir": ".",
"out": path.resolve("dist", "windows"),
"icon": path.resolve("build", "windows.ico"),
"platform": "win32",
"arch": "ia32",
"overwrite": true,
"asar": {
"unpackDir": "dfu"
},
"ignore": ["msi", "setup", ".idea"]
};
packager(packagerOptions, function done_callback (err, appPaths) {
if(err) {
console.log(err);
}
}); | const packager = require('electron-packager');
const path = require('path');
const os = require('os');
packagerOptions = {
"dir": ".",
"out": path.resolve("dist", "windows"),
+ "icon": path.resolve("build", "windows.ico"),
"platform": "win32",
"arch": "ia32",
"overwrite": true,
"asar": {
"unpackDir": "dfu"
},
"ignore": ["msi", "setup", ".idea"]
};
packager(packagerOptions, function done_callback (err, appPaths) {
if(err) {
console.log(err);
}
}); | 1 | 0.047619 | 1 | 0 |
f509a283b1e0c049f6f29f03541fbd83c888cf0a | Cargo.toml | Cargo.toml | [package]
name = "anitrack"
version = "0.1.0"
authors = ["Acizza <jonathanmce@gmail.com>"]
[dependencies]
base64 = "0.9"
chrono = "0.4"
clap = "2.29"
failure = "0.1"
lazy_static = "1.0"
regex = "0.2"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
toml = "0.4"
[dependencies.mal]
version = "0.5"
default-features = false
features = ["anime-list"] | [package]
name = "anitrack"
version = "0.1.0"
authors = ["Acizza <jonathanmce@gmail.com>"]
[profile.release]
lto = true
[dependencies]
base64 = "0.9"
chrono = "0.4"
clap = "2.29"
failure = "0.1"
lazy_static = "1.0"
regex = "0.2"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
toml = "0.4"
[dependencies.mal]
version = "0.5"
default-features = false
features = ["anime-list"] | Enable LTO for release builds | Enable LTO for release builds
| TOML | agpl-3.0 | Acizza/anitrack | toml | ## Code Before:
[package]
name = "anitrack"
version = "0.1.0"
authors = ["Acizza <jonathanmce@gmail.com>"]
[dependencies]
base64 = "0.9"
chrono = "0.4"
clap = "2.29"
failure = "0.1"
lazy_static = "1.0"
regex = "0.2"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
toml = "0.4"
[dependencies.mal]
version = "0.5"
default-features = false
features = ["anime-list"]
## Instruction:
Enable LTO for release builds
## Code After:
[package]
name = "anitrack"
version = "0.1.0"
authors = ["Acizza <jonathanmce@gmail.com>"]
[profile.release]
lto = true
[dependencies]
base64 = "0.9"
chrono = "0.4"
clap = "2.29"
failure = "0.1"
lazy_static = "1.0"
regex = "0.2"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
toml = "0.4"
[dependencies.mal]
version = "0.5"
default-features = false
features = ["anime-list"] | [package]
name = "anitrack"
version = "0.1.0"
authors = ["Acizza <jonathanmce@gmail.com>"]
+
+ [profile.release]
+ lto = true
[dependencies]
base64 = "0.9"
chrono = "0.4"
clap = "2.29"
failure = "0.1"
lazy_static = "1.0"
regex = "0.2"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
toml = "0.4"
[dependencies.mal]
version = "0.5"
default-features = false
features = ["anime-list"] | 3 | 0.136364 | 3 | 0 |
4e3642d3936e64aefa759879be258e99470bb795 | packages/redux-resource/src/utils/request-statuses.js | packages/redux-resource/src/utils/request-statuses.js | import warning from './warning';
const requestStatuses = {
IDLE: 'IDLE',
PENDING: 'PENDING',
FAILED: 'FAILED',
SUCCEEDED: 'SUCCEEDED',
};
if (process.env.NODE_ENV !== 'production') {
Object.defineProperty(requestStatuses, 'NULL', {
get() {
warning(
`You attempted to access the NULL request status from the requestStatus object ` +
`that is exported from Redux Resource. The NULL request status ` +
`has been renamed to IDLE in Redux Resource v3. Please update your ` +
`application to use the new request status. Typically, this can be ` +
`done by doing a find and replace within your source code to ` +
`replace "NULL" with "IDLE". For more information, refer to the ` +
`documentation for the request statuses at: ` +
`https://redux-resource.js.org/docs/api-reference/request-statuses.html\n\n` +
`Also, the migration guide to Redux Resource v3 can be found at: ` +
`https://github.com/jamesplease/redux-resource/blob/master/packages/redux-resource/docs/migration-guides/2-to-3.md`,
`NULL_REQUEST_STATUS_ACCESSED`
);
},
});
}
export default requestStatuses;
| import warning from './warning';
const requestStatuses = {
IDLE: 'IDLE',
PENDING: 'PENDING',
FAILED: 'FAILED',
SUCCEEDED: 'SUCCEEDED',
};
if (process.env.NODE_ENV !== 'production') {
Object.defineProperty(requestStatuses, 'NULL', {
get() {
warning(
`You attempted to access the NULL request status from the requestStatus object ` +
`that is exported from Redux Resource. The NULL request status ` +
`has been renamed to IDLE in Redux Resource v3. Please update your ` +
`application to use the new request status. Typically, this can be ` +
`done by doing a find and replace within your source code to ` +
`replace the string "NULL" with "IDLE". For more information, refer to ` +
`the documentation for the request statuses at: ` +
`https://redux-resource.js.org/docs/api-reference/request-statuses.html\n\n` +
`Also, the migration guide to Redux Resource v3 can be found at: ` +
`https://github.com/jamesplease/redux-resource/blob/master/packages/redux-resource/docs/migration-guides/2-to-3.md`,
`NULL_REQUEST_STATUS_ACCESSED`
);
},
});
}
export default requestStatuses;
| Update warning message one last time | Update warning message one last time
| JavaScript | mit | jmeas/resourceful-redux,jmeas/resourceful-redux | javascript | ## Code Before:
import warning from './warning';
const requestStatuses = {
IDLE: 'IDLE',
PENDING: 'PENDING',
FAILED: 'FAILED',
SUCCEEDED: 'SUCCEEDED',
};
if (process.env.NODE_ENV !== 'production') {
Object.defineProperty(requestStatuses, 'NULL', {
get() {
warning(
`You attempted to access the NULL request status from the requestStatus object ` +
`that is exported from Redux Resource. The NULL request status ` +
`has been renamed to IDLE in Redux Resource v3. Please update your ` +
`application to use the new request status. Typically, this can be ` +
`done by doing a find and replace within your source code to ` +
`replace "NULL" with "IDLE". For more information, refer to the ` +
`documentation for the request statuses at: ` +
`https://redux-resource.js.org/docs/api-reference/request-statuses.html\n\n` +
`Also, the migration guide to Redux Resource v3 can be found at: ` +
`https://github.com/jamesplease/redux-resource/blob/master/packages/redux-resource/docs/migration-guides/2-to-3.md`,
`NULL_REQUEST_STATUS_ACCESSED`
);
},
});
}
export default requestStatuses;
## Instruction:
Update warning message one last time
## Code After:
import warning from './warning';
const requestStatuses = {
IDLE: 'IDLE',
PENDING: 'PENDING',
FAILED: 'FAILED',
SUCCEEDED: 'SUCCEEDED',
};
if (process.env.NODE_ENV !== 'production') {
Object.defineProperty(requestStatuses, 'NULL', {
get() {
warning(
`You attempted to access the NULL request status from the requestStatus object ` +
`that is exported from Redux Resource. The NULL request status ` +
`has been renamed to IDLE in Redux Resource v3. Please update your ` +
`application to use the new request status. Typically, this can be ` +
`done by doing a find and replace within your source code to ` +
`replace the string "NULL" with "IDLE". For more information, refer to ` +
`the documentation for the request statuses at: ` +
`https://redux-resource.js.org/docs/api-reference/request-statuses.html\n\n` +
`Also, the migration guide to Redux Resource v3 can be found at: ` +
`https://github.com/jamesplease/redux-resource/blob/master/packages/redux-resource/docs/migration-guides/2-to-3.md`,
`NULL_REQUEST_STATUS_ACCESSED`
);
},
});
}
export default requestStatuses;
| import warning from './warning';
const requestStatuses = {
IDLE: 'IDLE',
PENDING: 'PENDING',
FAILED: 'FAILED',
SUCCEEDED: 'SUCCEEDED',
};
if (process.env.NODE_ENV !== 'production') {
Object.defineProperty(requestStatuses, 'NULL', {
get() {
warning(
`You attempted to access the NULL request status from the requestStatus object ` +
`that is exported from Redux Resource. The NULL request status ` +
`has been renamed to IDLE in Redux Resource v3. Please update your ` +
`application to use the new request status. Typically, this can be ` +
`done by doing a find and replace within your source code to ` +
- `replace "NULL" with "IDLE". For more information, refer to the ` +
? ----
+ `replace the string "NULL" with "IDLE". For more information, refer to ` +
? +++++++++++
- `documentation for the request statuses at: ` +
+ `the documentation for the request statuses at: ` +
? ++++
`https://redux-resource.js.org/docs/api-reference/request-statuses.html\n\n` +
`Also, the migration guide to Redux Resource v3 can be found at: ` +
`https://github.com/jamesplease/redux-resource/blob/master/packages/redux-resource/docs/migration-guides/2-to-3.md`,
`NULL_REQUEST_STATUS_ACCESSED`
);
},
});
}
export default requestStatuses; | 4 | 0.133333 | 2 | 2 |
1f1906cdaac9de93913139fa434f506f20e76f8e | README.md | README.md |
Welcome to the page of the GATE Learning Framework plugin!
* [User Documentation](https://gatenlp.github.io/gateplugin-LearningFramework/)
* [Developer Documentation/Notes](https://github.com/GateNLP/gateplugin-LearningFramework/wiki)
* [(NOT YET:) JavaDoc]()
|
Welcome to the page of the GATE Learning Framework plugin!
* [User Documentation](https://gatenlp.github.io/gateplugin-LearningFramework/)
* [Developer Documentation/Notes](https://github.com/GateNLP/gateplugin-LearningFramework/wiki)
* [JavaDoc](https://gatenlp.github.io/gateplugin-LearningFramework/apidocs/)
| Add the link to the javadoc | Add the link to the javadoc
| Markdown | lgpl-2.1 | GateNLP/gateplugin-LearningFramework,GateNLP/gateplugin-LearningFramework,GateNLP/gateplugin-LearningFramework,GateNLP/gateplugin-LearningFramework,GateNLP/gateplugin-LearningFramework | markdown | ## Code Before:
Welcome to the page of the GATE Learning Framework plugin!
* [User Documentation](https://gatenlp.github.io/gateplugin-LearningFramework/)
* [Developer Documentation/Notes](https://github.com/GateNLP/gateplugin-LearningFramework/wiki)
* [(NOT YET:) JavaDoc]()
## Instruction:
Add the link to the javadoc
## Code After:
Welcome to the page of the GATE Learning Framework plugin!
* [User Documentation](https://gatenlp.github.io/gateplugin-LearningFramework/)
* [Developer Documentation/Notes](https://github.com/GateNLP/gateplugin-LearningFramework/wiki)
* [JavaDoc](https://gatenlp.github.io/gateplugin-LearningFramework/apidocs/)
|
Welcome to the page of the GATE Learning Framework plugin!
* [User Documentation](https://gatenlp.github.io/gateplugin-LearningFramework/)
* [Developer Documentation/Notes](https://github.com/GateNLP/gateplugin-LearningFramework/wiki)
- * [(NOT YET:) JavaDoc]()
+ * [JavaDoc](https://gatenlp.github.io/gateplugin-LearningFramework/apidocs/)
| 2 | 0.25 | 1 | 1 |
f6bcbfb6b5c4734b0080eb539d1615391ef07bbf | yafsrc/YetAnotherForum.NET/default.aspx | yafsrc/YetAnotherForum.NET/default.aspx | <%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" %>
<script runat="server">
public void Page_Error( object sender, System.EventArgs e )
{
Exception x = Server.GetLastError();
YAF.Classes.Data.DB.eventlog_create( forum.PageUserID, this, x );
YAF.Classes.Utils.CreateMail.CreateLogEmail( x );
}
</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="YafHead" runat="server">
<meta name="Description" content="A bulletin board system written in ASP.NET" />
<meta name="Keywords" content="Yet Another Forum.net, Forum, ASP.NET, BB, Bulletin Board, opensource" />
<title>This title is overwritten</title>
</head>
<body>
<img src="~/images/YAFLogo.jpg" runat="server" alt="YetAnotherForum" id="imgBanner" /><br/>
<form id="form1" runat="server" enctype="multipart/form-data">
<YAF:Forum runat="server" ID="forum"></YAF:Forum>
</form>
</body>
</html>
| <%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" %>
<script runat="server">
public void Page_Error( object sender, System.EventArgs e )
{
Exception x = Server.GetLastError();
YAF.Classes.Data.DB.eventlog_create( YafContext.Current.PageUserID, this, x );
YAF.Classes.Utils.CreateMail.CreateLogEmail( x );
}
</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="YafHead" runat="server">
<meta name="Description" content="A bulletin board system written in ASP.NET" />
<meta name="Keywords" content="Yet Another Forum.net, Forum, ASP.NET, BB, Bulletin Board, opensource" />
<title>This title is overwritten</title>
</head>
<body>
<img src="~/images/YAFLogo.jpg" runat="server" alt="YetAnotherForum" id="imgBanner" /><br/>
<form id="form1" runat="server" enctype="multipart/form-data">
<YAF:Forum runat="server" ID="forum"></YAF:Forum>
</form>
</body>
</html>
| Fix for a rare problem that could occur if there was an exception very early in the ASP.NET page life-cycle (before the "forum" control was instantiated) | Fix for a rare problem that could occur if there was an exception very early in the ASP.NET page life-cycle (before the "forum" control was instantiated)
| ASP | apache-2.0 | moorehojer/YAFNET,mexxanit/YAFNET,Pathfinder-Fr/YAFNET,YAFNET/YAFNET,moorehojer/YAFNET,YAFNET/YAFNET,Pathfinder-Fr/YAFNET,Pathfinder-Fr/YAFNET,YAFNET/YAFNET,moorehojer/YAFNET,mexxanit/YAFNET,mexxanit/YAFNET,YAFNET/YAFNET | asp | ## Code Before:
<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" %>
<script runat="server">
public void Page_Error( object sender, System.EventArgs e )
{
Exception x = Server.GetLastError();
YAF.Classes.Data.DB.eventlog_create( forum.PageUserID, this, x );
YAF.Classes.Utils.CreateMail.CreateLogEmail( x );
}
</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="YafHead" runat="server">
<meta name="Description" content="A bulletin board system written in ASP.NET" />
<meta name="Keywords" content="Yet Another Forum.net, Forum, ASP.NET, BB, Bulletin Board, opensource" />
<title>This title is overwritten</title>
</head>
<body>
<img src="~/images/YAFLogo.jpg" runat="server" alt="YetAnotherForum" id="imgBanner" /><br/>
<form id="form1" runat="server" enctype="multipart/form-data">
<YAF:Forum runat="server" ID="forum"></YAF:Forum>
</form>
</body>
</html>
## Instruction:
Fix for a rare problem that could occur if there was an exception very early in the ASP.NET page life-cycle (before the "forum" control was instantiated)
## Code After:
<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" %>
<script runat="server">
public void Page_Error( object sender, System.EventArgs e )
{
Exception x = Server.GetLastError();
YAF.Classes.Data.DB.eventlog_create( YafContext.Current.PageUserID, this, x );
YAF.Classes.Utils.CreateMail.CreateLogEmail( x );
}
</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="YafHead" runat="server">
<meta name="Description" content="A bulletin board system written in ASP.NET" />
<meta name="Keywords" content="Yet Another Forum.net, Forum, ASP.NET, BB, Bulletin Board, opensource" />
<title>This title is overwritten</title>
</head>
<body>
<img src="~/images/YAFLogo.jpg" runat="server" alt="YetAnotherForum" id="imgBanner" /><br/>
<form id="form1" runat="server" enctype="multipart/form-data">
<YAF:Forum runat="server" ID="forum"></YAF:Forum>
</form>
</body>
</html>
| <%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" %>
<script runat="server">
public void Page_Error( object sender, System.EventArgs e )
{
Exception x = Server.GetLastError();
- YAF.Classes.Data.DB.eventlog_create( forum.PageUserID, this, x );
? ^^
+ YAF.Classes.Data.DB.eventlog_create( YafContext.Current.PageUserID, this, x );
? ++ + ++++++++ ^^^^
YAF.Classes.Utils.CreateMail.CreateLogEmail( x );
}
</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="YafHead" runat="server">
<meta name="Description" content="A bulletin board system written in ASP.NET" />
<meta name="Keywords" content="Yet Another Forum.net, Forum, ASP.NET, BB, Bulletin Board, opensource" />
<title>This title is overwritten</title>
</head>
<body>
<img src="~/images/YAFLogo.jpg" runat="server" alt="YetAnotherForum" id="imgBanner" /><br/>
<form id="form1" runat="server" enctype="multipart/form-data">
<YAF:Forum runat="server" ID="forum"></YAF:Forum>
</form>
</body>
</html> | 2 | 0.086957 | 1 | 1 |
04461ad197d897ab9a52960ec4c03b33eeccb05e | examples/TrieExample.java | examples/TrieExample.java | import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class TrieExample {
public static void main(String[] args) {
// Open the data file
Scanner scf = null;
try {
scf = new Scanner(new File("./data/peter_piper.txt"));
} catch (FileNotFoundException e) {
e.printStackTrace();
}
TrieST<Integer> st = new TrieST<Integer>();
// Read file's next line
while (scf.hasNextLine()) {
Scanner scl = new Scanner(scf.nextLine());
// Read line's next word
int i = 0;
while (scl.hasNext()) {
String key = scl.next();
st.put(key, i);
i++;
}
}
// print results
for (String key : st.keys()) {
System.out.println(key + " " + st.get(key));
}
System.out.println();
System.out.println("Keys with prefix \"pi\"");
for (String key : st.keysWithPrefix("pi")) {
System.out.println(key);
}
System.out.println();
}
}
| import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class TrieExample {
public static void main(String[] args) {
// Open the data file
Scanner scf = null;
try {
scf = new Scanner(new File("./data/peter_piper.txt"));
} catch (FileNotFoundException e) {
e.printStackTrace();
}
TrieST<Integer> st = new TrieST<Integer>();
// Read file's next line
while (scf.hasNextLine()) {
Scanner scl = new Scanner(scf.nextLine());
// Read line's next word
int i = 0;
while (scl.hasNext()) {
String key = scl.next();
st.put(key, i);
i++;
}
}
// print results
System.out.println("Symbol table:");
for (String key : st.keys()) {
System.out.println("* " + key + " " + st.get(key));
}
System.out.println();
System.out.println("Keys with prefix \"pi\":");
for (String key : st.keysWithPrefix("pi")) {
System.out.println("* " + key);
}
System.out.println();
System.out.println("Longest prefix of \"peckleton\":");
System.out.println("* " + st.longestPrefixOf("peckleton"));
System.out.println();
}
}
| Add usage example for longestPRefixOf() method | Add usage example for longestPRefixOf() method
| Java | mit | ruiafonsopereira/string-matching | java | ## Code Before:
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class TrieExample {
public static void main(String[] args) {
// Open the data file
Scanner scf = null;
try {
scf = new Scanner(new File("./data/peter_piper.txt"));
} catch (FileNotFoundException e) {
e.printStackTrace();
}
TrieST<Integer> st = new TrieST<Integer>();
// Read file's next line
while (scf.hasNextLine()) {
Scanner scl = new Scanner(scf.nextLine());
// Read line's next word
int i = 0;
while (scl.hasNext()) {
String key = scl.next();
st.put(key, i);
i++;
}
}
// print results
for (String key : st.keys()) {
System.out.println(key + " " + st.get(key));
}
System.out.println();
System.out.println("Keys with prefix \"pi\"");
for (String key : st.keysWithPrefix("pi")) {
System.out.println(key);
}
System.out.println();
}
}
## Instruction:
Add usage example for longestPRefixOf() method
## Code After:
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class TrieExample {
public static void main(String[] args) {
// Open the data file
Scanner scf = null;
try {
scf = new Scanner(new File("./data/peter_piper.txt"));
} catch (FileNotFoundException e) {
e.printStackTrace();
}
TrieST<Integer> st = new TrieST<Integer>();
// Read file's next line
while (scf.hasNextLine()) {
Scanner scl = new Scanner(scf.nextLine());
// Read line's next word
int i = 0;
while (scl.hasNext()) {
String key = scl.next();
st.put(key, i);
i++;
}
}
// print results
System.out.println("Symbol table:");
for (String key : st.keys()) {
System.out.println("* " + key + " " + st.get(key));
}
System.out.println();
System.out.println("Keys with prefix \"pi\":");
for (String key : st.keysWithPrefix("pi")) {
System.out.println("* " + key);
}
System.out.println();
System.out.println("Longest prefix of \"peckleton\":");
System.out.println("* " + st.longestPrefixOf("peckleton"));
System.out.println();
}
}
| import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class TrieExample {
public static void main(String[] args) {
// Open the data file
Scanner scf = null;
try {
scf = new Scanner(new File("./data/peter_piper.txt"));
} catch (FileNotFoundException e) {
e.printStackTrace();
}
TrieST<Integer> st = new TrieST<Integer>();
// Read file's next line
while (scf.hasNextLine()) {
Scanner scl = new Scanner(scf.nextLine());
// Read line's next word
int i = 0;
while (scl.hasNext()) {
String key = scl.next();
st.put(key, i);
i++;
}
}
// print results
+ System.out.println("Symbol table:");
for (String key : st.keys()) {
- System.out.println(key + " " + st.get(key));
+ System.out.println("* " + key + " " + st.get(key));
? +++++++
}
System.out.println();
- System.out.println("Keys with prefix \"pi\"");
+ System.out.println("Keys with prefix \"pi\":");
? +
for (String key : st.keysWithPrefix("pi")) {
- System.out.println(key);
+ System.out.println("* " + key);
? +++++++
}
+ System.out.println();
+
+ System.out.println("Longest prefix of \"peckleton\":");
+ System.out.println("* " + st.longestPrefixOf("peckleton"));
System.out.println();
}
} | 11 | 0.25 | 8 | 3 |
ea28eb6b88bc40393c1e6e6b147f5729370d869a | README.md | README.md |
Usage
-------
* Fork the project on githubs
* Import in Flowhub
* Make changes, syncronize in Flowhub
Setup autodeploy
--------------
To enable autodeploy
* Change repo name in Gruntfile.coffee
* create a [personal github access token](https://help.github.com/articles/creating-an-access-token-for-command-line-use/)
* Enable Travis CI for your fork
* Change to use your own GH_TOKEN
|
[Hello World](http://noflojs.org/noflo-browser-app/main.html)
Usage
-------
* Fork the project on githubs
* Import in Flowhub
* Make changes, syncronize in Flowhub
Setup autodeploy
--------------
To enable autodeploy
* Change repo name in Gruntfile.coffee
* create a [personal github access token](https://help.github.com/articles/creating-an-access-token-for-command-line-use/)
* Enable Travis CI for your fork
* Change to use your own GH_TOKEN
| Add link to deployed Hello World | Add link to deployed Hello World
| Markdown | mit | jonnor/synchrony,YuepengGuo/noflo-browser-app,meticulo3366/noflo-browser-app,mariyater403/my_br,forresto/the-graph,noflo/noflo-mirobot,ariva-posi/test3,mariyater403/my_br,automata/noflo-mirobot,noflo/noflo-browser-app,alfa256/noflo-browser-app,klyap/StreamPy-UI-components,noflo/noflo-browser-app,amonks/noflo-browser-app | markdown | ## Code Before:
Usage
-------
* Fork the project on githubs
* Import in Flowhub
* Make changes, syncronize in Flowhub
Setup autodeploy
--------------
To enable autodeploy
* Change repo name in Gruntfile.coffee
* create a [personal github access token](https://help.github.com/articles/creating-an-access-token-for-command-line-use/)
* Enable Travis CI for your fork
* Change to use your own GH_TOKEN
## Instruction:
Add link to deployed Hello World
## Code After:
[Hello World](http://noflojs.org/noflo-browser-app/main.html)
Usage
-------
* Fork the project on githubs
* Import in Flowhub
* Make changes, syncronize in Flowhub
Setup autodeploy
--------------
To enable autodeploy
* Change repo name in Gruntfile.coffee
* create a [personal github access token](https://help.github.com/articles/creating-an-access-token-for-command-line-use/)
* Enable Travis CI for your fork
* Change to use your own GH_TOKEN
| +
+ [Hello World](http://noflojs.org/noflo-browser-app/main.html)
Usage
-------
* Fork the project on githubs
* Import in Flowhub
* Make changes, syncronize in Flowhub
Setup autodeploy
--------------
To enable autodeploy
* Change repo name in Gruntfile.coffee
* create a [personal github access token](https://help.github.com/articles/creating-an-access-token-for-command-line-use/)
* Enable Travis CI for your fork
* Change to use your own GH_TOKEN | 2 | 0.125 | 2 | 0 |
e5971c6024b2ec6a3bde99f213460593e5886eed | .rubocop.yml | .rubocop.yml | require: rubocop-rspec
AllCops:
Exclude:
- "resume.rb"
- "strings_en.rb"
- "strings_it.rb"
- "strings_ja.rb"
TargetRubyVersion: 2.3
Metrics/AbcSize:
Max: 20
Metrics/MethodLength:
Max: 30
Metrics/ModuleLength:
Exclude:
- "spec/**/*"
RSpec/ExampleLength:
Max: 9
RSpec/MultipleExpectations:
Max: 5
# NOTE: This deep nesting mostly due to the wide range of paths that gem
# installation and file fetching can take, and the different errors that
# can occur.
RSpec/NestedGroups:
MaxNesting: 8
Style/Documentation:
Enabled: false
Style/DotPosition:
EnforcedStyle: trailing
# FIXME: Disabled for now...
Style/FrozenStringLiteralComment:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/MultilineMethodCallIndentation:
Exclude:
- "spec/**/*"
Style/StringLiterals:
EnforcedStyle: double_quotes
ConsistentQuotesInMultiline: true
| require: rubocop-rspec
AllCops:
Exclude:
- "resume.rb"
- "strings_en.rb"
- "strings_it.rb"
- "strings_ja.rb"
TargetRubyVersion: 2.3
Metrics/AbcSize:
Max: 20
Metrics/MethodLength:
Max: 30
Metrics/ModuleLength:
Exclude:
- "spec/**/*"
RSpec/ExampleLength:
Max: 9
RSpec/MultipleExpectations:
Max: 5
# NOTE: This deep nesting mostly due to the wide range of paths that gem
# installation and file fetching can take, and the different errors that
# can occur.
RSpec/NestedGroups:
MaxNesting: 8
Style/Documentation:
Enabled: false
Style/DotPosition:
EnforcedStyle: trailing
# NOTE: PDF generation requires string mutation, so this can't be used for now.
Style/FrozenStringLiteralComment:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/MultilineMethodCallIndentation:
Exclude:
- "spec/**/*"
Style/StringLiterals:
EnforcedStyle: double_quotes
ConsistentQuotesInMultiline: true
| Add note about frozen string literal | Add note about frozen string literal
| YAML | mit | paulfioravanti/resume | yaml | ## Code Before:
require: rubocop-rspec
AllCops:
Exclude:
- "resume.rb"
- "strings_en.rb"
- "strings_it.rb"
- "strings_ja.rb"
TargetRubyVersion: 2.3
Metrics/AbcSize:
Max: 20
Metrics/MethodLength:
Max: 30
Metrics/ModuleLength:
Exclude:
- "spec/**/*"
RSpec/ExampleLength:
Max: 9
RSpec/MultipleExpectations:
Max: 5
# NOTE: This deep nesting mostly due to the wide range of paths that gem
# installation and file fetching can take, and the different errors that
# can occur.
RSpec/NestedGroups:
MaxNesting: 8
Style/Documentation:
Enabled: false
Style/DotPosition:
EnforcedStyle: trailing
# FIXME: Disabled for now...
Style/FrozenStringLiteralComment:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/MultilineMethodCallIndentation:
Exclude:
- "spec/**/*"
Style/StringLiterals:
EnforcedStyle: double_quotes
ConsistentQuotesInMultiline: true
## Instruction:
Add note about frozen string literal
## Code After:
require: rubocop-rspec
AllCops:
Exclude:
- "resume.rb"
- "strings_en.rb"
- "strings_it.rb"
- "strings_ja.rb"
TargetRubyVersion: 2.3
Metrics/AbcSize:
Max: 20
Metrics/MethodLength:
Max: 30
Metrics/ModuleLength:
Exclude:
- "spec/**/*"
RSpec/ExampleLength:
Max: 9
RSpec/MultipleExpectations:
Max: 5
# NOTE: This deep nesting mostly due to the wide range of paths that gem
# installation and file fetching can take, and the different errors that
# can occur.
RSpec/NestedGroups:
MaxNesting: 8
Style/Documentation:
Enabled: false
Style/DotPosition:
EnforcedStyle: trailing
# NOTE: PDF generation requires string mutation, so this can't be used for now.
Style/FrozenStringLiteralComment:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/MultilineMethodCallIndentation:
Exclude:
- "spec/**/*"
Style/StringLiterals:
EnforcedStyle: double_quotes
ConsistentQuotesInMultiline: true
| require: rubocop-rspec
AllCops:
Exclude:
- "resume.rb"
- "strings_en.rb"
- "strings_it.rb"
- "strings_ja.rb"
TargetRubyVersion: 2.3
Metrics/AbcSize:
Max: 20
Metrics/MethodLength:
Max: 30
Metrics/ModuleLength:
Exclude:
- "spec/**/*"
RSpec/ExampleLength:
Max: 9
RSpec/MultipleExpectations:
Max: 5
# NOTE: This deep nesting mostly due to the wide range of paths that gem
# installation and file fetching can take, and the different errors that
# can occur.
RSpec/NestedGroups:
MaxNesting: 8
Style/Documentation:
Enabled: false
Style/DotPosition:
EnforcedStyle: trailing
- # FIXME: Disabled for now...
+ # NOTE: PDF generation requires string mutation, so this can't be used for now.
Style/FrozenStringLiteralComment:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/MultilineMethodCallIndentation:
Exclude:
- "spec/**/*"
Style/StringLiterals:
EnforcedStyle: double_quotes
ConsistentQuotesInMultiline: true | 2 | 0.038462 | 1 | 1 |
758dc40a04e1d97a325ea172207086e0820cd739 | README.md | README.md | This is our CL4LRL software project!
============
| Welcome to our CL4LRL software project!
Generating Pronunciation Lexicons
for Small-Vocabulary ASR in LRLs
============
Anjana Vakil & Max Paulus
Computational Linguistics for Low-Resource Languages
Software Project, Winter Semester 2013/14
University of Saarland
------------
Developers trying to incorporate speech recognition interfaces in a low-resource language (LRL) into their applications currently face the hurdle of not finding recognition engines trained on their target language. Although tools such as Carnegie Mellon University's Sphinx simplify the creation of new acoustic models for recognition, they require large amounts of training data (audio recordings) in the target language. However, for small-vocabulary applications, an existing recognizer for a high-resource language (HRL) can be used to perform recognition in the target language. This requires a pronunciation lexicon mapping the relevant words in the target language into sequences of sounds in the HRL.
Our goal is to build an easy-to-use application that will allow even naive users to automatically create a pronunciation lexicon for words in any language, using a small number of audio recordings and a pre-existing recognition engine in a HRL such as English. The resulting lexicon can then be used to add small-vocabulary speech recognition functionality to applications in the LRL. | Add mini project description to readme | Add mini project description to readme
| Markdown | bsd-2-clause | lex4all/lex4all,lex4all/lex4all,lex4all/lex4all | markdown | ## Code Before:
This is our CL4LRL software project!
============
## Instruction:
Add mini project description to readme
## Code After:
Welcome to our CL4LRL software project!
Generating Pronunciation Lexicons
for Small-Vocabulary ASR in LRLs
============
Anjana Vakil & Max Paulus
Computational Linguistics for Low-Resource Languages
Software Project, Winter Semester 2013/14
University of Saarland
------------
Developers trying to incorporate speech recognition interfaces in a low-resource language (LRL) into their applications currently face the hurdle of not finding recognition engines trained on their target language. Although tools such as Carnegie Mellon University's Sphinx simplify the creation of new acoustic models for recognition, they require large amounts of training data (audio recordings) in the target language. However, for small-vocabulary applications, an existing recognizer for a high-resource language (HRL) can be used to perform recognition in the target language. This requires a pronunciation lexicon mapping the relevant words in the target language into sequences of sounds in the HRL.
Our goal is to build an easy-to-use application that will allow even naive users to automatically create a pronunciation lexicon for words in any language, using a small number of audio recordings and a pre-existing recognition engine in a HRL such as English. The resulting lexicon can then be used to add small-vocabulary speech recognition functionality to applications in the LRL. | - This is our CL4LRL software project!
? ^^^^ ^^
+ Welcome to our CL4LRL software project!
? ^^^^^^^ ^^
+
+ Generating Pronunciation Lexicons
+ for Small-Vocabulary ASR in LRLs
============
+
+ Anjana Vakil & Max Paulus
+ Computational Linguistics for Low-Resource Languages
+ Software Project, Winter Semester 2013/14
+ University of Saarland
+ ------------
+
+
+ Developers trying to incorporate speech recognition interfaces in a low-resource language (LRL) into their applications currently face the hurdle of not finding recognition engines trained on their target language. Although tools such as Carnegie Mellon University's Sphinx simplify the creation of new acoustic models for recognition, they require large amounts of training data (audio recordings) in the target language. However, for small-vocabulary applications, an existing recognizer for a high-resource language (HRL) can be used to perform recognition in the target language. This requires a pronunciation lexicon mapping the relevant words in the target language into sequences of sounds in the HRL.
+
+ Our goal is to build an easy-to-use application that will allow even naive users to automatically create a pronunciation lexicon for words in any language, using a small number of audio recordings and a pre-existing recognition engine in a HRL such as English. The resulting lexicon can then be used to add small-vocabulary speech recognition functionality to applications in the LRL. | 16 | 8 | 15 | 1 |
a10b5f6124c7e3ae4b1eb8beb981c36404be9ba5 | README.md | README.md | PPT Templates
=============
PPT Template is a small templating library to generate PowerPoint presentations.
This project is mainly based on [POI XSLF](https://poi.apache.org/slideshow/xslf-cookbook.html).
Templates are directly created in PowerPoint using a variable system.
Getting started
---------------
Include PPT Templates in your project:
```xml
<dependency>
<groupId>com.coreoz</groupId>
<artifactId>ppt-templates</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
```
Create a template and fill it with your data:
```java
try(FileOutputStream out = new FileOutputStream("generated.pptx")) {
new PptMapper()
.text("title", "Hello")
.text("subtitle", "World!")
.processTemplate(PptTemplateDemo.class.getResourceAsStream("/title.pptx"))
.write(out);
}
```
Tadaaa:

Features
--------
- text replacement,
- image replacement,
- text and shape styling,
- text, shape and image hiding.
This features are directly configurable via the `com.coreoz.ppt.PptMapper` API.
For image replacement, styling or hiding elements, variables must be put on a link
on these elements.
Step 1:

Step 2:

| PPT Templates
=============
PPT Template is a small templating library to generate PowerPoint presentations.
This project is mainly based on [POI XSLF](https://poi.apache.org/slideshow/xslf-cookbook.html).
Templates are directly created in PowerPoint using a variable system.
Getting started
---------------
Include PPT Templates in your project:
```xml
<dependency>
<groupId>com.coreoz</groupId>
<artifactId>ppt-templates</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
```
Create a template and fill it with your data:
```java
try(FileOutputStream out = new FileOutputStream("generated.pptx")) {
new PptMapper()
.text("title", "Hello")
.text("subtitle", "World!")
.processTemplate(PptTemplateDemo.class.getResourceAsStream("/title.pptx"))
.write(out);
}
```
Tadaaa:

Features
--------
- text replacement,
- image replacement,
- text and shape styling,
- text, shape and image hiding.
This features are directly configurable via the `com.coreoz.ppt.PptMapper` API.
For image replacement, styling or hiding elements, variables must be put on a link
on these elements.
Step 1:

Step 2:

Demo
----
See the [demonstration project](demo).
| Add link to the demo project | Add link to the demo project | Markdown | apache-2.0 | Coreoz/PPT-Templates | markdown | ## Code Before:
PPT Templates
=============
PPT Template is a small templating library to generate PowerPoint presentations.
This project is mainly based on [POI XSLF](https://poi.apache.org/slideshow/xslf-cookbook.html).
Templates are directly created in PowerPoint using a variable system.
Getting started
---------------
Include PPT Templates in your project:
```xml
<dependency>
<groupId>com.coreoz</groupId>
<artifactId>ppt-templates</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
```
Create a template and fill it with your data:
```java
try(FileOutputStream out = new FileOutputStream("generated.pptx")) {
new PptMapper()
.text("title", "Hello")
.text("subtitle", "World!")
.processTemplate(PptTemplateDemo.class.getResourceAsStream("/title.pptx"))
.write(out);
}
```
Tadaaa:

Features
--------
- text replacement,
- image replacement,
- text and shape styling,
- text, shape and image hiding.
This features are directly configurable via the `com.coreoz.ppt.PptMapper` API.
For image replacement, styling or hiding elements, variables must be put on a link
on these elements.
Step 1:

Step 2:

## Instruction:
Add link to the demo project
## Code After:
PPT Templates
=============
PPT Template is a small templating library to generate PowerPoint presentations.
This project is mainly based on [POI XSLF](https://poi.apache.org/slideshow/xslf-cookbook.html).
Templates are directly created in PowerPoint using a variable system.
Getting started
---------------
Include PPT Templates in your project:
```xml
<dependency>
<groupId>com.coreoz</groupId>
<artifactId>ppt-templates</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
```
Create a template and fill it with your data:
```java
try(FileOutputStream out = new FileOutputStream("generated.pptx")) {
new PptMapper()
.text("title", "Hello")
.text("subtitle", "World!")
.processTemplate(PptTemplateDemo.class.getResourceAsStream("/title.pptx"))
.write(out);
}
```
Tadaaa:

Features
--------
- text replacement,
- image replacement,
- text and shape styling,
- text, shape and image hiding.
This features are directly configurable via the `com.coreoz.ppt.PptMapper` API.
For image replacement, styling or hiding elements, variables must be put on a link
on these elements.
Step 1:

Step 2:

Demo
----
See the [demonstration project](demo).
| PPT Templates
=============
PPT Template is a small templating library to generate PowerPoint presentations.
This project is mainly based on [POI XSLF](https://poi.apache.org/slideshow/xslf-cookbook.html).
Templates are directly created in PowerPoint using a variable system.
Getting started
---------------
Include PPT Templates in your project:
```xml
<dependency>
<groupId>com.coreoz</groupId>
<artifactId>ppt-templates</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
```
Create a template and fill it with your data:
```java
try(FileOutputStream out = new FileOutputStream("generated.pptx")) {
new PptMapper()
.text("title", "Hello")
.text("subtitle", "World!")
.processTemplate(PptTemplateDemo.class.getResourceAsStream("/title.pptx"))
.write(out);
}
```
Tadaaa:

Features
--------
- text replacement,
- image replacement,
- text and shape styling,
- text, shape and image hiding.
This features are directly configurable via the `com.coreoz.ppt.PptMapper` API.
For image replacement, styling or hiding elements, variables must be put on a link
on these elements.
Step 1:

Step 2:

+
+ Demo
+ ----
+ See the [demonstration project](demo). | 4 | 0.085106 | 4 | 0 |
aae3b081d9c91673e4afaef62de0740da016b766 | lib/views/game.erb | lib/views/game.erb | <html>
<head>
<title>TicTacToe</title>
</head>
<body>
<h1>TicTacToe</h1>
<table>
<tr>
<td><%= @game.gametype.board_arr[0] %> </td>
</tr>
</table>
<form method='post' action='/game/move'>
<label for='grid_position'>Position:</label>
<input type='text' name='grid_position' id='grid_position' autofocus />
<input type='submit' value='Submit' />
</form>
</body>
</html>
| <html>
<head>
<title>TicTacToe</title>
</head>
<body>
<h1>TicTacToe</h1>
<table style="border: 10px solid black;">
<tr>
<td style="border: 10px solid black;"><%= @game.ttt_board.board_arr[0] %></td>
<td style="border: 10px solid black;"><%= @game.ttt_board.board_arr[1] %></td>
<td style="border: 10px solid black;"><%= @game.ttt_board.board_arr[2] %></td>
</tr>
<tr>
<td style="border: 10px solid black;"><%= @game.ttt_board.board_arr[3] %></td>
<td style="border: 10px solid black;"><%= @game.ttt_board.board_arr[4] %></td>
<td style="border: 10px solid black;"><%= @game.ttt_board.board_arr[5] %></td>
</tr>
<tr>
<td style="border: 10px solid black;"><%= @game.ttt_board.board_arr[6] %></td>
<td style="border: 10px solid black;"><%= @game.ttt_board.board_arr[7] %></td>
<td style="border: 10px solid black;"><%= @game.ttt_board.board_arr[8] %></td>
</tr>
</table>
<form method='post' action='/game/move'>
<label for='grid_position'>Position:</label>
<input type='text' name='grid_position' id='grid_position' autofocus />
<input type='submit' value='Submit' />
</form>
</body>
</html>
| Create html table for web view | Create html table for web view
| HTML+ERB | mit | portatlas/tictactoe,portatlas/tictactoe | html+erb | ## Code Before:
<html>
<head>
<title>TicTacToe</title>
</head>
<body>
<h1>TicTacToe</h1>
<table>
<tr>
<td><%= @game.gametype.board_arr[0] %> </td>
</tr>
</table>
<form method='post' action='/game/move'>
<label for='grid_position'>Position:</label>
<input type='text' name='grid_position' id='grid_position' autofocus />
<input type='submit' value='Submit' />
</form>
</body>
</html>
## Instruction:
Create html table for web view
## Code After:
<html>
<head>
<title>TicTacToe</title>
</head>
<body>
<h1>TicTacToe</h1>
<table style="border: 10px solid black;">
<tr>
<td style="border: 10px solid black;"><%= @game.ttt_board.board_arr[0] %></td>
<td style="border: 10px solid black;"><%= @game.ttt_board.board_arr[1] %></td>
<td style="border: 10px solid black;"><%= @game.ttt_board.board_arr[2] %></td>
</tr>
<tr>
<td style="border: 10px solid black;"><%= @game.ttt_board.board_arr[3] %></td>
<td style="border: 10px solid black;"><%= @game.ttt_board.board_arr[4] %></td>
<td style="border: 10px solid black;"><%= @game.ttt_board.board_arr[5] %></td>
</tr>
<tr>
<td style="border: 10px solid black;"><%= @game.ttt_board.board_arr[6] %></td>
<td style="border: 10px solid black;"><%= @game.ttt_board.board_arr[7] %></td>
<td style="border: 10px solid black;"><%= @game.ttt_board.board_arr[8] %></td>
</tr>
</table>
<form method='post' action='/game/move'>
<label for='grid_position'>Position:</label>
<input type='text' name='grid_position' id='grid_position' autofocus />
<input type='submit' value='Submit' />
</form>
</body>
</html>
| <html>
<head>
<title>TicTacToe</title>
</head>
<body>
<h1>TicTacToe</h1>
- <table>
+ <table style="border: 10px solid black;">
<tr>
- <td><%= @game.gametype.board_arr[0] %> </td>
+ <td style="border: 10px solid black;"><%= @game.ttt_board.board_arr[0] %></td>
+ <td style="border: 10px solid black;"><%= @game.ttt_board.board_arr[1] %></td>
+ <td style="border: 10px solid black;"><%= @game.ttt_board.board_arr[2] %></td>
+ </tr>
+ <tr>
+ <td style="border: 10px solid black;"><%= @game.ttt_board.board_arr[3] %></td>
+ <td style="border: 10px solid black;"><%= @game.ttt_board.board_arr[4] %></td>
+ <td style="border: 10px solid black;"><%= @game.ttt_board.board_arr[5] %></td>
+ </tr>
+ <tr>
+ <td style="border: 10px solid black;"><%= @game.ttt_board.board_arr[6] %></td>
+ <td style="border: 10px solid black;"><%= @game.ttt_board.board_arr[7] %></td>
+ <td style="border: 10px solid black;"><%= @game.ttt_board.board_arr[8] %></td>
</tr>
</table>
<form method='post' action='/game/move'>
<label for='grid_position'>Position:</label>
<input type='text' name='grid_position' id='grid_position' autofocus />
<input type='submit' value='Submit' />
</form>
</body>
</html> | 16 | 0.761905 | 14 | 2 |
99083cff6557332cb33e16239857157d35775294 | Sources/PageboyTests/PageboyPropertyTests.swift | Sources/PageboyTests/PageboyPropertyTests.swift | //
// PageboyPropertyTests.swift
// Pageboy
//
// Created by Merrick Sapsford on 22/03/2017.
// Copyright © 2017 Merrick Sapsford. All rights reserved.
//
import XCTest
@testable import Pageboy
class PageboyPropertyTests: PageboyTests {
/// Test that currentViewController property returns correct view controller.
func testCorrectCurrentViewControllerReported() {
self.dataSource.numberOfPages = 5
self.pageboyViewController.dataSource = self.dataSource
self.pageboyViewController.scrollToPage(.next, animated: false)
let currentViewController = self.pageboyViewController.currentViewController
XCTAssertTrue(currentViewController === self.dataSource.viewControllers[1],
"currentViewController property is incorrect following transitions.")
}
/// Test that setting isScrollEnabled updates internal scroll view correctly.
func testIsScrollEnabledUpdates() {
self.dataSource.numberOfPages = 5
self.pageboyViewController.dataSource = self.dataSource
self.pageboyViewController.isScrollEnabled = false
XCTAssertTrue(self.pageboyViewController.pageViewController?.scrollView?.isScrollEnabled == false,
"isScrollEnabled does not update the internal scrollView correctly.")
}
}
| //
// PageboyPropertyTests.swift
// Pageboy
//
// Created by Merrick Sapsford on 22/03/2017.
// Copyright © 2017 Merrick Sapsford. All rights reserved.
//
import XCTest
@testable import Pageboy
class PageboyPropertyTests: PageboyTests {
/// Test that currentViewController property returns correct view controller.
func testCorrectCurrentViewControllerReported() {
self.dataSource.numberOfPages = 5
self.pageboyViewController.dataSource = self.dataSource
self.pageboyViewController.scrollToPage(.next, animated: false)
let currentViewController = self.pageboyViewController.currentViewController
XCTAssertTrue(currentViewController === self.dataSource.viewControllers[1],
"currentViewController property is incorrect following transitions.")
}
/// Test that setting isScrollEnabled updates internal scroll view correctly.
func testIsScrollEnabledUpdates() {
self.dataSource.numberOfPages = 5
self.pageboyViewController.dataSource = self.dataSource
self.pageboyViewController.isScrollEnabled = false
XCTAssertTrue(self.pageboyViewController.pageViewController?.scrollView?.isScrollEnabled == false,
"isScrollEnabled does not update the internal scrollView correctly.")
}
func testPageViewControllerOptions() {
self.dataSource.numberOfPages = 5
self.pageboyViewController.dataSource = self.dataSource
self.pageboyViewController.interPageSpacing = 12.0
XCTAssert(self.pageboyViewController.pageViewControllerOptions?.count ?? 0 > 0,
"Custom UIPageViewController options are not being passed.")
}
}
| Add tests for page view controller options | Add tests for page view controller options
| Swift | mit | uias/Pageboy,uias/Pageboy | swift | ## Code Before:
//
// PageboyPropertyTests.swift
// Pageboy
//
// Created by Merrick Sapsford on 22/03/2017.
// Copyright © 2017 Merrick Sapsford. All rights reserved.
//
import XCTest
@testable import Pageboy
class PageboyPropertyTests: PageboyTests {
/// Test that currentViewController property returns correct view controller.
func testCorrectCurrentViewControllerReported() {
self.dataSource.numberOfPages = 5
self.pageboyViewController.dataSource = self.dataSource
self.pageboyViewController.scrollToPage(.next, animated: false)
let currentViewController = self.pageboyViewController.currentViewController
XCTAssertTrue(currentViewController === self.dataSource.viewControllers[1],
"currentViewController property is incorrect following transitions.")
}
/// Test that setting isScrollEnabled updates internal scroll view correctly.
func testIsScrollEnabledUpdates() {
self.dataSource.numberOfPages = 5
self.pageboyViewController.dataSource = self.dataSource
self.pageboyViewController.isScrollEnabled = false
XCTAssertTrue(self.pageboyViewController.pageViewController?.scrollView?.isScrollEnabled == false,
"isScrollEnabled does not update the internal scrollView correctly.")
}
}
## Instruction:
Add tests for page view controller options
## Code After:
//
// PageboyPropertyTests.swift
// Pageboy
//
// Created by Merrick Sapsford on 22/03/2017.
// Copyright © 2017 Merrick Sapsford. All rights reserved.
//
import XCTest
@testable import Pageboy
class PageboyPropertyTests: PageboyTests {
/// Test that currentViewController property returns correct view controller.
func testCorrectCurrentViewControllerReported() {
self.dataSource.numberOfPages = 5
self.pageboyViewController.dataSource = self.dataSource
self.pageboyViewController.scrollToPage(.next, animated: false)
let currentViewController = self.pageboyViewController.currentViewController
XCTAssertTrue(currentViewController === self.dataSource.viewControllers[1],
"currentViewController property is incorrect following transitions.")
}
/// Test that setting isScrollEnabled updates internal scroll view correctly.
func testIsScrollEnabledUpdates() {
self.dataSource.numberOfPages = 5
self.pageboyViewController.dataSource = self.dataSource
self.pageboyViewController.isScrollEnabled = false
XCTAssertTrue(self.pageboyViewController.pageViewController?.scrollView?.isScrollEnabled == false,
"isScrollEnabled does not update the internal scrollView correctly.")
}
func testPageViewControllerOptions() {
self.dataSource.numberOfPages = 5
self.pageboyViewController.dataSource = self.dataSource
self.pageboyViewController.interPageSpacing = 12.0
XCTAssert(self.pageboyViewController.pageViewControllerOptions?.count ?? 0 > 0,
"Custom UIPageViewController options are not being passed.")
}
}
| //
// PageboyPropertyTests.swift
// Pageboy
//
// Created by Merrick Sapsford on 22/03/2017.
// Copyright © 2017 Merrick Sapsford. All rights reserved.
//
import XCTest
@testable import Pageboy
class PageboyPropertyTests: PageboyTests {
/// Test that currentViewController property returns correct view controller.
func testCorrectCurrentViewControllerReported() {
self.dataSource.numberOfPages = 5
self.pageboyViewController.dataSource = self.dataSource
self.pageboyViewController.scrollToPage(.next, animated: false)
let currentViewController = self.pageboyViewController.currentViewController
XCTAssertTrue(currentViewController === self.dataSource.viewControllers[1],
"currentViewController property is incorrect following transitions.")
}
/// Test that setting isScrollEnabled updates internal scroll view correctly.
func testIsScrollEnabledUpdates() {
self.dataSource.numberOfPages = 5
self.pageboyViewController.dataSource = self.dataSource
self.pageboyViewController.isScrollEnabled = false
XCTAssertTrue(self.pageboyViewController.pageViewController?.scrollView?.isScrollEnabled == false,
"isScrollEnabled does not update the internal scrollView correctly.")
}
+
+ func testPageViewControllerOptions() {
+ self.dataSource.numberOfPages = 5
+ self.pageboyViewController.dataSource = self.dataSource
+
+ self.pageboyViewController.interPageSpacing = 12.0
+
+ XCTAssert(self.pageboyViewController.pageViewControllerOptions?.count ?? 0 > 0,
+ "Custom UIPageViewController options are not being passed.")
+ }
} | 10 | 0.27027 | 10 | 0 |
fdb9cfd590eaa427420083c77c7633d60e923276 | cellid_local.php | cellid_local.php | <?php
require_once("config.php");
if(!@mysql_connect("$DBIP","$DBUSER","$DBPASS"))
{
echo "Result:4";
die();
}
mysql_select_db("$DBNAME");
if ($_REQUEST["myl"] != "")
{
$temp = split(":", $_REQUEST["myl"]);
$mcc = $temp[0];
$mnc = $temp[1];
$lac = $temp[2];
$cid = $temp[3];
} else
{
$mcc = $_REQUEST["mcc"];
$mnc = $_REQUEST["mnc"];
$lac = $_REQUEST["lac"];
$cid = $_REQUEST["cid"];
}
if ( $mcc == "" || $mnc == "" || $lac == "" || $cid == "" )
{
echo "Result:7"; // CellID not specified
die();
}
$result=mysql_query("Select latitude,longitude FROM cellids WHERE cellid='$mcc-$mnc-$lac-$cid' order by dateadded desc limit 0,1");
if ( $row=mysql_fetch_array($result) )
echo "Result:0|".$row['latitude']."|".$row['longitude'];
else
echo "Result:6"; // No lat/long for specified CellID
die();
?>
| <?php
require_once("database.php");
$db = connect_save();
if ($db === null)
{
echo "Result:4";
die();
}
if ($_REQUEST["myl"] != "")
{
$temp = split(":", $_REQUEST["myl"]);
$mcc = $temp[0];
$mnc = $temp[1];
$lac = $temp[2];
$cid = $temp[3];
} else
{
$mcc = $_REQUEST["mcc"];
$mnc = $_REQUEST["mnc"];
$lac = $_REQUEST["lac"];
$cid = $_REQUEST["cid"];
}
if ( $mcc == "" || $mnc == "" || $lac == "" || $cid == "" )
{
echo "Result:7"; // CellID not specified
die();
}
$result = $db->exec_sql("SELECT Latitude, Longitude FROM cellids WHERE CellID=? ORDER BY DateAdded DESC LIMIT 0,1", "$mcc-$mnc-$lac-$cid");
if ( $row=$result->fetch() )
echo "Result:0|$row[Latitude]|$row[Longitude]";
else
echo "Result:6"; // No lat/long for specified CellID
die();
?>
| Use PDO in the local cellid script | Use PDO in the local cellid script
With 13ae949 the `mysql` calls have been changed to calls using the `PDO`
classes. This updates `cellid_local.php` to use `PDO` as well. It also uses
the proper capitalisation of the columns because at least the SQLite driver
is case sensitive.
| PHP | mit | espinosaluis/TrackMeViewer,espinosaluis/TrackMeViewer | php | ## Code Before:
<?php
require_once("config.php");
if(!@mysql_connect("$DBIP","$DBUSER","$DBPASS"))
{
echo "Result:4";
die();
}
mysql_select_db("$DBNAME");
if ($_REQUEST["myl"] != "")
{
$temp = split(":", $_REQUEST["myl"]);
$mcc = $temp[0];
$mnc = $temp[1];
$lac = $temp[2];
$cid = $temp[3];
} else
{
$mcc = $_REQUEST["mcc"];
$mnc = $_REQUEST["mnc"];
$lac = $_REQUEST["lac"];
$cid = $_REQUEST["cid"];
}
if ( $mcc == "" || $mnc == "" || $lac == "" || $cid == "" )
{
echo "Result:7"; // CellID not specified
die();
}
$result=mysql_query("Select latitude,longitude FROM cellids WHERE cellid='$mcc-$mnc-$lac-$cid' order by dateadded desc limit 0,1");
if ( $row=mysql_fetch_array($result) )
echo "Result:0|".$row['latitude']."|".$row['longitude'];
else
echo "Result:6"; // No lat/long for specified CellID
die();
?>
## Instruction:
Use PDO in the local cellid script
With 13ae949 the `mysql` calls have been changed to calls using the `PDO`
classes. This updates `cellid_local.php` to use `PDO` as well. It also uses
the proper capitalisation of the columns because at least the SQLite driver
is case sensitive.
## Code After:
<?php
require_once("database.php");
$db = connect_save();
if ($db === null)
{
echo "Result:4";
die();
}
if ($_REQUEST["myl"] != "")
{
$temp = split(":", $_REQUEST["myl"]);
$mcc = $temp[0];
$mnc = $temp[1];
$lac = $temp[2];
$cid = $temp[3];
} else
{
$mcc = $_REQUEST["mcc"];
$mnc = $_REQUEST["mnc"];
$lac = $_REQUEST["lac"];
$cid = $_REQUEST["cid"];
}
if ( $mcc == "" || $mnc == "" || $lac == "" || $cid == "" )
{
echo "Result:7"; // CellID not specified
die();
}
$result = $db->exec_sql("SELECT Latitude, Longitude FROM cellids WHERE CellID=? ORDER BY DateAdded DESC LIMIT 0,1", "$mcc-$mnc-$lac-$cid");
if ( $row=$result->fetch() )
echo "Result:0|$row[Latitude]|$row[Longitude]";
else
echo "Result:6"; // No lat/long for specified CellID
die();
?>
| <?php
- require_once("config.php");
? ^^^^^^
+ require_once("database.php");
? ^^^^^^^^
- if(!@mysql_connect("$DBIP","$DBUSER","$DBPASS"))
+ $db = connect_save();
+
+ if ($db === null)
{
echo "Result:4";
die();
}
-
- mysql_select_db("$DBNAME");
-
if ($_REQUEST["myl"] != "")
{
$temp = split(":", $_REQUEST["myl"]);
$mcc = $temp[0];
$mnc = $temp[1];
$lac = $temp[2];
$cid = $temp[3];
} else
{
$mcc = $_REQUEST["mcc"];
$mnc = $_REQUEST["mnc"];
$lac = $_REQUEST["lac"];
$cid = $_REQUEST["cid"];
}
if ( $mcc == "" || $mnc == "" || $lac == "" || $cid == "" )
{
echo "Result:7"; // CellID not specified
die();
}
- $result=mysql_query("Select latitude,longitude FROM cellids WHERE cellid='$mcc-$mnc-$lac-$cid' order by dateadded desc limit 0,1");
+ $result = $db->exec_sql("SELECT Latitude, Longitude FROM cellids WHERE CellID=? ORDER BY DateAdded DESC LIMIT 0,1", "$mcc-$mnc-$lac-$cid");
- if ( $row=mysql_fetch_array($result) )
+ if ( $row=$result->fetch() )
- echo "Result:0|".$row['latitude']."|".$row['longitude'];
? ^ -- ^^ - -- -- ^^ - -
+ echo "Result:0|$row[Latitude]|$row[Longitude]";
? ^^^^^^^^ ^ ^ +
else
echo "Result:6"; // No lat/long for specified CellID
die();
?> | 15 | 0.326087 | 7 | 8 |
d360856a1276edeb69992531f431977d9267d3ac | src/pages/worker-page.js | src/pages/worker-page.js | import React from 'react';
import moment from 'moment';
import Actions from '../actions';
import WorkerStatsStore from '../stores/worker-stats-store';
export default class WorkerPage extends React.Component {
constructor() {
super();
this.state = WorkerStatsStore.getState();
this.fetchTimeout = null;
}
fetch() {
Actions.getWorkerStats();
}
componentDidMount() {
WorkerStatsStore.addChangeListener(this._onChange.bind(this));
this.setState(WorkerStatsStore.getState());
this.fetch();
}
componentWillUnmount() {
WorkerStatsStore.removeChangeListener(this._onChange.bind(this));
}
_onChange() {
this.setState(WorkerStatsStore.getState());
}
render() {
clearTimeout(this.fetchTimeout);
this.fetchTimeout = setTimeout(this.fetch.bind(this), 10000);
return (
<div className="worker-stats-page">
<h2 className="text-center">Worker stats</h2>
<ul className="worker-list">
{this.state.workers.map(worker => {
return (
<li>
<h3>{worker.get('host')}</h3>
{moment(worker.get('lastSeen')).fromNow()}
<dl className="versions">
{(worker.get('versions') || []).map((value, key) => {
return (
<span>
<dt>{key}</dt>
<dd>{value}</dd>
</span>
);
})}
</dl>
</li>
);
})}
</ul>
</div>
);
}
}
| import React from 'react';
import moment from 'moment';
import Actions from '../actions';
import WorkerStatsStore from '../stores/worker-stats-store';
export default class WorkerPage extends React.Component {
constructor() {
super();
this.state = WorkerStatsStore.getState();
this.fetchTimeout = null;
}
fetch() {
Actions.getWorkerStats();
}
componentDidMount() {
WorkerStatsStore.addChangeListener(this._onChange.bind(this));
this.setState(WorkerStatsStore.getState());
this.fetch();
}
componentWillUnmount() {
WorkerStatsStore.removeChangeListener(this._onChange.bind(this));
}
_onChange() {
this.setState(WorkerStatsStore.getState());
}
render() {
clearTimeout(this.fetchTimeout);
this.fetchTimeout = setTimeout(this.fetch.bind(this), 10000);
return (
<div className="worker-stats-page">
<h2 className="text-center">Worker stats</h2>
<ul className="worker-list">
{this.state.workers.map(worker => {
return (
<li>
<h3>{worker.get('host')}</h3>
{moment(worker.get('lastSeen')).fromNow()}
<dl className="versions">
{(worker.get('versions') || []).map((value, key) => {
return (
<span>
<dt>{key}</dt>
<dd>{value.get('current')}</dd>
</span>
);
})}
</dl>
</li>
);
})}
</ul>
</div>
);
}
}
| Fix display issue with versions in worker stats | Fix display issue with versions in worker stats
| JavaScript | mit | frigg/frigg-hq-frontend,frigg/frigg-hq-frontend | javascript | ## Code Before:
import React from 'react';
import moment from 'moment';
import Actions from '../actions';
import WorkerStatsStore from '../stores/worker-stats-store';
export default class WorkerPage extends React.Component {
constructor() {
super();
this.state = WorkerStatsStore.getState();
this.fetchTimeout = null;
}
fetch() {
Actions.getWorkerStats();
}
componentDidMount() {
WorkerStatsStore.addChangeListener(this._onChange.bind(this));
this.setState(WorkerStatsStore.getState());
this.fetch();
}
componentWillUnmount() {
WorkerStatsStore.removeChangeListener(this._onChange.bind(this));
}
_onChange() {
this.setState(WorkerStatsStore.getState());
}
render() {
clearTimeout(this.fetchTimeout);
this.fetchTimeout = setTimeout(this.fetch.bind(this), 10000);
return (
<div className="worker-stats-page">
<h2 className="text-center">Worker stats</h2>
<ul className="worker-list">
{this.state.workers.map(worker => {
return (
<li>
<h3>{worker.get('host')}</h3>
{moment(worker.get('lastSeen')).fromNow()}
<dl className="versions">
{(worker.get('versions') || []).map((value, key) => {
return (
<span>
<dt>{key}</dt>
<dd>{value}</dd>
</span>
);
})}
</dl>
</li>
);
})}
</ul>
</div>
);
}
}
## Instruction:
Fix display issue with versions in worker stats
## Code After:
import React from 'react';
import moment from 'moment';
import Actions from '../actions';
import WorkerStatsStore from '../stores/worker-stats-store';
export default class WorkerPage extends React.Component {
constructor() {
super();
this.state = WorkerStatsStore.getState();
this.fetchTimeout = null;
}
fetch() {
Actions.getWorkerStats();
}
componentDidMount() {
WorkerStatsStore.addChangeListener(this._onChange.bind(this));
this.setState(WorkerStatsStore.getState());
this.fetch();
}
componentWillUnmount() {
WorkerStatsStore.removeChangeListener(this._onChange.bind(this));
}
_onChange() {
this.setState(WorkerStatsStore.getState());
}
render() {
clearTimeout(this.fetchTimeout);
this.fetchTimeout = setTimeout(this.fetch.bind(this), 10000);
return (
<div className="worker-stats-page">
<h2 className="text-center">Worker stats</h2>
<ul className="worker-list">
{this.state.workers.map(worker => {
return (
<li>
<h3>{worker.get('host')}</h3>
{moment(worker.get('lastSeen')).fromNow()}
<dl className="versions">
{(worker.get('versions') || []).map((value, key) => {
return (
<span>
<dt>{key}</dt>
<dd>{value.get('current')}</dd>
</span>
);
})}
</dl>
</li>
);
})}
</ul>
</div>
);
}
}
| import React from 'react';
import moment from 'moment';
import Actions from '../actions';
import WorkerStatsStore from '../stores/worker-stats-store';
export default class WorkerPage extends React.Component {
constructor() {
super();
this.state = WorkerStatsStore.getState();
this.fetchTimeout = null;
}
fetch() {
Actions.getWorkerStats();
}
componentDidMount() {
WorkerStatsStore.addChangeListener(this._onChange.bind(this));
this.setState(WorkerStatsStore.getState());
this.fetch();
}
componentWillUnmount() {
WorkerStatsStore.removeChangeListener(this._onChange.bind(this));
}
_onChange() {
this.setState(WorkerStatsStore.getState());
}
render() {
clearTimeout(this.fetchTimeout);
this.fetchTimeout = setTimeout(this.fetch.bind(this), 10000);
return (
<div className="worker-stats-page">
<h2 className="text-center">Worker stats</h2>
<ul className="worker-list">
{this.state.workers.map(worker => {
return (
<li>
<h3>{worker.get('host')}</h3>
{moment(worker.get('lastSeen')).fromNow()}
<dl className="versions">
{(worker.get('versions') || []).map((value, key) => {
return (
<span>
<dt>{key}</dt>
- <dd>{value}</dd>
+ <dd>{value.get('current')}</dd>
? +++++++++++++++
</span>
);
})}
</dl>
</li>
);
})}
</ul>
</div>
);
}
} | 2 | 0.030769 | 1 | 1 |
5de22e6a17f84321dabd063eff67943a70c12490 | README.md | README.md |

There is also a matching [UI theme](https://atom.io/themes/one-dark-ui).
### Install
This theme is installed by default with Atom and can be activated by going to the __Settings > Themes__ section and selecting it from the __Syntax Themes__ drop-down menu.
|

> The font used in the screenshot is [Fira Mono](https://github.com/mozilla/Fira).
There is also a matching [UI theme](https://atom.io/themes/one-dark-ui).
### Install
This theme is installed by default with Atom and can be activated by going to the __Settings > Themes__ section and selecting it from the __Syntax Themes__ drop-down menu.
| Add note about the font | Add note about the font | Markdown | mit | vith/one-dark-syntax,JeNeSuisPasDave/one-dark-syntax,JeNeSuisPasDave/one-dark-syntax,grigio/atom-darkmate-syntax,vith/one-dark-syntax,grigio/atom-darkmate-syntax,vith/one-dark-syntax,colllin/one-dark-syntax,colllin/one-dark-syntax,yuriihabrusiev/one-dark-syntax,vith/one-dark-syntax,nviel/nico-syntax,colllin/one-dark-syntax,colllin/one-dark-syntax,JeNeSuisPasDave/one-dark-syntax,vith/one-dark-syntax,JeNeSuisPasDave/one-dark-syntax,colllin/one-dark-syntax,nviel/nico-syntax,yuriihabrusiev/one-dark-syntax,grigio/atom-darkmate-syntax,yuriihabrusiev/one-dark-syntax,nviel/nico-syntax,yuriihabrusiev/one-dark-syntax,nviel/nico-syntax,JeNeSuisPasDave/one-dark-syntax,yuriihabrusiev/one-dark-syntax,nviel/nico-syntax,vith/one-dark-syntax,JeNeSuisPasDave/one-dark-syntax,nviel/nico-syntax,colllin/one-dark-syntax,yuriihabrusiev/one-dark-syntax,grigio/atom-darkmate-syntax,grigio/atom-darkmate-syntax,grigio/atom-darkmate-syntax | markdown | ## Code Before:

There is also a matching [UI theme](https://atom.io/themes/one-dark-ui).
### Install
This theme is installed by default with Atom and can be activated by going to the __Settings > Themes__ section and selecting it from the __Syntax Themes__ drop-down menu.
## Instruction:
Add note about the font
## Code After:

> The font used in the screenshot is [Fira Mono](https://github.com/mozilla/Fira).
There is also a matching [UI theme](https://atom.io/themes/one-dark-ui).
### Install
This theme is installed by default with Atom and can be activated by going to the __Settings > Themes__ section and selecting it from the __Syntax Themes__ drop-down menu.
|

+
+ > The font used in the screenshot is [Fira Mono](https://github.com/mozilla/Fira).
There is also a matching [UI theme](https://atom.io/themes/one-dark-ui).
### Install
This theme is installed by default with Atom and can be activated by going to the __Settings > Themes__ section and selecting it from the __Syntax Themes__ drop-down menu. | 2 | 0.25 | 2 | 0 |
c421485616110a99c2ba3cdc640e65f6e5f891ae | app-backend-tasks-b2.yaml | app-backend-tasks-b2.yaml | service: backend-tasks-b2
runtime: python27
api_version: 1
threadsafe: true
builtins:
- deferred: on
instance_class: B4_1G
basic_scaling:
max_instances: 1
libraries:
- name: django
version: "1.11"
- name: numpy
version: "1.6.1"
- name: jinja2
version: "2.6"
- name: pytz
version: "2016.4"
- name: MySQLdb
version: "latest"
handlers:
- url: /_ah/queue/deferred.*
script: google.appengine.ext.deferred.deferred.application
login: admin
- url: .*
script: backend_main_b2.app
login: admin
includes:
- app_shared.yaml
| service: backend-tasks-b2
runtime: python27
api_version: 1
threadsafe: true
builtins:
- deferred: on
instance_class: B4_1G
basic_scaling:
max_instances: 1
libraries:
- name: django
version: "1.11"
- name: numpy
version: "1.6.1"
- name: jinja2
version: "2.6"
- name: pytz
version: "2016.4"
- name: MySQLdb
version: "latest"
handlers:
- url: /backend-tasks-b2/console/.*
script: google.appengine.ext.admin.application
login: admin
- url: /_ah/queue/deferred.*
script: google.appengine.ext.deferred.deferred.application
login: admin
- url: .*
script: backend_main_b2.app
login: admin
includes:
- app_shared.yaml
| Enable console access from backend instance | Enable console access from backend instance
| YAML | mit | bdaroz/the-blue-alliance,phil-lopreiato/the-blue-alliance,phil-lopreiato/the-blue-alliance,the-blue-alliance/the-blue-alliance,fangeugene/the-blue-alliance,phil-lopreiato/the-blue-alliance,the-blue-alliance/the-blue-alliance,phil-lopreiato/the-blue-alliance,bdaroz/the-blue-alliance,the-blue-alliance/the-blue-alliance,bdaroz/the-blue-alliance,phil-lopreiato/the-blue-alliance,fangeugene/the-blue-alliance,fangeugene/the-blue-alliance,bdaroz/the-blue-alliance,the-blue-alliance/the-blue-alliance,fangeugene/the-blue-alliance,fangeugene/the-blue-alliance,bdaroz/the-blue-alliance,bdaroz/the-blue-alliance,fangeugene/the-blue-alliance,the-blue-alliance/the-blue-alliance,the-blue-alliance/the-blue-alliance,phil-lopreiato/the-blue-alliance | yaml | ## Code Before:
service: backend-tasks-b2
runtime: python27
api_version: 1
threadsafe: true
builtins:
- deferred: on
instance_class: B4_1G
basic_scaling:
max_instances: 1
libraries:
- name: django
version: "1.11"
- name: numpy
version: "1.6.1"
- name: jinja2
version: "2.6"
- name: pytz
version: "2016.4"
- name: MySQLdb
version: "latest"
handlers:
- url: /_ah/queue/deferred.*
script: google.appengine.ext.deferred.deferred.application
login: admin
- url: .*
script: backend_main_b2.app
login: admin
includes:
- app_shared.yaml
## Instruction:
Enable console access from backend instance
## Code After:
service: backend-tasks-b2
runtime: python27
api_version: 1
threadsafe: true
builtins:
- deferred: on
instance_class: B4_1G
basic_scaling:
max_instances: 1
libraries:
- name: django
version: "1.11"
- name: numpy
version: "1.6.1"
- name: jinja2
version: "2.6"
- name: pytz
version: "2016.4"
- name: MySQLdb
version: "latest"
handlers:
- url: /backend-tasks-b2/console/.*
script: google.appengine.ext.admin.application
login: admin
- url: /_ah/queue/deferred.*
script: google.appengine.ext.deferred.deferred.application
login: admin
- url: .*
script: backend_main_b2.app
login: admin
includes:
- app_shared.yaml
| service: backend-tasks-b2
runtime: python27
api_version: 1
threadsafe: true
builtins:
- deferred: on
instance_class: B4_1G
basic_scaling:
max_instances: 1
libraries:
- name: django
version: "1.11"
- name: numpy
version: "1.6.1"
- name: jinja2
version: "2.6"
- name: pytz
version: "2016.4"
- name: MySQLdb
version: "latest"
handlers:
+ - url: /backend-tasks-b2/console/.*
+ script: google.appengine.ext.admin.application
+ login: admin
- url: /_ah/queue/deferred.*
script: google.appengine.ext.deferred.deferred.application
login: admin
- url: .*
script: backend_main_b2.app
login: admin
includes:
- app_shared.yaml | 3 | 0.085714 | 3 | 0 |
583cdd7911b1527caa4f9ff01eaff81f9731ea89 | now.json | now.json | {
"version": 2,
"name": "snuggsi",
"alias": ["snuggsi.com", "snuggsi"],
"builds": [
{ "src": "index.html", "use": "@now/static" }
],
"files": ["index.html", "*.css"]
}
| {
"version": 2,
"name": "snuggsi",
"alias": ["snuggsi.com", "snuggsi"],
"builds": [
{ "src": "*", "use": "@now/static" }
],
"files": ["index.html", "*.css"]
}
| Update to use static files | Update to use static files
| JSON | mit | devpunks/snuggsi,snuggs/snuggsi,devpunks/snuggsi,devpunks/snuggsi,snuggs/snuggsi,snuggs/snuggsi,devpunks/snuggsi,devpunks/snuggsi,snuggs/snuggsi | json | ## Code Before:
{
"version": 2,
"name": "snuggsi",
"alias": ["snuggsi.com", "snuggsi"],
"builds": [
{ "src": "index.html", "use": "@now/static" }
],
"files": ["index.html", "*.css"]
}
## Instruction:
Update to use static files
## Code After:
{
"version": 2,
"name": "snuggsi",
"alias": ["snuggsi.com", "snuggsi"],
"builds": [
{ "src": "*", "use": "@now/static" }
],
"files": ["index.html", "*.css"]
}
| {
"version": 2,
"name": "snuggsi",
"alias": ["snuggsi.com", "snuggsi"],
"builds": [
- { "src": "index.html", "use": "@now/static" }
? ^^^^^^^^^^
+ { "src": "*", "use": "@now/static" }
? ^
],
"files": ["index.html", "*.css"]
} | 2 | 0.181818 | 1 | 1 |
a480755acd4332ee1fb003fd7db415c63b0f5f62 | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! Version: <%= pkg.version %>\nDate: <%= grunt.template.today("yyyy-mm-dd") %> */\n',
preserveComments: 'some'
},
build: {
src: 'src/L.Control.Locate.js',
dest: 'dist/L.Control.Locate.min.js'
}
},
cssmin: {
combine: {
files: {
'dist/L.Control.Locate.min.css': ['src/L.Control.Locate.css'],
'dist/L.Control.Locate.ie.min.css': ['src/L.Control.Locate.ie.css']
}
}
},
bump: {
options: {
files: ['package.json', 'bower.json'],
push: false
}
},
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-bump');
// Default task(s).
grunt.registerTask('default', ['uglify', 'cssmin']);
}; | module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! Version: <%= pkg.version %>\nDate: <%= grunt.template.today("yyyy-mm-dd") %> */\n',
preserveComments: 'some'
},
build: {
src: 'src/L.Control.Locate.js',
dest: 'dist/L.Control.Locate.min.js'
}
},
cssmin: {
combine: {
files: {
'dist/L.Control.Locate.min.css': ['src/L.Control.Locate.css'],
'dist/L.Control.Locate.ie.min.css': ['src/L.Control.Locate.ie.css']
}
}
},
bump: {
options: {
files: ['package.json', 'bower.json'],
commitFiles: ['package.json', 'bower.json'],
push: false
}
},
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-bump');
// Default task(s).
grunt.registerTask('default', ['uglify', 'cssmin']);
}; | Make sure all package files are committed correctly when bumping a version | Make sure all package files are committed correctly when bumping a version | JavaScript | mit | jblarsen/leaflet-locatecontrol,vivek8943/leaflet-locatecontrol,rick-frantz/leaflet-locatecontrol,Drooids/leaflet-locatecontrol,domoritz/leaflet-locatecontrol,jblarsen/leaflet-locatecontrol,withtwoemms/leaflet-locatecontrol,vivek8943/leaflet-locatecontrol,nikolauskrismer/leaflet-locatecontrol,nikolauskrismer/leaflet-locatecontrol,cederache/leaflet-locatecontrol,cederache/leaflet-locatecontrol,rick-frantz/leaflet-locatecontrol,domoritz/leaflet-locatecontrol,Drooids/leaflet-locatecontrol,withtwoemms/leaflet-locatecontrol | javascript | ## Code Before:
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! Version: <%= pkg.version %>\nDate: <%= grunt.template.today("yyyy-mm-dd") %> */\n',
preserveComments: 'some'
},
build: {
src: 'src/L.Control.Locate.js',
dest: 'dist/L.Control.Locate.min.js'
}
},
cssmin: {
combine: {
files: {
'dist/L.Control.Locate.min.css': ['src/L.Control.Locate.css'],
'dist/L.Control.Locate.ie.min.css': ['src/L.Control.Locate.ie.css']
}
}
},
bump: {
options: {
files: ['package.json', 'bower.json'],
push: false
}
},
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-bump');
// Default task(s).
grunt.registerTask('default', ['uglify', 'cssmin']);
};
## Instruction:
Make sure all package files are committed correctly when bumping a version
## Code After:
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! Version: <%= pkg.version %>\nDate: <%= grunt.template.today("yyyy-mm-dd") %> */\n',
preserveComments: 'some'
},
build: {
src: 'src/L.Control.Locate.js',
dest: 'dist/L.Control.Locate.min.js'
}
},
cssmin: {
combine: {
files: {
'dist/L.Control.Locate.min.css': ['src/L.Control.Locate.css'],
'dist/L.Control.Locate.ie.min.css': ['src/L.Control.Locate.ie.css']
}
}
},
bump: {
options: {
files: ['package.json', 'bower.json'],
commitFiles: ['package.json', 'bower.json'],
push: false
}
},
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-bump');
// Default task(s).
grunt.registerTask('default', ['uglify', 'cssmin']);
}; | module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! Version: <%= pkg.version %>\nDate: <%= grunt.template.today("yyyy-mm-dd") %> */\n',
preserveComments: 'some'
},
build: {
src: 'src/L.Control.Locate.js',
dest: 'dist/L.Control.Locate.min.js'
}
},
cssmin: {
combine: {
files: {
'dist/L.Control.Locate.min.css': ['src/L.Control.Locate.css'],
'dist/L.Control.Locate.ie.min.css': ['src/L.Control.Locate.ie.css']
}
}
},
bump: {
options: {
files: ['package.json', 'bower.json'],
+ commitFiles: ['package.json', 'bower.json'],
push: false
}
},
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-bump');
// Default task(s).
grunt.registerTask('default', ['uglify', 'cssmin']);
}; | 1 | 0.025641 | 1 | 0 |
fc5dfa3c1c647c6234f10e6f8d028ac01f5f1f09 | spec/internal/app/models/application_record.rb | spec/internal/app/models/application_record.rb |
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
# computed attributes
def computed_binary
binary
end
def computed_boolean
boolean
end
def computed_date
date
end
def computed_datetime
datetime
end
def computed_decimal
decimal
end
def computed_float
float
end
def computed_integer
integer
end
def computed_string
string
end
def computed_text
text
end
def computed_time
time
end
end
|
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
FIELD_TYPES = %w[
bignum
binary
boolean
date
datetime
decimal
float
integer
string
symbol
text
time
].freeze
def method_missing(method_name, *args, &block)
return super unless method_name.to_s.start_with?('computed')
field_method = method_name.to_s.remove 'computed_'
send(field_method, *args, &block)
end
def respond_to_missing?(method_name, include_private = false)
return super unless method_name.to_s.start_with?('computed')
true
end
def bignum
id**64
end
alias computed_bignum bignum
def symbol
string.to_sym
end
alias computed_symbol symbol
end
| Update the test model to hold a constant array of data types | Update the test model to hold a constant array of data types
| Ruby | mit | fractaledmind/activeset,fractaledmind/activeset | ruby | ## Code Before:
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
# computed attributes
def computed_binary
binary
end
def computed_boolean
boolean
end
def computed_date
date
end
def computed_datetime
datetime
end
def computed_decimal
decimal
end
def computed_float
float
end
def computed_integer
integer
end
def computed_string
string
end
def computed_text
text
end
def computed_time
time
end
end
## Instruction:
Update the test model to hold a constant array of data types
## Code After:
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
FIELD_TYPES = %w[
bignum
binary
boolean
date
datetime
decimal
float
integer
string
symbol
text
time
].freeze
def method_missing(method_name, *args, &block)
return super unless method_name.to_s.start_with?('computed')
field_method = method_name.to_s.remove 'computed_'
send(field_method, *args, &block)
end
def respond_to_missing?(method_name, include_private = false)
return super unless method_name.to_s.start_with?('computed')
true
end
def bignum
id**64
end
alias computed_bignum bignum
def symbol
string.to_sym
end
alias computed_symbol symbol
end
|
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
- # computed attributes
+ FIELD_TYPES = %w[
+ bignum
+ binary
+ boolean
+ date
+ datetime
+ decimal
+ float
+ integer
+ string
+ symbol
+ text
+ time
+ ].freeze
- def computed_binary
- binary
+ def method_missing(method_name, *args, &block)
+ return super unless method_name.to_s.start_with?('computed')
+
+ field_method = method_name.to_s.remove 'computed_'
+ send(field_method, *args, &block)
end
- def computed_boolean
- boolean
+ def respond_to_missing?(method_name, include_private = false)
+ return super unless method_name.to_s.start_with?('computed')
+
+ true
end
- def computed_date
- date
+ def bignum
+ id**64
end
+ alias computed_bignum bignum
- def computed_datetime
- datetime
+ def symbol
+ string.to_sym
end
+ alias computed_symbol symbol
-
- def computed_decimal
- decimal
- end
-
- def computed_float
- float
- end
-
- def computed_integer
- integer
- end
-
- def computed_string
- string
- end
-
- def computed_text
- text
- end
-
- def computed_time
- time
- end
end | 62 | 1.347826 | 29 | 33 |
403c368d78cea8f27ac36d2d24cb8fbca3bbb64f | src/Vinkla/Translator/TranslatorTrait.php | src/Vinkla/Translator/TranslatorTrait.php | <?php namespace Vinkla\Translator;
use Vinkla\Translator\Exceptions\TranslatorException;
use Config, Session;
trait TranslatorTrait {
/**
* The default localization key.
*
* @var string
*/
private $defaultLocaleKey = 'locale_id';
/**
* Translator instance.
*
* @var mixed
*/
protected $translatorInstance;
/**
* Prepare a translator instance and fetch translations.
*
* @throws TranslatorException
* @return mixed
*/
public function translate()
{
if (!$this->translator || !class_exists($this->translator))
{
throw new TranslatorException('Please set the $translator property to your translation model path.');
}
if (!$this->translatorInstance)
{
$this->translatorInstance = new $this->translator();
}
return $this->translatorInstance
->where($this->getForeignKey(), $this->id)
->where($this->getLocaleKey(), $this->getLocale())
->first();
}
/**
* Fetch the default localisation key comparison.
*
* @return mixed
*/
public function getLocale()
{
return Session::get($this->getLocaleKey());
}
/**
* Fetch the localisation key.
*
* @return string
*/
private function getLocaleKey()
{
return $this->localeKey ? $this->localeKey : $this->defaultLocaleKey;
}
}
| <?php namespace Vinkla\Translator;
use Vinkla\Translator\Exceptions\TranslatorException;
use Config, Session;
trait TranslatorTrait {
/**
* The default localization key.
*
* @var string
*/
private $defaultLocaleKey = 'locale_id';
/**
* Translator instance.
*
* @var mixed
*/
protected $translatorInstance;
/**
* Prepare a translator instance and fetch translations.
*
* @throws TranslatorException
* @return mixed
*/
public function translate()
{
if (!$this->translator || !class_exists($this->translator))
{
throw new TranslatorException('Please set the $translator property to your translation model path.');
}
if (!$this->translatorInstance)
{
$this->translatorInstance = new $this->translator();
}
return $this->translatorInstance
->where($this->getForeignKey(), $this->id)
->where($this->getLocaleKey(), $this->getLocale())
->first();
}
/**
* Fetch the default localisation key comparison.
* If you not want to fetch the localization id from
* a session, this could be overwritten in the modal.
*
* @return mixed
*/
public function getLocale()
{
return Session::get($this->getLocaleKey());
}
/**
* Fetch the localisation key.
*
* @return string
*/
private function getLocaleKey()
{
return $this->localeKey ? $this->localeKey : $this->defaultLocaleKey;
}
}
| Add documentation to the getLocale method. | Add documentation to the getLocale method.
| PHP | mit | tuvaergun/translator,schelmo/translator,vinkla/translator,alexanderweiss/translator | php | ## Code Before:
<?php namespace Vinkla\Translator;
use Vinkla\Translator\Exceptions\TranslatorException;
use Config, Session;
trait TranslatorTrait {
/**
* The default localization key.
*
* @var string
*/
private $defaultLocaleKey = 'locale_id';
/**
* Translator instance.
*
* @var mixed
*/
protected $translatorInstance;
/**
* Prepare a translator instance and fetch translations.
*
* @throws TranslatorException
* @return mixed
*/
public function translate()
{
if (!$this->translator || !class_exists($this->translator))
{
throw new TranslatorException('Please set the $translator property to your translation model path.');
}
if (!$this->translatorInstance)
{
$this->translatorInstance = new $this->translator();
}
return $this->translatorInstance
->where($this->getForeignKey(), $this->id)
->where($this->getLocaleKey(), $this->getLocale())
->first();
}
/**
* Fetch the default localisation key comparison.
*
* @return mixed
*/
public function getLocale()
{
return Session::get($this->getLocaleKey());
}
/**
* Fetch the localisation key.
*
* @return string
*/
private function getLocaleKey()
{
return $this->localeKey ? $this->localeKey : $this->defaultLocaleKey;
}
}
## Instruction:
Add documentation to the getLocale method.
## Code After:
<?php namespace Vinkla\Translator;
use Vinkla\Translator\Exceptions\TranslatorException;
use Config, Session;
trait TranslatorTrait {
/**
* The default localization key.
*
* @var string
*/
private $defaultLocaleKey = 'locale_id';
/**
* Translator instance.
*
* @var mixed
*/
protected $translatorInstance;
/**
* Prepare a translator instance and fetch translations.
*
* @throws TranslatorException
* @return mixed
*/
public function translate()
{
if (!$this->translator || !class_exists($this->translator))
{
throw new TranslatorException('Please set the $translator property to your translation model path.');
}
if (!$this->translatorInstance)
{
$this->translatorInstance = new $this->translator();
}
return $this->translatorInstance
->where($this->getForeignKey(), $this->id)
->where($this->getLocaleKey(), $this->getLocale())
->first();
}
/**
* Fetch the default localisation key comparison.
* If you not want to fetch the localization id from
* a session, this could be overwritten in the modal.
*
* @return mixed
*/
public function getLocale()
{
return Session::get($this->getLocaleKey());
}
/**
* Fetch the localisation key.
*
* @return string
*/
private function getLocaleKey()
{
return $this->localeKey ? $this->localeKey : $this->defaultLocaleKey;
}
}
| <?php namespace Vinkla\Translator;
use Vinkla\Translator\Exceptions\TranslatorException;
use Config, Session;
trait TranslatorTrait {
/**
* The default localization key.
*
* @var string
*/
private $defaultLocaleKey = 'locale_id';
/**
* Translator instance.
*
* @var mixed
*/
protected $translatorInstance;
/**
* Prepare a translator instance and fetch translations.
*
* @throws TranslatorException
* @return mixed
*/
public function translate()
{
if (!$this->translator || !class_exists($this->translator))
{
throw new TranslatorException('Please set the $translator property to your translation model path.');
}
if (!$this->translatorInstance)
{
$this->translatorInstance = new $this->translator();
}
return $this->translatorInstance
->where($this->getForeignKey(), $this->id)
->where($this->getLocaleKey(), $this->getLocale())
->first();
}
/**
* Fetch the default localisation key comparison.
+ * If you not want to fetch the localization id from
+ * a session, this could be overwritten in the modal.
*
* @return mixed
*/
public function getLocale()
{
return Session::get($this->getLocaleKey());
}
/**
* Fetch the localisation key.
*
* @return string
*/
private function getLocaleKey()
{
return $this->localeKey ? $this->localeKey : $this->defaultLocaleKey;
}
} | 2 | 0.030769 | 2 | 0 |
ca1b5815617b6d5f24731b4feb096ae99bc7b7ba | metadata/com.parishod.watomatic.yml | metadata/com.parishod.watomatic.yml | AntiFeatures:
- NonFreeDep
Categories:
- Internet
- Phone & SMS
License: GPL-3.0-only
AuthorName: Deekshith Allamaneni
AuthorEmail: watomatic@deekshith.in
AuthorWebSite: https://twitter.com/adeekshith
WebSite: https://adeekshith.github.io/watomatic
SourceCode: https://github.com/adeekshith/watomatic
IssueTracker: https://github.com/adeekshith/watomatic/issues
Donate: https://paypal.me/deek
Liberapay: dk
Bitcoin: bc1qv6zmgw845pktq9jr5qztup80qufu0yg46ur2kw
AutoName: Watomatic
RepoType: git
Repo: https://github.com/adeekshith/watomatic
Builds:
- versionName: '1.9'
versionCode: 10
commit: v1.9
subdir: app
gradle:
- yes
- versionName: '1.10'
versionCode: 11
commit: v1.10
subdir: app
gradle:
- yes
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags
CurrentVersion: '1.10'
CurrentVersionCode: 11
| AntiFeatures:
- NonFreeDep
Categories:
- Internet
- Phone & SMS
License: GPL-3.0-only
AuthorName: Deekshith Allamaneni
AuthorEmail: watomatic@deekshith.in
AuthorWebSite: https://twitter.com/adeekshith
WebSite: https://adeekshith.github.io/watomatic
SourceCode: https://github.com/adeekshith/watomatic
IssueTracker: https://github.com/adeekshith/watomatic/issues
Donate: https://paypal.me/deek
Liberapay: dk
Bitcoin: bc1qv6zmgw845pktq9jr5qztup80qufu0yg46ur2kw
AutoName: Watomatic
RepoType: git
Repo: https://github.com/adeekshith/watomatic
Builds:
- versionName: '1.9'
versionCode: 10
commit: v1.9
subdir: app
gradle:
- yes
- versionName: '1.10'
versionCode: 11
commit: v1.10
subdir: app
gradle:
- yes
- versionName: '1.11'
versionCode: 12
commit: v1.11
subdir: app
gradle:
- yes
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags
CurrentVersion: '1.11'
CurrentVersionCode: 12
| Update Watomatic to 1.11 (12) | Update Watomatic to 1.11 (12)
| YAML | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata | yaml | ## Code Before:
AntiFeatures:
- NonFreeDep
Categories:
- Internet
- Phone & SMS
License: GPL-3.0-only
AuthorName: Deekshith Allamaneni
AuthorEmail: watomatic@deekshith.in
AuthorWebSite: https://twitter.com/adeekshith
WebSite: https://adeekshith.github.io/watomatic
SourceCode: https://github.com/adeekshith/watomatic
IssueTracker: https://github.com/adeekshith/watomatic/issues
Donate: https://paypal.me/deek
Liberapay: dk
Bitcoin: bc1qv6zmgw845pktq9jr5qztup80qufu0yg46ur2kw
AutoName: Watomatic
RepoType: git
Repo: https://github.com/adeekshith/watomatic
Builds:
- versionName: '1.9'
versionCode: 10
commit: v1.9
subdir: app
gradle:
- yes
- versionName: '1.10'
versionCode: 11
commit: v1.10
subdir: app
gradle:
- yes
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags
CurrentVersion: '1.10'
CurrentVersionCode: 11
## Instruction:
Update Watomatic to 1.11 (12)
## Code After:
AntiFeatures:
- NonFreeDep
Categories:
- Internet
- Phone & SMS
License: GPL-3.0-only
AuthorName: Deekshith Allamaneni
AuthorEmail: watomatic@deekshith.in
AuthorWebSite: https://twitter.com/adeekshith
WebSite: https://adeekshith.github.io/watomatic
SourceCode: https://github.com/adeekshith/watomatic
IssueTracker: https://github.com/adeekshith/watomatic/issues
Donate: https://paypal.me/deek
Liberapay: dk
Bitcoin: bc1qv6zmgw845pktq9jr5qztup80qufu0yg46ur2kw
AutoName: Watomatic
RepoType: git
Repo: https://github.com/adeekshith/watomatic
Builds:
- versionName: '1.9'
versionCode: 10
commit: v1.9
subdir: app
gradle:
- yes
- versionName: '1.10'
versionCode: 11
commit: v1.10
subdir: app
gradle:
- yes
- versionName: '1.11'
versionCode: 12
commit: v1.11
subdir: app
gradle:
- yes
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags
CurrentVersion: '1.11'
CurrentVersionCode: 12
| AntiFeatures:
- NonFreeDep
Categories:
- Internet
- Phone & SMS
License: GPL-3.0-only
AuthorName: Deekshith Allamaneni
AuthorEmail: watomatic@deekshith.in
AuthorWebSite: https://twitter.com/adeekshith
WebSite: https://adeekshith.github.io/watomatic
SourceCode: https://github.com/adeekshith/watomatic
IssueTracker: https://github.com/adeekshith/watomatic/issues
Donate: https://paypal.me/deek
Liberapay: dk
Bitcoin: bc1qv6zmgw845pktq9jr5qztup80qufu0yg46ur2kw
AutoName: Watomatic
RepoType: git
Repo: https://github.com/adeekshith/watomatic
Builds:
- versionName: '1.9'
versionCode: 10
commit: v1.9
subdir: app
gradle:
- yes
- versionName: '1.10'
versionCode: 11
commit: v1.10
subdir: app
gradle:
- yes
+ - versionName: '1.11'
+ versionCode: 12
+ commit: v1.11
+ subdir: app
+ gradle:
+ - yes
+
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags
- CurrentVersion: '1.10'
? ^
+ CurrentVersion: '1.11'
? ^
- CurrentVersionCode: 11
? ^
+ CurrentVersionCode: 12
? ^
| 11 | 0.275 | 9 | 2 |
f3fcb807c2f396280d6c34edceac4f9e7a198432 | words/words.fr.txt | words/words.fr.txt | arborigène->aborigène
acceuil->accueil
aggressif->agressif
au jour d'aujourd'hui->aujourd'hui
autant pour moi->au temps pour moi
autrement plus->autrement
aux dépends de->aux dépens de
à l'envie->à l'envi
ayant-droit->ayant droit
ayant-cause->ayant cause
ayant droits->ayants droits
ayant causes->ayants causes
ayant-droits->ayants droits
ayant-causes->ayants causes
malgré qu'->bien qu'
malgré que->malgré
| arborigène->aborigène
acceuil->accueil
aggressif->agressif
au jour d'aujourd'hui->aujourd'hui
autant pour moi->au temps pour moi
autrement plus->autrement
aux dépends de->aux dépens de
à l'envie->à l'envi
ayant-droit->ayant droit
ayant-cause->ayant cause
ayant droits->ayants droits
ayant causes->ayants causes
ayant-droits->ayants droits
ayant-causes->ayants causes
malgré qu'->bien qu'
malgré que->malgré
chiffre d'affaire->chiffre d'affaires
compte-rendu->compte rendu
procès verbal->procès-verbal
debouts->debout
depuis quelques temps-> depuis quelque temps
de temps à autres->de temps à autre
enjoler->enjôler
enjôliver->enjoliver
en son fort intérieur->en son for intérieur
en temps que->en tant que
etc...->etc.
...etc->etc.
être sur le grill->être sur le gril
hormi->hormis
parmis->parmi
en navigant->en naviguant
ocurrence->occurrence
occurence->occurrence
ocurence->occurrence
partisante->partisane
partisantes->partisanes
réveil-matin->réveille-matin
je vous en serais gré->je vous en saurais gré
s'elle->si elle
s'elles->si elles
suite à->à la suite de
scénette->saynète
opprobe->opprobre
c'est de la faute de->c'est la faute de
c'est de ma faute->c'est ma faute
faire bonne chair->faire bonne chère
rénumérer->rémunérer
un espèce de->une espèce de
rez de chaussée->rez-de-chaussée
raz-de-marée->raz de marée
vinyl->vinyle
| Add the end of the list | Add the end of the list
[source](https://fr.wikipedia.org/wiki/Wikip%C3%A9dia:Fautes_de_fran%C3%A7ais#Aborig.C3.A8ne) | Text | mit | dawsonbotsford/spellingBee,dawsonbotsford/spellingBee | text | ## Code Before:
arborigène->aborigène
acceuil->accueil
aggressif->agressif
au jour d'aujourd'hui->aujourd'hui
autant pour moi->au temps pour moi
autrement plus->autrement
aux dépends de->aux dépens de
à l'envie->à l'envi
ayant-droit->ayant droit
ayant-cause->ayant cause
ayant droits->ayants droits
ayant causes->ayants causes
ayant-droits->ayants droits
ayant-causes->ayants causes
malgré qu'->bien qu'
malgré que->malgré
## Instruction:
Add the end of the list
[source](https://fr.wikipedia.org/wiki/Wikip%C3%A9dia:Fautes_de_fran%C3%A7ais#Aborig.C3.A8ne)
## Code After:
arborigène->aborigène
acceuil->accueil
aggressif->agressif
au jour d'aujourd'hui->aujourd'hui
autant pour moi->au temps pour moi
autrement plus->autrement
aux dépends de->aux dépens de
à l'envie->à l'envi
ayant-droit->ayant droit
ayant-cause->ayant cause
ayant droits->ayants droits
ayant causes->ayants causes
ayant-droits->ayants droits
ayant-causes->ayants causes
malgré qu'->bien qu'
malgré que->malgré
chiffre d'affaire->chiffre d'affaires
compte-rendu->compte rendu
procès verbal->procès-verbal
debouts->debout
depuis quelques temps-> depuis quelque temps
de temps à autres->de temps à autre
enjoler->enjôler
enjôliver->enjoliver
en son fort intérieur->en son for intérieur
en temps que->en tant que
etc...->etc.
...etc->etc.
être sur le grill->être sur le gril
hormi->hormis
parmis->parmi
en navigant->en naviguant
ocurrence->occurrence
occurence->occurrence
ocurence->occurrence
partisante->partisane
partisantes->partisanes
réveil-matin->réveille-matin
je vous en serais gré->je vous en saurais gré
s'elle->si elle
s'elles->si elles
suite à->à la suite de
scénette->saynète
opprobe->opprobre
c'est de la faute de->c'est la faute de
c'est de ma faute->c'est ma faute
faire bonne chair->faire bonne chère
rénumérer->rémunérer
un espèce de->une espèce de
rez de chaussée->rez-de-chaussée
raz-de-marée->raz de marée
vinyl->vinyle
| arborigène->aborigène
acceuil->accueil
aggressif->agressif
au jour d'aujourd'hui->aujourd'hui
autant pour moi->au temps pour moi
autrement plus->autrement
aux dépends de->aux dépens de
à l'envie->à l'envi
ayant-droit->ayant droit
ayant-cause->ayant cause
ayant droits->ayants droits
ayant causes->ayants causes
ayant-droits->ayants droits
ayant-causes->ayants causes
malgré qu'->bien qu'
malgré que->malgré
+ chiffre d'affaire->chiffre d'affaires
+ compte-rendu->compte rendu
+ procès verbal->procès-verbal
+ debouts->debout
+ depuis quelques temps-> depuis quelque temps
+ de temps à autres->de temps à autre
+ enjoler->enjôler
+ enjôliver->enjoliver
+ en son fort intérieur->en son for intérieur
+ en temps que->en tant que
+ etc...->etc.
+ ...etc->etc.
+ être sur le grill->être sur le gril
+ hormi->hormis
+ parmis->parmi
+ en navigant->en naviguant
+ ocurrence->occurrence
+ occurence->occurrence
+ ocurence->occurrence
+ partisante->partisane
+ partisantes->partisanes
+ réveil-matin->réveille-matin
+ je vous en serais gré->je vous en saurais gré
+ s'elle->si elle
+ s'elles->si elles
+ suite à->à la suite de
+ scénette->saynète
+ opprobe->opprobre
+ c'est de la faute de->c'est la faute de
+ c'est de ma faute->c'est ma faute
+ faire bonne chair->faire bonne chère
+ rénumérer->rémunérer
+ un espèce de->une espèce de
+ rez de chaussée->rez-de-chaussée
+ raz-de-marée->raz de marée
+ vinyl->vinyle | 36 | 2.25 | 36 | 0 |
bfa7e87bd41973a941c9e4d354062ee498ad6395 | packages/skin-database/api/server.ts | packages/skin-database/api/server.ts | // import Sentry from "@sentry/node";
import { createApp } from "./app";
import DiscordEventHandler from "./DiscordEventHandler";
const port = process.env.PORT ? Number(process.env.PORT) : 3001;
const handler = new DiscordEventHandler();
// GO!
const app = createApp({
eventHandler: (action) => handler.handle(action),
logger: {
log: (message, context) => console.log(message, context),
logError: (message, context) => console.error(message, context),
},
});
app.listen(port, () => console.log(`Example app listening on port ${port}!`));
// Initialize Sentry after we start listening. Any crash at start time will appear in the console and we'll notice.
/*
Sentry.init({
dsn:
"https://0e6bc841b4f744b2953a1fe5981effe6@o68382.ingest.sentry.io/5508241",
// We recommend adjusting this value in production, or using tracesSampler
// for finer control
tracesSampleRate: 1.0,
});
*/
| // import Sentry from "@sentry/node";
import { createApp } from "./app";
import DiscordEventHandler from "./DiscordEventHandler";
const port = process.env.PORT ? Number(process.env.PORT) : 3001;
const handler = new DiscordEventHandler();
// GO!
const app = createApp({
eventHandler: (action) => handler.handle(action),
logger: {
log: (message, context) => console.log(message, context),
logError: (message, context) => console.error(message, context),
},
});
app.listen(port, () =>
console.log(`Example app listening on http://localhost:${port}!`)
);
// Initialize Sentry after we start listening. Any crash at start time will appear in the console and we'll notice.
/*
Sentry.init({
dsn:
"https://0e6bc841b4f744b2953a1fe5981effe6@o68382.ingest.sentry.io/5508241",
// We recommend adjusting this value in production, or using tracesSampler
// for finer control
tracesSampleRate: 1.0,
});
*/
| Improve message to include link | Improve message to include link
| TypeScript | mit | captbaritone/winamp2-js,captbaritone/winamp2-js,captbaritone/winamp2-js | typescript | ## Code Before:
// import Sentry from "@sentry/node";
import { createApp } from "./app";
import DiscordEventHandler from "./DiscordEventHandler";
const port = process.env.PORT ? Number(process.env.PORT) : 3001;
const handler = new DiscordEventHandler();
// GO!
const app = createApp({
eventHandler: (action) => handler.handle(action),
logger: {
log: (message, context) => console.log(message, context),
logError: (message, context) => console.error(message, context),
},
});
app.listen(port, () => console.log(`Example app listening on port ${port}!`));
// Initialize Sentry after we start listening. Any crash at start time will appear in the console and we'll notice.
/*
Sentry.init({
dsn:
"https://0e6bc841b4f744b2953a1fe5981effe6@o68382.ingest.sentry.io/5508241",
// We recommend adjusting this value in production, or using tracesSampler
// for finer control
tracesSampleRate: 1.0,
});
*/
## Instruction:
Improve message to include link
## Code After:
// import Sentry from "@sentry/node";
import { createApp } from "./app";
import DiscordEventHandler from "./DiscordEventHandler";
const port = process.env.PORT ? Number(process.env.PORT) : 3001;
const handler = new DiscordEventHandler();
// GO!
const app = createApp({
eventHandler: (action) => handler.handle(action),
logger: {
log: (message, context) => console.log(message, context),
logError: (message, context) => console.error(message, context),
},
});
app.listen(port, () =>
console.log(`Example app listening on http://localhost:${port}!`)
);
// Initialize Sentry after we start listening. Any crash at start time will appear in the console and we'll notice.
/*
Sentry.init({
dsn:
"https://0e6bc841b4f744b2953a1fe5981effe6@o68382.ingest.sentry.io/5508241",
// We recommend adjusting this value in production, or using tracesSampler
// for finer control
tracesSampleRate: 1.0,
});
*/
| // import Sentry from "@sentry/node";
import { createApp } from "./app";
import DiscordEventHandler from "./DiscordEventHandler";
const port = process.env.PORT ? Number(process.env.PORT) : 3001;
const handler = new DiscordEventHandler();
// GO!
const app = createApp({
eventHandler: (action) => handler.handle(action),
logger: {
log: (message, context) => console.log(message, context),
logError: (message, context) => console.error(message, context),
},
});
- app.listen(port, () => console.log(`Example app listening on port ${port}!`));
+ app.listen(port, () =>
+ console.log(`Example app listening on http://localhost:${port}!`)
+ );
// Initialize Sentry after we start listening. Any crash at start time will appear in the console and we'll notice.
/*
Sentry.init({
dsn:
"https://0e6bc841b4f744b2953a1fe5981effe6@o68382.ingest.sentry.io/5508241",
// We recommend adjusting this value in production, or using tracesSampler
// for finer control
tracesSampleRate: 1.0,
});
*/ | 4 | 0.137931 | 3 | 1 |
9dda23e9c80bccf9e5fbb6e3f8774aa7e0ac6504 | src/Bundle/PageBundle/Resources/config/doctrine/Page.Grid.Row.mongodb.xml | src/Bundle/PageBundle/Resources/config/doctrine/Page.Grid.Row.mongodb.xml | <doctrine-mongo-mapping xmlns="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping.xsd">
<embedded-document name="Integrated\Bundle\PageBundle\Document\Page\Grid\Row">
<embed-many field="columns" target-document="Integrated\Bundle\PageBundle\Document\Page\Grid\Column" strategy="set" />
</embedded-document>
</doctrine-mongo-mapping>
| <doctrine-mongo-mapping xmlns="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping.xsd">
<embedded-document name="Integrated\Bundle\PageBundle\Document\Page\Grid\Row">
<embed-many field="columns" target-document="Integrated\Bundle\PageBundle\Document\Page\Grid\Column" />
</embedded-document>
</doctrine-mongo-mapping>
| Remove strategy="set" from Grid\Column for INTEGRATED-1545 | Remove strategy="set" from Grid\Column for INTEGRATED-1545
| XML | mit | integratedfordevelopers/integrated,integratedfordevelopers/integrated,integratedfordevelopers/integrated | xml | ## Code Before:
<doctrine-mongo-mapping xmlns="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping.xsd">
<embedded-document name="Integrated\Bundle\PageBundle\Document\Page\Grid\Row">
<embed-many field="columns" target-document="Integrated\Bundle\PageBundle\Document\Page\Grid\Column" strategy="set" />
</embedded-document>
</doctrine-mongo-mapping>
## Instruction:
Remove strategy="set" from Grid\Column for INTEGRATED-1545
## Code After:
<doctrine-mongo-mapping xmlns="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping.xsd">
<embedded-document name="Integrated\Bundle\PageBundle\Document\Page\Grid\Row">
<embed-many field="columns" target-document="Integrated\Bundle\PageBundle\Document\Page\Grid\Column" />
</embedded-document>
</doctrine-mongo-mapping>
| <doctrine-mongo-mapping xmlns="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping.xsd">
<embedded-document name="Integrated\Bundle\PageBundle\Document\Page\Grid\Row">
- <embed-many field="columns" target-document="Integrated\Bundle\PageBundle\Document\Page\Grid\Column" strategy="set" />
? ---------------
+ <embed-many field="columns" target-document="Integrated\Bundle\PageBundle\Document\Page\Grid\Column" />
</embedded-document>
</doctrine-mongo-mapping> | 2 | 0.181818 | 1 | 1 |
b2a1eff99af5fb12ce7514efccf6e3897f310993 | .travis.yml | .travis.yml | language: csharp
solution: src/VcEngineAutomation.sln
script:
- msbuild /p:Configuration=Release src/VcEngineAutomation.sln
- nuget pack ./nuspec/VcEngineAutomation.nuspec
- nuget setApiKey $NUGET_API_KEY -Source https://www.nuget.org -Verbosity quiet
- nuget push VcEngine.Automation.*.nupkg -Source https://www.nuget.org/api/v2/package
deploy:
skip_cleanup: true
provider: script
script:
- nuget setApiKey $NUGET_API_KEY -Source https://www.nuget.org -Verbosity quiet
- nuget push VcEngine.Automation.*.nupkg -Source https://www.nuget.org/api/v2/package
on:
branch: master | language: csharp
solution: src/VcEngineAutomation.sln
script:
- msbuild /p:Configuration=Release src/VcEngineAutomation.sln
- nuget pack ./nuspec/VcEngineAutomation.nuspec
- nuget setApiKey $NUGET_API_KEY -Source https://www.nuget.org
- nuget push VcEngine.Automation.*.nupkg -ApiKey $NUGET_API_KEY -Source https://www.nuget.org/api/v2/package
deploy:
skip_cleanup: true
provider: script
script:
- nuget setApiKey $NUGET_API_KEY -Source https://www.nuget.org -Verbosity quiet
- nuget push VcEngine.Automation.*.nupkg -Source https://www.nuget.org/api/v2/package
on:
branch: master | Set API key through command line | Set API key through command line
| YAML | mit | redsolo/vcengine-automation,redsolo/vcengine-automation | yaml | ## Code Before:
language: csharp
solution: src/VcEngineAutomation.sln
script:
- msbuild /p:Configuration=Release src/VcEngineAutomation.sln
- nuget pack ./nuspec/VcEngineAutomation.nuspec
- nuget setApiKey $NUGET_API_KEY -Source https://www.nuget.org -Verbosity quiet
- nuget push VcEngine.Automation.*.nupkg -Source https://www.nuget.org/api/v2/package
deploy:
skip_cleanup: true
provider: script
script:
- nuget setApiKey $NUGET_API_KEY -Source https://www.nuget.org -Verbosity quiet
- nuget push VcEngine.Automation.*.nupkg -Source https://www.nuget.org/api/v2/package
on:
branch: master
## Instruction:
Set API key through command line
## Code After:
language: csharp
solution: src/VcEngineAutomation.sln
script:
- msbuild /p:Configuration=Release src/VcEngineAutomation.sln
- nuget pack ./nuspec/VcEngineAutomation.nuspec
- nuget setApiKey $NUGET_API_KEY -Source https://www.nuget.org
- nuget push VcEngine.Automation.*.nupkg -ApiKey $NUGET_API_KEY -Source https://www.nuget.org/api/v2/package
deploy:
skip_cleanup: true
provider: script
script:
- nuget setApiKey $NUGET_API_KEY -Source https://www.nuget.org -Verbosity quiet
- nuget push VcEngine.Automation.*.nupkg -Source https://www.nuget.org/api/v2/package
on:
branch: master | language: csharp
solution: src/VcEngineAutomation.sln
script:
- msbuild /p:Configuration=Release src/VcEngineAutomation.sln
- nuget pack ./nuspec/VcEngineAutomation.nuspec
- - nuget setApiKey $NUGET_API_KEY -Source https://www.nuget.org -Verbosity quiet
? -----------------
+ - nuget setApiKey $NUGET_API_KEY -Source https://www.nuget.org
- - nuget push VcEngine.Automation.*.nupkg -Source https://www.nuget.org/api/v2/package
+ - nuget push VcEngine.Automation.*.nupkg -ApiKey $NUGET_API_KEY -Source https://www.nuget.org/api/v2/package
? ++++++++++++++++++++++++
deploy:
skip_cleanup: true
provider: script
script:
- nuget setApiKey $NUGET_API_KEY -Source https://www.nuget.org -Verbosity quiet
- nuget push VcEngine.Automation.*.nupkg -Source https://www.nuget.org/api/v2/package
on:
branch: master | 4 | 0.235294 | 2 | 2 |
ca6a758f525c741f277e7e7be115b5b9d20fa5c1 | openxc/tools/dump.py | openxc/tools/dump.py | from __future__ import absolute_import
import argparse
import time
from openxc.formats.json import JsonFormatter
from .common import device_options, configure_logging, select_device
def receive(message, **kwargs):
message['timestamp'] = time.time()
# TODO update docs on trace file format
print(JsonFormatter.serialize(message))
def parse_options():
parser = argparse.ArgumentParser(
description="View a raw OpenXC data stream",
parents=[device_options()])
parser.add_argument("--corrupted",
action="store_true",
dest="show_corrupted",
default=False, help="don't suppress corrupted messages from output")
arguments = parser.parse_args()
return arguments
def main():
configure_logging()
arguments = parse_options()
source_class, source_kwargs = select_device(arguments)
source = source_class(receive, **source_kwargs)
source.start()
while True:
import time
time.sleep(5)
| from __future__ import absolute_import
import argparse
import time
from openxc.formats.json import JsonFormatter
from .common import device_options, configure_logging, select_device
def receive(message, **kwargs):
message['timestamp'] = time.time()
print(JsonFormatter.serialize(message))
def parse_options():
parser = argparse.ArgumentParser(
description="View a raw OpenXC data stream",
parents=[device_options()])
parser.add_argument("--corrupted",
action="store_true",
dest="show_corrupted",
default=False, help="don't suppress corrupted messages from output")
arguments = parser.parse_args()
return arguments
def main():
configure_logging()
arguments = parse_options()
source_class, source_kwargs = select_device(arguments)
source = source_class(receive, **source_kwargs)
source.start()
while True:
import time
time.sleep(5)
| Remove a resolved TODO - trace file formats now standardized. | Remove a resolved TODO - trace file formats now standardized.
| Python | bsd-3-clause | openxc/openxc-python,openxc/openxc-python,openxc/openxc-python | python | ## Code Before:
from __future__ import absolute_import
import argparse
import time
from openxc.formats.json import JsonFormatter
from .common import device_options, configure_logging, select_device
def receive(message, **kwargs):
message['timestamp'] = time.time()
# TODO update docs on trace file format
print(JsonFormatter.serialize(message))
def parse_options():
parser = argparse.ArgumentParser(
description="View a raw OpenXC data stream",
parents=[device_options()])
parser.add_argument("--corrupted",
action="store_true",
dest="show_corrupted",
default=False, help="don't suppress corrupted messages from output")
arguments = parser.parse_args()
return arguments
def main():
configure_logging()
arguments = parse_options()
source_class, source_kwargs = select_device(arguments)
source = source_class(receive, **source_kwargs)
source.start()
while True:
import time
time.sleep(5)
## Instruction:
Remove a resolved TODO - trace file formats now standardized.
## Code After:
from __future__ import absolute_import
import argparse
import time
from openxc.formats.json import JsonFormatter
from .common import device_options, configure_logging, select_device
def receive(message, **kwargs):
message['timestamp'] = time.time()
print(JsonFormatter.serialize(message))
def parse_options():
parser = argparse.ArgumentParser(
description="View a raw OpenXC data stream",
parents=[device_options()])
parser.add_argument("--corrupted",
action="store_true",
dest="show_corrupted",
default=False, help="don't suppress corrupted messages from output")
arguments = parser.parse_args()
return arguments
def main():
configure_logging()
arguments = parse_options()
source_class, source_kwargs = select_device(arguments)
source = source_class(receive, **source_kwargs)
source.start()
while True:
import time
time.sleep(5)
| from __future__ import absolute_import
import argparse
import time
from openxc.formats.json import JsonFormatter
from .common import device_options, configure_logging, select_device
def receive(message, **kwargs):
message['timestamp'] = time.time()
- # TODO update docs on trace file format
print(JsonFormatter.serialize(message))
def parse_options():
parser = argparse.ArgumentParser(
description="View a raw OpenXC data stream",
parents=[device_options()])
parser.add_argument("--corrupted",
action="store_true",
dest="show_corrupted",
default=False, help="don't suppress corrupted messages from output")
arguments = parser.parse_args()
return arguments
def main():
configure_logging()
arguments = parse_options()
source_class, source_kwargs = select_device(arguments)
source = source_class(receive, **source_kwargs)
source.start()
while True:
import time
time.sleep(5) | 1 | 0.026316 | 0 | 1 |
331ba1ae38cc5f12e55ccd878221a65f41ab3897 | README.rst | README.rst | jsonref
=======
.. image:: https://travis-ci.org/gazpachoking/jsonref.png?branch=master
:target: https://travis-ci.org/gazpachoking/jsonref
``jsonref`` is an implementation of
`JSON Reference <http://tools.ietf.org/id/draft-pbryan-zyp-json-ref-03.html>`_
for Python (supporting 2.6+ including Python 3).
This library effectively replaces all JSON reference objects with the referent
data. The references are evaluated lazily, so nothing is dereferenced until
it is used. This also means recursive references are supported, as long as you
do not try to iterate over the entire data structure.
.. code-block:: python
>>> from pprint import pprint
>>> import jsonref
>>> # An example json document
>>> json_str = """{"a": 12345, "b": {"$ref": "#/a"}}"""
>>> pprint(jsonref.loads(json_str))
{'a': 12345, 'b': 12345}
| jsonref
=======
.. image:: https://travis-ci.org/gazpachoking/jsonref.png?branch=master
:target: https://travis-ci.org/gazpachoking/jsonref
``jsonref`` is an implementation of
`JSON Reference <http://tools.ietf.org/id/draft-pbryan-zyp-json-ref-03.html>`_
for Python (supporting 2.6+ including Python 3).
This library effectively replaces all JSON reference objects with the referent
data. The references are evaluated lazily, so nothing is dereferenced until
it is used. This also means recursive references are supported, as long as you
do not try to iterate over the entire data structure.
.. code-block:: python
>>> from pprint import pprint
>>> import jsonref
>>> # An example json document
>>> json_str = """{"a": 12345, "b": {"$ref": "#/a"}}"""
>>> data = jsonref.loads(json_str)
>>> pprint(data)
{'a': 12345, 'b': 12345}
The proxies are almost completely transparent, and support all operations of
the underlying data.
.. code-block:: python
>>> data["a"] == data["b"]
True
>>> data["b"] *= 2
>>> pprint(data)
{'a': 12345, 'b': 24690}
>>> isinstance(data["b"], int)
True
>>> # You can tell it is a proxy by using the type function
>>> type(data["b"])
<class 'lazyproxy.LazyProxy'>
| Add a bit more info about proxy in readme | Add a bit more info about proxy in readme
| reStructuredText | mit | gazpachoking/jsonref | restructuredtext | ## Code Before:
jsonref
=======
.. image:: https://travis-ci.org/gazpachoking/jsonref.png?branch=master
:target: https://travis-ci.org/gazpachoking/jsonref
``jsonref`` is an implementation of
`JSON Reference <http://tools.ietf.org/id/draft-pbryan-zyp-json-ref-03.html>`_
for Python (supporting 2.6+ including Python 3).
This library effectively replaces all JSON reference objects with the referent
data. The references are evaluated lazily, so nothing is dereferenced until
it is used. This also means recursive references are supported, as long as you
do not try to iterate over the entire data structure.
.. code-block:: python
>>> from pprint import pprint
>>> import jsonref
>>> # An example json document
>>> json_str = """{"a": 12345, "b": {"$ref": "#/a"}}"""
>>> pprint(jsonref.loads(json_str))
{'a': 12345, 'b': 12345}
## Instruction:
Add a bit more info about proxy in readme
## Code After:
jsonref
=======
.. image:: https://travis-ci.org/gazpachoking/jsonref.png?branch=master
:target: https://travis-ci.org/gazpachoking/jsonref
``jsonref`` is an implementation of
`JSON Reference <http://tools.ietf.org/id/draft-pbryan-zyp-json-ref-03.html>`_
for Python (supporting 2.6+ including Python 3).
This library effectively replaces all JSON reference objects with the referent
data. The references are evaluated lazily, so nothing is dereferenced until
it is used. This also means recursive references are supported, as long as you
do not try to iterate over the entire data structure.
.. code-block:: python
>>> from pprint import pprint
>>> import jsonref
>>> # An example json document
>>> json_str = """{"a": 12345, "b": {"$ref": "#/a"}}"""
>>> data = jsonref.loads(json_str)
>>> pprint(data)
{'a': 12345, 'b': 12345}
The proxies are almost completely transparent, and support all operations of
the underlying data.
.. code-block:: python
>>> data["a"] == data["b"]
True
>>> data["b"] *= 2
>>> pprint(data)
{'a': 12345, 'b': 24690}
>>> isinstance(data["b"], int)
True
>>> # You can tell it is a proxy by using the type function
>>> type(data["b"])
<class 'lazyproxy.LazyProxy'>
| jsonref
=======
.. image:: https://travis-ci.org/gazpachoking/jsonref.png?branch=master
:target: https://travis-ci.org/gazpachoking/jsonref
``jsonref`` is an implementation of
`JSON Reference <http://tools.ietf.org/id/draft-pbryan-zyp-json-ref-03.html>`_
for Python (supporting 2.6+ including Python 3).
This library effectively replaces all JSON reference objects with the referent
data. The references are evaluated lazily, so nothing is dereferenced until
it is used. This also means recursive references are supported, as long as you
do not try to iterate over the entire data structure.
.. code-block:: python
>>> from pprint import pprint
>>> import jsonref
>>> # An example json document
>>> json_str = """{"a": 12345, "b": {"$ref": "#/a"}}"""
- >>> pprint(jsonref.loads(json_str))
? ^^^^^ ^ -
+ >>> data = jsonref.loads(json_str)
? ^^ ^^^^
+ >>> pprint(data)
{'a': 12345, 'b': 12345}
+
+ The proxies are almost completely transparent, and support all operations of
+ the underlying data.
+
+ .. code-block:: python
+
+ >>> data["a"] == data["b"]
+ True
+ >>> data["b"] *= 2
+ >>> pprint(data)
+ {'a': 12345, 'b': 24690}
+ >>> isinstance(data["b"], int)
+ True
+ >>> # You can tell it is a proxy by using the type function
+ >>> type(data["b"])
+ <class 'lazyproxy.LazyProxy'> | 19 | 0.76 | 18 | 1 |
93acb34d999f89d23d2b613f12c1c767304c2ad6 | gor/middleware.py | gor/middleware.py |
import os, sys
from .base import Gor
from tornado import gen, ioloop, queues
class TornadoGor(Gor):
def __init__(self, *args, **kwargs):
super(TornadoGor, self).__init__(*args, **kwargs)
self.q = queues.Queue()
self.concurrency = kwargs.get('concurrency', 2)
@gen.coroutine
def _process(self):
line = yield self.q.get()
try:
msg = self.parse_message(line)
if msg:
self.emit(msg, line)
finally:
self.q.task_done()
@gen.coroutine
def _worker(self):
while True:
yield self._process()
@gen.coroutine
def _run(self):
for _ in range(self.concurrency):
self._worker()
while True:
try:
line = sys.stdin.readline()
except KeyboardInterrupt:
try:
sys.exit(0)
except SystemExit:
os._exit(0)
self.q.put(line)
yield
def run(self):
self.io_loop = ioloop.IOLoop.current()
self.io_loop.run_sync(self._run)
|
import sys
import errno
import logging
from .base import Gor
from tornado import gen, ioloop, queues
import contextlib
from tornado.stack_context import StackContext
@contextlib.contextmanager
def die_on_error():
try:
yield
except Exception:
logging.error("exception in asynchronous operation", exc_info=True)
sys.exit(1)
class TornadoGor(Gor):
def __init__(self, *args, **kwargs):
super(TornadoGor, self).__init__(*args, **kwargs)
self.q = queues.Queue()
self.concurrency = kwargs.get('concurrency', 2)
@gen.coroutine
def _process(self):
line = yield self.q.get()
try:
msg = self.parse_message(line)
if msg:
self.emit(msg, line)
finally:
self.q.task_done()
@gen.coroutine
def _worker(self):
while True:
yield self._process()
@gen.coroutine
def _run(self):
for _ in range(self.concurrency):
self._worker()
while True:
try:
line = sys.stdin.readline()
except KeyboardInterrupt:
ioloop.IOLoop.instance().stop()
break
self.q.put(line)
yield
def run(self):
with StackContext(die_on_error):
self.io_loop = ioloop.IOLoop.current()
self.io_loop.run_sync(self._run)
sys.exit(errno.EINTR)
| Exit as soon as KeyboardInterrupt catched | Exit as soon as KeyboardInterrupt catched
| Python | mit | amyangfei/GorMW | python | ## Code Before:
import os, sys
from .base import Gor
from tornado import gen, ioloop, queues
class TornadoGor(Gor):
def __init__(self, *args, **kwargs):
super(TornadoGor, self).__init__(*args, **kwargs)
self.q = queues.Queue()
self.concurrency = kwargs.get('concurrency', 2)
@gen.coroutine
def _process(self):
line = yield self.q.get()
try:
msg = self.parse_message(line)
if msg:
self.emit(msg, line)
finally:
self.q.task_done()
@gen.coroutine
def _worker(self):
while True:
yield self._process()
@gen.coroutine
def _run(self):
for _ in range(self.concurrency):
self._worker()
while True:
try:
line = sys.stdin.readline()
except KeyboardInterrupt:
try:
sys.exit(0)
except SystemExit:
os._exit(0)
self.q.put(line)
yield
def run(self):
self.io_loop = ioloop.IOLoop.current()
self.io_loop.run_sync(self._run)
## Instruction:
Exit as soon as KeyboardInterrupt catched
## Code After:
import sys
import errno
import logging
from .base import Gor
from tornado import gen, ioloop, queues
import contextlib
from tornado.stack_context import StackContext
@contextlib.contextmanager
def die_on_error():
try:
yield
except Exception:
logging.error("exception in asynchronous operation", exc_info=True)
sys.exit(1)
class TornadoGor(Gor):
def __init__(self, *args, **kwargs):
super(TornadoGor, self).__init__(*args, **kwargs)
self.q = queues.Queue()
self.concurrency = kwargs.get('concurrency', 2)
@gen.coroutine
def _process(self):
line = yield self.q.get()
try:
msg = self.parse_message(line)
if msg:
self.emit(msg, line)
finally:
self.q.task_done()
@gen.coroutine
def _worker(self):
while True:
yield self._process()
@gen.coroutine
def _run(self):
for _ in range(self.concurrency):
self._worker()
while True:
try:
line = sys.stdin.readline()
except KeyboardInterrupt:
ioloop.IOLoop.instance().stop()
break
self.q.put(line)
yield
def run(self):
with StackContext(die_on_error):
self.io_loop = ioloop.IOLoop.current()
self.io_loop.run_sync(self._run)
sys.exit(errno.EINTR)
|
- import os, sys
? ----
+ import sys
+ import errno
+ import logging
from .base import Gor
from tornado import gen, ioloop, queues
+
+
+ import contextlib
+ from tornado.stack_context import StackContext
+
+ @contextlib.contextmanager
+ def die_on_error():
+ try:
+ yield
+ except Exception:
+ logging.error("exception in asynchronous operation", exc_info=True)
+ sys.exit(1)
class TornadoGor(Gor):
def __init__(self, *args, **kwargs):
super(TornadoGor, self).__init__(*args, **kwargs)
self.q = queues.Queue()
self.concurrency = kwargs.get('concurrency', 2)
@gen.coroutine
def _process(self):
line = yield self.q.get()
try:
msg = self.parse_message(line)
if msg:
self.emit(msg, line)
finally:
self.q.task_done()
@gen.coroutine
def _worker(self):
while True:
yield self._process()
@gen.coroutine
def _run(self):
for _ in range(self.concurrency):
self._worker()
while True:
try:
line = sys.stdin.readline()
except KeyboardInterrupt:
+ ioloop.IOLoop.instance().stop()
- try:
? ^ ^^
+ break
? ^ ^^^
- sys.exit(0)
- except SystemExit:
- os._exit(0)
self.q.put(line)
yield
def run(self):
+ with StackContext(die_on_error):
- self.io_loop = ioloop.IOLoop.current()
+ self.io_loop = ioloop.IOLoop.current()
? ++++
- self.io_loop.run_sync(self._run)
+ self.io_loop.run_sync(self._run)
? ++++
+ sys.exit(errno.EINTR) | 28 | 0.571429 | 21 | 7 |
97bfbf4e9f9ecd7e438d9a068deb90bb9b60e593 | Casks/mozart2.rb | Casks/mozart2.rb | cask :v1 => 'mozart2' do
version '2.0.0'
sha256 '4f077b0658557e532bfa7519977ce9870c55350a1cb395ef77bcab623c70ee04'
# sourceforge.net is the official download host per the vendor homepage
url 'http://downloads.sourceforge.net/project/mozart-oz/v2.0.0-alpha.0/mozart2-2.0.0-alpha.0%2Bbuild.4116.bdeaf6c-x86_64-darwin.dmg'
name 'Mozart'
homepage 'http://www.mozart-oz.org'
license :oss
app 'Mozart2.app'
end
| cask :v1 => 'mozart2' do
version '2.0.0'
sha256 '4f077b0658557e532bfa7519977ce9870c55350a1cb395ef77bcab623c70ee04'
# sourceforge.net is the official download host per the vendor homepage
url 'http://downloads.sourceforge.net/sourceforge/mozart-oz/mozart2-2.0.0-alpha.0+build.4116.bdeaf6c-x86_64-darwin.dmg'
name 'Mozart'
homepage 'http://mozart.github.io/'
license :oss
app 'Mozart2.app'
end
| Fix url and homepage in Mozart2 Cask | Fix url and homepage in Mozart2 Cask
* Specify url in a preferable URL format as stated at
https://github.com/caskroom/homebrew-cask/blob/master/CONTRIBUTING.md#sourceforge-urls
* Provide a valid link to Mozart2 homepage
| Ruby | bsd-2-clause | pkq/homebrew-versions,wickedsp1d3r/homebrew-versions,mahori/homebrew-cask-versions,digital-wonderland/homebrew-versions,bey2lah/homebrew-versions,danielbayley/homebrew-versions,hugoboos/homebrew-versions,mauricerkelly/homebrew-versions,wickedsp1d3r/homebrew-versions,toonetown/homebrew-cask-versions,RJHsiao/homebrew-versions,hubwub/homebrew-versions,caskroom/homebrew-versions,victorpopkov/homebrew-versions,mauricerkelly/homebrew-versions,bondezbond/homebrew-versions,coeligena/homebrew-verscustomized,FinalDes/homebrew-versions,stigkj/homebrew-caskroom-versions,yurikoles/homebrew-versions,stigkj/homebrew-caskroom-versions,rogeriopradoj/homebrew-versions,danielbayley/homebrew-versions,peterjosling/homebrew-versions,zerrot/homebrew-versions,rogeriopradoj/homebrew-versions,404NetworkError/homebrew-versions,peterjosling/homebrew-versions,pkq/homebrew-versions,victorpopkov/homebrew-versions,lantrix/homebrew-versions,hugoboos/homebrew-versions,toonetown/homebrew-cask-versions,404NetworkError/homebrew-versions,RJHsiao/homebrew-versions,yurikoles/homebrew-versions,hubwub/homebrew-versions,bondezbond/homebrew-versions,cprecioso/homebrew-versions,cprecioso/homebrew-versions,caskroom/homebrew-versions,lantrix/homebrew-versions,Ngrd/homebrew-versions,FinalDes/homebrew-versions,bey2lah/homebrew-versions,Ngrd/homebrew-versions,mahori/homebrew-versions | ruby | ## Code Before:
cask :v1 => 'mozart2' do
version '2.0.0'
sha256 '4f077b0658557e532bfa7519977ce9870c55350a1cb395ef77bcab623c70ee04'
# sourceforge.net is the official download host per the vendor homepage
url 'http://downloads.sourceforge.net/project/mozart-oz/v2.0.0-alpha.0/mozart2-2.0.0-alpha.0%2Bbuild.4116.bdeaf6c-x86_64-darwin.dmg'
name 'Mozart'
homepage 'http://www.mozart-oz.org'
license :oss
app 'Mozart2.app'
end
## Instruction:
Fix url and homepage in Mozart2 Cask
* Specify url in a preferable URL format as stated at
https://github.com/caskroom/homebrew-cask/blob/master/CONTRIBUTING.md#sourceforge-urls
* Provide a valid link to Mozart2 homepage
## Code After:
cask :v1 => 'mozart2' do
version '2.0.0'
sha256 '4f077b0658557e532bfa7519977ce9870c55350a1cb395ef77bcab623c70ee04'
# sourceforge.net is the official download host per the vendor homepage
url 'http://downloads.sourceforge.net/sourceforge/mozart-oz/mozart2-2.0.0-alpha.0+build.4116.bdeaf6c-x86_64-darwin.dmg'
name 'Mozart'
homepage 'http://mozart.github.io/'
license :oss
app 'Mozart2.app'
end
| cask :v1 => 'mozart2' do
version '2.0.0'
sha256 '4f077b0658557e532bfa7519977ce9870c55350a1cb395ef77bcab623c70ee04'
# sourceforge.net is the official download host per the vendor homepage
- url 'http://downloads.sourceforge.net/project/mozart-oz/v2.0.0-alpha.0/mozart2-2.0.0-alpha.0%2Bbuild.4116.bdeaf6c-x86_64-darwin.dmg'
? ^ ^ -- --------------- ^^^
+ url 'http://downloads.sourceforge.net/sourceforge/mozart-oz/mozart2-2.0.0-alpha.0+build.4116.bdeaf6c-x86_64-darwin.dmg'
? ^^^ +++ ^^ ^
name 'Mozart'
- homepage 'http://www.mozart-oz.org'
+ homepage 'http://mozart.github.io/'
license :oss
app 'Mozart2.app'
end | 4 | 0.333333 | 2 | 2 |
5a6f4c5690d3f7292e6c96ea7170c741306665e3 | app/controllers/user_preference_controller.rb | app/controllers/user_preference_controller.rb | class UserPreferenceController < ApplicationController
before_filter :authorize
def read
doc = OSM::API.new.get_xml_doc
prefs = @user.preferences
el1 = XML::Node.new 'preferences'
prefs.each do |pref|
el1 << pref.to_xml_node
end
doc.root << el1
render :text => doc.to_s, :content_type => "text/xml"
end
def update
begin
p = XML::Parser.new
p.string = request.raw_post
doc = p.parse
prefs = []
keyhash = {}
doc.find('//preferences/preference').each do |pt|
pref = UserPreference.new
unless keyhash[pt['k']].nil? # already have that key
render :text => 'OH NOES! CAN HAS UNIQUE KEYS?', :status => 406
return
end
keyhash[pt['k']] = 1
pref.k = pt['k']
pref.v = pt['v']
pref.user_id = @user.id
prefs << pref
end
if prefs.size > 150
render :text => 'Too many preferences', :status => 413
return
end
# kill the existing ones
UserPreference.delete_all(['user_id = ?', @user.id])
# save the new ones
prefs.each do |pref|
pref.save!
end
rescue Exception => ex
render :text => 'OH NOES! FAIL!: ' + ex.to_s, :status => 500
return
end
render :nothing => true
end
end
| class UserPreferenceController < ApplicationController
before_filter :authorize
def read
doc = OSM::API.new.get_xml_doc
prefs = @user.preferences
el1 = XML::Node.new 'preferences'
prefs.each do |pref|
el1 << pref.to_xml_node
end
doc.root << el1
render :text => doc.to_s, :content_type => "text/xml"
end
def update
begin
p = XML::Parser.new
p.string = request.raw_post
doc = p.parse
prefs = []
keyhash = {}
doc.find('//preferences/preference').each do |pt|
pref = UserPreference.new
unless keyhash[pt['k']].nil? # already have that key
render :text => 'OH NOES! CAN HAS UNIQUE KEYS?', :status => :not_acceptable
return
end
keyhash[pt['k']] = 1
pref.k = pt['k']
pref.v = pt['v']
pref.user_id = @user.id
prefs << pref
end
if prefs.size > 150
render :text => 'Too many preferences', :status => :request_entity_too_large
return
end
# kill the existing ones
UserPreference.delete_all(['user_id = ?', @user.id])
# save the new ones
prefs.each do |pref|
pref.save!
end
rescue Exception => ex
render :text => 'OH NOES! FAIL!: ' + ex.to_s, :status => :internal_server_error
return
end
render :nothing => true
end
end
| Use named constants for HTTP response codes. | Use named constants for HTTP response codes.
| Ruby | agpl-3.0 | tillmo/do-roam,tillmo/do-roam,tillmo/do-roam,tillmo/do-roam,tillmo/do-roam,tillmo/do-roam | ruby | ## Code Before:
class UserPreferenceController < ApplicationController
before_filter :authorize
def read
doc = OSM::API.new.get_xml_doc
prefs = @user.preferences
el1 = XML::Node.new 'preferences'
prefs.each do |pref|
el1 << pref.to_xml_node
end
doc.root << el1
render :text => doc.to_s, :content_type => "text/xml"
end
def update
begin
p = XML::Parser.new
p.string = request.raw_post
doc = p.parse
prefs = []
keyhash = {}
doc.find('//preferences/preference').each do |pt|
pref = UserPreference.new
unless keyhash[pt['k']].nil? # already have that key
render :text => 'OH NOES! CAN HAS UNIQUE KEYS?', :status => 406
return
end
keyhash[pt['k']] = 1
pref.k = pt['k']
pref.v = pt['v']
pref.user_id = @user.id
prefs << pref
end
if prefs.size > 150
render :text => 'Too many preferences', :status => 413
return
end
# kill the existing ones
UserPreference.delete_all(['user_id = ?', @user.id])
# save the new ones
prefs.each do |pref|
pref.save!
end
rescue Exception => ex
render :text => 'OH NOES! FAIL!: ' + ex.to_s, :status => 500
return
end
render :nothing => true
end
end
## Instruction:
Use named constants for HTTP response codes.
## Code After:
class UserPreferenceController < ApplicationController
before_filter :authorize
def read
doc = OSM::API.new.get_xml_doc
prefs = @user.preferences
el1 = XML::Node.new 'preferences'
prefs.each do |pref|
el1 << pref.to_xml_node
end
doc.root << el1
render :text => doc.to_s, :content_type => "text/xml"
end
def update
begin
p = XML::Parser.new
p.string = request.raw_post
doc = p.parse
prefs = []
keyhash = {}
doc.find('//preferences/preference').each do |pt|
pref = UserPreference.new
unless keyhash[pt['k']].nil? # already have that key
render :text => 'OH NOES! CAN HAS UNIQUE KEYS?', :status => :not_acceptable
return
end
keyhash[pt['k']] = 1
pref.k = pt['k']
pref.v = pt['v']
pref.user_id = @user.id
prefs << pref
end
if prefs.size > 150
render :text => 'Too many preferences', :status => :request_entity_too_large
return
end
# kill the existing ones
UserPreference.delete_all(['user_id = ?', @user.id])
# save the new ones
prefs.each do |pref|
pref.save!
end
rescue Exception => ex
render :text => 'OH NOES! FAIL!: ' + ex.to_s, :status => :internal_server_error
return
end
render :nothing => true
end
end
| class UserPreferenceController < ApplicationController
before_filter :authorize
def read
doc = OSM::API.new.get_xml_doc
prefs = @user.preferences
el1 = XML::Node.new 'preferences'
prefs.each do |pref|
el1 << pref.to_xml_node
end
doc.root << el1
render :text => doc.to_s, :content_type => "text/xml"
end
def update
begin
p = XML::Parser.new
p.string = request.raw_post
doc = p.parse
prefs = []
keyhash = {}
doc.find('//preferences/preference').each do |pt|
pref = UserPreference.new
unless keyhash[pt['k']].nil? # already have that key
- render :text => 'OH NOES! CAN HAS UNIQUE KEYS?', :status => 406
? ^^^
+ render :text => 'OH NOES! CAN HAS UNIQUE KEYS?', :status => :not_acceptable
? ^^^^^^^^^^^^^^^
return
end
keyhash[pt['k']] = 1
pref.k = pt['k']
pref.v = pt['v']
pref.user_id = @user.id
prefs << pref
end
if prefs.size > 150
- render :text => 'Too many preferences', :status => 413
? ^^^
+ render :text => 'Too many preferences', :status => :request_entity_too_large
? ^^^^^^^^^^^^^^^^^^^^^^^^^
return
end
# kill the existing ones
UserPreference.delete_all(['user_id = ?', @user.id])
# save the new ones
prefs.each do |pref|
pref.save!
end
rescue Exception => ex
- render :text => 'OH NOES! FAIL!: ' + ex.to_s, :status => 500
? ^^^
+ render :text => 'OH NOES! FAIL!: ' + ex.to_s, :status => :internal_server_error
? ^^^^^^^^^^^^^^^^^^^^^^
return
end
render :nothing => true
end
end | 6 | 0.088235 | 3 | 3 |
7697cd9e118f64580fc57b4742a99a4edc4ce297 | app/client/src/components/common/Input.tsx | app/client/src/components/common/Input.tsx | import { InputHTMLAttributes, memo, FC } from 'react'
import { FieldPath, UseFormReturn } from 'react-hook-form'
import styled from 'styled-components'
import { colors } from '../../theme'
import { FormValues } from '../../types/form'
const StyledInput = styled.input`
border: none;
background: ${colors.input};
padding: 1rem;
color: ${colors.white};
transition: all 0.2s ease;
border-radius: 10px;
font-size: 0.85rem;
&:focus {
outline: 0;
border-color: ${colors.primary};
box-shadow: 0 0 4px 1px ${colors.primary};
}
&::placeholder {
color: white;
opacity: 0;
}
`
export interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
formContext: UseFormReturn<FormValues>
name: FieldPath<FormValues>
}
export const Input: FC<InputProps> = memo(
({ formContext, name, ...inputProps }) => (
<StyledInput {...inputProps} {...formContext.register(name)} />
),
(prevProps, nextProps) =>
prevProps.formContext.formState.isDirty ===
nextProps.formContext.formState.isDirty
)
| import { InputHTMLAttributes, memo, FC } from 'react'
import { FieldPath, UseFormReturn } from 'react-hook-form'
import styled from 'styled-components'
import { colors } from '../../theme'
import { FormValues } from '../../types/form'
const StyledInput = styled.input`
border: none;
background: ${colors.input};
padding: 1rem;
color: ${colors.white};
transition: all 0.2s ease;
border-radius: 10px;
font-size: 0.85rem;
&:focus {
outline: 0;
border-color: ${colors.primary};
box-shadow: 0 0 4px 1px ${colors.primary};
&::placeholder {
color: #c0c5ce;
opacity: 0.3;
}
}
&::placeholder {
color: white;
opacity: 0;
}
`
export interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
formContext: UseFormReturn<FormValues>
name: FieldPath<FormValues>
}
export const Input: FC<InputProps> = memo(
({ formContext, name, ...inputProps }) => (
<StyledInput {...inputProps} {...formContext.register(name)} />
),
(prevProps, nextProps) =>
prevProps.formContext.formState.isDirty ===
nextProps.formContext.formState.isDirty
)
| Change placeholder styling on focus | Change placeholder styling on focus
| TypeScript | mit | saadq/latexresu.me,saadq/latexresu.me | typescript | ## Code Before:
import { InputHTMLAttributes, memo, FC } from 'react'
import { FieldPath, UseFormReturn } from 'react-hook-form'
import styled from 'styled-components'
import { colors } from '../../theme'
import { FormValues } from '../../types/form'
const StyledInput = styled.input`
border: none;
background: ${colors.input};
padding: 1rem;
color: ${colors.white};
transition: all 0.2s ease;
border-radius: 10px;
font-size: 0.85rem;
&:focus {
outline: 0;
border-color: ${colors.primary};
box-shadow: 0 0 4px 1px ${colors.primary};
}
&::placeholder {
color: white;
opacity: 0;
}
`
export interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
formContext: UseFormReturn<FormValues>
name: FieldPath<FormValues>
}
export const Input: FC<InputProps> = memo(
({ formContext, name, ...inputProps }) => (
<StyledInput {...inputProps} {...formContext.register(name)} />
),
(prevProps, nextProps) =>
prevProps.formContext.formState.isDirty ===
nextProps.formContext.formState.isDirty
)
## Instruction:
Change placeholder styling on focus
## Code After:
import { InputHTMLAttributes, memo, FC } from 'react'
import { FieldPath, UseFormReturn } from 'react-hook-form'
import styled from 'styled-components'
import { colors } from '../../theme'
import { FormValues } from '../../types/form'
const StyledInput = styled.input`
border: none;
background: ${colors.input};
padding: 1rem;
color: ${colors.white};
transition: all 0.2s ease;
border-radius: 10px;
font-size: 0.85rem;
&:focus {
outline: 0;
border-color: ${colors.primary};
box-shadow: 0 0 4px 1px ${colors.primary};
&::placeholder {
color: #c0c5ce;
opacity: 0.3;
}
}
&::placeholder {
color: white;
opacity: 0;
}
`
export interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
formContext: UseFormReturn<FormValues>
name: FieldPath<FormValues>
}
export const Input: FC<InputProps> = memo(
({ formContext, name, ...inputProps }) => (
<StyledInput {...inputProps} {...formContext.register(name)} />
),
(prevProps, nextProps) =>
prevProps.formContext.formState.isDirty ===
nextProps.formContext.formState.isDirty
)
| import { InputHTMLAttributes, memo, FC } from 'react'
import { FieldPath, UseFormReturn } from 'react-hook-form'
import styled from 'styled-components'
import { colors } from '../../theme'
import { FormValues } from '../../types/form'
const StyledInput = styled.input`
border: none;
background: ${colors.input};
padding: 1rem;
color: ${colors.white};
transition: all 0.2s ease;
border-radius: 10px;
font-size: 0.85rem;
&:focus {
outline: 0;
border-color: ${colors.primary};
box-shadow: 0 0 4px 1px ${colors.primary};
+ &::placeholder {
+ color: #c0c5ce;
+ opacity: 0.3;
+ }
}
&::placeholder {
color: white;
opacity: 0;
}
`
export interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
formContext: UseFormReturn<FormValues>
name: FieldPath<FormValues>
}
export const Input: FC<InputProps> = memo(
({ formContext, name, ...inputProps }) => (
<StyledInput {...inputProps} {...formContext.register(name)} />
),
(prevProps, nextProps) =>
prevProps.formContext.formState.isDirty ===
nextProps.formContext.formState.isDirty
) | 4 | 0.1 | 4 | 0 |
e003df1fd5f972751ef8585111b9b01b97cc6ffb | stemcell_builder/stages/base_centos/apply.sh | stemcell_builder/stages/base_centos/apply.sh |
set -e
base_dir=$(readlink -nf $(dirname $0)/../..)
source $base_dir/lib/prelude_apply.bash
mkdir -p $chroot/var/lib/rpm
rpm --root $chroot --rebuilddb
rpm --root $chroot --force --nodeps --install http://mirror.centos.org/centos/6/os/x86_64/Packages/centos-release-6-4.el6.centos.10.x86_64.rpm
cp /etc/resolv.conf $chroot/etc/resolv.conf
unshare -m $SHELL <<INSTALL_YUM
set -x
mkdir -p /etc/pki
mount -obind $chroot/etc/pki /etc/pki
yum --installroot=$chroot --assumeyes install yum
INSTALL_YUM
unshare -m $SHELL <<INSTALL_BASE_OS
set -x
mkdir -p $chroot/dev
mount -obind /dev $chroot/dev
mount -obind /dev/pts $chroot/dev/pts
mkdir -p $chroot/proc
mount -obind /proc $chroot/proc
mkdir -p $chroot/sys
mount -obind /sys $chroot/sys
chroot $chroot rpm --force --nodeps --install http://mirror.centos.org/centos/6/os/x86_64/Packages/centos-release-6-4.el6.centos.10.x86_64.rpm
chroot $chroot yum --assumeyes groupinstall Base
chroot $chroot yum --assumeyes groupinstall 'Development Tools'
INSTALL_BASE_OS
|
set -e
base_dir=$(readlink -nf $(dirname $0)/../..)
source $base_dir/lib/prelude_apply.bash
mkdir -p $chroot/var/lib/rpm
rpm --root $chroot --rebuilddb
rpm --root $chroot --force --nodeps --install http://mirror.centos.org/centos/6/os/x86_64/Packages/centos-release-6-4.el6.centos.10.x86_64.rpm
cp /etc/resolv.conf $chroot/etc/resolv.conf
unshare -m $SHELL <<INSTALL_YUM
set -x
mkdir -p /etc/pki
mount -obind $chroot/etc/pki /etc/pki
yum --installroot=$chroot --assumeyes install yum
INSTALL_YUM
run_in_chroot $chroot "
rpm --force --nodeps --install http://mirror.centos.org/centos/6/os/x86_64/Packages/centos-release-6-4.el6.centos.10.x86_64.rpm
yum --assumeyes groupinstall Base
yum --assumeyes groupinstall 'Development Tools'
"
| Use run_in_chroot function instead of hand-rolling | Use run_in_chroot function instead of hand-rolling
Signed-off-by: Tony Hansmann <2c126519f2a6ad76296f425c3012060fde99f90e@pivotallabs.com>
| Shell | apache-2.0 | barthy1/bosh,barthy1/bosh,barthy1/bosh,barthy1/bosh | shell | ## Code Before:
set -e
base_dir=$(readlink -nf $(dirname $0)/../..)
source $base_dir/lib/prelude_apply.bash
mkdir -p $chroot/var/lib/rpm
rpm --root $chroot --rebuilddb
rpm --root $chroot --force --nodeps --install http://mirror.centos.org/centos/6/os/x86_64/Packages/centos-release-6-4.el6.centos.10.x86_64.rpm
cp /etc/resolv.conf $chroot/etc/resolv.conf
unshare -m $SHELL <<INSTALL_YUM
set -x
mkdir -p /etc/pki
mount -obind $chroot/etc/pki /etc/pki
yum --installroot=$chroot --assumeyes install yum
INSTALL_YUM
unshare -m $SHELL <<INSTALL_BASE_OS
set -x
mkdir -p $chroot/dev
mount -obind /dev $chroot/dev
mount -obind /dev/pts $chroot/dev/pts
mkdir -p $chroot/proc
mount -obind /proc $chroot/proc
mkdir -p $chroot/sys
mount -obind /sys $chroot/sys
chroot $chroot rpm --force --nodeps --install http://mirror.centos.org/centos/6/os/x86_64/Packages/centos-release-6-4.el6.centos.10.x86_64.rpm
chroot $chroot yum --assumeyes groupinstall Base
chroot $chroot yum --assumeyes groupinstall 'Development Tools'
INSTALL_BASE_OS
## Instruction:
Use run_in_chroot function instead of hand-rolling
Signed-off-by: Tony Hansmann <2c126519f2a6ad76296f425c3012060fde99f90e@pivotallabs.com>
## Code After:
set -e
base_dir=$(readlink -nf $(dirname $0)/../..)
source $base_dir/lib/prelude_apply.bash
mkdir -p $chroot/var/lib/rpm
rpm --root $chroot --rebuilddb
rpm --root $chroot --force --nodeps --install http://mirror.centos.org/centos/6/os/x86_64/Packages/centos-release-6-4.el6.centos.10.x86_64.rpm
cp /etc/resolv.conf $chroot/etc/resolv.conf
unshare -m $SHELL <<INSTALL_YUM
set -x
mkdir -p /etc/pki
mount -obind $chroot/etc/pki /etc/pki
yum --installroot=$chroot --assumeyes install yum
INSTALL_YUM
run_in_chroot $chroot "
rpm --force --nodeps --install http://mirror.centos.org/centos/6/os/x86_64/Packages/centos-release-6-4.el6.centos.10.x86_64.rpm
yum --assumeyes groupinstall Base
yum --assumeyes groupinstall 'Development Tools'
"
|
set -e
base_dir=$(readlink -nf $(dirname $0)/../..)
source $base_dir/lib/prelude_apply.bash
mkdir -p $chroot/var/lib/rpm
rpm --root $chroot --rebuilddb
rpm --root $chroot --force --nodeps --install http://mirror.centos.org/centos/6/os/x86_64/Packages/centos-release-6-4.el6.centos.10.x86_64.rpm
cp /etc/resolv.conf $chroot/etc/resolv.conf
unshare -m $SHELL <<INSTALL_YUM
set -x
mkdir -p /etc/pki
mount -obind $chroot/etc/pki /etc/pki
yum --installroot=$chroot --assumeyes install yum
INSTALL_YUM
+ run_in_chroot $chroot "
- unshare -m $SHELL <<INSTALL_BASE_OS
- set -x
-
- mkdir -p $chroot/dev
- mount -obind /dev $chroot/dev
- mount -obind /dev/pts $chroot/dev/pts
-
- mkdir -p $chroot/proc
- mount -obind /proc $chroot/proc
-
- mkdir -p $chroot/sys
- mount -obind /sys $chroot/sys
-
- chroot $chroot rpm --force --nodeps --install http://mirror.centos.org/centos/6/os/x86_64/Packages/centos-release-6-4.el6.centos.10.x86_64.rpm
? -----------------
+ rpm --force --nodeps --install http://mirror.centos.org/centos/6/os/x86_64/Packages/centos-release-6-4.el6.centos.10.x86_64.rpm
- chroot $chroot yum --assumeyes groupinstall Base
? -----------------
+ yum --assumeyes groupinstall Base
- chroot $chroot yum --assumeyes groupinstall 'Development Tools'
? -----------------
+ yum --assumeyes groupinstall 'Development Tools'
- INSTALL_BASE_OS
+ " | 22 | 0.594595 | 5 | 17 |
5b5b8816e839ae1d99fe537810c0873f725af316 | frontend/styles/components/forms.scss | frontend/styles/components/forms.scss | .important-form {
background-color: #FFE9EE;
}
.errorlist {
margin: 0;
color: #b94a48;
list-style-type: none;
padding: 15px 0 0 0;
}
.help-block {
@extend .small;
@extend .text-muted;
}
.field-required {
&:after {
content: "*";
margin-left: 0.25rem;
color: darken($red, 20%);
}
}
| .important-form {
background-color: #FFE9EE;
}
.errorlist {
margin: 0;
color: #b94a48;
list-style-type: none;
padding: 15px 0 0 0;
}
.help-block {
@extend .small;
@extend .text-muted;
}
.field-required {
&:after {
content: "*";
margin-left: 0.25rem;
color: darken($red, 20%);
}
}
.no-required-asterisk {
.field-required {
&:after {
content: "";
}
}
}
| Add class to allow required fields without asterisk | Add class to allow required fields without asterisk
| SCSS | mit | fin/froide,fin/froide,fin/froide,fin/froide | scss | ## Code Before:
.important-form {
background-color: #FFE9EE;
}
.errorlist {
margin: 0;
color: #b94a48;
list-style-type: none;
padding: 15px 0 0 0;
}
.help-block {
@extend .small;
@extend .text-muted;
}
.field-required {
&:after {
content: "*";
margin-left: 0.25rem;
color: darken($red, 20%);
}
}
## Instruction:
Add class to allow required fields without asterisk
## Code After:
.important-form {
background-color: #FFE9EE;
}
.errorlist {
margin: 0;
color: #b94a48;
list-style-type: none;
padding: 15px 0 0 0;
}
.help-block {
@extend .small;
@extend .text-muted;
}
.field-required {
&:after {
content: "*";
margin-left: 0.25rem;
color: darken($red, 20%);
}
}
.no-required-asterisk {
.field-required {
&:after {
content: "";
}
}
}
| .important-form {
background-color: #FFE9EE;
}
.errorlist {
margin: 0;
color: #b94a48;
list-style-type: none;
padding: 15px 0 0 0;
}
.help-block {
@extend .small;
@extend .text-muted;
}
.field-required {
&:after {
content: "*";
margin-left: 0.25rem;
color: darken($red, 20%);
}
}
+
+ .no-required-asterisk {
+ .field-required {
+ &:after {
+ content: "";
+ }
+ }
+ } | 8 | 0.347826 | 8 | 0 |
b75c0224d95005e55911bc7e81944728c78bcce1 | src/libs/library.cc | src/libs/library.cc |
namespace grok {
namespace libs {
using namespace grok::vm;
using namespace grok::obj;
int LoadLibraries(VMContext *ctx)
{
// just console for now
auto V = GetVStore(ctx);
auto C = std::make_shared<Console>();
auto Wrapped = Value(std::make_shared<Object>(C));
V->StoreValue("console", Wrapped);
return 0;
}
}
}
|
namespace grok {
namespace libs {
using namespace grok::vm;
using namespace grok::obj;
int LoadLibraries(VMContext *ctx)
{
// just console for now
auto V = GetVStore(ctx);
auto C = std::make_shared<Console>();
DefineInternalObjectProperties(C.get());
C->SetNonWritable();
auto Wrapped = Value(std::make_shared<Object>(C));
V->StoreValue("console", Wrapped);
return 0;
}
}
}
| Set Console object to non writable | Set Console object to non writable
| C++ | apache-2.0 | PrinceDhaliwal/grok,PrinceDhaliwal/grok,PrinceDhaliwal/grok | c++ | ## Code Before:
namespace grok {
namespace libs {
using namespace grok::vm;
using namespace grok::obj;
int LoadLibraries(VMContext *ctx)
{
// just console for now
auto V = GetVStore(ctx);
auto C = std::make_shared<Console>();
auto Wrapped = Value(std::make_shared<Object>(C));
V->StoreValue("console", Wrapped);
return 0;
}
}
}
## Instruction:
Set Console object to non writable
## Code After:
namespace grok {
namespace libs {
using namespace grok::vm;
using namespace grok::obj;
int LoadLibraries(VMContext *ctx)
{
// just console for now
auto V = GetVStore(ctx);
auto C = std::make_shared<Console>();
DefineInternalObjectProperties(C.get());
C->SetNonWritable();
auto Wrapped = Value(std::make_shared<Object>(C));
V->StoreValue("console", Wrapped);
return 0;
}
}
}
|
namespace grok {
namespace libs {
using namespace grok::vm;
using namespace grok::obj;
int LoadLibraries(VMContext *ctx)
{
// just console for now
auto V = GetVStore(ctx);
auto C = std::make_shared<Console>();
+ DefineInternalObjectProperties(C.get());
+ C->SetNonWritable();
auto Wrapped = Value(std::make_shared<Object>(C));
V->StoreValue("console", Wrapped);
return 0;
}
}
} | 2 | 0.1 | 2 | 0 |
b3a0abae79009088d2a2d633a04cc9a30095322c | bower.json | bower.json | {
"name": "jeremy",
"version": "0.0.1",
"description": "Just another linked data repository (but with JSON-LD)",
"main": "index.html",
"moduleType": [
"globals"
],
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"public/components",
"test",
"tests"
],
"dependencies": {
"bootstrap-css-only": "~3.3.4",
"angular-bootstrap": "~0.13.0",
"angular": "~1.4.3",
"d3": "~3.5.5",
"angular-route": "~1.4.3",
"angular-resource": "~1.4.3",
"angular-i18n": "~1.4.3",
"idai-components": "codarchlab/idai-components#~1.4.6"
}
}
| {
"name": "jeremy",
"version": "0.0.1",
"description": "Just another linked data repository (but with JSON-LD)",
"main": "index.html",
"moduleType": [
"globals"
],
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"public/components",
"test",
"tests"
],
"dependencies": {
"bootstrap-css-only": "~3.3.6",
"angular-bootstrap": "~1.3.2",
"angular": "~1.5.5",
"d3": "~3.5.17",
"angular-route": "~1.5.5",
"angular-resource": "~1.5.5",
"angular-i18n": "~1.5.5",
"idai-components": "codarchlab/idai-components#~1.4.6"
}
} | Update dependencies to current versions. | Update dependencies to current versions.
| JSON | apache-2.0 | dainst/chronontology-frontend,dainst/chronontology-frontend | json | ## Code Before:
{
"name": "jeremy",
"version": "0.0.1",
"description": "Just another linked data repository (but with JSON-LD)",
"main": "index.html",
"moduleType": [
"globals"
],
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"public/components",
"test",
"tests"
],
"dependencies": {
"bootstrap-css-only": "~3.3.4",
"angular-bootstrap": "~0.13.0",
"angular": "~1.4.3",
"d3": "~3.5.5",
"angular-route": "~1.4.3",
"angular-resource": "~1.4.3",
"angular-i18n": "~1.4.3",
"idai-components": "codarchlab/idai-components#~1.4.6"
}
}
## Instruction:
Update dependencies to current versions.
## Code After:
{
"name": "jeremy",
"version": "0.0.1",
"description": "Just another linked data repository (but with JSON-LD)",
"main": "index.html",
"moduleType": [
"globals"
],
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"public/components",
"test",
"tests"
],
"dependencies": {
"bootstrap-css-only": "~3.3.6",
"angular-bootstrap": "~1.3.2",
"angular": "~1.5.5",
"d3": "~3.5.17",
"angular-route": "~1.5.5",
"angular-resource": "~1.5.5",
"angular-i18n": "~1.5.5",
"idai-components": "codarchlab/idai-components#~1.4.6"
}
} | {
"name": "jeremy",
"version": "0.0.1",
"description": "Just another linked data repository (but with JSON-LD)",
"main": "index.html",
"moduleType": [
"globals"
],
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"public/components",
"test",
"tests"
],
"dependencies": {
- "bootstrap-css-only": "~3.3.4",
? ^
+ "bootstrap-css-only": "~3.3.6",
? ^
- "angular-bootstrap": "~0.13.0",
? ^ - ^
+ "angular-bootstrap": "~1.3.2",
? ^ ^
- "angular": "~1.4.3",
? ^ ^
+ "angular": "~1.5.5",
? ^ ^
- "d3": "~3.5.5",
? ^
+ "d3": "~3.5.17",
? ^^
- "angular-route": "~1.4.3",
? ^ ^
+ "angular-route": "~1.5.5",
? ^ ^
- "angular-resource": "~1.4.3",
? ^ ^
+ "angular-resource": "~1.5.5",
? ^ ^
- "angular-i18n": "~1.4.3",
? ^ ^
+ "angular-i18n": "~1.5.5",
? ^ ^
"idai-components": "codarchlab/idai-components#~1.4.6"
}
} | 14 | 0.518519 | 7 | 7 |
2044a19198c1a178b0994ece8db9286099586ed4 | text_widget.c | text_widget.c | // Copyright 2017, Jeffrey E. Bedard
#include "text_widget.h"
#include "XSTextWidget.h"
#include "font.h"
#include "xdata.h"
short xstatus_draw_text_widget(struct XSTextWidget * widget)
{
xcb_connection_t * xc = widget->connection;
struct JBDim font_size = xstatus_get_font_size();
xcb_image_text_8(xc, widget->buffer_size, xstatus_get_window(xc),
xstatus_get_gc(xc), widget->offset, font_size.height,
widget->buffer);
return widget->offset + font_size.width * widget->buffer_size;
}
| // Copyright 2017, Jeffrey E. Bedard
#include "text_widget.h"
#include "XSTextWidget.h"
#include "config.h"
#include "font.h"
#include "xdata.h"
short xstatus_draw_text_widget(struct XSTextWidget * widget)
{
xcb_connection_t * xc = widget->connection;
struct JBDim font_size = xstatus_get_font_size();
xcb_image_text_8(xc, widget->buffer_size, xstatus_get_window(xc),
xstatus_get_gc(xc), widget->offset, font_size.height,
widget->buffer);
return widget->offset + font_size.width * widget->buffer_size
+ XSTATUS_CONST_PAD;
}
| Include configured padding in offset calculation. | Include configured padding in offset calculation.
| C | mit | jefbed/xstatus,jefbed/xstatus,jefbed/xstatus,jefbed/xstatus | c | ## Code Before:
// Copyright 2017, Jeffrey E. Bedard
#include "text_widget.h"
#include "XSTextWidget.h"
#include "font.h"
#include "xdata.h"
short xstatus_draw_text_widget(struct XSTextWidget * widget)
{
xcb_connection_t * xc = widget->connection;
struct JBDim font_size = xstatus_get_font_size();
xcb_image_text_8(xc, widget->buffer_size, xstatus_get_window(xc),
xstatus_get_gc(xc), widget->offset, font_size.height,
widget->buffer);
return widget->offset + font_size.width * widget->buffer_size;
}
## Instruction:
Include configured padding in offset calculation.
## Code After:
// Copyright 2017, Jeffrey E. Bedard
#include "text_widget.h"
#include "XSTextWidget.h"
#include "config.h"
#include "font.h"
#include "xdata.h"
short xstatus_draw_text_widget(struct XSTextWidget * widget)
{
xcb_connection_t * xc = widget->connection;
struct JBDim font_size = xstatus_get_font_size();
xcb_image_text_8(xc, widget->buffer_size, xstatus_get_window(xc),
xstatus_get_gc(xc), widget->offset, font_size.height,
widget->buffer);
return widget->offset + font_size.width * widget->buffer_size
+ XSTATUS_CONST_PAD;
}
| // Copyright 2017, Jeffrey E. Bedard
#include "text_widget.h"
#include "XSTextWidget.h"
+ #include "config.h"
#include "font.h"
#include "xdata.h"
short xstatus_draw_text_widget(struct XSTextWidget * widget)
{
xcb_connection_t * xc = widget->connection;
struct JBDim font_size = xstatus_get_font_size();
xcb_image_text_8(xc, widget->buffer_size, xstatus_get_window(xc),
xstatus_get_gc(xc), widget->offset, font_size.height,
widget->buffer);
- return widget->offset + font_size.width * widget->buffer_size;
? -
+ return widget->offset + font_size.width * widget->buffer_size
+ + XSTATUS_CONST_PAD;
} | 4 | 0.285714 | 3 | 1 |
15761f187bd2b6dbbd53a1add67074344a8c0fc7 | _posts/en/pages/2016-01-01-meetings.md | _posts/en/pages/2016-01-01-meetings.md | ---
type: pages
layout: page
lang: en
title: IRC Meetings
name: meetings
permalink: /en/meetings/
share: false
version: 2
---
The project usually holds IRC meetings every Thursday at 19:00 UTC in `#bitcoin-core-dev` on irc.freenode.net.
Everyone is welcome to attend.
{% include _meetings.html %}
| ---
type: pages
layout: page
lang: en
title: IRC Meetings
name: meetings
permalink: /en/meetings/
share: false
version: 2
---
The project usually holds IRC meetings every Thursday at 19:00 UTC in `#bitcoin-core-dev` on irc.freenode.net.
Everyone is welcome to attend.
The following summaries list may not be complete due to constraints on volunteers' time. To view more recent logs, all meeting logs and raw minutes can be found [here](http://www.erisian.com.au/meetbot/bitcoin-core-dev/).
{% include _meetings.html %}
| Add link to meeting bot logs | Add link to meeting bot logs
| Markdown | mit | bitcoin-core/bitcoincore.org,bitcoin-core/bitcoincore.org,bitcoin-core/bitcoincore.org,bitcoin-core/bitcoincore.org,bitcoin-core/bitcoincore.org,bitcoin-core/bitcoincore.org | markdown | ## Code Before:
---
type: pages
layout: page
lang: en
title: IRC Meetings
name: meetings
permalink: /en/meetings/
share: false
version: 2
---
The project usually holds IRC meetings every Thursday at 19:00 UTC in `#bitcoin-core-dev` on irc.freenode.net.
Everyone is welcome to attend.
{% include _meetings.html %}
## Instruction:
Add link to meeting bot logs
## Code After:
---
type: pages
layout: page
lang: en
title: IRC Meetings
name: meetings
permalink: /en/meetings/
share: false
version: 2
---
The project usually holds IRC meetings every Thursday at 19:00 UTC in `#bitcoin-core-dev` on irc.freenode.net.
Everyone is welcome to attend.
The following summaries list may not be complete due to constraints on volunteers' time. To view more recent logs, all meeting logs and raw minutes can be found [here](http://www.erisian.com.au/meetbot/bitcoin-core-dev/).
{% include _meetings.html %}
| ---
type: pages
layout: page
lang: en
title: IRC Meetings
name: meetings
permalink: /en/meetings/
share: false
version: 2
---
The project usually holds IRC meetings every Thursday at 19:00 UTC in `#bitcoin-core-dev` on irc.freenode.net.
Everyone is welcome to attend.
+ The following summaries list may not be complete due to constraints on volunteers' time. To view more recent logs, all meeting logs and raw minutes can be found [here](http://www.erisian.com.au/meetbot/bitcoin-core-dev/).
+
{% include _meetings.html %} | 2 | 0.142857 | 2 | 0 |
2f6838879b23f0e0e47416f3368180a1990f7e9e | display/app/views/transition/environments/_design_pull_in_progress.html.erb | display/app/views/transition/environments/_design_pull_in_progress.html.erb | <div class="alert alert-info">
<%= icon('spinner fa-spin') %> Design pull is in progress, started <strong><%= time_ago_in_words(@environment.updated_timestamp) %></strong>.
</div>
<script>
setTimeout(function () {
$j.get("<%= pull_status_assembly_transition_environment_path(@assembly, @environment) %>");
},
10000);
</script>
| <div class="alert alert-info">
<%= icon('spinner fa-spin') %> Design pull is in progress, started <strong><%= time_ago_in_words(@environment.updated_timestamp) %></strong>.
</div>
<script>
// First poll in 5 sec, 10 sec thereafter.
window.design_pull_refresh_interval = window.design_pull_refresh_interval ? 10000 : 5000;
setTimeout(function () {
$j.get("<%= pull_status_assembly_transition_environment_path(@assembly, @environment) %>");
},
window.design_pull_refresh_interval);
</script>
| Change design pull status polling to update sooner in the beginning. | Change design pull status polling to update sooner in the beginning.
| HTML+ERB | apache-2.0 | lkhusid/oneops,gauravlall/oneops,okornev/oneops,lkhusid/oneops,okornev/oneops,lkhusid/oneops,gauravlall/oneops,okornev/oneops,okornev/oneops,gauravlall/oneops,gauravlall/oneops,lkhusid/oneops,gauravlall/oneops,lkhusid/oneops,okornev/oneops,gauravlall/oneops,okornev/oneops,lkhusid/oneops | html+erb | ## Code Before:
<div class="alert alert-info">
<%= icon('spinner fa-spin') %> Design pull is in progress, started <strong><%= time_ago_in_words(@environment.updated_timestamp) %></strong>.
</div>
<script>
setTimeout(function () {
$j.get("<%= pull_status_assembly_transition_environment_path(@assembly, @environment) %>");
},
10000);
</script>
## Instruction:
Change design pull status polling to update sooner in the beginning.
## Code After:
<div class="alert alert-info">
<%= icon('spinner fa-spin') %> Design pull is in progress, started <strong><%= time_ago_in_words(@environment.updated_timestamp) %></strong>.
</div>
<script>
// First poll in 5 sec, 10 sec thereafter.
window.design_pull_refresh_interval = window.design_pull_refresh_interval ? 10000 : 5000;
setTimeout(function () {
$j.get("<%= pull_status_assembly_transition_environment_path(@assembly, @environment) %>");
},
window.design_pull_refresh_interval);
</script>
| <div class="alert alert-info">
<%= icon('spinner fa-spin') %> Design pull is in progress, started <strong><%= time_ago_in_words(@environment.updated_timestamp) %></strong>.
</div>
<script>
+ // First poll in 5 sec, 10 sec thereafter.
+ window.design_pull_refresh_interval = window.design_pull_refresh_interval ? 10000 : 5000;
setTimeout(function () {
$j.get("<%= pull_status_assembly_transition_environment_path(@assembly, @environment) %>");
},
- 10000);
+ window.design_pull_refresh_interval);
</script> | 4 | 0.444444 | 3 | 1 |
8da95ec627f47ff58361398d99182e855e3d1bf3 | images/releng/k8s-ci-builder/variants.yaml | images/releng/k8s-ci-builder/variants.yaml | variants:
default:
CONFIG: default
GO_VERSION: '1.15.5'
BAZEL_VERSION: '3.4.1'
OLD_BAZEL_VERSION: '2.2.0'
SKOPEO_VERSION: 'v1.2.0'
'1.19':
CONFIG: '1.19'
GO_VERSION: '1.15.3'
BAZEL_VERSION: '2.2.0'
OLD_BAZEL_VERSION: '0.23.2'
SKOPEO_VERSION: 'v1.2.0'
'1.18':
CONFIG: '1.18'
GO_VERSION: '1.13.15'
BAZEL_VERSION: '2.2.0'
OLD_BAZEL_VERSION: '0.23.2'
SKOPEO_VERSION: 'v1.2.0'
'1.17':
CONFIG: '1.17'
GO_VERSION: '1.13.15'
BAZEL_VERSION: '2.2.0'
OLD_BAZEL_VERSION: '0.23.2'
SKOPEO_VERSION: 'v1.2.0'
| variants:
default:
CONFIG: default
GO_VERSION: '1.15.5'
BAZEL_VERSION: '3.4.1'
OLD_BAZEL_VERSION: '2.2.0'
SKOPEO_VERSION: 'v1.2.0'
'1.20':
CONFIG: '1.20'
GO_VERSION: '1.15.5'
BAZEL_VERSION: '3.4.1'
OLD_BAZEL_VERSION: '2.2.0'
SKOPEO_VERSION: 'v1.2.0'
'1.19':
CONFIG: '1.19'
GO_VERSION: '1.15.3'
BAZEL_VERSION: '2.2.0'
OLD_BAZEL_VERSION: '0.23.2'
SKOPEO_VERSION: 'v1.2.0'
'1.18':
CONFIG: '1.18'
GO_VERSION: '1.13.15'
BAZEL_VERSION: '2.2.0'
OLD_BAZEL_VERSION: '0.23.2'
SKOPEO_VERSION: 'v1.2.0'
'1.17':
CONFIG: '1.17'
GO_VERSION: '1.13.15'
BAZEL_VERSION: '2.2.0'
OLD_BAZEL_VERSION: '0.23.2'
SKOPEO_VERSION: 'v1.2.0'
| Add 1.20 variant for k8s-ci-builder image | releng: Add 1.20 variant for k8s-ci-builder image
| YAML | apache-2.0 | kubernetes/release,kubernetes/release | yaml | ## Code Before:
variants:
default:
CONFIG: default
GO_VERSION: '1.15.5'
BAZEL_VERSION: '3.4.1'
OLD_BAZEL_VERSION: '2.2.0'
SKOPEO_VERSION: 'v1.2.0'
'1.19':
CONFIG: '1.19'
GO_VERSION: '1.15.3'
BAZEL_VERSION: '2.2.0'
OLD_BAZEL_VERSION: '0.23.2'
SKOPEO_VERSION: 'v1.2.0'
'1.18':
CONFIG: '1.18'
GO_VERSION: '1.13.15'
BAZEL_VERSION: '2.2.0'
OLD_BAZEL_VERSION: '0.23.2'
SKOPEO_VERSION: 'v1.2.0'
'1.17':
CONFIG: '1.17'
GO_VERSION: '1.13.15'
BAZEL_VERSION: '2.2.0'
OLD_BAZEL_VERSION: '0.23.2'
SKOPEO_VERSION: 'v1.2.0'
## Instruction:
releng: Add 1.20 variant for k8s-ci-builder image
## Code After:
variants:
default:
CONFIG: default
GO_VERSION: '1.15.5'
BAZEL_VERSION: '3.4.1'
OLD_BAZEL_VERSION: '2.2.0'
SKOPEO_VERSION: 'v1.2.0'
'1.20':
CONFIG: '1.20'
GO_VERSION: '1.15.5'
BAZEL_VERSION: '3.4.1'
OLD_BAZEL_VERSION: '2.2.0'
SKOPEO_VERSION: 'v1.2.0'
'1.19':
CONFIG: '1.19'
GO_VERSION: '1.15.3'
BAZEL_VERSION: '2.2.0'
OLD_BAZEL_VERSION: '0.23.2'
SKOPEO_VERSION: 'v1.2.0'
'1.18':
CONFIG: '1.18'
GO_VERSION: '1.13.15'
BAZEL_VERSION: '2.2.0'
OLD_BAZEL_VERSION: '0.23.2'
SKOPEO_VERSION: 'v1.2.0'
'1.17':
CONFIG: '1.17'
GO_VERSION: '1.13.15'
BAZEL_VERSION: '2.2.0'
OLD_BAZEL_VERSION: '0.23.2'
SKOPEO_VERSION: 'v1.2.0'
| variants:
default:
CONFIG: default
+ GO_VERSION: '1.15.5'
+ BAZEL_VERSION: '3.4.1'
+ OLD_BAZEL_VERSION: '2.2.0'
+ SKOPEO_VERSION: 'v1.2.0'
+ '1.20':
+ CONFIG: '1.20'
GO_VERSION: '1.15.5'
BAZEL_VERSION: '3.4.1'
OLD_BAZEL_VERSION: '2.2.0'
SKOPEO_VERSION: 'v1.2.0'
'1.19':
CONFIG: '1.19'
GO_VERSION: '1.15.3'
BAZEL_VERSION: '2.2.0'
OLD_BAZEL_VERSION: '0.23.2'
SKOPEO_VERSION: 'v1.2.0'
'1.18':
CONFIG: '1.18'
GO_VERSION: '1.13.15'
BAZEL_VERSION: '2.2.0'
OLD_BAZEL_VERSION: '0.23.2'
SKOPEO_VERSION: 'v1.2.0'
'1.17':
CONFIG: '1.17'
GO_VERSION: '1.13.15'
BAZEL_VERSION: '2.2.0'
OLD_BAZEL_VERSION: '0.23.2'
SKOPEO_VERSION: 'v1.2.0' | 6 | 0.24 | 6 | 0 |
e52dee21400a0d3890620aa9610db2ed74e5bbae | README.md | README.md |
Multiple workspaces for git
## Installation
Clone / Tarball:
$ make install
## Usage
$ git spaces init
$ git spaces create some-feature
## Note
The init command will move everything to a master subdirectory. Master will serve as the new main working directory if you choose.
Upon creation, new spaces will automatically be intialized to the master branch. Once created, enter the directory and checkout the desirde branch.
When you are done with a space, you can remove it by exiting the space directory and removeing it with `rm -rf`. Note that this will permanently remove the space, so be sure to commit any work you plan on keeping before doings so.
## Acknowledgement
Acknowledgement must be given to the wonderful [git-extras](https://github.com/visionmedia/git-extras) project from which I took much inspiration and code. |
Multiple workspaces for git
## Installation
Clone / Tarball:
$ make install
## Usage
$ git spaces init
$ git spaces create some-feature
## Note
The init command will move everything to a master subdirectory. Master will serve as the new main working directory if you choose.
Upon creation, new spaces will automatically be intialized to the master branch. Once created, enter the directory and checkout the desirde branch.
When you are done with a space, you can remove it by exiting the space directory and removeing it with `rm -rf`. Note that this will permanently remove the space, so be sure to commit any work you plan on keeping before doings so.
## Acknowledgement
Acknowledgement must be given to the wonderful [git-extras][1] project from which I took much inspiration and code.
Additionally, Credit for base implementation and idea goes to [Dmitry Fink][2] and his post [Multiple working folders with single GIT repository][3]
[1]: https://github.com/visionmedia/git-extras
[2]: http://twitter.com/finik
[3]: http://finik.net/2010/10/24/multiple-working-folders-with-single-git-repository/ | Add link to Multiple working folders with single GIT repository in readme. | Add link to Multiple working folders with single GIT repository in readme. | Markdown | mit | unicornrainbow/git-spaces | markdown | ## Code Before:
Multiple workspaces for git
## Installation
Clone / Tarball:
$ make install
## Usage
$ git spaces init
$ git spaces create some-feature
## Note
The init command will move everything to a master subdirectory. Master will serve as the new main working directory if you choose.
Upon creation, new spaces will automatically be intialized to the master branch. Once created, enter the directory and checkout the desirde branch.
When you are done with a space, you can remove it by exiting the space directory and removeing it with `rm -rf`. Note that this will permanently remove the space, so be sure to commit any work you plan on keeping before doings so.
## Acknowledgement
Acknowledgement must be given to the wonderful [git-extras](https://github.com/visionmedia/git-extras) project from which I took much inspiration and code.
## Instruction:
Add link to Multiple working folders with single GIT repository in readme.
## Code After:
Multiple workspaces for git
## Installation
Clone / Tarball:
$ make install
## Usage
$ git spaces init
$ git spaces create some-feature
## Note
The init command will move everything to a master subdirectory. Master will serve as the new main working directory if you choose.
Upon creation, new spaces will automatically be intialized to the master branch. Once created, enter the directory and checkout the desirde branch.
When you are done with a space, you can remove it by exiting the space directory and removeing it with `rm -rf`. Note that this will permanently remove the space, so be sure to commit any work you plan on keeping before doings so.
## Acknowledgement
Acknowledgement must be given to the wonderful [git-extras][1] project from which I took much inspiration and code.
Additionally, Credit for base implementation and idea goes to [Dmitry Fink][2] and his post [Multiple working folders with single GIT repository][3]
[1]: https://github.com/visionmedia/git-extras
[2]: http://twitter.com/finik
[3]: http://finik.net/2010/10/24/multiple-working-folders-with-single-git-repository/ |
Multiple workspaces for git
## Installation
Clone / Tarball:
$ make install
## Usage
$ git spaces init
$ git spaces create some-feature
## Note
The init command will move everything to a master subdirectory. Master will serve as the new main working directory if you choose.
Upon creation, new spaces will automatically be intialized to the master branch. Once created, enter the directory and checkout the desirde branch.
When you are done with a space, you can remove it by exiting the space directory and removeing it with `rm -rf`. Note that this will permanently remove the space, so be sure to commit any work you plan on keeping before doings so.
## Acknowledgement
- Acknowledgement must be given to the wonderful [git-extras](https://github.com/visionmedia/git-extras) project from which I took much inspiration and code.
? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ Acknowledgement must be given to the wonderful [git-extras][1] project from which I took much inspiration and code.
? ^^^
+
+ Additionally, Credit for base implementation and idea goes to [Dmitry Fink][2] and his post [Multiple working folders with single GIT repository][3]
+
+ [1]: https://github.com/visionmedia/git-extras
+ [2]: http://twitter.com/finik
+ [3]: http://finik.net/2010/10/24/multiple-working-folders-with-single-git-repository/ | 8 | 0.307692 | 7 | 1 |
59970d5b9518bfa8aa3b4c742b6f40430efe9467 | pillar/top.sls | pillar/top.sls | base:
'*':
- networking
- users
- sudoers
- psf-ca
'roles:cdn-logs':
- match: grain
- fastly-logging
- firewall.fastly-logging
'roles:docs':
- match: grain
- firewall.fastly-backend
- groups.docs
- secrets.backup.docs
'roles:downloads':
- match: grain
- firewall.fastly-backend
- groups.downloads
- secrets.backup.downloads
'roles:hg':
- match: grain
- firewall.rs-lb-backend
- secrets.backup.hg
- secrets.ssh.hg
'roles:salt-master':
- match: grain
- salt-master
'roles:jython-web':
- match: grain
- secrets.backup.jython-web
- groups.jython
- firewall.http
'roles:planet':
- match: grain
- planet
- firewall.http
'roles:postgresql':
- match: grain
- firewall.postgresql
- postgresql.server
'roles:postgresql-replica':
- match: grain
- secrets.postgresql-users.replica
'roles:backup-server':
- match: grain
- backup.server
'roles:loadbalancer':
- match: grain
- haproxy
- firewall.loadbalancer
- secrets.tls.certs.loadbalancer
'roles:vpn':
- match: grain
- openvpn
- firewall.vpn
- secrets.openvpn.vpn
- secrets.duosec.vpn
'pg0.psf.io':
- secrets.psf-ca.pg0-psf-io
| base:
'*':
- networking
- users
- sudoers
- psf-ca
'roles:cdn-logs':
- match: grain
- fastly-logging
- firewall.fastly-logging
'roles:docs':
- match: grain
- firewall.fastly-backend
- groups.docs
- secrets.backup.docs
'roles:downloads':
- match: grain
- firewall.fastly-backend
- groups.downloads
- secrets.backup.downloads
'roles:hg':
- match: grain
- firewall.rs-lb-backend
- secrets.backup.hg
- secrets.ssh.hg
'roles:salt-master':
- match: grain
- salt-master
'roles:jython-web':
- match: grain
- secrets.backup.jython-web
- groups.jython
- firewall.http
'roles:planet':
- match: grain
- planet
- firewall.http
'roles:postgresql':
- match: grain
- firewall.postgresql
- postgresql.server
- secrets.psf-ca.pg
'roles:postgresql-replica':
- match: grain
- secrets.postgresql-users.replica
'roles:backup-server':
- match: grain
- backup.server
'roles:loadbalancer':
- match: grain
- haproxy
- firewall.loadbalancer
- secrets.tls.certs.loadbalancer
'roles:vpn':
- match: grain
- openvpn
- firewall.vpn
- secrets.openvpn.vpn
- secrets.duosec.vpn
| Use a general pg.psf.io certificate | Use a general pg.psf.io certificate
| SaltStack | mit | zooba/psf-salt,zware/psf-salt,dstufft/psf-salt,dstufft/psf-salt,zware/psf-salt,python/psf-salt,python/psf-salt,dstufft/psf-salt,caktus/psf-salt,python/psf-salt,caktus/psf-salt,zware/psf-salt,caktus/psf-salt,zware/psf-salt,zooba/psf-salt,python/psf-salt,zooba/psf-salt | saltstack | ## Code Before:
base:
'*':
- networking
- users
- sudoers
- psf-ca
'roles:cdn-logs':
- match: grain
- fastly-logging
- firewall.fastly-logging
'roles:docs':
- match: grain
- firewall.fastly-backend
- groups.docs
- secrets.backup.docs
'roles:downloads':
- match: grain
- firewall.fastly-backend
- groups.downloads
- secrets.backup.downloads
'roles:hg':
- match: grain
- firewall.rs-lb-backend
- secrets.backup.hg
- secrets.ssh.hg
'roles:salt-master':
- match: grain
- salt-master
'roles:jython-web':
- match: grain
- secrets.backup.jython-web
- groups.jython
- firewall.http
'roles:planet':
- match: grain
- planet
- firewall.http
'roles:postgresql':
- match: grain
- firewall.postgresql
- postgresql.server
'roles:postgresql-replica':
- match: grain
- secrets.postgresql-users.replica
'roles:backup-server':
- match: grain
- backup.server
'roles:loadbalancer':
- match: grain
- haproxy
- firewall.loadbalancer
- secrets.tls.certs.loadbalancer
'roles:vpn':
- match: grain
- openvpn
- firewall.vpn
- secrets.openvpn.vpn
- secrets.duosec.vpn
'pg0.psf.io':
- secrets.psf-ca.pg0-psf-io
## Instruction:
Use a general pg.psf.io certificate
## Code After:
base:
'*':
- networking
- users
- sudoers
- psf-ca
'roles:cdn-logs':
- match: grain
- fastly-logging
- firewall.fastly-logging
'roles:docs':
- match: grain
- firewall.fastly-backend
- groups.docs
- secrets.backup.docs
'roles:downloads':
- match: grain
- firewall.fastly-backend
- groups.downloads
- secrets.backup.downloads
'roles:hg':
- match: grain
- firewall.rs-lb-backend
- secrets.backup.hg
- secrets.ssh.hg
'roles:salt-master':
- match: grain
- salt-master
'roles:jython-web':
- match: grain
- secrets.backup.jython-web
- groups.jython
- firewall.http
'roles:planet':
- match: grain
- planet
- firewall.http
'roles:postgresql':
- match: grain
- firewall.postgresql
- postgresql.server
- secrets.psf-ca.pg
'roles:postgresql-replica':
- match: grain
- secrets.postgresql-users.replica
'roles:backup-server':
- match: grain
- backup.server
'roles:loadbalancer':
- match: grain
- haproxy
- firewall.loadbalancer
- secrets.tls.certs.loadbalancer
'roles:vpn':
- match: grain
- openvpn
- firewall.vpn
- secrets.openvpn.vpn
- secrets.duosec.vpn
| base:
'*':
- networking
- users
- sudoers
- psf-ca
'roles:cdn-logs':
- match: grain
- fastly-logging
- firewall.fastly-logging
'roles:docs':
- match: grain
- firewall.fastly-backend
- groups.docs
- secrets.backup.docs
'roles:downloads':
- match: grain
- firewall.fastly-backend
- groups.downloads
- secrets.backup.downloads
'roles:hg':
- match: grain
- firewall.rs-lb-backend
- secrets.backup.hg
- secrets.ssh.hg
'roles:salt-master':
- match: grain
- salt-master
'roles:jython-web':
- match: grain
- secrets.backup.jython-web
- groups.jython
- firewall.http
'roles:planet':
- match: grain
- planet
- firewall.http
'roles:postgresql':
- match: grain
- firewall.postgresql
- postgresql.server
+ - secrets.psf-ca.pg
'roles:postgresql-replica':
- match: grain
- secrets.postgresql-users.replica
'roles:backup-server':
- match: grain
- backup.server
'roles:loadbalancer':
- match: grain
- haproxy
- firewall.loadbalancer
- secrets.tls.certs.loadbalancer
'roles:vpn':
- match: grain
- openvpn
- firewall.vpn
- secrets.openvpn.vpn
- secrets.duosec.vpn
-
- 'pg0.psf.io':
- - secrets.psf-ca.pg0-psf-io | 4 | 0.054054 | 1 | 3 |
321e157633e67e64102fe5e9f720cfddae74d335 | Foundation/HtmlClient/Foundation.ViewModel.HtmlClient/Implementations/defaultDateTimeService.ts | Foundation/HtmlClient/Foundation.ViewModel.HtmlClient/Implementations/defaultDateTimeService.ts | module Foundation.ViewModel.Implementations {
@Core.Injectable()
export class DefaultDateTimeService implements Contracts.IDateTimeService {
public constructor( @Core.Inject("ClientAppProfileManager") public clientAppProfileManager: Core.ClientAppProfileManager) {
}
public getFormattedDate(date?: Date, culture?: string): string {
if (date == null)
return null;
date = this.parseDate(date);
culture = culture == null ? this.clientAppProfileManager.getClientAppProfile().culture : culture;
if (culture == "FaIr") {
return persianDate(date).format('YYYY/MM/DD') as string;
}
else {
return kendo.toString(date, "yyyy/dd/MM");
}
}
public getFormattedDateTime(date?: Date, culture?: string): string {
if (date == null)
return null;
date = this.parseDate(date);
culture = culture == null ? this.clientAppProfileManager.getClientAppProfile().culture : culture;
if (culture == "FaIr") {
return persianDate(date).format('DD MMMM YYYY, hh:mm a') as string;
}
else {
return kendo.toString(date, "yyyy/dd/MM, hh:mm tt");
}
}
public getCurrentDate(): Date {
return new Date();
}
public parseDate(date: any): Date {
return kendo.parseDate(date);
}
}
} | module Foundation.ViewModel.Implementations {
@Core.Injectable()
export class DefaultDateTimeService implements Contracts.IDateTimeService {
public constructor( @Core.Inject("ClientAppProfileManager") public clientAppProfileManager: Core.ClientAppProfileManager) {
}
public getFormattedDate(date?: Date, culture?: string): string {
if (date == null)
return null;
date = this.parseDate(date);
culture = culture == null ? this.clientAppProfileManager.getClientAppProfile().culture : culture;
if (culture == "FaIr") {
return persianDate(date).format('YYYY/MM/DD') as string;
}
else {
return kendo.toString(date, "yyyy/dd/MM");
}
}
public getFormattedDateTime(date?: Date, culture?: string): string {
if (date == null)
return null;
date = this.parseDate(date);
culture = culture == null ? this.clientAppProfileManager.getClientAppProfile().culture : culture;
if (culture == "FaIr") {
return persianDate(date).format('DD MMMM YYYY, hh:mm a') as string;
}
else {
return kendo.toString(date, "yyyy/dd/MM, hh:mm tt");
}
}
public getCurrentDate(): Date {
return new Date();
}
public parseDate(date: any): Date {
if (date == null)
return null;
return kendo.parseDate(date);
}
}
} | Return null for null object in date time service's parse method | Return null for null object in date time service's parse method
| TypeScript | mit | bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework | typescript | ## Code Before:
module Foundation.ViewModel.Implementations {
@Core.Injectable()
export class DefaultDateTimeService implements Contracts.IDateTimeService {
public constructor( @Core.Inject("ClientAppProfileManager") public clientAppProfileManager: Core.ClientAppProfileManager) {
}
public getFormattedDate(date?: Date, culture?: string): string {
if (date == null)
return null;
date = this.parseDate(date);
culture = culture == null ? this.clientAppProfileManager.getClientAppProfile().culture : culture;
if (culture == "FaIr") {
return persianDate(date).format('YYYY/MM/DD') as string;
}
else {
return kendo.toString(date, "yyyy/dd/MM");
}
}
public getFormattedDateTime(date?: Date, culture?: string): string {
if (date == null)
return null;
date = this.parseDate(date);
culture = culture == null ? this.clientAppProfileManager.getClientAppProfile().culture : culture;
if (culture == "FaIr") {
return persianDate(date).format('DD MMMM YYYY, hh:mm a') as string;
}
else {
return kendo.toString(date, "yyyy/dd/MM, hh:mm tt");
}
}
public getCurrentDate(): Date {
return new Date();
}
public parseDate(date: any): Date {
return kendo.parseDate(date);
}
}
}
## Instruction:
Return null for null object in date time service's parse method
## Code After:
module Foundation.ViewModel.Implementations {
@Core.Injectable()
export class DefaultDateTimeService implements Contracts.IDateTimeService {
public constructor( @Core.Inject("ClientAppProfileManager") public clientAppProfileManager: Core.ClientAppProfileManager) {
}
public getFormattedDate(date?: Date, culture?: string): string {
if (date == null)
return null;
date = this.parseDate(date);
culture = culture == null ? this.clientAppProfileManager.getClientAppProfile().culture : culture;
if (culture == "FaIr") {
return persianDate(date).format('YYYY/MM/DD') as string;
}
else {
return kendo.toString(date, "yyyy/dd/MM");
}
}
public getFormattedDateTime(date?: Date, culture?: string): string {
if (date == null)
return null;
date = this.parseDate(date);
culture = culture == null ? this.clientAppProfileManager.getClientAppProfile().culture : culture;
if (culture == "FaIr") {
return persianDate(date).format('DD MMMM YYYY, hh:mm a') as string;
}
else {
return kendo.toString(date, "yyyy/dd/MM, hh:mm tt");
}
}
public getCurrentDate(): Date {
return new Date();
}
public parseDate(date: any): Date {
if (date == null)
return null;
return kendo.parseDate(date);
}
}
} | module Foundation.ViewModel.Implementations {
@Core.Injectable()
export class DefaultDateTimeService implements Contracts.IDateTimeService {
public constructor( @Core.Inject("ClientAppProfileManager") public clientAppProfileManager: Core.ClientAppProfileManager) {
}
public getFormattedDate(date?: Date, culture?: string): string {
if (date == null)
return null;
date = this.parseDate(date);
culture = culture == null ? this.clientAppProfileManager.getClientAppProfile().culture : culture;
if (culture == "FaIr") {
return persianDate(date).format('YYYY/MM/DD') as string;
}
else {
return kendo.toString(date, "yyyy/dd/MM");
}
}
public getFormattedDateTime(date?: Date, culture?: string): string {
if (date == null)
return null;
date = this.parseDate(date);
culture = culture == null ? this.clientAppProfileManager.getClientAppProfile().culture : culture;
if (culture == "FaIr") {
return persianDate(date).format('DD MMMM YYYY, hh:mm a') as string;
}
else {
return kendo.toString(date, "yyyy/dd/MM, hh:mm tt");
}
}
public getCurrentDate(): Date {
return new Date();
}
public parseDate(date: any): Date {
+ if (date == null)
+ return null;
return kendo.parseDate(date);
}
}
} | 2 | 0.038462 | 2 | 0 |
72693b6124125169582c63633fb6956eba06bcaf | SDColor.podspec | SDColor.podspec | Pod::Spec.new do |spec|
spec.name = 'SDColor'
spec.version = '0.1.0'
spec.summary = 'Dead simple connivence categories for UIColor.'
spec.homepage = 'https://github.com/steam/SDColor'
spec.author = { 'Sean Dougherty' => 'sean@process255.com' }
spec.source = { :git => 'https://github.com/steam/SDColor.git', :tag => "#{spec.version}" }
spec.description = 'Use hexidecimal values to create UIColor objects.'
spec.source_files = 'SDColor/*.{h,m}'
spec.requires_arc = false
spec.license = { :type => 'MIT', :file => 'LICENSE' }
end | Pod::Spec.new do |spec|
spec.name = 'SDColor'
spec.version = '0.1.0'
spec.summary = 'Dead simple connivence categories for UIColor.'
spec.homepage = 'https://github.com/steam/SDColor'
spec.author = { 'Sean Dougherty' => 'sean@process255.com' }
spec.source = { :git => 'https://github.com/steam/SDColor.git', :tag => "#{spec.version}" }
spec.description = 'Use hexidecimal values to create UIColor objects.'
spec.source_files = 'SDColor/*.{h,m}'
spec.frameworks = 'UIKit'
spec.requires_arc = false
spec.license = { :type => 'MIT', :file => 'LICENSE' }
end | Add UIKit dependency to podspec | Add UIKit dependency to podspec
Signed-off-by: Sean Doughety <58cdf895b71f84481e06f521739b30fbd55e8539@gmail.com>
| Ruby | mit | steam/SDColor | ruby | ## Code Before:
Pod::Spec.new do |spec|
spec.name = 'SDColor'
spec.version = '0.1.0'
spec.summary = 'Dead simple connivence categories for UIColor.'
spec.homepage = 'https://github.com/steam/SDColor'
spec.author = { 'Sean Dougherty' => 'sean@process255.com' }
spec.source = { :git => 'https://github.com/steam/SDColor.git', :tag => "#{spec.version}" }
spec.description = 'Use hexidecimal values to create UIColor objects.'
spec.source_files = 'SDColor/*.{h,m}'
spec.requires_arc = false
spec.license = { :type => 'MIT', :file => 'LICENSE' }
end
## Instruction:
Add UIKit dependency to podspec
Signed-off-by: Sean Doughety <58cdf895b71f84481e06f521739b30fbd55e8539@gmail.com>
## Code After:
Pod::Spec.new do |spec|
spec.name = 'SDColor'
spec.version = '0.1.0'
spec.summary = 'Dead simple connivence categories for UIColor.'
spec.homepage = 'https://github.com/steam/SDColor'
spec.author = { 'Sean Dougherty' => 'sean@process255.com' }
spec.source = { :git => 'https://github.com/steam/SDColor.git', :tag => "#{spec.version}" }
spec.description = 'Use hexidecimal values to create UIColor objects.'
spec.source_files = 'SDColor/*.{h,m}'
spec.frameworks = 'UIKit'
spec.requires_arc = false
spec.license = { :type => 'MIT', :file => 'LICENSE' }
end | Pod::Spec.new do |spec|
spec.name = 'SDColor'
spec.version = '0.1.0'
spec.summary = 'Dead simple connivence categories for UIColor.'
spec.homepage = 'https://github.com/steam/SDColor'
spec.author = { 'Sean Dougherty' => 'sean@process255.com' }
spec.source = { :git => 'https://github.com/steam/SDColor.git', :tag => "#{spec.version}" }
spec.description = 'Use hexidecimal values to create UIColor objects.'
spec.source_files = 'SDColor/*.{h,m}'
+ spec.frameworks = 'UIKit'
spec.requires_arc = false
spec.license = { :type => 'MIT', :file => 'LICENSE' }
end | 1 | 0.083333 | 1 | 0 |
9e288bf4b0c1856e197ebc83ae785d21cff55f82 | preferences/Preferences.json | preferences/Preferences.json | {
"archiveDirPaths": {
"2012": "/Users/Harold/Desktop/NFC/Data/Old Bird/2012 Summer and Fall",
"2014": "/Users/Harold/Desktop/NFC/Data/Old Bird/2014"
},
"defaultArchive": "2012",
"stationName": "Alfred",
"detectorName": "Tseep",
"clipClassName": "Call",
"monthName": "September 2012",
"mainWindow.width": 1000,
"mainWindow.height": 800,
"mainWindow.countDisplayType": "archive calendar",
"clipsWindow.width": 1200,
"clipsWindow.height": 800,
"clipsWindow.numRows": 6,
"clipsWindow.duration": 1.5,
"clipsWindow.spacing": 0.01,
"clipsWindow.spectrogram.windowType": "Rectangular",
"clipsWindow.spectrogram.windowSize": 128,
"clipsWindow.spectrogram.hopSize": 10,
"clipsWindow.spectrogram.dftSize": 256,
"clipGrid.showMouseTimeFreq": true,
"clipGrid.showClipClassNames": true,
"clipGrid.showClipTimes": true,
"clipGrid.clipTextFontSize": 11,
"clipGrid.clipTextColor": "white",
"classification.defaultCommandSet": "Coarse"
}
| {
"archiveDirPaths": {
"2012": "/Users/Harold/Desktop/NFC/Data/Old Bird/2012 Summer and Fall",
"2014": "/Users/Harold/Desktop/NFC/Data/Old Bird/2014"
},
"defaultArchive": "2012",
"stationName": "Alfred",
"detectorName": "Tseep",
"clipClassName": "Call",
"monthName": "September 2012",
"mainWindow.width": 1000,
"mainWindow.height": 800,
"mainWindow.countDisplayType": "archive calendar",
"clipsWindow.width": 1200,
"clipsWindow.height": 800,
"clipsWindow.numRows": 6,
"clipsWindow.duration": 1.5,
"clipsWindow.spacing": 0.01,
"clipsWindow.spectrogram.windowType": "Hann",
"clipsWindow.spectrogram.windowSize": 128,
"clipsWindow.spectrogram.hopSize": 10,
"clipsWindow.spectrogram.dftSize": 256,
"clipGrid.showMouseTimeFreq": true,
"clipGrid.showClipClassNames": true,
"clipGrid.showClipTimes": true,
"clipGrid.clipTextFontSize": 11,
"clipGrid.clipTextColor": "white",
"classification.defaultCommandSet": "Coarse",
"classification.advanceAfterClassification": true
}
| Change preferred window from Hamming to Hann. | Change preferred window from Hamming to Hann. | JSON | mit | HaroldMills/Vesper,HaroldMills/Vesper,HaroldMills/Vesper,HaroldMills/Vesper,HaroldMills/Vesper | json | ## Code Before:
{
"archiveDirPaths": {
"2012": "/Users/Harold/Desktop/NFC/Data/Old Bird/2012 Summer and Fall",
"2014": "/Users/Harold/Desktop/NFC/Data/Old Bird/2014"
},
"defaultArchive": "2012",
"stationName": "Alfred",
"detectorName": "Tseep",
"clipClassName": "Call",
"monthName": "September 2012",
"mainWindow.width": 1000,
"mainWindow.height": 800,
"mainWindow.countDisplayType": "archive calendar",
"clipsWindow.width": 1200,
"clipsWindow.height": 800,
"clipsWindow.numRows": 6,
"clipsWindow.duration": 1.5,
"clipsWindow.spacing": 0.01,
"clipsWindow.spectrogram.windowType": "Rectangular",
"clipsWindow.spectrogram.windowSize": 128,
"clipsWindow.spectrogram.hopSize": 10,
"clipsWindow.spectrogram.dftSize": 256,
"clipGrid.showMouseTimeFreq": true,
"clipGrid.showClipClassNames": true,
"clipGrid.showClipTimes": true,
"clipGrid.clipTextFontSize": 11,
"clipGrid.clipTextColor": "white",
"classification.defaultCommandSet": "Coarse"
}
## Instruction:
Change preferred window from Hamming to Hann.
## Code After:
{
"archiveDirPaths": {
"2012": "/Users/Harold/Desktop/NFC/Data/Old Bird/2012 Summer and Fall",
"2014": "/Users/Harold/Desktop/NFC/Data/Old Bird/2014"
},
"defaultArchive": "2012",
"stationName": "Alfred",
"detectorName": "Tseep",
"clipClassName": "Call",
"monthName": "September 2012",
"mainWindow.width": 1000,
"mainWindow.height": 800,
"mainWindow.countDisplayType": "archive calendar",
"clipsWindow.width": 1200,
"clipsWindow.height": 800,
"clipsWindow.numRows": 6,
"clipsWindow.duration": 1.5,
"clipsWindow.spacing": 0.01,
"clipsWindow.spectrogram.windowType": "Hann",
"clipsWindow.spectrogram.windowSize": 128,
"clipsWindow.spectrogram.hopSize": 10,
"clipsWindow.spectrogram.dftSize": 256,
"clipGrid.showMouseTimeFreq": true,
"clipGrid.showClipClassNames": true,
"clipGrid.showClipTimes": true,
"clipGrid.clipTextFontSize": 11,
"clipGrid.clipTextColor": "white",
"classification.defaultCommandSet": "Coarse",
"classification.advanceAfterClassification": true
}
| {
"archiveDirPaths": {
"2012": "/Users/Harold/Desktop/NFC/Data/Old Bird/2012 Summer and Fall",
"2014": "/Users/Harold/Desktop/NFC/Data/Old Bird/2014"
},
"defaultArchive": "2012",
"stationName": "Alfred",
"detectorName": "Tseep",
"clipClassName": "Call",
"monthName": "September 2012",
"mainWindow.width": 1000,
"mainWindow.height": 800,
"mainWindow.countDisplayType": "archive calendar",
"clipsWindow.width": 1200,
"clipsWindow.height": 800,
"clipsWindow.numRows": 6,
"clipsWindow.duration": 1.5,
"clipsWindow.spacing": 0.01,
- "clipsWindow.spectrogram.windowType": "Rectangular",
? ^^^^ ^^^^^
+ "clipsWindow.spectrogram.windowType": "Hann",
? ^ ^
"clipsWindow.spectrogram.windowSize": 128,
"clipsWindow.spectrogram.hopSize": 10,
"clipsWindow.spectrogram.dftSize": 256,
"clipGrid.showMouseTimeFreq": true,
"clipGrid.showClipClassNames": true,
"clipGrid.showClipTimes": true,
"clipGrid.clipTextFontSize": 11,
"clipGrid.clipTextColor": "white",
- "classification.defaultCommandSet": "Coarse"
+ "classification.defaultCommandSet": "Coarse",
? +
+ "classification.advanceAfterClassification": true
} | 5 | 0.172414 | 3 | 2 |
085c371c9336069332b34f100ae3c242cf907d62 | spec/sisimai/lhost_spec.rb | spec/sisimai/lhost_spec.rb | require 'spec_helper'
require 'sisimai/lhost'
describe Sisimai::Lhost do
describe '.DELIVERYSTATUS' do
it('returns Hash') { expect(Sisimai::Lhost.DELIVERYSTATUS).to be_a Hash }
end
describe '.INDICATORS' do
it('returns Hash') { expect(Sisimai::Lhost.INDICATORS).to be_a Hash }
end
describe '.smtpagent' do
it('returns String') { expect(Sisimai::Lhost.smtpagent).to be_a Object::String }
end
describe '.description' do
it('returns String') { expect(Sisimai::Lhost.description).to be_a ::String }
it('is empty string') { expect(Sisimai::Lhost.description).to be_empty }
end
describe '.index' do
it('returns Array') { expect(Sisimai::Lhost.index).to be_a Array }
it('is not empty' ) { expect(Sisimai::Lhost.index.size).to be > 0 }
end
describe '.make' do
it('returns nil') { expect(Sisimai::Lhost.make).to be nil }
end
end
| require 'spec_helper'
require 'sisimai/lhost'
describe Sisimai::Lhost do
describe '.DELIVERYSTATUS' do
it('returns Hash') { expect(Sisimai::Lhost.DELIVERYSTATUS).to be_a Hash }
end
describe '.INDICATORS' do
it('returns Hash') { expect(Sisimai::Lhost.INDICATORS).to be_a Hash }
end
describe '.smtpagent' do
it('returns String') { expect(Sisimai::Lhost.smtpagent).to be_a Object::String }
end
describe '.description' do
it('returns String') { expect(Sisimai::Lhost.description).to be_a ::String }
it('is empty string') { expect(Sisimai::Lhost.description).to be_empty }
end
describe '.index' do
it('returns Array') { expect(Sisimai::Lhost.index).to be_a Array }
it('is not empty' ) { expect(Sisimai::Lhost.index.size).to be > 0 }
end
describe '.path' do
it('returns Hash') { expect(Sisimai::Lhost.path).to be_a Hash }
it('is not empty' ) { expect(Sisimai::Lhost.path.size).to be > 0 }
end
describe '.make' do
it('returns nil') { expect(Sisimai::Lhost.make).to be nil }
end
end
| Add test code for fb7aa1b | Add test code for fb7aa1b
| Ruby | bsd-2-clause | azumakuniyuki/rb-Sisimai,azumakuniyuki/rb-Sisimai | ruby | ## Code Before:
require 'spec_helper'
require 'sisimai/lhost'
describe Sisimai::Lhost do
describe '.DELIVERYSTATUS' do
it('returns Hash') { expect(Sisimai::Lhost.DELIVERYSTATUS).to be_a Hash }
end
describe '.INDICATORS' do
it('returns Hash') { expect(Sisimai::Lhost.INDICATORS).to be_a Hash }
end
describe '.smtpagent' do
it('returns String') { expect(Sisimai::Lhost.smtpagent).to be_a Object::String }
end
describe '.description' do
it('returns String') { expect(Sisimai::Lhost.description).to be_a ::String }
it('is empty string') { expect(Sisimai::Lhost.description).to be_empty }
end
describe '.index' do
it('returns Array') { expect(Sisimai::Lhost.index).to be_a Array }
it('is not empty' ) { expect(Sisimai::Lhost.index.size).to be > 0 }
end
describe '.make' do
it('returns nil') { expect(Sisimai::Lhost.make).to be nil }
end
end
## Instruction:
Add test code for fb7aa1b
## Code After:
require 'spec_helper'
require 'sisimai/lhost'
describe Sisimai::Lhost do
describe '.DELIVERYSTATUS' do
it('returns Hash') { expect(Sisimai::Lhost.DELIVERYSTATUS).to be_a Hash }
end
describe '.INDICATORS' do
it('returns Hash') { expect(Sisimai::Lhost.INDICATORS).to be_a Hash }
end
describe '.smtpagent' do
it('returns String') { expect(Sisimai::Lhost.smtpagent).to be_a Object::String }
end
describe '.description' do
it('returns String') { expect(Sisimai::Lhost.description).to be_a ::String }
it('is empty string') { expect(Sisimai::Lhost.description).to be_empty }
end
describe '.index' do
it('returns Array') { expect(Sisimai::Lhost.index).to be_a Array }
it('is not empty' ) { expect(Sisimai::Lhost.index.size).to be > 0 }
end
describe '.path' do
it('returns Hash') { expect(Sisimai::Lhost.path).to be_a Hash }
it('is not empty' ) { expect(Sisimai::Lhost.path.size).to be > 0 }
end
describe '.make' do
it('returns nil') { expect(Sisimai::Lhost.make).to be nil }
end
end
| require 'spec_helper'
require 'sisimai/lhost'
describe Sisimai::Lhost do
describe '.DELIVERYSTATUS' do
it('returns Hash') { expect(Sisimai::Lhost.DELIVERYSTATUS).to be_a Hash }
end
describe '.INDICATORS' do
it('returns Hash') { expect(Sisimai::Lhost.INDICATORS).to be_a Hash }
end
describe '.smtpagent' do
it('returns String') { expect(Sisimai::Lhost.smtpagent).to be_a Object::String }
end
describe '.description' do
it('returns String') { expect(Sisimai::Lhost.description).to be_a ::String }
it('is empty string') { expect(Sisimai::Lhost.description).to be_empty }
end
describe '.index' do
it('returns Array') { expect(Sisimai::Lhost.index).to be_a Array }
it('is not empty' ) { expect(Sisimai::Lhost.index.size).to be > 0 }
end
-
+ describe '.path' do
+ it('returns Hash') { expect(Sisimai::Lhost.path).to be_a Hash }
+ it('is not empty' ) { expect(Sisimai::Lhost.path.size).to be > 0 }
+ end
describe '.make' do
it('returns nil') { expect(Sisimai::Lhost.make).to be nil }
end
end | 5 | 0.192308 | 4 | 1 |
f6152bc2ddc93f938a6035a27d0080b189aec816 | ox_herd/ui/flask_web_ui/ox_herd/templates/task_info.html | ox_herd/ui/flask_web_ui/ox_herd/templates/task_info.html |
{% set oh_task = item.kwargs['ox_herd_task'] %}
<details>
<summary>{{ oh_task.name }} : queue = {{ oh_task.queue_name }} {{ oh_task.manager }} </summary>
<TABLE cellpadding="10"><TR>
<TH>
<A HREF="{{url_for('ox_herd.launch_job')+'?jid=' + item.id}}">
Launch Job Copy</A>
</TH>
<TH>
<A HREF="{{url_for('ox_herd.schedule_job')+'?jid=' + item.id}}">
Edit Job Copy</A>
</TH>
{% if oh_task.cron_string %}
<TH>
<A HREF="{{url_for('ox_herd.cancel_job')+'?jid=' + item.id}}">
Cancel Job</A>
</TH>
{% endif %}
</TR></TABLE>
<UL>
{% if oh_task.url %}
<LI>URL : <A HREF="{{oh_task.url}}"> {{oh_task.url}}</A></LI>
{% endif %}
{% if oh_task.cron_string %}
<LI> Cron string : {{oh_task.cron_string}}</LI>
{% endif %}
{% if oh_task.pytest %}
<LI> pytest args :
<PRE>{{ oh_task.pytest_cmd }}</PRE>
</LI>
{% endif %}
{% if oh_task.timeout %}
<LI> timeout : {{ oh_task.timeout }} </LI>
{% endif %}
<LI> job id : {{item.id}} </LI>
</UL>
</details>
|
{% set oh_task = item.kwargs['ox_herd_task'] %}
<details>
<summary>{{ oh_task.name }} : queue = {{ oh_task.queue_name }} {{ oh_task.manager }} </summary>
<TABLE cellpadding="10"><TR>
<TH>
<A HREF="{{url_for('ox_herd.launch_job')+'?jid=' + item.id}}">
Launch Job Copy</A>
</TH>
<TH>
<A HREF="{{url_for('ox_herd.schedule_job')+'?jid=' + item.id}}">
Edit Job Copy</A>
</TH>
{% if oh_task.cron_string %}
<TH>
<A HREF="{{url_for('ox_herd.cancel_job')+'?jid=' + item.id}}">
Cancel Job</A>
</TH>
{% endif %}
</TR></TABLE>
<UL>
<LI> job id : {{item.id}} </LI>
{% for name, value in oh_task.get_display_fields() %}
<LI>
{{name}} : {{value}}
</LI>
{% endfor %}
</UL>
</details>
| Use get_display_fields to get fields to display | Use get_display_fields to get fields to display
| HTML | bsd-2-clause | aocks/ox_herd,aocks/ox_herd,aocks/ox_herd | html | ## Code Before:
{% set oh_task = item.kwargs['ox_herd_task'] %}
<details>
<summary>{{ oh_task.name }} : queue = {{ oh_task.queue_name }} {{ oh_task.manager }} </summary>
<TABLE cellpadding="10"><TR>
<TH>
<A HREF="{{url_for('ox_herd.launch_job')+'?jid=' + item.id}}">
Launch Job Copy</A>
</TH>
<TH>
<A HREF="{{url_for('ox_herd.schedule_job')+'?jid=' + item.id}}">
Edit Job Copy</A>
</TH>
{% if oh_task.cron_string %}
<TH>
<A HREF="{{url_for('ox_herd.cancel_job')+'?jid=' + item.id}}">
Cancel Job</A>
</TH>
{% endif %}
</TR></TABLE>
<UL>
{% if oh_task.url %}
<LI>URL : <A HREF="{{oh_task.url}}"> {{oh_task.url}}</A></LI>
{% endif %}
{% if oh_task.cron_string %}
<LI> Cron string : {{oh_task.cron_string}}</LI>
{% endif %}
{% if oh_task.pytest %}
<LI> pytest args :
<PRE>{{ oh_task.pytest_cmd }}</PRE>
</LI>
{% endif %}
{% if oh_task.timeout %}
<LI> timeout : {{ oh_task.timeout }} </LI>
{% endif %}
<LI> job id : {{item.id}} </LI>
</UL>
</details>
## Instruction:
Use get_display_fields to get fields to display
## Code After:
{% set oh_task = item.kwargs['ox_herd_task'] %}
<details>
<summary>{{ oh_task.name }} : queue = {{ oh_task.queue_name }} {{ oh_task.manager }} </summary>
<TABLE cellpadding="10"><TR>
<TH>
<A HREF="{{url_for('ox_herd.launch_job')+'?jid=' + item.id}}">
Launch Job Copy</A>
</TH>
<TH>
<A HREF="{{url_for('ox_herd.schedule_job')+'?jid=' + item.id}}">
Edit Job Copy</A>
</TH>
{% if oh_task.cron_string %}
<TH>
<A HREF="{{url_for('ox_herd.cancel_job')+'?jid=' + item.id}}">
Cancel Job</A>
</TH>
{% endif %}
</TR></TABLE>
<UL>
<LI> job id : {{item.id}} </LI>
{% for name, value in oh_task.get_display_fields() %}
<LI>
{{name}} : {{value}}
</LI>
{% endfor %}
</UL>
</details>
|
{% set oh_task = item.kwargs['ox_herd_task'] %}
<details>
<summary>{{ oh_task.name }} : queue = {{ oh_task.queue_name }} {{ oh_task.manager }} </summary>
<TABLE cellpadding="10"><TR>
<TH>
<A HREF="{{url_for('ox_herd.launch_job')+'?jid=' + item.id}}">
Launch Job Copy</A>
</TH>
<TH>
<A HREF="{{url_for('ox_herd.schedule_job')+'?jid=' + item.id}}">
Edit Job Copy</A>
</TH>
{% if oh_task.cron_string %}
<TH>
<A HREF="{{url_for('ox_herd.cancel_job')+'?jid=' + item.id}}">
Cancel Job</A>
</TH>
{% endif %}
</TR></TABLE>
<UL>
+ <LI> job id : {{item.id}} </LI>
+ {% for name, value in oh_task.get_display_fields() %}
+ <LI>
+ {{name}} : {{value}}
- {% if oh_task.url %}
- <LI>URL : <A HREF="{{oh_task.url}}"> {{oh_task.url}}</A></LI>
- {% endif %}
- {% if oh_task.cron_string %}
- <LI> Cron string : {{oh_task.cron_string}}</LI>
- {% endif %}
- {% if oh_task.pytest %}
- <LI> pytest args :
- <PRE>{{ oh_task.pytest_cmd }}</PRE>
</LI>
- {% endif %}
? -
+ {% endfor %}
? ++
- {% if oh_task.timeout %}
- <LI> timeout : {{ oh_task.timeout }} </LI>
- {% endif %}
- <LI> job id : {{item.id}} </LI>
</UL>
</details> | 19 | 0.5 | 5 | 14 |
ac2d4128c9a327d0f06a33c5fb76090b051a879f | lib/octokit/client/licenses.rb | lib/octokit/client/licenses.rb | module Octokit
class Client
# Methods for licenses API
#
module Licenses
# List all licenses
#
# @see https://developer.github.com/v3/licenses/#list-all-licenses
# @return [Array<Sawyer::Resource>] A list of licenses
# @example
# Octokit.licenses
def licenses(options = {})
options = ensure_license_api_media_type(options)
paginate "licenses", options
end
# List an individual license
#
# @see https://developer.github.com/v3/licenses/#get-an-individual-license
# @param license_name [String] The license name
# @return <Sawyer::Resource> An individual license
# @example
# Octokit.license 'mit'
def license(license_name, options = {})
options = ensure_api_media_type(:licenses, options)
get "licenses/#{license_name}", options
end
end
end
end
| module Octokit
class Client
# Methods for licenses API
#
module Licenses
# List all licenses
#
# @see https://developer.github.com/v3/licenses/#list-all-licenses
# @return [Array<Sawyer::Resource>] A list of licenses
# @example
# Octokit.licenses
def licenses(options = {})
options = ensure_api_media_type(:licenses, options)
paginate "licenses", options
end
# List an individual license
#
# @see https://developer.github.com/v3/licenses/#get-an-individual-license
# @param license_name [String] The license name
# @return <Sawyer::Resource> An individual license
# @example
# Octokit.license 'mit'
def license(license_name, options = {})
options = ensure_api_media_type(:licenses, options)
get "licenses/#{license_name}", options
end
end
end
end
| Change one last reference to ensure_license_api_media_type | Change one last reference to ensure_license_api_media_type
| Ruby | mit | xantage/octokit.rb,benbalter/octokit.rb,iainbeeston/octokit.rb,christer155/octokit.rb,moodyredistribution/octokit.rb,tarebyte/octokit.rb,christer155/octokit.rb,daukantas/octokit.rb,Payro93/octokit.rb,kv109/octokit.rb,benbalter/octokit.rb,synmnstr/octokit.rb,pvdb/octokit.rb,Ladiijae/octokit.rb,JuanitoFatas/octokit.rb,cocktail-io/octokit.rb,iainbeeston/octokit.rb,simon0191/octokit.rb,LizzHale/octokit.rb,pwz3n0/octokit.rb,pezholio/octokit.rb,octokit/octokit.rb,AnNOtis/octokit.rb,Ladiijae/octokit.rb,tarebyte/octokit.rb,pvdb/octokit.rb,pwz3n0/octokit.rb,BreemsEmporiumMensToiletriesFragrances/octokit.rb,JuanitoFatas/octokit.rb,Neo20067/octokit.rb,raysrashmi/octokit.rb,xantage/octokit.rb,byroot/octokit.rb,moodyredistribution/octokit.rb,simon0191/octokit.rb,Tadeirro/octokit.rb,BreemsEmporiumMensToiletriesFragrances/octokit.rb,byroot/octokit.rb,kv109/octokit.rb,Tadeirro/octokit.rb,pezholio/octokit.rb,cocktail-io/octokit.rb,raysrashmi/octokit.rb,synmnstr/octokit.rb,octokit/octokit.rb,daukantas/octokit.rb,LizzHale/octokit.rb,AnNOtis/octokit.rb,Neo20067/octokit.rb,Payro93/octokit.rb | ruby | ## Code Before:
module Octokit
class Client
# Methods for licenses API
#
module Licenses
# List all licenses
#
# @see https://developer.github.com/v3/licenses/#list-all-licenses
# @return [Array<Sawyer::Resource>] A list of licenses
# @example
# Octokit.licenses
def licenses(options = {})
options = ensure_license_api_media_type(options)
paginate "licenses", options
end
# List an individual license
#
# @see https://developer.github.com/v3/licenses/#get-an-individual-license
# @param license_name [String] The license name
# @return <Sawyer::Resource> An individual license
# @example
# Octokit.license 'mit'
def license(license_name, options = {})
options = ensure_api_media_type(:licenses, options)
get "licenses/#{license_name}", options
end
end
end
end
## Instruction:
Change one last reference to ensure_license_api_media_type
## Code After:
module Octokit
class Client
# Methods for licenses API
#
module Licenses
# List all licenses
#
# @see https://developer.github.com/v3/licenses/#list-all-licenses
# @return [Array<Sawyer::Resource>] A list of licenses
# @example
# Octokit.licenses
def licenses(options = {})
options = ensure_api_media_type(:licenses, options)
paginate "licenses", options
end
# List an individual license
#
# @see https://developer.github.com/v3/licenses/#get-an-individual-license
# @param license_name [String] The license name
# @return <Sawyer::Resource> An individual license
# @example
# Octokit.license 'mit'
def license(license_name, options = {})
options = ensure_api_media_type(:licenses, options)
get "licenses/#{license_name}", options
end
end
end
end
| module Octokit
class Client
# Methods for licenses API
#
module Licenses
# List all licenses
#
# @see https://developer.github.com/v3/licenses/#list-all-licenses
# @return [Array<Sawyer::Resource>] A list of licenses
# @example
# Octokit.licenses
def licenses(options = {})
- options = ensure_license_api_media_type(options)
? --------
+ options = ensure_api_media_type(:licenses, options)
? +++++++++++
paginate "licenses", options
end
# List an individual license
#
# @see https://developer.github.com/v3/licenses/#get-an-individual-license
# @param license_name [String] The license name
# @return <Sawyer::Resource> An individual license
# @example
# Octokit.license 'mit'
def license(license_name, options = {})
options = ensure_api_media_type(:licenses, options)
get "licenses/#{license_name}", options
end
end
end
end | 2 | 0.0625 | 1 | 1 |
5d7939067da1c83f06b4acbde7c0226d9631c5c2 | docker-compose.yml | docker-compose.yml | version: '2'
services:
db:
image: postgres
environment:
- POSTGRES_USER=saleor
- POSTGRES_PASSWORD=saleor
ports:
- '127.0.0.1:5432:5432'
redis:
image: redis
ports:
- '127.0.0.1:6379:6379'
search:
image: elasticsearch:5.4
ports:
- '127.0.0.1:9200:9200'
web:
build: .
command: python manage.py runserver 0.0.0.0:8000
environment:
- DATABASE_URL=postgres://saleor:saleor@db/saleor
- DEFAULT_FROM_EMAIL=noreply@example.com
- ELASTICSEARCH_URL=http://search:9200
- OPENEXCHANGERATES_API_KEY
- REDIS_URL=redis://redis:6379/0
- SECRET_KEY=changeme
depends_on:
- db
- redis
- search
ports:
- '8000:8000'
volumes:
- .:/app:Z
| version: '2'
services:
db:
image: postgres
environment:
- POSTGRES_USER=saleor
- POSTGRES_PASSWORD=saleor
ports:
- '127.0.0.1:5432:5432'
redis:
image: redis
ports:
- '127.0.0.1:6379:6379'
search:
image: elasticsearch:5.4.3
mem_limit: 1g
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ports:
- '127.0.0.1:9200:9200'
web:
build: .
command: python manage.py runserver 0.0.0.0:8000
environment:
- DATABASE_URL=postgres://saleor:saleor@db/saleor
- DEFAULT_FROM_EMAIL=noreply@example.com
- ELASTICSEARCH_URL=http://search:9200
- OPENEXCHANGERATES_API_KEY
- REDIS_URL=redis://redis:6379/0
- SECRET_KEY=changeme
depends_on:
- db
- redis
- search
ports:
- '8000:8000'
volumes:
- .:/app:Z
| Set elastic search java and docker runtime memory limits | Set elastic search java and docker runtime memory limits
| YAML | bsd-3-clause | UITools/saleor,maferelo/saleor,mociepka/saleor,UITools/saleor,mociepka/saleor,UITools/saleor,maferelo/saleor,maferelo/saleor,UITools/saleor,mociepka/saleor,UITools/saleor | yaml | ## Code Before:
version: '2'
services:
db:
image: postgres
environment:
- POSTGRES_USER=saleor
- POSTGRES_PASSWORD=saleor
ports:
- '127.0.0.1:5432:5432'
redis:
image: redis
ports:
- '127.0.0.1:6379:6379'
search:
image: elasticsearch:5.4
ports:
- '127.0.0.1:9200:9200'
web:
build: .
command: python manage.py runserver 0.0.0.0:8000
environment:
- DATABASE_URL=postgres://saleor:saleor@db/saleor
- DEFAULT_FROM_EMAIL=noreply@example.com
- ELASTICSEARCH_URL=http://search:9200
- OPENEXCHANGERATES_API_KEY
- REDIS_URL=redis://redis:6379/0
- SECRET_KEY=changeme
depends_on:
- db
- redis
- search
ports:
- '8000:8000'
volumes:
- .:/app:Z
## Instruction:
Set elastic search java and docker runtime memory limits
## Code After:
version: '2'
services:
db:
image: postgres
environment:
- POSTGRES_USER=saleor
- POSTGRES_PASSWORD=saleor
ports:
- '127.0.0.1:5432:5432'
redis:
image: redis
ports:
- '127.0.0.1:6379:6379'
search:
image: elasticsearch:5.4.3
mem_limit: 1g
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ports:
- '127.0.0.1:9200:9200'
web:
build: .
command: python manage.py runserver 0.0.0.0:8000
environment:
- DATABASE_URL=postgres://saleor:saleor@db/saleor
- DEFAULT_FROM_EMAIL=noreply@example.com
- ELASTICSEARCH_URL=http://search:9200
- OPENEXCHANGERATES_API_KEY
- REDIS_URL=redis://redis:6379/0
- SECRET_KEY=changeme
depends_on:
- db
- redis
- search
ports:
- '8000:8000'
volumes:
- .:/app:Z
| version: '2'
services:
db:
image: postgres
environment:
- POSTGRES_USER=saleor
- POSTGRES_PASSWORD=saleor
ports:
- '127.0.0.1:5432:5432'
redis:
image: redis
ports:
- '127.0.0.1:6379:6379'
search:
- image: elasticsearch:5.4
+ image: elasticsearch:5.4.3
? ++
+ mem_limit: 1g
+ environment:
+ - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ports:
- '127.0.0.1:9200:9200'
web:
build: .
command: python manage.py runserver 0.0.0.0:8000
environment:
- DATABASE_URL=postgres://saleor:saleor@db/saleor
- DEFAULT_FROM_EMAIL=noreply@example.com
- ELASTICSEARCH_URL=http://search:9200
- OPENEXCHANGERATES_API_KEY
- REDIS_URL=redis://redis:6379/0
- SECRET_KEY=changeme
depends_on:
- db
- redis
- search
ports:
- '8000:8000'
volumes:
- .:/app:Z | 5 | 0.142857 | 4 | 1 |
4fd885cd8868263ef4b5b22f1cdd75c25134040e | tox.ini | tox.ini | [tox]
envlist =
{py27,py34,py35}-django{18,19,110}
flake8
docs
[testenv]
usedevelop = True
deps =
django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10
django110: Django==1.10a1
psycopg2>=2.6.1
mysqlclient>=mysqlclient
coverage>=4.1
setenv =
postgres: DJANGO_DATABASE=postgres
mysql: DJANGO_DATABASE=mysql
commands =
coverage run tests/manage.py test tests
coverage report
[testenv:flake8]
basepython = python3.5
deps =
flake8>=2.5.4
commands =
flake8
[flake8]
max-line-length=120
exclude=venv,migrations,.tox
[testenv:docs]
basepython = python3.5
changedir = docs
deps =
sphinx>=1.4.2
commands=
sphinx-build -n -W . _build
| [tox]
envlist =
{py27,py34,py35}-django{18,19,110}
flake8
docs
[testenv]
usedevelop = True
deps =
py27: mock
django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10
django110: Django==1.10a1
psycopg2>=2.6.1
mysqlclient>=mysqlclient
coverage>=4.1
setenv =
postgres: DJANGO_DATABASE=postgres
mysql: DJANGO_DATABASE=mysql
commands =
coverage run tests/manage.py test tests
coverage report
[testenv:flake8]
basepython = python3.5
deps =
flake8>=2.5.4
commands =
flake8
[flake8]
max-line-length=120
exclude=venv,migrations,.tox
[testenv:docs]
basepython = python3.5
changedir = docs
deps =
sphinx>=1.4.2
commands=
sphinx-build -n -W . _build
| Add backport mock for Python 2.7 | Add backport mock for Python 2.7 | INI | bsd-3-clause | etianen/django-reversion,etianen/django-reversion | ini | ## Code Before:
[tox]
envlist =
{py27,py34,py35}-django{18,19,110}
flake8
docs
[testenv]
usedevelop = True
deps =
django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10
django110: Django==1.10a1
psycopg2>=2.6.1
mysqlclient>=mysqlclient
coverage>=4.1
setenv =
postgres: DJANGO_DATABASE=postgres
mysql: DJANGO_DATABASE=mysql
commands =
coverage run tests/manage.py test tests
coverage report
[testenv:flake8]
basepython = python3.5
deps =
flake8>=2.5.4
commands =
flake8
[flake8]
max-line-length=120
exclude=venv,migrations,.tox
[testenv:docs]
basepython = python3.5
changedir = docs
deps =
sphinx>=1.4.2
commands=
sphinx-build -n -W . _build
## Instruction:
Add backport mock for Python 2.7
## Code After:
[tox]
envlist =
{py27,py34,py35}-django{18,19,110}
flake8
docs
[testenv]
usedevelop = True
deps =
py27: mock
django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10
django110: Django==1.10a1
psycopg2>=2.6.1
mysqlclient>=mysqlclient
coverage>=4.1
setenv =
postgres: DJANGO_DATABASE=postgres
mysql: DJANGO_DATABASE=mysql
commands =
coverage run tests/manage.py test tests
coverage report
[testenv:flake8]
basepython = python3.5
deps =
flake8>=2.5.4
commands =
flake8
[flake8]
max-line-length=120
exclude=venv,migrations,.tox
[testenv:docs]
basepython = python3.5
changedir = docs
deps =
sphinx>=1.4.2
commands=
sphinx-build -n -W . _build
| [tox]
envlist =
{py27,py34,py35}-django{18,19,110}
flake8
docs
[testenv]
usedevelop = True
deps =
+ py27: mock
django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10
django110: Django==1.10a1
psycopg2>=2.6.1
mysqlclient>=mysqlclient
coverage>=4.1
setenv =
postgres: DJANGO_DATABASE=postgres
mysql: DJANGO_DATABASE=mysql
commands =
coverage run tests/manage.py test tests
coverage report
[testenv:flake8]
basepython = python3.5
deps =
flake8>=2.5.4
commands =
flake8
[flake8]
max-line-length=120
exclude=venv,migrations,.tox
[testenv:docs]
basepython = python3.5
changedir = docs
deps =
sphinx>=1.4.2
commands=
sphinx-build -n -W . _build | 1 | 0.025 | 1 | 0 |
c73f6c373cd1288651f2e7fec0c112852c790b25 | fi/cosky/sdk/ImportData.java | fi/cosky/sdk/ImportData.java | package fi.cosky.sdk;
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.txt', which is part of this source code package.
*/
import java.util.List;
public class ImportData extends BaseData {
public static final String MimeType = "application/vnd.jyu.nfleet.import";
public static final double MimeVersion = 2.1;
private int VersionNumber;
private int ErrorCount;
private String State;
private List<VehicleError> Vehicles;
private List<TaskError> Tasks;
public int getVersionNumber() {
return VersionNumber;
}
public void setVersionNumber(int versionNumber) {
VersionNumber = versionNumber;
}
public int getErrorCount() {
return ErrorCount;
}
public void setErrorCount(int errorCount) {
ErrorCount = errorCount;
}
public String getState() {
return State;
}
public void setState(String state) {
State = state;
}
public List<VehicleError> getVehicles() {
return Vehicles;
}
public void setVehicles(List<VehicleError> vehicles) {
Vehicles = vehicles;
}
public List<TaskError> getTasks() {
return Tasks;
}
public void setTasks(List<TaskError> tasks) {
Tasks = tasks;
}
}
| package fi.cosky.sdk;
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.txt', which is part of this source code package.
*/
import java.util.List;
public class ImportData extends BaseData {
public static final String MimeType = "application/vnd.jyu.nfleet.import";
public static final double MimeVersion = 2.2;
private int VersionNumber;
private int ErrorCount;
private String State;
private List<VehicleError> Vehicles;
private List<TaskError> Tasks;
private List<DepotError> Depots;
public int getVersionNumber() {
return VersionNumber;
}
public void setVersionNumber(int versionNumber) {
VersionNumber = versionNumber;
}
public int getErrorCount() {
return ErrorCount;
}
public void setErrorCount(int errorCount) {
ErrorCount = errorCount;
}
public String getState() {
return State;
}
public void setState(String state) {
State = state;
}
public List<VehicleError> getVehicles() {
return Vehicles;
}
public void setVehicles(List<VehicleError> vehicles) {
Vehicles = vehicles;
}
public List<TaskError> getTasks() {
return Tasks;
}
public void setTasks(List<TaskError> tasks) {
Tasks = tasks;
}
public List<DepotError> getDepots() { return Depots; }
public void setDepots(List<DepotError> depots) { Depots = depots; }
}
| Add depots into Import and increase mime version to 2.2 | Add depots into Import and increase mime version to 2.2
| Java | mit | nfleet/java-sdk | java | ## Code Before:
package fi.cosky.sdk;
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.txt', which is part of this source code package.
*/
import java.util.List;
public class ImportData extends BaseData {
public static final String MimeType = "application/vnd.jyu.nfleet.import";
public static final double MimeVersion = 2.1;
private int VersionNumber;
private int ErrorCount;
private String State;
private List<VehicleError> Vehicles;
private List<TaskError> Tasks;
public int getVersionNumber() {
return VersionNumber;
}
public void setVersionNumber(int versionNumber) {
VersionNumber = versionNumber;
}
public int getErrorCount() {
return ErrorCount;
}
public void setErrorCount(int errorCount) {
ErrorCount = errorCount;
}
public String getState() {
return State;
}
public void setState(String state) {
State = state;
}
public List<VehicleError> getVehicles() {
return Vehicles;
}
public void setVehicles(List<VehicleError> vehicles) {
Vehicles = vehicles;
}
public List<TaskError> getTasks() {
return Tasks;
}
public void setTasks(List<TaskError> tasks) {
Tasks = tasks;
}
}
## Instruction:
Add depots into Import and increase mime version to 2.2
## Code After:
package fi.cosky.sdk;
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.txt', which is part of this source code package.
*/
import java.util.List;
public class ImportData extends BaseData {
public static final String MimeType = "application/vnd.jyu.nfleet.import";
public static final double MimeVersion = 2.2;
private int VersionNumber;
private int ErrorCount;
private String State;
private List<VehicleError> Vehicles;
private List<TaskError> Tasks;
private List<DepotError> Depots;
public int getVersionNumber() {
return VersionNumber;
}
public void setVersionNumber(int versionNumber) {
VersionNumber = versionNumber;
}
public int getErrorCount() {
return ErrorCount;
}
public void setErrorCount(int errorCount) {
ErrorCount = errorCount;
}
public String getState() {
return State;
}
public void setState(String state) {
State = state;
}
public List<VehicleError> getVehicles() {
return Vehicles;
}
public void setVehicles(List<VehicleError> vehicles) {
Vehicles = vehicles;
}
public List<TaskError> getTasks() {
return Tasks;
}
public void setTasks(List<TaskError> tasks) {
Tasks = tasks;
}
public List<DepotError> getDepots() { return Depots; }
public void setDepots(List<DepotError> depots) { Depots = depots; }
}
| package fi.cosky.sdk;
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.txt', which is part of this source code package.
*/
import java.util.List;
public class ImportData extends BaseData {
public static final String MimeType = "application/vnd.jyu.nfleet.import";
- public static final double MimeVersion = 2.1;
? ^
+ public static final double MimeVersion = 2.2;
? ^
private int VersionNumber;
private int ErrorCount;
private String State;
private List<VehicleError> Vehicles;
private List<TaskError> Tasks;
+ private List<DepotError> Depots;
public int getVersionNumber() {
return VersionNumber;
}
public void setVersionNumber(int versionNumber) {
VersionNumber = versionNumber;
}
public int getErrorCount() {
return ErrorCount;
}
public void setErrorCount(int errorCount) {
ErrorCount = errorCount;
}
public String getState() {
return State;
}
public void setState(String state) {
State = state;
}
public List<VehicleError> getVehicles() {
return Vehicles;
}
public void setVehicles(List<VehicleError> vehicles) {
Vehicles = vehicles;
}
public List<TaskError> getTasks() {
return Tasks;
}
public void setTasks(List<TaskError> tasks) {
Tasks = tasks;
}
-
+ public List<DepotError> getDepots() { return Depots; }
+ public void setDepots(List<DepotError> depots) { Depots = depots; }
} | 6 | 0.122449 | 4 | 2 |
aed82bc0995cf4175c0ab8c521dfc8e89d776a7e | Mac/scripts/zappycfiles.py | Mac/scripts/zappycfiles.py | import os
import sys
doit = 1
def main():
if os.name == 'mac':
import macfs
fss, ok = macfs.GetDirectory('Directory to zap pyc files in')
if not ok:
sys.exit(0)
dir = fss.as_pathname()
zappyc(dir)
else:
if not sys.argv[1:]:
print 'Usage: zappyc dir ...'
sys.exit(1)
for dir in sys.argv[1:]:
zappyc(dir)
def zappyc(dir):
os.path.walk(dir, walker, None)
def walker(dummy, top, names):
for name in names:
if name[-4:] == '.pyc':
path = os.path.join(top, name)
print 'Zapping', path
if doit:
os.unlink(path)
if __name__ == '__main__':
main()
| """Recursively zap all .pyc files"""
import os
import sys
# set doit true to actually delete files
# set doit false to just print what would be deleted
doit = 1
def main():
if not sys.argv[1:]:
if os.name == 'mac':
import macfs
fss, ok = macfs.GetDirectory('Directory to zap pyc files in')
if not ok:
sys.exit(0)
dir = fss.as_pathname()
zappyc(dir)
else:
print 'Usage: zappyc dir ...'
sys.exit(1)
for dir in sys.argv[1:]:
zappyc(dir)
def zappyc(dir):
os.path.walk(dir, walker, None)
def walker(dummy, top, names):
for name in names:
if name[-4:] == '.pyc':
path = os.path.join(top, name)
print 'Zapping', path
if doit:
os.unlink(path)
if __name__ == '__main__':
main()
| Patch by Russel Owen: if we have command line arguments zap pyc files in the directories given. | Patch by Russel Owen: if we have command line arguments zap pyc files
in the directories given.
| Python | mit | sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator | python | ## Code Before:
import os
import sys
doit = 1
def main():
if os.name == 'mac':
import macfs
fss, ok = macfs.GetDirectory('Directory to zap pyc files in')
if not ok:
sys.exit(0)
dir = fss.as_pathname()
zappyc(dir)
else:
if not sys.argv[1:]:
print 'Usage: zappyc dir ...'
sys.exit(1)
for dir in sys.argv[1:]:
zappyc(dir)
def zappyc(dir):
os.path.walk(dir, walker, None)
def walker(dummy, top, names):
for name in names:
if name[-4:] == '.pyc':
path = os.path.join(top, name)
print 'Zapping', path
if doit:
os.unlink(path)
if __name__ == '__main__':
main()
## Instruction:
Patch by Russel Owen: if we have command line arguments zap pyc files
in the directories given.
## Code After:
"""Recursively zap all .pyc files"""
import os
import sys
# set doit true to actually delete files
# set doit false to just print what would be deleted
doit = 1
def main():
if not sys.argv[1:]:
if os.name == 'mac':
import macfs
fss, ok = macfs.GetDirectory('Directory to zap pyc files in')
if not ok:
sys.exit(0)
dir = fss.as_pathname()
zappyc(dir)
else:
print 'Usage: zappyc dir ...'
sys.exit(1)
for dir in sys.argv[1:]:
zappyc(dir)
def zappyc(dir):
os.path.walk(dir, walker, None)
def walker(dummy, top, names):
for name in names:
if name[-4:] == '.pyc':
path = os.path.join(top, name)
print 'Zapping', path
if doit:
os.unlink(path)
if __name__ == '__main__':
main()
| + """Recursively zap all .pyc files"""
import os
import sys
+ # set doit true to actually delete files
+ # set doit false to just print what would be deleted
doit = 1
def main():
+ if not sys.argv[1:]:
- if os.name == 'mac':
+ if os.name == 'mac':
? +
- import macfs
+ import macfs
? +
- fss, ok = macfs.GetDirectory('Directory to zap pyc files in')
+ fss, ok = macfs.GetDirectory('Directory to zap pyc files in')
? +
- if not ok:
+ if not ok:
? +
- sys.exit(0)
+ sys.exit(0)
? +
- dir = fss.as_pathname()
+ dir = fss.as_pathname()
? +
- zappyc(dir)
+ zappyc(dir)
? +
- else:
+ else:
? +
- if not sys.argv[1:]:
print 'Usage: zappyc dir ...'
sys.exit(1)
- for dir in sys.argv[1:]:
? -
+ for dir in sys.argv[1:]:
- zappyc(dir)
? -
+ zappyc(dir)
def zappyc(dir):
os.path.walk(dir, walker, None)
def walker(dummy, top, names):
for name in names:
if name[-4:] == '.pyc':
path = os.path.join(top, name)
print 'Zapping', path
if doit:
os.unlink(path)
if __name__ == '__main__':
main()
| 25 | 0.735294 | 14 | 11 |
1c9adf2b452cab144dd8d89e024ddbb0c19c1b88 | .github/workflows/main.yml | .github/workflows/main.yml | name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run a one-line script
run: echo Hello, world!
- name: Checkout the tools
run: |
pwd
mkdir ~/esp
cd ~/esp
git clone --recursive https://github.com/espressif/esp-idf.git
cd ~/esp/esp-idf
./install.sh
- name: Compile example 01_max_malloc
run: |
. $HOME/esp/esp-idf/export.sh
export BATCH_BUILD=1
export V=0
cd /home/runner/work/qemu_esp32/qemu_esp32/examples/01_max_malloc
idf.py build
exit 0
| name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run a one-line script
run: echo Hello, world!
- name: Checkout the tools
run: |
pwd
mkdir ~/esp
cd ~/esp
#git clone -b branch --single-branch git://github/repository.git
#git clone --recursive https://github.com/espressif/esp-idf.git
git clone --recursive -b release/v4.0 --single-branch https://github.com/espressif/esp-idf.git
cd ~/esp/esp-idf
./install.sh
- name: Compile example 01_max_malloc
run: |
. $HOME/esp/esp-idf/export.sh
export BATCH_BUILD=1
export V=0
cd /home/runner/work/qemu_esp32/qemu_esp32/examples/01_max_malloc
idf.py build
exit 0
| Use v 4.0 for ci | Use v 4.0 for ci
| YAML | apache-2.0 | Ebiroll/qemu_esp32,Ebiroll/qemu_esp32,Ebiroll/qemu_esp32 | yaml | ## Code Before:
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run a one-line script
run: echo Hello, world!
- name: Checkout the tools
run: |
pwd
mkdir ~/esp
cd ~/esp
git clone --recursive https://github.com/espressif/esp-idf.git
cd ~/esp/esp-idf
./install.sh
- name: Compile example 01_max_malloc
run: |
. $HOME/esp/esp-idf/export.sh
export BATCH_BUILD=1
export V=0
cd /home/runner/work/qemu_esp32/qemu_esp32/examples/01_max_malloc
idf.py build
exit 0
## Instruction:
Use v 4.0 for ci
## Code After:
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run a one-line script
run: echo Hello, world!
- name: Checkout the tools
run: |
pwd
mkdir ~/esp
cd ~/esp
#git clone -b branch --single-branch git://github/repository.git
#git clone --recursive https://github.com/espressif/esp-idf.git
git clone --recursive -b release/v4.0 --single-branch https://github.com/espressif/esp-idf.git
cd ~/esp/esp-idf
./install.sh
- name: Compile example 01_max_malloc
run: |
. $HOME/esp/esp-idf/export.sh
export BATCH_BUILD=1
export V=0
cd /home/runner/work/qemu_esp32/qemu_esp32/examples/01_max_malloc
idf.py build
exit 0
| name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run a one-line script
run: echo Hello, world!
- name: Checkout the tools
run: |
pwd
mkdir ~/esp
cd ~/esp
+ #git clone -b branch --single-branch git://github/repository.git
- git clone --recursive https://github.com/espressif/esp-idf.git
+ #git clone --recursive https://github.com/espressif/esp-idf.git
? +
+ git clone --recursive -b release/v4.0 --single-branch https://github.com/espressif/esp-idf.git
cd ~/esp/esp-idf
+
./install.sh
- name: Compile example 01_max_malloc
run: |
. $HOME/esp/esp-idf/export.sh
export BATCH_BUILD=1
export V=0
cd /home/runner/work/qemu_esp32/qemu_esp32/examples/01_max_malloc
idf.py build
exit 0 | 5 | 0.172414 | 4 | 1 |
09af299a886e38ccb771177b2744d4f9524596e9 | node-problem-detector.yaml | node-problem-detector.yaml | apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: node-problem-detector
spec:
template:
metadata:
labels:
app: node-problem-detector
spec:
containers:
- name: node-problem-detector
command:
- /node-problem-detector
- --kernel-monitor=/config/kernel-monitor.json
image: gcr.io/google.com/noogler-kubernetes/node-problem-detector:v0.2
imagePullPolicy: Always
securityContext:
privileged: true
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
volumeMounts:
- name: log
mountPath: /log
readOnly: true
- name: config
mountPath: /config
readOnly: true
volumes:
- name: log
# Config `log` to your system log directory
hostPath:
path: /var/log/
- name: config
configMap:
name: node-problem-detector-config
| apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: node-problem-detector
spec:
template:
metadata:
labels:
app: node-problem-detector
spec:
containers:
- name: node-problem-detector
command:
- /node-problem-detector
- --kernel-monitor=/config/kernel-monitor.json
image: gcr.io/google_containers/node-problem-detector:v0.2
imagePullPolicy: Always
securityContext:
privileged: true
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
volumeMounts:
- name: log
mountPath: /log
readOnly: true
- name: config
mountPath: /config
readOnly: true
volumes:
- name: log
# Config `log` to your system log directory
hostPath:
path: /var/log/
- name: config
configMap:
name: node-problem-detector-config
| Change the wrong image path in pod yaml. | Change the wrong image path in pod yaml.
Change the wrong image path of pod yaml. | YAML | apache-2.0 | apatil/node-problem-detector,kubernetes/node-problem-detector,kubernetes/node-problem-detector,apatil/node-problem-detector | yaml | ## Code Before:
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: node-problem-detector
spec:
template:
metadata:
labels:
app: node-problem-detector
spec:
containers:
- name: node-problem-detector
command:
- /node-problem-detector
- --kernel-monitor=/config/kernel-monitor.json
image: gcr.io/google.com/noogler-kubernetes/node-problem-detector:v0.2
imagePullPolicy: Always
securityContext:
privileged: true
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
volumeMounts:
- name: log
mountPath: /log
readOnly: true
- name: config
mountPath: /config
readOnly: true
volumes:
- name: log
# Config `log` to your system log directory
hostPath:
path: /var/log/
- name: config
configMap:
name: node-problem-detector-config
## Instruction:
Change the wrong image path in pod yaml.
Change the wrong image path of pod yaml.
## Code After:
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: node-problem-detector
spec:
template:
metadata:
labels:
app: node-problem-detector
spec:
containers:
- name: node-problem-detector
command:
- /node-problem-detector
- --kernel-monitor=/config/kernel-monitor.json
image: gcr.io/google_containers/node-problem-detector:v0.2
imagePullPolicy: Always
securityContext:
privileged: true
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
volumeMounts:
- name: log
mountPath: /log
readOnly: true
- name: config
mountPath: /config
readOnly: true
volumes:
- name: log
# Config `log` to your system log directory
hostPath:
path: /var/log/
- name: config
configMap:
name: node-problem-detector-config
| apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: node-problem-detector
spec:
template:
metadata:
labels:
app: node-problem-detector
spec:
containers:
- name: node-problem-detector
command:
- /node-problem-detector
- --kernel-monitor=/config/kernel-monitor.json
- image: gcr.io/google.com/noogler-kubernetes/node-problem-detector:v0.2
? ^ -- ^^^^ ----------
+ image: gcr.io/google_containers/node-problem-detector:v0.2
? ^ ^^^^
imagePullPolicy: Always
securityContext:
privileged: true
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
volumeMounts:
- name: log
mountPath: /log
readOnly: true
- name: config
mountPath: /config
readOnly: true
volumes:
- name: log
# Config `log` to your system log directory
hostPath:
path: /var/log/
- name: config
configMap:
name: node-problem-detector-config | 2 | 0.046512 | 1 | 1 |
2fd8554c87412689076ba7f897444fe51572c4af | features/minimal_mockingjay.feature | features/minimal_mockingjay.feature | Feature: Minimal Mockingjay Instance
As a user of Mockingjays
I want to be able to start a mockingjay instance with minial options
So that I can quickly start testing my application with the default options
Scenario: Serving without Require Options
Given I want to create a Mockingjay instance with no options
When I serve
Then I see an error asking me to specify missing options
Scenario: Serving without Base Server URL
Given I want to create a Mockingjay instance with the following options
| OPTION | VALUE |
| cacheDir | ./temp/ |
When I serve
Then I see an error asking me to specify missing options
Scenario: Serving with Required Options
Given I want to create a Mockingjay instance with the following options
| OPTION | VALUE |
| cacheDir | ./temp/ |
| serverBaseUrl | http://swapi.co |
When I serve
Then I see no error
| Feature: Minimal Mockingjay Instance
As a user of Mockingjays
I want to be able to start a mockingjay instance with minial options
So that I can quickly start testing my application with the default options
Scenario: Serving without Require Options
Given I want to create a Mockingjay instance with no options
When I serve
Then I see an error asking me to specify missing options
Scenario: Serving without Base Server URL
Given I want to create a Mockingjay instance with the following options
| OPTION | VALUE |
| cacheDir | ./temp/ |
When I serve
Then I see an error asking me to specify missing options
Scenario: Serving without a cache directory URL
Given I want to create a Mockingjay instance with the following options
| OPTION | VALUE |
| serverBaseUrl | http://swapi.co |
When I serve
Then I see an error asking me to specify missing options
Scenario: Serving with Required Options
Given I want to create a Mockingjay instance with the following options
| OPTION | VALUE |
| cacheDir | ./temp/ |
| serverBaseUrl | http://swapi.co |
When I serve
Then I see no error
| Add New Test for Missing Required Option | Add New Test for Missing Required Option
| Cucumber | apache-2.0 | blad/mockingjays | cucumber | ## Code Before:
Feature: Minimal Mockingjay Instance
As a user of Mockingjays
I want to be able to start a mockingjay instance with minial options
So that I can quickly start testing my application with the default options
Scenario: Serving without Require Options
Given I want to create a Mockingjay instance with no options
When I serve
Then I see an error asking me to specify missing options
Scenario: Serving without Base Server URL
Given I want to create a Mockingjay instance with the following options
| OPTION | VALUE |
| cacheDir | ./temp/ |
When I serve
Then I see an error asking me to specify missing options
Scenario: Serving with Required Options
Given I want to create a Mockingjay instance with the following options
| OPTION | VALUE |
| cacheDir | ./temp/ |
| serverBaseUrl | http://swapi.co |
When I serve
Then I see no error
## Instruction:
Add New Test for Missing Required Option
## Code After:
Feature: Minimal Mockingjay Instance
As a user of Mockingjays
I want to be able to start a mockingjay instance with minial options
So that I can quickly start testing my application with the default options
Scenario: Serving without Require Options
Given I want to create a Mockingjay instance with no options
When I serve
Then I see an error asking me to specify missing options
Scenario: Serving without Base Server URL
Given I want to create a Mockingjay instance with the following options
| OPTION | VALUE |
| cacheDir | ./temp/ |
When I serve
Then I see an error asking me to specify missing options
Scenario: Serving without a cache directory URL
Given I want to create a Mockingjay instance with the following options
| OPTION | VALUE |
| serverBaseUrl | http://swapi.co |
When I serve
Then I see an error asking me to specify missing options
Scenario: Serving with Required Options
Given I want to create a Mockingjay instance with the following options
| OPTION | VALUE |
| cacheDir | ./temp/ |
| serverBaseUrl | http://swapi.co |
When I serve
Then I see no error
| Feature: Minimal Mockingjay Instance
As a user of Mockingjays
I want to be able to start a mockingjay instance with minial options
So that I can quickly start testing my application with the default options
Scenario: Serving without Require Options
Given I want to create a Mockingjay instance with no options
When I serve
Then I see an error asking me to specify missing options
Scenario: Serving without Base Server URL
Given I want to create a Mockingjay instance with the following options
| OPTION | VALUE |
| cacheDir | ./temp/ |
When I serve
Then I see an error asking me to specify missing options
+ Scenario: Serving without a cache directory URL
+ Given I want to create a Mockingjay instance with the following options
+ | OPTION | VALUE |
+ | serverBaseUrl | http://swapi.co |
+ When I serve
+ Then I see an error asking me to specify missing options
+
Scenario: Serving with Required Options
Given I want to create a Mockingjay instance with the following options
| OPTION | VALUE |
| cacheDir | ./temp/ |
| serverBaseUrl | http://swapi.co |
When I serve
Then I see no error | 7 | 0.291667 | 7 | 0 |
46ce6e626352d845a8b3b151f58837d8200a82e9 | src/com/algorithms/tree/BST.java | src/com/algorithms/tree/BST.java | package com.algorithms.tree;
public class BST<Key extends Comparable<Key>, Value> {
}
| package com.algorithms.tree;
public class BST<Key extends Comparable<Key>, Value> {
private Node root;
private class Node {
private Key key;
private Value val;
private Node left, right;
public Node(Key key, Value val) {
this.key = key;
this.val = val;
}
}
public void put(Key key, Value val) {}
public Value get(Key key) {}
public void delete(Key key) {}
public Iterable<Key> iterator() {}
}
| Create Node class and other skeleton code | Create Node class and other skeleton code
| Java | mit | SkullTech/algorithms-princeton | java | ## Code Before:
package com.algorithms.tree;
public class BST<Key extends Comparable<Key>, Value> {
}
## Instruction:
Create Node class and other skeleton code
## Code After:
package com.algorithms.tree;
public class BST<Key extends Comparable<Key>, Value> {
private Node root;
private class Node {
private Key key;
private Value val;
private Node left, right;
public Node(Key key, Value val) {
this.key = key;
this.val = val;
}
}
public void put(Key key, Value val) {}
public Value get(Key key) {}
public void delete(Key key) {}
public Iterable<Key> iterator() {}
}
| package com.algorithms.tree;
public class BST<Key extends Comparable<Key>, Value> {
+
+ private Node root;
+
+ private class Node {
+ private Key key;
+ private Value val;
+ private Node left, right;
+ public Node(Key key, Value val) {
+ this.key = key;
+ this.val = val;
+ }
+ }
+
+ public void put(Key key, Value val) {}
+
+ public Value get(Key key) {}
+
+ public void delete(Key key) {}
+
+ public Iterable<Key> iterator() {}
} | 20 | 5 | 20 | 0 |
485870fa95d4a70f4ab0b389fab93a425e3cf452 | README.md | README.md | etcd-metrics-server
===================
[CI](https://mega.ci.cf-app.com/pipelines/etcd/jobs/test-etcd-metrics-server)
etcd varz/healthz metrics and collector integration
| etcd-metrics-server
===================
[CI](https://wings.concourse.ci/teams/cf-infrastructure/pipelines/etcd)
etcd varz/healthz metrics and collector integration
| Update readme to point to new ci | Update readme to point to new ci
[#145886049]
Signed-off-by: Christian Ang <15ae83feccf4d84083a62aba1cdf46bd8ce2e33b@pivotal.io>
| Markdown | apache-2.0 | cloudfoundry-incubator/etcd-metrics-server,cloudfoundry-incubator/etcd-metrics-server | markdown | ## Code Before:
etcd-metrics-server
===================
[CI](https://mega.ci.cf-app.com/pipelines/etcd/jobs/test-etcd-metrics-server)
etcd varz/healthz metrics and collector integration
## Instruction:
Update readme to point to new ci
[#145886049]
Signed-off-by: Christian Ang <15ae83feccf4d84083a62aba1cdf46bd8ce2e33b@pivotal.io>
## Code After:
etcd-metrics-server
===================
[CI](https://wings.concourse.ci/teams/cf-infrastructure/pipelines/etcd)
etcd varz/healthz metrics and collector integration
| etcd-metrics-server
===================
- [CI](https://mega.ci.cf-app.com/pipelines/etcd/jobs/test-etcd-metrics-server)
+ [CI](https://wings.concourse.ci/teams/cf-infrastructure/pipelines/etcd)
etcd varz/healthz metrics and collector integration
| 2 | 0.333333 | 1 | 1 |
fcb8c69f89a3d979b2b80eb9a8ef7900162f8482 | app/assets/javascripts/spree/frontend/wishlist.js | app/assets/javascripts/spree/frontend/wishlist.js | (function() {
Spree.ready(function($) {
$('#new_wished_product').on('submit', function() {
var cart_quantity, selected_variant_id;
selected_variant_id = $('#product-variants input[type=radio]:checked').val();
if (selected_variant_id) {
$('#wished_product_variant_id').val(selected_variant_id);
}
cart_quantity = $('.add-to-cart #quantity').val();
if (cart_quantity) {
return $('#wished_product_quantity').val(cart_quantity);
}
});
$('form#change_wishlist_accessibility').on('submit', function() {
$.post($(this).prop('action'), $(this).serialize(), null, 'script');
return false;
});
return $('form#change_wishlist_accessibility input[type=radio]').on('click', function() {
return $(this).parent().submit();
});
});
}).call(this);
| (function() {
Spree.ready(function($) {
$('#new_wished_product').on('submit', function() {
var cart_quantity, selected_variant_id;
selected_variant_id = $('#product-variants input[type=radio]:checked').val();
if (selected_variant_id) {
$('#wished_product_variant_id').val(selected_variant_id);
}
cart_quantity = $('#quantity').val();
if (cart_quantity) {
return $('#wished_product_quantity').val(cart_quantity);
}
});
$('form#change_wishlist_accessibility').on('submit', function() {
$.post($(this).prop('action'), $(this).serialize(), null, 'script');
return false;
});
return $('form#change_wishlist_accessibility input[type=radio]').on('click', function() {
return $(this).parent().submit();
});
});
}).call(this);
| Fix Wishlist add button on Spree 4.1 | Fix Wishlist add button on Spree 4.1
| JavaScript | bsd-3-clause | spree-contrib/spree_wishlist,spree-contrib/spree_wishlist,spree-contrib/spree_wishlist | javascript | ## Code Before:
(function() {
Spree.ready(function($) {
$('#new_wished_product').on('submit', function() {
var cart_quantity, selected_variant_id;
selected_variant_id = $('#product-variants input[type=radio]:checked').val();
if (selected_variant_id) {
$('#wished_product_variant_id').val(selected_variant_id);
}
cart_quantity = $('.add-to-cart #quantity').val();
if (cart_quantity) {
return $('#wished_product_quantity').val(cart_quantity);
}
});
$('form#change_wishlist_accessibility').on('submit', function() {
$.post($(this).prop('action'), $(this).serialize(), null, 'script');
return false;
});
return $('form#change_wishlist_accessibility input[type=radio]').on('click', function() {
return $(this).parent().submit();
});
});
}).call(this);
## Instruction:
Fix Wishlist add button on Spree 4.1
## Code After:
(function() {
Spree.ready(function($) {
$('#new_wished_product').on('submit', function() {
var cart_quantity, selected_variant_id;
selected_variant_id = $('#product-variants input[type=radio]:checked').val();
if (selected_variant_id) {
$('#wished_product_variant_id').val(selected_variant_id);
}
cart_quantity = $('#quantity').val();
if (cart_quantity) {
return $('#wished_product_quantity').val(cart_quantity);
}
});
$('form#change_wishlist_accessibility').on('submit', function() {
$.post($(this).prop('action'), $(this).serialize(), null, 'script');
return false;
});
return $('form#change_wishlist_accessibility input[type=radio]').on('click', function() {
return $(this).parent().submit();
});
});
}).call(this);
| (function() {
Spree.ready(function($) {
$('#new_wished_product').on('submit', function() {
var cart_quantity, selected_variant_id;
selected_variant_id = $('#product-variants input[type=radio]:checked').val();
if (selected_variant_id) {
$('#wished_product_variant_id').val(selected_variant_id);
}
- cart_quantity = $('.add-to-cart #quantity').val();
? -------------
+ cart_quantity = $('#quantity').val();
if (cart_quantity) {
return $('#wished_product_quantity').val(cart_quantity);
}
});
$('form#change_wishlist_accessibility').on('submit', function() {
$.post($(this).prop('action'), $(this).serialize(), null, 'script');
return false;
});
return $('form#change_wishlist_accessibility input[type=radio]').on('click', function() {
return $(this).parent().submit();
});
});
}).call(this); | 2 | 0.086957 | 1 | 1 |
1a299a520d3ee4a442ef98e1cc73c247b9bed863 | scripts/services/ReuniaoFactory.js | scripts/services/ReuniaoFactory.js | angular.module('sislegisapp').factory('ReuniaoResource',
function($resource, BACKEND) {
return $resource(BACKEND + '/reuniaos/:ReuniaoId', {
ReuniaoId : '@id'
}, {
'queryAll' : {
method : 'GET',
isArray : true
},
'query' : {
method : 'GET',
isArray : false
},
'buscarReuniaoPorData' : {
url : BACKEND + "/reuniaos/findByData",
method : 'GET',
isArray : true,
transformResponse: function(data){
var jsonParse = JSON.parse(data);
jsonParse.forEach(function(item, index){
if(item.posicionamentoPreliminar){
jsonParse[index].posicionamento.nome = 'Previamente ' + item.posicionamento.nome;
}
});
return jsonParse;
}
},
'update' : {
method : 'PUT'
}
});
});
| angular.module('sislegisapp').factory('ReuniaoResource',
function($resource, BACKEND) {
return $resource(BACKEND + '/reuniaos/:ReuniaoId', {
ReuniaoId : '@id'
}, {
'queryAll' : {
method : 'GET',
isArray : true
},
'query' : {
method : 'GET',
isArray : false
},
'buscarReuniaoPorData' : {
url : BACKEND + "/reuniaos/findByData",
method : 'GET',
isArray : true,
transformResponse: function(data){
var jsonParse = JSON.parse(data);
jsonParse.forEach(function(item, index){
if(item.posicionamentoPreliminar==true){
jsonParse[index].posicionamento.nome = 'Previamente ' + item.posicionamentoAtual.posicionamento.nome;
}
});
return jsonParse;
}
},
'update' : {
method : 'PUT'
}
});
});
| Fix para modelo de posicioanmento autal | Fix para modelo de posicioanmento autal
| JavaScript | agpl-3.0 | rafaelcoutinho/sislegis-app-frontend,pensandoodireito/sislegis-app-frontend,pensandoodireito/sislegis-app-frontend,pensandoodireito/sislegis-app-frontend,rafaelcoutinho/sislegis-app-frontend,rafaelcoutinho/sislegis-app-frontend | javascript | ## Code Before:
angular.module('sislegisapp').factory('ReuniaoResource',
function($resource, BACKEND) {
return $resource(BACKEND + '/reuniaos/:ReuniaoId', {
ReuniaoId : '@id'
}, {
'queryAll' : {
method : 'GET',
isArray : true
},
'query' : {
method : 'GET',
isArray : false
},
'buscarReuniaoPorData' : {
url : BACKEND + "/reuniaos/findByData",
method : 'GET',
isArray : true,
transformResponse: function(data){
var jsonParse = JSON.parse(data);
jsonParse.forEach(function(item, index){
if(item.posicionamentoPreliminar){
jsonParse[index].posicionamento.nome = 'Previamente ' + item.posicionamento.nome;
}
});
return jsonParse;
}
},
'update' : {
method : 'PUT'
}
});
});
## Instruction:
Fix para modelo de posicioanmento autal
## Code After:
angular.module('sislegisapp').factory('ReuniaoResource',
function($resource, BACKEND) {
return $resource(BACKEND + '/reuniaos/:ReuniaoId', {
ReuniaoId : '@id'
}, {
'queryAll' : {
method : 'GET',
isArray : true
},
'query' : {
method : 'GET',
isArray : false
},
'buscarReuniaoPorData' : {
url : BACKEND + "/reuniaos/findByData",
method : 'GET',
isArray : true,
transformResponse: function(data){
var jsonParse = JSON.parse(data);
jsonParse.forEach(function(item, index){
if(item.posicionamentoPreliminar==true){
jsonParse[index].posicionamento.nome = 'Previamente ' + item.posicionamentoAtual.posicionamento.nome;
}
});
return jsonParse;
}
},
'update' : {
method : 'PUT'
}
});
});
| angular.module('sislegisapp').factory('ReuniaoResource',
function($resource, BACKEND) {
return $resource(BACKEND + '/reuniaos/:ReuniaoId', {
ReuniaoId : '@id'
}, {
'queryAll' : {
method : 'GET',
isArray : true
},
'query' : {
method : 'GET',
isArray : false
},
'buscarReuniaoPorData' : {
url : BACKEND + "/reuniaos/findByData",
method : 'GET',
isArray : true,
transformResponse: function(data){
var jsonParse = JSON.parse(data);
jsonParse.forEach(function(item, index){
- if(item.posicionamentoPreliminar){
+ if(item.posicionamentoPreliminar==true){
? ++++++
- jsonParse[index].posicionamento.nome = 'Previamente ' + item.posicionamento.nome;
+ jsonParse[index].posicionamento.nome = 'Previamente ' + item.posicionamentoAtual.posicionamento.nome;
? ++++++++++++++++++++
}
});
return jsonParse;
}
},
'update' : {
method : 'PUT'
}
});
}); | 4 | 0.125 | 2 | 2 |
4a7376fe142ba5de49d0423ed7996490d8ac1985 | test/tests/InfixDataDecl.hs | test/tests/InfixDataDecl.hs | -- SYNTAX TEST "source.haskell" "Infix data declarations"
data A a b = ( T b c ( d e ) f ) `C` '[ A b, C, D [ e, f ] g ]
-- ^^^^ keyword.other.data.haskell
-- ^ keyword.operator.eq.haskell
-- ^ ^ punctuation.paren.haskell
-- ^ constant.other.haskell
-- ^ ^ punctuation.backtick.haskell
-- ^ keyword.operator.promotion.haskell
-- ^ ^ ^ ^ ^ storage.type.haskell
-- ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ variable.other.generic-type.haskell
-- ^ ^ punctuation.bracket.haskell
data A a b = ABC.D `C` GH
-- ^^^^ keyword.other.data.haskell
-- ^ keyword.operator.eq.haskell
-- ^^^^ entity.name.namespace.haskell
-- ^ ^ punctuation.backtick.haskell
-- ^ ^^ storage.type.haskell
| -- SYNTAX TEST "source.haskell" "Infix data declarations"
data A a b = ( T b c ( d e ) f ) `C` '[ A b, C, D [ e, f ] g ]
-- ^^^^ keyword.other.data.haskell
-- ^ keyword.operator.eq.haskell
-- ^ ^ punctuation.paren.haskell
-- ^ constant.other.haskell
-- ^ ^ punctuation.backtick.haskell
-- ^ keyword.operator.promotion.haskell
-- ^ ^ ^ ^ ^ storage.type.haskell
-- ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ variable.other.generic-type.haskell
-- ^ ^ punctuation.bracket.haskell
data A a b = '[ X, y, Z ] `C` D e
-- ^^^^ keyword.other.data.haskell
-- ^ keyword.operator.eq.haskell
-- ^ keyword.operator.promotion.haskell
-- ^ constant.other.haskell
-- ^ ^ punctuation.backtick.haskell
-- ^ ^ ^ storage.type.haskell
-- ^ ^ ^ ^ variable.other.generic-type.haskell
data A a b = ABC.D `C` GH
-- ^^^^ keyword.other.data.haskell
-- ^ keyword.operator.eq.haskell
-- ^^^^ entity.name.namespace.haskell
-- ^ ^ punctuation.backtick.haskell
-- ^ ^^ storage.type.haskell
| Add extra test case for infix datacon highlighting | Add extra test case for infix datacon highlighting
| Haskell | bsd-3-clause | JustusAdam/language-haskell,JustusAdam/language-haskell | haskell | ## Code Before:
-- SYNTAX TEST "source.haskell" "Infix data declarations"
data A a b = ( T b c ( d e ) f ) `C` '[ A b, C, D [ e, f ] g ]
-- ^^^^ keyword.other.data.haskell
-- ^ keyword.operator.eq.haskell
-- ^ ^ punctuation.paren.haskell
-- ^ constant.other.haskell
-- ^ ^ punctuation.backtick.haskell
-- ^ keyword.operator.promotion.haskell
-- ^ ^ ^ ^ ^ storage.type.haskell
-- ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ variable.other.generic-type.haskell
-- ^ ^ punctuation.bracket.haskell
data A a b = ABC.D `C` GH
-- ^^^^ keyword.other.data.haskell
-- ^ keyword.operator.eq.haskell
-- ^^^^ entity.name.namespace.haskell
-- ^ ^ punctuation.backtick.haskell
-- ^ ^^ storage.type.haskell
## Instruction:
Add extra test case for infix datacon highlighting
## Code After:
-- SYNTAX TEST "source.haskell" "Infix data declarations"
data A a b = ( T b c ( d e ) f ) `C` '[ A b, C, D [ e, f ] g ]
-- ^^^^ keyword.other.data.haskell
-- ^ keyword.operator.eq.haskell
-- ^ ^ punctuation.paren.haskell
-- ^ constant.other.haskell
-- ^ ^ punctuation.backtick.haskell
-- ^ keyword.operator.promotion.haskell
-- ^ ^ ^ ^ ^ storage.type.haskell
-- ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ variable.other.generic-type.haskell
-- ^ ^ punctuation.bracket.haskell
data A a b = '[ X, y, Z ] `C` D e
-- ^^^^ keyword.other.data.haskell
-- ^ keyword.operator.eq.haskell
-- ^ keyword.operator.promotion.haskell
-- ^ constant.other.haskell
-- ^ ^ punctuation.backtick.haskell
-- ^ ^ ^ storage.type.haskell
-- ^ ^ ^ ^ variable.other.generic-type.haskell
data A a b = ABC.D `C` GH
-- ^^^^ keyword.other.data.haskell
-- ^ keyword.operator.eq.haskell
-- ^^^^ entity.name.namespace.haskell
-- ^ ^ punctuation.backtick.haskell
-- ^ ^^ storage.type.haskell
| -- SYNTAX TEST "source.haskell" "Infix data declarations"
data A a b = ( T b c ( d e ) f ) `C` '[ A b, C, D [ e, f ] g ]
-- ^^^^ keyword.other.data.haskell
-- ^ keyword.operator.eq.haskell
-- ^ ^ punctuation.paren.haskell
-- ^ constant.other.haskell
-- ^ ^ punctuation.backtick.haskell
-- ^ keyword.operator.promotion.haskell
-- ^ ^ ^ ^ ^ storage.type.haskell
-- ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ variable.other.generic-type.haskell
-- ^ ^ punctuation.bracket.haskell
+ data A a b = '[ X, y, Z ] `C` D e
+ -- ^^^^ keyword.other.data.haskell
+ -- ^ keyword.operator.eq.haskell
+ -- ^ keyword.operator.promotion.haskell
+ -- ^ constant.other.haskell
+ -- ^ ^ punctuation.backtick.haskell
+ -- ^ ^ ^ storage.type.haskell
+ -- ^ ^ ^ ^ variable.other.generic-type.haskell
+
data A a b = ABC.D `C` GH
-- ^^^^ keyword.other.data.haskell
-- ^ keyword.operator.eq.haskell
-- ^^^^ entity.name.namespace.haskell
-- ^ ^ punctuation.backtick.haskell
-- ^ ^^ storage.type.haskell | 9 | 0.428571 | 9 | 0 |
87a33a927491a70431cffdc219fe45fdafdf8497 | composer.json | composer.json | {
"name": "willdurand/hateoas",
"description": "A PHP 5.3 library to support implementing representations for HATEOAS REST web services",
"license": "MIT",
"authors": [
{
"name": "William DURAND",
"email": "william.durand1@gmail.com"
}
],
"require": {
"symfony/routing": "2.1.*"
},
"autoload": {
"psr-0": { "Hateoas": "src/" }
},
"minimum-stability": "dev"
}
| {
"name": "willdurand/hateoas",
"description": "A PHP 5.3 library to support implementing representations for HATEOAS REST web services",
"license": "MIT",
"authors": [
{
"name": "William DURAND",
"email": "william.durand1@gmail.com"
}
],
"suggest": {
"symfony/routing": "",
"symfony/form": ""
},
"autoload": {
"psr-0": { "Hateoas": "src/" }
},
"minimum-stability": "dev"
}
| Remove hard dependencies with the Routing component | Remove hard dependencies with the Routing component
| JSON | mit | NandoKstroNet/Hateoas,SmartestEdu/Hateoas,adrienbrault/Hateoas,fsevestre/Hateoas,romainneutron/Hateoas,wodka/Hateoas,Ninir/Hateoas | json | ## Code Before:
{
"name": "willdurand/hateoas",
"description": "A PHP 5.3 library to support implementing representations for HATEOAS REST web services",
"license": "MIT",
"authors": [
{
"name": "William DURAND",
"email": "william.durand1@gmail.com"
}
],
"require": {
"symfony/routing": "2.1.*"
},
"autoload": {
"psr-0": { "Hateoas": "src/" }
},
"minimum-stability": "dev"
}
## Instruction:
Remove hard dependencies with the Routing component
## Code After:
{
"name": "willdurand/hateoas",
"description": "A PHP 5.3 library to support implementing representations for HATEOAS REST web services",
"license": "MIT",
"authors": [
{
"name": "William DURAND",
"email": "william.durand1@gmail.com"
}
],
"suggest": {
"symfony/routing": "",
"symfony/form": ""
},
"autoload": {
"psr-0": { "Hateoas": "src/" }
},
"minimum-stability": "dev"
}
| {
"name": "willdurand/hateoas",
"description": "A PHP 5.3 library to support implementing representations for HATEOAS REST web services",
"license": "MIT",
"authors": [
{
"name": "William DURAND",
"email": "william.durand1@gmail.com"
}
],
- "require": {
+ "suggest": {
- "symfony/routing": "2.1.*"
? -----
+ "symfony/routing": "",
? +
+ "symfony/form": ""
},
"autoload": {
"psr-0": { "Hateoas": "src/" }
},
"minimum-stability": "dev"
} | 5 | 0.277778 | 3 | 2 |
c16ba54b54a75216bd7424a6e458504941aa9e32 | generators/app_extension/templates/dependency_extension.rb | generators/app_extension/templates/dependency_extension.rb | module <%= class_name %>Dependencies
#
# Pass in a block in the plugin's init.rb that calls this.
# Whatever is in the block will be called during each rails stack setup.
#
def self.load &blk
return unless blk
ActionController::Dispatcher.to_prepare :<%= file_name %>, &blk
end
#
# Pass in a block in the plugin's init.rb that calls this.
# Whatever is in the block will be called during each rails stack teardown.
#
def self.unload &blk
return unless blk
ActionController::Dispatcher.class_eval do
# This is what to_prepare does, but for the after_dispatch callback
callback = ActiveSupport::Callbacks::Callback.new(
:after_dispatch,
blk,
:identifier => :<%= file_name %>
)
@after_dispatch_callbacks | callback
end
end
end
| module <%= class_name %>Dependencies
#
# Pass in a block in the plugin's init.rb that calls this.
# Whatever is in the block will be called during each rails stack setup.
#
def self.load &blk
return unless blk
ActionController::Dispatcher.to_prepare :<%= file_name %>, &blk
end
#
# Pass in a block in the plugin's init.rb that calls this.
# Whatever is in the block will be called during each rails stack teardown.
#
def self.unload &blk
return unless blk
ActionController::Dispatcher.class_eval do
# This is what to_prepare does, but for the after_dispatch callback
@after_dispatch_callbacks ||= ActiveSupport::Callbacks::CallbackChain.new
callback = ActiveSupport::Callbacks::Callback.new(
:after_dispatch,
blk,
:identifier => :<%= file_name %>
)
@after_dispatch_callbacks.replace_or_append!(callback)
end
end
end
| Fix up generated apps unload callbacks. | Fix up generated apps unload callbacks.
| Ruby | mit | rubidine/app_extension_generator | ruby | ## Code Before:
module <%= class_name %>Dependencies
#
# Pass in a block in the plugin's init.rb that calls this.
# Whatever is in the block will be called during each rails stack setup.
#
def self.load &blk
return unless blk
ActionController::Dispatcher.to_prepare :<%= file_name %>, &blk
end
#
# Pass in a block in the plugin's init.rb that calls this.
# Whatever is in the block will be called during each rails stack teardown.
#
def self.unload &blk
return unless blk
ActionController::Dispatcher.class_eval do
# This is what to_prepare does, but for the after_dispatch callback
callback = ActiveSupport::Callbacks::Callback.new(
:after_dispatch,
blk,
:identifier => :<%= file_name %>
)
@after_dispatch_callbacks | callback
end
end
end
## Instruction:
Fix up generated apps unload callbacks.
## Code After:
module <%= class_name %>Dependencies
#
# Pass in a block in the plugin's init.rb that calls this.
# Whatever is in the block will be called during each rails stack setup.
#
def self.load &blk
return unless blk
ActionController::Dispatcher.to_prepare :<%= file_name %>, &blk
end
#
# Pass in a block in the plugin's init.rb that calls this.
# Whatever is in the block will be called during each rails stack teardown.
#
def self.unload &blk
return unless blk
ActionController::Dispatcher.class_eval do
# This is what to_prepare does, but for the after_dispatch callback
@after_dispatch_callbacks ||= ActiveSupport::Callbacks::CallbackChain.new
callback = ActiveSupport::Callbacks::Callback.new(
:after_dispatch,
blk,
:identifier => :<%= file_name %>
)
@after_dispatch_callbacks.replace_or_append!(callback)
end
end
end
| module <%= class_name %>Dependencies
#
# Pass in a block in the plugin's init.rb that calls this.
# Whatever is in the block will be called during each rails stack setup.
#
def self.load &blk
return unless blk
ActionController::Dispatcher.to_prepare :<%= file_name %>, &blk
end
#
# Pass in a block in the plugin's init.rb that calls this.
# Whatever is in the block will be called during each rails stack teardown.
#
def self.unload &blk
return unless blk
ActionController::Dispatcher.class_eval do
# This is what to_prepare does, but for the after_dispatch callback
+ @after_dispatch_callbacks ||= ActiveSupport::Callbacks::CallbackChain.new
callback = ActiveSupport::Callbacks::Callback.new(
:after_dispatch,
blk,
:identifier => :<%= file_name %>
)
- @after_dispatch_callbacks | callback
? ^^^
+ @after_dispatch_callbacks.replace_or_append!(callback)
? ^^^^^^^^^^^^^^^^^^^^ +
end
end
end | 3 | 0.107143 | 2 | 1 |
e1c764d5ff94d7dbd29b7890e2473b5eb3bbc9ed | notebooks/README.md | notebooks/README.md | Here we provide a couple tutorials that we hope will help the interested
reader understand the core functionalities of this package. If you are not opting
to download this repository, we recommend viewing the notebooks with
[nbviewer](http://nbviewer.jupyter.org/), as math will be better rendered than on GitHub
* [General pyroomacoustics demo](http://nbviewer.jupyter.org/github/LCAV/pyroomacoustics/blob/master/notebooks/pyroomacoustics_demo.ipynb)
* [STFT tutorial and demo](http://nbviewer.jupyter.org/github/ebezzam/pyroomacoustics/blob/stft_notebook/notebooks/stft.ipynb)
| Here we provide a couple tutorials that we hope will help the interested
reader understand the core functionalities of this package. If you are not opting
to download this repository, we recommend viewing the notebooks with
[nbviewer](http://nbviewer.jupyter.org/), as math will be better rendered than on GitHub
* [General pyroomacoustics demo](http://nbviewer.jupyter.org/github/LCAV/pyroomacoustics/blob/master/notebooks/pyroomacoustics_demo.ipynb)
* [STFT tutorial and demo](http://nbviewer.jupyter.org/github/LCAV/pyroomacoustics/blob/master/notebooks/stft.ipynb)
| Update link to STFT notebook. | Update link to STFT notebook. | Markdown | mit | LCAV/pyroomacoustics,LCAV/pyroomacoustics | markdown | ## Code Before:
Here we provide a couple tutorials that we hope will help the interested
reader understand the core functionalities of this package. If you are not opting
to download this repository, we recommend viewing the notebooks with
[nbviewer](http://nbviewer.jupyter.org/), as math will be better rendered than on GitHub
* [General pyroomacoustics demo](http://nbviewer.jupyter.org/github/LCAV/pyroomacoustics/blob/master/notebooks/pyroomacoustics_demo.ipynb)
* [STFT tutorial and demo](http://nbviewer.jupyter.org/github/ebezzam/pyroomacoustics/blob/stft_notebook/notebooks/stft.ipynb)
## Instruction:
Update link to STFT notebook.
## Code After:
Here we provide a couple tutorials that we hope will help the interested
reader understand the core functionalities of this package. If you are not opting
to download this repository, we recommend viewing the notebooks with
[nbviewer](http://nbviewer.jupyter.org/), as math will be better rendered than on GitHub
* [General pyroomacoustics demo](http://nbviewer.jupyter.org/github/LCAV/pyroomacoustics/blob/master/notebooks/pyroomacoustics_demo.ipynb)
* [STFT tutorial and demo](http://nbviewer.jupyter.org/github/LCAV/pyroomacoustics/blob/master/notebooks/stft.ipynb)
| Here we provide a couple tutorials that we hope will help the interested
reader understand the core functionalities of this package. If you are not opting
to download this repository, we recommend viewing the notebooks with
[nbviewer](http://nbviewer.jupyter.org/), as math will be better rendered than on GitHub
* [General pyroomacoustics demo](http://nbviewer.jupyter.org/github/LCAV/pyroomacoustics/blob/master/notebooks/pyroomacoustics_demo.ipynb)
- * [STFT tutorial and demo](http://nbviewer.jupyter.org/github/ebezzam/pyroomacoustics/blob/stft_notebook/notebooks/stft.ipynb)
? ^^^^^^^ ------ ^^^^
+ * [STFT tutorial and demo](http://nbviewer.jupyter.org/github/LCAV/pyroomacoustics/blob/master/notebooks/stft.ipynb)
? ^^^^ ++ ^
| 2 | 0.285714 | 1 | 1 |
fdab70538e523709d1f3e9a58d61cd6721c7cb2b | src/main.rs | src/main.rs | //#![feature(libc)]
extern crate libc;
extern crate rand;
extern crate rustc_serialize;
use rand::*;
mod yubikey;
fn random_challenge() -> Vec<u8> {
let mut vec: Vec<u8> = Vec::new();
for _ in 0..64 {
vec.push(rand::random());
}
vec
}
fn main() {
yubikey::yubikey_init();
let yk = yubikey::get_yubikey();
let challenge = &random_challenge();
match yubikey::challenge_response(yk, 2, challenge, false) {
Err(_) => println!("error occured"),
Ok(result) => println!("{}", result)
}
}
|
extern crate libc;
extern crate rand;
extern crate rustc_serialize;
use rand::*;
mod yubikey;
fn random_challenge() -> Vec<u8> {
let mut vec: Vec<u8> = Vec::new();
for _ in 0..64 {
vec.push(rand::random());
}
vec
}
fn main() {
yubikey::yubikey_init();
let yk = yubikey::get_yubikey();
let challenge = &random_challenge();
match yubikey::challenge_response(yk, 2, challenge, false) {
Err(_) => println!("error occured"),
Ok(result) => println!("{}", result)
}
}
| Allow unused functions & dead_code | Allow unused functions & dead_code
This should be removed again when things start to stabilize, but at the
moment it's spamming my rustc output which is very annoying.
| Rust | mit | jbothma/yubikey-fde,tazjin/yubikey-fde,tazjin/yubikey-fde,jbothma/yubikey-fde | rust | ## Code Before:
//#![feature(libc)]
extern crate libc;
extern crate rand;
extern crate rustc_serialize;
use rand::*;
mod yubikey;
fn random_challenge() -> Vec<u8> {
let mut vec: Vec<u8> = Vec::new();
for _ in 0..64 {
vec.push(rand::random());
}
vec
}
fn main() {
yubikey::yubikey_init();
let yk = yubikey::get_yubikey();
let challenge = &random_challenge();
match yubikey::challenge_response(yk, 2, challenge, false) {
Err(_) => println!("error occured"),
Ok(result) => println!("{}", result)
}
}
## Instruction:
Allow unused functions & dead_code
This should be removed again when things start to stabilize, but at the
moment it's spamming my rustc output which is very annoying.
## Code After:
extern crate libc;
extern crate rand;
extern crate rustc_serialize;
use rand::*;
mod yubikey;
fn random_challenge() -> Vec<u8> {
let mut vec: Vec<u8> = Vec::new();
for _ in 0..64 {
vec.push(rand::random());
}
vec
}
fn main() {
yubikey::yubikey_init();
let yk = yubikey::get_yubikey();
let challenge = &random_challenge();
match yubikey::challenge_response(yk, 2, challenge, false) {
Err(_) => println!("error occured"),
Ok(result) => println!("{}", result)
}
}
| - //#![feature(libc)]
extern crate libc;
extern crate rand;
extern crate rustc_serialize;
use rand::*;
mod yubikey;
fn random_challenge() -> Vec<u8> {
let mut vec: Vec<u8> = Vec::new();
for _ in 0..64 {
vec.push(rand::random());
}
vec
}
fn main() {
yubikey::yubikey_init();
let yk = yubikey::get_yubikey();
let challenge = &random_challenge();
match yubikey::challenge_response(yk, 2, challenge, false) {
- Err(_) => println!("error occured"),
? --
+ Err(_) => println!("error occured"),
Ok(result) => println!("{}", result)
}
} | 3 | 0.103448 | 1 | 2 |
84da93c8af076ceadf15819e799de6338cd8bdef | lib/alf/rest/helpers.rb | lib/alf/rest/helpers.rb | module Alf
module Rest
module Helpers
include Payload::Server
def alf_config
env[Rest::RACK_CONFIG_KEY]
end
def alf_agent
@alf_agent ||= Agent.new(self, alf_config)
end
alias_method :agent, :alf_agent
end
end
end
| module Alf
module Rest
module Helpers
extend Forwardable
include Payload::Server
def alf_config
env[Rest::RACK_CONFIG_KEY]
end
def alf_agent
@alf_agent ||= alf_config.agent_class.new(self, alf_config)
end
alias_method :agent, :alf_agent
def db_conn
alf_config.connection
end
def with_db_conn
yield(db_conn)
end
def_delegators :db_conn, :relvar,
:query,
:tuple_extract,
:assert!,
:fact!,
:deny!
end
end
end
| Enhance Helpers with database-related methods. | Enhance Helpers with database-related methods.
| Ruby | mit | alf-tool/alf-rest | ruby | ## Code Before:
module Alf
module Rest
module Helpers
include Payload::Server
def alf_config
env[Rest::RACK_CONFIG_KEY]
end
def alf_agent
@alf_agent ||= Agent.new(self, alf_config)
end
alias_method :agent, :alf_agent
end
end
end
## Instruction:
Enhance Helpers with database-related methods.
## Code After:
module Alf
module Rest
module Helpers
extend Forwardable
include Payload::Server
def alf_config
env[Rest::RACK_CONFIG_KEY]
end
def alf_agent
@alf_agent ||= alf_config.agent_class.new(self, alf_config)
end
alias_method :agent, :alf_agent
def db_conn
alf_config.connection
end
def with_db_conn
yield(db_conn)
end
def_delegators :db_conn, :relvar,
:query,
:tuple_extract,
:assert!,
:fact!,
:deny!
end
end
end
| module Alf
module Rest
module Helpers
+ extend Forwardable
include Payload::Server
def alf_config
env[Rest::RACK_CONFIG_KEY]
end
def alf_agent
- @alf_agent ||= Agent.new(self, alf_config)
? ^
+ @alf_agent ||= alf_config.agent_class.new(self, alf_config)
? ^^^^^^^^^^^^ ++++++
end
alias_method :agent, :alf_agent
+
+ def db_conn
+ alf_config.connection
+ end
+
+ def with_db_conn
+ yield(db_conn)
+ end
+
+ def_delegators :db_conn, :relvar,
+ :query,
+ :tuple_extract,
+ :assert!,
+ :fact!,
+ :deny!
end
end
end | 18 | 1.058824 | 17 | 1 |
fba6dfe7a1478d634bab9bee42614a12a780dc63 | lib/map-instance-mixin.jsx | lib/map-instance-mixin.jsx | /**
* @jsx React.DOM
*/
'use strict';
var MapLoader = require('async-google-maps').MapLoader,
React = require('react');
module.exports = {
componentDidMount: function () {
MapLoader.create(this.getDOMNode(), this.props.mapOptions).then(function (map) {
this.idle(map);
}.bind(this));
},
render: function () {
return (
<div className="map-container">
<div className="test"></div>
</div>
);
}
};
| /**
* @jsx React.DOM
*/
'use strict';
var MapLoader = require('async-google-maps').MapLoader,
React = require('react');
module.exports = {
componentDidMount: function () {
MapLoader.create(this.getDOMNode(), this.props.mapOptions).then(function (map) {
this.idle(map);
}.bind(this));
},
render: function () {
return (
<div className="map-container">
</div>
);
}
};
| Remove silly nested element that wasn't needed. | Remove silly nested element that wasn't needed.
| JSX | mit | zpratt/idle-maps,zpratt/idle-maps | jsx | ## Code Before:
/**
* @jsx React.DOM
*/
'use strict';
var MapLoader = require('async-google-maps').MapLoader,
React = require('react');
module.exports = {
componentDidMount: function () {
MapLoader.create(this.getDOMNode(), this.props.mapOptions).then(function (map) {
this.idle(map);
}.bind(this));
},
render: function () {
return (
<div className="map-container">
<div className="test"></div>
</div>
);
}
};
## Instruction:
Remove silly nested element that wasn't needed.
## Code After:
/**
* @jsx React.DOM
*/
'use strict';
var MapLoader = require('async-google-maps').MapLoader,
React = require('react');
module.exports = {
componentDidMount: function () {
MapLoader.create(this.getDOMNode(), this.props.mapOptions).then(function (map) {
this.idle(map);
}.bind(this));
},
render: function () {
return (
<div className="map-container">
</div>
);
}
};
| /**
* @jsx React.DOM
*/
'use strict';
var MapLoader = require('async-google-maps').MapLoader,
React = require('react');
module.exports = {
componentDidMount: function () {
MapLoader.create(this.getDOMNode(), this.props.mapOptions).then(function (map) {
this.idle(map);
}.bind(this));
},
render: function () {
return (
<div className="map-container">
- <div className="test"></div>
</div>
);
}
}; | 1 | 0.041667 | 0 | 1 |
a65fae011bce4e2ca9a920b51a0fc681ee21c178 | components/hoc/with-errors.js | components/hoc/with-errors.js | import React from 'react'
import PropTypes from 'prop-types'
import hoist from 'hoist-non-react-statics'
import ErrorPage from '../../pages/_error'
export default Page => {
const Extended = hoist(class extends React.Component {
static propTypes = {
error: PropTypes.object
}
static defaultProps = {
error: null
}
state = {
error: null
}
componentDidCatch(error) {
this.setState({
error
})
}
render() {
const {error: stateError} = this.state
const {error: propsError} = this.props
const error = stateError || propsError
if (error) {
return (
<ErrorPage {...this.props} code={error.code} />
)
}
return (
<Page {...this.props} />
)
}
}, Page)
if (Page.getInitialProps) {
Extended.getInitialProps = async context => {
try {
return await Page.getInitialProps(context)
} catch (error) {
return {
error
}
}
}
}
return Extended
}
| import React from 'react'
import PropTypes from 'prop-types'
import hoist from 'hoist-non-react-statics'
import ErrorPage from '../../pages/_error'
export default Page => {
const Extended = hoist(class extends React.Component {
static propTypes = {
error: PropTypes.object
}
static defaultProps = {
error: null
}
state = {
error: null
}
componentDidCatch(error) {
this.setState({
error
})
}
render() {
const {error: stateError} = this.state
const {error: propsError} = this.props
const error = stateError || propsError
if (error) {
return (
<ErrorPage {...this.props} code={error.code} />
)
}
return (
<Page {...this.props} />
)
}
}, Page)
Extended.getInitialProps = async context => {
if (Page.getInitialProps) {
try {
return await Page.getInitialProps(context)
} catch (error) {
if (context.res) {
context.res.statusCode = error.code || 500
}
return {
error
}
}
}
return {}
}
return Extended
}
| Set server statusCode on error | Set server statusCode on error
| JavaScript | mit | sgmap/inspire,sgmap/inspire | javascript | ## Code Before:
import React from 'react'
import PropTypes from 'prop-types'
import hoist from 'hoist-non-react-statics'
import ErrorPage from '../../pages/_error'
export default Page => {
const Extended = hoist(class extends React.Component {
static propTypes = {
error: PropTypes.object
}
static defaultProps = {
error: null
}
state = {
error: null
}
componentDidCatch(error) {
this.setState({
error
})
}
render() {
const {error: stateError} = this.state
const {error: propsError} = this.props
const error = stateError || propsError
if (error) {
return (
<ErrorPage {...this.props} code={error.code} />
)
}
return (
<Page {...this.props} />
)
}
}, Page)
if (Page.getInitialProps) {
Extended.getInitialProps = async context => {
try {
return await Page.getInitialProps(context)
} catch (error) {
return {
error
}
}
}
}
return Extended
}
## Instruction:
Set server statusCode on error
## Code After:
import React from 'react'
import PropTypes from 'prop-types'
import hoist from 'hoist-non-react-statics'
import ErrorPage from '../../pages/_error'
export default Page => {
const Extended = hoist(class extends React.Component {
static propTypes = {
error: PropTypes.object
}
static defaultProps = {
error: null
}
state = {
error: null
}
componentDidCatch(error) {
this.setState({
error
})
}
render() {
const {error: stateError} = this.state
const {error: propsError} = this.props
const error = stateError || propsError
if (error) {
return (
<ErrorPage {...this.props} code={error.code} />
)
}
return (
<Page {...this.props} />
)
}
}, Page)
Extended.getInitialProps = async context => {
if (Page.getInitialProps) {
try {
return await Page.getInitialProps(context)
} catch (error) {
if (context.res) {
context.res.statusCode = error.code || 500
}
return {
error
}
}
}
return {}
}
return Extended
}
| import React from 'react'
import PropTypes from 'prop-types'
import hoist from 'hoist-non-react-statics'
import ErrorPage from '../../pages/_error'
export default Page => {
const Extended = hoist(class extends React.Component {
static propTypes = {
error: PropTypes.object
}
static defaultProps = {
error: null
}
state = {
error: null
}
componentDidCatch(error) {
this.setState({
error
})
}
render() {
const {error: stateError} = this.state
const {error: propsError} = this.props
const error = stateError || propsError
if (error) {
return (
<ErrorPage {...this.props} code={error.code} />
)
}
return (
<Page {...this.props} />
)
}
}, Page)
- if (Page.getInitialProps) {
- Extended.getInitialProps = async context => {
? --
+ Extended.getInitialProps = async context => {
+ if (Page.getInitialProps) {
try {
return await Page.getInitialProps(context)
} catch (error) {
+ if (context.res) {
+ context.res.statusCode = error.code || 500
+ }
+
return {
error
}
}
}
+
+ return {}
}
return Extended
} | 10 | 0.172414 | 8 | 2 |
2dec32aa3846453bf87cf926db356a1fde8099c6 | .travis.yml | .travis.yml | language: java
sudo: false
# No much sense in keeping jdbi artifacts cached
before_cache:
rm -rf $HOME/.m2/repository/org/jdbi
cache:
directories:
- '$HOME/.m2/repository'
install:
- src/build/ci-pre-install.sh
matrix:
include:
- env:
- TESTS=Y
script:
- src/build/ci-test.sh
jdk: oraclejdk8
- env:
- TESTS=Y
script:
- src/build/ci-test.sh
jdk: oraclejdk9
- env:
- TESTS=Y
script:
- src/build/ci-test.sh
jdk: openjdk11
- env:
- DOCUMENTATION=Y
script:
- src/build/ci-doc.sh
jdk: oraclejdk8
- env:
- CODE_STYLE=Y
script:
- src/build/ci-code-style.sh
jdk: oraclejdk8
| language: java
sudo: false
# No much sense in keeping jdbi artifacts cached
before_cache:
rm -rf $HOME/.m2/repository/org/jdbi
cache:
directories:
- '$HOME/.m2/repository'
install:
- src/build/ci-pre-install.sh
matrix:
include:
- env:
- TESTS=Y
script:
- src/build/ci-test.sh
jdk: oraclejdk8
- env:
- TESTS=Y
# make sure we don't accidentally introduce locale-sensitive tests
- LC_ALL=fr_FR.UTF-8
script:
- src/build/ci-test.sh
jdk: oraclejdk9
- env:
- TESTS=Y
script:
- src/build/ci-test.sh
jdk: openjdk11
- env:
- DOCUMENTATION=Y
script:
- src/build/ci-doc.sh
jdk: oraclejdk8
- env:
- CODE_STYLE=Y
script:
- src/build/ci-code-style.sh
jdk: oraclejdk8
| Change one of the Travis builds to `fr_FR` so we don't inadvertently introduce locale dependencies | Change one of the Travis builds to `fr_FR` so we don't inadvertently introduce locale dependencies
| YAML | apache-2.0 | jdbi/jdbi,hgschmie/jdbi,jdbi/jdbi,john9x/jdbi,john9x/jdbi,hgschmie/jdbi,jdbi/jdbi,hgschmie/jdbi | yaml | ## Code Before:
language: java
sudo: false
# No much sense in keeping jdbi artifacts cached
before_cache:
rm -rf $HOME/.m2/repository/org/jdbi
cache:
directories:
- '$HOME/.m2/repository'
install:
- src/build/ci-pre-install.sh
matrix:
include:
- env:
- TESTS=Y
script:
- src/build/ci-test.sh
jdk: oraclejdk8
- env:
- TESTS=Y
script:
- src/build/ci-test.sh
jdk: oraclejdk9
- env:
- TESTS=Y
script:
- src/build/ci-test.sh
jdk: openjdk11
- env:
- DOCUMENTATION=Y
script:
- src/build/ci-doc.sh
jdk: oraclejdk8
- env:
- CODE_STYLE=Y
script:
- src/build/ci-code-style.sh
jdk: oraclejdk8
## Instruction:
Change one of the Travis builds to `fr_FR` so we don't inadvertently introduce locale dependencies
## Code After:
language: java
sudo: false
# No much sense in keeping jdbi artifacts cached
before_cache:
rm -rf $HOME/.m2/repository/org/jdbi
cache:
directories:
- '$HOME/.m2/repository'
install:
- src/build/ci-pre-install.sh
matrix:
include:
- env:
- TESTS=Y
script:
- src/build/ci-test.sh
jdk: oraclejdk8
- env:
- TESTS=Y
# make sure we don't accidentally introduce locale-sensitive tests
- LC_ALL=fr_FR.UTF-8
script:
- src/build/ci-test.sh
jdk: oraclejdk9
- env:
- TESTS=Y
script:
- src/build/ci-test.sh
jdk: openjdk11
- env:
- DOCUMENTATION=Y
script:
- src/build/ci-doc.sh
jdk: oraclejdk8
- env:
- CODE_STYLE=Y
script:
- src/build/ci-code-style.sh
jdk: oraclejdk8
| language: java
sudo: false
# No much sense in keeping jdbi artifacts cached
before_cache:
rm -rf $HOME/.m2/repository/org/jdbi
cache:
directories:
- '$HOME/.m2/repository'
install:
- src/build/ci-pre-install.sh
matrix:
include:
- env:
- TESTS=Y
script:
- src/build/ci-test.sh
jdk: oraclejdk8
- env:
- TESTS=Y
+ # make sure we don't accidentally introduce locale-sensitive tests
+ - LC_ALL=fr_FR.UTF-8
script:
- src/build/ci-test.sh
jdk: oraclejdk9
- env:
- TESTS=Y
script:
- src/build/ci-test.sh
jdk: openjdk11
- env:
- DOCUMENTATION=Y
script:
- src/build/ci-doc.sh
jdk: oraclejdk8
- env:
- CODE_STYLE=Y
script:
- src/build/ci-code-style.sh
jdk: oraclejdk8 | 2 | 0.047619 | 2 | 0 |
70daf4157cc8b039d726fd6482fa9bae1b3fee1e | modules/urlparser/__init__.py | modules/urlparser/__init__.py | from modules import *
import re
import urllib2
import traceback
try:
import simplejson as json
except ImportError:
import json
from unidecode import unidecode
from twitter import Twitter
from bitly import Bitly
from youtube import Youtube
class Urlparser(Module):
"""Checks incoming messages for possible urls. If a url is found then
route the url to a corresponding module to handle.
"""
def __init__(self, *args, **kwargs):
"""Constructor."""
Module.__init__(self, kwargs=kwargs)
self.url_patterns = [
Twitter,
Youtube,
Bitly,
]
self.url_pattern = re.compile("http://(.*?)")
def _register_events(self):
self.add_event('pubmsg', 'parse_message')
def parse_message(self, event):
nick = event['nick']
# make sure the message contains a url before checking
# the other handlers patterns
try:
for handler in self.url_patterns:
m = handler.pattern.search(event['message'])
if m:
handler_instance = handler()
msg = handler_instance.handle(event=event, match=m)
if msg:
self.server.privmsg(event['target'], msg.encode('utf-8'))
break
except:
print "<<Error>> in Urlparser"
print traceback.print_exc()
| from modules import *
import re
import urllib2
import traceback
try:
import simplejson as json
except ImportError:
import json
from unidecode import unidecode
from twitter import Twitter
from bitly import Bitly
from youtube import Youtube
class Urlparser(Module):
"""Checks incoming messages for possible urls. If a url is found then
route the url to a corresponding module to handle.
"""
def __init__(self, *args, **kwargs):
"""Constructor."""
Module.__init__(self, kwargs=kwargs)
self.url_patterns = [
Twitter,
Youtube,
Bitly,
]
self.url_pattern = re.compile("http://(.*?)")
def _register_events(self):
self.add_event('pubmsg', 'parse_message')
def parse_message(self, event):
nick = event['nick']
# make sure the message contains a url before checking
# the other handlers patterns
try:
for handler in self.url_patterns:
m = handler.pattern.search(event['message'])
if m:
handler_instance = handler()
msg = handler_instance.handle(event=event, match=m)
if msg:
self.server.privmsg(event['target'], msg)
break
except:
print "<<Error>> in Urlparser"
print traceback.print_exc()
| Change encoding of URL parser | Change encoding of URL parser
| Python | mit | billyvg/piebot | python | ## Code Before:
from modules import *
import re
import urllib2
import traceback
try:
import simplejson as json
except ImportError:
import json
from unidecode import unidecode
from twitter import Twitter
from bitly import Bitly
from youtube import Youtube
class Urlparser(Module):
"""Checks incoming messages for possible urls. If a url is found then
route the url to a corresponding module to handle.
"""
def __init__(self, *args, **kwargs):
"""Constructor."""
Module.__init__(self, kwargs=kwargs)
self.url_patterns = [
Twitter,
Youtube,
Bitly,
]
self.url_pattern = re.compile("http://(.*?)")
def _register_events(self):
self.add_event('pubmsg', 'parse_message')
def parse_message(self, event):
nick = event['nick']
# make sure the message contains a url before checking
# the other handlers patterns
try:
for handler in self.url_patterns:
m = handler.pattern.search(event['message'])
if m:
handler_instance = handler()
msg = handler_instance.handle(event=event, match=m)
if msg:
self.server.privmsg(event['target'], msg.encode('utf-8'))
break
except:
print "<<Error>> in Urlparser"
print traceback.print_exc()
## Instruction:
Change encoding of URL parser
## Code After:
from modules import *
import re
import urllib2
import traceback
try:
import simplejson as json
except ImportError:
import json
from unidecode import unidecode
from twitter import Twitter
from bitly import Bitly
from youtube import Youtube
class Urlparser(Module):
"""Checks incoming messages for possible urls. If a url is found then
route the url to a corresponding module to handle.
"""
def __init__(self, *args, **kwargs):
"""Constructor."""
Module.__init__(self, kwargs=kwargs)
self.url_patterns = [
Twitter,
Youtube,
Bitly,
]
self.url_pattern = re.compile("http://(.*?)")
def _register_events(self):
self.add_event('pubmsg', 'parse_message')
def parse_message(self, event):
nick = event['nick']
# make sure the message contains a url before checking
# the other handlers patterns
try:
for handler in self.url_patterns:
m = handler.pattern.search(event['message'])
if m:
handler_instance = handler()
msg = handler_instance.handle(event=event, match=m)
if msg:
self.server.privmsg(event['target'], msg)
break
except:
print "<<Error>> in Urlparser"
print traceback.print_exc()
| from modules import *
import re
import urllib2
import traceback
try:
import simplejson as json
except ImportError:
import json
from unidecode import unidecode
from twitter import Twitter
from bitly import Bitly
from youtube import Youtube
class Urlparser(Module):
"""Checks incoming messages for possible urls. If a url is found then
route the url to a corresponding module to handle.
"""
def __init__(self, *args, **kwargs):
"""Constructor."""
Module.__init__(self, kwargs=kwargs)
self.url_patterns = [
Twitter,
Youtube,
Bitly,
]
self.url_pattern = re.compile("http://(.*?)")
def _register_events(self):
self.add_event('pubmsg', 'parse_message')
def parse_message(self, event):
nick = event['nick']
# make sure the message contains a url before checking
# the other handlers patterns
try:
for handler in self.url_patterns:
m = handler.pattern.search(event['message'])
if m:
handler_instance = handler()
msg = handler_instance.handle(event=event, match=m)
if msg:
- self.server.privmsg(event['target'], msg.encode('utf-8'))
? --------------- -
+ self.server.privmsg(event['target'], msg)
break
except:
print "<<Error>> in Urlparser"
print traceback.print_exc()
| 2 | 0.035714 | 1 | 1 |
127bf8e26f1c11e1e8ab9b2704cb60c7bfbff722 | checkinatfmi_project/website/templates/books_to_return.html | checkinatfmi_project/website/templates/books_to_return.html | {% extends "base.html" %}
{% block content %}
<div class="row">
{% for book in books %}
<div class="col-md-2">
<p style="text-align: center; font-size: 140%;">
<a href="{% url 'show_book' book.id %}">{{ book.title }}</a>
</p>
<img src="{{ MEDIA_URL }}{{ book.cover }}" style="width: 100%">
</div>
{% endfor %}
</div>
{% endblock %} | {% extends "base.html" %}
{% block content %}
<div class="row">
{% for book in books %}
<div class="col-md-2">
<p style="text-align: center; font-size: 140%;">
<a href="{% url 'show_book' book.id %}">{{ book.title }}</a>
</p>
<img src="{{ MEDIA_URL }}{{ book.cover }}" style="width: 100%">
</div>
{% endfor %}
{% if not books %}
<div class="alert alert-warning" role="alert">
Няма книги, които трябва да върнете!
</div>
{% endif %}
</div>
{% endblock %}
| Add some text in boks_to_retur.html | Add some text in boks_to_retur.html
| HTML | agpl-3.0 | TheCodingMonkeys/checkin-at-fmi,TheCodingMonkeys/checkin-at-fmi | html | ## Code Before:
{% extends "base.html" %}
{% block content %}
<div class="row">
{% for book in books %}
<div class="col-md-2">
<p style="text-align: center; font-size: 140%;">
<a href="{% url 'show_book' book.id %}">{{ book.title }}</a>
</p>
<img src="{{ MEDIA_URL }}{{ book.cover }}" style="width: 100%">
</div>
{% endfor %}
</div>
{% endblock %}
## Instruction:
Add some text in boks_to_retur.html
## Code After:
{% extends "base.html" %}
{% block content %}
<div class="row">
{% for book in books %}
<div class="col-md-2">
<p style="text-align: center; font-size: 140%;">
<a href="{% url 'show_book' book.id %}">{{ book.title }}</a>
</p>
<img src="{{ MEDIA_URL }}{{ book.cover }}" style="width: 100%">
</div>
{% endfor %}
{% if not books %}
<div class="alert alert-warning" role="alert">
Няма книги, които трябва да върнете!
</div>
{% endif %}
</div>
{% endblock %}
| {% extends "base.html" %}
{% block content %}
<div class="row">
{% for book in books %}
<div class="col-md-2">
<p style="text-align: center; font-size: 140%;">
<a href="{% url 'show_book' book.id %}">{{ book.title }}</a>
</p>
<img src="{{ MEDIA_URL }}{{ book.cover }}" style="width: 100%">
</div>
{% endfor %}
+
+ {% if not books %}
+ <div class="alert alert-warning" role="alert">
+ Няма книги, които трябва да върнете!
+ </div>
+ {% endif %}
</div>
{% endblock %} | 6 | 0.428571 | 6 | 0 |
3a9bd2be5b16bdc0033e014f0eb30ad327a1c480 | flippy.js | flippy.js | $(function () {
$("#start-towtruck").click(TowTruck);
randomize();
});
function cell(row, col) {
return $("#cell-" + row + "-" + col);
}
function randomColor() {
return "#" + Math.floor(0x1000000 + Math.random() * 0xffffff).toString(16).substr(1);
}
function randomize() {
for (var row=1; row<6; row++) {
for (var col=1; col<6; col++) {
var c = cell(row, col);
c.css({"background-color": randomColor()});
}
}
}
$(document).on("click", "#flips td", function () {
var el = $(this);
var color = randomColor();
el.css({"background-color": color});
if (TowTruck.running) {
TowTruck.send({type: "flip-color", id: el.attr("id"), color: color});
}
});
TowTruck.hub.on("flip-color", function (msg) {
$("#" + msg.id).css({"background-color": msg.color});
});
| $(function () {
$("#start-towtruck").click(TowTruck);
randomize();
});
function cell(row, col) {
return $("#cell-" + row + "-" + col);
}
function randomColor() {
return "#" + Math.floor(0x1000000 + Math.random() * 0xffffff).toString(16).substr(1);
}
function randomize() {
for (var row=1; row<6; row++) {
for (var col=1; col<6; col++) {
var c = cell(row, col);
c.css({"background-color": randomColor()});
}
}
}
$(document).on("click", "#flips td", function () {
var el = $(this);
var color = randomColor();
el.css({"background-color": color});
if (TowTruck.running) {
TowTruck.send({type: "flip-color", id: el.attr("id"), color: color});
}
});
var TowTruckConfig_hub_on = {
"flip-color": function (msg) {
$("#" + msg.id).css({"background-color": msg.color});
},
"towtruck.hello": function (msg) {
var colors = [];
$("td").each(function () {
var el = $(this);
colors.push({id: el.attr("id"), color: el.css("background-color")});
});
TowTruck.send({type: "init", colors: colors});
},
"init": function (msg) {
msg.colors.forEach(function (c) {
$("#" + c.id).css({"background-color": c.color});
});
}
};
| Initialize colors, and fix message registration | Initialize colors, and fix message registration
| JavaScript | mpl-2.0 | ianb/flippy | javascript | ## Code Before:
$(function () {
$("#start-towtruck").click(TowTruck);
randomize();
});
function cell(row, col) {
return $("#cell-" + row + "-" + col);
}
function randomColor() {
return "#" + Math.floor(0x1000000 + Math.random() * 0xffffff).toString(16).substr(1);
}
function randomize() {
for (var row=1; row<6; row++) {
for (var col=1; col<6; col++) {
var c = cell(row, col);
c.css({"background-color": randomColor()});
}
}
}
$(document).on("click", "#flips td", function () {
var el = $(this);
var color = randomColor();
el.css({"background-color": color});
if (TowTruck.running) {
TowTruck.send({type: "flip-color", id: el.attr("id"), color: color});
}
});
TowTruck.hub.on("flip-color", function (msg) {
$("#" + msg.id).css({"background-color": msg.color});
});
## Instruction:
Initialize colors, and fix message registration
## Code After:
$(function () {
$("#start-towtruck").click(TowTruck);
randomize();
});
function cell(row, col) {
return $("#cell-" + row + "-" + col);
}
function randomColor() {
return "#" + Math.floor(0x1000000 + Math.random() * 0xffffff).toString(16).substr(1);
}
function randomize() {
for (var row=1; row<6; row++) {
for (var col=1; col<6; col++) {
var c = cell(row, col);
c.css({"background-color": randomColor()});
}
}
}
$(document).on("click", "#flips td", function () {
var el = $(this);
var color = randomColor();
el.css({"background-color": color});
if (TowTruck.running) {
TowTruck.send({type: "flip-color", id: el.attr("id"), color: color});
}
});
var TowTruckConfig_hub_on = {
"flip-color": function (msg) {
$("#" + msg.id).css({"background-color": msg.color});
},
"towtruck.hello": function (msg) {
var colors = [];
$("td").each(function () {
var el = $(this);
colors.push({id: el.attr("id"), color: el.css("background-color")});
});
TowTruck.send({type: "init", colors: colors});
},
"init": function (msg) {
msg.colors.forEach(function (c) {
$("#" + c.id).css({"background-color": c.color});
});
}
};
| $(function () {
$("#start-towtruck").click(TowTruck);
randomize();
});
function cell(row, col) {
return $("#cell-" + row + "-" + col);
}
function randomColor() {
return "#" + Math.floor(0x1000000 + Math.random() * 0xffffff).toString(16).substr(1);
}
function randomize() {
for (var row=1; row<6; row++) {
for (var col=1; col<6; col++) {
var c = cell(row, col);
c.css({"background-color": randomColor()});
}
}
}
$(document).on("click", "#flips td", function () {
var el = $(this);
var color = randomColor();
el.css({"background-color": color});
if (TowTruck.running) {
TowTruck.send({type: "flip-color", id: el.attr("id"), color: color});
}
});
- TowTruck.hub.on("flip-color", function (msg) {
+ var TowTruckConfig_hub_on = {
+ "flip-color": function (msg) {
- $("#" + msg.id).css({"background-color": msg.color});
+ $("#" + msg.id).css({"background-color": msg.color});
? ++
+ },
+ "towtruck.hello": function (msg) {
+ var colors = [];
+ $("td").each(function () {
+ var el = $(this);
+ colors.push({id: el.attr("id"), color: el.css("background-color")});
+ });
+ TowTruck.send({type: "init", colors: colors});
+ },
+ "init": function (msg) {
+ msg.colors.forEach(function (c) {
+ $("#" + c.id).css({"background-color": c.color});
+ });
+ }
- });
? -
+ }; | 21 | 0.617647 | 18 | 3 |
517af4d7985e10eaa0ff731859bff6bccfba6c95 | app/redux/store/index.js | app/redux/store/index.js | /**
* @providesModule ZeroProj.Redux.Store
*/
/* eslint-disable no-underscore-dangle */
import { applyMiddleware, createStore } from 'redux';
import reducers from '../reducers';
// export default createStore(
// reducers,
// undefined,
// applyMiddleware(),
// );
export default createStore(
reducers,
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
);
/* eslint-enable no-underscore-dangle */
| /**
* @providesModule ZeroProj.Redux.Store
*/
/* eslint-disable no-underscore-dangle */
import { applyMiddleware, createStore, compose } from 'redux';
import reducers from '../reducers';
const composeEnhancer = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
export default createStore(
reducers,
composeEnhancer(applyMiddleware(
// Redux middleware
))
);
/* eslint-enable no-underscore-dangle */
| Configure Redux store to work with redux-devtools-extensions & react-native-debugger | Configure Redux store to work with redux-devtools-extensions & react-native-debugger
| JavaScript | mit | ethan605/react-native-zero,ethan605/react-native-zero,ethan605/react-native-zero | javascript | ## Code Before:
/**
* @providesModule ZeroProj.Redux.Store
*/
/* eslint-disable no-underscore-dangle */
import { applyMiddleware, createStore } from 'redux';
import reducers from '../reducers';
// export default createStore(
// reducers,
// undefined,
// applyMiddleware(),
// );
export default createStore(
reducers,
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
);
/* eslint-enable no-underscore-dangle */
## Instruction:
Configure Redux store to work with redux-devtools-extensions & react-native-debugger
## Code After:
/**
* @providesModule ZeroProj.Redux.Store
*/
/* eslint-disable no-underscore-dangle */
import { applyMiddleware, createStore, compose } from 'redux';
import reducers from '../reducers';
const composeEnhancer = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
export default createStore(
reducers,
composeEnhancer(applyMiddleware(
// Redux middleware
))
);
/* eslint-enable no-underscore-dangle */
| /**
* @providesModule ZeroProj.Redux.Store
*/
/* eslint-disable no-underscore-dangle */
- import { applyMiddleware, createStore } from 'redux';
+ import { applyMiddleware, createStore, compose } from 'redux';
? +++++++++
import reducers from '../reducers';
+ const composeEnhancer = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
- // export default createStore(
- // reducers,
- // undefined,
- // applyMiddleware(),
- // );
export default createStore(
reducers,
- window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
+ composeEnhancer(applyMiddleware(
+ // Redux middleware
+ ))
);
/* eslint-enable no-underscore-dangle */ | 12 | 0.571429 | 5 | 7 |
adb2ec5340e7b3d28c322675b652c6665bd01dd1 | lib/tasks/datagrid_tasks.rake | lib/tasks/datagrid_tasks.rake | namespace :datagrid do
def copy_template(path)
gem_app = File.expand_path("../../../app", __FILE__)
rails_app = (Rails.root + "app").to_s
puts "* copy (#{path})"
sh "mkdir -p #{rails_app}/#{File.dirname path}"
cp "#{gem_app}/#{path}", "#{rails_app}/#{path}"
end
desc "Copy table partials into rails application"
task :copy_partials do
copy_template "views/datagrid/_table.html.erb"
copy_template "views/datagrid/_head.html.erb"
copy_template "views/datagrid/_row.html.erb"
end
end
| namespace :datagrid do
desc "Copy table partials into rails application"
task :copy_partials do
def copy_template(path)
gem_app = File.expand_path("../../../app", __FILE__)
rails_app = (Rails.root + "app").to_s
puts "* copy (#{path})"
sh "mkdir -p #{rails_app}/#{File.dirname path}"
cp "#{gem_app}/#{path}", "#{rails_app}/#{path}"
end
copy_template "views/datagrid/_table.html.erb"
copy_template "views/datagrid/_head.html.erb"
copy_template "views/datagrid/_row.html.erb"
end
end
| Refactor rake task a little | Refactor rake task a little
| Ruby | mit | sadaf2605/datagrid,reenhanced/datagrid,11factory/datagrid,jeanlinux/datagrid,reenhanced/datagrid,sadaf2605/datagrid,artofhuman/datagrid,jeanlinux/datagrid,artofhuman/datagrid,bogdan/datagrid,bogdan/datagrid | ruby | ## Code Before:
namespace :datagrid do
def copy_template(path)
gem_app = File.expand_path("../../../app", __FILE__)
rails_app = (Rails.root + "app").to_s
puts "* copy (#{path})"
sh "mkdir -p #{rails_app}/#{File.dirname path}"
cp "#{gem_app}/#{path}", "#{rails_app}/#{path}"
end
desc "Copy table partials into rails application"
task :copy_partials do
copy_template "views/datagrid/_table.html.erb"
copy_template "views/datagrid/_head.html.erb"
copy_template "views/datagrid/_row.html.erb"
end
end
## Instruction:
Refactor rake task a little
## Code After:
namespace :datagrid do
desc "Copy table partials into rails application"
task :copy_partials do
def copy_template(path)
gem_app = File.expand_path("../../../app", __FILE__)
rails_app = (Rails.root + "app").to_s
puts "* copy (#{path})"
sh "mkdir -p #{rails_app}/#{File.dirname path}"
cp "#{gem_app}/#{path}", "#{rails_app}/#{path}"
end
copy_template "views/datagrid/_table.html.erb"
copy_template "views/datagrid/_head.html.erb"
copy_template "views/datagrid/_row.html.erb"
end
end
| namespace :datagrid do
- def copy_template(path)
- gem_app = File.expand_path("../../../app", __FILE__)
- rails_app = (Rails.root + "app").to_s
- puts "* copy (#{path})"
- sh "mkdir -p #{rails_app}/#{File.dirname path}"
- cp "#{gem_app}/#{path}", "#{rails_app}/#{path}"
- end
desc "Copy table partials into rails application"
task :copy_partials do
+ def copy_template(path)
+ gem_app = File.expand_path("../../../app", __FILE__)
+ rails_app = (Rails.root + "app").to_s
+ puts "* copy (#{path})"
+ sh "mkdir -p #{rails_app}/#{File.dirname path}"
+ cp "#{gem_app}/#{path}", "#{rails_app}/#{path}"
+ end
copy_template "views/datagrid/_table.html.erb"
copy_template "views/datagrid/_head.html.erb"
copy_template "views/datagrid/_row.html.erb"
end
end | 14 | 0.777778 | 7 | 7 |
a11a4597a35eeefcd665af25f61ce6d4b894191a | .travis.yml | .travis.yml | language: python
python: 3.5.1
env:
global:
- TRAVIS_NODE_VERSION=5.5.0
dist: trusty
sudo: false
addons:
postgresql: "9.4"
services:
- postgresql
cache:
directories:
- ~/.cache/pip
- node_modules/
install:
- 'rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION'
- pip install -U pip setuptools wheel codecov
- pip install -r requirements/docs.txt -r requirements/lint.txt -r requirements/main.txt -r requirements/tests.txt
- npm install
script:
- node -v
- npm -v
- gulp dist
- bin/tests --dbfixtures-config tests/dbfixtures.travis.conf
matrix:
include:
- script: make lint BINDIR="$(dirname $(which python))"
- script: make docs BINDIR="$(dirname $(which python))"
after_success: codecov
notifications:
irc:
channels:
- "irc.freenode.org#pypa-dev"
use_notice: true
skip_join: true
| language: python
python: 3.5.1
env:
global:
- TRAVIS_NODE_VERSION=5.5.0
matrix:
- SUITE=Tests
dist: trusty
sudo: false
addons:
postgresql: "9.4"
services:
- postgresql
cache:
directories:
- ~/.cache/pip
- node_modules/
install:
- 'rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION'
- pip install -U pip setuptools wheel codecov
- pip install -r requirements/docs.txt -r requirements/lint.txt -r requirements/main.txt -r requirements/tests.txt
- npm install
script:
- node -v
- npm -v
- gulp dist
- bin/tests --dbfixtures-config tests/dbfixtures.travis.conf
matrix:
include:
- script: make lint BINDIR="$(dirname $(which python))"
env:
- SUITE=Lint
- script: make docs BINDIR="$(dirname $(which python))"
env:
- SUITE=Documentation
after_success: codecov
notifications:
irc:
channels:
- "irc.freenode.org#pypa-dev"
use_notice: true
skip_join: true
| Use environment variables to name the Travis jobs | Use environment variables to name the Travis jobs
| YAML | apache-2.0 | pypa/warehouse,karan/warehouse,pypa/warehouse,dstufft/warehouse,dstufft/warehouse,dstufft/warehouse,alex/warehouse,wlonk/warehouse,wlonk/warehouse,alex/warehouse,alex/warehouse,wlonk/warehouse,karan/warehouse,alex/warehouse,pypa/warehouse,karan/warehouse,dstufft/warehouse,alex/warehouse,pypa/warehouse,karan/warehouse,karan/warehouse | yaml | ## Code Before:
language: python
python: 3.5.1
env:
global:
- TRAVIS_NODE_VERSION=5.5.0
dist: trusty
sudo: false
addons:
postgresql: "9.4"
services:
- postgresql
cache:
directories:
- ~/.cache/pip
- node_modules/
install:
- 'rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION'
- pip install -U pip setuptools wheel codecov
- pip install -r requirements/docs.txt -r requirements/lint.txt -r requirements/main.txt -r requirements/tests.txt
- npm install
script:
- node -v
- npm -v
- gulp dist
- bin/tests --dbfixtures-config tests/dbfixtures.travis.conf
matrix:
include:
- script: make lint BINDIR="$(dirname $(which python))"
- script: make docs BINDIR="$(dirname $(which python))"
after_success: codecov
notifications:
irc:
channels:
- "irc.freenode.org#pypa-dev"
use_notice: true
skip_join: true
## Instruction:
Use environment variables to name the Travis jobs
## Code After:
language: python
python: 3.5.1
env:
global:
- TRAVIS_NODE_VERSION=5.5.0
matrix:
- SUITE=Tests
dist: trusty
sudo: false
addons:
postgresql: "9.4"
services:
- postgresql
cache:
directories:
- ~/.cache/pip
- node_modules/
install:
- 'rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION'
- pip install -U pip setuptools wheel codecov
- pip install -r requirements/docs.txt -r requirements/lint.txt -r requirements/main.txt -r requirements/tests.txt
- npm install
script:
- node -v
- npm -v
- gulp dist
- bin/tests --dbfixtures-config tests/dbfixtures.travis.conf
matrix:
include:
- script: make lint BINDIR="$(dirname $(which python))"
env:
- SUITE=Lint
- script: make docs BINDIR="$(dirname $(which python))"
env:
- SUITE=Documentation
after_success: codecov
notifications:
irc:
channels:
- "irc.freenode.org#pypa-dev"
use_notice: true
skip_join: true
| language: python
python: 3.5.1
env:
global:
- TRAVIS_NODE_VERSION=5.5.0
+ matrix:
+ - SUITE=Tests
dist: trusty
sudo: false
addons:
postgresql: "9.4"
services:
- postgresql
cache:
directories:
- ~/.cache/pip
- node_modules/
install:
- 'rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION'
- pip install -U pip setuptools wheel codecov
- pip install -r requirements/docs.txt -r requirements/lint.txt -r requirements/main.txt -r requirements/tests.txt
- npm install
script:
- node -v
- npm -v
- gulp dist
- bin/tests --dbfixtures-config tests/dbfixtures.travis.conf
matrix:
include:
- script: make lint BINDIR="$(dirname $(which python))"
+ env:
+ - SUITE=Lint
- script: make docs BINDIR="$(dirname $(which python))"
+ env:
+ - SUITE=Documentation
after_success: codecov
notifications:
irc:
channels:
- "irc.freenode.org#pypa-dev"
use_notice: true
skip_join: true | 6 | 0.130435 | 6 | 0 |
0241e253c68ca6862a3da26d29a649f65c27ae36 | demos/chatroom/experiment.py | demos/chatroom/experiment.py | """Coordination chatroom game."""
import dallinger as dlgr
from dallinger.config import get_config
try:
unicode = unicode
except NameError: # Python 3
unicode = str
config = get_config()
def extra_settings():
config.register('network', unicode)
config.register('n', int)
class CoordinationChatroom(dlgr.experiments.Experiment):
"""Define the structure of the experiment."""
def __init__(self, session):
"""Initialize the experiment."""
super(CoordinationChatroom, self).__init__(session)
self.experiment_repeats = 1
self.num_participants = config.get('n')
self.initial_recruitment_size = self.num_participants
self.quorum = self.num_participants
self.config = config
if not self.config.ready:
self.config.load_config()
self.setup()
def create_network(self):
"""Create a new network by reading the configuration file."""
class_ = getattr(
dlgr.networks,
self.config.get('network')
)
return class_(max_size=self.num_participants)
def info_post_request(self, node, info):
"""Run when a request to create an info is complete."""
for agent in node.neighbors():
node.transmit(what=info, to_whom=agent)
def create_node(self, participant, network):
"""Create a node for a participant."""
return dlgr.nodes.Agent(network=network, participant=participant)
| """Coordination chatroom game."""
import dallinger as dlgr
from dallinger.compat import unicode
from dallinger.config import get_config
config = get_config()
def extra_settings():
config.register('network', unicode)
config.register('n', int)
class CoordinationChatroom(dlgr.experiments.Experiment):
"""Define the structure of the experiment."""
def __init__(self, session):
"""Initialize the experiment."""
super(CoordinationChatroom, self).__init__(session)
self.experiment_repeats = 1
self.num_participants = config.get('n')
self.initial_recruitment_size = self.num_participants
self.quorum = self.num_participants
self.config = config
if not self.config.ready:
self.config.load_config()
self.setup()
def create_network(self):
"""Create a new network by reading the configuration file."""
class_ = getattr(
dlgr.networks,
self.config.get('network')
)
return class_(max_size=self.num_participants)
def info_post_request(self, node, info):
"""Run when a request to create an info is complete."""
for agent in node.neighbors():
node.transmit(what=info, to_whom=agent)
def create_node(self, participant, network):
"""Create a node for a participant."""
return dlgr.nodes.Agent(network=network, participant=participant)
| Use compat for unicode import | Use compat for unicode import
| Python | mit | Dallinger/Dallinger,jcpeterson/Dallinger,jcpeterson/Dallinger,jcpeterson/Dallinger,Dallinger/Dallinger,Dallinger/Dallinger,jcpeterson/Dallinger,Dallinger/Dallinger,Dallinger/Dallinger,jcpeterson/Dallinger | python | ## Code Before:
"""Coordination chatroom game."""
import dallinger as dlgr
from dallinger.config import get_config
try:
unicode = unicode
except NameError: # Python 3
unicode = str
config = get_config()
def extra_settings():
config.register('network', unicode)
config.register('n', int)
class CoordinationChatroom(dlgr.experiments.Experiment):
"""Define the structure of the experiment."""
def __init__(self, session):
"""Initialize the experiment."""
super(CoordinationChatroom, self).__init__(session)
self.experiment_repeats = 1
self.num_participants = config.get('n')
self.initial_recruitment_size = self.num_participants
self.quorum = self.num_participants
self.config = config
if not self.config.ready:
self.config.load_config()
self.setup()
def create_network(self):
"""Create a new network by reading the configuration file."""
class_ = getattr(
dlgr.networks,
self.config.get('network')
)
return class_(max_size=self.num_participants)
def info_post_request(self, node, info):
"""Run when a request to create an info is complete."""
for agent in node.neighbors():
node.transmit(what=info, to_whom=agent)
def create_node(self, participant, network):
"""Create a node for a participant."""
return dlgr.nodes.Agent(network=network, participant=participant)
## Instruction:
Use compat for unicode import
## Code After:
"""Coordination chatroom game."""
import dallinger as dlgr
from dallinger.compat import unicode
from dallinger.config import get_config
config = get_config()
def extra_settings():
config.register('network', unicode)
config.register('n', int)
class CoordinationChatroom(dlgr.experiments.Experiment):
"""Define the structure of the experiment."""
def __init__(self, session):
"""Initialize the experiment."""
super(CoordinationChatroom, self).__init__(session)
self.experiment_repeats = 1
self.num_participants = config.get('n')
self.initial_recruitment_size = self.num_participants
self.quorum = self.num_participants
self.config = config
if not self.config.ready:
self.config.load_config()
self.setup()
def create_network(self):
"""Create a new network by reading the configuration file."""
class_ = getattr(
dlgr.networks,
self.config.get('network')
)
return class_(max_size=self.num_participants)
def info_post_request(self, node, info):
"""Run when a request to create an info is complete."""
for agent in node.neighbors():
node.transmit(what=info, to_whom=agent)
def create_node(self, participant, network):
"""Create a node for a participant."""
return dlgr.nodes.Agent(network=network, participant=participant)
| """Coordination chatroom game."""
import dallinger as dlgr
+ from dallinger.compat import unicode
from dallinger.config import get_config
- try:
- unicode = unicode
- except NameError: # Python 3
- unicode = str
config = get_config()
def extra_settings():
config.register('network', unicode)
config.register('n', int)
class CoordinationChatroom(dlgr.experiments.Experiment):
"""Define the structure of the experiment."""
def __init__(self, session):
"""Initialize the experiment."""
super(CoordinationChatroom, self).__init__(session)
self.experiment_repeats = 1
self.num_participants = config.get('n')
self.initial_recruitment_size = self.num_participants
self.quorum = self.num_participants
self.config = config
if not self.config.ready:
self.config.load_config()
self.setup()
def create_network(self):
"""Create a new network by reading the configuration file."""
class_ = getattr(
dlgr.networks,
self.config.get('network')
)
return class_(max_size=self.num_participants)
def info_post_request(self, node, info):
"""Run when a request to create an info is complete."""
for agent in node.neighbors():
node.transmit(what=info, to_whom=agent)
def create_node(self, participant, network):
"""Create a node for a participant."""
return dlgr.nodes.Agent(network=network, participant=participant) | 5 | 0.104167 | 1 | 4 |
586c47dbe6d712573b749eaf189989118760662b | app/assets/javascripts/tags.js.coffee | app/assets/javascripts/tags.js.coffee | $ ->
$("div.tag-form li.cancel a").click ->
$("div.tags").show()
$("div.tag-form").hide()
return
$("a[rel='edit-tags']").click ->
$("div.tags").hide()
$("div.tag-form").show()
return
$("form.edit-tags").on "ajax:success", (event) ->
data = event.detail[0];
$("div.tags-panel").replaceWith(data.tagspanel)
$("div.tags").show()
$("div.tag-form").hide()
$("section.library.box").replaceWith(data.librarypanel) if data.librarypanel
return
$("div.tag-form").hide()
$('form.edit-tags>fieldset.inputs input,[id$="tags_string"]').tagsInput({
width: 'auto',
autocomplete_url: '/tags/autocomplete_tag_name',
removeWithBackspace: false,
})
$('input,[id$="string_tag"]').focusout( ->
$(@).trigger(type: 'keypress', which: 44, keyCode: 44) if ($(@).val() != '')
# add a comma (i.e. finish the tag) if the tag input is not empty. comma keyCode is 44
)
return
| $ ->
setupTags = ->
$("div.tag-form").hide()
$("div.tag-form li.cancel a").click ->
$("div.tags").show()
$("div.tag-form").hide()
return
$("a[rel='edit-tags']").click ->
$("div.tags").hide()
$("div.tag-form").show()
return
$("form.edit-tags").on "ajax:success", (event) ->
data = event.detail[0]
$("div.tags-panel").replaceWith(data.tagspanel)
setupTags()
return
$('form.edit-tags>fieldset.inputs input,[id$="tags_string"]').tagsInput({
width: 'auto',
autocomplete_url: '/tags/autocomplete_tag_name',
removeWithBackspace: false,
})
$('input,[id$="string_tag"]').focusout( ->
$(@).trigger(type: 'keypress', which: 44, keyCode: 44) if ($(@).val() != '')
# add a comma (i.e. finish the tag) if the tag input is not empty. comma keyCode is 44
)
setupTags()
| Fix updating tags multiple times | Fix updating tags multiple times
After replacing the HTML we need to re-add all the click handelers etc.
| CoffeeScript | mit | cyclestreets/cyclescape,cyclestreets/cyclescape,cyclestreets/cyclescape | coffeescript | ## Code Before:
$ ->
$("div.tag-form li.cancel a").click ->
$("div.tags").show()
$("div.tag-form").hide()
return
$("a[rel='edit-tags']").click ->
$("div.tags").hide()
$("div.tag-form").show()
return
$("form.edit-tags").on "ajax:success", (event) ->
data = event.detail[0];
$("div.tags-panel").replaceWith(data.tagspanel)
$("div.tags").show()
$("div.tag-form").hide()
$("section.library.box").replaceWith(data.librarypanel) if data.librarypanel
return
$("div.tag-form").hide()
$('form.edit-tags>fieldset.inputs input,[id$="tags_string"]').tagsInput({
width: 'auto',
autocomplete_url: '/tags/autocomplete_tag_name',
removeWithBackspace: false,
})
$('input,[id$="string_tag"]').focusout( ->
$(@).trigger(type: 'keypress', which: 44, keyCode: 44) if ($(@).val() != '')
# add a comma (i.e. finish the tag) if the tag input is not empty. comma keyCode is 44
)
return
## Instruction:
Fix updating tags multiple times
After replacing the HTML we need to re-add all the click handelers etc.
## Code After:
$ ->
setupTags = ->
$("div.tag-form").hide()
$("div.tag-form li.cancel a").click ->
$("div.tags").show()
$("div.tag-form").hide()
return
$("a[rel='edit-tags']").click ->
$("div.tags").hide()
$("div.tag-form").show()
return
$("form.edit-tags").on "ajax:success", (event) ->
data = event.detail[0]
$("div.tags-panel").replaceWith(data.tagspanel)
setupTags()
return
$('form.edit-tags>fieldset.inputs input,[id$="tags_string"]').tagsInput({
width: 'auto',
autocomplete_url: '/tags/autocomplete_tag_name',
removeWithBackspace: false,
})
$('input,[id$="string_tag"]').focusout( ->
$(@).trigger(type: 'keypress', which: 44, keyCode: 44) if ($(@).val() != '')
# add a comma (i.e. finish the tag) if the tag input is not empty. comma keyCode is 44
)
setupTags()
| $ ->
+ setupTags = ->
- $("div.tag-form li.cancel a").click ->
- $("div.tags").show()
$("div.tag-form").hide()
+ $("div.tag-form li.cancel a").click ->
+ $("div.tags").show()
+ $("div.tag-form").hide()
- return
+ return
? ++
- $("a[rel='edit-tags']").click ->
+ $("a[rel='edit-tags']").click ->
? ++
- $("div.tags").hide()
+ $("div.tags").hide()
? ++
- $("div.tag-form").show()
+ $("div.tag-form").show()
? ++
- return
+ return
? ++
- $("form.edit-tags").on "ajax:success", (event) ->
+ $("form.edit-tags").on "ajax:success", (event) ->
? ++
- data = event.detail[0];
? -
+ data = event.detail[0]
? ++
- $("div.tags-panel").replaceWith(data.tagspanel)
+ $("div.tags-panel").replaceWith(data.tagspanel)
? ++
+ setupTags()
- $("div.tags").show()
- $("div.tag-form").hide()
- $("section.library.box").replaceWith(data.librarypanel) if data.librarypanel
- return
+ return
? ++
- $("div.tag-form").hide()
- $('form.edit-tags>fieldset.inputs input,[id$="tags_string"]').tagsInput({
+ $('form.edit-tags>fieldset.inputs input,[id$="tags_string"]').tagsInput({
? ++
- width: 'auto',
+ width: 'auto',
? ++
- autocomplete_url: '/tags/autocomplete_tag_name',
+ autocomplete_url: '/tags/autocomplete_tag_name',
? ++
- removeWithBackspace: false,
+ removeWithBackspace: false,
? ++
- })
+ })
? ++
- $('input,[id$="string_tag"]').focusout( ->
+ $('input,[id$="string_tag"]').focusout( ->
? ++
- $(@).trigger(type: 'keypress', which: 44, keyCode: 44) if ($(@).val() != '')
+ $(@).trigger(type: 'keypress', which: 44, keyCode: 44) if ($(@).val() != '')
? ++
- # add a comma (i.e. finish the tag) if the tag input is not empty. comma keyCode is 44
+ # add a comma (i.e. finish the tag) if the tag input is not empty. comma keyCode is 44
? ++
- )
+ )
? ++
+ setupTags()
-
- return | 50 | 1.5625 | 24 | 26 |
f83911b3a3d3cccbb6a9bef2d1995ac0e8bff357 | spring-content-s3/src/main/java/org/springframework/content/s3/S3ContentId.java | spring-content-s3/src/main/java/org/springframework/content/s3/S3ContentId.java | package org.springframework.content.s3;
import java.io.Serializable;
public final class S3ContentId implements Serializable {
private String bucket;
private String objectId;
public S3ContentId(String bucket, String objectId) {
this.bucket = bucket;
this.objectId = objectId;
}
public String getBucket() {
return bucket;
}
public void setBucket(String bucket) {
this.bucket = bucket;
}
public String getObjectId() {
return objectId;
}
public void setObjectId(String objectId) {
this.objectId = objectId;
}
@Override
public String toString() {
return "S3ContentId{" +
"bucket='" + bucket + '\'' +
", objectId='" + objectId + '\'' +
'}';
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
S3ContentId that = (S3ContentId) o;
if (bucket != null ? !bucket.equals(that.bucket) : that.bucket != null) return false;
return objectId != null ? objectId.equals(that.objectId) : that.objectId == null;
}
@Override
public int hashCode() {
int result = bucket != null ? bucket.hashCode() : 0;
result = 31 * result + (objectId != null ? objectId.hashCode() : 0);
return result;
}
}
| package org.springframework.content.s3;
import org.springframework.util.Assert;
import java.io.Serializable;
public final class S3ContentId implements Serializable {
private String bucket;
private String objectId;
public S3ContentId(String bucket, String objectId) {
Assert.hasText(bucket, "bucket must be specified");
Assert.hasText(objectId, "objectId must be specified");
this.bucket = bucket;
this.objectId = objectId;
}
public String getBucket() {
return bucket;
}
public void setBucket(String bucket) {
this.bucket = bucket;
}
public String getObjectId() {
return objectId;
}
public void setObjectId(String objectId) {
this.objectId = objectId;
}
@Override
public String toString() {
return "S3ContentId{" +
"bucket='" + bucket + '\'' +
", objectId='" + objectId + '\'' +
'}';
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
S3ContentId that = (S3ContentId) o;
if (bucket != null ? !bucket.equals(that.bucket) : that.bucket != null) return false;
return objectId != null ? objectId.equals(that.objectId) : that.objectId == null;
}
@Override
public int hashCode() {
int result = bucket != null ? bucket.hashCode() : 0;
result = 31 * result + (objectId != null ? objectId.hashCode() : 0);
return result;
}
}
| Add assertions to ensure only valid s3content ids can be created | Add assertions to ensure only valid s3content ids can be created
| Java | apache-2.0 | paulcwarren/spring-content,paulcwarren/spring-content,paulcwarren/spring-content | java | ## Code Before:
package org.springframework.content.s3;
import java.io.Serializable;
public final class S3ContentId implements Serializable {
private String bucket;
private String objectId;
public S3ContentId(String bucket, String objectId) {
this.bucket = bucket;
this.objectId = objectId;
}
public String getBucket() {
return bucket;
}
public void setBucket(String bucket) {
this.bucket = bucket;
}
public String getObjectId() {
return objectId;
}
public void setObjectId(String objectId) {
this.objectId = objectId;
}
@Override
public String toString() {
return "S3ContentId{" +
"bucket='" + bucket + '\'' +
", objectId='" + objectId + '\'' +
'}';
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
S3ContentId that = (S3ContentId) o;
if (bucket != null ? !bucket.equals(that.bucket) : that.bucket != null) return false;
return objectId != null ? objectId.equals(that.objectId) : that.objectId == null;
}
@Override
public int hashCode() {
int result = bucket != null ? bucket.hashCode() : 0;
result = 31 * result + (objectId != null ? objectId.hashCode() : 0);
return result;
}
}
## Instruction:
Add assertions to ensure only valid s3content ids can be created
## Code After:
package org.springframework.content.s3;
import org.springframework.util.Assert;
import java.io.Serializable;
public final class S3ContentId implements Serializable {
private String bucket;
private String objectId;
public S3ContentId(String bucket, String objectId) {
Assert.hasText(bucket, "bucket must be specified");
Assert.hasText(objectId, "objectId must be specified");
this.bucket = bucket;
this.objectId = objectId;
}
public String getBucket() {
return bucket;
}
public void setBucket(String bucket) {
this.bucket = bucket;
}
public String getObjectId() {
return objectId;
}
public void setObjectId(String objectId) {
this.objectId = objectId;
}
@Override
public String toString() {
return "S3ContentId{" +
"bucket='" + bucket + '\'' +
", objectId='" + objectId + '\'' +
'}';
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
S3ContentId that = (S3ContentId) o;
if (bucket != null ? !bucket.equals(that.bucket) : that.bucket != null) return false;
return objectId != null ? objectId.equals(that.objectId) : that.objectId == null;
}
@Override
public int hashCode() {
int result = bucket != null ? bucket.hashCode() : 0;
result = 31 * result + (objectId != null ? objectId.hashCode() : 0);
return result;
}
}
| package org.springframework.content.s3;
+
+ import org.springframework.util.Assert;
import java.io.Serializable;
public final class S3ContentId implements Serializable {
private String bucket;
private String objectId;
public S3ContentId(String bucket, String objectId) {
+ Assert.hasText(bucket, "bucket must be specified");
+ Assert.hasText(objectId, "objectId must be specified");
this.bucket = bucket;
this.objectId = objectId;
}
public String getBucket() {
return bucket;
}
public void setBucket(String bucket) {
this.bucket = bucket;
}
public String getObjectId() {
return objectId;
}
public void setObjectId(String objectId) {
this.objectId = objectId;
}
@Override
public String toString() {
return "S3ContentId{" +
"bucket='" + bucket + '\'' +
", objectId='" + objectId + '\'' +
'}';
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
S3ContentId that = (S3ContentId) o;
if (bucket != null ? !bucket.equals(that.bucket) : that.bucket != null) return false;
return objectId != null ? objectId.equals(that.objectId) : that.objectId == null;
}
@Override
public int hashCode() {
int result = bucket != null ? bucket.hashCode() : 0;
result = 31 * result + (objectId != null ? objectId.hashCode() : 0);
return result;
}
} | 4 | 0.072727 | 4 | 0 |
3d5c19d30b37a9dcaf3c0b548075410ad290b313 | EmailManager/ShipmentEmailManager.php | EmailManager/ShipmentEmailManager.php | <?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Sylius\Bundle\AdminBundle\EmailManager;
use Sylius\Bundle\CoreBundle\Mailer\Emails;
use Sylius\Component\Core\Model\OrderInterface;
use Sylius\Component\Core\Model\ShipmentInterface;
use Sylius\Component\Mailer\Sender\SenderInterface;
final class ShipmentEmailManager implements ShipmentEmailManagerInterface
{
/** @var SenderInterface */
private $emailSender;
public function __construct(SenderInterface $emailSender)
{
$this->emailSender = $emailSender;
}
/**
* {@inheritdoc}
*/
public function sendConfirmationEmail(ShipmentInterface $shipment): void
{
/** @var OrderInterface $order */
$order = $shipment->getOrder();
$this->emailSender->send(Emails::SHIPMENT_CONFIRMATION, [$order->getCustomer()->getEmail()], [
'shipment' => $shipment,
'order' => $order,
]);
}
}
| <?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Sylius\Bundle\AdminBundle\EmailManager;
use Sylius\Bundle\CoreBundle\Mailer\Emails;
use Sylius\Component\Core\Model\OrderInterface;
use Sylius\Component\Core\Model\ShipmentInterface;
use Sylius\Component\Mailer\Sender\SenderInterface;
final class ShipmentEmailManager implements ShipmentEmailManagerInterface
{
/** @var SenderInterface */
private $emailSender;
public function __construct(SenderInterface $emailSender)
{
$this->emailSender = $emailSender;
}
/**
* {@inheritdoc}
*/
public function sendConfirmationEmail(ShipmentInterface $shipment): void
{
/** @var OrderInterface $order */
$order = $shipment->getOrder();
$this->emailSender->send(Emails::SHIPMENT_CONFIRMATION, [$order->getCustomer()->getEmail()], [
'shipment' => $shipment,
'order' => $order,
'channel' => $order->getChannel(),
]);
}
}
| Add documentation for customising emails per channel | Add documentation for customising emails per channel
| PHP | mit | Sylius/SyliusAdminBundle,Sylius/SyliusAdminBundle | php | ## Code Before:
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Sylius\Bundle\AdminBundle\EmailManager;
use Sylius\Bundle\CoreBundle\Mailer\Emails;
use Sylius\Component\Core\Model\OrderInterface;
use Sylius\Component\Core\Model\ShipmentInterface;
use Sylius\Component\Mailer\Sender\SenderInterface;
final class ShipmentEmailManager implements ShipmentEmailManagerInterface
{
/** @var SenderInterface */
private $emailSender;
public function __construct(SenderInterface $emailSender)
{
$this->emailSender = $emailSender;
}
/**
* {@inheritdoc}
*/
public function sendConfirmationEmail(ShipmentInterface $shipment): void
{
/** @var OrderInterface $order */
$order = $shipment->getOrder();
$this->emailSender->send(Emails::SHIPMENT_CONFIRMATION, [$order->getCustomer()->getEmail()], [
'shipment' => $shipment,
'order' => $order,
]);
}
}
## Instruction:
Add documentation for customising emails per channel
## Code After:
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Sylius\Bundle\AdminBundle\EmailManager;
use Sylius\Bundle\CoreBundle\Mailer\Emails;
use Sylius\Component\Core\Model\OrderInterface;
use Sylius\Component\Core\Model\ShipmentInterface;
use Sylius\Component\Mailer\Sender\SenderInterface;
final class ShipmentEmailManager implements ShipmentEmailManagerInterface
{
/** @var SenderInterface */
private $emailSender;
public function __construct(SenderInterface $emailSender)
{
$this->emailSender = $emailSender;
}
/**
* {@inheritdoc}
*/
public function sendConfirmationEmail(ShipmentInterface $shipment): void
{
/** @var OrderInterface $order */
$order = $shipment->getOrder();
$this->emailSender->send(Emails::SHIPMENT_CONFIRMATION, [$order->getCustomer()->getEmail()], [
'shipment' => $shipment,
'order' => $order,
'channel' => $order->getChannel(),
]);
}
}
| <?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Sylius\Bundle\AdminBundle\EmailManager;
use Sylius\Bundle\CoreBundle\Mailer\Emails;
use Sylius\Component\Core\Model\OrderInterface;
use Sylius\Component\Core\Model\ShipmentInterface;
use Sylius\Component\Mailer\Sender\SenderInterface;
final class ShipmentEmailManager implements ShipmentEmailManagerInterface
{
/** @var SenderInterface */
private $emailSender;
public function __construct(SenderInterface $emailSender)
{
$this->emailSender = $emailSender;
}
/**
* {@inheritdoc}
*/
public function sendConfirmationEmail(ShipmentInterface $shipment): void
{
/** @var OrderInterface $order */
$order = $shipment->getOrder();
$this->emailSender->send(Emails::SHIPMENT_CONFIRMATION, [$order->getCustomer()->getEmail()], [
'shipment' => $shipment,
'order' => $order,
+ 'channel' => $order->getChannel(),
]);
}
} | 1 | 0.022727 | 1 | 0 |
133ce8b7b7604d805b3fdd6582399355c2e26c22 | android/app/src/main/java/it/axant/axemas/AXMSectionController.java | android/app/src/main/java/it/axant/axemas/AXMSectionController.java | package it.axant.axemas;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.ViewGroup;
import java.lang.ref.WeakReference;
public class AXMSectionController {
private WeakReference<SectionFragment> section;
public AXMSectionController(SectionFragment section) {
this.section = new WeakReference<SectionFragment>(section);
}
protected SectionFragment getSection() {
return this.section.get();
}
public void sectionDidLoad() {
// web page finished loading
}
public void sectionWillLoad() {
// web page has not yet started to load
}
public void sectionOnViewCreate(ViewGroup view) {
// axemas view/fragment got created
}
public boolean isInsideWebView(MotionEvent ev) {
return true;
}
/*
The following methods are specific to Android as they follow the android excluside lifecycle.
*/
public void sectionFragmentWillPause() { }
public void sectionFragmentWillResume() { }
public void sectionFragmentOnSaveInstanceState(Bundle outState) { }
public void sectionFragmentOnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { }
public void sectionFragmentOnActivityResult(int requestCode, int resultCode, Intent data) { }
public void actionbarRightButtonAction() {}
}
| package it.axant.axemas;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.ViewGroup;
import java.lang.ref.WeakReference;
public class AXMSectionController {
private WeakReference<SectionFragment> section;
protected AXMSectionController() {
throw new UnsupportedOperationException("Section Controllers should never be created without a section");
}
public AXMSectionController(SectionFragment section) {
this.section = new WeakReference<SectionFragment>(section);
}
protected SectionFragment getSection() {
return this.section.get();
}
public void sectionDidLoad() {
// web page finished loading
}
public void sectionWillLoad() {
// web page has not yet started to load
}
public void sectionOnViewCreate(ViewGroup view) {
// axemas view/fragment got created
}
public boolean isInsideWebView(MotionEvent ev) {
return true;
}
/*
The following methods are specific to Android as they follow the android excluside lifecycle.
*/
public void sectionFragmentWillPause() { }
public void sectionFragmentWillResume() { }
public void sectionFragmentOnSaveInstanceState(Bundle outState) { }
public void sectionFragmentOnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { }
public void sectionFragmentOnActivityResult(int requestCode, int resultCode, Intent data) { }
public void actionbarRightButtonAction() {}
}
| Add unusable default constructor to section controllers, for convenience when subclassing | Add unusable default constructor to section controllers, for convenience when subclassing
| Java | mit | AXEMAS/framework,AXEMAS/framework,AXEMAS/framework,AXEMAS/framework,AXEMAS/framework,AXEMAS/framework | java | ## Code Before:
package it.axant.axemas;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.ViewGroup;
import java.lang.ref.WeakReference;
public class AXMSectionController {
private WeakReference<SectionFragment> section;
public AXMSectionController(SectionFragment section) {
this.section = new WeakReference<SectionFragment>(section);
}
protected SectionFragment getSection() {
return this.section.get();
}
public void sectionDidLoad() {
// web page finished loading
}
public void sectionWillLoad() {
// web page has not yet started to load
}
public void sectionOnViewCreate(ViewGroup view) {
// axemas view/fragment got created
}
public boolean isInsideWebView(MotionEvent ev) {
return true;
}
/*
The following methods are specific to Android as they follow the android excluside lifecycle.
*/
public void sectionFragmentWillPause() { }
public void sectionFragmentWillResume() { }
public void sectionFragmentOnSaveInstanceState(Bundle outState) { }
public void sectionFragmentOnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { }
public void sectionFragmentOnActivityResult(int requestCode, int resultCode, Intent data) { }
public void actionbarRightButtonAction() {}
}
## Instruction:
Add unusable default constructor to section controllers, for convenience when subclassing
## Code After:
package it.axant.axemas;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.ViewGroup;
import java.lang.ref.WeakReference;
public class AXMSectionController {
private WeakReference<SectionFragment> section;
protected AXMSectionController() {
throw new UnsupportedOperationException("Section Controllers should never be created without a section");
}
public AXMSectionController(SectionFragment section) {
this.section = new WeakReference<SectionFragment>(section);
}
protected SectionFragment getSection() {
return this.section.get();
}
public void sectionDidLoad() {
// web page finished loading
}
public void sectionWillLoad() {
// web page has not yet started to load
}
public void sectionOnViewCreate(ViewGroup view) {
// axemas view/fragment got created
}
public boolean isInsideWebView(MotionEvent ev) {
return true;
}
/*
The following methods are specific to Android as they follow the android excluside lifecycle.
*/
public void sectionFragmentWillPause() { }
public void sectionFragmentWillResume() { }
public void sectionFragmentOnSaveInstanceState(Bundle outState) { }
public void sectionFragmentOnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { }
public void sectionFragmentOnActivityResult(int requestCode, int resultCode, Intent data) { }
public void actionbarRightButtonAction() {}
}
| package it.axant.axemas;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.ViewGroup;
import java.lang.ref.WeakReference;
public class AXMSectionController {
private WeakReference<SectionFragment> section;
+
+ protected AXMSectionController() {
+ throw new UnsupportedOperationException("Section Controllers should never be created without a section");
+ }
public AXMSectionController(SectionFragment section) {
this.section = new WeakReference<SectionFragment>(section);
}
protected SectionFragment getSection() {
return this.section.get();
}
public void sectionDidLoad() {
// web page finished loading
}
public void sectionWillLoad() {
// web page has not yet started to load
}
public void sectionOnViewCreate(ViewGroup view) {
// axemas view/fragment got created
}
public boolean isInsideWebView(MotionEvent ev) {
return true;
}
/*
The following methods are specific to Android as they follow the android excluside lifecycle.
*/
public void sectionFragmentWillPause() { }
public void sectionFragmentWillResume() { }
public void sectionFragmentOnSaveInstanceState(Bundle outState) { }
public void sectionFragmentOnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { }
public void sectionFragmentOnActivityResult(int requestCode, int resultCode, Intent data) { }
public void actionbarRightButtonAction() {}
} | 4 | 0.085106 | 4 | 0 |
cf4270fb79b3b610aba4e6e6a4c6a7eca5798c22 | App/Darts301/Darts301/WelcomeViewController.swift | App/Darts301/Darts301/WelcomeViewController.swift | //
// WelcomeViewController.swift
// Darts301
//
// Created by Greg Haines on 3/4/17.
// Copyright © 2017 Aly & Friends. All rights reserved.
//
import UIKit
class WelcomeViewController : UIViewController {
@IBOutlet weak var rulesButton: UIButton!
@IBOutlet weak var startButton: UIButton!
override func viewDidLoad() {
super.viewDidLoad()
startButton.layer.cornerRadius = 8.0
rulesButton.layer.cornerRadius = 8.0
rulesButton.layer.borderColor = UIColor.white.cgColor
rulesButton.layer.borderWidth = 2.0
Utils.addShadow(to: startButton)
let gradientLayer = CAGradientLayer()
gradientLayer.frame = view.bounds
gradientLayer.colors = [
Colors.player1Color.cgColor,
UIColor(red:0.498, green:0.710, blue:0.702, alpha: 1).cgColor,
Colors.player2Color.cgColor
]
view.layer.insertSublayer(gradientLayer, at: 0)
}
override var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent
}
}
| //
// WelcomeViewController.swift
// Darts301
//
// Created by Greg Haines on 3/4/17.
// Copyright © 2017 Aly & Friends. All rights reserved.
//
import UIKit
class WelcomeViewController : UIViewController {
@IBOutlet weak var rulesButton: UIButton!
@IBOutlet weak var startButton: UIButton!
override func viewDidLoad() {
super.viewDidLoad()
startButton.layer.cornerRadius = 8.0
rulesButton.layer.cornerRadius = 8.0
rulesButton.layer.borderColor = UIColor.white.cgColor
rulesButton.layer.borderWidth = 2.0
Utils.addShadow(to: startButton)
let gradientLayer = CAGradientLayer()
gradientLayer.frame = view.bounds
gradientLayer.colors = [
Colors.player1Color.cgColor,
UIColor(red:0.451, green:0.686, blue:0.729, alpha: 1).cgColor,
UIColor(red:0.659, green:0.784, blue:0.608, alpha: 1).cgColor,
Colors.player2Color.cgColor
]
view.layer.insertSublayer(gradientLayer, at: 0)
}
override var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent
}
}
| Update welcome gradient to better match mocks | Update welcome gradient to better match mocks
| Swift | apache-2.0 | gresrun/Darts301,gresrun/Darts301 | swift | ## Code Before:
//
// WelcomeViewController.swift
// Darts301
//
// Created by Greg Haines on 3/4/17.
// Copyright © 2017 Aly & Friends. All rights reserved.
//
import UIKit
class WelcomeViewController : UIViewController {
@IBOutlet weak var rulesButton: UIButton!
@IBOutlet weak var startButton: UIButton!
override func viewDidLoad() {
super.viewDidLoad()
startButton.layer.cornerRadius = 8.0
rulesButton.layer.cornerRadius = 8.0
rulesButton.layer.borderColor = UIColor.white.cgColor
rulesButton.layer.borderWidth = 2.0
Utils.addShadow(to: startButton)
let gradientLayer = CAGradientLayer()
gradientLayer.frame = view.bounds
gradientLayer.colors = [
Colors.player1Color.cgColor,
UIColor(red:0.498, green:0.710, blue:0.702, alpha: 1).cgColor,
Colors.player2Color.cgColor
]
view.layer.insertSublayer(gradientLayer, at: 0)
}
override var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent
}
}
## Instruction:
Update welcome gradient to better match mocks
## Code After:
//
// WelcomeViewController.swift
// Darts301
//
// Created by Greg Haines on 3/4/17.
// Copyright © 2017 Aly & Friends. All rights reserved.
//
import UIKit
class WelcomeViewController : UIViewController {
@IBOutlet weak var rulesButton: UIButton!
@IBOutlet weak var startButton: UIButton!
override func viewDidLoad() {
super.viewDidLoad()
startButton.layer.cornerRadius = 8.0
rulesButton.layer.cornerRadius = 8.0
rulesButton.layer.borderColor = UIColor.white.cgColor
rulesButton.layer.borderWidth = 2.0
Utils.addShadow(to: startButton)
let gradientLayer = CAGradientLayer()
gradientLayer.frame = view.bounds
gradientLayer.colors = [
Colors.player1Color.cgColor,
UIColor(red:0.451, green:0.686, blue:0.729, alpha: 1).cgColor,
UIColor(red:0.659, green:0.784, blue:0.608, alpha: 1).cgColor,
Colors.player2Color.cgColor
]
view.layer.insertSublayer(gradientLayer, at: 0)
}
override var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent
}
}
| //
// WelcomeViewController.swift
// Darts301
//
// Created by Greg Haines on 3/4/17.
// Copyright © 2017 Aly & Friends. All rights reserved.
//
import UIKit
class WelcomeViewController : UIViewController {
@IBOutlet weak var rulesButton: UIButton!
@IBOutlet weak var startButton: UIButton!
override func viewDidLoad() {
super.viewDidLoad()
startButton.layer.cornerRadius = 8.0
rulesButton.layer.cornerRadius = 8.0
rulesButton.layer.borderColor = UIColor.white.cgColor
rulesButton.layer.borderWidth = 2.0
Utils.addShadow(to: startButton)
let gradientLayer = CAGradientLayer()
gradientLayer.frame = view.bounds
gradientLayer.colors = [
Colors.player1Color.cgColor,
- UIColor(red:0.498, green:0.710, blue:0.702, alpha: 1).cgColor,
? ^^ ^^^ -
+ UIColor(red:0.451, green:0.686, blue:0.729, alpha: 1).cgColor,
? ^^ ^^^ +
+ UIColor(red:0.659, green:0.784, blue:0.608, alpha: 1).cgColor,
Colors.player2Color.cgColor
]
view.layer.insertSublayer(gradientLayer, at: 0)
}
override var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent
}
} | 3 | 0.078947 | 2 | 1 |
ddf17a4fddafa71b95fad26d38577e32eee7f957 | app/views/component/detail/_phone.html.haml | app/views/component/detail/_phone.html.haml | -# The phone partial displays the phone icon, number and extension,
as well as the phone type and department.
e.g. [icon] (650) 403-4300 x 4385 voice
If the `show_phone_type_and_department` local variable is set to true
the partial will also include the phone type and phone department.
- if phone.present?
%section.phone.icon-text-block{ itemscope: '', itemtype: 'http://schema.org/ContactPoint' }
%i{ class: phone_icon_for(phone.number_type) }
%span.annotated-text-block
%span{ itemprop: phone_microdata_for(phone.number_type) }
= format_phone(phone.number)
- if phone.extension.present?
%span.phone-extension
%span.delimiter
= SETTINGS[:phone_extension_delimiter]
%span.extension
= phone.extension
- if show_phone_type_and_department == true
= render 'component/detail/phone_type_and_department', phone: phone
| -# The phone partial displays the phone icon, number and extension,
as well as the phone type and department.
e.g. [icon] (650) 403-4300 x 4385 voice
If the `show_phone_type_and_department` local variable is set to true
the partial will also include the phone type and phone department.
- if phone.present?
%section.phone.icon-text-block{ itemscope: '', itemtype: 'http://schema.org/ContactPoint' }
%i{ class: phone_icon_for(phone.number_type) }
%span.annotated-text-block
%span{ itemprop: phone_microdata_for(phone.number_type) }
= format_phone(phone.number)
- if phone.extension.present?
%span.phone-extension
%span.delimiter
= SETTINGS[:phone_extension_delimiter]
%span.extension
= phone.extension
- if show_phone_type_and_department == true
= render 'component/detail/phone_type_and_department', phone: phone
- if phone.phone_hours.present?
%span.schedules.regular-schedules.icon-text-block
%i.fa.fa-clock-o
%span
= phone.phone_hours
| Add phone_hours field to service entry | Add phone_hours field to service entry
| Haml | bsd-3-clause | cderenburger/win211-ohana-web-search,cderenburger/win211-ohana-web-search,cderenburger/win211-ohana-web-search,cderenburger/win211-ohana-web-search | haml | ## Code Before:
-# The phone partial displays the phone icon, number and extension,
as well as the phone type and department.
e.g. [icon] (650) 403-4300 x 4385 voice
If the `show_phone_type_and_department` local variable is set to true
the partial will also include the phone type and phone department.
- if phone.present?
%section.phone.icon-text-block{ itemscope: '', itemtype: 'http://schema.org/ContactPoint' }
%i{ class: phone_icon_for(phone.number_type) }
%span.annotated-text-block
%span{ itemprop: phone_microdata_for(phone.number_type) }
= format_phone(phone.number)
- if phone.extension.present?
%span.phone-extension
%span.delimiter
= SETTINGS[:phone_extension_delimiter]
%span.extension
= phone.extension
- if show_phone_type_and_department == true
= render 'component/detail/phone_type_and_department', phone: phone
## Instruction:
Add phone_hours field to service entry
## Code After:
-# The phone partial displays the phone icon, number and extension,
as well as the phone type and department.
e.g. [icon] (650) 403-4300 x 4385 voice
If the `show_phone_type_and_department` local variable is set to true
the partial will also include the phone type and phone department.
- if phone.present?
%section.phone.icon-text-block{ itemscope: '', itemtype: 'http://schema.org/ContactPoint' }
%i{ class: phone_icon_for(phone.number_type) }
%span.annotated-text-block
%span{ itemprop: phone_microdata_for(phone.number_type) }
= format_phone(phone.number)
- if phone.extension.present?
%span.phone-extension
%span.delimiter
= SETTINGS[:phone_extension_delimiter]
%span.extension
= phone.extension
- if show_phone_type_and_department == true
= render 'component/detail/phone_type_and_department', phone: phone
- if phone.phone_hours.present?
%span.schedules.regular-schedules.icon-text-block
%i.fa.fa-clock-o
%span
= phone.phone_hours
| -# The phone partial displays the phone icon, number and extension,
as well as the phone type and department.
e.g. [icon] (650) 403-4300 x 4385 voice
If the `show_phone_type_and_department` local variable is set to true
the partial will also include the phone type and phone department.
- if phone.present?
%section.phone.icon-text-block{ itemscope: '', itemtype: 'http://schema.org/ContactPoint' }
%i{ class: phone_icon_for(phone.number_type) }
%span.annotated-text-block
%span{ itemprop: phone_microdata_for(phone.number_type) }
= format_phone(phone.number)
- if phone.extension.present?
%span.phone-extension
%span.delimiter
= SETTINGS[:phone_extension_delimiter]
%span.extension
= phone.extension
- if show_phone_type_and_department == true
= render 'component/detail/phone_type_and_department', phone: phone
+ - if phone.phone_hours.present?
+ %span.schedules.regular-schedules.icon-text-block
+ %i.fa.fa-clock-o
+ %span
+ = phone.phone_hours | 5 | 0.25 | 5 | 0 |
3785f2913932ed37b4c19ea6a00c613ef3952eeb | packages/pi/pipes-interleave.yaml | packages/pi/pipes-interleave.yaml | homepage: http://github.com/bgamari/pipes-interleave
changelog-type: ''
hash: e7865811c94655ea6653d1c4556cace83425b3b7e7f8723d277db9d53b9ced91
test-bench-deps: {}
maintainer: bgamari.foss@gmail.com
synopsis: Interleave and merge streams of elements
changelog: ''
basic-deps:
heaps: ! '>=0.3 && <0.4'
base: ! '>=4.8 && <4.11'
containers: ! '>=0.5 && <0.6'
pipes: ! '>=4.0 && <4.4'
all-versions:
- '0.1'
- '0.2'
- '0.2.1'
- '0.2.2'
- '1.0.0'
- '1.1.0'
- '1.1.1'
- '1.1.2'
author: Ben Gamari
latest: '1.1.2'
description-type: haddock
description: Interleave and merge streams of elements.
license-name: BSD3
| homepage: http://github.com/bgamari/pipes-interleave
changelog-type: ''
hash: 8a526c6784dad7eb70d8873f13ba622724f986f074246d6e2db81a79bd9e59e6
test-bench-deps: {}
maintainer: bgamari.foss@gmail.com
synopsis: Interleave and merge streams of elements
changelog: ''
basic-deps:
heaps: ! '>=0.3 && <0.4'
base: ! '>=4.8 && <4.13'
containers: ! '>=0.5 && <0.7'
pipes: ! '>=4.0 && <4.4'
all-versions:
- '0.1'
- '0.2'
- '0.2.1'
- '0.2.2'
- '1.0.0'
- '1.1.0'
- '1.1.1'
- '1.1.2'
- '1.1.3'
author: Ben Gamari
latest: '1.1.3'
description-type: haddock
description: Interleave and merge streams of elements.
license-name: BSD3
| Update from Hackage at 2018-08-05T16:14:51Z | Update from Hackage at 2018-08-05T16:14:51Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: http://github.com/bgamari/pipes-interleave
changelog-type: ''
hash: e7865811c94655ea6653d1c4556cace83425b3b7e7f8723d277db9d53b9ced91
test-bench-deps: {}
maintainer: bgamari.foss@gmail.com
synopsis: Interleave and merge streams of elements
changelog: ''
basic-deps:
heaps: ! '>=0.3 && <0.4'
base: ! '>=4.8 && <4.11'
containers: ! '>=0.5 && <0.6'
pipes: ! '>=4.0 && <4.4'
all-versions:
- '0.1'
- '0.2'
- '0.2.1'
- '0.2.2'
- '1.0.0'
- '1.1.0'
- '1.1.1'
- '1.1.2'
author: Ben Gamari
latest: '1.1.2'
description-type: haddock
description: Interleave and merge streams of elements.
license-name: BSD3
## Instruction:
Update from Hackage at 2018-08-05T16:14:51Z
## Code After:
homepage: http://github.com/bgamari/pipes-interleave
changelog-type: ''
hash: 8a526c6784dad7eb70d8873f13ba622724f986f074246d6e2db81a79bd9e59e6
test-bench-deps: {}
maintainer: bgamari.foss@gmail.com
synopsis: Interleave and merge streams of elements
changelog: ''
basic-deps:
heaps: ! '>=0.3 && <0.4'
base: ! '>=4.8 && <4.13'
containers: ! '>=0.5 && <0.7'
pipes: ! '>=4.0 && <4.4'
all-versions:
- '0.1'
- '0.2'
- '0.2.1'
- '0.2.2'
- '1.0.0'
- '1.1.0'
- '1.1.1'
- '1.1.2'
- '1.1.3'
author: Ben Gamari
latest: '1.1.3'
description-type: haddock
description: Interleave and merge streams of elements.
license-name: BSD3
| homepage: http://github.com/bgamari/pipes-interleave
changelog-type: ''
- hash: e7865811c94655ea6653d1c4556cace83425b3b7e7f8723d277db9d53b9ced91
+ hash: 8a526c6784dad7eb70d8873f13ba622724f986f074246d6e2db81a79bd9e59e6
test-bench-deps: {}
maintainer: bgamari.foss@gmail.com
synopsis: Interleave and merge streams of elements
changelog: ''
basic-deps:
heaps: ! '>=0.3 && <0.4'
- base: ! '>=4.8 && <4.11'
? ^
+ base: ! '>=4.8 && <4.13'
? ^
- containers: ! '>=0.5 && <0.6'
? ^
+ containers: ! '>=0.5 && <0.7'
? ^
pipes: ! '>=4.0 && <4.4'
all-versions:
- '0.1'
- '0.2'
- '0.2.1'
- '0.2.2'
- '1.0.0'
- '1.1.0'
- '1.1.1'
- '1.1.2'
+ - '1.1.3'
author: Ben Gamari
- latest: '1.1.2'
? ^
+ latest: '1.1.3'
? ^
description-type: haddock
description: Interleave and merge streams of elements.
license-name: BSD3 | 9 | 0.346154 | 5 | 4 |
cd691f75bd60da21c01e1b45830fb90f936fbf73 | randomwallpaper@iflow.productions/metadata.json | randomwallpaper@iflow.productions/metadata.json | {
"shell-version": ["3.12.2", "3.14.1"],
"uuid": "randomwallpaper@iflow.productions",
"name": "Random Wallpaper",
"description": "Fetches random wallpaper from desktopper.co and sets it as desktop background"
} | {
"shell-version": [
"3.12.2",
"3.14.1",
"3.16.3",
"3.18.0",
"3.18.1",
"3.18.2"],
"uuid": "randomwallpaper@iflow.productions",
"name": "Random Wallpaper",
"description": "Fetches random wallpaper from desktopper.co and sets it as desktop background"
}
| Add support for 3.18.0, 3.18.1, 3.18.2 | Add support for 3.18.0, 3.18.1, 3.18.2
| JSON | mit | ifl0w/RandomWallpaperGnome3,ifl0w/RandomWallpaperGnome3 | json | ## Code Before:
{
"shell-version": ["3.12.2", "3.14.1"],
"uuid": "randomwallpaper@iflow.productions",
"name": "Random Wallpaper",
"description": "Fetches random wallpaper from desktopper.co and sets it as desktop background"
}
## Instruction:
Add support for 3.18.0, 3.18.1, 3.18.2
## Code After:
{
"shell-version": [
"3.12.2",
"3.14.1",
"3.16.3",
"3.18.0",
"3.18.1",
"3.18.2"],
"uuid": "randomwallpaper@iflow.productions",
"name": "Random Wallpaper",
"description": "Fetches random wallpaper from desktopper.co and sets it as desktop background"
}
| {
- "shell-version": ["3.12.2", "3.14.1"],
+ "shell-version": [
+ "3.12.2",
+ "3.14.1",
+ "3.16.3",
+ "3.18.0",
+ "3.18.1",
+ "3.18.2"],
"uuid": "randomwallpaper@iflow.productions",
"name": "Random Wallpaper",
"description": "Fetches random wallpaper from desktopper.co and sets it as desktop background"
} | 8 | 1.333333 | 7 | 1 |
e3c0fd3203fb13d9a43dc6cc6e45627e5c33234a | .github/workflows/update-plugin-list.yml | .github/workflows/update-plugin-list.yml | name: Update Plugin List
on:
schedule:
# Run daily at midnight.
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
createPullRequest:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install packaging requests tabulate[widechars]
- name: Update Plugin List
run: python scripts/update-plugin-list.py
- name: Create Pull Request
uses: peter-evans/create-pull-request@2455e1596942c2902952003bbb574afbbe2ab2e6
with:
commit-message: '[automated] Update plugin list'
author: 'pytest bot <pytestbot@users.noreply.github.com>'
branch: update-plugin-list/patch
delete-branch: true
branch-suffix: short-commit-hash
title: '[automated] Update plugin list'
body: '[automated] Update plugin list'
| name: Update Plugin List
on:
schedule:
# At 00:00 on Sunday.
# https://crontab.guru
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:
createPullRequest:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install packaging requests tabulate[widechars]
- name: Update Plugin List
run: python scripts/update-plugin-list.py
- name: Create Pull Request
uses: peter-evans/create-pull-request@2455e1596942c2902952003bbb574afbbe2ab2e6
with:
commit-message: '[automated] Update plugin list'
author: 'pytest bot <pytestbot@users.noreply.github.com>'
branch: update-plugin-list/patch
delete-branch: true
branch-suffix: short-commit-hash
title: '[automated] Update plugin list'
body: '[automated] Update plugin list'
| Update plugin-list every Sunday instead of everyday | Update plugin-list every Sunday instead of everyday
Every day seems a bit excessive lately, let's make it less frequent.
| YAML | mit | markshao/pytest,nicoddemus/pytest,nicoddemus/pytest,Akasurde/pytest,RonnyPfannschmidt/pytest,pytest-dev/pytest | yaml | ## Code Before:
name: Update Plugin List
on:
schedule:
# Run daily at midnight.
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
createPullRequest:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install packaging requests tabulate[widechars]
- name: Update Plugin List
run: python scripts/update-plugin-list.py
- name: Create Pull Request
uses: peter-evans/create-pull-request@2455e1596942c2902952003bbb574afbbe2ab2e6
with:
commit-message: '[automated] Update plugin list'
author: 'pytest bot <pytestbot@users.noreply.github.com>'
branch: update-plugin-list/patch
delete-branch: true
branch-suffix: short-commit-hash
title: '[automated] Update plugin list'
body: '[automated] Update plugin list'
## Instruction:
Update plugin-list every Sunday instead of everyday
Every day seems a bit excessive lately, let's make it less frequent.
## Code After:
name: Update Plugin List
on:
schedule:
# At 00:00 on Sunday.
# https://crontab.guru
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:
createPullRequest:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install packaging requests tabulate[widechars]
- name: Update Plugin List
run: python scripts/update-plugin-list.py
- name: Create Pull Request
uses: peter-evans/create-pull-request@2455e1596942c2902952003bbb574afbbe2ab2e6
with:
commit-message: '[automated] Update plugin list'
author: 'pytest bot <pytestbot@users.noreply.github.com>'
branch: update-plugin-list/patch
delete-branch: true
branch-suffix: short-commit-hash
title: '[automated] Update plugin list'
body: '[automated] Update plugin list'
| name: Update Plugin List
on:
schedule:
- # Run daily at midnight.
+ # At 00:00 on Sunday.
+ # https://crontab.guru
- - cron: '0 0 * * *'
? ^
+ - cron: '0 0 * * 0'
? ^
workflow_dispatch:
jobs:
createPullRequest:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install packaging requests tabulate[widechars]
- name: Update Plugin List
run: python scripts/update-plugin-list.py
- name: Create Pull Request
uses: peter-evans/create-pull-request@2455e1596942c2902952003bbb574afbbe2ab2e6
with:
commit-message: '[automated] Update plugin list'
author: 'pytest bot <pytestbot@users.noreply.github.com>'
branch: update-plugin-list/patch
delete-branch: true
branch-suffix: short-commit-hash
title: '[automated] Update plugin list'
body: '[automated] Update plugin list' | 5 | 0.147059 | 3 | 2 |
bf4527bd741ee84120b8da22bb7646d875325582 | .travis.yml | .travis.yml | language: perl
perl:
- "5.16"
- "5.14"
- "5.12"
env:
- MAXIMUS_CONFIG_LOCAL_SUFFIX=testing
before_install:
- cpanm -n Module::Install
- cpanm -n Catalyst::Devel
- sudo apt-get install libdb-dev
- yes | cpanm --verbose local::lib
| language: perl
perl:
- "5.16"
- "5.14"
- "5.12"
env:
- MAXIMUS_CONFIG_LOCAL_SUFFIX=testing
before_install:
- cpanm -n Module::Install
- cpanm -n Catalyst::Devel
- sudo apt-get install libdb-dev
- yes | cpanm --verbose local::lib
notifications:
irc:
channels:
- "irc.blitzed.org#maximus"
use_notice: true
| Use IRC notification for Travis-ci build result | Use IRC notification for Travis-ci build result
| YAML | mit | maximos/maximus-web,maximos/maximus-web,maximos/maximus-web | yaml | ## Code Before:
language: perl
perl:
- "5.16"
- "5.14"
- "5.12"
env:
- MAXIMUS_CONFIG_LOCAL_SUFFIX=testing
before_install:
- cpanm -n Module::Install
- cpanm -n Catalyst::Devel
- sudo apt-get install libdb-dev
- yes | cpanm --verbose local::lib
## Instruction:
Use IRC notification for Travis-ci build result
## Code After:
language: perl
perl:
- "5.16"
- "5.14"
- "5.12"
env:
- MAXIMUS_CONFIG_LOCAL_SUFFIX=testing
before_install:
- cpanm -n Module::Install
- cpanm -n Catalyst::Devel
- sudo apt-get install libdb-dev
- yes | cpanm --verbose local::lib
notifications:
irc:
channels:
- "irc.blitzed.org#maximus"
use_notice: true
| language: perl
perl:
- "5.16"
- "5.14"
- "5.12"
env:
- MAXIMUS_CONFIG_LOCAL_SUFFIX=testing
before_install:
- cpanm -n Module::Install
- cpanm -n Catalyst::Devel
- sudo apt-get install libdb-dev
- yes | cpanm --verbose local::lib
+ notifications:
+ irc:
+ channels:
+ - "irc.blitzed.org#maximus"
+ use_notice: true | 5 | 0.416667 | 5 | 0 |
06614c37dd83f59ed6c3a968821dc6fa429988ce | ooj/src/main/scala/ast/augmenters/AugmentedSimpleUseTree.scala | ooj/src/main/scala/ast/augmenters/AugmentedSimpleUseTree.scala | package ch.usi.inf.l3.sana.ooj.ast.augmenters
import ch.usi.inf.l3.sana
import sana.tiny.ast.SimpleUseTree
import sana.tiny.symbols.Symbol
trait AugmentedSimpleUseTree {
def tree: SimpleUseTree
def enclosing: Option[Symbol] =
tree.attributes.get('enclosing).map(_.asInstanceOf[Symbol])
def enclosing_=(enclosing: Symbol): Unit =
tree.attributes = tree.attributes + ('enclosing -> enclosing)
def shouldBeStatic: Boolean =
tree.attributes.get('shouldBeStatic)
.map(_.asInstanceOf[Boolean]).getOrElse(false)
def shouldBeStatic_=(shouldBeStatic: Boolean): Unit =
tree.attributes = tree.attributes + ('shouldBeStatic -> shouldBeStatic)
}
| package ch.usi.inf.l3.sana.ooj.ast.augmenters
import ch.usi.inf.l3.sana
import sana.tiny.ast.SimpleUseTree
import sana.tiny.symbols.Symbol
trait AugmentedSimpleUseTree {
def tree: SimpleUseTree
def enclosing: Option[Symbol] =
tree.attributes.get('enclosing).map(_.asInstanceOf[Symbol])
def enclosing_=(enclosing: Symbol): Unit =
tree.attributes = tree.attributes + ('enclosing -> enclosing)
def shouldBeStatic: Boolean =
tree.attributes.get('shouldBeStatic)
.map(_.asInstanceOf[Boolean]).getOrElse(false)
def shouldBeStatic_=(shouldBeStatic: Boolean): Unit =
tree.attributes = tree.attributes + ('shouldBeStatic -> shouldBeStatic)
def isQualified: Boolean =
tree.attributes.get('isQualified)
.map(_.asInstanceOf[Boolean]).getOrElse(false)
def isQualified_=(isQualified: Boolean): Unit =
tree.attributes = tree.attributes + ('isQualified -> isQualified)
}
| Add isQualified field for SimpleUseAugmenters | Add isQualified field for SimpleUseAugmenters
| Scala | bsd-3-clause | amanjpro/languages-a-la-carte,amanjpro/languages-a-la-carte | scala | ## Code Before:
package ch.usi.inf.l3.sana.ooj.ast.augmenters
import ch.usi.inf.l3.sana
import sana.tiny.ast.SimpleUseTree
import sana.tiny.symbols.Symbol
trait AugmentedSimpleUseTree {
def tree: SimpleUseTree
def enclosing: Option[Symbol] =
tree.attributes.get('enclosing).map(_.asInstanceOf[Symbol])
def enclosing_=(enclosing: Symbol): Unit =
tree.attributes = tree.attributes + ('enclosing -> enclosing)
def shouldBeStatic: Boolean =
tree.attributes.get('shouldBeStatic)
.map(_.asInstanceOf[Boolean]).getOrElse(false)
def shouldBeStatic_=(shouldBeStatic: Boolean): Unit =
tree.attributes = tree.attributes + ('shouldBeStatic -> shouldBeStatic)
}
## Instruction:
Add isQualified field for SimpleUseAugmenters
## Code After:
package ch.usi.inf.l3.sana.ooj.ast.augmenters
import ch.usi.inf.l3.sana
import sana.tiny.ast.SimpleUseTree
import sana.tiny.symbols.Symbol
trait AugmentedSimpleUseTree {
def tree: SimpleUseTree
def enclosing: Option[Symbol] =
tree.attributes.get('enclosing).map(_.asInstanceOf[Symbol])
def enclosing_=(enclosing: Symbol): Unit =
tree.attributes = tree.attributes + ('enclosing -> enclosing)
def shouldBeStatic: Boolean =
tree.attributes.get('shouldBeStatic)
.map(_.asInstanceOf[Boolean]).getOrElse(false)
def shouldBeStatic_=(shouldBeStatic: Boolean): Unit =
tree.attributes = tree.attributes + ('shouldBeStatic -> shouldBeStatic)
def isQualified: Boolean =
tree.attributes.get('isQualified)
.map(_.asInstanceOf[Boolean]).getOrElse(false)
def isQualified_=(isQualified: Boolean): Unit =
tree.attributes = tree.attributes + ('isQualified -> isQualified)
}
| package ch.usi.inf.l3.sana.ooj.ast.augmenters
import ch.usi.inf.l3.sana
import sana.tiny.ast.SimpleUseTree
import sana.tiny.symbols.Symbol
trait AugmentedSimpleUseTree {
def tree: SimpleUseTree
def enclosing: Option[Symbol] =
tree.attributes.get('enclosing).map(_.asInstanceOf[Symbol])
def enclosing_=(enclosing: Symbol): Unit =
tree.attributes = tree.attributes + ('enclosing -> enclosing)
def shouldBeStatic: Boolean =
tree.attributes.get('shouldBeStatic)
.map(_.asInstanceOf[Boolean]).getOrElse(false)
def shouldBeStatic_=(shouldBeStatic: Boolean): Unit =
tree.attributes = tree.attributes + ('shouldBeStatic -> shouldBeStatic)
+ def isQualified: Boolean =
+ tree.attributes.get('isQualified)
+ .map(_.asInstanceOf[Boolean]).getOrElse(false)
+
+ def isQualified_=(isQualified: Boolean): Unit =
+ tree.attributes = tree.attributes + ('isQualified -> isQualified)
}
| 6 | 0.206897 | 6 | 0 |
5af556570079b44a6c0200a1f137b54005068d5e | project.clj | project.clj | (defproject re-frame/lein-template "0.3.22-SNAPSHOT"
:description "Leiningen template for a Reagent web app that implements the re-frame pattern."
:url "https://github.com/Day8/re-frame-template"
:license {:name "MIT"}
:deploy-repositories [["releases" :clojars]
["snapshots" :clojars]]
:scm {:name "git"
:url "https://github.com/Day8/re-frame-template"}
:eval-in-leiningen true)
| (defproject re-frame/lein-template "0.3.22-SNAPSHOT"
:description "Leiningen template for a Reagent web app that implements the re-frame pattern."
:url "https://github.com/Day8/re-frame-template"
:license {:name "MIT"}
:deploy-repositories [["clojars" {:sign-releases false
:url "https://clojars.org/repo"
:username :env/CLOJARS_USERNAME
:password :env/CLOJARS_PASSWORD}]]
:release-tasks [["vcs" "assert-committed"]
["change" "version" "leiningen.release/bump-version" "release"]
["vcs" "commit"]
["vcs" "tag" "v" "--no-sign"]
["deploy" "clojars"]
["change" "version" "leiningen.release/bump-version"]
["vcs" "commit"]
["vcs" "push"]]
:scm {:name "git"
:url "https://github.com/Day8/re-frame-template"}
:eval-in-leiningen true)
| Change lein release and deploy | Change lein release and deploy
| Clojure | mit | Day8/re-frame-template,Day8/re-frame-template,Day8/re-frame-template | clojure | ## Code Before:
(defproject re-frame/lein-template "0.3.22-SNAPSHOT"
:description "Leiningen template for a Reagent web app that implements the re-frame pattern."
:url "https://github.com/Day8/re-frame-template"
:license {:name "MIT"}
:deploy-repositories [["releases" :clojars]
["snapshots" :clojars]]
:scm {:name "git"
:url "https://github.com/Day8/re-frame-template"}
:eval-in-leiningen true)
## Instruction:
Change lein release and deploy
## Code After:
(defproject re-frame/lein-template "0.3.22-SNAPSHOT"
:description "Leiningen template for a Reagent web app that implements the re-frame pattern."
:url "https://github.com/Day8/re-frame-template"
:license {:name "MIT"}
:deploy-repositories [["clojars" {:sign-releases false
:url "https://clojars.org/repo"
:username :env/CLOJARS_USERNAME
:password :env/CLOJARS_PASSWORD}]]
:release-tasks [["vcs" "assert-committed"]
["change" "version" "leiningen.release/bump-version" "release"]
["vcs" "commit"]
["vcs" "tag" "v" "--no-sign"]
["deploy" "clojars"]
["change" "version" "leiningen.release/bump-version"]
["vcs" "commit"]
["vcs" "push"]]
:scm {:name "git"
:url "https://github.com/Day8/re-frame-template"}
:eval-in-leiningen true)
| (defproject re-frame/lein-template "0.3.22-SNAPSHOT"
:description "Leiningen template for a Reagent web app that implements the re-frame pattern."
:url "https://github.com/Day8/re-frame-template"
:license {:name "MIT"}
- :deploy-repositories [["releases" :clojars]
+
+ :deploy-repositories [["clojars" {:sign-releases false
+ :url "https://clojars.org/repo"
+ :username :env/CLOJARS_USERNAME
+ :password :env/CLOJARS_PASSWORD}]]
+
+ :release-tasks [["vcs" "assert-committed"]
+ ["change" "version" "leiningen.release/bump-version" "release"]
+ ["vcs" "commit"]
+ ["vcs" "tag" "v" "--no-sign"]
- ["snapshots" :clojars]]
? ------ ^^^ ^^ ^^ ^ -
+ ["deploy" "clojars"]
? ^^ ^ ^ ^ +
+ ["change" "version" "leiningen.release/bump-version"]
+ ["vcs" "commit"]
+ ["vcs" "push"]]
+
:scm {:name "git"
:url "https://github.com/Day8/re-frame-template"}
+
:eval-in-leiningen true) | 18 | 2 | 16 | 2 |
d74b524cec824e77adbcf9cc23e28a6efba02985 | takePicture.py | takePicture.py | import picamera as p
import os
import time
os.chdir('/home/pi/Desktop')
cam = p.PiCamera()
cam.resolution = (320,240)
cam.hflip = True
cam.vflip = True
x = 0
while x < 15:
img = cam.capture('gregTest.jpg')
time.sleep(.25)
x +=1
exit()
| import picamera as p
import os
import time
os.chdir('/home/pi/Desktop')
cam = p.PiCamera()
cam.resolution = (320,240)
cam.hflip = True
cam.vflip = True
x = 0
while x < 50:
img = cam.capture('tempGregTest.jpg')
os.unlink('gregTest.jpg')
os.rename('tempGregTest.jpg','gregTest.jpg')
time.sleep(.25)
x +=1
exit()
| Add temp pic file sequence to takepicture file | Add temp pic file sequence to takepicture file
| Python | mit | jwarshaw/RaspberryDrive | python | ## Code Before:
import picamera as p
import os
import time
os.chdir('/home/pi/Desktop')
cam = p.PiCamera()
cam.resolution = (320,240)
cam.hflip = True
cam.vflip = True
x = 0
while x < 15:
img = cam.capture('gregTest.jpg')
time.sleep(.25)
x +=1
exit()
## Instruction:
Add temp pic file sequence to takepicture file
## Code After:
import picamera as p
import os
import time
os.chdir('/home/pi/Desktop')
cam = p.PiCamera()
cam.resolution = (320,240)
cam.hflip = True
cam.vflip = True
x = 0
while x < 50:
img = cam.capture('tempGregTest.jpg')
os.unlink('gregTest.jpg')
os.rename('tempGregTest.jpg','gregTest.jpg')
time.sleep(.25)
x +=1
exit()
| import picamera as p
import os
import time
os.chdir('/home/pi/Desktop')
cam = p.PiCamera()
cam.resolution = (320,240)
cam.hflip = True
cam.vflip = True
x = 0
- while x < 15:
? -
+ while x < 50:
? +
- img = cam.capture('gregTest.jpg')
? ^
+ img = cam.capture('tempGregTest.jpg')
? ^^^^^
+ os.unlink('gregTest.jpg')
+ os.rename('tempGregTest.jpg','gregTest.jpg')
time.sleep(.25)
x +=1
exit() | 6 | 0.333333 | 4 | 2 |
65135bb50887a2841a68e7dfbeffc0c686b547a9 | src/routes/index.js | src/routes/index.js | 'use strict';
const express = require('express');
const cors = require('cors');
const MockCtrl = require('../controllers/MockCtrl');
module.exports = function({Configuration, Logger, app}) {
// Cross-domain management
app.use(cors());
// Index route
app.use(express.static('./public'));
// Mocks route
app.use(function(req, res) {
new MockCtrl({Configuration, Logger}).buildResponse(req, res);
});
};
| 'use strict';
const express = require('express');
const cors = require('cors');
const path = require('path');
const MockCtrl = require('../controllers/MockCtrl');
module.exports = function({Configuration, Logger, app}) {
// Cross-domain management
app.use(cors());
// Index route
app.use(express.static(path.join(__dirname, '../../public')));
// Mocks route
app.use(function(req, res) {
new MockCtrl({Configuration, Logger}).buildResponse(req, res);
});
};
| Fix public route not working correctly in some cases | Fix public route not working correctly in some cases
| JavaScript | apache-2.0 | NijiDigital/mockiji,NijiDigital/mockiji,NijiDigital/mockiji | javascript | ## Code Before:
'use strict';
const express = require('express');
const cors = require('cors');
const MockCtrl = require('../controllers/MockCtrl');
module.exports = function({Configuration, Logger, app}) {
// Cross-domain management
app.use(cors());
// Index route
app.use(express.static('./public'));
// Mocks route
app.use(function(req, res) {
new MockCtrl({Configuration, Logger}).buildResponse(req, res);
});
};
## Instruction:
Fix public route not working correctly in some cases
## Code After:
'use strict';
const express = require('express');
const cors = require('cors');
const path = require('path');
const MockCtrl = require('../controllers/MockCtrl');
module.exports = function({Configuration, Logger, app}) {
// Cross-domain management
app.use(cors());
// Index route
app.use(express.static(path.join(__dirname, '../../public')));
// Mocks route
app.use(function(req, res) {
new MockCtrl({Configuration, Logger}).buildResponse(req, res);
});
};
| 'use strict';
const express = require('express');
const cors = require('cors');
+ const path = require('path');
const MockCtrl = require('../controllers/MockCtrl');
module.exports = function({Configuration, Logger, app}) {
// Cross-domain management
app.use(cors());
// Index route
- app.use(express.static('./public'));
+ app.use(express.static(path.join(__dirname, '../../public')));
// Mocks route
app.use(function(req, res) {
new MockCtrl({Configuration, Logger}).buildResponse(req, res);
});
}; | 3 | 0.166667 | 2 | 1 |
f18766e3a0dec67141ab2e1564023af04789cd7d | Projects/Project1/src/order.h | Projects/Project1/src/order.h |
/**
* Represents an order with weight and volume
*/
class Order
{
public:
Order(uint weight, uint volume) : _weight(weight), _volume(volume) { } ///< Constructor
Order(const Order& other) : _weight(other._weight), _volume(other._volume) { } ///< Copy constructor
Order operator=(const Order& other) const { return Order(other); } ///< Assignment operator
uint GetWeight() const { return _weight; } ///< Returns the order weight
uint GetVolume() const { return _volume; } ///< Returns the order volume
private:
const uint _weight;
const uint _volume;
};
#endif // ORDER_H_
|
/**
* Represents an order with weight and volume
*/
class Order
{
public:
Order(uint weight, uint volume) : _weight(weight), _volume(volume) { } ///< Constructor
uint GetWeight() const { return _weight; } ///< Returns the order weight
uint GetVolume() const { return _volume; } ///< Returns the order volume
private:
uint _weight;
uint _volume;
};
#endif // ORDER_H_
| Fix a bug with copy cctors, iterators and vector erases. Weird bugs are weird. | Fix a bug with copy cctors, iterators and vector erases. Weird bugs are weird.
| C | mit | DDuarte/feup-cal,DDuarte/feup-cal,DDuarte/feup-cal,DDuarte/feup-cal,DDuarte/feup-cal | c | ## Code Before:
/**
* Represents an order with weight and volume
*/
class Order
{
public:
Order(uint weight, uint volume) : _weight(weight), _volume(volume) { } ///< Constructor
Order(const Order& other) : _weight(other._weight), _volume(other._volume) { } ///< Copy constructor
Order operator=(const Order& other) const { return Order(other); } ///< Assignment operator
uint GetWeight() const { return _weight; } ///< Returns the order weight
uint GetVolume() const { return _volume; } ///< Returns the order volume
private:
const uint _weight;
const uint _volume;
};
#endif // ORDER_H_
## Instruction:
Fix a bug with copy cctors, iterators and vector erases. Weird bugs are weird.
## Code After:
/**
* Represents an order with weight and volume
*/
class Order
{
public:
Order(uint weight, uint volume) : _weight(weight), _volume(volume) { } ///< Constructor
uint GetWeight() const { return _weight; } ///< Returns the order weight
uint GetVolume() const { return _volume; } ///< Returns the order volume
private:
uint _weight;
uint _volume;
};
#endif // ORDER_H_
|
/**
* Represents an order with weight and volume
*/
class Order
{
public:
Order(uint weight, uint volume) : _weight(weight), _volume(volume) { } ///< Constructor
- Order(const Order& other) : _weight(other._weight), _volume(other._volume) { } ///< Copy constructor
- Order operator=(const Order& other) const { return Order(other); } ///< Assignment operator
uint GetWeight() const { return _weight; } ///< Returns the order weight
uint GetVolume() const { return _volume; } ///< Returns the order volume
private:
- const uint _weight;
? ------
+ uint _weight;
- const uint _volume;
? ------
+ uint _volume;
};
#endif // ORDER_H_ | 6 | 0.3 | 2 | 4 |
48f1cdda32b8b3d50c96759b072d432a88c9abc9 | enrolment/templates/enrolment-base.html | enrolment/templates/enrolment-base.html | {% extends 'base.html' %}
{% load staticfiles %}
{% block css %}
<link href="{% static 'enrolment.css' %}" media="all" rel="stylesheet" />
{% endblock %}
{% block content %}
<div class="container ed-enrolment">
<div class="clearfix"></div>
<div class="row-fluid">
<div class="{% block formarea_container_class %}span8{% endblock %}">
{% block formarea %}{% endblock formarea %}
</div>
</div>
</div>
{%endblock content %}
| {% extends 'base.html' %}
{% load staticfiles %}
{% block css %}
<link href="{% static 'enrolment.css' %}" media="all" rel="stylesheet"/>
{% endblock %}
{% block content %}
<div class="container ed-enrolment">
<div class="clearfix"></div>
<div class="row-fluid">
<div class="{% block formarea_container_class %}span8{% endblock %}">
{% block formarea %}{% endblock formarea %}
</div>
</div>
</div>
{% endblock content %}
| Use spaces instead of tabs | Use spaces instead of tabs
| HTML | mit | uktrade/directory-ui-supplier,uktrade/directory-ui-supplier,uktrade/directory-ui-supplier | html | ## Code Before:
{% extends 'base.html' %}
{% load staticfiles %}
{% block css %}
<link href="{% static 'enrolment.css' %}" media="all" rel="stylesheet" />
{% endblock %}
{% block content %}
<div class="container ed-enrolment">
<div class="clearfix"></div>
<div class="row-fluid">
<div class="{% block formarea_container_class %}span8{% endblock %}">
{% block formarea %}{% endblock formarea %}
</div>
</div>
</div>
{%endblock content %}
## Instruction:
Use spaces instead of tabs
## Code After:
{% extends 'base.html' %}
{% load staticfiles %}
{% block css %}
<link href="{% static 'enrolment.css' %}" media="all" rel="stylesheet"/>
{% endblock %}
{% block content %}
<div class="container ed-enrolment">
<div class="clearfix"></div>
<div class="row-fluid">
<div class="{% block formarea_container_class %}span8{% endblock %}">
{% block formarea %}{% endblock formarea %}
</div>
</div>
</div>
{% endblock content %}
| {% extends 'base.html' %}
{% load staticfiles %}
{% block css %}
- <link href="{% static 'enrolment.css' %}" media="all" rel="stylesheet" />
? ^ -
+ <link href="{% static 'enrolment.css' %}" media="all" rel="stylesheet"/>
? ^^^^
{% endblock %}
{% block content %}
- <div class="container ed-enrolment">
? ^
+ <div class="container ed-enrolment">
? ^^^^
- <div class="clearfix"></div>
? ^^
+ <div class="clearfix"></div>
? ^^^^^^^^
- <div class="row-fluid">
? ^^
+ <div class="row-fluid">
? ^^^^^^^^
- <div class="{% block formarea_container_class %}span8{% endblock %}">
? ^^^
+ <div class="{% block formarea_container_class %}span8{% endblock %}">
? ^^^^^^^^^^^^
- {% block formarea %}{% endblock formarea %}
? ^^^^
+ {% block formarea %}{% endblock formarea %}
? ^^^^^^^^^^^^^^^^
- </div>
- </div>
- </div>
+ </div>
+ </div>
+ </div>
- {%endblock content %}
+ {% endblock content %}
? +
| 20 | 1.25 | 10 | 10 |
5cfeb43a739a286ddb7b3c725e25b2e99d7ffe30 | lib/accounts.js | lib/accounts.js | AccountsTemplates.configure({
defaultLayout: 'defaultLayout',
defaultContentRegion: 'main',
// Behaviour
confirmPassword: true,
enablePasswordChange: true,
forbidClientAccountCreation: false,
overrideLoginErrors: true,
sendVerificationEmail: false,
// Appearance
showAddRemoveServices: false,
showForgotPasswordLink: false,
showLabels: false,
showPlaceholders: true,
// Client-side Validation
continuousValidation: false,
negativeFeedback: false,
negativeValidation: true,
positiveValidation: true,
positiveFeedback: true,
showValidating: true
});
AccountsTemplates.configureRoute('signIn');
AccountsTemplates.configureRoute('signUp');
AccountsTemplates.configureRoute('resetPwd');
AccountsTemplates.configureRoute('verifyEmail');
var passwordField = AccountsTemplates.removeField('password');
AccountsTemplates.removeField('email');
AccountsTemplates.addFields([
{
_id: "username",
type: "text",
displayName: "username",
required: true,
minLength: 5
},
{
_id: 'email',
type: 'email',
required: true,
displayName: "email",
re: /.+@(.+){2,}\.(.+){2,}/,
errStr: 'Invalid email'
},
passwordField
]);
| AccountsTemplates.configure({
defaultLayout: 'defaultLayout',
defaultContentRegion: 'main',
// Behaviour
confirmPassword: true,
enablePasswordChange: true,
forbidClientAccountCreation: false,
overrideLoginErrors: true,
sendVerificationEmail: false,
homeRoutePath: '/teams/public',
// Appearance
showAddRemoveServices: false,
showForgotPasswordLink: false,
showLabels: false,
showPlaceholders: true,
// Client-side Validation
continuousValidation: false,
negativeFeedback: false,
negativeValidation: true,
positiveValidation: true,
positiveFeedback: true,
showValidating: true
});
AccountsTemplates.configureRoute('signIn');
AccountsTemplates.configureRoute('signUp');
AccountsTemplates.configureRoute('resetPwd');
AccountsTemplates.configureRoute('verifyEmail');
var passwordField = AccountsTemplates.removeField('password');
AccountsTemplates.removeField('email');
AccountsTemplates.addFields([
{
_id: "username",
type: "text",
displayName: "username",
required: true,
minLength: 5
},
{
_id: 'email',
type: 'email',
required: true,
displayName: "email",
re: /.+@(.+){2,}\.(.+){2,}/,
errStr: 'Invalid email'
},
passwordField
]);
| Add homeRoutePath to User Accounts config | Add homeRoutePath to User Accounts config
| JavaScript | mit | anjneymidha/SpaceTalk,dannypaton/SpaceTalk,tamzi/SpaceTalk,bright-sparks/SpaceTalk,MarkBandilla/SpaceTalk,redanium/SpaceTalk,anjneymidha/SpaceTalk,lhaig/SpaceTalk,syrenio/SpaceTalk,thesobek/SpaceTalk,redanium/SpaceTalk,bright-sparks/SpaceTalk,TribeMedia/SpaceTalk,MarkBandilla/SpaceTalk,yanisIk/SpaceTalk,tamzi/SpaceTalk,SpaceTalk/SpaceTalk,foysalit/SpaceTalk,foysalit/SpaceTalk,lhaig/SpaceTalk,dannypaton/SpaceTalk,mauricionr/SpaceTalk,yanisIk/SpaceTalk,syrenio/SpaceTalk,SpaceTalk/SpaceTalk,mGhassen/SpaceTalk,TribeMedia/SpaceTalk,mauricionr/SpaceTalk,thesobek/SpaceTalk,mGhassen/SpaceTalk | javascript | ## Code Before:
AccountsTemplates.configure({
defaultLayout: 'defaultLayout',
defaultContentRegion: 'main',
// Behaviour
confirmPassword: true,
enablePasswordChange: true,
forbidClientAccountCreation: false,
overrideLoginErrors: true,
sendVerificationEmail: false,
// Appearance
showAddRemoveServices: false,
showForgotPasswordLink: false,
showLabels: false,
showPlaceholders: true,
// Client-side Validation
continuousValidation: false,
negativeFeedback: false,
negativeValidation: true,
positiveValidation: true,
positiveFeedback: true,
showValidating: true
});
AccountsTemplates.configureRoute('signIn');
AccountsTemplates.configureRoute('signUp');
AccountsTemplates.configureRoute('resetPwd');
AccountsTemplates.configureRoute('verifyEmail');
var passwordField = AccountsTemplates.removeField('password');
AccountsTemplates.removeField('email');
AccountsTemplates.addFields([
{
_id: "username",
type: "text",
displayName: "username",
required: true,
minLength: 5
},
{
_id: 'email',
type: 'email',
required: true,
displayName: "email",
re: /.+@(.+){2,}\.(.+){2,}/,
errStr: 'Invalid email'
},
passwordField
]);
## Instruction:
Add homeRoutePath to User Accounts config
## Code After:
AccountsTemplates.configure({
defaultLayout: 'defaultLayout',
defaultContentRegion: 'main',
// Behaviour
confirmPassword: true,
enablePasswordChange: true,
forbidClientAccountCreation: false,
overrideLoginErrors: true,
sendVerificationEmail: false,
homeRoutePath: '/teams/public',
// Appearance
showAddRemoveServices: false,
showForgotPasswordLink: false,
showLabels: false,
showPlaceholders: true,
// Client-side Validation
continuousValidation: false,
negativeFeedback: false,
negativeValidation: true,
positiveValidation: true,
positiveFeedback: true,
showValidating: true
});
AccountsTemplates.configureRoute('signIn');
AccountsTemplates.configureRoute('signUp');
AccountsTemplates.configureRoute('resetPwd');
AccountsTemplates.configureRoute('verifyEmail');
var passwordField = AccountsTemplates.removeField('password');
AccountsTemplates.removeField('email');
AccountsTemplates.addFields([
{
_id: "username",
type: "text",
displayName: "username",
required: true,
minLength: 5
},
{
_id: 'email',
type: 'email',
required: true,
displayName: "email",
re: /.+@(.+){2,}\.(.+){2,}/,
errStr: 'Invalid email'
},
passwordField
]);
| AccountsTemplates.configure({
defaultLayout: 'defaultLayout',
defaultContentRegion: 'main',
// Behaviour
confirmPassword: true,
enablePasswordChange: true,
forbidClientAccountCreation: false,
overrideLoginErrors: true,
sendVerificationEmail: false,
+ homeRoutePath: '/teams/public',
// Appearance
showAddRemoveServices: false,
showForgotPasswordLink: false,
showLabels: false,
showPlaceholders: true,
// Client-side Validation
continuousValidation: false,
negativeFeedback: false,
negativeValidation: true,
positiveValidation: true,
positiveFeedback: true,
showValidating: true
});
AccountsTemplates.configureRoute('signIn');
AccountsTemplates.configureRoute('signUp');
AccountsTemplates.configureRoute('resetPwd');
AccountsTemplates.configureRoute('verifyEmail');
var passwordField = AccountsTemplates.removeField('password');
AccountsTemplates.removeField('email');
AccountsTemplates.addFields([
{
_id: "username",
type: "text",
displayName: "username",
required: true,
minLength: 5
},
{
_id: 'email',
type: 'email',
required: true,
displayName: "email",
re: /.+@(.+){2,}\.(.+){2,}/,
errStr: 'Invalid email'
},
passwordField
]); | 1 | 0.018182 | 1 | 0 |
4c36269339935f0ccb44dc600d4c1dcd5d2725ec | config/webpack.dev.js | config/webpack.dev.js | const path = require("path");
const merge = require("webpack-merge");
const webpack = require("webpack");
const common = require("./webpack.common.js");
const postCSSPlugins = [
require("postcss-easy-import")({ prefix: "_" }),
require("postcss-mixins"),
require("postcss-simple-vars"),
require("postcss-nested"),
require("postcss-color-function"),
require("postcss-hexrgba"),
require("autoprefixer")
];
module.exports = merge(common, {
entry: [
"webpack-dev-server/client?http://localhost:3000/",
"webpack/hot/only-dev-server"
],
mode: "development",
devtool: "eval-cheap-module-source-map",
watch: true,
devServer: {
headers: {
"Access-Control-Allow-Origin": "*"
},
hot: true,
port: 3000,
disableHostCheck: true,
overlay: true,
contentBase: path.join(__dirname, "../src")
},
plugins: [new webpack.HotModuleReplacementPlugin()],
module: {
rules: [
{
test: /\.css$/,
use: [
"style-loader",
{
loader: "css-loader",
options: {
url: false
}
},
{
loader: "postcss-loader",
options: {
plugins: postCSSPlugins
}
}
]
}
]
}
});
| const path = require("path");
const merge = require("webpack-merge");
const webpack = require("webpack");
const common = require("./webpack.common.js");
const postCSSPlugins = [
require("postcss-easy-import")({ prefix: "_" }),
require("postcss-mixins"),
require("postcss-simple-vars"),
require("postcss-nested"),
require("postcss-color-function"),
require("postcss-hexrgba"),
require("autoprefixer")
];
module.exports = merge(common, {
entry: [
"webpack-dev-server/client?http://localhost:3000/",
"webpack/hot/only-dev-server"
],
mode: "development",
devtool: "eval-source-map",
watch: true,
devServer: {
headers: {
"Access-Control-Allow-Origin": "*"
},
hot: true,
port: 3000,
disableHostCheck: true,
overlay: true,
contentBase: path.join(__dirname, "../src")
},
plugins: [new webpack.HotModuleReplacementPlugin()],
module: {
rules: [
{
test: /\.css$/,
use: [
"style-loader",
{
loader: "css-loader",
options: {
url: false
}
},
{
loader: "postcss-loader",
options: {
plugins: postCSSPlugins
}
}
]
}
]
}
});
| Use more reliable JS source mapping technique | Use more reliable JS source mapping technique
| JavaScript | mit | trendyminds/pura,trendyminds/pura | javascript | ## Code Before:
const path = require("path");
const merge = require("webpack-merge");
const webpack = require("webpack");
const common = require("./webpack.common.js");
const postCSSPlugins = [
require("postcss-easy-import")({ prefix: "_" }),
require("postcss-mixins"),
require("postcss-simple-vars"),
require("postcss-nested"),
require("postcss-color-function"),
require("postcss-hexrgba"),
require("autoprefixer")
];
module.exports = merge(common, {
entry: [
"webpack-dev-server/client?http://localhost:3000/",
"webpack/hot/only-dev-server"
],
mode: "development",
devtool: "eval-cheap-module-source-map",
watch: true,
devServer: {
headers: {
"Access-Control-Allow-Origin": "*"
},
hot: true,
port: 3000,
disableHostCheck: true,
overlay: true,
contentBase: path.join(__dirname, "../src")
},
plugins: [new webpack.HotModuleReplacementPlugin()],
module: {
rules: [
{
test: /\.css$/,
use: [
"style-loader",
{
loader: "css-loader",
options: {
url: false
}
},
{
loader: "postcss-loader",
options: {
plugins: postCSSPlugins
}
}
]
}
]
}
});
## Instruction:
Use more reliable JS source mapping technique
## Code After:
const path = require("path");
const merge = require("webpack-merge");
const webpack = require("webpack");
const common = require("./webpack.common.js");
const postCSSPlugins = [
require("postcss-easy-import")({ prefix: "_" }),
require("postcss-mixins"),
require("postcss-simple-vars"),
require("postcss-nested"),
require("postcss-color-function"),
require("postcss-hexrgba"),
require("autoprefixer")
];
module.exports = merge(common, {
entry: [
"webpack-dev-server/client?http://localhost:3000/",
"webpack/hot/only-dev-server"
],
mode: "development",
devtool: "eval-source-map",
watch: true,
devServer: {
headers: {
"Access-Control-Allow-Origin": "*"
},
hot: true,
port: 3000,
disableHostCheck: true,
overlay: true,
contentBase: path.join(__dirname, "../src")
},
plugins: [new webpack.HotModuleReplacementPlugin()],
module: {
rules: [
{
test: /\.css$/,
use: [
"style-loader",
{
loader: "css-loader",
options: {
url: false
}
},
{
loader: "postcss-loader",
options: {
plugins: postCSSPlugins
}
}
]
}
]
}
});
| const path = require("path");
const merge = require("webpack-merge");
const webpack = require("webpack");
const common = require("./webpack.common.js");
const postCSSPlugins = [
require("postcss-easy-import")({ prefix: "_" }),
require("postcss-mixins"),
require("postcss-simple-vars"),
require("postcss-nested"),
require("postcss-color-function"),
require("postcss-hexrgba"),
require("autoprefixer")
];
module.exports = merge(common, {
entry: [
"webpack-dev-server/client?http://localhost:3000/",
"webpack/hot/only-dev-server"
],
mode: "development",
- devtool: "eval-cheap-module-source-map",
? -------------
+ devtool: "eval-source-map",
watch: true,
devServer: {
headers: {
"Access-Control-Allow-Origin": "*"
},
hot: true,
port: 3000,
disableHostCheck: true,
overlay: true,
contentBase: path.join(__dirname, "../src")
},
plugins: [new webpack.HotModuleReplacementPlugin()],
module: {
rules: [
{
test: /\.css$/,
use: [
"style-loader",
{
loader: "css-loader",
options: {
url: false
}
},
{
loader: "postcss-loader",
options: {
plugins: postCSSPlugins
}
}
]
}
]
}
}); | 2 | 0.035088 | 1 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.