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
5fa4735cd709a9cb004fbb60416ceb31ef8c28e7
gke-openebs/hack/upgrade-openebs-0.6-operator.sh
gke-openebs/hack/upgrade-openebs-0.6-operator.sh
kubectl apply -f https://raw.githubusercontent.com/openebs/openebs/v0.6/k8s/openebs-operator.yaml kubectl apply -f https://raw.githubusercontent.com/openebs/openebs/v0.6/k8s/openebs-storageclasses.yaml
kubectl delete -f https://raw.githubusercontent.com/openebs/openebs/v0.5/k8s/openebs-operator.yaml kubectl delete -f https://raw.githubusercontent.com/openebs/openebs/v0.5/k8s/openebs-storageclasses.yaml sleep 10 kubectl apply -f https://raw.githubusercontent.com/openebs/openebs/v0.6/k8s/openebs-operator.yaml kubectl apply -f https://raw.githubusercontent.com/openebs/openebs/v0.6/k8s/openebs-storageclasses.yaml
Clear 0.5 specs to create 0.6 in openebs
Clear 0.5 specs to create 0.6 in openebs Signed-off-by: kmova <6a28dfa88869c0f71365518480e309e6698873e0@openebs.io>
Shell
apache-2.0
kmova/bootstrap,kmova/bootstrap,kmova/bootstrap,kmova/bootstrap,kmova/bootstrap
shell
## Code Before: kubectl apply -f https://raw.githubusercontent.com/openebs/openebs/v0.6/k8s/openebs-operator.yaml kubectl apply -f https://raw.githubusercontent.com/openebs/openebs/v0.6/k8s/openebs-storageclasses.yaml ## Instruction: Clear 0.5 specs to create 0.6 in openebs Signed-off-by: kmova <6a28dfa88869c0f71365518480e309e6698873e0@openebs.io> ## Code After: kubectl delete -f https://raw.githubusercontent.com/openebs/openebs/v0.5/k8s/openebs-operator.yaml kubectl delete -f https://raw.githubusercontent.com/openebs/openebs/v0.5/k8s/openebs-storageclasses.yaml sleep 10 kubectl apply -f https://raw.githubusercontent.com/openebs/openebs/v0.6/k8s/openebs-operator.yaml kubectl apply -f https://raw.githubusercontent.com/openebs/openebs/v0.6/k8s/openebs-storageclasses.yaml
+ kubectl delete -f https://raw.githubusercontent.com/openebs/openebs/v0.5/k8s/openebs-operator.yaml + kubectl delete -f https://raw.githubusercontent.com/openebs/openebs/v0.5/k8s/openebs-storageclasses.yaml + sleep 10 kubectl apply -f https://raw.githubusercontent.com/openebs/openebs/v0.6/k8s/openebs-operator.yaml kubectl apply -f https://raw.githubusercontent.com/openebs/openebs/v0.6/k8s/openebs-storageclasses.yaml
3
1.5
3
0
cdfdf89781544ee9fb279fb0d007c1ea32be5d29
game-manager.js
game-manager.js
define("game-manager", ["game"], function(Game) { function GameManager() { this.games = this.load() || []; this.next_id = this.getNextId(); } GameManager.prototype = { addGame: function() { var game = new Game(this.next_id++); this.games.push(game); this.save(); return game; }, deleteGame: function(game) { var index = this.games.indexOf(game); if (index == -1) throw new Error("Bad game"); this.games.splice(index, 1); }, findGame: function(id) { for (var i = 0; i < this.games.length; i++) if (this.games[i].id == id) return this.games[i]; }, listGames: function() { return this.games; }, getNextId: function() { var next = 1; this.games.forEach(function(g) { next = Math.max(next, g.id + 1); }); return next; }, load: function() { return (JSON.parse(localStorage.getItem('games')) || []).map(function(game) { return new Game(game.id, game); }); }, save: function() { localStorage.setItem('games', JSON.stringify(this.games)); }, }; return GameManager; });
define("game-manager", ["game"], function(Game) { function GameManager() { this.games = this.load() || []; this.next_id = this.getNextId(); } GameManager.prototype = { addGame: function() { var game = new Game(this.next_id++); this.games.push(game); this.save(); return game; }, deleteGame: function(game) { var index = this.games.indexOf(game); if (index == -1) throw new Error("Bad game"); this.games.splice(index, 1); }, findGame: function(id) { for (var i = 0; i < this.games.length; i++) if (this.games[i].id == id) return this.games[i]; }, listGames: function() { return this.games; }, getNextId: function() { var next = 1; this.games.forEach(function(g) { next = Math.max(next, g.id + 1); }); return next; }, load: function() { return (JSON.parse(localStorage.getItem('games')) || []).map(function(game) { return new Game(game.id, game); }); }, save: function() { // remove "deleted": false fields from all logs (unnecessary) this.games.map(function(game) { game.log.map(function(e) { if (!e.deleted) e.deleted = undefined; }); }); localStorage.setItem('games', JSON.stringify(this.games)); }, }; return GameManager; });
Save a bit of space when saving logs
Save a bit of space when saving logs
JavaScript
mit
lethosor/clue-solver,lethosor/clue-solver
javascript
## Code Before: define("game-manager", ["game"], function(Game) { function GameManager() { this.games = this.load() || []; this.next_id = this.getNextId(); } GameManager.prototype = { addGame: function() { var game = new Game(this.next_id++); this.games.push(game); this.save(); return game; }, deleteGame: function(game) { var index = this.games.indexOf(game); if (index == -1) throw new Error("Bad game"); this.games.splice(index, 1); }, findGame: function(id) { for (var i = 0; i < this.games.length; i++) if (this.games[i].id == id) return this.games[i]; }, listGames: function() { return this.games; }, getNextId: function() { var next = 1; this.games.forEach(function(g) { next = Math.max(next, g.id + 1); }); return next; }, load: function() { return (JSON.parse(localStorage.getItem('games')) || []).map(function(game) { return new Game(game.id, game); }); }, save: function() { localStorage.setItem('games', JSON.stringify(this.games)); }, }; return GameManager; }); ## Instruction: Save a bit of space when saving logs ## Code After: define("game-manager", ["game"], function(Game) { function GameManager() { this.games = this.load() || []; this.next_id = this.getNextId(); } GameManager.prototype = { addGame: function() { var game = new Game(this.next_id++); this.games.push(game); this.save(); return game; }, deleteGame: function(game) { var index = this.games.indexOf(game); if (index == -1) throw new Error("Bad game"); this.games.splice(index, 1); }, findGame: function(id) { for (var i = 0; i < this.games.length; i++) if (this.games[i].id == id) return this.games[i]; }, listGames: function() { return this.games; }, getNextId: function() { var next = 1; this.games.forEach(function(g) { next = Math.max(next, g.id + 1); }); return next; }, load: function() { return (JSON.parse(localStorage.getItem('games')) || []).map(function(game) { return new Game(game.id, game); }); }, save: function() { // remove "deleted": false fields from all logs (unnecessary) this.games.map(function(game) { game.log.map(function(e) { if (!e.deleted) e.deleted = undefined; }); }); localStorage.setItem('games', JSON.stringify(this.games)); }, }; return GameManager; });
define("game-manager", ["game"], function(Game) { function GameManager() { this.games = this.load() || []; this.next_id = this.getNextId(); } GameManager.prototype = { addGame: function() { var game = new Game(this.next_id++); this.games.push(game); this.save(); return game; }, deleteGame: function(game) { var index = this.games.indexOf(game); if (index == -1) throw new Error("Bad game"); this.games.splice(index, 1); }, findGame: function(id) { for (var i = 0; i < this.games.length; i++) if (this.games[i].id == id) return this.games[i]; }, listGames: function() { return this.games; }, getNextId: function() { var next = 1; this.games.forEach(function(g) { next = Math.max(next, g.id + 1); }); return next; }, load: function() { return (JSON.parse(localStorage.getItem('games')) || []).map(function(game) { return new Game(game.id, game); }); }, save: function() { + // remove "deleted": false fields from all logs (unnecessary) + this.games.map(function(game) { + game.log.map(function(e) { + if (!e.deleted) + e.deleted = undefined; + }); + }); localStorage.setItem('games', JSON.stringify(this.games)); }, }; return GameManager; });
7
0.152174
7
0
b9b81e8ef368a61d16e7d96c89fbb17aa7300608
app/views/pages/index.html.erb
app/views/pages/index.html.erb
<h1>PUL Bibliographic Data Web Service</h1> <p><i>(AKA: &ldquo;MARC Liberation&rdquo;, &ldquo;Child of getvoyrec&rdquo;, &ldquo;The Fat Pipe&rdquo;)</i> </p> <h2>Alma</h2> <h2>By Alma ID...</h2> <%= render 'pages/bib_forms' %>
<h1>PUL Bibliographic Data Web Service</h1> <p><i>(AKA: &ldquo;MARC Liberation&rdquo;, &ldquo;Child of getvoyrec&rdquo;, &ldquo;The Fat Pipe&rdquo;)</i> </p> <h2>By Alma ID...</h2> <%= render 'pages/bib_forms' %>
Remove Alma header from index page
Remove Alma header from index page
HTML+ERB
bsd-2-clause
pulibrary/marc_liberation,pulibrary/marc_liberation,pulibrary/marc_liberation
html+erb
## Code Before: <h1>PUL Bibliographic Data Web Service</h1> <p><i>(AKA: &ldquo;MARC Liberation&rdquo;, &ldquo;Child of getvoyrec&rdquo;, &ldquo;The Fat Pipe&rdquo;)</i> </p> <h2>Alma</h2> <h2>By Alma ID...</h2> <%= render 'pages/bib_forms' %> ## Instruction: Remove Alma header from index page ## Code After: <h1>PUL Bibliographic Data Web Service</h1> <p><i>(AKA: &ldquo;MARC Liberation&rdquo;, &ldquo;Child of getvoyrec&rdquo;, &ldquo;The Fat Pipe&rdquo;)</i> </p> <h2>By Alma ID...</h2> <%= render 'pages/bib_forms' %>
<h1>PUL Bibliographic Data Web Service</h1> <p><i>(AKA: &ldquo;MARC Liberation&rdquo;, &ldquo;Child of getvoyrec&rdquo;, &ldquo;The Fat Pipe&rdquo;)</i> </p> - <h2>Alma</h2> <h2>By Alma ID...</h2> <%= render 'pages/bib_forms' %>
1
0.125
0
1
fdc0d6414b966ba891b83cee1b25996b91cdb0dc
end-to-end/0-serial/014-tracing/k8s/zipkin.yaml
end-to-end/0-serial/014-tracing/k8s/zipkin.yaml
--- apiVersion: v1 kind: Service metadata: name: zipkin spec: selector: app: zipkin ports: - port: 9411 name: http targetPort: http type: NodePort --- apiVersion: extensions/v1beta1 kind: Deployment metadata: name: zipkin spec: replicas: 1 strategy: type: RollingUpdate template: metadata: labels: app: zipkin spec: containers: - name: zipkin image: openzipkin/zipkin imagePullPolicy: Always ports: - name: http containerPort: 9411 resources: limits: cpu: "1" memory: 256Mi
--- apiVersion: v1 kind: Service metadata: name: zipkin spec: selector: app: zipkin ports: - port: 9411 name: http targetPort: http type: NodePort --- apiVersion: extensions/v1beta1 kind: Deployment metadata: name: zipkin spec: replicas: 1 strategy: type: RollingUpdate template: metadata: labels: app: zipkin spec: containers: - name: zipkin image: openzipkin/zipkin imagePullPolicy: Always ports: - name: http containerPort: 9411
Remove resource limits from Zipkin
Remove resource limits from Zipkin This commit removes the resource limits from Zipkin's deployment because this would lead to pods not getting scheduled on Kubernaut due to insufficient CPU available.
YAML
apache-2.0
datawire/ambassador,datawire/ambassador,datawire/ambassador,datawire/ambassador,datawire/ambassador
yaml
## Code Before: --- apiVersion: v1 kind: Service metadata: name: zipkin spec: selector: app: zipkin ports: - port: 9411 name: http targetPort: http type: NodePort --- apiVersion: extensions/v1beta1 kind: Deployment metadata: name: zipkin spec: replicas: 1 strategy: type: RollingUpdate template: metadata: labels: app: zipkin spec: containers: - name: zipkin image: openzipkin/zipkin imagePullPolicy: Always ports: - name: http containerPort: 9411 resources: limits: cpu: "1" memory: 256Mi ## Instruction: Remove resource limits from Zipkin This commit removes the resource limits from Zipkin's deployment because this would lead to pods not getting scheduled on Kubernaut due to insufficient CPU available. ## Code After: --- apiVersion: v1 kind: Service metadata: name: zipkin spec: selector: app: zipkin ports: - port: 9411 name: http targetPort: http type: NodePort --- apiVersion: extensions/v1beta1 kind: Deployment metadata: name: zipkin spec: replicas: 1 strategy: type: RollingUpdate template: metadata: labels: app: zipkin spec: containers: - name: zipkin image: openzipkin/zipkin imagePullPolicy: Always ports: - name: http containerPort: 9411
--- apiVersion: v1 kind: Service metadata: name: zipkin spec: selector: app: zipkin ports: - port: 9411 name: http targetPort: http type: NodePort --- apiVersion: extensions/v1beta1 kind: Deployment metadata: name: zipkin spec: replicas: 1 strategy: type: RollingUpdate template: metadata: labels: app: zipkin spec: containers: - name: zipkin image: openzipkin/zipkin imagePullPolicy: Always ports: - name: http containerPort: 9411 - resources: - limits: - cpu: "1" - memory: 256Mi
4
0.105263
0
4
470ddb05acaf1d71e9bd9a74bd770f343c74c414
gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/node_search_base.html
gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/node_search_base.html
<h3>Search</h3> <form data-abide class="search" id="node_search_form" method="POST" action=""> <!-- Here the same url is used/applied for search url, from which this current page is accessed. --> {% csrf_token %} <div class="row collapse"> <div class="small-10 columns"> <input id="search_field" name="search_field" type="text" placeholder="Search by name/tags..." value="{{query|default_if_none:''}}" required /> <small class="error">Must enter some keyword to search!!!</small> </div> <div class="small-2 columns"> <button type="submit" class="button postfix"><i class="fi-magnifying-glass"></i></button> </div> </div> </form>
<form data-abide class="search" id="node_search_form" method="POST" action=""> <!-- Here the same url is used/applied for search url, from which this current page is accessed. --> {% csrf_token %} <div class="row collapse"> <div class="small-10 columns"> <input id="search_field" name="search_field" type="text" placeholder="Search by name/tags..." value="{{query|default_if_none:''}}" required /> <small class="error">Must enter some keyword to search!!!</small> </div> <div class="small-2 columns"> <button type="submit" class="button postfix"><i class="fi-magnifying-glass"></i></button> </div> </div> </form>
Remove 'Search' title header since it is redundant with the search box
Remove 'Search' title header since it is redundant with the search box
HTML
agpl-3.0
sunnychaudhari/gstudio,gnowledge/gstudio,sunnychaudhari/gstudio,makfire/gstudio,supriyasawant/gstudio,supriyasawant/gstudio,AvadootNachankar/gstudio,AvadootNachankar/gstudio,gnowledge/gstudio,sunnychaudhari/gstudio,olympian94/gstudio,gnowledge/gstudio,makfire/gstudio,olympian94/gstudio,Dhiru/gstudio,makfire/gstudio,sunnychaudhari/gstudio,AvadootNachankar/gstudio,Dhiru/gstudio,Dhiru/gstudio,AvadootNachankar/gstudio,Dhiru/gstudio,olympian94/gstudio,makfire/gstudio,gnowledge/gstudio,olympian94/gstudio,olympian94/gstudio,gnowledge/gstudio,supriyasawant/gstudio,olympian94/gstudio,supriyasawant/gstudio
html
## Code Before: <h3>Search</h3> <form data-abide class="search" id="node_search_form" method="POST" action=""> <!-- Here the same url is used/applied for search url, from which this current page is accessed. --> {% csrf_token %} <div class="row collapse"> <div class="small-10 columns"> <input id="search_field" name="search_field" type="text" placeholder="Search by name/tags..." value="{{query|default_if_none:''}}" required /> <small class="error">Must enter some keyword to search!!!</small> </div> <div class="small-2 columns"> <button type="submit" class="button postfix"><i class="fi-magnifying-glass"></i></button> </div> </div> </form> ## Instruction: Remove 'Search' title header since it is redundant with the search box ## Code After: <form data-abide class="search" id="node_search_form" method="POST" action=""> <!-- Here the same url is used/applied for search url, from which this current page is accessed. --> {% csrf_token %} <div class="row collapse"> <div class="small-10 columns"> <input id="search_field" name="search_field" type="text" placeholder="Search by name/tags..." value="{{query|default_if_none:''}}" required /> <small class="error">Must enter some keyword to search!!!</small> </div> <div class="small-2 columns"> <button type="submit" class="button postfix"><i class="fi-magnifying-glass"></i></button> </div> </div> </form>
- <h3>Search</h3> <form data-abide class="search" id="node_search_form" method="POST" action=""> <!-- Here the same url is used/applied for search url, from which this current page is accessed. --> {% csrf_token %} <div class="row collapse"> <div class="small-10 columns"> <input id="search_field" name="search_field" type="text" placeholder="Search by name/tags..." value="{{query|default_if_none:''}}" required /> <small class="error">Must enter some keyword to search!!!</small> </div> <div class="small-2 columns"> <button type="submit" class="button postfix"><i class="fi-magnifying-glass"></i></button> </div> </div> </form>
1
0.071429
0
1
454e232792a4cf8dbb07bc87e89338ea47be1519
idea_town/frontend/static-src/app/views/base-view.js
idea_town/frontend/static-src/app/views/base-view.js
import AmpersandView from 'ampersand-view'; import mustache from 'mustache'; // BaseView just abstracts out stuff we seem to use in all the views export default AmpersandView.extend({ // override _template with a mustache template _template: '', template(ctx) { return mustache.render(this._template, ctx); }, render() { this.beforeRender(); AmpersandView.prototype.render.apply(this, arguments); this.afterRender(); this.localizeRendered(); if (this.model) { this.model.on('change', () => this.localizeRendered); } }, getL10nArgs() { // Most common case for l10n args comes from the current model - e.g. on // experiment detail page. return this.model ? this.model.toJSON() : {}; }, localizeRendered() { const args = this.getL10nArgs(); const argsJSON = JSON.stringify(args); // HACK: Slap the same data-l10n-args data on every localized node, because // the most common case is they all need the same model data. const nodes = this.el.querySelectorAll('[data-l10n-id]'); for (const node of nodes) { node.setAttribute('data-l10n-args', argsJSON); } }, // implement in subclasses beforeRender() {}, afterRender() {} });
import AmpersandView from 'ampersand-view'; import mustache from 'mustache'; // BaseView just abstracts out stuff we seem to use in all the views export default AmpersandView.extend({ // override _template with a mustache template _template: '', template(ctx) { return mustache.render(this._template, ctx); }, render() { this.beforeRender(); AmpersandView.prototype.render.apply(this, arguments); this.afterRender(); this.localizeRendered(); if (this.model) { this.model.on('change', () => this.localizeRendered); } }, getL10nArgs() { // Most common case for l10n args comes from the current model - e.g. on // experiment detail page. return this.model ? this.model.toJSON() : {}; }, localizeRendered() { const args = this.getL10nArgs(); const argsJSON = JSON.stringify(args); // HACK: Slap the same data-l10n-args data on every localized node, because // the most common case is they all need the same model data. const nodes = this.queryAll('[data-l10n-id]'); for (const node of nodes) { node.setAttribute('data-l10n-args', argsJSON); } }, // implement in subclasses beforeRender() {}, afterRender() {} });
Use an array, not a NodeList, to allow for-of iteration of l10n nodes
Use an array, not a NodeList, to allow for-of iteration of l10n nodes
JavaScript
mpl-2.0
mozilla/idea-town,clouserw/testpilot,fzzzy/testpilot,fzzzy/testpilot,chuckharmston/testpilot,flodolo/testpilot,lmorchard/testpilot,lmorchard/idea-town-server,mozilla/testpilot,6a68/idea-town,mozilla/idea-town,lmorchard/idea-town-server,mozilla/testpilot,lmorchard/idea-town,clouserw/testpilot,6a68/idea-town,ckprice/testpilot,mozilla/testpilot,flodolo/testpilot,chuckharmston/testpilot,lmorchard/testpilot,ckprice/testpilot,lmorchard/idea-town,mozilla/testpilot,meandavejustice/testpilot,mozilla/idea-town-server,lmorchard/idea-town-server,lmorchard/idea-town,lmorchard/idea-town-server,mathjazz/testpilot,mozilla/idea-town,meandavejustice/testpilot,dannycoates/testpilot,fzzzy/testpilot,mozilla/idea-town-server,clouserw/testpilot,meandavejustice/testpilot,6a68/idea-town,dannycoates/testpilot,mozilla/idea-town-server,lmorchard/testpilot,fzzzy/testpilot,ckprice/testpilot,mathjazz/testpilot,mozilla/idea-town-server,mathjazz/testpilot,flodolo/testpilot,ckprice/testpilot,chuckharmston/testpilot,6a68/testpilot,dannycoates/testpilot,chuckharmston/testpilot,dannycoates/testpilot,6a68/testpilot,lmorchard/idea-town,meandavejustice/testpilot,lmorchard/testpilot,mathjazz/testpilot,6a68/testpilot,6a68/idea-town,6a68/testpilot,mozilla/idea-town,clouserw/testpilot,flodolo/testpilot
javascript
## Code Before: import AmpersandView from 'ampersand-view'; import mustache from 'mustache'; // BaseView just abstracts out stuff we seem to use in all the views export default AmpersandView.extend({ // override _template with a mustache template _template: '', template(ctx) { return mustache.render(this._template, ctx); }, render() { this.beforeRender(); AmpersandView.prototype.render.apply(this, arguments); this.afterRender(); this.localizeRendered(); if (this.model) { this.model.on('change', () => this.localizeRendered); } }, getL10nArgs() { // Most common case for l10n args comes from the current model - e.g. on // experiment detail page. return this.model ? this.model.toJSON() : {}; }, localizeRendered() { const args = this.getL10nArgs(); const argsJSON = JSON.stringify(args); // HACK: Slap the same data-l10n-args data on every localized node, because // the most common case is they all need the same model data. const nodes = this.el.querySelectorAll('[data-l10n-id]'); for (const node of nodes) { node.setAttribute('data-l10n-args', argsJSON); } }, // implement in subclasses beforeRender() {}, afterRender() {} }); ## Instruction: Use an array, not a NodeList, to allow for-of iteration of l10n nodes ## Code After: import AmpersandView from 'ampersand-view'; import mustache from 'mustache'; // BaseView just abstracts out stuff we seem to use in all the views export default AmpersandView.extend({ // override _template with a mustache template _template: '', template(ctx) { return mustache.render(this._template, ctx); }, render() { this.beforeRender(); AmpersandView.prototype.render.apply(this, arguments); this.afterRender(); this.localizeRendered(); if (this.model) { this.model.on('change', () => this.localizeRendered); } }, getL10nArgs() { // Most common case for l10n args comes from the current model - e.g. on // experiment detail page. return this.model ? this.model.toJSON() : {}; }, localizeRendered() { const args = this.getL10nArgs(); const argsJSON = JSON.stringify(args); // HACK: Slap the same data-l10n-args data on every localized node, because // the most common case is they all need the same model data. const nodes = this.queryAll('[data-l10n-id]'); for (const node of nodes) { node.setAttribute('data-l10n-args', argsJSON); } }, // implement in subclasses beforeRender() {}, afterRender() {} });
import AmpersandView from 'ampersand-view'; import mustache from 'mustache'; // BaseView just abstracts out stuff we seem to use in all the views export default AmpersandView.extend({ // override _template with a mustache template _template: '', template(ctx) { return mustache.render(this._template, ctx); }, render() { this.beforeRender(); AmpersandView.prototype.render.apply(this, arguments); this.afterRender(); this.localizeRendered(); if (this.model) { this.model.on('change', () => this.localizeRendered); } }, getL10nArgs() { // Most common case for l10n args comes from the current model - e.g. on // experiment detail page. return this.model ? this.model.toJSON() : {}; }, localizeRendered() { const args = this.getL10nArgs(); const argsJSON = JSON.stringify(args); // HACK: Slap the same data-l10n-args data on every localized node, because // the most common case is they all need the same model data. - const nodes = this.el.querySelectorAll('[data-l10n-id]'); ? --- -------- + const nodes = this.queryAll('[data-l10n-id]'); for (const node of nodes) { node.setAttribute('data-l10n-args', argsJSON); } }, // implement in subclasses beforeRender() {}, afterRender() {} });
2
0.044444
1
1
f492eff36ac6c33fdf3441e651d9c1c521ce825e
trails-log/app/views/users/_index.html.erb
trails-log/app/views/users/_index.html.erb
<% @users.each do |user| %> <a class="item other-hiker" id="hikers<%= user.id %>" href="/users/<%= user.id %>"> <div class="content"> <div class="ui header"> <%= user.firstname %> <%= user.lastname %> </div> <div class="description"> <%= user.city %>, <%= user.state %> </div> </div> </a> <% end %>
<% @users.each do |user| %> <a class="item other-hiker" id="hikers<%= user.id %>" href="/users/<%= user.id %>"> <img class="ui avatar image" src="<%= avatar_url(user)%>"> <div class="content"> <div class="ui header"> <%= user.firstname %> <%= user.lastname %> </div> <div class="description"> <%= user.city %>, <%= user.state %> </div> </div> </a> <% end %>
Add gravatar to other hikers on all hikers page
Add gravatar to other hikers on all hikers page
HTML+ERB
mit
team-artemis/hike-logger,team-artemis/hike-logger,team-artemis/hike-logger-be,team-artemis/hike-logger-be,team-artemis/hike-logger-be,team-artemis/hike-logger
html+erb
## Code Before: <% @users.each do |user| %> <a class="item other-hiker" id="hikers<%= user.id %>" href="/users/<%= user.id %>"> <div class="content"> <div class="ui header"> <%= user.firstname %> <%= user.lastname %> </div> <div class="description"> <%= user.city %>, <%= user.state %> </div> </div> </a> <% end %> ## Instruction: Add gravatar to other hikers on all hikers page ## Code After: <% @users.each do |user| %> <a class="item other-hiker" id="hikers<%= user.id %>" href="/users/<%= user.id %>"> <img class="ui avatar image" src="<%= avatar_url(user)%>"> <div class="content"> <div class="ui header"> <%= user.firstname %> <%= user.lastname %> </div> <div class="description"> <%= user.city %>, <%= user.state %> </div> </div> </a> <% end %>
<% @users.each do |user| %> <a class="item other-hiker" id="hikers<%= user.id %>" href="/users/<%= user.id %>"> - + <img class="ui avatar image" src="<%= avatar_url(user)%>"> <div class="content"> <div class="ui header"> <%= user.firstname %> <%= user.lastname %> </div> <div class="description"> <%= user.city %>, <%= user.state %> </div> </div> </a> <% end %>
2
0.125
1
1
e61395fd1445b9097263a09fb7383e222207fa35
README.md
README.md
An app for the [Anchorage Summer Bike Commute Challenge](http://bicycleanchorage.org/). ## Test [Test Site](http://bca-summer-bike-challenge.heroku.com) ## Development ### Environment * Ruby 1.9.2p290 * Rails 3.2.1 ### Basics * Checkout code: `git clone git@github.com:ResourceDataInc/summer_beat_down_extreme_biking_challenge` * Install prerequisites: `bundle install` ### Heroku See [this](https://devcenter.heroku.com/articles/rails3) article for more information on Heroku and Rails. * Add the heroku remote: `git remote add heroku git@bca-summer-bike-challenge.git` * Add heroku login credentials: `heroku keys:add` ### Dev Process Use small feature branches for development. When a feature is complete and ready to be merged, initiate a Pull Request on GitHub to merge your `feature_branch` *into* the `master` branch. Other team members will then review your changes. Once everyone agrees the feature is good to go, go ahead and merge your branch in.
An app for the [Anchorage Summer Bike Commute Challenge](http://bicycleanchorage.org/). ## Test [Test Site](http://bca-summer-bike-challenge.heroku.com) ## Development ### Environment * Ruby 1.9.3 p194 * Rails 3.2.3 ### Basics * Checkout code: `git clone git@github.com:ResourceDataInc/summer_beat_down_extreme_biking_challenge` * Install prerequisites: `bundle install` ### Heroku See [this](https://devcenter.heroku.com/articles/rails3) article for more information on Heroku and Rails. * Add the heroku remote: `git remote add heroku git@bca-summer-bike-challenge.git` * Add heroku login credentials: `heroku keys:add` ### Dev Process Use small feature branches for development. When a feature is complete and ready to be merged, initiate a Pull Request on GitHub to merge your `feature_branch` *into* the `master` branch. Other team members will then review your changes. Once everyone agrees the feature is good to go, go ahead and merge your branch in. ### Secrets I started to set this up from scratch and got bored so used [this](http://railsapps.github.com/tutorial-rails-bootstrap-devise-cancan.html).
Update ruby and rails version used.
Update ruby and rails version used.
Markdown
mit
Ehryk/Ride-MN,ResourceDataInc/commuter_challenge,Ehryk/Ride-MN,ResourceDataInc/commuter_challenge,Ehryk/Ride-MN,ResourceDataInc/commuter_challenge,ResourceDataInc/commuter_challenge,Ehryk/Ride-MN
markdown
## Code Before: An app for the [Anchorage Summer Bike Commute Challenge](http://bicycleanchorage.org/). ## Test [Test Site](http://bca-summer-bike-challenge.heroku.com) ## Development ### Environment * Ruby 1.9.2p290 * Rails 3.2.1 ### Basics * Checkout code: `git clone git@github.com:ResourceDataInc/summer_beat_down_extreme_biking_challenge` * Install prerequisites: `bundle install` ### Heroku See [this](https://devcenter.heroku.com/articles/rails3) article for more information on Heroku and Rails. * Add the heroku remote: `git remote add heroku git@bca-summer-bike-challenge.git` * Add heroku login credentials: `heroku keys:add` ### Dev Process Use small feature branches for development. When a feature is complete and ready to be merged, initiate a Pull Request on GitHub to merge your `feature_branch` *into* the `master` branch. Other team members will then review your changes. Once everyone agrees the feature is good to go, go ahead and merge your branch in. ## Instruction: Update ruby and rails version used. ## Code After: An app for the [Anchorage Summer Bike Commute Challenge](http://bicycleanchorage.org/). ## Test [Test Site](http://bca-summer-bike-challenge.heroku.com) ## Development ### Environment * Ruby 1.9.3 p194 * Rails 3.2.3 ### Basics * Checkout code: `git clone git@github.com:ResourceDataInc/summer_beat_down_extreme_biking_challenge` * Install prerequisites: `bundle install` ### Heroku See [this](https://devcenter.heroku.com/articles/rails3) article for more information on Heroku and Rails. * Add the heroku remote: `git remote add heroku git@bca-summer-bike-challenge.git` * Add heroku login credentials: `heroku keys:add` ### Dev Process Use small feature branches for development. When a feature is complete and ready to be merged, initiate a Pull Request on GitHub to merge your `feature_branch` *into* the `master` branch. Other team members will then review your changes. Once everyone agrees the feature is good to go, go ahead and merge your branch in. ### Secrets I started to set this up from scratch and got bored so used [this](http://railsapps.github.com/tutorial-rails-bootstrap-devise-cancan.html).
An app for the [Anchorage Summer Bike Commute Challenge](http://bicycleanchorage.org/). ## Test [Test Site](http://bca-summer-bike-challenge.heroku.com) ## Development ### Environment - * Ruby 1.9.2p290 ? ^ ^ ^ + * Ruby 1.9.3 p194 ? ^^ ^ ^ - * Rails 3.2.1 ? ^ + * Rails 3.2.3 ? ^ ### Basics * Checkout code: `git clone git@github.com:ResourceDataInc/summer_beat_down_extreme_biking_challenge` * Install prerequisites: `bundle install` ### Heroku See [this](https://devcenter.heroku.com/articles/rails3) article for more information on Heroku and Rails. * Add the heroku remote: `git remote add heroku git@bca-summer-bike-challenge.git` * Add heroku login credentials: `heroku keys:add` ### Dev Process Use small feature branches for development. When a feature is complete and ready to be merged, initiate a Pull Request on GitHub to merge your `feature_branch` *into* the `master` branch. Other team members will then review your changes. Once everyone agrees the feature is good to go, go ahead and merge your branch in. + + ### Secrets + I started to set this up from scratch and got bored so used [this](http://railsapps.github.com/tutorial-rails-bootstrap-devise-cancan.html).
7
0.318182
5
2
d884bcc1848360e1996d301669efa72f603af823
server/language_pool.go
server/language_pool.go
package server import ( "errors" "sync" "time" ) type LanguagePool struct { mutex sync.RWMutex languages map[string]*Language } func NewLanguagePool() *LanguagePool { p := new(LanguagePool) p.languages = make(map[string]*Language) return p } func (lp *LanguagePool) Add(l *Language) error { lp.mutex.Lock() defer lp.mutex.Unlock() if _, ok := lp.languages[l.Name]; ok { return errors.New("Language with this name already exists") } lp.languages[l.Name] = l return nil } func (lp *LanguagePool) Remove(l *Language) { lp.mutex.Lock() defer lp.mutex.Unlock() delete(lp.languages, l.Name) } func (lp *LanguagePool) Get(name string) *Language { language, ok := lp.languages[name] if !ok { language = NewLanguage(name) languages.Add(language) } return language } func (lp *LanguagePool) Broadcast(sender *Client, message []byte) { now := time.Now() for _, language := range lp.languages { language.Send(sender, now, message) } }
package server import ( "sync" "time" ) type LanguagePool struct { mutex sync.Mutex languages map[string]*Language } func NewLanguagePool() *LanguagePool { p := new(LanguagePool) p.languages = make(map[string]*Language) return p } func (lp *LanguagePool) Remove(l *Language) { lp.mutex.Lock() defer lp.mutex.Unlock() delete(lp.languages, l.Name) } func (lp *LanguagePool) Get(name string) *Language { lp.mutex.Lock() defer lp.mutex.Unlock() language, ok := lp.languages[name] if !ok { language = NewLanguage(name) lp.languages[language.Name] = language } return language } func (lp *LanguagePool) Broadcast(sender *Client, message []byte) { lp.mutex.Lock() defer lp.mutex.Unlock() now := time.Now() for _, language := range lp.languages { language.Send(sender, now, message) } }
Use mutex instead of RWMutex in language
Use mutex instead of RWMutex in language
Go
mit
MStoykov/mazungumzo
go
## Code Before: package server import ( "errors" "sync" "time" ) type LanguagePool struct { mutex sync.RWMutex languages map[string]*Language } func NewLanguagePool() *LanguagePool { p := new(LanguagePool) p.languages = make(map[string]*Language) return p } func (lp *LanguagePool) Add(l *Language) error { lp.mutex.Lock() defer lp.mutex.Unlock() if _, ok := lp.languages[l.Name]; ok { return errors.New("Language with this name already exists") } lp.languages[l.Name] = l return nil } func (lp *LanguagePool) Remove(l *Language) { lp.mutex.Lock() defer lp.mutex.Unlock() delete(lp.languages, l.Name) } func (lp *LanguagePool) Get(name string) *Language { language, ok := lp.languages[name] if !ok { language = NewLanguage(name) languages.Add(language) } return language } func (lp *LanguagePool) Broadcast(sender *Client, message []byte) { now := time.Now() for _, language := range lp.languages { language.Send(sender, now, message) } } ## Instruction: Use mutex instead of RWMutex in language ## Code After: package server import ( "sync" "time" ) type LanguagePool struct { mutex sync.Mutex languages map[string]*Language } func NewLanguagePool() *LanguagePool { p := new(LanguagePool) p.languages = make(map[string]*Language) return p } func (lp *LanguagePool) Remove(l *Language) { lp.mutex.Lock() defer lp.mutex.Unlock() delete(lp.languages, l.Name) } func (lp *LanguagePool) Get(name string) *Language { lp.mutex.Lock() defer lp.mutex.Unlock() language, ok := lp.languages[name] if !ok { language = NewLanguage(name) lp.languages[language.Name] = language } return language } func (lp *LanguagePool) Broadcast(sender *Client, message []byte) { lp.mutex.Lock() defer lp.mutex.Unlock() now := time.Now() for _, language := range lp.languages { language.Send(sender, now, message) } }
package server import ( - "errors" "sync" "time" ) type LanguagePool struct { - mutex sync.RWMutex ? -- + mutex sync.Mutex languages map[string]*Language } func NewLanguagePool() *LanguagePool { p := new(LanguagePool) p.languages = make(map[string]*Language) return p - } - - func (lp *LanguagePool) Add(l *Language) error { - lp.mutex.Lock() - defer lp.mutex.Unlock() - - if _, ok := lp.languages[l.Name]; ok { - return errors.New("Language with this name already exists") - } - - lp.languages[l.Name] = l - return nil } func (lp *LanguagePool) Remove(l *Language) { lp.mutex.Lock() defer lp.mutex.Unlock() delete(lp.languages, l.Name) } func (lp *LanguagePool) Get(name string) *Language { + lp.mutex.Lock() + defer lp.mutex.Unlock() + language, ok := lp.languages[name] if !ok { language = NewLanguage(name) - languages.Add(language) + lp.languages[language.Name] = language } return language } func (lp *LanguagePool) Broadcast(sender *Client, message []byte) { + lp.mutex.Lock() + defer lp.mutex.Unlock() + now := time.Now() for _, language := range lp.languages { language.Send(sender, now, message) } }
23
0.433962
8
15
5a45a312eebe9e432b066b99d914b49a2adb920c
openfaas/yaml2json/function/handler.py
openfaas/yaml2json/function/handler.py
import os import sys import json import yaml def handle(data, **parms): def yaml2json(ydata): """ Convert YAML to JSON (output: JSON) """ try: d = yaml.load(ydata, Loader=yaml.BaseLoader) except Exception as e: d = {'error': '{}'.format(e)} return json.dumps(d) def json2yaml(jdata): """ Convert JSON to YAML (output: YAML) """ try: d = json.loads(jdata) except Exception as e: d = {'error': '{}'.format(e)} return yaml.dump(d, default_flow_style=False) if parms.get('reverse') == 'true': print(json2yaml(data)) else: print(yaml2json(data))
import os import sys import json import yaml def yaml2json(data): """ Convert YAML to JSON (output: JSON) """ try: d = yaml.load(data, Loader=yaml.BaseLoader) except Exception as e: d = {'error': '{}'.format(e)} return json.dumps(d) def json2yaml(data): """ Convert JSON to YAML (output: YAML) """ try: d = json.loads(data) except Exception as e: d = {'error': '{}'.format(e)} return yaml.dump(d, default_flow_style=False) def handle(data, **parms): if parms.get('reverse') == 'true': print(json2yaml(data)) else: print(yaml2json(data))
Make handle function to behave similar as main function
Make handle function to behave similar as main function
Python
mit
psyhomb/serverless
python
## Code Before: import os import sys import json import yaml def handle(data, **parms): def yaml2json(ydata): """ Convert YAML to JSON (output: JSON) """ try: d = yaml.load(ydata, Loader=yaml.BaseLoader) except Exception as e: d = {'error': '{}'.format(e)} return json.dumps(d) def json2yaml(jdata): """ Convert JSON to YAML (output: YAML) """ try: d = json.loads(jdata) except Exception as e: d = {'error': '{}'.format(e)} return yaml.dump(d, default_flow_style=False) if parms.get('reverse') == 'true': print(json2yaml(data)) else: print(yaml2json(data)) ## Instruction: Make handle function to behave similar as main function ## Code After: import os import sys import json import yaml def yaml2json(data): """ Convert YAML to JSON (output: JSON) """ try: d = yaml.load(data, Loader=yaml.BaseLoader) except Exception as e: d = {'error': '{}'.format(e)} return json.dumps(d) def json2yaml(data): """ Convert JSON to YAML (output: YAML) """ try: d = json.loads(data) except Exception as e: d = {'error': '{}'.format(e)} return yaml.dump(d, default_flow_style=False) def handle(data, **parms): if parms.get('reverse') == 'true': print(json2yaml(data)) else: print(yaml2json(data))
import os import sys import json import yaml - def handle(data, **parms): - def yaml2json(ydata): ? -- - + def yaml2json(data): - """ ? -- + """ - Convert YAML to JSON (output: JSON) ? -- + Convert YAML to JSON (output: JSON) - """ ? -- + """ - try: ? -- + try: - d = yaml.load(ydata, Loader=yaml.BaseLoader) ? -- - + d = yaml.load(data, Loader=yaml.BaseLoader) - except Exception as e: ? -- + except Exception as e: - d = {'error': '{}'.format(e)} ? -- + d = {'error': '{}'.format(e)} - return json.dumps(d) ? -- + return json.dumps(d) - def json2yaml(jdata): ? -- - + def json2yaml(data): - """ ? -- + """ - Convert JSON to YAML (output: YAML) ? -- + Convert JSON to YAML (output: YAML) - """ ? -- + """ - try: ? -- + try: - d = json.loads(jdata) ? -- - + d = json.loads(data) - except Exception as e: ? -- + except Exception as e: - d = {'error': '{}'.format(e)} ? -- + d = {'error': '{}'.format(e)} - return yaml.dump(d, default_flow_style=False) ? -- + return yaml.dump(d, default_flow_style=False) + def handle(data, **parms): if parms.get('reverse') == 'true': print(json2yaml(data)) else: print(yaml2json(data))
38
1.055556
19
19
7e634a57c62d380cc5f5e28264a101ca6dd4b8ba
test/scripts/runtime.gp
test/scripts/runtime.gp
reset set ylabel 'time(sec)' set style fill solid set title 'perfomance comparison' set term png enhanced font 'Verdana,10' set output 'runtime.png' plot [:][:80]'output.txt' using 2:xtic(1) with histogram title 'original', \ '' using ($0-0.2):($2+4):2 with labels title ' ', \ '' using 3:xtic(1) with histogram title 'optimized' , \ '' using ($0):($3+1):3 with labels title ' ', \ '' using 4:xtic(1) with histogram title 'B+ tree' , \ '' using ($0+0.35):($4+3):4 with labels title ' ', \ '' using 5:xtic(1) with histogram title 'B+ tree with bulk loading' , \ '' using ($0+0.45):($5+5):5 with labels title ' ', \
reset set ylabel 'time(sec)' set style fill solid set title 'perfomance comparison' set term png enhanced font 'Verdana,10' set output 'runtime1.png' plot [:][:0.0005]'output.txt' using 2:xtic(1) with histogram title 'original', \ '' using 3:xtic(1) with histogram title 'optimized' , \ '' using 4:xtic(1) with histogram title 'B+ tree' , \ '' using 5:xtic(1) with histogram title 'B+ tree bulk' , \ '' using ($0+0.1):(0.0001):2 with labels title ' ' textcolor lt 1, \ '' using ($0+0.1):(0.00012):3 with labels title ' ' textcolor lt 2, \ '' using ($0+0.1):(0.00014):4 with labels title ' ' textcolor lt 3, \ '' using ($0+0.1):(0.00016):5 with labels title ' ' textcolor lt 4, \
Modify gnuplot script, rearrange scales and text color
Modify gnuplot script, rearrange scales and text color
Gnuplot
mit
sysprog-Concurrent-BTree/bplus-tree,sysprog-Concurrent-BTree/bplus-tree,sysprog-Concurrent-BTree/bplus-tree
gnuplot
## Code Before: reset set ylabel 'time(sec)' set style fill solid set title 'perfomance comparison' set term png enhanced font 'Verdana,10' set output 'runtime.png' plot [:][:80]'output.txt' using 2:xtic(1) with histogram title 'original', \ '' using ($0-0.2):($2+4):2 with labels title ' ', \ '' using 3:xtic(1) with histogram title 'optimized' , \ '' using ($0):($3+1):3 with labels title ' ', \ '' using 4:xtic(1) with histogram title 'B+ tree' , \ '' using ($0+0.35):($4+3):4 with labels title ' ', \ '' using 5:xtic(1) with histogram title 'B+ tree with bulk loading' , \ '' using ($0+0.45):($5+5):5 with labels title ' ', \ ## Instruction: Modify gnuplot script, rearrange scales and text color ## Code After: reset set ylabel 'time(sec)' set style fill solid set title 'perfomance comparison' set term png enhanced font 'Verdana,10' set output 'runtime1.png' plot [:][:0.0005]'output.txt' using 2:xtic(1) with histogram title 'original', \ '' using 3:xtic(1) with histogram title 'optimized' , \ '' using 4:xtic(1) with histogram title 'B+ tree' , \ '' using 5:xtic(1) with histogram title 'B+ tree bulk' , \ '' using ($0+0.1):(0.0001):2 with labels title ' ' textcolor lt 1, \ '' using ($0+0.1):(0.00012):3 with labels title ' ' textcolor lt 2, \ '' using ($0+0.1):(0.00014):4 with labels title ' ' textcolor lt 3, \ '' using ($0+0.1):(0.00016):5 with labels title ' ' textcolor lt 4, \
reset set ylabel 'time(sec)' set style fill solid set title 'perfomance comparison' set term png enhanced font 'Verdana,10' - set output 'runtime.png' + set output 'runtime1.png' ? + - plot [:][:80]'output.txt' using 2:xtic(1) with histogram title 'original', \ ? - + plot [:][:0.0005]'output.txt' using 2:xtic(1) with histogram title 'original', \ ? +++++ - '' using ($0-0.2):($2+4):2 with labels title ' ', \ '' using 3:xtic(1) with histogram title 'optimized' , \ - '' using ($0):($3+1):3 with labels title ' ', \ '' using 4:xtic(1) with histogram title 'B+ tree' , \ - '' using ($0+0.35):($4+3):4 with labels title ' ', \ - '' using 5:xtic(1) with histogram title 'B+ tree with bulk loading' , \ ? ----- -------- + '' using 5:xtic(1) with histogram title 'B+ tree bulk' , \ + '' using ($0+0.1):(0.0001):2 with labels title ' ' textcolor lt 1, \ + '' using ($0+0.1):(0.00012):3 with labels title ' ' textcolor lt 2, \ + '' using ($0+0.1):(0.00014):4 with labels title ' ' textcolor lt 3, \ - '' using ($0+0.45):($5+5):5 with labels title ' ', \ ? ^^ ^^^^ + '' using ($0+0.1):(0.00016):5 with labels title ' ' textcolor lt 4, \ ? ^ ^^^^^^^ +++++++++++++++
14
0.933333
7
7
8fab6f1d1658e09ff69360c9d7f23b998175e3ba
atom/styles.less
atom/styles.less
@import "ui-variables"; @import "syntax-variables"; // Variables to define style @editor-font: "PragmataPro", "SFMono-Regular", "SF Mono Regular"; @editor-font-size: 14px; @line-height: 1.2; @ui-font: ".SFNSText-Regular", "San Francisco Text", "Cantarell", "Segoe UI"; @ui-font-size: @editor-font-size - 2; @tab-bar-height: @ui-font-size + 16; // Setup editor font and size atom-text-editor { font-family: @editor-font; font-size: @editor-font-size; line-height: @line-height; padding-top: 2px; } // Customize UI .theme-one-dark-ui, .theme-one-light-ui { font-family: @ui-font; font-size: @ui-font-size; } atom-text-editor::shadow { // Make wrap guide and invisible characters slightly transparent .invisible-character, .indent-guide, .wrap-guide { opacity: 0.5; } // Smaller line numbers .line-numbers .line-number { font-size: @editor-font-size * 0.8; line-height: @editor-font-size * @line-height; } .highlights .highlight-selected.light-theme .region { border-color: fadeout(@syntax-text-color, 60%); } }
@import "ui-variables"; @import "syntax-variables"; // Variables to define style @editor-font: "PragmataPro", "SFMono-Regular", "SF Mono Regular"; @editor-font-size: 14px; @line-height: 1.2; @ui-font-size: @editor-font-size - 2; @tab-bar-height: @ui-font-size + 16; // Setup editor font and size atom-text-editor { font-family: @editor-font; font-size: @editor-font-size; line-height: @line-height; padding-top: 2px; } // Customize UI .theme-one-dark-ui, .theme-one-light-ui { font-size: @ui-font-size; } atom-text-editor::shadow { // Make wrap guide and invisible characters slightly transparent .invisible-character, .indent-guide, .wrap-guide { opacity: 0.5; } // Smaller line numbers .line-numbers .line-number { font-size: @editor-font-size * 0.8; line-height: @editor-font-size * @line-height; } .highlights .highlight-selected.light-theme .region { border-color: fadeout(@syntax-text-color, 60%); } }
Fix fonts in Atom ui
Fix fonts in Atom ui
Less
mit
mgee/dotfiles,mgee/dotfiles,mgee/dotfiles
less
## Code Before: @import "ui-variables"; @import "syntax-variables"; // Variables to define style @editor-font: "PragmataPro", "SFMono-Regular", "SF Mono Regular"; @editor-font-size: 14px; @line-height: 1.2; @ui-font: ".SFNSText-Regular", "San Francisco Text", "Cantarell", "Segoe UI"; @ui-font-size: @editor-font-size - 2; @tab-bar-height: @ui-font-size + 16; // Setup editor font and size atom-text-editor { font-family: @editor-font; font-size: @editor-font-size; line-height: @line-height; padding-top: 2px; } // Customize UI .theme-one-dark-ui, .theme-one-light-ui { font-family: @ui-font; font-size: @ui-font-size; } atom-text-editor::shadow { // Make wrap guide and invisible characters slightly transparent .invisible-character, .indent-guide, .wrap-guide { opacity: 0.5; } // Smaller line numbers .line-numbers .line-number { font-size: @editor-font-size * 0.8; line-height: @editor-font-size * @line-height; } .highlights .highlight-selected.light-theme .region { border-color: fadeout(@syntax-text-color, 60%); } } ## Instruction: Fix fonts in Atom ui ## Code After: @import "ui-variables"; @import "syntax-variables"; // Variables to define style @editor-font: "PragmataPro", "SFMono-Regular", "SF Mono Regular"; @editor-font-size: 14px; @line-height: 1.2; @ui-font-size: @editor-font-size - 2; @tab-bar-height: @ui-font-size + 16; // Setup editor font and size atom-text-editor { font-family: @editor-font; font-size: @editor-font-size; line-height: @line-height; padding-top: 2px; } // Customize UI .theme-one-dark-ui, .theme-one-light-ui { font-size: @ui-font-size; } atom-text-editor::shadow { // Make wrap guide and invisible characters slightly transparent .invisible-character, .indent-guide, .wrap-guide { opacity: 0.5; } // Smaller line numbers .line-numbers .line-number { font-size: @editor-font-size * 0.8; line-height: @editor-font-size * @line-height; } .highlights .highlight-selected.light-theme .region { border-color: fadeout(@syntax-text-color, 60%); } }
@import "ui-variables"; @import "syntax-variables"; // Variables to define style @editor-font: "PragmataPro", "SFMono-Regular", "SF Mono Regular"; @editor-font-size: 14px; @line-height: 1.2; - @ui-font: ".SFNSText-Regular", "San Francisco Text", "Cantarell", "Segoe UI"; @ui-font-size: @editor-font-size - 2; @tab-bar-height: @ui-font-size + 16; // Setup editor font and size atom-text-editor { font-family: @editor-font; font-size: @editor-font-size; line-height: @line-height; padding-top: 2px; } // Customize UI .theme-one-dark-ui, .theme-one-light-ui { - font-family: @ui-font; font-size: @ui-font-size; } atom-text-editor::shadow { // Make wrap guide and invisible characters slightly transparent .invisible-character, .indent-guide, .wrap-guide { opacity: 0.5; } // Smaller line numbers .line-numbers .line-number { font-size: @editor-font-size * 0.8; line-height: @editor-font-size * @line-height; } .highlights .highlight-selected.light-theme .region { border-color: fadeout(@syntax-text-color, 60%); } }
2
0.05
0
2
084bc03c8f2438d773e673dbe760592e036ffca5
.github/workflows/auto-update.yml
.github/workflows/auto-update.yml
name: Auto Update on: # schedule: # - cron: '*/5 * * * *' workflow_dispatch: jobs: nix: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 with: submodules: 'recursive' - uses: cachix/install-nix-action@v8 - uses: cachix/cachix-action@v6 with: name: vulkan-haskell signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' - name: Init git run: | git config user.name 'Joe Hermaszewski' git config user.email 'expipiplus1@users.noreply.github.com' - run: ./update.sh - name: Create Pull Request uses: peter-evans/create-pull-request@v3
name: Auto Update on: # schedule: # - cron: '*/5 * * * *' workflow_dispatch: jobs: nix: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 with: submodules: 'recursive' - uses: cachix/install-nix-action@v8 - uses: cachix/cachix-action@v6 with: name: vulkan-haskell signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' - uses: tibdex/github-app-token@v1 id: generate-token with: app_id: '${{ secrets.APP_ID }}' private_key: '${{ secrets.APP_PRIVATE_KEY }}' - name: Init git run: | git config user.name 'Three Of Twelve' git config user.email 'expipiplus1@users.noreply.github.com' - run: ./update.sh - run: export VULKAN_VERSION=$(git -C generate-new/Vulkan-Docs describe --tags | head -n1) - name: Create Pull Request uses: peter-evans/create-pull-request@v3 with: token: ${{ steps.generate-token.outputs.token }} delete-branch: true branch: vulkan-updates-${{ env.VULKAN_VERSION }} title: Update Vulkan to ${{ env.VULKAN_VERSION }}
Use bot to open update PR
Use bot to open update PR
YAML
bsd-3-clause
expipiplus1/vulkan,expipiplus1/vulkan,expipiplus1/vulkan
yaml
## Code Before: name: Auto Update on: # schedule: # - cron: '*/5 * * * *' workflow_dispatch: jobs: nix: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 with: submodules: 'recursive' - uses: cachix/install-nix-action@v8 - uses: cachix/cachix-action@v6 with: name: vulkan-haskell signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' - name: Init git run: | git config user.name 'Joe Hermaszewski' git config user.email 'expipiplus1@users.noreply.github.com' - run: ./update.sh - name: Create Pull Request uses: peter-evans/create-pull-request@v3 ## Instruction: Use bot to open update PR ## Code After: name: Auto Update on: # schedule: # - cron: '*/5 * * * *' workflow_dispatch: jobs: nix: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 with: submodules: 'recursive' - uses: cachix/install-nix-action@v8 - uses: cachix/cachix-action@v6 with: name: vulkan-haskell signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' - uses: tibdex/github-app-token@v1 id: generate-token with: app_id: '${{ secrets.APP_ID }}' private_key: '${{ secrets.APP_PRIVATE_KEY }}' - name: Init git run: | git config user.name 'Three Of Twelve' git config user.email 'expipiplus1@users.noreply.github.com' - run: ./update.sh - run: export VULKAN_VERSION=$(git -C generate-new/Vulkan-Docs describe --tags | head -n1) - name: Create Pull Request uses: peter-evans/create-pull-request@v3 with: token: ${{ steps.generate-token.outputs.token }} delete-branch: true branch: vulkan-updates-${{ env.VULKAN_VERSION }} title: Update Vulkan to ${{ env.VULKAN_VERSION }}
name: Auto Update on: # schedule: # - cron: '*/5 * * * *' workflow_dispatch: jobs: nix: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 with: submodules: 'recursive' - uses: cachix/install-nix-action@v8 - uses: cachix/cachix-action@v6 with: name: vulkan-haskell signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' + - uses: tibdex/github-app-token@v1 + id: generate-token + with: + app_id: '${{ secrets.APP_ID }}' + private_key: '${{ secrets.APP_PRIVATE_KEY }}' + - name: Init git run: | - git config user.name 'Joe Hermaszewski' ? ^^ ^ ^^^^^ ---- + git config user.name 'Three Of Twelve' ? ^^^^ ^^^^^ ^^ git config user.email 'expipiplus1@users.noreply.github.com' - run: ./update.sh + - run: export VULKAN_VERSION=$(git -C generate-new/Vulkan-Docs describe --tags | head -n1) - name: Create Pull Request uses: peter-evans/create-pull-request@v3 + with: + token: ${{ steps.generate-token.outputs.token }} + delete-branch: true + branch: vulkan-updates-${{ env.VULKAN_VERSION }} + title: Update Vulkan to ${{ env.VULKAN_VERSION }}
14
0.5
13
1
195060629b52bf9edc80766a81d6525269d21ef5
Cargo.toml
Cargo.toml
[package] name = "skeleton" version = "0.3.0" authors = ["Valentin Brandl <vbrandl@riseup.net>"] description = "Skeleton project manager" homepage = "https://github.com/ntzwrk/skeleton" repository = "https://github.com/ntzwrk/skeleton" readme = "README.md" license = "MIT" build = "build.rs" [badges] travis-ci = { repository = "ntzwrk/skeleton", branch = "master" } [dependencies] toml = "0.3" serde = "0.9" serde_derive = "0.9" clap = "2.22" hyper = "0.10" hyper-native-tls = "0.2" [build-dependencies] clap = "2.22"
[package] name = "skeleton" version = "0.3.0" authors = ["Valentin Brandl <vbrandl@riseup.net>"] description = "Skeleton project manager" homepage = "https://github.com/ntzwrk/skeleton" repository = "https://github.com/ntzwrk/skeleton" readme = "README.md" license = "MIT" build = "build.rs" [badges] travis-ci = { repository = "ntzwrk/skeleton", branch = "master" } [dependencies] toml = "0.3" serde = "0.9" serde_derive = "0.9" clap = "2.22" hyper = "0.10" hyper-native-tls = "0.2" [build-dependencies] clap = "2.22" [profile.release] lto = true
Enable link time optimization for release builds
Enable link time optimization for release builds
TOML
mit
ntzwrk/skeleton,ntzwrk/skeleton
toml
## Code Before: [package] name = "skeleton" version = "0.3.0" authors = ["Valentin Brandl <vbrandl@riseup.net>"] description = "Skeleton project manager" homepage = "https://github.com/ntzwrk/skeleton" repository = "https://github.com/ntzwrk/skeleton" readme = "README.md" license = "MIT" build = "build.rs" [badges] travis-ci = { repository = "ntzwrk/skeleton", branch = "master" } [dependencies] toml = "0.3" serde = "0.9" serde_derive = "0.9" clap = "2.22" hyper = "0.10" hyper-native-tls = "0.2" [build-dependencies] clap = "2.22" ## Instruction: Enable link time optimization for release builds ## Code After: [package] name = "skeleton" version = "0.3.0" authors = ["Valentin Brandl <vbrandl@riseup.net>"] description = "Skeleton project manager" homepage = "https://github.com/ntzwrk/skeleton" repository = "https://github.com/ntzwrk/skeleton" readme = "README.md" license = "MIT" build = "build.rs" [badges] travis-ci = { repository = "ntzwrk/skeleton", branch = "master" } [dependencies] toml = "0.3" serde = "0.9" serde_derive = "0.9" clap = "2.22" hyper = "0.10" hyper-native-tls = "0.2" [build-dependencies] clap = "2.22" [profile.release] lto = true
[package] name = "skeleton" version = "0.3.0" authors = ["Valentin Brandl <vbrandl@riseup.net>"] description = "Skeleton project manager" homepage = "https://github.com/ntzwrk/skeleton" repository = "https://github.com/ntzwrk/skeleton" readme = "README.md" license = "MIT" build = "build.rs" [badges] travis-ci = { repository = "ntzwrk/skeleton", branch = "master" } [dependencies] toml = "0.3" serde = "0.9" serde_derive = "0.9" clap = "2.22" hyper = "0.10" hyper-native-tls = "0.2" [build-dependencies] clap = "2.22" + + [profile.release] + lto = true
3
0.12
3
0
e9463cc24d68ebce3c6e71ed6f039244aabca931
aggregate_root/lib/aggregate_root/repository.rb
aggregate_root/lib/aggregate_root/repository.rb
module AggregateRoot class Repository def initialize(event_store = default_event_store) @event_store = event_store end def store(aggregate) aggregate.unpublished_events.each do |event| event_store.publish_event(event, aggregate.id) end end def load(aggregate) events = event_store.read_stream_events_forward(aggregate.id) events.each do |event| aggregate.apply_old_event(event) end end attr_accessor :event_store def default_event_store AggregateRoot.configuration.default_event_store end end end
module AggregateRoot class Repository def initialize(event_store = default_event_store) @event_store = event_store end def store(aggregate) aggregate.unpublished_events.each do |event| event_store.publish_event(event, stream_name: aggregate.id) end end def load(aggregate) events = event_store.read_stream_events_forward(aggregate.id) events.each do |event| aggregate.apply_old_event(event) end end attr_accessor :event_store def default_event_store AggregateRoot.configuration.default_event_store end end end
Fix - missing keyword argument name
Fix - missing keyword argument name
Ruby
mit
RailsEventStore/rails_event_store,arkency/rails_event_store,mpraglowski/rails_event_store,RailsEventStore/rails_event_store,mpraglowski/rails_event_store,RailsEventStore/rails_event_store,arkency/rails_event_store,RailsEventStore/rails_event_store,arkency/rails_event_store,mlomnicki/rails_event_store,mlomnicki/rails_event_store,mpraglowski/rails_event_store,arkency/rails_event_store,mpraglowski/rails_event_store
ruby
## Code Before: module AggregateRoot class Repository def initialize(event_store = default_event_store) @event_store = event_store end def store(aggregate) aggregate.unpublished_events.each do |event| event_store.publish_event(event, aggregate.id) end end def load(aggregate) events = event_store.read_stream_events_forward(aggregate.id) events.each do |event| aggregate.apply_old_event(event) end end attr_accessor :event_store def default_event_store AggregateRoot.configuration.default_event_store end end end ## Instruction: Fix - missing keyword argument name ## Code After: module AggregateRoot class Repository def initialize(event_store = default_event_store) @event_store = event_store end def store(aggregate) aggregate.unpublished_events.each do |event| event_store.publish_event(event, stream_name: aggregate.id) end end def load(aggregate) events = event_store.read_stream_events_forward(aggregate.id) events.each do |event| aggregate.apply_old_event(event) end end attr_accessor :event_store def default_event_store AggregateRoot.configuration.default_event_store end end end
module AggregateRoot class Repository def initialize(event_store = default_event_store) @event_store = event_store end def store(aggregate) aggregate.unpublished_events.each do |event| - event_store.publish_event(event, aggregate.id) + event_store.publish_event(event, stream_name: aggregate.id) ? +++++++++++++ end end def load(aggregate) events = event_store.read_stream_events_forward(aggregate.id) events.each do |event| aggregate.apply_old_event(event) end end attr_accessor :event_store def default_event_store AggregateRoot.configuration.default_event_store end end end
2
0.076923
1
1
e3a044614afa821cb7d847332e3be37897574fc3
css/app.css
css/app.css
html, body { margin: 0; padding: 0; width: 100%; height: 100%; } html { box-sizing: border-box; } * { box-sizing: inherit; } html, body { background: #f3f3f3; color: #676a6c; font-family: 'Lato', sans-serif; font-weight: 300; } #wrapper { border-top: 4px solid #e7eaec; margin: 50px; background: white; padding: 20px; } h1 { font-weight: 700; margin: 0; } button { border: 1px solid #e7eaec; background: #f3f3f3; padding: 10px; font-family: 'Lato', sans-serif; font-weight: 700; margin-right: 20px; margin-bottom: 20px; }
html, body { margin: 0; padding: 0; width: 100%; height: 100%; } html { box-sizing: border-box; } * { box-sizing: inherit; } html, body { background: #f3f3f3; color: #676a6c; font-family: 'Lato', sans-serif; font-weight: 300; } #wrapper { border-top: 4px solid #e7eaec; margin: 50px; background: white; padding: 20px; } h1 { font-weight: 700; margin: 0; } button { border: 1px solid #e7eaec; background: #f3f3f3; padding: 10px; font-family: 'Lato', sans-serif; font-weight: 700; margin-right: 20px; margin-bottom: 20px; } .plugin-container { background: #f3f3f3; padding: 20px; margin-top: 20px; }
Add some styling for the plugin container
Add some styling for the plugin container
CSS
mit
rolfvandekrol/flux-react-requirejs-layers,rolfvandekrol/flux-react-requirejs-layers
css
## Code Before: html, body { margin: 0; padding: 0; width: 100%; height: 100%; } html { box-sizing: border-box; } * { box-sizing: inherit; } html, body { background: #f3f3f3; color: #676a6c; font-family: 'Lato', sans-serif; font-weight: 300; } #wrapper { border-top: 4px solid #e7eaec; margin: 50px; background: white; padding: 20px; } h1 { font-weight: 700; margin: 0; } button { border: 1px solid #e7eaec; background: #f3f3f3; padding: 10px; font-family: 'Lato', sans-serif; font-weight: 700; margin-right: 20px; margin-bottom: 20px; } ## Instruction: Add some styling for the plugin container ## Code After: html, body { margin: 0; padding: 0; width: 100%; height: 100%; } html { box-sizing: border-box; } * { box-sizing: inherit; } html, body { background: #f3f3f3; color: #676a6c; font-family: 'Lato', sans-serif; font-weight: 300; } #wrapper { border-top: 4px solid #e7eaec; margin: 50px; background: white; padding: 20px; } h1 { font-weight: 700; margin: 0; } button { border: 1px solid #e7eaec; background: #f3f3f3; padding: 10px; font-family: 'Lato', sans-serif; font-weight: 700; margin-right: 20px; margin-bottom: 20px; } .plugin-container { background: #f3f3f3; padding: 20px; margin-top: 20px; }
html, body { margin: 0; padding: 0; width: 100%; height: 100%; } html { box-sizing: border-box; } * { box-sizing: inherit; } html, body { background: #f3f3f3; color: #676a6c; font-family: 'Lato', sans-serif; font-weight: 300; } #wrapper { border-top: 4px solid #e7eaec; margin: 50px; background: white; padding: 20px; } h1 { font-weight: 700; margin: 0; } button { border: 1px solid #e7eaec; background: #f3f3f3; padding: 10px; font-family: 'Lato', sans-serif; font-weight: 700; margin-right: 20px; margin-bottom: 20px; } + + .plugin-container { + background: #f3f3f3; + padding: 20px; + margin-top: 20px; + }
6
0.139535
6
0
7a2f4d50f703ff44d8b20b214e90759b97e579a4
cdl/templates/registration/_presentation_attendees.html
cdl/templates/registration/_presentation_attendees.html
{% load i18n %} <tr> <td>&nbsp;</td> <td colspan="3"> {% if proposal.presentation.registration.attendees_nb > 0 %} <div class="panel panel-default"> <div class="panel-heading"> <i class="icon-bullhorn"></i> <h3 class="panel-title"><a data-toggle="collapse" href="#collapseAttendees{{ proposal.presentation.pk }}"> {% trans "Attendees:" %} {{ proposal.presentation.registration.attendees_nb }} / {{ proposal.presentation.registration.max_attendees }} max <span class="carret"></span></a></h3> </div> <div id="collapseAttendees{{ proposal.presentation.pk }}" class="panel-collapse collapse"> <a class="btn btn-default btn-sm pull-right" href="{% url "registration_edit" proposal.presentation.pk %}">{% trans "Edit registration" %}</a> <ul> {% for attendee in proposal.presentation.registration.all_attendees %} <li>{{ attendee }} &mdash; {{ attendee.email }} <p>{{ attendee.insterests }}</p> </li> {% endfor %} </ul> </div> </div> {% else %} <p>Insription ouvertes pour {{ proposal.presentation.registration.max_attendees }} personnes. Pas d'inscrit pour le moment. <a class="btn btn-default btn-sm" href="{% url "registration_edit" proposal.presentation.pk %}">{% trans "Edit registration" %}</a></p> {% endif %} </td> </tr>
{% load i18n %} <tr> <td>&nbsp;</td> <td colspan="3"> {% if proposal.presentation.registration.attendees_nb > 0 %} <div class="panel panel-default"> <div class="panel-heading"> <i class="icon-bullhorn"></i> <h3 class="panel-title"><a data-toggle="collapse" href="#collapseAttendees{{ proposal.presentation.pk }}"> {% trans "Attendees:" %} {{ proposal.presentation.registration.attendees_nb }} / {{ proposal.presentation.registration.max_attendees }} max <span class="carret"></span></a></h3> </div> <div id="collapseAttendees{{ proposal.presentation.pk }}" class="panel-body collapse"> <a class="btn btn-default btn-sm pull-right" href="{% url "registration_edit" proposal.presentation.pk %}">{% trans "Edit registration" %}</a> <ul> {% for attendee in proposal.presentation.registration.all_attendees %} <li>{{ attendee }} &mdash; {{ attendee.email }} <p>{{ attendee.interests|linebreaks }}</p> </li> {% endfor %} </ul> </div> </div> {% else %} <p>Insription ouvertes pour {{ proposal.presentation.registration.max_attendees }} personnes. Pas d'inscrit pour le moment. <a class="btn btn-default btn-sm" href="{% url "registration_edit" proposal.presentation.pk %}">{% trans "Edit registration" %}</a></p> {% endif %} </td> </tr>
Fix interests displayed in speaker dashboard
Fix interests displayed in speaker dashboard
HTML
mit
toulibre/cdl-site,toulibre/cdl-site
html
## Code Before: {% load i18n %} <tr> <td>&nbsp;</td> <td colspan="3"> {% if proposal.presentation.registration.attendees_nb > 0 %} <div class="panel panel-default"> <div class="panel-heading"> <i class="icon-bullhorn"></i> <h3 class="panel-title"><a data-toggle="collapse" href="#collapseAttendees{{ proposal.presentation.pk }}"> {% trans "Attendees:" %} {{ proposal.presentation.registration.attendees_nb }} / {{ proposal.presentation.registration.max_attendees }} max <span class="carret"></span></a></h3> </div> <div id="collapseAttendees{{ proposal.presentation.pk }}" class="panel-collapse collapse"> <a class="btn btn-default btn-sm pull-right" href="{% url "registration_edit" proposal.presentation.pk %}">{% trans "Edit registration" %}</a> <ul> {% for attendee in proposal.presentation.registration.all_attendees %} <li>{{ attendee }} &mdash; {{ attendee.email }} <p>{{ attendee.insterests }}</p> </li> {% endfor %} </ul> </div> </div> {% else %} <p>Insription ouvertes pour {{ proposal.presentation.registration.max_attendees }} personnes. Pas d'inscrit pour le moment. <a class="btn btn-default btn-sm" href="{% url "registration_edit" proposal.presentation.pk %}">{% trans "Edit registration" %}</a></p> {% endif %} </td> </tr> ## Instruction: Fix interests displayed in speaker dashboard ## Code After: {% load i18n %} <tr> <td>&nbsp;</td> <td colspan="3"> {% if proposal.presentation.registration.attendees_nb > 0 %} <div class="panel panel-default"> <div class="panel-heading"> <i class="icon-bullhorn"></i> <h3 class="panel-title"><a data-toggle="collapse" href="#collapseAttendees{{ proposal.presentation.pk }}"> {% trans "Attendees:" %} {{ proposal.presentation.registration.attendees_nb }} / {{ proposal.presentation.registration.max_attendees }} max <span class="carret"></span></a></h3> </div> <div id="collapseAttendees{{ proposal.presentation.pk }}" class="panel-body collapse"> <a class="btn btn-default btn-sm pull-right" href="{% url "registration_edit" proposal.presentation.pk %}">{% trans "Edit registration" %}</a> <ul> {% for attendee in proposal.presentation.registration.all_attendees %} <li>{{ attendee }} &mdash; {{ attendee.email }} <p>{{ attendee.interests|linebreaks }}</p> </li> {% endfor %} </ul> </div> </div> {% else %} <p>Insription ouvertes pour {{ proposal.presentation.registration.max_attendees }} personnes. Pas d'inscrit pour le moment. <a class="btn btn-default btn-sm" href="{% url "registration_edit" proposal.presentation.pk %}">{% trans "Edit registration" %}</a></p> {% endif %} </td> </tr>
{% load i18n %} <tr> <td>&nbsp;</td> <td colspan="3"> {% if proposal.presentation.registration.attendees_nb > 0 %} <div class="panel panel-default"> <div class="panel-heading"> <i class="icon-bullhorn"></i> <h3 class="panel-title"><a data-toggle="collapse" href="#collapseAttendees{{ proposal.presentation.pk }}"> {% trans "Attendees:" %} {{ proposal.presentation.registration.attendees_nb }} / {{ proposal.presentation.registration.max_attendees }} max <span class="carret"></span></a></h3> </div> - <div id="collapseAttendees{{ proposal.presentation.pk }}" class="panel-collapse collapse"> ? ^ ^^^^^^ + <div id="collapseAttendees{{ proposal.presentation.pk }}" class="panel-body collapse"> ? ^ ^^ <a class="btn btn-default btn-sm pull-right" href="{% url "registration_edit" proposal.presentation.pk %}">{% trans "Edit registration" %}</a> <ul> {% for attendee in proposal.presentation.registration.all_attendees %} <li>{{ attendee }} &mdash; {{ attendee.email }} - <p>{{ attendee.insterests }}</p> ? - + <p>{{ attendee.interests|linebreaks }}</p> ? +++++++++++ </li> {% endfor %} </ul> </div> </div> {% else %} <p>Insription ouvertes pour {{ proposal.presentation.registration.max_attendees }} personnes. Pas d'inscrit pour le moment. <a class="btn btn-default btn-sm" href="{% url "registration_edit" proposal.presentation.pk %}">{% trans "Edit registration" %}</a></p> {% endif %} </td> </tr>
4
0.121212
2
2
b689cd7781e995a5998789a8c0d03d41f0510beb
Sources/Extensions/iOS/UINavigationBar.swift
Sources/Extensions/iOS/UINavigationBar.swift
// // UINavigationBar.swift // ZamzamKit // // Created by Basem Emara on 2/21/17. // Copyright © 2017 Zamzam. All rights reserved. // import UIKit public extension UINavigationBar { /// Set transparent navigation bar var transparent: Bool { // http://stackoverflow.com/questions/2315862/make-uinavigationbar-transparent get { return backgroundColor == .clear } set { guard newValue else { setBackgroundImage(nil, for: .default) shadowImage = nil backgroundColor = nil return } // Override point for customization after application launch. // Sets background to a blank/empty image setBackgroundImage(UIImage(), for: .default) // Sets shadow (line below the bar) to a blank image shadowImage = UIImage() // Sets the translucent background color backgroundColor = .clear // Set translucent. (Default value is already true, so this can be removed if desired.) isTranslucent = true } } }
// // UINavigationBar.swift // ZamzamKit // // Created by Basem Emara on 2/21/17. // Copyright © 2017 Zamzam. All rights reserved. // import UIKit public extension UINavigationBar { /// Set transparent navigation bar var transparent: Bool { // http://stackoverflow.com/questions/2315862/make-uinavigationbar-transparent get { return backgroundColor == .clear } set { guard newValue else { setBackgroundImage(nil, for: .default) shadowImage = nil backgroundColor = nil return } // Override point for customization after application launch. // Sets background to a blank/empty image setBackgroundImage(UIImage(), for: .default) // Sets shadow (line below the bar) to a blank image shadowImage = UIImage() // Sets the translucent background color backgroundColor = .clear // Set translucent. (Default value is already true, so this can be removed if desired.) isTranslucent = true } } } public extension UINavigationBar { /// Sets whether the navigation bar shadow is hidden. /// /// - Parameter hidden: Specify true to hide the navigation bar shadow or false to show it. func setShadowHidden(_ hidden: Bool) { // https://stackoverflow.com/a/38745391/235334 setValue(hidden, forKey: "hidesShadow") } }
Add shadow extension to navigation bar
Add shadow extension to navigation bar
Swift
mit
ZamzamInc/ZamzamKit
swift
## Code Before: // // UINavigationBar.swift // ZamzamKit // // Created by Basem Emara on 2/21/17. // Copyright © 2017 Zamzam. All rights reserved. // import UIKit public extension UINavigationBar { /// Set transparent navigation bar var transparent: Bool { // http://stackoverflow.com/questions/2315862/make-uinavigationbar-transparent get { return backgroundColor == .clear } set { guard newValue else { setBackgroundImage(nil, for: .default) shadowImage = nil backgroundColor = nil return } // Override point for customization after application launch. // Sets background to a blank/empty image setBackgroundImage(UIImage(), for: .default) // Sets shadow (line below the bar) to a blank image shadowImage = UIImage() // Sets the translucent background color backgroundColor = .clear // Set translucent. (Default value is already true, so this can be removed if desired.) isTranslucent = true } } } ## Instruction: Add shadow extension to navigation bar ## Code After: // // UINavigationBar.swift // ZamzamKit // // Created by Basem Emara on 2/21/17. // Copyright © 2017 Zamzam. All rights reserved. // import UIKit public extension UINavigationBar { /// Set transparent navigation bar var transparent: Bool { // http://stackoverflow.com/questions/2315862/make-uinavigationbar-transparent get { return backgroundColor == .clear } set { guard newValue else { setBackgroundImage(nil, for: .default) shadowImage = nil backgroundColor = nil return } // Override point for customization after application launch. // Sets background to a blank/empty image setBackgroundImage(UIImage(), for: .default) // Sets shadow (line below the bar) to a blank image shadowImage = UIImage() // Sets the translucent background color backgroundColor = .clear // Set translucent. (Default value is already true, so this can be removed if desired.) isTranslucent = true } } } public extension UINavigationBar { /// Sets whether the navigation bar shadow is hidden. /// /// - Parameter hidden: Specify true to hide the navigation bar shadow or false to show it. func setShadowHidden(_ hidden: Bool) { // https://stackoverflow.com/a/38745391/235334 setValue(hidden, forKey: "hidesShadow") } }
// // UINavigationBar.swift // ZamzamKit // // Created by Basem Emara on 2/21/17. // Copyright © 2017 Zamzam. All rights reserved. // import UIKit public extension UINavigationBar { /// Set transparent navigation bar var transparent: Bool { // http://stackoverflow.com/questions/2315862/make-uinavigationbar-transparent get { return backgroundColor == .clear } set { guard newValue else { setBackgroundImage(nil, for: .default) shadowImage = nil backgroundColor = nil return } // Override point for customization after application launch. // Sets background to a blank/empty image setBackgroundImage(UIImage(), for: .default) // Sets shadow (line below the bar) to a blank image shadowImage = UIImage() // Sets the translucent background color backgroundColor = .clear // Set translucent. (Default value is already true, so this can be removed if desired.) isTranslucent = true } } } + + public extension UINavigationBar { + + /// Sets whether the navigation bar shadow is hidden. + /// + /// - Parameter hidden: Specify true to hide the navigation bar shadow or false to show it. + func setShadowHidden(_ hidden: Bool) { + // https://stackoverflow.com/a/38745391/235334 + setValue(hidden, forKey: "hidesShadow") + } + }
11
0.268293
11
0
4be90200267e7bc732cae6871d6e4910d24a24e6
lib/react_phoenix.ex
lib/react_phoenix.ex
defmodule ReactPhoenix do @moduledoc """ Functions for rendering of React.js components. """ @doc """ (Depricated) provides functions for client-side rendering of React.js components As of v0.4.0, please use `ElixirCabinet.ClientSide.react_component/2` instead. Provided for backward compatability for versions < 0.4.0. """ def react_component(name, props \\ %{}), do: ReactPhoenix.ClientSide.react_component(name, props) @doc """ (Depricated) provides functions for client-side rendering of React.js components As of v0.4.0, please use `ElixirCabinet.ClientSide.react_component/3` instead. Provided for backward compatability for versions < 0.4.0. """ def react_component(name, props, opts), do: ReactPhoenix.ClientSide.react_component(name, props, opts) end
defmodule ReactPhoenix do @moduledoc """ Functions for rendering of React.js components. """ @doc """ (Depricated) provides functions for client-side rendering of React.js components As of v0.4.0, please use `ReactPhoenix.ClientSide.react_component/2` instead. Provided for backward compatability for versions < 0.4.0. """ def react_component(name, props \\ %{}), do: ReactPhoenix.ClientSide.react_component(name, props) @doc """ (Depricated) provides functions for client-side rendering of React.js components As of v0.4.0, please use `ReactPhoenix.ClientSide.react_component/3` instead. Provided for backward compatability for versions < 0.4.0. """ def react_component(name, props, opts), do: ReactPhoenix.ClientSide.react_component(name, props, opts) end
FIX docs: remove reference to ElixirCabinet
FIX docs: remove reference to ElixirCabinet
Elixir
mit
geolessel/react-phoenix
elixir
## Code Before: defmodule ReactPhoenix do @moduledoc """ Functions for rendering of React.js components. """ @doc """ (Depricated) provides functions for client-side rendering of React.js components As of v0.4.0, please use `ElixirCabinet.ClientSide.react_component/2` instead. Provided for backward compatability for versions < 0.4.0. """ def react_component(name, props \\ %{}), do: ReactPhoenix.ClientSide.react_component(name, props) @doc """ (Depricated) provides functions for client-side rendering of React.js components As of v0.4.0, please use `ElixirCabinet.ClientSide.react_component/3` instead. Provided for backward compatability for versions < 0.4.0. """ def react_component(name, props, opts), do: ReactPhoenix.ClientSide.react_component(name, props, opts) end ## Instruction: FIX docs: remove reference to ElixirCabinet ## Code After: defmodule ReactPhoenix do @moduledoc """ Functions for rendering of React.js components. """ @doc """ (Depricated) provides functions for client-side rendering of React.js components As of v0.4.0, please use `ReactPhoenix.ClientSide.react_component/2` instead. Provided for backward compatability for versions < 0.4.0. """ def react_component(name, props \\ %{}), do: ReactPhoenix.ClientSide.react_component(name, props) @doc """ (Depricated) provides functions for client-side rendering of React.js components As of v0.4.0, please use `ReactPhoenix.ClientSide.react_component/3` instead. Provided for backward compatability for versions < 0.4.0. """ def react_component(name, props, opts), do: ReactPhoenix.ClientSide.react_component(name, props, opts) end
defmodule ReactPhoenix do @moduledoc """ Functions for rendering of React.js components. """ @doc """ (Depricated) provides functions for client-side rendering of React.js components - As of v0.4.0, please use `ElixirCabinet.ClientSide.react_component/2` instead. Provided for backward ? ^^ --------- + As of v0.4.0, please use `ReactPhoenix.ClientSide.react_component/2` instead. Provided for backward ? ^^^^^^^^^^ compatability for versions < 0.4.0. """ def react_component(name, props \\ %{}), do: ReactPhoenix.ClientSide.react_component(name, props) @doc """ (Depricated) provides functions for client-side rendering of React.js components - As of v0.4.0, please use `ElixirCabinet.ClientSide.react_component/3` instead. Provided for backward ? ^^ --------- + As of v0.4.0, please use `ReactPhoenix.ClientSide.react_component/3` instead. Provided for backward ? ^^^^^^^^^^ compatability for versions < 0.4.0. """ def react_component(name, props, opts), do: ReactPhoenix.ClientSide.react_component(name, props, opts) end
4
0.173913
2
2
8c7983a505f722809958e7f5743abeb96e5ff893
boris.toml
boris.toml
[boris] version = 1 [build.submodules] command = [["dangling-refs"]] [build.validate] command = [["validate-respect"]] [build.dist-7-8] [build.dist-7-10] [build.dist-8-0] [build.branches-7-8] [build.branches-7-10] [build.branches-8-0]
[boris] version = 1 [build.dist-7-8] [build.dist-7-10] [build.dist-8-0] [build.dist-validate] command = [["validate-respect"]] [build.branches-7-8] [build.branches-7-10] [build.branches-8-0] [build.all-rebased] command = [["rebased"]] [build.all-submodules] command = [["dangling-refs"]]
Add rebase check and fix for new whitelist
Add rebase check and fix for new whitelist
TOML
bsd-3-clause
ambiata/mafia
toml
## Code Before: [boris] version = 1 [build.submodules] command = [["dangling-refs"]] [build.validate] command = [["validate-respect"]] [build.dist-7-8] [build.dist-7-10] [build.dist-8-0] [build.branches-7-8] [build.branches-7-10] [build.branches-8-0] ## Instruction: Add rebase check and fix for new whitelist ## Code After: [boris] version = 1 [build.dist-7-8] [build.dist-7-10] [build.dist-8-0] [build.dist-validate] command = [["validate-respect"]] [build.branches-7-8] [build.branches-7-10] [build.branches-8-0] [build.all-rebased] command = [["rebased"]] [build.all-submodules] command = [["dangling-refs"]]
[boris] version = 1 - [build.submodules] - command = [["dangling-refs"]] - + [build.dist-7-8] + [build.dist-7-10] + [build.dist-8-0] - [build.validate] + [build.dist-validate] ? +++++ command = [["validate-respect"]] - [build.dist-7-8] + [build.branches-7-8] + [build.branches-7-10] + [build.branches-8-0] + [build.all-rebased] + command = [["rebased"]] + [build.all-submodules] + command = [["dangling-refs"]] - [build.dist-7-10] - - [build.dist-8-0] - - [build.branches-7-8] - - [build.branches-7-10] - - [build.branches-8-0]
25
1.25
11
14
cc6bb949b0f4a3c4b6344b219f8b5bae2081e0a4
slave/skia_slave_scripts/download_skimage_files.py
slave/skia_slave_scripts/download_skimage_files.py
""" Download the image files needed to run skimage tool. """ from build_step import BuildStep from utils import gs_utils from utils import sync_bucket_subdir import os import sys class DownloadSKImageFiles(BuildStep): def __init__(self, timeout=12800, no_output_timeout=9600, **kwargs): super (DownloadSKImageFiles, self).__init__( timeout=timeout, no_output_timeout=no_output_timeout, **kwargs) def _DownloadSKImagesFromStorage(self): """Copies over image files from Google Storage if the timestamps differ.""" dest_gsbase = (self._args.get('dest_gsbase') or sync_bucket_subdir.DEFAULT_PERFDATA_GS_BASE) print '\n\n========Downloading image files from Google Storage========\n\n' gs_relative_dir = os.path.join('skimage', 'input') gs_utils.DownloadDirectoryContentsIfChanged( gs_base=dest_gsbase, gs_relative_dir=gs_relative_dir, local_dir=self._skimage_in_dir) def _Run(self): # Locally copy image files from GoogleStorage. self._DownloadSKImagesFromStorage() if '__main__' == __name__: sys.exit(BuildStep.RunBuildStep(DownloadSKImageFiles))
""" Download the image files needed to run skimage tool. """ from build_step import BuildStep from utils import gs_utils from utils import sync_bucket_subdir import posixpath import sys class DownloadSKImageFiles(BuildStep): def __init__(self, timeout=12800, no_output_timeout=9600, **kwargs): super (DownloadSKImageFiles, self).__init__( timeout=timeout, no_output_timeout=no_output_timeout, **kwargs) def _DownloadSKImagesFromStorage(self): """Copies over image files from Google Storage if the timestamps differ.""" dest_gsbase = (self._args.get('dest_gsbase') or sync_bucket_subdir.DEFAULT_PERFDATA_GS_BASE) print '\n\n========Downloading image files from Google Storage========\n\n' gs_relative_dir = posixpath.join('skimage', 'input') gs_utils.DownloadDirectoryContentsIfChanged( gs_base=dest_gsbase, gs_relative_dir=gs_relative_dir, local_dir=self._skimage_in_dir) def _Run(self): # Locally copy image files from GoogleStorage. self._DownloadSKImagesFromStorage() if '__main__' == __name__: sys.exit(BuildStep.RunBuildStep(DownloadSKImageFiles))
Use posixpath for paths in the cloud.
Use posixpath for paths in the cloud. Fixes build break on Windows. R=borenet@google.com Review URL: https://codereview.chromium.org/18074002 git-svn-id: 32fc27f4dcfb6c0385cd9719852b95fe6680452d@9792 2bbb7eff-a529-9590-31e7-b0007b416f81
Python
bsd-3-clause
google/skia-buildbot,Tiger66639/skia-buildbot,google/skia-buildbot,Tiger66639/skia-buildbot,google/skia-buildbot,Tiger66639/skia-buildbot,Tiger66639/skia-buildbot,google/skia-buildbot,google/skia-buildbot,Tiger66639/skia-buildbot,google/skia-buildbot,google/skia-buildbot,Tiger66639/skia-buildbot,google/skia-buildbot,Tiger66639/skia-buildbot
python
## Code Before: """ Download the image files needed to run skimage tool. """ from build_step import BuildStep from utils import gs_utils from utils import sync_bucket_subdir import os import sys class DownloadSKImageFiles(BuildStep): def __init__(self, timeout=12800, no_output_timeout=9600, **kwargs): super (DownloadSKImageFiles, self).__init__( timeout=timeout, no_output_timeout=no_output_timeout, **kwargs) def _DownloadSKImagesFromStorage(self): """Copies over image files from Google Storage if the timestamps differ.""" dest_gsbase = (self._args.get('dest_gsbase') or sync_bucket_subdir.DEFAULT_PERFDATA_GS_BASE) print '\n\n========Downloading image files from Google Storage========\n\n' gs_relative_dir = os.path.join('skimage', 'input') gs_utils.DownloadDirectoryContentsIfChanged( gs_base=dest_gsbase, gs_relative_dir=gs_relative_dir, local_dir=self._skimage_in_dir) def _Run(self): # Locally copy image files from GoogleStorage. self._DownloadSKImagesFromStorage() if '__main__' == __name__: sys.exit(BuildStep.RunBuildStep(DownloadSKImageFiles)) ## Instruction: Use posixpath for paths in the cloud. Fixes build break on Windows. R=borenet@google.com Review URL: https://codereview.chromium.org/18074002 git-svn-id: 32fc27f4dcfb6c0385cd9719852b95fe6680452d@9792 2bbb7eff-a529-9590-31e7-b0007b416f81 ## Code After: """ Download the image files needed to run skimage tool. """ from build_step import BuildStep from utils import gs_utils from utils import sync_bucket_subdir import posixpath import sys class DownloadSKImageFiles(BuildStep): def __init__(self, timeout=12800, no_output_timeout=9600, **kwargs): super (DownloadSKImageFiles, self).__init__( timeout=timeout, no_output_timeout=no_output_timeout, **kwargs) def _DownloadSKImagesFromStorage(self): """Copies over image files from Google Storage if the timestamps differ.""" dest_gsbase = (self._args.get('dest_gsbase') or sync_bucket_subdir.DEFAULT_PERFDATA_GS_BASE) print '\n\n========Downloading image files from Google Storage========\n\n' gs_relative_dir = posixpath.join('skimage', 'input') gs_utils.DownloadDirectoryContentsIfChanged( gs_base=dest_gsbase, gs_relative_dir=gs_relative_dir, local_dir=self._skimage_in_dir) def _Run(self): # Locally copy image files from GoogleStorage. self._DownloadSKImagesFromStorage() if '__main__' == __name__: sys.exit(BuildStep.RunBuildStep(DownloadSKImageFiles))
""" Download the image files needed to run skimage tool. """ from build_step import BuildStep from utils import gs_utils from utils import sync_bucket_subdir - import os + import posixpath import sys class DownloadSKImageFiles(BuildStep): def __init__(self, timeout=12800, no_output_timeout=9600, **kwargs): super (DownloadSKImageFiles, self).__init__( timeout=timeout, no_output_timeout=no_output_timeout, **kwargs) def _DownloadSKImagesFromStorage(self): """Copies over image files from Google Storage if the timestamps differ.""" dest_gsbase = (self._args.get('dest_gsbase') or sync_bucket_subdir.DEFAULT_PERFDATA_GS_BASE) print '\n\n========Downloading image files from Google Storage========\n\n' - gs_relative_dir = os.path.join('skimage', 'input') ? ^ + gs_relative_dir = posixpath.join('skimage', 'input') ? + ^^ gs_utils.DownloadDirectoryContentsIfChanged( gs_base=dest_gsbase, gs_relative_dir=gs_relative_dir, local_dir=self._skimage_in_dir) def _Run(self): # Locally copy image files from GoogleStorage. self._DownloadSKImagesFromStorage() if '__main__' == __name__: sys.exit(BuildStep.RunBuildStep(DownloadSKImageFiles))
4
0.117647
2
2
39b4166d85dba77a91c1e94babe764147b1ec479
test/Transforms/CodeExtractor/2004-11-12-InvokeExtract.ll
test/Transforms/CodeExtractor/2004-11-12-InvokeExtract.ll
; RUN: opt < %s -extract-blocks -disable-output define i32 @foo() { br label %EB EB: ; preds = %0 %V = invoke i32 @foo( ) to label %Cont unwind label %Unw ; <i32> [#uses=1] Cont: ; preds = %EB ret i32 %V Unw: ; preds = %EB unwind }
; RUN: opt < %s -extract-blocks -disable-output define i32 @foo() { br label %EB EB: ; preds = %0 %V = invoke i32 @foo( ) to label %Cont unwind label %Unw ; <i32> [#uses=1] Cont: ; preds = %EB ret i32 %V Unw: ; preds = %EB %exn = landingpad {i8*, i32} personality i32 (...)* @__gcc_personality_v0 catch i8* null resume { i8*, i32 } %exn } declare i32 @__gcc_personality_v0(...)
Update test to remove the 'unwind' instruction.
Update test to remove the 'unwind' instruction. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@140084 91177308-0d34-0410-b5e6-96231b3b80d8
LLVM
bsd-2-clause
dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap
llvm
## Code Before: ; RUN: opt < %s -extract-blocks -disable-output define i32 @foo() { br label %EB EB: ; preds = %0 %V = invoke i32 @foo( ) to label %Cont unwind label %Unw ; <i32> [#uses=1] Cont: ; preds = %EB ret i32 %V Unw: ; preds = %EB unwind } ## Instruction: Update test to remove the 'unwind' instruction. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@140084 91177308-0d34-0410-b5e6-96231b3b80d8 ## Code After: ; RUN: opt < %s -extract-blocks -disable-output define i32 @foo() { br label %EB EB: ; preds = %0 %V = invoke i32 @foo( ) to label %Cont unwind label %Unw ; <i32> [#uses=1] Cont: ; preds = %EB ret i32 %V Unw: ; preds = %EB %exn = landingpad {i8*, i32} personality i32 (...)* @__gcc_personality_v0 catch i8* null resume { i8*, i32 } %exn } declare i32 @__gcc_personality_v0(...)
; RUN: opt < %s -extract-blocks -disable-output define i32 @foo() { br label %EB EB: ; preds = %0 %V = invoke i32 @foo( ) to label %Cont unwind label %Unw ; <i32> [#uses=1] Cont: ; preds = %EB ret i32 %V Unw: ; preds = %EB - unwind + %exn = landingpad {i8*, i32} personality i32 (...)* @__gcc_personality_v0 + catch i8* null + resume { i8*, i32 } %exn } + declare i32 @__gcc_personality_v0(...)
5
0.333333
4
1
eea6e8ad731b598a4a16009e4da79a7c4796766b
_posts/2015-12-09-weihnachten.html
_posts/2015-12-09-weihnachten.html
--- layout: post title: JUG Weihnachtsstammtisch author: JUG KL category : talk --- <p class="event-abstract"> Gemütlicher Gedankenaustausch mit anderen Java-Professionals bei Glühwein und Bratwurst.<!---more---> </p> <p class="event-emphasis">09.12.2015, ab 19:00, Weihnachtsmarkt, Kaiserslautern</p>
--- layout: post title: JUG Weihnachtsstammtisch author: JUG KL category : talk --- <p class="event-abstract"> Gemütlicher Gedankenaustausch mit anderen Java-Professionals bei Glühwein und Bratwurst.<!---more---> </p> <p class="event-emphasis">09.12.2015, ab 19:00, Glühweinstand gegenüber Café am Markt, Weihnachtsmarkt, Kaiserslautern</p>
Add more info about Christmas Event
Add more info about Christmas Event
HTML
mit
jugkl/jugkl.github.io
html
## Code Before: --- layout: post title: JUG Weihnachtsstammtisch author: JUG KL category : talk --- <p class="event-abstract"> Gemütlicher Gedankenaustausch mit anderen Java-Professionals bei Glühwein und Bratwurst.<!---more---> </p> <p class="event-emphasis">09.12.2015, ab 19:00, Weihnachtsmarkt, Kaiserslautern</p> ## Instruction: Add more info about Christmas Event ## Code After: --- layout: post title: JUG Weihnachtsstammtisch author: JUG KL category : talk --- <p class="event-abstract"> Gemütlicher Gedankenaustausch mit anderen Java-Professionals bei Glühwein und Bratwurst.<!---more---> </p> <p class="event-emphasis">09.12.2015, ab 19:00, Glühweinstand gegenüber Café am Markt, Weihnachtsmarkt, Kaiserslautern</p>
--- layout: post title: JUG Weihnachtsstammtisch author: JUG KL category : talk --- <p class="event-abstract"> Gemütlicher Gedankenaustausch mit anderen Java-Professionals bei Glühwein und Bratwurst.<!---more---> </p> - <p class="event-emphasis">09.12.2015, ab 19:00, Weihnachtsmarkt, Kaiserslautern</p> + <p class="event-emphasis">09.12.2015, ab 19:00, Glühweinstand gegenüber Café am Markt, Weihnachtsmarkt, Kaiserslautern</p> ? +++++++++++++++++++++++++++++++++++++++
2
0.166667
1
1
87cc8df3668e4c23490ef7cb46b8a9ad504dd5b3
HISTORY.rdoc
HISTORY.rdoc
* Bug fixes * Undefined words now show a cleaner error. This was apparently not fixed in the prior release === 1.0.0 * Major enhancements: * Change `list` flag to the `all` flag for more clarity. * Remove query from Urban::Web replace with random and search. * Add `url` flag to print the url of the definition. * Minor enhancements: * Add this history file. * Add Urban::Web#fetch for fetching pages from urban dictionary. * Add examples to help. * Remove require 'rubygems' from program and lib. * Test now only stubs singleton instead of class. * Use ~> instead of >= on dependencies. * Replace OpenStruct in Urban::Dictionary with plain Struct. * Move Nokogiri call to Dictionary#process. * Bug fixs: * Passing -v or --version no longer prints help. * Undefined words now show a clean error. * No internet connection now shows a clean error. * Invalid options now show a clean error.
* Major enhancements: * Remove official support for Ruby 1.8.6 * Bug fixes * Undefined words now show a cleaner error. This was apparently not fixed in the prior release === 1.0.0 * Major enhancements: * Change `list` flag to the `all` flag for more clarity. * Remove query from Urban::Web replace with random and search. * Add `url` flag to print the url of the definition. * Minor enhancements: * Add this history file. * Add Urban::Web#fetch for fetching pages from urban dictionary. * Add examples to help. * Remove require 'rubygems' from program and lib. * Test now only stubs singleton instead of class. * Use ~> instead of >= on dependencies. * Replace OpenStruct in Urban::Dictionary with plain Struct. * Move Nokogiri call to Dictionary#process. * Bug fixs: * Passing -v or --version no longer prints help. * Undefined words now show a clean error. * No internet connection now shows a clean error. * Invalid options now show a clean error.
Document lack of 1.8.6 support
Document lack of 1.8.6 support
RDoc
mit
tmiller/urban,tmiller/urban,enilsen16/urban_cli,enilsen16/urban_cli
rdoc
## Code Before: * Bug fixes * Undefined words now show a cleaner error. This was apparently not fixed in the prior release === 1.0.0 * Major enhancements: * Change `list` flag to the `all` flag for more clarity. * Remove query from Urban::Web replace with random and search. * Add `url` flag to print the url of the definition. * Minor enhancements: * Add this history file. * Add Urban::Web#fetch for fetching pages from urban dictionary. * Add examples to help. * Remove require 'rubygems' from program and lib. * Test now only stubs singleton instead of class. * Use ~> instead of >= on dependencies. * Replace OpenStruct in Urban::Dictionary with plain Struct. * Move Nokogiri call to Dictionary#process. * Bug fixs: * Passing -v or --version no longer prints help. * Undefined words now show a clean error. * No internet connection now shows a clean error. * Invalid options now show a clean error. ## Instruction: Document lack of 1.8.6 support ## Code After: * Major enhancements: * Remove official support for Ruby 1.8.6 * Bug fixes * Undefined words now show a cleaner error. This was apparently not fixed in the prior release === 1.0.0 * Major enhancements: * Change `list` flag to the `all` flag for more clarity. * Remove query from Urban::Web replace with random and search. * Add `url` flag to print the url of the definition. * Minor enhancements: * Add this history file. * Add Urban::Web#fetch for fetching pages from urban dictionary. * Add examples to help. * Remove require 'rubygems' from program and lib. * Test now only stubs singleton instead of class. * Use ~> instead of >= on dependencies. * Replace OpenStruct in Urban::Dictionary with plain Struct. * Move Nokogiri call to Dictionary#process. * Bug fixs: * Passing -v or --version no longer prints help. * Undefined words now show a clean error. * No internet connection now shows a clean error. * Invalid options now show a clean error.
+ * Major enhancements: + + * Remove official support for Ruby 1.8.6 + * Bug fixes * Undefined words now show a cleaner error. This was apparently not fixed in the prior release === 1.0.0 * Major enhancements: * Change `list` flag to the `all` flag for more clarity. * Remove query from Urban::Web replace with random and search. * Add `url` flag to print the url of the definition. * Minor enhancements: * Add this history file. * Add Urban::Web#fetch for fetching pages from urban dictionary. * Add examples to help. * Remove require 'rubygems' from program and lib. * Test now only stubs singleton instead of class. * Use ~> instead of >= on dependencies. * Replace OpenStruct in Urban::Dictionary with plain Struct. * Move Nokogiri call to Dictionary#process. * Bug fixs: * Passing -v or --version no longer prints help. * Undefined words now show a clean error. * No internet connection now shows a clean error. * Invalid options now show a clean error.
4
0.133333
4
0
df3f918a0a6430a2e0cddc63029b3c4ff7a08fc8
app/scripts/common/models/ModuleModel.js
app/scripts/common/models/ModuleModel.js
define(['backbone', 'common/utils/padTwo'], function(Backbone, padTwo) { 'use strict'; // Convert exam in Unix time to 12-hour date/time format. We add 8 hours to // the UTC time, then use the getUTC* methods so that they will correspond to // Singapore time regardless of the local time zone. var examStr = function(exam) { if (exam) { var date = new Date(exam + 288e5); var hours = date.getUTCHours(); return padTwo(date.getUTCDate()) + '-' + padTwo(date.getUTCMonth() + 1) + '-' + date.getUTCFullYear() + ' ' + (hours % 12 || 12) + ':' + padTwo(date.getUTCMinutes()) + ' ' + (hours < 12 ? 'AM' : 'PM'); } return null; }; return Backbone.Model.extend({ initialize: function() { this.set('examStr', examStr(this.get('exam'))); } }); });
define(['backbone', 'common/utils/padTwo'], function(Backbone, padTwo) { 'use strict'; // Convert exam in Unix time to 12-hour date/time format. We add 8 hours to // the UTC time, then use the getUTC* methods so that they will correspond to // Singapore time regardless of the local time zone. var examStr = function(exam) { if (exam) { var date = new Date(exam + 288e5); var hours = date.getUTCHours(); return padTwo(date.getUTCDate()) + '-' + padTwo(date.getUTCMonth() + 1) + '-' + date.getUTCFullYear() + ' ' + (hours % 12 || 12) + ':' + padTwo(date.getUTCMinutes()) + ' ' + (hours < 12 ? 'AM' : 'PM'); } return null; }; return Backbone.Model.extend({ idAttribute: 'code', initialize: function() { this.set('examStr', examStr(this.get('exam'))); } }); });
Use code as id attribute for module model
Use code as id attribute for module model
JavaScript
mit
Yunheng/nusmods,nathanajah/nusmods,nathanajah/nusmods,zhouyichen/nusmods,zhouyichen/nusmods,chunqi/nusmods,nusmodifications/nusmods,Yunheng/nusmods,nathanajah/nusmods,nathanajah/nusmods,chunqi/nusmods,nusmodifications/nusmods,Yunheng/nusmods,nusmodifications/nusmods,mauris/nusmods,zhouyichen/nusmods,nusmodifications/nusmods,Yunheng/nusmods,zhouyichen/nusmods,chunqi/nusmods,mauris/nusmods,chunqi/nusmods,mauris/nusmods,Yunheng/nusmods,mauris/nusmods
javascript
## Code Before: define(['backbone', 'common/utils/padTwo'], function(Backbone, padTwo) { 'use strict'; // Convert exam in Unix time to 12-hour date/time format. We add 8 hours to // the UTC time, then use the getUTC* methods so that they will correspond to // Singapore time regardless of the local time zone. var examStr = function(exam) { if (exam) { var date = new Date(exam + 288e5); var hours = date.getUTCHours(); return padTwo(date.getUTCDate()) + '-' + padTwo(date.getUTCMonth() + 1) + '-' + date.getUTCFullYear() + ' ' + (hours % 12 || 12) + ':' + padTwo(date.getUTCMinutes()) + ' ' + (hours < 12 ? 'AM' : 'PM'); } return null; }; return Backbone.Model.extend({ initialize: function() { this.set('examStr', examStr(this.get('exam'))); } }); }); ## Instruction: Use code as id attribute for module model ## Code After: define(['backbone', 'common/utils/padTwo'], function(Backbone, padTwo) { 'use strict'; // Convert exam in Unix time to 12-hour date/time format. We add 8 hours to // the UTC time, then use the getUTC* methods so that they will correspond to // Singapore time regardless of the local time zone. var examStr = function(exam) { if (exam) { var date = new Date(exam + 288e5); var hours = date.getUTCHours(); return padTwo(date.getUTCDate()) + '-' + padTwo(date.getUTCMonth() + 1) + '-' + date.getUTCFullYear() + ' ' + (hours % 12 || 12) + ':' + padTwo(date.getUTCMinutes()) + ' ' + (hours < 12 ? 'AM' : 'PM'); } return null; }; return Backbone.Model.extend({ idAttribute: 'code', initialize: function() { this.set('examStr', examStr(this.get('exam'))); } }); });
define(['backbone', 'common/utils/padTwo'], function(Backbone, padTwo) { 'use strict'; // Convert exam in Unix time to 12-hour date/time format. We add 8 hours to // the UTC time, then use the getUTC* methods so that they will correspond to // Singapore time regardless of the local time zone. var examStr = function(exam) { if (exam) { var date = new Date(exam + 288e5); var hours = date.getUTCHours(); return padTwo(date.getUTCDate()) + '-' + padTwo(date.getUTCMonth() + 1) + '-' + date.getUTCFullYear() + ' ' + (hours % 12 || 12) + ':' + padTwo(date.getUTCMinutes()) + ' ' + (hours < 12 ? 'AM' : 'PM'); } return null; }; return Backbone.Model.extend({ + idAttribute: 'code', initialize: function() { this.set('examStr', examStr(this.get('exam'))); } }); });
1
0.038462
1
0
14a53099870207e785fef5088aa66da19bb64df3
src/node/TopicStream.js
src/node/TopicStream.js
var Topic = require('../core/Topic'); var DuplexStream = require('stream').Duplex; /** * Publish a connected ROS topic to a duplex * stream. This stream can be piped to, which will * publish to the topic */ Topic.prototype.toStream = function(transform) { var topic = this; var hasTransform = typeof transform === 'function'; var stream = new DuplexStream({ objectMode: true }); stream._read = function() {}; // Publish to the topic if someone pipes to stream stream._write = function(chunk, encoding, callback) { if (hasTransform) { chunk = transform(chunk); } if (chunk) { topic.publish(chunk); } callback(); }; this.subscribe(function(message) { stream.push(message); }); this.on('unsubscribe', stream.push.bind(stream, null)); return stream; }; module.exports = Topic;
var Topic = require('../core/Topic'); var DuplexStream = require('stream').Duplex; /** * Publish a connected ROS topic to a duplex * stream. This stream can be piped to, which will * publish to the topic * * @options * * subscribe: whether to subscribe to the topic and start emitting * Data * * publish: whether to register the stream as a publisher to the topic * * transform: a function to change the data to be published * or filter it if false is returned */ Topic.prototype.toStream = function(options) { options = options || {subscribe: true, publish: true}; var topic = this; var hasTransform = typeof options.transform === 'function'; var stream = new DuplexStream({ objectMode: true }); stream._read = function() {}; // Publish to the topic if someone pipes to stream stream._write = function(chunk, encoding, callback) { if (hasTransform) { chunk = options.transform(chunk); } if (chunk === false) { topic.publish(chunk); } callback(); }; if (options.subscribe) { this.subscribe(function(message) { stream.push(message); }); this.on('unsubscribe', stream.push.bind(stream, null)); } if (options.publish) { this.advertise(); } return stream; }; module.exports = Topic;
Make registering as a subscriber or publisher an option for the streaming API
Make registering as a subscriber or publisher an option for the streaming API
JavaScript
bsd-3-clause
jeansebbaklouti/roslibjs,DLu/roslibjs,chrisl8/roslibjs,harmishhk/roslibjs,kbendick/roslibjs,DLu/roslibjs,BennyRe/roslibjs,jeansebbaklouti/roslibjs,DLu/roslibjs,eadlam/roslibjs,harmishhk/roslibjs,eadlam/roslibjs,chrisl8/roslibjs,kbendick/roslibjs,BennyRe/roslibjs,kbendick/roslibjs,harmishhk/roslibjs
javascript
## Code Before: var Topic = require('../core/Topic'); var DuplexStream = require('stream').Duplex; /** * Publish a connected ROS topic to a duplex * stream. This stream can be piped to, which will * publish to the topic */ Topic.prototype.toStream = function(transform) { var topic = this; var hasTransform = typeof transform === 'function'; var stream = new DuplexStream({ objectMode: true }); stream._read = function() {}; // Publish to the topic if someone pipes to stream stream._write = function(chunk, encoding, callback) { if (hasTransform) { chunk = transform(chunk); } if (chunk) { topic.publish(chunk); } callback(); }; this.subscribe(function(message) { stream.push(message); }); this.on('unsubscribe', stream.push.bind(stream, null)); return stream; }; module.exports = Topic; ## Instruction: Make registering as a subscriber or publisher an option for the streaming API ## Code After: var Topic = require('../core/Topic'); var DuplexStream = require('stream').Duplex; /** * Publish a connected ROS topic to a duplex * stream. This stream can be piped to, which will * publish to the topic * * @options * * subscribe: whether to subscribe to the topic and start emitting * Data * * publish: whether to register the stream as a publisher to the topic * * transform: a function to change the data to be published * or filter it if false is returned */ Topic.prototype.toStream = function(options) { options = options || {subscribe: true, publish: true}; var topic = this; var hasTransform = typeof options.transform === 'function'; var stream = new DuplexStream({ objectMode: true }); stream._read = function() {}; // Publish to the topic if someone pipes to stream stream._write = function(chunk, encoding, callback) { if (hasTransform) { chunk = options.transform(chunk); } if (chunk === false) { topic.publish(chunk); } callback(); }; if (options.subscribe) { this.subscribe(function(message) { stream.push(message); }); this.on('unsubscribe', stream.push.bind(stream, null)); } if (options.publish) { this.advertise(); } return stream; }; module.exports = Topic;
var Topic = require('../core/Topic'); var DuplexStream = require('stream').Duplex; /** * Publish a connected ROS topic to a duplex * stream. This stream can be piped to, which will * publish to the topic + * + * @options + * * subscribe: whether to subscribe to the topic and start emitting + * Data + * * publish: whether to register the stream as a publisher to the topic + * * transform: a function to change the data to be published + * or filter it if false is returned */ - Topic.prototype.toStream = function(transform) { ? ^^ ---- + Topic.prototype.toStream = function(options) { ? ++ ^^ + options = options || {subscribe: true, publish: true}; + var topic = this; - var hasTransform = typeof transform === 'function'; + var hasTransform = typeof options.transform === 'function'; ? ++++++++ var stream = new DuplexStream({ objectMode: true }); stream._read = function() {}; // Publish to the topic if someone pipes to stream stream._write = function(chunk, encoding, callback) { if (hasTransform) { - chunk = transform(chunk); + chunk = options.transform(chunk); ? ++++++++ } - if (chunk) { + if (chunk === false) { ? ++++++++++ topic.publish(chunk); } callback(); }; + if (options.subscribe) { - this.subscribe(function(message) { + this.subscribe(function(message) { ? ++++ - stream.push(message); + stream.push(message); ? ++++ - }); + }); ? ++++ - this.on('unsubscribe', stream.push.bind(stream, null)); + this.on('unsubscribe', stream.push.bind(stream, null)); ? ++++ + } + + if (options.publish) { + this.advertise(); + } return stream; }; module.exports = Topic;
31
0.837838
23
8
2c3373d786d274bc74747347f8c14be69c5a0653
src/index.js
src/index.js
/* eslint-disable */ import React from 'react' import ReactDOM from 'react-dom' import DevApp from './DevApp' import App from './App' // import all CSS import 'codemirror/lib/codemirror.css' import 'codemirror/theme/monokai.css' import './index.css' ReactDOM.render(<App />, document.getElementById('root'));
/* eslint-disable */ import React from 'react' import ReactDOM from 'react-dom' import App from './App' // import all CSS import 'codemirror/lib/codemirror.css' import 'codemirror/theme/monokai.css' import './index.css' ReactDOM.render(<App />, document.getElementById('root'));
Fix runtime error due to missing file.
Fix runtime error due to missing file.
JavaScript
bsd-3-clause
bonham000/fcc-react-tests-module,bonham000/fcc-react-tests-module
javascript
## Code Before: /* eslint-disable */ import React from 'react' import ReactDOM from 'react-dom' import DevApp from './DevApp' import App from './App' // import all CSS import 'codemirror/lib/codemirror.css' import 'codemirror/theme/monokai.css' import './index.css' ReactDOM.render(<App />, document.getElementById('root')); ## Instruction: Fix runtime error due to missing file. ## Code After: /* eslint-disable */ import React from 'react' import ReactDOM from 'react-dom' import App from './App' // import all CSS import 'codemirror/lib/codemirror.css' import 'codemirror/theme/monokai.css' import './index.css' ReactDOM.render(<App />, document.getElementById('root'));
/* eslint-disable */ import React from 'react' import ReactDOM from 'react-dom' - import DevApp from './DevApp' import App from './App' // import all CSS import 'codemirror/lib/codemirror.css' import 'codemirror/theme/monokai.css' import './index.css' ReactDOM.render(<App />, document.getElementById('root'));
1
0.076923
0
1
0ce06328ea45645ae86017e53c8d96c20087e012
Casks/launchcontrol.rb
Casks/launchcontrol.rb
class Launchcontrol < Cask url 'http://www.soma-zone.com/download/files/LaunchControl_1.10.tar.bz2' homepage 'http://www.soma-zone.com/LaunchControl/' version '1.10' sha1 'ce17ecd9a418263ad41e0765dea83510649b89b9' link 'LaunchControl.app' end
class Launchcontrol < Cask url 'http://www.soma-zone.com/download/files/LaunchControl_1.10.2.tar.bz2' homepage 'http://www.soma-zone.com/LaunchControl/' version '1.10.2' sha1 'adf52faa3e2bb4d70e778d1da16bf30ace2cbee3' link 'LaunchControl.app' end
Update Launch Control to version 1.10.2
Update Launch Control to version 1.10.2
Ruby
bsd-2-clause
yurrriq/homebrew-cask,KosherBacon/homebrew-cask,robertgzr/homebrew-cask,daften/homebrew-cask,nicholsn/homebrew-cask,mgryszko/homebrew-cask,hyuna917/homebrew-cask,FranklinChen/homebrew-cask,d/homebrew-cask,singingwolfboy/homebrew-cask,delphinus35/homebrew-cask,frapposelli/homebrew-cask,cliffcotino/homebrew-cask,winkelsdorf/homebrew-cask,tsparber/homebrew-cask,lieuwex/homebrew-cask,scottsuch/homebrew-cask,neil-ca-moore/homebrew-cask,tmoreira2020/homebrew,unasuke/homebrew-cask,giannitm/homebrew-cask,MichaelPei/homebrew-cask,zchee/homebrew-cask,jconley/homebrew-cask,toonetown/homebrew-cask,nshemonsky/homebrew-cask,jaredsampson/homebrew-cask,ctrevino/homebrew-cask,ldong/homebrew-cask,jonathanwiesel/homebrew-cask,gord1anknot/homebrew-cask,wickedsp1d3r/homebrew-cask,LaurentFough/homebrew-cask,d/homebrew-cask,danielbayley/homebrew-cask,schneidmaster/homebrew-cask,ky0615/homebrew-cask-1,nysthee/homebrew-cask,okket/homebrew-cask,chrisopedia/homebrew-cask,supriyantomaftuh/homebrew-cask,Ketouem/homebrew-cask,bsiddiqui/homebrew-cask,taherio/homebrew-cask,y00rb/homebrew-cask,malob/homebrew-cask,gibsjose/homebrew-cask,diguage/homebrew-cask,nickpellant/homebrew-cask,dwihn0r/homebrew-cask,hswong3i/homebrew-cask,ahvigil/homebrew-cask,kesara/homebrew-cask,RogerThiede/homebrew-cask,royalwang/homebrew-cask,AdamCmiel/homebrew-cask,victorpopkov/homebrew-cask,thomanq/homebrew-cask,imgarylai/homebrew-cask,ebraminio/homebrew-cask,sosedoff/homebrew-cask,fwiesel/homebrew-cask,Philosoft/homebrew-cask,jacobbednarz/homebrew-cask,reelsense/homebrew-cask,joschi/homebrew-cask,fanquake/homebrew-cask,gmkey/homebrew-cask,stephenwade/homebrew-cask,wesen/homebrew-cask,wesen/homebrew-cask,optikfluffel/homebrew-cask,iAmGhost/homebrew-cask,mkozjak/homebrew-cask,donbobka/homebrew-cask,ctrevino/homebrew-cask,BahtiyarB/homebrew-cask,wickles/homebrew-cask,leonmachadowilcox/homebrew-cask,gregkare/homebrew-cask,ohammersmith/homebrew-cask,flada-auxv/homebrew-cask,diogodamiani/homebrew-cask,rubenerd/homebrew-cask,mokagio/homebrew-cask,joschi/homebrew-cask,shishi/homebrew-cask,yurikoles/homebrew-cask,caskroom/homebrew-cask,sysbot/homebrew-cask,asbachb/homebrew-cask,imgarylai/homebrew-cask,robbiethegeek/homebrew-cask,ashishb/homebrew-cask,wmorin/homebrew-cask,MicTech/homebrew-cask,codeurge/homebrew-cask,rubenerd/homebrew-cask,mariusbutuc/homebrew-cask,nickpellant/homebrew-cask,hvisage/homebrew-cask,nathanielvarona/homebrew-cask,mchlrmrz/homebrew-cask,shoichiaizawa/homebrew-cask,aktau/homebrew-cask,andrewdisley/homebrew-cask,miguelfrde/homebrew-cask,tjnycum/homebrew-cask,arronmabrey/homebrew-cask,unasuke/homebrew-cask,mhubig/homebrew-cask,kei-yamazaki/homebrew-cask,dlovitch/homebrew-cask,gguillotte/homebrew-cask,michelegera/homebrew-cask,fly19890211/homebrew-cask,mwilmer/homebrew-cask,hyuna917/homebrew-cask,samshadwell/homebrew-cask,blogabe/homebrew-cask,bendoerr/homebrew-cask,brianshumate/homebrew-cask,remko/homebrew-cask,mhubig/homebrew-cask,j13k/homebrew-cask,stevenmaguire/homebrew-cask,AndreTheHunter/homebrew-cask,gyugyu/homebrew-cask,jayshao/homebrew-cask,lalyos/homebrew-cask,ddm/homebrew-cask,kkdd/homebrew-cask,Nitecon/homebrew-cask,chrisRidgers/homebrew-cask,mrmachine/homebrew-cask,bchatard/homebrew-cask,mishari/homebrew-cask,thii/homebrew-cask,miccal/homebrew-cask,sscotth/homebrew-cask,renaudguerin/homebrew-cask,carlmod/homebrew-cask,koenrh/homebrew-cask,andyshinn/homebrew-cask,tonyseek/homebrew-cask,JacopKane/homebrew-cask,taherio/homebrew-cask,nightscape/homebrew-cask,gibsjose/homebrew-cask,alexg0/homebrew-cask,napaxton/homebrew-cask,seanorama/homebrew-cask,williamboman/homebrew-cask,astorije/homebrew-cask,opsdev-ws/homebrew-cask,af/homebrew-cask,jpmat296/homebrew-cask,Ibuprofen/homebrew-cask,zmwangx/homebrew-cask,kevinoconnor7/homebrew-cask,scw/homebrew-cask,napaxton/homebrew-cask,githubutilities/homebrew-cask,hanxue/caskroom,jamesmlees/homebrew-cask,MatzFan/homebrew-cask,doits/homebrew-cask,jeroenseegers/homebrew-cask,blogabe/homebrew-cask,imgarylai/homebrew-cask,afdnlw/homebrew-cask,jspahrsummers/homebrew-cask,dwkns/homebrew-cask,RJHsiao/homebrew-cask,m3nu/homebrew-cask,tonyseek/homebrew-cask,esebastian/homebrew-cask,neverfox/homebrew-cask,SamiHiltunen/homebrew-cask,rhendric/homebrew-cask,lcasey001/homebrew-cask,bcomnes/homebrew-cask,kryhear/homebrew-cask,retbrown/homebrew-cask,samdoran/homebrew-cask,L2G/homebrew-cask,pkq/homebrew-cask,Labutin/homebrew-cask,perfide/homebrew-cask,Nitecon/homebrew-cask,0xadada/homebrew-cask,enriclluelles/homebrew-cask,santoshsahoo/homebrew-cask,adrianchia/homebrew-cask,guerrero/homebrew-cask,lukasbestle/homebrew-cask,RickWong/homebrew-cask,johan/homebrew-cask,tolbkni/homebrew-cask,kevyau/homebrew-cask,ponychicken/homebrew-customcask,mauricerkelly/homebrew-cask,josa42/homebrew-cask,joshka/homebrew-cask,MichaelPei/homebrew-cask,blogabe/homebrew-cask,ksato9700/homebrew-cask,leipert/homebrew-cask,cobyism/homebrew-cask,paulbreslin/homebrew-cask,dunn/homebrew-cask,josa42/homebrew-cask,theoriginalgri/homebrew-cask,rajiv/homebrew-cask,joaoponceleao/homebrew-cask,jbeagley52/homebrew-cask,mahori/homebrew-cask,kirikiriyamama/homebrew-cask,moimikey/homebrew-cask,FinalDes/homebrew-cask,gyndav/homebrew-cask,otaran/homebrew-cask,kamilboratynski/homebrew-cask,katoquro/homebrew-cask,dcondrey/homebrew-cask,gguillotte/homebrew-cask,fharbe/homebrew-cask,Philosoft/homebrew-cask,CameronGarrett/homebrew-cask,lantrix/homebrew-cask,tranc99/homebrew-cask,alexg0/homebrew-cask,boecko/homebrew-cask,retrography/homebrew-cask,scottsuch/homebrew-cask,vigosan/homebrew-cask,farmerchris/homebrew-cask,frapposelli/homebrew-cask,zerrot/homebrew-cask,kiliankoe/homebrew-cask,usami-k/homebrew-cask,fazo96/homebrew-cask,decrement/homebrew-cask,spruceb/homebrew-cask,ninjahoahong/homebrew-cask,xtian/homebrew-cask,christophermanning/homebrew-cask,tjt263/homebrew-cask,dictcp/homebrew-cask,deizel/homebrew-cask,gord1anknot/homebrew-cask,mathbunnyru/homebrew-cask,sideci-sample/sideci-sample-homebrew-cask,mazehall/homebrew-cask,RogerThiede/homebrew-cask,BenjaminHCCarr/homebrew-cask,optikfluffel/homebrew-cask,scribblemaniac/homebrew-cask,julienlavergne/homebrew-cask,arronmabrey/homebrew-cask,cprecioso/homebrew-cask,ericbn/homebrew-cask,andersonba/homebrew-cask,xalep/homebrew-cask,bosr/homebrew-cask,claui/homebrew-cask,kTitan/homebrew-cask,nicholsn/homebrew-cask,kevyau/homebrew-cask,victorpopkov/homebrew-cask,yurikoles/homebrew-cask,ksato9700/homebrew-cask,troyxmccall/homebrew-cask,zerrot/homebrew-cask,barravi/homebrew-cask,antogg/homebrew-cask,axodys/homebrew-cask,casidiablo/homebrew-cask,a1russell/homebrew-cask,wuman/homebrew-cask,Ngrd/homebrew-cask,englishm/homebrew-cask,santoshsahoo/homebrew-cask,maxnordlund/homebrew-cask,cohei/homebrew-cask,bric3/homebrew-cask,renard/homebrew-cask,vigosan/homebrew-cask,dieterdemeyer/homebrew-cask,kronicd/homebrew-cask,FinalDes/homebrew-cask,jen20/homebrew-cask,bcaceiro/homebrew-cask,rogeriopradoj/homebrew-cask,skyyuan/homebrew-cask,MerelyAPseudonym/homebrew-cask,fly19890211/homebrew-cask,danielbayley/homebrew-cask,6uclz1/homebrew-cask,ch3n2k/homebrew-cask,a1russell/homebrew-cask,zhuzihhhh/homebrew-cask,pkq/homebrew-cask,gerrymiller/homebrew-cask,Ibuprofen/homebrew-cask,sjackman/homebrew-cask,jangalinski/homebrew-cask,sscotth/homebrew-cask,moogar0880/homebrew-cask,sanyer/homebrew-cask,0rax/homebrew-cask,pkq/homebrew-cask,rickychilcott/homebrew-cask,valepert/homebrew-cask,garborg/homebrew-cask,cblecker/homebrew-cask,codeurge/homebrew-cask,danielbayley/homebrew-cask,akiomik/homebrew-cask,miccal/homebrew-cask,moonboots/homebrew-cask,dieterdemeyer/homebrew-cask,sideci-sample/sideci-sample-homebrew-cask,jppelteret/homebrew-cask,guylabs/homebrew-cask,boydj/homebrew-cask,ayohrling/homebrew-cask,retbrown/homebrew-cask,puffdad/homebrew-cask,a-x-/homebrew-cask,patresi/homebrew-cask,paour/homebrew-cask,ksylvan/homebrew-cask,elnappo/homebrew-cask,timsutton/homebrew-cask,zorosteven/homebrew-cask,christer155/homebrew-cask,otaran/homebrew-cask,jtriley/homebrew-cask,mlocher/homebrew-cask,tedski/homebrew-cask,hanxue/caskroom,chrisRidgers/homebrew-cask,joschi/homebrew-cask,jpmat296/homebrew-cask,bdhess/homebrew-cask,bgandon/homebrew-cask,nanoxd/homebrew-cask,troyxmccall/homebrew-cask,Fedalto/homebrew-cask,SamiHiltunen/homebrew-cask,daften/homebrew-cask,AnastasiaSulyagina/homebrew-cask,MisumiRize/homebrew-cask,pacav69/homebrew-cask,johnste/homebrew-cask,MoOx/homebrew-cask,tangestani/homebrew-cask,bdhess/homebrew-cask,dlackty/homebrew-cask,af/homebrew-cask,johnjelinek/homebrew-cask,fwiesel/homebrew-cask,squid314/homebrew-cask,remko/homebrew-cask,Labutin/homebrew-cask,andersonba/homebrew-cask,wickles/homebrew-cask,albertico/homebrew-cask,brianshumate/homebrew-cask,lcasey001/homebrew-cask,nanoxd/homebrew-cask,kevinoconnor7/homebrew-cask,giannitm/homebrew-cask,kteru/homebrew-cask,nathancahill/homebrew-cask,ninjahoahong/homebrew-cask,dictcp/homebrew-cask,Ngrd/homebrew-cask,okket/homebrew-cask,crmne/homebrew-cask,ahundt/homebrew-cask,albertico/homebrew-cask,MatzFan/homebrew-cask,zhuzihhhh/homebrew-cask,hanxue/caskroom,klane/homebrew-cask,wayou/homebrew-cask,lukasbestle/homebrew-cask,renaudguerin/homebrew-cask,andrewschleifer/homebrew-cask,rickychilcott/homebrew-cask,nathansgreen/homebrew-cask,jhowtan/homebrew-cask,Dremora/homebrew-cask,englishm/homebrew-cask,julionc/homebrew-cask,feigaochn/homebrew-cask,deizel/homebrew-cask,jeroenj/homebrew-cask,bgandon/homebrew-cask,elyscape/homebrew-cask,markhuber/homebrew-cask,yutarody/homebrew-cask,yurrriq/homebrew-cask,hellosky806/homebrew-cask,cedwardsmedia/homebrew-cask,cprecioso/homebrew-cask,vin047/homebrew-cask,Hywan/homebrew-cask,stevehedrick/homebrew-cask,adrianchia/homebrew-cask,esebastian/homebrew-cask,ahundt/homebrew-cask,mazehall/homebrew-cask,tan9/homebrew-cask,xyb/homebrew-cask,chrisfinazzo/homebrew-cask,zeusdeux/homebrew-cask,CameronGarrett/homebrew-cask,djmonta/homebrew-cask,psibre/homebrew-cask,leipert/homebrew-cask,forevergenin/homebrew-cask,rajiv/homebrew-cask,tolbkni/homebrew-cask,forevergenin/homebrew-cask,epmatsw/homebrew-cask,enriclluelles/homebrew-cask,kolomiichenko/homebrew-cask,nivanchikov/homebrew-cask,My2ndAngelic/homebrew-cask,corbt/homebrew-cask,pacav69/homebrew-cask,greg5green/homebrew-cask,JikkuJose/homebrew-cask,seanorama/homebrew-cask,vin047/homebrew-cask,caskroom/homebrew-cask,mAAdhaTTah/homebrew-cask,paour/homebrew-cask,tyage/homebrew-cask,gustavoavellar/homebrew-cask,segiddins/homebrew-cask,anbotero/homebrew-cask,sanyer/homebrew-cask,epardee/homebrew-cask,nicolas-brousse/homebrew-cask,cohei/homebrew-cask,fkrone/homebrew-cask,klane/homebrew-cask,flaviocamilo/homebrew-cask,kTitan/homebrew-cask,wastrachan/homebrew-cask,shorshe/homebrew-cask,antogg/homebrew-cask,mingzhi22/homebrew-cask,3van/homebrew-cask,13k/homebrew-cask,mathbunnyru/homebrew-cask,exherb/homebrew-cask,JosephViolago/homebrew-cask,gyndav/homebrew-cask,AdamCmiel/homebrew-cask,skyyuan/homebrew-cask,johnste/homebrew-cask,axodys/homebrew-cask,inz/homebrew-cask,goxberry/homebrew-cask,3van/homebrew-cask,sparrc/homebrew-cask,doits/homebrew-cask,stephenwade/homebrew-cask,csmith-palantir/homebrew-cask,colindunn/homebrew-cask,jaredsampson/homebrew-cask,rednoah/homebrew-cask,wKovacs64/homebrew-cask,nrlquaker/homebrew-cask,winkelsdorf/homebrew-cask,bkono/homebrew-cask,tyage/homebrew-cask,Fedalto/homebrew-cask,sebcode/homebrew-cask,dunn/homebrew-cask,jalaziz/homebrew-cask,ksylvan/homebrew-cask,gwaldo/homebrew-cask,delphinus35/homebrew-cask,wastrachan/homebrew-cask,chrisopedia/homebrew-cask,jtriley/homebrew-cask,JacopKane/homebrew-cask,renard/homebrew-cask,morsdyce/homebrew-cask,sparrc/homebrew-cask,wolflee/homebrew-cask,andrewdisley/homebrew-cask,yuhki50/homebrew-cask,cblecker/homebrew-cask,sgnh/homebrew-cask,mishari/homebrew-cask,deiga/homebrew-cask,fkrone/homebrew-cask,feniix/homebrew-cask,ky0615/homebrew-cask-1,My2ndAngelic/homebrew-cask,drostron/homebrew-cask,vitorgalvao/homebrew-cask,squid314/homebrew-cask,jen20/homebrew-cask,rajiv/homebrew-cask,FranklinChen/homebrew-cask,n0ts/homebrew-cask,crzrcn/homebrew-cask,kostasdizas/homebrew-cask,mokagio/homebrew-cask,jellyfishcoder/homebrew-cask,petmoo/homebrew-cask,joaocc/homebrew-cask,Bombenleger/homebrew-cask,howie/homebrew-cask,yumitsu/homebrew-cask,niksy/homebrew-cask,Keloran/homebrew-cask,ftiff/homebrew-cask,adriweb/homebrew-cask,vmrob/homebrew-cask,bchatard/homebrew-cask,ingorichter/homebrew-cask,malford/homebrew-cask,cobyism/homebrew-cask,cclauss/homebrew-cask,lucasmezencio/homebrew-cask,shoichiaizawa/homebrew-cask,iamso/homebrew-cask,j13k/homebrew-cask,zorosteven/homebrew-cask,coeligena/homebrew-customized,muan/homebrew-cask,djakarta-trap/homebrew-myCask,muescha/homebrew-cask,mindriot101/homebrew-cask,kuno/homebrew-cask,mjgardner/homebrew-cask,xiongchiamiov/homebrew-cask,Whoaa512/homebrew-cask,josa42/homebrew-cask,Cottser/homebrew-cask,mattrobenolt/homebrew-cask,Whoaa512/homebrew-cask,neverfox/homebrew-cask,tmoreira2020/homebrew,tdsmith/homebrew-cask,robertgzr/homebrew-cask,ingorichter/homebrew-cask,tjnycum/homebrew-cask,lantrix/homebrew-cask,thomanq/homebrew-cask,gilesdring/homebrew-cask,tan9/homebrew-cask,casidiablo/homebrew-cask,RickWong/homebrew-cask,shonjir/homebrew-cask,cobyism/homebrew-cask,bric3/homebrew-cask,mingzhi22/homebrew-cask,huanzhang/homebrew-cask,sohtsuka/homebrew-cask,jeanregisser/homebrew-cask,SentinelWarren/homebrew-cask,chino/homebrew-cask,Gasol/homebrew-cask,6uclz1/homebrew-cask,ianyh/homebrew-cask,guerrero/homebrew-cask,haha1903/homebrew-cask,flada-auxv/homebrew-cask,Amorymeltzer/homebrew-cask,katoquro/homebrew-cask,hristozov/homebrew-cask,jedahan/homebrew-cask,gabrielizaias/homebrew-cask,ywfwj2008/homebrew-cask,yutarody/homebrew-cask,tdsmith/homebrew-cask,wmorin/homebrew-cask,xakraz/homebrew-cask,coeligena/homebrew-customized,mauricerkelly/homebrew-cask,jconley/homebrew-cask,morganestes/homebrew-cask,djakarta-trap/homebrew-myCask,mwek/homebrew-cask,mjdescy/homebrew-cask,alebcay/homebrew-cask,johndbritton/homebrew-cask,joaocc/homebrew-cask,tjt263/homebrew-cask,deiga/homebrew-cask,m3nu/homebrew-cask,hackhandslabs/homebrew-cask,nelsonjchen/homebrew-cask,fanquake/homebrew-cask,jonathanwiesel/homebrew-cask,theoriginalgri/homebrew-cask,sirodoht/homebrew-cask,reitermarkus/homebrew-cask,Ketouem/homebrew-cask,riyad/homebrew-cask,ajbw/homebrew-cask,neil-ca-moore/homebrew-cask,wayou/homebrew-cask,y00rb/homebrew-cask,michelegera/homebrew-cask,aguynamedryan/homebrew-cask,lolgear/homebrew-cask,phpwutz/homebrew-cask,genewoo/homebrew-cask,BenjaminHCCarr/homebrew-cask,stevenmaguire/homebrew-cask,jiashuw/homebrew-cask,leoj3n/homebrew-cask,jeanregisser/homebrew-cask,joshka/homebrew-cask,catap/homebrew-cask,tedbundyjr/homebrew-cask,qbmiller/homebrew-cask,akiomik/homebrew-cask,decrement/homebrew-cask,chrisfinazzo/homebrew-cask,faun/homebrew-cask,joaoponceleao/homebrew-cask,tranc99/homebrew-cask,cedwardsmedia/homebrew-cask,Dremora/homebrew-cask,rcuza/homebrew-cask,dvdoliveira/homebrew-cask,iamso/homebrew-cask,paulbreslin/homebrew-cask,lucasmezencio/homebrew-cask,pgr0ss/homebrew-cask,kongslund/homebrew-cask,alebcay/homebrew-cask,cclauss/homebrew-cask,tedbundyjr/homebrew-cask,jamesmlees/homebrew-cask,MicTech/homebrew-cask,nightscape/homebrew-cask,astorije/homebrew-cask,jmeridth/homebrew-cask,kpearson/homebrew-cask,buo/homebrew-cask,atsuyim/homebrew-cask,williamboman/homebrew-cask,stephenwade/homebrew-cask,claui/homebrew-cask,schneidmaster/homebrew-cask,miku/homebrew-cask,donbobka/homebrew-cask,kassi/homebrew-cask,ianyh/homebrew-cask,kryhear/homebrew-cask,riyad/homebrew-cask,jeroenj/homebrew-cask,nicolas-brousse/homebrew-cask,yutarody/homebrew-cask,alloy/homebrew-cask,jedahan/homebrew-cask,kesara/homebrew-cask,artdevjs/homebrew-cask,huanzhang/homebrew-cask,hakamadare/homebrew-cask,tjnycum/homebrew-cask,rhendric/homebrew-cask,maxnordlund/homebrew-cask,chuanxd/homebrew-cask,mjgardner/homebrew-cask,lifepillar/homebrew-cask,kteru/homebrew-cask,pinut/homebrew-cask,shonjir/homebrew-cask,elseym/homebrew-cask,colindean/homebrew-cask,johntrandall/homebrew-cask,johan/homebrew-cask,andrewschleifer/homebrew-cask,tangestani/homebrew-cask,usami-k/homebrew-cask,thii/homebrew-cask,athrunsun/homebrew-cask,bric3/homebrew-cask,gurghet/homebrew-cask,jppelteret/homebrew-cask,yuhki50/homebrew-cask,xight/homebrew-cask,kievechua/homebrew-cask,KosherBacon/homebrew-cask,prime8/homebrew-cask,mahori/homebrew-cask,jrwesolo/homebrew-cask,amatos/homebrew-cask,uetchy/homebrew-cask,christer155/homebrew-cask,tsparber/homebrew-cask,miccal/homebrew-cask,mwilmer/homebrew-cask,mwean/homebrew-cask,vmrob/homebrew-cask,jawshooah/homebrew-cask,gerrymiller/homebrew-cask,samnung/homebrew-cask,jeroenseegers/homebrew-cask,xalep/homebrew-cask,patresi/homebrew-cask,amatos/homebrew-cask,mlocher/homebrew-cask,lauantai/homebrew-cask,nivanchikov/homebrew-cask,esebastian/homebrew-cask,ebraminio/homebrew-cask,mchlrmrz/homebrew-cask,mgryszko/homebrew-cask,gregkare/homebrew-cask,shanonvl/homebrew-cask,sirodoht/homebrew-cask,dictcp/homebrew-cask,lolgear/homebrew-cask,inta/homebrew-cask,ajbw/homebrew-cask,wizonesolutions/homebrew-cask,psibre/homebrew-cask,dvdoliveira/homebrew-cask,BahtiyarB/homebrew-cask,Ephemera/homebrew-cask,tarwich/homebrew-cask,slack4u/homebrew-cask,reitermarkus/homebrew-cask,Saklad5/homebrew-cask,larseggert/homebrew-cask,freeslugs/homebrew-cask,freeslugs/homebrew-cask,andyshinn/homebrew-cask,hswong3i/homebrew-cask,ponychicken/homebrew-customcask,jalaziz/homebrew-cask,gyndav/homebrew-cask,johndbritton/homebrew-cask,miguelfrde/homebrew-cask,morganestes/homebrew-cask,kkdd/homebrew-cask,nysthee/homebrew-cask,kronicd/homebrew-cask,n8henrie/homebrew-cask,jgarber623/homebrew-cask,zchee/homebrew-cask,elseym/homebrew-cask,tangestani/homebrew-cask,xiongchiamiov/homebrew-cask,devmynd/homebrew-cask,jacobdam/homebrew-cask,pinut/homebrew-cask,sysbot/homebrew-cask,aguynamedryan/homebrew-cask,mrmachine/homebrew-cask,ayohrling/homebrew-cask,gurghet/homebrew-cask,MircoT/homebrew-cask,chrisfinazzo/homebrew-cask,dspeckhard/homebrew-cask,mkozjak/homebrew-cask,gustavoavellar/homebrew-cask,rcuza/homebrew-cask,inz/homebrew-cask,spruceb/homebrew-cask,JacopKane/homebrew-cask,pablote/homebrew-cask,bcaceiro/homebrew-cask,leonmachadowilcox/homebrew-cask,a-x-/homebrew-cask,mjdescy/homebrew-cask,lauantai/homebrew-cask,buo/homebrew-cask,tedski/homebrew-cask,artdevjs/homebrew-cask,stonehippo/homebrew-cask,a1russell/homebrew-cask,jiashuw/homebrew-cask,JoelLarson/homebrew-cask,thehunmonkgroup/homebrew-cask,illusionfield/homebrew-cask,JikkuJose/homebrew-cask,kiliankoe/homebrew-cask,phpwutz/homebrew-cask,kolomiichenko/homebrew-cask,ddm/homebrew-cask,dezon/homebrew-cask,ywfwj2008/homebrew-cask,gerrypower/homebrew-cask,flaviocamilo/homebrew-cask,boydj/homebrew-cask,sjackman/homebrew-cask,githubutilities/homebrew-cask,gilesdring/homebrew-cask,boecko/homebrew-cask,chadcatlett/caskroom-homebrew-cask,otzy007/homebrew-cask,timsutton/homebrew-cask,muan/homebrew-cask,qnm/homebrew-cask,kpearson/homebrew-cask,wizonesolutions/homebrew-cask,mahori/homebrew-cask,jrwesolo/homebrew-cask,skatsuta/homebrew-cask,slnovak/homebrew-cask,ohammersmith/homebrew-cask,colindunn/homebrew-cask,puffdad/homebrew-cask,thehunmonkgroup/homebrew-cask,gabrielizaias/homebrew-cask,greg5green/homebrew-cask,syscrusher/homebrew-cask,JoelLarson/homebrew-cask,kei-yamazaki/homebrew-cask,markthetech/homebrew-cask,xight/homebrew-cask,aki77/homebrew-cask,bendoerr/homebrew-cask,yumitsu/homebrew-cask,nrlquaker/homebrew-cask,wolflee/homebrew-cask,bosr/homebrew-cask,singingwolfboy/homebrew-cask,onlynone/homebrew-cask,norio-nomura/homebrew-cask,lumaxis/homebrew-cask,sscotth/homebrew-cask,vuquoctuan/homebrew-cask,nathanielvarona/homebrew-cask,arranubels/homebrew-cask,ericbn/homebrew-cask,jasmas/homebrew-cask,neverfox/homebrew-cask,deanmorin/homebrew-cask,otzy007/homebrew-cask,moogar0880/homebrew-cask,asins/homebrew-cask,adrianchia/homebrew-cask,vitorgalvao/homebrew-cask,lieuwex/homebrew-cask,segiddins/homebrew-cask,syscrusher/homebrew-cask,paulombcosta/homebrew-cask,atsuyim/homebrew-cask,AnastasiaSulyagina/homebrew-cask,lumaxis/homebrew-cask,ahbeng/homebrew-cask,gerrypower/homebrew-cask,RJHsiao/homebrew-cask,haha1903/homebrew-cask,mattrobenolt/homebrew-cask,franklouwers/homebrew-cask,reelsense/homebrew-cask,qnm/homebrew-cask,retrography/homebrew-cask,perfide/homebrew-cask,adelinofaria/homebrew-cask,garborg/homebrew-cask,scottsuch/homebrew-cask,johnjelinek/homebrew-cask,qbmiller/homebrew-cask,hvisage/homebrew-cask,kostasdizas/homebrew-cask,kirikiriyamama/homebrew-cask,jayshao/homebrew-cask,paulombcosta/homebrew-cask,slack4u/homebrew-cask,wuman/homebrew-cask,Amorymeltzer/homebrew-cask,linc01n/homebrew-cask,stonehippo/homebrew-cask,moimikey/homebrew-cask,wmorin/homebrew-cask,kamilboratynski/homebrew-cask,bcomnes/homebrew-cask,andrewdisley/homebrew-cask,n0ts/homebrew-cask,mAAdhaTTah/homebrew-cask,scw/homebrew-cask,gmkey/homebrew-cask,robbiethegeek/homebrew-cask,howie/homebrew-cask,lifepillar/homebrew-cask,joshka/homebrew-cask,shorshe/homebrew-cask,Amorymeltzer/homebrew-cask,seanzxx/homebrew-cask,rednoah/homebrew-cask,LaurentFough/homebrew-cask,reitermarkus/homebrew-cask,MerelyAPseudonym/homebrew-cask,asbachb/homebrew-cask,blainesch/homebrew-cask,vuquoctuan/homebrew-cask,arranubels/homebrew-cask,kingthorin/homebrew-cask,nshemonsky/homebrew-cask,cfillion/homebrew-cask,jmeridth/homebrew-cask,barravi/homebrew-cask,kongslund/homebrew-cask,m3nu/homebrew-cask,samdoran/homebrew-cask,nathansgreen/homebrew-cask,sosedoff/homebrew-cask,nathanielvarona/homebrew-cask,gwaldo/homebrew-cask,mathbunnyru/homebrew-cask,stigkj/homebrew-caskroom-cask,goxberry/homebrew-cask,13k/homebrew-cask,lukeadams/homebrew-cask,xakraz/homebrew-cask,julionc/homebrew-cask,chino/homebrew-cask,bsiddiqui/homebrew-cask,iAmGhost/homebrew-cask,Keloran/homebrew-cask,jhowtan/homebrew-cask,jbeagley52/homebrew-cask,Hywan/homebrew-cask,epardee/homebrew-cask,ashishb/homebrew-cask,malob/homebrew-cask,scribblemaniac/homebrew-cask,fharbe/homebrew-cask,colindean/homebrew-cask,antogg/homebrew-cask,corbt/homebrew-cask,genewoo/homebrew-cask,jacobbednarz/homebrew-cask,mwean/homebrew-cask,djmonta/homebrew-cask,scribblemaniac/homebrew-cask,wickedsp1d3r/homebrew-cask,mattfelsen/homebrew-cask,deiga/homebrew-cask,sanchezm/homebrew-cask,coneman/homebrew-cask,jgarber623/homebrew-cask,janlugt/homebrew-cask,royalwang/homebrew-cask,jasmas/homebrew-cask,christophermanning/homebrew-cask,exherb/homebrew-cask,0rax/homebrew-cask,kievechua/homebrew-cask,JosephViolago/homebrew-cask,xight/homebrew-cask,diguage/homebrew-cask,jgarber623/homebrew-cask,andyli/homebrew-cask,FredLackeyOfficial/homebrew-cask,helloIAmPau/homebrew-cask,lvicentesanchez/homebrew-cask,cblecker/homebrew-cask,valepert/homebrew-cask,ptb/homebrew-cask,BenjaminHCCarr/homebrew-cask,gyugyu/homebrew-cask,faun/homebrew-cask,koenrh/homebrew-cask,prime8/homebrew-cask,janlugt/homebrew-cask,petmoo/homebrew-cask,kingthorin/homebrew-cask,cliffcotino/homebrew-cask,elyscape/homebrew-cask,cfillion/homebrew-cask,ahvigil/homebrew-cask,toonetown/homebrew-cask,xcezx/homebrew-cask,mwek/homebrew-cask,Bombenleger/homebrew-cask,sanyer/homebrew-cask,csmith-palantir/homebrew-cask,slnovak/homebrew-cask,underyx/homebrew-cask,devmynd/homebrew-cask,drostron/homebrew-cask,tarwich/homebrew-cask,helloIAmPau/homebrew-cask,julienlavergne/homebrew-cask,inta/homebrew-cask,moonboots/homebrew-cask,claui/homebrew-cask,n8henrie/homebrew-cask,mariusbutuc/homebrew-cask,bkono/homebrew-cask,andyli/homebrew-cask,samnung/homebrew-cask,feniix/homebrew-cask,Saklad5/homebrew-cask,rogeriopradoj/homebrew-cask,jpodlech/homebrew-cask,afh/homebrew-cask,FredLackeyOfficial/homebrew-cask,coneman/homebrew-cask,Ephemera/homebrew-cask,dezon/homebrew-cask,jspahrsummers/homebrew-cask,illusionfield/homebrew-cask,julionc/homebrew-cask,miku/homebrew-cask,stevehedrick/homebrew-cask,nrlquaker/homebrew-cask,afh/homebrew-cask,hackhandslabs/homebrew-cask,AndreTheHunter/homebrew-cask,feigaochn/homebrew-cask,MoOx/homebrew-cask,ch3n2k/homebrew-cask,alexg0/homebrew-cask,kassi/homebrew-cask,sohtsuka/homebrew-cask,singingwolfboy/homebrew-cask,sachin21/homebrew-cask,xtian/homebrew-cask,MisumiRize/homebrew-cask,larseggert/homebrew-cask,pablote/homebrew-cask,mikem/homebrew-cask,mattrobenolt/homebrew-cask,dlovitch/homebrew-cask,Ephemera/homebrew-cask,shonjir/homebrew-cask,sachin21/homebrew-cask,stonehippo/homebrew-cask,diogodamiani/homebrew-cask,lvicentesanchez/homebrew-cask,ptb/homebrew-cask,hovancik/homebrew-cask,dwihn0r/homebrew-cask,shoichiaizawa/homebrew-cask,nathancahill/homebrew-cask,adelinofaria/homebrew-cask,franklouwers/homebrew-cask,dustinblackman/homebrew-cask,skatsuta/homebrew-cask,adriweb/homebrew-cask,johntrandall/homebrew-cask,askl56/homebrew-cask,moimikey/homebrew-cask,markhuber/homebrew-cask,fazo96/homebrew-cask,crzrcn/homebrew-cask,jacobdam/homebrew-cask,kingthorin/homebrew-cask,Cottser/homebrew-cask,guylabs/homebrew-cask,shanonvl/homebrew-cask,samshadwell/homebrew-cask,jangalinski/homebrew-cask,shishi/homebrew-cask,deanmorin/homebrew-cask,sebcode/homebrew-cask,alebcay/homebrew-cask,mindriot101/homebrew-cask,mchlrmrz/homebrew-cask,afdnlw/homebrew-cask,rogeriopradoj/homebrew-cask,hakamadare/homebrew-cask,xyb/homebrew-cask,mfpierre/homebrew-cask,uetchy/homebrew-cask,rkJun/homebrew-cask,mfpierre/homebrew-cask,pgr0ss/homebrew-cask,markthetech/homebrew-cask,farmerchris/homebrew-cask,0xadada/homebrew-cask,epmatsw/homebrew-cask,sgnh/homebrew-cask,sanchezm/homebrew-cask,ldong/homebrew-cask,lukeadams/homebrew-cask,JosephViolago/homebrew-cask,coeligena/homebrew-customized,zmwangx/homebrew-cask,winkelsdorf/homebrew-cask,xcezx/homebrew-cask,MircoT/homebrew-cask,hellosky806/homebrew-cask,rkJun/homebrew-cask,L2G/homebrew-cask,paour/homebrew-cask,yurikoles/homebrew-cask,hristozov/homebrew-cask,SentinelWarren/homebrew-cask,anbotero/homebrew-cask,jalaziz/homebrew-cask,danielgomezrico/homebrew-cask,lalyos/homebrew-cask,uetchy/homebrew-cask,malob/homebrew-cask,nelsonjchen/homebrew-cask,kesara/homebrew-cask,aktau/homebrew-cask,dustinblackman/homebrew-cask,hovancik/homebrew-cask,supriyantomaftuh/homebrew-cask,timsutton/homebrew-cask,ahbeng/homebrew-cask,malford/homebrew-cask,xyb/homebrew-cask,optikfluffel/homebrew-cask,underyx/homebrew-cask,askl56/homebrew-cask,dcondrey/homebrew-cask,mattfelsen/homebrew-cask,dwkns/homebrew-cask,asins/homebrew-cask,catap/homebrew-cask,ftiff/homebrew-cask,alloy/homebrew-cask,aki77/homebrew-cask,jellyfishcoder/homebrew-cask,zeusdeux/homebrew-cask,onlynone/homebrew-cask,crmne/homebrew-cask,mikem/homebrew-cask,stigkj/homebrew-caskroom-cask,ericbn/homebrew-cask,wKovacs64/homebrew-cask,Gasol/homebrew-cask,chadcatlett/caskroom-homebrew-cask,opsdev-ws/homebrew-cask,jpodlech/homebrew-cask,jawshooah/homebrew-cask,dlackty/homebrew-cask,elnappo/homebrew-cask,kuno/homebrew-cask,danielgomezrico/homebrew-cask,linc01n/homebrew-cask,morsdyce/homebrew-cask,mjgardner/homebrew-cask,athrunsun/homebrew-cask,carlmod/homebrew-cask,chuanxd/homebrew-cask,dspeckhard/homebrew-cask,blainesch/homebrew-cask,seanzxx/homebrew-cask,norio-nomura/homebrew-cask
ruby
## Code Before: class Launchcontrol < Cask url 'http://www.soma-zone.com/download/files/LaunchControl_1.10.tar.bz2' homepage 'http://www.soma-zone.com/LaunchControl/' version '1.10' sha1 'ce17ecd9a418263ad41e0765dea83510649b89b9' link 'LaunchControl.app' end ## Instruction: Update Launch Control to version 1.10.2 ## Code After: class Launchcontrol < Cask url 'http://www.soma-zone.com/download/files/LaunchControl_1.10.2.tar.bz2' homepage 'http://www.soma-zone.com/LaunchControl/' version '1.10.2' sha1 'adf52faa3e2bb4d70e778d1da16bf30ace2cbee3' link 'LaunchControl.app' end
class Launchcontrol < Cask - url 'http://www.soma-zone.com/download/files/LaunchControl_1.10.tar.bz2' + url 'http://www.soma-zone.com/download/files/LaunchControl_1.10.2.tar.bz2' ? ++ homepage 'http://www.soma-zone.com/LaunchControl/' - version '1.10' + version '1.10.2' ? ++ - sha1 'ce17ecd9a418263ad41e0765dea83510649b89b9' + sha1 'adf52faa3e2bb4d70e778d1da16bf30ace2cbee3' link 'LaunchControl.app' end
6
0.857143
3
3
6f9c6681f635adb83561eef439b9bf420d3d4a25
src/util/DeprecatedClassDecorator.ts
src/util/DeprecatedClassDecorator.ts
export function deprecatedClass(message: string): ClassDecorator; export function deprecatedClass<T>(target: T, key: PropertyKey): void; /** * Logs a deprecation warning for the decorated class if * an instance is created * @param {string} [message] Class deprecation message * @returns {ClassDecorator} */ export function deprecatedClass<T extends new (...args: any[]) => any>(...decoratorArgs: any[]): any { if (typeof (deprecatedClass as any).warnCache === 'undefined') (deprecatedClass as any).warnCache = {}; const warnCache: { [key: string]: boolean } = (deprecatedClass as any).warnCache; let message: string = decoratorArgs[0]; function emitDeprecationWarning(warning: string): void { if (warnCache[warning]) return; warnCache[warning] = true; process.emitWarning(warning, 'DeprecationWarning'); } function decorate(target: T): T { return class extends target { public constructor(...args: any[]) { emitDeprecationWarning(message); super(...args); } }; } if (typeof message !== 'string') { const [target]: [T] = decoratorArgs as any; message = `Class \`${target.name}\` is deprecated and will be removed in a future release`; return decorate(target); } else return decorate; }
export function deprecatedClass(message: string): ClassDecorator; export function deprecatedClass<T>(target: T): T; /** * Logs a deprecation warning for the decorated class if * an instance is created * @param {string} [message] Class deprecation message * @returns {ClassDecorator} */ export function deprecatedClass<T extends new (...args: any[]) => any>(...decoratorArgs: any[]): any { if (typeof (deprecatedClass as any).warnCache === 'undefined') (deprecatedClass as any).warnCache = {}; const warnCache: { [key: string]: boolean } = (deprecatedClass as any).warnCache; let message: string = decoratorArgs[0]; function emitDeprecationWarning(warning: string): void { if (warnCache[warning]) return; warnCache[warning] = true; process.emitWarning(warning, 'DeprecationWarning'); } function decorate(target: T): T { return class extends target { public constructor(...args: any[]) { emitDeprecationWarning(message); super(...args); } }; } if (typeof message !== 'string') { const [target]: [T] = decoratorArgs as any; message = `Class \`${target.name}\` is deprecated and will be removed in a future release`; return decorate(target); } else return decorate; }
Update deprecatedClass decorator function signatures
Update deprecatedClass decorator function signatures
TypeScript
mit
zajrik/yamdbf,zajrik/yamdbf
typescript
## Code Before: export function deprecatedClass(message: string): ClassDecorator; export function deprecatedClass<T>(target: T, key: PropertyKey): void; /** * Logs a deprecation warning for the decorated class if * an instance is created * @param {string} [message] Class deprecation message * @returns {ClassDecorator} */ export function deprecatedClass<T extends new (...args: any[]) => any>(...decoratorArgs: any[]): any { if (typeof (deprecatedClass as any).warnCache === 'undefined') (deprecatedClass as any).warnCache = {}; const warnCache: { [key: string]: boolean } = (deprecatedClass as any).warnCache; let message: string = decoratorArgs[0]; function emitDeprecationWarning(warning: string): void { if (warnCache[warning]) return; warnCache[warning] = true; process.emitWarning(warning, 'DeprecationWarning'); } function decorate(target: T): T { return class extends target { public constructor(...args: any[]) { emitDeprecationWarning(message); super(...args); } }; } if (typeof message !== 'string') { const [target]: [T] = decoratorArgs as any; message = `Class \`${target.name}\` is deprecated and will be removed in a future release`; return decorate(target); } else return decorate; } ## Instruction: Update deprecatedClass decorator function signatures ## Code After: export function deprecatedClass(message: string): ClassDecorator; export function deprecatedClass<T>(target: T): T; /** * Logs a deprecation warning for the decorated class if * an instance is created * @param {string} [message] Class deprecation message * @returns {ClassDecorator} */ export function deprecatedClass<T extends new (...args: any[]) => any>(...decoratorArgs: any[]): any { if (typeof (deprecatedClass as any).warnCache === 'undefined') (deprecatedClass as any).warnCache = {}; const warnCache: { [key: string]: boolean } = (deprecatedClass as any).warnCache; let message: string = decoratorArgs[0]; function emitDeprecationWarning(warning: string): void { if (warnCache[warning]) return; warnCache[warning] = true; process.emitWarning(warning, 'DeprecationWarning'); } function decorate(target: T): T { return class extends target { public constructor(...args: any[]) { emitDeprecationWarning(message); super(...args); } }; } if (typeof message !== 'string') { const [target]: [T] = decoratorArgs as any; message = `Class \`${target.name}\` is deprecated and will be removed in a future release`; return decorate(target); } else return decorate; }
export function deprecatedClass(message: string): ClassDecorator; - export function deprecatedClass<T>(target: T, key: PropertyKey): void; ? ------------------ ^^^^ + export function deprecatedClass<T>(target: T): T; ? ^ /** * Logs a deprecation warning for the decorated class if * an instance is created * @param {string} [message] Class deprecation message * @returns {ClassDecorator} */ export function deprecatedClass<T extends new (...args: any[]) => any>(...decoratorArgs: any[]): any { if (typeof (deprecatedClass as any).warnCache === 'undefined') (deprecatedClass as any).warnCache = {}; const warnCache: { [key: string]: boolean } = (deprecatedClass as any).warnCache; let message: string = decoratorArgs[0]; function emitDeprecationWarning(warning: string): void { if (warnCache[warning]) return; warnCache[warning] = true; process.emitWarning(warning, 'DeprecationWarning'); } function decorate(target: T): T { return class extends target { public constructor(...args: any[]) { emitDeprecationWarning(message); super(...args); } }; } if (typeof message !== 'string') { const [target]: [T] = decoratorArgs as any; message = `Class \`${target.name}\` is deprecated and will be removed in a future release`; return decorate(target); } else return decorate; }
2
0.047619
1
1
78d11be17891950e71f4d20af53f91be5849ccfb
src/lib/util.js
src/lib/util.js
export const isValidJsonString = (str) => { try { JSON.parse(str); } catch (e) { return false; } return true; };
export const isValidJsonString = (str) => { try { JSON.parse(str); } catch (e) { return false; } return true; }; export const Box = x => ({ map: f => Box(f(x)), fold: f => f(x), inspect: () => `Box(${x})` });
Add the Box type to make some ori type can use composition.
Add the Box type to make some ori type can use composition.
JavaScript
mit
ens-bid/ens-bid-dapp,PhyrexTsai/ens-bid-dapp,chochinlu/ens-bid-dapp,chochinlu/ens-bid-dapp,PhyrexTsai/ens-bid-dapp,ens-bid/ens-bid-dapp
javascript
## Code Before: export const isValidJsonString = (str) => { try { JSON.parse(str); } catch (e) { return false; } return true; }; ## Instruction: Add the Box type to make some ori type can use composition. ## Code After: export const isValidJsonString = (str) => { try { JSON.parse(str); } catch (e) { return false; } return true; }; export const Box = x => ({ map: f => Box(f(x)), fold: f => f(x), inspect: () => `Box(${x})` });
export const isValidJsonString = (str) => { try { JSON.parse(str); } catch (e) { return false; } return true; }; + + export const Box = x => ({ + map: f => Box(f(x)), + fold: f => f(x), + inspect: () => `Box(${x})` + });
6
0.75
6
0
cd1dba997e6f33ae3d3427907ace20f8f5ab400c
example/webpack.config.babel.js
example/webpack.config.babel.js
import NpmInstallPlugin from "npm-install-webpack-plugin"; import path from "path"; export const defaults = { context: process.cwd(), externals: [], module: { loaders: [ { test: /\.css$/, loader: "style-loader" }, { test: /\.css$/, loader: "css-loader", query: { localIdentName: "[name]-[local]--[hash:base64:5]" } }, { test: /\.eot$/, loader: "file-loader" }, { test: /\.js$/, loader: "babel-loader", query: { cacheDirectory: true }, exclude: /node_modules/ }, { test: /\.json$/, loader: "json-loader" }, { test: /\.(png|jpg)$/, loader: "url-loader", query: { limit: 8192 } }, // Inline base64 URLs for <= 8K images { test: /\.svg$/, loader: "url-loader", query: { mimetype: "image/svg+xml" } }, { test: /\.ttf$/, loader: "url-loader", query: { mimetype: "application/octet-stream" } }, { test: /\.(woff|woff2)$/, loader: "url-loader", query: { mimetype: "application/font-woff" } }, ], }, output: { chunkFilename: "[id].[hash:5]-[chunkhash:7].js", devtoolModuleFilenameTemplate: "[absolute-resource-path]", filename: "[name].js", }, plugins: [ new NpmInstallPlugin(), ], };
import NpmInstallPlugin from "npm-install-webpack-plugin"; import path from "path"; export const defaults = { context: process.cwd(), externals: [], module: { loaders: [ { test: /\.css$/, loader: "style" }, { test: /\.css$/, loader: "css", query: { localIdentName: "[name]-[local]--[hash:base64:5]" } }, { test: /\.eot$/, loader: "file" }, { test: /\.js$/, loader: "babel", query: { cacheDirectory: true }, exclude: /node_modules/ }, { test: /\.json$/, loader: "json" }, { test: /\.(png|jpg)$/, loader: "url", query: { limit: 8192 } }, // Inline base64 URLs for <= 8K images { test: /\.svg$/, loader: "url", query: { mimetype: "image/svg+xml" } }, { test: /\.ttf$/, loader: "url", query: { mimetype: "application/octet-stream" } }, { test: /\.(woff|woff2)$/, loader: "url", query: { mimetype: "application/font-woff" } }, ], }, output: { chunkFilename: "[id].[hash:5]-[chunkhash:7].js", devtoolModuleFilenameTemplate: "[absolute-resource-path]", filename: "[name].js", }, plugins: [ new NpmInstallPlugin(), ], };
Update example to use more terse "-loader"-less format
Update example to use more terse "-loader"-less format
JavaScript
mit
ericclemmons/babel-plugin-auto-install,ericclemmons/npm-install-webpack-plugin,ericclemmons/npm-install-webpack-plugin,ericclemmons/npm-install-loader
javascript
## Code Before: import NpmInstallPlugin from "npm-install-webpack-plugin"; import path from "path"; export const defaults = { context: process.cwd(), externals: [], module: { loaders: [ { test: /\.css$/, loader: "style-loader" }, { test: /\.css$/, loader: "css-loader", query: { localIdentName: "[name]-[local]--[hash:base64:5]" } }, { test: /\.eot$/, loader: "file-loader" }, { test: /\.js$/, loader: "babel-loader", query: { cacheDirectory: true }, exclude: /node_modules/ }, { test: /\.json$/, loader: "json-loader" }, { test: /\.(png|jpg)$/, loader: "url-loader", query: { limit: 8192 } }, // Inline base64 URLs for <= 8K images { test: /\.svg$/, loader: "url-loader", query: { mimetype: "image/svg+xml" } }, { test: /\.ttf$/, loader: "url-loader", query: { mimetype: "application/octet-stream" } }, { test: /\.(woff|woff2)$/, loader: "url-loader", query: { mimetype: "application/font-woff" } }, ], }, output: { chunkFilename: "[id].[hash:5]-[chunkhash:7].js", devtoolModuleFilenameTemplate: "[absolute-resource-path]", filename: "[name].js", }, plugins: [ new NpmInstallPlugin(), ], }; ## Instruction: Update example to use more terse "-loader"-less format ## Code After: import NpmInstallPlugin from "npm-install-webpack-plugin"; import path from "path"; export const defaults = { context: process.cwd(), externals: [], module: { loaders: [ { test: /\.css$/, loader: "style" }, { test: /\.css$/, loader: "css", query: { localIdentName: "[name]-[local]--[hash:base64:5]" } }, { test: /\.eot$/, loader: "file" }, { test: /\.js$/, loader: "babel", query: { cacheDirectory: true }, exclude: /node_modules/ }, { test: /\.json$/, loader: "json" }, { test: /\.(png|jpg)$/, loader: "url", query: { limit: 8192 } }, // Inline base64 URLs for <= 8K images { test: /\.svg$/, loader: "url", query: { mimetype: "image/svg+xml" } }, { test: /\.ttf$/, loader: "url", query: { mimetype: "application/octet-stream" } }, { test: /\.(woff|woff2)$/, loader: "url", query: { mimetype: "application/font-woff" } }, ], }, output: { chunkFilename: "[id].[hash:5]-[chunkhash:7].js", devtoolModuleFilenameTemplate: "[absolute-resource-path]", filename: "[name].js", }, plugins: [ new NpmInstallPlugin(), ], };
import NpmInstallPlugin from "npm-install-webpack-plugin"; import path from "path"; export const defaults = { context: process.cwd(), externals: [], module: { loaders: [ - { test: /\.css$/, loader: "style-loader" }, ? ------- + { test: /\.css$/, loader: "style" }, - { test: /\.css$/, loader: "css-loader", query: { localIdentName: "[name]-[local]--[hash:base64:5]" } }, ? ------- + { test: /\.css$/, loader: "css", query: { localIdentName: "[name]-[local]--[hash:base64:5]" } }, - { test: /\.eot$/, loader: "file-loader" }, ? ------- + { test: /\.eot$/, loader: "file" }, - { test: /\.js$/, loader: "babel-loader", query: { cacheDirectory: true }, exclude: /node_modules/ }, ? ------- + { test: /\.js$/, loader: "babel", query: { cacheDirectory: true }, exclude: /node_modules/ }, - { test: /\.json$/, loader: "json-loader" }, ? ------- + { test: /\.json$/, loader: "json" }, - { test: /\.(png|jpg)$/, loader: "url-loader", query: { limit: 8192 } }, // Inline base64 URLs for <= 8K images ? ------- + { test: /\.(png|jpg)$/, loader: "url", query: { limit: 8192 } }, // Inline base64 URLs for <= 8K images - { test: /\.svg$/, loader: "url-loader", query: { mimetype: "image/svg+xml" } }, ? ------- + { test: /\.svg$/, loader: "url", query: { mimetype: "image/svg+xml" } }, - { test: /\.ttf$/, loader: "url-loader", query: { mimetype: "application/octet-stream" } }, ? ------- + { test: /\.ttf$/, loader: "url", query: { mimetype: "application/octet-stream" } }, - { test: /\.(woff|woff2)$/, loader: "url-loader", query: { mimetype: "application/font-woff" } }, ? ------- + { test: /\.(woff|woff2)$/, loader: "url", query: { mimetype: "application/font-woff" } }, ], }, output: { chunkFilename: "[id].[hash:5]-[chunkhash:7].js", devtoolModuleFilenameTemplate: "[absolute-resource-path]", filename: "[name].js", }, plugins: [ new NpmInstallPlugin(), ], };
18
0.5625
9
9
c51ac90f6c9c95b0810d121085f61a0f4f41f5db
README.md
README.md
An implementation of [JMESPath](http://jmespath.org/) for Java. It supports searching JSON documents (via Jackson) and structures containing basic Java objects (`Map`, `List`, `String`, etc.). ## Basic usage ```java import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.JsonNode; import io.burt.jmespath.Query; import io.burt.jmespath.Adapter; import io.burt.jmespath.jackson.JacksonAdapter; // … JsonNode input = new ObjectMapper().readTree(System.in); Adapter<JsonNode> adapter = new JacksonAdapter(); Query query = Query.fromString(args[0]); JsonNode result = query.evaluate(adapter, input); ``` # Copyright © 2016 Burt AB, see LICENSE.txt (BSD 3-Clause).
An implementation of [JMESPath](http://jmespath.org/) for Java. It supports searching JSON documents (via Jackson) and structures containing basic Java objects (`Map`, `List`, `String`, etc.). ## Basic usage ```java import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.JsonNode; import io.burt.jmespath.Query; import io.burt.jmespath.Adapter; import io.burt.jmespath.jackson.JacksonAdapter; // … JsonNode input = new ObjectMapper().readTree(System.in); Adapter<JsonNode> adapter = new JacksonAdapter(); Query query = Query.fromString(adapter, "locations[?state == 'WA'].name | sort(@) | {WashingtonCities: join(', ', @)}"); JsonNode result = query.evaluate(adapter, input); ``` # Copyright © 2016 Burt AB, see LICENSE.txt (BSD 3-Clause).
Use a real query in the readme example, not "args[0]"
Use a real query in the readme example, not "args[0]"
Markdown
bsd-3-clause
burtcorp/jmespath-java
markdown
## Code Before: An implementation of [JMESPath](http://jmespath.org/) for Java. It supports searching JSON documents (via Jackson) and structures containing basic Java objects (`Map`, `List`, `String`, etc.). ## Basic usage ```java import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.JsonNode; import io.burt.jmespath.Query; import io.burt.jmespath.Adapter; import io.burt.jmespath.jackson.JacksonAdapter; // … JsonNode input = new ObjectMapper().readTree(System.in); Adapter<JsonNode> adapter = new JacksonAdapter(); Query query = Query.fromString(args[0]); JsonNode result = query.evaluate(adapter, input); ``` # Copyright © 2016 Burt AB, see LICENSE.txt (BSD 3-Clause). ## Instruction: Use a real query in the readme example, not "args[0]" ## Code After: An implementation of [JMESPath](http://jmespath.org/) for Java. It supports searching JSON documents (via Jackson) and structures containing basic Java objects (`Map`, `List`, `String`, etc.). ## Basic usage ```java import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.JsonNode; import io.burt.jmespath.Query; import io.burt.jmespath.Adapter; import io.burt.jmespath.jackson.JacksonAdapter; // … JsonNode input = new ObjectMapper().readTree(System.in); Adapter<JsonNode> adapter = new JacksonAdapter(); Query query = Query.fromString(adapter, "locations[?state == 'WA'].name | sort(@) | {WashingtonCities: join(', ', @)}"); JsonNode result = query.evaluate(adapter, input); ``` # Copyright © 2016 Burt AB, see LICENSE.txt (BSD 3-Clause).
An implementation of [JMESPath](http://jmespath.org/) for Java. It supports searching JSON documents (via Jackson) and structures containing basic Java objects (`Map`, `List`, `String`, etc.). ## Basic usage ```java import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.JsonNode; import io.burt.jmespath.Query; import io.burt.jmespath.Adapter; import io.burt.jmespath.jackson.JacksonAdapter; // … JsonNode input = new ObjectMapper().readTree(System.in); Adapter<JsonNode> adapter = new JacksonAdapter(); - Query query = Query.fromString(args[0]); + Query query = Query.fromString(adapter, "locations[?state == 'WA'].name | sort(@) | {WashingtonCities: join(', ', @)}"); JsonNode result = query.evaluate(adapter, input); ``` # Copyright © 2016 Burt AB, see LICENSE.txt (BSD 3-Clause).
2
0.083333
1
1
dac528896ce7cece74ecb5a6a047dd824dc0df10
lib/tests_finder.coffee
lib/tests_finder.coffee
fs = require 'fs' path = require 'path' # Finds all test files in the given directory. class TestsFinder constructor: (@directory) -> # Returns the name of all files within the given directory that contain tests. files: -> files = [] @_search_directory @directory, files files _search_directory: (dir, files) -> # TODO: make this return files, instead of using a param for that. for file in fs.readdirSync(dir) continue if @_is_hidden file filePath = path.resolve "#{dir}/#{file}" stat = fs.statSync filePath if stat.isFile() continue unless @_is_test_file file files.push filePath else if stat.isDirectory() @_search_directory filePath, files # Returns whether the given filesystem object is hidden. _is_hidden: (file) -> file[0] == '.' # Returns whether the file with the given filename contains unit tests. _is_test_file: (file) -> # Ignore non-test code files. return false unless file.match /^.*_test\.[^\.]+$/ # Ignore non-code files. return false unless file.match /(js|coffee)$/ true module.exports = TestsFinder
fs = require 'fs' path = require 'path' # Finds all test files in the given directory. class TestsFinder constructor: (@directory) -> # Returns the name of all files within the given directory that contain tests. files: -> @_search_directory @directory, [] # Adds all test files in the current directory and its subdirectories # to the given files array. _search_directory: (dir, files) -> for file in fs.readdirSync(dir) continue if @_is_hidden file filePath = path.resolve "#{dir}/#{file}" stat = fs.statSync filePath if stat.isFile() continue unless @_is_test_file file files.push filePath else if stat.isDirectory() @_search_directory filePath, files files # Returns whether the given filesystem object is hidden. _is_hidden: (file) -> file[0] == '.' # Returns whether the file with the given filename contains unit tests. _is_test_file: (file) -> # Ignore non-test code files. return false unless file.match /^.*_test\.[^\.]+$/ # Ignore non-code files. return false unless file.match /(js|coffee)$/ true module.exports = TestsFinder
Simplify recursive file search interface
Simplify recursive file search interface
CoffeeScript
mit
Originate/mycha
coffeescript
## Code Before: fs = require 'fs' path = require 'path' # Finds all test files in the given directory. class TestsFinder constructor: (@directory) -> # Returns the name of all files within the given directory that contain tests. files: -> files = [] @_search_directory @directory, files files _search_directory: (dir, files) -> # TODO: make this return files, instead of using a param for that. for file in fs.readdirSync(dir) continue if @_is_hidden file filePath = path.resolve "#{dir}/#{file}" stat = fs.statSync filePath if stat.isFile() continue unless @_is_test_file file files.push filePath else if stat.isDirectory() @_search_directory filePath, files # Returns whether the given filesystem object is hidden. _is_hidden: (file) -> file[0] == '.' # Returns whether the file with the given filename contains unit tests. _is_test_file: (file) -> # Ignore non-test code files. return false unless file.match /^.*_test\.[^\.]+$/ # Ignore non-code files. return false unless file.match /(js|coffee)$/ true module.exports = TestsFinder ## Instruction: Simplify recursive file search interface ## Code After: fs = require 'fs' path = require 'path' # Finds all test files in the given directory. class TestsFinder constructor: (@directory) -> # Returns the name of all files within the given directory that contain tests. files: -> @_search_directory @directory, [] # Adds all test files in the current directory and its subdirectories # to the given files array. _search_directory: (dir, files) -> for file in fs.readdirSync(dir) continue if @_is_hidden file filePath = path.resolve "#{dir}/#{file}" stat = fs.statSync filePath if stat.isFile() continue unless @_is_test_file file files.push filePath else if stat.isDirectory() @_search_directory filePath, files files # Returns whether the given filesystem object is hidden. _is_hidden: (file) -> file[0] == '.' # Returns whether the file with the given filename contains unit tests. _is_test_file: (file) -> # Ignore non-test code files. return false unless file.match /^.*_test\.[^\.]+$/ # Ignore non-code files. return false unless file.match /(js|coffee)$/ true module.exports = TestsFinder
fs = require 'fs' path = require 'path' # Finds all test files in the given directory. class TestsFinder constructor: (@directory) -> # Returns the name of all files within the given directory that contain tests. files: -> - files = [] - @_search_directory @directory, files ? ^^^^^ + @_search_directory @directory, [] ? ^^ - files + # Adds all test files in the current directory and its subdirectories + # to the given files array. _search_directory: (dir, files) -> - # TODO: make this return files, instead of using a param for that. for file in fs.readdirSync(dir) continue if @_is_hidden file filePath = path.resolve "#{dir}/#{file}" stat = fs.statSync filePath if stat.isFile() continue unless @_is_test_file file files.push filePath else if stat.isDirectory() @_search_directory filePath, files + files # Returns whether the given filesystem object is hidden. _is_hidden: (file) -> file[0] == '.' # Returns whether the file with the given filename contains unit tests. _is_test_file: (file) -> # Ignore non-test code files. return false unless file.match /^.*_test\.[^\.]+$/ # Ignore non-code files. return false unless file.match /(js|coffee)$/ true module.exports = TestsFinder
8
0.163265
4
4
98a95a24d53ef344361e6412a3f8132ecf9c4776
contact.jade
contact.jade
--- layout: default title: Contact --- script $(function () { $("#contact-nav-button").addClass("active"); }); h1 {{ page.title }} :markdown The best way to contact is by participating in our online community, [http://community.modphon.com](http://community.modphon.com/). We are active participants in our own community, so you are likely to receive a quick reply. If for some reason you want to contact us privately, you can do so by sending email to <info@modphon.com>.
--- layout: default title: Contact --- script $(function () { $("#contact-nav-button").addClass("active"); }); h1 {{ page.title }} :markdown The best way to contact us will be by participating in our online community, which is very nearly but not yet active. For the time being you can contact us by sending email to <info@modphon.com>. //:markdown The best way to contact us is by participating in our online community, [http://community.modphon.com](http://community.modphon.com/). We are active participants in our own community, so you are likely to receive a quick reply. If for some reason you want to contact us privately, you can do so by sending email to <info@modphon.com>.
Remove link to not-yet-ready community forum
Remove link to not-yet-ready community forum
Jade
mit
modphon/modphon.github.io,modphon/modphon.github.io,modphon/modphon.github.io,modphon/modphon.github.io
jade
## Code Before: --- layout: default title: Contact --- script $(function () { $("#contact-nav-button").addClass("active"); }); h1 {{ page.title }} :markdown The best way to contact is by participating in our online community, [http://community.modphon.com](http://community.modphon.com/). We are active participants in our own community, so you are likely to receive a quick reply. If for some reason you want to contact us privately, you can do so by sending email to <info@modphon.com>. ## Instruction: Remove link to not-yet-ready community forum ## Code After: --- layout: default title: Contact --- script $(function () { $("#contact-nav-button").addClass("active"); }); h1 {{ page.title }} :markdown The best way to contact us will be by participating in our online community, which is very nearly but not yet active. For the time being you can contact us by sending email to <info@modphon.com>. //:markdown The best way to contact us is by participating in our online community, [http://community.modphon.com](http://community.modphon.com/). We are active participants in our own community, so you are likely to receive a quick reply. If for some reason you want to contact us privately, you can do so by sending email to <info@modphon.com>.
--- layout: default title: Contact --- script $(function () { $("#contact-nav-button").addClass("active"); }); h1 {{ page.title }} :markdown + The best way to contact us will be by participating in our online community, + which is very nearly but not yet active. + + For the time being you can contact us + by sending email to <info@modphon.com>. + + //:markdown - The best way to contact is by participating in our online community, + The best way to contact us is by participating in our online community, ? +++ [http://community.modphon.com](http://community.modphon.com/). We are active participants in our own community, so you are likely to receive a quick reply. If for some reason you want to contact us privately, you can do so by sending email to <info@modphon.com>.
9
0.5625
8
1
2fcee18a5638ec29efb8082c4a93e1d3ef86bf59
.travis.yml
.travis.yml
language: c sudo: required install: wget https://raw.githubusercontent.com/ocaml/ocaml-travisci-skeleton/master/.travis-opam.sh script: - bash -ex .travis-ci.sh env: - OCAML_VERSION=4.02 PACKAGE=bulletml
language: c sudo: required install: wget https://raw.githubusercontent.com/ocaml/ocaml-travisci-skeleton/master/.travis-opam.sh script: - bash -ex .travis-ci.sh env: - OCAML_VERSION=4.02 PACKAGE=bulletml - OCAML_VERSION=4.03 PACKAGE=bulletml - OCAML_VERSION=latest PACKAGE=bulletml
Add more versions to env matrix
Add more versions to env matrix
YAML
bsd-2-clause
emillon/bulletml,emillon/bulletml
yaml
## Code Before: language: c sudo: required install: wget https://raw.githubusercontent.com/ocaml/ocaml-travisci-skeleton/master/.travis-opam.sh script: - bash -ex .travis-ci.sh env: - OCAML_VERSION=4.02 PACKAGE=bulletml ## Instruction: Add more versions to env matrix ## Code After: language: c sudo: required install: wget https://raw.githubusercontent.com/ocaml/ocaml-travisci-skeleton/master/.travis-opam.sh script: - bash -ex .travis-ci.sh env: - OCAML_VERSION=4.02 PACKAGE=bulletml - OCAML_VERSION=4.03 PACKAGE=bulletml - OCAML_VERSION=latest PACKAGE=bulletml
language: c sudo: required install: wget https://raw.githubusercontent.com/ocaml/ocaml-travisci-skeleton/master/.travis-opam.sh script: - bash -ex .travis-ci.sh env: - OCAML_VERSION=4.02 PACKAGE=bulletml + - OCAML_VERSION=4.03 PACKAGE=bulletml + - OCAML_VERSION=latest PACKAGE=bulletml
2
0.285714
2
0
fc76be9e0e47d5ccbdbe0e513bd7696316023913
resources/ircbot/example_config.json
resources/ircbot/example_config.json
{ "server" : "irc.freenode.net", "port" : 6667, "nick" : "phabot", "join" : [ "#phabot-test" ], "handlers" : [ "PhabricatorIRCProtocolHandler" ], "conduit.uri" : null, "conduit.user" : null, "conduit.cert" : null }
{ "server" : "irc.freenode.net", "port" : 6667, "nick" : "phabot", "join" : [ "#phabot-test" ], "handlers" : [ "PhabricatorIRCProtocolHandler", "PhabricatorIRCObjectNameHandler" ], "conduit.uri" : null, "conduit.user" : null, "conduit.cert" : null }
Add PhabricatorIRCObjectNameHandler to the default bot config.
Add PhabricatorIRCObjectNameHandler to the default bot config. Summary: Include the object name handler by default, to allow for things like Dxxx working out of the box. Test Plan: Added the line, and had a "working" bot (sending D1 to the channel returned a valid response) Reviewers: epriestley CC: Differential Revision: 537
JSON
apache-2.0
huangjimmy/phabricator-1,librewiki/phabricator,vuamitom/phabricator,dannysu/phabricator,kanarip/phabricator,MicroWorldwide/phabricator,vuamitom/phabricator,denisdeejay/phabricator,Soluis/phabricator,WuJiahu/phabricator,schlaile/phabricator,benchling/phabricator,devurandom/phabricator,optimizely/phabricator,jwdeitch/phabricator,kanarip/phabricator,wxstars/phabricator,r4nt/phabricator,gsinkovskiy/phabricator,aik099/phabricator,Soluis/phabricator,UNCC-OpenProjects/Phabricator,leolujuyi/phabricator,tanglu-org/tracker-phabricator,a20012251/phabricator,a20012251/phabricator,zhihu/phabricator,jwdeitch/phabricator,codevlabs/phabricator,librewiki/phabricator,eSpark/phabricator,telerik/phabricator,cjxgm/p.cjprods.org,phacility/phabricator,freebsd/phabricator,ryancford/phabricator,leolujuyi/phabricator,aik099/phabricator,Symplicity/phabricator,hshackathons/phabricator-deprecated,aik099/phabricator,kanarip/phabricator,hach-que/unearth-phabricator,zhihu/phabricator,eSpark/phabricator,dannysu/phabricator,wangjun/phabricator,Drooids/phabricator,shl3807/phabricator,kwoun1982/phabricator,gsinkovskiy/phabricator,matthewrez/phabricator,shrimpma/phabricator,huaban/phabricator,eSpark/phabricator,akkakks/phabricator,zhihu/phabricator,NigelGreenway/phabricator,Automatic/phabricator,freebsd/phabricator,shl3807/phabricator,aswanderley/phabricator,benchling/phabricator,parksangkil/phabricator,vuamitom/phabricator,matthewrez/phabricator,devurandom/phabricator,kanarip/phabricator,NigelGreenway/phabricator,Symplicity/phabricator,sharpwhisper/phabricator,tanglu-org/tracker-phabricator,ryancford/phabricator,Khan/phabricator,hach-que/phabricator,cjxgm/p.cjprods.org,memsql/phabricator,wusuoyongxin/phabricator,vuamitom/phabricator,gsinkovskiy/phabricator,phacility/phabricator,WuJiahu/phabricator,uhd-urz/phabricator,folsom-labs/phabricator,librewiki/phabricator,cjxgm/p.cjprods.org,sharpwhisper/phabricator,parksangkil/phabricator,christopher-johnson/phabricator,librewiki/phabricator,r4nt/phabricator,folsom-labs/phabricator,MicroWorldwide/phabricator,apexstudios/phabricator,aswanderley/phabricator,kalbasit/phabricator,eSpark/phabricator,telerik/phabricator,folsom-labs/phabricator,freebsd/phabricator,dannysu/phabricator,memsql/phabricator,vinzent/phabricator,coursera/phabricator,huangjimmy/phabricator-1,optimizely/phabricator,folsom-labs/phabricator,WuJiahu/phabricator,huangjimmy/phabricator-1,devurandom/phabricator,wikimedia/phabricator-phabricator,gsinkovskiy/phabricator,wikimedia/phabricator-phabricator,tanglu-org/tracker-phabricator,hach-que/unearth-phabricator,christopher-johnson/phabricator,uhd-urz/phabricator,schlaile/phabricator,shrimpma/phabricator,uhd-urz/phabricator,wxstars/phabricator,leolujuyi/phabricator,wikimedia/phabricator,optimizely/phabricator,wikimedia/phabricator,kalbasit/phabricator,memsql/phabricator,benchling/phabricator,huaban/phabricator,jwdeitch/phabricator,huaban/phabricator,aik099/phabricator,kwoun1982/phabricator,wusuoyongxin/phabricator,optimizely/phabricator,coursera/phabricator,sharpwhisper/phabricator,librewiki/phabricator,wusuoyongxin/phabricator,apexstudios/phabricator,WuJiahu/phabricator,leolujuyi/phabricator,wangjun/phabricator,ide/phabricator,vinzent/phabricator,hshackathons/phabricator-deprecated,akkakks/phabricator,Soluis/phabricator,freebsd/phabricator,Khan/phabricator,denisdeejay/phabricator,zhihu/phabricator,memsql/phabricator,Khan/phabricator,hshackathons/phabricator-deprecated,NigelGreenway/phabricator,Automattic/phabricator,benchling/phabricator,Soluis/phabricator,MicroWorldwide/phabricator,wikimedia/phabricator-phabricator,jwdeitch/phabricator,parksangkil/phabricator,christopher-johnson/phabricator,cjxgm/p.cjprods.org,Automattic/phabricator,denisdeejay/phabricator,kalbasit/phabricator,hshackathons/phabricator-deprecated,christopher-johnson/phabricator,schlaile/phabricator,phacility/phabricator,Automatic/phabricator,kwoun1982/phabricator,wikimedia/phabricator-phabricator,wangjun/phabricator,wikimedia/phabricator-phabricator,coursera/phabricator,ide/phabricator,codevlabs/phabricator,eSpark/phabricator,akkakks/phabricator,hach-que/phabricator,matthewrez/phabricator,shrimpma/phabricator,Drooids/phabricator,zhihu/phabricator,gsinkovskiy/phabricator,shl3807/phabricator,wxstars/phabricator,kalbasit/phabricator,ryancford/phabricator,huaban/phabricator,tanglu-org/tracker-phabricator,codevlabs/phabricator,uhd-urz/phabricator,MicroWorldwide/phabricator,kwoun1982/phabricator,Drooids/phabricator,matthewrez/phabricator,a20012251/phabricator,hach-que/phabricator,devurandom/phabricator,vuamitom/phabricator,folsom-labs/phabricator,Symplicity/phabricator,optimizely/phabricator,ryancford/phabricator,r4nt/phabricator,christopher-johnson/phabricator,hach-que/unearth-phabricator,Khan/phabricator,zhihu/phabricator,wikimedia/phabricator,vinzent/phabricator,hach-que/phabricator,telerik/phabricator,r4nt/phabricator,codevlabs/phabricator,denisdeejay/phabricator,Automattic/phabricator,apexstudios/phabricator,memsql/phabricator,Soluis/phabricator,hach-que/unearth-phabricator,NigelGreenway/phabricator,wusuoyongxin/phabricator,shl3807/phabricator,NigelGreenway/phabricator,a20012251/phabricator,UNCC-OpenProjects/Phabricator,akkakks/phabricator,hach-que/phabricator,wangjun/phabricator,dannysu/phabricator,tanglu-org/tracker-phabricator,uhd-urz/phabricator,aswanderley/phabricator,cjxgm/p.cjprods.org,sharpwhisper/phabricator,Drooids/phabricator,hshackathons/phabricator-deprecated,shrimpma/phabricator,vinzent/phabricator,huangjimmy/phabricator-1,dannysu/phabricator,aswanderley/phabricator,UNCC-OpenProjects/Phabricator,UNCC-OpenProjects/Phabricator,parksangkil/phabricator,phacility/phabricator,ide/phabricator,kwoun1982/phabricator,kanarip/phabricator,devurandom/phabricator,coursera/phabricator,wxstars/phabricator,wikimedia/phabricator,Automatic/phabricator,schlaile/phabricator,Symplicity/phabricator,vinzent/phabricator,hach-que/unearth-phabricator,Automatic/phabricator,codevlabs/phabricator,ide/phabricator,r4nt/phabricator,huangjimmy/phabricator-1,devurandom/phabricator,a20012251/phabricator,sharpwhisper/phabricator,akkakks/phabricator,aswanderley/phabricator
json
## Code Before: { "server" : "irc.freenode.net", "port" : 6667, "nick" : "phabot", "join" : [ "#phabot-test" ], "handlers" : [ "PhabricatorIRCProtocolHandler" ], "conduit.uri" : null, "conduit.user" : null, "conduit.cert" : null } ## Instruction: Add PhabricatorIRCObjectNameHandler to the default bot config. Summary: Include the object name handler by default, to allow for things like Dxxx working out of the box. Test Plan: Added the line, and had a "working" bot (sending D1 to the channel returned a valid response) Reviewers: epriestley CC: Differential Revision: 537 ## Code After: { "server" : "irc.freenode.net", "port" : 6667, "nick" : "phabot", "join" : [ "#phabot-test" ], "handlers" : [ "PhabricatorIRCProtocolHandler", "PhabricatorIRCObjectNameHandler" ], "conduit.uri" : null, "conduit.user" : null, "conduit.cert" : null }
{ "server" : "irc.freenode.net", "port" : 6667, "nick" : "phabot", "join" : [ "#phabot-test" ], "handlers" : [ - "PhabricatorIRCProtocolHandler" + "PhabricatorIRCProtocolHandler", ? + + "PhabricatorIRCObjectNameHandler" ], "conduit.uri" : null, "conduit.user" : null, "conduit.cert" : null }
3
0.2
2
1
bc97ac2fe5282b7e089938c97d39a74e3041d49c
README.md
README.md
A polyfill for HTML Custom Elements [![Build Status](https://travis-ci.org/webcomponents/custom-elements.svg?branch=master)](https://travis-ci.org/webcomponents/custom-elements) ## Building & Running Tests 1. Install web-component-tester ```bash $ npm i -g web-component-tester ``` 2. Checkout the webcomponentsjs v1 branch ```bash $ git clone https://github.com/webcomponents/webcomponentsjs.git $ cd webcomponentsjs $ npm i $ gulp build ``` 3. Run tests ```bash $ wct tests/CustomElements/v1/index.html -l chrome ``` 4. Bower link to use in another project ```bash $ bower link $ cd {your project directory} $ bower link webcomponentsjs ``` ## Differences from Spec Most custom element reactions in the polyfill are driven from Mutation Observers and so are async in cases where the spec calls for synchronous reactions. There are some exceptions, like for `Document.importNode()` and `Element.setAttribute`. To ensure that queued operations are complete, mostly useful for tests, you can enable flushing: ```javascript customElements.enableFlush = true; // some DOM operations customElements.flush(); // some more DOM operations dependent on reactions in the first set ```
A polyfill for HTML Custom Elements [![Build Status](https://travis-ci.org/webcomponents/custom-elements.svg?branch=master)](https://travis-ci.org/webcomponents/custom-elements) ## Building & Running Tests 1. Install web-component-tester ```bash $ npm i -g web-component-tester ``` 2. Checkout the webcomponentsjs v1 branch ```bash $ git clone https://github.com/webcomponents/webcomponentsjs.git $ cd webcomponentsjs $ npm i $ gulp build ``` 3. Run tests ```bash $ wct tests/CustomElements/v1/index.html -l chrome ``` 4. Bower link to use in another project ```bash $ bower link $ cd {your project directory} $ bower link webcomponentsjs ``` ## Differences from Spec Most custom element reactions in the polyfill are driven from Mutation Observers and so are async in cases where the spec calls for synchronous reactions. There are some exceptions, like for `Document.importNode()` and `Element.setAttribute`. To ensure that queued operations are complete, mostly useful for tests, you can enable flushing: ```javascript customElements.enableFlush = true; // some DOM operations customElements.flush(); // some more DOM operations dependent on reactions in the first set ``` ## Known Issues Currently compiling Custom Elements down to ES5 will result in issues in browsers that already natively support Custom Elements as classes. We're working on a fix which should be forthcoming soon. In the meantime you can include the [native-shim.js](https://github.com/webcomponents/custom-elements/blob/master/src/native-shim.js).
Update readme to mention native-shim
Update readme to mention native-shim @sorvell PTAL
Markdown
bsd-3-clause
webcomponents/polyfills,webcomponents/polyfills,webcomponents/polyfills
markdown
## Code Before: A polyfill for HTML Custom Elements [![Build Status](https://travis-ci.org/webcomponents/custom-elements.svg?branch=master)](https://travis-ci.org/webcomponents/custom-elements) ## Building & Running Tests 1. Install web-component-tester ```bash $ npm i -g web-component-tester ``` 2. Checkout the webcomponentsjs v1 branch ```bash $ git clone https://github.com/webcomponents/webcomponentsjs.git $ cd webcomponentsjs $ npm i $ gulp build ``` 3. Run tests ```bash $ wct tests/CustomElements/v1/index.html -l chrome ``` 4. Bower link to use in another project ```bash $ bower link $ cd {your project directory} $ bower link webcomponentsjs ``` ## Differences from Spec Most custom element reactions in the polyfill are driven from Mutation Observers and so are async in cases where the spec calls for synchronous reactions. There are some exceptions, like for `Document.importNode()` and `Element.setAttribute`. To ensure that queued operations are complete, mostly useful for tests, you can enable flushing: ```javascript customElements.enableFlush = true; // some DOM operations customElements.flush(); // some more DOM operations dependent on reactions in the first set ``` ## Instruction: Update readme to mention native-shim @sorvell PTAL ## Code After: A polyfill for HTML Custom Elements [![Build Status](https://travis-ci.org/webcomponents/custom-elements.svg?branch=master)](https://travis-ci.org/webcomponents/custom-elements) ## Building & Running Tests 1. Install web-component-tester ```bash $ npm i -g web-component-tester ``` 2. Checkout the webcomponentsjs v1 branch ```bash $ git clone https://github.com/webcomponents/webcomponentsjs.git $ cd webcomponentsjs $ npm i $ gulp build ``` 3. Run tests ```bash $ wct tests/CustomElements/v1/index.html -l chrome ``` 4. Bower link to use in another project ```bash $ bower link $ cd {your project directory} $ bower link webcomponentsjs ``` ## Differences from Spec Most custom element reactions in the polyfill are driven from Mutation Observers and so are async in cases where the spec calls for synchronous reactions. There are some exceptions, like for `Document.importNode()` and `Element.setAttribute`. To ensure that queued operations are complete, mostly useful for tests, you can enable flushing: ```javascript customElements.enableFlush = true; // some DOM operations customElements.flush(); // some more DOM operations dependent on reactions in the first set ``` ## Known Issues Currently compiling Custom Elements down to ES5 will result in issues in browsers that already natively support Custom Elements as classes. We're working on a fix which should be forthcoming soon. In the meantime you can include the [native-shim.js](https://github.com/webcomponents/custom-elements/blob/master/src/native-shim.js).
A polyfill for HTML Custom Elements [![Build Status](https://travis-ci.org/webcomponents/custom-elements.svg?branch=master)](https://travis-ci.org/webcomponents/custom-elements) ## Building & Running Tests 1. Install web-component-tester ```bash $ npm i -g web-component-tester ``` 2. Checkout the webcomponentsjs v1 branch ```bash $ git clone https://github.com/webcomponents/webcomponentsjs.git $ cd webcomponentsjs $ npm i $ gulp build ``` 3. Run tests ```bash $ wct tests/CustomElements/v1/index.html -l chrome ``` 4. Bower link to use in another project ```bash $ bower link $ cd {your project directory} $ bower link webcomponentsjs ``` ## Differences from Spec Most custom element reactions in the polyfill are driven from Mutation Observers and so are async in cases where the spec calls for synchronous reactions. There are some exceptions, like for `Document.importNode()` and `Element.setAttribute`. To ensure that queued operations are complete, mostly useful for tests, you can enable flushing: ```javascript customElements.enableFlush = true; // some DOM operations customElements.flush(); // some more DOM operations dependent on reactions in the first set ``` + + ## Known Issues + + Currently compiling Custom Elements down to ES5 will result in issues in browsers that already natively support Custom Elements as classes. We're working on a fix which should be forthcoming soon. In the meantime you can include the [native-shim.js](https://github.com/webcomponents/custom-elements/blob/master/src/native-shim.js).
4
0.075472
4
0
3bd7d35249ae180713c4244c3d6eb5559a09a07e
spec/models/section_spec.rb
spec/models/section_spec.rb
require 'rails_helper' describe Section do let(:attrs) { FactoryGirl.attributes_for(:section) } let(:course) { double("course") } subject(:section) { Section.new(attrs) } before do allow(course).to receive("id"){ 1 } subject.course_id = course.id end it { is_expected.to respond_to(:title) } it { is_expected.to respond_to(:title_url) } it { is_expected.to respond_to(:description) } it { is_expected.to respond_to(:position) } it { is_expected.to respond_to(:course_id) } # Associations it { is_expected.to respond_to(:course) } it { is_expected.to respond_to(:lessons) } it { is_expected.to be_valid } it "shouldn't allow duplicate positions" do s2 = Section.new(attrs) s2.course_id = course.id s2.save expect(subject).not_to be_valid end end
require 'rails_helper' describe Section do let(:course) { double("Course", :id => 1) } subject(:section) { Section.new( :title => "test section", :title_url => "testsection.url.com", :description => "some test description", :position => 2, :course_id => course.id )} it { is_expected.to respond_to(:title) } it { is_expected.to respond_to(:title_url) } it { is_expected.to respond_to(:description) } it { is_expected.to respond_to(:position) } it { is_expected.to respond_to(:course_id) } # Associations it { is_expected.to belong_to(:course) } it { is_expected.to have_many(:lessons) } # Validations it { is_expected.to validate_uniqueness_of(:position).with_message('Section position has already been taken') } it { is_expected.to be_valid } end
Refactor sections model spec file
Refactor sections model spec file Addresses Issue #263 Added tests for model validations and associations. Removed test for duplicate positions and FactoryGirl variables. I extracted the methods in the before action and moved them to their respectively model's initialization, thus removing the need for the before action altogether.
Ruby
mit
TheOdinProject/theodinproject,TheOdinProject/theodinproject,TheOdinProject/theodinproject,TheOdinProject/theodinproject
ruby
## Code Before: require 'rails_helper' describe Section do let(:attrs) { FactoryGirl.attributes_for(:section) } let(:course) { double("course") } subject(:section) { Section.new(attrs) } before do allow(course).to receive("id"){ 1 } subject.course_id = course.id end it { is_expected.to respond_to(:title) } it { is_expected.to respond_to(:title_url) } it { is_expected.to respond_to(:description) } it { is_expected.to respond_to(:position) } it { is_expected.to respond_to(:course_id) } # Associations it { is_expected.to respond_to(:course) } it { is_expected.to respond_to(:lessons) } it { is_expected.to be_valid } it "shouldn't allow duplicate positions" do s2 = Section.new(attrs) s2.course_id = course.id s2.save expect(subject).not_to be_valid end end ## Instruction: Refactor sections model spec file Addresses Issue #263 Added tests for model validations and associations. Removed test for duplicate positions and FactoryGirl variables. I extracted the methods in the before action and moved them to their respectively model's initialization, thus removing the need for the before action altogether. ## Code After: require 'rails_helper' describe Section do let(:course) { double("Course", :id => 1) } subject(:section) { Section.new( :title => "test section", :title_url => "testsection.url.com", :description => "some test description", :position => 2, :course_id => course.id )} it { is_expected.to respond_to(:title) } it { is_expected.to respond_to(:title_url) } it { is_expected.to respond_to(:description) } it { is_expected.to respond_to(:position) } it { is_expected.to respond_to(:course_id) } # Associations it { is_expected.to belong_to(:course) } it { is_expected.to have_many(:lessons) } # Validations it { is_expected.to validate_uniqueness_of(:position).with_message('Section position has already been taken') } it { is_expected.to be_valid } end
require 'rails_helper' describe Section do - let(:attrs) { FactoryGirl.attributes_for(:section) } - let(:course) { double("course") } ? ^ + let(:course) { double("Course", :id => 1) } ? ^ ++++++++++ + - subject(:section) { Section.new(attrs) } ? -------- + subject(:section) { Section.new( - before do - allow(course).to receive("id"){ 1 } + :title => "test section", + :title_url => "testsection.url.com", + :description => "some test description", + :position => 2, - subject.course_id = course.id ? ^^^^^^^^ + :course_id => course.id ? ^ + + - end + )} it { is_expected.to respond_to(:title) } it { is_expected.to respond_to(:title_url) } it { is_expected.to respond_to(:description) } it { is_expected.to respond_to(:position) } it { is_expected.to respond_to(:course_id) } # Associations - it { is_expected.to respond_to(:course) } ? ^ ^^ ^ + it { is_expected.to belong_to(:course) } ? ^ ^ ^ - it { is_expected.to respond_to(:lessons) } ? ^ ^^^ ^^^^ + it { is_expected.to have_many(:lessons) } ? ^^^ ^^^ ^ - + + # Validations + it { is_expected.to validate_uniqueness_of(:position).with_message('Section position has already been taken') } it { is_expected.to be_valid } - it "shouldn't allow duplicate positions" do - s2 = Section.new(attrs) - s2.course_id = course.id - s2.save - expect(subject).not_to be_valid - end - end
31
1
14
17
d547f7d5110929b5d572833e9ea2b31141b0b58b
.vscode/settings.json
.vscode/settings.json
// Place your settings in this file to overwrite default and user settings. { "eslint.enable": true, "files.associations": { "src/*.js": "javascript" }, "search.exclude": { "build/": true, "node_modules/": true, "docs": true }, "editor.tabSize": 2, "eslint.format.enable": true, "javascript.format.enable": false, "editor.formatOnSave": true, "editor.defaultFormatter": "esbenp.prettier-vscode", }
// Place your settings in this file to overwrite default and user settings. { "eslint.enable": true, "files.associations": { "src/*.js": "javascript" }, "search.exclude": { "build/": true, "node_modules/": true, "docs/": true, "releases/": true }, "editor.tabSize": 2, "eslint.format.enable": true, "javascript.format.enable": false, "editor.formatOnSave": true, "editor.defaultFormatter": "esbenp.prettier-vscode" }
Add releases/ to vscode's search.exclude.
Add releases/ to vscode's search.exclude.
JSON
mit
Tails/vexflow,Tails/vexflow,Tails/vexflow
json
## Code Before: // Place your settings in this file to overwrite default and user settings. { "eslint.enable": true, "files.associations": { "src/*.js": "javascript" }, "search.exclude": { "build/": true, "node_modules/": true, "docs": true }, "editor.tabSize": 2, "eslint.format.enable": true, "javascript.format.enable": false, "editor.formatOnSave": true, "editor.defaultFormatter": "esbenp.prettier-vscode", } ## Instruction: Add releases/ to vscode's search.exclude. ## Code After: // Place your settings in this file to overwrite default and user settings. { "eslint.enable": true, "files.associations": { "src/*.js": "javascript" }, "search.exclude": { "build/": true, "node_modules/": true, "docs/": true, "releases/": true }, "editor.tabSize": 2, "eslint.format.enable": true, "javascript.format.enable": false, "editor.formatOnSave": true, "editor.defaultFormatter": "esbenp.prettier-vscode" }
// Place your settings in this file to overwrite default and user settings. { - "eslint.enable": true, ? -- + "eslint.enable": true, - "files.associations": { ? -- + "files.associations": { - "src/*.js": "javascript" ? ^^ + "src/*.js": "javascript" ? ^^^^ - }, + }, - "search.exclude": { ? -- + "search.exclude": { - "build/": true, ? ^^ + "build/": true, ? ^^^^ - "node_modules/": true, ? ^^ + "node_modules/": true, ? ^^^^ - "docs": true ? ---- + "docs/": true, ? + + - }, + "releases/": true + }, "editor.tabSize": 2, "eslint.format.enable": true, "javascript.format.enable": false, "editor.formatOnSave": true, - "editor.defaultFormatter": "esbenp.prettier-vscode", ? - + "editor.defaultFormatter": "esbenp.prettier-vscode" }
21
1.235294
11
10
e61a46e63e6cbab8e1f25c5b62b449e3d0c0c78a
Table/Pagination/Strategy/StrategyFactory.php
Table/Pagination/Strategy/StrategyFactory.php
<?php namespace JGM\TableBundle\Table\Pagination\Strategy; /** * The StrategyFactory will choose the right pagination * strategy in dependency of total pages and maximal pages. * * @author Jan Mühlig <mail@janmuehlig.de> * @since 1.0 */ class StrategyFactory { /** * Creates the proper strategy considered by total and maximal pages. * * @param int $totalPages Number of total pages. * @param int $maxPages Number of maximal pages. * * @return StrategyInterface Proper strategy. */ public static function getStrategy($totalPages, $maxPages) { if($totalPages > $maxPages) { return new SimpleLimitStrategy(); } else { return new AllPagesStrategy(); } } }
<?php namespace JGM\TableBundle\Table\Pagination\Strategy; /** * The StrategyFactory will choose the right pagination * strategy in dependency of total pages and maximal pages. * * @author Jan Mühlig <mail@janmuehlig.de> * @since 1.0 */ class StrategyFactory { /** * Creates the proper strategy considered by total and maximal pages. * * @param int $totalPages Number of total pages. * @param int $maxPages Number of maximal pages. * * @return StrategyInterface Proper strategy. */ public static function getStrategy($totalPages, $maxPages) { if($maxPages !== null && $totalPages > $maxPages) { return new SimpleLimitStrategy(); } else { return new AllPagesStrategy(); } } }
Use all pages strategy, if no max is defined.
Bugifx: Use all pages strategy, if no max is defined.
PHP
mit
jangemue/TableBundle,jangemue/TableBundle
php
## Code Before: <?php namespace JGM\TableBundle\Table\Pagination\Strategy; /** * The StrategyFactory will choose the right pagination * strategy in dependency of total pages and maximal pages. * * @author Jan Mühlig <mail@janmuehlig.de> * @since 1.0 */ class StrategyFactory { /** * Creates the proper strategy considered by total and maximal pages. * * @param int $totalPages Number of total pages. * @param int $maxPages Number of maximal pages. * * @return StrategyInterface Proper strategy. */ public static function getStrategy($totalPages, $maxPages) { if($totalPages > $maxPages) { return new SimpleLimitStrategy(); } else { return new AllPagesStrategy(); } } } ## Instruction: Bugifx: Use all pages strategy, if no max is defined. ## Code After: <?php namespace JGM\TableBundle\Table\Pagination\Strategy; /** * The StrategyFactory will choose the right pagination * strategy in dependency of total pages and maximal pages. * * @author Jan Mühlig <mail@janmuehlig.de> * @since 1.0 */ class StrategyFactory { /** * Creates the proper strategy considered by total and maximal pages. * * @param int $totalPages Number of total pages. * @param int $maxPages Number of maximal pages. * * @return StrategyInterface Proper strategy. */ public static function getStrategy($totalPages, $maxPages) { if($maxPages !== null && $totalPages > $maxPages) { return new SimpleLimitStrategy(); } else { return new AllPagesStrategy(); } } }
<?php namespace JGM\TableBundle\Table\Pagination\Strategy; /** * The StrategyFactory will choose the right pagination * strategy in dependency of total pages and maximal pages. * * @author Jan Mühlig <mail@janmuehlig.de> * @since 1.0 */ class StrategyFactory { /** * Creates the proper strategy considered by total and maximal pages. * * @param int $totalPages Number of total pages. * @param int $maxPages Number of maximal pages. * * @return StrategyInterface Proper strategy. */ public static function getStrategy($totalPages, $maxPages) { - if($totalPages > $maxPages) + if($maxPages !== null && $totalPages > $maxPages) { return new SimpleLimitStrategy(); } else { return new AllPagesStrategy(); } } }
2
0.060606
1
1
825fcf9897bff6c2b2feb5629aba4739fe0dd55c
src/components/SkiDayCount.js
src/components/SkiDayCount.js
import '../stylesheets/ui.scss' const percentToDecimal = (decimal) => { return ((decimal * 100) + '%') } const calcGoalProgress = (total, goal) => { return percentToDecimal(total/goal) } export const SkiDayCount = ({total, powder, backcountry, goal}) => ( <div className="ski-day-count"> <div className="total-days"> <span>{total}</span> <span>days</span> </div> <div className="powder-days"> <span>{powder}</span> <span>days</span> </div> <div className="backcountry-days"> <span>{backcountry}</span> <span>days</span> </div> <div> <span> {calcGoalProgress( total, goal )} </span> </div> </div> )
import '../stylesheets/ui.scss' const percentToDecimal = decimal => ((decimal * 100) + '%') const calcGoalProgress = (total, goal) => percentToDecimal(total/goal) export const SkiDayCount = ({total, powder, backcountry, goal}) => ( <div className="ski-day-count"> <div className="total-days"> <span>{total}</span> <span>days</span> </div> <div className="powder-days"> <span>{powder}</span> <span>days</span> </div> <div className="backcountry-days"> <span>{backcountry}</span> <span>days</span> </div> <div> <span> {calcGoalProgress( total, goal )} </span> </div> </div> )
Refactor one line arrow function to drop braces and explicit return.
Refactor one line arrow function to drop braces and explicit return.
JavaScript
mit
shawfire/ReactReduxActivityCounter
javascript
## Code Before: import '../stylesheets/ui.scss' const percentToDecimal = (decimal) => { return ((decimal * 100) + '%') } const calcGoalProgress = (total, goal) => { return percentToDecimal(total/goal) } export const SkiDayCount = ({total, powder, backcountry, goal}) => ( <div className="ski-day-count"> <div className="total-days"> <span>{total}</span> <span>days</span> </div> <div className="powder-days"> <span>{powder}</span> <span>days</span> </div> <div className="backcountry-days"> <span>{backcountry}</span> <span>days</span> </div> <div> <span> {calcGoalProgress( total, goal )} </span> </div> </div> ) ## Instruction: Refactor one line arrow function to drop braces and explicit return. ## Code After: import '../stylesheets/ui.scss' const percentToDecimal = decimal => ((decimal * 100) + '%') const calcGoalProgress = (total, goal) => percentToDecimal(total/goal) export const SkiDayCount = ({total, powder, backcountry, goal}) => ( <div className="ski-day-count"> <div className="total-days"> <span>{total}</span> <span>days</span> </div> <div className="powder-days"> <span>{powder}</span> <span>days</span> </div> <div className="backcountry-days"> <span>{backcountry}</span> <span>days</span> </div> <div> <span> {calcGoalProgress( total, goal )} </span> </div> </div> )
import '../stylesheets/ui.scss' + const percentToDecimal = decimal => ((decimal * 100) + '%') - const percentToDecimal = (decimal) => { - return ((decimal * 100) + '%') - } + const calcGoalProgress = (total, goal) => percentToDecimal(total/goal) - const calcGoalProgress = (total, goal) => { - return percentToDecimal(total/goal) - } export const SkiDayCount = ({total, powder, backcountry, goal}) => ( <div className="ski-day-count"> <div className="total-days"> <span>{total}</span> <span>days</span> </div> <div className="powder-days"> <span>{powder}</span> <span>days</span> </div> <div className="backcountry-days"> <span>{backcountry}</span> <span>days</span> </div> <div> <span> {calcGoalProgress( - total, ? - + total, goal )} </span> </div> </div> )
10
0.294118
3
7
4e2d7b33310a31338472f413435e6e468404dda1
scripts/build-git-lib.sh
scripts/build-git-lib.sh
if [ $# -lt 1 ]; then echo "\nUsage: $0 <giturl> [<refspec>]\n" exit 1 fi REPO_NAME=`basename "${1%.*}"` if [ ! -z $LD_INSTALL_PREFIX ]; then CONFIGURE_ARGS=--prefix=$LD_INSTALL_PREFIX else CONFIGURE_ARGS= fi if [ ! -z $2 ]; then REFSPEC=$2 else REFSPEC=origin/master fi if [ ! -d "$REPO_NAME" ]; then echo "Repository $REPO_NAME not cloned. Cloning..." git clone $1 cd $REPO_NAME git checkout $REFSPEC ./autogen.sh ./configure $CONFIGURE_ARGS make check make install else echo "Found repository $REPO_NAME." cd $REPO_NAME git fetch if [ `git rev-parse HEAD` != `git rev-parse $REFSPEC` ]; then echo "Local hash `git rev-parse HEAD` and Remote hash `git rev-parse $REFSPEC` differ. Rebuilding..." git clean -fxd git checkout $REFSPEC ./autogen.sh ./configure $CONFIGURE_ARGS make check make install fi fi cd ..
if [ $# -lt 1 ]; then echo "\nUsage: $0 <giturl> [<refspec>]\n" exit 1 fi REPO_NAME=`basename "${1%.*}"` if [ ! -z $LD_INSTALL_PREFIX ]; then CONFIGURE_ARGS=--prefix=$LD_INSTALL_PREFIX else CONFIGURE_ARGS= fi if [ ! -z $2 ]; then REFSPEC=$2 else REFSPEC=origin/master fi if [ ! -d "$REPO_NAME" ]; then echo "Repository $REPO_NAME not cloned. Cloning..." git clone $1 cd $REPO_NAME git checkout $REFSPEC ./autogen.sh ./configure $CONFIGURE_ARGS make check make install else echo "Found repository $REPO_NAME." cd $REPO_NAME git fetch LOCAL_HASH=`git rev-parse HEAD` REMOTE_HASH=`git rev-list -n 1 $REFSPEC` if [ $LOCAL_HASH != $REMOTE_HASH ]; then echo "Local hash $LOCAL_HASH and remote hash $REMOTE_HASH differ. Rebuilding..." git clean -fxd git checkout $REFSPEC ./autogen.sh ./configure $CONFIGURE_ARGS make check make install fi fi cd ..
Fix incorrect commit hash when building deps
Fix incorrect commit hash when building deps
Shell
apache-2.0
rickmak/skygear-server,SkygearIO/skygear-server,SkygearIO/skygear-server,rickmak/skygear-server,rickmak/skygear-server,SkygearIO/skygear-server,SkygearIO/skygear-server
shell
## Code Before: if [ $# -lt 1 ]; then echo "\nUsage: $0 <giturl> [<refspec>]\n" exit 1 fi REPO_NAME=`basename "${1%.*}"` if [ ! -z $LD_INSTALL_PREFIX ]; then CONFIGURE_ARGS=--prefix=$LD_INSTALL_PREFIX else CONFIGURE_ARGS= fi if [ ! -z $2 ]; then REFSPEC=$2 else REFSPEC=origin/master fi if [ ! -d "$REPO_NAME" ]; then echo "Repository $REPO_NAME not cloned. Cloning..." git clone $1 cd $REPO_NAME git checkout $REFSPEC ./autogen.sh ./configure $CONFIGURE_ARGS make check make install else echo "Found repository $REPO_NAME." cd $REPO_NAME git fetch if [ `git rev-parse HEAD` != `git rev-parse $REFSPEC` ]; then echo "Local hash `git rev-parse HEAD` and Remote hash `git rev-parse $REFSPEC` differ. Rebuilding..." git clean -fxd git checkout $REFSPEC ./autogen.sh ./configure $CONFIGURE_ARGS make check make install fi fi cd .. ## Instruction: Fix incorrect commit hash when building deps ## Code After: if [ $# -lt 1 ]; then echo "\nUsage: $0 <giturl> [<refspec>]\n" exit 1 fi REPO_NAME=`basename "${1%.*}"` if [ ! -z $LD_INSTALL_PREFIX ]; then CONFIGURE_ARGS=--prefix=$LD_INSTALL_PREFIX else CONFIGURE_ARGS= fi if [ ! -z $2 ]; then REFSPEC=$2 else REFSPEC=origin/master fi if [ ! -d "$REPO_NAME" ]; then echo "Repository $REPO_NAME not cloned. Cloning..." git clone $1 cd $REPO_NAME git checkout $REFSPEC ./autogen.sh ./configure $CONFIGURE_ARGS make check make install else echo "Found repository $REPO_NAME." cd $REPO_NAME git fetch LOCAL_HASH=`git rev-parse HEAD` REMOTE_HASH=`git rev-list -n 1 $REFSPEC` if [ $LOCAL_HASH != $REMOTE_HASH ]; then echo "Local hash $LOCAL_HASH and remote hash $REMOTE_HASH differ. Rebuilding..." git clean -fxd git checkout $REFSPEC ./autogen.sh ./configure $CONFIGURE_ARGS make check make install fi fi cd ..
if [ $# -lt 1 ]; then echo "\nUsage: $0 <giturl> [<refspec>]\n" exit 1 fi REPO_NAME=`basename "${1%.*}"` if [ ! -z $LD_INSTALL_PREFIX ]; then CONFIGURE_ARGS=--prefix=$LD_INSTALL_PREFIX else CONFIGURE_ARGS= fi if [ ! -z $2 ]; then REFSPEC=$2 else REFSPEC=origin/master fi if [ ! -d "$REPO_NAME" ]; then echo "Repository $REPO_NAME not cloned. Cloning..." git clone $1 cd $REPO_NAME git checkout $REFSPEC ./autogen.sh ./configure $CONFIGURE_ARGS make check make install else echo "Found repository $REPO_NAME." cd $REPO_NAME git fetch - if [ `git rev-parse HEAD` != `git rev-parse $REFSPEC` ]; then - echo "Local hash `git rev-parse HEAD` and Remote hash `git rev-parse $REFSPEC` differ. Rebuilding..." + LOCAL_HASH=`git rev-parse HEAD` + REMOTE_HASH=`git rev-list -n 1 $REFSPEC` + if [ $LOCAL_HASH != $REMOTE_HASH ]; then + echo "Local hash $LOCAL_HASH and remote hash $REMOTE_HASH differ. Rebuilding..." git clean -fxd git checkout $REFSPEC ./autogen.sh ./configure $CONFIGURE_ARGS make check make install fi fi cd ..
6
0.133333
4
2
fe87c7684336d426a5350e48d465eadaecff756c
index.android.js
index.android.js
// index.android.js // Flow import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Navigator } from 'react-native'; import Splash from './scenes/splash'; import Login from './scenes/login'; import Register from './scenes/register'; import Overview from './scenes/overview.android'; export default class FlowApp extends Component { render() { return ( <Navigator initialRoute={{ title: 'Flow', name: 'splash' }} configureScene={(route) => route.sceneConfig || Navigator.SceneConfigs.FloatFromBottomAndroid} renderScene={(route, navigator) => { switch (route.name) { case 'splash': return <Splash navigator={navigator} />; case 'login': return <Login {...route.passProps} />; case 'register': return <Register {...route.passProps} />; case 'overview': return <Overview navigator={navigator} {...route.passProps} />; default: return <Text>Bad route name given!</Text> } }} /> ); } } const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F5FCFF', }, welcome: { fontSize: 20, textAlign: 'center', margin: 10, }, instructions: { textAlign: 'center', color: '#333333', marginBottom: 5, }, }); AppRegistry.registerComponent('FlowApp', () => FlowApp);
// index.android.js // Flow import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Navigator } from 'react-native'; import Splash from './scenes/splash'; import Login from './scenes/login'; import Register from './scenes/register'; import Overview from './scenes/overview.android'; export default class FlowApp extends Component { render() { return ( <Navigator initialRoute={{ name: 'splash' }} configureScene={(route) => route.sceneConfig || Navigator.SceneConfigs.FloatFromBottomAndroid} renderScene={(route, navigator) => { switch (route.name) { case 'splash': return <Splash navigator={navigator} />; case 'login': return <Login {...route.passProps} />; case 'register': return <Register {...route.passProps} />; case 'overview': return <Overview navigator={navigator} {...route.passProps} />; default: return <Text>Bad route name given!</Text> } }} /> ); } } const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F5FCFF', }, welcome: { fontSize: 20, textAlign: 'center', margin: 10, }, instructions: { textAlign: 'center', color: '#333333', marginBottom: 5, }, }); AppRegistry.registerComponent('FlowApp', () => FlowApp);
Clean initial route from extra 'title' field
Clean initial route from extra 'title' field
JavaScript
apache-2.0
APU-Flow/FlowApp,APU-Flow/FlowApp,APU-Flow/FlowApp
javascript
## Code Before: // index.android.js // Flow import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Navigator } from 'react-native'; import Splash from './scenes/splash'; import Login from './scenes/login'; import Register from './scenes/register'; import Overview from './scenes/overview.android'; export default class FlowApp extends Component { render() { return ( <Navigator initialRoute={{ title: 'Flow', name: 'splash' }} configureScene={(route) => route.sceneConfig || Navigator.SceneConfigs.FloatFromBottomAndroid} renderScene={(route, navigator) => { switch (route.name) { case 'splash': return <Splash navigator={navigator} />; case 'login': return <Login {...route.passProps} />; case 'register': return <Register {...route.passProps} />; case 'overview': return <Overview navigator={navigator} {...route.passProps} />; default: return <Text>Bad route name given!</Text> } }} /> ); } } const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F5FCFF', }, welcome: { fontSize: 20, textAlign: 'center', margin: 10, }, instructions: { textAlign: 'center', color: '#333333', marginBottom: 5, }, }); AppRegistry.registerComponent('FlowApp', () => FlowApp); ## Instruction: Clean initial route from extra 'title' field ## Code After: // index.android.js // Flow import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Navigator } from 'react-native'; import Splash from './scenes/splash'; import Login from './scenes/login'; import Register from './scenes/register'; import Overview from './scenes/overview.android'; export default class FlowApp extends Component { render() { return ( <Navigator initialRoute={{ name: 'splash' }} configureScene={(route) => route.sceneConfig || Navigator.SceneConfigs.FloatFromBottomAndroid} renderScene={(route, navigator) => { switch (route.name) { case 'splash': return <Splash navigator={navigator} />; case 'login': return <Login {...route.passProps} />; case 'register': return <Register {...route.passProps} />; case 'overview': return <Overview navigator={navigator} {...route.passProps} />; default: return <Text>Bad route name given!</Text> } }} /> ); } } const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F5FCFF', }, welcome: { fontSize: 20, textAlign: 'center', margin: 10, }, instructions: { textAlign: 'center', color: '#333333', marginBottom: 5, }, }); AppRegistry.registerComponent('FlowApp', () => FlowApp);
// index.android.js // Flow import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Navigator } from 'react-native'; import Splash from './scenes/splash'; import Login from './scenes/login'; import Register from './scenes/register'; import Overview from './scenes/overview.android'; export default class FlowApp extends Component { render() { return ( <Navigator - initialRoute={{ title: 'Flow', name: 'splash' }} ? --------------- + initialRoute={{ name: 'splash' }} configureScene={(route) => route.sceneConfig || Navigator.SceneConfigs.FloatFromBottomAndroid} renderScene={(route, navigator) => { switch (route.name) { case 'splash': return <Splash navigator={navigator} />; case 'login': return <Login {...route.passProps} />; case 'register': return <Register {...route.passProps} />; case 'overview': return <Overview navigator={navigator} {...route.passProps} />; default: return <Text>Bad route name given!</Text> } }} /> ); } } const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F5FCFF', }, welcome: { fontSize: 20, textAlign: 'center', margin: 10, }, instructions: { textAlign: 'center', color: '#333333', marginBottom: 5, }, }); AppRegistry.registerComponent('FlowApp', () => FlowApp);
2
0.033333
1
1
ee32b2e48acd47f1f1ff96482abf20f3d1818fc4
tests/__init__.py
tests/__init__.py
import sys import unittest sys.path.append("../pythainlp") loader = unittest.TestLoader() testSuite = loader.discover("tests") testRunner = unittest.TextTestRunner(verbosity=1) testRunner.run(testSuite)
import sys import unittest import nltk sys.path.append("../pythainlp") nltk.download('omw-1.4') # load wordnet loader = unittest.TestLoader() testSuite = loader.discover("tests") testRunner = unittest.TextTestRunner(verbosity=1) testRunner.run(testSuite)
Add load wordnet to tests
Add load wordnet to tests
Python
apache-2.0
PyThaiNLP/pythainlp
python
## Code Before: import sys import unittest sys.path.append("../pythainlp") loader = unittest.TestLoader() testSuite = loader.discover("tests") testRunner = unittest.TextTestRunner(verbosity=1) testRunner.run(testSuite) ## Instruction: Add load wordnet to tests ## Code After: import sys import unittest import nltk sys.path.append("../pythainlp") nltk.download('omw-1.4') # load wordnet loader = unittest.TestLoader() testSuite = loader.discover("tests") testRunner = unittest.TextTestRunner(verbosity=1) testRunner.run(testSuite)
import sys import unittest + import nltk sys.path.append("../pythainlp") + + nltk.download('omw-1.4') # load wordnet loader = unittest.TestLoader() testSuite = loader.discover("tests") testRunner = unittest.TextTestRunner(verbosity=1) testRunner.run(testSuite)
3
0.333333
3
0
f4aa57d477ba5d27810924e14aba39e4a99dccfa
app/templates/buyers/create_brief_question.html
app/templates/buyers/create_brief_question.html
{% extends "buyers/_base_edit_question_page.html" %} {% import "macros/brief_links.html" as brief_links %} {% block breadcrumb %} {# TODO: this is the wrong label, probably #} {% with items = [ { "link": "/", "label": "Digital Marketplace" }, { "link": url_for(".info_page_for_starting_a_brief", framework_slug=framework.slug, lot_slug=lot.slug), "label": lot.name } ] %} {% include "toolkit/breadcrumb.html" %} {% endwith %} {% endblock %} {% block save_button %} {% with label="Save and continue", type="save", name = "return_to_overview" %} {% include "toolkit/button.html" %} {% endwith %} {% endblock %}
{% extends "buyers/_base_edit_question_page.html" %} {% import "macros/brief_links.html" as brief_links %} {% set previous_title_text = { "digital-outcomes": "Find a team to provide an outcome", "digital-specialists": "Find an individual specialist", "user-research-participants": "Find user research participants", }[lot.slug] %} {% block breadcrumb %} {% with items = [ { "link": "/", "label": "Digital Marketplace" }, { "link": url_for(".info_page_for_starting_a_brief", framework_slug=framework.slug, lot_slug=lot.slug), "label": previous_title_text } ] %} {% include "toolkit/breadcrumb.html" %} {% endwith %} {% endblock %} {% block save_button %} {% with label="Save and continue", type="save", name = "return_to_overview" %} {% include "toolkit/button.html" %} {% endwith %} {% endblock %}
Update breadcrumb on create brief question page
Update breadcrumb on create brief question page Use the title of the page they just came from as the breadcrumb title instead of just the lot name. Much nicer.
HTML
mit
AusDTO/dto-digitalmarketplace-buyer-frontend,alphagov/digitalmarketplace-buyer-frontend,alphagov/digitalmarketplace-buyer-frontend,alphagov/digitalmarketplace-buyer-frontend,AusDTO/dto-digitalmarketplace-buyer-frontend,alphagov/digitalmarketplace-buyer-frontend,AusDTO/dto-digitalmarketplace-buyer-frontend,AusDTO/dto-digitalmarketplace-buyer-frontend
html
## Code Before: {% extends "buyers/_base_edit_question_page.html" %} {% import "macros/brief_links.html" as brief_links %} {% block breadcrumb %} {# TODO: this is the wrong label, probably #} {% with items = [ { "link": "/", "label": "Digital Marketplace" }, { "link": url_for(".info_page_for_starting_a_brief", framework_slug=framework.slug, lot_slug=lot.slug), "label": lot.name } ] %} {% include "toolkit/breadcrumb.html" %} {% endwith %} {% endblock %} {% block save_button %} {% with label="Save and continue", type="save", name = "return_to_overview" %} {% include "toolkit/button.html" %} {% endwith %} {% endblock %} ## Instruction: Update breadcrumb on create brief question page Use the title of the page they just came from as the breadcrumb title instead of just the lot name. Much nicer. ## Code After: {% extends "buyers/_base_edit_question_page.html" %} {% import "macros/brief_links.html" as brief_links %} {% set previous_title_text = { "digital-outcomes": "Find a team to provide an outcome", "digital-specialists": "Find an individual specialist", "user-research-participants": "Find user research participants", }[lot.slug] %} {% block breadcrumb %} {% with items = [ { "link": "/", "label": "Digital Marketplace" }, { "link": url_for(".info_page_for_starting_a_brief", framework_slug=framework.slug, lot_slug=lot.slug), "label": previous_title_text } ] %} {% include "toolkit/breadcrumb.html" %} {% endwith %} {% endblock %} {% block save_button %} {% with label="Save and continue", type="save", name = "return_to_overview" %} {% include "toolkit/button.html" %} {% endwith %} {% endblock %}
{% extends "buyers/_base_edit_question_page.html" %} {% import "macros/brief_links.html" as brief_links %} + {% set previous_title_text = + { + "digital-outcomes": "Find a team to provide an outcome", + "digital-specialists": "Find an individual specialist", + "user-research-participants": "Find user research participants", + }[lot.slug] + %} + {% block breadcrumb %} - {# TODO: this is the wrong label, probably #} {% with items = [ { "link": "/", "label": "Digital Marketplace" }, { "link": url_for(".info_page_for_starting_a_brief", framework_slug=framework.slug, lot_slug=lot.slug), - "label": lot.name + "label": previous_title_text } ] %} {% include "toolkit/breadcrumb.html" %} {% endwith %} {% endblock %} {% block save_button %} {% with label="Save and continue", type="save", name = "return_to_overview" %} {% include "toolkit/button.html" %} {% endwith %} {% endblock %}
11
0.323529
9
2
a5806981dae33cf2e4bb5c38f1a1c9c5bdc010de
config/initializers/geocoder.rb
config/initializers/geocoder.rb
Geocoder::Configuration.lookup = :yahoo Geocoder::Configuration.api_key = "FZGMCffV34GyRHDpvcpT8NrASJtqaZ5_mdzn0gL5tAFGQg8Rv7Mgi5fkWHWyRgDU7A"
if Rails.env.test? Geocoder::Configuration.lookup = :yahoo Geocoder::Configuration.api_key = "FZGMCffV34GyRHDpvcpT8NrASJtqaZ5_mdzn0gL5tAFGQg8Rv7Mgi5fkWHWyRgDU7A" else Geocoder::Configuration.lookup = :google end
Use Yahoo as Geocoding API in Tests. They know no limits.
Use Yahoo as Geocoding API in Tests. They know no limits.
Ruby
mit
hacken-in/website,hacken-in/hacken-in,hacken-in/hacken-in,hacken-in/website,hacken-in/hacken-in,hacken-in/hacken-in,hacken-in/website,hacken-in/website
ruby
## Code Before: Geocoder::Configuration.lookup = :yahoo Geocoder::Configuration.api_key = "FZGMCffV34GyRHDpvcpT8NrASJtqaZ5_mdzn0gL5tAFGQg8Rv7Mgi5fkWHWyRgDU7A" ## Instruction: Use Yahoo as Geocoding API in Tests. They know no limits. ## Code After: if Rails.env.test? Geocoder::Configuration.lookup = :yahoo Geocoder::Configuration.api_key = "FZGMCffV34GyRHDpvcpT8NrASJtqaZ5_mdzn0gL5tAFGQg8Rv7Mgi5fkWHWyRgDU7A" else Geocoder::Configuration.lookup = :google end
+ if Rails.env.test? - Geocoder::Configuration.lookup = :yahoo + Geocoder::Configuration.lookup = :yahoo ? ++ - Geocoder::Configuration.api_key = "FZGMCffV34GyRHDpvcpT8NrASJtqaZ5_mdzn0gL5tAFGQg8Rv7Mgi5fkWHWyRgDU7A" + Geocoder::Configuration.api_key = "FZGMCffV34GyRHDpvcpT8NrASJtqaZ5_mdzn0gL5tAFGQg8Rv7Mgi5fkWHWyRgDU7A" ? ++ + else + Geocoder::Configuration.lookup = :google + end
8
4
6
2
987f617604b0f724dd398f4d0ff34d385e25a111
lib/query_string_search/search_option.rb
lib/query_string_search/search_option.rb
module QueryStringSearch class SearchOption attr_reader :attribute, :desired_value, :operator def initialize(raw_query) parsed_query = /(?<attribute>\w+)(?<operator>\W+)(?<value>.+)/.match(raw_query) if parsed_query self.attribute = parsed_query[:attribute] self.desired_value = parsed_query[:value] self.operator = parsed_query[:operator] end end def attribute @attribute ? @attribute.to_sym : nil end private attr_writer :attribute, :desired_value, :operator end end
module QueryStringSearch class SearchOption attr_reader :attribute, :desired_value, :operator def initialize(raw_query) parsed_query = KeyValue.parse(raw_query) self.attribute = parsed_query.attribute self.desired_value = parsed_query.desired_value self.operator = parsed_query.operator end def attribute @attribute ? @attribute.to_sym : nil end private attr_writer :attribute, :desired_value, :operator end class KeyValue attr_accessor :attribute, :desired_value, :operator def self.parse(raw_query) new(/(?<attribute>\w+)(?<operator>\W+)(?<desired_value>.+)/.match(raw_query)) end def initialize(match_data) match_data = match_data ? match_data : {} self.attribute = match_data[:attribute] self.desired_value = match_data[:desired_value] self.operator = match_data[:operator] end end end
Move parsing into its own class
Move parsing into its own class This is mostly a fix for a RuboCop complaint, but I do like having this one class responsible for the parsing and the handling of unparsable key/value pairs
Ruby
mit
umn-asr/query_string_search
ruby
## Code Before: module QueryStringSearch class SearchOption attr_reader :attribute, :desired_value, :operator def initialize(raw_query) parsed_query = /(?<attribute>\w+)(?<operator>\W+)(?<value>.+)/.match(raw_query) if parsed_query self.attribute = parsed_query[:attribute] self.desired_value = parsed_query[:value] self.operator = parsed_query[:operator] end end def attribute @attribute ? @attribute.to_sym : nil end private attr_writer :attribute, :desired_value, :operator end end ## Instruction: Move parsing into its own class This is mostly a fix for a RuboCop complaint, but I do like having this one class responsible for the parsing and the handling of unparsable key/value pairs ## Code After: module QueryStringSearch class SearchOption attr_reader :attribute, :desired_value, :operator def initialize(raw_query) parsed_query = KeyValue.parse(raw_query) self.attribute = parsed_query.attribute self.desired_value = parsed_query.desired_value self.operator = parsed_query.operator end def attribute @attribute ? @attribute.to_sym : nil end private attr_writer :attribute, :desired_value, :operator end class KeyValue attr_accessor :attribute, :desired_value, :operator def self.parse(raw_query) new(/(?<attribute>\w+)(?<operator>\W+)(?<desired_value>.+)/.match(raw_query)) end def initialize(match_data) match_data = match_data ? match_data : {} self.attribute = match_data[:attribute] self.desired_value = match_data[:desired_value] self.operator = match_data[:operator] end end end
module QueryStringSearch class SearchOption attr_reader :attribute, :desired_value, :operator def initialize(raw_query) + parsed_query = KeyValue.parse(raw_query) - parsed_query = /(?<attribute>\w+)(?<operator>\W+)(?<value>.+)/.match(raw_query) - if parsed_query - self.attribute = parsed_query[:attribute] ? -- ^^ - + self.attribute = parsed_query.attribute ? ^ - self.desired_value = parsed_query[:value] ? -- ^^ - + self.desired_value = parsed_query.desired_value ? ^^^^^^^^^ - self.operator = parsed_query[:operator] ? -- ^^ - + self.operator = parsed_query.operator ? ^ - end end def attribute @attribute ? @attribute.to_sym : nil end private attr_writer :attribute, :desired_value, :operator end + + class KeyValue + attr_accessor :attribute, :desired_value, :operator + + def self.parse(raw_query) + new(/(?<attribute>\w+)(?<operator>\W+)(?<desired_value>.+)/.match(raw_query)) + end + + def initialize(match_data) + match_data = match_data ? match_data : {} + self.attribute = match_data[:attribute] + self.desired_value = match_data[:desired_value] + self.operator = match_data[:operator] + end + end end
25
1.136364
19
6
d95093dbe7b509a47b378a0f41694ce952c02d31
.travis.yml
.travis.yml
language: cpp dist: trusty os: linux env: - DEVKITPRO="/home/travis/devkitPro" DEVKITARM="${DEVKITPRO}/devkitARM" before_install: - sudo apt-get -qq update - sudo apt-get install -y perl libsdl2-2.0-0 build-essential install: - curl -L "https://downloads.sourceforge.net/project/devkitpro/Automated%20Installer/devkitARMupdate.pl?r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fdevkitpro%2Ffiles%2FAutomated%2520Installer%2F&ts=1492550050&use_mirror=freefr" > devkitARMupdate.pl - chmod +x devkitARMupdate.pl && ./devkitARMupdate.pl - curl -L "https://github.com/citra-emu/citra-nightly/releases/download/nightly-111/citra-linux-20170418-941a3dd.tar.xz" > /tmp/citra.tar.xz - mkdir -p ~/Applications - tar xpvf /tmp/citra.tar.xz -C ~/Applications - mkdir ~/bin - ln -s ~/Applications/citra-linux-20170418-941a3dd/citra ~/bin script: ./travisscript.sh
language: cpp dist: trusty os: linux env: - DEVKITPRO="/home/travis/devkitPro" DEVKITARM="${DEVKITPRO}/devkitARM" before_install: - sudo add-apt-repository ppa:ubuntu-toolchain-r/test - sudo apt-get -qq update - sudo apt-get install -y perl libsdl2-2.0-0 build-essential qtbase5-dev libqt5opengl5-dev install: - curl -L "https://downloads.sourceforge.net/project/devkitpro/Automated%20Installer/devkitARMupdate.pl?r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fdevkitpro%2Ffiles%2FAutomated%2520Installer%2F&ts=1492550050&use_mirror=freefr" > devkitARMupdate.pl - chmod +x devkitARMupdate.pl && ./devkitARMupdate.pl - curl -L "https://github.com/citra-emu/citra-nightly/releases/download/nightly-111/citra-linux-20170418-941a3dd.tar.xz" > /tmp/citra.tar.xz - mkdir -p ~/Applications - tar xpvf /tmp/citra.tar.xz -C ~/Applications - mkdir ~/bin - ln -s ~/Applications/citra-linux-20170418-941a3dd/citra ~/bin script: ./travisscript.sh
Add citra dependencies through ppa
Add citra dependencies through ppa
YAML
mit
ahoischen/3ds-homebrew-ci,ahoischen/3ds-homebrew-ci
yaml
## Code Before: language: cpp dist: trusty os: linux env: - DEVKITPRO="/home/travis/devkitPro" DEVKITARM="${DEVKITPRO}/devkitARM" before_install: - sudo apt-get -qq update - sudo apt-get install -y perl libsdl2-2.0-0 build-essential install: - curl -L "https://downloads.sourceforge.net/project/devkitpro/Automated%20Installer/devkitARMupdate.pl?r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fdevkitpro%2Ffiles%2FAutomated%2520Installer%2F&ts=1492550050&use_mirror=freefr" > devkitARMupdate.pl - chmod +x devkitARMupdate.pl && ./devkitARMupdate.pl - curl -L "https://github.com/citra-emu/citra-nightly/releases/download/nightly-111/citra-linux-20170418-941a3dd.tar.xz" > /tmp/citra.tar.xz - mkdir -p ~/Applications - tar xpvf /tmp/citra.tar.xz -C ~/Applications - mkdir ~/bin - ln -s ~/Applications/citra-linux-20170418-941a3dd/citra ~/bin script: ./travisscript.sh ## Instruction: Add citra dependencies through ppa ## Code After: language: cpp dist: trusty os: linux env: - DEVKITPRO="/home/travis/devkitPro" DEVKITARM="${DEVKITPRO}/devkitARM" before_install: - sudo add-apt-repository ppa:ubuntu-toolchain-r/test - sudo apt-get -qq update - sudo apt-get install -y perl libsdl2-2.0-0 build-essential qtbase5-dev libqt5opengl5-dev install: - curl -L "https://downloads.sourceforge.net/project/devkitpro/Automated%20Installer/devkitARMupdate.pl?r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fdevkitpro%2Ffiles%2FAutomated%2520Installer%2F&ts=1492550050&use_mirror=freefr" > devkitARMupdate.pl - chmod +x devkitARMupdate.pl && ./devkitARMupdate.pl - curl -L "https://github.com/citra-emu/citra-nightly/releases/download/nightly-111/citra-linux-20170418-941a3dd.tar.xz" > /tmp/citra.tar.xz - mkdir -p ~/Applications - tar xpvf /tmp/citra.tar.xz -C ~/Applications - mkdir ~/bin - ln -s ~/Applications/citra-linux-20170418-941a3dd/citra ~/bin script: ./travisscript.sh
language: cpp dist: trusty os: linux env: - DEVKITPRO="/home/travis/devkitPro" DEVKITARM="${DEVKITPRO}/devkitARM" before_install: + - sudo add-apt-repository ppa:ubuntu-toolchain-r/test - sudo apt-get -qq update - - sudo apt-get install -y perl libsdl2-2.0-0 build-essential + - sudo apt-get install -y perl libsdl2-2.0-0 build-essential qtbase5-dev libqt5opengl5-dev ? ++++++++++++++++++++++++++++++ install: - curl -L "https://downloads.sourceforge.net/project/devkitpro/Automated%20Installer/devkitARMupdate.pl?r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fdevkitpro%2Ffiles%2FAutomated%2520Installer%2F&ts=1492550050&use_mirror=freefr" > devkitARMupdate.pl - chmod +x devkitARMupdate.pl && ./devkitARMupdate.pl - curl -L "https://github.com/citra-emu/citra-nightly/releases/download/nightly-111/citra-linux-20170418-941a3dd.tar.xz" > /tmp/citra.tar.xz - mkdir -p ~/Applications - tar xpvf /tmp/citra.tar.xz -C ~/Applications - mkdir ~/bin - ln -s ~/Applications/citra-linux-20170418-941a3dd/citra ~/bin script: ./travisscript.sh
3
0.142857
2
1
e638bab00187d48e7676b765d4476e80d2943727
README.md
README.md
The scripts in this repo will run on a server to automatically upload new nightly builds to RubyGems. Checkout [Rakefile](Rakefile) for more information. The script works with any gem, we use it for [fastlane](https://fastlane.tools). You have to provide the following environment variables: - `GEM_NAME` the name of your gem - `RUBYGEMS_API_KEY` the RubyGems API key you can get from [RubyGems.org](https://rubygems.org/profile/edit) Optional environment variable - `REPO_NAME` (defaults to `GEM_NAME`) - `GIT_URL` (defaults to `https://github.com/[repo_name]/[repo_name]`) - `VERSION_FILE_PATH` (defaults to `File.join(gem_name, "lib", gem_name, "version.rb")`) - `SLACK_URL` (if you want new releases to be posted to Slack) - `SLACK_CHANNEL` (only used in combination with `SLACK_URL`, defaults to `"releases"`) Put all of that on any server (e.g. Heroku) and use a schedule to call `rake beta` every night.
The scripts in this repo will run on a server to automatically upload new nightly builds to RubyGems. Checkout [Rakefile](Rakefile) for more information. The script works with any gem, we use it for [fastlane](https://fastlane.tools). You have to provide the following environment variables: - `GEM_NAME` the name of your gem - `RUBYGEMS_API_KEY` the RubyGems API key you can get from [RubyGems.org](https://rubygems.org/profile/edit) Optional environment variable - `REPO_NAME` (defaults to `GEM_NAME`) - `GIT_URL` (defaults to `https://github.com/[repo_name]/[repo_name]`) - `VERSION_FILE_PATH` (defaults to `File.join(gem_name, "lib", gem_name, "version.rb")`) - `SLACK_URL` (if you want new releases to be posted to Slack) - `SLACK_CHANNEL` (only used in combination with `SLACK_URL`, defaults to `"releases"`) Put all of that on any server (e.g. Heroku) and use a schedule to call `rake beta` every night. Please note that the nightly-build system run by the `fastlane` core team does not automatically deploy code changes made to this repository. When merging changes to the repository, please let a member of the `fastlane` core team know (via Slack or at-mention in the GitHub pull request), so that they can manually deploy your code change.
Add text explaining that the nightly build system is manually deployed.
Add text explaining that the nightly build system is manually deployed.
Markdown
mit
fastlane/nightly
markdown
## Code Before: The scripts in this repo will run on a server to automatically upload new nightly builds to RubyGems. Checkout [Rakefile](Rakefile) for more information. The script works with any gem, we use it for [fastlane](https://fastlane.tools). You have to provide the following environment variables: - `GEM_NAME` the name of your gem - `RUBYGEMS_API_KEY` the RubyGems API key you can get from [RubyGems.org](https://rubygems.org/profile/edit) Optional environment variable - `REPO_NAME` (defaults to `GEM_NAME`) - `GIT_URL` (defaults to `https://github.com/[repo_name]/[repo_name]`) - `VERSION_FILE_PATH` (defaults to `File.join(gem_name, "lib", gem_name, "version.rb")`) - `SLACK_URL` (if you want new releases to be posted to Slack) - `SLACK_CHANNEL` (only used in combination with `SLACK_URL`, defaults to `"releases"`) Put all of that on any server (e.g. Heroku) and use a schedule to call `rake beta` every night. ## Instruction: Add text explaining that the nightly build system is manually deployed. ## Code After: The scripts in this repo will run on a server to automatically upload new nightly builds to RubyGems. Checkout [Rakefile](Rakefile) for more information. The script works with any gem, we use it for [fastlane](https://fastlane.tools). You have to provide the following environment variables: - `GEM_NAME` the name of your gem - `RUBYGEMS_API_KEY` the RubyGems API key you can get from [RubyGems.org](https://rubygems.org/profile/edit) Optional environment variable - `REPO_NAME` (defaults to `GEM_NAME`) - `GIT_URL` (defaults to `https://github.com/[repo_name]/[repo_name]`) - `VERSION_FILE_PATH` (defaults to `File.join(gem_name, "lib", gem_name, "version.rb")`) - `SLACK_URL` (if you want new releases to be posted to Slack) - `SLACK_CHANNEL` (only used in combination with `SLACK_URL`, defaults to `"releases"`) Put all of that on any server (e.g. Heroku) and use a schedule to call `rake beta` every night. Please note that the nightly-build system run by the `fastlane` core team does not automatically deploy code changes made to this repository. When merging changes to the repository, please let a member of the `fastlane` core team know (via Slack or at-mention in the GitHub pull request), so that they can manually deploy your code change.
The scripts in this repo will run on a server to automatically upload new nightly builds to RubyGems. Checkout [Rakefile](Rakefile) for more information. The script works with any gem, we use it for [fastlane](https://fastlane.tools). You have to provide the following environment variables: - `GEM_NAME` the name of your gem - `RUBYGEMS_API_KEY` the RubyGems API key you can get from [RubyGems.org](https://rubygems.org/profile/edit) Optional environment variable - `REPO_NAME` (defaults to `GEM_NAME`) - `GIT_URL` (defaults to `https://github.com/[repo_name]/[repo_name]`) - `VERSION_FILE_PATH` (defaults to `File.join(gem_name, "lib", gem_name, "version.rb")`) - `SLACK_URL` (if you want new releases to be posted to Slack) - `SLACK_CHANNEL` (only used in combination with `SLACK_URL`, defaults to `"releases"`) Put all of that on any server (e.g. Heroku) and use a schedule to call `rake beta` every night. + + Please note that the nightly-build system run by the `fastlane` core team does not automatically deploy code changes made to this repository. When merging changes to the repository, please let a member of the `fastlane` core team know (via Slack or at-mention in the GitHub pull request), so that they can manually deploy your code change.
2
0.105263
2
0
c394f64bee010db10553420f68cb37668efb8ac4
addon-jms/src/main/resources/org/springframework/roo/addon/jms/dependencies.xml
addon-jms/src/main/resources/org/springframework/roo/addon/jms/dependencies.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <dependencies> <springJms> <dependency org="org.springframework" name="spring-beans" rev="${spring.version}" /> <dependency org="org.springframework" name="spring-jms" rev="${spring.version}" /> <dependency org="javax.jms" name="jms" rev="1.1" /> </springJms> <jmsProviders> <provider id="ACTIVEMQ_IN_MEMORY"> <dependency org="org.apache.activemq" name="apache-activemq" rev="5.3.0" /> <dependency org="org.apache.xbean" name="xbean-spring" rev="3.6" /> <dependency org="org.apache.geronimo.specs" name="cgeronimo-j2ee-management_1.0_spec" rev="1.0.1" /> </provider> </jmsProviders> </dependencies>
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <dependencies> <springJms> <dependency org="org.springframework" name="spring-beans" rev="${spring.version}" /> <dependency org="org.springframework" name="spring-jms" rev="${spring.version}" /> <dependency org="javax.jms" name="jms" rev="1.1" /> </springJms> <jmsProviders> <provider id="ACTIVEMQ_IN_MEMORY"> <dependency org="org.apache.activemq" name="activemq-core" rev="5.3.1" /> <dependency org="org.apache.xbean" name="xbean-spring" rev="3.6" /> <dependency org="org.apache.geronimo.specs" name="geronimo-j2ee-management_1.0_spec" rev="1.0.1" /> </provider> </jmsProviders> </dependencies>
Update ActiveMQ to version 5.3.1
ROO-756: Update ActiveMQ to version 5.3.1
XML
apache-2.0
rwl/requestfactory-addon
xml
## Code Before: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <dependencies> <springJms> <dependency org="org.springframework" name="spring-beans" rev="${spring.version}" /> <dependency org="org.springframework" name="spring-jms" rev="${spring.version}" /> <dependency org="javax.jms" name="jms" rev="1.1" /> </springJms> <jmsProviders> <provider id="ACTIVEMQ_IN_MEMORY"> <dependency org="org.apache.activemq" name="apache-activemq" rev="5.3.0" /> <dependency org="org.apache.xbean" name="xbean-spring" rev="3.6" /> <dependency org="org.apache.geronimo.specs" name="cgeronimo-j2ee-management_1.0_spec" rev="1.0.1" /> </provider> </jmsProviders> </dependencies> ## Instruction: ROO-756: Update ActiveMQ to version 5.3.1 ## Code After: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <dependencies> <springJms> <dependency org="org.springframework" name="spring-beans" rev="${spring.version}" /> <dependency org="org.springframework" name="spring-jms" rev="${spring.version}" /> <dependency org="javax.jms" name="jms" rev="1.1" /> </springJms> <jmsProviders> <provider id="ACTIVEMQ_IN_MEMORY"> <dependency org="org.apache.activemq" name="activemq-core" rev="5.3.1" /> <dependency org="org.apache.xbean" name="xbean-spring" rev="3.6" /> <dependency org="org.apache.geronimo.specs" name="geronimo-j2ee-management_1.0_spec" rev="1.0.1" /> </provider> </jmsProviders> </dependencies>
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <dependencies> <springJms> <dependency org="org.springframework" name="spring-beans" rev="${spring.version}" /> <dependency org="org.springframework" name="spring-jms" rev="${spring.version}" /> <dependency org="javax.jms" name="jms" rev="1.1" /> </springJms> <jmsProviders> <provider id="ACTIVEMQ_IN_MEMORY"> - <dependency org="org.apache.activemq" name="apache-activemq" rev="5.3.0" /> ? ------- ^ + <dependency org="org.apache.activemq" name="activemq-core" rev="5.3.1" /> ? +++++ ^ <dependency org="org.apache.xbean" name="xbean-spring" rev="3.6" /> - <dependency org="org.apache.geronimo.specs" name="cgeronimo-j2ee-management_1.0_spec" rev="1.0.1" /> ? - + <dependency org="org.apache.geronimo.specs" name="geronimo-j2ee-management_1.0_spec" rev="1.0.1" /> </provider> </jmsProviders> </dependencies>
4
0.266667
2
2
bb4c1375082d68a78e194d3d1d3399eadc0d1b12
dlstats/errors.py
dlstats/errors.py
class DlstatsException(Exception): def __init__(self, *args, **kwargs): self.provider_name = kwargs.pop("provider_name", None) self.dataset_code = kwargs.pop("dataset_code", None) super().__init__(*args, **kwargs) class RejectFrequency(DlstatsException): def __init__(self, *args, **kwargs): self.frequency = kwargs.pop("frequency", None) super().__init__(*args, **kwargs) class RejectEmptySeries(DlstatsException): pass class RejectUpdatedDataset(DlstatsException): """Reject if dataset is updated """ class RejectUpdatedSeries(DlstatsException): """Reject if series is updated """ def __init__(self, *args, **kwargs): self.key = kwargs.pop("key", None) super().__init__(*args, **kwargs) class MaxErrors(DlstatsException): pass
class DlstatsException(Exception): def __init__(self, *args, **kwargs): self.provider_name = kwargs.pop("provider_name", None) self.dataset_code = kwargs.pop("dataset_code", None) self.comments = kwargs.pop("comments", None) super().__init__(*args, **kwargs) class RejectFrequency(DlstatsException): def __init__(self, *args, **kwargs): self.frequency = kwargs.pop("frequency", None) super().__init__(*args, **kwargs) class InterruptProcessSeriesData(DlstatsException): pass class RejectEmptySeries(DlstatsException): pass class RejectUpdatedDataset(DlstatsException): """Reject if dataset is updated """ class RejectUpdatedSeries(DlstatsException): """Reject if series is updated """ def __init__(self, *args, **kwargs): self.key = kwargs.pop("key", None) super().__init__(*args, **kwargs) class MaxErrors(DlstatsException): pass
Add exception for interrupt data process
Add exception for interrupt data process
Python
agpl-3.0
Widukind/dlstats,Widukind/dlstats
python
## Code Before: class DlstatsException(Exception): def __init__(self, *args, **kwargs): self.provider_name = kwargs.pop("provider_name", None) self.dataset_code = kwargs.pop("dataset_code", None) super().__init__(*args, **kwargs) class RejectFrequency(DlstatsException): def __init__(self, *args, **kwargs): self.frequency = kwargs.pop("frequency", None) super().__init__(*args, **kwargs) class RejectEmptySeries(DlstatsException): pass class RejectUpdatedDataset(DlstatsException): """Reject if dataset is updated """ class RejectUpdatedSeries(DlstatsException): """Reject if series is updated """ def __init__(self, *args, **kwargs): self.key = kwargs.pop("key", None) super().__init__(*args, **kwargs) class MaxErrors(DlstatsException): pass ## Instruction: Add exception for interrupt data process ## Code After: class DlstatsException(Exception): def __init__(self, *args, **kwargs): self.provider_name = kwargs.pop("provider_name", None) self.dataset_code = kwargs.pop("dataset_code", None) self.comments = kwargs.pop("comments", None) super().__init__(*args, **kwargs) class RejectFrequency(DlstatsException): def __init__(self, *args, **kwargs): self.frequency = kwargs.pop("frequency", None) super().__init__(*args, **kwargs) class InterruptProcessSeriesData(DlstatsException): pass class RejectEmptySeries(DlstatsException): pass class RejectUpdatedDataset(DlstatsException): """Reject if dataset is updated """ class RejectUpdatedSeries(DlstatsException): """Reject if series is updated """ def __init__(self, *args, **kwargs): self.key = kwargs.pop("key", None) super().__init__(*args, **kwargs) class MaxErrors(DlstatsException): pass
class DlstatsException(Exception): def __init__(self, *args, **kwargs): self.provider_name = kwargs.pop("provider_name", None) self.dataset_code = kwargs.pop("dataset_code", None) + self.comments = kwargs.pop("comments", None) super().__init__(*args, **kwargs) class RejectFrequency(DlstatsException): def __init__(self, *args, **kwargs): self.frequency = kwargs.pop("frequency", None) super().__init__(*args, **kwargs) - + + class InterruptProcessSeriesData(DlstatsException): + pass + class RejectEmptySeries(DlstatsException): pass class RejectUpdatedDataset(DlstatsException): """Reject if dataset is updated """ - + class RejectUpdatedSeries(DlstatsException): """Reject if series is updated """ def __init__(self, *args, **kwargs): self.key = kwargs.pop("key", None) super().__init__(*args, **kwargs) class MaxErrors(DlstatsException): pass
8
0.258065
6
2
2d379a3bd04d2b687c719cb9ccca5f289b434d00
plenum/server/i3pc_watchers.py
plenum/server/i3pc_watchers.py
from typing import Callable, Iterable from plenum.server.quorums import Quorums class NetworkI3PCWatcher: def __init__(self, cb: Callable): self.nodes = set() self.connected = set() self.callback = cb self.quorums = Quorums(0) def connect(self, name: str): self.connected.add(name) def disconnect(self, name: str): had_consensus = self._has_consensus() self.connected.discard(name) if had_consensus and not self._has_consensus(): self.callback() def set_nodes(self, nodes: Iterable[str]): self.nodes = set(nodes) self.quorums = Quorums(len(self.nodes)) def _has_consensus(self): return self.quorums.weak.is_reached(len(self.connected))
from typing import Callable, Iterable from plenum.server.quorums import Quorums class NetworkI3PCWatcher: def __init__(self, cb: Callable): self._nodes = set() self.connected = set() self.callback = cb self.quorums = Quorums(0) def connect(self, name: str): self.connected.add(name) def disconnect(self, name: str): had_consensus = self._has_consensus() self.connected.discard(name) if had_consensus and not self._has_consensus(): self.callback() @property def nodes(self): return self._nodes def set_nodes(self, nodes: Iterable[str]): self._nodes = set(nodes) self.quorums = Quorums(len(self._nodes)) def _has_consensus(self): return self.quorums.weak.is_reached(len(self.connected))
Make interface of NetworkI3PCWatcher more clear
INDY-1199: Make interface of NetworkI3PCWatcher more clear Signed-off-by: Sergey Khoroshavin <b770466c7a06c5fe47531d5f0e31684f1131354d@dsr-corporation.com>
Python
apache-2.0
evernym/plenum,evernym/zeno
python
## Code Before: from typing import Callable, Iterable from plenum.server.quorums import Quorums class NetworkI3PCWatcher: def __init__(self, cb: Callable): self.nodes = set() self.connected = set() self.callback = cb self.quorums = Quorums(0) def connect(self, name: str): self.connected.add(name) def disconnect(self, name: str): had_consensus = self._has_consensus() self.connected.discard(name) if had_consensus and not self._has_consensus(): self.callback() def set_nodes(self, nodes: Iterable[str]): self.nodes = set(nodes) self.quorums = Quorums(len(self.nodes)) def _has_consensus(self): return self.quorums.weak.is_reached(len(self.connected)) ## Instruction: INDY-1199: Make interface of NetworkI3PCWatcher more clear Signed-off-by: Sergey Khoroshavin <b770466c7a06c5fe47531d5f0e31684f1131354d@dsr-corporation.com> ## Code After: from typing import Callable, Iterable from plenum.server.quorums import Quorums class NetworkI3PCWatcher: def __init__(self, cb: Callable): self._nodes = set() self.connected = set() self.callback = cb self.quorums = Quorums(0) def connect(self, name: str): self.connected.add(name) def disconnect(self, name: str): had_consensus = self._has_consensus() self.connected.discard(name) if had_consensus and not self._has_consensus(): self.callback() @property def nodes(self): return self._nodes def set_nodes(self, nodes: Iterable[str]): self._nodes = set(nodes) self.quorums = Quorums(len(self._nodes)) def _has_consensus(self): return self.quorums.weak.is_reached(len(self.connected))
from typing import Callable, Iterable from plenum.server.quorums import Quorums class NetworkI3PCWatcher: def __init__(self, cb: Callable): - self.nodes = set() + self._nodes = set() ? + self.connected = set() self.callback = cb self.quorums = Quorums(0) def connect(self, name: str): self.connected.add(name) def disconnect(self, name: str): had_consensus = self._has_consensus() self.connected.discard(name) if had_consensus and not self._has_consensus(): self.callback() + @property + def nodes(self): + return self._nodes + def set_nodes(self, nodes: Iterable[str]): - self.nodes = set(nodes) + self._nodes = set(nodes) ? + - self.quorums = Quorums(len(self.nodes)) + self.quorums = Quorums(len(self._nodes)) ? + def _has_consensus(self): return self.quorums.weak.is_reached(len(self.connected))
10
0.384615
7
3
9ca1ed6fdfafb3ab55d2c1b489e300f83ab1f8df
Agiil.Web/Content/Scss/StandardPage.scss
Agiil.Web/Content/Scss/StandardPage.scss
@import '_Reset'; @import '_AppWideVariables'; @import '_ContentStyles'; @import '_Forms'; @import '_PageHeader'; body { font-family: $proportional-font-stack; margin: 1em; } .ticket_detail { .description_content, .comment_content { font-family: $monospace-font-stack; white-space: pre-line; } } table.ticket_list { border: 1px solid $subtle-keyline-color; border-collapse: collapse; td, th { padding: 0.2em 0.4em; border-bottom: 1px solid $faint-keyline-color; } tr:last-child td, th { border-color: $subtle-keyline-color; } th { font-weight: bold; } }
@import '_Reset'; @import '_AppWideVariables'; @import '_ContentStyles'; @import '_Forms'; @import '_PageHeader'; body { font-family: $proportional-font-stack; margin: 1em; } .ticket_detail { .description_content, .comment_content { font-family: $monospace-font-stack; white-space: pre-line; } } .sprint_detail { .description_content { font-family: $monospace-font-stack; white-space: pre-line; } } table.ticket_list { border: 1px solid $subtle-keyline-color; border-collapse: collapse; td, th { padding: 0.2em 0.4em; border-bottom: 1px solid $faint-keyline-color; } tr:last-child td, th { border-color: $subtle-keyline-color; } th { font-weight: bold; } }
Add styling for sprint detail
Add styling for sprint detail
SCSS
mit
csf-dev/agiil,csf-dev/agiil,csf-dev/agiil,csf-dev/agiil
scss
## Code Before: @import '_Reset'; @import '_AppWideVariables'; @import '_ContentStyles'; @import '_Forms'; @import '_PageHeader'; body { font-family: $proportional-font-stack; margin: 1em; } .ticket_detail { .description_content, .comment_content { font-family: $monospace-font-stack; white-space: pre-line; } } table.ticket_list { border: 1px solid $subtle-keyline-color; border-collapse: collapse; td, th { padding: 0.2em 0.4em; border-bottom: 1px solid $faint-keyline-color; } tr:last-child td, th { border-color: $subtle-keyline-color; } th { font-weight: bold; } } ## Instruction: Add styling for sprint detail ## Code After: @import '_Reset'; @import '_AppWideVariables'; @import '_ContentStyles'; @import '_Forms'; @import '_PageHeader'; body { font-family: $proportional-font-stack; margin: 1em; } .ticket_detail { .description_content, .comment_content { font-family: $monospace-font-stack; white-space: pre-line; } } .sprint_detail { .description_content { font-family: $monospace-font-stack; white-space: pre-line; } } table.ticket_list { border: 1px solid $subtle-keyline-color; border-collapse: collapse; td, th { padding: 0.2em 0.4em; border-bottom: 1px solid $faint-keyline-color; } tr:last-child td, th { border-color: $subtle-keyline-color; } th { font-weight: bold; } }
@import '_Reset'; @import '_AppWideVariables'; @import '_ContentStyles'; @import '_Forms'; @import '_PageHeader'; body { font-family: $proportional-font-stack; margin: 1em; } .ticket_detail { .description_content, .comment_content { + font-family: $monospace-font-stack; + white-space: pre-line; + } + } + .sprint_detail { + .description_content { font-family: $monospace-font-stack; white-space: pre-line; } } table.ticket_list { border: 1px solid $subtle-keyline-color; border-collapse: collapse; td, th { padding: 0.2em 0.4em; border-bottom: 1px solid $faint-keyline-color; } tr:last-child td, th { border-color: $subtle-keyline-color; } th { font-weight: bold; } }
6
0.1875
6
0
5f4889dfa722a58ec22ea827e6150bc32141f304
README.md
README.md
Zeegaree ======== Stopwatch, Timer and Time Management ## Where does it work? Zeegaree was developed to work with desktop version of Ubuntu Unity in mind but it also should work on other Linux distros. ## Dependencies **Zeegaree needs few packages in order to work properly.** These are: - libqt4-sql-sqlite - python-pyside - gir1.2-unity - gir1.2-notify - maybe something more, let me know ## How to run it? 1. Download [zip with all the files](https://github.com/mivoligo/Zeegaree/archive/master.zip) 2. Unpack it somewhere 3. From your terminal run: `python path-to-zeegaree.py`
Zeegaree ======== Stopwatch, Timer and Time Management ## Where does it work? Zeegaree was developed to work with desktop version of Ubuntu Unity in mind but it also should work on other Linux distros. ## Dependencies **Zeegaree needs few packages in order to work properly.** These are: - libqt4-sql-sqlite - python-pyside - gir1.2-unity - gir1.2-notify - python-dbus - maybe something more, let me know ## How to run it? 1. Download [zip with all the files](https://github.com/mivoligo/Zeegaree/archive/master.zip) 2. Unpack it somewhere 3. From your terminal run: `python path-to-zeegaree.py`
Add info about "python-dbus" to dependencies
Add info about "python-dbus" to dependencies @teobaluta noticed that "python-dbus" is needed on Ubuntu 16.04 ( https://github.com/mivoligo/Zeegaree/issues/8 )
Markdown
apache-2.0
mivoligo/Zeegaree,mivoligo/Zeegaree
markdown
## Code Before: Zeegaree ======== Stopwatch, Timer and Time Management ## Where does it work? Zeegaree was developed to work with desktop version of Ubuntu Unity in mind but it also should work on other Linux distros. ## Dependencies **Zeegaree needs few packages in order to work properly.** These are: - libqt4-sql-sqlite - python-pyside - gir1.2-unity - gir1.2-notify - maybe something more, let me know ## How to run it? 1. Download [zip with all the files](https://github.com/mivoligo/Zeegaree/archive/master.zip) 2. Unpack it somewhere 3. From your terminal run: `python path-to-zeegaree.py` ## Instruction: Add info about "python-dbus" to dependencies @teobaluta noticed that "python-dbus" is needed on Ubuntu 16.04 ( https://github.com/mivoligo/Zeegaree/issues/8 ) ## Code After: Zeegaree ======== Stopwatch, Timer and Time Management ## Where does it work? Zeegaree was developed to work with desktop version of Ubuntu Unity in mind but it also should work on other Linux distros. ## Dependencies **Zeegaree needs few packages in order to work properly.** These are: - libqt4-sql-sqlite - python-pyside - gir1.2-unity - gir1.2-notify - python-dbus - maybe something more, let me know ## How to run it? 1. Download [zip with all the files](https://github.com/mivoligo/Zeegaree/archive/master.zip) 2. Unpack it somewhere 3. From your terminal run: `python path-to-zeegaree.py`
Zeegaree ======== Stopwatch, Timer and Time Management ## Where does it work? Zeegaree was developed to work with desktop version of Ubuntu Unity in mind but it also should work on other Linux distros. ## Dependencies **Zeegaree needs few packages in order to work properly.** These are: - libqt4-sql-sqlite - python-pyside - gir1.2-unity - gir1.2-notify + - python-dbus - maybe something more, let me know ## How to run it? 1. Download [zip with all the files](https://github.com/mivoligo/Zeegaree/archive/master.zip) 2. Unpack it somewhere 3. From your terminal run: `python path-to-zeegaree.py`
1
0.047619
1
0
38cd099e1f561b181f0f9d68c244b1483e2d6856
src/main/java/seedu/address/logic/Logic.java
src/main/java/seedu/address/logic/Logic.java
package seedu.address.logic; import javafx.collections.ObservableList; import seedu.address.logic.commands.CommandResult; import seedu.address.logic.commands.exceptions.CommandException; import seedu.address.model.task.ReadOnlyTask; /** * API of the Logic component */ public interface Logic { /** * Executes the command and returns the result. * @param commandText The command as entered by the user. * @return the result of the command execution. * @throws CommandException If an error occurs during command execution. */ CommandResult execute(String commandText) throws CommandException; /** Returns the filtered list of tasks */ ObservableList<ReadOnlyTask> getFilteredTaskList(); }
package seedu.address.logic; import javafx.collections.ObservableList; import seedu.address.logic.commands.CommandResult; import seedu.address.logic.commands.exceptions.CommandException; import seedu.address.model.task.ReadOnlyTask; /** * API of the Logic component */ public interface Logic { /** * Executes the command and returns the result. * @param commandText The command as entered by the user. * @return the result of the command execution. * @throws CommandException If an error occurs during command execution. */ CommandResult execute(String commandText) throws CommandException; /** Returns the filtered list of tasks */ ObservableList<ReadOnlyTask> getFilteredTaskList(); /** Returns the filtered list of incomplete tasks */ ObservableList<ReadOnlyTask> getFilteredIncompleteTaskList(); }
Add methods to get incomplete task only
Add methods to get incomplete task only
Java
mit
CS2103JAN2017-T16-B2/main,CS2103JAN2017-T16-B2/main
java
## Code Before: package seedu.address.logic; import javafx.collections.ObservableList; import seedu.address.logic.commands.CommandResult; import seedu.address.logic.commands.exceptions.CommandException; import seedu.address.model.task.ReadOnlyTask; /** * API of the Logic component */ public interface Logic { /** * Executes the command and returns the result. * @param commandText The command as entered by the user. * @return the result of the command execution. * @throws CommandException If an error occurs during command execution. */ CommandResult execute(String commandText) throws CommandException; /** Returns the filtered list of tasks */ ObservableList<ReadOnlyTask> getFilteredTaskList(); } ## Instruction: Add methods to get incomplete task only ## Code After: package seedu.address.logic; import javafx.collections.ObservableList; import seedu.address.logic.commands.CommandResult; import seedu.address.logic.commands.exceptions.CommandException; import seedu.address.model.task.ReadOnlyTask; /** * API of the Logic component */ public interface Logic { /** * Executes the command and returns the result. * @param commandText The command as entered by the user. * @return the result of the command execution. * @throws CommandException If an error occurs during command execution. */ CommandResult execute(String commandText) throws CommandException; /** Returns the filtered list of tasks */ ObservableList<ReadOnlyTask> getFilteredTaskList(); /** Returns the filtered list of incomplete tasks */ ObservableList<ReadOnlyTask> getFilteredIncompleteTaskList(); }
package seedu.address.logic; import javafx.collections.ObservableList; import seedu.address.logic.commands.CommandResult; import seedu.address.logic.commands.exceptions.CommandException; import seedu.address.model.task.ReadOnlyTask; /** * API of the Logic component */ public interface Logic { /** * Executes the command and returns the result. * @param commandText The command as entered by the user. * @return the result of the command execution. * @throws CommandException If an error occurs during command execution. */ CommandResult execute(String commandText) throws CommandException; /** Returns the filtered list of tasks */ ObservableList<ReadOnlyTask> getFilteredTaskList(); + /** Returns the filtered list of incomplete tasks */ + ObservableList<ReadOnlyTask> getFilteredIncompleteTaskList(); }
2
0.086957
2
0
52ddfe4eec4820da162b34e63dd0649c35afac55
sbt-plugin-test/build.sbt
sbt-plugin-test/build.sbt
name := "Scala.js SBT test" version := scalaJSVersion val baseSettings = scalaJSSettings ++ Seq( version := scalaJSVersion, scalaVersion := "2.11.2", libraryDependencies += "org.scala-lang.modules.scalajs" %% "scalajs-jasmine-test-framework" % scalaJSVersion % "test" ) lazy val root = project.in(file(".")).aggregate(noDOM, withDOM) lazy val noDOM = project.settings(baseSettings: _*).settings( name := "Scala.js SBT test w/o DOM" ) lazy val withDOM = project.settings(baseSettings: _*).settings( ScalaJSKeys.requiresDOM := true, ScalaJSKeys.jsDependencies += "org.webjars" % "jquery" % "1.10.2" / "jquery.js" )
import ScalaJSKeys._ import scala.scalajs.sbtplugin.RuntimeDOM name := "Scala.js sbt test" version := scalaJSVersion val baseSettings = scalaJSSettings ++ Seq( version := scalaJSVersion, scalaVersion := "2.11.2", libraryDependencies += "org.scala-lang.modules.scalajs" %% "scalajs-jasmine-test-framework" % scalaJSVersion % "test" ) lazy val root = project.in(file(".")).aggregate(noDOM, withDOM) lazy val noDOM = project.settings(baseSettings: _*).settings( name := "Scala.js sbt test w/o DOM" ) lazy val withDOM = project.settings(baseSettings: _*).settings( name := "Scala.js sbt test w/ DOM", jsDependencies ++= Seq( RuntimeDOM, "org.webjars" % "jquery" % "1.10.2" / "jquery.js" ) )
Clean up standalone sbt test project
Clean up standalone sbt test project
Scala
apache-2.0
nicolasstucki/scala-js,gzm0/scala-js,yawnt/scala-js,ummels/scala-js,ummels/scala-js,japgolly/scala-js,lrytz/scala-js,matthughes/scala-js,japgolly/scala-js,mdedetrich/scala-js,matthughes/scala-js,yawnt/scala-js,CapeSepias/scala-js,spaced/scala-js,colinrgodsey/scala-js,sjrd/scala-js,renyaoxiang/scala-js,doron123/scala-js,doron123/scala-js,CapeSepias/scala-js,colinrgodsey/scala-js,xuwei-k/scala-js,sjrd/scala-js,colinrgodsey/scala-js,andreaTP/scala-js,scala-js/scala-js,SebsLittleHelpers/scala-js,jmnarloch/scala-js,CapeSepias/scala-js,mdedetrich/scala-js,ummels/scala-js,SebsLittleHelpers/scala-js,sjrd/scala-js,andreaTP/scala-js,scala-js/scala-js,jmnarloch/scala-js,gzm0/scala-js,japgolly/scala-js,scala-js/scala-js,andreaTP/scala-js,jasonchaffee/scala-js,jasonchaffee/scala-js,spaced/scala-js,nicolasstucki/scala-js,renyaoxiang/scala-js,yawnt/scala-js,lrytz/scala-js,Vp3n/scala-js,renyaoxiang/scala-js,spaced/scala-js,xuwei-k/scala-js,Vp3n/scala-js,jasonchaffee/scala-js,mdedetrich/scala-js,Vp3n/scala-js,matthughes/scala-js,doron123/scala-js,jmnarloch/scala-js,xuwei-k/scala-js
scala
## Code Before: name := "Scala.js SBT test" version := scalaJSVersion val baseSettings = scalaJSSettings ++ Seq( version := scalaJSVersion, scalaVersion := "2.11.2", libraryDependencies += "org.scala-lang.modules.scalajs" %% "scalajs-jasmine-test-framework" % scalaJSVersion % "test" ) lazy val root = project.in(file(".")).aggregate(noDOM, withDOM) lazy val noDOM = project.settings(baseSettings: _*).settings( name := "Scala.js SBT test w/o DOM" ) lazy val withDOM = project.settings(baseSettings: _*).settings( ScalaJSKeys.requiresDOM := true, ScalaJSKeys.jsDependencies += "org.webjars" % "jquery" % "1.10.2" / "jquery.js" ) ## Instruction: Clean up standalone sbt test project ## Code After: import ScalaJSKeys._ import scala.scalajs.sbtplugin.RuntimeDOM name := "Scala.js sbt test" version := scalaJSVersion val baseSettings = scalaJSSettings ++ Seq( version := scalaJSVersion, scalaVersion := "2.11.2", libraryDependencies += "org.scala-lang.modules.scalajs" %% "scalajs-jasmine-test-framework" % scalaJSVersion % "test" ) lazy val root = project.in(file(".")).aggregate(noDOM, withDOM) lazy val noDOM = project.settings(baseSettings: _*).settings( name := "Scala.js sbt test w/o DOM" ) lazy val withDOM = project.settings(baseSettings: _*).settings( name := "Scala.js sbt test w/ DOM", jsDependencies ++= Seq( RuntimeDOM, "org.webjars" % "jquery" % "1.10.2" / "jquery.js" ) )
+ import ScalaJSKeys._ + + import scala.scalajs.sbtplugin.RuntimeDOM + - name := "Scala.js SBT test" ? ^^^ + name := "Scala.js sbt test" ? ^^^ version := scalaJSVersion val baseSettings = scalaJSSettings ++ Seq( version := scalaJSVersion, scalaVersion := "2.11.2", libraryDependencies += "org.scala-lang.modules.scalajs" %% "scalajs-jasmine-test-framework" % scalaJSVersion % "test" ) lazy val root = project.in(file(".")).aggregate(noDOM, withDOM) lazy val noDOM = project.settings(baseSettings: _*).settings( - name := "Scala.js SBT test w/o DOM" ? ^^^ + name := "Scala.js sbt test w/o DOM" ? ^^^ ) lazy val withDOM = project.settings(baseSettings: _*).settings( - ScalaJSKeys.requiresDOM := true, - ScalaJSKeys.jsDependencies += + name := "Scala.js sbt test w/ DOM", + jsDependencies ++= Seq( + RuntimeDOM, - "org.webjars" % "jquery" % "1.10.2" / "jquery.js" + "org.webjars" % "jquery" % "1.10.2" / "jquery.js" ? ++ + ) )
16
0.727273
11
5
78d2aa483909fefee3e67379046a6c40005d8d8e
README.md
README.md
``` _ ∧ ∧___ /(*゚ー゚) /\ Nyanko is a Rails extension framework, /| ̄ ∪∪  ̄|\/ which is deeply inspired from Chanko | |/ and has same API and clean implementation as Chanko.  ̄ ̄ ̄ ̄ ̄ https://github.com/cookpad/chanko ``` ## Requirements * Ruby >= 1.8.7 * Rails >= 3.0.10 ## Install ``` $ gem install nyanko ``` ## Usage ### Gemfile ```ruby # Gemfile gem "nyanko" ``` ### Invoke ```ruby class EntriesController < ApplicationController unit_action :entry_deletion, :destroy def index invoke(:entry_deletion, :index) do @entries = Entry.all end end end ``` ### Unit ```ruby # app/units/entry_deletion/entry_deletion.rb module EntryDeletion include Nyanko::Unit active_if { Rails.env.development? } scope(:view) do function(:delete_link) do render "/delete_link", :entry => entry if entry.persisted? end end scope(:controller) do function(:destroy) do entry = Entry.find(params[:id]) entry.unit.soft_delete redirect_to entries_path end function(:index) do @entries = Entry.unit.active end end models do expand(:Entry) do scope :active, lambda { where(:deleted_at => nil) } def soft_delete update_attributes(:deleted_at => Time.now) end end end helpers do def link_to_deletion(entry) link_to "Delete", entry, :method => :delete end end end ``` ``` -# app/units/entry_deletion/views/_delete_link.html.slim = unit.link_to_deletion(entry) ``` ## Example App There is an example rails application for Nyanko in spec/dummy directory. ``` $ git clone git@github.com:r7kamura/nyanko.git $ cd nyanko/spec/dummy $ rails s ``` ## Todo * Test macros * Generator * Documentation * Backward compatibility
Nyanko was merged into [chanko](https://github.com/cookpad/chanko) as Chanko 2.0.0. ``` _ ∧ ∧___ /(*゚ー゚) /\ Nyanko is a Rails extension framework, /| ̄ ∪∪  ̄|\/ which is deeply inspired from Chanko | |/ and has same API and clean implementation as Chanko.  ̄ ̄ ̄ ̄ ̄ https://github.com/cookpad/chanko ```
Use Chanko 2.0.0 from now on
Use Chanko 2.0.0 from now on
Markdown
mit
r7kamura/nyanko,r7kamura/nyanko
markdown
## Code Before: ``` _ ∧ ∧___ /(*゚ー゚) /\ Nyanko is a Rails extension framework, /| ̄ ∪∪  ̄|\/ which is deeply inspired from Chanko | |/ and has same API and clean implementation as Chanko.  ̄ ̄ ̄ ̄ ̄ https://github.com/cookpad/chanko ``` ## Requirements * Ruby >= 1.8.7 * Rails >= 3.0.10 ## Install ``` $ gem install nyanko ``` ## Usage ### Gemfile ```ruby # Gemfile gem "nyanko" ``` ### Invoke ```ruby class EntriesController < ApplicationController unit_action :entry_deletion, :destroy def index invoke(:entry_deletion, :index) do @entries = Entry.all end end end ``` ### Unit ```ruby # app/units/entry_deletion/entry_deletion.rb module EntryDeletion include Nyanko::Unit active_if { Rails.env.development? } scope(:view) do function(:delete_link) do render "/delete_link", :entry => entry if entry.persisted? end end scope(:controller) do function(:destroy) do entry = Entry.find(params[:id]) entry.unit.soft_delete redirect_to entries_path end function(:index) do @entries = Entry.unit.active end end models do expand(:Entry) do scope :active, lambda { where(:deleted_at => nil) } def soft_delete update_attributes(:deleted_at => Time.now) end end end helpers do def link_to_deletion(entry) link_to "Delete", entry, :method => :delete end end end ``` ``` -# app/units/entry_deletion/views/_delete_link.html.slim = unit.link_to_deletion(entry) ``` ## Example App There is an example rails application for Nyanko in spec/dummy directory. ``` $ git clone git@github.com:r7kamura/nyanko.git $ cd nyanko/spec/dummy $ rails s ``` ## Todo * Test macros * Generator * Documentation * Backward compatibility ## Instruction: Use Chanko 2.0.0 from now on ## Code After: Nyanko was merged into [chanko](https://github.com/cookpad/chanko) as Chanko 2.0.0. ``` _ ∧ ∧___ /(*゚ー゚) /\ Nyanko is a Rails extension framework, /| ̄ ∪∪  ̄|\/ which is deeply inspired from Chanko | |/ and has same API and clean implementation as Chanko.  ̄ ̄ ̄ ̄ ̄ https://github.com/cookpad/chanko ```
+ Nyanko was merged into [chanko](https://github.com/cookpad/chanko) as Chanko 2.0.0. + ``` _ ∧ ∧___ /(*゚ー゚) /\ Nyanko is a Rails extension framework, /| ̄ ∪∪  ̄|\/ which is deeply inspired from Chanko | |/ and has same API and clean implementation as Chanko.  ̄ ̄ ̄ ̄ ̄ https://github.com/cookpad/chanko ``` - - - ## Requirements - * Ruby >= 1.8.7 - * Rails >= 3.0.10 - - - ## Install - ``` - $ gem install nyanko - ``` - - - ## Usage - - ### Gemfile - ```ruby - # Gemfile - gem "nyanko" - ``` - - ### Invoke - ```ruby - class EntriesController < ApplicationController - unit_action :entry_deletion, :destroy - - def index - invoke(:entry_deletion, :index) do - @entries = Entry.all - end - end - end - ``` - - ### Unit - ```ruby - # app/units/entry_deletion/entry_deletion.rb - module EntryDeletion - include Nyanko::Unit - - active_if { Rails.env.development? } - - scope(:view) do - function(:delete_link) do - render "/delete_link", :entry => entry if entry.persisted? - end - end - - scope(:controller) do - function(:destroy) do - entry = Entry.find(params[:id]) - entry.unit.soft_delete - redirect_to entries_path - end - - function(:index) do - @entries = Entry.unit.active - end - end - - models do - expand(:Entry) do - scope :active, lambda { where(:deleted_at => nil) } - - def soft_delete - update_attributes(:deleted_at => Time.now) - end - end - end - - helpers do - def link_to_deletion(entry) - link_to "Delete", entry, :method => :delete - end - end - end - ``` - - ``` - -# app/units/entry_deletion/views/_delete_link.html.slim - = unit.link_to_deletion(entry) - ``` - - - ## Example App - There is an example rails application for Nyanko in spec/dummy directory. - ``` - $ git clone git@github.com:r7kamura/nyanko.git - $ cd nyanko/spec/dummy - $ rails s - ``` - - - ## Todo - * Test macros - * Generator - * Documentation - * Backward compatibility
100
0.952381
2
98
f645482e6d007c1453456a8958ae8c3df6da8e54
circle.yml
circle.yml
test: post: - bundle exec rake spec
test: post: - bundle exec rake spec - bundle exec puppet module build - mkdir dist && cp pkg/*.tar.gz dist/ general: artifacts: - "dist"
Attach generated module tar.gz as a build artifact
Attach generated module tar.gz as a build artifact
YAML
mit
jamesnetherton/puppet-google-chrome
yaml
## Code Before: test: post: - bundle exec rake spec ## Instruction: Attach generated module tar.gz as a build artifact ## Code After: test: post: - bundle exec rake spec - bundle exec puppet module build - mkdir dist && cp pkg/*.tar.gz dist/ general: artifacts: - "dist"
test: post: - bundle exec rake spec + - bundle exec puppet module build + - mkdir dist && cp pkg/*.tar.gz dist/ + + general: + artifacts: + - "dist"
6
2
6
0
0920b4d3988702e09e175fdfc9ac40aee61a90f5
libslax/jsonwriter.h
libslax/jsonwriter.h
/* * $Id$ * * Copyright (c) 2013, Juniper Networks, Inc. * All rights reserved. * This SOFTWARE is licensed under the LICENSE provided in the * ../Copyright file. By downloading, installing, copying, or otherwise * using the SOFTWARE, you agree to be bound by the terms of that * LICENSE. * * jsonwriter.h -- turn json-oriented XML into json text */ int slaxJsonWriteNode (slaxWriterFunc_t func, void *data, xmlNodePtr nodep, unsigned flags); int slaxJsonWriteDoc (slaxWriterFunc_t func, void *data, xmlDocPtr docp, unsigned flags); #define JWF_ROOT (1<<0) /* Root node */ #define JWF_ARRAY (1<<1) /* Inside array */ #define JWF_NODESET (1<<2) /* Top of a nodeset */ #define JWF_PRETTY (1<<3) /* Pretty print (newlines) */ #define JWF_OPTIONAL_QUOTES (1<<4) /* Don't use quotes unless needed */
/* * Copyright (c) 2013, Juniper Networks, Inc. * All rights reserved. * This SOFTWARE is licensed under the LICENSE provided in the * ../Copyright file. By downloading, installing, copying, or otherwise * using the SOFTWARE, you agree to be bound by the terms of that * LICENSE. * * jsonwriter.h -- turn json-oriented XML into json text */ int slaxJsonWriteNode (slaxWriterFunc_t func, void *data, xmlNodePtr nodep, unsigned flags); int slaxJsonWriteDoc (slaxWriterFunc_t func, void *data, xmlDocPtr docp, unsigned flags); #define JWF_ROOT (1<<0) /* Root node */ #define JWF_ARRAY (1<<1) /* Inside array */ #define JWF_NODESET (1<<2) /* Top of a nodeset */ #define JWF_PRETTY (1<<3) /* Pretty print (newlines) */ #define JWF_OPTIONAL_QUOTES (1<<4) /* Don't use quotes unless needed */
Drop $Id$ and update copyright
Drop $Id$ and update copyright
C
bsd-3-clause
Juniper/libslax,Juniper/libslax,Juniper/libslax
c
## Code Before: /* * $Id$ * * Copyright (c) 2013, Juniper Networks, Inc. * All rights reserved. * This SOFTWARE is licensed under the LICENSE provided in the * ../Copyright file. By downloading, installing, copying, or otherwise * using the SOFTWARE, you agree to be bound by the terms of that * LICENSE. * * jsonwriter.h -- turn json-oriented XML into json text */ int slaxJsonWriteNode (slaxWriterFunc_t func, void *data, xmlNodePtr nodep, unsigned flags); int slaxJsonWriteDoc (slaxWriterFunc_t func, void *data, xmlDocPtr docp, unsigned flags); #define JWF_ROOT (1<<0) /* Root node */ #define JWF_ARRAY (1<<1) /* Inside array */ #define JWF_NODESET (1<<2) /* Top of a nodeset */ #define JWF_PRETTY (1<<3) /* Pretty print (newlines) */ #define JWF_OPTIONAL_QUOTES (1<<4) /* Don't use quotes unless needed */ ## Instruction: Drop $Id$ and update copyright ## Code After: /* * Copyright (c) 2013, Juniper Networks, Inc. * All rights reserved. * This SOFTWARE is licensed under the LICENSE provided in the * ../Copyright file. By downloading, installing, copying, or otherwise * using the SOFTWARE, you agree to be bound by the terms of that * LICENSE. * * jsonwriter.h -- turn json-oriented XML into json text */ int slaxJsonWriteNode (slaxWriterFunc_t func, void *data, xmlNodePtr nodep, unsigned flags); int slaxJsonWriteDoc (slaxWriterFunc_t func, void *data, xmlDocPtr docp, unsigned flags); #define JWF_ROOT (1<<0) /* Root node */ #define JWF_ARRAY (1<<1) /* Inside array */ #define JWF_NODESET (1<<2) /* Top of a nodeset */ #define JWF_PRETTY (1<<3) /* Pretty print (newlines) */ #define JWF_OPTIONAL_QUOTES (1<<4) /* Don't use quotes unless needed */
/* - * $Id$ - * * Copyright (c) 2013, Juniper Networks, Inc. * All rights reserved. * This SOFTWARE is licensed under the LICENSE provided in the * ../Copyright file. By downloading, installing, copying, or otherwise * using the SOFTWARE, you agree to be bound by the terms of that * LICENSE. * * jsonwriter.h -- turn json-oriented XML into json text */ int slaxJsonWriteNode (slaxWriterFunc_t func, void *data, xmlNodePtr nodep, unsigned flags); int slaxJsonWriteDoc (slaxWriterFunc_t func, void *data, xmlDocPtr docp, unsigned flags); #define JWF_ROOT (1<<0) /* Root node */ #define JWF_ARRAY (1<<1) /* Inside array */ #define JWF_NODESET (1<<2) /* Top of a nodeset */ #define JWF_PRETTY (1<<3) /* Pretty print (newlines) */ #define JWF_OPTIONAL_QUOTES (1<<4) /* Don't use quotes unless needed */
2
0.074074
0
2
25025b693b4f81a381f8dce62df1dc6a276d2997
app/controllers/index.rb
app/controllers/index.rb
get '/' do erb :index end get '/signout' do session[:current_user] = nil redirect '/' end get "/auth" do redirect client.auth_code.authorize_url(:redirect_uri => 'http://localhost:9393/callback',:scope => 'https://www.googleapis.com/auth/userinfo.email',:access_type => "offline") end get '/callback' do access_token = client.auth_code.get_token(params[:code], :redirect_uri => 'http://localhost:9393/callback') response = access_token.get('https://www.googleapis.com/oauth2/v1/userinfo?alt=json') puts "START" puts '*' * 40 p user_info = JSON.parse(response.body) #=> user_info is {"id"=>"108553686725590595849", "email"=>"nzeplowitz@gmail.com", "verified_email"=>true, "name"=>"Nathan Zeplowitz", "given_name"=>"Nathan", "family_name"=>"Zeplowitz", "link"=>"https://plus.google.com/108553686725590595849", "picture"=>"https://lh6.googleusercontent.com/-ljNCYRCxZ0g/AAAAAAAAAAI/AAAAAAAAAuk/r6hMRgwCzD0/photo.jpg", "gender"=>"male"} redirect "/#{session[:current_user]}" end
get '/' do erb :index end get '/signout' do session[:current_user] = nil redirect '/' end get "/auth" do redirect client.auth_code.authorize_url(:redirect_uri => 'http://localhost:9393/callback',:scope => 'https://www.googleapis.com/auth/userinfo.email',:access_type => "offline") end get '/callback' do access_token = client.auth_code.get_token(params[:code], :redirect_uri => 'http://localhost:9393/callback') response = access_token.get('https://www.googleapis.com/oauth2/v1/userinfo?alt=json') user_info = JSON.parse(response.body) p response.inspect puts access_token.inspect puts user_info @user = User.find_or_create_by(email: user_info["email"], name: user_info["name"], picture: user_info["picture"] ) session[:current_user] = @user.id redirect "/users/#{session[:current_user]}" end
Delete Tests and Fix Up Login Routes
Delete Tests and Fix Up Login Routes
Ruby
mit
n-zeplo/AskDBC,n-zeplo/AskDBC
ruby
## Code Before: get '/' do erb :index end get '/signout' do session[:current_user] = nil redirect '/' end get "/auth" do redirect client.auth_code.authorize_url(:redirect_uri => 'http://localhost:9393/callback',:scope => 'https://www.googleapis.com/auth/userinfo.email',:access_type => "offline") end get '/callback' do access_token = client.auth_code.get_token(params[:code], :redirect_uri => 'http://localhost:9393/callback') response = access_token.get('https://www.googleapis.com/oauth2/v1/userinfo?alt=json') puts "START" puts '*' * 40 p user_info = JSON.parse(response.body) #=> user_info is {"id"=>"108553686725590595849", "email"=>"nzeplowitz@gmail.com", "verified_email"=>true, "name"=>"Nathan Zeplowitz", "given_name"=>"Nathan", "family_name"=>"Zeplowitz", "link"=>"https://plus.google.com/108553686725590595849", "picture"=>"https://lh6.googleusercontent.com/-ljNCYRCxZ0g/AAAAAAAAAAI/AAAAAAAAAuk/r6hMRgwCzD0/photo.jpg", "gender"=>"male"} redirect "/#{session[:current_user]}" end ## Instruction: Delete Tests and Fix Up Login Routes ## Code After: get '/' do erb :index end get '/signout' do session[:current_user] = nil redirect '/' end get "/auth" do redirect client.auth_code.authorize_url(:redirect_uri => 'http://localhost:9393/callback',:scope => 'https://www.googleapis.com/auth/userinfo.email',:access_type => "offline") end get '/callback' do access_token = client.auth_code.get_token(params[:code], :redirect_uri => 'http://localhost:9393/callback') response = access_token.get('https://www.googleapis.com/oauth2/v1/userinfo?alt=json') user_info = JSON.parse(response.body) p response.inspect puts access_token.inspect puts user_info @user = User.find_or_create_by(email: user_info["email"], name: user_info["name"], picture: user_info["picture"] ) session[:current_user] = @user.id redirect "/users/#{session[:current_user]}" end
get '/' do erb :index end get '/signout' do session[:current_user] = nil redirect '/' end get "/auth" do redirect client.auth_code.authorize_url(:redirect_uri => 'http://localhost:9393/callback',:scope => 'https://www.googleapis.com/auth/userinfo.email',:access_type => "offline") end get '/callback' do access_token = client.auth_code.get_token(params[:code], :redirect_uri => 'http://localhost:9393/callback') response = access_token.get('https://www.googleapis.com/oauth2/v1/userinfo?alt=json') + - puts "START" - puts '*' * 40 - p user_info = JSON.parse(response.body) ? -- + user_info = JSON.parse(response.body) - #=> user_info is {"id"=>"108553686725590595849", "email"=>"nzeplowitz@gmail.com", "verified_email"=>true, "name"=>"Nathan Zeplowitz", "given_name"=>"Nathan", "family_name"=>"Zeplowitz", "link"=>"https://plus.google.com/108553686725590595849", "picture"=>"https://lh6.googleusercontent.com/-ljNCYRCxZ0g/AAAAAAAAAAI/AAAAAAAAAuk/r6hMRgwCzD0/photo.jpg", "gender"=>"male"} + p response.inspect + puts access_token.inspect + puts user_info + @user = User.find_or_create_by(email: user_info["email"], name: user_info["name"], picture: user_info["picture"] ) + session[:current_user] = @user.id + - redirect "/#{session[:current_user]}" + redirect "/users/#{session[:current_user]}" ? ++++++ end
14
0.608696
9
5
2a724872cba5c48ddbd336f06460aa2ad851c6d0
Pilot3/P3B5/p3b5.py
Pilot3/P3B5/p3b5.py
import os import candle file_path = os.path.dirname(os.path.realpath(__file__)) lib_path2 = os.path.abspath(os.path.join(file_path, '..', '..', 'common')) sys.path.append(lib_path2) REQUIRED = [ 'learning_rate', 'learning_rate_min', 'momentum', 'weight_decay', 'grad_clip', 'seed', 'unrolled', 'batch_size', 'epochs', ] class BenchmarkP3B5(candle.Benchmark): """ Benchmark for P3B5 """ def set_locals(self): """ Set parameters for the benchmark. Args: required: set of required parameters for the benchmark. """ if REQUIRED is not None: self.required = set(REQUIRED)
import os import sys import candle file_path = os.path.dirname(os.path.realpath(__file__)) lib_path2 = os.path.abspath(os.path.join(file_path, '..', '..', 'common')) sys.path.append(lib_path2) REQUIRED = [ 'learning_rate', 'learning_rate_min', 'momentum', 'weight_decay', 'grad_clip', 'seed', 'unrolled', 'batch_size', 'epochs', ] class BenchmarkP3B5(candle.Benchmark): """ Benchmark for P3B5 """ def set_locals(self): """ Set parameters for the benchmark. Args: required: set of required parameters for the benchmark. """ if REQUIRED is not None: self.required = set(REQUIRED)
Fix missing import for sys
Fix missing import for sys
Python
mit
ECP-CANDLE/Benchmarks,ECP-CANDLE/Benchmarks,ECP-CANDLE/Benchmarks
python
## Code Before: import os import candle file_path = os.path.dirname(os.path.realpath(__file__)) lib_path2 = os.path.abspath(os.path.join(file_path, '..', '..', 'common')) sys.path.append(lib_path2) REQUIRED = [ 'learning_rate', 'learning_rate_min', 'momentum', 'weight_decay', 'grad_clip', 'seed', 'unrolled', 'batch_size', 'epochs', ] class BenchmarkP3B5(candle.Benchmark): """ Benchmark for P3B5 """ def set_locals(self): """ Set parameters for the benchmark. Args: required: set of required parameters for the benchmark. """ if REQUIRED is not None: self.required = set(REQUIRED) ## Instruction: Fix missing import for sys ## Code After: import os import sys import candle file_path = os.path.dirname(os.path.realpath(__file__)) lib_path2 = os.path.abspath(os.path.join(file_path, '..', '..', 'common')) sys.path.append(lib_path2) REQUIRED = [ 'learning_rate', 'learning_rate_min', 'momentum', 'weight_decay', 'grad_clip', 'seed', 'unrolled', 'batch_size', 'epochs', ] class BenchmarkP3B5(candle.Benchmark): """ Benchmark for P3B5 """ def set_locals(self): """ Set parameters for the benchmark. Args: required: set of required parameters for the benchmark. """ if REQUIRED is not None: self.required = set(REQUIRED)
import os + import sys import candle file_path = os.path.dirname(os.path.realpath(__file__)) lib_path2 = os.path.abspath(os.path.join(file_path, '..', '..', 'common')) sys.path.append(lib_path2) REQUIRED = [ 'learning_rate', 'learning_rate_min', 'momentum', 'weight_decay', 'grad_clip', 'seed', 'unrolled', 'batch_size', 'epochs', ] class BenchmarkP3B5(candle.Benchmark): """ Benchmark for P3B5 """ def set_locals(self): """ Set parameters for the benchmark. Args: required: set of required parameters for the benchmark. """ if REQUIRED is not None: self.required = set(REQUIRED)
1
0.030303
1
0
4d7da97f85456ff4b08cfd4a2ac4a12e98902aa0
src/partials/no-services.hbs
src/partials/no-services.hbs
<div class="block__section"> \{{#geoLocationUnavailable}} <p>Unfortunately, we cannot determine your location. Please ensure location is enabled on your device.</p> \{{/geoLocationUnavailable}} \{{^geoLocationUnavailable}} <p>Unfortunately there are no services listed near you yet. Please use the dropdown above to select a supported location.</p> \{{/geoLocationUnavailable}} <p>If you know of organisations near you that should be listed, please encourage them to add their services by <a href="/register">registering here</a>. <p>If you would like to see Street Support in your city, you can request more information by emailing <a href="mailto:partnerships@streetsupport.net">partnerships@streetsupport.net</a>.</p> </div>
<div class="block__section"> \{{#geoLocationUnavailable}} <p>Unfortunately, we cannot determine your location. Please ensure location is enabled on your device.</p> \{{/geoLocationUnavailable}} \{{^geoLocationUnavailable}} <p>Unfortunately there are no services listed near you yet. Please use the dropdown above to select a supported location.</p> \{{/geoLocationUnavailable}} <p>If you know of organisations near you that should be listed, please encourage them to add their services by <a href="/register">registering here</a>. <p>If you would like to see Street Support in your city, you can <a href="/about/new-locations/">find out more about new locations here</a>.</p> </div>
Update copy for new locations.
Update copy for new locations.
Handlebars
mit
StreetSupport/streetsupport-web,StreetSupport/streetsupport-web,StreetSupport/streetsupport-web
handlebars
## Code Before: <div class="block__section"> \{{#geoLocationUnavailable}} <p>Unfortunately, we cannot determine your location. Please ensure location is enabled on your device.</p> \{{/geoLocationUnavailable}} \{{^geoLocationUnavailable}} <p>Unfortunately there are no services listed near you yet. Please use the dropdown above to select a supported location.</p> \{{/geoLocationUnavailable}} <p>If you know of organisations near you that should be listed, please encourage them to add their services by <a href="/register">registering here</a>. <p>If you would like to see Street Support in your city, you can request more information by emailing <a href="mailto:partnerships@streetsupport.net">partnerships@streetsupport.net</a>.</p> </div> ## Instruction: Update copy for new locations. ## Code After: <div class="block__section"> \{{#geoLocationUnavailable}} <p>Unfortunately, we cannot determine your location. Please ensure location is enabled on your device.</p> \{{/geoLocationUnavailable}} \{{^geoLocationUnavailable}} <p>Unfortunately there are no services listed near you yet. Please use the dropdown above to select a supported location.</p> \{{/geoLocationUnavailable}} <p>If you know of organisations near you that should be listed, please encourage them to add their services by <a href="/register">registering here</a>. <p>If you would like to see Street Support in your city, you can <a href="/about/new-locations/">find out more about new locations here</a>.</p> </div>
<div class="block__section"> \{{#geoLocationUnavailable}} <p>Unfortunately, we cannot determine your location. Please ensure location is enabled on your device.</p> \{{/geoLocationUnavailable}} \{{^geoLocationUnavailable}} <p>Unfortunately there are no services listed near you yet. Please use the dropdown above to select a supported location.</p> \{{/geoLocationUnavailable}} <p>If you know of organisations near you that should be listed, please encourage them to add their services by <a href="/register">registering here</a>. - <p>If you would like to see Street Support in your city, you can request more information by emailing <a href="mailto:partnerships@streetsupport.net">partnerships@streetsupport.net</a>.</p> + <p>If you would like to see Street Support in your city, you can <a href="/about/new-locations/">find out more about new locations here</a>.</p> </div>
2
0.2
1
1
4b0563cee0613aadf98a9d67cd21f215b1180332
minitalk.1.md
minitalk.1.md
% MINITALK(1) Minitalk User Manual % Andrew Benson % December 26, 2015 # NAME minitalk - small, simple chat system # SYNOPSIS minitalk FILE [NICK] # DESCRIPTION FILE File to use as "room". Must have read/write permissions. NICK Specify nick to use. Default is current username. # EXAMPLES Join a room controlled via /var/chat/general. $ minitalk /var/chat/general The same, but specifying the username "admin". $ minitalk /var/chat/general admin # AUTHOR Written by Andrew Benson. # COPYRIGHT Copyright © 2015 Andrew Benson. License: MIT
% MINITALK(1) Minitalk User Manual % Andrew Benson % December 26, 2015 # NAME minitalk - small, simple chat system # SYNOPSIS minitalk FILE [NICK] # DESCRIPTION FILE File to use as "room". Must have read/write permissions. NICK Specify nick to use. Default is current username. # EXAMPLES Join a room controlled via /var/chat/general. $ minitalk /var/chat/general The same, but specifying the username "admin". $ minitalk /var/chat/general admin # ISSUES The primary issue is a security concern. Anyone that needs to chat in the "room" has to be able to write the control file. Anyone that needs read from the room needs read access. Anyone that has access to these "control" files can also inject anything they want into the chat. This truly is built on the honor system, and was designed around a single purpose: multi-user chat between trusted users on a single host. Don't expect this to be secure. # AUTHOR Written by Andrew Benson. # COPYRIGHT Copyright © 2016 Andrew Benson. License: MIT
Add security concerns to man page.
Add security concerns to man page.
Markdown
mit
abenson/minitalk
markdown
## Code Before: % MINITALK(1) Minitalk User Manual % Andrew Benson % December 26, 2015 # NAME minitalk - small, simple chat system # SYNOPSIS minitalk FILE [NICK] # DESCRIPTION FILE File to use as "room". Must have read/write permissions. NICK Specify nick to use. Default is current username. # EXAMPLES Join a room controlled via /var/chat/general. $ minitalk /var/chat/general The same, but specifying the username "admin". $ minitalk /var/chat/general admin # AUTHOR Written by Andrew Benson. # COPYRIGHT Copyright © 2015 Andrew Benson. License: MIT ## Instruction: Add security concerns to man page. ## Code After: % MINITALK(1) Minitalk User Manual % Andrew Benson % December 26, 2015 # NAME minitalk - small, simple chat system # SYNOPSIS minitalk FILE [NICK] # DESCRIPTION FILE File to use as "room". Must have read/write permissions. NICK Specify nick to use. Default is current username. # EXAMPLES Join a room controlled via /var/chat/general. $ minitalk /var/chat/general The same, but specifying the username "admin". $ minitalk /var/chat/general admin # ISSUES The primary issue is a security concern. Anyone that needs to chat in the "room" has to be able to write the control file. Anyone that needs read from the room needs read access. Anyone that has access to these "control" files can also inject anything they want into the chat. This truly is built on the honor system, and was designed around a single purpose: multi-user chat between trusted users on a single host. Don't expect this to be secure. # AUTHOR Written by Andrew Benson. # COPYRIGHT Copyright © 2016 Andrew Benson. License: MIT
% MINITALK(1) Minitalk User Manual % Andrew Benson % December 26, 2015 # NAME minitalk - small, simple chat system # SYNOPSIS minitalk FILE [NICK] # DESCRIPTION FILE File to use as "room". Must have read/write permissions. + NICK Specify nick to use. Default is current username. # EXAMPLES Join a room controlled via /var/chat/general. $ minitalk /var/chat/general The same, but specifying the username "admin". $ minitalk /var/chat/general admin + # ISSUES + + The primary issue is a security concern. Anyone that needs to chat in the "room" has to be able to write the control file. Anyone that needs read from the room needs read access. Anyone that has access to these "control" files can also inject anything they want into the chat. This truly is built on the honor system, and was designed around a single purpose: multi-user chat between trusted users on a single host. + + Don't expect this to be secure. + # AUTHOR Written by Andrew Benson. # COPYRIGHT - Copyright © 2015 Andrew Benson. License: MIT ? ^ + Copyright © 2016 Andrew Benson. License: MIT ? ^
9
0.264706
8
1
fc44774f7ce79ea096c1d0b823a0917967cc5c62
.travis.yml
.travis.yml
language: php sudo: false php: - 7.0 - 7.1 - 7.2 - 7.3 - hhvm - nightly matrix: fast_finish: true allow_failures: - php: hhvm - php: nightly install: - travis_retry composer install --no-interaction script: - ./vendor/bin/phpunit --coverage-text - ./vendor/bin/psalm cache: directories: - vendor - $HOME/.cache/composer
language: php sudo: false php: - 7.0 - 7.1 - 7.2 - 7.3 - nightly matrix: fast_finish: true allow_failures: - php: hhvm - php: nightly install: - travis_retry composer install --no-interaction script: - ./vendor/bin/phpunit --coverage-text - ./vendor/bin/psalm cache: directories: - vendor - $HOME/.cache/composer
Remove HHVM from Travis CI since they no longer support PHP
Remove HHVM from Travis CI since they no longer support PHP
YAML
mit
SignpostMarv/easydb,paragonie/easydb
yaml
## Code Before: language: php sudo: false php: - 7.0 - 7.1 - 7.2 - 7.3 - hhvm - nightly matrix: fast_finish: true allow_failures: - php: hhvm - php: nightly install: - travis_retry composer install --no-interaction script: - ./vendor/bin/phpunit --coverage-text - ./vendor/bin/psalm cache: directories: - vendor - $HOME/.cache/composer ## Instruction: Remove HHVM from Travis CI since they no longer support PHP ## Code After: language: php sudo: false php: - 7.0 - 7.1 - 7.2 - 7.3 - nightly matrix: fast_finish: true allow_failures: - php: hhvm - php: nightly install: - travis_retry composer install --no-interaction script: - ./vendor/bin/phpunit --coverage-text - ./vendor/bin/psalm cache: directories: - vendor - $HOME/.cache/composer
language: php sudo: false php: - 7.0 - 7.1 - 7.2 - 7.3 - - hhvm - nightly matrix: fast_finish: true allow_failures: - php: hhvm - php: nightly install: - travis_retry composer install --no-interaction script: - ./vendor/bin/phpunit --coverage-text - ./vendor/bin/psalm cache: directories: - vendor - $HOME/.cache/composer
1
0.034483
0
1
27ff31fa0e2cfedc23d59b82bf84ca306f0153cb
_posts/2014-03-25-nyt.md
_posts/2014-03-25-nyt.md
--- layout: results title: "New York Times staff" html_title: "The 1000 most commonly followed Twitter accounts by the New York Times Staff" date: 2014-03-25 20:00:00 results: nyt total_count_accounts: 677 --- This is a look at what Twitter accounts are most commonly followed by the 677 New York Times staff members listed on the [NYT's ](https://twitter.com/Scobleizer/lists/tech-investors).
--- layout: results title: "New York Times staff" html_title: "The 1000 most commonly followed Twitter accounts by the New York Times Staff" date: 2014-03-25 20:00:00 results: nyt total_count_accounts: 677 --- This is a look at what Twitter accounts are most commonly followed by the 677 New York Times staff members listed on the [NYT's ](https://twitter.com/nytimes/lists/nyt-journalists).
Fix link to NYT Twitter list
Fix link to NYT Twitter list
Markdown
mit
tylerpearson/twitter-most-followed-site,tylerpearson/twitter-most-followed-site,tylerpearson/twitter-most-followed-site,tylerpearson/twitter-most-followed-site
markdown
## Code Before: --- layout: results title: "New York Times staff" html_title: "The 1000 most commonly followed Twitter accounts by the New York Times Staff" date: 2014-03-25 20:00:00 results: nyt total_count_accounts: 677 --- This is a look at what Twitter accounts are most commonly followed by the 677 New York Times staff members listed on the [NYT's ](https://twitter.com/Scobleizer/lists/tech-investors). ## Instruction: Fix link to NYT Twitter list ## Code After: --- layout: results title: "New York Times staff" html_title: "The 1000 most commonly followed Twitter accounts by the New York Times Staff" date: 2014-03-25 20:00:00 results: nyt total_count_accounts: 677 --- This is a look at what Twitter accounts are most commonly followed by the 677 New York Times staff members listed on the [NYT's ](https://twitter.com/nytimes/lists/nyt-journalists).
--- layout: results title: "New York Times staff" html_title: "The 1000 most commonly followed Twitter accounts by the New York Times Staff" date: 2014-03-25 20:00:00 results: nyt total_count_accounts: 677 --- - This is a look at what Twitter accounts are most commonly followed by the 677 New York Times staff members listed on the [NYT's ](https://twitter.com/Scobleizer/lists/tech-investors). ? ^^^^^ ^^^^ --- --- -- + This is a look at what Twitter accounts are most commonly followed by the 677 New York Times staff members listed on the [NYT's ](https://twitter.com/nytimes/lists/nyt-journalists). ? ^^^^^ ^ ++ +++++++
2
0.2
1
1
c0f62eacb8b6cbdcdb4b3b83d72de6b97c265b48
scripts/plugins/jquery.popline.list.js
scripts/plugins/jquery.popline.list.js
/* jquery.popline.list.js 0.1.0-dev Version: 0.1.0-dev Updated: Aug 11th, 2014 (c) 2014 by kenshin54 */ ;(function($) { $.popline.addButton({ orderedList: { iconClass: "fa fa-list-ol", mode: "edit", action: function(event) { document.execCommand("InsertOrderedList"); } }, unOrderedList: { iconClass: "fa fa-list-ul", mode: "edit", action: function(event) { document.execCommand("InsertUnorderedList"); } } }); })(jQuery);
/* jquery.popline.list.js 0.1.0-dev Version: 0.1.0-dev Updated: Aug 11th, 2014 (c) 2014 by kenshin54 */ ;(function($) { var firefoxCleanupCheck = function(tag) { var focusNode = $.popline.utils.selection().focusNode(); var node = $.popline.utils.findNodeWithTags(focusNode, tag); return node ? true : false; } var firefoxCleanup = function(addPTag) { $.popline.current.target.find("br[type=_moz]").parent().remove(); if (addPTag) { document.execCommand("formatblock", false, "P"); var selection = $.popline.utils.selection().obj(); if (selection.anchorNode && (node = selection.anchorNode.parentNode.previousSibling) && node.tagName === "BR") { node.remove(); } if (selection.focusNode && (node = selection.focusNode.parentNode.nextSibling) && node.tagName === "BR") { node.remove(); } addPTag = null; } } $.popline.addButton({ orderedList: { iconClass: "fa fa-list-ol", mode: "edit", action: function(event) { if ($.popline.utils.browser.firefox) { var addPTag = firefoxCleanupCheck('OL'); } document.execCommand("InsertOrderedList"); if ($.popline.utils.browser.firefox) { firefoxCleanup(addPTag); } } }, unOrderedList: { iconClass: "fa fa-list-ul", mode: "edit", action: function(event) { if ($.popline.utils.browser.firefox) { var addPTag = firefoxCleanupCheck('UL'); } document.execCommand("InsertUnorderedList"); if ($.popline.utils.browser.firefox) { firefoxCleanup(addPTag); } } } }); })(jQuery);
Fix ol/ul bug under firefox.
Fix ol/ul bug under firefox.
JavaScript
mit
kenshin54/popline,roryok/popline,ztx1491/popline,ztx1491/popline,kenshin54/popline,roryok/popline
javascript
## Code Before: /* jquery.popline.list.js 0.1.0-dev Version: 0.1.0-dev Updated: Aug 11th, 2014 (c) 2014 by kenshin54 */ ;(function($) { $.popline.addButton({ orderedList: { iconClass: "fa fa-list-ol", mode: "edit", action: function(event) { document.execCommand("InsertOrderedList"); } }, unOrderedList: { iconClass: "fa fa-list-ul", mode: "edit", action: function(event) { document.execCommand("InsertUnorderedList"); } } }); })(jQuery); ## Instruction: Fix ol/ul bug under firefox. ## Code After: /* jquery.popline.list.js 0.1.0-dev Version: 0.1.0-dev Updated: Aug 11th, 2014 (c) 2014 by kenshin54 */ ;(function($) { var firefoxCleanupCheck = function(tag) { var focusNode = $.popline.utils.selection().focusNode(); var node = $.popline.utils.findNodeWithTags(focusNode, tag); return node ? true : false; } var firefoxCleanup = function(addPTag) { $.popline.current.target.find("br[type=_moz]").parent().remove(); if (addPTag) { document.execCommand("formatblock", false, "P"); var selection = $.popline.utils.selection().obj(); if (selection.anchorNode && (node = selection.anchorNode.parentNode.previousSibling) && node.tagName === "BR") { node.remove(); } if (selection.focusNode && (node = selection.focusNode.parentNode.nextSibling) && node.tagName === "BR") { node.remove(); } addPTag = null; } } $.popline.addButton({ orderedList: { iconClass: "fa fa-list-ol", mode: "edit", action: function(event) { if ($.popline.utils.browser.firefox) { var addPTag = firefoxCleanupCheck('OL'); } document.execCommand("InsertOrderedList"); if ($.popline.utils.browser.firefox) { firefoxCleanup(addPTag); } } }, unOrderedList: { iconClass: "fa fa-list-ul", mode: "edit", action: function(event) { if ($.popline.utils.browser.firefox) { var addPTag = firefoxCleanupCheck('UL'); } document.execCommand("InsertUnorderedList"); if ($.popline.utils.browser.firefox) { firefoxCleanup(addPTag); } } } }); })(jQuery);
/* jquery.popline.list.js 0.1.0-dev Version: 0.1.0-dev Updated: Aug 11th, 2014 (c) 2014 by kenshin54 */ ;(function($) { + var firefoxCleanupCheck = function(tag) { + var focusNode = $.popline.utils.selection().focusNode(); + var node = $.popline.utils.findNodeWithTags(focusNode, tag); + return node ? true : false; + } + + var firefoxCleanup = function(addPTag) { + $.popline.current.target.find("br[type=_moz]").parent().remove(); + if (addPTag) { + document.execCommand("formatblock", false, "P"); + var selection = $.popline.utils.selection().obj(); + if (selection.anchorNode && (node = selection.anchorNode.parentNode.previousSibling) && node.tagName === "BR") { + node.remove(); + } + if (selection.focusNode && (node = selection.focusNode.parentNode.nextSibling) && node.tagName === "BR") { + node.remove(); + } + addPTag = null; + } + } + $.popline.addButton({ orderedList: { iconClass: "fa fa-list-ol", mode: "edit", action: function(event) { + if ($.popline.utils.browser.firefox) { + var addPTag = firefoxCleanupCheck('OL'); + } document.execCommand("InsertOrderedList"); + if ($.popline.utils.browser.firefox) { + firefoxCleanup(addPTag); + } } }, unOrderedList: { iconClass: "fa fa-list-ul", mode: "edit", action: function(event) { + if ($.popline.utils.browser.firefox) { + var addPTag = firefoxCleanupCheck('UL'); + } document.execCommand("InsertUnorderedList"); + if ($.popline.utils.browser.firefox) { + firefoxCleanup(addPTag); + } } } }); })(jQuery);
33
1.178571
33
0
660e804c70f5c4c8230d5542b1b7fdc61ac0ea82
tools/llvm-nm/CMakeLists.txt
tools/llvm-nm/CMakeLists.txt
set(LLVM_LINK_COMPONENTS AllTargetsAsmParsers AllTargetsDescs AllTargetsInfos BinaryFormat Core Demangle Object Support ) add_llvm_tool(llvm-nm llvm-nm.cpp DEPENDS intrinsics_gen ) if(LLVM_INSTALL_BINUTILS_SYMLINKS) add_llvm_tool_symlink(nm llvm-nm) endif()
set(LLVM_LINK_COMPONENTS AllTargetsAsmParsers AllTargetsDescs AllTargetsInfos BinaryFormat Core Demangle Object Support TextAPI ) add_llvm_tool(llvm-nm llvm-nm.cpp DEPENDS intrinsics_gen ) if(LLVM_INSTALL_BINUTILS_SYMLINKS) add_llvm_tool_symlink(nm llvm-nm) endif()
Fix -DBUILD_SHARED_LIBS=ON builds after D66160/r371576
[llvm-nm] Fix -DBUILD_SHARED_LIBS=ON builds after D66160/r371576 git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@371585 91177308-0d34-0410-b5e6-96231b3b80d8
Text
apache-2.0
GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm
text
## Code Before: set(LLVM_LINK_COMPONENTS AllTargetsAsmParsers AllTargetsDescs AllTargetsInfos BinaryFormat Core Demangle Object Support ) add_llvm_tool(llvm-nm llvm-nm.cpp DEPENDS intrinsics_gen ) if(LLVM_INSTALL_BINUTILS_SYMLINKS) add_llvm_tool_symlink(nm llvm-nm) endif() ## Instruction: [llvm-nm] Fix -DBUILD_SHARED_LIBS=ON builds after D66160/r371576 git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@371585 91177308-0d34-0410-b5e6-96231b3b80d8 ## Code After: set(LLVM_LINK_COMPONENTS AllTargetsAsmParsers AllTargetsDescs AllTargetsInfos BinaryFormat Core Demangle Object Support TextAPI ) add_llvm_tool(llvm-nm llvm-nm.cpp DEPENDS intrinsics_gen ) if(LLVM_INSTALL_BINUTILS_SYMLINKS) add_llvm_tool_symlink(nm llvm-nm) endif()
set(LLVM_LINK_COMPONENTS AllTargetsAsmParsers AllTargetsDescs AllTargetsInfos BinaryFormat Core Demangle Object Support + TextAPI ) add_llvm_tool(llvm-nm llvm-nm.cpp DEPENDS intrinsics_gen ) if(LLVM_INSTALL_BINUTILS_SYMLINKS) add_llvm_tool_symlink(nm llvm-nm) endif()
1
0.047619
1
0
a2363a170bddea6b846d70dfd43a4553e7e6599f
app/views/front/_user.html.erb
app/views/front/_user.html.erb
<ul> <% if session[:current_user].present? %> <li class="dropdown-item"> <div class="profile-image" style="background-image: url(<%= session[:current_user][:photo] %>);"> <%= session[:current_user][:name][0..1] unless session[:current_user][:photo] || session[:current_user][:name].blank? %> </div> <ul> <li> <a href="#" class="triggerMySubscriptions">My Subscriptions</a> </li> <li> <a href="<%= logout_path %>">Logout</a> </li> </ul> </li> <% else %> <li> <a href=<%= login_path %>>Login</a> </li> <% end %> </ul>
<ul> <% if session[:current_user].present? %> <li class="dropdown-item"> <div class="profile-image" style="background-image: url(<%= session[:current_user][:photo] %>);"> <%= session[:current_user][:email][0..1] unless session[:current_user][:photo] %> </div> <ul> <li> <a href="#" class="triggerMySubscriptions">My Subscriptions</a> </li> <li> <a href="<%= logout_path %>">Logout</a> </li> </ul> </li> <% else %> <li> <a href=<%= login_path %>>Login</a> </li> <% end %> </ul>
Improve the icon of the user profile
Improve the icon of the user profile When the user doesn't have any photo, the two first letters of their email address is displayed. We previously displayed the first letters of their name but it might also be missing.
HTML+ERB
mit
Vizzuality/forest-atlas-landscape-cms,Vizzuality/forest-atlas-landscape-cms,Vizzuality/forest-atlas-landscape-cms,Vizzuality/forest-atlas-landscape-cms
html+erb
## Code Before: <ul> <% if session[:current_user].present? %> <li class="dropdown-item"> <div class="profile-image" style="background-image: url(<%= session[:current_user][:photo] %>);"> <%= session[:current_user][:name][0..1] unless session[:current_user][:photo] || session[:current_user][:name].blank? %> </div> <ul> <li> <a href="#" class="triggerMySubscriptions">My Subscriptions</a> </li> <li> <a href="<%= logout_path %>">Logout</a> </li> </ul> </li> <% else %> <li> <a href=<%= login_path %>>Login</a> </li> <% end %> </ul> ## Instruction: Improve the icon of the user profile When the user doesn't have any photo, the two first letters of their email address is displayed. We previously displayed the first letters of their name but it might also be missing. ## Code After: <ul> <% if session[:current_user].present? %> <li class="dropdown-item"> <div class="profile-image" style="background-image: url(<%= session[:current_user][:photo] %>);"> <%= session[:current_user][:email][0..1] unless session[:current_user][:photo] %> </div> <ul> <li> <a href="#" class="triggerMySubscriptions">My Subscriptions</a> </li> <li> <a href="<%= logout_path %>">Logout</a> </li> </ul> </li> <% else %> <li> <a href=<%= login_path %>>Login</a> </li> <% end %> </ul>
<ul> <% if session[:current_user].present? %> <li class="dropdown-item"> <div class="profile-image" style="background-image: url(<%= session[:current_user][:photo] %>);"> - <%= session[:current_user][:name][0..1] unless session[:current_user][:photo] || session[:current_user][:name].blank? %> ? ^ ^^ ---------------------------------------- + <%= session[:current_user][:email][0..1] unless session[:current_user][:photo] %> ? ^^ ^^ </div> <ul> <li> <a href="#" class="triggerMySubscriptions">My Subscriptions</a> </li> <li> <a href="<%= logout_path %>">Logout</a> </li> </ul> </li> <% else %> <li> <a href=<%= login_path %>>Login</a> </li> <% end %> </ul>
2
0.08
1
1
c9cb55a4a9f3409a3c22edd0d5a8b6bfbdca1208
mopidy_somafm/__init__.py
mopidy_somafm/__init__.py
from __future__ import unicode_literals import os from mopidy import config, exceptions, ext __version__ = '0.3.0' class Extension(ext.Extension): dist_name = 'Mopidy-SomaFM' ext_name = 'somafm' version = __version__ def get_default_config(self): conf_file = os.path.join(os.path.dirname(__file__), 'ext.conf') return config.read(conf_file) def get_config_schema(self): schema = super(Extension, self).get_config_schema() return schema def validate_environment(self): try: import requests except ImportError as e: raise ExtensionError('Library requests not found', e) def get_backend_classes(self): from .actor import SomaFMBackend return [SomaFMBackend]
from __future__ import unicode_literals import os from mopidy import config, ext __version__ = '0.3.0' class Extension(ext.Extension): dist_name = 'Mopidy-SomaFM' ext_name = 'somafm' version = __version__ def get_default_config(self): conf_file = os.path.join(os.path.dirname(__file__), 'ext.conf') return config.read(conf_file) def get_config_schema(self): schema = super(Extension, self).get_config_schema() return schema def get_backend_classes(self): from .actor import SomaFMBackend return [SomaFMBackend]
Remove dependency check done by Mopidy
Remove dependency check done by Mopidy
Python
mit
AlexandrePTJ/mopidy-somafm
python
## Code Before: from __future__ import unicode_literals import os from mopidy import config, exceptions, ext __version__ = '0.3.0' class Extension(ext.Extension): dist_name = 'Mopidy-SomaFM' ext_name = 'somafm' version = __version__ def get_default_config(self): conf_file = os.path.join(os.path.dirname(__file__), 'ext.conf') return config.read(conf_file) def get_config_schema(self): schema = super(Extension, self).get_config_schema() return schema def validate_environment(self): try: import requests except ImportError as e: raise ExtensionError('Library requests not found', e) def get_backend_classes(self): from .actor import SomaFMBackend return [SomaFMBackend] ## Instruction: Remove dependency check done by Mopidy ## Code After: from __future__ import unicode_literals import os from mopidy import config, ext __version__ = '0.3.0' class Extension(ext.Extension): dist_name = 'Mopidy-SomaFM' ext_name = 'somafm' version = __version__ def get_default_config(self): conf_file = os.path.join(os.path.dirname(__file__), 'ext.conf') return config.read(conf_file) def get_config_schema(self): schema = super(Extension, self).get_config_schema() return schema def get_backend_classes(self): from .actor import SomaFMBackend return [SomaFMBackend]
from __future__ import unicode_literals import os - from mopidy import config, exceptions, ext ? --- --------- + from mopidy import config, ext __version__ = '0.3.0' + class Extension(ext.Extension): dist_name = 'Mopidy-SomaFM' ext_name = 'somafm' version = __version__ def get_default_config(self): conf_file = os.path.join(os.path.dirname(__file__), 'ext.conf') return config.read(conf_file) def get_config_schema(self): schema = super(Extension, self).get_config_schema() return schema - def validate_environment(self): - try: - import requests - except ImportError as e: - raise ExtensionError('Library requests not found', e) - def get_backend_classes(self): from .actor import SomaFMBackend return [SomaFMBackend]
9
0.290323
2
7
5133be98f621849456758d3546b3ac233ef1f4ad
app/webpack/state.js
app/webpack/state.js
import moment from 'moment'; let state = window.state = { currentTime: moment('2013-01-12 16:30'), alarmRinging: true, bathroomTowel: "clean", garbageOutside: false, garageDoorOpen: false, inventory: [], wearing: "pajamas", luck: 10, confidence: 10, car: { running: false, atWork: false }, wet: false, showered: false, wetUniform: false, wetPajamas: false, nastyBreath: true, unreadTexts: 3, fridgeInventory: [ "beer", "milk", ], cupboardsInventory: [ "granolaBar", ] }; export default state;
import moment from 'moment'; let state = window.state = { currentTime: moment('2013-01-12 16:30'), alarmRinging: true, bathroomTowel: "clean", garbageOutside: false, garageDoorOpen: false, inventory: [], wearing: "pajamas", luck: 10, confidence: 10, car: { running: false, atWork: false }, wet: false, showered: false, wetUniform: false, wetPajamas: false, nastyBreath: true, unreadTexts: 3, fridgeInventory: [ "beer", "milk", ], cupboardsInventory: [ "granolaBar", ] }; export function demerits() { let demerits = []; function a(string) { demerits.push(string); } if (state.nastyBreath) { a("Your breath reeks. Try brushing your teeth next time."); } if (state.alarmRinging) { a("You left your alarm ringing! Your landlord says this is the last straw."); } if (!state.garbageOutside) { a("You didn't take out the trash. A small flock of seagulls has moved into your kitchen."); } if (state.wetUniform) { a("Your work uniform is wet. Your boss wasn't too pleased with that"); } if (!state.showered) { a("You didn't shower before going to work."); } if (state.car.running) { a("You left your car running. It was subsequently stolen. Good luck getting home!"); } return demerits; } export default state;
Add demerits() function for calculating report card
Add demerits() function for calculating report card
JavaScript
mit
TEAMBUTT/LD35
javascript
## Code Before: import moment from 'moment'; let state = window.state = { currentTime: moment('2013-01-12 16:30'), alarmRinging: true, bathroomTowel: "clean", garbageOutside: false, garageDoorOpen: false, inventory: [], wearing: "pajamas", luck: 10, confidence: 10, car: { running: false, atWork: false }, wet: false, showered: false, wetUniform: false, wetPajamas: false, nastyBreath: true, unreadTexts: 3, fridgeInventory: [ "beer", "milk", ], cupboardsInventory: [ "granolaBar", ] }; export default state; ## Instruction: Add demerits() function for calculating report card ## Code After: import moment from 'moment'; let state = window.state = { currentTime: moment('2013-01-12 16:30'), alarmRinging: true, bathroomTowel: "clean", garbageOutside: false, garageDoorOpen: false, inventory: [], wearing: "pajamas", luck: 10, confidence: 10, car: { running: false, atWork: false }, wet: false, showered: false, wetUniform: false, wetPajamas: false, nastyBreath: true, unreadTexts: 3, fridgeInventory: [ "beer", "milk", ], cupboardsInventory: [ "granolaBar", ] }; export function demerits() { let demerits = []; function a(string) { demerits.push(string); } if (state.nastyBreath) { a("Your breath reeks. Try brushing your teeth next time."); } if (state.alarmRinging) { a("You left your alarm ringing! Your landlord says this is the last straw."); } if (!state.garbageOutside) { a("You didn't take out the trash. A small flock of seagulls has moved into your kitchen."); } if (state.wetUniform) { a("Your work uniform is wet. Your boss wasn't too pleased with that"); } if (!state.showered) { a("You didn't shower before going to work."); } if (state.car.running) { a("You left your car running. It was subsequently stolen. Good luck getting home!"); } return demerits; } export default state;
import moment from 'moment'; let state = window.state = { currentTime: moment('2013-01-12 16:30'), alarmRinging: true, bathroomTowel: "clean", garbageOutside: false, garageDoorOpen: false, inventory: [], wearing: "pajamas", luck: 10, confidence: 10, car: { running: false, atWork: false }, wet: false, showered: false, wetUniform: false, wetPajamas: false, nastyBreath: true, unreadTexts: 3, fridgeInventory: [ "beer", "milk", ], cupboardsInventory: [ "granolaBar", ] }; + export function demerits() { + let demerits = []; + + function a(string) { demerits.push(string); } + + if (state.nastyBreath) { + a("Your breath reeks. Try brushing your teeth next time."); + } + + if (state.alarmRinging) { + a("You left your alarm ringing! Your landlord says this is the last straw."); + } + + if (!state.garbageOutside) { + a("You didn't take out the trash. A small flock of seagulls has moved into your kitchen."); + } + + if (state.wetUniform) { + a("Your work uniform is wet. Your boss wasn't too pleased with that"); + } + + if (!state.showered) { + a("You didn't shower before going to work."); + } + + if (state.car.running) { + a("You left your car running. It was subsequently stolen. Good luck getting home!"); + } + + return demerits; + } + export default state;
32
1
32
0
e60c1d108a986cead9b1503ec33c14c807bb8296
bindings/pyroot_experimental/cppyy/CPyCppyy/CMakeLists.txt
bindings/pyroot_experimental/cppyy/CPyCppyy/CMakeLists.txt
cmake_minimum_required(VERSION 3.4.3 FATAL_ERROR) project (cppyy) set (CMAKE_CXX_STANDARD 14) set (CMAKE_CXX_STANDARD_REQUIRED ON) set (CMAKE_CXX_EXTENSIONS OFF) set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-strict-aliasing") message(STATUS "Looking for python interpreter") #---First look for the python interpreter and fix the version of it for the libraries-- find_package(PythonInterp) if (PYTHONINTERP_FOUND) execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import sys;sys.stdout.write(sys.version[:3])" OUTPUT_VARIABLE PYTHON_VERSION) execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import sys;sys.stdout.write(sys.prefix)" OUTPUT_VARIABLE PYTHON_PREFIX) set (CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${PYTHON_PREFIX}) endif() set(Python_ADDITIONAL_VERSIONS ${PYTHON_VERSION}) find_package(PythonLibs) if (NOT PYTHONLIBS_FOUND) message(FATAL_ERROR "PythonLibs package not found and python component required") endif() include_directories ("${PROJECT_SOURCE_DIR}/include" "${PYTHON_INCLUDE_PATH}") file (GLOB cppyy_src src/*.cxx) add_library(cppyy SHARED ${cppyy_src})
set(headers include/TPyArg.h include/TPyException.h include/TPyReturn.h include/TPython.h ) set(sources src/CallContext.cxx src/Converters.cxx src/CPPClassMethod.cxx src/CPPConstructor.cxx src/CPPDataMember.cxx src/CPPFunction.cxx src/CPPInstance.cxx src/CPPMethod.cxx src/CPPOverload.cxx src/CPPScope.cxx src/CPPSetItem.cxx src/CPyCppyyModule.cxx src/CustomPyTypes.cxx src/Executors.cxx src/LowLevelViews.cxx src/MemoryRegulator.cxx src/ProxyWrappers.cxx src/PyStrings.cxx src/Pythonize.cxx src/TemplateProxy.cxx src/TPyArg.cxx src/TPyClassGenerator.cxx src/TPyException.cxx src/TPyReturn.cxx src/TPython.cxx src/TupleOfInstances.cxx src/TypeManip.cxx src/Utility.cxx ) add_library(cppyy SHARED ${headers} ${sources}) target_compile_options(cppyy PRIVATE -Wno-shadow -Wno-strict-aliasing -Wno-unused-but-set-parameter) target_include_directories(cppyy PUBLIC ${PYTHON_INCLUDE_DIRS} $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>) target_link_libraries(cppyy cppyy_backend ${PYTHON_LIBRARIES}) set_property(GLOBAL APPEND PROPERTY ROOT_EXPORTED_TARGETS cppyy) install(TARGETS cppyy EXPORT ${CMAKE_PROJECT_NAME}Exports DESTINATION ${runtimedir})
Integrate CpyCppyy with ROOT's build system
Integrate CpyCppyy with ROOT's build system
Text
lgpl-2.1
olifre/root,olifre/root,karies/root,olifre/root,root-mirror/root,karies/root,karies/root,root-mirror/root,olifre/root,root-mirror/root,olifre/root,karies/root,karies/root,root-mirror/root,karies/root,karies/root,karies/root,olifre/root,root-mirror/root,root-mirror/root,root-mirror/root,root-mirror/root,root-mirror/root,olifre/root,karies/root,karies/root,karies/root,root-mirror/root,olifre/root,root-mirror/root,olifre/root,olifre/root,olifre/root
text
## Code Before: cmake_minimum_required(VERSION 3.4.3 FATAL_ERROR) project (cppyy) set (CMAKE_CXX_STANDARD 14) set (CMAKE_CXX_STANDARD_REQUIRED ON) set (CMAKE_CXX_EXTENSIONS OFF) set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-strict-aliasing") message(STATUS "Looking for python interpreter") #---First look for the python interpreter and fix the version of it for the libraries-- find_package(PythonInterp) if (PYTHONINTERP_FOUND) execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import sys;sys.stdout.write(sys.version[:3])" OUTPUT_VARIABLE PYTHON_VERSION) execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import sys;sys.stdout.write(sys.prefix)" OUTPUT_VARIABLE PYTHON_PREFIX) set (CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${PYTHON_PREFIX}) endif() set(Python_ADDITIONAL_VERSIONS ${PYTHON_VERSION}) find_package(PythonLibs) if (NOT PYTHONLIBS_FOUND) message(FATAL_ERROR "PythonLibs package not found and python component required") endif() include_directories ("${PROJECT_SOURCE_DIR}/include" "${PYTHON_INCLUDE_PATH}") file (GLOB cppyy_src src/*.cxx) add_library(cppyy SHARED ${cppyy_src}) ## Instruction: Integrate CpyCppyy with ROOT's build system ## Code After: set(headers include/TPyArg.h include/TPyException.h include/TPyReturn.h include/TPython.h ) set(sources src/CallContext.cxx src/Converters.cxx src/CPPClassMethod.cxx src/CPPConstructor.cxx src/CPPDataMember.cxx src/CPPFunction.cxx src/CPPInstance.cxx src/CPPMethod.cxx src/CPPOverload.cxx src/CPPScope.cxx src/CPPSetItem.cxx src/CPyCppyyModule.cxx src/CustomPyTypes.cxx src/Executors.cxx src/LowLevelViews.cxx src/MemoryRegulator.cxx src/ProxyWrappers.cxx src/PyStrings.cxx src/Pythonize.cxx src/TemplateProxy.cxx src/TPyArg.cxx src/TPyClassGenerator.cxx src/TPyException.cxx src/TPyReturn.cxx src/TPython.cxx src/TupleOfInstances.cxx src/TypeManip.cxx src/Utility.cxx ) add_library(cppyy SHARED ${headers} ${sources}) target_compile_options(cppyy PRIVATE -Wno-shadow -Wno-strict-aliasing -Wno-unused-but-set-parameter) target_include_directories(cppyy PUBLIC ${PYTHON_INCLUDE_DIRS} $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>) target_link_libraries(cppyy cppyy_backend ${PYTHON_LIBRARIES}) set_property(GLOBAL APPEND PROPERTY ROOT_EXPORTED_TARGETS cppyy) install(TARGETS cppyy EXPORT ${CMAKE_PROJECT_NAME}Exports DESTINATION ${runtimedir})
- cmake_minimum_required(VERSION 3.4.3 FATAL_ERROR) - project (cppyy) + set(headers + include/TPyArg.h + include/TPyException.h + include/TPyReturn.h + include/TPython.h + ) - set (CMAKE_CXX_STANDARD 14) - set (CMAKE_CXX_STANDARD_REQUIRED ON) - set (CMAKE_CXX_EXTENSIONS OFF) + set(sources + src/CallContext.cxx + src/Converters.cxx + src/CPPClassMethod.cxx + src/CPPConstructor.cxx + src/CPPDataMember.cxx + src/CPPFunction.cxx + src/CPPInstance.cxx + src/CPPMethod.cxx + src/CPPOverload.cxx + src/CPPScope.cxx + src/CPPSetItem.cxx + src/CPyCppyyModule.cxx + src/CustomPyTypes.cxx + src/Executors.cxx + src/LowLevelViews.cxx + src/MemoryRegulator.cxx + src/ProxyWrappers.cxx + src/PyStrings.cxx + src/Pythonize.cxx + src/TemplateProxy.cxx + src/TPyArg.cxx + src/TPyClassGenerator.cxx + src/TPyException.cxx + src/TPyReturn.cxx + src/TPython.cxx + src/TupleOfInstances.cxx + src/TypeManip.cxx + src/Utility.cxx + ) - set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-strict-aliasing") + add_library(cppyy SHARED ${headers} ${sources}) + target_compile_options(cppyy PRIVATE + -Wno-shadow -Wno-strict-aliasing -Wno-unused-but-set-parameter) + target_include_directories(cppyy PUBLIC ${PYTHON_INCLUDE_DIRS} + $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> + $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>) + target_link_libraries(cppyy cppyy_backend ${PYTHON_LIBRARIES}) + set_property(GLOBAL APPEND PROPERTY ROOT_EXPORTED_TARGETS cppyy) + install(TARGETS cppyy EXPORT ${CMAKE_PROJECT_NAME}Exports DESTINATION ${runtimedir}) - message(STATUS "Looking for python interpreter") - #---First look for the python interpreter and fix the version of it for the libraries-- - find_package(PythonInterp) - - if (PYTHONINTERP_FOUND) - execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import sys;sys.stdout.write(sys.version[:3])" - OUTPUT_VARIABLE PYTHON_VERSION) - execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import sys;sys.stdout.write(sys.prefix)" - OUTPUT_VARIABLE PYTHON_PREFIX) - set (CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${PYTHON_PREFIX}) - endif() - - set(Python_ADDITIONAL_VERSIONS ${PYTHON_VERSION}) - find_package(PythonLibs) - - if (NOT PYTHONLIBS_FOUND) - message(FATAL_ERROR "PythonLibs package not found and python component required") - endif() - - include_directories ("${PROJECT_SOURCE_DIR}/include" "${PYTHON_INCLUDE_PATH}") - - file (GLOB cppyy_src src/*.cxx) - - add_library(cppyy SHARED ${cppyy_src})
75
2.272727
45
30
098c87fa9a301abf955ac3cf81c7f55460a32be6
features/cookie_disclosure.feature
features/cookie_disclosure.feature
Feature: Cookie Disclosure Statemement As a webmaster I want to provide users with information about the MAS's cookie message So that the website complies with EU cookie law Scenario: Visiting the site for the first time and seeing the message Given I have not previously acknowleged the cookie message When I visit the website Then I should see the cookie message And I can acknowledge I understand Scenario: Visiting the site for the first time and seeing the message on subsequent requests Given I have not previously acknowleged the cookie message And I visit the site and see the cookie message When I visit another page Then I should see the cookie message Scenario: Acknowledging the cookie message Given I have not previously acknowleged the cookie message And I visit the site and see the cookie message When I close the cookie message Then I should not see the cookie message @with_and_without_javascript Scenario: Acknowledging the cookie message and then navigating to another page Given I have not previously acknowleged the cookie message And I visit the site and acknowledge the cookie message When I visit another page Then I should not see the cookie message Scenario: Visiting the site having previously acknowledged the message Given I have previously acknowleged the cookie message When I visit the website Then I should not see the cookie message
Feature: Cookie Disclosure Statemement As a webmaster I want to provide users with information about the MAS's cookie message So that the website complies with EU cookie law Scenario: Visiting the site for the first time and seeing the message Given I have not previously acknowleged the cookie message When I visit the website Then I should see the cookie message And I can acknowledge I understand Scenario: Visiting the site for the first time and seeing the message on subsequent requests Given I have not previously acknowleged the cookie message And I visit the site and see the cookie message When I visit another page Then I should see the cookie message @with_and_without_javascript Scenario: Acknowledging the cookie message Given I have not previously acknowleged the cookie message And I visit the site and see the cookie message When I close the cookie message Then I should not see the cookie message @with_and_without_javascript Scenario: Acknowledging the cookie message and then navigating to another page Given I have not previously acknowleged the cookie message And I visit the site and acknowledge the cookie message When I visit another page Then I should not see the cookie message Scenario: Visiting the site having previously acknowledged the message Given I have previously acknowleged the cookie message When I visit the website Then I should not see the cookie message
Test another scenario with javascript.
Test another scenario with javascript.
Cucumber
mit
moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend
cucumber
## Code Before: Feature: Cookie Disclosure Statemement As a webmaster I want to provide users with information about the MAS's cookie message So that the website complies with EU cookie law Scenario: Visiting the site for the first time and seeing the message Given I have not previously acknowleged the cookie message When I visit the website Then I should see the cookie message And I can acknowledge I understand Scenario: Visiting the site for the first time and seeing the message on subsequent requests Given I have not previously acknowleged the cookie message And I visit the site and see the cookie message When I visit another page Then I should see the cookie message Scenario: Acknowledging the cookie message Given I have not previously acknowleged the cookie message And I visit the site and see the cookie message When I close the cookie message Then I should not see the cookie message @with_and_without_javascript Scenario: Acknowledging the cookie message and then navigating to another page Given I have not previously acknowleged the cookie message And I visit the site and acknowledge the cookie message When I visit another page Then I should not see the cookie message Scenario: Visiting the site having previously acknowledged the message Given I have previously acknowleged the cookie message When I visit the website Then I should not see the cookie message ## Instruction: Test another scenario with javascript. ## Code After: Feature: Cookie Disclosure Statemement As a webmaster I want to provide users with information about the MAS's cookie message So that the website complies with EU cookie law Scenario: Visiting the site for the first time and seeing the message Given I have not previously acknowleged the cookie message When I visit the website Then I should see the cookie message And I can acknowledge I understand Scenario: Visiting the site for the first time and seeing the message on subsequent requests Given I have not previously acknowleged the cookie message And I visit the site and see the cookie message When I visit another page Then I should see the cookie message @with_and_without_javascript Scenario: Acknowledging the cookie message Given I have not previously acknowleged the cookie message And I visit the site and see the cookie message When I close the cookie message Then I should not see the cookie message @with_and_without_javascript Scenario: Acknowledging the cookie message and then navigating to another page Given I have not previously acknowleged the cookie message And I visit the site and acknowledge the cookie message When I visit another page Then I should not see the cookie message Scenario: Visiting the site having previously acknowledged the message Given I have previously acknowleged the cookie message When I visit the website Then I should not see the cookie message
Feature: Cookie Disclosure Statemement As a webmaster I want to provide users with information about the MAS's cookie message So that the website complies with EU cookie law Scenario: Visiting the site for the first time and seeing the message Given I have not previously acknowleged the cookie message When I visit the website Then I should see the cookie message And I can acknowledge I understand Scenario: Visiting the site for the first time and seeing the message on subsequent requests Given I have not previously acknowleged the cookie message And I visit the site and see the cookie message When I visit another page Then I should see the cookie message + @with_and_without_javascript Scenario: Acknowledging the cookie message Given I have not previously acknowleged the cookie message And I visit the site and see the cookie message When I close the cookie message Then I should not see the cookie message @with_and_without_javascript Scenario: Acknowledging the cookie message and then navigating to another page Given I have not previously acknowleged the cookie message And I visit the site and acknowledge the cookie message When I visit another page Then I should not see the cookie message Scenario: Visiting the site having previously acknowledged the message Given I have previously acknowleged the cookie message When I visit the website Then I should not see the cookie message
1
0.029412
1
0
cbc071b3eca6e9662fd2054a3fd4554862f729e5
Code/Cleavir/Dataflow-analysis/dataflow-analysis.lisp
Code/Cleavir/Dataflow-analysis/dataflow-analysis.lisp
(cl:in-package #:cleavir-dataflow-analysis) (defclass operation () ((%instruction :initarg :instruction :reader instruction) (%inputs :initform '() :initarg inputs :accessor inputs) (%outputs :initform '() :initarg outputs :accessor outputs)))
(cl:in-package #:cleavir-dataflow-analysis) (defclass operation () ((%instruction :initarg :instruction :reader instruction) (%inputs :initform '() :initarg inputs :accessor inputs) (%outputs :initform '() :initarg outputs :accessor outputs))) (defclass dataflow () ((%operations :initarg :operations :accessor operations)))
Define class for result of analysis.
Define class for result of analysis.
Common Lisp
bsd-2-clause
clasp-developers/SICL,vtomole/SICL,vtomole/SICL,clasp-developers/SICL,clasp-developers/SICL,vtomole/SICL,clasp-developers/SICL,vtomole/SICL
common-lisp
## Code Before: (cl:in-package #:cleavir-dataflow-analysis) (defclass operation () ((%instruction :initarg :instruction :reader instruction) (%inputs :initform '() :initarg inputs :accessor inputs) (%outputs :initform '() :initarg outputs :accessor outputs))) ## Instruction: Define class for result of analysis. ## Code After: (cl:in-package #:cleavir-dataflow-analysis) (defclass operation () ((%instruction :initarg :instruction :reader instruction) (%inputs :initform '() :initarg inputs :accessor inputs) (%outputs :initform '() :initarg outputs :accessor outputs))) (defclass dataflow () ((%operations :initarg :operations :accessor operations)))
(cl:in-package #:cleavir-dataflow-analysis) (defclass operation () ((%instruction :initarg :instruction :reader instruction) (%inputs :initform '() :initarg inputs :accessor inputs) (%outputs :initform '() :initarg outputs :accessor outputs))) + + (defclass dataflow () + ((%operations :initarg :operations :accessor operations)))
3
0.5
3
0
a51f6f684248cdd370a7a850df47130065a85fb4
gradle.properties
gradle.properties
VERSION_NAME=4.9.8 POM_PACKAGING=aar GROUP=com.mixpanel.android POM_DESCRIPTION=Official Mixpanel tracking library for Android http://mixpanel.com/ POM_URL=https://github.com/mixpanel/mixpanel-android POM_SCM_URL=https://github.com/mixpanel/mixpanel-android POM_SCM_CONNECTION=scm:git:http://github.com/mixpanel/mixpanel-android POM_SCM_DEV_CONNECTION=scm:git:git@github.com:mixpanel/mixpanel-android.git POM_LICENCE_NAME=The Apache Software License, Version 2.0 POM_LICENCE_URL=http://www.apache.org/license/LICENSE-2.0.txt POM_LICENCE_DIST=repo POM_DEVELOPER_ID=mixpanel_dev POM_DEVELOPER_NAME=Mixpanel Developers POM_DEVELOPER_EMAIL=dev+android@mixpanel.com RELEASE_REPOSITORY_URL=https://oss.sonatype.org/service/local/staging/deploy/maven2/ SNAPSHOT_REPOSITORY_URL=https://oss.sonatype.org/content/repositories/snapshots/ org.gradle.jvmargs=-Xmx1536M
VERSION_NAME=4.9.9-SNAPSHOT POM_PACKAGING=aar GROUP=com.mixpanel.android POM_DESCRIPTION=Official Mixpanel tracking library for Android http://mixpanel.com/ POM_URL=https://github.com/mixpanel/mixpanel-android POM_SCM_URL=https://github.com/mixpanel/mixpanel-android POM_SCM_CONNECTION=scm:git:http://github.com/mixpanel/mixpanel-android POM_SCM_DEV_CONNECTION=scm:git:git@github.com:mixpanel/mixpanel-android.git POM_LICENCE_NAME=The Apache Software License, Version 2.0 POM_LICENCE_URL=http://www.apache.org/license/LICENSE-2.0.txt POM_LICENCE_DIST=repo POM_DEVELOPER_ID=mixpanel_dev POM_DEVELOPER_NAME=Mixpanel Developers POM_DEVELOPER_EMAIL=dev+android@mixpanel.com RELEASE_REPOSITORY_URL=https://oss.sonatype.org/service/local/staging/deploy/maven2/ SNAPSHOT_REPOSITORY_URL=https://oss.sonatype.org/content/repositories/snapshots/ org.gradle.jvmargs=-Xmx1536M
Update master with next snasphot version 4.9.9-SNAPSHOT
Update master with next snasphot version 4.9.9-SNAPSHOT
INI
apache-2.0
mixpanel/mixpanel-android,mixpanel/mixpanel-android,mixpanel/mixpanel-android
ini
## Code Before: VERSION_NAME=4.9.8 POM_PACKAGING=aar GROUP=com.mixpanel.android POM_DESCRIPTION=Official Mixpanel tracking library for Android http://mixpanel.com/ POM_URL=https://github.com/mixpanel/mixpanel-android POM_SCM_URL=https://github.com/mixpanel/mixpanel-android POM_SCM_CONNECTION=scm:git:http://github.com/mixpanel/mixpanel-android POM_SCM_DEV_CONNECTION=scm:git:git@github.com:mixpanel/mixpanel-android.git POM_LICENCE_NAME=The Apache Software License, Version 2.0 POM_LICENCE_URL=http://www.apache.org/license/LICENSE-2.0.txt POM_LICENCE_DIST=repo POM_DEVELOPER_ID=mixpanel_dev POM_DEVELOPER_NAME=Mixpanel Developers POM_DEVELOPER_EMAIL=dev+android@mixpanel.com RELEASE_REPOSITORY_URL=https://oss.sonatype.org/service/local/staging/deploy/maven2/ SNAPSHOT_REPOSITORY_URL=https://oss.sonatype.org/content/repositories/snapshots/ org.gradle.jvmargs=-Xmx1536M ## Instruction: Update master with next snasphot version 4.9.9-SNAPSHOT ## Code After: VERSION_NAME=4.9.9-SNAPSHOT POM_PACKAGING=aar GROUP=com.mixpanel.android POM_DESCRIPTION=Official Mixpanel tracking library for Android http://mixpanel.com/ POM_URL=https://github.com/mixpanel/mixpanel-android POM_SCM_URL=https://github.com/mixpanel/mixpanel-android POM_SCM_CONNECTION=scm:git:http://github.com/mixpanel/mixpanel-android POM_SCM_DEV_CONNECTION=scm:git:git@github.com:mixpanel/mixpanel-android.git POM_LICENCE_NAME=The Apache Software License, Version 2.0 POM_LICENCE_URL=http://www.apache.org/license/LICENSE-2.0.txt POM_LICENCE_DIST=repo POM_DEVELOPER_ID=mixpanel_dev POM_DEVELOPER_NAME=Mixpanel Developers POM_DEVELOPER_EMAIL=dev+android@mixpanel.com RELEASE_REPOSITORY_URL=https://oss.sonatype.org/service/local/staging/deploy/maven2/ SNAPSHOT_REPOSITORY_URL=https://oss.sonatype.org/content/repositories/snapshots/ org.gradle.jvmargs=-Xmx1536M
- VERSION_NAME=4.9.8 ? ^ + VERSION_NAME=4.9.9-SNAPSHOT ? ^^^^^^^^^^ POM_PACKAGING=aar GROUP=com.mixpanel.android POM_DESCRIPTION=Official Mixpanel tracking library for Android http://mixpanel.com/ POM_URL=https://github.com/mixpanel/mixpanel-android POM_SCM_URL=https://github.com/mixpanel/mixpanel-android POM_SCM_CONNECTION=scm:git:http://github.com/mixpanel/mixpanel-android POM_SCM_DEV_CONNECTION=scm:git:git@github.com:mixpanel/mixpanel-android.git POM_LICENCE_NAME=The Apache Software License, Version 2.0 POM_LICENCE_URL=http://www.apache.org/license/LICENSE-2.0.txt POM_LICENCE_DIST=repo POM_DEVELOPER_ID=mixpanel_dev POM_DEVELOPER_NAME=Mixpanel Developers POM_DEVELOPER_EMAIL=dev+android@mixpanel.com RELEASE_REPOSITORY_URL=https://oss.sonatype.org/service/local/staging/deploy/maven2/ SNAPSHOT_REPOSITORY_URL=https://oss.sonatype.org/content/repositories/snapshots/ org.gradle.jvmargs=-Xmx1536M
2
0.095238
1
1
11da2449c3fb6e4e8d90af23c2d848c2819341ee
publify_core/app/views/admin/content/_article_list.html.erb
publify_core/app/views/admin/content/_article_list.html.erb
<% if @articles.empty? %> <tr> <td colspan="7"> <%= t('.no_articles') %> </td> </tr> <% end %> <% for article in @articles %> <tr> <td> <% if article.published? %> <%= link_to_permalink(article, article.title, nil, 'published') %> <% else %> <%= link_to(article.title, { controller: '/articles', action: 'preview', id: article.id }, { class: 'unpublished', target: '_new' }) %> <% end %> <%= show_actions article %> </td> <td> <%= author_link(article) %><br /> <small><%= l(article.published_at || article.created_at) %></small> </td> <td> <%= article.allow_comments? ? link_to("#{article.comments.ham.size} <i class='glyphicon glyphicon-comment'></i>".html_safe, controller: '/admin/feedback', id: article.id, action: 'article') : '-' %></td> </tr> <% end %> <%= display_pagination(@articles, 5, 'first', 'last') %>
<% if @articles.empty? %> <tr> <td colspan="7"> <%= t('.no_articles') %> </td> </tr> <% end %> <% for article in @articles %> <tr> <td> <% if article.published? %> <%= link_to_permalink(article, article.title, nil, 'published') %> <% else %> <%= link_to(article.title, { controller: '/articles', action: 'preview', id: article.id }, { class: 'unpublished', target: '_new' }) %> <% end %> <%= show_actions article %> </td> <td> <%= author_link(article) %><br /> <small><%= l(article.published_at || article.created_at) %></small> </td> <td> <% if article.allow_comments? %> <%= link_to("#{article.comments.ham.size} #{t(".feedback")}".html_safe, controller: '/admin/feedback', id: article.id, action: 'article') %> <% else %> - <% end %> </td> </tr> <% end %> <%= display_pagination(@articles, 5, 'first', 'last') %>
Replace icon in article feedback link
Replace icon in article feedback link
HTML+ERB
mit
publify/publify,publify/publify,publify/publify
html+erb
## Code Before: <% if @articles.empty? %> <tr> <td colspan="7"> <%= t('.no_articles') %> </td> </tr> <% end %> <% for article in @articles %> <tr> <td> <% if article.published? %> <%= link_to_permalink(article, article.title, nil, 'published') %> <% else %> <%= link_to(article.title, { controller: '/articles', action: 'preview', id: article.id }, { class: 'unpublished', target: '_new' }) %> <% end %> <%= show_actions article %> </td> <td> <%= author_link(article) %><br /> <small><%= l(article.published_at || article.created_at) %></small> </td> <td> <%= article.allow_comments? ? link_to("#{article.comments.ham.size} <i class='glyphicon glyphicon-comment'></i>".html_safe, controller: '/admin/feedback', id: article.id, action: 'article') : '-' %></td> </tr> <% end %> <%= display_pagination(@articles, 5, 'first', 'last') %> ## Instruction: Replace icon in article feedback link ## Code After: <% if @articles.empty? %> <tr> <td colspan="7"> <%= t('.no_articles') %> </td> </tr> <% end %> <% for article in @articles %> <tr> <td> <% if article.published? %> <%= link_to_permalink(article, article.title, nil, 'published') %> <% else %> <%= link_to(article.title, { controller: '/articles', action: 'preview', id: article.id }, { class: 'unpublished', target: '_new' }) %> <% end %> <%= show_actions article %> </td> <td> <%= author_link(article) %><br /> <small><%= l(article.published_at || article.created_at) %></small> </td> <td> <% if article.allow_comments? %> <%= link_to("#{article.comments.ham.size} #{t(".feedback")}".html_safe, controller: '/admin/feedback', id: article.id, action: 'article') %> <% else %> - <% end %> </td> </tr> <% end %> <%= display_pagination(@articles, 5, 'first', 'last') %>
<% if @articles.empty? %> <tr> <td colspan="7"> <%= t('.no_articles') %> </td> </tr> <% end %> <% for article in @articles %> <tr> <td> <% if article.published? %> <%= link_to_permalink(article, article.title, nil, 'published') %> <% else %> <%= link_to(article.title, { controller: '/articles', action: 'preview', id: article.id }, { class: 'unpublished', target: '_new' }) %> <% end %> <%= show_actions article %> </td> <td> <%= author_link(article) %><br /> <small><%= l(article.published_at || article.created_at) %></small> </td> <td> - <%= article.allow_comments? ? link_to("#{article.comments.ham.size} <i class='glyphicon glyphicon-comment'></i>".html_safe, controller: '/admin/feedback', id: article.id, action: 'article') : '-' %></td> + <% if article.allow_comments? %> + <%= link_to("#{article.comments.ham.size} #{t(".feedback")}".html_safe, controller: '/admin/feedback', id: article.id, action: 'article') %> + <% else %> + - + <% end %> + </td> </tr> <% end %> <%= display_pagination(@articles, 5, 'first', 'last') %>
7
0.269231
6
1
cad627a986f0d2ee897e9889e78473976cbeb69d
corehq/apps/app_manager/tests/test_suite.py
corehq/apps/app_manager/tests/test_suite.py
from django.utils.unittest.case import TestCase from corehq.apps.app_manager.models import Application from corehq.apps.app_manager.tests.util import TestFileMixin # snippet from http://stackoverflow.com/questions/321795/comparing-xml-in-a-unit-test-in-python/7060342#7060342 from doctest import Example from lxml.doctestcompare import LXMLOutputChecker class XmlTest(TestCase): def assertXmlEqual(self, want, got): checker = LXMLOutputChecker() if not checker.check_output(want, got, 0): message = checker.output_difference(Example("", want), got, 0) raise AssertionError(message) # end snippet class SuiteTest(XmlTest, TestFileMixin): file_path = ('data', 'suite') def setUp(self): self.app = Application.wrap(self.get_json('app')) def test_normal_suite(self): self.assertXmlEqual(self.app.create_suite(), self.get_xml('normal-suite'))
from django.utils.unittest.case import TestCase from casexml.apps.case.tests import check_xml_line_by_line from corehq.apps.app_manager.models import Application from corehq.apps.app_manager.tests.util import TestFileMixin # snippet from http://stackoverflow.com/questions/321795/comparing-xml-in-a-unit-test-in-python/7060342#7060342 from doctest import Example from lxml.doctestcompare import LXMLOutputChecker class XmlTest(TestCase): def assertXmlEqual(self, want, got): checker = LXMLOutputChecker() if not checker.check_output(want, got, 0): message = checker.output_difference(Example("", want), got, 0) raise AssertionError(message) # end snippet class SuiteTest(XmlTest, TestFileMixin): file_path = ('data', 'suite') def setUp(self): self.app = Application.wrap(self.get_json('app')) def test_normal_suite(self): self.assertXmlEqual(self.get_xml('normal-suite'), self.app.create_suite())
Revert "make test output a litte more intuitive"
Revert "make test output a litte more intuitive" This reverts commit e09fa453b1bb72f08053d13cc3050012a20ba724.
Python
bsd-3-clause
qedsoftware/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,puttarajubr/commcare-hq,SEL-Columbia/commcare-hq,SEL-Columbia/commcare-hq,gmimano/commcaretest,qedsoftware/commcare-hq,gmimano/commcaretest,SEL-Columbia/commcare-hq,puttarajubr/commcare-hq,qedsoftware/commcare-hq,gmimano/commcaretest,dimagi/commcare-hq,puttarajubr/commcare-hq,puttarajubr/commcare-hq,dimagi/commcare-hq
python
## Code Before: from django.utils.unittest.case import TestCase from corehq.apps.app_manager.models import Application from corehq.apps.app_manager.tests.util import TestFileMixin # snippet from http://stackoverflow.com/questions/321795/comparing-xml-in-a-unit-test-in-python/7060342#7060342 from doctest import Example from lxml.doctestcompare import LXMLOutputChecker class XmlTest(TestCase): def assertXmlEqual(self, want, got): checker = LXMLOutputChecker() if not checker.check_output(want, got, 0): message = checker.output_difference(Example("", want), got, 0) raise AssertionError(message) # end snippet class SuiteTest(XmlTest, TestFileMixin): file_path = ('data', 'suite') def setUp(self): self.app = Application.wrap(self.get_json('app')) def test_normal_suite(self): self.assertXmlEqual(self.app.create_suite(), self.get_xml('normal-suite')) ## Instruction: Revert "make test output a litte more intuitive" This reverts commit e09fa453b1bb72f08053d13cc3050012a20ba724. ## Code After: from django.utils.unittest.case import TestCase from casexml.apps.case.tests import check_xml_line_by_line from corehq.apps.app_manager.models import Application from corehq.apps.app_manager.tests.util import TestFileMixin # snippet from http://stackoverflow.com/questions/321795/comparing-xml-in-a-unit-test-in-python/7060342#7060342 from doctest import Example from lxml.doctestcompare import LXMLOutputChecker class XmlTest(TestCase): def assertXmlEqual(self, want, got): checker = LXMLOutputChecker() if not checker.check_output(want, got, 0): message = checker.output_difference(Example("", want), got, 0) raise AssertionError(message) # end snippet class SuiteTest(XmlTest, TestFileMixin): file_path = ('data', 'suite') def setUp(self): self.app = Application.wrap(self.get_json('app')) def test_normal_suite(self): self.assertXmlEqual(self.get_xml('normal-suite'), self.app.create_suite())
from django.utils.unittest.case import TestCase + from casexml.apps.case.tests import check_xml_line_by_line from corehq.apps.app_manager.models import Application from corehq.apps.app_manager.tests.util import TestFileMixin # snippet from http://stackoverflow.com/questions/321795/comparing-xml-in-a-unit-test-in-python/7060342#7060342 from doctest import Example from lxml.doctestcompare import LXMLOutputChecker - class XmlTest(TestCase): def assertXmlEqual(self, want, got): checker = LXMLOutputChecker() if not checker.check_output(want, got, 0): message = checker.output_difference(Example("", want), got, 0) raise AssertionError(message) # end snippet - class SuiteTest(XmlTest, TestFileMixin): file_path = ('data', 'suite') - def setUp(self): self.app = Application.wrap(self.get_json('app')) def test_normal_suite(self): - self.assertXmlEqual(self.app.create_suite(), self.get_xml('normal-suite')) + self.assertXmlEqual(self.get_xml('normal-suite'), self.app.create_suite())
6
0.214286
2
4
7b8790d5642247640dce47371441678ceeef40a6
webroot/views/board.erb
webroot/views/board.erb
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Board</title> <!-- Bootstrap --> <link href="css/bootstrap.min.css" rel="stylesheet"> </head> <body> <h1>Hello, world!</h1> <h2><%= name %></h2> <p><%= level %></p> <!-- Bootstrap --> <script src="js/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Board</title> <link href="css/bootstrap.min.css" rel="stylesheet"> <link href="css/font-awesome.min.css" rel="stylesheet"> <!--<link href="css/ionicons.min.css" rel="stylesheet">--> <link href="css/AdminLTE.min.css" rel="stylesheet"> <!--<link href="css/AdminLTE/skin-black.min.css" rel="stylesheet">--> </head> <!--<body class="skin-black sidebar-mini">--> <body> <h1>Poloxy Dashboard</h1> <h2>Path: <%= label %></h2> <p>Current Status: Level <%= level %></p> <div class="alert alert-success"> <h1> <i class="icon fa fa-check" aria-hidden="true"></i>CLEAR </h1> <p>No alert in last xx hours.</p> </div> <div class="alert alert-info"> <h1> <i class="icon fa fa-info" aria-hidden="true"></i>INFO </h1> <p>Info alert happend xx minutes before.</p> </div> <div class="alert alert-warning"> <h1> <i class="icon fa fa-warning" aria-hidden="true"></i>WARNING </h1> <p>Warning alert happend xx minutes before.</p> </div> <div class="alert alert-danger"> <h1> <i class="icon fa fa-ban" aria-hidden="true"></i>DANGER </h1> <p>Critical alert happend xx minutes before.</p> </div> <!-- Bootstrap --> <script src="js/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> <!--<script src="js/AdminLTE-app.min.js"></script>--> </body> </html>
Add alert panels powered by AdminLTE
[WIP] Add alert panels powered by AdminLTE
HTML+ERB
mit
key-amb/poloxy,key-amb/poloxy
html+erb
## Code Before: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Board</title> <!-- Bootstrap --> <link href="css/bootstrap.min.css" rel="stylesheet"> </head> <body> <h1>Hello, world!</h1> <h2><%= name %></h2> <p><%= level %></p> <!-- Bootstrap --> <script src="js/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> </body> </html> ## Instruction: [WIP] Add alert panels powered by AdminLTE ## Code After: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Board</title> <link href="css/bootstrap.min.css" rel="stylesheet"> <link href="css/font-awesome.min.css" rel="stylesheet"> <!--<link href="css/ionicons.min.css" rel="stylesheet">--> <link href="css/AdminLTE.min.css" rel="stylesheet"> <!--<link href="css/AdminLTE/skin-black.min.css" rel="stylesheet">--> </head> <!--<body class="skin-black sidebar-mini">--> <body> <h1>Poloxy Dashboard</h1> <h2>Path: <%= label %></h2> <p>Current Status: Level <%= level %></p> <div class="alert alert-success"> <h1> <i class="icon fa fa-check" aria-hidden="true"></i>CLEAR </h1> <p>No alert in last xx hours.</p> </div> <div class="alert alert-info"> <h1> <i class="icon fa fa-info" aria-hidden="true"></i>INFO </h1> <p>Info alert happend xx minutes before.</p> </div> <div class="alert alert-warning"> <h1> <i class="icon fa fa-warning" aria-hidden="true"></i>WARNING </h1> <p>Warning alert happend xx minutes before.</p> </div> <div class="alert alert-danger"> <h1> <i class="icon fa fa-ban" aria-hidden="true"></i>DANGER </h1> <p>Critical alert happend xx minutes before.</p> </div> <!-- Bootstrap --> <script src="js/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> <!--<script src="js/AdminLTE-app.min.js"></script>--> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Board</title> - <!-- Bootstrap --> <link href="css/bootstrap.min.css" rel="stylesheet"> + <link href="css/font-awesome.min.css" rel="stylesheet"> + <!--<link href="css/ionicons.min.css" rel="stylesheet">--> + <link href="css/AdminLTE.min.css" rel="stylesheet"> + <!--<link href="css/AdminLTE/skin-black.min.css" rel="stylesheet">--> </head> + <!--<body class="skin-black sidebar-mini">--> <body> - <h1>Hello, world!</h1> + <h1>Poloxy Dashboard</h1> - <h2><%= name %></h2> ? ^ ^ + <h2>Path: <%= label %></h2> ? ++++++ ^ ^ + - <p><%= level %></p> + <p>Current Status: Level <%= level %></p> + <div class="alert alert-success"> + <h1> + <i class="icon fa fa-check" aria-hidden="true"></i>CLEAR + </h1> + <p>No alert in last xx hours.</p> + </div> + + <div class="alert alert-info"> + <h1> + <i class="icon fa fa-info" aria-hidden="true"></i>INFO + </h1> + <p>Info alert happend xx minutes before.</p> + </div> + + <div class="alert alert-warning"> + <h1> + <i class="icon fa fa-warning" aria-hidden="true"></i>WARNING + </h1> + <p>Warning alert happend xx minutes before.</p> + </div> + + <div class="alert alert-danger"> + <h1> + <i class="icon fa fa-ban" aria-hidden="true"></i>DANGER + </h1> + <p>Critical alert happend xx minutes before.</p> + </div> <!-- Bootstrap --> <script src="js/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> + <!--<script src="js/AdminLTE-app.min.js"></script>--> </body> </html>
40
1.818182
36
4
11c4288301eecd0ca3fd02e7b731b19228a31448
_layouts/careers_post.html
_layouts/careers_post.html
<!DOCTYPE html> <html> {% include head.html %} <body id="home" class="page"> {% include gtm.html %} {% include nav_frontpage.html %} <div class="full-page careers"> <header class="header header--careers-post"> <div class="container post"> <div class="header--intro-text"> <div class="header--intro-heading"> {{ page.title }}</div> </div> </div> </header> <div class="container post"> {{ content | markdownify }} <p>If you think you have what it takes, get in touch with us by sending an email to <a href="mailto:workwithus@rrsoft.co">workwithus@rrsoft.co</a>.</p> </div> </div> {% include footer.html %} {% include js.html %} </body> </html>
<!DOCTYPE html> <html> {% include head.html %} <body id="home" class="page"> {% include gtm.html %} {% include nav_frontpage.html %} <div class="full-page careers"> <header class="header header--careers-post"> <div class="container post"> <div class="header--intro-text"> <div class="header--intro-heading"> {{ page.title }}</div> </div> </div> </header> <div class="container post"> {{ content | markdownify }} <p>If you think you have what it takes, get in touch with us by sending an email to <a href="mailto:careers@rrsoft.co">careers@rrsoft.co</a>.</p> </div> </div> {% include footer.html %} {% include js.html %} </body> </html>
Change careers email to careers@rrsoft.co
Change careers email to careers@rrsoft.co
HTML
apache-2.0
RapidRiverSoftware/rapidriversoftware.github.io,RapidRiverSoftware/rapidriversoftware.github.io,RapidRiverSoftware/rapidriversoftware.github.io,RapidRiverSoftware/rapidriversoftware.github.io
html
## Code Before: <!DOCTYPE html> <html> {% include head.html %} <body id="home" class="page"> {% include gtm.html %} {% include nav_frontpage.html %} <div class="full-page careers"> <header class="header header--careers-post"> <div class="container post"> <div class="header--intro-text"> <div class="header--intro-heading"> {{ page.title }}</div> </div> </div> </header> <div class="container post"> {{ content | markdownify }} <p>If you think you have what it takes, get in touch with us by sending an email to <a href="mailto:workwithus@rrsoft.co">workwithus@rrsoft.co</a>.</p> </div> </div> {% include footer.html %} {% include js.html %} </body> </html> ## Instruction: Change careers email to careers@rrsoft.co ## Code After: <!DOCTYPE html> <html> {% include head.html %} <body id="home" class="page"> {% include gtm.html %} {% include nav_frontpage.html %} <div class="full-page careers"> <header class="header header--careers-post"> <div class="container post"> <div class="header--intro-text"> <div class="header--intro-heading"> {{ page.title }}</div> </div> </div> </header> <div class="container post"> {{ content | markdownify }} <p>If you think you have what it takes, get in touch with us by sending an email to <a href="mailto:careers@rrsoft.co">careers@rrsoft.co</a>.</p> </div> </div> {% include footer.html %} {% include js.html %} </body> </html>
<!DOCTYPE html> <html> {% include head.html %} <body id="home" class="page"> {% include gtm.html %} {% include nav_frontpage.html %} <div class="full-page careers"> <header class="header header--careers-post"> <div class="container post"> <div class="header--intro-text"> <div class="header--intro-heading"> {{ page.title }}</div> </div> </div> </header> <div class="container post"> {{ content | markdownify }} <p>If you think you have what it takes, get in touch with us by sending an email to <a - href="mailto:workwithus@rrsoft.co">workwithus@rrsoft.co</a>.</p> ? ^^ ^^^^^^ ^^ ^^^^^^ + href="mailto:careers@rrsoft.co">careers@rrsoft.co</a>.</p> ? ^^ ^^^ ^^ ^^^ </div> </div> {% include footer.html %} {% include js.html %} </body> </html>
2
0.074074
1
1
07e774146306d7f838aea279655b9a6058e1c7a1
src/Microsoft.Extensions.Localization/project.json
src/Microsoft.Extensions.Localization/project.json
{ "version": "1.1.0-*", "description": "Application localization services and default implementation based on ResourceManager to load localized assembly resources.", "packOptions": { "repository": { "type": "git", "url": "https://github.com/aspnet/localization" }, "tags": [ "localization" ] }, "buildOptions": { "warningsAsErrors": true, "keyFile": "../../tools/Key.snk", "nowarn": [ "CS1591" ], "xmlDoc": true }, "dependencies": { "Microsoft.AspNetCore.Hosting.Abstractions": "1.1.0-*", "Microsoft.Extensions.DependencyInjection.Abstractions": "1.1.0-*", "Microsoft.Extensions.Localization.Abstractions": "1.1.0-*", "Microsoft.Extensions.Options": "1.1.0-*", "System.Reflection.Extensions": "4.0.1-*" }, "frameworks": { "net451": {}, "netstandard1.3": { "dependencies": { "System.Collections.Concurrent": "4.0.12-*", "System.Resources.Reader": "4.0.0-*" } } } }
{ "version": "1.1.0-*", "description": "Application localization services and default implementation based on ResourceManager to load localized assembly resources.", "packOptions": { "repository": { "type": "git", "url": "https://github.com/aspnet/localization" }, "tags": [ "localization" ] }, "buildOptions": { "warningsAsErrors": true, "keyFile": "../../tools/Key.snk", "nowarn": [ "CS1591" ], "xmlDoc": true }, "dependencies": { "Microsoft.AspNetCore.Hosting.Abstractions": "1.1.0-*", "Microsoft.Extensions.DependencyInjection.Abstractions": "1.1.0-*", "Microsoft.Extensions.Localization.Abstractions": "1.1.0-*", "Microsoft.Extensions.Options": "1.1.0-*" }, "frameworks": { "net451": {}, "netstandard1.3": { "dependencies": { "System.Collections.Concurrent": "4.0.12-*", "System.Reflection.Extensions": "4.0.1-*", "System.Resources.Reader": "4.0.0-*" } } } }
Make System.Reflection.Extensions a netstandard dependency
Make System.Reflection.Extensions a netstandard dependency
JSON
apache-2.0
aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore
json
## Code Before: { "version": "1.1.0-*", "description": "Application localization services and default implementation based on ResourceManager to load localized assembly resources.", "packOptions": { "repository": { "type": "git", "url": "https://github.com/aspnet/localization" }, "tags": [ "localization" ] }, "buildOptions": { "warningsAsErrors": true, "keyFile": "../../tools/Key.snk", "nowarn": [ "CS1591" ], "xmlDoc": true }, "dependencies": { "Microsoft.AspNetCore.Hosting.Abstractions": "1.1.0-*", "Microsoft.Extensions.DependencyInjection.Abstractions": "1.1.0-*", "Microsoft.Extensions.Localization.Abstractions": "1.1.0-*", "Microsoft.Extensions.Options": "1.1.0-*", "System.Reflection.Extensions": "4.0.1-*" }, "frameworks": { "net451": {}, "netstandard1.3": { "dependencies": { "System.Collections.Concurrent": "4.0.12-*", "System.Resources.Reader": "4.0.0-*" } } } } ## Instruction: Make System.Reflection.Extensions a netstandard dependency ## Code After: { "version": "1.1.0-*", "description": "Application localization services and default implementation based on ResourceManager to load localized assembly resources.", "packOptions": { "repository": { "type": "git", "url": "https://github.com/aspnet/localization" }, "tags": [ "localization" ] }, "buildOptions": { "warningsAsErrors": true, "keyFile": "../../tools/Key.snk", "nowarn": [ "CS1591" ], "xmlDoc": true }, "dependencies": { "Microsoft.AspNetCore.Hosting.Abstractions": "1.1.0-*", "Microsoft.Extensions.DependencyInjection.Abstractions": "1.1.0-*", "Microsoft.Extensions.Localization.Abstractions": "1.1.0-*", "Microsoft.Extensions.Options": "1.1.0-*" }, "frameworks": { "net451": {}, "netstandard1.3": { "dependencies": { "System.Collections.Concurrent": "4.0.12-*", "System.Reflection.Extensions": "4.0.1-*", "System.Resources.Reader": "4.0.0-*" } } } }
{ "version": "1.1.0-*", "description": "Application localization services and default implementation based on ResourceManager to load localized assembly resources.", "packOptions": { "repository": { "type": "git", "url": "https://github.com/aspnet/localization" }, "tags": [ "localization" ] }, "buildOptions": { "warningsAsErrors": true, "keyFile": "../../tools/Key.snk", "nowarn": [ "CS1591" ], "xmlDoc": true }, "dependencies": { "Microsoft.AspNetCore.Hosting.Abstractions": "1.1.0-*", "Microsoft.Extensions.DependencyInjection.Abstractions": "1.1.0-*", "Microsoft.Extensions.Localization.Abstractions": "1.1.0-*", - "Microsoft.Extensions.Options": "1.1.0-*", ? - + "Microsoft.Extensions.Options": "1.1.0-*" - "System.Reflection.Extensions": "4.0.1-*" }, "frameworks": { "net451": {}, "netstandard1.3": { "dependencies": { "System.Collections.Concurrent": "4.0.12-*", + "System.Reflection.Extensions": "4.0.1-*", "System.Resources.Reader": "4.0.0-*" } } } }
4
0.108108
2
2
e35dc3e5f55d377c54143efec9f3d49eceb454cd
layers/+tools/fzf/packages.vim
layers/+tools/fzf/packages.vim
if get(g:, 'spacevim_enable_clap', 0) MP 'liuchengxu/vim-clap' elseif g:spacevim.gui && !has('terminal') MP 'Yggdroot/LeaderF' else if g:spacevim.speed_up_via_timer MP 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all', 'on': [] } MP 'junegunn/fzf.vim', { 'on': [] } call timer_start(700, 'spacevim#defer#fzf') else MP 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } MP 'junegunn/fzf.vim' endif endif
if get(g:, 'spacevim_enable_clap', 0) MP 'liuchengxu/vim-clap', { 'do': ':Clap install-binary!' } elseif g:spacevim.gui && !has('terminal') MP 'Yggdroot/LeaderF' else if g:spacevim.speed_up_via_timer MP 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all', 'on': [] } MP 'junegunn/fzf.vim', { 'on': [] } call timer_start(700, 'spacevim#defer#fzf') else MP 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } MP 'junegunn/fzf.vim' endif endif
Add post-install hook for vim-clap
Add post-install hook for vim-clap
VimL
mit
liuchengxu/space-vim,liuchengxu/space-vim
viml
## Code Before: if get(g:, 'spacevim_enable_clap', 0) MP 'liuchengxu/vim-clap' elseif g:spacevim.gui && !has('terminal') MP 'Yggdroot/LeaderF' else if g:spacevim.speed_up_via_timer MP 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all', 'on': [] } MP 'junegunn/fzf.vim', { 'on': [] } call timer_start(700, 'spacevim#defer#fzf') else MP 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } MP 'junegunn/fzf.vim' endif endif ## Instruction: Add post-install hook for vim-clap ## Code After: if get(g:, 'spacevim_enable_clap', 0) MP 'liuchengxu/vim-clap', { 'do': ':Clap install-binary!' } elseif g:spacevim.gui && !has('terminal') MP 'Yggdroot/LeaderF' else if g:spacevim.speed_up_via_timer MP 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all', 'on': [] } MP 'junegunn/fzf.vim', { 'on': [] } call timer_start(700, 'spacevim#defer#fzf') else MP 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } MP 'junegunn/fzf.vim' endif endif
if get(g:, 'spacevim_enable_clap', 0) - MP 'liuchengxu/vim-clap' + MP 'liuchengxu/vim-clap', { 'do': ':Clap install-binary!' } elseif g:spacevim.gui && !has('terminal') MP 'Yggdroot/LeaderF' else if g:spacevim.speed_up_via_timer MP 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all', 'on': [] } MP 'junegunn/fzf.vim', { 'on': [] } call timer_start(700, 'spacevim#defer#fzf') else MP 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } MP 'junegunn/fzf.vim' endif endif
2
0.142857
1
1
8a0c7cbcf62baa53a4edf6a3201aff273ec616f2
README.md
README.md
`consul` is an ansible role to install and manage consul services. ## Warning. This code is still in early development ## Overview This is an opinionated setup of consul. It deploys HAproxy with each consumer and use consul template. ``` +--------------+ | Consul UI | | Consul Server| | | +--------------+ (Consul Server) +----------------+ +--------------+ |HAproxy | | Consul(Agent)| |Consul(Agent) | | App(Producer)| |consul(template)| | | |App(Consumer) | | | +----------------+ +--------------+ (Consumer) (Producer) ``` Requirements ------------ - Developedon for Ansible 2.X but will be compatible with 1.9.x - Controller should have python-netaddr - Role Variables -------------- See defaults/main.yml License ------- MIT Contributors (sorted alphabetically on the first name) ------------------ * [Adham Helal](https://github.com/ahelal) Snippets ------- Some snippets of code was taken from various sources. We will try our best to list them
`consul` is an ansible role to install and manage consul services. ## Warning. This code is still in early development ## Overview This is an opinionated setup of consul. It deploys HAproxy with each consumer and use consul template. ``` +--------------+ | Consul UI | | Consul Server| | | +--------------+ (Consul Server) +----------------+ +--------------+ |HAproxy | | Consul(Agent)| |Consul(Agent) | | App(Producer)| |consul(template)| | | |App(Consumer) | | | +----------------+ +--------------+ (Consumer) (Producer) ``` Requirements ------------ - Developedon for Ansible 2.X but will be compatible with 1.9.x - Controller should have python-netaddr - Role Variables -------------- See defaults/main.yml caveat ------ - With ansible 1.9.x ipaddr used by ip_match will return strings instead of list. That will break the role if your using consul_network_autobind = true License ------- MIT Contributors (sorted alphabetically on the first name) ------------------ * [Adham Helal](https://github.com/ahelal) Snippets ------- Some snippets of code was taken from various sources. We will try our best to list them
Update consul warning for 1.9
Update consul warning for 1.9
Markdown
mit
hellofresh/ansible-consul,hellofresh/ansible-consul,hellofresh/ansible-consul
markdown
## Code Before: `consul` is an ansible role to install and manage consul services. ## Warning. This code is still in early development ## Overview This is an opinionated setup of consul. It deploys HAproxy with each consumer and use consul template. ``` +--------------+ | Consul UI | | Consul Server| | | +--------------+ (Consul Server) +----------------+ +--------------+ |HAproxy | | Consul(Agent)| |Consul(Agent) | | App(Producer)| |consul(template)| | | |App(Consumer) | | | +----------------+ +--------------+ (Consumer) (Producer) ``` Requirements ------------ - Developedon for Ansible 2.X but will be compatible with 1.9.x - Controller should have python-netaddr - Role Variables -------------- See defaults/main.yml License ------- MIT Contributors (sorted alphabetically on the first name) ------------------ * [Adham Helal](https://github.com/ahelal) Snippets ------- Some snippets of code was taken from various sources. We will try our best to list them ## Instruction: Update consul warning for 1.9 ## Code After: `consul` is an ansible role to install and manage consul services. ## Warning. This code is still in early development ## Overview This is an opinionated setup of consul. It deploys HAproxy with each consumer and use consul template. ``` +--------------+ | Consul UI | | Consul Server| | | +--------------+ (Consul Server) +----------------+ +--------------+ |HAproxy | | Consul(Agent)| |Consul(Agent) | | App(Producer)| |consul(template)| | | |App(Consumer) | | | +----------------+ +--------------+ (Consumer) (Producer) ``` Requirements ------------ - Developedon for Ansible 2.X but will be compatible with 1.9.x - Controller should have python-netaddr - Role Variables -------------- See defaults/main.yml caveat ------ - With ansible 1.9.x ipaddr used by ip_match will return strings instead of list. That will break the role if your using consul_network_autobind = true License ------- MIT Contributors (sorted alphabetically on the first name) ------------------ * [Adham Helal](https://github.com/ahelal) Snippets ------- Some snippets of code was taken from various sources. We will try our best to list them
`consul` is an ansible role to install and manage consul services. ## Warning. This code is still in early development ## Overview This is an opinionated setup of consul. It deploys HAproxy with each consumer and use consul template. ``` +--------------+ | Consul UI | | Consul Server| | | +--------------+ (Consul Server) +----------------+ +--------------+ |HAproxy | | Consul(Agent)| |Consul(Agent) | | App(Producer)| |consul(template)| | | |App(Consumer) | | | +----------------+ +--------------+ (Consumer) (Producer) ``` Requirements ------------ - Developedon for Ansible 2.X but will be compatible with 1.9.x - Controller should have python-netaddr - Role Variables -------------- See defaults/main.yml + caveat + ------ + - With ansible 1.9.x ipaddr used by ip_match will return strings instead of list. That will break the role if your using consul_network_autobind = true + License ------- MIT Contributors (sorted alphabetically on the first name) ------------------ * [Adham Helal](https://github.com/ahelal) Snippets ------- Some snippets of code was taken from various sources. We will try our best to list them
4
0.067797
4
0
8bf699de70d47aaa7a999a7cf286bdc11f232759
app/clients/dropbox/routes/createFolder.js
app/clients/dropbox/routes/createFolder.js
var createClient = require("../util/createClient"); module.exports = function(req, res, next) { if (req.unsavedAccount.full_access === false && !req.otherBlogsUseAppFolder) return next(); var client = createClient(req.unsavedAccount.access_token); client .filesCreateFolder({ path: "/" + req.blog.title, autorename: true }) .then(function(res) { req.unsavedAccount.folder = res.path_display; req.unsavedAccount.folder_id = res.id; next(); }) .catch(next); };
var createClient = require("../util/createClient"); module.exports = function(req, res, next) { if (req.unsavedAccount.full_access === false && !req.otherBlogsUseAppFolder) return next(); var client = createClient(req.unsavedAccount.access_token); var folder = req.blog.title; folder = folder.split("/").join(""); folder = folder.trim(); client .filesCreateFolder({ path: "/" + folder, autorename: true }) .then(function(res) { req.unsavedAccount.folder = res.path_display; req.unsavedAccount.folder_id = res.id; next(); }) .catch(next); };
Remove slashes from folder name
Remove slashes from folder name
JavaScript
cc0-1.0
davidmerfield/Blot,davidmerfield/Blot,davidmerfield/Blot,davidmerfield/Blot
javascript
## Code Before: var createClient = require("../util/createClient"); module.exports = function(req, res, next) { if (req.unsavedAccount.full_access === false && !req.otherBlogsUseAppFolder) return next(); var client = createClient(req.unsavedAccount.access_token); client .filesCreateFolder({ path: "/" + req.blog.title, autorename: true }) .then(function(res) { req.unsavedAccount.folder = res.path_display; req.unsavedAccount.folder_id = res.id; next(); }) .catch(next); }; ## Instruction: Remove slashes from folder name ## Code After: var createClient = require("../util/createClient"); module.exports = function(req, res, next) { if (req.unsavedAccount.full_access === false && !req.otherBlogsUseAppFolder) return next(); var client = createClient(req.unsavedAccount.access_token); var folder = req.blog.title; folder = folder.split("/").join(""); folder = folder.trim(); client .filesCreateFolder({ path: "/" + folder, autorename: true }) .then(function(res) { req.unsavedAccount.folder = res.path_display; req.unsavedAccount.folder_id = res.id; next(); }) .catch(next); };
var createClient = require("../util/createClient"); module.exports = function(req, res, next) { if (req.unsavedAccount.full_access === false && !req.otherBlogsUseAppFolder) return next(); var client = createClient(req.unsavedAccount.access_token); + var folder = req.blog.title; + + folder = folder.split("/").join(""); + folder = folder.trim(); client - .filesCreateFolder({ path: "/" + req.blog.title, autorename: true }) ? ------------- + .filesCreateFolder({ path: "/" + folder, autorename: true }) ? +++++ .then(function(res) { req.unsavedAccount.folder = res.path_display; req.unsavedAccount.folder_id = res.id; next(); }) .catch(next); };
6
0.333333
5
1
bb155fcd914e96aff55c714fe9d16e98dd09cb49
gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/groupdashboard.html
gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/groupdashboard.html
{% extends "ndf/node_details_base.html" %} <!-- from django.contrib.auth.decorators import login_required --> {% block title %} Group Dashboard {% endblock %} {% block head %} <link href="/static/ndf/bower_components/slick-carousel/slick/slick.css" rel="stylesheet"> <script src="/static/ndf/bower_components/slick-carousel/slick/slick.min.js"> </script> {% endblock %} {% block body_content %} <script> $("body>*").remove(); </script> <div id="landing"> {% include "ndf/landing_page_beta.html" %} </div> <script> $("#landing").insertAfter("body"); </script> {% endblock %}
{% extends "ndf/node_details_base.html" %} <!-- from django.contrib.auth.decorators import login_required --> {% block title %} Group Dashboard {% endblock %} {% block head %} <link href="/static/ndf/bower_components/slick-carousel/slick/slick.css" rel="stylesheet"> <script src="/static/ndf/bower_components/slick-carousel/slick/slick.min.js"> </script> {% endblock %} {% block body_content %} <div id="landing"> {% include "ndf/landing_page_beta.html" %} </div> <script> $("#landing").prependTo("body").nextAll('*').remove();; </script> {% endblock %}
Fix landing page insert script
Fix landing page insert script
HTML
agpl-3.0
olympian94/gstudio,olympian94/gstudio,makfire/gstudio,AvadootNachankar/gstudio,supriyasawant/gstudio,AvadootNachankar/gstudio,gnowledge/gstudio,sunnychaudhari/gstudio,makfire/gstudio,AvadootNachankar/gstudio,gnowledge/gstudio,makfire/gstudio,Dhiru/gstudio,olympian94/gstudio,AvadootNachankar/gstudio,olympian94/gstudio,gnowledge/gstudio,supriyasawant/gstudio,sunnychaudhari/gstudio,sunnychaudhari/gstudio,makfire/gstudio,sunnychaudhari/gstudio,olympian94/gstudio,Dhiru/gstudio,gnowledge/gstudio,gnowledge/gstudio,olympian94/gstudio,Dhiru/gstudio,supriyasawant/gstudio,supriyasawant/gstudio,Dhiru/gstudio
html
## Code Before: {% extends "ndf/node_details_base.html" %} <!-- from django.contrib.auth.decorators import login_required --> {% block title %} Group Dashboard {% endblock %} {% block head %} <link href="/static/ndf/bower_components/slick-carousel/slick/slick.css" rel="stylesheet"> <script src="/static/ndf/bower_components/slick-carousel/slick/slick.min.js"> </script> {% endblock %} {% block body_content %} <script> $("body>*").remove(); </script> <div id="landing"> {% include "ndf/landing_page_beta.html" %} </div> <script> $("#landing").insertAfter("body"); </script> {% endblock %} ## Instruction: Fix landing page insert script ## Code After: {% extends "ndf/node_details_base.html" %} <!-- from django.contrib.auth.decorators import login_required --> {% block title %} Group Dashboard {% endblock %} {% block head %} <link href="/static/ndf/bower_components/slick-carousel/slick/slick.css" rel="stylesheet"> <script src="/static/ndf/bower_components/slick-carousel/slick/slick.min.js"> </script> {% endblock %} {% block body_content %} <div id="landing"> {% include "ndf/landing_page_beta.html" %} </div> <script> $("#landing").prependTo("body").nextAll('*').remove();; </script> {% endblock %}
{% extends "ndf/node_details_base.html" %} <!-- from django.contrib.auth.decorators import login_required --> {% block title %} Group Dashboard {% endblock %} {% block head %} <link href="/static/ndf/bower_components/slick-carousel/slick/slick.css" rel="stylesheet"> <script src="/static/ndf/bower_components/slick-carousel/slick/slick.min.js"> </script> {% endblock %} {% block body_content %} - <script> - $("body>*").remove(); - - </script> <div id="landing"> {% include "ndf/landing_page_beta.html" %} </div> <script> - $("#landing").insertAfter("body"); + $("#landing").prependTo("body").nextAll('*').remove();; </script> {% endblock %}
6
0.193548
1
5
15acdc405cb9521ab3bf5c87345790ee850fc265
CuratedContent/WorkingEffectivelyWithLegacyCode.md
CuratedContent/WorkingEffectivelyWithLegacyCode.md
This is really the book that gives one hope that we can take very bad software and through targeted incremental unit testing and refactoring, can turn it into good software while implementing and delivering new functionality the whole time. This book is where the rubber meets the road combining unit testing and refactoring. If one reads the book "Refactoring" by Martin Fowler and one felt a little uneasy about how this would apply to large nasty software projects, then Working Effectively with Legacy Code is the book to read. What’s more, Michael mentions and reviews many of the object-oriented principles in Agile Software Development as well as other little bits of information that one would find in other great books about software development. One can view this book as the logical culmination of the books "Refactoring" and "Test Driven Development" (TDD). This book is packed with practical examples that show nearly every trick there is for refactoring nasty code to break dependencies and getting code into a unit test harness. By the time one is done reading this book if one is not convinced of the need for unit testing and TDD, then one likely should not be developing software. #### Contributed by [Roscoe A. Bartlett](https://github.com/bartlettroscoe) #### Publication date: March 28, 2019 <!--- Publish: yes Categories: development, reliability, skills Topics: refactoring, design, software engineering, testing, Personal productivity and sustainability Tags: book Level: 2 Prerequisites: defaults Aggregate: none --->
This is really the book that gives one hope that we can take very bad software and through targeted incremental unit testing and refactoring, can turn it into good software while implementing and delivering new functionality the whole time. This book is where the rubber meets the road combining unit testing and refactoring. If one reads the book "Refactoring" by Martin Fowler and one felt a little uneasy about how this would apply to large nasty software projects, then Working Effectively with Legacy Code is the book to read. What’s more, Michael mentions and reviews many of the object-oriented principles in Agile Software Development as well as other little bits of information that one would find in other great books about software development. One can view this book as the logical culmination of the books "Refactoring" and "Test Driven Development" (TDD). This book is packed with practical examples that show nearly every trick there is for refactoring nasty code to break dependencies and getting code into a unit test harness. By the time one is done reading this book if one is not convinced of the need for unit testing and TDD, then one likely should not be developing software. #### Contributed by [Roscoe A. Bartlett](https://github.com/bartlettroscoe) #### Publication date: March 28, 2019 <!--- Publish: yes Categories: development, reliability, skills Topics: refactoring, design, software engineering, testing, Personal productivity and sustainability Tags: book Level: 2 Prerequisites: defaults Aggregate: none --->
Switch to one-line-per-sentance to make merges easier
Switch to one-line-per-sentance to make merges easier
Markdown
mit
betterscientificsoftware/betterscientificsoftware.github.io
markdown
## Code Before: This is really the book that gives one hope that we can take very bad software and through targeted incremental unit testing and refactoring, can turn it into good software while implementing and delivering new functionality the whole time. This book is where the rubber meets the road combining unit testing and refactoring. If one reads the book "Refactoring" by Martin Fowler and one felt a little uneasy about how this would apply to large nasty software projects, then Working Effectively with Legacy Code is the book to read. What’s more, Michael mentions and reviews many of the object-oriented principles in Agile Software Development as well as other little bits of information that one would find in other great books about software development. One can view this book as the logical culmination of the books "Refactoring" and "Test Driven Development" (TDD). This book is packed with practical examples that show nearly every trick there is for refactoring nasty code to break dependencies and getting code into a unit test harness. By the time one is done reading this book if one is not convinced of the need for unit testing and TDD, then one likely should not be developing software. #### Contributed by [Roscoe A. Bartlett](https://github.com/bartlettroscoe) #### Publication date: March 28, 2019 <!--- Publish: yes Categories: development, reliability, skills Topics: refactoring, design, software engineering, testing, Personal productivity and sustainability Tags: book Level: 2 Prerequisites: defaults Aggregate: none ---> ## Instruction: Switch to one-line-per-sentance to make merges easier ## Code After: This is really the book that gives one hope that we can take very bad software and through targeted incremental unit testing and refactoring, can turn it into good software while implementing and delivering new functionality the whole time. This book is where the rubber meets the road combining unit testing and refactoring. If one reads the book "Refactoring" by Martin Fowler and one felt a little uneasy about how this would apply to large nasty software projects, then Working Effectively with Legacy Code is the book to read. What’s more, Michael mentions and reviews many of the object-oriented principles in Agile Software Development as well as other little bits of information that one would find in other great books about software development. One can view this book as the logical culmination of the books "Refactoring" and "Test Driven Development" (TDD). This book is packed with practical examples that show nearly every trick there is for refactoring nasty code to break dependencies and getting code into a unit test harness. By the time one is done reading this book if one is not convinced of the need for unit testing and TDD, then one likely should not be developing software. #### Contributed by [Roscoe A. Bartlett](https://github.com/bartlettroscoe) #### Publication date: March 28, 2019 <!--- Publish: yes Categories: development, reliability, skills Topics: refactoring, design, software engineering, testing, Personal productivity and sustainability Tags: book Level: 2 Prerequisites: defaults Aggregate: none --->
+ This is really the book that gives one hope that we can take very bad software and through targeted incremental unit testing and refactoring, can turn it into good software while implementing and delivering new functionality the whole time. - This is really the book that gives one hope that we can take very bad software - and through targeted incremental unit testing and refactoring, can turn it - into good software while implementing and delivering new functionality the - whole time. This book is where the rubber meets the road combining unit ? ------------ + This book is where the rubber meets the road combining unit testing and refactoring. ? +++++++++++++++++++++++++ + If one reads the book "Refactoring" by Martin Fowler and one felt a little uneasy about how this would apply to large nasty software projects, then Working Effectively with Legacy Code is the book to read. + What’s more, Michael mentions and reviews many of the object-oriented principles in Agile Software Development as well as other little bits of information that one would find in other great books about software development. + One can view this book as the logical culmination of the books "Refactoring" and "Test Driven Development" (TDD). + This book is packed with practical examples that show nearly every trick there is for refactoring nasty code to break dependencies and getting code into a unit test harness. + By the time one is done reading this book if one is not convinced of the need for unit testing and TDD, then one likely should not be developing software. - testing and refactoring. If one reads the book "Refactoring" by Martin Fowler - and one felt a little uneasy about how this would apply to large nasty - software projects, then Working Effectively with Legacy Code is the book to - read. What’s more, Michael mentions and reviews many of the object-oriented - principles in Agile Software Development as well as other little bits of - information that one would find in other great books about software - development. One can view this book as the logical culmination of the books - "Refactoring" and "Test Driven Development" (TDD). This book is packed with - practical examples that show nearly every trick there is for refactoring nasty - code to break dependencies and getting code into a unit test harness. By the - time one is done reading this book if one is not convinced of the need for - unit testing and TDD, then one likely should not be developing software. #### Contributed by [Roscoe A. Bartlett](https://github.com/bartlettroscoe) #### Publication date: March 28, 2019 <!--- Publish: yes Categories: development, reliability, skills Topics: refactoring, design, software engineering, testing, Personal productivity and sustainability Tags: book Level: 2 Prerequisites: defaults Aggregate: none --->
23
0.741935
7
16
20c5ee64d8fba3aeec86179514b98ecebda42e0c
README.md
README.md
Master | Coverage | NuGet ------ | -------- | ----- ![GitHub Actions](https://shields-staging-pr-3913.herokuapp.com/github/actions/InfiniteSoul/Azuria/master?style=for-the-badge) | [![codecov](https://img.shields.io/codecov/c/github/InfiniteSoul/Azuria?style=for-the-badge)](https://codecov.io/gh/InfiniteSoul/Azuria) | [![NuGet](https://img.shields.io/nuget/v/Azuria.svg?style=for-the-badge)](https://www.nuget.org/packages/Azuria) --- # Currently not maintained and out of date
Master | Coverage | NuGet ------ | -------- | ----- ![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/InfiniteSoul/Azuria/Build and Test Library/master?style=for-the-badge) | [![codecov](https://img.shields.io/codecov/c/github/InfiniteSoul/Azuria?style=for-the-badge)](https://codecov.io/gh/InfiniteSoul/Azuria) | [![NuGet](https://img.shields.io/nuget/v/Azuria.svg?style=for-the-badge)](https://www.nuget.org/packages/Azuria) --- # Currently not maintained and out of date
Fix badge for GitHub Actions
Fix badge for GitHub Actions
Markdown
mit
InfiniteSoul/Azuria
markdown
## Code Before: Master | Coverage | NuGet ------ | -------- | ----- ![GitHub Actions](https://shields-staging-pr-3913.herokuapp.com/github/actions/InfiniteSoul/Azuria/master?style=for-the-badge) | [![codecov](https://img.shields.io/codecov/c/github/InfiniteSoul/Azuria?style=for-the-badge)](https://codecov.io/gh/InfiniteSoul/Azuria) | [![NuGet](https://img.shields.io/nuget/v/Azuria.svg?style=for-the-badge)](https://www.nuget.org/packages/Azuria) --- # Currently not maintained and out of date ## Instruction: Fix badge for GitHub Actions ## Code After: Master | Coverage | NuGet ------ | -------- | ----- ![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/InfiniteSoul/Azuria/Build and Test Library/master?style=for-the-badge) | [![codecov](https://img.shields.io/codecov/c/github/InfiniteSoul/Azuria?style=for-the-badge)](https://codecov.io/gh/InfiniteSoul/Azuria) | [![NuGet](https://img.shields.io/nuget/v/Azuria.svg?style=for-the-badge)](https://www.nuget.org/packages/Azuria) --- # Currently not maintained and out of date
Master | Coverage | NuGet ------ | -------- | ----- - ![GitHub Actions](https://shields-staging-pr-3913.herokuapp.com/github/actions/InfiniteSoul/Azuria/master?style=for-the-badge) | [![codecov](https://img.shields.io/codecov/c/github/InfiniteSoul/Azuria?style=for-the-badge)](https://codecov.io/gh/InfiniteSoul/Azuria) | [![NuGet](https://img.shields.io/nuget/v/Azuria.svg?style=for-the-badge)](https://www.nuget.org/packages/Azuria) ? ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ + ![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/InfiniteSoul/Azuria/Build and Test Library/master?style=for-the-badge) | [![codecov](https://img.shields.io/codecov/c/github/InfiniteSoul/Azuria?style=for-the-badge)](https://codecov.io/gh/InfiniteSoul/Azuria) | [![NuGet](https://img.shields.io/nuget/v/Azuria.svg?style=for-the-badge)](https://www.nuget.org/packages/Azuria) ? ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ +++++++++++++++++++++++ --- # Currently not maintained and out of date
2
0.25
1
1
f8d75ca77301e843580737903b613a54ac5fc2e5
ManifoldTests/ListTests.swift
ManifoldTests/ListTests.swift
// Copyright © 2015 Rob Rix. All rights reserved. final class ListTests: XCTestCase { func testListTypechecks() { let kind = Expression<Term>.Variable("List").typecheck(Expression.list.context) assert(kind.left, ==, nil) } } import Assertions @testable import Manifold import XCTest
// Copyright © 2015 Rob Rix. All rights reserved. final class ListTests: XCTestCase { func testListTypechecksAsAHigherOrderType() { let kind = Expression<Term>.Variable("List").typecheck(Expression.list.context) assert(kind.left, ==, nil) assert(kind.right, ==, Expression<Term>.lambda(.Type(0), const(.Type(0)))) } } import Assertions @testable import Manifold import Prelude import XCTest
Test that List typechecks as a function from type to type.
Test that List typechecks as a function from type to type.
Swift
mit
antitypical/Manifold,antitypical/Manifold
swift
## Code Before: // Copyright © 2015 Rob Rix. All rights reserved. final class ListTests: XCTestCase { func testListTypechecks() { let kind = Expression<Term>.Variable("List").typecheck(Expression.list.context) assert(kind.left, ==, nil) } } import Assertions @testable import Manifold import XCTest ## Instruction: Test that List typechecks as a function from type to type. ## Code After: // Copyright © 2015 Rob Rix. All rights reserved. final class ListTests: XCTestCase { func testListTypechecksAsAHigherOrderType() { let kind = Expression<Term>.Variable("List").typecheck(Expression.list.context) assert(kind.left, ==, nil) assert(kind.right, ==, Expression<Term>.lambda(.Type(0), const(.Type(0)))) } } import Assertions @testable import Manifold import Prelude import XCTest
// Copyright © 2015 Rob Rix. All rights reserved. final class ListTests: XCTestCase { - func testListTypechecks() { + func testListTypechecksAsAHigherOrderType() { ? ++++++++++++++++++ let kind = Expression<Term>.Variable("List").typecheck(Expression.list.context) assert(kind.left, ==, nil) + assert(kind.right, ==, Expression<Term>.lambda(.Type(0), const(.Type(0)))) } } import Assertions @testable import Manifold + import Prelude import XCTest
4
0.333333
3
1
642e488a3ed9705fc2fb3a53973a591fbfc24a97
src/main/java/amu/zhcet/CoreApplication.java
src/main/java/amu/zhcet/CoreApplication.java
package amu.zhcet; import amu.zhcet.email.EmailProperties; import amu.zhcet.firebase.FirebaseProperties; import amu.zhcet.security.SecureProperties; import amu.zhcet.storage.StorageProperties; import io.sentry.Sentry; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.boot.web.servlet.FilterRegistrationBean; import org.springframework.context.annotation.Bean; import org.springframework.data.jpa.datatables.repository.DataTablesRepositoryFactoryBean; import org.springframework.data.jpa.repository.config.EnableJpaRepositories; import org.springframework.web.servlet.resource.ResourceUrlEncodingFilter; import javax.servlet.DispatcherType; @SpringBootApplication @EnableJpaRepositories(repositoryFactoryBeanClass = DataTablesRepositoryFactoryBean.class) @EnableConfigurationProperties({ApplicationProperties.class, SecureProperties.class, EmailProperties.class, StorageProperties.class, FirebaseProperties.class}) public class CoreApplication { public static void main(String[] args) { Sentry.init(); SpringApplication.run(CoreApplication.class, args); } }
package amu.zhcet; import amu.zhcet.email.EmailProperties; import amu.zhcet.firebase.FirebaseProperties; import amu.zhcet.security.SecureProperties; import amu.zhcet.storage.StorageProperties; import io.sentry.Sentry; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.boot.web.servlet.FilterRegistrationBean; import org.springframework.context.annotation.Bean; import org.springframework.data.jpa.datatables.repository.DataTablesRepositoryFactoryBean; import org.springframework.data.jpa.repository.config.EnableJpaRepositories; import org.springframework.data.repository.config.BootstrapMode; import org.springframework.web.servlet.resource.ResourceUrlEncodingFilter; import javax.servlet.DispatcherType; @SpringBootApplication @EnableJpaRepositories( repositoryFactoryBeanClass = DataTablesRepositoryFactoryBean.class, bootstrapMode = BootstrapMode.DEFERRED) @EnableConfigurationProperties({ApplicationProperties.class, SecureProperties.class, EmailProperties.class, StorageProperties.class, FirebaseProperties.class}) public class CoreApplication { public static void main(String[] args) { Sentry.init(); SpringApplication.run(CoreApplication.class, args); } }
Enable deferred bootstrap mode for JPA
feat: Enable deferred bootstrap mode for JPA Fixes #250
Java
apache-2.0
zhcet-amu/zhcet-web,zhcet-amu/zhcet-web,zhcet-amu/zhcet-web,zhcet-amu/zhcet-web,zhcet-amu/zhcet-web
java
## Code Before: package amu.zhcet; import amu.zhcet.email.EmailProperties; import amu.zhcet.firebase.FirebaseProperties; import amu.zhcet.security.SecureProperties; import amu.zhcet.storage.StorageProperties; import io.sentry.Sentry; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.boot.web.servlet.FilterRegistrationBean; import org.springframework.context.annotation.Bean; import org.springframework.data.jpa.datatables.repository.DataTablesRepositoryFactoryBean; import org.springframework.data.jpa.repository.config.EnableJpaRepositories; import org.springframework.web.servlet.resource.ResourceUrlEncodingFilter; import javax.servlet.DispatcherType; @SpringBootApplication @EnableJpaRepositories(repositoryFactoryBeanClass = DataTablesRepositoryFactoryBean.class) @EnableConfigurationProperties({ApplicationProperties.class, SecureProperties.class, EmailProperties.class, StorageProperties.class, FirebaseProperties.class}) public class CoreApplication { public static void main(String[] args) { Sentry.init(); SpringApplication.run(CoreApplication.class, args); } } ## Instruction: feat: Enable deferred bootstrap mode for JPA Fixes #250 ## Code After: package amu.zhcet; import amu.zhcet.email.EmailProperties; import amu.zhcet.firebase.FirebaseProperties; import amu.zhcet.security.SecureProperties; import amu.zhcet.storage.StorageProperties; import io.sentry.Sentry; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.boot.web.servlet.FilterRegistrationBean; import org.springframework.context.annotation.Bean; import org.springframework.data.jpa.datatables.repository.DataTablesRepositoryFactoryBean; import org.springframework.data.jpa.repository.config.EnableJpaRepositories; import org.springframework.data.repository.config.BootstrapMode; import org.springframework.web.servlet.resource.ResourceUrlEncodingFilter; import javax.servlet.DispatcherType; @SpringBootApplication @EnableJpaRepositories( repositoryFactoryBeanClass = DataTablesRepositoryFactoryBean.class, bootstrapMode = BootstrapMode.DEFERRED) @EnableConfigurationProperties({ApplicationProperties.class, SecureProperties.class, EmailProperties.class, StorageProperties.class, FirebaseProperties.class}) public class CoreApplication { public static void main(String[] args) { Sentry.init(); SpringApplication.run(CoreApplication.class, args); } }
package amu.zhcet; import amu.zhcet.email.EmailProperties; import amu.zhcet.firebase.FirebaseProperties; import amu.zhcet.security.SecureProperties; import amu.zhcet.storage.StorageProperties; import io.sentry.Sentry; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.boot.web.servlet.FilterRegistrationBean; import org.springframework.context.annotation.Bean; import org.springframework.data.jpa.datatables.repository.DataTablesRepositoryFactoryBean; import org.springframework.data.jpa.repository.config.EnableJpaRepositories; + import org.springframework.data.repository.config.BootstrapMode; import org.springframework.web.servlet.resource.ResourceUrlEncodingFilter; import javax.servlet.DispatcherType; @SpringBootApplication + @EnableJpaRepositories( - @EnableJpaRepositories(repositoryFactoryBeanClass = DataTablesRepositoryFactoryBean.class) ? ^^^^^^^^^^^^^^^^^^^^^^^ ^ + repositoryFactoryBeanClass = DataTablesRepositoryFactoryBean.class, ? ^^^^^^^^ ^ + bootstrapMode = BootstrapMode.DEFERRED) @EnableConfigurationProperties({ApplicationProperties.class, SecureProperties.class, EmailProperties.class, StorageProperties.class, FirebaseProperties.class}) public class CoreApplication { public static void main(String[] args) { Sentry.init(); SpringApplication.run(CoreApplication.class, args); } }
5
0.166667
4
1
6da312036cd3f10efae60858de8e4be5f5e16439
simple-redux/src/store/simpleStore.js
simple-redux/src/store/simpleStore.js
'use strict'; import counterReducer from '../reducers/counterReducer'; import simpleActionCreator from '../actions/simpleActionCreators'; function createStore( reducer, initialState ) { let state = initialState; let subscribers = [ ]; function dispatch( action ) { state = reducer( state, action ); subscribers.forEach( subscriber => subscriber() ); } function getState() { return state; } function subscribe( callback ) { subscribers.push( callback ); } return { dispatch, getState, subscribe }; } let startingValue = 0; let incrementAction = simpleActionCreator.increment(); let store = createStore( counterReducer, startingValue ); console.log( store.getState() ); store.dispatch( incrementAction ); console.log( store.getState() ); store.dispatch( incrementAction ); console.log( store.getState() ); store.dispatch( incrementAction ); console.log( store.getState() );
'use strict'; import counterReducer from '../reducers/counterReducer'; import simpleActionCreator from '../actions/simpleActionCreators'; function createStore( reducer, initialState ) { let state = initialState; let subscribers = [ ]; function dispatch( action ) { state = reducer( state, action ); subscribers.forEach( subscriber => subscriber() ); } function getState() { return state; } function subscribe( callback ) { subscribers.push( callback ); } return { dispatch, getState, subscribe }; } let startingValue = 0; let incrementAction = simpleActionCreator.increment(); let store = createStore( counterReducer, startingValue ); store.subscribe( () => { console.log( 'State: ' + store.getState() ); } ); store.dispatch( incrementAction ); store.dispatch( incrementAction ); store.dispatch( incrementAction );
Add simple test for store 'subscribe' function
Add simple test for store 'subscribe' function
JavaScript
bsd-3-clause
philgs/redux-games-testbed,philgs/redux-games-testbed
javascript
## Code Before: 'use strict'; import counterReducer from '../reducers/counterReducer'; import simpleActionCreator from '../actions/simpleActionCreators'; function createStore( reducer, initialState ) { let state = initialState; let subscribers = [ ]; function dispatch( action ) { state = reducer( state, action ); subscribers.forEach( subscriber => subscriber() ); } function getState() { return state; } function subscribe( callback ) { subscribers.push( callback ); } return { dispatch, getState, subscribe }; } let startingValue = 0; let incrementAction = simpleActionCreator.increment(); let store = createStore( counterReducer, startingValue ); console.log( store.getState() ); store.dispatch( incrementAction ); console.log( store.getState() ); store.dispatch( incrementAction ); console.log( store.getState() ); store.dispatch( incrementAction ); console.log( store.getState() ); ## Instruction: Add simple test for store 'subscribe' function ## Code After: 'use strict'; import counterReducer from '../reducers/counterReducer'; import simpleActionCreator from '../actions/simpleActionCreators'; function createStore( reducer, initialState ) { let state = initialState; let subscribers = [ ]; function dispatch( action ) { state = reducer( state, action ); subscribers.forEach( subscriber => subscriber() ); } function getState() { return state; } function subscribe( callback ) { subscribers.push( callback ); } return { dispatch, getState, subscribe }; } let startingValue = 0; let incrementAction = simpleActionCreator.increment(); let store = createStore( counterReducer, startingValue ); store.subscribe( () => { console.log( 'State: ' + store.getState() ); } ); store.dispatch( incrementAction ); store.dispatch( incrementAction ); store.dispatch( incrementAction );
'use strict'; import counterReducer from '../reducers/counterReducer'; import simpleActionCreator from '../actions/simpleActionCreators'; function createStore( reducer, initialState ) { let state = initialState; let subscribers = [ ]; function dispatch( action ) { state = reducer( state, action ); subscribers.forEach( subscriber => subscriber() ); } function getState() { return state; } function subscribe( callback ) { subscribers.push( callback ); } return { dispatch, getState, subscribe }; } let startingValue = 0; let incrementAction = simpleActionCreator.increment(); let store = createStore( counterReducer, startingValue ); + store.subscribe( () => { - console.log( store.getState() ); + console.log( 'State: ' + store.getState() ); ? ++++ ++++++++++++ + } ); store.dispatch( incrementAction ); - console.log( store.getState() ); store.dispatch( incrementAction ); - console.log( store.getState() ); store.dispatch( incrementAction ); - console.log( store.getState() );
7
0.194444
3
4
d5b3d13df2748272755a4bfc7bc29d73a7111930
net/digitalbebop/JataSMART.java
net/digitalbebop/JataSMART.java
/** * Copyright © 2014 Will Dignazio * * Java implementation file for the JNI wrapper of libatasmart. * This provides an interface to produce SkDisk objects that are * synonymous with the SkDisk structures within the atasmart library. * * The underlying implementation code is compiled from a .c file(s), * the primary of which being jatasmart.c. * * @author Will Dignazio <wdignazio@gmail.com> */ package net.digitalbebop; public class JataSMART { /* One time initialize libatasmart */ static { System.loadLibrary("jatasmart"); } private class SkDisk { private long _skDiskAddr; private SkDisk() { } public native long getSize(); public native boolean isSMARTAvailable(); public native boolean isSleepMode(); public native boolean isIdentifyAvailabe(); public native boolean getSMARTStatus(); public native long getPowerOn(); public native long getPowerCycle(); public native long getBadSectors(); public native long getTemperature(); public native String toString(); } public native SkDisk open(String path); }
/** * Copyright © 2014 Will Dignazio * * Java implementation file for the JNI wrapper of libatasmart. * This provides an interface to produce SkDisk objects that are * synonymous with the SkDisk structures within the atasmart library. * * The underlying implementation code is compiled from a .c file(s), * the primary of which being jatasmart.c. * * @author Will Dignazio <wdignazio@gmail.com> */ package net.digitalbebop; public class JataSMART { /* One time initialize libatasmart */ static { System.loadLibrary("jatasmart"); } private class SkDisk { private long _skDiskAddr; private SkDisk() { } public native long getSize(); public native boolean isSMARTAvailable(); public native boolean isSleepMode(); public native boolean isIdentifyAvailabe(); public native boolean getSMARTStatus(); public native long getPowerOn(); public native long getPowerCycle(); public native long getBadSectors(); public native long getTemperature(); public native String toString(); } /** * Open the given device, and produce an SkDisk object. * This creates a specialized SkDisk object using the underlying * JNI wrapper code, giving an interface to the libatasmart * library methods. * * The path given in this is expected to be a block device that * supports SMART. * * @param path Path to disk device * @return SkDisk SkDisk device interface object */ public native SkDisk open(String path); }
Add header docs for open
docs: Add header docs for open
Java
mit
WillDignazio/JataSMART,WillDignazio/JataSMART
java
## Code Before: /** * Copyright © 2014 Will Dignazio * * Java implementation file for the JNI wrapper of libatasmart. * This provides an interface to produce SkDisk objects that are * synonymous with the SkDisk structures within the atasmart library. * * The underlying implementation code is compiled from a .c file(s), * the primary of which being jatasmart.c. * * @author Will Dignazio <wdignazio@gmail.com> */ package net.digitalbebop; public class JataSMART { /* One time initialize libatasmart */ static { System.loadLibrary("jatasmart"); } private class SkDisk { private long _skDiskAddr; private SkDisk() { } public native long getSize(); public native boolean isSMARTAvailable(); public native boolean isSleepMode(); public native boolean isIdentifyAvailabe(); public native boolean getSMARTStatus(); public native long getPowerOn(); public native long getPowerCycle(); public native long getBadSectors(); public native long getTemperature(); public native String toString(); } public native SkDisk open(String path); } ## Instruction: docs: Add header docs for open ## Code After: /** * Copyright © 2014 Will Dignazio * * Java implementation file for the JNI wrapper of libatasmart. * This provides an interface to produce SkDisk objects that are * synonymous with the SkDisk structures within the atasmart library. * * The underlying implementation code is compiled from a .c file(s), * the primary of which being jatasmart.c. * * @author Will Dignazio <wdignazio@gmail.com> */ package net.digitalbebop; public class JataSMART { /* One time initialize libatasmart */ static { System.loadLibrary("jatasmart"); } private class SkDisk { private long _skDiskAddr; private SkDisk() { } public native long getSize(); public native boolean isSMARTAvailable(); public native boolean isSleepMode(); public native boolean isIdentifyAvailabe(); public native boolean getSMARTStatus(); public native long getPowerOn(); public native long getPowerCycle(); public native long getBadSectors(); public native long getTemperature(); public native String toString(); } /** * Open the given device, and produce an SkDisk object. * This creates a specialized SkDisk object using the underlying * JNI wrapper code, giving an interface to the libatasmart * library methods. * * The path given in this is expected to be a block device that * supports SMART. * * @param path Path to disk device * @return SkDisk SkDisk device interface object */ public native SkDisk open(String path); }
/** * Copyright © 2014 Will Dignazio * * Java implementation file for the JNI wrapper of libatasmart. * This provides an interface to produce SkDisk objects that are * synonymous with the SkDisk structures within the atasmart library. * * The underlying implementation code is compiled from a .c file(s), * the primary of which being jatasmart.c. * * @author Will Dignazio <wdignazio@gmail.com> */ package net.digitalbebop; public class JataSMART { /* One time initialize libatasmart */ static { System.loadLibrary("jatasmart"); } private class SkDisk { private long _skDiskAddr; private SkDisk() { } public native long getSize(); public native boolean isSMARTAvailable(); public native boolean isSleepMode(); public native boolean isIdentifyAvailabe(); public native boolean getSMARTStatus(); public native long getPowerOn(); public native long getPowerCycle(); public native long getBadSectors(); public native long getTemperature(); public native String toString(); } + /** + * Open the given device, and produce an SkDisk object. + * This creates a specialized SkDisk object using the underlying + * JNI wrapper code, giving an interface to the libatasmart + * library methods. + * + * The path given in this is expected to be a block device that + * supports SMART. + * + * @param path Path to disk device + * @return SkDisk SkDisk device interface object + */ public native SkDisk open(String path); }
12
0.26087
12
0
76695262bb78e0e62b302b06b8f4380ed72c1fc1
packages/le/lean-peano.yaml
packages/le/lean-peano.yaml
homepage: https://github.com/oisdk/lean-peano#readme changelog-type: markdown hash: 8ca0ffb805c579aad16193e483ff2a52495858a502cd666e157ce37b000cf73d test-bench-deps: base: -any hedgehog: -any doctest: -any base-compat: -any deepseq: -any QuickCheck: -any lean-peano: -any template-haskell: -any maintainer: mail@doisinkidney.com synopsis: '' changelog: | # Changelog for lean-peano ## Unreleased changes basic-deps: base: ! '>=4.7 && <5' deepseq: -any all-versions: - 0.1.0.0 - 0.1.0.1 - 0.1.1.0 author: Donnacha Oisín Kidney latest: 0.1.1.0 description-type: markdown description: | [![Hackage](https://img.shields.io/hackage/v/lean-peano.svg)](https://hackage.haskell.org/package/lean-peano) # lean-peano Implementation of peano numbers (with all relevant instances) with minimal dependencies. license-name: MIT
homepage: https://github.com/oisdk/lean-peano#readme changelog-type: markdown hash: 25083084da1f6d5d102018062e5bd513a90f13021f25fceaf7a6ee5fb4548901 test-bench-deps: base: ! '>=4.10.0.0 && <5' hedgehog: -any doctest: -any base-compat: -any deepseq: -any QuickCheck: -any lean-peano: -any template-haskell: -any maintainer: mail@doisinkidney.com synopsis: A maximally lazy, simple implementation of the Peano numbers with minimal dependencies changelog: | # Changelog for lean-peano ## Unreleased changes basic-deps: base: ! '>=4.10.0.0 && <5' deepseq: ! '>=1.1.0.0' all-versions: - 0.1.0.0 - 0.1.0.1 - 0.1.1.0 - 1.0.0.0 author: Donnacha Oisín Kidney latest: 1.0.0.0 description-type: markdown description: | [![Hackage](https://img.shields.io/hackage/v/lean-peano.svg)](https://hackage.haskell.org/package/lean-peano) # lean-peano Implementation of peano numbers (with all relevant instances) with minimal dependencies. license-name: MIT
Update from Hackage at 2020-03-02T22:32:48Z
Update from Hackage at 2020-03-02T22:32:48Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/oisdk/lean-peano#readme changelog-type: markdown hash: 8ca0ffb805c579aad16193e483ff2a52495858a502cd666e157ce37b000cf73d test-bench-deps: base: -any hedgehog: -any doctest: -any base-compat: -any deepseq: -any QuickCheck: -any lean-peano: -any template-haskell: -any maintainer: mail@doisinkidney.com synopsis: '' changelog: | # Changelog for lean-peano ## Unreleased changes basic-deps: base: ! '>=4.7 && <5' deepseq: -any all-versions: - 0.1.0.0 - 0.1.0.1 - 0.1.1.0 author: Donnacha Oisín Kidney latest: 0.1.1.0 description-type: markdown description: | [![Hackage](https://img.shields.io/hackage/v/lean-peano.svg)](https://hackage.haskell.org/package/lean-peano) # lean-peano Implementation of peano numbers (with all relevant instances) with minimal dependencies. license-name: MIT ## Instruction: Update from Hackage at 2020-03-02T22:32:48Z ## Code After: homepage: https://github.com/oisdk/lean-peano#readme changelog-type: markdown hash: 25083084da1f6d5d102018062e5bd513a90f13021f25fceaf7a6ee5fb4548901 test-bench-deps: base: ! '>=4.10.0.0 && <5' hedgehog: -any doctest: -any base-compat: -any deepseq: -any QuickCheck: -any lean-peano: -any template-haskell: -any maintainer: mail@doisinkidney.com synopsis: A maximally lazy, simple implementation of the Peano numbers with minimal dependencies changelog: | # Changelog for lean-peano ## Unreleased changes basic-deps: base: ! '>=4.10.0.0 && <5' deepseq: ! '>=1.1.0.0' all-versions: - 0.1.0.0 - 0.1.0.1 - 0.1.1.0 - 1.0.0.0 author: Donnacha Oisín Kidney latest: 1.0.0.0 description-type: markdown description: | [![Hackage](https://img.shields.io/hackage/v/lean-peano.svg)](https://hackage.haskell.org/package/lean-peano) # lean-peano Implementation of peano numbers (with all relevant instances) with minimal dependencies. license-name: MIT
homepage: https://github.com/oisdk/lean-peano#readme changelog-type: markdown - hash: 8ca0ffb805c579aad16193e483ff2a52495858a502cd666e157ce37b000cf73d + hash: 25083084da1f6d5d102018062e5bd513a90f13021f25fceaf7a6ee5fb4548901 test-bench-deps: - base: -any + base: ! '>=4.10.0.0 && <5' hedgehog: -any doctest: -any base-compat: -any deepseq: -any QuickCheck: -any lean-peano: -any template-haskell: -any maintainer: mail@doisinkidney.com - synopsis: '' + synopsis: A maximally lazy, simple implementation of the Peano numbers with minimal + dependencies changelog: | # Changelog for lean-peano ## Unreleased changes basic-deps: - base: ! '>=4.7 && <5' ? ^ + base: ! '>=4.10.0.0 && <5' ? ^^^^^^ - deepseq: -any + deepseq: ! '>=1.1.0.0' all-versions: - 0.1.0.0 - 0.1.0.1 - 0.1.1.0 + - 1.0.0.0 author: Donnacha Oisín Kidney - latest: 0.1.1.0 + latest: 1.0.0.0 description-type: markdown description: | [![Hackage](https://img.shields.io/hackage/v/lean-peano.svg)](https://hackage.haskell.org/package/lean-peano) # lean-peano Implementation of peano numbers (with all relevant instances) with minimal dependencies. license-name: MIT
14
0.4
8
6
207b2307b95303d032cfe9f8ac527f3765b1b3ee
components/comment/widget/widget.styl
components/comment/widget/widget.styl
.comment-widget &-thread margin-bottom: $line-height-computed * 2 &-translate-btn margin-bottom: $line-height-computed * 2 margin-left: 100px &-translating &-comments opacity: 0.5 .translate-button-branding font-weight: normal font-size: $font-size-tiny text-transform: none display: block @media $media-sm-up display: inline margin-left: 20px
.comment-widget &-thread margin-bottom: $line-height-computed * 2 &-translate-btn margin-bottom: $line-height-computed * 2 @media $media-sm-up margin-left: 100px &-translating &-comments opacity: 0.5 .translate-button-branding font-weight: normal font-size: $font-size-tiny text-transform: none display: block @media $media-sm-up display: inline margin-left: 20px
Fix styling of comment translation button for mobile.
Fix styling of comment translation button for mobile.
Stylus
mit
gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib
stylus
## Code Before: .comment-widget &-thread margin-bottom: $line-height-computed * 2 &-translate-btn margin-bottom: $line-height-computed * 2 margin-left: 100px &-translating &-comments opacity: 0.5 .translate-button-branding font-weight: normal font-size: $font-size-tiny text-transform: none display: block @media $media-sm-up display: inline margin-left: 20px ## Instruction: Fix styling of comment translation button for mobile. ## Code After: .comment-widget &-thread margin-bottom: $line-height-computed * 2 &-translate-btn margin-bottom: $line-height-computed * 2 @media $media-sm-up margin-left: 100px &-translating &-comments opacity: 0.5 .translate-button-branding font-weight: normal font-size: $font-size-tiny text-transform: none display: block @media $media-sm-up display: inline margin-left: 20px
.comment-widget &-thread margin-bottom: $line-height-computed * 2 &-translate-btn margin-bottom: $line-height-computed * 2 + + @media $media-sm-up - margin-left: 100px + margin-left: 100px ? + &-translating &-comments opacity: 0.5 .translate-button-branding font-weight: normal font-size: $font-size-tiny text-transform: none display: block @media $media-sm-up display: inline margin-left: 20px
4
0.190476
3
1
a664f6516a1d90147c84d64eaacea8d799b00e83
src/Renamer.h
src/Renamer.h
using namespace std; struct SourceId { bool isMethod; // otherwise, field string className; string name; bool operator < (SourceId const& other) const { if(isMethod < other.isMethod) return true; if(className < other.className) return true; if(name < other.name) return true; return false; } }; extern map<string, string> classRemap; extern map<SourceId, string> memberRemap; void doRenamings(ClassFile& class_);
using namespace std; struct SourceId { bool isMethod; // otherwise, field string className; string name; bool operator < (SourceId const& other) const { if(isMethod < other.isMethod) return true; if(isMethod > other.isMethod) return false; if(className < other.className) return true; if(className > other.className) return false; return name < other.name; } }; extern map<string, string> classRemap; extern map<SourceId, string> memberRemap; void doRenamings(ClassFile& class_);
Fix implementation of '<' operator
Fix implementation of '<' operator
C
agpl-3.0
Ace17/jaremap,Ace17/jaremap,Ace17/jaremap,Ace17/jaremap
c
## Code Before: using namespace std; struct SourceId { bool isMethod; // otherwise, field string className; string name; bool operator < (SourceId const& other) const { if(isMethod < other.isMethod) return true; if(className < other.className) return true; if(name < other.name) return true; return false; } }; extern map<string, string> classRemap; extern map<SourceId, string> memberRemap; void doRenamings(ClassFile& class_); ## Instruction: Fix implementation of '<' operator ## Code After: using namespace std; struct SourceId { bool isMethod; // otherwise, field string className; string name; bool operator < (SourceId const& other) const { if(isMethod < other.isMethod) return true; if(isMethod > other.isMethod) return false; if(className < other.className) return true; if(className > other.className) return false; return name < other.name; } }; extern map<string, string> classRemap; extern map<SourceId, string> memberRemap; void doRenamings(ClassFile& class_);
using namespace std; struct SourceId { bool isMethod; // otherwise, field string className; string name; bool operator < (SourceId const& other) const { if(isMethod < other.isMethod) return true; + if(isMethod > other.isMethod) + return false; + if(className < other.className) return true; - if(name < other.name) + if(className > other.className) - return true; ? ^^^ + return false; ? ^^^^ - return false; + return name < other.name; } }; extern map<string, string> classRemap; extern map<SourceId, string> memberRemap; void doRenamings(ClassFile& class_);
9
0.310345
6
3
b6cad45fe92481455255d4fc08967574c19883ba
app/controllers/event_streams_controller.rb
app/controllers/event_streams_controller.rb
class EventStreamsController < ApplicationController def show render json: EventStream.connection_info(params[:id]).to_json end end
class EventStreamsController < ApplicationController before_action :authenticate_user! def show pp = PaperPolicy.new(params[:id], current_user) if pp.paper render json: EventStream.connection_info(params[:id]).to_json else head :forbidden end end end
Add some untested basic auth to streams controller
Add some untested basic auth to streams controller
Ruby
mit
johan--/tahi,johan--/tahi,johan--/tahi,johan--/tahi
ruby
## Code Before: class EventStreamsController < ApplicationController def show render json: EventStream.connection_info(params[:id]).to_json end end ## Instruction: Add some untested basic auth to streams controller ## Code After: class EventStreamsController < ApplicationController before_action :authenticate_user! def show pp = PaperPolicy.new(params[:id], current_user) if pp.paper render json: EventStream.connection_info(params[:id]).to_json else head :forbidden end end end
class EventStreamsController < ApplicationController + before_action :authenticate_user! def show + pp = PaperPolicy.new(params[:id], current_user) + if pp.paper - render json: EventStream.connection_info(params[:id]).to_json + render json: EventStream.connection_info(params[:id]).to_json ? ++ + else + head :forbidden + end end end
8
1.6
7
1
26f12556d6efdca7609b133e484666d915c2693f
README.md
README.md
jenkins-swarm-builder-packer ==================== Docker image with Jenkins Swarm client and [Packer](packer.io) installed. Designed to handle running packer build jobs from Jenkins. Docker is installed in the image to allow Packer to build docker images. Docker and Jenkins Swarm client are managed by supervisord. Based on the [Jenkins Swarm Worker image](https://github.com/carlossg/jenkins-swarm-slave-docker). Using wrapdocker script from [jpetazzo](https://github.com/jpetazzo/dind/blob/master/wrapdocker)
jenkins-swarm-builder-packer ==================== # This repository is now deprecated For up-to-date instructions checkout: - [Jenkins on Container Engine Best Practices](https://cloud.google.com/solutions/jenkins-on-container-engine) - [Jenkins on Container Engine Tutorial](https://cloud.google.com/solutions/jenkins-on-container-engine-tutorial) - [Customizing Jenkins agent Docker image](https://cloud.google.com/solutions/jenkins-on-container-engine#customizing_the_docker_image) # This repository is now deprecated Docker image with Jenkins Swarm client and [Packer](packer.io) installed. Designed to handle running packer build jobs from Jenkins. Docker is installed in the image to allow Packer to build docker images. Docker and Jenkins Swarm client are managed by supervisord. Based on the [Jenkins Swarm Worker image](https://github.com/carlossg/jenkins-swarm-slave-docker). Using wrapdocker script from [jpetazzo](https://github.com/jpetazzo/dind/blob/master/wrapdocker)
Set deprecation message, point to updated instructions
Set deprecation message, point to updated instructions
Markdown
apache-2.0
GoogleCloudPlatform/jenkins-packer-agent
markdown
## Code Before: jenkins-swarm-builder-packer ==================== Docker image with Jenkins Swarm client and [Packer](packer.io) installed. Designed to handle running packer build jobs from Jenkins. Docker is installed in the image to allow Packer to build docker images. Docker and Jenkins Swarm client are managed by supervisord. Based on the [Jenkins Swarm Worker image](https://github.com/carlossg/jenkins-swarm-slave-docker). Using wrapdocker script from [jpetazzo](https://github.com/jpetazzo/dind/blob/master/wrapdocker) ## Instruction: Set deprecation message, point to updated instructions ## Code After: jenkins-swarm-builder-packer ==================== # This repository is now deprecated For up-to-date instructions checkout: - [Jenkins on Container Engine Best Practices](https://cloud.google.com/solutions/jenkins-on-container-engine) - [Jenkins on Container Engine Tutorial](https://cloud.google.com/solutions/jenkins-on-container-engine-tutorial) - [Customizing Jenkins agent Docker image](https://cloud.google.com/solutions/jenkins-on-container-engine#customizing_the_docker_image) # This repository is now deprecated Docker image with Jenkins Swarm client and [Packer](packer.io) installed. Designed to handle running packer build jobs from Jenkins. Docker is installed in the image to allow Packer to build docker images. Docker and Jenkins Swarm client are managed by supervisord. Based on the [Jenkins Swarm Worker image](https://github.com/carlossg/jenkins-swarm-slave-docker). Using wrapdocker script from [jpetazzo](https://github.com/jpetazzo/dind/blob/master/wrapdocker)
jenkins-swarm-builder-packer ==================== + + # This repository is now deprecated + + For up-to-date instructions checkout: + - [Jenkins on Container Engine Best Practices](https://cloud.google.com/solutions/jenkins-on-container-engine) + - [Jenkins on Container Engine Tutorial](https://cloud.google.com/solutions/jenkins-on-container-engine-tutorial) + - [Customizing Jenkins agent Docker image](https://cloud.google.com/solutions/jenkins-on-container-engine#customizing_the_docker_image) + + # This repository is now deprecated Docker image with Jenkins Swarm client and [Packer](packer.io) installed. Designed to handle running packer build jobs from Jenkins. Docker is installed in the image to allow Packer to build docker images. Docker and Jenkins Swarm client are managed by supervisord. Based on the [Jenkins Swarm Worker image](https://github.com/carlossg/jenkins-swarm-slave-docker). Using wrapdocker script from [jpetazzo](https://github.com/jpetazzo/dind/blob/master/wrapdocker)
9
1.125
9
0
dd693fdc5f7cb3be59bc2e3699a442f96f3672bd
src/api/common/schemas/remote-options.json
src/api/common/schemas/remote-options.json
{ "$schema": "http://json-schema.org/draft-04/schema#", "title": "remote-options", "type": "object", "properties": { "trace": {"type": "boolean"}, "servers": { "type": "array", "items": { "type": "string", "format": "uri", "pattern": "^wss?://" } } }, "additionalProperties": false }
{ "$schema": "http://json-schema.org/draft-04/schema#", "title": "remote-options", "type": "object", "properties": { "trace": {"type": "boolean"}, "servers": { "type": "array", "items": { "type": "string", "format": "uri", "pattern": "^wss?://" } }, "proxy": { "format": "uri" } }, "additionalProperties": false }
Add proxy support to schema
Add proxy support to schema
JSON
isc
wilsonianb/ripple-lib,wilsonianb/ripple-lib,ripple/ripple-lib,darkdarkdragon/ripple-lib,darkdarkdragon/ripple-lib,ripple/ripple-lib,darkdarkdragon/ripple-lib,ripple/ripple-lib,wilsonianb/ripple-lib,ripple/ripple-lib
json
## Code Before: { "$schema": "http://json-schema.org/draft-04/schema#", "title": "remote-options", "type": "object", "properties": { "trace": {"type": "boolean"}, "servers": { "type": "array", "items": { "type": "string", "format": "uri", "pattern": "^wss?://" } } }, "additionalProperties": false } ## Instruction: Add proxy support to schema ## Code After: { "$schema": "http://json-schema.org/draft-04/schema#", "title": "remote-options", "type": "object", "properties": { "trace": {"type": "boolean"}, "servers": { "type": "array", "items": { "type": "string", "format": "uri", "pattern": "^wss?://" } }, "proxy": { "format": "uri" } }, "additionalProperties": false }
{ "$schema": "http://json-schema.org/draft-04/schema#", "title": "remote-options", "type": "object", "properties": { "trace": {"type": "boolean"}, "servers": { "type": "array", "items": { "type": "string", "format": "uri", "pattern": "^wss?://" } + }, + "proxy": { + "format": "uri" } }, "additionalProperties": false }
3
0.176471
3
0
f474e7ff6e18932afea854aa3b0f44b63d5e08e8
composer.json
composer.json
{ "name": "silber/bouncer", "description": "Bouncer handles roles and abilities for Laravel's ACL.", "keywords": ["laravel", "acl", "roles", "abilities", "capabilities", "permissions"], "license": "MIT", "authors": [ { "name": "Joseph Silber", "email": "contact@josephsilber.com" } ], "autoload": { "psr-4": { "Silber\\Bouncer\\": "src/" } }, "autoload-dev": { "classmap": ["tests"] }, "require": { "illuminate/auth": "~5.1.20|5.2.*", "illuminate/container": "~5.1.20|5.2.*", "illuminate/contracts": "~5.1.20|5.2.*", "illuminate/database": "~5.1.20|5.2.*" }, "require-dev": { "illuminate/cache": "~5.1.20|5.2.*", "illuminate/console": "~5.1.20|5.2.*", "illuminate/routing": "^5.2", "phpunit/phpunit": "^4.8" }, "suggest": { "illuminate/cache": "Allows caching the bouncer's database queries", "illuminate/console": "Allows running registered bouncer seeders via artisan" } }
{ "name": "silber/bouncer", "description": "Bouncer handles roles and abilities for Laravel's ACL.", "keywords": ["laravel", "acl", "roles", "abilities", "capabilities", "permissions"], "license": "MIT", "authors": [ { "name": "Joseph Silber", "email": "contact@josephsilber.com" } ], "autoload": { "psr-4": { "Silber\\Bouncer\\": "src/" } }, "autoload-dev": { "classmap": ["tests"] }, "require": { "illuminate/auth": "~5.1.20|5.2.*", "illuminate/container": "~5.1.20|5.2.*", "illuminate/contracts": "~5.1.20|5.2.*", "illuminate/database": "~5.1.20|5.2.*" }, "require-dev": { "illuminate/cache": "~5.1.20|5.2.*", "illuminate/console": "~5.1.20|5.2.*", "illuminate/routing": "~5.1.20|5.2.*", "phpunit/phpunit": "^4.8" }, "suggest": { "illuminate/cache": "Allows caching the bouncer's database queries", "illuminate/console": "Allows running registered bouncer seeders via artisan" } }
Allow tests to run on illuminate/routing 5.1
Allow tests to run on illuminate/routing 5.1
JSON
mit
grantholle/bouncer,JosephSilber/bouncer
json
## Code Before: { "name": "silber/bouncer", "description": "Bouncer handles roles and abilities for Laravel's ACL.", "keywords": ["laravel", "acl", "roles", "abilities", "capabilities", "permissions"], "license": "MIT", "authors": [ { "name": "Joseph Silber", "email": "contact@josephsilber.com" } ], "autoload": { "psr-4": { "Silber\\Bouncer\\": "src/" } }, "autoload-dev": { "classmap": ["tests"] }, "require": { "illuminate/auth": "~5.1.20|5.2.*", "illuminate/container": "~5.1.20|5.2.*", "illuminate/contracts": "~5.1.20|5.2.*", "illuminate/database": "~5.1.20|5.2.*" }, "require-dev": { "illuminate/cache": "~5.1.20|5.2.*", "illuminate/console": "~5.1.20|5.2.*", "illuminate/routing": "^5.2", "phpunit/phpunit": "^4.8" }, "suggest": { "illuminate/cache": "Allows caching the bouncer's database queries", "illuminate/console": "Allows running registered bouncer seeders via artisan" } } ## Instruction: Allow tests to run on illuminate/routing 5.1 ## Code After: { "name": "silber/bouncer", "description": "Bouncer handles roles and abilities for Laravel's ACL.", "keywords": ["laravel", "acl", "roles", "abilities", "capabilities", "permissions"], "license": "MIT", "authors": [ { "name": "Joseph Silber", "email": "contact@josephsilber.com" } ], "autoload": { "psr-4": { "Silber\\Bouncer\\": "src/" } }, "autoload-dev": { "classmap": ["tests"] }, "require": { "illuminate/auth": "~5.1.20|5.2.*", "illuminate/container": "~5.1.20|5.2.*", "illuminate/contracts": "~5.1.20|5.2.*", "illuminate/database": "~5.1.20|5.2.*" }, "require-dev": { "illuminate/cache": "~5.1.20|5.2.*", "illuminate/console": "~5.1.20|5.2.*", "illuminate/routing": "~5.1.20|5.2.*", "phpunit/phpunit": "^4.8" }, "suggest": { "illuminate/cache": "Allows caching the bouncer's database queries", "illuminate/console": "Allows running registered bouncer seeders via artisan" } }
{ "name": "silber/bouncer", "description": "Bouncer handles roles and abilities for Laravel's ACL.", "keywords": ["laravel", "acl", "roles", "abilities", "capabilities", "permissions"], "license": "MIT", "authors": [ { "name": "Joseph Silber", "email": "contact@josephsilber.com" } ], "autoload": { "psr-4": { "Silber\\Bouncer\\": "src/" } }, "autoload-dev": { "classmap": ["tests"] }, "require": { "illuminate/auth": "~5.1.20|5.2.*", "illuminate/container": "~5.1.20|5.2.*", "illuminate/contracts": "~5.1.20|5.2.*", "illuminate/database": "~5.1.20|5.2.*" }, "require-dev": { "illuminate/cache": "~5.1.20|5.2.*", "illuminate/console": "~5.1.20|5.2.*", - "illuminate/routing": "^5.2", ? ^ + "illuminate/routing": "~5.1.20|5.2.*", ? ^^^^^^^^ ++ "phpunit/phpunit": "^4.8" }, "suggest": { "illuminate/cache": "Allows caching the bouncer's database queries", "illuminate/console": "Allows running registered bouncer seeders via artisan" } }
2
0.055556
1
1
e81d07dddb3390c4b1006a193886cf9c2554364d
lib/loanitem.rb
lib/loanitem.rb
class Loanitem def initialize(id, title, loandate, duedate, renewals) @id = id @title = title @loandate = loandate @duedate = duedate @renewals = renewals end attr_reader :id, :title, :loandate, :duedate, :renewals, :renewable def to_s "ID: #{@id} Title: #{@title} #{@authordesc} Loan date: #{@loandate} Due date: #{@duedate} Renewals: #{@renewals} Renewable? :#{renewable}\n" end def printLoanitem printed = "----------------------------- Item details -----------------------------" printed += @id printed += @title printed += @loandate printed += @duedate printed += @renewals printed += @renewable end end
class Loanitem def initialize(id, title, loandate, duedate, renewals) @id = id @title = title @loandate = loandate @duedate = duedate @renewals = renewals end attr_reader :id, :title, :loandate, :duedate, :renewals, :renewable def to_s "ID: #{@id} Title: #{@title} #{@authordesc} Loan date: #{@loandate} Due date: #{@duedate} Renewals: #{@renewals} Renewable? :#{renewable}\n" end def printLoanitem printed = "----------------------------- Item details -----------------------------" printed += "#{@id}" printed += "#{@title}" printed += "#{@loandate}" printed += "#{@duedate}" printed += "#{@renewals}" printed += "#{@renewable}" end end
Modify printLoanitem to convert all variables to strings
Modify printLoanitem to convert all variables to strings
Ruby
mit
ostephens/library-card
ruby
## Code Before: class Loanitem def initialize(id, title, loandate, duedate, renewals) @id = id @title = title @loandate = loandate @duedate = duedate @renewals = renewals end attr_reader :id, :title, :loandate, :duedate, :renewals, :renewable def to_s "ID: #{@id} Title: #{@title} #{@authordesc} Loan date: #{@loandate} Due date: #{@duedate} Renewals: #{@renewals} Renewable? :#{renewable}\n" end def printLoanitem printed = "----------------------------- Item details -----------------------------" printed += @id printed += @title printed += @loandate printed += @duedate printed += @renewals printed += @renewable end end ## Instruction: Modify printLoanitem to convert all variables to strings ## Code After: class Loanitem def initialize(id, title, loandate, duedate, renewals) @id = id @title = title @loandate = loandate @duedate = duedate @renewals = renewals end attr_reader :id, :title, :loandate, :duedate, :renewals, :renewable def to_s "ID: #{@id} Title: #{@title} #{@authordesc} Loan date: #{@loandate} Due date: #{@duedate} Renewals: #{@renewals} Renewable? :#{renewable}\n" end def printLoanitem printed = "----------------------------- Item details -----------------------------" printed += "#{@id}" printed += "#{@title}" printed += "#{@loandate}" printed += "#{@duedate}" printed += "#{@renewals}" printed += "#{@renewable}" end end
class Loanitem def initialize(id, title, loandate, duedate, renewals) @id = id @title = title @loandate = loandate @duedate = duedate @renewals = renewals end attr_reader :id, :title, :loandate, :duedate, :renewals, :renewable def to_s "ID: #{@id} Title: #{@title} #{@authordesc} Loan date: #{@loandate} Due date: #{@duedate} Renewals: #{@renewals} Renewable? :#{renewable}\n" end def printLoanitem printed = "----------------------------- Item details -----------------------------" - printed += @id + printed += "#{@id}" ? +++ ++ - printed += @title + printed += "#{@title}" ? +++ ++ - printed += @loandate + printed += "#{@loandate}" ? +++ ++ - printed += @duedate + printed += "#{@duedate}" ? +++ ++ - printed += @renewals + printed += "#{@renewals}" ? +++ ++ - printed += @renewable + printed += "#{@renewable}" ? +++ ++ end end
12
0.48
6
6
21bcec33b41e1697b4888ee8ad29c375ab587671
viewer/front/components/ChannelMessagesHeader.js
viewer/front/components/ChannelMessagesHeader.js
import React from 'react'; import { connect } from 'react-redux' import find from 'lodash/find'; import ChannelName from './ChannelName' import SlackActions from '../actions/SlackActions'; import firebase from 'firebase/app'; const ChannelMessagesHeader = ({ channels, ims, currentChannelId, openSidebar }) => { const allChannels = Object.assign({}, channels, ims); const channel = find(allChannels, (c) => c.id === currentChannelId); if (!channel) { return null; } const handleToggleSidebar = (event) => { event.stopPropagation(); openSidebar(); }; const handleSignOut = () => { firebase.auth().signOut(); } return ( <div className="messages-header"> <div className="toggle-sidebar" onClick={handleToggleSidebar}> <div className="bar"/> <div className="bar"/> <div className="bar"/> </div> <div className="title"> <ChannelName channel={channel} /> </div> <button onClick={handleSignOut}> Sign Out </button> </div> ); }; const mapDispatchToProps = dispatch => { return { openSidebar: () => { dispatch(SlackActions.openSidebar()); }, }; }; const mapStateToProps = state => { return { channels: state.channels.channels, ims: state.channels.ims, router: state.router }; }; export default connect(mapStateToProps, mapDispatchToProps)(ChannelMessagesHeader);
import React from 'react'; import { connect } from 'react-redux' import find from 'lodash/find'; import ChannelName from './ChannelName' import SlackActions from '../actions/SlackActions'; const ChannelMessagesHeader = ({ channels, ims, currentChannelId, openSidebar }) => { const allChannels = Object.assign({}, channels, ims); const channel = find(allChannels, (c) => c.id === currentChannelId); if (!channel) { return null; } const handleToggleSidebar = (event) => { event.stopPropagation(); openSidebar(); }; return ( <div className="messages-header"> <div className="toggle-sidebar" onClick={handleToggleSidebar}> <div className="bar"/> <div className="bar"/> <div className="bar"/> </div> <div className="title"> <ChannelName channel={channel} /> </div> </div> ); }; const mapDispatchToProps = dispatch => { return { openSidebar: () => { dispatch(SlackActions.openSidebar()); }, }; }; const mapStateToProps = state => { return { channels: state.channels.channels, ims: state.channels.ims, router: state.router }; }; export default connect(mapStateToProps, mapDispatchToProps)(ChannelMessagesHeader);
Revert "implement sign out button"
Revert "implement sign out button" This reverts commit b1e5d72e01ebdf8fbbc61e7fd2cc181ff0e413dc.
JavaScript
mit
tyage/slack-patron,tyage/slack-patron,tyage/slack-patron,tyage/slack-patron
javascript
## Code Before: import React from 'react'; import { connect } from 'react-redux' import find from 'lodash/find'; import ChannelName from './ChannelName' import SlackActions from '../actions/SlackActions'; import firebase from 'firebase/app'; const ChannelMessagesHeader = ({ channels, ims, currentChannelId, openSidebar }) => { const allChannels = Object.assign({}, channels, ims); const channel = find(allChannels, (c) => c.id === currentChannelId); if (!channel) { return null; } const handleToggleSidebar = (event) => { event.stopPropagation(); openSidebar(); }; const handleSignOut = () => { firebase.auth().signOut(); } return ( <div className="messages-header"> <div className="toggle-sidebar" onClick={handleToggleSidebar}> <div className="bar"/> <div className="bar"/> <div className="bar"/> </div> <div className="title"> <ChannelName channel={channel} /> </div> <button onClick={handleSignOut}> Sign Out </button> </div> ); }; const mapDispatchToProps = dispatch => { return { openSidebar: () => { dispatch(SlackActions.openSidebar()); }, }; }; const mapStateToProps = state => { return { channels: state.channels.channels, ims: state.channels.ims, router: state.router }; }; export default connect(mapStateToProps, mapDispatchToProps)(ChannelMessagesHeader); ## Instruction: Revert "implement sign out button" This reverts commit b1e5d72e01ebdf8fbbc61e7fd2cc181ff0e413dc. ## Code After: import React from 'react'; import { connect } from 'react-redux' import find from 'lodash/find'; import ChannelName from './ChannelName' import SlackActions from '../actions/SlackActions'; const ChannelMessagesHeader = ({ channels, ims, currentChannelId, openSidebar }) => { const allChannels = Object.assign({}, channels, ims); const channel = find(allChannels, (c) => c.id === currentChannelId); if (!channel) { return null; } const handleToggleSidebar = (event) => { event.stopPropagation(); openSidebar(); }; return ( <div className="messages-header"> <div className="toggle-sidebar" onClick={handleToggleSidebar}> <div className="bar"/> <div className="bar"/> <div className="bar"/> </div> <div className="title"> <ChannelName channel={channel} /> </div> </div> ); }; const mapDispatchToProps = dispatch => { return { openSidebar: () => { dispatch(SlackActions.openSidebar()); }, }; }; const mapStateToProps = state => { return { channels: state.channels.channels, ims: state.channels.ims, router: state.router }; }; export default connect(mapStateToProps, mapDispatchToProps)(ChannelMessagesHeader);
import React from 'react'; import { connect } from 'react-redux' import find from 'lodash/find'; import ChannelName from './ChannelName' import SlackActions from '../actions/SlackActions'; - import firebase from 'firebase/app'; const ChannelMessagesHeader = ({ channels, ims, currentChannelId, openSidebar }) => { const allChannels = Object.assign({}, channels, ims); const channel = find(allChannels, (c) => c.id === currentChannelId); if (!channel) { return null; } const handleToggleSidebar = (event) => { event.stopPropagation(); openSidebar(); }; - const handleSignOut = () => { - firebase.auth().signOut(); - } - return ( <div className="messages-header"> <div className="toggle-sidebar" onClick={handleToggleSidebar}> <div className="bar"/> <div className="bar"/> <div className="bar"/> </div> <div className="title"> <ChannelName channel={channel} /> </div> - <button onClick={handleSignOut}> Sign Out </button> </div> ); }; const mapDispatchToProps = dispatch => { return { openSidebar: () => { dispatch(SlackActions.openSidebar()); }, }; }; const mapStateToProps = state => { return { channels: state.channels.channels, ims: state.channels.ims, router: state.router }; }; export default connect(mapStateToProps, mapDispatchToProps)(ChannelMessagesHeader);
6
0.107143
0
6
05b14b3f817f0cffb06ade8f1ff82bfff177c6bd
starting-angular/starting-angular/cards/cards_usesStaticJSON_cleanestVersion/js/directives.js
starting-angular/starting-angular/cards/cards_usesStaticJSON_cleanestVersion/js/directives.js
/*global cardApp*/ /*jslint unparam: true */ (function () { 'use strict'; // Implements custom validation for card number. var INTEGER_REGEXP = /^([aAkKjJQq23456789]{1}|(10){1})$/; cardApp.directive('integer', function () { return { require: 'ngModel', link: function (scope, elm, attrs, ctrl) { ctrl.$parsers.unshift(function (viewValue) { if (INTEGER_REGEXP.test(viewValue)) { // it is valid ctrl.$setValidity('integer', true); return viewValue; } // it is invalid, return undefined (no model update) ctrl.$setValidity('integer', false); return undefined; }); } }; }); }());
/*global cardApp*/ /*jslint unparam: true */ cardApp.directive('integer', function () { 'use strict'; // Implements custom validation for card number. var INTEGER_REGEXP = /^([aAkKjJQq23456789]{1}|(10){1})$/; return { require: 'ngModel', link: function (scope, elm, attrs, ctrl) { ctrl.$parsers.unshift(function (viewValue) { if (INTEGER_REGEXP.test(viewValue)) { // it is valid ctrl.$setValidity('integer', true); return viewValue; } // it is invalid, return undefined (no model update) ctrl.$setValidity('integer', false); return undefined; }); } }; });
Use the angular module pattern instead of using a closure.
Use the angular module pattern instead of using a closure.
JavaScript
unlicense
bigfont/DevTeach2013,bigfont/DevTeach2013
javascript
## Code Before: /*global cardApp*/ /*jslint unparam: true */ (function () { 'use strict'; // Implements custom validation for card number. var INTEGER_REGEXP = /^([aAkKjJQq23456789]{1}|(10){1})$/; cardApp.directive('integer', function () { return { require: 'ngModel', link: function (scope, elm, attrs, ctrl) { ctrl.$parsers.unshift(function (viewValue) { if (INTEGER_REGEXP.test(viewValue)) { // it is valid ctrl.$setValidity('integer', true); return viewValue; } // it is invalid, return undefined (no model update) ctrl.$setValidity('integer', false); return undefined; }); } }; }); }()); ## Instruction: Use the angular module pattern instead of using a closure. ## Code After: /*global cardApp*/ /*jslint unparam: true */ cardApp.directive('integer', function () { 'use strict'; // Implements custom validation for card number. var INTEGER_REGEXP = /^([aAkKjJQq23456789]{1}|(10){1})$/; return { require: 'ngModel', link: function (scope, elm, attrs, ctrl) { ctrl.$parsers.unshift(function (viewValue) { if (INTEGER_REGEXP.test(viewValue)) { // it is valid ctrl.$setValidity('integer', true); return viewValue; } // it is invalid, return undefined (no model update) ctrl.$setValidity('integer', false); return undefined; }); } }; });
/*global cardApp*/ /*jslint unparam: true */ - (function () { + + cardApp.directive('integer', function () { 'use strict'; // Implements custom validation for card number. var INTEGER_REGEXP = /^([aAkKjJQq23456789]{1}|(10){1})$/; - cardApp.directive('integer', function () { - return { - require: 'ngModel', - link: function (scope, elm, attrs, ctrl) { - ctrl.$parsers.unshift(function (viewValue) { - if (INTEGER_REGEXP.test(viewValue)) { - // it is valid - ctrl.$setValidity('integer', true); - return viewValue; - } + return { - // it is invalid, return undefined (no model update) - ctrl.$setValidity('integer', false); - return undefined; + require: 'ngModel', + link: function (scope, elm, attrs, ctrl) { + ctrl.$parsers.unshift(function (viewValue) { + if (INTEGER_REGEXP.test(viewValue)) { + // it is valid + ctrl.$setValidity('integer', true); + return viewValue; - }); ? -- + } - } - }; - }); + // it is invalid, return undefined (no model update) + ctrl.$setValidity('integer', false); + return undefined; + + }); + } + }; - }()); ? -- + });
38
1.310345
19
19
7153e6f8b62dbd5b4f58e6ba0148d65bc2bcd5cf
packages/Python/lldbsuite/test/lang/swift/protocols/class_protocol/main.swift
packages/Python/lldbsuite/test/lang/swift/protocols/class_protocol/main.swift
import Foundation protocol HasWhy : class { var why : Int { get } } class ShouldBeWhy : NSObject, HasWhy { var why : Int = 10 } class ByWhy<T> where T : HasWhy { let myWhy : Int init(input : T) { myWhy = input.why // Break here and print input } } func doIt() { let mySBW = ShouldBeWhy() let myByWhy = ByWhy(input: mySBW) print(myByWhy.myWhy) } doIt()
import Foundation protocol HasWhy { var why : Int { get } } protocol ClassHasWhy : class { var why : Int { get } } class ShouldBeWhy : NSObject, ClassHasWhy, HasWhy { var before_why : Int = 0xfeedface var why : Int = 10 var after_why : Int = 0xdeadbeef } class ClassByWhy<T> where T : ClassHasWhy { let myWhy : Int init(input : T) { myWhy = input.why // Break here and print input } } class ByWhy<T> where T : HasWhy { let myWhy : Int init(input : T) { myWhy = input.why // Break here and print input } } func doIt() { let mySBW = ShouldBeWhy() let byWhy = ByWhy(input: mySBW) let classByWhy = ClassByWhy(input: mySBW) print(byWhy.myWhy, classByWhy.myWhy) } doIt()
Add an example that doesn't fail, and differs only in the class attribute to the protocol.
Add an example that doesn't fail, and differs only in the class attribute to the protocol.
Swift
apache-2.0
apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb
swift
## Code Before: import Foundation protocol HasWhy : class { var why : Int { get } } class ShouldBeWhy : NSObject, HasWhy { var why : Int = 10 } class ByWhy<T> where T : HasWhy { let myWhy : Int init(input : T) { myWhy = input.why // Break here and print input } } func doIt() { let mySBW = ShouldBeWhy() let myByWhy = ByWhy(input: mySBW) print(myByWhy.myWhy) } doIt() ## Instruction: Add an example that doesn't fail, and differs only in the class attribute to the protocol. ## Code After: import Foundation protocol HasWhy { var why : Int { get } } protocol ClassHasWhy : class { var why : Int { get } } class ShouldBeWhy : NSObject, ClassHasWhy, HasWhy { var before_why : Int = 0xfeedface var why : Int = 10 var after_why : Int = 0xdeadbeef } class ClassByWhy<T> where T : ClassHasWhy { let myWhy : Int init(input : T) { myWhy = input.why // Break here and print input } } class ByWhy<T> where T : HasWhy { let myWhy : Int init(input : T) { myWhy = input.why // Break here and print input } } func doIt() { let mySBW = ShouldBeWhy() let byWhy = ByWhy(input: mySBW) let classByWhy = ClassByWhy(input: mySBW) print(byWhy.myWhy, classByWhy.myWhy) } doIt()
import Foundation - protocol HasWhy : class ? -------- + protocol HasWhy { var why : Int { get } } - class ShouldBeWhy : NSObject, HasWhy + protocol ClassHasWhy : class { + var why : Int { get } + } + + class ShouldBeWhy : NSObject, ClassHasWhy, HasWhy + { + var before_why : Int = 0xfeedface var why : Int = 10 + var after_why : Int = 0xdeadbeef + } + + class ClassByWhy<T> where T : ClassHasWhy + { + let myWhy : Int + init(input : T) + { + myWhy = input.why // Break here and print input + } } class ByWhy<T> where T : HasWhy { let myWhy : Int init(input : T) { myWhy = input.why // Break here and print input } } func doIt() { let mySBW = ShouldBeWhy() - let myByWhy = ByWhy(input: mySBW) ? ^^^ + let byWhy = ByWhy(input: mySBW) ? ^ - print(myByWhy.myWhy) + let classByWhy = ClassByWhy(input: mySBW) + print(byWhy.myWhy, classByWhy.myWhy) } doIt()
25
0.862069
21
4