commit stringlengths 40 40 | old_file stringlengths 4 237 | new_file stringlengths 4 237 | old_contents stringlengths 1 4.24k | new_contents stringlengths 5 4.84k | subject stringlengths 15 778 | message stringlengths 16 6.86k | lang stringlengths 1 30 | license stringclasses 13
values | repos stringlengths 5 116k | config stringlengths 1 30 | content stringlengths 105 8.72k |
|---|---|---|---|---|---|---|---|---|---|---|---|
d59317c34ac8bb10c8d8d760089d68c01ebdeca4 | src/analyse-file.js | src/analyse-file.js | "use strict";
const vscode = require("vscode");
const analyser = require("./complexity-analyzer");
const reporter = require("./report-builder.js");
const config = require("./config");
const Output = require("./output-channel");
function getFileRelativePath(document) {
const fileUri = document.fileName;
... | "use strict";
const vscode = require("vscode");
const analyser = require("./complexity-analyzer");
const reporter = require("./report-builder.js");
const config = require("./config");
const Output = require("./output-channel");
function buildReport(document) {
const channel = new Output();
const filePa... | Use build in relative path method | Use build in relative path method
| JavaScript | mit | tomi/vscode-js-complexity-analysis | javascript | ## Code Before:
"use strict";
const vscode = require("vscode");
const analyser = require("./complexity-analyzer");
const reporter = require("./report-builder.js");
const config = require("./config");
const Output = require("./output-channel");
function getFileRelativePath(document) {
const fileUri = documen... |
5f2eb49b325aed79be39bb465a70cb72539f2320 | apps/backend/modules/cataloguewidget/templates/_extLinks.php | apps/backend/modules/cataloguewidget/templates/_extLinks.php | <table class="catalogue_table">
<thead>
<tr>
<th><?php echo __('Link');?></th>
<th><?php echo __('Comment');?></th>
<th></th>
</tr>
</thead>
<tbody>
<?php foreach($links as $link):?>
<tr>
<td>
<?php echo link_to($link->getUrl(),'extlinks/extLinks?table='.$table.'&cid='.$l... | <table class="catalogue_table">
<thead>
<tr>
<th></th>
<th><?php echo __('Link');?></th>
<th><?php echo __('Comment');?></th>
<th></th>
</tr>
</thead>
<tbody>
<?php foreach($links as $link):?>
<tr>
<td>
<?php echo link_to(image_tag('edit.png'),'extlinks/extLinks?table... | Rework external link style in catalogues | Rework external link style in catalogues
| PHP | agpl-3.0 | eMerzh/Darwin,eMerzh/Darwin,naturalsciences/Darwin,naturalsciences/Darwin,naturalsciences/Darwin,eMerzh/Darwin | php | ## Code Before:
<table class="catalogue_table">
<thead>
<tr>
<th><?php echo __('Link');?></th>
<th><?php echo __('Comment');?></th>
<th></th>
</tr>
</thead>
<tbody>
<?php foreach($links as $link):?>
<tr>
<td>
<?php echo link_to($link->getUrl(),'extlinks/extLinks?table='.$... |
12558ca0d4180bc7433640c4a516bd3f5a85a8a2 | exp/wsj/score.sh | exp/wsj/score.sh | set -e
KU=$KALDI_ROOT/egs/wsj/s5/utils
KL=$KALDI_ROOT/egs/wsj/s5/local
. $KU/parse_options.sh
if [ $# -ne 2 ]; then
echo "usage: `basename $0` <dir> <part>"
exit 1
fi
dir=$1
part=$2
# Aggregate groundtruth
cat $dir/$part-groundtruth-text.txt | sort | $KL/wer_ref_filter > $dir/tmp
mv $dir/tmp $dir/$part-groundtru... | set -e
KU=$KALDI_ROOT/egs/wsj/s5/utils
KL=$KALDI_ROOT/egs/wsj/s5/local
. $KU/parse_options.sh
if [ $# -ne 2 ]; then
echo "usage: `basename $0` <dir> <part>"
echo "you should have following files:"
echo " <dir>/<part>-decoded.out"
echo " <dir>/<part>-decoded-text.out"
echo " <dir>/<part>-gro... | Make executable and some documentation | Make executable and some documentation
| Shell | mit | rizar/attention-lvcsr,nke001/attention-lvcsr,rizar/attention-lvcsr,nke001/attention-lvcsr,rizar/attention-lvcsr,rizar/attention-lvcsr,nke001/attention-lvcsr,rizar/attention-lvcsr,nke001/attention-lvcsr,nke001/attention-lvcsr | shell | ## Code Before:
set -e
KU=$KALDI_ROOT/egs/wsj/s5/utils
KL=$KALDI_ROOT/egs/wsj/s5/local
. $KU/parse_options.sh
if [ $# -ne 2 ]; then
echo "usage: `basename $0` <dir> <part>"
exit 1
fi
dir=$1
part=$2
# Aggregate groundtruth
cat $dir/$part-groundtruth-text.txt | sort | $KL/wer_ref_filter > $dir/tmp
mv $dir/tmp $dir... |
b237e4cc2dd5b0d09fff6bb08bda087f32c569bb | src/protocolsupport/api/chat/modifiers/ClickAction.java | src/protocolsupport/api/chat/modifiers/ClickAction.java | package protocolsupport.api.chat.modifiers;
import java.net.MalformedURLException;
import java.net.URL;
import protocolsupport.utils.Utils;
public class ClickAction {
private final Type type;
private final String value;
public ClickAction(Type action, String value) {
this.type = action;
this.value = value;
... | package protocolsupport.api.chat.modifiers;
import java.net.MalformedURLException;
import java.net.URL;
import protocolsupport.utils.Utils;
public class ClickAction {
private final Type type;
private final String value;
public ClickAction(Type action, String value) {
this.type = action;
this.value = value;
... | Add click action copy to clipboard | Add click action copy to clipboard | Java | agpl-3.0 | ProtocolSupport/ProtocolSupport | java | ## Code Before:
package protocolsupport.api.chat.modifiers;
import java.net.MalformedURLException;
import java.net.URL;
import protocolsupport.utils.Utils;
public class ClickAction {
private final Type type;
private final String value;
public ClickAction(Type action, String value) {
this.type = action;
this... |
61244848dd40851ba67a522c37cdc5aa093d1872 | defaults/main.yml | defaults/main.yml | ---
# defaults file for ansible-role-fgci-bash/
bash_script_copy_these:
- hist.sh
bash_script_copy_all: True
# This is added after MODULEPATH=$MODULEPATH
bash_modules_path: "/cvmfs/fgi.csc.fi/modules/el7/all"
lua_script_copy_all: True # disable by setting copy_all to false and copy_these to []
lua_script_copy_these... | ---
# defaults file for ansible-role-fgci-bash/
bash_script_copy_these:
- hist.sh
bash_script_copy_all: True
# This is added after MODULEPATH=$MODULEPATH
bash_modules_path: "/cvmfs/fgi.csc.fi/modules/el7/all:/cvmfs/fgi.csc.fi/apps/el7/aalto/spack/lmod/linux-centos7-x86_64/all:/cvmfs/fgi.csc.fi/apps/el7/aalto/spack/l... | Update cvmfs module path to include software from aalto | Update cvmfs module path to include software from aalto
| YAML | mit | CSC-IT-Center-for-Science/ansible-role-fgci-bash | yaml | ## Code Before:
---
# defaults file for ansible-role-fgci-bash/
bash_script_copy_these:
- hist.sh
bash_script_copy_all: True
# This is added after MODULEPATH=$MODULEPATH
bash_modules_path: "/cvmfs/fgi.csc.fi/modules/el7/all"
lua_script_copy_all: True # disable by setting copy_all to false and copy_these to []
lua_s... |
a373ed813ee805a3b29de0c945f1a4a358fd484d | tsbarapp/assets/style.css | tsbarapp/assets/style.css | .tsbar-popup {
display:none;
}
.open .tsbar-popup {
display:block;
z-index: 1;
}
#tsbar {
position:relative;
height:50px;
width:100%;
border:solid black;
}
.tsbar-left {
position:absolute;
left:0px;
top:0px;
}
.tsbar-middle {
position:absolute;
left:50%;
margin-le... | .tsbar-popup {
display:none;
}
.open .tsbar-popup {
display:block;
z-index: 1;
}
#tsbar {
position:relative;
height:50px;
width:100%;
border:solid black;
}
.tsbar-left {
position:absolute;
left:0px;
top:0px;
}
.tsbar-middle {
position:absolute;
left:50%;
margin-le... | Apply image sizing to search result site icons. | Apply image sizing to search result site icons.
| CSS | bsd-3-clause | TiddlySpace/tsbar | css | ## Code Before:
.tsbar-popup {
display:none;
}
.open .tsbar-popup {
display:block;
z-index: 1;
}
#tsbar {
position:relative;
height:50px;
width:100%;
border:solid black;
}
.tsbar-left {
position:absolute;
left:0px;
top:0px;
}
.tsbar-middle {
position:absolute;
left:50... |
6ec61fc80ea8c3626b507d20d6c95d64ae4216c0 | tests/twisted/connect/timeout.py | tests/twisted/connect/timeout.py |
from servicetest import assertEquals
from gabbletest import exec_test, XmppAuthenticator
import constants as cs
import ns
class NoStreamHeader(XmppAuthenticator):
def __init__(self):
XmppAuthenticator.__init__(self, 'test', 'pass')
def streamStarted(self, root=None):
return
class NoAuthInfo... |
from servicetest import assertEquals
from gabbletest import exec_test, XmppAuthenticator
import constants as cs
import ns
class NoStreamHeader(XmppAuthenticator):
def __init__(self):
XmppAuthenticator.__init__(self, 'test', 'pass')
def streamStarted(self, root=None):
pass
class NoAuthInfoRe... | Use 'pass', not 'return', for empty Python methods | Use 'pass', not 'return', for empty Python methods
| Python | lgpl-2.1 | community-ssu/telepathy-gabble,community-ssu/telepathy-gabble,community-ssu/telepathy-gabble,community-ssu/telepathy-gabble | python | ## Code Before:
from servicetest import assertEquals
from gabbletest import exec_test, XmppAuthenticator
import constants as cs
import ns
class NoStreamHeader(XmppAuthenticator):
def __init__(self):
XmppAuthenticator.__init__(self, 'test', 'pass')
def streamStarted(self, root=None):
return
... |
fadd9ab31e0b0dbb3bdeb3d2e013ddab3c77f470 | lib/ExportCsv/ExportCsv.js | lib/ExportCsv/ExportCsv.js | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { deprecated } from 'prop-types-extra';
import exportToCsv from './exportToCsv';
import Button from '../Button';
class ExportCsv extends React.Component {
static propTypes = {
data: PropTypes.arra... | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import exportToCsv from './exportToCsv';
import Button from '../Button';
class ExportCsv extends React.Component {
static propTypes = {
data: PropTypes.arrayOf(PropTypes.object),
onlyFields: PropType... | Remove deprecated excludeKeys prop for exportCsv | Remove deprecated excludeKeys prop for exportCsv
| JavaScript | apache-2.0 | folio-org/stripes-components,folio-org/stripes-components | javascript | ## Code Before:
import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { deprecated } from 'prop-types-extra';
import exportToCsv from './exportToCsv';
import Button from '../Button';
class ExportCsv extends React.Component {
static propTypes = {
data... |
4ca56946ccc518ce57188ef64e9327f97f6f30be | tests/unit/utils/build-provider-asset-path-test.js | tests/unit/utils/build-provider-asset-path-test.js | import buildProviderAssetPath from 'preprint-service/utils/build-provider-asset-path';
import { module, test } from 'qunit';
module('Unit | Utility | build provider asset path');
// Replace this with your real tests.
test('it works', function(assert) {
let result = buildProviderAssetPath();
assert.ok(result);
});... | import config from 'ember-get-config';
import buildProviderAssetPath from 'preprint-service/utils/build-provider-asset-path';
import { module, test } from 'qunit';
module('Unit | Utility | build provider asset path');
test('build correct path for domain', function(assert) {
let result = buildProviderAssetPath('fo... | Update buildProviderAssetPath unit test to do something useful | Update buildProviderAssetPath unit test to do something useful
| JavaScript | apache-2.0 | baylee-d/ember-preprints,CenterForOpenScience/ember-preprints,laurenrevere/ember-preprints,laurenrevere/ember-preprints,CenterForOpenScience/ember-preprints,baylee-d/ember-preprints | javascript | ## Code Before:
import buildProviderAssetPath from 'preprint-service/utils/build-provider-asset-path';
import { module, test } from 'qunit';
module('Unit | Utility | build provider asset path');
// Replace this with your real tests.
test('it works', function(assert) {
let result = buildProviderAssetPath();
assert... |
eee45eca76ae643eb2dc8bbca54cecbd3f0144b3 | plugin/dwall.vim | plugin/dwall.vim | if exists('g:loaded_dwall') || &compatible
finish
endif
let g:loaded_dwall=1
function! Dwall(line1, line2, ...) range
let buffer=join(getline(a:line1, a:line2), '\n')
let args=join(a:000, ' ')
let url=system('echo '.shellescape(buffer).' | dwall '.args)
echo substitute(url, '\n$', '', '')
endfunct... | if exists('g:loaded_dwall') || &compatible
finish
endif
let g:loaded_dwall=1
let s:dwall=expand(expand('<sfile>:p:h:h')).'/dwall'
function! Dwall(line1, line2, ...) range
let buffer=join(getline(a:line1, a:line2), '\n')
let args=join(a:000, ' ')
let url=system('echo '.shellescape(buffer).' | '.shelles... | Use script packaged with Vim plugin | Use script packaged with Vim plugin
| VimL | unlicense | valeriangalliat/dwall | viml | ## Code Before:
if exists('g:loaded_dwall') || &compatible
finish
endif
let g:loaded_dwall=1
function! Dwall(line1, line2, ...) range
let buffer=join(getline(a:line1, a:line2), '\n')
let args=join(a:000, ' ')
let url=system('echo '.shellescape(buffer).' | dwall '.args)
echo substitute(url, '\n$', ... |
8a40d0df910cf9e17db99155ba148c69737809dc | ConnorBrozic-CymonScriptA2P2.py | ConnorBrozic-CymonScriptA2P2.py |
import time
from cymon import Cymon
#Personal Key Removed. Replace 'xxx' with your own key.
api = Cymon('xxx')
#Parsing Text file retrieved from:
#http://stackoverflow.com/questions/6277107/parsing-text-file-in-python
#Open malware domain file.
f = open('text.txt','r')
#Open output file to write to
cymondata = open... |
import time
from cymon import Cymon
#Personal Key Removed. Replace 'xxx' with your own key.
api = Cymon('xxx')
#Parsing Text file retrieved from:
#http://stackoverflow.com/questions/6277107/parsing-text-file-in-python
#Open malware domain file.
f = open('TestedMalwareDomains.txt','r')
#Open output file to write to
... | Update to Script, Fixed malware domain file name | Update to Script, Fixed malware domain file name
Fixed malware domains file name to accurately represent the file opened. (Better than text.txt) | Python | mit | ConnorBrozic/SRT411-Assignment2 | python | ## Code Before:
import time
from cymon import Cymon
#Personal Key Removed. Replace 'xxx' with your own key.
api = Cymon('xxx')
#Parsing Text file retrieved from:
#http://stackoverflow.com/questions/6277107/parsing-text-file-in-python
#Open malware domain file.
f = open('text.txt','r')
#Open output file to write to
... |
b93d8a7a7394b406260d2e20810e3e42852d5a14 | src/requirements-selenium.txt | src/requirements-selenium.txt |
pytest-cache==1.0
pytest-flask==0.10.0
pytest-html==1.7
pytest-pep8==1.0.6
pytest-selenium==1.3.1
pytest-variables==1.2
pytest-xdist==1.13.1
pytest==2.8.2
requests==2.8.1
selenium==2.53.6
sniffer==0.3.5
timeout-decorator==0.3.2
pytest-timeout==1.0.0
pytest-pycharm==0.3.0
pytest-rerunfailures==2.0.0
pytest-cov==2.2.1
p... |
pytest-base-url==1.3.0
pytest-cache==1.0
pytest-flask==0.10.0
pytest-html==1.14.1
pytest-pep8==1.0.6
pytest-selenium==1.9.1
pytest-variables==1.5.1
pytest-xdist==1.15.0
pytest==3.0.6
requests==2.8.1
selenium==3.3.0
sniffer==0.3.5
timeout-decorator==0.3.3
pytest-timeout==1.2.0
pytest-pycharm==0.4.0
pytest-rerunfailures... | Update requirements file for selenium container | Update requirements file for selenium container
| Text | apache-2.0 | AleksNeStu/ggrc-core,AleksNeStu/ggrc-core,plamut/ggrc-core,plamut/ggrc-core,AleksNeStu/ggrc-core,AleksNeStu/ggrc-core,plamut/ggrc-core,plamut/ggrc-core | text | ## Code Before:
pytest-cache==1.0
pytest-flask==0.10.0
pytest-html==1.7
pytest-pep8==1.0.6
pytest-selenium==1.3.1
pytest-variables==1.2
pytest-xdist==1.13.1
pytest==2.8.2
requests==2.8.1
selenium==2.53.6
sniffer==0.3.5
timeout-decorator==0.3.2
pytest-timeout==1.0.0
pytest-pycharm==0.3.0
pytest-rerunfailures==2.0.0
pyt... |
0265f1bf709cd80c91a38879a262e98d39ccf56b | app/overrides/spree/layouts/admin/gift_cards_tab.html.erb.deface | app/overrides/spree/layouts/admin/gift_cards_tab.html.erb.deface | <!-- insert_bottom "[data-hook='admin_tabs'], #main-sidebar" -->
<% if can? :admin, Spree::GiftCard %>
<ul class="nav nav-sidebar">
<%= tab Spree.t(:gift_cards), icon: 'credit-card', url: spree.admin_gift_cards_path %>
</ul>
<% end %>
| <!-- insert_bottom "[data-hook='admin_tabs'], #main-sidebar"
original "fe59e93696d1ff1c3d24664cdf404c4189f80a22"
-->
<% if can? :admin, Spree::GiftCard %>
<ul class="nav nav-sidebar">
<%= tab Spree.t(:gift_cards), icon: 'credit-card', url: spree.admin_gift_cards_path %>
</ul>
<% end %>
| Add 'original' to defaced view to remove warning | Add 'original' to defaced view to remove warning
| unknown | bsd-3-clause | mr-ado/spree_gift_card,mr-ado/spree_gift_card,mr-ado/spree_gift_card | unknown | ## Code Before:
<!-- insert_bottom "[data-hook='admin_tabs'], #main-sidebar" -->
<% if can? :admin, Spree::GiftCard %>
<ul class="nav nav-sidebar">
<%= tab Spree.t(:gift_cards), icon: 'credit-card', url: spree.admin_gift_cards_path %>
</ul>
<% end %>
## Instruction:
Add 'original' to defaced view to remove wa... |
9996f5bd1da5f370e20b5e744f2f6528ef3f887a | python/README.md | python/README.md |
Note that this is still under active development and the API might change until
the official release.
## Getting Started
In order to build Tink from source you can either use Bazel or build a Python
package using pip.
### Build with Bazel
`bash bazel build "..."`
### Build with pip from source
A setup script is ... |
Note that this is still under active development and the API might change until
the official release.
## Getting Started
In order to build Tink from source you can either use Bazel or build a Python
package using pip.
### Build with Bazel
```shell
bazel build "..."
```
### Build with pip from source
A setup scri... | Fix formatting in Python Readme. | Fix formatting in Python Readme.
PiperOrigin-RevId: 307773077
| Markdown | apache-2.0 | google/tink,google/tink,google/tink,google/tink,google/tink,google/tink,google/tink,google/tink | markdown | ## Code Before:
Note that this is still under active development and the API might change until
the official release.
## Getting Started
In order to build Tink from source you can either use Bazel or build a Python
package using pip.
### Build with Bazel
`bash bazel build "..."`
### Build with pip from source
A ... |
e4721c239f46a787a97dbe0a26081a85ed93719c | app/assets/stylesheets/partials/_mixins.scss | app/assets/stylesheets/partials/_mixins.scss | // Control the reading expreience
@mixin well-read {
font-family: $reading-stack;
font-size: 20px;
line-height: 1.7;
font-weight: 300;
border: none;
color: $font-black;
}
// Border Radius with vendor prefixes for older browsers
@mixin border-radius($radius) {
border-radius: $radius;
}
// Box Shadow with... | // Control the reading expreience
@mixin well-read {
font-family: $reading-stack;
font-size: 20px;
line-height: 1.7;
font-weight: 300;
border: none;
color: $font-black;
}
// Border Radius with vendor prefixes for older browsers
@mixin border-radius($radius) {
border-radius: $radius;
}
// Box Shadow
@mi... | Change box-shadow property on feed-panel | Change box-shadow property on feed-panel
| SCSS | mit | aamin005/Firdowsspace,dev-warner/Revinyl-Product,aamin005/Firdowsspace,dev-warner/Revinyl-Product,dev-warner/Revinyl-Product,kenny-hibino/stories,aamin005/Firdowsspace,kenny-hibino/stories,kenny-hibino/stories | scss | ## Code Before:
// Control the reading expreience
@mixin well-read {
font-family: $reading-stack;
font-size: 20px;
line-height: 1.7;
font-weight: 300;
border: none;
color: $font-black;
}
// Border Radius with vendor prefixes for older browsers
@mixin border-radius($radius) {
border-radius: $radius;
}
//... |
7499df4c4a13435290767f0667fedcf7a646ebc6 | src/models/hole.php | src/models/hole.php | <?php
return function(MongoDB $db) {
$collection = $db->holes;
$findOne = function($id) use($collection) {
$hole = null;
try {
$hole = $collection->findOne(['_id' => new MongoID($id)]);
} catch (Exception $e) {
}
if ($hole === null) {
throw new E... | <?php
return function(MongoDB $db) {
$collection = $db->holes;
$findOne = function($id) use($collection) {
$hole = null;
try {
$hole = $collection->findOne(['_id' => new MongoID($id)]);
} catch (Exception $e) {
}
if ($hole === null) {
throw new E... | Add source code and length to submissions. | Add source code and length to submissions.
Have to utf8_encode the source because it can be non-ascii.
| PHP | mit | nubs/bizgolf-ui,nubs/bizgolf-ui,nubs/bizgolf-ui | php | ## Code Before:
<?php
return function(MongoDB $db) {
$collection = $db->holes;
$findOne = function($id) use($collection) {
$hole = null;
try {
$hole = $collection->findOne(['_id' => new MongoID($id)]);
} catch (Exception $e) {
}
if ($hole === null) {
... |
4d584f419e92b4ee688dca4c01b74cfc1217f828 | setup.sh | setup.sh | git config --global color.ui true
ln -sf ~/dotfiles/d.zshrc ~/.zshrc
ln -sf ~/dotfiles/d.zshenv ~/.zshenv
ln -sf ~/dotfiles/d.vimrc ~/.vimrc
ln -sf ~/dotfiles/d.gemrc ~/.gemrc
# *env
case ${OSTYPE} in
darwin*)
# install homebrew
# ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
brew upda... | git config --global color.ui true
ln -sf ~/dotfiles/d.zshrc ~/.zshrc
ln -sf ~/dotfiles/d.zshenv ~/.zshenv
ln -sf ~/dotfiles/d.vimrc ~/.vimrc
ln -sf ~/dotfiles/d.gemrc ~/.gemrc
# *env
case ${OSTYPE} in
darwin*)
# install homebrew
# ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
brew upda... | Modify ndenv installation in mac | Modify ndenv installation in mac
| Shell | mit | dceoy/dotfiles,dceoy/dotfiles,dceoy/fabkit,dceoy/fabkit,dceoy/fabkit | shell | ## Code Before:
git config --global color.ui true
ln -sf ~/dotfiles/d.zshrc ~/.zshrc
ln -sf ~/dotfiles/d.zshenv ~/.zshenv
ln -sf ~/dotfiles/d.vimrc ~/.vimrc
ln -sf ~/dotfiles/d.gemrc ~/.gemrc
# *env
case ${OSTYPE} in
darwin*)
# install homebrew
# ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go... |
e056dc3581785fe34123189cccd9901e1e9afe71 | pylatex/__init__.py | pylatex/__init__.py |
from .document import Document
from .math import Math, VectorName, Matrix
from .package import Package
from .section import Section, Subsection, Subsubsection
from .table import Table, MultiColumn, MultiRow, Tabular
from .pgfplots import TikZ, Axis, Plot
from .graphics import Figure, SubFigure, MatplotlibFigure
from .... |
from .document import Document
from .math import Math, VectorName, Matrix
from .package import Package
from .section import Section, Subsection, Subsubsection
from .table import Table, MultiColumn, MultiRow, Tabular, Tabu, LongTable, \
LongTabu
from .pgfplots import TikZ, Axis, Plot
from .graphics import Figure, S... | Add Tabu, LongTable and LongTabu global import | Add Tabu, LongTable and LongTabu global import
| Python | mit | sebastianhaas/PyLaTeX,sebastianhaas/PyLaTeX,votti/PyLaTeX,ovaskevich/PyLaTeX,JelteF/PyLaTeX,bjodah/PyLaTeX,votti/PyLaTeX,jendas1/PyLaTeX,bjodah/PyLaTeX,jendas1/PyLaTeX,JelteF/PyLaTeX,ovaskevich/PyLaTeX | python | ## Code Before:
from .document import Document
from .math import Math, VectorName, Matrix
from .package import Package
from .section import Section, Subsection, Subsubsection
from .table import Table, MultiColumn, MultiRow, Tabular
from .pgfplots import TikZ, Axis, Plot
from .graphics import Figure, SubFigure, Matplot... |
25b767137800b7723804576a924e44cb8c096ff4 | functions/_pure_prompt_host.fish | functions/_pure_prompt_host.fish | function _pure_prompt_host
set --local hostname (hostname -s) # current host name
set --local hostname_color "$pure_host_color"
echo "$hostname_color$hostname"
end
| function _pure_prompt_host
set -qg hostname
or set --local hostname (hostname -s) # current host name
set --local hostname_color "$pure_host_color"
echo "$hostname_color$hostname"
end | Change hostname variable name to avoid scope error | Change hostname variable name to avoid scope error
Add check for existing fish `hostname` variable
| fish | mit | rafaelrinaldi/pure | fish | ## Code Before:
function _pure_prompt_host
set --local hostname (hostname -s) # current host name
set --local hostname_color "$pure_host_color"
echo "$hostname_color$hostname"
end
## Instruction:
Change hostname variable name to avoid scope error
Add check for existing fish `hostname` variable
## Code A... |
6ebc59148b513f358a3b76c7364eb6cf6f97b0d5 | setup.py | setup.py | from setuptools import setup
setup(name='borg-summon',
version='0.1',
description='A wrapper for the backup program borg',
url='http://github.com/grensjo/borg-summon',
author='Anton Grensjö',
author_email='anton@grensjo.se',
license='MIT',
packages=['borg_summon'],
install_requires=[
... | from setuptools import setup
setup(name='borg-summon',
version='0.1',
description='A work-in-progress wrapper for automating BorgBackup use',
url='https://github.com/grensjo/borg-summon',
author='Anton Grensjö',
author_email='anton@grensjo.se',
license='MIT',
packages=['borg_summon'],
i... | Update project description and GitHub URL | Update project description and GitHub URL
| Python | mit | grensjo/borg-summon | python | ## Code Before:
from setuptools import setup
setup(name='borg-summon',
version='0.1',
description='A wrapper for the backup program borg',
url='http://github.com/grensjo/borg-summon',
author='Anton Grensjö',
author_email='anton@grensjo.se',
license='MIT',
packages=['borg_summon'],
insta... |
0da59ee8c95f2d065b6f0b600f4d6cffd654437e | packages/ddp-client/common/getClientStreamClass.js | packages/ddp-client/common/getClientStreamClass.js | import { Meteor } from 'meteor/meteor';
// In the client and server entry points, we make sure the
// bundler loads the correct thing. Here, we just need to
// make sure that we require the right one.
export default function getClientStreamClass() {
// The static analyzer of the bundler specifically looks
// for d... | import { Meteor } from 'meteor/meteor';
// In the client and server entry points, we make sure the
// bundler loads the correct thing. Here, we just need to
// make sure that we require the right one.
export default function getClientStreamClass() {
// The static analyzer of the bundler specifically looks
// for s... | Switch to more concise require as suggested by Ben | Switch to more concise require as suggested by Ben
| JavaScript | mit | Hansoft/meteor,Hansoft/meteor,Hansoft/meteor,Hansoft/meteor,Hansoft/meteor,Hansoft/meteor,Hansoft/meteor | javascript | ## Code Before:
import { Meteor } from 'meteor/meteor';
// In the client and server entry points, we make sure the
// bundler loads the correct thing. Here, we just need to
// make sure that we require the right one.
export default function getClientStreamClass() {
// The static analyzer of the bundler specifically ... |
9ffc363cc05504bd8051d0bd689ae97d939aab00 | doc/spicy/index.rst | doc/spicy/index.rst |
==================================================
Spicy: A Parser Generator For Network Protocols
==================================================
.. note::
As you work with Spicy, you'll see a different name pop up
sometimes: *Spicy*, which is Spicy's early name from when the
project started. We have sin... |
==================================================
Spicy: A Parser Generator For Network Protocols
==================================================
Table of Contents:
.. toctree::
:maxdepth: 3
:numbered:
intro
reference/index
bro/index
c-api
internals
Index
* :ref:`genindex`
* :ref:`modinde... | Remove note regarding BinPAC++ from Spicy doc | Remove note regarding BinPAC++ from Spicy doc
Since Spicy version 0.5 all tools have been renamed
and there is no reference to BinPAC++ in the code.
So we can delete the note. A hint is still left
on the HILTI home page.
| reStructuredText | bsd-3-clause | rsmmr/hilti,rsmmr/hilti,rsmmr/hilti,rsmmr/hilti,rsmmr/hilti | restructuredtext | ## Code Before:
==================================================
Spicy: A Parser Generator For Network Protocols
==================================================
.. note::
As you work with Spicy, you'll see a different name pop up
sometimes: *Spicy*, which is Spicy's early name from when the
project star... |
c05d87dc62fedc871e075e2052a9b5f85d06e2b7 | rome.rb | rome.rb | class Rome < Formula
desc "A shared cache tool for Carthage on S3"
homepage "https://github.com/blender/Rome"
url "https://github.com/blender/Rome/releases/download/v0.13.1.35/rome.zip"
sha256 "56216f143e0cdea294319a09868cc4523d7407a1fee733132f12ee5e6299e393"
bottle :unneeded
def install
bin.install "... | class Rome < Formula
desc "A shared cache tool for Carthage on S3"
homepage "https://github.com/blender/Rome"
url "https://github.com/blender/Rome/releases/download/v0.14.0.38/rome.zip"
sha256 "2ca7df9a9ffeed2967a5056d052c6d8ce9d7f956fc3646e9e6e72c5a9d9aee93"
bottle :unneeded
def install
bin.install "... | Update Rome formula to 0.14.0.38 | Update Rome formula to 0.14.0.38
| Ruby | mit | blender/homebrew-tap | ruby | ## Code Before:
class Rome < Formula
desc "A shared cache tool for Carthage on S3"
homepage "https://github.com/blender/Rome"
url "https://github.com/blender/Rome/releases/download/v0.13.1.35/rome.zip"
sha256 "56216f143e0cdea294319a09868cc4523d7407a1fee733132f12ee5e6299e393"
bottle :unneeded
def install
... |
e5974cdc5650bd01c813fddb6640f04e53e5d339 | AudioKit/Common/Internals/Helpers/ExceptionCatcher.swift | AudioKit/Common/Internals/Helpers/ExceptionCatcher.swift | //
// ExceptionCatcher.swift
// AudioKit
//
// Created by Stéphane Peter, revision history on Github.
// Copyright © 2018 AudioKit. All rights reserved.
//
import Foundation
extension NSException: Error
{
public var domain: String { return "io.audiokit.SwiftExceptionCatcher" }
public var code: Int { retur... | //
// ExceptionCatcher.swift
// AudioKit
//
// Created by Stéphane Peter, revision history on Github.
// Copyright © 2018 AudioKit. All rights reserved.
//
import Foundation
public func AKTry(_ operation: @escaping (() throws -> Void)) throws
{
var error: Error?
let theTry = {
do {
... | Throw NSException inside of NSError | Throw NSException inside of NSError
| Swift | mit | audiokit/AudioKit,adamnemecek/AudioKit,audiokit/AudioKit,eljeff/AudioKit,audiokit/AudioKit,eljeff/AudioKit,adamnemecek/AudioKit,adamnemecek/AudioKit,adamnemecek/AudioKit,eljeff/AudioKit,audiokit/AudioKit,eljeff/AudioKit | swift | ## Code Before:
//
// ExceptionCatcher.swift
// AudioKit
//
// Created by Stéphane Peter, revision history on Github.
// Copyright © 2018 AudioKit. All rights reserved.
//
import Foundation
extension NSException: Error
{
public var domain: String { return "io.audiokit.SwiftExceptionCatcher" }
public var c... |
4709f623b41dffe1ad227908e3f92782987bbfa9 | server/models/card/card.js | server/models/card/card.js | 'use strict';
var mongoose = require('mongoose');
const WAITING_FOR_PRINT = 'WAITING_FOR_PRINT';
const PRINTED_WAITING_FOR_SEND = 'PRINTED_WAITING_FOR_SEND';
const SENT = 'SENT';
var statusKeys = [
WAITING_FOR_PRINT,
PRINTED_WAITING_FOR_SEND,
SENT
];
var cardSchema = mongoose.Schema({
message: Stri... | 'use strict';
var mongoose = require('mongoose');
const WAITING_FOR_PRINT = 'WAITING_FOR_PRINT';
const PRINTED_WAITING_FOR_SEND = 'PRINTED_WAITING_FOR_SEND';
const SENT = 'SENT';
var statusKeys = [
WAITING_FOR_PRINT,
PRINTED_WAITING_FOR_SEND,
SENT
];
var cardSchema = mongoose.Schema({
message: { typ... | Make message field as required | Make message field as required
| JavaScript | mit | denisnarush/postcard,denisnarush/postcard | javascript | ## Code Before:
'use strict';
var mongoose = require('mongoose');
const WAITING_FOR_PRINT = 'WAITING_FOR_PRINT';
const PRINTED_WAITING_FOR_SEND = 'PRINTED_WAITING_FOR_SEND';
const SENT = 'SENT';
var statusKeys = [
WAITING_FOR_PRINT,
PRINTED_WAITING_FOR_SEND,
SENT
];
var cardSchema = mongoose.Schema({
... |
bf9ce5a438d1cf4bb9a54f067dc3e9900cf9a532 | app/overview/overview-home.component.ts | app/overview/overview-home.component.ts | import {Component, OnInit, Inject, ViewChild, TemplateRef} from '@angular/core';
import {Router} from '@angular/router';
import {IdaiFieldDocument} from '../model/idai-field-document';
import {ObjectList} from "./object-list";
import {Messages} from "idai-components-2/idai-components-2";
import {M} from "../m";
import ... | import {Component} from "@angular/core";
@Component({
moduleId: module.id,
template: ``
})
/**
*/
export class OverviewHomeComponent {}
| Make overview home showing just blank space. | Make overview home showing just blank space.
| TypeScript | apache-2.0 | codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client | typescript | ## Code Before:
import {Component, OnInit, Inject, ViewChild, TemplateRef} from '@angular/core';
import {Router} from '@angular/router';
import {IdaiFieldDocument} from '../model/idai-field-document';
import {ObjectList} from "./object-list";
import {Messages} from "idai-components-2/idai-components-2";
import {M} from... |
c613b59861d24a7627844114933c318423d18866 | alpha_helix_generator/geometry.py | alpha_helix_generator/geometry.py | import numpy as np
| import numpy as np
def normalize(v):
'''Normalize a vector based on its 2 norm.'''
if 0 == np.linalg.norm(v):
return v
return v / np.linalg.norm(v)
def create_frame_from_three_points(p1, p2, p3):
'''Create a left-handed coordinate frame from 3 points.
The p2 is the origin; the y-axis is ... | Add some basic geometric functions. | Add some basic geometric functions.
| Python | bsd-3-clause | xingjiepan/ss_generator | python | ## Code Before:
import numpy as np
## Instruction:
Add some basic geometric functions.
## Code After:
import numpy as np
def normalize(v):
'''Normalize a vector based on its 2 norm.'''
if 0 == np.linalg.norm(v):
return v
return v / np.linalg.norm(v)
def create_frame_from_three_points(p1, p2, p3... |
8cac0c660eee774c32b87d2511e4d2eeddf0ffe8 | scripts/slave/chromium/dart_buildbot_run.py | scripts/slave/chromium/dart_buildbot_run.py |
import sys
from common import chromium_utils
def main():
return chromium_utils.RunCommand(
[sys.executable,
'src/build/buildbot_annotated_steps.py',
])
if __name__ == '__main__':
sys.exit(main())
|
import os
import sys
from common import chromium_utils
def main():
builder_name = os.getenv('BUILDBOT_BUILDERNAME', default='')
is_release_bot = builder_name.startswith('release')
script = ''
if is_release_bot:
script = 'src/dartium_tools/buildbot_release_annotated_steps.py'
else:
script = 'src/dar... | Call dartium_tools/buildbot_annotated_steps.py directly, there is no need for moving this as part of the dartium patching process. | Call dartium_tools/buildbot_annotated_steps.py directly, there is no need for moving this as part of the dartium patching process.
Additionally, start calling a new script for release builds (there are none yet, but this is what will be used to build the sdk and editor)
TBR=foo
Review URL: https://chromiumcodereview... | Python | bsd-3-clause | eunchong/build,eunchong/build,eunchong/build,eunchong/build | python | ## Code Before:
import sys
from common import chromium_utils
def main():
return chromium_utils.RunCommand(
[sys.executable,
'src/build/buildbot_annotated_steps.py',
])
if __name__ == '__main__':
sys.exit(main())
## Instruction:
Call dartium_tools/buildbot_annotated_steps.py directly, there ... |
7267bdd56fa8e5c446286eafb08fd85b26152297 | .travis.yml | .travis.yml | language: python
python:
- 2.7
install: sudo setup_panda.sh
script: python manage.py test panda
| language: python
python:
- 2.7
before_script: sudo setup_panda.sh
script: python manage.py test panda
| Use before_script isntead of install. | Use before_script isntead of install.
| YAML | mit | newsapps/panda,datadesk/panda,datadesk/panda,NUKnightLab/panda,NUKnightLab/panda,datadesk/panda,PalmBeachPost/panda,pandaproject/panda,ibrahimcesar/panda,NUKnightLab/panda,NUKnightLab/panda,PalmBeachPost/panda,newsapps/panda,datadesk/panda,PalmBeachPost/panda,PalmBeachPost/panda,ibrahimcesar/panda,newsapps/panda,pandap... | yaml | ## Code Before:
language: python
python:
- 2.7
install: sudo setup_panda.sh
script: python manage.py test panda
## Instruction:
Use before_script isntead of install.
## Code After:
language: python
python:
- 2.7
before_script: sudo setup_panda.sh
script: python manage.py test panda
|
47bff0013cb7700bce366cea36319acfc9999cf1 | CHANGES.txt | CHANGES.txt | NEXT RELEASE
- New primitive and object types for boolean, string, and number.
- Remove the option definition property.
- Rename o.extend to o.augment.
- Rename the default definition property to devoid.
- Rename the extends writer property to augments.
0.0.3 : 2013-03-24
- New types extension (o-types.js).
0.0... | NEXT RELEASE
- New primitive and object types for boolean, string, and number.
- Remove the option definition property.
- Rename o.extend to o.augment.
- Rename the default definition property to devoid.
- Rename the extends writer property to augments.
- Rename the isa writer property to type.
0.0.3 : 2013-03-2... | Document isa to type rename in the change log. | Document isa to type rename in the change log.
| Text | mit | bluefeet/o-js,bluefeet/o-js | text | ## Code Before:
NEXT RELEASE
- New primitive and object types for boolean, string, and number.
- Remove the option definition property.
- Rename o.extend to o.augment.
- Rename the default definition property to devoid.
- Rename the extends writer property to augments.
0.0.3 : 2013-03-24
- New types extension (o... |
e87fdb0ecfb49bb458e14f734cc6155da91ee443 | README.md | README.md |
[](https://ci.appveyor.com/project/mrahhal/mr-aspnet-identity-entityframework6)
[](https://www.nuget.org/packages/MR.AspNet.I... |
[](https://ci.appveyor.com/project/mrahhal/mr-aspnet-identity-entityframework6)
[](https://www.nuget.org/packages/MR.AspNet.Identit... | Use Version Badge for nuget badges | Use Version Badge for nuget badges | Markdown | mit | mrahhal/MR.AspNet.Identity.EntityFramework6 | markdown | ## Code Before:
[](https://ci.appveyor.com/project/mrahhal/mr-aspnet-identity-entityframework6)
[](https://www.nuget.org/pack... |
3fb475ad2bae86a0632d8f6ac0561857c3a9f2e1 | .travis.yml | .travis.yml | language: android
android:
components:
# The BuildTools version
- build-tools-21.0.1
# The SDK version
- android-21
# Env matrix
env:
matrix:
- ANDROID_SDKS=android-10 ANDROID_TARGET=android-10 ANDROID_ABI=armeabi
- ANDROID_SDKS=android-19,sysimg-19 ANDROID_TARGET=android-19 ... | language: android
android:
components:
# The BuildTools version
- build-tools-21.0.1
# The SDK version
- android-21
jdk:
- openjdk5
- openjdk7
# Env matrix
env:
matrix:
- ANDROID_SDKS=android-10 ANDROID_TARGET=android-10 ANDROID_ABI=armeabi
- ANDROID_SDKS=android-19,sysimg... | Build also against Java 5 | Build also against Java 5
| YAML | apache-2.0 | davide-maestroni/jroutine,davide-maestroni/jroutine | yaml | ## Code Before:
language: android
android:
components:
# The BuildTools version
- build-tools-21.0.1
# The SDK version
- android-21
# Env matrix
env:
matrix:
- ANDROID_SDKS=android-10 ANDROID_TARGET=android-10 ANDROID_ABI=armeabi
- ANDROID_SDKS=android-19,sysimg-19 ANDROID_TAR... |
672d8f065cb69f07641e7fdc258b34a7bc1c6e3d | src/CMakeLists.txt | src/CMakeLists.txt | cmake_minimum_required(VERSION 3.2.2)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -Wextra")
# Enable CCache if found
include(${CMAKE_SOURCE_DIR}/cmake/CCache.cmake... | cmake_minimum_required(VERSION 3.2.2)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -Wextra -Wpedantic")
# Enable CCache if found
include(${CMAKE_SOURCE_DIR}/cmake/C... | Add pedantic flag to compiler | Add pedantic flag to compiler
| Text | mit | dea82/StateMachineCreator,dea82/StateMachineCreator | text | ## Code Before:
cmake_minimum_required(VERSION 3.2.2)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -Wextra")
# Enable CCache if found
include(${CMAKE_SOURCE_DIR}/cm... |
c7cff38c277ad55531a8f5f1ad97e3f2e2020adb | lib/bibliothecary/parsers/swift_pm.rb | lib/bibliothecary/parsers/swift_pm.rb | module Bibliothecary
module Parsers
class SwiftPM
include Bibliothecary::Analyser
def self.parse(filename, path)
if filename.match(/^Package\.swift$/i)
file_contents = File.open(path).read
parse_package_swift(file_contents)
else
[]
end
end
... | module Bibliothecary
module Parsers
class SwiftPM
include Bibliothecary::Analyser
def self.parse(filename, path)
if filename.match(/^Package\.swift$/i)
file_contents = File.open(path).read
parse_package_swift(file_contents)
else
[]
end
end
... | Update link to swift parser | Update link to swift parser
| Ruby | agpl-3.0 | librariesio/bibliothecary,librariesio/bibliothecary | ruby | ## Code Before:
module Bibliothecary
module Parsers
class SwiftPM
include Bibliothecary::Analyser
def self.parse(filename, path)
if filename.match(/^Package\.swift$/i)
file_contents = File.open(path).read
parse_package_swift(file_contents)
else
[]
... |
2ab919b65cba55026df1baaa3dec6561e03f398f | deployment/post-install-tasks.yml | deployment/post-install-tasks.yml | ---
- name: 'Ensure Git-repository-updating cron job exists'
ansible.builtin.cron:
cron_file: '{{ __release_crontab }}'
job: 'nice -n 10 bash -c "{{ __release_base_directory }}/private/bin/update-git-repositories"'
name: 'Update Git Repositories'
user: 'root'
| ---
- name: 'Ensure Git-repository-updating cron job exists'
ansible.builtin.cron:
cron_file: '{{ __release_crontab }}'
hour: '0'
job: 'nice -n 10 bash -c "{{ __release_base_directory }}/private/bin/update-git-repositories"'
name: 'Update Git Repositories'
user: 'root'
| Reduce frequency of Git-repository-updating job. | Reduce frequency of Git-repository-updating job.
| YAML | mit | damiendart/robotinaponcho,damiendart/robotinaponcho,damiendart/robotinaponcho | yaml | ## Code Before:
---
- name: 'Ensure Git-repository-updating cron job exists'
ansible.builtin.cron:
cron_file: '{{ __release_crontab }}'
job: 'nice -n 10 bash -c "{{ __release_base_directory }}/private/bin/update-git-repositories"'
name: 'Update Git Repositories'
user: 'root'
## Instruction:
Reduce f... |
e63bf1b294f4573da27b76a25b6490e6018d92a3 | README.md | README.md |
[](https://greenkeeper.io/)
mein.berlin is a participation platform for the city of berlin, germany. It is
based on [adhocracy 4](https://github.com/liqd/adhocracy4).
## Requirements
* nodejs (+ npm)
* python 3.x (+ pip)
* libmagic
* ... |
mein.berlin is a participation platform for the city of berlin, germany. It is
based on [adhocracy 4](https://github.com/liqd/adhocracy4).
## Requirements
* nodejs (+ npm)
* python 3.x (+ pip)
* libmagic
* libjpeg
* libpq (only if postgres should be used)
## Installation
git clone https://github.com/... | Revert "docs(readme): add Greenkeeper badge" | Revert "docs(readme): add Greenkeeper badge"
This reverts commit 1e136e2cf8153b347af660e0cc484897b778d7aa.
| Markdown | agpl-3.0 | liqd/a4-meinberlin,liqd/a4-meinberlin,liqd/a4-meinberlin,liqd/a4-meinberlin | markdown | ## Code Before:
[](https://greenkeeper.io/)
mein.berlin is a participation platform for the city of berlin, germany. It is
based on [adhocracy 4](https://github.com/liqd/adhocracy4).
## Requirements
* nodejs (+ npm)
* python 3.x (+ pip)
*... |
dbe717878a965c8cf89e4a226ea9e158687c68e5 | test/CodeGen/X86/pr13577.ll | test/CodeGen/X86/pr13577.ll | ; RUN: llc < %s -march=x86-64
define x86_fp80 @foo(x86_fp80 %a) {
%1 = tail call x86_fp80 @copysignl(x86_fp80 0xK7FFF8000000000000000, x86_fp80 %a) nounwind readnone
ret x86_fp80 %1
}
declare x86_fp80 @copysignl(x86_fp80, x86_fp80) nounwind readnone
| ; RUN: llc < %s -march=x86-64 | FileCheck %s
; CHECK-LABEL: LCPI0_0:
; CHECK-NEXT: .long 4286578688
; CHECK-LABEL: LCPI0_1:
; CHECK-NEXT: .long 2139095040
; CHECK-LABEL: foo:
; CHECK: movq {{.*}}, %rax
; CHECK: shlq $48, %rax
; CHECK: sets %al
; CHECK: testb %al, %al
; CHECK: flds LCPI0_0(%rip)
; CHECK: flds LCPI0_1(... | Check output of x86 copysignl testcase. | X86: Check output of x86 copysignl testcase.
This makes the changes in an upcoming patch visible.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@242106 91177308-0d34-0410-b5e6-96231b3b80d8
| LLVM | apache-2.0 | llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm... | llvm | ## Code Before:
; RUN: llc < %s -march=x86-64
define x86_fp80 @foo(x86_fp80 %a) {
%1 = tail call x86_fp80 @copysignl(x86_fp80 0xK7FFF8000000000000000, x86_fp80 %a) nounwind readnone
ret x86_fp80 %1
}
declare x86_fp80 @copysignl(x86_fp80, x86_fp80) nounwind readnone
## Instruction:
X86: Check output of x86 copysi... |
928507957bc4a9b6382fc51d5a6367d217cf2ce6 | environment/stage5/make-keyword.lisp | environment/stage5/make-keyword.lisp | (define-filter make-keywords (x)
(make-keyword x))
(fn make-keyword (x)
(& x
(make-symbol (? (symbol? x)
(symbol-name x)
x)
"KEYWORD")))
| (define-filter make-keywords (x)
(make-keyword x))
(fn make-keyword (x)
(& x
(make-symbol (? (symbol? x)
(symbol-name x)
x)
*keyword-package*)))
| Use *KEYWORD-PACKAGE* instead of "KEYWORD" with MAKE-SYMBOL. | Use *KEYWORD-PACKAGE* instead of "KEYWORD" with MAKE-SYMBOL.
| Common Lisp | mit | SvenMichaelKlose/tre,SvenMichaelKlose/tre,SvenMichaelKlose/tre | common-lisp | ## Code Before:
(define-filter make-keywords (x)
(make-keyword x))
(fn make-keyword (x)
(& x
(make-symbol (? (symbol? x)
(symbol-name x)
x)
"KEYWORD")))
## Instruction:
Use *KEYWORD-PACKAGE* instead of "KEYWORD" with MAKE-SYMBOL.
## Code After:
(de... |
6e6993c42bbc1ac0fa92eb154954b1d5acdc50df | lib/did_you_mean/strategies/similar_attribute_finder.rb | lib/did_you_mean/strategies/similar_attribute_finder.rb | module DidYouMean
class SimilarAttributeFinder
attr_reader :columns, :attribute_name
def self.build(exception)
columns = exception.frame_binding.eval("self.class").columns
attribute_name = exception.original_message.gsub("unknown attribute: ", "")
new(attribute_name, columns)
en... | module DidYouMean
class SimilarAttributeFinder
attr_reader :columns, :attribute_name
def self.build(exception)
columns = exception.frame_binding.eval("self.class").columns
attribute_name = exception.original_message.gsub("unknown attribute: ", "")
new(attribute_name, columns)
en... | Remove method that doesn't have to be a method | Remove method that doesn't have to be a method
| Ruby | mit | yui-knk/did_you_mean,yuki24/did_you_mean,Ye-Yong-Chi/did_you_mean | ruby | ## Code Before:
module DidYouMean
class SimilarAttributeFinder
attr_reader :columns, :attribute_name
def self.build(exception)
columns = exception.frame_binding.eval("self.class").columns
attribute_name = exception.original_message.gsub("unknown attribute: ", "")
new(attribute_name,... |
18b878fccdc74cf9871f5e6bf64a337ce0c3007f | runtime/bin/utils_macos.cc | runtime/bin/utils_macos.cc | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include <errno.h>
#include "bin/utils.h"
OSError::OSError() {
set_code(errno);
SetMessage(strerr... | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include <errno.h>
#include "bin/utils.h"
OSError::OSError() : code_(0), message_(NULL) {
set_code(... | Fix missing member initialization on Mac OS | Fix missing member initialization on Mac OS
TBR=ager@google.com
Fix Mac OS build\n\nTBR=ager@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9694037
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@5400 260f80e4-7a28-3924-810f-c04153c831b5
| C++ | bsd-3-clause | dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-... | c++ | ## Code Before:
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include <errno.h>
#include "bin/utils.h"
OSError::OSError() {
set_code(errno);
S... |
9d0a5d5dfb78664010fa7cf79b177e2a19d3561c | app/src/main/java/com/veyndan/redditclient/post/mutator/Mutators.java | app/src/main/java/com/veyndan/redditclient/post/mutator/Mutators.java | package com.veyndan.redditclient.post.mutator;
import com.google.common.collect.ImmutableList;
import com.veyndan.redditclient.post.model.Post;
import java.util.List;
import rx.functions.Action1;
public final class Mutators {
/**
* All available mutator factories.
* <p>
* Note that the order of ... | package com.veyndan.redditclient.post.mutator;
import com.google.common.collect.ImmutableList;
import com.veyndan.redditclient.post.model.Post;
import java.util.List;
import rx.functions.Action1;
public final class Mutators {
/**
* All available mutator factories.
* <p>
* Note that the order of ... | Stop mutating a post after the first applicable mutation | Stop mutating a post after the first applicable mutation
| Java | mit | veyndan/paper-for-reddit,veyndan/paper-for-reddit,veyndan/reddit-client | java | ## Code Before:
package com.veyndan.redditclient.post.mutator;
import com.google.common.collect.ImmutableList;
import com.veyndan.redditclient.post.model.Post;
import java.util.List;
import rx.functions.Action1;
public final class Mutators {
/**
* All available mutator factories.
* <p>
* Note th... |
82a5b9ac62a34c18f5336208621338dd65674335 | modules/coroutines/src/commonMain/kotlin/splitties/coroutines/SendChannel.kt | modules/coroutines/src/commonMain/kotlin/splitties/coroutines/SendChannel.kt | /*
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
package splitties.coroutines
import kotlinx.coroutines.CancellationException
import kotlinx.coroutines.channels.SendChannel
/**
* [SendChannel.offer] that returns `false` when this [SendChannel.isClo... | /*
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
package splitties.coroutines
import kotlinx.coroutines.CancellationException
import kotlinx.coroutines.channels.SendChannel
/**
* [SendChannel.offer] that returns `false` when this [SendChannel.isClo... | Add link to relevant issue | Add link to relevant issue
| Kotlin | apache-2.0 | LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties | kotlin | ## Code Before:
/*
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
package splitties.coroutines
import kotlinx.coroutines.CancellationException
import kotlinx.coroutines.channels.SendChannel
/**
* [SendChannel.offer] that returns `false` when this [S... |
6e74e3b50e927e847acb87fc59dc9b5ebc6de926 | src/Microsoft.DotNet.Archive/LZMA/README.md | src/Microsoft.DotNet.Archive/LZMA/README.md | This source came from the C# implementation of LZMA from the LZMA SDK, version 16.02, from http://www.7-zip.org/sdk.html.
## License
The LZMA SDK is public domain. Thanks goes to Igor Pavlov for making this available.
| This source came from the C# implementation of LZMA from the LZMA SDK, version 16.02, from http://www.7-zip.org/sdk.html.
## License
LZMA SDK is placed in the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute the original LZMA SDK code, either in source code form or as a compil... | Update LZMA license with correct text | Update LZMA license with correct text
| Markdown | mit | harshjain2/cli,Faizan2304/cli,ravimeda/cli,dasMulli/cli,EdwardBlair/cli,johnbeisner/cli,Faizan2304/cli,harshjain2/cli,Faizan2304/cli,ravimeda/cli,johnbeisner/cli,blackdwarf/cli,svick/cli,livarcocc/cli-1,ravimeda/cli,jonsequitur/cli,jonsequitur/cli,dasMulli/cli,livarcocc/cli-1,EdwardBlair/cli,harshjain2/cli,jonsequitur/... | markdown | ## Code Before:
This source came from the C# implementation of LZMA from the LZMA SDK, version 16.02, from http://www.7-zip.org/sdk.html.
## License
The LZMA SDK is public domain. Thanks goes to Igor Pavlov for making this available.
## Instruction:
Update LZMA license with correct text
## Code After:
This source c... |
6e8b9fe6e24af56cbb6294c68e267ee6e48faf0e | spec/classes/ansible_spec.rb | spec/classes/ansible_spec.rb | require 'spec_helper'
describe 'ansible' do
it { is_expected.to compile.with_all_deps }
it { should contain_class('ansible') }
it {
should contain_class('ansible::install')
.that_comes_before('Class[ansible::config]')
}
it { should contain_class('ansible::config') }
describe 'ansible::install' ... | require 'spec_helper'
describe 'ansible' do
let(:facts) do
{
'operatingsystem' => 'CentOS',
}
end
it { is_expected.to compile.with_all_deps }
it { should contain_class('ansible') }
it {
should contain_class('ansible::install')
.that_comes_before('Class[ansible::config]')
}
it { s... | Include facts in rspec test | Include facts in rspec test
| Ruby | apache-2.0 | otherskins/puppet-ansible | ruby | ## Code Before:
require 'spec_helper'
describe 'ansible' do
it { is_expected.to compile.with_all_deps }
it { should contain_class('ansible') }
it {
should contain_class('ansible::install')
.that_comes_before('Class[ansible::config]')
}
it { should contain_class('ansible::config') }
describe 'an... |
8e8370a76c67d7905c73bcb808f89e3cd4b994a3 | runtests.py | runtests.py | import django
from django.conf import settings
from django.core.management import call_command
settings.configure(
DATABASES={
'default': {
'ENGINE': 'django.db.backends.sqlite3',
}
},
ALLOWED_HOSTS=[
'testserver',
],
INSTALLED_APPS=[
'django.contrib.aut... | import django
from django.conf import settings
from django.core.management import call_command
settings.configure(
DATABASES={
'default': {
'ENGINE': 'django.db.backends.sqlite3',
}
},
ALLOWED_HOSTS=[
'testserver',
],
INSTALLED_APPS=[
'django.contrib.aut... | Add PERMISSIONS setting to test settings | Add PERMISSIONS setting to test settings
| Python | mit | wylee/django-perms,PSU-OIT-ARC/django-perms | python | ## Code Before:
import django
from django.conf import settings
from django.core.management import call_command
settings.configure(
DATABASES={
'default': {
'ENGINE': 'django.db.backends.sqlite3',
}
},
ALLOWED_HOSTS=[
'testserver',
],
INSTALLED_APPS=[
'dj... |
643e2b07e5a741e4e1e740b1ea3d32932d5e3631 | .travis.yml | .travis.yml | language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
matrix:
include:
- php: hhvm
- php: 5.4
env: check_cs=true
- php: 5.5
- php: 5.6
env: deps=low coverage=true
- php: 5.6
env: deps=high coverage=true
- ph... | language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
matrix:
include:
- php: hhvm
- php: 5.4
env: check_cs=true
- php: 5.5
- php: 5.6
env: deps=low coverage=true
- php: 5.6
env: deps=high coverage=true
- ph... | Add PHP 7.1, 7.2, and 7.3 to Travis build matrix | Enhancement: Add PHP 7.1, 7.2, and 7.3 to Travis build matrix
| YAML | mit | pyrech/composer-changelogs,pyrech/composer-changelogs | yaml | ## Code Before:
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
matrix:
include:
- php: hhvm
- php: 5.4
env: check_cs=true
- php: 5.5
- php: 5.6
env: deps=low coverage=true
- php: 5.6
env: deps=high coverage=t... |
714ad071ca683fc92f1f7627de89e5e60639b778 | resources/views/account/api.blade.php | resources/views/account/api.blade.php | @extends('layouts/default')
{{-- Page title --}}
@section('title')
Personal API Keys
@parent
@stop
{{-- Page content --}}
@section('content')
@if (!config('app.lock_passwords'))
<passport-personal-access-tokens
token-url="{{ url('oauth/personal-access-tokens') }}"
scopes-u... | @extends('layouts/default')
{{-- Page title --}}
@section('title')
Personal API Keys
@parent
@stop
{{-- Page content --}}
@section('content')
<div class="row">
<div class="col-md-8">
@if (!config('app.lock_passwords'))
<passport-personal-access-token... | Add API endpoint to API keys page | Add API endpoint to API keys page
// TODO - localize it
| PHP | agpl-3.0 | uberbrady/snipe-it,snipe/snipe-it,mtucker6784/snipe-it,snipe/snipe-it,uberbrady/snipe-it,uberbrady/snipe-it,mtucker6784/snipe-it,snipe/snipe-it,mtucker6784/snipe-it,uberbrady/snipe-it,mtucker6784/snipe-it,uberbrady/snipe-it,mtucker6784/snipe-it,snipe/snipe-it | php | ## Code Before:
@extends('layouts/default')
{{-- Page title --}}
@section('title')
Personal API Keys
@parent
@stop
{{-- Page content --}}
@section('content')
@if (!config('app.lock_passwords'))
<passport-personal-access-tokens
token-url="{{ url('oauth/personal-access-tokens') }}"
... |
a34b2269c3749a5c014e2fcdd663795f3c8f1731 | lib/auth/token-container.js | lib/auth/token-container.js | var crypto = require('crypto');
var _ = require('underscore');
function TokenContainer() {
this._tokens = {};
this._startGarbageCollecting();
}
TokenContainer._hourMs = 60 * 60 * 1000;
TokenContainer._collectorIntervalMs = 12 * TokenContainer._hourMs;
TokenContainer._oudatedTimeMs = 48 * TokenContainer._hourMs;
... | var crypto = require('crypto');
var _ = require('underscore');
function TokenContainer() {
this._tokens = {};
this._startGarbageCollecting();
}
TokenContainer._hourMs = 60 * 60 * 1000;
TokenContainer._collectorIntervalMs = 12 * TokenContainer._hourMs;
TokenContainer._oudatedTimeMs = 48 * TokenContainer._hourMs;
... | Remove https restriction from cookie setter. | Remove https restriction from cookie setter.
| JavaScript | mit | cargomedia/pulsar-rest-api,njam/pulsar-rest-api,cargomedia/pulsar-rest-api,njam/pulsar-rest-api,cargomedia/pulsar-rest-api,vogdb/pulsar-rest-api,cargomedia/pulsar-rest-api,njam/pulsar-rest-api,vogdb/pulsar-rest-api,njam/pulsar-rest-api,vogdb/pulsar-rest-api | javascript | ## Code Before:
var crypto = require('crypto');
var _ = require('underscore');
function TokenContainer() {
this._tokens = {};
this._startGarbageCollecting();
}
TokenContainer._hourMs = 60 * 60 * 1000;
TokenContainer._collectorIntervalMs = 12 * TokenContainer._hourMs;
TokenContainer._oudatedTimeMs = 48 * TokenCont... |
6097c9395a8b61346c33c8ccac8884a2ac71e874 | portal/app/Console/Commands/TestSmtpCredentials.php | portal/app/Console/Commands/TestSmtpCredentials.php | <?php
namespace App\Console\Commands;
use Exception;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Mail;
class TestSmtpCredentials extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'sonar:test:smtp {email}';
... | <?php
namespace App\Console\Commands;
use Exception;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Mail;
class TestSmtpCredentials extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $s... | Send the test SMTP message from the configured from address/name | Send the test SMTP message from the configured from address/name
| PHP | mit | sunithawisptools/customer_portal,sunithawisptools/customer_portal,sunithawisptools/customer_portal,SonarSoftware/customer_portal,SonarSoftware/customer_portal,sunithawisptools/customer_portal,SonarSoftware/customer_portal,SonarSoftware/customer_portal | php | ## Code Before:
<?php
namespace App\Console\Commands;
use Exception;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Mail;
class TestSmtpCredentials extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'sonar:test:... |
d94296e620cf993966138cef3bedc6f4f07a6ca9 | doc/api/index.rst | doc/api/index.rst | =======
Web API
=======
.. toctree::
overview
uploads
jobs
samples
viruses
history
hmm
genbank
users
groups
account
| =======
Web API
=======
.. toctree::
:maxdepth: 1
overview
uploads
jobs
samples
viruses
history
hmm
genbank
users
groups
account
| Change API docs TOC depth | Change API docs TOC depth
| reStructuredText | mit | igboyes/virtool,virtool/virtool,virtool/virtool,igboyes/virtool | restructuredtext | ## Code Before:
=======
Web API
=======
.. toctree::
overview
uploads
jobs
samples
viruses
history
hmm
genbank
users
groups
account
## Instruction:
Change API docs TOC depth
## Code After:
=======
Web API
=======
.. toctree::
:maxdepth: 1
overview
uploads
... |
f397829939531a37238d920f8812d2304888417d | app/views/static/submit/thanks.md | app/views/static/submit/thanks.md | ---
title: Thanks!
---
Thank you for submitting an address.
Why not [mail](mailto:yourfriendsemail@ddresshere?subject=Why not share your address&body=Share an address at openaddressesuk.org to help build an open address list for the UK) a friend to ask them to share an address?
| ---
title: Thanks!
---
Thank you for submitting an address.
Why not [mail](mailto:yourfriendsemail@ddresshere?subject=Why not share your address&body=Share an address at openaddressesuk.org to help build an open address list for the UK) a friend to ask them to share an address?
### Add another address?
<%= include ... | Add submission form to thank you page | Add submission form to thank you page
| Markdown | mit | OpenAddressesUK/theodolite,OpenAddressesUK/theodolite,OpenAddressesUK/theodolite | markdown | ## Code Before:
---
title: Thanks!
---
Thank you for submitting an address.
Why not [mail](mailto:yourfriendsemail@ddresshere?subject=Why not share your address&body=Share an address at openaddressesuk.org to help build an open address list for the UK) a friend to ask them to share an address?
## Instruction:
Add su... |
099b220de0b1e00fc2c82125522bc881417e47ed | src/model/SketchItemEllipse.cpp | src/model/SketchItemEllipse.cpp |
SketchItemEllipse::SketchItemEllipse(qreal x, qreal y)
: SketchItemBezier(x, y)
{
addPath(QPointF(30, 0), QPointF(50, 20), QPointF(50, 50));
addPath(QPointF(50, 80), QPointF(30, 100), QPointF(0, 100));
addPath(QPointF(-30, 100), QPointF(-40, 80), QPointF(-40, 50));
addPath(QPointF(-40, 20), QPointF... |
// Constants
static const uint TOP_INDEX = 12;
static const uint RIGHT_INDEX = 3;
static const uint BOTTOM_INDEX = 6;
static const uint LEFT_INDEX = 9;
SketchItemEllipse::SketchItemEllipse(qreal x, qreal y)
: SketchItemBezier(x, y)
{
addPath(QPointF(30, 0), QPointF(50, 20), QPointF(50, 50));
add... | Prepare bounding box transform for Ellipse | Prepare bounding box transform for Ellipse
| C++ | apache-2.0 | neuronalmotion/blueprint | c++ | ## Code Before:
SketchItemEllipse::SketchItemEllipse(qreal x, qreal y)
: SketchItemBezier(x, y)
{
addPath(QPointF(30, 0), QPointF(50, 20), QPointF(50, 50));
addPath(QPointF(50, 80), QPointF(30, 100), QPointF(0, 100));
addPath(QPointF(-30, 100), QPointF(-40, 80), QPointF(-40, 50));
addPath(QPointF(-... |
4b4b4e25c7c591ced4d1f6f6a767f814cffcb23f | README.md | README.md | hookly.js asset-pipeline provider/wrapper + connect to the Hookly API
|
1. Ruby wrapper for the Hookly API
2. hookly.js asset pipeline provider/wrapper
Rails 3.1+ asset-pipeline gem to provide hookly.js
#Setup
Add to your Gemfile:
```ruby
gem 'hookly-rails'
```
###JS Setup
Then add this to you application.js manifest:
```javascript
//= require hookly
```
Then check out the [hookly.... | Add information on how to make your first realtime push. | Add information on how to make your first realtime push. | Markdown | mit | bnorton/hookly-rails | markdown | ## Code Before:
hookly.js asset-pipeline provider/wrapper + connect to the Hookly API
## Instruction:
Add information on how to make your first realtime push.
## Code After:
1. Ruby wrapper for the Hookly API
2. hookly.js asset pipeline provider/wrapper
Rails 3.1+ asset-pipeline gem to provide hookly.js
#Setup
Add... |
7cae2101a7c4f037ec3c51fd66410237203abccd | ansible/roles/devstack-packages-prerequisites/tasks/main.yaml | ansible/roles/devstack-packages-prerequisites/tasks/main.yaml | ---
- name: upgrade dnf
dnf: name=dnf state=latest
- name: dnf update
dnf: name='*' state=latest
- name: install basic tools
dnf: name={{item}} state=present
with_items:
- tmux
- python-pip
- vim-minimal
- vim
- xauth
- tigervnc
- git
- python-ipython-console
- the_silver_sea... | ---
- name: upgrade dnf
dnf: name=dnf state=latest
- name: dnf update
dnf: name='*' state=latest
- name: install basic tools
dnf: name={{item}} state=present
with_items:
- tmux
- python-pip
- python2-tox
- python3-tox
- vim-minimal
- vim
- xauth
- tigervnc
- git
- python-... | Add tox to ansible role | Add tox to ansible role
| YAML | mit | jhamhader/sojourn | yaml | ## Code Before:
---
- name: upgrade dnf
dnf: name=dnf state=latest
- name: dnf update
dnf: name='*' state=latest
- name: install basic tools
dnf: name={{item}} state=present
with_items:
- tmux
- python-pip
- vim-minimal
- vim
- xauth
- tigervnc
- git
- python-ipython-console
... |
fe21322b2bf174567e2fa491453b6ea15e6aec9a | README.md | README.md |
[Squoosh] is an image compression web app that provides lossless image quality with a significant reduction to file size.
# API & CLI
Squoosh has [an API](https://github.com/GoogleChromeLabs/squoosh/tree/dev/libsquoosh) and [a CLI](https://github.com/GoogleChromeLabs/squoosh/tree/dev/cli) to compress many images at ... |
[Squoosh] is an image compression web app that provides lossless image quality with a significant reduction to file size.
# API & CLI
Squoosh has [an API](https://github.com/GoogleChromeLabs/squoosh/tree/dev/libsquoosh) and [a CLI](https://github.com/GoogleChromeLabs/squoosh/tree/dev/cli) to compress many images at ... | Update list of develop steps | [DOCS] Update list of develop steps
| Markdown | apache-2.0 | GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh | markdown | ## Code Before:
[Squoosh] is an image compression web app that provides lossless image quality with a significant reduction to file size.
# API & CLI
Squoosh has [an API](https://github.com/GoogleChromeLabs/squoosh/tree/dev/libsquoosh) and [a CLI](https://github.com/GoogleChromeLabs/squoosh/tree/dev/cli) to compress... |
af737fae14d84666b4400d5e9de8c07440ef41cc | .github/PULL_REQUEST_TEMPLATE.md | .github/PULL_REQUEST_TEMPLATE.md | Please:
- [ ] Make your pull request atomic, fixing one issue at a time unless there are many relevant issues that cannot be decoupled.
- [ ] Provide a test case & update the documentation under `site/docs/`
- [ ] Make lint and test pass. (Run `npm run lint`, `npm run test`, `npm run build:examples`.)
- [ ] Make sure y... | Please:
- [ ] Make your pull request atomic, fixing one issue at a time unless there are many relevant issues that cannot be decoupled.
- [ ] Provide a test case & update the documentation under `site/docs/`
- [ ] Make lint and test pass. (Run `npm run lint`, `npm run test`, `npm run build:examples`, `npm run test:runt... | Update PR template to include test:runtime:generate task. | Update PR template to include test:runtime:generate task.
| Markdown | bsd-3-clause | uwdata/vega-lite,vega/vega-lite,uwdata/vega-lite,vega/vega-lite,vega/vega-lite,vega/vega-lite,vega/vega-lite,uwdata/vega-lite,uwdata/vega-lite,uwdata/vega-lite | markdown | ## Code Before:
Please:
- [ ] Make your pull request atomic, fixing one issue at a time unless there are many relevant issues that cannot be decoupled.
- [ ] Provide a test case & update the documentation under `site/docs/`
- [ ] Make lint and test pass. (Run `npm run lint`, `npm run test`, `npm run build:examples`.)
-... |
60a6fba319301962c64a92c70d1b4a548c2b27e9 | twinkles.js | twinkles.js | var TwinklingStar = new Class({
Extends: Star,
initialize: function(options) {
this.parent(options);
if (this.brightness < 4) this.brightness = 4;
this.color = "#eeeeee";
this.stepSeed = Math.random() * Math.PI;
},
draw: function() {
var x = cx(this.pos.x);
... | var TwinklingStar = new Class({
Extends: Star,
initialize: function(options) {
this.parent(options);
if (this.brightness < 4) this.brightness = 4;
this.color = "#eeeeee";
this.stepSeed = Math.random() * Math.PI;
this.stepScale = Math.random() / 3;
},
draw: functio... | Put a bunch of stars together, and you can see that they twinkle at the same rate. | Put a bunch of stars together, and you can see that they twinkle at the same rate.
| JavaScript | artistic-2.0 | alloy-d/canvas51,alloy-d/canvas51 | javascript | ## Code Before:
var TwinklingStar = new Class({
Extends: Star,
initialize: function(options) {
this.parent(options);
if (this.brightness < 4) this.brightness = 4;
this.color = "#eeeeee";
this.stepSeed = Math.random() * Math.PI;
},
draw: function() {
var x = cx(thi... |
bd91b1f980fe0ceeae14b9368e7838c11449e2fb | tests/CMakeLists.txt | tests/CMakeLists.txt | FIND_PACKAGE(Boost 1.55 COMPONENTS unit_test_framework thread regex serialization REQUIRED)
add_executable(utils_test utils_test.cpp)
target_link_libraries(utils_test utils ${Boost_LIBRARIES} log4cplus)
ADD_TEST(utils_test ${EXECUTABLE_OUTPUT_PATH}/utils_test --log_format=XML --log_sink=results_utils_test.xml --log_l... | FIND_PACKAGE(Boost 1.55 COMPONENTS unit_test_framework thread regex serialization REQUIRED)
add_executable(utils_test utils_test.cpp)
target_link_libraries(utils_test utils ${Boost_LIBRARIES} log4cplus)
add_boost_test(utils_test)
add_executable(csvreader_test csvreader_test.cpp)
target_link_libraries(csvreader_test ... | Use boost macro test for all tests | Use boost macro test for all tests
| Text | agpl-3.0 | CanalTP/utils,CanalTP/utils | text | ## Code Before:
FIND_PACKAGE(Boost 1.55 COMPONENTS unit_test_framework thread regex serialization REQUIRED)
add_executable(utils_test utils_test.cpp)
target_link_libraries(utils_test utils ${Boost_LIBRARIES} log4cplus)
ADD_TEST(utils_test ${EXECUTABLE_OUTPUT_PATH}/utils_test --log_format=XML --log_sink=results_utils_... |
a3d4cfe1c62c417f15bfc20c4d9a3fa11910baeb | README.md | README.md | Did you ever wish you could make scatter plots with cat shaped points? Now you can!
Go ahead, treat yourself! There's over 10 cat models now!
git clone the repo and install using:
```
R CMD INSTALL CatterPlot
```
In R:
```
library(CatterPlot)
x <- 1:10
y <- 1:10
catplot(x,y,0.1)
catplot(x,y^2,0.1)
catplot(x^2,y,0... | Did you ever wish you could make scatter plots with cat shaped points? Now you can!
Go ahead, treat yourself! There's over 10 cat models now!
To install, either:
```
library(devtools)
install_github("Gibbsdavidl/CatterPlot")
```
Or git clone the repo and then install using:
```
R CMD INSTALL CatterPlot
```
In R:
`... | Add instructions for install via devtools. | Add instructions for install via devtools.
| Markdown | apache-2.0 | Binhnguen1512/CatterPlots,Gibbsdavidl/CatterPlots | markdown | ## Code Before:
Did you ever wish you could make scatter plots with cat shaped points? Now you can!
Go ahead, treat yourself! There's over 10 cat models now!
git clone the repo and install using:
```
R CMD INSTALL CatterPlot
```
In R:
```
library(CatterPlot)
x <- 1:10
y <- 1:10
catplot(x,y,0.1)
catplot(x,y^2,0.1)... |
2735effc6ecb7ef47371cc5ac42871cb33464694 | doc/src/terms.md | doc/src/terms.md | Term detectors
====================
Lift and translate epimorphisms
- Address term (auipc)
- Constant term (lui/shift/add/sub)
- Nop (many nop encodings)
- Useless branch term (branch to next, branch to branch)
- Spin term detection (unconditional jump to self)
- Implicit Function continuation term (branch target)
- ... | Term detectors
====================
Lift and translate epimorphisms
- Address term (auipc)
- Constant term (lui/shift/add/sub)
- Nop (many nop encodings)
- Useless branch term (branch to next, branch to branch)
- Spin term detection (unconditional jump to self)
- Implicit Function continuation term (branch target)
- ... | Add call lift to term detectors | Add call lift to term detectors
| Markdown | mit | rv8-io/rv8,rv8-io/rv8,rv8-io/rv8 | markdown | ## Code Before:
Term detectors
====================
Lift and translate epimorphisms
- Address term (auipc)
- Constant term (lui/shift/add/sub)
- Nop (many nop encodings)
- Useless branch term (branch to next, branch to branch)
- Spin term detection (unconditional jump to self)
- Implicit Function continuation term (b... |
4785a5e8d639dea1a9cf767d2c77f6bd9dbe2433 | leapp/cli/upgrade/__init__.py | leapp/cli/upgrade/__init__.py | from leapp.utils.clicmd import command, command_opt
from leapp.repository.scan import find_and_scan_repositories
from leapp.config import get_config
from leapp.logger import configure_logger
def load_repositories_from(name, repo_path, manager=None):
if get_config().has_option('repositories', name):
repo_p... | from leapp.utils.clicmd import command, command_opt
from leapp.repository.scan import find_and_scan_repositories
from leapp.config import get_config
from leapp.logger import configure_logger
def load_repositories_from(name, repo_path, manager=None):
if get_config().has_option('repositories', name):
repo_p... | Add back missing manager creation | leapp: Add back missing manager creation
| Python | lgpl-2.1 | leapp-to/prototype,vinzenz/prototype,leapp-to/prototype,vinzenz/prototype,vinzenz/prototype,leapp-to/prototype,vinzenz/prototype,leapp-to/prototype | python | ## Code Before:
from leapp.utils.clicmd import command, command_opt
from leapp.repository.scan import find_and_scan_repositories
from leapp.config import get_config
from leapp.logger import configure_logger
def load_repositories_from(name, repo_path, manager=None):
if get_config().has_option('repositories', name)... |
3f6b75281fc9d815bccf45a1f2f0cb309abe658b | test/ufront/log/MessageTest.hx | test/ufront/log/MessageTest.hx | package ufront.log;
import utest.Assert;
import ufront.log.Message;
class MessageTest
{
var instance:Message;
public function new()
{
}
public function beforeClass():Void {}
public function afterClass():Void {}
public function setup():Void {}
public function teardown():Void {}
public functi... | package ufront.log;
import utest.Assert;
import ufront.log.Message;
class MessageTest
{
public function new()
{
}
public function beforeClass():Void {}
public function afterClass():Void {}
public function setup():Void {}
public function teardown():Void {}
public function testMessageList():Void ... | Add tests for Message / MessageList | Add tests for Message / MessageList
| Haxe | mit | ufront/ufront-mvc,kevinresol/ufront-mvc,ufront/ufront-mvc,kevinresol/ufront-mvc | haxe | ## Code Before:
package ufront.log;
import utest.Assert;
import ufront.log.Message;
class MessageTest
{
var instance:Message;
public function new()
{
}
public function beforeClass():Void {}
public function afterClass():Void {}
public function setup():Void {}
public function teardown():Void {}
... |
bfe27e738051d697974e2846cfcf1e8430c9816c | README.md | README.md | HarmacenCloud
=============
Gestión de un almacén
| HarmacenCloud
=============
Gestión de un almacén
## Componentes del equipo
- David González Sola
| Update Readme with teammembers section | Update Readme with teammembers section | Markdown | apache-2.0 | HarmaDev/HarmacenCloud,HarmaDev/HarmacenCloud | markdown | ## Code Before:
HarmacenCloud
=============
Gestión de un almacén
## Instruction:
Update Readme with teammembers section
## Code After:
HarmacenCloud
=============
Gestión de un almacén
## Componentes del equipo
- David González Sola
|
9120adf70f7df0f441ba3eed2ce09e2075cec07e | src/tools.cr | src/tools.cr |
require "progress"
struct Number
def times_with_progress(&block)
bar = ProgressBar.new
bar.total = self
bar.incomplete = "."
bar.complete = "o"
self.times do |i|
yield i
bar.inc
end
end
{% for method in %w(upto downto) %}
def {{ method.id }}_with_progress(hdl)
ba... |
require "progress"
struct Number
def times_with_progress(&block)
bar = ProgressBar.new
bar.total = self
bar.incomplete = "."
bar.complete = "o"
self.times do |i|
yield i
bar.inc
end
end
{% for method in %w(upto downto) %}
def {{ method.id }}_with_progress(num)
ba... | Fix for upto / downto | Fix for upto / downto
| Crystal | mit | puppetpies/crystal-monetdb-libmapi | crystal | ## Code Before:
require "progress"
struct Number
def times_with_progress(&block)
bar = ProgressBar.new
bar.total = self
bar.incomplete = "."
bar.complete = "o"
self.times do |i|
yield i
bar.inc
end
end
{% for method in %w(upto downto) %}
def {{ method.id }}_with_progre... |
fedf771275258cf333371406146dbbb8f7c8ae56 | config/prisons/WYI-wetherby.yml | config/prisons/WYI-wetherby.yml | ---
name: Wetherby
nomis_id: WYI
address:
- York Road
- 'LS22 5ED '
email: socialvisits.wetherby@hmps.gsi.gov.uk
enabled: true
estate: Wetherby
phone: 01937 544207
slots:
wed:
- 1830-2000
sat:
- 0930-1130
- 1430-1630
sun:
- 0930-1130
- 1430-1630
unbookable:
- 2014-12-25
| ---
name: Wetherby
nomis_id: WYI
address:
- York Road
- 'LS22 5ED '
email: socialvisits.wetherby@hmps.gsi.gov.uk
enabled: true
estate: Wetherby
phone: 01937 544207
slot_anomalies:
2015-12-24:
- 1430-1630
2015-12-28:
- 1430-1630
2015-12-31:
- 1430-1630
2016-01-01:
- 1430-1630
slots:
wed:
- 1830-2000
... | Update Wetherby Christmas visit slots | Update Wetherby Christmas visit slots
Unbookable - Christmas Day
Additional slots - 24th, 28th, 31st Dec and 1st Jan 1430-1630 | YAML | mit | ministryofjustice/prison-visits,ministryofjustice/prison-visits,ministryofjustice/prison-visits | yaml | ## Code Before:
---
name: Wetherby
nomis_id: WYI
address:
- York Road
- 'LS22 5ED '
email: socialvisits.wetherby@hmps.gsi.gov.uk
enabled: true
estate: Wetherby
phone: 01937 544207
slots:
wed:
- 1830-2000
sat:
- 0930-1130
- 1430-1630
sun:
- 0930-1130
- 1430-1630
unbookable:
- 2014-12-25
## Instruction:
... |
e7afc1ccf85baf54772493288074122bb1042f93 | lcd_ticker.py | lcd_ticker.py |
"""Display stock quotes on LCD"""
from ystockquote import get_price, get_change
from lcd import lcd_string, tn
symbols = ['AAPL', 'MSFT', 'F', 'T', 'KO', 'GOOG', 'SYK', 'DIS', 'GM', 'GE',
'BAC', 'IBM', 'C', 'AMZN', 'AET', 'DOW', 'INTC', 'PFE', 'MRK', 'RTN']
while(True):
for s in symbols:
try:... |
"""Display stock quotes on LCD"""
import ystockquote as y
from lcd import lcd_string, tn
symbols = ['AAPL', 'MSFT', 'F', 'T', 'KO', 'GOOG', 'SYK', 'DIS', 'GM', 'GE',
'BAC', 'IBM', 'C', 'AMZN', 'AET', 'DOW', 'INTC', 'PFE', 'MRK',
'RTN']
def compact_quote(symbol):
symbol = 'SYK'
a = y.ge... | Move compact_quote() to main LCD ticker file. | Move compact_quote() to main LCD ticker file.
| Python | mit | zimolzak/Raspberry-Pi-newbie,zimolzak/Raspberry-Pi-newbie,zimolzak/Raspberry-Pi-newbie,zimolzak/Raspberry-Pi-newbie,zimolzak/Raspberry-Pi-newbie | python | ## Code Before:
"""Display stock quotes on LCD"""
from ystockquote import get_price, get_change
from lcd import lcd_string, tn
symbols = ['AAPL', 'MSFT', 'F', 'T', 'KO', 'GOOG', 'SYK', 'DIS', 'GM', 'GE',
'BAC', 'IBM', 'C', 'AMZN', 'AET', 'DOW', 'INTC', 'PFE', 'MRK', 'RTN']
while(True):
for s in symbo... |
3ff24c90c9f50c849ea22e7d2d0a5fa11d1e777a | examples/hello-world.py | examples/hello-world.py | from glumpy import app, gl, gloo, glm, data, text
window = app.Window(width=512, height=512)
@window.event
def on_draw(dt):
window.clear()
label.draw(x=256, y=256, color=(1,1,1,1))
font = text.TextureFont(data.get("OpenSans-Regular.ttf"), 64)
label = text.Label("Hello World !", font,
ancho... | from glumpy import app, gl, gloo, glm, data
from glumpy.graphics.text import FontManager
from glumpy.graphics.collections import GlyphCollection
from glumpy.transforms import Position, OrthographicProjection
window = app.Window(width=512, height=512)
@window.event
def on_draw(dt):
window.clear()
label.draw()
... | Fix hello world example broken imports | Fix hello world example broken imports
| Python | bsd-3-clause | glumpy/glumpy,glumpy/glumpy | python | ## Code Before:
from glumpy import app, gl, gloo, glm, data, text
window = app.Window(width=512, height=512)
@window.event
def on_draw(dt):
window.clear()
label.draw(x=256, y=256, color=(1,1,1,1))
font = text.TextureFont(data.get("OpenSans-Regular.ttf"), 64)
label = text.Label("Hello World !", font,
... |
cc29e6142a82d6c0d2366f26c52bc0dc0bd2503f | README.md | README.md | Automatically adds a banner only visible to visitors from the EU
## Demo
See <a href="http://euvatbanner.appspot.com/">http://euvatbanner.appspot.com/</a> for an example
## Usage
I recommend you lazy-load the javascript asynchronously by pasting this snippet before your closing body tag:
```
<script type="text/... | Automatically adds a banner only visible to visitors from the EU (but not from GB)
## Demo
See <a href="http://euvatbanner.appspot.com/">http://euvatbanner.appspot.com/</a> for an example
## Usage
I recommend you lazy-load the javascript asynchronously by pasting this snippet before your closing body tag:
```
<... | Clarify message is not visible in GB | Clarify message is not visible in GB
| Markdown | mit | mattburns/EuVatBanner | markdown | ## Code Before:
Automatically adds a banner only visible to visitors from the EU
## Demo
See <a href="http://euvatbanner.appspot.com/">http://euvatbanner.appspot.com/</a> for an example
## Usage
I recommend you lazy-load the javascript asynchronously by pasting this snippet before your closing body tag:
```
<sc... |
5f71912cdf71af8c8397e453520d7d7b6c412c1f | README.md | README.md | Count queries without a where clause cause PostgreSQL to do a full table
scan to count the exact number of rows. Approximately uses metadata stored
by PostgreSQL to return an approximate count of the rows without the full
table scan.
The number will be correct as of the last `VACUUM` or `ANALYZE` on the table.
This ma... | Count queries without a where clause cause PostgreSQL to do a full table
scan to count the exact number of rows. Approximately uses metadata stored
by PostgreSQL to return an approximate count of the rows without the full
table scan.
The number will be correct immediately following a `VACUUM` or `ANALYZE` on
the table... | Clarify accuracy of the approximation | Clarify accuracy of the approximation
| Markdown | mit | derekprior/approximately | markdown | ## Code Before:
Count queries without a where clause cause PostgreSQL to do a full table
scan to count the exact number of rows. Approximately uses metadata stored
by PostgreSQL to return an approximate count of the rows without the full
table scan.
The number will be correct as of the last `VACUUM` or `ANALYZE` on th... |
bb42fe14165806caf8a2386c49cb602dbf9ad391 | connectionless_service.py | connectionless_service.py |
from simple.server import SimpleServer
__author__ = "Facundo Victor"
__license__ = "MIT"
__email__ = "facundovt@gmail.com"
def handle_message(sockets=None):
"""
Handle a simple UDP client.
"""
if sockets is not None:
(readable, writable, errors) = sockets
try:
while True... |
from simple.server import SimpleServer
__author__ = "Facundo Victor"
__license__ = "MIT"
__email__ = "facundovt@gmail.com"
def handle_message(sockets=None):
"""
Handle a simple UDP client.
"""
if sockets is not None:
(readable, writable, errors) = sockets
try:
while True... | Fix python 2.4 connectionless service | Fix python 2.4 connectionless service
| Python | mit | facundovictor/non-blocking-socket-samples | python | ## Code Before:
from simple.server import SimpleServer
__author__ = "Facundo Victor"
__license__ = "MIT"
__email__ = "facundovt@gmail.com"
def handle_message(sockets=None):
"""
Handle a simple UDP client.
"""
if sockets is not None:
(readable, writable, errors) = sockets
try:
... |
960436b17211a225a729805a528653f2aff675d7 | src/sentry/utils/social_auth.py | src/sentry/utils/social_auth.py | from __future__ import absolute_import
from django.conf import settings
from social_auth.backends.pipeline.user import create_user
from social_auth.exceptions import SocialAuthBaseException
class AuthNotAllowed(SocialAuthBaseException):
pass
def create_user_if_enabled(*args, **kwargs):
"""
A pipeline ... | from __future__ import absolute_import
from django.conf import settings
from social_auth.backends.pipeline.user import create_user
from social_auth.exceptions import SocialAuthBaseException
class AuthNotAllowed(SocialAuthBaseException):
pass
def create_user_if_enabled(*args, **kwargs):
"""
A pipeline ... | Call to create_user fails because django-social-auth module requires 5 parameters now for create_user now. | Call to create_user fails because django-social-auth module requires 5 parameters now for create_user now.
The exception is quietly suppressed in social_auth/backends/__init__.py:143 in the pipeline
stage for this module since TypeErrors in general are try/except in the authenticate()
stage.
It can be repro'd by putt... | Python | bsd-3-clause | BuildingLink/sentry,gg7/sentry,kevinlondon/sentry,zenefits/sentry,ewdurbin/sentry,daevaorn/sentry,looker/sentry,zenefits/sentry,BuildingLink/sentry,1tush/sentry,wujuguang/sentry,ewdurbin/sentry,rdio/sentry,pauloschilling/sentry,songyi199111/sentry,argonemyth/sentry,wong2/sentry,jokey2k/sentry,zenefits/sentry,beeftornad... | python | ## Code Before:
from __future__ import absolute_import
from django.conf import settings
from social_auth.backends.pipeline.user import create_user
from social_auth.exceptions import SocialAuthBaseException
class AuthNotAllowed(SocialAuthBaseException):
pass
def create_user_if_enabled(*args, **kwargs):
"""... |
ea6f0e4c52db7f557116fd75970941bc09cb57f1 | README.md | README.md | = ResquePoll
A resque-based web poller
|
resque-poll is a Rails engine that allows you to easily do long polling for Resque jobs. resque-poll depends on [resque-status](https://github.com/quirkey/resque-status).
## Usage
Include resque-poll in your Gemfile:
```ruby
gem 'resque-poll'
```
Mount the engine in your `routes.rb`:
```ruby
mount ResquePoll::Eng... | Add basic installation and usage notes | Add basic installation and usage notes | Markdown | mit | lumoslabs/resque-poll,lumoslabs/resque-poll,lumoslabs/resque-poll | markdown | ## Code Before:
= ResquePoll
A resque-based web poller
## Instruction:
Add basic installation and usage notes
## Code After:
resque-poll is a Rails engine that allows you to easily do long polling for Resque jobs. resque-poll depends on [resque-status](https://github.com/quirkey/resque-status).
## Usage
Include re... |
6c19c79f596ae6872c7b5b2fe2b31ff4f5c8cb51 | test/mjsunit/asm/math-clz32.js | test/mjsunit/asm/math-clz32.js | // Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax
var stdlib = { Math: Math };
var f = (function Module(stdlib) {
"use asm";
var clz32 = stdlib.Math.clz32;
fun... | // Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax
var stdlib = { Math: Math };
var f = (function Module(stdlib) {
"use asm";
var clz32 = stdlib.Math.clz32;
fun... | Fix test of %_MathClz32 intrinsic. | [turbofan] Fix test of %_MathClz32 intrinsic.
This test will fail once we optimize top-level code, because the
aforementioned intrinsic doesn't perform a NumberToUint32 conversion.
R=titzer@chromium.org
TEST=mjsunit/asm/math-clz32
Review URL: https://codereview.chromium.org/1041173002
Cr-Commit-Position: 972c6d2dc6... | JavaScript | mit | UniversalFuture/moosh,UniversalFuture/moosh,UniversalFuture/moosh,UniversalFuture/moosh | javascript | ## Code Before:
// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax
var stdlib = { Math: Math };
var f = (function Module(stdlib) {
"use asm";
var clz32 = stdlib.Ma... |
cb17c07247ab226f000033b882bb5171cf695edc | scripts/recalc_abilities_for_all_users.rb | scripts/recalc_abilities_for_all_users.rb | puts "Recalculating all the Abilities"
puts
User.unscoped.all.map do |u|
puts "Scope: User.Id=#{u.id}"
CommunityUser.unscoped.where(user: u).all.map do |cu|
puts " Attempt CommunityUser.Id=#{cu.id}"
RequestContext.community = cu.community
cu.recalc_privileges
rescue
puts " !!! Error... | puts "Recalculating all the Abilities"
puts
User.unscoped.all.map do |u|
puts "Scope: User.Id=#{u.id}"
CommunityUser.unscoped.where(user: u).all.map do |cu|
puts " Attempt CommunityUser.Id=#{cu.id}"
RequestContext.community = cu.community
cu.recalc_privileges
if (cu.is_moderator || cu.i... | Add enforcement for moderator ability to recalc script | Add enforcement for moderator ability to recalc script
| Ruby | agpl-3.0 | ArtOfCode-/qpixel,ArtOfCode-/qpixel,ArtOfCode-/qpixel,ArtOfCode-/qpixel | ruby | ## Code Before:
puts "Recalculating all the Abilities"
puts
User.unscoped.all.map do |u|
puts "Scope: User.Id=#{u.id}"
CommunityUser.unscoped.where(user: u).all.map do |cu|
puts " Attempt CommunityUser.Id=#{cu.id}"
RequestContext.community = cu.community
cu.recalc_privileges
rescue
puts " !!!... |
2f31b562a5a399c22ec14991db621ab47f99ee5a | tox.ini | tox.ini | [tox]
envlist = py27
[testenv]
deps = -rrequirements.txt
commands=
pep8 furtive
nosetests --with-coverage --cover-package=furtive -v --with-xunit --xunit-file=test-results/nosetests.xml
| [tox]
envlist = py27
[testenv]
install_command = pip install -rrequirements.txt --cache-dir={homedir}/.pipcache {opts} {packages}
distribute=True
sitepackages=False
commands=
pep8 furtive
# pylint --rcfile=.pylintrc furtive
nosetests --with-coverage --cover-package=furtive -v --with-xunit --xunit-file=test-resul... | Add pip should use cache-dir | Add pip should use cache-dir
| INI | mit | dbryant4/furtive | ini | ## Code Before:
[tox]
envlist = py27
[testenv]
deps = -rrequirements.txt
commands=
pep8 furtive
nosetests --with-coverage --cover-package=furtive -v --with-xunit --xunit-file=test-results/nosetests.xml
## Instruction:
Add pip should use cache-dir
## Code After:
[tox]
envlist = py27
[testenv]
install_command = p... |
a23f3806ea874bb93b46d001792397653680995b | lib/tasks/license_finder.rake | lib/tasks/license_finder.rake | namespace :license do
desc 'write out example config file'
task :init do
FileUtils.cp(File.join(File.dirname(__FILE__), '..', '..', 'files', 'license_finder.yml'), './config/license_finder.yml')
end
desc 'generate a list of dependency licenses'
task :generate_dependencies do
LicenseFinder::Finder.new... | namespace :license do
desc 'write out example config file'
task :init do
FileUtils.cp(File.join(File.dirname(__FILE__), '..', '..', 'files', 'license_finder.yml'), './config/license_finder.yml')
end
desc 'generate a list of dependency licenses'
task :generate_dependencies do
LicenseFinder::Finder.new... | Add rake target for CI | Add rake target for CI
| Ruby | mit | LukeWinikates/LicenseFinder,tinfoil/LicenseFinder,pivotal/LicenseFinder,bspeck/LicenseFinder,bdshroyer/LicenseFinder,bspeck/LicenseFinder,alexderz/LicenseFinder,alexderz/LicenseFinder,LukeWinikates/LicenseFinder,sschuberth/LicenseFinder,pivotal/LicenseFinder,pivotal/LicenseFinder,phusion/LicenseFinder,joemoore/LicenseF... | ruby | ## Code Before:
namespace :license do
desc 'write out example config file'
task :init do
FileUtils.cp(File.join(File.dirname(__FILE__), '..', '..', 'files', 'license_finder.yml'), './config/license_finder.yml')
end
desc 'generate a list of dependency licenses'
task :generate_dependencies do
LicenseFi... |
0eb3fcd728fe774aeeb64a94c2c63c7effd767e3 | package.json | package.json | {
"name": "node-vst-host",
"version": "0.0.1",
"description": "VST host for processing audio",
"main": "node-vst-host.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": "",
"keywords": [
"VST",
"audio",
"process",
... | {
"name": "node-vst-host",
"version": "0.0.2",
"description": "VST host for processing audio",
"main": "node-vst-host.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "http://github.com/ZECTBynmo/node-vst... | Make sure we have a link to the repo for npm | Make sure we have a link to the repo for npm
| JSON | mit | ZECTBynmo/node-vst-host | json | ## Code Before:
{
"name": "node-vst-host",
"version": "0.0.1",
"description": "VST host for processing audio",
"main": "node-vst-host.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": "",
"keywords": [
"VST",
"audio",
... |
5c535f3d91a5ac8bffe0c16afffb1eb2cb077e5c | README.md | README.md | Remindme
=======
| [](https://codeship.com/projects/67835)
[](https://codeclimate.com/repos/54ffdfe6695680... | Add codeship, codeclimate and pullreview badges | Add codeship, codeclimate and pullreview badges
| Markdown | mit | PhDuc/remindme,PhDuc/remindme,PhDuc/remindme | markdown | ## Code Before:
Remindme
=======
## Instruction:
Add codeship, codeclimate and pullreview badges
## Code After:
[](https://codeship.com/projects/67835)
[:
"""Make sure the TrustedSystem object is up to date."""
global my_system
my_system = libvtd.trusted_system.TrustedSystem()
my_system.AddFile(file_name)
| import libvtd.trusted_system
def UpdateTrustedSystem(file_name):
"""Make sure the TrustedSystem object is up to date."""
global my_system
if 'my_system' not in globals():
my_system = libvtd.trusted_system.TrustedSystem()
my_system.AddFile(file_name)
my_system.Refresh()
| Refresh system instead of clobbering it | Refresh system instead of clobbering it
Otherwise, if we set the Contexts, they'll be gone before we can request the
NextActions!
| Python | apache-2.0 | chiphogg/vim-vtd | python | ## Code Before:
import libvtd.trusted_system
def UpdateTrustedSystem(file_name):
"""Make sure the TrustedSystem object is up to date."""
global my_system
my_system = libvtd.trusted_system.TrustedSystem()
my_system.AddFile(file_name)
## Instruction:
Refresh system instead of clobbering it
Otherwise, ... |
322e9491411027bce0205f317f20050216ed98e8 | parity-net/src/main/java/org/jvirtanen/parity/net/poe/ByteBuffers.java | parity-net/src/main/java/org/jvirtanen/parity/net/poe/ByteBuffers.java | package org.jvirtanen.parity.net.poe;
import static java.nio.charset.StandardCharsets.*;
import java.nio.ByteBuffer;
class ByteBuffers {
private static final byte SPACE = ' ';
static String getString(ByteBuffer buffer, int length) {
byte[] bytes = new byte[length];
buffer.get(bytes);
... | package org.jvirtanen.parity.net.poe;
import static java.nio.charset.StandardCharsets.*;
import java.nio.ByteBuffer;
class ByteBuffers {
private static final byte SPACE = ' ';
static String getString(ByteBuffer buffer, int length) {
byte[] bytes = new byte[length];
buffer.get(bytes);
... | Improve string encoding in network protocols | Improve string encoding in network protocols
Eliminate unnecessary memory allocation.
| Java | apache-2.0 | paritytrading/parity,pmcs/parity,pmcs/parity,paritytrading/parity | java | ## Code Before:
package org.jvirtanen.parity.net.poe;
import static java.nio.charset.StandardCharsets.*;
import java.nio.ByteBuffer;
class ByteBuffers {
private static final byte SPACE = ' ';
static String getString(ByteBuffer buffer, int length) {
byte[] bytes = new byte[length];
buffer.... |
1aa00db3d31f2532a8ebf3c0cb1e6ac25f2ab855 | README.md | README.md | snakedb
=======
A simple Object Relation Mapper (ORM) focusing on speed and simplicity.
| snakedb
=======
A simple Object Relation Mapper (ORM) focusing on speed and simplicity.
Usage
-----
SnakeDB looks at all classes annotated with the DatabaseEntity annotation and then compiles and generates a specific mapper class for each of the annotated classes. The bare minimum of an entity looks like this:
```... | Update Readme.md with instructions on usage | Update Readme.md with instructions on usage | Markdown | apache-2.0 | daverix/slingerORM | markdown | ## Code Before:
snakedb
=======
A simple Object Relation Mapper (ORM) focusing on speed and simplicity.
## Instruction:
Update Readme.md with instructions on usage
## Code After:
snakedb
=======
A simple Object Relation Mapper (ORM) focusing on speed and simplicity.
Usage
-----
SnakeDB looks at all classes annota... |
2e1d3d2a499b8cdeec88d5f2b304bc114f1806b7 | test/unit/document_test.rb | test/unit/document_test.rb |
require 'test_helper'
describe "a Riagent::Document" do
it "should pass" do
doc = User.new
assert true
end
end |
require 'test_helper'
describe "a Riagent::Document" do
# See test/examples/models/user.rb
# User class includes the Riagent::Document mixin
let(:user_document) { User.new }
it "has a key" do
user_document.key.must_be_nil # first initialized
test_key = 'george'
user_document.key = test_key
us... | Test for document key & attributes | Test for document key & attributes
| Ruby | mit | dmitrizagidulin/riagent-document | ruby | ## Code Before:
require 'test_helper'
describe "a Riagent::Document" do
it "should pass" do
doc = User.new
assert true
end
end
## Instruction:
Test for document key & attributes
## Code After:
require 'test_helper'
describe "a Riagent::Document" do
# See test/examples/models/user.rb
# User class in... |
c367d320977b76a82b8010b68ba7f5aef7d86900 | lib/pixiv.rb | lib/pixiv.rb | require 'mechanize'
require 'pixiv/error'
require 'pixiv/client'
require 'pixiv/page'
require 'pixiv/illust'
require 'pixiv/member'
require 'pixiv/page_collection'
require 'pixiv/bookmark_list'
module Pixiv
ROOT_URL = 'http://www.pixiv.net'
# Delegates to {Pixiv::Client#initialize}
def self.new(*args, &block)
... | require 'mechanize'
require 'pixiv/error'
require 'pixiv/client'
require 'pixiv/page'
require 'pixiv/illust'
require 'pixiv/member'
require 'pixiv/page_collection'
require 'pixiv/bookmark_list'
module Pixiv
ROOT_URL = 'http://www.pixiv.net'
# @deprecated Use {.client} instead. Will be removed in 0.1.0.
# Delega... | Add Pixiv.client and deprecate Pixiv.new | Add Pixiv.client and deprecate Pixiv.new
| Ruby | mit | ota42y/pixiv,Xwth/pixiv,sanadan/pixiv,uasi/pixiv | ruby | ## Code Before:
require 'mechanize'
require 'pixiv/error'
require 'pixiv/client'
require 'pixiv/page'
require 'pixiv/illust'
require 'pixiv/member'
require 'pixiv/page_collection'
require 'pixiv/bookmark_list'
module Pixiv
ROOT_URL = 'http://www.pixiv.net'
# Delegates to {Pixiv::Client#initialize}
def self.new(... |
b678a0368c8d9dcac461951d26e3695ee7307a00 | src/PangolinConfigVersion.cmake.in | src/PangolinConfigVersion.cmake.in | set(PACKAGE_VERSION "@PANGOLIN_VERSION@")
# Check build type is valid
if( "System:${CMAKE_SYSTEM_NAME},Android:${ANDROID},iOS:${IOS}" STREQUAL
"System:@CMAKE_SYSTEM_NAME@,Android:@ANDROID@,iOS:@IOS@" )
# Check whether the requested PACKAGE_FIND_VERSION is compatible
if("${PACKAGE_VERSION}" VERSION_LESS "${... | set(PACKAGE_VERSION "@PANGOLIN_VERSION@")
# Check build type is valid
if( "System:${CMAKE_SYSTEM_NAME},Win64:${CMAKE_CL_64},Android:${ANDROID},iOS:${IOS}" STREQUAL
"System:@CMAKE_SYSTEM_NAME@,Win64:@CMAKE_CL_64@,Android:@ANDROID@,iOS:@IOS@" )
# Check whether the requested PACKAGE_FIND_VERSION is compatible
... | Allow win32 and win64 builds to exist in parallel. | Allow win32 and win64 builds to exist in parallel.
| unknown | mit | stevenlovegrove/Pangolin,mp3guy/Pangolin,arpg/Pangolin,wxdzju/Pangolin,randi120/Pangolin,visigoth/Pangolin,tschmidt23/Pangolin,stevenlovegrove/Pangolin,pinglin/Pangolin,renzodenardi/Pangolin,stevenlovegrove/Pangolin,arpg/Pangolin,pinglin/Pangolin,renzodenardi/Pangolin,tschmidt23/Pangolin,mp3guy/Pangolin,mp3guy/Pangolin... | unknown | ## Code Before:
set(PACKAGE_VERSION "@PANGOLIN_VERSION@")
# Check build type is valid
if( "System:${CMAKE_SYSTEM_NAME},Android:${ANDROID},iOS:${IOS}" STREQUAL
"System:@CMAKE_SYSTEM_NAME@,Android:@ANDROID@,iOS:@IOS@" )
# Check whether the requested PACKAGE_FIND_VERSION is compatible
if("${PACKAGE_VERSION}" ... |
ac9eed9ecb2c00d494cdcdc6f2209ecfd8aac73e | sh/sh.d/clojure.sh | sh/sh.d/clojure.sh | clj () {
if [[ $# -eq 0 ]]; then
clojure -M:cljfmt:nrepl-dep:rebel:tools/repl -i ~/.clojure/src/my_repl.clj -m nrepl.cmdline -i -f my-repl/repl
else
command clj "$@"
fi
}
-rlwrap! bb
alias bbj='bb "(json/parse-stream *in* true)" | bb'
export BABASHKA_PRELOADS='(defmacro $$ [& args] `(let [proc ^{:inheri... | clj () {
if [[ $# -eq 0 ]]; then
clojure -M:cljfmt:nrepl-dep:rebel:tools/repl -i ~/.clojure/src/my_repl.clj -m nrepl.cmdline -i -f my-repl/repl
else
command clj "$@"
fi
}
alias cljs='clojure -M:rebel-cljs'
-rlwrap! bb
alias bbj='bb "(json/parse-stream *in* true)" | bb'
export BABASHKA_PRELOADS='(defmacr... | Add alias for cljs with rebel readline | Add alias for cljs with rebel readline
| Shell | mit | rwstauner/run_control,rwstauner/run_control,rwstauner/run_control,rwstauner/run_control,rwstauner/run_control | shell | ## Code Before:
clj () {
if [[ $# -eq 0 ]]; then
clojure -M:cljfmt:nrepl-dep:rebel:tools/repl -i ~/.clojure/src/my_repl.clj -m nrepl.cmdline -i -f my-repl/repl
else
command clj "$@"
fi
}
-rlwrap! bb
alias bbj='bb "(json/parse-stream *in* true)" | bb'
export BABASHKA_PRELOADS='(defmacro $$ [& args] `(let... |
5592e67be445dd54597c659113cb8f71e3d8e54a | Casks/virtualbox-beta.rb | Casks/virtualbox-beta.rb | cask :v1 => 'virtualbox-beta' do
version '5.0.0_RC1-100731'
sha256 '9cd0923966b83a0447b1bc4ea397971f3b1908ec974bb517637cf1e3a975573b'
url "http://download.virtualbox.org/virtualbox/#{version.split('-')[0]}/VirtualBox-#{version}-OSX.dmg"
homepage 'http://www.virtualbox.org'
license :gpl
pkg 'VirtualBox.pkg... | cask :v1 => 'virtualbox-beta' do
version '5.0.0_RC2-101271'
sha256 '6ab15a281b30d60cf245aad3ef66deb72e87deacbcbfc660dfbbc5b8e7c8543d'
url "http://download.virtualbox.org/virtualbox/#{version.split('-')[0]}/VirtualBox-#{version}-OSX.dmg"
homepage 'http://www.virtualbox.org'
license :gpl
tags :vendor => 'Ora... | Upgrade Virtualbox Beta to RC2-101271 and add tag,binary,pkgutil | Upgrade Virtualbox Beta to RC2-101271 and add tag,binary,pkgutil
Signed-off-by: Koichi Shiraishi <41a18128582fec5418c0a92661f7d4b13d21d912@gmail.com>
| Ruby | bsd-2-clause | zsjohny/homebrew-versions,visualphoenix/homebrew-versions,noamross/homebrew-versions,pquentin/homebrew-versions,lukaselmer/homebrew-versions,coeligena/homebrew-verscustomized,lukasbestle/homebrew-versions,chadcatlett/caskroom-homebrew-versions,adjohnson916/homebrew-versions,bimmlerd/homebrew-versions,tomschlick/homebre... | ruby | ## Code Before:
cask :v1 => 'virtualbox-beta' do
version '5.0.0_RC1-100731'
sha256 '9cd0923966b83a0447b1bc4ea397971f3b1908ec974bb517637cf1e3a975573b'
url "http://download.virtualbox.org/virtualbox/#{version.split('-')[0]}/VirtualBox-#{version}-OSX.dmg"
homepage 'http://www.virtualbox.org'
license :gpl
pkg... |
7d8ca7ec282f8e13f4b8499aa7c70441cb845a32 | README.md | README.md | Stinking Rich
=============
Stinking rich is a board game created to test the [AshleyCPP](https://github.com/SgtCoDFish/AshleyCPP) engine.
The game is inspired by a popular board game.
| Stinking Rich
=============
Stinking rich is a board game created to test the [AshleyCPP](https://github.com/SgtCoDFish/AshleyCPP) engine.
The game is inspired by a popular board game.
How to Play
===========
The game has three players. You can buy properties you land on, and other players who land on the property ... | Update readme with controls and how to play | Update readme with controls and how to play | Markdown | apache-2.0 | SgtCoDFish/StinkingRich | markdown | ## Code Before:
Stinking Rich
=============
Stinking rich is a board game created to test the [AshleyCPP](https://github.com/SgtCoDFish/AshleyCPP) engine.
The game is inspired by a popular board game.
## Instruction:
Update readme with controls and how to play
## Code After:
Stinking Rich
=============
Stinking ric... |
42276014d097db37fc733c31d89530c49eb77325 | .github/ISSUE_TEMPLATE.md | .github/ISSUE_TEMPLATE.md |
[Description of the issue]
### Demo
[If possible, include a demo of your issue in a fork of this JSFiddle: https://jsfiddle.net/mattboldt/1xs3LLmL/]
### Steps to Reproduce
1. [First Step]
2. [Second Step]
3. [and so on...]
**Expected behavior:** [What you expect to happen]
**Actual behavior:** [What actually happ... | <!--
IMPORTANT: Please use the following format to create a new issue.
If your issue was not created using the format below, it will be closed immediately.
-->
### Description
[Description of the issue]
### Demo
[If possible, include a demo of your issue in a fork of this JSFiddle: https://jsfiddle.net/mattboldt/1xs... | Add important notice to issue template | Add important notice to issue template | Markdown | mit | mattboldt/typed.js,mattboldt/typed.js,nsina/typed.js,nsina/typed.js | markdown | ## Code Before:
[Description of the issue]
### Demo
[If possible, include a demo of your issue in a fork of this JSFiddle: https://jsfiddle.net/mattboldt/1xs3LLmL/]
### Steps to Reproduce
1. [First Step]
2. [Second Step]
3. [and so on...]
**Expected behavior:** [What you expect to happen]
**Actual behavior:** [Wh... |
4471d122b36a5317ed8f720b49c7dce079745706 | README.md | README.md | Simple webapp for tracking usage of company-owned testing devices
### Technology
- angular
- express
### Getting Started
- Setup node modules: ```npm install```
- Build project: ```npm run build```
- Run the express server on localhost: ```node app.js``` | Simple webapp for tracking usage of company-owned testing devices
### Technology
- angular
- express
### Getting Started
- Setup node modules: ```npm install```
- Build project: ```npm run build```
- Run the express server on localhost: ```node app.js```
### Important To Note
- Build process will not run successfull... | Update docs to note build issue on Windows | Update docs to note build issue on Windows
| Markdown | mit | diminutivesloop/device-checkout-app,diminutivesloop/device-checkout-app | markdown | ## Code Before:
Simple webapp for tracking usage of company-owned testing devices
### Technology
- angular
- express
### Getting Started
- Setup node modules: ```npm install```
- Build project: ```npm run build```
- Run the express server on localhost: ```node app.js```
## Instruction:
Update docs to note build issue... |
867c4a545b9434d5f7e7ed1db2d3e9fd2e0a4a71 | circle.yml | circle.yml | machine:
python:
version: 3.4.3
dependencies:
pre:
- sudo pip install -U awscli
post:
- pip install https://github.com/facelessuser/pymdown-extensions/archive/master.zip
test:
override:
- echo 'no tests :·('
deployment:
staging:
branch: master
commands:
- ./deploy dev
produc... | machine:
python:
version: 3.4.3
dependencies:
pre:
- sudo pip install -U awscli
- rm -rf node_modules # Force npm install to fetch styleguide from remote server
post:
- pip install https://github.com/facelessuser/pymdown-extensions/archive/master.zip
test:
override:
- echo 'no tests :·('
... | Clear npm cache on deploy | Clear npm cache on deploy
| YAML | mit | mapzen/mapzen-docs-generator,mapzen/documentation,mapzen/mapzen-docs-generator,mapzen/documentation,mapzen/documentation,mapzen/mapzen-docs-generator,mapzen/mapzen-docs-generator,mapzen/documentation | yaml | ## Code Before:
machine:
python:
version: 3.4.3
dependencies:
pre:
- sudo pip install -U awscli
post:
- pip install https://github.com/facelessuser/pymdown-extensions/archive/master.zip
test:
override:
- echo 'no tests :·('
deployment:
staging:
branch: master
commands:
- ./dep... |
8daa9d0553fa28e835e1d4777cb8d93dda24d63f | generate-key-and-send.sh | generate-key-and-send.sh | KEYSIZE=2048
PASSPHRASE=
FILENAME=~/.ssh/id_test
KEYTYPE=rsa
HOST=host
USER=username
#
# NO MORE CONFIG SETTING BELOW THIS LINE
#
# check that we have all necessary parts
wich ssh-keygen && which ssh-copy-id && which ssh
RET=$?
if [ $RET -ne 0 ];then
echo Could not find the required tools, needed are 'ssh', 'ssh-... | KEYSIZE=2048
PASSPHRASE=
FILENAME=~/.ssh/id_test
KEYTYPE=rsa
HOST=host
USER=username
#
# NO MORE CONFIG SETTING BELOW THIS LINE
#
# check that we have all necessary parts
wich ssh-keygen && which ssh-copy-id && which ssh
RET=$?
if [ $RET -ne 0 ];then
echo Could not find the required tools, needed are 'ssh', 'ssh-... | Add echo at the end | Add echo at the end
| Shell | apache-2.0 | centic9/generate-and-send-ssh-key | shell | ## Code Before:
KEYSIZE=2048
PASSPHRASE=
FILENAME=~/.ssh/id_test
KEYTYPE=rsa
HOST=host
USER=username
#
# NO MORE CONFIG SETTING BELOW THIS LINE
#
# check that we have all necessary parts
wich ssh-keygen && which ssh-copy-id && which ssh
RET=$?
if [ $RET -ne 0 ];then
echo Could not find the required tools, needed ... |
7b378b1550be5a91500fbaf074c2847fa601cee2 | .gitlab-ci.yml | .gitlab-ci.yml | image: ubuntu:latest
before_script:
- apt-get update
- apt-get install -qq git build-essential cmake doxygen cppcheck
my_project:
script:
- mkdir build && cd build
- cmake ..
- make | image: ubuntu:latest
stages:
- build
before_script:
- apt-get update
- apt-get install -qq git build-essential cmake doxygen cppcheck
build:linux:
stage: build
script:
- mkdir build && cd build
- cmake ..
- make
| Add stage info to gitlab | Add stage info to gitlab
| YAML | apache-2.0 | Mizux/snippets,Mizux/snippets | yaml | ## Code Before:
image: ubuntu:latest
before_script:
- apt-get update
- apt-get install -qq git build-essential cmake doxygen cppcheck
my_project:
script:
- mkdir build && cd build
- cmake ..
- make
## Instruction:
Add stage info to gitlab
## Code After:
image: ubuntu:latest
stages:
- build
be... |
4e5f3bd442d7637403d8ff25624331338b04fa1f | app/controls/controls.ls | app/controls/controls.ls | app = angular.module 'recess.controls'
app.controller 'ControlsController', [
'$scope'
'$http'
'PageTitle'
($scope, $http, PageTitle) ->
$scope.notNull = (group) ->
group.group_id > 0
$scope.addFeed = (url) ->
$http.post '/api/feed/add', { url }
..then ({data, status, headers}:res) ->
alert st... | app = angular.module 'recess.controls'
app.controller 'ControlsController', [
'$scope'
'$http'
'PageTitle'
($scope, $http, PageTitle) ->
$scope.notNull = (group) ->
group.group_id > 0
$scope.addFeed = (url) ->
$http.post '/api/feed/add', { url }
..then ({data, status, headers}:res) ->
alert st... | Remove the load spinner directive for another day | Remove the load spinner directive for another day
| LiveScript | bsd-3-clause | Zariel/lesandi | livescript | ## Code Before:
app = angular.module 'recess.controls'
app.controller 'ControlsController', [
'$scope'
'$http'
'PageTitle'
($scope, $http, PageTitle) ->
$scope.notNull = (group) ->
group.group_id > 0
$scope.addFeed = (url) ->
$http.post '/api/feed/add', { url }
..then ({data, status, headers}:res) ... |
6a870c1ea1e879eb0c7268bdc02fedceb586351b | app/views/delayed/web/jobs/show.html.erb | app/views/delayed/web/jobs/show.html.erb | <% title "#{t('delayed/web.views.job')} ##{job.id}" %>
<div class="page-header">
<h1>
<%= link_to t('delayed/web.views.jobs'), jobs_path %> / <%= title %>
</h1>
<div class="btn-group">
<% if job.can_queue? %>
<%= button_to t('delayed/web.views.buttons.run_next'), queue_job_path(job), method: :put, ... | <% title "#{t('delayed/web.views.job')} ##{job.id}" %>
<div class="page-header">
<h1>
<%= link_to t('delayed/web.views.jobs'), jobs_path %> / <%= title %>
</h1>
<div class="btn-group">
<% if job.can_queue? %>
<%= button_to t('delayed/web.views.buttons.run_next'), queue_job_path(job), method: :put, ... | Add job status information in show view | Add job status information in show view
| HTML+ERB | mit | thebestday/delayed-web,thebestday/delayed-web,thebestday/delayed-web | html+erb | ## Code Before:
<% title "#{t('delayed/web.views.job')} ##{job.id}" %>
<div class="page-header">
<h1>
<%= link_to t('delayed/web.views.jobs'), jobs_path %> / <%= title %>
</h1>
<div class="btn-group">
<% if job.can_queue? %>
<%= button_to t('delayed/web.views.buttons.run_next'), queue_job_path(job)... |
23cc8a3cc86e02156d92e284836076d068a5bade | lib/embersketch.rb | lib/embersketch.rb | require "embersketch/version"
require 'thor'
module EmberSketch
class EmberSketch < Thor
include Thor::Actions
desc "new PROJECT_NAME", "Creates a new Ember Sketch project in a directory called PROJECT_NAME"
def new(project_name)
create_directory_structure(project_name)
end
def source_pat... | require "embersketch/version"
require 'thor'
module EmberSketch
class EmberSketch < Thor
include Thor::Actions
desc "new PROJECT_NAME", "Creates a new Ember Sketch project in a directory called PROJECT_NAME"
def new(project_name)
create_directory_structure(project_name)
end
no_commands do... | Use no_commands block for sources | Use no_commands block for sources
| Ruby | mit | emberzone/ember_sketch | ruby | ## Code Before:
require "embersketch/version"
require 'thor'
module EmberSketch
class EmberSketch < Thor
include Thor::Actions
desc "new PROJECT_NAME", "Creates a new Ember Sketch project in a directory called PROJECT_NAME"
def new(project_name)
create_directory_structure(project_name)
end
... |
c722958694b0098345995b5c59a7aeeac7ec6262 | tests/integration/connect-test.js | tests/integration/connect-test.js | import Socket from 'src/socket'
import {LongPoll} from 'src/transports'
import {pause, resume} from 'tests/utils'
QUnit.test('can connect', function(assert){
assert.expect(1)
let socket = new Socket("ws://localhost:4000/socket", {transport: LongPoll})
socket.connect()
let channel = socket.channel("rooms:lobb... | import Socket from 'src/socket'
import {WebSocket, LongPoll} from 'src/transports'
import {pause, resume} from 'tests/utils'
[{name: 'WebSocket', klass: WebSocket}, {name: 'LongPoll', klass: LongPoll}].forEach(item => {
const {name, klass} = item
QUnit.test(`${name} can connect`, function(assert){
assert.exp... | Test basic connection and message sending for both transports | Test basic connection and message sending for both transports
| JavaScript | mit | jerel/phoenix_js | javascript | ## Code Before:
import Socket from 'src/socket'
import {LongPoll} from 'src/transports'
import {pause, resume} from 'tests/utils'
QUnit.test('can connect', function(assert){
assert.expect(1)
let socket = new Socket("ws://localhost:4000/socket", {transport: LongPoll})
socket.connect()
let channel = socket.cha... |
925d2279ed593eb23f2618082a107077e2328aba | src/main/java/seedu/tache/logic/parser/SaveCommandParser.java | src/main/java/seedu/tache/logic/parser/SaveCommandParser.java | //@@author A0139961U
package seedu.tache.logic.parser;
import static seedu.tache.commons.core.Messages.MESSAGE_INVALID_DIRECTORY;
import java.io.File;
import seedu.tache.logic.commands.Command;
import seedu.tache.logic.commands.IncorrectCommand;
import seedu.tache.logic.commands.SaveCommand;
/**
* Parses input arg... | //@@author A0139961U
package seedu.tache.logic.parser;
import static seedu.tache.commons.core.Messages.MESSAGE_INVALID_DIRECTORY;
import java.io.File;
import seedu.tache.logic.commands.Command;
import seedu.tache.logic.commands.IncorrectCommand;
import seedu.tache.logic.commands.SaveCommand;
/**
* Parses input arg... | Fix bug when user enter "/" or "\" as directory | Fix bug when user enter "/" or "\" as directory
#221
| Java | mit | CS2103JAN2017-T09-B4/main,CS2103JAN2017-T09-B4/main,CS2103JAN2017-T09-B4/main | java | ## Code Before:
//@@author A0139961U
package seedu.tache.logic.parser;
import static seedu.tache.commons.core.Messages.MESSAGE_INVALID_DIRECTORY;
import java.io.File;
import seedu.tache.logic.commands.Command;
import seedu.tache.logic.commands.IncorrectCommand;
import seedu.tache.logic.commands.SaveCommand;
/**
* ... |
9cb9d25b447f4e88f54398149fa7f01e57d54145 | index.html | index.html | <!DOCTYPE html>
<html lang="en">
<head>
<title> Micro Holding Cooperativism </title>
<style>
body {
margin: 0;
padding: 0;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border: 1px solid... | <!DOCTYPE html>
<html lang="en">
<head>
<title> Micro Holding Cooperativism </title>
<style>
body {
margin: 0;
padding: 0;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
a {
... | UPDATE remove red border from website | UPDATE remove red border from website
| HTML | mit | Micro-Holding-Co-Ownership/micro-holding-co-ownership.github.io | html | ## Code Before:
<!DOCTYPE html>
<html lang="en">
<head>
<title> Micro Holding Cooperativism </title>
<style>
body {
margin: 0;
padding: 0;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
b... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.