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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d130e6373de4b79cd414d6b02e37eecce1aee97d | public/javascripts/app/views/gameController.js | public/javascripts/app/views/gameController.js | define([
'Backbone',
//Templates
'text!templates/project-page/closeGameTemplate.html'
], function(
Backbone,
//Template
closeGameTemplate
){
var GameController = Backbone.View.extend({
template: _.template(closeGameTemplate),
close: function(event){
var task = this.selectedTask.get('id... | define([
'Backbone',
//Templates
'text!templates/project-page/closeGameTemplate.html'
], function(
Backbone,
//Template
closeGameTemplate
){
var GameController = Backbone.View.extend({
template: _.template(closeGameTemplate),
close: function(event){
var task = this.selectedTask.get('id... | Remove the task only once | Remove the task only once
| JavaScript | mit | tangosource/pokerestimate,tangosource/pokerestimate | javascript | ## Code Before:
define([
'Backbone',
//Templates
'text!templates/project-page/closeGameTemplate.html'
], function(
Backbone,
//Template
closeGameTemplate
){
var GameController = Backbone.View.extend({
template: _.template(closeGameTemplate),
close: function(event){
var task = this.sele... | define([
'Backbone',
//Templates
'text!templates/project-page/closeGameTemplate.html'
], function(
Backbone,
//Template
closeGameTemplate
){
var GameController = Backbone.View.extend({
template: _.template(closeGameTemplate),
close: function(event){
... | 8 | 0.121212 | 6 | 2 |
d782fe331dfbbf1c2cce88bd1dca1fd20131a374 | tests/test_helpers.sh | tests/test_helpers.sh |
readonly NORMAL=$(printf '\033[0m')
readonly BOLD=$(printf '\033[1m')
readonly RED=$(printf '\033[31m')
readonly GREEN=$(printf '\033[32m')
readonly ORANGE=$(printf '\033[33m')
function log_test()
{
echo -n "${BOLD}$1${NORMAL} ... "
}
function log_passed()
{
echo "${BOLD}${GREEN}✔ Passed${NORMAL}"
}
functio... |
readonly NORMAL=$(printf '\033[0m')
readonly BOLD=$(printf '\033[1m')
readonly RED=$(printf '\033[31m')
readonly GREEN=$(printf '\033[32m')
readonly ORANGE=$(printf '\033[33m')
function log_test()
{
echo -n "${BOLD}$1${NORMAL} ... "
}
function log_passed()
{
echo "${BOLD}${GREEN}✔ Passed${NORMAL}"
}
functio... | Return exit code 1 when at least one test failed | Return exit code 1 when at least one test failed
| Shell | agpl-3.0 | YunoHost/moulinette-yunohost,YunoHost/yunohost,YunoHost/moulinette-yunohost,YunoHost/moulinette-yunohost,YunoHost/yunohost,YunoHost/yunohost,YunoHost/yunohost,YunoHost/moulinette-yunohost,YunoHost/moulinette-yunohost | shell | ## Code Before:
readonly NORMAL=$(printf '\033[0m')
readonly BOLD=$(printf '\033[1m')
readonly RED=$(printf '\033[31m')
readonly GREEN=$(printf '\033[32m')
readonly ORANGE=$(printf '\033[33m')
function log_test()
{
echo -n "${BOLD}$1${NORMAL} ... "
}
function log_passed()
{
echo "${BOLD}${GREEN}✔ Passed${NOR... |
readonly NORMAL=$(printf '\033[0m')
readonly BOLD=$(printf '\033[1m')
readonly RED=$(printf '\033[31m')
readonly GREEN=$(printf '\033[32m')
readonly ORANGE=$(printf '\033[33m')
function log_test()
{
echo -n "${BOLD}$1${NORMAL} ... "
}
function log_passed()
{
echo "${BOLD}${GREEN... | 6 | 0.136364 | 5 | 1 |
28900b2ab84c7a3bd126053efe7c0162caa9fe44 | src/picker.js | src/picker.js |
var Picker = function(context) {
this.context = context;
}
Picker.prototype = {
pick: function(node, x, y, lx, ly) {
var ctx = this.context;
var tx = node.x || 0;
var ty = node.y || 0;
ctx.save();
ctx.translate(tx, ty);
// Apply transform to local coordinate values
lx -= tx;
ly... |
var Picker = function(context) {
this.context = context;
}
Picker.prototype = {
pick: function(node, x, y, lx, ly) {
var ctx = this.context;
var tx = node.x || 0;
var ty = node.y || 0;
ctx.save();
ctx.translate(tx, ty);
// Apply transform to local coordinate values
lx -= tx;
ly... | Fix early return failure to reset context | Fix early return failure to reset context
| JavaScript | mit | unchartedsoftware/pathjs | javascript | ## Code Before:
var Picker = function(context) {
this.context = context;
}
Picker.prototype = {
pick: function(node, x, y, lx, ly) {
var ctx = this.context;
var tx = node.x || 0;
var ty = node.y || 0;
ctx.save();
ctx.translate(tx, ty);
// Apply transform to local coordinate values
... |
var Picker = function(context) {
this.context = context;
}
Picker.prototype = {
pick: function(node, x, y, lx, ly) {
var ctx = this.context;
var tx = node.x || 0;
var ty = node.y || 0;
ctx.save();
ctx.translate(tx, ty);
// Apply transform to local coor... | 7 | 0.170732 | 2 | 5 |
bb68475dbb2a4b33d2ac382fa0f1f697b9038adb | services/QuillDiagnostic/app/components/eslDiagnostic/titleCard.tsx | services/QuillDiagnostic/app/components/eslDiagnostic/titleCard.tsx | import React, { Component } from 'react';
const beginArrow = 'https://assets.quill.org/images/icons/begin_arrow.svg';
import translations from '../../libs/translations/index.js';
class TitleCard extends Component {
getContentHTML() {
let html = this.props.data.content ? this.props.data.content : translations.en... | import React, { Component } from 'react';
const beginArrow = 'https://assets.quill.org/images/icons/begin_arrow.svg';
import translations from '../../libs/translations/index.js';
export interface ComponentProps {
data: any
language: string
nextQuestion(): void
}
class TitleCard extends Component<ComponentProps,... | Add prop declaration for titlecard tsx in esl diagnostic | Add prop declaration for titlecard tsx in esl diagnostic
| TypeScript | agpl-3.0 | empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core | typescript | ## Code Before:
import React, { Component } from 'react';
const beginArrow = 'https://assets.quill.org/images/icons/begin_arrow.svg';
import translations from '../../libs/translations/index.js';
class TitleCard extends Component {
getContentHTML() {
let html = this.props.data.content ? this.props.data.content :... | import React, { Component } from 'react';
const beginArrow = 'https://assets.quill.org/images/icons/begin_arrow.svg';
import translations from '../../libs/translations/index.js';
+ export interface ComponentProps {
+ data: any
+ language: string
+ nextQuestion(): void
+ }
+
- class TitleCard extends Com... | 8 | 0.216216 | 7 | 1 |
3c2abfb72e4c72883484b56960751796bf63ca04 | examples/pushjournal.yml | examples/pushjournal.yml | notifiers:
- type: pushbullet
key: "myapikey"
prepend_hostname: true
- type: smtp
host: smtp.mailgun.org
port: 587
use_tls: true
user: postmaster@mgmydomain.com.
password: mymailgunpassword
from: "Hostname <hostname@mydomain.com>"
to:
- admin@mydomain.com
filters:
- match... | notifiers:
- type: pushbullet
key: "myapikey"
prepend_hostname: true
- type: smtp
host: smtp.mailgun.org
port: 587
use_tls: true
user: postmaster@mgmydomain.com.
password: mymailgunpassword
from: "Hostname <hostname@mydomain.com>"
to:
- admin@mydomain.com
filters:
- match... | Add show_public_ip and show_local_ips to the example configuration file | Add show_public_ip and show_local_ips to the example configuration file
| YAML | bsd-3-clause | r-darwish/pushjournal | yaml | ## Code Before:
notifiers:
- type: pushbullet
key: "myapikey"
prepend_hostname: true
- type: smtp
host: smtp.mailgun.org
port: 587
use_tls: true
user: postmaster@mgmydomain.com.
password: mymailgunpassword
from: "Hostname <hostname@mydomain.com>"
to:
- admin@mydomain.com
fi... | notifiers:
- type: pushbullet
key: "myapikey"
prepend_hostname: true
- type: smtp
host: smtp.mailgun.org
port: 587
use_tls: true
user: postmaster@mgmydomain.com.
password: mymailgunpassword
from: "Hostname <hostname@mydomain.com>"
to:
- admin@mydom... | 2 | 0.095238 | 2 | 0 |
3fd033a0e5230085f1d75726ab4b18b88304982d | Cargo.toml | Cargo.toml | [package]
authors = ["Amelorate <ameilorate2@gmail.com>"]
description = "Serializes and psudo-deserializes structs implementing the Error trait."
license = "MIT"
name = "errorser"
readme = "README.md"
repository = "https://github.com/Ameliorate/errorser"
version = "1.0.1"
[dependencies]
bincode = "0.4.0"
clippy = "0.0... | [package]
authors = ["Amelorate <ameilorate2@gmail.com>"]
description = "Serializes and psudo-deserializes structs implementing the Error trait."
license = "MIT"
name = "errorser"
readme = "README.md"
repository = "https://github.com/Ameliorate/errorser"
documentation = "https://crates.fyi/crates/errorser/"v
version = ... | Add documentation link to cargo.toml | Add documentation link to cargo.toml
| TOML | mit | Ameliorate/errorser | toml | ## Code Before:
[package]
authors = ["Amelorate <ameilorate2@gmail.com>"]
description = "Serializes and psudo-deserializes structs implementing the Error trait."
license = "MIT"
name = "errorser"
readme = "README.md"
repository = "https://github.com/Ameliorate/errorser"
version = "1.0.1"
[dependencies]
bincode = "0.4.... | [package]
authors = ["Amelorate <ameilorate2@gmail.com>"]
description = "Serializes and psudo-deserializes structs implementing the Error trait."
license = "MIT"
name = "errorser"
readme = "README.md"
repository = "https://github.com/Ameliorate/errorser"
+ documentation = "https://crates.fyi/crates/errors... | 1 | 0.0625 | 1 | 0 |
cd5d5f8e0f5d94c2ebde3de9789ee80fb54c7949 | contrib/reference_template.json | contrib/reference_template.json | {
"/static/tool_js_booth.js" : null,
"/static/tool_js_credgen.js" : null,
"/static/tool_js.js" : null,
"/static/tool_js_pd.js" : null,
"/static/tool_js_questions.js" : null,
"/static/tool_js_shuffle.js" : null,
"/static/tool_js_tkeygen.js" : null,
"/stat... | {
"/static/tool_js_booth.js" : null,
"/static/tool_js_credgen.js" : null,
"/static/tool_js.js" : null,
"/static/tool_js_pd.js" : null,
"/static/tool_js_questions.js" : null,
"/static/tool_js_shuffle.js" : null,
"/static/tool_js_tkeygen.js" : null,
"/stat... | Update list of languages to monitor | Update list of languages to monitor
| JSON | agpl-3.0 | glondu/belenios,glondu/belenios,glondu/belenios,glondu/belenios,glondu/belenios | json | ## Code Before:
{
"/static/tool_js_booth.js" : null,
"/static/tool_js_credgen.js" : null,
"/static/tool_js.js" : null,
"/static/tool_js_pd.js" : null,
"/static/tool_js_questions.js" : null,
"/static/tool_js_shuffle.js" : null,
"/static/tool_js_tkeygen.js" : ... | {
"/static/tool_js_booth.js" : null,
"/static/tool_js_credgen.js" : null,
"/static/tool_js.js" : null,
"/static/tool_js_pd.js" : null,
"/static/tool_js_questions.js" : null,
"/static/tool_js_shuffle.js" : null,
"/static/tool_js_tkeygen.js" : ... | 8 | 0.307692 | 7 | 1 |
cf22f4d3dcfa4dbf7fd89b83f8dc3aa6a31b48d5 | src/PushAPI_Get.php | src/PushAPI_Get.php | <?php
/**
* @file
* GET Apple News Article.
*/
namespace ChapterThree\AppleNews;
/**
* Document me.
*/
class PushAPI_Get extends PushAPI_Base {
protected function Debug($response) {
print_r($response);exit;
}
}
| <?php
/**
* @file
* GET Apple News Article.
*/
namespace ChapterThree\AppleNews;
/**
* Document me.
*/
class PushAPI_Get extends PushAPI_Base {
}
| Remove debugging from GET method. | Remove debugging from GET method.
| PHP | mit | chapter-three/AppleNewsAPI | php | ## Code Before:
<?php
/**
* @file
* GET Apple News Article.
*/
namespace ChapterThree\AppleNews;
/**
* Document me.
*/
class PushAPI_Get extends PushAPI_Base {
protected function Debug($response) {
print_r($response);exit;
}
}
## Instruction:
Remove debugging from GET method.
## Code After:
<?php
/... | <?php
/**
* @file
* GET Apple News Article.
*/
namespace ChapterThree\AppleNews;
/**
* Document me.
*/
class PushAPI_Get extends PushAPI_Base {
- protected function Debug($response) {
- print_r($response);exit;
- }
-
} | 4 | 0.210526 | 0 | 4 |
fbfa39a31fd0d05c4a75a4f164852f4a9029cbf6 | apply.sh | apply.sh | set -e
# make sure modules are installed.
bundle exec librarian-puppet install
# run rake tasks
bundle exec rake
# apply stuff
sudo puppet apply --hiera_config=hiera.yaml --modulepath=modules:vendor/modules manifests/site.pp
| set -e
# make sure we have gems installed
bundle install
# make sure modules are installed.
bundle exec librarian-puppet install
# run rake tasks
bundle exec rake
# apply stuff
sudo puppet apply --hiera_config=hiera.yaml --modulepath=modules:vendor/modules manifests/site.pp
| Make sure gems are installed. | Make sure gems are installed.
| Shell | mit | rjw1/randomness-puppet,rjw1/randomness-puppet | shell | ## Code Before:
set -e
# make sure modules are installed.
bundle exec librarian-puppet install
# run rake tasks
bundle exec rake
# apply stuff
sudo puppet apply --hiera_config=hiera.yaml --modulepath=modules:vendor/modules manifests/site.pp
## Instruction:
Make sure gems are installed.
## Code After:
set -e
# mak... | set -e
+
+ # make sure we have gems installed
+ bundle install
# make sure modules are installed.
bundle exec librarian-puppet install
# run rake tasks
bundle exec rake
# apply stuff
sudo puppet apply --hiera_config=hiera.yaml --modulepath=modules:vendor/modules manifests/site.pp | 3 | 0.3 | 3 | 0 |
f9dd3e3a77e4d86ea8e3e3aa495fc0798f34936a | lib/textmarker.dart | lib/textmarker.dart | library textmarker;
import 'dart:html';
class TextMarker {
String targettext;
int startposition;
int endposition;
String textState; // were characters from start to end position typed correctly.
TextMarker(this.targettext,this.startposition, this.endposition,this.textState);
SpanElement textSpan(in... | library textmarker;
import 'dart:html';
class TextMarker {
String targettext;
int startposition;
int endposition;
String textState; // were characters from start to end position typed correctly.
TextMarker(this.targettext,this.startposition, this.endposition,this.textState);
SpanElement textSpan(in... | Add span functions for different textstates. | Add span functions for different textstates.
| Dart | bsd-3-clause | mswift42/workmantrainer,mswift42/workmantrainer | dart | ## Code Before:
library textmarker;
import 'dart:html';
class TextMarker {
String targettext;
int startposition;
int endposition;
String textState; // were characters from start to end position typed correctly.
TextMarker(this.targettext,this.startposition, this.endposition,this.textState);
SpanEle... | library textmarker;
import 'dart:html';
class TextMarker {
String targettext;
int startposition;
int endposition;
String textState; // were characters from start to end position typed correctly.
TextMarker(this.targettext,this.startposition, this.endposition,this.textState);
... | 10 | 0.47619 | 9 | 1 |
6005028c3a91e73a8b31487fc4a49b17035cf30d | .travis.yml | .travis.yml | env:
global:
- NODEJS_VERSION='6.11.1'
matrix:
include:
- language: node_js
env: JOB='LINTING'
node_js: ${NODEJS_VERSION}
script: npm run lint
- language: node_js
node_js: ${NODEJS_VERSION}
env: JOB='UNIT'
script: npm run test-unit
- language: node_js
... | env:
global:
- NODEJS_VERSION='6.11.1'
before_install:
- npm i -g npm@^6.0.0
matrix:
include:
- language: node_js
env: JOB='LINTING'
node_js: ${NODEJS_VERSION}
script: npm run lint
- language: node_js
node_js: ${NODEJS_VERSION}
env: JOB='UNIT'
script: npm r... | Set npm to version6 in order to use npm audit feature | Set npm to version6 in order to use npm audit feature
| YAML | apache-2.0 | Kinvey/kinvey-task-receiver | yaml | ## Code Before:
env:
global:
- NODEJS_VERSION='6.11.1'
matrix:
include:
- language: node_js
env: JOB='LINTING'
node_js: ${NODEJS_VERSION}
script: npm run lint
- language: node_js
node_js: ${NODEJS_VERSION}
env: JOB='UNIT'
script: npm run test-unit
- lang... | env:
global:
- NODEJS_VERSION='6.11.1'
+
+ before_install:
+ - npm i -g npm@^6.0.0
matrix:
include:
- language: node_js
env: JOB='LINTING'
node_js: ${NODEJS_VERSION}
script: npm run lint
- language: node_js
node_js: ${NODEJS_VERSION}
e... | 3 | 0.096774 | 3 | 0 |
3288d96b1ed6785274d2f461d93aed9174a22320 | README.md | README.md |
kpt is a toolkit to help you manage, manipulate, customize, and apply Kubernetes Resource configuration data files.
- Fetch, update, and sync configuration files using git.
- Examine and modify configuration files.
- Generate, transform, validate configuration files using containerized functions.
- Apply configuratio... |
kpt is a toolkit to help you manage, manipulate, customize, and apply Kubernetes Resource configuration data files.
- Fetch, update, and sync configuration files using git.
- Examine and modify configuration files.
- Generate, transform, validate configuration files using containerized functions.
- Apply configuratio... | Add download links for kpt binaries | Add download links for kpt binaries
| Markdown | apache-2.0 | GoogleContainerTools/kpt,GoogleContainerTools/kpt,GoogleContainerTools/kpt,GoogleContainerTools/kpt,GoogleContainerTools/kpt | markdown | ## Code Before:
kpt is a toolkit to help you manage, manipulate, customize, and apply Kubernetes Resource configuration data files.
- Fetch, update, and sync configuration files using git.
- Examine and modify configuration files.
- Generate, transform, validate configuration files using containerized functions.
- Ap... |
kpt is a toolkit to help you manage, manipulate, customize, and apply Kubernetes Resource configuration data files.
- Fetch, update, and sync configuration files using git.
- Examine and modify configuration files.
- Generate, transform, validate configuration files using containerized functions.
- Appl... | 29 | 0.763158 | 15 | 14 |
5bc71b75711e3fd6764b5fc54e2929418ec2de19 | docker/docker-compose.yml | docker/docker-compose.yml | nginx:
image: spotscore/nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
links:
- spotscore
spotscore:
image: spotscore/spotscore
ports:
- "3000:3000"
links:
- postgis
postgis:
image: spotscore/postgis
ports:
- "5432:5432"
| nginx:
image: spotscore/nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
links:
- spotscore
spotscore:
image: spotscore/spotscore
ports:
- "3000:3000"
volumes:
- /code
links:
- postgis
postgis:
image: spotscore/postgis
ports:
- "5432:5432"
vol... | Add volumes when running containers | Add volumes when running containers
| YAML | bsd-2-clause | SpotScore/spotscore | yaml | ## Code Before:
nginx:
image: spotscore/nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
links:
- spotscore
spotscore:
image: spotscore/spotscore
ports:
- "3000:3000"
links:
- postgis
postgis:
image: spotscore/postgis
ports:
- "5432:5432"
## Instruct... | nginx:
image: spotscore/nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
links:
- spotscore
spotscore:
image: spotscore/spotscore
ports:
- "3000:3000"
+ volumes:
+ - /code
links:
- postgis
postgis:
image: spotscore/post... | 4 | 0.222222 | 4 | 0 |
14e1f077de2f3c2487f1d1a27995ade77a9b7240 | .travis.yml | .travis.yml | language: python
python: 3.5
sudo: false
script:
- python manage.py test
after_success:
- pip install flake8 && flake8 .
| language: python
python: 3.5
sudo: false
install:
- pip install -r requirements.txt
- pip install flake8
before_script:
- flake8 .
script:
- python manage.py test
| Make flake8 actually cause errors on Travis | Make flake8 actually cause errors on Travis
| YAML | mpl-2.0 | frewsxcv/lop.farm,frewsxcv/lop.farm,frewsxcv/lop.farm | yaml | ## Code Before:
language: python
python: 3.5
sudo: false
script:
- python manage.py test
after_success:
- pip install flake8 && flake8 .
## Instruction:
Make flake8 actually cause errors on Travis
## Code After:
language: python
python: 3.5
sudo: false
install:
- pip install -r requirements.txt
- pip install ... | language: python
python: 3.5
sudo: false
+ install:
+ - pip install -r requirements.txt
+ - pip install flake8
+ before_script:
+ - flake8 .
script:
- python manage.py test
- after_success:
- - pip install flake8 && flake8 . | 7 | 1 | 5 | 2 |
1af76d7bfd7ff5005e60416c51e2704ca47bda58 | Casks/gas-mask.rb | Casks/gas-mask.rb | cask :v1 => 'gas-mask' do
version '0.8.1'
sha256 'f384e973603088ed5afbe841ef7d5698262988c65a0437a9d8011dcb667fcc2e'
url "http://gmask.clockwise.ee/files/gas_mask_#{version}.zip"
appcast 'http://gmask.clockwise.ee/check_update/',
:sha256 => '2e4f5292999bddfc25245a9c10f98d7ac23d0717a1dd45436a00cf09be7f... | cask :v1 => 'gas-mask' do
version '0.8.3'
sha256 '907aa5979d1a902fa2582f5b6a4f2b1087e5f4e60cc9eb87594407d60fcd2d53'
url "http://gmask.clockwise.ee/files/gas_mask_#{version}.zip"
appcast 'http://gmask.clockwise.ee/check_update/',
:sha256 => '2e4f5292999bddfc25245a9c10f98d7ac23d0717a1dd45436a00cf09be7f... | Update Gas Mask to 0.8.3 | Update Gas Mask to 0.8.3
| Ruby | bsd-2-clause | afh/homebrew-cask,gerrypower/homebrew-cask,rajiv/homebrew-cask,ebraminio/homebrew-cask,thehunmonkgroup/homebrew-cask,malford/homebrew-cask,bosr/homebrew-cask,yutarody/homebrew-cask,thomanq/homebrew-cask,imgarylai/homebrew-cask,neverfox/homebrew-cask,sanchezm/homebrew-cask,napaxton/homebrew-cask,koenrh/homebrew-cask,cli... | ruby | ## Code Before:
cask :v1 => 'gas-mask' do
version '0.8.1'
sha256 'f384e973603088ed5afbe841ef7d5698262988c65a0437a9d8011dcb667fcc2e'
url "http://gmask.clockwise.ee/files/gas_mask_#{version}.zip"
appcast 'http://gmask.clockwise.ee/check_update/',
:sha256 => '2e4f5292999bddfc25245a9c10f98d7ac23d0717a1dd... | cask :v1 => 'gas-mask' do
- version '0.8.1'
? ^
+ version '0.8.3'
? ^
- sha256 'f384e973603088ed5afbe841ef7d5698262988c65a0437a9d8011dcb667fcc2e'
+ sha256 '907aa5979d1a902fa2582f5b6a4f2b1087e5f4e60cc9eb87594407d60fcd2d53'
url "http://gmask.clockwise.ee/files/gas_mask_#{v... | 4 | 0.307692 | 2 | 2 |
a58342269323a6e6a7a3c812c969c7af49016cd7 | SYNTAX.txt | SYNTAX.txt |
(( widgetName prop1, prop2 ... ))
[[ property ]] => (( _itemListView: property )) ID }]
{{ property }} => (( _itemValueView: property ))
{{ user owner }}
(( timeWidget date, location ))
{{ owner: user }}
(( Clock date location ))
MEETING
(( Agenda users time location )) |
(( widgetName prop1, prop2 ... ))
[[ property ]] => (( _itemListView: property )) ID }]
{{ property }} => (( _itemValueView: property ))
{{ property: type }} => (( _itemReferenceView: type, property ))
{{ user owner }}
(( timeWidget date, location ))
{{ owner: user }}
(( Clock date ... | Add syntax for creating property references (as opposed to property values) | Add syntax for creating property references (as opposed to property values)
| Text | mit | marcuswestin/fin | text | ## Code Before:
(( widgetName prop1, prop2 ... ))
[[ property ]] => (( _itemListView: property )) ID }]
{{ property }} => (( _itemValueView: property ))
{{ user owner }}
(( timeWidget date, location ))
{{ owner: user }}
(( Clock date location ))
MEETING
(( Agenda users time location ))
## I... |
(( widgetName prop1, prop2 ... ))
[[ property ]] => (( _itemListView: property )) ID }]
{{ property }} => (( _itemValueView: property ))
+ {{ property: type }} => (( _itemReferenceView: type, property ))
{{ user owner }}
(( timeWidget date, location ))
{{ owner: u... | 1 | 0.045455 | 1 | 0 |
3b4e45a8545bd26d6a1ac749415120f0d1a636c5 | laundry-dude-led-sensor/laundry-dude-led-sensor.ino | laundry-dude-led-sensor/laundry-dude-led-sensor.ino |
// Serial speed
#define SERIAL_BAUDRATE 9600
#define LIGHTSENSOR_PIN 3
#define FETCH_INTERVAL 100
#define POST_INTERVAL 5000
const int numLedSamples = POST_INTERVAL / FETCH_INTERVAL;
int ledSamples[numLedSamples];
int ledSampleCounter = 0;
int light = 0;
// Software serial for XBee module
SoftwareSerial xbeeSerial... |
// Serial speed
#define SERIAL_BAUDRATE 9600
#define LIGHTSENSOR_PIN 3
#define FETCH_INTERVAL 100
#define POST_INTERVAL 5000
const int numLedSamples = POST_INTERVAL / FETCH_INTERVAL;
int ledSamples[numLedSamples];
int ledSampleCounter = 0;
int light = 0;
// Software serial for XBee module
SoftwareSerial xbeeSerial... | Implement LED data as ringbuffer. | [LedDude] Implement LED data as ringbuffer.
Signed-off-by: Juri Berlanda <5bfdca9e82c53adb0603ce7083f4ba4f2da5cacf@hotmail.com>
| Arduino | mit | j-be/laundry-dudes,j-be/laundry-dudes,j-be/laundry-dudes,j-be/laundry-dudes,j-be/laundry-dudes,j-be/laundry-dudes | arduino | ## Code Before:
// Serial speed
#define SERIAL_BAUDRATE 9600
#define LIGHTSENSOR_PIN 3
#define FETCH_INTERVAL 100
#define POST_INTERVAL 5000
const int numLedSamples = POST_INTERVAL / FETCH_INTERVAL;
int ledSamples[numLedSamples];
int ledSampleCounter = 0;
int light = 0;
// Software serial for XBee module
SoftwareS... |
// Serial speed
#define SERIAL_BAUDRATE 9600
#define LIGHTSENSOR_PIN 3
#define FETCH_INTERVAL 100
#define POST_INTERVAL 5000
const int numLedSamples = POST_INTERVAL / FETCH_INTERVAL;
int ledSamples[numLedSamples];
int ledSampleCounter = 0;
int light = 0;
// Software serial for XBee mo... | 6 | 0.122449 | 2 | 4 |
feabc4db34f6a1b15972f1c77306e83a53d61914 | src/AsyncCreatable.js | src/AsyncCreatable.js | import React from 'react';
import Select from './Select';
function reduce(obj, props = {}){
return Object.keys(obj)
.reduce((props, key) => {
const value = obj[key];
if (value !== undefined) props[key] = value;
return props;
}, props);
}
const AsyncCreatable = React.createClass({
displayName: 'Asyn... | import React from 'react';
import createClass from 'create-react-class';
import Select from './Select';
function reduce(obj, props = {}){
return Object.keys(obj)
.reduce((props, key) => {
const value = obj[key];
if (value !== undefined) props[key] = value;
return props;
}, props);
}
const AsyncCreat... | Migrate rest of src overto createClass pkg | Migrate rest of src overto createClass pkg
| JavaScript | mit | submittable/react-select,serkanozer/react-select,OpenGov/react-select,mmpro/react-select,f-camacho/react-select,JedWatson/react-select,mobile5dev/react-select,JedWatson/react-select | javascript | ## Code Before:
import React from 'react';
import Select from './Select';
function reduce(obj, props = {}){
return Object.keys(obj)
.reduce((props, key) => {
const value = obj[key];
if (value !== undefined) props[key] = value;
return props;
}, props);
}
const AsyncCreatable = React.createClass({
di... | import React from 'react';
+ import createClass from 'create-react-class';
import Select from './Select';
function reduce(obj, props = {}){
return Object.keys(obj)
.reduce((props, key) => {
const value = obj[key];
if (value !== undefined) props[key] = value;
return props;
}, props... | 3 | 0.065217 | 2 | 1 |
610532ac6a9c652c54dcbe1ef558ddd726fc969b | pkgs/applications/audio/fluidsynth/default.nix | pkgs/applications/audio/fluidsynth/default.nix | { stdenv, fetchurl, alsaLib, glib, jackaudio, libsndfile, pkgconfig
, pulseaudio, cmake }:
stdenv.mkDerivation rec {
name = "fluidsynth-${version}";
version = "1.1.6";
src = fetchurl {
url = "mirror://sourceforge/fluidsynth/${name}.tar.bz2";
sha256 = "00gn93bx4cz9bfwf3a8xyj2by7w23nca4zxf09ll53kzpzglg2y... | { stdenv, fetchurl, alsaLib, glib, jackaudio, libsndfile, pkgconfig
, pulseaudio }:
stdenv.mkDerivation rec {
name = "fluidsynth-${version}";
version = "1.1.6";
src = fetchurl {
url = "mirror://sourceforge/fluidsynth/${name}.tar.bz2";
sha256 = "00gn93bx4cz9bfwf3a8xyj2by7w23nca4zxf09ll53kzpzglg2yj";
}... | Revert "fluidsynth: switch to cmake build system" which causes mpd and calf to fail to detect fluidsynth. | Revert "fluidsynth: switch to cmake build system" which causes mpd and calf to fail to detect
fluidsynth.
This reverts commit cd16faa25738e1fd885279b0707e6a842e5479c8.
| Nix | mit | NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,triton/triton,triton/triton,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,triton/triton,SymbiFlow/nixpkgs,NixOS/nixpkgs,triton/triton,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkg... | nix | ## Code Before:
{ stdenv, fetchurl, alsaLib, glib, jackaudio, libsndfile, pkgconfig
, pulseaudio, cmake }:
stdenv.mkDerivation rec {
name = "fluidsynth-${version}";
version = "1.1.6";
src = fetchurl {
url = "mirror://sourceforge/fluidsynth/${name}.tar.bz2";
sha256 = "00gn93bx4cz9bfwf3a8xyj2by7w23nca4zx... | { stdenv, fetchurl, alsaLib, glib, jackaudio, libsndfile, pkgconfig
- , pulseaudio, cmake }:
? -------
+ , pulseaudio }:
stdenv.mkDerivation rec {
name = "fluidsynth-${version}";
version = "1.1.6";
src = fetchurl {
url = "mirror://sourceforge/fluidsynth/${name}.tar.bz2";
... | 4 | 0.121212 | 2 | 2 |
8a23b53c3842586d2cf23cbecd664167bd602a38 | .travis.yml | .travis.yml | language: go
go:
- "1.13.x"
- "1.14.x"
- master
before_install:
- go get github.com/mitchellh/gox
before_deploy:
- go get github.com/tcnksm/ghr
script: make all
deploy:
- provider: script
script: ./deploy.sh
skip_cleanup: true
on:
go: "1.14.x"
tags: true
| language: go
go:
- "1.13.x"
- "1.14.x"
- "1.15.x"
- master
before_install:
- go get github.com/mitchellh/gox
before_deploy:
- go get github.com/tcnksm/ghr
script: make all
deploy:
- provider: script
script: ./deploy.sh
skip_cleanup: true
on:
go: "1.14.x"
tags: true
| Build in Travis-CI with Go 1.15. | Build in Travis-CI with Go 1.15.
| YAML | apache-2.0 | VirusTotal/vt-cli,VirusTotal/vt-cli | yaml | ## Code Before:
language: go
go:
- "1.13.x"
- "1.14.x"
- master
before_install:
- go get github.com/mitchellh/gox
before_deploy:
- go get github.com/tcnksm/ghr
script: make all
deploy:
- provider: script
script: ./deploy.sh
skip_cleanup: true
on:
go: "1.14.x"
tags: true
## Inst... | language: go
go:
- "1.13.x"
- "1.14.x"
+ - "1.15.x"
- master
before_install:
- go get github.com/mitchellh/gox
before_deploy:
- go get github.com/tcnksm/ghr
script: make all
deploy:
- provider: script
script: ./deploy.sh
skip_cleanup: true
on:
... | 1 | 0.045455 | 1 | 0 |
fb3339b458f62aa6ab2aa4330e93cdcb8f6a3cec | cloud/gcp/chapter-1.md | cloud/gcp/chapter-1.md |
SORACOM を初めてお使いになる肩は、
|
SORACOM を初めてお使いになる方は、下記のページを参考にアカウントの作成・支払情報の設定・Air SIM の登録を行ってください。
- [SORACOM アカウントの作成](https://dev.soracom.io/jp/start/console/#account)
- [支払情報の設定](https://dev.soracom.io/jp/start/console/#payment)
- [Air SIM の登録](https://dev.soracom.io/jp/start/console/#registsim)
> 同一ページ内へのリンクとなります
| Add link to getting started guide | Add link to getting started guide
アカウント作成などは、Getting Started Guide へのリンクとする
| Markdown | apache-2.0 | soracom/handson,soracom/handson,soracom/handson | markdown | ## Code Before:
SORACOM を初めてお使いになる肩は、
## Instruction:
Add link to getting started guide
アカウント作成などは、Getting Started Guide へのリンクとする
## Code After:
SORACOM を初めてお使いになる方は、下記のページを参考にアカウントの作成・支払情報の設定・Air SIM の登録を行ってください。
- [SORACOM アカウントの作成](https://dev.soracom.io/jp/start/console/#account)
- [支払情報の設定](https://dev.sorac... |
- SORACOM を初めてお使いになる肩は、
+ SORACOM を初めてお使いになる方は、下記のページを参考にアカウントの作成・支払情報の設定・Air SIM の登録を行ってください。
+
+ - [SORACOM アカウントの作成](https://dev.soracom.io/jp/start/console/#account)
+ - [支払情報の設定](https://dev.soracom.io/jp/start/console/#payment)
+ - [Air SIM の登録](https://dev.soracom.io/jp/start/console/#registsim)
+
+ > 同一ページ... | 8 | 4 | 7 | 1 |
a9ee64c46477f6e79126e6cd50820afea26dbb45 | .circleci/build_node_module.sh | .circleci/build_node_module.sh | echo "=====>Install nvm"
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
export NVM_DIR="${XDG_CONFIG_HOME/:-$HOME/.}nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
source ~/.bashrc
# Issue for MacOS: dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib
if [... | echo "=====>Install nvm"
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
export NVM_DIR="${XDG_CONFIG_HOME/:-$HOME/.}nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
source ~/.bashrc
# Issue for MacOS: dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib
if [... | Fix CI: unlink python2 to avoid MacOS random failures when initializing submodules | Fix CI: unlink python2 to avoid MacOS random failures when initializing submodules
| Shell | mit | LedgerHQ/lib-ledger-core,LedgerHQ/lib-ledger-core,LedgerHQ/lib-ledger-core,LedgerHQ/lib-ledger-core,LedgerHQ/lib-ledger-core,LedgerHQ/lib-ledger-core,LedgerHQ/lib-ledger-core | shell | ## Code Before:
echo "=====>Install nvm"
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
export NVM_DIR="${XDG_CONFIG_HOME/:-$HOME/.}nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
source ~/.bashrc
# Issue for MacOS: dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui1... | echo "=====>Install nvm"
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
export NVM_DIR="${XDG_CONFIG_HOME/:-$HOME/.}nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
source ~/.bashrc
# Issue for MacOS: dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n... | 1 | 0.027027 | 1 | 0 |
1c6cc2317668872b499e6d7a5318917f748da22b | apps/tools/components/send_invitation/index.coffee | apps/tools/components/send_invitation/index.coffee | Promise = require 'bluebird-q'
{ API_URL } = require('sharify').data
{ track } = require '../../../../lib/analytics.coffee'
Serializer = require '../../../../components/form/serializer.coffee'
module.exports = ($el) ->
$form = $el.find '.js-form'
$submit = $el.find '.js-submit'
$errors = $el.find '.js-errors'
... | Promise = require 'bluebird-q'
{ API_URL } = require('sharify').data
{ track } = require '../../../../lib/analytics.coffee'
Serializer = require '../../../../components/form/serializer.coffee'
module.exports = ($el) ->
$form = $el.find '.js-form'
$submit = $el.find '.js-submit'
$errors = $el.find '.js-errors'
... | Add catch all error handling in case of AJAX fail response | Add catch all error handling in case of AJAX fail response
- Add `fail` block to form submission request promise chain.
- Add timeout tracking so that old requests dont clear timeouts set by subsequent requests.
| CoffeeScript | mit | aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell | coffeescript | ## Code Before:
Promise = require 'bluebird-q'
{ API_URL } = require('sharify').data
{ track } = require '../../../../lib/analytics.coffee'
Serializer = require '../../../../components/form/serializer.coffee'
module.exports = ($el) ->
$form = $el.find '.js-form'
$submit = $el.find '.js-submit'
$errors = $el.find... | Promise = require 'bluebird-q'
{ API_URL } = require('sharify').data
{ track } = require '../../../../lib/analytics.coffee'
Serializer = require '../../../../components/form/serializer.coffee'
module.exports = ($el) ->
$form = $el.find '.js-form'
$submit = $el.find '.js-submit'
$errors = $el.fi... | 25 | 0.454545 | 23 | 2 |
43696b102bada7408c5c8151e4ae87e5a2855337 | ds_binary_tree_ft.py | ds_binary_tree_ft.py | def binary_tree(r):
pass
def main():
pass
if __name__ == '__main__':
main()
| from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
def binary_tree(r):
"""Binary tree using list of list."""
return [r, [], []]
def insert_left(root, new_branch):
left_tree = root.pop(1)
if len(left_tree) > 1:
root.insert(1, [new_bran... | Complete ds: binary_tree using ls of ls | Complete ds: binary_tree using ls of ls
| Python | bsd-2-clause | bowen0701/algorithms_data_structures | python | ## Code Before:
def binary_tree(r):
pass
def main():
pass
if __name__ == '__main__':
main()
## Instruction:
Complete ds: binary_tree using ls of ls
## Code After:
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
def binary_tree(r):
"""Binary tre... | + from __future__ import absolute_import
+ from __future__ import division
+ from __future__ import print_function
+
+
def binary_tree(r):
- pass
+ """Binary tree using list of list."""
+ return [r, [], []]
+
+
+ def insert_left(root, new_branch):
+ left_tree = root.pop(1)
+ if len(left_tree) > 1... | 69 | 6.9 | 66 | 3 |
4a2fcb50d8a8551a910d9524cbf2ed4bba35042f | src/ChatBubble/index.tsx | src/ChatBubble/index.tsx | import * as React from 'react';
import ChatBubbleProps from './interface';
import styles from './styles';
const defaultBubbleStyles = {
userBubble: {},
chatbubble: {},
text: {},
};
export default class ChatBubble extends React.Component {
props;
constructor(props: ChatBubbleProps) {
super(props);
}
... | import * as React from 'react';
import ChatBubbleProps from './interface';
import styles from './styles';
const defaultBubbleStyles = {
userBubble: {},
chatbubble: {},
text: {},
};
export default class ChatBubble extends React.Component {
props;
constructor(props: ChatBubbleProps) {
super(props);
}
... | Make user bubble and chat bubble styles apply independently. | Make user bubble and chat bubble styles apply independently.
Currently, when I use 'bubbleStyles', the useBubble style is getting
applied to both userBubble and chatbubble. This commit fixes this
issue and applies the right styles to the right bubbles.
| TypeScript | mit | brandonmowat/react-chat-ui,brandonmowat/react-chat-ui | typescript | ## Code Before:
import * as React from 'react';
import ChatBubbleProps from './interface';
import styles from './styles';
const defaultBubbleStyles = {
userBubble: {},
chatbubble: {},
text: {},
};
export default class ChatBubble extends React.Component {
props;
constructor(props: ChatBubbleProps) {
sup... | import * as React from 'react';
import ChatBubbleProps from './interface';
import styles from './styles';
const defaultBubbleStyles = {
userBubble: {},
chatbubble: {},
text: {},
};
export default class ChatBubble extends React.Component {
props;
constructor(props: ChatBubbleProp... | 2 | 0.035088 | 1 | 1 |
7e355008d3bc810b84ca4818e4aeecf494a89d20 | assets/components/checkblock/js/inputs/checkblock.js | assets/components/checkblock/js/inputs/checkblock.js | // Wrap your stuff in this module pattern for dependency injection
(function ($, ContentBlocks) {
// Add your custom input to the fieldTypes object as a function
// The dom variable contains the injected field (from the template)
// and the data variable contains field information, properties etc.
Conte... | // Wrap your stuff in this module pattern for dependency injection
(function ($, ContentBlocks) {
// Add your custom input to the fieldTypes object as a function
// The dom variable contains the injected field (from the template)
// and the data variable contains field information, properties etc.
Conte... | Fix checkboxes not ticking themselves | Fix checkboxes not ticking themselves
Closes #1
| JavaScript | mit | jpdevries/checkblock,jpdevries/checkblock | javascript | ## Code Before:
// Wrap your stuff in this module pattern for dependency injection
(function ($, ContentBlocks) {
// Add your custom input to the fieldTypes object as a function
// The dom variable contains the injected field (from the template)
// and the data variable contains field information, propertie... | // Wrap your stuff in this module pattern for dependency injection
(function ($, ContentBlocks) {
// Add your custom input to the fieldTypes object as a function
// The dom variable contains the injected field (from the template)
// and the data variable contains field information, properties etc.... | 3 | 0.12 | 2 | 1 |
9e90551ec07cb76b671762913e3b21a01667718b | _protected/app/system/modules/two-factor-auth/views/base/tpl/main/setup.tpl | _protected/app/system/modules/two-factor-auth/views/base/tpl/main/setup.tpl | <div class="center">
{if $is_enabled}
<p>{lang 'To use it, you have first to download Authenticator app available for <a href="%0%">Android</a> and <a href="%1%">iOS</a>.', 'https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2', 'https://itunes.apple.com/en/app/google-authent... | <div class="center">
{if $is_enabled}
<p>{lang 'To use it, you have first to download Authenticator app available for <a href="%0%">Android</a> and <a href="%1%">iOS</a>.', 'https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2', 'https://itunes.apple.com/en/app/google-authent... | Change name for "2FA backup recovery code" | Change name for "2FA backup recovery code"
| Smarty | mit | pH7Software/pH7-Social-Dating-CMS,pH7Software/pH7-Social-Dating-CMS,pH7Software/pH7-Social-Dating-CMS,pH7Software/pH7-Social-Dating-CMS | smarty | ## Code Before:
<div class="center">
{if $is_enabled}
<p>{lang 'To use it, you have first to download Authenticator app available for <a href="%0%">Android</a> and <a href="%1%">iOS</a>.', 'https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2', 'https://itunes.apple.com/en/ap... | <div class="center">
{if $is_enabled}
<p>{lang 'To use it, you have first to download Authenticator app available for <a href="%0%">Android</a> and <a href="%1%">iOS</a>.', 'https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2', 'https://itunes.apple.com/en/app/google-a... | 2 | 0.181818 | 1 | 1 |
66799f2b504562bce78911e4d84c830796359482 | spec/acceptance/nodesets/centos-7-x64.yml | spec/acceptance/nodesets/centos-7-x64.yml | HOSTS:
centos-7-x64:
roles:
- master
platform: el-7-x86_64
box: chef/centos-7.0
box_url: https://vagrantcloud.com/chef/boxes/centos-7.0
hypervisor: vagrant
CONFIG:
log_level: verbose
type: foss
| HOSTS:
centos-7-x64:
roles:
- master
platform: el-7-x86_64
box: puppetlabs/centos-7.0-64-nocm
box_url: https://vagrantcloud.com/puppetlabs/boxes/centos-7.0-64-nocm
hypervisor: vagrant
CONFIG:
log_level: verbose
type: foss
| Change box to puppetlabs/centos-7.0-64-nocm. Works with Vagrant 1.7.2 and VirtualBox 4.3.26. Previos config used a box that would fail compiliation of guest additions and thus could not mount drive on guest OS. | Change box to puppetlabs/centos-7.0-64-nocm. Works with Vagrant 1.7.2 and VirtualBox 4.3.26. Previos config used a box that would fail compiliation of guest additions and thus could not mount drive on guest OS.
| YAML | apache-2.0 | basho-labs/puppet-riak,SPBTV/puppet-riak,GabrielNicolasAvellaneda/puppet-riak,DevOpsFu/puppet-riak,DevOpsFu/puppet-riak,basho-labs/puppet-riak,DevOpsFu/puppet-riak,SPBTV/puppet-riak,GabrielNicolasAvellaneda/puppet-riak,al4/puppet-riak,GabrielNicolasAvellaneda/puppet-riak,al4/puppet-riak,basho-labs/puppet-riak,Cornellio... | yaml | ## Code Before:
HOSTS:
centos-7-x64:
roles:
- master
platform: el-7-x86_64
box: chef/centos-7.0
box_url: https://vagrantcloud.com/chef/boxes/centos-7.0
hypervisor: vagrant
CONFIG:
log_level: verbose
type: foss
## Instruction:
Change box to puppetlabs/centos-7.0-64-nocm. Works with Vagr... | HOSTS:
centos-7-x64:
roles:
- master
platform: el-7-x86_64
- box: chef/centos-7.0
+ box: puppetlabs/centos-7.0-64-nocm
- box_url: https://vagrantcloud.com/chef/boxes/centos-7.0
? ^^ ^
+ box_url: https://vagrantcloud.com/puppetlabs/boxes/ce... | 4 | 0.333333 | 2 | 2 |
e83255cbe30fb5e7d25db4b1b036cb8099ada17a | app/components/bookmarks-view/BookmarksView.xml | app/components/bookmarks-view/BookmarksView.xml |
<GridLayout
xmlns="http://schemas.nativescript.org/tns.xsd"
xmlns:favoritesView="components/favorites-view"
xmlns:historyView="components/history-view"
loaded="onLoaded"
rows="*,44"
columns="*">
<GridLayout loaded="onContentLayoutLoaded" orientation="horizontal">
<favoritesView:Fa... |
<GridLayout
xmlns="http://schemas.nativescript.org/tns.xsd"
xmlns:favoritesView="components/favorites-view"
xmlns:historyView="components/history-view"
loaded="onLoaded"
rows="44,auto,*"
columns="*">
<GridLayout loaded="onTabLayoutLoaded" row="0" rows="*" columns="*,*" backgroundColor="#F... | Move bookmarks view tabs to top | Move bookmarks view tabs to top
| XML | apache-2.0 | fercamp09/int20171T,fercamp09/int20171T,fercamp09/int20171T,fercamp09/int20171T,fercamp09/int20171T,fercamp09/int20171T | xml | ## Code Before:
<GridLayout
xmlns="http://schemas.nativescript.org/tns.xsd"
xmlns:favoritesView="components/favorites-view"
xmlns:historyView="components/history-view"
loaded="onLoaded"
rows="*,44"
columns="*">
<GridLayout loaded="onContentLayoutLoaded" orientation="horizontal">
<... |
<GridLayout
xmlns="http://schemas.nativescript.org/tns.xsd"
xmlns:favoritesView="components/favorites-view"
xmlns:historyView="components/history-view"
loaded="onLoaded"
- rows="*,44"
? --
+ rows="44,auto,*"
? +++++++
columns="*">
+ <GridLayout l... | 13 | 0.764706 | 7 | 6 |
ae0bd06487aad3be47b8f38efc3e757188c0efc7 | app/controllers/api/stateless/stateless_controller.rb | app/controllers/api/stateless/stateless_controller.rb | module Api
module Stateless
# Api::StatelessController handles all stateless api requests
# with token authentication.
class StatelessController < ApplicationController
include ExceptionHandler
include AuthToken
protect_from_forgery with: :null_session
protected
def authen... | module Api
module Stateless
# Api::StatelessController handles all stateless api requests
# with token authentication.
class StatelessController < ApplicationController
include ExceptionHandler
include AuthToken
protect_from_forgery with: :null_session
protected
# Authenti... | Read `authorization` from header or cookie | Read `authorization` from header or cookie
| Ruby | mit | SumOfUs/Champaign,SumOfUs/Champaign,SumOfUs/Champaign,SumOfUs/Champaign,SumOfUs/Champaign | ruby | ## Code Before:
module Api
module Stateless
# Api::StatelessController handles all stateless api requests
# with token authentication.
class StatelessController < ApplicationController
include ExceptionHandler
include AuthToken
protect_from_forgery with: :null_session
protected
... | module Api
module Stateless
# Api::StatelessController handles all stateless api requests
# with token authentication.
class StatelessController < ApplicationController
include ExceptionHandler
include AuthToken
protect_from_forgery with: :null_session
prote... | 11 | 0.37931 | 10 | 1 |
10b363167099b17856db6359dd89a49e7ecea9ad | src/Sylius/Bundle/OrderBundle/Doctrine/ORM/OrderRepository.php | src/Sylius/Bundle/OrderBundle/Doctrine/ORM/OrderRepository.php | <?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Bundle\OrderBundle\Doctrine\ORM;
use Sylius\Bundle\ResourceBundle\Doctrine\ORM\Entit... | <?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Bundle\OrderBundle\Doctrine\ORM;
use Sylius\Bundle\ResourceBundle\Doctrine\ORM\Entit... | Fix order sorting to prevent incorrect order number generation. | Fix order sorting to prevent incorrect order number generation.
See https://github.com/Sylius/Sylius/pull/631
| PHP | mit | tonicospinelli/Sylius,videni/Sylius,gorkalaucirica/Sylius,petertilsen/sylius,TheMadeleine/Sylius,locastic/SyliusTcomPayWay,ravaj-group/Sylius,ProPheT777/Sylius,xrowgmbh/Sylius,michalmarcinkowski/Sylius,PyRowMan/Sylius,polisys/Sylius,bigfoot90/Sylius,adamelso/Sylius,Mozan/Sylius,liquorvicar/Sylius,nicolasricci/Sylius,ps... | php | ## Code Before:
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Bundle\OrderBundle\Doctrine\ORM;
use Sylius\Bundle\ResourceBundle\Do... | <?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Bundle\OrderBundle\Doctrine\ORM;
use Sylius\Bundle\Resou... | 2 | 0.033333 | 1 | 1 |
54217603f6745a1feecff6761bc600dc07631ba4 | app/controllers/concerns/high_voltage/static_page.rb | app/controllers/concerns/high_voltage/static_page.rb | module HighVoltage::StaticPage
extend ActiveSupport::Concern
included do
layout ->(_) { HighVoltage.layout }
rescue_from ActionView::MissingTemplate do |exception|
if exception.message =~ %r{Missing template #{page_finder.content_path}}
invalid_page
else
raise exception
e... | module HighVoltage::StaticPage
extend ActiveSupport::Concern
included do
layout ->(_) { HighVoltage.layout }
rescue_from ActionView::MissingTemplate do |exception|
if exception.message =~ %r{Missing template #{page_finder.content_path}}
invalid_page
else
raise exception
e... | Remove hide_action as it is not supported in Rails 5 | Remove hide_action as it is not supported in Rails 5
| Ruby | mit | thoughtbot/high_voltage,thoughtbot/high_voltage | ruby | ## Code Before:
module HighVoltage::StaticPage
extend ActiveSupport::Concern
included do
layout ->(_) { HighVoltage.layout }
rescue_from ActionView::MissingTemplate do |exception|
if exception.message =~ %r{Missing template #{page_finder.content_path}}
invalid_page
else
raise e... | module HighVoltage::StaticPage
extend ActiveSupport::Concern
included do
layout ->(_) { HighVoltage.layout }
rescue_from ActionView::MissingTemplate do |exception|
if exception.message =~ %r{Missing template #{page_finder.content_path}}
invalid_page
else
r... | 12 | 0.307692 | 6 | 6 |
b104939312ee6f67f8c132f360c37717bd56959a | server/views/layouts/default.html | server/views/layouts/default.html | <!doctype html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="https://www.facebook.com/2008/fbml" itemscope="itemscope" itemtype="http://schema.org/Product">
{% include '../includes/head.html' %}
<body>
<div data-ng-include="'/public/system/views/header.html'" data-role="navigation"></div>
{% ... | <!doctype html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="https://www.facebook.com/2008/fbml" itemscope="itemscope" itemtype="http://schema.org/Product">
{% include '../includes/head.html' %}
<body>
<div data-ng-include="'/public/system/views/header.html'" data-role="navigation"></div>
{% ... | Remove the twitter bootstrap container | Remove the twitter bootstrap container
| HTML | mit | debona/Respirez,debona/Respirez | html | ## Code Before:
<!doctype html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="https://www.facebook.com/2008/fbml" itemscope="itemscope" itemtype="http://schema.org/Product">
{% include '../includes/head.html' %}
<body>
<div data-ng-include="'/public/system/views/header.html'" data-role="navigation... | <!doctype html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="https://www.facebook.com/2008/fbml" itemscope="itemscope" itemtype="http://schema.org/Product">
{% include '../includes/head.html' %}
<body>
<div data-ng-include="'/public/system/views/header.html'" data-role="navigation"></... | 8 | 0.4 | 3 | 5 |
e772731e0cf065c884cd32803276896c6f21f95e | .github/ISSUE_TEMPLATE/config.yml | .github/ISSUE_TEMPLATE/config.yml | blank_issues_enabled: false
contact_links:
- name: 📚 Documentation
url: https://urllib3.readthedocs.io/en/latest/
about: Make sure you read the relevant docs
- name: ❓ Ask on StackOverflow
url: https://stackoverflow.com/questions/tagged/urllib3
about: Ask questions about usage in StackOverflow
- ... | blank_issues_enabled: false
contact_links:
- name: 📚 Documentation
url: https://urllib3.readthedocs.io
about: Make sure you read the relevant docs
- name: ❓ Ask on StackOverflow
url: https://stackoverflow.com/questions/tagged/urllib3
about: Ask questions about usage in StackOverflow
- name: 💬 As... | Update docs link in issue template to point at the default instead of `latest` | Update docs link in issue template to point at the default instead of `latest`
| YAML | mit | sigmavirus24/urllib3,urllib3/urllib3,urllib3/urllib3,sigmavirus24/urllib3 | yaml | ## Code Before:
blank_issues_enabled: false
contact_links:
- name: 📚 Documentation
url: https://urllib3.readthedocs.io/en/latest/
about: Make sure you read the relevant docs
- name: ❓ Ask on StackOverflow
url: https://stackoverflow.com/questions/tagged/urllib3
about: Ask questions about usage in St... | blank_issues_enabled: false
contact_links:
- name: 📚 Documentation
- url: https://urllib3.readthedocs.io/en/latest/
? -----------
+ url: https://urllib3.readthedocs.io
about: Make sure you read the relevant docs
- name: ❓ Ask on StackOverflow
url:... | 2 | 0.181818 | 1 | 1 |
78db53428515d8469a6d45ef8a685ce279199d95 | src/main/scala/com/ideacolorschemes/ideacolor/UploadCurrentColorSchemeAction.scala | src/main/scala/com/ideacolorschemes/ideacolor/UploadCurrentColorSchemeAction.scala | package com.ideacolorschemes.ideacolor
import com.intellij.openapi.actionSystem.{AnActionEvent, AnAction}
import com.intellij.openapi.editor.colors.{EditorColorsScheme, EditorColorsManager}
import com.intellij.ide.BrowserUtil
import com.intellij.openapi.ui.Messages
import com.intellij.openapi.project.Project
/**
* ... | package com.ideacolorschemes.ideacolor
import com.intellij.openapi.actionSystem.{AnActionEvent, AnAction}
import com.intellij.openapi.editor.colors.{EditorColorsScheme, EditorColorsManager}
import com.intellij.ide.BrowserUtil
import com.intellij.openapi.ui.Messages
import com.intellij.openapi.project.Project
/**
* ... | Check if it's a book when upload current schemes. | Check if it's a book when upload current schemes.
| Scala | apache-2.0 | iron9light/ideacolorschemes-plugin | scala | ## Code Before:
package com.ideacolorschemes.ideacolor
import com.intellij.openapi.actionSystem.{AnActionEvent, AnAction}
import com.intellij.openapi.editor.colors.{EditorColorsScheme, EditorColorsManager}
import com.intellij.ide.BrowserUtil
import com.intellij.openapi.ui.Messages
import com.intellij.openapi.project.P... | package com.ideacolorschemes.ideacolor
import com.intellij.openapi.actionSystem.{AnActionEvent, AnAction}
import com.intellij.openapi.editor.colors.{EditorColorsScheme, EditorColorsManager}
import com.intellij.ide.BrowserUtil
import com.intellij.openapi.ui.Messages
import com.intellij.openapi.project.Pro... | 4 | 0.095238 | 3 | 1 |
823179066c9a7c101a18e9c2d7ccb2a9ccf7f1cb | setup.py | setup.py | import os
from setuptools import setup, find_packages
from hamcrest import __version__
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name = 'PyHamcrest',
version = __version__,
author = 'Jon Reid',
author_email = 'jon.reid@mac.com',
description = 'H... | import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
import re
matched = re.match('__version__.*', read(os.path.join('hamcrest', '__init__.py')))
if matched:
exec(matched.group())
setup(
name = 'PyHamcrest',
version ... | Support python 3 installtion; need distribute | Support python 3 installtion; need distribute
| Python | bsd-3-clause | msabramo/PyHamcrest,nitishr/PyHamcrest,nitishr/PyHamcrest,msabramo/PyHamcrest | python | ## Code Before:
import os
from setuptools import setup, find_packages
from hamcrest import __version__
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name = 'PyHamcrest',
version = __version__,
author = 'Jon Reid',
author_email = 'jon.reid@mac.com',
... | import os
from setuptools import setup, find_packages
- from hamcrest import __version__
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
+
+ import re
+ matched = re.match('__version__.*', read(os.path.join('hamcrest', '__init__.py')))
+ if matched:
+ exec(matched... | 7 | 0.2 | 6 | 1 |
df45251622e6b935b27022e36fcbd79e9228f989 | bonobo/commands/init.py | bonobo/commands/init.py | import os
def execute(name, branch, overwrite_if_exists=False):
try:
from cookiecutter.main import cookiecutter
except ImportError as exc:
raise ImportError(
'You must install "cookiecutter" to use this command.\n\n $ pip install cookiecutter\n'
) from exc
if os.listdir... | import os
def execute(name, branch):
try:
from cookiecutter.main import cookiecutter
except ImportError as exc:
raise ImportError(
'You must install "cookiecutter" to use this command.\n\n $ pip install cookiecutter\n'
) from exc
overwrite_if_exists = False
project_... | Check if target directory is empty instead of current directory and remove overwrite_if_exists argument | Check if target directory is empty instead of current directory and remove overwrite_if_exists argument
| Python | apache-2.0 | hartym/bonobo,python-bonobo/bonobo,hartym/bonobo,hartym/bonobo,python-bonobo/bonobo,python-bonobo/bonobo | python | ## Code Before:
import os
def execute(name, branch, overwrite_if_exists=False):
try:
from cookiecutter.main import cookiecutter
except ImportError as exc:
raise ImportError(
'You must install "cookiecutter" to use this command.\n\n $ pip install cookiecutter\n'
) from exc
... | import os
- def execute(name, branch, overwrite_if_exists=False):
+ def execute(name, branch):
try:
from cookiecutter.main import cookiecutter
except ImportError as exc:
raise ImportError(
'You must install "cookiecutter" to use this command.\n\n $ pip install cookiecu... | 6 | 0.230769 | 4 | 2 |
dc0dfd4a763dceef655d62e8364b92a8073b7751 | chrome/chromehost.py | chrome/chromehost.py | import socket
import struct
import sys
def send_to_chrome(message):
# Write message size.
sys.stdout.write(struct.pack('I', len(message)))
# Write the message itself.
sys.stdout.write(message)
sys.stdout.flush()
def read_from_chrome():
text_length_bytes = sys.stdin.read(4)
if len(text_l... | import socket
import struct
import sys
def send_to_chrome(message):
# Write message size.
sys.stdout.write(struct.pack('I', len(message)))
# Write the message itself.
sys.stdout.write(message)
sys.stdout.flush()
def read_from_chrome():
text_length_bytes = sys.stdin.read(4)
if len(text_l... | Change chromhost to use normal sockets | Change chromhost to use normal sockets
| Python | mit | CacheBrowser/cachebrowser,NewBie1993/cachebrowser | python | ## Code Before:
import socket
import struct
import sys
def send_to_chrome(message):
# Write message size.
sys.stdout.write(struct.pack('I', len(message)))
# Write the message itself.
sys.stdout.write(message)
sys.stdout.flush()
def read_from_chrome():
text_length_bytes = sys.stdin.read(4)
... | import socket
import struct
import sys
def send_to_chrome(message):
# Write message size.
sys.stdout.write(struct.pack('I', len(message)))
# Write the message itself.
sys.stdout.write(message)
sys.stdout.flush()
def read_from_chrome():
text_length_bytes = sys... | 23 | 0.534884 | 13 | 10 |
5a00fab05a8a7c7025f0cb69edf363bda5dc38f7 | spec/spec_helper.rb | spec/spec_helper.rb | $LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
$LOAD_PATH << File.join(File.dirname(__FILE__))
require 'rubygems'
require 'rspec'
require 'rspec/its'
require "simplecov"
require 'factory_girl'
require "mocha/api"
require "bourne"
require "timecop"
Dir["spec/support/**/*.rb"].each { |f| require File.ex... | $LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
$LOAD_PATH << File.join(File.dirname(__FILE__))
require 'rubygems'
require 'rspec'
require 'rspec/its'
require "simplecov"
require 'factory_girl'
require "mocha/api"
require "bourne"
require "timecop"
Dir["spec/support/**/*.rb"].each { |f| require File.ex... | Fix test order dependent failures with seeds 50350 + 48550 | Fix test order dependent failures with seeds 50350 + 48550
| Ruby | mit | composerinteralia/factory_girl,thoughtbot/factory_girl | ruby | ## Code Before:
$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
$LOAD_PATH << File.join(File.dirname(__FILE__))
require 'rubygems'
require 'rspec'
require 'rspec/its'
require "simplecov"
require 'factory_girl'
require "mocha/api"
require "bourne"
require "timecop"
Dir["spec/support/**/*.rb"].each { |f|... | $LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
$LOAD_PATH << File.join(File.dirname(__FILE__))
require 'rubygems'
require 'rspec'
require 'rspec/its'
require "simplecov"
require 'factory_girl'
require "mocha/api"
require "bourne"
require "timecop"
Dir["spec/support/**/*.r... | 5 | 0.192308 | 4 | 1 |
151c3484da58fa02f7d2c69454be3cb4e3395d05 | recipes/recipe_modules/bot_update/tests/ensure_checkout.py | recipes/recipe_modules/bot_update/tests/ensure_checkout.py |
from recipe_engine import post_process
DEPS = [
'bot_update',
'gclient',
'recipe_engine/json',
]
def RunSteps(api):
api.gclient.set_config('depot_tools')
api.bot_update.ensure_checkout()
def GenTests(api):
yield (
api.test('basic') +
api.post_process(post_process.StatusCodeIn, 0) +
a... |
from recipe_engine import post_process
DEPS = [
'bot_update',
'gclient',
'recipe_engine/json',
]
def RunSteps(api):
api.gclient.set_config('depot_tools')
api.bot_update.ensure_checkout()
def GenTests(api):
yield (
api.test('basic') +
api.post_process(post_process.StatusSuccess) +
api... | Replace post-process checks with ones that are not deprecated | Replace post-process checks with ones that are not deprecated
R=40f3d43a28ebae3cb819288542e1c84d73d962d5@chromium.org
Bug: 899266
Change-Id: Ia9b1f38590d636fa2858a2bd0bbf75d6b2cfe8fa
Reviewed-on: https://chromium-review.googlesource.com/c/1483033
Reviewed-by: Robbie Iannucci <40f3d43a28ebae3cb819288542e1c84d73d962d5@... | Python | bsd-3-clause | CoherentLabs/depot_tools,CoherentLabs/depot_tools | python | ## Code Before:
from recipe_engine import post_process
DEPS = [
'bot_update',
'gclient',
'recipe_engine/json',
]
def RunSteps(api):
api.gclient.set_config('depot_tools')
api.bot_update.ensure_checkout()
def GenTests(api):
yield (
api.test('basic') +
api.post_process(post_process.StatusCode... |
from recipe_engine import post_process
DEPS = [
'bot_update',
'gclient',
'recipe_engine/json',
]
def RunSteps(api):
api.gclient.set_config('depot_tools')
api.bot_update.ensure_checkout()
def GenTests(api):
yield (
api.test('basic') +
- api.post_process(p... | 4 | 0.129032 | 2 | 2 |
c8d3f24e341e7d8e383cabb56c70b78fcd7a6d89 | src/commands/login.js | src/commands/login.js | import { promisify } from 'bluebird';
import { prompt as promptCallback } from 'promptly';
import { getNetrc, saveNetrc } from '../netrc';
const prompt = promisify(promptCallback);
export default async function login(reindex, args) {
let [url, token] = args._.slice(1);
if (!url) {
url = await prompt('Reinde... | import { promisify } from 'bluebird';
import { prompt as promptCallback } from 'promptly';
import { getNetrc, saveNetrc } from '../netrc';
const prompt = promisify(promptCallback);
export default async function login(reindex, args) {
let [url, token] = args._.slice(1);
if (!url) {
url = await prompt('Reinde... | Fix prompt validator that broke netrc saving | Fix prompt validator that broke netrc saving
| JavaScript | mit | reindexio/reindex-cli | javascript | ## Code Before:
import { promisify } from 'bluebird';
import { prompt as promptCallback } from 'promptly';
import { getNetrc, saveNetrc } from '../netrc';
const prompt = promisify(promptCallback);
export default async function login(reindex, args) {
let [url, token] = args._.slice(1);
if (!url) {
url = awai... | import { promisify } from 'bluebird';
import { prompt as promptCallback } from 'promptly';
import { getNetrc, saveNetrc } from '../netrc';
const prompt = promisify(promptCallback);
export default async function login(reindex, args) {
let [url, token] = args._.slice(1);
if (!url) {
ur... | 4 | 0.125 | 2 | 2 |
21879a0a499f32869811a1ec960be208d90d358c | tests/317-array-build.swift | tests/317-array-build.swift |
import io;
import unix;
(file o[]) task(file i, int n) "turbine" "0.1"
[
"""
set f [ swift_filename &<<i>> ]
exec ./317-array-build.task.sh $f <<n>>;
set L [ glob test-317-*.data ];
swift_array_build <<o>> $L file;
"""
];
main
{
printf("OK");
file i<"input.txt">;
file o[];
o = task(i, 10);
foreach f in o
... |
import io;
import unix;
(file o[]) task(file i, int n) "turbine" "0.1"
[
"""
set f [ swift_filename &<<i>> ]
exec ./317-array-build.task.sh $f <<n>>;
set L [ glob test-317-*.data ];
set <<o>> swift_array_build $L file;
"""
];
main
{
printf("OK");
file i<"input.txt">;
file o[];
o = task(i, 10);
foreach f i... | Update test 317 for modified array_build syntax | Update test 317 for modified array_build syntax
git-svn-id: 0c5512015aa96f7d3f5c3ad598bd98edc52008b1@10805 dc4e9af1-7f46-4ead-bba6-71afc04862de
| Swift | apache-2.0 | JohnPJenkins/swift-t,JohnPJenkins/swift-t,JohnPJenkins/swift-t,blue42u/swift-t,blue42u/swift-t,basheersubei/swift-t,swift-lang/swift-t,basheersubei/swift-t,basheersubei/swift-t,JohnPJenkins/swift-t,swift-lang/swift-t,swift-lang/swift-t,blue42u/swift-t,JohnPJenkins/swift-t,basheersubei/swift-t,blue42u/swift-t,basheersub... | swift | ## Code Before:
import io;
import unix;
(file o[]) task(file i, int n) "turbine" "0.1"
[
"""
set f [ swift_filename &<<i>> ]
exec ./317-array-build.task.sh $f <<n>>;
set L [ glob test-317-*.data ];
swift_array_build <<o>> $L file;
"""
];
main
{
printf("OK");
file i<"input.txt">;
file o[];
o = task(i, 10);
... |
import io;
import unix;
(file o[]) task(file i, int n) "turbine" "0.1"
[
"""
set f [ swift_filename &<<i>> ]
exec ./317-array-build.task.sh $f <<n>>;
set L [ glob test-317-*.data ];
- swift_array_build <<o>> $L file;
? ------
+ set <<o>> swift_array_build $L file;
? ++++++++++
... | 2 | 0.076923 | 1 | 1 |
6df89c0b812675b0fece2d0be212cdd6b3b00a6f | README.md | README.md | recsys
======
Use those scripts to download the 10M movielens dataset and index them in Elasticsearch:
setup-env.sh
============
Takes care of setting up an environment that can be used to index movielens data. Fetches:
| recsys
======
Use those scripts to download the 10M movielens dataset and index them in Elasticsearch:
setup-env.sh
============
Takes care of setting up an environment that can be used to index movielens data. Fetches:
* Movielens 10M dataset
* hetrec dataset to augment movielens
* Elasticsearch 1.4* for indexing
... | Add more details on how to use the scripts | Add more details on how to use the scripts | Markdown | apache-2.0 | MaineC/recsys,MaineC/recsys | markdown | ## Code Before:
recsys
======
Use those scripts to download the 10M movielens dataset and index them in Elasticsearch:
setup-env.sh
============
Takes care of setting up an environment that can be used to index movielens data. Fetches:
## Instruction:
Add more details on how to use the scripts
## Code After:
rec... | recsys
======
Use those scripts to download the 10M movielens dataset and index them in Elasticsearch:
setup-env.sh
============
Takes care of setting up an environment that can be used to index movielens data. Fetches:
+ * Movielens 10M dataset
+ * hetrec dataset to augment movielens
+ * Elasti... | 36 | 3 | 36 | 0 |
3dfb8178f5d1f5574fdaf48c4975fae35184e0e7 | .travis.yml | .travis.yml | language: node_js
node_js:
- "0.10.26"
before_install:
- npm install -g gulp
- npm install
- npm install -g bower
- bower install
script:
- gulp test
notifications:
email:
recipients:
- jespinog@gmail.com
- andrei.antoukh@gmail.com
- bameda@dbarragan.com
- anler86@g... | language: node_js
node_js:
- "0.10.26"
before_install:
- npm install -g gulp
- npm install
- npm install -g bower
- bower install
- apt-get install -qq google-chrome
script:
- gulp test
notifications:
email:
recipients:
- jespinog@gmail.com
- andrei.antoukh@gmail.com
... | Configure Travis-CI (4: Try to install chrome) | Configure Travis-CI (4: Try to install chrome)
| YAML | agpl-3.0 | taigaio/taiga-front-old | yaml | ## Code Before:
language: node_js
node_js:
- "0.10.26"
before_install:
- npm install -g gulp
- npm install
- npm install -g bower
- bower install
script:
- gulp test
notifications:
email:
recipients:
- jespinog@gmail.com
- andrei.antoukh@gmail.com
- bameda@dbarragan.com
... | language: node_js
node_js:
- "0.10.26"
before_install:
- npm install -g gulp
- npm install
- npm install -g bower
- bower install
+ - apt-get install -qq google-chrome
script:
- gulp test
notifications:
email:
recipients:
- jespinog@gmail.com
-... | 1 | 0.052632 | 1 | 0 |
786337a56f45b1a64c915c5a810114c74a3fae8d | components/tips/tips.jade | components/tips/tips.jade | if tips
.Tips__tips
for tip in tips
a.Tip.js-tip(
href=tip.href
data-id=tip.id
data-trigger=tip.trigger
)
.Tip__title!= tip.title
.Tip__close.js-close
span(
class='iconic iconic-sm'
data-glyph='x'
title='x'
... | if tips
.Tips__tips
for tip in tips
.Tip.js-tip(
data-id=tip.id
data-trigger=tip.trigger
)
a(href=tip.href)
.Tip__title!= tip.title
.Tip__close.js-close
span.js-close(
class='iconic iconic-sm'
data-glyph='x'
title... | Move link from tip container to tip title | Move link from tip container to tip title
| Jade | mit | aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell | jade | ## Code Before:
if tips
.Tips__tips
for tip in tips
a.Tip.js-tip(
href=tip.href
data-id=tip.id
data-trigger=tip.trigger
)
.Tip__title!= tip.title
.Tip__close.js-close
span(
class='iconic iconic-sm'
data-glyph='x'
tit... | if tips
.Tips__tips
for tip in tips
- a.Tip.js-tip(
? -
+ .Tip.js-tip(
- href=tip.href
data-id=tip.id
data-trigger=tip.trigger
- )
+ )
? +
+ a(href=tip.href)
- .Tip__title!= tip.title
+ .Tip__title!= tip.title
? ++... | 10 | 0.625 | 5 | 5 |
0792fefb2bc9d5db038b48855f0b1bb138653332 | autogen.sh | autogen.sh |
set -e
# Some boiler plate to get git setup as expected
if test -d .git; then
if test -f .git/hooks/pre-commit.sample && \
test ! -f .git/hooks/pre-commit; then
cp -pv .git/hooks/pre-commit.sample .git/hooks/pre-commit
fi
fi
set -x
# Copied from avahi's autogen.sh to work around gettext braindamage
rm -f Ma... |
set -e
# Some boiler plate to get git setup as expected
if test -d .git; then
if test -f .git/hooks/pre-commit.sample && \
test ! -f .git/hooks/pre-commit; then
cp -pv .git/hooks/pre-commit.sample .git/hooks/pre-commit
fi
fi
set -x
gettextize=$(which gettextize)
if test -z "$gettextize"; then
echo "Couldn'... | Handle build case when gettextize is not available or not installed | Handle build case when gettextize is not available or not installed
| Shell | bsd-3-clause | Distrotech/p11-kit,pspacek/p11-kit,freedesktop-unofficial-mirror/p11-glue__p11-kit,freedesktop-unofficial-mirror/p11-glue__p11-kit,pspacek/p11-kit,pspacek/p11-kit,pspacek/p11-kit,Distrotech/p11-kit,lkundrak/p11-kit,freedesktop-unofficial-mirror/p11-glue__p11-kit,Distrotech/p11-kit,lkundrak/p11-kit,lkundrak/p11-kit,Dist... | shell | ## Code Before:
set -e
# Some boiler plate to get git setup as expected
if test -d .git; then
if test -f .git/hooks/pre-commit.sample && \
test ! -f .git/hooks/pre-commit; then
cp -pv .git/hooks/pre-commit.sample .git/hooks/pre-commit
fi
fi
set -x
# Copied from avahi's autogen.sh to work around gettext brai... |
set -e
# Some boiler plate to get git setup as expected
if test -d .git; then
if test -f .git/hooks/pre-commit.sample && \
test ! -f .git/hooks/pre-commit; then
cp -pv .git/hooks/pre-commit.sample .git/hooks/pre-commit
fi
fi
set -x
+ gettextize=$(which gettextize)
+ if test -z "$ge... | 8 | 0.32 | 7 | 1 |
b476edaa4513e57cae60e4b25319c82cdb96f2bc | schema/2.0/gooobject.ts | schema/2.0/gooobject.ts | /// <reference path="common.ts"/>
enum LicenseType {
'CC0',
'CC BY',
'CC BY-SA',
'CC BY-NC',
'CC BY-NC-SA',
'PRIVATE'
}
interface GooObject {
id: string;
name: string;
license: LicenseType;
originalLicense?: LicenseType;
created: DateTime;
modified: DateTime;
readOnly?: boolean;
description?: string;... | /// <reference path="common.ts"/>
enum LicenseType {
'CC0',
'CC BY',
'CC BY-SA',
'CC BY-NC',
'CC BY-NC-SA',
'PRIVATE'
}
interface GooObject {
id: string;
name: string;
license: LicenseType;
originalLicense?: LicenseType;
created: DateTime;
modified: DateTime;
readOnly?: boolean;
description?: string;... | Add support for meta properties in every goo object. | Add support for meta properties in every goo object.
| TypeScript | mit | GooTechnologies/datamodel,GooTechnologies/datamodel,GooTechnologies/datamodel | typescript | ## Code Before:
/// <reference path="common.ts"/>
enum LicenseType {
'CC0',
'CC BY',
'CC BY-SA',
'CC BY-NC',
'CC BY-NC-SA',
'PRIVATE'
}
interface GooObject {
id: string;
name: string;
license: LicenseType;
originalLicense?: LicenseType;
created: DateTime;
modified: DateTime;
readOnly?: boolean;
descr... | /// <reference path="common.ts"/>
enum LicenseType {
'CC0',
'CC BY',
'CC BY-SA',
'CC BY-NC',
'CC BY-NC-SA',
'PRIVATE'
}
interface GooObject {
id: string;
name: string;
license: LicenseType;
originalLicense?: LicenseType;
created: DateTime;
modified: DateTime;
r... | 4 | 0.097561 | 4 | 0 |
aa1f8fb5e611d2090914ffbbefaaf960d5ead45e | src/js/components/Shortcut/HotkeyDialog.tsx | src/js/components/Shortcut/HotkeyDialog.tsx | import React from 'react'
import { observer } from 'mobx-react'
import Dialog from '@material-ui/core/Dialog'
import DialogTitle from '@material-ui/core/DialogTitle'
import DialogContent from '@material-ui/core/DialogContent'
import Help from './Help'
import Fade from '@material-ui/core/Fade'
import { useStore } from '... | import React from 'react'
import useMediaQuery from '@material-ui/core/useMediaQuery'
import { observer } from 'mobx-react'
import Dialog from '@material-ui/core/Dialog'
import DialogTitle from '@material-ui/core/DialogTitle'
import DialogContent from '@material-ui/core/DialogContent'
import Help from './Help'
import F... | Make hotkey dialog responsive and add close button | fix: Make hotkey dialog responsive and add close button
| TypeScript | mit | xcv58/Tab-Manager-v2,xcv58/Tab-Manager-v2,xcv58/Tab-Manager-v2,xcv58/Tab-Manager-v2 | typescript | ## Code Before:
import React from 'react'
import { observer } from 'mobx-react'
import Dialog from '@material-ui/core/Dialog'
import DialogTitle from '@material-ui/core/DialogTitle'
import DialogContent from '@material-ui/core/DialogContent'
import Help from './Help'
import Fade from '@material-ui/core/Fade'
import { u... | import React from 'react'
+ import useMediaQuery from '@material-ui/core/useMediaQuery'
import { observer } from 'mobx-react'
import Dialog from '@material-ui/core/Dialog'
import DialogTitle from '@material-ui/core/DialogTitle'
import DialogContent from '@material-ui/core/DialogContent'
import Help from './... | 30 | 0.857143 | 25 | 5 |
35a5e8717df9a5bcb60593700aa7e2f291816b0f | test/test_extensions/test_analytics.py | test/test_extensions/test_analytics.py |
import time
from web.core.context import Context
from web.ext.analytics import AnalyticsExtension
def test_analytics_extension():
ctx = Context(response=Context(headers=dict()))
ext = AnalyticsExtension()
assert not hasattr(ctx, '_start_time')
ext.prepare(ctx)
assert hasattr(ctx, '_start_time')
ext.before... |
import time
import pytest
from webob import Request
from web.core import Application
from web.core.context import Context
from web.ext.analytics import AnalyticsExtension
def endpoint(context):
time.sleep(0.1)
return "Hi."
sample = Application(endpoint, extensions=[AnalyticsExtension()])
def test_analytics_ex... | Add test for full processing pipeline. | Add test for full processing pipeline.
| Python | mit | marrow/WebCore,marrow/WebCore | python | ## Code Before:
import time
from web.core.context import Context
from web.ext.analytics import AnalyticsExtension
def test_analytics_extension():
ctx = Context(response=Context(headers=dict()))
ext = AnalyticsExtension()
assert not hasattr(ctx, '_start_time')
ext.prepare(ctx)
assert hasattr(ctx, '_start_ti... |
import time
+ import pytest
+ from webob import Request
+ from web.core import Application
from web.core.context import Context
from web.ext.analytics import AnalyticsExtension
+
+
+ def endpoint(context):
+ time.sleep(0.1)
+ return "Hi."
+
+
+ sample = Application(endpoint, extensions=[AnalyticsExten... | 21 | 1 | 21 | 0 |
6699ecff752fa7828bd072b948808ec39f9e7b59 | bower.json | bower.json | {
"name": "ng-c3-export",
"version": "0.1.2",
"authors": [
{
"name": "Anna Tomka",
"email": "tomkaanna@gmail.com"
}
],
"keywords": [
"c3",
"c3.js",
"angularjs",
"graph",
"export",
"image"
],
"main": [
"dist/ng-c3-export.js"
],
"ignore": [
"src",
... | {
"name": "ng-c3-export",
"version": "0.1.2",
"authors": [
{
"name": "Anna Tomka",
"email": "tomkaanna@gmail.com"
}
],
"keywords": [
"c3",
"c3.js",
"angularjs",
"graph",
"export",
"image"
],
"main": [
"dist/ng-c3-export.js",
"dist/ng-c3-export.css"
],
... | Add css file to main | Add css file to main
| JSON | mit | annatomka/ng-c3-export | json | ## Code Before:
{
"name": "ng-c3-export",
"version": "0.1.2",
"authors": [
{
"name": "Anna Tomka",
"email": "tomkaanna@gmail.com"
}
],
"keywords": [
"c3",
"c3.js",
"angularjs",
"graph",
"export",
"image"
],
"main": [
"dist/ng-c3-export.js"
],
"ignore": [... | {
"name": "ng-c3-export",
"version": "0.1.2",
"authors": [
{
"name": "Anna Tomka",
"email": "tomkaanna@gmail.com"
}
],
"keywords": [
"c3",
"c3.js",
"angularjs",
"graph",
"export",
"image"
],
"main": [
- "dist/ng-c3-export.... | 3 | 0.069767 | 2 | 1 |
2f5bf3a36944e01b1e51138c7f98e52a1a992d60 | modules/password/index.styl | modules/password/index.styl | // Tâmia © 2013 Artem Sapegin http://sapegin.me
// Password field with toggle to show characters
// Dependencies: form
// Bones
.password
position: relative
display: block
width: 100%
&__field
position:relative;
width: inherit
z-index: 90
&__toggle
display: none
&.is-ok &__toggle
position: absolute
... | // Tâmia © 2013 Artem Sapegin http://sapegin.me
// Password field with toggle to show characters
// Dependencies: form
// Bones
.password
position: relative
display: block
width: 100%
&__field
position:relative;
width: inherit
z-index: 90
&__toggle
display: none
&.is-ok &__toggle
position: absolute
... | Hide IE10 password visibility toggle. | Password: Hide IE10 password visibility toggle.
| Stylus | mit | tamiadev/tamia,tamiadev/tamia | stylus | ## Code Before:
// Tâmia © 2013 Artem Sapegin http://sapegin.me
// Password field with toggle to show characters
// Dependencies: form
// Bones
.password
position: relative
display: block
width: 100%
&__field
position:relative;
width: inherit
z-index: 90
&__toggle
display: none
&.is-ok &__toggle
pos... | // Tâmia © 2013 Artem Sapegin http://sapegin.me
// Password field with toggle to show characters
// Dependencies: form
// Bones
.password
position: relative
display: block
width: 100%
&__field
position:relative;
width: inherit
z-index: 90
&__toggle
display: none
&... | 4 | 0.08 | 4 | 0 |
bffe6dcd071f217172f982a5aaeff1822b18de89 | locales/lg/email.properties | locales/lg/email.properties | your_gift_help_us=Ekilabo kyo kituyamba okuzimba akatimbe ensi keyetaga.
# Subject line for recurring donations
| your_gift_help_us=Ekilabo kyo kituyamba okuzimba akatimbe ensi keyetaga.
# Subject line for recurring donations
stripe_charge_succeeded_2014_recurring_subject=Webale kuwagila nga Mozilla n'obuyambi.
| Update Luganda (lg) localization of Fundraising | Pontoon: Update Luganda (lg) localization of Fundraising
Localization authors:
- Lawk <lawrence@mozilla-uganda.org>
| INI | mpl-2.0 | mozilla/donate.mozilla.org | ini | ## Code Before:
your_gift_help_us=Ekilabo kyo kituyamba okuzimba akatimbe ensi keyetaga.
# Subject line for recurring donations
## Instruction:
Pontoon: Update Luganda (lg) localization of Fundraising
Localization authors:
- Lawk <lawrence@mozilla-uganda.org>
## Code After:
your_gift_help_us=Ekilabo kyo kituyamba o... | your_gift_help_us=Ekilabo kyo kituyamba okuzimba akatimbe ensi keyetaga.
# Subject line for recurring donations
+ stripe_charge_succeeded_2014_recurring_subject=Webale kuwagila nga Mozilla n'obuyambi.
| 1 | 0.333333 | 1 | 0 |
18a367ef6d050d7936b9da4d00dd9da017ece151 | .travis.yml | .travis.yml | language: erlang
otp_release:
- 17.1
- 18.3
- 19.2
- 20.2
install:
- sudo apt-get -qq install librsync-dev
script:
- ./configure
- make
- make doc
- make xref
- make test
notifications:
email: false
| language: erlang
otp_release:
- 17.1
- 21.3
install:
- sudo apt-get -qq install librsync-dev
script:
- ./configure
- make
- make doc
- make xref
- make test
notifications:
email: false
| Update Erlang/OTP Travis CI platforms | Update Erlang/OTP Travis CI platforms
| YAML | apache-2.0 | zinid/erlang-rsync | yaml | ## Code Before:
language: erlang
otp_release:
- 17.1
- 18.3
- 19.2
- 20.2
install:
- sudo apt-get -qq install librsync-dev
script:
- ./configure
- make
- make doc
- make xref
- make test
notifications:
email: false
## Instruction:
Update Erlang/OTP Travis CI platforms
## Code After:
language... | language: erlang
otp_release:
- 17.1
- - 18.3
? -
+ - 21.3
? +
- - 19.2
- - 20.2
install:
- sudo apt-get -qq install librsync-dev
script:
- ./configure
- make
- make doc
- make xref
- make test
notifications:
email: false | 4 | 0.2 | 1 | 3 |
624928003ab7206d02b66119ffb66b2ddc7edcb1 | README.md | README.md |
The plan is simple. An open source, MIT Licensed web application which serves as a home for some of my technical knowledge hosts my writing and public content, for which I retain proprietary ownership.
## Usage
You'll need docker. The application aims to be runable in docker by doing nothing more than `git clone htt... |
The plan is simple. An open source, MIT Licensed web application which serves as a home for some of my technical knowledge hosts my writing and public content, for which I retain proprietary ownership.
## Usage
You'll need docker. The application aims to be runable in docker by doing nothing more than `git clone htt... | Add architecture documentation to root readme | Add architecture documentation to root readme
| Markdown | mit | allison-knauss/arkweb,allison-knauss/arkweb,allison-knauss/arkweb | markdown | ## Code Before:
The plan is simple. An open source, MIT Licensed web application which serves as a home for some of my technical knowledge hosts my writing and public content, for which I retain proprietary ownership.
## Usage
You'll need docker. The application aims to be runable in docker by doing nothing more tha... |
The plan is simple. An open source, MIT Licensed web application which serves as a home for some of my technical knowledge hosts my writing and public content, for which I retain proprietary ownership.
## Usage
You'll need docker. The application aims to be runable in docker by doing nothing more than `g... | 6 | 0.214286 | 6 | 0 |
8574cc8d801fc270a91134a17239d44fd9cf192f | metadata/dev.lonami.klooni.yml | metadata/dev.lonami.klooni.yml | Categories:
- Games
License: GPL-3.0-or-later
WebSite: https://lonamiwebs.github.io/klooni
SourceCode: https://github.com/LonamiWebs/Klooni1010
IssueTracker: https://github.com/LonamiWebs/Klooni1010/issues
Changelog: https://github.com/LonamiWebs/Klooni1010/releases
AutoName: 1010! Klooni
RepoType: git
Repo: https:... | Categories:
- Games
License: GPL-3.0-or-later
WebSite: https://lonamiwebs.github.io/klooni
SourceCode: https://github.com/LonamiWebs/Klooni1010
IssueTracker: https://github.com/LonamiWebs/Klooni1010/issues
Changelog: https://github.com/LonamiWebs/Klooni1010/releases
AutoName: 1010! Klooni
RepoType: git
Repo: https:... | Update 1010! Klooni to 0.8.5 (850) | Update 1010! Klooni to 0.8.5 (850)
| YAML | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata | yaml | ## Code Before:
Categories:
- Games
License: GPL-3.0-or-later
WebSite: https://lonamiwebs.github.io/klooni
SourceCode: https://github.com/LonamiWebs/Klooni1010
IssueTracker: https://github.com/LonamiWebs/Klooni1010/issues
Changelog: https://github.com/LonamiWebs/Klooni1010/releases
AutoName: 1010! Klooni
RepoType: ... | Categories:
- Games
License: GPL-3.0-or-later
WebSite: https://lonamiwebs.github.io/klooni
SourceCode: https://github.com/LonamiWebs/Klooni1010
IssueTracker: https://github.com/LonamiWebs/Klooni1010/issues
Changelog: https://github.com/LonamiWebs/Klooni1010/releases
AutoName: 1010! Klooni
Repo... | 11 | 0.44 | 9 | 2 |
24820f57df9ac141eac7557041c5dd945e69a159 | app/assets/javascripts/admin/admin.js.coffee | app/assets/javascripts/admin/admin.js.coffee | jQuery ->
$('.locales a:first').tab('show')
$('.accordion-body').on('hidden', ->
$(@).prev().find('i').first().removeClass().addClass('icon-chevron-right')
)
$('.accordion-body').on('shown', ->
$(@).prev().find('i').first().removeClass().addClass('icon-chevron-down'))
$('body').o... | jQuery ->
$('.locales a:first').tab('show')
$('.accordion-body').on('hidden', ->
$(@).prev().find('i').first().removeClass().addClass('icon-chevron-right')
)
$('.accordion-body').on('shown', ->
$(@).prev().find('i').first().removeClass().addClass('icon-chevron-down'))
$('.toggle-... | Fix syntax error in on() method. | Fix syntax error in on() method.
Looks like this was a mistake in ec2999ef8c233d30c46dd5181e246916b0145606
| CoffeeScript | agpl-3.0 | nzherald/alaveteli,andreicristianpetcu/alaveteli,Br3nda/alaveteli,4bic/alaveteli,andreicristianpetcu/alaveteli_old,Br3nda/alaveteli,4bic/alaveteli,andreicristianpetcu/alaveteli_old,andreicristianpetcu/alaveteli_old,andreicristianpetcu/alaveteli_old,andreicristianpetcu/alaveteli,nzherald/alaveteli,4bic/alaveteli,andreic... | coffeescript | ## Code Before:
jQuery ->
$('.locales a:first').tab('show')
$('.accordion-body').on('hidden', ->
$(@).prev().find('i').first().removeClass().addClass('icon-chevron-right')
)
$('.accordion-body').on('shown', ->
$(@).prev().find('i').first().removeClass().addClass('icon-chevron-down'))... | jQuery ->
$('.locales a:first').tab('show')
$('.accordion-body').on('hidden', ->
$(@).prev().find('i').first().removeClass().addClass('icon-chevron-right')
)
$('.accordion-body').on('shown', ->
$(@).prev().find('i').first().removeClass().addClass('icon-chevron-down'))
-... | 2 | 0.083333 | 1 | 1 |
df30f32e05c6d311f01be9b9de0ca27c2ce57ad5 | PopupBridgeExample/src/main/java/com/braintreepayments/popupbridge/example/MainActivity.java | PopupBridgeExample/src/main/java/com/braintreepayments/popupbridge/example/MainActivity.java | package com.braintreepayments.popupbridge.example;
import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;
import com.braintreepayments.popupbridge.PopupBridge;
public class MainActivity extends Activity {
private static final String URL = "https://braintree.github.io/popup-bridge-... | package com.braintreepayments.popupbridge.example;
import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;
import com.braintreepayments.popupbridge.PopupBridge;
public class MainActivity extends Activity {
private static final String URL = "https://braintree.github.io/popup-bridge-... | Remove unneeded code in example app | Remove unneeded code in example app
| Java | mit | braintree/popup-bridge-android,braintree/popup-bridge-android | java | ## Code Before:
package com.braintreepayments.popupbridge.example;
import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;
import com.braintreepayments.popupbridge.PopupBridge;
public class MainActivity extends Activity {
private static final String URL = "https://braintree.github.... | package com.braintreepayments.popupbridge.example;
import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;
import com.braintreepayments.popupbridge.PopupBridge;
public class MainActivity extends Activity {
private static final String URL = "https://braintree.g... | 1 | 0.037037 | 0 | 1 |
0d4cf0236190bba18edd2217d65e5cdcd92a27bd | packages/accounts-password/package.js | packages/accounts-password/package.js | Package.describe({
summary: "Password support for accounts",
version: "1.2.12"
});
Package.onUse(function(api) {
api.use('npm-bcrypt@=0.8.7');
api.use([
'accounts-base',
'srp',
'sha',
'ejson',
'ddp'
], ['client', 'server']);
// Export Accounts (etc) to packages using this one.
api.i... | Package.describe({
summary: "Password support for accounts",
version: "1.2.13"
});
Package.onUse(function(api) {
api.use('npm-bcrypt@=0.8.7_1');
api.use([
'accounts-base@1.2.9',
'srp@1.0.9',
'sha@1.0.8',
'ejson@1.0.12',
'ddp@1.2.5'
], ['client', 'server']);
// Export Accounts (etc) to... | Add version constraints for all dependencies of accounts-password. | Add version constraints for all dependencies of accounts-password.
This is necessary to allow publishing accounts-password independently of a
Meteor release.
Note that the npm-bcrypt version has been bumped to 0.8.7_1.
| JavaScript | mit | Hansoft/meteor,chasertech/meteor,chasertech/meteor,mjmasn/meteor,mjmasn/meteor,Hansoft/meteor,chasertech/meteor,chasertech/meteor,chasertech/meteor,Hansoft/meteor,mjmasn/meteor,chasertech/meteor,mjmasn/meteor,Hansoft/meteor,Hansoft/meteor,mjmasn/meteor,chasertech/meteor,mjmasn/meteor,Hansoft/meteor,Hansoft/meteor,mjmas... | javascript | ## Code Before:
Package.describe({
summary: "Password support for accounts",
version: "1.2.12"
});
Package.onUse(function(api) {
api.use('npm-bcrypt@=0.8.7');
api.use([
'accounts-base',
'srp',
'sha',
'ejson',
'ddp'
], ['client', 'server']);
// Export Accounts (etc) to packages using t... | Package.describe({
summary: "Password support for accounts",
- version: "1.2.12"
? ^
+ version: "1.2.13"
? ^
});
Package.onUse(function(api) {
- api.use('npm-bcrypt@=0.8.7');
+ api.use('npm-bcrypt@=0.8.7_1');
? ++
api.use([
- ... | 26 | 0.666667 | 13 | 13 |
99ecffdb424d25789b628a028c56cbb5224068cd | etc/ordered_pip.sh | etc/ordered_pip.sh |
a=0
while read line
do
if [[ -n "$line" && "$line" != \#* ]] ; then
pip install --use-mirrors $line
fi
((a = a + 1))
done < $1
echo "$0: Final package count is $a";
|
a=0
while read line
do
if [[ -n "$line" && "$line" != \#* ]] ; then
pip install $line
fi
((a = a + 1))
done < $1
echo "$0: Final package count is $a";
| Remove deprecated pip --use-mirrors flag. | BLD: Remove deprecated pip --use-mirrors flag.
With release 1.5 pip deprecated the --use-mirrors flag,
since that release the flag is a noop and raises a deprecation warning.
| Shell | apache-2.0 | umuzungu/zipline,erikness/AlephOne,CDSFinance/zipline,DVegaCapital/zipline,morrisonwudi/zipline,otmaneJai/Zipline,bartosh/zipline,aajtodd/zipline,jimgoo/zipline-fork,magne-max/zipline-ja,cmorgan/zipline,dmitriz/zipline,nborggren/zipline,ChinaQuants/zipline,sketchytechky/zipline,quantopian/zipline,dkushner/zipline,iamki... | shell | ## Code Before:
a=0
while read line
do
if [[ -n "$line" && "$line" != \#* ]] ; then
pip install --use-mirrors $line
fi
((a = a + 1))
done < $1
echo "$0: Final package count is $a";
## Instruction:
BLD: Remove deprecated pip --use-mirrors flag.
With release 1.5 pip deprecated the --use-mirror... |
a=0
while read line
do
if [[ -n "$line" && "$line" != \#* ]] ; then
- pip install --use-mirrors $line
? --------------
+ pip install $line
fi
((a = a + 1))
done < $1
echo "$0: Final package count is $a"; | 2 | 0.2 | 1 | 1 |
c3437ef69b462462bb12a72e3e6f068b217d7f7c | core/db/migrate/20140410074113_move_notification_settings_to_user.rb | core/db/migrate/20140410074113_move_notification_settings_to_user.rb | class MoveNotificationSettingsToUser < Mongoid::Migration
def self.up
User.all.each do |user|
if user['user_notification'].nil?
Backend::Notifications.reset_edit_token(user: user)
else
user['notification_settings_edit_token'] ||=
user['user_notification']['notification_settin... | class MoveNotificationSettingsToUser < Mongoid::Migration
def self.up
User.all.each do |user|
if user['user_notification'].nil?
Backend::Notifications.reset_edit_token(user: user)
else
user['notification_settings_edit_token'] ||=
user['user_notification']['notification_settin... | Print details of failed users | Print details of failed users
| Ruby | mit | daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core | ruby | ## Code Before:
class MoveNotificationSettingsToUser < Mongoid::Migration
def self.up
User.all.each do |user|
if user['user_notification'].nil?
Backend::Notifications.reset_edit_token(user: user)
else
user['notification_settings_edit_token'] ||=
user['user_notification']['not... | class MoveNotificationSettingsToUser < Mongoid::Migration
def self.up
User.all.each do |user|
if user['user_notification'].nil?
Backend::Notifications.reset_edit_token(user: user)
else
user['notification_settings_edit_token'] ||=
user['user_notification']['not... | 10 | 0.625 | 9 | 1 |
652f85cba3447c2ef4c1a70dfd7b3f7e5ae63b51 | spec/system/campaigns_spec.rb | spec/system/campaigns_spec.rb | require "rails_helper"
describe "Email campaigns", :admin do
let!(:campaign1) { create(:campaign) }
let!(:campaign2) { create(:campaign) }
scenario "Track email templates" do
3.times { visit root_path(track_id: campaign1.track_id) }
5.times { visit root_path(track_id: campaign2.track_id) }
visit ad... | require "rails_helper"
describe "Email campaigns", :admin do
let!(:campaign1) { create(:campaign) }
let!(:campaign2) { create(:campaign) }
scenario "Track email templates" do
3.times { visit root_path(track_id: campaign1.track_id) }
5.times { visit root_path(track_id: campaign2.track_id) }
visit ad... | Update spec expectations to avoid flake specs | Update spec expectations to avoid flake specs
The last expectation we were using in this test is satisfied before
going back to the admin stats page, as the campaing2 name is not
present before clicking the `Go back` link. Because of this, the
test could end while the request thrown by the `Go back` link is
not comple... | Ruby | agpl-3.0 | consul/consul,consul/consul,consul/consul,consul/consul,consul/consul | ruby | ## Code Before:
require "rails_helper"
describe "Email campaigns", :admin do
let!(:campaign1) { create(:campaign) }
let!(:campaign2) { create(:campaign) }
scenario "Track email templates" do
3.times { visit root_path(track_id: campaign1.track_id) }
5.times { visit root_path(track_id: campaign2.track_id)... | require "rails_helper"
describe "Email campaigns", :admin do
let!(:campaign1) { create(:campaign) }
let!(:campaign2) { create(:campaign) }
scenario "Track email templates" do
3.times { visit root_path(track_id: campaign1.track_id) }
5.times { visit root_path(track_id: campaign2.track_i... | 8 | 0.228571 | 4 | 4 |
48626bc574d4619654afd9659833d3e1b5e9ac42 | app/assets/javascripts/statusChart/statusChartService.js | app/assets/javascripts/statusChart/statusChartService.js | angular.module('ocWebGui.statusChart.service', ['ngResource'])
.factory('AgentStatusStats', function ($http) {
return {
stats: function (startDate, endDate, reportType) {
return $http.post('agent_statuses/stats', {
report_type: reportType,
team_name: 'Helpdesk',
start_d... | angular.module('ocWebGui.statusChart.service', ['ngResource'])
.factory('AgentStatusStats', function ($http) {
return {
stats: function (startDate, endDate, reportType) {
return $http.post('agent_statuses/stats', {
report_type: reportType,
team_name: 'Helpdesk',
start_d... | Fix duration formatting in status chart | Fix duration formatting in status chart
Numbers were not zero padded.
| JavaScript | mit | UniversityofHelsinki/OC-webgui,UniversityofHelsinki/OC-webgui,UniversityofHelsinki/OC-webgui,UniversityofHelsinki/OC-webgui | javascript | ## Code Before:
angular.module('ocWebGui.statusChart.service', ['ngResource'])
.factory('AgentStatusStats', function ($http) {
return {
stats: function (startDate, endDate, reportType) {
return $http.post('agent_statuses/stats', {
report_type: reportType,
team_name: 'Helpdesk',
... | angular.module('ocWebGui.statusChart.service', ['ngResource'])
.factory('AgentStatusStats', function ($http) {
return {
stats: function (startDate, endDate, reportType) {
return $http.post('agent_statuses/stats', {
report_type: reportType,
team_name: 'Helpdesk',
... | 7 | 0.170732 | 2 | 5 |
312f9814fb529bd4efb1b68ecb29ec47168c36bd | package.json | package.json | {
"name": "ember-fastboot-test-helpers",
"version": "0.1.0",
"description": "Test helpers for fastboot",
"directories": {
"doc": "doc",
"test": "tests"
},
"scripts": {
"build": "ember build",
"start": "ember server",
"test": "ember try:testall"
},
"repository": "",
"engines": {
... | {
"name": "ember-fastboot-test-helpers",
"version": "0.1.0",
"description": "Test helpers for fastboot",
"directories": {
"doc": "doc",
"test": "tests"
},
"scripts": {
"build": "ember build",
"start": "ember server",
"test": "ember try:testall"
},
"repository": "",
"engines": {
... | Move some stuff to runtime deps | Move some stuff to runtime deps
| JSON | mit | cibernox/ember-fastboot-test-helpers,cibernox/ember-fastboot-test-helpers | json | ## Code Before:
{
"name": "ember-fastboot-test-helpers",
"version": "0.1.0",
"description": "Test helpers for fastboot",
"directories": {
"doc": "doc",
"test": "tests"
},
"scripts": {
"build": "ember build",
"start": "ember server",
"test": "ember try:testall"
},
"repository": "",
... | {
"name": "ember-fastboot-test-helpers",
"version": "0.1.0",
"description": "Test helpers for fastboot",
"directories": {
"doc": "doc",
"test": "tests"
},
"scripts": {
"build": "ember build",
"start": "ember server",
"test": "ember try:testall"
},
"reposit... | 8 | 0.216216 | 4 | 4 |
adf7dcae5e4d19d57804fe68bfabacb24442bcf3 | zsh/os/mac.zsh | zsh/os/mac.zsh | export EDITOR=/usr/local/bin/code
export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3
# Load Custom Files
include "${HOME}/.zsh/os/mac_iterm2.zsh"
# Custom Aliases
alias cask="brew cask"
alias cpwd="pwd | pbcopy"
# Software Management
# ------------------
in() {
# Install Shortcut (brew)
brew install "$@"
}
se... | export EDITOR=/usr/local/bin/code
export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3
# Load Custom Files
include "${HOME}/.zsh/os/mac_iterm2.zsh"
# Custom Aliases
alias cask="brew cask"
alias cpwd="pwd | pbcopy"
alias apex-up="/usr/local/bin/up"
# Software Management
# ------------------
in() {
# Install Shortc... | Fix apex's up not working | Fix apex's up not working
| Shell | mit | niklas-heer/dotfiles,niklas-heer/dotfiles,niklas-heer/dotfiles | shell | ## Code Before:
export EDITOR=/usr/local/bin/code
export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3
# Load Custom Files
include "${HOME}/.zsh/os/mac_iterm2.zsh"
# Custom Aliases
alias cask="brew cask"
alias cpwd="pwd | pbcopy"
# Software Management
# ------------------
in() {
# Install Shortcut (brew)
brew in... | export EDITOR=/usr/local/bin/code
export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3
# Load Custom Files
include "${HOME}/.zsh/os/mac_iterm2.zsh"
# Custom Aliases
alias cask="brew cask"
alias cpwd="pwd | pbcopy"
+ alias apex-up="/usr/local/bin/up"
# Software Management
# -----------------... | 1 | 0.027027 | 1 | 0 |
58f95db154099cfc06afa62cc7fa0be28471cc15 | .github/workflows/ci.yaml | .github/workflows/ci.yaml | name: CI
on: pull_request
jobs:
notebook_format:
name: Notebook format
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v1
- uses: actions/checkout@v2
- name: Fetch master branch
run: git fetch -u origin master:master
- name: Install tensorflow-docs
run: python3 -m p... | name: CI
on:
pull_request:
paths:
- "site/en/**"
jobs:
nbfmt:
name: Notebook format
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v1
- uses: actions/checkout@v2
- name: Fetch master branch
run: git fetch -u origin master:master
- name: Install tensorflow-docs
... | Update CI workflow for nbfmt and nblint | Update CI workflow for nbfmt and nblint
| YAML | apache-2.0 | tensorflow/docs,tensorflow/docs,tensorflow/docs | yaml | ## Code Before:
name: CI
on: pull_request
jobs:
notebook_format:
name: Notebook format
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v1
- uses: actions/checkout@v2
- name: Fetch master branch
run: git fetch -u origin master:master
- name: Install tensorflow-docs
r... | name: CI
+ on:
- on: pull_request
? ^^^
+ pull_request:
? ^ +
+ paths:
+ - "site/en/**"
jobs:
- notebook_format:
+ nbfmt:
name: Notebook format
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v1
- uses: actions/checkout@v2
- name: Fetch m... | 39 | 1.625 | 33 | 6 |
21bec7ec8ced4ea2468fdd196f63e126d3312a6d | share/spice/book/book.css | share/spice/book/book.css | width: 40%;
display: inline-block;
}
#spice_book .spice_pane_right {
width: 50%;
display: inline-block;
vertical-align: top;
border-left: 1px solid rgba(0,0,0,0.1);
padding-left: 10px;
}
#spice_book .book_data_item {
display: inline-block;
padding-right: 6px;
color: gray;
}
#s... | width: 40%;
display: inline-block;
}
#spice_book .spice_pane_right {
width: 50%;
display: inline-block;
vertical-align: top;
border-left: 1px solid rgba(0,0,0,0.1);
padding-left: 10px;
}
#spice_book .book_data_item {
display: inline-block;
padding-right: 6px;
color: gray;
}
#s... | Remove display: block. We don't need it. | Book: Remove display: block. We don't need it.
| CSS | apache-2.0 | evejweinberg/zeroclickinfo-spice,Dwaligon/zeroclickinfo-spice,andrey-p/zeroclickinfo-spice,lernae/zeroclickinfo-spice,xaviervalarino/zeroclickinfo-spice,P71/zeroclickinfo-spice,MoriTanosuke/zeroclickinfo-spice,timeanddate/zeroclickinfo-spice,Queeniebee/zeroclickinfo-spice,ColasBroux/zeroclickinfo-spice,Faiz7412/zerocli... | css | ## Code Before:
width: 40%;
display: inline-block;
}
#spice_book .spice_pane_right {
width: 50%;
display: inline-block;
vertical-align: top;
border-left: 1px solid rgba(0,0,0,0.1);
padding-left: 10px;
}
#spice_book .book_data_item {
display: inline-block;
padding-right: 6px;
co... | width: 40%;
display: inline-block;
}
#spice_book .spice_pane_right {
width: 50%;
display: inline-block;
vertical-align: top;
border-left: 1px solid rgba(0,0,0,0.1);
padding-left: 10px;
}
#spice_book .book_data_item {
display: inline-block;
padding-righ... | 2 | 0.04878 | 0 | 2 |
eafd303a868e485803f11d5458e2b09a57c27431 | circle.yml | circle.yml |
version: 2
jobs:
build:
working_directory: ~/Area51
docker:
- image: node:latest
steps:
- checkout
- run:
name: Install dependencies
command: |
yarn
apt-get update
apt-get install ocaml libelf-dev -y
curl https://install.meteor.co... |
version: 2
jobs:
build:
working_directory: ~/Area51
docker:
- image: node:latest
steps:
- checkout
- run:
name: Install dependencies
command: |
yarn
apt-get update
apt-get install ocaml libelf-dev -y
curl https://install.meteor.co... | Update CircleCI to fix Meteor issue. | Update CircleCI to fix Meteor issue.
| YAML | apache-2.0 | ibujs/Area51,retrixe/Area51,ibujs/Area51,retrixe/Area51 | yaml | ## Code Before:
version: 2
jobs:
build:
working_directory: ~/Area51
docker:
- image: node:latest
steps:
- checkout
- run:
name: Install dependencies
command: |
yarn
apt-get update
apt-get install ocaml libelf-dev -y
curl https://i... |
version: 2
jobs:
build:
working_directory: ~/Area51
docker:
- image: node:latest
steps:
- checkout
- run:
name: Install dependencies
command: |
yarn
apt-get update
apt-get install ocaml libelf-dev -y
... | 4 | 0.137931 | 2 | 2 |
9e7c5077b283980e2f6ffb619d5ad20a0d176089 | core/common/src/test/java/alluxio/util/IdUtilsTest.java | core/common/src/test/java/alluxio/util/IdUtilsTest.java | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the “License”). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the “License”). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | Add unit tests for IdUtils | [ALLUXIO-1776] Add unit tests for IdUtils
| Java | apache-2.0 | wwjiang007/alluxio,wwjiang007/alluxio,jsimsa/alluxio,PasaLab/tachyon,jswudi/alluxio,maboelhassan/alluxio,maobaolong/alluxio,apc999/alluxio,yuluo-ding/alluxio,Reidddddd/alluxio,wwjiang007/alluxio,wwjiang007/alluxio,ShailShah/alluxio,apc999/alluxio,calvinjia/tachyon,PasaLab/tachyon,EvilMcJerkface/alluxio,maboelhassan/all... | java | ## Code Before:
/*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the “License”). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WAR... | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the “License”). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANT... | 23 | 0.69697 | 23 | 0 |
43d3dcb49e6f15484c3e26796c938d96a343623a | source/styles/variables.scss | source/styles/variables.scss | // Override core variables or add custom values here
// Default settings available at https://www.weepower.com/style/variables
@import "wee-core/styles/variables.scss"; | // Override core variables or add custom values here
// Default settings available at https://www.weepower.com/style/variables
// $primary: red;
@import "wee-core/styles/variables.scss";
// Assign variables that need to reference default variables below
// $liMarginBottom: $blockMarginBottom; | Rework scss variable import and assignment | Rework scss variable import and assignment
| SCSS | apache-2.0 | weepower/wee,weepower/wee | scss | ## Code Before:
// Override core variables or add custom values here
// Default settings available at https://www.weepower.com/style/variables
@import "wee-core/styles/variables.scss";
## Instruction:
Rework scss variable import and assignment
## Code After:
// Override core variables or add custom values here
// Def... | // Override core variables or add custom values here
// Default settings available at https://www.weepower.com/style/variables
+ // $primary: red;
+
@import "wee-core/styles/variables.scss";
+
+ // Assign variables that need to reference default variables below
+
+ // $liMarginBottom: $blockMarginBottom; | 6 | 1.5 | 6 | 0 |
6f46ff3ed6ca69a68fd86cfdf1da1861b23f05f9 | site/content/posts/hello-world.md | site/content/posts/hello-world.md | +++
date = "2017-06-18T16:08:46-04:00"
title = "hello world"
draft = true
+++
Hope you're listening
| +++
date = "2017-06-18T16:08:46-04:00"
title = "hello world"
+++
Hope you're listening
| Make hello world post not a draft so it shows up | Make hello world post not a draft so it shows up
| Markdown | mit | ksmithbaylor/ksmithbaylor.github.com,ksmithbaylor/ksmithbaylor.github.com | markdown | ## Code Before:
+++
date = "2017-06-18T16:08:46-04:00"
title = "hello world"
draft = true
+++
Hope you're listening
## Instruction:
Make hello world post not a draft so it shows up
## Code After:
+++
date = "2017-06-18T16:08:46-04:00"
title = "hello world"
+++
Hope you're listening
| +++
date = "2017-06-18T16:08:46-04:00"
title = "hello world"
- draft = true
+++
Hope you're listening | 1 | 0.142857 | 0 | 1 |
c77302e4e14b91cc77e6b80d60c8675969707b60 | library/Denkmal/library/Denkmal/Maintenance/Cli.php | library/Denkmal/library/Denkmal/Maintenance/Cli.php | <?php
class Denkmal_Maintenance_Cli extends CM_Maintenance_Cli {
/**
* @synchronized
*/
protected function _registerCallbacks() {
parent::_registerCallbacks();
$this->_registerClockworkCallbacks(new DateInterval('PT12H'), array(
'Scraper' => function () {
... | <?php
class Denkmal_Maintenance_Cli extends CM_Maintenance_Cli {
/**
* @synchronized
*/
protected function _registerCallbacks() {
parent::_registerCallbacks();
$this->_registerClockworkCallbacks(new DateInterval('PT12H'), array(
'Scraper' => function () {
... | Set link failedCount to zero on success | Set link failedCount to zero on success
| PHP | mit | fvovan/denkmal.org,denkmal/denkmal.org,denkmal/denkmal.org,njam/denkmal.org,njam/denkmal.org,fvovan/denkmal.org,njam/denkmal.org,njam/denkmal.org,fvovan/denkmal.org,njam/denkmal.org,denkmal/denkmal.org,denkmal/denkmal.org,fvovan/denkmal.org,denkmal/denkmal.org,fvovan/denkmal.org | php | ## Code Before:
<?php
class Denkmal_Maintenance_Cli extends CM_Maintenance_Cli {
/**
* @synchronized
*/
protected function _registerCallbacks() {
parent::_registerCallbacks();
$this->_registerClockworkCallbacks(new DateInterval('PT12H'), array(
'Scraper' => function (... | <?php
class Denkmal_Maintenance_Cli extends CM_Maintenance_Cli {
/**
* @synchronized
*/
protected function _registerCallbacks() {
parent::_registerCallbacks();
$this->_registerClockworkCallbacks(new DateInterval('PT12H'), array(
'Scraper' => func... | 1 | 0.030303 | 1 | 0 |
9cda2d34bf812ecdfcd46e8983f47bbd937884dc | src/profiler/tracing/no_trace.c | src/profiler/tracing/no_trace.c | /**
* @file
* @brief
*
* @author Anton Kozlov
* @date 29.04.2013
*/
#include <stddef.h>
#include <profiler/tracing/trace.h>
time64_t trace_block_diff(struct __trace_block *tb) {
return -1;
}
time64_t trace_block_get_time(struct __trace_block *tb) {
return -1;
}
int trace_point_get_value(struct __trace_... | /**
* @file
* @brief
*
* @author Anton Kozlov
* @date 29.04.2013
*/
#include <stddef.h>
#include <profiler/tracing/trace.h>
time64_t trace_block_diff(struct __trace_block *tb) {
return -1;
}
time64_t trace_block_get_time(struct __trace_block *tb) {
return -1;
}
int trace_point_get_value(struct __trace_... | Fix build after merge with embox-profiler | Fix build after merge with embox-profiler | C | bsd-2-clause | gzoom13/embox,vrxfile/embox-trik,gzoom13/embox,Kefir0192/embox,abusalimov/embox,Kakadu/embox,mike2390/embox,Kakadu/embox,Kefir0192/embox,Kefir0192/embox,Kefir0192/embox,Kefir0192/embox,vrxfile/embox-trik,gzoom13/embox,gzoom13/embox,embox/embox,gzoom13/embox,vrxfile/embox-trik,mike2390/embox,vrxfile/embox-trik,embox/emb... | c | ## Code Before:
/**
* @file
* @brief
*
* @author Anton Kozlov
* @date 29.04.2013
*/
#include <stddef.h>
#include <profiler/tracing/trace.h>
time64_t trace_block_diff(struct __trace_block *tb) {
return -1;
}
time64_t trace_block_get_time(struct __trace_block *tb) {
return -1;
}
int trace_point_get_value... | /**
* @file
* @brief
*
* @author Anton Kozlov
* @date 29.04.2013
*/
#include <stddef.h>
#include <profiler/tracing/trace.h>
time64_t trace_block_diff(struct __trace_block *tb) {
return -1;
}
time64_t trace_block_get_time(struct __trace_block *tb) {
return -1;
}
... | 5 | 0.172414 | 5 | 0 |
086d19ef6c30d6bbd43e03d6d802e89b000cb66e | keymaps/find-and-replace.cson | keymaps/find-and-replace.cson | 'body':
'meta-F': 'project-find:show'
'meta-f': 'find-and-replace:show'
'.editor':
'alt-meta-f': 'find-and-replace:show-replace'
'meta-g': 'find-and-replace:find-next'
'meta-G': 'find-and-replace:find-previous'
'meta-e': 'find-and-replace:use-selection-as-find-pattern'
'.find-and-replace':
'meta-enter... | 'body':
'meta-F': 'project-find:show'
'meta-f': 'find-and-replace:show'
'alt-meta-f': 'find-and-replace:show-replace'
'.editor':
'meta-g': 'find-and-replace:find-next'
'meta-G': 'find-and-replace:find-previous'
'meta-e': 'find-and-replace:use-selection-as-find-pattern'
'.find-and-replace':
'meta-enter'... | Make replace keymap work in all contexts | Make replace keymap work in all contexts
| CoffeeScript | mit | harai/find-and-replace,atom/find-and-replace,bmperrea/find-and-replace,trevdor/find-and-replace | coffeescript | ## Code Before:
'body':
'meta-F': 'project-find:show'
'meta-f': 'find-and-replace:show'
'.editor':
'alt-meta-f': 'find-and-replace:show-replace'
'meta-g': 'find-and-replace:find-next'
'meta-G': 'find-and-replace:find-previous'
'meta-e': 'find-and-replace:use-selection-as-find-pattern'
'.find-and-replace... | 'body':
'meta-F': 'project-find:show'
'meta-f': 'find-and-replace:show'
+ 'alt-meta-f': 'find-and-replace:show-replace'
'.editor':
- 'alt-meta-f': 'find-and-replace:show-replace'
-
'meta-g': 'find-and-replace:find-next'
'meta-G': 'find-and-replace:find-previous'
'meta-e': 'find-and-re... | 3 | 0.12 | 1 | 2 |
a1a6242eb0e4bcb0ae783a572b4406567a91e21b | src/components/HitTable/HitItem.tsx | src/components/HitTable/HitItem.tsx | import * as React from 'react';
import { Hit, Requester } from '../../types';
import { ResourceList } from '@shopify/polaris';
import UnqualifiedCard from './UnqualifiedCard';
import { calculateAllBadges } from '../../utils/badges';
export interface Props {
readonly hit: Hit;
readonly requester?: Requester... | import * as React from 'react';
import { Hit, Requester } from '../../types';
import { ResourceList } from '@shopify/polaris';
import { calculateAllBadges } from '../../utils/badges';
export interface Props {
readonly hit: Hit;
readonly requester?: Requester;
}
const HitCard = ({ hit, requester }: Props... | Remove UnqualifiedCard as a conditional render when groupId is invalid | Remove UnqualifiedCard as a conditional render when groupId is invalid
| TypeScript | mit | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | typescript | ## Code Before:
import * as React from 'react';
import { Hit, Requester } from '../../types';
import { ResourceList } from '@shopify/polaris';
import UnqualifiedCard from './UnqualifiedCard';
import { calculateAllBadges } from '../../utils/badges';
export interface Props {
readonly hit: Hit;
readonly requester?: R... | import * as React from 'react';
import { Hit, Requester } from '../../types';
import { ResourceList } from '@shopify/polaris';
- import UnqualifiedCard from './UnqualifiedCard';
import { calculateAllBadges } from '../../utils/badges';
export interface Props {
readonly hit: Hit;
readonly requester?:... | 8 | 0.25 | 4 | 4 |
93c28f7988cb478ca951c470e8c599fb8c73ffcc | unit_tests/CMakeLists.txt | unit_tests/CMakeLists.txt | set (CMAKE_CXX_EXTENSIONS OFF)
# add warnings
if (MSVC)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4 /WX /utf-8")
else ()
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -Wextra -Wshadow -Werror")
endif ()
# add tests
file (GLOB testsources *.cc)
foreach (testsourcefile ${testsources})
get_filename_com... | set (CMAKE_CXX_EXTENSIONS OFF)
# add warnings
if (MSVC)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4 /WX /utf-8")
else ()
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -Wextra -Wshadow -Werror")
endif ()
# add tests
file (GLOB testsources *.cc)
foreach (testsourcefile ${testsources})
get_filename_com... | Fix paths for Android tests | Fix paths for Android tests
| Text | mit | ColinH/PEGTL,ColinH/PEGTL | text | ## Code Before:
set (CMAKE_CXX_EXTENSIONS OFF)
# add warnings
if (MSVC)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4 /WX /utf-8")
else ()
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -Wextra -Wshadow -Werror")
endif ()
# add tests
file (GLOB testsources *.cc)
foreach (testsourcefile ${testsources})
... | set (CMAKE_CXX_EXTENSIONS OFF)
# add warnings
if (MSVC)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4 /WX /utf-8")
else ()
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -Wextra -Wshadow -Werror")
endif ()
# add tests
file (GLOB testsources *.cc)
foreach (testsourcefile ${testsour... | 2 | 0.095238 | 1 | 1 |
5f3c945c56c382ee987098c9036e65ca4718d397 | src/condor_tests/job_dagman_rm-wait.pl | src/condor_tests/job_dagman_rm-wait.pl |
use lib '.';
use CondorTest;
use CondorUtils;
print "$ARGV[0] started\n";
runcmd("touch $ARGV[0].started");
print "$ARGV[0] waiting for DAGMan to exit\n";
$lockfile = "job_dagman_rm.dag.lock";
while (-e $lockfile) {
sleep(1);
}
# Um, actually...
# Dagman doesn't remove us, a previous job in this DAG
# has removed ... |
print "$ARGV[0] started\n";
# Touch file, portably, without external command
open(F, ">>$ARGV[0].started");
close(F);
print ">>$ARGV[0].started\n";
print "$ARGV[0] waiting for DAGMan to exit\n";
$lockfile = "job_dagman_rm.dag.lock";
while (-e $lockfile) {
sleep(1);
}
# Um, actually...
# Dagman doesn't remove us, ... | Fix job_dagman_rm test by changing job exe to not depend on CondorTest.pm, as it installs signal handlers HTCONDOR-536 | Fix job_dagman_rm test by changing job exe to not depend
on CondorTest.pm, as it installs signal handlers HTCONDOR-536
| Perl | apache-2.0 | htcondor/htcondor,htcondor/htcondor,htcondor/htcondor,htcondor/htcondor,htcondor/htcondor,htcondor/htcondor,htcondor/htcondor,htcondor/htcondor | perl | ## Code Before:
use lib '.';
use CondorTest;
use CondorUtils;
print "$ARGV[0] started\n";
runcmd("touch $ARGV[0].started");
print "$ARGV[0] waiting for DAGMan to exit\n";
$lockfile = "job_dagman_rm.dag.lock";
while (-e $lockfile) {
sleep(1);
}
# Um, actually...
# Dagman doesn't remove us, a previous job in this DA... | -
- use lib '.';
- use CondorTest;
- use CondorUtils;
print "$ARGV[0] started\n";
- runcmd("touch $ARGV[0].started");
+
+ # Touch file, portably, without external command
+ open(F, ">>$ARGV[0].started");
+ close(F);
+
+ print ">>$ARGV[0].started\n";
print "$ARGV[0] waiting for DAGMan to exit\n";
$lockfil... | 14 | 0.466667 | 8 | 6 |
22f6567fbe5b8dbf12b309886f8824b06f373920 | app/models/extsubmission.js | app/models/extsubmission.js | import Ember from 'ember';
import DS from 'ember-data';
import Score from 'code-test-bot-app/models/score';
import Submission from 'code-test-bot-app/models/submission';
export default Submission.extend({
});
| import Submission from 'code-test-bot-app/models/submission';
export default Submission.extend({
});
| Remove unused references from external submission model | Remove unused references from external submission model
| JavaScript | mit | cyrusinnovation/CodeTestBotApp,cyrusinnovation/CodeTestBotApp,cyrusinnovation/CodeTestBotApp | javascript | ## Code Before:
import Ember from 'ember';
import DS from 'ember-data';
import Score from 'code-test-bot-app/models/score';
import Submission from 'code-test-bot-app/models/submission';
export default Submission.extend({
});
## Instruction:
Remove unused references from external submission model
## Code After:
impo... | - import Ember from 'ember';
- import DS from 'ember-data';
- import Score from 'code-test-bot-app/models/score';
import Submission from 'code-test-bot-app/models/submission';
export default Submission.extend({
}); | 3 | 0.375 | 0 | 3 |
9a9a2b032f5f0180d3a2c229a7d0b632479b1838 | Casks/tg-pro.rb | Casks/tg-pro.rb | cask :v1 => 'tg-pro' do
version '2.8.7'
sha256 '32b622cec40f4cfe0cd5455dd110696b8284524aadd92c552a769c130bbc88e7'
url "http://www.tunabellysoftware.com/resources/TGPro_#{version.gsub('.','_')}.zip"
name 'TG Pro'
appcast 'http://tunabellysoftware.com/resources/sparkle/tgpro/profileInfo.php',
:sha256... | cask :v1 => 'tg-pro' do
version '2.8.8'
sha256 'dcb4221d4b72960c306e248a0be947107ab3622b0c38570684b2f12c8ef87a44'
url "http://www.tunabellysoftware.com/resources/TGPro_#{version.gsub('.','_')}.zip"
name 'TG Pro'
appcast 'http://tunabellysoftware.com/resources/sparkle/tgpro/profileInfo.php',
:sha256... | Update TG Pro to 2.8.8 | Update TG Pro to 2.8.8
| Ruby | bsd-2-clause | gilesdring/homebrew-cask,mrmachine/homebrew-cask,lukasbestle/homebrew-cask,sanchezm/homebrew-cask,gurghet/homebrew-cask,morganestes/homebrew-cask,toonetown/homebrew-cask,skatsuta/homebrew-cask,sjackman/homebrew-cask,cobyism/homebrew-cask,AnastasiaSulyagina/homebrew-cask,n8henrie/homebrew-cask,winkelsdorf/homebrew-cask,... | ruby | ## Code Before:
cask :v1 => 'tg-pro' do
version '2.8.7'
sha256 '32b622cec40f4cfe0cd5455dd110696b8284524aadd92c552a769c130bbc88e7'
url "http://www.tunabellysoftware.com/resources/TGPro_#{version.gsub('.','_')}.zip"
name 'TG Pro'
appcast 'http://tunabellysoftware.com/resources/sparkle/tgpro/profileInfo.php',
... | cask :v1 => 'tg-pro' do
- version '2.8.7'
? ^
+ version '2.8.8'
? ^
- sha256 '32b622cec40f4cfe0cd5455dd110696b8284524aadd92c552a769c130bbc88e7'
+ sha256 'dcb4221d4b72960c306e248a0be947107ab3622b0c38570684b2f12c8ef87a44'
url "http://www.tunabellysoftware.com/resources/TGP... | 6 | 0.461538 | 3 | 3 |
dbf16a081b13bb7056f9beb26541e6ab772a2beb | src/main/java/org/cafebabepy/runtime/module/builtins/PyObjectType.java | src/main/java/org/cafebabepy/runtime/module/builtins/PyObjectType.java | package org.cafebabepy.runtime.module.builtins;
import org.cafebabepy.annotation.DefineCafeBabePyType;
import org.cafebabepy.runtime.Python;
import org.cafebabepy.runtime.module.AbstractCafeBabePyType;
/**
* Created by yotchang4s on 2017/05/13.
*/
@DefineCafeBabePyType(name = "builtins.object", parent = {})
public ... | package org.cafebabepy.runtime.module.builtins;
import org.cafebabepy.annotation.DefineCafeBabePyType;
import org.cafebabepy.runtime.Python;
import org.cafebabepy.runtime.module.AbstractCafeBabePyType;
/**
* Created by yotchang4s on 2017/05/13.
*/
@DefineCafeBabePyType(name = "builtins.object")
public class PyObjec... | Fix object parent is object | Fix object parent is object
| Java | bsd-3-clause | yotchang4s/cafebabepy | java | ## Code Before:
package org.cafebabepy.runtime.module.builtins;
import org.cafebabepy.annotation.DefineCafeBabePyType;
import org.cafebabepy.runtime.Python;
import org.cafebabepy.runtime.module.AbstractCafeBabePyType;
/**
* Created by yotchang4s on 2017/05/13.
*/
@DefineCafeBabePyType(name = "builtins.object", pare... | package org.cafebabepy.runtime.module.builtins;
import org.cafebabepy.annotation.DefineCafeBabePyType;
import org.cafebabepy.runtime.Python;
import org.cafebabepy.runtime.module.AbstractCafeBabePyType;
/**
* Created by yotchang4s on 2017/05/13.
*/
- @DefineCafeBabePyType(name = "builtins.object", ... | 2 | 0.125 | 1 | 1 |
f7c3a4b9a740863bc4837584e15e77f85bee9fe9 | metadata/com.alexkang.loopboard.txt | metadata/com.alexkang.loopboard.txt | Categories:Multimedia
License:Apache2
Web Site:
Source Code:https://github.com/AlexKang/loopboard
Issue Tracker:https://github.com/AlexKang/loopboard/issues
Auto Name:LoopBoard
Summary:Record, play and loop sounds
Description:
Dynamic sound board. Record sound clips and play them back or loop them.
Currently, the app... | Categories:Multimedia
License:Apache2
Web Site:
Source Code:https://github.com/AlexKang/loopboard
Issue Tracker:https://github.com/AlexKang/loopboard/issues
Auto Name:LoopBoard
Summary:Record, play and loop sounds
Description:
Dynamic sound board. Record sound clips and play them back or loop them.
Currently, the app... | Update LoopBoard to 1.8 (13) | Update LoopBoard to 1.8 (13)
| Text | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroid-data,f-droid/fdroiddata | text | ## Code Before:
Categories:Multimedia
License:Apache2
Web Site:
Source Code:https://github.com/AlexKang/loopboard
Issue Tracker:https://github.com/AlexKang/loopboard/issues
Auto Name:LoopBoard
Summary:Record, play and loop sounds
Description:
Dynamic sound board. Record sound clips and play them back or loop them.
Cu... | Categories:Multimedia
License:Apache2
Web Site:
Source Code:https://github.com/AlexKang/loopboard
Issue Tracker:https://github.com/AlexKang/loopboard/issues
Auto Name:LoopBoard
Summary:Record, play and loop sounds
Description:
Dynamic sound board. Record sound clips and play them back or loop them.... | 8 | 0.275862 | 8 | 0 |
abeef5f477c969dce669a6da847c02b8b147c918 | common/richtext.sh | common/richtext.sh |
normal=$(tput sgr0)
bold=$(tput bold)
underline=$(tput smul)
#Colors
fg_black=$(tput setaf 0)
fg_red=$(tput setaf 1)
fg_green=$(tput setaf 2)
fg_yellow=$(tput setaf 3)
fg_blue=$(tput setaf 4)
fg_magenta=$(tput setaf 5)
fg_cyan=$(tput setaf 6)
fg_white=$(tput setaf 7)
|
normal=$(tput sgr0)
dim=$(tput dim)
bold=$(tput bold)
underline=$(tput smul)
blink=$(tput blink)
#Colors
fg_black=$(tput setaf 0)
fg_red=$(tput setaf 1)
fg_green=$(tput setaf 2)
fg_yellow=$(tput setaf 3)
fg_blue=$(tput setaf 4)
fg_magenta=$(tput setaf 5)
fg_cyan=$(tput setaf 6)
fg_white=$(tput setaf 7)
| Add dim and blink modes :flashlight: | Add dim and blink modes :flashlight:
| Shell | mit | elamperti/dotfiles,elamperti/dotfiles | shell | ## Code Before:
normal=$(tput sgr0)
bold=$(tput bold)
underline=$(tput smul)
#Colors
fg_black=$(tput setaf 0)
fg_red=$(tput setaf 1)
fg_green=$(tput setaf 2)
fg_yellow=$(tput setaf 3)
fg_blue=$(tput setaf 4)
fg_magenta=$(tput setaf 5)
fg_cyan=$(tput setaf 6)
fg_white=$(tput setaf 7)
## Instruction:
Add dim and blink... |
normal=$(tput sgr0)
+ dim=$(tput dim)
bold=$(tput bold)
underline=$(tput smul)
+ blink=$(tput blink)
#Colors
fg_black=$(tput setaf 0)
fg_red=$(tput setaf 1)
fg_green=$(tput setaf 2)
fg_yellow=$(tput setaf 3)
fg_blue=$(tput setaf 4)
fg_magenta=$(tput setaf 5)
fg_cyan=$(tput setaf 6)
fg_whit... | 2 | 0.142857 | 2 | 0 |
c8fd4dc57d922e9b4ed70373035c2d5020a9a482 | README.md | README.md |
JSON API for tracking commute times.
## Setup
* Ruby 2.2.0
* Bundler
* Postgres
## Local Testing
```
% curl -H "Authorization: Token commuter-token" http://localhost:3000/hello
{"message":"Hello, World!"}
```
|
[](https://travis-ci.org/thorncp/commute-tracker)
JSON API for tracking commute times.
## Setup
* Ruby 2.2.0
* Bundler
* Postgres
## Local Testing
```
% curl -H "Authorization: Token commuter-token" http://localhost:3000/hello
{"messa... | Add Travis badge to readme | Add Travis badge to readme
| Markdown | mit | thorncp/commute-tracker,thorncp/commute-tracker,thorncp/commute-tracker | markdown | ## Code Before:
JSON API for tracking commute times.
## Setup
* Ruby 2.2.0
* Bundler
* Postgres
## Local Testing
```
% curl -H "Authorization: Token commuter-token" http://localhost:3000/hello
{"message":"Hello, World!"}
```
## Instruction:
Add Travis badge to readme
## Code After:
[](https://travis-ci.org/thorncp/commute-tracker)
JSON API for tracking commute times.
## Setup
* Ruby 2.2.0
* Bundler
* Postgres
## Local Testing
```
% curl -H "Authorization: Token commuter-token" http:... | 2 | 0.133333 | 2 | 0 |
35d3ca3d1eab34d89350bd20545281df84a62007 | src/index.php | src/index.php | <?php
require 'classes/Tmdb/Tmdb.php';
require 'classes/Tmdb/Movie.php';
require 'classes/Tmdb/TVShow.php';
$api_key = '62dfe9839b8937e595e325a4144702ad';
$VfacTmdb = new Vfac\Tmdb\Tmdb($api_key);
$VfacTmdb->setLanguage('fr-FR');
$results = [];
//$results = $VfacTmdb->searchMovie('star wars');
$results[] = $VfacTmd... | <?php
require 'classes/Tmdb/Tmdb.php';
require 'classes/Tmdb/Movie.php';
require 'classes/Tmdb/TVShow.php';
$api_key = '62dfe9839b8937e595e325a4144702ad';
$VfacTmdb = new Vfac\Tmdb\Tmdb($api_key);
$results = [];
//$results = $VfacTmdb->searchMovie('star wars', array('language' => 'fr-FR'));
$results[] = $VfacTmdb->... | Add option inn page test | Add option inn page test
| PHP | mit | vfalies/tmdb,vfalies/tmdb | php | ## Code Before:
<?php
require 'classes/Tmdb/Tmdb.php';
require 'classes/Tmdb/Movie.php';
require 'classes/Tmdb/TVShow.php';
$api_key = '62dfe9839b8937e595e325a4144702ad';
$VfacTmdb = new Vfac\Tmdb\Tmdb($api_key);
$VfacTmdb->setLanguage('fr-FR');
$results = [];
//$results = $VfacTmdb->searchMovie('star wars');
$resu... | <?php
require 'classes/Tmdb/Tmdb.php';
require 'classes/Tmdb/Movie.php';
require 'classes/Tmdb/TVShow.php';
$api_key = '62dfe9839b8937e595e325a4144702ad';
$VfacTmdb = new Vfac\Tmdb\Tmdb($api_key);
- $VfacTmdb->setLanguage('fr-FR');
$results = [];
- //$results = $VfacTmdb->searchMovie('star war... | 5 | 0.15625 | 2 | 3 |
fd15f37b37f4c371ce8723129db3d5fbe11454a7 | nixos/modules/system/boot/loader/generic-extlinux-compatible/extlinux-conf-builder.nix | nixos/modules/system/boot/loader/generic-extlinux-compatible/extlinux-conf-builder.nix | { pkgs }:
pkgs.substituteAll {
src = ./extlinux-conf-builder.sh;
isExecutable = true;
path = [pkgs.buildPackages.coreutils pkgs.buildPackages.gnused pkgs.buildPackages.gnugrep];
inherit (pkgs.buildPackages) bash;
}
| { pkgs }:
pkgs.substituteAll {
src = ./extlinux-conf-builder.sh;
isExecutable = true;
path = [pkgs.coreutils pkgs.gnused pkgs.gnugrep];
inherit (pkgs) bash;
}
| Revert "extlinux-conf: fix cross compilation" | Revert "extlinux-conf: fix cross compilation"
This reverts commit f17dd04f12a6eccdf613968efca38cfd0edfd2c0.
| Nix | mit | NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs | nix | ## Code Before:
{ pkgs }:
pkgs.substituteAll {
src = ./extlinux-conf-builder.sh;
isExecutable = true;
path = [pkgs.buildPackages.coreutils pkgs.buildPackages.gnused pkgs.buildPackages.gnugrep];
inherit (pkgs.buildPackages) bash;
}
## Instruction:
Revert "extlinux-conf: fix cross compilation"
This reverts com... | { pkgs }:
pkgs.substituteAll {
src = ./extlinux-conf-builder.sh;
isExecutable = true;
- path = [pkgs.buildPackages.coreutils pkgs.buildPackages.gnused pkgs.buildPackages.gnugrep];
+ path = [pkgs.coreutils pkgs.gnused pkgs.gnugrep];
- inherit (pkgs.buildPackages) bash;
? -------------... | 4 | 0.5 | 2 | 2 |
01c7cb0dd7a93a77e06ef1565cf43f05578a4a1c | .travis.yml | .travis.yml | language: ruby
cache: bundler
rvm:
- 1.9.3
- 2.0.0
- 2.1.0
- 2.2.0
- 2.2.2
git:
depth: 1
before_install: gem install bundler -v 1.10.6
script:
- bundle exec yard
- bundle exec rubocop
- bundle exec rspec
deploy:
provider: rubygems
api_key: 4672b2d03693ff646f79dfb823e02a60
| language: ruby
cache: bundler
rvm:
- 1.9.3
- 2.0.0
- 2.1.0
- 2.2.0
- 2.2.2
git:
depth: 1
before_install: gem install bundler -v 1.10.6
script:
- bundle exec yard
- bundle exec rubocop
- bundle exec rspec
deploy:
provider: rubygems
api_key: 4672b2d03693ff646f79dfb823e02a60
on:
tags: true
| Configure ruby gems for just deploy when new tag | Configure ruby gems for just deploy when new tag | YAML | mit | vnegrisolo/cch,vnegrisolo/cch | yaml | ## Code Before:
language: ruby
cache: bundler
rvm:
- 1.9.3
- 2.0.0
- 2.1.0
- 2.2.0
- 2.2.2
git:
depth: 1
before_install: gem install bundler -v 1.10.6
script:
- bundle exec yard
- bundle exec rubocop
- bundle exec rspec
deploy:
provider: rubygems
api_key: 4672b2d03693ff646f79dfb823e02a60
## Instr... | language: ruby
cache: bundler
rvm:
- 1.9.3
- 2.0.0
- 2.1.0
- 2.2.0
- 2.2.2
git:
depth: 1
before_install: gem install bundler -v 1.10.6
script:
- bundle exec yard
- bundle exec rubocop
- bundle exec rspec
deploy:
provider: rubygems
api_key: 4672b2d03693ff646f79df... | 2 | 0.111111 | 2 | 0 |
c5807dfc09f30137f6d3080972aed9dba022111c | spec/spec_helper.rb | spec/spec_helper.rb | require "simplecov"
require 'coveralls'
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
SimpleCov.start
require File.expand_path("../lib/eventify", __dir__)
require "tempfile"
require "webmock/rspec"
WebMock.disable_net_connect!(allow_localhost: true)
RSpec.configure do |config|
config.color = true
confi... | require "simplecov"
require 'coveralls'
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
SimpleCov.start
require File.expand_path("../lib/eventify", __dir__)
require "tempfile"
require "webmock/rspec"
WebMock.disable_net_connect!(allow_localhost: true)
RSpec.configure do |config|
config.color = true
confi... | Add monkey-patch for StubSocket so that specs would pass | Add monkey-patch for StubSocket so that specs would pass
| Ruby | mit | jarmo/eventify,jarmo/eventify | ruby | ## Code Before:
require "simplecov"
require 'coveralls'
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
SimpleCov.start
require File.expand_path("../lib/eventify", __dir__)
require "tempfile"
require "webmock/rspec"
WebMock.disable_net_connect!(allow_localhost: true)
RSpec.configure do |config|
config.color... | require "simplecov"
require 'coveralls'
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
SimpleCov.start
require File.expand_path("../lib/eventify", __dir__)
require "tempfile"
require "webmock/rspec"
WebMock.disable_net_connect!(allow_localhost: true)
RSpec.configure do |config|
... | 7 | 0.28 | 7 | 0 |
e349fccb4388777da7b8cb759b35771d21af5bab | library/Denkmal/layout/default/Component/EventList/default.less | library/Denkmal/layout/default/Component/EventList/default.less | & {
padding-top: 10px;
}
.eventListMeta {
color: @colorFgSubtle;
display: block;
font-size: .8rem;
margin-bottom: 10px;
padding: 1px 5px;
}
.weekday {
margin-right: 5px;
}
.eventList {
> li {
> a {
color: inherit;
display: block;
}
@media (min-width: @breakpointMedium) {
... | & {
padding-top: 10px;
}
.eventListMeta {
color: @colorFgSubtle;
display: block;
font-size: @fontSizeTiny;
margin-bottom: 10px;
padding: 0 10px;
}
.weekday {
margin-right: 5px;
}
.eventList {
> li {
> a {
color: inherit;
display: block;
}
@media (min-width: @breakpointMedium)... | Adjust event list date spacing | Adjust event list date spacing
| Less | mit | denkmal/denkmal.org,njam/denkmal.org,njam/denkmal.org,denkmal/denkmal.org,denkmal/denkmal.org,njam/denkmal.org,njam/denkmal.org,denkmal/denkmal.org,denkmal/denkmal.org,njam/denkmal.org | less | ## Code Before:
& {
padding-top: 10px;
}
.eventListMeta {
color: @colorFgSubtle;
display: block;
font-size: .8rem;
margin-bottom: 10px;
padding: 1px 5px;
}
.weekday {
margin-right: 5px;
}
.eventList {
> li {
> a {
color: inherit;
display: block;
}
@media (min-width: @breakpoi... | & {
padding-top: 10px;
}
.eventListMeta {
color: @colorFgSubtle;
display: block;
- font-size: .8rem;
+ font-size: @fontSizeTiny;
margin-bottom: 10px;
- padding: 1px 5px;
? ^^^^
+ padding: 0 10px;
? ++ ^
}
.weekday {
margin-right: 5px;
}
.eventL... | 6 | 0.12 | 3 | 3 |
ff48e2e7bed5b17208e61a6d34555f4eebe5cf7f | src/random.js | src/random.js | var uuid4 = require('uuid/v4')
/**
* Generates RFC4122 version 4 guid ()
*/
export default function random() {
return uuid4().replace(/-/g, '');
}
| import uuid4 from 'uuid/v4';
/**
* Generates RFC4122 version 4 guid ()
*/
export default function random() {
return uuid4().replace(/-/g, '');
}
| Use ES6 import for uuid/v4 rather than require | Use ES6 import for uuid/v4 rather than require
| JavaScript | apache-2.0 | IdentityModel/oidc-client-js,IdentityModel/oidc-client,IdentityModel/oidc-client,IdentityModel/oidc-client-js,IdentityModel/oidc-client-js,IdentityModel/oidc-client | javascript | ## Code Before:
var uuid4 = require('uuid/v4')
/**
* Generates RFC4122 version 4 guid ()
*/
export default function random() {
return uuid4().replace(/-/g, '');
}
## Instruction:
Use ES6 import for uuid/v4 rather than require
## Code After:
import uuid4 from 'uuid/v4';
/**
* Generates RFC4122 version 4 guid (... | - var uuid4 = require('uuid/v4')
+ import uuid4 from 'uuid/v4';
/**
* Generates RFC4122 version 4 guid ()
*/
export default function random() {
return uuid4().replace(/-/g, '');
} | 2 | 0.222222 | 1 | 1 |
26b3a8b2e635d56a16b8ed745cba49ff213870bf | src/scripts/utils/fetch.js | src/scripts/utils/fetch.js | var Promise = require('es6-promise').Promise;
function fetch(options) {
return new Promise(function(resolve, reject) {
var xhr = new XMLHttpRequest();
xhr.onload = function() {
if(xhr.getResponseHeader('content-type').search('application/json') >= 0) {
try {
var response = JSON.par... | var Promise = require('es6-promise').Promise;
function fetch(options) {
return new Promise(function(resolve, reject) {
var xhr = new XMLHttpRequest();
xhr.onload = function() {
if(xhr.getResponseHeader('content-type').search('application/json') >= 0) {
try {
var response = JSON.par... | Fix Fetch util reject case | Fix Fetch util reject case
| JavaScript | apache-2.0 | yrezgui/dokomygp | javascript | ## Code Before:
var Promise = require('es6-promise').Promise;
function fetch(options) {
return new Promise(function(resolve, reject) {
var xhr = new XMLHttpRequest();
xhr.onload = function() {
if(xhr.getResponseHeader('content-type').search('application/json') >= 0) {
try {
var res... | var Promise = require('es6-promise').Promise;
function fetch(options) {
return new Promise(function(resolve, reject) {
var xhr = new XMLHttpRequest();
xhr.onload = function() {
if(xhr.getResponseHeader('content-type').search('application/json') >= 0) {
try {
... | 10 | 0.322581 | 7 | 3 |
6f745ae05a22031a36cb5cedc6b627cbf7ba6512 | import_goodline_iptv.py | import_goodline_iptv.py |
import configargparse
from goodline_iptv.importer import do_import
if __name__ == '__main__':
parser = configargparse.ArgParser()
parser.add_argument('-o', '--out-dir', required=True, help='Output directory')
parser.add_argument('-e', '--encoding',
default='cp1251',
... |
import configargparse
from goodline_iptv.importer import do_import
if __name__ == '__main__':
parser = configargparse.ArgParser()
parser.add_argument('-o', '--out-dir',
required=True,
env_var='OUTDIR',
help='Output directory')
pars... | Add environment variable for ability to set the output directory | Add environment variable for ability to set the output directory
| Python | mit | nsadovskiy/goodline_tv | python | ## Code Before:
import configargparse
from goodline_iptv.importer import do_import
if __name__ == '__main__':
parser = configargparse.ArgParser()
parser.add_argument('-o', '--out-dir', required=True, help='Output directory')
parser.add_argument('-e', '--encoding',
default='cp125... |
import configargparse
from goodline_iptv.importer import do_import
if __name__ == '__main__':
parser = configargparse.ArgParser()
- parser.add_argument('-o', '--out-dir', required=True, help='Output directory')
+ parser.add_argument('-o', '--out-dir',
+ required=T... | 5 | 0.151515 | 4 | 1 |
69d8ef8c1eba424568158611d45f02bc316c737b | setup.py | setup.py |
try:
from setuptools import setup
kw = {'entry_points':
"""[console_scripts]\nglue = glue:main\n""",
'zip_safe': False}
except ImportError:
from distutils.core import setup
kw = {'scripts': ['glue.py']}
setup(
name='Glue',
version='0.1',
url='http://glue.github.com/',
... |
try:
from setuptools import setup
kw = {'entry_points':
"""[console_scripts]\nglue = glue:main\n""",
'zip_safe': False}
except ImportError:
from distutils.core import setup
kw = {'scripts': ['glue.py']}
setup(
name='glue',
version='0.1.1',
url='https://github.com/jorgeb... | Change the project name to glue, add the new public download_url | Change the project name to glue, add the new public download_url
| Python | bsd-3-clause | WillsB3/glue,zhiqinyigu/glue,jorgebastida/glue,dext0r/glue,beni55/glue,jorgebastida/glue,zhiqinyigu/glue,dext0r/glue,WillsB3/glue,beni55/glue | python | ## Code Before:
try:
from setuptools import setup
kw = {'entry_points':
"""[console_scripts]\nglue = glue:main\n""",
'zip_safe': False}
except ImportError:
from distutils.core import setup
kw = {'scripts': ['glue.py']}
setup(
name='Glue',
version='0.1',
url='http://glue... |
try:
from setuptools import setup
kw = {'entry_points':
"""[console_scripts]\nglue = glue:main\n""",
'zip_safe': False}
except ImportError:
from distutils.core import setup
kw = {'scripts': ['glue.py']}
setup(
- name='Glue',
? ^
+ name='glue... | 7 | 0.189189 | 4 | 3 |
16bc6761b74ed33dec78a2e9f97deb3b858192ac | package.json | package.json | {
"name": "trinity-cli",
"version": "0.0.1",
"description": "",
"main": "trinity.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git@github.com-satoshinaire:Satoshinaire/trinity-cli.git"
},
"author": "Satoshinaire",
"licen... | {
"name": "trinity-cli",
"version": "0.0.1",
"description": "",
"main": "trinity.js",
"bin": {
"trinity": "trinity.js"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git@github.com-satoshinaire:Satoshinaire/trinity-cli.gi... | Add bin entry for global cli install | Add bin entry for global cli install
| JSON | mit | Satoshinaire/trinity-cli | json | ## Code Before:
{
"name": "trinity-cli",
"version": "0.0.1",
"description": "",
"main": "trinity.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git@github.com-satoshinaire:Satoshinaire/trinity-cli.git"
},
"author": "Satoshi... | {
"name": "trinity-cli",
"version": "0.0.1",
"description": "",
"main": "trinity.js",
+ "bin": {
+ "trinity": "trinity.js"
+ },
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git@github.com-satoshinaire... | 3 | 0.136364 | 3 | 0 |
12afe43b0f2599b0c79fab8bb0af454ccf16e57f | gittip/orm/__init__.py | gittip/orm/__init__.py | from __future__ import unicode_literals
import os
from sqlalchemy import create_engine, MetaData
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker, scoped_session
class SQLAlchemy(object):
def __init__(self):
self.session = self.create_session()
@property... | from __future__ import unicode_literals
import os
import pdb
from sqlalchemy import create_engine, MetaData
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker, scoped_session
class Model(object):
def __repr__(self):
cols = self.__mapper__.c.keys()
class... | Remove the convenience functions, reorganize around the SQLAlchemy class | Remove the convenience functions, reorganize around the SQLAlchemy class
| Python | cc0-1.0 | bountysource/www.gittip.com,eXcomm/gratipay.com,bountysource/www.gittip.com,studio666/gratipay.com,mccolgst/www.gittip.com,MikeFair/www.gittip.com,bountysource/www.gittip.com,gratipay/gratipay.com,studio666/gratipay.com,studio666/gratipay.com,gratipay/gratipay.com,MikeFair/www.gittip.com,mccolgst/www.gittip.com,mccolgs... | python | ## Code Before:
from __future__ import unicode_literals
import os
from sqlalchemy import create_engine, MetaData
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker, scoped_session
class SQLAlchemy(object):
def __init__(self):
self.session = self.create_session(... | from __future__ import unicode_literals
import os
+ import pdb
from sqlalchemy import create_engine, MetaData
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker, scoped_session
-
- class SQLAlchemy(object):
- def __init__(self):
- self.session = sel... | 47 | 0.810345 | 19 | 28 |
4d44198b325e60e903a3e7727ff36c04987ec95a | Http/class.WebErrorHandler.php | Http/class.WebErrorHandler.php | <?php
namespace Http;
class WebErrorHandler
{
public function __invoke($request, $response, $exception)
{
if($exception->getCode() === \Http\Rest\ACCESS_DENIED)
{
return $response->withStatus(401);
}
return $response
->withStatus(500)
->withHe... | <?php
namespace Http;
class WebErrorHandler
{
public function __invoke($request, $response, $exception)
{
if($exception->getCode() === \Http\Rest\ACCESS_DENIED)
{
$response->getBody()->write('You are not authorized to view this page. The most common cause of this is that you are not... | Update generic error handler to include not logged in message | Update generic error handler to include not logged in message
| PHP | apache-2.0 | BurningFlipside/CommonCode,BurningFlipside/CommonCode,BurningFlipside/CommonCode,BurningFlipside/CommonCode | php | ## Code Before:
<?php
namespace Http;
class WebErrorHandler
{
public function __invoke($request, $response, $exception)
{
if($exception->getCode() === \Http\Rest\ACCESS_DENIED)
{
return $response->withStatus(401);
}
return $response
->withStatus(500)
... | <?php
namespace Http;
class WebErrorHandler
{
public function __invoke($request, $response, $exception)
{
if($exception->getCode() === \Http\Rest\ACCESS_DENIED)
{
+ $response->getBody()->write('You are not authorized to view this page. The most common cause of this... | 1 | 0.058824 | 1 | 0 |
a301ff4a5639102c17d9227571863a675b078f5e | bin/save-version.sh | bin/save-version.sh | VERSION=2.8.0-cdh5-INTERNAL
GIT_HASH=$(git rev-parse HEAD)
BUILD_TIME=`date`
HEADER="# Generated version information from save-version.sh"
echo -e \
"${HEADER}\nVERSION: ${VERSION}\nGIT_HASH: ${GIT_HASH}\nBUILD_TIME: ${BUILD_TIME}"\
> $IMPALA_HOME/bin/version.info
cat $IMPALA_HOME/bin/version.info
| VERSION=2.7.0
GIT_HASH=$(git rev-parse HEAD)
BUILD_TIME=`date`
HEADER="# Generated version information from save-version.sh"
echo -e \
"${HEADER}\nVERSION: ${VERSION}\nGIT_HASH: ${GIT_HASH}\nBUILD_TIME: ${BUILD_TIME}"\
> $IMPALA_HOME/bin/version.info
cat $IMPALA_HOME/bin/version.info
| Remove 'cdh' from version string | IMPALA-4116: Remove 'cdh' from version string
Change-Id: I7754538a23e73dcdebc6e3df509f357cbe03198c
Reviewed-on: http://gerrit.cloudera.org:8080/4421
Reviewed-by: Jim Apple <9e3620e7251463d214b5f536438d2c9ea899162d@cloudera.com>
Tested-by: Internal Jenkins
| Shell | apache-2.0 | cloudera/Impala,michaelhkw/incubator-impala,michaelhkw/incubator-impala,michaelhkw/incubator-impala,cloudera/Impala,cloudera/Impala,michaelhkw/incubator-impala,michaelhkw/incubator-impala,michaelhkw/incubator-impala,cloudera/Impala,michaelhkw/incubator-impala,cloudera/Impala,cloudera/Impala,cloudera/Impala | shell | ## Code Before:
VERSION=2.8.0-cdh5-INTERNAL
GIT_HASH=$(git rev-parse HEAD)
BUILD_TIME=`date`
HEADER="# Generated version information from save-version.sh"
echo -e \
"${HEADER}\nVERSION: ${VERSION}\nGIT_HASH: ${GIT_HASH}\nBUILD_TIME: ${BUILD_TIME}"\
> $IMPALA_HOME/bin/version.info
cat $IMPALA_HOME/bin/version.info
## ... | - VERSION=2.8.0-cdh5-INTERNAL
+ VERSION=2.7.0
GIT_HASH=$(git rev-parse HEAD)
BUILD_TIME=`date`
HEADER="# Generated version information from save-version.sh"
echo -e \
"${HEADER}\nVERSION: ${VERSION}\nGIT_HASH: ${GIT_HASH}\nBUILD_TIME: ${BUILD_TIME}"\
> $IMPALA_HOME/bin/version.info
cat $IMPALA_HOME/bin... | 2 | 0.222222 | 1 | 1 |
84223d36a3f8e050b5923f842889b66369afff0c | app/overrides/layouts_admin_print_buttons_decorator.rb | app/overrides/layouts_admin_print_buttons_decorator.rb | Deface::Override.new(:virtual_path => "spree/layouts/admin",
:name => "print_buttons",
:insert_top => "[data-hook='toolbar']>ul",
:partial => "spree/admin/orders/print_buttons",
:disabled => false)
| Deface::Override.new(:virtual_path => "spree/admin/shared/_content_header",
:name => "print_buttons",
:insert_top => "[data-hook='toolbar']>ul",
:partial => "spree/admin/orders/print_buttons",
:disabled => false)
| Correct virtual_path for print buttons override | Correct virtual_path for print buttons override
Fixes #34
| Ruby | bsd-3-clause | tgfi/spree_print_invoice,firmanm/spree_print_invoice,maximedelpit/spree_print_invoice,FadliKun/spree_print_invoice,adaddeo/spree_print_invoice,nebulab/spree_print_invoice,spree-contrib/spree_print_invoice,madetech/spree_print_invoice,FadliKun/spree_print_invoice,nebulab/spree_print_invoice,heritageid/invoice,fajrif/spr... | ruby | ## Code Before:
Deface::Override.new(:virtual_path => "spree/layouts/admin",
:name => "print_buttons",
:insert_top => "[data-hook='toolbar']>ul",
:partial => "spree/admin/orders/print_buttons",
:disabled => false)
## Instruction:
Corre... | - Deface::Override.new(:virtual_path => "spree/layouts/admin",
? --------
+ Deface::Override.new(:virtual_path => "spree/admin/shared/_content_header",
? +++++++++++++++++++++++
:name => "print_button... | 2 | 0.4 | 1 | 1 |
a9b0b9d4917dbdb37708a21e6829cc72e4656028 | Tests/ParadigmComponents/ListReplicator/FilenamesExpression/Complex.TESTDATA.xml | Tests/ParadigmComponents/ListReplicator/FilenamesExpression/Complex.TESTDATA.xml | <?xml version="1.0"?>
<marionette_info>
<expected_messages>
<message type="starts_with">"foo" (</message>
<message type="contains">/dir1/1.png (</message>
<message type="contains">/dir1/2.png (</message>
<message type="contains">/dir1/3.png (</message>
<message type="contains">/dir1/4.png (</messa... | <?xml version="1.0"?>
<marionette_info>
<expected_messages>
<message type="starts_with">"foo" (</message>
<message type="starts_with">dir1/1.png (</message>
<message type="starts_with">dir1/2.png (</message>
<message type="starts_with">dir1/3.png (</message>
<message type="starts_with">dir1/4.png ... | Update for changes to filenames() directive | Update for changes to filenames() directive
| XML | mit | mworks/mworks,mworks/mworks,mworks/mworks,mworks/mworks,mworks/mworks,mworks/mworks,mworks/mworks,mworks/mworks,mworks/mworks | xml | ## Code Before:
<?xml version="1.0"?>
<marionette_info>
<expected_messages>
<message type="starts_with">"foo" (</message>
<message type="contains">/dir1/1.png (</message>
<message type="contains">/dir1/2.png (</message>
<message type="contains">/dir1/3.png (</message>
<message type="contains">/dir... | <?xml version="1.0"?>
<marionette_info>
<expected_messages>
<message type="starts_with">"foo" (</message>
- <message type="contains">/dir1/1.png (</message>
? ^^^ ^^ -
+ <message type="starts_with">dir1/1.png (</message>
? ^ +++++ ^^
- <message type=... | 14 | 1 | 7 | 7 |
ce4175d3f1bef639b916997b9f6d229aff997fe9 | app/features/project/views/project_info.erb | app/features/project/views/project_info.erb | <table class="mdl-data-table mdl-js-data-table mdl-shadow--2dp">
<thead>
<tr>
<th>Status</th>
<th>Build Number</th>
<th>Triggered</th>
</tr>
</thead>
<tbody>
<% project.builds.each do |build| %>
<% url = "/projects_erb/#{project.id}/builds/#{build.number}" %>
<tr style="c... | <table class="mdl-data-table mdl-js-data-table mdl-shadow--2dp">
<thead>
<tr>
<th>Status</th>
<th>Build Number</th>
<th>Started</th>
<th>Trigger</th>
</tr>
</thead>
<tbody>
<% project.builds.each do |build| %>
<% url = "/projects_erb/#{project.id}/builds/#{build.number}" ... | Add a rerun button for each build | Add a rerun button for each build | HTML+ERB | mit | fastlane/ci,fastlane/ci,fastlane/ci,fastlane/ci,fastlane/ci | html+erb | ## Code Before:
<table class="mdl-data-table mdl-js-data-table mdl-shadow--2dp">
<thead>
<tr>
<th>Status</th>
<th>Build Number</th>
<th>Triggered</th>
</tr>
</thead>
<tbody>
<% project.builds.each do |build| %>
<% url = "/projects_erb/#{project.id}/builds/#{build.number}" %>
... | <table class="mdl-data-table mdl-js-data-table mdl-shadow--2dp">
<thead>
<tr>
<th>Status</th>
<th>Build Number</th>
+ <th>Started</th>
- <th>Triggered</th>
? --
+ <th>Trigger</th>
</tr>
</thead>
<tbody>
<% project.builds.each do |build|... | 16 | 0.761905 | 13 | 3 |
445fffddf0749bf65e5c97919fdea7d1c3ffe59e | nav-bar.php | nav-bar.php | <?php
if (!isset($_SESSION)) {
session_start();
}
?>
<!DOCTYPE html>
<html lang="en">
<?php
$beginning = '<div class="container"><nav class="navbar navbar-default "><div class="navbar-header">
<a class="navbar-brand">Navigation Bar </a>
</div><ul class="nav navbar-nav justified">';
$front... | <?php
if (!isset($_SESSION)) {
session_start();
}
?>
<!DOCTYPE html>
<html lang="en">
<?php
$beginning = '<div class="container"><nav class="navbar navbar-default "><div class="navbar-header">
<a class="navbar-brand">Navigation Bar </a>
</div><ul class="nav navbar-nav justified">';
$front... | Fix errors showing up because 'email' is not set | Fix errors showing up because 'email' is not set
| PHP | mit | ankschoubey/hospital-management-system-php-mysql | php | ## Code Before:
<?php
if (!isset($_SESSION)) {
session_start();
}
?>
<!DOCTYPE html>
<html lang="en">
<?php
$beginning = '<div class="container"><nav class="navbar navbar-default "><div class="navbar-header">
<a class="navbar-brand">Navigation Bar </a>
</div><ul class="nav navbar-nav justif... | <?php
if (!isset($_SESSION)) {
session_start();
}
?>
<!DOCTYPE html>
<html lang="en">
<?php
$beginning = '<div class="container"><nav class="navbar navbar-default "><div class="navbar-header">
<a class="navbar-brand">Navigation Bar </a>
</div><ul class="nav navbar-nav ... | 2 | 0.052632 | 1 | 1 |
c93a91ffe1482075edf9af00001d25401a32d525 | lib/cfi/CMakeLists.txt | lib/cfi/CMakeLists.txt | add_custom_target(cfi)
add_compiler_rt_resource_file(cfi_blacklist cfi_blacklist.txt)
add_dependencies(cfi cfi_blacklist)
| add_custom_target(cfi)
add_compiler_rt_resource_file(cfi_blacklist cfi_blacklist.txt)
add_dependencies(cfi cfi_blacklist)
add_dependencies(compiler-rt cfi)
| Make the cfi target a dependency of compiler-rt. | CFI: Make the cfi target a dependency of compiler-rt.
This causes the blacklist to be copied into place as a default build step.
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@246617 91177308-0d34-0410-b5e6-96231b3b80d8
| Text | apache-2.0 | llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt | text | ## Code Before:
add_custom_target(cfi)
add_compiler_rt_resource_file(cfi_blacklist cfi_blacklist.txt)
add_dependencies(cfi cfi_blacklist)
## Instruction:
CFI: Make the cfi target a dependency of compiler-rt.
This causes the blacklist to be copied into place as a default build step.
git-svn-id: c199f293c43da69278bea8... | add_custom_target(cfi)
add_compiler_rt_resource_file(cfi_blacklist cfi_blacklist.txt)
add_dependencies(cfi cfi_blacklist)
+ add_dependencies(compiler-rt cfi) | 1 | 0.333333 | 1 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.