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
94684d67c32d07eb1478b1d29d38f8b54a0db2e3
docs/module_elements.rst
docs/module_elements.rst
Geometric Entities ^^^^^^^^^^^^^^^^^^ .. automodule:: geomdl.elements :members: :undoc-members: :inherited-members: :show-inheritance:
Geometric Entities ^^^^^^^^^^^^^^^^^^ The geometric entities are used for advanced algorithms, such as tessellation. The :py:class:`.AbstractEntity` class provides the abstract base for all geometric and topological entities. This module provides the following geometric and topological entities: * :py:class`.Vertex` * :py:class`.Triangle` * :py:class`.Face` * :py:class`.Body` .. automodule:: geomdl.elements :members: :undoc-members: :inherited-members: :show-inheritance:
Update geometric entities module documentation
Update geometric entities module documentation
reStructuredText
mit
orbingol/NURBS-Python,orbingol/NURBS-Python
restructuredtext
## Code Before: Geometric Entities ^^^^^^^^^^^^^^^^^^ .. automodule:: geomdl.elements :members: :undoc-members: :inherited-members: :show-inheritance: ## Instruction: Update geometric entities module documentation ## Code After: Geometric Entities ^^^^^^^^^^^^^^^^^^ The geometric entities are used for advanced algorithms, such as tessellation. The :py:class:`.AbstractEntity` class provides the abstract base for all geometric and topological entities. This module provides the following geometric and topological entities: * :py:class`.Vertex` * :py:class`.Triangle` * :py:class`.Face` * :py:class`.Body` .. automodule:: geomdl.elements :members: :undoc-members: :inherited-members: :show-inheritance:
Geometric Entities ^^^^^^^^^^^^^^^^^^ + + The geometric entities are used for advanced algorithms, such as tessellation. The :py:class:`.AbstractEntity` class + provides the abstract base for all geometric and topological entities. + + This module provides the following geometric and topological entities: + + * :py:class`.Vertex` + * :py:class`.Triangle` + * :py:class`.Face` + * :py:class`.Body` .. automodule:: geomdl.elements :members: :undoc-members: :inherited-members: :show-inheritance:
10
1.25
10
0
e9e4744c67e901c79e13e05d4fb0c554f8b22c01
.travis.yml
.travis.yml
language: python python: - 3.6 before_install: - git clone https://github.com/tschijnmo/DummyRDD.git - cd DummyRDD; python3 setup.py install; cd .. install: - python3 setup.py install script: - export DUMMY_SPARK=1 - cd tests - pytest -sv
language: python python: - 3.6 addons: apt: sources: - ubuntu-toolchain-r-test packages: - gcc-7.2 - g++-7.2 before_install: - git clone https://github.com/tschijnmo/DummyRDD.git - cd DummyRDD; python3 setup.py install; cd .. install: - export CC=gcc-7 - export CXX=g++-7 - python3 setup.py install script: - export DUMMY_SPARK=1 - cd tests - pytest -sv
Update GCC version in Travis CI
Update GCC version in Travis CI
YAML
mit
tschijnmo/drudge,tschijnmo/drudge,tschijnmo/drudge
yaml
## Code Before: language: python python: - 3.6 before_install: - git clone https://github.com/tschijnmo/DummyRDD.git - cd DummyRDD; python3 setup.py install; cd .. install: - python3 setup.py install script: - export DUMMY_SPARK=1 - cd tests - pytest -sv ## Instruction: Update GCC version in Travis CI ## Code After: language: python python: - 3.6 addons: apt: sources: - ubuntu-toolchain-r-test packages: - gcc-7.2 - g++-7.2 before_install: - git clone https://github.com/tschijnmo/DummyRDD.git - cd DummyRDD; python3 setup.py install; cd .. install: - export CC=gcc-7 - export CXX=g++-7 - python3 setup.py install script: - export DUMMY_SPARK=1 - cd tests - pytest -sv
language: python python: - 3.6 + + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - gcc-7.2 + - g++-7.2 before_install: - git clone https://github.com/tschijnmo/DummyRDD.git - cd DummyRDD; python3 setup.py install; cd .. install: + - export CC=gcc-7 + - export CXX=g++-7 - python3 setup.py install script: - export DUMMY_SPARK=1 - cd tests - pytest -sv
10
0.666667
10
0
cf03e20eab5b94570ceb380299c23464669a0c83
app/jobs/transcode_episode_job.rb
app/jobs/transcode_episode_job.rb
class TranscodeEpisodeJob < ActiveJob::Base queue_as :default def perform(episode) if episode.audio_file_url.present? transcoder.create_job( pipeline_id: secrets.aws_audio_pipeline_id, input: { key: episode.audio_file_url }, output: { key: episode.audio_file_url.gsub(/wav/, 'm3u8') } ) episode.update transcoded: true end end private def transcoder @transcoder ||= Aws::ElasticTranscoder::Client.new( region: secrets.aws_region, credentials: { aws_access_key_id: secrets.aws_access_key_id, aws_secret_access_key: secrets.aws_secret_access_key } ) end def secrets Rails.application.secrets end end
class TranscodeEpisodeJob < ActiveJob::Base queue_as :default def perform(episode) return unless episode.audio_file_url.present? transcoder.create_job( pipeline_id: secrets.aws_audio_pipeline_id, input: { key: episode.audio_file_url }, output: { key: episode.audio_file_url.gsub(/wav/, 'm3u8') } ) episode.update transcoded: true end private def transcoder @transcoder ||= Aws::ElasticTranscoder::Client.new( region: secrets.aws_region, credentials: { aws_access_key_id: secrets.aws_access_key_id, aws_secret_access_key: secrets.aws_secret_access_key } ) end def secrets Rails.application.secrets end end
Use a guard clause to return out of the method
Use a guard clause to return out of the method
Ruby
bsd-2-clause
waxpoetic/brotherly,waxpoetic/brotherly,waxpoetic/brotherly,waxpoetic/brotherly
ruby
## Code Before: class TranscodeEpisodeJob < ActiveJob::Base queue_as :default def perform(episode) if episode.audio_file_url.present? transcoder.create_job( pipeline_id: secrets.aws_audio_pipeline_id, input: { key: episode.audio_file_url }, output: { key: episode.audio_file_url.gsub(/wav/, 'm3u8') } ) episode.update transcoded: true end end private def transcoder @transcoder ||= Aws::ElasticTranscoder::Client.new( region: secrets.aws_region, credentials: { aws_access_key_id: secrets.aws_access_key_id, aws_secret_access_key: secrets.aws_secret_access_key } ) end def secrets Rails.application.secrets end end ## Instruction: Use a guard clause to return out of the method ## Code After: class TranscodeEpisodeJob < ActiveJob::Base queue_as :default def perform(episode) return unless episode.audio_file_url.present? transcoder.create_job( pipeline_id: secrets.aws_audio_pipeline_id, input: { key: episode.audio_file_url }, output: { key: episode.audio_file_url.gsub(/wav/, 'm3u8') } ) episode.update transcoded: true end private def transcoder @transcoder ||= Aws::ElasticTranscoder::Client.new( region: secrets.aws_region, credentials: { aws_access_key_id: secrets.aws_access_key_id, aws_secret_access_key: secrets.aws_secret_access_key } ) end def secrets Rails.application.secrets end end
class TranscodeEpisodeJob < ActiveJob::Base queue_as :default def perform(episode) - if episode.audio_file_url.present? ? ^^ + return unless episode.audio_file_url.present? ? ^^^^^^^^^^^^^ - transcoder.create_job( ? -- + transcoder.create_job( - pipeline_id: secrets.aws_audio_pipeline_id, ? -- + pipeline_id: secrets.aws_audio_pipeline_id, - input: { key: episode.audio_file_url }, ? -- + input: { key: episode.audio_file_url }, - output: { key: episode.audio_file_url.gsub(/wav/, 'm3u8') } ? -- + output: { key: episode.audio_file_url.gsub(/wav/, 'm3u8') } - ) ? -- + ) - episode.update transcoded: true ? -- + episode.update transcoded: true - end end private def transcoder @transcoder ||= Aws::ElasticTranscoder::Client.new( region: secrets.aws_region, credentials: { aws_access_key_id: secrets.aws_access_key_id, aws_secret_access_key: secrets.aws_secret_access_key } ) end def secrets Rails.application.secrets end end
15
0.5
7
8
e1032761ed78ede17fd32f3353de3998d6389358
src/main/java/net/sf/taverna/t2/activities/beanshell/servicedescriptions/BeanshellTemplateService.java
src/main/java/net/sf/taverna/t2/activities/beanshell/servicedescriptions/BeanshellTemplateService.java
package net.sf.taverna.t2.activities.beanshell.servicedescriptions; import javax.swing.Icon; import net.sf.taverna.t2.activities.beanshell.BeanshellActivity; import net.sf.taverna.t2.activities.beanshell.BeanshellActivityConfigurationBean; import net.sf.taverna.t2.servicedescriptions.AbstractTemplateService; import net.sf.taverna.t2.servicedescriptions.ServiceDescription; public class BeanshellTemplateService extends AbstractTemplateService<BeanshellActivityConfigurationBean> { private static final String BEANSHELL = "Beanshell"; public String getName() { return BEANSHELL; } @Override public Class<BeanshellActivity> getActivityClass() { return BeanshellActivity.class; } @Override public BeanshellActivityConfigurationBean getActivityConfiguration() { return new BeanshellActivityConfigurationBean(); } @Override public Icon getIcon() { return BeanshellActivityIcon.getBeanshellIcon(); } @Override public String getDescription() { return "A service that allows Beanshell scripts, with dependencies on libraries"; } public static ServiceDescription getServiceDescription() { BeanshellTemplateService bts = new BeanshellTemplateService(); return bts.templateService; } }
package net.sf.taverna.t2.activities.beanshell.servicedescriptions; import java.net.URI; import javax.swing.Icon; import net.sf.taverna.t2.activities.beanshell.BeanshellActivity; import net.sf.taverna.t2.activities.beanshell.BeanshellActivityConfigurationBean; import net.sf.taverna.t2.servicedescriptions.AbstractTemplateService; import net.sf.taverna.t2.servicedescriptions.ServiceDescription; public class BeanshellTemplateService extends AbstractTemplateService<BeanshellActivityConfigurationBean> { private static final String BEANSHELL = "Beanshell"; private static final URI providerId = URI .create("http://taverna.sf.net/2010/service-provider/beanshell"); public String getName() { return BEANSHELL; } @Override public Class<BeanshellActivity> getActivityClass() { return BeanshellActivity.class; } @Override public BeanshellActivityConfigurationBean getActivityConfiguration() { return new BeanshellActivityConfigurationBean(); } @Override public Icon getIcon() { return BeanshellActivityIcon.getBeanshellIcon(); } @Override public String getDescription() { return "A service that allows Beanshell scripts, with dependencies on libraries"; } @SuppressWarnings("unchecked") public static ServiceDescription getServiceDescription() { BeanshellTemplateService bts = new BeanshellTemplateService(); return bts.templateService; } public String getId() { return providerId.toString(); } }
Fix for T2-674: Hardcoded default locations. System default configurable providers are now read from a file in Taverna startup/conf directory. Failing that - they are read from a hard coded list. User can now import and export services from such files as well.
Fix for T2-674: Hardcoded default locations. System default configurable providers are now read from a file in Taverna startup/conf directory. Failing that - they are read from a hard coded list. User can now import and export services from such files as well. git-svn-id: 2b4c7ad77658e4b3615e54128c4b6795c159dfbb@10041 bf327186-88b3-11dd-a302-d386e5130c1c
Java
apache-2.0
apache/incubator-taverna-workbench-common-activities
java
## Code Before: package net.sf.taverna.t2.activities.beanshell.servicedescriptions; import javax.swing.Icon; import net.sf.taverna.t2.activities.beanshell.BeanshellActivity; import net.sf.taverna.t2.activities.beanshell.BeanshellActivityConfigurationBean; import net.sf.taverna.t2.servicedescriptions.AbstractTemplateService; import net.sf.taverna.t2.servicedescriptions.ServiceDescription; public class BeanshellTemplateService extends AbstractTemplateService<BeanshellActivityConfigurationBean> { private static final String BEANSHELL = "Beanshell"; public String getName() { return BEANSHELL; } @Override public Class<BeanshellActivity> getActivityClass() { return BeanshellActivity.class; } @Override public BeanshellActivityConfigurationBean getActivityConfiguration() { return new BeanshellActivityConfigurationBean(); } @Override public Icon getIcon() { return BeanshellActivityIcon.getBeanshellIcon(); } @Override public String getDescription() { return "A service that allows Beanshell scripts, with dependencies on libraries"; } public static ServiceDescription getServiceDescription() { BeanshellTemplateService bts = new BeanshellTemplateService(); return bts.templateService; } } ## Instruction: Fix for T2-674: Hardcoded default locations. System default configurable providers are now read from a file in Taverna startup/conf directory. Failing that - they are read from a hard coded list. User can now import and export services from such files as well. git-svn-id: 2b4c7ad77658e4b3615e54128c4b6795c159dfbb@10041 bf327186-88b3-11dd-a302-d386e5130c1c ## Code After: package net.sf.taverna.t2.activities.beanshell.servicedescriptions; import java.net.URI; import javax.swing.Icon; import net.sf.taverna.t2.activities.beanshell.BeanshellActivity; import net.sf.taverna.t2.activities.beanshell.BeanshellActivityConfigurationBean; import net.sf.taverna.t2.servicedescriptions.AbstractTemplateService; import net.sf.taverna.t2.servicedescriptions.ServiceDescription; public class BeanshellTemplateService extends AbstractTemplateService<BeanshellActivityConfigurationBean> { private static final String BEANSHELL = "Beanshell"; private static final URI providerId = URI .create("http://taverna.sf.net/2010/service-provider/beanshell"); public String getName() { return BEANSHELL; } @Override public Class<BeanshellActivity> getActivityClass() { return BeanshellActivity.class; } @Override public BeanshellActivityConfigurationBean getActivityConfiguration() { return new BeanshellActivityConfigurationBean(); } @Override public Icon getIcon() { return BeanshellActivityIcon.getBeanshellIcon(); } @Override public String getDescription() { return "A service that allows Beanshell scripts, with dependencies on libraries"; } @SuppressWarnings("unchecked") public static ServiceDescription getServiceDescription() { BeanshellTemplateService bts = new BeanshellTemplateService(); return bts.templateService; } public String getId() { return providerId.toString(); } }
package net.sf.taverna.t2.activities.beanshell.servicedescriptions; + + import java.net.URI; import javax.swing.Icon; import net.sf.taverna.t2.activities.beanshell.BeanshellActivity; import net.sf.taverna.t2.activities.beanshell.BeanshellActivityConfigurationBean; import net.sf.taverna.t2.servicedescriptions.AbstractTemplateService; import net.sf.taverna.t2.servicedescriptions.ServiceDescription; public class BeanshellTemplateService extends AbstractTemplateService<BeanshellActivityConfigurationBean> { private static final String BEANSHELL = "Beanshell"; + + private static final URI providerId = URI + .create("http://taverna.sf.net/2010/service-provider/beanshell"); public String getName() { return BEANSHELL; } @Override public Class<BeanshellActivity> getActivityClass() { return BeanshellActivity.class; } @Override public BeanshellActivityConfigurationBean getActivityConfiguration() { return new BeanshellActivityConfigurationBean(); } @Override public Icon getIcon() { return BeanshellActivityIcon.getBeanshellIcon(); } @Override public String getDescription() { return "A service that allows Beanshell scripts, with dependencies on libraries"; } + @SuppressWarnings("unchecked") public static ServiceDescription getServiceDescription() { BeanshellTemplateService bts = new BeanshellTemplateService(); return bts.templateService; } + + public String getId() { + return providerId.toString(); + } }
10
0.232558
10
0
b23da5db66151b4b7740197e53188081b442edd0
README.md
README.md
Jitsi Meet Electron ==== Electron application for [Jitsi Meet](https://github.com/jitsi/jitsi-meet). ## Configuration You can change the Jitsi Meet deployment url with the jitsiMeetURL property from config.js ## Building the sources ```bash npm install ``` ## Statring the application ```bash npm start ``` ## Discuss Please use the [Jitsi dev mailing list](http://lists.jitsi.org/pipermail/dev/) to discuss feature requests before opening an issue on Github.
Jitsi Meet Electron ==== Electron application for [Jitsi Meet](https://github.com/jitsi/jitsi-meet). ## Configuration You can change the Jitsi Meet deployment url with the jitsiMeetURL property from config.js ## Building the sources ```bash npm install ``` ## Working with the [jitsi-meet-electron-utils](https://github.com/jitsi/jitsi-meet-electron-utils) sources By default the jitsi-meet-electron-utils is build from its git repository sources. The default dependency path in package.json is : ```json "jitsi-meet-electron-utils": "jitsi/jitsi-meet-electron-utils" ``` To work with local copy you must change the path to: ```json "jitsi-meet-electron-utils": "file:///Users/name/jitsi-meet-electron-utils-copy", ``` To make the project you must force it to take the sources as `npm update` will not do it. ```bash npm install jitsi-meet-electron-utils --force node_modules/.bin/electron-rebuild ``` NOTE: Also check jitsi-meet-electron-utils's [README](https://github.com/jitsi/jitsi-meet-electron-utils/blob/master/README.md) to see how to configure your environment. ## Statring the application ```bash npm start ``` ## Discuss Please use the [Jitsi dev mailing list](http://lists.jitsi.org/pipermail/dev/) to discuss feature requests before opening an issue on Github.
Add section about using jitsi-meet-electron-utils from source
doc: Add section about using jitsi-meet-electron-utils from source
Markdown
apache-2.0
jitsi/jitsi-meet-electron,jitsi/jitsi-meet-electron
markdown
## Code Before: Jitsi Meet Electron ==== Electron application for [Jitsi Meet](https://github.com/jitsi/jitsi-meet). ## Configuration You can change the Jitsi Meet deployment url with the jitsiMeetURL property from config.js ## Building the sources ```bash npm install ``` ## Statring the application ```bash npm start ``` ## Discuss Please use the [Jitsi dev mailing list](http://lists.jitsi.org/pipermail/dev/) to discuss feature requests before opening an issue on Github. ## Instruction: doc: Add section about using jitsi-meet-electron-utils from source ## Code After: Jitsi Meet Electron ==== Electron application for [Jitsi Meet](https://github.com/jitsi/jitsi-meet). ## Configuration You can change the Jitsi Meet deployment url with the jitsiMeetURL property from config.js ## Building the sources ```bash npm install ``` ## Working with the [jitsi-meet-electron-utils](https://github.com/jitsi/jitsi-meet-electron-utils) sources By default the jitsi-meet-electron-utils is build from its git repository sources. The default dependency path in package.json is : ```json "jitsi-meet-electron-utils": "jitsi/jitsi-meet-electron-utils" ``` To work with local copy you must change the path to: ```json "jitsi-meet-electron-utils": "file:///Users/name/jitsi-meet-electron-utils-copy", ``` To make the project you must force it to take the sources as `npm update` will not do it. ```bash npm install jitsi-meet-electron-utils --force node_modules/.bin/electron-rebuild ``` NOTE: Also check jitsi-meet-electron-utils's [README](https://github.com/jitsi/jitsi-meet-electron-utils/blob/master/README.md) to see how to configure your environment. ## Statring the application ```bash npm start ``` ## Discuss Please use the [Jitsi dev mailing list](http://lists.jitsi.org/pipermail/dev/) to discuss feature requests before opening an issue on Github.
Jitsi Meet Electron ==== Electron application for [Jitsi Meet](https://github.com/jitsi/jitsi-meet). ## Configuration You can change the Jitsi Meet deployment url with the jitsiMeetURL property from config.js ## Building the sources ```bash npm install ``` + ## Working with the [jitsi-meet-electron-utils](https://github.com/jitsi/jitsi-meet-electron-utils) sources + By default the jitsi-meet-electron-utils is build from its git repository sources. The default dependency path in package.json is : + ```json + "jitsi-meet-electron-utils": "jitsi/jitsi-meet-electron-utils" + ``` + + To work with local copy you must change the path to: + ```json + "jitsi-meet-electron-utils": "file:///Users/name/jitsi-meet-electron-utils-copy", + ``` + + To make the project you must force it to take the sources as `npm update` will not do it. + ```bash + npm install jitsi-meet-electron-utils --force + node_modules/.bin/electron-rebuild + ``` + + NOTE: Also check jitsi-meet-electron-utils's [README](https://github.com/jitsi/jitsi-meet-electron-utils/blob/master/README.md) to see how to configure your environment. + ## Statring the application ```bash npm start ``` ## Discuss Please use the [Jitsi dev mailing list](http://lists.jitsi.org/pipermail/dev/) to discuss feature requests before opening an issue on Github.
19
0.95
19
0
55b90e8839148197deb0cabaced5c7788fcf8933
lib/upstreamer/cli.rb
lib/upstreamer/cli.rb
require 'octokit' require 'rugged' module Upstreamer class CLI def self.run(argv = ARGV) self.new(argv).run end def initialize(argv = ARGV) @argv = argv end def run directory = specified_directory || current_directory repo = Rugged::Repository.new(directory) if repo.remotes['upstream'] puts "Error: Remote 'upstream' already exists. (#{repo.remotes['upstream'].url})" return end remote = repo.remotes['origin'] # https://github.com/meganemura/bundler.git username_repository = remote.url[/github.com\/(.*)\.git/, 1] # meganemura/bundler repository = Octokit.repository(username_repository) unless repository.fork? puts 'Error: this repository is not forked repository' return end upstream_url = repository.parent.clone_url repo.remotes.create('upstream', upstream_url) puts "git remote add upstream #{upstream_url}" end def specified_directory @argv.first end def current_directory Dir.pwd end end end
require 'octokit' require 'rugged' module Upstreamer class CLI def self.run(argv = ARGV) self.new(argv).run end def initialize(argv = ARGV) @argv = argv end def run directory = specified_directory || current_directory repo = Rugged::Repository.new(directory) if repo.remotes['upstream'] STDERR.puts "Error: Remote 'upstream' already exists. (#{repo.remotes['upstream'].url})" return end remote = repo.remotes['origin'] # https://github.com/meganemura/bundler.git username_repository = remote.url[/github.com\/(.*)\.git/, 1] # meganemura/bundler repository = Octokit.repository(username_repository) unless repository.fork? STDERR.puts 'Error: this repository is not forked repository' return end upstream_url = repository.parent.clone_url repo.remotes.create('upstream', upstream_url) puts "git remote add upstream #{upstream_url}" end def specified_directory @argv.first end def current_directory Dir.pwd end end end
Modify error message to write to STDERR
Modify error message to write to STDERR
Ruby
mit
meganemura/upstreamer
ruby
## Code Before: require 'octokit' require 'rugged' module Upstreamer class CLI def self.run(argv = ARGV) self.new(argv).run end def initialize(argv = ARGV) @argv = argv end def run directory = specified_directory || current_directory repo = Rugged::Repository.new(directory) if repo.remotes['upstream'] puts "Error: Remote 'upstream' already exists. (#{repo.remotes['upstream'].url})" return end remote = repo.remotes['origin'] # https://github.com/meganemura/bundler.git username_repository = remote.url[/github.com\/(.*)\.git/, 1] # meganemura/bundler repository = Octokit.repository(username_repository) unless repository.fork? puts 'Error: this repository is not forked repository' return end upstream_url = repository.parent.clone_url repo.remotes.create('upstream', upstream_url) puts "git remote add upstream #{upstream_url}" end def specified_directory @argv.first end def current_directory Dir.pwd end end end ## Instruction: Modify error message to write to STDERR ## Code After: require 'octokit' require 'rugged' module Upstreamer class CLI def self.run(argv = ARGV) self.new(argv).run end def initialize(argv = ARGV) @argv = argv end def run directory = specified_directory || current_directory repo = Rugged::Repository.new(directory) if repo.remotes['upstream'] STDERR.puts "Error: Remote 'upstream' already exists. (#{repo.remotes['upstream'].url})" return end remote = repo.remotes['origin'] # https://github.com/meganemura/bundler.git username_repository = remote.url[/github.com\/(.*)\.git/, 1] # meganemura/bundler repository = Octokit.repository(username_repository) unless repository.fork? STDERR.puts 'Error: this repository is not forked repository' return end upstream_url = repository.parent.clone_url repo.remotes.create('upstream', upstream_url) puts "git remote add upstream #{upstream_url}" end def specified_directory @argv.first end def current_directory Dir.pwd end end end
require 'octokit' require 'rugged' module Upstreamer class CLI def self.run(argv = ARGV) self.new(argv).run end def initialize(argv = ARGV) @argv = argv end def run directory = specified_directory || current_directory repo = Rugged::Repository.new(directory) if repo.remotes['upstream'] - puts "Error: Remote 'upstream' already exists. (#{repo.remotes['upstream'].url})" + STDERR.puts "Error: Remote 'upstream' already exists. (#{repo.remotes['upstream'].url})" ? +++++++ return end remote = repo.remotes['origin'] # https://github.com/meganemura/bundler.git username_repository = remote.url[/github.com\/(.*)\.git/, 1] # meganemura/bundler repository = Octokit.repository(username_repository) unless repository.fork? - puts 'Error: this repository is not forked repository' + STDERR.puts 'Error: this repository is not forked repository' ? +++++++ return end upstream_url = repository.parent.clone_url repo.remotes.create('upstream', upstream_url) puts "git remote add upstream #{upstream_url}" end def specified_directory @argv.first end def current_directory Dir.pwd end end end
4
0.086957
2
2
6cc4eacf4c37480e073bba439ddb455f9c062eca
package.json
package.json
{ "name" : "webworker", "version" : "0.8.0", "description" : "An implementation of the HTML5 Web Worker API", "author" : "Peter Griess <pg@std.in>", "engines" : { "node" : "0.1.98 - 0.1.199" }, "dependencies" : { "websocket-client" : "0.9.3 - 0.9.99999" }, "repositories" : [ { "type" : "git", "url" : "http://github.com/pgriess/node-webworker" } ], "licenses" : [ { "type" : "BSD", "url" : "http://github.com/pgriess/node-webworker/blob/master/LICENSE" } ] }
{ "name" : "webworker", "version" : "0.8.0", "description" : "An implementation of the HTML5 Web Worker API", "author" : "Peter Griess <pg@std.in>", "engines" : { "node" : "0.1.98 - 0.1.199" }, "dependencies" : { "websocket-client" : "0.9.3 - 0.9.99999" }, "repositories" : [ { "type" : "git", "url" : "http://github.com/pgriess/node-webworker" } ], "licenses" : [ { "type" : "BSD", "url" : "http://github.com/pgriess/node-webworker/blob/master/LICENSE" } ], "main" : "./lib/webworker" }
Add a main script to do require("webworker") when installed with npm.
Add a main script to do require("webworker") when installed with npm.
JSON
bsd-3-clause
kriskowal/node-webworker,pgriess/node-webworker,iizukanao/node-webworker
json
## Code Before: { "name" : "webworker", "version" : "0.8.0", "description" : "An implementation of the HTML5 Web Worker API", "author" : "Peter Griess <pg@std.in>", "engines" : { "node" : "0.1.98 - 0.1.199" }, "dependencies" : { "websocket-client" : "0.9.3 - 0.9.99999" }, "repositories" : [ { "type" : "git", "url" : "http://github.com/pgriess/node-webworker" } ], "licenses" : [ { "type" : "BSD", "url" : "http://github.com/pgriess/node-webworker/blob/master/LICENSE" } ] } ## Instruction: Add a main script to do require("webworker") when installed with npm. ## Code After: { "name" : "webworker", "version" : "0.8.0", "description" : "An implementation of the HTML5 Web Worker API", "author" : "Peter Griess <pg@std.in>", "engines" : { "node" : "0.1.98 - 0.1.199" }, "dependencies" : { "websocket-client" : "0.9.3 - 0.9.99999" }, "repositories" : [ { "type" : "git", "url" : "http://github.com/pgriess/node-webworker" } ], "licenses" : [ { "type" : "BSD", "url" : "http://github.com/pgriess/node-webworker/blob/master/LICENSE" } ], "main" : "./lib/webworker" }
{ "name" : "webworker", "version" : "0.8.0", "description" : "An implementation of the HTML5 Web Worker API", "author" : "Peter Griess <pg@std.in>", "engines" : { "node" : "0.1.98 - 0.1.199" }, "dependencies" : { "websocket-client" : "0.9.3 - 0.9.99999" }, "repositories" : [ { "type" : "git", "url" : "http://github.com/pgriess/node-webworker" } ], "licenses" : [ { "type" : "BSD", "url" : "http://github.com/pgriess/node-webworker/blob/master/LICENSE" } - ] + ], ? + + "main" : "./lib/webworker" }
3
0.125
2
1
737e3511a4d0ebf02793a45188d67bca7bafd5f2
app/views/calculations/results/paginated.html.erb
app/views/calculations/results/paginated.html.erb
<% @page_title = "Results: #{@event.date.year}: #{@event.full_name}" %> <% cache cache_key(@event, @page, @races) do %> <h2><%= @event.year %> <%= @event.full_name %></h2> <%= render partial: "calculations/date_and_parent", locals: { event: @event } %> <%= render partial: "calculation", locals: { calculation: @calculation } %> <%= render partial: "calculations/years", locals: { calculation: @calculation } %> <%= render partial: "calculations/group_events", locals: { calculation: @calculation } %> <% if @many_races %> <%= render partial: "separate_races", locals: { races: @races } %> <% else %> <%= render partial: "races", locals: { races: @races } %> <% end %> <%= render partial: "notes", locals: { event: @event } %> <p class="created_updated hidden-xs">Updated <%= @event.updated_at.to_formatted_s :long_and_friendly_date_and_time %></p> <p class="created_updated visible-xs">Updated <%= @event.updated_at.to_s :short %></p> <%= will_paginate @results %> <%= render partial: "paginated_results", locals: { event: @event, race: @races.first, results: @results } %> <%= will_paginate @results %> <% end %>
<% @page_title = "Results: #{@event.date.year}: #{@event.full_name}" %> <% cache cache_key(@event, @page, @races) do %> <h2><%= @event.year %> <%= @event.full_name %></h2> <%= render partial: "calculations/date_and_parent", locals: { event: @event } %> <%= render partial: "calculation", locals: { calculation: @calculation } %> <%= render partial: "calculations/years", locals: { calculation: @calculation } %> <%= render partial: "calculations/group_events", locals: { calculation: @calculation } %> <% if @many_races %> <%= render partial: "separate_races", locals: { races: @races } %> <% else %> <%= render partial: "races", locals: { races: @races } %> <% end %> <%= render partial: "notes", locals: { event: @event } %> <p class="created_updated hidden-xs">Updated <%= @event.updated_at.to_formatted_s :long_and_friendly_date_and_time %></p> <p class="created_updated visible-xs">Updated <%= @event.updated_at.to_s :short %></p> <%= will_paginate @results, class: "pagination hidden-xs" %> <%= will_paginate @results, class: "pagination visible-xs", inner_window: 0 %> <%= render partial: "paginated_results", locals: { event: @event, race: @races.first, results: @results } %> <%= will_paginate @results, class: "pagination hidden-xs" %> <%= will_paginate @results, class: "pagination visible-xs", inner_window: 0 %> <% end %>
Use smaller pagination for mobile
Use smaller pagination for mobile
HTML+ERB
mit
scottwillson/racing_on_rails,scottwillson/racing_on_rails,scottwillson/racing_on_rails,scottwillson/racing_on_rails
html+erb
## Code Before: <% @page_title = "Results: #{@event.date.year}: #{@event.full_name}" %> <% cache cache_key(@event, @page, @races) do %> <h2><%= @event.year %> <%= @event.full_name %></h2> <%= render partial: "calculations/date_and_parent", locals: { event: @event } %> <%= render partial: "calculation", locals: { calculation: @calculation } %> <%= render partial: "calculations/years", locals: { calculation: @calculation } %> <%= render partial: "calculations/group_events", locals: { calculation: @calculation } %> <% if @many_races %> <%= render partial: "separate_races", locals: { races: @races } %> <% else %> <%= render partial: "races", locals: { races: @races } %> <% end %> <%= render partial: "notes", locals: { event: @event } %> <p class="created_updated hidden-xs">Updated <%= @event.updated_at.to_formatted_s :long_and_friendly_date_and_time %></p> <p class="created_updated visible-xs">Updated <%= @event.updated_at.to_s :short %></p> <%= will_paginate @results %> <%= render partial: "paginated_results", locals: { event: @event, race: @races.first, results: @results } %> <%= will_paginate @results %> <% end %> ## Instruction: Use smaller pagination for mobile ## Code After: <% @page_title = "Results: #{@event.date.year}: #{@event.full_name}" %> <% cache cache_key(@event, @page, @races) do %> <h2><%= @event.year %> <%= @event.full_name %></h2> <%= render partial: "calculations/date_and_parent", locals: { event: @event } %> <%= render partial: "calculation", locals: { calculation: @calculation } %> <%= render partial: "calculations/years", locals: { calculation: @calculation } %> <%= render partial: "calculations/group_events", locals: { calculation: @calculation } %> <% if @many_races %> <%= render partial: "separate_races", locals: { races: @races } %> <% else %> <%= render partial: "races", locals: { races: @races } %> <% end %> <%= render partial: "notes", locals: { event: @event } %> <p class="created_updated hidden-xs">Updated <%= @event.updated_at.to_formatted_s :long_and_friendly_date_and_time %></p> <p class="created_updated visible-xs">Updated <%= @event.updated_at.to_s :short %></p> <%= will_paginate @results, class: "pagination hidden-xs" %> <%= will_paginate @results, class: "pagination visible-xs", inner_window: 0 %> <%= render partial: "paginated_results", locals: { event: @event, race: @races.first, results: @results } %> <%= will_paginate @results, class: "pagination hidden-xs" %> <%= will_paginate @results, class: "pagination visible-xs", inner_window: 0 %> <% end %>
<% @page_title = "Results: #{@event.date.year}: #{@event.full_name}" %> <% cache cache_key(@event, @page, @races) do %> <h2><%= @event.year %> <%= @event.full_name %></h2> <%= render partial: "calculations/date_and_parent", locals: { event: @event } %> <%= render partial: "calculation", locals: { calculation: @calculation } %> <%= render partial: "calculations/years", locals: { calculation: @calculation } %> <%= render partial: "calculations/group_events", locals: { calculation: @calculation } %> <% if @many_races %> <%= render partial: "separate_races", locals: { races: @races } %> <% else %> <%= render partial: "races", locals: { races: @races } %> <% end %> <%= render partial: "notes", locals: { event: @event } %> <p class="created_updated hidden-xs">Updated <%= @event.updated_at.to_formatted_s :long_and_friendly_date_and_time %></p> <p class="created_updated visible-xs">Updated <%= @event.updated_at.to_s :short %></p> - <%= will_paginate @results %> + <%= will_paginate @results, class: "pagination hidden-xs" %> + <%= will_paginate @results, class: "pagination visible-xs", inner_window: 0 %> <%= render partial: "paginated_results", locals: { event: @event, race: @races.first, results: @results } %> - <%= will_paginate @results %> + <%= will_paginate @results, class: "pagination hidden-xs" %> + <%= will_paginate @results, class: "pagination visible-xs", inner_window: 0 %> <% end %>
6
0.3
4
2
d79febc5c3e58a7b55392589d88a3a07adb096e8
roles/makepkg/tasks/main.yml
roles/makepkg/tasks/main.yml
--- - name: Configure /etc/makepkg.conf MAKEFLAGS become: yes lineinfile: name: /etc/makepkg.conf regexp: '^#MAKEFLAGS="-j2"' line: 'MAKEFLAGS="-j{{ ansible_processor_vcpus + 1 }}"' tags: - makepkg
--- - name: Configure /etc/makepkg.conf MAKEFLAGS become: yes lineinfile: name: /etc/makepkg.conf regexp: 'MAKEFLAGS="-j' line: 'MAKEFLAGS="-j{{ ansible_processor_vcpus + 1 }}"' state: present tags: - makepkg
Fix MAKEFLAGS so it is not added to file each time role is run
Fix MAKEFLAGS so it is not added to file each time role is run
YAML
mit
henrik-farre/ansible,henrik-farre/ansible,henrik-farre/ansible
yaml
## Code Before: --- - name: Configure /etc/makepkg.conf MAKEFLAGS become: yes lineinfile: name: /etc/makepkg.conf regexp: '^#MAKEFLAGS="-j2"' line: 'MAKEFLAGS="-j{{ ansible_processor_vcpus + 1 }}"' tags: - makepkg ## Instruction: Fix MAKEFLAGS so it is not added to file each time role is run ## Code After: --- - name: Configure /etc/makepkg.conf MAKEFLAGS become: yes lineinfile: name: /etc/makepkg.conf regexp: 'MAKEFLAGS="-j' line: 'MAKEFLAGS="-j{{ ansible_processor_vcpus + 1 }}"' state: present tags: - makepkg
--- - name: Configure /etc/makepkg.conf MAKEFLAGS become: yes lineinfile: name: /etc/makepkg.conf - regexp: '^#MAKEFLAGS="-j2"' ? -- -- + regexp: 'MAKEFLAGS="-j' line: 'MAKEFLAGS="-j{{ ansible_processor_vcpus + 1 }}"' + state: present tags: - makepkg
3
0.333333
2
1
c33dcd81b45c9949bd4ef53155e7460dbdae05fd
Cargo.toml
Cargo.toml
[workspace] members = [ "docgen", "drivers/ahcid", "drivers/bgad", "drivers/e1000d", "drivers/nvmed", "drivers/pcid", "drivers/ps2d", "drivers/rtl8168d", "drivers/vesad", "drivers/xhcid", "installer", "kernel", "programs/acid", "programs/binutils", "programs/contain", "programs/coreutils", "programs/extrautils", "programs/games", "programs/init", "programs/ion", "programs/netutils", "programs/orbutils", "programs/pkgutils", "programs/smith", "programs/tar", "programs/userutils", "schemes/ethernetd", "schemes/ipd", "schemes/orbital", "schemes/ptyd", "schemes/randd", "schemes/redoxfs", "schemes/tcpd", "schemes/udpd" ]
[workspace] members = [ "docgen", "drivers/ahcid", "drivers/bgad", "drivers/e1000d", "drivers/nvmed", "drivers/pcid", "drivers/ps2d", "drivers/rtl8168d", "drivers/vesad", "drivers/xhcid", "installer", "kernel", "programs/acid", "programs/binutils", "programs/contain", "programs/coreutils", "programs/extrautils", "programs/games", "programs/init", "programs/ion", "programs/netutils", "programs/orbutils", "programs/pkgutils", "programs/smith", "programs/tar", "programs/userutils", "schemes/ethernetd", "schemes/ipd", "schemes/orbital", "schemes/ptyd", "schemes/randd", "schemes/redoxfs", "schemes/tcpd", "schemes/udpd" ] [replace] "jpeg-decoder:0.1.11" = { git = "https://github.com/redox-os/jpeg-decoder", branch="single_thread" }
Use patched jpeg-decoder to work around threading issue
Use patched jpeg-decoder to work around threading issue
TOML
mit
redox-os/redox,jackpot51/redox,k0pernicus/redox,jackpot51/redox,Stephen-Seo/redox,jackpot51/redox
toml
## Code Before: [workspace] members = [ "docgen", "drivers/ahcid", "drivers/bgad", "drivers/e1000d", "drivers/nvmed", "drivers/pcid", "drivers/ps2d", "drivers/rtl8168d", "drivers/vesad", "drivers/xhcid", "installer", "kernel", "programs/acid", "programs/binutils", "programs/contain", "programs/coreutils", "programs/extrautils", "programs/games", "programs/init", "programs/ion", "programs/netutils", "programs/orbutils", "programs/pkgutils", "programs/smith", "programs/tar", "programs/userutils", "schemes/ethernetd", "schemes/ipd", "schemes/orbital", "schemes/ptyd", "schemes/randd", "schemes/redoxfs", "schemes/tcpd", "schemes/udpd" ] ## Instruction: Use patched jpeg-decoder to work around threading issue ## Code After: [workspace] members = [ "docgen", "drivers/ahcid", "drivers/bgad", "drivers/e1000d", "drivers/nvmed", "drivers/pcid", "drivers/ps2d", "drivers/rtl8168d", "drivers/vesad", "drivers/xhcid", "installer", "kernel", "programs/acid", "programs/binutils", "programs/contain", "programs/coreutils", "programs/extrautils", "programs/games", "programs/init", "programs/ion", "programs/netutils", "programs/orbutils", "programs/pkgutils", "programs/smith", "programs/tar", "programs/userutils", "schemes/ethernetd", "schemes/ipd", "schemes/orbital", "schemes/ptyd", "schemes/randd", "schemes/redoxfs", "schemes/tcpd", "schemes/udpd" ] [replace] "jpeg-decoder:0.1.11" = { git = "https://github.com/redox-os/jpeg-decoder", branch="single_thread" }
[workspace] members = [ "docgen", "drivers/ahcid", "drivers/bgad", "drivers/e1000d", "drivers/nvmed", "drivers/pcid", "drivers/ps2d", "drivers/rtl8168d", "drivers/vesad", "drivers/xhcid", "installer", "kernel", "programs/acid", "programs/binutils", "programs/contain", "programs/coreutils", "programs/extrautils", "programs/games", "programs/init", "programs/ion", "programs/netutils", "programs/orbutils", "programs/pkgutils", "programs/smith", "programs/tar", "programs/userutils", "schemes/ethernetd", "schemes/ipd", "schemes/orbital", "schemes/ptyd", "schemes/randd", "schemes/redoxfs", "schemes/tcpd", "schemes/udpd" ] + + [replace] + "jpeg-decoder:0.1.11" = { git = "https://github.com/redox-os/jpeg-decoder", branch="single_thread" }
3
0.081081
3
0
974b144ddcfd6ba289ef23ecb86bbca7f8158a52
report_coverage.sh
report_coverage.sh
npm install -g codeclimate-test-reporter codeclimate-test-reporter < ./coverage/lcov.info
npm install codeclimate-test-reporter ./node_modules/.bin/codeclimate-test-reporter < ./coverage/lcov.info
Install code climate coverage reporter locally
Install code climate coverage reporter locally
Shell
mit
migerh/js-module-walker,migerh/js-module-walker,migerh/js-module-walker
shell
## Code Before: npm install -g codeclimate-test-reporter codeclimate-test-reporter < ./coverage/lcov.info ## Instruction: Install code climate coverage reporter locally ## Code After: npm install codeclimate-test-reporter ./node_modules/.bin/codeclimate-test-reporter < ./coverage/lcov.info
- npm install -g codeclimate-test-reporter ? --- + npm install codeclimate-test-reporter - codeclimate-test-reporter < ./coverage/lcov.info + ./node_modules/.bin/codeclimate-test-reporter < ./coverage/lcov.info ? ++++++++++++++++++++
4
1.333333
2
2
20da69bd1ca5fd1147089a21783592c47d339ba8
config/vars.yml
config/vars.yml
lock_url: 'https://cdn.auth0.com/js/lock/10.16/lock.min.js' lock_passwordless_url: 'https://cdn.auth0.com/js/lock-passwordless-2.2.min.js' auth0js_url: 'https://cdn.auth0.com/w2/auth0-7.6.1.min.js' auth0js_urlv8: 'https://cdn.auth0.com/js/auth0/8.7/auth0.min.js'
lock_url: 'https://cdn.auth0.com/js/lock/10.16/lock.min.js' lock_passwordless_url: 'https://cdn.auth0.com/js/lock-passwordless-2.2.min.js' auth0js_url: 'https://cdn.auth0.com/w2/auth0-7.6.1.min.js' auth0js_urlv8: 'https://cdn.auth0.com/js/auth0/8.7/auth0.min.js' auth0_community: 'https://community.auth0.com/'
Add var for auth0 community
Add var for auth0 community
YAML
mit
auth0/docs,auth0/docs,yvonnewilson/docs,yvonnewilson/docs,jeffreylees/docs,jeffreylees/docs,jeffreylees/docs,auth0/docs,yvonnewilson/docs
yaml
## Code Before: lock_url: 'https://cdn.auth0.com/js/lock/10.16/lock.min.js' lock_passwordless_url: 'https://cdn.auth0.com/js/lock-passwordless-2.2.min.js' auth0js_url: 'https://cdn.auth0.com/w2/auth0-7.6.1.min.js' auth0js_urlv8: 'https://cdn.auth0.com/js/auth0/8.7/auth0.min.js' ## Instruction: Add var for auth0 community ## Code After: lock_url: 'https://cdn.auth0.com/js/lock/10.16/lock.min.js' lock_passwordless_url: 'https://cdn.auth0.com/js/lock-passwordless-2.2.min.js' auth0js_url: 'https://cdn.auth0.com/w2/auth0-7.6.1.min.js' auth0js_urlv8: 'https://cdn.auth0.com/js/auth0/8.7/auth0.min.js' auth0_community: 'https://community.auth0.com/'
lock_url: 'https://cdn.auth0.com/js/lock/10.16/lock.min.js' lock_passwordless_url: 'https://cdn.auth0.com/js/lock-passwordless-2.2.min.js' auth0js_url: 'https://cdn.auth0.com/w2/auth0-7.6.1.min.js' auth0js_urlv8: 'https://cdn.auth0.com/js/auth0/8.7/auth0.min.js' + auth0_community: 'https://community.auth0.com/'
1
0.25
1
0
81ae02b295ea2dabdc94c81c0aa5afcc8aa9b9b0
public/app/project-list/project-featured-controller.js
public/app/project-list/project-featured-controller.js
define(function() { var ProjectsFeaturedController = function(ProjectResource) { this.projects = ProjectResource.list({ // Add feature tags here 'tags[]': [] }) } ProjectsFeaturedController.$inject = ['ProjectResource'] return ProjectsFeaturedController })
define(function() { var ProjectsFeaturedController = function(ProjectResource) { this.projects = ProjectResource.list({ // Add feature tags here 'tags[]': ['noit', 'explore'] }) } ProjectsFeaturedController.$inject = ['ProjectResource'] return ProjectsFeaturedController })
Edit tags in featured projects controller
Edit tags in featured projects controller
JavaScript
mit
tenevdev/idiot,tenevdev/idiot
javascript
## Code Before: define(function() { var ProjectsFeaturedController = function(ProjectResource) { this.projects = ProjectResource.list({ // Add feature tags here 'tags[]': [] }) } ProjectsFeaturedController.$inject = ['ProjectResource'] return ProjectsFeaturedController }) ## Instruction: Edit tags in featured projects controller ## Code After: define(function() { var ProjectsFeaturedController = function(ProjectResource) { this.projects = ProjectResource.list({ // Add feature tags here 'tags[]': ['noit', 'explore'] }) } ProjectsFeaturedController.$inject = ['ProjectResource'] return ProjectsFeaturedController })
define(function() { var ProjectsFeaturedController = function(ProjectResource) { this.projects = ProjectResource.list({ // Add feature tags here - 'tags[]': [] + 'tags[]': ['noit', 'explore'] }) } ProjectsFeaturedController.$inject = ['ProjectResource'] return ProjectsFeaturedController })
2
0.166667
1
1
658367efcdbbf522c779533f44cb5a29c7afb1c7
composer.json
composer.json
{ "name": "yunify/qingstor-sdk", "homepage": "https://www.qingstor.com", "description": "The official QingStor SDK for the PHP programming language.", "keywords": [ "qingcloud", "yunify", "qingstor", "object storage", "sdk" ], "type": "library", "license": "Apache-2.0", "authors": [ { "name": "Yunify SDK Group", "email": "sdk_group@yunify.com", "homepage": "https://www.qingstor.com" } ], "support": { "forum": "https://community.qingcloud.com/", "issues": "https://github.com/yunify/qingstor-sdk-php/issues" }, "require": { "guzzlehttp/guzzle": "^6.2", "katzgrau/klogger": "^1.2.1", "mustangostang/spyc": "^0.6.1" }, "require-dev": { "phpunit/phpunit": "~4.0|~5.0", "behat/behat": "^3.2" }, "autoload": { "psr-4": { "QingStor\\SDK\\": "src/", "QingStor\\SDK\\Service\\": "src/QingStor/" } }, "autoload-dev": { "psr-4": { "QingStor\\SDK\\Test\\": "tests/" } } }
{ "name": "yunify/qingstor-sdk", "homepage": "https://www.qingstor.com", "description": "The official QingStor SDK for the PHP programming language.", "keywords": [ "qingcloud", "yunify", "qingstor", "object storage", "sdk" ], "type": "library", "license": "Apache-2.0", "authors": [ { "name": "Yunify SDK Group", "email": "sdk_group@yunify.com", "homepage": "https://www.qingstor.com" } ], "support": { "forum": "https://community.qingcloud.com/", "issues": "https://github.com/yunify/qingstor-sdk-php/issues" }, "require": { "guzzlehttp/guzzle": "~5|~6", "guzzlehttp/psr7": "~1.3", "katzgrau/klogger": "^1.2.1", "mustangostang/spyc": "~0.6" }, "require-dev": { "phpunit/phpunit": "~4.0|~5.0", "behat/behat": "^3.2" }, "autoload": { "psr-4": { "QingStor\\SDK\\": "src/", "QingStor\\SDK\\Service\\": "src/QingStor/" } }, "autoload-dev": { "psr-4": { "QingStor\\SDK\\Test\\": "tests/" } } }
Support guzzle version both 6 and 5
Support guzzle version both 6 and 5 Signed-off-by: Xuanwo <9d9ffaee821234cdfed458cf06eb6f407f8dbe47@yunify.com>
JSON
apache-2.0
yunify/qingstor-sdk-php
json
## Code Before: { "name": "yunify/qingstor-sdk", "homepage": "https://www.qingstor.com", "description": "The official QingStor SDK for the PHP programming language.", "keywords": [ "qingcloud", "yunify", "qingstor", "object storage", "sdk" ], "type": "library", "license": "Apache-2.0", "authors": [ { "name": "Yunify SDK Group", "email": "sdk_group@yunify.com", "homepage": "https://www.qingstor.com" } ], "support": { "forum": "https://community.qingcloud.com/", "issues": "https://github.com/yunify/qingstor-sdk-php/issues" }, "require": { "guzzlehttp/guzzle": "^6.2", "katzgrau/klogger": "^1.2.1", "mustangostang/spyc": "^0.6.1" }, "require-dev": { "phpunit/phpunit": "~4.0|~5.0", "behat/behat": "^3.2" }, "autoload": { "psr-4": { "QingStor\\SDK\\": "src/", "QingStor\\SDK\\Service\\": "src/QingStor/" } }, "autoload-dev": { "psr-4": { "QingStor\\SDK\\Test\\": "tests/" } } } ## Instruction: Support guzzle version both 6 and 5 Signed-off-by: Xuanwo <9d9ffaee821234cdfed458cf06eb6f407f8dbe47@yunify.com> ## Code After: { "name": "yunify/qingstor-sdk", "homepage": "https://www.qingstor.com", "description": "The official QingStor SDK for the PHP programming language.", "keywords": [ "qingcloud", "yunify", "qingstor", "object storage", "sdk" ], "type": "library", "license": "Apache-2.0", "authors": [ { "name": "Yunify SDK Group", "email": "sdk_group@yunify.com", "homepage": "https://www.qingstor.com" } ], "support": { "forum": "https://community.qingcloud.com/", "issues": "https://github.com/yunify/qingstor-sdk-php/issues" }, "require": { "guzzlehttp/guzzle": "~5|~6", "guzzlehttp/psr7": "~1.3", "katzgrau/klogger": "^1.2.1", "mustangostang/spyc": "~0.6" }, "require-dev": { "phpunit/phpunit": "~4.0|~5.0", "behat/behat": "^3.2" }, "autoload": { "psr-4": { "QingStor\\SDK\\": "src/", "QingStor\\SDK\\Service\\": "src/QingStor/" } }, "autoload-dev": { "psr-4": { "QingStor\\SDK\\Test\\": "tests/" } } }
{ "name": "yunify/qingstor-sdk", "homepage": "https://www.qingstor.com", "description": "The official QingStor SDK for the PHP programming language.", "keywords": [ "qingcloud", "yunify", "qingstor", "object storage", "sdk" ], "type": "library", "license": "Apache-2.0", "authors": [ { "name": "Yunify SDK Group", "email": "sdk_group@yunify.com", "homepage": "https://www.qingstor.com" } ], "support": { "forum": "https://community.qingcloud.com/", "issues": "https://github.com/yunify/qingstor-sdk-php/issues" }, "require": { - "guzzlehttp/guzzle": "^6.2", ? ^ -- + "guzzlehttp/guzzle": "~5|~6", ? ^^^^ + "guzzlehttp/psr7": "~1.3", "katzgrau/klogger": "^1.2.1", - "mustangostang/spyc": "^0.6.1" ? ^ -- + "mustangostang/spyc": "~0.6" ? ^ }, "require-dev": { "phpunit/phpunit": "~4.0|~5.0", "behat/behat": "^3.2" }, "autoload": { "psr-4": { "QingStor\\SDK\\": "src/", "QingStor\\SDK\\Service\\": "src/QingStor/" } }, "autoload-dev": { "psr-4": { "QingStor\\SDK\\Test\\": "tests/" } } }
5
0.111111
3
2
6245ac82e5e59871593b0704f772e55c5711f673
src/Korobi/WebBundle/Test/Unit/IRCColourParserTest.php
src/Korobi/WebBundle/Test/Unit/IRCColourParserTest.php
<?php namespace Korobi\WebBundle\Test\Unit; use Korobi\WebBundle\Parser\IRCColourParser; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class IRCColourParserTest extends WebTestCase { public function testSimpleColour() { $message = "\x0305Hello world!"; $this->assertEquals(["foreground" => "05", "background" => "99", "skip" => 2], IRCColourParser::parseColour($message)); } public function testSimpleColourWithBackground() { $message = "\x0305,04Hello world!"; $this->assertEquals(["foreground" => "05", "background" => "04", "skip" => 5], IRCColourParser::parseColour($message)); } public function testInvalidColourFragment() { $message = "Hello world!"; $this->assertEquals(null, IRCColourParser::parseColour($message)); } }
<?php namespace Korobi\WebBundle\Test\Unit; use Korobi\WebBundle\Parser\IRCColourParser; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class IRCColourParserTest extends WebTestCase { public function testSimpleColour() { $message = "\x0305Hello world!"; $this->assertEquals(["foreground" => "05", "background" => "99", "skip" => 2], IRCColourParser::parseColour($message)); } public function testSimpleColourWithBackground() { $message = "\x0305,04Hello world!"; $this->assertEquals(["foreground" => "05", "background" => "04", "skip" => 5], IRCColourParser::parseColour($message)); } public function testColoursWithSingleNumbers() { $message = "\x035,4Hello world!"; $this->assertEquals(["foreground" => "05", "background" => "04", "skip" => 3], IRCColourParser::parseColour($message)); } public function testInvalidColourFragment() { $message = "Hello world!"; $this->assertEquals(null, IRCColourParser::parseColour($message)); } }
Add failing test for single-digit colours
Add failing test for single-digit colours
PHP
mit
korobi/Web,korobi/Web,korobi/Web,korobi/Web,korobi/Web
php
## Code Before: <?php namespace Korobi\WebBundle\Test\Unit; use Korobi\WebBundle\Parser\IRCColourParser; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class IRCColourParserTest extends WebTestCase { public function testSimpleColour() { $message = "\x0305Hello world!"; $this->assertEquals(["foreground" => "05", "background" => "99", "skip" => 2], IRCColourParser::parseColour($message)); } public function testSimpleColourWithBackground() { $message = "\x0305,04Hello world!"; $this->assertEquals(["foreground" => "05", "background" => "04", "skip" => 5], IRCColourParser::parseColour($message)); } public function testInvalidColourFragment() { $message = "Hello world!"; $this->assertEquals(null, IRCColourParser::parseColour($message)); } } ## Instruction: Add failing test for single-digit colours ## Code After: <?php namespace Korobi\WebBundle\Test\Unit; use Korobi\WebBundle\Parser\IRCColourParser; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class IRCColourParserTest extends WebTestCase { public function testSimpleColour() { $message = "\x0305Hello world!"; $this->assertEquals(["foreground" => "05", "background" => "99", "skip" => 2], IRCColourParser::parseColour($message)); } public function testSimpleColourWithBackground() { $message = "\x0305,04Hello world!"; $this->assertEquals(["foreground" => "05", "background" => "04", "skip" => 5], IRCColourParser::parseColour($message)); } public function testColoursWithSingleNumbers() { $message = "\x035,4Hello world!"; $this->assertEquals(["foreground" => "05", "background" => "04", "skip" => 3], IRCColourParser::parseColour($message)); } public function testInvalidColourFragment() { $message = "Hello world!"; $this->assertEquals(null, IRCColourParser::parseColour($message)); } }
<?php namespace Korobi\WebBundle\Test\Unit; use Korobi\WebBundle\Parser\IRCColourParser; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class IRCColourParserTest extends WebTestCase { public function testSimpleColour() { $message = "\x0305Hello world!"; $this->assertEquals(["foreground" => "05", "background" => "99", "skip" => 2], IRCColourParser::parseColour($message)); } public function testSimpleColourWithBackground() { $message = "\x0305,04Hello world!"; $this->assertEquals(["foreground" => "05", "background" => "04", "skip" => 5], IRCColourParser::parseColour($message)); } + public function testColoursWithSingleNumbers() { + $message = "\x035,4Hello world!"; + $this->assertEquals(["foreground" => "05", "background" => "04", "skip" => 3], IRCColourParser::parseColour($message)); + } + public function testInvalidColourFragment() { $message = "Hello world!"; $this->assertEquals(null, IRCColourParser::parseColour($message)); } }
5
0.2
5
0
efb1057b122664ee8e1ab0a06259988aa9f50092
experiments/management/commands/update_experiment_reports.py
experiments/management/commands/update_experiment_reports.py
import logging l=logging.getLogger(__name__) from django.conf import settings from django.core.management.base import BaseCommand, CommandError from experiments.reports import (EngagementReportGenerator, ConversionReportGenerator) class Command(BaseCommand): help = ('update_experiment_reports : Generate all the daily reports for' ' for the SplitTesting experiments') def __init__(self): super(self.__class__, self).__init__() def handle(self, *args, **options): if len(args): raise CommandError("This command does not take any arguments") engagement_calculator = _load_function(settings.LEAN_ENGAGEMENT_CALCULATOR) EngagementReportGenerator(engagement_score_calculator=engagement_calculator).generate_all_daily_reports() ConversionReportGenerator().generate_all_daily_reports() def _load_function(fully_qualified_name): i = fully_qualified_name.rfind('.') module, attr = fully_qualified_name[:i], fully_qualified_name[i+1:] try: mod = __import__(module, globals(), locals(), [attr]) except ImportError, e: raise ImproperlyConfigured, 'Error importing template source loader %s: "%s"' % (module, e) try: func = getattr(mod, attr) except AttributeError: raise ImproperlyConfigured, 'Module "%s" does not define a "%s" callable template source loader' % (module, attr) return func
import logging l=logging.getLogger(__name__) from django.conf import settings from django.core.management.base import BaseCommand, CommandError from experiments.reports import (EngagementReportGenerator, ConversionReportGenerator) class Command(BaseCommand): help = ('update_experiment_reports : Generate all the daily reports for' ' for the SplitTesting experiments') def __init__(self): super(self.__class__, self).__init__() def handle(self, *args, **options): if len(args): raise CommandError("This command does not take any arguments") engagement_calculator = _load_function(settings.LEAN_ENGAGEMENT_CALCULATOR) EngagementReportGenerator(engagement_score_calculator=engagement_calculator).generate_all_daily_reports() ConversionReportGenerator().generate_all_daily_reports() def _load_function(fully_qualified_name): i = fully_qualified_name.rfind('.') module, attr = fully_qualified_name[:i], fully_qualified_name[i+1:] try: mod = __import__(module, globals(), locals(), [attr]) except ImportError, e: raise Exception, 'Error importing engagement function %s: "%s"' % (module, e) try: func = getattr(mod, attr) except AttributeError: raise Exception, 'Module "%s does not define a "%s" attribute' % (module, attr) return func
Fix typos in exception messages and use less specific exception in management commands.
Fix typos in exception messages and use less specific exception in management commands.
Python
bsd-3-clause
e-loue/django-lean,MontmereLimited/django-lean,MontmereLimited/django-lean,uhuramedia/django-lean,MontmereLimited/django-lean,uhuramedia/django-lean,e-loue/django-lean,uhuramedia/django-lean
python
## Code Before: import logging l=logging.getLogger(__name__) from django.conf import settings from django.core.management.base import BaseCommand, CommandError from experiments.reports import (EngagementReportGenerator, ConversionReportGenerator) class Command(BaseCommand): help = ('update_experiment_reports : Generate all the daily reports for' ' for the SplitTesting experiments') def __init__(self): super(self.__class__, self).__init__() def handle(self, *args, **options): if len(args): raise CommandError("This command does not take any arguments") engagement_calculator = _load_function(settings.LEAN_ENGAGEMENT_CALCULATOR) EngagementReportGenerator(engagement_score_calculator=engagement_calculator).generate_all_daily_reports() ConversionReportGenerator().generate_all_daily_reports() def _load_function(fully_qualified_name): i = fully_qualified_name.rfind('.') module, attr = fully_qualified_name[:i], fully_qualified_name[i+1:] try: mod = __import__(module, globals(), locals(), [attr]) except ImportError, e: raise ImproperlyConfigured, 'Error importing template source loader %s: "%s"' % (module, e) try: func = getattr(mod, attr) except AttributeError: raise ImproperlyConfigured, 'Module "%s" does not define a "%s" callable template source loader' % (module, attr) return func ## Instruction: Fix typos in exception messages and use less specific exception in management commands. ## Code After: import logging l=logging.getLogger(__name__) from django.conf import settings from django.core.management.base import BaseCommand, CommandError from experiments.reports import (EngagementReportGenerator, ConversionReportGenerator) class Command(BaseCommand): help = ('update_experiment_reports : Generate all the daily reports for' ' for the SplitTesting experiments') def __init__(self): super(self.__class__, self).__init__() def handle(self, *args, **options): if len(args): raise CommandError("This command does not take any arguments") engagement_calculator = _load_function(settings.LEAN_ENGAGEMENT_CALCULATOR) EngagementReportGenerator(engagement_score_calculator=engagement_calculator).generate_all_daily_reports() ConversionReportGenerator().generate_all_daily_reports() def _load_function(fully_qualified_name): i = fully_qualified_name.rfind('.') module, attr = fully_qualified_name[:i], fully_qualified_name[i+1:] try: mod = __import__(module, globals(), locals(), [attr]) except ImportError, e: raise Exception, 'Error importing engagement function %s: "%s"' % (module, e) try: func = getattr(mod, attr) except AttributeError: raise Exception, 'Module "%s does not define a "%s" attribute' % (module, attr) return func
import logging l=logging.getLogger(__name__) from django.conf import settings from django.core.management.base import BaseCommand, CommandError from experiments.reports import (EngagementReportGenerator, ConversionReportGenerator) class Command(BaseCommand): help = ('update_experiment_reports : Generate all the daily reports for' ' for the SplitTesting experiments') def __init__(self): super(self.__class__, self).__init__() def handle(self, *args, **options): if len(args): raise CommandError("This command does not take any arguments") engagement_calculator = _load_function(settings.LEAN_ENGAGEMENT_CALCULATOR) EngagementReportGenerator(engagement_score_calculator=engagement_calculator).generate_all_daily_reports() ConversionReportGenerator().generate_all_daily_reports() def _load_function(fully_qualified_name): i = fully_qualified_name.rfind('.') module, attr = fully_qualified_name[:i], fully_qualified_name[i+1:] try: mod = __import__(module, globals(), locals(), [attr]) except ImportError, e: - raise ImproperlyConfigured, 'Error importing template source loader %s: "%s"' % (module, e) + raise Exception, 'Error importing engagement function %s: "%s"' % (module, e) try: func = getattr(mod, attr) except AttributeError: - raise ImproperlyConfigured, 'Module "%s" does not define a "%s" callable template source loader' % (module, attr) + raise Exception, 'Module "%s does not define a "%s" attribute' % (module, attr) return func
4
0.108108
2
2
9b89f6b9564bcc9baf21d76062383c969791f748
README.md
README.md
This gem packages the lovely bootstrap-sortable gem from [drvic10k/bootstrap-sortable](https://github.com/drvic10k/bootstrap-sortable) into an easy to use form. rails_bootstrap_sortable adds the ability to sort bootstrap tables (or any type of table, for that matter) via Javascript by clicking on the headers of the table. The bootstrap-sortable gem is &copy; 2014 Matúš Brliť (drvic10k), bootstrap-sortable contributors. ## Installation Add these lines to your rails project's Gemfile: gem 'momentjs-rails' gem 'rails_bootstrap_sortable' Install the new gems: $ bundle install Add this line to application.css.scss: ``` *= require bootstrap-sortable ``` Add these lines to application.js.coffee: //= require moment //= require bootstrap-sortable ## Usage Please see [dvic10k/bootstrap-sortable](https://github.com/drvic10k/bootstrap-sortable) for full usage information.
This gem packages the lovely bootstrap-sortable gem from [drvic10k/bootstrap-sortable](https://github.com/drvic10k/bootstrap-sortable) into an easy to use form. rails_bootstrap_sortable adds the ability to sort bootstrap tables (or any type of table, for that matter) via Javascript by clicking on the headers of the table. The bootstrap-sortable gem is &copy; 2014 Matúš Brliť (drvic10k), bootstrap-sortable contributors. ## Installation Add these lines to your rails project's Gemfile: gem 'momentjs-rails' gem 'rails_bootstrap_sortable' Install the new gems: $ bundle install (for more info see [rails_bootstrap_sortable on rubygems.org](https://rubygems.org/gems/rails_bootstrap_sortable)) Add this line to application.css.scss: ``` *= require bootstrap-sortable ``` Add these lines to application.js.coffee: //= require moment //= require bootstrap-sortable ## Usage Please see [dvic10k/bootstrap-sortable](https://github.com/drvic10k/bootstrap-sortable) for full usage information.
Include link to page on rubygems.org.
Include link to page on rubygems.org.
Markdown
mit
samkelly/rails_bootstrap_sortable
markdown
## Code Before: This gem packages the lovely bootstrap-sortable gem from [drvic10k/bootstrap-sortable](https://github.com/drvic10k/bootstrap-sortable) into an easy to use form. rails_bootstrap_sortable adds the ability to sort bootstrap tables (or any type of table, for that matter) via Javascript by clicking on the headers of the table. The bootstrap-sortable gem is &copy; 2014 Matúš Brliť (drvic10k), bootstrap-sortable contributors. ## Installation Add these lines to your rails project's Gemfile: gem 'momentjs-rails' gem 'rails_bootstrap_sortable' Install the new gems: $ bundle install Add this line to application.css.scss: ``` *= require bootstrap-sortable ``` Add these lines to application.js.coffee: //= require moment //= require bootstrap-sortable ## Usage Please see [dvic10k/bootstrap-sortable](https://github.com/drvic10k/bootstrap-sortable) for full usage information. ## Instruction: Include link to page on rubygems.org. ## Code After: This gem packages the lovely bootstrap-sortable gem from [drvic10k/bootstrap-sortable](https://github.com/drvic10k/bootstrap-sortable) into an easy to use form. rails_bootstrap_sortable adds the ability to sort bootstrap tables (or any type of table, for that matter) via Javascript by clicking on the headers of the table. The bootstrap-sortable gem is &copy; 2014 Matúš Brliť (drvic10k), bootstrap-sortable contributors. ## Installation Add these lines to your rails project's Gemfile: gem 'momentjs-rails' gem 'rails_bootstrap_sortable' Install the new gems: $ bundle install (for more info see [rails_bootstrap_sortable on rubygems.org](https://rubygems.org/gems/rails_bootstrap_sortable)) Add this line to application.css.scss: ``` *= require bootstrap-sortable ``` Add these lines to application.js.coffee: //= require moment //= require bootstrap-sortable ## Usage Please see [dvic10k/bootstrap-sortable](https://github.com/drvic10k/bootstrap-sortable) for full usage information.
This gem packages the lovely bootstrap-sortable gem from [drvic10k/bootstrap-sortable](https://github.com/drvic10k/bootstrap-sortable) into an easy to use form. rails_bootstrap_sortable adds the ability to sort bootstrap tables (or any type of table, for that matter) via Javascript by clicking on the headers of the table. The bootstrap-sortable gem is &copy; 2014 Matúš Brliť (drvic10k), bootstrap-sortable contributors. ## Installation Add these lines to your rails project's Gemfile: gem 'momentjs-rails' - gem 'rails_bootstrap_sortable' ? ^^^^ + gem 'rails_bootstrap_sortable' ? ^ Install the new gems: $ bundle install + + (for more info see [rails_bootstrap_sortable on rubygems.org](https://rubygems.org/gems/rails_bootstrap_sortable)) Add this line to application.css.scss: ``` *= require bootstrap-sortable ``` Add these lines to application.js.coffee: //= require moment //= require bootstrap-sortable ## Usage Please see [dvic10k/bootstrap-sortable](https://github.com/drvic10k/bootstrap-sortable) for full usage information.
4
0.148148
3
1
cdb3fb118c59e26e9e0b5ca97be529ac3a858c9d
app/models/acmg_code.rb
app/models/acmg_code.rb
class AcmgCode < ActiveRecord::Base has_and_belongs_to_many :assertions def name code end end
class AcmgCode < ActiveRecord::Base has_and_belongs_to_many :assertions def display_name name end def name code end end
Add display name for acmg codes
Add display name for acmg codes
Ruby
mit
ahwagner/civic-server,ahwagner/civic-server,genome/civic-server,ahwagner/civic-server,genome/civic-server,genome/civic-server,ahwagner/civic-server,genome/civic-server,genome/civic-server
ruby
## Code Before: class AcmgCode < ActiveRecord::Base has_and_belongs_to_many :assertions def name code end end ## Instruction: Add display name for acmg codes ## Code After: class AcmgCode < ActiveRecord::Base has_and_belongs_to_many :assertions def display_name name end def name code end end
class AcmgCode < ActiveRecord::Base has_and_belongs_to_many :assertions + + def display_name + name + end def name code end end
4
0.571429
4
0
5431c5ea9f9f251449bc3c1b55c683181ffed4fa
packages/lo/lowgl.yaml
packages/lo/lowgl.yaml
homepage: '' changelog-type: '' hash: d16861021ff55cbb15185537758b01c3bf1eddf910c2dfd57cb3e51d73f5e591 test-bench-deps: {} maintainer: evanrinehart@gmail.com synopsis: Basic gl wrapper and reference changelog: '' basic-deps: base: ! '>=4.7 && <4.10' data-default: -any linear: ! '>=1.16 && <1.21' gl: ! '>=0.5 && <0.8' vector: ! '>=0.10 && <0.11' all-versions: - '0.3.1.1' author: Evan Rinehart latest: '0.3.1.1' description-type: haddock description: This library exposes a vastly simplified subset of OpenGL that is hopefully still complete enough for many purposes, such as following tutorials, making simple games, and demos. license-name: BSD2
homepage: '' changelog-type: '' hash: 6bf408f89491203cf5f06e9b721a992313194bc4cb17d060913574f4e74dd8dc test-bench-deps: {} maintainer: evanrinehart@gmail.com synopsis: Basic gl wrapper and reference changelog: '' basic-deps: base: ! '>=4.7 && <=4.9' data-default: -any linear: ! '>=1.16 && <1.21' transformers: ! '>=0.4 && <0.5' gl: ! '>=0.5 && <0.8' vector: ! '>=0.10 && <0.11' all-versions: - '0.1.0.0' - '0.1.0.1' - '0.2.0.0' - '0.2.0.1' - '0.2.1.0' - '0.2.1.1' - '0.3.0.0' - '0.3.1.0' - '0.3.1.1' - '0.3.1.2' - '0.4.0.0' author: Evan Rinehart latest: '0.4.0.0' description-type: haddock description: This library exposes a simplified subset of OpenGL that I hope is complete enough for following tutorials and making simple games or demos. license-name: BSD2
Update from Hackage at 2016-11-07T22:10:15Z
Update from Hackage at 2016-11-07T22:10:15Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: '' changelog-type: '' hash: d16861021ff55cbb15185537758b01c3bf1eddf910c2dfd57cb3e51d73f5e591 test-bench-deps: {} maintainer: evanrinehart@gmail.com synopsis: Basic gl wrapper and reference changelog: '' basic-deps: base: ! '>=4.7 && <4.10' data-default: -any linear: ! '>=1.16 && <1.21' gl: ! '>=0.5 && <0.8' vector: ! '>=0.10 && <0.11' all-versions: - '0.3.1.1' author: Evan Rinehart latest: '0.3.1.1' description-type: haddock description: This library exposes a vastly simplified subset of OpenGL that is hopefully still complete enough for many purposes, such as following tutorials, making simple games, and demos. license-name: BSD2 ## Instruction: Update from Hackage at 2016-11-07T22:10:15Z ## Code After: homepage: '' changelog-type: '' hash: 6bf408f89491203cf5f06e9b721a992313194bc4cb17d060913574f4e74dd8dc test-bench-deps: {} maintainer: evanrinehart@gmail.com synopsis: Basic gl wrapper and reference changelog: '' basic-deps: base: ! '>=4.7 && <=4.9' data-default: -any linear: ! '>=1.16 && <1.21' transformers: ! '>=0.4 && <0.5' gl: ! '>=0.5 && <0.8' vector: ! '>=0.10 && <0.11' all-versions: - '0.1.0.0' - '0.1.0.1' - '0.2.0.0' - '0.2.0.1' - '0.2.1.0' - '0.2.1.1' - '0.3.0.0' - '0.3.1.0' - '0.3.1.1' - '0.3.1.2' - '0.4.0.0' author: Evan Rinehart latest: '0.4.0.0' description-type: haddock description: This library exposes a simplified subset of OpenGL that I hope is complete enough for following tutorials and making simple games or demos. license-name: BSD2
homepage: '' changelog-type: '' - hash: d16861021ff55cbb15185537758b01c3bf1eddf910c2dfd57cb3e51d73f5e591 + hash: 6bf408f89491203cf5f06e9b721a992313194bc4cb17d060913574f4e74dd8dc test-bench-deps: {} maintainer: evanrinehart@gmail.com synopsis: Basic gl wrapper and reference changelog: '' basic-deps: - base: ! '>=4.7 && <4.10' ? ^^ + base: ! '>=4.7 && <=4.9' ? + ^ data-default: -any linear: ! '>=1.16 && <1.21' + transformers: ! '>=0.4 && <0.5' gl: ! '>=0.5 && <0.8' vector: ! '>=0.10 && <0.11' all-versions: + - '0.1.0.0' + - '0.1.0.1' + - '0.2.0.0' + - '0.2.0.1' + - '0.2.1.0' + - '0.2.1.1' + - '0.3.0.0' + - '0.3.1.0' - '0.3.1.1' + - '0.3.1.2' + - '0.4.0.0' author: Evan Rinehart - latest: '0.3.1.1' ? ^ ^ ^ + latest: '0.4.0.0' ? ^ ^ ^ description-type: haddock - description: This library exposes a vastly simplified subset of OpenGL that is hopefully ? ------- ^^ ^^ ^^ + description: This library exposes a simplified subset of OpenGL that I hope is complete ? ^ ^^^^^^^^ ^^^ + enough for following tutorials and making simple games or demos. - still complete enough for many purposes, such as following tutorials, making simple - games, and demos. license-name: BSD2
22
1
16
6
ffac2381e04fa52a95f9f5d1498b803e1cc5b21c
config/routes.rb
config/routes.rb
Ninetails::Engine.routes.draw do with_options defaults: { format: :json } do root 'pages#index' resources :projects, only: [:create, :show, :update, :index, :destroy] do post :publish, on: :member resources :pages, only: [:show, :create, :index] end resources :pages, only: [:show, :create, :index] do resources :page_revisions, only: [:create, :show, :index], path: "revisions" end resources :sections, only: [:show, :index] do post :validate, on: :collection end end end
Ninetails::Engine.routes.draw do with_options defaults: { format: :json } do root 'pages#index' resources :projects, except: [:edit] do post :publish, on: :member resources :pages, only: [:show, :create, :index] end resources :pages, only: [:show, :create, :index] do resources :page_revisions, only: [:create, :show, :index], path: "revisions" end resources :sections, only: [:show, :index] do post :validate, on: :collection end end end
Configure available route actions with `except`
Configure available route actions with `except` Since the only action we're not covering is :edit.
Ruby
mit
iZettle/ninetails
ruby
## Code Before: Ninetails::Engine.routes.draw do with_options defaults: { format: :json } do root 'pages#index' resources :projects, only: [:create, :show, :update, :index, :destroy] do post :publish, on: :member resources :pages, only: [:show, :create, :index] end resources :pages, only: [:show, :create, :index] do resources :page_revisions, only: [:create, :show, :index], path: "revisions" end resources :sections, only: [:show, :index] do post :validate, on: :collection end end end ## Instruction: Configure available route actions with `except` Since the only action we're not covering is :edit. ## Code After: Ninetails::Engine.routes.draw do with_options defaults: { format: :json } do root 'pages#index' resources :projects, except: [:edit] do post :publish, on: :member resources :pages, only: [:show, :create, :index] end resources :pages, only: [:show, :create, :index] do resources :page_revisions, only: [:create, :show, :index], path: "revisions" end resources :sections, only: [:show, :index] do post :validate, on: :collection end end end
Ninetails::Engine.routes.draw do with_options defaults: { format: :json } do root 'pages#index' - resources :projects, only: [:create, :show, :update, :index, :destroy] do + resources :projects, except: [:edit] do post :publish, on: :member resources :pages, only: [:show, :create, :index] end resources :pages, only: [:show, :create, :index] do resources :page_revisions, only: [:create, :show, :index], path: "revisions" end resources :sections, only: [:show, :index] do post :validate, on: :collection end end end
2
0.111111
1
1
a35779db1bfa56051e003d9b6d940c988a110ce8
spec/controllers/users_controller_spec.rb
spec/controllers/users_controller_spec.rb
require 'rails_helper' RSpec.describe UsersController, type: :controller do describe 'GET current' do it 'responds successfully for authenticated user' do user = create(:user) sign_in user get :current, params: { format: :json } expect(response).to be_success end it 'responds successfully for anonymous user' do get :current, params: { format: :json } expect(response).to be_success end end end
require 'rails_helper' RSpec.describe UsersController, type: :controller do describe 'GET current' do it 'responds successfully for authenticated user' do user = create(:user) sign_in user get :current, params: { format: :json } expect(response).to be_success end it 'responds successfully for anonymous user' do get :current, params: { format: :json } expect(response).to be_success end end describe 'PUT update' do it 'does not work for anonymous user' do put :update, params: { format: :json, email: 'hey@example.com' } expect(response).to have_http_status(401) end it 'updates current user' do user = create(:user) sign_in user put :update, params: { format: :json, email: 'hey@example.com', region: 'eu', platform: 'xbl' } expect(response).to be_success expect(user.reload.email).to eq('hey@example.com') expect(user.region).to eq('eu') expect(user.platform).to eq('xbl') end end end
Add tests for user update endpoint
Add tests for user update endpoint
Ruby
mit
cheshire137/overwatch-team-comps,cheshire137/overwatch-team-comps,cheshire137/overwatch-team-comps
ruby
## Code Before: require 'rails_helper' RSpec.describe UsersController, type: :controller do describe 'GET current' do it 'responds successfully for authenticated user' do user = create(:user) sign_in user get :current, params: { format: :json } expect(response).to be_success end it 'responds successfully for anonymous user' do get :current, params: { format: :json } expect(response).to be_success end end end ## Instruction: Add tests for user update endpoint ## Code After: require 'rails_helper' RSpec.describe UsersController, type: :controller do describe 'GET current' do it 'responds successfully for authenticated user' do user = create(:user) sign_in user get :current, params: { format: :json } expect(response).to be_success end it 'responds successfully for anonymous user' do get :current, params: { format: :json } expect(response).to be_success end end describe 'PUT update' do it 'does not work for anonymous user' do put :update, params: { format: :json, email: 'hey@example.com' } expect(response).to have_http_status(401) end it 'updates current user' do user = create(:user) sign_in user put :update, params: { format: :json, email: 'hey@example.com', region: 'eu', platform: 'xbl' } expect(response).to be_success expect(user.reload.email).to eq('hey@example.com') expect(user.region).to eq('eu') expect(user.platform).to eq('xbl') end end end
require 'rails_helper' RSpec.describe UsersController, type: :controller do describe 'GET current' do it 'responds successfully for authenticated user' do user = create(:user) sign_in user get :current, params: { format: :json } expect(response).to be_success end it 'responds successfully for anonymous user' do get :current, params: { format: :json } expect(response).to be_success end end + + describe 'PUT update' do + it 'does not work for anonymous user' do + put :update, params: { format: :json, email: 'hey@example.com' } + expect(response).to have_http_status(401) + end + + it 'updates current user' do + user = create(:user) + sign_in user + put :update, params: { + format: :json, email: 'hey@example.com', region: 'eu', + platform: 'xbl' + } + expect(response).to be_success + expect(user.reload.email).to eq('hey@example.com') + expect(user.region).to eq('eu') + expect(user.platform).to eq('xbl') + end + end end
20
1.176471
20
0
841254e28e4d599e22bde8185a27454c0dc49ccb
src/ast/nodes/symbol.rs
src/ast/nodes/symbol.rs
pub struct Symbol { ns: Option<String>, name: String, }
use std::fmt; pub struct Symbol { ns: Option<String>, name: String, } impl fmt::Display for Symbol { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { if let Some(ref ns) = self.ns { write!(f, "{}/{}", ns, self.name) } else { write!(f, "{}", self.name) } } }
Implement Display trait for Symbol struct
Implement Display trait for Symbol struct
Rust
mit
pavel-v-chernykh/lust
rust
## Code Before: pub struct Symbol { ns: Option<String>, name: String, } ## Instruction: Implement Display trait for Symbol struct ## Code After: use std::fmt; pub struct Symbol { ns: Option<String>, name: String, } impl fmt::Display for Symbol { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { if let Some(ref ns) = self.ns { write!(f, "{}/{}", ns, self.name) } else { write!(f, "{}", self.name) } } }
+ use std::fmt; + pub struct Symbol { ns: Option<String>, name: String, } + + impl fmt::Display for Symbol { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + if let Some(ref ns) = self.ns { + write!(f, "{}/{}", ns, self.name) + } else { + write!(f, "{}", self.name) + } + } + }
12
3
12
0
a5c8f4e9a78235219181d7fd37f759401cc766a6
spec/spec_helper.rb
spec/spec_helper.rb
ENV["RAILS_ENV"] = "test" require File.expand_path("../dummy/config/environment.rb", __FILE__) require "rails/test_help" require "rspec/rails" require 'simplecov' ActionMailer::Base.delivery_method = :test ActionMailer::Base.perform_deliveries = true ActionMailer::Base.default_url_options[:host] = "test.com" Rails.backtrace_cleaner.remove_silencers! ## Configure capybara for integration testing #require "capybara/rails" #Capybara.default_driver = :rack_test #Capybara.default_selector = :css # Run any available migration ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__) # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } RSpec.configure do |config| # Remove this line if you don't want RSpec's should and should_not # methods or matchers require 'rspec/expectations' config.include RSpec::Matchers # == Mock Framework config.mock_with :rspec end
ENV["RAILS_ENV"] = "test" # only start SimpleCov on ruby 1.9.x if RUBY_VERSION[0..2].to_f >= 1.9 require 'simplecov' SimpleCov.start end require File.expand_path("../dummy/config/environment.rb", __FILE__) require "rails/test_help" require "rspec/rails" ActionMailer::Base.delivery_method = :test ActionMailer::Base.perform_deliveries = true ActionMailer::Base.default_url_options[:host] = "test.com" Rails.backtrace_cleaner.remove_silencers! ## Configure capybara for integration testing #require "capybara/rails" #Capybara.default_driver = :rack_test #Capybara.default_selector = :css # Run any available migration ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__) # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } RSpec.configure do |config| # Remove this line if you don't want RSpec's should and should_not # methods or matchers require 'rspec/expectations' config.include RSpec::Matchers # == Mock Framework config.mock_with :rspec end
Use simplecov only on ruby 1.9.x
Use simplecov only on ruby 1.9.x
Ruby
mit
asiniy/cocoon,chrise86/cocoon,chrise86/cocoon,eetteri/cocoon,eetteri/cocoon,eetteri/cocoon,nathanvda/cocoon,CuriousCurmudgeon/cocoon,asiniy/cocoon,ikhakoo/cocoon,CuriousCurmudgeon/cocoon,vtamara/cocoon,asiniy/cocoon,nathanvda/cocoon,ikhakoo/cocoon,ikhakoo/cocoon,treble37/cocoon,nathanvda/cocoon,treble37/cocoon,treble37/cocoon,vtamara/cocoon,vtamara/cocoon,chrise86/cocoon
ruby
## Code Before: ENV["RAILS_ENV"] = "test" require File.expand_path("../dummy/config/environment.rb", __FILE__) require "rails/test_help" require "rspec/rails" require 'simplecov' ActionMailer::Base.delivery_method = :test ActionMailer::Base.perform_deliveries = true ActionMailer::Base.default_url_options[:host] = "test.com" Rails.backtrace_cleaner.remove_silencers! ## Configure capybara for integration testing #require "capybara/rails" #Capybara.default_driver = :rack_test #Capybara.default_selector = :css # Run any available migration ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__) # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } RSpec.configure do |config| # Remove this line if you don't want RSpec's should and should_not # methods or matchers require 'rspec/expectations' config.include RSpec::Matchers # == Mock Framework config.mock_with :rspec end ## Instruction: Use simplecov only on ruby 1.9.x ## Code After: ENV["RAILS_ENV"] = "test" # only start SimpleCov on ruby 1.9.x if RUBY_VERSION[0..2].to_f >= 1.9 require 'simplecov' SimpleCov.start end require File.expand_path("../dummy/config/environment.rb", __FILE__) require "rails/test_help" require "rspec/rails" ActionMailer::Base.delivery_method = :test ActionMailer::Base.perform_deliveries = true ActionMailer::Base.default_url_options[:host] = "test.com" Rails.backtrace_cleaner.remove_silencers! ## Configure capybara for integration testing #require "capybara/rails" #Capybara.default_driver = :rack_test #Capybara.default_selector = :css # Run any available migration ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__) # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } RSpec.configure do |config| # Remove this line if you don't want RSpec's should and should_not # methods or matchers require 'rspec/expectations' config.include RSpec::Matchers # == Mock Framework config.mock_with :rspec end
ENV["RAILS_ENV"] = "test" + + # only start SimpleCov on ruby 1.9.x + if RUBY_VERSION[0..2].to_f >= 1.9 + require 'simplecov' + SimpleCov.start + end + require File.expand_path("../dummy/config/environment.rb", __FILE__) require "rails/test_help" require "rspec/rails" - require 'simplecov' + ActionMailer::Base.delivery_method = :test ActionMailer::Base.perform_deliveries = true ActionMailer::Base.default_url_options[:host] = "test.com" Rails.backtrace_cleaner.remove_silencers! ## Configure capybara for integration testing #require "capybara/rails" #Capybara.default_driver = :rack_test #Capybara.default_selector = :css # Run any available migration ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__) # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } RSpec.configure do |config| # Remove this line if you don't want RSpec's should and should_not # methods or matchers require 'rspec/expectations' config.include RSpec::Matchers # == Mock Framework config.mock_with :rspec end
9
0.272727
8
1
232d0a48a041005e1ca1e44fe4ec8df1947f1c3e
stage3/01-tweaks/00-run.sh
stage3/01-tweaks/00-run.sh
on_chroot sh -e - <<EOF update-alternatives --install /usr/share/images/desktop-base/desktop-background \ desktop-background /usr/share/raspberrypi-artwork/raspberry-pi-logo.png 100 EOF rm -f ${ROOTFS_DIR}/etc/systemd/system/dhcpcd.service.d/wait.conf
rm -f ${ROOTFS_DIR}/etc/systemd/system/dhcpcd.service.d/wait.conf
Remove desktop-background setting (not used by PIXEL)
Remove desktop-background setting (not used by PIXEL)
Shell
bsd-3-clause
timcoote/Pumpkin-gen,cfstras/pi-gen,jacen92/pi-gen,brindosch/pi-gen,barnacleos/build,timcoote/Pumpkin-gen,KingBrewer/pi-gen,RPi-Distro/pi-gen,jannik-kramer/Mean,8devices/pi-gen,timcoote/Pumpkin-gen,BenjaminEHowe/keyringpi-gen,BlokasLabs/modep,DigitaleGesellschaft/pi-gen,mdegrazia/pi-gen,BlokasLabs/modep,sam3d/pi-gen,WLANThermo/pi-gen,rkubes/pi-gen,drothmaler/pi-gen,mdegrazia/pi-gen
shell
## Code Before: on_chroot sh -e - <<EOF update-alternatives --install /usr/share/images/desktop-base/desktop-background \ desktop-background /usr/share/raspberrypi-artwork/raspberry-pi-logo.png 100 EOF rm -f ${ROOTFS_DIR}/etc/systemd/system/dhcpcd.service.d/wait.conf ## Instruction: Remove desktop-background setting (not used by PIXEL) ## Code After: rm -f ${ROOTFS_DIR}/etc/systemd/system/dhcpcd.service.d/wait.conf
- - on_chroot sh -e - <<EOF - update-alternatives --install /usr/share/images/desktop-base/desktop-background \ - desktop-background /usr/share/raspberrypi-artwork/raspberry-pi-logo.png 100 - EOF rm -f ${ROOTFS_DIR}/etc/systemd/system/dhcpcd.service.d/wait.conf
5
0.714286
0
5
5fbf410e0042c82e524b3b08276b2d628d00b3c6
stickytape/prelude.py
stickytape/prelude.py
import contextlib as __stickytape_contextlib @__stickytape_contextlib.contextmanager def __stickytape_temporary_dir(): import tempfile import shutil dir_path = tempfile.mkdtemp() try: yield dir_path finally: shutil.rmtree(dir_path) with __stickytape_temporary_dir() as __stickytape_working_dir: def __stickytape_write_module(path, contents): import os, os.path, errno def make_package(path): parts = path.split("/") partial_path = __stickytape_working_dir for part in parts: partial_path = os.path.join(partial_path, part) if not os.path.exists(partial_path): os.mkdir(partial_path) open(os.path.join(partial_path, "__init__.py"), "w").write("\n") make_package(os.path.dirname(path)) full_path = os.path.join(__stickytape_working_dir, path) with open(full_path, "w") as module_file: module_file.write(contents) import sys sys.path.insert(0, __stickytape_working_dir)
import contextlib as __stickytape_contextlib @__stickytape_contextlib.contextmanager def __stickytape_temporary_dir(): import tempfile import shutil dir_path = tempfile.mkdtemp() try: yield dir_path finally: shutil.rmtree(dir_path) with __stickytape_temporary_dir() as __stickytape_working_dir: def __stickytape_write_module(path, contents): import os, os.path, errno def make_package(path): parts = path.split("/") partial_path = __stickytape_working_dir for part in parts: partial_path = os.path.join(partial_path, part) if not os.path.exists(partial_path): os.mkdir(partial_path) open(os.path.join(partial_path, "__init__.py"), "w").write("\n") make_package(os.path.dirname(path)) full_path = os.path.join(__stickytape_working_dir, path) with open(full_path, "w") as module_file: module_file.write(contents) import sys as __stickytape_sys __stickytape_sys.path.insert(0, __stickytape_working_dir)
Undo accidental global leakage of sys
Undo accidental global leakage of sys
Python
bsd-2-clause
mwilliamson/stickytape
python
## Code Before: import contextlib as __stickytape_contextlib @__stickytape_contextlib.contextmanager def __stickytape_temporary_dir(): import tempfile import shutil dir_path = tempfile.mkdtemp() try: yield dir_path finally: shutil.rmtree(dir_path) with __stickytape_temporary_dir() as __stickytape_working_dir: def __stickytape_write_module(path, contents): import os, os.path, errno def make_package(path): parts = path.split("/") partial_path = __stickytape_working_dir for part in parts: partial_path = os.path.join(partial_path, part) if not os.path.exists(partial_path): os.mkdir(partial_path) open(os.path.join(partial_path, "__init__.py"), "w").write("\n") make_package(os.path.dirname(path)) full_path = os.path.join(__stickytape_working_dir, path) with open(full_path, "w") as module_file: module_file.write(contents) import sys sys.path.insert(0, __stickytape_working_dir) ## Instruction: Undo accidental global leakage of sys ## Code After: import contextlib as __stickytape_contextlib @__stickytape_contextlib.contextmanager def __stickytape_temporary_dir(): import tempfile import shutil dir_path = tempfile.mkdtemp() try: yield dir_path finally: shutil.rmtree(dir_path) with __stickytape_temporary_dir() as __stickytape_working_dir: def __stickytape_write_module(path, contents): import os, os.path, errno def make_package(path): parts = path.split("/") partial_path = __stickytape_working_dir for part in parts: partial_path = os.path.join(partial_path, part) if not os.path.exists(partial_path): os.mkdir(partial_path) open(os.path.join(partial_path, "__init__.py"), "w").write("\n") make_package(os.path.dirname(path)) full_path = os.path.join(__stickytape_working_dir, path) with open(full_path, "w") as module_file: module_file.write(contents) import sys as __stickytape_sys __stickytape_sys.path.insert(0, __stickytape_working_dir)
import contextlib as __stickytape_contextlib @__stickytape_contextlib.contextmanager def __stickytape_temporary_dir(): import tempfile import shutil dir_path = tempfile.mkdtemp() try: yield dir_path finally: shutil.rmtree(dir_path) with __stickytape_temporary_dir() as __stickytape_working_dir: def __stickytape_write_module(path, contents): import os, os.path, errno def make_package(path): parts = path.split("/") partial_path = __stickytape_working_dir for part in parts: partial_path = os.path.join(partial_path, part) if not os.path.exists(partial_path): os.mkdir(partial_path) open(os.path.join(partial_path, "__init__.py"), "w").write("\n") make_package(os.path.dirname(path)) full_path = os.path.join(__stickytape_working_dir, path) with open(full_path, "w") as module_file: module_file.write(contents) - import sys + import sys as __stickytape_sys - sys.path.insert(0, __stickytape_working_dir) + __stickytape_sys.path.insert(0, __stickytape_working_dir) ? +++++++++++++
4
0.111111
2
2
754655a1c5b8eab6ce132f84b62c016bac5834e4
etc/vim/install_vim8.sh
etc/vim/install_vim8.sh
set -eu sudo add-apt-repository ppa:jonathonf/vim sudo apt-get update sudo apt-get install vim
set -eu sudo apt-get install -y software-properties-common sudo add-apt-repository ppa:jonathonf/vim sudo apt-get update sudo apt-get install -y vim
Fix "add-apt-repository" not found error
Fix "add-apt-repository" not found error Thanks to @masamasa9841
Shell
mit
Tiryoh/dotfiles
shell
## Code Before: set -eu sudo add-apt-repository ppa:jonathonf/vim sudo apt-get update sudo apt-get install vim ## Instruction: Fix "add-apt-repository" not found error Thanks to @masamasa9841 ## Code After: set -eu sudo apt-get install -y software-properties-common sudo add-apt-repository ppa:jonathonf/vim sudo apt-get update sudo apt-get install -y vim
set -eu + sudo apt-get install -y software-properties-common sudo add-apt-repository ppa:jonathonf/vim sudo apt-get update - sudo apt-get install vim + sudo apt-get install -y vim ? +++
3
0.75
2
1
da084cb560d0e4053249e72d842623166afa16c0
src/app/common/forms.service.ts
src/app/common/forms.service.ts
import { Injectable } from '@angular/core'; import { DynamicFormControlModel, DynamicInputModel } from '@ng2-dynamic-forms/core'; @Injectable() export class FormFactoryService { createFormModel(properties: Map<string, any>): DynamicFormControlModel[] { const answer = <DynamicFormControlModel[]>[]; for (const key in properties) { if (!properties.hasOwnProperty(key)) { continue; } const value: any = properties[key]; let formField: any; let type = (value.type || '').toLowerCase(); switch (value.type.toLowerCase()) { case 'string': case 'text': case 'number': case 'boolean': case 'password': case 'java.lang.string': if (type === 'java.lang.string') { type = 'text'; } formField = new DynamicInputModel({ id: value.name || key, label: value.title || value.label, hint: value.description, inputType: type, }); break; default: break; } if (formField) { answer.push(formField); } } return answer; } }
import { Injectable } from '@angular/core'; import { DynamicFormControlModel, DynamicInputModel } from '@ng2-dynamic-forms/core'; @Injectable() export class FormFactoryService { createFormModel(properties: Map<string, any>): DynamicFormControlModel[] { const answer = <DynamicFormControlModel[]>[]; for (const key in properties) { if (!properties.hasOwnProperty(key)) { continue; } const value: any = properties[key]; let formField: any; let type = (value.type || '').toLowerCase(); switch (value.type.toLowerCase()) { case 'string': case 'text': case 'number': case 'boolean': case 'password': case 'java.lang.string': if (type === 'java.lang.string') { type = 'text'; } formField = new DynamicInputModel({ id: value.name || key, label: value.title || value.displayName || value.name || key, hint: value.description, inputType: type, }); break; default: break; } if (formField) { answer.push(formField); } } return answer; } }
Use best option for form labels
Use best option for form labels
TypeScript
apache-2.0
kahboom/ipaas-client,kahboom/ipaas-client,kahboom/ipaas-client,kahboom/ipaas-client
typescript
## Code Before: import { Injectable } from '@angular/core'; import { DynamicFormControlModel, DynamicInputModel } from '@ng2-dynamic-forms/core'; @Injectable() export class FormFactoryService { createFormModel(properties: Map<string, any>): DynamicFormControlModel[] { const answer = <DynamicFormControlModel[]>[]; for (const key in properties) { if (!properties.hasOwnProperty(key)) { continue; } const value: any = properties[key]; let formField: any; let type = (value.type || '').toLowerCase(); switch (value.type.toLowerCase()) { case 'string': case 'text': case 'number': case 'boolean': case 'password': case 'java.lang.string': if (type === 'java.lang.string') { type = 'text'; } formField = new DynamicInputModel({ id: value.name || key, label: value.title || value.label, hint: value.description, inputType: type, }); break; default: break; } if (formField) { answer.push(formField); } } return answer; } } ## Instruction: Use best option for form labels ## Code After: import { Injectable } from '@angular/core'; import { DynamicFormControlModel, DynamicInputModel } from '@ng2-dynamic-forms/core'; @Injectable() export class FormFactoryService { createFormModel(properties: Map<string, any>): DynamicFormControlModel[] { const answer = <DynamicFormControlModel[]>[]; for (const key in properties) { if (!properties.hasOwnProperty(key)) { continue; } const value: any = properties[key]; let formField: any; let type = (value.type || '').toLowerCase(); switch (value.type.toLowerCase()) { case 'string': case 'text': case 'number': case 'boolean': case 'password': case 'java.lang.string': if (type === 'java.lang.string') { type = 'text'; } formField = new DynamicInputModel({ id: value.name || key, label: value.title || value.displayName || value.name || key, hint: value.description, inputType: type, }); break; default: break; } if (formField) { answer.push(formField); } } return answer; } }
import { Injectable } from '@angular/core'; import { DynamicFormControlModel, DynamicInputModel } from '@ng2-dynamic-forms/core'; @Injectable() export class FormFactoryService { createFormModel(properties: Map<string, any>): DynamicFormControlModel[] { const answer = <DynamicFormControlModel[]>[]; for (const key in properties) { if (!properties.hasOwnProperty(key)) { continue; } const value: any = properties[key]; let formField: any; let type = (value.type || '').toLowerCase(); switch (value.type.toLowerCase()) { case 'string': case 'text': case 'number': case 'boolean': case 'password': case 'java.lang.string': if (type === 'java.lang.string') { type = 'text'; } formField = new DynamicInputModel({ id: value.name || key, - label: value.title || value.label, ? ^ + label: value.title || value.displayName || value.name || key, ? ++++ ^^^^ ++++++ ++++++++++++++ hint: value.description, inputType: type, }); break; default: break; } if (formField) { answer.push(formField); } } return answer; } }
2
0.046512
1
1
cea9ca5b432382b2f854081389e4f82df5030443
src/main/resources/io/hops/zeppelin/zeppelin_env_template.sh
src/main/resources/io/hops/zeppelin/zeppelin_env_template.sh
export MASTER=yarn export ZEPPELIN_JAVA_OPTS="" export SPARK_HOME=%%spark_dir%% export HADOOP_HOME=%%hadoop_dir%% export HADOOP_CONF_DIR=%%hadoop_dir%%/etc/hadoop export HADOOP_USER_NAME=%%hadoop_user%% export JAVA_HOME=%%java_home%% export HADOOP_HDFS_HOME=%%hadoop_dir%% export LD_LIBRARY_PATH=%%ld_library_path%%:%%java_home%%/jre/lib/amd64/server:/usr/local/cuda/lib64/ export CLASSPATH=%%hadoop_classpath_global%%
export MASTER=yarn export ZEPPELIN_JAVA_OPTS="" export SPARK_HOME=%%spark_dir%% export HADOOP_HOME=%%hadoop_dir%% export HADOOP_CONF_DIR=%%hadoop_dir%%/etc/hadoop export HADOOP_USER_NAME=%%hadoop_user%% export JAVA_HOME=%%java_home%% export HADOOP_HDFS_HOME=%%hadoop_dir%% export LD_LIBRARY_PATH=%%ld_library_path%%:%%java_home%%/jre/lib/amd64/server:/usr/local/cuda/lib64/ export CLASSPATH=%%hadoop_classpath_global%%:$CLASSPATH
Append classpath variable for zeppelin tensorflow
Append classpath variable for zeppelin tensorflow
Shell
agpl-3.0
ErmiasG/hopsworks,FilotasSiskos/hopsworks,ErmiasG/hopsworks,ErmiasG/hopsworks,ErmiasG/hopsworks,berthoug/hopsworks,ErmiasG/hopsworks,FilotasSiskos/hopsworks,berthoug/hopsworks,berthoug/hopsworks,AlexHopsworks/hopsworks,AlexHopsworks/hopsworks,berthoug/hopsworks,FilotasSiskos/hopsworks,FilotasSiskos/hopsworks,AlexHopsworks/hopsworks,AlexHopsworks/hopsworks,berthoug/hopsworks,ErmiasG/hopsworks,berthoug/hopsworks,FilotasSiskos/hopsworks,FilotasSiskos/hopsworks,AlexHopsworks/hopsworks,AlexHopsworks/hopsworks
shell
## Code Before: export MASTER=yarn export ZEPPELIN_JAVA_OPTS="" export SPARK_HOME=%%spark_dir%% export HADOOP_HOME=%%hadoop_dir%% export HADOOP_CONF_DIR=%%hadoop_dir%%/etc/hadoop export HADOOP_USER_NAME=%%hadoop_user%% export JAVA_HOME=%%java_home%% export HADOOP_HDFS_HOME=%%hadoop_dir%% export LD_LIBRARY_PATH=%%ld_library_path%%:%%java_home%%/jre/lib/amd64/server:/usr/local/cuda/lib64/ export CLASSPATH=%%hadoop_classpath_global%% ## Instruction: Append classpath variable for zeppelin tensorflow ## Code After: export MASTER=yarn export ZEPPELIN_JAVA_OPTS="" export SPARK_HOME=%%spark_dir%% export HADOOP_HOME=%%hadoop_dir%% export HADOOP_CONF_DIR=%%hadoop_dir%%/etc/hadoop export HADOOP_USER_NAME=%%hadoop_user%% export JAVA_HOME=%%java_home%% export HADOOP_HDFS_HOME=%%hadoop_dir%% export LD_LIBRARY_PATH=%%ld_library_path%%:%%java_home%%/jre/lib/amd64/server:/usr/local/cuda/lib64/ export CLASSPATH=%%hadoop_classpath_global%%:$CLASSPATH
export MASTER=yarn export ZEPPELIN_JAVA_OPTS="" export SPARK_HOME=%%spark_dir%% export HADOOP_HOME=%%hadoop_dir%% export HADOOP_CONF_DIR=%%hadoop_dir%%/etc/hadoop export HADOOP_USER_NAME=%%hadoop_user%% export JAVA_HOME=%%java_home%% export HADOOP_HDFS_HOME=%%hadoop_dir%% export LD_LIBRARY_PATH=%%ld_library_path%%:%%java_home%%/jre/lib/amd64/server:/usr/local/cuda/lib64/ - export CLASSPATH=%%hadoop_classpath_global%% + export CLASSPATH=%%hadoop_classpath_global%%:$CLASSPATH ? +++++++++++
2
0.2
1
1
0a09dbb6cc0104c9e1d3e504f84a70f729d14af1
tests/unit/test_utils.py
tests/unit/test_utils.py
import pytest import radish.utils as utils @pytest.mark.parametrize('basedirs, expected_basedirs', [ (['foo', 'bar'], ['foo', 'bar']), (['foo:bar', 'foobar'], ['foo', 'bar', 'foobar']), (['foo:bar', 'foobar', 'one:two:three'], ['foo', 'bar', 'foobar', 'one', 'two', 'three']), (['foo:', ':bar'], ['foo', 'bar']) ]) def test_flattened_basedirs(basedirs, expected_basedirs): """ Test flatten basedirs """ # given & when actual_basedirs = utils.flattened_basedirs(basedirs) # then assert actual_basedirs == expected_basedirs
import pytest import radish.utils as utils @pytest.mark.parametrize('basedirs, expected_basedirs', [ (['foo', 'bar'], ['foo', 'bar']), (['foo:bar', 'foobar'], ['foo', 'bar', 'foobar']), (['foo:bar', 'foobar', 'one:two:three'], ['foo', 'bar', 'foobar', 'one', 'two', 'three']), (['foo:', ':bar'], ['foo', 'bar']) ]) def test_flattened_basedirs(basedirs, expected_basedirs): """ Test flatten basedirs """ # given & when actual_basedirs = utils.flattened_basedirs(basedirs) # then assert actual_basedirs == expected_basedirs def test_make_unique_obj_list(): """ Test filter list by propertyName """ object_list = [ type('SomeObjectClass', (object,), {'propertyName' : '1'}), type('SomeObjectClass', (object,), {'propertyName' : '2'}), type('SomeObjectClass', (object,), {'propertyName' : '1'}), ] value_list = utils.make_unique_obj_list(object_list, lambda x: x.propertyName) value_list = list(map(lambda x: x.propertyName, value_list)) value_list.sort() assert value_list == ['1', '2']
Add a test for utils.make_unique_obj_list
Add a test for utils.make_unique_obj_list
Python
mit
radish-bdd/radish,radish-bdd/radish
python
## Code Before: import pytest import radish.utils as utils @pytest.mark.parametrize('basedirs, expected_basedirs', [ (['foo', 'bar'], ['foo', 'bar']), (['foo:bar', 'foobar'], ['foo', 'bar', 'foobar']), (['foo:bar', 'foobar', 'one:two:three'], ['foo', 'bar', 'foobar', 'one', 'two', 'three']), (['foo:', ':bar'], ['foo', 'bar']) ]) def test_flattened_basedirs(basedirs, expected_basedirs): """ Test flatten basedirs """ # given & when actual_basedirs = utils.flattened_basedirs(basedirs) # then assert actual_basedirs == expected_basedirs ## Instruction: Add a test for utils.make_unique_obj_list ## Code After: import pytest import radish.utils as utils @pytest.mark.parametrize('basedirs, expected_basedirs', [ (['foo', 'bar'], ['foo', 'bar']), (['foo:bar', 'foobar'], ['foo', 'bar', 'foobar']), (['foo:bar', 'foobar', 'one:two:three'], ['foo', 'bar', 'foobar', 'one', 'two', 'three']), (['foo:', ':bar'], ['foo', 'bar']) ]) def test_flattened_basedirs(basedirs, expected_basedirs): """ Test flatten basedirs """ # given & when actual_basedirs = utils.flattened_basedirs(basedirs) # then assert actual_basedirs == expected_basedirs def test_make_unique_obj_list(): """ Test filter list by propertyName """ object_list = [ type('SomeObjectClass', (object,), {'propertyName' : '1'}), type('SomeObjectClass', (object,), {'propertyName' : '2'}), type('SomeObjectClass', (object,), {'propertyName' : '1'}), ] value_list = utils.make_unique_obj_list(object_list, lambda x: x.propertyName) value_list = list(map(lambda x: x.propertyName, value_list)) value_list.sort() assert value_list == ['1', '2']
import pytest import radish.utils as utils @pytest.mark.parametrize('basedirs, expected_basedirs', [ (['foo', 'bar'], ['foo', 'bar']), (['foo:bar', 'foobar'], ['foo', 'bar', 'foobar']), (['foo:bar', 'foobar', 'one:two:three'], ['foo', 'bar', 'foobar', 'one', 'two', 'three']), (['foo:', ':bar'], ['foo', 'bar']) ]) def test_flattened_basedirs(basedirs, expected_basedirs): """ Test flatten basedirs """ # given & when actual_basedirs = utils.flattened_basedirs(basedirs) # then assert actual_basedirs == expected_basedirs + + + def test_make_unique_obj_list(): + """ + Test filter list by propertyName + """ + object_list = [ type('SomeObjectClass', (object,), {'propertyName' : '1'}), + type('SomeObjectClass', (object,), {'propertyName' : '2'}), + type('SomeObjectClass', (object,), {'propertyName' : '1'}), + ] + + value_list = utils.make_unique_obj_list(object_list, lambda x: x.propertyName) + value_list = list(map(lambda x: x.propertyName, value_list)) + value_list.sort() + + assert value_list == ['1', '2']
16
0.727273
16
0
f3eb6cbc0f518ed8ec6098d3dfdd205ed734022c
eval_kernel/eval_kernel.py
eval_kernel/eval_kernel.py
from __future__ import print_function from jupyter_kernel import MagicKernel class EvalKernel(MagicKernel): implementation = 'Eval' implementation_version = '1.0' language = 'python' language_version = '0.1' banner = "Eval kernel - evaluates simple Python statements and expressions" env = {} def get_usage(self): return "This is a usage statement." def set_variable(self, name, value): """ Set a variable in the kernel language. """ self.env[name] = value def get_variable(self, name): """ Get a variable from the kernel language. """ return self.env.get(name, None) def do_execute_direct(self, code): python_magic = self.line_magics['python'] resp = python_magic.eval(code.strip()) if not resp is None: self.Print(str(resp)) def get_completions(self, token): python_magic = self.line_magics['python'] return python_magic.get_completions(token) def get_kernel_help_on(self, expr, level=0): python_magic = self.line_magics['python'] return python_magic.get_help_on(expr, level) if __name__ == '__main__': from IPython.kernel.zmq.kernelapp import IPKernelApp IPKernelApp.launch_instance(kernel_class=EvalKernel)
from __future__ import print_function from jupyter_kernel import MagicKernel class EvalKernel(MagicKernel): implementation = 'Eval' implementation_version = '1.0' language = 'python' language_version = '0.1' banner = "Eval kernel - evaluates simple Python statements and expressions" env = {} def get_usage(self): return "This is a usage statement." def set_variable(self, name, value): """ Set a variable in the kernel language. """ self.env[name] = value def get_variable(self, name): """ Get a variable from the kernel language. """ return self.env.get(name, None) def do_execute_direct(self, code): python_magic = self.line_magics['python'] return python_magic.eval(code.strip()) def get_completions(self, token): python_magic = self.line_magics['python'] return python_magic.get_completions(token) def get_kernel_help_on(self, expr, level=0): python_magic = self.line_magics['python'] return python_magic.get_help_on(expr, level) if __name__ == '__main__': from IPython.kernel.zmq.kernelapp import IPKernelApp IPKernelApp.launch_instance(kernel_class=EvalKernel)
Return python eval instead of printing it
Return python eval instead of printing it
Python
bsd-3-clause
Calysto/metakernel
python
## Code Before: from __future__ import print_function from jupyter_kernel import MagicKernel class EvalKernel(MagicKernel): implementation = 'Eval' implementation_version = '1.0' language = 'python' language_version = '0.1' banner = "Eval kernel - evaluates simple Python statements and expressions" env = {} def get_usage(self): return "This is a usage statement." def set_variable(self, name, value): """ Set a variable in the kernel language. """ self.env[name] = value def get_variable(self, name): """ Get a variable from the kernel language. """ return self.env.get(name, None) def do_execute_direct(self, code): python_magic = self.line_magics['python'] resp = python_magic.eval(code.strip()) if not resp is None: self.Print(str(resp)) def get_completions(self, token): python_magic = self.line_magics['python'] return python_magic.get_completions(token) def get_kernel_help_on(self, expr, level=0): python_magic = self.line_magics['python'] return python_magic.get_help_on(expr, level) if __name__ == '__main__': from IPython.kernel.zmq.kernelapp import IPKernelApp IPKernelApp.launch_instance(kernel_class=EvalKernel) ## Instruction: Return python eval instead of printing it ## Code After: from __future__ import print_function from jupyter_kernel import MagicKernel class EvalKernel(MagicKernel): implementation = 'Eval' implementation_version = '1.0' language = 'python' language_version = '0.1' banner = "Eval kernel - evaluates simple Python statements and expressions" env = {} def get_usage(self): return "This is a usage statement." def set_variable(self, name, value): """ Set a variable in the kernel language. """ self.env[name] = value def get_variable(self, name): """ Get a variable from the kernel language. """ return self.env.get(name, None) def do_execute_direct(self, code): python_magic = self.line_magics['python'] return python_magic.eval(code.strip()) def get_completions(self, token): python_magic = self.line_magics['python'] return python_magic.get_completions(token) def get_kernel_help_on(self, expr, level=0): python_magic = self.line_magics['python'] return python_magic.get_help_on(expr, level) if __name__ == '__main__': from IPython.kernel.zmq.kernelapp import IPKernelApp IPKernelApp.launch_instance(kernel_class=EvalKernel)
from __future__ import print_function from jupyter_kernel import MagicKernel class EvalKernel(MagicKernel): implementation = 'Eval' implementation_version = '1.0' language = 'python' language_version = '0.1' banner = "Eval kernel - evaluates simple Python statements and expressions" env = {} def get_usage(self): return "This is a usage statement." def set_variable(self, name, value): """ Set a variable in the kernel language. """ self.env[name] = value def get_variable(self, name): """ Get a variable from the kernel language. """ return self.env.get(name, None) def do_execute_direct(self, code): python_magic = self.line_magics['python'] - resp = python_magic.eval(code.strip()) ? ^^^^ + return python_magic.eval(code.strip()) ? ^^^^ - if not resp is None: - self.Print(str(resp)) def get_completions(self, token): python_magic = self.line_magics['python'] return python_magic.get_completions(token) def get_kernel_help_on(self, expr, level=0): python_magic = self.line_magics['python'] return python_magic.get_help_on(expr, level) if __name__ == '__main__': from IPython.kernel.zmq.kernelapp import IPKernelApp IPKernelApp.launch_instance(kernel_class=EvalKernel)
4
0.088889
1
3
71d8e4db13f78f3b925003cc316da2f6109c9127
_config.yml
_config.yml
copyright: 2011 - 2014 Cowork Niagara Co-operative Inc. All rights reserved.
copyright: 2011 - 2014 Cowork Niagara Co-operative Inc. All rights reserved. exclude: - "Gemfile" - "Gemfile.lock"
Update config to ignore Gemfile
Update config to ignore Gemfile
YAML
bsd-3-clause
CoworkingNiagara/coworkingniagara.github.io,CoworkingNiagara/coworkingniagara.github.io,CoworkingNiagara/coworkingniagara.github.io
yaml
## Code Before: copyright: 2011 - 2014 Cowork Niagara Co-operative Inc. All rights reserved. ## Instruction: Update config to ignore Gemfile ## Code After: copyright: 2011 - 2014 Cowork Niagara Co-operative Inc. All rights reserved. exclude: - "Gemfile" - "Gemfile.lock"
copyright: 2011 - 2014 Cowork Niagara Co-operative Inc. All rights reserved. + exclude: + - "Gemfile" + - "Gemfile.lock"
3
3
3
0
e4241750719b51190de44f8329300ba65e89ac67
app/models/place.rb
app/models/place.rb
class Place < ActiveRecord::Base validates :latitude, :longitude, :comments, presence: true has_many :comments $es.indices.create index: "shizuka", body: { mappings: { place: { properties: { location: { type: "geo_shape", precision: "10m" } } } } } after_save do $es.index index: "shizuka", type: "place", id: id, body: { location: { type: "point", coordinates: [latitude, longitude], comments: comments.collect { |c| { id: c.id, mood: c.mood, things: c.things } } } } end end
class Place < ActiveRecord::Base validates :latitude, :longitude, :comments, presence: true has_many :comments unless $es.indices.exists index: "shizuka" $es.indices.create index: "shizuka", body: { mappings: { place: { properties: { location: { type: "geo_shape", precision: "10m" } } } } } end after_save do $es.index index: "shizuka", type: "place", id: id, body: { location: { type: "point", coordinates: [latitude, longitude] }, comments: comments.collect { |c| { id: c.id, mood: c.mood, things: c.things } } } end end
Fix index creation error when already exists.
Fix index creation error when already exists.
Ruby
mit
lidonghua/shizuka,lidonghua/shizuka,lidonghua/shizuka
ruby
## Code Before: class Place < ActiveRecord::Base validates :latitude, :longitude, :comments, presence: true has_many :comments $es.indices.create index: "shizuka", body: { mappings: { place: { properties: { location: { type: "geo_shape", precision: "10m" } } } } } after_save do $es.index index: "shizuka", type: "place", id: id, body: { location: { type: "point", coordinates: [latitude, longitude], comments: comments.collect { |c| { id: c.id, mood: c.mood, things: c.things } } } } end end ## Instruction: Fix index creation error when already exists. ## Code After: class Place < ActiveRecord::Base validates :latitude, :longitude, :comments, presence: true has_many :comments unless $es.indices.exists index: "shizuka" $es.indices.create index: "shizuka", body: { mappings: { place: { properties: { location: { type: "geo_shape", precision: "10m" } } } } } end after_save do $es.index index: "shizuka", type: "place", id: id, body: { location: { type: "point", coordinates: [latitude, longitude] }, comments: comments.collect { |c| { id: c.id, mood: c.mood, things: c.things } } } end end
class Place < ActiveRecord::Base validates :latitude, :longitude, :comments, presence: true has_many :comments + unless $es.indices.exists index: "shizuka" - $es.indices.create index: "shizuka", body: { + $es.indices.create index: "shizuka", body: { ? ++ - mappings: { + mappings: { ? ++ - place: { + place: { ? ++ - properties: { + properties: { ? ++ - location: { + location: { ? ++ - type: "geo_shape", + type: "geo_shape", ? ++ - precision: "10m" + precision: "10m" ? ++ + } } } } } - } + end after_save do $es.index index: "shizuka", type: "place", id: id, body: { location: { type: "point", - coordinates: [latitude, longitude], ? - + coordinates: [latitude, longitude] + }, - comments: comments.collect { |c| ? -- + comments: comments.collect { |c| - { id: c.id, mood: c.mood, things: c.things } ? -- + { id: c.id, mood: c.mood, things: c.things } - } } } end end
26
0.866667
14
12
bb29b476c6efe5667f86c14041102e4cb5bb0215
test/jcf/integration_test.clj
test/jcf/integration_test.clj
(ns jcf.integration-test (:require [clojure.java.io :as io] [clojure.java.shell :refer [sh]] [clojure.string :as str] [clojure.test :refer :all] [leiningen.new.jcf-static :refer :all] [leiningen.new.templates :refer [*dir*]] [me.raynes.fs :refer [temp-dir]])) (defn generate-project [test-fn] (let [app-name "example" sandbox ^java.io.File (temp-dir "jcf-")] (binding [*dir* (str sandbox "/" app-name)] (println (format "Generating project in %s..." *dir*)) (jcf-static app-name) (try (test-fn) (finally (when (.isDirectory sandbox) (println (format "Deleting project in %s..." *dir*)) (.delete sandbox))))))) (use-fixtures :once generate-project) (deftest test-lein-test (let [_ (println "Running lein test. This'll take a couple of seconds...") {:keys [exit out err]} (sh "lein" "test" :dir *dir*)] (is (zero? exit) (format "lein test failed with status %d.\nOut:\n%s\n\nErr:\n%s\n\n" exit out err))))
(ns jcf.integration-test (:require [clojure.java.io :as io] [clojure.java.shell :refer [sh]] [clojure.string :as str] [clojure.test :refer :all] [leiningen.new.jcf-static :refer :all] [leiningen.new.templates :refer [*dir*]] [me.raynes.fs :refer [temp-dir]])) (defn generate-project [test-fn] (let [app-name "example" sandbox ^java.io.File (temp-dir "jcf-")] (binding [*dir* (str sandbox "/" app-name)] (println (format "Generating project in %s..." *dir*)) (jcf-static app-name) (try (test-fn) (finally (when (.isDirectory sandbox) (println (format "Deleting project in %s..." *dir*)) (.delete sandbox))))))) (use-fixtures :once generate-project) (deftest test-lein-test (let [_ (println "Running lein test. This'll take a couple of seconds...") {:keys [exit out err]} (sh "lein" "test" :dir *dir*)] (is (zero? exit) (format "lein test failed with status %d.\nOut:\n%s\n\nErr:\n%s\n\n" exit out err)))) (deftest test-lein-run (let [_ (println "Running lein run. This'll take a couple of seconds...") {:keys [exit out err]} (sh "lein" "run" :dir *dir*)] (is (zero? exit) (format "lein run failed with status %d.\nOut:\n%s\n\nErr:\n%s\n\n" exit out err))))
Make sure `lein run` works
Make sure `lein run` works
Clojure
mit
jcf/lein-template-static
clojure
## Code Before: (ns jcf.integration-test (:require [clojure.java.io :as io] [clojure.java.shell :refer [sh]] [clojure.string :as str] [clojure.test :refer :all] [leiningen.new.jcf-static :refer :all] [leiningen.new.templates :refer [*dir*]] [me.raynes.fs :refer [temp-dir]])) (defn generate-project [test-fn] (let [app-name "example" sandbox ^java.io.File (temp-dir "jcf-")] (binding [*dir* (str sandbox "/" app-name)] (println (format "Generating project in %s..." *dir*)) (jcf-static app-name) (try (test-fn) (finally (when (.isDirectory sandbox) (println (format "Deleting project in %s..." *dir*)) (.delete sandbox))))))) (use-fixtures :once generate-project) (deftest test-lein-test (let [_ (println "Running lein test. This'll take a couple of seconds...") {:keys [exit out err]} (sh "lein" "test" :dir *dir*)] (is (zero? exit) (format "lein test failed with status %d.\nOut:\n%s\n\nErr:\n%s\n\n" exit out err)))) ## Instruction: Make sure `lein run` works ## Code After: (ns jcf.integration-test (:require [clojure.java.io :as io] [clojure.java.shell :refer [sh]] [clojure.string :as str] [clojure.test :refer :all] [leiningen.new.jcf-static :refer :all] [leiningen.new.templates :refer [*dir*]] [me.raynes.fs :refer [temp-dir]])) (defn generate-project [test-fn] (let [app-name "example" sandbox ^java.io.File (temp-dir "jcf-")] (binding [*dir* (str sandbox "/" app-name)] (println (format "Generating project in %s..." *dir*)) (jcf-static app-name) (try (test-fn) (finally (when (.isDirectory sandbox) (println (format "Deleting project in %s..." *dir*)) (.delete sandbox))))))) (use-fixtures :once generate-project) (deftest test-lein-test (let [_ (println "Running lein test. This'll take a couple of seconds...") {:keys [exit out err]} (sh "lein" "test" :dir *dir*)] (is (zero? exit) (format "lein test failed with status %d.\nOut:\n%s\n\nErr:\n%s\n\n" exit out err)))) (deftest test-lein-run (let [_ (println "Running lein run. This'll take a couple of seconds...") {:keys [exit out err]} (sh "lein" "run" :dir *dir*)] (is (zero? exit) (format "lein run failed with status %d.\nOut:\n%s\n\nErr:\n%s\n\n" exit out err))))
(ns jcf.integration-test (:require [clojure.java.io :as io] [clojure.java.shell :refer [sh]] [clojure.string :as str] [clojure.test :refer :all] [leiningen.new.jcf-static :refer :all] [leiningen.new.templates :refer [*dir*]] [me.raynes.fs :refer [temp-dir]])) (defn generate-project [test-fn] (let [app-name "example" sandbox ^java.io.File (temp-dir "jcf-")] (binding [*dir* (str sandbox "/" app-name)] (println (format "Generating project in %s..." *dir*)) (jcf-static app-name) (try (test-fn) (finally (when (.isDirectory sandbox) (println (format "Deleting project in %s..." *dir*)) (.delete sandbox))))))) (use-fixtures :once generate-project) (deftest test-lein-test (let [_ (println "Running lein test. This'll take a couple of seconds...") {:keys [exit out err]} (sh "lein" "test" :dir *dir*)] (is (zero? exit) (format "lein test failed with status %d.\nOut:\n%s\n\nErr:\n%s\n\n" exit out err)))) + + (deftest test-lein-run + (let [_ (println "Running lein run. This'll take a couple of seconds...") + {:keys [exit out err]} (sh "lein" "run" :dir *dir*)] + (is (zero? exit) + (format "lein run failed with status %d.\nOut:\n%s\n\nErr:\n%s\n\n" + exit out err))))
7
0.233333
7
0
7876d639899a1998fb9c34a24cd7462656e4e086
src/DotvvmAcademy.Web/Resources/_Stylesheets/style.scss
src/DotvvmAcademy.Web/Resources/_Stylesheets/style.scss
// External @import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&subset=latin-ext'); // Base @import "Base/default.scss"; @import "Base/shared-classes.scss"; // Components @import "Components/buttons.scss"; @import "Components/container.scss"; @import "Components/data-pager.scss"; @import "Components/filters.scss"; @import "Components/form-wrapper.scss"; @import "Components/label-wrapper.scss"; @import "Components/postback-loader.scss"; @import "Components/section.scss"; @import "Components/typography.scss"; @import "Components/lessons-container.scss"; @import "components/lang-switcher"; @import "components/lesson-progress-bar"; // Modules @import "Modules/box-wrapper.scss"; @import "Modules/grid-view.scss"; @import "Modules/navigation.scss"; // Views @import "Views/StyleGuide/style-guide.scss"; @import "Views/Public/ErrorSites/error-code.scss"; //Sections @import "views/public/sections/header"; @import "views/public/sections/section-coffee"; @import "views/public/sections/footer";
// External @import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&subset=latin-ext'); // Base @import "Base/default.scss"; @import "Base/shared-classes.scss"; // Components @import "Components/buttons.scss"; @import "Components/container.scss"; @import "Components/data-pager.scss"; @import "Components/filters.scss"; @import "Components/form-wrapper.scss"; @import "Components/label-wrapper.scss"; @import "Components/postback-loader.scss"; @import "Components/section.scss"; @import "Components/typography.scss"; @import "Components/lessons-container.scss"; @import "Components/lang-switcher.scss"; @import "Components/lesson-progress-bar.scss"; // Modules @import "Modules/box-wrapper.scss"; @import "Modules/grid-view.scss"; @import "Modules/navigation.scss"; // Views @import "Views/StyleGuide/style-guide.scss"; @import "Views/Public/ErrorSites/error-code.scss"; //Sections @import "Views/Public/Sections/header"; @import "Views/Public/Sections/section-coffee"; @import "Views/Public/Sections/footer";
Fix sass compilation issues on linux
Fix sass compilation issues on linux ...caused by case insensitive paths.
SCSS
apache-2.0
riganti/dotvvm-samples-academy,riganti/dotvvm-samples-academy,riganti/dotvvm-samples-academy
scss
## Code Before: // External @import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&subset=latin-ext'); // Base @import "Base/default.scss"; @import "Base/shared-classes.scss"; // Components @import "Components/buttons.scss"; @import "Components/container.scss"; @import "Components/data-pager.scss"; @import "Components/filters.scss"; @import "Components/form-wrapper.scss"; @import "Components/label-wrapper.scss"; @import "Components/postback-loader.scss"; @import "Components/section.scss"; @import "Components/typography.scss"; @import "Components/lessons-container.scss"; @import "components/lang-switcher"; @import "components/lesson-progress-bar"; // Modules @import "Modules/box-wrapper.scss"; @import "Modules/grid-view.scss"; @import "Modules/navigation.scss"; // Views @import "Views/StyleGuide/style-guide.scss"; @import "Views/Public/ErrorSites/error-code.scss"; //Sections @import "views/public/sections/header"; @import "views/public/sections/section-coffee"; @import "views/public/sections/footer"; ## Instruction: Fix sass compilation issues on linux ...caused by case insensitive paths. ## Code After: // External @import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&subset=latin-ext'); // Base @import "Base/default.scss"; @import "Base/shared-classes.scss"; // Components @import "Components/buttons.scss"; @import "Components/container.scss"; @import "Components/data-pager.scss"; @import "Components/filters.scss"; @import "Components/form-wrapper.scss"; @import "Components/label-wrapper.scss"; @import "Components/postback-loader.scss"; @import "Components/section.scss"; @import "Components/typography.scss"; @import "Components/lessons-container.scss"; @import "Components/lang-switcher.scss"; @import "Components/lesson-progress-bar.scss"; // Modules @import "Modules/box-wrapper.scss"; @import "Modules/grid-view.scss"; @import "Modules/navigation.scss"; // Views @import "Views/StyleGuide/style-guide.scss"; @import "Views/Public/ErrorSites/error-code.scss"; //Sections @import "Views/Public/Sections/header"; @import "Views/Public/Sections/section-coffee"; @import "Views/Public/Sections/footer";
// External @import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&subset=latin-ext'); // Base @import "Base/default.scss"; @import "Base/shared-classes.scss"; // Components @import "Components/buttons.scss"; @import "Components/container.scss"; @import "Components/data-pager.scss"; @import "Components/filters.scss"; @import "Components/form-wrapper.scss"; @import "Components/label-wrapper.scss"; @import "Components/postback-loader.scss"; @import "Components/section.scss"; @import "Components/typography.scss"; @import "Components/lessons-container.scss"; - @import "components/lang-switcher"; ? ^ + @import "Components/lang-switcher.scss"; ? ^ +++++ - @import "components/lesson-progress-bar"; ? ^ + @import "Components/lesson-progress-bar.scss"; ? ^ +++++ // Modules @import "Modules/box-wrapper.scss"; @import "Modules/grid-view.scss"; @import "Modules/navigation.scss"; // Views @import "Views/StyleGuide/style-guide.scss"; @import "Views/Public/ErrorSites/error-code.scss"; //Sections - @import "views/public/sections/header"; ? ^ ^ ^ + @import "Views/Public/Sections/header"; ? ^ ^ ^ - @import "views/public/sections/section-coffee"; ? ^ ^ ^ + @import "Views/Public/Sections/section-coffee"; ? ^ ^ ^ - @import "views/public/sections/footer"; ? ^ ^ ^ + @import "Views/Public/Sections/footer"; ? ^ ^ ^
10
0.294118
5
5
b2e4eb0673de9fab36c5e9e472e1079878426d1f
google/cai.go
google/cai.go
package google // Asset is the CAI representation of a resource. type Asset struct { // The name, in a peculiar format: `\\<api>.googleapis.com/<self_link>` Name string // The type name in `google.<api>.<resourcename>` format. Type string Resource *AssetResource IAMPolicy *IAMPolicy } // AssetResource is the Asset's Resource field. type AssetResource struct { // Api version Version string // URI including scheme for the discovery doc - assembled from // product name and version. DiscoveryDocumentURI string // Resource name. DiscoveryName string // Actual resource state as per Terraform. Note that this does // not necessarily correspond perfectly with the CAI representation // as there are occasional deviations between CAI and API responses. // This returns the API response values instead. Data map[string]interface{} } type IAMPolicy struct { Bindings []IAMBinding } type IAMBinding struct { Role string Members []string }
package google // Asset is the CAI representation of a resource. type Asset struct { // The name, in a peculiar format: `\\<api>.googleapis.com/<self_link>` Name string `json:"name"` // The type name in `google.<api>.<resourcename>` format. Type string `json:"asset_type"` Resource *AssetResource `json:"resource,omitempty"` IAMPolicy *IAMPolicy `json:"iam_policy,omitempty"` } // AssetResource is the Asset's Resource field. type AssetResource struct { // Api version Version string `json:"version"` // URI including scheme for the discovery doc - assembled from // product name and version. DiscoveryDocumentURI string `json:"discovery_document_uri"` // Resource name. DiscoveryName string `json:"discovery_name"` // Actual resource state as per Terraform. Note that this does // not necessarily correspond perfectly with the CAI representation // as there are occasional deviations between CAI and API responses. // This returns the API response values instead. Data map[string]interface{} `json:"data,omitempty"` } type IAMPolicy struct { Bindings []IAMBinding `json:"bindings"` } type IAMBinding struct { Role string `json:"role"` Members []string `json:"members"` }
Add json tags to CAI asset.
[terraform-conversions] Add json tags to CAI asset. Signed-off-by: Modular Magician <86ce7da8ad74b1c583667a2bebd347455fa06219@google.com>
Go
apache-2.0
GoogleCloudPlatform/terraform-google-conversion
go
## Code Before: package google // Asset is the CAI representation of a resource. type Asset struct { // The name, in a peculiar format: `\\<api>.googleapis.com/<self_link>` Name string // The type name in `google.<api>.<resourcename>` format. Type string Resource *AssetResource IAMPolicy *IAMPolicy } // AssetResource is the Asset's Resource field. type AssetResource struct { // Api version Version string // URI including scheme for the discovery doc - assembled from // product name and version. DiscoveryDocumentURI string // Resource name. DiscoveryName string // Actual resource state as per Terraform. Note that this does // not necessarily correspond perfectly with the CAI representation // as there are occasional deviations between CAI and API responses. // This returns the API response values instead. Data map[string]interface{} } type IAMPolicy struct { Bindings []IAMBinding } type IAMBinding struct { Role string Members []string } ## Instruction: [terraform-conversions] Add json tags to CAI asset. Signed-off-by: Modular Magician <86ce7da8ad74b1c583667a2bebd347455fa06219@google.com> ## Code After: package google // Asset is the CAI representation of a resource. type Asset struct { // The name, in a peculiar format: `\\<api>.googleapis.com/<self_link>` Name string `json:"name"` // The type name in `google.<api>.<resourcename>` format. Type string `json:"asset_type"` Resource *AssetResource `json:"resource,omitempty"` IAMPolicy *IAMPolicy `json:"iam_policy,omitempty"` } // AssetResource is the Asset's Resource field. type AssetResource struct { // Api version Version string `json:"version"` // URI including scheme for the discovery doc - assembled from // product name and version. DiscoveryDocumentURI string `json:"discovery_document_uri"` // Resource name. DiscoveryName string `json:"discovery_name"` // Actual resource state as per Terraform. Note that this does // not necessarily correspond perfectly with the CAI representation // as there are occasional deviations between CAI and API responses. // This returns the API response values instead. Data map[string]interface{} `json:"data,omitempty"` } type IAMPolicy struct { Bindings []IAMBinding `json:"bindings"` } type IAMBinding struct { Role string `json:"role"` Members []string `json:"members"` }
package google // Asset is the CAI representation of a resource. type Asset struct { // The name, in a peculiar format: `\\<api>.googleapis.com/<self_link>` - Name string + Name string `json:"name"` // The type name in `google.<api>.<resourcename>` format. - Type string - Resource *AssetResource - IAMPolicy *IAMPolicy + Type string `json:"asset_type"` + Resource *AssetResource `json:"resource,omitempty"` + IAMPolicy *IAMPolicy `json:"iam_policy,omitempty"` } // AssetResource is the Asset's Resource field. type AssetResource struct { // Api version - Version string + Version string `json:"version"` // URI including scheme for the discovery doc - assembled from // product name and version. - DiscoveryDocumentURI string + DiscoveryDocumentURI string `json:"discovery_document_uri"` // Resource name. - DiscoveryName string + DiscoveryName string `json:"discovery_name"` // Actual resource state as per Terraform. Note that this does // not necessarily correspond perfectly with the CAI representation // as there are occasional deviations between CAI and API responses. // This returns the API response values instead. - Data map[string]interface{} + Data map[string]interface{} `json:"data,omitempty"` } type IAMPolicy struct { - Bindings []IAMBinding + Bindings []IAMBinding `json:"bindings"` } type IAMBinding struct { - Role string - Members []string + Role string `json:"role"` + Members []string `json:"members"` }
22
0.611111
11
11
cd4fda7ed1d48d2c1a44f14289c3d66318368c06
src/main/resources/static/views/announcement.html
src/main/resources/static/views/announcement.html
<div ng-controller="AnnouncementController" layout-padding layout-margin layout="row" layout-sm="column"> <div flex> <form ng-submit="save()" name="announcementForm"> <md-content layout-padding layout="column" layout-sm="column"> <md-input-container> <label>Title</label> <input type="text" placeholder="Summary of your annnouncement with no more than 50 characters" ng-model="title" ng-required="true" ng-minlength="2" ng-maxlength="50" /> </md-input-container> <md-input-container> <label>Content</label> <textarea ng-model="content" placeholder="Your announcement" ng-required="true" ng-minlength="2"></textarea> </md-input-container> <md-button class="md-primary" md-ripple-size="full">Make Announcement!</md-button> </md-content> </form> </div> <div flex> <md-content> <md-list> <md-list-item class="md-3-line" ng-repeat="announcement in announcements | orderBy: 'created':true"> <div class="md-list-item-text"> <h3>{{ announcement.title }}</h3> <h4>{{ announcement.username }} at <time>{{ announcement.created | date:'dd-MM-yyyy HH:mm' }}</time></h4> <p>{{ announcement.content }}</p> </div> </md-list-item> </md-list> </md-content> </div> </div>
<div ng-controller="AnnouncementController" layout-padding layout-margin layout="column"> <div flex> <form ng-submit="save()" name="announcementForm"> <md-content layout-padding layout="column"> <md-input-container> <label>Title</label> <input type="text" placeholder="Summary of your annnouncement with no more than 50 characters" ng-model="title" ng-required="true" ng-minlength="2" ng-maxlength="50" /> </md-input-container> <md-input-container> <label>Content</label> <textarea ng-model="content" placeholder="Your announcement" ng-required="true" ng-minlength="2"></textarea> </md-input-container> <md-button class="md-primary" md-ripple-size="full">Make Announcement!</md-button> </md-content> </form> </div> <div flex> <md-content> <md-list> <md-list-item class="md-3-line" ng-repeat="announcement in announcements | orderBy: 'created':true"> <div class="md-list-item-text"> <h3>{{ announcement.title }}</h3> <h4>{{ announcement.username }} at <time>{{ announcement.created | date:'dd-MM-yyyy HH:mm' }}</time></h4> <p>{{ announcement.content }}</p> </div> </md-list-item> </md-list> </md-content> </div> </div>
Remove unnecessary repeated layout definition
Remove unnecessary repeated layout definition See gh-43.
HTML
unlicense
StarTrackDevKL/announcement-board,StarTrackDevKL/announcement-board,rashidi/announcement-board,rashidi/announcement-board,rashidi/announcement-board,StarTrackDevKL/announcement-board
html
## Code Before: <div ng-controller="AnnouncementController" layout-padding layout-margin layout="row" layout-sm="column"> <div flex> <form ng-submit="save()" name="announcementForm"> <md-content layout-padding layout="column" layout-sm="column"> <md-input-container> <label>Title</label> <input type="text" placeholder="Summary of your annnouncement with no more than 50 characters" ng-model="title" ng-required="true" ng-minlength="2" ng-maxlength="50" /> </md-input-container> <md-input-container> <label>Content</label> <textarea ng-model="content" placeholder="Your announcement" ng-required="true" ng-minlength="2"></textarea> </md-input-container> <md-button class="md-primary" md-ripple-size="full">Make Announcement!</md-button> </md-content> </form> </div> <div flex> <md-content> <md-list> <md-list-item class="md-3-line" ng-repeat="announcement in announcements | orderBy: 'created':true"> <div class="md-list-item-text"> <h3>{{ announcement.title }}</h3> <h4>{{ announcement.username }} at <time>{{ announcement.created | date:'dd-MM-yyyy HH:mm' }}</time></h4> <p>{{ announcement.content }}</p> </div> </md-list-item> </md-list> </md-content> </div> </div> ## Instruction: Remove unnecessary repeated layout definition See gh-43. ## Code After: <div ng-controller="AnnouncementController" layout-padding layout-margin layout="column"> <div flex> <form ng-submit="save()" name="announcementForm"> <md-content layout-padding layout="column"> <md-input-container> <label>Title</label> <input type="text" placeholder="Summary of your annnouncement with no more than 50 characters" ng-model="title" ng-required="true" ng-minlength="2" ng-maxlength="50" /> </md-input-container> <md-input-container> <label>Content</label> <textarea ng-model="content" placeholder="Your announcement" ng-required="true" ng-minlength="2"></textarea> </md-input-container> <md-button class="md-primary" md-ripple-size="full">Make Announcement!</md-button> </md-content> </form> </div> <div flex> <md-content> <md-list> <md-list-item class="md-3-line" ng-repeat="announcement in announcements | orderBy: 'created':true"> <div class="md-list-item-text"> <h3>{{ announcement.title }}</h3> <h4>{{ announcement.username }} at <time>{{ announcement.created | date:'dd-MM-yyyy HH:mm' }}</time></h4> <p>{{ announcement.content }}</p> </div> </md-list-item> </md-list> </md-content> </div> </div>
- <div ng-controller="AnnouncementController" layout-padding layout-margin layout="row" layout-sm="column"> ? ---------------- + <div ng-controller="AnnouncementController" layout-padding layout-margin layout="column"> <div flex> <form ng-submit="save()" name="announcementForm"> - <md-content layout-padding layout="column" layout-sm="column"> ? ------------------- + <md-content layout-padding layout="column"> <md-input-container> <label>Title</label> <input type="text" placeholder="Summary of your annnouncement with no more than 50 characters" ng-model="title" ng-required="true" ng-minlength="2" ng-maxlength="50" /> </md-input-container> <md-input-container> <label>Content</label> <textarea ng-model="content" placeholder="Your announcement" ng-required="true" ng-minlength="2"></textarea> </md-input-container> <md-button class="md-primary" md-ripple-size="full">Make Announcement!</md-button> </md-content> </form> </div> <div flex> <md-content> <md-list> <md-list-item class="md-3-line" ng-repeat="announcement in announcements | orderBy: 'created':true"> <div class="md-list-item-text"> <h3>{{ announcement.title }}</h3> <h4>{{ announcement.username }} at <time>{{ announcement.created | date:'dd-MM-yyyy HH:mm' }}</time></h4> <p>{{ announcement.content }}</p> </div> </md-list-item> </md-list> </md-content> </div> </div>
4
0.133333
2
2
101fdb878da8484f95dd8a7bc4a7c25d0a81be3c
metadata/com.fgrim.msnake.txt
metadata/com.fgrim.msnake.txt
Categories:Games License:Apache2 Web Site:http://fgrim.com/msnake Source Code:https://gitorious.org/f-droid-mirrors/msnake/source/master Issue Tracker: Summary:Classic snake game Description: The classic snake game. . Repo Type:git Repo:https://git.gitorious.org/f-droid-mirrors/msnake.git Build:1.6,7 commit=v1.6 target=android-8 Auto Update Mode:Version %v Update Check Mode:Tags Current Version:1.6 Current Version Code:7
Categories:Games License:Apache2 Web Site:http://fgrim.com/msnake Source Code:https://gitorious.org/f-droid-mirrors/msnake/source/master Issue Tracker: Auto Name:MSnake Summary:Classic snake game Description: The classic snake game. . Repo Type:git Repo:https://git.gitorious.org/f-droid-mirrors/msnake.git Build:1.6,7 commit=v1.6 target=android-8 Build:2.0,12 commit=2.0 target=android-8 Auto Update Mode:Version %v Update Check Mode:Tags Current Version:2.0 Current Version Code:12
Update MSnake to 2.0 (12)
Update MSnake to 2.0 (12)
Text
agpl-3.0
f-droid/fdroiddata,f-droid/fdroiddata,f-droid/fdroid-data
text
## Code Before: Categories:Games License:Apache2 Web Site:http://fgrim.com/msnake Source Code:https://gitorious.org/f-droid-mirrors/msnake/source/master Issue Tracker: Summary:Classic snake game Description: The classic snake game. . Repo Type:git Repo:https://git.gitorious.org/f-droid-mirrors/msnake.git Build:1.6,7 commit=v1.6 target=android-8 Auto Update Mode:Version %v Update Check Mode:Tags Current Version:1.6 Current Version Code:7 ## Instruction: Update MSnake to 2.0 (12) ## Code After: Categories:Games License:Apache2 Web Site:http://fgrim.com/msnake Source Code:https://gitorious.org/f-droid-mirrors/msnake/source/master Issue Tracker: Auto Name:MSnake Summary:Classic snake game Description: The classic snake game. . Repo Type:git Repo:https://git.gitorious.org/f-droid-mirrors/msnake.git Build:1.6,7 commit=v1.6 target=android-8 Build:2.0,12 commit=2.0 target=android-8 Auto Update Mode:Version %v Update Check Mode:Tags Current Version:2.0 Current Version Code:12
Categories:Games License:Apache2 Web Site:http://fgrim.com/msnake Source Code:https://gitorious.org/f-droid-mirrors/msnake/source/master Issue Tracker: + Auto Name:MSnake Summary:Classic snake game Description: The classic snake game. . Repo Type:git Repo:https://git.gitorious.org/f-droid-mirrors/msnake.git Build:1.6,7 commit=v1.6 target=android-8 + Build:2.0,12 + commit=2.0 + target=android-8 + Auto Update Mode:Version %v Update Check Mode:Tags - Current Version:1.6 ? ^ ^ + Current Version:2.0 ? ^ ^ - Current Version Code:7 ? ^ + Current Version Code:12 ? ^^
9
0.391304
7
2
a170f7612c622713b8570028f4262a6aeaaef114
test/run.sh
test/run.sh
set -ex cd $(dirname $0)/data BAB_TAG=v$(node -p 'require("@babel/parser/package.json").version') if [ ! -d babel-parser ] then git clone --branch "$BAB_TAG" --depth 1 \ https://github.com/babel/babel.git mv babel/packages/babel-parser . rm -rf babel fi if [ ! -d graphql-tools-src ] then git clone https://github.com/apollographql/graphql-tools.git pushd graphql-tools git reset --hard d3073987a4e00ed1bf59f709232e0a614f1b7edb popd mv graphql-tools/src \ graphql-tools-src rm -rf graphql-tools fi cd .. # back to the recast/test/ directory exec mocha --reporter spec --full-trace $@ run.js
set -ex cd $(dirname $0)/data BAB_TAG=v$(node -p 'require("@babel/parser/package.json").version') if [ ! -d babel-parser ] then git clone --branch "$BAB_TAG" --depth 1 \ https://github.com/babel/babel.git mv babel/packages/babel-parser . rm -rf babel fi if [ ! -d graphql-tools-src ] then git clone https://github.com/apollographql/graphql-tools.git pushd graphql-tools git reset --hard 90e37c477225e56edfacc9f2a1a8336c766de93b popd mv graphql-tools/src \ graphql-tools-src rm -rf graphql-tools fi cd .. # back to the recast/test/ directory exec mocha --reporter spec --full-trace $@ run.js
Update graphql-tools revision again to fix a trailing comma bug.
Update graphql-tools revision again to fix a trailing comma bug.
Shell
mit
benjamn/recast,benjamn/recast,benjamn/recast
shell
## Code Before: set -ex cd $(dirname $0)/data BAB_TAG=v$(node -p 'require("@babel/parser/package.json").version') if [ ! -d babel-parser ] then git clone --branch "$BAB_TAG" --depth 1 \ https://github.com/babel/babel.git mv babel/packages/babel-parser . rm -rf babel fi if [ ! -d graphql-tools-src ] then git clone https://github.com/apollographql/graphql-tools.git pushd graphql-tools git reset --hard d3073987a4e00ed1bf59f709232e0a614f1b7edb popd mv graphql-tools/src \ graphql-tools-src rm -rf graphql-tools fi cd .. # back to the recast/test/ directory exec mocha --reporter spec --full-trace $@ run.js ## Instruction: Update graphql-tools revision again to fix a trailing comma bug. ## Code After: set -ex cd $(dirname $0)/data BAB_TAG=v$(node -p 'require("@babel/parser/package.json").version') if [ ! -d babel-parser ] then git clone --branch "$BAB_TAG" --depth 1 \ https://github.com/babel/babel.git mv babel/packages/babel-parser . rm -rf babel fi if [ ! -d graphql-tools-src ] then git clone https://github.com/apollographql/graphql-tools.git pushd graphql-tools git reset --hard 90e37c477225e56edfacc9f2a1a8336c766de93b popd mv graphql-tools/src \ graphql-tools-src rm -rf graphql-tools fi cd .. # back to the recast/test/ directory exec mocha --reporter spec --full-trace $@ run.js
set -ex cd $(dirname $0)/data BAB_TAG=v$(node -p 'require("@babel/parser/package.json").version') if [ ! -d babel-parser ] then git clone --branch "$BAB_TAG" --depth 1 \ https://github.com/babel/babel.git mv babel/packages/babel-parser . rm -rf babel fi if [ ! -d graphql-tools-src ] then git clone https://github.com/apollographql/graphql-tools.git pushd graphql-tools - git reset --hard d3073987a4e00ed1bf59f709232e0a614f1b7edb + git reset --hard 90e37c477225e56edfacc9f2a1a8336c766de93b popd mv graphql-tools/src \ graphql-tools-src rm -rf graphql-tools fi cd .. # back to the recast/test/ directory exec mocha --reporter spec --full-trace $@ run.js
2
0.068966
1
1
4e9b36135ef6a5f0b19f41cce45dc5b1a9431b8b
.travis.yml
.travis.yml
language: node_js node_js: - "10" - "8" - "6" os: - linux - osx env: - WEBPACK_VERSION=1 - WEBPACK_VERSION=2 - WEBPACK_VERSION=3 - WEBPACK_VERSION=4 install: - npm install - npm rm webpack - npm install webpack@$WEBPACK_VERSION || true branches: only: - master
language: node_js node_js: - "12" - "10" - "8" os: - linux - osx env: - WEBPACK_VERSION=4 - WEBPACK_VERSION=5.0.0-beta.11 install: - npm install - npm rm webpack - npm install webpack@$WEBPACK_VERSION || true branches: only: - master
Add Travis support for Webpack 5 and Node 12. Drop support for Webpack 1/2/3 and Node 6.
Add Travis support for Webpack 5 and Node 12. Drop support for Webpack 1/2/3 and Node 6.
YAML
mit
Urthen/case-sensitive-paths-webpack-plugin
yaml
## Code Before: language: node_js node_js: - "10" - "8" - "6" os: - linux - osx env: - WEBPACK_VERSION=1 - WEBPACK_VERSION=2 - WEBPACK_VERSION=3 - WEBPACK_VERSION=4 install: - npm install - npm rm webpack - npm install webpack@$WEBPACK_VERSION || true branches: only: - master ## Instruction: Add Travis support for Webpack 5 and Node 12. Drop support for Webpack 1/2/3 and Node 6. ## Code After: language: node_js node_js: - "12" - "10" - "8" os: - linux - osx env: - WEBPACK_VERSION=4 - WEBPACK_VERSION=5.0.0-beta.11 install: - npm install - npm rm webpack - npm install webpack@$WEBPACK_VERSION || true branches: only: - master
language: node_js node_js: + - "12" - "10" - "8" - - "6" os: - linux - osx env: - - WEBPACK_VERSION=1 - - WEBPACK_VERSION=2 - - WEBPACK_VERSION=3 - WEBPACK_VERSION=4 + - WEBPACK_VERSION=5.0.0-beta.11 install: - npm install - npm rm webpack - npm install webpack@$WEBPACK_VERSION || true branches: only: - master
6
0.24
2
4
22c193419008a3f1facc53502c1f8d26f2f3ccfa
setup.py
setup.py
import ez_setup ez_setup.use_setuptools() from setuptools import setup, find_packages with open('README.md') as f: description = f.read() setup(name='WebShack', version='0.0.1', description='Web Component/Polymer distribution system', author='Alistair Lynn', author_email='arplynn@gmail.com', license="MIT", long_description=description, url='https://github.com/prophile/webshack', entry_points = { 'console_scripts': [ 'webshack = webshack.cli:main' ] }, zip_safe=True, package_data = { 'webshack': ['*.yaml'] }, install_requires=[ 'tinycss >=0.3, <0.4', 'PyYAML >=3.11, <4', 'docopt >=0.6.2, <0.7', 'termcolor >=1.1.0, <2' ], packages=find_packages())
import sys if sys.version < '3.4': print('Sorry, this is not a compatible version of Python. Use 3.4 or later.') exit(1) import ez_setup ez_setup.use_setuptools() from setuptools import setup, find_packages with open('README.md') as f: description = f.read() setup(name='WebShack', version='0.0.1', description='Web Component/Polymer distribution system', author='Alistair Lynn', author_email='arplynn@gmail.com', license="MIT", long_description=description, url='https://github.com/prophile/webshack', entry_points = { 'console_scripts': [ 'webshack = webshack.cli:main' ] }, zip_safe=True, package_data = { 'webshack': ['*.yaml'] }, install_requires=[ 'tinycss >=0.3, <0.4', 'PyYAML >=3.11, <4', 'docopt >=0.6.2, <0.7', 'termcolor >=1.1.0, <2' ], packages=find_packages())
Add a version sanity check
Add a version sanity check
Python
mit
prophile/webshack
python
## Code Before: import ez_setup ez_setup.use_setuptools() from setuptools import setup, find_packages with open('README.md') as f: description = f.read() setup(name='WebShack', version='0.0.1', description='Web Component/Polymer distribution system', author='Alistair Lynn', author_email='arplynn@gmail.com', license="MIT", long_description=description, url='https://github.com/prophile/webshack', entry_points = { 'console_scripts': [ 'webshack = webshack.cli:main' ] }, zip_safe=True, package_data = { 'webshack': ['*.yaml'] }, install_requires=[ 'tinycss >=0.3, <0.4', 'PyYAML >=3.11, <4', 'docopt >=0.6.2, <0.7', 'termcolor >=1.1.0, <2' ], packages=find_packages()) ## Instruction: Add a version sanity check ## Code After: import sys if sys.version < '3.4': print('Sorry, this is not a compatible version of Python. Use 3.4 or later.') exit(1) import ez_setup ez_setup.use_setuptools() from setuptools import setup, find_packages with open('README.md') as f: description = f.read() setup(name='WebShack', version='0.0.1', description='Web Component/Polymer distribution system', author='Alistair Lynn', author_email='arplynn@gmail.com', license="MIT", long_description=description, url='https://github.com/prophile/webshack', entry_points = { 'console_scripts': [ 'webshack = webshack.cli:main' ] }, zip_safe=True, package_data = { 'webshack': ['*.yaml'] }, install_requires=[ 'tinycss >=0.3, <0.4', 'PyYAML >=3.11, <4', 'docopt >=0.6.2, <0.7', 'termcolor >=1.1.0, <2' ], packages=find_packages())
+ import sys + + if sys.version < '3.4': + print('Sorry, this is not a compatible version of Python. Use 3.4 or later.') + exit(1) + import ez_setup ez_setup.use_setuptools() from setuptools import setup, find_packages with open('README.md') as f: description = f.read() setup(name='WebShack', version='0.0.1', description='Web Component/Polymer distribution system', author='Alistair Lynn', author_email='arplynn@gmail.com', license="MIT", long_description=description, url='https://github.com/prophile/webshack', entry_points = { 'console_scripts': [ 'webshack = webshack.cli:main' ] }, zip_safe=True, package_data = { 'webshack': ['*.yaml'] }, install_requires=[ 'tinycss >=0.3, <0.4', 'PyYAML >=3.11, <4', 'docopt >=0.6.2, <0.7', 'termcolor >=1.1.0, <2' ], packages=find_packages())
6
0.181818
6
0
a701a9c2735b6ed85823af6ad168455dbb29776d
src/background.js
src/background.js
import tldjs from 'tldjs' import 'src/activity-logger/background' import 'src/omnibar' import { installTimeStorageKey } from 'src/imports/background' async function openOverview() { const [ currentTab ] = await browser.tabs.query({ active: true }) if (currentTab && currentTab.url) { const validUrl = tldjs.isValid(currentTab.url) if (validUrl) { return browser.tabs.create({ url: '/overview/overview.html', }) } } browser.tabs.update({ url: '/overview/overview.html', }) } // Open the overview when the extension's button is clicked browser.browserAction.onClicked.addListener(() => { openOverview() }) browser.commands.onCommand.addListener(command => { if (command === 'openOverview') { openOverview() } }) // Store the timestamp of when the extension was installed in local storage browser.runtime.onInstalled.addListener(details => { if (details.reason === 'install') { browser.storage.local.set({ [installTimeStorageKey]: Date.now() }) } })
import tldjs from 'tldjs' import 'src/activity-logger/background' import 'src/omnibar' import { installTimeStorageKey } from 'src/imports/background' import convertOldData from 'src/util/old-data-converter' async function openOverview() { const [ currentTab ] = await browser.tabs.query({ active: true }) if (currentTab && currentTab.url) { const validUrl = tldjs.isValid(currentTab.url) if (validUrl) { return browser.tabs.create({ url: '/overview/overview.html', }) } } browser.tabs.update({ url: '/overview/overview.html', }) } // Open the overview when the extension's button is clicked browser.browserAction.onClicked.addListener(() => { openOverview() }) browser.commands.onCommand.addListener(command => { if (command === 'openOverview') { openOverview() } }) browser.runtime.onInstalled.addListener(details => { // Store the timestamp of when the extension was installed in local storage if (details.reason === 'install') { browser.storage.local.set({ [installTimeStorageKey]: Date.now() }) } // Attempt convert of old extension data on extension update if (details.reason === 'update') { await convertOldData({ setAsStubs: true, concurrency: 15 }) } })
Set up old data conversion on update
Set up old data conversion on update - we'll probably remove this after the first update? - either way, if it's left and runs a second time, it will still run fine without the data in local storage without doing anything
JavaScript
mit
WorldBrain/WebMemex,WorldBrain/WebMemex
javascript
## Code Before: import tldjs from 'tldjs' import 'src/activity-logger/background' import 'src/omnibar' import { installTimeStorageKey } from 'src/imports/background' async function openOverview() { const [ currentTab ] = await browser.tabs.query({ active: true }) if (currentTab && currentTab.url) { const validUrl = tldjs.isValid(currentTab.url) if (validUrl) { return browser.tabs.create({ url: '/overview/overview.html', }) } } browser.tabs.update({ url: '/overview/overview.html', }) } // Open the overview when the extension's button is clicked browser.browserAction.onClicked.addListener(() => { openOverview() }) browser.commands.onCommand.addListener(command => { if (command === 'openOverview') { openOverview() } }) // Store the timestamp of when the extension was installed in local storage browser.runtime.onInstalled.addListener(details => { if (details.reason === 'install') { browser.storage.local.set({ [installTimeStorageKey]: Date.now() }) } }) ## Instruction: Set up old data conversion on update - we'll probably remove this after the first update? - either way, if it's left and runs a second time, it will still run fine without the data in local storage without doing anything ## Code After: import tldjs from 'tldjs' import 'src/activity-logger/background' import 'src/omnibar' import { installTimeStorageKey } from 'src/imports/background' import convertOldData from 'src/util/old-data-converter' async function openOverview() { const [ currentTab ] = await browser.tabs.query({ active: true }) if (currentTab && currentTab.url) { const validUrl = tldjs.isValid(currentTab.url) if (validUrl) { return browser.tabs.create({ url: '/overview/overview.html', }) } } browser.tabs.update({ url: '/overview/overview.html', }) } // Open the overview when the extension's button is clicked browser.browserAction.onClicked.addListener(() => { openOverview() }) browser.commands.onCommand.addListener(command => { if (command === 'openOverview') { openOverview() } }) browser.runtime.onInstalled.addListener(details => { // Store the timestamp of when the extension was installed in local storage if (details.reason === 'install') { browser.storage.local.set({ [installTimeStorageKey]: Date.now() }) } // Attempt convert of old extension data on extension update if (details.reason === 'update') { await convertOldData({ setAsStubs: true, concurrency: 15 }) } })
import tldjs from 'tldjs' import 'src/activity-logger/background' import 'src/omnibar' import { installTimeStorageKey } from 'src/imports/background' + import convertOldData from 'src/util/old-data-converter' async function openOverview() { const [ currentTab ] = await browser.tabs.query({ active: true }) if (currentTab && currentTab.url) { const validUrl = tldjs.isValid(currentTab.url) if (validUrl) { return browser.tabs.create({ url: '/overview/overview.html', }) } } browser.tabs.update({ url: '/overview/overview.html', }) } // Open the overview when the extension's button is clicked browser.browserAction.onClicked.addListener(() => { openOverview() }) browser.commands.onCommand.addListener(command => { if (command === 'openOverview') { openOverview() } }) - // Store the timestamp of when the extension was installed in local storage browser.runtime.onInstalled.addListener(details => { + // Store the timestamp of when the extension was installed in local storage if (details.reason === 'install') { browser.storage.local.set({ [installTimeStorageKey]: Date.now() }) } + // Attempt convert of old extension data on extension update + if (details.reason === 'update') { + await convertOldData({ setAsStubs: true, concurrency: 15 }) + } })
7
0.179487
6
1
b5a8e7b6926bf7224abed6bd335d62b3f1ad1fb1
performance_testing/command_line.py
performance_testing/command_line.py
import os import yaml from performance_testing.errors import ConfigFileError, ConfigKeyError from performance_testing import web from datetime import datetime as date from time import time class Tool: def __init__(self, config='config.yml', result_directory='result'): self.read_config(config_file=config) self.create_result_file(directory=result_directory) def read_config(self, config_file): try: config_stream = open(config_file, 'r') config_data = yaml.load(config_stream) config_stream.close() self.host = config_data['host'] self.requests = config_data['requests'] self.clients = config_data['clients'] self.time = config_data['time'] self.urls = config_data['urls'] except KeyError as ex: raise ConfigKeyError(ex.args[0]) except IOError: raise ConfigFileError(config_file) def create_result_file(self, directory): datetime = date.fromtimestamp(time()) file_name = '%d-%d-%d_%d-%d-%d' % (datetime.year, datetime.month, datetime.day, datetime.hour, datetime.minute, datetime.second) file_path = os.path.join(directory, file_name) if not os.path.exists(directory): os.makedirs(directory) open(file_path, 'a').close() self.result_file = file_path def start_testing(self): pass def run(self): file_stream = open(self.result_file, 'w') print('Start tests ...') for url in self.urls: full_url = self.host + url file_stream.write('URL: %s\n' % url) for i in range(0, self.requests): file_stream.write(' %i - %.3f\n' % (i, web.request(full_url))) print('Finished tests!')
import os import yaml from performance_testing.errors import ConfigFileError, ConfigKeyError from performance_testing import web from performance_testing.config import Config from performance_testing.result import Result class Tool: def __init__(self, config='config.yml', result_directory='result'): self.config = Config(config_path=config) self.result = Result(result_directory) def start_testing(self): pass def run(self): print('Start tests ...') for url in self.config.urls: full_url = self.config.host + url self.result.file.write_line('URL: %s\n' % url) for i in range(0, self.config.requests): self.result.file.write_line(' %i - %.3f\n' % (i, web.request(full_url))) print('Finished tests!')
Use Config and Result class in Tool
Use Config and Result class in Tool
Python
mit
BakeCode/performance-testing,BakeCode/performance-testing
python
## Code Before: import os import yaml from performance_testing.errors import ConfigFileError, ConfigKeyError from performance_testing import web from datetime import datetime as date from time import time class Tool: def __init__(self, config='config.yml', result_directory='result'): self.read_config(config_file=config) self.create_result_file(directory=result_directory) def read_config(self, config_file): try: config_stream = open(config_file, 'r') config_data = yaml.load(config_stream) config_stream.close() self.host = config_data['host'] self.requests = config_data['requests'] self.clients = config_data['clients'] self.time = config_data['time'] self.urls = config_data['urls'] except KeyError as ex: raise ConfigKeyError(ex.args[0]) except IOError: raise ConfigFileError(config_file) def create_result_file(self, directory): datetime = date.fromtimestamp(time()) file_name = '%d-%d-%d_%d-%d-%d' % (datetime.year, datetime.month, datetime.day, datetime.hour, datetime.minute, datetime.second) file_path = os.path.join(directory, file_name) if not os.path.exists(directory): os.makedirs(directory) open(file_path, 'a').close() self.result_file = file_path def start_testing(self): pass def run(self): file_stream = open(self.result_file, 'w') print('Start tests ...') for url in self.urls: full_url = self.host + url file_stream.write('URL: %s\n' % url) for i in range(0, self.requests): file_stream.write(' %i - %.3f\n' % (i, web.request(full_url))) print('Finished tests!') ## Instruction: Use Config and Result class in Tool ## Code After: import os import yaml from performance_testing.errors import ConfigFileError, ConfigKeyError from performance_testing import web from performance_testing.config import Config from performance_testing.result import Result class Tool: def __init__(self, config='config.yml', result_directory='result'): self.config = Config(config_path=config) self.result = Result(result_directory) def start_testing(self): pass def run(self): print('Start tests ...') for url in self.config.urls: full_url = self.config.host + url self.result.file.write_line('URL: %s\n' % url) for i in range(0, self.config.requests): self.result.file.write_line(' %i - %.3f\n' % (i, web.request(full_url))) print('Finished tests!')
import os import yaml from performance_testing.errors import ConfigFileError, ConfigKeyError from performance_testing import web - from datetime import datetime as date - from time import time + from performance_testing.config import Config + from performance_testing.result import Result class Tool: def __init__(self, config='config.yml', result_directory='result'): - self.read_config(config_file=config) ? ----- ^^^^ + self.config = Config(config_path=config) ? +++++++++ ^^^^ + self.result = Result(result_directory) - self.create_result_file(directory=result_directory) - - def read_config(self, config_file): - try: - config_stream = open(config_file, 'r') - config_data = yaml.load(config_stream) - config_stream.close() - self.host = config_data['host'] - self.requests = config_data['requests'] - self.clients = config_data['clients'] - self.time = config_data['time'] - self.urls = config_data['urls'] - except KeyError as ex: - raise ConfigKeyError(ex.args[0]) - except IOError: - raise ConfigFileError(config_file) - - def create_result_file(self, directory): - datetime = date.fromtimestamp(time()) - file_name = '%d-%d-%d_%d-%d-%d' % (datetime.year, - datetime.month, - datetime.day, - datetime.hour, - datetime.minute, - datetime.second) - file_path = os.path.join(directory, file_name) - if not os.path.exists(directory): - os.makedirs(directory) - open(file_path, 'a').close() - self.result_file = file_path def start_testing(self): pass def run(self): - file_stream = open(self.result_file, 'w') print('Start tests ...') - for url in self.urls: + for url in self.config.urls: ? +++++++ - full_url = self.host + url + full_url = self.config.host + url ? +++++++ - file_stream.write('URL: %s\n' % url) ? ------- + self.result.file.write_line('URL: %s\n' % url) ? ++++++++++++ +++++ - for i in range(0, self.requests): + for i in range(0, self.config.requests): ? +++++++ - file_stream.write(' %i - %.3f\n' % (i, web.request(full_url))) ? ------- + self.result.file.write_line(' %i - %.3f\n' % (i, web.request(full_url))) ? ++++++++++++ +++++ print('Finished tests!')
48
0.888889
9
39
d5a2761fa40eda3c32dd8285fa9815924ad5b29a
requirements.txt
requirements.txt
-e git://github.com/django/django.git#egg=django-master django-bootstrap-form>=3.1 -e hg+https://bitbucket.org/schinckel/django-weekday-field@6cb823c5e94aad1aa5dd1caad4dd7a5be7391b28#egg=django_weekday_field-dev elasticsearch==1.0.0 python-social-auth==0.1.26 psycopg2==2.5.3 -e git://github.com/toastdriven/django-haystack.git#egg=django_haystack-master
-e git://github.com/django/django.git#egg=django-master django-bootstrap-form>=3.1 -e hg+https://bitbucket.org/schinckel/django-weekday-field@6cb823c5e94aad1aa5dd1caad4dd7a5be7391b28#egg=django_weekday_field-dev elasticsearch==1.0.0 python-social-auth==0.1.26 psycopg2==2.5.3 -e git://github.com/toastdriven/django-haystack.git#egg=django_haystack-master importlib==1.0.3
Install importlib for older versions of python
Install importlib for older versions of python
Text
bsd-2-clause
knagra/farnsworth,knagra/farnsworth,knagra/farnsworth,knagra/farnsworth
text
## Code Before: -e git://github.com/django/django.git#egg=django-master django-bootstrap-form>=3.1 -e hg+https://bitbucket.org/schinckel/django-weekday-field@6cb823c5e94aad1aa5dd1caad4dd7a5be7391b28#egg=django_weekday_field-dev elasticsearch==1.0.0 python-social-auth==0.1.26 psycopg2==2.5.3 -e git://github.com/toastdriven/django-haystack.git#egg=django_haystack-master ## Instruction: Install importlib for older versions of python ## Code After: -e git://github.com/django/django.git#egg=django-master django-bootstrap-form>=3.1 -e hg+https://bitbucket.org/schinckel/django-weekday-field@6cb823c5e94aad1aa5dd1caad4dd7a5be7391b28#egg=django_weekday_field-dev elasticsearch==1.0.0 python-social-auth==0.1.26 psycopg2==2.5.3 -e git://github.com/toastdriven/django-haystack.git#egg=django_haystack-master importlib==1.0.3
-e git://github.com/django/django.git#egg=django-master django-bootstrap-form>=3.1 -e hg+https://bitbucket.org/schinckel/django-weekday-field@6cb823c5e94aad1aa5dd1caad4dd7a5be7391b28#egg=django_weekday_field-dev elasticsearch==1.0.0 python-social-auth==0.1.26 psycopg2==2.5.3 -e git://github.com/toastdriven/django-haystack.git#egg=django_haystack-master + importlib==1.0.3
1
0.142857
1
0
e3de254ec6e86798bf7547090eca856951e21431
README.md
README.md
uData ===== [![Python Requirements Status][requires-io-badge]][requires-io-url] [![JavaScript Dependencies Status][david-dm-badge]][david-dm-url] [![JavaScript Development Dependencies Status][david-dm-dev-badge]][david-dm-dev-url] [![Join the chat at https://gitter.im/etalab/udata][gitter-badge]][gitter-url] Customizable and skinnable social platform dedicated to (open)data. The [full documentation](http://udata.readthedocs.org/) is hosted on Read the Docs. [requires-io-url]: https://requires.io/github/etalab/udata/requirements/?branch=master [requires-io-badge]: https://requires.io/github/etalab/udata/requirements.png?branch=master [david-dm-url]: https://david-dm.org/etalab/udata [david-dm-badge]: https://img.shields.io/david/etalab/udata.svg [david-dm-dev-url]: https://david-dm.org/etalab/udata#info=devDependencies [david-dm-dev-badge]: https://david-dm.org/etalab/udata/dev-status.svg [gitter-badge]: https://badges.gitter.im/Join%20Chat.svg [gitter-url]: https://gitter.im/etalab/udata
uData ===== [![Build status][circleci-badge]][circleci-url] [![Python Requirements Status][requires-io-badge]][requires-io-url] [![JavaScript Dependencies Status][david-dm-badge]][david-dm-url] [![JavaScript Development Dependencies Status][david-dm-dev-badge]][david-dm-dev-url] [![Join the chat at https://gitter.im/etalab/udata][gitter-badge]][gitter-url] Customizable and skinnable social platform dedicated to (open)data. The [full documentation](http://udata.readthedocs.org/) is hosted on Read the Docs. [circleci-url]: https://circleci.com/gh/etalab/udata [circleci-badge]: https://circleci.com/gh/etalab/udata.svg?style=shield [requires-io-url]: https://requires.io/github/etalab/udata/requirements/?branch=master [requires-io-badge]: https://requires.io/github/etalab/udata/requirements.png?branch=master [david-dm-url]: https://david-dm.org/etalab/udata [david-dm-badge]: https://img.shields.io/david/etalab/udata.svg [david-dm-dev-url]: https://david-dm.org/etalab/udata#info=devDependencies [david-dm-dev-badge]: https://david-dm.org/etalab/udata/dev-status.svg [gitter-badge]: https://badges.gitter.im/Join%20Chat.svg [gitter-url]: https://gitter.im/etalab/udata
Add missing build status badge
Add missing build status badge
Markdown
agpl-3.0
etalab/udata,jphnoel/udata,davidbgk/udata,etalab/udata,etalab/udata,davidbgk/udata,jphnoel/udata,jphnoel/udata,opendatateam/udata,davidbgk/udata,opendatateam/udata,opendatateam/udata
markdown
## Code Before: uData ===== [![Python Requirements Status][requires-io-badge]][requires-io-url] [![JavaScript Dependencies Status][david-dm-badge]][david-dm-url] [![JavaScript Development Dependencies Status][david-dm-dev-badge]][david-dm-dev-url] [![Join the chat at https://gitter.im/etalab/udata][gitter-badge]][gitter-url] Customizable and skinnable social platform dedicated to (open)data. The [full documentation](http://udata.readthedocs.org/) is hosted on Read the Docs. [requires-io-url]: https://requires.io/github/etalab/udata/requirements/?branch=master [requires-io-badge]: https://requires.io/github/etalab/udata/requirements.png?branch=master [david-dm-url]: https://david-dm.org/etalab/udata [david-dm-badge]: https://img.shields.io/david/etalab/udata.svg [david-dm-dev-url]: https://david-dm.org/etalab/udata#info=devDependencies [david-dm-dev-badge]: https://david-dm.org/etalab/udata/dev-status.svg [gitter-badge]: https://badges.gitter.im/Join%20Chat.svg [gitter-url]: https://gitter.im/etalab/udata ## Instruction: Add missing build status badge ## Code After: uData ===== [![Build status][circleci-badge]][circleci-url] [![Python Requirements Status][requires-io-badge]][requires-io-url] [![JavaScript Dependencies Status][david-dm-badge]][david-dm-url] [![JavaScript Development Dependencies Status][david-dm-dev-badge]][david-dm-dev-url] [![Join the chat at https://gitter.im/etalab/udata][gitter-badge]][gitter-url] Customizable and skinnable social platform dedicated to (open)data. The [full documentation](http://udata.readthedocs.org/) is hosted on Read the Docs. [circleci-url]: https://circleci.com/gh/etalab/udata [circleci-badge]: https://circleci.com/gh/etalab/udata.svg?style=shield [requires-io-url]: https://requires.io/github/etalab/udata/requirements/?branch=master [requires-io-badge]: https://requires.io/github/etalab/udata/requirements.png?branch=master [david-dm-url]: https://david-dm.org/etalab/udata [david-dm-badge]: https://img.shields.io/david/etalab/udata.svg [david-dm-dev-url]: https://david-dm.org/etalab/udata#info=devDependencies [david-dm-dev-badge]: https://david-dm.org/etalab/udata/dev-status.svg [gitter-badge]: https://badges.gitter.im/Join%20Chat.svg [gitter-url]: https://gitter.im/etalab/udata
uData ===== + [![Build status][circleci-badge]][circleci-url] [![Python Requirements Status][requires-io-badge]][requires-io-url] [![JavaScript Dependencies Status][david-dm-badge]][david-dm-url] [![JavaScript Development Dependencies Status][david-dm-dev-badge]][david-dm-dev-url] [![Join the chat at https://gitter.im/etalab/udata][gitter-badge]][gitter-url] Customizable and skinnable social platform dedicated to (open)data. The [full documentation](http://udata.readthedocs.org/) is hosted on Read the Docs. + [circleci-url]: https://circleci.com/gh/etalab/udata + [circleci-badge]: https://circleci.com/gh/etalab/udata.svg?style=shield [requires-io-url]: https://requires.io/github/etalab/udata/requirements/?branch=master [requires-io-badge]: https://requires.io/github/etalab/udata/requirements.png?branch=master [david-dm-url]: https://david-dm.org/etalab/udata [david-dm-badge]: https://img.shields.io/david/etalab/udata.svg [david-dm-dev-url]: https://david-dm.org/etalab/udata#info=devDependencies [david-dm-dev-badge]: https://david-dm.org/etalab/udata/dev-status.svg [gitter-badge]: https://badges.gitter.im/Join%20Chat.svg [gitter-url]: https://gitter.im/etalab/udata
3
0.15
3
0
d1b3593a3b85d68b9ca48dbc227fcb8c1b276ba1
docker-cloud.yml
docker-cloud.yml
redis: image: 'redis:latest' api: image: 'craftship/phonebox-api:latest' links: - redis ports: - '80:8080' volumes: - /usr/src/app workers: image: 'craftship/phonebox-workers:latest' links: - redis volumes: - /usr/src/app environment: - TWILIO_SID - TWILIO_TOKEN - TWILIO_FROM_NUMBER - TWILIO_TO_NUMBER
redis: image: 'redis:latest' api: image: 'craftship/phonebox-api:latest' links: - redis ports: - '80:8080' volumes: - /usr/src/app environment: - TWILIO_FROM_NUMBER - TWILIO_TO_NUMBER workers: image: 'craftship/phonebox-workers:latest' links: - redis volumes: - /usr/src/app environment: - TWILIO_SID - TWILIO_TOKEN
Update docker cloud api env property
Update docker cloud api env property Logic has moved to api for phone number setup. Update to cloud file to still allow deployment to Docker Cloud.
YAML
mit
craftship/phonebox,craftship/phonebox,craftship/phonebox
yaml
## Code Before: redis: image: 'redis:latest' api: image: 'craftship/phonebox-api:latest' links: - redis ports: - '80:8080' volumes: - /usr/src/app workers: image: 'craftship/phonebox-workers:latest' links: - redis volumes: - /usr/src/app environment: - TWILIO_SID - TWILIO_TOKEN - TWILIO_FROM_NUMBER - TWILIO_TO_NUMBER ## Instruction: Update docker cloud api env property Logic has moved to api for phone number setup. Update to cloud file to still allow deployment to Docker Cloud. ## Code After: redis: image: 'redis:latest' api: image: 'craftship/phonebox-api:latest' links: - redis ports: - '80:8080' volumes: - /usr/src/app environment: - TWILIO_FROM_NUMBER - TWILIO_TO_NUMBER workers: image: 'craftship/phonebox-workers:latest' links: - redis volumes: - /usr/src/app environment: - TWILIO_SID - TWILIO_TOKEN
redis: image: 'redis:latest' api: image: 'craftship/phonebox-api:latest' links: - redis ports: - '80:8080' volumes: - /usr/src/app + environment: + - TWILIO_FROM_NUMBER + - TWILIO_TO_NUMBER workers: image: 'craftship/phonebox-workers:latest' links: - redis volumes: - /usr/src/app environment: - TWILIO_SID - TWILIO_TOKEN - - TWILIO_FROM_NUMBER - - TWILIO_TO_NUMBER
5
0.238095
3
2
ef18154140e28239eb92e58ebc14c1c72b06b801
usr.sbin/cron/crontab/Makefile
usr.sbin/cron/crontab/Makefile
BINDIR?= /usr/bin PROG= crontab SRCS= crontab.c CFLAGS+= -I${.CURDIR}/../cron MAN1= crontab.1 MAN5= crontab.5 .if exists(${.CURDIR}/../lib/obj) LDDESTDIR+= -L${.CURDIR}/../lib/obj DPADD+= ${.CURDIR}/../lib/obj/libcron.a .else LDDESTDIR+= -L${.CURDIR}/../lib DPADD+= ${.CURDIR}/../lib/libcron.a .endif LDADD+= -lcron .include <bsd.prog.mk>
BINDIR?= /usr/bin PROG= crontab SRCS= crontab.c CFLAGS+= -I${.CURDIR}/../cron MAN1= crontab.1 MAN5= crontab.5 .if exists(${.CURDIR}/../lib/obj) LDDESTDIR+= -L${.CURDIR}/../lib/obj DPADD+= ${.CURDIR}/../lib/obj/libcron.a .else LDDESTDIR+= -L${.CURDIR}/../lib DPADD+= ${.CURDIR}/../lib/libcron.a .endif LDADD+= -lcron BINOWN= root BINMODE=4555 INSTALLFLAGS=-fschg .include <bsd.prog.mk>
Make /usr/bin/crontab install setuid root. (doesn't work otherwise) The distributed makefile in the package installs it setuid root.. Reviewed by: jkh
Make /usr/bin/crontab install setuid root. (doesn't work otherwise) The distributed makefile in the package installs it setuid root.. Reviewed by: jkh
unknown
bsd-3-clause
jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase
unknown
## Code Before: BINDIR?= /usr/bin PROG= crontab SRCS= crontab.c CFLAGS+= -I${.CURDIR}/../cron MAN1= crontab.1 MAN5= crontab.5 .if exists(${.CURDIR}/../lib/obj) LDDESTDIR+= -L${.CURDIR}/../lib/obj DPADD+= ${.CURDIR}/../lib/obj/libcron.a .else LDDESTDIR+= -L${.CURDIR}/../lib DPADD+= ${.CURDIR}/../lib/libcron.a .endif LDADD+= -lcron .include <bsd.prog.mk> ## Instruction: Make /usr/bin/crontab install setuid root. (doesn't work otherwise) The distributed makefile in the package installs it setuid root.. Reviewed by: jkh ## Code After: BINDIR?= /usr/bin PROG= crontab SRCS= crontab.c CFLAGS+= -I${.CURDIR}/../cron MAN1= crontab.1 MAN5= crontab.5 .if exists(${.CURDIR}/../lib/obj) LDDESTDIR+= -L${.CURDIR}/../lib/obj DPADD+= ${.CURDIR}/../lib/obj/libcron.a .else LDDESTDIR+= -L${.CURDIR}/../lib DPADD+= ${.CURDIR}/../lib/libcron.a .endif LDADD+= -lcron BINOWN= root BINMODE=4555 INSTALLFLAGS=-fschg .include <bsd.prog.mk>
BINDIR?= /usr/bin PROG= crontab SRCS= crontab.c CFLAGS+= -I${.CURDIR}/../cron MAN1= crontab.1 MAN5= crontab.5 .if exists(${.CURDIR}/../lib/obj) LDDESTDIR+= -L${.CURDIR}/../lib/obj DPADD+= ${.CURDIR}/../lib/obj/libcron.a .else LDDESTDIR+= -L${.CURDIR}/../lib DPADD+= ${.CURDIR}/../lib/libcron.a .endif LDADD+= -lcron + BINOWN= root + BINMODE=4555 + INSTALLFLAGS=-fschg + .include <bsd.prog.mk>
4
0.210526
4
0
106946f003a64ba4b3c08fef891b2c4d582b9b82
TODO.md
TODO.md
- [ ] Start Positions on Subscribers - [ ] Durable Subscribers (survive reconnect, etc) - [ ] Ack for delivered just Reply? No need on ConnectedResponse? - [ ] PublishWithReply, or option. - [ ] Data Races in Server.
- [ ] Start Positions on Subscribers - [ ] Durable Subscribers (survive reconnect, etc) - [ ] Ack for delivered just Reply? No need on ConnectedResponse? - [ ] PublishWithReply, or option. - [ ] Data Races in Server. - [ ] Manual Ack?
Add Manual Ack to the list
Add Manual Ack to the list
Markdown
mit
petemiron/nats-streaming-server,petemiron/nats-streaming-server,petemiron/nats-streaming-server,nats-io/nats-streaming-server,nats-io/nats-streaming-server
markdown
## Code Before: - [ ] Start Positions on Subscribers - [ ] Durable Subscribers (survive reconnect, etc) - [ ] Ack for delivered just Reply? No need on ConnectedResponse? - [ ] PublishWithReply, or option. - [ ] Data Races in Server. ## Instruction: Add Manual Ack to the list ## Code After: - [ ] Start Positions on Subscribers - [ ] Durable Subscribers (survive reconnect, etc) - [ ] Ack for delivered just Reply? No need on ConnectedResponse? - [ ] PublishWithReply, or option. - [ ] Data Races in Server. - [ ] Manual Ack?
- [ ] Start Positions on Subscribers - [ ] Durable Subscribers (survive reconnect, etc) - [ ] Ack for delivered just Reply? No need on ConnectedResponse? - [ ] PublishWithReply, or option. - [ ] Data Races in Server. + - [ ] Manual Ack?
1
0.166667
1
0
45896958badb2ff5f7c36a86a60fbdab80d2f618
plots/urls.py
plots/urls.py
__author__ = 'ankesh' from django.conf.urls import patterns, url
__author__ = 'ankesh' from django.conf.urls import patterns, url from plots.views import rawdata, draw urlpatterns = patterns('', url(r'^(?P<type>[A-z]+)/$', draw, name='drawChart'), url(r'^(?P<type>[A-z]+)/data/$', rawdata, name='rawdata'), )
Add the URL mappings for the plots app.
Add the URL mappings for the plots app.
Python
bsd-2-clause
ankeshanand/benchmark,ankeshanand/benchmark,ankeshanand/benchmark,ankeshanand/benchmark
python
## Code Before: __author__ = 'ankesh' from django.conf.urls import patterns, url ## Instruction: Add the URL mappings for the plots app. ## Code After: __author__ = 'ankesh' from django.conf.urls import patterns, url from plots.views import rawdata, draw urlpatterns = patterns('', url(r'^(?P<type>[A-z]+)/$', draw, name='drawChart'), url(r'^(?P<type>[A-z]+)/data/$', rawdata, name='rawdata'), )
__author__ = 'ankesh' from django.conf.urls import patterns, url + from plots.views import rawdata, draw + + urlpatterns = patterns('', + url(r'^(?P<type>[A-z]+)/$', draw, name='drawChart'), + url(r'^(?P<type>[A-z]+)/data/$', rawdata, name='rawdata'), + )
6
3
6
0
5019334c1b21a711bcd9629a7e7836f3c3d7e0d7
Config/bootstrap.php
Config/bootstrap.php
<?php // Adds the Serializer object type so serializer objects // can be found in conventional places App::build(array( 'Serializer' => array('%s' . 'Serializer' . DS), 'Serializer' => array('%s' . 'Plugin' . DS . 'Serializers' . DS . 'Serializer' . DS), ), App::REGISTER); // Ensure we loaded the SerializersErrors Plugin CakePlugin::load('SerializersErrors', array('bootstrap' => true)); // Load CakePHP Serializers Exceptions App::import('Lib/Error', 'Serializers.StandardJsonApiExceptions'); // Load the EmberDataError Class App::uses('EmberDataError', 'Serializers.Error');
<?php // Adds the Serializer object type so serializer objects // can be found in conventional places App::build(array( 'Serializer' => array('%s' . 'Serializer' . DS), 'Serializer' => array('%s' . 'Plugin' . DS . 'Serializers' . DS . 'Serializer' . DS), ), App::REGISTER); // Ensure we loaded the SerializersErrors Plugin CakePlugin::load('SerializersErrors', array('bootstrap' => true)); // Load CakePHP Serializers Exceptions App::import('Lib/Error', 'Serializers.StandardJsonApiExceptions');
Drop loading a non-existent EmberDataError
Drop loading a non-existent EmberDataError
PHP
mit
loadsys/CakePHP-Serializers
php
## Code Before: <?php // Adds the Serializer object type so serializer objects // can be found in conventional places App::build(array( 'Serializer' => array('%s' . 'Serializer' . DS), 'Serializer' => array('%s' . 'Plugin' . DS . 'Serializers' . DS . 'Serializer' . DS), ), App::REGISTER); // Ensure we loaded the SerializersErrors Plugin CakePlugin::load('SerializersErrors', array('bootstrap' => true)); // Load CakePHP Serializers Exceptions App::import('Lib/Error', 'Serializers.StandardJsonApiExceptions'); // Load the EmberDataError Class App::uses('EmberDataError', 'Serializers.Error'); ## Instruction: Drop loading a non-existent EmberDataError ## Code After: <?php // Adds the Serializer object type so serializer objects // can be found in conventional places App::build(array( 'Serializer' => array('%s' . 'Serializer' . DS), 'Serializer' => array('%s' . 'Plugin' . DS . 'Serializers' . DS . 'Serializer' . DS), ), App::REGISTER); // Ensure we loaded the SerializersErrors Plugin CakePlugin::load('SerializersErrors', array('bootstrap' => true)); // Load CakePHP Serializers Exceptions App::import('Lib/Error', 'Serializers.StandardJsonApiExceptions');
<?php // Adds the Serializer object type so serializer objects // can be found in conventional places App::build(array( 'Serializer' => array('%s' . 'Serializer' . DS), 'Serializer' => array('%s' . 'Plugin' . DS . 'Serializers' . DS . 'Serializer' . DS), ), App::REGISTER); // Ensure we loaded the SerializersErrors Plugin CakePlugin::load('SerializersErrors', array('bootstrap' => true)); // Load CakePHP Serializers Exceptions App::import('Lib/Error', 'Serializers.StandardJsonApiExceptions'); - - // Load the EmberDataError Class - App::uses('EmberDataError', 'Serializers.Error');
3
0.176471
0
3
a14aaecda56e6d59f656f78282744d65fbc12457
ivory-backend-c/src/Ivory/Compile/C/Prop.hs
ivory-backend-c/src/Ivory/Compile/C/Prop.hs
{-# LANGUAGE QuasiQuotes #-} -- | Rewrite ensures variable with return expression. module Ivory.Compile.C.Prop where import qualified Ivory.Language.Syntax as I -------------------------------------------------------------------------------- -- | Replace ensures variable with the return expression. ensTrans :: I.Expr -> I.Expr -> I.Expr ensTrans retE = loop where loop e = case e of I.ExpSym{} -> e I.ExpVar v -> if v == I.retval then retE else e I.ExpLit{} -> e I.ExpOp op args -> I.ExpOp op (map loop args) I.ExpLabel t e0 s -> I.ExpLabel t (loop e0) s I.ExpIndex t e0 t1 e1 -> I.ExpIndex t (loop e0) t1 (loop e1) I.ExpSafeCast t e0 -> I.ExpSafeCast t (loop e0) I.ExpToIx e0 maxSz -> I.ExpToIx (loop e0) maxSz I.ExpAddrOfGlobal{} -> e --------------------------------------------------------------------------------
{-# LANGUAGE QuasiQuotes #-} -- | Rewrite ensures variable with return expression. module Ivory.Compile.C.Prop where import qualified Ivory.Language.Syntax as I -------------------------------------------------------------------------------- -- | Replace ensures variable with the return expression. ensTrans :: I.Expr -> I.Expr -> I.Expr ensTrans retE = loop where loop e = case e of I.ExpSym{} -> e I.ExpVar v -> if v == I.retval then retE else e I.ExpLit{} -> e I.ExpOp op args -> I.ExpOp op (map loop args) I.ExpLabel t e0 s -> I.ExpLabel t (loop e0) s I.ExpIndex t e0 t1 e1 -> I.ExpIndex t (loop e0) t1 (loop e1) I.ExpSafeCast t e0 -> I.ExpSafeCast t (loop e0) I.ExpToIx e0 maxSz -> I.ExpToIx (loop e0) maxSz I.ExpAddrOfGlobal{} -> e I.ExpDynArrayLength e -> I.ExpDynArrayLength (loop e) I.ExpDynArrayData t e -> I.ExpDynArrayData t (loop e) --------------------------------------------------------------------------------
Add missing cases for DynArray expressions.
ivory-opts: Add missing cases for DynArray expressions.
Haskell
bsd-3-clause
GaloisInc/ivory,GaloisInc/ivory,Hodapp87/ivory
haskell
## Code Before: {-# LANGUAGE QuasiQuotes #-} -- | Rewrite ensures variable with return expression. module Ivory.Compile.C.Prop where import qualified Ivory.Language.Syntax as I -------------------------------------------------------------------------------- -- | Replace ensures variable with the return expression. ensTrans :: I.Expr -> I.Expr -> I.Expr ensTrans retE = loop where loop e = case e of I.ExpSym{} -> e I.ExpVar v -> if v == I.retval then retE else e I.ExpLit{} -> e I.ExpOp op args -> I.ExpOp op (map loop args) I.ExpLabel t e0 s -> I.ExpLabel t (loop e0) s I.ExpIndex t e0 t1 e1 -> I.ExpIndex t (loop e0) t1 (loop e1) I.ExpSafeCast t e0 -> I.ExpSafeCast t (loop e0) I.ExpToIx e0 maxSz -> I.ExpToIx (loop e0) maxSz I.ExpAddrOfGlobal{} -> e -------------------------------------------------------------------------------- ## Instruction: ivory-opts: Add missing cases for DynArray expressions. ## Code After: {-# LANGUAGE QuasiQuotes #-} -- | Rewrite ensures variable with return expression. module Ivory.Compile.C.Prop where import qualified Ivory.Language.Syntax as I -------------------------------------------------------------------------------- -- | Replace ensures variable with the return expression. ensTrans :: I.Expr -> I.Expr -> I.Expr ensTrans retE = loop where loop e = case e of I.ExpSym{} -> e I.ExpVar v -> if v == I.retval then retE else e I.ExpLit{} -> e I.ExpOp op args -> I.ExpOp op (map loop args) I.ExpLabel t e0 s -> I.ExpLabel t (loop e0) s I.ExpIndex t e0 t1 e1 -> I.ExpIndex t (loop e0) t1 (loop e1) I.ExpSafeCast t e0 -> I.ExpSafeCast t (loop e0) I.ExpToIx e0 maxSz -> I.ExpToIx (loop e0) maxSz I.ExpAddrOfGlobal{} -> e I.ExpDynArrayLength e -> I.ExpDynArrayLength (loop e) I.ExpDynArrayData t e -> I.ExpDynArrayData t (loop e) --------------------------------------------------------------------------------
{-# LANGUAGE QuasiQuotes #-} -- | Rewrite ensures variable with return expression. module Ivory.Compile.C.Prop where import qualified Ivory.Language.Syntax as I -------------------------------------------------------------------------------- -- | Replace ensures variable with the return expression. ensTrans :: I.Expr -> I.Expr -> I.Expr ensTrans retE = loop where loop e = case e of I.ExpSym{} -> e I.ExpVar v -> if v == I.retval then retE else e I.ExpLit{} -> e I.ExpOp op args -> I.ExpOp op (map loop args) I.ExpLabel t e0 s -> I.ExpLabel t (loop e0) s I.ExpIndex t e0 t1 e1 -> I.ExpIndex t (loop e0) t1 (loop e1) I.ExpSafeCast t e0 -> I.ExpSafeCast t (loop e0) I.ExpToIx e0 maxSz -> I.ExpToIx (loop e0) maxSz I.ExpAddrOfGlobal{} -> e + I.ExpDynArrayLength e -> I.ExpDynArrayLength (loop e) + I.ExpDynArrayData t e -> I.ExpDynArrayData t (loop e) --------------------------------------------------------------------------------
2
0.076923
2
0
966a68c595500baa7e801542f8c63ee00108499f
front-end-questions/js-questions.md
front-end-questions/js-questions.md
**Explain event delegation.** Event delegation is when you add a common event to multiple elements--including ones we may add in the future--by adding a single event listener to an ancestor element of these elements. This makes it easier for us, since we don't have to add the same event listener to every single element we want to add a common event to. <br> Explain how "this" works in JavaScript. In JavaScript, "this" is a property that refers to the object that calls on the function using "this". In terms of scope, "this" prioritizes local objects over global objects--in other words, if there's no current object, "this" refers to the global object. Explain how prototypical inheritance works. Prototypical inheritance is how you implement object orientation in JavaScript--it's the way for you to enable the reuse of behaviors or functions in JavaScript. In prototypical inheritance, an object inherits from another object--this differs from the classical inheritance found in Object-Oriented languages, in which a class inherits from another class. For example, you can create an object using a constructor function, and then create another object variable defined as a new instance of the first object. You can also add new functions or characteristics to the first object through what's called the "prototype property", allowing these newly added functions or characteristics to be "passed on" to the second object.
**Explain event delegation.** Event delegation is when you add a common event to multiple elements--including ones we may add in the future--by adding a single event listener to an ancestor element of these elements. This makes it easier for us, since we don't have to add the same event listener to every single element we want to add a common event to. <br> **Explain how "this" works in JavaScript.** In JavaScript, "this" is a property that refers to the object that calls on the function using "this". In terms of scope, "this" prioritizes local objects over global objects--in other words, if there's no current object, "this" refers to the global object. <br> **Explain how prototypical inheritance works.** Prototypical inheritance is how you implement object orientation in JavaScript--it's the way for you to enable the reuse of behaviors or functions in JavaScript. In prototypical inheritance, an object inherits from another object--this differs from the classical inheritance found in Object-Oriented languages, in which a class inherits from another class. For example, you can create an object using a constructor function, and then create another object variable defined as a new instance of the first object. You can also add new functions or characteristics to the first object through what's called the "prototype property", allowing these newly added functions or characteristics to be "passed on" to the second object.
Reformat again for commonly asked js questions
Reformat again for commonly asked js questions
Markdown
mit
derekmpham/interview-prep,derekmpham/interview-prep
markdown
## Code Before: **Explain event delegation.** Event delegation is when you add a common event to multiple elements--including ones we may add in the future--by adding a single event listener to an ancestor element of these elements. This makes it easier for us, since we don't have to add the same event listener to every single element we want to add a common event to. <br> Explain how "this" works in JavaScript. In JavaScript, "this" is a property that refers to the object that calls on the function using "this". In terms of scope, "this" prioritizes local objects over global objects--in other words, if there's no current object, "this" refers to the global object. Explain how prototypical inheritance works. Prototypical inheritance is how you implement object orientation in JavaScript--it's the way for you to enable the reuse of behaviors or functions in JavaScript. In prototypical inheritance, an object inherits from another object--this differs from the classical inheritance found in Object-Oriented languages, in which a class inherits from another class. For example, you can create an object using a constructor function, and then create another object variable defined as a new instance of the first object. You can also add new functions or characteristics to the first object through what's called the "prototype property", allowing these newly added functions or characteristics to be "passed on" to the second object. ## Instruction: Reformat again for commonly asked js questions ## Code After: **Explain event delegation.** Event delegation is when you add a common event to multiple elements--including ones we may add in the future--by adding a single event listener to an ancestor element of these elements. This makes it easier for us, since we don't have to add the same event listener to every single element we want to add a common event to. <br> **Explain how "this" works in JavaScript.** In JavaScript, "this" is a property that refers to the object that calls on the function using "this". In terms of scope, "this" prioritizes local objects over global objects--in other words, if there's no current object, "this" refers to the global object. <br> **Explain how prototypical inheritance works.** Prototypical inheritance is how you implement object orientation in JavaScript--it's the way for you to enable the reuse of behaviors or functions in JavaScript. In prototypical inheritance, an object inherits from another object--this differs from the classical inheritance found in Object-Oriented languages, in which a class inherits from another class. For example, you can create an object using a constructor function, and then create another object variable defined as a new instance of the first object. You can also add new functions or characteristics to the first object through what's called the "prototype property", allowing these newly added functions or characteristics to be "passed on" to the second object.
**Explain event delegation.** Event delegation is when you add a common event to multiple elements--including ones we may add in the future--by adding a single event listener to an ancestor element of these elements. This makes it easier for us, since we don't have to add the same event listener to every single element we want to add a common event to. <br> - Explain how "this" works in JavaScript. + **Explain how "this" works in JavaScript.** ? ++ ++ In JavaScript, "this" is a property that refers to the object that calls on the function using "this". In terms of scope, "this" prioritizes local objects over global objects--in other words, if there's no current object, "this" refers to the global object. - + <br> - Explain how prototypical inheritance works. + **Explain how prototypical inheritance works.** ? ++ ++ Prototypical inheritance is how you implement object orientation in JavaScript--it's the way for you to enable the reuse of behaviors or functions in JavaScript. In prototypical inheritance, an object inherits from another object--this differs from the classical inheritance found in Object-Oriented languages, in which a class inherits from another class. For example, you can create an object using a constructor function, and then create another object variable defined as a new instance of the first object. You can also add new functions or characteristics to the first object through what's called the "prototype property", allowing these newly added functions or characteristics to be "passed on" to the second object.
6
0.375
3
3
09e9def8fb45681b506d86f896f36b046fb067e5
src/main/kotlin/me/mrkirby153/KirBot/command/executors/admin/CommandSu.kt
src/main/kotlin/me/mrkirby153/KirBot/command/executors/admin/CommandSu.kt
package me.mrkirby153.KirBot.command.executors.admin import me.mrkirby153.KirBot.Bot import me.mrkirby153.KirBot.command.BaseCommand import me.mrkirby153.KirBot.command.Command import me.mrkirby153.KirBot.command.CommandCategory import me.mrkirby153.KirBot.command.CommandExecutor import me.mrkirby153.KirBot.command.args.CommandContext import me.mrkirby153.KirBot.utils.Context import net.dv8tion.jda.core.entities.User @Command(name = "su", arguments = ["<user:user>", "<command:string...>"]) class CommandSu : BaseCommand(CommandCategory.ADMIN) { override fun execute(context: Context, cmdContext: CommandContext) { val user = cmdContext.get<User>("user") val command = cmdContext.get<String>("command") val c = Context(context.shard, context) c.customAuthor = user c.customMessage = command Bot.LOG.warn( "Executing command \"$command\" as ${c.author} - Requested by ${context.author}") CommandExecutor.execute(c) } }
package me.mrkirby153.KirBot.command.executors.admin import me.mrkirby153.KirBot.Bot import me.mrkirby153.KirBot.command.BaseCommand import me.mrkirby153.KirBot.command.Command import me.mrkirby153.KirBot.command.CommandCategory import me.mrkirby153.KirBot.command.CommandExecutor import me.mrkirby153.KirBot.command.args.CommandContext import me.mrkirby153.KirBot.user.CLEARANCE_GLOBAL_ADMIN import me.mrkirby153.KirBot.utils.Context import net.dv8tion.jda.core.entities.User @Command(name = "su", arguments = ["<user:user>", "<command:string...>"], clearance = CLEARANCE_GLOBAL_ADMIN) class CommandSu : BaseCommand(CommandCategory.ADMIN) { override fun execute(context: Context, cmdContext: CommandContext) { val user = cmdContext.get<User>("user") val command = cmdContext.get<String>("command") val c = Context(context.shard, context) c.customAuthor = user c.customMessage = command Bot.LOG.warn( "Executing command \"$command\" as ${c.author} - Requested by ${context.author}") CommandExecutor.execute(c) } }
Fix incorrect permissions on su command
Fix incorrect permissions on su command
Kotlin
mit
mrkirby153/KirBot
kotlin
## Code Before: package me.mrkirby153.KirBot.command.executors.admin import me.mrkirby153.KirBot.Bot import me.mrkirby153.KirBot.command.BaseCommand import me.mrkirby153.KirBot.command.Command import me.mrkirby153.KirBot.command.CommandCategory import me.mrkirby153.KirBot.command.CommandExecutor import me.mrkirby153.KirBot.command.args.CommandContext import me.mrkirby153.KirBot.utils.Context import net.dv8tion.jda.core.entities.User @Command(name = "su", arguments = ["<user:user>", "<command:string...>"]) class CommandSu : BaseCommand(CommandCategory.ADMIN) { override fun execute(context: Context, cmdContext: CommandContext) { val user = cmdContext.get<User>("user") val command = cmdContext.get<String>("command") val c = Context(context.shard, context) c.customAuthor = user c.customMessage = command Bot.LOG.warn( "Executing command \"$command\" as ${c.author} - Requested by ${context.author}") CommandExecutor.execute(c) } } ## Instruction: Fix incorrect permissions on su command ## Code After: package me.mrkirby153.KirBot.command.executors.admin import me.mrkirby153.KirBot.Bot import me.mrkirby153.KirBot.command.BaseCommand import me.mrkirby153.KirBot.command.Command import me.mrkirby153.KirBot.command.CommandCategory import me.mrkirby153.KirBot.command.CommandExecutor import me.mrkirby153.KirBot.command.args.CommandContext import me.mrkirby153.KirBot.user.CLEARANCE_GLOBAL_ADMIN import me.mrkirby153.KirBot.utils.Context import net.dv8tion.jda.core.entities.User @Command(name = "su", arguments = ["<user:user>", "<command:string...>"], clearance = CLEARANCE_GLOBAL_ADMIN) class CommandSu : BaseCommand(CommandCategory.ADMIN) { override fun execute(context: Context, cmdContext: CommandContext) { val user = cmdContext.get<User>("user") val command = cmdContext.get<String>("command") val c = Context(context.shard, context) c.customAuthor = user c.customMessage = command Bot.LOG.warn( "Executing command \"$command\" as ${c.author} - Requested by ${context.author}") CommandExecutor.execute(c) } }
package me.mrkirby153.KirBot.command.executors.admin import me.mrkirby153.KirBot.Bot import me.mrkirby153.KirBot.command.BaseCommand import me.mrkirby153.KirBot.command.Command import me.mrkirby153.KirBot.command.CommandCategory import me.mrkirby153.KirBot.command.CommandExecutor import me.mrkirby153.KirBot.command.args.CommandContext + import me.mrkirby153.KirBot.user.CLEARANCE_GLOBAL_ADMIN import me.mrkirby153.KirBot.utils.Context import net.dv8tion.jda.core.entities.User - @Command(name = "su", arguments = ["<user:user>", "<command:string...>"]) + @Command(name = "su", arguments = ["<user:user>", "<command:string...>"], clearance = CLEARANCE_GLOBAL_ADMIN) ? ++++++++++++++++++++++++++++++++++++ class CommandSu : BaseCommand(CommandCategory.ADMIN) { override fun execute(context: Context, cmdContext: CommandContext) { val user = cmdContext.get<User>("user") val command = cmdContext.get<String>("command") val c = Context(context.shard, context) c.customAuthor = user c.customMessage = command Bot.LOG.warn( "Executing command \"$command\" as ${c.author} - Requested by ${context.author}") CommandExecutor.execute(c) } }
3
0.115385
2
1
21ae1e6023ecfaac53a059e7767f814ff0bf5578
.github/free-up-disk-space.sh
.github/free-up-disk-space.sh
set -u set -e if [ -z ${GITHUB_ACTIONS+x} ]; then echo "Please run this script on GitHub Actions instance only!" exit 1 fi echo echo "Disk space before clean up:" df -h echo echo "Disabling swap..." sudo swapoff -a echo "Removing swapfile..." sudo rm -f /swapfile echo "Cleaning APT cache..." sudo apt clean echo "Removing docker images..." docker rmi $(docker image ls -aq) echo echo "Disk space after clean up:" df -h
set -u set -e if [ -z ${GITHUB_ACTIONS+x} ]; then echo "Please run this script on GitHub Actions instance only!" exit 1 fi echo echo "Disk space before clean up:" df -h echo echo "Disabling swap..." sudo swapoff -a echo "Removing swapfile..." sudo rm -f /swapfile echo "Cleaning APT cache..." sudo apt clean echo "Removing some directories..." sudo rm -rf /usr/local/lib/android/ sudo rm -rf /usr/local/lib/node_modules/ sudo rm -rf /usr/local/share/chromium/ sudo rm -rf "${AGENT_TOOLSDIRECTORY}" echo "Removing docker images..." docker rmi $(docker image ls -aq) echo echo "Disk space after clean up:" df -h
Remove some huge directories before proceeding with the build
Remove some huge directories before proceeding with the build
Shell
agpl-3.0
berkmancenter/mediacloud,berkmancenter/mediacloud,berkmancenter/mediacloud,berkmancenter/mediacloud,berkmancenter/mediacloud
shell
## Code Before: set -u set -e if [ -z ${GITHUB_ACTIONS+x} ]; then echo "Please run this script on GitHub Actions instance only!" exit 1 fi echo echo "Disk space before clean up:" df -h echo echo "Disabling swap..." sudo swapoff -a echo "Removing swapfile..." sudo rm -f /swapfile echo "Cleaning APT cache..." sudo apt clean echo "Removing docker images..." docker rmi $(docker image ls -aq) echo echo "Disk space after clean up:" df -h ## Instruction: Remove some huge directories before proceeding with the build ## Code After: set -u set -e if [ -z ${GITHUB_ACTIONS+x} ]; then echo "Please run this script on GitHub Actions instance only!" exit 1 fi echo echo "Disk space before clean up:" df -h echo echo "Disabling swap..." sudo swapoff -a echo "Removing swapfile..." sudo rm -f /swapfile echo "Cleaning APT cache..." sudo apt clean echo "Removing some directories..." sudo rm -rf /usr/local/lib/android/ sudo rm -rf /usr/local/lib/node_modules/ sudo rm -rf /usr/local/share/chromium/ sudo rm -rf "${AGENT_TOOLSDIRECTORY}" echo "Removing docker images..." docker rmi $(docker image ls -aq) echo echo "Disk space after clean up:" df -h
set -u set -e if [ -z ${GITHUB_ACTIONS+x} ]; then echo "Please run this script on GitHub Actions instance only!" exit 1 fi echo echo "Disk space before clean up:" df -h echo echo "Disabling swap..." sudo swapoff -a echo "Removing swapfile..." sudo rm -f /swapfile echo "Cleaning APT cache..." sudo apt clean + echo "Removing some directories..." + sudo rm -rf /usr/local/lib/android/ + sudo rm -rf /usr/local/lib/node_modules/ + sudo rm -rf /usr/local/share/chromium/ + sudo rm -rf "${AGENT_TOOLSDIRECTORY}" + echo "Removing docker images..." docker rmi $(docker image ls -aq) echo echo "Disk space after clean up:" df -h
6
0.206897
6
0
da75222fa286588394da7f689d47bd53716ffaa1
coverage/execfile.py
coverage/execfile.py
"""Execute files of Python code.""" import imp, os, sys def run_python_file(filename, args): """Run a python file as if it were the main program on the command line. `filename` is the path to the file to execute, it need not be a .py file. `args` is the argument array to present as sys.argv, including the first element representing the file being executed. """ # Create a module to serve as __main__ old_main_mod = sys.modules['__main__'] main_mod = imp.new_module("__main__") sys.modules['__main__'] = main_mod main_mod.__dict__.update({ '__name__': '__main__', '__file__': filename, }) # Set sys.argv and the first path element properly. old_argv = sys.argv old_path0 = sys.path[0] sys.argv = args sys.path[0] = os.path.dirname(filename) try: source = open(filename).read() exec compile(source, filename, "exec") in main_mod.__dict__ finally: # Restore the old __main__ sys.modules['__main__'] = old_main_mod # Restore the old argv and path sys.argv = old_argv sys.path[0] = old_path0
"""Execute files of Python code.""" import imp, os, sys def run_python_file(filename, args): """Run a python file as if it were the main program on the command line. `filename` is the path to the file to execute, it need not be a .py file. `args` is the argument array to present as sys.argv, including the first element representing the file being executed. """ # Create a module to serve as __main__ old_main_mod = sys.modules['__main__'] main_mod = imp.new_module('__main__') sys.modules['__main__'] = main_mod main_mod.__file__ = filename # Set sys.argv and the first path element properly. old_argv = sys.argv old_path0 = sys.path[0] sys.argv = args sys.path[0] = os.path.dirname(filename) try: source = open(filename).read() exec compile(source, filename, "exec") in main_mod.__dict__ finally: # Restore the old __main__ sys.modules['__main__'] = old_main_mod # Restore the old argv and path sys.argv = old_argv sys.path[0] = old_path0
Simplify the construction of the __main__ module in run_python_file.
Simplify the construction of the __main__ module in run_python_file.
Python
apache-2.0
blueyed/coveragepy,nedbat/coveragepy,larsbutler/coveragepy,blueyed/coveragepy,7WebPages/coveragepy,jayhetee/coveragepy,larsbutler/coveragepy,nedbat/coveragepy,larsbutler/coveragepy,hugovk/coveragepy,larsbutler/coveragepy,7WebPages/coveragepy,larsbutler/coveragepy,nedbat/coveragepy,hugovk/coveragepy,blueyed/coveragepy,7WebPages/coveragepy,jayhetee/coveragepy,7WebPages/coveragepy,jayhetee/coveragepy,hugovk/coveragepy,blueyed/coveragepy,hugovk/coveragepy,jayhetee/coveragepy,jayhetee/coveragepy,blueyed/coveragepy,nedbat/coveragepy,hugovk/coveragepy,nedbat/coveragepy
python
## Code Before: """Execute files of Python code.""" import imp, os, sys def run_python_file(filename, args): """Run a python file as if it were the main program on the command line. `filename` is the path to the file to execute, it need not be a .py file. `args` is the argument array to present as sys.argv, including the first element representing the file being executed. """ # Create a module to serve as __main__ old_main_mod = sys.modules['__main__'] main_mod = imp.new_module("__main__") sys.modules['__main__'] = main_mod main_mod.__dict__.update({ '__name__': '__main__', '__file__': filename, }) # Set sys.argv and the first path element properly. old_argv = sys.argv old_path0 = sys.path[0] sys.argv = args sys.path[0] = os.path.dirname(filename) try: source = open(filename).read() exec compile(source, filename, "exec") in main_mod.__dict__ finally: # Restore the old __main__ sys.modules['__main__'] = old_main_mod # Restore the old argv and path sys.argv = old_argv sys.path[0] = old_path0 ## Instruction: Simplify the construction of the __main__ module in run_python_file. ## Code After: """Execute files of Python code.""" import imp, os, sys def run_python_file(filename, args): """Run a python file as if it were the main program on the command line. `filename` is the path to the file to execute, it need not be a .py file. `args` is the argument array to present as sys.argv, including the first element representing the file being executed. """ # Create a module to serve as __main__ old_main_mod = sys.modules['__main__'] main_mod = imp.new_module('__main__') sys.modules['__main__'] = main_mod main_mod.__file__ = filename # Set sys.argv and the first path element properly. old_argv = sys.argv old_path0 = sys.path[0] sys.argv = args sys.path[0] = os.path.dirname(filename) try: source = open(filename).read() exec compile(source, filename, "exec") in main_mod.__dict__ finally: # Restore the old __main__ sys.modules['__main__'] = old_main_mod # Restore the old argv and path sys.argv = old_argv sys.path[0] = old_path0
"""Execute files of Python code.""" import imp, os, sys def run_python_file(filename, args): """Run a python file as if it were the main program on the command line. `filename` is the path to the file to execute, it need not be a .py file. `args` is the argument array to present as sys.argv, including the first element representing the file being executed. """ # Create a module to serve as __main__ old_main_mod = sys.modules['__main__'] - main_mod = imp.new_module("__main__") ? ^ ^ + main_mod = imp.new_module('__main__') ? ^ ^ sys.modules['__main__'] = main_mod + main_mod.__file__ = filename + - main_mod.__dict__.update({ - '__name__': '__main__', - '__file__': filename, - }) - # Set sys.argv and the first path element properly. old_argv = sys.argv old_path0 = sys.path[0] sys.argv = args sys.path[0] = os.path.dirname(filename) try: source = open(filename).read() exec compile(source, filename, "exec") in main_mod.__dict__ finally: # Restore the old __main__ sys.modules['__main__'] = old_main_mod # Restore the old argv and path sys.argv = old_argv sys.path[0] = old_path0
9
0.243243
3
6
497a2682b7bf836dbcccc3cf2b577894f8ea32b4
roles/rpi_netboot_os_bootstrap/tasks/main.yml
roles/rpi_netboot_os_bootstrap/tasks/main.yml
--- - name: RPi netboot special | Hold kernels dpkg_selections: name: "{{ item }}" selection: hold loop: - linux-headers-raspi - linux-image-raspi - linux-raspi - name: RPi netboot special | NFS dependencies apt: pkg: - nfs-common - open-iscsi - v4l2loopback-dkms state: present - name: RPi netboot special | Add v4l2loopback module lineinfile: dest: /etc/modules regexp: "^v4l2loopback" line: "v4l2loopback" - name: RPi netboot special | Mask unwanted services systemd: name: "{{ item }}" masked: true loop: - lvm2-lvmpolld.socket - lvm2-monitor.service - multipathd.service - unattended-upgrades.service - firewalld.service - ufw.service - fwupd.service - fwupd-refresh.timer
--- - name: RPi netboot special | Hold kernels dpkg_selections: name: "{{ item }}" selection: hold loop: - linux-headers-raspi - linux-image-raspi - linux-raspi - name: RPi netboot special | NFS dependencies apt: pkg: - nfs-common - open-iscsi - v4l2loopback-dkms state: present # https://github.com/open-iscsi/open-iscsi/blob/a8fcb3737cabcf79a3a3663f43930a158d606782/README#L1557 - name: RPi netboot special | Set iSCSI timeouts lineinfile: path: /etc/iscsi/iscsid.conf regexp: "^{{ item.key }}" line: "{{ item.key }} = {{ item.value }}" backrefs: true loop: - key: node.conn[0].timeo.noop_out_interval value: 0 - key: node.conn[0].timeo.noop_out_timeout value: 0 - key: node.session.timeo.replacement_timeout value: 86400 - name: RPi netboot special | Add v4l2loopback module lineinfile: dest: /etc/modules regexp: "^v4l2loopback" line: "v4l2loopback" - name: RPi netboot special | Mask unwanted services systemd: name: "{{ item }}" masked: true loop: - lvm2-lvmpolld.socket - lvm2-monitor.service - multipathd.service - unattended-upgrades.service - firewalld.service - ufw.service - fwupd.service - fwupd-refresh.timer
Set iscsi timeouts for root rpi disks
Set iscsi timeouts for root rpi disks
YAML
mit
kradalby/plays,kradalby/plays
yaml
## Code Before: --- - name: RPi netboot special | Hold kernels dpkg_selections: name: "{{ item }}" selection: hold loop: - linux-headers-raspi - linux-image-raspi - linux-raspi - name: RPi netboot special | NFS dependencies apt: pkg: - nfs-common - open-iscsi - v4l2loopback-dkms state: present - name: RPi netboot special | Add v4l2loopback module lineinfile: dest: /etc/modules regexp: "^v4l2loopback" line: "v4l2loopback" - name: RPi netboot special | Mask unwanted services systemd: name: "{{ item }}" masked: true loop: - lvm2-lvmpolld.socket - lvm2-monitor.service - multipathd.service - unattended-upgrades.service - firewalld.service - ufw.service - fwupd.service - fwupd-refresh.timer ## Instruction: Set iscsi timeouts for root rpi disks ## Code After: --- - name: RPi netboot special | Hold kernels dpkg_selections: name: "{{ item }}" selection: hold loop: - linux-headers-raspi - linux-image-raspi - linux-raspi - name: RPi netboot special | NFS dependencies apt: pkg: - nfs-common - open-iscsi - v4l2loopback-dkms state: present # https://github.com/open-iscsi/open-iscsi/blob/a8fcb3737cabcf79a3a3663f43930a158d606782/README#L1557 - name: RPi netboot special | Set iSCSI timeouts lineinfile: path: /etc/iscsi/iscsid.conf regexp: "^{{ item.key }}" line: "{{ item.key }} = {{ item.value }}" backrefs: true loop: - key: node.conn[0].timeo.noop_out_interval value: 0 - key: node.conn[0].timeo.noop_out_timeout value: 0 - key: node.session.timeo.replacement_timeout value: 86400 - name: RPi netboot special | Add v4l2loopback module lineinfile: dest: /etc/modules regexp: "^v4l2loopback" line: "v4l2loopback" - name: RPi netboot special | Mask unwanted services systemd: name: "{{ item }}" masked: true loop: - lvm2-lvmpolld.socket - lvm2-monitor.service - multipathd.service - unattended-upgrades.service - firewalld.service - ufw.service - fwupd.service - fwupd-refresh.timer
--- - name: RPi netboot special | Hold kernels dpkg_selections: name: "{{ item }}" selection: hold loop: - linux-headers-raspi - linux-image-raspi - linux-raspi - name: RPi netboot special | NFS dependencies apt: pkg: - nfs-common - open-iscsi - v4l2loopback-dkms state: present + + # https://github.com/open-iscsi/open-iscsi/blob/a8fcb3737cabcf79a3a3663f43930a158d606782/README#L1557 + - name: RPi netboot special | Set iSCSI timeouts + lineinfile: + path: /etc/iscsi/iscsid.conf + regexp: "^{{ item.key }}" + line: "{{ item.key }} = {{ item.value }}" + backrefs: true + loop: + - key: node.conn[0].timeo.noop_out_interval + value: 0 + - key: node.conn[0].timeo.noop_out_timeout + value: 0 + - key: node.session.timeo.replacement_timeout + value: 86400 - name: RPi netboot special | Add v4l2loopback module lineinfile: dest: /etc/modules regexp: "^v4l2loopback" line: "v4l2loopback" - name: RPi netboot special | Mask unwanted services systemd: name: "{{ item }}" masked: true loop: - lvm2-lvmpolld.socket - lvm2-monitor.service - multipathd.service - unattended-upgrades.service - firewalld.service - ufw.service - fwupd.service - fwupd-refresh.timer
15
0.405405
15
0
c8f1800ccd7a42223b9fcecb00acd397ba7d7cdb
appveyor.yml
appveyor.yml
version: 1.0.{build} os: Visual Studio 2017 cache: - '%USERPROFILE%\.nuget\packages -> **\project.json' - 'src\packages -> **\packages.config' build_script: - cmd: '"%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe" /nologo /m /v:m /nr:false /flp:verbosity=detailed /p:SkipTests=True' artifacts: - path: msbuild.log name: MSBuild Log - path: bin\release\NuProj_Setup.zip name: Setup - path: bin\release\*.nupkg name: Packages - path: bin\raw\*.vsix name: Extensions - path: bin\raw\*.msi name: Visual Studio installer
version: 1.0.{build} os: Visual Studio 2017 cache: - '%USERPROFILE%\.nuget\packages -> **\project.json' - 'src\packages -> **\packages.config' build_script: - cmd: '"%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe" /nologo /m /v:m /nr:false /flp:verbosity=detailed /p:SkipTests=True' artifacts: - path: msbuild.log name: MSBuild Log - path: bin\release\*.nupkg name: Packages - path: bin\raw\*.vsix name: Extensions - path: bin\raw\*.msi name: Visual Studio installer
Stop storing another copy of MSI
Stop storing another copy of MSI
YAML
mit
nuproj/nuproj
yaml
## Code Before: version: 1.0.{build} os: Visual Studio 2017 cache: - '%USERPROFILE%\.nuget\packages -> **\project.json' - 'src\packages -> **\packages.config' build_script: - cmd: '"%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe" /nologo /m /v:m /nr:false /flp:verbosity=detailed /p:SkipTests=True' artifacts: - path: msbuild.log name: MSBuild Log - path: bin\release\NuProj_Setup.zip name: Setup - path: bin\release\*.nupkg name: Packages - path: bin\raw\*.vsix name: Extensions - path: bin\raw\*.msi name: Visual Studio installer ## Instruction: Stop storing another copy of MSI ## Code After: version: 1.0.{build} os: Visual Studio 2017 cache: - '%USERPROFILE%\.nuget\packages -> **\project.json' - 'src\packages -> **\packages.config' build_script: - cmd: '"%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe" /nologo /m /v:m /nr:false /flp:verbosity=detailed /p:SkipTests=True' artifacts: - path: msbuild.log name: MSBuild Log - path: bin\release\*.nupkg name: Packages - path: bin\raw\*.vsix name: Extensions - path: bin\raw\*.msi name: Visual Studio installer
version: 1.0.{build} os: Visual Studio 2017 cache: - '%USERPROFILE%\.nuget\packages -> **\project.json' - 'src\packages -> **\packages.config' build_script: - cmd: '"%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe" /nologo /m /v:m /nr:false /flp:verbosity=detailed /p:SkipTests=True' artifacts: - path: msbuild.log name: MSBuild Log - - path: bin\release\NuProj_Setup.zip - name: Setup - path: bin\release\*.nupkg name: Packages - path: bin\raw\*.vsix name: Extensions - path: bin\raw\*.msi name: Visual Studio installer
2
0.111111
0
2
c75c2604096c4116601c43ee5cfffd39842b6e8a
devtools/conda-recipe/meta.yaml
devtools/conda-recipe/meta.yaml
package: name: yank-dev version: 0.0.0 source: path: ../.. build: preserve_egg_dir: True number: 0 skip: True # [py2k] requirements: build: - python - setuptools run: - python - pandas - numpy >=1.14 - scipy - openmm >=7.3 - mdtraj >=1.7.2 - openmmtools >=0.18.3 - pymbar - ambertools - docopt - openmoltools >=0.7.5 - mpiplus - pyyaml - clusterutils - sphinxcontrib-bibtex - cerberus - matplotlib - jupyter - pdbfixer about: home: https://github.com/choderalab/yank license: MIT license_file: LICENSE
package: name: yank-dev version: 0.0.0 source: path: ../.. build: preserve_egg_dir: True number: 0 skip: True # [py2k] requirements: build: - python - setuptools run: - python - pandas - numpy >=1.14 - scipy - openmm >=7.3 - mdtraj >=1.7.2 - openmmtools >=0.18.3 - pymbar - docopt - openmoltools >=0.7.5 - mpiplus - pyyaml - clusterutils - sphinxcontrib-bibtex - cerberus - matplotlib - jupyter - pdbfixer about: home: https://github.com/choderalab/yank license: MIT license_file: LICENSE
Remove ambertools dependency (let openmoltools handle it)
Remove ambertools dependency (let openmoltools handle it)
YAML
mit
choderalab/yank,choderalab/yank
yaml
## Code Before: package: name: yank-dev version: 0.0.0 source: path: ../.. build: preserve_egg_dir: True number: 0 skip: True # [py2k] requirements: build: - python - setuptools run: - python - pandas - numpy >=1.14 - scipy - openmm >=7.3 - mdtraj >=1.7.2 - openmmtools >=0.18.3 - pymbar - ambertools - docopt - openmoltools >=0.7.5 - mpiplus - pyyaml - clusterutils - sphinxcontrib-bibtex - cerberus - matplotlib - jupyter - pdbfixer about: home: https://github.com/choderalab/yank license: MIT license_file: LICENSE ## Instruction: Remove ambertools dependency (let openmoltools handle it) ## Code After: package: name: yank-dev version: 0.0.0 source: path: ../.. build: preserve_egg_dir: True number: 0 skip: True # [py2k] requirements: build: - python - setuptools run: - python - pandas - numpy >=1.14 - scipy - openmm >=7.3 - mdtraj >=1.7.2 - openmmtools >=0.18.3 - pymbar - docopt - openmoltools >=0.7.5 - mpiplus - pyyaml - clusterutils - sphinxcontrib-bibtex - cerberus - matplotlib - jupyter - pdbfixer about: home: https://github.com/choderalab/yank license: MIT license_file: LICENSE
package: name: yank-dev version: 0.0.0 source: path: ../.. build: preserve_egg_dir: True number: 0 skip: True # [py2k] requirements: build: - python - setuptools run: - python - pandas - numpy >=1.14 - scipy - openmm >=7.3 - mdtraj >=1.7.2 - openmmtools >=0.18.3 - pymbar - - ambertools - docopt - openmoltools >=0.7.5 - mpiplus - pyyaml - clusterutils - sphinxcontrib-bibtex - cerberus - matplotlib - jupyter - pdbfixer about: home: https://github.com/choderalab/yank license: MIT license_file: LICENSE
1
0.02381
0
1
e902dee73b38dc5aedf144958588d4b86541c45c
metadata/gr.ndre.scuttloid.txt
metadata/gr.ndre.scuttloid.txt
Categories:Internet License:GPLv3+ Web Site: Source Code:https://github.com/ilesinge/scuttloid Issue Tracker:https://github.com/ilesinge/scuttloid/issues Auto Name:Scuttloid Summary:Semantic Scuttle client Description: Scuttloid is a client for managing your bookmarks that are stored on a [http://sourceforge.net/projects/semanticscuttle/ Semantic Scuttle] server. It allows to list/search your personal bookmarks, add and edit existing bookmarks, and share them to other applications. Status: Beta. . Repo Type:git Repo:https://github.com/ilesinge/scuttloid.git Build:1.0,1 commit=1.0 Build:1.0.1,2 commit=1.0.1 Auto Update Mode:Version %v Update Check Mode:Tags Current Version:1.0.1 Current Version Code:2
Categories:Internet License:GPLv3+ Web Site: Source Code:https://github.com/ilesinge/scuttloid Issue Tracker:https://github.com/ilesinge/scuttloid/issues Auto Name:Scuttloid Summary:Semantic Scuttle client Description: Scuttloid is a client for managing your bookmarks that are stored on a [http://sourceforge.net/projects/semanticscuttle/ Semantic Scuttle] server. It allows to list/search your personal bookmarks, add and edit existing bookmarks, and share them to other applications. Status: Beta. . Repo Type:git Repo:https://github.com/ilesinge/scuttloid.git Build:1.0,1 commit=1.0 Build:1.0.1,2 commit=1.0.1 Build:1.1,3 commit=1.1 Auto Update Mode:Version %v Update Check Mode:Tags Current Version:1.1 Current Version Code:3
Update Scuttloid to 1.1 (3)
Update Scuttloid to 1.1 (3)
Text
agpl-3.0
f-droid/fdroiddata,f-droid/fdroiddata,f-droid/fdroid-data
text
## Code Before: Categories:Internet License:GPLv3+ Web Site: Source Code:https://github.com/ilesinge/scuttloid Issue Tracker:https://github.com/ilesinge/scuttloid/issues Auto Name:Scuttloid Summary:Semantic Scuttle client Description: Scuttloid is a client for managing your bookmarks that are stored on a [http://sourceforge.net/projects/semanticscuttle/ Semantic Scuttle] server. It allows to list/search your personal bookmarks, add and edit existing bookmarks, and share them to other applications. Status: Beta. . Repo Type:git Repo:https://github.com/ilesinge/scuttloid.git Build:1.0,1 commit=1.0 Build:1.0.1,2 commit=1.0.1 Auto Update Mode:Version %v Update Check Mode:Tags Current Version:1.0.1 Current Version Code:2 ## Instruction: Update Scuttloid to 1.1 (3) ## Code After: Categories:Internet License:GPLv3+ Web Site: Source Code:https://github.com/ilesinge/scuttloid Issue Tracker:https://github.com/ilesinge/scuttloid/issues Auto Name:Scuttloid Summary:Semantic Scuttle client Description: Scuttloid is a client for managing your bookmarks that are stored on a [http://sourceforge.net/projects/semanticscuttle/ Semantic Scuttle] server. It allows to list/search your personal bookmarks, add and edit existing bookmarks, and share them to other applications. Status: Beta. . Repo Type:git Repo:https://github.com/ilesinge/scuttloid.git Build:1.0,1 commit=1.0 Build:1.0.1,2 commit=1.0.1 Build:1.1,3 commit=1.1 Auto Update Mode:Version %v Update Check Mode:Tags Current Version:1.1 Current Version Code:3
Categories:Internet License:GPLv3+ Web Site: Source Code:https://github.com/ilesinge/scuttloid Issue Tracker:https://github.com/ilesinge/scuttloid/issues Auto Name:Scuttloid Summary:Semantic Scuttle client Description: Scuttloid is a client for managing your bookmarks that are stored on a [http://sourceforge.net/projects/semanticscuttle/ Semantic Scuttle] server. It allows to list/search your personal bookmarks, add and edit existing bookmarks, and share them to other applications. Status: Beta. . Repo Type:git Repo:https://github.com/ilesinge/scuttloid.git Build:1.0,1 commit=1.0 Build:1.0.1,2 commit=1.0.1 + Build:1.1,3 + commit=1.1 + Auto Update Mode:Version %v Update Check Mode:Tags - Current Version:1.0.1 ? -- + Current Version:1.1 - Current Version Code:2 ? ^ + Current Version Code:3 ? ^
7
0.225806
5
2
5cde9729ace24ac90e077c291fec773f75ce19df
test/partials/filters.html
test/partials/filters.html
<section id="filters"> <h2>Filters</h2> <div class="row"> <div class="col col-4"> <img class="filter-greyscale" src="/test/assets/img/sample.jpg"> <div class="label"><code>greyscale</code></div> </div> <div class="col col-4"> <img class="filter-blur" src="/test/assets/img/sample.jpg"> <div class="label"><code>blur</code></div> </div> <div class="col col-4"> <img class="filter-brightness" src="/test/assets/img/sample.jpg"> <div class="label"><code>brightness</code></div> </div> <div class="col col-4"> <img class="filter-contrast" src="/test/assets/img/sample.jpg"> <div class="label"><code>contrast</code></div> </div> <div class="col col-4"> <img class="filter-saturate" src="/test/assets/img/sample.jpg"> <div class="label"><code>saturate</code></div> </div> </div> </section>
<section id="filters"> <h2>Filters</h2> <div class="row"> <div class="col col-4"> <img src="/test/assets/img/sample.jpg"> <div class="label"><code>original</code></div> </div> <div class="col col-4"> <img class="filter-greyscale" src="/test/assets/img/sample.jpg"> <div class="label"><code>greyscale</code></div> </div> <div class="col col-4"> <img class="filter-blur" src="/test/assets/img/sample.jpg"> <div class="label"><code>blur</code></div> </div> <div class="col col-4"> <img class="filter-brightness" src="/test/assets/img/sample.jpg"> <div class="label"><code>brightness</code></div> </div> <div class="col col-4"> <img class="filter-contrast" src="/test/assets/img/sample.jpg"> <div class="label"><code>contrast</code></div> </div> <div class="col col-4"> <img class="filter-saturate" src="/test/assets/img/sample.jpg"> <div class="label"><code>saturate</code></div> </div> </div> </section>
Add original filter image for reference
Add original filter image for reference
HTML
mit
Flywheel-Co/flywheel-adapt,Flywheel-Co/flywheel-adapt
html
## Code Before: <section id="filters"> <h2>Filters</h2> <div class="row"> <div class="col col-4"> <img class="filter-greyscale" src="/test/assets/img/sample.jpg"> <div class="label"><code>greyscale</code></div> </div> <div class="col col-4"> <img class="filter-blur" src="/test/assets/img/sample.jpg"> <div class="label"><code>blur</code></div> </div> <div class="col col-4"> <img class="filter-brightness" src="/test/assets/img/sample.jpg"> <div class="label"><code>brightness</code></div> </div> <div class="col col-4"> <img class="filter-contrast" src="/test/assets/img/sample.jpg"> <div class="label"><code>contrast</code></div> </div> <div class="col col-4"> <img class="filter-saturate" src="/test/assets/img/sample.jpg"> <div class="label"><code>saturate</code></div> </div> </div> </section> ## Instruction: Add original filter image for reference ## Code After: <section id="filters"> <h2>Filters</h2> <div class="row"> <div class="col col-4"> <img src="/test/assets/img/sample.jpg"> <div class="label"><code>original</code></div> </div> <div class="col col-4"> <img class="filter-greyscale" src="/test/assets/img/sample.jpg"> <div class="label"><code>greyscale</code></div> </div> <div class="col col-4"> <img class="filter-blur" src="/test/assets/img/sample.jpg"> <div class="label"><code>blur</code></div> </div> <div class="col col-4"> <img class="filter-brightness" src="/test/assets/img/sample.jpg"> <div class="label"><code>brightness</code></div> </div> <div class="col col-4"> <img class="filter-contrast" src="/test/assets/img/sample.jpg"> <div class="label"><code>contrast</code></div> </div> <div class="col col-4"> <img class="filter-saturate" src="/test/assets/img/sample.jpg"> <div class="label"><code>saturate</code></div> </div> </div> </section>
<section id="filters"> <h2>Filters</h2> <div class="row"> + <div class="col col-4"> + <img src="/test/assets/img/sample.jpg"> + <div class="label"><code>original</code></div> + </div> <div class="col col-4"> <img class="filter-greyscale" src="/test/assets/img/sample.jpg"> <div class="label"><code>greyscale</code></div> </div> <div class="col col-4"> <img class="filter-blur" src="/test/assets/img/sample.jpg"> <div class="label"><code>blur</code></div> </div> <div class="col col-4"> <img class="filter-brightness" src="/test/assets/img/sample.jpg"> <div class="label"><code>brightness</code></div> </div> <div class="col col-4"> <img class="filter-contrast" src="/test/assets/img/sample.jpg"> <div class="label"><code>contrast</code></div> </div> <div class="col col-4"> <img class="filter-saturate" src="/test/assets/img/sample.jpg"> <div class="label"><code>saturate</code></div> </div> </div> </section>
4
0.153846
4
0
0865d255e72c7bea102c47197c21fc3d661b3eaa
pages/delivery.md
pages/delivery.md
--- layout: page title: Delivery teaser: "A fixed price based on an outcome sought – typically high level business goals. Agile practises used for delivery to ensure transparency, quick feedback and business value [1]. <br/><br/> A project inception will be used to clarify business goals create an initial backlog. The body of work will then be matured and estimated. A team of agile experts including a coach will be assigned to deliver the project. <br/><br/> Frequent reviews of the solution and prioritise will take place. A business stakeholder will work closely with the team and be in charge of setting priorities and verifying functionality." permalink: "/delivery/" header: image: header_delivery.jpg pattern: pattern_concrete.jpg ---
--- layout: page title: Delivery teaser: "A fixed price based on an outcome sought – typically high level business goals. Agile practises used for delivery to ensure transparency, quick feedback and business value [1]. <br/><br/> A project inception will be used to clarify business goals create an initial backlog. The body of work will then be matured and estimated. A team of agile experts including a coach will be assigned to deliver the project. <br/><br/> Frequent reviews of the solution and prioritise will take place. A business stakeholder will work closely with the team and be in charge of setting priorities and verifying functionality. <br/><br/> [1] The approach is set up to focus on return on investment" permalink: "/delivery/" header: image: header_delivery.jpg pattern: pattern_concrete.jpg ---
Add reference - further info. Need to style
Add reference - further info. Need to style
Markdown
mit
evolve-agility/evolve-agility.github.io,evolve-agility/evolve-agility.github.io
markdown
## Code Before: --- layout: page title: Delivery teaser: "A fixed price based on an outcome sought – typically high level business goals. Agile practises used for delivery to ensure transparency, quick feedback and business value [1]. <br/><br/> A project inception will be used to clarify business goals create an initial backlog. The body of work will then be matured and estimated. A team of agile experts including a coach will be assigned to deliver the project. <br/><br/> Frequent reviews of the solution and prioritise will take place. A business stakeholder will work closely with the team and be in charge of setting priorities and verifying functionality." permalink: "/delivery/" header: image: header_delivery.jpg pattern: pattern_concrete.jpg --- ## Instruction: Add reference - further info. Need to style ## Code After: --- layout: page title: Delivery teaser: "A fixed price based on an outcome sought – typically high level business goals. Agile practises used for delivery to ensure transparency, quick feedback and business value [1]. <br/><br/> A project inception will be used to clarify business goals create an initial backlog. The body of work will then be matured and estimated. A team of agile experts including a coach will be assigned to deliver the project. <br/><br/> Frequent reviews of the solution and prioritise will take place. A business stakeholder will work closely with the team and be in charge of setting priorities and verifying functionality. <br/><br/> [1] The approach is set up to focus on return on investment" permalink: "/delivery/" header: image: header_delivery.jpg pattern: pattern_concrete.jpg ---
--- layout: page title: Delivery teaser: "A fixed price based on an outcome sought – typically high level business goals. Agile practises used for delivery to ensure transparency, quick feedback and business value [1]. <br/><br/> A project inception will be used to clarify business goals create an initial backlog. The body of work will then be matured and estimated. A team of agile experts including a coach will be assigned to deliver the project. <br/><br/> - Frequent reviews of the solution and prioritise will take place. A business stakeholder will work closely with the team and be in charge of setting priorities and verifying functionality." ? - + Frequent reviews of the solution and prioritise will take place. A business stakeholder will work closely with the team and be in charge of setting priorities and verifying functionality. + <br/><br/> + [1] The approach is set up to focus on return on investment" permalink: "/delivery/" header: image: header_delivery.jpg pattern: pattern_concrete.jpg ---
4
0.285714
3
1
3c14cfba975acbea1b226f14bbf154c51e8a5ff1
core/src/main/java/org/testcontainers/dockerclient/UnixSocketConfigurationStrategy.java
core/src/main/java/org/testcontainers/dockerclient/UnixSocketConfigurationStrategy.java
package org.testcontainers.dockerclient; import com.github.dockerjava.api.DockerClient; import com.github.dockerjava.core.DockerClientBuilder; import com.github.dockerjava.core.DockerClientConfig; public class UnixSocketConfigurationStrategy implements DockerConfigurationStrategy { @Override public DockerClientConfig provideConfiguration() throws InvalidConfigurationException { DockerClientConfig config = new DockerClientConfig.DockerClientConfigBuilder().withUri("unix:///var/run/docker.sock").build(); DockerClient client = DockerClientBuilder.getInstance(config).build(); try { client.pingCmd().exec(); } catch (Exception e) { throw new InvalidConfigurationException("ping failed"); } LOGGER.info("Access docker with unix local socker"); return config; } @Override public String getDescription() { return "unix socket docker access"; } }
package org.testcontainers.dockerclient; import com.github.dockerjava.api.DockerClient; import com.github.dockerjava.core.DockerClientBuilder; import com.github.dockerjava.core.DockerClientConfig; public class UnixSocketConfigurationStrategy implements DockerConfigurationStrategy { public static final String SOCKET_LOCATION = "unix:///var/run/docker.sock"; @Override public DockerClientConfig provideConfiguration() throws InvalidConfigurationException { DockerClientConfig config = new DockerClientConfig.DockerClientConfigBuilder().withUri(SOCKET_LOCATION).build(); DockerClient client = DockerClientBuilder.getInstance(config).build(); try { client.pingCmd().exec(); } catch (Exception e) { throw new InvalidConfigurationException("ping failed"); } LOGGER.info("Accessing docker with local Unix socket"); return config; } @Override public String getDescription() { return "local Unix socket (" + SOCKET_LOCATION + ")"; } }
Update log wording for Unix socket config strategy
Update log wording for Unix socket config strategy
Java
mit
outofcoffee/testcontainers-java,testcontainers/testcontainers-java,gorelikov/testcontainers-java,barrycommins/testcontainers-java,barrycommins/testcontainers-java,testcontainers/testcontainers-java,outofcoffee/testcontainers-java,gorelikov/testcontainers-java,gorelikov/testcontainers-java,rnorth/test-containers,rnorth/test-containers,outofcoffee/testcontainers-java,barrycommins/testcontainers-java,barrycommins/testcontainers-java,rnorth/test-containers,testcontainers/testcontainers-java,gorelikov/testcontainers-java
java
## Code Before: package org.testcontainers.dockerclient; import com.github.dockerjava.api.DockerClient; import com.github.dockerjava.core.DockerClientBuilder; import com.github.dockerjava.core.DockerClientConfig; public class UnixSocketConfigurationStrategy implements DockerConfigurationStrategy { @Override public DockerClientConfig provideConfiguration() throws InvalidConfigurationException { DockerClientConfig config = new DockerClientConfig.DockerClientConfigBuilder().withUri("unix:///var/run/docker.sock").build(); DockerClient client = DockerClientBuilder.getInstance(config).build(); try { client.pingCmd().exec(); } catch (Exception e) { throw new InvalidConfigurationException("ping failed"); } LOGGER.info("Access docker with unix local socker"); return config; } @Override public String getDescription() { return "unix socket docker access"; } } ## Instruction: Update log wording for Unix socket config strategy ## Code After: package org.testcontainers.dockerclient; import com.github.dockerjava.api.DockerClient; import com.github.dockerjava.core.DockerClientBuilder; import com.github.dockerjava.core.DockerClientConfig; public class UnixSocketConfigurationStrategy implements DockerConfigurationStrategy { public static final String SOCKET_LOCATION = "unix:///var/run/docker.sock"; @Override public DockerClientConfig provideConfiguration() throws InvalidConfigurationException { DockerClientConfig config = new DockerClientConfig.DockerClientConfigBuilder().withUri(SOCKET_LOCATION).build(); DockerClient client = DockerClientBuilder.getInstance(config).build(); try { client.pingCmd().exec(); } catch (Exception e) { throw new InvalidConfigurationException("ping failed"); } LOGGER.info("Accessing docker with local Unix socket"); return config; } @Override public String getDescription() { return "local Unix socket (" + SOCKET_LOCATION + ")"; } }
package org.testcontainers.dockerclient; import com.github.dockerjava.api.DockerClient; import com.github.dockerjava.core.DockerClientBuilder; import com.github.dockerjava.core.DockerClientConfig; public class UnixSocketConfigurationStrategy implements DockerConfigurationStrategy { + public static final String SOCKET_LOCATION = "unix:///var/run/docker.sock"; + @Override public DockerClientConfig provideConfiguration() throws InvalidConfigurationException { - DockerClientConfig config = new DockerClientConfig.DockerClientConfigBuilder().withUri("unix:///var/run/docker.sock").build(); ? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + DockerClientConfig config = new DockerClientConfig.DockerClientConfigBuilder().withUri(SOCKET_LOCATION).build(); ? ^^^^^^^^^^^^^^^ DockerClient client = DockerClientBuilder.getInstance(config).build(); try { client.pingCmd().exec(); } catch (Exception e) { throw new InvalidConfigurationException("ping failed"); } - LOGGER.info("Access docker with unix local socker"); ? ----- ^ + LOGGER.info("Accessing docker with local Unix socket"); ? +++ +++++ ^ return config; } @Override public String getDescription() { - return "unix socket docker access"; + return "local Unix socket (" + SOCKET_LOCATION + ")"; } }
8
0.266667
5
3
663b547139cd48b231e8af55ef5ed5f1ec58a5f2
src/components/App.jsx
src/components/App.jsx
/* Главный компонент приложения */ import React from "react"; import MenuScreen from "./MenuScreen/MenuScreen.js"; import GameScreen from "./GameScreen/GameScreen.js"; import { connect } from "react-redux"; import {MENU_SCREEN, GAME_SCREEN} from "../actions/ScreenActions.js"; const App = React.createClass({ PropTypes: { currentScreen: React.PropTypes.string, gameGrid: React.PropTypes.array, victoryStatistics: React.PropTypes.object, buttonClickHandler: React.PropTypes.func.isRequired, cellClickHandler: React.PropTypes.func.isRequired }, renderScreen(screen) { switch(screen) { case GAME_SCREEN: return ( <GameScreen buttonClickHandler={this.props.buttonClickHandler} cellClickHandler={this.props.cellClickHandler} cellValues={this.props.gameGrid} victoryStatistics={this.props.victoryStatistics} />); case MENU_SCREEN: default: return <MenuScreen buttonClickHandler={this.props.buttonClickHandler} /> } }, render () { return this.renderScreen(this.props.currentScreen); } }); function select(state) { return { currentScreen: state.screen, gameGrid: state.game.gameGrid, victoryStatistics: state.game.victoryStatistics } } export default connect(select)(App);
/* Главный компонент приложения */ import React from "react"; import MenuScreen from "./MenuScreen/MenuScreen.js"; import GameScreen from "./GameScreen/GameScreen.js"; import { connect } from "react-redux"; import {MENU_SCREEN, GAME_SCREEN} from "../actions/ScreenActions.js"; const App = React.createClass({ PropTypes: { currentScreen: React.PropTypes.string, gameGrid: React.PropTypes.array, victoryStatistics: React.PropTypes.object }, renderScreen(screen) { switch(screen) { case GAME_SCREEN: return ( <GameScreen cellValues={this.props.gameGrid} dispatch={this.props.dispatch} victoryStatistics={this.props.victoryStatistics} />); case MENU_SCREEN: default: return <MenuScreen dispatch={this.props.dispatch}/> } }, render () { return this.renderScreen(this.props.currentScreen); } }); function select(state) { return { currentScreen: state.screen, gameGrid: state.game.gameGrid, victoryStatistics: state.game.victoryStatistics } } export default connect(select)(App);
Add dispatch methods to props of Menu and Game Screens
Add dispatch methods to props of Menu and Game Screens
JSX
mit
Lingvokot/Tic-Tac-Toe-React,Lingvokot/Tic-Tac-Toe-React,Lingvokot/Tic-Tac-Toe-React
jsx
## Code Before: /* Главный компонент приложения */ import React from "react"; import MenuScreen from "./MenuScreen/MenuScreen.js"; import GameScreen from "./GameScreen/GameScreen.js"; import { connect } from "react-redux"; import {MENU_SCREEN, GAME_SCREEN} from "../actions/ScreenActions.js"; const App = React.createClass({ PropTypes: { currentScreen: React.PropTypes.string, gameGrid: React.PropTypes.array, victoryStatistics: React.PropTypes.object, buttonClickHandler: React.PropTypes.func.isRequired, cellClickHandler: React.PropTypes.func.isRequired }, renderScreen(screen) { switch(screen) { case GAME_SCREEN: return ( <GameScreen buttonClickHandler={this.props.buttonClickHandler} cellClickHandler={this.props.cellClickHandler} cellValues={this.props.gameGrid} victoryStatistics={this.props.victoryStatistics} />); case MENU_SCREEN: default: return <MenuScreen buttonClickHandler={this.props.buttonClickHandler} /> } }, render () { return this.renderScreen(this.props.currentScreen); } }); function select(state) { return { currentScreen: state.screen, gameGrid: state.game.gameGrid, victoryStatistics: state.game.victoryStatistics } } export default connect(select)(App); ## Instruction: Add dispatch methods to props of Menu and Game Screens ## Code After: /* Главный компонент приложения */ import React from "react"; import MenuScreen from "./MenuScreen/MenuScreen.js"; import GameScreen from "./GameScreen/GameScreen.js"; import { connect } from "react-redux"; import {MENU_SCREEN, GAME_SCREEN} from "../actions/ScreenActions.js"; const App = React.createClass({ PropTypes: { currentScreen: React.PropTypes.string, gameGrid: React.PropTypes.array, victoryStatistics: React.PropTypes.object }, renderScreen(screen) { switch(screen) { case GAME_SCREEN: return ( <GameScreen cellValues={this.props.gameGrid} dispatch={this.props.dispatch} victoryStatistics={this.props.victoryStatistics} />); case MENU_SCREEN: default: return <MenuScreen dispatch={this.props.dispatch}/> } }, render () { return this.renderScreen(this.props.currentScreen); } }); function select(state) { return { currentScreen: state.screen, gameGrid: state.game.gameGrid, victoryStatistics: state.game.victoryStatistics } } export default connect(select)(App);
/* Главный компонент приложения */ import React from "react"; import MenuScreen from "./MenuScreen/MenuScreen.js"; import GameScreen from "./GameScreen/GameScreen.js"; import { connect } from "react-redux"; import {MENU_SCREEN, GAME_SCREEN} from "../actions/ScreenActions.js"; const App = React.createClass({ PropTypes: { currentScreen: React.PropTypes.string, gameGrid: React.PropTypes.array, - victoryStatistics: React.PropTypes.object, ? - + victoryStatistics: React.PropTypes.object - buttonClickHandler: React.PropTypes.func.isRequired, - cellClickHandler: React.PropTypes.func.isRequired }, renderScreen(screen) { switch(screen) { case GAME_SCREEN: return ( - <GameScreen buttonClickHandler={this.props.buttonClickHandler} - cellClickHandler={this.props.cellClickHandler} - cellValues={this.props.gameGrid} ? ^^^ + <GameScreen cellValues={this.props.gameGrid} ? ^^^^^^^^^^^ + dispatch={this.props.dispatch} victoryStatistics={this.props.victoryStatistics} />); case MENU_SCREEN: default: - return <MenuScreen buttonClickHandler={this.props.buttonClickHandler} /> + return <MenuScreen dispatch={this.props.dispatch}/> } }, render () { return this.renderScreen(this.props.currentScreen); } }); function select(state) { return { currentScreen: state.screen, gameGrid: state.game.gameGrid, victoryStatistics: state.game.victoryStatistics } } export default connect(select)(App);
11
0.234043
4
7
cd59609212bdaa7e47e5cd7706a5e5683b429a02
Docs/develWithRadium.md
Docs/develWithRadium.md
There are three main options to work with Radium: 1. Write a plugin: full access to the Radium data structures, perfect to implement a new fonctionality: mesh processing, rendering. 2. Write an application: give total control over the GUI, the camera settings, etc... 3. Contribute to Radium libraries: to improve/extend core components of Radium. ## Radium Plugin Tutorial here: https://github.com/AGGA-IRIT/Radium-PluginExample ## Radium Application Tutorial here: https://github.com/AGGA-IRIT/Radium-AppExample ## Radium libraries Direct contributions to master are closed. Please submit your pull request. ## Radium coding style Please follow the scripts/clang-format coding style (tested `with clang-format 6.0`). To use it, you have to copy or link `scripts/clang-format` to `.clang-format` (in Radium-Engine root dir). We also provide a pre commit hook that checks the commited files are correctly formated. To install both hooks and clang-format, simply run `./scripts/install-scripts-linux.sh` on linux, or adapt to your OS.
There are three main options to work with Radium: 1. Write a plugin: full access to the Radium data structures, perfect to implement a new fonctionality: mesh processing, rendering. 2. Write an application: give total control over the GUI, the camera settings, etc... 3. Contribute to Radium libraries: to improve/extend core components of Radium. ## Radium Plugin Tutorial here: https://github.com/STORM-IRIT/Radium-PluginExample ## Radium Application Tutorial here: https://github.com/STORM-IRIT/Radium-AppExample ## Radium libraries Direct contributions to master are closed. Please submit your pull request. ## Radium coding style Please follow the scripts/clang-format coding style (tested `with clang-format 6.0`). To use it, you have to copy or link `scripts/clang-format` to `.clang-format` (in Radium-Engine root dir). We also provide a pre commit hook that checks the commited files are correctly formated. To install both hooks and clang-format, simply run `./scripts/install-scripts-linux.sh` on linux, or adapt to your OS.
Update repository urls developer manual
[doc] Update repository urls developer manual [skip ci]
Markdown
bsd-3-clause
Zouch/Radium-Engine,AGGA-IRIT/Radium-Engine,AGGA-IRIT/Radium-Engine,Zouch/Radium-Engine
markdown
## Code Before: There are three main options to work with Radium: 1. Write a plugin: full access to the Radium data structures, perfect to implement a new fonctionality: mesh processing, rendering. 2. Write an application: give total control over the GUI, the camera settings, etc... 3. Contribute to Radium libraries: to improve/extend core components of Radium. ## Radium Plugin Tutorial here: https://github.com/AGGA-IRIT/Radium-PluginExample ## Radium Application Tutorial here: https://github.com/AGGA-IRIT/Radium-AppExample ## Radium libraries Direct contributions to master are closed. Please submit your pull request. ## Radium coding style Please follow the scripts/clang-format coding style (tested `with clang-format 6.0`). To use it, you have to copy or link `scripts/clang-format` to `.clang-format` (in Radium-Engine root dir). We also provide a pre commit hook that checks the commited files are correctly formated. To install both hooks and clang-format, simply run `./scripts/install-scripts-linux.sh` on linux, or adapt to your OS. ## Instruction: [doc] Update repository urls developer manual [skip ci] ## Code After: There are three main options to work with Radium: 1. Write a plugin: full access to the Radium data structures, perfect to implement a new fonctionality: mesh processing, rendering. 2. Write an application: give total control over the GUI, the camera settings, etc... 3. Contribute to Radium libraries: to improve/extend core components of Radium. ## Radium Plugin Tutorial here: https://github.com/STORM-IRIT/Radium-PluginExample ## Radium Application Tutorial here: https://github.com/STORM-IRIT/Radium-AppExample ## Radium libraries Direct contributions to master are closed. Please submit your pull request. ## Radium coding style Please follow the scripts/clang-format coding style (tested `with clang-format 6.0`). To use it, you have to copy or link `scripts/clang-format` to `.clang-format` (in Radium-Engine root dir). We also provide a pre commit hook that checks the commited files are correctly formated. To install both hooks and clang-format, simply run `./scripts/install-scripts-linux.sh` on linux, or adapt to your OS.
There are three main options to work with Radium: 1. Write a plugin: full access to the Radium data structures, perfect to implement a new fonctionality: mesh processing, rendering. 2. Write an application: give total control over the GUI, the camera settings, etc... 3. Contribute to Radium libraries: to improve/extend core components of Radium. ## Radium Plugin - Tutorial here: https://github.com/AGGA-IRIT/Radium-PluginExample ? ^^^^ + Tutorial here: https://github.com/STORM-IRIT/Radium-PluginExample ? ^^^^^ ## Radium Application - Tutorial here: https://github.com/AGGA-IRIT/Radium-AppExample ? ^^^^ + Tutorial here: https://github.com/STORM-IRIT/Radium-AppExample ? ^^^^^ ## Radium libraries Direct contributions to master are closed. Please submit your pull request. ## Radium coding style Please follow the scripts/clang-format coding style (tested `with clang-format 6.0`). To use it, you have to copy or link `scripts/clang-format` to `.clang-format` (in Radium-Engine root dir). We also provide a pre commit hook that checks the commited files are correctly formated. To install both hooks and clang-format, simply run `./scripts/install-scripts-linux.sh` on linux, or adapt to your OS.
4
0.190476
2
2
b2fecfe7982fccf7712e78e921fe35746ebb799c
app/styles/_modules/_m-partners.scss
app/styles/_modules/_m-partners.scss
@import '../variables'; .pwa-partners { &-title { font-family: 'Bitter'; font-size: $font-size-xl; font-weight: $font-weight-normal; margin: 0 auto; text-align: center; width: 30%; @media screen and (max-width: $media-screen-xxl) { width: 40%; } @media screen and (max-width: $media-screen-l) { width: 60%; } @media screen and (max-width: $media-screen-s) { width: 90%; } } &-list { list-style: none; margin-top: 2rem; text-align: center; } &-logo { $size: 7rem; background-color: darken($color-background-dark, 10%); border-radius: 50%; display: inline-block; height: $size; margin: 0 1vw; width: $size; @media screen and (max-width: $media-screen-s) { display: block; margin: 2rem auto; } } }
@import '../variables'; .pwa-partners { // Don't show this section for now display: none; &-title { font-family: 'Bitter'; font-size: $font-size-xl; font-weight: $font-weight-normal; margin: 0 auto; text-align: center; width: 30%; @media screen and (max-width: $media-screen-xxl) { width: 40%; } @media screen and (max-width: $media-screen-l) { width: 60%; } @media screen and (max-width: $media-screen-s) { width: 90%; } } &-list { list-style: none; margin-top: 2rem; text-align: center; } &-logo { $size: 7rem; background-color: darken($color-background-dark, 10%); border-radius: 50%; display: inline-block; height: $size; margin: 0 1vw; width: $size; @media screen and (max-width: $media-screen-s) { display: block; margin: 2rem auto; } } }
Hide partners section for now.
Hide partners section for now.
SCSS
mit
manifoldjs/manifoldjs-site,manifoldjs/manifoldjs-site,manifoldjs/manifoldjs-site
scss
## Code Before: @import '../variables'; .pwa-partners { &-title { font-family: 'Bitter'; font-size: $font-size-xl; font-weight: $font-weight-normal; margin: 0 auto; text-align: center; width: 30%; @media screen and (max-width: $media-screen-xxl) { width: 40%; } @media screen and (max-width: $media-screen-l) { width: 60%; } @media screen and (max-width: $media-screen-s) { width: 90%; } } &-list { list-style: none; margin-top: 2rem; text-align: center; } &-logo { $size: 7rem; background-color: darken($color-background-dark, 10%); border-radius: 50%; display: inline-block; height: $size; margin: 0 1vw; width: $size; @media screen and (max-width: $media-screen-s) { display: block; margin: 2rem auto; } } } ## Instruction: Hide partners section for now. ## Code After: @import '../variables'; .pwa-partners { // Don't show this section for now display: none; &-title { font-family: 'Bitter'; font-size: $font-size-xl; font-weight: $font-weight-normal; margin: 0 auto; text-align: center; width: 30%; @media screen and (max-width: $media-screen-xxl) { width: 40%; } @media screen and (max-width: $media-screen-l) { width: 60%; } @media screen and (max-width: $media-screen-s) { width: 90%; } } &-list { list-style: none; margin-top: 2rem; text-align: center; } &-logo { $size: 7rem; background-color: darken($color-background-dark, 10%); border-radius: 50%; display: inline-block; height: $size; margin: 0 1vw; width: $size; @media screen and (max-width: $media-screen-s) { display: block; margin: 2rem auto; } } }
@import '../variables'; .pwa-partners { + // Don't show this section for now + display: none; + &-title { font-family: 'Bitter'; font-size: $font-size-xl; font-weight: $font-weight-normal; margin: 0 auto; text-align: center; width: 30%; @media screen and (max-width: $media-screen-xxl) { width: 40%; } @media screen and (max-width: $media-screen-l) { width: 60%; } @media screen and (max-width: $media-screen-s) { width: 90%; } } &-list { list-style: none; margin-top: 2rem; text-align: center; } &-logo { $size: 7rem; background-color: darken($color-background-dark, 10%); border-radius: 50%; display: inline-block; height: $size; margin: 0 1vw; width: $size; @media screen and (max-width: $media-screen-s) { display: block; margin: 2rem auto; } } }
3
0.066667
3
0
68046b638b5d2a9d9a0c9c588a6c2b833442e01b
plinth/modules/ikiwiki/forms.py
plinth/modules/ikiwiki/forms.py
from django import forms from django.utils.translation import ugettext_lazy as _ class IkiwikiCreateForm(forms.Form): """Form to create a wiki or blog.""" site_type = forms.ChoiceField( label=_('Type'), choices=[('wiki', 'Wiki'), ('blog', 'Blog')]) name = forms.CharField(label=_('Name')) admin_name = forms.CharField(label=_('Admin Account Name')) admin_password = forms.CharField( label=_('Admin Account Password'), widget=forms.PasswordInput())
from django import forms from django.utils.translation import ugettext_lazy as _ from django.core.validators import RegexValidator class IkiwikiCreateForm(forms.Form): """Form to create a wiki or blog.""" site_type = forms.ChoiceField( label=_('Type'), choices=[('wiki', 'Wiki'), ('blog', 'Blog')]) name = forms.CharField(label=_('Name'), validators=[RegexValidator(regex='^[a-zA-Z0-9]+$')]) admin_name = forms.CharField(label=_('Admin Account Name')) admin_password = forms.CharField( label=_('Admin Account Password'), widget=forms.PasswordInput())
Allow only alphanumerics in wiki/blog name
ikiwiki: Allow only alphanumerics in wiki/blog name
Python
agpl-3.0
harry-7/Plinth,kkampardi/Plinth,freedomboxtwh/Plinth,vignanl/Plinth,kkampardi/Plinth,harry-7/Plinth,kkampardi/Plinth,vignanl/Plinth,vignanl/Plinth,vignanl/Plinth,kkampardi/Plinth,vignanl/Plinth,freedomboxtwh/Plinth,freedomboxtwh/Plinth,freedomboxtwh/Plinth,harry-7/Plinth,freedomboxtwh/Plinth,harry-7/Plinth,harry-7/Plinth,kkampardi/Plinth
python
## Code Before: from django import forms from django.utils.translation import ugettext_lazy as _ class IkiwikiCreateForm(forms.Form): """Form to create a wiki or blog.""" site_type = forms.ChoiceField( label=_('Type'), choices=[('wiki', 'Wiki'), ('blog', 'Blog')]) name = forms.CharField(label=_('Name')) admin_name = forms.CharField(label=_('Admin Account Name')) admin_password = forms.CharField( label=_('Admin Account Password'), widget=forms.PasswordInput()) ## Instruction: ikiwiki: Allow only alphanumerics in wiki/blog name ## Code After: from django import forms from django.utils.translation import ugettext_lazy as _ from django.core.validators import RegexValidator class IkiwikiCreateForm(forms.Form): """Form to create a wiki or blog.""" site_type = forms.ChoiceField( label=_('Type'), choices=[('wiki', 'Wiki'), ('blog', 'Blog')]) name = forms.CharField(label=_('Name'), validators=[RegexValidator(regex='^[a-zA-Z0-9]+$')]) admin_name = forms.CharField(label=_('Admin Account Name')) admin_password = forms.CharField( label=_('Admin Account Password'), widget=forms.PasswordInput())
from django import forms from django.utils.translation import ugettext_lazy as _ + from django.core.validators import RegexValidator class IkiwikiCreateForm(forms.Form): """Form to create a wiki or blog.""" site_type = forms.ChoiceField( label=_('Type'), choices=[('wiki', 'Wiki'), ('blog', 'Blog')]) - name = forms.CharField(label=_('Name')) ? ^ + name = forms.CharField(label=_('Name'), ? ^ + validators=[RegexValidator(regex='^[a-zA-Z0-9]+$')]) admin_name = forms.CharField(label=_('Admin Account Name')) admin_password = forms.CharField( label=_('Admin Account Password'), widget=forms.PasswordInput())
4
0.222222
3
1
bd88f73aa7a32ac8fbfee7b1ab1cc90f82b158c2
lib/promise.js
lib/promise.js
// Wraps any value with promise. Not very useful on its own, used internally // by deferred.js 'use strict'; var curry = require('es5-ext/lib/Function/curry').call , isFunction = require('es5-ext/lib/Function/is-function') , noop = require('es5-ext/lib/Function/noop') , sequence = require('es5-ext/lib/Function/sequence').call , isPromise = require('./is-promise') , deferred, then, throwError, end; then = function (value, ignore, callback) { var d = deferred(); setTimeout(callback ? sequence(curry(callback, value), d.resolve) : d.resolve.bind(d, value), 0); return d.promise; }; throwError = function () { throw this; }; end = function (handler) { setTimeout( isFunction(handler) ? curry(handler, this) : throwError.bind(this), 0); }; module.exports = function (value) { var r; if (isPromise(value)) { return value; } else if (value instanceof Error) { r = curry(then, value); r.end = end.bind(value); } else { r = curry(then, value, null); r.end = noop; } return r.then = r; }; deferred = require('./deferred');
// Wraps any value with promise. Not very useful on its own, used internally // by deferred.js 'use strict'; var curry = require('es5-ext/lib/Function/curry').call , isFunction = require('es5-ext/lib/Function/is-function') , noop = require('es5-ext/lib/Function/noop') , sequence = require('es5-ext/lib/Function/sequence').call , nextTick = require('clock/lib/next-tick') , isPromise = require('./is-promise') , deferred, then, throwError, end; then = function (value, ignore, callback) { var d = deferred(); nextTick(callback ? sequence(curry(callback, value), d.resolve) : d.resolve.bind(d, value)); return d.promise; }; throwError = function () { throw this; }; end = function (handler) { nextTick( isFunction(handler) ? curry(handler, this) : throwError.bind(this)); }; module.exports = function (value) { var r; if (isPromise(value)) { return value; } else if (value instanceof Error) { r = curry(then, value); r.end = end.bind(value); } else { r = curry(then, value, null); r.end = noop; } return r.then = r; }; deferred = require('./deferred');
Use process.nextTick instead of setTimeout if available
Use process.nextTick instead of setTimeout if available
JavaScript
isc
medikoo/deferred
javascript
## Code Before: // Wraps any value with promise. Not very useful on its own, used internally // by deferred.js 'use strict'; var curry = require('es5-ext/lib/Function/curry').call , isFunction = require('es5-ext/lib/Function/is-function') , noop = require('es5-ext/lib/Function/noop') , sequence = require('es5-ext/lib/Function/sequence').call , isPromise = require('./is-promise') , deferred, then, throwError, end; then = function (value, ignore, callback) { var d = deferred(); setTimeout(callback ? sequence(curry(callback, value), d.resolve) : d.resolve.bind(d, value), 0); return d.promise; }; throwError = function () { throw this; }; end = function (handler) { setTimeout( isFunction(handler) ? curry(handler, this) : throwError.bind(this), 0); }; module.exports = function (value) { var r; if (isPromise(value)) { return value; } else if (value instanceof Error) { r = curry(then, value); r.end = end.bind(value); } else { r = curry(then, value, null); r.end = noop; } return r.then = r; }; deferred = require('./deferred'); ## Instruction: Use process.nextTick instead of setTimeout if available ## Code After: // Wraps any value with promise. Not very useful on its own, used internally // by deferred.js 'use strict'; var curry = require('es5-ext/lib/Function/curry').call , isFunction = require('es5-ext/lib/Function/is-function') , noop = require('es5-ext/lib/Function/noop') , sequence = require('es5-ext/lib/Function/sequence').call , nextTick = require('clock/lib/next-tick') , isPromise = require('./is-promise') , deferred, then, throwError, end; then = function (value, ignore, callback) { var d = deferred(); nextTick(callback ? sequence(curry(callback, value), d.resolve) : d.resolve.bind(d, value)); return d.promise; }; throwError = function () { throw this; }; end = function (handler) { nextTick( isFunction(handler) ? curry(handler, this) : throwError.bind(this)); }; module.exports = function (value) { var r; if (isPromise(value)) { return value; } else if (value instanceof Error) { r = curry(then, value); r.end = end.bind(value); } else { r = curry(then, value, null); r.end = noop; } return r.then = r; }; deferred = require('./deferred');
// Wraps any value with promise. Not very useful on its own, used internally // by deferred.js 'use strict'; var curry = require('es5-ext/lib/Function/curry').call , isFunction = require('es5-ext/lib/Function/is-function') , noop = require('es5-ext/lib/Function/noop') , sequence = require('es5-ext/lib/Function/sequence').call + , nextTick = require('clock/lib/next-tick') , isPromise = require('./is-promise') , deferred, then, throwError, end; then = function (value, ignore, callback) { var d = deferred(); - setTimeout(callback ? ? ^ ^^^^^ + nextTick(callback ? ? ^ + ^^ sequence(curry(callback, value), d.resolve) : - d.resolve.bind(d, value), 0); ? --- + d.resolve.bind(d, value)); return d.promise; }; throwError = function () { throw this; }; end = function (handler) { - setTimeout( + nextTick( - isFunction(handler) ? curry(handler, this) : throwError.bind(this), 0); ? --- + isFunction(handler) ? curry(handler, this) : throwError.bind(this)); }; module.exports = function (value) { var r; if (isPromise(value)) { return value; } else if (value instanceof Error) { r = curry(then, value); r.end = end.bind(value); } else { r = curry(then, value, null); r.end = noop; } return r.then = r; }; deferred = require('./deferred');
9
0.195652
5
4
4067a3a13f058787a7e8226f603f38b67660fdf4
metadata/pt.joaomneto.titancompanion.txt
metadata/pt.joaomneto.titancompanion.txt
Categories:Games License:LGPL-3.0-only Web Site: Source Code:https://github.com/joaomneto/TitanCompanion Issue Tracker:https://github.com/joaomneto/TitanCompanion/issues Auto Name:Titan Companion Summary:Stat sheet and rules engine for all Fighting Fantasy gamebooks Description: The main objective of this app is to allow the reader to fully immerse himself into the story and even to give some portability to the gamebooks. You can read in the coffee shop, in the bus or at the beach, and save your progress at any moment to resume later on. Features: * Stat sheets for all Fighting Fantasy gamebooks * Generic dice rolls * Skill, Luck and other gamebook specific tests * Combat engine for standard and gamebook specific rules * Equipment and Note list * Save and Load feature with current gamebook paragraph . Repo Type:git Repo:https://github.com/joaomneto/TitanCompanion.git Build:v60-beta,60 commit=v60-beta gradle=yes Auto Update Mode:Version %v Update Check Mode:Tags Current Version:v60-beta Current Version Code:60
Categories:Games License:LGPL-3.0-only Web Site: Source Code:https://github.com/joaomneto/TitanCompanion Issue Tracker:https://github.com/joaomneto/TitanCompanion/issues Changelog:https://github.com/joaomneto/TitanCompanion/releases Auto Name:Titan Companion Summary:Stat sheet and rules engine for all Fighting Fantasy gamebooks Description: The main objective of this app is to allow the reader to fully immerse himself into the story and even to give some portability to the gamebooks. You can read in the coffee shop, in the bus or at the beach, and save your progress at any moment to resume later on. Features: * Stat sheets for all Fighting Fantasy gamebooks * Generic dice rolls * Skill, Luck and other gamebook specific tests * Combat engine for standard and gamebook specific rules * Equipment and Note list * Save and Load feature with current gamebook paragraph . Repo Type:git Repo:https://github.com/joaomneto/TitanCompanion.git Build:v60-beta,60 commit=v60-beta gradle=yes Auto Update Mode:Version %v Update Check Mode:Tags Current Version:v60-beta Current Version Code:60
Add changelog to Titan Companion
Add changelog to Titan Companion
Text
agpl-3.0
f-droid/fdroiddata,f-droid/fdroid-data,f-droid/fdroiddata
text
## Code Before: Categories:Games License:LGPL-3.0-only Web Site: Source Code:https://github.com/joaomneto/TitanCompanion Issue Tracker:https://github.com/joaomneto/TitanCompanion/issues Auto Name:Titan Companion Summary:Stat sheet and rules engine for all Fighting Fantasy gamebooks Description: The main objective of this app is to allow the reader to fully immerse himself into the story and even to give some portability to the gamebooks. You can read in the coffee shop, in the bus or at the beach, and save your progress at any moment to resume later on. Features: * Stat sheets for all Fighting Fantasy gamebooks * Generic dice rolls * Skill, Luck and other gamebook specific tests * Combat engine for standard and gamebook specific rules * Equipment and Note list * Save and Load feature with current gamebook paragraph . Repo Type:git Repo:https://github.com/joaomneto/TitanCompanion.git Build:v60-beta,60 commit=v60-beta gradle=yes Auto Update Mode:Version %v Update Check Mode:Tags Current Version:v60-beta Current Version Code:60 ## Instruction: Add changelog to Titan Companion ## Code After: Categories:Games License:LGPL-3.0-only Web Site: Source Code:https://github.com/joaomneto/TitanCompanion Issue Tracker:https://github.com/joaomneto/TitanCompanion/issues Changelog:https://github.com/joaomneto/TitanCompanion/releases Auto Name:Titan Companion Summary:Stat sheet and rules engine for all Fighting Fantasy gamebooks Description: The main objective of this app is to allow the reader to fully immerse himself into the story and even to give some portability to the gamebooks. You can read in the coffee shop, in the bus or at the beach, and save your progress at any moment to resume later on. Features: * Stat sheets for all Fighting Fantasy gamebooks * Generic dice rolls * Skill, Luck and other gamebook specific tests * Combat engine for standard and gamebook specific rules * Equipment and Note list * Save and Load feature with current gamebook paragraph . Repo Type:git Repo:https://github.com/joaomneto/TitanCompanion.git Build:v60-beta,60 commit=v60-beta gradle=yes Auto Update Mode:Version %v Update Check Mode:Tags Current Version:v60-beta Current Version Code:60
Categories:Games License:LGPL-3.0-only Web Site: Source Code:https://github.com/joaomneto/TitanCompanion Issue Tracker:https://github.com/joaomneto/TitanCompanion/issues + Changelog:https://github.com/joaomneto/TitanCompanion/releases Auto Name:Titan Companion Summary:Stat sheet and rules engine for all Fighting Fantasy gamebooks Description: The main objective of this app is to allow the reader to fully immerse himself into the story and even to give some portability to the gamebooks. You can read in the coffee shop, in the bus or at the beach, and save your progress at any moment to resume later on. Features: * Stat sheets for all Fighting Fantasy gamebooks * Generic dice rolls * Skill, Luck and other gamebook specific tests * Combat engine for standard and gamebook specific rules * Equipment and Note list * Save and Load feature with current gamebook paragraph . Repo Type:git Repo:https://github.com/joaomneto/TitanCompanion.git Build:v60-beta,60 commit=v60-beta gradle=yes Auto Update Mode:Version %v Update Check Mode:Tags Current Version:v60-beta Current Version Code:60
1
0.028571
1
0
e066eae6bb0f9d555a53f9ee2901c77ffebd3647
tracer/cachemanager/cachemanager.py
tracer/cachemanager/cachemanager.py
import pickle import claripy import logging from ..simprocedures import receive l = logging.getLogger("tracer.cachemanager.CacheManager") class CacheManager(object): def __init__(self): self.tracer = None def set_tracer(self, tracer): self.tracer = tracer def cacher(self, simstate): raise NotImplementedError("subclasses must implement this method") def cache_lookup(self): raise NotImplementedError("subclasses must implement this method") def _prepare_cache_data(self, simstate): state = self.tracer.previous.state ds = None try: ds = pickle.dumps((self.tracer.bb_cnt - 1, self.tracer.cgc_flag_bytes, state, claripy.ast.base.var_counter), pickle.HIGHEST_PROTOCOL) except RuntimeError as e: # maximum recursion depth can be reached here l.error("unable to cache state, '%s' during pickling", e.message) # unhook receive receive.cache_hook = None # add preconstraints to tracer self.tracer._preconstrain_state(simstate) return ds
import pickle import claripy import logging from ..simprocedures import receive l = logging.getLogger("tracer.cachemanager.CacheManager") class CacheManager(object): def __init__(self): self.tracer = None def set_tracer(self, tracer): self.tracer = tracer def cacher(self, simstate): raise NotImplementedError("subclasses must implement this method") def cache_lookup(self): raise NotImplementedError("subclasses must implement this method") def _prepare_cache_data(self, simstate): if self.tracer.previous != None: state = self.tracer.previous.state else: state = None ds = None try: ds = pickle.dumps((self.tracer.bb_cnt - 1, self.tracer.cgc_flag_bytes, state, claripy.ast.base.var_counter), pickle.HIGHEST_PROTOCOL) except RuntimeError as e: # maximum recursion depth can be reached here l.error("unable to cache state, '%s' during pickling", e.message) # unhook receive receive.cache_hook = None # add preconstraints to tracer self.tracer._preconstrain_state(simstate) return ds
Fix a bug in the cache manager
Fix a bug in the cache manager It is possible that the previous state is None
Python
bsd-2-clause
schieb/angr,schieb/angr,angr/angr,angr/angr,tyb0807/angr,iamahuman/angr,f-prettyland/angr,tyb0807/angr,iamahuman/angr,iamahuman/angr,tyb0807/angr,angr/angr,schieb/angr,angr/tracer,f-prettyland/angr,f-prettyland/angr
python
## Code Before: import pickle import claripy import logging from ..simprocedures import receive l = logging.getLogger("tracer.cachemanager.CacheManager") class CacheManager(object): def __init__(self): self.tracer = None def set_tracer(self, tracer): self.tracer = tracer def cacher(self, simstate): raise NotImplementedError("subclasses must implement this method") def cache_lookup(self): raise NotImplementedError("subclasses must implement this method") def _prepare_cache_data(self, simstate): state = self.tracer.previous.state ds = None try: ds = pickle.dumps((self.tracer.bb_cnt - 1, self.tracer.cgc_flag_bytes, state, claripy.ast.base.var_counter), pickle.HIGHEST_PROTOCOL) except RuntimeError as e: # maximum recursion depth can be reached here l.error("unable to cache state, '%s' during pickling", e.message) # unhook receive receive.cache_hook = None # add preconstraints to tracer self.tracer._preconstrain_state(simstate) return ds ## Instruction: Fix a bug in the cache manager It is possible that the previous state is None ## Code After: import pickle import claripy import logging from ..simprocedures import receive l = logging.getLogger("tracer.cachemanager.CacheManager") class CacheManager(object): def __init__(self): self.tracer = None def set_tracer(self, tracer): self.tracer = tracer def cacher(self, simstate): raise NotImplementedError("subclasses must implement this method") def cache_lookup(self): raise NotImplementedError("subclasses must implement this method") def _prepare_cache_data(self, simstate): if self.tracer.previous != None: state = self.tracer.previous.state else: state = None ds = None try: ds = pickle.dumps((self.tracer.bb_cnt - 1, self.tracer.cgc_flag_bytes, state, claripy.ast.base.var_counter), pickle.HIGHEST_PROTOCOL) except RuntimeError as e: # maximum recursion depth can be reached here l.error("unable to cache state, '%s' during pickling", e.message) # unhook receive receive.cache_hook = None # add preconstraints to tracer self.tracer._preconstrain_state(simstate) return ds
import pickle import claripy import logging from ..simprocedures import receive l = logging.getLogger("tracer.cachemanager.CacheManager") class CacheManager(object): def __init__(self): self.tracer = None def set_tracer(self, tracer): self.tracer = tracer def cacher(self, simstate): raise NotImplementedError("subclasses must implement this method") def cache_lookup(self): raise NotImplementedError("subclasses must implement this method") def _prepare_cache_data(self, simstate): + if self.tracer.previous != None: - state = self.tracer.previous.state + state = self.tracer.previous.state ? ++++ + else: + state = None ds = None try: ds = pickle.dumps((self.tracer.bb_cnt - 1, self.tracer.cgc_flag_bytes, state, claripy.ast.base.var_counter), pickle.HIGHEST_PROTOCOL) except RuntimeError as e: # maximum recursion depth can be reached here l.error("unable to cache state, '%s' during pickling", e.message) # unhook receive receive.cache_hook = None # add preconstraints to tracer self.tracer._preconstrain_state(simstate) return ds
5
0.131579
4
1
b208c492b28bc87e6bd5abfc456c2259b36d409e
list.js
list.js
/* vim:set ts=2 sw=2 sts=2 expandtab */ /*jshint asi: true undef: true es5: true node: true browser: true devel: true forin: true latedef: false globalstrict: true */ 'use strict'; var sequence = require('./sequence'), isEmpty = sequence.isEmpty, count = sequence.count, first = sequence.first, rest = sequence.rest, cons = sequence.cons, make = sequence.make, empty = sequence.empty function List() {} List.prototype.length = 0 List.prototype.toString = function() { var value = '', tail = this; while (!isEmpty(tail)) { value = value + ' ' + first(tail) tail = rest(tail) } return '(' + value.substr(1) + ')' } count.define(List, function(list) { return list.length }) first.define(List, function(list) { return list.head }) rest.define(List, function(list) { return list.tail }) make.define(List, function(tail, head) { return new List(head, tail) }) function list() { var items = arguments, count = items.length, tail = empty while (count--) tail = cons(items[count], tail) return tail } exports.list = list
/* vim:set ts=2 sw=2 sts=2 expandtab */ /*jshint asi: true undef: true es5: true node: true browser: true devel: true forin: true latedef: false globalstrict: true */ 'use strict'; var sequence = require('./sequence'), isEmpty = sequence.isEmpty, count = sequence.count, first = sequence.first, rest = sequence.rest, cons = sequence.cons, make = sequence.make, empty = sequence.empty function List(head, tail) { this.head = head this.tail = tail || empty this.length = count(tail) + 1 } List.prototype.length = 0 List.prototype.toString = function() { var value = '', tail = this; while (!isEmpty(tail)) { value = value + ' ' + first(tail) tail = rest(tail) } return '(' + value.substr(1) + ')' } exports.List = List count.define(List, function(list) { return list.length }) first.define(List, function(list) { return list.head }) rest.define(List, function(list) { return list.tail }) make.define(List, function(tail, head) { return new List(head, tail) }) function list() { var items = arguments, count = items.length, tail = empty while (count--) tail = cons(items[count], tail) return tail } exports.list = list
Change `List` so that it sets it's head, tail and `length` properties & export it from module.
Change `List` so that it sets it's head, tail and `length` properties & export it from module.
JavaScript
mit
Gozala/reducers
javascript
## Code Before: /* vim:set ts=2 sw=2 sts=2 expandtab */ /*jshint asi: true undef: true es5: true node: true browser: true devel: true forin: true latedef: false globalstrict: true */ 'use strict'; var sequence = require('./sequence'), isEmpty = sequence.isEmpty, count = sequence.count, first = sequence.first, rest = sequence.rest, cons = sequence.cons, make = sequence.make, empty = sequence.empty function List() {} List.prototype.length = 0 List.prototype.toString = function() { var value = '', tail = this; while (!isEmpty(tail)) { value = value + ' ' + first(tail) tail = rest(tail) } return '(' + value.substr(1) + ')' } count.define(List, function(list) { return list.length }) first.define(List, function(list) { return list.head }) rest.define(List, function(list) { return list.tail }) make.define(List, function(tail, head) { return new List(head, tail) }) function list() { var items = arguments, count = items.length, tail = empty while (count--) tail = cons(items[count], tail) return tail } exports.list = list ## Instruction: Change `List` so that it sets it's head, tail and `length` properties & export it from module. ## Code After: /* vim:set ts=2 sw=2 sts=2 expandtab */ /*jshint asi: true undef: true es5: true node: true browser: true devel: true forin: true latedef: false globalstrict: true */ 'use strict'; var sequence = require('./sequence'), isEmpty = sequence.isEmpty, count = sequence.count, first = sequence.first, rest = sequence.rest, cons = sequence.cons, make = sequence.make, empty = sequence.empty function List(head, tail) { this.head = head this.tail = tail || empty this.length = count(tail) + 1 } List.prototype.length = 0 List.prototype.toString = function() { var value = '', tail = this; while (!isEmpty(tail)) { value = value + ' ' + first(tail) tail = rest(tail) } return '(' + value.substr(1) + ')' } exports.List = List count.define(List, function(list) { return list.length }) first.define(List, function(list) { return list.head }) rest.define(List, function(list) { return list.tail }) make.define(List, function(tail, head) { return new List(head, tail) }) function list() { var items = arguments, count = items.length, tail = empty while (count--) tail = cons(items[count], tail) return tail } exports.list = list
/* vim:set ts=2 sw=2 sts=2 expandtab */ /*jshint asi: true undef: true es5: true node: true browser: true devel: true forin: true latedef: false globalstrict: true */ 'use strict'; var sequence = require('./sequence'), isEmpty = sequence.isEmpty, count = sequence.count, first = sequence.first, rest = sequence.rest, cons = sequence.cons, make = sequence.make, empty = sequence.empty - function List() {} ? - + function List(head, tail) { ? ++++++++++ + this.head = head + this.tail = tail || empty + this.length = count(tail) + 1 + } List.prototype.length = 0 List.prototype.toString = function() { var value = '', tail = this; while (!isEmpty(tail)) { value = value + ' ' + first(tail) tail = rest(tail) } return '(' + value.substr(1) + ')' } + exports.List = List count.define(List, function(list) { return list.length }) first.define(List, function(list) { return list.head }) rest.define(List, function(list) { return list.tail }) make.define(List, function(tail, head) { return new List(head, tail) }) function list() { var items = arguments, count = items.length, tail = empty while (count--) tail = cons(items[count], tail) return tail } exports.list = list
7
0.212121
6
1
2048d57635a41b7cf8f09e8dfefc942135c67152
config.ru
config.ru
require 'rack' require 'rack/contrib/try_static' # Serve files from the build directory use Rack::TryStatic, root: 'build', urls: %w[/], try: ['.html', 'index.html', '/index.html'] run lambda { |env| [ 404, { 'Content-Type' => 'text/html'}, [ "404 Not Found" ]] }
require 'rack' require 'rack/contrib/try_static' # "restrict" access for now use Rack::Auth::Basic, "Restricted Area" do |username, password| [username, password] == [ENV['AUTH_USERNAME'], ENV['AUTH_PASSWORD']] end # Serve files from the build directory use Rack::TryStatic, root: 'build', urls: %w[/], try: ['.html', 'index.html', '/index.html'] run lambda { |env| [ 404, { 'Content-Type' => 'text/html'}, [ "404 Not Found" ]] }
Use HTTP auth to restrict access
Use HTTP auth to restrict access We need this because we can't use the font & crown on non-gov.uk pages. The username/password are the default pseudo-secret GDS-username/password combo.
Ruby
mit
alphagov/govuk-developer-docs,alphagov/govuk-developer-docs,alphagov/govuk-developer-docs,alphagov/govuk-developer-docs
ruby
## Code Before: require 'rack' require 'rack/contrib/try_static' # Serve files from the build directory use Rack::TryStatic, root: 'build', urls: %w[/], try: ['.html', 'index.html', '/index.html'] run lambda { |env| [ 404, { 'Content-Type' => 'text/html'}, [ "404 Not Found" ]] } ## Instruction: Use HTTP auth to restrict access We need this because we can't use the font & crown on non-gov.uk pages. The username/password are the default pseudo-secret GDS-username/password combo. ## Code After: require 'rack' require 'rack/contrib/try_static' # "restrict" access for now use Rack::Auth::Basic, "Restricted Area" do |username, password| [username, password] == [ENV['AUTH_USERNAME'], ENV['AUTH_PASSWORD']] end # Serve files from the build directory use Rack::TryStatic, root: 'build', urls: %w[/], try: ['.html', 'index.html', '/index.html'] run lambda { |env| [ 404, { 'Content-Type' => 'text/html'}, [ "404 Not Found" ]] }
require 'rack' require 'rack/contrib/try_static' + + # "restrict" access for now + use Rack::Auth::Basic, "Restricted Area" do |username, password| + [username, password] == [ENV['AUTH_USERNAME'], ENV['AUTH_PASSWORD']] + end # Serve files from the build directory use Rack::TryStatic, root: 'build', urls: %w[/], try: ['.html', 'index.html', '/index.html'] run lambda { |env| [ 404, { 'Content-Type' => 'text/html'}, [ "404 Not Found" ]] }
5
0.416667
5
0
cb21298aa4921560ec9a69a349b37f60efea4fb5
app/routes/dashboard/group-manager/index.js
app/routes/dashboard/group-manager/index.js
import Ember from 'ember'; import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin'; export default Ember.Route.extend(AuthenticatedRouteMixin, { currentUser: Ember.inject.service('current-user'), model: function() { return this.get('store').query('member', { 'person__user': this.get('currentUser.user.id'), 'is_admin': true, 'status__gte': '0', 'page_size': 100, }); }, });
import Ember from 'ember'; import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin'; export default Ember.Route.extend(AuthenticatedRouteMixin, { currentUser: Ember.inject.service('current-user'), model: function() { let user = this.get('currentUser.user.id').then((data) => data); return this.get('store').query('member', { 'person__user': user, 'is_admin': true, 'status__gte': '0', 'page_size': 100, }); }, });
Make user on Group Manager thennable
Make user on Group Manager thennable
JavaScript
bsd-2-clause
barberscore/barberscore-web,barberscore/barberscore-web,barberscore/barberscore-web
javascript
## Code Before: import Ember from 'ember'; import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin'; export default Ember.Route.extend(AuthenticatedRouteMixin, { currentUser: Ember.inject.service('current-user'), model: function() { return this.get('store').query('member', { 'person__user': this.get('currentUser.user.id'), 'is_admin': true, 'status__gte': '0', 'page_size': 100, }); }, }); ## Instruction: Make user on Group Manager thennable ## Code After: import Ember from 'ember'; import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin'; export default Ember.Route.extend(AuthenticatedRouteMixin, { currentUser: Ember.inject.service('current-user'), model: function() { let user = this.get('currentUser.user.id').then((data) => data); return this.get('store').query('member', { 'person__user': user, 'is_admin': true, 'status__gte': '0', 'page_size': 100, }); }, });
import Ember from 'ember'; import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin'; export default Ember.Route.extend(AuthenticatedRouteMixin, { currentUser: Ember.inject.service('current-user'), model: function() { + let user = this.get('currentUser.user.id').then((data) => data); return this.get('store').query('member', { - 'person__user': this.get('currentUser.user.id'), + 'person__user': user, 'is_admin': true, 'status__gte': '0', 'page_size': 100, }); }, });
3
0.214286
2
1
a2add9b6d438ad3b111d60df580428dbf53b6741
src/main/webapp/workspace/workspace.css
src/main/webapp/workspace/workspace.css
html { height: 100%; width: 100%; } body { margin: 0px; height: 100%; width: 100%; overflow: hidden; background-color: #333333; } #firepad-container { height: 100%; width: 100%; flex: 1; } .column { height: 100%; width: 100%; display: flex; flex-direction: column; } .tabs-container { float: left; overflow: scroll; } .tab { border: none; height: 30px; color: #b5b5b5; float: left; padding: 10px 8px; display: flex; align-items: center; border-right-style: solid; border-color: #1e1e1e; border-width: 1px; } .active-tab { background-color: #1e1e1e; } .inactive-tab { background-color: #333333; } .tab:hover { background-color: #555555; }
html { height: 100%; width: 100%; } body { margin: 0px; height: 100%; width: 100%; overflow: hidden; background-color: #333333; } #firepad-container { height: 100%; width: 100%; flex: 1; } .column { height: 100%; width: 100%; display: flex; flex-direction: column; } .tabs-container { float: left; overflow: scroll; } .tab { border: none; height: 30px; color: #b5b5b5; float: left; padding: 10px 8px; display: flex; align-items: center; border-right-style: solid; border-color: #1e1e1e; border-width: 1px; } .active-tab { background-color: #1e1e1e; } .inactive-tab { background-color: #333333; } .tab:hover { background-color: #555555; } .tab:focus { outline: none; }
Remove outline from tabs after they are clicked
Remove outline from tabs after they are clicked
CSS
apache-2.0
googleinterns/step87-2020,googleinterns/step87-2020,googleinterns/step87-2020,googleinterns/step87-2020
css
## Code Before: html { height: 100%; width: 100%; } body { margin: 0px; height: 100%; width: 100%; overflow: hidden; background-color: #333333; } #firepad-container { height: 100%; width: 100%; flex: 1; } .column { height: 100%; width: 100%; display: flex; flex-direction: column; } .tabs-container { float: left; overflow: scroll; } .tab { border: none; height: 30px; color: #b5b5b5; float: left; padding: 10px 8px; display: flex; align-items: center; border-right-style: solid; border-color: #1e1e1e; border-width: 1px; } .active-tab { background-color: #1e1e1e; } .inactive-tab { background-color: #333333; } .tab:hover { background-color: #555555; } ## Instruction: Remove outline from tabs after they are clicked ## Code After: html { height: 100%; width: 100%; } body { margin: 0px; height: 100%; width: 100%; overflow: hidden; background-color: #333333; } #firepad-container { height: 100%; width: 100%; flex: 1; } .column { height: 100%; width: 100%; display: flex; flex-direction: column; } .tabs-container { float: left; overflow: scroll; } .tab { border: none; height: 30px; color: #b5b5b5; float: left; padding: 10px 8px; display: flex; align-items: center; border-right-style: solid; border-color: #1e1e1e; border-width: 1px; } .active-tab { background-color: #1e1e1e; } .inactive-tab { background-color: #333333; } .tab:hover { background-color: #555555; } .tab:focus { outline: none; }
html { height: 100%; width: 100%; } body { margin: 0px; height: 100%; width: 100%; overflow: hidden; background-color: #333333; } #firepad-container { height: 100%; width: 100%; flex: 1; } .column { height: 100%; width: 100%; display: flex; flex-direction: column; } .tabs-container { float: left; overflow: scroll; } .tab { border: none; height: 30px; color: #b5b5b5; float: left; padding: 10px 8px; display: flex; align-items: center; border-right-style: solid; border-color: #1e1e1e; border-width: 1px; } .active-tab { background-color: #1e1e1e; } .inactive-tab { background-color: #333333; } .tab:hover { background-color: #555555; } + + .tab:focus { + outline: none; + }
4
0.071429
4
0
352ab7fa385835bd68b42eb60a5b149bcfb28865
pyblogit/posts.py
pyblogit/posts.py
class post(object): def __init__(self, post_id, title, url, author, content, images, labels, status): self._post_id = post_id self._title = title self._url = url self._author = author self._content = content self._images = images self._labels = labels @property def post_id(self): return self._post_id @property def title(self): return self._title @property def url(self): return self._url @property def author(self): return self._author @property def content(self): return self._content @property def images(self): return self._images @property def labels(self): return self._labels
class post(object): """The post data model""" def __init__(self, post_id, title, url, author, content, images, labels, status): self._post_id = post_id self._title = title self._url = url self._author = author self._content = content self._images = images self._labels = labels @property def post_id(self): return self._post_id @property def title(self): return self._title @property def url(self): return self._url @property def author(self): return self._author @property def content(self): return self._content @property def images(self): return self._images @property def labels(self): return self._labels
Add docstring to Post class
Add docstring to Post class
Python
mit
jamalmoir/pyblogit
python
## Code Before: class post(object): def __init__(self, post_id, title, url, author, content, images, labels, status): self._post_id = post_id self._title = title self._url = url self._author = author self._content = content self._images = images self._labels = labels @property def post_id(self): return self._post_id @property def title(self): return self._title @property def url(self): return self._url @property def author(self): return self._author @property def content(self): return self._content @property def images(self): return self._images @property def labels(self): return self._labels ## Instruction: Add docstring to Post class ## Code After: class post(object): """The post data model""" def __init__(self, post_id, title, url, author, content, images, labels, status): self._post_id = post_id self._title = title self._url = url self._author = author self._content = content self._images = images self._labels = labels @property def post_id(self): return self._post_id @property def title(self): return self._title @property def url(self): return self._url @property def author(self): return self._author @property def content(self): return self._content @property def images(self): return self._images @property def labels(self): return self._labels
class post(object): + """The post data model""" def __init__(self, post_id, title, url, author, content, images, labels, status): self._post_id = post_id self._title = title self._url = url self._author = author self._content = content self._images = images self._labels = labels @property def post_id(self): return self._post_id @property def title(self): return self._title @property def url(self): return self._url @property def author(self): return self._author @property def content(self): return self._content @property def images(self): return self._images @property def labels(self): return self._labels
1
0.02439
1
0
0099b2d8c191995ef0f2099c22861fca247c7bda
styles/bottom-panel.less
styles/bottom-panel.less
@import (inline) "../node_modules/sb-react-table/styles/base.css"; @import "ui-variables"; .sb-table.linter { color: @text-color; border-color: @base-border-color; } .sb-table.linter thead { background-color: @base-background-color; } .sb-table.linter tbody { background-color: @inset-panel-background-color; } .sb-table.linter td, .sb-table.linter th { padding: 3px 10px; } .sb-table.linter td { min-width: 100px; } .sb-table.linter th { border-right-color: @base-border-color; border-bottom-color: @base-border-color; } .sb-table.linter td:nth-child(4), .sb-table.linter td:nth-child(5) { cursor: pointer; } #linter-panel { display: block; overflow-y: scroll; }
@import (inline) "../node_modules/sb-react-table/styles/base.css"; @import "ui-variables"; .sb-table.linter { color: @text-color; font-size: 12px; border-color: @base-border-color; } .sb-table.linter thead { background-color: @base-background-color; } .sb-table.linter tbody { background-color: @inset-panel-background-color; } .sb-table.linter td, .sb-table.linter th { padding: 3px 10px; } .sb-table.linter td { min-width: 100px; } .sb-table.linter th { border-right-color: @base-border-color; border-bottom-color: @base-border-color; } .sb-table.linter td:nth-child(4), .sb-table.linter td:nth-child(5) { cursor: pointer; } #linter-panel { display: block; overflow-y: scroll; }
Decrease font size to make panel more compact
:art: Decrease font size to make panel more compact
Less
mit
steelbrain/linter-ui-default,AtomLinter/linter-ui-default,steelbrain/linter-ui-default
less
## Code Before: @import (inline) "../node_modules/sb-react-table/styles/base.css"; @import "ui-variables"; .sb-table.linter { color: @text-color; border-color: @base-border-color; } .sb-table.linter thead { background-color: @base-background-color; } .sb-table.linter tbody { background-color: @inset-panel-background-color; } .sb-table.linter td, .sb-table.linter th { padding: 3px 10px; } .sb-table.linter td { min-width: 100px; } .sb-table.linter th { border-right-color: @base-border-color; border-bottom-color: @base-border-color; } .sb-table.linter td:nth-child(4), .sb-table.linter td:nth-child(5) { cursor: pointer; } #linter-panel { display: block; overflow-y: scroll; } ## Instruction: :art: Decrease font size to make panel more compact ## Code After: @import (inline) "../node_modules/sb-react-table/styles/base.css"; @import "ui-variables"; .sb-table.linter { color: @text-color; font-size: 12px; border-color: @base-border-color; } .sb-table.linter thead { background-color: @base-background-color; } .sb-table.linter tbody { background-color: @inset-panel-background-color; } .sb-table.linter td, .sb-table.linter th { padding: 3px 10px; } .sb-table.linter td { min-width: 100px; } .sb-table.linter th { border-right-color: @base-border-color; border-bottom-color: @base-border-color; } .sb-table.linter td:nth-child(4), .sb-table.linter td:nth-child(5) { cursor: pointer; } #linter-panel { display: block; overflow-y: scroll; }
@import (inline) "../node_modules/sb-react-table/styles/base.css"; @import "ui-variables"; .sb-table.linter { color: @text-color; + font-size: 12px; border-color: @base-border-color; } .sb-table.linter thead { background-color: @base-background-color; } .sb-table.linter tbody { background-color: @inset-panel-background-color; } .sb-table.linter td, .sb-table.linter th { padding: 3px 10px; } .sb-table.linter td { min-width: 100px; } .sb-table.linter th { border-right-color: @base-border-color; border-bottom-color: @base-border-color; } .sb-table.linter td:nth-child(4), .sb-table.linter td:nth-child(5) { cursor: pointer; } #linter-panel { display: block; overflow-y: scroll; }
1
0.027027
1
0
7fc58c651ea4d2d9db8b37a9f9768cecc834b225
primestg/__init__.py
primestg/__init__.py
try: __version__ = __import__('pkg_resources') \ .get_distribution(__name__).version except Exception, e: __version__ = 'unknown'
import os try: __version__ = __import__('pkg_resources') \ .get_distribution(__name__).version except Exception, e: __version__ = 'unknown' _ROOT = os.path.abspath(os.path.dirname(__file__)) def get_data(path): filename = isinstance(path, (list, tuple)) and path[0] or path return os.path.join(_ROOT, 'data', filename)
Add function to get relative path in repository
Add function to get relative path in repository
Python
agpl-3.0
gisce/primestg
python
## Code Before: try: __version__ = __import__('pkg_resources') \ .get_distribution(__name__).version except Exception, e: __version__ = 'unknown' ## Instruction: Add function to get relative path in repository ## Code After: import os try: __version__ = __import__('pkg_resources') \ .get_distribution(__name__).version except Exception, e: __version__ = 'unknown' _ROOT = os.path.abspath(os.path.dirname(__file__)) def get_data(path): filename = isinstance(path, (list, tuple)) and path[0] or path return os.path.join(_ROOT, 'data', filename)
+ import os + try: __version__ = __import__('pkg_resources') \ .get_distribution(__name__).version except Exception, e: __version__ = 'unknown' + + _ROOT = os.path.abspath(os.path.dirname(__file__)) + + + def get_data(path): + filename = isinstance(path, (list, tuple)) and path[0] or path + return os.path.join(_ROOT, 'data', filename)
9
1.8
9
0
8a2e2a43a4be85510d533d9806331287423c0194
README.md
README.md
tdd-mockito-hamcrest-slides =========================== Slides for TDD in Java with Mockito and Hamcrest talk
tdd-mockito-hamcrest-slides =========================== Slides for TDD in Java with Mockito and Hamcrest talk Viewable here: http://tdd-mockito-hamcrest.paperplane.io/
Add link to where slides are viewable
Add link to where slides are viewable
Markdown
mit
phillamond/tdd-mockito-hamcrest-slides,phillamond/tdd-mockito-hamcrest-slides
markdown
## Code Before: tdd-mockito-hamcrest-slides =========================== Slides for TDD in Java with Mockito and Hamcrest talk ## Instruction: Add link to where slides are viewable ## Code After: tdd-mockito-hamcrest-slides =========================== Slides for TDD in Java with Mockito and Hamcrest talk Viewable here: http://tdd-mockito-hamcrest.paperplane.io/
tdd-mockito-hamcrest-slides =========================== Slides for TDD in Java with Mockito and Hamcrest talk + + Viewable here: http://tdd-mockito-hamcrest.paperplane.io/
2
0.5
2
0
8e42ac58382fc213ce5426d3fa937633fa9118ef
pyall/lmfit-0.9.3/meta.yaml
pyall/lmfit-0.9.3/meta.yaml
{% set version = "0.9.3" %} package: name: lmfit version: {{ version }} source: url: https://github.com/lmfit/lmfit-py/archive/{{ version }}.tar.gz fn: lmfit-{{ version }}.tar.gz sha256: e15c629b30cd70da525db6e66e3532d923a95e7a5f183906c83badf22c6be70c build: number: 0 script: python setup.py install --single-version-externally-managed --record=record.txt requirements: build: - python - numpy - scipy run: - emcee - ipython - ipywidgets - matplotlib - numpy - pandas - python - scipy test: requires: - nose commands: - nosetests -sv {{ environ.SRC_DIR }} imports: - lmfit about: home: http://lmfit.github.io/lmfit-py/ license: BSD summary: > Non-Linear Least Squares Minimization, with flexible Parameter settings, based on scipy.optimize.leastsq, and with many additional classes and methods for curve fitting http:/lmfit.github.io/lmfit-py/ extra: recipe-maintainers: - ericdill - tacaswell - licode
{% set version = "0.9.3" %} package: name: lmfit version: {{ version }} source: git_url: https://github.com/lmfit/lmfit-py git_rev: {{ version }} build: number: 0 script: python setup.py install --single-version-externally-managed --record=record.txt requirements: build: - python - numpy - scipy run: # - emcee - ipython - ipywidgets - matplotlib - numpy - pandas - python - scipy test: requires: - nose commands: - nosetests -sv {{ environ.SRC_DIR }} imports: - lmfit about: home: http://lmfit.github.io/lmfit-py/ license: BSD summary: > Non-Linear Least Squares Minimization, with flexible Parameter settings, based on scipy.optimize.leastsq, and with many additional classes and methods for curve fitting http:/lmfit.github.io/lmfit-py/ extra: recipe-maintainers: - ericdill - tacaswell - licode
Revert "Revert "Use git repo instead of archive due to ssl issue""
Revert "Revert "Use git repo instead of archive due to ssl issue"" This reverts commit 9e4186cb2b4ed7fd88683b74f81cf0df2e7fd575.
YAML
bsd-3-clause
NSLS-II/lightsource2-recipes,NSLS-II/lightsource2-recipes,NSLS-II/auto-build-tagged-recipes,NSLS-II/auto-build-tagged-recipes,NSLS-II/lightsource2-recipes,NSLS-II/lightsource2-recipes
yaml
## Code Before: {% set version = "0.9.3" %} package: name: lmfit version: {{ version }} source: url: https://github.com/lmfit/lmfit-py/archive/{{ version }}.tar.gz fn: lmfit-{{ version }}.tar.gz sha256: e15c629b30cd70da525db6e66e3532d923a95e7a5f183906c83badf22c6be70c build: number: 0 script: python setup.py install --single-version-externally-managed --record=record.txt requirements: build: - python - numpy - scipy run: - emcee - ipython - ipywidgets - matplotlib - numpy - pandas - python - scipy test: requires: - nose commands: - nosetests -sv {{ environ.SRC_DIR }} imports: - lmfit about: home: http://lmfit.github.io/lmfit-py/ license: BSD summary: > Non-Linear Least Squares Minimization, with flexible Parameter settings, based on scipy.optimize.leastsq, and with many additional classes and methods for curve fitting http:/lmfit.github.io/lmfit-py/ extra: recipe-maintainers: - ericdill - tacaswell - licode ## Instruction: Revert "Revert "Use git repo instead of archive due to ssl issue"" This reverts commit 9e4186cb2b4ed7fd88683b74f81cf0df2e7fd575. ## Code After: {% set version = "0.9.3" %} package: name: lmfit version: {{ version }} source: git_url: https://github.com/lmfit/lmfit-py git_rev: {{ version }} build: number: 0 script: python setup.py install --single-version-externally-managed --record=record.txt requirements: build: - python - numpy - scipy run: # - emcee - ipython - ipywidgets - matplotlib - numpy - pandas - python - scipy test: requires: - nose commands: - nosetests -sv {{ environ.SRC_DIR }} imports: - lmfit about: home: http://lmfit.github.io/lmfit-py/ license: BSD summary: > Non-Linear Least Squares Minimization, with flexible Parameter settings, based on scipy.optimize.leastsq, and with many additional classes and methods for curve fitting http:/lmfit.github.io/lmfit-py/ extra: recipe-maintainers: - ericdill - tacaswell - licode
{% set version = "0.9.3" %} package: name: lmfit version: {{ version }} source: + git_url: https://github.com/lmfit/lmfit-py + git_rev: {{ version }} - url: https://github.com/lmfit/lmfit-py/archive/{{ version }}.tar.gz - fn: lmfit-{{ version }}.tar.gz - sha256: e15c629b30cd70da525db6e66e3532d923a95e7a5f183906c83badf22c6be70c build: number: 0 script: python setup.py install --single-version-externally-managed --record=record.txt requirements: build: - python - numpy - scipy run: - - emcee + # - emcee ? + - ipython - ipywidgets - matplotlib - numpy - pandas - python - scipy test: requires: - nose commands: - nosetests -sv {{ environ.SRC_DIR }} imports: - lmfit about: home: http://lmfit.github.io/lmfit-py/ license: BSD summary: > Non-Linear Least Squares Minimization, with flexible Parameter settings, based on scipy.optimize.leastsq, and with many additional classes and methods for curve fitting http:/lmfit.github.io/lmfit-py/ extra: recipe-maintainers: - ericdill - tacaswell - licode
7
0.132075
3
4
a725b04c93b2622648e4ae850d6d96d2f0b8a4e6
rabbitmq/message-coding.js
rabbitmq/message-coding.js
const zlib = require('zlib'), R = require('ramda'); const gunzip = (data) => zlib.gunzipSync(data); const gzip = (data) => zlib.gzipSync(data); const decode = R.cond([ [ R.pathSatisfies(R.equals('gzip'), [ 'properties', 'headers', 'Content-Encoding' ]), R.over(R.lensProp('content'), R.pipe(gunzip, R.toString)) ], [ R.T, R.over(R.lensProp('content'), R.toString) ] ]); const encode = R.cond([ [ R.pathSatisfies(R.equals('gzip'), [ 'properties', 'headers', 'Content-Encoding' ]), R.over(R.lensProp('content'), R.pipe(R.curryN(1, Buffer.from), gzip)) ], [ R.T, Buffer.from ] ]); module.exports = { decode, encode };
const zlib = require('zlib'), R = require('ramda'); const gunzip = (data) => zlib.gunzipSync(data); const gzip = (data) => zlib.gzipSync(data); const decode = R.cond([ [ R.pathSatisfies(R.equals('gzip'), [ 'properties', 'headers', 'Content-Encoding' ]), R.over(R.lensProp('content'), R.pipe(gunzip, R.toString)) ], [ R.T, R.over(R.lensProp('content'), R.toString) ] ]); const encode = R.cond([ [ R.pathSatisfies(R.equals('gzip'), [ 'properties', 'headers', 'Content-Encoding' ]), R.over(R.lensProp('content'), R.pipe(R.curryN(1, Buffer.from), gzip)) ], [ R.T, R.over(R.lensProp('content'), R.curryN(1, Buffer.from)) ] ]); module.exports = { decode, encode };
Fix for reading non encoded messages
Fix for reading non encoded messages
JavaScript
mit
PlugAndTrade/funny-bunny
javascript
## Code Before: const zlib = require('zlib'), R = require('ramda'); const gunzip = (data) => zlib.gunzipSync(data); const gzip = (data) => zlib.gzipSync(data); const decode = R.cond([ [ R.pathSatisfies(R.equals('gzip'), [ 'properties', 'headers', 'Content-Encoding' ]), R.over(R.lensProp('content'), R.pipe(gunzip, R.toString)) ], [ R.T, R.over(R.lensProp('content'), R.toString) ] ]); const encode = R.cond([ [ R.pathSatisfies(R.equals('gzip'), [ 'properties', 'headers', 'Content-Encoding' ]), R.over(R.lensProp('content'), R.pipe(R.curryN(1, Buffer.from), gzip)) ], [ R.T, Buffer.from ] ]); module.exports = { decode, encode }; ## Instruction: Fix for reading non encoded messages ## Code After: const zlib = require('zlib'), R = require('ramda'); const gunzip = (data) => zlib.gunzipSync(data); const gzip = (data) => zlib.gzipSync(data); const decode = R.cond([ [ R.pathSatisfies(R.equals('gzip'), [ 'properties', 'headers', 'Content-Encoding' ]), R.over(R.lensProp('content'), R.pipe(gunzip, R.toString)) ], [ R.T, R.over(R.lensProp('content'), R.toString) ] ]); const encode = R.cond([ [ R.pathSatisfies(R.equals('gzip'), [ 'properties', 'headers', 'Content-Encoding' ]), R.over(R.lensProp('content'), R.pipe(R.curryN(1, Buffer.from), gzip)) ], [ R.T, R.over(R.lensProp('content'), R.curryN(1, Buffer.from)) ] ]); module.exports = { decode, encode };
const zlib = require('zlib'), R = require('ramda'); const gunzip = (data) => zlib.gunzipSync(data); const gzip = (data) => zlib.gzipSync(data); const decode = R.cond([ [ R.pathSatisfies(R.equals('gzip'), [ 'properties', 'headers', 'Content-Encoding' ]), R.over(R.lensProp('content'), R.pipe(gunzip, R.toString)) ], [ R.T, R.over(R.lensProp('content'), R.toString) ] ]); const encode = R.cond([ [ R.pathSatisfies(R.equals('gzip'), [ 'properties', 'headers', 'Content-Encoding' ]), R.over(R.lensProp('content'), R.pipe(R.curryN(1, Buffer.from), gzip)) ], - [ R.T, Buffer.from ] + [ R.T, R.over(R.lensProp('content'), R.curryN(1, Buffer.from)) ] ]); module.exports = { decode, encode };
2
0.117647
1
1
e02c592f850f0fd520f2a156de8dc2233525601a
Library/Formula/percona-toolkit.rb
Library/Formula/percona-toolkit.rb
require 'formula' class PerconaToolkit < Formula homepage 'http://www.percona.com/software/percona-toolkit/' url 'http://www.percona.com/redir/downloads/percona-toolkit/2.1.1/percona-toolkit-2.1.1.tar.gz' md5 '14be6a3e31c7b20aeca78e3e0aed6edc' depends_on 'Time::HiRes' => :perl depends_on 'DBD::mysql' => :perl def install system "perl", "Makefile.PL", "PREFIX=#{prefix}" system "make" system "make test" system "make install" end def test system "#{bin}/pt-archiver" system "#{bin}/pt-config-diff" system "#{bin}/pt-deadlock-logger" system "#{bin}/pt-duplicate-key-checker" system "#{bin}/pt-find" system "#{bin}/pt-fk-error-logger" system "#{bin}/pt-heartbeat" system "#{bin}/pt-kill" system "#{bin}/pt-log-player" system "#{bin}/pt-pmp" system "#{bin}/pt-slave-delay" system "#{bin}/pt-slave-find" system "#{bin}/pt-slave-restart" system "#{bin}/pt-summary" system "#{bin}/pt-table-checksum" system "#{bin}/pt-table-sync" system "#{bin}/pt-upgrade" system "#{bin}/pt-variable-advisor" end end
require 'formula' class PerconaToolkit < Formula homepage 'http://www.percona.com/software/percona-toolkit/' url 'http://www.percona.com/redir/downloads/percona-toolkit/2.1.1/percona-toolkit-2.1.1.tar.gz' sha1 'bbaf2440c55bb62b5e98d08bd3246e82c84f6f2a' depends_on 'Time::HiRes' => :perl depends_on 'DBD::mysql' => :perl def install system "perl", "Makefile.PL", "PREFIX=#{prefix}" system "make" system "make test" system "make install" end def test system "#{bin}/pt-archiver" system "#{bin}/pt-config-diff" system "#{bin}/pt-deadlock-logger" system "#{bin}/pt-duplicate-key-checker" system "#{bin}/pt-find" system "#{bin}/pt-fk-error-logger" system "#{bin}/pt-heartbeat" system "#{bin}/pt-kill" system "#{bin}/pt-log-player" system "#{bin}/pt-pmp" system "#{bin}/pt-slave-delay" system "#{bin}/pt-slave-find" system "#{bin}/pt-slave-restart" system "#{bin}/pt-summary" system "#{bin}/pt-table-checksum" system "#{bin}/pt-table-sync" system "#{bin}/pt-upgrade" system "#{bin}/pt-variable-advisor" end end
Use SHA1 instead of MD5
percona: Use SHA1 instead of MD5 Signed-off-by: Adam Vandenberg <34c2b6407fd5a10249a15d699d40f9ed1782e98c@gmail.com>
Ruby
bsd-2-clause
ilovezfs/homebrew,dpalmer93/homebrew,yyn835314557/homebrew,jiashuw/homebrew,frozzare/homebrew,pvrs12/homebrew,max-horvath/homebrew,bukzor/linuxbrew,lemaiyan/homebrew,lvh/homebrew,indera/homebrew,jsallis/homebrew,harsha-mudi/homebrew,afh/homebrew,pnorman/homebrew,mroch/homebrew,samthor/homebrew,yangj1e/homebrew,polishgeeks/homebrew,WangGL1985/homebrew,baldwicc/homebrew,Asuranceturix/homebrew,mhartington/homebrew,Russell91/homebrew,caijinyan/homebrew,Kentzo/homebrew,lrascao/homebrew,nathancahill/homebrew,alexandrecormier/homebrew,clemensg/homebrew,jamesdphillips/homebrew,bertjwregeer/homebrew,iblueer/homebrew,danielfariati/homebrew,reelsense/homebrew,jwatzman/homebrew,MartinSeeler/homebrew,grob3/homebrew,xinlehou/homebrew,alanthing/homebrew,soleo/homebrew,slnovak/homebrew,jonas/homebrew,zchee/homebrew,optikfluffel/homebrew,menivaitsi/homebrew,yangj1e/homebrew,Linuxbrew/linuxbrew,ldiqual/homebrew,mciantyre/homebrew,chkuendig/homebrew,youtux/homebrew,ngoyal/homebrew,jonafato/homebrew,jbeezley/homebrew,trajano/homebrew,MartinDelille/homebrew,zabawaba99/homebrew,megahall/homebrew,liuquansheng47/Homebrew,Linuxbrew/linuxbrew,phrase/homebrew,summermk/homebrew,Homebrew/linuxbrew,grmartin/homebrew,bchatard/homebrew,TaylorMonacelli/homebrew,Sachin-Ganesh/homebrew,mttrb/homebrew,kgb4000/homebrew,lvicentesanchez/linuxbrew,prasincs/homebrew,mokkun/homebrew,liamstask/homebrew,oliviertilmans/homebrew,swallat/homebrew,OJFord/homebrew,nju520/homebrew,Noctem/homebrew,totalvoidness/homebrew,Ferrari-lee/homebrew,bendoerr/homebrew,danabrand/linuxbrew,srikalyan/homebrew,tomas/linuxbrew,ingmarv/homebrew,patrickmckenna/homebrew,iandennismiller/homebrew,tutumcloud/homebrew,ablyler/homebrew,ryanfb/homebrew,nnutter/homebrew,bukzor/homebrew,keithws/homebrew,vihangm/homebrew,n8henrie/homebrew,rhendric/homebrew,ened/homebrew,tzudot/homebrew,kevinastone/homebrew,drbenmorgan/linuxbrew,dgageot/homebrew,tbetbetbe/linuxbrew,MrChen2015/homebrew,danabrand/linuxbrew,dericed/homebrew,marcusandre/homebrew,knpwrs/homebrew,jamesdphillips/homebrew,mciantyre/homebrew,glowe/homebrew,polamjag/homebrew,tobz-nz/homebrew,kenips/homebrew,drewwells/homebrew,jf647/homebrew,bitrise-io/homebrew,number5/homebrew,sdebnath/homebrew,danielfariati/homebrew,plattenschieber/homebrew,will/homebrew,jamer/homebrew,mxk1235/homebrew,kwilczynski/homebrew,sachiketi/homebrew,vinodkone/homebrew,apjanke/homebrew,verbitan/homebrew,fabianfreyer/homebrew,Chilledheart/homebrew,mttrb/homebrew,pcottle/homebrew,RSamokhin/homebrew,oliviertilmans/homebrew,Spacecup/homebrew,qorelanguage/homebrew,jmagnusson/homebrew,paour/homebrew,MrChen2015/homebrew,alex-courtis/homebrew,slnovak/homebrew,gvangool/homebrew,SteveClement/homebrew,tsaeger/homebrew,southwolf/homebrew,dutchcoders/homebrew,oliviertilmans/homebrew,onlynone/homebrew,idolize/homebrew,denvazh/homebrew,imjerrybao/homebrew,frozzare/homebrew,vinicius5581/homebrew,Angeldude/linuxbrew,akupila/homebrew,heinzf/homebrew,ge11232002/homebrew,ExtremeMan/homebrew,Homebrew/linuxbrew,kikuchy/homebrew,aristiden7o/homebrew,aristiden7o/homebrew,ened/homebrew,ngoyal/homebrew,packetcollision/homebrew,eugenesan/homebrew,chkuendig/homebrew,dardo82/homebrew,kyanny/homebrew,zenazn/homebrew,Hasimir/homebrew,xcezx/homebrew,pgr0ss/homebrew,thuai/boxen,SiegeLord/homebrew,yazuuchi/homebrew,oneillkza/linuxbrew,moyogo/homebrew,calmez/homebrew,caijinyan/homebrew,mroth/homebrew,Hs-Yeah/homebrew,ryanmt/homebrew,georgschoelly/homebrew,kyanny/homebrew,cscetbon/homebrew,Lywangwenbin/homebrew,saketkc/homebrew,dplarson/homebrew,mathieubolla/homebrew,ericzhou2008/homebrew,winordie-47/linuxbrew1,dericed/homebrew,sugryo/homebrew,redpen-cc/homebrew,ear/homebrew,thrifus/homebrew,tylerball/homebrew,mndrix/homebrew,zorosteven/homebrew,dolfly/homebrew,trombonehero/homebrew,bbahrami/homebrew,gildegoma/homebrew,iggyvolz/linuxbrew,freedryk/homebrew,caputomarcos/linuxbrew,sakra/homebrew,baob/homebrew,grepnull/homebrew,number5/homebrew,cprecioso/homebrew,valkjsaaa/homebrew,jesboat/homebrew,dstndstn/homebrew,callahad/homebrew,boyanpenkov/homebrew,whistlerbrk/homebrew,Habbie/homebrew,jconley/homebrew,ssgelm/homebrew,supriyantomaftuh/homebrew,Originate/homebrew,dmarkrollins/homebrew,Monits/homebrew,ktaragorn/homebrew,razamatan/homebrew,avnit/EGroovy,cprecioso/homebrew,shazow/homebrew,omriiluz/homebrew,tany-ovcharenko/depot,trombonehero/homebrew,jtrag/homebrew,alexandrecormier/homebrew,alexbukreev/homebrew,tehmaze-labs/homebrew,eighthave/homebrew,jbpionnier/homebrew,SampleLiao/homebrew,deorth/homebrew,linjunpop/homebrew,nysthee/homebrew,e-jigsaw/homebrew,jtrag/homebrew,chadcatlett/homebrew,wangranche/homebrew,petercm/homebrew,jkarneges/homebrew,sje30/homebrew,endelwar/homebrew,RandyMcMillan/homebrew,jgelens/homebrew,xb123456456/homebrew,marcelocantos/homebrew,arg/homebrew,Dreysman/homebrew,evanrs/homebrew,IsmailM/linuxbrew,dpalmer93/homebrew,reelsense/homebrew,phatblat/homebrew,thinker0/homebrew,ryanmt/homebrew,mroth/homebrew,wrunnery/homebrew,trajano/homebrew,cjheath/homebrew,manphiz/homebrew,tomas/homebrew,manphiz/homebrew,amarshall/homebrew,benjaminfrank/homebrew,deployable/homebrew,zorosteven/homebrew,cmvelo/homebrew,gonzedge/homebrew,6100590/homebrew,jpsim/homebrew,kikuchy/homebrew,samplecount/homebrew,ldiqual/homebrew,tomas/linuxbrew,omriiluz/homebrew,LaurentFough/homebrew,huitseeker/homebrew,peteristhegreat/homebrew,nelstrom/homebrew,linjunpop/homebrew,AICIDNN/homebrew,geoff-codes/homebrew,jcassiojr/homebrew,timomeinen/homebrew,elyscape/homebrew,ainstushar/homebrew,kvs/homebrew,jbpionnier/homebrew,Hs-Yeah/homebrew,koraktor/homebrew,alexethan/homebrew,hvnsweeting/homebrew,tdsmith/linuxbrew,SiegeLord/homebrew,tylerball/homebrew,ebardsley/homebrew,drewpc/homebrew,bright-sparks/homebrew,feuvan/homebrew,rosalsm/homebrew,bl1nk/homebrew,paulbakker/homebrew,dalinaum/homebrew,dambrisco/homebrew,CNA-Bld/homebrew,rlhh/homebrew,asparagui/homebrew,carlmod/homebrew,grob3/homebrew,JerroldLee/homebrew,arrowcircle/homebrew,endelwar/homebrew,dstftw/homebrew,rhoffman3621/learn-rails,pgr0ss/homebrew,mapbox/homebrew,kenips/homebrew,frodeaa/homebrew,polamjag/homebrew,davidmalcolm/homebrew,elyscape/homebrew,jedahan/homebrew,h3r2on/homebrew,tbeckham/homebrew,Homebrew/linuxbrew,adamchainz/homebrew,scorphus/homebrew,theopolis/homebrew,ento/homebrew,ortho/homebrew,kawanet/homebrew,hikaruworld/homebrew,afdnlw/linuxbrew,ear/homebrew,timomeinen/homebrew,Drewshg312/homebrew,rlister/homebrew,pinkpolygon/homebrew,jessamynsmith/homebrew,ffleming/homebrew,dconnolly/homebrew,jkarneges/homebrew,Ferrari-lee/homebrew,eighthave/homebrew,tyrchen/homebrew,swallat/homebrew,mindrones/homebrew,windoze/homebrew,rhunter/homebrew,arcivanov/linuxbrew,jbeezley/homebrew,changzuozhen/homebrew,halloleo/homebrew,jsjohnst/homebrew,tpot/homebrew,drewwells/homebrew,marcoceppi/homebrew,thejustinwalsh/homebrew,neronplex/homebrew,mkrapp/homebrew,benswift404/homebrew,jwatzman/homebrew,dericed/homebrew,buzzedword/homebrew,ssgelm/homebrew,gawbul/homebrew,vinodkone/homebrew,dongcarl/homebrew,lewismc/homebrew,paour/homebrew,andrew-regan/homebrew,tavisto/homebrew,indera/homebrew,mprobst/homebrew,adriancole/homebrew,kikuchy/homebrew,baldwicc/homebrew,zj568/homebrew,fabianschuiki/homebrew,oubiwann/homebrew,nicowilliams/homebrew,petere/homebrew,jmtd/homebrew,kwilczynski/homebrew,mindrones/homebrew,davidcelis/homebrew,ened/homebrew,ryanshaw/homebrew,kyanny/homebrew,tbetbetbe/linuxbrew,calmez/homebrew,tjnycum/homebrew,bcwaldon/homebrew,Asuranceturix/homebrew,retrography/homebrew,jab/homebrew,xanderlent/homebrew,dalanmiller/homebrew,calmez/homebrew,AGWA-forks/homebrew,LonnyGomes/homebrew,giffels/homebrew,robotblake/homebrew,gawbul/homebrew,cnbin/homebrew,verdurin/homebrew,patrickmckenna/homebrew,tpot/homebrew,alfasapy/homebrew,henry0312/homebrew,bcomnes/homebrew,feelpp/homebrew,kilojoules/homebrew,malmaud/homebrew,Redth/homebrew,Chilledheart/homebrew,klazuka/homebrew,alexbukreev/homebrew,jingweno/homebrew,qskycolor/homebrew,jbaum98/linuxbrew,johanhammar/homebrew,polishgeeks/homebrew,mjc-/homebrew,polamjag/homebrew,royhodgman/homebrew,kazuho/homebrew,creationix/homebrew,bkonosky/homebrew,idolize/homebrew,mattfritz/homebrew,adamliter/linuxbrew,waynegraham/homebrew,giffels/homebrew,odekopoon/homebrew,vigo/homebrew,afdnlw/linuxbrew,nicowilliams/homebrew,ebouaziz/linuxbrew,pwnall/homebrew,plattenschieber/homebrew,eugenesan/homebrew,malmaud/homebrew,Habbie/homebrew,gvangool/homebrew,fabianschuiki/homebrew,schuyler/homebrew,jasonm23/homebrew,mttrb/homebrew,MartinDelille/homebrew,royhodgman/homebrew,zchee/homebrew,miketheman/homebrew,endelwar/homebrew,valkjsaaa/homebrew,elasticdog/homebrew,bcwaldon/homebrew,robrix/homebrew,peteristhegreat/homebrew,AlekSi/homebrew,LaurentFough/homebrew,boneskull/homebrew,petercm/homebrew,ctate/autocode-homebrew,andrew-regan/homebrew,NfNitLoop/homebrew,LinusU/homebrew,kvs/homebrew,geometrybase/homebrew,ssp/homebrew,tuxu/homebrew,glowe/homebrew,wfalkwallace/homebrew,emilyst/homebrew,slyphon/homebrew,exicon/homebrew,rlhh/homebrew,bjorand/homebrew,dlo/homebrew,xuebinglee/homebrew,mobileoverlord/homebrew-1,haf/homebrew,bcwaldon/homebrew,ainstushar/homebrew,kbrock/homebrew,robrix/homebrew,ericzhou2008/homebrew,boshnivolo/homebrew,ear/homebrew,jmstacey/homebrew,ekmett/homebrew,WangGL1985/homebrew,alfasapy/homebrew,mmizutani/homebrew,AlekSi/homebrew,boyanpenkov/homebrew,pdxdan/homebrew,chkuendig/homebrew,rhunter/homebrew,cesar2535/homebrew,tjnycum/homebrew,dolfly/homebrew,raphaelcohn/homebrew,waj/homebrew,mactkg/homebrew,otaran/homebrew,iostat/homebrew2,tschoonj/homebrew,rhendric/homebrew,tdsmith/linuxbrew,jacobsa/homebrew,amenk/linuxbrew,Gasol/homebrew,bendoerr/homebrew,freedryk/homebrew,ge11232002/homebrew,outcoldman/homebrew,thos37/homebrew,linse073/homebrew,yonglehou/homebrew,yidongliu/homebrew,utzig/homebrew,tuedan/homebrew,polishgeeks/homebrew,iggyvolz/linuxbrew,notDavid/homebrew,oliviertoupin/homebrew,xinlehou/homebrew,alebcay/homebrew,bendemaree/homebrew,Krasnyanskiy/homebrew,zhimsel/homebrew,godu/homebrew,tstack/homebrew,superlukas/homebrew,tsaeger/homebrew,kad/homebrew,kevinastone/homebrew,jingweno/homebrew,ssp/homebrew,sjackman/linuxbrew,zj568/homebrew,theopolis/homebrew,dstndstn/homebrew,andyshinn/homebrew,ened/homebrew,crystal/autocode-homebrew,geoff-codes/homebrew,martinklepsch/homebrew,msurovcak/homebrew,tstack/homebrew,mkrapp/homebrew,tseven/homebrew,bertjwregeer/homebrew,klazuka/homebrew,timomeinen/homebrew,elasticdog/homebrew,denvazh/homebrew,pigri/homebrew,BlackFrog1/homebrew,pitatensai/homebrew,samthor/homebrew,zachmayer/homebrew,hwhelchel/homebrew,wolfd/homebrew,quantumsteve/homebrew,jmstacey/homebrew,songjizu001/homebrew,LeonB/linuxbrew,callahad/homebrew,kimhunter/homebrew,IsmailM/linuxbrew,zfarrell/homebrew,daviddavis/homebrew,hanlu-chen/homebrew,mtigas/homebrew,hkwan003/homebrew,kbinani/homebrew,ffleming/homebrew,tutumcloud/homebrew,cHoco/homebrew,dickeyxxx/homebrew,avnit/EGroovy,torgartor21/homebrew,moltar/homebrew,drewpc/homebrew,jwillemsen/homebrew,gnubila-france/linuxbrew,petercm/homebrew,jbpionnier/homebrew,h3r2on/homebrew,yoshida-mediba/homebrew,joshfriend/homebrew,OlivierParent/homebrew,bukzor/homebrew,jwillemsen/homebrew,codeout/homebrew,sarvex/linuxbrew,MoSal/homebrew,bluca/homebrew,asparagui/homebrew,neronplex/homebrew,torgartor21/homebrew,wangranche/homebrew,AlekSi/homebrew,rhunter/homebrew,gyaresu/homebrew,davidmalcolm/homebrew,wfarr/homebrew,cjheath/homebrew,ktaragorn/homebrew,gildegoma/homebrew,Klozz/homebrew,tjschuck/homebrew,sachiketi/homebrew,guidomb/homebrew,indrajitr/homebrew,josa42/homebrew,gildegoma/homebrew,huitseeker/homebrew,hkwan003/homebrew,jpsim/homebrew,amjith/homebrew,dgageot/homebrew,jbarker/homebrew,goodcodeguy/homebrew,craig5/homebrew,ralic/homebrew,CNA-Bld/homebrew,KevinSjoberg/homebrew,joschi/homebrew,sachiketi/homebrew,henry0312/homebrew,goodcodeguy/homebrew,lvicentesanchez/homebrew,sidhart/homebrew,jimmy906/homebrew,changzuozhen/homebrew,AtkinsChang/homebrew,jamesdphillips/homebrew,bl1nk/homebrew,a-b/homebrew,vladshablinsky/homebrew,JerroldLee/homebrew,andyshinn/homebrew,robrix/homebrew,mkrapp/homebrew,silentbicycle/homebrew,gcstang/linuxbrew,gyaresu/homebrew,tuxu/homebrew,mjbshaw/homebrew,samplecount/homebrew,pcottle/homebrew,dreid93/homebrew,hmalphettes/homebrew,lvh/homebrew,nandub/homebrew,tomguiter/homebrew,tomekr/homebrew,hermansc/homebrew,paour/homebrew,joschi/homebrew,nnutter/homebrew,AntonioMeireles/homebrew,swallat/homebrew,antst/homebrew,lhahne/homebrew,utzig/homebrew,adamchainz/homebrew,heinzf/homebrew,thebyrd/homebrew,nathancahill/homebrew,mtfelix/homebrew,barn/homebrew,otaran/homebrew,saketkc/linuxbrew,morevalily/homebrew,hyokosdeveloper/linuxbrew,virtuald/homebrew,mroch/homebrew,mxk1235/homebrew,lemaiyan/homebrew,ehogberg/homebrew,187j3x1/homebrew,ilovezfs/homebrew,OlivierParent/homebrew,bbhoss/homebrew,samplecount/homebrew,Govinda-Fichtner/homebrew,RSamokhin/homebrew,brotbert/homebrew,andreyto/homebrew,emilyst/homebrew,dalguji/homebrew,anders/homebrew,julienXX/homebrew,pinkpolygon/homebrew,marcoceppi/homebrew,harelba/homebrew,iggyvolz/linuxbrew,blogabe/homebrew,sferik/homebrew,andy12530/homebrew,AlexejK/homebrew,frodeaa/homebrew,decors/homebrew,recruit-tech/homebrew,ctate/autocode-homebrew,jsjohnst/homebrew,dlo/homebrew,kvs/homebrew,lnr0626/homebrew,rcombs/homebrew,songjizu001/homebrew,menivaitsi/homebrew,codeout/homebrew,sublimino/linuxbrew,antst/homebrew,changzuozhen/homebrew,youprofit/homebrew,zoltansx/homebrew,qorelanguage/homebrew,shawndellysse/homebrew,sugryo/homebrew,iamcharp/homebrew,elgertam/homebrew,kmiscia/homebrew,MartinSeeler/homebrew,SteveClement/homebrew,1zaman/homebrew,dtan4/homebrew,tomyun/homebrew,Linuxbrew/linuxbrew,xanderlent/homebrew,cristobal/homebrew,telamonian/linuxbrew,tuedan/homebrew,jamer/homebrew,mactkg/homebrew,silentbicycle/homebrew,sublimino/linuxbrew,gnawhleinad/homebrew,anjackson/homebrew,joshua-rutherford/homebrew,keithws/homebrew,chiefy/homebrew,RSamokhin/homebrew,bitrise-io/homebrew,hyuni/homebrew,mattbostock/homebrew,ingmarv/homebrew,zeha/homebrew,godu/homebrew,karlhigley/homebrew,apjanke/homebrew,bettyDes/homebrew,slyphon/homebrew,jf647/homebrew,srikalyan/homebrew,wadejong/homebrew,jtrag/homebrew,danpalmer/homebrew,megahall/homebrew,saketkc/linuxbrew,thrifus/homebrew,jpascal/homebrew,mavimo/homebrew,bruno-/homebrew,hongkongkiwi/homebrew,tjschuck/homebrew,alebcay/homebrew,docwhat/homebrew,jpascal/homebrew,kbinani/homebrew,haosdent/homebrew,afdnlw/linuxbrew,kashif/homebrew,aaronwolen/homebrew,caijinyan/homebrew,yonglehou/homebrew,omriiluz/homebrew,epixa/homebrew,koenrh/homebrew,ainstushar/homebrew,lewismc/homebrew,francaguilar/homebrew,tomguiter/homebrew,gvangool/homebrew,prasincs/homebrew,brianmhunt/homebrew,nshemonsky/homebrew,deployable/homebrew,chiefy/homebrew,jlisic/linuxbrew,knpwrs/homebrew,bidle/homebrew,exicon/homebrew,feugenix/homebrew,Gui13/linuxbrew,Zearin/homebrew,haosdent/homebrew,MonCoder/homebrew,avnit/EGroovy,Hasimir/homebrew,pgr0ss/homebrew,chabhishek123/homebrew,caputomarcos/linuxbrew,bendemaree/homebrew,bchatard/homebrew,John-Colvin/homebrew,a-b/homebrew,danieroux/homebrew,qiruiyin/homebrew,tylerball/homebrew,IsmailM/linuxbrew,jmstacey/homebrew,woodruffw/homebrew-test,timomeinen/homebrew,xuebinglee/homebrew,iandennismiller/homebrew,royalwang/homebrew,187j3x1/homebrew,BlackFrog1/homebrew,adevress/homebrew,tjschuck/homebrew,glowe/homebrew,antogg/homebrew,mattprowse/homebrew,dtan4/homebrew,hmalphettes/homebrew,jehutymax/homebrew,ilidar/homebrew,afb/homebrew,benesch/homebrew,joshua-rutherford/homebrew,Krasnyanskiy/homebrew,gcstang/homebrew,MonCoder/homebrew,kashif/homebrew,blairham/homebrew,gcstang/homebrew,scpeters/homebrew,jmtd/homebrew,TaylorMonacelli/homebrew,colindean/homebrew,rs/homebrew,bl1nk/homebrew,danielfariati/homebrew,antst/homebrew,sometimesfood/homebrew,muellermartin/homebrew,craig5/homebrew,theeternalsw0rd/homebrew,onlynone/homebrew,haihappen/homebrew,reelsense/linuxbrew,mbi/homebrew,josa42/homebrew,tschoonj/homebrew,elamc/homebrew,jpascal/homebrew,DoomHammer/linuxbrew,mbrevda/homebrew,hikaruworld/homebrew,mattbostock/homebrew,creack/homebrew,miketheman/homebrew,Gutek/homebrew,totalvoidness/homebrew,ryanmt/homebrew,giffels/homebrew,alanthing/homebrew,mommel/homebrew,kawanet/homebrew,ngoyal/homebrew,sideci-sample/sideci-sample-homebrew,pedromaltez-forks/homebrew,kkirsche/homebrew,lvicentesanchez/homebrew,Moisan/homebrew,LeoCavaille/homebrew,mroch/homebrew,Asuranceturix/homebrew,jehutymax/homebrew,msurovcak/homebrew,jeffmo/homebrew,MoSal/homebrew,akupila/homebrew,pedromaltez-forks/homebrew,mtigas/homebrew,oncletom/homebrew,johanhammar/homebrew,princeofdarkness76/homebrew,morevalily/homebrew,southwolf/homebrew,woodruffw/homebrew-test,FiMka/homebrew,kvs/homebrew,eugenesan/homebrew,bendoerr/homebrew,sakra/homebrew,vladshablinsky/homebrew,mcolic/homebrew,nandub/homebrew,thos37/homebrew,koenrh/homebrew,robotblake/homebrew,AICIDNN/homebrew,davydden/homebrew,recruit-tech/homebrew,ybott/homebrew,whitej125/homebrew,5zzang/homebrew,esamson/homebrew,quantumsteve/homebrew,KenanSulayman/homebrew,tomas/homebrew,jconley/homebrew,rhoffman3621/learn-rails,creack/homebrew,bmroberts1987/homebrew,alindeman/homebrew,ls2uper/homebrew,kidaa/homebrew,h3r2on/homebrew,endelwar/homebrew,docwhat/homebrew,jehutymax/homebrew,davidcelis/homebrew,youtux/homebrew,davydden/linuxbrew,zeezey/homebrew,frickler01/homebrew,tavisto/homebrew,zhipeng-jia/homebrew,iostat/homebrew2,tstack/homebrew,dongcarl/homebrew,hikaruworld/homebrew,georgschoelly/homebrew,filcab/homebrew,mattfarina/homebrew,jspahrsummers/homebrew,moltar/homebrew,LinusU/homebrew,gcstang/homebrew,robrix/homebrew,xb123456456/homebrew,harelba/homebrew,zabawaba99/homebrew,petere/homebrew,WangGL1985/homebrew,jacobsa/homebrew,DoomHammer/linuxbrew,verbitan/homebrew,trajano/homebrew,egentry/homebrew,mcolic/homebrew,miry/homebrew,oliviertilmans/homebrew,egentry/homebrew,tjt263/homebrew,gnubila-france/linuxbrew,bigbes/homebrew,yidongliu/homebrew,ingmarv/homebrew,aguynamedryan/homebrew,jack-and-rozz/linuxbrew,mobileoverlord/homebrew-1,benswift404/homebrew,FiMka/homebrew,wfalkwallace/homebrew,djun-kim/homebrew,Homebrew/homebrew,imjerrybao/homebrew,2inqui/homebrew,whistlerbrk/homebrew,dunn/linuxbrew,wrunnery/homebrew,number5/homebrew,khwon/homebrew,khwon/homebrew,rtyley/homebrew,tyrchen/homebrew,jbaum98/linuxbrew,totalvoidness/homebrew,amarshall/homebrew,pampata/homebrew,Redth/homebrew,teslamint/homebrew,englishm/homebrew,wrunnery/homebrew,zeha/homebrew,alexethan/homebrew,mapbox/homebrew,anjackson/homebrew,rcombs/homebrew,Asuranceturix/homebrew,elig/homebrew,RadicalZephyr/homebrew,sptramer/homebrew,arcivanov/linuxbrew,benjaminfrank/homebrew,Cottser/homebrew,arg/homebrew,polishgeeks/homebrew,grob3/homebrew,ge11232002/homebrew,Gui13/linuxbrew,darknessomi/homebrew,osimola/homebrew,booi/homebrew,virtuald/homebrew,songjizu001/homebrew,ericfischer/homebrew,pampata/homebrew,erkolson/homebrew,erkolson/homebrew,mattprowse/homebrew,Homebrew/homebrew,elasticdog/homebrew,mbrevda/homebrew,jasonm23/homebrew,harelba/homebrew,pcottle/homebrew,tdsmith/linuxbrew,jiaoyigui/homebrew,emilyst/homebrew,gicmo/homebrew,ryanshaw/homebrew,lvh/homebrew,sidhart/homebrew,oneillkza/linuxbrew,caijinyan/homebrew,wolfd/homebrew,arnested/homebrew,danielmewes/homebrew,Austinpb/homebrew,virtuald/homebrew,bkonosky/homebrew,LegNeato/homebrew,amenk/linuxbrew,dtrebbien/homebrew,ehogberg/homebrew,dconnolly/homebrew,tylerball/homebrew,outcoldman/homebrew,kbinani/homebrew,Cottser/homebrew,zachmayer/homebrew,chiefy/homebrew,a1dutch/homebrew,getgauge/homebrew,coldeasy/homebrew,arnested/homebrew,theopolis/homebrew,antogg/homebrew,slyphon/homebrew,dambrisco/homebrew,bbahrami/homebrew,teslamint/homebrew,brunchboy/homebrew,cHoco/homebrew,LeoCavaille/homebrew,tobz-nz/homebrew,asparagui/homebrew,syhw/homebrew,iandennismiller/homebrew,ralic/homebrew,xcezx/homebrew,alexbukreev/homebrew,cscetbon/homebrew,cchacin/homebrew,yangj1e/homebrew,alex-courtis/homebrew,Gutek/homebrew,ablyler/homebrew,mroth/homebrew,Zearin/homebrew,alex/homebrew,dai0304/homebrew,adevress/homebrew,blairham/homebrew,afb/homebrew,AtkinsChang/homebrew,vinicius5581/homebrew,rnh/homebrew,stevenjack/homebrew,tsaeger/homebrew,chfast/homebrew,scpeters/homebrew,vinicius5581/homebrew,fabianfreyer/homebrew,princeofdarkness76/linuxbrew,brendanator/linuxbrew,elgertam/homebrew,epixa/homebrew,trskop/linuxbrew,dardo82/homebrew,henry0312/homebrew,sdebnath/homebrew,vladshablinsky/homebrew,qorelanguage/homebrew,tehmaze-labs/homebrew,rwstauner/homebrew,ngoldbaum/homebrew,yonglehou/homebrew,notDavid/homebrew,brunchboy/homebrew,jimmy906/homebrew,Govinda-Fichtner/homebrew,zoltansx/homebrew,kevmoo/homebrew,int3h/homebrew,jonas/homebrew,scardetto/homebrew,jmagnusson/homebrew,jarrettmeyer/homebrew,pitatensai/homebrew,whistlerbrk/homebrew,bendemaree/homebrew,guidomb/homebrew,qorelanguage/homebrew,pwnall/homebrew,bmroberts1987/homebrew,jlisic/linuxbrew,saketkc/homebrew,iandennismiller/homebrew,omriiluz/homebrew,tuxu/homebrew,WangGL1985/homebrew,digiter/linuxbrew,sjackman/linuxbrew,kenips/homebrew,rstacruz/homebrew,ktaragorn/homebrew,jianjin/homebrew,ahihi/tigerbrew,djun-kim/homebrew,chabhishek123/homebrew,ebardsley/homebrew,jarrettmeyer/homebrew,dreid93/homebrew,sorin-ionescu/homebrew,linjunpop/homebrew,andy12530/homebrew,sptramer/homebrew,julienXX/homebrew,jab/homebrew,smarek/homebrew,youtux/homebrew,odekopoon/homebrew,6100590/homebrew,max-horvath/homebrew,verbitan/homebrew,lvicentesanchez/homebrew,tuedan/homebrew,hanxue/homebrew,rhoffman3621/learn-rails,quantumsteve/homebrew,MartinSeeler/homebrew,10sr/linuxbrew,trombonehero/homebrew,keith/homebrew,miry/homebrew,Cottser/homebrew,frickler01/homebrew,YOTOV-LIMITED/homebrew,cffk/homebrew,robotblake/homebrew,colindean/homebrew,tomguiter/homebrew,rnh/homebrew,kazuho/homebrew,mxk1235/homebrew,ryanshaw/homebrew,pdpi/homebrew,dunn/linuxbrew,jbeezley/homebrew,tomas/linuxbrew,rhendric/homebrew,francaguilar/homebrew,alexandrecormier/homebrew,poindextrose/homebrew,ryanshaw/homebrew,dkotvan/homebrew,paour/homebrew,rcombs/homebrew,marcoceppi/homebrew,emcrisostomo/homebrew,osimola/homebrew,GeekHades/homebrew,kgb4000/homebrew,timsutton/homebrew,Cottser/homebrew,samthor/homebrew,simsicon/homebrew,haf/homebrew,dstndstn/homebrew,zebMcCorkle/homebrew,soleo/homebrew,tjt263/homebrew,jf647/homebrew,oubiwann/homebrew,rlister/homebrew,akshayvaidya/homebrew,keithws/homebrew,jiaoyigui/homebrew,lmontrieux/homebrew,kbrock/homebrew,LonnyGomes/homebrew,cchacin/homebrew,wfarr/homebrew,durka/homebrew,sideci-sample/sideci-sample-homebrew,dericed/homebrew,elig/homebrew,hkwan003/homebrew,frozzare/homebrew,jackmcgreevy/homebrew,arg/homebrew,anarchivist/homebrew,erezny/homebrew,AICIDNN/homebrew,shazow/homebrew,bidle/homebrew,5zzang/homebrew,outcoldman/homebrew,hyokosdeveloper/linuxbrew,QuinnyPig/homebrew,thinker0/homebrew,sdebnath/homebrew,rstacruz/homebrew,dtrebbien/homebrew,lewismc/homebrew,zhipeng-jia/homebrew,catap/homebrew,elamc/homebrew,mavimo/homebrew,muellermartin/homebrew,samthor/homebrew,shazow/homebrew,dmarkrollins/homebrew,amjith/homebrew,supriyantomaftuh/homebrew,LaurentFough/homebrew,boshnivolo/homebrew,ryanfb/homebrew,tjschuck/homebrew,summermk/homebrew,wadejong/homebrew,LucyShapiro/before-after,benswift404/homebrew,kikuchy/homebrew,1zaman/homebrew,bertjwregeer/homebrew,mattfarina/homebrew,SuperNEMO-DBD/cadfaelbrew,Chilledheart/homebrew,arcivanov/linuxbrew,samplecount/homebrew,srikalyan/homebrew,jbarker/homebrew,kevmoo/homebrew,3van/homebrew,woodruffw/homebrew-test,ianbrandt/homebrew,lvh/homebrew,mobileoverlord/homebrew-1,1zaman/homebrew,caijinyan/homebrew,petemcw/homebrew,epixa/homebrew,andy12530/homebrew,sptramer/homebrew,marcelocantos/homebrew,gyaresu/homebrew,oschwald/homebrew,tdsmith/linuxbrew,bukzor/linuxbrew,wfalkwallace/homebrew,flysonic10/homebrew,petercm/homebrew,razamatan/homebrew,scardetto/homebrew,rhunter/homebrew,stevenjack/homebrew,maxhope/homebrew,filcab/homebrew,brianmhunt/homebrew,2inqui/homebrew,dreid93/homebrew,darknessomi/homebrew,prasincs/homebrew,ento/homebrew,catap/homebrew,nju520/homebrew,chfast/homebrew,emcrisostomo/homebrew,phatblat/homebrew,arrowcircle/homebrew,blairham/homebrew,antst/homebrew,alex-zhang/homebrew,Chilledheart/homebrew,englishm/homebrew,ls2uper/homebrew,mroth/homebrew,filcab/homebrew,dtan4/homebrew,bluca/homebrew,jpscaletti/homebrew,sitexa/homebrew,sigma-random/homebrew,lmontrieux/homebrew,Spacecup/homebrew,xurui3762791/homebrew,aristiden7o/homebrew,ptolemarch/homebrew,thinker0/homebrew,ldiqual/homebrew,bjorand/homebrew,marcusandre/homebrew,phatblat/homebrew,benesch/homebrew,idolize/homebrew,gijzelaerr/homebrew,xyproto/homebrew,onlynone/homebrew,aaronwolen/homebrew,petere/homebrew,ericfischer/homebrew,mindrones/homebrew,tghs/linuxbrew,miketheman/homebrew,wkentaro/homebrew,rtyley/homebrew,osimola/homebrew,wadejong/homebrew,Gasol/homebrew,Moisan/homebrew,ctate/autocode-homebrew,ilidar/homebrew,goodcodeguy/homebrew,esalling23/homebrew,kkirsche/homebrew,josa42/homebrew,iamcharp/homebrew,LeonB/linuxbrew,eugenesan/homebrew,telamonian/linuxbrew,callahad/homebrew,liuquansheng47/Homebrew,sometimesfood/homebrew,blogabe/homebrew,danielfariati/homebrew,mattfritz/homebrew,ilovezfs/homebrew,ehogberg/homebrew,nkolomiec/homebrew,reelsense/linuxbrew,craigbrad/homebrew,dai0304/homebrew,georgschoelly/homebrew,bigbes/homebrew,chabhishek123/homebrew,kyanny/homebrew,tseven/homebrew,ianbrandt/homebrew,sorin-ionescu/homebrew,ahihi/tigerbrew,mprobst/homebrew,summermk/homebrew,zfarrell/homebrew,Monits/homebrew,influxdb/homebrew,optikfluffel/homebrew,jwatzman/homebrew,hvnsweeting/homebrew,emilyst/homebrew,stoshiya/homebrew,feelpp/homebrew,LegNeato/homebrew,tkelman/homebrew,feelpp/homebrew,ktheory/homebrew,h3r2on/homebrew,elig/homebrew,BrewTestBot/homebrew,haosdent/homebrew,dholm/linuxbrew,utzig/homebrew,kad/homebrew,finde/homebrew,higanworks/homebrew,ndimiduk/homebrew,antst/homebrew,skatsuta/homebrew,creationix/homebrew,John-Colvin/homebrew,decors/homebrew,linkinpark342/homebrew,jingweno/homebrew,Klozz/homebrew,gicmo/homebrew,barn/homebrew,tbeckham/homebrew,pigoz/homebrew,jmtd/homebrew,bbhoss/homebrew,sferik/homebrew,mxk1235/homebrew,mprobst/homebrew,recruit-tech/homebrew,danieroux/homebrew,linjunpop/homebrew,sugryo/homebrew,sje30/homebrew,hanlu-chen/homebrew,phatblat/homebrew,digiter/linuxbrew,jonas/homebrew,pullreq/homebrew,sje30/homebrew,eighthave/homebrew,Austinpb/homebrew,dpalmer93/homebrew,mbi/homebrew,dholm/homebrew,max-horvath/homebrew,egentry/homebrew,max-horvath/homebrew,vihangm/homebrew,AtnNn/homebrew,dholm/linuxbrew,wfarr/homebrew,qskycolor/homebrew,Gui13/linuxbrew,Monits/homebrew,elgertam/homebrew,hkwan003/homebrew,blogabe/homebrew,princeofdarkness76/homebrew,valkjsaaa/homebrew,woodruffw/homebrew-test,oliviertilmans/homebrew,dtrebbien/homebrew,rstacruz/homebrew,boneskull/homebrew,koraktor/homebrew,crystal/autocode-homebrew,jmagnusson/homebrew,mrkn/homebrew,apjanke/homebrew,AtnNn/homebrew,francaguilar/homebrew,aguynamedryan/homebrew,kawanet/homebrew,theckman/homebrew,gcstang/homebrew,cjheath/homebrew,JerroldLee/homebrew,morevalily/homebrew,kgb4000/homebrew,cvrebert/homebrew,OJFord/homebrew,cnbin/homebrew,manphiz/homebrew,kilojoules/homebrew,danpalmer/homebrew,Zearin/homebrew,mmizutani/homebrew,hakamadare/homebrew,justjoheinz/homebrew,jasonm23/homebrew,jonafato/homebrew,karlhigley/homebrew,PikachuEXE/homebrew,dstndstn/homebrew,Homebrew/homebrew,danabrand/linuxbrew,alanthing/homebrew,phrase/homebrew,jianjin/homebrew,ingmarv/homebrew,jack-and-rozz/linuxbrew,galaxy001/homebrew,jackmcgreevy/homebrew,LucyShapiro/before-after,chfast/homebrew,deorth/homebrew,dlesaca/homebrew,helloworld-zh/homebrew,pdxdan/homebrew,Firefishy/homebrew,slyphon/homebrew,jwillemsen/linuxbrew,hermansc/homebrew,Firefishy/homebrew,ento/homebrew,neronplex/homebrew,oneillkza/linuxbrew,hmalphettes/homebrew,dai0304/homebrew,Red54/homebrew,tomas/homebrew,Ivanopalas/homebrew,kwadade/LearnRuby,NRauh/homebrew,zeha/homebrew,dunn/homebrew,yazuuchi/homebrew,AtnNn/homebrew,jsjohnst/homebrew,raphaelcohn/homebrew,pampata/homebrew,whitej125/homebrew,frickler01/homebrew,atsjj/homebrew,jpsim/homebrew,anders/homebrew,cscetbon/homebrew,jamer/homebrew,tseven/homebrew,craigbrad/homebrew,ryanfb/homebrew,dai0304/homebrew,mtigas/homebrew,msurovcak/homebrew,dtan4/homebrew,bjlxj2008/homebrew,okuramasafumi/homebrew,gijzelaerr/homebrew,sportngin/homebrew,kimhunter/homebrew,tomyun/homebrew,epixa/homebrew,colindean/homebrew,deorth/homebrew,bcomnes/homebrew,okuramasafumi/homebrew,michaKFromParis/homebrew-sparks,seeden/homebrew,dirn/homebrew,cristobal/homebrew,nathancahill/homebrew,teslamint/homebrew,marcoceppi/homebrew,iblueer/homebrew,jcassiojr/homebrew,auvi/homebrew,adriancole/homebrew,pnorman/homebrew,ffleming/homebrew,ssgelm/homebrew,dolfly/homebrew,rnh/homebrew,mbi/homebrew,SuperNEMO-DBD/cadfaelbrew,seegno-forks/homebrew,jsjohnst/homebrew,utzig/homebrew,Krasnyanskiy/homebrew,zorosteven/homebrew,Ivanopalas/homebrew,marcusandre/homebrew,feelpp/homebrew,TrevorSayre/homebrew,creack/homebrew,afb/homebrew,smarek/homebrew,jpsim/homebrew,jpascal/homebrew,alebcay/homebrew,jeromeheissler/homebrew,dholm/homebrew,yoshida-mediba/homebrew,haihappen/homebrew,mroch/homebrew,liuquansheng47/Homebrew,lucas-clemente/homebrew,psibre/homebrew,lnr0626/homebrew,cristobal/homebrew,moltar/homebrew,kodabb/homebrew,Ferrari-lee/homebrew,Dreysman/homebrew,s6stuc/homebrew,cesar2535/homebrew,romejoe/linuxbrew,adamliter/homebrew,Lywangwenbin/homebrew,glowe/homebrew,evanrs/homebrew,erezny/homebrew,voxxit/homebrew,dutchcoders/homebrew,rgbkrk/homebrew,alex/homebrew,theckman/homebrew,dreid93/homebrew,danpalmer/homebrew,chiefy/homebrew,arrowcircle/homebrew,englishm/homebrew,feuvan/homebrew,patrickmckenna/homebrew,southwolf/homebrew,marcelocantos/homebrew,paulbakker/homebrew,jsallis/homebrew,bbahrami/homebrew,liuquansheng47/Homebrew,boshnivolo/homebrew,ieure/homebrew,adamchainz/homebrew,voxxit/homebrew,paulbakker/homebrew,kashif/homebrew,dunn/linuxbrew,drewpc/homebrew,pdpi/homebrew,bwmcadams/homebrew,ldiqual/homebrew,sferik/homebrew,missingcharacter/homebrew,kalbasit/homebrew,jacobsa/homebrew,feuvan/homebrew,michaKFromParis/homebrew-sparks,theeternalsw0rd/homebrew,xcezx/homebrew,tjnycum/homebrew,buzzedword/homebrew,martinklepsch/homebrew,stevenjack/homebrew,OlivierParent/homebrew,xanderlent/homebrew,tkelman/homebrew,koraktor/homebrew,Habbie/homebrew,AGWA-forks/homebrew,ekmett/homebrew,ssp/homebrew,jose-cieni-movile/homebrew,thuai/boxen,jesboat/homebrew,digiter/linuxbrew,outcoldman/linuxbrew,sportngin/homebrew,dalguji/homebrew,kodabb/homebrew,tutumcloud/homebrew,cbeck88/linuxbrew,jcassiojr/homebrew,evanrs/homebrew,oneillkza/linuxbrew,rhunter/homebrew,sjackman/linuxbrew,blairham/homebrew,Ivanopalas/homebrew,supriyantomaftuh/homebrew,auvi/homebrew,KevinSjoberg/homebrew,danielmewes/homebrew,benswift404/homebrew,psibre/homebrew,mattfritz/homebrew,dolfly/homebrew,hyokosdeveloper/linuxbrew,jbpionnier/homebrew,atsjj/homebrew,mattprowse/homebrew,ekmett/homebrew,alexandrecormier/homebrew,pullreq/homebrew,sugryo/homebrew,sorin-ionescu/homebrew,valkjsaaa/homebrew,davidcelis/homebrew,qskycolor/homebrew,nshemonsky/homebrew,dirn/homebrew,felixonmars/homebrew,Homebrew/linuxbrew,ssgelm/homebrew,zhimsel/homebrew,princeofdarkness76/homebrew,alindeman/homebrew,dholm/homebrew,influxdb/homebrew,nkolomiec/homebrew,reelsense/homebrew,jf647/homebrew,tpot/homebrew,Hs-Yeah/homebrew,tomguiter/homebrew,dtrebbien/homebrew,zabawaba99/homebrew,NfNitLoop/homebrew,zebMcCorkle/homebrew,gcstang/linuxbrew,hikaruworld/homebrew,ktheory/homebrew,s6stuc/homebrew,indrajitr/homebrew,nelstrom/homebrew,zabawaba99/homebrew,bchatard/homebrew,protomouse/homebrew,ryanfb/homebrew,rillian/homebrew,ehamberg/homebrew,akshayvaidya/homebrew,iblueer/homebrew,liamstask/homebrew,benjaminfrank/homebrew,lmontrieux/homebrew,whistlerbrk/homebrew,bbhoss/homebrew,AGWA-forks/homebrew,markpeek/homebrew,jeremiahyan/homebrew,pigoz/homebrew,andyshinn/homebrew,catap/homebrew,mndrix/homebrew,FiMka/homebrew,Drewshg312/homebrew,Originate/homebrew,barn/homebrew,klatys/homebrew,mapbox/homebrew,filcab/homebrew,khwon/homebrew,dutchcoders/homebrew,tzudot/homebrew,hanlu-chen/homebrew,jehutymax/homebrew,kwilczynski/homebrew,mpfz0r/homebrew,theopolis/homebrew,shawndellysse/homebrew,cooltheo/homebrew,maxhope/homebrew,alfasapy/homebrew,pinkpolygon/homebrew,mrkn/homebrew,kawanet/homebrew,michaKFromParis/homebrew-sparks,oliviertoupin/homebrew,MSch/homebrew,simsicon/homebrew,hakamadare/homebrew,yumitsu/homebrew,sock-puppet/homebrew,alanthing/homebrew,miry/homebrew,SiegeLord/homebrew,skatsuta/homebrew,Krasnyanskiy/homebrew,tavisto/homebrew,koraktor/homebrew,gcstang/linuxbrew,redpen-cc/homebrew,sptramer/homebrew,alfasapy/homebrew,mgiglia/homebrew,jesboat/homebrew,erezny/homebrew,baldwicc/homebrew,yyn835314557/homebrew,zachmayer/homebrew,mjc-/homebrew,pdxdan/homebrew,thuai/boxen,MartinDelille/homebrew,joshfriend/homebrew,mttrb/homebrew,bettyDes/homebrew,halloleo/homebrew,lmontrieux/homebrew,gvangool/homebrew,packetcollision/homebrew,gunnaraasen/homebrew,ExtremeMan/homebrew,keith/homebrew,brevilo/linuxbrew,3van/homebrew,sachiketi/homebrew,fabianfreyer/homebrew,mgiglia/homebrew,plattenschieber/homebrew,stoshiya/homebrew,adamchainz/homebrew,jack-and-rozz/linuxbrew,YOTOV-LIMITED/homebrew,tany-ovcharenko/depot,davydden/homebrew,redpen-cc/homebrew,megahall/homebrew,tomas/linuxbrew,tghs/linuxbrew,Russell91/homebrew,nelstrom/homebrew,gabelevi/homebrew,bendoerr/homebrew,karlhigley/homebrew,n8henrie/homebrew,moyogo/homebrew,Austinpb/homebrew,Noctem/homebrew,zoltansx/homebrew,mjc-/homebrew,docwhat/homebrew,ariscop/homebrew,sje30/homebrew,Sachin-Ganesh/homebrew,Redth/homebrew,ehogberg/homebrew,catap/homebrew,anders/homebrew,slnovak/homebrew,zoidbergwill/homebrew,jwatzman/homebrew,Gasol/homebrew,seegno-forks/homebrew,miketheman/homebrew,LegNeato/homebrew,dongcarl/homebrew,int3h/homebrew,princeofdarkness76/homebrew,lvicentesanchez/linuxbrew,ianbrandt/homebrew,Lywangwenbin/homebrew,felixonmars/homebrew,geoff-codes/homebrew,bukzor/linuxbrew,kbrock/homebrew,PikachuEXE/homebrew,exicon/homebrew,influxdata/homebrew,alexbukreev/homebrew,waj/homebrew,mhartington/homebrew,mactkg/homebrew,packetcollision/homebrew,brunchboy/homebrew,hwhelchel/homebrew,cHoco/homebrew,ehamberg/homebrew,kilojoules/homebrew,sideci-sample/sideci-sample-homebrew,tutumcloud/homebrew,andreyto/homebrew,davydden/linuxbrew,jwillemsen/homebrew,ilidar/homebrew,hanxue/homebrew,voxxit/homebrew,ericzhou2008/homebrew,dongcarl/homebrew,a1dutch/homebrew,187j3x1/homebrew,sorin-ionescu/homebrew,sorin-ionescu/homebrew,feugenix/homebrew,jessamynsmith/homebrew,lvicentesanchez/homebrew,booi/homebrew,gijzelaerr/homebrew,youprofit/homebrew,cprecioso/homebrew,thejustinwalsh/homebrew,Spacecup/homebrew,bukzor/linuxbrew,optikfluffel/homebrew,redpen-cc/homebrew,pigri/homebrew,baob/homebrew,danpalmer/homebrew,brotbert/homebrew,kodabb/homebrew,zoidbergwill/homebrew,SteveClement/homebrew,ianbrandt/homebrew,creack/homebrew,waynegraham/homebrew,pedromaltez-forks/homebrew,mgiglia/homebrew,petere/homebrew,mjbshaw/homebrew,mokkun/homebrew,decors/homebrew,kazuho/homebrew,francaguilar/homebrew,teslamint/homebrew,mciantyre/homebrew,jedahan/homebrew,tkelman/homebrew,barn/homebrew,onlynone/homebrew,number5/homebrew,joshfriend/homebrew,timomeinen/homebrew,rs/homebrew,quantumsteve/homebrew,QuinnyPig/homebrew,hmalphettes/homebrew,danabrand/linuxbrew,seeden/homebrew,kbrock/homebrew,bchatard/homebrew,jbarker/homebrew,sitexa/homebrew,clemensg/homebrew,treyharris/homebrew,jedahan/homebrew,andreyto/homebrew,darknessomi/homebrew,marcwebbie/homebrew,ortho/homebrew,ctate/autocode-homebrew,joschi/homebrew,yangj1e/homebrew,cchacin/homebrew,nicowilliams/homebrew,phrase/homebrew,kidaa/homebrew,hanlu-chen/homebrew,youprofit/homebrew,pcottle/homebrew,gicmo/homebrew,akshayvaidya/homebrew,marcwebbie/homebrew,DoomHammer/linuxbrew,thrifus/homebrew,lhahne/homebrew,heinzf/homebrew,gnubila-france/linuxbrew,GeekHades/homebrew,cosmo0920/homebrew,eighthave/homebrew,lucas-clemente/homebrew,mciantyre/homebrew,SampleLiao/homebrew,rosalsm/homebrew,bcomnes/homebrew,indera/homebrew,jspahrsummers/homebrew,rlhh/homebrew,danielmewes/homebrew,grepnull/homebrew,jonafato/homebrew,sideci-sample/sideci-sample-homebrew,hongkongkiwi/homebrew,esamson/homebrew,sublimino/linuxbrew,TrevorSayre/homebrew,dalanmiller/homebrew,bbahrami/homebrew,adevress/homebrew,otaran/homebrew,freedryk/homebrew,tschoonj/homebrew,odekopoon/homebrew,zoidbergwill/homebrew,brunchboy/homebrew,dlesaca/homebrew,a-b/homebrew,songjizu001/homebrew,alex/homebrew,tzudot/homebrew,blogabe/homebrew,tyrchen/homebrew,LegNeato/homebrew,felixonmars/homebrew,romejoe/linuxbrew,lhahne/homebrew,reelsense/homebrew,mapbox/homebrew,brianmhunt/homebrew,caputomarcos/linuxbrew,dambrisco/homebrew,rosalsm/homebrew,moyogo/homebrew,s6stuc/homebrew,grob3/homebrew,afb/homebrew,cchacin/homebrew,menivaitsi/homebrew,karlhigley/homebrew,romejoe/linuxbrew,patrickmckenna/homebrew,kim0/homebrew,mindrones/homebrew,mapbox/homebrew,jose-cieni-movile/homebrew,jingweno/homebrew,missingcharacter/homebrew,pdpi/homebrew,tghs/linuxbrew,iostat/homebrew2,stevenjack/homebrew,theopolis/homebrew,CNA-Bld/homebrew,manphiz/homebrew,Govinda-Fichtner/homebrew,ngoldbaum/homebrew,ptolemarch/homebrew,tonyghita/homebrew,klatys/homebrew,anjackson/homebrew,zebMcCorkle/homebrew,superlukas/homebrew,tjhei/linuxbrew,mroth/homebrew,bright-sparks/homebrew,adamliter/homebrew,danielmewes/homebrew,exicon/homebrew,outcoldman/homebrew,nysthee/homebrew,razamatan/homebrew,adriancole/homebrew,Cottser/homebrew,alex-courtis/homebrew,Cutehacks/homebrew,gonzedge/homebrew,rstacruz/homebrew,ajshort/homebrew,fabianschuiki/homebrew,tbetbetbe/linuxbrew,jconley/homebrew,ilovezfs/homebrew,skinny-framework/homebrew,cesar2535/homebrew,3van/homebrew,knpwrs/homebrew,cvrebert/homebrew,asparagui/homebrew,pedromaltez-forks/homebrew,QuinnyPig/homebrew,dholm/linuxbrew,SampleLiao/homebrew,AtnNn/homebrew,kidaa/homebrew,mgiglia/homebrew,dambrisco/homebrew,jonas/homebrew,tonyghita/homebrew,sjackman/linuxbrew,calmez/homebrew,mndrix/homebrew,jpscaletti/homebrew,SnoringFrog/homebrew,zoidbergwill/homebrew,dai0304/homebrew,cmvelo/homebrew,ieure/homebrew,alexreg/homebrew,jessamynsmith/homebrew,rcombs/homebrew,wfalkwallace/homebrew,BlackFrog1/homebrew,johanhammar/homebrew,telamonian/linuxbrew,sdebnath/homebrew,Red54/homebrew,lrascao/homebrew,bigbes/homebrew,vinodkone/homebrew,mattfarina/homebrew,harsha-mudi/homebrew,nnutter/homebrew,marcwebbie/homebrew,5zzang/homebrew,adamliter/linuxbrew,jiashuw/homebrew,klatys/homebrew,yyn835314557/homebrew,lemaiyan/homebrew,markpeek/homebrew,ear/homebrew,retrography/homebrew,jmtd/homebrew,nelstrom/homebrew,cosmo0920/homebrew,Austinpb/homebrew,erezny/homebrew,kalbasit/homebrew,ingmarv/homebrew,RadicalZephyr/homebrew,tehmaze-labs/homebrew,jbeezley/homebrew,pnorman/homebrew,soleo/homebrew,danieroux/homebrew,10sr/linuxbrew,jwillemsen/homebrew,jianjin/homebrew,chfast/homebrew,ktheory/homebrew,GeekHades/homebrew,alindeman/homebrew,flysonic10/homebrew,gonzedge/homebrew,ffleming/homebrew,jonafato/homebrew,PikachuEXE/homebrew,craig5/homebrew,andreyto/homebrew,DDShadoww/homebrew,bjlxj2008/homebrew,bjlxj2008/homebrew,rhoffman3621/learn-rails,wfarr/homebrew,raphaelcohn/homebrew,DDShadoww/homebrew,oliviertoupin/homebrew,brevilo/linuxbrew,karlhigley/homebrew,tomyun/homebrew,royhodgman/homebrew,dambrisco/homebrew,mindrones/homebrew,tyrchen/homebrew,chenflat/homebrew,xanderlent/homebrew,winordie-47/linuxbrew1,xuebinglee/homebrew,SnoringFrog/homebrew,thrifus/homebrew,yazuuchi/homebrew,kwilczynski/homebrew,lnr0626/homebrew,skatsuta/homebrew,Hasimir/homebrew,linse073/homebrew,rneatherway/homebrew,cosmo0920/homebrew,amarshall/homebrew,elasticdog/homebrew,martinklepsch/homebrew,AGWA-forks/homebrew,cvrebert/homebrew,zeezey/homebrew,reelsense/linuxbrew,dalinaum/homebrew,sock-puppet/homebrew,decors/homebrew,mattfarina/homebrew,paulbakker/homebrew,DarthGandalf/homebrew,sakra/homebrew,linkinpark342/homebrew,Russell91/homebrew,MSch/homebrew,torgartor21/homebrew,Gasol/homebrew,saketkc/linuxbrew,LaurentFough/homebrew,scardetto/homebrew,klatys/homebrew,sigma-random/homebrew,ls2uper/homebrew,ngoldbaum/homebrew,cHoco/homebrew,nandub/homebrew,peteristhegreat/homebrew,hakamadare/homebrew,vigo/homebrew,guoxiao/homebrew,winordie-47/linuxbrew1,sferik/homebrew,John-Colvin/homebrew,eagleflo/homebrew,muellermartin/homebrew,hyuni/homebrew,SteveClement/homebrew,AICIDNN/homebrew,KevinSjoberg/homebrew,ryanshaw/homebrew,bertjwregeer/homebrew,ybott/homebrew,esamson/homebrew,helloworld-zh/homebrew,davidmalcolm/homebrew,mattprowse/homebrew,ralic/homebrew,tomekr/homebrew,tdsmith/linuxbrew,kodabb/homebrew,retrography/homebrew,kwadade/LearnRuby,msurovcak/homebrew,sigma-random/homebrew,seegno-forks/homebrew,sock-puppet/homebrew,Cutehacks/homebrew,amenk/linuxbrew,dickeyxxx/homebrew,Klozz/homebrew,royalwang/homebrew,LegNeato/homebrew,ahihi/tigerbrew,skinny-framework/homebrew,treyharris/homebrew,AlexejK/homebrew,bl1nk/homebrew,jcassiojr/homebrew,dpalmer93/homebrew,jmagnusson/homebrew,jconley/homebrew,jiaoyigui/homebrew,eagleflo/homebrew,xinlehou/homebrew,yidongliu/homebrew,notDavid/homebrew,zchee/homebrew,amjith/homebrew,jkarneges/homebrew,simsicon/homebrew,AlekSi/homebrew,hakamadare/homebrew,mpfz0r/homebrew,jsallis/homebrew,keith/homebrew,gyaresu/homebrew,shazow/homebrew,KenanSulayman/homebrew,zj568/homebrew,esalling23/homebrew,dalanmiller/homebrew,calmez/homebrew,geometrybase/homebrew,deployable/homebrew,kenips/homebrew,slnovak/homebrew,southwolf/homebrew,benesch/homebrew,cbenhagen/homebrew,afh/homebrew,bukzor/homebrew,mommel/homebrew,nysthee/homebrew,helloworld-zh/homebrew,NfNitLoop/homebrew,mcolic/homebrew,chkuendig/homebrew,a1dutch/homebrew,virtuald/homebrew,durka/homebrew,ehamberg/homebrew,amenk/linuxbrew,gnawhleinad/homebrew,thebyrd/homebrew,crystal/autocode-homebrew,zeha/homebrew,dunn/linuxbrew,LinusU/homebrew,craigbrad/homebrew,jeremiahyan/homebrew,baob/homebrew,getgauge/homebrew,frodeaa/homebrew,vinicius5581/homebrew,klazuka/homebrew,BrewTestBot/homebrew,mbrevda/homebrew,tobz-nz/homebrew,zhimsel/homebrew,qiruiyin/homebrew,mhartington/homebrew,drewpc/homebrew,SuperNEMO-DBD/cadfaelbrew,jab/homebrew,pwnall/homebrew,zhipeng-jia/homebrew,prasincs/homebrew,davydden/linuxbrew,stoshiya/homebrew,linkinpark342/homebrew,craigbrad/homebrew,Dreysman/homebrew,jkarneges/homebrew,alexethan/homebrew,ryanmt/homebrew,craig5/homebrew,morevalily/homebrew,wkentaro/homebrew,jimmy906/homebrew,bkonosky/homebrew,deployable/homebrew,simsicon/homebrew,robotblake/homebrew,galaxy001/homebrew,anders/homebrew,khwon/homebrew,jarrettmeyer/homebrew,oschwald/homebrew,bjorand/homebrew,jlisic/linuxbrew,totalvoidness/homebrew,rgbkrk/homebrew,tobz-nz/homebrew,Gutek/homebrew,kkirsche/homebrew,cbenhagen/homebrew,tonyghita/homebrew,wolfd/homebrew,cprecioso/homebrew,sitexa/homebrew,LinusU/homebrew,jimmy906/homebrew,cvrebert/homebrew,lousama/homebrew,denvazh/homebrew,danpalmer/homebrew,dirn/homebrew,auvi/homebrew,jessamynsmith/homebrew,phrase/homebrew,arnested/homebrew,schuyler/homebrew,JerroldLee/homebrew,influxdata/homebrew,OlivierParent/homebrew,drbenmorgan/linuxbrew,bcomnes/homebrew,anjackson/homebrew,huitseeker/homebrew,polamjag/homebrew,grepnull/homebrew,davydden/homebrew,jamesdphillips/homebrew,Sachin-Ganesh/homebrew,zenazn/homebrew,idolize/homebrew,FiMka/homebrew,mpfz0r/homebrew,kashif/homebrew,ebardsley/homebrew,Firefishy/homebrew,mpfz0r/homebrew,pitatensai/homebrew,afh/homebrew,davidcelis/homebrew,bitrise-io/homebrew,gnawhleinad/homebrew,will/homebrew,booi/homebrew,ldiqual/homebrew,sock-puppet/homebrew,royalwang/homebrew,liamstask/homebrew,ariscop/homebrew,boshnivolo/homebrew,tstack/homebrew,cosmo0920/homebrew,adamliter/linuxbrew,felixonmars/homebrew,anarchivist/homebrew,jianjin/homebrew,dkotvan/homebrew,menivaitsi/homebrew,zj568/homebrew,kimhunter/homebrew,LeoCavaille/homebrew,bruno-/homebrew,NRauh/homebrew,ajshort/homebrew,fabianschuiki/homebrew,alebcay/homebrew,lousama/homebrew,princeofdarkness76/linuxbrew,bcwaldon/homebrew,bjlxj2008/homebrew,mokkun/homebrew,kevmoo/homebrew,kimhunter/homebrew,SnoringFrog/homebrew,MoSal/homebrew,oubiwann/homebrew,mrkn/homebrew,scorphus/homebrew,pullreq/homebrew,thuai/boxen,1zaman/homebrew,MoSal/homebrew,ahihi/tigerbrew,vihangm/homebrew,grmartin/homebrew,koenrh/homebrew,thejustinwalsh/homebrew,3van/homebrew,ssp/homebrew,feuvan/homebrew,DDShadoww/homebrew,bendemaree/homebrew,mactkg/homebrew,psibre/homebrew,ngoyal/homebrew,a-b/homebrew,bwmcadams/homebrew,kawanet/homebrew,5zzang/homebrew,youtux/homebrew,buzzedword/homebrew,int3h/homebrew,gnubila-france/linuxbrew,tkelman/homebrew,henry0312/homebrew,wrunnery/homebrew,alindeman/homebrew,Noctem/homebrew,jsallis/homebrew,englishm/homebrew,skinny-framework/homebrew,alex-zhang/homebrew,PikachuEXE/homebrew,timsutton/homebrew,drewwells/homebrew,thebyrd/homebrew,ngoldbaum/homebrew,syhw/homebrew,atsjj/homebrew,sarvex/linuxbrew,tomyun/homebrew,jpscaletti/homebrew,dlo/homebrew,YOTOV-LIMITED/homebrew,colindean/homebrew,chadcatlett/homebrew,SuperNEMO-DBD/cadfaelbrew,missingcharacter/homebrew,rs/homebrew,moltar/homebrew,zachmayer/homebrew,gawbul/homebrew,pnorman/homebrew,smarek/homebrew,ktheory/homebrew,dardo82/homebrew,andrew-regan/homebrew,windoze/homebrew,shawndellysse/homebrew,pcottle/homebrew,bluca/homebrew,treyharris/homebrew,cooltheo/homebrew,MonCoder/homebrew,tylerball/homebrew,caputomarcos/linuxbrew,gnawhleinad/homebrew,hyuni/homebrew,ajshort/homebrew,xyproto/homebrew,flysonic10/homebrew,hermansc/homebrew,Govinda-Fichtner/homebrew,knpwrs/homebrew,carlmod/homebrew,maxhope/homebrew,harelba/homebrew,cmvelo/homebrew,bright-sparks/homebrew,missingcharacter/homebrew,soleo/homebrew,bidle/homebrew,iamcharp/homebrew,hvnsweeting/homebrew,int3h/homebrew,codeout/homebrew,linse073/homebrew,kmiscia/homebrew,MrChen2015/homebrew,baldwicc/homebrew,n8henrie/homebrew,NRauh/homebrew,jbarker/homebrew,OJFord/homebrew,galaxy001/homebrew,haihappen/homebrew,xurui3762791/homebrew,RadicalZephyr/homebrew,TrevorSayre/homebrew,outcoldman/homebrew,bruno-/homebrew,kad/homebrew,kevmoo/homebrew,jeremiahyan/homebrew,okuramasafumi/homebrew,ericfischer/homebrew,petemcw/homebrew,mobileoverlord/homebrew-1,Originate/homebrew,harsha-mudi/homebrew,gunnaraasen/homebrew,grmartin/homebrew,retrography/homebrew,dlo/homebrew,afdnlw/linuxbrew,adevress/homebrew,voxxit/homebrew,AntonioMeireles/homebrew,adriancole/homebrew,wangranche/homebrew,brotbert/homebrew,jehutymax/homebrew,bettyDes/homebrew,pwnall/homebrew,scardetto/homebrew,raphaelcohn/homebrew,joeyhoer/homebrew,mbi/homebrew,nshemonsky/homebrew,silentbicycle/homebrew,BrewTestBot/homebrew,davidmalcolm/homebrew,bl1nk/homebrew,DDShadoww/homebrew,erkolson/homebrew,sportngin/homebrew,halloleo/homebrew,ptolemarch/homebrew,thebyrd/homebrew,flysonic10/homebrew,markpeek/homebrew,wadejong/homebrew,mjc-/homebrew,theckman/homebrew,pigri/homebrew,Gui13/linuxbrew,gunnaraasen/homebrew,Ivanopalas/homebrew,DarthGandalf/homebrew,esalling23/homebrew,ktaragorn/homebrew,dconnolly/homebrew,dconnolly/homebrew,giffels/homebrew,alexreg/homebrew,thejustinwalsh/homebrew,chadcatlett/homebrew,rillian/homebrew,ybott/homebrew,rnh/homebrew,mroch/homebrew,royalwang/homebrew,Habbie/homebrew,justjoheinz/homebrew,pinkpolygon/homebrew,e-jigsaw/homebrew,dalanmiller/homebrew,rgbkrk/homebrew,mndrix/homebrew,esamson/homebrew,hongkongkiwi/homebrew,sometimesfood/homebrew,Linuxbrew/linuxbrew,baob/homebrew,benjaminfrank/homebrew,polamjag/homebrew,aristiden7o/homebrew,guoxiao/homebrew,rneatherway/homebrew,jab/homebrew,dunn/homebrew,muellermartin/homebrew,codeout/homebrew,mcolic/homebrew,kevmoo/homebrew,AtkinsChang/homebrew,wkentaro/homebrew,yumitsu/homebrew,trajano/homebrew,jpsim/homebrew,jbaum98/linuxbrew,jackmcgreevy/homebrew,brevilo/linuxbrew,cnbin/homebrew,odekopoon/homebrew,sakra/homebrew,tuxu/homebrew,e-jigsaw/homebrew,s6stuc/homebrew,10sr/linuxbrew,dlesaca/homebrew,Hasimir/homebrew,jeffmo/homebrew,Gutek/homebrew,youprofit/homebrew,mtfelix/homebrew,xuebinglee/homebrew,megahall/homebrew,schuyler/homebrew,number5/homebrew,hwhelchel/homebrew,tomekr/homebrew,cmvelo/homebrew,mmizutani/homebrew,darknessomi/homebrew,jeromeheissler/homebrew,antogg/homebrew,afh/homebrew,rwstauner/homebrew,carlmod/homebrew,godu/homebrew,ariscop/homebrew,AlexejK/homebrew,rneatherway/homebrew,influxdb/homebrew,elasticdog/homebrew,Monits/homebrew,psibre/homebrew,rneatherway/homebrew,julienXX/homebrew,peteristhegreat/homebrew,frozzare/homebrew,ilidar/homebrew,tavisto/homebrew,frozzare/homebrew,shawndellysse/homebrew,jacobsa/homebrew,davydden/linuxbrew,gabelevi/homebrew,Russell91/homebrew,elyscape/homebrew,jpscaletti/homebrew,jwillemsen/linuxbrew,huitseeker/homebrew,zachmayer/homebrew,Cutehacks/homebrew,adamliter/homebrew,changzuozhen/homebrew,summermk/homebrew,ebouaziz/linuxbrew,chfast/homebrew,xcezx/homebrew,coldeasy/homebrew,lrascao/homebrew,SteveClement/homebrew,digiter/linuxbrew,poindextrose/homebrew,malmaud/homebrew,verbitan/homebrew,LonnyGomes/homebrew,indrajitr/homebrew,tjhei/linuxbrew,influxdb/homebrew,jgelens/homebrew,coldeasy/homebrew,ieure/homebrew,mommel/homebrew,supriyantomaftuh/homebrew,marcelocantos/homebrew,xinlehou/homebrew,Redth/homebrew,base10/homebrew,syhw/homebrew,pdxdan/homebrew,dstftw/homebrew,base10/homebrew,dirn/homebrew,joshua-rutherford/homebrew,yidongliu/homebrew,jgelens/homebrew,harsha-mudi/homebrew,mmizutani/homebrew,tsaeger/homebrew,zhimsel/homebrew,dickeyxxx/homebrew,ericfischer/homebrew,sportngin/homebrew,will/homebrew,aguynamedryan/homebrew,IsmailM/linuxbrew,bwmcadams/homebrew,RandyMcMillan/homebrew,hwhelchel/homebrew,dstftw/homebrew,Homebrew/homebrew,Cutehacks/homebrew,Kentzo/homebrew,emcrisostomo/homebrew,will/homebrew,alexreg/homebrew,BlackFrog1/homebrew,ralic/homebrew,finde/homebrew,xyproto/homebrew,oschwald/homebrew,paour/homebrew,anarchivist/homebrew,zfarrell/homebrew,antogg/homebrew,georgschoelly/homebrew,ndimiduk/homebrew,lucas-clemente/homebrew,alanthing/homebrew,ExtremeMan/homebrew,mattfritz/homebrew,trskop/linuxbrew,egentry/homebrew,crystal/autocode-homebrew,waynegraham/homebrew,yazuuchi/homebrew,emcrisostomo/homebrew,jmstacey/homebrew,elamc/homebrew,hvnsweeting/homebrew,tpot/homebrew,Originate/homebrew,hongkongkiwi/homebrew,Moisan/homebrew,cbeck88/linuxbrew,xyproto/homebrew,alex/homebrew,tehmaze-labs/homebrew,vinodkone/homebrew,thuai/boxen,dtan4/homebrew,Monits/homebrew,dmarkrollins/homebrew,RadicalZephyr/homebrew,protomouse/homebrew,mokkun/homebrew,benswift404/homebrew,pigoz/homebrew,sidhart/homebrew,higanworks/homebrew,imjerrybao/homebrew,oncletom/homebrew,gonzedge/homebrew,rs/homebrew,andy12530/homebrew,influxdata/homebrew,brianmhunt/homebrew,vigo/homebrew,base10/homebrew,torgartor21/homebrew,OJFord/homebrew,johanhammar/homebrew,jiashuw/homebrew,cooltheo/homebrew,akupila/homebrew,kazuho/homebrew,skinny-framework/homebrew,adamliter/linuxbrew,sidhart/homebrew,2inqui/homebrew,zebMcCorkle/homebrew,dstftw/homebrew,alindeman/homebrew,dgageot/homebrew,denvazh/homebrew,RandyMcMillan/homebrew,bitrise-io/homebrew,e-jigsaw/homebrew,nysthee/homebrew,DarthGandalf/homebrew,mommel/homebrew,pampata/homebrew,QuinnyPig/homebrew,pigoz/homebrew,ebouaziz/linuxbrew,thinker0/homebrew,ablyler/homebrew,lewismc/homebrew,Krasnyanskiy/homebrew,higanworks/homebrew,jeremiahyan/homebrew,protomouse/homebrew,Moisan/homebrew,daviddavis/homebrew,SnoringFrog/homebrew,iblueer/homebrew,2inqui/homebrew,zchee/homebrew,windoze/homebrew,bigbes/homebrew,dalinaum/homebrew,pgr0ss/homebrew,Noctem/homebrew,akshayvaidya/homebrew,dstndstn/homebrew,drbenmorgan/linuxbrew,eagleflo/homebrew,alex-zhang/homebrew,mbi/homebrew,asparagui/homebrew,erkolson/homebrew,jingweno/homebrew,mtfelix/homebrew,ened/homebrew,trskop/linuxbrew,malmaud/homebrew,jose-cieni-movile/homebrew,barn/homebrew,jspahrsummers/homebrew,drewwells/homebrew,kyanny/homebrew,sdebnath/homebrew,tbeckham/homebrew,BrewTestBot/homebrew,saketkc/homebrew,linkinpark342/homebrew,jiaoyigui/homebrew,getgauge/homebrew,AntonioMeireles/homebrew,skatsuta/homebrew,atsjj/homebrew,ge11232002/homebrew,elyscape/homebrew,boneskull/homebrew,scpeters/homebrew,finde/homebrew,moyogo/homebrew,wolfd/homebrew,tjt263/homebrew,lvicentesanchez/linuxbrew,tjhei/linuxbrew,jamer/homebrew,esalling23/homebrew,yoshida-mediba/homebrew,rlhh/homebrew,marcusandre/homebrew,djun-kim/homebrew,ybott/homebrew,alex-zhang/homebrew,jeromeheissler/homebrew,theeternalsw0rd/homebrew,creationix/homebrew,buzzedword/homebrew,whitej125/homebrew,boyanpenkov/homebrew,lucas-clemente/homebrew,kim0/homebrew,outcoldman/linuxbrew,jedahan/homebrew,timsutton/homebrew,LonnyGomes/homebrew,hyokosdeveloper/linuxbrew,cristobal/homebrew,razamatan/homebrew,gunnaraasen/homebrew,ndimiduk/homebrew,linse073/homebrew,vigo/homebrew,arrowcircle/homebrew,RandyMcMillan/homebrew,boyanpenkov/homebrew,apjanke/homebrew,cooltheo/homebrew,tschoonj/homebrew,sublimino/linuxbrew,MartinDelille/homebrew,adamchainz/homebrew,fabianfreyer/homebrew,mathieubolla/homebrew,tomas/homebrew,bluca/homebrew,rcombs/homebrew,dplarson/homebrew,verdurin/homebrew,pitatensai/homebrew,lvicentesanchez/linuxbrew,TrevorSayre/homebrew,docwhat/homebrew,kwadade/LearnRuby,TaylorMonacelli/homebrew,yonglehou/homebrew,marcwebbie/homebrew,blairham/homebrew,cvrebert/homebrew,MartinSeeler/homebrew,sitexa/homebrew,waj/homebrew,kevinastone/homebrew,mgiglia/homebrew,miry/homebrew,keithws/homebrew,guidomb/homebrew,pdpi/homebrew,rwstauner/homebrew,nandub/homebrew,nju520/homebrew,amjith/homebrew,TaylorMonacelli/homebrew,feugenix/homebrew,aaronwolen/homebrew,theeternalsw0rd/homebrew,auvi/homebrew,petemcw/homebrew,mtigas/homebrew,tbeckham/homebrew,Drewshg312/homebrew,elgertam/homebrew,akupila/homebrew,kalbasit/homebrew,dalguji/homebrew,tbetbetbe/linuxbrew,jiashuw/homebrew,bright-sparks/homebrew,sarvex/linuxbrew,haosdent/homebrew,thos37/homebrew,bruno-/homebrew,MSch/homebrew,nkolomiec/homebrew,rhendric/homebrew,iostat/homebrew2,poindextrose/homebrew,stoshiya/homebrew,QuinnyPig/homebrew,outcoldman/linuxbrew,joschi/homebrew,AtkinsChang/homebrew,oncletom/homebrew,mavimo/homebrew,tseven/homebrew,recruit-tech/homebrew,dkotvan/homebrew,sigma-random/homebrew,notDavid/homebrew,jeffmo/homebrew,justjoheinz/homebrew,eagleflo/homebrew,kmiscia/homebrew,vihangm/homebrew,poindextrose/homebrew,avnit/EGroovy,bidle/homebrew,ieure/homebrew,lnr0626/homebrew,Asuranceturix/homebrew,tjt263/homebrew,liamstask/homebrew,influxdata/homebrew,yumitsu/homebrew,chabhishek123/homebrew,treyharris/homebrew,mattfarina/homebrew,PikachuEXE/homebrew,zfarrell/homebrew,geometrybase/homebrew,Ferrari-lee/homebrew,ericzhou2008/homebrew,rgbkrk/homebrew,rillian/homebrew,GeekHades/homebrew,dardo82/homebrew,reelsense/linuxbrew,getgauge/homebrew,tkelman/homebrew,klazuka/homebrew,schuyler/homebrew,chenflat/homebrew,wolfd/homebrew,LeoCavaille/homebrew,iamcharp/homebrew,ExtremeMan/homebrew,guoxiao/homebrew,winordie-47/linuxbrew1,arnested/homebrew,rlister/homebrew,cnbin/homebrew,lemaiyan/homebrew,alexethan/homebrew,helloworld-zh/homebrew,imjerrybao/homebrew,yoshida-mediba/homebrew,tghs/linuxbrew,neronplex/homebrew,danieroux/homebrew,KenanSulayman/homebrew,ablyler/homebrew,akupila/homebrew,cbeck88/linuxbrew,SampleLiao/homebrew,qiruiyin/homebrew,jarrettmeyer/homebrew,heinzf/homebrew,scorphus/homebrew,osimola/homebrew,cffk/homebrew,anarchivist/homebrew,tonyghita/homebrew,higanworks/homebrew,mattbostock/homebrew,nju520/homebrew,silentbicycle/homebrew,tghs/linuxbrew,thos37/homebrew,xurui3762791/homebrew,finde/homebrew,cjheath/homebrew,pvrs12/homebrew,rosalsm/homebrew,amarshall/homebrew,mjbshaw/homebrew,zeezey/homebrew,jose-cieni-movile/homebrew,zorosteven/homebrew,galaxy001/homebrew,ndimiduk/homebrew,protomouse/homebrew,ehamberg/homebrew,sigma-random/homebrew,dmarkrollins/homebrew,rstacruz/homebrew,Red54/homebrew,kgb4000/homebrew,mathieubolla/homebrew,gabelevi/homebrew,princeofdarkness76/linuxbrew,zenazn/homebrew,qiruiyin/homebrew,geoff-codes/homebrew,zhipeng-jia/homebrew,kim0/homebrew,seeden/homebrew,hyuni/homebrew,ento/homebrew,coldeasy/homebrew,bmroberts1987/homebrew,oliviertoupin/homebrew,clemensg/homebrew,bidle/homebrew,cbenhagen/homebrew,andyshinn/homebrew,sarvex/linuxbrew,rlister/homebrew,bkonosky/homebrew,elamc/homebrew,gunnaraasen/homebrew,verbitan/homebrew,durka/homebrew,callahad/homebrew,saketkc/linuxbrew,dlesaca/homebrew,adamliter/homebrew,robrix/homebrew,okuramasafumi/homebrew,superlukas/homebrew,bendemaree/homebrew,godu/homebrew,kbinani/homebrew,LucyShapiro/before-after,MSch/homebrew,dholm/homebrew,waj/homebrew,oubiwann/homebrew,mattbostock/homebrew,bettyDes/homebrew,Angeldude/linuxbrew,dplarson/homebrew,royhodgman/homebrew,YOTOV-LIMITED/homebrew,guoxiao/homebrew,xb123456456/homebrew,6100590/homebrew,Drewshg312/homebrew,Kentzo/homebrew,digiter/linuxbrew,hanxue/homebrew,indrajitr/homebrew,zoltansx/homebrew,RSamokhin/homebrew,mhartington/homebrew,julienXX/homebrew,mtfelix/homebrew,feugenix/homebrew,dtrebbien/homebrew,tzudot/homebrew,DarthGandalf/homebrew,jwillemsen/linuxbrew,haihappen/homebrew,dunn/homebrew,ebardsley/homebrew,bbhoss/homebrew,cffk/homebrew,tany-ovcharenko/depot,joeyhoer/homebrew,Angeldude/linuxbrew,qskycolor/homebrew,arg/homebrew,haf/homebrew,vladshablinsky/homebrew,keith/homebrew,brendanator/linuxbrew,jbaum98/linuxbrew,yyn835314557/homebrew,aaronwolen/homebrew,daviddavis/homebrew,kevinastone/homebrew,freedryk/homebrew,whitej125/homebrew,superlukas/homebrew,markpeek/homebrew,optikfluffel/homebrew,rtyley/homebrew,dunn/homebrew,joeyhoer/homebrew,brotbert/homebrew,LeonB/linuxbrew,dkotvan/homebrew,DoomHammer/linuxbrew,dutchcoders/homebrew,kad/homebrew,theckman/homebrew,smarek/homebrew,joshua-rutherford/homebrew,drbenmorgan/linuxbrew,verdurin/homebrew,lousama/homebrew,ortho/homebrew,tomekr/homebrew,brendanator/linuxbrew,Gui13/linuxbrew,Klozz/homebrew,boneskull/homebrew,cbenhagen/homebrew,dplarson/homebrew,ajshort/homebrew,creack/homebrew,base10/homebrew,sometimesfood/homebrew,jeromeheissler/homebrew,ainstushar/homebrew,AntonioMeireles/homebrew,stevenjack/homebrew,gicmo/homebrew,chenflat/homebrew,kimhunter/homebrew,scorphus/homebrew,kkirsche/homebrew,dgageot/homebrew,frickler01/homebrew,swallat/homebrew,ptolemarch/homebrew,kilojoules/homebrew,creationix/homebrew,Sachin-Ganesh/homebrew,AlexejK/homebrew,frodeaa/homebrew,mbrevda/homebrew,e-jigsaw/homebrew,pvrs12/homebrew,cesar2535/homebrew,dickeyxxx/homebrew,grepnull/homebrew,ebouaziz/linuxbrew,justjoheinz/homebrew,hanxue/homebrew,jonafato/homebrew,Red54/homebrew,nshemonsky/homebrew,packetcollision/homebrew,srikalyan/homebrew,guidomb/homebrew,windoze/homebrew,martinklepsch/homebrew,Angeldude/linuxbrew,scpeters/homebrew
ruby
## Code Before: require 'formula' class PerconaToolkit < Formula homepage 'http://www.percona.com/software/percona-toolkit/' url 'http://www.percona.com/redir/downloads/percona-toolkit/2.1.1/percona-toolkit-2.1.1.tar.gz' md5 '14be6a3e31c7b20aeca78e3e0aed6edc' depends_on 'Time::HiRes' => :perl depends_on 'DBD::mysql' => :perl def install system "perl", "Makefile.PL", "PREFIX=#{prefix}" system "make" system "make test" system "make install" end def test system "#{bin}/pt-archiver" system "#{bin}/pt-config-diff" system "#{bin}/pt-deadlock-logger" system "#{bin}/pt-duplicate-key-checker" system "#{bin}/pt-find" system "#{bin}/pt-fk-error-logger" system "#{bin}/pt-heartbeat" system "#{bin}/pt-kill" system "#{bin}/pt-log-player" system "#{bin}/pt-pmp" system "#{bin}/pt-slave-delay" system "#{bin}/pt-slave-find" system "#{bin}/pt-slave-restart" system "#{bin}/pt-summary" system "#{bin}/pt-table-checksum" system "#{bin}/pt-table-sync" system "#{bin}/pt-upgrade" system "#{bin}/pt-variable-advisor" end end ## Instruction: percona: Use SHA1 instead of MD5 Signed-off-by: Adam Vandenberg <34c2b6407fd5a10249a15d699d40f9ed1782e98c@gmail.com> ## Code After: require 'formula' class PerconaToolkit < Formula homepage 'http://www.percona.com/software/percona-toolkit/' url 'http://www.percona.com/redir/downloads/percona-toolkit/2.1.1/percona-toolkit-2.1.1.tar.gz' sha1 'bbaf2440c55bb62b5e98d08bd3246e82c84f6f2a' depends_on 'Time::HiRes' => :perl depends_on 'DBD::mysql' => :perl def install system "perl", "Makefile.PL", "PREFIX=#{prefix}" system "make" system "make test" system "make install" end def test system "#{bin}/pt-archiver" system "#{bin}/pt-config-diff" system "#{bin}/pt-deadlock-logger" system "#{bin}/pt-duplicate-key-checker" system "#{bin}/pt-find" system "#{bin}/pt-fk-error-logger" system "#{bin}/pt-heartbeat" system "#{bin}/pt-kill" system "#{bin}/pt-log-player" system "#{bin}/pt-pmp" system "#{bin}/pt-slave-delay" system "#{bin}/pt-slave-find" system "#{bin}/pt-slave-restart" system "#{bin}/pt-summary" system "#{bin}/pt-table-checksum" system "#{bin}/pt-table-sync" system "#{bin}/pt-upgrade" system "#{bin}/pt-variable-advisor" end end
require 'formula' class PerconaToolkit < Formula homepage 'http://www.percona.com/software/percona-toolkit/' url 'http://www.percona.com/redir/downloads/percona-toolkit/2.1.1/percona-toolkit-2.1.1.tar.gz' - md5 '14be6a3e31c7b20aeca78e3e0aed6edc' + sha1 'bbaf2440c55bb62b5e98d08bd3246e82c84f6f2a' depends_on 'Time::HiRes' => :perl depends_on 'DBD::mysql' => :perl def install system "perl", "Makefile.PL", "PREFIX=#{prefix}" system "make" system "make test" system "make install" end def test system "#{bin}/pt-archiver" system "#{bin}/pt-config-diff" system "#{bin}/pt-deadlock-logger" system "#{bin}/pt-duplicate-key-checker" system "#{bin}/pt-find" system "#{bin}/pt-fk-error-logger" system "#{bin}/pt-heartbeat" system "#{bin}/pt-kill" system "#{bin}/pt-log-player" system "#{bin}/pt-pmp" system "#{bin}/pt-slave-delay" system "#{bin}/pt-slave-find" system "#{bin}/pt-slave-restart" system "#{bin}/pt-summary" system "#{bin}/pt-table-checksum" system "#{bin}/pt-table-sync" system "#{bin}/pt-upgrade" system "#{bin}/pt-variable-advisor" end end
2
0.052632
1
1
cc484542ca9c30b802f57edaf764f3f727804aa4
src/handler-runner/InProcessRunner.js
src/handler-runner/InProcessRunner.js
'use strict' const serverlessLog = require('../serverlessLog.js') module.exports = class InProcessRunner { constructor(functionName, handlerPath, handlerName) { this._functionName = functionName this._handlerName = handlerName this._handlerPath = handlerPath } run(event, context, callback) { // TODO error handling? when module and/or function is not found // lazy load handler with first usage let handler try { handler = require(this._handlerPath)[this._handlerName] // eslint-disable-line } catch (err) { if (err.code === 'MODULE_NOT_FOUND') { serverlessLog.errorLog( `Could not find handler module '${this._handlerPath}' for function '${this._functionName}'.`, ) } throw err } if (typeof handler !== 'function') { throw new Error( `offline: handler '${this._handlerName}' in ${this._handlerPath} is not a function`, ) } return handler(event, context, callback) } }
'use strict' module.exports = class InProcessRunner { constructor(functionName, handlerPath, handlerName) { this._functionName = functionName this._handlerName = handlerName this._handlerPath = handlerPath } run(event, context, callback) { // check if the handler module path exists if (!require.resolve(this._handlerPath)) { throw new Error( `Could not find handler module '${this._handlerPath}' for function '${this._functionName}'.`, ) } // lazy load handler with first usage const handler = require(this._handlerPath)[this._handlerName] // eslint-disable-line if (typeof handler !== 'function') { throw new Error( `offline: handler '${this._handlerName}' in ${this._handlerPath} is not a function`, ) } return handler(event, context, callback) } }
Fix handler module path check, was broken for module not found in handler
Fix handler module path check, was broken for module not found in handler
JavaScript
mit
dherault/serverless-offline,dherault/serverless-offline,dherault/serverless-offline,dherault/serverless-offline,dherault/serverless-offline,dherault/serverless-offline,dherault/serverless-offline
javascript
## Code Before: 'use strict' const serverlessLog = require('../serverlessLog.js') module.exports = class InProcessRunner { constructor(functionName, handlerPath, handlerName) { this._functionName = functionName this._handlerName = handlerName this._handlerPath = handlerPath } run(event, context, callback) { // TODO error handling? when module and/or function is not found // lazy load handler with first usage let handler try { handler = require(this._handlerPath)[this._handlerName] // eslint-disable-line } catch (err) { if (err.code === 'MODULE_NOT_FOUND') { serverlessLog.errorLog( `Could not find handler module '${this._handlerPath}' for function '${this._functionName}'.`, ) } throw err } if (typeof handler !== 'function') { throw new Error( `offline: handler '${this._handlerName}' in ${this._handlerPath} is not a function`, ) } return handler(event, context, callback) } } ## Instruction: Fix handler module path check, was broken for module not found in handler ## Code After: 'use strict' module.exports = class InProcessRunner { constructor(functionName, handlerPath, handlerName) { this._functionName = functionName this._handlerName = handlerName this._handlerPath = handlerPath } run(event, context, callback) { // check if the handler module path exists if (!require.resolve(this._handlerPath)) { throw new Error( `Could not find handler module '${this._handlerPath}' for function '${this._functionName}'.`, ) } // lazy load handler with first usage const handler = require(this._handlerPath)[this._handlerName] // eslint-disable-line if (typeof handler !== 'function') { throw new Error( `offline: handler '${this._handlerName}' in ${this._handlerPath} is not a function`, ) } return handler(event, context, callback) } }
'use strict' - - const serverlessLog = require('../serverlessLog.js') module.exports = class InProcessRunner { constructor(functionName, handlerPath, handlerName) { this._functionName = functionName this._handlerName = handlerName this._handlerPath = handlerPath } run(event, context, callback) { - // TODO error handling? when module and/or function is not found + // check if the handler module path exists + if (!require.resolve(this._handlerPath)) { + throw new Error( + `Could not find handler module '${this._handlerPath}' for function '${this._functionName}'.`, + ) + } + // lazy load handler with first usage - - let handler - - try { - handler = require(this._handlerPath)[this._handlerName] // eslint-disable-line ? ^ + const handler = require(this._handlerPath)[this._handlerName] // eslint-disable-line ? ^^^^^ - } catch (err) { - if (err.code === 'MODULE_NOT_FOUND') { - serverlessLog.errorLog( - `Could not find handler module '${this._handlerPath}' for function '${this._functionName}'.`, - ) - } - - throw err - } if (typeof handler !== 'function') { throw new Error( `offline: handler '${this._handlerName}' in ${this._handlerPath} is not a function`, ) } return handler(event, context, callback) } }
25
0.657895
8
17
e954eb3b85d896dbffa2461f6a7204597d3cb934
CHANGELOG.md
CHANGELOG.md
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] ### Fixed - Added random suffix to bucket names to allow easy recreation. [#3] ## [0.1.0] - 20XX-YY-ZZ ### Added - Initial release [Unreleased]: https://github.com/terraform-google-modules/terraform-google-slo/compare/v0.1.0...HEAD [0.1.0]: https://github.com/terraform-google-modules/terraform-google-slo/releases/tag/v0.1.0 [#3]: https://github.com/terraform-google-modules/terraform-google-slo/pull/3
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] ### Fixed ## [0.1.0] - 2020-05-12 ### Fixed - Updating SLO configs now correctly re-deploys Cloud Functions. Fixes [#7] - Allow to use a custom service account in both modules. Fixes [#13] - Upgrade to latest slo-generator version. Fixes [#14] ### Added - Added random suffix to bucket names to allow easy recreation. [#3] - Initial release [unreleased]: https://github.com/terraform-google-modules/terraform-google-slo/compare/v0.1.0...HEAD [0.1.0]: https://github.com/terraform-google-modules/terraform-google-slo/releases/tag/v0.1.0 [#3]: https://github.com/terraform-google-modules/terraform-google-slo/pull/3
Update changelog, release first version of module
Update changelog, release first version of module
Markdown
apache-2.0
terraform-google-modules/terraform-google-slo
markdown
## Code Before: All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] ### Fixed - Added random suffix to bucket names to allow easy recreation. [#3] ## [0.1.0] - 20XX-YY-ZZ ### Added - Initial release [Unreleased]: https://github.com/terraform-google-modules/terraform-google-slo/compare/v0.1.0...HEAD [0.1.0]: https://github.com/terraform-google-modules/terraform-google-slo/releases/tag/v0.1.0 [#3]: https://github.com/terraform-google-modules/terraform-google-slo/pull/3 ## Instruction: Update changelog, release first version of module ## Code After: All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] ### Fixed ## [0.1.0] - 2020-05-12 ### Fixed - Updating SLO configs now correctly re-deploys Cloud Functions. Fixes [#7] - Allow to use a custom service account in both modules. Fixes [#13] - Upgrade to latest slo-generator version. Fixes [#14] ### Added - Added random suffix to bucket names to allow easy recreation. [#3] - Initial release [unreleased]: https://github.com/terraform-google-modules/terraform-google-slo/compare/v0.1.0...HEAD [0.1.0]: https://github.com/terraform-google-modules/terraform-google-slo/releases/tag/v0.1.0 [#3]: https://github.com/terraform-google-modules/terraform-google-slo/pull/3
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] ### Fixed - - Added random suffix to bucket names to allow easy recreation. [#3] - ## [0.1.0] - 20XX-YY-ZZ + ## [0.1.0] - 2020-05-12 + + ### Fixed + + - Updating SLO configs now correctly re-deploys Cloud Functions. Fixes [#7] + - Allow to use a custom service account in both modules. Fixes [#13] + - Upgrade to latest slo-generator version. Fixes [#14] ### Added + - Added random suffix to bucket names to allow easy recreation. [#3] - - Initial release + - Initial release ? ++ - [Unreleased]: https://github.com/terraform-google-modules/terraform-google-slo/compare/v0.1.0...HEAD ? ^ + [unreleased]: https://github.com/terraform-google-modules/terraform-google-slo/compare/v0.1.0...HEAD ? ^ + [0.1.0]: https://github.com/terraform-google-modules/terraform-google-slo/releases/tag/v0.1.0 [#3]: https://github.com/terraform-google-modules/terraform-google-slo/pull/3
15
0.652174
11
4
a7f104288ea65f5292c892d89bccd5cdea6c5716
.travis.yml
.travis.yml
language: php php: - 5.4 - 5.5 - 5.6 - 7 - hhvm install: - composer install script: - vendor/bin/pake $TASK env: - TASK="phpunit" cache: directories: - vendor branches: only: - master
language: php php: - 5.4 - 5.5 - 5.6 - 7 - hhvm install: - composer install script: - vendor/bin/pake $TASK env: - TASK="phpunit" matrix: allow_failures: - php: 7 - php: hhvm cache: directories: - vendor branches: only: - master
Allow PHP 7 and HHVM to fail
Allow PHP 7 and HHVM to fail
YAML
mit
mscharley/colourist
yaml
## Code Before: language: php php: - 5.4 - 5.5 - 5.6 - 7 - hhvm install: - composer install script: - vendor/bin/pake $TASK env: - TASK="phpunit" cache: directories: - vendor branches: only: - master ## Instruction: Allow PHP 7 and HHVM to fail ## Code After: language: php php: - 5.4 - 5.5 - 5.6 - 7 - hhvm install: - composer install script: - vendor/bin/pake $TASK env: - TASK="phpunit" matrix: allow_failures: - php: 7 - php: hhvm cache: directories: - vendor branches: only: - master
language: php php: - 5.4 - 5.5 - 5.6 - 7 - hhvm install: - composer install script: - vendor/bin/pake $TASK env: - TASK="phpunit" + matrix: + allow_failures: + - php: 7 + - php: hhvm + cache: directories: - vendor branches: only: - master
5
0.217391
5
0
f8dfbe6d794cebb5ca894a1744dd1c39104f64c9
support/travis.sh
support/travis.sh
set -e set -x sh -e /etc/init.d/xvfb start git submodule update --init mkdir ~/.yard bundle exec yard config -a autoload_plugins yard-doctest if [[ "$WATIR_WEBDRIVER_BROWSER" = "chrome" ]]; then export CHROME_REVISION=`curl -s http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/LAST_CHANGE` export CHROMEDRIVER_VERSION=`curl -s http://chromedriver.storage.googleapis.com/LATEST_RELEASE` curl -L -O "http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/${CHROME_REVISION}/chrome-linux.zip" unzip chrome-linux.zip curl -L -O "http://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip" unzip chromedriver_linux64.zip mv chromedriver chrome-linux/chromedriver chmod +x chrome-linux/chromedriver fi
set -e set -x sh -e /etc/init.d/xvfb start git submodule update --init mkdir ~/.yard bundle exec yard config -a autoload_plugins yard-doctest if [[ "$RAKE_TASK" = "spec:chrome" ]]; then export CHROME_REVISION=`curl -s http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/LAST_CHANGE` export CHROMEDRIVER_VERSION=`curl -s http://chromedriver.storage.googleapis.com/LATEST_RELEASE` curl -L -O "http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/${CHROME_REVISION}/chrome-linux.zip" unzip chrome-linux.zip curl -L -O "http://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip" unzip chromedriver_linux64.zip mv chromedriver chrome-linux/chromedriver chmod +x chrome-linux/chromedriver fi
Fix Travis not installing chromedriver
Fix Travis not installing chromedriver
Shell
mit
abotalov/watir-webdriver,titusfortner/watir,jkotests/watir,watir/watir,titusfortner/watir,abotalov/watir-webdriver,jkotests/watir,titusfortner/watir-webdriver,titusfortner/watir-webdriver,watir/watir,watir/watir,jkotests/watir,jkotests/watir-webdriver,titusfortner/watir,titusfortner/watir,watir/watir,abotalov/watir-webdriver,jkotests/watir,jkotests/watir-webdriver,abotalov/watir-webdriver
shell
## Code Before: set -e set -x sh -e /etc/init.d/xvfb start git submodule update --init mkdir ~/.yard bundle exec yard config -a autoload_plugins yard-doctest if [[ "$WATIR_WEBDRIVER_BROWSER" = "chrome" ]]; then export CHROME_REVISION=`curl -s http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/LAST_CHANGE` export CHROMEDRIVER_VERSION=`curl -s http://chromedriver.storage.googleapis.com/LATEST_RELEASE` curl -L -O "http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/${CHROME_REVISION}/chrome-linux.zip" unzip chrome-linux.zip curl -L -O "http://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip" unzip chromedriver_linux64.zip mv chromedriver chrome-linux/chromedriver chmod +x chrome-linux/chromedriver fi ## Instruction: Fix Travis not installing chromedriver ## Code After: set -e set -x sh -e /etc/init.d/xvfb start git submodule update --init mkdir ~/.yard bundle exec yard config -a autoload_plugins yard-doctest if [[ "$RAKE_TASK" = "spec:chrome" ]]; then export CHROME_REVISION=`curl -s http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/LAST_CHANGE` export CHROMEDRIVER_VERSION=`curl -s http://chromedriver.storage.googleapis.com/LATEST_RELEASE` curl -L -O "http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/${CHROME_REVISION}/chrome-linux.zip" unzip chrome-linux.zip curl -L -O "http://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip" unzip chromedriver_linux64.zip mv chromedriver chrome-linux/chromedriver chmod +x chrome-linux/chromedriver fi
set -e set -x sh -e /etc/init.d/xvfb start git submodule update --init mkdir ~/.yard bundle exec yard config -a autoload_plugins yard-doctest - if [[ "$WATIR_WEBDRIVER_BROWSER" = "chrome" ]]; then + if [[ "$RAKE_TASK" = "spec:chrome" ]]; then export CHROME_REVISION=`curl -s http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/LAST_CHANGE` export CHROMEDRIVER_VERSION=`curl -s http://chromedriver.storage.googleapis.com/LATEST_RELEASE` curl -L -O "http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64/${CHROME_REVISION}/chrome-linux.zip" unzip chrome-linux.zip curl -L -O "http://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip" unzip chromedriver_linux64.zip mv chromedriver chrome-linux/chromedriver chmod +x chrome-linux/chromedriver fi
2
0.086957
1
1
3ea81f3cef545f5bcf61f90a39cf8a7afcf479f6
betabot.gemspec
betabot.gemspec
Gem::Specification.new do |s| s.name = 'betabot' s.version = '0.0.1' s.licenses = ['MIT'] s.summary = 'Betabot as a lib.' s.description = 'Betabot as a lib. Mostly for testing external plugins.' s.authors = ['gyng'] s.files = Dir['lib/**/*.rb'] + Dir['lib/betabot.rb'] s.homepage = 'https://github.com/gyng/betabot/' s.metadata = {} s.add_development_dependency 'sequel' s.add_development_dependency 'sqlite3' s.add_development_dependency 'git' end
Gem::Specification.new do |s| s.name = 'betabot' s.version = '0.0.1' s.licenses = ['MIT'] s.summary = 'Betabot as a lib.' s.description = 'Betabot as a lib. Mostly for testing external plugins.' s.authors = ['gyng'] s.files = Dir['lib/**/*.rb'] + Dir['lib/betabot.rb'] s.homepage = 'https://github.com/gyng/betabot/' s.metadata = {} s.add_runtime_dependency 'sequel' s.add_runtime_dependency 'sqlite3' s.add_runtime_dependency 'git' end
Load dependencies as runtime dependencies instead of dev
Load dependencies as runtime dependencies instead of dev
Ruby
mit
gyng/betabot,gyng/betabot,gyng/betabot,gyng/Hudda,gyng/Hudda
ruby
## Code Before: Gem::Specification.new do |s| s.name = 'betabot' s.version = '0.0.1' s.licenses = ['MIT'] s.summary = 'Betabot as a lib.' s.description = 'Betabot as a lib. Mostly for testing external plugins.' s.authors = ['gyng'] s.files = Dir['lib/**/*.rb'] + Dir['lib/betabot.rb'] s.homepage = 'https://github.com/gyng/betabot/' s.metadata = {} s.add_development_dependency 'sequel' s.add_development_dependency 'sqlite3' s.add_development_dependency 'git' end ## Instruction: Load dependencies as runtime dependencies instead of dev ## Code After: Gem::Specification.new do |s| s.name = 'betabot' s.version = '0.0.1' s.licenses = ['MIT'] s.summary = 'Betabot as a lib.' s.description = 'Betabot as a lib. Mostly for testing external plugins.' s.authors = ['gyng'] s.files = Dir['lib/**/*.rb'] + Dir['lib/betabot.rb'] s.homepage = 'https://github.com/gyng/betabot/' s.metadata = {} s.add_runtime_dependency 'sequel' s.add_runtime_dependency 'sqlite3' s.add_runtime_dependency 'git' end
Gem::Specification.new do |s| s.name = 'betabot' s.version = '0.0.1' s.licenses = ['MIT'] s.summary = 'Betabot as a lib.' s.description = 'Betabot as a lib. Mostly for testing external plugins.' s.authors = ['gyng'] s.files = Dir['lib/**/*.rb'] + Dir['lib/betabot.rb'] s.homepage = 'https://github.com/gyng/betabot/' s.metadata = {} - s.add_development_dependency 'sequel' ? ^^^^^^^ -- + s.add_runtime_dependency 'sequel' ? ^^^^^ - s.add_development_dependency 'sqlite3' ? ^^^^^^^ -- + s.add_runtime_dependency 'sqlite3' ? ^^^^^ - s.add_development_dependency 'git' ? ^^^^^^^ -- + s.add_runtime_dependency 'git' ? ^^^^^ end
6
0.4
3
3
62f3a153dd791bcd8ff30b54aaa2b7c0d8254156
src/utils/math.js
src/utils/math.js
/** * Creates a new 2 dimensional Vector. * * @constructor * @this {Circle} * @param {number} x The x value of the new vector. * @param {number} y The y value of the new vector. */ function Vector2(x, y) { if (typeof x === 'undefined') { x = 0; } if (typeof y === 'undefined') { y = 0; } this.x = x; this.y = y; } Vector2.prototype.add = function(v) { if ( !(v instanceof Vector2) ) { throw new InvalidArgumentError("v", "You can only add a vector to another vector! The object passed was: " + v); } this.x += v.x; this.y += v.y; } Vector2.prototype.toString = function() { return "[" + this.x + ", " + this.y + "]"; }
/** * Creates a new 2 dimensional Vector. * * @constructor * @this {Circle} * @param {number} x The x value of the new vector. * @param {number} y The y value of the new vector. */ function Vector2(x, y) { if (typeof x === 'undefined') { x = 0; } if (typeof y === 'undefined') { y = 0; } this.x = x; this.y = y; } Vector2.prototype.add = function(v) { if ( !(v instanceof Vector2) ) { throw new InvalidArgumentError("v", "You can only add a vector to another vector! The object passed was: " + v); } this.x += v.x; this.y += v.y; return this; } Vector2.prototype.toString = function() { return "[" + this.x + ", " + this.y + "]"; }
Change add to return the vector itself, for method chaining
Change add to return the vector itself, for method chaining
JavaScript
mit
zedutchgandalf/OpenJGL,zedutchgandalf/OpenJGL
javascript
## Code Before: /** * Creates a new 2 dimensional Vector. * * @constructor * @this {Circle} * @param {number} x The x value of the new vector. * @param {number} y The y value of the new vector. */ function Vector2(x, y) { if (typeof x === 'undefined') { x = 0; } if (typeof y === 'undefined') { y = 0; } this.x = x; this.y = y; } Vector2.prototype.add = function(v) { if ( !(v instanceof Vector2) ) { throw new InvalidArgumentError("v", "You can only add a vector to another vector! The object passed was: " + v); } this.x += v.x; this.y += v.y; } Vector2.prototype.toString = function() { return "[" + this.x + ", " + this.y + "]"; } ## Instruction: Change add to return the vector itself, for method chaining ## Code After: /** * Creates a new 2 dimensional Vector. * * @constructor * @this {Circle} * @param {number} x The x value of the new vector. * @param {number} y The y value of the new vector. */ function Vector2(x, y) { if (typeof x === 'undefined') { x = 0; } if (typeof y === 'undefined') { y = 0; } this.x = x; this.y = y; } Vector2.prototype.add = function(v) { if ( !(v instanceof Vector2) ) { throw new InvalidArgumentError("v", "You can only add a vector to another vector! The object passed was: " + v); } this.x += v.x; this.y += v.y; return this; } Vector2.prototype.toString = function() { return "[" + this.x + ", " + this.y + "]"; }
/** * Creates a new 2 dimensional Vector. * * @constructor * @this {Circle} * @param {number} x The x value of the new vector. * @param {number} y The y value of the new vector. */ function Vector2(x, y) { if (typeof x === 'undefined') { x = 0; } if (typeof y === 'undefined') { y = 0; } this.x = x; this.y = y; } Vector2.prototype.add = function(v) { if ( !(v instanceof Vector2) ) { throw new InvalidArgumentError("v", "You can only add a vector to another vector! The object passed was: " + v); } this.x += v.x; this.y += v.y; + + return this; } Vector2.prototype.toString = function() { return "[" + this.x + ", " + this.y + "]"; }
2
0.0625
2
0
f4406047855fe41d1128037ca3cf72bd7ce0e144
OOP/README.md
OOP/README.md
core course * lecturer: [Bertrand Meyer](https://www.linkedin.com/in/bertrandmeyer) ## Materials * [Data Structures and Algorithms in Java, 6th Edition](http://www.topitbooks.com/data-structures-algorithms-java-6th-edition-4460.html)
core course * lecturer: [Bertrand Meyer](https://www.linkedin.com/in/bertrandmeyer), Manuel Mazzara ## Grading * Midterm Exam: 40% * Final Exam: 40% * Graded Tutorials: 20% ## Materials * [Data Structures and Algorithms in Java, 6th Edition](http://www.topitbooks.com/data-structures-algorithms-java-6th-edition-4460.html)
Add grading and lektor contact
Add grading and lektor contact
Markdown
mit
abcdw/inno,abcdw/inno
markdown
## Code Before: core course * lecturer: [Bertrand Meyer](https://www.linkedin.com/in/bertrandmeyer) ## Materials * [Data Structures and Algorithms in Java, 6th Edition](http://www.topitbooks.com/data-structures-algorithms-java-6th-edition-4460.html) ## Instruction: Add grading and lektor contact ## Code After: core course * lecturer: [Bertrand Meyer](https://www.linkedin.com/in/bertrandmeyer), Manuel Mazzara ## Grading * Midterm Exam: 40% * Final Exam: 40% * Graded Tutorials: 20% ## Materials * [Data Structures and Algorithms in Java, 6th Edition](http://www.topitbooks.com/data-structures-algorithms-java-6th-edition-4460.html)
core course - * lecturer: [Bertrand Meyer](https://www.linkedin.com/in/bertrandmeyer) + * lecturer: [Bertrand Meyer](https://www.linkedin.com/in/bertrandmeyer), Manuel Mazzara ? ++++++++++++++++ + + ## Grading + + * Midterm Exam: 40% + * Final Exam: 40% + * Graded Tutorials: 20% ## Materials * [Data Structures and Algorithms in Java, 6th Edition](http://www.topitbooks.com/data-structures-algorithms-java-6th-edition-4460.html)
8
0.8
7
1
1e76e65ca3115d243971b23081926884691186ff
example/spindle.json
example/spindle.json
{ "paths": [ { "verbose": true, "source": { "path": "files", "excludes": [ "excluded_file.txt", "directory/excluded_directory", "*glob_excluded_file*", "*glob_excluded_directory" ], "initial": {}, "listen": { "latency": 0.1 } }, "target": { "path": "/home/vagrant/files", "user": "vagrant", "group": "vagrant", "permissions": { "user": "rwX", "group": "rX", "other": "" }, "args": { "rsync": ["-a", "--delete", "--delete-excluded", "--force", "--inplace"], "ssh": ["-o StrictHostKeyChecking=no", "-o UserKnownHostsFile=/dev/null"] } } } ] }
{ "paths": [ { "verbose": true, "source": { "path": "files", "excludes": [ "excluded_file.txt", "directory/excluded_directory", "*glob_excluded_file*", "*glob_excluded_directory" ], "initial": {}, "listen": { "latency": 0.1 } }, "target": { "path": "/home/vagrant/files", "user": "vagrant", "group": "vagrant", "permissions": { "user": "rwX", "group": "rX", "other": "" }, "args": { "rsync": ["-a", "--delete", "--delete-excluded", "--force", "--inplace", "--out-format=Rsynced: %n%L"], "ssh": ["-o StrictHostKeyChecking=no", "-o UserKnownHostsFile=/dev/null"] } } } ] }
Define rsync --out-format in the example for demonstration
Define rsync --out-format in the example for demonstration
JSON
mit
asyrjasalo/vagrant-syncer,asyrjasalo/vagrant-syncer
json
## Code Before: { "paths": [ { "verbose": true, "source": { "path": "files", "excludes": [ "excluded_file.txt", "directory/excluded_directory", "*glob_excluded_file*", "*glob_excluded_directory" ], "initial": {}, "listen": { "latency": 0.1 } }, "target": { "path": "/home/vagrant/files", "user": "vagrant", "group": "vagrant", "permissions": { "user": "rwX", "group": "rX", "other": "" }, "args": { "rsync": ["-a", "--delete", "--delete-excluded", "--force", "--inplace"], "ssh": ["-o StrictHostKeyChecking=no", "-o UserKnownHostsFile=/dev/null"] } } } ] } ## Instruction: Define rsync --out-format in the example for demonstration ## Code After: { "paths": [ { "verbose": true, "source": { "path": "files", "excludes": [ "excluded_file.txt", "directory/excluded_directory", "*glob_excluded_file*", "*glob_excluded_directory" ], "initial": {}, "listen": { "latency": 0.1 } }, "target": { "path": "/home/vagrant/files", "user": "vagrant", "group": "vagrant", "permissions": { "user": "rwX", "group": "rX", "other": "" }, "args": { "rsync": ["-a", "--delete", "--delete-excluded", "--force", "--inplace", "--out-format=Rsynced: %n%L"], "ssh": ["-o StrictHostKeyChecking=no", "-o UserKnownHostsFile=/dev/null"] } } } ] }
{ "paths": [ { "verbose": true, "source": { "path": "files", "excludes": [ "excluded_file.txt", "directory/excluded_directory", "*glob_excluded_file*", "*glob_excluded_directory" ], "initial": {}, "listen": { "latency": 0.1 } }, "target": { "path": "/home/vagrant/files", "user": "vagrant", "group": "vagrant", "permissions": { "user": "rwX", "group": "rX", "other": "" }, "args": { - "rsync": ["-a", "--delete", "--delete-excluded", "--force", "--inplace"], + "rsync": ["-a", "--delete", "--delete-excluded", "--force", "--inplace", "--out-format=Rsynced: %n%L"], ? ++++++++++++++++++++++++++++++ "ssh": ["-o StrictHostKeyChecking=no", "-o UserKnownHostsFile=/dev/null"] } } } ] }
2
0.058824
1
1
662b52f71f371fc27247ddf7c9f46ce0f95b4c49
install.bash
install.bash
set -e for env in 'GOROOT' 'GOBIN' ; do if [ -z '${$env}' ]; then echo "$env not defined. Is go installed?" exit 1 fi done export GOPATH=`pwd` echo "Installing required go libraries..." for req in `cat go_deps.lst`; do echo -n " $req..." go get -v $req echo " done" done echo "Libraries installed" if [ ! -e config.ini ]; then echo "Copying sample ini file to config.ini" cp config.sample.ini config.ini fi echo "Please edit config.ini for local settings."
set -e for env in 'GOROOT' 'GOBIN' ; do if [ -z '${$env}' ]; then echo "$env not defined. Is go installed?" exit 1 fi done export GOPATH=`pwd` echo "Installing required go libraries..." for req in `cat go_deps.lst`; do echo -n " $req..." go get -v $req echo " done" done echo "Libraries installed" if [ ! -e config.ini ]; then echo "Copying sample ini file to config.ini" cp config.sample.ini config.ini fi if [ ! -z '$HOST' ]; then echo "Setting local shard host name" echo "shard.currentHost = $HOST:8080" >> config.ini fi echo "Please edit config.ini for local settings."
Add auto shard.host to config.ini if $HOST defined.
Add auto shard.host to config.ini if $HOST defined. AWS does not provide a useful os.hostname() value. This hack addresses this by sort of taking advantage of a different hack I have installed. in my .bashrc file I have which is basically: HOST=`/usr/bin/wget -q -O- http://169.254.169.254/latest/meta-data/public-hostname` also useful, would be either the internal or external IP address. Basically, any way we can connect to the machine that actually handles this.
Shell
mpl-2.0
mozilla-services/pushgo,jrconlin/pushgo,mozilla-services/pushgo,jrconlin/pushgo
shell
## Code Before: set -e for env in 'GOROOT' 'GOBIN' ; do if [ -z '${$env}' ]; then echo "$env not defined. Is go installed?" exit 1 fi done export GOPATH=`pwd` echo "Installing required go libraries..." for req in `cat go_deps.lst`; do echo -n " $req..." go get -v $req echo " done" done echo "Libraries installed" if [ ! -e config.ini ]; then echo "Copying sample ini file to config.ini" cp config.sample.ini config.ini fi echo "Please edit config.ini for local settings." ## Instruction: Add auto shard.host to config.ini if $HOST defined. AWS does not provide a useful os.hostname() value. This hack addresses this by sort of taking advantage of a different hack I have installed. in my .bashrc file I have which is basically: HOST=`/usr/bin/wget -q -O- http://169.254.169.254/latest/meta-data/public-hostname` also useful, would be either the internal or external IP address. Basically, any way we can connect to the machine that actually handles this. ## Code After: set -e for env in 'GOROOT' 'GOBIN' ; do if [ -z '${$env}' ]; then echo "$env not defined. Is go installed?" exit 1 fi done export GOPATH=`pwd` echo "Installing required go libraries..." for req in `cat go_deps.lst`; do echo -n " $req..." go get -v $req echo " done" done echo "Libraries installed" if [ ! -e config.ini ]; then echo "Copying sample ini file to config.ini" cp config.sample.ini config.ini fi if [ ! -z '$HOST' ]; then echo "Setting local shard host name" echo "shard.currentHost = $HOST:8080" >> config.ini fi echo "Please edit config.ini for local settings."
set -e for env in 'GOROOT' 'GOBIN' ; do if [ -z '${$env}' ]; then echo "$env not defined. Is go installed?" exit 1 fi done export GOPATH=`pwd` echo "Installing required go libraries..." for req in `cat go_deps.lst`; do echo -n " $req..." go get -v $req echo " done" done echo "Libraries installed" if [ ! -e config.ini ]; then echo "Copying sample ini file to config.ini" cp config.sample.ini config.ini fi + if [ ! -z '$HOST' ]; then + echo "Setting local shard host name" + echo "shard.currentHost = $HOST:8080" >> config.ini + fi echo "Please edit config.ini for local settings."
4
0.2
4
0
7eb7a772568659ebd1725947c8b62b5424c88fd9
tasks/generate_secret_key.yml
tasks/generate_secret_key.yml
--- - name: Generate a SECRET_KEY for NetBox if unspecified shell: "{{ netbox_current_path }}/netbox/generate_secret_key.py > {{ netbox_shared_path }}/generated_secret_key" args: creates: "{{ netbox_shared_path }}/generated_secret_key" - name: Load saved SECRET_KEY slurp: src: "{{ netbox_shared_path }}/generated_secret_key" register: __netbox_secret_key_file - name: Set netbox_secret_key to generated SECRET_KEY set_fact: netbox_secret_key: "{{ __netbox_secret_key_file['content'] | b64decode }}"
--- - name: Generate a SECRET_KEY for NetBox if unspecified shell: "{{ netbox_current_path }}/netbox/generate_secret_key.py | tr -d $'\n' > {{ netbox_shared_path }}/generated_secret_key" args: creates: "{{ netbox_shared_path }}/generated_secret_key" - name: Load saved SECRET_KEY slurp: src: "{{ netbox_shared_path }}/generated_secret_key" register: __netbox_secret_key_file - name: Set netbox_secret_key to generated SECRET_KEY set_fact: netbox_secret_key: "{{ __netbox_secret_key_file['content'] | b64decode }}"
Remove newline when generating SECRET_KEY
Remove newline when generating SECRET_KEY
YAML
mit
lae/ansible-role-netbox,lae/ansible-role-netbox
yaml
## Code Before: --- - name: Generate a SECRET_KEY for NetBox if unspecified shell: "{{ netbox_current_path }}/netbox/generate_secret_key.py > {{ netbox_shared_path }}/generated_secret_key" args: creates: "{{ netbox_shared_path }}/generated_secret_key" - name: Load saved SECRET_KEY slurp: src: "{{ netbox_shared_path }}/generated_secret_key" register: __netbox_secret_key_file - name: Set netbox_secret_key to generated SECRET_KEY set_fact: netbox_secret_key: "{{ __netbox_secret_key_file['content'] | b64decode }}" ## Instruction: Remove newline when generating SECRET_KEY ## Code After: --- - name: Generate a SECRET_KEY for NetBox if unspecified shell: "{{ netbox_current_path }}/netbox/generate_secret_key.py | tr -d $'\n' > {{ netbox_shared_path }}/generated_secret_key" args: creates: "{{ netbox_shared_path }}/generated_secret_key" - name: Load saved SECRET_KEY slurp: src: "{{ netbox_shared_path }}/generated_secret_key" register: __netbox_secret_key_file - name: Set netbox_secret_key to generated SECRET_KEY set_fact: netbox_secret_key: "{{ __netbox_secret_key_file['content'] | b64decode }}"
--- - name: Generate a SECRET_KEY for NetBox if unspecified - shell: "{{ netbox_current_path }}/netbox/generate_secret_key.py > {{ netbox_shared_path }}/generated_secret_key" + shell: "{{ netbox_current_path }}/netbox/generate_secret_key.py | tr -d $'\n' > {{ netbox_shared_path }}/generated_secret_key" ? ++++++++++++++ args: creates: "{{ netbox_shared_path }}/generated_secret_key" - name: Load saved SECRET_KEY slurp: src: "{{ netbox_shared_path }}/generated_secret_key" register: __netbox_secret_key_file - name: Set netbox_secret_key to generated SECRET_KEY set_fact: netbox_secret_key: "{{ __netbox_secret_key_file['content'] | b64decode }}"
2
0.142857
1
1
75f2437e1ed2d76b6bba719b53de9b31cd79432f
Qt/qt_project_qmake_template.txt
Qt/qt_project_qmake_template.txt
TEMPLATE = app QT += widgets #CONFIG = console SOURCES += \ main.cpp \ Fraction.cpp HEADERS += \ Fraction.h \ include.h QMAKE_CXXFLAGS win32-msvc2010 { # Enable Level 4 compiler warning QMAKE_CXXFLAGS_WARN_ON = -W4 # Treat warnings as errors QMAKE_CXXFLAGS_WARN_ON += -WX # Enable static (no DLL requirement) QMAKE_CXXFLAGS_RELEASE += -MT # Hush common known Qt warning # reference: http://qt-project.org/forums/viewthread/10527 QMAKE_CXXFLAGS += -wd4127 -wd4512 -wd4189 }
TEMPLATE = app QT += widgets CONFIG += console #CONFIG = console SOURCES += \ main.cpp HEADERS += \ includes.h win32-msvc2010 { # Enable Level 4 compiler warning QMAKE_CXXFLAGS_WARN_ON -= -W3 QMAKE_CXXFLAGS_WARN_ON += -W4 # Treat warnings as errors QMAKE_CXXFLAGS_WARN_ON += -WX # Enable static (no DLL requirement) QMAKE_CXXFLAGS_RELEASE += -MT # Hush common known Qt warning # reference: http://qt-project.org/forums/viewthread/10527 QMAKE_CXXFLAGS += -wd4127 -wd4512 -wd4189 } else { # enable all warnings QMAKE_CXXFLAGS_WARN_ON += -Wall # classify warning as errors QMAKE_CXXFLAGS += -Werror # pedantic QMAKE_CXXFLAGS += -Pedantic }
Update template with more configs & fixes
Update template with more configs & fixes fixed conditional flags/argv not working. openning brace needed to follow the condition...
Text
bsd-3-clause
yxbh/yxbh
text
## Code Before: TEMPLATE = app QT += widgets #CONFIG = console SOURCES += \ main.cpp \ Fraction.cpp HEADERS += \ Fraction.h \ include.h QMAKE_CXXFLAGS win32-msvc2010 { # Enable Level 4 compiler warning QMAKE_CXXFLAGS_WARN_ON = -W4 # Treat warnings as errors QMAKE_CXXFLAGS_WARN_ON += -WX # Enable static (no DLL requirement) QMAKE_CXXFLAGS_RELEASE += -MT # Hush common known Qt warning # reference: http://qt-project.org/forums/viewthread/10527 QMAKE_CXXFLAGS += -wd4127 -wd4512 -wd4189 } ## Instruction: Update template with more configs & fixes fixed conditional flags/argv not working. openning brace needed to follow the condition... ## Code After: TEMPLATE = app QT += widgets CONFIG += console #CONFIG = console SOURCES += \ main.cpp HEADERS += \ includes.h win32-msvc2010 { # Enable Level 4 compiler warning QMAKE_CXXFLAGS_WARN_ON -= -W3 QMAKE_CXXFLAGS_WARN_ON += -W4 # Treat warnings as errors QMAKE_CXXFLAGS_WARN_ON += -WX # Enable static (no DLL requirement) QMAKE_CXXFLAGS_RELEASE += -MT # Hush common known Qt warning # reference: http://qt-project.org/forums/viewthread/10527 QMAKE_CXXFLAGS += -wd4127 -wd4512 -wd4189 } else { # enable all warnings QMAKE_CXXFLAGS_WARN_ON += -Wall # classify warning as errors QMAKE_CXXFLAGS += -Werror # pedantic QMAKE_CXXFLAGS += -Pedantic }
TEMPLATE = app - - - QT += widgets + CONFIG += console #CONFIG = console - SOURCES += \ - - main.cpp \ ? -- + main.cpp - - Fraction.cpp - - HEADERS += \ + includes.h - Fraction.h \ - - include.h - - - - QMAKE_CXXFLAGS - - - win32-msvc2010 + win32-msvc2010 { ? ++ - - { - - # Enable Level 4 compiler warning + QMAKE_CXXFLAGS_WARN_ON -= -W3 - QMAKE_CXXFLAGS_WARN_ON = -W4 + QMAKE_CXXFLAGS_WARN_ON += -W4 ? + - # Treat warnings as errors QMAKE_CXXFLAGS_WARN_ON += -WX - # Enable static (no DLL requirement) QMAKE_CXXFLAGS_RELEASE += -MT - - - # Hush common known Qt warning # reference: http://qt-project.org/forums/viewthread/10527 QMAKE_CXXFLAGS += -wd4127 -wd4512 -wd4189 - + } else { + # enable all warnings + QMAKE_CXXFLAGS_WARN_ON += -Wall + # classify warning as errors + QMAKE_CXXFLAGS += -Werror + # pedantic + QMAKE_CXXFLAGS += -Pedantic }
44
0.88
13
31
822a4132d2bb0e85372e8f7790b9bd4db9c5f17e
test/pnut.js
test/pnut.js
const chai = require('chai'); const chaiAsPromised = require('chai-as-promised'); const nock = require('nock'); chai.use(chaiAsPromised); chai.should(); const expect = chai.expect; const pnut = require('../lib/pnut'); describe('The pnut API wrapper', function () { before(function() { let root = 'https://api.pnut.io' nock(root) .get('/v0') .reply(200, {}) nock(root) .get('/v0/posts/streams/global') .reply(200, {posts: 1}) }); after(function() { nock.cleanAll(); }); it('should get the global timeline', function() {; return pnut.global().should.become({'posts': 1}) }); });
const chai = require('chai'); const chaiAsPromised = require('chai-as-promised'); const nock = require('nock'); chai.use(chaiAsPromised); chai.should(); const expect = chai.expect; const pnut = require('../lib/pnut'); describe('The pnut API wrapper', function () { before(function() { let base = 'https://api.pnut.io'; nock(base) .get('/v0') .reply(200, {}) nock(base) .get('/v0/posts/streams/global') .reply(200, {posts: 1}) }); after(function() { nock.cleanAll(); }); it('should get the global timeline', function() {; return pnut.global().should.become({'posts': 1}) }); });
Rename variable for more consitency
Rename variable for more consitency
JavaScript
mit
kaiwood/pnut-butter
javascript
## Code Before: const chai = require('chai'); const chaiAsPromised = require('chai-as-promised'); const nock = require('nock'); chai.use(chaiAsPromised); chai.should(); const expect = chai.expect; const pnut = require('../lib/pnut'); describe('The pnut API wrapper', function () { before(function() { let root = 'https://api.pnut.io' nock(root) .get('/v0') .reply(200, {}) nock(root) .get('/v0/posts/streams/global') .reply(200, {posts: 1}) }); after(function() { nock.cleanAll(); }); it('should get the global timeline', function() {; return pnut.global().should.become({'posts': 1}) }); }); ## Instruction: Rename variable for more consitency ## Code After: const chai = require('chai'); const chaiAsPromised = require('chai-as-promised'); const nock = require('nock'); chai.use(chaiAsPromised); chai.should(); const expect = chai.expect; const pnut = require('../lib/pnut'); describe('The pnut API wrapper', function () { before(function() { let base = 'https://api.pnut.io'; nock(base) .get('/v0') .reply(200, {}) nock(base) .get('/v0/posts/streams/global') .reply(200, {posts: 1}) }); after(function() { nock.cleanAll(); }); it('should get the global timeline', function() {; return pnut.global().should.become({'posts': 1}) }); });
const chai = require('chai'); const chaiAsPromised = require('chai-as-promised'); const nock = require('nock'); chai.use(chaiAsPromised); chai.should(); const expect = chai.expect; const pnut = require('../lib/pnut'); describe('The pnut API wrapper', function () { before(function() { - let root = 'https://api.pnut.io' ? ^^^^ + let base = 'https://api.pnut.io'; ? ^^^^ + - nock(root) + + nock(base) .get('/v0') .reply(200, {}) - nock(root) + nock(base) .get('/v0/posts/streams/global') .reply(200, {posts: 1}) }); after(function() { nock.cleanAll(); }); it('should get the global timeline', function() {; return pnut.global().should.become({'posts': 1}) }); });
7
0.225806
4
3
8baeb28d572afe9df48d9a5e119f39345777f1ab
apps/settings/components/home_path_field/view.coffee
apps/settings/components/home_path_field/view.coffee
Backbone = require 'backbone' template = -> require('./index.jade') arguments... module.exports = class HomePathFieldView extends Backbone.View className: 'Fieldset' events: 'change select': 'select' initialize: -> @listenTo @model, 'change:home_path', @render select: (e) -> $target = $(e.currentTarget) @model.set 'home_path', $target.val() render: -> @$el.html template user: @model this
Backbone = require 'backbone' analytics = require '../../../../lib/analytics.coffee' template = -> require('./index.jade') arguments... module.exports = class HomePathFieldView extends Backbone.View className: 'Fieldset' events: 'change select': 'select' initialize: -> @listenTo @model, 'change:home_path', @render select: (e) -> $target = $(e.currentTarget) @model.set 'home_path', $target.val() analytics.track.submit 'User switched home path', label: 'Home path' value: $target.text() render: -> @$el.html template user: @model this
Add analytics to home path
Add analytics to home path
CoffeeScript
mit
aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell
coffeescript
## Code Before: Backbone = require 'backbone' template = -> require('./index.jade') arguments... module.exports = class HomePathFieldView extends Backbone.View className: 'Fieldset' events: 'change select': 'select' initialize: -> @listenTo @model, 'change:home_path', @render select: (e) -> $target = $(e.currentTarget) @model.set 'home_path', $target.val() render: -> @$el.html template user: @model this ## Instruction: Add analytics to home path ## Code After: Backbone = require 'backbone' analytics = require '../../../../lib/analytics.coffee' template = -> require('./index.jade') arguments... module.exports = class HomePathFieldView extends Backbone.View className: 'Fieldset' events: 'change select': 'select' initialize: -> @listenTo @model, 'change:home_path', @render select: (e) -> $target = $(e.currentTarget) @model.set 'home_path', $target.val() analytics.track.submit 'User switched home path', label: 'Home path' value: $target.text() render: -> @$el.html template user: @model this
Backbone = require 'backbone' + analytics = require '../../../../lib/analytics.coffee' template = -> require('./index.jade') arguments... module.exports = class HomePathFieldView extends Backbone.View className: 'Fieldset' events: 'change select': 'select' initialize: -> @listenTo @model, 'change:home_path', @render select: (e) -> $target = $(e.currentTarget) @model.set 'home_path', $target.val() + analytics.track.submit 'User switched home path', + label: 'Home path' + value: $target.text() + render: -> @$el.html template user: @model this
5
0.238095
5
0
054a4432021dcd49a009b9982be34b94149a6a68
sort-member-config.js
sort-member-config.js
module.exports.sortMemberRules = { "sort-class-members/sort-class-members": [2, { "order": [ "[static-properties-getter]", "[static-styles-getter]", "[static-properties]", "[static-methods]", "[properties]", "constructor", "[accessor-pairs]", "[methods]", "[conventional-private-properties]", "[conventional-private-methods]", ], "groups": { "accessor-pairs": [{ "accessorPair": true, "sort": "alphabetical" }], "methods": [{ "type": "method", "sort": "alphabetical"}], "conventional-private-methods": [{ "type": "method", "sort": "alphabetical"}], "conventional-private-properties": [{ "type": "property", "sort": "alphabetical"}], "properties": [{ "type": "property", "sort": "alphabetical"}], "static-methods": [{ "type": "method", "sort": "alphabetical", "static": true }], "static-properties": [{ "type": "property", "sort": "alphabetical", "static": true }], "static-properties-getter": [{ "name": "properties", "static": true }], "static-styles-getter": [{ "name": "styles", "static": true }] }, "accessorPairPositioning": "getThenSet", }] }
module.exports.sortMemberRules = { "sort-class-members/sort-class-members": [2, { "order": [ "[static-property-is]", "[static-property-properties]", "[static-property-styles]", "[static-properties]", "[static-methods]", "[properties]", "constructor", "[accessor-pairs]", "[methods]", "[conventional-private-properties]", "[conventional-private-methods]", ], "groups": { "accessor-pairs": [{ "accessorPair": true, "sort": "alphabetical" }], "methods": [{ "type": "method", "sort": "alphabetical"}], "conventional-private-methods": [{ "type": "method", "sort": "alphabetical"}], "conventional-private-properties": [{ "type": "property", "sort": "alphabetical"}], "properties": [{ "type": "property", "sort": "alphabetical"}], "static-methods": [{ "type": "method", "sort": "alphabetical", "static": true }], "static-properties": [{ "type": "property", "sort": "alphabetical", "static": true }], "static-property-is": [{ "name": "is", "static": true }], "static-property-properties": [{ "name": "properties", "static": true }], "static-property-styles": [{ "name": "styles", "static": true }] }, "accessorPairPositioning": "getThenSet", }] }
Update order to include rule for "is" property.
Update order to include rule for "is" property.
JavaScript
apache-2.0
Brightspace/eslint-config-brightspace
javascript
## Code Before: module.exports.sortMemberRules = { "sort-class-members/sort-class-members": [2, { "order": [ "[static-properties-getter]", "[static-styles-getter]", "[static-properties]", "[static-methods]", "[properties]", "constructor", "[accessor-pairs]", "[methods]", "[conventional-private-properties]", "[conventional-private-methods]", ], "groups": { "accessor-pairs": [{ "accessorPair": true, "sort": "alphabetical" }], "methods": [{ "type": "method", "sort": "alphabetical"}], "conventional-private-methods": [{ "type": "method", "sort": "alphabetical"}], "conventional-private-properties": [{ "type": "property", "sort": "alphabetical"}], "properties": [{ "type": "property", "sort": "alphabetical"}], "static-methods": [{ "type": "method", "sort": "alphabetical", "static": true }], "static-properties": [{ "type": "property", "sort": "alphabetical", "static": true }], "static-properties-getter": [{ "name": "properties", "static": true }], "static-styles-getter": [{ "name": "styles", "static": true }] }, "accessorPairPositioning": "getThenSet", }] } ## Instruction: Update order to include rule for "is" property. ## Code After: module.exports.sortMemberRules = { "sort-class-members/sort-class-members": [2, { "order": [ "[static-property-is]", "[static-property-properties]", "[static-property-styles]", "[static-properties]", "[static-methods]", "[properties]", "constructor", "[accessor-pairs]", "[methods]", "[conventional-private-properties]", "[conventional-private-methods]", ], "groups": { "accessor-pairs": [{ "accessorPair": true, "sort": "alphabetical" }], "methods": [{ "type": "method", "sort": "alphabetical"}], "conventional-private-methods": [{ "type": "method", "sort": "alphabetical"}], "conventional-private-properties": [{ "type": "property", "sort": "alphabetical"}], "properties": [{ "type": "property", "sort": "alphabetical"}], "static-methods": [{ "type": "method", "sort": "alphabetical", "static": true }], "static-properties": [{ "type": "property", "sort": "alphabetical", "static": true }], "static-property-is": [{ "name": "is", "static": true }], "static-property-properties": [{ "name": "properties", "static": true }], "static-property-styles": [{ "name": "styles", "static": true }] }, "accessorPairPositioning": "getThenSet", }] }
module.exports.sortMemberRules = { "sort-class-members/sort-class-members": [2, { "order": [ - "[static-properties-getter]", ? ^^ - ------- + "[static-property-is]", ? ^ ++ - "[static-styles-getter]", + "[static-property-properties]", + "[static-property-styles]", - "[static-properties]", ? ^^ + "[static-properties]", ? ^ - "[static-methods]", ? ^^ + "[static-methods]", ? ^ - "[properties]", ? ^^ + "[properties]", ? ^ - "constructor", ? ^^ + "constructor", ? ^ - "[accessor-pairs]", ? ^^ + "[accessor-pairs]", ? ^ - "[methods]", ? ^^ + "[methods]", ? ^ - "[conventional-private-properties]", ? ^^ + "[conventional-private-properties]", ? ^ - "[conventional-private-methods]", ? ^^ + "[conventional-private-methods]", ? ^ ], "groups": { "accessor-pairs": [{ "accessorPair": true, "sort": "alphabetical" }], "methods": [{ "type": "method", "sort": "alphabetical"}], "conventional-private-methods": [{ "type": "method", "sort": "alphabetical"}], "conventional-private-properties": [{ "type": "property", "sort": "alphabetical"}], "properties": [{ "type": "property", "sort": "alphabetical"}], "static-methods": [{ "type": "method", "sort": "alphabetical", "static": true }], "static-properties": [{ "type": "property", "sort": "alphabetical", "static": true }], + "static-property-is": [{ "name": "is", "static": true }], - "static-properties-getter": [{ "name": "properties", "static": true }], ? ------- + "static-property-properties": [{ "name": "properties", "static": true }], ? +++++++++ - "static-styles-getter": [{ "name": "styles", "static": true }] ? ------- + "static-property-styles": [{ "name": "styles", "static": true }] ? +++++++++ }, "accessorPairPositioning": "getThenSet", }] }
26
0.928571
14
12
daa33469dbcb1f7295cf4070463a77ba06927f11
scripts/index.ts
scripts/index.ts
import 'app.scss'; // styles import 'vendor'; import 'core'; import 'templates-cache.generated'; // generated by grunt 'ngtemplates' task import 'apps'; import 'external-apps'; /* globals __SUPERDESK_CONFIG__: true */ const appConfig = __SUPERDESK_CONFIG__; if (appConfig.features.useTansaProofing) { require('apps/tansa'); } let body = angular.element('body'); function initializeConfigDefaults(config) { const sunday = '0'; return { ...config, startingDay: config.startingDay != null ? config.startingDay : sunday, }; } body.ready(() => { // update config via config.js if (window.superdeskConfig) { angular.merge(appConfig, window.superdeskConfig); } // non-mock app configuration must live here to allow tests to override // since tests do not import this file. angular.module('superdesk.config').constant('config', initializeConfigDefaults(appConfig)); /** * @ngdoc module * @name superdesk-client * @packageName superdesk-client * @description The root superdesk module. */ angular.bootstrap(body, [ 'superdesk.config', 'superdesk.core', 'superdesk.apps', ].concat(appConfig.apps || []), {strictDi: true}); window['superdeskIsReady'] = true; });
import 'app.scss'; // styles import 'vendor'; import 'core'; import 'templates-cache.generated'; // generated by grunt 'ngtemplates' task import 'apps'; import 'external-apps'; /* globals __SUPERDESK_CONFIG__: true */ const appConfig = __SUPERDESK_CONFIG__; if (appConfig.features.useTansaProofing) { // tslint:disable-next-line:no-var-requires require('apps/tansa'); } let body = angular.element('body'); function initializeConfigDefaults(config) { const sunday = '0'; return { ...config, startingDay: config.startingDay != null ? config.startingDay : sunday, }; } body.ready(() => { // update config via config.js if (window.superdeskConfig) { angular.merge(appConfig, window.superdeskConfig); } // non-mock app configuration must live here to allow tests to override // since tests do not import this file. angular.module('superdesk.config').constant('config', initializeConfigDefaults(appConfig)); /** * @ngdoc module * @name superdesk-client * @packageName superdesk-client * @description The root superdesk module. */ angular.bootstrap(body, [ 'superdesk.config', 'superdesk.core', 'superdesk.apps', ].concat(appConfig.apps || []), {strictDi: true}); window['superdeskIsReady'] = true; });
Disable tslint error for tansa load.
Disable tslint error for tansa load.
TypeScript
agpl-3.0
superdesk/superdesk-client-core,petrjasek/superdesk-client-core,petrjasek/superdesk-client-core,mdhaman/superdesk-client-core,pavlovicnemanja/superdesk-client-core,superdesk/superdesk-client-core,petrjasek/superdesk-client-core,mdhaman/superdesk-client-core,marwoodandrew/superdesk-client-core,pavlovicnemanja/superdesk-client-core,mdhaman/superdesk-client-core,marwoodandrew/superdesk-client-core,pavlovicnemanja/superdesk-client-core,superdesk/superdesk-client-core,marwoodandrew/superdesk-client-core,pavlovicnemanja/superdesk-client-core,superdesk/superdesk-client-core,pavlovicnemanja/superdesk-client-core,marwoodandrew/superdesk-client-core,petrjasek/superdesk-client-core,petrjasek/superdesk-client-core,marwoodandrew/superdesk-client-core,superdesk/superdesk-client-core,mdhaman/superdesk-client-core,mdhaman/superdesk-client-core
typescript
## Code Before: import 'app.scss'; // styles import 'vendor'; import 'core'; import 'templates-cache.generated'; // generated by grunt 'ngtemplates' task import 'apps'; import 'external-apps'; /* globals __SUPERDESK_CONFIG__: true */ const appConfig = __SUPERDESK_CONFIG__; if (appConfig.features.useTansaProofing) { require('apps/tansa'); } let body = angular.element('body'); function initializeConfigDefaults(config) { const sunday = '0'; return { ...config, startingDay: config.startingDay != null ? config.startingDay : sunday, }; } body.ready(() => { // update config via config.js if (window.superdeskConfig) { angular.merge(appConfig, window.superdeskConfig); } // non-mock app configuration must live here to allow tests to override // since tests do not import this file. angular.module('superdesk.config').constant('config', initializeConfigDefaults(appConfig)); /** * @ngdoc module * @name superdesk-client * @packageName superdesk-client * @description The root superdesk module. */ angular.bootstrap(body, [ 'superdesk.config', 'superdesk.core', 'superdesk.apps', ].concat(appConfig.apps || []), {strictDi: true}); window['superdeskIsReady'] = true; }); ## Instruction: Disable tslint error for tansa load. ## Code After: import 'app.scss'; // styles import 'vendor'; import 'core'; import 'templates-cache.generated'; // generated by grunt 'ngtemplates' task import 'apps'; import 'external-apps'; /* globals __SUPERDESK_CONFIG__: true */ const appConfig = __SUPERDESK_CONFIG__; if (appConfig.features.useTansaProofing) { // tslint:disable-next-line:no-var-requires require('apps/tansa'); } let body = angular.element('body'); function initializeConfigDefaults(config) { const sunday = '0'; return { ...config, startingDay: config.startingDay != null ? config.startingDay : sunday, }; } body.ready(() => { // update config via config.js if (window.superdeskConfig) { angular.merge(appConfig, window.superdeskConfig); } // non-mock app configuration must live here to allow tests to override // since tests do not import this file. angular.module('superdesk.config').constant('config', initializeConfigDefaults(appConfig)); /** * @ngdoc module * @name superdesk-client * @packageName superdesk-client * @description The root superdesk module. */ angular.bootstrap(body, [ 'superdesk.config', 'superdesk.core', 'superdesk.apps', ].concat(appConfig.apps || []), {strictDi: true}); window['superdeskIsReady'] = true; });
import 'app.scss'; // styles import 'vendor'; import 'core'; import 'templates-cache.generated'; // generated by grunt 'ngtemplates' task import 'apps'; import 'external-apps'; /* globals __SUPERDESK_CONFIG__: true */ const appConfig = __SUPERDESK_CONFIG__; if (appConfig.features.useTansaProofing) { + // tslint:disable-next-line:no-var-requires require('apps/tansa'); } let body = angular.element('body'); function initializeConfigDefaults(config) { const sunday = '0'; return { ...config, startingDay: config.startingDay != null ? config.startingDay : sunday, }; } body.ready(() => { // update config via config.js if (window.superdeskConfig) { angular.merge(appConfig, window.superdeskConfig); } // non-mock app configuration must live here to allow tests to override // since tests do not import this file. angular.module('superdesk.config').constant('config', initializeConfigDefaults(appConfig)); /** * @ngdoc module * @name superdesk-client * @packageName superdesk-client * @description The root superdesk module. */ angular.bootstrap(body, [ 'superdesk.config', 'superdesk.core', 'superdesk.apps', ].concat(appConfig.apps || []), {strictDi: true}); window['superdeskIsReady'] = true; });
1
0.020408
1
0
422853f483e5b0c5760c8ddc0d6301b5ea3c33a5
main.go
main.go
package main import ( "github.com/albertyw/reaction-pics/server" "github.com/albertyw/reaction-pics/tumblr" _ "github.com/joho/godotenv/autoload" "os" "strings" ) const readPostsFromTumblrEnv = "READ_POSTS_FROM_TUMBLR" func getReadPostsFromTumblr() bool { readPostsEnv := os.Getenv(readPostsFromTumblrEnv) if strings.ToLower(readPostsEnv) == "true" { return true } return false } func main() { readPosts := getReadPostsFromTumblr() posts := make(chan tumblr.Post) go tumblr.GetPosts(readPosts, posts) // Need to split the channel in order for both server.Run and // tumblr.WritePostsToCSV to read all posts // go tumblr.WritePostsToCSV(posts) server.Run(posts) }
package main import ( "github.com/albertyw/reaction-pics/server" "github.com/albertyw/reaction-pics/tumblr" _ "github.com/joho/godotenv/autoload" "os" "strings" ) const readPostsFromTumblrEnv = "READ_POSTS_FROM_TUMBLR" func getReadPostsFromTumblr() bool { readPostsEnv := os.Getenv(readPostsFromTumblrEnv) if strings.ToLower(readPostsEnv) == "true" { return true } return false } func duplicateChan(in chan tumblr.Post, out1, out2 chan tumblr.Post) { for p := range in { out1 <- p out2 <- p } close(out1) close(out2) } func main() { readPosts := getReadPostsFromTumblr() posts := make(chan tumblr.Post) posts1 := make(chan tumblr.Post) posts2 := make(chan tumblr.Post) go tumblr.GetPosts(readPosts, posts) go duplicateChan(posts, posts1, posts2) go tumblr.WritePostsToCSV(posts1) server.Run(posts2) }
Split post channel for server and writing to csv
Split post channel for server and writing to csv
Go
mit
albertyw/reaction-pics,albertyw/reaction-pics,albertyw/reaction-pics,albertyw/devops-reactions-index,albertyw/devops-reactions-index,albertyw/devops-reactions-index,albertyw/reaction-pics,albertyw/devops-reactions-index
go
## Code Before: package main import ( "github.com/albertyw/reaction-pics/server" "github.com/albertyw/reaction-pics/tumblr" _ "github.com/joho/godotenv/autoload" "os" "strings" ) const readPostsFromTumblrEnv = "READ_POSTS_FROM_TUMBLR" func getReadPostsFromTumblr() bool { readPostsEnv := os.Getenv(readPostsFromTumblrEnv) if strings.ToLower(readPostsEnv) == "true" { return true } return false } func main() { readPosts := getReadPostsFromTumblr() posts := make(chan tumblr.Post) go tumblr.GetPosts(readPosts, posts) // Need to split the channel in order for both server.Run and // tumblr.WritePostsToCSV to read all posts // go tumblr.WritePostsToCSV(posts) server.Run(posts) } ## Instruction: Split post channel for server and writing to csv ## Code After: package main import ( "github.com/albertyw/reaction-pics/server" "github.com/albertyw/reaction-pics/tumblr" _ "github.com/joho/godotenv/autoload" "os" "strings" ) const readPostsFromTumblrEnv = "READ_POSTS_FROM_TUMBLR" func getReadPostsFromTumblr() bool { readPostsEnv := os.Getenv(readPostsFromTumblrEnv) if strings.ToLower(readPostsEnv) == "true" { return true } return false } func duplicateChan(in chan tumblr.Post, out1, out2 chan tumblr.Post) { for p := range in { out1 <- p out2 <- p } close(out1) close(out2) } func main() { readPosts := getReadPostsFromTumblr() posts := make(chan tumblr.Post) posts1 := make(chan tumblr.Post) posts2 := make(chan tumblr.Post) go tumblr.GetPosts(readPosts, posts) go duplicateChan(posts, posts1, posts2) go tumblr.WritePostsToCSV(posts1) server.Run(posts2) }
package main import ( "github.com/albertyw/reaction-pics/server" "github.com/albertyw/reaction-pics/tumblr" _ "github.com/joho/godotenv/autoload" "os" "strings" ) const readPostsFromTumblrEnv = "READ_POSTS_FROM_TUMBLR" func getReadPostsFromTumblr() bool { readPostsEnv := os.Getenv(readPostsFromTumblrEnv) if strings.ToLower(readPostsEnv) == "true" { return true } return false } + func duplicateChan(in chan tumblr.Post, out1, out2 chan tumblr.Post) { + for p := range in { + out1 <- p + out2 <- p + } + close(out1) + close(out2) + } + func main() { readPosts := getReadPostsFromTumblr() posts := make(chan tumblr.Post) + posts1 := make(chan tumblr.Post) + posts2 := make(chan tumblr.Post) go tumblr.GetPosts(readPosts, posts) + go duplicateChan(posts, posts1, posts2) - // Need to split the channel in order for both server.Run and - // tumblr.WritePostsToCSV to read all posts - // go tumblr.WritePostsToCSV(posts) ? --- + go tumblr.WritePostsToCSV(posts1) ? + - server.Run(posts) + server.Run(posts2) ? + }
18
0.62069
14
4
72e0e62f2b5c7f901d3ff10f258a72c0f2b575f2
server/publications.js
server/publications.js
Meteor.publish("post_list", function(page_num){ const posts_per_page = 10; //validating the page number var page_number = page_num; if(!/^[0-9]+$/gi.test(page_num)){ return []; } else if(page_num <= 0) { return []; } return Posts.find({},{ limit: posts_per_page, skip: (parseInt(page_number) - 1) * posts_per_page, sort: { createdAt: -1 } }) }) Meteor.publish("get_post", function(post_id){ //validating the id if(!post_id.match(/^[0-9A-Za-z]{17}(?=(#[0-9a-zA-Z_-]+)?$)/gi)){ return []; } return Posts.find(post_id, { limit: 1, }) }) Meteor.publish("metadata", function(type){ if(type === "posts" || type === "works"){ return MetaData.find({ type: type }); } else { return []; } })
Meteor.publish("post_list", function(page_num){ const posts_per_page = MetaData.findOne({type: "posts"}).posts_per_page; //validating the page number var page_number = page_num; if(!/^[0-9]+$/gi.test(page_num)){ return []; } else if(page_num <= 0) { return []; } return Posts.find({},{ limit: posts_per_page, skip: (parseInt(page_number) - 1) * posts_per_page, sort: { createdAt: -1 } }) }) Meteor.publish("get_post", function(post_id){ //validating the id if(!post_id.match(/^[0-9A-Za-z]{17}(?=(#[0-9a-zA-Z_-]+)?$)/gi)){ return []; } return Posts.find(post_id, { limit: 1, }) }) Meteor.publish("metadata", function(type){ if(type === "posts" || type === "works"){ return MetaData.find({ type: type }); } else { return []; } })
Read posts per page from metadata collection
Read posts per page from metadata collection
JavaScript
mit
Pnctsrc/Pnctsrc-Personal-Website,Pnctsrc/Pnctsrc-Personal-Website
javascript
## Code Before: Meteor.publish("post_list", function(page_num){ const posts_per_page = 10; //validating the page number var page_number = page_num; if(!/^[0-9]+$/gi.test(page_num)){ return []; } else if(page_num <= 0) { return []; } return Posts.find({},{ limit: posts_per_page, skip: (parseInt(page_number) - 1) * posts_per_page, sort: { createdAt: -1 } }) }) Meteor.publish("get_post", function(post_id){ //validating the id if(!post_id.match(/^[0-9A-Za-z]{17}(?=(#[0-9a-zA-Z_-]+)?$)/gi)){ return []; } return Posts.find(post_id, { limit: 1, }) }) Meteor.publish("metadata", function(type){ if(type === "posts" || type === "works"){ return MetaData.find({ type: type }); } else { return []; } }) ## Instruction: Read posts per page from metadata collection ## Code After: Meteor.publish("post_list", function(page_num){ const posts_per_page = MetaData.findOne({type: "posts"}).posts_per_page; //validating the page number var page_number = page_num; if(!/^[0-9]+$/gi.test(page_num)){ return []; } else if(page_num <= 0) { return []; } return Posts.find({},{ limit: posts_per_page, skip: (parseInt(page_number) - 1) * posts_per_page, sort: { createdAt: -1 } }) }) Meteor.publish("get_post", function(post_id){ //validating the id if(!post_id.match(/^[0-9A-Za-z]{17}(?=(#[0-9a-zA-Z_-]+)?$)/gi)){ return []; } return Posts.find(post_id, { limit: 1, }) }) Meteor.publish("metadata", function(type){ if(type === "posts" || type === "works"){ return MetaData.find({ type: type }); } else { return []; } })
Meteor.publish("post_list", function(page_num){ - const posts_per_page = 10; + const posts_per_page = MetaData.findOne({type: "posts"}).posts_per_page; //validating the page number var page_number = page_num; if(!/^[0-9]+$/gi.test(page_num)){ return []; } else if(page_num <= 0) { return []; } return Posts.find({},{ limit: posts_per_page, skip: (parseInt(page_number) - 1) * posts_per_page, sort: { createdAt: -1 } }) }) Meteor.publish("get_post", function(post_id){ //validating the id if(!post_id.match(/^[0-9A-Za-z]{17}(?=(#[0-9a-zA-Z_-]+)?$)/gi)){ return []; } return Posts.find(post_id, { limit: 1, }) }) Meteor.publish("metadata", function(type){ if(type === "posts" || type === "works"){ return MetaData.find({ type: type }); } else { return []; } })
2
0.05
1
1
a0a8c99a5e8eaea5414ad57e3a97465a629e2ee6
catalog/Code_Organization/Form_Objects.yml
catalog/Code_Organization/Form_Objects.yml
name: Form Objects description: projects: - activemodel-form - dry-validation - reform - virtus
name: Form Objects description: projects: - activemodel-form - dry-validation - reform - scrivener - virtus
Add Scrivener to Form Objects
Add Scrivener to Form Objects
YAML
mit
rubytoolbox/catalog
yaml
## Code Before: name: Form Objects description: projects: - activemodel-form - dry-validation - reform - virtus ## Instruction: Add Scrivener to Form Objects ## Code After: name: Form Objects description: projects: - activemodel-form - dry-validation - reform - scrivener - virtus
name: Form Objects description: projects: - activemodel-form - dry-validation - reform + - scrivener - virtus
1
0.142857
1
0
e851fb79a60838cc684c23dbd7f1821e933aacb1
src/img/svg-sprite.js
src/img/svg-sprite.js
import sprite from '../../dist/svg-sprite.json'; const document = window.document || null, glyph_re = new RegExp('-', 'g'); var GLYPHS = {}; if (document) { // add svg sprite data on dom load document.addEventListener('DOMContentLoaded', function() { var svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); // set styles to hide svg.style.position = 'absolute'; svg.style.width = 0; svg.style.height = 0; // set innerHTML for svg data svg.innerHTML = sprite.svg; // inject svg into top of document document.body.insertBefore(svg, document.body.firstChild); // clean up sprite.svg = null; }); } // loop through glyphs and create exportable object sprite.glyphs.forEach((glyph) => { var key = (glyph.toString().slice(0, -7).toUpperCase()); key = key.replace(glyph_re, '_'); GLYPHS[key] = '#' + glyph; }); export default GLYPHS;
import sprite from '../../dist/svg-sprite.json'; const document = window.document || null, glyph_re = new RegExp('-', 'g'); var GLYPHS = { length: 0 }; export function attachSVG() { if (document) { // add svg sprite data on dom load document.addEventListener('DOMContentLoaded', function() { var svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); // set styles to hide svg.style.position = 'absolute'; svg.style.width = 0; svg.style.height = 0; // set innerHTML for svg data svg.innerHTML = sprite.svg; // inject svg into top of document document.body.insertBefore(svg, document.body.firstChild); // clean up sprite.svg = null; }); } } if (!GLYPHS.length) { // loop through glyphs and create exportable object sprite.glyphs.forEach((glyph) => { var key = (glyph.toString().slice(0, -7).toUpperCase()); key = key.replace(glyph_re, '_'); GLYPHS[key] = '#' + glyph; GLYPHS.length += 1; }); } export default GLYPHS;
Convert SVG attachment into a function
Convert SVG attachment into a function
JavaScript
apache-2.0
njpanderson/tag
javascript
## Code Before: import sprite from '../../dist/svg-sprite.json'; const document = window.document || null, glyph_re = new RegExp('-', 'g'); var GLYPHS = {}; if (document) { // add svg sprite data on dom load document.addEventListener('DOMContentLoaded', function() { var svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); // set styles to hide svg.style.position = 'absolute'; svg.style.width = 0; svg.style.height = 0; // set innerHTML for svg data svg.innerHTML = sprite.svg; // inject svg into top of document document.body.insertBefore(svg, document.body.firstChild); // clean up sprite.svg = null; }); } // loop through glyphs and create exportable object sprite.glyphs.forEach((glyph) => { var key = (glyph.toString().slice(0, -7).toUpperCase()); key = key.replace(glyph_re, '_'); GLYPHS[key] = '#' + glyph; }); export default GLYPHS; ## Instruction: Convert SVG attachment into a function ## Code After: import sprite from '../../dist/svg-sprite.json'; const document = window.document || null, glyph_re = new RegExp('-', 'g'); var GLYPHS = { length: 0 }; export function attachSVG() { if (document) { // add svg sprite data on dom load document.addEventListener('DOMContentLoaded', function() { var svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); // set styles to hide svg.style.position = 'absolute'; svg.style.width = 0; svg.style.height = 0; // set innerHTML for svg data svg.innerHTML = sprite.svg; // inject svg into top of document document.body.insertBefore(svg, document.body.firstChild); // clean up sprite.svg = null; }); } } if (!GLYPHS.length) { // loop through glyphs and create exportable object sprite.glyphs.forEach((glyph) => { var key = (glyph.toString().slice(0, -7).toUpperCase()); key = key.replace(glyph_re, '_'); GLYPHS[key] = '#' + glyph; GLYPHS.length += 1; }); } export default GLYPHS;
import sprite from '../../dist/svg-sprite.json'; const document = window.document || null, glyph_re = new RegExp('-', 'g'); - var GLYPHS = {}; ? -- + var GLYPHS = { + length: 0 + }; + export function attachSVG() { - if (document) { + if (document) { ? + - // add svg sprite data on dom load + // add svg sprite data on dom load ? + - document.addEventListener('DOMContentLoaded', function() { + document.addEventListener('DOMContentLoaded', function() { ? + - var svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); + var svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); ? + - // set styles to hide + // set styles to hide ? + - svg.style.position = 'absolute'; + svg.style.position = 'absolute'; ? + - svg.style.width = 0; + svg.style.width = 0; ? + - svg.style.height = 0; + svg.style.height = 0; ? + - // set innerHTML for svg data + // set innerHTML for svg data ? + - svg.innerHTML = sprite.svg; + svg.innerHTML = sprite.svg; ? + - // inject svg into top of document + // inject svg into top of document ? + - document.body.insertBefore(svg, document.body.firstChild); + document.body.insertBefore(svg, document.body.firstChild); ? + - // clean up + // clean up ? + - sprite.svg = null; + sprite.svg = null; ? + + }); + } + } + + if (!GLYPHS.length) { + // loop through glyphs and create exportable object + sprite.glyphs.forEach((glyph) => { + var key = (glyph.toString().slice(0, -7).toUpperCase()); + + key = key.replace(glyph_re, '_'); + + GLYPHS[key] = '#' + glyph; + GLYPHS.length += 1; }); } - // loop through glyphs and create exportable object - sprite.glyphs.forEach((glyph) => { - var key = (glyph.toString().slice(0, -7).toUpperCase()); - - key = key.replace(glyph_re, '_'); - - GLYPHS[key] = '#' + glyph; - }); - export default GLYPHS;
55
1.447368
31
24
f2b9463ee744299caaae1f936003e53ae0e826a6
tasks/style.js
tasks/style.js
/*eslint-disable no-alert, no-console */ import gulp from 'gulp'; import gulpLoadPlugins from 'gulp-load-plugins'; import * as paths from './paths'; const $ = gulpLoadPlugins(); gulp.task('compile:styles', () => { const AUTOPREFIXER_BROWSERS = [ 'ie >= 10', 'ie_mob >= 10', 'ff >= 30', 'chrome >= 34', 'safari >= 7', 'opera >= 23', 'ios >= 7', 'android >= 4.4', 'bb >= 10' ]; return gulp.src(paths.SRC_STYLE) .pipe($.plumber({ errorHandler: (err) => { console.log(err); this.emit('end'); } })) .pipe($.changed(paths.BUILD_DIR, {extension: '.css'})) .pipe($.sass().on('error', $.sass.logError)) .pipe($.autoprefixer(AUTOPREFIXER_BROWSERS)) .pipe(gulp.dest(paths.TMP_DIR)) });
/*eslint-disable no-alert, no-console */ import gulp from 'gulp'; import gulpLoadPlugins from 'gulp-load-plugins'; import * as paths from './paths'; const $ = gulpLoadPlugins(); gulp.task('compile:styles', () => { // See https://github.com/ai/browserslist for more details on how to set // browser versions const AUTOPREFIXER_BROWSERS = ['last 2 versions'] return gulp.src(paths.SRC_STYLE) .pipe($.plumber({ errorHandler: (err) => { console.log(err); this.emit('end'); } })) .pipe($.changed(paths.BUILD_DIR, {extension: '.css'})) .pipe($.sass().on('error', $.sass.logError)) .pipe($.autoprefixer(AUTOPREFIXER_BROWSERS)) .pipe(gulp.dest(paths.TMP_DIR)) });
Simplify browser version selection for autoprefixer
Simplify browser version selection for autoprefixer
JavaScript
unlicense
gsong/es6-jspm-gulp-starter,gsong/es6-jspm-gulp-starter
javascript
## Code Before: /*eslint-disable no-alert, no-console */ import gulp from 'gulp'; import gulpLoadPlugins from 'gulp-load-plugins'; import * as paths from './paths'; const $ = gulpLoadPlugins(); gulp.task('compile:styles', () => { const AUTOPREFIXER_BROWSERS = [ 'ie >= 10', 'ie_mob >= 10', 'ff >= 30', 'chrome >= 34', 'safari >= 7', 'opera >= 23', 'ios >= 7', 'android >= 4.4', 'bb >= 10' ]; return gulp.src(paths.SRC_STYLE) .pipe($.plumber({ errorHandler: (err) => { console.log(err); this.emit('end'); } })) .pipe($.changed(paths.BUILD_DIR, {extension: '.css'})) .pipe($.sass().on('error', $.sass.logError)) .pipe($.autoprefixer(AUTOPREFIXER_BROWSERS)) .pipe(gulp.dest(paths.TMP_DIR)) }); ## Instruction: Simplify browser version selection for autoprefixer ## Code After: /*eslint-disable no-alert, no-console */ import gulp from 'gulp'; import gulpLoadPlugins from 'gulp-load-plugins'; import * as paths from './paths'; const $ = gulpLoadPlugins(); gulp.task('compile:styles', () => { // See https://github.com/ai/browserslist for more details on how to set // browser versions const AUTOPREFIXER_BROWSERS = ['last 2 versions'] return gulp.src(paths.SRC_STYLE) .pipe($.plumber({ errorHandler: (err) => { console.log(err); this.emit('end'); } })) .pipe($.changed(paths.BUILD_DIR, {extension: '.css'})) .pipe($.sass().on('error', $.sass.logError)) .pipe($.autoprefixer(AUTOPREFIXER_BROWSERS)) .pipe(gulp.dest(paths.TMP_DIR)) });
/*eslint-disable no-alert, no-console */ import gulp from 'gulp'; import gulpLoadPlugins from 'gulp-load-plugins'; import * as paths from './paths'; const $ = gulpLoadPlugins(); gulp.task('compile:styles', () => { + // See https://github.com/ai/browserslist for more details on how to set + // browser versions - const AUTOPREFIXER_BROWSERS = [ + const AUTOPREFIXER_BROWSERS = ['last 2 versions'] ? ++++++++++++++++++ - 'ie >= 10', - 'ie_mob >= 10', - 'ff >= 30', - 'chrome >= 34', - 'safari >= 7', - 'opera >= 23', - 'ios >= 7', - 'android >= 4.4', - 'bb >= 10' - ]; return gulp.src(paths.SRC_STYLE) .pipe($.plumber({ errorHandler: (err) => { console.log(err); this.emit('end'); } })) .pipe($.changed(paths.BUILD_DIR, {extension: '.css'})) .pipe($.sass().on('error', $.sass.logError)) .pipe($.autoprefixer(AUTOPREFIXER_BROWSERS)) .pipe(gulp.dest(paths.TMP_DIR)) });
14
0.4
3
11
39d70da8281a1ee686a95c303034ae86e129b0ed
src/clj/five_three_one/server.clj
src/clj/five_three_one/server.clj
(ns five-three-one.server (:require [five-three-one.handler :refer [app]] [environ.core :refer [env]] [ring.adapter.jetty :refer [run-jetty]] [five-three-one.model.migration :refer [migrate]]) (:gen-class)) (defn -main [& args] (let [port (Integer/parseInt (or (env :port) "3000"))] (migrate) (run-jetty app {:port port :join? false})))
(ns five-three-one.server (:require [five-three-one.handler :refer [app]] [environ.core :refer [env]] [ring.adapter.jetty :refer [run-jetty]] [five-three-one.model.migration :refer [migrate]]) (:gen-class)) (defn -main [& args] (if (some #{"migrate"} args) (migrate) (let [port (Integer/parseInt (or (env :port) "3000"))] (run-jetty app {:port port :join? false}))))
Enable "lein run migrate" command for db migration
Enable "lein run migrate" command for db migration
Clojure
epl-1.0
the-clojure-duo/five-three-one,ProjectFrank/five-three-one,the-clojure-duo/five-three-one,ProjectFrank/five-three-one
clojure
## Code Before: (ns five-three-one.server (:require [five-three-one.handler :refer [app]] [environ.core :refer [env]] [ring.adapter.jetty :refer [run-jetty]] [five-three-one.model.migration :refer [migrate]]) (:gen-class)) (defn -main [& args] (let [port (Integer/parseInt (or (env :port) "3000"))] (migrate) (run-jetty app {:port port :join? false}))) ## Instruction: Enable "lein run migrate" command for db migration ## Code After: (ns five-three-one.server (:require [five-three-one.handler :refer [app]] [environ.core :refer [env]] [ring.adapter.jetty :refer [run-jetty]] [five-three-one.model.migration :refer [migrate]]) (:gen-class)) (defn -main [& args] (if (some #{"migrate"} args) (migrate) (let [port (Integer/parseInt (or (env :port) "3000"))] (run-jetty app {:port port :join? false}))))
(ns five-three-one.server (:require [five-three-one.handler :refer [app]] [environ.core :refer [env]] [ring.adapter.jetty :refer [run-jetty]] [five-three-one.model.migration :refer [migrate]]) (:gen-class)) (defn -main [& args] - (let [port (Integer/parseInt (or (env :port) "3000"))] + (if (some #{"migrate"} args) (migrate) + (let [port (Integer/parseInt (or (env :port) "3000"))] - (run-jetty app {:port port :join? false}))) + (run-jetty app {:port port :join? false})))) ? ++ +
5
0.454545
3
2