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
7bc6a92d3b170b22790a4bfb0f628040d9fea725
scss/_forms.scss
scss/_forms.scss
.btn { font-family: $font-family-serif; text-transform: uppercase; letter-spacing: 1px; }
.btn { font-family: $font-family-serif; text-transform: uppercase; letter-spacing: 1px; } form { // We are overriding Bootstrap here, to remove the margin on top .help-block { margin-top: 0; } .text-danger { margin-top: 5px; } .text-danger { margin-bottom: 0; } #location_id + .text-danger { marg...
Improve styling of form errors
Improve styling of form errors
SCSS
agpl-3.0
takkaria/echojs,takkaria/echojs,takkaria/echojs
scss
## Code Before: .btn { font-family: $font-family-serif; text-transform: uppercase; letter-spacing: 1px; } ## Instruction: Improve styling of form errors ## Code After: .btn { font-family: $font-family-serif; text-transform: uppercase; letter-spacing: 1px; } form { // We are overriding Bootstrap here, to rem...
.btn { font-family: $font-family-serif; text-transform: uppercase; letter-spacing: 1px; } + + form { + // We are overriding Bootstrap here, to remove the margin on top + .help-block { + margin-top: 0; + } + + .text-danger { + margin-top: 5px; + } + + .text-danger { + margin-bottom: 0; + ...
24
4
24
0
9e1a71da1572f226997219af205ad470a8bb51a3
README.md
README.md
This sample application shows how to receive Circuit Conversation updates and how to send Circuit conversation items with the [circuit node SDK](https://circuitsandbox.net/sdk/) ## Recommended ## * [node 6.x LTS](http://nodejs.org/download/) * [circuit module](https://circuitsandbox.net/sdk/) ## Getting Started ## `...
This sample application shows how to receive Circuit Conversation updates and how to send Circuit conversation items with the [circuit node SDK](https://circuitsandbox.net/sdk/) ## Recommended ## * [node 6.x LTS](http://nodejs.org/download/) * [circuit module](https://circuitsandbox.net/sdk/) ## Getting Started ## `...
Update to use circuit-node-sdk instead of circuit
Update to use circuit-node-sdk instead of circuit
Markdown
mit
yourcircuit/xlator-bot
markdown
## Code Before: This sample application shows how to receive Circuit Conversation updates and how to send Circuit conversation items with the [circuit node SDK](https://circuitsandbox.net/sdk/) ## Recommended ## * [node 6.x LTS](http://nodejs.org/download/) * [circuit module](https://circuitsandbox.net/sdk/) ## Getti...
This sample application shows how to receive Circuit Conversation updates and how to send Circuit conversation items with the [circuit node SDK](https://circuitsandbox.net/sdk/) ## Recommended ## * [node 6.x LTS](http://nodejs.org/download/) * [circuit module](https://circuitsandbox.net/sdk/) ## Getting...
8
0.222222
3
5
737ab9ee2417ffa9005d020e15cd0037818c92ff
invoicing/lib/invoicing.rb
invoicing/lib/invoicing.rb
require 'activerecord' require 'invoicing/class_info' # load first because other modules depend on this Dir.glob(File.join(File.dirname(__FILE__), 'invoicing/**/*.rb')).sort.each {|f| require f } # Mix all modules Invoicing::*::ActMethods into ActiveRecord::Base as class methods Invoicing.constants.map{|c| Invoicing...
$:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__))) require 'activerecord' require 'invoicing/class_info' # load first because other modules depend on this Dir.glob(File.join(File.dirname(__FILE__), 'invoicing/**/*.rb')).sort.each {...
Undo commit 0616e068 - needed for unit testing
Undo commit 0616e068 - needed for unit testing
Ruby
mit
herosky/invoicing,ept/invoicing,code-mancers/invoicing,ept/invoicing,code-mancers/invoicing,herosky/invoicing,ept/invoicing_generator,code-mancers/invoicing,herosky/invoicing,ept/invoicing
ruby
## Code Before: require 'activerecord' require 'invoicing/class_info' # load first because other modules depend on this Dir.glob(File.join(File.dirname(__FILE__), 'invoicing/**/*.rb')).sort.each {|f| require f } # Mix all modules Invoicing::*::ActMethods into ActiveRecord::Base as class methods Invoicing.constants.m...
+ $:.unshift(File.dirname(__FILE__)) unless + $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__))) + require 'activerecord' require 'invoicing/class_info' # load first because other modules depend on this Dir.glob(File.join(File.dirname(__FILE__), 'invoicing/**/*.rb'...
3
0.333333
3
0
97d4f6f7d43b9b1facf570b5f5a199e99823af71
client/src/components/viewscreens/ShipLogo.scss
client/src/components/viewscreens/ShipLogo.scss
.ShipLogo { height: 100%; display: flex; justify-content: center; align-items: center; .shadow { width: 50%; height: 5px; border-radius: 75%; margin: 0 auto; margin-bottom: 20px; box-shadow: 0 25px 20px 5px rgba(0, 0, 0, 1); } h1 { font-size: 50px; } .logo { animation: ...
.ShipLogo { height: 100%; display: flex; justify-content: center; align-items: center; .shadow { width: 50%; height: 5px; border-radius: 75%; margin: 0 auto; margin-bottom: 20px; box-shadow: 0 25px 20px 5px rgba(0, 0, 0, 1); } h1 { font-size: 50px; } .logo { animation: ...
Fix stretching on the ship logo
Fix stretching on the ship logo
SCSS
apache-2.0
Thorium-Sim/thorium,Thorium-Sim/thorium,Thorium-Sim/thorium,Thorium-Sim/thorium
scss
## Code Before: .ShipLogo { height: 100%; display: flex; justify-content: center; align-items: center; .shadow { width: 50%; height: 5px; border-radius: 75%; margin: 0 auto; margin-bottom: 20px; box-shadow: 0 25px 20px 5px rgba(0, 0, 0, 1); } h1 { font-size: 50px; } .logo {...
.ShipLogo { height: 100%; display: flex; justify-content: center; align-items: center; .shadow { width: 50%; height: 5px; border-radius: 75%; margin: 0 auto; margin-bottom: 20px; box-shadow: 0 25px 20px 5px rgba(0, 0, 0, 1); } h1 { font-size: 50px;...
1
0.033333
1
0
e58c78fea4b604905333b490a22e640477d5e2d5
django_pytest/test_runner.py
django_pytest/test_runner.py
def run_tests(test_labels, verbosity=1, interactive=True, extra_tests=[]): import sys from pkg_resources import load_entry_point sys.argv[1:] = sys.argv[2:] # Remove stop word (--) from argument list again. This separates Django # command options from py.test ones. try: del sys.argv[sys...
class TestRunner(object): def __init__(self, verbosity=1, interactive=True, failfast=True, **kwargs): self.verbosity = verbosity self.interactive = interactive self.failfast = failfast def run_tests(self, test_labels): import pytest import sys if test_labels is ...
Add a new TestRunner class to remove Django deprecation warnings
Add a new TestRunner class to remove Django deprecation warnings
Python
bsd-3-clause
buchuki/django-pytest,0101/django-pytest
python
## Code Before: def run_tests(test_labels, verbosity=1, interactive=True, extra_tests=[]): import sys from pkg_resources import load_entry_point sys.argv[1:] = sys.argv[2:] # Remove stop word (--) from argument list again. This separates Django # command options from py.test ones. try: ...
+ class TestRunner(object): + def __init__(self, verbosity=1, interactive=True, failfast=True, **kwargs): + self.verbosity = verbosity + self.interactive = interactive + self.failfast = failfast + + def run_tests(self, test_labels): + import pytest + import sys + + ...
55
3.055556
38
17
1ecd2dad94d7fab386ff02deb3577bf87ae0c9df
doc/source/dev/states.rst
doc/source/dev/states.rst
.. _states: ====================== Ironic's State Machine ====================== The diagram below shows the states that an Ironic node goes through during the lifetime of a node. The diagram also depicts the events that transition the node to different states. .. figure:: ../images/states.png :width: 660px :a...
.. _states: ====================== Ironic's State Machine ====================== State Machine Diagram ===================== The diagram below shows the provisioning states that an Ironic node goes through during the lifetime of a node. The diagram also depicts the events that transition the node to different states...
Add section header to state machines page
Add section header to state machines page This adds a section header so that a "Table of Contents" is displayed on the rendered page. This makes the page consistent with the rest of our developer documentation, since the others all have a Table Of Contents. I also added the word 'provisioning' to qualify what kind of...
reStructuredText
apache-2.0
dims/ironic,hpproliant/ironic,naototty/vagrant-lxc-ironic,ionutbalutoiu/ironic,NaohiroTamura/ironic,naototty/vagrant-lxc-ironic,Tan0/ironic,bacaldwell/ironic,openstack/ironic,SauloAislan/ironic,bacaldwell/ironic,NaohiroTamura/ironic,ionutbalutoiu/ironic,pshchelo/ironic,redhat-openstack/ironic,openstack/ironic,SauloAisl...
restructuredtext
## Code Before: .. _states: ====================== Ironic's State Machine ====================== The diagram below shows the states that an Ironic node goes through during the lifetime of a node. The diagram also depicts the events that transition the node to different states. .. figure:: ../images/states.png :wi...
.. _states: ====================== Ironic's State Machine ====================== + State Machine Diagram + ===================== + - The diagram below shows the states that an Ironic node goes through during the ? ------------------- + The diagr...
9
0.428571
6
3
dc7375b5fe24b9aef0cdf2489de43750364feb76
README.rst
README.rst
gostorages ========== An unified interface to manipulate storage engine for Go. gostorages is used in `picfit <https://github.com/thoas/picfit>`_ to allow us switching over storage engine. Currently, it supports the following storages: * Amazon S3 * File system Installation ============ Just run: :: $ go ge...
gostorages ========== An unified interface to manipulate storage engine for Go. gostorages is used in `picfit <https://github.com/thoas/picfit>`_ to allow us switching over storage engine. Currently, it supports the following storages: * Amazon S3 * File system Installation ============ Just run: :: $ go ge...
Add quick introduction to usage
Add quick introduction to usage
reStructuredText
mit
thoas/gostorages
restructuredtext
## Code Before: gostorages ========== An unified interface to manipulate storage engine for Go. gostorages is used in `picfit <https://github.com/thoas/picfit>`_ to allow us switching over storage engine. Currently, it supports the following storages: * Amazon S3 * File system Installation ============ Just run: ...
gostorages ========== An unified interface to manipulate storage engine for Go. gostorages is used in `picfit <https://github.com/thoas/picfit>`_ to allow us switching over storage engine. Currently, it supports the following storages: * Amazon S3 * File system Installation ==========...
7
0.12069
7
0
9b75451bcfbe522661f95f0e369c2fb71e1404fe
services/irc.rb
services/irc.rb
service :irc do |data, payload| repository = payload['repository']['name'] branch = payload['ref'].split('/').last room = data['room'] room = "##{room}" unless data['room'][0].chr == '#' irc = TCPSocket.open(data['server'], data['port']) irc.puts "USER blah blah blah :blah blah" irc...
service :irc do |data, payload| repository = payload['repository']['name'] branch = payload['ref'].split('/').last rooms = data['room'].gsub(",", " ").split(" ").map{|room| room[0].chr == '#' ? room : "##{room}"} irc = TCPSocket.open(data['server'], data['port']) irc.puts "USER blah blah blah ...
Allow user to specify multiple rooms * Rooms should be comma- and/or space-separated
Allow user to specify multiple rooms * Rooms should be comma- and/or space-separated
Ruby
mit
Seldaek/github-services,supriyantomaftuh/github-services,brntbeer/github-services,illan/github-services,github/github-services,1234-/github-services,apiaryio/github-services,espace/github-services,travis-repos/github-services,travis-ci/github-services,wassemgtk/github-services,billiob/github-services,YOTOV-LIMITED/gith...
ruby
## Code Before: service :irc do |data, payload| repository = payload['repository']['name'] branch = payload['ref'].split('/').last room = data['room'] room = "##{room}" unless data['room'][0].chr == '#' irc = TCPSocket.open(data['server'], data['port']) irc.puts "USER blah blah blah :...
service :irc do |data, payload| repository = payload['repository']['name'] branch = payload['ref'].split('/').last + rooms = data['room'].gsub(",", " ").split(" ").map{|room| room[0].chr == '#' ? room : "##{room}"} - room = data['room'] - room = "##{room}" unless data['room'][0].chr...
16
1
9
7
689072150fc2ce9a7f53ba821ce33204286cb785
views/base.xml
views/base.xml
<?xml version="1.0" encoding="utf-8"?> <odoo> <data> <menuitem id="orbeon_base_menu" name="Orbeon" parent="base.menu_custom" sequence="101" /> <menuitem id="orbeon_server_menu" name="Server" parent="orbeon_base_menu" action="orbeon_serv...
<?xml version="1.0" encoding="utf-8"?> <odoo> <data> <menuitem id="orbeon_base_menu" name="Orbeon" sequence="101" /> <menuitem id="orbeon_server_menu" name="Server" parent="orbeon_base_menu" action="orbeon_server_action" sequence="20" ...
Put the Orbeon menu under root (menus).
Put the Orbeon menu under root (menus).
XML
agpl-3.0
open2bizz/odoo-addons,open2bizz/odoo-addons
xml
## Code Before: <?xml version="1.0" encoding="utf-8"?> <odoo> <data> <menuitem id="orbeon_base_menu" name="Orbeon" parent="base.menu_custom" sequence="101" /> <menuitem id="orbeon_server_menu" name="Server" parent="orbeon_base_menu" act...
<?xml version="1.0" encoding="utf-8"?> <odoo> <data> <menuitem id="orbeon_base_menu" name="Orbeon" - parent="base.menu_custom" sequence="101" /> <menuitem id="orbeon_server_menu" name="Server" parent="orbeon_base_menu"...
1
0.028571
0
1
e1e2f9d7823e5dc8dc97887562d2a6d26a802ff0
Something/src/main/java/com/salvadordalvik/something/LoginActivity.java
Something/src/main/java/com/salvadordalvik/something/LoginActivity.java
package com.salvadordalvik.something; import android.app.Activity; import android.os.Bundle; /** * Created by matthewshepard on 1/31/14. */ public class LoginActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setCon...
package com.salvadordalvik.something; import android.os.Bundle; import android.support.v4.app.FragmentActivity; /** * Created by matthewshepard on 1/31/14. */ public class LoginActivity extends FragmentActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedIns...
Update log inactivity to match fragment support.
Update log inactivity to match fragment support.
Java
mit
2fast2fourier/something.apk,2fast2fourier/something.apk,2fast2fourier/something.apk
java
## Code Before: package com.salvadordalvik.something; import android.app.Activity; import android.os.Bundle; /** * Created by matthewshepard on 1/31/14. */ public class LoginActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState)...
package com.salvadordalvik.something; - import android.app.Activity; import android.os.Bundle; + import android.support.v4.app.FragmentActivity; /** * Created by matthewshepard on 1/31/14. */ - public class LoginActivity extends Activity { + public class LoginActivity extends FragmentActivity { ? ...
4
0.235294
2
2
854623e58971c5e729b39ae7e5dbca26bae17c21
controls/clientexportmanager/browser-support.md
controls/clientexportmanager/browser-support.md
--- title: Browser Support page_title: Browser Support | RadClientExportManager for ASP.NET AJAX Documentation description: Browser Support slug: clientexportmanager/browser-support tags: browser,support published: True position: 3 --- # Browser Support ## Browser Support **RadClientExportManager**...
--- title: Browser Support page_title: Browser Support | RadClientExportManager for ASP.NET AJAX Documentation description: Browser Support slug: clientexportmanager/browser-support tags: browser,support published: True position: 3 --- # Browser Support ## Browser Support **RadClientExportManager**...
Update to clarify iOS support
Update to clarify iOS support FileAPI isn't supported any any iOS system. This is a OS limitation so no browser will work without ProxyUrl
Markdown
apache-2.0
telerik/ajax-docs,telerik/ajax-docs,telerik/ajax-docs,telerik/ajax-docs
markdown
## Code Before: --- title: Browser Support page_title: Browser Support | RadClientExportManager for ASP.NET AJAX Documentation description: Browser Support slug: clientexportmanager/browser-support tags: browser,support published: True position: 3 --- # Browser Support ## Browser Support **RadClientExportManager**...
--- title: Browser Support page_title: Browser Support | RadClientExportManager for ASP.NET AJAX Documentation description: Browser Support slug: clientexportmanager/browser-support tags: browser,support published: True position: 3 --- # Browser Support ## Browser Support **RadCli...
2
0.074074
1
1
aaa1afaa820dd0c8aaba946a507cca4ee6aa0239
pentaho-xul-gwt/build.properties
pentaho-xul-gwt/build.properties
project.revision=TRUNK-SNAPSHOT ivy.artifact.id=pentaho-xul-gwt ivy.artifact.group=pentaho package.id=${ivy.artifact.id}-package ivy.artifact.group=pentaho impl.title=Pentaho GWT XUL dependency.pentaho-gwt-widgets.revision=TRUNK-SNAPSHOT dependency.gwt.revision=2.4.0 dependency.gwt-incubator.revision=2.1.0 dep...
project.revision=TRUNK-SNAPSHOT ivy.artifact.id=pentaho-xul-gwt ivy.artifact.group=pentaho package.id=${ivy.artifact.id}-package ivy.artifact.group=pentaho impl.title=Pentaho GWT XUL dependency.pentaho-gwt-widgets.revision=TRUNK-SNAPSHOT dependency.gwt.revision=2.4.0 dependency.gwt-incubator.revision=2.1.0 dep...
Set javadoc.packagenames default property to get rid of requirement to set this in Jenkins ant call.
Set javadoc.packagenames default property to get rid of requirement to set this in Jenkins ant call.
INI
lgpl-2.1
pentaho/pentaho-commons-xul
ini
## Code Before: project.revision=TRUNK-SNAPSHOT ivy.artifact.id=pentaho-xul-gwt ivy.artifact.group=pentaho package.id=${ivy.artifact.id}-package ivy.artifact.group=pentaho impl.title=Pentaho GWT XUL dependency.pentaho-gwt-widgets.revision=TRUNK-SNAPSHOT dependency.gwt.revision=2.4.0 dependency.gwt-incubator.revision=2....
project.revision=TRUNK-SNAPSHOT ivy.artifact.id=pentaho-xul-gwt ivy.artifact.group=pentaho package.id=${ivy.artifact.id}-package ivy.artifact.group=pentaho impl.title=Pentaho GWT XUL dependency.pentaho-gwt-widgets.revision=TRUNK-SNAPSHOT dependency.gwt.revision=2.4.0 dependency.gwt-incubator.revision=...
1
0.071429
1
0
777e9e8d76520f1e5d35ee9e17c0f36a7609ebd0
setup.py
setup.py
from setuptools import setup setup( name='scrapy-corenlp', version='0.1.1', description='Scrapy spider middleware :: Stanford CoreNLP Named Entity Recognition', url='https://github.com/vu3jej/scrapy-corenlp', author='Jithesh E J', author_email='mail@jithesh.net', license='BSD-2-Clause', ...
from setuptools import setup setup( name='scrapy-corenlp', version='0.2.0', description='Scrapy spider middleware :: Stanford CoreNLP Named Entity Recognition', url='https://github.com/vu3jej/scrapy-corenlp', author='Jithesh E J', author_email='mail@jithesh.net', license='BSD-2-Clause', ...
Add support for Python 2.7, 3.4 & 3.5
Add support for Python 2.7, 3.4 & 3.5
Python
bsd-2-clause
vu3jej/scrapy-corenlp
python
## Code Before: from setuptools import setup setup( name='scrapy-corenlp', version='0.1.1', description='Scrapy spider middleware :: Stanford CoreNLP Named Entity Recognition', url='https://github.com/vu3jej/scrapy-corenlp', author='Jithesh E J', author_email='mail@jithesh.net', license='B...
from setuptools import setup setup( name='scrapy-corenlp', - version='0.1.1', ? ^ ^ + version='0.2.0', ? ^ ^ description='Scrapy spider middleware :: Stanford CoreNLP Named Entity Recognition', url='https://github.com/vu3jej/scrapy-corenlp', auth...
4
0.222222
3
1
08f3a70b6d051e410561aa9709056b53854babd6
roles/packages/tasks/dev/tools.yml
roles/packages/tasks/dev/tools.yml
--- - community.general.homebrew_cask: name: - docker - p4v - community.general.homebrew: name: - docker-completion - docker-compose-completion - gh
--- - community.general.homebrew_cask: name: - docker - p4v - community.general.homebrew: name: - docker-completion - docker-compose-completion - gh - helm - kubectl@1.22
Add helm and kubectl as dev tool packages
Add helm and kubectl as dev tool packages
YAML
mit
andrasmaroy/dotfiles,andrasmaroy/dotfiles
yaml
## Code Before: --- - community.general.homebrew_cask: name: - docker - p4v - community.general.homebrew: name: - docker-completion - docker-compose-completion - gh ## Instruction: Add helm and kubectl as dev tool packages ## Code After: --- - community.general.homebrew_cask: ...
--- - community.general.homebrew_cask: name: - docker - p4v - community.general.homebrew: name: - docker-completion - docker-compose-completion - gh + - helm + - kubectl@1.22
2
0.166667
2
0
e558a2cf5267833d5bfa01d9cd5657b2fa338da8
_layouts/default.html
_layouts/default.html
<!DOCTYPE html> <html> <head> <title>{{ page.title }}</title> <link rel="stylesheet" type="text/css" href="/css/main.css" /> </head> <body> <nav> <ul> <li><a href="/">Home</a></li> <li><a href="/blog">Blog</a></li> </ul> </nav> <div class="container"> {{ conte...
<!DOCTYPE html> <html> <head> <title>{{ page.title }}</title> <link rel="stylesheet" type="text/css" href="/css/main.css" /> </head> <body> <nav> <ul> <li><a href="/">Home</a></li> <li><a href="/blog">Blog</a></li> </ul> </nav> <div class="container"> {{ conte...
Add links for sitemap and feed
Add links for sitemap and feed
HTML
mit
janaagaard75/janaagaard75.github.io,janaagaard75/janaagaard75.github.io
html
## Code Before: <!DOCTYPE html> <html> <head> <title>{{ page.title }}</title> <link rel="stylesheet" type="text/css" href="/css/main.css" /> </head> <body> <nav> <ul> <li><a href="/">Home</a></li> <li><a href="/blog">Blog</a></li> </ul> </nav> <div class="container"...
<!DOCTYPE html> <html> <head> <title>{{ page.title }}</title> <link rel="stylesheet" type="text/css" href="/css/main.css" /> </head> <body> <nav> <ul> <li><a href="/">Home</a></li> <li><a href="/blog">Blog</a></li> </ul> </nav> <div class...
2
0.076923
2
0
3e3b468047dc8ebdfa46ec5a96341b1104a6f38e
transpilation/deploy.ts
transpilation/deploy.ts
import fs = require("fs"); import { exec } from "shelljs"; function cmd(command: string) { const result: any = exec(command); return result.stdout; } const porcelain = cmd("git status --porcelain"); if (porcelain.trim()) { throw new Error("This script shouldn't be run when you've got working copy changes....
import fs = require("fs"); import { exec } from "shelljs"; function cmd(command: string) { const result: any = exec(command); return result.stdout; } const porcelain = cmd("git status --porcelain"); if (porcelain.trim()) { throw new Error("This script shouldn't be run when you've got working copy changes....
Check status after git rm -rf *.
Check status after git rm -rf *.
TypeScript
mit
mmkal/slimejs,mmkal/slimejs,mmkal/slimejs,mmkal/slimejs
typescript
## Code Before: import fs = require("fs"); import { exec } from "shelljs"; function cmd(command: string) { const result: any = exec(command); return result.stdout; } const porcelain = cmd("git status --porcelain"); if (porcelain.trim()) { throw new Error("This script shouldn't be run when you've got worki...
import fs = require("fs"); import { exec } from "shelljs"; function cmd(command: string) { const result: any = exec(command); return result.stdout; } const porcelain = cmd("git status --porcelain"); if (porcelain.trim()) { throw new Error("This script shouldn't be run when you've got...
4
0.16
3
1
97977658d51ac6b02485694965f5f9c9db369bcc
package.json
package.json
{ "name": "gut-flow-lint", "version": "1.0.0", "preferGlobal": true, "private": true, "scripts": { "test": "npm run lint && npm run cache", "lint": "deno lint --config ./deno.json", "cache": "deno cache --config ./deno.json --unstable mod.ts" }, "type": "module", "devDependencies": { "@q...
{ "name": "gut-flow-lint", "version": "1.0.0", "preferGlobal": true, "private": true, "scripts": { "test": "npm run lint && npm run cache", "lint": "deno lint --config ./deno.json", "cache": "deno cache --config ./deno.json --unstable mod.ts", "generate-doc": "deno run --unstable --no-check --...
Add npm script to generate the documentation
:wrench: Add npm script to generate the documentation
JSON
apache-2.0
quilicicf/Gut,quilicicf/Gut
json
## Code Before: { "name": "gut-flow-lint", "version": "1.0.0", "preferGlobal": true, "private": true, "scripts": { "test": "npm run lint && npm run cache", "lint": "deno lint --config ./deno.json", "cache": "deno cache --config ./deno.json --unstable mod.ts" }, "type": "module", "devDependen...
{ "name": "gut-flow-lint", "version": "1.0.0", "preferGlobal": true, "private": true, "scripts": { "test": "npm run lint && npm run cache", "lint": "deno lint --config ./deno.json", - "cache": "deno cache --config ./deno.json --unstable mod.ts" + "cache": "deno cache --config ....
3
0.2
2
1
35f902c475cfa0a89234ef11ce6d5b2d695f10e7
lib/rapporteur/checks.rb
lib/rapporteur/checks.rb
module Rapporteur module Checks autoload :ActiveRecordCheck, 'rapporteur/checks/active_record_check' TimeCheck = lambda { |checker| checker.add_message(:time, Time.now.utc) } RevisionCheck = lambda { |checker| checker.add_message(:revision, Revision.current) } end end
module Rapporteur module Checks autoload :ActiveRecordCheck, 'rapporteur/checks/active_record_check' # A check which simply reports the current clock time in UTC. This check is # useful because it shows that the status end point is not being cached and # allows you to determine if your server clocks ...
Add documentation to TimeCheck and RevisionCheck.
Add documentation to TimeCheck and RevisionCheck. [ci skip]
Ruby
mit
envylabs/rapporteur,envylabs/rapporteur,codeschool/rapporteur
ruby
## Code Before: module Rapporteur module Checks autoload :ActiveRecordCheck, 'rapporteur/checks/active_record_check' TimeCheck = lambda { |checker| checker.add_message(:time, Time.now.utc) } RevisionCheck = lambda { |checker| checker.add_message(:revision, Revision.current) } end end ## Instruction: A...
module Rapporteur module Checks autoload :ActiveRecordCheck, 'rapporteur/checks/active_record_check' + # A check which simply reports the current clock time in UTC. This check is + # useful because it shows that the status end point is not being cached and + # allows you to determine if your ...
23
2.875
23
0
1b1b043af1c7cfe189940ab1aa28c19060b307d4
lib/ws_light/set/watermelon_set.rb
lib/ws_light/set/watermelon_set.rb
require 'ws_light/set/color_set' module WSLight module Set # Creates a watermelon set, some green, some white, lots of red with a few red dots class WatermelonSet < ColorSet def frame set = [] length_red = (0.72 * @length).to_i length_red_to_white = (0.1 * @length).to_i ...
require 'ws_light/set/color_set' module WSLight module Set # Creates a watermelon set, some green, some white, lots of red with a few red dots class WatermelonSet < ColorSet def create_frame set = [] length_red = (0.72 * @length).to_i length_red_to_white = (0.1 * @length).to_i ...
Extend melon to second led strip
[BUGFIX] Extend melon to second led strip
Ruby
mit
kayssun/ws_light
ruby
## Code Before: require 'ws_light/set/color_set' module WSLight module Set # Creates a watermelon set, some green, some white, lots of red with a few red dots class WatermelonSet < ColorSet def frame set = [] length_red = (0.72 * @length).to_i length_red_to_white = (0.1 * @leng...
require 'ws_light/set/color_set' module WSLight module Set # Creates a watermelon set, some green, some white, lots of red with a few red dots class WatermelonSet < ColorSet - def frame + def create_frame ? +++++++ set = [] length_red = (0.72 * @lengt...
10
0.263158
7
3
1934229ace3bd35b98e3eaa9b8ec75a1000dea78
djkombu/transport.py
djkombu/transport.py
from Queue import Empty from anyjson import serialize, deserialize from kombu.transport import virtual from django.conf import settings from django.core import exceptions as errors from djkombu.models import Queue POLLING_INTERVAL = getattr(settings, "DJKOMBU_POLLING_INTERVAL", 5.0) class Channel(virtual.Channel)...
from Queue import Empty from anyjson import serialize, deserialize from kombu.transport import virtual from django.conf import settings from django.core import exceptions as errors from djkombu.models import Queue POLLING_INTERVAL = getattr(settings, "DJKOMBU_POLLING_INTERVAL", 5.0) class Channel(virtual.Channel)...
Work with new and *older* kombu versions
Work with new and *older* kombu versions
Python
bsd-3-clause
ask/django-kombu
python
## Code Before: from Queue import Empty from anyjson import serialize, deserialize from kombu.transport import virtual from django.conf import settings from django.core import exceptions as errors from djkombu.models import Queue POLLING_INTERVAL = getattr(settings, "DJKOMBU_POLLING_INTERVAL", 5.0) class Channel(...
from Queue import Empty from anyjson import serialize, deserialize from kombu.transport import virtual from django.conf import settings from django.core import exceptions as errors from djkombu.models import Queue POLLING_INTERVAL = getattr(settings, "DJKOMBU_POLLING_INTERVAL", 5.0) cl...
3
0.056604
2
1
2ccb0a5e52d73aa0362e1e644363ee8fa75c3476
conda-recipe/meta.yaml
conda-recipe/meta.yaml
package: name: conda-verify version: "2.1.0" source: path: ../ requirements: build: - python - setuptools run: - python build: script: python setup.py install about: home: https://github.com/conda/conda-verify license: BSD license_file: LICENSE.txt
package: name: conda-verify version: "2.1.0" source: path: ../ requirements: build: - python - setuptools run: - python build: script: pip install . --no-deps about: home: https://github.com/conda/conda-verify license: BSD license_file: LICENSE.txt
Change conda recipe build script
Change conda recipe build script
YAML
bsd-3-clause
mandeep/conda-verify
yaml
## Code Before: package: name: conda-verify version: "2.1.0" source: path: ../ requirements: build: - python - setuptools run: - python build: script: python setup.py install about: home: https://github.com/conda/conda-verify license: BSD license_file: LICENSE.txt ## Instruction: Chan...
package: name: conda-verify version: "2.1.0" source: path: ../ requirements: build: - python - setuptools run: - python build: - script: python setup.py install + script: pip install . --no-deps about: home: https://github.com/conda/conda-verify ...
2
0.090909
1
1
f2a39df197fe324e22c4a8ecf92d5eb76757a85a
extension/chrome/content/tweaks/tabs-on-top.css
extension/chrome/content/tweaks/tabs-on-top.css
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); @-moz-document url("chrome://bro...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); @-moz-document url("chrome://bro...
Improve "tabs on bottom" tweak
Improve "tabs on bottom" tweak
CSS
mpl-2.0
gnome-integration-team/firefox-gnome,gnome-integration-team/firefox-gnome,lbrfabio/firefox-gnome-flat,lbrfabio/firefox-gnome-flat,synapsos/firefox-gnome,gnome-integration-team/firefox-gnome,lbrfabio/firefox-gnome-flat,lbrfabio/firefox-gnome-flat,synapsos/firefox-gnome,gnome-integration-team/firefox-gnome,synapsos/firef...
css
## Code Before: /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); @-moz-document u...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); @-moz-document url...
14
1.076923
13
1
1ca4ce710a79ad9ebb48edfd8c6d67f8d9890b2f
templates/profile.html
templates/profile.html
{% import 'macros/monster.html' as statblocks %} {% import 'macros/errors.html' as errors %} {% extends 'base/two-column-base.html' %} {% block title %}Dungeon World Monster Maker{% endblock title %} {% block left %} {% if error %} {{ errors.error(error) }} {% else %} <h1>Monsters by {{ profile.account.nickname...
{% import 'macros/monster.html' as statblocks %} {% import 'macros/errors.html' as errors %} {% extends 'base/two-column-base.html' %} {% block title %}Dungeon World Monster Maker{% endblock title %} {% block left %} {% if error %} {{ errors.error(error) }} {% else %} <h1>Monsters by {{ profile.display_name }}<...
Use display name instead of email address.
Use display name instead of email address.
HTML
mit
Sagelt/dungeon-world-codex,Sagelt/dungeon-world-codex
html
## Code Before: {% import 'macros/monster.html' as statblocks %} {% import 'macros/errors.html' as errors %} {% extends 'base/two-column-base.html' %} {% block title %}Dungeon World Monster Maker{% endblock title %} {% block left %} {% if error %} {{ errors.error(error) }} {% else %} <h1>Monsters by {{ profile....
{% import 'macros/monster.html' as statblocks %} {% import 'macros/errors.html' as errors %} {% extends 'base/two-column-base.html' %} {% block title %}Dungeon World Monster Maker{% endblock title %} {% block left %} {% if error %} {{ errors.error(error) }} {% else %} - <h1>Monsters by {{ pr...
2
0.117647
1
1
0a908bb71a5018e34039a8b5633b9f8262df060b
SoberConfig.cmake.in
SoberConfig.cmake.in
find_package(GTest CONFIG REQUIRED PATHS @GTest_DIR@ NO_DEFAULT_PATH) find_package( CppNetlibUri CONFIG REQUIRED PATHS @CppNetlibUri_DIR@ NO_DEFAULT_PATH ) @PACKAGE_INIT@ include("@PACKAGE_CONF_DEST@/SoberTargets.cmake") function(_apply_release_imported_config_as_default tgt) get_target_property(location ${tg...
find_package( CppNetlibUri CONFIG REQUIRED PATHS @CppNetlibUri_DIR@ NO_DEFAULT_PATH ) find_package(GTest CONFIG REQUIRED PATHS @GTest_DIR@ NO_DEFAULT_PATH) find_package(JsonSpirit CONFIG REQUIRED PATHS @JsonSpirit_DIR@ NO_DEFAULT_PATH) @PACKAGE_INIT@ include("@PACKAGE_CONF_DEST@/SoberTargets.cmake") function(_a...
Add find_package(JsonSpirit ...) to config
Add find_package(JsonSpirit ...) to config
unknown
bsd-2-clause
ruslo/sober
unknown
## Code Before: find_package(GTest CONFIG REQUIRED PATHS @GTest_DIR@ NO_DEFAULT_PATH) find_package( CppNetlibUri CONFIG REQUIRED PATHS @CppNetlibUri_DIR@ NO_DEFAULT_PATH ) @PACKAGE_INIT@ include("@PACKAGE_CONF_DEST@/SoberTargets.cmake") function(_apply_release_imported_config_as_default tgt) get_target_proper...
- find_package(GTest CONFIG REQUIRED PATHS @GTest_DIR@ NO_DEFAULT_PATH) find_package( CppNetlibUri CONFIG REQUIRED PATHS @CppNetlibUri_DIR@ NO_DEFAULT_PATH ) + find_package(GTest CONFIG REQUIRED PATHS @GTest_DIR@ NO_DEFAULT_PATH) + find_package(JsonSpirit CONFIG REQUIRED PATHS @JsonSpirit_DIR@ NO_DEFAULT_P...
3
0.090909
2
1
c61e8508db1cc94d284d0589e7f2ad4527667c12
templates/modules/mod-perspective.tpl
templates/modules/mod-perspective.tpl
{if $perspectives|@count gt 0} {tikimodule error=$module_params.error title=$tpl_module_title name="perspective" flip=$module_params.flip decorations=$module_params.decorations nobox=$module_params.nobox notitle=$module_params.notitle} <form method="get" action="tiki-switch_perspective.php"> <select name="perspec...
{if $perspectives|@count gt 0} {tikimodule error=$module_params.error title=$tpl_module_title name="perspective" flip=$module_params.flip decorations=$module_params.decorations nobox=$module_params.nobox notitle=$module_params.notitle} <form method="get" action="tiki-switch_perspective.php"> <select name="perspec...
Use javascript to switch perspective on select change (and hide "Go" button) if enabled, to be more consistent with other modules (theme, lang etc)
[MOD] Use javascript to switch perspective on select change (and hide "Go" button) if enabled, to be more consistent with other modules (theme, lang etc) git-svn-id: 722c0fef737e30edb7d5e851b50e1eda1e207b8c@26852 b456876b-0849-0410-b77d-98878d47e9d5
Smarty
lgpl-2.1
changi67/tiki,tikiorg/tiki,changi67/tiki,oregional/tiki,tikiorg/tiki,oregional/tiki,oregional/tiki,oregional/tiki,changi67/tiki,changi67/tiki,tikiorg/tiki,tikiorg/tiki,changi67/tiki
smarty
## Code Before: {if $perspectives|@count gt 0} {tikimodule error=$module_params.error title=$tpl_module_title name="perspective" flip=$module_params.flip decorations=$module_params.decorations nobox=$module_params.nobox notitle=$module_params.notitle} <form method="get" action="tiki-switch_perspective.php"> <sele...
{if $perspectives|@count gt 0} {tikimodule error=$module_params.error title=$tpl_module_title name="perspective" flip=$module_params.flip decorations=$module_params.decorations nobox=$module_params.nobox notitle=$module_params.notitle} <form method="get" action="tiki-switch_perspective.php"> - <select name=...
6
0.333333
4
2
a78e4bd4f4340d7353351fdb3d20b4cf00ec16d3
src/rewrite_system/ast.mli
src/rewrite_system/ast.mli
(* Auxiliary types *) type type_name = string type type_binders = type_name list (* Kind definition *) (* An atom cannot be parametrized by types. *) (* kind List[A]: type *) (* kind Bool: type is equivalent to kind Bool[]: type *) type kind = | Type of type_binders | Atom (* Type application *) type polymorphi...
(* Auxiliary types *) type type_name = string type type_binders = type_name list (* Kind definition *) (* An atom cannot be parametrized by types. *) (* kind List: type -> type *) (* kind Variable: atom *) type kind = | Type of type_binders | Atom (* Type application *) (* A type application is the process to ap...
Remove polymorphics_arg, it's just a type_name list. Update the comments.
Remove polymorphics_arg, it's just a type_name list. Update the comments.
OCaml
mit
fredokun/nominal-workbench
ocaml
## Code Before: (* Auxiliary types *) type type_name = string type type_binders = type_name list (* Kind definition *) (* An atom cannot be parametrized by types. *) (* kind List[A]: type *) (* kind Bool: type is equivalent to kind Bool[]: type *) type kind = | Type of type_binders | Atom (* Type application *) ...
(* Auxiliary types *) type type_name = string type type_binders = type_name list (* Kind definition *) (* An atom cannot be parametrized by types. *) - (* kind List[A]: type *) ? --- + (* kind List: type -> type *) ? ++++++++ - (* kind Bool: type is equivalent to kind Bool[]: ...
16
0.271186
6
10
94b37ba0abacbff53da342574b61c87810f6a5d4
bulletin/tools/plugins/forms/job.py
bulletin/tools/plugins/forms/job.py
from datetimewidget.widgets import DateTimeWidget from django.forms import ModelForm from form_utils.widgets import ImageWidget from ..models import Job job_field_labels = { 'image': 'Image (10Mb Limit)', 'url': 'URL' } job_help_texts = { 'url': 'Provide a full url, e.g., "http://www.example.com/page.htm...
from datetimewidget.widgets import DateTimeWidget from django.forms import ModelForm from form_utils.widgets import ImageWidget from ..models import Job job_field_labels = { 'image': 'Image (10Mb Limit)', 'url': 'URL' } job_help_texts = { 'url': 'Provide a full url, e.g., "http://www.example.com/page.htm...
Make image required on Job submit form.
Make image required on Job submit form.
Python
mit
AASHE/django-bulletin,AASHE/django-bulletin,AASHE/django-bulletin
python
## Code Before: from datetimewidget.widgets import DateTimeWidget from django.forms import ModelForm from form_utils.widgets import ImageWidget from ..models import Job job_field_labels = { 'image': 'Image (10Mb Limit)', 'url': 'URL' } job_help_texts = { 'url': 'Provide a full url, e.g., "http://www.exam...
from datetimewidget.widgets import DateTimeWidget from django.forms import ModelForm from form_utils.widgets import ImageWidget from ..models import Job job_field_labels = { 'image': 'Image (10Mb Limit)', 'url': 'URL' } job_help_texts = { 'url': 'Provide a full url, e.g., "http:...
8
0.166667
5
3
f6df4f359b3d949b3f87a22bda1a78237c396aef
tests/integrations/current/test_read.py
tests/integrations/current/test_read.py
import os from tests.integrations.base import BaseTest class TestReadCurrentView(BaseTest): def test_listdirs(self): dirs = set(os.listdir("%s/current" % self.mount_path)) assert dirs == set(['testing', 'me']) def test_read_from_a_file(self): with open("%s/current/testing" % self.mou...
import os from tests.integrations.base import BaseTest class TestReadCurrentView(BaseTest): def test_listdirs(self): dirs = set(os.listdir("%s/current" % self.mount_path)) assert dirs == set(['testing', 'me']) def test_read_from_a_file(self): with open("%s/current/testing" % self.mou...
Test time related stats from current view
Test time related stats from current view
Python
apache-2.0
bussiere/gitfs,PressLabs/gitfs,ksmaheshkumar/gitfs,rowhit/gitfs,PressLabs/gitfs
python
## Code Before: import os from tests.integrations.base import BaseTest class TestReadCurrentView(BaseTest): def test_listdirs(self): dirs = set(os.listdir("%s/current" % self.mount_path)) assert dirs == set(['testing', 'me']) def test_read_from_a_file(self): with open("%s/current/tes...
import os from tests.integrations.base import BaseTest class TestReadCurrentView(BaseTest): def test_listdirs(self): dirs = set(os.listdir("%s/current" % self.mount_path)) assert dirs == set(['testing', 'me']) def test_read_from_a_file(self): with open("%s/cur...
9
0.333333
7
2
4465fc80923fe74f7fa1173f73ab083c9577ec77
lib/arel/ts_predications.rb
lib/arel/ts_predications.rb
module Arel module TSPredications def ts_query(expression, language=nil) vector = Arel::Nodes::TSVector.new(self, language) query = Arel::Nodes::TSQuery.new(expression, language) Arel::Nodes::TSMatch.new(vector, query) end end end
module Arel module TSPredications def ts_query(expression, language=nil) vector = Arel::Nodes::TSVector.new(self, language: language) query = Arel::Nodes::TSQuery.new(expression, language: language) Arel::Nodes::TSMatch.new(vector, query) end end end
Update TSPredication to use keyword args
Update TSPredication to use keyword args
Ruby
mit
malomalo/arel-extensions
ruby
## Code Before: module Arel module TSPredications def ts_query(expression, language=nil) vector = Arel::Nodes::TSVector.new(self, language) query = Arel::Nodes::TSQuery.new(expression, language) Arel::Nodes::TSMatch.new(vector, query) end end end ## Instruction: Update TSP...
module Arel module TSPredications def ts_query(expression, language=nil) - vector = Arel::Nodes::TSVector.new(self, language) + vector = Arel::Nodes::TSVector.new(self, language: language) ? ++++++++++ - query = Arel::Nodes::TS...
4
0.333333
2
2
4fb8fe36e9bb6c302fee1c6cea6b62300b7479b8
README.rst
README.rst
.. -*-restructuredtext-*- .. image:: https://github.com/ubernostrum/django-registration/workflows/CI/badge.svg :alt: CI status image This application provides management of Flash cross-domain access policies for `Django <https://www.djangoproject.com>`_ sites. For example, the following URL pattern is all you'd ne...
.. -*-restructuredtext-*- .. image:: https://github.com/ubernostrum/django-registration/workflows/CI/badge.svg :alt: CI status image :target: https://github.com/ubernostrum/django-flaskpolicies/actions?query=workflow%3ACI This application provides management of Flash cross-domain access policies for `Django <ht...
Add CI URL to badge.
Add CI URL to badge.
reStructuredText
bsd-3-clause
ubernostrum/django-flashpolicies
restructuredtext
## Code Before: .. -*-restructuredtext-*- .. image:: https://github.com/ubernostrum/django-registration/workflows/CI/badge.svg :alt: CI status image This application provides management of Flash cross-domain access policies for `Django <https://www.djangoproject.com>`_ sites. For example, the following URL pattern...
.. -*-restructuredtext-*- .. image:: https://github.com/ubernostrum/django-registration/workflows/CI/badge.svg :alt: CI status image + :target: https://github.com/ubernostrum/django-flaskpolicies/actions?query=workflow%3ACI This application provides management of Flash cross-domain access policies...
1
0.030303
1
0
60b90ce4058c6a324898b212e90e398fe4094ff2
src/game.cpp
src/game.cpp
// "Game" specific data namespace { bool gIsRunning = false; class GameEventEar : public EventEar { public: void onWindowClose() { Game::stop(); } }; GameEventEar gEar; } void Game::run() { // Don't run it twice. if (gIsRunning) return; // Initialize the basics Window::open(800, 600); Cloc...
// "Game" specific data namespace { bool gIsRunning = false; class GameEventEar : public EventEar { public: void onWindowClose() { Game::stop(); } }; GameEventEar gEar; } void Game::run() { // Don't run it twice. if (gIsRunning) return; // Initialize the basics Window::open(800, 600); Cloc...
Fix mistaken local variable name.
Fix mistaken local variable name.
C++
unlicense
jamiesyme/CozyCape
c++
## Code Before: // "Game" specific data namespace { bool gIsRunning = false; class GameEventEar : public EventEar { public: void onWindowClose() { Game::stop(); } }; GameEventEar gEar; } void Game::run() { // Don't run it twice. if (gIsRunning) return; // Initialize the basics Window::open(...
// "Game" specific data namespace { bool gIsRunning = false; class GameEventEar : public EventEar { public: void onWindowClose() { Game::stop(); } }; GameEventEar gEar; } void Game::run() { // Don't run it twice. if (gIsRunning) return; // Init...
2
0.038462
1
1
f87ec4e035fbebf3f35d0efeeb5e163cd0e342c4
_includes/header.html
_includes/header.html
<nav class="navigation"> {% for item in site.data.navigation %} <a class="navigation__link" href="{{ item.link }}"> {{ item.name }} {% endfor %} </a> </nav> <header class="header"> <div class="container"> <div class="pure-g"> <h1 class="header__title pure-u-1 pure-u-m...
<nav class="navigation"> {% for item in site.data.navigation %} <a class="navigation__link" href="{{ item.link }}"> {{ item.name }} {% endfor %} </a> </nav> <header class="header"> <div class="container"> <div class="pure-g"> <h1 class="header__title pure-u-1 pure-u-m...
Update circle icons position on small devices
[Home] Update circle icons position on small devices
HTML
mit
renan-taranto/renan-taranto.github.io,renan-taranto/renan-taranto.github.io,renan-taranto/renan-taranto.github.io
html
## Code Before: <nav class="navigation"> {% for item in site.data.navigation %} <a class="navigation__link" href="{{ item.link }}"> {{ item.name }} {% endfor %} </a> </nav> <header class="header"> <div class="container"> <div class="pure-g"> <h1 class="header__title p...
<nav class="navigation"> {% for item in site.data.navigation %} - <a class="navigation__link" href="{{ item.link }}"> ? ---- + <a class="navigation__link" href="{{ item.link }}"> {{ item.name }} - {% endfor %} + {% endfor %} ? ++++ </a> </nav> <header class="header"...
30
0.810811
21
9
9b5395ab11d8b28bc996f42e266a11a591057551
online.js
online.js
'use strict'; let [,, onLineSrc, onCloseSrc ] = process.argv; let onLine = eval(onLineSrc) || (line => line); let onClose = eval(onCloseSrc) || (() => undefined); let env = new Set(); require('readline') .createInterface({ input: process.stdin }) .on('line', line => { let columns = line.ma...
'use strict'; let [,, onLineSrc, onCloseSrc ] = process.argv; let onLine = eval(onLineSrc) || (line => line); let onClose = eval(onCloseSrc) || (() => undefined); let env = new Set(); require('readline') .createInterface({ input: process.stdin }) .on('line', line => { let columns = line.ma...
Print the return value of onClose if it's not null
Print the return value of onClose if it's not null
JavaScript
mit
bsdelf/scripts
javascript
## Code Before: 'use strict'; let [,, onLineSrc, onCloseSrc ] = process.argv; let onLine = eval(onLineSrc) || (line => line); let onClose = eval(onCloseSrc) || (() => undefined); let env = new Set(); require('readline') .createInterface({ input: process.stdin }) .on('line', line => { let c...
'use strict'; let [,, onLineSrc, onCloseSrc ] = process.argv; let onLine = eval(onLineSrc) || (line => line); let onClose = eval(onCloseSrc) || (() => undefined); let env = new Set(); require('readline') .createInterface({ input: process.stdin }) .on('line', line => { ...
5
0.238095
4
1
e0deabd62ca372d421e8b620db53f3c887aa8808
lib/tty/table/operation/truncation.rb
lib/tty/table/operation/truncation.rb
module TTY class Table module Operation # A class responsible for shortening text. class Truncation def truncate(string, width, options={}) trailing = options.fetch :trailing, '…' as_unicode do chars = string.chars.to_a print 'CHARS ' ...
module TTY class Table module Operation # A class responsible for shortening text. class Truncation # Shorten given string with traling character. # # @param [String] string # the string to truncate # @param [Integer] width # the maximum width ...
Change method signature and simplify, add comments.
Change method signature and simplify, add comments.
Ruby
mit
piotrmurach/tty,doudou/tty,peter-murach/tty,askl56/tty
ruby
## Code Before: module TTY class Table module Operation # A class responsible for shortening text. class Truncation def truncate(string, width, options={}) trailing = options.fetch :trailing, '…' as_unicode do chars = string.chars.to_a print 'CHA...
module TTY class Table module Operation # A class responsible for shortening text. class Truncation + # Shorten given string with traling character. + # + # @param [String] string + # the string to truncate + # @param [Integer] width + ...
22
0.536585
15
7
aa7162f3656aff145ab21f283f51a8c344882bc5
themes/galaxy/_layouts/blog.html
themes/galaxy/_layouts/blog.html
<?php $this->layout('layouts::_base') ?> <div class="content" editable=true> <?= $content ?> </div> <?php use Parvula\Core\Model\Page; $i = 0; $limit = 10; if (isset($page->options, $page->options['limit'])) { $limit = $page->options['limit']; } // Order children by date $children = $page->getChildren(); usort($c...
<?php $this->layout('layouts::_base') ?> <div class="content" editable=true> <?= $content ?> </div> <?php use Parvula\Core\Model\Page; $i = 0; $limit = 10; if (isset($page->options, $page->options['limit'])) { $limit = $page->options['limit']; } $children = $page->getChildren(); ?> <div class="posts"> <?php if (...
Fix bug if no children
Fix bug if no children
HTML
mit
BafS/parvula,ParvulaCMS/parvula,ParvulaCMS/parvula,BafS/parvula,BafS/parvula
html
## Code Before: <?php $this->layout('layouts::_base') ?> <div class="content" editable=true> <?= $content ?> </div> <?php use Parvula\Core\Model\Page; $i = 0; $limit = 10; if (isset($page->options, $page->options['limit'])) { $limit = $page->options['limit']; } // Order children by date $children = $page->getChil...
<?php $this->layout('layouts::_base') ?> <div class="content" editable=true> <?= $content ?> </div> <?php use Parvula\Core\Model\Page; $i = 0; $limit = 10; if (isset($page->options, $page->options['limit'])) { $limit = $page->options['limit']; } - // Order children by date $childre...
10
0.30303
6
4
1cb201c57c592ebd014910fe225fa594cd87c745
opendebates/middleware.py
opendebates/middleware.py
from opendebates.utils import get_site_mode class SiteModeMiddleware(object): """ Gets or creates a SiteMode for the request, based on the hostname. """ def process_view(self, request, view_func, view_args, view_kwargs): request.site_mode = get_site_mode(request)
from opendebates.utils import get_site_mode class SiteModeMiddleware(object): """ Gets or creates a SiteMode for the request, based on the hostname. """ def process_request(self, request): request.site_mode = get_site_mode(request)
Make sure that the site mode is populated on the request
Make sure that the site mode is populated on the request even if the request winds up getting dispatched to a flatpage.
Python
apache-2.0
caktus/django-opendebates,caktus/django-opendebates,caktus/django-opendebates,caktus/django-opendebates
python
## Code Before: from opendebates.utils import get_site_mode class SiteModeMiddleware(object): """ Gets or creates a SiteMode for the request, based on the hostname. """ def process_view(self, request, view_func, view_args, view_kwargs): request.site_mode = get_site_mode(request) ## Instructi...
from opendebates.utils import get_site_mode class SiteModeMiddleware(object): """ Gets or creates a SiteMode for the request, based on the hostname. """ - def process_view(self, request, view_func, view_args, view_kwargs): + def process_request(self, request): request.si...
2
0.2
1
1
b9914eb30a009af6ae7bf1bc7b3f28598bfbed39
conda/faiss/meta.yaml
conda/faiss/meta.yaml
package: name: faiss-cpu version: "{{ FAISS_BUILD_VERSION }}" source: git_url: ../../ requirements: build: - {{ compiler('cxx') }} - llvm-openmp # [osx] - setuptools - swig host: - python {{ python }} - intel-openmp # [osx] - numpy 1.11.* - mkl >=2018 run: - python {{...
package: name: faiss-cpu version: "{{ FAISS_BUILD_VERSION }}" source: git_url: ../../ requirements: build: - {{ compiler('cxx') }} - python {{ python }} - llvm-openmp # [osx] - setuptools - swig - mkl >=2018 host: - python {{ python }} - intel-openmp # [osx] - numpy 1.11...
Fix conda packages build reqs.
Fix conda packages build reqs.
YAML
mit
facebookresearch/faiss,facebookresearch/faiss,facebookresearch/faiss,facebookresearch/faiss
yaml
## Code Before: package: name: faiss-cpu version: "{{ FAISS_BUILD_VERSION }}" source: git_url: ../../ requirements: build: - {{ compiler('cxx') }} - llvm-openmp # [osx] - setuptools - swig host: - python {{ python }} - intel-openmp # [osx] - numpy 1.11.* - mkl >=2018 run:...
package: name: faiss-cpu version: "{{ FAISS_BUILD_VERSION }}" source: git_url: ../../ requirements: build: - {{ compiler('cxx') }} + - python {{ python }} - llvm-openmp # [osx] - setuptools - swig + - mkl >=2018 host: - python {{ python }} -...
3
0.083333
3
0
c8878fc24ac0c22c266b202484e047e66be46694
docs/influxdb.md
docs/influxdb.md
cAdvisor supports exporting stats to [InfluxDB](http://influxdb.com). To use InfluxDB, you need to pass some additional flags to cAdvisor telling it where the InfluxDB instance is located: Set the storage driver as InfluxDB. ``` -storage_driver=influxdb ``` Specify what InfluxDB instance to push data to: ``` # T...
cAdvisor supports exporting stats to [InfluxDB](http://influxdb.com). To use InfluxDB, you need to pass some additional flags to cAdvisor telling it where the InfluxDB instance is located: Set the storage driver as InfluxDB. ``` -storage_driver=influxdb ``` Specify what InfluxDB instance to push data to: ``` # T...
Add a link to the 'docker monitoring' example.
Add a link to the 'docker monitoring' example.
Markdown
apache-2.0
jzaefferer/cadvisor,bowlofstew/cadvisor,derwolfe/cadvisor,vegasbrianc/cadvisor,jzaefferer/cadvisor,derekwaynecarr/cadvisor,Snorch/cadvisor,yolkov/cadvisor,Snorch/cadvisor,timstclair/cadvisor,BrickXu/cadvisor,datawisesystems/cadvisor,carmark/cadvisor,difro/cadvisor,ainsleyc/cadvisor,jimmidyson/cadvisor,c-st/cadvisor,vis...
markdown
## Code Before: cAdvisor supports exporting stats to [InfluxDB](http://influxdb.com). To use InfluxDB, you need to pass some additional flags to cAdvisor telling it where the InfluxDB instance is located: Set the storage driver as InfluxDB. ``` -storage_driver=influxdb ``` Specify what InfluxDB instance to push da...
cAdvisor supports exporting stats to [InfluxDB](http://influxdb.com). To use InfluxDB, you need to pass some additional flags to cAdvisor telling it where the InfluxDB instance is located: Set the storage driver as InfluxDB. ``` -storage_driver=influxdb ``` Specify what InfluxDB instance to pus...
4
0.173913
4
0
dc372ddc62d6b50c7359addbb23c93b3545a2c87
src/Support/Migration.php
src/Support/Migration.php
<?php namespace PragmaRX\Tracker\Support; use PragmaRX\Support\Migration as PragmaRxMigration; abstract class Migration extends PragmaRxMigration { protected function checkConnection() { $this->manager = app()->make('db'); $this->connection = $this->manager->connection('tracker'); p...
<?php namespace PragmaRX\Tracker\Support; use PragmaRX\Support\Migration as PragmaRxMigration; abstract class Migration extends PragmaRxMigration { protected function checkConnection() { $this->manager = app()->make('db'); $this->connection = $this->manager->connection(config('tracker.connec...
Fix migrations with default MySQL connection.
Fix migrations with default MySQL connection.
PHP
mit
antonioribeiro/tracker,antonioribeiro/tracker
php
## Code Before: <?php namespace PragmaRX\Tracker\Support; use PragmaRX\Support\Migration as PragmaRxMigration; abstract class Migration extends PragmaRxMigration { protected function checkConnection() { $this->manager = app()->make('db'); $this->connection = $this->manager->connection('track...
<?php namespace PragmaRX\Tracker\Support; use PragmaRX\Support\Migration as PragmaRxMigration; abstract class Migration extends PragmaRxMigration { protected function checkConnection() { $this->manager = app()->make('db'); - $this->connection = $this->manager->connect...
2
0.117647
1
1
99bfb71d3e6ea4fd17e299ac770e3f9edb344927
preview.php
preview.php
<?php ini_set("display_errors", 0); $thumbdir = 'clip/'; $uuid = uniqid(); $start = floatval($_GET['t']) - 0.9; $duration = 3; $anilistID = rawurldecode($_GET['anilist_id']); $season = rawurldecode($_GET['season']); // deprecated $anime = rawurldecode($_GET['anime']); // deprecated $file = rawurldecode($_G...
<?php ini_set("display_errors", 0); $thumbdir = 'clip/'; $uuid = uniqid(); $start = floatval($_GET['t']) - 0.9; $duration = 3; $anilistID = rawurldecode($_GET['anilist_id']); $season = rawurldecode($_GET['season']); // deprecated $anime = rawurldecode($_GET['anime']); // deprecated $file = rawurldecode($_G...
Add mute param to generate mute video
Add mute param to generate mute video
PHP
mit
soruly/whatanime.ga,soruly/whatanime.ga,soruly/whatanime.ga
php
## Code Before: <?php ini_set("display_errors", 0); $thumbdir = 'clip/'; $uuid = uniqid(); $start = floatval($_GET['t']) - 0.9; $duration = 3; $anilistID = rawurldecode($_GET['anilist_id']); $season = rawurldecode($_GET['season']); // deprecated $anime = rawurldecode($_GET['anime']); // deprecated $file = rawurldeco...
<?php ini_set("display_errors", 0); $thumbdir = 'clip/'; $uuid = uniqid(); $start = floatval($_GET['t']) - 0.9; $duration = 3; $anilistID = rawurldecode($_GET['anilist_id']); $season = rawurldecode($_GET['season']); // deprecated $anime = rawurldecode($_GET['anime']); // deprecated $file = rawu...
3
0.12
2
1
4363fe9d5927b48488bd1305c8a943147cbb39f0
platform/lang-impl/src/com/intellij/build/BuildEventDispatcher.java
platform/lang-impl/src/com/intellij/build/BuildEventDispatcher.java
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.build; import org.jetbrains.annotations.ApiStatus; import java.io.Closeable; /** * @author Vladislav.Soroka */ @ApiStatus.Experimental public interface B...
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.build; import org.jetbrains.annotations.ApiStatus; import java.io.Closeable; /** * @author Vladislav.Soroka */ @ApiStatus.Experimental public interface B...
Build tw: fix fetching models of android projects w/o output parsing IDEA-209457
Build tw: fix fetching models of android projects w/o output parsing IDEA-209457 GitOrigin-RevId: 4476671907a478bebc377d3922d723f093c389f1
Java
apache-2.0
allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int...
java
## Code Before: // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.build; import org.jetbrains.annotations.ApiStatus; import java.io.Closeable; /** * @author Vladislav.Soroka */ @ApiStatus.Experimental pu...
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.build; import org.jetbrains.annotations.ApiStatus; import java.io.Closeable; /** * @author Vladislav.Soroka */ @ApiStatus.Experimen...
10
0.384615
5
5
2e42f1be90726d9b0d4569b7b81c62769cb8a6e5
infrastructure-modules/prod/storage/storage.tf
infrastructure-modules/prod/storage/storage.tf
module "config-bucket" { source = "github.com/stakater/blueprint-storage-aws.git//modules/s3" name = "${var.stack_name}-prod-config" } module "cloudinit-bucket" { source = "github.com/stakater/blueprint-storage-aws.git//modules/s3" name = "${var.stack_name}-prod-cloudinit" } # Outputs to be accessible through...
module "config-bucket" { source = "github.com/stakater/blueprint-storage-aws.git//modules/s3" name = "${var.prod_config_bucket_name}" } module "cloudinit-bucket" { source = "github.com/stakater/blueprint-storage-aws.git//modules/s3" name = "${var.prod_cloudinit_bucket_name}" } # Outputs to be accessible throu...
Use prod bucket names from makefile vars
Use prod bucket names from makefile vars
HCL
apache-2.0
stakater/infrastructure-reference
hcl
## Code Before: module "config-bucket" { source = "github.com/stakater/blueprint-storage-aws.git//modules/s3" name = "${var.stack_name}-prod-config" } module "cloudinit-bucket" { source = "github.com/stakater/blueprint-storage-aws.git//modules/s3" name = "${var.stack_name}-prod-cloudinit" } # Outputs to be ac...
module "config-bucket" { source = "github.com/stakater/blueprint-storage-aws.git//modules/s3" - name = "${var.stack_name}-prod-config" + name = "${var.prod_config_bucket_name}" } module "cloudinit-bucket" { source = "github.com/stakater/blueprint-storage-aws.git//modules/s3" - name = "${var.stack...
4
0.181818
2
2
1dc21a911253f9485a71963701355a226b8a71e5
test/load-json-spec.js
test/load-json-spec.js
/* global require, describe, it */ import assert from 'assert'; var urlPrefix = 'http://katas.tddbin.com/katas/es6/language/'; var katasUrl = urlPrefix + '__grouped__.json'; var GroupedKata = require('../src/grouped-kata.js'); describe('load ES6 kata data', function() { it('loaded data are as expected', function(d...
/* global describe, it */ import assert from 'assert'; const urlPrefix = 'http://katas.tddbin.com/katas/es6/language'; const katasUrl = `${urlPrefix}/__grouped__.json`; import GroupedKata from '../src/grouped-kata.js'; describe('load ES6 kata data', function() { it('loaded data are as expected', function(done) { ...
Use ES6 in the tests.
Use ES6 in the tests.
JavaScript
mit
wolframkriesing/es6-react-workshop,wolframkriesing/es6-react-workshop
javascript
## Code Before: /* global require, describe, it */ import assert from 'assert'; var urlPrefix = 'http://katas.tddbin.com/katas/es6/language/'; var katasUrl = urlPrefix + '__grouped__.json'; var GroupedKata = require('../src/grouped-kata.js'); describe('load ES6 kata data', function() { it('loaded data are as expec...
- /* global require, describe, it */ ? --------- + /* global describe, it */ import assert from 'assert'; - var urlPrefix = 'http://katas.tddbin.com/katas/es6/language/'; ? ^^^ - + const urlPrefix = 'http://katas.tddbin.com/katas/es6/language'; ? ^^...
12
0.315789
6
6
58307b8ada6e2c5ec8c5878739938ab4d7d947e1
src/test/resources/com/foundationdb/sql/pg/yaml/functional/test-script-functions.yaml
src/test/resources/com/foundationdb/sql/pg/yaml/functional/test-script-functions.yaml
--- - Statement: CREATE FUNCTION test_f1(x DOUBLE, y INT) RETURNS DOUBLE LANGUAGE javascript PARAMETER STYLE variables AS 'Math.pow(x, y)' DETERMINISTIC; --- - Statement: SELECT test_f1(10,3) - output: [[1000.0]] --- - Statement: > CREATE FUNCTION test_f2(s VARCHAR(1024), p VARCHAR(128)) RETURNS VARCHAR(1024) AS $$...
--- - Statement: CREATE FUNCTION test_f1(x DOUBLE, y INT) RETURNS DOUBLE LANGUAGE javascript PARAMETER STYLE variables AS 'Math.pow(x, y)' DETERMINISTIC; --- - Statement: SELECT test_f1(10,3) - output: [[1000.0]] --- - Statement: > CREATE FUNCTION test_f2(s VARCHAR(1024), p VARCHAR(128)) RETURNS VARCHAR(1024) AS $$...
Add a call to function via JDBC syntax (which is recognized by our parser).
Add a call to function via JDBC syntax (which is recognized by our parser).
YAML
agpl-3.0
ngaut/sql-layer,qiuyesuifeng/sql-layer,wfxiang08/sql-layer-1,ngaut/sql-layer,shunwang/sql-layer-1,qiuyesuifeng/sql-layer,ngaut/sql-layer,relateiq/sql-layer,jaytaylor/sql-layer,shunwang/sql-layer-1,wfxiang08/sql-layer-1,shunwang/sql-layer-1,jaytaylor/sql-layer,relateiq/sql-layer,jaytaylor/sql-layer,relateiq/sql-layer,wf...
yaml
## Code Before: --- - Statement: CREATE FUNCTION test_f1(x DOUBLE, y INT) RETURNS DOUBLE LANGUAGE javascript PARAMETER STYLE variables AS 'Math.pow(x, y)' DETERMINISTIC; --- - Statement: SELECT test_f1(10,3) - output: [[1000.0]] --- - Statement: > CREATE FUNCTION test_f2(s VARCHAR(1024), p VARCHAR(128)) RETURNS VAR...
--- - Statement: CREATE FUNCTION test_f1(x DOUBLE, y INT) RETURNS DOUBLE LANGUAGE javascript PARAMETER STYLE variables AS 'Math.pow(x, y)' DETERMINISTIC; --- - Statement: SELECT test_f1(10,3) - output: [[1000.0]] --- - Statement: > CREATE FUNCTION test_f2(s VARCHAR(1024), p VARCHAR(128)) RETURNS VAR...
5
0.151515
5
0
5545df9938377b6397f496b22045d9a3895fa669
TrailScribeTest/src/edu/cmu/sv/trailscribe/tests/SynchronizationCenterActivityTest.java
TrailScribeTest/src/edu/cmu/sv/trailscribe/tests/SynchronizationCenterActivityTest.java
package edu.cmu.sv.trailscribe.tests; import android.test.ActivityInstrumentationTestCase2; import edu.cmu.sv.trailscribe.view.SynchronizationCenterActivity; import edu.cmu.sv.trailscribe.R; import android.widget.ListView; public class SynchronizationCenterActivityTest extends ActivityInstrumentationTestCase2<Synchro...
package edu.cmu.sv.trailscribe.tests; import android.test.ActivityInstrumentationTestCase2; import edu.cmu.sv.trailscribe.view.SynchronizationCenterActivity; import edu.cmu.sv.trailscribe.R; import android.widget.ListView; import java.util.concurrent.TimeUnit; import android.database.DataSetObserver; import java.util....
Add test for map fetching in sync center
Add test for map fetching in sync center
Java
mit
CMUPracticum/TrailScribe,CMUPracticum/TrailScribe,CMUPracticum/TrailScribe
java
## Code Before: package edu.cmu.sv.trailscribe.tests; import android.test.ActivityInstrumentationTestCase2; import edu.cmu.sv.trailscribe.view.SynchronizationCenterActivity; import edu.cmu.sv.trailscribe.R; import android.widget.ListView; public class SynchronizationCenterActivityTest extends ActivityInstrumentationT...
package edu.cmu.sv.trailscribe.tests; import android.test.ActivityInstrumentationTestCase2; import edu.cmu.sv.trailscribe.view.SynchronizationCenterActivity; import edu.cmu.sv.trailscribe.R; import android.widget.ListView; + import java.util.concurrent.TimeUnit; + import android.database.DataSetObserver; +...
27
1.038462
27
0
b4e3e94e3d33138b7a32cf9d3e4f88e0c3ef8694
app/templates/styles/_theme.sass
app/templates/styles/_theme.sass
/** * THEME * * For basic sites this should simply contain colour variables. If a proper theme is to be applied this file should simply import the theme file for each component which should be contained within a theme folder e.g. * * @import theme/component * @import theme/component-two */ /* BRAND COLORS */ /...
/** * THEME * * For basic sites this should simply contain colour variables. If a proper theme is to be applied this file should simply import the theme file for each component which should be contained within a theme folder. */ /* BRAND COLORS */ /* SEMANTIC COLORS */
Remove import comments as they break builds on the server
Remove import comments as they break builds on the server
Sass
mit
kaldor/generator-pugpig,kaldor/generator-pugpig
sass
## Code Before: /** * THEME * * For basic sites this should simply contain colour variables. If a proper theme is to be applied this file should simply import the theme file for each component which should be contained within a theme folder e.g. * * @import theme/component * @import theme/component-two */ /* BR...
/** * THEME * - * For basic sites this should simply contain colour variables. If a proper theme is to be applied this file should simply import the theme file for each component which should be contained within a theme folder e.g. ? ...
5
0.357143
1
4
2250180ea7cc0eb91c8b1cdc7d565397326f480b
UM/Scene/SceneNodeDecorator.py
UM/Scene/SceneNodeDecorator.py
class SceneNodeDecorator(): def __init__(self): super().__init__() self._node = None def setNode(self, node): self._node = node
class SceneNodeDecorator(): def __init__(self): super().__init__() self._node = None def setNode(self, node): self._node = node def getNode(self): return self._node
Add a getter for a Decorator's Scene Node
Add a getter for a Decorator's Scene Node
Python
agpl-3.0
onitake/Uranium,onitake/Uranium
python
## Code Before: class SceneNodeDecorator(): def __init__(self): super().__init__() self._node = None def setNode(self, node): self._node = node ## Instruction: Add a getter for a Decorator's Scene Node ## Code After: class SceneNodeDecorator(): def __init__(self): ...
class SceneNodeDecorator(): def __init__(self): super().__init__() self._node = None def setNode(self, node): self._node = node + + def getNode(self): + return self._node
3
0.375
3
0
b7cd3e9d603a6fffa79becf6e1ca72da61fbb5f2
lib/electric_slide.rb
lib/electric_slide.rb
require 'singleton' require 'active_support/dependencies/autoload' require 'adhearsion/foundation/thread_safety' class ElectricSlide < Adhearsion::Plugin extend ActiveSupport::Autoload autoload :QueueStrategy autoload :RoundRobin autoload :RoundRobinMeetme include Singleton def initialize @queues = ...
require 'singleton' require 'active_support/dependencies/autoload' require 'adhearsion/foundation/thread_safety' class ElectricSlide < Adhearsion::Plugin extend ActiveSupport::Autoload autoload :QueueStrategy autoload :RoundRobin autoload :RoundRobinMeetme include Singleton def initialize @queues = ...
Use the supplied class directly
Use the supplied class directly Instead of looking it up with const_get
Ruby
mit
adhearsion/electric_slide,neildecapia/electric_slide
ruby
## Code Before: require 'singleton' require 'active_support/dependencies/autoload' require 'adhearsion/foundation/thread_safety' class ElectricSlide < Adhearsion::Plugin extend ActiveSupport::Autoload autoload :QueueStrategy autoload :RoundRobin autoload :RoundRobinMeetme include Singleton def initializ...
require 'singleton' require 'active_support/dependencies/autoload' require 'adhearsion/foundation/thread_safety' class ElectricSlide < Adhearsion::Plugin extend ActiveSupport::Autoload autoload :QueueStrategy autoload :RoundRobin autoload :RoundRobinMeetme include Singleton d...
2
0.030769
1
1
b29af96038a5b507279c1cbad1350a5c50694b6a
lib/assets/javascripts/new-dashboard/plugins/backbone/backbone-core-models.js
lib/assets/javascripts/new-dashboard/plugins/backbone/backbone-core-models.js
import Vue from 'vue'; // Backbone Models import ConfigModel from 'dashboard/data/config-model'; import UserModel from 'dashboard/data/user-model'; import BackgroundPollingModel from 'dashboard/data/background-polling/dashboard-background-polling-model'; const BackboneCoreModels = {}; BackboneCoreModels.install = fu...
import Vue from 'vue'; // Backbone Models import ConfigModel from 'dashboard/data/config-model'; import UserModel from 'dashboard/data/user-model'; import OrganizationModel from 'dashboard/data/organization-model'; import UserGroupsCollection from 'dashboard/data/user-groups-collection'; import BackgroundPollingModel ...
Set organization and user groups to UserModel
Set organization and user groups to UserModel
JavaScript
bsd-3-clause
CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb
javascript
## Code Before: import Vue from 'vue'; // Backbone Models import ConfigModel from 'dashboard/data/config-model'; import UserModel from 'dashboard/data/user-model'; import BackgroundPollingModel from 'dashboard/data/background-polling/dashboard-background-polling-model'; const BackboneCoreModels = {}; BackboneCoreMod...
import Vue from 'vue'; // Backbone Models import ConfigModel from 'dashboard/data/config-model'; import UserModel from 'dashboard/data/user-model'; + import OrganizationModel from 'dashboard/data/organization-model'; + import UserGroupsCollection from 'dashboard/data/user-groups-collection'; import Backgro...
19
0.575758
18
1
395d8729bc2d768ca8ed214d4a3e04ac2f4473af
Readme.md
Readme.md
<img src="http://d324imu86q1bqn.cloudfront.net/uploads/user/avatar/641/large_Ello.1000x1000.png" width="200px" height="200px" /> # Ello Web Application [![Build Status](https://travis-ci.org/ello/webapp.svg?branch=master)](https://travis-ci.org/ello/webapp) The web app for [ello.co](http://ello.co). ## Code of Cond...
<img src="http://d324imu86q1bqn.cloudfront.net/uploads/user/avatar/641/large_Ello.1000x1000.png" width="200px" height="200px" /> # Ello Web Application [![Build Status](https://travis-ci.org/ello/webapp.svg?branch=master)](https://travis-ci.org/ello/webapp) The web app for [ello.co](http://ello.co). ## Code of Cond...
Fix link to rules (now community-guidelines) in README.md
Fix link to rules (now community-guidelines) in README.md
Markdown
mit
ello/webapp,ello/webapp,ello/webapp
markdown
## Code Before: <img src="http://d324imu86q1bqn.cloudfront.net/uploads/user/avatar/641/large_Ello.1000x1000.png" width="200px" height="200px" /> # Ello Web Application [![Build Status](https://travis-ci.org/ello/webapp.svg?branch=master)](https://travis-ci.org/ello/webapp) The web app for [ello.co](http://ello.co). ...
<img src="http://d324imu86q1bqn.cloudfront.net/uploads/user/avatar/641/large_Ello.1000x1000.png" width="200px" height="200px" /> # Ello Web Application [![Build Status](https://travis-ci.org/ello/webapp.svg?branch=master)](https://travis-ci.org/ello/webapp) The web app for [ello.co](http://ello.co). ...
2
0.105263
1
1
13f923d5980c7de294caa15890876aceec4bf0b6
README.md
README.md
[![Build Status][ico-build]][travis] [![Latest Version][ico-package]][package] [![PHP ~5.6][ico-engine]][lang] [![MIT Licensed][ico-license]][license] A PHPUnit test listener for the hamcrest assertion library. ## Installation ```bash ~$ composer require --dev graze/hamcrest-test-listener ``` ## Usage In your **...
[![Build Status][ico-build]][travis] [![Latest Version][ico-package]][package] [![PHP ~5.6][ico-engine]][lang] [![MIT Licensed][ico-license]][license] A PHPUnit test listener for the hamcrest assertion library. ## Installation ```bash ~$ composer require --dev graze/hamcrest-test-listener ``` ## Usage In your **...
Use the correct badge image urls.
Use the correct badge image urls.
Markdown
mit
graze/hamcrest-test-listener
markdown
## Code Before: [![Build Status][ico-build]][travis] [![Latest Version][ico-package]][package] [![PHP ~5.6][ico-engine]][lang] [![MIT Licensed][ico-license]][license] A PHPUnit test listener for the hamcrest assertion library. ## Installation ```bash ~$ composer require --dev graze/hamcrest-test-listener ``` ## Us...
[![Build Status][ico-build]][travis] [![Latest Version][ico-package]][package] [![PHP ~5.6][ico-engine]][lang] [![MIT Licensed][ico-license]][license] A PHPUnit test listener for the hamcrest assertion library. ## Installation ```bash ~$ composer require --dev graze/hamcrest-test-listener ...
6
0.162162
3
3
aacad4d0e7d07d40792cb7dfd3545c1b7ebb6276
dnzo/templates/signup/index.html
dnzo/templates/signup/index.html
{% extends "layouts/base.html" %} {% block page_title %}Sign up for DNZO!{% endblock %} {% block javascripts %} {% javascript_tag signup %} {% endblock %} {% block content %} <h1>Sign up for Dnzo</h1> <form action="/signup/" method="POST"> <div id="signup"> <p> <label for="name"> Choose a <str...
{% load tasks_library %} {% extends "layouts/base.html" %} {% block page_title %}Sign up for DNZO!{% endblock %} {% block javascripts %} {% javascript_tag signup %} {% endblock %} {% block content %} <h1>Sign up for Dnzo</h1> <form action="/signup/" method="POST"> <div id="signup"> <p> <label for="na...
Fix minor typo that broke things.
Fix minor typo that broke things. git-svn-id: 062a66634e56759c7c3cc44955c32d2ce0012d25@45 c02d1e6f-6a35-45f2-ab14-3b6f79a691ff
HTML
mit
taylorhughes/done-zo,taylorhughes/done-zo,taylorhughes/done-zo,taylorhughes/done-zo
html
## Code Before: {% extends "layouts/base.html" %} {% block page_title %}Sign up for DNZO!{% endblock %} {% block javascripts %} {% javascript_tag signup %} {% endblock %} {% block content %} <h1>Sign up for Dnzo</h1> <form action="/signup/" method="POST"> <div id="signup"> <p> <label for="name"> ...
+ {% load tasks_library %} + {% extends "layouts/base.html" %} {% block page_title %}Sign up for DNZO!{% endblock %} {% block javascripts %} {% javascript_tag signup %} {% endblock %} {% block content %} <h1>Sign up for Dnzo</h1> <form action="/signup/" method="POST"> <div id="signup"...
2
0.0625
2
0
08cb07cbfacdd7935fa1cff680b4ff31aba9f889
types/tslint.json
types/tslint.json
{ "extends": "dtslint/dtslint.json", "rules": { "semicolon": false, "indent": [true, "spaces"], "no-redundant-jsdoc": false, "no-unnecessary-class": false, "no-implicit-dependencies": false } }
{ "extends": "dtslint/dtslint.json", "rules": { "semicolon": false, "indent": [true, "spaces"], "no-redundant-jsdoc": false, "no-unnecessary-class": false, "no-implicit-dependencies": false, "file-name-casing": false } }
Remove file-name-casing rule for tests
Remove file-name-casing rule for tests
JSON
mit
idehub/react-native-google-analytics-bridge,idehub/react-native-google-analytics-bridge,idehub/react-native-google-analytics-bridge,idehub/react-native-google-analytics-bridge
json
## Code Before: { "extends": "dtslint/dtslint.json", "rules": { "semicolon": false, "indent": [true, "spaces"], "no-redundant-jsdoc": false, "no-unnecessary-class": false, "no-implicit-dependencies": false } } ## Instruction: Remove file-name-casing rule for tests ## Code After: { "extends...
{ "extends": "dtslint/dtslint.json", "rules": { "semicolon": false, "indent": [true, "spaces"], "no-redundant-jsdoc": false, "no-unnecessary-class": false, - "no-implicit-dependencies": false + "no-implicit-dependencies": false, ? + + "...
3
0.3
2
1
862bf1128178304c50f07838ed18a03bc707da9b
app/views/things/_form.html.haml
app/views/things/_form.html.haml
- thing ||= @thing = form_for thing do |f| = f.text_field :name, placeholder: 'Name' = f.number_field :quantity, placeholder: 'Quantity' = f.submit
- thing ||= @thing = bootstrap_form_for thing do |f| = f.alert_message 'Please fix the issues below.' = f.text_field :name, placeholder: 'Name', required: true = f.number_field :quantity, placeholder: 'Quantity', required: true = f.submit
Switch view to bootstrap form gem
Switch view to bootstrap form gem
Haml
mit
codeintheschools/check_me_out,codeintheschools/check_me_out,codeintheschools/check_me_out
haml
## Code Before: - thing ||= @thing = form_for thing do |f| = f.text_field :name, placeholder: 'Name' = f.number_field :quantity, placeholder: 'Quantity' = f.submit ## Instruction: Switch view to bootstrap form gem ## Code After: - thing ||= @thing = bootstrap_form_for thing do |f| = f.alert_message 'Please f...
- thing ||= @thing - = form_for thing do |f| + = bootstrap_form_for thing do |f| ? ++++++++++ + = f.alert_message 'Please fix the issues below.' - = f.text_field :name, placeholder: 'Name' + = f.text_field :name, placeholder: 'Name', required: true ? ++++++++++++...
7
1.166667
4
3
024e2fe493d181b6378c5ffa74be34032acda7d7
api/posts.json
api/posts.json
--- --- [ {% for post in site.posts %} {% unless post.draft %} { "title": "{{ post.title }}", "category": "{{ post.category }}", "url": "{{ post.url | absolute_url }}", "tags": {{ post.tags | jsonify }}, "date": "{{ post.date }}", "language": "{% if post.language %}...
--- --- [ {% for post in site.posts %} {% unless post.draft %} { "title": "{{ post.title }}", "category": "{{ post.category }}", "url": "{{ post.url | absolute_url }}", "tags": {{ post.tags | jsonify }}, "date": "{{ post.date | date_to_rfc822 }}", "language": "{% if...
Fix date format for API and 404 page
Fix date format for API and 404 page
JSON
mit
jwillmer/jekyllDecent,jwillmer/jekyllDecent,jwillmer/jekyllDecent
json
## Code Before: --- --- [ {% for post in site.posts %} {% unless post.draft %} { "title": "{{ post.title }}", "category": "{{ post.category }}", "url": "{{ post.url | absolute_url }}", "tags": {{ post.tags | jsonify }}, "date": "{{ post.date }}", "language": "{% if ...
--- --- [ {% for post in site.posts %} {% unless post.draft %} { "title": "{{ post.title }}", "category": "{{ post.category }}", "url": "{{ post.url | absolute_url }}", "tags": {{ post.tags | jsonify }}, - "date": "{{ post.date }}", + "date": "{{...
2
0.125
1
1
719079e29268b15dc2db422a02d0eb270cef5ca6
.travis.yml
.travis.yml
dist: trusty language: java jdk: - openjdk8 - oraclejdk8 script: ./gradlew build notifications: email: false
dist: trusty language: java jdk: - openjdk8 - oraclejdk8 script: ./gradlew build notifications: email: false # Exclude master because it is built on Jenkins branches: except: - master
Exclude master branch from Travis config, will build that on Jenkins
Exclude master branch from Travis config, will build that on Jenkins
YAML
mit
SpongePowered/Mixin
yaml
## Code Before: dist: trusty language: java jdk: - openjdk8 - oraclejdk8 script: ./gradlew build notifications: email: false ## Instruction: Exclude master branch from Travis config, will build that on Jenkins ## Code After: dist: trusty language: java jdk: - openjdk8 - oraclejdk8 script: ./gradlew buil...
dist: trusty language: java jdk: - openjdk8 - oraclejdk8 script: ./gradlew build notifications: email: false + + # Exclude master because it is built on Jenkins + branches: + except: + - master
5
0.454545
5
0
10a922d7ea42ca236fc077dcb185a1823a762325
README.md
README.md
[![Build Status](https://travis-ci.org/trellis-ldp/trellis-rosid.png?branch=master)](https://travis-ci.org/trellis-ldp/trellis-rosid) [![Build status](https://ci.appveyor.com/api/projects/status/i1geqkvi48w5y9om?svg=true)](https://ci.appveyor.com/project/acoburn/trellis-rosid) [![Coverage Status](https://coveralls.io/...
[![Build Status](https://travis-ci.org/trellis-ldp/trellis-rosid.png?branch=master)](https://travis-ci.org/trellis-ldp/trellis-rosid) [![Build status](https://ci.appveyor.com/api/projects/status/i1geqkvi48w5y9om?svg=true)](https://ci.appveyor.com/project/acoburn/trellis-rosid) [![Coverage Status](https://coveralls.io/...
Update readme with links to subprojects
Update readme with links to subprojects
Markdown
apache-2.0
trellis-ldp/trellis-rosid,trellis-ldp/trellis-rosid,trellis-ldp/trellis-rosid
markdown
## Code Before: [![Build Status](https://travis-ci.org/trellis-ldp/trellis-rosid.png?branch=master)](https://travis-ci.org/trellis-ldp/trellis-rosid) [![Build status](https://ci.appveyor.com/api/projects/status/i1geqkvi48w5y9om?svg=true)](https://ci.appveyor.com/project/acoburn/trellis-rosid) [![Coverage Status](https...
[![Build Status](https://travis-ci.org/trellis-ldp/trellis-rosid.png?branch=master)](https://travis-ci.org/trellis-ldp/trellis-rosid) [![Build status](https://ci.appveyor.com/api/projects/status/i1geqkvi48w5y9om?svg=true)](https://ci.appveyor.com/project/acoburn/trellis-rosid) [![Coverage Status](https://cover...
8
0.888889
7
1
0540fb24c63aa3b1fa56601c707e8f947160e5fc
lib/sonia/widgets/tfl.rb
lib/sonia/widgets/tfl.rb
require 'yajl' require 'httparty' module Sonia module Widgets class Tfl < Sonia::Widget def initial_push fetch_data EventMachine::add_periodic_timer(150) { fetch_data } end def format_lines(line) { :status_requested => line["status_requested"], :id ...
require 'yajl' require 'em-http' module Sonia module Widgets class Tfl < Sonia::Widget def initial_push fetch_data EventMachine::add_periodic_timer(150) { fetch_data } end def format_lines(line) { :status_requested => line["status_requested"], :id ...
Make Tfl widget use async HTTP
Make Tfl widget use async HTTP
Ruby
mit
tachikomapocket/pusewicz-_-sonia,pusewicz/sonia,pusewicz/sonia,pusewicz/sonia,tachikomapocket/pusewicz-_-sonia,tachikomapocket/pusewicz-_-sonia
ruby
## Code Before: require 'yajl' require 'httparty' module Sonia module Widgets class Tfl < Sonia::Widget def initial_push fetch_data EventMachine::add_periodic_timer(150) { fetch_data } end def format_lines(line) { :status_requested => line["status_requested"]...
require 'yajl' - require 'httparty' ? ---- + require 'em-http' ? +++ module Sonia module Widgets class Tfl < Sonia::Widget - def initial_push fetch_data EventMachine::add_periodic_timer(150) { fetch_data } end def format_lines(line...
14
0.424242
8
6
edf3e9f6fc87589912436c164483ab5d7436681c
routes/landingPage.js
routes/landingPage.js
const router = require('express').Router(); const data = require("../data"); const forumsData = data.forums; router.get('/', (req, res) => { let userInfo = req.locals || {}; let userId = null; if (req.user) { userId = req.user._id; } forumsData.getForumByUser(userId) .then((forum) => { userInfo.forum = forum...
const router = require('express').Router(); const data = require("../data"); const forumsData = data.forums; router.get('/', (req, res) => { let userInfo = req.locals || {}; let userId = null; if (req.user) { userId = req.user._id; } forumsData.getForumByUser(userId) .then((forum) => { userInfo.forum = forum...
Add route to sort landing page forums by popular or recent
Add route to sort landing page forums by popular or recent
JavaScript
mit
tsangjustin/CS546-Product_Forum,tsangjustin/CS546-Product_Forum
javascript
## Code Before: const router = require('express').Router(); const data = require("../data"); const forumsData = data.forums; router.get('/', (req, res) => { let userInfo = req.locals || {}; let userId = null; if (req.user) { userId = req.user._id; } forumsData.getForumByUser(userId) .then((forum) => { userIn...
const router = require('express').Router(); const data = require("../data"); const forumsData = data.forums; router.get('/', (req, res) => { let userInfo = req.locals || {}; let userId = null; if (req.user) { userId = req.user._id; } forumsData.getForumByUser(userId) .then((forum) => { ...
34
1.545455
33
1
5d208b6efc552830ce1128ffa89693d567cb5043
.travis.yml
.travis.yml
language: clojure dist: xenial sudo: true branches: only: - master before_install: - sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6B05F25D762E3157 - sudo apt-get update - bash etc/ci-setup.sh install: true script: eval "$TEST_CMD" after_script: heroku keys:remove $USER@`hostname` env: globa...
language: clojure dist: xenial sudo: true branches: only: - master before_install: - sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6B05F25D762E3157 - sudo apt-get update - bash etc/ci-setup.sh - gem update --system install: true script: eval "$TEST_CMD" after_script: heroku keys:remove $USER...
Add workaround for bundler bug
Add workaround for bundler bug
YAML
mit
heroku/heroku-buildpack-clojure,heroku/heroku-buildpack-clojure
yaml
## Code Before: language: clojure dist: xenial sudo: true branches: only: - master before_install: - sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6B05F25D762E3157 - sudo apt-get update - bash etc/ci-setup.sh install: true script: eval "$TEST_CMD" after_script: heroku keys:remove $USER@`hostna...
language: clojure dist: xenial sudo: true branches: only: - master before_install: - sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6B05F25D762E3157 - sudo apt-get update - bash etc/ci-setup.sh + - gem update --system install: true script: eval "$TEST_CMD" after_scri...
1
0.043478
1
0
6757d9086ba4165f9422215a091d28ecbad7641b
main.rs
main.rs
enum Color { Black = 0, Blue = 1, Green = 2, Cyan = 3, Red = 4, Pink = 5, Brown = 6, LightGray = 7, DarkGray = 8, LightBlue = 9, LightGreen = 10, LightCyan = 11, LightRed = 12, LightPink = 13, Yellow = 14, ...
enum Color { Black = 0, Blue = 1, Green = 2, Cyan = 3, Red = 4, Pink = 5, Brown = 6, LightGray = 7, DarkGray = 8, LightBlue = 9, LightGreen = 10, LightCyan = 11, LightRed = 12, LightPink = 13, Yellow = 14, ...
Remove range since 0.11 doesn't like it.
Remove range since 0.11 doesn't like it.
Rust
mit
smkell/rustboot,smkell/rustboot
rust
## Code Before: enum Color { Black = 0, Blue = 1, Green = 2, Cyan = 3, Red = 4, Pink = 5, Brown = 6, LightGray = 7, DarkGray = 8, LightBlue = 9, LightGreen = 10, LightCyan = 11, LightRed = 12, LightPink = 13, Ye...
enum Color { Black = 0, Blue = 1, Green = 2, Cyan = 3, Red = 4, Pink = 5, Brown = 6, LightGray = 7, DarkGray = 8, LightBlue = 9, LightGreen = 10, LightCyan = 11, LightRed = 12, LightPi...
31
0.534483
5
26
a7c5c9d27d29e14ebb2d314890b40eab318501ac
dialogos/admin.py
dialogos/admin.py
from django.contrib import admin from dialogos.models import Comment class CommentAdmin(admin.ModelAdmin): list_display = ['author', 'content_type', 'public'] list_filter = ['public', 'content_type'] admin.site.register(Comment, CommentAdmin)
from django.contrib import admin from dialogos.models import Comment class CommentAdmin(admin.ModelAdmin): list_display = ["author", "content_type", "public"] list_filter = ["public", "content_type"] admin.site.register(Comment, CommentAdmin)
Update style to match Pinax conventions
Update style to match Pinax conventions
Python
mit
pinax/pinax-comments,rizumu/dialogos,GeoNode/geonode-dialogos,eldarion/dialogos,georgedorn/dialogos,pinax/pinax-comments
python
## Code Before: from django.contrib import admin from dialogos.models import Comment class CommentAdmin(admin.ModelAdmin): list_display = ['author', 'content_type', 'public'] list_filter = ['public', 'content_type'] admin.site.register(Comment, CommentAdmin) ## Instruction: Update style to match Pinax conv...
from django.contrib import admin + from dialogos.models import Comment + class CommentAdmin(admin.ModelAdmin): - list_display = ['author', 'content_type', 'public'] ? ^ ^ ^ ^ ^ ^ + list_display = ["author", "content_type", "public"] ? ...
7
0.875
5
2
c803eabf3d0bf1511a85f96b0a91d8238f01001d
examples/snapshots/snapshot14/README.md
examples/snapshots/snapshot14/README.md
Getting started with routing using react-router Key points: - react-router (v0.13.3) - Route - HashLocation - DefaultRoute - Link
Getting started with routing using react-router Key points: - react-router (v0.13.3) - Route - RouteHandler - DefaultRoute - Link
Update description of example 14
Update description of example 14
Markdown
mit
seanlin0800/intro_react,seanlin0800/intro_react
markdown
## Code Before: Getting started with routing using react-router Key points: - react-router (v0.13.3) - Route - HashLocation - DefaultRoute - Link ## Instruction: Update description of example 14 ## Code After: Getting started with routing using react-router Key points: - react-router (v0.13.3) - Route - R...
Getting started with routing using react-router Key points: - react-router (v0.13.3) - Route - - HashLocation + - RouteHandler - DefaultRoute - Link
2
0.222222
1
1
cae2b6283cafc48fea7f58d465cd04f0ec778417
README.md
README.md
Java implementation of core ILP functions See https://github.com/interledger/rfcs/blob/master/0003-interledger-protocol/0003-interledger-protocol.md
Java implementation of core ILP functions See https://github.com/interledger/rfcs/blob/master/0003-interledger-protocol/0003-interledger-protocol.md Depends on https://github.com/adrianhopebailie/java-crypto-conditions
Add note about dependance on Crypto-Conditions
Add note about dependance on Crypto-Conditions
Markdown
apache-2.0
controlsurface/java-ilp-core,interledger/java-ilp-core
markdown
## Code Before: Java implementation of core ILP functions See https://github.com/interledger/rfcs/blob/master/0003-interledger-protocol/0003-interledger-protocol.md ## Instruction: Add note about dependance on Crypto-Conditions ## Code After: Java implementation of core ILP functions See https://github.com/interledg...
Java implementation of core ILP functions See https://github.com/interledger/rfcs/blob/master/0003-interledger-protocol/0003-interledger-protocol.md + + Depends on https://github.com/adrianhopebailie/java-crypto-conditions
2
0.666667
2
0
76c39d833dd21e58bd981eb14bccbfc3746f7360
README.md
README.md
[![GoDoc](https://godoc.org/github.com/jitsi/jwtsi?status.svg)](https://godoc.org/github.com/jitsi/jwtsi) [![License](https://img.shields.io/badge/license-FreeBSD-blue.svg)](https://opensource.org/licenses/BSD-2-Clause) The Jitsi JWT Service is an OAuth2 frontend that allows authentication with a number of providers ...
[![GoDoc](https://godoc.org/github.com/jitsi/jwtsi?status.svg)](https://godoc.org/github.com/jitsi/jwtsi) [![License](https://img.shields.io/badge/license-FreeBSD-blue.svg)](https://opensource.org/licenses/BSD-2-Clause) The Jitsi JWT Service is an OAuth2 frontend that allows authentication with a number of providers ...
Update description in the readme.
Update description in the readme.
Markdown
bsd-2-clause
jitsi/jap,jitsi/jap
markdown
## Code Before: [![GoDoc](https://godoc.org/github.com/jitsi/jwtsi?status.svg)](https://godoc.org/github.com/jitsi/jwtsi) [![License](https://img.shields.io/badge/license-FreeBSD-blue.svg)](https://opensource.org/licenses/BSD-2-Clause) The Jitsi JWT Service is an OAuth2 frontend that allows authentication with a numb...
[![GoDoc](https://godoc.org/github.com/jitsi/jwtsi?status.svg)](https://godoc.org/github.com/jitsi/jwtsi) [![License](https://img.shields.io/badge/license-FreeBSD-blue.svg)](https://opensource.org/licenses/BSD-2-Clause) The Jitsi JWT Service is an OAuth2 frontend that allows authentication with a number o...
7
0.318182
6
1
cf4efad282939e120046eb8e8271d377f4a3d122
viaduct/templates/page/view_super.htm
viaduct/templates/page/view_super.htm
{% from 'macros/flash.htm' import render_flash %} {% from 'macros/custom_form.htm' import user_fields %} {% from 'macros/form.htm' import render_field %} {% extends 'content.htm' %} {% block content %} <div class='mainblock'> <div class='page-header'> {% if ModuleAPI.can_write('page') and Use...
{% from 'macros/flash.htm' import render_flash %} {% from 'macros/custom_form.htm' import user_fields %} {% from 'macros/form.htm' import render_field %} {% extends 'content.htm' %} {% block content %} <div class='mainblock'> <div class='page-header'> {% if ModuleAPI.can_write('page') and (no...
Fix edit button for non-existant pages
Fix edit button for non-existant pages The logic for displaying the edit button on pages was: is the user in a group that can edit the page, and can the user edit this specific page. Now when a page does not exist, the user might have rights to edit pages, but no rights to edit this specific page exist, so the logic f...
HTML
mit
viaict/viaduct,viaict/viaduct,viaict/viaduct,viaict/viaduct,viaict/viaduct
html
## Code Before: {% from 'macros/flash.htm' import render_flash %} {% from 'macros/custom_form.htm' import user_fields %} {% from 'macros/form.htm' import render_field %} {% extends 'content.htm' %} {% block content %} <div class='mainblock'> <div class='page-header'> {% if ModuleAPI.can_write...
{% from 'macros/flash.htm' import render_flash %} {% from 'macros/custom_form.htm' import user_fields %} {% from 'macros/form.htm' import render_field %} {% extends 'content.htm' %} {% block content %} <div class='mainblock'> <div class='page-header'> - {% if ModuleAPI.can...
3
0.103448
2
1
9ed6c2e8e7e30a17ca70ff4385fa70db680933a3
README.md
README.md
A generator for protocol buffer described APIs for and in C#. This is a generator for API client libraries for APIs specified by protocol buffers, such as those inside Google. It takes a protocol buffer (with particular annotations) and uses it to generate a client library. ## Purpose We aim for this generator to r...
A generator for protocol buffer described APIs for and in C#. [![Travis build Status](https://api.travis-ci.org/googleapis/gapic-generator-csharp.svg?branch=master)](https://travis-ci.org/googleapis/gapic-generator-csharp) This is a generator for API client libraries for APIs specified by protocol buffers, such as t...
Add travis build badge to readme
Add travis build badge to readme
Markdown
apache-2.0
googleapis/gapic-generator-csharp,googleapis/gapic-generator-csharp
markdown
## Code Before: A generator for protocol buffer described APIs for and in C#. This is a generator for API client libraries for APIs specified by protocol buffers, such as those inside Google. It takes a protocol buffer (with particular annotations) and uses it to generate a client library. ## Purpose We aim for thi...
A generator for protocol buffer described APIs for and in C#. + + [![Travis build Status](https://api.travis-ci.org/googleapis/gapic-generator-csharp.svg?branch=master)](https://travis-ci.org/googleapis/gapic-generator-csharp) This is a generator for API client libraries for APIs specified by protocol buffer...
2
0.153846
2
0
b7e38f3fc299d906ab81ab7826af96ea4769d066
fireplace/cards/wog/neutral_common.py
fireplace/cards/wog/neutral_common.py
from ..utils import * ## # Minions class OG_151: "Tentacle of N'Zoth" deathrattle = Hit(ALL_MINIONS, 1) class OG_156: "Bilefin Tidehunter" play = Summon(CONTROLLER, "OG_156a") class OG_158: "Zealous Initiate" deathrattle = Buff(RANDOM_FRIENDLY_MINION, "OG_158e") OG_158e = buff(+1, +1) class OG_323: "Po...
from ..utils import * ## # Minions class OG_150: "Aberrant Berserker" enrage = Refresh(SELF, buff="OG_150e") OG_150e = buff(atk=2) class OG_151: "Tentacle of N'Zoth" deathrattle = Hit(ALL_MINIONS, 1) class OG_156: "Bilefin Tidehunter" play = Summon(CONTROLLER, "OG_156a") class OG_158: "Zealous Initiate...
Implement Aberrant Berserker, Infested Tauren, and Spawn of N'Zoth
Implement Aberrant Berserker, Infested Tauren, and Spawn of N'Zoth
Python
agpl-3.0
NightKev/fireplace,jleclanche/fireplace,beheh/fireplace
python
## Code Before: from ..utils import * ## # Minions class OG_151: "Tentacle of N'Zoth" deathrattle = Hit(ALL_MINIONS, 1) class OG_156: "Bilefin Tidehunter" play = Summon(CONTROLLER, "OG_156a") class OG_158: "Zealous Initiate" deathrattle = Buff(RANDOM_FRIENDLY_MINION, "OG_158e") OG_158e = buff(+1, +1) cl...
from ..utils import * ## # Minions + + class OG_150: + "Aberrant Berserker" + enrage = Refresh(SELF, buff="OG_150e") + + OG_150e = buff(atk=2) + class OG_151: "Tentacle of N'Zoth" deathrattle = Hit(ALL_MINIONS, 1) class OG_156: "Bilefin Tidehunter" play = Summon(CONTROLLER, "OG...
19
0.730769
19
0
c68e3747c5674b459719a620d2c9cd6c22721039
README.md
README.md
Scripts to configure a Mesos cluster using Mesos and Mesosphere services. The main features are: - Mesos master running the Marathon and Chronos frameworks - Mesos agent with Docker containerizer - Mesos DNS for core service discovery - Marathon load balancer using HAProxy for SSL and proxying to internal appl...
Scripts to configure a Mesos cluster using Mesos and Mesosphere services. The main features are: - Mesos master running the Marathon and Chronos frameworks - Mesos agent with Docker containerizer - Mesos DNS for core service discovery - Marathon load balancer using HAProxy for SSL and proxying to internal app...
Add link to Travis build status badge
Add link to Travis build status badge
Markdown
apache-2.0
ypg-data/mesos-stack,ypg-data/mesos-stack
markdown
## Code Before: Scripts to configure a Mesos cluster using Mesos and Mesosphere services. The main features are: - Mesos master running the Marathon and Chronos frameworks - Mesos agent with Docker containerizer - Mesos DNS for core service discovery - Marathon load balancer using HAProxy for SSL and proxying to ...
Scripts to configure a Mesos cluster using Mesos and Mesosphere services. + The main features are: - Mesos master running the Marathon and Chronos frameworks - Mesos agent with Docker containerizer - Mesos DNS for core service discovery - Marathon load balancer using HAProxy for SSL and proxying ...
3
0.076923
3
0
0f2ccc881e8d2b8b0f4064e3e1fae39b14875821
tortilla/utils.py
tortilla/utils.py
import six from formats import FormatBank, discover_json, discover_yaml formats = FormatBank() discover_json(formats, content_type='application/json') discover_yaml(formats, content_type='application/x-yaml') def run_from_ipython(): try: __IPYTHON__ return True except NameError: r...
import six from formats import FormatBank, discover_json, discover_yaml formats = FormatBank() discover_json(formats, content_type='application/json') discover_yaml(formats, content_type='application/x-yaml') def run_from_ipython(): return getattr(__builtins__, "__IPYTHON__", False) class Bunch(dict): ...
Refactor run_from_ipython() implementation to make it pass static code analysis test
Refactor run_from_ipython() implementation to make it pass static code analysis test
Python
mit
redodo/tortilla
python
## Code Before: import six from formats import FormatBank, discover_json, discover_yaml formats = FormatBank() discover_json(formats, content_type='application/json') discover_yaml(formats, content_type='application/x-yaml') def run_from_ipython(): try: __IPYTHON__ return True except Name...
import six from formats import FormatBank, discover_json, discover_yaml formats = FormatBank() discover_json(formats, content_type='application/json') discover_yaml(formats, content_type='application/x-yaml') def run_from_ipython(): + return getattr(__builtins__, "__IPYTHON__", Fals...
6
0.166667
1
5
cede6dcbee2a9179f6932615d4522e70eef942c0
Tests/Unit/Manager/MeasureManagerTest.php
Tests/Unit/Manager/MeasureManagerTest.php
<?php namespace Akeneo\Bundle\MeasureBundle\Tests\Unit\Manager; use Akeneo\Bundle\MeasureBundle\Manager\MeasureManager; class MeasureManagerTest extends \PHPUnit_Framework_TestCase { public function setUp() { $this->measureManager = new MeasureManager; $this->measureManager->setMeasureConfig(...
<?php namespace Akeneo\Bundle\MeasureBundle\Tests\Unit\Manager; use Akeneo\Bundle\MeasureBundle\Manager\MeasureManager; class MeasureManagerTest extends \PHPUnit_Framework_TestCase { public function setUp() { $this->measureManager = new MeasureManager; $this->measureManager->setMeasureConfig(...
Add UT on standard family unit
Add UT on standard family unit
PHP
mit
danielsan80/MeasureBundle
php
## Code Before: <?php namespace Akeneo\Bundle\MeasureBundle\Tests\Unit\Manager; use Akeneo\Bundle\MeasureBundle\Manager\MeasureManager; class MeasureManagerTest extends \PHPUnit_Framework_TestCase { public function setUp() { $this->measureManager = new MeasureManager; $this->measureManager->s...
<?php namespace Akeneo\Bundle\MeasureBundle\Tests\Unit\Manager; use Akeneo\Bundle\MeasureBundle\Manager\MeasureManager; class MeasureManagerTest extends \PHPUnit_Framework_TestCase { public function setUp() { $this->measureManager = new MeasureManager; $this->measureMa...
9
0.195652
9
0
6ca66521bfaeb4d049147893eb61aeb08516451c
app.rb
app.rb
require 'sinatra' class Grokily < Sinatra::Application # Not using the API? Just redirect to Github. get '/' do redirect 'https://github.com/benjaminasmith/grokily' end end
require 'sinatra/base' class Grokily < Sinatra::Base # Not using the API? Just redirect to Github. get '/' do redirect 'https://github.com/benjaminasmith/grokily' end run! if app_file == $0 end
Switch to the simpler Sinatra Base style - let's keep it simple for now and remove unnecessary complexity.
Switch to the simpler Sinatra Base style - let's keep it simple for now and remove unnecessary complexity.
Ruby
mit
benjaminasmith/grokily
ruby
## Code Before: require 'sinatra' class Grokily < Sinatra::Application # Not using the API? Just redirect to Github. get '/' do redirect 'https://github.com/benjaminasmith/grokily' end end ## Instruction: Switch to the simpler Sinatra Base style - let's keep it simple for now and remove unnecessary co...
- require 'sinatra' + require 'sinatra/base' ? +++++ - class Grokily < Sinatra::Application ? ^^^^^^ ^^^^ + class Grokily < Sinatra::Base ? ^ ^^ # Not using the API? Just redirect to Github. get '/' do redirect 'https://github.com/...
7
0.583333
3
4
0b69e5b84bb9cfb066dafac994b26469fe790b16
.github/ISSUE_TEMPLATE.md
.github/ISSUE_TEMPLATE.md
- [ ] This issue is about **specifically** the [git-scm.com](https://git-scm.com) website and is **not** an issue about - [ ] Git (or its man pages), which should be raised with the [community](https://git-scm.com/community), - [ ] Git for Windows, which should be raised at [git-for-windows/git](https://gith...
- [ ] This issue is about **specifically** the [git-scm.com](https://git-scm.com) website and is **not** an issue about - [ ] Git (or its man pages), which are located under https://git-scm.com/docs, should be raised with the [community](https://git-scm.com/community), - [ ] Git for Windows, which should be r...
Add more info to location of external sources
Add more info to location of external sources Add more info to location of external sources on issue template
Markdown
mit
mosoft521/gitscm-next,Mokolea/git-scm.com,git/git-scm.com,git/git-scm.com,git/git-scm.com,mosoft521/gitscm-next,mosoft521/gitscm-next,jasonlong/git-scm.com,jasonlong/git-scm.com,jasonlong/git-scm.com,Mokolea/git-scm.com,Mokolea/git-scm.com,jasonlong/git-scm.com,git/git-scm.com,mosoft521/gitscm-next,Mokolea/git-scm.com
markdown
## Code Before: - [ ] This issue is about **specifically** the [git-scm.com](https://git-scm.com) website and is **not** an issue about - [ ] Git (or its man pages), which should be raised with the [community](https://git-scm.com/community), - [ ] Git for Windows, which should be raised at [git-for-windows/g...
- - [ ] This issue is about **specifically** the [git-scm.com](https://git-scm.com) website and is **not** an issue about ? - + - [ ] This issue is about **specifically** the [git-scm.com](https://git-scm.com) website and is **not** an issue about - - [ ] Git (or its man pages), which should be raised with the [...
6
1.5
3
3
392f58abf7b163bb34e395f5818daa0a13d05342
pyscriptic/tests/instructions_test.py
pyscriptic/tests/instructions_test.py
from unittest import TestCase from pyscriptic.instructions import PipetteOp, TransferGroup, PrePostMix class PipetteOpTests(TestCase): def setUp(self): self.mix = PrePostMix( volume="5:microliter", speed="1:microliter/second", repetitions=10, ) def test_tr...
from unittest import TestCase from pyscriptic.instructions import PipetteOp, TransferGroup, PrePostMix from pyscriptic.submit import pyobj_to_std_types class PipetteOpTests(TestCase): def setUp(self): self.mix = PrePostMix( volume="5:microliter", speed="0.5:microliter/second", ...
Test conversion of Transfer to standard types works
Test conversion of Transfer to standard types works
Python
bsd-2-clause
naderm/pytranscriptic,naderm/pytranscriptic
python
## Code Before: from unittest import TestCase from pyscriptic.instructions import PipetteOp, TransferGroup, PrePostMix class PipetteOpTests(TestCase): def setUp(self): self.mix = PrePostMix( volume="5:microliter", speed="1:microliter/second", repetitions=10, ) ...
from unittest import TestCase from pyscriptic.instructions import PipetteOp, TransferGroup, PrePostMix + from pyscriptic.submit import pyobj_to_std_types class PipetteOpTests(TestCase): def setUp(self): self.mix = PrePostMix( volume="5:microliter", - speed="1:mic...
30
0.833333
28
2
dda2197b1fd9db8fac38916a12b1cc9759e978fa
src/main/resources/group-id-only-style.json
src/main/resources/group-id-only-style.json
{ "default-node": { "type": "box", "default-font": { "size": 14, "name": "Helvetica" } } }
{ "default-node": { "type": "box", "group-id-font": { "size": 14 } } }
Adjust to new merge mechanism
Adjust to new merge mechanism
JSON
apache-2.0
ferstl/depgraph-maven-plugin
json
## Code Before: { "default-node": { "type": "box", "default-font": { "size": 14, "name": "Helvetica" } } } ## Instruction: Adjust to new merge mechanism ## Code After: { "default-node": { "type": "box", "group-id-font": { "size": 14 } } }
{ "default-node": { "type": "box", - "default-font": { + "group-id-font": { - "size": 14, ? - + "size": 14 - "name": "Helvetica" } } }
5
0.555556
2
3
f49e2a93cbf59fa013429a18ceec1ff082873d46
spec/dummy/app/themes/default/views/thredded/private_topics/_form.html.erb
spec/dummy/app/themes/default/views/thredded/private_topics/_form.html.erb
<h3 class="post-form--title">New Private Topic</h3> <%= form_for [messageboard, private_topic], url: messageboard_private_topics_path(messageboard, @private_topic), html: { class: css_class } do |form| %> <ul class="form-list"> <li> <%= form.label :title %> <%= form.text_field :title, { placehol...
<%= form_for [messageboard, private_topic], url: messageboard_private_topics_path(messageboard, @private_topic), html: { class: css_class } do |form| %> <ul class="form-list on-top"> <li class="title"> <%= form.label :title, 'Private Topic Title' %> <%= form.text_field :title, { placeholder: plac...
Make private topics form act like topics form
Make private topics form act like topics form
HTML+ERB
mit
prohippocoder/thredded,prohippocoder/thredded,jvoss/thredded,jvoss/thredded,jayroh/thredded,thredded/thredded,jayroh/thredded,jayroh/thredded,prohippocoder/thredded,thredded/thredded,jvoss/thredded,prohippocoder/thredded,thredded/thredded,thredded/thredded,jayroh/thredded,jvoss/thredded
html+erb
## Code Before: <h3 class="post-form--title">New Private Topic</h3> <%= form_for [messageboard, private_topic], url: messageboard_private_topics_path(messageboard, @private_topic), html: { class: css_class } do |form| %> <ul class="form-list"> <li> <%= form.label :title %> <%= form.text_field :t...
- <h3 class="post-form--title">New Private Topic</h3> - <%= form_for [messageboard, private_topic], url: messageboard_private_topics_path(messageboard, @private_topic), html: { class: css_class } do |form| %> - <ul class="form-list"> + <ul class="form-list on-top"> ? +++++++ - ...
14
0.5
6
8
952da381a38eb169f2533f9e5591b0318d055be9
app/models/sku.rb
app/models/sku.rb
class Sku < ActiveRecord::Base include IslayShop::MetaData include IslayShop::Statuses belongs_to :product has_many :sku_assets, :order => 'position ASC' has_many :assets, :through => :sku_assets, :order => 'sku_assets.position ASC' has_many :stock_logs, :class_name => 'SkuStockLog',...
class Sku < ActiveRecord::Base include IslayShop::MetaData include IslayShop::Statuses belongs_to :product has_many :sku_assets, :order => 'position ASC' has_many :assets, :through => :sku_assets, :order => 'sku_assets.position ASC' has_many :stock_logs, :class_name =...
Remove the test meta-data from the SKU model.
Remove the test meta-data from the SKU model.
Ruby
mit
spookandpuff/islay-shop,spookandpuff/islay-shop,spookandpuff/islay-shop
ruby
## Code Before: class Sku < ActiveRecord::Base include IslayShop::MetaData include IslayShop::Statuses belongs_to :product has_many :sku_assets, :order => 'position ASC' has_many :assets, :through => :sku_assets, :order => 'sku_assets.position ASC' has_many :stock_logs, :class_name =...
class Sku < ActiveRecord::Base include IslayShop::MetaData include IslayShop::Statuses belongs_to :product - has_many :sku_assets, :order => 'position ASC' + has_many :sku_assets, :order => 'position ASC' ? ++++++++ - has...
8
0.275862
2
6
c397de16c2c6b5d832189942f1fcb43b0ef4c5b1
src/geo/ui/widgets/category/paginator_template.tpl
src/geo/ui/widgets/category/paginator_template.tpl
<div class="Widget-contentFlex"> <button class="u-rSpace--m Widget-buttonIcon js-searchToggle"> <i class="CDBIcon CDBIcon-Lens"></i> </button> <p class="Widget-textSmaller Widget-textSmaller--bold Widget-textSmall--upper"> <% if (!isLocked) { %> <%- categoriesCount > 12 ? (categoriesCount - 11) : ca...
<div class="Widget-contentFlex"> <button class="u-rSpace--m Widget-buttonIcon js-searchToggle"> <i class="CDBIcon CDBIcon-Lens"></i> </button> <p class="Widget-textSmaller Widget-textSmaller--bold Widget-textSmall--upper"> <% if (isLocked) { %> search <% } else { %> <%- categoriesCount > 1...
Add search text close to the lens icon when category widget is locked
Add search text close to the lens icon when category widget is locked
Smarty
bsd-3-clause
splashblot/cartodb.js,splashblot/cartodb.js,splashblot/cartodb.js,splashblot/cartodb.js
smarty
## Code Before: <div class="Widget-contentFlex"> <button class="u-rSpace--m Widget-buttonIcon js-searchToggle"> <i class="CDBIcon CDBIcon-Lens"></i> </button> <p class="Widget-textSmaller Widget-textSmaller--bold Widget-textSmall--upper"> <% if (!isLocked) { %> <%- categoriesCount > 12 ? (categories...
<div class="Widget-contentFlex"> <button class="u-rSpace--m Widget-buttonIcon js-searchToggle"> <i class="CDBIcon CDBIcon-Lens"></i> </button> <p class="Widget-textSmaller Widget-textSmaller--bold Widget-textSmall--upper"> - <% if (!isLocked) { %> ? - + <% if (isLocked) { %> + ...
4
0.307692
3
1
e7ebee397de5ff64d6741eac0d99404ffe53bbc4
data/transition-sites/ea.yml
data/transition-sites/ea.yml
--- site: ea whitehall_slug: environment-agency title: Environment Agency redirection_date: 8th April 2014 furl: www.gov.uk/environment-agency homepage: https://www.gov.uk/government/organisations/environment-agency tna_timestamp: 20131203145522 host: www.environment-agency.gov.uk aliases: - environment-agency.gov.uk -...
--- site: ea whitehall_slug: environment-agency title: Environment Agency redirection_date: 8th April 2014 furl: www.gov.uk/environment-agency homepage: https://www.gov.uk/government/organisations/environment-agency tna_timestamp: 20131203145522 host: www.environment-agency.gov.uk aliases: - environment-agency.gov.uk -...
Configure additional alias for EA main domain
Configure additional alias for EA main domain
YAML
mit
alphagov/transition-config,alphagov/transition-config
yaml
## Code Before: --- site: ea whitehall_slug: environment-agency title: Environment Agency redirection_date: 8th April 2014 furl: www.gov.uk/environment-agency homepage: https://www.gov.uk/government/organisations/environment-agency tna_timestamp: 20131203145522 host: www.environment-agency.gov.uk aliases: - environment...
--- site: ea whitehall_slug: environment-agency title: Environment Agency redirection_date: 8th April 2014 furl: www.gov.uk/environment-agency homepage: https://www.gov.uk/government/organisations/environment-agency tna_timestamp: 20131203145522 host: www.environment-agency.gov.uk aliases: - envir...
1
0.083333
1
0
1c6e8571254fb53fc9a434acecf3274e430e5199
webapp-php/js/socorro/nav.js
webapp-php/js/socorro/nav.js
$(document).ready(function () { var url_base = $("#url_base").val(), url_site = $("#url_site").val(), product, product_version, report; $("#q").focus(function () { $(this).attr('value', ''); }); // Used to handle the selection of specific product. if ($("#pr...
$(document).ready(function () { var url_base = $("#url_base").val(), url_site = $("#url_site").val(), product, product_version, report; $("#q").focus(function () { $(this).attr('value', ''); }); // Used to handle the selection of specific product. if ($("#pr...
Select top most version if non selected for top crashers
Select top most version if non selected for top crashers
JavaScript
mpl-2.0
Tchanders/socorro,Tchanders/socorro,adngdb/socorro,bsmedberg/socorro,cliqz/socorro,Tayamarn/socorro,twobraids/socorro,cliqz/socorro,lonnen/socorro,spthaolt/socorro,linearregression/socorro,yglazko/socorro,pcabido/socorro,bsmedberg/socorro,spthaolt/socorro,adngdb/socorro,rhelmer/socorro,Tchanders/socorro,adngdb/socorro,...
javascript
## Code Before: $(document).ready(function () { var url_base = $("#url_base").val(), url_site = $("#url_site").val(), product, product_version, report; $("#q").focus(function () { $(this).attr('value', ''); }); // Used to handle the selection of specific product...
$(document).ready(function () { var url_base = $("#url_base").val(), url_site = $("#url_site").val(), product, product_version, report; $("#q").focus(function () { $(this).attr('value', ''); }); // Used to handle the selection of specific...
14
0.341463
13
1
4270a49c64a5538b0ac6b596fbc8da7b31af3040
app/controllers/concerns/exception_handler.rb
app/controllers/concerns/exception_handler.rb
module Concerns module ExceptionHandler extend ActiveSupport::Concern included do rescue_from ActionController::RoutingError, with: :render_404 rescue_from ActionController::UnknownController, with: :render_404 rescue_from ActiveRecord::RecordNotFound, with: :render_404 ...
module Concerns module ExceptionHandler extend ActiveSupport::Concern included do rescue_from ActionController::RoutingError, with: :render_404 rescue_from ActionController::UnknownController, with: :render_404 rescue_from ActiveRecord::RecordNotFound, with: :render_404 ...
Fix redirect when inside an engine
Fix redirect when inside an engine
Ruby
mit
jinutm/silveralms.com,MicroPasts/micropasts-crowdfunding,jinutm/silveralms.com,jinutm/silverpro,jinutm/silverme,gustavoguichard/neighborly,jinutm/silverpro,raksonibs/raimcrowd,jinutm/silverprod,MicroPasts/micropasts-crowdfunding,jinutm/silverme,jinutm/silverprod,MicroPasts/micropasts-crowdfunding,jinutm/silveralms.com,...
ruby
## Code Before: module Concerns module ExceptionHandler extend ActiveSupport::Concern included do rescue_from ActionController::RoutingError, with: :render_404 rescue_from ActionController::UnknownController, with: :render_404 rescue_from ActiveRecord::RecordNotFound, with: :...
module Concerns module ExceptionHandler extend ActiveSupport::Concern included do rescue_from ActionController::RoutingError, with: :render_404 rescue_from ActionController::UnknownController, with: :render_404 rescue_from ActiveRecord::RecordNotFound, with: :...
4
0.102564
2
2
ba26418f5e16771681129a28c9308af9b10e8de6
src/profiling.md
src/profiling.md
This discussion talks about how profile the compiler and find out where it spends its time. If you just want to get a general overview, it is often a good idea to just add `-Zself-profile` option to the rustc command line. This will break down time spent into various categories. But if you want a more detailed look,...
This section talks about how to profile the compiler and find out where it spends its time. Depending on what you're trying to measure, there are several different approaches: - If you want to see if a PR improves or regresses compiler performance: - The [rustc-perf](https://github.com/rust-lang-nursery/rustc-pe...
Improve "Profiling the compiler" docs
Improve "Profiling the compiler" docs Add mentions and links to `rustc-perf` and `measureme`.
Markdown
apache-2.0
rust-lang/rustc-dev-guide,rust-lang/rustc-dev-guide,rust-lang/rustc-dev-guide,rust-lang/rustc-dev-guide
markdown
## Code Before: This discussion talks about how profile the compiler and find out where it spends its time. If you just want to get a general overview, it is often a good idea to just add `-Zself-profile` option to the rustc command line. This will break down time spent into various categories. But if you want a mor...
- This discussion talks about how profile the compiler and find out ? -- ^^^ + This section talks about how to profile the compiler and find out where it spends its time. ? + ^ +++ ++++++++++++++++++++++++++++ - where it spends its time. If you just...
19
2.375
13
6
ca03a5985f6b089139e85a1c8ad36849be9f5ef7
protocol/Greenstack/payload/CMakeLists.txt
protocol/Greenstack/payload/CMakeLists.txt
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Greenstack/payload) macro(Flatbuffers) add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/Greenstack/payload/${ARGV0}_generated.h COMMAND ${FLATC} -c -o ${CMAKE_CURRENT_BINARY_DIR}/Gre...
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Greenstack/payload) macro(Flatbuffers) add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/Greenstack/payload/${ARGV0}_generated.h COMMAND ${FLATC} -c -o ${CMAKE_CURRENT_BINARY_DIR}/Gre...
Add dep to flatc for the generated flatbuffer files
CBD-1942: Add dep to flatc for the generated flatbuffer files The source generated by one version of flatbuffers may not compile with the header files from another version of flatbuffers so they should be regenerated when we upgrade flatbuffers. Change-Id: I269f18245ee8824dea1749f8b7711f619143207e Reviewed-on: http:/...
Text
bsd-3-clause
daverigby/memcached,daverigby/kv_engine,couchbase/memcached,daverigby/kv_engine,daverigby/kv_engine,couchbase/memcached,couchbase/memcached,daverigby/memcached,daverigby/kv_engine,couchbase/memcached,daverigby/memcached,daverigby/memcached
text
## Code Before: file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Greenstack/payload) macro(Flatbuffers) add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/Greenstack/payload/${ARGV0}_generated.h COMMAND ${FLATC} -c -o ${CMAKE_CURRENT...
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Greenstack/payload) macro(Flatbuffers) add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/Greenstack/payload/${ARGV0}_generated.h COMMAND ${FLATC} -c -o ${CMAKE_CURRENT_B...
1
0.030303
1
0
8f9615ebd7ae4802b1e44d6b8243aafb785a7fa3
pamqp/__init__.py
pamqp/__init__.py
"""AMQP Specifications and Classes""" __author__ = 'Gavin M. Roy' __email__ = 'gavinmroy@gmail.com' __since__ = '2011-09-23' __version__ '1.0.1' from header import ProtocolHeader from header import ContentHeader import body import codec import frame import specification
"""AMQP Specifications and Classes""" __author__ = 'Gavin M. Roy' __email__ = 'gavinmroy@gmail.com' __since__ = '2011-09-23' __version__ = '1.0.1' from pamqp.header import ProtocolHeader from pamqp.header import ContentHeader from pamqp import body from pamqp import codec from pamqp import frame from pamqp import sp...
Use absolute imports and fix the version string
Use absolute imports and fix the version string
Python
bsd-3-clause
gmr/pamqp
python
## Code Before: """AMQP Specifications and Classes""" __author__ = 'Gavin M. Roy' __email__ = 'gavinmroy@gmail.com' __since__ = '2011-09-23' __version__ '1.0.1' from header import ProtocolHeader from header import ContentHeader import body import codec import frame import specification ## Instruction: Use absolute ...
"""AMQP Specifications and Classes""" __author__ = 'Gavin M. Roy' __email__ = 'gavinmroy@gmail.com' __since__ = '2011-09-23' - __version__ '1.0.1' + __version__ = '1.0.1' ? ++ - from header import ProtocolHeader + from pamqp.header import ProtocolHeader ? ++++++ - from header import Con...
14
1
7
7
1f915924a5508b005d8359c8ba0d1508468df99e
_includes/components/nav-menu.html
_includes/components/nav-menu.html
<div class="top-bar-container" data-sticky-container> <div class="sticky sticky-topbar" data-sticky data-options="anchor: page; marginTop: 0; stickyOn: small;"> <nav class="top-bar topbar-responsive"> <div class="top-bar-title"> <span data-responsive-toggle="topbar-responsive" data-hide-for="med...
<div class="top-bar-container" data-sticky-container> <div class="sticky sticky-topbar" data-sticky data-options="anchor: page; marginTop: 0; stickyOn: small;"> <nav class="top-bar topbar-responsive"> <div class="top-bar-title"> <span data-responsive-toggle="topbar-responsive" data-hide-for="med...
Add fast-charge url to main menu
Add fast-charge url to main menu
HTML
mit
parsfibernet/fibernet-ir-official,parsfibernet/fibernet-ir-official,parsfibernet/fibernet-ir-official
html
## Code Before: <div class="top-bar-container" data-sticky-container> <div class="sticky sticky-topbar" data-sticky data-options="anchor: page; marginTop: 0; stickyOn: small;"> <nav class="top-bar topbar-responsive"> <div class="top-bar-title"> <span data-responsive-toggle="topbar-responsive" da...
<div class="top-bar-container" data-sticky-container> <div class="sticky sticky-topbar" data-sticky data-options="anchor: page; marginTop: 0; stickyOn: small;"> <nav class="top-bar topbar-responsive"> <div class="top-bar-title"> <span data-responsive-toggle="topbar-responsive" data-hid...
2
0.076923
1
1
41caee25e5dbc65640cfbacb44752cbfc39c4f25
clean.sh
clean.sh
set -eux set -o pipefail if [ ! -f /.dockerenv ]; then echo "This should be run within the container"; exit 0; fi # We want the root user to have the same keys as us. if [ ! -f ~/.ssh/id_rsa ]; then ssh-keygen -f ~/.ssh/id_rsa -t rsa -N ''; fi sudo rm -rf /root/.ssh; sudo cp -r ~/.ssh/ /root/.ssh && sudo ...
set -eux set -o pipefail if [ ! -f /.dockerenv ]; then echo "This should be run within the container"; exit 0; fi sudo yum -y update; rm -rf ~/tripleo-quickstart; rm -rf ~/.quickstart ; rm -rf ~/.ansible rm -rf ~/.ara rm -rf ~/.novaclient rm -rf ~/.pki # We want the root user to have the same keys as us. if...
Delete more of the temp created stuff
Delete more of the temp created stuff
Shell
bsd-2-clause
d0ugal/tripleo-util,d0ugal/tripleo-util
shell
## Code Before: set -eux set -o pipefail if [ ! -f /.dockerenv ]; then echo "This should be run within the container"; exit 0; fi # We want the root user to have the same keys as us. if [ ! -f ~/.ssh/id_rsa ]; then ssh-keygen -f ~/.ssh/id_rsa -t rsa -N ''; fi sudo rm -rf /root/.ssh; sudo cp -r ~/.ssh/ /ro...
set -eux set -o pipefail if [ ! -f /.dockerenv ]; then echo "This should be run within the container"; exit 0; fi + + sudo yum -y update; + + rm -rf ~/tripleo-quickstart; + rm -rf ~/.quickstart ; + rm -rf ~/.ansible + rm -rf ~/.ara + rm -rf ~/.novaclient + rm -rf ~/.pki # We want the root ...
12
0.521739
9
3
19490b99cc6e555e1aa3d680749935ef924c72b4
packages/de/describe.yaml
packages/de/describe.yaml
homepage: https://github.com/riugabachi/describe changelog-type: markdown hash: 7f5a96f5fbd6ad724601ceb4556a3483113b79cd8e2776e977b11bc2ab14c261 test-bench-deps: cereal: ! '>=0.5.8 && <0.6' bytestring: ! '>=0.10.8 && <0.11' base: ^>=4.12.0.0 describe: -any QuickCheck: -any maintainer: n/a synopsis: Combinator...
homepage: https://github.com/riugabachi/describe changelog-type: markdown hash: 5ab8be078d533709289a168efd64efab9d8d90068836de4ac0fe4da197c046e8 test-bench-deps: cereal: ! '>=0.5.8 && <0.6' bytestring: ! '>=0.10.8 && <0.11' base: ^>=4.12.0.0 describe: -any QuickCheck: -any maintainer: n/a synopsis: Combinator...
Update from Hackage at 2019-09-05T15:07:04Z
Update from Hackage at 2019-09-05T15:07:04Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/riugabachi/describe changelog-type: markdown hash: 7f5a96f5fbd6ad724601ceb4556a3483113b79cd8e2776e977b11bc2ab14c261 test-bench-deps: cereal: ! '>=0.5.8 && <0.6' bytestring: ! '>=0.10.8 && <0.11' base: ^>=4.12.0.0 describe: -any QuickCheck: -any maintainer: n/a syno...
homepage: https://github.com/riugabachi/describe changelog-type: markdown - hash: 7f5a96f5fbd6ad724601ceb4556a3483113b79cd8e2776e977b11bc2ab14c261 + hash: 5ab8be078d533709289a168efd64efab9d8d90068836de4ac0fe4da197c046e8 test-bench-deps: cereal: ! '>=0.5.8 && <0.6' bytestring: ! '>=0.10.8 && <0.11' bas...
9
0.3
7
2
afaee01ed395f254c2a64d00dbc32d4dba808145
pkgs/development/python-modules/pycairo/default.nix
pkgs/development/python-modules/pycairo/default.nix
{ stdenv, fetchurl, python, pkgconfig, cairo, x11 }: stdenv.mkDerivation { name = "pycairo-1.8.8"; src = fetchurl { url = http://cairographics.org/releases/pycairo-1.8.8.tar.gz; sha256 = "0q18hd4ai4raljlvd76ylgi30kxpr2qq83ka6gzwh0ya8fcmjlig"; }; buildInputs = [ python pkgconfig cairo x11 ]; }
{ stdenv, fetchurl, python, pkgconfig, cairo, x11 }: stdenv.mkDerivation rec { version = "1.10.0"; name = "pycairo-${version}"; src = if python.is_py3k or false then fetchurl { url = "http://cairographics.org/releases/pycairo-${version}.tar.bz2"; sha256 = "1gjkf8x6hyx1skq3hhwcbvwifxvrf9qxis5vx8x5...
Update to 1.10.0 and support both python 2 and python 3
pycairo: Update to 1.10.0 and support both python 2 and python 3 Close #1802.
Nix
mit
NixOS/nixpkgs,triton/triton,NixOS/nixpkgs,SymbiFlow/nixpkgs,triton/triton,SymbiFlow/nixpkgs,NixOS/nixpkgs,triton/triton,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,triton/trito...
nix
## Code Before: { stdenv, fetchurl, python, pkgconfig, cairo, x11 }: stdenv.mkDerivation { name = "pycairo-1.8.8"; src = fetchurl { url = http://cairographics.org/releases/pycairo-1.8.8.tar.gz; sha256 = "0q18hd4ai4raljlvd76ylgi30kxpr2qq83ka6gzwh0ya8fcmjlig"; }; buildInputs = [ python pkgconfig cairo x...
{ stdenv, fetchurl, python, pkgconfig, cairo, x11 }: - stdenv.mkDerivation { + stdenv.mkDerivation rec { ? ++++ - name = "pycairo-1.8.8"; + version = "1.10.0"; + name = "pycairo-${version}"; + src = if python.is_py3k or false - src = fetchurl { ? --- ^ + then fetchurl { ? ^...
25
2.272727
19
6
d71ce0031985a876b6908a984747c5d55aece8be
deploy.sh
deploy.sh
git checkout master cd htck npm cache clean npm install bower install grunt build ls cd .. ls htck git branch -D gh-pages cp -R htck/dist/ /tmp/ ls /tmp git checkout --orphan gh-pages # Remove all git tracked files (keeps libs and node_modules) git ls-files -z | xargs -0 rm -f rm .gitignore mv /tmp/dist/* . ls git add...
branch=${1:-"master"} echo "Deploying $branch to gh-pages" git checkout master cd htck npm cache clean npm install bower install grunt build ls cd .. ls htck git branch -D gh-pages cp -R htck/dist/ /tmp/ ls /tmp git checkout --orphan gh-pages # Remove all git tracked files (keeps libs and node_modules) git ls-files -z...
Deploy a specific branch to gh-pages
Deploy a specific branch to gh-pages
Shell
mit
htck/bayeux,mthoretton/htck,mthoretton/htck,mthoretton/htck,htck/bayeux,htck/bayeux
shell
## Code Before: git checkout master cd htck npm cache clean npm install bower install grunt build ls cd .. ls htck git branch -D gh-pages cp -R htck/dist/ /tmp/ ls /tmp git checkout --orphan gh-pages # Remove all git tracked files (keeps libs and node_modules) git ls-files -z | xargs -0 rm -f rm .gitignore mv /tmp/dis...
+ branch=${1:-"master"} + echo "Deploying $branch to gh-pages" git checkout master cd htck npm cache clean npm install bower install grunt build ls cd .. ls htck git branch -D gh-pages cp -R htck/dist/ /tmp/ ls /tmp git checkout --orphan gh-pages # Remove all git tracked files (keeps libs a...
4
0.173913
3
1
deddc688a60fc54ed7196c61ae866b5ddc36f74e
app/Providers/AuthServiceProvider.php
app/Providers/AuthServiceProvider.php
<?php namespace App\Providers; use App\Models\Site; use App\Models\Page; use App\Models\Media; use App\Policies\PagePolicy; use App\Policies\SitePolicy; use App\Policies\RoutePolicy; use App\Policies\MediaPolicy; use App\Models\Definitions\Block as BlockDefinition; use App\Models\Definitions\Layout as LayoutDefinitio...
<?php namespace App\Providers; use App\Models\Site; use App\Models\Page; use App\Models\Media; use App\Policies\PagePolicy; use App\Policies\SitePolicy; use App\Policies\MediaPolicy; use App\Models\Definitions\Block as BlockDefinition; use App\Models\Definitions\Layout as LayoutDefinition; use App\Models\Definitions\...
Remove obsolete code which stopped non-admins from editing.
Remove obsolete code which stopped non-admins from editing.
PHP
mit
unikent/astro,unikent/astro,unikent/astro,unikent/astro,unikent/astro
php
## Code Before: <?php namespace App\Providers; use App\Models\Site; use App\Models\Page; use App\Models\Media; use App\Policies\PagePolicy; use App\Policies\SitePolicy; use App\Policies\RoutePolicy; use App\Policies\MediaPolicy; use App\Models\Definitions\Block as BlockDefinition; use App\Models\Definitions\Layout as...
<?php namespace App\Providers; use App\Models\Site; use App\Models\Page; use App\Models\Media; use App\Policies\PagePolicy; use App\Policies\SitePolicy; - use App\Policies\RoutePolicy; use App\Policies\MediaPolicy; use App\Models\Definitions\Block as BlockDefinition; use App\Models\Definitions...
2
0.041667
0
2
17d53a1d40b1d15f08a80f9f03dd3922156d9fb6
src/repo.c
src/repo.c
/** * repo.c * * Copyright (C) 2017 Nickolas Burr <nickolasburr@gmail.com> */ #include "repo.h" /** * Get all stashes for a repository. */ struct stash *get_stashes (struct repo *r) { return r->stashes; } /** * Set a copy of all stashes for a repository in memory. */ void set_stashes (struct repo *r) { // ...
/** * repo.c * * Copyright (C) 2017 Nickolas Burr <nickolasburr@gmail.com> */ #include "repo.h" /** * Get all stash entries for a repository. */ struct stash *get_stash (struct repo *r) { return r->stash; } /** * Set a copy of all stash entries for a repository. */ void set_stash (struct repo *r) { char *cm...
Work on stash retrieval, memory allocation
Work on stash retrieval, memory allocation
C
mit
nickolasburr/git-stashd,nickolasburr/git-stashd,nickolasburr/git-stashd
c
## Code Before: /** * repo.c * * Copyright (C) 2017 Nickolas Burr <nickolasburr@gmail.com> */ #include "repo.h" /** * Get all stashes for a repository. */ struct stash *get_stashes (struct repo *r) { return r->stashes; } /** * Set a copy of all stashes for a repository in memory. */ void set_stashes (struct...
/** * repo.c * * Copyright (C) 2017 Nickolas Burr <nickolasburr@gmail.com> */ - #include "repo.h" /** - * Get all stashes for a repository. + * Get all stash entries for a repository. ? ++++++ */ - struct stash *get_stashes (struct repo *r) { ? -- + st...
26
0.530612
14
12
74caf9b73081a2e77997d87207745f4ac83a3619
package.json
package.json
{ "name": "dispatch-proxy", "description": "A SOCKS5/HTTP proxy that balances traffic between multiple internet connections.", "author": "Alexandre Kirszenberg <a.kirszenberg@gmail.com>", "version": "0.0.9", "repository": { "type": "git", "url": "git@github.com:morhaus/dispatch-proxy.git" }, "bi...
{ "name": "dispatch-proxy", "description": "A SOCKS5/HTTP proxy that balances traffic between multiple internet connections.", "author": "Alexandre Kirszenberg <a.kirszenberg@gmail.com>", "version": "0.0.9", "keywords": [ "dispatch", "proxy", "socks", "socks5", "http", "load", "bal...
Add engine dependency (advisory) as well as some keywords for the npm registry
Add engine dependency (advisory) as well as some keywords for the npm registry
JSON
mit
Nithanaroy/dispatch-custom,Morhaus/dispatch-proxy,tadev/dispatch-proxy
json
## Code Before: { "name": "dispatch-proxy", "description": "A SOCKS5/HTTP proxy that balances traffic between multiple internet connections.", "author": "Alexandre Kirszenberg <a.kirszenberg@gmail.com>", "version": "0.0.9", "repository": { "type": "git", "url": "git@github.com:morhaus/dispatch-proxy....
{ "name": "dispatch-proxy", "description": "A SOCKS5/HTTP proxy that balances traffic between multiple internet connections.", "author": "Alexandre Kirszenberg <a.kirszenberg@gmail.com>", "version": "0.0.9", + "keywords": [ + "dispatch", + "proxy", + "socks", + "socks5", + "http"...
13
0.419355
13
0
1358826b2691ed429a1f95e290be43aacde6ebde
travis/macos-install.sh
travis/macos-install.sh
set -ex export HOMEBREW_NO_INSTALL_CLEANUP=1 # Python 3.7.4 with 10.12 bottle brew upgrade https://raw.githubusercontent.com/Homebrew/homebrew-core/e9004bd764c9436750a50e0b428548f68fe6a38a/Formula/python.rb which python3 python3 --version which pip3 pip3 --version brew install albertosottile/syncplay/pyside python...
set -ex export HOMEBREW_NO_INSTALL_CLEANUP=1 # Python 3.7.4 with 10.12 bottle brew upgrade https://raw.githubusercontent.com/Homebrew/homebrew-core/e9004bd764c9436750a50e0b428548f68fe6a38a/Formula/python.rb which python3 python3 --version which pip3 pip3 --version brew install albertosottile/syncplay/pyside # Exp...
Upgrade Qt version after the pyside install
Upgrade Qt version after the pyside install
Shell
apache-2.0
Syncplay/syncplay,Syncplay/syncplay,alby128/syncplay,alby128/syncplay
shell
## Code Before: set -ex export HOMEBREW_NO_INSTALL_CLEANUP=1 # Python 3.7.4 with 10.12 bottle brew upgrade https://raw.githubusercontent.com/Homebrew/homebrew-core/e9004bd764c9436750a50e0b428548f68fe6a38a/Formula/python.rb which python3 python3 --version which pip3 pip3 --version brew install albertosottile/syncpl...
set -ex export HOMEBREW_NO_INSTALL_CLEANUP=1 # Python 3.7.4 with 10.12 bottle brew upgrade https://raw.githubusercontent.com/Homebrew/homebrew-core/e9004bd764c9436750a50e0b428548f68fe6a38a/Formula/python.rb which python3 python3 --version which pip3 pip3 --version brew install albertoso...
4
0.210526
4
0
87509d6afc8c96a7988ef57b1cacc7c4ac3817e5
index.js
index.js
var cp = require('child_process'); module.exports = function whereis(name, cb) { cp.exec('which ' + name, function(error, stdout, stderr) { stdout = stdout.split('\n')[0]; if (error || stderr || stdout === '' || stdout.charAt(0) !== '/') { stdout = stdout.split('\n')[0]; cp.exec('whereis ' + name...
var cp = require('child_process'); module.exports = function whereis(name, cb) { cp.exec('which ' + name, function(error, stdout, stderr) { stdout = stdout.split('\n')[0]; if (error || stderr || stdout === '' || stdout.charAt(0) !== '/') { stdout = stdout.split('\n')[0]; cp.exec('whereis ' + name...
Add Windows support using 'where'
Add Windows support using 'where'
JavaScript
mit
vvo/node-whereis
javascript
## Code Before: var cp = require('child_process'); module.exports = function whereis(name, cb) { cp.exec('which ' + name, function(error, stdout, stderr) { stdout = stdout.split('\n')[0]; if (error || stderr || stdout === '' || stdout.charAt(0) !== '/') { stdout = stdout.split('\n')[0]; cp.exec('...
var cp = require('child_process'); module.exports = function whereis(name, cb) { cp.exec('which ' + name, function(error, stdout, stderr) { stdout = stdout.split('\n')[0]; if (error || stderr || stdout === '' || stdout.charAt(0) !== '/') { stdout = stdout.split('\n')[0]; cp.exec('...
14
0.666667
10
4
055df98325e9b2b212236b2f59ac0ad6d6689d55
app/models/game_status.rb
app/models/game_status.rb
class GameStatus < ActiveRecord::Base STATUS_NEW = 0 STATUS_IN_PROGRESS = 1 STATUS_LOST = 2 STATUS_WON = 3 validates :id, numericality: { only_integer: true } validate :game_status_is_valid def game_status_is_valid if id < STATUS_NEW or id > STATUS_WON errors.add(:id, I18n.t('INVALID_GAME_STAT...
class GameStatus < ActiveRecord::Base self.primary_key = "id" STATUS_NEW = 0 STATUS_IN_PROGRESS = 1 STATUS_LOST = 2 STATUS_WON = 3 validates :id, numericality: { only_integer: true } validate :game_status_is_valid def game_status_is_valid if id < STATUS_NEW or id > STATUS_WON errors.add(:id...
Fix game status primary key when running with sqlite
Fix game status primary key when running with sqlite
Ruby
mit
aclemons/hangman-rails,aclemons/hangman-rails,aclemons/hangman-rails,aclemons/hangman-rails
ruby
## Code Before: class GameStatus < ActiveRecord::Base STATUS_NEW = 0 STATUS_IN_PROGRESS = 1 STATUS_LOST = 2 STATUS_WON = 3 validates :id, numericality: { only_integer: true } validate :game_status_is_valid def game_status_is_valid if id < STATUS_NEW or id > STATUS_WON errors.add(:id, I18n.t('I...
class GameStatus < ActiveRecord::Base + self.primary_key = "id" + STATUS_NEW = 0 STATUS_IN_PROGRESS = 1 STATUS_LOST = 2 STATUS_WON = 3 validates :id, numericality: { only_integer: true } validate :game_status_is_valid def game_status_is_valid if id < STATUS_NEW or id > STATU...
2
0.125
2
0
227dac8b50c8817e3a85497e76ad405d5e453d5a
src/hakim/hakim.go
src/hakim/hakim.go
package main import ( "checks" "flag" "log" "github.com/mitchellh/go-ps" ) var ( gardenAddr = flag.String("gardenAddr", "localhost:9241", "Garden host and port (typically localhost:9241)") requiredProcesses = []string{"consul.exe", "containerizer.exe", "garden-windows.exe", "rep.exe", "metron.exe"} bbs...
package main import ( "checks" "flag" "log" "github.com/mitchellh/go-ps" ) var ( gardenAddr = flag.String("gardenAddr", "localhost:9241", "Garden host and port (typically localhost:9241)") requiredProcesses = []string{"consul.exe", "containerizer.exe", "garden-windows.exe", "rep.exe", "metron.exe"} bbs...
Print out all the failing things
Print out all the failing things Instead of just running one check, run them all. Signed-off-by: Anthony Emengo <7b3c5a7825e2f856203b8d882230abcb78036abf@pivotal.io>
Go
apache-2.0
cloudfoundry-incubator/hakim
go
## Code Before: package main import ( "checks" "flag" "log" "github.com/mitchellh/go-ps" ) var ( gardenAddr = flag.String("gardenAddr", "localhost:9241", "Garden host and port (typically localhost:9241)") requiredProcesses = []string{"consul.exe", "containerizer.exe", "garden-windows.exe", "rep.exe", "m...
package main import ( "checks" "flag" "log" "github.com/mitchellh/go-ps" ) var ( gardenAddr = flag.String("gardenAddr", "localhost:9241", "Garden host and port (typically localhost:9241)") requiredProcesses = []string{"consul.exe", "containerizer.exe", "garden-windows.exe", "re...
24
0.444444
12
12
e944c62bbb47f7c050186ab2d942cdd01373e812
app/views/assets/_map.html.haml
app/views/assets/_map.html.haml
= LeafletMap({:mapid => 'lmap', :markers => @markers, :tile_provider => Rails.application.config.map_tile_provider, :map_key => Rails.application.config.map_tile_key, :access_token => Rails.application.config.map_access_token, :min_zoom => Rails.application.config.map_min_zoom_level, :max_zoom => Rails.appl...
= LeafletMap({:mapid => 'lmap', :markers => @asset.map_markers.to_json, :tile_provider => Rails.application.config.map_tile_provider, :map_key => Rails.application.config.map_tile_key, :access_token => Rails.application.config.map_access_token, :min_zoom => Rails.application.config.map_min_zoom_level, :max_...
Fix issue where an asset was not being rendered on the map
Fix issue where an asset was not being rendered on the map
Haml
mit
camsys/transam_spatial,camsys/transam_spatial,camsys/transam_spatial
haml
## Code Before: = LeafletMap({:mapid => 'lmap', :markers => @markers, :tile_provider => Rails.application.config.map_tile_provider, :map_key => Rails.application.config.map_tile_key, :access_token => Rails.application.config.map_access_token, :min_zoom => Rails.application.config.map_min_zoom_level, :max_zo...
= LeafletMap({:mapid => 'lmap', - :markers => @markers, + :markers => @asset.map_markers.to_json, :tile_provider => Rails.application.config.map_tile_provider, :map_key => Rails.application.config.map_tile_key, :access_token => Rails.application.config.map_access_token, :min_zoom => Rails.applicat...
2
0.181818
1
1
f0bc01603b491f14e593cc24329c18efc2beaf40
lib/amazon/metadata-config.js
lib/amazon/metadata-config.js
// -------------------------------------------------------------------------------------------------------------------- // // metadata-config.js - config for AWS Instance Metadata // // Copyright (c) 2011, 2012 AppsAttic Ltd - http://www.appsattic.com/ // Written by Andrew Chilton <chilts@appsattic.com> // // License: ...
// -------------------------------------------------------------------------------------------------------------------- // // metadata-config.js - config for AWS Instance Metadata // // Copyright (c) 2011, 2012 AppsAttic Ltd - http://www.appsattic.com/ // Written by Andrew Chilton <chilts@appsattic.com> // // License: ...
Make sure the extractBody is set (not just body)
Make sure the extractBody is set (not just body)
JavaScript
mit
chilts/awssum
javascript
## Code Before: // -------------------------------------------------------------------------------------------------------------------- // // metadata-config.js - config for AWS Instance Metadata // // Copyright (c) 2011, 2012 AppsAttic Ltd - http://www.appsattic.com/ // Written by Andrew Chilton <chilts@appsattic.com>...
// -------------------------------------------------------------------------------------------------------------------- // // metadata-config.js - config for AWS Instance Metadata // // Copyright (c) 2011, 2012 AppsAttic Ltd - http://www.appsattic.com/ // Written by Andrew Chilton <chilts@appsattic.com> /...
12
0.230769
4
8
0fbf0ec5106cbae23fe7d48b4276f63cc2664ed8
.travis.yml
.travis.yml
language: python dist: xenial python: - "2.6" - "2.7" - "3.3" - "3.4" - "3.5" - "3.6" - "3.7" - "3.8-dev" # linux deps addons: apt: packages: - mlocate - coreutils - python-virtualenv # osx deps before_install: - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi -...
language: python dist: xenial python: - "2.7" - "3.4" - "3.5" - "3.6" - "3.7" - "3.8-dev" # linux deps addons: apt: packages: - mlocate - coreutils - python-virtualenv # osx deps before_install: - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi - if [[ "$TRAVIS_OS_N...
Use trusty for ancient py26/py33 CI builds
Use trusty for ancient py26/py33 CI builds
YAML
mit
randomir/envie,randomir/envie
yaml
## Code Before: language: python dist: xenial python: - "2.6" - "2.7" - "3.3" - "3.4" - "3.5" - "3.6" - "3.7" - "3.8-dev" # linux deps addons: apt: packages: - mlocate - coreutils - python-virtualenv # osx deps before_install: - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then bre...
language: python dist: xenial python: - - "2.6" - "2.7" - - "3.3" - "3.4" - "3.5" - "3.6" - "3.7" - "3.8-dev" # linux deps addons: apt: packages: - mlocate - coreutils - python-virtualenv # osx deps before_install: - if [[ "$TRA...
6
0.12766
4
2
0bdd2df16823f129b39549a0e41adf1b29470d88
challenges/__init__.py
challenges/__init__.py
from os.path import dirname, basename, isfile import glob import sys modules = glob.glob(dirname(__file__)+"/c*[0-9].py") sys.path.append(dirname(__file__)) # Load all of the modules containing the challenge classes modules = [basename(path)[:-3] for path in modules] modules.sort() # Ensure that modules are in c1-c* ...
from os.path import dirname, basename, isfile import glob import sys modules = glob.glob(dirname(__file__)+"/c*[0-9].py") sys.path.append(dirname(__file__)) # Load all of the modules containing the challenge classes modules = [basename(path)[:-3] for path in modules] modules.sort() # Ensure that modules are in c1-c* ...
Fix bug in loading of c* modules
Fix bug in loading of c* modules
Python
mit
GunshipPenguin/billionaire_challenge,GunshipPenguin/billionaire_challenge
python
## Code Before: from os.path import dirname, basename, isfile import glob import sys modules = glob.glob(dirname(__file__)+"/c*[0-9].py") sys.path.append(dirname(__file__)) # Load all of the modules containing the challenge classes modules = [basename(path)[:-3] for path in modules] modules.sort() # Ensure that modul...
from os.path import dirname, basename, isfile import glob import sys modules = glob.glob(dirname(__file__)+"/c*[0-9].py") sys.path.append(dirname(__file__)) # Load all of the modules containing the challenge classes modules = [basename(path)[:-3] for path in modules] modules.sort() # Ensure that m...
5
0.3125
4
1