commit stringlengths 40 40 | old_file stringlengths 4 184 | new_file stringlengths 4 184 | old_contents stringlengths 1 3.6k | new_contents stringlengths 5 3.38k | subject stringlengths 15 778 | message stringlengths 16 6.74k | lang stringclasses 201
values | license stringclasses 13
values | repos stringlengths 6 116k | config stringclasses 201
values | content stringlengths 137 7.24k | diff stringlengths 26 5.55k | diff_length int64 1 123 | relative_diff_length float64 0.01 89 | n_lines_added int64 0 108 | n_lines_deleted int64 0 106 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4db251b7d8bbf40ce37354a48fa61dcc0a5a6c44 | stolaf-background.widget/printers.js | stolaf-background.widget/printers.js | command: '/bin/bash stolaf-base/snmpGet.sh',
refreshFrequency: 600000,
lastUpdateTime: undefined,
style: [
"bottom: 0",
"left: 75%",
"width: 25%",
"text-align: center",
"border: 0",
"height: 3%",
"vertical-align: middle",
"color: rgba(255, 255, 255, 0.25)",
"font-weight: 300",
].join('\n'),
render: function... | command: '/usr/bin/env python stolaf-base/snmpGet.py',
refreshFrequency: 300000,
lastUpdateTime: undefined,
style: [
"bottom: 0",
"left: 75%",
"width: 25%",
"text-align: center",
"border: 0",
"height: 3%",
"vertical-align: middle",
"color: rgba(255, 255, 255, 0.25)",
"font-weight: 300",
].join('\n'),
render... | Make the printer data widget use the python script | Make the printer data widget use the python script
| JavaScript | mit | hawkrives/stolaf-ubersicht-widgets,hawkrives/stolaf-ubersicht-widgets,hawkrives/stolaf-ubersicht-widgets | javascript | ## Code Before:
command: '/bin/bash stolaf-base/snmpGet.sh',
refreshFrequency: 600000,
lastUpdateTime: undefined,
style: [
"bottom: 0",
"left: 75%",
"width: 25%",
"text-align: center",
"border: 0",
"height: 3%",
"vertical-align: middle",
"color: rgba(255, 255, 255, 0.25)",
"font-weight: 300",
].join('\n'),
... | - command: '/bin/bash stolaf-base/snmpGet.sh',
? ^^^ ^^
+ command: '/usr/bin/env python stolaf-base/snmpGet.py',
? ++++ ^^^^^^^ ++ ^^
- refreshFrequency: 600000,
? ^
+ refreshFrequency: 300000,
? ^
lastUpd... | 4 | 0.121212 | 2 | 2 |
4315585e108ca5b428a0bcaf1eb17e9df74f88a3 | src/Storage/ContentLegacyService.php | src/Storage/ContentLegacyService.php | <?php
namespace Bolt\Storage;
use Bolt\Storage\Mapping\ContentType;
use Silex\Application;
/**
* Legacy bridge for Content object backward compatibility.
*
* @author Ross Riley <riley.ross@gmail.com>
*/
class ContentLegacyService
{
use Entity\ContentRelationTrait;
use Entity\ContentRouteTrait;
use En... | <?php
namespace Bolt\Storage;
use Bolt\Storage\Mapping\ContentType;
use Silex\Application;
/**
* Legacy bridge for Content object backward compatibility.
*
* @author Ross Riley <riley.ross@gmail.com>
*/
class ContentLegacyService
{
use Entity\ContentRelationTrait;
use Entity\ContentRouteTrait;
use En... | Fix setting up legacy Contenttype object | Fix setting up legacy Contenttype object
$this->app['storage']->getContenttype($contentType) can return object or array. | PHP | mit | romulo1984/bolt,romulo1984/bolt,bolt/bolt,bolt/bolt,romulo1984/bolt,bolt/bolt,romulo1984/bolt,bolt/bolt | php | ## Code Before:
<?php
namespace Bolt\Storage;
use Bolt\Storage\Mapping\ContentType;
use Silex\Application;
/**
* Legacy bridge for Content object backward compatibility.
*
* @author Ross Riley <riley.ross@gmail.com>
*/
class ContentLegacyService
{
use Entity\ContentRelationTrait;
use Entity\ContentRouteT... | <?php
namespace Bolt\Storage;
use Bolt\Storage\Mapping\ContentType;
use Silex\Application;
/**
* Legacy bridge for Content object backward compatibility.
*
* @author Ross Riley <riley.ross@gmail.com>
*/
class ContentLegacyService
{
use Entity\ContentRelationTrait;
use Enti... | 8 | 0.131148 | 7 | 1 |
4adffdc9f3de7657a206df17c774342079c33c0a | src/extensions/command-interpreter/regex-address.coffee | src/extensions/command-interpreter/regex-address.coffee | Address = require 'command-interpreter/address'
Range = require 'range'
module.exports =
class RegexAddress extends Address
regex: null
reverse: null
constructor: (pattern, reverse) ->
@reverse = reverse
@regex = new RegExp(pattern)
getRange: (editor, currentRange) ->
rangeBefore = new Range([0, ... | Address = require 'command-interpreter/address'
Range = require 'range'
module.exports =
class RegexAddress extends Address
regex: null
reverse: null
constructor: (pattern, isReversed) ->
@isReversed = isReversed
@regex = new RegExp(pattern)
getRange: (editor, currentRange) ->
rangeBefore = new R... | Use isReverse instead of reverse in RegexAddress | Use isReverse instead of reverse in RegexAddress | CoffeeScript | mit | oggy/atom,niklabh/atom,kandros/atom,deepfox/atom,kevinrenaers/atom,sekcheong/atom,vjeux/atom,dkfiresky/atom,alexandergmann/atom,vcarrera/atom,dannyflax/atom,gisenberg/atom,Austen-G/BlockBuilder,ezeoleaf/atom,fredericksilva/atom,kevinrenaers/atom,efatsi/atom,beni55/atom,dijs/atom,Hasimir/atom,boomwaiza/atom,avdg/atom,ei... | coffeescript | ## Code Before:
Address = require 'command-interpreter/address'
Range = require 'range'
module.exports =
class RegexAddress extends Address
regex: null
reverse: null
constructor: (pattern, reverse) ->
@reverse = reverse
@regex = new RegExp(pattern)
getRange: (editor, currentRange) ->
rangeBefore ... | Address = require 'command-interpreter/address'
Range = require 'range'
module.exports =
class RegexAddress extends Address
regex: null
reverse: null
- constructor: (pattern, reverse) ->
? ^
+ constructor: (pattern, isReversed) ->
? ^^^ +... | 10 | 0.30303 | 5 | 5 |
96ace17d9cd800a5649ad32a8cb496a55d73ca9f | wapps/templatetags/wagtail.py | wapps/templatetags/wagtail.py | import jinja2
from django.conf import settings
from django_jinja import library
from jinja2.ext import Extension
from wagtail.wagtailcore.models import Page
from wagtail.contrib.wagtailroutablepage.templatetags.wagtailroutablepage_tags import (
routablepageurl as dj_routablepageurl
)
from wapps.utils import get_i... | import jinja2
from django.conf import settings
from django_jinja import library
from jinja2.ext import Extension
from wagtail.wagtailcore.models import Page
from wagtail.contrib.wagtailroutablepage.templatetags.wagtailroutablepage_tags import (
routablepageurl as dj_routablepageurl
)
from wapps.utils import get_i... | Fix is_site_root when no page | Fix is_site_root when no page
| Python | mit | apihackers/wapps,apihackers/wapps,apihackers/wapps,apihackers/wapps | python | ## Code Before:
import jinja2
from django.conf import settings
from django_jinja import library
from jinja2.ext import Extension
from wagtail.wagtailcore.models import Page
from wagtail.contrib.wagtailroutablepage.templatetags.wagtailroutablepage_tags import (
routablepageurl as dj_routablepageurl
)
from wapps.ut... | import jinja2
from django.conf import settings
from django_jinja import library
from jinja2.ext import Extension
from wagtail.wagtailcore.models import Page
from wagtail.contrib.wagtailroutablepage.templatetags.wagtailroutablepage_tags import (
routablepageurl as dj_routablepageurl
)
from wa... | 2 | 0.046512 | 1 | 1 |
819300cace4896c2dfef89322b8d72258e7582f8 | .travis.yml | .travis.yml | language: java
script: mvn verify
jdk:
- openjdk7
- oraclejdk7
- oraclejdk8
cache:
directories:
- $HOME/.m2
notifications:
email:
recipients:
- eg.oss@e-gineering.com
| language: java
script: mvn verify
jdk:
- openjdk7
- oraclejdk8
cache:
directories:
- $HOME/.m2
notifications:
email:
recipients:
- eg.oss@e-gineering.com
| Update to remove the OracleJDK7 build. | Update to remove the OracleJDK7 build.
| YAML | apache-2.0 | egineering-llc/gitflow-helper-maven-plugin | yaml | ## Code Before:
language: java
script: mvn verify
jdk:
- openjdk7
- oraclejdk7
- oraclejdk8
cache:
directories:
- $HOME/.m2
notifications:
email:
recipients:
- eg.oss@e-gineering.com
## Instruction:
Update to remove the OracleJDK7 build.
## Code After:
language: java
script: mvn verify
jdk:
-... | language: java
script: mvn verify
jdk:
- openjdk7
- - oraclejdk7
- oraclejdk8
cache:
directories:
- $HOME/.m2
notifications:
email:
recipients:
- eg.oss@e-gineering.com | 1 | 0.058824 | 0 | 1 |
cffed12b1648b63514a5efa1a708ac744341f8be | lib/pycall/pyobject_wrapper.rb | lib/pycall/pyobject_wrapper.rb | module PyCall
module PyObjectWrapper
def initialize(pyobj, pytype)
check_type pyobj, pytype
@__pyobj__ = pyobj
end
attr_reader :__pyobj__
def ==(other)
case other
when self.class
__pyobj__ == other.__pyobj__
when PyObject
__pyobj__ == other
else
... | module PyCall
module PyObjectWrapper
def initialize(pyobj, pytype=nil)
check_type pyobj, pytype
pytype ||= LibPython.PyObject_Type(pyobj)
@__pyobj__ = pyobj
end
attr_reader :__pyobj__
def ==(other)
case other
when self.class
__pyobj__ == other.__pyobj__
wh... | Make pytype ignorable in PyObjectWrapper | Make pytype ignorable in PyObjectWrapper
| Ruby | mit | mrkn/pycall,mrkn/pycall.rb,mrkn/pycall,mrkn/pycall.rb,mrkn/pycall,mrkn/pycall.rb,mrkn/pycall,mrkn/pycall.rb | ruby | ## Code Before:
module PyCall
module PyObjectWrapper
def initialize(pyobj, pytype)
check_type pyobj, pytype
@__pyobj__ = pyobj
end
attr_reader :__pyobj__
def ==(other)
case other
when self.class
__pyobj__ == other.__pyobj__
when PyObject
__pyobj__ == oth... | module PyCall
module PyObjectWrapper
- def initialize(pyobj, pytype)
+ def initialize(pyobj, pytype=nil)
? ++++
check_type pyobj, pytype
+ pytype ||= LibPython.PyObject_Type(pyobj)
@__pyobj__ = pyobj
end
attr_reader :__pyobj__
... | 6 | 0.125 | 4 | 2 |
330ffd6fcec2e7f87bda248e6320148546c2f221 | project.clj | project.clj | (defproject mkremins/flense-nw "0.0-SNAPSHOT"
:dependencies
[[org.clojure/clojure "1.6.0"]
[org.clojure/clojurescript "0.0-2665"]
[org.clojure/core.async "0.1.346.0-17112a-alpha"]
[com.facebook/react "0.12.2.1"]
[org.om/om "0.8.0"]
[spellhouse/phalanges "0.1.4"]
[mkremins/flense "0.0-SNAPSHOT"]
... | (defproject mkremins/flense-nw "0.0-SNAPSHOT"
:dependencies
[[org.clojure/clojure "1.6.0"]
[org.clojure/clojurescript "0.0-2727"]
[org.clojure/core.async "0.1.346.0-17112a-alpha"]
[org.omcljs/om "0.8.4"]
[spellhouse/phalanges "0.1.4"]
[mkremins/flense "0.0-SNAPSHOT"]
[mkremins/fs "0.3.0"]]
:plu... | Clean up dependencies and build options | Clean up dependencies and build options
* Don't depend directly on React (pulled in via Om)
* Bump ClojureScript to 0.0-2727
* Bump Om to 0.8.4
* Drop :preamble (made unnecessary by latest CLJS)
* Use :optimizations :none to improve compile times
| Clojure | mit | mkremins/flense-nw,mkremins/flense-nw | clojure | ## Code Before:
(defproject mkremins/flense-nw "0.0-SNAPSHOT"
:dependencies
[[org.clojure/clojure "1.6.0"]
[org.clojure/clojurescript "0.0-2665"]
[org.clojure/core.async "0.1.346.0-17112a-alpha"]
[com.facebook/react "0.12.2.1"]
[org.om/om "0.8.0"]
[spellhouse/phalanges "0.1.4"]
[mkremins/flense "0... | (defproject mkremins/flense-nw "0.0-SNAPSHOT"
:dependencies
[[org.clojure/clojure "1.6.0"]
- [org.clojure/clojurescript "0.0-2665"]
? ^^^
+ [org.clojure/clojurescript "0.0-2727"]
? ^^^
[org.clojure/core.async "0.1.346.0-17112... | 12 | 0.5 | 4 | 8 |
59f3e99b3ae8954dfd056671e0a49d11eda6468a | build/prod/uwsgi.ini | build/prod/uwsgi.ini | [uwsgi]
socket = 127.0.0.1:8000
module = cutepaste.wsgi
master = true
processes = 4
threads = 4
cheaper-algo = spare
cheaper = 1
cheaper-initial = 1
vacuum = true
| [uwsgi]
socket = 127.0.0.1:8000
module = cutepaste.wsgi
master = true
processes = 4
threads = 4
cheaper-algo = spare
cheaper = 1
cheaper-initial = 1
vacuum = true
harakiri = 300
| Set a high harakiri value, given file copying is being done synchronously within the request thread | Set a high harakiri value, given file copying is being done synchronously within the request thread
| INI | apache-2.0 | msurdi/cutepaste,msurdi/cutepaste,msurdi/cutepaste | ini | ## Code Before:
[uwsgi]
socket = 127.0.0.1:8000
module = cutepaste.wsgi
master = true
processes = 4
threads = 4
cheaper-algo = spare
cheaper = 1
cheaper-initial = 1
vacuum = true
## Instruction:
Set a high harakiri value, given file copying is being done synchronously within the request thread
## Code After:
[uwsgi]
... | [uwsgi]
socket = 127.0.0.1:8000
module = cutepaste.wsgi
master = true
processes = 4
threads = 4
cheaper-algo = spare
cheaper = 1
cheaper-initial = 1
vacuum = true
+ harakiri = 300 | 1 | 0.1 | 1 | 0 |
c3ff50a7013280fdc3686e9ca676882ceddeef7b | app/assets/javascripts/admin/application.js | app/assets/javascripts/admin/application.js | //= require trix
//= require jquery.geocomplete
//= require cleave
//= require ./trix_events
//= require ./trix_toolbar
//= require ./app/init
//= require_tree ./app
$(document).on('turbolinks:load', function() {
// Datepicker
$('.air-datepicker').datepicker({
autoClose: true,
onSelect: function onSelect(... | //= require trix
//= require jquery.geocomplete
//= require cleave
//= require ./trix_events
//= require ./trix_toolbar
//= require ./app/init
//= require_tree ./app
$(document).on('turbolinks:load', function() {
// Datepicker
$('.air-datepicker').datepicker({
autoClose: true,
minutesStep: 5,
onSelect... | Allow only 5 minute increments for date picker so we reduce the number of steps | Allow only 5 minute increments for date picker so we reduce the number of steps
| JavaScript | agpl-3.0 | PopulateTools/gobierto,PopulateTools/gobierto,PopulateTools/gobierto,PopulateTools/gobierto-dev,PopulateTools/gobierto,PopulateTools/gobierto-dev,PopulateTools/gobierto-dev,PopulateTools/gobierto-dev | javascript | ## Code Before:
//= require trix
//= require jquery.geocomplete
//= require cleave
//= require ./trix_events
//= require ./trix_toolbar
//= require ./app/init
//= require_tree ./app
$(document).on('turbolinks:load', function() {
// Datepicker
$('.air-datepicker').datepicker({
autoClose: true,
onSelect: fu... | //= require trix
//= require jquery.geocomplete
//= require cleave
//= require ./trix_events
//= require ./trix_toolbar
//= require ./app/init
//= require_tree ./app
$(document).on('turbolinks:load', function() {
// Datepicker
$('.air-datepicker').datepicker({
autoClose: true,
+ ... | 1 | 0.052632 | 1 | 0 |
d351c50c960d6bad2469b08fd547936512c58a08 | uart_echo.c | uart_echo.c |
int main (void) {
uart_enable(UM_Asynchronous);
sei();
unsigned char c = 0;
do {
c = uart_receive();
uart_transmit(c);
} while (c);
return 0;
}
|
int main (void) {
uart_enable(UM_Asynchronous);
sei();
DDRB = 0xFF;
unsigned char c = 0;
do {
c = uart_receive();
// Do some blinking if we receive a number between 1 and 9.
if (c >= '1' && c <= '9') {
for (int i = 0; i < (c-'0'); ++i) {
PORTB = 0xFF;
_delay_ms(100);
... | Add a slight bit more functionality to the UART echo app so that it can blink some lights with numerical inputs. This can help determine whether or not the AVR is receiving the correct data, even though it is echoing it back anyway. | Add a slight bit more functionality to the UART echo app so that it can blink some lights with numerical inputs. This can help determine whether or not the AVR is receiving the correct data, even though it is echoing it back anyway.
| C | mpl-2.0 | grimwm/avr,grimwm/avr,grimwm/avr,grimwm/avr | c | ## Code Before:
int main (void) {
uart_enable(UM_Asynchronous);
sei();
unsigned char c = 0;
do {
c = uart_receive();
uart_transmit(c);
} while (c);
return 0;
}
## Instruction:
Add a slight bit more functionality to the UART echo app so that it can blink some lights with numerical inputs. This ... |
int main (void) {
uart_enable(UM_Asynchronous);
sei();
+ DDRB = 0xFF;
+
unsigned char c = 0;
do {
c = uart_receive();
+
+ // Do some blinking if we receive a number between 1 and 9.
+ if (c >= '1' && c <= '9') {
+ for (int i = 0; i < (c-'0'); ++i) {
+ PORTB = 0xFF... | 15 | 1.071429 | 14 | 1 |
330c1efdedc14974e84335ae59e7d2327665c874 | app/views/coronavirus_landing_page/components/hub/_guidance_section.html.erb | app/views/coronavirus_landing_page/components/hub/_guidance_section.html.erb | <div class="covid__page-guidance">
<div class="govuk-width-container">
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<%= render "govuk_publishing_components/components/heading", {
text: guidance["header"],
font_size: 19,
margin_bottom: 5
... | <div class="covid__page-guidance">
<div class="govuk-width-container">
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<%= render "govuk_publishing_components/components/heading", {
text: guidance["header"],
font_size: 19,
margin_bottom: 5
... | Add tracking for What you can do now section | Add tracking for What you can do now section
| HTML+ERB | mit | alphagov/collections,alphagov/collections,alphagov/collections,alphagov/collections | html+erb | ## Code Before:
<div class="covid__page-guidance">
<div class="govuk-width-container">
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<%= render "govuk_publishing_components/components/heading", {
text: guidance["header"],
font_size: 19,
margin_... | <div class="covid__page-guidance">
<div class="govuk-width-container">
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<%= render "govuk_publishing_components/components/heading", {
text: guidance["header"],
font_size: 19,
margin_... | 9 | 0.391304 | 8 | 1 |
ad49e40144d10d556af146a993aa1173da9de891 | README.md | README.md |
Generate changes as part of `npm version [patch|minor|major]`.
## Install
```bash
$ npm install @studio/changes -D
```
## Configure
Add this to your `package.json`:
```json
{
"scripts": {
"version": "changes"
}
}
```
## Usage
- Use the [npm version feature][1] as usual
- You editor will open with a gene... |
Generate changes as part of `npm version [patch|minor|major]`.
## Install
```bash
$ npm install @studio/changes -D
```
## Configure
Add this to your `package.json`:
```json
{
"scripts": {
"preversion": "npm test",
"version": "changes",
"postversion": "git push --follow-tags && npm publish"
}
}
```... | Add `preversion` and `postversion` scripts to docs | Add `preversion` and `postversion` scripts to docs | Markdown | mit | javascript-studio/studio-changes | markdown | ## Code Before:
Generate changes as part of `npm version [patch|minor|major]`.
## Install
```bash
$ npm install @studio/changes -D
```
## Configure
Add this to your `package.json`:
```json
{
"scripts": {
"version": "changes"
}
}
```
## Usage
- Use the [npm version feature][1] as usual
- You editor will ... |
Generate changes as part of `npm version [patch|minor|major]`.
## Install
```bash
$ npm install @studio/changes -D
```
## Configure
Add this to your `package.json`:
```json
{
"scripts": {
+ "preversion": "npm test",
- "version": "changes"
+ "version": "changes",
? ... | 4 | 0.137931 | 3 | 1 |
ea0f9f97f4a0a8338bed30724ab92a8acc4b6efa | tests/panels/test_cache.py | tests/panels/test_cache.py |
from __future__ import absolute_import, unicode_literals
import django
from django.core import cache
from django.utils.unittest import skipIf
from ..base import BaseTestCase
class CachePanelTestCase(BaseTestCase):
def setUp(self):
super(CachePanelTestCase, self).setUp()
self.panel = self.toolb... |
from __future__ import absolute_import, unicode_literals
import django
from django.core import cache
from django.utils.unittest import skipIf
from ..base import BaseTestCase
class CachePanelTestCase(BaseTestCase):
def setUp(self):
super(CachePanelTestCase, self).setUp()
self.panel = self.toolb... | Add a test that verifies the cache has a clear method. | Add a test that verifies the cache has a clear method.
| Python | bsd-3-clause | peap/django-debug-toolbar,seperman/django-debug-toolbar,stored/django-debug-toolbar,megcunningham/django-debug-toolbar,calvinpy/django-debug-toolbar,spookylukey/django-debug-toolbar,guilhermetavares/django-debug-toolbar,megcunningham/django-debug-toolbar,tim-schilling/django-debug-toolbar,jazzband/django-debug-toolbar,... | python | ## Code Before:
from __future__ import absolute_import, unicode_literals
import django
from django.core import cache
from django.utils.unittest import skipIf
from ..base import BaseTestCase
class CachePanelTestCase(BaseTestCase):
def setUp(self):
super(CachePanelTestCase, self).setUp()
self.pa... |
from __future__ import absolute_import, unicode_literals
import django
from django.core import cache
from django.utils.unittest import skipIf
from ..base import BaseTestCase
class CachePanelTestCase(BaseTestCase):
def setUp(self):
super(CachePanelTestCase, self).setUp()
... | 4 | 0.117647 | 3 | 1 |
06291110313fdba2556a971305066274c936d335 | examples/swing.js | examples/swing.js | var {JFrame, JButton, ImageIcon, JLabel} = javax.swing;
var {setInterval} = require('ringo/scheduler');
var n = 0;
function main() {
var frame = new JFrame("Swing Demo");
var button = new JButton(new ImageIcon("img/ringo-drums.png"));
button.addActionListener(function(e) {
setInterval(function() {
... | var {JFrame, JButton, ImageIcon, JLabel} = javax.swing;
var {setInterval} = require('ringo/scheduler');
var n = 0;
function main() {
var frame = new JFrame("Swing Demo");
var button = new JButton(new ImageIcon(module.resolve("img/ringo-drums.png")));
button.addActionListener(function(e) {
setInterv... | Resolve image icon path relative to module | Resolve image icon path relative to module
| JavaScript | apache-2.0 | Transcordia/ringojs,ringo/ringojs,Transcordia/ringojs,ashwinrayaprolu1984/ringojs,ashwinrayaprolu1984/ringojs,oberhamsi/ringojs,Transcordia/ringojs,ashwinrayaprolu1984/ringojs,Transcordia/ringojs,oberhamsi/ringojs,ringo/ringojs,ringo/ringojs,ringo/ringojs,ashwinrayaprolu1984/ringojs,oberhamsi/ringojs | javascript | ## Code Before:
var {JFrame, JButton, ImageIcon, JLabel} = javax.swing;
var {setInterval} = require('ringo/scheduler');
var n = 0;
function main() {
var frame = new JFrame("Swing Demo");
var button = new JButton(new ImageIcon("img/ringo-drums.png"));
button.addActionListener(function(e) {
setInterv... | var {JFrame, JButton, ImageIcon, JLabel} = javax.swing;
var {setInterval} = require('ringo/scheduler');
var n = 0;
function main() {
var frame = new JFrame("Swing Demo");
- var button = new JButton(new ImageIcon("img/ringo-drums.png"));
+ var button = new JButton(new ImageIcon(module.resolve("i... | 2 | 0.076923 | 1 | 1 |
6351317e59bb8087db452676fa58e8a9fe12df6a | assets/stylesheets/app.sass | assets/stylesheets/app.sass | @import 'bootstrap'
#zonks
.zonk
padding-top: 20px
.name
padding-top: 10px
padding-bottom: 20px
#zonk_awards
padding-top: 10px
.award
padding-bottom: 5px
padding-top: 5px
#footer
padding-top: 20px
padding-bottom: 20px
| @import 'bootstrap'
#zonks
.zonk
img
border: 1px solid gold
padding-top: 20px
.name
padding-top: 10px
padding-bottom: 20px
#zonk_awards
padding-top: 10px
.award
img
border: 1px solid gold
padding-bottom: 5px
padding-top: 5px
#footer
padding-top: 20px
padding... | Add a border around zonks | Add a border around zonks
| Sass | mit | zimkies/zonks,zimkies/zonks | sass | ## Code Before:
@import 'bootstrap'
#zonks
.zonk
padding-top: 20px
.name
padding-top: 10px
padding-bottom: 20px
#zonk_awards
padding-top: 10px
.award
padding-bottom: 5px
padding-top: 5px
#footer
padding-top: 20px
padding-bottom: 20px
## Instruction:
Add a border around zonks
... | @import 'bootstrap'
#zonks
.zonk
+ img
+ border: 1px solid gold
padding-top: 20px
.name
padding-top: 10px
padding-bottom: 20px
#zonk_awards
padding-top: 10px
.award
+ img
+ border: 1px solid gold
padding-bottom: 5px
padding-top: 5px
... | 4 | 0.210526 | 4 | 0 |
4125c25bfaf12aeb90b2c3bb93cb42ddfa85ee2a | frontend/javascripts/components/Alert.js | frontend/javascripts/components/Alert.js | // @flow
import React, { Component } from 'react'
import type { Alert as AlertType } from '../types/application'
import type { clearAlert } from '../types/actions'
type Props = {
alert: AlertType,
clearAlert: clearAlert
}
export default class Alert extends Component {
props: Props
componentDidUpdate() {
... | // @flow
import React, { Component } from 'react'
import { lifecycle } from 'recompose'
import type { Alert as AlertType } from '../types/application'
import type { clearAlert } from '../types/actions'
type Props = {
alert: AlertType,
clearAlert: clearAlert
}
const Alert = ({ alert, clearAlert }: Props) => {
i... | Fix Stateless functional components + HOC | Fix Stateless functional components + HOC
| JavaScript | mit | f96q/kptboard,f96q/kptboard,f96q/kptboard,f96q/kptboard | javascript | ## Code Before:
// @flow
import React, { Component } from 'react'
import type { Alert as AlertType } from '../types/application'
import type { clearAlert } from '../types/actions'
type Props = {
alert: AlertType,
clearAlert: clearAlert
}
export default class Alert extends Component {
props: Props
componentD... | // @flow
import React, { Component } from 'react'
+ import { lifecycle } from 'recompose'
import type { Alert as AlertType } from '../types/application'
import type { clearAlert } from '../types/actions'
type Props = {
alert: AlertType,
clearAlert: clearAlert
}
- export default class Alert ... | 38 | 0.95 | 19 | 19 |
f59be7630ce5d929caf4e305991e20d133f55926 | app/views/application/_search_banner.html.haml | app/views/application/_search_banner.html.haml | .banner-search.banner
.container
.search-header
=form_tag search_path, method: "get", class: "form-inline" do
%h1.label-heading
%small.pre-heading Find data and code you can use
%label
Search over
= pluralize(floor_to_hundreds(Scraper.count), "scraper")
... | .banner-search.banner
.container
.search-header
=form_tag search_path, method: "get", class: "form-inline" do
%h1.label-heading
%small.pre-heading Find data and code you can use
%label
Search over
= pluralize(floor_to_hundreds(Scraper.count), "scraper")
... | Return country search with decent results and add url search | Return country search with decent results and add url search
| Haml | agpl-3.0 | openaustralia/morph,openaustralia/morph,otherchirps/morph,otherchirps/morph,otherchirps/morph,openaustralia/morph,openaustralia/morph,openaustralia/morph,otherchirps/morph,otherchirps/morph,otherchirps/morph,otherchirps/morph,openaustralia/morph,openaustralia/morph | haml | ## Code Before:
.banner-search.banner
.container
.search-header
=form_tag search_path, method: "get", class: "form-inline" do
%h1.label-heading
%small.pre-heading Find data and code you can use
%label
Search over
= pluralize(floor_to_hundreds(Scraper.count... | .banner-search.banner
.container
.search-header
=form_tag search_path, method: "get", class: "form-inline" do
%h1.label-heading
%small.pre-heading Find data and code you can use
%label
Search over
= pluralize(floor_to_hundreds(Scraper.cou... | 4 | 0.210526 | 2 | 2 |
dcf7f8430ef547f551187e4d6a822d01315889e9 | .github/workflows/ubuntu-latest.yml | .github/workflows/ubuntu-latest.yml | name: Ubuntu/latest CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up environment
run: |
sudo apt-get install gcc gir1.2-glib-2.0 gobject-introspection libgirepository... | name: Ubuntu Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up environment
run: |
sudo apt-get install gcc gir1.2-glib-2.0 gobject-introspection gtk-doc-tools libgi... | Add a job for building the API reference | ci: Add a job for building the API reference
| YAML | mit | ebassi/graphene,ebassi/graphene | yaml | ## Code Before:
name: Ubuntu/latest CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up environment
run: |
sudo apt-get install gcc gir1.2-glib-2.0 gobject-introspection... | - name: Ubuntu/latest CI
+ name: Ubuntu Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up environment
run: |
- sudo apt-get install ... | 15 | 0.555556 | 11 | 4 |
8f498053041a216f04373380822016c90efc309b | _TEMPLATE/applications/-Application-.js | _TEMPLATE/applications/-Application-.js | var controller;
$(function(){
var appName = "[ENTER YOUR APP NAME HERE]",
app = $.ku4webApp.app();
controller = $.ku4webApp.controllers[appName](app)
$.ku4webApp.views[appName](app);
/*======================================================*/
//[Other desired views or initialization scripting HERE... | var controller;
$(function(){
var appName = "[ENTER YOUR APP NAME HERE]",
app = $.ku4webApp.app().throwErrors();
controller = $.ku4webApp.controllers[appName](app)
$.ku4webApp.views[appName](app);
/*======================================================*/
//[Other desired views or initialization ... | Set app to throwErrors on by default | Set app to throwErrors on by default
| JavaScript | mit | kodmunki/ku4js-webApp,kodmunki/ku4js-webApp,kodmunki/ku4js-webApp,kodmunki/ku4js-webApp,kodmunki/ku4js-webApp | javascript | ## Code Before:
var controller;
$(function(){
var appName = "[ENTER YOUR APP NAME HERE]",
app = $.ku4webApp.app();
controller = $.ku4webApp.controllers[appName](app)
$.ku4webApp.views[appName](app);
/*======================================================*/
//[Other desired views or initializatio... | var controller;
$(function(){
var appName = "[ENTER YOUR APP NAME HERE]",
- app = $.ku4webApp.app();
+ app = $.ku4webApp.app().throwErrors();
? ++++++++++++++
controller = $.ku4webApp.controllers[appName](app)
$.ku4webApp.views[appName](app);
/*... | 2 | 0.142857 | 1 | 1 |
f3b66a24761b4e121ab4374496cf7505b1393ce4 | payments/static/payments/js/wallet.js | payments/static/payments/js/wallet.js |
// Success handler
var successHandler = function(status){
if (window.console != undefined) {
console.log("Purchase completed successfully: ", status);
}
window.location = $('input#google-wallet-id').data('success-url');
};
// Failure handler
var failureHandler = function(status){
if (window.co... | (function() {
// Success handler
var successHandler = function(status){
if (window.console != undefined) {
console.log("Purchase completed successfully: ", status);
}
window.location = document.getElementById('google-wallet-id').getAttribute('data-success-url');
};
... | Make widget independent from jquery | Make widget independent from jquery
| JavaScript | bsd-3-clause | bogdal/django-payments,derenio/django-payments,bogdal/django-payments,artursmet/django-payments,polonat/django-payments,imakin/pysar-payments,polonat/django-payments,dashmug/django-payments,dashmug/django-payments,dashmug/django-payments,imakin/pysar-payments,artursmet/django-payments,derenio/django-payments,derenio/dj... | javascript | ## Code Before:
// Success handler
var successHandler = function(status){
if (window.console != undefined) {
console.log("Purchase completed successfully: ", status);
}
window.location = $('input#google-wallet-id').data('success-url');
};
// Failure handler
var failureHandler = function(status){
... | + (function() {
- // Success handler
+ // Success handler
? ++++
- var successHandler = function(status){
+ var successHandler = function(status){
? ++++
- if (window.console != undefined) {
+ if (window.console != undefined) {
? ++++
- console.log("Purchase completed successfully: ", ... | 60 | 1.935484 | 33 | 27 |
eb9200dde855ae1c181a222e935c72035b3913a7 | resources/chef-repo/roles/db_setup.json | resources/chef-repo/roles/db_setup.json | {
"json_class":"Chef::Role",
"run_list": [
"recipe[mysql::server]"
]
}
| {
"json_class":"Chef::Role",
"run_list": [
"recipe[mysql::server]"
],
"default_attributes":{
"mysql":{
"version":"5.6"
}
}
}
| Add db_setuo.json for mysql version. | Add db_setuo.json for mysql version.
| JSON | apache-2.0 | cloudconductor-patterns/rails_pattern,cloudconductor-patterns/rails_pattern,cloudconductor-patterns/rails_pattern,cloudconductor-patterns/rails_pattern | json | ## Code Before:
{
"json_class":"Chef::Role",
"run_list": [
"recipe[mysql::server]"
]
}
## Instruction:
Add db_setuo.json for mysql version.
## Code After:
{
"json_class":"Chef::Role",
"run_list": [
"recipe[mysql::server]"
],
"default_attributes":{
"mysql":{
"version":"5.6"
}
}
}... | {
"json_class":"Chef::Role",
"run_list": [
"recipe[mysql::server]"
- ]
+ ],
? +
+ "default_attributes":{
+ "mysql":{
+ "version":"5.6"
+ }
+ }
}
| 7 | 1 | 6 | 1 |
0f27e6175c44853eb519417e933a78b59d5c1ccf | app/views/excursions/_excursion.html.erb | app/views/excursions/_excursion.html.erb | <%= div_for excursion, :class => 'content_size' do %>
<ul class="thumbnails">
<li class="span3">
<%= link_to excursion_thumb_for(excursion, 130), excursion, :class => "container" %>
<div class='number_pages'><%= excursion.slide_count %></div>
</li>
<li class="span9">
<div class="title"... | <%= div_for excursion, :class => 'content_size' do %>
<ul class="thumbnails">
<li class="span3">
<%= link_to excursion_thumb_for(excursion, 130), excursion, :class => "container" %>
<div class='number_pages'><%= excursion.slide_count %></div>
</li>
<li class="span9">
<div class="title"... | Remove duplicate star for excursion | Remove duplicate star for excursion
| HTML+ERB | agpl-3.0 | rogervaas/vish,ging/vish_orange,rogervaas/vish,agordillo/vish,suec78/vish_storyrobin,ging/vish,nathanV38/vishTst,ging/vish_orange,nathanV38/vishTst,ging/vish,agordillo/vish,ging/vish_orange,suec78/vish_storyrobin,ging/vish,suec78/vish_storyrobin,agordillo/vish,ging/vish_orange,ging/vish,agordillo/vish,ging/vish,rogerva... | html+erb | ## Code Before:
<%= div_for excursion, :class => 'content_size' do %>
<ul class="thumbnails">
<li class="span3">
<%= link_to excursion_thumb_for(excursion, 130), excursion, :class => "container" %>
<div class='number_pages'><%= excursion.slide_count %></div>
</li>
<li class="span9">
<d... | <%= div_for excursion, :class => 'content_size' do %>
<ul class="thumbnails">
<li class="span3">
<%= link_to excursion_thumb_for(excursion, 130), excursion, :class => "container" %>
<div class='number_pages'><%= excursion.slide_count %></div>
</li>
<li class="span9">
<d... | 1 | 0.055556 | 0 | 1 |
5ec3bc8e5b799d687b9414b62c16f2916a9ee169 | lib/zohax/crm.rb | lib/zohax/crm.rb | module Zohax
require 'httparty'
require 'json'
require 'xmlsimple'
class Crm
include HTTParty
def initialize(username, password, token = nil)
@api = Zohax::Api.new(username, password, token)
end
def find_leads(queryParameters)
@api.call('Leads', 'getRecords', queryParameters, :get... | module Zohax
require 'httparty'
require 'json'
require 'xmlsimple'
class Crm
include HTTParty
def initialize(username, password, token = nil)
@api = Zohax::Api.new(username, password, token)
end
def find_leads(queryParameters)
@api.call('Leads', 'getRecords', queryParameters, :get... | Add the ability to search leads. | Add the ability to search leads.
| Ruby | mit | domness/zohax | ruby | ## Code Before:
module Zohax
require 'httparty'
require 'json'
require 'xmlsimple'
class Crm
include HTTParty
def initialize(username, password, token = nil)
@api = Zohax::Api.new(username, password, token)
end
def find_leads(queryParameters)
@api.call('Leads', 'getRecords', query... | module Zohax
require 'httparty'
require 'json'
require 'xmlsimple'
class Crm
include HTTParty
def initialize(username, password, token = nil)
@api = Zohax::Api.new(username, password, token)
end
def find_leads(queryParameters)
@api.call('Leads', 'getRec... | 4 | 0.105263 | 4 | 0 |
58f0f874e23a5800eb23bcce4226c53310ceb103 | modules/people/README.md | modules/people/README.md |
Per-user manifests live in `modules/people/manifests/$login.pp`, where
`$login` is a GitHub login. A simple user manifest example:
```puppet
class people::jbarnette {
include emacs
$home = '/Users/jbarnette'
$my = "${home}/my"
$dotfiles = "${my}/dotfiles"
repository { $dotfiles:
source => '... |
Per-user manifests live in `modules/people/manifests/$login.pp`, where
`$login` is a GitHub login. A simple user manifest example:
```puppet
class people::jbarnette {
include emacs # requires emacs module in Puppetfile
include sparrow # requires sparrow module in Puppetfile
$home = '/Users/jbarnette'
$... | Update docs a bit for people example | Update docs a bit for people example
| Markdown | mit | ebruning/boxen,juherpin/myboxen,jtligon/voboxen,smh/my-boxen,ArpitJalan/boxen,jonmosco/boxen-test,juananruiz/boxen,pedro-mass/boxentest,billyvg/my-boxen,mkilpatrick/boxen_test,weiliv/boxen,morgante/boxen-saturn,urimikhli/myboxen,alvinlai/boxen,caciasmith/my-boxen,ggoodyer/boxen,kayleg/my-boxen,vindir/vindy-boxen,all9li... | markdown | ## Code Before:
Per-user manifests live in `modules/people/manifests/$login.pp`, where
`$login` is a GitHub login. A simple user manifest example:
```puppet
class people::jbarnette {
include emacs
$home = '/Users/jbarnette'
$my = "${home}/my"
$dotfiles = "${my}/dotfiles"
repository { $dotfiles:
... |
Per-user manifests live in `modules/people/manifests/$login.pp`, where
`$login` is a GitHub login. A simple user manifest example:
```puppet
class people::jbarnette {
- include emacs
+ include emacs # requires emacs module in Puppetfile
+ include sparrow # requires sparrow module in Puppetfile
... | 3 | 0.166667 | 2 | 1 |
cb01ae3411fb5650d92f50cd9b7f09aed02530dd | perfkitbenchmarker/data/run_hpcg.sh | perfkitbenchmarker/data/run_hpcg.sh |
HPCG_DIR=`pwd`
DATETIME=`hostname`.`date +"%Y%m%d.%H%M%S"`
MPIFLAGS="--mca btl tcp,self" # just to get rid of warning on psg cluster node wo proper IB sw installed
HPCG_BIN="hpcg"
echo " ****** running HPCG 9-3-20 binary=$HPCG_BIN on $NUM_GPUS GPUs ***************************** "
mpirun {{ ALLOW_RUN_AS_ROOT }} -n... |
HPCG_DIR=`pwd`
DATETIME=`hostname`.`date +"%Y%m%d.%H%M%S"`
# Just to get rid of warning on psg cluster node wo proper IB sw installed
# Use mca btl_tcp_if_exclude to skip docker network in DLVM.
MPIFLAGS="--mca btl tcp,self --mca btl_tcp_if_exclude docker0,lo"
HPCG_BIN="hpcg"
echo " ****** running HPCG 9-3-20 binar... | Use mca btl_tcp_if_exclude to skip docker network in HPCG benchmark. | Use mca btl_tcp_if_exclude to skip docker network in HPCG benchmark.
PiperOrigin-RevId: 347691671
| Shell | apache-2.0 | GoogleCloudPlatform/PerfKitBenchmarker,GoogleCloudPlatform/PerfKitBenchmarker,GoogleCloudPlatform/PerfKitBenchmarker,GoogleCloudPlatform/PerfKitBenchmarker | shell | ## Code Before:
HPCG_DIR=`pwd`
DATETIME=`hostname`.`date +"%Y%m%d.%H%M%S"`
MPIFLAGS="--mca btl tcp,self" # just to get rid of warning on psg cluster node wo proper IB sw installed
HPCG_BIN="hpcg"
echo " ****** running HPCG 9-3-20 binary=$HPCG_BIN on $NUM_GPUS GPUs ***************************** "
mpirun {{ ALLOW_R... |
HPCG_DIR=`pwd`
DATETIME=`hostname`.`date +"%Y%m%d.%H%M%S"`
- MPIFLAGS="--mca btl tcp,self" # just to get rid of warning on psg cluster node wo proper IB sw installed
? -------------------------------- ^
+ # Just to get rid of warning on psg cluster node wo proper IB sw installed
? ^
+ # Use mca btl_... | 4 | 0.4 | 3 | 1 |
ef6c664ff706656dcdf8c4161244114f1ce39e45 | doc/CMakeLists.txt | doc/CMakeLists.txt | if( ${DOXYGEN_FOUND} STREQUAL "YES" )
if( ${LATEX_FOUND} )
add_custom_target( doc
${DOXYGEN_EXECUTABLE} "doxyfile"
COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/doxygen/latex/make.bat"
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
COMMENT "Generating API documentation with Doxygen." VERBATIM
... | if( ${DOXYGEN_FOUND} STREQUAL "YES" )
if( ${LATEX_FOUND} )
add_custom_target( doc
${DOXYGEN_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/doxyfile"
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/.."
COMMENT "Generating API documentation with Doxygen." VERBATIM
)
endif()
endif()
install(FILES... | Remove call to make.bat for linux systems | Remove call to make.bat for linux systems
| Text | mit | BGWoodward/FishDetector | text | ## Code Before:
if( ${DOXYGEN_FOUND} STREQUAL "YES" )
if( ${LATEX_FOUND} )
add_custom_target( doc
${DOXYGEN_EXECUTABLE} "doxyfile"
COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/doxygen/latex/make.bat"
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
COMMENT "Generating API documentation with Doxygen... | if( ${DOXYGEN_FOUND} STREQUAL "YES" )
if( ${LATEX_FOUND} )
add_custom_target( doc
+ ${DOXYGEN_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/doxyfile"
- ${DOXYGEN_EXECUTABLE} "doxyfile"
- COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/doxygen/latex/make.bat"
- WORKING_DIRECTORY "${CMAKE_CURRENT_SOUR... | 5 | 0.263158 | 2 | 3 |
7baac2883aa6abc0f1f458882025ba1d0e9baab2 | app/migrations/versions/4ef20b76cab1_.py | app/migrations/versions/4ef20b76cab1_.py |
# revision identifiers, used by Alembic.
revision = '4ef20b76cab1'
down_revision = '55004b0f00d6'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.execute("CREATE EXTENSION postgis;")
op.execute("CREATE EXTENSION postgis_topology;")
def downgrade():
op.execute("DROP EXTENSION postgis_to... |
# revision identifiers, used by Alembic.
revision = '4ef20b76cab1'
down_revision = '55004b0f00d6'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.execute("CREATE EXTENSION IF NOT EXISTS postgis;")
op.execute("CREATE EXTENSION IF NOT EXISTS postgis_topology;")
def downgrade():
op.execut... | Add extra code to PostGIS migration to only create extensions if they're not already there. Drop on rollback only if extensions exist. | Add extra code to PostGIS migration to only create extensions if they're not already there. Drop on rollback only if extensions exist.
| Python | mit | openchattanooga/cpd-zones-old,openchattanooga/cpd-zones-old | python | ## Code Before:
# revision identifiers, used by Alembic.
revision = '4ef20b76cab1'
down_revision = '55004b0f00d6'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.execute("CREATE EXTENSION postgis;")
op.execute("CREATE EXTENSION postgis_topology;")
def downgrade():
op.execute("DROP EXTE... |
# revision identifiers, used by Alembic.
revision = '4ef20b76cab1'
down_revision = '55004b0f00d6'
from alembic import op
import sqlalchemy as sa
def upgrade():
- op.execute("CREATE EXTENSION postgis;")
+ op.execute("CREATE EXTENSION IF NOT EXISTS postgis;")
? ... | 8 | 0.5 | 4 | 4 |
212d8653cddf39aaa4594c55de3dd3afe6fdb993 | lib/hato/httpd.rb | lib/hato/httpd.rb | require 'json'
require 'sinatra'
require 'sinatra/logger'
module Hato
class Httpd
def initialize(observer, config)
@observer = observer
@config = config
end
def run
App.set(:observer, @observer)
App.set(:api_key, @config.api_key)
Rack::Handler::WEBrick.run(
App.... | require 'json'
require 'sinatra'
require 'sinatra/logger'
module Hato
class Httpd
def initialize(observer, config)
@observer = observer
@config = config
end
def run
App.set(:observer, @observer)
App.set(:api_key, @config.api_key)
Rack::Handler::WEBrick.run(
App.... | Allow users to visit to '/' without API key;; | Allow users to visit to '/' without API key;;
| Ruby | mit | kentaro/hato | ruby | ## Code Before:
require 'json'
require 'sinatra'
require 'sinatra/logger'
module Hato
class Httpd
def initialize(observer, config)
@observer = observer
@config = config
end
def run
App.set(:observer, @observer)
App.set(:api_key, @config.api_key)
Rack::Handler::WEBrick.r... | require 'json'
require 'sinatra'
require 'sinatra/logger'
module Hato
class Httpd
def initialize(observer, config)
@observer = observer
@config = config
end
def run
App.set(:observer, @observer)
App.set(:api_key, @config.api_key)
Rack::Ha... | 8 | 0.163265 | 6 | 2 |
28b6cf8b159b353434bce9f9644937483dd04860 | docker-entrypoint.sh | docker-entrypoint.sh | mongo --host mongo --eval "use tomatoes_app_development; use tomatoes_app_test; exit;"
rails s
| mongo --host mongo --eval "use tomatoes_app_development; use tomatoes_app_test; exit;"
bundle exec rails s
| Call rails server with bundle exec | Call rails server with bundle exec
| Shell | mit | tomatoes-app/tomatoes,tomatoes-app/tomatoes,tomatoes-app/tomatoes,tomatoes-app/tomatoes | shell | ## Code Before:
mongo --host mongo --eval "use tomatoes_app_development; use tomatoes_app_test; exit;"
rails s
## Instruction:
Call rails server with bundle exec
## Code After:
mongo --host mongo --eval "use tomatoes_app_development; use tomatoes_app_test; exit;"
bundle exec rails s
| mongo --host mongo --eval "use tomatoes_app_development; use tomatoes_app_test; exit;"
- rails s
+ bundle exec rails s | 2 | 0.666667 | 1 | 1 |
b05662b9ef789d58867ce62de041ce59434107c7 | addon/adapters/user.js | addon/adapters/user.js | import OsfAdapter from './osf-adapter';
import Ember from 'ember';
export default OsfAdapter.extend({
findHasMany(store, snapshot, url, relationship) {
var id = snapshot.id;
var type = snapshot.modelName;
url = this.urlPrefix(url, this.buildURL(type, id, snapshot, 'findHasMany'));
... | import OsfAdapter from './osf-adapter';
import Ember from 'ember';
export default OsfAdapter.extend({
});
| Remove unused findHasMany method on osfadapter | Remove unused findHasMany method on osfadapter
| JavaScript | apache-2.0 | baylee-d/ember-osf,CenterForOpenScience/ember-osf,baylee-d/ember-osf,jamescdavis/ember-osf,binoculars/ember-osf,CenterForOpenScience/ember-osf,jamescdavis/ember-osf,binoculars/ember-osf | javascript | ## Code Before:
import OsfAdapter from './osf-adapter';
import Ember from 'ember';
export default OsfAdapter.extend({
findHasMany(store, snapshot, url, relationship) {
var id = snapshot.id;
var type = snapshot.modelName;
url = this.urlPrefix(url, this.buildURL(type, id, snapshot, 'findHasM... | import OsfAdapter from './osf-adapter';
import Ember from 'ember';
export default OsfAdapter.extend({
- findHasMany(store, snapshot, url, relationship) {
- var id = snapshot.id;
- var type = snapshot.modelName;
-
- url = this.urlPrefix(url, this.buildURL(type, id, snapshot, 'findHa... | 18 | 0.782609 | 0 | 18 |
ab9f0a0b893fbef1ddd53f40b3e645c1b3fd60d1 | lib/learn/cli.rb | lib/learn/cli.rb | module Learn
class CLI < Thor
desc "[test] [options]", "Run a lesson's test suite"
def test(opts=nil)
system("learn-test #{opts}")
end
end
end
| module Learn
class CLI < Thor
desc "[test] [options]", "Run a lesson's test suite"
long_desc <<-LONGDESC
`learn [test] [options]` will run your lesson's test suite.
You can supply the following options when running Jasmine tests:
-n, --[no-]color # Turn off color output
-l, --local ... | Add better description for learn test | Add better description for learn test
| Ruby | mit | learn-co/learn-co | ruby | ## Code Before:
module Learn
class CLI < Thor
desc "[test] [options]", "Run a lesson's test suite"
def test(opts=nil)
system("learn-test #{opts}")
end
end
end
## Instruction:
Add better description for learn test
## Code After:
module Learn
class CLI < Thor
desc "[test] [options]", "Run a ... | module Learn
class CLI < Thor
desc "[test] [options]", "Run a lesson's test suite"
+ long_desc <<-LONGDESC
+ `learn [test] [options]` will run your lesson's test suite.
+
+ You can supply the following options when running Jasmine tests:
+
+ -n, --[no-]color # Turn off color output
... | 14 | 1.75 | 14 | 0 |
0a9f2d46325ce6856a3979127390f2e48357abd9 | schedule2stimuli.py | schedule2stimuli.py |
import csv
import pprint
p = 0
# read schedule (from SCRT)
schedule_f = 'schedule_' + str(p)
inf = open(schedule_f,'r')
for line in inf.readlines():
line = line.rstrip()
schedule = line.split(' ')
inf.close()
# allocate stimuli
a = 0
b = []
phase = ''
for session in range(1,36):
print "%s" % session
... |
import csv
import pprint
p = 0
# read schedule (from SCRT)
schedule_f = 'schedule_' + str(p)
inf = open(schedule_f,'r')
for line in inf.readlines():
line = line.rstrip()
schedule = line.split(' ')
inf.close()
# allocate stimuli and write csv
a = 0
b = []
phase = ''
csvfile = open('stimuli_' + ... | Write stimuli schedule to csv file. | Write stimuli schedule to csv file.
| Python | cc0-1.0 | earcanal/dotprobe,earcanal/dotprobe,earcanal/dotprobe | python | ## Code Before:
import csv
import pprint
p = 0
# read schedule (from SCRT)
schedule_f = 'schedule_' + str(p)
inf = open(schedule_f,'r')
for line in inf.readlines():
line = line.rstrip()
schedule = line.split(' ')
inf.close()
# allocate stimuli
a = 0
b = []
phase = ''
for session in range(1,36):
print "%... |
import csv
import pprint
p = 0
# read schedule (from SCRT)
schedule_f = 'schedule_' + str(p)
inf = open(schedule_f,'r')
for line in inf.readlines():
line = line.rstrip()
schedule = line.split(' ')
inf.close()
- # allocate stimuli
- a = 0
- b = []
+ # allocate stimuli and write cs... | 16 | 0.432432 | 9 | 7 |
36c61d36a4c248165d76c01905ed90f585879245 | src/controllers/homeController.ts | src/controllers/homeController.ts | import { Request, Response } from 'express';
import type { IBoard } from '../types/trello';
import { TrelloService } from '../services/trelloService';
export function index(_: Request, res: Response): Response {
return res.send(':)');
}
export async function healthCheck(_: Request, res: Response): Promise<Response>... | import { Request, Response } from 'express';
import type { IBoard } from '../types/trello';
import { TrelloService } from '../services/trelloService';
export function index(_: Request, res: Response): Response {
return res.send(`:)<br />${process.env.GIT_REV || ''}`);
}
export async function healthCheck(_: Request,... | Include git hash for index view | Include git hash for index view
| TypeScript | bsd-3-clause | mpirik/github-trello-card-events,mpirik/github-trello-card-events,mpirik/github-trello-card-events | typescript | ## Code Before:
import { Request, Response } from 'express';
import type { IBoard } from '../types/trello';
import { TrelloService } from '../services/trelloService';
export function index(_: Request, res: Response): Response {
return res.send(':)');
}
export async function healthCheck(_: Request, res: Response): P... | import { Request, Response } from 'express';
import type { IBoard } from '../types/trello';
import { TrelloService } from '../services/trelloService';
export function index(_: Request, res: Response): Response {
- return res.send(':)');
+ return res.send(`:)<br />${process.env.GIT_REV || ''}`);
}
... | 2 | 0.071429 | 1 | 1 |
16c9d81e8b63b67c9749dd9632733f75e7f87d2c | .travis.yml | .travis.yml | language: ruby
sudo: false
cache: bundler
script: bundle exec rake test
before_install:
- gem i bundler -v=1.10.3
before_script:
- psql -c 'create database activerecord_correctable;' -U postgres
rvm:
- 2.1
- 2.2.2
- ruby-head
gemfile:
- gemfiles/activerecord_40.gemfile
- gemfiles/activerecord... | language: ruby
sudo: false
cache: bundler
script: bundle exec rake test
before_install:
- gem i bundler
before_script:
- psql -c 'create database activerecord_correctable;' -U postgres
rvm:
- 2.1
- 2.2.2
- ruby-head
gemfile:
- gemfiles/activerecord_40.gemfile
- gemfiles/activerecord_41.gemfil... | Use the latest version of bundler | Use the latest version of bundler
| YAML | mit | yuki24/did_you_mean-activerecord,yuki24/activerecord-correctable,yuki24/activerecord-correctable | yaml | ## Code Before:
language: ruby
sudo: false
cache: bundler
script: bundle exec rake test
before_install:
- gem i bundler -v=1.10.3
before_script:
- psql -c 'create database activerecord_correctable;' -U postgres
rvm:
- 2.1
- 2.2.2
- ruby-head
gemfile:
- gemfiles/activerecord_40.gemfile
- gemfi... | language: ruby
sudo: false
cache: bundler
script: bundle exec rake test
before_install:
- - gem i bundler -v=1.10.3
? ----------
+ - gem i bundler
before_script:
- psql -c 'create database activerecord_correctable;' -U postgres
rvm:
- 2.1
- 2.2.2
- r... | 2 | 0.055556 | 1 | 1 |
34d173afa9b94c884e0991a98f2768fa33d21d02 | composer.json | composer.json | {
"name": "matthewbdaly/laravel-etag-middleware",
"description": "A Laravel middleware for adding ETags to HTTP requests to improve response times",
"keywords": ["laravel", "etags", "etag", "middleware", "http"],
"type": "library",
"require": {
"illuminate/support": "5.1.x|5.2.x|5.3.x|5.4.x"... | {
"name": "matthewbdaly/laravel-etag-middleware",
"description": "A Laravel middleware for adding ETags to HTTP requests to improve response times",
"keywords": ["laravel", "etags", "etag", "middleware", "http"],
"type": "library",
"require": {
"illuminate/support": "5.1.x|5.2.x|5.3.x|5.4.x|... | Add support for Laravel 5.5 | Add support for Laravel 5.5 | JSON | mit | matthewbdaly/laravel-etag-middleware | json | ## Code Before:
{
"name": "matthewbdaly/laravel-etag-middleware",
"description": "A Laravel middleware for adding ETags to HTTP requests to improve response times",
"keywords": ["laravel", "etags", "etag", "middleware", "http"],
"type": "library",
"require": {
"illuminate/support": "5.1.x|5.... | {
"name": "matthewbdaly/laravel-etag-middleware",
"description": "A Laravel middleware for adding ETags to HTTP requests to improve response times",
"keywords": ["laravel", "etags", "etag", "middleware", "http"],
"type": "library",
"require": {
- "illuminate/support": "5.1.x|5.2.... | 4 | 0.133333 | 2 | 2 |
5b7bc8baba35bc816c7dc94768d9fae05c7b78ec | zephyr/shim/include/zephyr_host_command.h | zephyr/shim/include/zephyr_host_command.h | /* Copyright 2021 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#if !defined(__CROS_EC_HOST_COMMAND_H) || \
defined(__CROS_EC_ZEPHYR_HOST_COMMAND_H)
#error "This file must only be included from host_command.h. ... | /* Copyright 2021 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#if !defined(__CROS_EC_HOST_COMMAND_H) || \
defined(__CROS_EC_ZEPHYR_HOST_COMMAND_H)
#error "This file must only be included from host_command.h. ... | Use a different way of handling no host commands | zephyr: Use a different way of handling no host commands
When CONFIG_PLATFORM_EC_HOSTCMD is not enabled we want to silently drop
the handler routines from the build. The current approach works for gcc
but not for clang.
Use an exported function instead.
BUG=b:208648337
BRANCH=none
TEST=CQ and gitlab
Signed-off-by: ... | C | bsd-3-clause | coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec | c | ## Code Before:
/* Copyright 2021 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#if !defined(__CROS_EC_HOST_COMMAND_H) || \
defined(__CROS_EC_ZEPHYR_HOST_COMMAND_H)
#error "This file must only be included from ... | /* Copyright 2021 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#if !defined(__CROS_EC_HOST_COMMAND_H) || \
defined(__CROS_EC_ZEPHYR_HOST_COMMAND_H)
#error "This file must only be included from ... | 20 | 0.588235 | 13 | 7 |
8d58a3ac4425ce59566a5f0c592afea485275024 | .travis.yml | .travis.yml | language: python
python:
- "2.6"
- "2.7"
- "pypy"
install: pip install -r requirements.txt --use-mirrors
before_script: python setup.py pep8
script: python setup.py test
| language: python
python:
- "2.6"
- "2.7"
- "pypy"
install: pip install -r requirements.txt --use-mirrors
before_script: python setup.py pep8
script: python setup.py test
notifications:
email:
- farscape-dev@lists.rackspace.com
| Send failure notifications to farscape-dev. | Send failure notifications to farscape-dev.
| YAML | apache-2.0 | racker/python-twisted-service-registry-client | yaml | ## Code Before:
language: python
python:
- "2.6"
- "2.7"
- "pypy"
install: pip install -r requirements.txt --use-mirrors
before_script: python setup.py pep8
script: python setup.py test
## Instruction:
Send failure notifications to farscape-dev.
## Code After:
language: python
python:
- "2.6"
- "2.7"
-... | language: python
python:
- "2.6"
- "2.7"
- "pypy"
install: pip install -r requirements.txt --use-mirrors
before_script: python setup.py pep8
script: python setup.py test
+
+ notifications:
+ email:
+ - farscape-dev@lists.rackspace.com | 4 | 0.444444 | 4 | 0 |
642db2ac6f351e91eb40401d0515f922464fcdb0 | README.md | README.md | camunda-connect
===============
<p>
<a href="http://camunda.org/">Home</a> |
<a href="http://docs.camunda.org/latest/api-references/connect/">Documentation</a> |
<a href="http://camunda.org/community/forum.html">Forum</a> |
<a href="https://app.camunda.com/jira/browse/CAM">Issues</a> |
<a href="LICENSE">Lice... | camunda-connect
===============
<p>
<a href="http://camunda.org/">Home</a> |
<a href="http://docs.camunda.org/latest/api-references/connect/">Documentation</a> |
<a href="http://camunda.org/community/forum.html">Forum</a> |
<a href="https://app.camunda.com/jira/browse/CAM">Issues</a> |
<a href="LICENSE">Lice... | Update Link to Official Documentation | Update Link to Official Documentation
Existing link pointed to camunda 7.3 | Markdown | apache-2.0 | camunda/camunda-connect | markdown | ## Code Before:
camunda-connect
===============
<p>
<a href="http://camunda.org/">Home</a> |
<a href="http://docs.camunda.org/latest/api-references/connect/">Documentation</a> |
<a href="http://camunda.org/community/forum.html">Forum</a> |
<a href="https://app.camunda.com/jira/browse/CAM">Issues</a> |
<a hre... | camunda-connect
===============
<p>
<a href="http://camunda.org/">Home</a> |
<a href="http://docs.camunda.org/latest/api-references/connect/">Documentation</a> |
<a href="http://camunda.org/community/forum.html">Forum</a> |
<a href="https://app.camunda.com/jira/browse/CAM">Issues</a> |
<a h... | 2 | 0.0625 | 1 | 1 |
91a320460574eff1dacaa37ca199b5f57297ad63 | packages/th/th-printf.yaml | packages/th/th-printf.yaml | homepage: https://github.com/pikajude/th-printf
changelog-type: ''
hash: 5b13059c65fa6ba15be758126489786cc357111bae9c7fbe46d970900217112b
test-bench-deps:
bytestring: -any
base: -any
hspec: -any
text: -any
criterion: -any
th-printf: -any
HUnit: -any
QuickCheck: -any
template-haskell: -any
maintainer: ... | homepage: https://github.com/pikajude/th-printf
changelog-type: ''
hash: 85571aaca3e6948ea595edc5257fcd095554ec81214e28d35896d219c1679992
test-bench-deps:
bytestring: -any
base: -any
hspec: -any
text: -any
criterion: -any
th-printf: -any
HUnit: -any
QuickCheck: -any
template-haskell: -any
maintainer: ... | Update from Hackage at 2018-03-18T01:09:58Z | Update from Hackage at 2018-03-18T01:09:58Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: https://github.com/pikajude/th-printf
changelog-type: ''
hash: 5b13059c65fa6ba15be758126489786cc357111bae9c7fbe46d970900217112b
test-bench-deps:
bytestring: -any
base: -any
hspec: -any
text: -any
criterion: -any
th-printf: -any
HUnit: -any
QuickCheck: -any
template-haskell: -... | homepage: https://github.com/pikajude/th-printf
changelog-type: ''
- hash: 5b13059c65fa6ba15be758126489786cc357111bae9c7fbe46d970900217112b
+ hash: 85571aaca3e6948ea595edc5257fcd095554ec81214e28d35896d219c1679992
test-bench-deps:
bytestring: -any
base: -any
hspec: -any
text: -any
criterion: -a... | 7 | 0.2 | 4 | 3 |
d431102e314ad6d9ca4cf362e51a2e5c9306a37d | people/2016/spring/rdp1070.yaml | people/2016/spring/rdp1070.yaml | name: Bobby D. Pruden
blog: https://rdp1070.wordpress.com/
feed: https://rdp1070.wordpress.com/feed/
email: rdp1070@rit.edu
major: New Media Interactive Development 2017
rit_dce: None
irc: JustBobbyThings
forges:
- https://github.com/rdp1070
bio: I love Games, I love working with people. FOSS here I come.
hw:
firs... | name: Bobby D. Pruden
blog: https://rdp1070.wordpress.com/
feed: https://rdp1070.wordpress.com/feed/
email: rdp1070@rit.edu
major: New Media Interactive Development 2017
rit_dce: None
irc: JustBobbyThings
forges:
- https://github.com/rdp1070
bio: I love Games, I love working with people. FOSS here I come.
hw:
firs... | Add the litreview1 to rpd1070.yaml | Add the litreview1 to rpd1070.yaml | YAML | apache-2.0 | deejoe/hfoss,deejoe/hfoss,theheckle/hfoss,theheckle/hfoss | yaml | ## Code Before:
name: Bobby D. Pruden
blog: https://rdp1070.wordpress.com/
feed: https://rdp1070.wordpress.com/feed/
email: rdp1070@rit.edu
major: New Media Interactive Development 2017
rit_dce: None
irc: JustBobbyThings
forges:
- https://github.com/rdp1070
bio: I love Games, I love working with people. FOSS here I c... | name: Bobby D. Pruden
blog: https://rdp1070.wordpress.com/
feed: https://rdp1070.wordpress.com/feed/
email: rdp1070@rit.edu
major: New Media Interactive Development 2017
rit_dce: None
irc: JustBobbyThings
forges:
- https://github.com/rdp1070
bio: I love Games, I love working with people. FOSS here... | 1 | 0.083333 | 1 | 0 |
0fc66a3185aa2e49fff3f4925d6bb1758b89f41f | docs/faraday-configuration.md | docs/faraday-configuration.md |
Flexirest uses Faraday to allow switching HTTP backends, the default is to just use Faraday's default. To change the used backend just set it in the class by setting `adapter` to a Faraday supported adapter symbol.
```ruby
Flexirest::Base.adapter = :net_http
# or ...
Flexirest::Base.adapter = :patron
```
In versions... |
Flexirest uses Faraday to allow switching HTTP backends, the default is to just use Faraday's default. To change the used backend just set it in the class by setting `adapter` to a Faraday supported adapter symbol.
```ruby
Flexirest::Base.adapter = :net_http
# or ...
Flexirest::Base.adapter = :patron
```
In versions... | Add documentation on disabling SSL certificate verification | Add documentation on disabling SSL certificate verification
| Markdown | mit | andyjeffries/flexirest | markdown | ## Code Before:
Flexirest uses Faraday to allow switching HTTP backends, the default is to just use Faraday's default. To change the used backend just set it in the class by setting `adapter` to a Faraday supported adapter symbol.
```ruby
Flexirest::Base.adapter = :net_http
# or ...
Flexirest::Base.adapter = :patron
... |
Flexirest uses Faraday to allow switching HTTP backends, the default is to just use Faraday's default. To change the used backend just set it in the class by setting `adapter` to a Faraday supported adapter symbol.
```ruby
Flexirest::Base.adapter = :net_http
# or ...
Flexirest::Base.adapter = :patron
... | 1 | 0.037037 | 1 | 0 |
a62bf8509e69239f898b595958c9bc4c71cad4ea | app/containers/EditRequestPage.js | app/containers/EditRequestPage.js | import React, { Component } from 'react';
import RequestEditor from '../components/RequestEditor';
import ResponseViewer from '../components/ResponseViewer';
import * as actionCreators from '../actions/project';
import { connect } from 'react-redux';
class EditRequestPage extends Component {
constructor(props) {
... | import React, { Component } from 'react';
import RequestEditor from '../components/RequestEditor';
import ResponseViewer from '../components/ResponseViewer';
import * as actionCreators from '../actions/project';
import { connect } from 'react-redux';
class EditRequestPage extends Component {
constructor(props) {
... | Select specific request from redux state directly in connect | Select specific request from redux state directly in connect
This prevents unneeded re-renders, because before it would rerender when
anything in a project would change.
| JavaScript | mpl-2.0 | pascalw/gettable,pascalw/gettable | javascript | ## Code Before:
import React, { Component } from 'react';
import RequestEditor from '../components/RequestEditor';
import ResponseViewer from '../components/ResponseViewer';
import * as actionCreators from '../actions/project';
import { connect } from 'react-redux';
class EditRequestPage extends Component {
construc... | import React, { Component } from 'react';
import RequestEditor from '../components/RequestEditor';
import ResponseViewer from '../components/ResponseViewer';
import * as actionCreators from '../actions/project';
import { connect } from 'react-redux';
class EditRequestPage extends Component {
construc... | 22 | 0.44 | 8 | 14 |
9df63d72b4bbed0f543d5a2d815c84a0f457ca36 | tasks/install_binary.yml | tasks/install_binary.yml | ---
- name: Get fabio checksums file
get_url:
url: "{{ fabio_checksum_file_url }}"
dest: "{{ fabio_download_dir }}/{{ fabio_checksum_file }}"
- name: Get checksum of fabio binary
shell: >
grep {{ fabio_pkg }} {{ fabio_download_dir }}/{{ fabio_checksum_file }}
register: chksum
changed_when: False
... | ---
- name: Get fabio checksums file
get_url:
url: "{{ fabio_checksum_file_url }}"
dest: "{{ fabio_download_dir }}/{{ fabio_checksum_file }}"
- name: Get checksum of fabio binary
shell: >
grep {{ fabio_pkg }} {{ fabio_download_dir }}/{{ fabio_checksum_file }}
register: chksum
changed_when: False
... | Install Fabio binary in correct location | Install Fabio binary in correct location
| YAML | mit | lobsterdore/ansible-fabio | yaml | ## Code Before:
---
- name: Get fabio checksums file
get_url:
url: "{{ fabio_checksum_file_url }}"
dest: "{{ fabio_download_dir }}/{{ fabio_checksum_file }}"
- name: Get checksum of fabio binary
shell: >
grep {{ fabio_pkg }} {{ fabio_download_dir }}/{{ fabio_checksum_file }}
register: chksum
chang... | ---
- name: Get fabio checksums file
get_url:
url: "{{ fabio_checksum_file_url }}"
dest: "{{ fabio_download_dir }}/{{ fabio_checksum_file }}"
- name: Get checksum of fabio binary
shell: >
grep {{ fabio_pkg }} {{ fabio_download_dir }}/{{ fabio_checksum_file }}
register: chksum
... | 2 | 0.105263 | 1 | 1 |
1b3b6593fd86388a467f4ee5844299ca2e359f47 | profile.d/keymap.sh | profile.d/keymap.sh | if [[ $(uname -n) = "gh4ck3r" && $(grep DISTRIB_RELEASE= /etc/lsb-release | cut -f2 -d'=') = "14.04" ]];then
if which xmodmap > /dev/null 2>&1; then
xmodmap -e 'keycode 108 = Hangul'
xmodmap -e 'keycode 105 = Hangul_Hanja'
xmodmap -e 'remove mod1 = Hangul'
xmodmap -e 'remove control = Hangul_Hanja'
... | if [[ $(uname -n) = "gh4ck3r" && $(grep DISTRIB_RELEASE= /etc/lsb-release | cut -f2 -d'=') = "14.04" ]];then
if which xmodmap > /dev/null 2>&1; then
xmodmap -e 'keycode 108 = Hangul'
xmodmap -e 'keycode 105 = Hangul_Hanja'
xmodmap -pm | while read mod_key rest; do
case "$mod_key" in
"mod1")
... | Check Hangul/Hanja key remapping before modifying. | Check Hangul/Hanja key remapping before modifying.
This remove annoying message from xmodmap when launch new terminal with shortcut
| Shell | mit | gh4ck3r/.bash,gh4ck3r/.bash | shell | ## Code Before:
if [[ $(uname -n) = "gh4ck3r" && $(grep DISTRIB_RELEASE= /etc/lsb-release | cut -f2 -d'=') = "14.04" ]];then
if which xmodmap > /dev/null 2>&1; then
xmodmap -e 'keycode 108 = Hangul'
xmodmap -e 'keycode 105 = Hangul_Hanja'
xmodmap -e 'remove mod1 = Hangul'
xmodmap -e 'remove control = ... | if [[ $(uname -n) = "gh4ck3r" && $(grep DISTRIB_RELEASE= /etc/lsb-release | cut -f2 -d'=') = "14.04" ]];then
if which xmodmap > /dev/null 2>&1; then
xmodmap -e 'keycode 108 = Hangul'
xmodmap -e 'keycode 105 = Hangul_Hanja'
+ xmodmap -pm | while read mod_key rest; do
+ case "$mod_key" in
+ ... | 15 | 0.9375 | 13 | 2 |
a03b20209bb1419cbc961961307710e716797960 | features/support/vcr.rb | features/support/vcr.rb | require 'vcr'
VCR.configure do |c|
c.cassette_library_dir = 'features/cassettes'
c.hook_into :webmock
c.ignore_hosts 'codeclimate.com'
c.ignore_request do |req|
# Don't mock the call that Poltergeist polls while waiting for
# Phantomjs to load (http://localhost:<random port>/__identify__)
req.uri =... | require 'vcr'
require 'dotenv/load'
VCR.configure do |c|
c.cassette_library_dir = 'features/cassettes'
c.hook_into :webmock
c.ignore_hosts 'codeclimate.com'
c.ignore_request do |req|
# Don't mock the call that Poltergeist polls while waiting for
# Phantomjs to load (http://localhost:<random port>/__ide... | Add Algolia init ENV vars for specs | Add Algolia init ENV vars for specs
- In case a cassette needs to be re-recorded the keys are needed.
It is not immediately clear in dev why the spec is returning 403
while the keys are correct in .env
| Ruby | mit | moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend | ruby | ## Code Before:
require 'vcr'
VCR.configure do |c|
c.cassette_library_dir = 'features/cassettes'
c.hook_into :webmock
c.ignore_hosts 'codeclimate.com'
c.ignore_request do |req|
# Don't mock the call that Poltergeist polls while waiting for
# Phantomjs to load (http://localhost:<random port>/__identify_... | require 'vcr'
+ require 'dotenv/load'
VCR.configure do |c|
c.cassette_library_dir = 'features/cassettes'
c.hook_into :webmock
c.ignore_hosts 'codeclimate.com'
c.ignore_request do |req|
# Don't mock the call that Poltergeist polls while waiting for
# Phantomjs to load (http://localhost... | 4 | 0.125 | 4 | 0 |
97ff446daaad87d98f1b602ad940058ec9d7684c | build.properties | build.properties | version-id:0.20
platform-version:110.0
# Link to the IntellIJ IDEA 11 RC. More details are available here: http://www.jetbrains.com/idea/nextversion/
idea.download.url=http://download.jetbrains.com/idea/ideaIU-111.41.zip
| version-id:0.20
platform-version:110.0
idea.download.url=http://download.jetbrains.com/idea/ideaIU-11.zip
| Update link for IntelliJ IDEA to download | Update link for IntelliJ IDEA to download
| INI | mit | JetBrains/ideavim,JetBrains/ideavim | ini | ## Code Before:
version-id:0.20
platform-version:110.0
# Link to the IntellIJ IDEA 11 RC. More details are available here: http://www.jetbrains.com/idea/nextversion/
idea.download.url=http://download.jetbrains.com/idea/ideaIU-111.41.zip
## Instruction:
Update link for IntelliJ IDEA to download
## Code After:
version-... | version-id:0.20
platform-version:110.0
- # Link to the IntellIJ IDEA 11 RC. More details are available here: http://www.jetbrains.com/idea/nextversion/
- idea.download.url=http://download.jetbrains.com/idea/ideaIU-111.41.zip
? ----
+ idea.download.url=h... | 3 | 0.75 | 1 | 2 |
e4a4f3cfd48d6343d330f7d10270266de9b65a15 | rspec_testing.rb | rspec_testing.rb | require "rubygems"
require "json"
require "socket"
serverspec_results = `cd /rspec_tests ; sudo ruby -S rspec spec/localhost/ --format json`
parsed = JSON.parse(serverspec_results)
parsed["examples"].each do |serverspec_test|
test_name = serverspec_test["file_path"].split('/')[-1] + "_" + serverspec_test["line_numb... | require "rubygems"
require "json"
require "socket"
serverspec_results = `cd /rspec_tests ; sudo ruby -S rspec spec/localhost/ --format json`
parsed = JSON.parse(serverspec_results)
parsed["examples"].each do |serverspec_test|
test_name = serverspec_test["file_path"].split('/')[-1] + "_" + serverspec_test["line_numb... | Convert output string to JSON | Convert output string to JSON
| Ruby | apache-2.0 | m-richo/sensu_check-rspec | ruby | ## Code Before:
require "rubygems"
require "json"
require "socket"
serverspec_results = `cd /rspec_tests ; sudo ruby -S rspec spec/localhost/ --format json`
parsed = JSON.parse(serverspec_results)
parsed["examples"].each do |serverspec_test|
test_name = serverspec_test["file_path"].split('/')[-1] + "_" + serverspec... | require "rubygems"
require "json"
require "socket"
serverspec_results = `cd /rspec_tests ; sudo ruby -S rspec spec/localhost/ --format json`
parsed = JSON.parse(serverspec_results)
parsed["examples"].each do |serverspec_test|
test_name = serverspec_test["file_path"].split('/')[-1] + "_" + serversp... | 2 | 0.076923 | 1 | 1 |
90d7165c86890297776ee17711cd091f0ac155b9 | app/assets/stylesheets/modules/_flash.scss | app/assets/stylesheets/modules/_flash.scss | .flash {
@extend p;
margin: $norm;
padding: $norm;
border: 1px solid;
@include border-radius(3px);
form {
float: right;
}
input.button, a.button {
margin: -4px 0 0 0;
}
&.flash-info {
border-color: $greyDarker;
color: shade($greyDarker, 50);
background-color: $greyLighter;
}... | .flash {
@extend p;
margin: $norm;
padding: $norm;
border: 1px solid;
@include border-radius(3px);
form {
float: right;
}
input.button, a.button {
margin: -4px 0 0 0;
}
p {
margin: 0;
padding: 0;
}
&.flash-info {
border-color: $greyDarker;
color: shade($greyDarker, 50... | Reduce spacing of any inner <p> elements | Reduce spacing of any inner <p> elements | SCSS | mit | madetech/ydtd-frontend,madetech/ydtd-frontend | scss | ## Code Before:
.flash {
@extend p;
margin: $norm;
padding: $norm;
border: 1px solid;
@include border-radius(3px);
form {
float: right;
}
input.button, a.button {
margin: -4px 0 0 0;
}
&.flash-info {
border-color: $greyDarker;
color: shade($greyDarker, 50);
background-color: $... | .flash {
@extend p;
margin: $norm;
padding: $norm;
border: 1px solid;
@include border-radius(3px);
form {
float: right;
}
input.button, a.button {
margin: -4px 0 0 0;
+ }
+
+ p {
+ margin: 0;
+ padding: 0;
}
&.flash-info {
border-color: $... | 5 | 0.125 | 5 | 0 |
48a75e0e38d60624571389bf95b0a2a16f5b4245 | xfrm_monitor_test.go | xfrm_monitor_test.go | // +build linux
package netlink
import (
"testing"
"github.com/vishvananda/netlink/nl"
)
func TestXfrmMonitorExpire(t *testing.T) {
defer setUpNetlinkTest(t)()
ch := make(chan XfrmMsg)
done := make(chan struct{})
defer close(done)
errChan := make(chan error)
if err := XfrmMonitor(ch, nil, errChan, nl.XFRM_... | // +build linux
package netlink
import (
"testing"
"github.com/vishvananda/netlink/nl"
)
func TestXfrmMonitorExpire(t *testing.T) {
defer setUpNetlinkTest(t)()
ch := make(chan XfrmMsg)
done := make(chan struct{})
defer close(done)
errChan := make(chan error)
if err := XfrmMonitor(ch, nil, errChan, nl.XFRM_... | Fix Race Condition in TestXfrmMonitorExpire | Fix Race Condition in TestXfrmMonitorExpire
| Go | apache-2.0 | paravmellanox/netlink,vishvananda/netlink | go | ## Code Before:
// +build linux
package netlink
import (
"testing"
"github.com/vishvananda/netlink/nl"
)
func TestXfrmMonitorExpire(t *testing.T) {
defer setUpNetlinkTest(t)()
ch := make(chan XfrmMsg)
done := make(chan struct{})
defer close(done)
errChan := make(chan error)
if err := XfrmMonitor(ch, nil, e... | // +build linux
package netlink
import (
"testing"
"github.com/vishvananda/netlink/nl"
)
func TestXfrmMonitorExpire(t *testing.T) {
defer setUpNetlinkTest(t)()
ch := make(chan XfrmMsg)
done := make(chan struct{})
defer close(done)
errChan := make(chan error)
if err := Xf... | 19 | 0.487179 | 15 | 4 |
57a86d240c3d8fa1f2642eebe87fe5d2a42f0947 | zsh/_antigen.zsh | zsh/_antigen.zsh | source ~/.dotfiles/vendor/antigen/antigen.zsh
# Disable oh-my-zsh ls colors, which doesn't support OS X or gls.
DISABLE_LS_COLORS="true"
# Some other minor oh-my-zsh configuration.
DISABLE_AUTO_UPDATE="true"
COMPLETION_WAITING_DOTS="true"
DISABLE_UNTRACKED_FILES_DIRTY="true"
# Load the oh-my-zsh library
antigen use o... | source ~/.dotfiles/vendor/antigen/antigen.zsh
# Disable oh-my-zsh ls colors, which doesn't support OS X or gls.
DISABLE_LS_COLORS="true"
# Some other minor oh-my-zsh configuration.
DISABLE_AUTO_UPDATE="true"
COMPLETION_WAITING_DOTS="true"
DISABLE_UNTRACKED_FILES_DIRTY="true"
# Load the oh-my-zsh library
antigen use o... | Revert "Switch to bureau theme" | Revert "Switch to bureau theme"
This reverts commit f1057c087b78f56acf4152e57c0274dfa7e1db57.
| Shell | mit | tchajed/dotfiles-osx,tchajed/dotfiles-osx,tchajed/dotfiles-osx | shell | ## Code Before:
source ~/.dotfiles/vendor/antigen/antigen.zsh
# Disable oh-my-zsh ls colors, which doesn't support OS X or gls.
DISABLE_LS_COLORS="true"
# Some other minor oh-my-zsh configuration.
DISABLE_AUTO_UPDATE="true"
COMPLETION_WAITING_DOTS="true"
DISABLE_UNTRACKED_FILES_DIRTY="true"
# Load the oh-my-zsh libra... | source ~/.dotfiles/vendor/antigen/antigen.zsh
# Disable oh-my-zsh ls colors, which doesn't support OS X or gls.
DISABLE_LS_COLORS="true"
# Some other minor oh-my-zsh configuration.
DISABLE_AUTO_UPDATE="true"
COMPLETION_WAITING_DOTS="true"
DISABLE_UNTRACKED_FILES_DIRTY="true"
# Load the oh-my-zsh l... | 3 | 0.130435 | 1 | 2 |
c86dfac9e31dfaba00611e5bae362fe7633fc593 | hotModuleReplacement.js | hotModuleReplacement.js | module.exports = function(publicPath, outputFilename) {
if (document) {
var origin = document.location.protocol + '//' + document.location.hostname + (document.location.port ? ':' + document.location.port: '');
var newHref = origin + publicPath + outputFilename
var links = document.getElementsByTagName('l... | module.exports = function(publicPath, outputFilename) {
if (document) {
var newHref = publicPath.match(/https?:/g) ? new URL(outputFilename, publicPath) : new URL(outputFilename, window.location);
var links = document.getElementsByTagName('link');
//update the stylesheet corresponding to `outputFilename`
... | Support arbitrary origins in publicPath. | fix($hmr): Support arbitrary origins in publicPath.
If the Webpack publicPath contains "http:" or "https:", treat it as the
base URL for newly-loaded
assets. Otherwise, continue to use the current window's location.
Fixes #25.
| JavaScript | mit | faceyspacey/extract-css-chunks-webpack-plugin,brightbytes/extract-css-chunks-webpack-plugin,faceyspacey/extract-css-chunks-webpack-plugin,brightbytes/extract-css-chunks-webpack-plugin | javascript | ## Code Before:
module.exports = function(publicPath, outputFilename) {
if (document) {
var origin = document.location.protocol + '//' + document.location.hostname + (document.location.port ? ':' + document.location.port: '');
var newHref = origin + publicPath + outputFilename
var links = document.getElem... | module.exports = function(publicPath, outputFilename) {
if (document) {
+ var newHref = publicPath.match(/https?:/g) ? new URL(outputFilename, publicPath) : new URL(outputFilename, window.location);
- var origin = document.location.protocol + '//' + document.location.hostname + (document.location.port ? '... | 8 | 0.2 | 3 | 5 |
ad4a201d4b39b0aa06eff542338cbe1097f2e486 | front_end/panels/application/components/protocolHandlersView.css | front_end/panels/application/components/protocolHandlersView.css | /*
* Copyright (c) 2022 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
.devtools-link {
color: var(--color-link);
text-decoration: underline;
cursor: pointer;
padding: 2px 0; /* adjust focus ring size */
}
... | /*
* Copyright (c) 2022 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
.devtools-link {
color: var(--color-link);
text-decoration: underline;
cursor: pointer;
padding: 2px 0; /* adjust focus ring size */
}
... | Fix focus box for hyperlinks and text box in protocol handler section | Fix focus box for hyperlinks and text box in protocol handler section
Issue:
1. Focus box was not visible on hyperlinks in the protocol handler section in the Application Tool when tabbing to it.
2. The focus box color for the text box in the protocol handler section did not follow the color of other text boxes in Dev... | CSS | bsd-3-clause | ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend | css | ## Code Before:
/*
* Copyright (c) 2022 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
.devtools-link {
color: var(--color-link);
text-decoration: underline;
cursor: pointer;
padding: 2px 0; /* adjust focus... | /*
* Copyright (c) 2022 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
.devtools-link {
color: var(--color-link);
text-decoration: underline;
cursor: pointer;
padding: 2px 0; /* adjust... | 4 | 0.102564 | 4 | 0 |
7dc44d8250ccf91b13833af1605f46b131d715e5 | tests/testprocs/org/voltdb_testprocs/fakeusecase/greetings/package-info.java | tests/testprocs/org/voltdb_testprocs/fakeusecase/greetings/package-info.java | /* This file is part of VoltDB.
* Copyright (C) 2008-2017 VoltDB Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to... | /* This file is part of VoltDB.
* Copyright (C) 2008-2017 VoltDB Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to... | Fix package name to keep Eclipse happy. | Fix package name to keep Eclipse happy.
| Java | agpl-3.0 | deerwalk/voltdb,deerwalk/voltdb,deerwalk/voltdb,deerwalk/voltdb,VoltDB/voltdb,simonzhangsm/voltdb,simonzhangsm/voltdb,VoltDB/voltdb,VoltDB/voltdb,simonzhangsm/voltdb,simonzhangsm/voltdb,simonzhangsm/voltdb,deerwalk/voltdb,deerwalk/voltdb,deerwalk/voltdb,VoltDB/voltdb,deerwalk/voltdb,VoltDB/voltdb,simonzhangsm/voltdb,si... | java | ## Code Before:
/* This file is part of VoltDB.
* Copyright (C) 2008-2017 VoltDB Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitati... | /* This file is part of VoltDB.
* Copyright (C) 2008-2017 VoltDB Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation... | 2 | 0.071429 | 1 | 1 |
ef6430aa35d6c00e33e9eb4e48cf347302aa7699 | .circleci/config.yml | .circleci/config.yml | version: 2
jobs:
test:
docker:
- image: circleci/golang:1.12
environment:
GO111MODULE: 'on'
GOPROXY: https://proxy.golang.org
steps:
- checkout
- run: git submodule sync
- run: git submodule update --init
- run: go test -race -v ./...
workflows:
ve... | version: 2
jobs:
test:
docker:
- image: circleci/golang:1.12
environment:
GO111MODULE: 'on'
GOPROXY: https://proxy.golang.org
steps:
- checkout
- run: git submodule sync
- run: git submodule update --init
- run:
command: go test -race -v ./.... | Extend CI no output timeout | Extend CI no output timeout
This prevents spurious failures caused by CircleCI cutting off the build
when it goes too long without output, which happens sometimes since the
tests don't output anything until they've been completed.
| YAML | mit | lightstep/lightstep-tracer-go,lightstep/lightstep-tracer-go | yaml | ## Code Before:
version: 2
jobs:
test:
docker:
- image: circleci/golang:1.12
environment:
GO111MODULE: 'on'
GOPROXY: https://proxy.golang.org
steps:
- checkout
- run: git submodule sync
- run: git submodule update --init
- run: go test -race -v ./...
... | version: 2
jobs:
test:
docker:
- image: circleci/golang:1.12
environment:
GO111MODULE: 'on'
GOPROXY: https://proxy.golang.org
steps:
- checkout
- run: git submodule sync
- run: git submodule update --init
+ - run:
- - r... | 4 | 0.2 | 3 | 1 |
0a4aceb87eae57188c5f61bb93d78d5cc9f1779f | lava_scheduler_app/templatetags/utils.py | lava_scheduler_app/templatetags/utils.py | from django import template
from django.utils.safestring import mark_safe
from lava_scheduler_app.models import TestJob
register = template.Library()
@register.filter
def get_priority_select(current):
select = ""
val = TestJob.PRIORITY_CHOICES
for priority, label in val:
check = " checked" if pri... | from django import template
from django.utils.safestring import mark_safe
from lava_scheduler_app.models import TestJob
register = template.Library()
@register.filter
def get_priority_select(current):
select = ""
val = TestJob.PRIORITY_CHOICES
for priority, label in val:
check = " checked" if pri... | Use inline radio buttons for priority changes. | Use inline radio buttons for priority changes.
Change-Id: Ifb9a685bca654c5139aef3ca78e800b66ce77eb9
| Python | agpl-3.0 | Linaro/lava-server,Linaro/lava-server,Linaro/lava-server,Linaro/lava-server | python | ## Code Before:
from django import template
from django.utils.safestring import mark_safe
from lava_scheduler_app.models import TestJob
register = template.Library()
@register.filter
def get_priority_select(current):
select = ""
val = TestJob.PRIORITY_CHOICES
for priority, label in val:
check = "... | from django import template
from django.utils.safestring import mark_safe
from lava_scheduler_app.models import TestJob
register = template.Library()
@register.filter
def get_priority_select(current):
select = ""
val = TestJob.PRIORITY_CHOICES
for priority, label in val:
... | 2 | 0.117647 | 2 | 0 |
e0052eabff481fc71c9806517dc10ca8bd359454 | .travis.yml | .travis.yml | language: python
services:
- postgresql
addons:
postgresql: "9.4"
python:
- "3.5"
sudo: false
env:
- TOXENV=py35-django110
- TOXENV=py35-django111
- TOXENV=py35-djangomaster
- TOXENV=py36-django111
- TOXENV=py36-djangomaster
matrix:
fast_finish: true
include:
- python: "3.6"
env: TO... | language: python
services:
- postgresql
addons:
postgresql: "9.4"
python:
- "3.5"
sudo: false
env:
- TOXENV=py35-django110
- TOXENV=py35-django111
- TOXENV=py35-djangomaster
- TOXENV=py36-django111
- TOXENV=py36-djangomaster
matrix:
fast_finish: true
include:
- python: "3.6"
env: TOXE... | Add flake8 test to matrix | Add flake8 test to matrix
| YAML | apache-2.0 | menecio/django-api-bouncer | yaml | ## Code Before:
language: python
services:
- postgresql
addons:
postgresql: "9.4"
python:
- "3.5"
sudo: false
env:
- TOXENV=py35-django110
- TOXENV=py35-django111
- TOXENV=py35-djangomaster
- TOXENV=py36-django111
- TOXENV=py36-djangomaster
matrix:
fast_finish: true
include:
- python: "3.... | language: python
services:
- postgresql
-
+
addons:
postgresql: "9.4"
python:
- "3.5"
sudo: false
env:
- TOXENV=py35-django110
- TOXENV=py35-django111
- TOXENV=py35-djangomaster
- TOXENV=py36-django111
- TOXENV=py36-djangomaster
matrix:
fast_finish: true... | 8 | 0.145455 | 5 | 3 |
bdba5baffd48cde38bb89d35764a1b002a457a45 | spec/overcommit/default_configuration_spec.rb | spec/overcommit/default_configuration_spec.rb | require 'spec_helper'
describe 'default configuration' do
default_config =
YAML.load_file(Overcommit::ConfigurationLoader::DEFAULT_CONFIG_PATH).to_hash
Overcommit::Utils.supported_hook_type_classes.each do |hook_type|
context "within the #{hook_type} configuration section" do
default_config[hook_typ... | require 'spec_helper'
describe 'default configuration' do
default_config =
YAML.load_file(Overcommit::ConfigurationLoader::DEFAULT_CONFIG_PATH).to_hash
Overcommit::Utils.supported_hook_types.each do |hook_type|
hook_class = Overcommit::Utils.camel_case(hook_type)
Dir[File.join(Overcommit::HOOK_DIRECT... | Add tests verifying configuration for hooks | Add tests verifying configuration for hooks
Building on top of a5e834b, we want to also verify that all hooks have a
`description` specified, as well as a configuration in general. We
change the implementation to work backwards from the file names so that
if we create a hook file but forget to add a configuration for ... | Ruby | mit | TheSooth/overcommit,oxocode/overcommit,blech75/overcommit,TheSooth/overcommit,gnagel/overcommit,oxocode/overcommit,blech75/overcommit,gnagel/overcommit | ruby | ## Code Before:
require 'spec_helper'
describe 'default configuration' do
default_config =
YAML.load_file(Overcommit::ConfigurationLoader::DEFAULT_CONFIG_PATH).to_hash
Overcommit::Utils.supported_hook_type_classes.each do |hook_type|
context "within the #{hook_type} configuration section" do
default... | require 'spec_helper'
describe 'default configuration' do
default_config =
YAML.load_file(Overcommit::ConfigurationLoader::DEFAULT_CONFIG_PATH).to_hash
- Overcommit::Utils.supported_hook_type_classes.each do |hook_type|
? -------
+ Overcommit::Utils.suppor... | 26 | 1.181818 | 19 | 7 |
23aa853ea2ad42ccb817a2e1c85e3bea19c687aa | appinfo/info.xml | appinfo/info.xml | <?xml version="1.0"?>
<info>
<id>user_account_actions</id>
<name>User Account Actions</name>
<description>Send mails on users creation / deletion</description>
<version>1.0</version>
<licence>AGPLv3</licence>
<author>Patrick Paysant / CNRS DSI</author>
<require>7</require>
</info> | <?xml version="1.0"?>
<info>
<id>user_account_actions</id>
<name>User Account Actions</name>
<description>Send mails on users creation / deletion</description>
<version>1.0</version>
<licence>AGPLv3</licence>
<author>Patrick Paysant / CNRS DSI</author>
<require>7</require>
<types>
<... | Set application's type to prelogin | Set application's type to prelogin
Application must loaded at preLogin phase to listen user_servervars2
createAuser events
| XML | agpl-3.0 | CNRS-DSI-Dev/user_account_actions,CNRS-DSI-Dev/user_account_actions | xml | ## Code Before:
<?xml version="1.0"?>
<info>
<id>user_account_actions</id>
<name>User Account Actions</name>
<description>Send mails on users creation / deletion</description>
<version>1.0</version>
<licence>AGPLv3</licence>
<author>Patrick Paysant / CNRS DSI</author>
<require>7</require>
</... | <?xml version="1.0"?>
<info>
<id>user_account_actions</id>
<name>User Account Actions</name>
<description>Send mails on users creation / deletion</description>
<version>1.0</version>
<licence>AGPLv3</licence>
<author>Patrick Paysant / CNRS DSI</author>
<require>7</require>
... | 3 | 0.3 | 3 | 0 |
cccf5c427ef78734db561a40c5759e010ac9cd60 | _includes/menu_item.html | _includes/menu_item.html | <ul>
{% for item in include.collection %}
<li>
{% if item.url %}
<a href="{{ item.url }}">{{ item.title }}</a>
{% else %}
{{ item.title }}
{% endif %}
</li>
{% if item.post_list == true %}
{% include post_list.html %}
{% endif %}
{% if item.entries != blank %} ... | <ul>
{% for item in include.collection %}
<li>
{% if item.url %}
<a href="{{ item.url }}">{{ item.title }}</a>
{% else %}
{{ item.title }}
{% endif %}
</li>
{% if item.post_list == true %}
{% include post_list.html %}
{% endif %}
{% if item.entries %}
{% inclu... | Fix menu item condition to avoid empty ul | Fix menu item condition to avoid empty ul
The values of the `entries` field in `_data/menu.yml` are either a list or `false`, however it was
compared to `blank` in `_include/menu_item.html`. As a result, some empty `<ul></ul>`s were
generated in `_site/index.html`.
| HTML | mit | Furkanzmc/furkanzmc.github.io,Furkanzmc/furkanzmc.github.io,Furkanzmc/furkanzmc.github.io,jashilko/jashilko.github.io,jashilko/jashilko.github.io | html | ## Code Before:
<ul>
{% for item in include.collection %}
<li>
{% if item.url %}
<a href="{{ item.url }}">{{ item.title }}</a>
{% else %}
{{ item.title }}
{% endif %}
</li>
{% if item.post_list == true %}
{% include post_list.html %}
{% endif %}
{% if item.entries !... | <ul>
{% for item in include.collection %}
<li>
{% if item.url %}
<a href="{{ item.url }}">{{ item.title }}</a>
{% else %}
{{ item.title }}
{% endif %}
</li>
{% if item.post_list == true %}
{% include post_list.html %}
{% endif %}
- {% if ... | 2 | 0.105263 | 1 | 1 |
ad05034406ce4810275ec3648c6ef185231a090e | casslist/templates/casslist/index.html | casslist/templates/casslist/index.html | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Cassoundra - List</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHR... | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Cassoundra - List</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHR... | Add sound count to top of page | [casslist] Add sound count to top of page
| HTML | mit | joshuaprince/Cassoundra,joshuaprince/Cassoundra,joshuaprince/Cassoundra | html | ## Code Before:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Cassoundra - List</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFe... | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Cassoundra - List</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha384-BVYiiSI... | 1 | 0.027027 | 1 | 0 |
3ff3fed83bb129178d726586b20fe01b7ab34016 | jenkins-run.sh | jenkins-run.sh | _dockerize(){
./pundun-docker build pundun-$1 $2
./pundun-docker run pundun-$1 $2
./pundun-docker fetch_package pundun-$1 $2
./pundun-docker stop pundun-$1 $2
./pundun-docker rm pundun-$1 $2
mkdir -p ../archive/$2
mv packages/* ../archive/$2/
docker push pundunlabs/pundun-$1:$2
}
tag="$... | _dockerize(){
./pundun-docker build pundun-$1 $2
./pundun-docker run pundun-$1 $2
./pundun-docker fetch_package pundun-$1 $2
./pundun-docker stop pundun-$1 $2
./pundun-docker rm pundun-$1 $2
mkdir -p ../archive/$2
mv packages/* ../archive/$2/
docker push pundunlabs/pundun-$1:$2
}
tag="$... | Remove cleaning up docker images. | Remove cleaning up docker images.
| Shell | apache-2.0 | pundunlabs/pundun-docker | shell | ## Code Before:
_dockerize(){
./pundun-docker build pundun-$1 $2
./pundun-docker run pundun-$1 $2
./pundun-docker fetch_package pundun-$1 $2
./pundun-docker stop pundun-$1 $2
./pundun-docker rm pundun-$1 $2
mkdir -p ../archive/$2
mv packages/* ../archive/$2/
docker push pundunlabs/pundun... | _dockerize(){
./pundun-docker build pundun-$1 $2
./pundun-docker run pundun-$1 $2
./pundun-docker fetch_package pundun-$1 $2
./pundun-docker stop pundun-$1 $2
./pundun-docker rm pundun-$1 $2
mkdir -p ../archive/$2
mv packages/* ../archive/$2/
docker push pundunlabs/pund... | 2 | 0.086957 | 0 | 2 |
fa6d64d4d23c9c309b99311c0d07d6c4abc62f3e | lib/driver.rb | lib/driver.rb | require_relative "world_command.rb"
# Runs the main game loop.
#
# @param [Player] player the player of the game.
def run_driver(player)
input = player_input
while (input.casecmp("quit") != 0)
interpret_command(input, player)
input = player_input
end
end
| require_relative "world_command.rb"
# Runs the main game loop.
#
# @param [Player] player the player of the game.
def run_driver(player)
input = player_input prompt: '> '
while (input.casecmp("quit") != 0)
interpret_command(input, player)
input = player_input
end
end
| Add player_input prompt: '> ' to handle default inputs | Add player_input prompt: '> ' to handle default inputs
| Ruby | mit | nskins/goby,nskins/goby | ruby | ## Code Before:
require_relative "world_command.rb"
# Runs the main game loop.
#
# @param [Player] player the player of the game.
def run_driver(player)
input = player_input
while (input.casecmp("quit") != 0)
interpret_command(input, player)
input = player_input
end
end
## Instruction:
Add player_inp... | require_relative "world_command.rb"
# Runs the main game loop.
#
# @param [Player] player the player of the game.
def run_driver(player)
- input = player_input
+ input = player_input prompt: '> '
? +++++++++++++
while (input.casecmp("quit") != 0)
interpret_command... | 2 | 0.133333 | 1 | 1 |
a15c186523161e5f550a4f9d732e2d761637d512 | src/mutators/Mutator.ts | src/mutators/Mutator.ts | import * as ts from 'typescript';
import { MutationContext } from '../context';
export abstract class Mutator {
protected abstract kind: ts.SyntaxKind | ts.SyntaxKind[];
protected abstract mutate(node: ts.Node, context?: MutationContext): ts.Node;
protected context: MutationContext;
public mutateNode(node:... | import * as ts from 'typescript';
import { Generator } from '../generator';
import { MutationContext } from '../context';
export abstract class Mutator {
protected abstract kind: ts.SyntaxKind | ts.SyntaxKind[];
protected abstract mutate(node: ts.Node, context?: MutationContext): ts.Node;
protected context: M... | Make generator available from MutationContext through a getter. | Make generator available from MutationContext through a getter.
| TypeScript | mit | fabiandev/ts-runtime,fabiandev/ts-runtime,fabiandev/ts-runtime | typescript | ## Code Before:
import * as ts from 'typescript';
import { MutationContext } from '../context';
export abstract class Mutator {
protected abstract kind: ts.SyntaxKind | ts.SyntaxKind[];
protected abstract mutate(node: ts.Node, context?: MutationContext): ts.Node;
protected context: MutationContext;
public ... | import * as ts from 'typescript';
+ import { Generator } from '../generator';
import { MutationContext } from '../context';
export abstract class Mutator {
protected abstract kind: ts.SyntaxKind | ts.SyntaxKind[];
protected abstract mutate(node: ts.Node, context?: MutationContext): ts.Node;
... | 5 | 0.135135 | 5 | 0 |
b5b9e0b6de88e041efadcd3d2a8da3fb6bb4c754 | README.md | README.md |
taiHEN plugin that shows battery percent in statusbar

Only works with retail 3.60 FW
### Installation
Add this plugin under `*main` section in `ux0:tai/config.txt`:
```
*main
ux0:tai/shellbat.suprx
```
|
taiHEN plugin that shows battery percent in statusbar

### Installation
Add this plugin under `*main` section in `ux0:tai/config.txt`:
```
*main
ux0:tai/shellbat.suprx
```
| Revert "Add note that it only works with retail 3.60" | Revert "Add note that it only works with retail 3.60"
This reverts commit b7285160b0026a7ad7a4d900e241fc94c8560c04.
| Markdown | mit | nowrep/vita-shellbat,nowrep/vita-shellbat | markdown | ## Code Before:
taiHEN plugin that shows battery percent in statusbar

Only works with retail 3.60 FW
### Installation
Add this plugin under `*main` section in `ux0:tai/config.txt`:
```
*main
ux0:tai/shellbat.suprx
```
... |
taiHEN plugin that shows battery percent in statusbar

- Only works with retail 3.60 FW
### Installation
Add this plugin under `*main` section in `ux0:tai/config.txt`:
```
*main
ux0:tai/shellbat... | 1 | 0.066667 | 0 | 1 |
0d9477b76ca4b85b577fd0d4ccb42b531f802ec8 | .travis.yml | .travis.yml | language: objective-c
xcode_workspace: Anna.xcworkspace
xcode_scheme: Anna_iOS_Tests
| language: objective-c
xcode_workspace: Anna.xcworkspace
xcode_scheme: Anna_iOS_Tests
before_install:
- gem install cocoapods
| Update cocoapods before buiding on CI | Update cocoapods before buiding on CI
| YAML | mit | coppercash/Anna,coppercash/Anna,coppercash/Anna,coppercash/Anna,coppercash/Anna | yaml | ## Code Before:
language: objective-c
xcode_workspace: Anna.xcworkspace
xcode_scheme: Anna_iOS_Tests
## Instruction:
Update cocoapods before buiding on CI
## Code After:
language: objective-c
xcode_workspace: Anna.xcworkspace
xcode_scheme: Anna_iOS_Tests
before_install:
- gem install cocoapods
| language: objective-c
xcode_workspace: Anna.xcworkspace
xcode_scheme: Anna_iOS_Tests
+ before_install:
+ - gem install cocoapods | 2 | 0.666667 | 2 | 0 |
82ba04d609c80fd2bf8034cf38654d10bb72aca5 | src/app/actions/psmtable/filter_confidence.py | src/app/actions/psmtable/filter_confidence.py | from app.readers import tsv as tsvreader
def filter_psms(psms, confkey, conflvl, lower_is_better):
for psm in psms:
if passes_filter(psm, conflvl, confkey, lower_is_better):
yield psm
def passes_filter(psm, threshold, confkey, lower_is_better):
if psm[confkey] in ['NA', '', None, False]:... | from app.readers import tsv as tsvreader
def filter_psms(psms, confkey, conflvl, lower_is_better):
for psm in psms:
if passes_filter(psm, conflvl, confkey, lower_is_better):
yield psm
def passes_filter(psm, threshold, confkey, lower_is_better):
try:
confval = float(psm[confkey])
... | Fix confidence filtering removed confidence=0 (False) items | Fix confidence filtering removed confidence=0 (False) items
| Python | mit | glormph/msstitch | python | ## Code Before:
from app.readers import tsv as tsvreader
def filter_psms(psms, confkey, conflvl, lower_is_better):
for psm in psms:
if passes_filter(psm, conflvl, confkey, lower_is_better):
yield psm
def passes_filter(psm, threshold, confkey, lower_is_better):
if psm[confkey] in ['NA', '... | from app.readers import tsv as tsvreader
def filter_psms(psms, confkey, conflvl, lower_is_better):
for psm in psms:
if passes_filter(psm, conflvl, confkey, lower_is_better):
yield psm
def passes_filter(psm, threshold, confkey, lower_is_better):
- if psm[confkey] in ['... | 9 | 0.642857 | 6 | 3 |
b6950d28b02e151b2ee92f8ce241a91e74089f38 | Web/templates/layouts/layout.html | Web/templates/layouts/layout.html | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Soapy</title>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
<link href="{{ base_url }}/css/members.min.css" rel="stylesheet">
<link href="{{ base_url }}/css/main.css"... | <!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta charset="utf-8"/>
<title>Soapy</title>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
<l... | Fix viewport scaling on mobile. | Fix viewport scaling on mobile.
| HTML | mit | dag10/Soapy,dag10/Soapy,dag10/Soapy,dag10/Soapy,dag10/Soapy | html | ## Code Before:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Soapy</title>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
<link href="{{ base_url }}/css/members.min.css" rel="stylesheet">
<link href="{{ base_url ... | <!DOCTYPE html>
<html>
<head>
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta charset="utf-8"/>
<title>Soapy</title>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="styleshee... | 1 | 0.041667 | 1 | 0 |
3a77de3c7d863041bea1366c50a95293d1cd2f7a | tests/functional/test_warning.py | tests/functional/test_warning.py | import pytest
import textwrap
@pytest.fixture
def warnings_demo(tmpdir):
demo = tmpdir.joinpath('warnings_demo.py')
demo.write_text(textwrap.dedent('''
from logging import basicConfig
from pip._internal.utils import deprecation
deprecation.install_warning_logger()
basicConfig(... | import pytest
import textwrap
@pytest.fixture
def warnings_demo(tmpdir):
demo = tmpdir.joinpath('warnings_demo.py')
demo.write_text(textwrap.dedent('''
from logging import basicConfig
from pip._internal.utils import deprecation
deprecation.install_warning_logger()
basicConfig(... | Split tests for different functionality | Split tests for different functionality
| Python | mit | pypa/pip,pradyunsg/pip,xavfernandez/pip,rouge8/pip,pypa/pip,xavfernandez/pip,rouge8/pip,xavfernandez/pip,pfmoore/pip,sbidoul/pip,rouge8/pip,sbidoul/pip,pradyunsg/pip,pfmoore/pip | python | ## Code Before:
import pytest
import textwrap
@pytest.fixture
def warnings_demo(tmpdir):
demo = tmpdir.joinpath('warnings_demo.py')
demo.write_text(textwrap.dedent('''
from logging import basicConfig
from pip._internal.utils import deprecation
deprecation.install_warning_logger()
... | import pytest
import textwrap
@pytest.fixture
def warnings_demo(tmpdir):
demo = tmpdir.joinpath('warnings_demo.py')
demo.write_text(textwrap.dedent('''
from logging import basicConfig
from pip._internal.utils import deprecation
deprecation.install_warning_logge... | 3 | 0.107143 | 2 | 1 |
57ae29daf412433d94c1d6c705d2c8b662a5c8f6 | circle.yml | circle.yml |
machine:
node:
version: 8
environment:
CF_ORG: cloud-gov
CF_SPACE: cg-style
dependencies:
pre:
- bundle config without development:production
- npm rebuild node-sass
cache_directories:
- "node_modules/"
test:
pre:
- npm run build
override:
- npm run test
deployment:
libr... |
machine:
node:
version: 8
environment:
CF_ORG: cloud-gov
CF_SPACE: cg-style
dependencies:
pre:
- bundle config without development:production
- npm rebuild node-sass
cache_directories:
- "node_modules/"
test:
pre:
- npm run build
override:
- npm run test
deployment:
libr... | Remove the NPM publishing done via CI; | Remove the NPM publishing done via CI;
Let's just do this manually from now on.
| YAML | cc0-1.0 | 18F/cg-style,18F/cg-style,18F/cg-style | yaml | ## Code Before:
machine:
node:
version: 8
environment:
CF_ORG: cloud-gov
CF_SPACE: cg-style
dependencies:
pre:
- bundle config without development:production
- npm rebuild node-sass
cache_directories:
- "node_modules/"
test:
pre:
- npm run build
override:
- npm run test
de... |
machine:
node:
version: 8
environment:
CF_ORG: cloud-gov
CF_SPACE: cg-style
dependencies:
pre:
- bundle config without development:production
- npm rebuild node-sass
cache_directories:
- "node_modules/"
test:
pre:
- npm run build
override:
... | 6 | 0.181818 | 0 | 6 |
4fa52e8c84676e1fd56ad0f3720350fea78c3048 | .travis.yml | .travis.yml | language: ruby
rvm:
- 2.1.5
services:
- redis
before_script:
- psql -c 'create database ready_reckoner_test;' -U postgres
- bundle exec rake db:migrate
| sudo: false
language: ruby
cache: bundler
rvm:
- 2.1.5
services:
- redis
before_script:
- psql -c 'create database ready_reckoner_test;' -U postgres
- bundle exec rake db:migrate
| Use container-based infrastructure, and turn on caching | Travis: Use container-based infrastructure, and turn on caching
| YAML | mit | opennorth/readyreckoner.ca,opennorth/readyreckoner.ca,opennorth/readyreckoner.ca | yaml | ## Code Before:
language: ruby
rvm:
- 2.1.5
services:
- redis
before_script:
- psql -c 'create database ready_reckoner_test;' -U postgres
- bundle exec rake db:migrate
## Instruction:
Travis: Use container-based infrastructure, and turn on caching
## Code After:
sudo: false
language: ruby
cache: bundler
rvm:
... | + sudo: false
language: ruby
+ cache: bundler
rvm:
- 2.1.5
services:
- redis
before_script:
- psql -c 'create database ready_reckoner_test;' -U postgres
- bundle exec rake db:migrate | 2 | 0.25 | 2 | 0 |
a8cff63066cc5afa8991a03c39463eedc65caf77 | docker-plugin/src/main/java/com/nirima/jenkins/plugins/docker/DockerSimpleTemplate.java | docker-plugin/src/main/java/com/nirima/jenkins/plugins/docker/DockerSimpleTemplate.java | package com.nirima.jenkins.plugins.docker;
import hudson.Extension;
import hudson.model.Describable;
import hudson.model.Descriptor;
import jenkins.model.Jenkins;
/**
* A simple template storage.
*/
public class DockerSimpleTemplate extends DockerTemplateBase implements Describable<DockerSimpleTemplate> {
publi... | package com.nirima.jenkins.plugins.docker;
import hudson.Extension;
import hudson.model.Describable;
import hudson.model.Descriptor;
import jenkins.model.Jenkins;
/**
* A simple template storage.
*/
public class DockerSimpleTemplate extends DockerTemplateBase implements Describable<DockerSimpleTemplate> {
publi... | Fix IDEA warning about unchecked assignment | Fix IDEA warning about unchecked assignment
| Java | mit | jenkinsci/docker-plugin,daniel-beck/docker-plugin,camunda-ci/docker-plugin,ldtkms/docker-plugin,tom-canova/docker-plugin,camunda-ci/docker-plugin,ldtkms/docker-plugin,jgriffiths1993/docker-plugin,ldtkms/docker-plugin,camunda-ci/docker-plugin,jgriffiths1993/docker-plugin,camunda-ci/docker-plugin,paulmey/docker-plugin,pa... | java | ## Code Before:
package com.nirima.jenkins.plugins.docker;
import hudson.Extension;
import hudson.model.Describable;
import hudson.model.Descriptor;
import jenkins.model.Jenkins;
/**
* A simple template storage.
*/
public class DockerSimpleTemplate extends DockerTemplateBase implements Describable<DockerSimpleTempl... | package com.nirima.jenkins.plugins.docker;
import hudson.Extension;
import hudson.model.Describable;
import hudson.model.Descriptor;
import jenkins.model.Jenkins;
/**
* A simple template storage.
*/
public class DockerSimpleTemplate extends DockerTemplateBase implements Describable<DockerSimpl... | 2 | 0.036364 | 1 | 1 |
f11f6e9603878c3123611fca6e7bb4098162481c | .travis.yml | .travis.yml | language: c
sudo: required
services:
- docker
install:
- docker pull quay.io/manylinux/manylinux:latest
script:
- docker run --rm `pwd`:/io quay.io/manylinux/manylinux:latest \
bash /io/travis/build-wheels.sh
| language: c
sudo: required
services:
- docker
env:
- DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
- DOCKER_IMAGE=quay.io/pypa/manylinux1_i686
install:
- docker pull $DOCKER_IMAGE
script:
- docker run --rm `pwd`:/io $DOCKER_IMAGE bash /io/travis/build-wheels.sh
- ls
| Use new pypa/ docker images | Use new pypa/ docker images
| YAML | cc0-1.0 | pypa/python-manylinux-demo,joar/lxml-manylinux,pypa/python-manylinux-demo,pypa/python-manylinux-demo | yaml | ## Code Before:
language: c
sudo: required
services:
- docker
install:
- docker pull quay.io/manylinux/manylinux:latest
script:
- docker run --rm `pwd`:/io quay.io/manylinux/manylinux:latest \
bash /io/travis/build-wheels.sh
## Instruction:
Use new pypa/ docker images
## Code After:
language: c
sudo:... | language: c
sudo: required
services:
- docker
+ env:
+ - DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
+ - DOCKER_IMAGE=quay.io/pypa/manylinux1_i686
+
install:
- - docker pull quay.io/manylinux/manylinux:latest
+ - docker pull $DOCKER_IMAGE
script:
- - docker run --rm `pwd`:/io quay.i... | 10 | 0.769231 | 7 | 3 |
02640fc36390a9146fc1bc39f268d97fca2d2a5b | packages/u-button.vue/README.md | packages/u-button.vue/README.md |
``` html
<u-button>Button</u-button>
```
### Disabled
``` html
<u-button disabled>Button</u-button>
```
### Link
Use `v-href` or `v-to` directives to add link.
``` html
<u-button v-href="'/test'">Button</u-button>
<u-button v-to="'/'">Button</u-button>
<u-button v-href="'/'" disabled>Button</u-button>
```
|
``` html
<u-button>Button</u-button>
```
### Disabled
``` html
<u-button disabled>Disabled</u-button>
```
### Link
- Use `v-href` directive to add normal link.
- Use `v-to` directive to add [vue-router](https://router.vuejs.org) link.
``` html
<u-button v-href="'https://github.com/vusion/vusion'">v-href</u-button... | Change descriptions in doc of <u-button> | :memo: Change descriptions in doc of <u-button>
Signed-off-by: Rainfore <3858035ecb9abe8dcb48c45b8c403274cc0a82ef@126.com>
| Markdown | mit | vusion/proto-ui,vusion/proto-ui | markdown | ## Code Before:
``` html
<u-button>Button</u-button>
```
### Disabled
``` html
<u-button disabled>Button</u-button>
```
### Link
Use `v-href` or `v-to` directives to add link.
``` html
<u-button v-href="'/test'">Button</u-button>
<u-button v-to="'/'">Button</u-button>
<u-button v-href="'/'" disabled>Button</u-but... |
``` html
<u-button>Button</u-button>
```
### Disabled
``` html
- <u-button disabled>Button</u-button>
? ^^^^^^
+ <u-button disabled>Disabled</u-button>
? ^^^^^^^^
```
### Link
- Use `v-href` or `v-to` directives to add link.
? ---------- ... | 11 | 0.55 | 6 | 5 |
a5703e1b8dcbde9392523f5d1300d35c54484410 | rm/templates/trials/possibly_related.html | rm/templates/trials/possibly_related.html | <div class="row-fluid drop48">
<div class="span9">
<a href="#" class="feature-heading">
<h2><span class="light">POSSIBLY</span>
<span class="bold red">RELATED</span>
<span class="light">TRIALS</span></h2>
</a>
<div class="feature-box join-trial">
{% for rel in trial.related %}
... | <div class="row-fluid drop48">
<div class="span9">
<a href="#" class="feature-heading">
<h2><span class="light">POSSIBLY</span>
<span class="bold red">RELATED</span>
<span class="light">TRIALS</span></h2>
</a>
<div class="feature-box join-trial">
{% for rel in trial.related %}
... | Make possibly related trials row -level CTA | Make possibly related trials row -level CTA
| HTML | agpl-3.0 | openhealthcare/randomise.me,openhealthcare/randomise.me,openhealthcare/randomise.me,openhealthcare/randomise.me | html | ## Code Before:
<div class="row-fluid drop48">
<div class="span9">
<a href="#" class="feature-heading">
<h2><span class="light">POSSIBLY</span>
<span class="bold red">RELATED</span>
<span class="light">TRIALS</span></h2>
</a>
<div class="feature-box join-trial">
{% for rel in trial.relat... | <div class="row-fluid drop48">
<div class="span9">
<a href="#" class="feature-heading">
<h2><span class="light">POSSIBLY</span>
<span class="bold red">RELATED</span>
<span class="light">TRIALS</span></h2>
</a>
<div class="feature-box join-trial">
{% for rel in trial.r... | 14 | 0.538462 | 8 | 6 |
690ecb4e284c148dc3da797011e551118eeb7e54 | docs/configuration.rst | docs/configuration.rst | =============
Configuration
=============
Use toml or jaml for a nice easy to read, understand and to update config file.
| =============
Configuration
=============
Use toml or yaml for a nice easy to read, understand and to update config file.
TOML
====
This example uses toml with jinja2
Dependencies
------------
- python2.7
- jinja2
- jinja2-cli
Install
-------
Do that in a virtualenv
.. code-block:: shell
pip install jinja2-... | Add config creation example with j2 and toml | WIP: Add config creation example with j2 and toml
| reStructuredText | mit | testthedocs/redactor,testthedocs/redactor | restructuredtext | ## Code Before:
=============
Configuration
=============
Use toml or jaml for a nice easy to read, understand and to update config file.
## Instruction:
WIP: Add config creation example with j2 and toml
## Code After:
=============
Configuration
=============
Use toml or yaml for a nice easy to read, understand an... | =============
Configuration
=============
- Use toml or jaml for a nice easy to read, understand and to update config file.
? ^
+ Use toml or yaml for a nice easy to read, understand and to update config file.
? ^
+
+ TOML
+ ====
+
+ This example uses toml with jinja2
+
+ Dependenc... | 63 | 12.6 | 62 | 1 |
401468f63344cced250283c3d0faccf21044b400 | README.md | README.md |
`airooi` is a ruby script that connects to your MySql database and look for integer fields where `MAX(value)` is close or equal to the maximum value.
This might seem like an unnecessary job, but if you are working on an old codebase that connects to MySql in non-strict mode this is far from impossible - I've been bit... |
`airooi` is a ruby script that connects to your MySql database and look for integer fields where `MAX(value)` is close or equal to the maximum value.
This might seem like an unnecessary job, but if you are working on an old codebase that connects to MySql in non-strict mode this is far from impossible - I've been bit... | Add note about incompatibility with ruby 1.8.7 | Add note about incompatibility with ruby 1.8.7
| Markdown | mit | arthens/airooi | markdown | ## Code Before:
`airooi` is a ruby script that connects to your MySql database and look for integer fields where `MAX(value)` is close or equal to the maximum value.
This might seem like an unnecessary job, but if you are working on an old codebase that connects to MySql in non-strict mode this is far from impossible... |
`airooi` is a ruby script that connects to your MySql database and look for integer fields where `MAX(value)` is close or equal to the maximum value.
This might seem like an unnecessary job, but if you are working on an old codebase that connects to MySql in non-strict mode this is far from impossible - I've ... | 2 | 0.064516 | 1 | 1 |
24c598b3e1429d1232a29a4d9c444947dbcd228d | recipes-core/updatehub/updatehub-system-inquiry_git.bb | recipes-core/updatehub/updatehub-system-inquiry_git.bb | SUMMARY = "UpdateHub - System Inquiry"
SECTION = "base"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=838c366f69b72c5df05c96dff79b35f2"
SRC_URI = "git://github.com/UpdateHub/system-inquiry.git;protocol=https"
SRCREV = "399c52ed503e700fdb266c049520a15312f84b3e"
S = "${WORKDIR}/git"
PV = "0.0+${SRCPV}"
inher... | SUMMARY = "UpdateHub - System Inquiry"
SECTION = "base"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=838c366f69b72c5df05c96dff79b35f2"
SRC_URI = "git://github.com/UpdateHub/system-inquiry.git;protocol=https"
SRCREV = "399c52ed503e700fdb266c049520a15312f84b3e"
S = "${WORKDIR}/git"
PV = "0.0+${SRCPV}"
inher... | Add os-release and updatehub-machine-info to RDEPENDS | updatehub-system-inquiry: Add os-release and updatehub-machine-info to RDEPENDS
Signed-off-by: Fabio Berton <698e00bc51ed22392b375ef5a2fc95be5c8355a9@ossystems.com.br>
| BitBake | mit | UpdateHub/meta-updatehub,UpdateHub/meta-updatehub,fbertux/meta-updatehub,fbertux/meta-updatehub,UpdateHub/meta-updatehub,fbertux/meta-updatehub | bitbake | ## Code Before:
SUMMARY = "UpdateHub - System Inquiry"
SECTION = "base"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=838c366f69b72c5df05c96dff79b35f2"
SRC_URI = "git://github.com/UpdateHub/system-inquiry.git;protocol=https"
SRCREV = "399c52ed503e700fdb266c049520a15312f84b3e"
S = "${WORKDIR}/git"
PV = "0.0+... | SUMMARY = "UpdateHub - System Inquiry"
SECTION = "base"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=838c366f69b72c5df05c96dff79b35f2"
SRC_URI = "git://github.com/UpdateHub/system-inquiry.git;protocol=https"
SRCREV = "399c52ed503e700fdb266c049520a15312f84b3e"
S = "${WORKDIR}/git"
PV =... | 5 | 0.238095 | 5 | 0 |
9a89e0b71c52309ffa64fe064f8c28db7c12ee9c | src/main/java/com/leevilehtonen/cookagram/domain/ImageEntity.java | src/main/java/com/leevilehtonen/cookagram/domain/ImageEntity.java | package com.leevilehtonen.cookagram.domain;
import org.springframework.data.jpa.domain.AbstractPersistable;
import javax.persistence.Entity;
import javax.persistence.Lob;
@Entity
public class ImageEntity extends AbstractPersistable<Long> {
private String name;
private String mediaType;
private Long size... | package com.leevilehtonen.cookagram.domain;
import org.hibernate.annotations.Type;
import org.springframework.data.jpa.domain.AbstractPersistable;
import javax.persistence.Entity;
@Entity
public class ImageEntity extends AbstractPersistable<Long> {
private String name;
private String mediaType;
private ... | Update image content type for Postgres | Update image content type for Postgres
| Java | mit | leevilehtonen/cook-a-gram,leevilehtonen/cook-a-gram,leevilehtonen/cook-a-gram | java | ## Code Before:
package com.leevilehtonen.cookagram.domain;
import org.springframework.data.jpa.domain.AbstractPersistable;
import javax.persistence.Entity;
import javax.persistence.Lob;
@Entity
public class ImageEntity extends AbstractPersistable<Long> {
private String name;
private String mediaType;
p... | package com.leevilehtonen.cookagram.domain;
+ import org.hibernate.annotations.Type;
import org.springframework.data.jpa.domain.AbstractPersistable;
import javax.persistence.Entity;
- import javax.persistence.Lob;
@Entity
public class ImageEntity extends AbstractPersistable<Long> {
private S... | 4 | 0.081633 | 2 | 2 |
aaf474c9047687abff9fc617d63be074eec4aa5e | readme.md | readme.md |
Styling Helper Classes.
## Installation
## Usage
## Contributing
1. Fork it ( https://github.com/boriskaiser/unterstrich.css/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature... | Styling Helper Classes.
[](http://badge.fury.io/gh/boriskaiser%2Funterstrich.css) [](https://travis-ci.org/boriskaiser/unterstrich.css)
[](http://badge.fury.io/gh/boriskaiser%2Funterstrich.css) [](https://travis-ci.org/boriskaiser/unters... | 7 | 0.333333 | 5 | 2 |
3a4b5998878e6463931f8b1beb0d0f9a0ff057c1 | README.md | README.md |
`UIGestureRecognizer` subclass to enable one-finger-zoom gestures.
This concrete subclass of `UIGestureRecognizer` enables one-finger-zooming ([like in the Google Maps iOS app](http://littlebigdetails.com/post/51559128905/)). It has support for elastic bouncing, like `UIScrollView` does:
<img src="Demo.gif" alt="Dem... |
`UIGestureRecognizer` subclass to enable one-finger-zoom gestures.
This concrete subclass of `UIGestureRecognizer` enables one-finger-zooming ([like in the Google Maps iOS app](http://littlebigdetails.com/post/51559128905/)). It has support for elastic bouncing, like `UIScrollView` does:
<img src="Demo.gif" alt="Dem... | Update installation section in Readme. | Update installation section in Readme.
We're using Cocoapods now!
| Markdown | mit | bddckr/BDDROneFingerZoomGestureRecognizer | markdown | ## Code Before:
`UIGestureRecognizer` subclass to enable one-finger-zoom gestures.
This concrete subclass of `UIGestureRecognizer` enables one-finger-zooming ([like in the Google Maps iOS app](http://littlebigdetails.com/post/51559128905/)). It has support for elastic bouncing, like `UIScrollView` does:
<img src="De... |
`UIGestureRecognizer` subclass to enable one-finger-zoom gestures.
This concrete subclass of `UIGestureRecognizer` enables one-finger-zooming ([like in the Google Maps iOS app](http://littlebigdetails.com/post/51559128905/)). It has support for elastic bouncing, like `UIScrollView` does:
<img src="Demo.g... | 4 | 0.148148 | 1 | 3 |
0ca99f073801241138cb4da889729d0ef7e8c0af | AUTHORS.rst | AUTHORS.rst | .. -*- rst -*-
Authors & Acknowledgments
=========================
This software was written and packaged by Lev Givon,
currently at the Bionet Group [1]_ at Columbia University.
Some parts of the code are based (in part) on earlier implementations
written by the following members and alumni of the Bionet Group und... | .. -*- rst -*-
Authors & Acknowledgments
=========================
This software was written and packaged by Lev Givon,
currently at the Bionet Group [1]_ at Columbia University.
Some parts of the code are based (in part) on earlier implementations
written by the following alumni of the Bionet Group under the super... | Update authors list to reflect alumni status of certain contributors. | Update authors list to reflect alumni status of certain contributors.
| reStructuredText | bsd-3-clause | bionet/ted.python | restructuredtext | ## Code Before:
.. -*- rst -*-
Authors & Acknowledgments
=========================
This software was written and packaged by Lev Givon,
currently at the Bionet Group [1]_ at Columbia University.
Some parts of the code are based (in part) on earlier implementations
written by the following members and alumni of the ... | .. -*- rst -*-
Authors & Acknowledgments
=========================
This software was written and packaged by Lev Givon,
currently at the Bionet Group [1]_ at Columbia University.
Some parts of the code are based (in part) on earlier implementations
- written by the following members and alumni of ... | 10 | 0.333333 | 2 | 8 |
b2402f1155c73b7afe64c7cbf13085e580584f56 | Version.ps1 | Version.ps1 | param([String]$oldVersion="", [String]$newVersion="")
iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/StephenCleary/BuildTools/18aed44c432381eaa11329d82f63dfaf835d219c/Version.ps1'))
| param([String]$oldVersion="", [String]$newVersion="")
iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/StephenCleary/BuildTools/0297d9e34cc1ff5391b474b4fa29d6be9b236b83/Version.ps1'))
| Fix bug in version script. | Fix bug in version script.
| PowerShell | mit | StephenCleary/Comparers | powershell | ## Code Before:
param([String]$oldVersion="", [String]$newVersion="")
iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/StephenCleary/BuildTools/18aed44c432381eaa11329d82f63dfaf835d219c/Version.ps1'))
## Instruction:
Fix bug in version script.
## Code After:
param([String]$oldVersion="... | param([String]$oldVersion="", [String]$newVersion="")
- iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/StephenCleary/BuildTools/18aed44c432381eaa11329d82f63dfaf835d219c/Version.ps1'))
? ... | 2 | 1 | 1 | 1 |
08d7fb59d4c404f2b9c500711323adb0096f9d56 | .travis.yml | .travis.yml | language: python
python:
- "2.6"
- "2.7"
install:
- "travis_retry pip install coverage"
- "travis_retry pip install nose"
- "travis_retry pip install coveralls"
- "travis_retry pip install git+git://github.com/TurboGears/tg2.git@development"
script: "python setup.py nosetests"
after_success:
coveralls
| language: python
python:
- "2.6"
- "2.7"
install:
- "travis_retry pip install coverage"
- "travis_retry pip install nose"
- "travis_retry pip install coveralls"
- "travis_retry pip install git+git://github.com/TurboGears/tg2.git@development"
- "travis_retry pip install -e ."
script: "python setup.py nos... | Install self before test suite | Install self before test suite
| YAML | mit | amol-/tgext.socketio | yaml | ## Code Before:
language: python
python:
- "2.6"
- "2.7"
install:
- "travis_retry pip install coverage"
- "travis_retry pip install nose"
- "travis_retry pip install coveralls"
- "travis_retry pip install git+git://github.com/TurboGears/tg2.git@development"
script: "python setup.py nosetests"
after_succe... | language: python
python:
- "2.6"
- "2.7"
install:
- "travis_retry pip install coverage"
- "travis_retry pip install nose"
- "travis_retry pip install coveralls"
- "travis_retry pip install git+git://github.com/TurboGears/tg2.git@development"
+ - "travis_retry pip install -e ."
sc... | 1 | 0.066667 | 1 | 0 |
e408992f370423c025a92d5deb622fb46441fdbe | controllers/account.php | controllers/account.php | <?php
class Orchestra_Account_Controller extends Orchestra\Controller
{
public function __construct()
{
parent::__construct();
$this->filter('before', 'orchestra::auth');
}
public function get_index()
{
$auth = Auth::user();
$data = array(
'user' => Orchestra\Model\User::find($auth->id),
);
ret... | <?php
class Orchestra_Account_Controller extends Orchestra\Controller
{
/**
* Construct Account Controller to allow user
* to update own profile. Only authenticated user
* should be able to access this controller.
*
* @access public
* @return void
*/
public function __construct()
{
parent::__const... | Update Orchestra_Account_Controller docblock and prepare method for POST request | Update Orchestra_Account_Controller docblock and prepare method for POST request
| PHP | mit | orchestral/orchestra,orchestral/orchestra | php | ## Code Before:
<?php
class Orchestra_Account_Controller extends Orchestra\Controller
{
public function __construct()
{
parent::__construct();
$this->filter('before', 'orchestra::auth');
}
public function get_index()
{
$auth = Auth::user();
$data = array(
'user' => Orchestra\Model\User::find($auth->... | <?php
class Orchestra_Account_Controller extends Orchestra\Controller
{
+ /**
+ * Construct Account Controller to allow user
+ * to update own profile. Only authenticated user
+ * should be able to access this controller.
+ *
+ * @access public
+ * @return void
+ */
public function __constr... | 42 | 1.272727 | 42 | 0 |
ad381f410dceb2f8efc49a0a65ae70defe273c75 | src/rpc/handlers/jsonrpc/handler.js | src/rpc/handlers/jsonrpc/handler.js | 'use strict';
const { validatePayload } = require('./validate');
// Use JSON-RPC-specific logic to parse the request into an
// rpc-agnostic `rpcDef`
const handler = function ({ payload }) {
validatePayload({ payload });
const { method, params } = payload;
const args = getArgs({ params });
const rpcDef = { c... | 'use strict';
const { validatePayload } = require('./validate');
// Use JSON-RPC-specific logic to parse the request into an
// rpc-agnostic `rpcDef`
const handler = function ({ payload }) {
validatePayload({ payload });
const { method, params, id } = payload;
const args = getArgs({ params });
const argsA =... | Add support for JSON-RPC notifications | Add support for JSON-RPC notifications
| JavaScript | apache-2.0 | autoserver-org/autoserver,autoserver-org/autoserver | javascript | ## Code Before:
'use strict';
const { validatePayload } = require('./validate');
// Use JSON-RPC-specific logic to parse the request into an
// rpc-agnostic `rpcDef`
const handler = function ({ payload }) {
validatePayload({ payload });
const { method, params } = payload;
const args = getArgs({ params });
co... | 'use strict';
const { validatePayload } = require('./validate');
// Use JSON-RPC-specific logic to parse the request into an
// rpc-agnostic `rpcDef`
const handler = function ({ payload }) {
validatePayload({ payload });
- const { method, params } = payload;
+ const { method, params, id } = p... | 15 | 0.555556 | 13 | 2 |
32f7ddeec8a67338d0e9663d0fb1f3e448e6d32a | renderer/components/box/box-image.css | renderer/components/box/box-image.css | .base {
position: relative;
width: 100%;
min-height: 20px;
text-align: center;
cursor: zoom-in;
}
.base svg {
position: absolute;
width: 25px;
height: 25px;
padding: 2px;
fill: white;
background-color: rgba(180, 180, 180, 0.5);
border-radius: 4px;
margin-top: 5px;
margin-left: 5px;
z-index: 100;
}
.bas... | .base {
position: relative;
width: 100%;
min-height: 20px;
text-align: center;
cursor: zoom-in;
overflow: hidden;
}
.base svg {
position: absolute;
width: 25px;
height: 25px;
padding: 2px;
fill: white;
background-color: rgba(180, 180, 180, 0.5);
border-radius: 4px;
margin-top: 5px;
margin-left: 5px;
z-... | Fix blur blur blur blur... | Fix blur blur blur blur...
| CSS | mit | akameco/PixivDeck,akameco/PixivDeck | css | ## Code Before:
.base {
position: relative;
width: 100%;
min-height: 20px;
text-align: center;
cursor: zoom-in;
}
.base svg {
position: absolute;
width: 25px;
height: 25px;
padding: 2px;
fill: white;
background-color: rgba(180, 180, 180, 0.5);
border-radius: 4px;
margin-top: 5px;
margin-left: 5px;
z-ind... | .base {
position: relative;
width: 100%;
min-height: 20px;
text-align: center;
cursor: zoom-in;
+ overflow: hidden;
}
.base svg {
position: absolute;
width: 25px;
height: 25px;
padding: 2px;
fill: white;
background-color: rgba(180, 180, 180, 0.5);
border-radius: 4px;
mar... | 3 | 0.071429 | 3 | 0 |
e974855ce3c9827060046d736c4e4254552e9e91 | run_tests.sh | run_tests.sh |
set -e
VENV=x-venv
WORKSPACE=${WORKSPACE:-"/vagrant"}
CONFIG_FILE=$WORKSPACE/jenkins-config.yaml
# Setup a proper path, I call my virtualenv dir "$VENV" and
# I've got the virtualenv command installed in /usr/local/bin
PATH=$WORKSPACE/venv/bin:/usr/local/bin:$PATH
if [ ! -d "$VENV" ]; then
virtualenv -p python2... |
set -e
VENV=x-venv
WORKSPACE=${WORKSPACE:-"/vagrant"}
CONFIG_FILE=$WORKSPACE/jenkins-config.yaml
# Setup a proper path, I call my virtualenv dir "$VENV" and
# I've got the virtualenv command installed in /usr/local/bin
PATH=$WORKSPACE/venv/bin:/usr/local/bin:$PATH
if [ ! -d "$VENV" ]; then
virtualenv -p python2... | Set config path. Run only tests from test dir | Set config path. Run only tests from test dir
| Shell | apache-2.0 | Mirantis/solar,pigmej/solar,pigmej/solar,pigmej/solar,openstack/solar,zen/solar,Mirantis/solar,Mirantis/solar,openstack/solar,openstack/solar,loles/solar,loles/solar,loles/solar,Mirantis/solar,loles/solar,zen/solar,zen/solar,zen/solar | shell | ## Code Before:
set -e
VENV=x-venv
WORKSPACE=${WORKSPACE:-"/vagrant"}
CONFIG_FILE=$WORKSPACE/jenkins-config.yaml
# Setup a proper path, I call my virtualenv dir "$VENV" and
# I've got the virtualenv command installed in /usr/local/bin
PATH=$WORKSPACE/venv/bin:/usr/local/bin:$PATH
if [ ! -d "$VENV" ]; then
virtu... |
set -e
VENV=x-venv
WORKSPACE=${WORKSPACE:-"/vagrant"}
CONFIG_FILE=$WORKSPACE/jenkins-config.yaml
# Setup a proper path, I call my virtualenv dir "$VENV" and
# I've got the virtualenv command installed in /usr/local/bin
PATH=$WORKSPACE/venv/bin:/usr/local/bin:$PATH
if [ ! -d "$VENV" ]; then
... | 2 | 0.086957 | 1 | 1 |
d2f44bbcf5f2825fdb5117574a4a67b6378ea526 | src-script/license-whitelist.txt | src-script/license-whitelist.txt | BSD-2-Clause
CC-BY-3.0
Apache-2.0
BSD-3-Clause
CC0-1.0
ISC
MIT
Unlicense
AFLv2.1,BSD
(BSD-2-Clause OR MIT OR Apache-2.0)
(MIT AND CC-BY-3.0)
MIT*
(WTFPL OR MIT)
WTFPL OR ISC
WTFPL
(MIT OR CC0-1.0)
(MIT OR Apache-2.0)
(MIT AND BSD-3-Clause)
(MIT AND Zlib)
| BSD-2-Clause
CC-BY-3.0
Apache-2.0
BSD-3-Clause
CC0-1.0
ISC
MIT
Unlicense
AFLv2.1,BSD
(BSD-2-Clause OR MIT OR Apache-2.0)
(MIT AND CC-BY-3.0)
MIT*
(WTFPL OR MIT)
WTFPL OR ISC
WTFPL
(MIT OR CC0-1.0)
(MIT OR Apache-2.0)
(MIT AND BSD-3-Clause)
(MIT AND Zlib)
(AFL-2.1 OR BSD-3-Clause)
| Add an Afl + BSD C3 license. | Add an Afl + BSD C3 license.
| Text | apache-2.0 | project-chip/zap,project-chip/zap,project-chip/zap,project-chip/zap | text | ## Code Before:
BSD-2-Clause
CC-BY-3.0
Apache-2.0
BSD-3-Clause
CC0-1.0
ISC
MIT
Unlicense
AFLv2.1,BSD
(BSD-2-Clause OR MIT OR Apache-2.0)
(MIT AND CC-BY-3.0)
MIT*
(WTFPL OR MIT)
WTFPL OR ISC
WTFPL
(MIT OR CC0-1.0)
(MIT OR Apache-2.0)
(MIT AND BSD-3-Clause)
(MIT AND Zlib)
## Instruction:
Add an Afl + BSD C3 license.
#... | BSD-2-Clause
CC-BY-3.0
Apache-2.0
BSD-3-Clause
CC0-1.0
ISC
MIT
Unlicense
AFLv2.1,BSD
(BSD-2-Clause OR MIT OR Apache-2.0)
(MIT AND CC-BY-3.0)
MIT*
(WTFPL OR MIT)
WTFPL OR ISC
WTFPL
(MIT OR CC0-1.0)
(MIT OR Apache-2.0)
(MIT AND BSD-3-Clause)
(MIT AND Zlib)
+ (AFL-2.1 OR BSD-3-Clause)... | 2 | 0.1 | 2 | 0 |
714ad94a6bbc272ec8e96ccd0db3c50e401accf1 | cmake/dtkDart.cmake | cmake/dtkDart.cmake |
set(CTEST_PROJECT_NAME "dtk")
set(NIGHTLY_START_TIME "21:00:00 EST")
set(DROP_METHOD "http")
set(DROP_SITE "cdash.inria.fr")
set(DROP_LOCATION "/CDash/submit.php?project=dtk")
set(DROP_SITE_CDASH TRUE)
|
set(CTEST_PROJECT_NAME "dtk")
set(CTEST_UPDATE_TYPE "git")
set(UPDATE_COMMAND "git")
set(NIGHTLY_START_TIME "21:00:00 EST")
set(DROP_METHOD "http")
set(DROP_SITE "cdash.inria.fr")
set(DROP_LOCATION "/CDash/submit.php?project=dtk")
set(DROP_SITE_CDASH TRUE)
| Set ctest update command to git. | Set ctest update command to git.
| CMake | bsd-3-clause | d-tk/dtk,NicolasSchnitzler/dtk,d-tk/dtk,rdebroiz/dtk,NicolasSchnitzler/dtk,d-tk/dtk,d-tk/dtk,d-tk/dtk,rdebroiz/dtk,NicolasSchnitzler/dtk,d-tk/dtk,NicolasSchnitzler/dtk,rdebroiz/dtk,rdebroiz/dtk | cmake | ## Code Before:
set(CTEST_PROJECT_NAME "dtk")
set(NIGHTLY_START_TIME "21:00:00 EST")
set(DROP_METHOD "http")
set(DROP_SITE "cdash.inria.fr")
set(DROP_LOCATION "/CDash/submit.php?project=dtk")
set(DROP_SITE_CDASH TRUE)
## Instruction:
Set ctest update command to git.
## Code After:
set(CTEST_PROJECT_NAME "dtk")
set(... |
set(CTEST_PROJECT_NAME "dtk")
+ set(CTEST_UPDATE_TYPE "git")
+ set(UPDATE_COMMAND "git")
set(NIGHTLY_START_TIME "21:00:00 EST")
set(DROP_METHOD "http")
set(DROP_SITE "cdash.inria.fr")
set(DROP_LOCATION "/CDash/submit.php?project=dtk")
set(DROP_SITE_CDASH TRUE) | 2 | 0.285714 | 2 | 0 |
52a2c41c3f2efbedd99f384d419db7f2de01d199 | src/DailySoccerSolution/DailySoccerMobile/Scripts/tickets/starter.ticket.services.ts | src/DailySoccerSolution/DailySoccerMobile/Scripts/tickets/starter.ticket.services.ts | module starter.ticket {
'use strict';
export class TicketServices implements ITicketService {
static $inject = ['starter.shared.QueryRemoteDataService'];
constructor(private queryRemoteSvc: starter.shared.QueryRemoteDataService) {
}
public BuyTicket(req: BuyTicketRequest): ng... | module starter.ticket {
'use strict';
export class TicketServices implements ITicketService {
static $inject = ['starter.shared.QueryRemoteDataService'];
constructor(private queryRemoteSvc: starter.shared.QueryRemoteDataService) {
}
public BuyTicket(req: BuyTicketRequest): ng... | Add BuyTicketManagerService for validate buy ticket. | Add BuyTicketManagerService for validate buy ticket.
Signed-off-by: Sakul Jaruthanaset <17b4bfe9c570ddd7d4345ec4b3617835712513c0@perfenterprise.com>
| TypeScript | mit | tlaothong/xdailysoccer,tlaothong/xdailysoccer,tlaothong/xdailysoccer,tlaothong/xdailysoccer | typescript | ## Code Before:
module starter.ticket {
'use strict';
export class TicketServices implements ITicketService {
static $inject = ['starter.shared.QueryRemoteDataService'];
constructor(private queryRemoteSvc: starter.shared.QueryRemoteDataService) {
}
public BuyTicket(req: BuyTi... | module starter.ticket {
'use strict';
export class TicketServices implements ITicketService {
static $inject = ['starter.shared.QueryRemoteDataService'];
constructor(private queryRemoteSvc: starter.shared.QueryRemoteDataService) {
}
public BuyTicket(req: B... | 7 | 0.368421 | 6 | 1 |
d6af2d52eaf8088aef94dc9dfc991265eb9ea1f5 | .circleci/config.yml | .circleci/config.yml |
version: 2
jobs:
build:
machine:
java:
version: 8
steps:
- checkout
- run: ./gradlew build
- run: ./gradlew test
|
version: 2
jobs:
build:
machine:
java:
version: 8
steps:
- checkout
- run: ./gradlew build
- run: ./gradlew test
- store_artifacts:
path: build/reports/tests
- store_artifacts:
pa... | Deploy test results to CircleCI | Deploy test results to CircleCI
| YAML | mit | maillouxc/git-rekt | yaml | ## Code Before:
version: 2
jobs:
build:
machine:
java:
version: 8
steps:
- checkout
- run: ./gradlew build
- run: ./gradlew test
## Instruction:
Deploy test results to CircleCI
## Code After:
version: 2
jobs:
build:
mach... |
version: 2
jobs:
build:
machine:
java:
version: 8
steps:
- checkout
- run: ./gradlew build
- run: ./gradlew test
+ - store_artifacts:
+ path: build/reports/tests
+ - store_a... | 4 | 0.363636 | 4 | 0 |
35772cb892305931a2131a524ae5f37555246a21 | json.php | json.php | <?php
header('Content-Type: application/json; charset=utf-8');
$response = array(
'name' => $_POST['user'],
'password' => $_POST['pwd'],
);
echo json_encode($response, true);
?>
| <?php
function cors() {
// Allow from any origin
if (isset($_SERVER['HTTP_ORIGIN'])) {
// Decide if the origin in $_SERVER['HTTP_ORIGIN'] is one
// you want to allow, and if so:
header("Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}");
header('Access-Control-Allow-Creden... | Add CORS code in php. | [dev] Add CORS code in php.
| PHP | mit | tedshd/ajax,tedshd/ajax,tedshd/ajax | php | ## Code Before:
<?php
header('Content-Type: application/json; charset=utf-8');
$response = array(
'name' => $_POST['user'],
'password' => $_POST['pwd'],
);
echo json_encode($response, true);
?>
## Instruction:
[dev] Add CORS code in php.
## Code After:
<?php
function cors() {
// Allow from any origin
... | <?php
+ function cors() {
+
+ // Allow from any origin
+ if (isset($_SERVER['HTTP_ORIGIN'])) {
+ // Decide if the origin in $_SERVER['HTTP_ORIGIN'] is one
+ // you want to allow, and if so:
+ header("Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}");
+ header('Access-Co... | 27 | 3.375 | 27 | 0 |
67735b59efb121a1e23562316bdab3c302007179 | src/templates/drizzle/labelheader.hbs | src/templates/drizzle/labelheader.hbs | <{{tag}} {{#if id}}id="{{id}}"{{/if}} class="
drizzle-u-inlineBlock
drizzle-u-alignMiddle
drizzle-u-padRight">
{{#if id}}
<a href="#{{id}}" class="drizzle-u-linkHidden">{{> @partial-block }}</a>
{{else}}
{{> @partial-block }}
{{/if}}
</{{tag}}>
{{#if labels}}
<ul class="
drizzle-u-inlineBlock
... | <{{tag}} {{#if id}}id="{{id}}"{{/if}} class="
drizzle-u-inlineBlock
drizzle-u-alignMiddle
drizzle-u-padRight">
{{#if id}}
<a href="#{{id}}" class="drizzle-u-linkHidden">{{> @partial-block }}</a>
{{else}}
{{> @partial-block }}
{{/if}}
</{{tag}}>
{{#if labels}}
<ul class="
drizzle-u-inlineBlock
... | Add u-listUnstyled per PR feedback | Add u-listUnstyled per PR feedback
| Handlebars | mit | cloudfour/drizzle,cloudfour/drizzle | handlebars | ## Code Before:
<{{tag}} {{#if id}}id="{{id}}"{{/if}} class="
drizzle-u-inlineBlock
drizzle-u-alignMiddle
drizzle-u-padRight">
{{#if id}}
<a href="#{{id}}" class="drizzle-u-linkHidden">{{> @partial-block }}</a>
{{else}}
{{> @partial-block }}
{{/if}}
</{{tag}}>
{{#if labels}}
<ul class="
drizzl... | <{{tag}} {{#if id}}id="{{id}}"{{/if}} class="
drizzle-u-inlineBlock
drizzle-u-alignMiddle
drizzle-u-padRight">
{{#if id}}
<a href="#{{id}}" class="drizzle-u-linkHidden">{{> @partial-block }}</a>
{{else}}
{{> @partial-block }}
{{/if}}
</{{tag}}>
{{#if labels}}
<ul class="
... | 2 | 0.090909 | 1 | 1 |
59d68d3d23da1704be8c42c1447401d3343a5f5e | locales/cak/experiments.ftl | locales/cak/experiments.ftl | activitystreamDescription = Jun jeb'ël rutz'etik rucholajem nojinäq chi etamab'äl chuqa' jun rutikirib'al ruxaq ri wachib'en richin man k'ayew ta nawïl ri tajin nakanoj pa Firefox.
containersContributors4Title = Firefox QA
containersContributors7Title = Firefox UX
containersContributors8Title = Firefox UX
containersCon... | activitystreamDescription = Jun jeb'ël rutz'etik rucholajem nojinäq chi etamab'äl chuqa' jun rutikirib'al ruxaq ri wachib'en richin man k'ayew ta nawïl ri tajin nakanoj pa Firefox.
containersContributors4Title = Firefox QA
containersContributors7Title = Firefox UX
containersContributors8Title = Firefox UX
containersCon... | Update Kaqchikel (cak) localization of Test Pilot Website | Pontoon: Update Kaqchikel (cak) localization of Test Pilot Website
Localization authors:
- Juan Esteban Ajsivinac Sián <ajtzibsyan@yahoo.com>
| FreeMarker | mpl-2.0 | fzzzy/testpilot,lmorchard/idea-town-server,chuckharmston/testpilot,mozilla/idea-town-server,mozilla/idea-town,fzzzy/testpilot,flodolo/testpilot,flodolo/testpilot,lmorchard/idea-town-server,chuckharmston/testpilot,meandavejustice/testpilot,lmorchard/idea-town,fzzzy/testpilot,flodolo/testpilot,lmorchard/idea-town-server,... | freemarker | ## Code Before:
activitystreamDescription = Jun jeb'ël rutz'etik rucholajem nojinäq chi etamab'äl chuqa' jun rutikirib'al ruxaq ri wachib'en richin man k'ayew ta nawïl ri tajin nakanoj pa Firefox.
containersContributors4Title = Firefox QA
containersContributors7Title = Firefox UX
containersContributors8Title = Firefox ... | activitystreamDescription = Jun jeb'ël rutz'etik rucholajem nojinäq chi etamab'äl chuqa' jun rutikirib'al ruxaq ri wachib'en richin man k'ayew ta nawïl ri tajin nakanoj pa Firefox.
containersContributors4Title = Firefox QA
containersContributors7Title = Firefox UX
containersContributors8Title = Firefox UX
con... | 3 | 0.15 | 3 | 0 |
6be22dbbe3b1f7bc8c396a98a83f5c5b51a4bbca | spec/controllers/ci/projects_controller_spec.rb | spec/controllers/ci/projects_controller_spec.rb | require 'spec_helper'
describe Ci::ProjectsController do
let(:visibility) { :public }
let!(:project) { create(:project, visibility, ci_id: 1) }
let(:ci_id) { project.ci_id }
##
# Specs for *deprecated* CI badge
#
describe '#badge' do
context 'user not signed in'
before { get(:badge, id: ci_id)... | require 'spec_helper'
describe Ci::ProjectsController do
let(:visibility) { :public }
let!(:project) { create(:project, visibility, ci_id: 1) }
let(:ci_id) { project.ci_id }
##
# Specs for *deprecated* CI badge
#
describe '#badge' do
context 'user not signed in' do
before { get(:badge, id: ci_... | Fix specs for deprecated CI build status badge | Fix specs for deprecated CI build status badge
| Ruby | mit | shinexiao/gitlabhq,martijnvermaat/gitlabhq,screenpages/gitlabhq,shinexiao/gitlabhq,axilleas/gitlabhq,Soullivaneuh/gitlabhq,dreampet/gitlab,screenpages/gitlabhq,martijnvermaat/gitlabhq,SVArago/gitlabhq,htve/GitlabForChinese,mr-dxdy/gitlabhq,mmkassem/gitlabhq,larryli/gitlabhq,allysonbarros/gitlabhq,stoplightio/gitlabhq,m... | ruby | ## Code Before:
require 'spec_helper'
describe Ci::ProjectsController do
let(:visibility) { :public }
let!(:project) { create(:project, visibility, ci_id: 1) }
let(:ci_id) { project.ci_id }
##
# Specs for *deprecated* CI badge
#
describe '#badge' do
context 'user not signed in'
before { get(:b... | require 'spec_helper'
describe Ci::ProjectsController do
let(:visibility) { :public }
let!(:project) { create(:project, visibility, ci_id: 1) }
let(:ci_id) { project.ci_id }
##
# Specs for *deprecated* CI badge
#
describe '#badge' do
- context 'user not signed in'
+ context... | 3 | 0.056604 | 2 | 1 |
88f9c79391fb81fdf91a812f4fd702f2c008424a | README.md | README.md |
> Rangle.io official React + Redux starter
## Getting Started
Use our [starter script](https://www.npmjs.com/package/rangle-starter), with
`react-redux-starter` as the `techStack` argument.
## npm scripts
### Dev
```bash
$ npm run dev
```
Open `http://localhost:3000` in your browser.
### Tests
#### Single Run
`... |
> Rangle.io official React + Redux starter
## Getting Started
Use our [starter script](https://www.npmjs.com/package/rangle-starter), with
`react-redux-starter` as the `techStack` argument.
## npm scripts
### Dev
```bash
$ npm run dev
```
Open `http://localhost:3000` in your browser.
### Tests
#### Single Run
`... | Add a note about Heroku deployments | Add a note about Heroku deployments | Markdown | mit | rangle/react-redux-starter,tammytle/spiegel,tammytle/spiegel,JamesHageman/rangle-elm-starter,rangle/react-redux-starter,tammytle/spiegel,JamesHageman/rangle-elm-starter,rangle/react-redux-starter,JamesHageman/redux-datagrid,tammytle/spiegel,JamesHageman/rangle-elm-starter,JamesHageman/rangle-elm-starter,JamesHageman/re... | markdown | ## Code Before:
> Rangle.io official React + Redux starter
## Getting Started
Use our [starter script](https://www.npmjs.com/package/rangle-starter), with
`react-redux-starter` as the `techStack` argument.
## npm scripts
### Dev
```bash
$ npm run dev
```
Open `http://localhost:3000` in your browser.
### Tests
#... |
> Rangle.io official React + Redux starter
## Getting Started
Use our [starter script](https://www.npmjs.com/package/rangle-starter), with
`react-redux-starter` as the `techStack` argument.
## npm scripts
### Dev
```bash
$ npm run dev
```
Open `http://localhost:3000` in your browse... | 12 | 0.26087 | 12 | 0 |
ab15a7cad4140954a4a4a946ff7d7fc65d005363 | test/tcframe/runner/RunnerTests.cpp | test/tcframe/runner/RunnerTests.cpp |
using ::testing::Test;
namespace tcframe {
class FakeProblem : public BaseProblem {
protected:
void InputFormat() {}
};
class FakeGenerator : public BaseGenerator<FakeProblem> {};
class RunnerTests : public Test {
protected:
int argc = 1;
char* argv[1] = {const_cast<char*>("./runner")};
Runner<Fak... |
using ::testing::Test;
namespace tcframe {
class FakeProblem : public BaseProblem {
protected:
void InputFormat() {}
};
class FakeGenerator : public BaseGenerator<FakeProblem> {};
class RunnerTests : public Test {
protected:
int argc = 1;
char* argv[1] = {toChar("./runner")};
Runner<FakeProblem> r... | Use safer cast from const char* literal to char* | Use safer cast from const char* literal to char*
| C++ | mit | ia-toki/tcframe,ia-toki/tcframe,fushar/tcframe,fushar/tcframe,tcframe/tcframe,tcframe/tcframe | c++ | ## Code Before:
using ::testing::Test;
namespace tcframe {
class FakeProblem : public BaseProblem {
protected:
void InputFormat() {}
};
class FakeGenerator : public BaseGenerator<FakeProblem> {};
class RunnerTests : public Test {
protected:
int argc = 1;
char* argv[1] = {const_cast<char*>("./runner")};... |
using ::testing::Test;
namespace tcframe {
class FakeProblem : public BaseProblem {
protected:
void InputFormat() {}
};
class FakeGenerator : public BaseGenerator<FakeProblem> {};
class RunnerTests : public Test {
protected:
int argc = 1;
- char* argv[1] = {const_cast<char... | 9 | 0.36 | 8 | 1 |
ad5e2272bc1d857fdec6e14f0e8232296fc1aa38 | models/raw_feed/model.js | models/raw_feed/model.js | var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var config = require('../../config.js');
this.rawFeedModel = {
timestamp: {type: Date, default: Date.now},
text: String
};
var rawFeedSchema = new Schema(this.rawFeedModel);
this.rawFeed = mongoose.model('rawFeed', rawFeedSchema); | var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var config = require('../../config.js');
this.rawFeedModel = {
timestamp: {type: Date, default: Date.now},
text: String,
feedSource: {type: String, enum: ['Twitter', 'Email']}
};
var rawFeedSchema = new Schema(this.rawFeedModel);
this.rawFeed = mong... | Add data source property to raw feed object | Add data source property to raw feed object
| JavaScript | mit | NextCenturyCorporation/EVEREST | javascript | ## Code Before:
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var config = require('../../config.js');
this.rawFeedModel = {
timestamp: {type: Date, default: Date.now},
text: String
};
var rawFeedSchema = new Schema(this.rawFeedModel);
this.rawFeed = mongoose.model('rawFeed', rawFeedSchema);
## ... | var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var config = require('../../config.js');
this.rawFeedModel = {
timestamp: {type: Date, default: Date.now},
- text: String
+ text: String,
? +
+ feedSource: {type: String, enum: ['Twitter', 'Email']}
};
var rawFeedSch... | 3 | 0.272727 | 2 | 1 |
55297069a68830699d8cde5619117f314a0cf913 | lib/prefetcher/http_fetcher.rb | lib/prefetcher/http_fetcher.rb | module Prefetcher
class HttpFetcher
attr_reader :url, :memoizer
def initialize(params = {})
@url = params.fetch(:url)
@memoizer = params.fetch(:memoizer, HttpMemoizer.new)
end
# Makes request to given URL in async way
def fetch_async
HttpRequester.new(url, memoizer).future(:fet... | module Prefetcher
class HttpFetcher
attr_reader :url, :memoizer
def initialize(params = {})
@url = params.fetch(:url)
@memoizer = params.fetch(:memoizer, HttpMemoizer.new)
end
# Makes request to given URL in async way
def fetch_async
HttpRequester.new(url, memoizer).future(:fet... | Remove obsolete code - merging issue. | Remove obsolete code - merging issue.
| Ruby | mit | brain-geek/prefetcher | ruby | ## Code Before:
module Prefetcher
class HttpFetcher
attr_reader :url, :memoizer
def initialize(params = {})
@url = params.fetch(:url)
@memoizer = params.fetch(:memoizer, HttpMemoizer.new)
end
# Makes request to given URL in async way
def fetch_async
HttpRequester.new(url, memoi... | module Prefetcher
class HttpFetcher
attr_reader :url, :memoizer
def initialize(params = {})
@url = params.fetch(:url)
@memoizer = params.fetch(:memoizer, HttpMemoizer.new)
end
# Makes request to given URL in async way
def fetch_async
HttpRequester.new(ur... | 4 | 0.108108 | 0 | 4 |
c83019e206766317bce206e9d024dc4f707e5cc1 | web_modules/Footer/index.js | web_modules/Footer/index.js | import React, { Component } from "react"
import styles from "./index.css"
import logo from "./evilmartians.svg"
export default class Footer extends Component {
render() {
return (
<footer className={ styles.root } role="contentinfo">
<div className={ styles.inner }>
<div className={ sty... | import React, { Component } from "react"
import styles from "./index.css"
import logo from "./evilmartians.svg"
export default class Footer extends Component {
render() {
return (
<footer className={ styles.root } role="contentinfo">
<div className={ styles.inner }>
<div className={ sty... | Add Evil Martians link to footer | Add Evil Martians link to footer
| JavaScript | mit | postcss/postcss.org,postcss/postcss.org | javascript | ## Code Before:
import React, { Component } from "react"
import styles from "./index.css"
import logo from "./evilmartians.svg"
export default class Footer extends Component {
render() {
return (
<footer className={ styles.root } role="contentinfo">
<div className={ styles.inner }>
<div... | import React, { Component } from "react"
import styles from "./index.css"
import logo from "./evilmartians.svg"
export default class Footer extends Component {
render() {
return (
<footer className={ styles.root } role="contentinfo">
<div className={ styles.inner }>
... | 15 | 0.416667 | 10 | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.