commit
stringlengths
40
40
old_file
stringlengths
4
237
new_file
stringlengths
4
237
old_contents
stringlengths
1
4.24k
new_contents
stringlengths
5
4.84k
subject
stringlengths
15
778
message
stringlengths
16
6.86k
lang
stringlengths
1
30
license
stringclasses
13 values
repos
stringlengths
5
116k
config
stringlengths
1
30
content
stringlengths
105
8.72k
2e8f42c0b5eb018309d965b01659c496bc08a08b
quickstart/python/understand/example-1/update_initial_intent.6.x.py
quickstart/python/understand/example-1/update_initial_intent.6.x.py
from twilio.rest import Client # Your Account Sid and Auth Token from twilio.com/console account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' auth_token = 'your_auth_token' client = Client(account_sid, auth_token) assistant_sid = 'UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' # Provide actions for your assistant: say something ...
from twilio.rest import Client # Your Account Sid and Auth Token from twilio.com/console account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' auth_token = 'your_auth_token' client = Client(account_sid, auth_token) # Provide actions for your assistant: say something and listen for a repsonse. update_action = { 'acti...
Update intent actions to use assistant SID inline
Update intent actions to use assistant SID inline Maintaining consistency with the auto-generated code samples for Understand, which don't allow for our variable-named placeholder values
Python
mit
TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets
python
## Code Before: from twilio.rest import Client # Your Account Sid and Auth Token from twilio.com/console account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' auth_token = 'your_auth_token' client = Client(account_sid, auth_token) assistant_sid = 'UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' # Provide actions for your assistant...
65b936a9941c64be7eea240accb0945d5a21dc79
tilde/tmuxinator/hcking.yml
tilde/tmuxinator/hcking.yml
project_name: hcking project_root: ~/code/hcking pre: mysql.server start windows: - editor: layout: main-vertical panes: - vim - #empty, will just run plain bash - console: bundle exec rails s
project_name: hcking project_root: ~/code/hcking pre: vagrant up windows: - editor: layout: main-vertical panes: - vim - #empty, will just run plain bash
Use Vagrant for Hacken.in development
Use Vagrant for Hacken.in development
YAML
mit
moonglum/dotfiles,bascht/dotfiles-1,moonglum/dotfiles,bascht/dotfiles-1
yaml
## Code Before: project_name: hcking project_root: ~/code/hcking pre: mysql.server start windows: - editor: layout: main-vertical panes: - vim - #empty, will just run plain bash - console: bundle exec rails s ## Instruction: Use Vagrant for Hacken.in development ## Code After: projec...
372256a11c416662abe98d47a9336960cbe2b1d3
README.md
README.md
Add the project as a git submodule in your li3 app/libraries directory ```bash git submodule add git://github.com/gary-rafferty/li3_airbrake.git libraries/li3_airbrake ``` and then load it by adding the following to you app/config/bootstrap/libraries.php ```php <?php Libraries::add('li3_airbrake', array('apik...
Add the project as a git submodule in your li3 app/libraries directory ```bash git clone git://github.com/gary-rafferty/li3_airbrake.git app/libraries/li3_airbrake ``` and then load it by adding the following to you app/config/bootstrap/libraries.php ```php <?php Libraries::add('li3_airbrake', array('apikey' ...
Install using a regular clone
Install using a regular clone
Markdown
mit
gary-rafferty/li3_airbrake
markdown
## Code Before: Add the project as a git submodule in your li3 app/libraries directory ```bash git submodule add git://github.com/gary-rafferty/li3_airbrake.git libraries/li3_airbrake ``` and then load it by adding the following to you app/config/bootstrap/libraries.php ```php <?php Libraries::add('li3_airbra...
12b41a249c6ed810f9b708aaed578abb7e116f6a
liphte.ts.min.js
liphte.ts.min.js
var fs=require("fs"),vm=require("vm"),includeInThisContext=function(i){var e=fs.readFileSync(i);vm.runInThisContext(e,i)}.bind(this);includeInThisContext("dist/liphte.min.js"),exports.liphte=liphte;
var fs=require("fs"),vm=require("vm"),includeInThisContext=function(i){var e=fs.readFileSync(i);vm.runInThisContext(e,i)}.bind(this);includeInThisContext(__dirname+"/dist/liphte.min.js"),exports.liphte=liphte;
Fix module for NodeJS - apped_dir_name
Fix module for NodeJS - apped_dir_name
JavaScript
mit
maveius/liphte.ts,maveius/liphte.ts
javascript
## Code Before: var fs=require("fs"),vm=require("vm"),includeInThisContext=function(i){var e=fs.readFileSync(i);vm.runInThisContext(e,i)}.bind(this);includeInThisContext("dist/liphte.min.js"),exports.liphte=liphte; ## Instruction: Fix module for NodeJS - apped_dir_name ## Code After: var fs=require("fs"),vm=require("v...
b17d48ef9626015e761d603103188ef458c629a1
server.js
server.js
'use strict'; // Grab important stuff from the environment: var ARDUINO = process.env.ARDUINO; var PORT = process.env.PORT || 56267; // Connect the controller to the device: var FloppyController = require('./lib/floppyController'); var controller = new FloppyController(ARDUINO); // Start the web interface and ...
'use strict'; // Grab important stuff from the environment: var ARDUINO = process.env.ARDUINO; var PORT = process.env.PORT || 56267; // Connect the controller to the device: var FloppyController = require('./lib/floppyController'); var controller = new FloppyController(ARDUINO); // Start the web interface and ...
Set absolute path to public files
Set absolute path to public files
JavaScript
mit
dstelljes/umm-floppy-choir,morrislenny/umm-floppy-choir,dstelljes/umm-floppy-choir,morrislenny/umm-floppy-choir
javascript
## Code Before: 'use strict'; // Grab important stuff from the environment: var ARDUINO = process.env.ARDUINO; var PORT = process.env.PORT || 56267; // Connect the controller to the device: var FloppyController = require('./lib/floppyController'); var controller = new FloppyController(ARDUINO); // Start the we...
d1c9265e3ad8f03be580c2f6c4df3152c449a3e5
documentation/CUSTOMIZE.md
documentation/CUSTOMIZE.md
[<-- Back to main section](../README.md) # Customizing ## Custom packages (`app` controller) You can add custom commands in `Dockerfile.*` ## Custom php.ini directives Modify the `etc/php/development.ini` or `etc/php/production.ini`, it will be added on top of the default php.ini so you can overwrite any directive...
[<-- Back to main section](../README.md) # Customizing ## Custom packages (`app` controller) You can add custom commands in `Dockerfile.*` ## Custom php.ini directives Modify the `etc/php/development.ini` or `etc/php/production.ini`, it will be added on top of the default php.ini so you can overwrite any directive...
Add info about quicker/better "make rebuild" task
[DOCUMENTATION] Add info about quicker/better "make rebuild" task
Markdown
mit
mblaschke/TYPO3-docker-boilerplate,mblaschke/TYPO3-docker-boilerplate,mblaschke/TYPO3-docker-boilerplate,webdevops/TYPO3-docker-boilerplate,webdevops/TYPO3-docker-boilerplate
markdown
## Code Before: [<-- Back to main section](../README.md) # Customizing ## Custom packages (`app` controller) You can add custom commands in `Dockerfile.*` ## Custom php.ini directives Modify the `etc/php/development.ini` or `etc/php/production.ini`, it will be added on top of the default php.ini so you can overwri...
fcf63325d07df3a73e92d74c09adf7327806329e
aloha/static/js/jquery-youtube.js
aloha/static/js/jquery-youtube.js
define([ 'jquery' ], function ( $ ) { $.fn.activateYoutube = function(trigger) { if (trigger === undefined) { trigger = true; } $('.youtube', this).empty().each(function(index, element) { $youtube = $(element); var thumbsrc = "//i.ytimg.com/vi/" + $youtube.data('id') + "/hqdefault.jpg"; $youtube...
define([ 'jquery' ], function ( $ ) { $.fn.activateYoutube = function(trigger) { if (trigger === undefined) { trigger = true; } $('.youtube', this).empty().each(function(index, element) { $youtube = $(element); var thumbsrc = "//i.ytimg.com/vi/" + $youtube.data('id') + "/hqdefault.jpg"; var embe...
Add microdata to youtube embeds
Add microdata to youtube embeds
JavaScript
bsd-2-clause
ntucker/django-aloha-edit,ntucker/django-aloha-edit,ntucker/django-aloha-edit
javascript
## Code Before: define([ 'jquery' ], function ( $ ) { $.fn.activateYoutube = function(trigger) { if (trigger === undefined) { trigger = true; } $('.youtube', this).empty().each(function(index, element) { $youtube = $(element); var thumbsrc = "//i.ytimg.com/vi/" + $youtube.data('id') + "/hqdefault.j...
82579020e77ec2eb8d33d4e8f6e26763bd2c6d16
OrbitCaptureGgpClient/CMakeLists.txt
OrbitCaptureGgpClient/CMakeLists.txt
project(OrbitCaptureGgpClientLib) add_library(OrbitCaptureGgpClientLib STATIC) target_compile_options(OrbitCaptureGgpClientLib PRIVATE ${STRICT_COMPILE_FLAGS}) target_include_directories(OrbitCaptureGgpClientLib PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include) target_include_directories(OrbitCaptureGgpCl...
project(OrbitCaptureGgpClientLib) add_library(OrbitCaptureGgpClientLib STATIC) target_compile_options(OrbitCaptureGgpClientLib PRIVATE ${STRICT_COMPILE_FLAGS}) target_include_directories(OrbitCaptureGgpClientLib PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include) target_include_directories(OrbitCaptureGgpCl...
Update OrbitCaptureGgpClientLib to link OrbitBase
Update OrbitCaptureGgpClientLib to link OrbitBase Reduce number of dependencies of the project
Text
bsd-2-clause
google/orbit,google/orbit,google/orbit,google/orbit
text
## Code Before: project(OrbitCaptureGgpClientLib) add_library(OrbitCaptureGgpClientLib STATIC) target_compile_options(OrbitCaptureGgpClientLib PRIVATE ${STRICT_COMPILE_FLAGS}) target_include_directories(OrbitCaptureGgpClientLib PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include) target_include_directories(O...
544b4ca6067c287fef19b847a34aab94d57d5dfb
lib/bummr/updater.rb
lib/bummr/updater.rb
module Bummr class Updater include Log def initialize(outdated_gems) @outdated_gems = outdated_gems end def update_gems puts "Updating outdated gems".color(:green) @outdated_gems.each_with_index do |gem, index| update_gem(gem, index) end end def update_gem(g...
module Bummr class Updater include Log def initialize(outdated_gems) @outdated_gems = outdated_gems end def update_gems puts "Updating outdated gems".color(:green) @outdated_gems.each_with_index do |gem, index| update_gem(gem, index) end end def update_gem(g...
Deal with updating gem dependencies only
Deal with updating gem dependencies only
Ruby
mit
lpender/bummr
ruby
## Code Before: module Bummr class Updater include Log def initialize(outdated_gems) @outdated_gems = outdated_gems end def update_gems puts "Updating outdated gems".color(:green) @outdated_gems.each_with_index do |gem, index| update_gem(gem, index) end end ...
d7808305cc4619e8e98ca857a81e8a905d630cf7
layouts/partials/head_custom.html
layouts/partials/head_custom.html
<!-- If you want to include any custom html just before </head>, put it in this file. Or you can delete these file if you don't need it. --> <!-- for example, you could insert this custom css, which makes the bigimg not stretch: <style> .intro-header.big-img, .intro-header.big-img .big-img-transition { -webkit-backg...
<!-- If you want to include any custom html just before </head>, put it in this file. Or you can delete these file if you don't need it. --> <!-- for example, you could insert this custom css, which makes the bigimg not stretch: <style> .intro-header.big-img, .intro-header.big-img .big-img-transition { -webkit-backg...
Include AdSense script in header
Include AdSense script in header
HTML
mit
jonmcalder/jonmcalder.github.io,jonmcalder/jonmcalder.github.io,jonmcalder/jonmcalder.github.io
html
## Code Before: <!-- If you want to include any custom html just before </head>, put it in this file. Or you can delete these file if you don't need it. --> <!-- for example, you could insert this custom css, which makes the bigimg not stretch: <style> .intro-header.big-img, .intro-header.big-img .big-img-transition {...
b05496a1825d46b86805e66b1884db62ee755f20
README.md
README.md
batsd-ruby ========== A ruby client for batsd.
batsd-ruby ========== A Ruby client for [batsd](https://github.com/noahhl/batsd), a ruby-based alternative to statsd for aggregating and storing statistics. # Installation A simple gem installation. gem install batsd Or you can include it in your Gemfile: gem "batsd" # Getting Started You can connect to Batsd...
Add basic instructions to the readme
Add basic instructions to the readme
Markdown
mit
hathaway/batsd-client
markdown
## Code Before: batsd-ruby ========== A ruby client for batsd. ## Instruction: Add basic instructions to the readme ## Code After: batsd-ruby ========== A Ruby client for [batsd](https://github.com/noahhl/batsd), a ruby-based alternative to statsd for aggregating and storing statistics. # Installation A simple gem...
14bed520210c198ddbb3bab42eac702bf0efbebc
composer.json
composer.json
{ "name": "lvis/slim2app", "description": "A Slim 2 Framework skeleton application", "keywords": [ "microframework", "rest", "router" ], "homepage": "https://github.com/lvis/slim2app", "license": "MIT", "authors": [ { "name": "Vitalii Lupu", "email": "vitaliix@gmail.com" } ...
{ "name": "lvis/slim2app", "description": "A Slim 2 Framework skeleton application", "keywords": [ "microframework", "rest", "router" ], "homepage": "https://github.com/lvis/slim2app", "license": "MIT", "authors": [ { "name": "Vitalii Lupu", "email": "vitaliix@gmail.com" } ...
Correct start command in scripts
Correct start command in scripts
JSON
mit
lvis/slim2app,lvis/slim2app
json
## Code Before: { "name": "lvis/slim2app", "description": "A Slim 2 Framework skeleton application", "keywords": [ "microframework", "rest", "router" ], "homepage": "https://github.com/lvis/slim2app", "license": "MIT", "authors": [ { "name": "Vitalii Lupu", "email": "vitaliix@g...
ca087fb4815d5c26fc22e2a3519d712e2ba9698c
lib/test_api.rb
lib/test_api.rb
class TestAPI attr_reader :driver, :browser def initialize(driver, test_helper, interactive_path, interactive_url, browser, cloud) @driver = driver @test_helper = test_helper @int_url = interactive_url @browser = browser @screenshots_count = 0 @screenshot_name = "#{interactive_path.gsub(/[...
class TestAPI attr_reader :driver, :browser def initialize(driver, test_helper, interactive_path, interactive_url, browser, cloud) @driver = driver @test_helper = test_helper @int_url = interactive_url @browser = browser @screenshots_count = 0 @screenshot_name = "#{interactive_path.gsub(/[...
Add click_button helper method to TestAPI
Add click_button helper method to TestAPI [#69469480] Special case for iPad (using jQuery).
Ruby
mit
concord-consortium/lab-selenium-tests,concord-consortium/lab-selenium-tests,concord-consortium/lab-selenium-tests
ruby
## Code Before: class TestAPI attr_reader :driver, :browser def initialize(driver, test_helper, interactive_path, interactive_url, browser, cloud) @driver = driver @test_helper = test_helper @int_url = interactive_url @browser = browser @screenshots_count = 0 @screenshot_name = "#{interact...
6557cbe8bee7ded848ba7c3928e2b4f82aedeea8
linked-list/remove-k-from-list.py
linked-list/remove-k-from-list.py
class Node(object): def __init__(self, value): self.value = value self.next = None def remove_k_from_list(l, k): fake_head = Node(None) fake_head.next = l current_node = fake_head while current_node: while current_node.next and current_node.next.value == k: current_node.next = current_node.next.next ...
class Node(object): # define constructor def __init__(self, value): self.value = value self.next = None class LinkedList(object): def __init__(self, head=None): self.head = head def add(self, new_node): current_node = self.head if self.head: while current_node.next: current_node = current_node.ne...
Add linked list class and add method
Add linked list class and add method
Python
mit
derekmpham/interview-prep,derekmpham/interview-prep
python
## Code Before: class Node(object): def __init__(self, value): self.value = value self.next = None def remove_k_from_list(l, k): fake_head = Node(None) fake_head.next = l current_node = fake_head while current_node: while current_node.next and current_node.next.value == k: current_node.next = current_n...
ebeb0a57ffa508b60af79f831bb606e83bcd02d4
lib/model.js
lib/model.js
'use strict'; const events = require('events'); const utils = require('util'); const base = require('./base.js'); const protos = require('./proto.js'); const statics = require('./static.js'); const validators = require('./validator.js'); exports.createModel = createModel; function createModel (name, properties) { ...
'use strict'; const events = require('events'); const utils = require('util'); const base = require('./base.js'); const protos = require('./proto.js'); const statics = require('./static.js'); const validators = require('./validator.js'); exports.createModel = createModel; function createModel (name, properties) { ...
Remove need to set up properties.
[change] Remove need to set up properties.
JavaScript
mit
joaodubas/blueprint-model
javascript
## Code Before: 'use strict'; const events = require('events'); const utils = require('util'); const base = require('./base.js'); const protos = require('./proto.js'); const statics = require('./static.js'); const validators = require('./validator.js'); exports.createModel = createModel; function createModel (name, ...
a164e7886535101975ca263132e021a0a3f29925
app/Events/TagCreating.php
app/Events/TagCreating.php
<?php namespace App\Events; use App\Notification; use App\Tag; use Illuminate\Broadcasting\Channel; use Illuminate\Queue\SerializesModels; use Illuminate\Broadcasting\PrivateChannel; use Illuminate\Broadcasting\PresenceChannel; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Broadcasting\InteractsWithSo...
<?php namespace App\Events; use App\Notification; use App\Tag; use Illuminate\Broadcasting\Channel; use Illuminate\Queue\SerializesModels; use Illuminate\Broadcasting\PrivateChannel; use Illuminate\Broadcasting\PresenceChannel; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Broadcasting\InteractsWithSo...
Add user_id to notifications in existing events
Add user_id to notifications in existing events
PHP
mit
pix3ly/budget,pix3ly/budget
php
## Code Before: <?php namespace App\Events; use App\Notification; use App\Tag; use Illuminate\Broadcasting\Channel; use Illuminate\Queue\SerializesModels; use Illuminate\Broadcasting\PrivateChannel; use Illuminate\Broadcasting\PresenceChannel; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Broadcasting...
dfbb22d5c33f474780f08310966007b42acb8725
buildpack-deps/content.md
buildpack-deps/content.md
In spirit, `buildpack-deps` is similar to [Heroku's stack images](https://github.com/heroku/stack-images/blob/master/bin/cedar.sh). It includes a large number of "development header" packages needed by various things like Ruby Gems, PyPI modules, etc. For example, `buildpack-deps` would let you do a `bundle install` i...
In spirit, `buildpack-deps` is similar to [Heroku's stack images](https://github.com/heroku/stack-images/blob/master/bin/cedar.sh). It includes a large number of "development header" packages needed by various things like Ruby Gems, PyPI modules, etc. For example, `buildpack-deps` would let you do a `bundle install` i...
Add some documentation about where the line between the new variants of buildpack-deps is
Add some documentation about where the line between the new variants of buildpack-deps is
Markdown
mit
infosiftr/docker-library-docs,dpwspoon/docs,volmarl/docs,thaihau/docs,vmassol/docs,peterkuiper/docs,testshotagit/docs,BastianHofmann/docs-1,emilevauge/docs,tfoote/docker-library-docs,EIrwin/docs,leangjia/docs,dancrumb/docs,alejdg/docs,Starefossen/docs,tfoote/docker-library-docs,nghiant2710/docs,alejdg/docs,dinogun/docs...
markdown
## Code Before: In spirit, `buildpack-deps` is similar to [Heroku's stack images](https://github.com/heroku/stack-images/blob/master/bin/cedar.sh). It includes a large number of "development header" packages needed by various things like Ruby Gems, PyPI modules, etc. For example, `buildpack-deps` would let you do a `b...
575b545bdec85b9d5bd360d737c88333bd5c7001
src/main/java/com/gitlab/artismarti/tinbo/notes/NoteEntry.kt
src/main/java/com/gitlab/artismarti/tinbo/notes/NoteEntry.kt
package com.gitlab.artismarti.tinbo.notes import com.gitlab.artismarti.tinbo.common.Entry /** * @author artur */ class NoteEntry(val message: String = "") : Entry() { override fun compareTo(other: Entry): Int { if (other !is NoteEntry) return 1 return message.compareTo(other.message) } override fun toStrin...
package com.gitlab.artismarti.tinbo.notes import com.gitlab.artismarti.tinbo.common.Entry /** * @author artur */ class NoteEntry(val message: String = "") : Entry() { override fun compareTo(other: Entry): Int { return 1 } override fun toString(): String { return "$message" } }
Remove sorting of notes in list command
Remove sorting of notes in list command
Kotlin
apache-2.0
arturbosch/TiNBo,arturbosch/TiNBo,arturbosch/TiNBo
kotlin
## Code Before: package com.gitlab.artismarti.tinbo.notes import com.gitlab.artismarti.tinbo.common.Entry /** * @author artur */ class NoteEntry(val message: String = "") : Entry() { override fun compareTo(other: Entry): Int { if (other !is NoteEntry) return 1 return message.compareTo(other.message) } over...
125df400ace204c1d77876ca5751ed05fbf3ef8e
hardware/pkone/index.rst
hardware/pkone/index.rst
How to configure MPF for Penny K Pinball PKONE hardware ======================================================= Here's a list of all the How To guides which explain how to use MPF with Penny K Pinball PKONE hardware. These guides include the numbering format (how you map specific entries in your config files to board ...
How to configure MPF for Penny K Pinball PKONE hardware ======================================================= Here's a list of all the How To guides which explain how to use MPF with Penny K Pinball PKONE hardware. These guides include the numbering format (how you map specific entries in your config files to board ...
Add missing file to toc
Add missing file to toc
reStructuredText
mit
missionpinball/mpf-docs,missionpinball/mpf-docs
restructuredtext
## Code Before: How to configure MPF for Penny K Pinball PKONE hardware ======================================================= Here's a list of all the How To guides which explain how to use MPF with Penny K Pinball PKONE hardware. These guides include the numbering format (how you map specific entries in your config...
dba20d4e4f51ab79cba1ff3b50c1db8fc22b205a
src/main/scala/ducttape/workflow/spectypes.scala
src/main/scala/ducttape/workflow/spectypes.scala
package ducttape.workflow import ducttape.syntax.AbstractSyntaxTree.Spec import ducttape.syntax.AbstractSyntaxTree.LiteralSpec import ducttape.syntax.AbstractSyntaxTree.TaskDef class SpecPairType[SpecT <: Spec]( val origSpec: Spec, val srcTask: Option[TaskDef], val srcSpec: SpecT, val isParam: Boolean...
package ducttape.workflow import ducttape.syntax.AbstractSyntaxTree.Spec import ducttape.syntax.AbstractSyntaxTree.LiteralSpec import ducttape.syntax.AbstractSyntaxTree.TaskDef class SpecPairType[SpecT <: Spec]( val origSpec: Spec, val srcTask: Option[TaskDef], val srcSpec: SpecT, val isParam: Boolean...
Make GraphViz output easier on the eyes
Make GraphViz output easier on the eyes
Scala
mpl-2.0
jhclark/ducttape,jhclark/ducttape,jhclark/ducttape
scala
## Code Before: package ducttape.workflow import ducttape.syntax.AbstractSyntaxTree.Spec import ducttape.syntax.AbstractSyntaxTree.LiteralSpec import ducttape.syntax.AbstractSyntaxTree.TaskDef class SpecPairType[SpecT <: Spec]( val origSpec: Spec, val srcTask: Option[TaskDef], val srcSpec: SpecT, val ...
16a459d0080fa767bebc819699cad82b72412af2
.travis.yml
.travis.yml
language: c sudo: false compiler: - gcc - clang os: - linux - osx addons: apt: packages: - libc6-dbg - libc6-dev - libc6:i386 - libc6-dev-i386 - libc6-dbg:i386 - gcc-multilib - valgrind env: - CFLAGS="-Werror" - PRE="valgrind --track-origins=yes --leak-check=full" ...
language: c sudo: false compiler: - gcc - clang os: - linux - osx before_script: - if [ "$TRAVIS_OS_NAME" == "osx" ] ; then brew update; brew install redis; fi addons: apt: packages: - libc6-dbg - libc6-dev - libc6:i386 - libc6-dev-i386 - libc6-dbg:i386 - gcc-multilib - ...
Add a before_script for the OS X environment
Add a before_script for the OS X environment
YAML
bsd-3-clause
charsyam/hiredis,thomaslee/hiredis,owent-contrib/hiredis,jinguoli/hiredis,charsyam/hiredis,jinguoli/hiredis,redis/hiredis,owent-contrib/hiredis,redis/hiredis,thomaslee/hiredis,jinguoli/hiredis,redis/hiredis
yaml
## Code Before: language: c sudo: false compiler: - gcc - clang os: - linux - osx addons: apt: packages: - libc6-dbg - libc6-dev - libc6:i386 - libc6-dev-i386 - libc6-dbg:i386 - gcc-multilib - valgrind env: - CFLAGS="-Werror" - PRE="valgrind --track-origins=yes --lea...
d8940067f579975ccdae5a5340e7c01bf045b2fc
metadata/org.fossasia.badgemagic.yml
metadata/org.fossasia.badgemagic.yml
Categories: - Connectivity License: Apache-2.0 SourceCode: https://github.com/fossasia/badge-magic-android IssueTracker: https://github.com/fossasia/badge-magic-android/issues AutoName: Badge Magic Description: The Badge Magic Android app lets you create scrolling symbols and text on LED name badges through Blue...
Categories: - Connectivity License: Apache-2.0 SourceCode: https://github.com/fossasia/badge-magic-android IssueTracker: https://github.com/fossasia/badge-magic-android/issues AutoName: Badge Magic Description: The Badge Magic Android app lets you create scrolling symbols and text on LED name badges through Blue...
Update Badge Magic to 1.1.0 (3)
Update Badge Magic to 1.1.0 (3)
YAML
agpl-3.0
f-droid/fdroiddata,f-droid/fdroiddata
yaml
## Code Before: Categories: - Connectivity License: Apache-2.0 SourceCode: https://github.com/fossasia/badge-magic-android IssueTracker: https://github.com/fossasia/badge-magic-android/issues AutoName: Badge Magic Description: The Badge Magic Android app lets you create scrolling symbols and text on LED name bad...
cb7832b1be4b0786dcfcf014243f590e40de6ce0
README.md
README.md
![Play_IDE](/app/assets/images/Play_IDE_screenshot.png) # Play_IDE A sandbox to allow you to explore front end programming principles. ### Requirements * Rails 5.0.1 ### Technologies used to make this: * [Ace Code Editor](https://ace.c9.io/#nav=about) for code editing ### License Persist is released under t...
![Play_IDE](/app/assets/images/Play_IDE_screenshot.png) # Play_IDE A sandbox to allow you to explore front end programming principles. Current working version [Play_IDE](https://play-ide.herokuapp.com/) ### Requirements * Rails 5.0.1 ### Technologies used to make this: * [Ace Code Editor](https://ace.c9.io/#nav...
Change ReadMe deploy to heroku
Change ReadMe deploy to heroku
Markdown
mit
DonLang/Play_IDE,DonLang/Play_IDE,DonLang/Play_IDE
markdown
## Code Before: ![Play_IDE](/app/assets/images/Play_IDE_screenshot.png) # Play_IDE A sandbox to allow you to explore front end programming principles. ### Requirements * Rails 5.0.1 ### Technologies used to make this: * [Ace Code Editor](https://ace.c9.io/#nav=about) for code editing ### License Persist is ...
f88e2aaf931bc123e813878e34f12c25e8abb9b5
.travis.yml
.travis.yml
language: node_js node_js: - "0.11" - "0.10" - "0.8" - "0.6"
language: node_js node_js: - "0.6" - "0.8" - "0.10" env: global: - BIN="node" matrix: - BIN="phantomjs" - BIN="phantomjs" - BIN="phantomjs" matrix: include: - node_js: "0.10" env: BIN="istanbul" - node_js: "0.10" env: BIN="narwhal" - node_js: "0.10" env: BIN="rh...
Test on Rhino, Ringo, Narwhal and PhantomJS on Travis
Test on Rhino, Ringo, Narwhal and PhantomJS on Travis
YAML
mit
bestiejs/json3,jcoc611/cassandraMAP,yetone/json3,yetone/json3,mcanthony/json3,bestiejs/json3,jcoc611/cassandraMAP,mcanthony/json3
yaml
## Code Before: language: node_js node_js: - "0.11" - "0.10" - "0.8" - "0.6" ## Instruction: Test on Rhino, Ringo, Narwhal and PhantomJS on Travis ## Code After: language: node_js node_js: - "0.6" - "0.8" - "0.10" env: global: - BIN="node" matrix: - BIN="phantomjs" - BIN="phantomjs" ...
c128c5beb185b22fb993e0bfdc3de87f3182eed4
lib/merb_cucumber/world/base.rb
lib/merb_cucumber/world/base.rb
module Merb module Test module World module Base include Merb::Test::ControllerHelper include Merb::Test::RouteHelper include Merb::Test::ViewHelper end end end end
module Merb module Test module World module Base include Merb::Test::Matchers include Merb::Test::ControllerHelper include Merb::Test::RouteHelper include Merb::Test::ViewHelper end end end end
Include Merb's matchers. (Waiting for patch to merb-core to be accepted.)
Include Merb's matchers. (Waiting for patch to merb-core to be accepted.)
Ruby
mit
david/merb_cucumber
ruby
## Code Before: module Merb module Test module World module Base include Merb::Test::ControllerHelper include Merb::Test::RouteHelper include Merb::Test::ViewHelper end end end end ## Instruction: Include Merb's matchers. (Waiting for patch to merb-core to be accepted.) ...
7323fa5016ec0c73be622744e196333c38b54bc4
app/controllers/report_controller.rb
app/controllers/report_controller.rb
class ReportController < ApplicationController include Concerns::Repository helper_method :metric_score, :record def repository load_repositories(:show) @score = average_score(@repository) end def metric load_repositories(:repository) @metric = params[:show].underscore.to_sym @record1 = ...
class ReportController < ApplicationController include Concerns::Repository helper_method :metric_score, :record def repository load_repositories(:show) @score = average_score(@repository) end def metric load_repositories(:repository) @metric = params[:show].underscore.to_sym @record1 = ...
Update controller instance variable from parameter
Update controller instance variable from parameter I forgot to update the instance variables if a certain record parameter is set. This is now done by using the same reflection methods. Signed-off-by: Konrad Reiche <4ff0213f56e2082fcd8c882d04c546881c579ce4@gmail.com>
Ruby
mit
platzhirsch/metadata-census
ruby
## Code Before: class ReportController < ApplicationController include Concerns::Repository helper_method :metric_score, :record def repository load_repositories(:show) @score = average_score(@repository) end def metric load_repositories(:repository) @metric = params[:show].underscore.to_sym...
ae668befe52e0bfdb738292deea6698c38352e24
pi/start-gstreamer.sh
pi/start-gstreamer.sh
sleep 15 raspivid -hf -t 0 -h 480 -w 640 -fps 25 -b 2000000 -o - | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! gdppay ! tcpserversink host=192.168.1.221 port=5000 echo "Up!"
sleep 15 raspivid -hf -t 0 -h 480 -w 640 -fps 25 -b 2000000 -o - | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! gdppay ! tcpserversink host=`hostname -I | head -1` port=5000 echo "Up!"
Make start script device independent
Make start script device independent
Shell
unlicense
jonducrou/PiHat,jonducrou/PiHat
shell
## Code Before: sleep 15 raspivid -hf -t 0 -h 480 -w 640 -fps 25 -b 2000000 -o - | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! gdppay ! tcpserversink host=192.168.1.221 port=5000 echo "Up!" ## Instruction: Make start script device independent ## Code After: sleep 15 raspivid -hf -t 0...
c383a935445d29c0acd1b4bc3dd28fc3f6f1fe59
packages/di/digestive-functors-lucid.yaml
packages/di/digestive-functors-lucid.yaml
homepage: http://github.com/jaspervdj/digestive-functors changelog-type: '' hash: 731570ecaa0547081e812c88dbbb6d4fd34bab809c3914e27c6d7f60fa7f4f42 test-bench-deps: {} maintainer: Athan Clark <athan.clark@gmail.com> synopsis: Lucid frontend for the digestive-functors library changelog: '' basic-deps: lucid: ! '>=2.9' ...
homepage: http://github.com/jaspervdj/digestive-functors changelog-type: '' hash: 120e6a7de53c5ab76f84f4604790f0f3cdc6b832d1e341d7dc9a56731b303870 test-bench-deps: {} maintainer: Athan Clark <athan.clark@gmail.com> synopsis: Lucid frontend for the digestive-functors library changelog: '' basic-deps: lucid: ! '>=2.9' ...
Update from Hackage at 2015-06-30T20:02:27+0000
Update from Hackage at 2015-06-30T20:02:27+0000
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: http://github.com/jaspervdj/digestive-functors changelog-type: '' hash: 731570ecaa0547081e812c88dbbb6d4fd34bab809c3914e27c6d7f60fa7f4f42 test-bench-deps: {} maintainer: Athan Clark <athan.clark@gmail.com> synopsis: Lucid frontend for the digestive-functors library changelog: '' basic-deps: l...
bc477d40a5a4d632a3ac3cb47186570c523b3fee
libraries/matchers.rb
libraries/matchers.rb
if defined?(ChefSpec) def install_xcode_command_line_tools(resource_name) ChefSpec::Matchers::ResourceMatcher.new(:xcode_command_line_tools, :install, resource_name) end end
if defined?(ChefSpec) def install_xcode_command_line_tools(resource_name) ChefSpec::Matchers::ResourceMatcher.new(:xcode_command_line_tools, :install, resource_name) end def install_build_essential(resource_name) ChefSpec::Matchers::ResourceMatcher.new(:build_essential, :install, resource_name) end end...
Add a matcher for the new resource
Add a matcher for the new resource
Ruby
apache-2.0
chef-cookbooks/build-essential,opscode-cookbooks/build-essential,GannettDigital/chef-build-essential,protec-cookbooks/build-essential
ruby
## Code Before: if defined?(ChefSpec) def install_xcode_command_line_tools(resource_name) ChefSpec::Matchers::ResourceMatcher.new(:xcode_command_line_tools, :install, resource_name) end end ## Instruction: Add a matcher for the new resource ## Code After: if defined?(ChefSpec) def install_xcode_command_line...
35de520dffd5a7e592b44295ae79e5abd117a630
app/scripts/models/online-player.js
app/scripts/models/online-player.js
import AsyncPlayer from './async-player.js'; // An online player whose moves are determined by a remote human user class OnlinePlayer extends AsyncPlayer { constructor({ game }) { game.session.on('receive-next-move', ({ column }) => { game.emit('online-player:receive-next-move', { column }); }); } ...
import AsyncPlayer from './async-player.js'; // An online player whose moves are determined by a remote human user class OnlinePlayer extends AsyncPlayer { constructor({ game }) { // Add a global listener here for all moves we will receive from the // opponent (online) player during the course of the game; ...
Comment OnlinePlayer code more thoroughly
Comment OnlinePlayer code more thoroughly
JavaScript
mit
caleb531/connect-four
javascript
## Code Before: import AsyncPlayer from './async-player.js'; // An online player whose moves are determined by a remote human user class OnlinePlayer extends AsyncPlayer { constructor({ game }) { game.session.on('receive-next-move', ({ column }) => { game.emit('online-player:receive-next-move', { column }...
0f637ea1b320fbd7f396559ba07990a9c41094b4
src/Edge/Filter/StrReplace.php
src/Edge/Filter/StrReplace.php
<?php namespace Edge\Filter; use Zend\Filter\FilterInterface; class StrReplace implements FilterInterface { protected $search; protected $replace; public function __construct($search, $replace) { $this->search = $search; $this->replace = $replace; } public function filter(...
<?php namespace Edge\Filter; use Zend\Filter\FilterInterface; class StrReplace implements FilterInterface { protected $search; protected $replace; public function __construct($search, $replace) { $this->search = $search; $this->replace = $replace; } public function filter(...
Check if value is a string first
Check if value is a string first
PHP
mit
outeredge/edge-module,outeredge/edge-zf2
php
## Code Before: <?php namespace Edge\Filter; use Zend\Filter\FilterInterface; class StrReplace implements FilterInterface { protected $search; protected $replace; public function __construct($search, $replace) { $this->search = $search; $this->replace = $replace; } public ...
3f4f9e89bc5b1498938694f7d028d9724d5088f8
README.md
README.md
[![Build Status](https://travis-ci.org/AndrewKvalheim/middleman-vcs-time.png?branch=master)](https://travis-ci.org/AndrewKvalheim/middleman-vcs-time) Provides means to look up the last-modified times of [Middleman][] sitemap resources according to a version control system. Supported version control systems: - Git...
[![Gem Version][gem-version-badge]][gem-version] [![Build Status][build-status-badge]][build-status] Provides means to look up the last-modified times of [Middleman][] sitemap resources according to a version control system. Supported version control systems: - Git ## Installation Add to your `Gemfile`: ```rub...
Add gem version badge, tidy readme.
Add gem version badge, tidy readme.
Markdown
mit
AndrewKvalheim/middleman-vcs-time,AndrewKvalheim/middleman-vcs-time
markdown
## Code Before: [![Build Status](https://travis-ci.org/AndrewKvalheim/middleman-vcs-time.png?branch=master)](https://travis-ci.org/AndrewKvalheim/middleman-vcs-time) Provides means to look up the last-modified times of [Middleman][] sitemap resources according to a version control system. Supported version control s...
041a6ac726daaf4b44b4b872e5f9831405b7df49
public/templates/dashboard_instance_list.handlebars
public/templates/dashboard_instance_list.handlebars
{{#each models}} <li data-id="{{id}}"> <span class="spacer left"/> <img src="{{imageUrl}}"/> <div class="text"> <div class="main"> <span class="name" title="{{name}}">{{name}}</span> </div> <div class="browse"> <a href="#" c...
{{#each models}} <li data-id="{{id}}"> <span class="spacer left"/> <a class="image"> <img src="{{imageUrl}}"/> </a> <div class="text"> <div class="main"> <span class="name" title="{{name}}">{{name}}</span> </div> <div cl...
Fix styling on dashboard instance list.
Fix styling on dashboard instance list.
Handlebars
apache-2.0
hewtest/chorus,atul-alpine/chorus,prakash-alpine/chorus,lukepolo/chorus,atul-alpine/chorus,prakash-alpine/chorus,lukepolo/chorus,jamesblunt/chorus,jamesblunt/chorus,hewtest/chorus,hewtest/chorus,lukepolo/chorus,hewtest/chorus,prakash-alpine/chorus,lukepolo/chorus,jamesblunt/chorus,atul-alpine/chorus,atul-alpine/chorus,...
handlebars
## Code Before: {{#each models}} <li data-id="{{id}}"> <span class="spacer left"/> <img src="{{imageUrl}}"/> <div class="text"> <div class="main"> <span class="name" title="{{name}}">{{name}}</span> </div> <div class="browse"> ...
c5dde61b5ab2ce38514cb32305c4e5e79f16f475
.gitlab-ci.yml
.gitlab-ci.yml
pages: stage: deploy script: - echo 'Nothing to do...' artifacts: paths: - "." only: - master
image: alpine:latest pages: stage: deploy script: - mkdir .public - cp -r * .public - mv .public public artifacts: paths: - public only: - master
Update ci file based on suggestion
Update ci file based on suggestion
YAML
mit
JikkuJose/JikkuJose.github.io,JikkuJose/JikkuJose.github.io
yaml
## Code Before: pages: stage: deploy script: - echo 'Nothing to do...' artifacts: paths: - "." only: - master ## Instruction: Update ci file based on suggestion ## Code After: image: alpine:latest pages: stage: deploy script: - mkdir .public - cp -r * .public - mv .public public artifa...
5e1ffdab41c322a9bcd466b34aabaa37ef08a6e2
profiling_run.py
profiling_run.py
import skin_core_scanner_simple as scss reload(scss) import equil_solver as es reload(es) import newcomb_simple as new reload(new) (lambda_a_mesh, k_a_mesh, stability_maps) = scss.scan_lambda_k_space([0.01, 3.0, 25.], [0.01, 1.5, 25], epsilon=0.11, core_radius_norm=0.9, ...
import skin_core_scanner_simple as scss reload(scss) import equil_solver as es reload(es) import newcomb_simple as new reload(new) (lambda_a_mesh, k_a_mesh, stability_maps) = scss.scan_lambda_k_space([0.01, 3.0, 25.], [0.01, 1.5, 25], epsilon=0.11, core_radius_norm=0.9, ...
Make jacobian use more explicit.
Make jacobian use more explicit.
Python
mit
jensv/fluxtubestability,jensv/fluxtubestability
python
## Code Before: import skin_core_scanner_simple as scss reload(scss) import equil_solver as es reload(es) import newcomb_simple as new reload(new) (lambda_a_mesh, k_a_mesh, stability_maps) = scss.scan_lambda_k_space([0.01, 3.0, 25.], [0.01, 1.5, 25], epsilon=0.11, core_rad...
f17a29d668edd30fc48a15757de8fac928de8125
requirements.txt
requirements.txt
argparse>=1.4.0 coveralls>=1.1 coverage>=4.2 jsonpickle>=0.9.3 mysqlclient>=1.3.9 numpy>=1.6.2 pyparsing>=2.1.10 pydot>=1.2.3 pytest>=3.0.3 pytest-cache>=1.0 pytest-cov>=2.4.0 pytest-pep8>=1.0.6 npyscreen>= 4.10.5 Flask>=0.11.1 Flask-RESTful>= 0.3.5 flask-restful-swagger>= 0.19 Flask-Cors>= 3.0.2 Flask-SQLAlchemy>=2.1 ...
argparse>=1.4.0 coveralls>=1.1 coverage>=4.2 jsonpickle>=0.9.3 mysqlclient>=1.3.9 numpy>=1.6.2 pyparsing>=2.1.10 pydot>=1.2.3 pytest>=3.0.3 pytest-cache>=1.0 pytest-cov>=2.4.0 pytest-pep8>=1.0.6 npyscreen>= 4.10.5 Flask>=0.11.1 Flask-RESTful>= 0.3.5 flask-restful-swagger>= 0.19 Flask-Cors>= 3.0.2 Flask-SQLAlchemy>=2.1 ...
Add mod_wsgi to pip dependencies
Add mod_wsgi to pip dependencies
Text
apache-2.0
nathanbjenx/cairis,nathanbjenx/cairis,failys/CAIRIS,nathanbjenx/cairis,failys/CAIRIS,failys/CAIRIS,nathanbjenx/cairis
text
## Code Before: argparse>=1.4.0 coveralls>=1.1 coverage>=4.2 jsonpickle>=0.9.3 mysqlclient>=1.3.9 numpy>=1.6.2 pyparsing>=2.1.10 pydot>=1.2.3 pytest>=3.0.3 pytest-cache>=1.0 pytest-cov>=2.4.0 pytest-pep8>=1.0.6 npyscreen>= 4.10.5 Flask>=0.11.1 Flask-RESTful>= 0.3.5 flask-restful-swagger>= 0.19 Flask-Cors>= 3.0.2 Flask-...
b323a7625ba8e9bbb21bbb2f0a748c6d03cc1908
src/org/apollo/game/model/event/impl/MobPositionUpdateEvent.java
src/org/apollo/game/model/event/impl/MobPositionUpdateEvent.java
package org.apollo.game.model.event.impl; import org.apollo.game.model.Position; import org.apollo.game.model.entity.Mob; import org.apollo.game.model.event.Event; /** * An {@link Event} created when a Mob's Position is being updated. * <p> * This Event intentionally ignores the result of execution - it should not...
package org.apollo.game.model.event.impl; import org.apollo.game.model.Position; import org.apollo.game.model.entity.Mob; import org.apollo.game.model.event.Event; /** * An {@link Event} created when a Mob's Position is being updated. * * @author Major */ public final class MobPositionUpdateEvent extends Event { ...
Remove irrelevant documentation from MopPositionUpdateEvent
Remove irrelevant documentation from MopPositionUpdateEvent
Java
isc
SJ19/apollo,ryleykimmel/apollo,LegendSky/apollo,garyttierney/apollo,LegendSky/apollo,SJ19/apollo,apollo-rsps/apollo,garyttierney/apollo,apollo-rsps/apollo,ryleykimmel/apollo,apollo-rsps/apollo,Major-/apollo,Major-/apollo
java
## Code Before: package org.apollo.game.model.event.impl; import org.apollo.game.model.Position; import org.apollo.game.model.entity.Mob; import org.apollo.game.model.event.Event; /** * An {@link Event} created when a Mob's Position is being updated. * <p> * This Event intentionally ignores the result of execution...
c42f833e677ad4db7ca7ad76506d1cfa9642534a
lib/veritas/adapter/arango/visitor/function.rb
lib/veritas/adapter/arango/visitor/function.rb
module Veritas module Adapter module Arango class Visitor class Static < self # Return root node # # @return [AQL::Node] # # @api private # def root self.class::ROOT end class Tautology < self ...
module Veritas module Adapter module Arango class Visitor # Base class for visitors with static root class Static < self # Return root node # # @return [AQL::Node] # # @api private # def root self.class::ROOT...
Add missing documentation for Static visitors
Add missing documentation for Static visitors
Ruby
mit
mbj/axiom-arango-adapter,mbj/axiom-arango-adapter
ruby
## Code Before: module Veritas module Adapter module Arango class Visitor class Static < self # Return root node # # @return [AQL::Node] # # @api private # def root self.class::ROOT end class Taut...
9c5c2426dd04151d73909b3d13368110e91903a8
assets/Script/WebPortal/mailserversetting.js
assets/Script/WebPortal/mailserversetting.js
angular.module('apps', ['angular-loading-bar', 'apis']) .controller('mailserversetting', ['$window', '$timeout', 'systemApi', function ($window, $timeout, $api) { var self = this; self.Initialize = function () { self.JsonModel = $window['MailServerSettingJson']; self.AlertSuccess = false; self.AlertError...
angular.module('apps', ['angular-loading-bar', 'apis']) .controller('mailserversetting', ['$window', '$timeout', 'systemApi', function ($window, $timeout, $api) { var self = this; self.Initialize = function () { self.JsonModel = $window['MailServerSettingJson']; self.AlertSuccess = false; self.AlertError...
Call $scope.$apply after running the logic of the function/updating the property
Call $scope.$apply after running the logic of the function/updating the property
JavaScript
mit
CodingWorkshop/IEnglishTutors,CodingWorkshop/IEnglishTutors,CodingWorkshop/IEnglishTutors
javascript
## Code Before: angular.module('apps', ['angular-loading-bar', 'apis']) .controller('mailserversetting', ['$window', '$timeout', 'systemApi', function ($window, $timeout, $api) { var self = this; self.Initialize = function () { self.JsonModel = $window['MailServerSettingJson']; self.AlertSuccess = false; ...
d7eb636d03e83c1ad01624b5c952efef3dc4ae32
test/Application.Test/project.json
test/Application.Test/project.json
{ "version": "1.0.0", "dependencies": { "Application": "1.0.0", "Xunit": "2.1.0-*", "Xunit.Runner.Dnx": "2.1.0-*", "Mono.Gendarme": "2.11.0.20121120" }, "commands": { "test": "Xunit.Runner.Dnx" }, "frameworks": { "dnx451": {} } }
{ "version": "1.0.0", "description": "An example C# test suit.", "authors": [ "Kasper Kronborg Isager <kasperisager@gmail.com>" ], "tags": [ "C#", "DNX", "ASP.NET", "Boilerplate", "Example" ], "projectUrl": "https://github.com/kasperisager/csharp-boilerplate", "licenseUrl": "http...
Add additional meta to test suite.
Add additional meta to test suite.
JSON
mit
kasperisager/csharp-boilerplate
json
## Code Before: { "version": "1.0.0", "dependencies": { "Application": "1.0.0", "Xunit": "2.1.0-*", "Xunit.Runner.Dnx": "2.1.0-*", "Mono.Gendarme": "2.11.0.20121120" }, "commands": { "test": "Xunit.Runner.Dnx" }, "frameworks": { "dnx451": {} } } ## Instruction: Add additional m...
9cb65e3087aeb127f02cac1598f7d3a4fc5e5174
lib/rails-i18n-js/rack/i18n/javascript.rb
lib/rails-i18n-js/rack/i18n/javascript.rb
module Rack module I18n class Javascript def initialize(app) @app = app end def call(env) if env['PATH_INFO'] =~ /\/javascripts\/locales\/(.*)\.js/ serve_translations($1) else @app.call(env) end end def serve_translations(locale) ...
module Rack module I18n class Javascript class_attribute :namespace self.namespace = '' def initialize(app) @app = app end def call(env) if env['PATH_INFO'] =~ /\/javascripts\/locales\/(.*)\.js/ serve_translations($1) else @app.call(env) ...
Use Namespace for fetch a subset of translations
Use Namespace for fetch a subset of translations
Ruby
mit
jodosha/rails-i18n-js,jodosha/rails-i18n-js
ruby
## Code Before: module Rack module I18n class Javascript def initialize(app) @app = app end def call(env) if env['PATH_INFO'] =~ /\/javascripts\/locales\/(.*)\.js/ serve_translations($1) else @app.call(env) end end def serve_trans...
d185a68ff8b8cf19cbe63b1c1fb12f7712beac05
Casks/keyboard-maestro.rb
Casks/keyboard-maestro.rb
cask :v1 => 'keyboard-maestro' do version '7.0.1' sha256 '5f0f104fc164c53be6ee258db2d5a62e2448493789a80e398593144f9ca0900d' # stairways.com is the official download host per the vendor homepage url "http://files.stairways.com/keyboardmaestro-#{version.delete('.')}.zip" name 'Keyboard Maestro' homepage 'htt...
cask :v1 => 'keyboard-maestro' do version '7.0.2' sha256 'd80b9cc8790c9b1595bfe132f47f12f54210fc3430c462d8cd668784c4f1c6c0' # stairways.com is the official download host per the vendor homepage url "http://files.stairways.com/keyboardmaestro-#{version.delete('.')}.zip" name 'Keyboard Maestro' homepage 'htt...
Upgrade Keyboard Maestro.app to v7.0.2.
Upgrade Keyboard Maestro.app to v7.0.2.
Ruby
bsd-2-clause
malford/homebrew-cask,deiga/homebrew-cask,kamilboratynski/homebrew-cask,wickles/homebrew-cask,y00rb/homebrew-cask,jedahan/homebrew-cask,KosherBacon/homebrew-cask,yuhki50/homebrew-cask,nathancahill/homebrew-cask,aguynamedryan/homebrew-cask,miku/homebrew-cask,gurghet/homebrew-cask,lifepillar/homebrew-cask,SentinelWarren/...
ruby
## Code Before: cask :v1 => 'keyboard-maestro' do version '7.0.1' sha256 '5f0f104fc164c53be6ee258db2d5a62e2448493789a80e398593144f9ca0900d' # stairways.com is the official download host per the vendor homepage url "http://files.stairways.com/keyboardmaestro-#{version.delete('.')}.zip" name 'Keyboard Maestro'...
97696fafb6ce556781c02a130ae5f0e610c9bf45
test/selenium/src/lib/file_ops.py
test/selenium/src/lib/file_ops.py
import os import logging logger = logging.getLogger(__name__) def create_directory(path): """ Creates a directory if it doesn't already exist. """ # Check if path is a file_path or a dir_path. Dir path is a string that # ends with os.sep if path[-1] != os.sep: path, file_name = os.path.split(path) ...
import logging import os import shutil logger = logging.getLogger(__name__) def create_directory(path): """ Creates a directory if it doesn't already exist. """ # Check if path is a file_path or a dir_path. Dir path is a string that # ends with os.sep if path[-1] != os.sep: path, file_name = os.path...
Delete sub folders in log directory
Delete sub folders in log directory
Python
apache-2.0
AleksNeStu/ggrc-core,AleksNeStu/ggrc-core,andrei-karalionak/ggrc-core,selahssea/ggrc-core,selahssea/ggrc-core,andrei-karalionak/ggrc-core,VinnieJohns/ggrc-core,plamut/ggrc-core,VinnieJohns/ggrc-core,VinnieJohns/ggrc-core,AleksNeStu/ggrc-core,plamut/ggrc-core,VinnieJohns/ggrc-core,selahssea/ggrc-core,selahssea/ggrc-core...
python
## Code Before: import os import logging logger = logging.getLogger(__name__) def create_directory(path): """ Creates a directory if it doesn't already exist. """ # Check if path is a file_path or a dir_path. Dir path is a string that # ends with os.sep if path[-1] != os.sep: path, file_name = os.p...
90e6be83a9f1ef7402d8afc0c5eaf0dbb60d7733
app/views/searches/_movie.html.erb
app/views/searches/_movie.html.erb
<% @movie_data.each do |movie| %> <%= link_to movies_path(movie_id: movie['id']), method: 'post', remote: true do %> <div data-movie-title='<%= movie['title'] %>' class="movie-card"> <% @movie_post_url = "http://image.tmdb.org/t/p/w185#{movie['poster_path']}" %> <div class="movie_poster"><%= image_tag...
<% @movie_data.each do |movie| %> <%= link_to movies_path(movie_id: movie['id']), method: 'post', remote: true do %> <div data-movie-title='<%= movie['title'] %>' class="movie-card"> <% @movie_post_url = "http://image.tmdb.org/t/p/w185#{movie['poster_path']}" %> <div class="movie_poster"><%= image_tag...
Fix open divs in movie partial.
Fix open divs in movie partial.
HTML+ERB
mit
miketejada/Where-Are-They,miketejada/Where-Are-They,miketejada/Where-Are-They
html+erb
## Code Before: <% @movie_data.each do |movie| %> <%= link_to movies_path(movie_id: movie['id']), method: 'post', remote: true do %> <div data-movie-title='<%= movie['title'] %>' class="movie-card"> <% @movie_post_url = "http://image.tmdb.org/t/p/w185#{movie['poster_path']}" %> <div class="movie_poste...
7d83a499876dd7c31b3969d61986ab9d65eab623
examples/computer_architecture.cpp
examples/computer_architecture.cpp
namespace st = strong_types; // Create a type that counts number of cycles struct cycle_count : st::type<cycle_count, int> { // inherit the base class's constructors using type::type; }; // Create a type that counts number of instructions struct instruction_count : st::type<instruction_count, int> { using type...
namespace st = strong_types; // Create a type that counts number of cycles struct cycle_count : st::type<cycle_count, int> { // inherit the base class's constructors using type::type; }; // Create a type that counts number of instructions struct instruction_count : st::type<instruction_count, int> { using type...
Add inverse of frequency type
Add inverse of frequency type
C++
apache-2.0
mariobadr/strong
c++
## Code Before: namespace st = strong_types; // Create a type that counts number of cycles struct cycle_count : st::type<cycle_count, int> { // inherit the base class's constructors using type::type; }; // Create a type that counts number of instructions struct instruction_count : st::type<instruction_count, int...
e965e3f1c76b3c56f4ffc2fe866d03d4ef057a76
requirements.txt
requirements.txt
ipaddr==2.1.10 git://git@github.com:isislovecruft/pynacl.git#nacl==0.1.0 PyOpenSSL==0.13.1
ipaddr==2.1.10 git+https://github.com/isislovecruft/pynacl.git#egg=nacl==0.1.0 PyOpenSSL==0.13.1
Change PyNaCl requirement to use public HTTPS repo.
Change PyNaCl requirement to use public HTTPS repo.
Text
mit
isislovecruft/leekspin,isislovecruft/leekspin
text
## Code Before: ipaddr==2.1.10 git://git@github.com:isislovecruft/pynacl.git#nacl==0.1.0 PyOpenSSL==0.13.1 ## Instruction: Change PyNaCl requirement to use public HTTPS repo. ## Code After: ipaddr==2.1.10 git+https://github.com/isislovecruft/pynacl.git#egg=nacl==0.1.0 PyOpenSSL==0.13.1
814d075089be80ccdf9965ec7c6a3e669a61db0c
styles/common/related_pages.scss
styles/common/related_pages.scss
header .related-pages { float: right; margin-left: 25px; width: 300px / 960px * 100%; // 31.25% } .related-pages { h3 { @include core-16($tabular-numbers: true); } .related-transaction a { @include bold-24($tabular-numbers: true); } .related-other { h3 { ...
header .related-pages { float: right; margin-left: 25px; width: 300px / 960px * 100%; // 31.25% } .related-pages { h3 { @include core-16; } .related-transaction a { @include bold-24; } .related-other { h3 { margin-top: 20px; } ul.items {...
Remove NTA Tabular Numbers in header/footer links
Remove NTA Tabular Numbers in header/footer links Chrome on Windows doesn't link it. https://code.google.com/p/chromium/issues/detail?id=344347
SCSS
mit
keithiopia/spotlight,keithiopia/spotlight,keithiopia/spotlight,tijmenb/spotlight,alphagov/spotlight,tijmenb/spotlight,alphagov/spotlight,tijmenb/spotlight,alphagov/spotlight
scss
## Code Before: header .related-pages { float: right; margin-left: 25px; width: 300px / 960px * 100%; // 31.25% } .related-pages { h3 { @include core-16($tabular-numbers: true); } .related-transaction a { @include bold-24($tabular-numbers: true); } .related-other {...
349d72a824eee8bf1a061eb83b3741761b871419
scripts/setup.sh
scripts/setup.sh
apt-get update ## Install Puppet apt-get install -y puppet
apt-get update apt-get install -y build-essential apt-get install -y tcl8.5 ## Install golang | https://github.com/golang/go/wiki/Ubuntu yes | add-apt-repository ppa:ubuntu-lxc/lxd-stable apt-get install -y golang ## Install Puppet apt-get install -y puppet puppet module install puppetlabs-stdlib puppet module instal...
Revert "Revert "more packages, install golang, additional modules""
Revert "Revert "more packages, install golang, additional modules"" This reverts commit 5ac3b6c0a3297d0e0b2c720b3294ca65482bf4c8.
Shell
mit
vincenthuynh/500px-challenge
shell
## Code Before: apt-get update ## Install Puppet apt-get install -y puppet ## Instruction: Revert "Revert "more packages, install golang, additional modules"" This reverts commit 5ac3b6c0a3297d0e0b2c720b3294ca65482bf4c8. ## Code After: apt-get update apt-get install -y build-essential apt-get install -y tcl8.5 ## ...
d278792fdae5a6b919a333da685c61fdaff90a3f
.travis.yml
.travis.yml
dist: xenial language: rust cache: # timeout on windows cargo: true timeout: 2000 matrix: include: - os: linux rust: stable env: TARGET=x86_64-unknown-linux-gnu EXTRA_ARGS="" - os: linux rust: beta env: TARGET=x86_64-unknown-linux-gnu EXTRA_ARGS="" - os: osx rust: night...
dist: xenial language: rust matrix: include: - os: linux rust: stable env: TARGET=x86_64-unknown-linux-gnu EXTRA_ARGS="" - os: linux rust: beta env: TARGET=x86_64-unknown-linux-gnu EXTRA_ARGS="" - os: osx rust: nightly env: TARGET=x86_64-apple-darwin EXTRA_ARGS="" -...
Disable Travis cache in an attempt to fix timeouts on Windows
Disable Travis cache in an attempt to fix timeouts on Windows
YAML
apache-2.0
google/evcxr,google/evcxr,google/evcxr
yaml
## Code Before: dist: xenial language: rust cache: # timeout on windows cargo: true timeout: 2000 matrix: include: - os: linux rust: stable env: TARGET=x86_64-unknown-linux-gnu EXTRA_ARGS="" - os: linux rust: beta env: TARGET=x86_64-unknown-linux-gnu EXTRA_ARGS="" - os: osx ...
5a382ad4ee3ccc05957607dd0b91553d1aae15fa
.travis.yml
.travis.yml
rvm: 2.2.3 sudo: false cache: - bundler - apt before_script: - cp test/dummy/.env.example test/dummy/.env - bundle exec rake app:db:setup - bundle exec rake app:index:reset services: - elasticsearch addons: apt: sources: - elasticsearch-2.1 packages: - elasticsearch
rvm: 2.2.3 sudo: false cache: - bundler - apt services: - elasticsearch before_script: - cp test/dummy/.env.example test/dummy/.env - bundle exec rake app:db:setup - bundle exec rake app:index:reset addons: apt: sources: - elasticsearch-2.1 packages: - elasticsearch
Move services back to same spot as master
Move services back to same spot as master
YAML
apache-2.0
data-axle/elastic_record,data-axle/elastic_record,data-axle/elastic_record,data-axle/elastic_record
yaml
## Code Before: rvm: 2.2.3 sudo: false cache: - bundler - apt before_script: - cp test/dummy/.env.example test/dummy/.env - bundle exec rake app:db:setup - bundle exec rake app:index:reset services: - elasticsearch addons: apt: sources: - elasticsearch-2.1 packages: - elasticsearch ## Instruction: Mo...
caf0829191e9f3276fb144486ad602dcd482b60d
ignition/dsl/sfl/proteus_coefficient_printer.py
ignition/dsl/sfl/proteus_coefficient_printer.py
"""Generator for Proteus coefficient evaluator""" from .sfl_printer import SFLPrinter from ...code_tools import comment_code, indent_code, PythonCodePrinter coefficient_header = """\ Proteus Coefficient file generated from Ignition """ class_header = """\ class %{class_name}s(TC_base): """ class ProteusCoefficien...
"""Generator for Proteus coefficient evaluator""" from .sfl_printer import SFLPrinter from ...code_tools import comment_code, indent_code, PythonCodePrinter coefficient_header = """\ Proteus Coefficient file generated from Ignition """ class ProteusCoefficientPrinter(SFLPrinter): """Generator for Proteus Coeff...
Print head, remove code for proteus python class head (use codeobj)
Print head, remove code for proteus python class head (use codeobj)
Python
bsd-3-clause
IgnitionProject/ignition,IgnitionProject/ignition,IgnitionProject/ignition
python
## Code Before: """Generator for Proteus coefficient evaluator""" from .sfl_printer import SFLPrinter from ...code_tools import comment_code, indent_code, PythonCodePrinter coefficient_header = """\ Proteus Coefficient file generated from Ignition """ class_header = """\ class %{class_name}s(TC_base): """ class P...
880a9cd0b4326a5712579762c661354b8b363d2b
composer.json
composer.json
{ "name": "willvincent/feeds", "description": "Laravel 5 Service Provider for the SimplePie library", "license": "MIT", "authors": [ { "name": "Will Vincent", "email": "tcindie@gmail.com" } ], "require": { "php": ">=5.4.0", "illuminate/supp...
{ "name": "willvincent/feeds", "description": "Laravel 5 Service Provider for the SimplePie library", "license": "MIT", "authors": [ { "name": "Will Vincent", "email": "tcindie@gmail.com" } ], "require": { "php": ">=5.4.0 || ^7.2", "illumin...
Add compatibility to Laravel 6
Add compatibility to Laravel 6
JSON
mit
willvincent/feeds
json
## Code Before: { "name": "willvincent/feeds", "description": "Laravel 5 Service Provider for the SimplePie library", "license": "MIT", "authors": [ { "name": "Will Vincent", "email": "tcindie@gmail.com" } ], "require": { "php": ">=5.4.0", ...
4b3f2cffa061f34ca98d0f9f4ef0e2baebdb4942
app/controllers/contacts_controller.rb
app/controllers/contacts_controller.rb
class ContactsController < ApplicationController expose(:search) { ContactsSearch.new search_params } expose(:contact_groups) { contact_group_ids = department.contacts.map do |contact| contact.contact_memberships.pluck(:contact_group_id) end.flatten.uniq ContactGroup.where id: contact_group...
class ContactsController < ApplicationController expose(:search) { ContactsSearch.new search_params } expose(:contact_groups) { contact_group_ids = department.contacts.map do |contact| contact.contact_memberships.pluck(:contact_group_id) end.flatten.uniq ContactGroup.where(id: contact_group...
Order contact groups filter by title
Order contact groups filter by title
Ruby
mit
alphagov/contacts-admin,alphagov/contacts-admin,alphagov/contacts-admin
ruby
## Code Before: class ContactsController < ApplicationController expose(:search) { ContactsSearch.new search_params } expose(:contact_groups) { contact_group_ids = department.contacts.map do |contact| contact.contact_memberships.pluck(:contact_group_id) end.flatten.uniq ContactGroup.where i...
41685c0f85637289184d648936e24c96e47726d0
lib/theme_park/rails/server.rb
lib/theme_park/rails/server.rb
require 'action_dispatch/middleware/static' module ThemePark module Rails class Server < ThemePark::Server # Only for Rails application. def call(env) theme_name = env['action_dispatch.request.path_parameters'][:theme_name] path = ThemePark.compiled_path(theme_name) Act...
require 'action_dispatch/middleware/static' module ThemePark module Rails class Server < ThemePark::Server # Only for Rails application. def call(env) path = env['PATH_INFO'].chomp('/') theme_name = env['action_dispatch.request.path_parameters'][:theme_name] lookup_pa...
Fix ThreadError - deadlock; recursive locking
Fix ThreadError - deadlock; recursive locking
Ruby
mit
zires/theme_park,zires/theme_park
ruby
## Code Before: require 'action_dispatch/middleware/static' module ThemePark module Rails class Server < ThemePark::Server # Only for Rails application. def call(env) theme_name = env['action_dispatch.request.path_parameters'][:theme_name] path = ThemePark.compiled_path(theme_n...
0fb1b9947b3720811a66f69e8f652a7257deea41
gamerules/gamerules_test.go
gamerules/gamerules_test.go
package gamerules func init() { if err := LoadGameRules("blocks.json", "items.json", "recipes.json", "furnace.json", "users.json", "groups.json"); err != nil { panic(err) } }
package gamerules func init() { if err := LoadGameRules("../blocks.json", "../items.json", "../recipes.json", "../furnace.json", "../users.json", "../groups.json"); err != nil { panic(err) } }
Fix gamerules unit test panic.
Fix gamerules unit test panic.
Go
mit
huin/chunkymonkey,huin/chunkymonkey
go
## Code Before: package gamerules func init() { if err := LoadGameRules("blocks.json", "items.json", "recipes.json", "furnace.json", "users.json", "groups.json"); err != nil { panic(err) } } ## Instruction: Fix gamerules unit test panic. ## Code After: package gamerules func init() { if err := LoadGameRules("....
2406abdc7ee5087a752fe9e1d3657fdbbe9f29af
app/controllers/admin/github_repositories_controller.rb
app/controllers/admin/github_repositories_controller.rb
class Admin::GithubRepositoriesController < Admin::ApplicationController def show @github_repository = GithubRepository.find(params[:id]) end def update @github_repository = GithubRepository.find(params[:id]) if @github_repository.update_attributes(github_repository_params) redirect_to github_r...
class Admin::GithubRepositoriesController < Admin::ApplicationController def show @github_repository = GithubRepository.find(params[:id]) end def update @github_repository = GithubRepository.find(params[:id]) if @github_repository.update_attributes(github_repository_params) @github_repository.u...
Update github repos after being edited in the admin
Update github repos after being edited in the admin
Ruby
agpl-3.0
samjacobclift/libraries.io,tomnatt/libraries.io,librariesio/libraries.io,abrophy/libraries.io,librariesio/libraries.io,tomnatt/libraries.io,librariesio/libraries.io,samjacobclift/libraries.io,tomnatt/libraries.io,librariesio/libraries.io,abrophy/libraries.io,samjacobclift/libraries.io,abrophy/libraries.io
ruby
## Code Before: class Admin::GithubRepositoriesController < Admin::ApplicationController def show @github_repository = GithubRepository.find(params[:id]) end def update @github_repository = GithubRepository.find(params[:id]) if @github_repository.update_attributes(github_repository_params) redi...
f63b0ebb618c36feb4d49a077c29b6133fe8f8dd
dsb-gui/src/test/java/com/spectralogic/dsbrowser/gui/services/BuildInfoService_Test.java
dsb-gui/src/test/java/com/spectralogic/dsbrowser/gui/services/BuildInfoService_Test.java
/* * ****************************************************************************** * Copyright 2016-2017 Spectra Logic Corporation. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"). You may not use * this file except in compliance with the License. A copy of the Licens...
/* * ****************************************************************************** * Copyright 2016-2017 Spectra Logic Corporation. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"). You may not use * this file except in compliance with the License. A copy of the Licens...
Convert LocalDateTime expected output to ISO-8601, since there's no timezone in LocalDateTime
Convert LocalDateTime expected output to ISO-8601, since there's no timezone in LocalDateTime
Java
apache-2.0
shabtaisharon/ds3_java_browser,SpectraLogic/ds3_java_browser,SpectraLogic/ds3_java_browser,shabtaisharon/ds3_java_browser,shabtaisharon/ds3_java_browser,shabtaisharon/ds3_java_browser,SpectraLogic/ds3_java_browser,SpectraLogic/ds3_java_browser,shabtaisharon/ds3_java_browser
java
## Code Before: /* * ****************************************************************************** * Copyright 2016-2017 Spectra Logic Corporation. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"). You may not use * this file except in compliance with the License. A co...
0acf0dfe61629a3245e6cfa6619f573f7eccfbde
packages/po/postgresql-connector.yaml
packages/po/postgresql-connector.yaml
homepage: http://github.com/mfine/postgresql-connector changelog-type: '' hash: 5c88719b1c9b7d5c52a4a8b502c0c89257df6fd0fe55f35256fd9117f1f7d253 test-bench-deps: {} maintainer: Mark Fine <mark.fine@gmail.com> synopsis: Initial project postgresql-connector from stack changelog: '' basic-deps: exceptions: -any bytest...
homepage: http://github.com/mfine/postgresql-connector changelog-type: '' hash: 6d5e199430475588cf3150e2a9c87090cae1bbe6528fe488d400b53ff6fd2d35 test-bench-deps: {} maintainer: Mark Fine <mark.fine@gmail.com> synopsis: Initial project postgresql-connector from stack changelog: '' basic-deps: exceptions: -any bytest...
Update from Hackage at 2016-01-08T03:35:35+0000
Update from Hackage at 2016-01-08T03:35:35+0000
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: http://github.com/mfine/postgresql-connector changelog-type: '' hash: 5c88719b1c9b7d5c52a4a8b502c0c89257df6fd0fe55f35256fd9117f1f7d253 test-bench-deps: {} maintainer: Mark Fine <mark.fine@gmail.com> synopsis: Initial project postgresql-connector from stack changelog: '' basic-deps: exception...
8e6e9d8c72215eca8617c3cc11907dc9b132bf33
packages/sp/Spock-lucid.yaml
packages/sp/Spock-lucid.yaml
homepage: http://github.com/aelve/Spock-lucid changelog-type: markdown hash: 16831ab4f6e6a32d12e5d929643085110a7d13d144e45e5c7191e58ec8349a21 test-bench-deps: {} maintainer: yom@artyom.me synopsis: Lucid support for Spock changelog: ! '# 0.3.0.0 * Added `lucidT`. # 0.2.0.0 * Changed types (the previous vers...
homepage: http://github.com/aelve/Spock-lucid changelog-type: markdown hash: a25681c56da492d03b176c51b7e40fa2021393b52dfd696f6a9f8fbfbb3c7814 test-bench-deps: {} maintainer: yom@artyom.me synopsis: Lucid support for Spock changelog: ! '# 0.4.0.0 * Generalized all types by not returning the value (since it can''t be...
Update from Hackage at 2017-02-16T11:03:30Z
Update from Hackage at 2017-02-16T11:03:30Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: http://github.com/aelve/Spock-lucid changelog-type: markdown hash: 16831ab4f6e6a32d12e5d929643085110a7d13d144e45e5c7191e58ec8349a21 test-bench-deps: {} maintainer: yom@artyom.me synopsis: Lucid support for Spock changelog: ! '# 0.3.0.0 * Added `lucidT`. # 0.2.0.0 * Changed types (t...
72c6db1c08777bafe028b78e9a00cd5370fc6486
test/browser/MongoUtil.ts
test/browser/MongoUtil.ts
import mongoose from "mongoose"; import {isProd} from "../server/util" import { IUser, User, LoginType } from "../server/models/User" import bcrypt from "bcryptjs" export async function clearDatabase() { if (isProd()) { throw new Error("How about you stop calling clearDatabase in production!") } console.log...
import mongoose from "mongoose"; import {isProd} from "../../src/server/util" import { IUser, User, LoginType } from "../../src/server/models/User" import bcrypt from "bcryptjs" export async function clearDatabase() { if (isProd()) { throw new Error("How about you stop calling clearDatabase in production!") } ...
Fix build and give a suspicious look at vscode not giving warning for import paths.
Fix build and give a suspicious look at vscode not giving warning for import paths.
TypeScript
mit
Majavapaja/Mursushakki,Majavapaja/Mursushakki,Majavapaja/Mursushakki,Majavapaja/Mursushakki,Majavapaja/Mursushakki,Majavapaja/Mursushakki
typescript
## Code Before: import mongoose from "mongoose"; import {isProd} from "../server/util" import { IUser, User, LoginType } from "../server/models/User" import bcrypt from "bcryptjs" export async function clearDatabase() { if (isProd()) { throw new Error("How about you stop calling clearDatabase in production!") ...
83314d1d646ffa3ec5e668ecdc5ae0bbbabfaad8
app/scripts/collections/section.js
app/scripts/collections/section.js
define([ 'underscore', 'backbone', 'models/section', 'config' ], function (_, Backbone, Section, config) { 'use strict'; var SectionCollection = Backbone.Collection.extend({ model: Section, initialize: function(models, options) { if (options) { this.resume = options.resume; } this.fetc...
define([ 'underscore', 'backbone', 'models/section', 'config' ], function (_, Backbone, Section, config) { 'use strict'; var SectionCollection = Backbone.Collection.extend({ model: Section, initialize: function(models, options) { if (options) { this.resume = options.resume; } this.fetc...
Fix url to be not nested.
Fix url to be not nested.
JavaScript
mit
jmflannery/jackflannery.me,jmflannery/jackflannery.me,jmflannery/rez-backbone,jmflannery/rez-backbone
javascript
## Code Before: define([ 'underscore', 'backbone', 'models/section', 'config' ], function (_, Backbone, Section, config) { 'use strict'; var SectionCollection = Backbone.Collection.extend({ model: Section, initialize: function(models, options) { if (options) { this.resume = options.resume; }...
71f4d6b942b3d493e33c7f3a16e2833a1fd1e22e
app/models/entry.rb
app/models/entry.rb
class Entry include Mongoid::Document include Mongoid::Timestamps field :script, :type => Binary field :score, :type => Integer embeds_many :comments embedded_in :challenge, :inverse_of => :entries referenced_in :user validates_length_of :script, :minimum => 1, :maximum => MAX_FILESIZE def owner?(...
class Entry include Mongoid::Document include Mongoid::Timestamps field :script, type: Binary field :score, type: Integer embeds_many :comments embedded_in :challenge, inverse_of: :entries referenced_in :user validates_length_of :script, minimum: 1, maximum: MAX_FILESIZE def owner?(current_user) ...
Use new Hash syntax in Entry model
Use new Hash syntax in Entry model
Ruby
mit
igrigorik/vimgolf,igrigorik/vimgolf,igrigorik/vimgolf,igrigorik/vimgolf
ruby
## Code Before: class Entry include Mongoid::Document include Mongoid::Timestamps field :script, :type => Binary field :score, :type => Integer embeds_many :comments embedded_in :challenge, :inverse_of => :entries referenced_in :user validates_length_of :script, :minimum => 1, :maximum => MAX_FILESIZ...
ff4e52dcc7b6407c176241b0fbb39c1b84f5b705
features/steps/negative_comparison_steps.rb
features/steps/negative_comparison_steps.rb
Then("the error payload field {string} does not equal {string}") do |field_path, string_value| payload_value = Maze::Helper.read_key_path(Maze::Server.errors.current[:body], field_path) result = value_compare(payload_value, string_value) assert_false(result.equal?, "Value: #{string_value} equals payload element a...
Then("the error payload field {string} does not equal {string}") do |field_path, string_value| payload_value = Maze::Helper.read_key_path(Maze::Server.errors.current[:body], field_path) result = Maze::Compare.value(payload_value, string_value) assert_false(result.equal?, "Value: #{string_value} equals payload ele...
Update compare routine name [full ci]
Update compare routine name [full ci]
Ruby
mit
bugsnag/bugsnag-cocoa,bugsnag/bugsnag-cocoa,bugsnag/bugsnag-cocoa,bugsnag/bugsnag-cocoa
ruby
## Code Before: Then("the error payload field {string} does not equal {string}") do |field_path, string_value| payload_value = Maze::Helper.read_key_path(Maze::Server.errors.current[:body], field_path) result = value_compare(payload_value, string_value) assert_false(result.equal?, "Value: #{string_value} equals p...
86cdfaffa3ebdcdae0710c9112acdee3481835da
modules/webdav.lan.sh
modules/webdav.lan.sh
WEBDAV_DOMAIN="$(basename -- "$0" .sh)" # Disable Gzip as it does not work on Windows cat <<EOT > "/srv/vhost/${WEBDAV_DOMAIN}" gzip off; EOT # Install WebDAV echo ">> Running WebDAV..." docker run \ --restart=always \ --name="$WEBDAV_DOMAIN" \ -d \ -e "USERNAME=user" \ -e "PASSWORD=pass" \ -e...
WEBDAV_DOMAIN="$(basename -- "$0" .sh)" WEBDAV_USER="user" WEBDAV_PASS="pass" WEBDAV_MOUNT="/tmp" # Disable Gzip as it does not work on Windows cat <<EOT > "/srv/vhost/${WEBDAV_DOMAIN}" gzip off; EOT # Install WebDAV echo ">> Running WebDAV..." docker run \ --restart=always \ --name="$WEBDAV_DOMAIN" \ -d ...
Use environment variables as config
Use environment variables as config
Shell
mit
julianxhokaxhiu/vps-powered-by-docker
shell
## Code Before: WEBDAV_DOMAIN="$(basename -- "$0" .sh)" # Disable Gzip as it does not work on Windows cat <<EOT > "/srv/vhost/${WEBDAV_DOMAIN}" gzip off; EOT # Install WebDAV echo ">> Running WebDAV..." docker run \ --restart=always \ --name="$WEBDAV_DOMAIN" \ -d \ -e "USERNAME=user" \ -e "PASSWOR...
f68d84a2efbf15f22b9839db079deb12358a73da
.travis.yml
.travis.yml
language: python python: - 3.6 env: - ES_VERSION=1.3.9 ES_DOWNLOAD_URL=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz matrix: include: - python: 3.6 env: TOXENV=docs - python: 3.6 env: TOXENV=docs-lint - python: 3.6 env: TOXENV=lint s...
language: python python: - 3.6 matrix: include: - python: 3.6 env: TOXENV=py36 ES_VERSION=1.3.9 ES_DOWNLOAD_URL=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz - python: 3.6 env: TOXENV=docs - python: 3.6 env: TOXENV=docs-lint - python: 3....
Move ES env vars to py36 job
Move ES env vars to py36 job
YAML
mit
rtfd/readthedocs.org,rtfd/readthedocs.org,rtfd/readthedocs.org,rtfd/readthedocs.org
yaml
## Code Before: language: python python: - 3.6 env: - ES_VERSION=1.3.9 ES_DOWNLOAD_URL=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz matrix: include: - python: 3.6 env: TOXENV=docs - python: 3.6 env: TOXENV=docs-lint - python: 3.6 env: TOX...
f305964989aa9ebc7765aad1fad6e0c9e4e4f65a
bin/NativeTests/NativeTests.cpp
bin/NativeTests/NativeTests.cpp
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
Disable the warning on the nativetests.cpp
Disable the warning on the nativetests.cpp
C++
mit
Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore
c++
## Code Before: //------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //-----------------------------------------...
211e932fdca265eaef9b55e433efeec7c4c43d42
circle_build_gonative.bash
circle_build_gonative.bash
set -e set -x PREFIX="$HOME/cache" # Exit in case the gonative directory exists already. if [ -d "$PREFIX/gonative" ]; then echo "gonative installed already, skipping..." exit 0 fi # ---> Install the tools go get github.com/inconshreveable/gonative # ---> Clone Go sources if [ ! -d "$PREFIX/go" ]; then [ ! -d "...
set -e set -x PREFIX="$HOME/cache" # Exit in case the gonative directory exists already. if [ -d "$PREFIX/gonative" ]; then echo "gonative installed already, skipping..." exit 0 fi # ---> Install the tools go get github.com/inconshreveable/gonative # ---> Clone Go sources goVersion=$(go version | awk '{ print $3...
Update to clone from GitHub
CircleCI: Update to clone from GitHub Change-Id: c8c57f5635 Story-Id: unassigned
Shell
mit
salsaflow/salsaflow,salsaflow/salsaflow
shell
## Code Before: set -e set -x PREFIX="$HOME/cache" # Exit in case the gonative directory exists already. if [ -d "$PREFIX/gonative" ]; then echo "gonative installed already, skipping..." exit 0 fi # ---> Install the tools go get github.com/inconshreveable/gonative # ---> Clone Go sources if [ ! -d "$PREFIX/go" ]...
45ab943307e096aab5b61ca04555f463de3582d3
app/views/application/_breadcrumbs.html.haml
app/views/application/_breadcrumbs.html.haml
:ruby options = local_assigns[:options] || {microdata: true} if options[:microdata] microdata_fragment = {itemscope: true, itemtype: 'http://data-vocabulary.org/Breadcrumb'} microdata_link = {itemprop: 'url'} microdata_title = {itemprop: 'title'} else microdata_fragment = {} microdata_link = {...
:ruby options = local_assigns[:options] || {microdata: true} if options[:microdata] microdata_fragment = {itemscope: true, itemtype: 'http://data-vocabulary.org/Breadcrumb'} microdata_link = {itemprop: 'url'} microdata_title = {itemprop: 'title'} else microdata_fragment = {} microdata_link = {...
Remove dup of DOM structure
[Refactor] Remove dup of DOM structure
Haml
mit
bm-sms/daimon-news,bm-sms/daimon-news,bm-sms/daimon-news
haml
## Code Before: :ruby options = local_assigns[:options] || {microdata: true} if options[:microdata] microdata_fragment = {itemscope: true, itemtype: 'http://data-vocabulary.org/Breadcrumb'} microdata_link = {itemprop: 'url'} microdata_title = {itemprop: 'title'} else microdata_fragment = {} mi...
90fa32205edbbfcd630ab3de16e3fa4d1497143b
config/initializers/ahoy.rb
config/initializers/ahoy.rb
class Ahoy::Store < Ahoy::Stores::ActiveRecordTokenStore # customize here end
class Ahoy::Store < Ahoy::Stores::ActiveRecordTokenStore end Ahoy.geocode = :async Ahoy.track_visits_immediately = true Ahoy.cookie_domain = :all Ahoy.throttle_limit = 100 Ahoy.throttle_period = 5.minutes
Configure Ahoy to try to collect more data
Configure Ahoy to try to collect more data
Ruby
mit
djsegal/julia_observer,djsegal/julia_observer,djsegal/julia_observer
ruby
## Code Before: class Ahoy::Store < Ahoy::Stores::ActiveRecordTokenStore # customize here end ## Instruction: Configure Ahoy to try to collect more data ## Code After: class Ahoy::Store < Ahoy::Stores::ActiveRecordTokenStore end Ahoy.geocode = :async Ahoy.track_visits_immediately = true Ahoy.cookie_domain = :all A...
fd2c48926087d8265f5839484e5fdfc2c4014ac7
app/views/govuk_component/taxonomy_sidebar.raw.html.erb
app/views/govuk_component/taxonomy_sidebar.raw.html.erb
<% if local_assigns[:items] && !items.blank? %> <aside class='govuk-taxonomy-sidebar' data-module='track-click' role='complementary'> <% items.each_with_index do |item, item_index| %> <div class='sidebar-taxon'> <h2> <%= link_to item[:title], item[:url], class: 'taxon-link' %> </h...
<% if local_assigns[:items] && !items.blank? %> <aside class='govuk-taxonomy-sidebar' data-module='track-click' role='complementary'> <% items.each_with_index do |item, item_index| %> <div class='sidebar-taxon'> <h2> <%= link_to( item[:title], item[...
Add click-tracking to the taxon title heading in the taxonomy sidebar
Add click-tracking to the taxon title heading in the taxonomy sidebar
HTML+ERB
mit
alphagov/static,alphagov/static,alphagov/static
html+erb
## Code Before: <% if local_assigns[:items] && !items.blank? %> <aside class='govuk-taxonomy-sidebar' data-module='track-click' role='complementary'> <% items.each_with_index do |item, item_index| %> <div class='sidebar-taxon'> <h2> <%= link_to item[:title], item[:url], class: 'taxon-link...
361beffddb6e653129c5b64a4041215eb2b849ab
app/assets/stylesheets/components/_category_list.scss
app/assets/stylesheets/components/_category_list.scss
.category-list { @include column(12); padding: 0 $baseline-unit*4 0 0; @include respond-to($mq-m) { @include column(6); } @include respond-to($mq-l) { @include column(4); } h2 { @extend %heading-link; a { color: $color-heading; } } ul { @extend .list--unstyled; li...
.category-list { @include column(12); padding: 0 $baseline-unit*4 0 0; @include respond-to($mq-m) { @include column(6); } @include respond-to($mq-l) { @include column(4); } h2 { @extend %heading-link; a { color: $color-heading; } } ul { @extend .list--unstyled; li...
Add nth-of-type class up to 11 items
Add nth-of-type class up to 11 items
SCSS
mit
moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend
scss
## Code Before: .category-list { @include column(12); padding: 0 $baseline-unit*4 0 0; @include respond-to($mq-m) { @include column(6); } @include respond-to($mq-l) { @include column(4); } h2 { @extend %heading-link; a { color: $color-heading; } } ul { @extend .list--...
8edb704d031d2a51e6d167143e652bdde55ff9d1
test/test_helper.rb
test/test_helper.rb
ENV["RAILS_ENV"] ||= 'test' require File.expand_path('../dummy/config/environment.rb', __FILE__) require 'test/unit' require 'rubygems' require 'mocha' require 'active_support/core_ext' require 'erb' require 'lib/ar_sitemapper' Dir.glob(File.join(File.dirname(__FILE__) + 'support', 'app', '*') {|file| require file}...
ENV["RAILS_ENV"] ||= 'test' require File.expand_path('../dummy/config/environment.rb', __FILE__) require 'test/unit' require 'rubygems' require 'bundler' Bundler.require(:default, :development) require 'erb' Dir.glob(File.join(File.dirname(__FILE__) + 'support', 'app', '*') {|file| require file})
Use bundler to load stuff
Use bundler to load stuff
Ruby
bsd-3-clause
carpodaster/ar_sitemapper,carpodaster/ar_sitemapper,carpodaster/ar_sitemapper
ruby
## Code Before: ENV["RAILS_ENV"] ||= 'test' require File.expand_path('../dummy/config/environment.rb', __FILE__) require 'test/unit' require 'rubygems' require 'mocha' require 'active_support/core_ext' require 'erb' require 'lib/ar_sitemapper' Dir.glob(File.join(File.dirname(__FILE__) + 'support', 'app', '*') {|fil...
d383cf564507d9b6c166f56321527e46b2fd732e
routes/index.js
routes/index.js
var express = require('express'), router = express.Router(), bcrypt = require('bcrypt'), db = require('../models/db'), index = {}; index.all = function(oauth){ /* GET home page. */ router.get('/', oauth.authorise(), function(req, res) { res.render('index', { title: 'Express' }); }); return...
var express = require('express'), router = express.Router(), bcrypt = require('bcrypt'), db = require('../models/db'), index = {}; index.all = function(oauth){ /* GET home page. */ router.get('/', oauth.authorise(), function(req, res) { res.render('index', { title: 'Express' }); }); /* GET...
Add /register route to redirect to users/new
Add /register route to redirect to users/new
JavaScript
apache-2.0
tessel/oauth,tessel/oauth,tessel/oauth
javascript
## Code Before: var express = require('express'), router = express.Router(), bcrypt = require('bcrypt'), db = require('../models/db'), index = {}; index.all = function(oauth){ /* GET home page. */ router.get('/', oauth.authorise(), function(req, res) { res.render('index', { title: 'Express' });...
3d936626cad006b555eb18a31485597e8664c004
public/templates/testcases/testCaseNodeItemTemplate.html
public/templates/testcases/testCaseNodeItemTemplate.html
<h1 class="ui top attached header"><%= testcase.get('version')['name'] %></h1> <div class="ui attached segment items"> <h5>Execution Type</h5> <%= testcase.get('version')['execution_type']['name'] %> <h5>Description</h5> <%= testcase.get('formatted_description') %> <h5>Prerequisites</h5> <%...
<h1 class="ui top attached header"><%= testcase.get('version')['name'] %></h1> <div class="ui attached segment items"> <h5>Description</h5> <%= testcase.get('formatted_description') %> <h5>Prerequisites</h5> <%= testcase.get('formatted_prerequisite') %> <h5>Execution Type</h5> <%= testcase....
Move execution type to the bottom as in other pages
Move execution type to the bottom as in other pages
HTML
mit
nestor-qa/nestor,nestor-qa/nestor,nestor-qa/nestor,kinow/nestor,kinow/nestor,kinow/nestor,nestor-qa/nestor,kinow/nestor
html
## Code Before: <h1 class="ui top attached header"><%= testcase.get('version')['name'] %></h1> <div class="ui attached segment items"> <h5>Execution Type</h5> <%= testcase.get('version')['execution_type']['name'] %> <h5>Description</h5> <%= testcase.get('formatted_description') %> <h5>Prerequisi...
220327621dbf4224df08faf60daf0c2d61b776ca
app/assets/stylesheets/modules/_overview.styl
app/assets/stylesheets/modules/_overview.styl
.overview .primary +above(desktop) col(0.674, gutter: 1.8) .sidebar input margin-top 5px width 100% +above(desktop) col(1/3) .section-header display flex margin-bottom 8px .controls position relative flex 1 0 auto .milestones .module__data & > p ...
.overview .primary +above(desktop) col(0.674, gutter: 1.8) .sidebar input width 100% +above(desktop) col(1/3) .section-header display flex margin-bottom 8px .controls position relative flex 1 0 auto .milestones .module__data & > p color bayoux ...
Remove extra margin from label
Remove extra margin from label
Stylus
mit
alpha721/WikiEduDashboard,MusikAnimal/WikiEduDashboard,Wowu/WikiEduDashboard,Wowu/WikiEduDashboard,sejalkhatri/WikiEduDashboard,feelfreelinux/WikiEduDashboard,sejalkhatri/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,Wowu/WikiEduDashboard,WikiEducationFoundation/Wiki...
stylus
## Code Before: .overview .primary +above(desktop) col(0.674, gutter: 1.8) .sidebar input margin-top 5px width 100% +above(desktop) col(1/3) .section-header display flex margin-bottom 8px .controls position relative flex 1 0 auto .milestones .module_...
ef45c0ebafb288a72365a4ea091266b80cc61af9
client/src/index.js
client/src/index.js
import { ApolloProvider } from "@apollo/client" import API from "api" import "bootstrap/dist/css/bootstrap.css" import { jumpToTop } from "components/Page" import "locale-compare-polyfill" import App from "pages/App" import React from "react" import ReactDOM from "react-dom" import { Provider } from "react-redux" impor...
import { ApolloProvider } from "@apollo/client" import API from "api" import "bootstrap/dist/css/bootstrap.css" import { jumpToTop } from "components/Page" import "locale-compare-polyfill" import App from "pages/App" import React from "react" import { createRoot } from "react-dom/client" import { Provider } from "react...
Use new react root api
Use new react root api
JavaScript
mit
NCI-Agency/anet,NCI-Agency/anet,NCI-Agency/anet,NCI-Agency/anet,NCI-Agency/anet
javascript
## Code Before: import { ApolloProvider } from "@apollo/client" import API from "api" import "bootstrap/dist/css/bootstrap.css" import { jumpToTop } from "components/Page" import "locale-compare-polyfill" import App from "pages/App" import React from "react" import ReactDOM from "react-dom" import { Provider } from "re...
934c409756da664bc6a82d0c477beca242bfbc50
js/app/utils.js
js/app/utils.js
define(["jquery", "underscore", "backbone"], function($, _, Backbone) { var Utils = {}; Utils.logIn = function() { $.ajax({ url: '/service/me/login', async: false, dataType: 'json' }); }; Utils.loadView = function(viewToLoad) { $('#page-content').html(""); if (typeof viewToLoad === 'function') { ...
define(["jquery", "underscore", "backbone"], function($, _, Backbone) { var Utils = {}; Utils.logIn = function(response) { $.ajax({ url: '/service/me/login?token=', async: false, dataType: 'json' }); }; Utils.loadView = function(viewToLoad) { $('#page-content').html(""); if (typeof viewToLoad ===...
Prepare to pass OAuth token.
Prepare to pass OAuth token.
JavaScript
mit
burnflare/CrowdBuy,burnflare/CrowdBuy
javascript
## Code Before: define(["jquery", "underscore", "backbone"], function($, _, Backbone) { var Utils = {}; Utils.logIn = function() { $.ajax({ url: '/service/me/login', async: false, dataType: 'json' }); }; Utils.loadView = function(viewToLoad) { $('#page-content').html(""); if (typeof viewToLoad ==...
4e582cce557dd504ac0952d43218627b599f42d7
QuickJump/SingleCharTextField.swift
QuickJump/SingleCharTextField.swift
// // SingleCharTextField.swift // QuickJump // // Created by Victor Shamanov on 5/28/15. // Copyright (c) 2015 Victor Shamanov. All rights reserved. // import AppKit protocol SingleCharTextFieldDelegate: class { func didRecieveChar(textField: SingleCharTextField, char: Character) func didLoseFocus(textFi...
// // SingleCharTextField.swift // QuickJump // // Created by Victor Shamanov on 5/28/15. // Copyright (c) 2015 Victor Shamanov. All rights reserved. // import AppKit protocol SingleCharTextFieldDelegate: class { func didRecieveChar(textField: SingleCharTextField, char: Character) func didLoseFocus(textFi...
Exit on ESC key press
Exit on ESC key press
Swift
mit
wiruzx/QuickJump
swift
## Code Before: // // SingleCharTextField.swift // QuickJump // // Created by Victor Shamanov on 5/28/15. // Copyright (c) 2015 Victor Shamanov. All rights reserved. // import AppKit protocol SingleCharTextFieldDelegate: class { func didRecieveChar(textField: SingleCharTextField, char: Character) func did...
1f7b9cbaab50cd8fabe1e20a06fae10845d38ac6
redirecting-jump.lisp
redirecting-jump.lisp
(in-package #:jumpotron) (defclass redirecting-jump (jump) ((target :initarg :target :initform (error "A jump needs a target") :reader target :documentation "FORMAT-string that will consume the words in the query to construct a url to redirect the user to."))) (defmethod jump ((jump...
(in-package #:jumpotron) (defclass redirecting-jump (jump) ((target :initarg :target :initform (error "A jump needs a target") :reader target :documentation "FORMAT-string that will consume the words in the query to construct a url to redirect the user to."))) (defmethod jump ((jump...
Add some rough error handling to REDIRECTING-JUMP
Add some rough error handling to REDIRECTING-JUMP
Common Lisp
mit
jorams/jumpotron
common-lisp
## Code Before: (in-package #:jumpotron) (defclass redirecting-jump (jump) ((target :initarg :target :initform (error "A jump needs a target") :reader target :documentation "FORMAT-string that will consume the words in the query to construct a url to redirect the user to."))) (defme...
fa588af379d1f779ed501048e132b33241428bc6
app/components/quantity-widget-component.js
app/components/quantity-widget-component.js
var DEFAULT_MIN = 1; var DEFAULT_MAX = 3; App.QuantityWidgetComponent = Ember.Component.extend({ tagName: 'div', classNameBindings: [ ':quantity-widget', 'isMin', 'isMax' ], attributeBindings: [ 'name:data-icon' ], actions: { increment: function () { if (this.get('isMax')) return; this.set('...
var DEFAULT_MIN = 1; var DEFAULT_MAX = 3; App.QuantityWidgetComponent = Ember.Component.extend({ tagName: 'div', classNameBindings: [ ':quantity-widget', 'isMin', 'isMax' ], attributeBindings: [ 'name:data-icon' ], actions: { increment: function () { if (this.get('isMax')) return; this.set('...
Update quantity widget tooltips per prototype
Update quantity widget tooltips per prototype
JavaScript
mit
dollarshaveclub/ember-uni-form,dollarshaveclub/ember-uni-form
javascript
## Code Before: var DEFAULT_MIN = 1; var DEFAULT_MAX = 3; App.QuantityWidgetComponent = Ember.Component.extend({ tagName: 'div', classNameBindings: [ ':quantity-widget', 'isMin', 'isMax' ], attributeBindings: [ 'name:data-icon' ], actions: { increment: function () { if (this.get('isMax')) return; ...
0a2e773e8b642cade2402ded0fb37bafa5e9c149
lib/relation_to_struct/active_record_relation_extension.rb
lib/relation_to_struct/active_record_relation_extension.rb
module RelationToStruct::ActiveRecordRelationExtension extend ::ActiveSupport::Concern def to_structs(struct_class) raise ArgumentError, 'Expected select_values to be present' unless self.select_values.present? relation = spawn # See the definition of #pluck in: # activerecord/lib/active_record/r...
module RelationToStruct::ActiveRecordRelationExtension extend ::ActiveSupport::Concern def to_structs(struct_class) raise ArgumentError, 'Expected select_values to be present' unless self.select_values.present? relation = spawn # See the definition of #pluck in: # activerecord/lib/active_record/r...
Fix regressions in 5.0 and 5.1.
Fix regressions in 5.0 and 5.1. When I merged the PR supporting 5.2, I didn't realize that CI wasn't running appraisal (or sqlite), so breakages in previous versions weren't apparent. I've since updated CI to run all variants. This restores the code path for < 5.2 and keeps the new path for 5.2+.
Ruby
mit
jcoleman/relation_to_struct
ruby
## Code Before: module RelationToStruct::ActiveRecordRelationExtension extend ::ActiveSupport::Concern def to_structs(struct_class) raise ArgumentError, 'Expected select_values to be present' unless self.select_values.present? relation = spawn # See the definition of #pluck in: # activerecord/lib...
0d7b9c9d00a153b459afd8cb3f94951ec4dc437c
work.html
work.html
--- layout: page title: work --- <div class="column works"> <div class="row"> <a href="http://event0.org"><img src="assets/work/event0.svg"></a> <a href="http://chicode.net"><img src="assets/work/chicode.svg"></a> <a href="http://antonoutkine.com"><img src="assets/work/antonoutkine.svg"></a> </div> <div class...
--- layout: page title: work --- <div class="column works"> <div class="row"> <a href="http://event0.org"><img src="assets/work/event0.svg"></a> <a href="http://chicode.net"><img src="assets/work/chicode.svg"></a> <a href="http://antonoutkine.com"><img src="assets/work/antonoutkine.svg"></a> </div> <div class...
Update link for old site
Update link for old site
HTML
mit
Jetmate/jetmate.github.io,Jetmate/jetmate.github.io,Jetmate/jetmate.github.io
html
## Code Before: --- layout: page title: work --- <div class="column works"> <div class="row"> <a href="http://event0.org"><img src="assets/work/event0.svg"></a> <a href="http://chicode.net"><img src="assets/work/chicode.svg"></a> <a href="http://antonoutkine.com"><img src="assets/work/antonoutkine.svg"></a> </...
30bc583985f50ba9fe41310c4c90b7e0bf29f668
.travis.yml
.travis.yml
language: ruby rvm: - 2.1.2 - ruby-head matrix: allow_failures: - rvm: ruby-head bundler_args: --without development:production before_script: - cp config/database.yml.travis config/database.yml - cp sample_config/facebook.yml.sample config/facebook.yml - cp sample_config/devise_initializer.rb.sample co...
language: ruby rvm: - 2.1.2 - ruby-head matrix: allow_failures: - rvm: ruby-head bundler_args: --without development:production before_script: - cp config/database.yml.travis config/database.yml - cp sample_config/facebook.yml.sample config/facebook.yml - cp sample_config/devise_initializer.rb.sample co...
Decrease wait time and try without exporting display port
Decrease wait time and try without exporting display port
YAML
mit
dariusf/coursemology.org,dariusf/coursemology.org,dariusf/coursemology.org,allenwq/coursemology.org,nnamon/coursemology.org,nnamon/coursemology.org,Coursemology/coursemology.org,nnamon/coursemology.org,allenwq/coursemology.org,nnamon/coursemology.org,Coursemology/coursemology.org,nnamon/coursemology.org,Coursemology/co...
yaml
## Code Before: language: ruby rvm: - 2.1.2 - ruby-head matrix: allow_failures: - rvm: ruby-head bundler_args: --without development:production before_script: - cp config/database.yml.travis config/database.yml - cp sample_config/facebook.yml.sample config/facebook.yml - cp sample_config/devise_initiali...
1719c312ff9a06a457adc10f472fef32dabf9e1e
app/controllers/organisations_controller.rb
app/controllers/organisations_controller.rb
class OrganisationsController < ApplicationController skip_before_filter :ensure_organisation_exists skip_before_filter :ensure_authenticated skip_before_filter :ensure_member_active skip_before_filter :ensure_organisation_active skip_before_filter :ensure_member_inducted before_filter :ensure_not_single...
class OrganisationsController < ApplicationController skip_before_filter :ensure_organisation_exists skip_before_filter :ensure_authenticated skip_before_filter :ensure_member_active skip_before_filter :ensure_organisation_active skip_before_filter :ensure_member_inducted before_filter :ensure_not_single...
Make OrganisationsController use the 'setup' layout.
Make OrganisationsController use the 'setup' layout.
Ruby
agpl-3.0
oneclickorgs/one-click-orgs,oneclickorgs/one-click-orgs,oneclickorgs/one-click-orgs,oneclickorgs/one-click-orgs-deployment,oneclickorgs/one-click-orgs-deployment,emmapersky/one-click-orgs,emmapersky/one-click-orgs,oneclickorgs/one-click-orgs,oneclickorgs/one-click-orgs-deployment
ruby
## Code Before: class OrganisationsController < ApplicationController skip_before_filter :ensure_organisation_exists skip_before_filter :ensure_authenticated skip_before_filter :ensure_member_active skip_before_filter :ensure_organisation_active skip_before_filter :ensure_member_inducted before_filter :e...
635440021bd3ae4e8aa09e785b67dc53a8321356
test/integration/helper.coffee
test/integration/helper.coffee
{wd40, browser} = require 'wd40' cleaner = require '../cleaner' request = require 'request' base_url = 'http://localhost:3001' login_url = "#{base_url}/login" prepIntegration = -> before (done) -> cleaner.clear_and_set_fixtures -> wd40.init -> browser.get login_url, done after (done) -> un...
{wd40, browser} = require 'wd40' cleaner = require '../cleaner' request = require 'request' test_server = process.env.CU_TEST_SERVER ? 'localhost' base_url = "http://#{test_server}:3001" login_url = "#{base_url}/login" prepIntegration = -> before (done) -> cleaner.clear_and_set_fixtures -> wd40.init -> ...
Use CU_TEST_SERVER environment variable when creating URL to contact custard on. Allows for running Selenium on a different computer.
Use CU_TEST_SERVER environment variable when creating URL to contact custard on. Allows for running Selenium on a different computer.
CoffeeScript
agpl-3.0
scraperwiki/custard,scraperwiki/custard,scraperwiki/custard
coffeescript
## Code Before: {wd40, browser} = require 'wd40' cleaner = require '../cleaner' request = require 'request' base_url = 'http://localhost:3001' login_url = "#{base_url}/login" prepIntegration = -> before (done) -> cleaner.clear_and_set_fixtures -> wd40.init -> browser.get login_url, done after ...
2cb096a0b02af1b35aa4e556160fd596723afc78
assets/meanings/general.json
assets/meanings/general.json
{ }
{ "FREE": [ "Frei" ], "TITLE": [ "Titel" ], "AUTHOR": [ "Autor", "Verfasser" ], "DIGITAL": [ "digital" ], "AVAILABLE": [ "verfügbar" ], "ISBN": [ "ISBN" ], "BARCODE": [ "Barcode", "Buchungsnummer", "Buchungsnr", "Mediennummer" ], "YEAR": [ "Jahr" ], "BRANCH": [ ...
Add some generic "field name -> Meaning" equivalences to the JSON file
Add some generic "field name -> Meaning" equivalences to the JSON file
JSON
mit
ruediger-w/opacclient,thesebas/opacclient,raphaelm/opacclient,opacapp/opacclient,geomcmaster/opacclient,johan12345/opacclient,opacapp/opacclient,johan12345/opacclient,ruediger-w/opacclient,johan12345/opacclient,opacapp/opacclient,opacapp/opacclient,hurzl/opacclient,raphaelm/opacclient,simon04/opacclient,thesebas/opaccl...
json
## Code Before: { } ## Instruction: Add some generic "field name -> Meaning" equivalences to the JSON file ## Code After: { "FREE": [ "Frei" ], "TITLE": [ "Titel" ], "AUTHOR": [ "Autor", "Verfasser" ], "DIGITAL": [ "digital" ], "AVAILABLE": [ "verfügbar" ], "ISBN": [ "ISBN" ], "BARCODE": [ ...
0dabb6f4b18ff73f16088b207894d5e647494afb
colors.py
colors.py
from tcpgecko import TCPGecko from textwrap import wrap from struct import pack from binascii import hexlify, unhexlify import sys def pokecolor(pos, string): color = textwrap.wrap(string, 4) tcp.pokemem(pos, struct.unpack(">I", color[0])[0]) tcp.pokemem(pos + 4, struct.unpack(">I", color[1])[0]) tcp...
from tcpgecko import TCPGecko from textwrap import wrap from struct import pack from binascii import unhexlify import sys tcp = TCPGecko("192.168.0.8") #Wii U IP address Colors = b"" for i in range(1, 4): #Ignores Alpha since it doesn't use it Color = wrap(sys.argv[i], 2) #Split it into 2 character chunks fo...
Update ColorHax to 2.3.0 address
Update ColorHax to 2.3.0 address Need to make pyGecko auto-find it all
Python
mit
wiiudev/pyGecko,wiiudev/pyGecko
python
## Code Before: from tcpgecko import TCPGecko from textwrap import wrap from struct import pack from binascii import hexlify, unhexlify import sys def pokecolor(pos, string): color = textwrap.wrap(string, 4) tcp.pokemem(pos, struct.unpack(">I", color[0])[0]) tcp.pokemem(pos + 4, struct.unpack(">I", color...
309985a32e2094e0731b8429c9e972e757455332
graf3d/doc/v534/index.html
graf3d/doc/v534/index.html
<br/> <hr/> <a name="graf3d"></a> <h3>3D Graphics Libraries</h3>
<br/> <hr/> <a name="graf3d"></a> <h3>3D Graphics Libraries</h3> <h4>EVE</h4> <ul> <li> <b>TEveRGBAPalette:</b> Add support for displaying palette values in UI elements (GUI, overlay) as real values, mapped with a linear function. This is enabled by calling: <pre> TEveRGBAPalette::SetUIDoubleRep(Bool_t b, Double_...
Add release notes for eve, nothing major in GL from my side.
Add release notes for eve, nothing major in GL from my side. git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@44163 27541ba8-7e3a-0410-8455-c3a389f83636
HTML
lgpl-2.1
bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT
html
## Code Before: <br/> <hr/> <a name="graf3d"></a> <h3>3D Graphics Libraries</h3> ## Instruction: Add release notes for eve, nothing major in GL from my side. git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@44163 27541ba8-7e3a-0410-8455-c3a389f83636 ## Code After: <br/> <hr/> <a name="graf3d"></a> <h3>3D ...
633a6306e8700d767b7a143e4d7431616747cd3b
.travis.yml
.travis.yml
language: java sudo: false dist: trusty jdk: - oraclejdk8 - oraclejdk9 cache: directories: - $HOME/.gradle/caches/ - $HOME/.gradle/wrapper/ script: ./gradlew -I gradle/travis.gradle check --stacktrace
language: java sudo: required dist: trusty jdk: - oraclejdk8 - oraclejdk9 cache: directories: - $HOME/.gradle/caches/ - $HOME/.gradle/wrapper/ script: ./gradlew -I gradle/travis.gradle check
Switch to higher memory Travis
Switch to higher memory Travis Trusty with sudo allows more memory. The builds seem to be failing due to memory issues.
YAML
apache-2.0
gradle-clojure/gradle-clojure,gradle-clojure/gradle-clojure
yaml
## Code Before: language: java sudo: false dist: trusty jdk: - oraclejdk8 - oraclejdk9 cache: directories: - $HOME/.gradle/caches/ - $HOME/.gradle/wrapper/ script: ./gradlew -I gradle/travis.gradle check --stacktrace ## Instruction: Switch to higher memory Travis Trusty with sudo allows more memory. The...
104f239775d507145f71953b4d5458a81cecdc4d
app/assets/javascripts/typeahead.js.coffee
app/assets/javascripts/typeahead.js.coffee
$(-> $('[data-typeahead]').on 'keyup', (e)-> $this = $(this) pattern = $this.val().toLowerCase() searchClass = $this.data("typeahead-search") $($this.data("typeahead")).children().each (idx)-> if $(this).find("#{searchClass}").text().toLowerCase().search(pattern) == -1 $(this).hide() ...
$(-> $('[data-typeahead]').on 'keyup', (e)-> $this = $(this) pattern = $this.val().toLowerCase() searchClass = $this.data("typeahead-search") $($this.data("typeahead")).children().each (idx)-> if $(this).find("#{searchClass}").text().toLowerCase().search(pattern) == -1 $(this).slideUp(20...
Add a slight animation for a nice effect
Add a slight animation for a nice effect
CoffeeScript
mit
collectiveidea/bender,collectiveidea/bender,collectiveidea/bender,collectiveidea/bender
coffeescript
## Code Before: $(-> $('[data-typeahead]').on 'keyup', (e)-> $this = $(this) pattern = $this.val().toLowerCase() searchClass = $this.data("typeahead-search") $($this.data("typeahead")).children().each (idx)-> if $(this).find("#{searchClass}").text().toLowerCase().search(pattern) == -1 $(...
c6100380b0e1e9afc968bceb4e42b1ad7fdd4c81
maven/alias.sh
maven/alias.sh
alias mcp='mvn clean package' alias mci='mvn clean install' alias mcin='mci -N' alias mpv='mvn -q -Dexec.executable="echo" -Dexec.args="\${project.version}" --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec'
alias mcp='mvn clean package' alias mci='mvn clean install' alias mcin='mci -N' alias mpv='mvn -q -Dexec.executable="echo" -Dexec.args="\${project.version}" --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec' hash xmllint 2>/dev/null && alias mpv="xmllint --xpath '//*[local-name()=\"project\"]/*[local-name(...
Add mpv faster alternative if xmllint is available
Add mpv faster alternative if xmllint is available
Shell
mit
ahaasler/dotfiles,ahaasler/dotfiles,ahaasler/dotfiles
shell
## Code Before: alias mcp='mvn clean package' alias mci='mvn clean install' alias mcin='mci -N' alias mpv='mvn -q -Dexec.executable="echo" -Dexec.args="\${project.version}" --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec' ## Instruction: Add mpv faster alternative if xmllint is available ## Code After:...
8545535af67669e64ff130936a179af03284a27e
app/common/collections/dashboards.js
app/common/collections/dashboards.js
define([ 'extensions/collections/collection' ], function (Collection) { return Collection.extend({ comparator: 'title', alphabetise: function (filter) { var groups = { count: 0 }; filter = filter || {}; this.each(function (model) { var title = model.get('title').toUpperCase(), ...
define([ 'extensions/collections/collection' ], function (Collection) { return Collection.extend({ comparator: 'title', alphabetise: function (filter) { var groups = { count: 0 }; filter = filter || {}; var textFilter = (filter.text || '').toUpperCase(); var filteredDashboards = t...
Refactor dashboard collection for multiple filters
Refactor dashboard collection for multiple filters We want to filter the dashboard collection on multiple facets like title and department. To make this easier, use Underscore's filter method to return true or false based on whether we want the dashboard included in the list.
JavaScript
mit
alphagov/spotlight,keithiopia/spotlight,alphagov/spotlight,keithiopia/spotlight,tijmenb/spotlight,tijmenb/spotlight,alphagov/spotlight,keithiopia/spotlight,tijmenb/spotlight
javascript
## Code Before: define([ 'extensions/collections/collection' ], function (Collection) { return Collection.extend({ comparator: 'title', alphabetise: function (filter) { var groups = { count: 0 }; filter = filter || {}; this.each(function (model) { var title = model.get('title')....
21bcec33b41e1697b4888ee8ad29c375ab587671
viewer/front/components/ChannelMessagesHeader.js
viewer/front/components/ChannelMessagesHeader.js
import React from 'react'; import { connect } from 'react-redux' import find from 'lodash/find'; import ChannelName from './ChannelName' import SlackActions from '../actions/SlackActions'; import firebase from 'firebase/app'; const ChannelMessagesHeader = ({ channels, ims, currentChannelId, openSidebar }) => { const...
import React from 'react'; import { connect } from 'react-redux' import find from 'lodash/find'; import ChannelName from './ChannelName' import SlackActions from '../actions/SlackActions'; const ChannelMessagesHeader = ({ channels, ims, currentChannelId, openSidebar }) => { const allChannels = Object.assign({}, chan...
Revert "implement sign out button"
Revert "implement sign out button" This reverts commit b1e5d72e01ebdf8fbbc61e7fd2cc181ff0e413dc.
JavaScript
mit
tyage/slack-patron,tyage/slack-patron,tyage/slack-patron,tyage/slack-patron
javascript
## Code Before: import React from 'react'; import { connect } from 'react-redux' import find from 'lodash/find'; import ChannelName from './ChannelName' import SlackActions from '../actions/SlackActions'; import firebase from 'firebase/app'; const ChannelMessagesHeader = ({ channels, ims, currentChannelId, openSidebar...
dbd2a694a469128ca141fa984e019d968fa2cbc7
.travis.yml
.travis.yml
sudo: false language: ruby rvm: - 2.0 - 2.1 - 2.2 - 2.3.3 - 2.4.0 env: COVERALL=1 before_install: - gem install bundler
sudo: false language: ruby rvm: - 2.0 - 2.1 - 2.2 - 2.3.3 - 2.4.0 env: COVERALL=1 before_install: - gem update --system - gem install bundler
Fix rainbow installation on CI
Fix rainbow installation on CI Ref https://github.com/sickill/rainbow/issues/44#issuecomment-274412027
YAML
mit
aetrion/dnsimple-ruby
yaml
## Code Before: sudo: false language: ruby rvm: - 2.0 - 2.1 - 2.2 - 2.3.3 - 2.4.0 env: COVERALL=1 before_install: - gem install bundler ## Instruction: Fix rainbow installation on CI Ref https://github.com/sickill/rainbow/issues/44#issuecomment-274412027 ## Code After: sudo: false language: ruby rvm: - 2.0 - 2.1 - ...
2977384e17ff21f5f7edba7367da88578b5608b8
README.md
README.md
Python 2/3 client for the [Hashicorp](https://hashicorp.com/) [Vault](https://www.vaultproject.io) secret management tool. ## Usage ```python import os import vault client = vault.Client( url='https://localhost:8200', token=os.environ['VAULT_TOKEN']) client.write('secret/foo', baz='bar', lease='1h') prin...
Python 2/3 client for the [Hashicorp](https://hashicorp.com/) [Vault](https://www.vaultproject.io) secret management tool. [![Travis CI](https://travis-ci.org/ianunruh/python-vaultclient.svg?branch=master)](https://travis-ci.org/ianunruh/python-vaultclient) ## Usage ```python import os import vault client = vault...
Add Travis CI status badge
Add Travis CI status badge [ci skip]
Markdown
apache-2.0
Aloomaio/async-hvac,mattrobenolt/hvac,ianunruh/hvac,ianunruh/hvac,Aloomaio/alooma-hvac,Aloomaio/alooma-hvac,Aloomaio/async-hvac,mattrobenolt/hvac
markdown
## Code Before: Python 2/3 client for the [Hashicorp](https://hashicorp.com/) [Vault](https://www.vaultproject.io) secret management tool. ## Usage ```python import os import vault client = vault.Client( url='https://localhost:8200', token=os.environ['VAULT_TOKEN']) client.write('secret/foo', baz='bar', l...
784f47c322356eb3bd9d4d96cc069d91937bfb55
doc/jsk_2016_01_baxter_apc/apc2016_pick_trial.rst
doc/jsk_2016_01_baxter_apc/apc2016_pick_trial.rst
APC2016 Pick Task Trial on Real World ===================================== Pick task trial on real world for APC2016 can be done on ``baxter@satan`` and ``baxter@eyelash``. - Prepare json. - Setup objects in Kiva. .. code-block:: bash # use sheeta baxter@sheeta $ roslaunch jsk_2016_01_baxter_apc baxter.launch ...
APC2016 Pick Task Trial on Real World ===================================== Pick task trial on real world for APC2016 can be done on ``baxter@sheeta``. - Prepare json (ex. apc_pick_task_robocup2016.json). - Setup objects in Kiva. .. code-block:: bash # Launch nodes to control robot. baxter@sheeta $ roslaunch js...
Update documentation of how to run apc pick task
Update documentation of how to run apc pick task
reStructuredText
bsd-3-clause
pazeshun/jsk_apc,pazeshun/jsk_apc,pazeshun/jsk_apc,pazeshun/jsk_apc,pazeshun/jsk_apc
restructuredtext
## Code Before: APC2016 Pick Task Trial on Real World ===================================== Pick task trial on real world for APC2016 can be done on ``baxter@satan`` and ``baxter@eyelash``. - Prepare json. - Setup objects in Kiva. .. code-block:: bash # use sheeta baxter@sheeta $ roslaunch jsk_2016_01_baxter_ap...
e9c5791a5ee1df92b7a68480a220b4779b3e22db
.travis.yml
.travis.yml
language: go # Updating go version for dependencies on context and net/http/trace go: master
language: go go: master
Remove spurious comment about go versions
Remove spurious comment about go versions
YAML
apache-2.0
jacobsa/gcloud
yaml
## Code Before: language: go # Updating go version for dependencies on context and net/http/trace go: master ## Instruction: Remove spurious comment about go versions ## Code After: language: go go: master
bfba3e732f499b36c15f4bb9686a92f0ac3c9e5f
html/ts/generated.d.ts
html/ts/generated.d.ts
// Stuff that Shake generates and injects in // The version of Shake declare const version: string; ///////////////////////////////////////////////////////////////////// // PROFILE DATA declare const profile: Profile2[]; declare type timestamp = int interface Trace { command: string; start: seconds; st...
// Stuff that Shake generates and injects in // The version of Shake declare const version: string; ///////////////////////////////////////////////////////////////////// // PROFILE DATA // var rather than const, because we override it when testing declare var profile: Profile2[]; declare type timestamp = int inter...
Make the profile mutable, to faciliate testing
Make the profile mutable, to faciliate testing
TypeScript
bsd-3-clause
ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake
typescript
## Code Before: // Stuff that Shake generates and injects in // The version of Shake declare const version: string; ///////////////////////////////////////////////////////////////////// // PROFILE DATA declare const profile: Profile2[]; declare type timestamp = int interface Trace { command: string; start:...
c1dbeceb74020ac89e0ce77d86e6d49ff8d53ddb
lib/ideas.rb
lib/ideas.rb
require "ideas/version" require "ideas/models/feature" require "ideas/models/feature_set" require "ideas/models/idea" require "ideas/scopes/root_scope" require "ideas/scopes/idea_scope" require "ideas/scopes/feature_scope" require "ideas/helpers" require "ideas/loader"
Dir[File.expand_path('../**/*.rb', __FILE__)].each{ |f| require f }
Simplify requiring of all files
Simplify requiring of all files
Ruby
mit
maxd/ideas
ruby
## Code Before: require "ideas/version" require "ideas/models/feature" require "ideas/models/feature_set" require "ideas/models/idea" require "ideas/scopes/root_scope" require "ideas/scopes/idea_scope" require "ideas/scopes/feature_scope" require "ideas/helpers" require "ideas/loader" ## Instruction: Simplify requ...
f988ce8f44acabe50735db1bd75a8a3bcf0affa8
scripts/commands/ecs/tasks.bash
scripts/commands/ecs/tasks.bash
TASK_STATUS="" while getopts "s" opt; do case "$opt" in s) TASK_STATUS="--desired-status STOPPED" ;; esac done shift $(($OPTIND-1)) split_args "$@" CLUSTERS=$(awscli ecs list-clusters --output text --query "clusterArns[$(auto_filter @ -- $FIRST_RESOURCE)].[@]") select_one Cluster "$CLUSTERS" TASKS=$...
TASK_STATUS="" while getopts "s" opt; do case "$opt" in s) TASK_STATUS="--desired-status STOPPED" ;; esac done shift $(($OPTIND-1)) split_args "$@" CLUSTERS=$(awscli ecs list-clusters --output text --query "clusterArns[$(auto_filter @ -- $FIRST_RESOURCE)].[@]") select_one Cluster "$CLUSTERS" TASKS=$...
Sort ECS Tasks by definition name
Sort ECS Tasks by definition name
Shell
mit
flomotlik/awsinfo,flomotlik/awsinfo
shell
## Code Before: TASK_STATUS="" while getopts "s" opt; do case "$opt" in s) TASK_STATUS="--desired-status STOPPED" ;; esac done shift $(($OPTIND-1)) split_args "$@" CLUSTERS=$(awscli ecs list-clusters --output text --query "clusterArns[$(auto_filter @ -- $FIRST_RESOURCE)].[@]") select_one Cluster "$CL...