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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e49fd31bebde60832ed764ed087c4bb3149d5c6f | src/runtime/web/index.js | src/runtime/web/index.js | 'use strict';
import { fetch } from './io';
import { Service } from '../../bindings/html/service';
import { setAttributes, getAttributes } from '../../bindings/html/dom';
const readyStates = {
loading: 0,
interactive: 1,
complete: 2
};
function whenInteractive(callback) {
if (readyStates[document.readyState]... | 'use strict';
import { fetch } from './io';
import { Service } from '../../bindings/html/service';
const readyStates = {
loading: 0,
interactive: 1,
complete: 2
};
function whenInteractive(callback) {
if (readyStates[document.readyState] >= readyStates.interactive) {
return callback();
}
document.ad... | Remove compatibility layer with navigator.mozL10n | Remove compatibility layer with navigator.mozL10n
| JavaScript | apache-2.0 | mail-apps/l20n.js,zbraniecki/fluent.js,projectfluent/fluent.js,stasm/l20n.js,mail-apps/l20n.js,zbraniecki/l20n.js,l20n/l20n.js,Swaven/l20n.js,Pike/l20n.js,Pike/l20n.js,projectfluent/fluent.js,projectfluent/fluent.js,zbraniecki/fluent.js | javascript | ## Code Before:
'use strict';
import { fetch } from './io';
import { Service } from '../../bindings/html/service';
import { setAttributes, getAttributes } from '../../bindings/html/dom';
const readyStates = {
loading: 0,
interactive: 1,
complete: 2
};
function whenInteractive(callback) {
if (readyStates[docu... | 'use strict';
import { fetch } from './io';
import { Service } from '../../bindings/html/service';
- import { setAttributes, getAttributes } from '../../bindings/html/dom';
const readyStates = {
loading: 0,
interactive: 1,
complete: 2
};
function whenInteractive(callback) {
if (read... | 13 | 0.288889 | 0 | 13 |
c85686f80e1506e0f3bcedcd17a9411c23ffb4b4 | spec/helpers/security_group_helper/textual_summary_spec.rb | spec/helpers/security_group_helper/textual_summary_spec.rb | describe SecurityGroupHelper::TextualSummary do
describe ".textual_group_firewall" do
before do
login_as FactoryGirl.create(:user)
end
subject { textuclal_group_firewall }
it 'returns TextualTable struct with list of of firewall rules' do
firewall_rules = [
FactoryGirl.create(:fir... | describe SecurityGroupHelper::TextualSummary do
describe ".textual_group_firewall" do
before do
login_as FactoryGirl.create(:user)
end
subject { textual_group_firewall }
it 'returns TextualTable struct with list of of firewall rules' do
firewall_rules = [
FactoryGirl.create(:firew... | Fix a typo in textual summary test for SecurityGroup. | Fix a typo in textual summary test for SecurityGroup.
| Ruby | apache-2.0 | ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic | ruby | ## Code Before:
describe SecurityGroupHelper::TextualSummary do
describe ".textual_group_firewall" do
before do
login_as FactoryGirl.create(:user)
end
subject { textuclal_group_firewall }
it 'returns TextualTable struct with list of of firewall rules' do
firewall_rules = [
Factory... | describe SecurityGroupHelper::TextualSummary do
describe ".textual_group_firewall" do
before do
login_as FactoryGirl.create(:user)
end
- subject { textuclal_group_firewall }
? --
+ subject { textual_group_firewall }
it 'returns TextualTable struct with list... | 4 | 0.235294 | 2 | 2 |
92538b650ec1da071fe6be0697234c6236b118a1 | build-dev-bundle.js | build-dev-bundle.js | var path = require("path");
var stealTools = require("steal-tools");
var promise = stealTools.bundle({
config: path.join(__dirname, "package.json!npm")
}, {
filter: [ "**/*", "package.json" ],
minify: true
});
| var path = require("path");
var stealTools = require("steal-tools");
stealTools.bundle({
config: path.join(__dirname, "package.json!npm")
}, {
filter: [ "**/*", "package.json" ],
minify: true
}).catch(function(error) {
console.error(error);
process.exit(1);
});
| Exit with an error when the deps-bundle script fails | Exit with an error when the deps-bundle script fails
Previously, if you ran the deps-bundle script and steal-tools reported an error, the script would still exit successfully and the next script would run (e.g. when building the site/docs). This would leave you with an out-of-date (or non-existent) dev-bundle.
This f... | JavaScript | mit | bitovi/canjs,bitovi/canjs,bitovi/canjs,bitovi/canjs | javascript | ## Code Before:
var path = require("path");
var stealTools = require("steal-tools");
var promise = stealTools.bundle({
config: path.join(__dirname, "package.json!npm")
}, {
filter: [ "**/*", "package.json" ],
minify: true
});
## Instruction:
Exit with an error when the deps-bundle script fails
Previously, if y... | var path = require("path");
var stealTools = require("steal-tools");
- var promise = stealTools.bundle({
+ stealTools.bundle({
config: path.join(__dirname, "package.json!npm")
}, {
filter: [ "**/*", "package.json" ],
minify: true
+ }).catch(function(error) {
+ console.error(error);
+ process.ex... | 5 | 0.555556 | 4 | 1 |
704ad760747a94faac9048db70689f591e1aeba4 | README.md | README.md |
> The simplest example demonstrating server-side [Hot Module Replacement][hmr]
> with [Webpack][webpack] & [Express][express].
>
> 
This project originated from an internal work project that **worked flawlessly**.
Unfortunately, it's been impossible to replicate up to this point.
### Help Wan... |
> The simplest example demonstrating server-side [Hot Module Replacement][hmr]
> with [Webpack][webpack] & [Express][express].
>
> 
This project originated from an internal work project that **worked flawlessly**.
Unfortunately, it's been impossible to replicate up to this point.
### Help Wan... | Add link to open issue | Add link to open issue
| Markdown | mit | ericclemmons/webpack-hot-server-example | markdown | ## Code Before:
> The simplest example demonstrating server-side [Hot Module Replacement][hmr]
> with [Webpack][webpack] & [Express][express].
>
> 
This project originated from an internal work project that **worked flawlessly**.
Unfortunately, it's been impossible to replicate up to this point... |
> The simplest example demonstrating server-side [Hot Module Replacement][hmr]
> with [Webpack][webpack] & [Express][express].
>
> 
This project originated from an internal work project that **worked flawlessly**.
Unfortunately, it's been impossible to replicate up to this point... | 2 | 0.105263 | 2 | 0 |
0a8a2ee3712700f23114b589041fc1253b57ad7d | README.md | README.md |
The server code is currently only tested on Ubuntu 16.04 (Xenial).
To setup and start running:
* make env
* source activate
* python manage.py init_db
* python manage.py runserver
To run the website so that it will be externally visible, do this:
* python manage.py runserver --host 0.0.0.0
[Flask-User-starter-app]... |
The server code is currently only tested on Ubuntu 16.04 (Xenial).
To setup and start running:
* make env
* source activate
* python manage.py init_db
* python manage.py runserver
To run tests:
* ./runtests.sh
To run the website so that it will be externally visible, do this:
* python manage.py runserver --host 0.0... | Test PR to trigger Travis | Test PR to trigger Travis
| Markdown | bsd-2-clause | ignotus-peverell/nash,xke/nash,piyushhari/nash,ignotus-peverell/nash,piyushhari/nash,ignotus-peverell/nash,xke/nash,xke/nash,xke/nash,piyushhari/nash,piyushhari/nash,ignotus-peverell/nash | markdown | ## Code Before:
The server code is currently only tested on Ubuntu 16.04 (Xenial).
To setup and start running:
* make env
* source activate
* python manage.py init_db
* python manage.py runserver
To run the website so that it will be externally visible, do this:
* python manage.py runserver --host 0.0.0.0
[Flask-U... |
The server code is currently only tested on Ubuntu 16.04 (Xenial).
To setup and start running:
* make env
* source activate
* python manage.py init_db
* python manage.py runserver
+ To run tests:
+ * ./runtests.sh
+
To run the website so that it will be externally visible, do this:
* python ma... | 3 | 0.1875 | 3 | 0 |
b269f5e3b4f1f48b4bb0ba247a61a85ace39e4cf | app/models/cve.rb | app/models/cve.rb | class CVE < ActiveRecord::Base
has_many :references, :class_name => "CVEReference"
has_many :comments, :class_name => "CVEComment"
end
|
class CVE < ActiveRecord::Base
has_many :references, :class_name => "CVEReference"
has_many :comments, :class_name => "CVEComment"
has_and_belongs_to_many :cpes, :class_name => "CPE"
end
| Add license to CVE model | Add license to CVE model
| Ruby | agpl-3.0 | ackle/glsamaker-dev,ackle/glsamaker-dev | ruby | ## Code Before:
class CVE < ActiveRecord::Base
has_many :references, :class_name => "CVEReference"
has_many :comments, :class_name => "CVEComment"
end
## Instruction:
Add license to CVE model
## Code After:
class CVE < ActiveRecord::Base
has_many :references, :class_name => "CVEReference"
has_many :comments,... | +
class CVE < ActiveRecord::Base
has_many :references, :class_name => "CVEReference"
has_many :comments, :class_name => "CVEComment"
+ has_and_belongs_to_many :cpes, :class_name => "CPE"
end | 2 | 0.5 | 2 | 0 |
2b0bcbb7ce82171965b22cf657439d6263fa9d91 | geojson_scraper.py | geojson_scraper.py | import json
import os
import urllib.request
from retry import retry
from urllib.error import HTTPError
from common import store_history, truncate, summarise
# hack to override sqlite database filename
# see: https://help.morph.io/t/using-python-3-with-morph-scraperwiki-fork/148
os.environ['SCRAPERWIKI_DATABASE_NAME'] ... | import json
import os
import urllib.request
from retry import retry
from urllib.error import HTTPError
from common import store_history, truncate, summarise
# hack to override sqlite database filename
# see: https://help.morph.io/t/using-python-3-with-morph-scraperwiki-fork/148
os.environ['SCRAPERWIKI_DATABASE_NAME'] ... | Add key param to geojson scraper | Add key param to geojson scraper
Sometimes we encounter a geojson file with no 'id' attribute
This allows us to specify a property to use as a key instead
| Python | mit | wdiv-scrapers/dc-base-scrapers | python | ## Code Before:
import json
import os
import urllib.request
from retry import retry
from urllib.error import HTTPError
from common import store_history, truncate, summarise
# hack to override sqlite database filename
# see: https://help.morph.io/t/using-python-3-with-morph-scraperwiki-fork/148
os.environ['SCRAPERWIKI_... | import json
import os
import urllib.request
from retry import retry
from urllib.error import HTTPError
from common import store_history, truncate, summarise
# hack to override sqlite database filename
# see: https://help.morph.io/t/using-python-3-with-morph-scraperwiki-fork/148
os.environ['SCRAPERW... | 7 | 0.142857 | 5 | 2 |
68be6970dbeff96d1566e3fa1d267da1b78f1c65 | doc/upstream-training/source/website/upstream-training-summit.rst | doc/upstream-training/source/website/upstream-training-summit.rst | ==========================
OpenStack Summit Vancouver
==========================
The upcoming `OpenStack Summit
<https://www.openstack.org/summit/vancouver-2018/>`_ will be in Vancouver in
May with a full training running prior to the event.
`Etherpad for Vancouver Upstream Collaboration Training
<https://etherpad.op... | ==========================
OpenStack Summit Vancouver
==========================
The upcoming `OpenStack Summit
<https://www.openstack.org/summit/vancouver-2018/>`_ will be in Vancouver in
May with a full training running prior to the event.
`Etherpad for Vancouver Upstream Collaboration Training
<https://etherpad.op... | Add Vancouver RSVP details to the web page | [upstream] Add Vancouver RSVP details to the web page
Change-Id: Ic4a4580a5ec3d346c76ff96eb419383bba56a110
| reStructuredText | apache-2.0 | openstack/training-guides,openstack/training-guides | restructuredtext | ## Code Before:
==========================
OpenStack Summit Vancouver
==========================
The upcoming `OpenStack Summit
<https://www.openstack.org/summit/vancouver-2018/>`_ will be in Vancouver in
May with a full training running prior to the event.
`Etherpad for Vancouver Upstream Collaboration Training
<htt... | ==========================
OpenStack Summit Vancouver
==========================
The upcoming `OpenStack Summit
<https://www.openstack.org/summit/vancouver-2018/>`_ will be in Vancouver in
May with a full training running prior to the event.
`Etherpad for Vancouver Upstream Collaboration Training
... | 9 | 0.6 | 8 | 1 |
4284c016aad53d57db7a75d9f6f53c4363962f6d | _src/compare.jade | _src/compare.jade | .container
block title
h1 Budget Comparison Tool
p
|Open Budget: Grand Rapids is still awaiting 2018 budget data from the City of Grand Rapids. In 2016, the City partnered with Citizen Labs to create and promote this website to increase understanding and provide transparency in our city government. Once we have... | .container
#root
script(src="js/dist/compare.bundle.js") | Revert "add counter to page" | Revert "add counter to page"
This reverts commit 5f711397398508c3065ccbe6418d6e11d17c2c94.
| Jade | mit | citizenlabsgr/openbudgetgr,citizenlabsgr/openbudgetgr,citizenlabsgr/openbudgetgr,citizenlabsgr/openbudgetgr | jade | ## Code Before:
.container
block title
h1 Budget Comparison Tool
p
|Open Budget: Grand Rapids is still awaiting 2018 budget data from the City of Grand Rapids. In 2016, the City partnered with Citizen Labs to create and promote this website to increase understanding and provide transparency in our city governme... | .container
-
- block title
- h1 Budget Comparison Tool
-
- p
- |Open Budget: Grand Rapids is still awaiting 2018 budget data from the City of Grand Rapids. In 2016, the City partnered with Citizen Labs to create and promote this website to increase understanding and provide transparency in our city government... | 9 | 0.692308 | 0 | 9 |
5a58b7986fc9805b515bbe5b068f83be09e72181 | .travis.yml | .travis.yml | language: ruby
dist: xenial
cache:
bundler: true
bundler_args: --jobs 1 --retry 5 --without development --path vendor/bundle
rvm:
- '2.3'
- '2.4'
- '2.5'
- '2.6'
env:
- COMPILER=gcc
- COMPILER=clang
matrix:
fast_finish: true
branches:
only:
- master
notifications:
email:
on_success: n... | language: ruby
dist: xenial
cache:
bundler: true
bundler_args: --jobs 1 --retry 5 --without development --path vendor/bundle
rvm:
- '2.3'
- '2.4'
- '2.5'
- '2.6'
- '2.7'
env:
- COMPILER=gcc
- COMPILER=clang
matrix:
fast_finish: true
branches:
only:
- master
notifications:
email:
on_... | Update Travis CI to use Ruby version 2.7.0 | Update Travis CI to use Ruby version 2.7.0
Signed-off-by: Krzysztof Wilczyński <5f1c0be89013f8fde969a8dcb2fa1d522e94ee00@linux.com>
| YAML | apache-2.0 | kwilczynski/ruby-fizzbuzz,kwilczynski/ruby-fizzbuzz,kwilczynski/ruby-fizzbuzz | yaml | ## Code Before:
language: ruby
dist: xenial
cache:
bundler: true
bundler_args: --jobs 1 --retry 5 --without development --path vendor/bundle
rvm:
- '2.3'
- '2.4'
- '2.5'
- '2.6'
env:
- COMPILER=gcc
- COMPILER=clang
matrix:
fast_finish: true
branches:
only:
- master
notifications:
email:
... | language: ruby
dist: xenial
cache:
bundler: true
bundler_args: --jobs 1 --retry 5 --without development --path vendor/bundle
rvm:
- '2.3'
- '2.4'
- '2.5'
- '2.6'
+ - '2.7'
env:
- COMPILER=gcc
- COMPILER=clang
matrix:
fast_finish: true
branches:
onl... | 2 | 0.046512 | 1 | 1 |
b0512f028d40c86c34fc01def14ee3d15431d2e9 | l10n_br_sale/security/l10n_br_sale_security.xml | l10n_br_sale/security/l10n_br_sale_security.xml | <?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="0">
<record id="group_discount_per_value" model="res.groups">
<field name="name">Discount in Sales Orders per Value</field>
<field name="category_id" ref="base.module_category_hidden"/>
</record>
<record id="group_total_discount" model... | <?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="0">
<record id="group_discount_per_value" model="res.groups">
<field name="name">Discount in Sales Orders per Value</field>
<field name="category_id" ref="base.module_category_hidden"/>
</record>
<record id="group_total_discount" model... | Make the user join in the correct group for discount | [IMP] Make the user join in the correct group for discount
| XML | agpl-3.0 | OCA/l10n-brazil,akretion/l10n-brazil,akretion/l10n-brazil,OCA/l10n-brazil,OCA/l10n-brazil,akretion/l10n-brazil | xml | ## Code Before:
<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="0">
<record id="group_discount_per_value" model="res.groups">
<field name="name">Discount in Sales Orders per Value</field>
<field name="category_id" ref="base.module_category_hidden"/>
</record>
<record id="group_total... | <?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="0">
<record id="group_discount_per_value" model="res.groups">
<field name="name">Discount in Sales Orders per Value</field>
<field name="category_id" ref="base.module_category_hidden"/>
</record>
<record id="group_tot... | 4 | 0.285714 | 4 | 0 |
4d49ec34b072c0c212a03c00429d1ca67437741d | build/deploy.sh | build/deploy.sh | set -ev
if [ "${TRAVIS_PULL_REQUEST}" = "false" -a "${TRAVIS_BRANCH}" = "master" ]; then
# setup ssh key
echo -e "Host github.com\n\tStrictHostKeyChecking no\nIdentityFile ~/.ssh/deploy.key\n" >> ~/.ssh/config
echo -e "$GITHUB_DEPLOY_KEY" | base64 -d > ~/.ssh/deploy.key
chmod 600 ~/.ssh/deploy.key
... | set -ev
if [ "${TRAVIS_PULL_REQUEST}" = "false" -a "${TRAVIS_BRANCH}" = "master" ]; then
# setup ssh key
echo -e "Host github.com\n\tStrictHostKeyChecking no\nIdentityFile ~/.ssh/deploy.key\n" >> ~/.ssh/config
echo -e "$GITHUB_DEPLOY_KEY" | base64 -d > ~/.ssh/deploy.key
chmod 600 ~/.ssh/deploy.key
... | Change vivliostyle-viewer module name to vivliostyle.viewerapp | Change vivliostyle-viewer module name to vivliostyle.viewerapp
| Shell | agpl-3.0 | vivliostyle/vivliostyle.js,zopyx/vivliostyle.js,nulltask/vivliostyle.js,nulltask/vivliostyle.js,vivliostyle/vivliostyle.js,vivliostyle/vivliostyle.js,zopyx/vivliostyle.js,nulltask/vivliostyle.js,zopyx/vivliostyle.js,vivliostyle/vivliostyle.js,kuad9/vivliostyle.js_study,kuad9/vivliostyle.js_study,kuad9/vivliostyle.js_st... | shell | ## Code Before:
set -ev
if [ "${TRAVIS_PULL_REQUEST}" = "false" -a "${TRAVIS_BRANCH}" = "master" ]; then
# setup ssh key
echo -e "Host github.com\n\tStrictHostKeyChecking no\nIdentityFile ~/.ssh/deploy.key\n" >> ~/.ssh/config
echo -e "$GITHUB_DEPLOY_KEY" | base64 -d > ~/.ssh/deploy.key
chmod 600 ~/.ssh... | set -ev
if [ "${TRAVIS_PULL_REQUEST}" = "false" -a "${TRAVIS_BRANCH}" = "master" ]; then
# setup ssh key
echo -e "Host github.com\n\tStrictHostKeyChecking no\nIdentityFile ~/.ssh/deploy.key\n" >> ~/.ssh/config
echo -e "$GITHUB_DEPLOY_KEY" | base64 -d > ~/.ssh/deploy.key
chmod 600 ~/.ssh/d... | 3 | 0.130435 | 2 | 1 |
47ccce2e14786e1d692271b4dee6bfab80bad253 | modules/event-logging/src/main/java/org/motechproject/eventlogging/service/EventLogService.java | modules/event-logging/src/main/java/org/motechproject/eventlogging/service/EventLogService.java | package org.motechproject.eventlogging.service;
import org.motechproject.eventlogging.domain.EventLog;
import org.motechproject.mds.annotations.Lookup;
import org.motechproject.mds.service.MotechDataService;
import java.util.List;
/**
* Motech Data Service interface for {@link EventLog}s. The implementation is gene... | package org.motechproject.eventlogging.service;
import org.motechproject.eventlogging.domain.EventLog;
import org.motechproject.mds.annotations.Lookup;
import org.motechproject.mds.annotations.LookupField;
import org.motechproject.mds.service.MotechDataService;
import java.util.List;
/**
* Motech Data Service inter... | Support for collection fields in lookups | MOTECH-1040: Support for collection fields in lookups
This commit adds support for collection fields in lookups. For now there
will be possible to create a lookup that will find instances for which
passed value will be inside collection field.
For example assume that there is a User class with roles field that have
j... | Java | bsd-3-clause | justin-hayes/modules,ScottKimball/modules,frankhuster/modules,smalecki/modules,ngraczewski/modules,tstalka/modules,pmuchowski/modules,atish160384/modules,1stmateusz/modules,frankhuster/modules,atish160384/modules,koshalt/modules,LukSkarDev/modules,ScottKimball/modules,shubhambeehyv/modules,martokarski/modules,frankhust... | java | ## Code Before:
package org.motechproject.eventlogging.service;
import org.motechproject.eventlogging.domain.EventLog;
import org.motechproject.mds.annotations.Lookup;
import org.motechproject.mds.service.MotechDataService;
import java.util.List;
/**
* Motech Data Service interface for {@link EventLog}s. The implem... | package org.motechproject.eventlogging.service;
import org.motechproject.eventlogging.domain.EventLog;
import org.motechproject.mds.annotations.Lookup;
+ import org.motechproject.mds.annotations.LookupField;
import org.motechproject.mds.service.MotechDataService;
import java.util.List;
/**
* Mot... | 3 | 0.130435 | 2 | 1 |
1df9e5482dab15f9d86ca67692c6436c4f3672cf | appveyor.yml | appveyor.yml | version: 1.0.{build}
image: Visual Studio 2015
before_build:
- nuget restore CSharpMonad.sln
build:
project: CSharpMonad.sln
verbosity: minimal
test: off
artifacts:
- path: CSharpMonad\lib
name: DLL
type: zip
| version: 1.0.{build}
image: Visual Studio 2015
before_build:
- nuget restore CSharpMonad.sln
build:
project: CSharpMonad.sln
verbosity: minimal
configuration:
- Release
test: off
artifacts:
- path: CSharpMonad\bin\Release
name: DLL
type: zip
| Update artifact config and build in Release | Update artifact config and build in Release
| YAML | mit | dambrisco/csharp-monad | yaml | ## Code Before:
version: 1.0.{build}
image: Visual Studio 2015
before_build:
- nuget restore CSharpMonad.sln
build:
project: CSharpMonad.sln
verbosity: minimal
test: off
artifacts:
- path: CSharpMonad\lib
name: DLL
type: zip
## Instruction:
Update artifact config and build in Release
## Code After:
ve... | version: 1.0.{build}
image: Visual Studio 2015
before_build:
- nuget restore CSharpMonad.sln
build:
project: CSharpMonad.sln
verbosity: minimal
+ configuration:
+ - Release
test: off
artifacts:
- - path: CSharpMonad\lib
? ^^
+ - path: CSharpMonad\bin\Release
? ... | 4 | 0.333333 | 3 | 1 |
cd24a2051ad5e7fdf51cbf519d4bbde687a0bed4 | allure-e2e/src/test/java/ru/yandex/qatools/allure/e2e/AllureCommonPageTest.java | allure-e2e/src/test/java/ru/yandex/qatools/allure/e2e/AllureCommonPageTest.java | package ru.yandex.qatools.allure.e2e;
import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.phantomjs.PhantomJSDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
/**
* @author Ar... | package ru.yandex.qatools.allure.e2e;
import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.phantomjs.PhantomJSDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
/**
* @author Ar... | Fix allure report path in test | Fix allure report path in test
| Java | apache-2.0 | wuhuizuo/allure-core,allure-framework/allure1,allure-framework/allure-core,allure-framework/allure-core,wuhuizuo/allure-core,allure-framework/allure1,allure-framework/allure-core,allure-framework/allure-core,wuhuizuo/allure-core,allure-framework/allure1,wuhuizuo/allure-core,allure-framework/allure1 | java | ## Code Before:
package ru.yandex.qatools.allure.e2e;
import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.phantomjs.PhantomJSDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
/... | package ru.yandex.qatools.allure.e2e;
import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.phantomjs.PhantomJSDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
... | 2 | 0.086957 | 1 | 1 |
99ac2d15090c1c3c64e5fadd09735457301145ad | index.md | index.md | ---
layout: home
excerpt: "A minimal Jekyll theme for your blog by designer Michael Rose."
tags: [Jekyll, theme, responsive, blog, template]
image:
feature: sample-image-1.jpg
---
| ---
layout: home
excerpt: "Blog by James Riley on Web Development (Ruby, Javascript and friends) and Language Learning"
tags: [ruby, javascript, programming, web dev, languages, malayalam]
---
| Update of description for homepage | Update of description for homepage
| Markdown | mit | mrjamesriley/mrjamesriley.github.io,mrjamesriley/mrjamesriley.github.io,mrjamesriley/mrjamesriley.github.io | markdown | ## Code Before:
---
layout: home
excerpt: "A minimal Jekyll theme for your blog by designer Michael Rose."
tags: [Jekyll, theme, responsive, blog, template]
image:
feature: sample-image-1.jpg
---
## Instruction:
Update of description for homepage
## Code After:
---
layout: home
excerpt: "Blog by James Riley on Web ... | ---
layout: home
+ excerpt: "Blog by James Riley on Web Development (Ruby, Javascript and friends) and Language Learning"
+ tags: [ruby, javascript, programming, web dev, languages, malayalam]
- excerpt: "A minimal Jekyll theme for your blog by designer Michael Rose."
- tags: [Jekyll, theme, responsive, blog, templ... | 6 | 0.857143 | 2 | 4 |
868f494f4990918bae6920023d523504272eb08f | README.md | README.md |
FAKE targets for getting projects off the ground ASAP
### Installation
```
Install-Package FSharp.FakeTargets
```
|
FAKE targets for getting projects off the ground ASAP
### Installation
```
Install-Package FSharp.FakeTargets
```
### Usage
Your `build.fsx` file might look like the following if you are using `NuGet` as your package manager.
```fsx
#r @"packages/FAKE/tools/FakeLib.dll"
#r @"packages/FSharp.FakeTargets/tools/FSha... | Add example build.fsx to readme | Add example build.fsx to readme
| Markdown | mit | datNET/fs-fake-targets | markdown | ## Code Before:
FAKE targets for getting projects off the ground ASAP
### Installation
```
Install-Package FSharp.FakeTargets
```
## Instruction:
Add example build.fsx to readme
## Code After:
FAKE targets for getting projects off the ground ASAP
### Installation
```
Install-Package FSharp.FakeTargets
```
### ... |
FAKE targets for getting projects off the ground ASAP
### Installation
```
Install-Package FSharp.FakeTargets
```
+
+ ### Usage
+
+ Your `build.fsx` file might look like the following if you are using `NuGet` as your package manager.
+
+ ```fsx
+ #r @"packages/FAKE/tools/FakeLib.dll"
+ #r @"packag... | 43 | 5.375 | 43 | 0 |
1f08f7dba88babf865f2674fdcfba915ba23e11d | website/docs/language/functions/trim.html.md | website/docs/language/functions/trim.html.md | ---
layout: "language"
page_title: "trim - Functions - Configuration Language"
sidebar_current: "docs-funcs-string-trim"
description: |-
The trim function removes the specified characters from the start and end of
a given string.
---
# `trim` Function
`trim` removes the specified characters from the start and end... | ---
layout: "language"
page_title: "trim - Functions - Configuration Language"
sidebar_current: "docs-funcs-string-trim"
description: |-
The trim function removes the specified set of characters from the start and end of
a given string.
---
# `trim` Function
`trim` removes the specified set of characters from the... | Clarify the way the trim() function works and add some more examples | Clarify the way the trim() function works and add some more examples
| Markdown | mpl-2.0 | rnaveiras/terraform,rnaveiras/terraform,tommynsong/terraform,hashicorp/terraform,hashicorp/terraform,tommynsong/terraform,hashicorp/terraform,tommynsong/terraform,rnaveiras/terraform | markdown | ## Code Before:
---
layout: "language"
page_title: "trim - Functions - Configuration Language"
sidebar_current: "docs-funcs-string-trim"
description: |-
The trim function removes the specified characters from the start and end of
a given string.
---
# `trim` Function
`trim` removes the specified characters from t... | ---
layout: "language"
page_title: "trim - Functions - Configuration Language"
sidebar_current: "docs-funcs-string-trim"
description: |-
- The trim function removes the specified characters from the start and end of
+ The trim function removes the specified set of characters from the start and end of
? ... | 19 | 0.703704 | 16 | 3 |
67ba39eb790d8c7baaf51025dd101bcc9cf2190c | server/Queue/getQueue.js | server/Queue/getQueue.js | const db = require('sqlite')
const squel = require('squel')
async function getQueue (roomId) {
const result = []
const entities = {}
try {
const q = squel.select()
.field('queueId, mediaId, userId')
.field('media.title, media.duration, media.provider, users.name AS username, artists.name AS arti... | const db = require('sqlite')
const squel = require('squel')
async function getQueue (roomId) {
const result = []
const entities = {}
try {
const q = squel.select()
.field('queueId, mediaId, userId')
.field('media.title, media.duration, media.provider, media.providerData')
.field('users.nam... | Include providerData for queue items | Include providerData for queue items
| JavaScript | isc | bhj/karaoke-forever,bhj/karaoke-forever | javascript | ## Code Before:
const db = require('sqlite')
const squel = require('squel')
async function getQueue (roomId) {
const result = []
const entities = {}
try {
const q = squel.select()
.field('queueId, mediaId, userId')
.field('media.title, media.duration, media.provider, users.name AS username, arti... | const db = require('sqlite')
const squel = require('squel')
async function getQueue (roomId) {
const result = []
const entities = {}
try {
const q = squel.select()
.field('queueId, mediaId, userId')
- .field('media.title, media.duration, media.provider, users.name AS username... | 4 | 0.121212 | 3 | 1 |
190fa574fc1f50d96ad3c83a73722524bc7ab0db | install_intellij_idea.sh | install_intellij_idea.sh |
apt-get -y install build-essential
apt-get -y install devscripts
apt-get -y install debhelper
git clone -b "2017.2" git://github.com/stefanbirkner/intellij-idea-dpkg.git
cd intellij-idea-dpkg
./build-package -f IU -p debian -u
dpkg -i repository/debian/intellij-idea-iu-*.deb
echo "JDK_HOME=/usr/lib/jvm/java-8-oracle" ... |
apt-get -y install build-essential
apt-get -y install devscripts
apt-get -y install debhelper
git clone git://github.com/stefanbirkner/jetbrains-dpkg.git
cd jetbrains-dpkg
./build-package -p idea-iu
dpkg -i repository/debian/pool/idea-iu-*.deb
echo "JDK_HOME=/usr/lib/jvm/java-8-oracle" > /etc/default/idea
echo "M2_HOM... | Use jetbrains-dpkg for installing IntelliJ IDEA | Use jetbrains-dpkg for installing IntelliJ IDEA
According to its author this is the successor of intellij-idea-dpkg.
| Shell | mit | stefanbirkner/sfb-machine | shell | ## Code Before:
apt-get -y install build-essential
apt-get -y install devscripts
apt-get -y install debhelper
git clone -b "2017.2" git://github.com/stefanbirkner/intellij-idea-dpkg.git
cd intellij-idea-dpkg
./build-package -f IU -p debian -u
dpkg -i repository/debian/intellij-idea-iu-*.deb
echo "JDK_HOME=/usr/lib/jvm... |
apt-get -y install build-essential
apt-get -y install devscripts
apt-get -y install debhelper
- git clone -b "2017.2" git://github.com/stefanbirkner/intellij-idea-dpkg.git
? ------------ ^^^^^^^^^^^
+ git clone git://github.com/stefanbirkner/jetbrains-dpkg.git
? ... | 10 | 0.833333 | 5 | 5 |
9253cc8dfa22f23921378afeaa3b7dfb1cd6c9e4 | spec/spec_helper.rb | spec/spec_helper.rb | require 'octoshark'
# Load support files
ROOT = File.expand_path('../', File.dirname(__FILE__))
Dir["#{ROOT}/spec/support/**/*.rb"].each { |f| require f }
RSpec.configure do |config|
config.include Helpers
config.before :each do
ActiveRecord::Base.establish_connection({adapter: 'sqlite3', database: 'tmp/de... | require 'octoshark'
require 'fileutils'
ROOT = File.expand_path('../', File.dirname(__FILE__))
TMP = 'tmp'
# Load support files
Dir["#{ROOT}/spec/support/**/*.rb"].each { |f| require f }
RSpec.configure do |config|
config.include Helpers
config.before :suite do
FileUtils.mkdir_p(TMP)
end
config.befor... | Create 'tmp' folder before suite | Create 'tmp' folder before suite
| Ruby | mit | dalibor/octoshark | ruby | ## Code Before:
require 'octoshark'
# Load support files
ROOT = File.expand_path('../', File.dirname(__FILE__))
Dir["#{ROOT}/spec/support/**/*.rb"].each { |f| require f }
RSpec.configure do |config|
config.include Helpers
config.before :each do
ActiveRecord::Base.establish_connection({adapter: 'sqlite3', d... | require 'octoshark'
+ require 'fileutils'
+ ROOT = File.expand_path('../', File.dirname(__FILE__))
+ TMP = 'tmp'
# Load support files
- ROOT = File.expand_path('../', File.dirname(__FILE__))
Dir["#{ROOT}/spec/support/**/*.rb"].each { |f| require f }
RSpec.configure do |config|
config.include He... | 12 | 0.75 | 11 | 1 |
0418a4a2e2cf2dc6e156c880600491691a57c525 | setup.py | setup.py | from setuptools import setup, find_packages
import versioneer
with open('requirements.txt') as f:
requirements = f.read().splitlines()
requirements = ['setuptools'] + requirements
setup(
name='pyxrf',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
author='Brookhaven Nation... | from setuptools import setup, find_packages
import versioneer
with open('requirements.txt') as f:
requirements = f.read().splitlines()
requirements = ['setuptools'] + requirements
setup(
name='pyxrf',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
author='Brookhaven Nation... | Include YAML data file in the package | Include YAML data file in the package
| Python | bsd-3-clause | NSLS-II-HXN/PyXRF,NSLS-II-HXN/PyXRF,NSLS-II/PyXRF | python | ## Code Before:
from setuptools import setup, find_packages
import versioneer
with open('requirements.txt') as f:
requirements = f.read().splitlines()
requirements = ['setuptools'] + requirements
setup(
name='pyxrf',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
author='B... | from setuptools import setup, find_packages
import versioneer
with open('requirements.txt') as f:
requirements = f.read().splitlines()
requirements = ['setuptools'] + requirements
setup(
name='pyxrf',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
... | 2 | 0.068966 | 1 | 1 |
876de49a9c5d6e2d75714a606238e9041ed49baf | sample/views/booking_day.html | sample/views/booking_day.html | <table class="table">
<thead>
<tr>
<th>Id</th>
<th>Room</th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="reservation in between(reservationDate)">
<td>{{reservation.reservationId}}</td>
<td><a ui-sref="room.detail({roomId: reservati... | <table class="table">
<thead>
<tr>
<th>Id</th>
<th>Room</th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="reservation in between(reservationDate)">
<td>{{reservation.reservationId}}</td>
<td><a ui-sref="room.detail({roomId: reservati... | Send correct url params for the room link in booking view | fix(sample): Send correct url params for the room link in booking view
| HTML | mit | thebigredgeek/angular-breadcrumb,cuiliang/angular-breadcrumb,allwebsites/angular-breadcrumb,allwebsites/angular-breadcrumb,ansgarkroger/angular-breadcrumb,ansgarkroger/angular-breadcrumb,ncuillery/angular-breadcrumb,cuiliang/angular-breadcrumb,zpzgone/angular-breadcrumb,zpzgone/angular-breadcrumb,kazinov/angular-breadc... | html | ## Code Before:
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Room</th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="reservation in between(reservationDate)">
<td>{{reservation.reservationId}}</td>
<td><a ui-sref="room.detail({r... | <table class="table">
<thead>
<tr>
<th>Id</th>
<th>Room</th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="reservation in between(reservationDate)">
<td>{{reservation.reservationId}}</td>
- <td><a ui-sref="room.d... | 2 | 0.125 | 1 | 1 |
578747fcae7cd1037d87584b84b68a6b5c0bdd79 | PageCode/_Common.php | PageCode/_Common.php | <?php class _Common_PageCode extends PageCode {
public function go($api, $dom, $template, $tool) {
$main = $dom["body > main"];
if($main->hasAttribute("data-title")) {
$dom["body > header > h1"]->textContent =
$main->getAttribute("data-title");
}
if(PATH === "MainMenu") {
$dom["body > header > nav"]->remov... | <?php class _Common_PageCode extends PageCode {
public function go($api, $dom, $template, $tool) {
$main = $dom["body > main"];
if($main->hasAttribute("data-title")) {
$dom["body > header > h1"]->textContent =
$main->getAttribute("data-title");
}
if(PATH === "MainMenu") {
$dom["body > header > nav"]->remov... | Remove pjax from index page | Remove pjax from index page
| PHP | mit | g105b/sass-app,g105b/sass-app | php | ## Code Before:
<?php class _Common_PageCode extends PageCode {
public function go($api, $dom, $template, $tool) {
$main = $dom["body > main"];
if($main->hasAttribute("data-title")) {
$dom["body > header > h1"]->textContent =
$main->getAttribute("data-title");
}
if(PATH === "MainMenu") {
$dom["body > heade... | <?php class _Common_PageCode extends PageCode {
public function go($api, $dom, $template, $tool) {
$main = $dom["body > main"];
if($main->hasAttribute("data-title")) {
$dom["body > header > h1"]->textContent =
$main->getAttribute("data-title");
}
if(PATH === "MainMenu") {
$dom["body > h... | 1 | 0.058824 | 1 | 0 |
0aad3d2fc9217afa6d0416d1b0e7f3948cd3f145 | appveyor.yml | appveyor.yml | version: 0.7.1-{build}
configuration:
- Release
- Win7 Release
- Win8 Release
- Win 8.1 Release
platform:
- Win32
- x64
os: Windows Server 2012 R2
build:
project: dokan.sln
verbosity: minimal | version: 0.7.1-{build}
configuration:
- Release
- Win7 Release
- Win8 Release
- Win 8.1 Release
platform:
- Win32
- x64
os: Windows Server 2012 R2
build:
project: dokan.sln
verbosity: minimal
notifications:
- provider: Email
to:
- reports@islog.com
on_build_success: false
on_build_failure: false
on_build_... | Add email notifications to AppVeyor build | Add email notifications to AppVeyor build
| YAML | mit | superhq/dokany,telum/dokany,DaveWeath/dokany,telum/dokany,superhq/dokany,DaveWeath/dokany | yaml | ## Code Before:
version: 0.7.1-{build}
configuration:
- Release
- Win7 Release
- Win8 Release
- Win 8.1 Release
platform:
- Win32
- x64
os: Windows Server 2012 R2
build:
project: dokan.sln
verbosity: minimal
## Instruction:
Add email notifications to AppVeyor build
## Code After:
version: 0.7.1-{build}
configurati... | version: 0.7.1-{build}
configuration:
- Release
- Win7 Release
- Win8 Release
- Win 8.1 Release
platform:
- Win32
- x64
os: Windows Server 2012 R2
build:
project: dokan.sln
verbosity: minimal
+ notifications:
+ - provider: Email
+ to:
+ - reports@islog.com
+ on_build_success: false
+... | 7 | 0.538462 | 7 | 0 |
5f40096f509a3051c788a8a1b3d5c6a3049070fc | app/importers/rows/student_section_grade_row.rb | app/importers/rows/student_section_grade_row.rb | class StudentSectionGradeRow < Struct.new(:row, :school_ids_dictionary)
# Represents a row in a CSV export from Somerville's Aspen X2 student information system.
# This structure represents student section grades.
#
# Expects the following headers:
#
# :section_number, :student_local_id, :school_local_id,... | class StudentSectionGradeRow < Struct.new(:row, :school_ids_dictionary)
# Represents a row in a CSV export from Somerville's Aspen X2 student information system.
# This structure represents student section grades.
#
# Expects the following headers:
#
# :section_number, :student_local_id, :school_local_id,... | Add check for grade being an integer | Add check for grade being an integer
| Ruby | mit | studentinsights/studentinsights,studentinsights/studentinsights,studentinsights/studentinsights,studentinsights/studentinsights | ruby | ## Code Before:
class StudentSectionGradeRow < Struct.new(:row, :school_ids_dictionary)
# Represents a row in a CSV export from Somerville's Aspen X2 student information system.
# This structure represents student section grades.
#
# Expects the following headers:
#
# :section_number, :student_local_id, :... | class StudentSectionGradeRow < Struct.new(:row, :school_ids_dictionary)
# Represents a row in a CSV export from Somerville's Aspen X2 student information system.
# This structure represents student section grades.
#
# Expects the following headers:
#
# :section_number, :student_local_id, :sc... | 5 | 0.142857 | 4 | 1 |
ef86ea4a78c6a617c9872762e86198cad7d0a50e | setup.py | setup.py |
from setuptools import setup
# lets prepare our initial setup
setup_dict = {'name': 'PYSCSI',
'version': '1.0',
'license': 'LGPLv2.1',
'author': 'Ronnie Sahlberg',
'author_email': 'ronniesahlberg@gmail.com',
'description': 'Module for calling SCSI ... |
from setuptools import find_packages, setup
# lets prepare our initial setup
setup_dict = {'name': 'PYSCSI',
'version': '1.0',
'license': 'LGPLv2.1',
'author': 'Ronnie Sahlberg',
'author_email': 'ronniesahlberg@gmail.com',
'description': 'Module fo... | Use find_packages instead of listing them manually. | Use find_packages instead of listing them manually.
| Python | lgpl-2.1 | rosjat/python-scsi | python | ## Code Before:
from setuptools import setup
# lets prepare our initial setup
setup_dict = {'name': 'PYSCSI',
'version': '1.0',
'license': 'LGPLv2.1',
'author': 'Ronnie Sahlberg',
'author_email': 'ronniesahlberg@gmail.com',
'description': 'Module f... |
- from setuptools import setup
+ from setuptools import find_packages, setup
? +++++++++++++++
# lets prepare our initial setup
setup_dict = {'name': 'PYSCSI',
'version': '1.0',
'license': 'LGPLv2.1',
'author': 'Ronnie Sahlberg',
... | 4 | 0.222222 | 2 | 2 |
668b6b2560d2ca7110b22087316f820d31524ff9 | whelktool/scripts/cleanups/2019/02/move-holding-Jox-to-Jo/move-jox-holdings.groovy | whelktool/scripts/cleanups/2019/02/move-holding-Jox-to-Jo/move-jox-holdings.groovy | /*
* This moves all holdings for Jox to Jo.
*
* See LXL-2248 for more info.
*
*/
String CURRENT_SIGEL = 'https://libris.kb.se/library/Jox'
String NEW_SIGEL = 'https://libris.kb.se/library/Jo'
PrintWriter scheduledForMove = getReportWriter("scheduled-for-move")
PrintWriter notMoved = getReportWriter("refused-to-mo... | /*
* This moves all holdings for Jox to Jo.
*
* See LXL-2248 for more info.
*
*/
String CURRENT_SIGEL = 'https://libris.kb.se/library/Jox'
String NEW_SIGEL = 'https://libris.kb.se/library/Jo'
PrintWriter scheduledForMove = getReportWriter("scheduled-for-move")
PrintWriter notMoved = getReportWriter("refused-to-mo... | Make Jox->Jo holding move loud | Make Jox->Jo holding move loud
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | groovy | ## Code Before:
/*
* This moves all holdings for Jox to Jo.
*
* See LXL-2248 for more info.
*
*/
String CURRENT_SIGEL = 'https://libris.kb.se/library/Jox'
String NEW_SIGEL = 'https://libris.kb.se/library/Jo'
PrintWriter scheduledForMove = getReportWriter("scheduled-for-move")
PrintWriter notMoved = getReportWrite... | /*
* This moves all holdings for Jox to Jo.
*
* See LXL-2248 for more info.
*
*/
String CURRENT_SIGEL = 'https://libris.kb.se/library/Jox'
String NEW_SIGEL = 'https://libris.kb.se/library/Jo'
PrintWriter scheduledForMove = getReportWriter("scheduled-for-move")
PrintWriter notMoved = getRepor... | 2 | 0.057143 | 1 | 1 |
458979b58df7852cc8a99475e535e4c8d13ee1fa | composer.json | composer.json | {
"name": "mk-j/php_xlsxwriter",
"description": "PHP Library to write XLSX files",
"keywords": ["php", "library","xls", "xlsx", "excel"],
"type": "project",
"homepage": "https://github.com/mk-j/PHP_XLSXWriter",
"license": "MIT",
"autoload": {
"classmap": ["xlsxwriter.class.php"]
... | {
"name": "mk-j/php_xlsxwriter",
"description": "PHP Library to write XLSX files",
"keywords": ["php", "library","xls", "xlsx", "excel"],
"type": "project",
"homepage": "https://github.com/mk-j/PHP_XLSXWriter",
"license": "MIT",
"autoload": {
"classmap": ["xlsxwriter.class.php"]
... | Add require min version PHP 5.2 and compatibility Composer for PHP 5.2 | Add require min version PHP 5.2 and compatibility Composer for PHP 5.2
Add require min version PHP 5.2 and compatibility Composer for PHP 5.2 | JSON | mit | mk-j/PHP_XLSXWriter,mk-j/PHP_XLSXWriter | json | ## Code Before:
{
"name": "mk-j/php_xlsxwriter",
"description": "PHP Library to write XLSX files",
"keywords": ["php", "library","xls", "xlsx", "excel"],
"type": "project",
"homepage": "https://github.com/mk-j/PHP_XLSXWriter",
"license": "MIT",
"autoload": {
"classmap": ["xlsxwriter... | {
"name": "mk-j/php_xlsxwriter",
"description": "PHP Library to write XLSX files",
"keywords": ["php", "library","xls", "xlsx", "excel"],
"type": "project",
"homepage": "https://github.com/mk-j/PHP_XLSXWriter",
"license": "MIT",
"autoload": {
"classmap": ["xlsxwr... | 15 | 1 | 15 | 0 |
f0e4b1734446a26c44e5431f523e58337767b9a2 | lib/primix/analyzer/tokenizer.rb | lib/primix/analyzer/tokenizer.rb | module Primix
module Analyzer
class Tokenizer
attr_reader :content
def initialize(content)
@content = content
end
def tokenize!
chars = @content.split ""
tokens = []
current_token = ""
chars.each_with_index do |char, index|
case char
... | module Primix
module Analyzer
class Tokenizer
attr_reader :content
def initialize(content)
@content = content
end
def tokenize!
filter_tokens(split_contents)
end
def split_contents
chars = @content.split ""
tokens = []
current_token =... | Split tokenize method into two methods | Split tokenize method into two methods
| Ruby | apache-2.0 | Primix/Primix,Primix/Primix | ruby | ## Code Before:
module Primix
module Analyzer
class Tokenizer
attr_reader :content
def initialize(content)
@content = content
end
def tokenize!
chars = @content.split ""
tokens = []
current_token = ""
chars.each_with_index do |char, index|
... | module Primix
module Analyzer
class Tokenizer
attr_reader :content
def initialize(content)
@content = content
end
def tokenize!
+ filter_tokens(split_contents)
+ end
+
+ def split_contents
chars = @content.split ""
t... | 8 | 0.2 | 8 | 0 |
b64e7a6e3796150b8270382e8d85c9b131743745 | static/web.html | static/web.html | <!doctype html>
<html lang="en">
<head>
<title>Scribble</title>
<meta charset="utf-8"/>
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Code+Pro:400,700"/>
<link rel="stylesheet" href="web.css"/>
<script src="//cdn.jsdelivr.net/ace/1.1.6/min/ace.js" char... | <!doctype html>
<html lang="en">
<head>
<title>Scribble</title>
<meta charset="utf-8"/>
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Code+Pro:400,700"/>
<link rel="stylesheet" href="web.css"/>
<script src="//cdn.jsdelivr.net/ace/1.1.6/min/ace.js" char... | Improve the layout of the controls. | Improve the layout of the controls.
| HTML | mit | drlagos/unify-playpen,cogumbreiro/scribble-playpen,cogumbreiro/scribble-playpen,cogumbreiro/scribble-playpen,cogumbreiro/sepi-playpen,drlagos/unify-playpen,drlagos/mpisessions-playpen,drlagos/mpisessions-playpen,cogumbreiro/sepi-playpen | html | ## Code Before:
<!doctype html>
<html lang="en">
<head>
<title>Scribble</title>
<meta charset="utf-8"/>
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Code+Pro:400,700"/>
<link rel="stylesheet" href="web.css"/>
<script src="//cdn.jsdelivr.net/ace/1.1.6/... | <!doctype html>
<html lang="en">
<head>
<title>Scribble</title>
<meta charset="utf-8"/>
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Code+Pro:400,700"/>
<link rel="stylesheet" href="web.css"/>
<script src="//cdn.jsdelivr.net/ace/1.1.6/... | 2 | 0.076923 | 1 | 1 |
b08cd10a832dd23ac0dfa549c27622da3596f016 | README.md | README.md | Cilex, a simple Command Line Interface framework
================================================
Cilex is a simple command line application framework to develop simple tools
based on [Symfony2][1] components:
```php
<?php
require_once __DIR__.'/cilex.phar';
$app = new \Cilex\Application('Cilex');
$app->command(new ... | Cilex, a simple Command Line Interface framework
================================================
Cilex is a simple command line application framework to develop simple tools
based on [Symfony2][1] components:
```php
<?php
require_once __DIR__.'/cilex.phar';
$app = new \Cilex\Application('Cilex');
$app->command(new ... | Add an FAQ secton starting with configuration for your application | Add an FAQ secton starting with configuration for your application
| Markdown | mit | Seldaek/Cilex,Sgoettschkes/Cilex,Cilex/Cilex | markdown | ## Code Before:
Cilex, a simple Command Line Interface framework
================================================
Cilex is a simple command line application framework to develop simple tools
based on [Symfony2][1] components:
```php
<?php
require_once __DIR__.'/cilex.phar';
$app = new \Cilex\Application('Cilex');
$a... | Cilex, a simple Command Line Interface framework
================================================
Cilex is a simple command line application framework to develop simple tools
based on [Symfony2][1] components:
```php
<?php
require_once __DIR__.'/cilex.phar';
$app = new \Cilex\Application('Cilex... | 12 | 0.324324 | 12 | 0 |
226de463c35cc6a4a928e7711deeec8a5f0e3616 | client/app/views/sessionView.js | client/app/views/sessionView.js | define(['jquery', 'controllers/analystController', 'Ladda'], function ($, analystController, Ladda) {
function sessionView() {
$(function () {
$('#generate').on('click', function (e) {
e.preventDefault();
var la = Ladda.create(document.getElementById('generate'));
la.start();
... | define(['jquery', 'controllers/analystController', 'Ladda'], function ($, analystController, Ladda) {
function sessionView() {
$(function () {
$('#generate').on('click', function (e) {
e.preventDefault();
var la = Ladda.create(document.getElementById('generate'));
la.start();
... | Fix in creating session error message | Fix in creating session error message
| JavaScript | mit | multiparty/web-mpc,multiparty/web-mpc,multiparty/web-mpc | javascript | ## Code Before:
define(['jquery', 'controllers/analystController', 'Ladda'], function ($, analystController, Ladda) {
function sessionView() {
$(function () {
$('#generate').on('click', function (e) {
e.preventDefault();
var la = Ladda.create(document.getElementById('generate'));
... | define(['jquery', 'controllers/analystController', 'Ladda'], function ($, analystController, Ladda) {
function sessionView() {
$(function () {
$('#generate').on('click', function (e) {
e.preventDefault();
var la = Ladda.create(document.getElementById('generate'));
... | 8 | 0.347826 | 6 | 2 |
75225516f9f7aed2f0e38794b3316747efc5b557 | src/test/kotlin/RemoteToLocalFileTranslatorTest.kt | src/test/kotlin/RemoteToLocalFileTranslatorTest.kt | import com.elpassion.intelijidea.configuration.RemoteToLocalFileTranslator
import com.intellij.testFramework.fixtures.LightPlatformCodeInsightFixtureTestCase
import org.junit.Assert
class RemoteToLocalFileTranslatorTest : LightPlatformCodeInsightFixtureTestCase() {
fun testShouldTranslateRemoteFileNameToLocal() {... | import com.elpassion.intelijidea.configuration.RemoteToLocalFileTranslator
import com.intellij.openapi.project.Project
import com.nhaarman.mockito_kotlin.doReturn
import com.nhaarman.mockito_kotlin.mock
import org.junit.Assert.assertEquals
import org.junit.Test
class RemoteToLocalFileTranslatorTest {
private val ... | Rewrite test to pure junit | Rewrite test to pure junit
| Kotlin | apache-2.0 | elpassion/mainframer-intellij-plugin,elpassion/mainframer-intellij-plugin,elpassion/mainframer-intellij-plugin | kotlin | ## Code Before:
import com.elpassion.intelijidea.configuration.RemoteToLocalFileTranslator
import com.intellij.testFramework.fixtures.LightPlatformCodeInsightFixtureTestCase
import org.junit.Assert
class RemoteToLocalFileTranslatorTest : LightPlatformCodeInsightFixtureTestCase() {
fun testShouldTranslateRemoteFil... | import com.elpassion.intelijidea.configuration.RemoteToLocalFileTranslator
- import com.intellij.testFramework.fixtures.LightPlatformCodeInsightFixtureTestCase
+ import com.intellij.openapi.project.Project
+ import com.nhaarman.mockito_kotlin.doReturn
+ import com.nhaarman.mockito_kotlin.mock
+ import org.junit.Asser... | 32 | 1.777778 | 23 | 9 |
7de3cc8ce201f8b1abfd9abffd79756e09a762ef | app/models/order_detail.rb | app/models/order_detail.rb | class OrderDetail < ActiveRecord::Base
belongs_to :order
belongs_to :item
after_commit :update_item
def update_item
# Whenever an OrderDetail is created/modified we want to update that item's
# requested_quantity value.
item.requested_quantity = item.pending_requested_quantity
item.save
end
... | class OrderDetail < ActiveRecord::Base
belongs_to :order
belongs_to :item
after_commit :update_item
def update_item
# Whenever an OrderDetail is created/modified we want to update that item's
# requested_quantity value.
item.requested_quantity = item.pending_requested_quantity
item.save
end
... | Add value method to order details | Add value method to order details
| Ruby | mit | icodeclean/StockAid,icodeclean/StockAid,on-site/StockAid,icodeclean/StockAid,on-site/StockAid,on-site/StockAid | ruby | ## Code Before:
class OrderDetail < ActiveRecord::Base
belongs_to :order
belongs_to :item
after_commit :update_item
def update_item
# Whenever an OrderDetail is created/modified we want to update that item's
# requested_quantity value.
item.requested_quantity = item.pending_requested_quantity
... | class OrderDetail < ActiveRecord::Base
belongs_to :order
belongs_to :item
after_commit :update_item
def update_item
# Whenever an OrderDetail is created/modified we want to update that item's
# requested_quantity value.
item.requested_quantity = item.pending_requested_quantity
... | 4 | 0.181818 | 4 | 0 |
6e9bef4fef9f766ff1a46956497466b9f37b9c3b | masl/parser/lib/README.md | masl/parser/lib/README.md | antlr library jar file
======================
To build this parser, antlr-3.5.2-complete.jar (or newer) must be present
in this folder. Download from the antlr3.org.
| antlr library jar file
======================
To build this parser, antlr-3.5.2-complete.jar (or newer) must be present
in this folder. [Download from the antlr3.org](http://www.antlr3.org/download/antlr-3.5.2-complete.jar).
On linux machines you can open a terminal, "cd" to this ```lib``` folder, then run
```
wget ... | Add instructions for downloading the jar file | Add instructions for downloading the jar file | Markdown | apache-2.0 | cortlandstarrett/mc,leviathan747/mc,rmulvey/mc,leviathan747/mc,lwriemen/mc,xtuml/mc,lwriemen/mc,cortlandstarrett/mc,lwriemen/mc,xtuml/mc,keithbrown/mc,keithbrown/mc,cortlandstarrett/mc,cortlandstarrett/mc,keithbrown/mc,leviathan747/mc,keithbrown/mc,keithbrown/mc,cortlandstarrett/mc,rmulvey/mc,leviathan747/mc,lwriemen/m... | markdown | ## Code Before:
antlr library jar file
======================
To build this parser, antlr-3.5.2-complete.jar (or newer) must be present
in this folder. Download from the antlr3.org.
## Instruction:
Add instructions for downloading the jar file
## Code After:
antlr library jar file
======================
To build th... | antlr library jar file
======================
To build this parser, antlr-3.5.2-complete.jar (or newer) must be present
- in this folder. Download from the antlr3.org.
+ in this folder. [Download from the antlr3.org](http://www.antlr3.org/download/antlr-3.5.2-complete.jar).
+
+ On linux machines you can ope... | 8 | 1.6 | 7 | 1 |
8083b3c1fa979a64ef0e6722a9bb5674c7ed07d1 | index.html | index.html | <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Tic Tac Toe</title>
<script src="https://code.createjs.com/createjs-2015.05.21.min.js"></script>
<script>
function init() {
var stage = new createjs.Stage("demoCanvas");
var circle = new createjs.Shape();
... | <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Tic Tac Toe</title>
<script src="https://code.createjs.com/createjs-2015.05.21.min.js"></script>
<script>
function init() {
var stage = new createjs.Stage("demoCanvas");
var circle = new createjs.Shape();
... | Change color of circle to Purple and add animation | Change color of circle to Purple and add animation
| HTML | mit | picolll/tic-tac-toe | html | ## Code Before:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Tic Tac Toe</title>
<script src="https://code.createjs.com/createjs-2015.05.21.min.js"></script>
<script>
function init() {
var stage = new createjs.Stage("demoCanvas");
var circle = new createjs.... | <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Tic Tac Toe</title>
<script src="https://code.createjs.com/createjs-2015.05.21.min.js"></script>
<script>
function init() {
var stage = new createjs.Stage("demoCanvas");
var circle = new creat... | 18 | 0.818182 | 16 | 2 |
c562346192bbf0790338adf94f9590a2396c5d41 | src/bin/table_test.rs | src/bin/table_test.rs | extern crate uosql;
use uosql::storage::*;
fn main() {
//let db = Database::create("storage_team").unwrap();
let db = Database::load("storage_team").unwrap();
let mut cols = Vec::new();
cols.push(Column { name: "Heiner".into(), data_type: DataType::Integer });
cols.push(Column { name: "Mathias".... | extern crate uosql;
use uosql::storage::*;
fn main() {
//let db = Database::create("storage_team").unwrap();
let db = Database::load("storage_team").unwrap();
let mut cols = Vec::new();
cols.push(Column { name: "Heiner".into(), data_type: DataType::Integer });
cols.push(Column { name: "Mathias".... | Remove line with unimplemented function | Remove line with unimplemented function
| Rust | mit | tempbottle/uosql-server,tempbottle/uosql-server,OsnaCS/uosql-server,tempbottle/uosql-server,OsnaCS/uosql-server,OsnaCS/uosql-server | rust | ## Code Before:
extern crate uosql;
use uosql::storage::*;
fn main() {
//let db = Database::create("storage_team").unwrap();
let db = Database::load("storage_team").unwrap();
let mut cols = Vec::new();
cols.push(Column { name: "Heiner".into(), data_type: DataType::Integer });
cols.push(Column { ... | extern crate uosql;
use uosql::storage::*;
fn main() {
//let db = Database::create("storage_team").unwrap();
let db = Database::load("storage_team").unwrap();
let mut cols = Vec::new();
cols.push(Column { name: "Heiner".into(), data_type: DataType::Integer });
cols.push(C... | 1 | 0.041667 | 0 | 1 |
5d4e70e15f6b6407071a93ed46a7da66381dacb4 | content/nav_main.php | content/nav_main.php | <nav class="main">
<ul>
<li><a href="<?=$relRoot;?>">Home</a></li>
<li><a href="<?=$relRoot;?>?p=resume">Resume</a></li>
<li><a href="<?=$relRoot;?>?p=projects">Projects</a></li>
<li><a href="https://twitter.com/StrangePan" class="external">@StrangePan<i class="fa fa-external-link" aria-hidden="true"></i></a><... | <nav class="main">
<ul>
<li><a href="<?=$relRoot;?>">Home</a></li>
<li><a href="<?=$relRoot;?>?p=resume">Resume</a></li>
<li><a href="<?=$relRoot;?>?p=projects">Projects</a></li>
<li><a href="https://twitter.com/StrangePan" class="external">Twitter<i class="fa fa-external-link" aria-hidden="true"></i></a></li>... | Rename '@StrangePan' in header to 'Twitter'. Simplifies header menu. | Rename '@StrangePan' in header to 'Twitter'. Simplifies header menu.
| PHP | mit | StrangePan/Website,StrangePan/Website,StrangePan/Website | php | ## Code Before:
<nav class="main">
<ul>
<li><a href="<?=$relRoot;?>">Home</a></li>
<li><a href="<?=$relRoot;?>?p=resume">Resume</a></li>
<li><a href="<?=$relRoot;?>?p=projects">Projects</a></li>
<li><a href="https://twitter.com/StrangePan" class="external">@StrangePan<i class="fa fa-external-link" aria-hidden=... | <nav class="main">
<ul>
<li><a href="<?=$relRoot;?>">Home</a></li>
<li><a href="<?=$relRoot;?>?p=resume">Resume</a></li>
<li><a href="<?=$relRoot;?>?p=projects">Projects</a></li>
- <li><a href="https://twitter.com/StrangePan" class="external">@StrangePan<i class="fa fa-external-link" aria-hidden="tru... | 2 | 0.25 | 1 | 1 |
35b10a3e19d6d67c88d156091a4c17a4b0a1ec46 | src/CMakeLists.txt | src/CMakeLists.txt | add_library (leplib
ConfigFile.cpp
CsvFile.cpp
HttpClient.cpp
JsonArray.cpp
JsonBool.cpp
JsonNull.cpp
JsonNumber.cpp
JsonObject.cpp
JsonString.cpp
JsonValue.cpp
Logger.cpp
... | add_library (leplib
CgiHelper.cpp
ConfigFile.cpp
CsvFile.cpp
HttpClient.cpp
JsonArray.cpp
JsonBool.cpp
JsonNull.cpp
JsonNumber.cpp
JsonObject.cpp
JsonString.cpp
JsonValue.cpp
... | Update cmake to include new CGI helper class. | Update cmake to include new CGI helper class.
| Text | mit | praveenster/leplib,praveenster/leplib | text | ## Code Before:
add_library (leplib
ConfigFile.cpp
CsvFile.cpp
HttpClient.cpp
JsonArray.cpp
JsonBool.cpp
JsonNull.cpp
JsonNumber.cpp
JsonObject.cpp
JsonString.cpp
JsonValue.cpp
... | add_library (leplib
+ CgiHelper.cpp
ConfigFile.cpp
CsvFile.cpp
HttpClient.cpp
JsonArray.cpp
JsonBool.cpp
JsonNull.cpp
JsonNumber.cpp
JsonObject.cpp
JsonString.cpp
... | 1 | 0.034483 | 1 | 0 |
5cbb66115a6a6ca91330176f0cba8f865098d8e3 | packages/matchbox-panel/matchbox-panel_0.9.2.bb | packages/matchbox-panel/matchbox-panel_0.9.2.bb | include matchbox-panel.inc
PR="r5"
SRC_URI = "http://projects.o-hand.com/matchbox/sources/${PN}/0.9/${PN}-${PV}.tar.gz \
file://add_hostap.patch;patch=1 \
file://kernel2.6.patch;patch=1"
| include matchbox-panel.inc
PR="r6"
SRC_URI = "http://projects.o-hand.com/matchbox/sources/${PN}/0.9/${PN}-${PV}.tar.gz \
file://add_hostap.patch;patch=1 \
http://handhelds.org/~pb/mb-panel-0.9.2-polling.patch;patch=1 \
http://handhelds.org/~pb/mb-panel-0.9.2-msgcancel.patch;patch=1 \
... | Include patches to fix polling and cancellation of panel messages. | matchbox-panel: Include patches to fix polling and cancellation of panel messages.
| BitBake | mit | dave-billin/overo-ui-moos-auv,buglabs/oe-buglabs,dellysunnymtech/sakoman-oe,YtvwlD/od-oe,mrchapp/arago-oe-dev,nlebedenco/mini2440,popazerty/openembedded-cuberevo,John-NY/overo-oe,dellysunnymtech/sakoman-oe,popazerty/openembedded-cuberevo,bticino/openembedded,sutajiokousagi/openembedded,demsey/openembedded,buglabs/oe-bu... | bitbake | ## Code Before:
include matchbox-panel.inc
PR="r5"
SRC_URI = "http://projects.o-hand.com/matchbox/sources/${PN}/0.9/${PN}-${PV}.tar.gz \
file://add_hostap.patch;patch=1 \
file://kernel2.6.patch;patch=1"
## Instruction:
matchbox-panel: Include patches to fix polling and cancellation of panel me... | include matchbox-panel.inc
- PR="r5"
? ^
+ PR="r6"
? ^
SRC_URI = "http://projects.o-hand.com/matchbox/sources/${PN}/0.9/${PN}-${PV}.tar.gz \
file://add_hostap.patch;patch=1 \
+ http://handhelds.org/~pb/mb-panel-0.9.2-polling.patch;patch=1 \
+ http://handhelds.org/~p... | 4 | 0.5 | 3 | 1 |
42d206a5364616aa6b32f4cc217fcc57fa223d2a | src/components/markdown-render/inlineCode.js | src/components/markdown-render/inlineCode.js | import React from 'react';
import Highlight, { defaultProps } from 'prism-react-renderer';
import darkTheme from 'prism-react-renderer/themes/duotoneDark';
const InlineCode = ({ children, className, additionalPreClasses, theme }) => {
className = className ? '' : className;
const language = className.replace(/lang... | import React from 'react';
import Highlight, { defaultProps } from 'prism-react-renderer';
import darkTheme from 'prism-react-renderer/themes/duotoneDark';
const InlineCode = ({ children, className, additionalPreClasses, theme }) => {
className = className ? className : '';
const language = className.replace(/lang... | Fix code snippet codetype so it passes in correctly | Fix code snippet codetype so it passes in correctly
| JavaScript | mit | sparkdesignsystem/spark-design-system,sparkdesignsystem/spark-design-system,sparkdesignsystem/spark-design-system,sparkdesignsystem/spark-design-system | javascript | ## Code Before:
import React from 'react';
import Highlight, { defaultProps } from 'prism-react-renderer';
import darkTheme from 'prism-react-renderer/themes/duotoneDark';
const InlineCode = ({ children, className, additionalPreClasses, theme }) => {
className = className ? '' : className;
const language = classNa... | import React from 'react';
import Highlight, { defaultProps } from 'prism-react-renderer';
import darkTheme from 'prism-react-renderer/themes/duotoneDark';
const InlineCode = ({ children, className, additionalPreClasses, theme }) => {
- className = className ? '' : className;
? --... | 2 | 0.060606 | 1 | 1 |
acf3f1d7836cacf0238c758508d7371ca9e4fb64 | test/ventilation_test.rb | test/ventilation_test.rb | require 'test_helper'
require 'ventilation/deep_stack'
class TestVentilation < Test::Unit::TestCase
context "a test consumer"do
setup do
FakeWeb.allow_net_connect = false
@consumer = TestConsumer.new
end
should "render external resource" do
expected = "response_from_example.com"
... | require 'test_helper'
require 'ventilation/deep_stack'
class TestVentilation < Test::Unit::TestCase
context "a test consumer"do
setup do
FakeWeb.allow_net_connect = false
@consumer = TestConsumer.new
end
should "render external resource" do
expected = "response_from_example.com"
... | Add test to ensure port numbers are supported in external resources. | Add test to ensure port numbers are supported in external resources.
| Ruby | mit | agoragames/ventilation | ruby | ## Code Before:
require 'test_helper'
require 'ventilation/deep_stack'
class TestVentilation < Test::Unit::TestCase
context "a test consumer"do
setup do
FakeWeb.allow_net_connect = false
@consumer = TestConsumer.new
end
should "render external resource" do
expected = "response_from_ex... | require 'test_helper'
require 'ventilation/deep_stack'
class TestVentilation < Test::Unit::TestCase
context "a test consumer"do
setup do
FakeWeb.allow_net_connect = false
@consumer = TestConsumer.new
end
should "render external resource" do
expected = "respon... | 11 | 0.255814 | 7 | 4 |
f26bd7920ebdcf7397d10a360091bf630e0969b5 | README.md | README.md | This is the repo for the reapp CLI. The CLI is used mainly for getting started
on projects and is really lightweight.
If you're looking for information on reapp, visit [reapp.io](http://reapp.io), or
view the code in [one of our repositories](https://github.com/reapp).
### Usage
### Todo
- adding platforms and buil... | *reapp is just launching in alpha. These docs are far from complete and subject to change!*
### Installation
Installation is done through npm, though you can pick and choose any pieces you'd like
and roll your own stack. To get the reapp CLI:
```
npm install -g reapp
```
Once that's done you can generate a new base... | Move getting started docs here | Move getting started docs here
| Markdown | mit | mzbac/reapp,jhopper28/reapp,beni55/reapp,loki315zx/reapp,cgvarela/reapp,dieface/reapp,hmmmmike/reapp,halilertekin/reapp,timuric/reapp,reapp/reapp,pandoraui/reapp,DisruptiveMind/reapp,kannans/reapp | markdown | ## Code Before:
This is the repo for the reapp CLI. The CLI is used mainly for getting started
on projects and is really lightweight.
If you're looking for information on reapp, visit [reapp.io](http://reapp.io), or
view the code in [one of our repositories](https://github.com/reapp).
### Usage
### Todo
- adding pl... | + *reapp is just launching in alpha. These docs are far from complete and subject to change!*
- This is the repo for the reapp CLI. The CLI is used mainly for getting started
- on projects and is really lightweight.
+ ### Installation
- If you're looking for information on reapp, visit [reapp.io](http://reapp.io), o... | 96 | 7.384615 | 88 | 8 |
9c06c927cb6840de0c1e04dc1cddf811f17b6c39 | source/components/SearchBox.js | source/components/SearchBox.js | import React from 'react'
import debounce from 'lodash/debounce'
const searchFor = debounce(term => window.routerHistory.push(`/search/${term}`), 500)
export default class SearchBox extends React.Component {
static defaultProps = {
className: '',
placeholder: 'Search...',
term: '',
}
constructor(pr... | import React from 'react'
import debounce from 'lodash/debounce'
const searchFor = debounce(term => window.routerHistory.push(`/search/${term}`), 500)
export default class SearchBox extends React.Component {
static defaultProps = {
className: '',
placeholder: 'Search... (Ctrl+Shift+F)',
term: '',
}
... | Add hotkey info to placeholder text | Add hotkey info to placeholder text
| JavaScript | mit | TroyAlford/axis-wiki,TroyAlford/axis-wiki | javascript | ## Code Before:
import React from 'react'
import debounce from 'lodash/debounce'
const searchFor = debounce(term => window.routerHistory.push(`/search/${term}`), 500)
export default class SearchBox extends React.Component {
static defaultProps = {
className: '',
placeholder: 'Search...',
term: '',
}
... | import React from 'react'
import debounce from 'lodash/debounce'
const searchFor = debounce(term => window.routerHistory.push(`/search/${term}`), 500)
export default class SearchBox extends React.Component {
static defaultProps = {
className: '',
- placeholder: 'Search...',
+ placeholder... | 2 | 0.040816 | 1 | 1 |
fe91bf90878dab94ef30ebeffdd8a8c386c25e22 | app/assets/stylesheets/spree/frontend/spree_static_content.css | app/assets/stylesheets/spree/frontend/spree_static_content.css | /*
*= require spree/frontend
*/
/* Sidebar */
nav#pages .pages-root {
text-transform: uppercase;
border-bottom: 1px solid rgb(217, 217, 219);
margin-bottom: 5px;
font-size: 14px;
} | /* Sidebar */
nav#pages .pages-root {
text-transform: uppercase;
border-bottom: 1px solid rgb(217, 217, 219);
margin-bottom: 5px;
font-size: 14px;
}
| Remove the "require spree/frontend" directive from the main css. This will allow Spree applications that use different front end stylesheet to install the extension | Remove the "require spree/frontend" directive from the main css.
This will allow Spree applications that use different front end stylesheet to install the extension
| CSS | bsd-3-clause | Dkendal/solidus_static_content,Dkendal/solidus_static_content,Dkendal/solidus_static_content | css | ## Code Before:
/*
*= require spree/frontend
*/
/* Sidebar */
nav#pages .pages-root {
text-transform: uppercase;
border-bottom: 1px solid rgb(217, 217, 219);
margin-bottom: 5px;
font-size: 14px;
}
## Instruction:
Remove the "require spree/frontend" directive from the main css.
This will allow Spree applicatio... | - /*
- *= require spree/frontend
- */
-
/* Sidebar */
nav#pages .pages-root {
text-transform: uppercase;
border-bottom: 1px solid rgb(217, 217, 219);
margin-bottom: 5px;
font-size: 14px;
} | 4 | 0.363636 | 0 | 4 |
7b50a9f84bd5669e2ef98a3a1bde62322571000f | css/legend.css | css/legend.css | .legend {
background-color: white;
z-index: 10;
background-color: #F0F0F0;
overflow: hidden;
}
.tile-legend {
padding: 0.5em;
}
.legend-label {
padding: 0.5em;
font-size: small;
font-weight: bold;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.legend-ch... | .legend {
top: calc(100% - 10em);
background-color: white;
z-index: 10;
background-color: #F0F0F0;
overflow: hidden;
}
.tile-legend {
padding: 0.5em;
}
.legend-label {
padding: 0.5em;
font-size: small;
font-weight: bold;
overflow: hidden;
white-space: nowrap;
text-overf... | Revert "Made key not disappear off the screen." | Revert "Made key not disappear off the screen."
This reverts commit 3b3e187d9fc078d2a522fbf383aa8892fd53b48e.
| CSS | mit | cse-bristol/energy-efficiency-planner,cse-bristol/energy-efficiency-planner,cse-bristol/energy-efficiency-planner | css | ## Code Before:
.legend {
background-color: white;
z-index: 10;
background-color: #F0F0F0;
overflow: hidden;
}
.tile-legend {
padding: 0.5em;
}
.legend-label {
padding: 0.5em;
font-size: small;
font-weight: bold;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsi... | .legend {
+ top: calc(100% - 10em);
background-color: white;
z-index: 10;
background-color: #F0F0F0;
overflow: hidden;
}
.tile-legend {
padding: 0.5em;
}
.legend-label {
padding: 0.5em;
font-size: small;
font-weight: bold;
overflow: hidden;
... | 1 | 0.032258 | 1 | 0 |
e68a10031d7dcd9286f8c0fc32648d2f5ff93754 | public/js/module/application/partial/subject-list.html | public/js/module/application/partial/subject-list.html | <div data-ng-controller="application.controller.list">
<div class="row-fluid">
<div class="span12">
<div class="row-fluid">
<div class="span6">
<h3>Subjects</h3>
</div>
</div>
<div class="row-fluid">
<div class="span6">
<div subject-list data-limit="{{listParams.limit}}" data-order-str... | <div data-ng-controller="application.controller.list">
<div class="row-fluid">
<div class="span12">
<div class="row-fluid">
<div class="span6">
<h3>Subjects</h3>
</div>
</div>
<div class="row-fluid">
<div class="span6">
<div subject-list data-limit="{{listParams.limit}}" data-order-str... | Fix for the home panels. | Fix for the home panels.
| HTML | bsd-3-clause | Gergling/opinionator,Gergling/opinionator | html | ## Code Before:
<div data-ng-controller="application.controller.list">
<div class="row-fluid">
<div class="span12">
<div class="row-fluid">
<div class="span6">
<h3>Subjects</h3>
</div>
</div>
<div class="row-fluid">
<div class="span6">
<div subject-list data-limit="{{listParams.limit}}... | <div data-ng-controller="application.controller.list">
<div class="row-fluid">
<div class="span12">
<div class="row-fluid">
<div class="span6">
<h3>Subjects</h3>
</div>
</div>
<div class="row-fluid">
<div class="span6">
- <div subject-list data-limit="{{listParams.l... | 2 | 0.125 | 1 | 1 |
1a4a2795b920286bf71b46f021fa80f43ce27723 | README.md | README.md |
To run the Fishy game, you need to add the Slick2D library to your project path.
The following steps were taken to include Slick2D into Eclipse:
[Download steps]
- Download Slick2D from http://slick.ninjacave.com/slick.zip
- Unpack the zip file to a preferred location, for example at /lib/slick
- Navigate to the 'li... | To run the Fishy game, you need to add the Slick2D library to your project path.
The following steps were taken to include Slick2D into Eclipse:
[Download steps]
- Download Slick2D from http://slick.ninjacave.com/slick.zip
- Unpack the zip file to a preferred location, for example at /lib/slick
- Navigate to the 'lib... | Add build and code coverage badges to Readme.md | Add build and code coverage badges to Readme.md | Markdown | mit | martijn9612/fishy | markdown | ## Code Before:
To run the Fishy game, you need to add the Slick2D library to your project path.
The following steps were taken to include Slick2D into Eclipse:
[Download steps]
- Download Slick2D from http://slick.ninjacave.com/slick.zip
- Unpack the zip file to a preferred location, for example at /lib/slick
- Nav... | -
To run the Fishy game, you need to add the Slick2D library to your project path.
The following steps were taken to include Slick2D into Eclipse:
[Download steps]
- Download Slick2D from http://slick.ninjacave.com/slick.zip
- Unpack the zip file to a preferred location, for example at /lib/slick
- N... | 4 | 0.190476 | 3 | 1 |
36d283d028b580b992ddf5e700782bb80b58c356 | app/routes/dashboard.php | app/routes/dashboard.php | <?php
Route::group(['before' => 'auth', 'prefix' => 'dashboard'], function() {
Route::get('/', ['as' => 'dashboard', 'uses' => 'DashboardController@showDashboard']);
// TODO: Switch for Route::controller?
Route::get('components', ['as' => 'dashboard.components', 'uses' => 'DashComponentController@showComp... | <?php
Route::group(['before' => 'auth', 'prefix' => 'dashboard'], function() {
Route::get('/', ['as' => 'dashboard', 'uses' => 'DashboardController@showDashboard']);
Route::get('components', ['as' => 'dashboard.components', 'uses' => 'DashComponentController@showComponents']);
Route::get('components/add',... | Remove TODO, will probably not need to do this now | Remove TODO, will probably not need to do this now
| PHP | bsd-3-clause | ephillipe/Cachet,CloudA/Cachet,displayn/Cachet,Mebus/Cachet,n0mer/Cachet,ZengineChris/Cachet,pellaeon/Cachet,alobintechnologies/Cachet,bthiago/Cachet,ephillipe/Cachet,karaktaka/Cachet,anujaprasad/Hihat,elektropay/Cachet,wngravette/Cachet,Mebus/Cachet,SamuelMoraesF/Cachet,everpay/Cachet,murendie/Cachet,eduardocruz/Cache... | php | ## Code Before:
<?php
Route::group(['before' => 'auth', 'prefix' => 'dashboard'], function() {
Route::get('/', ['as' => 'dashboard', 'uses' => 'DashboardController@showDashboard']);
// TODO: Switch for Route::controller?
Route::get('components', ['as' => 'dashboard.components', 'uses' => 'DashComponentCon... | <?php
Route::group(['before' => 'auth', 'prefix' => 'dashboard'], function() {
Route::get('/', ['as' => 'dashboard', 'uses' => 'DashboardController@showDashboard']);
- // TODO: Switch for Route::controller?
Route::get('components', ['as' => 'dashboard.components', 'uses' => 'DashComponentContr... | 1 | 0.047619 | 0 | 1 |
910d22714fbb0fd2a259ca66350ba0634b5f1ea1 | app/mutations/points/update.rb | app/mutations/points/update.rb | module Points
class Update < Mutations::Command
required do
model :device, class: Device
model :point, class: Point
end
optional do
integer :tool_id, nils: true, empty_is_nil: true
float :x
float :y
float :z
float :radius
string :name
string... | module Points
class Update < Mutations::Command
required do
model :device, class: Device
model :point, class: Point
end
optional do
integer :tool_id, nils: true, empty_is_nil: true
float :x
float :y
float :z
float :radius
string :name
string... | Bring back drop down back. Next: Fix label name | Bring back drop down back. Next: Fix label name
| Ruby | mit | RickCarlino/farmbot-web-app,MrChristofferson/Farmbot-Web-API,FarmBot/Farmbot-Web-API,RickCarlino/farmbot-web-app,FarmBot/Farmbot-Web-API,FarmBot/farmbot-web-app,RickCarlino/farmbot-web-app,FarmBot/farmbot-web-app,MrChristofferson/Farmbot-Web-API,gabrielburnworth/Farmbot-Web-App,gabrielburnworth/Farmbot-Web-App,FarmBot/... | ruby | ## Code Before:
module Points
class Update < Mutations::Command
required do
model :device, class: Device
model :point, class: Point
end
optional do
integer :tool_id, nils: true, empty_is_nil: true
float :x
float :y
float :z
float :radius
string :n... | module Points
class Update < Mutations::Command
required do
model :device, class: Device
model :point, class: Point
end
optional do
integer :tool_id, nils: true, empty_is_nil: true
float :x
float :y
float :z
float :radius
... | 9 | 0.214286 | 6 | 3 |
93f16ac5e83b679f9894975dd13638b6a9edde42 | src/Uvweb/UvBundle/Controller/BaseController.php | src/Uvweb/UvBundle/Controller/BaseController.php | <?php
/**
* Created by JetBrains PhpStorm.
* User: Alexandre
* Date: 26/05/13
* Time: 12:15
* To change this template use File | Settings | File Templates.
*/
namespace Uvweb\UvBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class BaseController extends Controller{
protected ... | <?php
/**
* Created by JetBrains PhpStorm.
* User: Alexandre
* Date: 26/05/13
* Time: 12:15
* To change this template use File | Settings | File Templates.
*/
namespace Uvweb\UvBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class BaseController extends Controller{
protected ... | Remove "required" on search field | Remove "required" on search field
| PHP | mit | uvweb/UVweb,uvweb/UVweb,uvweb/UVweb | php | ## Code Before:
<?php
/**
* Created by JetBrains PhpStorm.
* User: Alexandre
* Date: 26/05/13
* Time: 12:15
* To change this template use File | Settings | File Templates.
*/
namespace Uvweb\UvBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class BaseController extends Controller{... | <?php
/**
* Created by JetBrains PhpStorm.
* User: Alexandre
* Date: 26/05/13
* Time: 12:15
* To change this template use File | Settings | File Templates.
*/
namespace Uvweb\UvBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class BaseController exten... | 2 | 0.054054 | 1 | 1 |
24485a1c7dc077436685c483cf510aa3314c169c | myhronet/templates/base.html | myhronet/templates/base.html | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>Myhro.info URL Shortener</title>
<link rel="stylesheet" type="text/cs... | {% load staticfiles %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>Myhro.info URL Shortener</title>
<link rel="st... | Use staticfiles app instead of STATIC_URL | Use staticfiles app instead of STATIC_URL
| HTML | mit | myhro/myhronet,myhro/myhronet | html | ## Code Before:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>Myhro.info URL Shortener</title>
<link rel="styleshee... | + {% load staticfiles %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>Myhro.info URL Shortener</title>
- ... | 5 | 0.384615 | 3 | 2 |
b1b49f0ed25b0d56ebb3b765c50102613a88a05b | .travis.yml | .travis.yml | language: objective-c
osx_image: xcode7.1
script:
- xcodebuild -project MarvelApiClient.xcodeproj -scheme MarvelApiClient build test CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -destination 'platform=iOS Simulator,name=iPhone 6s Plus' | language: objective-c
osx_image: xcode7.1
script:
- xcodebuild -workspace MarvelApiClient.xcworkspace -scheme MarvelApiClient build test CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -destination 'platform=iOS Simulator,name=iPhone 6s Plus' | Update Travis-CI configuration to use the project workspace instead of the project to execute the build and the tests | Update Travis-CI configuration to use the project workspace instead of the project to execute the build and the tests
| YAML | apache-2.0 | Karumi/MarvelApiClient,Karumi/MarvelApiClient | yaml | ## Code Before:
language: objective-c
osx_image: xcode7.1
script:
- xcodebuild -project MarvelApiClient.xcodeproj -scheme MarvelApiClient build test CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -destination 'platform=iOS Simulator,name=iPhone 6s Plus'
## Instruction:
Update Travis-CI configuration to use the proje... | language: objective-c
osx_image: xcode7.1
script:
- - xcodebuild -project MarvelApiClient.xcodeproj -scheme MarvelApiClient build test CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -destination 'platform=iOS Simulator,name=iPhone 6s Plus'
? ^^^ -- ^ ----
+ - xcodebuild... | 2 | 0.4 | 1 | 1 |
abe0d2ba106e204f12a3610b2cefdd6f9c97eb0d | recipes/default.rb | recipes/default.rb | package node[:bfd][:package][:short_name] do
source node[:bfd][:package][:source] if node[:bfd][:package][:source]
end
template "bfdd-beacon upstart config" do
path "/etc/init/bfdd-beacon.conf"
source "bfdd-beacon.conf.erb"
owner "root"
group "root"
end
service "bfdd-beacon" do
provider Chef::Provider::Se... |
if node[:bfd][:package][:source]
source_uri = URI.parse(node[:bfd][:package][:source])
#
# If the parsed source URI has a scheme, and that scheme is not
# file:///, then this is a remote file and we should instantiate a
# remote_file resource.
#
# If there's no scheme, assume the source is already a loc... | Use a dpkg_package resource when a package source attribute is provided. | Use a dpkg_package resource when a package source attribute is
provided.
The package source attribute can be a local or remote path.
| Ruby | apache-2.0 | cbaenziger/OpenBFDD-cookbook,bloomberg/openbfdd-cookbook,bloomberg/openbfdd-cookbook,cbaenziger/OpenBFDD-cookbook | ruby | ## Code Before:
package node[:bfd][:package][:short_name] do
source node[:bfd][:package][:source] if node[:bfd][:package][:source]
end
template "bfdd-beacon upstart config" do
path "/etc/init/bfdd-beacon.conf"
source "bfdd-beacon.conf.erb"
owner "root"
group "root"
end
service "bfdd-beacon" do
provider Ch... | +
+ if node[:bfd][:package][:source]
+ source_uri = URI.parse(node[:bfd][:package][:source])
+
+ #
+ # If the parsed source URI has a scheme, and that scheme is not
+ # file:///, then this is a remote file and we should instantiate a
+ # remote_file resource.
+ #
+ # If there's no scheme, assume the sou... | 39 | 2.4375 | 37 | 2 |
88da9957f15bda7922c579bcd1962d276df1075d | src/js/routers/app-router.js | src/js/routers/app-router.js | import * as Backbone from 'backbone';
import SearchBoxView from '../views/searchBox-view.js';
import SearchResultsView from '../views/searchResults-view.js';
import dispatcher from '../helpers/dispatcher.js';
class AppRouter extends Backbone.Router {
get routes() {
return {
'': 'loadDefault',
'searc... | import * as Backbone from 'backbone';
import SearchBoxView from '../views/searchBox-view.js';
import SearchResultsView from '../views/searchResults-view.js';
import dispatcher from '../helpers/dispatcher.js';
class AppRouter extends Backbone.Router {
get routes() {
return {
'': 'loadDefault',
'searc... | Add shortcut function to navigate to URL fragment | Add shortcut function to navigate to URL fragment
Called by event listener
| JavaScript | mit | trevormunoz/katherine-anne,trevormunoz/katherine-anne,trevormunoz/katherine-anne | javascript | ## Code Before:
import * as Backbone from 'backbone';
import SearchBoxView from '../views/searchBox-view.js';
import SearchResultsView from '../views/searchResults-view.js';
import dispatcher from '../helpers/dispatcher.js';
class AppRouter extends Backbone.Router {
get routes() {
return {
'': 'loadDefaul... | import * as Backbone from 'backbone';
import SearchBoxView from '../views/searchBox-view.js';
import SearchResultsView from '../views/searchResults-view.js';
import dispatcher from '../helpers/dispatcher.js';
class AppRouter extends Backbone.Router {
get routes() {
return {
'': 'loadDe... | 4 | 0.133333 | 4 | 0 |
10f5324fbcfc1f6376e82afb1774db6708c5b59b | tests/browser/engagement_plans/edit_engagement_plan.robot | tests/browser/engagement_plans/edit_engagement_plan.robot | *** Settings ***
Resource tests/NPSP.robot
Suite Setup Open Test Browser
Suite Teardown Delete Records and Close Browser
*** Variables ***
${task3_1} Follow-Up Phone Call3
*** Test Cases ***
Create Engagement Plan and Edit to Add New Task
${plan_name} ${task1_1} ${sub_task1_1} ${task2_1... | *** Settings ***
Resource tests/NPSP.robot
Suite Setup Open Test Browser
Suite Teardown Delete Records and Close Browser
*** Variables ***
${task3_1} Follow-Up Phone Call3
*** Test Cases ***
Create Engagement Plan and Edit to Add New Task
[tags] unstable
${plan_name} ${task1_1} ${sub_t... | Tag unstable robot test | Tag unstable robot test [ci skip] | RobotFramework | bsd-3-clause | Zosoled/Cumulus,Zosoled/Cumulus,Zosoled/Cumulus,SalesforceFoundation/Cumulus,Zosoled/Cumulus,SalesforceFoundation/Cumulus,SalesforceFoundation/Cumulus,SalesforceFoundation/Cumulus | robotframework | ## Code Before:
*** Settings ***
Resource tests/NPSP.robot
Suite Setup Open Test Browser
Suite Teardown Delete Records and Close Browser
*** Variables ***
${task3_1} Follow-Up Phone Call3
*** Test Cases ***
Create Engagement Plan and Edit to Add New Task
${plan_name} ${task1_1} ${sub_task1_... | *** Settings ***
Resource tests/NPSP.robot
Suite Setup Open Test Browser
Suite Teardown Delete Records and Close Browser
*** Variables ***
${task3_1} Follow-Up Phone Call3
*** Test Cases ***
Create Engagement Plan and Edit to Add New Task
+ [tags] unstable
${plan_n... | 1 | 0.034483 | 1 | 0 |
aac366c306347597f7090a0d611744e9be18a5c0 | circle.yml | circle.yml | general:
branches:
ignore:
- azure
deployment:
dev:
branch: master
commands:
- git push git@heroku.com:hoa-ui-dev.git $CIRCLE_SHA1:master
- heroku ps:scale web=1 --app hoa-ui-dev
# Push the Dev Branch to Azure
- git checkout azure
- git pull
- git ... | general:
branches:
ignore:
- azure
deployment:
dev:
branch: master
commands:
- git push git@heroku.com:hoa-ui-dev.git $CIRCLE_SHA1:master
- heroku ps:scale web=1 --app hoa-ui-dev
# Push the Dev Branch to Azure
- git config user.email $EMAIL
- git config us... | Add in username and email. | Other: Add in username and email.
| YAML | mit | NOMS-DIGITAL-STUDIO-IIS/hoa-ui,noms-digital-studio/iis,NOMS-DIGITAL-STUDIO-IIS/hoa-ui,noms-digital-studio/iis | yaml | ## Code Before:
general:
branches:
ignore:
- azure
deployment:
dev:
branch: master
commands:
- git push git@heroku.com:hoa-ui-dev.git $CIRCLE_SHA1:master
- heroku ps:scale web=1 --app hoa-ui-dev
# Push the Dev Branch to Azure
- git checkout azure
- git pul... | general:
branches:
ignore:
- azure
deployment:
dev:
branch: master
commands:
- git push git@heroku.com:hoa-ui-dev.git $CIRCLE_SHA1:master
- heroku ps:scale web=1 --app hoa-ui-dev
# Push the Dev Branch to Azure
+ - git config user.email $EMAIL... | 2 | 0.111111 | 2 | 0 |
2699f05590f189d925f7051385e06bd5f5767098 | metadata/ru.ikkui.achie.yml | metadata/ru.ikkui.achie.yml | Categories:
- Time
License: GPL-2.0-only
AuthorName: Igor Kruchinin
SourceCode: https://github.com/IgorKruchinin/AchieApp
IssueTracker: https://github.com/IgorKruchinin/AchieApp/issues
AutoName: Achie
RepoType: git
Repo: https://github.com/IgorKruchinin/AchieApp
Binaries: https://github.com/IgorKruchinin/AchieApp/r... | Categories:
- Time
License: GPL-2.0-only
AuthorName: Igor Kruchinin
SourceCode: https://github.com/IgorKruchinin/AchieApp
IssueTracker: https://github.com/IgorKruchinin/AchieApp/issues
AutoName: Achie
RepoType: git
Repo: https://github.com/IgorKruchinin/AchieApp
Binaries: https://github.com/IgorKruchinin/AchieApp/r... | Update Achie to 1.1.1a (4) | Update Achie to 1.1.1a (4)
| YAML | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata | yaml | ## Code Before:
Categories:
- Time
License: GPL-2.0-only
AuthorName: Igor Kruchinin
SourceCode: https://github.com/IgorKruchinin/AchieApp
IssueTracker: https://github.com/IgorKruchinin/AchieApp/issues
AutoName: Achie
RepoType: git
Repo: https://github.com/IgorKruchinin/AchieApp
Binaries: https://github.com/IgorKruc... | Categories:
- Time
License: GPL-2.0-only
AuthorName: Igor Kruchinin
SourceCode: https://github.com/IgorKruchinin/AchieApp
IssueTracker: https://github.com/IgorKruchinin/AchieApp/issues
AutoName: Achie
RepoType: git
Repo: https://github.com/IgorKruchinin/AchieApp
Binaries: https://github.com/... | 11 | 0.34375 | 9 | 2 |
f457607e76503215291bbf3b9e4b23885aea7383 | Strategies/cache_wo_download.rb | Strategies/cache_wo_download.rb | class CacheWoDownloadStrategy < CurlDownloadStrategy
def homepage
raise ArgumentError,
"You need to override the `homepage` method to return the homepage!"
end
def fetch
unless cached_location.exist?
odie <<~EOS
The package file can not be downloaded automatically. Please sign in
... | class CacheWoDownloadStrategy < AbstractFileDownloadStrategy
def homepage
raise ArgumentError,
"You need to override the `homepage` method to return the homepage!"
end
def fetch
unless cached_location.exist?
odie <<~EOS
The package file can not be downloaded automatically. Please ... | Use the abstract download strategy directly | Use the abstract download strategy directly
The CURL download strategy started doing too much. And it was pointless
anyway.
| Ruby | mit | InstantClientTap/homebrew-instantclient | ruby | ## Code Before:
class CacheWoDownloadStrategy < CurlDownloadStrategy
def homepage
raise ArgumentError,
"You need to override the `homepage` method to return the homepage!"
end
def fetch
unless cached_location.exist?
odie <<~EOS
The package file can not be downloaded automatically.... | - class CacheWoDownloadStrategy < CurlDownloadStrategy
? ^^
+ class CacheWoDownloadStrategy < AbstractFileDownloadStrategy
? ^^^^ +++++ +
def homepage
raise ArgumentError,
"You need to override the `homepage` method to return the ho... | 2 | 0.047619 | 1 | 1 |
652497ec0365893a0fcbc39191cb60032bf88c23 | setup.py | setup.py | from setuptools import setup
setup(
name='pyticketswitch',
version='1.6.4',
author='Ingresso',
author_email='systems@ingresso.co.uk',
packages=[
'pyticketswitch',
'pyticketswitch.interface_objects'
],
license='MIT',
description='A Python interface for the Ingresso XML Co... | from setuptools import setup
setup(
name='pyticketswitch',
version='1.6.4',
author='Ingresso',
author_email='systems@ingresso.co.uk',
url='https://github.com/ingresso-group/pyticketswitch/',
packages=[
'pyticketswitch',
'pyticketswitch.interface_objects'
],
license='MIT'... | Add URL to make it easier to find this GitHub page | Add URL to make it easier to find this GitHub page | Python | mit | ingresso-group/pyticketswitch | python | ## Code Before:
from setuptools import setup
setup(
name='pyticketswitch',
version='1.6.4',
author='Ingresso',
author_email='systems@ingresso.co.uk',
packages=[
'pyticketswitch',
'pyticketswitch.interface_objects'
],
license='MIT',
description='A Python interface for the... | from setuptools import setup
setup(
name='pyticketswitch',
version='1.6.4',
author='Ingresso',
author_email='systems@ingresso.co.uk',
+ url='https://github.com/ingresso-group/pyticketswitch/',
packages=[
'pyticketswitch',
'pyticketswitch.interface_objects'
... | 1 | 0.047619 | 1 | 0 |
20679984ae6dd9e467e4a29125d62621023f9aaa | lib/node_modules/@stdlib/string/starts-with/docs/repl.txt | lib/node_modules/@stdlib/string/starts-with/docs/repl.txt |
{{alias}}( str, search[, position] )
Tests if a string starts with the characters of another string.
If provided an empty search string, the function always returns `true`.
Parameters
----------
str: string
Input string.
search: string
Search string.
position: integer (o... |
{{alias}}( str, search[, position] )
Tests if a string starts with the characters of another string.
If provided an empty search string, the function always returns `true`.
Parameters
----------
str: string
Input string.
search: string
Search string.
position: integer (o... | Fix description and document default | Fix description and document default
| Text | apache-2.0 | stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib | text | ## Code Before:
{{alias}}( str, search[, position] )
Tests if a string starts with the characters of another string.
If provided an empty search string, the function always returns `true`.
Parameters
----------
str: string
Input string.
search: string
Search string.
posi... |
{{alias}}( str, search[, position] )
Tests if a string starts with the characters of another string.
If provided an empty search string, the function always returns `true`.
Parameters
----------
str: string
Input string.
search: string
Search string.... | 5 | 0.125 | 3 | 2 |
0cc38a8e48e9273052e0c8b30abde686486067a9 | src/User/Form/UserFormBuilder.php | src/User/Form/UserFormBuilder.php | <?php namespace Anomaly\UsersModule\User\Form;
use Anomaly\Streams\Platform\Ui\Form\Form;
use Anomaly\Streams\Platform\Ui\Form\FormBuilder;
use Illuminate\Http\Request;
/**
* Class UserFormBuilder
*
* @link http://anomaly.is/streams-platform
* @author AnomalyLabs, Inc. <hello@anomaly.is>
* @autho... | <?php namespace Anomaly\UsersModule\User\Form;
use Anomaly\Streams\Platform\Ui\Form\FormBuilder;
use Illuminate\Http\Request;
/**
* Class UserFormBuilder
*
* @link http://anomaly.is/streams-platform
* @author AnomalyLabs, Inc. <hello@anomaly.is>
* @author Ryan Thompson <ryan@anomaly.is>
*... | Fix issue when password is not present in post | Fix issue when password is not present in post
| PHP | mit | anomalylabs/users-module,JoelESvensson/users-module,JoelESvensson/users-module | php | ## Code Before:
<?php namespace Anomaly\UsersModule\User\Form;
use Anomaly\Streams\Platform\Ui\Form\Form;
use Anomaly\Streams\Platform\Ui\Form\FormBuilder;
use Illuminate\Http\Request;
/**
* Class UserFormBuilder
*
* @link http://anomaly.is/streams-platform
* @author AnomalyLabs, Inc. <hello@anoma... | <?php namespace Anomaly\UsersModule\User\Form;
- use Anomaly\Streams\Platform\Ui\Form\Form;
use Anomaly\Streams\Platform\Ui\Form\FormBuilder;
use Illuminate\Http\Request;
/**
* Class UserFormBuilder
*
* @link http://anomaly.is/streams-platform
* @author AnomalyLabs, Inc. <hello... | 24 | 0.413793 | 6 | 18 |
9260f274d5f565e4932ddd258a4e6203557df4ed | README.md | README.md | ⚓️ Smoothly scroll to `#anchors`
## Usage
1) Include the library
2) Initialize the AnchorScroll class and you're pretty much done!
```javascript
new AnchorScroller({
checkParent: true // checks if the parent element is an anchor
});
```
You can pass it an optional option object to tweak it's behavior. See all avail... | ⚓️ Smoothly scroll to `#anchors`
## Features
* ... Scrolls to anchors
* Stops scrolling if the user scrolls
* Doesn't try to scroll past the end
It doesn't sound like much but it's actually really nice 😁
## Usage
1) **Include the library**
Can be done [with NPM](https://github.com/semlette/anchor-scroller/wiki/Usin... | Add Features and adjust Usage | Add Features and adjust Usage | Markdown | mit | semlette/anchor-scroller,semlette/anchor-scroller,semlette/anchor-scroller | markdown | ## Code Before:
⚓️ Smoothly scroll to `#anchors`
## Usage
1) Include the library
2) Initialize the AnchorScroll class and you're pretty much done!
```javascript
new AnchorScroller({
checkParent: true // checks if the parent element is an anchor
});
```
You can pass it an optional option object to tweak it's behavio... | ⚓️ Smoothly scroll to `#anchors`
+ ## Features
+ * ... Scrolls to anchors
+ * Stops scrolling if the user scrolls
+ * Doesn't try to scroll past the end
+
+ It doesn't sound like much but it's actually really nice 😁
## Usage
- 1) Include the library
+ 1) **Include the library**
? ++ ++
... | 19 | 1.583333 | 13 | 6 |
c47048b0f97bd4ad493ea0c891a09606c44c39fa | app/src/ui/remove-repository/confirm-remove-repository.tsx | app/src/ui/remove-repository/confirm-remove-repository.tsx | import * as React from 'react'
import { ButtonGroup } from '../../ui/lib/button-group'
import { Button } from '../../ui/lib/button'
import { Dialog, DialogContent, DialogFooter } from '../../ui/dialog'
import { Repository } from '../../models/repository'
interface IConfirmRemoveRepositoryProps {
/** The repository t... | import * as React from 'react'
import { ButtonGroup } from '../../ui/lib/button-group'
import { Button } from '../../ui/lib/button'
import { Dialog, DialogContent, DialogFooter } from '../../ui/dialog'
import { Repository } from '../../models/repository'
interface IConfirmRemoveRepositoryProps {
/** The repository t... | Include repository name in dialog | Include repository name in dialog
| TypeScript | mit | j-f1/forked-desktop,gengjiawen/desktop,hjobrien/desktop,shiftkey/desktop,j-f1/forked-desktop,hjobrien/desktop,desktop/desktop,BugTesterTest/desktops,kactus-io/kactus,BugTesterTest/desktops,hjobrien/desktop,kactus-io/kactus,desktop/desktop,kactus-io/kactus,desktop/desktop,shiftkey/desktop,artivilla/desktop,BugTesterTest... | typescript | ## Code Before:
import * as React from 'react'
import { ButtonGroup } from '../../ui/lib/button-group'
import { Button } from '../../ui/lib/button'
import { Dialog, DialogContent, DialogFooter } from '../../ui/dialog'
import { Repository } from '../../models/repository'
interface IConfirmRemoveRepositoryProps {
/** ... | import * as React from 'react'
import { ButtonGroup } from '../../ui/lib/button-group'
import { Button } from '../../ui/lib/button'
import { Dialog, DialogContent, DialogFooter } from '../../ui/dialog'
import { Repository } from '../../models/repository'
interface IConfirmRemoveRepositoryProps {
/** ... | 2 | 0.04 | 1 | 1 |
280c81a3990116f66de9af8e6fd6e71d0215a386 | client.py | client.py |
from configReader import ConfigReader
import sys
import os, os.path
import os.path
from time import time
from math import floor
import hashlib
import random
import requests
f = open('adjectives.txt','r')
adjectives = [line.rstrip() for line in f]
f.close()
configReader = ConfigReader(name="clientConfig.txt")
path = s... |
from configReader import ConfigReader
import sys
import os, os.path
import os.path
from time import time
from math import floor
import hashlib
import random
import requests
f = open('adjectives.txt','r')
adjectives = [line.rstrip() for line in f]
f.close()
configReader = ConfigReader(name="clientConfig.txt")
path = s... | Add authentication to the serverside | Add authentication to the serverside
| Python | mit | ollien/Screenshot-Uploader,ollien/Screenshot-Uploader | python | ## Code Before:
from configReader import ConfigReader
import sys
import os, os.path
import os.path
from time import time
from math import floor
import hashlib
import random
import requests
f = open('adjectives.txt','r')
adjectives = [line.rstrip() for line in f]
f.close()
configReader = ConfigReader(name="clientConfi... |
from configReader import ConfigReader
import sys
import os, os.path
import os.path
from time import time
from math import floor
import hashlib
import random
import requests
f = open('adjectives.txt','r')
adjectives = [line.rstrip() for line in f]
f.close()
configReader = ConfigReader(nam... | 2 | 0.066667 | 1 | 1 |
861b4bcbcdf256c44b0681876c300443d214c23a | src/Acme/TestBundle/Controller/TestController.php | src/Acme/TestBundle/Controller/TestController.php | <?php
// src/Acme/TestBundle/Controller/TestController.php
namespace Acme\TestBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
class TestController extends Controller
{
public function indexAction()
{
// return new Response('l... | <?php
// src/Acme/TestBundle/Controller/TestController.php
namespace Acme\TestBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\HttpException;
class TestController extends Controller
{
public func... | Test sur les exceptions réussi | Test sur les exceptions réussi
| PHP | mit | Peshmelba/sf2test | php | ## Code Before:
<?php
// src/Acme/TestBundle/Controller/TestController.php
namespace Acme\TestBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
class TestController extends Controller
{
public function indexAction()
{
// return... | <?php
// src/Acme/TestBundle/Controller/TestController.php
namespace Acme\TestBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
+ use Symfony\Component\HttpKernel\Exception\HttpException;
class TestController extends Controll... | 9 | 0.333333 | 3 | 6 |
979fd4ce0ed2d78c6be29307a28170be8c37cc70 | scripts/postinstall.sh | scripts/postinstall.sh | date > /etc/vagrant_box_build_time
# update the apt cache and packages
case $(lsb_release -cs) in
'precise')
apt-get clean
rm -rf /var/lib/apt/lists/*
apt-get clean
;;
*)
;;
esac
apt-get -qy update
apt-get -qy upgrade
# install some oft used packages
apt-get -qy install linux-... | date > /etc/vagrant_box_build_time
# update the apt cache and packages
case $(lsb_release -cs) in
'precise')
apt-get clean
rm -rf /var/lib/apt/lists/*
apt-get clean
;;
*)
;;
esac
apt-get -qy update
apt-get -qy upgrade
# install some oft used packages
apt-get -qy install linux-... | Remove ruby from the default packages. | Remove ruby from the default packages.
Boxes shouldn't install packages which are not directly needed. This originally
came to support the install of Chef, but this is now done through a package.
| Shell | mit | nickcharlton/boxes,nickcharlton/boxes,nickcharlton/boxes | shell | ## Code Before:
date > /etc/vagrant_box_build_time
# update the apt cache and packages
case $(lsb_release -cs) in
'precise')
apt-get clean
rm -rf /var/lib/apt/lists/*
apt-get clean
;;
*)
;;
esac
apt-get -qy update
apt-get -qy upgrade
# install some oft used packages
apt-get -q... | date > /etc/vagrant_box_build_time
# update the apt cache and packages
case $(lsb_release -cs) in
'precise')
apt-get clean
rm -rf /var/lib/apt/lists/*
apt-get clean
;;
*)
;;
esac
apt-get -qy update
apt-get -qy upgrade
# install some oft used p... | 1 | 0.025641 | 0 | 1 |
4c328973e9e7203e63dc573aa555e4bf35e438e3 | src/DubyBootstrap.aj | src/DubyBootstrap.aj | import java.util.ArrayList;
import java.util.List;
import mirah.lang.ast.Node;
import mirah.lang.ast.NodeScanner;
import mirah.lang.ast.NodeImpl;
class ChildCollector extends NodeScanner {
private ArrayList<Node> children = new ArrayList<Node>();
@Override
public boolean enterDefault(Node node, Object arg) {
... | import java.util.ArrayList;
import java.util.List;
import mirah.lang.ast.Node;
import mirah.lang.ast.NodeScanner;
import mirah.lang.ast.NodeImpl;
/* To compile the new AST with duby extensions:
* ajc -1.5 -inpath dist/mirah-parser.jar \
* -outjar dist/mirah-parser_with_duby.jar \
* -classpath ../mirah/javal... | Add compilation instructions for mirah-parser_with_duby.jar | Add compilation instructions for mirah-parser_with_duby.jar
| AspectJ | apache-2.0 | mirah/mirah,mirah/mirah-parser,uujava/mirah-parser,felixvf/mirah,mirah/mirah,mirah/mirah-parser,felixvf/mirah-parser,uujava/mirah-parser,uujava/mirah-parser,felixvf/mirah,mirah/mirah,felixvf/mirah,mirah/mirah,mirah/mirah-parser,felixvf/mirah,felixvf/mirah-parser,felixvf/mirah-parser | aspectj | ## Code Before:
import java.util.ArrayList;
import java.util.List;
import mirah.lang.ast.Node;
import mirah.lang.ast.NodeScanner;
import mirah.lang.ast.NodeImpl;
class ChildCollector extends NodeScanner {
private ArrayList<Node> children = new ArrayList<Node>();
@Override
public boolean enterDefault(Node node,... | import java.util.ArrayList;
import java.util.List;
import mirah.lang.ast.Node;
import mirah.lang.ast.NodeScanner;
import mirah.lang.ast.NodeImpl;
+ /* To compile the new AST with duby extensions:
+ * ajc -1.5 -inpath dist/mirah-parser.jar \
+ * -outjar dist/mirah-parser_with_duby.jar \
+ * -clas... | 6 | 0.15 | 6 | 0 |
25a0d9ab63ffb9abaacaabdcef437fd68c059443 | dev/socket-io/README.md | dev/socket-io/README.md | * [websocket与socket.io比较与分析](https://www.jianshu.com/p/2ec3d20341ab)
| * [websocket与socket.io比较与分析](https://www.jianshu.com/p/2ec3d20341ab)
* [在 Go 中使用 Websockets 和 Socket.IO](https://studygolang.com/articles/19813)
| Add 在 Go 中使用 Websockets 和 Socket.IO | Add 在 Go 中使用 Websockets 和 Socket.IO
| Markdown | mit | northbright/bookmarks,northbright/bookmarks,northbright/bookmarks | markdown | ## Code Before:
* [websocket与socket.io比较与分析](https://www.jianshu.com/p/2ec3d20341ab)
## Instruction:
Add 在 Go 中使用 Websockets 和 Socket.IO
## Code After:
* [websocket与socket.io比较与分析](https://www.jianshu.com/p/2ec3d20341ab)
* [在 Go 中使用 Websockets 和 Socket.IO](https://studygolang.com/articles/19813)
| * [websocket与socket.io比较与分析](https://www.jianshu.com/p/2ec3d20341ab)
+ * [在 Go 中使用 Websockets 和 Socket.IO](https://studygolang.com/articles/19813) | 1 | 1 | 1 | 0 |
265a9f725f4497cab87f75a2415cd6ce33aa49f3 | src/test/java/com/cognitect/transit/TestRoundtrip.java | src/test/java/com/cognitect/transit/TestRoundtrip.java | // Copyright (c) Cognitect, Inc.
// All rights reserved.
package com.cognitect.transit;
public class TestRoundtrip {
public static void main(String [] args) throws Exception {
// TODO: use argument to set up json or msgpack
Reader reader = Reader.getJsonInstance(System.in, Reader.defaultDecoders... | // Copyright (c) Cognitect, Inc.
// All rights reserved.
package com.cognitect.transit;
public class TestRoundtrip {
public static void main(String [] args) throws Exception {
String encoding = args[0];
Reader reader;
Writer writer;
if(encoding.equals("msgpack")) {
... | Use args to create the desired instance of transit | Use args to create the desired instance of transit
| Java | apache-2.0 | alexanderkiel/transit-java,cognitect/transit-java,freakynit/transit-java,cognitect/transit-java,LonoCloud/transit-java,freakynit/transit-java,LonoCloud/transit-java,alexanderkiel/transit-java | java | ## Code Before:
// Copyright (c) Cognitect, Inc.
// All rights reserved.
package com.cognitect.transit;
public class TestRoundtrip {
public static void main(String [] args) throws Exception {
// TODO: use argument to set up json or msgpack
Reader reader = Reader.getJsonInstance(System.in, Reader... | // Copyright (c) Cognitect, Inc.
// All rights reserved.
package com.cognitect.transit;
public class TestRoundtrip {
public static void main(String [] args) throws Exception {
- // TODO: use argument to set up json or msgpack
+ String encoding = args[0];
+
+ Reader rea... | 16 | 0.666667 | 13 | 3 |
f3fc11945cf5263902c9bebcde49979dd80bc9b3 | components/VideoLivestream.vue | components/VideoLivestream.vue | <style lang="scss" scoped>
.video-wrapper {
margin-top: 2rem;
}
.video-wrapper iframe {
min-height: 360px;
width: 100%;
@include mobile {
min-height: 230px;
}
}
</style>
<template>
<div class="video-wrapper">
<iframe src="https://player.vimeo.com/video/323205772" frameborder="0"
webkit... | <style lang="scss" scoped>
.video-wrapper {
margin-top: 2rem;
}
.video-wrapper iframe {
min-height: 360px;
width: 100%;
@include mobile {
min-height: 230px;
}
}
</style>
<template>
<div class="video-wrapper">
<iframe src="https://www.youtube-nocookie.com/embed/Z94bOTBGLzM" frameborder="0"
... | Switch to official youtube stream | Switch to official youtube stream
| Vue | isc | fightforthefuture/battleforthenet,fightforthefuture/battleforthenet,fightforthefuture/battleforthenet | vue | ## Code Before:
<style lang="scss" scoped>
.video-wrapper {
margin-top: 2rem;
}
.video-wrapper iframe {
min-height: 360px;
width: 100%;
@include mobile {
min-height: 230px;
}
}
</style>
<template>
<div class="video-wrapper">
<iframe src="https://player.vimeo.com/video/323205772" frameborder="0"
... | <style lang="scss" scoped>
.video-wrapper {
margin-top: 2rem;
}
.video-wrapper iframe {
min-height: 360px;
width: 100%;
@include mobile {
min-height: 230px;
}
}
</style>
<template>
<div class="video-wrapper">
- <iframe src="https://player.vimeo.com/video/323205772" ... | 3 | 0.142857 | 2 | 1 |
2668c41557a9ebe9c5dc545fc7275ede2e6c3a07 | src/Impetus/AppBundle/Resources/views/Macros/table.html.twig | src/Impetus/AppBundle/Resources/views/Macros/table.html.twig | {% macro info_row(name, value) %}
<tr>
<th class="label">{{ name }}</th>
<td class="data">{{ value|default('<i>Not entered</i>')|raw }}</td>
</tr>
{% endmacro %}
{% macro divider() %}
<tr>
<td colspan="2" class="divider"><hr /></td>
</tr>
{% endmacro %} | {% macro info_row(name, value) %}
<tr>
<th class="label">{{ name }}</th>
{% if value != null %}
<td class="data">{{ value }}</td>
{% else %}
<td class="data"><i>Not entered</i></td>
{% endif %}
</tr>
{% endmacro %}
{% macro divider() %}
<tr>
<... | Fix raw text output that would lead to wild JS execution | Fix raw text output that would lead to wild JS execution
| Twig | mit | cosmotron/Impetus,cosmotron/Impetus | twig | ## Code Before:
{% macro info_row(name, value) %}
<tr>
<th class="label">{{ name }}</th>
<td class="data">{{ value|default('<i>Not entered</i>')|raw }}</td>
</tr>
{% endmacro %}
{% macro divider() %}
<tr>
<td colspan="2" class="divider"><hr /></td>
</tr>
{% endmacro %}
## Instru... | {% macro info_row(name, value) %}
<tr>
<th class="label">{{ name }}</th>
+ {% if value != null %}
+ <td class="data">{{ value }}</td>
+ {% else %}
- <td class="data">{{ value|default('<i>Not entered</i>')|raw }}</td>
? ------------------ ... | 6 | 0.5 | 5 | 1 |
3f17f951d05df849ccf87cae92d7318587857050 | 001-create-citus-extension.sql | 001-create-citus-extension.sql | CREATE EXTENSION citus;
| -- wrap in transaction to ensure Docker flag always visible
BEGIN;
CREATE EXTENSION citus;
-- add Docker flag to node metadata
UPDATE pg_dist_node_metadata SET metadata=jsonb_insert(metadata, '{docker}', 'true');
COMMIT;
| Add Docker flag to node metadata | Add Docker flag to node metadata
| SQL | apache-2.0 | citusdata/docker | sql | ## Code Before:
CREATE EXTENSION citus;
## Instruction:
Add Docker flag to node metadata
## Code After:
-- wrap in transaction to ensure Docker flag always visible
BEGIN;
CREATE EXTENSION citus;
-- add Docker flag to node metadata
UPDATE pg_dist_node_metadata SET metadata=jsonb_insert(metadata, '{docker}', 'true');
... | + -- wrap in transaction to ensure Docker flag always visible
+ BEGIN;
CREATE EXTENSION citus;
+
+ -- add Docker flag to node metadata
+ UPDATE pg_dist_node_metadata SET metadata=jsonb_insert(metadata, '{docker}', 'true');
+ COMMIT; | 6 | 6 | 6 | 0 |
d2fc123454bdf0089043ef3926798f3f79904c60 | Lib/test/test_openpty.py | Lib/test/test_openpty.py |
import os, unittest
from test.test_support import run_unittest, TestSkipped
class OpenptyTest(unittest.TestCase):
def test(self):
try:
master, slave = os.openpty()
except AttributeError:
raise TestSkipped, "No openpty() available."
if not os.isatty(slave):
... |
import os, unittest
from test.test_support import run_unittest, TestSkipped
if not hasattr(os, "openpty"):
raise TestSkipped, "No openpty() available."
class OpenptyTest(unittest.TestCase):
def test(self):
master, slave = os.openpty()
if not os.isatty(slave):
self.fail("Slave-end... | Move the check for openpty to the beginning. | Move the check for openpty to the beginning.
| Python | mit | sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator | python | ## Code Before:
import os, unittest
from test.test_support import run_unittest, TestSkipped
class OpenptyTest(unittest.TestCase):
def test(self):
try:
master, slave = os.openpty()
except AttributeError:
raise TestSkipped, "No openpty() available."
if not os.isatty(... |
import os, unittest
from test.test_support import run_unittest, TestSkipped
+ if not hasattr(os, "openpty"):
+ raise TestSkipped, "No openpty() available."
+
+
class OpenptyTest(unittest.TestCase):
def test(self):
- try:
- master, slave = os.openpty()
? ----
+ master... | 10 | 0.454545 | 5 | 5 |
34120e47268354d025e45cfdb1cb798d0d1385ac | packages/facebook-oauth/package.js | packages/facebook-oauth/package.js | Package.describe({
summary: "Facebook OAuth flow",
version: "1.7.1"
});
Package.onUse(api => {
api.versionsFrom('1.11.1');
api.use('ecmascript', ['client', 'server']);
api.use('oauth2', ['client', 'server']);
api.use('oauth', ['client', 'server']);
api.use('http', ['server']);
api.use('random', 'clien... | Package.describe({
summary: "Facebook OAuth flow",
version: "1.7.1"
});
Package.onUse(api => {
api.use('ecmascript', ['client', 'server']);
api.use('oauth2', ['client', 'server']);
api.use('oauth', ['client', 'server']);
api.use('http', ['server']);
api.use('random', 'client');
api.use('service-configu... | Support all arguments of OAuth._redirectUri | Support all arguments of OAuth._redirectUri
| JavaScript | mit | Hansoft/meteor,Hansoft/meteor,Hansoft/meteor,Hansoft/meteor,Hansoft/meteor,Hansoft/meteor,Hansoft/meteor | javascript | ## Code Before:
Package.describe({
summary: "Facebook OAuth flow",
version: "1.7.1"
});
Package.onUse(api => {
api.versionsFrom('1.11.1');
api.use('ecmascript', ['client', 'server']);
api.use('oauth2', ['client', 'server']);
api.use('oauth', ['client', 'server']);
api.use('http', ['server']);
api.use(... | Package.describe({
summary: "Facebook OAuth flow",
version: "1.7.1"
});
Package.onUse(api => {
- api.versionsFrom('1.11.1');
-
api.use('ecmascript', ['client', 'server']);
api.use('oauth2', ['client', 'server']);
api.use('oauth', ['client', 'server']);
api.use('http', ['server']);
... | 2 | 0.1 | 0 | 2 |
4fa0bdacf59a1a9fcdf01b2fd6160bbd6ee59260 | areweblic/templates/licenses.html | areweblic/templates/licenses.html | {% extends "layout.html" %}
{% from "bootstrap/utils.html" import form_button, icon %}
{% block content %}
<h1>{{ title|default('Licenses') }}</h1>
<p>Total license count: {{ pagination.query.count() }}</p>
{% if pagination.items %}
<table class="table">
<thead>
<tr>
<th>ID</th>
{% ... | {% extends "layout.html" %}
{% from "bootstrap/utils.html" import form_button, icon %}
{% block content %}
<h1>{{ title|default('Licenses') }}</h1>
<p>Total license count: {{ pagination.query.count() }}</p>
{% if pagination.items %}
<table class="table">
<thead>
<tr>
<th>ID</th>
{% ... | Use get method for the form button | Use get method for the form button
| HTML | mit | avalentino/slim,avalentino/slim | html | ## Code Before:
{% extends "layout.html" %}
{% from "bootstrap/utils.html" import form_button, icon %}
{% block content %}
<h1>{{ title|default('Licenses') }}</h1>
<p>Total license count: {{ pagination.query.count() }}</p>
{% if pagination.items %}
<table class="table">
<thead>
<tr>
<th>ID<... | {% extends "layout.html" %}
{% from "bootstrap/utils.html" import form_button, icon %}
{% block content %}
<h1>{{ title|default('Licenses') }}</h1>
<p>Total license count: {{ pagination.query.count() }}</p>
{% if pagination.items %}
<table class="table">
<thead>
<tr>
... | 2 | 0.05 | 1 | 1 |
d5027732a4eb7ce1e623c2c44bcf8cc61af0d81d | src/components/Settings/index.js | src/components/Settings/index.js | import * as togglActions from '../../actions/toggl';
import React, { Component } from 'react';
import Toggl from './Toggl';
import { connect } from 'react-redux';
import { logout } from '../../actions/auth'
class Settings extends Component {
constructor() {
super();
this.saveToggl = this.saveToggl.bind(this... | import * as togglActions from '../../actions/toggl';
import React, { Component } from 'react';
import Toggl from './Toggl';
import { connect } from 'react-redux';
import { logout } from '../../actions/auth'
class Settings extends Component {
constructor() {
super();
this.saveToggl = this.saveToggl.bind(this... | Move logout button to Settings page and add slight layout adjustment | Move logout button to Settings page and add slight layout adjustment
| JavaScript | mit | nadavspi/UnwiseConnect,nadavspi/UnwiseConnect,nadavspi/UnwiseConnect | javascript | ## Code Before:
import * as togglActions from '../../actions/toggl';
import React, { Component } from 'react';
import Toggl from './Toggl';
import { connect } from 'react-redux';
import { logout } from '../../actions/auth'
class Settings extends Component {
constructor() {
super();
this.saveToggl = this.sav... | import * as togglActions from '../../actions/toggl';
import React, { Component } from 'react';
import Toggl from './Toggl';
import { connect } from 'react-redux';
import { logout } from '../../actions/auth'
class Settings extends Component {
constructor() {
super();
this.saveToggl = th... | 34 | 0.723404 | 23 | 11 |
8c1abfb854c384912cc3d30c51b1d8f26c94d344 | app/views/literatures/index.html.slim | app/views/literatures/index.html.slim | h1 Homepage
table border="1"
thead
tr
th Title
th Type
th Content
th Author
th Published At
th Tags
tbody
- @literature.each do |literature|
tr
td = link_to literature.title, literature
td = literature.type
td = truncate literature.content
... | h1 Homepage
table border="1"
thead
tr
th Title
th Type
th Content
th Author
th Published At
th Tags
tbody
- @literature.each do |literature|
tr
td = link_to literature.title, literature
td = literature.type
td = truncate literature.content
... | Add link to author in literature index. | Add link to author in literature index.
| Slim | mit | brianvanburken/publisher-rails,brianvanburken/publisher,brianvanburken/publisher,robinkanters/publisher,robinkanters/publisher,brianvanburken/publisher,robinkanters/publisher,brianvanburken/publisher-rails,brianvanburken/publisher-rails | slim | ## Code Before:
h1 Homepage
table border="1"
thead
tr
th Title
th Type
th Content
th Author
th Published At
th Tags
tbody
- @literature.each do |literature|
tr
td = link_to literature.title, literature
td = literature.type
td = truncate liter... | h1 Homepage
table border="1"
thead
tr
th Title
th Type
th Content
th Author
th Published At
th Tags
tbody
- @literature.each do |literature|
tr
td = link_to literature.title, literature
td = literature.type
td ... | 2 | 0.105263 | 1 | 1 |
c3fa815d73f253cb35f1b6c047755e23af1a1dee | src/operator/application.jsx | src/operator/application.jsx | import React from 'react';
import Visitors from './visitors';
import * as actions from './actions';
export default React.createClass({
propTypes: {
visitors: React.PropTypes.array.isRequired,
dispatch: React.PropTypes.func.isRequired
},
handleInvite(visitorId) {
this.props.dispatch... | import React from 'react';
import Visitors from './visitors';
import * as actions from './actions';
export default class Application extends React.Component {
handleInvite(visitorId) {
this.props.dispatch(actions.inviteVisitor(visitorId));
}
render() {
return (
<div>
... | Rewrite <Application /> to be an ES6 class | Rewrite <Application /> to be an ES6 class | JSX | apache-2.0 | JustBlackBird/mibew-ui,JustBlackBird/mibew-ui | jsx | ## Code Before:
import React from 'react';
import Visitors from './visitors';
import * as actions from './actions';
export default React.createClass({
propTypes: {
visitors: React.PropTypes.array.isRequired,
dispatch: React.PropTypes.func.isRequired
},
handleInvite(visitorId) {
thi... | import React from 'react';
import Visitors from './visitors';
import * as actions from './actions';
+ export default class Application extends React.Component {
- export default React.createClass({
- propTypes: {
- visitors: React.PropTypes.array.isRequired,
- dispatch: React.PropTypes.func... | 18 | 0.642857 | 9 | 9 |
44a8c9cda972404e59b3c321667913b5068a746a | client/lib/components/Stats/style.scss | client/lib/components/Stats/style.scss | @import 'main/style/defaults';
.Stats {
.card-body {
padding: 0.75rem;
text-align: center;
}
}
.Stats__value {
font-size: 1.4rem;
}
| @import 'main/style/defaults';
.Stats {
.card-body {
padding: 0.75rem;
text-align: center;
}
}
.Stats__title {
color: color: $text-muted;
}
.Stats__value {
font-size: 1.25rem;
}
| Reduce font size for stats values | Reduce font size for stats values
| SCSS | mit | dreikanter/feeder,dreikanter/feeder,dreikanter/feeder | scss | ## Code Before:
@import 'main/style/defaults';
.Stats {
.card-body {
padding: 0.75rem;
text-align: center;
}
}
.Stats__value {
font-size: 1.4rem;
}
## Instruction:
Reduce font size for stats values
## Code After:
@import 'main/style/defaults';
.Stats {
.card-body {
padding: 0.75rem;
text-al... | @import 'main/style/defaults';
.Stats {
.card-body {
padding: 0.75rem;
text-align: center;
}
}
+ .Stats__title {
+ color: color: $text-muted;
+ }
+
.Stats__value {
- font-size: 1.4rem;
? ^
+ font-size: 1.25rem;
? ^^
} | 6 | 0.5 | 5 | 1 |
b0c38ed6d379d7cfea3c292a6a8f1d94e856f36c | src/Oro/Bundle/LocaleBundle/Resources/doc/reference/current-localization.md | src/Oro/Bundle/LocaleBundle/Resources/doc/reference/current-localization.md | Current Localization
====================
Table of Contents
-----------------
- [Receive Current Localization](#receive-current-localization)
- [Provide Current Localization](#provide-current-localization)
Receive Current Localization
============================
For receive current localization use `Oro\Bundle\Lo... | Current Localization
====================
Table of Contents
-----------------
- [Receive Current Localization](#receive-current-localization)
- [Provide Current Localization](#provide-current-localization)
Receive Current Localization
============================
For receive current localization use `Oro\Bundle\Lo... | Update documentation, UPGRADE.md - udpated docs | BB-3756: Update documentation, UPGRADE.md
- udpated docs | Markdown | mit | Djamy/platform,trustify/oroplatform,orocrm/platform,geoffroycochard/platform,orocrm/platform,Djamy/platform,orocrm/platform,geoffroycochard/platform,trustify/oroplatform,geoffroycochard/platform,trustify/oroplatform,Djamy/platform | markdown | ## Code Before:
Current Localization
====================
Table of Contents
-----------------
- [Receive Current Localization](#receive-current-localization)
- [Provide Current Localization](#provide-current-localization)
Receive Current Localization
============================
For receive current localization us... | Current Localization
====================
Table of Contents
-----------------
- [Receive Current Localization](#receive-current-localization)
- [Provide Current Localization](#provide-current-localization)
Receive Current Localization
============================
For receive current localiz... | 4 | 0.086957 | 2 | 2 |
494091954e9a0d2ebf2c06944dfb424b93b7cd77 | less/sticky.less | less/sticky.less | .badge-sticky {
background: #d13e32;
}
.post-discussion-stickied {
& .post-icon, & .post-activity-info, & .post-activity-info a {
color: #d13e32;
}
}
.discussion-excerpt {
display: block !important;
margin-bottom: 10px;
white-space: normal;
font-size: 12px;
line-height: 1.5em;
color: #aaa;
}
| .badge-sticky {
background: #d13e32;
}
.post-discussion-stickied {
& .post-icon, & .post-activity-info, & .post-activity-info a {
color: #d13e32;
}
}
.discussion-excerpt {
margin-bottom: 10px;
white-space: normal;
font-size: 12px;
line-height: 1.5em;
color: @fl-body-muted-more-color;
.discussion-... | Hide excerpt in discussion list pane + on mobile | Hide excerpt in discussion list pane + on mobile
| Less | mit | flarum/flarum-ext-sticky,flarum/sticky,flarum/flarum-ext-sticky,flarum/sticky | less | ## Code Before:
.badge-sticky {
background: #d13e32;
}
.post-discussion-stickied {
& .post-icon, & .post-activity-info, & .post-activity-info a {
color: #d13e32;
}
}
.discussion-excerpt {
display: block !important;
margin-bottom: 10px;
white-space: normal;
font-size: 12px;
line-height: 1.5em;
colo... | .badge-sticky {
background: #d13e32;
}
.post-discussion-stickied {
& .post-icon, & .post-activity-info, & .post-activity-info a {
color: #d13e32;
}
}
.discussion-excerpt {
- display: block !important;
margin-bottom: 10px;
white-space: normal;
font-size: 12px;
line-height: 1... | 14 | 0.875 | 12 | 2 |
f8143186c753a9dbad384e682caba4ac3a52f6ac | config/initializers/delayed_job.rb | config/initializers/delayed_job.rb | if Rails.env.production?
log_file = \
File.join Rails.root, 'log', 'delayed_job.log'
Delayed::Worker.logger = \
Logger.new log_file
if caller.last =~ /script\/delayed_job/ or (File.basename($0) == "rake" and ARGV[0] =~ /jobs\:work/)
ActiveRecord::Base.logger = Delayed::Worker.logger
end
Action... | if Rails.env.production?
log_file = \
File.join Rails.root, 'log', 'delayed_job.log'
Delayed::Worker.logger = \
Logger.new log_file
if caller.last =~ /script\/delayed_job/ or (File.basename($0) == "rake" and ARGV[0] =~ /jobs\:work/)
ActiveRecord::Base.logger = Delayed::Worker.logger
end
Action... | Hide delayed job sql messages in production.log | Hide delayed job sql messages in production.log | Ruby | mit | djsegal/julia_observer,djsegal/julia_observer,djsegal/julia_observer | ruby | ## Code Before:
if Rails.env.production?
log_file = \
File.join Rails.root, 'log', 'delayed_job.log'
Delayed::Worker.logger = \
Logger.new log_file
if caller.last =~ /script\/delayed_job/ or (File.basename($0) == "rake" and ARGV[0] =~ /jobs\:work/)
ActiveRecord::Base.logger = Delayed::Worker.logger... | if Rails.env.production?
log_file = \
File.join Rails.root, 'log', 'delayed_job.log'
Delayed::Worker.logger = \
Logger.new log_file
if caller.last =~ /script\/delayed_job/ or (File.basename($0) == "rake" and ARGV[0] =~ /jobs\:work/)
ActiveRecord::Base.logger = Delayed::Worker.lo... | 24 | 1.6 | 24 | 0 |
8e5b9afa8ff62d6e72d9117c81b7680fa09c439e | CHANGES.rst | CHANGES.rst | 0.1.0 - Development
-------------------
The first release.
| 0.1.1 (2016-06-29)
------------------
- Fixed GH-3: The depended six must later than 1.9.0 because we used its
"python_2_unicode_compatible" decorator.
0.1.0 (2015-06-19)
------------------
The first release.
| Update the changelog for 0.1.1 | Update the changelog for 0.1.1
| reStructuredText | mit | tonyseek/openvpn-status | restructuredtext | ## Code Before:
0.1.0 - Development
-------------------
The first release.
## Instruction:
Update the changelog for 0.1.1
## Code After:
0.1.1 (2016-06-29)
------------------
- Fixed GH-3: The depended six must later than 1.9.0 because we used its
"python_2_unicode_compatible" decorator.
0.1.0 (2015-06-19)
-----... | - 0.1.0 - Development
+ 0.1.1 (2016-06-29)
- -------------------
? -
+ ------------------
+
+ - Fixed GH-3: The depended six must later than 1.9.0 because we used its
+ "python_2_unicode_compatible" decorator.
+
+ 0.1.0 (2015-06-19)
+ ------------------
The first release. | 10 | 2.5 | 8 | 2 |
6510581e2dd5165fa07cd69c9fc95c23d61dca4f | src/index.js | src/index.js | import GitHubApi from "github";
import _ from "lodash";
const github = new GitHubApi({
protocol: "https",
Promise,
timeout: 5000,
});
function pager(pulls) {
_.forEach(pulls, (pull) => {
if (!pull.body) {
return;
}
// eslint-disable-next-line max-len
const regex = /Fixed tickets[\s]*\|[... | import GitHubApi from "github";
import _ from "lodash";
const github = new GitHubApi({
protocol: "https",
Promise,
timeout: 5000,
});
function processPulls(pulls) {
_.forEach(pulls, (pull) => {
if (!pull.body) {
return;
}
// eslint-disable-next-line max-len
const regex = /Fixed tickets[... | Use iteration rather than recursion to read through the pull requests | Use iteration rather than recursion to read through the pull requests
| JavaScript | mit | nhajidin/close-babel-issues | javascript | ## Code Before:
import GitHubApi from "github";
import _ from "lodash";
const github = new GitHubApi({
protocol: "https",
Promise,
timeout: 5000,
});
function pager(pulls) {
_.forEach(pulls, (pull) => {
if (!pull.body) {
return;
}
// eslint-disable-next-line max-len
const regex = /Fixed... | import GitHubApi from "github";
import _ from "lodash";
const github = new GitHubApi({
protocol: "https",
Promise,
timeout: 5000,
});
- function pager(pulls) {
? ^^ ^
+ function processPulls(pulls) {
? ^^^ ^^^^^^^
_.forEach(pulls, (pull) => {
if (!pull.body) {
... | 16 | 0.290909 | 10 | 6 |
7bbfeed7d10121be2d3080ed24a364eefb2dac4c | res/layout/textpopup.xml | res/layout/textpopup.xml | <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent" android:padding="10dp">
<ScrollView
android:la... | <?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent" android:padding="4dip">
<ScrollView
android:layo... | Change top element of popup layout to FrameLayout | Change top element of popup layout to FrameLayout
| XML | apache-2.0 | Unhelpful/TicTacToe_Android | xml | ## Code Before:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent" android:padding="10dp">
<ScrollView
... | <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
? ^^^ --
+ <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
? ^^^^
android:orientation="vertical"
android:layout_width="fill_parent"
- ... | 12 | 0.666667 | 6 | 6 |
369a3c43055a70b37391905a6a160e1272f48a76 | src/syntax/template-element.js | src/syntax/template-element.js | import BaseSyntax from './base.js';
/**
* The class to define the TemplateElement syntax
*
* @class TemplateElement
*/
export default
class TemplateElement extends BaseSyntax {
/**
* Create a template literal
*
* @constructor
*/
constructor() {
super('TemplateElement');
this.value = {r... | import BaseSyntax from './base.js';
/**
* The class to define the TemplateElement syntax
*
* @class TemplateElement
*/
export default
class TemplateElement extends BaseSyntax {
/**
* Create a template literal
*
* @constructor
*/
constructor() {
super('TemplateElement');
this.value = {r... | Use methods rather than properties | fixed: Use methods rather than properties
| JavaScript | mit | bigsan/xto6,listepo/xto6,mohebifar/lebab,lebab/lebab,mohebifar/xto6 | javascript | ## Code Before:
import BaseSyntax from './base.js';
/**
* The class to define the TemplateElement syntax
*
* @class TemplateElement
*/
export default
class TemplateElement extends BaseSyntax {
/**
* Create a template literal
*
* @constructor
*/
constructor() {
super('TemplateElement');
... | import BaseSyntax from './base.js';
/**
* The class to define the TemplateElement syntax
*
* @class TemplateElement
*/
export default
class TemplateElement extends BaseSyntax {
/**
* Create a template literal
*
* @constructor
*/
constructor() {
super('Tem... | 4 | 0.105263 | 2 | 2 |
f2bf7807754d13c92bd2901072dd804dda61805f | cla_public/apps/contact/constants.py | cla_public/apps/contact/constants.py | "Contact constants"
from flask.ext.babel import lazy_gettext as _
DAY_TODAY = 'today'
DAY_SPECIFIC = 'specific_day'
DAY_CHOICES = (
(DAY_TODAY, _('Call me today at')),
(DAY_SPECIFIC, _('Call me in the next week on'))
)
| "Contact constants"
from flask.ext.babel import lazy_gettext as _
DAY_TODAY = 'today'
DAY_SPECIFIC = 'specific_day'
DAY_CHOICES = (
(DAY_TODAY, _('Call me today at')),
(DAY_SPECIFIC, _('Call me in on'))
)
| Update button label (call back time picker) | FE: Update button label (call back time picker)
| Python | mit | ministryofjustice/cla_public,ministryofjustice/cla_public,ministryofjustice/cla_public,ministryofjustice/cla_public | python | ## Code Before:
"Contact constants"
from flask.ext.babel import lazy_gettext as _
DAY_TODAY = 'today'
DAY_SPECIFIC = 'specific_day'
DAY_CHOICES = (
(DAY_TODAY, _('Call me today at')),
(DAY_SPECIFIC, _('Call me in the next week on'))
)
## Instruction:
FE: Update button label (call back time picker)
## Code ... | "Contact constants"
from flask.ext.babel import lazy_gettext as _
DAY_TODAY = 'today'
DAY_SPECIFIC = 'specific_day'
DAY_CHOICES = (
(DAY_TODAY, _('Call me today at')),
- (DAY_SPECIFIC, _('Call me in the next week on'))
? --------------
+ (DAY_SPECIFIC, ... | 2 | 0.181818 | 1 | 1 |
496af05201408614fdecabde5905b24eaf0948a7 | e2e/cypress/support/commands.ts | e2e/cypress/support/commands.ts | Cypress.Commands.add('login', (username = 'admin') => {
window.localStorage.setItem('USER', JSON.stringify({ username }));
});
| Cypress.Commands.add('login', (username = 'admin') => {
window.localStorage.setItem('USER', JSON.stringify({ username }));
});
export {};
| Fix issue with missing export | Fix issue with missing export
| TypeScript | mit | sheldarr/Votenger,sheldarr/Votenger | typescript | ## Code Before:
Cypress.Commands.add('login', (username = 'admin') => {
window.localStorage.setItem('USER', JSON.stringify({ username }));
});
## Instruction:
Fix issue with missing export
## Code After:
Cypress.Commands.add('login', (username = 'admin') => {
window.localStorage.setItem('USER', JSON.stringify({ u... | Cypress.Commands.add('login', (username = 'admin') => {
window.localStorage.setItem('USER', JSON.stringify({ username }));
});
+
+ export {}; | 2 | 0.666667 | 2 | 0 |
a9105dfc0c1fa62d0446d790ced40cda41556432 | app/styles/main.css | app/styles/main.css | .app {
display: flex;
flex-direction: column;
min-height: 100vh;
}
.modal-content {
font-size: 140%;
}
main {
flex: 1;
}
footer {
padding: 1em;
}
.center {
margin-left: auto;
margin-right: auto;
}
.light {
color: #ddd;
}
.dark {
color: #666;
}
/* from http://www.mademyday.de/css-height-equals-... | .app {
display: flex;
flex-direction: column;
height: 100vh;
}
.modal-content {
font-size: 140%;
}
main {
flex: 1 0 auto;
}
footer {
padding: 1em;
}
.center {
margin-left: auto;
margin-right: auto;
}
.light {
color: #ddd;
}
.dark {
color: #666;
}
/* from http://www.mademyday.de/css-height-equa... | Fix an IE related bug | Fix an IE related bug
Now the footer is always on the bottom of the page
| CSS | mit | loonkwil/reversi,loonkwil/reversi | css | ## Code Before:
.app {
display: flex;
flex-direction: column;
min-height: 100vh;
}
.modal-content {
font-size: 140%;
}
main {
flex: 1;
}
footer {
padding: 1em;
}
.center {
margin-left: auto;
margin-right: auto;
}
.light {
color: #ddd;
}
.dark {
color: #666;
}
/* from http://www.mademyday.de/cs... | .app {
display: flex;
flex-direction: column;
- min-height: 100vh;
? ----
+ height: 100vh;
}
.modal-content {
font-size: 140%;
}
main {
- flex: 1;
+ flex: 1 0 auto;
}
footer {
padding: 1em;
}
.center {
margin-left: auto;
margin-right: auto;
}
.ligh... | 4 | 0.093023 | 2 | 2 |
2394de5f46d264e2a585b6cd4b87e4a45c99cfeb | cast_convert/__init__.py | cast_convert/__init__.py | from . import *
from .convert import *
from .media_info import *
from .watch import *
| __version__ = '0.1.5.18'
from .cmd import cmd as command
from .watch import *
from . import *
from .convert import *
from .media_info import *
@click.command(help="Print version")
def version():
print(__version__)
command.add_command(version)
| Add version and version command | Add version and version command
| Python | agpl-3.0 | thismachinechills/cast_convert | python | ## Code Before:
from . import *
from .convert import *
from .media_info import *
from .watch import *
## Instruction:
Add version and version command
## Code After:
__version__ = '0.1.5.18'
from .cmd import cmd as command
from .watch import *
from . import *
from .convert import *
from .media_info import *
@click... | + __version__ = '0.1.5.18'
+
+
+ from .cmd import cmd as command
+ from .watch import *
from . import *
from .convert import *
from .media_info import *
- from .watch import *
+
+
+ @click.command(help="Print version")
+ def version():
+ print(__version__)
+
+
+ command.add_command(version) | 14 | 3.5 | 13 | 1 |
3d139d5a93b83dc69e13d6fcc7ae0c8ef9d39be5 | backend/app/assets/stylesheets/spree/backend/shared/_layout.scss | backend/app/assets/stylesheets/spree/backend/shared/_layout.scss | html {
height: 100%;
}
body {
position: relative;
min-height: 100%;
&.new-layout {
padding-left: $width-sidebar;
}
}
.admin-nav {
@include position(absolute, 0 null 0 0);
width: $width-sidebar;
}
.content-wrapper {
body:not(.new-layout) & {
margin-left: $width-sidebar;
}
body.new-layout... | html {
height: 100%;
}
body {
position: relative;
min-height: 100%;
&.new-layout {
padding-left: $width-sidebar;
}
}
.admin-nav {
@include position(absolute, 0 null 0 0);
width: $width-sidebar;
}
.content-wrapper {
body:not(.new-layout) & {
margin-left: $width-sidebar;
}
body.new-layout... | Make sure tabs condense in the new layout | Make sure tabs condense in the new layout
Without this the tabs would never collapse into the dropdown. Because
the tabs are checking for `offsetWidth`, if you let it overflow it would
always think that there was enough space.
| SCSS | bsd-3-clause | jordan-brough/solidus,pervino/solidus,pervino/solidus,Arpsara/solidus,pervino/solidus,jordan-brough/solidus,Arpsara/solidus,pervino/solidus,Arpsara/solidus,Arpsara/solidus,jordan-brough/solidus,jordan-brough/solidus | scss | ## Code Before:
html {
height: 100%;
}
body {
position: relative;
min-height: 100%;
&.new-layout {
padding-left: $width-sidebar;
}
}
.admin-nav {
@include position(absolute, 0 null 0 0);
width: $width-sidebar;
}
.content-wrapper {
body:not(.new-layout) & {
margin-left: $width-sidebar;
}
... | html {
height: 100%;
}
body {
position: relative;
min-height: 100%;
&.new-layout {
padding-left: $width-sidebar;
}
}
.admin-nav {
@include position(absolute, 0 null 0 0);
width: $width-sidebar;
}
.content-wrapper {
body:not(.new-layout) & {
margin-le... | 1 | 0.017241 | 1 | 0 |
f253c18c46aa6f9e87111760f96bfec336e7fde7 | .travis.yml | .travis.yml | language: java
dist: trusty
jdk:
- oraclejdk8
before_install:
- if [ ! -z "$GPG_SECRET_KEYS" ]; then echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --no-tty --no-use-agent --import; fi
- if [ ! -z "$GPG_OWNERTRUST" ]; then echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust; f... | language: java
dist: trusty
jdk:
- oraclejdk8
before_install:
- if [ ! -z "$GPG_SECRET_KEYS" ]; then echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --no-tty --no-use-agent --import; fi
- if [ ! -z "$GPG_OWNERTRUST" ]; then echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust; f... | Use all branches for deploy | Use all branches for deploy
| YAML | apache-2.0 | Hevelian/hevelian-olastic,Hevelian/hevelian-olastic | yaml | ## Code Before:
language: java
dist: trusty
jdk:
- oraclejdk8
before_install:
- if [ ! -z "$GPG_SECRET_KEYS" ]; then echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --no-tty --no-use-agent --import; fi
- if [ ! -z "$GPG_OWNERTRUST" ]; then echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --impo... | language: java
dist: trusty
jdk:
- oraclejdk8
before_install:
- if [ ! -z "$GPG_SECRET_KEYS" ]; then echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --no-tty --no-use-agent --import; fi
- if [ ! -z "$GPG_OWNERTRUST" ]; then echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --impo... | 1 | 0.032258 | 1 | 0 |
e13a24e40089bef7c96d9868a8b8514f21f3a9cc | app/assets/javascripts/.eslintrc.json | app/assets/javascripts/.eslintrc.json | {
"parser": "babel-eslint",
"env": {
"browser": true
},
"extends": [
"eslint:recommended",
"plugin:prettier/recommended"
],
"parserOptions": {
"ecmaVersion": 5,
"sourceType": "script"
},
"rules": {
"curly": ["error", "all"],
"max-len": ["error", {"code": 100, "ignoreUrls": ... | {
"parser": "babel-eslint",
"env": {
"browser": true
},
"extends": [
"eslint:recommended",
"plugin:prettier/recommended"
],
"parserOptions": {
"ecmaVersion": 5,
"sourceType": "script"
},
"rules": {
"curly": ["error", "all"],
"max-len": ["error", {"code": 100, "ignoreUrls": ... | Remove outdated ESLint rule for old JS files | Remove outdated ESLint rule for old JS files
| JSON | mit | quintel/etmodel,quintel/etmodel,quintel/etmodel,quintel/etmodel | json | ## Code Before:
{
"parser": "babel-eslint",
"env": {
"browser": true
},
"extends": [
"eslint:recommended",
"plugin:prettier/recommended"
],
"parserOptions": {
"ecmaVersion": 5,
"sourceType": "script"
},
"rules": {
"curly": ["error", "all"],
"max-len": ["error", {"code": 100... | {
"parser": "babel-eslint",
"env": {
"browser": true
},
"extends": [
"eslint:recommended",
"plugin:prettier/recommended"
],
"parserOptions": {
"ecmaVersion": 5,
"sourceType": "script"
},
"rules": {
"curly": ["error", "all"],
"max-len": ["erro... | 3 | 0.15 | 1 | 2 |
498363351afa8edf8e2cca2a235e023efccae11d | app/react/src/client/preview/types-6-0.ts | app/react/src/client/preview/types-6-0.ts | import { ComponentClass, FunctionComponent } from 'react';
import { Args as DefaultArgs, Annotations, BaseMeta, BaseStory } from '@storybook/addons';
import { StoryFnReactReturnType } from './types';
export { Args, ArgTypes, Parameters, StoryContext } from '@storybook/addons';
type ReactComponent = ComponentClass<any... | import { ComponentType } from 'react';
import { Args as DefaultArgs, Annotations, BaseMeta, BaseStory } from '@storybook/addons';
import { StoryFnReactReturnType } from './types';
export { Args, ArgTypes, Parameters, StoryContext } from '@storybook/addons';
type ReactComponent = ComponentType<any>;
type ReactReturnTy... | Simplify component type for CSF typing | React: Simplify component type for CSF typing
| TypeScript | mit | storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook | typescript | ## Code Before:
import { ComponentClass, FunctionComponent } from 'react';
import { Args as DefaultArgs, Annotations, BaseMeta, BaseStory } from '@storybook/addons';
import { StoryFnReactReturnType } from './types';
export { Args, ArgTypes, Parameters, StoryContext } from '@storybook/addons';
type ReactComponent = Co... | - import { ComponentClass, FunctionComponent } from 'react';
? ^^^^^^^^^^^^^^^^^^ -- --
+ import { ComponentType } from 'react';
? ^^
import { Args as DefaultArgs, Annotations, BaseMeta, BaseStory } from '@storybook/addons';
import { StoryFnReactReturnType } from './types';
... | 4 | 0.166667 | 2 | 2 |
a6cbaac2d9337a1b896082d25ee304f2579a2377 | package.json | package.json | {
"name": "prosemirror-gapcursor",
"version": "1.0.3",
"description": "ProseMirror plugin for cursors at normally impossible-to-reach positions",
"license": "MIT",
"main": "dist/index.js",
"style": "style/gapcursor.css",
"dependencies": {
"prosemirror-keymap": "^1.0.0",
"prosemirror-model": "^1.0.... | {
"name": "prosemirror-gapcursor",
"version": "1.0.3",
"description": "ProseMirror plugin for cursors at normally impossible-to-reach positions",
"license": "MIT",
"main": "dist/index.js",
"style": "style/gapcursor.css",
"dependencies": {
"prosemirror-keymap": "^1.0.0",
"prosemirror-model": "^1.0.... | Remove a bunch of spurious dependencies | Remove a bunch of spurious dependencies
See https://discuss.prosemirror.net/t/versioning-for-core-modules/1638
| JSON | mit | ProseMirror/prosemirror-gapcursor | json | ## Code Before:
{
"name": "prosemirror-gapcursor",
"version": "1.0.3",
"description": "ProseMirror plugin for cursors at normally impossible-to-reach positions",
"license": "MIT",
"main": "dist/index.js",
"style": "style/gapcursor.css",
"dependencies": {
"prosemirror-keymap": "^1.0.0",
"prosemirro... | {
"name": "prosemirror-gapcursor",
"version": "1.0.3",
"description": "ProseMirror plugin for cursors at normally impossible-to-reach positions",
"license": "MIT",
"main": "dist/index.js",
"style": "style/gapcursor.css",
"dependencies": {
"prosemirror-keymap": "^1.0.0",
"prosem... | 7 | 0.233333 | 0 | 7 |
c0b578be80ad27fd67235b7b79fcaf4e69d49c72 | tests/haskell/libExecutionOutputTest/buildTest.sh | tests/haskell/libExecutionOutputTest/buildTest.sh | BIN_DIR=$1
SOURCE_DIR=$2
libname=$(stack query | awk 'NR==2' | sed 's/://g'| sed 's/ //g')
libver=$(stack query | awk 'NR==4' | sed 's/version: //g' | sed "s/'//g" | sed "s/ //g")
if [ "$(id -u)" -ne 0 ]
then
# Build haskell bindings package.
stack build --no-run-tests --extra-lib-dirs=${BIN_DIR}
LIB=$(... | BIN_DIR=$1
SOURCE_DIR=$2
libname="opencoglib"
libver="0.1.0.0"
if [ "$(id -u)" -ne 0 ]
then
# Build haskell bindings package.
stack build --no-run-tests --extra-lib-dirs=${BIN_DIR}
LIB=$(find . -name "*$libname*.so" | awk 'NR==1')
rm "$SOURCE_DIR/lib$libname-$libver.so"
cp $LIB "$SOURCE_DIR/lib$... | Fix for HaskellExecutionTest sometimes failing | Fix for HaskellExecutionTest sometimes failing
for some reason the code to get the library name doesn't work all the time. For this test it should be no problem to hardcode it. | Shell | agpl-3.0 | AmeBel/atomspace,AmeBel/atomspace,AmeBel/atomspace,ArvinPan/atomspace,rTreutlein/atomspace,inflector/atomspace,rTreutlein/atomspace,ceefour/atomspace,misgeatgit/atomspace,inflector/atomspace,AmeBel/atomspace,yantrabuddhi/atomspace,inflector/atomspace,rTreutlein/atomspace,yantrabuddhi/atomspace,ArvinPan/atomspace,ceefou... | shell | ## Code Before:
BIN_DIR=$1
SOURCE_DIR=$2
libname=$(stack query | awk 'NR==2' | sed 's/://g'| sed 's/ //g')
libver=$(stack query | awk 'NR==4' | sed 's/version: //g' | sed "s/'//g" | sed "s/ //g")
if [ "$(id -u)" -ne 0 ]
then
# Build haskell bindings package.
stack build --no-run-tests --extra-lib-dirs=${BIN_D... | BIN_DIR=$1
SOURCE_DIR=$2
- libname=$(stack query | awk 'NR==2' | sed 's/://g'| sed 's/ //g')
- libver=$(stack query | awk 'NR==4' | sed 's/version: //g' | sed "s/'//g" | sed "s/ //g")
+ libname="opencoglib"
+ libver="0.1.0.0"
if [ "$(id -u)" -ne 0 ]
then
# Build haskell bindings package.
stack... | 5 | 0.263158 | 2 | 3 |
2626b5575a2a0f4f7661142923d454bb0f3a9b51 | .github/workflows/ci.yml | .github/workflows/ci.yml | on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
name: Continuous integration
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
jobs:
tests:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
include:
- rust: 1.51.0 # MSRV
... | on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
name: Continuous integration
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
jobs:
tests:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
include:
- rust: ... | Update CI to use experimental/continue on error only for nigthly features | TEST: Update CI to use experimental/continue on error only for nigthly features
| YAML | apache-2.0 | bluss/arrayvec | yaml | ## Code Before:
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
name: Continuous integration
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
jobs:
tests:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
include:
- rust: 1.51.0... | on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
name: Continuous integration
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
jobs:
tests:
runs-on: ubuntu-latest
- continue-on-error: true
+ continue-on-error: ${{ matrix.experimental }}
... | 9 | 0.173077 | 8 | 1 |
f2faad239b0a0d969436807436378cbfbaa34327 | lib/js/core/bootstrap.js | lib/js/core/bootstrap.js | (function() {
'use strict';
// Inject SVG icons into the DOM
var element = document.createElement('div');
element.id = 'darkroom-icons';
element.style = 'height: 0; width: 0; position: absolute; visibility: hidden';
element.innerHTML = '<!-- inject:svg --><!-- endinject -->';
document.body.appendChild(element);
})()... | (function() {
'use strict';
// Inject SVG icons into the DOM
var element = document.createElement('div');
element.id = 'darkroom-icons';
element.style.height = 0;
element.style.width = 0;
element.style.position = 'absolute';
element.style.visibility = 'hidden';
element.innerHTML = '<!-- inject:svg --><!-- endinject --... | Fix write on a read-only property | Fix write on a read-only property
| JavaScript | mit | mstevens/darkroomjs,Drooids/darkroomjs,marcelgruber/darkroomjs,Drooids/darkroomjs,shelsonjava/darkroomjs,mstevens/darkroomjs,marcelgruber/darkroomjs,shelsonjava/darkroomjs,MattKetmo/darkroomjs,shelsonjava/darkroomjs,marcelgruber/darkroomjs,MattKetmo/darkroomjs,Drooids/darkroomjs,mstevens/darkroomjs | javascript | ## Code Before:
(function() {
'use strict';
// Inject SVG icons into the DOM
var element = document.createElement('div');
element.id = 'darkroom-icons';
element.style = 'height: 0; width: 0; position: absolute; visibility: hidden';
element.innerHTML = '<!-- inject:svg --><!-- endinject -->';
document.body.appendChild(... | (function() {
'use strict';
// Inject SVG icons into the DOM
var element = document.createElement('div');
element.id = 'darkroom-icons';
- element.style = 'height: 0; width: 0; position: absolute; visibility: hidden';
+ element.style.height = 0;
+ element.style.width = 0;
+ element.style.position = 'absolu... | 6 | 0.5 | 4 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.