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"%>...
- <%@ 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...
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 allo...
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...
+ 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. + -...
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 l...
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 l...
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....
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 ...
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('/^\\$/', '', $discoun...
<?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('/^\\$/', '', $discoun...
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('/^\\$...
<?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_replac...
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): ...
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 == "sysv...
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-d...
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_SL...
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() ass...
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...
- <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" ]...
{ "parserOptions": { "ecmaVersion": 2020 }, "env": { "es6": true, "node": true }, "extends": "eslint:recommended", "globals":{ "BigInt":true }, "rules": { "no-console": "off", "indent": [ "error", 4, { "SwitchCase": 1 } ], "linebreak-styl...
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", ...
{ "parserOptions": { "ecmaVersion": 2020 }, "env": { "es6": true, "node": true }, "extends": "eslint:recommended", + "globals":{ + "BigInt":true + }, "rules": { "no-console": "off", "indent": [ "error", 4, { "SwitchCase"...
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...
<!-- {% 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...
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 "Li...
<!-- {% 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 "Lice...
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)) ...
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() ...
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((...
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__(sel...
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 liba...
(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
[![Build Status](https://travis-ci.org/scisoft/autocmake.svg?branch=master)](https://travis-ci.org/scisoft/autocmake/builds) [![Build Status](https://ci.appveyor.com/api/projects/status/github/scisoft/autocmake?branch=master&svg=true)](https://ci.appveyor.com/project/bast/autocmake/history) [![Documentation Status](htt...
[![Build Status](https://travis-ci.org/scisoft/autocmake.svg?branch=master)](https://travis-ci.org/scisoft/autocmake/builds) [![Build Status](https://ci.appveyor.com/api/projects/status/github/scisoft/autocmake?branch=master&svg=true)](https://ci.appveyor.com/project/bast/autocmake/history) [![Documentation Status](htt...
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: [![Build Status](https://travis-ci.org/scisoft/autocmake.svg?branch=master)](https://travis-ci.org/scisoft/autocmake/builds) [![Build Status](https://ci.appveyor.com/api/projects/status/github/scisoft/autocmake?branch=master&svg=true)](https://ci.appveyor.com/project/bast/autocmake/history) [![Documenta...
[![Build Status](https://travis-ci.org/scisoft/autocmake.svg?branch=master)](https://travis-ci.org/scisoft/autocmake/builds) [![Build Status](https://ci.appveyor.com/api/projects/status/github/scisoft/autocmake?branch=master&svg=true)](https://ci.appveyor.com/project/bast/autocmake/history) [![Documentation Statu...
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 connect...
//! 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 connect...
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...
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 //! p...
//! 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 //! protect...
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...
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...
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}) inc...
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}) ...
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 microc...
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, fo...
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 "...
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 "...
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...
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. ...
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() #----------------------------------------------------...
include(CMakeParseArguments) #------------------------------------------------------------------------------ function(lcm_concat VAR) foreach(_line ${ARGN}) set(${VAR} "${${VAR}}${_line}\n") endforeach() set(${VAR} "${${VAR}}" PARENT_SCOPE) 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,adesch...
cmake
## Code Before: include(CMakeParseArguments) #------------------------------------------------------------------------------ function(lcm_concat VAR) foreach(_line ${ARGN}) set(${VAR} "${${VAR}}${_line}\n") endforeach() set(${VAR} "${${VAR}}" PARENT_SCOPE) endfunction() #------------------------------------...
include(CMakeParseArguments) #------------------------------------------------------------------------------ function(lcm_concat VAR) foreach(_line ${ARGN}) set(${VAR} "${${VAR}}${_line}\n") endforeach() set(${VAR} "${${VAR}}" PARENT_SCOPE) 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: ...
/* 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 prote...
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)...
/* 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...
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.po...
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....
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 respon...
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 - ...
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 unc...
<?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', 'chec...
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; } /** ...
<?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) ? ...
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_res...
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_res...
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} re...
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} ...
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....
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....
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...
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](ht...
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 = pro...
'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 = pro...
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.op...
'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(f...
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,reacun...
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 developme...
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: gemf...
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" "$signaturesDirecto...
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...
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" "$s...
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 s...
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...
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 val...
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](htt...
- 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=tw...
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...
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!...
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 juliaComplexUn...
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 juliaCom...
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 regi...
<?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 regi...
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,MrKarlDilk...
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 */ publ...
<?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 voi...
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, reference...
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, reference...
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/...
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 :facili...
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 :faci...
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.gith...
<!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://r...
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=...
<!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;"> <i...
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">&nbsp;</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">&nbsp;</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="inf...
--- 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" ...
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 } ...
/** * 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 } ...
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, applyMiddle...
/** * 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, 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.git...
{ "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.git...
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:...
{ "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://tr...
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 si...
{% 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...
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"...
{% 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-headi...
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/...
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/...
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://githu...
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....
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...
{ "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:Gintelle...
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", "...
{ "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": { - ...
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='#'...
+ .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...
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++ a...
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\l...
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 ...
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 ...
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 { interventi...
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 { ...
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 { marg...
/* 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 { mar...
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; } ...
/* 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-co...
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)...
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)...
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' } l...
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' }...
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...
/* 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...
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 =...
/* 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 getRenderedStringWid...
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) :javascr...
.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) :javascr...
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_VA...
.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_...
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...
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: ...
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-...
homepage: http://github.com/gridaphobe/located-base changelog-type: '' - hash: 66c1f5ea2499b5661583d6e26ac51cde6e9f746dbc9ae0cd768d591792067731 + hash: c8118872eade28260f7891c342175e3e6055eb53973fa719bd9fd48652221bd4 - test-bench-deps: {} ? --- + test-bench-deps: + located-base: -any + base: -a...
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_t...
- 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_t...
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: "...
- 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: "" ...
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>Touc...
<!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>Touc...
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"...
<!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="contai...
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 /> ...
{% 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 /> ...
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 }} ...
{% 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 }} ...
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 ...
+ 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) ...
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"> {{ ...
--- 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', ...
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', ...
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=...
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', 'j...
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: "[[ $TR...
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 ma...
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_...
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.reposito...
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 gener...
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 gener...
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: Simpl...
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 ? - + S...
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(); ...
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-EditorInter...
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.perform...
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 () { + +...
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 ...
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, {} ] ...
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, {} ] ...
module Rack class Switchboard module StoreLoader protected def create_store(options = :memory) - config = options || :memory ? ^^ + config = options ? options.dup : :memory ? ^^^^^^^^^^^^^^^ provider, c...
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 k...
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 k...
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 ...
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 /...
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> ...
<!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> ...
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 0...
<!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>...
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 passin...
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 au...
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...
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 ...
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: generat...
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=_('You...
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, ...
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, ...
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...
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 ./coverag...
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 ...
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 ...
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_Result...
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...
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 do...
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...
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 ...
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- - `b...
--- 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 i...
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 tr...
--- 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 i...
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-conne...
{ "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-c...
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", "gru...
{ "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": "...
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] ...
--- 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] ...
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-c...
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: ...
--- 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-1...
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 - ...
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 - ...
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 a...
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...
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)...
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 secon...
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 ...
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 ...
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-...
<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> ...
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="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 "co...
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-c...
{ "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-c...
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", ...
{ "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", ?...
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 sta...
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'...
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....
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._c...
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 ...
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 h...
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...
+ 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 + ...
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 + ...
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,...
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) { ...
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...
.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...
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: '\2...
.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 &...
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...
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...
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 ch...
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...
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=$...
- 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: ...
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 rais...
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,...
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...
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): ? ...
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 ...
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 ...
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)...
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(othe...
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(Configurati...
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(Configurati...
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 Transla...
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 T...
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 ) ...
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 <77a0fd9e8048bbacd...
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/" + pk...
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 { ...
@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 { ...
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; } ...
@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 { .disconne...
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...
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...
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. ...
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 ...
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/...
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 { Client...
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 } fro...
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/LayoutWrap...
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('documentati...
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...
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 } ...
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 ...
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....
-- 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(direc...
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'...
-- 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 file...
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 ch...
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 ch...
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, ...
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 NUL...
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....
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 "`experimentalCompone...
*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" htt...
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 ===================================================================...
/* ========================================================================== 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 ===================================================================...
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,...
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 ===================================================...
/* ========================================================================== 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 ===================================================...
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...
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...
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="${P...
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")" ...
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...
- 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') ->va...
<?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') ->va...
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...
<?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())) ->or...
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:...
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:...
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"]) ], ...
import PackageDescription var package = Package( name: "MongoKitten", targets: [ Target(name: "GeoJSON"), Target(name: "MongoSocket"), Target(name: "ExtendedJSON"), Target(name: "MongoKitten", dependencies: ["GeoJSON", "MongoSocket", "ExtendedJSON"]) ...
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" ], "devDependenc...
{ "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" ...
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" ],...
{ "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", ? + ...
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.networ...
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.networ...
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://ap...
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://ap...
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 fil...
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 --for...
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 On...
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 On...
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 Log...
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...
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) => @appe...
{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) => @appe...
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,hharc...
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...
{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, ...
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:"m...
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 st...
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 *[]Oncal...
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:...
10
0.30303
5
5