commit stringlengths 40 40 | old_file stringlengths 4 237 | new_file stringlengths 4 237 | old_contents stringlengths 1 4.24k | new_contents stringlengths 5 4.84k | subject stringlengths 15 778 | message stringlengths 16 6.86k | lang stringlengths 1 30 | license stringclasses 13
values | repos stringlengths 5 116k | config stringlengths 1 30 | content stringlengths 105 8.72k |
|---|---|---|---|---|---|---|---|---|---|---|---|
a1c202e02e653afbb18d728fc04f3c32de40a720 | lib/mix/test/mix/deps_test.exs | lib/mix/test/mix/deps_test.exs | Code.require_file "../../test_helper.exs", __FILE__
defmodule Mix.DepsTest do
use MixTest.Case
defmodule DepsApp do
def project do
[
deps: [
{ :ok, "0.1.0", github: "elixir-lang/ok" },
{ :invalidvsn, "0.2.0", path: "deps/invalidvsn" },
{ :invalidapp, "0.1.0"... | Code.require_file "../../test_helper.exs", __FILE__
defmodule Mix.DepsTest do
use MixTest.Case
defmodule DepsApp do
def project do
[
deps: [
{ :ok, "0.1.0", github: "elixir-lang/ok" },
{ :invalidvsn, "0.2.0", path: "deps/invalidvsn" },
{ :invalidapp, "0.1.0"... | Clean up Mix.project after setting it | Clean up Mix.project after setting it
| Elixir | apache-2.0 | joshprice/elixir,beedub/elixir,kimshrier/elixir,lexmag/elixir,lexmag/elixir,beedub/elixir,gfvcastro/elixir,antipax/elixir,kimshrier/elixir,kelvinst/elixir,antipax/elixir,michalmuskala/elixir,gfvcastro/elixir,kelvinst/elixir,pedrosnk/elixir,pedrosnk/elixir,ggcampinho/elixir,elixir-lang/elixir,ggcampinho/elixir | elixir | ## Code Before:
Code.require_file "../../test_helper.exs", __FILE__
defmodule Mix.DepsTest do
use MixTest.Case
defmodule DepsApp do
def project do
[
deps: [
{ :ok, "0.1.0", github: "elixir-lang/ok" },
{ :invalidvsn, "0.2.0", path: "deps/invalidvsn" },
{ :inv... |
40bc88c993b0aa3855695bbcb8cb3e378761cc6c | Workspace/Project/CrossoverModule.js | Workspace/Project/CrossoverModule.js | module.exports =
{
crossoverFunction: function(phenotypeA, phenotypeB)
{
// move, copy, or append some values from a to b and from b to a
return [ phenotypeA , phenotypeB ]
}
}
| module.exports =
{
crossoverFunction: function(phenotypeA, phenotypeB)
{
var randNumb = Math.floor(Math.random() * (count + 1))
var A_nmosArray = phenotypeA.nmosTransistors
var A_pmosArray = phenotypeA.pmosTransistors
var B_nmosArray = phenotypeB.nmosTransistors
var B_pmosArray = phenotypeB.pmo... | Implement Crossover Function to Cut-Copy Transistors Between Phenotypes | Implement Crossover Function to Cut-Copy Transistors Between Phenotypes
| JavaScript | mit | MrWooJ/WJChipDesign,MrWooJ/WJChipDesign | javascript | ## Code Before:
module.exports =
{
crossoverFunction: function(phenotypeA, phenotypeB)
{
// move, copy, or append some values from a to b and from b to a
return [ phenotypeA , phenotypeB ]
}
}
## Instruction:
Implement Crossover Function to Cut-Copy Transistors Between Phenotypes
## Code After:
module.e... |
ccfc4ba96efe3f36502d4a6e5d13fd349d3656c3 | README.md | README.md | brackets togist extension
===
A simple brackets extension to share easily create a Github Gist from the current selection. To install, place in ```brackets/src/extensions/user``` folder.
Usage
=====
Select some text, and then select Create Gist from the Edit menu.
| Brackets togist extension
===
A simple brackets extension to easily create a Github Gist from the current text selection. To install, place in ```brackets/src/extensions/user``` folder.
This extenstion was primarily created for learning how to create an extension for Brackets. As such, it is very experimental and sh... | Update the read me file for clarifications. | Update the read me file for clarifications.
| Markdown | mit | LucasKA/Gistr,davidderaedt/togist | markdown | ## Code Before:
brackets togist extension
===
A simple brackets extension to share easily create a Github Gist from the current selection. To install, place in ```brackets/src/extensions/user``` folder.
Usage
=====
Select some text, and then select Create Gist from the Edit menu.
## Instruction:
Update the read me... |
9d1a53fea17dfc8d48324e510273259615fbee01 | pivoteer/writer/hosts.py | pivoteer/writer/hosts.py | import dateutil.parser
from pivoteer.writer.core import CsvWriter
from core.lookups import geolocate_ip
class HostCsvWriter(CsvWriter):
"""
A CsvWriter implementation for IndicatorRecord objects with a record type of "HR" (Host Record)
"""
def __init__(self, writer):
"""
Create a new ... | import dateutil.parser
from pivoteer.writer.core import CsvWriter
from core.lookups import geolocate_ip
class HostCsvWriter(CsvWriter):
"""
A CsvWriter implementation for IndicatorRecord objects with a record type of "HR" (Host Record)
"""
def __init__(self, writer):
"""
Create a new ... | Update historical export with latest data model changes | Update historical export with latest data model changes
| Python | mit | LindaTNguyen/RAPID,LindaTNguyen/RAPID,gdit-cnd/RAPID,gdit-cnd/RAPID,gdit-cnd/RAPID,LindaTNguyen/RAPID,LindaTNguyen/RAPID,gdit-cnd/RAPID,gdit-cnd/RAPID,LindaTNguyen/RAPID | python | ## Code Before:
import dateutil.parser
from pivoteer.writer.core import CsvWriter
from core.lookups import geolocate_ip
class HostCsvWriter(CsvWriter):
"""
A CsvWriter implementation for IndicatorRecord objects with a record type of "HR" (Host Record)
"""
def __init__(self, writer):
"""
... |
0f4f613c83f7c12032d70b619ba7df19c0d0521e | openstack_dashboard/dashboards/identity/users/templates/users/_detail_overview.html | openstack_dashboard/dashboards/identity/users/templates/users/_detail_overview.html | {% load i18n %}
<div class="detail">
<dl class="dl-horizontal">
{% if domain_id %}
<dt>{% trans "Domain ID" %}</dt>
<dd>{{ domain_id }}</dd>
{% endif %}
{% if domain_name %}
<dt>{% trans "Domain Name" %}</dt>
<dd>{{ domain_name }}</dd>
{% endif %}
<dt>{% trans "User Name" ... | {% load i18n %}
<div class="detail">
<dl class="dl-horizontal">
{% if domain_id %}
<dt>{% trans "Domain ID" %}</dt>
<dd>{{ domain_id }}</dd>
{% endif %}
{% if domain_name %}
<dt>{% trans "Domain Name" %}</dt>
<dd>{{ domain_name }}</dd>
{% endif %}
<dt>{% trans "User Name" ... | Improve field name in User Detail | Improve field name in User Detail
At the moment, User Detail page has 'Project Name' and 'Project ID'
fields. However, these field express the info of "Primary Project".
Actually, when user does't have it, this field will display 'None'
even though user belong some projects.
Therefore, this patch will change to proper... | HTML | apache-2.0 | bac/horizon,BiznetGIO/horizon,bac/horizon,wolverineav/horizon,sandvine/horizon,ChameleonCloud/horizon,bac/horizon,coreycb/horizon,BiznetGIO/horizon,wolverineav/horizon,noironetworks/horizon,wolverineav/horizon,ChameleonCloud/horizon,ChameleonCloud/horizon,BiznetGIO/horizon,openstack/horizon,yeming233/horizon,BiznetGIO/... | html | ## Code Before:
{% load i18n %}
<div class="detail">
<dl class="dl-horizontal">
{% if domain_id %}
<dt>{% trans "Domain ID" %}</dt>
<dd>{{ domain_id }}</dd>
{% endif %}
{% if domain_name %}
<dt>{% trans "Domain Name" %}</dt>
<dd>{{ domain_name }}</dd>
{% endif %}
<dt>{% tr... |
34db3ae5f8b90f2b7e47b958d084f88795f6f3fc | docs/README.md | docs/README.md |
To build the documentation:
* Using Fish:
docker run -it -v (pwd):/documents/ asciidoctor/docker-asciidoctor "./build.sh" "html"
* Using Bash
docker run -it -v `pwd`:/documents/ asciidoctor/docker-asciidoctor "./build.sh" "html"
|
To build the documentation:
* Using Fish:
```
docker run -it -v (pwd):/documents/ asciidoctor/docker-asciidoctor "./build.sh" "html"
```
* Using Bash
```
docker run -it -v $(pwd):/documents/ asciidoctor/docker-asciidoctor "./build.sh" "html"
```
| Use $() syntax instead of backticks | Use $() syntax instead of backticks
Otherwise the command is not properly displayed after Markdown rendering | Markdown | apache-2.0 | cescoffier/vertx-microservices-workshop,cescoffier/vertx-microservices-workshop,cescoffier/vertx-microservices-workshop,cescoffier/vertx-microservices-workshop,cescoffier/vertx-microservices-workshop | markdown | ## Code Before:
To build the documentation:
* Using Fish:
docker run -it -v (pwd):/documents/ asciidoctor/docker-asciidoctor "./build.sh" "html"
* Using Bash
docker run -it -v `pwd`:/documents/ asciidoctor/docker-asciidoctor "./build.sh" "html"
## Instruction:
Use $() syntax instead of backticks
... |
aa6d9dc98928c2b3a5f1f398de3780bd982a7a97 | .travis.yml | .travis.yml | language: python
python:
- 3.6
cache:
pip: true
directories:
- ${VIRTUAL_ENV}
env:
global:
- RANDOM_SEED=0
before_install:
- curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
- source $HOME/.poetry/env
- make doctor
install:
- make install
script:
... | dist: xenial
language: python
python:
- 3.6
- 3.7
cache:
pip: true
directories:
- ${VIRTUAL_ENV}
env:
global:
- RANDOM_SEED=0
before_install:
- curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
- source $HOME/.poetry/env
- make doctor
install:
- mak... | Test against Python 3.6 on Travis CI | Test against Python 3.6 on Travis CI
| YAML | mit | jacebrowning/mine | yaml | ## Code Before:
language: python
python:
- 3.6
cache:
pip: true
directories:
- ${VIRTUAL_ENV}
env:
global:
- RANDOM_SEED=0
before_install:
- curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
- source $HOME/.poetry/env
- make doctor
install:
- make ins... |
aea60d4cc1a6f27a2602995378fdae2411c9d75c | meta-networking/recipes-support/curlpp/curlpp_0.8.1.bb | meta-networking/recipes-support/curlpp/curlpp_0.8.1.bb | SUMMARY = "C++ library for client-side URL transfers"
HOMEPAGE = "http://www.curlpp.org/"
SECTION = "libdevel"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
DEPENDS = "curl"
DEPENDS_class-native = "curl-native"
SRC_URI = "git://github.com/jpbarrette/curl... | SUMMARY = "C++ library for client-side URL transfers"
HOMEPAGE = "http://www.curlpp.org/"
SECTION = "libdevel"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://doc/LICENSE;md5=fd0c9adf285a69aa3b4faf34384e1029"
DEPENDS = "curl"
DEPENDS_class-native = "curl-native"
SRC_URI = "git://github.com/jpbarrette/curlpp.git"
SRCREV =... | Fix packaging and reference to license | curlpp: Fix packaging and reference to license
This patch fixes three issues:
1. The recipe used "libcurlpp" for its package base name. It defined
PACKAGES and corresponding package contents manually, but the
non-standard naming led to an error message when trying to depend on
it (nothing provides curlpp needed... | BitBake | mit | moto-timo/meta-openembedded,openembedded/meta-openembedded,schnitzeltony/meta-openembedded,victronenergy/meta-openembedded,openembedded/meta-openembedded,rehsack/meta-openembedded,mrchapp/meta-openembedded,VCTLabs/meta-openembedded,moto-timo/meta-openembedded,schnitzeltony/meta-openembedded,rehsack/meta-openembedded,VC... | bitbake | ## Code Before:
SUMMARY = "C++ library for client-side URL transfers"
HOMEPAGE = "http://www.curlpp.org/"
SECTION = "libdevel"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
DEPENDS = "curl"
DEPENDS_class-native = "curl-native"
SRC_URI = "git://github.com... |
72d3f7de35b2639e7b1a1f0ceba97347850b3677 | DeadBaseSample/src/DeadBaseSample/TypeScriptSource/deadbase.ts | DeadBaseSample/src/DeadBaseSample/TypeScriptSource/deadbase.ts | import { bootstrap, Component } from 'angular2/angular2';
@Component({
selector: 'deadbase-app',
template: '<h1>{{title}}</h1><h2>{{venue}} Details!</h2>'
})
class DeadBaseAppComponent {
public title = "Deadbase - Grateful Dead Concert Archive";
public venue = "Filmore West";
}
bootstrap(DeadBaseAppC... | import { bootstrap, Component } from 'angular2/angular2';
class ConcertSet {
date: Date;
venue: string;
set: number;
}
@Component({
selector: 'deadbase-app',
template: '<h1>{{title}}</h1><h2>{{concert.date}} -- {{concert.venue}} Details!</h2>'
})
class DeadBaseAppComponent {
public title = "... | Create class for a concert set | Create class for a concert set
| TypeScript | mit | BillWagner/TypeScriptAngular2,BillWagner/TypeScriptAngular2,BillWagner/TypeScriptAngular2,BillWagner/TypeScriptAngular2 | typescript | ## Code Before:
import { bootstrap, Component } from 'angular2/angular2';
@Component({
selector: 'deadbase-app',
template: '<h1>{{title}}</h1><h2>{{venue}} Details!</h2>'
})
class DeadBaseAppComponent {
public title = "Deadbase - Grateful Dead Concert Archive";
public venue = "Filmore West";
}
bootst... |
4cd85bea9f6bee536fdfb7987dd6260304a52652 | app/views/trails/show.html.erb | app/views/trails/show.html.erb | <div>
<h2><%= @trail.name %></h2>
</div>
<% @comments.each do |comment| %>
<div class="vote-container">
<%= image_tag("snowflake.png", class: "snowflake") %>
<br>
<%= comment.votes.sum(:value) %>
</div>
<div class="comment-container">
<ul>
<li><p class="comment"><%= comment.content%></p></... | <div>
<h2><%= @trail.name %></h2>
<%= link_to 'Chat', new_trail_comment_path(@trail) %>
</div>
<% @comments.each do |comment| %>
<div class="vote-container">
<%= image_tag("snowflake.png", class: "snowflake") %>
<br>
<%= comment.votes.sum(:value) %>
</div>
<div class="comment-container">
<ul>
... | Move comment link inside Trail name div | Move comment link inside Trail name div
| HTML+ERB | mit | zlschatz/Mountain-Chat-Rails-App,zlschatz/Mountain-Chat-Rails-App,zlschatz/Mountain-Chat-Rails-App | html+erb | ## Code Before:
<div>
<h2><%= @trail.name %></h2>
</div>
<% @comments.each do |comment| %>
<div class="vote-container">
<%= image_tag("snowflake.png", class: "snowflake") %>
<br>
<%= comment.votes.sum(:value) %>
</div>
<div class="comment-container">
<ul>
<li><p class="comment"><%= comment... |
6143f9ef9701b92ec38aa12f4be2b1c94e4394cd | app/models/user.js | app/models/user.js | var Bcrypt = require('bcryptjs')
var Mongoose = require('../../database').Mongoose
var ObjectId = Mongoose.Schema.Types.ObjectId;
var userSchema = new Mongoose.Schema({
username: {
type : String,
required: true
},
password: {
type : String,
required: true
},
email: {
type : String,
r... | var Bcrypt = require('bcryptjs')
var Mongoose = require('../../database').Mongoose
var ObjectId = Mongoose.Schema.Types.ObjectId;
var userSchema = new Mongoose.Schema({
username: {
type : String,
required: true
},
password: {
type : String,
required: true
},
email: {
type : String,
r... | Change mixed type to array json | Change mixed type to array json
| JavaScript | mit | fitraditya/Obrel | javascript | ## Code Before:
var Bcrypt = require('bcryptjs')
var Mongoose = require('../../database').Mongoose
var ObjectId = Mongoose.Schema.Types.ObjectId;
var userSchema = new Mongoose.Schema({
username: {
type : String,
required: true
},
password: {
type : String,
required: true
},
email: {
type... |
0e9b0d756064e8decd4c9064bde334c87b8c1f21 | src/features/config/index.md | src/features/config/index.md | When you run `truffle develop`, Truffle no longer uses the classic `candy maple...` mnemonic. Instead, the first time you run the command it will generate a random mnemonic just for you and persist it!
We encourage you to exercise caution when working with mnemonics and private keys, and recommend that everyone do th... | When you run `truffle develop`, Truffle no longer uses the classic `candy maple...` mnemonic. Instead, the first time you run the command it will generate a random mnemonic just for you and persist it!
We encourage you to exercise caution when working with mnemonics and private keys, and recommend that everyone do th... | Add blurb teaser about user level config | Add blurb teaser about user level config
| Markdown | mit | ConsenSys/truffle | markdown | ## Code Before:
When you run `truffle develop`, Truffle no longer uses the classic `candy maple...` mnemonic. Instead, the first time you run the command it will generate a random mnemonic just for you and persist it!
We encourage you to exercise caution when working with mnemonics and private keys, and recommend tha... |
e3105cb6d1f79fc7fe931aeed0440ef035fec9f3 | firebase.json | firebase.json | {
"hosting": {
"public": ".",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**",
".jshintrc",
"license",
"readme.md",
".editorconfig",
".gitignore"
]
}
}
| {
"hosting": {
"public": ".",
"ignore": [
"firebase.json",
"**/.*",
"license",
"readme.md"
]
}
}
| Update files to ignore on deployment | Update files to ignore on deployment
| JSON | mit | vinimdocarmo/vinimdocarmo.github.io,vinimdocarmo/vinimdocarmo.github.io | json | ## Code Before:
{
"hosting": {
"public": ".",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**",
".jshintrc",
"license",
"readme.md",
".editorconfig",
".gitignore"
]
}
}
## Instruction:
Update files to ignore on deployment
## Code After:
{
"ho... |
d765eb6ea03845f9ed7a2c89f953ff8c1bf7e943 | lib/is_approvable.rb | lib/is_approvable.rb | module IsApprovable
def is_approvable(*opts)
@reported_fields_on_approval = (opts.empty? ? [ :id, :created_at ] : opts )
include InstanceMethods
extend ClassMethods
end
module ClassMethods
def reported_fields_on_approval
@reported_fields_on_approval
end
end
module InstanceMethods
... | module IsApprovable
def is_approvable(*opts)
@reported_fields_on_approval = (opts.empty? ? [ :id, :created_at ] : opts )
include InstanceMethods
extend ClassMethods
end
module ClassMethods
def reported_fields_on_approval
@reported_fields_on_approval
end
end
module InstanceMethods
... | Use Kernel.const_get instead of eval | Use Kernel.const_get instead of eval | Ruby | mit | raimo/is_approvable | ruby | ## Code Before:
module IsApprovable
def is_approvable(*opts)
@reported_fields_on_approval = (opts.empty? ? [ :id, :created_at ] : opts )
include InstanceMethods
extend ClassMethods
end
module ClassMethods
def reported_fields_on_approval
@reported_fields_on_approval
end
end
module I... |
e330f49056a009da93be220144c0efbc4ee41f8e | bootstrap/agent.sh | bootstrap/agent.sh |
systemctl enable mesos-slave.service
systemctl start mesos-slave.service
## Install enrique
sudo apt-get install python-dev python-setuptools python-pip -y
sudo pip install mesos.interface -U
cd /home/vagrant/enrique
python setup.py develop
|
systemctl enable mesos-slave.service
systemctl start mesos-slave.service
sudo apt-get install python-dev python-setuptools python-pip -y
## Install python mesos bindings
### XXX There's STILL no pip installable bindings so we need to download
### and manually update the egg for now
wget http://downloads.mesosphere.... | Install python bindings with the egg | Install python bindings with the egg
| Shell | mit | mesos-magellan/victoria | shell | ## Code Before:
systemctl enable mesos-slave.service
systemctl start mesos-slave.service
## Install enrique
sudo apt-get install python-dev python-setuptools python-pip -y
sudo pip install mesos.interface -U
cd /home/vagrant/enrique
python setup.py develop
## Instruction:
Install python bindings with the egg
## Cod... |
72af62bdf9339c880b0cc0f1e1002cf1961e962b | rule.py | rule.py | class PriceRule:
"""PriceRule is a rule that triggers when a stock price satisfies a condition.
The condition is usually greater, equal or lesser than a given value.
"""
def __init__(self, symbol, condition):
self.symbol = symbol
self.condition = condition
def matches(self, exchan... | class PriceRule:
"""PriceRule is a rule that triggers when a stock price satisfies a condition.
The condition is usually greater, equal or lesser than a given value.
"""
def __init__(self, symbol, condition):
self.symbol = symbol
self.condition = condition
def matches(self, exchan... | Add matches method to AndRule class. | Add matches method to AndRule class.
| Python | mit | bsmukasa/stock_alerter | python | ## Code Before:
class PriceRule:
"""PriceRule is a rule that triggers when a stock price satisfies a condition.
The condition is usually greater, equal or lesser than a given value.
"""
def __init__(self, symbol, condition):
self.symbol = symbol
self.condition = condition
def matc... |
97fff8d8065e79e89972bc644d88787d7d37edf9 | pkgs/development/ruby-modules/bundler/default.nix | pkgs/development/ruby-modules/bundler/default.nix | { buildRubyGem, makeWrapper, ruby, coreutils }:
buildRubyGem rec {
inherit ruby;
name = "${gemName}-${version}";
gemName = "bundler";
version = "1.16.1";
source.sha256 = "1s2nq4qnffxg3kwrk7cnwxcvfihlhxm9absl2l6d3qckf3sy1f22";
dontPatchShebangs = true;
postFixup = ''
sed -i -e "s/activate_bin_path/bi... | { buildRubyGem, makeWrapper, ruby, coreutils }:
buildRubyGem rec {
inherit ruby;
name = "${gemName}-${version}";
gemName = "bundler";
version = "1.14.6";
source.sha256 = "0h3x2csvlz99v2ryj1w72vn6kixf7rl35lhdryvh7s49brnj0cgl";
dontPatchShebangs = true;
postFixup = ''
sed -i -e "s/activate_bin_path/bi... | Revert "bundler: 1.14.6 -> 1.16.1" | Revert "bundler: 1.14.6 -> 1.16.1"
This reverts commit 0aa95d73bd213211258c6431914cd1c289f69cfd.
revert because of gitlab
| Nix | mit | NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,... | nix | ## Code Before:
{ buildRubyGem, makeWrapper, ruby, coreutils }:
buildRubyGem rec {
inherit ruby;
name = "${gemName}-${version}";
gemName = "bundler";
version = "1.16.1";
source.sha256 = "1s2nq4qnffxg3kwrk7cnwxcvfihlhxm9absl2l6d3qckf3sy1f22";
dontPatchShebangs = true;
postFixup = ''
sed -i -e "s/acti... |
385069ba13adced790bf5b97b681482cd73e25f7 | client/templates/admin/questionsGroups/editQuestionsGroup.js | client/templates/admin/questionsGroups/editQuestionsGroup.js | Template.editQuestionsGroup.helpers({
ekloreQuestionsLinked() {
return EkloreQuestions
.find({
'questionGroupId': this._id
});
}
});
Template.editQuestionsGroup.events({
'click #save': function(event) {
event.preventDefault();
var questionsGroupData = {
questionsGroupId: Router.current().params._... | Template.editQuestionsGroup.helpers({
ekloreQuestionsLinked() {
return EkloreQuestions.find({
questionGroupId: this._id
});
}
});
Template.editQuestionsGroup.events({
'click #save': function(event) {
event.preventDefault();
const questionsGroupData = {
questionsGroupId: Router.current().params._id,
... | Update helper and change var to const | Update helper and change var to const
| JavaScript | mit | EKlore/EKlore,EKlore/EKlore | javascript | ## Code Before:
Template.editQuestionsGroup.helpers({
ekloreQuestionsLinked() {
return EkloreQuestions
.find({
'questionGroupId': this._id
});
}
});
Template.editQuestionsGroup.events({
'click #save': function(event) {
event.preventDefault();
var questionsGroupData = {
questionsGroupId: Router.cu... |
75b0e291a00562ab5b25fef63c0e852e86307718 | README.md | README.md |
As well as allowing users to search for care homes in their local area, this application is intended to act as an example use of NHS Choices syndication data.
[](https://travis-ci.org/NHSChoices/care-home-search)
[](https://travis-ci.org/NHSChoices/care-home-search)
[](https://codeclimate.com/github/NHSChoices/care-home-search)
[](https://travis-ci.org/NHSChoices/care-home-search)
[;
const HTTPStatus = require('http-status-codes');
var scraper = require('./app/routes/scraper');
const app = express();
app.use('/', scraper);
// Final catch any route middleware used to raise 404
app.get('*', (req, res, next) => {
const err = new Error();
err.st... | "use strict"
const express = require('express');
const HTTPStatus = require('http-status-codes');
var scraper = require('./app/routes/scraper');
const app = express();
// This middleware will be executed for every request to the app
// The api produces application/json only
app.use(function (req, res, next) {
res... | Add setting of mime type | feat: Add setting of mime type
| JavaScript | mit | C3-TKO/junkan-server | javascript | ## Code Before:
"use strict"
const express = require('express');
const HTTPStatus = require('http-status-codes');
var scraper = require('./app/routes/scraper');
const app = express();
app.use('/', scraper);
// Final catch any route middleware used to raise 404
app.get('*', (req, res, next) => {
const err = new E... |
d87d46291847f08cedde344df309fd3c4a46fac0 | meta-resin-common/recipes-containers/tini/tini_0.14.0.bb | meta-resin-common/recipes-containers/tini/tini_0.14.0.bb | HOMEPAGE = "http://github.com/krallin/tini"
SUMMARY = "Minimal init for containers"
DESCRIPTION = "Tini is the simplest init you could think of. \
All Tini does is spawn a single child (Tini is meant to be run in a container), \
and wait for it to exit all the while reaping zombies and performing signal forwarding.... | HOMEPAGE = "http://github.com/krallin/tini"
SUMMARY = "Minimal init for containers"
DESCRIPTION = "Tini is the simplest init you could think of. All Tini does is \
spawn a single child (Tini is meant to be run in a container), and wait for \
it to exit all the while reaping zombies and performing signal forwarding. "
... | Switch from docker to balena and minor formatting changes | tini: Switch from docker to balena and minor formatting changes
Signed-off-by: Andrei Gherzan <8dc7c09356db0b1762fb140617d7375c0a5a4131@resin.io>
| BitBake | apache-2.0 | resin-os/meta-resin,resin-os/meta-resin,resin-os/meta-resin,resin-os/meta-resin | bitbake | ## Code Before:
HOMEPAGE = "http://github.com/krallin/tini"
SUMMARY = "Minimal init for containers"
DESCRIPTION = "Tini is the simplest init you could think of. \
All Tini does is spawn a single child (Tini is meant to be run in a container), \
and wait for it to exit all the while reaping zombies and performing si... |
248a5a58d9e332f8411d9cd1796452aa13a50bce | metadata/de.vanitasvitae.enigmandroid.txt | metadata/de.vanitasvitae.enigmandroid.txt | Categories:Science & Education
License:GPLv2
Web Site:
Source Code:https://github.com/vanitasvitae/EnigmAndroid
Issue Tracker:https://github.com/vanitasvitae/EnigmAndroid/issues
Auto Name:EnigmAndroid
Summary:Simulation of the Enigma Machine
Description:
This is a simulation of the famous Enigma cipher machine used in... | Categories:Science & Education
License:GPLv2
Web Site:
Source Code:https://github.com/vanitasvitae/EnigmAndroid
Issue Tracker:https://github.com/vanitasvitae/EnigmAndroid/issues
Auto Name:EnigmAndroid
Summary:Simulation of the Enigma Machine
Description:
This is a simulation of the famous Enigma cipher machine used in... | Update EnigmAndroid to 0.1.1-23.02.2015-beta (7) | Update EnigmAndroid to 0.1.1-23.02.2015-beta (7)
| Text | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata,f-droid/fdroid-data | text | ## Code Before:
Categories:Science & Education
License:GPLv2
Web Site:
Source Code:https://github.com/vanitasvitae/EnigmAndroid
Issue Tracker:https://github.com/vanitasvitae/EnigmAndroid/issues
Auto Name:EnigmAndroid
Summary:Simulation of the Enigma Machine
Description:
This is a simulation of the famous Enigma cipher... |
019b0db4fca255a37425a2237f8994a61e99d0ce | snappy/kernel/snapcraft.yaml | snappy/kernel/snapcraft.yaml | name: pine64-kernel
version: 3.10.104-2
summary: A pine64 kernel built from source
description: This is longsleep Pine64 kernel from linux-pine64 branch pine64-hacks-1.2
type: kernel
architectures: [ arm64 ]
parts:
kernel:
plugin: kernel
source: https://github.com/longsleep/linux-pine64.git
... | name: pine64-kernel
version: 3.10.104-2
summary: A pine64 kernel built from source
description: This is longsleep Pine64 kernel from linux-pine64 branch pine64-hacks-1.2
type: kernel
architectures: [ arm64 ]
parts:
kernel:
plugin: kernel
source: https://github.com/longsleep/linux-pine64.git
... | Add cfg80211 into kernel, to avoid probert error | Add cfg80211 into kernel, to avoid probert error
| YAML | mit | ayufan-pine64/linux-build,longsleep/build-pine64-image | yaml | ## Code Before:
name: pine64-kernel
version: 3.10.104-2
summary: A pine64 kernel built from source
description: This is longsleep Pine64 kernel from linux-pine64 branch pine64-hacks-1.2
type: kernel
architectures: [ arm64 ]
parts:
kernel:
plugin: kernel
source: https://github.com/longsleep/linux-pi... |
0a794918d87193c6ed92d3e46aaab261d426f6cd | migrations/new-data-model.js | migrations/new-data-model.js | //
// FRAMES
//
// Rename plugins to extensions
db.Frame.update({}, { $rename: { 'plugins': 'extensions'}}, {multi: 1});
// Replace embedded current artwork with a relationship
db.Frame.find().snapshot().forEach(
function (elem) {
if (elem._current_artwork) {
db.Frame.update(
{... | //
// FRAMES
//
// Rename plugins to extensions
db.Frame.update({}, { $rename: { 'plugins': 'extensions'}}, {multi: 1});
// Replace embedded current artwork with a relationship
db.Frame.find().snapshot().forEach(
function (elem) {
if (elem._current_artwork) {
db.Frame.update(
{... | Use https for artworks on BOS | Use https for artworks on BOS
| JavaScript | agpl-3.0 | OpenframeProject/Openframe-APIServer,OpenframeProject/Openframe-APIServer | javascript | ## Code Before:
//
// FRAMES
//
// Rename plugins to extensions
db.Frame.update({}, { $rename: { 'plugins': 'extensions'}}, {multi: 1});
// Replace embedded current artwork with a relationship
db.Frame.find().snapshot().forEach(
function (elem) {
if (elem._current_artwork) {
db.Frame.update(
... |
3f0893566e68330a9876fbb3c78bab415714ac93 | src/Detector/Strategy/SuffixTree/Sentinel.php | src/Detector/Strategy/SuffixTree/Sentinel.php | <?php declare(strict_types=1);
/*
* This file is part of PHP Copy/Paste Detector (PHPCPD).
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\PHPCPD\Detecto... | <?php declare(strict_types=1);
/*
* This file is part of PHP Copy/Paste Detector (PHPCPD).
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\PHPCPD\Detecto... | Use random_int() instead of rand() | Use random_int() instead of rand()
| PHP | bsd-3-clause | sebastianbergmann/phpcpd | php | ## Code Before:
<?php declare(strict_types=1);
/*
* This file is part of PHP Copy/Paste Detector (PHPCPD).
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergman... |
f076c265eae512086bbdb61e17aafb530759a48c | test/com/facebook/buck/jvm/java/testdata/missing_deps/Test.java | test/com/facebook/buck/jvm/java/testdata/missing_deps/Test.java | package com.example.buck.library;
import com.foo.missing.Dep;
public class Test {}
| package com.example.buck.library;
import com.foo.missing.Dep;
public class Test {
Dep d = null;
}
| Add usage of missing Dep so linters won't remove it from test | Add usage of missing Dep so linters won't remove it from test
Summary: google formatter removes this import unless its used.
Reviewed By: philipjameson
fbshipit-source-id: 06c0854797
| Java | apache-2.0 | JoelMarcey/buck,JoelMarcey/buck,nguyentruongtho/buck,brettwooldridge/buck,nguyentruongtho/buck,romanoid/buck,SeleniumHQ/buck,brettwooldridge/buck,facebook/buck,JoelMarcey/buck,SeleniumHQ/buck,JoelMarcey/buck,rmaz/buck,Addepar/buck,zpao/buck,zpao/buck,romanoid/buck,brettwooldridge/buck,Addepar/buck,zpao/buck,kageiit/buc... | java | ## Code Before:
package com.example.buck.library;
import com.foo.missing.Dep;
public class Test {}
## Instruction:
Add usage of missing Dep so linters won't remove it from test
Summary: google formatter removes this import unless its used.
Reviewed By: philipjameson
fbshipit-source-id: 06c0854797
## Code After:
... |
ad906254bb4dc0cfe37a464f91bb3e77deccf9cb | base/scripts/lib/build_app.sh | base/scripts/lib/build_app.sh | set -e
COPIED_APP_PATH=/copied-app
BUNDLE_DIR=/tmp/bundle-dir
# sometimes, directly copied folder cause some wierd issues
# this fixes that
cp -R /app $COPIED_APP_PATH
cd $COPIED_APP_PATH
meteor npm install --production
meteor build --directory $BUNDLE_DIR --server=http://localhost:3000
cd $BUNDLE_DIR/bundle/progr... | set -e
COPIED_APP_PATH=/copied-app
BUNDLE_DIR=/tmp/bundle-dir
# sometimes, directly copied folder cause some wierd issues
# this fixes that
echo "=> Copying the app"
cp -R /app $COPIED_APP_PATH
cd $COPIED_APP_PATH
echo "=> Executing NPM install --production"
meteor npm install --production
echo "=> Executing Meteor... | Add debug output just in case it becomes relevant for debugging | Add debug output just in case it becomes relevant for debugging
| Shell | mit | marcoschwartz/meteord,jbg77/meteord | shell | ## Code Before:
set -e
COPIED_APP_PATH=/copied-app
BUNDLE_DIR=/tmp/bundle-dir
# sometimes, directly copied folder cause some wierd issues
# this fixes that
cp -R /app $COPIED_APP_PATH
cd $COPIED_APP_PATH
meteor npm install --production
meteor build --directory $BUNDLE_DIR --server=http://localhost:3000
cd $BUNDLE_... |
95f974db6485e09c13386bb1a5d7d5ecbe4abb9a | spec/origin/pipeline_spec.rb | spec/origin/pipeline_spec.rb | require "spec_helper"
describe Origin::Pipeline do
describe "#initialize" do
context "when provided aliases" do
let(:aliases) do
{ "id" => "_id" }
end
let(:pipeline) do
described_class.new(aliases)
end
it "sets the aliases" do
expect(pipeline.aliases).to... | require "spec_helper"
describe Origin::Pipeline do
describe "#__deep_copy" do
let(:project) do
{ "$project" => { "name" => 1 }}
end
let(:pipeline) do
described_class.new
end
before do
pipeline.push(project)
end
let(:copied) do
pipeline.__deep_copy__
end
... | Add deep copy spec on pipeline | Add deep copy spec on pipeline
| Ruby | mit | JamesHarrison/origin,mongoid/origin | ruby | ## Code Before:
require "spec_helper"
describe Origin::Pipeline do
describe "#initialize" do
context "when provided aliases" do
let(:aliases) do
{ "id" => "_id" }
end
let(:pipeline) do
described_class.new(aliases)
end
it "sets the aliases" do
expect(pipe... |
aec527ad48cb81e0ea364dbf94e7641cf62d0187 | server/integration-tests/sqlite_test.hs | server/integration-tests/sqlite_test.hs | -- stack --stack-yaml ../../client-haskell/stack.yaml runghc --package sqlite-simple
{-# OPTIONS_GHC -Wall #-}
{-# LANGUAGE OverloadedStrings #-}
{- | This test does nothing yet.
-}
import Database.SQLite.Simple
data TestField = TestField Int String deriving (Show)
instance FromRow TestField where
fromRow = Test... | -- stack --stack-yaml ../../client-haskell/stack.yaml runghc --package sqlite-simple
{-# OPTIONS_GHC -Wall #-}
{-# LANGUAGE OverloadedStrings #-}
{- | Test whether SQLite was installed with JSON support enabled by calling the "json" SQL
function.
-}
import Data.Text (Text)
import Database.SQLite.Simple
data TestFie... | Test SQLite for JSON support | Test SQLite for JSON support
SQLite needs to be compiled with -DSQLITE_ENABLE_JSON1 in order for JSON
support to be available. The version on Ubuntu comes with this support
enabled by default.
| Haskell | bsd-3-clause | channable/icepeak,channable/icepeak,channable/icepeak | haskell | ## Code Before:
-- stack --stack-yaml ../../client-haskell/stack.yaml runghc --package sqlite-simple
{-# OPTIONS_GHC -Wall #-}
{-# LANGUAGE OverloadedStrings #-}
{- | This test does nothing yet.
-}
import Database.SQLite.Simple
data TestField = TestField Int String deriving (Show)
instance FromRow TestField where
... |
b14eac4829845fa1a87bbbdb00fd90367ca73642 | .travis.yml | .travis.yml | language: java
sudo: false
jdk:
- oraclejdk7
after_success:
- mvn clean jacoco:report cobertura:cobertura coveralls:report
| language: java
sudo: false
jdk:
- oraclejdk7
after_success:
- mvn clean cobertura:cobertura coveralls:report
| Remove Jacoco target from Travis build | Remove Jacoco target from Travis build
| YAML | mit | warden/jira-plugin,escoem/jira-plugin,escoem/jira-plugin,warden/jira-plugin,kuldazbraslav/jira-plugin,deki/jira-plugin,kuldazbraslav/jira-plugin,deki/jira-plugin | yaml | ## Code Before:
language: java
sudo: false
jdk:
- oraclejdk7
after_success:
- mvn clean jacoco:report cobertura:cobertura coveralls:report
## Instruction:
Remove Jacoco target from Travis build
## Code After:
language: java
sudo: false
jdk:
- oraclejdk7
after_success:
- mvn clean cobertura:cobertura co... |
3d267edbe0a8d786a6fa1e42b7adb58882bb3666 | spec/predefined_queries_spec.rb | spec/predefined_queries_spec.rb | require "spec_helper"
require "sequel_mapper"
require "support/database_fixture"
RSpec.describe "Predefined queries" do
include SequelMapper::DatabaseFixture
subject(:users) { mapper_fixture }
# let(:user) {
# mapper.where(id: "user/1").first
# }
context "on the top level" do
before do
mapp... | require "spec_helper"
require "sequel_mapper"
require "support/database_fixture"
RSpec.describe "Predefined queries" do
include SequelMapper::DatabaseFixture
subject(:users) { mapper_fixture }
context "on the top level maper" do
context "query is defined with a block" do
before do
mapper_con... | Tidy up predefined query spec | Tidy up predefined query spec | Ruby | mit | bestie/sequel_mapper,bestie/terrestrial | ruby | ## Code Before:
require "spec_helper"
require "sequel_mapper"
require "support/database_fixture"
RSpec.describe "Predefined queries" do
include SequelMapper::DatabaseFixture
subject(:users) { mapper_fixture }
# let(:user) {
# mapper.where(id: "user/1").first
# }
context "on the top level" do
befo... |
d7ea417103bbe5a5c314b65a48dd823aca5df658 | webpipe/xrender_test.py | webpipe/xrender_test.py |
import unittest
import xrender # module under test
CSV = """\
name,age
<carol>,10
<dave>,20
"""
class FunctionsTest(unittest.TestCase):
def testRenderCsv(self):
html, orig = xrender.RenderCsv('dir/foo.csv', 'foo.csv', CSV)
print html
def testGuessFileType(self):
self.assertEqual('png', xrender.Gu... |
import unittest
import xrender # module under test
CSV = """\
name,age
<carol>,10
<dave>,20
"""
class FunctionsTest(unittest.TestCase):
def testGuessFileType(self):
self.assertEqual('png', xrender.GuessFileType('Rplot001.png'))
self.assertEqual('ansi', xrender.GuessFileType('typescript'))
def testCle... | Remove test moved to plugin. | Remove test moved to plugin.
| Python | bsd-3-clause | andychu/webpipe,andychu/webpipe,andychu/webpipe,andychu/webpipe,andychu/webpipe | python | ## Code Before:
import unittest
import xrender # module under test
CSV = """\
name,age
<carol>,10
<dave>,20
"""
class FunctionsTest(unittest.TestCase):
def testRenderCsv(self):
html, orig = xrender.RenderCsv('dir/foo.csv', 'foo.csv', CSV)
print html
def testGuessFileType(self):
self.assertEqual('... |
be9b96c3246139f5e9b582821b214d8007c8b3a4 | .travis.yml | .travis.yml | language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.6
- 2.2.3
before_install:
- openssl aes-256-cbc -k "$SECRET_STUFF" -in config/travis-ci4myself-1293b40af30d.p12.enc -out config/travis-ci4myself-1293b40af30d.p12 -d -a
- gem update --system
- gem install bundler
install: bundle install
script: bundle exec rake build
env:
glob... | sudo: false
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.6
- 2.2.3
before_install:
- openssl aes-256-cbc -k "$SECRET_STUFF" -in config/travis-ci4myself-1293b40af30d.p12.enc -out config/travis-ci4myself-1293b40af30d.p12 -d -a
- gem update --system
- gem install bundler
install: bundle install
script: bundle exec rake build... | Switch to container infrastructure on TravisCI | Switch to container infrastructure on TravisCI
| YAML | mit | tolingo/file-convert | yaml | ## Code Before:
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.6
- 2.2.3
before_install:
- openssl aes-256-cbc -k "$SECRET_STUFF" -in config/travis-ci4myself-1293b40af30d.p12.enc -out config/travis-ci4myself-1293b40af30d.p12 -d -a
- gem update --system
- gem install bundler
install: bundle install
script: bundle exec rake b... |
ac0f078535160127d621c02bde2e26dd670b7562 | src/store/application/definition.js | src/store/application/definition.js | /**
* Build the cartridge store definition.
* @return {object} - The cartridge component.
*/
module.exports = () => {
return ['summaryComponent', 'barContentLeftComponent', 'barContentRightComponent', 'cartridgeComponent', 'actions', 'mode', 'route', 'confirmConfig']
.reduce((def, node) => {
def[node] =... | /**
* Build the cartridge store definition.
* @return {object} - The cartridge component.
*/
module.exports = () => {
return ['summaryComponent', 'barContentLeftComponent', 'barContentRightComponent', 'cartridgeComponent', 'actions', 'mode', 'route', 'confirmConfig', 'headerSize']
.reduce((def, node) => {
... | Add 'headerSize' node to application store. | Add 'headerSize' node to application store. | JavaScript | mit | KleeGroup/focus-core | javascript | ## Code Before:
/**
* Build the cartridge store definition.
* @return {object} - The cartridge component.
*/
module.exports = () => {
return ['summaryComponent', 'barContentLeftComponent', 'barContentRightComponent', 'cartridgeComponent', 'actions', 'mode', 'route', 'confirmConfig']
.reduce((def, node) => {
... |
1421afae54ad6f4877121bae29f6528384f09a4b | public/index.html | public/index.html | <!doctype html>
<title>Passwords</title>
<style>
#passwords { font-family: monospace }
</style>
<div id="passwords"></div>
<script>
;(function() {
var pickOne = function(array) {
return array[Math.round(Math.random() * (array.length - 1))]
}
var password = new fu... | <!doctype html>
<title>Passwords</title>
<style>
body { margin: 0; padding: 1px; font-size: 16px }
.passwords { font-family: monospace }
.passwords div { color: #eee; background: #fff; float: left; margin: 1px;
padding: 3px }
.passwords div::selection { color: #fff; background: #eee }
</style>... | Make passwords harder to read | Make passwords harder to read
| HTML | mit | frosas/passwords,frosas/passwords | html | ## Code Before:
<!doctype html>
<title>Passwords</title>
<style>
#passwords { font-family: monospace }
</style>
<div id="passwords"></div>
<script>
;(function() {
var pickOne = function(array) {
return array[Math.round(Math.random() * (array.length - 1))]
}
var p... |
0e359034e3fd80d26493991f18bacf318f422df3 | index.js | index.js | /*
*/
var hash;
var exec = require('child_process').exec;
exports.version = function(major, minor, cb) {
if (hash) {
cb (null, hash);
} else {
var child = exec('git rev-parse --short HEAD', {cwd: __dirname} ,
function (error, stdout, stderr) {
hash = [major, minor, stdout.replace(/\s/g, '')]... | /*
*/
var githash;
var exec = require('child_process').exec;
/**
* Generate the formatted key given the major, minor and hash versions.
* @param {number|string} major
* @param {number|string} minor
* @param {string} githash
*
* @param {string} the version key
*/
var _makeKey = function (major, minor, githash... | Allow the caller to force the recomputation of the version | Allow the caller to force the recomputation of the version
The flag is added to permit users to always get the latest version.
This is important in scenarios where a server is monitoring a file
system and automatically reloading when the contents change. With
the force flag, the server can ensure it has the latest ver... | JavaScript | mit | Reregistered/version-git | javascript | ## Code Before:
/*
*/
var hash;
var exec = require('child_process').exec;
exports.version = function(major, minor, cb) {
if (hash) {
cb (null, hash);
} else {
var child = exec('git rev-parse --short HEAD', {cwd: __dirname} ,
function (error, stdout, stderr) {
hash = [major, minor, stdout.rep... |
a6bb511b62030ff59cad01997f2e1c12def692d8 | README.md | README.md | named-sprintf
=============
[](https://travis-ci.org/lightster/named-sprintf)
[](https://codeclimate.com/github/lightster/named-sprintf)
[](https://travis-ci.org/lightster/named-sprintf)
[](https://codeclimate.com/github/lightster/named-sprintf/coverage)
[... | Move code coverage bade before GPA badge | Move code coverage bade before GPA badge
Code coverage is more important in my current opinion, and
I would like it to stay consistent with @lightster/hodor
| Markdown | mit | lightster/named-sprintf | markdown | ## Code Before:
named-sprintf
=============
[](https://travis-ci.org/lightster/named-sprintf)
[](https://codeclimate.com/github/lightster/named-sprintf)
... |
f2d2367a27064517a6696f9140c78cd613b600b4 | lib/optical/spotter.rb | lib/optical/spotter.rb |
class Optical::Spotter
attr_accessor :error, :treatments, :controls, :base_dir
attr_writer :base_dir
def initialize(opts)
@treatments = opts[:treatments].sort
@controls = opts[:controls].sort
@base_dir = Dir.pwd
end
def eql?(b)
self.class == b.class &&
self.treatments == b.treatments &... |
class Optical::Spotter
attr_accessor :error, :treatments, :controls, :base_dir
attr_writer :base_dir
def initialize(opts)
@treatments = opts[:treatments].sort
@controls = opts[:controls].sort
@base_dir = Dir.pwd
end
def eql?(b)
self.class == b.class &&
self.treatments == b.treatments &... | Enable checking if spot already done | Enable checking if spot already done
| Ruby | bsd-3-clause | glennsb/OPtICAL,glennsb/OPtICAL,glennsb/OPtICAL,glennsb/OPtICAL | ruby | ## Code Before:
class Optical::Spotter
attr_accessor :error, :treatments, :controls, :base_dir
attr_writer :base_dir
def initialize(opts)
@treatments = opts[:treatments].sort
@controls = opts[:controls].sort
@base_dir = Dir.pwd
end
def eql?(b)
self.class == b.class &&
self.treatments =... |
dff7c97558a45c7191e17d6113db043e8082eecc | README.md | README.md | Lexington, KY traffic cameras, now in pocket size -- written in React Native.
## Getting Started
- Clone the repository
- [Install React Native](http://facebook.github.io/react-native/docs/getting-started.html#content)
#### iOS
1. `cd lexington-traffic-cameras/app`
2. `npm i`
3. `npm run ios`
#### Android
1. `cd lex... | Lexington, KY traffic cameras, now in pocket size -- written in React Native.
## Getting Started
- Clone the repository
- [Install React Native](http://facebook.github.io/react-native/docs/getting-started.html#content)
#### iOS
1. `cd lexington-traffic-cameras/app`
2. `npm i`
3. `react-native link`
4. `npm run ios`
... | Add more steps to readme | Add more steps to readme
| Markdown | mit | drewvolz/lexington-traffic-cameras,drewvolz/lexington-traffic-cameras,drewvolz/lexington-traffic-cameras | markdown | ## Code Before:
Lexington, KY traffic cameras, now in pocket size -- written in React Native.
## Getting Started
- Clone the repository
- [Install React Native](http://facebook.github.io/react-native/docs/getting-started.html#content)
#### iOS
1. `cd lexington-traffic-cameras/app`
2. `npm i`
3. `npm run ios`
#### An... |
76e4525e6f96012d3c737fc2254a573d88e672f4 | README.md | README.md |
Supports trading on the following exchanges:
- [Bitfinex](https://bitfinex.readme.io/v2/docs)
- [Bittrex](https://bittrex.com/home/api)
- [Poloniex](https://poloniex.com/support/api/)
- [QuadrigaCX](https://www.quadrigacx.com/api_info)
## Setup
1. Clone the repository.
2. Update the application.yml file
- Api-Key... |
Stock Exchange:
- [Questrade](http://www.questrade.com/api)
Cryptocurrency Exchanges:
- [Bitfinex](https://bitfinex.readme.io/v2/docs)
- [Bittrex](https://bittrex.com/home/api)
- [Poloniex](https://poloniex.com/support/api/)
- [QuadrigaCX](https://www.quadrigacx.com/api_info)
Other:
- [Alpha Vantage](https://www.alp... | Update readme with questrade + alpha vantage | Update readme with questrade + alpha vantage
| Markdown | mit | t73liu/crypto-trading,t73liu/crypto-trading | markdown | ## Code Before:
Supports trading on the following exchanges:
- [Bitfinex](https://bitfinex.readme.io/v2/docs)
- [Bittrex](https://bittrex.com/home/api)
- [Poloniex](https://poloniex.com/support/api/)
- [QuadrigaCX](https://www.quadrigacx.com/api_info)
## Setup
1. Clone the repository.
2. Update the application.yml f... |
d975af024e74ee9c9a4164489d4cef93970dfedd | nitro.sdk.test/helpers.js | nitro.sdk.test/helpers.js | import assert from 'assert'
import { promiseSerial } from '../nitro.sdk/helpers/promise.js'
describe('helpers', function() {
describe('promiseSerial', function() {
it('should run async functions in serial', function(done) {
let whatever = '0'
const funcs = [
() => {
return new Prom... | import assert from 'assert'
import { promiseSerial } from '../nitro.sdk/helpers/promise.js'
import { checkStatus } from '../nitro.sdk/helpers/fetch.js'
describe('helpers', () => {
describe('promiseSerial', () => {
it('should run async functions in serial', done => {
let whatever = '0'
const funcs = ... | Add Unit Tests for Check Status Helper | Add Unit Tests for Check Status Helper
| JavaScript | unknown | CaffeinatedCode/nitro,nitrotasks/nitro,nitrotasks/nitro | javascript | ## Code Before:
import assert from 'assert'
import { promiseSerial } from '../nitro.sdk/helpers/promise.js'
describe('helpers', function() {
describe('promiseSerial', function() {
it('should run async functions in serial', function(done) {
let whatever = '0'
const funcs = [
() => {
... |
6c5520045a884f4430945d34faee9c64db1c7e0b | fluent-gen/generate.sh | fluent-gen/generate.sh |
rm -r ../fluent/src/main/java/io
mvn compile
mv target/generated-sources/annotations/io ../fluent/src/main/java/io |
rm -r ../fluent/src/main/java/io
mvn clean
mvn compile
mv target/generated-sources/annotations/io ../fluent/src/main/java/io
| Improve fluent generation script to call clean first. | Improve fluent generation script to call clean first.
| Shell | apache-2.0 | kubernetes-client/java,kubernetes-client/java | shell | ## Code Before:
rm -r ../fluent/src/main/java/io
mvn compile
mv target/generated-sources/annotations/io ../fluent/src/main/java/io
## Instruction:
Improve fluent generation script to call clean first.
## Code After:
rm -r ../fluent/src/main/java/io
mvn clean
mvn compile
mv target/generated-sources/annotations/io ../... |
85476dde31fc970ebd45969fade0442ecbbc4801 | assets/javascripts/my.js | assets/javascripts/my.js | // Заменяем MSN_ID на текстовые описания.
function set_userlist_msn(){
$('tr td:nth-child(2)', '.uTable').each(function(i){
var $this = $(this);
var h = $this.html();
if (~~h)
$this.addClass('fraction-name' + h).html(' ');
});
}
$(function () {
// Ссылки на профили... | // Заменяем MSN_ID на текстовые описания.
function set_userlist_msn(){
$('tr td:nth-child(2)', '.uTable').each(function(i){
var $this = $(this);
var h = $this.html();
if (~~h)
$this.addClass('fraction-name' + h).html(' ');
});
}
$(function () {
// Ссылки на профили... | Add forgotten JS for VK like button. | Add forgotten JS for VK like button.
| JavaScript | mit | nevendaar/nev,nevendaar/nev,nevendaar/nev | javascript | ## Code Before:
// Заменяем MSN_ID на текстовые описания.
function set_userlist_msn(){
$('tr td:nth-child(2)', '.uTable').each(function(i){
var $this = $(this);
var h = $this.html();
if (~~h)
$this.addClass('fraction-name' + h).html(' ');
});
}
$(function () {
// С... |
591d6e0da67b27c811ee0a4c5ddd1cc608cee152 | README.md | README.md |
Benchmark the execution time of an arbitrary block of code. Specify concurrent
threads and number of execution loops.
## Installation
Add this line to your application's Gemfile:
gem 'benchmark_time'
And then execute:
$ bundle
Or install it yourself as:
$ gem install benchmark_time
## Usage
re... |
Benchmark the execution time of an arbitrary block of code. Specify concurrent
threads and number of execution loops. The main use-case of this code vs. Benchmark
is to benchmark with concurrency.
## Installation
Add this line to your application's Gemfile:
gem 'benchmark_time'
And then execute:
$ bundle
... | Add primary use case to readme | Add primary use case to readme
| Markdown | mit | ericbeland/benchmark_time | markdown | ## Code Before:
Benchmark the execution time of an arbitrary block of code. Specify concurrent
threads and number of execution loops.
## Installation
Add this line to your application's Gemfile:
gem 'benchmark_time'
And then execute:
$ bundle
Or install it yourself as:
$ gem install benchmark_time
... |
4474a49c560cf316500aa65bb64b1ddba3db6de5 | languages/RubyTricks.md | languages/RubyTricks.md | - Zip method: combines collections. Ex:
```ruby
a = [1, 2, 3]
b = [2, 3, 4]
a.zip(b)
=> [[1, 2], [2, 3], [3, 4]]
```
Example of triple comparisons utilizing .zip method:
```ruby
#The first line contains space-separated integers, , , and , describing the respective values in triplet .
#The second line conta... | - reverse_each:
Builds a temporary array and traverses that array in reverse order.
If no block is given, an enumerator is returned instead.
```ruby
(1..3).reverse_each { |v| p v }
#produces:
3
2
1
```
- Zip method: combines collections. Ex:
```ruby
a = [1, 2, 3]
b = [2, 3, 4]
a.zip(b)
=> [[1, 2], [2, 3],... | Add reverse_each method to notes. | Add reverse_each method to notes.
| Markdown | mit | annnash88/algorithms,annnash88/algorithms | markdown | ## Code Before:
- Zip method: combines collections. Ex:
```ruby
a = [1, 2, 3]
b = [2, 3, 4]
a.zip(b)
=> [[1, 2], [2, 3], [3, 4]]
```
Example of triple comparisons utilizing .zip method:
```ruby
#The first line contains space-separated integers, , , and , describing the respective values in triplet .
#The s... |
d34df0ab8735e212eadc8001cfefad981f633cdf | executive-committee.md | executive-committee.md | ---
permalink: /northeast/what-we-do/executive-committee/
layout: default
title: Executive Committee
---
Here's what the Executive Committee does:
lorem ipsum etc.
| ---
permalink: /northeast/what-we-do/executive-committee/
layout: default
title: Executive Committee
---
The Northeast Association Executive Committee, which the "Bylaws" identify as the "Board," is the governing body of the Association, tending to the work of the Association between times the members gather in meetin... | Insert content provided by Jane | Insert content provided by Jane | Markdown | mit | shirby/neaweb | markdown | ## Code Before:
---
permalink: /northeast/what-we-do/executive-committee/
layout: default
title: Executive Committee
---
Here's what the Executive Committee does:
lorem ipsum etc.
## Instruction:
Insert content provided by Jane
## Code After:
---
permalink: /northeast/what-we-do/executive-committee/
layout: default
... |
eae3b79c09bbb9d44958789b337e0e22811952ec | src/main/java/com/insane/itsrainingfood/FoodEventHandler.java | src/main/java/com/insane/itsrainingfood/FoodEventHandler.java | package com.insane.itsrainingfood;
import net.minecraft.entity.player.EntityPlayer;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.TickEvent.PlayerTickEvent;
public class FoodEventHandler {
public static int ticksSinceLast = 0;
@SubscribeEvent
public void onPlayerTickE... | package com.insane.itsrainingfood;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.MathHelper;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.TickEvent.PlayerTickEvent;
public class FoodEventHandler {
public static int ticksSinceLast = 0;
@Sub... | Change from cast to MathHelper | Change from cast to MathHelper
| Java | mit | MikeLydeamore/ItsRainingFood | java | ## Code Before:
package com.insane.itsrainingfood;
import net.minecraft.entity.player.EntityPlayer;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.TickEvent.PlayerTickEvent;
public class FoodEventHandler {
public static int ticksSinceLast = 0;
@SubscribeEvent
public vo... |
72e4a0d15d14a685c72b641b020a5d1605b2e59c | app/controllers/pages_controller.rb | app/controllers/pages_controller.rb | class PagesController < Comfy::Admin::Cms::PagesController
before_action :build_file, only: [:new, :edit]
before_action :set_categories, only: [:new, :edit]
before_action :set_pages, only: :index
before_action :set_activity_log, only: [:new, :edit]
def save_page
PageRegister.new(@page, params: p... | class PagesController < Comfy::Admin::Cms::PagesController
before_action :build_file, only: [:new, :edit]
before_action :set_categories, only: [:new, :edit]
before_action :set_pages, only: :index
before_action :set_activity_log, only: [:new, :edit]
def save_page
PageRegister.new(@page, params: p... | Move code from comfortable mexican sofa to our cms application | Move code from comfortable mexican sofa to our cms application
| Ruby | mit | moneyadviceservice/cms,moneyadviceservice/cms,moneyadviceservice/cms,moneyadviceservice/cms | ruby | ## Code Before:
class PagesController < Comfy::Admin::Cms::PagesController
before_action :build_file, only: [:new, :edit]
before_action :set_categories, only: [:new, :edit]
before_action :set_pages, only: :index
before_action :set_activity_log, only: [:new, :edit]
def save_page
PageRegister.new(... |
00a4c7388e25d42fc87b1a5e626c9659146cad82 | README.md | README.md |
This repository has the basic setup for dploying a static site to heroku.
## Usage
For the simplest setup, you will need a Heroku account and Dropbox. To deploy your
static site, simply follow the instructions below:
- Login to Heroku and create a new app.
- Connect to Dropbox. This will create a new folder under `... |
This repository has the basic setup for dploying a static site to heroku.
## Usage
For the simplest setup, you will need accounts in [Heroku](https://www.heroku.com/) and [Dropbox](https://www.dropbox.com/). To deploy your
static site, simply follow the instructions below:
- Login to Heroku and create a new app.
- ... | Add links to Heroku and Dropbox | Add links to Heroku and Dropbox | Markdown | mit | javiercejudo/heroku-static-setup | markdown | ## Code Before:
This repository has the basic setup for dploying a static site to heroku.
## Usage
For the simplest setup, you will need a Heroku account and Dropbox. To deploy your
static site, simply follow the instructions below:
- Login to Heroku and create a new app.
- Connect to Dropbox. This will create a ne... |
5444e755e819004b4da6560d5a6caad2d9993945 | klustakwik2/scripts.py | klustakwik2/scripts.py | '''
Utilities for scripts
'''
import sys
__all__ = ['parse_args']
def parse_args(num_args, allowed_params, msg, string_args=set()):
msg += '\nAllowed arguments and default values:\n'
for k, v in allowed_params.iteritems():
msg += '\n %s = %s' % (k, v)
if len(sys.argv)<=num_args:
print ... | '''
Utilities for scripts
'''
import sys
__all__ = ['parse_args']
def parse_args(num_args, allowed_params, msg, string_args=set()):
msg += '\nAllowed arguments and default values:\n'
for k, v in allowed_params.iteritems():
msg += '\n %s = %s' % (k, v)
if len(sys.argv)<=num_args:
print ... | Handle true/false as well as True/False arguments | Handle true/false as well as True/False arguments | Python | bsd-3-clause | kwikteam/klustakwik2,benvermaercke/klustakwik2 | python | ## Code Before:
'''
Utilities for scripts
'''
import sys
__all__ = ['parse_args']
def parse_args(num_args, allowed_params, msg, string_args=set()):
msg += '\nAllowed arguments and default values:\n'
for k, v in allowed_params.iteritems():
msg += '\n %s = %s' % (k, v)
if len(sys.argv)<=num_args... |
fa0fe8246566fbf4ad2cef5d92c6cd79353386f3 | project.clj | project.clj | (defproject neko "3.0.2-SNAPSHOT"
:description "Neko is a toolkit designed to make Android development using Clojure easier and more fun."
:url "https://github.com/alexander-yakushev/neko"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.... | (defproject neko "3.0.2-SNAPSHOT"
:description "Neko is a toolkit designed to make Android development using Clojure easier and more fun."
:url "https://github.com/clojure-android/neko"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clo... | Update GitHub path to clojure-android | Update GitHub path to clojure-android
| Clojure | epl-1.0 | clojure-android/neko | clojure | ## Code Before:
(defproject neko "3.0.2-SNAPSHOT"
:description "Neko is a toolkit designed to make Android development using Clojure easier and more fun."
:url "https://github.com/alexander-yakushev/neko"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dep... |
7484a3027d4021f46520aeac04e83a50b850a400 | _data/components/percentInput.yml | _data/components/percentInput.yml | directive : "o-percent-input"
inheritedAttributes: [{
component: "FormDataComponent",
path: "components/input/overview/api",
attributes: ["attr", "label", "tooltip", "tooltip-position", "tooltip-show-delay", "automatic-binding", "automatic-registering", "data", "enabled", "required", "clear-button", "sql-type", ... | directive : "o-percent-input"
attributes: [{
name: "value-base",
type: "1 | 100",
default: "1",
required: "",
description: "Indicates whether de numeral system of the value received is 1 or 100"
}]
inheritedAttributes: [{
component: "FormDataComponent",
path: "components/input/overview/api",
attribute... | Add `value-base` attribute to `o-percent-input` docs | Add `value-base` attribute to `o-percent-input` docs
| YAML | mit | OntimizeWeb/docs,OntimizeWeb/docs,OntimizeWeb/docs,OntimizeWeb/docs | yaml | ## Code Before:
directive : "o-percent-input"
inheritedAttributes: [{
component: "FormDataComponent",
path: "components/input/overview/api",
attributes: ["attr", "label", "tooltip", "tooltip-position", "tooltip-show-delay", "automatic-binding", "automatic-registering", "data", "enabled", "required", "clear-butto... |
a307f29a3e079d3f1af2cec06419f74edad2560e | Tests/TestTimer.php | Tests/TestTimer.php | <?php
namespace Pinq\Tests;
use Exception;
use PHPUnit_Framework_Test;
class Timer implements \PHPUnit_Framework_TestListener
{
private static $log = [];
public static function getLongRunningTests($amount)
{
arsort(Timer::$log);
return array_slice(Timer::$log, 0, $amount);
}
pu... | <?php
namespace Pinq\Tests;
use Exception;
use PHPUnit_Framework_Test;
class Timer implements \PHPUnit_Framework_TestListener
{
private static $log = [];
public static function getLongRunningTests($amount)
{
arsort(Timer::$log);
return array_slice(Timer::$log, 0, $amount);
}
pu... | Add missing test listener method | Add missing test listener method
| PHP | mit | TimeToogo/Pinq | php | ## Code Before:
<?php
namespace Pinq\Tests;
use Exception;
use PHPUnit_Framework_Test;
class Timer implements \PHPUnit_Framework_TestListener
{
private static $log = [];
public static function getLongRunningTests($amount)
{
arsort(Timer::$log);
return array_slice(Timer::$log, 0, $amount... |
0496dcba2fe7e1813e0a8cc7b93236df6ae5b21d | templates/base/menu.html | templates/base/menu.html | {% load menu_tags %}
{% if children %}
<ul id="menubar">
{% for child in children %}
<li class="{% if child.selected %}selected{% endif %}{% if child.ancestor %}ancestor{% endif %}{% if child.sibling %}sibling{% endif %}{% if child.descendant %}descendant{% endif %}">
<a href="{{ child.attr.redirect_url... | {% load menu_tags %}
{% load i18n cms_tags %}
{% if children %}
<ul id="menubar">
{% for child in children %}
<li class="{% if child.selected %}selected{% endif %}{% if child.ancestor %}ancestor{% endif %}{% if child.sibling %}sibling{% endif %}{% if child.descendant %}descendant{% endif %}">
<a href="{... | Add libraries for translation. Add Your energy profile button in case of authenticated user. | Add libraries for translation. Add Your energy profile button in case of authenticated user.
| HTML | agpl-3.0 | chispita/epiwork,chispita/epiwork,chispita/epiwork,chispita/epiwork,chispita/epiwork,chispita/epiwork,chispita/epiwork | html | ## Code Before:
{% load menu_tags %}
{% if children %}
<ul id="menubar">
{% for child in children %}
<li class="{% if child.selected %}selected{% endif %}{% if child.ancestor %}ancestor{% endif %}{% if child.sibling %}sibling{% endif %}{% if child.descendant %}descendant{% endif %}">
<a href="{{ child.a... |
b4b7185a054d07097e743664abda44e121674b8b | talks_keeper/forms.py | talks_keeper/forms.py | from django import forms
from .models import Label, Talk
class TalkForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(TalkForm, self).__init__(*args, **kwargs)
labels = Label.objects.all()
for label_ in labels:
self.fields.update({
'label_{}'.fo... | from django import forms
from .models import Label, Talk
class TalkForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(TalkForm, self).__init__(*args, **kwargs)
instance = kwargs['instance']
labels = Label.objects.all()
for label_ in labels:
if instance ... | Update TalkForm to use checked labels | Update TalkForm to use checked labels
| Python | mit | samitnuk/talks_keeper,samitnuk/talks_keeper,samitnuk/talks_keeper | python | ## Code Before:
from django import forms
from .models import Label, Talk
class TalkForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(TalkForm, self).__init__(*args, **kwargs)
labels = Label.objects.all()
for label_ in labels:
self.fields.update({
... |
edfb53d9c307f2dd213a075f96a0e76647591234 | buildspec.yml | buildspec.yml | version: 0.2
env:
variables:
PRX_ECR_CONFIG_PARAMETERS: PublishEcrImageTag
parameter-store:
CODECOV_TOKEN: '/prx/test/publish.prx.org/CODECOV_TOKEN'
DOCKERHUB_USERNAME: '/prx/DOCKERHUB_USERNAME'
DOCKERHUB_PASSWORD: '/prx/DOCKERHUB_PASSWORD'
exported-variables:
- PRX_ECR_CONFIG_PARAMETERS
-... | version: 0.2
env:
variables:
PRX_ECR_CONFIG_PARAMETERS: PublishEcrImageTag
parameter-store:
CODECOV_TOKEN: '/prx/test/publish.prx.org/CODECOV_TOKEN'
DOCKERHUB_USERNAME: '/prx/DOCKERHUB_USERNAME'
DOCKERHUB_PASSWORD: '/prx/DOCKERHUB_PASSWORD'
exported-variables:
- PRX_ECR_CONFIG_PARAMETERS
-... | Remove Docker runtime version selection | Remove Docker runtime version selection
| YAML | agpl-3.0 | PRX/publish.prx.org,PRX/publish.prx.org,PRX/publish.prx.org,PRX/publish.prx.org | yaml | ## Code Before:
version: 0.2
env:
variables:
PRX_ECR_CONFIG_PARAMETERS: PublishEcrImageTag
parameter-store:
CODECOV_TOKEN: '/prx/test/publish.prx.org/CODECOV_TOKEN'
DOCKERHUB_USERNAME: '/prx/DOCKERHUB_USERNAME'
DOCKERHUB_PASSWORD: '/prx/DOCKERHUB_PASSWORD'
exported-variables:
- PRX_ECR_CONFIG_... |
d7c1c4b4a7eb4811ca28d4ba26ba423c99914372 | config/initializers/client_side_validations.rb | config/initializers/client_side_validations.rb |
ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
unless html_tag =~ /^<label/
%{<div class="field_with_errors">#{html_tag}<label for="#{instance.send(:tag_id)}" class="message">#{instance.error_message.first}</label></div>}.html_safe
else
%{<div class="field_with_errors">#{html_tag}</di... |
ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
unless html_tag =~ /^<label/
%{<div class="field_with_errors">#{html_tag}<label for="#{instance.send(:tag_id)}" class="message">#{instance.error_message.first}</label></div>}.html_safe
else
%{<div class="field_with_errors">#{html_tag}</di... | Customize client_side_validation gem by changed | Customize client_side_validation gem by changed
‘validation_hash[attr] => validation_hash[attr.to_sym]’
<< due to value of option_hash return 'Symbol', meanwhile value of validation_hash return 'String'>> | Ruby | mit | scott/helpy__helpdesk_knowledgebase,scott/helpy__helpdesk_knowledgebase,helpyio/helpy,helpyio/helpy,scott/helpy__helpdesk_knowledgebase,helpyio/helpy,helpyio/helpy | ruby | ## Code Before:
ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
unless html_tag =~ /^<label/
%{<div class="field_with_errors">#{html_tag}<label for="#{instance.send(:tag_id)}" class="message">#{instance.error_message.first}</label></div>}.html_safe
else
%{<div class="field_with_errors"... |
19a0c0e029e0714a82629353b30c5b868fd88b3e | .travis.yml | .travis.yml | language: python
python:
- "2.7"
install: "pip install -r requirements.txt && pip install -r test-requirements.txt"
# command to run tests
script: nosetests -w ./tests/unit
notifications:
email: false
| language: python
python:
- "2.7"
services:
- couchdb
install: "pip install -r requirements.txt && pip install -r test-requirements.txt"
# command to run tests
script: nosetests -w ./tests/unit
notifications:
email: false
| Add couchdb service to Travis CI | Add couchdb service to Travis CI
| YAML | apache-2.0 | cloudant/python-cloudant | yaml | ## Code Before:
language: python
python:
- "2.7"
install: "pip install -r requirements.txt && pip install -r test-requirements.txt"
# command to run tests
script: nosetests -w ./tests/unit
notifications:
email: false
## Instruction:
Add couchdb service to Travis CI
## Code After:
language: python
python:
- ... |
d3f37930b2f085dff320e4a09cc6d536096a356d | src/discoveryTool/html/DiscoveryTool.html | src/discoveryTool/html/DiscoveryTool.html | <form id="options" action="" class="flc-uiOptions-fatPanel-tabs fl-uiOptions">
<div class="flc-uiOptions-controls">
<ul class="fl-uiOptions-panels">
<li class="fl-uiOptions-panel"><div class="fl-discoveryTool-try">Try<br />something<br />new <span class="fl-icon-arrow" aria-label="Arrow" role="p... | <form id="options" action="" class="flc-uiOptions-fatPanel-tabs fl-uiOptions">
<div class="flc-uiOptions-controls">
<ul class="fl-uiOptions-panels">
<li class="fl-uiOptions-panel"><div class="fl-discoveryTool-try">Try something new <span class="fl-icon-arrow" aria-label="Arrow" role="presentatio... | Remove the <br/> tags from the 'try something new,' in favour of styling instead (still to come). | GPII-125: Remove the <br/> tags from the 'try something new,' in favour of styling instead (still to come).
| HTML | bsd-3-clause | GPII/prefsEditors,GPII/prefsEditors,kaspermarkus/prefsEditors | html | ## Code Before:
<form id="options" action="" class="flc-uiOptions-fatPanel-tabs fl-uiOptions">
<div class="flc-uiOptions-controls">
<ul class="fl-uiOptions-panels">
<li class="fl-uiOptions-panel"><div class="fl-discoveryTool-try">Try<br />something<br />new <span class="fl-icon-arrow" aria-label... |
8cd14819f50028094d0a2ac695fe7ed98e236379 | public/indivisible/app/referrers.yaml | public/indivisible/app/referrers.yaml | indiv:
fullname: The Indivisible
opt in checkbox: hidden
email field: visible
dp:
fullname: Demand Progress
opt in checkbox: visible
email field: hidden | indiv:
fullname: The Indivisible
opt in controls: hidden
email field: visible
dp:
fullname: Demand Progress
opt in controls: visible
email field: hidden | Add the actual YAML file | Add the actual YAML file
A sample for now.
| YAML | agpl-3.0 | agustinrhcp/advocacycommons,matinieves/advocacycommons,advocacycommons/advocacycommons,matinieves/advocacycommons,matinieves/advocacycommons,agustinrhcp/advocacycommons,agustinrhcp/advocacycommons,advocacycommons/advocacycommons,advocacycommons/advocacycommons | yaml | ## Code Before:
indiv:
fullname: The Indivisible
opt in checkbox: hidden
email field: visible
dp:
fullname: Demand Progress
opt in checkbox: visible
email field: hidden
## Instruction:
Add the actual YAML file
A sample for now.
## Code After:
indiv:
fullname: The Indivisible
opt in controls: hidden
email fi... |
734d5c5f868e4478613b45b2ce8880cea69bf5c5 | src/Views/tickets/partials/modal_attachment_edit.blade.php | src/Views/tickets/partials/modal_attachment_edit.blade.php | @section('content')
<div class="modal fade" id="modal-attachment-edit" tabindex="-1" role="dialog" aria-labelledby="modal-attachment-edit-Label">
<div class="modal-dialog model-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">{{ trans(... | @section('content')
<div class="modal fade" id="modal-attachment-edit" tabindex="-1" role="dialog" aria-labelledby="modal-attachment-edit-Label">
<div class="modal-dialog model-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">{{ trans(... | Edit ticket attachment and show changes before update | Bug: Edit ticket attachment and show changes before update
| PHP | mit | panichelpdesk/panichd,panichelpdesk/panichd | php | ## Code Before:
@section('content')
<div class="modal fade" id="modal-attachment-edit" tabindex="-1" role="dialog" aria-labelledby="modal-attachment-edit-Label">
<div class="modal-dialog model-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-... |
60e3df8519843e0b21806b7b585eb99424bea5ca | environment/stage4/hcache.lisp | environment/stage4/hcache.lisp | ;;;;; tré – Copyright (c) 2010,2012 Sven Michael Klose <pixel@copei.de>
(defun %hcache-remove (plc vals)
(& plc vals
(| (not .vals)
(%hcache-remove plc .vals))
(| (hremove plc vals.)
t)))
(defun hcache-remove (plc &rest vals)
(%hcache-remove plc vals))
(defun %hcache (plc vals)
(& plc vals
(| (... | ;;;;; tré – Copyright (c) 2010,2012–2013 Sven Michael Klose <pixel@copei.de>
(defun hcache-remove (plc &rest vals)
(& plc vals
(| (not .vals)
(apply #'hcache-remove plc .vals))
(| (hremove plc vals.)
t)))
(defun hcache (plc &rest vals)
(& plc vals
(| (& (not .vals)
(href plc vals.))
(appl... | Return NIL if place is NIL. | Return NIL if place is NIL.
| Common Lisp | mit | SvenMichaelKlose/tre,SvenMichaelKlose/tre,SvenMichaelKlose/tre | common-lisp | ## Code Before:
;;;;; tré – Copyright (c) 2010,2012 Sven Michael Klose <pixel@copei.de>
(defun %hcache-remove (plc vals)
(& plc vals
(| (not .vals)
(%hcache-remove plc .vals))
(| (hremove plc vals.)
t)))
(defun hcache-remove (plc &rest vals)
(%hcache-remove plc vals))
(defun %hcache (plc vals)
(& pl... |
702566fd0d9ee0550ef36fca73070f48d075a572 | .travis.yml | .travis.yml | sudo: false
language: python
python:
- '2.7'
install:
- pip uninstall -y pytest py
- pip install .
script: python setup.py test
| sudo: false
language: python
python:
- '2.7'
install:
- pip uninstall -y pytest py
- pip install .
- pip install python-coveralls
script:
- python setup.py test --addopts '--cov=wamopacker'
after_success:
- coveralls
| Add coverage generation to Travis. | Add coverage generation to Travis.
| YAML | mit | wamonite/packermate | yaml | ## Code Before:
sudo: false
language: python
python:
- '2.7'
install:
- pip uninstall -y pytest py
- pip install .
script: python setup.py test
## Instruction:
Add coverage generation to Travis.
## Code After:
sudo: false
language: python
python:
- '2.7'
install:
- pip uninstall -y pytest py
- pip install .
- pip ins... |
2119839281d3e1ed781062929641cbe6566401e9 | README.md | README.md | SQittle - SQL Engine in JavaScript
==================================
This is a tiny SQL engine that has no practical purpose. It executes a real
subset of the SQL standard. The database is stored in memory only. It has a
user front-end that runs in a web browser. The front-end resembles a console
interface that you w... | SQittle - SQL Engine in JavaScript
==================================
SQittle is a tiny SQL engine with no practical purpose. It executes a real
subset of the SQL standard. The database is stored in memory only. The project
includes a command-style user interface that runs in a web browser. The
UI resembles a console ... | Add demo URL. Touch-up doc text | Add demo URL. Touch-up doc text
| Markdown | mit | moxley/sqittle | markdown | ## Code Before:
SQittle - SQL Engine in JavaScript
==================================
This is a tiny SQL engine that has no practical purpose. It executes a real
subset of the SQL standard. The database is stored in memory only. It has a
user front-end that runs in a web browser. The front-end resembles a console
inte... |
dcc1965c3681e7ea5456d0655f4c23baf44e7be6 | app/models/embed_stat.rb | app/models/embed_stat.rb | class EmbedStat < ActiveRecord::Base
belongs_to :dataset
delegate :title, :to => :dataset, :prefix => true, :allow_nil => true
attr_accessible :referer
validates :referer, url: true
validates_uniqueness_of :referer, :scope => :dataset_id
before_save :extract_domain
def self.csv
CSV.generate(row_s... | class EmbedStat < ActiveRecord::Base
belongs_to :dataset
delegate :title, :to => :dataset, :prefix => true, :allow_nil => true
attr_accessible :referer
validates :referer, url: true
validates_uniqueness_of :referer, :scope => :dataset_id
before_save :extract_domain
def self.csv
CSV.generate(row_s... | Improve sql query for generating report | Improve sql query for generating report | Ruby | mit | Motejl/open-data-certificate,theodi/open-data-certificate,zoul/open-data-certificate,ahmadassaf/open-data-certificate,zoul/open-data-certificate,ahmadassaf/open-data-certificate,zoul/open-data-certificate,istvan-antal/open-data-certificate,ahmadassaf/open-data-certificate,istvan-antal/open-data-certificate,theodi/open-... | ruby | ## Code Before:
class EmbedStat < ActiveRecord::Base
belongs_to :dataset
delegate :title, :to => :dataset, :prefix => true, :allow_nil => true
attr_accessible :referer
validates :referer, url: true
validates_uniqueness_of :referer, :scope => :dataset_id
before_save :extract_domain
def self.csv
CS... |
f4deb2d3d2f8cfb31c20c83cdcfec96ea0fa6c8f | Sources/App/main.swift | Sources/App/main.swift | import Vapor
import Fluent
import Sessions
import SteamPress
import Foundation
import VaporPostgreSQL
let drop = Droplet()
try drop.addProvider(VaporPostgreSQL.Provider.self)
let memory = MemorySessions()
let sessions = SessionsMiddleware(sessions: memory)
drop.middleware.append(sessions)
let steamPress = SteamPress... | import Vapor
import Fluent
import Sessions
import SteamPress
import Foundation
import VaporPostgreSQL
let drop = Droplet()
try drop.addProvider(VaporPostgreSQL.Provider.self)
let memory = MemorySessions()
let sessions = SessionsMiddleware(sessions: memory)
drop.middleware.append(sessions)
let steamPress = SteamPress... | Revert "Attempting to get logs from Heroku" | Revert "Attempting to get logs from Heroku"
This reverts commit 49cc50c5ce21b6079406dea7123f9632a8ac1eb4.
| Swift | mit | brokenhandsio/SteamPressExample,brokenhandsio/SteamPressExample | swift | ## Code Before:
import Vapor
import Fluent
import Sessions
import SteamPress
import Foundation
import VaporPostgreSQL
let drop = Droplet()
try drop.addProvider(VaporPostgreSQL.Provider.self)
let memory = MemorySessions()
let sessions = SessionsMiddleware(sessions: memory)
drop.middleware.append(sessions)
let steamPr... |
5c95496dd5cfafb13d5da86f3d3befcaa06ea5ef | sample-oidc/application.yml | sample-oidc/application.yml | mappings:
oidc-ms: http://localhost:8080
sample-ms: http://localhost:8900
authn-ms: http://localhost:8281
authz-ms: http://localhost:8282
swagger-ms: http://localhost:8283
gateway-ms: http://localhost:8910
http:
port: 8080
oidc:
redirect_uri: ${mappings.oidc-ms}/oidc/cb
authorization:
endpoint: ${... | mappings:
oidc-ms: http://localhost:8080
sample-ms: http://localhost:8900
authn-ms: http://localhost:8281
authz-ms: http://localhost:8282
swagger-ms: http://localhost:8283
gateway-ms: http://localhost:8910
http:
port: 8080
oidc:
redirect_uri: ${mappings.oidc-ms}/oidc/cb
authorization:
endpoint: ${... | Fix the redirect_uri to point to the prod one | Fix the redirect_uri to point to the prod one
| YAML | epl-1.0 | trajano/app-ms,trajano/app-ms,trajano/app-ms | yaml | ## Code Before:
mappings:
oidc-ms: http://localhost:8080
sample-ms: http://localhost:8900
authn-ms: http://localhost:8281
authz-ms: http://localhost:8282
swagger-ms: http://localhost:8283
gateway-ms: http://localhost:8910
http:
port: 8080
oidc:
redirect_uri: ${mappings.oidc-ms}/oidc/cb
authorization... |
f1e89d97b79a4e179b32f9f3020ede3084e4fd43 | iExtra/Notifications/RemoteNotificationServiceDefault.swift | iExtra/Notifications/RemoteNotificationServiceDefault.swift | //
// RemoteNotificationServiceDefault.swift
// iExtra
//
// Created by Daniel Saidi on 2015-10-24.
// Copyright © 2018 Daniel Saidi. All rights reserved.
//
import UserNotifications
open class RemoteNotificationServiceDefault: NSObject, RemoteNotificationService {
open func alert(notification: [AnyHasha... | //
// RemoteNotificationServiceDefault.swift
// iExtra
//
// Created by Daniel Saidi on 2015-10-24.
// Copyright © 2018 Daniel Saidi. All rights reserved.
//
import UserNotifications
open class RemoteNotificationServiceDefault: NSObject, RemoteNotificationService {
open func alert(notification: [AnyHasha... | Add fatal error for missing notification override | Add fatal error for missing notification override
| Swift | mit | danielsaidi/iExtra,danielsaidi/iExtra,danielsaidi/iExtra | swift | ## Code Before:
//
// RemoteNotificationServiceDefault.swift
// iExtra
//
// Created by Daniel Saidi on 2015-10-24.
// Copyright © 2018 Daniel Saidi. All rights reserved.
//
import UserNotifications
open class RemoteNotificationServiceDefault: NSObject, RemoteNotificationService {
open func alert(notific... |
705ddfba46334f5bc00387281bd9360ca49afa04 | setup.py | setup.py | import sys
cmdclass = {}
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
else:
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def initialize_options(self):
TestCommand.initialize_options(self)
s... | import sys
cmdclass = {}
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
else:
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def initialize_options(self):
TestCommand.initialize_options(self)
s... | Remove requests dependency upper version constraint | Remove requests dependency upper version constraint
Removes the undocumented and outdated upper version constraint
for the requests dependency.
| Python | mit | AntagonistHQ/openprovider.py | python | ## Code Before:
import sys
cmdclass = {}
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
else:
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def initialize_options(self):
TestCommand.initialize_options(sel... |
edd2f73b7aac4c02ef2a70e9382b90b4eba06257 | Tests/Mock/FieldSetStub.php | Tests/Mock/FieldSetStub.php | <?php
declare(strict_types=1);
/*
* This file is part of the RollerworksSearch package.
*
* (c) Sebastiaan Stok <s.stok@rollerscapes.net>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Rollerworks\Component\Search\ApiPlatform\Tests\... | <?php
declare(strict_types=1);
/*
* This file is part of the RollerworksSearch package.
*
* (c) Sebastiaan Stok <s.stok@rollerscapes.net>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Rollerworks\Component\Search\ApiPlatform\Tests\... | Add support for private fields | Add support for private fields
A field name accepts a single underscore prefix to indicate it’s private.
Private fields can only be used in a PrimaryCondition and are simple ignored for user-input.
| PHP | mit | rollerworks/search-api-platform | php | ## Code Before:
<?php
declare(strict_types=1);
/*
* This file is part of the RollerworksSearch package.
*
* (c) Sebastiaan Stok <s.stok@rollerscapes.net>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Rollerworks\Component\Search\Ap... |
7a6e6f1a36680bf17e8c65fb76dc2460c0dfa757 | game/scss/tiles/_tile.scss | game/scss/tiles/_tile.scss | .tile {
@extend .column-2;
display: flex;
flex: 1;
position: relative;
width: 100%;
padding: 12px 10px 10px;
background: $background-color;
&:first-child {
padding-bottom: 5px;
}
.action-container--left & {
padding-right: 5px;
}
.action-container--right & {
padding-left: 5px;
}
}
... | .tile {
@extend .column-2;
display: flex;
flex: 1;
position: relative;
width: 100%;
padding: 12px 10px 10px;
background: $background-color;
&:first-child {
padding-bottom: 5px;
}
.action-container--left & {
padding-right: 5px;
}
.action-container--right & {
padding-left: 5px;
}
}
... | Make tile outline more windowsee | Make tile outline more windowsee
| SCSS | mit | GomaGames/BizDev-Meeting,GomaGames/BizDev-Meeting | scss | ## Code Before:
.tile {
@extend .column-2;
display: flex;
flex: 1;
position: relative;
width: 100%;
padding: 12px 10px 10px;
background: $background-color;
&:first-child {
padding-bottom: 5px;
}
.action-container--left & {
padding-right: 5px;
}
.action-container--right & {
padding-le... |
1dc7383a2f51c225f0138792eff6d35dc35dac8c | infinite_memcached/tests.py | infinite_memcached/tests.py | import time
from django.test import TestCase
from infinite_memcached.cache import MemcachedCache
class InfiniteMemcached(TestCase):
def test_handle_timeouts(self):
mc = MemcachedCache(
server="127.0.0.1:11211",
params={},
)
self.assertEqual(0, mc._get_memcache_timeou... | import time
from django.test import TestCase
from django.core.cache import get_cache
class InfiniteMemcached(TestCase):
def test_handle_timeouts(self):
mc = get_cache('infinite_memcached.cache.MemcachedCache',
LOCATION='127.0.0.1:11211')
self.assertEqual(0, mc._get_memcache_... | Load the backend with get_cache | Load the backend with get_cache
| Python | bsd-3-clause | edavis/django-infinite-memcached,edavis/django-infinite-memcached | python | ## Code Before:
import time
from django.test import TestCase
from infinite_memcached.cache import MemcachedCache
class InfiniteMemcached(TestCase):
def test_handle_timeouts(self):
mc = MemcachedCache(
server="127.0.0.1:11211",
params={},
)
self.assertEqual(0, mc._get... |
d49ec1f41fdab63036c83fead714af9408e683ae | lib/secret_santa.rb | lib/secret_santa.rb | class SecretSanta
def self.create_list(names)
if names.length <= 2
"ERROR: List too short"
elsif names.length != names.uniq.length
"ERROR: Please enter unique names"
else
# shuffle names and build lists
list = []
digraph_list = []
names.shuffle!
names.each_with_in... | class SecretSanta
# Create the Secret Santa list
def self.create_list(names)
if names.length <= 2
"ERROR: List too short"
elsif names.length != names.uniq.length
"ERROR: Please enter unique names"
else
# Build the list
list = []
digraph_list = []
names.shuffle!
... | Add better comments and messages | Add better comments and messages
| Ruby | mit | jwworth/secret_santa | ruby | ## Code Before:
class SecretSanta
def self.create_list(names)
if names.length <= 2
"ERROR: List too short"
elsif names.length != names.uniq.length
"ERROR: Please enter unique names"
else
# shuffle names and build lists
list = []
digraph_list = []
names.shuffle!
na... |
305e09a8a88d18f35ffca521a524db082d79899d | docker-compose.yml | docker-compose.yml | version: '3'
services:
django:
build:
context: .
# image: datasciencebr/jarbas-backend
environment:
- DATABASE_URL=postgres://jarbas:mysecretpassword@postgres/jarbas
- ALLOWED_HOSTS=localhost,127.0.0.1
- AMAZON_S3_BUCKET=serenata-de-amor-data
- AMAZON_S3_REGION=s3-sa-eas... | version: '3'
services:
django:
image: datasciencebr/jarbas-backend
environment:
- DATABASE_URL=postgres://jarbas:mysecretpassword@postgres/jarbas
- ALLOWED_HOSTS=localhost,127.0.0.1
- AMAZON_S3_BUCKET=serenata-de-amor-data
- AMAZON_S3_REGION=s3-sa-east-1
- AMAZON_S3_CEAPTRA... | Bring back Docker Hub images | Bring back Docker Hub images
| YAML | mit | marcusrehm/serenata-de-amor,datasciencebr/jarbas,datasciencebr/jarbas,datasciencebr/jarbas,marcusrehm/serenata-de-amor,datasciencebr/serenata-de-amor,datasciencebr/serenata-de-amor,datasciencebr/jarbas,marcusrehm/serenata-de-amor,marcusrehm/serenata-de-amor | yaml | ## Code Before:
version: '3'
services:
django:
build:
context: .
# image: datasciencebr/jarbas-backend
environment:
- DATABASE_URL=postgres://jarbas:mysecretpassword@postgres/jarbas
- ALLOWED_HOSTS=localhost,127.0.0.1
- AMAZON_S3_BUCKET=serenata-de-amor-data
- AMAZON_S3_... |
8db8853496f3dbd0adda8cc80d7868876a292743 | vim/50-plugins-LanguageServer.vim | vim/50-plugins-LanguageServer.vim | " Required for operations modifying multiple buffers like rename.
set hidden
let g:LanguageClient_serverCommands = {
\ 'python': ['pyls'],
\ 'javascript': ['javascript-typescript-stdio'],
\ 'javascript.jsx': ['javascript-typescript-stdio'],
\ 'go': ['/home/chris/go/bin/gopls'],
\ 'rust': ['rls'],
... | " Required for operations modifying multiple buffers like rename.
set hidden
let g:LanguageClient_serverCommands = {
\ 'python': ['pyls'],
\ 'javascript': ['javascript-typescript-stdio'],
\ 'javascript.jsx': ['javascript-typescript-stdio'],
\ 'go': ['/home/chris/go/bin/gopls'],
\ 'rust': ['rls'],
... | Add intelephense as the php language server | [vim] Add intelephense as the php language server
| VimL | mit | solarnz/dotfiles | viml | ## Code Before:
" Required for operations modifying multiple buffers like rename.
set hidden
let g:LanguageClient_serverCommands = {
\ 'python': ['pyls'],
\ 'javascript': ['javascript-typescript-stdio'],
\ 'javascript.jsx': ['javascript-typescript-stdio'],
\ 'go': ['/home/chris/go/bin/gopls'],
\ 'r... |
0c70705208b4bca17f861ce816f0b8e8d95b53c7 | app/resources/views/partials/dominion/advisor-selector.blade.php | app/resources/views/partials/dominion/advisor-selector.blade.php | <div class="box">
<div class="box-header with-border">
<h3 class="box-title"><i class="fa fa-question-circle"></i> Consult advisor</h3>
</div>
<div class="box-body">
<div class="row">
<div class="col-xs-6 col-sm-3">
<a href="{{ route('dominion.advisors.production... | <div class="box">
<div class="box-header with-border">
<h3 class="box-title"><i class="fa fa-question-circle"></i> Consult advisor</h3>
</div>
<div class="box-body">
<div class="row">
<div class="col-xs-6 col-sm-3">
<a href="{{ route('dominion.advisors.production... | Use proper divider for advisors selector buttons on mobile | Use proper divider for advisors selector buttons on mobile
| PHP | agpl-3.0 | WaveHack/OpenDominion,WaveHack/OpenDominion,WaveHack/OpenDominion | php | ## Code Before:
<div class="box">
<div class="box-header with-border">
<h3 class="box-title"><i class="fa fa-question-circle"></i> Consult advisor</h3>
</div>
<div class="box-body">
<div class="row">
<div class="col-xs-6 col-sm-3">
<a href="{{ route('dominion.adv... |
bae7c2539b1b264d20d4cc9336362a23be48c8cf | README.md | README.md |
The Backbone-Boilerplate generator working on top of Yeoman.
**Project stage**: This is early alpha functionnalities. The generator is not yet published on NPM, it's only usable if installed manually.
## Installation
- Make sure you have [yo](https://github.com/yeoman/yo) installed:
`npm install -g yo`
- Install... |
The Backbone-Boilerplate generator working on top of Yeoman.
**Project stage**: This is early alpha functionnalities. The generator is not yet published on NPM, it's only usable if installed manually.
## Installation
- Make sure you have [yo](https://github.com/yeoman/yo) installed:
`npm install -g yo`
- Install... | Add instruction on developpement installation | Add instruction on developpement installation
| Markdown | mit | backbone-boilerplate/generator-bbb | markdown | ## Code Before:
The Backbone-Boilerplate generator working on top of Yeoman.
**Project stage**: This is early alpha functionnalities. The generator is not yet published on NPM, it's only usable if installed manually.
## Installation
- Make sure you have [yo](https://github.com/yeoman/yo) installed:
`npm install ... |
0a02b7140b34172140013376eedc4a6307683f12 | buildReleaseNuGetPackages.sh | buildReleaseNuGetPackages.sh | echo "Start building Electron.NET dev stack..."
echo "Restore & Build API"
cd ElectronNet.API
dotnet restore
dotnet build --configuration Release --force /property:Version=5.22.12
dotnet pack /p:Version=5.22.12 --configuration Release --force --output "%~dp0artifacts"
cd ..
echo "Restore & Build CLI"
cd ElectronNet.CLI... | echo "Start building Electron.NET dev stack..."
echo "Restore & Build API"
cd ElectronNET.API && \
dotnet restore && \
dotnet build --configuration Release --force /property:Version=5.22.12 && \
dotnet pack /p:Version=5.22.12 --configuration Release --force --output "%~dp0artifacts";
cd ../;
echo "Restore & Build CL... | Fix filenames in shell script, ElectronNet != ElectionNET on Linux for builds. | Fix filenames in shell script, ElectronNet != ElectionNET on Linux for builds.
| Shell | mit | ElectronNET/Electron.NET,ElectronNET/Electron.NET,ElectronNET/Electron.NET,ElectronNET/Electron.NET,ElectronNET/Electron.NET | shell | ## Code Before:
echo "Start building Electron.NET dev stack..."
echo "Restore & Build API"
cd ElectronNet.API
dotnet restore
dotnet build --configuration Release --force /property:Version=5.22.12
dotnet pack /p:Version=5.22.12 --configuration Release --force --output "%~dp0artifacts"
cd ..
echo "Restore & Build CLI"
cd... |
4362291045a5f1d3630d98c0c81f1317ba4b2df6 | lib/tips.coffee | lib/tips.coffee | module.exports = [
'Everything Atom can do is in the Command Palette. See it by using {command-palette:toggle}'
'You can quickly open files with the Fuzzy Finder. Try it by using {fuzzy-finder:toggle-file-finder}'
'You can toggle the Tree View with {tree-view:toggle}'
'You can focus the Tree View with {tree-vie... | module.exports = [
'Everything Atom can do is in the Command Palette. See it by using {command-palette:toggle}'
'You can quickly open files with the Fuzzy Finder. Try it by using {fuzzy-finder:toggle-file-finder}'
'You can toggle the Tree View with {tree-view:toggle}'
'You can focus the Tree View with {tree-vie... | Add tip for symbols view | Add tip for symbols view
| CoffeeScript | mit | atom/background-tips | coffeescript | ## Code Before:
module.exports = [
'Everything Atom can do is in the Command Palette. See it by using {command-palette:toggle}'
'You can quickly open files with the Fuzzy Finder. Try it by using {fuzzy-finder:toggle-file-finder}'
'You can toggle the Tree View with {tree-view:toggle}'
'You can focus the Tree Vie... |
3a9715f948044e9f322b4c897a44a32f1d26c6a3 | spec/requests/api/config_spec.rb | spec/requests/api/config_spec.rb | describe 'API configuration (config/api.yml)' do
let(:api_settings) { Api::ApiConfig }
describe 'collections' do
let(:collection_settings) { api_settings.collections }
it "is sorted a-z" do
actual = collection_settings.keys
expected = collection_settings.keys.sort
expect(actual).to eq(ex... | describe 'API configuration (config/api.yml)' do
let(:api_settings) { Api::ApiConfig }
describe 'collections' do
let(:collection_settings) { api_settings.collections }
it "is sorted a-z" do
actual = collection_settings.keys
expected = collection_settings.keys.sort
expect(actual).to eq(ex... | Add typed subresource actions keys | Add typed subresource actions keys
| Ruby | apache-2.0 | mresti/manageiq,ilackarms/manageiq,durandom/manageiq,jvlcek/manageiq,jrafanie/manageiq,ManageIQ/manageiq,ManageIQ/manageiq,borod108/manageiq,ilackarms/manageiq,mkanoor/manageiq,jameswnl/manageiq,ManageIQ/manageiq,pkomanek/manageiq,gerikis/manageiq,jameswnl/manageiq,branic/manageiq,kbrock/manageiq,tzumainn/manageiq,Nick... | ruby | ## Code Before:
describe 'API configuration (config/api.yml)' do
let(:api_settings) { Api::ApiConfig }
describe 'collections' do
let(:collection_settings) { api_settings.collections }
it "is sorted a-z" do
actual = collection_settings.keys
expected = collection_settings.keys.sort
expect(... |
ef974d5b01940efa3886a4074eda964bfc07b133 | bookie/__init__.py | bookie/__init__.py | from pyramid.authentication import AuthTktAuthenticationPolicy
from pyramid.authorization import ACLAuthorizationPolicy
from pyramid.config import Configurator
from sqlalchemy import engine_from_config
from bookie.lib.access import RequestWithUserAttribute
from bookie.models import initialize_sql
from bookie.models.au... | from pyramid.authentication import AuthTktAuthenticationPolicy
from pyramid.authorization import ACLAuthorizationPolicy
from pyramid.config import Configurator
from sqlalchemy import engine_from_config
from bookie.lib.access import RequestWithUserAttribute
from bookie.models import initialize_sql
from bookie.models.au... | Fix the rootfactory for no matchdict so we can get a 404 back out | Fix the rootfactory for no matchdict so we can get a 404 back out
| Python | agpl-3.0 | pombredanne/Bookie,skmezanul/Bookie,teodesson/Bookie,GreenLunar/Bookie,wangjun/Bookie,bookieio/Bookie,skmezanul/Bookie,adamlincoln/Bookie,adamlincoln/Bookie,charany1/Bookie,bookieio/Bookie,adamlincoln/Bookie,GreenLunar/Bookie,bookieio/Bookie,pombredanne/Bookie,adamlincoln/Bookie,charany1/Bookie,charany1/Bookie,teodesso... | python | ## Code Before:
from pyramid.authentication import AuthTktAuthenticationPolicy
from pyramid.authorization import ACLAuthorizationPolicy
from pyramid.config import Configurator
from sqlalchemy import engine_from_config
from bookie.lib.access import RequestWithUserAttribute
from bookie.models import initialize_sql
from ... |
ad2a2edd6d2d23893e938ef1d83af9da4b1e9e48 | lib/phuby/method.php | lib/phuby/method.php | <?php
namespace Phuby;
class Method extends Object {
protected $unbound;
protected $receiver;
function initialize($unbound, $receiver) {
$this->unbound = $unbound;
$this->receiver = $receiver;
}
function call($args = null) {
return call_user_func_array($this->to_proc(), f... | <?php
namespace Phuby;
class Method extends Object {
static function initialized($self) {
$self->attr_reader('receiver');
}
function initialize($unbound, $receiver) {
$this->{'@unbound'} = $unbound;
$this->{'@receiver'} = $receiver;
}
function call($args = null) {
... | Use ruby style instance variables for Method | Use ruby style instance variables for Method
| PHP | mit | shuber/phuby | php | ## Code Before:
<?php
namespace Phuby;
class Method extends Object {
protected $unbound;
protected $receiver;
function initialize($unbound, $receiver) {
$this->unbound = $unbound;
$this->receiver = $receiver;
}
function call($args = null) {
return call_user_func_array($th... |
7ed63b72f55290d9a8d46bae5d1c477aee8bc84a | .github/workflows/build.yml | .github/workflows/build.yml | name: Build
on:
# Build on new commits or pull requests.
push:
pull_request:
schedule:
# Run every week just to make sure the CI environment still works.
- cron: '0 0 * * 0'
jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Apt Dependenci... | name: Build
on:
# Build on new commits or pull requests.
push:
pull_request:
schedule:
# Run every week just to make sure the CI environment still works.
- cron: '0 0 * * 0'
jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Apt Dependenci... | Add additional verbosity when running choco. | Add additional verbosity when running choco.
| YAML | mit | PintaProject/Pinta,PintaProject/Pinta,PintaProject/Pinta | yaml | ## Code Before:
name: Build
on:
# Build on new commits or pull requests.
push:
pull_request:
schedule:
# Run every week just to make sure the CI environment still works.
- cron: '0 0 * * 0'
jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Instal... |
de6d4e6abe26e567a74cf0f2e79f155e63b37414 | app/controllers/subscribem/accounts_controller.rb | app/controllers/subscribem/accounts_controller.rb | require_dependency "subscribem/application_controller"
module Subscribem
class AccountsController < ApplicationController
def new
@account = Subscribem::Account.new
@account.build_owner
end
def create
account = Subscribem::Account.create(account_params)
flash[:success] = "Your acc... | require_dependency "subscribem/application_controller"
module Subscribem
class AccountsController < ApplicationController
def new
@account = Subscribem::Account.new
@account.build_owner
end
def create
account = Subscribem::Account.create(account_params)
env['warden'].set_user(acco... | Set warden with account and user info | Set warden with account and user info
| Ruby | mit | anonyo/subscribem,anonyo/subscribem,anonyo/subscribem | ruby | ## Code Before:
require_dependency "subscribem/application_controller"
module Subscribem
class AccountsController < ApplicationController
def new
@account = Subscribem::Account.new
@account.build_owner
end
def create
account = Subscribem::Account.create(account_params)
flash[:succ... |
156b33eca9f10157f90fdffdbb91c3b4f317069e | .travis.yml | .travis.yml | language: python
python:
- "3.6"
install:
- pip3 install flake8
- pip3 install flake8-docstrings
- pip3 install Sphinx sphinx_rtd_theme
script:
- flake8
- sphinx-build docs docs-out
| language: python
python:
- "3.6"
install:
- pip3 install flake8
- pip3 install flake8-docstrings
- pip3 install Sphinx sphinx_rtd_theme
script:
- flake8
- sphinx-build -j auto docs docs-out
- sphinx-build -j auto -b linkcheck docs docs-out
| Make sphinx builds concurrent, add link check | Make sphinx builds concurrent, add link check
| YAML | mit | SublimeLinter/SublimeLinter3,SublimeLinter/SublimeLinter3 | yaml | ## Code Before:
language: python
python:
- "3.6"
install:
- pip3 install flake8
- pip3 install flake8-docstrings
- pip3 install Sphinx sphinx_rtd_theme
script:
- flake8
- sphinx-build docs docs-out
## Instruction:
Make sphinx builds concurrent, add link check
## Code After:
language: python
python:
... |
0271fc369f230468719f051c48351081611c38c6 | froide/foirequest/templates/foirequest/snippets/attachment_item.html | froide/foirequest/templates/foirequest/snippets/attachment_item.html | {% load i18n %}
<a id="{{ attachment.get_html_id }}" class="card-title" href="{{ attachment.get_absolute_url }}" title="{{ attachment.name }}">
<i class="fa fa-paperclip" aria-hidden="true"></i>
{{ attachment.name|truncatechars:25 }}
<span class="badge badge-light">
{{ attachment.size|filesizeformat }}
</s... | {% load i18n %}
<a id="{{ attachment.get_html_id }}" class="card-title" href="{{ attachment.get_absolute_url }}" title="{{ attachment.name }}">
<i class="fa fa-paperclip" aria-hidden="true"></i>
{{ attachment.name|truncatechars:25 }}
</a>
<span class="badge badge-light">
{{ attachment.size|filesizeformat }}
</sp... | Move filesize badge out of link | Move filesize badge out of link | HTML | mit | fin/froide,fin/froide,fin/froide,stefanw/froide,stefanw/froide,fin/froide,stefanw/froide,stefanw/froide,stefanw/froide | html | ## Code Before:
{% load i18n %}
<a id="{{ attachment.get_html_id }}" class="card-title" href="{{ attachment.get_absolute_url }}" title="{{ attachment.name }}">
<i class="fa fa-paperclip" aria-hidden="true"></i>
{{ attachment.name|truncatechars:25 }}
<span class="badge badge-light">
{{ attachment.size|filesiz... |
b1deec08fe23eb89dd51471c6f11e2e3da69a563 | aospy/__init__.py | aospy/__init__.py | """aospy: management, analysis, and plotting of gridded climate data."""
from .__config__ import (user_path, LAT_STR, LON_STR, PFULL_STR, PHALF_STR,
PLEVEL_STR, TIME_STR)
from . import constants
from .constants import Constant
from . import numerics
from .numerics import FiniteDiff
from . impor... | """aospy: management, analysis, and plotting of gridded climate data."""
from .__config__ import (user_path, LAT_STR, LON_STR, PFULL_STR, PHALF_STR,
PLEVEL_STR, TIME_STR, TIME_STR_IDEALIZED)
from . import constants
from .constants import Constant
from . import numerics
from .numerics import Fin... | Add TIME_STR_IDEALIZED to string labels | Add TIME_STR_IDEALIZED to string labels
| Python | apache-2.0 | spencerkclark/aospy,spencerahill/aospy | python | ## Code Before:
"""aospy: management, analysis, and plotting of gridded climate data."""
from .__config__ import (user_path, LAT_STR, LON_STR, PFULL_STR, PHALF_STR,
PLEVEL_STR, TIME_STR)
from . import constants
from .constants import Constant
from . import numerics
from .numerics import FiniteD... |
13314c3e7e8fc26cbf70b771ba5c2b7d86b81f4e | docs/source/whatsnew/pr/inputhook_extensible.rst | docs/source/whatsnew/pr/inputhook_extensible.rst | * It's now possible to provide mechanisms to integrate IPython with other event
loops, in addition to the ones we already support. This lets you run GUI code
in IPython with an interactive prompt, and to embed the IPython
kernel in GUI applications. See :doc:`/config/eventloops` for details.
| * It's now possible to provide mechanisms to integrate IPython with other event
loops, in addition to the ones we already support. This lets you run GUI code
in IPython with an interactive prompt, and to embed the IPython
kernel in GUI applications. See :doc:`/config/eventloops` for details. As part
of this, th... | Add note about function deprecations in whatsnew doc | Add note about function deprecations in whatsnew doc
| reStructuredText | bsd-3-clause | ipython/ipython,ipython/ipython | restructuredtext | ## Code Before:
* It's now possible to provide mechanisms to integrate IPython with other event
loops, in addition to the ones we already support. This lets you run GUI code
in IPython with an interactive prompt, and to embed the IPython
kernel in GUI applications. See :doc:`/config/eventloops` for details.
## I... |
38ab58425b0f0d7b47016aa820348c487ef74193 | pkgs/python/pip.sls | pkgs/python/pip.sls | {%- from "pkgs/system/python-pip.sls" import pip with context -%}
include:
- pkgs.system.python-pip
{#- Ubuntu Lucid and CentOS 5 has way too old pip package, we'll need to upgrade "by hand", salt can't do it for us #}
{% if (grains['os'] == 'Ubuntu' and grains['osrelease'].startswith('10.')) or (grains['os'] == '... | {%- from "_python_binary_name.sls" import python with context -%}
{%- from "pkgs/system/python-pip.sls" import pip with context -%}
include:
- pkgs.system.python-pip
{#- Ubuntu Lucid and CentOS 5 has way too old pip package, we'll need to upgrade "by hand", salt can't do it for us #}
{% if (grains['os'] == 'Ubuntu... | Use the right python binary name | Use the right python binary name
| SaltStack | apache-2.0 | saltstack/jenkins-ci-states | saltstack | ## Code Before:
{%- from "pkgs/system/python-pip.sls" import pip with context -%}
include:
- pkgs.system.python-pip
{#- Ubuntu Lucid and CentOS 5 has way too old pip package, we'll need to upgrade "by hand", salt can't do it for us #}
{% if (grains['os'] == 'Ubuntu' and grains['osrelease'].startswith('10.')) or (g... |
c68ad31074dcd2d3e919b476511bb525fd3e5daf | .travis.yml | .travis.yml | branches:
except:
- gh-pages
language: scala
scala:
- 2.10.7
- 2.11.12
- 2.12.4
jdk:
- oraclejdk8
- oraclejdk9
cache:
directories:
- "$HOME/.ivy2/cache"
- "$HOME/.sbt/boot/"
script:
- sbt ++$TRAVIS_SCALA_VERSION validate
- if [[ $TRAVIS_SCALA_VERSION == 2.12* ]]; then sbt ++$TRAVIS_SCALA_VERSI... | branches:
except:
- gh-pages
language: scala
scala:
- 2.10.7
- 2.11.12
- 2.12.4
jdk:
- oraclejdk8
cache:
directories:
- "$HOME/.ivy2/cache"
- "$HOME/.sbt/boot/"
script:
- sbt ++$TRAVIS_SCALA_VERSION validate
- if [[ $TRAVIS_SCALA_VERSION == 2.12* ]]; then sbt ++$TRAVIS_SCALA_VERSION validateDocs... | Remove jdk9 builds to shorten build times | Remove jdk9 builds to shorten build times [ci skip]
| YAML | mit | vlovgr/ciris | yaml | ## Code Before:
branches:
except:
- gh-pages
language: scala
scala:
- 2.10.7
- 2.11.12
- 2.12.4
jdk:
- oraclejdk8
- oraclejdk9
cache:
directories:
- "$HOME/.ivy2/cache"
- "$HOME/.sbt/boot/"
script:
- sbt ++$TRAVIS_SCALA_VERSION validate
- if [[ $TRAVIS_SCALA_VERSION == 2.12* ]]; then sbt ++$TR... |
685f490ac7b2423209c44f558b0de1d8d59ae1fa | README.md | README.md |
[](https://travis-ci.org/yous/rbtetris)
[](https://gemnasium.com/yous/rbtetris)
[](https://codeclimate.com/github/yous/rbte... |
[](https://travis-ci.org/yous/rbtetris)
[](https://gemnasium.com/yous/rbtetris)
[](https://codeclimate.com/github/yous/rbte... | Remove Inch CI badge because there are no document | Remove Inch CI badge because there are no document [ci skip]
| Markdown | unlicense | yous/rbtetris | markdown | ## Code Before:
[](https://travis-ci.org/yous/rbtetris)
[](https://gemnasium.com/yous/rbtetris)
[](https://codeclimate.com/... |
0be515a9f65ca3c360496212ec689fe216b17d69 | README.md | README.md | ```rails new my_app```
### Add gems to Gemfile
```
gem 'blacklight'
gem 'hydra-head'
gem 'sufia'
gem 'jettywrapper'
```
Then `bundle install`
### Run the blacklight, hydra and scholarsphere generators
```
rails g blacklight --devise
rails g hydra:head -f
rails g sufia -f
```
### Run the migrations
```
rake db:migrat... | ```rails new my_app```
### Add gems to Gemfile
```
gem 'blacklight'
gem 'hydra-head'
gem 'sufia'
gem 'jettywrapper'
```
Then `bundle install`
### Run the blacklight, hydra and scholarsphere generators
```
rails g blacklight --devise
rails g hydra:head -f
rails g sufia -f
```
### Run the migrations
```
rake db:migrat... | Document how to start background workers. | Document how to start background workers.
| Markdown | apache-2.0 | jeremyf/sufia,samvera/hyrax,samvera/hyrax,jeremyf/sufia,samvera/hyrax,samvera/hyrax | markdown | ## Code Before:
```rails new my_app```
### Add gems to Gemfile
```
gem 'blacklight'
gem 'hydra-head'
gem 'sufia'
gem 'jettywrapper'
```
Then `bundle install`
### Run the blacklight, hydra and scholarsphere generators
```
rails g blacklight --devise
rails g hydra:head -f
rails g sufia -f
```
### Run the migrations
``... |
5bc5155bda4011239fde98821eb368a4ad8e7d77 | backend/victim_config.yml | backend/victim_config.yml | victim_1:
snifferendpoint: 'http://127.0.0.1:9000'
sourceip: '192.168.1.70'
method: 'serial'
realtimeurl: 'http://127.0.0.1:3031'
victim_2:
snifferendpoint: 'http://127.0.0.1:9000'
sourceip: '192.168.43.246'
method: 'divide&conquer'
realtimeurl: 'http://127.0.0.1:3031'
| victim_1:
snifferendpoint: 'http://127.0.0.1:9000'
sourceip: '192.168.1.70'
realtimeurl: 'http://127.0.0.1:3031'
victim_2:
snifferendpoint: 'http://127.0.0.1:9000'
sourceip: '192.168.43.246'
realtimeurl: 'http://127.0.0.1:3031'
| Remove method from Victim config | Remove method from Victim config
| YAML | mit | dimriou/rupture,dimriou/rupture,dimkarakostas/rupture,dimriou/rupture,dimriou/rupture,esarafianou/rupture,esarafianou/rupture,dionyziz/rupture,dimkarakostas/rupture,dionyziz/rupture,dionyziz/rupture,dimriou/rupture,esarafianou/rupture,esarafianou/rupture,dimkarakostas/rupture,dionyziz/rupture,dionyziz/rupture,dimkarako... | yaml | ## Code Before:
victim_1:
snifferendpoint: 'http://127.0.0.1:9000'
sourceip: '192.168.1.70'
method: 'serial'
realtimeurl: 'http://127.0.0.1:3031'
victim_2:
snifferendpoint: 'http://127.0.0.1:9000'
sourceip: '192.168.43.246'
method: 'divide&conquer'
realtimeurl: 'http://127.0.0.1:3031'
#... |
98d12233741136188ac3a6802909c4b26a9d0e32 | scripts/update-db.sh | scripts/update-db.sh | echo "Import latest live db backup"
gzip -dc /vagrant/wordpress.sql.gz | mysql --user=root --password=root wordpress-skydreams
echo "Truncate domain mapping table"
mysql --user=skydev --password=skydev wordpress-skydreams -e 'TRUNCATE wp_domain_mapping;'
echo "Replace live domain with dev domain"
php /vagrant/scripts... | echo "Import latest live db backup"
gzip -dc /vagrant/wordpress.sql.gz | mysql --user=root --password=root wordpress-skydreams
echo "Truncate domain mapping table"
mysql --user=skydev --password=skydev wordpress-skydreams -e 'TRUNCATE wp_domain_mapping;'
echo "Replace live domain with dev domain"
php /vagrant/scripts... | Update skydev roles + disqus urls during db update | Update skydev roles + disqus urls during db update
| Shell | mit | WybrenKoelmans/VVV,WybrenKoelmans/VVV | shell | ## Code Before:
echo "Import latest live db backup"
gzip -dc /vagrant/wordpress.sql.gz | mysql --user=root --password=root wordpress-skydreams
echo "Truncate domain mapping table"
mysql --user=skydev --password=skydev wordpress-skydreams -e 'TRUNCATE wp_domain_mapping;'
echo "Replace live domain with dev domain"
php ... |
f9e33414cf8d31cfa5b1686e73f436d90a1b75bc | script/travis/npm_bootstrap.sh | script/travis/npm_bootstrap.sh |
set -e
npm cache clear
npm install -g buster sinon@1.6.0 autolint || (sleep 5 && npm install -g buster sinon@1.6.0 autolint) |
set -e
function setup () {
npm install -g npm && npm install -g buster sinon@1.6.0 autolint
}
setup || (sleep 5 && setup) | Install the latest npm to work around bugs | Install the latest npm to work around bugs
| Shell | bsd-3-clause | holderdeord/hdo-site,holderdeord/hdo-site,holderdeord/hdo-site,holderdeord/hdo-site | shell | ## Code Before:
set -e
npm cache clear
npm install -g buster sinon@1.6.0 autolint || (sleep 5 && npm install -g buster sinon@1.6.0 autolint)
## Instruction:
Install the latest npm to work around bugs
## Code After:
set -e
function setup () {
npm install -g npm && npm install -g buster sinon@1.6.0 autolint
}
set... |
1bf659173ef98ccce9d51620ffa3d0221deb3c59 | Session4/README.md | Session4/README.md |
- Convert to dictionary
- Split description into dictionary values
- In position order attributes calls pos1, pos2
- In alphabetic order alpha1, alpha2
Links:
http://fastml.com/converting-categorical-data-into-numbers-with-pandas-and-scikit-learn/
http://scikit-learn.org/stable/modules/feature_extraction.ht... |
- Convert to dictionary and vectorise
- Vectorise description text by word
- Try stop words
- Combine Whole description string, vectorisd and vectorise description text by word
- Add spell checking
- Remove duplicate rows after spell checking
- Where multi entries per barcode exists test these to see if they ... | Add plan for session, unlikely to get it all done in time | Add plan for session, unlikely to get it all done in time
| Markdown | apache-2.0 | catalystcomputing/DSIoT-Python-sessions | markdown | ## Code Before:
- Convert to dictionary
- Split description into dictionary values
- In position order attributes calls pos1, pos2
- In alphabetic order alpha1, alpha2
Links:
http://fastml.com/converting-categorical-data-into-numbers-with-pandas-and-scikit-learn/
http://scikit-learn.org/stable/modules/feature_extra... |
ac3aaddcedb51e0f1c25c218ea98bfee9939404b | cmd/puka-web/main.go | cmd/puka-web/main.go | package main
import (
"log"
"net/http"
"os"
"github.com/gin-gonic/gin"
)
func main() {
p := os.Getenv("PORT")
if p == "" {
log.Fatal("$PORT must be set")
}
r := gin.Default()
// PING test
r.GET("/ping", func(c *gin.Context) {
c.String(http.StatusOK, "PONG")
})
r.Run(":" + p)
}
| package main
import (
"log"
"net/http"
"os"
"gopkg.in/mgo.v2"
"github.com/gin-gonic/gin"
)
func main() {
session, err := mgo.Dial("localhost")
if err != nil {
log.Fatalln("FATAL", err)
}
defer session.Close()
p := os.Getenv("PORT")
if p == "" {
log.Fatal("$PORT must be set")
}
r := gin.Default()
... | Add mgo dependency for testing. | Add mgo dependency for testing.
| Go | mit | jhh/puka-react,jhh/puka-react,jhh/puka-react | go | ## Code Before:
package main
import (
"log"
"net/http"
"os"
"github.com/gin-gonic/gin"
)
func main() {
p := os.Getenv("PORT")
if p == "" {
log.Fatal("$PORT must be set")
}
r := gin.Default()
// PING test
r.GET("/ping", func(c *gin.Context) {
c.String(http.StatusOK, "PONG")
})
r.Run(":" + p)
}
## ... |
36ac557ad7143f84873f8810448428fa31412848 | lib/commands/join.js | lib/commands/join.js | var request = require('request'),
RoomStream = require('../room-stream');
module.exports = function (room) {
console.log("Joining room " + room + "...");
request.get('https://streaming.campfirenow.com/room/' + room + '/live.json')
.auth('aba80bf92dc8adb1fe7eb438b3bf8c688de1df1b', 'X')
.pip... | var request = require('request'),
RoomStream = require('../room-stream');
module.exports = function (room) {
console.log("Joining room " + room + "...");
request.get('https://streaming.campfirenow.com/room/' + room + '/live.json')
.auth('aba80bf92dc8adb1fe7eb438b3bf8c688de1df1b', 'X')
.pip... | Send messages from stdin to campfire room. | Send messages from stdin to campfire room.
| JavaScript | bsd-3-clause | kelveden/streamfire | javascript | ## Code Before:
var request = require('request'),
RoomStream = require('../room-stream');
module.exports = function (room) {
console.log("Joining room " + room + "...");
request.get('https://streaming.campfirenow.com/room/' + room + '/live.json')
.auth('aba80bf92dc8adb1fe7eb438b3bf8c688de1df1b', '... |
3e407d7ba649e3f8ad9f17497a621b1872d2ae28 | .github/PULL_REQUEST_TEMPLATE.md | .github/PULL_REQUEST_TEMPLATE.md |
<!--- Please leave this at the end of your message -->
This PR:
- [ ] builds with SUCCESS for all platforms on the CI.
- [ ] does not generate new warnings nor unit test failures.
- [ ] does not break existing scenes.
- [ ] does not break API compatibility.
- [ ] has been reviewed and agreed to be transitional.
-... |
______________________________________________________
<!--- Please leave this at the end of your message -->
This PR:
- [ ] builds with SUCCESS for all platforms on the CI.
- [ ] does not generate new warnings nor unit test failures.
- [ ] does not break existing scenes.
- [ ] does not break API compatibility.
-... | ADD horizontal rule before PR template | [GitHub] ADD horizontal rule before PR template
[ci-ignore] | Markdown | lgpl-2.1 | hdeling/sofa,Anatoscope/sofa,FabienPean/sofa,hdeling/sofa,Anatoscope/sofa,hdeling/sofa,FabienPean/sofa,FabienPean/sofa,Anatoscope/sofa,FabienPean/sofa,Anatoscope/sofa,FabienPean/sofa,Anatoscope/sofa,FabienPean/sofa,hdeling/sofa,hdeling/sofa,Anatoscope/sofa,FabienPean/sofa,hdeling/sofa,hdeling/sofa,Anatoscope/sofa,hdeli... | markdown | ## Code Before:
<!--- Please leave this at the end of your message -->
This PR:
- [ ] builds with SUCCESS for all platforms on the CI.
- [ ] does not generate new warnings nor unit test failures.
- [ ] does not break existing scenes.
- [ ] does not break API compatibility.
- [ ] has been reviewed and agreed to be... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.