commit stringlengths 40 40 | old_file stringlengths 4 184 | new_file stringlengths 4 184 | old_contents stringlengths 1 3.6k | new_contents stringlengths 5 3.38k | subject stringlengths 15 778 | message stringlengths 16 6.74k | lang stringclasses 201 values | license stringclasses 13 values | repos stringlengths 6 116k | config stringclasses 201 values | content stringlengths 137 7.24k | diff stringlengths 26 5.55k | diff_length int64 1 123 | relative_diff_length float64 0.01 89 | n_lines_added int64 0 108 | n_lines_deleted int64 0 106 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
563f36f40179b7a723f9836538740e10bd15dbb2 | Admonitus/WebContent/json.jsp | Admonitus/WebContent/json.jsp | <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
${reminderList}
| <%@ page language="java" contentType="application/json; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
${reminderList}
| Correct the contentType of the JSON page | Correct the contentType of the JSON page
| Java Server Pages | unlicense | RedShift1/chc-cmsc300-01-jspapp-01,RedShift1/chc-cmsc300-01-jspapp-01 | java-server-pages | ## Code Before:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
${reminderList}
## Instruction:
Correct the contentType of the JSON page
## Code After:
<%@ page language="java" contentType="application/json; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
${reminderList}
| - <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
? ^^^ ^^^^
+ <%@ page language="java" contentType="application/json; charset=ISO-8859-1"
? +++++++ ^^^ ^^^^
pageEncoding="ISO-8859-1"%>
${reminderList}
| 2 | 0.4 | 1 | 1 |
27a6bf00f91fec07432431c962a6edff01a07c38 | course/First-Mapping.md | course/First-Mapping.md |
Nous allons essayer de mapper l'association définie ci dessous dans notre hierarchie de classe.
?[Etapes à suivre]
-[ ] Creer la classe Media
-[ ] Ajouter à la classe User une liste de media
-[ ] Recuperer un utilisateur par nom
-[ ] Remplir le mapper de user
-[ ] Recuperer l'association media client
-[ ] Mapper les valeurs correctes au media de l'objet user
@[Mapping JDBC]({"stubs": ["src/main/java/fr/ccavalier/hibernate/course/mapping/UserDao.java","src/main/java/fr/ccavalier/hibernate/course/mapping/User.java","src/test/resources/mapping/create-db.sql","src/test/resources/mapping/insert-data.sql"],"command": "fr.ccavalier.hibernate.course.mapping.UserDaoTest#testFindByName", "layout":"aside"})
|
Nous allons donc représenter les entités User et Media ainsi que leurs association sous la forme d'une collection dans le monde objet.
La principale problématique est lors de la manipulation d'un object User. Les Media associés soivent être correctement interprétés que ce soit en écriture ou en lecture.
Nous allons essayer de représenter cette association dans notre hierarchie de classe.
Pour cela nous devons réalisés un pont entre le monde Objet et le monde Relation en écrivant des méthode permettant de créer des User et Media a partir de ResultSet représentant un ensemble de tuples de base de donnée.
?[Etapes à suivre]
-[ ] User.Media : Creer la classe Media comme représentation de la table media
-[ ] User : Ajouter un attribut contacts qui est une liste de media
-[ ] User : Ajouter les getter/setter pour le nouvelle attribut contacts sur User
-[ ] UserDao.findByFirstName -> Recuperer un utilisateur par nom
-[ ] UserDao.UserMapper.mapRow : Remplir les mapper de user
-[ ] UserDao.UserMapper.mapContacts : Recuperer l'association media client
-[ ] UserDao.findByFirstName : Mapper les valeurs correctes au media de l'objet user remonté
@[Mapping JDBC]({"stubs": ["src/main/java/fr/ccavalier/hibernate/course/mapping/UserDao.java","src/main/java/fr/ccavalier/hibernate/course/mapping/User.java","src/test/resources/mapping/create-db.sql","src/test/resources/mapping/insert-data.sql"],"command": "fr.ccavalier.hibernate.course.mapping.UserDaoTest#testFindByName", "layout":"aside"})
| Add some text modifications on mapping course | Add some text modifications on mapping course
| Markdown | mit | CCavalier/orm-epsi | markdown | ## Code Before:
Nous allons essayer de mapper l'association définie ci dessous dans notre hierarchie de classe.
?[Etapes à suivre]
-[ ] Creer la classe Media
-[ ] Ajouter à la classe User une liste de media
-[ ] Recuperer un utilisateur par nom
-[ ] Remplir le mapper de user
-[ ] Recuperer l'association media client
-[ ] Mapper les valeurs correctes au media de l'objet user
@[Mapping JDBC]({"stubs": ["src/main/java/fr/ccavalier/hibernate/course/mapping/UserDao.java","src/main/java/fr/ccavalier/hibernate/course/mapping/User.java","src/test/resources/mapping/create-db.sql","src/test/resources/mapping/insert-data.sql"],"command": "fr.ccavalier.hibernate.course.mapping.UserDaoTest#testFindByName", "layout":"aside"})
## Instruction:
Add some text modifications on mapping course
## Code After:
Nous allons donc représenter les entités User et Media ainsi que leurs association sous la forme d'une collection dans le monde objet.
La principale problématique est lors de la manipulation d'un object User. Les Media associés soivent être correctement interprétés que ce soit en écriture ou en lecture.
Nous allons essayer de représenter cette association dans notre hierarchie de classe.
Pour cela nous devons réalisés un pont entre le monde Objet et le monde Relation en écrivant des méthode permettant de créer des User et Media a partir de ResultSet représentant un ensemble de tuples de base de donnée.
?[Etapes à suivre]
-[ ] User.Media : Creer la classe Media comme représentation de la table media
-[ ] User : Ajouter un attribut contacts qui est une liste de media
-[ ] User : Ajouter les getter/setter pour le nouvelle attribut contacts sur User
-[ ] UserDao.findByFirstName -> Recuperer un utilisateur par nom
-[ ] UserDao.UserMapper.mapRow : Remplir les mapper de user
-[ ] UserDao.UserMapper.mapContacts : Recuperer l'association media client
-[ ] UserDao.findByFirstName : Mapper les valeurs correctes au media de l'objet user remonté
@[Mapping JDBC]({"stubs": ["src/main/java/fr/ccavalier/hibernate/course/mapping/UserDao.java","src/main/java/fr/ccavalier/hibernate/course/mapping/User.java","src/test/resources/mapping/create-db.sql","src/test/resources/mapping/insert-data.sql"],"command": "fr.ccavalier.hibernate.course.mapping.UserDaoTest#testFindByName", "layout":"aside"})
|
+ Nous allons donc représenter les entités User et Media ainsi que leurs association sous la forme d'une collection dans le monde objet.
+ La principale problématique est lors de la manipulation d'un object User. Les Media associés soivent être correctement interprétés que ce soit en écriture ou en lecture.
+
- Nous allons essayer de mapper l'association définie ci dessous dans notre hierarchie de classe.
? ^^ ^ ^^ -------------------
+ Nous allons essayer de représenter cette association dans notre hierarchie de classe.
? ^^ ^^^^^^ ^^^^^^ ++
+ Pour cela nous devons réalisés un pont entre le monde Objet et le monde Relation en écrivant des méthode permettant de créer des User et Media a partir de ResultSet représentant un ensemble de tuples de base de donnée.
+
?[Etapes à suivre]
- -[ ] Creer la classe Media
- -[ ] Ajouter à la classe User une liste de media
- -[ ] Recuperer un utilisateur par nom
- -[ ] Remplir le mapper de user
- -[ ] Recuperer l'association media client
+ -[ ] User.Media : Creer la classe Media comme représentation de la table media
+ -[ ] User : Ajouter un attribut contacts qui est une liste de media
+ -[ ] User : Ajouter les getter/setter pour le nouvelle attribut contacts sur User
+ -[ ] UserDao.findByFirstName -> Recuperer un utilisateur par nom
+ -[ ] UserDao.UserMapper.mapRow : Remplir les mapper de user
+ -[ ] UserDao.UserMapper.mapContacts : Recuperer l'association media client
- -[ ] Mapper les valeurs correctes au media de l'objet user
+ -[ ] UserDao.findByFirstName : Mapper les valeurs correctes au media de l'objet user remonté
? ++++++++++++++++++++++++++ ++++++++
+
+
@[Mapping JDBC]({"stubs": ["src/main/java/fr/ccavalier/hibernate/course/mapping/UserDao.java","src/main/java/fr/ccavalier/hibernate/course/mapping/User.java","src/test/resources/mapping/create-db.sql","src/test/resources/mapping/insert-data.sql"],"command": "fr.ccavalier.hibernate.course.mapping.UserDaoTest#testFindByName", "layout":"aside"}) | 22 | 1.692308 | 15 | 7 |
cb120a8b5ad1c253a8e1702cb7af0cd2a2a107f3 | README.md | README.md | Algorithms + Data Structures. DIY.
Environment:
```
$ java -version
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
$ buck -V
buck version ca8d6cbac373a690f543c5159eec0116e76187a9
$ python --version
Python 2.7.11
```
Have libs available and run all Junit tests
```
$ buck targets | xargs buck build && buck test --all
```
Welcome ideas and commits. | Algorithms + Data Structures. DIY.
Environment:
```
$ java -version
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
$ buck -V
buck version ca8d6cbac373a690f543c5159eec0116e76187a9
$ python --version
Python 2.7.11
```
Have libs available and run all Junit tests
```
$ buck targets | xargs buck build && buck test --all
```
Welcome ideas, comments and commits.
WebChat : brucezu
Facebook : https://www.facebook.com/bruce.zu
| Add contact information of me | Add contact information of me
Change-Id: Iff752f1cefed6c520cc60c876b29bcb76c6901ec
| Markdown | apache-2.0 | BruceZu/sawdust,BruceZu/KeepTry,BruceZu/KeepTry,BruceZu/sawdust,BruceZu/KeepTry,BruceZu/sawdust,BruceZu/sawdust,BruceZu/KeepTry | markdown | ## Code Before:
Algorithms + Data Structures. DIY.
Environment:
```
$ java -version
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
$ buck -V
buck version ca8d6cbac373a690f543c5159eec0116e76187a9
$ python --version
Python 2.7.11
```
Have libs available and run all Junit tests
```
$ buck targets | xargs buck build && buck test --all
```
Welcome ideas and commits.
## Instruction:
Add contact information of me
Change-Id: Iff752f1cefed6c520cc60c876b29bcb76c6901ec
## Code After:
Algorithms + Data Structures. DIY.
Environment:
```
$ java -version
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
$ buck -V
buck version ca8d6cbac373a690f543c5159eec0116e76187a9
$ python --version
Python 2.7.11
```
Have libs available and run all Junit tests
```
$ buck targets | xargs buck build && buck test --all
```
Welcome ideas, comments and commits.
WebChat : brucezu
Facebook : https://www.facebook.com/bruce.zu
| Algorithms + Data Structures. DIY.
Environment:
```
$ java -version
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
$ buck -V
buck version ca8d6cbac373a690f543c5159eec0116e76187a9
$ python --version
Python 2.7.11
```
Have libs available and run all Junit tests
```
$ buck targets | xargs buck build && buck test --all
```
- Welcome ideas and commits.
+ Welcome ideas, comments and commits.
? ++++++++++
+
+ WebChat : brucezu
+
+ Facebook : https://www.facebook.com/bruce.zu | 6 | 0.285714 | 5 | 1 |
0c5eb1dd801b4c3c471343c7fa7b1ed4b5422b1e | lib/Scat/Model/PriceOverride.php | lib/Scat/Model/PriceOverride.php | <?php
namespace Scat\Model;
class PriceOverride extends \Model {
function product() {
return ($this->pattern_type == 'product' ?
$this->belongs_to('Product', 'pattern')->find_one() :
null);
}
public function setDiscount($discount) {
$discount= preg_replace('/^\\$/', '', $discount);
if (preg_match('/^(\d*)(\/|%)( off)?$/', $discount, $m)) {
$discount = (float)$m[1];
$discount_type = "percentage";
} elseif (preg_match('/^(\d*\.?\d*)$/', $discount, $m)) {
$discount = (float)$m[1];
$discount_type = "fixed";
} elseif (preg_match('/^\$?(\d*\.?\d*)( off)?$/', $discount, $m)) {
$discount = (float)$m[1];
$discount_type = "relative";
} elseif (preg_match('/^-\$?(\d*\.?\d*)$/', $discount, $m)) {
$discount = (float)$m[1];
$discount_type = "relative";
} elseif (preg_match('/^(def|\.\.\.)$/', $discount)) {
$discount= null;
$discount_type= null;
} else {
throw \Exception("Did not understand discount.");
}
$this->discount= $discount;
$this->discount_type= $discount_type;
}
}
| <?php
namespace Scat\Model;
class PriceOverride extends \Model {
function product() {
return ($this->pattern_type == 'product' ?
$this->belongs_to('Product', 'pattern')->find_one() :
null);
}
public function setDiscount($discount) {
$discount= preg_replace('/^\\$/', '', $discount);
if (preg_match('/^(\d*)(\/|%)( off)?$/', $discount, $m)) {
$discount = (float)$m[1];
$discount_type = "percentage";
}
elseif (preg_match('/^\+(\d*)(\/|%)( off)?$/', $discount, $m)) {
$discount = (float)$m[1];
$discount_type = "additional_percentage";
} elseif (preg_match('/^(\d*\.?\d*)$/', $discount, $m)) {
$discount = (float)$m[1];
$discount_type = "fixed";
} elseif (preg_match('/^\$?(\d*\.?\d*)( off)?$/', $discount, $m)) {
$discount = (float)$m[1];
$discount_type = "relative";
} elseif (preg_match('/^-\$?(\d*\.?\d*)$/', $discount, $m)) {
$discount = (float)$m[1];
$discount_type = "relative";
} elseif (preg_match('/^(def|\.\.\.)$/', $discount)) {
$discount= null;
$discount_type= null;
} else {
throw new \Exception("Did not understand discount.");
}
$this->discount= $discount;
$this->discount_type= $discount_type;
}
}
| Fix handling of additional_percentage discounts | Fix handling of additional_percentage discounts
| PHP | mit | jimwins/scat,jimwins/scat,jimwins/scat,jimwins/scat | php | ## Code Before:
<?php
namespace Scat\Model;
class PriceOverride extends \Model {
function product() {
return ($this->pattern_type == 'product' ?
$this->belongs_to('Product', 'pattern')->find_one() :
null);
}
public function setDiscount($discount) {
$discount= preg_replace('/^\\$/', '', $discount);
if (preg_match('/^(\d*)(\/|%)( off)?$/', $discount, $m)) {
$discount = (float)$m[1];
$discount_type = "percentage";
} elseif (preg_match('/^(\d*\.?\d*)$/', $discount, $m)) {
$discount = (float)$m[1];
$discount_type = "fixed";
} elseif (preg_match('/^\$?(\d*\.?\d*)( off)?$/', $discount, $m)) {
$discount = (float)$m[1];
$discount_type = "relative";
} elseif (preg_match('/^-\$?(\d*\.?\d*)$/', $discount, $m)) {
$discount = (float)$m[1];
$discount_type = "relative";
} elseif (preg_match('/^(def|\.\.\.)$/', $discount)) {
$discount= null;
$discount_type= null;
} else {
throw \Exception("Did not understand discount.");
}
$this->discount= $discount;
$this->discount_type= $discount_type;
}
}
## Instruction:
Fix handling of additional_percentage discounts
## Code After:
<?php
namespace Scat\Model;
class PriceOverride extends \Model {
function product() {
return ($this->pattern_type == 'product' ?
$this->belongs_to('Product', 'pattern')->find_one() :
null);
}
public function setDiscount($discount) {
$discount= preg_replace('/^\\$/', '', $discount);
if (preg_match('/^(\d*)(\/|%)( off)?$/', $discount, $m)) {
$discount = (float)$m[1];
$discount_type = "percentage";
}
elseif (preg_match('/^\+(\d*)(\/|%)( off)?$/', $discount, $m)) {
$discount = (float)$m[1];
$discount_type = "additional_percentage";
} elseif (preg_match('/^(\d*\.?\d*)$/', $discount, $m)) {
$discount = (float)$m[1];
$discount_type = "fixed";
} elseif (preg_match('/^\$?(\d*\.?\d*)( off)?$/', $discount, $m)) {
$discount = (float)$m[1];
$discount_type = "relative";
} elseif (preg_match('/^-\$?(\d*\.?\d*)$/', $discount, $m)) {
$discount = (float)$m[1];
$discount_type = "relative";
} elseif (preg_match('/^(def|\.\.\.)$/', $discount)) {
$discount= null;
$discount_type= null;
} else {
throw new \Exception("Did not understand discount.");
}
$this->discount= $discount;
$this->discount_type= $discount_type;
}
}
| <?php
namespace Scat\Model;
class PriceOverride extends \Model {
function product() {
return ($this->pattern_type == 'product' ?
$this->belongs_to('Product', 'pattern')->find_one() :
null);
}
public function setDiscount($discount) {
$discount= preg_replace('/^\\$/', '', $discount);
if (preg_match('/^(\d*)(\/|%)( off)?$/', $discount, $m)) {
$discount = (float)$m[1];
$discount_type = "percentage";
+ }
+ elseif (preg_match('/^\+(\d*)(\/|%)( off)?$/', $discount, $m)) {
+ $discount = (float)$m[1];
+ $discount_type = "additional_percentage";
} elseif (preg_match('/^(\d*\.?\d*)$/', $discount, $m)) {
$discount = (float)$m[1];
$discount_type = "fixed";
} elseif (preg_match('/^\$?(\d*\.?\d*)( off)?$/', $discount, $m)) {
$discount = (float)$m[1];
$discount_type = "relative";
} elseif (preg_match('/^-\$?(\d*\.?\d*)$/', $discount, $m)) {
$discount = (float)$m[1];
$discount_type = "relative";
} elseif (preg_match('/^(def|\.\.\.)$/', $discount)) {
$discount= null;
$discount_type= null;
} else {
- throw \Exception("Did not understand discount.");
+ throw new \Exception("Did not understand discount.");
? ++++
}
$this->discount= $discount;
$this->discount_type= $discount_type;
}
} | 6 | 0.176471 | 5 | 1 |
d5049edc8567cebf936bb07847906c5400f9a6d9 | ceph_deploy/tests/unit/hosts/test_suse.py | ceph_deploy/tests/unit/hosts/test_suse.py | from ceph_deploy.hosts import suse
class TestSuseInit(object):
def setup(self):
self.host = suse
def test_choose_init_default(self):
self.host.release = None
init_type = self.host.choose_init()
assert init_type == "sysvinit"
def test_choose_init_SLE_11(self):
self.host.release = '11'
init_type = self.host.choose_init()
assert init_type == "sysvinit"
def test_choose_init_SLE_12(self):
self.host.release = '12'
init_type = self.host.choose_init()
assert init_type == "systemd"
def test_choose_init_openSUSE_13_1(self):
self.host.release = '13.1'
init_type = self.host.choose_init()
assert init_type == "systemd"
| from ceph_deploy.hosts import suse
from ceph_deploy.hosts.suse.install import map_components
class TestSuseInit(object):
def setup(self):
self.host = suse
def test_choose_init_default(self):
self.host.release = None
init_type = self.host.choose_init()
assert init_type == "sysvinit"
def test_choose_init_SLE_11(self):
self.host.release = '11'
init_type = self.host.choose_init()
assert init_type == "sysvinit"
def test_choose_init_SLE_12(self):
self.host.release = '12'
init_type = self.host.choose_init()
assert init_type == "systemd"
def test_choose_init_openSUSE_13_1(self):
self.host.release = '13.1'
init_type = self.host.choose_init()
assert init_type == "systemd"
class TestSuseMapComponents(object):
def test_valid(self):
pkgs = map_components(['ceph-osd', 'ceph-common', 'ceph-radosgw'])
assert 'ceph' in pkgs
assert 'ceph-common' in pkgs
assert 'ceph-radosgw' in pkgs
assert 'ceph-osd' not in pkgs
def test_invalid(self):
pkgs = map_components(['not-provided', 'ceph-mon'])
assert 'not-provided' not in pkgs
assert 'ceph' in pkgs
| Add tests for component to SUSE package mapping | Add tests for component to SUSE package mapping
Signed-off-by: David Disseldorp <589a549dc9f982d9f46aeeb82a09ab6d87ccf1d8@suse.de>
| Python | mit | zhouyuan/ceph-deploy,shenhequnying/ceph-deploy,ceph/ceph-deploy,ghxandsky/ceph-deploy,zhouyuan/ceph-deploy,imzhulei/ceph-deploy,SUSE/ceph-deploy,Vicente-Cheng/ceph-deploy,ceph/ceph-deploy,branto1/ceph-deploy,trhoden/ceph-deploy,trhoden/ceph-deploy,osynge/ceph-deploy,ghxandsky/ceph-deploy,SUSE/ceph-deploy,branto1/ceph-deploy,codenrhoden/ceph-deploy,isyippee/ceph-deploy,isyippee/ceph-deploy,Vicente-Cheng/ceph-deploy,shenhequnying/ceph-deploy,osynge/ceph-deploy,imzhulei/ceph-deploy,codenrhoden/ceph-deploy | python | ## Code Before:
from ceph_deploy.hosts import suse
class TestSuseInit(object):
def setup(self):
self.host = suse
def test_choose_init_default(self):
self.host.release = None
init_type = self.host.choose_init()
assert init_type == "sysvinit"
def test_choose_init_SLE_11(self):
self.host.release = '11'
init_type = self.host.choose_init()
assert init_type == "sysvinit"
def test_choose_init_SLE_12(self):
self.host.release = '12'
init_type = self.host.choose_init()
assert init_type == "systemd"
def test_choose_init_openSUSE_13_1(self):
self.host.release = '13.1'
init_type = self.host.choose_init()
assert init_type == "systemd"
## Instruction:
Add tests for component to SUSE package mapping
Signed-off-by: David Disseldorp <589a549dc9f982d9f46aeeb82a09ab6d87ccf1d8@suse.de>
## Code After:
from ceph_deploy.hosts import suse
from ceph_deploy.hosts.suse.install import map_components
class TestSuseInit(object):
def setup(self):
self.host = suse
def test_choose_init_default(self):
self.host.release = None
init_type = self.host.choose_init()
assert init_type == "sysvinit"
def test_choose_init_SLE_11(self):
self.host.release = '11'
init_type = self.host.choose_init()
assert init_type == "sysvinit"
def test_choose_init_SLE_12(self):
self.host.release = '12'
init_type = self.host.choose_init()
assert init_type == "systemd"
def test_choose_init_openSUSE_13_1(self):
self.host.release = '13.1'
init_type = self.host.choose_init()
assert init_type == "systemd"
class TestSuseMapComponents(object):
def test_valid(self):
pkgs = map_components(['ceph-osd', 'ceph-common', 'ceph-radosgw'])
assert 'ceph' in pkgs
assert 'ceph-common' in pkgs
assert 'ceph-radosgw' in pkgs
assert 'ceph-osd' not in pkgs
def test_invalid(self):
pkgs = map_components(['not-provided', 'ceph-mon'])
assert 'not-provided' not in pkgs
assert 'ceph' in pkgs
| from ceph_deploy.hosts import suse
+ from ceph_deploy.hosts.suse.install import map_components
class TestSuseInit(object):
def setup(self):
self.host = suse
def test_choose_init_default(self):
self.host.release = None
init_type = self.host.choose_init()
assert init_type == "sysvinit"
def test_choose_init_SLE_11(self):
self.host.release = '11'
init_type = self.host.choose_init()
assert init_type == "sysvinit"
def test_choose_init_SLE_12(self):
self.host.release = '12'
init_type = self.host.choose_init()
assert init_type == "systemd"
def test_choose_init_openSUSE_13_1(self):
self.host.release = '13.1'
init_type = self.host.choose_init()
assert init_type == "systemd"
+
+ class TestSuseMapComponents(object):
+ def test_valid(self):
+ pkgs = map_components(['ceph-osd', 'ceph-common', 'ceph-radosgw'])
+ assert 'ceph' in pkgs
+ assert 'ceph-common' in pkgs
+ assert 'ceph-radosgw' in pkgs
+ assert 'ceph-osd' not in pkgs
+
+ def test_invalid(self):
+ pkgs = map_components(['not-provided', 'ceph-mon'])
+ assert 'not-provided' not in pkgs
+ assert 'ceph' in pkgs | 14 | 0.56 | 14 | 0 |
462e27a4e25739316eef98e3a71f001c483558a8 | Resources/views/ProductVariant/Generate/_form.html.twig | Resources/views/ProductVariant/Generate/_form.html.twig | <div class="ui segment">
<h4 class="ui dividing header">{{ 'sylius.ui.variants'|trans }}</h4>
{{ form_row(form.variants, {'label': false}) }}
</div>
| <h4 class="ui dividing header">{{ 'sylius.ui.variants'|trans }}</h4>
{{ form_row(form.variants) }}
| Improve the variant generation form UI | [Admin] Improve the variant generation form UI
| Twig | mit | Sylius/SyliusAdminBundle,Sylius/SyliusAdminBundle | twig | ## Code Before:
<div class="ui segment">
<h4 class="ui dividing header">{{ 'sylius.ui.variants'|trans }}</h4>
{{ form_row(form.variants, {'label': false}) }}
</div>
## Instruction:
[Admin] Improve the variant generation form UI
## Code After:
<h4 class="ui dividing header">{{ 'sylius.ui.variants'|trans }}</h4>
{{ form_row(form.variants) }}
| - <div class="ui segment">
- <h4 class="ui dividing header">{{ 'sylius.ui.variants'|trans }}</h4>
? ----
+ <h4 class="ui dividing header">{{ 'sylius.ui.variants'|trans }}</h4>
+ {{ form_row(form.variants) }}
- {{ form_row(form.variants, {'label': false}) }}
- </div> | 6 | 1.5 | 2 | 4 |
f5ae578833d55e72cdb28ad1f55c98df474e1142 | .eslintrc.json | .eslintrc.json | {
"parserOptions": {
"ecmaVersion": 2020
},
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"rules": {
"no-console": "off",
"indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"linebreak-style": [
"error",
"unix"
],
"semi": [
"warn",
"always"
],
"keyword-spacing": [
"error", {
"before": true,
"after": true
}
],
"space-before-blocks": [
"error", {
"functions":"always",
"keywords": "always",
"classes": "always"
}
],
"space-before-function-paren": [
"error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}
],
"prefer-const": [
"error", {
"destructuring": "any",
"ignoreReadBeforeAssign": false
}
],
"quotes": [
"error",
"double"
]
}
}
| {
"parserOptions": {
"ecmaVersion": 2020
},
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"globals":{
"BigInt":true
},
"rules": {
"no-console": "off",
"indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"linebreak-style": [
"error",
"unix"
],
"semi": [
"warn",
"always"
],
"keyword-spacing": [
"error", {
"before": true,
"after": true
}
],
"space-before-blocks": [
"error", {
"functions":"always",
"keywords": "always",
"classes": "always"
}
],
"space-before-function-paren": [
"error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}
],
"prefer-const": [
"error", {
"destructuring": "any",
"ignoreReadBeforeAssign": false
}
],
"quotes": [
"error",
"double"
]
}
}
| Add eslint support for BigInt | Add eslint support for BigInt
| JSON | mit | jmiln/SWGoHBot | json | ## Code Before:
{
"parserOptions": {
"ecmaVersion": 2020
},
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"rules": {
"no-console": "off",
"indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"linebreak-style": [
"error",
"unix"
],
"semi": [
"warn",
"always"
],
"keyword-spacing": [
"error", {
"before": true,
"after": true
}
],
"space-before-blocks": [
"error", {
"functions":"always",
"keywords": "always",
"classes": "always"
}
],
"space-before-function-paren": [
"error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}
],
"prefer-const": [
"error", {
"destructuring": "any",
"ignoreReadBeforeAssign": false
}
],
"quotes": [
"error",
"double"
]
}
}
## Instruction:
Add eslint support for BigInt
## Code After:
{
"parserOptions": {
"ecmaVersion": 2020
},
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"globals":{
"BigInt":true
},
"rules": {
"no-console": "off",
"indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"linebreak-style": [
"error",
"unix"
],
"semi": [
"warn",
"always"
],
"keyword-spacing": [
"error", {
"before": true,
"after": true
}
],
"space-before-blocks": [
"error", {
"functions":"always",
"keywords": "always",
"classes": "always"
}
],
"space-before-function-paren": [
"error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}
],
"prefer-const": [
"error", {
"destructuring": "any",
"ignoreReadBeforeAssign": false
}
],
"quotes": [
"error",
"double"
]
}
}
| {
"parserOptions": {
"ecmaVersion": 2020
},
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
+ "globals":{
+ "BigInt":true
+ },
"rules": {
"no-console": "off",
"indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"linebreak-style": [
"error",
"unix"
],
"semi": [
"warn",
"always"
],
"keyword-spacing": [
"error", {
"before": true,
"after": true
}
],
"space-before-blocks": [
"error", {
"functions":"always",
"keywords": "always",
"classes": "always"
}
],
"space-before-function-paren": [
"error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}
],
"prefer-const": [
"error", {
"destructuring": "any",
"ignoreReadBeforeAssign": false
}
],
"quotes": [
"error",
"double"
]
}
} | 3 | 0.051724 | 3 | 0 |
8d5eb143ef749cda660ce7b024d1c8358aa00fce | README.md | README.md | <!--
{% comment %}
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to you under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
{% endcomment %}
-->
[](https://github.com/apache/calcite-avatica/actions)
# Apache Calcite -- Avatica
Apache Calcite's Avatica is a framework for building database drivers.
Avatica is a sub-project of [Apache Calcite](https://calcite.apache.org).
For more details, see the [home page](https://calcite.apache.org/avatica).
Release notes for all published versions are available on the [history
page](https://calcite.apache.org/avatica/docs/history.html).
| <!--
{% comment %}
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to you under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
{% endcomment %}
-->
[](https://github.com/apache/calcite-avatica/actions)
# Apache Calcite -- Avatica
Apache Calcite's Avatica is a framework for building database drivers.
Avatica is a sub-project of [Apache Calcite](https://calcite.apache.org).
For more details, see the [home page](https://calcite.apache.org/avatica).
Release notes for all published versions are available on the [history
page](https://calcite.apache.org/avatica/docs/history.html).
The project uses [JIRA](https://issues.apache.org/jira/browse/CALCITE)
for issue tracking. For further information, please see the [JIRA accounts guide](https://calcite.apache.org/develop/#jira-accounts).
| Document new procedure for requesting JIRA accounts and becoming a contributor | [CALCITE-5353] Document new procedure for requesting JIRA accounts and becoming a contributor
| Markdown | apache-2.0 | apache/calcite-avatica,looker-open-source/calcite-avatica,looker-open-source/calcite-avatica,looker-open-source/calcite-avatica,looker-open-source/calcite-avatica,apache/calcite-avatica,apache/calcite-avatica,apache/calcite-avatica,apache/calcite-avatica,looker-open-source/calcite-avatica | markdown | ## Code Before:
<!--
{% comment %}
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to you under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
{% endcomment %}
-->
[](https://github.com/apache/calcite-avatica/actions)
# Apache Calcite -- Avatica
Apache Calcite's Avatica is a framework for building database drivers.
Avatica is a sub-project of [Apache Calcite](https://calcite.apache.org).
For more details, see the [home page](https://calcite.apache.org/avatica).
Release notes for all published versions are available on the [history
page](https://calcite.apache.org/avatica/docs/history.html).
## Instruction:
[CALCITE-5353] Document new procedure for requesting JIRA accounts and becoming a contributor
## Code After:
<!--
{% comment %}
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to you under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
{% endcomment %}
-->
[](https://github.com/apache/calcite-avatica/actions)
# Apache Calcite -- Avatica
Apache Calcite's Avatica is a framework for building database drivers.
Avatica is a sub-project of [Apache Calcite](https://calcite.apache.org).
For more details, see the [home page](https://calcite.apache.org/avatica).
Release notes for all published versions are available on the [history
page](https://calcite.apache.org/avatica/docs/history.html).
The project uses [JIRA](https://issues.apache.org/jira/browse/CALCITE)
for issue tracking. For further information, please see the [JIRA accounts guide](https://calcite.apache.org/develop/#jira-accounts).
| <!--
{% comment %}
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to you under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
{% endcomment %}
-->
[](https://github.com/apache/calcite-avatica/actions)
# Apache Calcite -- Avatica
Apache Calcite's Avatica is a framework for building database drivers.
Avatica is a sub-project of [Apache Calcite](https://calcite.apache.org).
For more details, see the [home page](https://calcite.apache.org/avatica).
Release notes for all published versions are available on the [history
page](https://calcite.apache.org/avatica/docs/history.html).
+
+ The project uses [JIRA](https://issues.apache.org/jira/browse/CALCITE)
+ for issue tracking. For further information, please see the [JIRA accounts guide](https://calcite.apache.org/develop/#jira-accounts). | 3 | 0.1 | 3 | 0 |
e174a898595664ff291cbf8ccda0f1c404a73575 | control/server.py | control/server.py | import asyncore
import socket
from logging import error, info, warning
from client import Client
class Server(asyncore.dispatcher):
def __init__(self, port, host="localhost"):
asyncore.dispatcher.__init__(self)
self.create_socket()
self.set_reuse_addr()
self.bind((host, port))
self.listen(5)
self.connect_fn = None
self.msg_fn = None
self.close_fn = None
self.clients = []
def handle_accepted(self, sock, addr):
new_client = Client(sock)
new_client.msg_fn = self.msg_fn
new_client.close_fn = self.close_fn
self.clients.append(new_client)
if self.connect_fn is not None:
self.connect_fn(new_client)
def broadcast(self, msg):
for client in self.clients:
client.send_msg(msg)
| import asyncore
import socket
from logging import error, info, warning
from client import Client
class Server(asyncore.dispatcher):
def __init__(self, port, connect_fn=None, msg_fn=None, close_fn=None):
asyncore.dispatcher.__init__(self)
self.create_socket()
self.set_reuse_addr()
self.bind(('localhost', port))
self.listen(5)
self.client_connect_fn = connect_fn
self.client_msg_fn = msg_fn
self.client_close_fn = close_fn
self.clients = []
def handle_accepted(self, sock, addr):
client = Client(sock)
client.msg_fn = self.client_msg_fn
client.close_fn = self.client_close
self.clients.append(client)
if self.client_connect_fn:
self.client_connect_fn(client)
def client_close(self, client):
self.clients.remove(client)
if self.client_close_fn:
self.client_close_fn(client)
def broadcast(self, msg):
for client in self.clients:
client.send_msg(msg)
| Remove disconnected client from clients list, allow client callbacks to be set in constructor. | Remove disconnected client from clients list, allow client callbacks to be set in constructor.
| Python | mit | zwarren/morse-car-controller,zwarren/morse-car-controller | python | ## Code Before:
import asyncore
import socket
from logging import error, info, warning
from client import Client
class Server(asyncore.dispatcher):
def __init__(self, port, host="localhost"):
asyncore.dispatcher.__init__(self)
self.create_socket()
self.set_reuse_addr()
self.bind((host, port))
self.listen(5)
self.connect_fn = None
self.msg_fn = None
self.close_fn = None
self.clients = []
def handle_accepted(self, sock, addr):
new_client = Client(sock)
new_client.msg_fn = self.msg_fn
new_client.close_fn = self.close_fn
self.clients.append(new_client)
if self.connect_fn is not None:
self.connect_fn(new_client)
def broadcast(self, msg):
for client in self.clients:
client.send_msg(msg)
## Instruction:
Remove disconnected client from clients list, allow client callbacks to be set in constructor.
## Code After:
import asyncore
import socket
from logging import error, info, warning
from client import Client
class Server(asyncore.dispatcher):
def __init__(self, port, connect_fn=None, msg_fn=None, close_fn=None):
asyncore.dispatcher.__init__(self)
self.create_socket()
self.set_reuse_addr()
self.bind(('localhost', port))
self.listen(5)
self.client_connect_fn = connect_fn
self.client_msg_fn = msg_fn
self.client_close_fn = close_fn
self.clients = []
def handle_accepted(self, sock, addr):
client = Client(sock)
client.msg_fn = self.client_msg_fn
client.close_fn = self.client_close
self.clients.append(client)
if self.client_connect_fn:
self.client_connect_fn(client)
def client_close(self, client):
self.clients.remove(client)
if self.client_close_fn:
self.client_close_fn(client)
def broadcast(self, msg):
for client in self.clients:
client.send_msg(msg)
| import asyncore
import socket
from logging import error, info, warning
from client import Client
class Server(asyncore.dispatcher):
- def __init__(self, port, host="localhost"):
+ def __init__(self, port, connect_fn=None, msg_fn=None, close_fn=None):
asyncore.dispatcher.__init__(self)
self.create_socket()
self.set_reuse_addr()
- self.bind((host, port))
+ self.bind(('localhost', port))
? ++++++ +
self.listen(5)
- self.connect_fn = None
? ^
+ self.client_connect_fn = connect_fn
? +++++++ ^ + +++++
- self.msg_fn = None
? ^^ -
+ self.client_msg_fn = msg_fn
? +++++++ ^^^^^
- self.close_fn = None
? ^ -
+ self.client_close_fn = close_fn
? +++++++ ^^ ++++
self.clients = []
def handle_accepted(self, sock, addr):
- new_client = Client(sock)
? ----
+ client = Client(sock)
- new_client.msg_fn = self.msg_fn
? ----
+ client.msg_fn = self.client_msg_fn
? +++++++
- new_client.close_fn = self.close_fn
? ---- ---
+ client.close_fn = self.client_close
? +++++++
- self.clients.append(new_client)
? ----
+ self.clients.append(client)
- if self.connect_fn is not None:
+ if self.client_connect_fn:
- self.connect_fn(new_client)
? ----
+ self.client_connect_fn(client)
? +++++++
+
+ def client_close(self, client):
+ self.clients.remove(client)
+
+ if self.client_close_fn:
+ self.client_close_fn(client)
def broadcast(self, msg):
for client in self.clients:
client.send_msg(msg) | 28 | 0.823529 | 17 | 11 |
68ec7a3660679c447b9429c0d7ec87ba31dbedcb | library.lisp | library.lisp | (cl:in-package :%open-asset-import-library)
(define-foreign-library assimp
(:windows "assimp.dll" );; :calling-convention :stdcall ?
#++(:unix "libassimp.so")
(:unix (:or "libassimp.so.3" "libassimp3.0.so" "libassimp.so")))
(use-foreign-library assimp)
| (cl:in-package :%open-asset-import-library)
(define-foreign-library assimp
(:darwin "libassimp.dylib")
(:windows "assimp.dll" );; :calling-convention :stdcall ?
#++(:unix "libassimp.so")
(:unix (:or "libassimp.so.3" "libassimp3.0.so" "libassimp.so")))
(use-foreign-library assimp)
| Add support for OS X | Add support for OS X
libassimp can be installed by:
> brew install assimp | Common Lisp | mit | 3b/classimp | common-lisp | ## Code Before:
(cl:in-package :%open-asset-import-library)
(define-foreign-library assimp
(:windows "assimp.dll" );; :calling-convention :stdcall ?
#++(:unix "libassimp.so")
(:unix (:or "libassimp.so.3" "libassimp3.0.so" "libassimp.so")))
(use-foreign-library assimp)
## Instruction:
Add support for OS X
libassimp can be installed by:
> brew install assimp
## Code After:
(cl:in-package :%open-asset-import-library)
(define-foreign-library assimp
(:darwin "libassimp.dylib")
(:windows "assimp.dll" );; :calling-convention :stdcall ?
#++(:unix "libassimp.so")
(:unix (:or "libassimp.so.3" "libassimp3.0.so" "libassimp.so")))
(use-foreign-library assimp)
| (cl:in-package :%open-asset-import-library)
(define-foreign-library assimp
+ (:darwin "libassimp.dylib")
(:windows "assimp.dll" );; :calling-convention :stdcall ?
#++(:unix "libassimp.so")
(:unix (:or "libassimp.so.3" "libassimp3.0.so" "libassimp.so")))
(use-foreign-library assimp) | 1 | 0.125 | 1 | 0 |
f753318f0b721d8a83f74f4b796ebcf7c13788f0 | README.md | README.md | [](https://travis-ci.org/scisoft/autocmake/builds)
[](https://ci.appveyor.com/project/bast/autocmake/history)
[](http://autocmake.readthedocs.org)
# Autocmake
A CMake plugin composer.
Licensed under [BSD-3](../master/LICENSE).
See http://autocmake.org.
### Projects using Autocmake
- [Numgrid](https://github.com/bast/numgrid/)
- [XCint](https://github.com/bast/xcint/)
- [DIRAC](http://diracprogram.org)
- [mathlib-tester](https://github.com/miroi/mathlibs-tester)
- [Fortran Input Reader](https://github.com/miroi/fortran_input_reader)
If you use Autocmake, please link to your project via a pull request.
| [](https://travis-ci.org/scisoft/autocmake/builds)
[](https://ci.appveyor.com/project/bast/autocmake/history)
[](http://autocmake.readthedocs.org)
# Autocmake
A CMake plugin composer.
Licensed under [BSD-3](../master/LICENSE).
See http://autocmake.org.
### Projects using Autocmake
- [Numgrid](https://github.com/bast/numgrid/)
- [XCint](https://github.com/bast/xcint/)
- [DIRAC](http://diracprogram.org)
- [mathlib-tester](https://github.com/miroi/mathlibs-tester)
- [Fortran Input Reader](https://github.com/miroi/fortran_input_reader)
- [PCMSolver](https://github.com/PCMSolver/pcmsolver)
If you use Autocmake, please link to your project via a pull request.
| Add PCMSolver to list of projects powered by Autocmake | Add PCMSolver to list of projects powered by Autocmake
| Markdown | bsd-3-clause | robertodr/autocmake,robertodr/autocmake,scisoft/autocmake,coderefinery/autocmake,miroi/autocmake,miroi/autocmake,coderefinery/autocmake,scisoft/autocmake | markdown | ## Code Before:
[](https://travis-ci.org/scisoft/autocmake/builds)
[](https://ci.appveyor.com/project/bast/autocmake/history)
[](http://autocmake.readthedocs.org)
# Autocmake
A CMake plugin composer.
Licensed under [BSD-3](../master/LICENSE).
See http://autocmake.org.
### Projects using Autocmake
- [Numgrid](https://github.com/bast/numgrid/)
- [XCint](https://github.com/bast/xcint/)
- [DIRAC](http://diracprogram.org)
- [mathlib-tester](https://github.com/miroi/mathlibs-tester)
- [Fortran Input Reader](https://github.com/miroi/fortran_input_reader)
If you use Autocmake, please link to your project via a pull request.
## Instruction:
Add PCMSolver to list of projects powered by Autocmake
## Code After:
[](https://travis-ci.org/scisoft/autocmake/builds)
[](https://ci.appveyor.com/project/bast/autocmake/history)
[](http://autocmake.readthedocs.org)
# Autocmake
A CMake plugin composer.
Licensed under [BSD-3](../master/LICENSE).
See http://autocmake.org.
### Projects using Autocmake
- [Numgrid](https://github.com/bast/numgrid/)
- [XCint](https://github.com/bast/xcint/)
- [DIRAC](http://diracprogram.org)
- [mathlib-tester](https://github.com/miroi/mathlibs-tester)
- [Fortran Input Reader](https://github.com/miroi/fortran_input_reader)
- [PCMSolver](https://github.com/PCMSolver/pcmsolver)
If you use Autocmake, please link to your project via a pull request.
| [](https://travis-ci.org/scisoft/autocmake/builds)
[](https://ci.appveyor.com/project/bast/autocmake/history)
[](http://autocmake.readthedocs.org)
# Autocmake
A CMake plugin composer.
Licensed under [BSD-3](../master/LICENSE).
See http://autocmake.org.
### Projects using Autocmake
- [Numgrid](https://github.com/bast/numgrid/)
- [XCint](https://github.com/bast/xcint/)
- [DIRAC](http://diracprogram.org)
- [mathlib-tester](https://github.com/miroi/mathlibs-tester)
- [Fortran Input Reader](https://github.com/miroi/fortran_input_reader)
+ - [PCMSolver](https://github.com/PCMSolver/pcmsolver)
If you use Autocmake, please link to your project via a pull request. | 1 | 0.047619 | 1 | 0 |
8223f86dc9f48e9203ea194feac64144e073c78f | src/http/transport.rs | src/http/transport.rs | //! The module contains implementations of the transport layer functionality
//! that HTTP/2 requires. It exposes APIs that allow the HTTP/2 connection to
//! use the transport layer without requiring it to know which exact
//! implementation they are using (i.e. a clear-text TCP connection, a TLS
//! protected connection, or even a mock implementation).
use std::old_io::Stream;
/// A trait that any struct that wants to provide the transport layer for
/// HTTP/2 needs to implement.
///
/// For now, we do not define any additional methods on top of those required
/// by the `Stream` trait.
pub trait TransportStream: Stream {}
| //! The module contains implementations of the transport layer functionality
//! that HTTP/2 requires. It exposes APIs that allow the HTTP/2 connection to
//! use the transport layer without requiring it to know which exact
//! implementation they are using (i.e. a clear-text TCP connection, a TLS
//! protected connection, or even a mock implementation).
use std::old_io::Stream;
use std::old_io::net::tcp::TcpStream;
/// A trait that any struct that wants to provide the transport layer for
/// HTTP/2 needs to implement.
///
/// For now, we do not define any additional methods on top of those required
/// by the `Stream` trait.
pub trait TransportStream: Stream {}
/// Since `TcpStream` already implements `Stream` and we do not define any
/// additional required methods on `TransportStream`, we get this for free.
impl TransportStream for TcpStream {}
| Implement the TransportStream trait for TcpStream | Implement the TransportStream trait for TcpStream
This makes it possible to use the raw `TcpStream` in an HTTP/2
connection. This is valid under the HTTP/2 spec when a clear-text
TCP connection is established (either through a direct connection
given prior knowledge of the server's HTTP/2 capability or through
an HTTP/1.1 upgrade).
| Rust | mit | mlalic/solicit,Galvanization/solicit,stepancheg/solicit,gwicke/solicit,jinnjuice/solicit,tempbottle/solicit | rust | ## Code Before:
//! The module contains implementations of the transport layer functionality
//! that HTTP/2 requires. It exposes APIs that allow the HTTP/2 connection to
//! use the transport layer without requiring it to know which exact
//! implementation they are using (i.e. a clear-text TCP connection, a TLS
//! protected connection, or even a mock implementation).
use std::old_io::Stream;
/// A trait that any struct that wants to provide the transport layer for
/// HTTP/2 needs to implement.
///
/// For now, we do not define any additional methods on top of those required
/// by the `Stream` trait.
pub trait TransportStream: Stream {}
## Instruction:
Implement the TransportStream trait for TcpStream
This makes it possible to use the raw `TcpStream` in an HTTP/2
connection. This is valid under the HTTP/2 spec when a clear-text
TCP connection is established (either through a direct connection
given prior knowledge of the server's HTTP/2 capability or through
an HTTP/1.1 upgrade).
## Code After:
//! The module contains implementations of the transport layer functionality
//! that HTTP/2 requires. It exposes APIs that allow the HTTP/2 connection to
//! use the transport layer without requiring it to know which exact
//! implementation they are using (i.e. a clear-text TCP connection, a TLS
//! protected connection, or even a mock implementation).
use std::old_io::Stream;
use std::old_io::net::tcp::TcpStream;
/// A trait that any struct that wants to provide the transport layer for
/// HTTP/2 needs to implement.
///
/// For now, we do not define any additional methods on top of those required
/// by the `Stream` trait.
pub trait TransportStream: Stream {}
/// Since `TcpStream` already implements `Stream` and we do not define any
/// additional required methods on `TransportStream`, we get this for free.
impl TransportStream for TcpStream {}
| //! The module contains implementations of the transport layer functionality
//! that HTTP/2 requires. It exposes APIs that allow the HTTP/2 connection to
//! use the transport layer without requiring it to know which exact
//! implementation they are using (i.e. a clear-text TCP connection, a TLS
//! protected connection, or even a mock implementation).
use std::old_io::Stream;
+ use std::old_io::net::tcp::TcpStream;
/// A trait that any struct that wants to provide the transport layer for
/// HTTP/2 needs to implement.
///
/// For now, we do not define any additional methods on top of those required
/// by the `Stream` trait.
pub trait TransportStream: Stream {}
+
+ /// Since `TcpStream` already implements `Stream` and we do not define any
+ /// additional required methods on `TransportStream`, we get this for free.
+ impl TransportStream for TcpStream {} | 5 | 0.357143 | 5 | 0 |
95f6627a53b76e820d7b23b47796adef07288c9c | CMakeLists.txt | CMakeLists.txt | cmake_policy(SET CMP0015 NEW)
aux_source_directory(. SRC_LIST)
list(REMOVE_ITEM SRC_LIST "./createRandomTest.cpp")
include_directories(${Boost_INCLUDE_DIRS})
include_directories(${CRYPTOPP_INCLUDE_DIRS})
include_directories(${JSONCPP_INCLUDE_DIRS})
include_directories(${JSON_RPC_CPP_INCLUDE_DIRS})
include_directories(..)
file(GLOB HEADERS "*.h")
add_executable(testeth ${SRC_LIST} ${HEADERS})
add_executable(createRandomTest createRandomTest.cpp vm.cpp TestHelper.cpp)
target_link_libraries(testeth ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
target_link_libraries(testeth ${CURL_LIBRARIES})
target_link_libraries(testeth ethereum)
target_link_libraries(testeth ethcore)
target_link_libraries(testeth secp256k1)
target_link_libraries(testeth solidity)
target_link_libraries(testeth webthree)
if (JSONRPC)
target_link_libraries(testeth web3jsonrpc)
target_link_libraries(testeth ${JSON_RPC_CPP_CLIENT_LIBRARIES})
endif()
if (EVMJIT)
target_link_libraries(testeth evmjit-cpp)
endif()
target_link_libraries(createRandomTest ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
target_link_libraries(createRandomTest ethereum)
target_link_libraries(createRandomTest ethcore)
| cmake_policy(SET CMP0015 NEW)
aux_source_directory(. SRC_LIST)
list(REMOVE_ITEM SRC_LIST "./createRandomTest.cpp")
include_directories(${Boost_INCLUDE_DIRS})
include_directories(${CRYPTOPP_INCLUDE_DIRS})
include_directories(${JSONCPP_INCLUDE_DIRS})
include_directories(${JSON_RPC_CPP_INCLUDE_DIRS})
include_directories(..)
file(GLOB HEADERS "*.h")
add_executable(testeth ${SRC_LIST} ${HEADERS})
add_executable(createRandomTest createRandomTest.cpp vm.cpp TestHelper.cpp)
target_link_libraries(testeth ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
target_link_libraries(testeth ${CURL_LIBRARIES})
target_link_libraries(testeth ethereum)
target_link_libraries(testeth ethcore)
target_link_libraries(testeth secp256k1)
target_link_libraries(testeth solidity)
target_link_libraries(testeth webthree)
if (JSONRPC)
target_link_libraries(testeth web3jsonrpc)
target_link_libraries(testeth ${JSON_RPC_CPP_CLIENT_LIBRARIES})
endif()
target_link_libraries(createRandomTest ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
target_link_libraries(createRandomTest ethereum)
target_link_libraries(createRandomTest ethcore)
| Clean up and remove some explicit dependencies in cmake files | Clean up and remove some explicit dependencies in cmake files
| Text | mit | ruchevits/solidity,gluk256/solidity,LianaHus/solidity,ruchevits/solidity,chriseth/solidity-doc-test,ethers/solidity,ruchevits/solidity,ruchevits/solidity,chriseth/solidity,shahankhatch/solidity,debris/solidity,douglas-larocca/solidity,vaporry/solidity,arkpar/solidity | text | ## Code Before:
cmake_policy(SET CMP0015 NEW)
aux_source_directory(. SRC_LIST)
list(REMOVE_ITEM SRC_LIST "./createRandomTest.cpp")
include_directories(${Boost_INCLUDE_DIRS})
include_directories(${CRYPTOPP_INCLUDE_DIRS})
include_directories(${JSONCPP_INCLUDE_DIRS})
include_directories(${JSON_RPC_CPP_INCLUDE_DIRS})
include_directories(..)
file(GLOB HEADERS "*.h")
add_executable(testeth ${SRC_LIST} ${HEADERS})
add_executable(createRandomTest createRandomTest.cpp vm.cpp TestHelper.cpp)
target_link_libraries(testeth ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
target_link_libraries(testeth ${CURL_LIBRARIES})
target_link_libraries(testeth ethereum)
target_link_libraries(testeth ethcore)
target_link_libraries(testeth secp256k1)
target_link_libraries(testeth solidity)
target_link_libraries(testeth webthree)
if (JSONRPC)
target_link_libraries(testeth web3jsonrpc)
target_link_libraries(testeth ${JSON_RPC_CPP_CLIENT_LIBRARIES})
endif()
if (EVMJIT)
target_link_libraries(testeth evmjit-cpp)
endif()
target_link_libraries(createRandomTest ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
target_link_libraries(createRandomTest ethereum)
target_link_libraries(createRandomTest ethcore)
## Instruction:
Clean up and remove some explicit dependencies in cmake files
## Code After:
cmake_policy(SET CMP0015 NEW)
aux_source_directory(. SRC_LIST)
list(REMOVE_ITEM SRC_LIST "./createRandomTest.cpp")
include_directories(${Boost_INCLUDE_DIRS})
include_directories(${CRYPTOPP_INCLUDE_DIRS})
include_directories(${JSONCPP_INCLUDE_DIRS})
include_directories(${JSON_RPC_CPP_INCLUDE_DIRS})
include_directories(..)
file(GLOB HEADERS "*.h")
add_executable(testeth ${SRC_LIST} ${HEADERS})
add_executable(createRandomTest createRandomTest.cpp vm.cpp TestHelper.cpp)
target_link_libraries(testeth ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
target_link_libraries(testeth ${CURL_LIBRARIES})
target_link_libraries(testeth ethereum)
target_link_libraries(testeth ethcore)
target_link_libraries(testeth secp256k1)
target_link_libraries(testeth solidity)
target_link_libraries(testeth webthree)
if (JSONRPC)
target_link_libraries(testeth web3jsonrpc)
target_link_libraries(testeth ${JSON_RPC_CPP_CLIENT_LIBRARIES})
endif()
target_link_libraries(createRandomTest ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
target_link_libraries(createRandomTest ethereum)
target_link_libraries(createRandomTest ethcore)
| cmake_policy(SET CMP0015 NEW)
aux_source_directory(. SRC_LIST)
list(REMOVE_ITEM SRC_LIST "./createRandomTest.cpp")
include_directories(${Boost_INCLUDE_DIRS})
include_directories(${CRYPTOPP_INCLUDE_DIRS})
include_directories(${JSONCPP_INCLUDE_DIRS})
include_directories(${JSON_RPC_CPP_INCLUDE_DIRS})
include_directories(..)
file(GLOB HEADERS "*.h")
add_executable(testeth ${SRC_LIST} ${HEADERS})
add_executable(createRandomTest createRandomTest.cpp vm.cpp TestHelper.cpp)
target_link_libraries(testeth ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
target_link_libraries(testeth ${CURL_LIBRARIES})
target_link_libraries(testeth ethereum)
target_link_libraries(testeth ethcore)
target_link_libraries(testeth secp256k1)
target_link_libraries(testeth solidity)
target_link_libraries(testeth webthree)
if (JSONRPC)
target_link_libraries(testeth web3jsonrpc)
target_link_libraries(testeth ${JSON_RPC_CPP_CLIENT_LIBRARIES})
endif()
- if (EVMJIT)
- target_link_libraries(testeth evmjit-cpp)
- endif()
target_link_libraries(createRandomTest ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
target_link_libraries(createRandomTest ethereum)
target_link_libraries(createRandomTest ethcore) | 3 | 0.088235 | 0 | 3 |
b15bf76c9a3d3a55423923038e374695a7b302a8 | microcosm_pubsub/chain/__init__.py | microcosm_pubsub/chain/__init__.py | from microcosm_pubsub.chain.chain import Chain # noqa: F401
from microcosm_pubsub.chain.decorators import binds, extracts # noqa: F401
from microcosm_pubsub.chain.statements import extract, when, switch, try_chain # noqa: F401
| from microcosm_pubsub.chain.chain import Chain # noqa: F401
from microcosm_pubsub.chain.decorators import binds, extracts # noqa: F401
from microcosm_pubsub.chain.statements import extract, when, switch, try_chain, for_each # noqa: F401
| Add for_each to chain exports | Add for_each to chain exports
| Python | apache-2.0 | globality-corp/microcosm-pubsub,globality-corp/microcosm-pubsub | python | ## Code Before:
from microcosm_pubsub.chain.chain import Chain # noqa: F401
from microcosm_pubsub.chain.decorators import binds, extracts # noqa: F401
from microcosm_pubsub.chain.statements import extract, when, switch, try_chain # noqa: F401
## Instruction:
Add for_each to chain exports
## Code After:
from microcosm_pubsub.chain.chain import Chain # noqa: F401
from microcosm_pubsub.chain.decorators import binds, extracts # noqa: F401
from microcosm_pubsub.chain.statements import extract, when, switch, try_chain, for_each # noqa: F401
| from microcosm_pubsub.chain.chain import Chain # noqa: F401
from microcosm_pubsub.chain.decorators import binds, extracts # noqa: F401
- from microcosm_pubsub.chain.statements import extract, when, switch, try_chain # noqa: F401
+ from microcosm_pubsub.chain.statements import extract, when, switch, try_chain, for_each # noqa: F401
? ++++++++++
| 2 | 0.666667 | 1 | 1 |
316df0ab024f8a3a0df40e22322d4f505262d451 | lib/scanny/checks/check.rb | lib/scanny/checks/check.rb | module Scanny
module Checks
class Check
def visit(file, node)
@file = file
@line = node.line
@issues = []
check(node)
@issues
end
# @return [String] pattern used to find relevant nodes. It must respect Machete's syntax.
def pattern
raise "The Check class requires its childrens to provide an "\
"implementation of the 'pattern' method."
end
def issue(impact, message, options = {})
@issues << Issue.new(@file, @line, impact, message, options[:cwe])
end
end
end
end
| module Scanny
module Checks
class Check
def visit(file, node)
@file = file
@line = node.line
@issues = []
check(node)
@issues
end
# @return [String] pattern used to find relevant nodes. It must respect Machete's syntax.
def pattern
raise "The Check class requires its childrens to provide an "\
"implementation of the 'pattern' method."
end
def issue(impact, message, options = {})
@issues << Issue.new(@file, @line, impact, message, options[:cwe])
end
def strict?
false
end
end
end
end
| Check should not be strict by default | Check should not be strict by default
| Ruby | mit | openSUSE/scanny | ruby | ## Code Before:
module Scanny
module Checks
class Check
def visit(file, node)
@file = file
@line = node.line
@issues = []
check(node)
@issues
end
# @return [String] pattern used to find relevant nodes. It must respect Machete's syntax.
def pattern
raise "The Check class requires its childrens to provide an "\
"implementation of the 'pattern' method."
end
def issue(impact, message, options = {})
@issues << Issue.new(@file, @line, impact, message, options[:cwe])
end
end
end
end
## Instruction:
Check should not be strict by default
## Code After:
module Scanny
module Checks
class Check
def visit(file, node)
@file = file
@line = node.line
@issues = []
check(node)
@issues
end
# @return [String] pattern used to find relevant nodes. It must respect Machete's syntax.
def pattern
raise "The Check class requires its childrens to provide an "\
"implementation of the 'pattern' method."
end
def issue(impact, message, options = {})
@issues << Issue.new(@file, @line, impact, message, options[:cwe])
end
def strict?
false
end
end
end
end
| module Scanny
module Checks
class Check
def visit(file, node)
@file = file
@line = node.line
@issues = []
check(node)
@issues
end
# @return [String] pattern used to find relevant nodes. It must respect Machete's syntax.
def pattern
raise "The Check class requires its childrens to provide an "\
"implementation of the 'pattern' method."
end
def issue(impact, message, options = {})
@issues << Issue.new(@file, @line, impact, message, options[:cwe])
end
+
+ def strict?
+ false
+ end
end
end
end | 4 | 0.16 | 4 | 0 |
6d116998e9dcf62282b81b8c75939fa353d10c8b | lcm-cmake/functions.cmake | lcm-cmake/functions.cmake | include(CMakeParseArguments)
#------------------------------------------------------------------------------
function(lcm_concat VAR)
foreach(_line ${ARGN})
set(${VAR} "${${VAR}}${_line}\n")
endforeach()
set(${VAR} "${${VAR}}" PARENT_SCOPE)
endfunction()
#------------------------------------------------------------------------------
function(lcm_option NAME DOCSTRING TEST)
find_package(${ARGN})
if(${TEST})
set(default ON)
else()
set(default OFF)
endif()
option(${NAME} ${DOCSTRING} ${default})
if(${NAME})
find_package(${ARGN} REQUIRED)
endif()
endfunction()
#------------------------------------------------------------------------------
function(lcm_copy_file_target TARGET INPUT OUTPUT)
add_custom_command(
OUTPUT ${OUTPUT}
DEPENDS ${INPUT}
COMMAND ${CMAKE_COMMAND} -E copy ${INPUT} ${OUTPUT}
)
add_custom_target(${TARGET} ALL
DEPENDS ${OUTPUT}
)
endfunction()
| include(CMakeParseArguments)
#------------------------------------------------------------------------------
function(lcm_concat VAR)
foreach(_line ${ARGN})
set(${VAR} "${${VAR}}${_line}\n")
endforeach()
set(${VAR} "${${VAR}}" PARENT_SCOPE)
endfunction()
#------------------------------------------------------------------------------
macro(lcm_option NAME DOCSTRING TEST)
find_package(${ARGN})
if(${TEST})
set(_${NAME}_DEFAULT ON)
else()
set(_${NAME}_DEFAULT OFF)
endif()
option(${NAME} ${DOCSTRING} ${_${NAME}_DEFAULT})
unset(_${NAME}_DEFAULT)
if(${NAME})
find_package(${ARGN} REQUIRED)
endif()
endmacro()
#------------------------------------------------------------------------------
function(lcm_copy_file_target TARGET INPUT OUTPUT)
add_custom_command(
OUTPUT ${OUTPUT}
DEPENDS ${INPUT}
COMMAND ${CMAKE_COMMAND} -E copy ${INPUT} ${OUTPUT}
)
add_custom_target(${TARGET} ALL
DEPENDS ${OUTPUT}
)
endfunction()
| Fix lcm_option eating variables from packages | Fix lcm_option eating variables from packages
Change lcm_option into a macro, so that it does not "consume" (by scope
limiting) variables that might be set by finding required packages. In
particular, this, along with ff031969461, was causing the Python version
variables to be "lost" to the parent scope.
| CMake | lgpl-2.1 | lcm-proj/lcm,adeschamps/lcm,lcm-proj/lcm,lcm-proj/lcm,lcm-proj/lcm,bluesquall/lcm,adeschamps/lcm,adeschamps/lcm,bluesquall/lcm,lcm-proj/lcm,lcm-proj/lcm,adeschamps/lcm,bluesquall/lcm,adeschamps/lcm,adeschamps/lcm,lcm-proj/lcm,lcm-proj/lcm,adeschamps/lcm,bluesquall/lcm,bluesquall/lcm,bluesquall/lcm,bluesquall/lcm,adeschamps/lcm | cmake | ## Code Before:
include(CMakeParseArguments)
#------------------------------------------------------------------------------
function(lcm_concat VAR)
foreach(_line ${ARGN})
set(${VAR} "${${VAR}}${_line}\n")
endforeach()
set(${VAR} "${${VAR}}" PARENT_SCOPE)
endfunction()
#------------------------------------------------------------------------------
function(lcm_option NAME DOCSTRING TEST)
find_package(${ARGN})
if(${TEST})
set(default ON)
else()
set(default OFF)
endif()
option(${NAME} ${DOCSTRING} ${default})
if(${NAME})
find_package(${ARGN} REQUIRED)
endif()
endfunction()
#------------------------------------------------------------------------------
function(lcm_copy_file_target TARGET INPUT OUTPUT)
add_custom_command(
OUTPUT ${OUTPUT}
DEPENDS ${INPUT}
COMMAND ${CMAKE_COMMAND} -E copy ${INPUT} ${OUTPUT}
)
add_custom_target(${TARGET} ALL
DEPENDS ${OUTPUT}
)
endfunction()
## Instruction:
Fix lcm_option eating variables from packages
Change lcm_option into a macro, so that it does not "consume" (by scope
limiting) variables that might be set by finding required packages. In
particular, this, along with ff031969461, was causing the Python version
variables to be "lost" to the parent scope.
## Code After:
include(CMakeParseArguments)
#------------------------------------------------------------------------------
function(lcm_concat VAR)
foreach(_line ${ARGN})
set(${VAR} "${${VAR}}${_line}\n")
endforeach()
set(${VAR} "${${VAR}}" PARENT_SCOPE)
endfunction()
#------------------------------------------------------------------------------
macro(lcm_option NAME DOCSTRING TEST)
find_package(${ARGN})
if(${TEST})
set(_${NAME}_DEFAULT ON)
else()
set(_${NAME}_DEFAULT OFF)
endif()
option(${NAME} ${DOCSTRING} ${_${NAME}_DEFAULT})
unset(_${NAME}_DEFAULT)
if(${NAME})
find_package(${ARGN} REQUIRED)
endif()
endmacro()
#------------------------------------------------------------------------------
function(lcm_copy_file_target TARGET INPUT OUTPUT)
add_custom_command(
OUTPUT ${OUTPUT}
DEPENDS ${INPUT}
COMMAND ${CMAKE_COMMAND} -E copy ${INPUT} ${OUTPUT}
)
add_custom_target(${TARGET} ALL
DEPENDS ${OUTPUT}
)
endfunction()
| include(CMakeParseArguments)
#------------------------------------------------------------------------------
function(lcm_concat VAR)
foreach(_line ${ARGN})
set(${VAR} "${${VAR}}${_line}\n")
endforeach()
set(${VAR} "${${VAR}}" PARENT_SCOPE)
endfunction()
#------------------------------------------------------------------------------
- function(lcm_option NAME DOCSTRING TEST)
? ^^^ ^^ -
+ macro(lcm_option NAME DOCSTRING TEST)
? ^^ ^
find_package(${ARGN})
if(${TEST})
- set(default ON)
+ set(_${NAME}_DEFAULT ON)
else()
- set(default OFF)
+ set(_${NAME}_DEFAULT OFF)
endif()
- option(${NAME} ${DOCSTRING} ${default})
+ option(${NAME} ${DOCSTRING} ${_${NAME}_DEFAULT})
+ unset(_${NAME}_DEFAULT)
if(${NAME})
find_package(${ARGN} REQUIRED)
endif()
- endfunction()
+ endmacro()
#------------------------------------------------------------------------------
function(lcm_copy_file_target TARGET INPUT OUTPUT)
add_custom_command(
OUTPUT ${OUTPUT}
DEPENDS ${INPUT}
COMMAND ${CMAKE_COMMAND} -E copy ${INPUT} ${OUTPUT}
)
add_custom_target(${TARGET} ALL
DEPENDS ${OUTPUT}
)
endfunction() | 11 | 0.305556 | 6 | 5 |
f5295e79ef25437068b165732e0e2f2035ff9f25 | server/api/index.js | server/api/index.js | /* eslint new-cap: 'off' */
const { Router } = require('express');
const accounts = require('./accounts');
const oauth = require('./oauth');
const rooms = require('./rooms');
const router = Router();
// Login, logout
router.post('/api/login', accounts.login);
router.get('/api/logout', accounts.logout);
// Accounts: `/api/accounts/`
router.post('/api/accounts', accounts.signup);
// OAuth: `/api/oauth/`
router.get('/api/oauth/facebook', oauth.facebook);
router.get('/api/oauth/facebook/callback', oauth.facebookCallback);
// Private rooms: `/api/rooms/`
router.post('/api/rooms', rooms.createPrivateRoom);
router.get('/api/rooms', rooms.listPrivateRooms);
module.exports = router;
| /* eslint new-cap: 'off' */
const { Router } = require('express');
const passport = require('../auth/passport');
const accounts = require('./accounts');
const oauth = require('./oauth');
const rooms = require('./rooms');
/* Authorization middleware */
// Require the user to have a valid JWT before accessing any protected resources
const requireAuth = passport.authenticate('jwt', {
session: false
});
// Validate user's name & password. Do this before sending user a token.
const validateLogin = passport.authenticate('local', {
session: false
});
/* Routes */
const router = Router();
// Login, logout
router.post('/api/login', validateLogin, accounts.login);
router.get('/api/logout', accounts.logout);
// Accounts: `/api/accounts/`
router.post('/api/accounts', accounts.signup);
// OAuth: `/api/oauth/`
router.get('/api/oauth/facebook', oauth.facebook);
router.get('/api/oauth/facebook/callback', oauth.facebookCallback);
// Private rooms: `/api/rooms/`
router.post('/api/rooms', rooms.createPrivateRoom);
router.get('/api/rooms', rooms.listPrivateRooms);
module.exports = router;
| Use passport middleware in API | feat(passport): Use passport middleware in API
Add two middleware helper functions.
You can put them before any routes & handlers you need to protect.
| JavaScript | mit | NerdDiffer/reprise,NerdDiffer/reprise,NerdDiffer/reprise | javascript | ## Code Before:
/* eslint new-cap: 'off' */
const { Router } = require('express');
const accounts = require('./accounts');
const oauth = require('./oauth');
const rooms = require('./rooms');
const router = Router();
// Login, logout
router.post('/api/login', accounts.login);
router.get('/api/logout', accounts.logout);
// Accounts: `/api/accounts/`
router.post('/api/accounts', accounts.signup);
// OAuth: `/api/oauth/`
router.get('/api/oauth/facebook', oauth.facebook);
router.get('/api/oauth/facebook/callback', oauth.facebookCallback);
// Private rooms: `/api/rooms/`
router.post('/api/rooms', rooms.createPrivateRoom);
router.get('/api/rooms', rooms.listPrivateRooms);
module.exports = router;
## Instruction:
feat(passport): Use passport middleware in API
Add two middleware helper functions.
You can put them before any routes & handlers you need to protect.
## Code After:
/* eslint new-cap: 'off' */
const { Router } = require('express');
const passport = require('../auth/passport');
const accounts = require('./accounts');
const oauth = require('./oauth');
const rooms = require('./rooms');
/* Authorization middleware */
// Require the user to have a valid JWT before accessing any protected resources
const requireAuth = passport.authenticate('jwt', {
session: false
});
// Validate user's name & password. Do this before sending user a token.
const validateLogin = passport.authenticate('local', {
session: false
});
/* Routes */
const router = Router();
// Login, logout
router.post('/api/login', validateLogin, accounts.login);
router.get('/api/logout', accounts.logout);
// Accounts: `/api/accounts/`
router.post('/api/accounts', accounts.signup);
// OAuth: `/api/oauth/`
router.get('/api/oauth/facebook', oauth.facebook);
router.get('/api/oauth/facebook/callback', oauth.facebookCallback);
// Private rooms: `/api/rooms/`
router.post('/api/rooms', rooms.createPrivateRoom);
router.get('/api/rooms', rooms.listPrivateRooms);
module.exports = router;
| /* eslint new-cap: 'off' */
const { Router } = require('express');
+ const passport = require('../auth/passport');
const accounts = require('./accounts');
const oauth = require('./oauth');
const rooms = require('./rooms');
+ /* Authorization middleware */
+
+ // Require the user to have a valid JWT before accessing any protected resources
+ const requireAuth = passport.authenticate('jwt', {
+ session: false
+ });
+
+ // Validate user's name & password. Do this before sending user a token.
+ const validateLogin = passport.authenticate('local', {
+ session: false
+ });
+
+ /* Routes */
+
const router = Router();
// Login, logout
- router.post('/api/login', accounts.login);
+ router.post('/api/login', validateLogin, accounts.login);
? +++++++++++++++
router.get('/api/logout', accounts.logout);
// Accounts: `/api/accounts/`
router.post('/api/accounts', accounts.signup);
// OAuth: `/api/oauth/`
router.get('/api/oauth/facebook', oauth.facebook);
router.get('/api/oauth/facebook/callback', oauth.facebookCallback);
// Private rooms: `/api/rooms/`
router.post('/api/rooms', rooms.createPrivateRoom);
router.get('/api/rooms', rooms.listPrivateRooms);
module.exports = router; | 17 | 0.708333 | 16 | 1 |
77a49e17fcc506ab1e775952493a1aa9c0ad6242 | app/workers/download_manuscript_worker.rb | app/workers/download_manuscript_worker.rb | class DownloadManuscriptWorker
include Sidekiq::Worker
def perform(manuscript_id, url)
manuscript = Manuscript.find(manuscript_id)
manuscript.source.download!(url)
manuscript.status = "done"
manuscript.save
epub = EpubConverter.new manuscript.paper, User.first, true
response = Typhoeus.post(
"http://ihat-staging.herokuapp.com/convert/docx",
body: {
epub: epub.epub_stream.string
}
)
manuscript.paper.update JSON.parse(response.body).symbolize_keys!
end
end
| class DownloadManuscriptWorker
include Sidekiq::Worker
def perform(manuscript_id, url)
manuscript = Manuscript.find(manuscript_id)
manuscript.source.download!(url)
manuscript.status = "done"
manuscript.save
epub = EpubConverter.new manuscript.paper, User.first, true
response = RestClient.post(
"http://ihat-staging.herokuapp.com/convert/docx",
{epub: epub.epub_stream.string, multipart: true}
)
manuscript.paper.update JSON.parse(response.body).symbolize_keys!
end
end
| Use RestClient instead of Typhoeus in the worker | Use RestClient instead of Typhoeus in the worker
| Ruby | mit | johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi | ruby | ## Code Before:
class DownloadManuscriptWorker
include Sidekiq::Worker
def perform(manuscript_id, url)
manuscript = Manuscript.find(manuscript_id)
manuscript.source.download!(url)
manuscript.status = "done"
manuscript.save
epub = EpubConverter.new manuscript.paper, User.first, true
response = Typhoeus.post(
"http://ihat-staging.herokuapp.com/convert/docx",
body: {
epub: epub.epub_stream.string
}
)
manuscript.paper.update JSON.parse(response.body).symbolize_keys!
end
end
## Instruction:
Use RestClient instead of Typhoeus in the worker
## Code After:
class DownloadManuscriptWorker
include Sidekiq::Worker
def perform(manuscript_id, url)
manuscript = Manuscript.find(manuscript_id)
manuscript.source.download!(url)
manuscript.status = "done"
manuscript.save
epub = EpubConverter.new manuscript.paper, User.first, true
response = RestClient.post(
"http://ihat-staging.herokuapp.com/convert/docx",
{epub: epub.epub_stream.string, multipart: true}
)
manuscript.paper.update JSON.parse(response.body).symbolize_keys!
end
end
| class DownloadManuscriptWorker
include Sidekiq::Worker
def perform(manuscript_id, url)
manuscript = Manuscript.find(manuscript_id)
manuscript.source.download!(url)
manuscript.status = "done"
manuscript.save
epub = EpubConverter.new manuscript.paper, User.first, true
- response = Typhoeus.post(
? ^^^^^ -
+ response = RestClient.post(
? ^ +++++++
"http://ihat-staging.herokuapp.com/convert/docx",
- body: {
- epub: epub.epub_stream.string
? ^^
+ {epub: epub.epub_stream.string, multipart: true}
? ^ ++++++++++++++++++
- }
)
manuscript.paper.update JSON.parse(response.body).symbolize_keys!
end
end | 6 | 0.285714 | 2 | 4 |
8f33498bf962ae31116e62c01b86e983301435da | src/Html/Traits/Checkable.php | src/Html/Traits/Checkable.php | <?php
namespace UMFlint\Html\Traits;
trait Checkable
{
/**
* Helper to check an input.
*
* @author Donald Wilcox <dowilcox@umflint.edu>
* @return $this
*/
public function check()
{
$this->set('checked', 'checked');
return $this;
}
/**
* Helper to uncheck an input.
*
* @author Donald Wilcox <dowilcox@umflint.edu>
* @return $this
*/
public function uncheck()
{
$this->remove('checked');
return $this;
}
} | <?php
namespace UMFlint\Html\Traits;
trait Checkable
{
/**
* Helper to check an input.
*
* @author Donald Wilcox <dowilcox@umflint.edu>
* @param bool $check
* @return $this
*/
public function check($check = true)
{
if ($check) {
$this->set('checked', 'checked');
}else {
$this->uncheck();
}
return $this;
}
/**
* Helper to uncheck an input.
*
* @author Donald Wilcox <dowilcox@umflint.edu>
* @return $this
*/
public function uncheck()
{
$this->remove('checked');
return $this;
}
} | Set check based on passed value. | Set check based on passed value.
| PHP | mit | um-flint/html | php | ## Code Before:
<?php
namespace UMFlint\Html\Traits;
trait Checkable
{
/**
* Helper to check an input.
*
* @author Donald Wilcox <dowilcox@umflint.edu>
* @return $this
*/
public function check()
{
$this->set('checked', 'checked');
return $this;
}
/**
* Helper to uncheck an input.
*
* @author Donald Wilcox <dowilcox@umflint.edu>
* @return $this
*/
public function uncheck()
{
$this->remove('checked');
return $this;
}
}
## Instruction:
Set check based on passed value.
## Code After:
<?php
namespace UMFlint\Html\Traits;
trait Checkable
{
/**
* Helper to check an input.
*
* @author Donald Wilcox <dowilcox@umflint.edu>
* @param bool $check
* @return $this
*/
public function check($check = true)
{
if ($check) {
$this->set('checked', 'checked');
}else {
$this->uncheck();
}
return $this;
}
/**
* Helper to uncheck an input.
*
* @author Donald Wilcox <dowilcox@umflint.edu>
* @return $this
*/
public function uncheck()
{
$this->remove('checked');
return $this;
}
} | <?php
namespace UMFlint\Html\Traits;
trait Checkable
{
/**
* Helper to check an input.
*
* @author Donald Wilcox <dowilcox@umflint.edu>
+ * @param bool $check
* @return $this
*/
- public function check()
+ public function check($check = true)
? +++++++++++++
{
+ if ($check) {
- $this->set('checked', 'checked');
+ $this->set('checked', 'checked');
? ++++
+ }else {
+ $this->uncheck();
+ }
+
return $this;
}
/**
* Helper to uncheck an input.
*
* @author Donald Wilcox <dowilcox@umflint.edu>
* @return $this
*/
public function uncheck()
{
$this->remove('checked');
return $this;
}
} | 10 | 0.3125 | 8 | 2 |
4a5e0cac25a0967f892c7ba4c0a79ce2ce49c37b | app/controllers/api/v2/stomping_grounds_controller.rb | app/controllers/api/v2/stomping_grounds_controller.rb | module Api
module V2
class StompingGroundsController < ApiController
before_action :require_authentication
#Get all the Stomping Grounds for a user
def index
stomping_grounds_hash = @traveler.stomping_grounds.map {|sg| StompingGroundSerializer.new(sg).to_hash}
render(success_response(stomping_grounds_hash))
end
def destroy
stomping_ground = @traveler.stomping_grounds.find_by(id: params[:id])
if stomping_ground
stomping_ground.delete
render(success_response(message: "Deleted"))
else
render(fail_response(status: 404, message: "Not found"))
end
end
def create
stomping_ground = StompingGround.initialize_from_google_place_attributes(params[:stomping_ground])
stomping_ground.user = @traveler
if stomping_ground.save
render(success_response(message: "Created a new Stomping Ground with id: #{stomping_ground.id}"))
else
render(fail_response(message: "Unable to create Stomping Ground"))
end
end
def update
stomping_ground = @traveler.stomping_grounds.find_by(id: params[:id])
stomping_ground.update_from_google_place_attributes(params[:stomping_ground])
end
end
end
end | module Api
module V2
class StompingGroundsController < ApiController
before_action :require_authentication
#Get all the Stomping Grounds for a user
def index
stomping_grounds_hash = @traveler.stomping_grounds.map {|sg| StompingGroundSerializer.new(sg).to_hash}
render(success_response(stomping_grounds_hash))
end
def destroy
stomping_ground = @traveler.stomping_grounds.find_by(id: params[:id])
if stomping_ground
stomping_ground.delete
render(success_response(message: "Deleted"))
else
render(fail_response(status: 404, message: "Not found"))
end
end
def create
stomping_ground = StompingGround.initialize_from_google_place_attributes(params[:stomping_ground])
stomping_ground.user = @traveler
if stomping_ground.save
render(success_response(message: "Created a new Stomping Ground with id: #{stomping_ground.id}"))
else
render(fail_response(message: "Unable to create Stomping Ground"))
end
end
def update
stomping_ground = @traveler.stomping_grounds.find_by(id: params[:id])
if stomping_ground
stomping_ground.update_from_google_place_attributes(params[:stomping_ground])
render(success_response(message: "Updated"))
else
render(fail_response(status: 404, message: "Not found"))
end
end
end
end
end | Return 200 on successful update and 404 when ID is not found for stomping ground | Return 200 on successful update and 404 when ID is not found for stomping ground
| Ruby | mit | camsys/oneclick-core,camsys/oneclick-core,camsys/oneclick-core,camsys/oneclick-core | ruby | ## Code Before:
module Api
module V2
class StompingGroundsController < ApiController
before_action :require_authentication
#Get all the Stomping Grounds for a user
def index
stomping_grounds_hash = @traveler.stomping_grounds.map {|sg| StompingGroundSerializer.new(sg).to_hash}
render(success_response(stomping_grounds_hash))
end
def destroy
stomping_ground = @traveler.stomping_grounds.find_by(id: params[:id])
if stomping_ground
stomping_ground.delete
render(success_response(message: "Deleted"))
else
render(fail_response(status: 404, message: "Not found"))
end
end
def create
stomping_ground = StompingGround.initialize_from_google_place_attributes(params[:stomping_ground])
stomping_ground.user = @traveler
if stomping_ground.save
render(success_response(message: "Created a new Stomping Ground with id: #{stomping_ground.id}"))
else
render(fail_response(message: "Unable to create Stomping Ground"))
end
end
def update
stomping_ground = @traveler.stomping_grounds.find_by(id: params[:id])
stomping_ground.update_from_google_place_attributes(params[:stomping_ground])
end
end
end
end
## Instruction:
Return 200 on successful update and 404 when ID is not found for stomping ground
## Code After:
module Api
module V2
class StompingGroundsController < ApiController
before_action :require_authentication
#Get all the Stomping Grounds for a user
def index
stomping_grounds_hash = @traveler.stomping_grounds.map {|sg| StompingGroundSerializer.new(sg).to_hash}
render(success_response(stomping_grounds_hash))
end
def destroy
stomping_ground = @traveler.stomping_grounds.find_by(id: params[:id])
if stomping_ground
stomping_ground.delete
render(success_response(message: "Deleted"))
else
render(fail_response(status: 404, message: "Not found"))
end
end
def create
stomping_ground = StompingGround.initialize_from_google_place_attributes(params[:stomping_ground])
stomping_ground.user = @traveler
if stomping_ground.save
render(success_response(message: "Created a new Stomping Ground with id: #{stomping_ground.id}"))
else
render(fail_response(message: "Unable to create Stomping Ground"))
end
end
def update
stomping_ground = @traveler.stomping_grounds.find_by(id: params[:id])
if stomping_ground
stomping_ground.update_from_google_place_attributes(params[:stomping_ground])
render(success_response(message: "Updated"))
else
render(fail_response(status: 404, message: "Not found"))
end
end
end
end
end | module Api
module V2
class StompingGroundsController < ApiController
before_action :require_authentication
#Get all the Stomping Grounds for a user
def index
stomping_grounds_hash = @traveler.stomping_grounds.map {|sg| StompingGroundSerializer.new(sg).to_hash}
render(success_response(stomping_grounds_hash))
end
def destroy
stomping_ground = @traveler.stomping_grounds.find_by(id: params[:id])
if stomping_ground
stomping_ground.delete
render(success_response(message: "Deleted"))
else
render(fail_response(status: 404, message: "Not found"))
end
end
def create
stomping_ground = StompingGround.initialize_from_google_place_attributes(params[:stomping_ground])
stomping_ground.user = @traveler
if stomping_ground.save
render(success_response(message: "Created a new Stomping Ground with id: #{stomping_ground.id}"))
else
render(fail_response(message: "Unable to create Stomping Ground"))
end
end
def update
stomping_ground = @traveler.stomping_grounds.find_by(id: params[:id])
+ if stomping_ground
- stomping_ground.update_from_google_place_attributes(params[:stomping_ground])
+ stomping_ground.update_from_google_place_attributes(params[:stomping_ground])
? ++
+ render(success_response(message: "Updated"))
+ else
+ render(fail_response(status: 404, message: "Not found"))
+ end
+
end
end
end
end | 8 | 0.205128 | 7 | 1 |
5bd2a8628e0519464bd12046ed039fb7489e50ee | README.md | README.md | Engine2D is a highly extensible barebones game engine.
Engine2D can be used for just about any type of 2D game, with existing HTML5 canvas renderer and collision detection extensions.
Documentation is available [here](http://jackdalton.org/engine2d/main/).
# CDN
Engine2D is hosted by [jsDelivr](http://www.jsdelivr.com/). The latest [minified version](https://cdn.jsdelivr.net/engine2d/latest/engine2d.min.js) and [full version](https://cdn.jsdelivr.net/engine2d/latest/engine2d.js) are both available.
Alternatively, you can download both [here](https://cdn.jsdelivr.net/engine2d/latest/engine2d.zip).
| Engine2D is a highly extensible barebones game engine.
Engine2D can be used for just about any type of 2D game, with existing HTML5 canvas renderer and collision detection extensions.
Documentation is available [here](http://jackdalton.org/engine2d/main/).
# CDN
Engine2D is hosted by [jsDelivr](http://www.jsdelivr.com/projects/engine2d). The latest [minified version](https://cdn.jsdelivr.net/engine2d/latest/engine2d.min.js) and [full version](https://cdn.jsdelivr.net/engine2d/latest/engine2d.js) are both available.
Alternatively, you can download both [here](https://cdn.jsdelivr.net/engine2d/latest/engine2d.zip).
| Make jsDelivr link point to project page. | Make jsDelivr link point to project page.
| Markdown | mit | jackdalton/engine2d,jackdalton/engine2d | markdown | ## Code Before:
Engine2D is a highly extensible barebones game engine.
Engine2D can be used for just about any type of 2D game, with existing HTML5 canvas renderer and collision detection extensions.
Documentation is available [here](http://jackdalton.org/engine2d/main/).
# CDN
Engine2D is hosted by [jsDelivr](http://www.jsdelivr.com/). The latest [minified version](https://cdn.jsdelivr.net/engine2d/latest/engine2d.min.js) and [full version](https://cdn.jsdelivr.net/engine2d/latest/engine2d.js) are both available.
Alternatively, you can download both [here](https://cdn.jsdelivr.net/engine2d/latest/engine2d.zip).
## Instruction:
Make jsDelivr link point to project page.
## Code After:
Engine2D is a highly extensible barebones game engine.
Engine2D can be used for just about any type of 2D game, with existing HTML5 canvas renderer and collision detection extensions.
Documentation is available [here](http://jackdalton.org/engine2d/main/).
# CDN
Engine2D is hosted by [jsDelivr](http://www.jsdelivr.com/projects/engine2d). The latest [minified version](https://cdn.jsdelivr.net/engine2d/latest/engine2d.min.js) and [full version](https://cdn.jsdelivr.net/engine2d/latest/engine2d.js) are both available.
Alternatively, you can download both [here](https://cdn.jsdelivr.net/engine2d/latest/engine2d.zip).
| Engine2D is a highly extensible barebones game engine.
Engine2D can be used for just about any type of 2D game, with existing HTML5 canvas renderer and collision detection extensions.
Documentation is available [here](http://jackdalton.org/engine2d/main/).
# CDN
- Engine2D is hosted by [jsDelivr](http://www.jsdelivr.com/). The latest [minified version](https://cdn.jsdelivr.net/engine2d/latest/engine2d.min.js) and [full version](https://cdn.jsdelivr.net/engine2d/latest/engine2d.js) are both available.
+ Engine2D is hosted by [jsDelivr](http://www.jsdelivr.com/projects/engine2d). The latest [minified version](https://cdn.jsdelivr.net/engine2d/latest/engine2d.min.js) and [full version](https://cdn.jsdelivr.net/engine2d/latest/engine2d.js) are both available.
? +++++++++++++++++
- Alternatively, you can download both [here](https://cdn.jsdelivr.net/engine2d/latest/engine2d.zip).
? -
+ Alternatively, you can download both [here](https://cdn.jsdelivr.net/engine2d/latest/engine2d.zip). | 4 | 0.363636 | 2 | 2 |
3adfb577f9b4a5d7f28ccac40f17c867a6f7913c | lib/is-js-module.js | lib/is-js-module.js | 'use strict';
var deferred = require('deferred')
, fs = require('fs')
, extname = require('path').extname
, hasNodeSheBang = RegExp.prototype.test.bind(/^#![\u0021-\uffff]+(?:\/node|\/env node)\s/)
, promisify = deferred.promisify
, read = promisify(fs.read)
, open = promisify(fs.open), close = promisify(fs.close);
module.exports = function (filename) {
var ext = extname(filename);
if (ext === '.js') return deferred(true);
if (ext) return deferred(false);
return open(filename, 'r')(function (fd) {
var buffer = new Buffer(100);
return read(fd, buffer, 0, 100, null)(function () {
close(fd);
return hasNodeSheBang(String(buffer));
});
});
};
| 'use strict';
var deferred = require('deferred')
, fs = require('fs')
, extname = require('path').extname
, hasNodeSheBang = RegExp.prototype.test.bind(/^#![\u0021-\uffff]+(?:\/node|\/env node)\s/)
, promisify = deferred.promisify
, read = promisify(fs.read)
, open = promisify(fs.open), close = promisify(fs.close);
module.exports = function (filename) {
var ext = extname(filename);
if (ext === '.js') return deferred(true);
if (ext === '.json') return deferred(true);
if (ext) return deferred(false);
return open(filename, 'r')(function (fd) {
var buffer = new Buffer(100);
return read(fd, buffer, 0, 100, null)(function () {
close(fd);
return hasNodeSheBang(String(buffer));
});
});
};
| Support JSOM as js module | Support JSOM as js module
| JavaScript | isc | medikoo/movejs,medikoo/rename-module | javascript | ## Code Before:
'use strict';
var deferred = require('deferred')
, fs = require('fs')
, extname = require('path').extname
, hasNodeSheBang = RegExp.prototype.test.bind(/^#![\u0021-\uffff]+(?:\/node|\/env node)\s/)
, promisify = deferred.promisify
, read = promisify(fs.read)
, open = promisify(fs.open), close = promisify(fs.close);
module.exports = function (filename) {
var ext = extname(filename);
if (ext === '.js') return deferred(true);
if (ext) return deferred(false);
return open(filename, 'r')(function (fd) {
var buffer = new Buffer(100);
return read(fd, buffer, 0, 100, null)(function () {
close(fd);
return hasNodeSheBang(String(buffer));
});
});
};
## Instruction:
Support JSOM as js module
## Code After:
'use strict';
var deferred = require('deferred')
, fs = require('fs')
, extname = require('path').extname
, hasNodeSheBang = RegExp.prototype.test.bind(/^#![\u0021-\uffff]+(?:\/node|\/env node)\s/)
, promisify = deferred.promisify
, read = promisify(fs.read)
, open = promisify(fs.open), close = promisify(fs.close);
module.exports = function (filename) {
var ext = extname(filename);
if (ext === '.js') return deferred(true);
if (ext === '.json') return deferred(true);
if (ext) return deferred(false);
return open(filename, 'r')(function (fd) {
var buffer = new Buffer(100);
return read(fd, buffer, 0, 100, null)(function () {
close(fd);
return hasNodeSheBang(String(buffer));
});
});
};
| 'use strict';
var deferred = require('deferred')
, fs = require('fs')
, extname = require('path').extname
, hasNodeSheBang = RegExp.prototype.test.bind(/^#![\u0021-\uffff]+(?:\/node|\/env node)\s/)
, promisify = deferred.promisify
, read = promisify(fs.read)
, open = promisify(fs.open), close = promisify(fs.close);
module.exports = function (filename) {
var ext = extname(filename);
if (ext === '.js') return deferred(true);
+ if (ext === '.json') return deferred(true);
if (ext) return deferred(false);
return open(filename, 'r')(function (fd) {
var buffer = new Buffer(100);
return read(fd, buffer, 0, 100, null)(function () {
close(fd);
return hasNodeSheBang(String(buffer));
});
});
}; | 1 | 0.041667 | 1 | 0 |
80f5a83364927a17bcf925260ba3e8bad706d2fb | .travis.yml | .travis.yml | language: ruby
sudo: false
cache: bundler
script: "bundle exec rake"
env:
- DATABASE_ADAPTER=sqlite3
- DATABASE_ADAPTER=postgresql
rvm:
- 2.4.1
- 2.3.4
- 2.2.7
gemfile:
- gemfiles/4.2.gemfile
- gemfiles/5.0.gemfile
| language: ruby
sudo: false
cache: bundler
script: "bundle exec rake"
env:
- DATABASE_ADAPTER=sqlite3
- DATABASE_ADAPTER=postgresql
rvm:
- 2.4.1
- 2.3.4
- 2.2.7
gemfile:
- gemfiles/4.2.gemfile
- gemfiles/5.0.gemfile
matrix:
allow_failures:
- gemfile: gemfiles/5.0.gemfile
| Allow failure of Rails 5.0 builds during v4.0 development | Allow failure of Rails 5.0 builds during v4.0 development
| YAML | mit | thoughtbot/shoulda-matchers,biow0lf/shoulda-matchers,reacuna/shoulda-matchers,guialbuk/shoulda-matchers,thoughtbot/shoulda-matchers,thoughtbot/shoulda-matchers,biow0lf/shoulda-matchers,thoughtbot/shoulda-matchers,biow0lf/shoulda-matchers,reacuna/shoulda-matchers,biow0lf/shoulda-matchers,guialbuk/shoulda-matchers,reacuna/shoulda-matchers,guialbuk/shoulda-matchers,reacuna/shoulda-matchers,guialbuk/shoulda-matchers | yaml | ## Code Before:
language: ruby
sudo: false
cache: bundler
script: "bundle exec rake"
env:
- DATABASE_ADAPTER=sqlite3
- DATABASE_ADAPTER=postgresql
rvm:
- 2.4.1
- 2.3.4
- 2.2.7
gemfile:
- gemfiles/4.2.gemfile
- gemfiles/5.0.gemfile
## Instruction:
Allow failure of Rails 5.0 builds during v4.0 development
## Code After:
language: ruby
sudo: false
cache: bundler
script: "bundle exec rake"
env:
- DATABASE_ADAPTER=sqlite3
- DATABASE_ADAPTER=postgresql
rvm:
- 2.4.1
- 2.3.4
- 2.2.7
gemfile:
- gemfiles/4.2.gemfile
- gemfiles/5.0.gemfile
matrix:
allow_failures:
- gemfile: gemfiles/5.0.gemfile
| language: ruby
sudo: false
cache: bundler
script: "bundle exec rake"
env:
- DATABASE_ADAPTER=sqlite3
- DATABASE_ADAPTER=postgresql
rvm:
- 2.4.1
- 2.3.4
- 2.2.7
gemfile:
- gemfiles/4.2.gemfile
- gemfiles/5.0.gemfile
+
+ matrix:
+ allow_failures:
+ - gemfile: gemfiles/5.0.gemfile | 4 | 0.235294 | 4 | 0 |
3cc3df47e25f4591d063411e940cd50fcffd076c | install-signature.sh | install-signature.sh | set -euo pipefail
signatureUniqueId="$(uuidgen)"
signaturesDirectory="$HOME/Library/Mail/V2/MailData/Signatures"
if [ ! -f "$signaturesDirectory/AllSignatures.plist" ]; then
>&2 echo "Could not find AllSignatures.plist in $signaturesDirectory."
exit 1
fi
/usr/libexec/PlistBuddy -c "Add :0 dict" "$signaturesDirectory/AllSignatures.plist"
/usr/libexec/PlistBuddy -c "Add :0:SignatureIsRich bool true" "$signaturesDirectory/AllSignatures.plist"
/usr/libexec/PlistBuddy -c "Add :0:SignatureName string '$1'" "$signaturesDirectory/AllSignatures.plist"
/usr/libexec/PlistBuddy -c "Add :0:SignatureUniqueId string '$signatureUniqueId'" "$signaturesDirectory/AllSignatures.plist"
cat <<EOF > "$signaturesDirectory/$signatureUniqueId.mailsignature"
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=utf-8
Message-Id: <$(uuidgen)>
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\))
EOF
cat | perl -MMIME::QuotedPrint -pe '$_=MIME::QuotedPrint::encode($_)' >> "$signaturesDirectory/$signatureUniqueId.mailsignature"
echo "Installed “$1” signature with ID $signatureUniqueId."
| set -euo pipefail
signatureUniqueId="$(uuidgen)"
signaturesDirectory="$HOME/Library/Mail/V2/MailData/Signatures"
if [ ! -f "$signaturesDirectory/AllSignatures.plist" ]; then
>&2 echo "Could not find AllSignatures.plist in $signaturesDirectory."
exit 1
fi
if [ -t 0 ]; then
>&2 echo "stdin seems to be empty."
exit 1
fi
/usr/libexec/PlistBuddy -c "Add :0 dict" "$signaturesDirectory/AllSignatures.plist"
/usr/libexec/PlistBuddy -c "Add :0:SignatureIsRich bool true" "$signaturesDirectory/AllSignatures.plist"
/usr/libexec/PlistBuddy -c "Add :0:SignatureName string '$1'" "$signaturesDirectory/AllSignatures.plist"
/usr/libexec/PlistBuddy -c "Add :0:SignatureUniqueId string '$signatureUniqueId'" "$signaturesDirectory/AllSignatures.plist"
cat <<EOF > "$signaturesDirectory/$signatureUniqueId.mailsignature"
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=utf-8
Message-Id: <$(uuidgen)>
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\))
EOF
cat | perl -MMIME::QuotedPrint -pe '$_=MIME::QuotedPrint::encode($_)' >> "$signaturesDirectory/$signatureUniqueId.mailsignature"
echo "Installed “$1” signature with ID $signatureUniqueId."
| Check if stdin is empty before continuing | Check if stdin is empty before continuing
| Shell | bsd-2-clause | SonicHedgehog/osx-mail-signature-installer | shell | ## Code Before:
set -euo pipefail
signatureUniqueId="$(uuidgen)"
signaturesDirectory="$HOME/Library/Mail/V2/MailData/Signatures"
if [ ! -f "$signaturesDirectory/AllSignatures.plist" ]; then
>&2 echo "Could not find AllSignatures.plist in $signaturesDirectory."
exit 1
fi
/usr/libexec/PlistBuddy -c "Add :0 dict" "$signaturesDirectory/AllSignatures.plist"
/usr/libexec/PlistBuddy -c "Add :0:SignatureIsRich bool true" "$signaturesDirectory/AllSignatures.plist"
/usr/libexec/PlistBuddy -c "Add :0:SignatureName string '$1'" "$signaturesDirectory/AllSignatures.plist"
/usr/libexec/PlistBuddy -c "Add :0:SignatureUniqueId string '$signatureUniqueId'" "$signaturesDirectory/AllSignatures.plist"
cat <<EOF > "$signaturesDirectory/$signatureUniqueId.mailsignature"
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=utf-8
Message-Id: <$(uuidgen)>
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\))
EOF
cat | perl -MMIME::QuotedPrint -pe '$_=MIME::QuotedPrint::encode($_)' >> "$signaturesDirectory/$signatureUniqueId.mailsignature"
echo "Installed “$1” signature with ID $signatureUniqueId."
## Instruction:
Check if stdin is empty before continuing
## Code After:
set -euo pipefail
signatureUniqueId="$(uuidgen)"
signaturesDirectory="$HOME/Library/Mail/V2/MailData/Signatures"
if [ ! -f "$signaturesDirectory/AllSignatures.plist" ]; then
>&2 echo "Could not find AllSignatures.plist in $signaturesDirectory."
exit 1
fi
if [ -t 0 ]; then
>&2 echo "stdin seems to be empty."
exit 1
fi
/usr/libexec/PlistBuddy -c "Add :0 dict" "$signaturesDirectory/AllSignatures.plist"
/usr/libexec/PlistBuddy -c "Add :0:SignatureIsRich bool true" "$signaturesDirectory/AllSignatures.plist"
/usr/libexec/PlistBuddy -c "Add :0:SignatureName string '$1'" "$signaturesDirectory/AllSignatures.plist"
/usr/libexec/PlistBuddy -c "Add :0:SignatureUniqueId string '$signatureUniqueId'" "$signaturesDirectory/AllSignatures.plist"
cat <<EOF > "$signaturesDirectory/$signatureUniqueId.mailsignature"
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=utf-8
Message-Id: <$(uuidgen)>
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\))
EOF
cat | perl -MMIME::QuotedPrint -pe '$_=MIME::QuotedPrint::encode($_)' >> "$signaturesDirectory/$signatureUniqueId.mailsignature"
echo "Installed “$1” signature with ID $signatureUniqueId."
| set -euo pipefail
signatureUniqueId="$(uuidgen)"
signaturesDirectory="$HOME/Library/Mail/V2/MailData/Signatures"
if [ ! -f "$signaturesDirectory/AllSignatures.plist" ]; then
>&2 echo "Could not find AllSignatures.plist in $signaturesDirectory."
+ exit 1
+ fi
+
+ if [ -t 0 ]; then
+ >&2 echo "stdin seems to be empty."
exit 1
fi
/usr/libexec/PlistBuddy -c "Add :0 dict" "$signaturesDirectory/AllSignatures.plist"
/usr/libexec/PlistBuddy -c "Add :0:SignatureIsRich bool true" "$signaturesDirectory/AllSignatures.plist"
/usr/libexec/PlistBuddy -c "Add :0:SignatureName string '$1'" "$signaturesDirectory/AllSignatures.plist"
/usr/libexec/PlistBuddy -c "Add :0:SignatureUniqueId string '$signatureUniqueId'" "$signaturesDirectory/AllSignatures.plist"
cat <<EOF > "$signaturesDirectory/$signatureUniqueId.mailsignature"
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=utf-8
Message-Id: <$(uuidgen)>
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\))
EOF
cat | perl -MMIME::QuotedPrint -pe '$_=MIME::QuotedPrint::encode($_)' >> "$signaturesDirectory/$signatureUniqueId.mailsignature"
echo "Installed “$1” signature with ID $signatureUniqueId." | 5 | 0.185185 | 5 | 0 |
7e78678067e008f4f7f404308d50b6943cfab0f3 | README.md | README.md |
This repo contains the default XAML application for the #WebOnPi project. The majority of the code was borrowed from [the Windows IoT Core samples](https://github.com/ms-iot/samples/tree/develop/IoTCoreDefaultApp).
##Other
The samples have been validated using these tools:
* [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=534599)
* [Visual Studio 2015 Update 1](http://go.microsoft.com/fwlink/?LinkID=691134)
For more information about the #WebOnPi project, see our online documentation [here](http://aka.ms/webonpi).
For more information about Windows 10 IoT Core, see our online documentation [here](http://windowsondevices.com).
|
This repo contains the default XAML application for the [#WebOnPi](https://twitter.com/search?f=tweets&vertical=default&q=%23WebOnPi) project. The majority of the code was borrowed from [the Windows IoT Core samples](https://github.com/ms-iot/samples/tree/develop/IoTCoreDefaultApp).
##Other
The samples have been validated using these tools:
* [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=534599)
* [Visual Studio 2015 Update 1](http://go.microsoft.com/fwlink/?LinkID=691134)
For more information about the #WebOnPi project, see our online documentation [here](http://aka.ms/webonpi).
For more information about Windows 10 IoT Core, see our online documentation [here](http://windowsondevices.com).
| Add link to hash on twitter. | Add link to hash on twitter. | Markdown | mit | MicrosoftEdge/WebOnPi,MicrosoftEdge/WebOnPi | markdown | ## Code Before:
This repo contains the default XAML application for the #WebOnPi project. The majority of the code was borrowed from [the Windows IoT Core samples](https://github.com/ms-iot/samples/tree/develop/IoTCoreDefaultApp).
##Other
The samples have been validated using these tools:
* [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=534599)
* [Visual Studio 2015 Update 1](http://go.microsoft.com/fwlink/?LinkID=691134)
For more information about the #WebOnPi project, see our online documentation [here](http://aka.ms/webonpi).
For more information about Windows 10 IoT Core, see our online documentation [here](http://windowsondevices.com).
## Instruction:
Add link to hash on twitter.
## Code After:
This repo contains the default XAML application for the [#WebOnPi](https://twitter.com/search?f=tweets&vertical=default&q=%23WebOnPi) project. The majority of the code was borrowed from [the Windows IoT Core samples](https://github.com/ms-iot/samples/tree/develop/IoTCoreDefaultApp).
##Other
The samples have been validated using these tools:
* [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=534599)
* [Visual Studio 2015 Update 1](http://go.microsoft.com/fwlink/?LinkID=691134)
For more information about the #WebOnPi project, see our online documentation [here](http://aka.ms/webonpi).
For more information about Windows 10 IoT Core, see our online documentation [here](http://windowsondevices.com).
|
- This repo contains the default XAML application for the #WebOnPi project. The majority of the code was borrowed from [the Windows IoT Core samples](https://github.com/ms-iot/samples/tree/develop/IoTCoreDefaultApp).
+ This repo contains the default XAML application for the [#WebOnPi](https://twitter.com/search?f=tweets&vertical=default&q=%23WebOnPi) project. The majority of the code was borrowed from [the Windows IoT Core samples](https://github.com/ms-iot/samples/tree/develop/IoTCoreDefaultApp).
##Other
The samples have been validated using these tools:
* [Visual Studio 2015](http://go.microsoft.com/fwlink/?LinkID=534599)
* [Visual Studio 2015 Update 1](http://go.microsoft.com/fwlink/?LinkID=691134)
For more information about the #WebOnPi project, see our online documentation [here](http://aka.ms/webonpi).
For more information about Windows 10 IoT Core, see our online documentation [here](http://windowsondevices.com).
| 2 | 0.125 | 1 | 1 |
4bf8531bb36d3a911d8b30d127981f90d47d3ce1 | vim/after/syntax/julia.vim | vim/after/syntax/julia.vim | if g:colors_name == 'sonokai'
hi! link Boolean Blue
hi! link Character Green
hi! link Float Blue
hi! link Function Purple
hi! link Macro Orange
hi! link Number Blue
hi! link String Green
hi! link juliaConstNum Blue
hi! link juliaComplexUnit Blue
hi! link juliaEuler Blue
hi! link juliaFunctionCall Blue
endif
| if g:colors_name == 'sonokai'
hi! link Boolean Green
hi! link Character Green
hi! link Constant Green
hi! link Float Green
hi! link Function Purple
hi! link Identifier Green
hi! link Macro Orange
hi! link Number Green
hi! link String Green
hi! link juliaFunctionCall Blue
elseif (g:colors_name == 'gruvbox-material' || g:colors_name == 'everforest')
hi! link Boolean Aqua
hi! link Character Aqua
hi! link Float Aqua
hi! link Function Purple
hi! link Identifier Aqua
hi! link Macro Orange
hi! link Number Aqua
hi! link String Aqua
hi! link Type Blue
hi! link juliaConstNum Aqua
hi! link juliaComplexUnit Aqua
hi! link juliaEuler Aqua
hi! link juliaFunctionCall Blue
endif
| Adjust colors for Julia syntax in vim | Adjust colors for Julia syntax in vim
| VimL | mit | pabloferz/dotfiles | viml | ## Code Before:
if g:colors_name == 'sonokai'
hi! link Boolean Blue
hi! link Character Green
hi! link Float Blue
hi! link Function Purple
hi! link Macro Orange
hi! link Number Blue
hi! link String Green
hi! link juliaConstNum Blue
hi! link juliaComplexUnit Blue
hi! link juliaEuler Blue
hi! link juliaFunctionCall Blue
endif
## Instruction:
Adjust colors for Julia syntax in vim
## Code After:
if g:colors_name == 'sonokai'
hi! link Boolean Green
hi! link Character Green
hi! link Constant Green
hi! link Float Green
hi! link Function Purple
hi! link Identifier Green
hi! link Macro Orange
hi! link Number Green
hi! link String Green
hi! link juliaFunctionCall Blue
elseif (g:colors_name == 'gruvbox-material' || g:colors_name == 'everforest')
hi! link Boolean Aqua
hi! link Character Aqua
hi! link Float Aqua
hi! link Function Purple
hi! link Identifier Aqua
hi! link Macro Orange
hi! link Number Aqua
hi! link String Aqua
hi! link Type Blue
hi! link juliaConstNum Aqua
hi! link juliaComplexUnit Aqua
hi! link juliaEuler Aqua
hi! link juliaFunctionCall Blue
endif
| if g:colors_name == 'sonokai'
- hi! link Boolean Blue
- hi! link Character Green
- hi! link Float Blue
- hi! link Function Purple
- hi! link Macro Orange
- hi! link Number Blue
- hi! link String Green
- hi! link juliaConstNum Blue
- hi! link juliaComplexUnit Blue
- hi! link juliaEuler Blue
+ hi! link Boolean Green
+ hi! link Character Green
+ hi! link Constant Green
+ hi! link Float Green
+ hi! link Function Purple
+ hi! link Identifier Green
+ hi! link Macro Orange
+ hi! link Number Green
+ hi! link String Green
+
hi! link juliaFunctionCall Blue
+
+ elseif (g:colors_name == 'gruvbox-material' || g:colors_name == 'everforest')
+
+ hi! link Boolean Aqua
+ hi! link Character Aqua
+ hi! link Float Aqua
+ hi! link Function Purple
+ hi! link Identifier Aqua
+ hi! link Macro Orange
+ hi! link Number Aqua
+ hi! link String Aqua
+ hi! link Type Blue
+
+ hi! link juliaConstNum Aqua
+ hi! link juliaComplexUnit Aqua
+ hi! link juliaEuler Aqua
+ hi! link juliaFunctionCall Blue
+
endif | 38 | 2.714286 | 28 | 10 |
a895e5b8175989febd2ed963663385546d815b45 | web/concrete/src/Foundation/Service/ProviderList.php | web/concrete/src/Foundation/Service/ProviderList.php | <?php
namespace Concrete\Core\Foundation\Service;
use \Concrete\Core\Application\Application;
class ProviderList {
public function __construct(Application $app) {
$this->app = $app;
}
/**
* Loads and registers a class ServiceProvider class.
* @param string $class
* @return void
*/
public function registerProvider($class) {
$this->createInstance($class)->register();
}
/**
* Class for creating an instance of a passed class string, override this to add extra functionality
*
* @param string $class The class name
* @return \Concrete\Core\Foundation\Service\Provider
*/
protected function createInstance($class)
{
return new $class($this->app);
}
/**
* Registers an array of service group classes.
* @param array $groups
* @return void
*/
public function registerProviders($groups) {
foreach($groups as $group) {
$this->registerProvider($group);
}
}
/**
* We are not allowed to serialize $this->app
*/
public function __sleep() {
unset($this->app);
}
}
| <?php
namespace Concrete\Core\Foundation\Service;
use \Concrete\Core\Application\Application;
class ProviderList {
public function __construct(Application $app) {
$this->app = $app;
}
/**
* Loads and registers a class ServiceProvider class.
* @param string $class
* @return void
*/
public function registerProvider($class) {
$this->createInstance($class)->register();
}
/**
* Creates an instance of the passed class string, override this to change how providers are instantiated
*
* @param string $class The class name
* @return \Concrete\Core\Foundation\Service\Provider
*/
protected function createInstance($class)
{
return new $class($this->app);
}
/**
* Registers an array of service group classes.
* @param array $groups
* @return void
*/
public function registerProviders($groups) {
foreach($groups as $group) {
$this->registerProvider($group);
}
}
/**
* We are not allowed to serialize $this->app
*/
public function __sleep() {
unset($this->app);
}
}
| Update createInstance documentation to be more clear | Docs: Update createInstance documentation to be more clear
Former-commit-id: c79279a20551c2cac39e2b2d74a8941914b62d98
Former-commit-id: 935f0112079632ec2940db2ca281707f2007815f | PHP | mit | acliss19xx/concrete5,rikzuiderlicht/concrete5,triplei/concrete5-8,haeflimi/concrete5,deek87/concrete5,hissy/concrete5,acliss19xx/concrete5,olsgreen/concrete5,biplobice/concrete5,triplei/concrete5-8,jaromirdalecky/concrete5,rikzuiderlicht/concrete5,deek87/concrete5,mlocati/concrete5,MrKarlDilkington/concrete5,MrKarlDilkington/concrete5,biplobice/concrete5,mainio/concrete5,hissy/concrete5,rikzuiderlicht/concrete5,mlocati/concrete5,jaromirdalecky/concrete5,deek87/concrete5,hissy/concrete5,mainio/concrete5,MrKarlDilkington/concrete5,mlocati/concrete5,a3020/concrete5,mlocati/concrete5,olsgreen/concrete5,haeflimi/concrete5,a3020/concrete5,haeflimi/concrete5,KorvinSzanto/concrete5,KorvinSzanto/concrete5,mainio/concrete5,deek87/concrete5,olsgreen/concrete5,KorvinSzanto/concrete5,concrete5/concrete5,acliss19xx/concrete5,hissy/concrete5,triplei/concrete5-8,concrete5/concrete5,jaromirdalecky/concrete5,haeflimi/concrete5,jaromirdalecky/concrete5,biplobice/concrete5,concrete5/concrete5,concrete5/concrete5,biplobice/concrete5 | php | ## Code Before:
<?php
namespace Concrete\Core\Foundation\Service;
use \Concrete\Core\Application\Application;
class ProviderList {
public function __construct(Application $app) {
$this->app = $app;
}
/**
* Loads and registers a class ServiceProvider class.
* @param string $class
* @return void
*/
public function registerProvider($class) {
$this->createInstance($class)->register();
}
/**
* Class for creating an instance of a passed class string, override this to add extra functionality
*
* @param string $class The class name
* @return \Concrete\Core\Foundation\Service\Provider
*/
protected function createInstance($class)
{
return new $class($this->app);
}
/**
* Registers an array of service group classes.
* @param array $groups
* @return void
*/
public function registerProviders($groups) {
foreach($groups as $group) {
$this->registerProvider($group);
}
}
/**
* We are not allowed to serialize $this->app
*/
public function __sleep() {
unset($this->app);
}
}
## Instruction:
Docs: Update createInstance documentation to be more clear
Former-commit-id: c79279a20551c2cac39e2b2d74a8941914b62d98
Former-commit-id: 935f0112079632ec2940db2ca281707f2007815f
## Code After:
<?php
namespace Concrete\Core\Foundation\Service;
use \Concrete\Core\Application\Application;
class ProviderList {
public function __construct(Application $app) {
$this->app = $app;
}
/**
* Loads and registers a class ServiceProvider class.
* @param string $class
* @return void
*/
public function registerProvider($class) {
$this->createInstance($class)->register();
}
/**
* Creates an instance of the passed class string, override this to change how providers are instantiated
*
* @param string $class The class name
* @return \Concrete\Core\Foundation\Service\Provider
*/
protected function createInstance($class)
{
return new $class($this->app);
}
/**
* Registers an array of service group classes.
* @param array $groups
* @return void
*/
public function registerProviders($groups) {
foreach($groups as $group) {
$this->registerProvider($group);
}
}
/**
* We are not allowed to serialize $this->app
*/
public function __sleep() {
unset($this->app);
}
}
| <?php
namespace Concrete\Core\Foundation\Service;
use \Concrete\Core\Application\Application;
class ProviderList {
public function __construct(Application $app) {
$this->app = $app;
}
/**
* Loads and registers a class ServiceProvider class.
* @param string $class
* @return void
*/
public function registerProvider($class) {
$this->createInstance($class)->register();
}
/**
- * Class for creating an instance of a passed class string, override this to add extra functionality
+ * Creates an instance of the passed class string, override this to change how providers are instantiated
*
* @param string $class The class name
* @return \Concrete\Core\Foundation\Service\Provider
*/
protected function createInstance($class)
{
return new $class($this->app);
}
/**
* Registers an array of service group classes.
* @param array $groups
* @return void
*/
public function registerProviders($groups) {
foreach($groups as $group) {
$this->registerProvider($group);
}
}
/**
* We are not allowed to serialize $this->app
*/
public function __sleep() {
unset($this->app);
}
} | 2 | 0.04 | 1 | 1 |
804d9a3cd801da3b89032935a6c341389834e44e | priv/repo/migrations/20180211153304_create_open_pantry_user_managed_facility.exs | priv/repo/migrations/20180211153304_create_open_pantry_user_managed_facility.exs | defmodule OpenPantry.Repo.Migrations.CreateOpenPantry.OpenPantry.UserManagedFacility do
use Ecto.Migration
import Ecto.Query
alias OpenPantry.UserManagedFacility
def up do
create table(:user_managed_facilities) do
add :user_id, references(:users, on_delete: :nothing)
add :facility_id, references(:facilities, on_delete: :nothing)
timestamps()
end
create index(:user_managed_facilities, [:user_id])
create index(:user_managed_facilities, [:facility_id])
flush
now = DateTime.utc_now
uf =
from(u in "users", select: [u.id, u.facility_id])
|> OpenPantry.Repo.all
|> Enum.map(fn [u,f] ->
%{user_id: u, facility_id: f, inserted_at: now, updated_at: now}
end)
OpenPantry.Repo.insert_all(UserManagedFacility, uf)
end
def down do
for uf <- OpenPantry.Repo.all(UserManagedFacility) do
from(u in "users",
update: [set: [facility_id: ^uf.facility_id]],
where: u.id == ^uf.user_id)
|> OpenPantry.Repo.update_all([])
end
drop table(:user_managed_facilities)
end
end
| defmodule OpenPantry.Repo.Migrations.CreateOpenPantry.OpenPantry.UserManagedFacility do
use Ecto.Migration
import Ecto.Query
alias OpenPantry.UserManagedFacility
def up do
create table(:user_managed_facilities) do
add :user_id, references(:users, on_delete: :nothing)
add :facility_id, references(:facilities, on_delete: :nothing)
timestamps()
end
create index(:user_managed_facilities, [:user_id])
create index(:user_managed_facilities, [:facility_id])
flush
now = DateTime.utc_now
uf =
from(u in "users", select: [u.id, u.facility_id])
|> OpenPantry.Repo.all
|> Enum.map(fn [u,f] ->
%{user_id: u, facility_id: f, inserted_at: now, updated_at: now}
end)
OpenPantry.Repo.insert_all(UserManagedFacility, uf)
end
def down do
drop table(:user_managed_facilities)
end
end
| Delete useless down migration for user_managed_facilities. | Delete useless down migration for user_managed_facilities.
| Elixir | mit | fcapovilla/open_pantry,fcapovilla/open_pantry,fcapovilla/open_pantry,openpantry/open_pantry,MasbiaSoupKitchenNetwork/open_pantry,MasbiaSoupKitchenNetwork/open_pantry,MasbiaSoupKitchenNetwork/open_pantry,openpantry/open_pantry,MasbiaSoupKitchenNetwork/open_pantry,fcapovilla/open_pantry,openpantry/open_pantry,openpantry/open_pantry | elixir | ## Code Before:
defmodule OpenPantry.Repo.Migrations.CreateOpenPantry.OpenPantry.UserManagedFacility do
use Ecto.Migration
import Ecto.Query
alias OpenPantry.UserManagedFacility
def up do
create table(:user_managed_facilities) do
add :user_id, references(:users, on_delete: :nothing)
add :facility_id, references(:facilities, on_delete: :nothing)
timestamps()
end
create index(:user_managed_facilities, [:user_id])
create index(:user_managed_facilities, [:facility_id])
flush
now = DateTime.utc_now
uf =
from(u in "users", select: [u.id, u.facility_id])
|> OpenPantry.Repo.all
|> Enum.map(fn [u,f] ->
%{user_id: u, facility_id: f, inserted_at: now, updated_at: now}
end)
OpenPantry.Repo.insert_all(UserManagedFacility, uf)
end
def down do
for uf <- OpenPantry.Repo.all(UserManagedFacility) do
from(u in "users",
update: [set: [facility_id: ^uf.facility_id]],
where: u.id == ^uf.user_id)
|> OpenPantry.Repo.update_all([])
end
drop table(:user_managed_facilities)
end
end
## Instruction:
Delete useless down migration for user_managed_facilities.
## Code After:
defmodule OpenPantry.Repo.Migrations.CreateOpenPantry.OpenPantry.UserManagedFacility do
use Ecto.Migration
import Ecto.Query
alias OpenPantry.UserManagedFacility
def up do
create table(:user_managed_facilities) do
add :user_id, references(:users, on_delete: :nothing)
add :facility_id, references(:facilities, on_delete: :nothing)
timestamps()
end
create index(:user_managed_facilities, [:user_id])
create index(:user_managed_facilities, [:facility_id])
flush
now = DateTime.utc_now
uf =
from(u in "users", select: [u.id, u.facility_id])
|> OpenPantry.Repo.all
|> Enum.map(fn [u,f] ->
%{user_id: u, facility_id: f, inserted_at: now, updated_at: now}
end)
OpenPantry.Repo.insert_all(UserManagedFacility, uf)
end
def down do
drop table(:user_managed_facilities)
end
end
| defmodule OpenPantry.Repo.Migrations.CreateOpenPantry.OpenPantry.UserManagedFacility do
use Ecto.Migration
import Ecto.Query
alias OpenPantry.UserManagedFacility
def up do
create table(:user_managed_facilities) do
add :user_id, references(:users, on_delete: :nothing)
add :facility_id, references(:facilities, on_delete: :nothing)
timestamps()
end
create index(:user_managed_facilities, [:user_id])
create index(:user_managed_facilities, [:facility_id])
flush
now = DateTime.utc_now
uf =
from(u in "users", select: [u.id, u.facility_id])
|> OpenPantry.Repo.all
|> Enum.map(fn [u,f] ->
%{user_id: u, facility_id: f, inserted_at: now, updated_at: now}
end)
OpenPantry.Repo.insert_all(UserManagedFacility, uf)
end
def down do
- for uf <- OpenPantry.Repo.all(UserManagedFacility) do
- from(u in "users",
- update: [set: [facility_id: ^uf.facility_id]],
- where: u.id == ^uf.user_id)
- |> OpenPantry.Repo.update_all([])
- end
-
drop table(:user_managed_facilities)
end
end | 7 | 0.179487 | 0 | 7 |
2b0fe3699e8e831672538dd1e43b83675abe94d3 | pages/index.html | pages/index.html | <!DOCTYPE html>
<html>
<head>
<title>Grand Rapids Park and Recreation Investments</title>
</head>
<body style="margin:0px;padding:0px;overflow:hidden">
<center>
<div style="position: relative; float: right;">
<iframe src="https://render.githubusercontent.com/view/geojson?url=https://raw.githubusercontent.com/friendlycode/gr-parks/gh-pages/parks.geojson" frameborder="0" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;height:550px;width:1000px;"></iframe>
</div>
</center>
</body>
</html>
| <!DOCTYPE html>
<html>
<head>
<title>Grand Rapids Park and Recreation Investments</title>
</head>
<body style="margin:0px;padding:0px;overflow:hidden">
<a href="map.html" target="_blank">Alternate version</a>
<center>
<div style="position: relative; float: right;">
<iframe src="https://render.githubusercontent.com/view/geojson?url=https://raw.githubusercontent.com/friendlycode/gr-parks/gh-pages/parks.geojson" frameborder="0" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;height:550px;width:1000px;"></iframe>
</div>
</center>
</body>
</html>
| Add link to new custom-javascript version | Add link to new custom-javascript version
The other version uses the leaflet map-rendering engine directly in order to access the map's popups and the geojson data. | HTML | mit | friendlycode/gr-parks,friendlycode/gr-parks,friendlycode/gr-parks,friendlycode/gr-parks | html | ## Code Before:
<!DOCTYPE html>
<html>
<head>
<title>Grand Rapids Park and Recreation Investments</title>
</head>
<body style="margin:0px;padding:0px;overflow:hidden">
<center>
<div style="position: relative; float: right;">
<iframe src="https://render.githubusercontent.com/view/geojson?url=https://raw.githubusercontent.com/friendlycode/gr-parks/gh-pages/parks.geojson" frameborder="0" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;height:550px;width:1000px;"></iframe>
</div>
</center>
</body>
</html>
## Instruction:
Add link to new custom-javascript version
The other version uses the leaflet map-rendering engine directly in order to access the map's popups and the geojson data.
## Code After:
<!DOCTYPE html>
<html>
<head>
<title>Grand Rapids Park and Recreation Investments</title>
</head>
<body style="margin:0px;padding:0px;overflow:hidden">
<a href="map.html" target="_blank">Alternate version</a>
<center>
<div style="position: relative; float: right;">
<iframe src="https://render.githubusercontent.com/view/geojson?url=https://raw.githubusercontent.com/friendlycode/gr-parks/gh-pages/parks.geojson" frameborder="0" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;height:550px;width:1000px;"></iframe>
</div>
</center>
</body>
</html>
| <!DOCTYPE html>
<html>
<head>
<title>Grand Rapids Park and Recreation Investments</title>
</head>
<body style="margin:0px;padding:0px;overflow:hidden">
+ <a href="map.html" target="_blank">Alternate version</a>
<center>
<div style="position: relative; float: right;">
<iframe src="https://render.githubusercontent.com/view/geojson?url=https://raw.githubusercontent.com/friendlycode/gr-parks/gh-pages/parks.geojson" frameborder="0" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;height:550px;width:1000px;"></iframe>
</div>
</center>
</body>
</html> | 1 | 0.076923 | 1 | 0 |
7d2b1a9f480a0de95a1dbf06102a8f6ce39a4019 | examples/webgl-vector-layer.html | examples/webgl-vector-layer.html | ---
layout: example.html
title: WebGL Vector Layer
shortdesc: Example of a vector layer rendered using WebGL
docs: >
The ecoregions are loaded from a GeoJSON file. Information about ecoregions is shown on hover and click.
tags: "vector, geojson, webgl"
---
<div id="map" class="map"></div>
<div id="info"> </div>
| ---
layout: example.html
title: WebGL Vector Layer
shortdesc: Example of a vector layer rendered using WebGL
docs: >
The ecoregions are loaded from a GeoJSON file.
tags: "vector, geojson, webgl"
experimental: true
---
<div id="map" class="map"></div>
<div id="info"> </div>
| Make the newWebGL vector example experimental | Make the newWebGL vector example experimental
And do not mention hit detection for now
| HTML | bsd-2-clause | bjornharrtell/ol3,bjornharrtell/ol3,openlayers/openlayers,ahocevar/openlayers,stweil/openlayers,ahocevar/openlayers,openlayers/openlayers,bjornharrtell/ol3,stweil/openlayers,stweil/openlayers,ahocevar/openlayers,openlayers/openlayers | html | ## Code Before:
---
layout: example.html
title: WebGL Vector Layer
shortdesc: Example of a vector layer rendered using WebGL
docs: >
The ecoregions are loaded from a GeoJSON file. Information about ecoregions is shown on hover and click.
tags: "vector, geojson, webgl"
---
<div id="map" class="map"></div>
<div id="info"> </div>
## Instruction:
Make the newWebGL vector example experimental
And do not mention hit detection for now
## Code After:
---
layout: example.html
title: WebGL Vector Layer
shortdesc: Example of a vector layer rendered using WebGL
docs: >
The ecoregions are loaded from a GeoJSON file.
tags: "vector, geojson, webgl"
experimental: true
---
<div id="map" class="map"></div>
<div id="info"> </div>
| ---
layout: example.html
title: WebGL Vector Layer
shortdesc: Example of a vector layer rendered using WebGL
docs: >
- The ecoregions are loaded from a GeoJSON file. Information about ecoregions is shown on hover and click.
+ The ecoregions are loaded from a GeoJSON file.
tags: "vector, geojson, webgl"
+ experimental: true
---
<div id="map" class="map"></div>
<div id="info"> </div> | 3 | 0.3 | 2 | 1 |
a8dfc0faf8c912bc06e33eb94b342af890b9480d | src/App.js | src/App.js | /**
* The root component that wraps the main app component with all
* data-related components such as `ApolloProvider`.
* This component works on all platforms.
* @flow
*/
import React, { Component } from 'react';
import {
} from 'react-native';
import { createStore, combineReducers, applyMiddleware, compose } from 'redux';
import ApolloClient, { createNetworkInterface } from 'apollo-client';
import ApolloProvider from 'react-apollo/ApolloProvider';
import reducers from './reducers';
// App container that provides navigation props and viewer data.
import Spoors from './containers/Spoors';
const networkInterface = createNetworkInterface('/api');
const client = new ApolloClient({
networkInterface
});
// We use our own Redux store, so we combine Apollo with it.
const store = createStore(
combineReducers({
apollo: client.reducer(),
...reducers
}),
{}, // initial state
compose(
applyMiddleware(client.middleware()),
// If you are using the devToolsExtension, you can add it here also
window.devToolsExtension ? window.devToolsExtension() : f => f,
)
);
class App extends Component {
render() {
return (
<ApolloProvider store={store} client={client}>
<Spoors />
</ApolloProvider>
);
}
}
export default App; | /**
* The root component that wraps the main app component with all
* data-related components such as `ApolloProvider`.
* This component works on all platforms.
* @flow
*/
import React, { Component } from 'react';
import {
} from 'react-native';
import { createStore, combineReducers, applyMiddleware, compose } from 'redux';
import ApolloClient, { createNetworkInterface, addTypename } from 'apollo-client';
import ApolloProvider from 'react-apollo/ApolloProvider';
import reducers from './reducers';
// App container that provides navigation props and viewer data.
import Spoors from './containers/Spoors';
const networkInterface = createNetworkInterface('/api');
const client = new ApolloClient({
networkInterface,
// Apollo transformer to automatically add `__typename` to all queries.
queryTransformer: addTypename,
// Normalize ID for different object types for Apollo caching.
dataIdFromObject: (result) => {
if (result.id && result.__typename) {
return result.__typename + result.id;
}
return null;
}
});
// We use our own Redux store, so we combine Apollo with it.
const store = createStore(
combineReducers({
apollo: client.reducer(),
...reducers
}),
{}, // initial state
compose(
applyMiddleware(client.middleware()),
// If you are using the devToolsExtension, you can add it here also
window.devToolsExtension ? window.devToolsExtension() : f => f,
)
);
class App extends Component {
render() {
return (
<ApolloProvider store={store} client={client}>
<Spoors />
</ApolloProvider>
);
}
}
export default App; | Add sample configuration for normalizing ID | Add sample configuration for normalizing ID
| JavaScript | mit | vietcode/Spoors,vietcode/Spoors,vietcode/Spoors,vietcode/Spoors,vietcode/Spoors | javascript | ## Code Before:
/**
* The root component that wraps the main app component with all
* data-related components such as `ApolloProvider`.
* This component works on all platforms.
* @flow
*/
import React, { Component } from 'react';
import {
} from 'react-native';
import { createStore, combineReducers, applyMiddleware, compose } from 'redux';
import ApolloClient, { createNetworkInterface } from 'apollo-client';
import ApolloProvider from 'react-apollo/ApolloProvider';
import reducers from './reducers';
// App container that provides navigation props and viewer data.
import Spoors from './containers/Spoors';
const networkInterface = createNetworkInterface('/api');
const client = new ApolloClient({
networkInterface
});
// We use our own Redux store, so we combine Apollo with it.
const store = createStore(
combineReducers({
apollo: client.reducer(),
...reducers
}),
{}, // initial state
compose(
applyMiddleware(client.middleware()),
// If you are using the devToolsExtension, you can add it here also
window.devToolsExtension ? window.devToolsExtension() : f => f,
)
);
class App extends Component {
render() {
return (
<ApolloProvider store={store} client={client}>
<Spoors />
</ApolloProvider>
);
}
}
export default App;
## Instruction:
Add sample configuration for normalizing ID
## Code After:
/**
* The root component that wraps the main app component with all
* data-related components such as `ApolloProvider`.
* This component works on all platforms.
* @flow
*/
import React, { Component } from 'react';
import {
} from 'react-native';
import { createStore, combineReducers, applyMiddleware, compose } from 'redux';
import ApolloClient, { createNetworkInterface, addTypename } from 'apollo-client';
import ApolloProvider from 'react-apollo/ApolloProvider';
import reducers from './reducers';
// App container that provides navigation props and viewer data.
import Spoors from './containers/Spoors';
const networkInterface = createNetworkInterface('/api');
const client = new ApolloClient({
networkInterface,
// Apollo transformer to automatically add `__typename` to all queries.
queryTransformer: addTypename,
// Normalize ID for different object types for Apollo caching.
dataIdFromObject: (result) => {
if (result.id && result.__typename) {
return result.__typename + result.id;
}
return null;
}
});
// We use our own Redux store, so we combine Apollo with it.
const store = createStore(
combineReducers({
apollo: client.reducer(),
...reducers
}),
{}, // initial state
compose(
applyMiddleware(client.middleware()),
// If you are using the devToolsExtension, you can add it here also
window.devToolsExtension ? window.devToolsExtension() : f => f,
)
);
class App extends Component {
render() {
return (
<ApolloProvider store={store} client={client}>
<Spoors />
</ApolloProvider>
);
}
}
export default App; | /**
* The root component that wraps the main app component with all
* data-related components such as `ApolloProvider`.
* This component works on all platforms.
* @flow
*/
import React, { Component } from 'react';
import {
} from 'react-native';
import { createStore, combineReducers, applyMiddleware, compose } from 'redux';
- import ApolloClient, { createNetworkInterface } from 'apollo-client';
+ import ApolloClient, { createNetworkInterface, addTypename } from 'apollo-client';
? +++++++++++++
import ApolloProvider from 'react-apollo/ApolloProvider';
import reducers from './reducers';
// App container that provides navigation props and viewer data.
import Spoors from './containers/Spoors';
const networkInterface = createNetworkInterface('/api');
const client = new ApolloClient({
- networkInterface
+ networkInterface,
? +
+ // Apollo transformer to automatically add `__typename` to all queries.
+ queryTransformer: addTypename,
+ // Normalize ID for different object types for Apollo caching.
+ dataIdFromObject: (result) => {
+ if (result.id && result.__typename) {
+ return result.__typename + result.id;
+ }
+ return null;
+ }
});
// We use our own Redux store, so we combine Apollo with it.
const store = createStore(
combineReducers({
apollo: client.reducer(),
...reducers
}),
{}, // initial state
compose(
applyMiddleware(client.middleware()),
// If you are using the devToolsExtension, you can add it here also
window.devToolsExtension ? window.devToolsExtension() : f => f,
)
);
class App extends Component {
render() {
return (
<ApolloProvider store={store} client={client}>
<Spoors />
</ApolloProvider>
);
}
}
export default App; | 13 | 0.26 | 11 | 2 |
06cfac8496066654d48361a6094bde889177695c | package.json | package.json | {
"build:global": "skate",
"name": "skatejs",
"description": "Skate is a library built on top of the W3C web component specs that enables you to write functional and performant web components with a very small footprint.",
"license": "MIT",
"author": "Trey Shugart <treshugart@gmail.com> (http://treshugart.github.io)",
"repository": {
"type": "git",
"url": "https://github.com/skatejs/skatejs"
},
"main": "dist/index.js",
"jsnext:main": "src/index.js",
"keywords": [
"components",
"custom",
"custom-elements",
"elements",
"web",
"web-components"
],
"files": [
"dist",
"src"
],
"dependencies": {
"incremental-dom": "0.4.1"
},
"devDependencies": {
"es6-shim": "0.35.1",
"eslint": "3.0.1",
"skatejs-build": "5.0.1",
"webcomponents.js": "webcomponents/webcomponentsjs#fb43208"
},
"scripts": {
"prepublish": "rollup --config rollup.config.js && webpack --config webpack.config.js",
"test": "karma start --single-run"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"version": "1.0.0-beta.7"
}
| {
"build:global": "skate",
"name": "skatejs",
"description": "Skate is a library built on top of the W3C web component specs that enables you to write functional and performant web components with a very small footprint.",
"license": "MIT",
"author": "Trey Shugart <treshugart@gmail.com> (http://treshugart.github.io)",
"repository": {
"type": "git",
"url": "https://github.com/skatejs/skatejs"
},
"main": "dist/index.js",
"jsnext:main": "src/index.js",
"keywords": [
"components",
"custom",
"custom-elements",
"elements",
"web",
"web-components"
],
"files": [
"dist",
"src"
],
"dependencies": {
"incremental-dom": "0.4.1"
},
"devDependencies": {
"es6-shim": "0.35.1",
"eslint": "3.0.1",
"skatejs-build": "5.0.1"
},
"scripts": {
"prepublish": "rollup --config rollup.config.js && webpack --config webpack.config.js",
"test": "karma start --single-run"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"version": "1.0.0-beta.7"
}
| Remove dependency on the v1 custom element polyfill branch as we're using the v0 polyfill for | chore: Remove dependency on the v1 custom element polyfill branch as we're using the v0 polyfill for
#652
| JSON | mit | skatejs/skatejs,skatejs/skatejs,chrisdarroch/skatejs,chrisdarroch/skatejs,skatejs/skatejs | json | ## Code Before:
{
"build:global": "skate",
"name": "skatejs",
"description": "Skate is a library built on top of the W3C web component specs that enables you to write functional and performant web components with a very small footprint.",
"license": "MIT",
"author": "Trey Shugart <treshugart@gmail.com> (http://treshugart.github.io)",
"repository": {
"type": "git",
"url": "https://github.com/skatejs/skatejs"
},
"main": "dist/index.js",
"jsnext:main": "src/index.js",
"keywords": [
"components",
"custom",
"custom-elements",
"elements",
"web",
"web-components"
],
"files": [
"dist",
"src"
],
"dependencies": {
"incremental-dom": "0.4.1"
},
"devDependencies": {
"es6-shim": "0.35.1",
"eslint": "3.0.1",
"skatejs-build": "5.0.1",
"webcomponents.js": "webcomponents/webcomponentsjs#fb43208"
},
"scripts": {
"prepublish": "rollup --config rollup.config.js && webpack --config webpack.config.js",
"test": "karma start --single-run"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"version": "1.0.0-beta.7"
}
## Instruction:
chore: Remove dependency on the v1 custom element polyfill branch as we're using the v0 polyfill for
#652
## Code After:
{
"build:global": "skate",
"name": "skatejs",
"description": "Skate is a library built on top of the W3C web component specs that enables you to write functional and performant web components with a very small footprint.",
"license": "MIT",
"author": "Trey Shugart <treshugart@gmail.com> (http://treshugart.github.io)",
"repository": {
"type": "git",
"url": "https://github.com/skatejs/skatejs"
},
"main": "dist/index.js",
"jsnext:main": "src/index.js",
"keywords": [
"components",
"custom",
"custom-elements",
"elements",
"web",
"web-components"
],
"files": [
"dist",
"src"
],
"dependencies": {
"incremental-dom": "0.4.1"
},
"devDependencies": {
"es6-shim": "0.35.1",
"eslint": "3.0.1",
"skatejs-build": "5.0.1"
},
"scripts": {
"prepublish": "rollup --config rollup.config.js && webpack --config webpack.config.js",
"test": "karma start --single-run"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"version": "1.0.0-beta.7"
}
| {
"build:global": "skate",
"name": "skatejs",
"description": "Skate is a library built on top of the W3C web component specs that enables you to write functional and performant web components with a very small footprint.",
"license": "MIT",
"author": "Trey Shugart <treshugart@gmail.com> (http://treshugart.github.io)",
"repository": {
"type": "git",
"url": "https://github.com/skatejs/skatejs"
},
"main": "dist/index.js",
"jsnext:main": "src/index.js",
"keywords": [
"components",
"custom",
"custom-elements",
"elements",
"web",
"web-components"
],
"files": [
"dist",
"src"
],
"dependencies": {
"incremental-dom": "0.4.1"
},
"devDependencies": {
"es6-shim": "0.35.1",
"eslint": "3.0.1",
- "skatejs-build": "5.0.1",
? -
+ "skatejs-build": "5.0.1"
- "webcomponents.js": "webcomponents/webcomponentsjs#fb43208"
},
"scripts": {
"prepublish": "rollup --config rollup.config.js && webpack --config webpack.config.js",
"test": "karma start --single-run"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"version": "1.0.0-beta.7"
} | 3 | 0.068182 | 1 | 2 |
bbdee15f0405f0fb9e3fd026ac925c3e78339e89 | _layouts/api.html | _layouts/api.html | {% include header.html %}
<div class="container {{ page.class }}">
<div class="row">
<div class="col-md-3">
<div class="panel panel-default" data-spy="affix" data-offset-top="125" data-offset-bottom="579">
<div class="panel-heading">API oversikt</div>
<div class="list-group">{%for api in site.data.api %}
<a class="list-group-item" href="#{{ api.anchor }}">{{ api.title }}</a></li>
{% endfor %}</div>
</div>
</div>
<div class="col-md-9">
{% include title.html %}
{{ content }}
</div>
</div>
</div>
{% include jumbo-trone.html align="right" color="green" type="partners" %}
{% include footer.html %}
| {% include header.html %}
<div class="container {{ page.class }}">
<div class="row">
<div class="col-md-3">
<div class="panel panel-default" data-spy="affix" data-offset-top="125" data-offset-bottom="579">
<div class="panel-heading"><h3 class="panel-title">API oversikt</h3></div>
<div class="list-group">{%for api in site.data.api %}
<a class="list-group-item" href="#{{ api.anchor }}">{{ api.title }}</a></li>
{% endfor %}</div>
</div>
</div>
<div class="col-md-9">
{% include title.html %}
{{ content }}
</div>
</div>
</div>
{% include jumbo-trone.html align="right" color="green" type="partners" %}
{% include footer.html %}
| Add better title to API menue | Add better title to API menue
| HTML | mit | Turistforeningen/www.nasjonalturbase.no,Turistforeningen/www.nasjonalturbase.no | html | ## Code Before:
{% include header.html %}
<div class="container {{ page.class }}">
<div class="row">
<div class="col-md-3">
<div class="panel panel-default" data-spy="affix" data-offset-top="125" data-offset-bottom="579">
<div class="panel-heading">API oversikt</div>
<div class="list-group">{%for api in site.data.api %}
<a class="list-group-item" href="#{{ api.anchor }}">{{ api.title }}</a></li>
{% endfor %}</div>
</div>
</div>
<div class="col-md-9">
{% include title.html %}
{{ content }}
</div>
</div>
</div>
{% include jumbo-trone.html align="right" color="green" type="partners" %}
{% include footer.html %}
## Instruction:
Add better title to API menue
## Code After:
{% include header.html %}
<div class="container {{ page.class }}">
<div class="row">
<div class="col-md-3">
<div class="panel panel-default" data-spy="affix" data-offset-top="125" data-offset-bottom="579">
<div class="panel-heading"><h3 class="panel-title">API oversikt</h3></div>
<div class="list-group">{%for api in site.data.api %}
<a class="list-group-item" href="#{{ api.anchor }}">{{ api.title }}</a></li>
{% endfor %}</div>
</div>
</div>
<div class="col-md-9">
{% include title.html %}
{{ content }}
</div>
</div>
</div>
{% include jumbo-trone.html align="right" color="green" type="partners" %}
{% include footer.html %}
| {% include header.html %}
<div class="container {{ page.class }}">
<div class="row">
<div class="col-md-3">
<div class="panel panel-default" data-spy="affix" data-offset-top="125" data-offset-bottom="579">
- <div class="panel-heading">API oversikt</div>
+ <div class="panel-heading"><h3 class="panel-title">API oversikt</h3></div>
? ++++++++++++++++++++++++ +++++
<div class="list-group">{%for api in site.data.api %}
<a class="list-group-item" href="#{{ api.anchor }}">{{ api.title }}</a></li>
{% endfor %}</div>
</div>
</div>
<div class="col-md-9">
{% include title.html %}
{{ content }}
</div>
</div>
</div>
{% include jumbo-trone.html align="right" color="green" type="partners" %}
{% include footer.html %}
| 2 | 0.090909 | 1 | 1 |
fdaa40d2f13f05c03425c076fe383c3f102c978f | toro.gemspec | toro.gemspec | require File.expand_path('../lib/toro/version', __FILE__)
Gem::Specification.new do |s|
s.authors = ['Tom Benner']
s.email = ['tombenner@gmail.com']
s.description = s.summary = %q{Transparent, extensible background processing for Ruby & PostgreSQL}
s.homepage = 'https://github.com/tombenner/toro'
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- spec/*`.split("\n")
s.name = 'toro'
s.require_paths = ['lib']
s.version = Toro::VERSION
s.license = 'MIT'
s.add_dependency 'celluloid', '>= 0.15.2'
s.add_dependency 'rails', '>= 3.0'
s.add_dependency 'pg'
s.add_dependency 'nested-hstore'
# Monitor
s.add_dependency 'slim'
s.add_dependency 'jquery-datatables-rails', '>= 2.1.10.0.2'
s.add_dependency 'rails-datatables'
s.add_development_dependency 'appraisal'
s.add_development_dependency 'rspec'
end
| require File.expand_path('../lib/toro/version', __FILE__)
Gem::Specification.new do |s|
s.authors = ['Tom Benner']
s.email = ['tombenner@gmail.com']
s.description = s.summary = %q{Transparent, extensible background processing for Ruby & PostgreSQL}
s.homepage = 'https://github.com/tombenner/toro'
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- spec/*`.split("\n")
s.name = 'toro'
s.require_paths = ['lib']
s.version = Toro::VERSION
s.license = 'MIT'
s.add_dependency 'celluloid', '>= 0.15.2'
s.add_dependency 'rails', '>= 3.0'
s.add_dependency 'pg'
s.add_dependency 'activerecord-postgres-hstore'
s.add_dependency 'nested-hstore'
# Monitor
s.add_dependency 'slim'
s.add_dependency 'jquery-datatables-rails', '>= 2.1.10.0.2'
s.add_dependency 'rails-datatables'
s.add_development_dependency 'appraisal'
s.add_development_dependency 'rspec'
end
| Add dependency on activerecord-postgres-hstore, which is no longer a dependency of nested-hstore | Add dependency on activerecord-postgres-hstore, which is no longer a dependency of nested-hstore
| Ruby | mit | tombenner/toro | ruby | ## Code Before:
require File.expand_path('../lib/toro/version', __FILE__)
Gem::Specification.new do |s|
s.authors = ['Tom Benner']
s.email = ['tombenner@gmail.com']
s.description = s.summary = %q{Transparent, extensible background processing for Ruby & PostgreSQL}
s.homepage = 'https://github.com/tombenner/toro'
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- spec/*`.split("\n")
s.name = 'toro'
s.require_paths = ['lib']
s.version = Toro::VERSION
s.license = 'MIT'
s.add_dependency 'celluloid', '>= 0.15.2'
s.add_dependency 'rails', '>= 3.0'
s.add_dependency 'pg'
s.add_dependency 'nested-hstore'
# Monitor
s.add_dependency 'slim'
s.add_dependency 'jquery-datatables-rails', '>= 2.1.10.0.2'
s.add_dependency 'rails-datatables'
s.add_development_dependency 'appraisal'
s.add_development_dependency 'rspec'
end
## Instruction:
Add dependency on activerecord-postgres-hstore, which is no longer a dependency of nested-hstore
## Code After:
require File.expand_path('../lib/toro/version', __FILE__)
Gem::Specification.new do |s|
s.authors = ['Tom Benner']
s.email = ['tombenner@gmail.com']
s.description = s.summary = %q{Transparent, extensible background processing for Ruby & PostgreSQL}
s.homepage = 'https://github.com/tombenner/toro'
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- spec/*`.split("\n")
s.name = 'toro'
s.require_paths = ['lib']
s.version = Toro::VERSION
s.license = 'MIT'
s.add_dependency 'celluloid', '>= 0.15.2'
s.add_dependency 'rails', '>= 3.0'
s.add_dependency 'pg'
s.add_dependency 'activerecord-postgres-hstore'
s.add_dependency 'nested-hstore'
# Monitor
s.add_dependency 'slim'
s.add_dependency 'jquery-datatables-rails', '>= 2.1.10.0.2'
s.add_dependency 'rails-datatables'
s.add_development_dependency 'appraisal'
s.add_development_dependency 'rspec'
end
| require File.expand_path('../lib/toro/version', __FILE__)
Gem::Specification.new do |s|
s.authors = ['Tom Benner']
s.email = ['tombenner@gmail.com']
s.description = s.summary = %q{Transparent, extensible background processing for Ruby & PostgreSQL}
s.homepage = 'https://github.com/tombenner/toro'
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- spec/*`.split("\n")
s.name = 'toro'
s.require_paths = ['lib']
s.version = Toro::VERSION
s.license = 'MIT'
s.add_dependency 'celluloid', '>= 0.15.2'
s.add_dependency 'rails', '>= 3.0'
s.add_dependency 'pg'
+ s.add_dependency 'activerecord-postgres-hstore'
s.add_dependency 'nested-hstore'
# Monitor
s.add_dependency 'slim'
s.add_dependency 'jquery-datatables-rails', '>= 2.1.10.0.2'
s.add_dependency 'rails-datatables'
s.add_development_dependency 'appraisal'
s.add_development_dependency 'rspec'
end | 1 | 0.035714 | 1 | 0 |
d36947c4058da4930b3a579ead6eb1f846fdd1b4 | bower.json | bower.json | {
"name": "gint-security",
"version": "0.1.0-dev",
"main": "./bin/gint-security.js",
"devDependencies": {
"angular-mocks": "1.2.0-rc.2",
"jquery": "1.10.2"
},
"dependencies": {
"angular": "1.2.0-rc.2",
"angular-resource": "1.2.0-rc.2",
"angular-route": "1.2.0-rc.2",
"gint-util": "git@github.com:Gintellect/gint-util.git#v0.2.0",
"gint-ui": "git@github.com:Gintellect/gint-ui.git#v0.1.0",
"underscore": "~1.5.2"
}
}
| {
"name": "gint-security",
"version": "0.1.0-dev",
"main": "./bin/gint-security.js",
"devDependencies": {
"angular-mocks": "1.2.3",
"jquery": "1.10.2"
},
"dependencies": {
"angular": "1.2.3",
"angular-resource": "1.2.3",
"angular-route": "1.2.3",
"gint-util": "git@github.com:Gintellect/gint-util.git#v0.2.0",
"gint-ui": "git@github.com:Gintellect/gint-ui.git#v0.1.0",
"underscore": "~1.5.2"
}
}
| Upgrade to latest stable angular | Upgrade to latest stable angular
| JSON | apache-2.0 | GoIncremental/gi-security,GoIncremental/gi-security | json | ## Code Before:
{
"name": "gint-security",
"version": "0.1.0-dev",
"main": "./bin/gint-security.js",
"devDependencies": {
"angular-mocks": "1.2.0-rc.2",
"jquery": "1.10.2"
},
"dependencies": {
"angular": "1.2.0-rc.2",
"angular-resource": "1.2.0-rc.2",
"angular-route": "1.2.0-rc.2",
"gint-util": "git@github.com:Gintellect/gint-util.git#v0.2.0",
"gint-ui": "git@github.com:Gintellect/gint-ui.git#v0.1.0",
"underscore": "~1.5.2"
}
}
## Instruction:
Upgrade to latest stable angular
## Code After:
{
"name": "gint-security",
"version": "0.1.0-dev",
"main": "./bin/gint-security.js",
"devDependencies": {
"angular-mocks": "1.2.3",
"jquery": "1.10.2"
},
"dependencies": {
"angular": "1.2.3",
"angular-resource": "1.2.3",
"angular-route": "1.2.3",
"gint-util": "git@github.com:Gintellect/gint-util.git#v0.2.0",
"gint-ui": "git@github.com:Gintellect/gint-ui.git#v0.1.0",
"underscore": "~1.5.2"
}
}
| {
"name": "gint-security",
"version": "0.1.0-dev",
"main": "./bin/gint-security.js",
"devDependencies": {
- "angular-mocks": "1.2.0-rc.2",
? ^^^^^^
+ "angular-mocks": "1.2.3",
? ^
"jquery": "1.10.2"
},
"dependencies": {
- "angular": "1.2.0-rc.2",
? ^^^^^^
+ "angular": "1.2.3",
? ^
- "angular-resource": "1.2.0-rc.2",
? ^^^^^^
+ "angular-resource": "1.2.3",
? ^
- "angular-route": "1.2.0-rc.2",
? ^^^^^^
+ "angular-route": "1.2.3",
? ^
"gint-util": "git@github.com:Gintellect/gint-util.git#v0.2.0",
"gint-ui": "git@github.com:Gintellect/gint-ui.git#v0.1.0",
"underscore": "~1.5.2"
}
} | 8 | 0.470588 | 4 | 4 |
3ecd5ec638c8ed07494236caad55ef73fa965789 | views/partials/table_list.jade | views/partials/table_list.jade | table.table.table-bordered.table-hover
thead
tr
th Tables in database
tbody
each table in tables
tr
td= table.name
| .list-group.table-list
each table in tables
a(href='#', data-table-name=table.name).list-group-item= table.name
| Use list group instead of table when listing tables in database | Use list group instead of table when listing tables in database
| Jade | mit | tiere/turbo-couscous,tiere/turbo-couscous | jade | ## Code Before:
table.table.table-bordered.table-hover
thead
tr
th Tables in database
tbody
each table in tables
tr
td= table.name
## Instruction:
Use list group instead of table when listing tables in database
## Code After:
.list-group.table-list
each table in tables
a(href='#', data-table-name=table.name).list-group-item= table.name
| + .list-group.table-list
- table.table.table-bordered.table-hover
- thead
- tr
- th Tables in database
- tbody
- each table in tables
? --
+ each table in tables
+ a(href='#', data-table-name=table.name).list-group-item= table.name
- tr
- td= table.name | 11 | 1.375 | 3 | 8 |
78224d6c9690b3c5e560f0908351775eeea94707 | README.md | README.md | go-es_core
==========
(https://github.com/fire/go-es_core/)
This is a rewrite of the es_core C++ application by Timothee Besset.
| go-es_core
==========
(https://github.com/fire/go-es_core/)
This is a rewrite of the es_core C++ application by Timothee Besset.
## Artifacts
go-es_core depends on llcoi, SDL2 and nanomsg.
```
bin
Run\Bin\*.dll
Run\Bin\Release\*.dll
C:\MinGW\bin\libgcc_s_sjlj-1.dll
C:\MinGW\bin\libstdc++-6.dll
src\github.com\fire\go-es_core\README.md
src\github.com\fire\go-es_core\LICENSE
```
### Teamcity dependencies
```
es_core :: Nanomsg :: Nanomsg
bin => Run/bin
include => Run/include
lib/*.a => Run/lib
es_core :: SDL2 :: SDL Binaries
bin => Run/bin
include => Run/include
lib => Run/lib
llcoi :: llcoi
bin => Run/bin
include => Run/include
lib => Run/lib
```
## Git clone
```
git clone https://github.com/fire/go-es_core.git
```
## Teamcity environmental variables
CPATH %system.teamcity.build.workingDir%/Run/include
GOPATH %system.teamcity.build.workingDir%
LIBRARY_PATH %system.teamcity.build.workingDir%/Run/lib
env.PATH %env.PATH%;C:\tools\git\cmd
## Install go-es_core
go get -u github.com/fire/go-es_core/es_core
go install github.com/fire/go-es_core/es_core
| Update readme with build instructions. | Update readme with build instructions. | Markdown | mit | fire/go-es_core,fire/go-es_core | markdown | ## Code Before:
go-es_core
==========
(https://github.com/fire/go-es_core/)
This is a rewrite of the es_core C++ application by Timothee Besset.
## Instruction:
Update readme with build instructions.
## Code After:
go-es_core
==========
(https://github.com/fire/go-es_core/)
This is a rewrite of the es_core C++ application by Timothee Besset.
## Artifacts
go-es_core depends on llcoi, SDL2 and nanomsg.
```
bin
Run\Bin\*.dll
Run\Bin\Release\*.dll
C:\MinGW\bin\libgcc_s_sjlj-1.dll
C:\MinGW\bin\libstdc++-6.dll
src\github.com\fire\go-es_core\README.md
src\github.com\fire\go-es_core\LICENSE
```
### Teamcity dependencies
```
es_core :: Nanomsg :: Nanomsg
bin => Run/bin
include => Run/include
lib/*.a => Run/lib
es_core :: SDL2 :: SDL Binaries
bin => Run/bin
include => Run/include
lib => Run/lib
llcoi :: llcoi
bin => Run/bin
include => Run/include
lib => Run/lib
```
## Git clone
```
git clone https://github.com/fire/go-es_core.git
```
## Teamcity environmental variables
CPATH %system.teamcity.build.workingDir%/Run/include
GOPATH %system.teamcity.build.workingDir%
LIBRARY_PATH %system.teamcity.build.workingDir%/Run/lib
env.PATH %env.PATH%;C:\tools\git\cmd
## Install go-es_core
go get -u github.com/fire/go-es_core/es_core
go install github.com/fire/go-es_core/es_core
| go-es_core
==========
(https://github.com/fire/go-es_core/)
This is a rewrite of the es_core C++ application by Timothee Besset.
+
+ ## Artifacts
+
+ go-es_core depends on llcoi, SDL2 and nanomsg.
+
+ ```
+ bin
+ Run\Bin\*.dll
+ Run\Bin\Release\*.dll
+ C:\MinGW\bin\libgcc_s_sjlj-1.dll
+ C:\MinGW\bin\libstdc++-6.dll
+ src\github.com\fire\go-es_core\README.md
+ src\github.com\fire\go-es_core\LICENSE
+ ```
+
+ ### Teamcity dependencies
+ ```
+ es_core :: Nanomsg :: Nanomsg
+ bin => Run/bin
+ include => Run/include
+ lib/*.a => Run/lib
+
+ es_core :: SDL2 :: SDL Binaries
+ bin => Run/bin
+ include => Run/include
+ lib => Run/lib
+
+ llcoi :: llcoi
+ bin => Run/bin
+ include => Run/include
+ lib => Run/lib
+ ```
+ ## Git clone
+
+ ```
+ git clone https://github.com/fire/go-es_core.git
+ ```
+
+ ## Teamcity environmental variables
+
+ CPATH %system.teamcity.build.workingDir%/Run/include
+ GOPATH %system.teamcity.build.workingDir%
+ LIBRARY_PATH %system.teamcity.build.workingDir%/Run/lib
+ env.PATH %env.PATH%;C:\tools\git\cmd
+
+
+ ## Install go-es_core
+ go get -u github.com/fire/go-es_core/es_core
+ go install github.com/fire/go-es_core/es_core | 49 | 8.166667 | 49 | 0 |
74659f1068e4547fe7c2130b36c948b5e885a51e | spec/models/intervention_role_spec.rb | spec/models/intervention_role_spec.rb | require 'rails_helper'
describe InterventionRole do
it { should validate_presence_of(:name).with_message(/nom/) }
it { should validate_presence_of(:short_name).with_message(/nom court/) }
let(:intervention_role) { create(:intervention_role) }
describe "#destroy" do
subject { intervention_role.destroy }
context "and not used in an intervention" do
it { should be_truthy }
end
context "and used in an intervention" do
before do
i = make_intervention_with_firemen(:station => Station.make!)
i.fireman_interventions.first.intervention_role = intervention_role
i.save
end
it { should be_falsey }
end
end
end
| require 'rails_helper'
describe InterventionRole do
it { should validate_presence_of(:name).with_message(/nom/) }
it { should validate_presence_of(:short_name).with_message(/nom court/) }
let(:intervention_role) { create(:intervention_role) }
describe "#destroy" do
subject { intervention_role.destroy }
context "and not used in an intervention" do
it { should be_truthy }
end
context "and used in an intervention" do
before do
i = create(:intervention)
i.fireman_interventions.first.intervention_role = intervention_role
i.save
end
it { should be_falsey }
end
end
end
| Move intervention_role spec to factory_girl. | Move intervention_role spec to factory_girl.
| Ruby | mit | osaris/sp-gestion,osaris/sp-gestion,osaris/sp-gestion | ruby | ## Code Before:
require 'rails_helper'
describe InterventionRole do
it { should validate_presence_of(:name).with_message(/nom/) }
it { should validate_presence_of(:short_name).with_message(/nom court/) }
let(:intervention_role) { create(:intervention_role) }
describe "#destroy" do
subject { intervention_role.destroy }
context "and not used in an intervention" do
it { should be_truthy }
end
context "and used in an intervention" do
before do
i = make_intervention_with_firemen(:station => Station.make!)
i.fireman_interventions.first.intervention_role = intervention_role
i.save
end
it { should be_falsey }
end
end
end
## Instruction:
Move intervention_role spec to factory_girl.
## Code After:
require 'rails_helper'
describe InterventionRole do
it { should validate_presence_of(:name).with_message(/nom/) }
it { should validate_presence_of(:short_name).with_message(/nom court/) }
let(:intervention_role) { create(:intervention_role) }
describe "#destroy" do
subject { intervention_role.destroy }
context "and not used in an intervention" do
it { should be_truthy }
end
context "and used in an intervention" do
before do
i = create(:intervention)
i.fireman_interventions.first.intervention_role = intervention_role
i.save
end
it { should be_falsey }
end
end
end
| require 'rails_helper'
describe InterventionRole do
it { should validate_presence_of(:name).with_message(/nom/) }
it { should validate_presence_of(:short_name).with_message(/nom court/) }
let(:intervention_role) { create(:intervention_role) }
describe "#destroy" do
subject { intervention_role.destroy }
context "and not used in an intervention" do
it { should be_truthy }
end
context "and used in an intervention" do
before do
- i = make_intervention_with_firemen(:station => Station.make!)
+ i = create(:intervention)
i.fireman_interventions.first.intervention_role = intervention_role
i.save
end
it { should be_falsey }
end
end
end | 2 | 0.064516 | 1 | 1 |
bbfa78445dac30573f5a7da7b37b5ad226244d5c | src/_utilities.css | src/_utilities.css | /*
UTILITIES
*/
.aspect-ratio {
height: 0;
padding-top: 56.25%;
position: relative;
}
.aspect-ratio--object {
bottom: 0;
height: 100%;
left: 0;
position: absolute;
right: 0;
top: 0;
width: 100%;
z-index: 100;
}
.overflow-container {
overflow-y: scroll;
}
.center {
margin-right: auto;
margin-left: auto;
}
| /*
UTILITIES
*/
.aspect-ratio {
height: 0;
padding-top: 56.25%;
position: relative;
}
.aspect-ratio--object {
bottom: 0;
height: 100%;
left: 0;
position: absolute;
right: 0;
top: 0;
width: 100%;
z-index: 100;
}
.overflow-container {
overflow-y: scroll;
}
.center {
margin-right: auto;
margin-left: auto;
}
.square-25 { padding-top: 25%; }
.square-50 { padding-top: 50%; }
@media (--breakpoint-not-small){
.square-25-ns { padding-top: 25%; }
.square-50-ns { padding-top: 50%; }
}
@media (--breakpoint-medium){
.square-25-m { padding-top: 25%; }
.square-50-m { padding-top: 50%; }
}
@media (--breakpoint-large){
.square-25-l { padding-top: 25%; }
.square-50-l { padding-top: 50%; }
}
| Add some responsive utilities for setting the aspect ratio. | Add some responsive utilities for setting the aspect ratio.
| CSS | mit | getfrank/tachyons,fenderdigital/css-utilities,matyikriszta/moonlit-landing-page,topherauyeung/portfolio,topherauyeung/portfolio,tachyons-css/tachyons,cwonrails/tachyons,topherauyeung/portfolio,pietgeursen/pietgeursen.github.io,fenderdigital/css-utilities | css | ## Code Before:
/*
UTILITIES
*/
.aspect-ratio {
height: 0;
padding-top: 56.25%;
position: relative;
}
.aspect-ratio--object {
bottom: 0;
height: 100%;
left: 0;
position: absolute;
right: 0;
top: 0;
width: 100%;
z-index: 100;
}
.overflow-container {
overflow-y: scroll;
}
.center {
margin-right: auto;
margin-left: auto;
}
## Instruction:
Add some responsive utilities for setting the aspect ratio.
## Code After:
/*
UTILITIES
*/
.aspect-ratio {
height: 0;
padding-top: 56.25%;
position: relative;
}
.aspect-ratio--object {
bottom: 0;
height: 100%;
left: 0;
position: absolute;
right: 0;
top: 0;
width: 100%;
z-index: 100;
}
.overflow-container {
overflow-y: scroll;
}
.center {
margin-right: auto;
margin-left: auto;
}
.square-25 { padding-top: 25%; }
.square-50 { padding-top: 50%; }
@media (--breakpoint-not-small){
.square-25-ns { padding-top: 25%; }
.square-50-ns { padding-top: 50%; }
}
@media (--breakpoint-medium){
.square-25-m { padding-top: 25%; }
.square-50-m { padding-top: 50%; }
}
@media (--breakpoint-large){
.square-25-l { padding-top: 25%; }
.square-50-l { padding-top: 50%; }
}
| /*
UTILITIES
*/
.aspect-ratio {
height: 0;
padding-top: 56.25%;
position: relative;
}
+
.aspect-ratio--object {
bottom: 0;
height: 100%;
left: 0;
position: absolute;
right: 0;
top: 0;
width: 100%;
z-index: 100;
}
.overflow-container {
overflow-y: scroll;
}
.center {
margin-right: auto;
margin-left: auto;
}
+ .square-25 { padding-top: 25%; }
+ .square-50 { padding-top: 50%; }
+
+ @media (--breakpoint-not-small){
+ .square-25-ns { padding-top: 25%; }
+ .square-50-ns { padding-top: 50%; }
+ }
+
+ @media (--breakpoint-medium){
+ .square-25-m { padding-top: 25%; }
+ .square-50-m { padding-top: 50%; }
+ }
+
+ @media (--breakpoint-large){
+ .square-25-l { padding-top: 25%; }
+ .square-50-l { padding-top: 50%; }
+ } | 18 | 0.545455 | 18 | 0 |
c9d861ed96f5625cfb7f290b680bbbba0a70ce05 | docs/environment.yml | docs/environment.yml | name: fsspec
channels:
- defaults
- conda-forge
dependencies:
- python=3.6
- paramiko
- requests
| name: fsspec
channels:
- defaults
- conda-forge
dependencies:
- python=3.6
- paramiko
- requests
- numpydoc
| Add numpydoc to rtd requirements | Add numpydoc to rtd requirements
| YAML | bsd-3-clause | fsspec/filesystem_spec,fsspec/filesystem_spec,intake/filesystem_spec | yaml | ## Code Before:
name: fsspec
channels:
- defaults
- conda-forge
dependencies:
- python=3.6
- paramiko
- requests
## Instruction:
Add numpydoc to rtd requirements
## Code After:
name: fsspec
channels:
- defaults
- conda-forge
dependencies:
- python=3.6
- paramiko
- requests
- numpydoc
| name: fsspec
channels:
- defaults
- conda-forge
dependencies:
- python=3.6
- paramiko
- requests
+ - numpydoc | 1 | 0.125 | 1 | 0 |
3f278b033952c9de448f1ac2555c3f79aa6cefd0 | spec/nc_first_fail_spec.rb | spec/nc_first_fail_spec.rb | require 'nc_first_fail'
describe NcFirstFail do
let(:formatter) { NcFirstFail.new(StringIO.new) }
let(:current_dir) { File.basename(File.expand_path '.') }
let(:example) { double 'example' }
let(:example2) { double 'example2' }
let(:failure) { "\u26D4" }
let(:exception) { 'exception' }
let(:description) { 'description' }
before do
example.should_receive(:metadata).any_number_of_times.and_return({:full_description => description})
example.should_receive(:exception).any_number_of_times.and_return(exception)
end
it 'notifies the first failure only' do
TerminalNotifier.should_receive(:notify).with("#{description}\n#{exception}",
:title => "#{failure} #{current_dir}: Failure"
)
formatter.example_failed(example)
formatter.example_failed(example2)
end
it "doesn't notify in the end if there has been any failures" do
TerminalNotifier.should_not_receive(:notify)
formatter.dump_summary(0.0001, 2, 1, 0)
end
end
| require 'nc_first_fail'
describe NcFirstFail do
let(:formatter) { NcFirstFail.new(StringIO.new) }
let(:current_dir) { File.basename(File.expand_path '.') }
let(:example) { double 'example' }
let(:example2) { double 'example2' }
let(:failure) { "\u26D4" }
let(:exception) { 'exception' }
let(:description) { 'description' }
it 'notifies the first failure only' do
example.stub(:metadata).and_return({:full_description => description})
example.stub(:exception).and_return(exception)
TerminalNotifier.should_receive(:notify).with("#{description}\n#{exception}",
:title => "#{failure} #{current_dir}: Failure"
)
formatter.example_failed(example)
formatter.example_failed(example2)
end
it "doesn't notify in the end if there has been any failures" do
TerminalNotifier.should_not_receive(:notify)
formatter.dump_summary(0.0001, 2, 1, 0)
end
end
| Replace `any_number_of_times` usages with `stub`s | Replace `any_number_of_times` usages with `stub`s
| Ruby | mit | twe4ked/rspec-nc | ruby | ## Code Before:
require 'nc_first_fail'
describe NcFirstFail do
let(:formatter) { NcFirstFail.new(StringIO.new) }
let(:current_dir) { File.basename(File.expand_path '.') }
let(:example) { double 'example' }
let(:example2) { double 'example2' }
let(:failure) { "\u26D4" }
let(:exception) { 'exception' }
let(:description) { 'description' }
before do
example.should_receive(:metadata).any_number_of_times.and_return({:full_description => description})
example.should_receive(:exception).any_number_of_times.and_return(exception)
end
it 'notifies the first failure only' do
TerminalNotifier.should_receive(:notify).with("#{description}\n#{exception}",
:title => "#{failure} #{current_dir}: Failure"
)
formatter.example_failed(example)
formatter.example_failed(example2)
end
it "doesn't notify in the end if there has been any failures" do
TerminalNotifier.should_not_receive(:notify)
formatter.dump_summary(0.0001, 2, 1, 0)
end
end
## Instruction:
Replace `any_number_of_times` usages with `stub`s
## Code After:
require 'nc_first_fail'
describe NcFirstFail do
let(:formatter) { NcFirstFail.new(StringIO.new) }
let(:current_dir) { File.basename(File.expand_path '.') }
let(:example) { double 'example' }
let(:example2) { double 'example2' }
let(:failure) { "\u26D4" }
let(:exception) { 'exception' }
let(:description) { 'description' }
it 'notifies the first failure only' do
example.stub(:metadata).and_return({:full_description => description})
example.stub(:exception).and_return(exception)
TerminalNotifier.should_receive(:notify).with("#{description}\n#{exception}",
:title => "#{failure} #{current_dir}: Failure"
)
formatter.example_failed(example)
formatter.example_failed(example2)
end
it "doesn't notify in the end if there has been any failures" do
TerminalNotifier.should_not_receive(:notify)
formatter.dump_summary(0.0001, 2, 1, 0)
end
end
| require 'nc_first_fail'
describe NcFirstFail do
let(:formatter) { NcFirstFail.new(StringIO.new) }
let(:current_dir) { File.basename(File.expand_path '.') }
let(:example) { double 'example' }
let(:example2) { double 'example2' }
let(:failure) { "\u26D4" }
let(:exception) { 'exception' }
let(:description) { 'description' }
- before do
+ it 'notifies the first failure only' do
- example.should_receive(:metadata).any_number_of_times.and_return({:full_description => description})
? ^^ ^^^^^^^^^^ --------------------
+ example.stub(:metadata).and_return({:full_description => description})
? ^ ^
+ example.stub(:exception).and_return(exception)
- example.should_receive(:exception).any_number_of_times.and_return(exception)
- end
- it 'notifies the first failure only' do
TerminalNotifier.should_receive(:notify).with("#{description}\n#{exception}",
:title => "#{failure} #{current_dir}: Failure"
)
formatter.example_failed(example)
formatter.example_failed(example2)
end
it "doesn't notify in the end if there has been any failures" do
TerminalNotifier.should_not_receive(:notify)
formatter.dump_summary(0.0001, 2, 1, 0)
end
end | 8 | 0.25 | 3 | 5 |
b901d84be016070f13449da3893f633e2d84e2b5 | src/utils/strings.js | src/utils/strings.js | /* global window */
/**
* Measure rendered width of string
* @param {String} str -> the string to measure
* @param {String} font -> https://developer.mozilla.org/en-US/docs/Web/CSS/font
* @param {CanvasRenderingContext2D} [canvasContext]
* @return {number}
*/
export const getRenderedStringWidth = (str = '', font = '12px Verdana', canvasContext) => {
if (!canvasContext && !window) {
return 0;
}
const context = canvasContext || window.document.createElement('canvas').getContext('2d');
context.font = font;
// see https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics
const metrics = context.measureText(str);
return Math.ceil(metrics.width);
};
| /* global window */
/**
* Measure rendered width of string
* @param {String} str -> the string to measure
* @param {String} font -> https://developer.mozilla.org/en-US/docs/Web/CSS/font
* @param {CanvasRenderingContext2D} [canvasContext]
* @return {number}
*/
export const getRenderedStringWidth = (str = '', font = '12px Verdana', canvasContext) => {
if (!canvasContext && !window) {
return 0;
}
const context = canvasContext || window.document.createElement('canvas').getContext('2d');
context.font = font;
// see https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics
const metrics = context.measureText(str);
return Math.ceil(metrics.width);
};
export const sizeOfLongestRotatedString = (
values,
rotationAngle = -45,
) => values.reduce((result, label) => {
const width = Math.floor(getRenderedStringWidth(label)) + 5;
const height = 10;
const size = Math.ceil(
(height * Math.abs(Math.cos(rotationAngle))) + (width * Math.abs(Math.sin(rotationAngle)))
);
return size > result ? size : result;
}, 0);
| Add util function to calculate the size of the longest rotated tick value to help determine required padding. | Add util function to calculate the size of the longest rotated tick value to help determine required padding.
| JavaScript | mit | ihmeuw/ihme-ui,ihmeuw/ihme-ui,ihmeuw/ihme-ui,ihmeuw/beaut,ihmeuw/beaut,ihmeuw/beaut | javascript | ## Code Before:
/* global window */
/**
* Measure rendered width of string
* @param {String} str -> the string to measure
* @param {String} font -> https://developer.mozilla.org/en-US/docs/Web/CSS/font
* @param {CanvasRenderingContext2D} [canvasContext]
* @return {number}
*/
export const getRenderedStringWidth = (str = '', font = '12px Verdana', canvasContext) => {
if (!canvasContext && !window) {
return 0;
}
const context = canvasContext || window.document.createElement('canvas').getContext('2d');
context.font = font;
// see https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics
const metrics = context.measureText(str);
return Math.ceil(metrics.width);
};
## Instruction:
Add util function to calculate the size of the longest rotated tick value to help determine required padding.
## Code After:
/* global window */
/**
* Measure rendered width of string
* @param {String} str -> the string to measure
* @param {String} font -> https://developer.mozilla.org/en-US/docs/Web/CSS/font
* @param {CanvasRenderingContext2D} [canvasContext]
* @return {number}
*/
export const getRenderedStringWidth = (str = '', font = '12px Verdana', canvasContext) => {
if (!canvasContext && !window) {
return 0;
}
const context = canvasContext || window.document.createElement('canvas').getContext('2d');
context.font = font;
// see https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics
const metrics = context.measureText(str);
return Math.ceil(metrics.width);
};
export const sizeOfLongestRotatedString = (
values,
rotationAngle = -45,
) => values.reduce((result, label) => {
const width = Math.floor(getRenderedStringWidth(label)) + 5;
const height = 10;
const size = Math.ceil(
(height * Math.abs(Math.cos(rotationAngle))) + (width * Math.abs(Math.sin(rotationAngle)))
);
return size > result ? size : result;
}, 0);
| /* global window */
/**
* Measure rendered width of string
* @param {String} str -> the string to measure
* @param {String} font -> https://developer.mozilla.org/en-US/docs/Web/CSS/font
* @param {CanvasRenderingContext2D} [canvasContext]
* @return {number}
*/
export const getRenderedStringWidth = (str = '', font = '12px Verdana', canvasContext) => {
if (!canvasContext && !window) {
return 0;
}
const context = canvasContext || window.document.createElement('canvas').getContext('2d');
context.font = font;
// see https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics
const metrics = context.measureText(str);
return Math.ceil(metrics.width);
};
+
+ export const sizeOfLongestRotatedString = (
+ values,
+ rotationAngle = -45,
+ ) => values.reduce((result, label) => {
+ const width = Math.floor(getRenderedStringWidth(label)) + 5;
+ const height = 10;
+ const size = Math.ceil(
+ (height * Math.abs(Math.cos(rotationAngle))) + (width * Math.abs(Math.sin(rotationAngle)))
+ );
+ return size > result ? size : result;
+ }, 0);
+ | 13 | 0.590909 | 13 | 0 |
6d16ecc07ee79394fcc01fdfe220d0701dc6dd25 | app/views/layouts/core/snippets/_footer_js.html.haml | app/views/layouts/core/snippets/_footer_js.html.haml | .js-config.is-hidden
= render 'layouts/core/inline_js/fonts_async'
= render 'layouts/core/inline_js/fs_init'
= render 'layouts/core/inline_js/google_analytics' if Rails.env.production?
= render 'layouts/core/inline_js/base_js_async'
= yield :scripts
= js_configuration
- if defined?($JS_VARS)
:javascript
#{js_hash($JS_VARS)}
:javascript
(function(w,c){
if (w.lp.ads && c) {
w.lp.ads.networkCode=c
}
}(window,lp.getCookie('lpNetworkCode')));
| .js-config.is-hidden
= render 'layouts/core/inline_js/fonts_async'
= render 'layouts/core/inline_js/fs_init'
= render 'layouts/core/inline_js/google_analytics' if Rails.env.production?
= render 'layouts/core/inline_js/base_js_async'
= yield :scripts
= js_configuration
- if defined?($JS_VARS)
:javascript
#{js_hash($JS_VARS)}
:javascript
(function(w,c){
if (w.lp.ads && c) {
w.lp.ads.networkCode=c.length?c.pop():c
}
}(window,lp.getCookie('lpNetworkCode') || window.location.search.match(/lpNetworkCode=([0-9]{4,8})/) ));
| Add support for setting network code via query string | Add support for setting network code via query string
| Haml | mit | Lostmyname/rizzo,Lostmyname/rizzo,Lostmyname/rizzo,lonelyplanet/rizzo,Lostmyname/rizzo,lonelyplanet/rizzo,lonelyplanet/rizzo,Lostmyname/rizzo,lonelyplanet/rizzo,lonelyplanet/rizzo | haml | ## Code Before:
.js-config.is-hidden
= render 'layouts/core/inline_js/fonts_async'
= render 'layouts/core/inline_js/fs_init'
= render 'layouts/core/inline_js/google_analytics' if Rails.env.production?
= render 'layouts/core/inline_js/base_js_async'
= yield :scripts
= js_configuration
- if defined?($JS_VARS)
:javascript
#{js_hash($JS_VARS)}
:javascript
(function(w,c){
if (w.lp.ads && c) {
w.lp.ads.networkCode=c
}
}(window,lp.getCookie('lpNetworkCode')));
## Instruction:
Add support for setting network code via query string
## Code After:
.js-config.is-hidden
= render 'layouts/core/inline_js/fonts_async'
= render 'layouts/core/inline_js/fs_init'
= render 'layouts/core/inline_js/google_analytics' if Rails.env.production?
= render 'layouts/core/inline_js/base_js_async'
= yield :scripts
= js_configuration
- if defined?($JS_VARS)
:javascript
#{js_hash($JS_VARS)}
:javascript
(function(w,c){
if (w.lp.ads && c) {
w.lp.ads.networkCode=c.length?c.pop():c
}
}(window,lp.getCookie('lpNetworkCode') || window.location.search.match(/lpNetworkCode=([0-9]{4,8})/) ));
| .js-config.is-hidden
= render 'layouts/core/inline_js/fonts_async'
= render 'layouts/core/inline_js/fs_init'
= render 'layouts/core/inline_js/google_analytics' if Rails.env.production?
= render 'layouts/core/inline_js/base_js_async'
= yield :scripts
= js_configuration
- if defined?($JS_VARS)
:javascript
#{js_hash($JS_VARS)}
:javascript
(function(w,c){
if (w.lp.ads && c) {
- w.lp.ads.networkCode=c
+ w.lp.ads.networkCode=c.length?c.pop():c
? +++++++++++++++++
}
- }(window,lp.getCookie('lpNetworkCode')));
+ }(window,lp.getCookie('lpNetworkCode') || window.location.search.match(/lpNetworkCode=([0-9]{4,8})/) )); | 4 | 0.222222 | 2 | 2 |
cb7a71b304c90fb16cdbfec98017d47d57ec2e4c | packages/lo/located-base.yaml | packages/lo/located-base.yaml | homepage: http://github.com/gridaphobe/located-base
changelog-type: ''
hash: 66c1f5ea2499b5661583d6e26ac51cde6e9f746dbc9ae0cd768d591792067731
test-bench-deps: {}
maintainer: eric@seidel.io
synopsis: Location-aware variants of partial functions
changelog: ''
basic-deps:
base: ! '>=4.8.1.0 && <4.9'
all-versions:
- '0.1.0.0'
author: Eric Seidel
latest: '0.1.0.0'
description-type: haddock
description: ! 'This library provides variants of standard partial functions
that include their call-site in the error message when they crash.
For example:
@
ghci> ''Data.List.Located.head'' []
*** Exception: Prelude.head: empty list
Callstack:
\ \ error, called at src\/Data\/List\/Located.hs:19:14 in locat_KhGZ7Rz1bn9DKFeFxhawNB:Data.List.Located
\ \ head, called at \<interactive\>:6:1 in interactive:Ghci1
@'
license-name: BSD3
| homepage: http://github.com/gridaphobe/located-base
changelog-type: ''
hash: c8118872eade28260f7891c342175e3e6055eb53973fa719bd9fd48652221bd4
test-bench-deps:
located-base: -any
base: -any
criterion: -any
maintainer: eric@seidel.io
synopsis: Location-aware variants of partial functions
changelog: ''
basic-deps:
base: ! '>=4.8.1.0 && <5'
all-versions:
- '0.1.0.0'
- '0.1.1.0'
author: Eric Seidel
latest: '0.1.1.0'
description-type: haddock
description: ! 'This library provides variants of standard partial functions
that include their call-site in the error message when they crash.
For example:
@
ghci> ''Data.List.Located.head'' []
*** Exception: Prelude.head: empty list
Callstack:
\ \ error, called at src\/Data\/List\/Located.hs:19:14 in locat_KhGZ7Rz1bn9DKFeFxhawNB:Data.List.Located
\ \ head, called at \<interactive\>:6:1 in interactive:Ghci1
@'
license-name: BSD3
| Update from Hackage at 2016-05-05T21:39:48+0000 | Update from Hackage at 2016-05-05T21:39:48+0000
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: http://github.com/gridaphobe/located-base
changelog-type: ''
hash: 66c1f5ea2499b5661583d6e26ac51cde6e9f746dbc9ae0cd768d591792067731
test-bench-deps: {}
maintainer: eric@seidel.io
synopsis: Location-aware variants of partial functions
changelog: ''
basic-deps:
base: ! '>=4.8.1.0 && <4.9'
all-versions:
- '0.1.0.0'
author: Eric Seidel
latest: '0.1.0.0'
description-type: haddock
description: ! 'This library provides variants of standard partial functions
that include their call-site in the error message when they crash.
For example:
@
ghci> ''Data.List.Located.head'' []
*** Exception: Prelude.head: empty list
Callstack:
\ \ error, called at src\/Data\/List\/Located.hs:19:14 in locat_KhGZ7Rz1bn9DKFeFxhawNB:Data.List.Located
\ \ head, called at \<interactive\>:6:1 in interactive:Ghci1
@'
license-name: BSD3
## Instruction:
Update from Hackage at 2016-05-05T21:39:48+0000
## Code After:
homepage: http://github.com/gridaphobe/located-base
changelog-type: ''
hash: c8118872eade28260f7891c342175e3e6055eb53973fa719bd9fd48652221bd4
test-bench-deps:
located-base: -any
base: -any
criterion: -any
maintainer: eric@seidel.io
synopsis: Location-aware variants of partial functions
changelog: ''
basic-deps:
base: ! '>=4.8.1.0 && <5'
all-versions:
- '0.1.0.0'
- '0.1.1.0'
author: Eric Seidel
latest: '0.1.1.0'
description-type: haddock
description: ! 'This library provides variants of standard partial functions
that include their call-site in the error message when they crash.
For example:
@
ghci> ''Data.List.Located.head'' []
*** Exception: Prelude.head: empty list
Callstack:
\ \ error, called at src\/Data\/List\/Located.hs:19:14 in locat_KhGZ7Rz1bn9DKFeFxhawNB:Data.List.Located
\ \ head, called at \<interactive\>:6:1 in interactive:Ghci1
@'
license-name: BSD3
| homepage: http://github.com/gridaphobe/located-base
changelog-type: ''
- hash: 66c1f5ea2499b5661583d6e26ac51cde6e9f746dbc9ae0cd768d591792067731
+ hash: c8118872eade28260f7891c342175e3e6055eb53973fa719bd9fd48652221bd4
- test-bench-deps: {}
? ---
+ test-bench-deps:
+ located-base: -any
+ base: -any
+ criterion: -any
maintainer: eric@seidel.io
synopsis: Location-aware variants of partial functions
changelog: ''
basic-deps:
- base: ! '>=4.8.1.0 && <4.9'
? ^^^
+ base: ! '>=4.8.1.0 && <5'
? ^
all-versions:
- '0.1.0.0'
+ - '0.1.1.0'
author: Eric Seidel
- latest: '0.1.0.0'
? ^
+ latest: '0.1.1.0'
? ^
description-type: haddock
description: ! 'This library provides variants of standard partial functions
that include their call-site in the error message when they crash.
For example:
@
ghci> ''Data.List.Located.head'' []
*** Exception: Prelude.head: empty list
Callstack:
\ \ error, called at src\/Data\/List\/Located.hs:19:14 in locat_KhGZ7Rz1bn9DKFeFxhawNB:Data.List.Located
\ \ head, called at \<interactive\>:6:1 in interactive:Ghci1
@'
license-name: BSD3 | 12 | 0.333333 | 8 | 4 |
1f0f7cf9f2a536e232f85ac69ec27f0ed086e47c | app/views/messages/_message.html.haml | app/views/messages/_message.html.haml | - scroll_class = (message == view_from) ? 'thread-view-from-here' : nil
%article.message{ id: dom_id(message), class: scroll_class }
.details
.author
%span.thumbnail
- if message.created_by.profile.picture
= image_tag message.created_by.profile.picture_thumbnail.url, alt: ""
= link_to_profile message.created_by
= time_tag_with_title(message.created_at) do
- t ".posted_date", time_ago: time_ago_in_words(message.created_at)
.body
- if message.censored?
.censored
%p= t ".censored"
- else
- if message.component
= render "message/#{message_controller_map(message.component)}/show", message: message
= auto_link simple_format message.body
- if permitted_to?([:censor], message) || library_type_for(message)
%menu.tools
%ul
- if permitted_to?(:censor, message)
%li= link_to t(".censor"), censor_thread_message_path(message.thread, message), method: :put
- case library_type_for(message)
- when "note"
%li= link_to t(".create_note"), new_thread_message_note_path(message.thread, message)
- when "document"
%li= link_to t(".create_document"), new_thread_message_document_path(message.thread, message)
| - scroll_class = (message == view_from) ? 'thread-view-from-here' : nil
%article.message{ id: dom_id(message), class: scroll_class }
.details
.author
%span.thumbnail
- if message.created_by.profile.picture
= image_tag message.created_by.profile.picture_thumbnail.url, alt: ""
= link_to_profile message.created_by
= link_to thread_path(anchor: dom_id(message)), class: "permalink" do
- time_tag_with_title(message.created_at) do
- t ".posted_date", time_ago: time_ago_in_words(message.created_at)
.body
- if message.censored?
.censored
%p= t ".censored"
- else
- if message.component
= render "message/#{message_controller_map(message.component)}/show", message: message
= auto_link simple_format message.body
- if permitted_to?([:censor], message) || library_type_for(message)
%menu.tools
%ul
- if permitted_to?(:censor, message)
%li= link_to t(".censor"), censor_thread_message_path(message.thread, message), method: :put
- case library_type_for(message)
- when "note"
%li= link_to t(".create_note"), new_thread_message_note_path(message.thread, message)
- when "document"
%li= link_to t(".create_document"), new_thread_message_document_path(message.thread, message)
| Make the time of a message in the thread a permalink so that you can link to a specific message easily. | Make the time of a message in the thread a permalink so that you can link to a specific message easily.
| Haml | mit | cyclestreets/cyclescape,cyclestreets/cyclescape,cyclestreets/cyclescape | haml | ## Code Before:
- scroll_class = (message == view_from) ? 'thread-view-from-here' : nil
%article.message{ id: dom_id(message), class: scroll_class }
.details
.author
%span.thumbnail
- if message.created_by.profile.picture
= image_tag message.created_by.profile.picture_thumbnail.url, alt: ""
= link_to_profile message.created_by
= time_tag_with_title(message.created_at) do
- t ".posted_date", time_ago: time_ago_in_words(message.created_at)
.body
- if message.censored?
.censored
%p= t ".censored"
- else
- if message.component
= render "message/#{message_controller_map(message.component)}/show", message: message
= auto_link simple_format message.body
- if permitted_to?([:censor], message) || library_type_for(message)
%menu.tools
%ul
- if permitted_to?(:censor, message)
%li= link_to t(".censor"), censor_thread_message_path(message.thread, message), method: :put
- case library_type_for(message)
- when "note"
%li= link_to t(".create_note"), new_thread_message_note_path(message.thread, message)
- when "document"
%li= link_to t(".create_document"), new_thread_message_document_path(message.thread, message)
## Instruction:
Make the time of a message in the thread a permalink so that you can link to a specific message easily.
## Code After:
- scroll_class = (message == view_from) ? 'thread-view-from-here' : nil
%article.message{ id: dom_id(message), class: scroll_class }
.details
.author
%span.thumbnail
- if message.created_by.profile.picture
= image_tag message.created_by.profile.picture_thumbnail.url, alt: ""
= link_to_profile message.created_by
= link_to thread_path(anchor: dom_id(message)), class: "permalink" do
- time_tag_with_title(message.created_at) do
- t ".posted_date", time_ago: time_ago_in_words(message.created_at)
.body
- if message.censored?
.censored
%p= t ".censored"
- else
- if message.component
= render "message/#{message_controller_map(message.component)}/show", message: message
= auto_link simple_format message.body
- if permitted_to?([:censor], message) || library_type_for(message)
%menu.tools
%ul
- if permitted_to?(:censor, message)
%li= link_to t(".censor"), censor_thread_message_path(message.thread, message), method: :put
- case library_type_for(message)
- when "note"
%li= link_to t(".create_note"), new_thread_message_note_path(message.thread, message)
- when "document"
%li= link_to t(".create_document"), new_thread_message_document_path(message.thread, message)
| - scroll_class = (message == view_from) ? 'thread-view-from-here' : nil
%article.message{ id: dom_id(message), class: scroll_class }
.details
.author
%span.thumbnail
- if message.created_by.profile.picture
= image_tag message.created_by.profile.picture_thumbnail.url, alt: ""
= link_to_profile message.created_by
+ = link_to thread_path(anchor: dom_id(message)), class: "permalink" do
- = time_tag_with_title(message.created_at) do
? ^
+ - time_tag_with_title(message.created_at) do
? ^^^
- - t ".posted_date", time_ago: time_ago_in_words(message.created_at)
+ - t ".posted_date", time_ago: time_ago_in_words(message.created_at)
? ++
.body
- if message.censored?
.censored
%p= t ".censored"
- else
- if message.component
= render "message/#{message_controller_map(message.component)}/show", message: message
= auto_link simple_format message.body
- if permitted_to?([:censor], message) || library_type_for(message)
%menu.tools
%ul
- if permitted_to?(:censor, message)
%li= link_to t(".censor"), censor_thread_message_path(message.thread, message), method: :put
- case library_type_for(message)
- when "note"
%li= link_to t(".create_note"), new_thread_message_note_path(message.thread, message)
- when "document"
%li= link_to t(".create_document"), new_thread_message_document_path(message.thread, message) | 5 | 0.178571 | 3 | 2 |
6cd744c352bf680dc48307ee9bef87b5471d8da0 | touchlist-objects/index.html | touchlist-objects/index.html | <!DOCTYPE html>
<html>
<head>
<title>TouchList objects - touches, targetTouches, changedTouches</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
<link rel="stylesheet" href="styles/styles.css">
</head>
<body>
<div id="container">
<h1><code>TouchList</code> objects</h1>
<button>Test button!</button>
<p>Illustration of difference between:</p>
<ul>
<li><code>touches</code> (outer circle, white)</li>
<li><code>targetTouches</code> (middle circle, green)</li>
<li><code>changedTouches</code> (inner circle, red)</li>
</ul>
<p>All events only bound to <code>button</code> element, but once touched, touchpoints that didn't originate on the button (from the <code>touches</code> list) will also appear.</p>
<script src="scripts/script.js"></script>
</body>
</html> | <!DOCTYPE html>
<html>
<head>
<title>TouchList objects - touches, targetTouches, changedTouches</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
<link rel="stylesheet" href="styles/styles.css">
</head>
<body>
<div id="container">
<h1><code>TouchList</code> objects</h1>
<button>Test button!</button>
<p>Illustration of difference between:</p>
<ul>
<li><code>touches</code> (outer circle, white)</li>
<li><code>targetTouches</code> (middle circle, green)</li>
<li><code>changedTouches</code> (inner circle, red)</li>
</ul>
<p>All events only bound to <code>button</code> element, but once touched, touchpoints that didn't originate on the button (from the <code>touches</code> list) will also appear.</p>
<p>Note that when a touch leaves the screen, its last known position is still retained in <code>changedTouches</code> (leaving behind a red circle).</p>
<script src="scripts/script.js"></script>
</body>
</html> | Clarify changedTouches last known good position on touchend | Clarify changedTouches last known good position on touchend
| HTML | mit | patrickhlauke/touch,patrickhlauke/touch | html | ## Code Before:
<!DOCTYPE html>
<html>
<head>
<title>TouchList objects - touches, targetTouches, changedTouches</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
<link rel="stylesheet" href="styles/styles.css">
</head>
<body>
<div id="container">
<h1><code>TouchList</code> objects</h1>
<button>Test button!</button>
<p>Illustration of difference between:</p>
<ul>
<li><code>touches</code> (outer circle, white)</li>
<li><code>targetTouches</code> (middle circle, green)</li>
<li><code>changedTouches</code> (inner circle, red)</li>
</ul>
<p>All events only bound to <code>button</code> element, but once touched, touchpoints that didn't originate on the button (from the <code>touches</code> list) will also appear.</p>
<script src="scripts/script.js"></script>
</body>
</html>
## Instruction:
Clarify changedTouches last known good position on touchend
## Code After:
<!DOCTYPE html>
<html>
<head>
<title>TouchList objects - touches, targetTouches, changedTouches</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
<link rel="stylesheet" href="styles/styles.css">
</head>
<body>
<div id="container">
<h1><code>TouchList</code> objects</h1>
<button>Test button!</button>
<p>Illustration of difference between:</p>
<ul>
<li><code>touches</code> (outer circle, white)</li>
<li><code>targetTouches</code> (middle circle, green)</li>
<li><code>changedTouches</code> (inner circle, red)</li>
</ul>
<p>All events only bound to <code>button</code> element, but once touched, touchpoints that didn't originate on the button (from the <code>touches</code> list) will also appear.</p>
<p>Note that when a touch leaves the screen, its last known position is still retained in <code>changedTouches</code> (leaving behind a red circle).</p>
<script src="scripts/script.js"></script>
</body>
</html> | <!DOCTYPE html>
<html>
<head>
<title>TouchList objects - touches, targetTouches, changedTouches</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
<link rel="stylesheet" href="styles/styles.css">
</head>
<body>
<div id="container">
<h1><code>TouchList</code> objects</h1>
<button>Test button!</button>
<p>Illustration of difference between:</p>
<ul>
<li><code>touches</code> (outer circle, white)</li>
<li><code>targetTouches</code> (middle circle, green)</li>
<li><code>changedTouches</code> (inner circle, red)</li>
</ul>
<p>All events only bound to <code>button</code> element, but once touched, touchpoints that didn't originate on the button (from the <code>touches</code> list) will also appear.</p>
+ <p>Note that when a touch leaves the screen, its last known position is still retained in <code>changedTouches</code> (leaving behind a red circle).</p>
<script src="scripts/script.js"></script>
</body>
</html> | 1 | 0.045455 | 1 | 0 |
94d66121368906b52fa8a9f214813b7b798c2b5b | lib/custom_data/settings_manager.py | lib/custom_data/settings_manager.py |
SETTINGS_PATH = 'settings.xml'
| SETTINGS_PATH = 'settings.xml'
SETTINGS_SCHEMA_PATH = 'settings.xsd'
| Add constant for settings schema file path | Add constant for settings schema file path
| Python | unlicense | MarquisLP/Sidewalk-Champion | python | ## Code Before:
SETTINGS_PATH = 'settings.xml'
## Instruction:
Add constant for settings schema file path
## Code After:
SETTINGS_PATH = 'settings.xml'
SETTINGS_SCHEMA_PATH = 'settings.xsd'
| -
SETTINGS_PATH = 'settings.xml'
+ SETTINGS_SCHEMA_PATH = 'settings.xsd' | 2 | 1 | 1 | 1 |
3a7ef163669e1a96362903d69a30f89c06673e05 | sahara_dashboard/content/data_processing/clusters/templates/nodegroup_templates/_configure_general_help.html | sahara_dashboard/content/data_processing/clusters/templates/nodegroup_templates/_configure_general_help.html | {% load i18n horizon %}
<div class="well">
<p>
{% blocktrans %}This Node Group Template will be created for:{% endblocktrans %}
<br >
<b>{% blocktrans %}Plugin{% endblocktrans %}</b>: {{ plugin_name }}
<br />
<b>{% blocktrans %}Version{% endblocktrans %}</b>: {{ hadoop_version }}
<br />
{% if deprecated %}
<div class="bs-component">
<div class="alert alert-dismissable alert-warning">
<button type="button" class="close" data-dismiss="alert">×</button>
<h4 translate=""><span class="ng-scope">Warning!</span></h4>
<p> {% blocktrans %} Version {% endblocktrans %}: <b>{{ hadoop_version }}</b>
{% blocktrans %} of plugin {% endblocktrans %} <b>{{ plugin_name }} </b>
{% blocktrans %} is now deprecated. {% endblocktrans %}
</p>
</div>
</div>
{% endif %}
</p>
<p>
{% blocktrans %}The Node Group Template object specifies the processes
that will be launched on each instance. Check one or more processes.
When processes are selected, you may set <b>node</b> scoped
configurations on corresponding tabs.{% endblocktrans %}
</p>
<p>
{% blocktrans %}You must choose a flavor to determine the size (VCPUs, memory and storage) of all launched VMs.{% endblocktrans %}
</p>
<p>
{% blocktrans %}Data Processing provides different storage location options. You may choose Ephemeral Drive or a Cinder Volume to be attached to instances.{% endblocktrans %}
</p>
</div>
| {% load i18n horizon %}
<div class="well">
<p>
{% blocktrans %}This Node Group Template will be created for:{% endblocktrans %}
<br >
<b>{% blocktrans %}Plugin{% endblocktrans %}</b>: {{ plugin_name }}
<br />
<b>{% blocktrans %}Version{% endblocktrans %}</b>: {{ hadoop_version }}
<br />
{% if deprecated %}
<div class="bs-component">
<div class="alert alert-dismissable alert-warning">
<button type="button" class="close" data-dismiss="alert">×</button>
<h4 translate=""><span class="ng-scope">Warning!</span></h4>
<p> {% blocktrans %} Version: <b>{{ hadoop_version }}</b>
of plugin <b>{{ plugin_name }} </b>
is now deprecated. {% endblocktrans %}
</p>
</div>
</div>
{% endif %}
</p>
<p>
{% blocktrans %}The Node Group Template object specifies the processes
that will be launched on each instance. Check one or more processes.
When processes are selected, you may set <b>node</b> scoped
configurations on corresponding tabs.{% endblocktrans %}
</p>
<p>
{% blocktrans %}You must choose a flavor to determine the size (VCPUs, memory and storage) of all launched VMs.{% endblocktrans %}
</p>
<p>
{% blocktrans %}Data Processing provides different storage location options. You may choose Ephemeral Drive or a Cinder Volume to be attached to instances.{% endblocktrans %}
</p>
</div>
| Allow translators to control word order in templates (again) | Allow translators to control word order in templates (again)
There is one remaining thing which is not covered by
https://review.openstack.org/#/c/372652/ .
Change-Id: Idf3880c9348b41523dafe19fe88c71a63c7012ee
Related-Bug: #1625292
| HTML | apache-2.0 | openstack/sahara-dashboard,openstack/sahara-dashboard,openstack/sahara-dashboard,openstack/sahara-dashboard | html | ## Code Before:
{% load i18n horizon %}
<div class="well">
<p>
{% blocktrans %}This Node Group Template will be created for:{% endblocktrans %}
<br >
<b>{% blocktrans %}Plugin{% endblocktrans %}</b>: {{ plugin_name }}
<br />
<b>{% blocktrans %}Version{% endblocktrans %}</b>: {{ hadoop_version }}
<br />
{% if deprecated %}
<div class="bs-component">
<div class="alert alert-dismissable alert-warning">
<button type="button" class="close" data-dismiss="alert">×</button>
<h4 translate=""><span class="ng-scope">Warning!</span></h4>
<p> {% blocktrans %} Version {% endblocktrans %}: <b>{{ hadoop_version }}</b>
{% blocktrans %} of plugin {% endblocktrans %} <b>{{ plugin_name }} </b>
{% blocktrans %} is now deprecated. {% endblocktrans %}
</p>
</div>
</div>
{% endif %}
</p>
<p>
{% blocktrans %}The Node Group Template object specifies the processes
that will be launched on each instance. Check one or more processes.
When processes are selected, you may set <b>node</b> scoped
configurations on corresponding tabs.{% endblocktrans %}
</p>
<p>
{% blocktrans %}You must choose a flavor to determine the size (VCPUs, memory and storage) of all launched VMs.{% endblocktrans %}
</p>
<p>
{% blocktrans %}Data Processing provides different storage location options. You may choose Ephemeral Drive or a Cinder Volume to be attached to instances.{% endblocktrans %}
</p>
</div>
## Instruction:
Allow translators to control word order in templates (again)
There is one remaining thing which is not covered by
https://review.openstack.org/#/c/372652/ .
Change-Id: Idf3880c9348b41523dafe19fe88c71a63c7012ee
Related-Bug: #1625292
## Code After:
{% load i18n horizon %}
<div class="well">
<p>
{% blocktrans %}This Node Group Template will be created for:{% endblocktrans %}
<br >
<b>{% blocktrans %}Plugin{% endblocktrans %}</b>: {{ plugin_name }}
<br />
<b>{% blocktrans %}Version{% endblocktrans %}</b>: {{ hadoop_version }}
<br />
{% if deprecated %}
<div class="bs-component">
<div class="alert alert-dismissable alert-warning">
<button type="button" class="close" data-dismiss="alert">×</button>
<h4 translate=""><span class="ng-scope">Warning!</span></h4>
<p> {% blocktrans %} Version: <b>{{ hadoop_version }}</b>
of plugin <b>{{ plugin_name }} </b>
is now deprecated. {% endblocktrans %}
</p>
</div>
</div>
{% endif %}
</p>
<p>
{% blocktrans %}The Node Group Template object specifies the processes
that will be launched on each instance. Check one or more processes.
When processes are selected, you may set <b>node</b> scoped
configurations on corresponding tabs.{% endblocktrans %}
</p>
<p>
{% blocktrans %}You must choose a flavor to determine the size (VCPUs, memory and storage) of all launched VMs.{% endblocktrans %}
</p>
<p>
{% blocktrans %}Data Processing provides different storage location options. You may choose Ephemeral Drive or a Cinder Volume to be attached to instances.{% endblocktrans %}
</p>
</div>
| {% load i18n horizon %}
<div class="well">
<p>
{% blocktrans %}This Node Group Template will be created for:{% endblocktrans %}
<br >
<b>{% blocktrans %}Plugin{% endblocktrans %}</b>: {{ plugin_name }}
<br />
<b>{% blocktrans %}Version{% endblocktrans %}</b>: {{ hadoop_version }}
<br />
{% if deprecated %}
<div class="bs-component">
<div class="alert alert-dismissable alert-warning">
<button type="button" class="close" data-dismiss="alert">×</button>
<h4 translate=""><span class="ng-scope">Warning!</span></h4>
- <p> {% blocktrans %} Version {% endblocktrans %}: <b>{{ hadoop_version }}</b>
? --------------------
+ <p> {% blocktrans %} Version: <b>{{ hadoop_version }}</b>
- {% blocktrans %} of plugin {% endblocktrans %} <b>{{ plugin_name }} </b>
+ of plugin <b>{{ plugin_name }} </b>
- {% blocktrans %} is now deprecated. {% endblocktrans %}
? -----------------
+ is now deprecated. {% endblocktrans %}
</p>
</div>
</div>
{% endif %}
</p>
<p>
{% blocktrans %}The Node Group Template object specifies the processes
that will be launched on each instance. Check one or more processes.
When processes are selected, you may set <b>node</b> scoped
configurations on corresponding tabs.{% endblocktrans %}
</p>
<p>
{% blocktrans %}You must choose a flavor to determine the size (VCPUs, memory and storage) of all launched VMs.{% endblocktrans %}
</p>
<p>
{% blocktrans %}Data Processing provides different storage location options. You may choose Ephemeral Drive or a Cinder Volume to be attached to instances.{% endblocktrans %}
</p>
</div> | 6 | 0.171429 | 3 | 3 |
f3e249089b86d3ae6580a9eefc43268bafcff0fb | lib/usi/session.rb | lib/usi/session.rb | module USI
class Session
attr_reader :engine
def initialize(engine)
@engine = engine
end
end
end
| require "open3"
module USI
class Session
attr_reader :engine, :stdin, :stdout, :stderr, :wait_thr
def initialize(engine)
@engine = engine
@stdin, @stdout, @stderr, @wait_thr = *Open3.popen3(@engine.engine_path.to_s, chdir: @engine.engine_path.dirname)
end
end
end
| Use Open3.popen3 in execution of engine. | Use Open3.popen3 in execution of engine.
| Ruby | mit | mgi166/usi-ruby-client,mgi166/usi-ruby-client | ruby | ## Code Before:
module USI
class Session
attr_reader :engine
def initialize(engine)
@engine = engine
end
end
end
## Instruction:
Use Open3.popen3 in execution of engine.
## Code After:
require "open3"
module USI
class Session
attr_reader :engine, :stdin, :stdout, :stderr, :wait_thr
def initialize(engine)
@engine = engine
@stdin, @stdout, @stderr, @wait_thr = *Open3.popen3(@engine.engine_path.to_s, chdir: @engine.engine_path.dirname)
end
end
end
| + require "open3"
+
module USI
class Session
- attr_reader :engine
+ attr_reader :engine, :stdin, :stdout, :stderr, :wait_thr
def initialize(engine)
@engine = engine
+ @stdin, @stdout, @stderr, @wait_thr = *Open3.popen3(@engine.engine_path.to_s, chdir: @engine.engine_path.dirname)
end
end
end | 5 | 0.555556 | 4 | 1 |
4d14825ad76b10cc2434cdc51bdaa9f4150320f0 | _layouts/page.html | _layouts/page.html | ---
layout: default
---
<article class="page">
<h1>{{ page.title }}</h1>
<div class="entry">
{{ content }}
</div>
</article>
| ---
layout: default
---
<article class="page">
<div class="entry">
{{ content }}
</div>
</article>
| Remove title in order to try insert into default layout | Remove title in order to try insert into default layout | HTML | mit | electrachong/electrachong.github.io | html | ## Code Before:
---
layout: default
---
<article class="page">
<h1>{{ page.title }}</h1>
<div class="entry">
{{ content }}
</div>
</article>
## Instruction:
Remove title in order to try insert into default layout
## Code After:
---
layout: default
---
<article class="page">
<div class="entry">
{{ content }}
</div>
</article>
| ---
layout: default
---
<article class="page">
- <h1>{{ page.title }}</h1>
-
<div class="entry">
{{ content }}
</div>
</article> | 2 | 0.166667 | 0 | 2 |
43ad3b2d2e25b816d6d7b339d62e674541d76712 | setup.py | setup.py | from setuptools import setup, find_packages
from gdc_client.version import __version__
setup(
name="gdc_client",
version=__version__,
packages=find_packages(),
package_data={},
install_requires=[
'parcel',
'lxml==3.5.0b1',
'PyYAML==3.11',
'jsonschema==2.5.1',
'pyOpenSSL==17.1.0',
'ndg-httpsclient==0.4.2',
'pyasn1==0.2.3',
],
dependency_links=[
'git+https://github.com/LabAdvComp/parcel.git@50d6124a3e3fcd2a234b3373831075390b886a15#egg=parcel',
],
scripts=[
'bin/gdc-client',
],
)
| from setuptools import setup, find_packages
from gdc_client.version import __version__
setup(
name="gdc_client",
version=__version__,
packages=find_packages(),
package_data={},
install_requires=[
'parcel',
'lxml==3.5.0b1',
'PyYAML==3.11',
'jsonschema==2.5.1',
'pyOpenSSL==17.1.0',
'ndg-httpsclient==0.4.2',
'pyasn1==0.2.3',
],
dependency_links=[
'git+https://github.com/LabAdvComp/parcel.git@c421063aeff60c316693756da3477634b8551f18#egg=parcel',
],
scripts=[
'bin/gdc-client',
],
)
| Update dependency link for parcel and recent DTT-99 fix | Update dependency link for parcel and recent DTT-99 fix
| Python | apache-2.0 | NCI-GDC/gdc-client,NCI-GDC/gdc-client | python | ## Code Before:
from setuptools import setup, find_packages
from gdc_client.version import __version__
setup(
name="gdc_client",
version=__version__,
packages=find_packages(),
package_data={},
install_requires=[
'parcel',
'lxml==3.5.0b1',
'PyYAML==3.11',
'jsonschema==2.5.1',
'pyOpenSSL==17.1.0',
'ndg-httpsclient==0.4.2',
'pyasn1==0.2.3',
],
dependency_links=[
'git+https://github.com/LabAdvComp/parcel.git@50d6124a3e3fcd2a234b3373831075390b886a15#egg=parcel',
],
scripts=[
'bin/gdc-client',
],
)
## Instruction:
Update dependency link for parcel and recent DTT-99 fix
## Code After:
from setuptools import setup, find_packages
from gdc_client.version import __version__
setup(
name="gdc_client",
version=__version__,
packages=find_packages(),
package_data={},
install_requires=[
'parcel',
'lxml==3.5.0b1',
'PyYAML==3.11',
'jsonschema==2.5.1',
'pyOpenSSL==17.1.0',
'ndg-httpsclient==0.4.2',
'pyasn1==0.2.3',
],
dependency_links=[
'git+https://github.com/LabAdvComp/parcel.git@c421063aeff60c316693756da3477634b8551f18#egg=parcel',
],
scripts=[
'bin/gdc-client',
],
)
| from setuptools import setup, find_packages
from gdc_client.version import __version__
setup(
name="gdc_client",
version=__version__,
packages=find_packages(),
package_data={},
install_requires=[
'parcel',
'lxml==3.5.0b1',
'PyYAML==3.11',
'jsonschema==2.5.1',
'pyOpenSSL==17.1.0',
'ndg-httpsclient==0.4.2',
'pyasn1==0.2.3',
],
dependency_links=[
- 'git+https://github.com/LabAdvComp/parcel.git@50d6124a3e3fcd2a234b3373831075390b886a15#egg=parcel',
+ 'git+https://github.com/LabAdvComp/parcel.git@c421063aeff60c316693756da3477634b8551f18#egg=parcel',
],
scripts=[
'bin/gdc-client',
],
) | 2 | 0.083333 | 1 | 1 |
766b4d6c8c87acb98c4dcbdf6e67489e018192a1 | .travis.yml | .travis.yml | language: java
jdk:
- oraclejdk8
before_script: "[[ $TRAVIS_PULL_REQUEST == \"false\" ]] && ./make_credentials.py"
script:
- find $HOME/.m2 -name "_remote.repositories" | xargs rm
- find $HOME/.m2 -name "resolver-status.properties" | xargs rm -f
# If building master, Publish to Sonatype
after_success: "[[ $TRAVIS_PULL_REQUEST == \"false\" ]] && mvn deploy"
sudo: false
# Cache settings
cache:
directories:
- $HOME/.m2/repository
# whitelist
branches:
only:
- master | language: java
jdk:
- oraclejdk8
before_script: |
if ([ $TRAVIS_PULL_REQUEST = "false" ] && [ $TRAVIS_BRANCH = "master" ]); then
./make_credentials.py
fi
script:
- find $HOME/.m2 -name "_remote.repositories" | xargs rm
- find $HOME/.m2 -name "resolver-status.properties" | xargs rm -f
# If building master, Publish to Sonatype
after_success: |
if ([ $TRAVIS_PULL_REQUEST = "false" ] && [ $TRAVIS_BRANCH = "master" ]); then
mvn deploy
fi
sudo: false
# Cache settings
cache:
directories:
- $HOME/.m2/repository
| Make Travis available for all branches | Make Travis available for all branches
| YAML | apache-2.0 | Aulust/async-http-client,Aulust/async-http-client | yaml | ## Code Before:
language: java
jdk:
- oraclejdk8
before_script: "[[ $TRAVIS_PULL_REQUEST == \"false\" ]] && ./make_credentials.py"
script:
- find $HOME/.m2 -name "_remote.repositories" | xargs rm
- find $HOME/.m2 -name "resolver-status.properties" | xargs rm -f
# If building master, Publish to Sonatype
after_success: "[[ $TRAVIS_PULL_REQUEST == \"false\" ]] && mvn deploy"
sudo: false
# Cache settings
cache:
directories:
- $HOME/.m2/repository
# whitelist
branches:
only:
- master
## Instruction:
Make Travis available for all branches
## Code After:
language: java
jdk:
- oraclejdk8
before_script: |
if ([ $TRAVIS_PULL_REQUEST = "false" ] && [ $TRAVIS_BRANCH = "master" ]); then
./make_credentials.py
fi
script:
- find $HOME/.m2 -name "_remote.repositories" | xargs rm
- find $HOME/.m2 -name "resolver-status.properties" | xargs rm -f
# If building master, Publish to Sonatype
after_success: |
if ([ $TRAVIS_PULL_REQUEST = "false" ] && [ $TRAVIS_BRANCH = "master" ]); then
mvn deploy
fi
sudo: false
# Cache settings
cache:
directories:
- $HOME/.m2/repository
| language: java
jdk:
- oraclejdk8
- before_script: "[[ $TRAVIS_PULL_REQUEST == \"false\" ]] && ./make_credentials.py"
+ before_script: |
+ if ([ $TRAVIS_PULL_REQUEST = "false" ] && [ $TRAVIS_BRANCH = "master" ]); then
+ ./make_credentials.py
+ fi
+
script:
- find $HOME/.m2 -name "_remote.repositories" | xargs rm
- find $HOME/.m2 -name "resolver-status.properties" | xargs rm -f
# If building master, Publish to Sonatype
- after_success: "[[ $TRAVIS_PULL_REQUEST == \"false\" ]] && mvn deploy"
+ after_success: |
+ if ([ $TRAVIS_PULL_REQUEST = "false" ] && [ $TRAVIS_BRANCH = "master" ]); then
+ mvn deploy
+ fi
sudo: false
# Cache settings
cache:
directories:
- $HOME/.m2/repository
-
- # whitelist
- branches:
- only:
- - master | 16 | 0.727273 | 9 | 7 |
b44a3906cdd4a007ac2d602e5e52d3e19fd7f833 | metadata/byrne.utilities.hashpass.txt | metadata/byrne.utilities.hashpass.txt | Categories:Security
License:GPLv3
Web Site:https://github.com/dillbyrne/HashPass
Source Code:https://github.com/dillbyrne/HashPass
Issue Tracker:https://github.com/dillbyrne/HashPass/issues
Bitcoin:1L44pgmZpeMsWsd24WgN6SJjEUARG5eY6G
Auto Name:HashPass
Summary: Use hashes as passwords
Description:
Simple password generator for android which uses hashes as passwords, affording
ease in recall and effectiveness in password strength
Hashes available are MD5, SHA1, SHA256 & SHA512
Repo Type:git
Repo:https://github.com/dillbyrne/HashPass.git
Auto Update Mode: Version %v
Update Check Mode:Tags
Current Version:0.1
Current Version Code:1
| Categories:Security
License:GPLv3
Web Site:https://github.com/dillbyrne/HashPass
Source Code:https://github.com/dillbyrne/HashPass
Issue Tracker:https://github.com/dillbyrne/HashPass/issues
Bitcoin:1L44pgmZpeMsWsd24WgN6SJjEUARG5eY6G
Auto Name:HashPass
Summary:Use hashes as passwords
Description:
Simple password generator for android which uses hashes as passwords, affording
ease in recall and effectiveness in password strength. Available hashes are
MD5, SHA1, SHA256 and SHA512.
.
Repo Type:git
Repo:https://github.com/dillbyrne/HashPass.git
Build:0.1,1
forceversion=yes
commit=0.1
Auto Update Mode:Version %v
Update Check Mode:Tags
Current Version:0.1
Current Version Code:1
| Update HashPass to 0.1 (1) | Update HashPass to 0.1 (1)
| Text | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroid-data,f-droid/fdroiddata | text | ## Code Before:
Categories:Security
License:GPLv3
Web Site:https://github.com/dillbyrne/HashPass
Source Code:https://github.com/dillbyrne/HashPass
Issue Tracker:https://github.com/dillbyrne/HashPass/issues
Bitcoin:1L44pgmZpeMsWsd24WgN6SJjEUARG5eY6G
Auto Name:HashPass
Summary: Use hashes as passwords
Description:
Simple password generator for android which uses hashes as passwords, affording
ease in recall and effectiveness in password strength
Hashes available are MD5, SHA1, SHA256 & SHA512
Repo Type:git
Repo:https://github.com/dillbyrne/HashPass.git
Auto Update Mode: Version %v
Update Check Mode:Tags
Current Version:0.1
Current Version Code:1
## Instruction:
Update HashPass to 0.1 (1)
## Code After:
Categories:Security
License:GPLv3
Web Site:https://github.com/dillbyrne/HashPass
Source Code:https://github.com/dillbyrne/HashPass
Issue Tracker:https://github.com/dillbyrne/HashPass/issues
Bitcoin:1L44pgmZpeMsWsd24WgN6SJjEUARG5eY6G
Auto Name:HashPass
Summary:Use hashes as passwords
Description:
Simple password generator for android which uses hashes as passwords, affording
ease in recall and effectiveness in password strength. Available hashes are
MD5, SHA1, SHA256 and SHA512.
.
Repo Type:git
Repo:https://github.com/dillbyrne/HashPass.git
Build:0.1,1
forceversion=yes
commit=0.1
Auto Update Mode:Version %v
Update Check Mode:Tags
Current Version:0.1
Current Version Code:1
| Categories:Security
License:GPLv3
Web Site:https://github.com/dillbyrne/HashPass
Source Code:https://github.com/dillbyrne/HashPass
Issue Tracker:https://github.com/dillbyrne/HashPass/issues
Bitcoin:1L44pgmZpeMsWsd24WgN6SJjEUARG5eY6G
Auto Name:HashPass
- Summary: Use hashes as passwords
? -
+ Summary:Use hashes as passwords
+
Description:
Simple password generator for android which uses hashes as passwords, affording
- ease in recall and effectiveness in password strength
+ ease in recall and effectiveness in password strength. Available hashes are
? ++++++++++++++++++++++
- Hashes available are MD5, SHA1, SHA256 & SHA512
+ MD5, SHA1, SHA256 and SHA512.
+ .
Repo Type:git
Repo:https://github.com/dillbyrne/HashPass.git
+ Build:0.1,1
+ forceversion=yes
+ commit=0.1
+
- Auto Update Mode: Version %v
? -
+ Auto Update Mode:Version %v
Update Check Mode:Tags
Current Version:0.1
Current Version Code:1
| 14 | 0.636364 | 10 | 4 |
4691b5f1b0460bfc5c0e26c28e8f7a8fa9acca05 | utils/npm/header.js | utils/npm/header.js |
var window = window || {};
var self = self || {};
|
var window = window || {};
var self = self || {};
// High-resulution counter: emulate window.performance.now() for THREE.CLOCK
if( window.performance === undefined ) {
window.performance = { };
}
if( window.performance.now === undefined ) {
window.performance.now = function () {
var time = process.hrtime();
return ( time[0] + time[1] / 1e9 ) * 1000;
};
}
| Use process.hrtime() for Clock in node.js builds | Use process.hrtime() for Clock in node.js builds
As discussed in #2975.
| JavaScript | mit | Black-Alpha/three.js,gveltri/three.js,prika/three.js,Jonham/three.js,sebasbaumh/three.js,ZhenxingWu/three.js,lollerbus/three.js,AltspaceVR/three.js,anvaka/three.js,ValtoLibraries/ThreeJS,archcomet/three.js,brianchirls/three.js,VimVincent/three.js,sebasbaumh/three.js,toxicFork/three.js,elephantatwork/ZAAK.IO-EditorInternal,borismus/three.js,zodsoft/three.js,zbm2001/three.js,podgorskiy/three.js,Mohammed-Ashour/three.js,billfeller/three.js,yrns/three.js,phfatmonkey/three.js,yuhualingfeng/three.js,chuckfairy/three.js,rlugojr/three.js,wanby/three.js,billfeller/three.js,luxigo/three.js,Fox32/three.js,0merta/three.js,snovak/three.js,hsimpson/three.js,erich666/three.js,zodsoft/three.js,Mohammed-Ashour/three.js,lovewitty/three.js,benjaminer82/threejs,jostschmithals/three.js,ikerr/three.js,crazyyaoyao/yaoyao,mrdoob/three.js,greggman/three.js,camellhf/three.js,p5150j/three.js,DLar/three.js,davidvmckay/three.js,tronlec/three.js,Aldrien-/three.js,timcastelijn/three.js,aleen42/three.js,supergometan/three.js,RemusMar/three.js,StefanHuzz/three.js,xundaokeji/three.js,amakaroff82/three.js,dushmis/three.js,Benjamin-Dobell/three.js,enche/three.js,flimshaw/three.js,edge/three.js,AVGP/three.js,g-rocket/three.js,ducminhn/three.js,haozi23333/three.js,chaoallsome/three.js,Delejnr/three.js,jeffgoku/three.js,coderrick/three.js,brickify/three.js,JingYongWang/three.js,rbarraud/three.js,zeropaper/three.js,jllodra/three.js,Meshu/three.js,programulya/three.js,mudithkr/three.js,fluxio/three.js,surround-io/three.js,Kakakakakku/three.js,YajunQiu/three.js,hsimpson/three.js,06wj/three.js,r8o8s1e0/three.js,donmccurdy/three.js,blokhin/three.js,erich666/three.js,fta2012/three.js,Mohammed-Ashour/three.js,dhritzkiv/three.js,hacksalot/three.js,rougier/three.js,Joeldk/three.js,matgr1/three.js,surround-io/three.js,gwindes/three.js,q437634645/three.js,benaadams/three.js,mataron/three.js,elephantatwork/ZAAK.IO-EditorInternal,ngokevin/three-dev,zodsoft/three.js,Leeft/three.js,jayhetee/three.js,AlexanderMazaletskiy/three.js,YajunQiu/three.js,controlzee/three.js,sufeiou/three.js,carlosanunes/three.js,rlugojr/three.js,dforrer/three.js,g-rocket/three.js,TatumCreative/three.js,tamarintech/three.js,controlzee/three.js,GastonBeaucage/three.js,stevenliujw/three.js,gdebojyoti/three.js,g-rocket/three.js,jeffgoku/three.js,fluxio/three.js,threejsworker/three.js,sole/three.js,humbletim/three.js,elephantatwork/three.js,wizztjh/three.js,quinonez/three.js,Jozain/three.js,JamesHagerman/three.js,rougier/three.js,rougier/three.js,takahirox/three.js,humbletim/three.js,hsimpson/three.js,rgaino/three.js,coffeine-009/three.js,archilogic-ch/three.js,fomenyesu/three.js,AscensionFoundation/three.js,ikerr/three.js,jayschwa/three.js,stopyransky/three.js,mese79/three.js,colombod/three.js,supergometan/three.js,programulya/three.js,richtr/three.js,swieder227/three.js,mess110/three.js,gigakiller/three.js,BrianSipple/three.js,Coburn37/three.js,sebasbaumh/three.js,fraguada/three.js,LeoEatle/three.js,LeoEatle/three.js,Delejnr/three.js,applexiaohao/three.js,VimVincent/three.js,ThiagoGarciaAlves/three.js,ma-tech/three.js,Leeft/three.js,unconed/three.js,pharos3d/three.js,jzitelli/three.js,nadirhamid/three.js,zz85/three.js,Delejnr/three.js,nhalloran/three.js,dubejf/three.js,aleen42/three.js,Leeft/three.js,GastonBeaucage/three.js,Fox32/three.js,squarefeet/three.js,looeee/three.js,zeropaper/three.js,mabo77/three.js,AltspaceVR/three.js,arose/three.js,simonThiele/three.js,dyx/three.js,gigakiller/three.js,Jerdak/three.js,lollerbus/three.js,surround-io/three.js,tronlec/three.js,UnboundVR/three.js,dforrer/three.js,sebasbaumh/three.js,SpookW/three.js,matgr1/three.js,GastonBeaucage/three.js,imshibaji/three.js,ngokevin/three.js,dayo7116/three.js,jayschwa/three.js,shinate/three.js,gveltri/three.js,shinate/three.js,Leeft/three.js,toxicFork/three.js,colombod/three.js,edge/three.js,mkkellogg/three.js,jango2015/three.js,GGAlanSmithee/three.js,takahirox/three.js,Hectate/three.js,valette/three.js,BlackTowerEntertainment/three.js,arose/three.js,pletzer/three.js,sheafferusa/three.js,q437634645/three.js,p5150j/three.js,LeoEatle/three.js,controlzee/three.js,benaadams/three.js,alexconlin/three.js,ducminhn/three.js,sitexa/three.js,Astrak/three.js,Jozain/three.js,archilogic-ch/three.js,carlosanunes/three.js,surround-io/three.js,fyoudine/three.js,DelvarWorld/three.js,redheli/three.js,GammaGammaRay/three.js,Mugen87/three.js,Jericho25/three.js,acrsteiner/three.js,blokhin/three.js,nraynaud/three.js,Amritesh/three.js,sheafferusa/three.js,TanNgocDo/three.js,NicolasRannou/three.js,bdysvik/three.js,holmberd/three.js,JingYongWang/three.js,ilovezy/three.js,WoodMath/three.js,nadirhamid/three.js,3DGEOM/three.js,prabhu-k/three.js,GammaGammaRay/three.js,JeckoHeroOrg/three.js,njam/three.js,datalink747/three.js,mess110/three.js,yuhualingfeng/three.js,yifanhunyc/three.js,YajunQiu/three.js,Ymaril/three.js,TatumCreative/three.js,wanby/three.js,AVGP/three.js,valette/three.js,toguri/three.js,xundaokeji/three.js,ngokevin/three.js,daoshengmu/three.js,GGAlanSmithee/three.js,mattdesl/three.js,gpranay4/three.js,AdactiveSAS/three.js,r8o8s1e0/three.js,erich666/three.js,MetaStackers/three.js,zbm2001/three.js,r8o8s1e0/three.js,yifanhunyc/three.js,Aldrien-/three.js,ndebeiss/three.js,ZAAK-ZURICHBERLIN/ZAAK.IO-Editor,rbarraud/three.js,archilogic-com/three.js,cc272309126/three.js,rbarraud/three.js,alienity/three.js,agnivade/three.js,dimensia/three.js,YajunQiu/three.js,stopyransky/three.js,mainelander/three.js,Meshu/three.js,Meshu/three.js,mabo77/three.js,dushmis/three.js,brickify/three.js,gdebojyoti/three.js,lovewitty/three.js,111t8e/three.js,ducminhn/three.js,ma-tech/three.js,luxigo/three.js,brickify/three.js,tronlec/three.js,eq0rip/three.js,arose/three.js,unphased/three.js,snipermiller/three.js,yrns/three.js,IceCreamYou/three.js,matgr1/three.js,coloringchaos/three.js,elephantatwork/three.js,simonThiele/three.js,WoodMath/three.js,satori99/three.js,kangax/three.js,plepers/three.js,wanby/three.js,zz85/three.js,Stinkdigital/three.js,huobaowangxi/three.js,Ludobaka/three.js,jbaicoianu/three.js,mess110/three.js,Ymaril/three.js,squarefeet/three.js,opensim-org/three.js,pletzer/three.js,Nitrillo/three.js,archilogic-com/three.js,SpookW/three.js,nhalloran/three.js,rbarraud/three.js,Cakin-Kwong/three.js,lollerbus/three.js,camellhf/three.js,q437634645/three.js,haozi23333/three.js,anvaka/three.js,zatchgordon/webGL,Stinkdigital/three.js,nhalloran/three.js,fkammer/three.js,byhj/three.js,Astrak/three.js,AlexanderMazaletskiy/three.js,ikerr/three.js,GammaGammaRay/three.js,SpinVR/three.js,ilovezy/three.js,leitzler/three.js,amazg/three.js,quinonez/three.js,Hectate/three.js,masterex1000/three.js,eq0rip/three.js,pletzer/three.js,prabhu-k/three.js,crazyyaoyao/yaoyao,MarcusLongmuir/three.js,VimVincent/three.js,Amritesh/three.js,BrianSipple/three.js,alexbelyeu/three.js,Gheehnest/three.js,gpranay4/three.js,luxigo/three.js,mataron/three.js,MarcusLongmuir/three.js,GastonBeaucage/three.js,missingdays/three.js-amd,TatumCreative/three.js,mattdesl/three.js,Joeldk/three.js,alienity/three.js,thomasxu1991/three.js,fernandojsg/three.js,swieder227/three.js,AdactiveSAS/three.js,SpookW/three.js,Kasual666/WebGl,Ludobaka/three.js,threejsworker/three.js,Kasual666/WebGl,zhanglingkang/three.js,UnboundVR/three.js,LeoEatle/three.js,julapy/three.js,snovak/three.js,MarcusLongmuir/three.js,elephantatwork/ZAAK.IO-EditorInternal,rayantony/three.js,lag945/three.js,jeromeetienne/three.js,SatoshiKawabata/three.js,brason/three.js,Gheehnest/three.js,arose/three.js,elephantatwork/three.js,lchl7890987/WebGL,Samsy/three.js,spite/three.js,Hectate/three.js,wavesoft/three.js,alexconlin/three.js,benjaminer82/threejs,fomenyesu/three.js,yuhualingfeng/three.js,wizztjh/three.js,huobaowangxi/three.js,HongJunLi/three.js,q437634645/three.js,archilogic-ch/three.js,111t8e/three.js,jee7/three.js,billfeller/three.js,rayantony/three.js,0merta/three.js,Samsung-Blue/three.js,dayo7116/three.js,unconed/three.js,rlugojr/three.js,beni55/three.js,lag945/three.js,makc/three.js.fork,stanford-gfx/three.js,camellhf/three.js,jayschwa/three.js,wavesoft/three.js,edivancamargo/three.js,SET001/three.js,RAtechntukan/three.js,digital360/three.js,bartmcleod/three.js,Delejnr/three.js,acrsteiner/three.js,fraguada/three.js,zhangwenyan/three.js,jeromeetienne/three.js,mataron/three.js,richtr/three.js,yxxme/three.js,ondys/three.js,DeanLym/three.js,GGAlanSmithee/three.js,VimVincent/three.js,ikerr/three.js,Peekmo/three.js,unphased/three.js,HongJunLi/three.js,julapy/three.js,edge/three.js,hedgerh/three.js,kkjeer/three.js,mainelander/three.js,squarefeet/three.js,yuhualingfeng/three.js,AltspaceVR/three.js,satori99/three.js,GammaGammaRay/three.js,coffeine-009/three.js,plepers/three.js,Peekmo/three.js,beni55/three.js,amazg/three.js,pharos3d/three.js,dimensia/three.js,111t8e/three.js,Cakin-Kwong/three.js,mabo77/three.js,NicolasRannou/three.js,godlzr/Three.js,mudithkr/three.js,coderrick/three.js,tronlec/three.js,snipermiller/three.js,holmberd/three.js,huobaowangxi/three.js,ZhenxingWu/three.js,coffeine-009/three.js,elephantatwork/three.js,sitexa/three.js,Wilt/three.js,Jonham/three.js,nhalloran/three.js,fanzhanggoogle/three.js,Jericho25/three.js,HongJunLi/three.js,dayo7116/three.js,mindofmatthew/three.js,lollerbus/three.js,SpookW/three.js,jpweeks/three.js,prika/three.js,Mugen87/three.js,spite/three.js,snovak/three.js,mudithkr/three.js,digital360/three.js,jango2015/three.js,byhj/three.js,StefanHuzz/three.js,mrdoob/three.js,stopyransky/three.js,chuckfairy/three.js,Pro/three.js,dimensia/three.js,podgorskiy/three.js,Stinkdigital/three.js,tronlec/three.js,coloringchaos/three.js,zhangwenyan/three.js,leeric92/three.js,fernandojsg/three.js,elephantatwork/three.js,DLar/three.js,thomasxu1991/three.js,Delejnr/three.js,haozi23333/three.js,fluxio/three.js,framelab/three.js,coloringchaos/three.js,colombod/three.js,JamesHagerman/three.js,RAtechntukan/three.js,Black-Alpha/three.js,Delejnr/three.js,VimVincent/three.js,WoodMath/three.js,jostschmithals/three.js,amazg/three.js,borismus/three.js,yxxme/three.js,sherousee/three.js,leeric92/three.js,unphased/three.js,zhanglingkang/three.js,dayo7116/three.js,fomenyesu/three.js,Pro/three.js,Ymaril/three.js,eq0rip/three.js,Hectate/three.js,dyx/three.js,sufeiou/three.js,archilogic-com/three.js,Coburn37/three.js,coloringchaos/three.js,rayantony/three.js,applexiaohao/three.js,coderrick/three.js,takahirox/three.js,jango2015/three.js,brason/three.js,nadirhamid/three.js,chaoallsome/three.js,GGAlanSmithee/three.js,technohippy/three.js,amazg/three.js,benaadams/three.js,fkammer/three.js,gpranay4/three.js,VimVincent/three.js,crazyyaoyao/yaoyao,WoodMath/three.js,RemusMar/three.js,amakaroff82/three.js,mattholl/three.js,bdysvik/three.js,wanby/three.js,yxxme/three.js,rbarraud/three.js,3DGEOM/three.js,googlecreativelab/three.js,coloringchaos/three.js,p5150j/three.js,mkkellogg/three.js,missingdays/three.js-amd,meizhoubao/three.js,sunbc0120/three.js,Zerschmetterling91/three.js,quinonez/three.js,edivancamargo/three.js,wanby/three.js,BlackTowerEntertainment/three.js,wizztjh/three.js,JuudeDemos/three.js,ducminhn/three.js,Jozain/three.js,stemkoski/three.js,stevenliujw/three.js,shanmugamss/three.js-modified,hacksalot/three.js,framelab/three.js,eq0rip/three.js,flimshaw/three.js,zhangwenyan/three.js,mhoangvslev/data-visualizer,coderrick/three.js,kkjeer/three.js,fkammer/three.js,TristanVALCKE/three.js,nopjia/three.js,AltspaceVR/three.js,zz85/three.js,AVGP/three.js,fomenyesu/three.js,jbaicoianu/three.js,brianchirls/three.js,programulya/three.js,ma-tech/three.js,bhouston/three.js,Jonham/three.js,toguri/three.js,Nitrillo/three.js,nraynaud/three.js,SET001/three.js,anvaka/three.js,Ymaril/three.js,srifqi/three.js,sreith1/three.js,WoodMath/three.js,dyx/three.js,Jozain/three.js,datalink747/three.js,Fox32/three.js,njam/three.js,sitexa/three.js,Samsy/three.js,g-rocket/three.js,fluxio/three.js,cc272309126/three.js,TanNgocDo/three.js,snipermiller/three.js,unconed/three.js,sweetmandm/three.js,timcastelijn/three.js,tdmsinc/three.js,archilogic-com/three.js,gigakiller/three.js,jpweeks/three.js,leitzler/three.js,111t8e/three.js,satori99/three.js,Gheehnest/three.js,vizorvr/three.js,srifqi/three.js,zbm2001/three.js,stevenliujw/three.js,swieder227/three.js,DLar/three.js,aleen42/three.js,fanzhanggoogle/three.js,bartmcleod/three.js,JamesHagerman/three.js,lchl7890987/WebGL,WoodMath/three.js,davidvmckay/three.js,sole/three.js,mrkev/three.js,BenediktS/three.js,brason/three.js,brianchirls/three.js,liusashmily/three.js,toxicFork/three.js,mese79/three.js,Wilt/three.js,arodic/three.js,humbletim/three.js,Kakakakakku/three.js,threejsworker/three.js,technohippy/three.js,mhoangvslev/data-visualizer,meizhoubao/three.js,shinate/three.js,liammagee/three.js,shinate/three.js,chaoallsome/three.js,fluxio/three.js,liammagee/three.js,gveltri/three.js,Benjamin-Dobell/three.js,Hectate/three.js,amakaroff82/three.js,enche/three.js,mattholl/three.js,AntTech/three.js,camellhf/three.js,leitzler/three.js,Fox32/three.js,vizorvr/three.js,UnboundVR/three.js,DelvarWorld/three.js,mataron/three.js,Mohammed-Ashour/three.js,jee7/three.js,matgr1/three.js,JeckoHeroOrg/three.js,borismus/three.js,richtr/three.js,DelvarWorld/three.js,Seagat2011/three.js,bhouston/three.js,mkkellogg/three.js,digital360/three.js,humbletim/three.js,threejsworker/three.js,dyx/three.js,Benjamin-Dobell/three.js,jeromeetienne/three.js,Cakin-Kwong/three.js,byhj/three.js,Seagat2011/three.js,MetaStackers/three.js,dushmis/three.js,alexbelyeu/three.js,wuxinwei240/three.js,dhritzkiv/three.js,zeropaper/three.js,sreith1/three.js,ondys/three.js,SpookW/three.js,anvaka/three.js,arose/three.js,sherousee/three.js,Joeldk/three.js,fanzhanggoogle/three.js,davidvmckay/three.js,JingYongWang/three.js,anvaka/three.js,crazyyaoyao/yaoyao,sufeiou/three.js,Leeft/three.js,ilovezy/three.js,nopjia/three.js,pharos3d/three.js,amazg/three.js,supergometan/three.js,digital360/three.js,Wilt/three.js,snovak/three.js,Mohammed-Ashour/three.js,stemkoski/three.js,Dewb/three.js,liammagee/three.js,tronlec/three.js,mattholl/three.js,UnboundVR/three.js,jllodra/three.js,unconed/three.js,ilovezy/three.js,gveltri/three.js,BenediktS/three.js,prika/three.js,mese79/three.js,edivancamargo/three.js,byhj/three.js,yrns/three.js,RemusMar/three.js,godlzr/Three.js,pharos3d/three.js,pletzer/three.js,JeckoHeroOrg/three.js,DelvarWorld/three.js,hedgerh/three.js,imshibaji/three.js,edivancamargo/three.js,Aldrien-/three.js,freekh/three.js,tschw/three.js,Seagat2011/three.js,WestLangley/three.js,r8o8s1e0/three.js,dhritzkiv/three.js,alexbelyeu/three.js,masterex1000/three.js,thomasxu1991/three.js,googlecreativelab/three.js,AscensionFoundation/three.js,cc272309126/three.js,liammagee/three.js,yrns/three.js,RAtechntukan/three.js,snipermiller/three.js,LeoEatle/three.js,timcastelijn/three.js,spite/three.js,cc272309126/three.js,Jericho25/three.js,vizorvr/three.js,mhoangvslev/data-visualizer,archilogic-ch/three.js,lovewitty/three.js,mkkellogg/three.js,robsix/3ditor,RAtechntukan/three.js,freekh/three.js,AntTech/three.js,missingdays/three.js-amd,sitexa/three.js,0merta/three.js,simonThiele/three.js,takahirox/three.js,daoshengmu/three.js,Samsy/three.js,NicolasRannou/three.js,elephantatwork/ZAAK.IO-EditorInternal,Nitrillo/three.js,Nitrillo/three.js,ValtoLibraries/ThreeJS,alienity/three.js,imshibaji/three.js,NicolasRannou/three.js,jango2015/three.js,alexbelyeu/three.js,Samsung-Blue/three.js,sheafferusa/three.js,gsssrao/three.js,Samsy/three.js,rfm1201/rfm.three.js,mattdesl/three.js,snipermiller/three.js,TatumCreative/three.js,matthiascy/three.js,toxicFork/three.js,hacksalot/three.js,ThiagoGarciaAlves/three.js,fkammer/three.js,tdmsinc/three.js,fraguada/three.js,coderrick/three.js,cadenasgmbh/three.js,rougier/three.js,brason/three.js,Zerschmetterling91/three.js,nraynaud/three.js,wuxinwei240/three.js,swieder227/three.js,dimensia/three.js,jbaicoianu/three.js,imshibaji/three.js,rlugojr/three.js,srifqi/three.js,AlexanderMazaletskiy/three.js,sasha240100/three.js,podgorskiy/three.js,benjaminer82/threejs,controlzee/three.js,Coburn37/three.js,ngokevin/three-dev,ngokevin/three-dev,JamesHagerman/three.js,GammaGammaRay/three.js,ndebeiss/three.js,snipermiller/three.js,mataron/three.js,Pro/three.js,daoshengmu/three.js,MasterJames/three.js,elisee/three.js,Astrak/three.js,Samsung-Blue/three.js,dforrer/three.js,JamesHagerman/three.js,flimshaw/three.js,aleen42/three.js,satori99/three.js,huobaowangxi/three.js,wavesoft/three.js,flimshaw/three.js,godlzr/Three.js,masterex1000/three.js,mudithkr/three.js,RemusMar/three.js,DelvarWorld/three.js,MarcusLongmuir/three.js,ngokevin/three.js,nadirhamid/three.js,lovewitty/three.js,jzitelli/three.js,jeffgoku/three.js,sole/three.js,robmyers/three.js,humbletim/three.js,Zerschmetterling91/three.js,dayo7116/three.js,digital360/three.js,quinonez/three.js,Peekmo/three.js,jllodra/three.js,vizorvr/three.js,ValtoLibraries/ThreeJS,robmyers/three.js,Jonham/three.js,Jericho25/three.js,MetaStackers/three.js,lchl7890987/WebGL,holmberd/three.js,gsssrao/three.js,arodic/three.js,agnivade/three.js,archilogic-com/three.js,pletzer/three.js,Cakin-Kwong/three.js,eq0rip/three.js,Aldrien-/three.js,quinonez/three.js,LaughingSun/three.js,zatchgordon/webGL,jeffgoku/three.js,dubejf/three.js,leeric92/three.js,stevenliujw/three.js,gpranay4/three.js,jllodra/three.js,amakaroff82/three.js,jostschmithals/three.js,yxxme/three.js,Mugen87/three.js,pailhead/three.js,matthartman/oculus-matt,chaoallsome/three.js,sebasbaumh/three.js,dglogik/three.js,JuudeDemos/three.js,haozi23333/three.js,pletzer/three.js,spite/three.js,nopjia/three.js,gwindes/three.js,matthartman/oculus-matt,matthartman/oculus-matt,tdmsinc/three.js,Joeldk/three.js,luxigo/three.js,Peekmo/three.js,dushmis/three.js,mabo77/three.js,rgaino/three.js,phfatmonkey/three.js,tdmsinc/three.js,enche/three.js,Stinkdigital/three.js,framelab/three.js,BrianSipple/three.js,zhanglingkang/three.js,carlosanunes/three.js,sreith1/three.js,easz/three.js,gsssrao/three.js,Samsy/three.js,jeromeetienne/three.js,sufeiou/three.js,unconed/three.js,flimshaw/three.js,jostschmithals/three.js,Wilt/three.js,thomasxu1991/three.js,Black-Alpha/three.js,beni55/three.js,camellhf/three.js,kangax/three.js,blokhin/three.js,Zerschmetterling91/three.js,Dewb/three.js,datalink747/three.js,blokhin/three.js,Jozain/three.js,ngokevin/three-dev,simonThiele/three.js,ndebeiss/three.js,elisee/three.js,rlugojr/three.js,luxigo/three.js,zatchgordon/webGL,toguri/three.js,dforrer/three.js,prika/three.js,agnivade/three.js,timcastelijn/three.js,ZhenxingWu/three.js,swieder227/three.js,Dewb/three.js,kkjeer/three.js,Jerdak/three.js,ngokevin/three.js,Kasual666/WebGl,prika/three.js,elisee/three.js,liusashmily/three.js,pharos3d/three.js,supergometan/three.js,sweetmandm/three.js,jbaicoianu/three.js,RAtechntukan/three.js,plepers/three.js,aleen42/three.js,godlzr/Three.js,JuudeDemos/three.js,Seagat2011/three.js,mkkellogg/three.js,archcomet/three.js,blokhin/three.js,pailhead/three.js,TanNgocDo/three.js,dyx/three.js,mudithkr/three.js,meizhoubao/three.js,looeee/three.js,AlexanderMazaletskiy/three.js,Seagat2011/three.js,jbaicoianu/three.js,ZAAK-ZURICHBERLIN/ZAAK.IO-Editor,carlosanunes/three.js,rougier/three.js,JingYongWang/three.js,Jonham/three.js,tdmsinc/three.js,TanNgocDo/three.js,hedgerh/three.js,0merta/three.js,ilovezy/three.js,zhoushijie163/three.js,chaoallsome/three.js,BlackTowerEntertainment/three.js,sttz/three.js,Jonham/three.js,agnivade/three.js,DLar/three.js,Samsung-Blue/three.js,wuxinwei240/three.js,zeropaper/three.js,sebasbaumh/three.js,StefanHuzz/three.js,alexconlin/three.js,gdebojyoti/three.js,richtr/three.js,timcastelijn/three.js,mrkev/three.js,ma-tech/three.js,billfeller/three.js,stopyransky/three.js,bhouston/three.js,Nitrillo/three.js,tamarintech/three.js,hacksalot/three.js,datalink747/three.js,AntTech/three.js,111t8e/three.js,hedgerh/three.js,Itee/three.js,jango2015/three.js,humbletim/three.js,borismus/three.js,BrianSipple/three.js,dushmis/three.js,rgaino/three.js,nraynaud/three.js,zodsoft/three.js,wavesoft/three.js,pharos3d/three.js,sherousee/three.js,jeffgoku/three.js,swieder227/three.js,Ymaril/three.js,3DGEOM/three.js,ondys/three.js,googlecreativelab/three.js,bhouston/three.js,jeffgoku/three.js,Samsy/three.js,matthartman/oculus-matt,sheafferusa/three.js,colombod/three.js,hacksalot/three.js,gsssrao/three.js,gdebojyoti/three.js,freekh/three.js,111t8e/three.js,yifanhunyc/three.js,coffeine-009/three.js,mess110/three.js,Leeft/three.js,makc/three.js.fork,rchadwic/three.js,sasha240100/three.js,Itee/three.js,tamarintech/three.js,hedgerh/three.js,arodic/three.js,cadenasgmbh/three.js,nraynaud/three.js,archcomet/three.js,yuhualingfeng/three.js,Cakin-Kwong/three.js,BrianSipple/three.js,ma-tech/three.js,vizorvr/three.js,toguri/three.js,ilovezy/three.js,meizhoubao/three.js,srifqi/three.js,mattholl/three.js,valette/three.js,Kasual666/WebGl,Pro/three.js,AVGP/three.js,borismus/three.js,Seagat2011/three.js,missingdays/three.js-amd,BenediktS/three.js,Coburn37/three.js,r8o8s1e0/three.js,SatoshiKawabata/three.js,Zerschmetterling91/three.js,ZAAK-ZURICHBERLIN/ZAAK.IO-Editor,benaadams/three.js,brickify/three.js,BlackTowerEntertainment/three.js,NicolasRannou/three.js,shanmugamss/three.js-modified,ZAAK-ZURICHBERLIN/ZAAK.IO-Editor,elisee/three.js,fluxio/three.js,chuckfairy/three.js,chuckfairy/three.js,ThiagoGarciaAlves/three.js,AntTech/three.js,tschw/three.js,jango2015/three.js,mainelander/three.js,mkkellogg/three.js,Benjamin-Dobell/three.js,MarcusLongmuir/three.js,lchl7890987/WebGL,liusashmily/three.js,stemkoski/three.js,easz/three.js,jayhetee/three.js,IceCreamYou/three.js,datalink747/three.js,elisee/three.js,brianchirls/three.js,MetaStackers/three.js,NicolasRannou/three.js,kangax/three.js,JingYongWang/three.js,davidvmckay/three.js,bhouston/three.js,huobaowangxi/three.js,matthiascy/three.js,ZhenxingWu/three.js,jostschmithals/three.js,wizztjh/three.js,mattdesl/three.js,sreith1/three.js,dubejf/three.js,robmyers/three.js,shinate/three.js,p5150j/three.js,lovewitty/three.js,ngokevin/three.js,archilogic-ch/three.js,hedgerh/three.js,rchadwic/three.js,p5150j/three.js,p5150j/three.js,dyx/three.js,carlosanunes/three.js,plepers/three.js,LeoEatle/three.js,JamesHagerman/three.js,applexiaohao/three.js,LaughingSun/three.js,wanby/three.js,fraguada/three.js,TristanVALCKE/three.js,MetaStackers/three.js,mhoangvslev/data-visualizer,redheli/three.js,jzitelli/three.js,applexiaohao/three.js,ValtoLibraries/ThreeJS,freekh/three.js,HongJunLi/three.js,AntTech/three.js,zbm2001/three.js,SatoshiKawabata/three.js,matgr1/three.js,Meshu/three.js,3DGEOM/three.js,shinate/three.js,Jerdak/three.js,jllodra/three.js,wizztjh/three.js,dayo7116/three.js,JeckoHeroOrg/three.js,rougier/three.js,easz/three.js,bdysvik/three.js,mese79/three.js,Coburn37/three.js,snovak/three.js,AntTech/three.js,gwindes/three.js,DLar/three.js,Kakakakakku/three.js,jzitelli/three.js,shanmugamss/three.js-modified,controlzee/three.js,fomenyesu/three.js,tamarintech/three.js,RAtechntukan/three.js,alexconlin/three.js,Benjamin-Dobell/three.js,ngokevin/three-dev,stanford-gfx/three.js,ValtoLibraries/ThreeJS,BenediktS/three.js,AVGP/three.js,JingYongWang/three.js,haozi23333/three.js,elephantatwork/ZAAK.IO-EditorInternal,stopyransky/three.js,jee7/three.js,enche/three.js,fyoudine/three.js,mainelander/three.js,daoshengmu/three.js,threejsworker/three.js,Black-Alpha/three.js,kaisalmen/three.js,SatoshiKawabata/three.js,yifanhunyc/three.js,Fox32/three.js,ondys/three.js,mese79/three.js,g-rocket/three.js,alienity/three.js,Mohammed-Ashour/three.js,jayhetee/three.js,threejsworker/three.js,lchl7890987/WebGL,SET001/three.js,edge/three.js,plepers/three.js,sweetmandm/three.js,Zerschmetterling91/three.js,Nitrillo/three.js,Coburn37/three.js,acrsteiner/three.js,haozi23333/three.js,jayschwa/three.js,AscensionFoundation/three.js,ValtoLibraries/ThreeJS,IceCreamYou/three.js,zz85/three.js,BenediktS/three.js,dforrer/three.js,datalink747/three.js,enche/three.js,robsix/3ditor,RemusMar/three.js,crazyyaoyao/yaoyao,liusashmily/three.js,Kasual666/WebGl,zeropaper/three.js,IceCreamYou/three.js,mess110/three.js,rayantony/three.js,MasterJames/three.js,carlosanunes/three.js,imshibaji/three.js,coderrick/three.js,sasha240100/three.js,unphased/three.js,Jozain/three.js,squarefeet/three.js,zatchgordon/webGL,byhj/three.js,tschw/three.js,byhj/three.js,Pro/three.js,surround-io/three.js,mrkev/three.js,gwindes/three.js,gveltri/three.js,wuxinwei240/three.js,brianchirls/three.js,phfatmonkey/three.js,mattdesl/three.js,sitexa/three.js,Ludobaka/three.js,Gheehnest/three.js,arodic/three.js,jostschmithals/three.js,UnboundVR/three.js,satori99/three.js,zhangwenyan/three.js,JeckoHeroOrg/three.js,Fox32/three.js,StefanHuzz/three.js,fta2012/three.js,leeric92/three.js,sole/three.js,fta2012/three.js,IceCreamYou/three.js,sreith1/three.js,fraguada/three.js,gero3/three.js,Stinkdigital/three.js,RemusMar/three.js,JuudeDemos/three.js,rchadwic/three.js,dhritzkiv/three.js,gpranay4/three.js,coloringchaos/three.js,robsix/3ditor,nraynaud/three.js,alexbelyeu/three.js,alienity/three.js,rgaino/three.js,googlecreativelab/three.js,SET001/three.js,nopjia/three.js,mattdesl/three.js,xundaokeji/three.js,rgaino/three.js,satori99/three.js,zhanglingkang/three.js,opensim-org/three.js,sweetmandm/three.js,bartmcleod/three.js,mindofmatthew/three.js,technohippy/three.js,brason/three.js,gsssrao/three.js,dforrer/three.js,0merta/three.js,jzitelli/three.js,jayhetee/three.js,stevenliujw/three.js,Joeldk/three.js,leitzler/three.js,quinonez/three.js,chuckfairy/three.js,alienity/three.js,donmccurdy/three.js,dubejf/three.js,missingdays/three.js-amd,robmyers/three.js,liusashmily/three.js,06wj/three.js,programulya/three.js,fta2012/three.js,benjaminer82/threejs,Astrak/three.js,aardgoose/three.js,TristanVALCKE/three.js,njam/three.js,Aldrien-/three.js,gigakiller/three.js,Black-Alpha/three.js,redheli/three.js,godlzr/Three.js,thomasxu1991/three.js,HongJunLi/three.js,bdysvik/three.js,squarefeet/three.js,bdysvik/three.js,amakaroff82/three.js,ThiagoGarciaAlves/three.js,DLar/three.js,simonThiele/three.js,acrsteiner/three.js,Gheehnest/three.js,brason/three.js,zhanglingkang/three.js,alexbelyeu/three.js,MasterJames/three.js,yifanhunyc/three.js,sunbc0120/three.js,ZAAK-ZURICHBERLIN/ZAAK.IO-Editor,DeanLym/three.js,wavesoft/three.js,masterex1000/three.js,masterex1000/three.js,coffeine-009/three.js,fkammer/three.js,mainelander/three.js,DeanLym/three.js,nadirhamid/three.js,kkjeer/three.js,ThiagoGarciaAlves/three.js,AlexanderMazaletskiy/three.js,Ymaril/three.js,timcastelijn/three.js,mainelander/three.js,googlecreativelab/three.js,JuudeDemos/three.js,shanmugamss/three.js-modified,beni55/three.js,spite/three.js,Amritesh/three.js,fomenyesu/three.js,Dewb/three.js,mindofmatthew/three.js,programulya/three.js,toxicFork/three.js,ngokevin/three.js,applexiaohao/three.js,njam/three.js,fernandojsg/three.js,easz/three.js,DeanLym/three.js,nopjia/three.js,unphased/three.js,AscensionFoundation/three.js,brianchirls/three.js,matthartman/oculus-matt,squarefeet/three.js,supergometan/three.js,mrkev/three.js,eq0rip/three.js,rfm1201/rfm.three.js,zhoushijie163/three.js,Kasual666/WebGl,AltspaceVR/three.js,meizhoubao/three.js,leeric92/three.js,ducminhn/three.js,SET001/three.js,AscensionFoundation/three.js,benaadams/three.js,huobaowangxi/three.js,SatoshiKawabata/three.js,kaisalmen/three.js,wizztjh/three.js,mudithkr/three.js,MasterJames/three.js,0merta/three.js,sheafferusa/three.js,tschw/three.js,takahirox/three.js,Peekmo/three.js,sufeiou/three.js,sreith1/three.js,ndebeiss/three.js,AscensionFoundation/three.js,controlzee/three.js,BrianSipple/three.js,thomasxu1991/three.js,colombod/three.js,Kakakakakku/three.js,TristanVALCKE/three.js,davidvmckay/three.js,holmberd/three.js,ZhenxingWu/three.js,podgorskiy/three.js,Cakin-Kwong/three.js,sweetmandm/three.js,yxxme/three.js,Liuer/three.js,snovak/three.js,AlexanderMazaletskiy/three.js,Jericho25/three.js,liusashmily/three.js,jayhetee/three.js,julapy/three.js,bartmcleod/three.js,mindofmatthew/three.js,QingchaoHu/three.js,Astrak/three.js,kkjeer/three.js,holmberd/three.js,fanzhanggoogle/three.js,Liuer/three.js,fanzhanggoogle/three.js,gero3/three.js,ducminhn/three.js,Ludobaka/three.js,zhanglingkang/three.js,gdebojyoti/three.js,Hectate/three.js,stemkoski/three.js,yrns/three.js,matthiascy/three.js,SET001/three.js,edivancamargo/three.js,mhoangvslev/data-visualizer,DeanLym/three.js,surround-io/three.js,SpookW/three.js,zhangwenyan/three.js,Samsung-Blue/three.js,nopjia/three.js,ndebeiss/three.js,cc272309126/three.js,UnboundVR/three.js,erich666/three.js,beni55/three.js,billfeller/three.js,acrsteiner/three.js,davidvmckay/three.js,mese79/three.js,chaoallsome/three.js,technohippy/three.js,elisee/three.js,unphased/three.js,masterex1000/three.js,amazg/three.js,archilogic-ch/three.js,3DGEOM/three.js,TanNgocDo/three.js,GGAlanSmithee/three.js,IceCreamYou/three.js,dimensia/three.js,Joeldk/three.js,JeckoHeroOrg/three.js,imshibaji/three.js,WestLangley/three.js,r8o8s1e0/three.js,q437634645/three.js,zodsoft/three.js,SpinVR/three.js,Jericho25/three.js,sunbc0120/three.js,robmyers/three.js,pailhead/three.js,sweetmandm/three.js,borismus/three.js,njam/three.js,richtr/three.js,bartmcleod/three.js,applexiaohao/three.js,gigakiller/three.js,shanmugamss/three.js-modified,toguri/three.js,zatchgordon/webGL,archcomet/three.js,holmberd/three.js,matthiascy/three.js,g-rocket/three.js,benjaminer82/threejs,Meshu/three.js,MasterJames/three.js,alexconlin/three.js,freekh/three.js,zhangwenyan/three.js,elephantatwork/three.js,yuhualingfeng/three.js,lag945/three.js,robmyers/three.js,TanNgocDo/three.js,Benjamin-Dobell/three.js,sasha240100/three.js,fta2012/three.js,googlecreativelab/three.js,rayantony/three.js,tamarintech/three.js,zatchgordon/webGL,MasterJames/three.js,dubejf/three.js,matthiascy/three.js,GammaGammaRay/three.js,zbm2001/three.js,spite/three.js,zodsoft/three.js,TristanVALCKE/three.js,wuxinwei240/three.js,prabhu-k/three.js,daoshengmu/three.js,leitzler/three.js,LaughingSun/three.js,stevenliujw/three.js,sunbc0120/three.js,liammagee/three.js,rfm1201/rfm.three.js,wuxinwei240/three.js,sitexa/three.js,jayschwa/three.js,fkammer/three.js,rchadwic/three.js,lollerbus/three.js,SatoshiKawabata/three.js,agnivade/three.js,toxicFork/three.js,prabhu-k/three.js,liammagee/three.js,zz85/three.js,Samsung-Blue/three.js,alexconlin/three.js,sheafferusa/three.js,stopyransky/three.js,valette/three.js,lag945/three.js,ZAAK-ZURICHBERLIN/ZAAK.IO-Editor,MetaStackers/three.js,LaughingSun/three.js,xundaokeji/three.js,vizorvr/three.js,Kakakakakku/three.js,AdactiveSAS/three.js,YajunQiu/three.js,phfatmonkey/three.js,hacksalot/three.js,Dewb/three.js,prabhu-k/three.js,leeric92/three.js,technohippy/three.js,zbm2001/three.js,enche/three.js,QingchaoHu/three.js,kangax/three.js,daoshengmu/three.js,arodic/three.js,shanmugamss/three.js-modified,brickify/three.js,LaughingSun/three.js,rchadwic/three.js,lag945/three.js,srifqi/three.js,benaadams/three.js,freekh/three.js,Jerdak/three.js,Jerdak/three.js,erich666/three.js,supergometan/three.js,AltspaceVR/three.js,camellhf/three.js,mess110/three.js,mabo77/three.js,jllodra/three.js,jeromeetienne/three.js,Ludobaka/three.js,nhalloran/three.js,lchl7890987/WebGL,GastonBeaucage/three.js,chuckfairy/three.js,anvaka/three.js,tdmsinc/three.js,programulya/three.js,archcomet/three.js,sunbc0120/three.js,TristanVALCKE/three.js,takahirox/three.js,q437634645/three.js,sole/three.js,3DGEOM/three.js,kangax/three.js,jeromeetienne/three.js,mabo77/three.js,fanzhanggoogle/three.js,mindofmatthew/three.js,Stinkdigital/three.js,TatumCreative/three.js,sttz/three.js,xundaokeji/three.js,xundaokeji/three.js,nhalloran/three.js,sasha240100/three.js,simonThiele/three.js,fraguada/three.js,yifanhunyc/three.js,redheli/three.js,DeanLym/three.js,valette/three.js,Gheehnest/three.js,Aldrien-/three.js,sole/three.js,wavesoft/three.js,GGAlanSmithee/three.js,podgorskiy/three.js,rlugojr/three.js,ikerr/three.js,BenediktS/three.js,ndebeiss/three.js,MarcusLongmuir/three.js,jayschwa/three.js,mrkev/three.js,Peekmo/three.js,prabhu-k/three.js,coffeine-009/three.js,ondys/three.js,YajunQiu/three.js,beni55/three.js,jzitelli/three.js,bdysvik/three.js,jbaicoianu/three.js,Wilt/three.js,lollerbus/three.js,AdactiveSAS/three.js,dhritzkiv/three.js,tschw/three.js,mrkev/three.js,gpranay4/three.js,LaughingSun/three.js,Kakakakakku/three.js,rayantony/three.js,missingdays/three.js-amd,tschw/three.js,Jerdak/three.js,blokhin/three.js,rgaino/three.js,brickify/three.js,prika/three.js,AdactiveSAS/three.js,dglogik/three.js,matgr1/three.js,sufeiou/three.js,Wilt/three.js,rbarraud/three.js,elephantatwork/ZAAK.IO-EditorInternal,ZhenxingWu/three.js,ThiagoGarciaAlves/three.js,srifqi/three.js,AdactiveSAS/three.js,edge/three.js,archilogic-com/three.js,redheli/three.js,mhoangvslev/data-visualizer,unconed/three.js,richtr/three.js,BlackTowerEntertainment/three.js,agnivade/three.js,Astrak/three.js,easz/three.js,phfatmonkey/three.js,Ludobaka/three.js,technohippy/three.js,Pro/three.js,nadirhamid/three.js,flimshaw/three.js,greggman/three.js,jayhetee/three.js,tamarintech/three.js,njam/three.js,mindofmatthew/three.js,sasha240100/three.js,meizhoubao/three.js,cc272309126/three.js,luxigo/three.js,archcomet/three.js,edivancamargo/three.js,aleen42/three.js,dushmis/three.js,billfeller/three.js,gsssrao/three.js,amakaroff82/three.js,godlzr/Three.js,arodic/three.js,kkjeer/three.js,zeropaper/three.js,lag945/three.js,Meshu/three.js,mattholl/three.js,podgorskiy/three.js,dhritzkiv/three.js,HongJunLi/three.js,redheli/three.js,ngokevin/three-dev,sunbc0120/three.js,gwindes/three.js,erich666/three.js,Black-Alpha/three.js,toguri/three.js,matthiascy/three.js,yrns/three.js,yxxme/three.js,stemkoski/three.js,lovewitty/three.js,gigakiller/three.js,ondys/three.js,StefanHuzz/three.js,dimensia/three.js,acrsteiner/three.js,edge/three.js,JuudeDemos/three.js,easz/three.js,aardgoose/three.js,GastonBeaucage/three.js,mattholl/three.js,leitzler/three.js,ma-tech/three.js,bhouston/three.js,gdebojyoti/three.js,colombod/three.js,dubejf/three.js,gwindes/three.js,gveltri/three.js,mataron/three.js,StefanHuzz/three.js | javascript | ## Code Before:
var window = window || {};
var self = self || {};
## Instruction:
Use process.hrtime() for Clock in node.js builds
As discussed in #2975.
## Code After:
var window = window || {};
var self = self || {};
// High-resulution counter: emulate window.performance.now() for THREE.CLOCK
if( window.performance === undefined ) {
window.performance = { };
}
if( window.performance.now === undefined ) {
window.performance.now = function () {
var time = process.hrtime();
return ( time[0] + time[1] / 1e9 ) * 1000;
};
}
|
var window = window || {};
var self = self || {};
+
+ // High-resulution counter: emulate window.performance.now() for THREE.CLOCK
+ if( window.performance === undefined ) {
+
+ window.performance = { };
+
+ }
+
+ if( window.performance.now === undefined ) {
+
+ window.performance.now = function () {
+
+ var time = process.hrtime();
+ return ( time[0] + time[1] / 1e9 ) * 1000;
+
+ };
+
+ } | 18 | 6 | 18 | 0 |
b39491678bd8db7a3e3ad9157d7b8431bfdb8cd6 | lib/rack/switchboard/store_loader.rb | lib/rack/switchboard/store_loader.rb | module Rack
class Switchboard
module StoreLoader
protected
def create_store(options = :memory)
config = options || :memory
provider, config = if config.kind_of? Hash
[ config.delete(:provider), config ]
else
[ config, {} ]
end
require "rack/switchboard/store/#{provider}"
Rack::Switchboard::Store.const_get(classify(provider)).new(config)
end
def classify(provider)
provider.to_s.gsub(/^([a-z])/){|m| m[0].upcase}.gsub(/_([a-z])/){|m| m[1].upcase}
end
end
end
end
| module Rack
class Switchboard
module StoreLoader
protected
def create_store(options = :memory)
config = options ? options.dup : :memory
provider, config = if config.kind_of? Hash
[ config.delete(:provider), config ]
else
[ config, {} ]
end
require "rack/switchboard/store/#{provider}"
Rack::Switchboard::Store.const_get(classify(provider)).new(config)
end
def classify(provider)
provider.to_s.gsub(/^([a-z])/){|m| m[0].upcase}.gsub(/_([a-z])/){|m| m[1].upcase}
end
end
end
end
| Fix issue with modifying shared shared options hash | Fix issue with modifying shared shared options hash
| Ruby | mit | Scoutmob/rack-switchboard | ruby | ## Code Before:
module Rack
class Switchboard
module StoreLoader
protected
def create_store(options = :memory)
config = options || :memory
provider, config = if config.kind_of? Hash
[ config.delete(:provider), config ]
else
[ config, {} ]
end
require "rack/switchboard/store/#{provider}"
Rack::Switchboard::Store.const_get(classify(provider)).new(config)
end
def classify(provider)
provider.to_s.gsub(/^([a-z])/){|m| m[0].upcase}.gsub(/_([a-z])/){|m| m[1].upcase}
end
end
end
end
## Instruction:
Fix issue with modifying shared shared options hash
## Code After:
module Rack
class Switchboard
module StoreLoader
protected
def create_store(options = :memory)
config = options ? options.dup : :memory
provider, config = if config.kind_of? Hash
[ config.delete(:provider), config ]
else
[ config, {} ]
end
require "rack/switchboard/store/#{provider}"
Rack::Switchboard::Store.const_get(classify(provider)).new(config)
end
def classify(provider)
provider.to_s.gsub(/^([a-z])/){|m| m[0].upcase}.gsub(/_([a-z])/){|m| m[1].upcase}
end
end
end
end
| module Rack
class Switchboard
module StoreLoader
protected
def create_store(options = :memory)
- config = options || :memory
? ^^
+ config = options ? options.dup : :memory
? ^^^^^^^^^^^^^^^
provider, config = if config.kind_of? Hash
[ config.delete(:provider), config ]
else
[ config, {} ]
end
require "rack/switchboard/store/#{provider}"
Rack::Switchboard::Store.const_get(classify(provider)).new(config)
end
def classify(provider)
provider.to_s.gsub(/^([a-z])/){|m| m[0].upcase}.gsub(/_([a-z])/){|m| m[1].upcase}
end
end
end
end | 2 | 0.086957 | 1 | 1 |
c85d033c7bf0f50b2a19d89aea93b7310066b66f | bootstrap.sh | bootstrap.sh |
sudo rpm -i http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
sudo yum -y install python-pip python-virtualenv gcc git
sudo yum -y install python-keystoneclient python-novaclient python-glanceclient python-neutronclient python-keystoneclient
yum -y install sshpass
cd /opt
echo "Cloning khaleesi to /opt"
if [ ! -d khaleesi ]; then
sudo git clone -b opnfv https://github.com/trozet/khaleesi.git
fi
pip install ansible
pip install requests
cd khaleesi
sudo cp ansible.cfg.example ansible.cfg
cd tools/ksgen
sudo python setup.py develop
cd ../..
echo "Completed Installing Khaleesi"
cd /opt
cd /opt/khaleesi/
./run.sh --no-logs --use /vagrant/opnfv_ksgen_settings.yml playbooks/opnfv.yml
|
sudo rpm -i http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
sudo yum -y install python-pip python-virtualenv gcc git
sudo yum -y install python-keystoneclient python-novaclient python-glanceclient python-neutronclient python-keystoneclient
yum -y install sshpass
cd /opt
echo "Cloning khaleesi to /opt"
if [ ! -d khaleesi ]; then
sudo git clone -b opnfv https://github.com/trozet/khaleesi.git
fi
pip install ansible
pip install requests
cd khaleesi
sudo cp ansible.cfg.example ansible.cfg
cd tools/ksgen
sudo python setup.py develop
cd ../..
echo "Completed Installing Khaleesi"
cd /opt
cd /opt/khaleesi/
ansible localhost -m setup -i local_hosts
./run.sh --no-logs --use /vagrant/opnfv_ksgen_settings.yml playbooks/opnfv.yml
| Add ansible setup to print facter | Add ansible setup to print facter
There was an issue for resolv.conf jinja template not finding the facter var
| Shell | apache-2.0 | smallen3/bgs_vagrant,trozet/bgs_vagrant | shell | ## Code Before:
sudo rpm -i http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
sudo yum -y install python-pip python-virtualenv gcc git
sudo yum -y install python-keystoneclient python-novaclient python-glanceclient python-neutronclient python-keystoneclient
yum -y install sshpass
cd /opt
echo "Cloning khaleesi to /opt"
if [ ! -d khaleesi ]; then
sudo git clone -b opnfv https://github.com/trozet/khaleesi.git
fi
pip install ansible
pip install requests
cd khaleesi
sudo cp ansible.cfg.example ansible.cfg
cd tools/ksgen
sudo python setup.py develop
cd ../..
echo "Completed Installing Khaleesi"
cd /opt
cd /opt/khaleesi/
./run.sh --no-logs --use /vagrant/opnfv_ksgen_settings.yml playbooks/opnfv.yml
## Instruction:
Add ansible setup to print facter
There was an issue for resolv.conf jinja template not finding the facter var
## Code After:
sudo rpm -i http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
sudo yum -y install python-pip python-virtualenv gcc git
sudo yum -y install python-keystoneclient python-novaclient python-glanceclient python-neutronclient python-keystoneclient
yum -y install sshpass
cd /opt
echo "Cloning khaleesi to /opt"
if [ ! -d khaleesi ]; then
sudo git clone -b opnfv https://github.com/trozet/khaleesi.git
fi
pip install ansible
pip install requests
cd khaleesi
sudo cp ansible.cfg.example ansible.cfg
cd tools/ksgen
sudo python setup.py develop
cd ../..
echo "Completed Installing Khaleesi"
cd /opt
cd /opt/khaleesi/
ansible localhost -m setup -i local_hosts
./run.sh --no-logs --use /vagrant/opnfv_ksgen_settings.yml playbooks/opnfv.yml
|
sudo rpm -i http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
sudo yum -y install python-pip python-virtualenv gcc git
sudo yum -y install python-keystoneclient python-novaclient python-glanceclient python-neutronclient python-keystoneclient
yum -y install sshpass
cd /opt
echo "Cloning khaleesi to /opt"
if [ ! -d khaleesi ]; then
sudo git clone -b opnfv https://github.com/trozet/khaleesi.git
fi
pip install ansible
pip install requests
cd khaleesi
sudo cp ansible.cfg.example ansible.cfg
cd tools/ksgen
sudo python setup.py develop
cd ../..
echo "Completed Installing Khaleesi"
cd /opt
cd /opt/khaleesi/
+ ansible localhost -m setup -i local_hosts
+
./run.sh --no-logs --use /vagrant/opnfv_ksgen_settings.yml playbooks/opnfv.yml | 2 | 0.05 | 2 | 0 |
24651f1e887bf248806ee4b56f92855d217c58c7 | blog/t1-git-blog.html | blog/t1-git-blog.html | <!DOCTYPE html>
<head>
<title>So you say you want to be a Dev?</title>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="your-stylesheet-link-here.css">
</head>
<main>
<h1>So you say you want to be a Dev?</h1>
<h3>How I'm surviving the first week of Phase-0</h3>
<h4>Sept 09, 2015</h4>
<section>
<p>
Let me start off by saying that a few short hours ago I wouldnt have given Version Control, or VC for short, the time of day. After creating a new repo in my home path two days ago, running my bash_profile through the woodchipper TWICE yesterday because that new repo changed what my shell prompt looked like, and deleting and recreating my repos on GitHub multiple times today because I'm just too smart for my own good, I've decided to give into the process.
</p>
<!-- copy and paste as many sections as you want to add paragraphs -->
</section>
</main>
| <!DOCTYPE html>
<head>
<title>So you say you want to be a Dev?</title>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="your-stylesheet-link-here.css">
</head>
<main>
<h1>So you say you want to be a Dev?</h1>
<h3>How I'm surviving the first week of Phase-0</h3>
<h4>Sept 09, 2015</h4>
<section>
<p>
Let me start off by saying that a few short hours ago I wouldnt have given Version Control, or VC for short, the time of day. After creating a new repo in my home path two days ago, running my bash_profile through the woodchipper TWICE yesterday because that new repo changed what my shell prompt looked like, and deleting and recreating my repos on GitHub multiple times today because I'm just too smart for my own good, I've decided to give into the process.
</p>
<p>
Maybe you're reading this and asking yourself "What is this guy talking about?" If you are dont worry it was only two days ago that I was asking myself the very same thing. So what am I talking about? Version Control of course! VC is a system of recording changes to a file or files as your working so that you can recall specific versions later. I read this analogy in one of the resources from an earlier challange. Imagine being able to make as many copies of yourself as you want, and each of these versions exists in a parallel universe all at the same time. Now wait for it, this is where it gets good. Now imagine that in each of these parallel universes all existing at the same time you could act out your life however you'd like until you decide it was perfect, and if you for some reason decide that one of your other selves from another parallel universe was somehow better now you could choose that one instead. Version Control, it's that simple!
</p>
<!-- copy and paste as many sections as you want to add paragraphs -->
</section>
</main>
| Add second paragraph introducing VC. | Add second paragraph introducing VC.
| HTML | mit | Brunation11/Brunation11.github.io,Brunation11/Brunation11.github.io,Brunation11/Brunation11.github.io | html | ## Code Before:
<!DOCTYPE html>
<head>
<title>So you say you want to be a Dev?</title>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="your-stylesheet-link-here.css">
</head>
<main>
<h1>So you say you want to be a Dev?</h1>
<h3>How I'm surviving the first week of Phase-0</h3>
<h4>Sept 09, 2015</h4>
<section>
<p>
Let me start off by saying that a few short hours ago I wouldnt have given Version Control, or VC for short, the time of day. After creating a new repo in my home path two days ago, running my bash_profile through the woodchipper TWICE yesterday because that new repo changed what my shell prompt looked like, and deleting and recreating my repos on GitHub multiple times today because I'm just too smart for my own good, I've decided to give into the process.
</p>
<!-- copy and paste as many sections as you want to add paragraphs -->
</section>
</main>
## Instruction:
Add second paragraph introducing VC.
## Code After:
<!DOCTYPE html>
<head>
<title>So you say you want to be a Dev?</title>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="your-stylesheet-link-here.css">
</head>
<main>
<h1>So you say you want to be a Dev?</h1>
<h3>How I'm surviving the first week of Phase-0</h3>
<h4>Sept 09, 2015</h4>
<section>
<p>
Let me start off by saying that a few short hours ago I wouldnt have given Version Control, or VC for short, the time of day. After creating a new repo in my home path two days ago, running my bash_profile through the woodchipper TWICE yesterday because that new repo changed what my shell prompt looked like, and deleting and recreating my repos on GitHub multiple times today because I'm just too smart for my own good, I've decided to give into the process.
</p>
<p>
Maybe you're reading this and asking yourself "What is this guy talking about?" If you are dont worry it was only two days ago that I was asking myself the very same thing. So what am I talking about? Version Control of course! VC is a system of recording changes to a file or files as your working so that you can recall specific versions later. I read this analogy in one of the resources from an earlier challange. Imagine being able to make as many copies of yourself as you want, and each of these versions exists in a parallel universe all at the same time. Now wait for it, this is where it gets good. Now imagine that in each of these parallel universes all existing at the same time you could act out your life however you'd like until you decide it was perfect, and if you for some reason decide that one of your other selves from another parallel universe was somehow better now you could choose that one instead. Version Control, it's that simple!
</p>
<!-- copy and paste as many sections as you want to add paragraphs -->
</section>
</main>
| <!DOCTYPE html>
<head>
<title>So you say you want to be a Dev?</title>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="your-stylesheet-link-here.css">
</head>
<main>
<h1>So you say you want to be a Dev?</h1>
<h3>How I'm surviving the first week of Phase-0</h3>
<h4>Sept 09, 2015</h4>
<section>
<p>
Let me start off by saying that a few short hours ago I wouldnt have given Version Control, or VC for short, the time of day. After creating a new repo in my home path two days ago, running my bash_profile through the woodchipper TWICE yesterday because that new repo changed what my shell prompt looked like, and deleting and recreating my repos on GitHub multiple times today because I'm just too smart for my own good, I've decided to give into the process.
</p>
+ <p>
+ Maybe you're reading this and asking yourself "What is this guy talking about?" If you are dont worry it was only two days ago that I was asking myself the very same thing. So what am I talking about? Version Control of course! VC is a system of recording changes to a file or files as your working so that you can recall specific versions later. I read this analogy in one of the resources from an earlier challange. Imagine being able to make as many copies of yourself as you want, and each of these versions exists in a parallel universe all at the same time. Now wait for it, this is where it gets good. Now imagine that in each of these parallel universes all existing at the same time you could act out your life however you'd like until you decide it was perfect, and if you for some reason decide that one of your other selves from another parallel universe was somehow better now you could choose that one instead. Version Control, it's that simple!
+ </p>
<!-- copy and paste as many sections as you want to add paragraphs -->
</section>
</main>
| 3 | 0.136364 | 3 | 0 |
5d48747fd77fc2b5bdf6a4ec1400308dc0099772 | spec/jobs/audit_job_spec.rb | spec/jobs/audit_job_spec.rb | require 'spec_helper'
describe AuditJob do
before do
@user = FactoryGirl.find_or_create(:jill)
@inbox = @user.mailbox.inbox
@file = GenericFile.new
@file.apply_depositor_metadata(@user)
@file.save
end
after do
@file.delete
end
describe "passing audit" do
it "should not send passing mail" do
allow_any_instance_of(ActiveFedora::RelsExtDatastream).to receive(:dsChecksumValid).and_return(true)
AuditJob.new(@file.pid, "RELS-EXT", @file.rels_ext.versionID).run
@inbox = @user.mailbox.inbox
expect(@inbox.count).to eq(0)
end
end
describe "failing audit" do
it "should send failing mail" do
allow_any_instance_of(ActiveFedora::RelsExtDatastream).to receive(:dsChecksumValid).and_return(false)
AuditJob.new(@file.pid, "RELS-EXT", @file.rels_ext.versionID).run
@inbox = @user.mailbox.inbox
expect(@inbox.count).to eq(1)
@inbox.each { |msg| expect(msg.last_message.subject).to eq(AuditJob::FAIL) }
end
end
end
| require 'spec_helper'
describe AuditJob do
before do
@user = FactoryGirl.find_or_create(:jill)
@inbox = @user.mailbox.inbox
@file = GenericFile.new
@file.apply_depositor_metadata(@user)
@file.save
end
describe "passing audit" do
it "should not send passing mail" do
skip "skipping audit for now"
allow_any_instance_of(GenericFileRdfDatastream).to receive(:dsChecksumValid).and_return(true)
AuditJob.new(@file.pid, "descMetadata", @file.descMetadata.versionID).run
@inbox = @user.mailbox.inbox
expect(@inbox.count).to eq(0)
end
end
describe "failing audit" do
it "should send failing mail" do
skip "skipping audit for now"
allow_any_instance_of(GenericFileRdfDatastream).to receive(:dsChecksumValid).and_return(false)
AuditJob.new(@file.pid, "descMetadata", @file.descMetadata.versionID).run
@inbox = @user.mailbox.inbox
expect(@inbox.count).to eq(1)
@inbox.each { |msg| expect(msg.last_message.subject).to eq(AuditJob::FAIL) }
end
end
end
| Mark audit job tests as pending | Mark audit job tests as pending
| Ruby | apache-2.0 | samvera/hyrax,samvera/hyrax,samvera/hyrax,samvera/hyrax | ruby | ## Code Before:
require 'spec_helper'
describe AuditJob do
before do
@user = FactoryGirl.find_or_create(:jill)
@inbox = @user.mailbox.inbox
@file = GenericFile.new
@file.apply_depositor_metadata(@user)
@file.save
end
after do
@file.delete
end
describe "passing audit" do
it "should not send passing mail" do
allow_any_instance_of(ActiveFedora::RelsExtDatastream).to receive(:dsChecksumValid).and_return(true)
AuditJob.new(@file.pid, "RELS-EXT", @file.rels_ext.versionID).run
@inbox = @user.mailbox.inbox
expect(@inbox.count).to eq(0)
end
end
describe "failing audit" do
it "should send failing mail" do
allow_any_instance_of(ActiveFedora::RelsExtDatastream).to receive(:dsChecksumValid).and_return(false)
AuditJob.new(@file.pid, "RELS-EXT", @file.rels_ext.versionID).run
@inbox = @user.mailbox.inbox
expect(@inbox.count).to eq(1)
@inbox.each { |msg| expect(msg.last_message.subject).to eq(AuditJob::FAIL) }
end
end
end
## Instruction:
Mark audit job tests as pending
## Code After:
require 'spec_helper'
describe AuditJob do
before do
@user = FactoryGirl.find_or_create(:jill)
@inbox = @user.mailbox.inbox
@file = GenericFile.new
@file.apply_depositor_metadata(@user)
@file.save
end
describe "passing audit" do
it "should not send passing mail" do
skip "skipping audit for now"
allow_any_instance_of(GenericFileRdfDatastream).to receive(:dsChecksumValid).and_return(true)
AuditJob.new(@file.pid, "descMetadata", @file.descMetadata.versionID).run
@inbox = @user.mailbox.inbox
expect(@inbox.count).to eq(0)
end
end
describe "failing audit" do
it "should send failing mail" do
skip "skipping audit for now"
allow_any_instance_of(GenericFileRdfDatastream).to receive(:dsChecksumValid).and_return(false)
AuditJob.new(@file.pid, "descMetadata", @file.descMetadata.versionID).run
@inbox = @user.mailbox.inbox
expect(@inbox.count).to eq(1)
@inbox.each { |msg| expect(msg.last_message.subject).to eq(AuditJob::FAIL) }
end
end
end
| require 'spec_helper'
describe AuditJob do
before do
@user = FactoryGirl.find_or_create(:jill)
@inbox = @user.mailbox.inbox
@file = GenericFile.new
@file.apply_depositor_metadata(@user)
@file.save
end
- after do
- @file.delete
- end
describe "passing audit" do
it "should not send passing mail" do
+ skip "skipping audit for now"
- allow_any_instance_of(ActiveFedora::RelsExtDatastream).to receive(:dsChecksumValid).and_return(true)
? ^ ^ ^ ^^ ^^^^^^^^^^^^
+ allow_any_instance_of(GenericFileRdfDatastream).to receive(:dsChecksumValid).and_return(true)
? ^^^^^^ ^ ^ ^ ^
- AuditJob.new(@file.pid, "RELS-EXT", @file.rels_ext.versionID).run
? ^^^^^^^^ ^ - ^ -
+ AuditJob.new(@file.pid, "descMetadata", @file.descMetadata.versionID).run
? ^^^^^^^^^^^^ ^ ^^ +++++
@inbox = @user.mailbox.inbox
expect(@inbox.count).to eq(0)
end
end
describe "failing audit" do
it "should send failing mail" do
+ skip "skipping audit for now"
- allow_any_instance_of(ActiveFedora::RelsExtDatastream).to receive(:dsChecksumValid).and_return(false)
? ^ ^ ^ ^^ ^^^^^^^^^^^^
+ allow_any_instance_of(GenericFileRdfDatastream).to receive(:dsChecksumValid).and_return(false)
? ^^^^^^ ^ ^ ^ ^
- AuditJob.new(@file.pid, "RELS-EXT", @file.rels_ext.versionID).run
? ^^^^^^^^ ^ - ^ -
+ AuditJob.new(@file.pid, "descMetadata", @file.descMetadata.versionID).run
? ^^^^^^^^^^^^ ^ ^^ +++++
@inbox = @user.mailbox.inbox
expect(@inbox.count).to eq(1)
@inbox.each { |msg| expect(msg.last_message.subject).to eq(AuditJob::FAIL) }
end
end
end | 13 | 0.419355 | 6 | 7 |
d48b638fffaf3baeb79dca834f8b7af63c740c06 | src/main/fabric8/route.yml | src/main/fabric8/route.yml | apiVersion: v1
kind: Route
metadata:
name: generator-backend
labels:
app: generator-backend
spec:
to:
kind: Service
name: generator-backend | apiVersion: v1
kind: Route
metadata:
name: generator-backend
labels:
app: generator-backend
spec:
to:
kind: Service
name: generator-backend
tls:
termination: passthrough | Add TLS to support HTTPS | Add TLS to support HTTPS
| YAML | apache-2.0 | obsidian-toaster/generator-backend,obsidian-toaster/generator-backend | yaml | ## Code Before:
apiVersion: v1
kind: Route
metadata:
name: generator-backend
labels:
app: generator-backend
spec:
to:
kind: Service
name: generator-backend
## Instruction:
Add TLS to support HTTPS
## Code After:
apiVersion: v1
kind: Route
metadata:
name: generator-backend
labels:
app: generator-backend
spec:
to:
kind: Service
name: generator-backend
tls:
termination: passthrough | apiVersion: v1
kind: Route
metadata:
name: generator-backend
labels:
app: generator-backend
spec:
to:
kind: Service
name: generator-backend
+ tls:
+ termination: passthrough | 2 | 0.2 | 2 | 0 |
a1ec7fbf4bb00d2a24dfba0acf6baf18d1b016ee | froide/comments/forms.py | froide/comments/forms.py | from django import forms
from django.utils.translation import gettext_lazy as _
from django_comments.forms import (
CommentForm as DjangoCommentForm,
COMMENT_MAX_LENGTH
)
class CommentForm(DjangoCommentForm):
name = forms.CharField(
label=_('Name'),
required=True,
help_text=_('Your name will only be visible to logged in users.'),
widget=forms.TextInput(
attrs={
'class': 'form-control'
}
)
)
comment = forms.CharField(
label=_('Comment'),
widget=forms.Textarea(
attrs={
'class': 'form-control',
'rows': '4'
}
),
max_length=COMMENT_MAX_LENGTH
)
| from django import forms
from django.utils.translation import gettext_lazy as _
from django_comments.forms import (
CommentForm as DjangoCommentForm,
COMMENT_MAX_LENGTH
)
class CommentForm(DjangoCommentForm):
name = forms.CharField(
label=_('Name'),
required=True,
max_length=50,
help_text=_('Your name will only be visible to logged in users.'),
widget=forms.TextInput(
attrs={
'class': 'form-control'
}
)
)
comment = forms.CharField(
label=_('Comment'),
widget=forms.Textarea(
attrs={
'class': 'form-control',
'rows': '4'
}
),
max_length=COMMENT_MAX_LENGTH
)
| Add max length to comment field | Add max length to comment field | Python | mit | fin/froide,fin/froide,stefanw/froide,fin/froide,stefanw/froide,stefanw/froide,fin/froide,stefanw/froide,stefanw/froide | python | ## Code Before:
from django import forms
from django.utils.translation import gettext_lazy as _
from django_comments.forms import (
CommentForm as DjangoCommentForm,
COMMENT_MAX_LENGTH
)
class CommentForm(DjangoCommentForm):
name = forms.CharField(
label=_('Name'),
required=True,
help_text=_('Your name will only be visible to logged in users.'),
widget=forms.TextInput(
attrs={
'class': 'form-control'
}
)
)
comment = forms.CharField(
label=_('Comment'),
widget=forms.Textarea(
attrs={
'class': 'form-control',
'rows': '4'
}
),
max_length=COMMENT_MAX_LENGTH
)
## Instruction:
Add max length to comment field
## Code After:
from django import forms
from django.utils.translation import gettext_lazy as _
from django_comments.forms import (
CommentForm as DjangoCommentForm,
COMMENT_MAX_LENGTH
)
class CommentForm(DjangoCommentForm):
name = forms.CharField(
label=_('Name'),
required=True,
max_length=50,
help_text=_('Your name will only be visible to logged in users.'),
widget=forms.TextInput(
attrs={
'class': 'form-control'
}
)
)
comment = forms.CharField(
label=_('Comment'),
widget=forms.Textarea(
attrs={
'class': 'form-control',
'rows': '4'
}
),
max_length=COMMENT_MAX_LENGTH
)
| from django import forms
from django.utils.translation import gettext_lazy as _
from django_comments.forms import (
CommentForm as DjangoCommentForm,
COMMENT_MAX_LENGTH
)
class CommentForm(DjangoCommentForm):
name = forms.CharField(
label=_('Name'),
required=True,
+ max_length=50,
help_text=_('Your name will only be visible to logged in users.'),
widget=forms.TextInput(
attrs={
'class': 'form-control'
}
)
)
comment = forms.CharField(
label=_('Comment'),
widget=forms.Textarea(
attrs={
'class': 'form-control',
'rows': '4'
}
),
max_length=COMMENT_MAX_LENGTH
) | 1 | 0.033333 | 1 | 0 |
ed4b9d43b2402cad8c56f892ead3a5d454b54a61 | .travis.yml | .travis.yml | language: php
php:
- 5.3
- 5.4
- 5.5
before_script:
- phpenv config-add ./app/config/php.ini
- composer install --prefer-source
script:
- find ./src -name "*.php" -exec php -l {} \;
- ./bin/phpspec run --format=pretty
- ./bin/phpunit --printer PHPUnit_Util_TestDox_ResultPrinter_Text
- php ./coverage-checker.php ./var/logs/phpunit-clover.xml 50
- ./bin/phpcpd -vvv --log-pmd="./var/logs/cpd.xml" ./src
- ./bin/phpmd ./src text ./app/config/ruleset.xml
after_script:
- ./bin/coveralls -v
- cat var/logs/phpspec-clover.xml
| language: php
php:
- 5.3
- 5.4
- 5.5
before_script:
- phpenv config-add ./app/config/php.ini
- composer install --prefer-source
script:
- find ./src -name "*.php" -exec php -l {} \;
- ./bin/phpspec run --format=pretty
- ./bin/phpunit --printer PHPUnit_Util_TestDox_ResultPrinter_Text
- ./bin/phpcpd -vvv --log-pmd="./var/logs/cpd.xml" ./src
- ./bin/phpmd ./src text ./app/config/ruleset.xml
after_script:
- ./bin/coveralls -v
- php ./coverage-checker.php ./var/logs/phpunit-clover.xml 50
- php ./coverage-checker.php ./var/logs/phpspec-clover.xml 50
- cat var/logs/phpspec-clover.xml
| Add check for how much code coverage the PHP spec tests are generating. | Add check for how much code coverage the PHP spec tests are generating.
| YAML | mit | jojo1981/playyard | yaml | ## Code Before:
language: php
php:
- 5.3
- 5.4
- 5.5
before_script:
- phpenv config-add ./app/config/php.ini
- composer install --prefer-source
script:
- find ./src -name "*.php" -exec php -l {} \;
- ./bin/phpspec run --format=pretty
- ./bin/phpunit --printer PHPUnit_Util_TestDox_ResultPrinter_Text
- php ./coverage-checker.php ./var/logs/phpunit-clover.xml 50
- ./bin/phpcpd -vvv --log-pmd="./var/logs/cpd.xml" ./src
- ./bin/phpmd ./src text ./app/config/ruleset.xml
after_script:
- ./bin/coveralls -v
- cat var/logs/phpspec-clover.xml
## Instruction:
Add check for how much code coverage the PHP spec tests are generating.
## Code After:
language: php
php:
- 5.3
- 5.4
- 5.5
before_script:
- phpenv config-add ./app/config/php.ini
- composer install --prefer-source
script:
- find ./src -name "*.php" -exec php -l {} \;
- ./bin/phpspec run --format=pretty
- ./bin/phpunit --printer PHPUnit_Util_TestDox_ResultPrinter_Text
- ./bin/phpcpd -vvv --log-pmd="./var/logs/cpd.xml" ./src
- ./bin/phpmd ./src text ./app/config/ruleset.xml
after_script:
- ./bin/coveralls -v
- php ./coverage-checker.php ./var/logs/phpunit-clover.xml 50
- php ./coverage-checker.php ./var/logs/phpspec-clover.xml 50
- cat var/logs/phpspec-clover.xml
| language: php
php:
- 5.3
- 5.4
- 5.5
before_script:
- phpenv config-add ./app/config/php.ini
- composer install --prefer-source
script:
- find ./src -name "*.php" -exec php -l {} \;
- ./bin/phpspec run --format=pretty
- ./bin/phpunit --printer PHPUnit_Util_TestDox_ResultPrinter_Text
- - php ./coverage-checker.php ./var/logs/phpunit-clover.xml 50
- ./bin/phpcpd -vvv --log-pmd="./var/logs/cpd.xml" ./src
- ./bin/phpmd ./src text ./app/config/ruleset.xml
after_script:
- ./bin/coveralls -v
+ - php ./coverage-checker.php ./var/logs/phpunit-clover.xml 50
+ - php ./coverage-checker.php ./var/logs/phpspec-clover.xml 50
- cat var/logs/phpspec-clover.xml | 3 | 0.136364 | 2 | 1 |
83f9b7f0619a8c59ca401ce20c9cb390f1782dc9 | .ci/after_success.sh | .ci/after_success.sh |
set -ev
bash <(curl -s https://codecov.io/bash)
AVALANCHE_IMAGE=$(docker image ls --format="{{.Repository}}:{{.Tag}}" | grep $DOCKERHUB_REPO | head -n 1)
TRAVIS_TAG="$DOCKERHUB_REPO:travis-$TRAVIS_BUILD_NUMBER"
docker tag $AVALANCHE_IMAGE "$TRAVIS_TAG"
# don't push to dockerhub if this is not being run on the main public repo
# or if it's a PR from a fork ( => secret vars not set )
if [[ $TRAVIS_REPO_SLUG != "ava-labs/avalanchego" || -z "$DOCKER_USERNAME" ]]; then
exit 0;
fi
echo "$DOCKER_PASS" | docker login --username "$DOCKER_USERNAME" --password-stdin
# following should push all tags
docker push $DOCKERHUB_REPO
|
set -ev
bash <(curl -s https://codecov.io/bash)
AVALANCHE_IMAGE="$DOCKERHUB_REPO:$COMMIT"
# AVALANCHE_IMAGE=$(docker image ls --format="{{.Repository}}:{{.Tag}}" | grep $DOCKERHUB_REPO | head -n 1)
TRAVIS_TAG="$DOCKERHUB_REPO:travis-$TRAVIS_BUILD_NUMBER"
docker tag $AVALANCHE_IMAGE "$TRAVIS_TAG"
# don't push to dockerhub if this is not being run on the main public repo
# or if it's a PR from a fork ( => secret vars not set )
if [[ $TRAVIS_REPO_SLUG != "ava-labs/avalanchego" || -z "$DOCKER_USERNAME" ]]; then
exit 0;
fi
echo "$DOCKER_PASS" | docker login --username "$DOCKER_USERNAME" --password-stdin
# following should push all tags
docker push $DOCKERHUB_REPO
| Revert after success script to use COMMIT env var | Revert after success script to use COMMIT env var
| Shell | bsd-3-clause | ava-labs/avalanchego,ava-labs/avalanchego | shell | ## Code Before:
set -ev
bash <(curl -s https://codecov.io/bash)
AVALANCHE_IMAGE=$(docker image ls --format="{{.Repository}}:{{.Tag}}" | grep $DOCKERHUB_REPO | head -n 1)
TRAVIS_TAG="$DOCKERHUB_REPO:travis-$TRAVIS_BUILD_NUMBER"
docker tag $AVALANCHE_IMAGE "$TRAVIS_TAG"
# don't push to dockerhub if this is not being run on the main public repo
# or if it's a PR from a fork ( => secret vars not set )
if [[ $TRAVIS_REPO_SLUG != "ava-labs/avalanchego" || -z "$DOCKER_USERNAME" ]]; then
exit 0;
fi
echo "$DOCKER_PASS" | docker login --username "$DOCKER_USERNAME" --password-stdin
# following should push all tags
docker push $DOCKERHUB_REPO
## Instruction:
Revert after success script to use COMMIT env var
## Code After:
set -ev
bash <(curl -s https://codecov.io/bash)
AVALANCHE_IMAGE="$DOCKERHUB_REPO:$COMMIT"
# AVALANCHE_IMAGE=$(docker image ls --format="{{.Repository}}:{{.Tag}}" | grep $DOCKERHUB_REPO | head -n 1)
TRAVIS_TAG="$DOCKERHUB_REPO:travis-$TRAVIS_BUILD_NUMBER"
docker tag $AVALANCHE_IMAGE "$TRAVIS_TAG"
# don't push to dockerhub if this is not being run on the main public repo
# or if it's a PR from a fork ( => secret vars not set )
if [[ $TRAVIS_REPO_SLUG != "ava-labs/avalanchego" || -z "$DOCKER_USERNAME" ]]; then
exit 0;
fi
echo "$DOCKER_PASS" | docker login --username "$DOCKER_USERNAME" --password-stdin
# following should push all tags
docker push $DOCKERHUB_REPO
|
set -ev
bash <(curl -s https://codecov.io/bash)
+ AVALANCHE_IMAGE="$DOCKERHUB_REPO:$COMMIT"
- AVALANCHE_IMAGE=$(docker image ls --format="{{.Repository}}:{{.Tag}}" | grep $DOCKERHUB_REPO | head -n 1)
+ # AVALANCHE_IMAGE=$(docker image ls --format="{{.Repository}}:{{.Tag}}" | grep $DOCKERHUB_REPO | head -n 1)
? ++
TRAVIS_TAG="$DOCKERHUB_REPO:travis-$TRAVIS_BUILD_NUMBER"
docker tag $AVALANCHE_IMAGE "$TRAVIS_TAG"
# don't push to dockerhub if this is not being run on the main public repo
# or if it's a PR from a fork ( => secret vars not set )
if [[ $TRAVIS_REPO_SLUG != "ava-labs/avalanchego" || -z "$DOCKER_USERNAME" ]]; then
exit 0;
fi
echo "$DOCKER_PASS" | docker login --username "$DOCKER_USERNAME" --password-stdin
# following should push all tags
docker push $DOCKERHUB_REPO | 3 | 0.15 | 2 | 1 |
cf9a768bc5b93335e850ea76161128617e1d1147 | _posts/2016-05-17-install-gcc-arm-on-mac.md | _posts/2016-05-17-install-gcc-arm-on-mac.md | ---
layout: post
title: Install GCC ARM on Mac
categories: embedded
---
## Step
1. Install [Homebrew](http://brew.sh/)
2. Install GCC ARM Toolchain
```
brew tap PX4/homebrew-px4
brew update
brew install gcc-arm-none-eabi-48
```
3. Profit!
## Issue
- `48` may no longer works try `49` -or-
- `brew install gcc-arm-none-eabi`
## Misc
Someone mentions below method. Not verified yet.
brew cask install gcc-arm-embedded
## Reference
- [Gist - How I installed GCC ARM on my Mac 10.9 Mac Book Pro](https://gist.github.com/joegoggins/7763637)
| ---
layout: post
title: Install GCC ARM on Mac
categories: embedded
---
## Step
1. Install [Homebrew](http://brew.sh/)
2. Install GCC ARM Toolchain
```
brew tap PX4/homebrew-px4
brew update
brew install gcc-arm-none-eabi-48
```
3. Profit!
## Issue
- `48` may no longer works try `49` -or-
- `brew install gcc-arm-none-eabi`
## Misc
Someone mentions below method. **NOT VERIFIED**.
```
brew cask install gcc-arm-embedded
```
## Reference
- [Gist - How I installed GCC ARM on my Mac 10.9 Mac Book Pro](https://gist.github.com/joegoggins/7763637)
| Fix issue in display code block | Fix issue in display code block
Signed-off-by: Robbie Cao <643a933cab46d49aae0d64e790867eaec8b68831@gmail.com>
| Markdown | mit | robbie-cao/robbie-cao.github.io,robbie-cao/robbie-cao.github.io,robbie-cao/robbie-cao.github.io | markdown | ## Code Before:
---
layout: post
title: Install GCC ARM on Mac
categories: embedded
---
## Step
1. Install [Homebrew](http://brew.sh/)
2. Install GCC ARM Toolchain
```
brew tap PX4/homebrew-px4
brew update
brew install gcc-arm-none-eabi-48
```
3. Profit!
## Issue
- `48` may no longer works try `49` -or-
- `brew install gcc-arm-none-eabi`
## Misc
Someone mentions below method. Not verified yet.
brew cask install gcc-arm-embedded
## Reference
- [Gist - How I installed GCC ARM on my Mac 10.9 Mac Book Pro](https://gist.github.com/joegoggins/7763637)
## Instruction:
Fix issue in display code block
Signed-off-by: Robbie Cao <643a933cab46d49aae0d64e790867eaec8b68831@gmail.com>
## Code After:
---
layout: post
title: Install GCC ARM on Mac
categories: embedded
---
## Step
1. Install [Homebrew](http://brew.sh/)
2. Install GCC ARM Toolchain
```
brew tap PX4/homebrew-px4
brew update
brew install gcc-arm-none-eabi-48
```
3. Profit!
## Issue
- `48` may no longer works try `49` -or-
- `brew install gcc-arm-none-eabi`
## Misc
Someone mentions below method. **NOT VERIFIED**.
```
brew cask install gcc-arm-embedded
```
## Reference
- [Gist - How I installed GCC ARM on my Mac 10.9 Mac Book Pro](https://gist.github.com/joegoggins/7763637)
| ---
layout: post
title: Install GCC ARM on Mac
categories: embedded
---
## Step
1. Install [Homebrew](http://brew.sh/)
2. Install GCC ARM Toolchain
- ```
? -
+ ```
- brew tap PX4/homebrew-px4
? -
+ brew tap PX4/homebrew-px4
- brew update
? -
+ brew update
- brew install gcc-arm-none-eabi-48
? -
+ brew install gcc-arm-none-eabi-48
- ```
? -
+ ```
3. Profit!
## Issue
- `48` may no longer works try `49` -or-
- `brew install gcc-arm-none-eabi`
## Misc
- Someone mentions below method. Not verified yet.
+ Someone mentions below method. **NOT VERIFIED**.
+ ```
- brew cask install gcc-arm-embedded
? -
+ brew cask install gcc-arm-embedded
+ ```
## Reference
- [Gist - How I installed GCC ARM on my Mac 10.9 Mac Book Pro](https://gist.github.com/joegoggins/7763637)
| 16 | 0.444444 | 9 | 7 |
8693e3cb9b61c45e537a822183c5a2d4064bcc6c | package.json | package.json | {
"name": "v2",
"version": "0.0.0",
"dependencies": {},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-uglify": "~0.2.0",
"grunt-contrib-jshint": "~0.7.0",
"grunt-contrib-cssmin": "~0.7.0",
"grunt-contrib-connect": "~0.5.0",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-htmlmin": "~0.1.3",
"grunt-bower-install": "~0.7.0",
"grunt-contrib-imagemin": "~0.2.0",
"grunt-contrib-watch": "~0.5.2",
"grunt-rev": "~0.1.0",
"grunt-autoprefixer": "~0.5.0",
"grunt-usemin": "~2.0.0",
"grunt-newer": "~0.6.0",
"grunt-concurrent": "~0.4.0",
"load-grunt-tasks": "~0.2.0",
"time-grunt": "~0.2.0",
"jshint-stylish": "~0.1.3"
},
"engines": {
"node": ">=0.8.0"
}
}
| {
"name": "v2",
"version": "0.1.0",
"dependencies": {
"connect": "2.*",
"socket.io": "0.9.*"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-uglify": "~0.2.0",
"grunt-contrib-jshint": "~0.7.0",
"grunt-contrib-cssmin": "~0.7.0",
"grunt-contrib-connect": "~0.5.0",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-htmlmin": "~0.1.3",
"grunt-bower-install": "~0.7.0",
"grunt-contrib-imagemin": "~0.2.0",
"grunt-contrib-watch": "~0.5.2",
"grunt-rev": "~0.1.0",
"grunt-autoprefixer": "~0.5.0",
"grunt-usemin": "~2.0.0",
"grunt-newer": "~0.6.0",
"grunt-concurrent": "~0.4.0",
"load-grunt-tasks": "~0.2.0",
"time-grunt": "~0.2.0",
"jshint-stylish": "~0.1.3"
},
"engines": {
"node": ">=0.8.0"
}
}
| Add connect and socket.io dependencies | Add connect and socket.io dependencies
| JSON | mit | samuelmatis/viera-control-v2 | json | ## Code Before:
{
"name": "v2",
"version": "0.0.0",
"dependencies": {},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-uglify": "~0.2.0",
"grunt-contrib-jshint": "~0.7.0",
"grunt-contrib-cssmin": "~0.7.0",
"grunt-contrib-connect": "~0.5.0",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-htmlmin": "~0.1.3",
"grunt-bower-install": "~0.7.0",
"grunt-contrib-imagemin": "~0.2.0",
"grunt-contrib-watch": "~0.5.2",
"grunt-rev": "~0.1.0",
"grunt-autoprefixer": "~0.5.0",
"grunt-usemin": "~2.0.0",
"grunt-newer": "~0.6.0",
"grunt-concurrent": "~0.4.0",
"load-grunt-tasks": "~0.2.0",
"time-grunt": "~0.2.0",
"jshint-stylish": "~0.1.3"
},
"engines": {
"node": ">=0.8.0"
}
}
## Instruction:
Add connect and socket.io dependencies
## Code After:
{
"name": "v2",
"version": "0.1.0",
"dependencies": {
"connect": "2.*",
"socket.io": "0.9.*"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-uglify": "~0.2.0",
"grunt-contrib-jshint": "~0.7.0",
"grunt-contrib-cssmin": "~0.7.0",
"grunt-contrib-connect": "~0.5.0",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-htmlmin": "~0.1.3",
"grunt-bower-install": "~0.7.0",
"grunt-contrib-imagemin": "~0.2.0",
"grunt-contrib-watch": "~0.5.2",
"grunt-rev": "~0.1.0",
"grunt-autoprefixer": "~0.5.0",
"grunt-usemin": "~2.0.0",
"grunt-newer": "~0.6.0",
"grunt-concurrent": "~0.4.0",
"load-grunt-tasks": "~0.2.0",
"time-grunt": "~0.2.0",
"jshint-stylish": "~0.1.3"
},
"engines": {
"node": ">=0.8.0"
}
}
| {
"name": "v2",
- "version": "0.0.0",
? ^
+ "version": "0.1.0",
? ^
- "dependencies": {},
? --
+ "dependencies": {
+ "connect": "2.*",
+ "socket.io": "0.9.*"
+ },
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-uglify": "~0.2.0",
"grunt-contrib-jshint": "~0.7.0",
"grunt-contrib-cssmin": "~0.7.0",
"grunt-contrib-connect": "~0.5.0",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-htmlmin": "~0.1.3",
"grunt-bower-install": "~0.7.0",
"grunt-contrib-imagemin": "~0.2.0",
"grunt-contrib-watch": "~0.5.2",
"grunt-rev": "~0.1.0",
"grunt-autoprefixer": "~0.5.0",
"grunt-usemin": "~2.0.0",
"grunt-newer": "~0.6.0",
"grunt-concurrent": "~0.4.0",
"load-grunt-tasks": "~0.2.0",
"time-grunt": "~0.2.0",
"jshint-stylish": "~0.1.3"
},
"engines": {
"node": ">=0.8.0"
}
} | 7 | 0.233333 | 5 | 2 |
9dde0e3df46cfb7b147d8cdfcdf4554e028f377b | .kitchen.yml | .kitchen.yml | ---
driver:
name: vagrant
# without additional memory, ubuntu suites will fail
customize:
memory: 1024
provisioner:
name: chef_solo
attributes:
cassandra:
cluster_name: test
platforms:
- name: ubuntu-12.04
run_list:
- recipe[apt]
- name: centos-6.4
run_list:
- recipe[yum]
suites:
- name: default
run_list:
- recipe[cassandra::default]
- name: dsc21
attributes:
cassandra:
package_name: dsc21
version: 2.1.0
release: 1
run_list:
- recipe[cassandra::default]
- name: tarball
run_list:
- recipe[cassandra::tarball]
- name: dse
run_list:
- recipe[cassandra::default]
attributes:
cassandra:
dse:
credentials:
databag: false
username: <%= ENV['CASSANDRA_DSE_USERNAME'] %>
password: <%= ENV['CASSANDRA_DSE_PASSWORD'] %>
| ---
driver:
name: vagrant
# without additional memory, ubuntu suites will fail
customize:
memory: 1024
provisioner:
name: chef_zero
attributes:
cassandra:
cluster_name: test
platforms:
- name: ubuntu-12.04
run_list:
- recipe[apt]
- name: centos-6.4
run_list:
- recipe[yum]
suites:
- name: default
run_list:
- recipe[cassandra::default]
- name: opscenter-agent-datastax
attributes:
cassandra:
install_java: false
opscenter:
agent:
server_host: 0.0.0.0
run_list:
- recipe[cassandra::opscenter_agent_datastax]
- name: dsc21
attributes:
cassandra:
package_name: dsc21
version: 2.1.0
release: 1
run_list:
- recipe[cassandra::default]
- name: tarball
run_list:
- recipe[cassandra::tarball]
- name: dse
run_list:
- recipe[cassandra::default]
attributes:
cassandra:
dse:
credentials:
databag: false
username: <%= ENV['CASSANDRA_DSE_USERNAME'] %>
password: <%= ENV['CASSANDRA_DSE_PASSWORD'] %>
| Change provisioner to chef zero, which allows search, and seems to be much faster. | Change provisioner to chef zero, which allows search, and seems to be much faster.
| YAML | apache-2.0 | alrf/cassandra-cookbook,jfwm2/cassandra-chef-cookbook,msilvey/cassandra-chef-cookbook,msilvey/cassandra-chef-cookbook,TD-4242/cassandra-chef-cookbook,TD-4242/cassandra-chef-cookbook,criteo-forks/cassandra-chef-cookbook,vkhatri/cassandra-chef-cookbook,adityagodbole/cassandra-chef-cookbook,michaelklishin/cassandra-chef-cookbook,vkhatri/cassandra-chef-cookbook,TD-4242/cassandra-chef-cookbook,msilvey/cassandra-chef-cookbook,alrf/cassandra-cookbook,criteo-forks/cassandra-chef-cookbook,vdemonchy/cassandra-chef-cookbook,criteo-forks/cassandra-chef-cookbook,vdemonchy/cassandra-chef-cookbook,vdemonchy/cassandra-chef-cookbook,adityagodbole/cassandra-chef-cookbook,jfwm2/cassandra-chef-cookbook,vkhatri/cassandra-chef-cookbook,michaelklishin/cassandra-chef-cookbook,alrf/cassandra-cookbook,jfwm2/cassandra-chef-cookbook,michaelklishin/cassandra-chef-cookbook,adityagodbole/cassandra-chef-cookbook | yaml | ## Code Before:
---
driver:
name: vagrant
# without additional memory, ubuntu suites will fail
customize:
memory: 1024
provisioner:
name: chef_solo
attributes:
cassandra:
cluster_name: test
platforms:
- name: ubuntu-12.04
run_list:
- recipe[apt]
- name: centos-6.4
run_list:
- recipe[yum]
suites:
- name: default
run_list:
- recipe[cassandra::default]
- name: dsc21
attributes:
cassandra:
package_name: dsc21
version: 2.1.0
release: 1
run_list:
- recipe[cassandra::default]
- name: tarball
run_list:
- recipe[cassandra::tarball]
- name: dse
run_list:
- recipe[cassandra::default]
attributes:
cassandra:
dse:
credentials:
databag: false
username: <%= ENV['CASSANDRA_DSE_USERNAME'] %>
password: <%= ENV['CASSANDRA_DSE_PASSWORD'] %>
## Instruction:
Change provisioner to chef zero, which allows search, and seems to be much faster.
## Code After:
---
driver:
name: vagrant
# without additional memory, ubuntu suites will fail
customize:
memory: 1024
provisioner:
name: chef_zero
attributes:
cassandra:
cluster_name: test
platforms:
- name: ubuntu-12.04
run_list:
- recipe[apt]
- name: centos-6.4
run_list:
- recipe[yum]
suites:
- name: default
run_list:
- recipe[cassandra::default]
- name: opscenter-agent-datastax
attributes:
cassandra:
install_java: false
opscenter:
agent:
server_host: 0.0.0.0
run_list:
- recipe[cassandra::opscenter_agent_datastax]
- name: dsc21
attributes:
cassandra:
package_name: dsc21
version: 2.1.0
release: 1
run_list:
- recipe[cassandra::default]
- name: tarball
run_list:
- recipe[cassandra::tarball]
- name: dse
run_list:
- recipe[cassandra::default]
attributes:
cassandra:
dse:
credentials:
databag: false
username: <%= ENV['CASSANDRA_DSE_USERNAME'] %>
password: <%= ENV['CASSANDRA_DSE_PASSWORD'] %>
| ---
driver:
name: vagrant
# without additional memory, ubuntu suites will fail
customize:
memory: 1024
provisioner:
- name: chef_solo
? ^ --
+ name: chef_zero
? ^^^
attributes:
cassandra:
cluster_name: test
platforms:
- name: ubuntu-12.04
run_list:
- recipe[apt]
- name: centos-6.4
run_list:
- recipe[yum]
suites:
- name: default
run_list:
- recipe[cassandra::default]
+
+ - name: opscenter-agent-datastax
+ attributes:
+ cassandra:
+ install_java: false
+ opscenter:
+ agent:
+ server_host: 0.0.0.0
+ run_list:
+ - recipe[cassandra::opscenter_agent_datastax]
- name: dsc21
attributes:
cassandra:
package_name: dsc21
version: 2.1.0
release: 1
run_list:
- recipe[cassandra::default]
- name: tarball
run_list:
- recipe[cassandra::tarball]
- name: dse
run_list:
- recipe[cassandra::default]
attributes:
cassandra:
dse:
credentials:
databag: false
username: <%= ENV['CASSANDRA_DSE_USERNAME'] %>
password: <%= ENV['CASSANDRA_DSE_PASSWORD'] %> | 12 | 0.244898 | 11 | 1 |
4364a643b6e893c8c66e0f8df06a345ea4131614 | README.md | README.md |
Get a new Mac up and running.
## Usage
Run `./up`.
For work computers, run `./up.work` (it runs `up` and then some more commands)
## Checklist for manual changes
- [ ] Sharing: Computer name
- [ ] Menu Bar: Battery percentage
- [ ] Sound: Volume control in the menu bar
- [ ] Keyboard: Key repeat and delay rate
- [ ] Keyboard: Full Keyboard Access for all controls
- [ ] Keyboard: Remap <kbd>Caps Lock</kbd> to <kbd>Ctrl</kbd>
- [ ] Keyboard: Shortcut for `Invert Colors`
- [ ] Keyboard: Ctrl+scroll gesture for zooming
- [ ] Trackpad: Check all settings
- [ ] Trackpad: Three-finger drag
- [ ] Chrome: Warn before quitting
- [ ] Calendar: Set up accounts
|
Get a new Mac up and running.
## Usage
Run `./up`.
For work computers, run `./up.work` (it runs `up` and then some more commands)
## Checklist for manual changes
- [ ] Sharing: Computer name
- [ ] Menu Bar: Battery percentage
- [ ] Sound: Volume control in the menu bar
- [ ] Keyboard: Key repeat and delay rate
- [ ] Keyboard: Full Keyboard Access for all controls
- [ ] Keyboard: Remap <kbd>Caps Lock</kbd> to <kbd>Ctrl</kbd>
- [ ] Keyboard: Shortcut for `Invert Colors`
- [ ] Keyboard: Ctrl+scroll gesture for zooming
- [ ] Trackpad: Check all settings
- [ ] Trackpad: Three-finger drag
- [ ] Chrome: Warn before quitting
- [ ] Calendar: Set up accounts
- [ ] Finder: show file extensions
- [ ] Finder: change default folder
- [ ] Finder: change default search scope
| Add Finder changes to manual changes | Add Finder changes to manual changes
| Markdown | mit | spinningarrow/up,spinningarrow/up | markdown | ## Code Before:
Get a new Mac up and running.
## Usage
Run `./up`.
For work computers, run `./up.work` (it runs `up` and then some more commands)
## Checklist for manual changes
- [ ] Sharing: Computer name
- [ ] Menu Bar: Battery percentage
- [ ] Sound: Volume control in the menu bar
- [ ] Keyboard: Key repeat and delay rate
- [ ] Keyboard: Full Keyboard Access for all controls
- [ ] Keyboard: Remap <kbd>Caps Lock</kbd> to <kbd>Ctrl</kbd>
- [ ] Keyboard: Shortcut for `Invert Colors`
- [ ] Keyboard: Ctrl+scroll gesture for zooming
- [ ] Trackpad: Check all settings
- [ ] Trackpad: Three-finger drag
- [ ] Chrome: Warn before quitting
- [ ] Calendar: Set up accounts
## Instruction:
Add Finder changes to manual changes
## Code After:
Get a new Mac up and running.
## Usage
Run `./up`.
For work computers, run `./up.work` (it runs `up` and then some more commands)
## Checklist for manual changes
- [ ] Sharing: Computer name
- [ ] Menu Bar: Battery percentage
- [ ] Sound: Volume control in the menu bar
- [ ] Keyboard: Key repeat and delay rate
- [ ] Keyboard: Full Keyboard Access for all controls
- [ ] Keyboard: Remap <kbd>Caps Lock</kbd> to <kbd>Ctrl</kbd>
- [ ] Keyboard: Shortcut for `Invert Colors`
- [ ] Keyboard: Ctrl+scroll gesture for zooming
- [ ] Trackpad: Check all settings
- [ ] Trackpad: Three-finger drag
- [ ] Chrome: Warn before quitting
- [ ] Calendar: Set up accounts
- [ ] Finder: show file extensions
- [ ] Finder: change default folder
- [ ] Finder: change default search scope
|
Get a new Mac up and running.
## Usage
Run `./up`.
For work computers, run `./up.work` (it runs `up` and then some more commands)
## Checklist for manual changes
- [ ] Sharing: Computer name
- [ ] Menu Bar: Battery percentage
- [ ] Sound: Volume control in the menu bar
- [ ] Keyboard: Key repeat and delay rate
- [ ] Keyboard: Full Keyboard Access for all controls
- [ ] Keyboard: Remap <kbd>Caps Lock</kbd> to <kbd>Ctrl</kbd>
- [ ] Keyboard: Shortcut for `Invert Colors`
- [ ] Keyboard: Ctrl+scroll gesture for zooming
- [ ] Trackpad: Check all settings
- [ ] Trackpad: Three-finger drag
- [ ] Chrome: Warn before quitting
- [ ] Calendar: Set up accounts
+ - [ ] Finder: show file extensions
+ - [ ] Finder: change default folder
+ - [ ] Finder: change default search scope | 3 | 0.130435 | 3 | 0 |
831c9449e33b770acc40e7ec6830cf24b100bb07 | src/main/java/nl/yacht/lakesideresort/Main.java | src/main/java/nl/yacht/lakesideresort/Main.java | package nl.yacht.lakesideresort;
import nl.yacht.lakesideresort.domain.Trip;
public class Main {
public static void main(String[] args) {
/// Create nl.yacht.lakesideresort.domain.Trip
// set tripnumber
int tripNumber = 1;
// create trip
Trip newTrip = new Trip(tripNumber);
// sleep for 4 seconds
Sleep();
// end the trip
newTrip.end();
// print results
System.out.println("nl.yacht.lakesideresort.domain.Trip: " + newTrip.getTripNumber() + " has ended.");
System.out.println("Start: " + newTrip.getStartTime());
System.out.println("End: " + newTrip.getEndTime());
System.out.println("Duration: " + newTrip.getDuration());
System.out.println();
}
static void Sleep() {
try {
Thread.sleep(4000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
| package nl.yacht.lakesideresort;
import nl.yacht.lakesideresort.domain.Trip;
public class Main {
public static void main(String[] args) {
/// Create Trip
// set tripnumber
int tripNumber = 1;
// create trip
Trip newTrip = new Trip(tripNumber);
// sleep for 4 seconds
Sleep();
// end the trip
newTrip.end();
// print results
System.out.println("Trip: " + newTrip.getTripNumber() + " has ended.");
System.out.println("Start: " + newTrip.getStartTime());
System.out.println("End: " + newTrip.getEndTime());
System.out.println("Duration: " + newTrip.getDuration());
System.out.println();
}
static void Sleep() {
try {
Thread.sleep(4000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
| Revert those silly Intellij change | Revert those silly Intellij change
| Java | mit | YachtMostDev/lakesideresort,YachtMostDev/lakesideresort,YachtMostDev/lakesideresort | java | ## Code Before:
package nl.yacht.lakesideresort;
import nl.yacht.lakesideresort.domain.Trip;
public class Main {
public static void main(String[] args) {
/// Create nl.yacht.lakesideresort.domain.Trip
// set tripnumber
int tripNumber = 1;
// create trip
Trip newTrip = new Trip(tripNumber);
// sleep for 4 seconds
Sleep();
// end the trip
newTrip.end();
// print results
System.out.println("nl.yacht.lakesideresort.domain.Trip: " + newTrip.getTripNumber() + " has ended.");
System.out.println("Start: " + newTrip.getStartTime());
System.out.println("End: " + newTrip.getEndTime());
System.out.println("Duration: " + newTrip.getDuration());
System.out.println();
}
static void Sleep() {
try {
Thread.sleep(4000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
## Instruction:
Revert those silly Intellij change
## Code After:
package nl.yacht.lakesideresort;
import nl.yacht.lakesideresort.domain.Trip;
public class Main {
public static void main(String[] args) {
/// Create Trip
// set tripnumber
int tripNumber = 1;
// create trip
Trip newTrip = new Trip(tripNumber);
// sleep for 4 seconds
Sleep();
// end the trip
newTrip.end();
// print results
System.out.println("Trip: " + newTrip.getTripNumber() + " has ended.");
System.out.println("Start: " + newTrip.getStartTime());
System.out.println("End: " + newTrip.getEndTime());
System.out.println("Duration: " + newTrip.getDuration());
System.out.println();
}
static void Sleep() {
try {
Thread.sleep(4000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
| package nl.yacht.lakesideresort;
import nl.yacht.lakesideresort.domain.Trip;
public class Main {
public static void main(String[] args) {
- /// Create nl.yacht.lakesideresort.domain.Trip
+ /// Create Trip
// set tripnumber
int tripNumber = 1;
// create trip
Trip newTrip = new Trip(tripNumber);
// sleep for 4 seconds
Sleep();
// end the trip
newTrip.end();
// print results
- System.out.println("nl.yacht.lakesideresort.domain.Trip: " + newTrip.getTripNumber() + " has ended.");
? -------------------------------
+ System.out.println("Trip: " + newTrip.getTripNumber() + " has ended.");
System.out.println("Start: " + newTrip.getStartTime());
System.out.println("End: " + newTrip.getEndTime());
System.out.println("Duration: " + newTrip.getDuration());
System.out.println();
}
static void Sleep() {
try {
Thread.sleep(4000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
} | 4 | 0.111111 | 2 | 2 |
8279203a0fc12df00f7bc99c802147b23ac8f19f | app/views/upgrades/_list.html.erb | app/views/upgrades/_list.html.erb | <tr class="fix-on-scroll">
<%= sortable_th "name", nil, :style => "width:10em" %>
<%= sortable_th "type", nil, :style => "width:2em" %>
<%= sortable_th "count", nil, :style => "width:2em" %>
<%= sortable_th "packages_list", nil, :style => "min-width:9em" %>
</tr>
<% for upgrade in @upgrades %>
<tr class="has-opaques">
<td><%= link_to upgrade.server.name, upgrade.server %></td>
<td class="center"><%= upgrade.strategy %></td>
<td class="center"><%= upgrade.packages_list.count %></td>
<td><%= upgrade.packages_list.map{|p| p[:name]}.join(" ") %></td>
</tr>
<% end %>
| <tr class="fix-on-scroll">
<%= sortable_th "servers.name", t(:name), :style => "width:10em" %>
<th><%= t(:type) %></th>
<th><%= t(:count) %></th>
<th><%= t(:packages_list) %></th>
</tr>
<% for upgrade in @upgrades %>
<tr class="has-opaques">
<td><%= link_to upgrade.server.name, upgrade.server %></td>
<td class="center"><%= upgrade.strategy %></td>
<td class="center"><%= upgrade.packages_list.count %></td>
<td><%= upgrade.packages_list.map{|p| p[:name]}.join(" ") %></td>
</tr>
<% end %>
| Remove useless sortable header in upgrades/index | Remove useless sortable header in upgrades/index
| HTML+ERB | mit | jbbarth/cartoque,cartoque/cartoque,skylost/cartoque,jbbarth/cartoque,cartoque/cartoque,skylost/cartoque,cartoque/cartoque,jbbarth/cartoque | html+erb | ## Code Before:
<tr class="fix-on-scroll">
<%= sortable_th "name", nil, :style => "width:10em" %>
<%= sortable_th "type", nil, :style => "width:2em" %>
<%= sortable_th "count", nil, :style => "width:2em" %>
<%= sortable_th "packages_list", nil, :style => "min-width:9em" %>
</tr>
<% for upgrade in @upgrades %>
<tr class="has-opaques">
<td><%= link_to upgrade.server.name, upgrade.server %></td>
<td class="center"><%= upgrade.strategy %></td>
<td class="center"><%= upgrade.packages_list.count %></td>
<td><%= upgrade.packages_list.map{|p| p[:name]}.join(" ") %></td>
</tr>
<% end %>
## Instruction:
Remove useless sortable header in upgrades/index
## Code After:
<tr class="fix-on-scroll">
<%= sortable_th "servers.name", t(:name), :style => "width:10em" %>
<th><%= t(:type) %></th>
<th><%= t(:count) %></th>
<th><%= t(:packages_list) %></th>
</tr>
<% for upgrade in @upgrades %>
<tr class="has-opaques">
<td><%= link_to upgrade.server.name, upgrade.server %></td>
<td class="center"><%= upgrade.strategy %></td>
<td class="center"><%= upgrade.packages_list.count %></td>
<td><%= upgrade.packages_list.map{|p| p[:name]}.join(" ") %></td>
</tr>
<% end %>
| <tr class="fix-on-scroll">
- <%= sortable_th "name", nil, :style => "width:10em" %>
? ^^
+ <%= sortable_th "servers.name", t(:name), :style => "width:10em" %>
? ++++++++ +++ ^^^^
- <%= sortable_th "type", nil, :style => "width:2em" %>
- <%= sortable_th "count", nil, :style => "width:2em" %>
- <%= sortable_th "packages_list", nil, :style => "min-width:9em" %>
+ <th><%= t(:type) %></th>
+ <th><%= t(:count) %></th>
+ <th><%= t(:packages_list) %></th>
</tr>
<% for upgrade in @upgrades %>
<tr class="has-opaques">
<td><%= link_to upgrade.server.name, upgrade.server %></td>
<td class="center"><%= upgrade.strategy %></td>
<td class="center"><%= upgrade.packages_list.count %></td>
<td><%= upgrade.packages_list.map{|p| p[:name]}.join(" ") %></td>
</tr>
<% end %> | 8 | 0.571429 | 4 | 4 |
d8d8e4d4cc695bd855f54c204973216704bc3f41 | package.json | package.json | {
"name": "Persona",
"version": "0.1.0",
"private": true,
"devDependencies": {
"bower": "^1.4.1",
"browser-sync": "^2.6.5",
"compass": "^0.1.0",
"grunt": "~0.4.5",
"grunt-browser-sync": "^2.0.0",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-compass": "^1.0.1",
"grunt-contrib-concat": "^0.5.0",
"grunt-contrib-copy": "^0.7.0",
"grunt-contrib-jade": "^0.13.0",
"grunt-contrib-watch": "^0.6.1",
"grunt-ts": "^4.0.1",
"jade": "^1.9.2",
"typescript": "^1.5.0-alpha"
},
"dependencies": {
"typescript": "^1.5.0-beta"
}
}
| {
"name": "Persona",
"version": "0.1.0",
"private": true,
"devDependencies": {
"bower": "^1.4.1",
"compass": "^0.1.0",
"grunt": "~0.4.5",
"grunt-browser-sync": "^2.1.2",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-compass": "^1.0.1",
"grunt-contrib-concat": "^0.5.0",
"grunt-contrib-copy": "^0.7.0",
"grunt-contrib-jade": "^0.13.0",
"grunt-contrib-watch": "^0.6.1",
"grunt-ts": "^4.0.1",
"jade": "^1.9.2",
"typescript": "^1.5.0-beta"
}
}
| Remove unnecessary dependencies. Update "grunt-browser-sync" dependency. | Remove unnecessary dependencies.
Update "grunt-browser-sync" dependency.
| JSON | mit | cyrilschumacher/Persona,cyrilschumacher/Persona,cyrilschumacher/Persona,cyrilschumacher/Persona | json | ## Code Before:
{
"name": "Persona",
"version": "0.1.0",
"private": true,
"devDependencies": {
"bower": "^1.4.1",
"browser-sync": "^2.6.5",
"compass": "^0.1.0",
"grunt": "~0.4.5",
"grunt-browser-sync": "^2.0.0",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-compass": "^1.0.1",
"grunt-contrib-concat": "^0.5.0",
"grunt-contrib-copy": "^0.7.0",
"grunt-contrib-jade": "^0.13.0",
"grunt-contrib-watch": "^0.6.1",
"grunt-ts": "^4.0.1",
"jade": "^1.9.2",
"typescript": "^1.5.0-alpha"
},
"dependencies": {
"typescript": "^1.5.0-beta"
}
}
## Instruction:
Remove unnecessary dependencies.
Update "grunt-browser-sync" dependency.
## Code After:
{
"name": "Persona",
"version": "0.1.0",
"private": true,
"devDependencies": {
"bower": "^1.4.1",
"compass": "^0.1.0",
"grunt": "~0.4.5",
"grunt-browser-sync": "^2.1.2",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-compass": "^1.0.1",
"grunt-contrib-concat": "^0.5.0",
"grunt-contrib-copy": "^0.7.0",
"grunt-contrib-jade": "^0.13.0",
"grunt-contrib-watch": "^0.6.1",
"grunt-ts": "^4.0.1",
"jade": "^1.9.2",
"typescript": "^1.5.0-beta"
}
}
| {
"name": "Persona",
"version": "0.1.0",
"private": true,
"devDependencies": {
"bower": "^1.4.1",
- "browser-sync": "^2.6.5",
"compass": "^0.1.0",
"grunt": "~0.4.5",
- "grunt-browser-sync": "^2.0.0",
? ^ ^
+ "grunt-browser-sync": "^2.1.2",
? ^ ^
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-compass": "^1.0.1",
"grunt-contrib-concat": "^0.5.0",
"grunt-contrib-copy": "^0.7.0",
"grunt-contrib-jade": "^0.13.0",
"grunt-contrib-watch": "^0.6.1",
"grunt-ts": "^4.0.1",
"jade": "^1.9.2",
- "typescript": "^1.5.0-alpha"
- },
- "dependencies": {
"typescript": "^1.5.0-beta"
}
} | 6 | 0.25 | 1 | 5 |
f182bb037d49003a42cc8fefa10d849b1145b15a | src/app/components/msp/application/personal-info/i18n/data/en/index.js | src/app/components/msp/application/personal-info/i18n/data/en/index.js | module.exports = {
pageTitle: 'Tell us a bit about who is applying for health care coverage',
addSpouseButton: 'Add Spouse/Common-Law Partner',
addChildUnder19Button: 'Add Child (0-18)',
addChild19To24Button: 'Add Child (19-24)',
continueButton: 'Continue'
} | module.exports = {
pageTitle: 'Tell us a bit about who is applying for health care coverage',
addSpouseButton: 'Add Spouse/Common-Law Partner',
addChildUnder19Button: 'Add Child (0-18)',
addChild19To24Button: 'Add Child (19-24) who is a full-time student',
continueButton: 'Continue'
}
| Clarify student status of older children | Clarify student status of older children
Re: MoH legal feedback | JavaScript | apache-2.0 | bcgov/MyGovBC-MSP,bcgov/MyGovBC-MSP,bcgov/MyGovBC-MSP,bcgov/MyGovBC-MSP | javascript | ## Code Before:
module.exports = {
pageTitle: 'Tell us a bit about who is applying for health care coverage',
addSpouseButton: 'Add Spouse/Common-Law Partner',
addChildUnder19Button: 'Add Child (0-18)',
addChild19To24Button: 'Add Child (19-24)',
continueButton: 'Continue'
}
## Instruction:
Clarify student status of older children
Re: MoH legal feedback
## Code After:
module.exports = {
pageTitle: 'Tell us a bit about who is applying for health care coverage',
addSpouseButton: 'Add Spouse/Common-Law Partner',
addChildUnder19Button: 'Add Child (0-18)',
addChild19To24Button: 'Add Child (19-24) who is a full-time student',
continueButton: 'Continue'
}
| module.exports = {
pageTitle: 'Tell us a bit about who is applying for health care coverage',
addSpouseButton: 'Add Spouse/Common-Law Partner',
addChildUnder19Button: 'Add Child (0-18)',
- addChild19To24Button: 'Add Child (19-24)',
+ addChild19To24Button: 'Add Child (19-24) who is a full-time student',
? +++++++++++++++++++++++++++
continueButton: 'Continue'
} | 2 | 0.285714 | 1 | 1 |
b442ced5192c88365fed6bb843c605d53024545f | test/snapshot.coffee | test/snapshot.coffee | husl = require '../husl.coffee'
snapshot = ->
samples = {}
digits = '0123456789abcdef'
# Take 16 ^ 3 = 4096 samples
for r in digits
for g in digits
for b in digits
hex = '#' + r + r + g + g + b + b
rgb = husl._conv.hex.rgb hex
xyz = husl._conv.rgb.xyz rgb
luv = husl._conv.xyz.luv xyz
lch = husl._conv.luv.lch luv
samples[hex] =
rgb: rgb
xyz: xyz
luv: luv
lch: lch
husl: husl._conv.lch.husl lch
huslp: husl._conv.lch.huslp lch
return samples
module.exports = snapshot: snapshot
if require.main == module
console.log JSON.stringify snapshot()
| husl = require '../husl.coffee'
digits = '0123456789abcdef'
snapshot = ->
samples = {}
# Take 16 ^ 3 = 4096 samples
for r in digits
for g in digits
for b in digits
hex = '#' + r + r + g + g + b + b
rgb = husl._conv.hex.rgb hex
xyz = husl._conv.rgb.xyz rgb
luv = husl._conv.xyz.luv xyz
lch = husl._conv.luv.lch luv
samples[hex] =
rgb: rgb
xyz: xyz
luv: luv
lch: lch
husl: husl._conv.lch.husl lch
huslp: husl._conv.lch.huslp lch
return samples
testPrecision = (numDigits) ->
# Test how many digits of HUSL decimal precision is enough to unambiguously
# specify a hex-encoded RGB color. Spoiler alert: it's 4.
# Adapted from: https://gist.github.com/roryokane/f15bb23abcf9938c0707
for r1 in digits
for g1 in digits
for b1 in digits
# Assuming that only the least significant hex digit can cause a
# collision. Otherwise this program uses too much memory.
console.log "Testing #" + r1 + "_" + g1 + "_" + b1 + "_"
accum = {}
for r2 in digits
for g2 in digits
for b2 in digits
hex = '#' + r1 + r2 + g1 + g2 + b1 + b2
hsl = husl.fromHex(hex)
key = [ch.toFixed(numDigits) for ch in hsl].join('|')
if accum[key]
console.log "FOUND COLLISION:"
console.log hex, accum[key]
console.log key
return
else
accum[key] = hex
module.exports =
snapshot: snapshot
testPrecision: testPrecision
if require.main == module
console.log JSON.stringify snapshot()
| Add precision test based on @roryokane's code | Add precision test based on @roryokane's code
| CoffeeScript | mit | hsluv/hsluv,hsluv/hsluv | coffeescript | ## Code Before:
husl = require '../husl.coffee'
snapshot = ->
samples = {}
digits = '0123456789abcdef'
# Take 16 ^ 3 = 4096 samples
for r in digits
for g in digits
for b in digits
hex = '#' + r + r + g + g + b + b
rgb = husl._conv.hex.rgb hex
xyz = husl._conv.rgb.xyz rgb
luv = husl._conv.xyz.luv xyz
lch = husl._conv.luv.lch luv
samples[hex] =
rgb: rgb
xyz: xyz
luv: luv
lch: lch
husl: husl._conv.lch.husl lch
huslp: husl._conv.lch.huslp lch
return samples
module.exports = snapshot: snapshot
if require.main == module
console.log JSON.stringify snapshot()
## Instruction:
Add precision test based on @roryokane's code
## Code After:
husl = require '../husl.coffee'
digits = '0123456789abcdef'
snapshot = ->
samples = {}
# Take 16 ^ 3 = 4096 samples
for r in digits
for g in digits
for b in digits
hex = '#' + r + r + g + g + b + b
rgb = husl._conv.hex.rgb hex
xyz = husl._conv.rgb.xyz rgb
luv = husl._conv.xyz.luv xyz
lch = husl._conv.luv.lch luv
samples[hex] =
rgb: rgb
xyz: xyz
luv: luv
lch: lch
husl: husl._conv.lch.husl lch
huslp: husl._conv.lch.huslp lch
return samples
testPrecision = (numDigits) ->
# Test how many digits of HUSL decimal precision is enough to unambiguously
# specify a hex-encoded RGB color. Spoiler alert: it's 4.
# Adapted from: https://gist.github.com/roryokane/f15bb23abcf9938c0707
for r1 in digits
for g1 in digits
for b1 in digits
# Assuming that only the least significant hex digit can cause a
# collision. Otherwise this program uses too much memory.
console.log "Testing #" + r1 + "_" + g1 + "_" + b1 + "_"
accum = {}
for r2 in digits
for g2 in digits
for b2 in digits
hex = '#' + r1 + r2 + g1 + g2 + b1 + b2
hsl = husl.fromHex(hex)
key = [ch.toFixed(numDigits) for ch in hsl].join('|')
if accum[key]
console.log "FOUND COLLISION:"
console.log hex, accum[key]
console.log key
return
else
accum[key] = hex
module.exports =
snapshot: snapshot
testPrecision: testPrecision
if require.main == module
console.log JSON.stringify snapshot()
| husl = require '../husl.coffee'
+
+ digits = '0123456789abcdef'
snapshot = ->
samples = {}
-
- digits = '0123456789abcdef'
# Take 16 ^ 3 = 4096 samples
for r in digits
for g in digits
for b in digits
hex = '#' + r + r + g + g + b + b
rgb = husl._conv.hex.rgb hex
xyz = husl._conv.rgb.xyz rgb
luv = husl._conv.xyz.luv xyz
lch = husl._conv.luv.lch luv
samples[hex] =
rgb: rgb
xyz: xyz
luv: luv
lch: lch
husl: husl._conv.lch.husl lch
huslp: husl._conv.lch.huslp lch
return samples
- module.exports = snapshot: snapshot
+ testPrecision = (numDigits) ->
+ # Test how many digits of HUSL decimal precision is enough to unambiguously
+ # specify a hex-encoded RGB color. Spoiler alert: it's 4.
+ # Adapted from: https://gist.github.com/roryokane/f15bb23abcf9938c0707
+ for r1 in digits
+ for g1 in digits
+ for b1 in digits
+ # Assuming that only the least significant hex digit can cause a
+ # collision. Otherwise this program uses too much memory.
+ console.log "Testing #" + r1 + "_" + g1 + "_" + b1 + "_"
+ accum = {}
+ for r2 in digits
+ for g2 in digits
+ for b2 in digits
+ hex = '#' + r1 + r2 + g1 + g2 + b1 + b2
+ hsl = husl.fromHex(hex)
+ key = [ch.toFixed(numDigits) for ch in hsl].join('|')
+ if accum[key]
+ console.log "FOUND COLLISION:"
+ console.log hex, accum[key]
+ console.log key
+ return
+ else
+ accum[key] = hex
+
+ module.exports =
+ snapshot: snapshot
+ testPrecision: testPrecision
if require.main == module
console.log JSON.stringify snapshot() | 33 | 1.1 | 30 | 3 |
1505289ddfd22ae9b72bad980091323d5ba4ca12 | extensions/panache/mongodb-panache/deployment/src/test/resources/application.properties | extensions/panache/mongodb-panache/deployment/src/test/resources/application.properties | quarkus.mongodb.database=test
quarkus.mongodb.cl1-10812.connection-string=mongodb://localhost:27018
quarkus.mongodb.cl1-10812.database=cl1-10812-db
quarkus.mongodb.cl2-10812.connection-string=mongodb://localhost:27018
| quarkus.mongodb.devservices.enabled=false
quarkus.mongodb.database=test
quarkus.mongodb.cl1-10812.connection-string=mongodb://localhost:27018
quarkus.mongodb.cl1-10812.database=cl1-10812-db
quarkus.mongodb.cl2-10812.connection-string=mongodb://localhost:27018
| Disable Dev Services for MongoEntityTest | Disable Dev Services for MongoEntityTest
Docker is not available in the Windows CI this why this test was
failing.
| INI | apache-2.0 | quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus | ini | ## Code Before:
quarkus.mongodb.database=test
quarkus.mongodb.cl1-10812.connection-string=mongodb://localhost:27018
quarkus.mongodb.cl1-10812.database=cl1-10812-db
quarkus.mongodb.cl2-10812.connection-string=mongodb://localhost:27018
## Instruction:
Disable Dev Services for MongoEntityTest
Docker is not available in the Windows CI this why this test was
failing.
## Code After:
quarkus.mongodb.devservices.enabled=false
quarkus.mongodb.database=test
quarkus.mongodb.cl1-10812.connection-string=mongodb://localhost:27018
quarkus.mongodb.cl1-10812.database=cl1-10812-db
quarkus.mongodb.cl2-10812.connection-string=mongodb://localhost:27018
| + quarkus.mongodb.devservices.enabled=false
+
quarkus.mongodb.database=test
quarkus.mongodb.cl1-10812.connection-string=mongodb://localhost:27018
quarkus.mongodb.cl1-10812.database=cl1-10812-db
quarkus.mongodb.cl2-10812.connection-string=mongodb://localhost:27018 | 2 | 0.4 | 2 | 0 |
ba5abbac55975242cae4339a65aa333fd17c7767 | assets/modulr.js | assets/modulr.js | var modulr = (function(global) {
var _modules = {},
_aliases = {},
_cache = {},
PREFIX = '__module__'; // Prefix identifiers to avoid issues in IE.
function log(str) {
if (global.console && console.log) { console.log(str); }
}
function require(identifier) {
var m, key = PREFIX + identifier;
log('Required module "' + identifier + '".');
if (_aliases[key]) {
key = _aliases[key];
log('Found module "' + identifier + '" as alias of module "' + key.replace('__module__', '') + '".');
}
if (!_cache[key]) {
m = _modules[key];
if (!m) { throw 'Can\'t find module "' + identifier + '".'; }
_cache[key] = m(require, {});
}
return _cache[key];
}
function cache(identifier, fn) {
var key = PREFIX + identifier;
log('Cached module "' + identifier + '".');
if (_modules[key]) {
throw 'Can\'t ovewrite module "' + identifier + '".';
}
_modules[key] = fn;
}
function alias(alias, identifier) {
log('Linked "' + alias + '" to module "' + identifier + '".');
_aliases[PREFIX + alias] = PREFIX + identifier;
}
return {
require: require,
cache: cache,
alias: alias
};
})(this);
| var modulr = (function(global) {
var _modules = {},
_aliases = {},
_cache = {},
PREFIX = '__module__'; // Prefix identifiers to avoid issues in IE.
function log(str) {
if (global.console && console.log) { console.log(str); }
}
function require(identifier) {
var m, key = PREFIX + identifier;
log('Required module "' + identifier + '".');
if (_aliases[key]) {
key = _aliases[key];
log('Found module "' + identifier + '" as alias of module "' + key.replace(PREFIX, '') + '".');
}
if (!_cache[key]) {
m = _modules[key];
if (!m) { throw 'Can\'t find module "' + identifier + '".'; }
_cache[key] = m(require, {});
}
return _cache[key];
}
function cache(identifier, fn) {
var key = PREFIX + identifier;
log('Cached module "' + identifier + '".');
if (_modules[key]) {
throw 'Can\'t ovewrite module "' + identifier + '".';
}
_modules[key] = fn;
}
function alias(alias, identifier) {
log('Linked "' + alias + '" to module "' + identifier + '".');
_aliases[PREFIX + alias] = PREFIX + identifier;
}
return {
require: require,
cache: cache,
alias: alias
};
})(this);
| Use PREFIX pseudo-constant where appropriate. | Use PREFIX pseudo-constant where appropriate. | JavaScript | mit | tobie/modulr,tobie/modulr | javascript | ## Code Before:
var modulr = (function(global) {
var _modules = {},
_aliases = {},
_cache = {},
PREFIX = '__module__'; // Prefix identifiers to avoid issues in IE.
function log(str) {
if (global.console && console.log) { console.log(str); }
}
function require(identifier) {
var m, key = PREFIX + identifier;
log('Required module "' + identifier + '".');
if (_aliases[key]) {
key = _aliases[key];
log('Found module "' + identifier + '" as alias of module "' + key.replace('__module__', '') + '".');
}
if (!_cache[key]) {
m = _modules[key];
if (!m) { throw 'Can\'t find module "' + identifier + '".'; }
_cache[key] = m(require, {});
}
return _cache[key];
}
function cache(identifier, fn) {
var key = PREFIX + identifier;
log('Cached module "' + identifier + '".');
if (_modules[key]) {
throw 'Can\'t ovewrite module "' + identifier + '".';
}
_modules[key] = fn;
}
function alias(alias, identifier) {
log('Linked "' + alias + '" to module "' + identifier + '".');
_aliases[PREFIX + alias] = PREFIX + identifier;
}
return {
require: require,
cache: cache,
alias: alias
};
})(this);
## Instruction:
Use PREFIX pseudo-constant where appropriate.
## Code After:
var modulr = (function(global) {
var _modules = {},
_aliases = {},
_cache = {},
PREFIX = '__module__'; // Prefix identifiers to avoid issues in IE.
function log(str) {
if (global.console && console.log) { console.log(str); }
}
function require(identifier) {
var m, key = PREFIX + identifier;
log('Required module "' + identifier + '".');
if (_aliases[key]) {
key = _aliases[key];
log('Found module "' + identifier + '" as alias of module "' + key.replace(PREFIX, '') + '".');
}
if (!_cache[key]) {
m = _modules[key];
if (!m) { throw 'Can\'t find module "' + identifier + '".'; }
_cache[key] = m(require, {});
}
return _cache[key];
}
function cache(identifier, fn) {
var key = PREFIX + identifier;
log('Cached module "' + identifier + '".');
if (_modules[key]) {
throw 'Can\'t ovewrite module "' + identifier + '".';
}
_modules[key] = fn;
}
function alias(alias, identifier) {
log('Linked "' + alias + '" to module "' + identifier + '".');
_aliases[PREFIX + alias] = PREFIX + identifier;
}
return {
require: require,
cache: cache,
alias: alias
};
})(this);
| var modulr = (function(global) {
var _modules = {},
_aliases = {},
_cache = {},
PREFIX = '__module__'; // Prefix identifiers to avoid issues in IE.
function log(str) {
if (global.console && console.log) { console.log(str); }
}
function require(identifier) {
var m, key = PREFIX + identifier;
log('Required module "' + identifier + '".');
if (_aliases[key]) {
key = _aliases[key];
- log('Found module "' + identifier + '" as alias of module "' + key.replace('__module__', '') + '".');
? ^^^^^^^^^^^^
+ log('Found module "' + identifier + '" as alias of module "' + key.replace(PREFIX, '') + '".');
? ^^^^^^
}
if (!_cache[key]) {
m = _modules[key];
if (!m) { throw 'Can\'t find module "' + identifier + '".'; }
_cache[key] = m(require, {});
}
return _cache[key];
}
function cache(identifier, fn) {
var key = PREFIX + identifier;
log('Cached module "' + identifier + '".');
if (_modules[key]) {
throw 'Can\'t ovewrite module "' + identifier + '".';
}
_modules[key] = fn;
}
function alias(alias, identifier) {
log('Linked "' + alias + '" to module "' + identifier + '".');
_aliases[PREFIX + alias] = PREFIX + identifier;
}
return {
require: require,
cache: cache,
alias: alias
};
})(this); | 2 | 0.040816 | 1 | 1 |
8d175fb8793d460adc4b1ce3f59bdcbec046aed8 | packages/@sanity/form-builder/src/inputs/BlockEditor-slate/styles/contentStyles/ListItem.css | packages/@sanity/form-builder/src/inputs/BlockEditor-slate/styles/contentStyles/ListItem.css | .root {
display: list-item;
margin-left: 1.1em;
margin-bottom: 0.5em;
list-style-position: outside;
}
.root > * {
display: inline-flex;;
margin: 0;
padding: 0;
line-height: 100%;
}
.bullet {
composes: root;
list-style-type: none;
}
.bullet > * {
@nest &:before {
content: '\2022';
margin-right: 1rem;
margin-top: 0.1rem;
}
}
.number {
composes: root;
list-style-type: none;
counter-increment: listItem;
@nest & + :not(.number) {
counter-reset: listItem
}
}
.number > * {
@nest &:before {
margin-right: 1rem;
content: counter(listItem) ".";
}
}
.roman {
composes: root;
list-style-type: upper-roman;
}
| .root {
display: list-item;
margin-left: 1.1em;
margin-bottom: 0.5em;
list-style-position: outside;
}
.root > * {
display: inline-flex;;
margin: 0;
padding: 0;
line-height: 100%;
}
.bullet {
composes: root;
list-style-type: none;
}
.bullet > * {
@nest &:before {
content: '\25CF';
margin-right: 1rem;
}
}
.number {
composes: root;
list-style-type: none;
counter-increment: listItem;
@nest & + :not(.number) {
counter-reset: listItem
}
}
.number > * {
@nest &:before {
margin-right: 1rem;
content: counter(listItem) ".";
}
}
.roman {
composes: root;
list-style-type: upper-roman;
}
| Use black circle as bullet point symbol | [form-builder] Slate: Use black circle as bullet point symbol
| CSS | mit | sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity | css | ## Code Before:
.root {
display: list-item;
margin-left: 1.1em;
margin-bottom: 0.5em;
list-style-position: outside;
}
.root > * {
display: inline-flex;;
margin: 0;
padding: 0;
line-height: 100%;
}
.bullet {
composes: root;
list-style-type: none;
}
.bullet > * {
@nest &:before {
content: '\2022';
margin-right: 1rem;
margin-top: 0.1rem;
}
}
.number {
composes: root;
list-style-type: none;
counter-increment: listItem;
@nest & + :not(.number) {
counter-reset: listItem
}
}
.number > * {
@nest &:before {
margin-right: 1rem;
content: counter(listItem) ".";
}
}
.roman {
composes: root;
list-style-type: upper-roman;
}
## Instruction:
[form-builder] Slate: Use black circle as bullet point symbol
## Code After:
.root {
display: list-item;
margin-left: 1.1em;
margin-bottom: 0.5em;
list-style-position: outside;
}
.root > * {
display: inline-flex;;
margin: 0;
padding: 0;
line-height: 100%;
}
.bullet {
composes: root;
list-style-type: none;
}
.bullet > * {
@nest &:before {
content: '\25CF';
margin-right: 1rem;
}
}
.number {
composes: root;
list-style-type: none;
counter-increment: listItem;
@nest & + :not(.number) {
counter-reset: listItem
}
}
.number > * {
@nest &:before {
margin-right: 1rem;
content: counter(listItem) ".";
}
}
.roman {
composes: root;
list-style-type: upper-roman;
}
| .root {
display: list-item;
margin-left: 1.1em;
margin-bottom: 0.5em;
list-style-position: outside;
}
.root > * {
display: inline-flex;;
margin: 0;
padding: 0;
line-height: 100%;
}
.bullet {
composes: root;
list-style-type: none;
}
.bullet > * {
@nest &:before {
- content: '\2022';
? ^^^
+ content: '\25CF';
? ^^^
margin-right: 1rem;
- margin-top: 0.1rem;
}
}
.number {
composes: root;
list-style-type: none;
counter-increment: listItem;
@nest & + :not(.number) {
counter-reset: listItem
}
}
.number > * {
@nest &:before {
margin-right: 1rem;
content: counter(listItem) ".";
}
}
.roman {
composes: root;
list-style-type: upper-roman;
} | 3 | 0.06383 | 1 | 2 |
01771d02060ce195b67454a88618d10bc4f0d1ce | georocket-server/src/main/java/io/georocket/index/generic/DefaultMetaIndexer.java | georocket-server/src/main/java/io/georocket/index/generic/DefaultMetaIndexer.java | package io.georocket.index.generic;
import java.util.HashMap;
import java.util.Map;
import io.georocket.index.xml.MetaIndexer;
import io.georocket.storage.ChunkMeta;
import io.georocket.storage.IndexMeta;
/**
* Default implementation of {@link MetaIndexer} that extracts generic
* attributes from chunk metadata and adds it to the index.
* @author Michel Kraemer
*/
public class DefaultMetaIndexer implements MetaIndexer {
private final Map<String, Object> result = new HashMap<>();
@Override
public Map<String, Object> getResult() {
return result;
}
@Override
public void onIndexChunk(String path, ChunkMeta chunkMeta,
IndexMeta indexMeta) {
result.put("path", path);
result.put("correlationId", indexMeta.getCorrelationId());
result.put("filename", indexMeta.getFilename());
result.put("timestamp", indexMeta.getTimestamp());
result.put("chunkMeta", chunkMeta.toJsonObject());
if (indexMeta.getTags() != null) {
result.put("tags", indexMeta.getTags());
}
}
}
| package io.georocket.index.generic;
import java.util.HashMap;
import java.util.Map;
import io.georocket.index.xml.MetaIndexer;
import io.georocket.storage.ChunkMeta;
import io.georocket.storage.IndexMeta;
/**
* Default implementation of {@link MetaIndexer} that extracts generic
* attributes from chunk metadata and adds it to the index.
* @author Michel Kraemer
*/
public class DefaultMetaIndexer implements MetaIndexer {
private final Map<String, Object> result = new HashMap<>();
@Override
public Map<String, Object> getResult() {
return result;
}
@Override
public void onIndexChunk(String path, ChunkMeta chunkMeta,
IndexMeta indexMeta) {
result.put("path", path);
result.put("chunkMeta", chunkMeta.toJsonObject());
if (indexMeta.getTags() != null) {
result.put("tags", indexMeta.getTags());
}
}
}
| Remove unnecessary properties from index | Remove unnecessary properties from index
| Java | apache-2.0 | georocket/georocket,andrej-sajenko/georocket,andrej-sajenko/georocket,georocket/georocket | java | ## Code Before:
package io.georocket.index.generic;
import java.util.HashMap;
import java.util.Map;
import io.georocket.index.xml.MetaIndexer;
import io.georocket.storage.ChunkMeta;
import io.georocket.storage.IndexMeta;
/**
* Default implementation of {@link MetaIndexer} that extracts generic
* attributes from chunk metadata and adds it to the index.
* @author Michel Kraemer
*/
public class DefaultMetaIndexer implements MetaIndexer {
private final Map<String, Object> result = new HashMap<>();
@Override
public Map<String, Object> getResult() {
return result;
}
@Override
public void onIndexChunk(String path, ChunkMeta chunkMeta,
IndexMeta indexMeta) {
result.put("path", path);
result.put("correlationId", indexMeta.getCorrelationId());
result.put("filename", indexMeta.getFilename());
result.put("timestamp", indexMeta.getTimestamp());
result.put("chunkMeta", chunkMeta.toJsonObject());
if (indexMeta.getTags() != null) {
result.put("tags", indexMeta.getTags());
}
}
}
## Instruction:
Remove unnecessary properties from index
## Code After:
package io.georocket.index.generic;
import java.util.HashMap;
import java.util.Map;
import io.georocket.index.xml.MetaIndexer;
import io.georocket.storage.ChunkMeta;
import io.georocket.storage.IndexMeta;
/**
* Default implementation of {@link MetaIndexer} that extracts generic
* attributes from chunk metadata and adds it to the index.
* @author Michel Kraemer
*/
public class DefaultMetaIndexer implements MetaIndexer {
private final Map<String, Object> result = new HashMap<>();
@Override
public Map<String, Object> getResult() {
return result;
}
@Override
public void onIndexChunk(String path, ChunkMeta chunkMeta,
IndexMeta indexMeta) {
result.put("path", path);
result.put("chunkMeta", chunkMeta.toJsonObject());
if (indexMeta.getTags() != null) {
result.put("tags", indexMeta.getTags());
}
}
}
| package io.georocket.index.generic;
import java.util.HashMap;
import java.util.Map;
import io.georocket.index.xml.MetaIndexer;
import io.georocket.storage.ChunkMeta;
import io.georocket.storage.IndexMeta;
/**
* Default implementation of {@link MetaIndexer} that extracts generic
* attributes from chunk metadata and adds it to the index.
* @author Michel Kraemer
*/
public class DefaultMetaIndexer implements MetaIndexer {
private final Map<String, Object> result = new HashMap<>();
@Override
public Map<String, Object> getResult() {
return result;
}
@Override
public void onIndexChunk(String path, ChunkMeta chunkMeta,
IndexMeta indexMeta) {
result.put("path", path);
- result.put("correlationId", indexMeta.getCorrelationId());
- result.put("filename", indexMeta.getFilename());
- result.put("timestamp", indexMeta.getTimestamp());
result.put("chunkMeta", chunkMeta.toJsonObject());
if (indexMeta.getTags() != null) {
result.put("tags", indexMeta.getTags());
}
}
} | 3 | 0.085714 | 0 | 3 |
52ea58b0183fc40232c58d240517250d1f6fa5a6 | winbuild.sh | winbuild.sh | GOOS=windows GOARCH=amd64 go build -o whycc.exe whycc.go | VERSION=`git describe --abbrev=0 --tags`
COMMIT=`git log --pretty=format:'%h' -n 1`
DATE=`date +"%Y%m%d%H%M%S"`
GOOS=windows GOARCH=amd64 go build -ldflags "-X main.version=$VERSION -X main.commit=$COMMIT -X main.date=$DATE" -o whycc.exe whycc.go | Add linker flags to windows build script | Add linker flags to windows build script
| Shell | mit | st3sch/whycc,st3sch/whycc | shell | ## Code Before:
GOOS=windows GOARCH=amd64 go build -o whycc.exe whycc.go
## Instruction:
Add linker flags to windows build script
## Code After:
VERSION=`git describe --abbrev=0 --tags`
COMMIT=`git log --pretty=format:'%h' -n 1`
DATE=`date +"%Y%m%d%H%M%S"`
GOOS=windows GOARCH=amd64 go build -ldflags "-X main.version=$VERSION -X main.commit=$COMMIT -X main.date=$DATE" -o whycc.exe whycc.go | - GOOS=windows GOARCH=amd64 go build -o whycc.exe whycc.go
+ VERSION=`git describe --abbrev=0 --tags`
+ COMMIT=`git log --pretty=format:'%h' -n 1`
+ DATE=`date +"%Y%m%d%H%M%S"`
+ GOOS=windows GOARCH=amd64 go build -ldflags "-X main.version=$VERSION -X main.commit=$COMMIT -X main.date=$DATE" -o whycc.exe whycc.go | 5 | 5 | 4 | 1 |
b7470d04d8a57749a046a8c8877fba479d04ff5f | src/DjebbZ/HelloBundle/Resources/config/routing.yml | src/DjebbZ/HelloBundle/Resources/config/routing.yml | djebb_z_hello_homepage:
pattern: /hello/{name}
defaults: { _controller: DjebbZHelloBundle:Default:index }
pattern: /hellojson/{name}.json
defaults: { _controller: DjebbZHelloBundle:Default:indexJson }
| djebb_z_hello_homepage:
pattern: /hello/{name}
defaults: { _controller: DjebbZHelloBundle:Default:index }
pattern: /{name}.json
defaults: { _controller: DjebbZHelloBundle:Default:indexJson }
| Change the json route url | Change the json route url
| YAML | mit | DjebbZ/symfony-playground | yaml | ## Code Before:
djebb_z_hello_homepage:
pattern: /hello/{name}
defaults: { _controller: DjebbZHelloBundle:Default:index }
pattern: /hellojson/{name}.json
defaults: { _controller: DjebbZHelloBundle:Default:indexJson }
## Instruction:
Change the json route url
## Code After:
djebb_z_hello_homepage:
pattern: /hello/{name}
defaults: { _controller: DjebbZHelloBundle:Default:index }
pattern: /{name}.json
defaults: { _controller: DjebbZHelloBundle:Default:indexJson }
| djebb_z_hello_homepage:
pattern: /hello/{name}
defaults: { _controller: DjebbZHelloBundle:Default:index }
- pattern: /hellojson/{name}.json
? ----------
+ pattern: /{name}.json
defaults: { _controller: DjebbZHelloBundle:Default:indexJson } | 2 | 0.333333 | 1 | 1 |
e1a54c7d08f33601e48aec485ac72d9d81730186 | spec/helper.py | spec/helper.py | from expects import *
from pygametemplate import Game
import datetime
class TestGame(Game):
"""An altered Game class for testing purposes."""
def __init__(self, resolution):
super(TestGame, self).__init__(resolution)
def log(self, *error_message):
"""Altered log function which just raises errors."""
raise
game = TestGame((1280, 720))
| from expects import *
from example_view import ExampleView
from pygametemplate import Game
import datetime
class TestGame(Game):
"""An altered Game class for testing purposes."""
def __init__(self, StartingView, resolution):
super(TestGame, self).__init__(StartingView, resolution)
def log(self, *error_message):
"""Altered log function which just raises errors."""
raise
game = TestGame(ExampleView, (1280, 720))
| Fix TestGame class to match the View update to Game | Fix TestGame class to match the View update to Game
| Python | mit | AndyDeany/pygame-template | python | ## Code Before:
from expects import *
from pygametemplate import Game
import datetime
class TestGame(Game):
"""An altered Game class for testing purposes."""
def __init__(self, resolution):
super(TestGame, self).__init__(resolution)
def log(self, *error_message):
"""Altered log function which just raises errors."""
raise
game = TestGame((1280, 720))
## Instruction:
Fix TestGame class to match the View update to Game
## Code After:
from expects import *
from example_view import ExampleView
from pygametemplate import Game
import datetime
class TestGame(Game):
"""An altered Game class for testing purposes."""
def __init__(self, StartingView, resolution):
super(TestGame, self).__init__(StartingView, resolution)
def log(self, *error_message):
"""Altered log function which just raises errors."""
raise
game = TestGame(ExampleView, (1280, 720))
| from expects import *
+ from example_view import ExampleView
from pygametemplate import Game
import datetime
class TestGame(Game):
"""An altered Game class for testing purposes."""
- def __init__(self, resolution):
+ def __init__(self, StartingView, resolution):
? ++++++++++++++
- super(TestGame, self).__init__(resolution)
+ super(TestGame, self).__init__(StartingView, resolution)
? ++++++++++++++
def log(self, *error_message):
"""Altered log function which just raises errors."""
raise
- game = TestGame((1280, 720))
+ game = TestGame(ExampleView, (1280, 720))
? +++++++++++++
| 7 | 0.388889 | 4 | 3 |
901a1114f8e36b7b84b53f3d2024ab263faa4f1c | assets/javascript/vector2.js | assets/javascript/vector2.js | function Vector2(x, y) {
this.x = x;
this.y = y;
}
Vector2.prototype.add = function(other) {
if (!(other instanceof Vector2)) throw new TypeError("Cannot add '" + other + "'' to '" + this + "'!");
return new Vector2(this.x + other.x, this.y + other.y);
};
Vector2.prototype.subtract = function(other) {
if (!(other instanceof Vector2)) throw new TypeError("Cannot subtract '" + other + "'' from '" + this + "'!");
return new Vector2(this.x - other.x, this.y - other.y);
};
Vector2.prototype.equals = function(other) {
return ((other instanceof Vector2) && (this.x == other.x) && (this.y == other.y));
};
Vector2.prototype.toString = function() {
return this.constructor.name + "(" + this.x + ", " + this.y + ")";
};
// For NodeJS
if (exports === undefined) exports = {};
exports.Vector2 = Vector2;
| function Vector2(x, y) {
this.x = x;
this.y = y;
}
Vector2.prototype.add = function(other) {
if (!(other instanceof Vector2)) throw new TypeError("Cannot add '" + other + "'' to '" + this + "'!");
return new Vector2(this.x + other.x, this.y + other.y);
};
Vector2.prototype.subtract = function(other) {
if (!(other instanceof Vector2)) throw new TypeError("Cannot subtract '" + other + "'' from '" + this + "'!");
return new Vector2(this.x - other.x, this.y - other.y);
};
Vector2.prototype.equals = function(other) {
return ((other instanceof Vector2) && (this.x == other.x) && (this.y == other.y));
};
Vector2.prototype.toString = function() {
return this.constructor.name + "(" + this.x + ", " + this.y + ")";
};
// For NodeJS
if (typeof exports == "undefined") exports = {};
exports.Vector2 = Vector2;
| Fix NodeJS shim in Vector2 file | Fix NodeJS shim in Vector2 file
| JavaScript | mit | Ajedi32/html_checkers | javascript | ## Code Before:
function Vector2(x, y) {
this.x = x;
this.y = y;
}
Vector2.prototype.add = function(other) {
if (!(other instanceof Vector2)) throw new TypeError("Cannot add '" + other + "'' to '" + this + "'!");
return new Vector2(this.x + other.x, this.y + other.y);
};
Vector2.prototype.subtract = function(other) {
if (!(other instanceof Vector2)) throw new TypeError("Cannot subtract '" + other + "'' from '" + this + "'!");
return new Vector2(this.x - other.x, this.y - other.y);
};
Vector2.prototype.equals = function(other) {
return ((other instanceof Vector2) && (this.x == other.x) && (this.y == other.y));
};
Vector2.prototype.toString = function() {
return this.constructor.name + "(" + this.x + ", " + this.y + ")";
};
// For NodeJS
if (exports === undefined) exports = {};
exports.Vector2 = Vector2;
## Instruction:
Fix NodeJS shim in Vector2 file
## Code After:
function Vector2(x, y) {
this.x = x;
this.y = y;
}
Vector2.prototype.add = function(other) {
if (!(other instanceof Vector2)) throw new TypeError("Cannot add '" + other + "'' to '" + this + "'!");
return new Vector2(this.x + other.x, this.y + other.y);
};
Vector2.prototype.subtract = function(other) {
if (!(other instanceof Vector2)) throw new TypeError("Cannot subtract '" + other + "'' from '" + this + "'!");
return new Vector2(this.x - other.x, this.y - other.y);
};
Vector2.prototype.equals = function(other) {
return ((other instanceof Vector2) && (this.x == other.x) && (this.y == other.y));
};
Vector2.prototype.toString = function() {
return this.constructor.name + "(" + this.x + ", " + this.y + ")";
};
// For NodeJS
if (typeof exports == "undefined") exports = {};
exports.Vector2 = Vector2;
| function Vector2(x, y) {
this.x = x;
this.y = y;
}
Vector2.prototype.add = function(other) {
if (!(other instanceof Vector2)) throw new TypeError("Cannot add '" + other + "'' to '" + this + "'!");
return new Vector2(this.x + other.x, this.y + other.y);
};
Vector2.prototype.subtract = function(other) {
if (!(other instanceof Vector2)) throw new TypeError("Cannot subtract '" + other + "'' from '" + this + "'!");
return new Vector2(this.x - other.x, this.y - other.y);
};
Vector2.prototype.equals = function(other) {
return ((other instanceof Vector2) && (this.x == other.x) && (this.y == other.y));
};
Vector2.prototype.toString = function() {
return this.constructor.name + "(" + this.x + ", " + this.y + ")";
};
// For NodeJS
- if (exports === undefined) exports = {};
? -
+ if (typeof exports == "undefined") exports = {};
? +++++++ + +
exports.Vector2 = Vector2; | 2 | 0.090909 | 1 | 1 |
08fd17ccf5d7cc514fa423899cb65c0874d7dd37 | .travis.yml | .travis.yml | language: node_js
node_js:
- "5.1"
sudo: required
services:
- docker
script:
- npm run test:integration
| language: node_js
node_js:
- "5.1"
sudo: required
services:
- docker
script:
- npm test
- npm run test:integration
| Fix Travis unit test execution | Fix Travis unit test execution | YAML | mit | saguijs/sagui,saguijs/sagui | yaml | ## Code Before:
language: node_js
node_js:
- "5.1"
sudo: required
services:
- docker
script:
- npm run test:integration
## Instruction:
Fix Travis unit test execution
## Code After:
language: node_js
node_js:
- "5.1"
sudo: required
services:
- docker
script:
- npm test
- npm run test:integration
| language: node_js
node_js:
- "5.1"
sudo: required
services:
- docker
script:
+ - npm test
- npm run test:integration | 1 | 0.125 | 1 | 0 |
ff1c18b1128f1f8a9d99a4ecb8d7cbb0e2d68edc | src/main/java/io/github/jacobmarshall/meloooncensor/lang/Translation.java | src/main/java/io/github/jacobmarshall/meloooncensor/lang/Translation.java | package io.github.jacobmarshall.meloooncensor.lang;
import io.github.jacobmarshall.meloooncensor.config.Configuration;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public class Translation {
public static final Translation DEFAULT_TRANSLATION = new Translation(Configuration.DEFAULT_LANGUAGE, false);
private boolean allowFallback;
protected String language;
protected Properties translations;
public Translation (String language) {
this(language, true);
}
private Translation (String language, boolean allowFallback) {
this.language = language;
this.translations = getTranslations(language);
this.allowFallback = allowFallback;
}
public String getText (String key) {
return this.translations.getProperty(key, this.allowFallback ?
DEFAULT_TRANSLATION.getText(key) : "i18n:" + key);
}
private static Properties getTranslations (String language) {
Properties properties = new Properties();
InputStream inputStream = Translation.class.getResourceAsStream("/lang/" + language + ".properties");
try {
properties.load(inputStream);
} catch (IOException err) {
// Ignore (load the defaults)
}
return properties;
}
}
| package io.github.jacobmarshall.meloooncensor.lang;
import io.github.jacobmarshall.meloooncensor.config.Configuration;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public class Translation {
public static final Translation DEFAULT_TRANSLATION = new Translation(Configuration.DEFAULT_LANGUAGE, false);
private boolean allowFallback;
protected String language;
protected Properties translations;
public Translation (String language) {
this(language, true);
}
private Translation (String language, boolean allowFallback) {
this.language = language;
this.translations = getTranslations(language);
this.allowFallback = allowFallback;
}
public String getText (String key) {
String text = this.translations.getProperty(key, this.allowFallback ?
DEFAULT_TRANSLATION.getText(key) : "i18n:" + key);
try {
text = new String(text.getBytes("ISO-8859-1"), "UTF-8");
} catch(Exception e) {
// Ignore, keep old encoding
}
return text;
}
private static Properties getTranslations (String language) {
Properties properties = new Properties();
InputStream inputStream = Translation.class.getResourceAsStream("/lang/" + language + ".properties");
try {
properties.load(inputStream);
} catch (IOException err) {
// Ignore (load the defaults)
}
return properties;
}
}
| Fix encoding issue with extended character set | Fix encoding issue with extended character set
| Java | mit | Behoston/meloooncensor,jacobmarshall/meloooncensor | java | ## Code Before:
package io.github.jacobmarshall.meloooncensor.lang;
import io.github.jacobmarshall.meloooncensor.config.Configuration;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public class Translation {
public static final Translation DEFAULT_TRANSLATION = new Translation(Configuration.DEFAULT_LANGUAGE, false);
private boolean allowFallback;
protected String language;
protected Properties translations;
public Translation (String language) {
this(language, true);
}
private Translation (String language, boolean allowFallback) {
this.language = language;
this.translations = getTranslations(language);
this.allowFallback = allowFallback;
}
public String getText (String key) {
return this.translations.getProperty(key, this.allowFallback ?
DEFAULT_TRANSLATION.getText(key) : "i18n:" + key);
}
private static Properties getTranslations (String language) {
Properties properties = new Properties();
InputStream inputStream = Translation.class.getResourceAsStream("/lang/" + language + ".properties");
try {
properties.load(inputStream);
} catch (IOException err) {
// Ignore (load the defaults)
}
return properties;
}
}
## Instruction:
Fix encoding issue with extended character set
## Code After:
package io.github.jacobmarshall.meloooncensor.lang;
import io.github.jacobmarshall.meloooncensor.config.Configuration;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public class Translation {
public static final Translation DEFAULT_TRANSLATION = new Translation(Configuration.DEFAULT_LANGUAGE, false);
private boolean allowFallback;
protected String language;
protected Properties translations;
public Translation (String language) {
this(language, true);
}
private Translation (String language, boolean allowFallback) {
this.language = language;
this.translations = getTranslations(language);
this.allowFallback = allowFallback;
}
public String getText (String key) {
String text = this.translations.getProperty(key, this.allowFallback ?
DEFAULT_TRANSLATION.getText(key) : "i18n:" + key);
try {
text = new String(text.getBytes("ISO-8859-1"), "UTF-8");
} catch(Exception e) {
// Ignore, keep old encoding
}
return text;
}
private static Properties getTranslations (String language) {
Properties properties = new Properties();
InputStream inputStream = Translation.class.getResourceAsStream("/lang/" + language + ".properties");
try {
properties.load(inputStream);
} catch (IOException err) {
// Ignore (load the defaults)
}
return properties;
}
}
| package io.github.jacobmarshall.meloooncensor.lang;
import io.github.jacobmarshall.meloooncensor.config.Configuration;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public class Translation {
public static final Translation DEFAULT_TRANSLATION = new Translation(Configuration.DEFAULT_LANGUAGE, false);
private boolean allowFallback;
protected String language;
protected Properties translations;
public Translation (String language) {
this(language, true);
}
private Translation (String language, boolean allowFallback) {
this.language = language;
this.translations = getTranslations(language);
this.allowFallback = allowFallback;
}
public String getText (String key) {
- return this.translations.getProperty(key, this.allowFallback ?
? ^^^
+ String text = this.translations.getProperty(key, this.allowFallback ?
? ++ +++++ + ^^
DEFAULT_TRANSLATION.getText(key) : "i18n:" + key);
+
+ try {
+ text = new String(text.getBytes("ISO-8859-1"), "UTF-8");
+ } catch(Exception e) {
+ // Ignore, keep old encoding
+ }
+
+ return text;
}
private static Properties getTranslations (String language) {
Properties properties = new Properties();
InputStream inputStream = Translation.class.getResourceAsStream("/lang/" + language + ".properties");
try {
properties.load(inputStream);
} catch (IOException err) {
// Ignore (load the defaults)
}
return properties;
}
} | 10 | 0.222222 | 9 | 1 |
8b240401d8007383ad877411fe2ebec4a150aff4 | zlib-musl/plan.sh | zlib-musl/plan.sh | source ../zlib/plan.sh
pkg_name=zlib-musl
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_deps=(core/musl)
do_prepare() {
export CC=musl-gcc
build_line "Setting CC=$CC"
}
| source ../zlib/plan.sh
pkg_name=zlib-musl
pkg_origin=core
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_description="\
Compression library implementing the deflate compression method found in gzip \
and PKZIP.\
"
pkg_upstream_url="http://www.zlib.net/"
pkg_license=('zlib')
pkg_deps=(
core/musl
)
do_prepare() {
export CC=musl-gcc
build_line "Setting CC=$CC"
}
| Update & modernize Plan style. | [zlib-musl] Update & modernize Plan style.
Signed-off-by: Fletcher Nichol <77a0fd9e8048bbacd11af4e957bc6ff03b549f49@nichol.ca>
| Shell | apache-2.0 | be-plans/be,be-plans/be,be-plans/be,be-plans/be | shell | ## Code Before:
source ../zlib/plan.sh
pkg_name=zlib-musl
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_deps=(core/musl)
do_prepare() {
export CC=musl-gcc
build_line "Setting CC=$CC"
}
## Instruction:
[zlib-musl] Update & modernize Plan style.
Signed-off-by: Fletcher Nichol <77a0fd9e8048bbacd11af4e957bc6ff03b549f49@nichol.ca>
## Code After:
source ../zlib/plan.sh
pkg_name=zlib-musl
pkg_origin=core
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_description="\
Compression library implementing the deflate compression method found in gzip \
and PKZIP.\
"
pkg_upstream_url="http://www.zlib.net/"
pkg_license=('zlib')
pkg_deps=(
core/musl
)
do_prepare() {
export CC=musl-gcc
build_line "Setting CC=$CC"
}
| source ../zlib/plan.sh
pkg_name=zlib-musl
+ pkg_origin=core
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
- pkg_deps=(core/musl)
+ pkg_description="\
+ Compression library implementing the deflate compression method found in gzip \
+ and PKZIP.\
+ "
+ pkg_upstream_url="http://www.zlib.net/"
+ pkg_license=('zlib')
+ pkg_deps=(
+ core/musl
+ )
do_prepare() {
export CC=musl-gcc
build_line "Setting CC=$CC"
} | 11 | 1.1 | 10 | 1 |
ed445ddcce3f43c245e27cc0552cb26af6bb9eb2 | core/app/assets/stylesheets/users/edit.css.less | core/app/assets/stylesheets/users/edit.css.less | @import "mixins/mixins";
#edit_user {
img.avatar {
border-radius: 3px;
}
span.help-inline.avatar {
vertical-align:top;
color: @metaFontColor;
width: 290px;
}
.bio {
height: 70px;
resize:vertical;
}
.social-services-buttons {
.disconnect { display: none; }
&:hover {
.connected { display: none; }
.disconnect { display: inline; }
}
a img {
width: 16px;
height: 16px;
margin-top: -4px;
margin-right: 5px;
}
}
.help-inline {
display: inline-block;
padding-left: 5px;
}
.disabled-email {
cursor: not-allowed;
background-color: @inputDisabledBackground;
}
.edit-user-delete-container {
border-top: 1px solid @mutedBorderColor;
padding-top: 20px;
}
.edit-user-delete-link {
float: right;
color: @buttonDangerBackground;
&:hover {
color: darken(@buttonDangerBackground, 5);
}
}
}
.notification-settings {
margin-top: 20px;
}
.user-edit-username {
width: 202px;
}
#delete-form:not(:target) {
display: none;
}
| @import "mixins/mixins";
#edit_user {
img.avatar {
border-radius: 3px;
}
span.help-inline.avatar {
vertical-align:top;
color: @metaFontColor;
width: 290px;
}
.bio {
height: 70px;
resize:vertical;
}
.social-services-buttons {
.disconnect { display: none; }
&:hover {
.connected { display: none; }
.disconnect { display: inline; }
}
a img {
width: 16px;
height: 16px;
margin-top: -4px;
margin-right: 5px;
}
}
.help-inline {
display: inline-block;
padding-left: 5px;
}
.disabled-email {
cursor: not-allowed;
background-color: @inputDisabledBackground;
}
.edit-user-delete-container {
border-top: 1px solid @mutedBorderColor;
padding-top: 20px;
}
.edit-user-delete-link {
float: right;
color: @buttonDangerBackground;
&:hover {
color: darken(@buttonDangerBackground, 5);
}
}
}
.notification-settings {
margin-top: 20px;
}
.user-edit-username {
width: 202px;
}
.edit-user-form {
margin-bottom: 20px;
}
#delete-form:not(:target) {
display: none;
}
| Fix margin on settingd page | Fix margin on settingd page
| Less | mit | daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core | less | ## Code Before:
@import "mixins/mixins";
#edit_user {
img.avatar {
border-radius: 3px;
}
span.help-inline.avatar {
vertical-align:top;
color: @metaFontColor;
width: 290px;
}
.bio {
height: 70px;
resize:vertical;
}
.social-services-buttons {
.disconnect { display: none; }
&:hover {
.connected { display: none; }
.disconnect { display: inline; }
}
a img {
width: 16px;
height: 16px;
margin-top: -4px;
margin-right: 5px;
}
}
.help-inline {
display: inline-block;
padding-left: 5px;
}
.disabled-email {
cursor: not-allowed;
background-color: @inputDisabledBackground;
}
.edit-user-delete-container {
border-top: 1px solid @mutedBorderColor;
padding-top: 20px;
}
.edit-user-delete-link {
float: right;
color: @buttonDangerBackground;
&:hover {
color: darken(@buttonDangerBackground, 5);
}
}
}
.notification-settings {
margin-top: 20px;
}
.user-edit-username {
width: 202px;
}
#delete-form:not(:target) {
display: none;
}
## Instruction:
Fix margin on settingd page
## Code After:
@import "mixins/mixins";
#edit_user {
img.avatar {
border-radius: 3px;
}
span.help-inline.avatar {
vertical-align:top;
color: @metaFontColor;
width: 290px;
}
.bio {
height: 70px;
resize:vertical;
}
.social-services-buttons {
.disconnect { display: none; }
&:hover {
.connected { display: none; }
.disconnect { display: inline; }
}
a img {
width: 16px;
height: 16px;
margin-top: -4px;
margin-right: 5px;
}
}
.help-inline {
display: inline-block;
padding-left: 5px;
}
.disabled-email {
cursor: not-allowed;
background-color: @inputDisabledBackground;
}
.edit-user-delete-container {
border-top: 1px solid @mutedBorderColor;
padding-top: 20px;
}
.edit-user-delete-link {
float: right;
color: @buttonDangerBackground;
&:hover {
color: darken(@buttonDangerBackground, 5);
}
}
}
.notification-settings {
margin-top: 20px;
}
.user-edit-username {
width: 202px;
}
.edit-user-form {
margin-bottom: 20px;
}
#delete-form:not(:target) {
display: none;
}
| @import "mixins/mixins";
#edit_user {
img.avatar {
border-radius: 3px;
}
span.help-inline.avatar {
vertical-align:top;
color: @metaFontColor;
width: 290px;
}
.bio {
height: 70px;
resize:vertical;
}
.social-services-buttons {
.disconnect { display: none; }
&:hover {
.connected { display: none; }
.disconnect { display: inline; }
}
a img {
width: 16px;
height: 16px;
margin-top: -4px;
margin-right: 5px;
}
}
.help-inline {
display: inline-block;
padding-left: 5px;
}
.disabled-email {
cursor: not-allowed;
background-color: @inputDisabledBackground;
}
.edit-user-delete-container {
border-top: 1px solid @mutedBorderColor;
padding-top: 20px;
}
.edit-user-delete-link {
float: right;
color: @buttonDangerBackground;
&:hover {
color: darken(@buttonDangerBackground, 5);
}
}
}
.notification-settings {
margin-top: 20px;
}
.user-edit-username {
width: 202px;
}
+ .edit-user-form {
+ margin-bottom: 20px;
+ }
+
#delete-form:not(:target) {
display: none;
} | 4 | 0.057971 | 4 | 0 |
a43bd38440d55a91572ab2dec60dd5be42752c7c | doc/settings/environment-variables.md | doc/settings/environment-variables.md |
If necessary you can set custom environment variables to be used by Unicorn,
Sidekiq, Rails and Rake via `/etc/gitlab/gitlab.rb`. This can be useful in
situations where you need to use a proxy to access the internet and you will be
wanting to clone externally hosted repositories directly into gitlab. In
`/etc/gitlab/gitlab.rb` supply a `gitlab_rails['env']` with a hash value. For
example:
```ruby
gitlab_rails['env'] = {"http_proxy" => "my_proxy", "https_proxy" => "my_proxy"}
```
## Applying the changes
Any change made to the environment variables **requires a hard restart** after
reconfigure for it to take effect.
**`Note`**: During a hard restart, your GitLab instance will be down until the
services are back up.
So, after editing `gitlab.rb` file, run the following commands
```shell
sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart
```
|
If necessary you can set custom environment variables to be used by Unicorn,
Sidekiq, Rails and Rake via `/etc/gitlab/gitlab.rb`. This can be useful in
situations where you need to use a proxy to access the internet and you will be
wanting to clone externally hosted repositories directly into gitlab. In
`/etc/gitlab/gitlab.rb` supply a `gitlab_rails['env']` with a hash value. For
example:
```ruby
gitlab_rails['env'] = {
"http_proxy" => "my_proxy",
"https_proxy" => "my_proxy"
}
```
You can also override environment variables from other GitLab components which
might be required if you are behind a proxy:
```ruby
gitlab_workhorse['env'] = {
"http_proxy" => "my_proxy",
"https_proxy" => "my_proxy"
}
# If you use the docker registry
registry['env'] = {
"http_proxy" => "my_proxy",
"https_proxy" => "my_proxy"
}
```
## Applying the changes
Any change made to the environment variables **requires a hard restart** after
reconfigure for it to take effect.
**`Note`**: During a hard restart, your GitLab instance will be down until the
services are back up.
So, after editing `gitlab.rb` file, run the following commands
```shell
sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart
```
| Add a note about overriding other environments on omnibus. | Add a note about overriding other environments on omnibus.
See https://gitlab.com/gitlab-org/gitlab-ce/issues/46968 | Markdown | apache-2.0 | gitlabhq/omnibus-gitlab,gitlabhq/omnibus-gitlab,gitlabhq/omnibus-gitlab,gitlabhq/omnibus-gitlab | markdown | ## Code Before:
If necessary you can set custom environment variables to be used by Unicorn,
Sidekiq, Rails and Rake via `/etc/gitlab/gitlab.rb`. This can be useful in
situations where you need to use a proxy to access the internet and you will be
wanting to clone externally hosted repositories directly into gitlab. In
`/etc/gitlab/gitlab.rb` supply a `gitlab_rails['env']` with a hash value. For
example:
```ruby
gitlab_rails['env'] = {"http_proxy" => "my_proxy", "https_proxy" => "my_proxy"}
```
## Applying the changes
Any change made to the environment variables **requires a hard restart** after
reconfigure for it to take effect.
**`Note`**: During a hard restart, your GitLab instance will be down until the
services are back up.
So, after editing `gitlab.rb` file, run the following commands
```shell
sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart
```
## Instruction:
Add a note about overriding other environments on omnibus.
See https://gitlab.com/gitlab-org/gitlab-ce/issues/46968
## Code After:
If necessary you can set custom environment variables to be used by Unicorn,
Sidekiq, Rails and Rake via `/etc/gitlab/gitlab.rb`. This can be useful in
situations where you need to use a proxy to access the internet and you will be
wanting to clone externally hosted repositories directly into gitlab. In
`/etc/gitlab/gitlab.rb` supply a `gitlab_rails['env']` with a hash value. For
example:
```ruby
gitlab_rails['env'] = {
"http_proxy" => "my_proxy",
"https_proxy" => "my_proxy"
}
```
You can also override environment variables from other GitLab components which
might be required if you are behind a proxy:
```ruby
gitlab_workhorse['env'] = {
"http_proxy" => "my_proxy",
"https_proxy" => "my_proxy"
}
# If you use the docker registry
registry['env'] = {
"http_proxy" => "my_proxy",
"https_proxy" => "my_proxy"
}
```
## Applying the changes
Any change made to the environment variables **requires a hard restart** after
reconfigure for it to take effect.
**`Note`**: During a hard restart, your GitLab instance will be down until the
services are back up.
So, after editing `gitlab.rb` file, run the following commands
```shell
sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart
```
|
If necessary you can set custom environment variables to be used by Unicorn,
Sidekiq, Rails and Rake via `/etc/gitlab/gitlab.rb`. This can be useful in
situations where you need to use a proxy to access the internet and you will be
wanting to clone externally hosted repositories directly into gitlab. In
`/etc/gitlab/gitlab.rb` supply a `gitlab_rails['env']` with a hash value. For
example:
```ruby
- gitlab_rails['env'] = {"http_proxy" => "my_proxy", "https_proxy" => "my_proxy"}
+ gitlab_rails['env'] = {
+ "http_proxy" => "my_proxy",
+ "https_proxy" => "my_proxy"
+ }
+ ```
+
+ You can also override environment variables from other GitLab components which
+ might be required if you are behind a proxy:
+
+ ```ruby
+ gitlab_workhorse['env'] = {
+ "http_proxy" => "my_proxy",
+ "https_proxy" => "my_proxy"
+ }
+
+ # If you use the docker registry
+ registry['env'] = {
+ "http_proxy" => "my_proxy",
+ "https_proxy" => "my_proxy"
+ }
```
## Applying the changes
Any change made to the environment variables **requires a hard restart** after
reconfigure for it to take effect.
**`Note`**: During a hard restart, your GitLab instance will be down until the
services are back up.
So, after editing `gitlab.rb` file, run the following commands
```shell
sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart
``` | 21 | 0.807692 | 20 | 1 |
51167144a5be785042ff15a9435f6ea8c75d6c53 | pages/_app.js | pages/_app.js | import '@/css/tailwind.css'
import '@/css/prism.css'
import { ThemeProvider } from 'next-themes'
import Head from 'next/head'
import siteMetadata from '@/data/siteMetadata'
import Analytics from '@/components/analytics'
import LayoutWrapper from '@/components/LayoutWrapper'
import { ClientReload } from '@/components/ClientReload'
const isDevelopment = process.env.NODE_ENV === 'development'
const isSocket = process.env.SOCKET
export default function App({ Component, pageProps }) {
return (
<ThemeProvider attribute="class" defaultTheme={siteMetadata.theme}>
<Head>
<meta content="width=device-width, initial-scale=1" name="viewport" />
</Head>
{isDevelopment && isSocket && <ClientReload />}
<Analytics />
<LayoutWrapper>
<Component {...pageProps} />
</LayoutWrapper>
</ThemeProvider>
)
}
| import '@/css/tailwind.css'
import '@/css/prism.css'
import { ThemeProvider } from 'next-themes'
import Head from 'next/head'
import moment from 'moment'
import siteMetadata from '@/data/siteMetadata'
import Analytics from '@/components/analytics'
import LayoutWrapper from '@/components/LayoutWrapper'
import { ClientReload } from '@/components/ClientReload'
const isDevelopment = process.env.NODE_ENV === 'development'
const isSocket = process.env.SOCKET
const { version } = require('../package.json')
const build = moment().format('YYYYMMDDHHmmss')
export default function App({ Component, pageProps }) {
return (
<ThemeProvider attribute="class" defaultTheme={siteMetadata.theme}>
<Head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="version" content={version + '.' + build} />
</Head>
{isDevelopment && isSocket && <ClientReload />}
<Analytics />
<LayoutWrapper>
<Component {...pageProps} />
</LayoutWrapper>
</ThemeProvider>
)
}
| Add meta version for build version | Add meta version for build version
| JavaScript | mit | ravuthz/ravuthz.github.io,ravuthz/ravuthz.github.io | javascript | ## Code Before:
import '@/css/tailwind.css'
import '@/css/prism.css'
import { ThemeProvider } from 'next-themes'
import Head from 'next/head'
import siteMetadata from '@/data/siteMetadata'
import Analytics from '@/components/analytics'
import LayoutWrapper from '@/components/LayoutWrapper'
import { ClientReload } from '@/components/ClientReload'
const isDevelopment = process.env.NODE_ENV === 'development'
const isSocket = process.env.SOCKET
export default function App({ Component, pageProps }) {
return (
<ThemeProvider attribute="class" defaultTheme={siteMetadata.theme}>
<Head>
<meta content="width=device-width, initial-scale=1" name="viewport" />
</Head>
{isDevelopment && isSocket && <ClientReload />}
<Analytics />
<LayoutWrapper>
<Component {...pageProps} />
</LayoutWrapper>
</ThemeProvider>
)
}
## Instruction:
Add meta version for build version
## Code After:
import '@/css/tailwind.css'
import '@/css/prism.css'
import { ThemeProvider } from 'next-themes'
import Head from 'next/head'
import moment from 'moment'
import siteMetadata from '@/data/siteMetadata'
import Analytics from '@/components/analytics'
import LayoutWrapper from '@/components/LayoutWrapper'
import { ClientReload } from '@/components/ClientReload'
const isDevelopment = process.env.NODE_ENV === 'development'
const isSocket = process.env.SOCKET
const { version } = require('../package.json')
const build = moment().format('YYYYMMDDHHmmss')
export default function App({ Component, pageProps }) {
return (
<ThemeProvider attribute="class" defaultTheme={siteMetadata.theme}>
<Head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="version" content={version + '.' + build} />
</Head>
{isDevelopment && isSocket && <ClientReload />}
<Analytics />
<LayoutWrapper>
<Component {...pageProps} />
</LayoutWrapper>
</ThemeProvider>
)
}
| import '@/css/tailwind.css'
import '@/css/prism.css'
import { ThemeProvider } from 'next-themes'
import Head from 'next/head'
+ import moment from 'moment'
import siteMetadata from '@/data/siteMetadata'
import Analytics from '@/components/analytics'
import LayoutWrapper from '@/components/LayoutWrapper'
import { ClientReload } from '@/components/ClientReload'
const isDevelopment = process.env.NODE_ENV === 'development'
const isSocket = process.env.SOCKET
+ const { version } = require('../package.json')
+ const build = moment().format('YYYYMMDDHHmmss')
+
export default function App({ Component, pageProps }) {
return (
<ThemeProvider attribute="class" defaultTheme={siteMetadata.theme}>
<Head>
- <meta content="width=device-width, initial-scale=1" name="viewport" />
? ----------------
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
? ++++++++++++++++
+ <meta name="version" content={version + '.' + build} />
</Head>
{isDevelopment && isSocket && <ClientReload />}
<Analytics />
<LayoutWrapper>
<Component {...pageProps} />
</LayoutWrapper>
</ThemeProvider>
)
} | 7 | 0.25 | 6 | 1 |
9c089c0372866ccc31e52b42c5ab41141c02bffb | spec/lib/raml/parser/root_spec.rb | spec/lib/raml/parser/root_spec.rb | require 'raml/parser/root'
require 'yaml'
describe Raml::Parser::Root do
describe '#parse' do
let(:raml) { YAML.load File.read('spec/fixtures/basic.raml') }
subject { Raml::Parser::Root.new.parse(raml) }
it { should be_kind_of Raml::Root }
its('resources.count') { should == 2 }
its('documentation.count') { should == 0 }
its(:uri) { should == 'http://example.api.com/v1' }
its(:version) { should == 'v1' }
context 'trait-inherited attributes' do
subject { Raml::Parser::Root.new.parse(raml).resources.fetch(1).methods.first.query_parameters.first }
its(:name) { should == 'pages' }
its(:description) { should == 'The number of pages to return' }
its(:type) { should == 'number' }
end
context 'non trait-inherited attributes' do
subject { Raml::Parser::Root.new.parse(raml).resources.fetch(1).methods.first.query_parameters.last }
its(:name) { should == 'genre' }
its(:description) { should == 'filter the songs by genre' }
its(:type) { should == nil }
end
end
end
| require 'raml/parser/root'
require 'yaml'
describe Raml::Parser::Root do
describe '#parse' do
let(:raml) { YAML.load File.read('spec/fixtures/basic.raml') }
subject { Raml::Parser::Root.new.parse(raml) }
it { should be_kind_of Raml::Root }
its(:uri) { should == 'http://example.api.com/v1' }
its(:version) { should == 'v1' }
its('resources.count') { should == 2 }
its('resources.first.methods.count') { should == 2 }
its('resources.first.methods.first.responses.count') { should == 1 }
its('resources.first.methods.first.query_parameters.count') { should == 1 }
its('documentation.count') { should == 0 }
context 'trait-inherited attributes' do
subject { Raml::Parser::Root.new.parse(raml).resources.fetch(1).methods.first.query_parameters.first }
its(:name) { should == 'pages' }
its(:description) { should == 'The number of pages to return' }
its(:type) { should == 'number' }
end
context 'non trait-inherited attributes' do
subject { Raml::Parser::Root.new.parse(raml).resources.fetch(1).methods.first.query_parameters.last }
its(:name) { should == 'genre' }
its(:description) { should == 'filter the songs by genre' }
its(:type) { should == nil }
end
end
end
| Clean up root parser specs | Clean up root parser specs
| Ruby | mit | jpb/raml-rb | ruby | ## Code Before:
require 'raml/parser/root'
require 'yaml'
describe Raml::Parser::Root do
describe '#parse' do
let(:raml) { YAML.load File.read('spec/fixtures/basic.raml') }
subject { Raml::Parser::Root.new.parse(raml) }
it { should be_kind_of Raml::Root }
its('resources.count') { should == 2 }
its('documentation.count') { should == 0 }
its(:uri) { should == 'http://example.api.com/v1' }
its(:version) { should == 'v1' }
context 'trait-inherited attributes' do
subject { Raml::Parser::Root.new.parse(raml).resources.fetch(1).methods.first.query_parameters.first }
its(:name) { should == 'pages' }
its(:description) { should == 'The number of pages to return' }
its(:type) { should == 'number' }
end
context 'non trait-inherited attributes' do
subject { Raml::Parser::Root.new.parse(raml).resources.fetch(1).methods.first.query_parameters.last }
its(:name) { should == 'genre' }
its(:description) { should == 'filter the songs by genre' }
its(:type) { should == nil }
end
end
end
## Instruction:
Clean up root parser specs
## Code After:
require 'raml/parser/root'
require 'yaml'
describe Raml::Parser::Root do
describe '#parse' do
let(:raml) { YAML.load File.read('spec/fixtures/basic.raml') }
subject { Raml::Parser::Root.new.parse(raml) }
it { should be_kind_of Raml::Root }
its(:uri) { should == 'http://example.api.com/v1' }
its(:version) { should == 'v1' }
its('resources.count') { should == 2 }
its('resources.first.methods.count') { should == 2 }
its('resources.first.methods.first.responses.count') { should == 1 }
its('resources.first.methods.first.query_parameters.count') { should == 1 }
its('documentation.count') { should == 0 }
context 'trait-inherited attributes' do
subject { Raml::Parser::Root.new.parse(raml).resources.fetch(1).methods.first.query_parameters.first }
its(:name) { should == 'pages' }
its(:description) { should == 'The number of pages to return' }
its(:type) { should == 'number' }
end
context 'non trait-inherited attributes' do
subject { Raml::Parser::Root.new.parse(raml).resources.fetch(1).methods.first.query_parameters.last }
its(:name) { should == 'genre' }
its(:description) { should == 'filter the songs by genre' }
its(:type) { should == nil }
end
end
end
| require 'raml/parser/root'
require 'yaml'
describe Raml::Parser::Root do
describe '#parse' do
let(:raml) { YAML.load File.read('spec/fixtures/basic.raml') }
subject { Raml::Parser::Root.new.parse(raml) }
it { should be_kind_of Raml::Root }
- its('resources.count') { should == 2 }
- its('documentation.count') { should == 0 }
its(:uri) { should == 'http://example.api.com/v1' }
its(:version) { should == 'v1' }
+ its('resources.count') { should == 2 }
+ its('resources.first.methods.count') { should == 2 }
+ its('resources.first.methods.first.responses.count') { should == 1 }
+ its('resources.first.methods.first.query_parameters.count') { should == 1 }
+ its('documentation.count') { should == 0 }
context 'trait-inherited attributes' do
subject { Raml::Parser::Root.new.parse(raml).resources.fetch(1).methods.first.query_parameters.first }
its(:name) { should == 'pages' }
its(:description) { should == 'The number of pages to return' }
its(:type) { should == 'number' }
end
context 'non trait-inherited attributes' do
subject { Raml::Parser::Root.new.parse(raml).resources.fetch(1).methods.first.query_parameters.last }
its(:name) { should == 'genre' }
its(:description) { should == 'filter the songs by genre' }
its(:type) { should == nil }
end
end
end | 7 | 0.225806 | 5 | 2 |
2820a4bc6f95b16b5058e59a9fd514ffd624aaaa | hammerspoon/init.lua | hammerspoon/init.lua | -- Auto-reload configuration if any file inside the hammerspoon directory has changed
hs.pathwatcher.new(os.getenv("HOME") .. "/.hammerspoon/", function()
hs.alert.show('Reloading Hammerspoon configuration...');
hs.reload()
end):start()
-- Bind hotkeys
hs.hotkey.bind({'ctrl', 'alt', 'cmd'}, 'h', function() hs.openConsole() end)
hs.hotkey.bind(nil, 'F18', function() hs.caffeinate.startScreensaver() end)
hs.hotkey.bind({'ctrl'}, 'F18', function() hs.caffeinate.systemSleep() end) | -- Auto-reload configuration if any file inside the hammerspoon directory has changed
hs.pathwatcher.new(os.getenv("HOME") .. "/.hammerspoon/", function()
hs.alert.show('Reloading Hammerspoon configuration...');
hs.reload();
end):start()
-- Include other files in directory
function importFilesInDirectory(directory)
for file in hs.fs.dir(directory) do
if ("." ~= string.sub(file, 0, 1)) then
local filePath = directory .. "/" .. file;
if ("directory" == hs.fs.attributes(filePath, "mode")) then
importFilesInDirectory(filePath);
elseif ("file" == hs.fs.attributes(filePath, "mode")) then
if (".lua" == string.sub(filePath, -4) and "init.lua" ~= file) then
dofile(filePath);
end
end
end
end
end
importFilesInDirectory(os.getenv("HOME") .. "/.hammerspoon");
-- Bind hotkeys
hs.hotkey.bind({'ctrl', 'alt', 'cmd'}, 'h', function() hs.openConsole() end)
hs.hotkey.bind(nil, 'F18', function() hs.caffeinate.startScreensaver() end)
hs.hotkey.bind({'ctrl'}, 'F18', function() hs.caffeinate.systemSleep() end) | Allow separation of lua configurations into distinct files | Allow separation of lua configurations into distinct files | Lua | mit | perdian/dotfiles,perdian/dotfiles,perdian/dotfiles | lua | ## Code Before:
-- Auto-reload configuration if any file inside the hammerspoon directory has changed
hs.pathwatcher.new(os.getenv("HOME") .. "/.hammerspoon/", function()
hs.alert.show('Reloading Hammerspoon configuration...');
hs.reload()
end):start()
-- Bind hotkeys
hs.hotkey.bind({'ctrl', 'alt', 'cmd'}, 'h', function() hs.openConsole() end)
hs.hotkey.bind(nil, 'F18', function() hs.caffeinate.startScreensaver() end)
hs.hotkey.bind({'ctrl'}, 'F18', function() hs.caffeinate.systemSleep() end)
## Instruction:
Allow separation of lua configurations into distinct files
## Code After:
-- Auto-reload configuration if any file inside the hammerspoon directory has changed
hs.pathwatcher.new(os.getenv("HOME") .. "/.hammerspoon/", function()
hs.alert.show('Reloading Hammerspoon configuration...');
hs.reload();
end):start()
-- Include other files in directory
function importFilesInDirectory(directory)
for file in hs.fs.dir(directory) do
if ("." ~= string.sub(file, 0, 1)) then
local filePath = directory .. "/" .. file;
if ("directory" == hs.fs.attributes(filePath, "mode")) then
importFilesInDirectory(filePath);
elseif ("file" == hs.fs.attributes(filePath, "mode")) then
if (".lua" == string.sub(filePath, -4) and "init.lua" ~= file) then
dofile(filePath);
end
end
end
end
end
importFilesInDirectory(os.getenv("HOME") .. "/.hammerspoon");
-- Bind hotkeys
hs.hotkey.bind({'ctrl', 'alt', 'cmd'}, 'h', function() hs.openConsole() end)
hs.hotkey.bind(nil, 'F18', function() hs.caffeinate.startScreensaver() end)
hs.hotkey.bind({'ctrl'}, 'F18', function() hs.caffeinate.systemSleep() end) | -- Auto-reload configuration if any file inside the hammerspoon directory has changed
hs.pathwatcher.new(os.getenv("HOME") .. "/.hammerspoon/", function()
hs.alert.show('Reloading Hammerspoon configuration...');
- hs.reload()
+ hs.reload();
? +
end):start()
+
+ -- Include other files in directory
+ function importFilesInDirectory(directory)
+ for file in hs.fs.dir(directory) do
+ if ("." ~= string.sub(file, 0, 1)) then
+ local filePath = directory .. "/" .. file;
+ if ("directory" == hs.fs.attributes(filePath, "mode")) then
+ importFilesInDirectory(filePath);
+ elseif ("file" == hs.fs.attributes(filePath, "mode")) then
+ if (".lua" == string.sub(filePath, -4) and "init.lua" ~= file) then
+ dofile(filePath);
+ end
+ end
+ end
+ end
+ end
+ importFilesInDirectory(os.getenv("HOME") .. "/.hammerspoon");
+
-- Bind hotkeys
hs.hotkey.bind({'ctrl', 'alt', 'cmd'}, 'h', function() hs.openConsole() end)
hs.hotkey.bind(nil, 'F18', function() hs.caffeinate.startScreensaver() end)
hs.hotkey.bind({'ctrl'}, 'F18', function() hs.caffeinate.systemSleep() end) | 20 | 2 | 19 | 1 |
ceb535f85da4663e291fd61f18dde926f0b4dde2 | server/src/main/resources/create_database.sql | server/src/main/resources/create_database.sql | CREATE DATABASE debtmanager OWNER debtmanager;
USE debtmanager;
CREATE SCHEMA debtmanager;
SET search_path TO debtmanager;
CREATE TABLE users (
id serial PRIMARY KEY,
email varchar(120) UNIQUE,
name varchar(60) NOT NULL,
bank_account numeric(22,0) NOT NULL,
password_hash char(64) NOT NULL
);
CREATE TABLE budgets (
id serial PRIMARY KEY,
owner_id int REFERENCES users(id) NOT NULL,
name varchar(50) NOT NULL,
description varchar(200)
);
CREATE TABLE user_budget (
user_id int REFERENCES users(id),
budget_id int REFERENCES budgets(id)
);
CREATE TABLE payments(
id int PRIMARY KEY,
term date NOT NULL,
budget_id int REFERENCES budgets(id) NOT NULL,
user_id int REFERENCES users(id),
description varchar(200),
amount numeric(6,2) NOT NULL
); | CREATE DATABASE debtmanager OWNER debtmanager;
USE debtmanager;
CREATE SCHEMA debtmanager;
SET search_path TO debtmanager;
CREATE TABLE users (
id serial PRIMARY KEY,
email varchar(120) UNIQUE,
name varchar(60) NOT NULL,
bank_account numeric(22,0) NOT NULL,
password_hash char(64) NOT NULL
);
CREATE TABLE budgets (
id serial PRIMARY KEY,
owner_id int REFERENCES users(id) NOT NULL,
name varchar(50) NOT NULL,
description varchar(200)
);
CREATE TABLE user_budget (
user_id int REFERENCES users(id),
budget_id int REFERENCES budgets(id)
);
CREATE TABLE payments(
id int PRIMARY KEY,
term date NOT NULL,
budget_id int REFERENCES budgets(id) NOT NULL,
user_id int REFERENCES users(id),
description varchar(200),
amount numeric(6,2) NOT NULL,
accounted boolean DEFAULT FALSE
); | Add boolean field 'accounted' to payments | Add boolean field 'accounted' to payments
| SQL | apache-2.0 | byebye/DebtManager,byebye/DebtManager,byebye/DebtManager | sql | ## Code Before:
CREATE DATABASE debtmanager OWNER debtmanager;
USE debtmanager;
CREATE SCHEMA debtmanager;
SET search_path TO debtmanager;
CREATE TABLE users (
id serial PRIMARY KEY,
email varchar(120) UNIQUE,
name varchar(60) NOT NULL,
bank_account numeric(22,0) NOT NULL,
password_hash char(64) NOT NULL
);
CREATE TABLE budgets (
id serial PRIMARY KEY,
owner_id int REFERENCES users(id) NOT NULL,
name varchar(50) NOT NULL,
description varchar(200)
);
CREATE TABLE user_budget (
user_id int REFERENCES users(id),
budget_id int REFERENCES budgets(id)
);
CREATE TABLE payments(
id int PRIMARY KEY,
term date NOT NULL,
budget_id int REFERENCES budgets(id) NOT NULL,
user_id int REFERENCES users(id),
description varchar(200),
amount numeric(6,2) NOT NULL
);
## Instruction:
Add boolean field 'accounted' to payments
## Code After:
CREATE DATABASE debtmanager OWNER debtmanager;
USE debtmanager;
CREATE SCHEMA debtmanager;
SET search_path TO debtmanager;
CREATE TABLE users (
id serial PRIMARY KEY,
email varchar(120) UNIQUE,
name varchar(60) NOT NULL,
bank_account numeric(22,0) NOT NULL,
password_hash char(64) NOT NULL
);
CREATE TABLE budgets (
id serial PRIMARY KEY,
owner_id int REFERENCES users(id) NOT NULL,
name varchar(50) NOT NULL,
description varchar(200)
);
CREATE TABLE user_budget (
user_id int REFERENCES users(id),
budget_id int REFERENCES budgets(id)
);
CREATE TABLE payments(
id int PRIMARY KEY,
term date NOT NULL,
budget_id int REFERENCES budgets(id) NOT NULL,
user_id int REFERENCES users(id),
description varchar(200),
amount numeric(6,2) NOT NULL,
accounted boolean DEFAULT FALSE
); | CREATE DATABASE debtmanager OWNER debtmanager;
USE debtmanager;
CREATE SCHEMA debtmanager;
SET search_path TO debtmanager;
CREATE TABLE users (
id serial PRIMARY KEY,
email varchar(120) UNIQUE,
name varchar(60) NOT NULL,
bank_account numeric(22,0) NOT NULL,
password_hash char(64) NOT NULL
);
CREATE TABLE budgets (
id serial PRIMARY KEY,
owner_id int REFERENCES users(id) NOT NULL,
name varchar(50) NOT NULL,
description varchar(200)
);
CREATE TABLE user_budget (
user_id int REFERENCES users(id),
budget_id int REFERENCES budgets(id)
);
CREATE TABLE payments(
id int PRIMARY KEY,
term date NOT NULL,
budget_id int REFERENCES budgets(id) NOT NULL,
user_id int REFERENCES users(id),
description varchar(200),
- amount numeric(6,2) NOT NULL
+ amount numeric(6,2) NOT NULL,
? +
+ accounted boolean DEFAULT FALSE
); | 3 | 0.088235 | 2 | 1 |
4c88a21dfe8cb3b96634e8a59af5b9f3eb584bc2 | source/_changelogs/4.5.0.md | source/_changelogs/4.5.0.md |
*Released 4/27/2020*
**Features:**
**Bugfixes:**
**Misc:**
|
*Released 4/27/2020*
**Features:**
- Cypress now supports the execution of component tests using framework-specific adaptors when setting the {% url "`experimentalComponentTesting`" configuration#Experiments %} configuration option to `true`. For more details see the {% url "cypress-react-unit-test" https://github.com/bahmutov/cypress-react-unit-test/tree/feature/cypress-mount-mode %} and {% url "cypress-vue-unit-test" https://github.com/bahmutov/cypress-vue-unit-test/tree/feature/cypress-mount-mode %} repos. Addresses {% issue 5922 %} and {% issue 6968 %}.
**Bugfixes:**
- We no longer rerun `before` and `after` hooks of already ran suites upon domain navigation. Fixes {% issue 1987 %} and {% issue 2296 %}.
- {% url "Custom Mocha reporters" reporters %} will now correctly use the version of Mocha bundled with Cypress. Fixes {% issue 3537 %} and {% issue 6984 %}.
**Misc:**
- The update window in the Test Runner now encourages yarn users to `yarn upgrade` Cypress instead of `yarn add` to help prevent installing 2 versions of Cypress when using yarn workspaces. Addressed in {% PR 7101 %}.
- We're continuing to make progress in converting our codebase from CoffeeScript to JavaScript. Addresses {% issue 2690 %} in {% PR 7031 %} and {% PR 7097 %}.
**Dependency Updates:**
- Upgraded `electron` from `8.2.0` to `8.2.3`. Addressed in {% PR 7079 %}.
| Add closed issues/prs to changelog | Add closed issues/prs to changelog
| Markdown | mit | cypress-io/cypress-documentation,cypress-io/cypress-documentation | markdown | ## Code Before:
*Released 4/27/2020*
**Features:**
**Bugfixes:**
**Misc:**
## Instruction:
Add closed issues/prs to changelog
## Code After:
*Released 4/27/2020*
**Features:**
- Cypress now supports the execution of component tests using framework-specific adaptors when setting the {% url "`experimentalComponentTesting`" configuration#Experiments %} configuration option to `true`. For more details see the {% url "cypress-react-unit-test" https://github.com/bahmutov/cypress-react-unit-test/tree/feature/cypress-mount-mode %} and {% url "cypress-vue-unit-test" https://github.com/bahmutov/cypress-vue-unit-test/tree/feature/cypress-mount-mode %} repos. Addresses {% issue 5922 %} and {% issue 6968 %}.
**Bugfixes:**
- We no longer rerun `before` and `after` hooks of already ran suites upon domain navigation. Fixes {% issue 1987 %} and {% issue 2296 %}.
- {% url "Custom Mocha reporters" reporters %} will now correctly use the version of Mocha bundled with Cypress. Fixes {% issue 3537 %} and {% issue 6984 %}.
**Misc:**
- The update window in the Test Runner now encourages yarn users to `yarn upgrade` Cypress instead of `yarn add` to help prevent installing 2 versions of Cypress when using yarn workspaces. Addressed in {% PR 7101 %}.
- We're continuing to make progress in converting our codebase from CoffeeScript to JavaScript. Addresses {% issue 2690 %} in {% PR 7031 %} and {% PR 7097 %}.
**Dependency Updates:**
- Upgraded `electron` from `8.2.0` to `8.2.3`. Addressed in {% PR 7079 %}.
|
*Released 4/27/2020*
**Features:**
+ - Cypress now supports the execution of component tests using framework-specific adaptors when setting the {% url "`experimentalComponentTesting`" configuration#Experiments %} configuration option to `true`. For more details see the {% url "cypress-react-unit-test" https://github.com/bahmutov/cypress-react-unit-test/tree/feature/cypress-mount-mode %} and {% url "cypress-vue-unit-test" https://github.com/bahmutov/cypress-vue-unit-test/tree/feature/cypress-mount-mode %} repos. Addresses {% issue 5922 %} and {% issue 6968 %}.
+
**Bugfixes:**
+ - We no longer rerun `before` and `after` hooks of already ran suites upon domain navigation. Fixes {% issue 1987 %} and {% issue 2296 %}.
+ - {% url "Custom Mocha reporters" reporters %} will now correctly use the version of Mocha bundled with Cypress. Fixes {% issue 3537 %} and {% issue 6984 %}.
+
**Misc:**
+
+ - The update window in the Test Runner now encourages yarn users to `yarn upgrade` Cypress instead of `yarn add` to help prevent installing 2 versions of Cypress when using yarn workspaces. Addressed in {% PR 7101 %}.
+ - We're continuing to make progress in converting our codebase from CoffeeScript to JavaScript. Addresses {% issue 2690 %} in {% PR 7031 %} and {% PR 7097 %}.
+
+ **Dependency Updates:**
+
+ - Upgraded `electron` from `8.2.0` to `8.2.3`. Addressed in {% PR 7079 %}. | 12 | 1.5 | 12 | 0 |
74be2ff61dbeebdfdbdc9aed53748e9e0c0b023f | src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/defaultsite/Resources/public/scss/config/_paths.scss | src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/defaultsite/Resources/public/scss/config/_paths.scss | /* ==========================================================================
Paths
This file is exclusively intended for setting up variables
Never add styles directly to this file
Style guide: https://github.com/necolas/idiomatic-css
========================================================================== */
/* General
========================================================================== */
$root: "/bundles/websitebundle";
$vendor: "../../vendor";
/* Image folders
========================================================================== */
$btns: "#{$root}/img/btns";
$css-bg: "#{$root}/img/css-bg";
$dummy: "#{$root}/img/dummy";
$general: "#{$root}/img/general";
$icons: "#{$root}/img/icons";
/* Icon folders
========================================================================== */
// Cupcake
$cupcake-iconfont-url: "#{$vendor}/cupcake/icons/fonts";
// Bootstrap
$iconSpritePath: "#{$vendor}/sass-bootstrap/img/glyphicons-halflings.png";
$iconWhiteSpritePath: "#{$vendor}/sass-bootstrap/img/glyphicons-halflings.png";
| /* ==========================================================================
Paths
This file is exclusively intended for setting up variables
Never add styles directly to this file
Style guide: https://github.com/necolas/idiomatic-css
========================================================================== */
/* General
========================================================================== */
$root: "/bundles/websitebundle";
$vendor: "../../vendor";
/* Image folders
========================================================================== */
$backgrounds: "#{$root}/img/backgrounds";
$buttons: "#{$root}/img/buttons";
$dummy: "#{$root}/img/dummy";
$general: "#{$root}/img/general";
$icons: "#{$root}/img/icons";
/* Icon folders
========================================================================== */
// Cupcake
$cupcake-iconfont-url: "#{$vendor}/cupcake/icons/fonts";
// Bootstrap
$iconSpritePath: "#{$vendor}/sass-bootstrap/img/glyphicons-halflings.png";
$iconWhiteSpritePath: "#{$vendor}/sass-bootstrap/img/glyphicons-halflings.png";
| Adjust vars image folders to new names | Adjust vars image folders to new names
| SCSS | mit | umeku/KunstmaanBundlesCMS,bakie/KunstmaanBundlesCMS,usetreno/KunstmaanBundlesCMS,bakie/KunstmaanBundlesCMS,Devolicious/KunstmaanBundlesCMS,piotrbelina/KunstmaanBundlesCMS,bureaublauwgeel/KunstmaanBundlesCMS,arneruy/KunstmaanBundlesCMS,fchris82/KunstmaanBundlesCMS,tentwofour/KunstmaanBundlesCMS,wame/KunstmaanBundlesCMS,jverdeyen/KunstmaanBundlesCMS,mennowame/KunstmaanBundlesCMS,webtown-php/KunstmaanBundlesCMS,IbeVanmeenen/KunstmaanBundlesCMS,Numkil/KunstmaanBundlesCMS,insiders/KunstmaanBundlesCMS,Sambego/KunstmaanBundlesCMS,hgabka/KunstmaanBundlesCMS,Numkil/KunstmaanBundlesCMS,mwoynarski/KunstmaanBundlesCMS,dbeerten/KunstmaanBundlesCMS,Devolicious/KunstmaanBundlesCMS,wimvds/KunstmaanBundlesCMS,BranchBit/KunstmaanBundlesCMS,bureaublauwgeel/KunstmaanBundlesCMS,mlebkowski/KunstmaanBundlesCMS,sandergo90/KunstmaanBundlesCMS,kimausloos/KunstmaanBundlesCMS,mennowame/KunstmaanBundlesCMS,umeku/KunstmaanBundlesCMS,jverdeyen/KunstmaanBundlesCMS,bureaublauwgeel/KunstmaanBundlesCMS,kln3wrld/KunstmaanBundlesCMS,fchris82/KunstmaanBundlesCMS,kimausloos/KunstmaanBundlesCMS,iBenito/KunstmaanBundlesCMS,IbeVanmeenen/KunstmaanBundlesCMS,jverdeyen/KunstmaanBundlesCMS,tentwofour/KunstmaanBundlesCMS,mennowame/KunstmaanBundlesCMS,wame/KunstmaanBundlesCMS,BranchBit/KunstmaanBundlesCMS,jverdeyen-forks/KunstmaanBundlesCMS,usetreno/KunstmaanBundlesCMS,bakie/KunstmaanBundlesCMS,mwoynarski/KunstmaanBundlesCMS,Kunstmaan/KunstmaanBundlesCMS,insiders/KunstmaanBundlesCMS,webtown-php/KunstmaanBundlesCMS,piotrbelina/KunstmaanBundlesCMS,FVKVN/KunstmaanBundlesCMS,tarjei/KunstmaanBundlesCMS,wimvds/KunstmaanBundlesCMS,Devolicious/KunstmaanBundlesCMS,usetreno/KunstmaanBundlesCMS,IbeVanmeenen/KunstmaanBundlesCMS,virtualize/KunstmaanBundlesCMS,mwoynarski/KunstmaanBundlesCMS,zizooboats/KunstmaanBundlesCMS,Numkil/KunstmaanBundlesCMS,roderik/KunstmaanBundlesCMS,mennowame/KunstmaanBundlesCMS,jockri/KunstmaanBundlesCMS,arsthanea/KunstmaanBundlesCMS,roderik/KunstmaanBundlesCMS,kimausloos/KunstmaanBundlesCMS,JoakimLofgren/KunstmaanBundlesCMS,treeleaf/KunstmaanBundlesCMS,joker806/KunstmaanBundlesCMS,jverdeyen-forks/KunstmaanBundlesCMS,hgabka/KunstmaanBundlesCMS,webtown-php/KunstmaanBundlesCMS,joker806/KunstmaanBundlesCMS,arsthanea/KunstmaanBundlesCMS,piotrbelina/KunstmaanBundlesCMS,krispypen/KunstmaanBundlesCMS,mlebkowski/KunstmaanBundlesCMS,jverdeyen-forks/KunstmaanBundlesCMS,fchris82/KunstmaanBundlesCMS,FVKVN/KunstmaanBundlesCMS,Amrit01/KunstmaanBundlesCMS,sandergo90/KunstmaanBundlesCMS,FVKVN/KunstmaanBundlesCMS,Sambego/KunstmaanBundlesCMS,JoakimLofgren/KunstmaanBundlesCMS,jverdeyen-forks/KunstmaanBundlesCMS,piotrbelina/KunstmaanBundlesCMS,bakie/KunstmaanBundlesCMS,sandergo90/KunstmaanBundlesCMS,iBenito/KunstmaanBundlesCMS,dbeerten/KunstmaanBundlesCMS,arneruy/KunstmaanBundlesCMS,krispypen/KunstmaanBundlesCMS,umeku/KunstmaanBundlesCMS,zizooboats/KunstmaanBundlesCMS,JoakimLofgren/KunstmaanBundlesCMS,woutervandamme/KunstmaanBundlesCMS,virtualize/KunstmaanBundlesCMS,wame/KunstmaanBundlesCMS,treeleaf/KunstmaanBundlesCMS,tarjei/KunstmaanBundlesCMS,hgabka/KunstmaanBundlesCMS,kln3wrld/KunstmaanBundlesCMS,insiders/KunstmaanBundlesCMS,arneruy/KunstmaanBundlesCMS,woutervandamme/KunstmaanBundlesCMS,diskwriter/KunstmaanBundlesCMS,Devolicious/KunstmaanBundlesCMS,insiders/KunstmaanBundlesCMS,mlebkowski/KunstmaanBundlesCMS,Sambego/KunstmaanBundlesCMS,jockri/KunstmaanBundlesCMS,BranchBit/KunstmaanBundlesCMS,umeku/KunstmaanBundlesCMS,diskwriter/KunstmaanBundlesCMS,kimausloos/KunstmaanBundlesCMS,Kunstmaan/KunstmaanBundlesCMS,zizooboats/KunstmaanBundlesCMS,roderik/KunstmaanBundlesCMS,kln3wrld/KunstmaanBundlesCMS,woutervandamme/KunstmaanBundlesCMS,mlebkowski/KunstmaanBundlesCMS,JoakimLofgren/KunstmaanBundlesCMS,wesleylancel/KunstmaanBundlesCMS,dbeerten/KunstmaanBundlesCMS,virtualize/KunstmaanBundlesCMS,arneruy/KunstmaanBundlesCMS,wesleylancel/KunstmaanBundlesCMS,hgabka/KunstmaanBundlesCMS,jockri/KunstmaanBundlesCMS,webtown-php/KunstmaanBundlesCMS,Amrit01/KunstmaanBundlesCMS,Numkil/KunstmaanBundlesCMS,tarjei/KunstmaanBundlesCMS,wimvds/KunstmaanBundlesCMS,tentwofour/KunstmaanBundlesCMS,FVKVN/KunstmaanBundlesCMS,Amrit01/KunstmaanBundlesCMS,kln3wrld/KunstmaanBundlesCMS,IbeVanmeenen/KunstmaanBundlesCMS,BranchBit/KunstmaanBundlesCMS,diskwriter/KunstmaanBundlesCMS,IbeVanmeenen/KunstmaanBundlesCMS,krispypen/KunstmaanBundlesCMS,usetreno/KunstmaanBundlesCMS,iBenito/KunstmaanBundlesCMS,sandergo90/KunstmaanBundlesCMS,diskwriter/KunstmaanBundlesCMS,hgabka/KunstmaanBundlesCMS,woutervandamme/KunstmaanBundlesCMS,mennowame/KunstmaanBundlesCMS,arneruy/KunstmaanBundlesCMS,treeleaf/KunstmaanBundlesCMS,Kunstmaan/KunstmaanBundlesCMS,bureaublauwgeel/KunstmaanBundlesCMS,jockri/KunstmaanBundlesCMS,Kunstmaan/KunstmaanBundlesCMS,woutervandamme/KunstmaanBundlesCMS,tentwofour/KunstmaanBundlesCMS,virtualize/KunstmaanBundlesCMS,wame/KunstmaanBundlesCMS,jverdeyen/KunstmaanBundlesCMS,joker806/KunstmaanBundlesCMS,roderik/KunstmaanBundlesCMS,dbeerten/KunstmaanBundlesCMS,umeku/KunstmaanBundlesCMS,iBenito/KunstmaanBundlesCMS,treeleaf/KunstmaanBundlesCMS,webtown-php/KunstmaanBundlesCMS,arsthanea/KunstmaanBundlesCMS,wesleylancel/KunstmaanBundlesCMS,wesleylancel/KunstmaanBundlesCMS,bureaublauwgeel/KunstmaanBundlesCMS,wimvds/KunstmaanBundlesCMS,fchris82/KunstmaanBundlesCMS,joker806/KunstmaanBundlesCMS,Sambego/KunstmaanBundlesCMS,tarjei/KunstmaanBundlesCMS,arsthanea/KunstmaanBundlesCMS,kln3wrld/KunstmaanBundlesCMS,mwoynarski/KunstmaanBundlesCMS,zizooboats/KunstmaanBundlesCMS,krispypen/KunstmaanBundlesCMS,Amrit01/KunstmaanBundlesCMS | scss | ## Code Before:
/* ==========================================================================
Paths
This file is exclusively intended for setting up variables
Never add styles directly to this file
Style guide: https://github.com/necolas/idiomatic-css
========================================================================== */
/* General
========================================================================== */
$root: "/bundles/websitebundle";
$vendor: "../../vendor";
/* Image folders
========================================================================== */
$btns: "#{$root}/img/btns";
$css-bg: "#{$root}/img/css-bg";
$dummy: "#{$root}/img/dummy";
$general: "#{$root}/img/general";
$icons: "#{$root}/img/icons";
/* Icon folders
========================================================================== */
// Cupcake
$cupcake-iconfont-url: "#{$vendor}/cupcake/icons/fonts";
// Bootstrap
$iconSpritePath: "#{$vendor}/sass-bootstrap/img/glyphicons-halflings.png";
$iconWhiteSpritePath: "#{$vendor}/sass-bootstrap/img/glyphicons-halflings.png";
## Instruction:
Adjust vars image folders to new names
## Code After:
/* ==========================================================================
Paths
This file is exclusively intended for setting up variables
Never add styles directly to this file
Style guide: https://github.com/necolas/idiomatic-css
========================================================================== */
/* General
========================================================================== */
$root: "/bundles/websitebundle";
$vendor: "../../vendor";
/* Image folders
========================================================================== */
$backgrounds: "#{$root}/img/backgrounds";
$buttons: "#{$root}/img/buttons";
$dummy: "#{$root}/img/dummy";
$general: "#{$root}/img/general";
$icons: "#{$root}/img/icons";
/* Icon folders
========================================================================== */
// Cupcake
$cupcake-iconfont-url: "#{$vendor}/cupcake/icons/fonts";
// Bootstrap
$iconSpritePath: "#{$vendor}/sass-bootstrap/img/glyphicons-halflings.png";
$iconWhiteSpritePath: "#{$vendor}/sass-bootstrap/img/glyphicons-halflings.png";
| /* ==========================================================================
Paths
This file is exclusively intended for setting up variables
Never add styles directly to this file
Style guide: https://github.com/necolas/idiomatic-css
========================================================================== */
/* General
========================================================================== */
$root: "/bundles/websitebundle";
$vendor: "../../vendor";
/* Image folders
========================================================================== */
+ $backgrounds: "#{$root}/img/backgrounds";
- $btns: "#{$root}/img/btns";
? ---
+ $buttons: "#{$root}/img/buttons";
? + ++ + ++
- $css-bg: "#{$root}/img/css-bg";
$dummy: "#{$root}/img/dummy";
$general: "#{$root}/img/general";
$icons: "#{$root}/img/icons";
/* Icon folders
========================================================================== */
// Cupcake
$cupcake-iconfont-url: "#{$vendor}/cupcake/icons/fonts";
// Bootstrap
$iconSpritePath: "#{$vendor}/sass-bootstrap/img/glyphicons-halflings.png";
$iconWhiteSpritePath: "#{$vendor}/sass-bootstrap/img/glyphicons-halflings.png"; | 4 | 0.121212 | 2 | 2 |
7b1b6552641b08f9fa8660599016d186960fe89f | papermill/launch_rt_prediction.sh | papermill/launch_rt_prediction.sh | set -euf -o pipefail
if [ "$#" -ne 3 ]; then
echo "Usage $0: experiment_name analysis_number project_directory"
exit 0
fi
EXP="$1"
ANALYSIS_NUM="$2"
PROJECT_DIR="$3"
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
REPO_DIR="$(dirname "$SCRIPT_DIR")"
EXP_DIR="${PROJECT_DIR}/$EXP"
ANALYSIS_DIR="${EXP_DIR}/${USER}${ANALYSIS_NUM}"
IFS='_' read -ra TOKENS <<< "$EXP"
PROPOSAL="${TOKENS[3]}"
export IN_FILE="${REPO_DIR}/notebooks/reference/RT_Prediction.ipynb"
export OUT_FILE="${ANALYSIS_DIR}/${PROPOSAL}_RT_Prediction_papermill.ipynb"
export PARAMETERS="-p experiment $EXP -p metatlas_repo_path $REPO_DIR -p project_directory $PROJECT_DIR -p max_cpus 32 -p analysis_number $ANALYSIS_NUM"
mkdir -p "$ANALYSIS_DIR"
sbatch -J "${PROPOSAL}_RT_Pred" "${REPO_DIR}/papermill/slurm_template.sh"
| set -euf -o pipefail
if [ "$#" -ne 3 ]; then
echo "Usage $0: experiment_name analysis_number project_directory"
exit 0
fi
EXP="$1"
ANALYSIS_NUM="$2"
PROJECT_DIR="$3"
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
REPO_DIR="$(dirname "$SCRIPT_DIR")"
EXP_DIR="${PROJECT_DIR}/$EXP"
ANALYSIS_DIR="${EXP_DIR}/${USER}${ANALYSIS_NUM}"
KERNEL_SOURCE="${SCRIPT_DIR}/notebooks/kernels/metatlas-targeted.kernel.json"
KERNEL_DESTINATION="${HOME}/.local/share/jupyter/kernels/metatlas-targeted/kernel.json"
IFS='_' read -ra TOKENS <<< "$EXP"
PROPOSAL="${TOKENS[3]}"
export IN_FILE="${REPO_DIR}/notebooks/reference/RT_Prediction.ipynb"
export OUT_FILE="${ANALYSIS_DIR}/${PROPOSAL}_RT_Prediction_papermill.ipynb"
export PARAMETERS="-p experiment $EXP -p metatlas_repo_path $REPO_DIR -p project_directory $PROJECT_DIR -p max_cpus 32 -p analysis_number $ANALYSIS_NUM"
mkdir -p "${HOME}/.local/share/jupyter/kernels/metatlas-targeted"
cp "$KERNEL_SOURCE" "$KERNEL_DESTINATION"
mkdir -p "$ANALYSIS_DIR"
sbatch -J "${PROPOSAL}_RT_Pred" "${REPO_DIR}/papermill/slurm_template.sh"
| Install kernel in RT adjust slurm script | Install kernel in RT adjust slurm script
| Shell | bsd-3-clause | biorack/metatlas,biorack/metatlas | shell | ## Code Before:
set -euf -o pipefail
if [ "$#" -ne 3 ]; then
echo "Usage $0: experiment_name analysis_number project_directory"
exit 0
fi
EXP="$1"
ANALYSIS_NUM="$2"
PROJECT_DIR="$3"
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
REPO_DIR="$(dirname "$SCRIPT_DIR")"
EXP_DIR="${PROJECT_DIR}/$EXP"
ANALYSIS_DIR="${EXP_DIR}/${USER}${ANALYSIS_NUM}"
IFS='_' read -ra TOKENS <<< "$EXP"
PROPOSAL="${TOKENS[3]}"
export IN_FILE="${REPO_DIR}/notebooks/reference/RT_Prediction.ipynb"
export OUT_FILE="${ANALYSIS_DIR}/${PROPOSAL}_RT_Prediction_papermill.ipynb"
export PARAMETERS="-p experiment $EXP -p metatlas_repo_path $REPO_DIR -p project_directory $PROJECT_DIR -p max_cpus 32 -p analysis_number $ANALYSIS_NUM"
mkdir -p "$ANALYSIS_DIR"
sbatch -J "${PROPOSAL}_RT_Pred" "${REPO_DIR}/papermill/slurm_template.sh"
## Instruction:
Install kernel in RT adjust slurm script
## Code After:
set -euf -o pipefail
if [ "$#" -ne 3 ]; then
echo "Usage $0: experiment_name analysis_number project_directory"
exit 0
fi
EXP="$1"
ANALYSIS_NUM="$2"
PROJECT_DIR="$3"
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
REPO_DIR="$(dirname "$SCRIPT_DIR")"
EXP_DIR="${PROJECT_DIR}/$EXP"
ANALYSIS_DIR="${EXP_DIR}/${USER}${ANALYSIS_NUM}"
KERNEL_SOURCE="${SCRIPT_DIR}/notebooks/kernels/metatlas-targeted.kernel.json"
KERNEL_DESTINATION="${HOME}/.local/share/jupyter/kernels/metatlas-targeted/kernel.json"
IFS='_' read -ra TOKENS <<< "$EXP"
PROPOSAL="${TOKENS[3]}"
export IN_FILE="${REPO_DIR}/notebooks/reference/RT_Prediction.ipynb"
export OUT_FILE="${ANALYSIS_DIR}/${PROPOSAL}_RT_Prediction_papermill.ipynb"
export PARAMETERS="-p experiment $EXP -p metatlas_repo_path $REPO_DIR -p project_directory $PROJECT_DIR -p max_cpus 32 -p analysis_number $ANALYSIS_NUM"
mkdir -p "${HOME}/.local/share/jupyter/kernels/metatlas-targeted"
cp "$KERNEL_SOURCE" "$KERNEL_DESTINATION"
mkdir -p "$ANALYSIS_DIR"
sbatch -J "${PROPOSAL}_RT_Pred" "${REPO_DIR}/papermill/slurm_template.sh"
| set -euf -o pipefail
if [ "$#" -ne 3 ]; then
echo "Usage $0: experiment_name analysis_number project_directory"
exit 0
fi
EXP="$1"
ANALYSIS_NUM="$2"
PROJECT_DIR="$3"
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
REPO_DIR="$(dirname "$SCRIPT_DIR")"
EXP_DIR="${PROJECT_DIR}/$EXP"
ANALYSIS_DIR="${EXP_DIR}/${USER}${ANALYSIS_NUM}"
+ KERNEL_SOURCE="${SCRIPT_DIR}/notebooks/kernels/metatlas-targeted.kernel.json"
+ KERNEL_DESTINATION="${HOME}/.local/share/jupyter/kernels/metatlas-targeted/kernel.json"
IFS='_' read -ra TOKENS <<< "$EXP"
PROPOSAL="${TOKENS[3]}"
export IN_FILE="${REPO_DIR}/notebooks/reference/RT_Prediction.ipynb"
export OUT_FILE="${ANALYSIS_DIR}/${PROPOSAL}_RT_Prediction_papermill.ipynb"
export PARAMETERS="-p experiment $EXP -p metatlas_repo_path $REPO_DIR -p project_directory $PROJECT_DIR -p max_cpus 32 -p analysis_number $ANALYSIS_NUM"
+ mkdir -p "${HOME}/.local/share/jupyter/kernels/metatlas-targeted"
+ cp "$KERNEL_SOURCE" "$KERNEL_DESTINATION"
+
mkdir -p "$ANALYSIS_DIR"
sbatch -J "${PROPOSAL}_RT_Pred" "${REPO_DIR}/papermill/slurm_template.sh" | 5 | 0.2 | 5 | 0 |
b30395721db7a20f002ec5b08df8f58894064c32 | README.md | README.md | The software engineering commentator
Run `npm install to set it up`.
Then edit the `config.json` and `phrases.json` files to your liking and configurations!
Then simply run `npm start`!
|
Run `npm install` to set it up.
Then edit the `config.json` and `phrases.json` files to your liking and configurations!
Then simply run `npm start`! | Add description tagline to readme. | Add description tagline to readme.
| Markdown | mit | thebigredgeek/Bruno | markdown | ## Code Before:
The software engineering commentator
Run `npm install to set it up`.
Then edit the `config.json` and `phrases.json` files to your liking and configurations!
Then simply run `npm start`!
## Instruction:
Add description tagline to readme.
## Code After:
Run `npm install` to set it up.
Then edit the `config.json` and `phrases.json` files to your liking and configurations!
Then simply run `npm start`! | - The software engineering commentator
- Run `npm install to set it up`.
? -
+ Run `npm install` to set it up.
? +
Then edit the `config.json` and `phrases.json` files to your liking and configurations!
Then simply run `npm start`! | 3 | 0.428571 | 1 | 2 |
19adf24d6e9fe2cbcf5ebd9dab67900073c61d66 | themes/modern/components/navigation/nav_item.php | themes/modern/components/navigation/nav_item.php | <?php
// Get sub-categories
$cats2 = (new \FelixOnline\Core\CategoryManager())
->filter('hidden = 0')
->filter('active = 1');
if(!$currentuser->isLoggedIn()) {
$cats2->filter('secret = 0');
}
$cats2 = $cats2->filter('id > 0')
->filter('parent = %i', array($item->getId()))
->order('order', 'ASC')
->values();
$active = false;
if(isset($check) && $check == $item->getCat()) {
$active = true;
}
foreach($parents as $parent) {
if($parent->getCat() == $item->getCat()) {
$active = true;
}
}
?>
<li class="<?php if($active) echo 'active '; if(!is_null($cats2)) echo 'has-dropdown'; ?>">
<a href="<?php echo STANDARD_URL.$item->getCat(); ?>/">
<?php echo $item->getLabel(); ?>
</a>
<?php
if(!is_null($cats2)) {
echo '<ul class="dropdown">';
foreach($cats2 as $sub_category) {
$theme->render('components/navigation/nav_item', array('item' => $sub_category));
}
echo '</ul>';
}
?>
</li> | <?php
// Get sub-categories
$cats2 = (new \FelixOnline\Core\CategoryManager())
->filter('hidden = 0')
->filter('active = 1');
if(!$currentuser->isLoggedIn()) {
$cats2->filter('secret = 0');
}
$cats2 = $cats2->filter('id > 0')
->filter('parent = %i', array($item->getId()))
->order('order', 'ASC')
->values();
$active = false;
if(isset($check) && $check == $item->getCat()) {
$active = true;
}
foreach($parents as $parent) {
if($parent->getCat() == $item->getCat()) {
$active = true;
}
}
?>
<li class="<?php if($active) echo 'active '; if(!is_null($cats2)) echo 'has-dropdown'; ?>">
<a href="<?php echo $item->getURL(); ?>">
<?php echo $item->getLabel(); ?>
</a>
<?php
if(!is_null($cats2)) {
echo '<ul class="dropdown">';
foreach($cats2 as $sub_category) {
$theme->render('components/navigation/nav_item', array('item' => $sub_category));
}
echo '</ul>';
}
?>
</li> | Fix URLS in nav bar | Fix URLS in nav bar
| PHP | mit | FelixOnline/FelixOnline,FelixOnline/FelixOnline,FelixOnline/FelixOnline | php | ## Code Before:
<?php
// Get sub-categories
$cats2 = (new \FelixOnline\Core\CategoryManager())
->filter('hidden = 0')
->filter('active = 1');
if(!$currentuser->isLoggedIn()) {
$cats2->filter('secret = 0');
}
$cats2 = $cats2->filter('id > 0')
->filter('parent = %i', array($item->getId()))
->order('order', 'ASC')
->values();
$active = false;
if(isset($check) && $check == $item->getCat()) {
$active = true;
}
foreach($parents as $parent) {
if($parent->getCat() == $item->getCat()) {
$active = true;
}
}
?>
<li class="<?php if($active) echo 'active '; if(!is_null($cats2)) echo 'has-dropdown'; ?>">
<a href="<?php echo STANDARD_URL.$item->getCat(); ?>/">
<?php echo $item->getLabel(); ?>
</a>
<?php
if(!is_null($cats2)) {
echo '<ul class="dropdown">';
foreach($cats2 as $sub_category) {
$theme->render('components/navigation/nav_item', array('item' => $sub_category));
}
echo '</ul>';
}
?>
</li>
## Instruction:
Fix URLS in nav bar
## Code After:
<?php
// Get sub-categories
$cats2 = (new \FelixOnline\Core\CategoryManager())
->filter('hidden = 0')
->filter('active = 1');
if(!$currentuser->isLoggedIn()) {
$cats2->filter('secret = 0');
}
$cats2 = $cats2->filter('id > 0')
->filter('parent = %i', array($item->getId()))
->order('order', 'ASC')
->values();
$active = false;
if(isset($check) && $check == $item->getCat()) {
$active = true;
}
foreach($parents as $parent) {
if($parent->getCat() == $item->getCat()) {
$active = true;
}
}
?>
<li class="<?php if($active) echo 'active '; if(!is_null($cats2)) echo 'has-dropdown'; ?>">
<a href="<?php echo $item->getURL(); ?>">
<?php echo $item->getLabel(); ?>
</a>
<?php
if(!is_null($cats2)) {
echo '<ul class="dropdown">';
foreach($cats2 as $sub_category) {
$theme->render('components/navigation/nav_item', array('item' => $sub_category));
}
echo '</ul>';
}
?>
</li> | <?php
// Get sub-categories
$cats2 = (new \FelixOnline\Core\CategoryManager())
->filter('hidden = 0')
->filter('active = 1');
if(!$currentuser->isLoggedIn()) {
$cats2->filter('secret = 0');
}
$cats2 = $cats2->filter('id > 0')
->filter('parent = %i', array($item->getId()))
->order('order', 'ASC')
->values();
$active = false;
if(isset($check) && $check == $item->getCat()) {
$active = true;
}
foreach($parents as $parent) {
if($parent->getCat() == $item->getCat()) {
$active = true;
}
}
?>
<li class="<?php if($active) echo 'active '; if(!is_null($cats2)) echo 'has-dropdown'; ?>">
- <a href="<?php echo STANDARD_URL.$item->getCat(); ?>/">
? ------------- ^^^ -
+ <a href="<?php echo $item->getURL(); ?>">
? ^^^
<?php echo $item->getLabel(); ?>
</a>
<?php
if(!is_null($cats2)) {
echo '<ul class="dropdown">';
foreach($cats2 as $sub_category) {
$theme->render('components/navigation/nav_item', array('item' => $sub_category));
}
echo '</ul>';
}
?>
</li> | 2 | 0.04878 | 1 | 1 |
0071313ad8c4a08286eb0be159a9cea10e290f32 | Package.swift | Package.swift | import PackageDescription
var package = Package(
name: "MongoKitten",
targets: [
Target(name: "GeoJSON"),
Target(name: "MongoSocket"),
Target(name: "ExtendedJSON"),
Target(name: "MongoKitten", dependencies: ["GeoJSON", "MongoSocket", "ExtendedJSON"])
],
dependencies: [
// For MongoDB Documents
.Package(url: "https://github.com/OpenKitten/BSON.git", majorVersion: 5),
// For ExtendedJSON support
.Package(url: "https://github.com/OpenKitten/Cheetah.git", majorVersion: 1),
// Authentication
.Package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", Version(0,6,9)),
// Asynchronous behaviour
.Package(url: "https://github.com/OpenKitten/Schrodinger.git", majorVersion: 1),
]
)
// Provides Sockets + SSL
#if !os(macOS) && !os(iOS)
package.dependencies.append(.Package(url: "https://github.com/OpenKitten/KittenCTLS.git", majorVersion: 1))
#endif
| import PackageDescription
var package = Package(
name: "MongoKitten",
targets: [
Target(name: "GeoJSON"),
Target(name: "MongoSocket"),
Target(name: "ExtendedJSON"),
Target(name: "MongoKitten", dependencies: ["GeoJSON", "MongoSocket", "ExtendedJSON"])
],
dependencies: [
// For MongoDB Documents
.Package(url: "https://github.com/OpenKitten/BSON.git", majorVersion: 5),
// For ExtendedJSON support
.Package(url: "https://github.com/OpenKitten/Cheetah.git", majorVersion: 1),
// Authentication
.Package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", Version(0, 6, 9) ..< Version(0, 7, 0)),
// Asynchronous behaviour
.Package(url: "https://github.com/OpenKitten/Schrodinger.git", majorVersion: 1),
]
)
// Provides Sockets + SSL
#if !os(macOS) && !os(iOS)
package.dependencies.append(.Package(url: "https://github.com/OpenKitten/KittenCTLS.git", majorVersion: 1))
#endif
| Allow other (future) CryptoSwift versions. We want 0.6.9 for performance | Allow other (future) CryptoSwift versions. We want 0.6.9 for performance
| Swift | mit | PlanTeam/MongoKitten,PlanTeam/MongoKitten,OpenKitten/MongoKitten,OpenKitten/MongoKitten | swift | ## Code Before:
import PackageDescription
var package = Package(
name: "MongoKitten",
targets: [
Target(name: "GeoJSON"),
Target(name: "MongoSocket"),
Target(name: "ExtendedJSON"),
Target(name: "MongoKitten", dependencies: ["GeoJSON", "MongoSocket", "ExtendedJSON"])
],
dependencies: [
// For MongoDB Documents
.Package(url: "https://github.com/OpenKitten/BSON.git", majorVersion: 5),
// For ExtendedJSON support
.Package(url: "https://github.com/OpenKitten/Cheetah.git", majorVersion: 1),
// Authentication
.Package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", Version(0,6,9)),
// Asynchronous behaviour
.Package(url: "https://github.com/OpenKitten/Schrodinger.git", majorVersion: 1),
]
)
// Provides Sockets + SSL
#if !os(macOS) && !os(iOS)
package.dependencies.append(.Package(url: "https://github.com/OpenKitten/KittenCTLS.git", majorVersion: 1))
#endif
## Instruction:
Allow other (future) CryptoSwift versions. We want 0.6.9 for performance
## Code After:
import PackageDescription
var package = Package(
name: "MongoKitten",
targets: [
Target(name: "GeoJSON"),
Target(name: "MongoSocket"),
Target(name: "ExtendedJSON"),
Target(name: "MongoKitten", dependencies: ["GeoJSON", "MongoSocket", "ExtendedJSON"])
],
dependencies: [
// For MongoDB Documents
.Package(url: "https://github.com/OpenKitten/BSON.git", majorVersion: 5),
// For ExtendedJSON support
.Package(url: "https://github.com/OpenKitten/Cheetah.git", majorVersion: 1),
// Authentication
.Package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", Version(0, 6, 9) ..< Version(0, 7, 0)),
// Asynchronous behaviour
.Package(url: "https://github.com/OpenKitten/Schrodinger.git", majorVersion: 1),
]
)
// Provides Sockets + SSL
#if !os(macOS) && !os(iOS)
package.dependencies.append(.Package(url: "https://github.com/OpenKitten/KittenCTLS.git", majorVersion: 1))
#endif
| import PackageDescription
var package = Package(
name: "MongoKitten",
targets: [
Target(name: "GeoJSON"),
Target(name: "MongoSocket"),
Target(name: "ExtendedJSON"),
Target(name: "MongoKitten", dependencies: ["GeoJSON", "MongoSocket", "ExtendedJSON"])
],
dependencies: [
// For MongoDB Documents
.Package(url: "https://github.com/OpenKitten/BSON.git", majorVersion: 5),
// For ExtendedJSON support
.Package(url: "https://github.com/OpenKitten/Cheetah.git", majorVersion: 1),
// Authentication
- .Package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", Version(0,6,9)),
+ .Package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", Version(0, 6, 9) ..< Version(0, 7, 0)),
? + + +++++++++++++++++++++
// Asynchronous behaviour
.Package(url: "https://github.com/OpenKitten/Schrodinger.git", majorVersion: 1),
]
)
// Provides Sockets + SSL
#if !os(macOS) && !os(iOS)
package.dependencies.append(.Package(url: "https://github.com/OpenKitten/KittenCTLS.git", majorVersion: 1))
#endif | 2 | 0.068966 | 1 | 1 |
54d9f31e9e9d2ed4809a630dd6a807ed21b753ff | bower.json | bower.json | {
"name": "ng-a11y",
"version": "0.0.8",
"main": [
"./src/nga11yannounce.js",
"./src/nga11yforms.js",
"./src/nga11ymodal.js"
],
"ignore": [
"**/.*",
"build",
"examples",
"test",
"*.md",
"LICENSE",
"Gruntfile.js",
"package.json",
"bower.json"
],
"devDependencies": {
"jquery": "~1.10.2",
"angular": "1.2.13",
"angular-mocks": "1.2.13"
},
"dependencies": {
}
}
| {
"name": "ng-a11y",
"version": "0.0.10",
"main": [
"./src/nga11yannounce.js",
"./src/nga11yforms.js",
"./src/nga11yfocus.js",
"./src/nga11ymodal.js",
"./dist/nga11yannounce.js",
"./dist/nga11yforms.js",
"./dist/nga11yfocus.js",
"./dist/nga11ymodal.js",
"./dist/nga11y.min.js"
],
"ignore": [
"**/.*",
"build",
"examples",
"test",
"*.md",
"LICENSE",
"Gruntfile.js",
"package.json",
"bower.json"
],
"devDependencies": {
"jquery": "~1.10.2",
"angular": "1.2.13",
"angular-mocks": "1.2.13"
},
"dependencies": {
}
}
| Add nga11yforms.js to the main files and also add the minified files | Add nga11yforms.js to the main files and also add the minified files
| JSON | mit | voyages-sncf-technologies/ngA11y,dequelabs/ngA11y,atouchard/ngA11y | json | ## Code Before:
{
"name": "ng-a11y",
"version": "0.0.8",
"main": [
"./src/nga11yannounce.js",
"./src/nga11yforms.js",
"./src/nga11ymodal.js"
],
"ignore": [
"**/.*",
"build",
"examples",
"test",
"*.md",
"LICENSE",
"Gruntfile.js",
"package.json",
"bower.json"
],
"devDependencies": {
"jquery": "~1.10.2",
"angular": "1.2.13",
"angular-mocks": "1.2.13"
},
"dependencies": {
}
}
## Instruction:
Add nga11yforms.js to the main files and also add the minified files
## Code After:
{
"name": "ng-a11y",
"version": "0.0.10",
"main": [
"./src/nga11yannounce.js",
"./src/nga11yforms.js",
"./src/nga11yfocus.js",
"./src/nga11ymodal.js",
"./dist/nga11yannounce.js",
"./dist/nga11yforms.js",
"./dist/nga11yfocus.js",
"./dist/nga11ymodal.js",
"./dist/nga11y.min.js"
],
"ignore": [
"**/.*",
"build",
"examples",
"test",
"*.md",
"LICENSE",
"Gruntfile.js",
"package.json",
"bower.json"
],
"devDependencies": {
"jquery": "~1.10.2",
"angular": "1.2.13",
"angular-mocks": "1.2.13"
},
"dependencies": {
}
}
| {
"name": "ng-a11y",
- "version": "0.0.8",
? ^
+ "version": "0.0.10",
? ^^
"main": [
"./src/nga11yannounce.js",
"./src/nga11yforms.js",
+ "./src/nga11yfocus.js",
- "./src/nga11ymodal.js"
+ "./src/nga11ymodal.js",
? +
+ "./dist/nga11yannounce.js",
+ "./dist/nga11yforms.js",
+ "./dist/nga11yfocus.js",
+ "./dist/nga11ymodal.js",
+ "./dist/nga11y.min.js"
],
"ignore": [
"**/.*",
"build",
"examples",
"test",
"*.md",
"LICENSE",
"Gruntfile.js",
"package.json",
"bower.json"
],
"devDependencies": {
"jquery": "~1.10.2",
"angular": "1.2.13",
"angular-mocks": "1.2.13"
},
"dependencies": {
}
} | 10 | 0.37037 | 8 | 2 |
ceea28b5f07d43644bbefacb39bd1f2b40297e36 | xero/constants.py | xero/constants.py | XERO_BASE_URL = "https://api.xero.com"
REQUEST_TOKEN_URL = "%s/oauth/RequestToken" % XERO_BASE_URL
AUTHORIZE_URL = "%s/oauth/Authorize" % XERO_BASE_URL
ACCESS_TOKEN_URL = "%s/oauth/AccessToken" % XERO_BASE_URL
XERO_API_URL = "%s/api.xro/2.0" % XERO_BASE_URL
# Partner
PARTNER_XERO_BASE_URL = "https://api-partner.network.xero.com"
PARTNER_REQUEST_TOKEN_URL = "%s/oauth/RequestToken" % PARTNER_XERO_BASE_URL
PARTNER_AUTHORIZE_URL = AUTHORIZE_URL
PARTNER_ACCESS_TOKEN_URL = "%s/oauth/AccessToken" % PARTNER_XERO_BASE_URL
PARTNER_XERO_API_URL = "%s/api.xro/2.0" % PARTNER_XERO_BASE_URL | XERO_BASE_URL = "https://api.xero.com"
REQUEST_TOKEN_URL = "%s/oauth/RequestToken" % XERO_BASE_URL
AUTHORIZE_URL = "%s/oauth/Authorize" % XERO_BASE_URL
ACCESS_TOKEN_URL = "%s/oauth/AccessToken" % XERO_BASE_URL
XERO_API_URL = "%s/api.xro/2.0" % XERO_BASE_URL
# Partner
PARTNER_XERO_BASE_URL = "https://api-partner.network.xero.com"
PARTNER_REQUEST_TOKEN_URL = "%s/oauth/RequestToken" % PARTNER_XERO_BASE_URL
PARTNER_AUTHORIZE_URL = "%s/oauth/Authorize" % PARTNER_XERO_BASE_URL
PARTNER_ACCESS_TOKEN_URL = "%s/oauth/AccessToken" % PARTNER_XERO_BASE_URL
PARTNER_XERO_API_URL = "%s/api.xro/2.0" % PARTNER_XERO_BASE_URL
| Update partner authorize URL to match changes by Xero | Update partner authorize URL to match changes by Xero | Python | bsd-3-clause | skillflip/pyxero | python | ## Code Before:
XERO_BASE_URL = "https://api.xero.com"
REQUEST_TOKEN_URL = "%s/oauth/RequestToken" % XERO_BASE_URL
AUTHORIZE_URL = "%s/oauth/Authorize" % XERO_BASE_URL
ACCESS_TOKEN_URL = "%s/oauth/AccessToken" % XERO_BASE_URL
XERO_API_URL = "%s/api.xro/2.0" % XERO_BASE_URL
# Partner
PARTNER_XERO_BASE_URL = "https://api-partner.network.xero.com"
PARTNER_REQUEST_TOKEN_URL = "%s/oauth/RequestToken" % PARTNER_XERO_BASE_URL
PARTNER_AUTHORIZE_URL = AUTHORIZE_URL
PARTNER_ACCESS_TOKEN_URL = "%s/oauth/AccessToken" % PARTNER_XERO_BASE_URL
PARTNER_XERO_API_URL = "%s/api.xro/2.0" % PARTNER_XERO_BASE_URL
## Instruction:
Update partner authorize URL to match changes by Xero
## Code After:
XERO_BASE_URL = "https://api.xero.com"
REQUEST_TOKEN_URL = "%s/oauth/RequestToken" % XERO_BASE_URL
AUTHORIZE_URL = "%s/oauth/Authorize" % XERO_BASE_URL
ACCESS_TOKEN_URL = "%s/oauth/AccessToken" % XERO_BASE_URL
XERO_API_URL = "%s/api.xro/2.0" % XERO_BASE_URL
# Partner
PARTNER_XERO_BASE_URL = "https://api-partner.network.xero.com"
PARTNER_REQUEST_TOKEN_URL = "%s/oauth/RequestToken" % PARTNER_XERO_BASE_URL
PARTNER_AUTHORIZE_URL = "%s/oauth/Authorize" % PARTNER_XERO_BASE_URL
PARTNER_ACCESS_TOKEN_URL = "%s/oauth/AccessToken" % PARTNER_XERO_BASE_URL
PARTNER_XERO_API_URL = "%s/api.xro/2.0" % PARTNER_XERO_BASE_URL
| XERO_BASE_URL = "https://api.xero.com"
REQUEST_TOKEN_URL = "%s/oauth/RequestToken" % XERO_BASE_URL
AUTHORIZE_URL = "%s/oauth/Authorize" % XERO_BASE_URL
ACCESS_TOKEN_URL = "%s/oauth/AccessToken" % XERO_BASE_URL
XERO_API_URL = "%s/api.xro/2.0" % XERO_BASE_URL
# Partner
PARTNER_XERO_BASE_URL = "https://api-partner.network.xero.com"
PARTNER_REQUEST_TOKEN_URL = "%s/oauth/RequestToken" % PARTNER_XERO_BASE_URL
- PARTNER_AUTHORIZE_URL = AUTHORIZE_URL
+ PARTNER_AUTHORIZE_URL = "%s/oauth/Authorize" % PARTNER_XERO_BASE_URL
PARTNER_ACCESS_TOKEN_URL = "%s/oauth/AccessToken" % PARTNER_XERO_BASE_URL
PARTNER_XERO_API_URL = "%s/api.xro/2.0" % PARTNER_XERO_BASE_URL | 2 | 0.166667 | 1 | 1 |
62854b1f17284b0ca4a1e62cd2e870dab8e804b8 | .travis.yml | .travis.yml | language: node_js
node_js:
- 10
branches:
only:
- source
script:
- yarn build
- cd public
- git init
- git add .
- git commit -m "Updated website."
- git push https://fmoliveira:$GITHUB_TOKEN@github.com/fmoliveira/fmoliveira.github.io.git master --force
| language: node_js
node_js:
- 10
branches:
only:
- source
script:
- yarn build
- cp CNAME public/
- cd public
- git init
- git add .
- git commit -m "Updated website."
- git push https://fmoliveira:$GITHUB_TOKEN@github.com/fmoliveira/fmoliveira.github.io.git master --force
| Add CNAME file to deployment. | Add CNAME file to deployment.
| YAML | mit | fmoliveira/fmoliveira.github.io,fmoliveira/fmoliveira.github.io | yaml | ## Code Before:
language: node_js
node_js:
- 10
branches:
only:
- source
script:
- yarn build
- cd public
- git init
- git add .
- git commit -m "Updated website."
- git push https://fmoliveira:$GITHUB_TOKEN@github.com/fmoliveira/fmoliveira.github.io.git master --force
## Instruction:
Add CNAME file to deployment.
## Code After:
language: node_js
node_js:
- 10
branches:
only:
- source
script:
- yarn build
- cp CNAME public/
- cd public
- git init
- git add .
- git commit -m "Updated website."
- git push https://fmoliveira:$GITHUB_TOKEN@github.com/fmoliveira/fmoliveira.github.io.git master --force
| language: node_js
node_js:
- 10
branches:
only:
- source
script:
- yarn build
+ - cp CNAME public/
- cd public
- git init
- git add .
- git commit -m "Updated website."
- git push https://fmoliveira:$GITHUB_TOKEN@github.com/fmoliveira/fmoliveira.github.io.git master --force | 1 | 0.076923 | 1 | 0 |
a90081c2e23850fc94d91d0f7136c5e087abf2b1 | src/app/public/ts/login.component.ts | src/app/public/ts/login.component.ts | import { Component, OnInit } from '@angular/core';
import { Socket } from '../../../services/socketio.service';
import { User } from '../../../services/user.service';
import { FormBuilder, FormGroup } from '@angular/forms';
@Component({
templateUrl: '../html/login.component.html'
})
export class Login implements OnInit {
loginForm: FormGroup;
constructor(private socket: Socket, public user: User, private formBuilder: FormBuilder) {
this.loginForm = this.formBuilder.group({});
this.socket.socket.on('connection', (data: string) => {
if(data) {
this.socket.emit('ewAuth', {'token': data});
localStorage.setItem('token', data);
}
else {
localStorage.removeItem('token');
}
});
}
ngOnInit() {
this.loginForm = this.formBuilder.group({
username: '',
password: ''
});
setInterval(() => {
if(this.user.getPropertyNb('mstatus') == 1) {
document.location.href="/city";
}
}, 1000);
}
onSubmit(data:object) {
this.socket.emit('connection', data);
}
}
| import { Component, OnInit } from '@angular/core';
import { Socket } from '../../../services/socketio.service';
import { User } from '../../../services/user.service';
import { FormBuilder, FormGroup } from '@angular/forms';
@Component({
templateUrl: '../html/login.component.html'
})
export class Login implements OnInit {
loginForm: FormGroup;
constructor(private socket: Socket, public user: User, private formBuilder: FormBuilder) {
this.loginForm = this.formBuilder.group({});
this.socket.socket.on('connection', (data: string) => {
if(data) {
this.socket.emit('ewAuth', {'token': data});
localStorage.setItem('token', data);
}
else {
localStorage.removeItem('token');
}
});
}
ngOnInit() {
this.loginForm = this.formBuilder.group({
username: '',
password: ''
});
}
onSubmit(data:object) {
this.socket.emit('connection', data);
}
}
| Remove crap redirect when connected | Remove crap redirect when connected | TypeScript | agpl-3.0 | V-Paranoiaque/Ellas-War,V-Paranoiaque/Ellas-War,V-Paranoiaque/Ellas-War,V-Paranoiaque/Ellas-War | typescript | ## Code Before:
import { Component, OnInit } from '@angular/core';
import { Socket } from '../../../services/socketio.service';
import { User } from '../../../services/user.service';
import { FormBuilder, FormGroup } from '@angular/forms';
@Component({
templateUrl: '../html/login.component.html'
})
export class Login implements OnInit {
loginForm: FormGroup;
constructor(private socket: Socket, public user: User, private formBuilder: FormBuilder) {
this.loginForm = this.formBuilder.group({});
this.socket.socket.on('connection', (data: string) => {
if(data) {
this.socket.emit('ewAuth', {'token': data});
localStorage.setItem('token', data);
}
else {
localStorage.removeItem('token');
}
});
}
ngOnInit() {
this.loginForm = this.formBuilder.group({
username: '',
password: ''
});
setInterval(() => {
if(this.user.getPropertyNb('mstatus') == 1) {
document.location.href="/city";
}
}, 1000);
}
onSubmit(data:object) {
this.socket.emit('connection', data);
}
}
## Instruction:
Remove crap redirect when connected
## Code After:
import { Component, OnInit } from '@angular/core';
import { Socket } from '../../../services/socketio.service';
import { User } from '../../../services/user.service';
import { FormBuilder, FormGroup } from '@angular/forms';
@Component({
templateUrl: '../html/login.component.html'
})
export class Login implements OnInit {
loginForm: FormGroup;
constructor(private socket: Socket, public user: User, private formBuilder: FormBuilder) {
this.loginForm = this.formBuilder.group({});
this.socket.socket.on('connection', (data: string) => {
if(data) {
this.socket.emit('ewAuth', {'token': data});
localStorage.setItem('token', data);
}
else {
localStorage.removeItem('token');
}
});
}
ngOnInit() {
this.loginForm = this.formBuilder.group({
username: '',
password: ''
});
}
onSubmit(data:object) {
this.socket.emit('connection', data);
}
}
| import { Component, OnInit } from '@angular/core';
import { Socket } from '../../../services/socketio.service';
import { User } from '../../../services/user.service';
import { FormBuilder, FormGroup } from '@angular/forms';
@Component({
templateUrl: '../html/login.component.html'
})
export class Login implements OnInit {
loginForm: FormGroup;
constructor(private socket: Socket, public user: User, private formBuilder: FormBuilder) {
this.loginForm = this.formBuilder.group({});
this.socket.socket.on('connection', (data: string) => {
if(data) {
this.socket.emit('ewAuth', {'token': data});
localStorage.setItem('token', data);
}
else {
localStorage.removeItem('token');
}
});
}
ngOnInit() {
this.loginForm = this.formBuilder.group({
username: '',
password: ''
});
-
- setInterval(() => {
- if(this.user.getPropertyNb('mstatus') == 1) {
- document.location.href="/city";
- }
- }, 1000);
}
onSubmit(data:object) {
this.socket.emit('connection', data);
}
} | 6 | 0.136364 | 0 | 6 |
709f3f8351915a7041203fdae5159c51a4177042 | src/extensions/wrap-guide/wrap-guide.coffee | src/extensions/wrap-guide/wrap-guide.coffee | {View} = require 'space-pen'
module.exports =
class WrapGuide extends View
@activate: (rootView) ->
requireStylesheet 'wrap-guide.css'
for editor in rootView.getEditors()
@appendToEditorPane(rootView, editor) if rootView.parents('html').length
rootView.on 'editor-open', (e, editor) =>
@appendToEditorPane(rootView, editor)
@appendToEditorPane: (rootView, editor) ->
if lines = editor.pane()?.find('.lines')
lines.append(new WrapGuide(rootView, editor))
@content: ->
@div class: 'wrap-guide'
column: 80
initialize: (@rootView, @editor) =>
@updateGuide(@editor)
@editor.on 'editor-path-change', => @updateGuide(@editor)
@rootView.on 'font-size-change', => @updateGuide(@editor)
updateGuide: (editor) ->
width = editor.charWidth * @column
@css("left", width + "px")
| {View} = require 'space-pen'
module.exports =
class WrapGuide extends View
@activate: (rootView) ->
requireStylesheet 'wrap-guide.css'
for editor in rootView.getEditors()
@appendToEditorPane(rootView, editor) if rootView.parents('html').length
rootView.on 'editor-open', (e, editor) =>
@appendToEditorPane(rootView, editor)
@appendToEditorPane: (rootView, editor) ->
if lines = editor.pane()?.find('.lines')
lines.append(new WrapGuide(rootView, editor))
@content: ->
@div class: 'wrap-guide'
column: 80
initialize: (@rootView, @editor) =>
@updateGuide(@editor)
@editor.on 'editor-path-change', => @updateGuide(@editor)
@rootView.on 'font-size-change', => @updateGuide(@editor)
updateGuide: (editor) ->
@css('left', "#{editor.charWidth * @column}px")
| Use interpolated string for setting left offset | Use interpolated string for setting left offset
| CoffeeScript | mit | anuwat121/atom,ali/atom,Austen-G/BlockBuilder,acontreras89/atom,hagb4rd/atom,rsvip/aTom,jacekkopecky/atom,harshdattani/atom,me6iaton/atom,bolinfest/atom,boomwaiza/atom,tony612/atom,paulcbetts/atom,brettle/atom,ivoadf/atom,qskycolor/atom,fang-yufeng/atom,bcoe/atom,nrodriguez13/atom,Andrey-Pavlov/atom,florianb/atom,hharchani/atom,brettle/atom,vjeux/atom,wiggzz/atom,Neron-X5/atom,0x73/atom,acontreras89/atom,codex8/atom,sekcheong/atom,pkdevbox/atom,ralphtheninja/atom,atom/atom,palita01/atom,vcarrera/atom,SlimeQ/atom,Arcanemagus/atom,batjko/atom,folpindo/atom,Ju2ender/atom,SlimeQ/atom,devoncarew/atom,scippio/atom,niklabh/atom,Jdesk/atom,qskycolor/atom,t9md/atom,omarhuanca/atom,splodingsocks/atom,panuchart/atom,Sangaroonaom/atom,0x73/atom,Dennis1978/atom,DiogoXRP/atom,scv119/atom,hagb4rd/atom,basarat/atom,Hasimir/atom,gisenberg/atom,Klozz/atom,liuxiong332/atom,execjosh/atom,rookie125/atom,einarmagnus/atom,Galactix/atom,ObviouslyGreen/atom,yalexx/atom,seedtigo/atom,xream/atom,cyzn/atom,matthewclendening/atom,gzzhanghao/atom,Abdillah/atom,001szymon/atom,Mokolea/atom,transcranial/atom,rsvip/aTom,bryonwinger/atom,BogusCurry/atom,n-riesco/atom,fang-yufeng/atom,kdheepak89/atom,champagnez/atom,Rodjana/atom,oggy/atom,pombredanne/atom,nrodriguez13/atom,elkingtonmcb/atom,jeremyramin/atom,kjav/atom,Hasimir/atom,burodepeper/atom,sxgao3001/atom,ezeoleaf/atom,sxgao3001/atom,constanzaurzua/atom,darwin/atom,palita01/atom,niklabh/atom,einarmagnus/atom,Locke23rus/atom,h0dgep0dge/atom,KENJU/atom,hpham04/atom,Huaraz2/atom,Hasimir/atom,xream/atom,deepfox/atom,deoxilix/atom,n-riesco/atom,mnquintana/atom,qskycolor/atom,mrodalgaard/atom,oggy/atom,brumm/atom,me-benni/atom,G-Baby/atom,dijs/atom,mostafaeweda/atom,AlexxNica/atom,gontadu/atom,Hasimir/atom,daxlab/atom,bcoe/atom,bradgearon/atom,dsandstrom/atom,ali/atom,BogusCurry/atom,lovesnow/atom,KENJU/atom,CraZySacX/atom,sillvan/atom,russlescai/atom,abcP9110/atom,originye/atom,fang-yufeng/atom,decaffeinate-examples/atom,svanharmelen/atom,Jandersolutions/atom,yalexx/atom,oggy/atom,charleswhchan/atom,RobinTec/atom,scippio/atom,kjav/atom,ykeisuke/atom,pkdevbox/atom,bradgearon/atom,ObviouslyGreen/atom,qiujuer/atom,Jdesk/atom,RobinTec/atom,jacekkopecky/atom,einarmagnus/atom,FIT-CSE2410-A-Bombs/atom,RuiDGoncalves/atom,pombredanne/atom,hagb4rd/atom,kandros/atom,mdumrauf/atom,cyzn/atom,jlord/atom,harshdattani/atom,ivoadf/atom,lpommers/atom,deepfox/atom,atom/atom,CraZySacX/atom,Neron-X5/atom,rmartin/atom,Austen-G/BlockBuilder,tjkr/atom,kandros/atom,nucked/atom,fedorov/atom,lovesnow/atom,Ingramz/atom,qiujuer/atom,mostafaeweda/atom,Huaraz2/atom,lisonma/atom,jacekkopecky/atom,vjeux/atom,ashneo76/atom,qskycolor/atom,toqz/atom,mnquintana/atom,ilovezy/atom,vjeux/atom,tjkr/atom,fredericksilva/atom,hellendag/atom,originye/atom,KENJU/atom,erikhakansson/atom,wiggzz/atom,basarat/atom,russlescai/atom,alexandergmann/atom,ironbox360/atom,kittens/atom,amine7536/atom,jjz/atom,boomwaiza/atom,jacekkopecky/atom,pkdevbox/atom,rlugojr/atom,kdheepak89/atom,sotayamashita/atom,FoldingText/atom,Galactix/atom,h0dgep0dge/atom,n-riesco/atom,Rychard/atom,Galactix/atom,hpham04/atom,mrodalgaard/atom,mostafaeweda/atom,abe33/atom,bradgearon/atom,ReddTea/atom,kittens/atom,rsvip/aTom,PKRoma/atom,deoxilix/atom,ironbox360/atom,ivoadf/atom,me-benni/atom,Ingramz/atom,bsmr-x-script/atom,bolinfest/atom,charleswhchan/atom,paulcbetts/atom,fscherwi/atom,RobinTec/atom,001szymon/atom,efatsi/atom,mostafaeweda/atom,tony612/atom,dkfiresky/atom,medovob/atom,Jandersoft/atom,phord/atom,githubteacher/atom,basarat/atom,burodepeper/atom,bcoe/atom,florianb/atom,nucked/atom,rookie125/atom,synaptek/atom,Jandersoft/atom,devmario/atom,toqz/atom,liuxiong332/atom,hpham04/atom,bryonwinger/atom,Rychard/atom,pengshp/atom,mnquintana/atom,scippio/atom,nvoron23/atom,ppamorim/atom,davideg/atom,chengky/atom,ezeoleaf/atom,andrewleverette/atom,kjav/atom,jtrose2/atom,abcP9110/atom,sillvan/atom,nvoron23/atom,sebmck/atom,hellendag/atom,RobinTec/atom,me6iaton/atom,Shekharrajak/atom,chengky/atom,boomwaiza/atom,alexandergmann/atom,GHackAnonymous/atom,wiggzz/atom,constanzaurzua/atom,targeter21/atom,yalexx/atom,sillvan/atom,kc8wxm/atom,AlisaKiatkongkumthon/atom,batjko/atom,liuderchi/atom,dkfiresky/atom,lpommers/atom,charleswhchan/atom,lovesnow/atom,hagb4rd/atom,acontreras89/atom,devmario/atom,gzzhanghao/atom,deepfox/atom,hellendag/atom,johnrizzo1/atom,brumm/atom,basarat/atom,Galactix/atom,BogusCurry/atom,fedorov/atom,qiujuer/atom,Mokolea/atom,dijs/atom,Arcanemagus/atom,abcP9110/atom,gabrielPeart/atom,sotayamashita/atom,Sangaroonaom/atom,dkfiresky/atom,sebmck/atom,daxlab/atom,harshdattani/atom,isghe/atom,kittens/atom,h0dgep0dge/atom,Jandersolutions/atom,AlbertoBarrago/atom,andrewleverette/atom,tisu2tisu/atom,panuchart/atom,Jonekee/atom,chfritz/atom,gontadu/atom,dannyflax/atom,devoncarew/atom,woss/atom,devoncarew/atom,G-Baby/atom,codex8/atom,deepfox/atom,vjeux/atom,stuartquin/atom,gabrielPeart/atom,splodingsocks/atom,toqz/atom,mertkahyaoglu/atom,Klozz/atom,mrodalgaard/atom,rmartin/atom,ilovezy/atom,rlugojr/atom,gisenberg/atom,bsmr-x-script/atom,davideg/atom,lovesnow/atom,PKRoma/atom,Abdillah/atom,hharchani/atom,Mokolea/atom,sillvan/atom,Jandersoft/atom,gisenberg/atom,qiujuer/atom,john-kelly/atom,russlescai/atom,MjAbuz/atom,Shekharrajak/atom,AlbertoBarrago/atom,DiogoXRP/atom,charleswhchan/atom,erikhakansson/atom,Ju2ender/atom,vinodpanicker/atom,amine7536/atom,efatsi/atom,codex8/atom,davideg/atom,alfredxing/atom,devmario/atom,john-kelly/atom,CraZySacX/atom,liuderchi/atom,prembasumatary/atom,pengshp/atom,Ju2ender/atom,NunoEdgarGub1/atom,woss/atom,sxgao3001/atom,kaicataldo/atom,execjosh/atom,yomybaby/atom,einarmagnus/atom,charleswhchan/atom,fredericksilva/atom,hpham04/atom,sillvan/atom,devmario/atom,Ingramz/atom,acontreras89/atom,ali/atom,phord/atom,mertkahyaoglu/atom,0x73/atom,nvoron23/atom,Locke23rus/atom,omarhuanca/atom,oggy/atom,me6iaton/atom,prembasumatary/atom,deoxilix/atom,YunchengLiao/atom,lisonma/atom,yomybaby/atom,g2p/atom,niklabh/atom,kevinrenaers/atom,decaffeinate-examples/atom,FIT-CSE2410-A-Bombs/atom,yalexx/atom,AlexxNica/atom,prembasumatary/atom,SlimeQ/atom,Abdillah/atom,anuwat121/atom,vhutheesing/atom,toqz/atom,dannyflax/atom,stinsonga/atom,ardeshirj/atom,jjz/atom,yomybaby/atom,davideg/atom,tanin47/atom,FoldingText/atom,bolinfest/atom,andrewleverette/atom,sekcheong/atom,batjko/atom,fredericksilva/atom,Andrey-Pavlov/atom,seedtigo/atom,jlord/atom,Andrey-Pavlov/atom,bencolon/atom,vinodpanicker/atom,codex8/atom,anuwat121/atom,florianb/atom,jtrose2/atom,tony612/atom,rmartin/atom,omarhuanca/atom,erikhakansson/atom,ardeshirj/atom,woss/atom,YunchengLiao/atom,amine7536/atom,fedorov/atom,ralphtheninja/atom,Jdesk/atom,folpindo/atom,elkingtonmcb/atom,FoldingText/atom,n-riesco/atom,rjattrill/atom,isghe/atom,gzzhanghao/atom,NunoEdgarGub1/atom,synaptek/atom,jtrose2/atom,florianb/atom,AdrianVovk/substance-ide,KENJU/atom,Rychard/atom,woss/atom,vcarrera/atom,fredericksilva/atom,lisonma/atom,GHackAnonymous/atom,yamhon/atom,tisu2tisu/atom,originye/atom,G-Baby/atom,AlisaKiatkongkumthon/atom,ReddTea/atom,omarhuanca/atom,me6iaton/atom,stinsonga/atom,Rodjana/atom,chfritz/atom,SlimeQ/atom,MjAbuz/atom,einarmagnus/atom,pombredanne/atom,fedorov/atom,jeremyramin/atom,vinodpanicker/atom,johnrizzo1/atom,sebmck/atom,lpommers/atom,lovesnow/atom,splodingsocks/atom,vcarrera/atom,dkfiresky/atom,synaptek/atom,yangchenghu/atom,bj7/atom,Ju2ender/atom,Hasimir/atom,jtrose2/atom,hakatashi/atom,kevinrenaers/atom,transcranial/atom,Dennis1978/atom,Jdesk/atom,Shekharrajak/atom,bencolon/atom,Jandersolutions/atom,rxkit/atom,ali/atom,RuiDGoncalves/atom,omarhuanca/atom,githubteacher/atom,darwin/atom,kc8wxm/atom,kittens/atom,me6iaton/atom,paulcbetts/atom,hagb4rd/atom,rsvip/aTom,decaffeinate-examples/atom,codex8/atom,Austen-G/BlockBuilder,gisenberg/atom,Jonekee/atom,ardeshirj/atom,batjko/atom,isghe/atom,crazyquark/atom,Andrey-Pavlov/atom,bencolon/atom,alfredxing/atom,constanzaurzua/atom,Shekharrajak/atom,toqz/atom,devoncarew/atom,KENJU/atom,pombredanne/atom,woss/atom,ppamorim/atom,vcarrera/atom,sekcheong/atom,bj7/atom,svanharmelen/atom,basarat/atom,dsandstrom/atom,vhutheesing/atom,florianb/atom,russlescai/atom,FoldingText/atom,ilovezy/atom,liuderchi/atom,rmartin/atom,g2p/atom,tony612/atom,ashneo76/atom,rxkit/atom,matthewclendening/atom,FoldingText/atom,tony612/atom,dijs/atom,liuderchi/atom,MjAbuz/atom,yomybaby/atom,johnhaley81/atom,stinsonga/atom,jordanbtucker/atom,ReddTea/atom,bryonwinger/atom,GHackAnonymous/atom,jlord/atom,hakatashi/atom,scv119/atom,kevinrenaers/atom,FoldingText/atom,crazyquark/atom,ykeisuke/atom,sxgao3001/atom,stuartquin/atom,ppamorim/atom,Klozz/atom,acontreras89/atom,ashneo76/atom,prembasumatary/atom,cyzn/atom,bcoe/atom,scv119/atom,yangchenghu/atom,helber/atom,kdheepak89/atom,0x73/atom,fscherwi/atom,stinsonga/atom,Galactix/atom,MjAbuz/atom,Jandersolutions/atom,jacekkopecky/atom,mostafaeweda/atom,Sangaroonaom/atom,fredericksilva/atom,h0dgep0dge/atom,nvoron23/atom,phord/atom,nrodriguez13/atom,ppamorim/atom,SlimeQ/atom,fedorov/atom,rjattrill/atom,dkfiresky/atom,jeremyramin/atom,alexandergmann/atom,alfredxing/atom,mertkahyaoglu/atom,abe33/atom,deepfox/atom,medovob/atom,ezeoleaf/atom,liuxiong332/atom,qskycolor/atom,Andrey-Pavlov/atom,matthewclendening/atom,isghe/atom,vcarrera/atom,001szymon/atom,tanin47/atom,mdumrauf/atom,nucked/atom,ilovezy/atom,paulcbetts/atom,chengky/atom,seedtigo/atom,fscherwi/atom,t9md/atom,NunoEdgarGub1/atom,vjeux/atom,Austen-G/BlockBuilder,sebmck/atom,decaffeinate-examples/atom,john-kelly/atom,NunoEdgarGub1/atom,GHackAnonymous/atom,darwin/atom,dsandstrom/atom,johnrizzo1/atom,medovob/atom,amine7536/atom,hakatashi/atom,bryonwinger/atom,dannyflax/atom,GHackAnonymous/atom,mdumrauf/atom,me-benni/atom,yamhon/atom,brettle/atom,russlescai/atom,rsvip/aTom,chfritz/atom,mertkahyaoglu/atom,yangchenghu/atom,Arcanemagus/atom,amine7536/atom,crazyquark/atom,matthewclendening/atom,kc8wxm/atom,rjattrill/atom,Jdesk/atom,john-kelly/atom,t9md/atom,targeter21/atom,targeter21/atom,jjz/atom,constanzaurzua/atom,bj7/atom,xream/atom,bsmr-x-script/atom,devoncarew/atom,gontadu/atom,kjav/atom,champagnez/atom,YunchengLiao/atom,rlugojr/atom,hakatashi/atom,sxgao3001/atom,crazyquark/atom,rxkit/atom,Jandersolutions/atom,n-riesco/atom,helber/atom,hharchani/atom,ralphtheninja/atom,dannyflax/atom,helber/atom,ObviouslyGreen/atom,FIT-CSE2410-A-Bombs/atom,kjav/atom,devmario/atom,beni55/atom,Jandersoft/atom,jlord/atom,splodingsocks/atom,sekcheong/atom,vhutheesing/atom,execjosh/atom,matthewclendening/atom,hharchani/atom,qiujuer/atom,beni55/atom,ReddTea/atom,prembasumatary/atom,ReddTea/atom,efatsi/atom,batjko/atom,yamhon/atom,Locke23rus/atom,palita01/atom,Neron-X5/atom,basarat/atom,yalexx/atom,hpham04/atom,targeter21/atom,liuxiong332/atom,davideg/atom,YunchengLiao/atom,githubteacher/atom,DiogoXRP/atom,jordanbtucker/atom,ali/atom,burodepeper/atom,AdrianVovk/substance-ide,nvoron23/atom,YunchengLiao/atom,atom/atom,Austen-G/BlockBuilder,crazyquark/atom,svanharmelen/atom,johnhaley81/atom,dsandstrom/atom,chengky/atom,tmunro/atom,hharchani/atom,john-kelly/atom,jacekkopecky/atom,vinodpanicker/atom,Abdillah/atom,liuxiong332/atom,tanin47/atom,jjz/atom,elkingtonmcb/atom,vinodpanicker/atom,rmartin/atom,ilovezy/atom,chengky/atom,daxlab/atom,mertkahyaoglu/atom,gabrielPeart/atom,bcoe/atom,jordanbtucker/atom,ykeisuke/atom,rookie125/atom,kandros/atom,johnhaley81/atom,synaptek/atom,tjkr/atom,ironbox360/atom,mnquintana/atom,Rodjana/atom,dsandstrom/atom,gisenberg/atom,sekcheong/atom,constanzaurzua/atom,ppamorim/atom,Jonekee/atom,MjAbuz/atom,yomybaby/atom,dannyflax/atom,g2p/atom,Ju2ender/atom,AlexxNica/atom,kittens/atom,brumm/atom,tmunro/atom,jjz/atom,Austen-G/BlockBuilder,avdg/atom,sebmck/atom,Jandersoft/atom,abcP9110/atom,jlord/atom,oggy/atom,targeter21/atom,beni55/atom,AdrianVovk/substance-ide,Dennis1978/atom,lisonma/atom,jtrose2/atom,RobinTec/atom,AlisaKiatkongkumthon/atom,Abdillah/atom,AlbertoBarrago/atom,Huaraz2/atom,mnquintana/atom,kdheepak89/atom,champagnez/atom,sotayamashita/atom,abe33/atom,Shekharrajak/atom,ezeoleaf/atom,synaptek/atom,scv119/atom,kdheepak89/atom,folpindo/atom,NunoEdgarGub1/atom,RuiDGoncalves/atom,fang-yufeng/atom,dannyflax/atom,stuartquin/atom,kc8wxm/atom,panuchart/atom,Neron-X5/atom,avdg/atom,abcP9110/atom,PKRoma/atom,pombredanne/atom,isghe/atom,kaicataldo/atom,fang-yufeng/atom,kaicataldo/atom,tisu2tisu/atom,transcranial/atom,kc8wxm/atom,Neron-X5/atom,rjattrill/atom,tmunro/atom,lisonma/atom,avdg/atom,pengshp/atom | coffeescript | ## Code Before:
{View} = require 'space-pen'
module.exports =
class WrapGuide extends View
@activate: (rootView) ->
requireStylesheet 'wrap-guide.css'
for editor in rootView.getEditors()
@appendToEditorPane(rootView, editor) if rootView.parents('html').length
rootView.on 'editor-open', (e, editor) =>
@appendToEditorPane(rootView, editor)
@appendToEditorPane: (rootView, editor) ->
if lines = editor.pane()?.find('.lines')
lines.append(new WrapGuide(rootView, editor))
@content: ->
@div class: 'wrap-guide'
column: 80
initialize: (@rootView, @editor) =>
@updateGuide(@editor)
@editor.on 'editor-path-change', => @updateGuide(@editor)
@rootView.on 'font-size-change', => @updateGuide(@editor)
updateGuide: (editor) ->
width = editor.charWidth * @column
@css("left", width + "px")
## Instruction:
Use interpolated string for setting left offset
## Code After:
{View} = require 'space-pen'
module.exports =
class WrapGuide extends View
@activate: (rootView) ->
requireStylesheet 'wrap-guide.css'
for editor in rootView.getEditors()
@appendToEditorPane(rootView, editor) if rootView.parents('html').length
rootView.on 'editor-open', (e, editor) =>
@appendToEditorPane(rootView, editor)
@appendToEditorPane: (rootView, editor) ->
if lines = editor.pane()?.find('.lines')
lines.append(new WrapGuide(rootView, editor))
@content: ->
@div class: 'wrap-guide'
column: 80
initialize: (@rootView, @editor) =>
@updateGuide(@editor)
@editor.on 'editor-path-change', => @updateGuide(@editor)
@rootView.on 'font-size-change', => @updateGuide(@editor)
updateGuide: (editor) ->
@css('left', "#{editor.charWidth * @column}px")
| {View} = require 'space-pen'
module.exports =
class WrapGuide extends View
@activate: (rootView) ->
requireStylesheet 'wrap-guide.css'
for editor in rootView.getEditors()
@appendToEditorPane(rootView, editor) if rootView.parents('html').length
rootView.on 'editor-open', (e, editor) =>
@appendToEditorPane(rootView, editor)
@appendToEditorPane: (rootView, editor) ->
if lines = editor.pane()?.find('.lines')
lines.append(new WrapGuide(rootView, editor))
@content: ->
@div class: 'wrap-guide'
column: 80
initialize: (@rootView, @editor) =>
@updateGuide(@editor)
@editor.on 'editor-path-change', => @updateGuide(@editor)
@rootView.on 'font-size-change', => @updateGuide(@editor)
updateGuide: (editor) ->
+ @css('left', "#{editor.charWidth * @column}px")
- width = editor.charWidth * @column
- @css("left", width + "px") | 3 | 0.1 | 1 | 2 |
5d529e84777b5ed00926f6f9fef1d11727780a57 | oncall.go | oncall.go | package somaproto
type Oncall struct {
Id string `json:"id, omitempty"`
Name string `json:"name, omitempty"`
Number string `json:"number, omitempty"`
Details *OncallDetails `json:"details, omitempty"`
}
type OncallDetails struct {
DetailsCreation
Members *[]OncallMember `json:"members, omitempty"`
}
type OncallMember struct {
UserName string `json:"userName, omitempty"`
UserId string `json"userId, omitempty"`
}
type OncallFilter struct {
Name string `json:"name, omitempty"`
Number string `json:"number, omitempty"`
}
//
func (p *Oncall) DeepCompare(a *Oncall) bool {
if p.Id != a.Id || p.Name != a.Name || p.Number != a.Number {
return false
}
return true
}
// vim: ts=4 sw=4 sts=4 noet fenc=utf-8 ffs=unix
| package somaproto
type Oncall struct {
Id string `json:"id, omitempty"`
Name string `json:"name, omitempty"`
Number string `json:"number, omitempty"`
Members *[]OncallMember `json:"members, omitempty"`
Details *OncallDetails `json:"details, omitempty"`
}
type OncallDetails struct {
DetailsCreation
}
type OncallMember struct {
UserName string `json:"userName, omitempty"`
UserId string `json"userId, omitempty"`
}
type OncallFilter struct {
Name string `json:"name, omitempty"`
Number string `json:"number, omitempty"`
}
//
func (p *Oncall) DeepCompare(a *Oncall) bool {
if p.Id != a.Id || p.Name != a.Name || p.Number != a.Number {
return false
}
return true
}
// vim: ts=4 sw=4 sts=4 noet fenc=utf-8 ffs=unix
| Move location of OncallMember to be consistent | Move location of OncallMember to be consistent
| Go | bsd-2-clause | 1and1/soma | go | ## Code Before:
package somaproto
type Oncall struct {
Id string `json:"id, omitempty"`
Name string `json:"name, omitempty"`
Number string `json:"number, omitempty"`
Details *OncallDetails `json:"details, omitempty"`
}
type OncallDetails struct {
DetailsCreation
Members *[]OncallMember `json:"members, omitempty"`
}
type OncallMember struct {
UserName string `json:"userName, omitempty"`
UserId string `json"userId, omitempty"`
}
type OncallFilter struct {
Name string `json:"name, omitempty"`
Number string `json:"number, omitempty"`
}
//
func (p *Oncall) DeepCompare(a *Oncall) bool {
if p.Id != a.Id || p.Name != a.Name || p.Number != a.Number {
return false
}
return true
}
// vim: ts=4 sw=4 sts=4 noet fenc=utf-8 ffs=unix
## Instruction:
Move location of OncallMember to be consistent
## Code After:
package somaproto
type Oncall struct {
Id string `json:"id, omitempty"`
Name string `json:"name, omitempty"`
Number string `json:"number, omitempty"`
Members *[]OncallMember `json:"members, omitempty"`
Details *OncallDetails `json:"details, omitempty"`
}
type OncallDetails struct {
DetailsCreation
}
type OncallMember struct {
UserName string `json:"userName, omitempty"`
UserId string `json"userId, omitempty"`
}
type OncallFilter struct {
Name string `json:"name, omitempty"`
Number string `json:"number, omitempty"`
}
//
func (p *Oncall) DeepCompare(a *Oncall) bool {
if p.Id != a.Id || p.Name != a.Name || p.Number != a.Number {
return false
}
return true
}
// vim: ts=4 sw=4 sts=4 noet fenc=utf-8 ffs=unix
| package somaproto
type Oncall struct {
- Id string `json:"id, omitempty"`
+ Id string `json:"id, omitempty"`
? +
- Name string `json:"name, omitempty"`
+ Name string `json:"name, omitempty"`
? +
- Number string `json:"number, omitempty"`
+ Number string `json:"number, omitempty"`
? +
+ Members *[]OncallMember `json:"members, omitempty"`
- Details *OncallDetails `json:"details, omitempty"`
+ Details *OncallDetails `json:"details, omitempty"`
? +
}
type OncallDetails struct {
DetailsCreation
- Members *[]OncallMember `json:"members, omitempty"`
}
type OncallMember struct {
UserName string `json:"userName, omitempty"`
UserId string `json"userId, omitempty"`
}
type OncallFilter struct {
Name string `json:"name, omitempty"`
Number string `json:"number, omitempty"`
}
//
func (p *Oncall) DeepCompare(a *Oncall) bool {
if p.Id != a.Id || p.Name != a.Name || p.Number != a.Number {
return false
}
return true
}
// vim: ts=4 sw=4 sts=4 noet fenc=utf-8 ffs=unix | 10 | 0.30303 | 5 | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.