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
b96793e853379c3b8fdaf868caa630869e8d27af
scripts/scroll.js
scripts/scroll.js
domready(function() { var UP = "up"; var DOWN = "down"; var current = 0; var height = document.body.clientHeight; var number = document.querySelectorAll('body > section').length; var running = false; var duration = parseFloat(getComputedStyle(document.body).transitionDuration) * 1000; function slide(direction)...
domready(function() { var UP = "up"; var DOWN = "down"; var current = 0; var height = document.body.clientHeight; var number = document.querySelectorAll('body > section').length; var running = false; var duration = parseFloat(getComputedStyle(document.body).transitionDuration) * 1000; function slide(direction)...
Fix the cancelled key bug
Fix the cancelled key bug
JavaScript
unlicense
elwinar/rambler-website,elwinar/rambler-website
javascript
## Code Before: domready(function() { var UP = "up"; var DOWN = "down"; var current = 0; var height = document.body.clientHeight; var number = document.querySelectorAll('body > section').length; var running = false; var duration = parseFloat(getComputedStyle(document.body).transitionDuration) * 1000; function ...
1f615b86e57689b006d4b7388fa2dc8a4349015c
test/performance/rollenspiel/role_grantee_performance_test.rb
test/performance/rollenspiel/role_grantee_performance_test.rb
require 'test_helper' module Rollenspiel class RoleGranteePerformanceTest < ActiveSupport::TestCase test "#role_in?" do n = 100 u = TestUser.create! organizations = [] ActiveRecord::Base.transaction do n.times do |i| o = TestOrganization.create! name: "org-#{i}" ...
require 'test_helper' module Rollenspiel class RoleGranteePerformanceTest < ActiveSupport::TestCase test "#role_in?" do n = 100 u = TestUser.create! organizations = [] ActiveRecord::Base.transaction do n.times do |i| o = TestOrganization.create! name: "org-#{i}" ...
Fix performance test for ruby 1.x.
Fix performance test for ruby 1.x.
Ruby
mit
bsingr/rollenspiel,bsingr/rollenspiel,bsingr/rollenspiel
ruby
## Code Before: require 'test_helper' module Rollenspiel class RoleGranteePerformanceTest < ActiveSupport::TestCase test "#role_in?" do n = 100 u = TestUser.create! organizations = [] ActiveRecord::Base.transaction do n.times do |i| o = TestOrganization.create! name: ...
73c961af61bf8f5cae5a686c76e137a539a54fca
src/loop.jl
src/loop.jl
module loop export Loop type Loop instance::Function start::Function stop::Function attach_periodic_callback::Function dettach_periodic_callback::Function function Loop() this = new() this end function instance() end function start() end function stop() end function attach_pe...
module loop export Loop type Loop instance::Function start::Function stop::Function attach_periodic_callback::Function dettach_periodic_callback::Function function Loop(loop=nothing) this = new() this.ioloop = loop # or ioloop.IOLoop() this.ioloop.make_cu...
Add skeleton code for Loop
Add skeleton code for Loop
Julia
mit
JuliaPackageMirrors/MsgPackRpcClient.jl
julia
## Code Before: module loop export Loop type Loop instance::Function start::Function stop::Function attach_periodic_callback::Function dettach_periodic_callback::Function function Loop() this = new() this end function instance() end function start() end function stop() end fu...
286b8565c2a6c27300374c56ca604b0d3ea1cbda
.eslintrc.js
.eslintrc.js
const OFF = 0; const ERROR = 2; module.exports = { root: true, parser: "babel-eslint", plugins: [ "node", "import", "react", "flowtype", "prettier", ], extends: [ "eslint:recommended", "plugin:import/recommended", "plugin:react/recommended", "prettier", "prettier/flowt...
const OFF = 0; const ERROR = 2; module.exports = { root: true, parser: "babel-eslint", plugins: [ "node", "import", "react", "flowtype", "prettier", ], extends: [ "eslint:recommended", "plugin:import/recommended", "plugin:react/recommended", "prettier", "prettier/flowt...
Fix lint rules for non module files
Fix lint rules for non module files
JavaScript
mit
celinaberg/BitFit,celinaberg/BitFit,celinaberg/BitFit
javascript
## Code Before: const OFF = 0; const ERROR = 2; module.exports = { root: true, parser: "babel-eslint", plugins: [ "node", "import", "react", "flowtype", "prettier", ], extends: [ "eslint:recommended", "plugin:import/recommended", "plugin:react/recommended", "prettier", ...
9f6fa43000d5211da0d25cdc0370cdd7ab7951f0
apps/front/modules/docPage/actions/actions.class.php
apps/front/modules/docPage/actions/actions.class.php
<?php /** * Documentation page actions */ class docPageActions extends dmFrontModuleActions { public function executeUpdateFromGit(dmWebRequest $request) { //$this->forward404Unless($request->isMethod('post')); // create a git repo require_once(sfConfig::get('sf_root_dir').'/lib/vendor/php-git-repo/l...
<?php /** * Documentation page actions */ class docPageActions extends dmFrontModuleActions { // handle GitHub post-receive hook public function executeUpdateFromGit(dmWebRequest $request) { $this->forward404Unless($request->isMethod('post')); $repoDir = sfConfig::get('sf_root_dir').'/data/diem-docs'; ...
Add comments to the synchronization action
Add comments to the synchronization action
PHP
mit
ornicar/diem-project,ornicar/diem-project,ornicar/diem-project
php
## Code Before: <?php /** * Documentation page actions */ class docPageActions extends dmFrontModuleActions { public function executeUpdateFromGit(dmWebRequest $request) { //$this->forward404Unless($request->isMethod('post')); // create a git repo require_once(sfConfig::get('sf_root_dir').'/lib/vendo...
04ec8e796f8fccba92dae17f82bbcffc0aa1f48c
app/views/case_workers/claims/_determination_fields.html.haml
app/views/case_workers/claims/_determination_fields.html.haml
.nested-fields %tr.determination-form-fields %td Fees %td %span.currency-symbol = claim.fees_total %td %div.pound-wrapper %div.pound-sign.bold-xsmall &pound; = f.text_field :fees, value: number_with_precision(f.object.fees, precision: 2), class: 'js-fees',...
%tr.determination-form-fields %td Fees %td %span.currency-symbol = claim.fees_total %td %div.pound-wrapper %div.pound-sign.bold-xsmall &pound; = f.text_field :fees, value: number_with_precision(f.object.fees, precision: 2), class: 'js-fees', size: 10, maxlength: 8 = valida...
Remove unnecessary padding thanks to nested fields
Remove unnecessary padding thanks to nested fields
Haml
mit
ministryofjustice/advocate-defence-payments,ministryofjustice/advocate-defence-payments,ministryofjustice/advocate-defence-payments,ministryofjustice/advocate-defence-payments
haml
## Code Before: .nested-fields %tr.determination-form-fields %td Fees %td %span.currency-symbol = claim.fees_total %td %div.pound-wrapper %div.pound-sign.bold-xsmall &pound; = f.text_field :fees, value: number_with_precision(f.object.fees, precision: 2), c...
650b122bd9ee40c373601d25da8f23703d0433ad
scene3d/README.md
scene3d/README.md
scene3d ======= Vicis' Scenegraph component. Largely inspired by [Scenery](https://github.com/scenerygraphs/scenery).
scene3d ======= Vicis' Scenegraph component. Largely inspired by [Scenery](https://github.com/scenerygraphics/scenery) and [gfx-rs](https://github.com/gfx-rs/gfx).
Update readme and fix broken link
Update readme and fix broken link
Markdown
isc
Major-/Vicis
markdown
## Code Before: scene3d ======= Vicis' Scenegraph component. Largely inspired by [Scenery](https://github.com/scenerygraphs/scenery). ## Instruction: Update readme and fix broken link ## Code After: scene3d ======= Vicis' Scenegraph component. Largely inspired by [Scenery](https://github.com/scenerygraphics/scene...
d0ff2e82248998d018b07d7d018b9f9747afcbc6
src/geo/ui/widgets/category/search_paginator_view.js
src/geo/ui/widgets/category/search_paginator_view.js
var $ = require('jquery'); var _ = require('underscore'); var View = require('cdb/core/view'); var Model = require('cdb/core/model'); var PaginatorView = require('./paginator_view'); var searchTemplate = require('./search_paginator_template.tpl'); module.exports = PaginatorView.extend({ _TEMPLATE: searchTemplate, ...
var $ = require('jquery'); var _ = require('underscore'); var View = require('cdb/core/view'); var Model = require('cdb/core/model'); var PaginatorView = require('./paginator_view'); var searchTemplate = require('./search_paginator_template.tpl'); module.exports = PaginatorView.extend({ _TEMPLATE: searchTemplate, ...
Clean search (input, data, ...) when search view is disabled
Clean search (input, data, ...) when search view is disabled
JavaScript
bsd-3-clause
splashblot/cartodb.js,splashblot/cartodb.js,splashblot/cartodb.js,splashblot/cartodb.js
javascript
## Code Before: var $ = require('jquery'); var _ = require('underscore'); var View = require('cdb/core/view'); var Model = require('cdb/core/model'); var PaginatorView = require('./paginator_view'); var searchTemplate = require('./search_paginator_template.tpl'); module.exports = PaginatorView.extend({ _TEMPLATE: s...
19d3b4ee7b416b219903ec2b2f42aedfc665c3b3
server.js
server.js
var http = require('http'); var r = require('request'); var config = require('./config.json'); var doneUrl; var userUrl; http.createServer(function(request, response) { if (!isEvent(request)) return; r.post({ url: doneUrl }, function(error, response, body) { if (error !== null) { ...
var http = require('http'); var r = require('request'); var config = require('./config.json'); var doneUrl; var userUrl; http.createServer(function(request, response) { if (!isEvent(request)) return; r.post({ url: doneUrl }, function(error, response, body) { if (error !== null) { ...
Remove unnecessary parsing of body -- it's already an object.
Remove unnecessary parsing of body -- it's already an object.
JavaScript
mit
RemoteHelper/client-mock-node
javascript
## Code Before: var http = require('http'); var r = require('request'); var config = require('./config.json'); var doneUrl; var userUrl; http.createServer(function(request, response) { if (!isEvent(request)) return; r.post({ url: doneUrl }, function(error, response, body) { if (error ...
bfdaee1015756c2c2fb1810e3747633bcf3b0eb7
chrome/renderer/resources/mobile_youtube_plugin.html
chrome/renderer/resources/mobile_youtube_plugin.html
<!DOCTYPE html> <html> <head> <script> function insertBackground() { var video = templateData['video_id']; document.body.style.backgroundImage = "url('http://img.youtube.com/vi/" + video + "/0.jpg')"; } </script> <style type="text/css"> body { background-color: black; background-repeat: no-repeat; background...
<!DOCTYPE html> <html> <head> <script> function insertBackground() { var video = templateData['video_id']; document.body.style.backgroundImage = "url('http://img.youtube.com/vi/" + video + "/0.jpg')"; } </script> <style type="text/css"> body { background-color: black; background-repeat: no-repeat; background-...
Simplify the css sheets for old-style youtube plugins on android
Simplify the css sheets for old-style youtube plugins on android This change simplifies the css style for old style youtube plugins on android. It also fixed a mysterious problem that the youtube placeholder will not be shown. The problem is caused by having a relative positioned play button image. However, currently ...
HTML
bsd-3-clause
TheTypoMaster/chromium-crosswalk,Fireblend/chromium-crosswalk,Fireblend/chromium-crosswalk,Chilledheart/chromium,hgl888/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,ChromiumWebApps/chromium,littlstar/chromium.src,dushu1203/chromium.src,krieger-od/nwjs_chromium.src,patrickm/chromium.src,ChromiumWebApps/chromium,P...
html
## Code Before: <!DOCTYPE html> <html> <head> <script> function insertBackground() { var video = templateData['video_id']; document.body.style.backgroundImage = "url('http://img.youtube.com/vi/" + video + "/0.jpg')"; } </script> <style type="text/css"> body { background-color: black; background-repeat: no-repe...
570610350f9f0f7342ba55ebe478d429f98d6611
boards/adafruit_feather_m0_usb.json
boards/adafruit_feather_m0_usb.json
{ "build": { "core": "arduino_zero", "cpu": "cortex-m0plus", "extra_flags": "-DARDUINO_SAMD_FEATHER_M0 -DARDUINO_ARCH_SAMD -D__SAMD21G18A__", "f_cpu": "48000000L", "hwids": [ [ "0x239A", "0x800B" ], [ "0x239A", "0x000B" ] ], "...
{ "build": { "core": "adafruit_feather_m0", "cpu": "cortex-m0plus", "extra_flags": "-DARDUINO_SAMD_FEATHER_M0 -DARDUINO_ARCH_SAMD -D__SAMD21G18A__", "f_cpu": "48000000L", "hwids": [ [ "0x239A", "0x800B" ], [ "0x239A", "0x000B" ] ],...
Add new core and variant for adafruit_feather_m0
Add new core and variant for adafruit_feather_m0 Issue #2
JSON
apache-2.0
platformio/platform-atmelsam
json
## Code Before: { "build": { "core": "arduino_zero", "cpu": "cortex-m0plus", "extra_flags": "-DARDUINO_SAMD_FEATHER_M0 -DARDUINO_ARCH_SAMD -D__SAMD21G18A__", "f_cpu": "48000000L", "hwids": [ [ "0x239A", "0x800B" ], [ "0x239A", "0x000B" ...
c572b4084ea91bc6237186bfb597ba0510341b84
lib/loady/attribute_array.rb
lib/loady/attribute_array.rb
module Loady class AttributeArray < Array # usage: # aa = Loady::AttributeArray.new(['john', 'doe']) # aa.to_attributes([:first, :last]) # => { first: 'john', last: 'doe' } # # options: # strip: false -- default = true # -- array values must be strings if :strip...
module Loady class AttributeArray < Array # usage: # aa = Loady::AttributeArray.new(['john', 'doe']) # aa.to_attributes([:first, :last]) # => { first: 'john', last: 'doe' } # # options: # strip: false -- default = true # -- array values must be strings if :strip...
Use tap instead of local variable
Use tap instead of local variable
Ruby
mit
teeparham/loady
ruby
## Code Before: module Loady class AttributeArray < Array # usage: # aa = Loady::AttributeArray.new(['john', 'doe']) # aa.to_attributes([:first, :last]) # => { first: 'john', last: 'doe' } # # options: # strip: false -- default = true # -- array values must be s...
5437d5135213fec4390d208174cda1e5c1a57674
manager/context_processor.py
manager/context_processor.py
from workout_manager import get_version def processor(request): return { # Application version 'version' : get_version(), # Do not track header 'DNT': request.META['HTTP_DNT'] }
from workout_manager import get_version def processor(request): return { # Application version 'version' : get_version(), # Do not track header 'DNT': request.META.get('HTTP_DNT', False) }
Set a default if the browser doesn't send the DNT header
Set a default if the browser doesn't send the DNT header
Python
agpl-3.0
wger-project/wger,wger-project/wger,DeveloperMal/wger,kjagoo/wger_stark,wger-project/wger,rolandgeider/wger,DeveloperMal/wger,petervanderdoes/wger,DeveloperMal/wger,DeveloperMal/wger,kjagoo/wger_stark,rolandgeider/wger,rolandgeider/wger,wger-project/wger,petervanderdoes/wger,rolandgeider/wger,petervanderdoes/wger,peter...
python
## Code Before: from workout_manager import get_version def processor(request): return { # Application version 'version' : get_version(), # Do not track header 'DNT': request.META['HTTP_DNT'] } ## Instruction: Set a default if the browser doesn't send the DNT header ...
ba637c72e7c6ec0ef48ec559a77283bd725b678f
modules/ssh/templates/sshd_config.erb
modules/ssh/templates/sshd_config.erb
Port 22 ListenAddress :: ListenAddress 0.0.0.0 Protocol 2 Banner /etc/banner HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_dsa_key <% if @osfamily == 'debian' %> HostKey /etc/ssh/ssh_host_ecdsa_key <% end %> UsePrivilegeSeparation yes KeyRegenerationInterval 3600 ServerKeyBits 768 SyslogFacility AUTH ...
Port 22 ListenAddress :: ListenAddress 0.0.0.0 Protocol 2 Banner /etc/banner HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_dsa_key <% if @osfamily == 'Debian' %> HostKey /etc/ssh/ssh_host_ecdsa_key <% end %> UsePrivilegeSeparation yes KeyRegenerationInterval 3600 ServerKeyBits 768 SyslogFacility AUTH ...
Fix for sshd config options
Fix for sshd config options Change-Id: I690d2bd2c1c3f8885bcc0f814483facdc6f2443f Signed-off-by: Igor Shishkin <754e6e0fd0f692545d04d1591d9a3de62bb04f84@mirantis.com>
HTML+ERB
apache-2.0
fuel-infra/puppet-manifests,fuel-infra/puppet-manifests,fuel-infra/puppet-manifests,fuel-infra/puppet-manifests
html+erb
## Code Before: Port 22 ListenAddress :: ListenAddress 0.0.0.0 Protocol 2 Banner /etc/banner HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_dsa_key <% if @osfamily == 'debian' %> HostKey /etc/ssh/ssh_host_ecdsa_key <% end %> UsePrivilegeSeparation yes KeyRegenerationInterval 3600 ServerKeyBits 768 Sysl...
1326f821a0b7a6eef5a6ead3874946ed06e8ead5
stdlib/private/OSLog/CMakeLists.txt
stdlib/private/OSLog/CMakeLists.txt
add_swift_target_library(swiftOSLogTestHelper IS_SDK_OVERLAY SHARED OSLogTestHelper.swift OSLogMessage.swift OSLogIntegerFormatting.swift OSLogStringAlignment.swift OSLogIntegerTypes.swift OSLogStringTypes.swift OSLogNSObjectType.swift OSLogFloatingPointTypes.swift OSLogSwiftProtocols.swift OSL...
add_swift_target_library(swiftOSLogTestHelper IS_SDK_OVERLAY SHARED OSLogTestHelper.swift OSLogMessage.swift OSLogIntegerFormatting.swift OSLogStringAlignment.swift OSLogIntegerTypes.swift OSLogStringTypes.swift OSLogNSObjectType.swift OSLogFloatingPointTypes.swift OSLogSwiftProtocols.swift OSL...
Remove the dependency on `_Concurrency`
[OSLog] Remove the dependency on `_Concurrency` _Concurrency is not used in the module, and having it as a dependency causes a ninja error when trying to build stdlib without `-D SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY=YES`: ``` ninja: error: 'stdlib/private/OSLog/swift_Concurrency-swiftmodule-macosx-arm64', needed by ...
Text
apache-2.0
benlangmuir/swift,apple/swift,atrick/swift,glessard/swift,roambotics/swift,rudkx/swift,roambotics/swift,gregomni/swift,apple/swift,apple/swift,gregomni/swift,benlangmuir/swift,JGiola/swift,rudkx/swift,glessard/swift,gregomni/swift,atrick/swift,roambotics/swift,ahoppen/swift,apple/swift,atrick/swift,gregomni/swift,ahopp...
text
## Code Before: add_swift_target_library(swiftOSLogTestHelper IS_SDK_OVERLAY SHARED OSLogTestHelper.swift OSLogMessage.swift OSLogIntegerFormatting.swift OSLogStringAlignment.swift OSLogIntegerTypes.swift OSLogStringTypes.swift OSLogNSObjectType.swift OSLogFloatingPointTypes.swift OSLogSwiftProto...
ab260e66bf08dfcbe15d3b02e72f298a1228e82b
docs/3.Jobs.md
docs/3.Jobs.md
Documentation - Jobs ==================== Every job must implement the interface `SlmQueue\Job\JobInterface`. This interface defines four methods: `getId()` / `setId()`, `jsonSerialize()` and `execute()`. The getter and setter for the id is required to track unique jobs. Most queues use an identifier when a job is pus...
Documentation - Jobs ==================== Every job must implement the interface `SlmQueue\Job\JobInterface`. This interface defines four methods: `getId()` / `setId()`, `jsonSerialize()` and `execute()`. The getter and setter for the id is required to track unique jobs. Most queues use an identifier when a job is pus...
Simplify explanation of the execute() method
Simplify explanation of the execute() method
Markdown
bsd-3-clause
malinink/SlmQueue,jackdpeterson/SlmQueue,juriansluiman/SlmQueue
markdown
## Code Before: Documentation - Jobs ==================== Every job must implement the interface `SlmQueue\Job\JobInterface`. This interface defines four methods: `getId()` / `setId()`, `jsonSerialize()` and `execute()`. The getter and setter for the id is required to track unique jobs. Most queues use an identifier w...
a80e1d6f2296d52ea0f579a7d2862aebc5378c8b
templates/trackeroutput/files_table.tpl
templates/trackeroutput/files_table.tpl
<table class="table table-striped table-hover"> <thead> <tr> <th>{tr}File{/tr}</th> <th>{tr}Date{/tr}</th> <th>{tr}Description{/tr}</th> </tr> </thead> <tbody> {foreach from=$data.files item=file} <tr> <td> <img src="tiki-download_file.php?fileId={$file.fileId|escape}&amp;thumbnail" width="3...
<div id="display_f{$field.fieldId|escape}" class="files display_f{$field.fieldId|escape}"> <table class="table table-striped table-hover"> <thead> <tr> <th>{tr}File{/tr}</th> <th>{tr}Date{/tr}</th> <th>{tr}Description{/tr}</th> </tr> </thead> <tbody> {foreach from=$data.files item=file} <tr> ...
Add a containing div with class and id around the files table display mode to allow field specific styling
[FIX] trackers: Add a containing div with class and id around the files table display mode to allow field specific styling git-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@64154 b456876b-0849-0410-b77d-98878d47e9d5
Smarty
lgpl-2.1
tikiorg/tiki,tikiorg/tiki,tikiorg/tiki,tikiorg/tiki
smarty
## Code Before: <table class="table table-striped table-hover"> <thead> <tr> <th>{tr}File{/tr}</th> <th>{tr}Date{/tr}</th> <th>{tr}Description{/tr}</th> </tr> </thead> <tbody> {foreach from=$data.files item=file} <tr> <td> <img src="tiki-download_file.php?fileId={$file.fileId|escape}&amp;thu...
2e97ee2e152094ed216ca5ee3bc2ab1c90dc67ec
frontend/components/topic-input.jsx
frontend/components/topic-input.jsx
import React, { Component } from 'react' import {Creatable} from 'react-select' import css from 'react-select/dist/react-select.css' export default class TopicInput extends Component { constructor(props){ super(props); this.state = { topics: [], } this.handleSelect = this.handleSelect.bind(this...
import React, { Component } from 'react' import {Creatable} from 'react-select' import css from 'react-select/dist/react-select.css' export default class TopicInput extends Component { constructor(props){ super(props); let topics = []; if (props.value){ topics = props.value.split(',').map(e => { re...
Fix issue with editing courses and preserving topics
Fix issue with editing courses and preserving topics
JSX
mit
p2pu/learning-circles,p2pu/learning-circles,p2pu/learning-circles,p2pu/learning-circles
jsx
## Code Before: import React, { Component } from 'react' import {Creatable} from 'react-select' import css from 'react-select/dist/react-select.css' export default class TopicInput extends Component { constructor(props){ super(props); this.state = { topics: [], } this.handleSelect = this.handle...
85170248db6ec6fd5e4f960300e1a132675c0c29
lib/main.js
lib/main.js
Meteor.methods({ pushSong: function(song) { song.owner = this.userId; delete song.url; return MusicCollection.insert(song); } });
Meteor.methods({ pushSong: function(song) { if(this.userId) { song.owner = this.userId; delete song.url; return MusicCollection.insert(song); } } });
Check if user has valid id in method pushSong()
Check if user has valid id in method pushSong()
JavaScript
mit
almightycouch/audiopia,redrabbit/audiopia,redrabbit/audiopia,almightycouch/audiopia
javascript
## Code Before: Meteor.methods({ pushSong: function(song) { song.owner = this.userId; delete song.url; return MusicCollection.insert(song); } }); ## Instruction: Check if user has valid id in method pushSong() ## Code After: Meteor.methods({ pushSong: function(song) { if(th...
7f9c7740dbd9160d6f6eebc249ac9113ee30b5c7
config/initializers/skip_passive_login.rb
config/initializers/skip_passive_login.rb
ApplicationController.class_eval do skip_before_filter :passive_login, if: -> { Rails.env.development? || Rails.env.test? } end
[UmlautController, ApplicationController].each do |klass| klass.class_eval do skip_before_filter :passive_login, if: -> { Rails.env.development? || Rails.env.test? } end end
Disable passive login attempt on dev for multiple controllers
Disable passive login attempt on dev for multiple controllers
Ruby
mit
NYULibraries/getit,NYULibraries/getit,NYULibraries/getit,NYULibraries/getit
ruby
## Code Before: ApplicationController.class_eval do skip_before_filter :passive_login, if: -> { Rails.env.development? || Rails.env.test? } end ## Instruction: Disable passive login attempt on dev for multiple controllers ## Code After: [UmlautController, ApplicationController].each do |klass| klass.class_eval do...
51e61bc15e4d59870b5b5567de3b442484bd6a50
spec/ubuntu_unused_kernels_spec.rb
spec/ubuntu_unused_kernels_spec.rb
require 'spec_helper' describe UbuntuUnusedKernels do it 'should have a version number' do UbuntuUnusedKernels::VERSION.should_not be_nil end it 'should do something useful' do false.should eq(true) end end
require 'spec_helper' describe UbuntuUnusedKernels do it 'should have a version number' do expect(UbuntuUnusedKernels::VERSION).to_not be_nil end it 'should do something useful' do expect(false).to eq(true) end end
Fix rspec2 deprecated syntax in example tests
Fix rspec2 deprecated syntax in example tests expect should be used instead of should.
Ruby
mit
gds-operations/ubuntu_unused_kernels,gds-operations/ubuntu_unused_kernels
ruby
## Code Before: require 'spec_helper' describe UbuntuUnusedKernels do it 'should have a version number' do UbuntuUnusedKernels::VERSION.should_not be_nil end it 'should do something useful' do false.should eq(true) end end ## Instruction: Fix rspec2 deprecated syntax in example tests expect should b...
6c424b3fefe5a5456110acd4929561c18e192733
test/Lily/Mock/MiddlewareApplicationWithMiddleware.php
test/Lily/Mock/MiddlewareApplicationWithMiddleware.php
<?php namespace Lily\Mock; use Lily\Application\MiddlewareApplication; class MiddlewareApplicationWithMiddleware extends MiddlewareApplication { public $m; protected function middleware() { return array( function ($request) { return $request['middleware-message']; ...
<?php namespace Lily\Mock; use Lily\Application\MiddlewareApplication; class MiddlewareApplicationWithMiddleware extends MiddlewareApplication { public $m; protected function middleware() { $m = $this->m; return array( function ($request) { return $request['m...
Fix mock object to work with PHP 5.3
Fix mock object to work with PHP 5.3
PHP
mit
lukemorton/lily,DrPheltRight/lily,lukemorton/lily,DrPheltRight/lily
php
## Code Before: <?php namespace Lily\Mock; use Lily\Application\MiddlewareApplication; class MiddlewareApplicationWithMiddleware extends MiddlewareApplication { public $m; protected function middleware() { return array( function ($request) { return $request['middlewar...
548802d02319e7438ed325aedb559df981443495
db/seeds/prisons/RCI-rochester.yml
db/seeds/prisons/RCI-rochester.yml
--- name: Rochester nomis_id: RCI address: |- 1 Fort Road Rochester Kent postcode: ME1 3QS email_address: phone_no: 01634 803100 enabled: true private: false closed: false recurring: tue: - 1400-1600 wed: - 1400-1600 thu: - 1400-1600 fri: - 1400-1600 sat: - 0900-1100 - 1345-1545 sun: - ...
--- name: Rochester nomis_id: RCI address: |- 1 Fort Road Rochester Kent postcode: ME1 3QS email_address: socialvisits.rochester@hmps.gsi.gov.uk phone_no: 01634 803100 enabled: true private: false closed: false recurring: tue: - 1400-1600 wed: - 1400-1600 thu: - 1400-1600 fri: - 1400-1600 sat: ...
Add email address back in and remove outdated unbookable slots
Add email address back in and remove outdated unbookable slots
YAML
mit
ministryofjustice/prison-visits-2,ministryofjustice/prison-visits-2,ministryofjustice/prison-visits-2,ministryofjustice/prison-visits-2
yaml
## Code Before: --- name: Rochester nomis_id: RCI address: |- 1 Fort Road Rochester Kent postcode: ME1 3QS email_address: phone_no: 01634 803100 enabled: true private: false closed: false recurring: tue: - 1400-1600 wed: - 1400-1600 thu: - 1400-1600 fri: - 1400-1600 sat: - 0900-1100 - 1345-...
fb259601acb0df090a14ec6130161ed7b1437292
src/txacme/newsfragments/59.feature
src/txacme/newsfragments/59.feature
txacme.challenges.LibcloudDNSResponder implements a dns-01 challenge responder using libcloud.
txacme.challenges.LibcloudDNSResponder implements a dns-01 challenge responder using libcloud. Installing txacme[libcloud] is necessary to pull in the dependencies for this.
Expand on news fragment a bit.
Expand on news fragment a bit.
Cucumber
mit
mithrandi/txacme
cucumber
## Code Before: txacme.challenges.LibcloudDNSResponder implements a dns-01 challenge responder using libcloud. ## Instruction: Expand on news fragment a bit. ## Code After: txacme.challenges.LibcloudDNSResponder implements a dns-01 challenge responder using libcloud. Installing txacme[libcloud] is necessary to pull i...
9802fa8fcb044df63378c7741c7c0de7272601b3
README.md
README.md
MaterialCraft is a free Buycraft / MinecraftMarket theme based on Google's Material Design. [Download](https://github.com/rodymol123/MaterialCraft/archive/v2.zip) ## Demo's [Buycraft] (http://rodymol123.github.io/MaterialCraft/preview_buycraft.html) [MinecraftMarket] (http://rodymol123.github.io/MaterialCraft/prev...
MaterialCraft is a free Buycraft / MinecraftMarket theme based on Google's Material Design. [Download](https://github.com/rodymol123/MaterialCraft/archive/v2.zip) ## Demo's ### Standard edition [Buycraft] (http://rodymol123.github.io/MaterialCraft/preview_buycraft.html) [MinecraftMarket] (http://rodymol123.github....
Add 'dark' theme demo links
Add 'dark' theme demo links
Markdown
mit
rodymol123/MaterialCraft,rodymol123/MaterialCraft
markdown
## Code Before: MaterialCraft is a free Buycraft / MinecraftMarket theme based on Google's Material Design. [Download](https://github.com/rodymol123/MaterialCraft/archive/v2.zip) ## Demo's [Buycraft] (http://rodymol123.github.io/MaterialCraft/preview_buycraft.html) [MinecraftMarket] (http://rodymol123.github.io/Ma...
e1571fb04098fd584304646cf34cd601ac1079d7
README.md
README.md
Generic Bloom Filter implementation in C# Example usage: ```C# //standard usage using SHA1 hashing using (var bf = new BloomFilter<string>(MaxItems: 1000, FalsePositiveProbability: .001)) { //add an item to the filter bf.Add("My Text"); //checking for existence in the filter bool b; b = bf.Contain...
```C# //standard usage using SHA1 hashing using (var bf = new BloomFilter<string>(MaxItems: 1000, FalsePositiveProbability: .001)) { //add an item to the filter bf.Add("My Text"); //checking for existence in the filter bool b; b = bf.Contains("My Text"); //true b = bf.Contains("Never been seen ...
Add implementation notes on the readme
Add implementation notes on the readme
Markdown
mit
bhannan/csharp-bloom-filter
markdown
## Code Before: Generic Bloom Filter implementation in C# Example usage: ```C# //standard usage using SHA1 hashing using (var bf = new BloomFilter<string>(MaxItems: 1000, FalsePositiveProbability: .001)) { //add an item to the filter bf.Add("My Text"); //checking for existence in the filter bool b; ...
b8e900c83697226d9343c6f323d46c2d4b01b06b
vscode/settings.json
vscode/settings.json
{ "workbench.colorTheme": "One Dark Pro Vivid", "workbench.iconTheme": "vscode-icons", "files.autoSave": "onWindowChange", "python.jediEnabled": false, "python.formatting.provider": "black", "python.analysis.disabled": [ "unresolved-import", "use-before-def" ], "editor.fo...
{ "workbench.colorTheme": "One Dark Pro Vivid", "workbench.iconTheme": "vscode-icons", "files.autoSave": "onWindowChange", "python.jediEnabled": false, "python.formatting.provider": "black", "python.analysis.disabled": [ "unresolved-import", "use-before-def" ], "editor.fo...
Remove resource lint from Kubernetes extension
Remove resource lint from Kubernetes extension
JSON
mit
davidgasquez/dotfiles
json
## Code Before: { "workbench.colorTheme": "One Dark Pro Vivid", "workbench.iconTheme": "vscode-icons", "files.autoSave": "onWindowChange", "python.jediEnabled": false, "python.formatting.provider": "black", "python.analysis.disabled": [ "unresolved-import", "use-before-def" ]...
ad37b36b40b9e59b380049855012b30f1c5c1a28
scripts/master/optional_arguments.py
scripts/master/optional_arguments.py
"""Utility classes to enhance process.properties.Properties usefulness.""" from buildbot.process.properties import WithProperties class ListProperties(WithProperties): """Act like a list but skip over items that are None. This class doesn't use WithProperties methods but inherits from it since it is used as...
"""Utility classes to enhance process.properties.Properties usefulness.""" from buildbot.process.properties import WithProperties class ListProperties(WithProperties): """Act like a list but skip over items that are None. This class doesn't use WithProperties methods but inherits from it since it is used as...
Fix ListProperties to be compatible with buildbot 0.8.4p1.
Fix ListProperties to be compatible with buildbot 0.8.4p1. The duplicated code will be removed once 0.7.12 is removed. Review URL: http://codereview.chromium.org/7193037 git-svn-id: 239fca9b83025a0b6f823aeeca02ba5be3d9fd76@91477 0039d316-1c4b-4281-b951-d872f2087c98
Python
bsd-3-clause
eunchong/build,eunchong/build,eunchong/build,eunchong/build
python
## Code Before: """Utility classes to enhance process.properties.Properties usefulness.""" from buildbot.process.properties import WithProperties class ListProperties(WithProperties): """Act like a list but skip over items that are None. This class doesn't use WithProperties methods but inherits from it since...
61bbc5697df7e7d9186618219d390a13069b0d98
package.json
package.json
{ "name": "easy-react-native", "version": "1.1.11", "description": "A combination of store and router to make react-native app easy.", "main": "src/EasyReactNative.js", "contributors": [ { "name": "Jimmy-YMJ", "email": "ddmingmingyang@gmail.com" } ], "repository": { "type": "git", ...
{ "name": "easy-react-native", "version": "1.1.11", "description": "A combination of store and router to make react-native app easy.", "main": "src/EasyReactNative.js", "contributors": [ { "name": "Jimmy-YMJ", "email": "ddmingmingyang@gmail.com" } ], "repository": { "type": "git", ...
Change dependencies type of react and react-native to peerDependencies
Change dependencies type of react and react-native to peerDependencies
JSON
mit
Jimmy-YMJ/easy-react-native
json
## Code Before: { "name": "easy-react-native", "version": "1.1.11", "description": "A combination of store and router to make react-native app easy.", "main": "src/EasyReactNative.js", "contributors": [ { "name": "Jimmy-YMJ", "email": "ddmingmingyang@gmail.com" } ], "repository": { ...
3fc8296f7cc7c3afa399c41037a782f1d1e3e496
ckanext/requestdata/templates/requestdata/my_requested_data.html
ckanext/requestdata/templates/requestdata/my_requested_data.html
{% extends 'user/read.html' %} {% block subtitle %}{{ _('My Requested Data') }} - {{ super() }}{% endblock %} {% block primary_content_inner %} {% snippet 'requestdata/snippets/section_base.html', state='new', title='New', requests=requests_new %} {% snippet 'requestdata/snippets/section_base.html', state='open',...
{% extends 'user/read.html' %} {% block subtitle %}{{ _('My Requested Data') }} - {{ super() }}{% endblock %} {% block primary_content_inner %} {% snippet 'requestdata/snippets/section_base.html', state='new', title='New', requests=requests_new %} {% snippet 'requestdata/snippets/section_base.html', state='open',...
Add alert for request message
Add alert for request message
HTML
agpl-3.0
ViderumGlobal/ckanext-requestdata,ViderumGlobal/ckanext-requestdata,ViderumGlobal/ckanext-requestdata,ViderumGlobal/ckanext-requestdata
html
## Code Before: {% extends 'user/read.html' %} {% block subtitle %}{{ _('My Requested Data') }} - {{ super() }}{% endblock %} {% block primary_content_inner %} {% snippet 'requestdata/snippets/section_base.html', state='new', title='New', requests=requests_new %} {% snippet 'requestdata/snippets/section_base.html...
8b1db949ac83b90ac634b4fc0f75ad0d35c51c2b
k8s/deployment.yaml
k8s/deployment.yaml
apiVersion: apps/v1 kind: Deployment metadata: name: isitup-org spec: selector: matchLabels: app.kubernetes.io/name: isitup-org app.kubernetes.io/part-of: isitup-org replicas: 2 strategy: type: RollingUpdate rollingUpdate: maxUnavailable: 1 revisionHistoryLimit: 1 template: ...
apiVersion: apps/v1 kind: Deployment metadata: name: isitup-org spec: selector: matchLabels: app.kubernetes.io/name: isitup-org app.kubernetes.io/part-of: isitup-org replicas: 2 strategy: type: RollingUpdate rollingUpdate: maxUnavailable: 1 revisionHistoryLimit: 1 template: ...
Use the correct label name for pod affinity
Use the correct label name for pod affinity
YAML
mit
sjparkinson/isitup.org,sjparkinson/isitup.org
yaml
## Code Before: apiVersion: apps/v1 kind: Deployment metadata: name: isitup-org spec: selector: matchLabels: app.kubernetes.io/name: isitup-org app.kubernetes.io/part-of: isitup-org replicas: 2 strategy: type: RollingUpdate rollingUpdate: maxUnavailable: 1 revisionHistoryLimit: 1...
2646c0301f4da5eb5961587cd145b1571557725d
tests/capmetrics.ini
tests/capmetrics.ini
[capmetrics] enginge_url=sqlite:///:memory: worksheet_names=["Ridership by Route Weekday", "Ridership by Route Saturday", "Ridership by Route Sunday", "Riders per Hour Weekday", "Riders Hour Saturday", "Riders per Hour Sunday"]
[capmetrics] enginge_url=sqlite:///:memory: daily_ridership_worksheets=["Ridership by Route Weekday", "Ridership by Route Saturday", "Ridership by Route Sunday"] hourly_ridership_worksheets=["Riders per Hour Weekday", "Riders Hour Saturday", "Riders per Hour Sunday"]
Break up worksheet names into hourly and daily entries.
Break up worksheet names into hourly and daily entries.
INI
mit
jga/capmetrics-etl,jga/capmetrics-etl
ini
## Code Before: [capmetrics] enginge_url=sqlite:///:memory: worksheet_names=["Ridership by Route Weekday", "Ridership by Route Saturday", "Ridership by Route Sunday", "Riders per Hour Weekday", "Riders Hour Saturday", "Riders per Hour Sunday"] ## Instruction: Break up worksheet names into hourly ...
c4083f8e755c4041521a4eb86c53b37afb763650
React-Weather/server.js
React-Weather/server.js
var express = require('express'); // Create our app var app = express(); const PORT = process.env.PORT || 3100; app.use(function (req, resp, next) { if(req.headers['x-forwarded-proto'] === 'http') { next; } else { resp.redirect('http://' + req.hostname + req.url) } }); app.use(express.static('pu...
var express = require('express'); // Create our app var app = express(); const PORT = process.env.PORT || 3100; app.use(function (req, resp, next) { if(req.headers['x-forwarded-proto'] === 'https') { resp.redirect('http://' + req.hostname + req.url) } else { next(); } }); app.use(express.static(...
Fix Heroku re-direct for localhost
Fix Heroku re-direct for localhost
JavaScript
mit
JulianNicholls/Complete-React-Web-App,JulianNicholls/Complete-React-Web-App
javascript
## Code Before: var express = require('express'); // Create our app var app = express(); const PORT = process.env.PORT || 3100; app.use(function (req, resp, next) { if(req.headers['x-forwarded-proto'] === 'http') { next; } else { resp.redirect('http://' + req.hostname + req.url) } }); app.use(ex...
a3344d1a3aef9d8c1171899fcd34486a7038a984
src/test/ui/variance-iterators-in-libcore.rs
src/test/ui/variance-iterators-in-libcore.rs
// run-pass #![allow(warnings)] use std::iter::Zip; fn zip_covariant<'a, A, B>(iter: Zip<&'static A, &'static B>) -> Zip<&'a A, &'a B> { iter } fn main() { }
// run-pass #![allow(dead_code)] use std::iter::{Fuse, Zip}; fn fuse_covariant<'a, I>(iter: Fuse<&'static I>) -> Fuse<&'a I> { iter } fn zip_covariant<'a, A, B>(iter: Zip<&'static A, &'static B>) -> Zip<&'a A, &'a B> { iter } fn main() { }
Add a test to ensure Fuse stays covariant
Add a test to ensure Fuse stays covariant
Rust
apache-2.0
aidancully/rust,graydon/rust,graydon/rust,graydon/rust,aidancully/rust,graydon/rust,graydon/rust,aidancully/rust,graydon/rust,aidancully/rust,aidancully/rust,aidancully/rust
rust
## Code Before: // run-pass #![allow(warnings)] use std::iter::Zip; fn zip_covariant<'a, A, B>(iter: Zip<&'static A, &'static B>) -> Zip<&'a A, &'a B> { iter } fn main() { } ## Instruction: Add a test to ensure Fuse stays covariant ## Code After: // run-pass #![allow(dead_code)] use std::iter::{Fuse, Zip}; fn ...
06c237cdf5535b5136ddf61149dc7632a4013e67
appveyor.yml
appveyor.yml
clone_folder: "c:\\WORK" environment: global: CABOPTS: "--store-dir=C:\\SR --http-transport=plain-http --enable-tests --enable-benchmarks" matrix: - GHCVER: "8.10.2.2" - GHCVER: "8.8.4.1" - GHCVER: "8.6.5" - GHCVER: "8.4.4" - GHCVER: "8.2.2" - GHCVER: "8.0.2.2" - GHCVER: "7.10.3.2"...
clone_folder: "c:\\WORK" environment: global: CABOPTS: "--store-dir=C:\\SR --http-transport=plain-http --enable-tests --enable-benchmarks" matrix: - GHCVER: "8.10.2.2" - GHCVER: "8.8.4.1" - GHCVER: "8.6.5" - GHCVER: "8.4.4" - GHCVER: "8.2.2" - GHCVER: "8.0.2.2" - GHCVER: "7.10.3.2"...
Work around Windows install service bug
AppVeyor: Work around Windows install service bug As suggested in https://github.com/Mistuke/GhcChoco/issues/10#issuecomment-730441768.
YAML
bsd-3-clause
RyanGlScott/text-show
yaml
## Code Before: clone_folder: "c:\\WORK" environment: global: CABOPTS: "--store-dir=C:\\SR --http-transport=plain-http --enable-tests --enable-benchmarks" matrix: - GHCVER: "8.10.2.2" - GHCVER: "8.8.4.1" - GHCVER: "8.6.5" - GHCVER: "8.4.4" - GHCVER: "8.2.2" - GHCVER: "8.0.2.2" - GH...
2be95688dc8ec85382b83f55db9761705b4ef4b5
src/ca/ubc/ece/salt/sdjsb/analysis/learning/apis/TopLevelAPI.java
src/ca/ubc/ece/salt/sdjsb/analysis/learning/apis/TopLevelAPI.java
package ca.ubc.ece.salt.sdjsb.analysis.learning.apis; import java.util.List; import ca.ubc.ece.salt.sdjsb.analysis.learning.apis.Keyword.KeywordType; /** * Defines the default JavaScript API and stores all Node.js packages that * we want to include. */ public class TopLevelAPI extends AbstractAPI { protected Li...
package ca.ubc.ece.salt.sdjsb.analysis.learning.apis; import java.util.List; import ca.ubc.ece.salt.sdjsb.analysis.learning.apis.Keyword.KeywordType; /** * Defines the default JavaScript API and stores all Node.js packages that * we want to include. */ public class TopLevelAPI extends AbstractAPI { protected Lis...
Add getter for packages on AbstractAPI
Add getter for packages on AbstractAPI
Java
apache-2.0
saltlab/Pangor,saltlab/Pangor,qhanam/Pangor,saltlab/Pangor,qhanam/Pangor,qhanam/Pangor,qhanam/Pangor,saltlab/Pangor,saltlab/Pangor,qhanam/Pangor
java
## Code Before: package ca.ubc.ece.salt.sdjsb.analysis.learning.apis; import java.util.List; import ca.ubc.ece.salt.sdjsb.analysis.learning.apis.Keyword.KeywordType; /** * Defines the default JavaScript API and stores all Node.js packages that * we want to include. */ public class TopLevelAPI extends AbstractAPI ...
f5bd356d0bff1c55433ad460f196316f4362370e
src/L0/FreshNames.hs
src/L0/FreshNames.hs
module L0.FreshNames ( NameSource , newNameSource , newNameSourceForProg , newName ) where import L0.AbSyn import qualified Data.Set as S data NameSource = NameSource Int (S.Set String) -- | Create a new 'NameSource' that will never produce any of the -- names in the given list. newNameSource :: [String] ...
module L0.FreshNames ( NameSource , newNameSource , newNameSourceForProg , newName ) where import L0.AbSyn import Data.Char (isDigit) import qualified Data.Set as S data NameSource = NameSource Int (S.Set String) -- | Chop off terminating underscore followed by numbers. baseName :: String -> String baseNa...
Make renamer not create crazy long names.
Make renamer not create crazy long names.
Haskell
isc
ihc/futhark,HIPERFIT/futhark,diku-dk/futhark,mrakgr/futhark,mrakgr/futhark,HIPERFIT/futhark,HIPERFIT/futhark,diku-dk/futhark,diku-dk/futhark,ihc/futhark,CulpaBS/wbBach,ihc/futhark,diku-dk/futhark,mrakgr/futhark,diku-dk/futhark
haskell
## Code Before: module L0.FreshNames ( NameSource , newNameSource , newNameSourceForProg , newName ) where import L0.AbSyn import qualified Data.Set as S data NameSource = NameSource Int (S.Set String) -- | Create a new 'NameSource' that will never produce any of the -- names in the given list. newNameSou...
78911315e388105ce24da844f345284c017b2d9b
examples/simple/project.clj
examples/simple/project.clj
(defproject simple "lein-git-inject/version" :dependencies [[org.clojure/clojure "1.10.1"] [org.clojure/clojurescript "1.10.520" :exclusions [com.google.javascript/closure-compiler-unshaded org.clojure/google-closure-library]] [...
(defproject simple "lein-git-inject/version" :dependencies [[org.clojure/clojure "1.10.1"] [org.clojure/clojurescript "1.10.520" :exclusions [com.google.javascript/closure-compiler-unshaded org.clojure/google-closure-library ...
Add simple example org.clojure/google-closure-library-third-party exclusion
Add simple example org.clojure/google-closure-library-third-party exclusion
Clojure
mit
Day8/re-frame,Day8/re-frame,Day8/re-frame
clojure
## Code Before: (defproject simple "lein-git-inject/version" :dependencies [[org.clojure/clojure "1.10.1"] [org.clojure/clojurescript "1.10.520" :exclusions [com.google.javascript/closure-compiler-unshaded org.clojure/google-closure-library]] ...
0f92c927ee36c9dbdda399402123a10c677bff55
src/omPrefixes.js
src/omPrefixes.js
define(function() { /** * If the browsers follow the spec, then they would expose vendor-specific style as: * elem.style.WebkitBorderRadius * instead of something like the following, which would be technically incorrect: * elem.style.webkitBorderRadius * Webkit ghosts their properties in lowercase...
define(function() { /** * If the browsers follow the spec, then they would expose vendor-specific styles as: * elem.style.WebkitBorderRadius * instead of something like the following (which is technically incorrect): * elem.style.webkitBorderRadius * WebKit ghosts their properties in lowercase but...
Fix minor typos in comment block
Fix minor typos in comment block
JavaScript
mit
Modernizr/Modernizr,Modernizr/Modernizr
javascript
## Code Before: define(function() { /** * If the browsers follow the spec, then they would expose vendor-specific style as: * elem.style.WebkitBorderRadius * instead of something like the following, which would be technically incorrect: * elem.style.webkitBorderRadius * Webkit ghosts their propert...
df677835c5c9e0ba79dcb2721b014c1ed6ade626
Common/Wrapper/Resources/TraktManager+Resources.swift
Common/Wrapper/Resources/TraktManager+Resources.swift
// // TraktManager+Resources.swift // TraktKit // // Created by Maxamilian Litteral on 6/14/21. // Copyright © 2021 Maximilian Litteral. All rights reserved. // import Foundation @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *) extension TraktManager { func show(id: CustomStringConvertible) -> Sho...
// // TraktManager+Resources.swift // TraktKit // // Created by Maxamilian Litteral on 6/14/21. // Copyright © 2021 Maximilian Litteral. All rights reserved. // import Foundation @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *) extension TraktManager { public func show(id: CustomStringConvertible)...
Mark async resources as public
Mark async resources as public
Swift
mit
MaxHasADHD/TraktKit,MaxHasADHD/TraktKit
swift
## Code Before: // // TraktManager+Resources.swift // TraktKit // // Created by Maxamilian Litteral on 6/14/21. // Copyright © 2021 Maximilian Litteral. All rights reserved. // import Foundation @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *) extension TraktManager { func show(id: CustomStringCon...
dc975d012afd4254ded81c6ceaffd27ce9924004
docs/Examples.md
docs/Examples.md
```yaml build: run: unit: rake spec integration: rake integration ``` ![dotci setup](screenshots/script-parallized.png) ###Build Environment Configuration #### non-docker ruby build parallelized across two language versions ```yaml environment: language: ruby language_versions: - 1.8.7 ...
```yaml build: run: unit: rake spec integration: rake integration ``` ![dotci setup](screenshots/script-parallized.png) ###Build Environment Configuration #### non-docker ruby build parallelized across two language versions ```yaml environment: language: ruby language_versions: - 1.8.7 ...
Use groovy templating not erb
Use groovy templating not erb
Markdown
mit
DotCi/DotCi,bschmeck/DotCi,suryagaddipati/DotCi,TheJumpCloud/DotCi,dimacus/DotCi,michaelstandley/DotCi,bschmeck/DotCi,DotCi/DotCi,bschmeck/DotCi,groupon/DotCi,erikdw/DotCi,groupon/DotCi,TheJumpCloud/DotCi,groupon/DotCi,erikdw/DotCi,dimacus/DotCi,TheJumpCloud/DotCi,michaelstandley/DotCi,jkrems/DotCi,jkrems/DotCi,jkrems/...
markdown
## Code Before: ```yaml build: run: unit: rake spec integration: rake integration ``` ![dotci setup](screenshots/script-parallized.png) ###Build Environment Configuration #### non-docker ruby build parallelized across two language versions ```yaml environment: language: ruby language_versions: ...
66e66817040d96ee243ba7fbdde6d4f4e40f4a2d
src/M6Web/Bundle/DaemonBundle/Resources/config/services.yml
src/M6Web/Bundle/DaemonBundle/Resources/config/services.yml
services: m6_daemon_bundle.event_loop: class: 'React\EventLoop\LoopInterface' factory: ['React\EventLoop\Factory', 'create']
services: m6_daemon_bundle.event_loop: class: 'React\EventLoop\LoopInterface' factory: ['React\EventLoop\Factory', 'create'] public: true
Make service public for sf4 compatibility
Make service public for sf4 compatibility
YAML
mit
M6Web/DaemonBundle
yaml
## Code Before: services: m6_daemon_bundle.event_loop: class: 'React\EventLoop\LoopInterface' factory: ['React\EventLoop\Factory', 'create'] ## Instruction: Make service public for sf4 compatibility ## Code After: services: m6_daemon_bundle.event_loop: class: 'React\EventLoop\LoopInter...
352bcb22ec5b75d554a307f9b6c4c8a98b89fb38
src/modelloader/vertexbuffer.cpp
src/modelloader/vertexbuffer.cpp
using namespace modelloader; VertexBuffer::VertexBuffer(VertexBuffer&& other) : vBO{other.vBO}, iBO{other.iBO}, nBO{other.nBO}, numIndices{other.numIndices}, extremes{other.extremes}, bounds(std::move(other.bounds)){ } VertexBuffer::VertexBuffer(GLuint myVBO, GLuint myIBO, GLuint myNBO, unsigned int myNumIndices, st...
using namespace modelloader; VertexBuffer::VertexBuffer(VertexBuffer&& other) : vBO{other.vBO}, iBO{other.iBO}, nBO{other.nBO}, vao(other.vao), numIndices{other.numIndices}, extremes{other.extremes}, bounds(std::move(other.bounds)){ } VertexBuffer::VertexBuffer(GLuint myVBO, GLuint myIBO, GLuint myNBO, unsigned int ...
Fix VertexBuffer move-constructor, vao was not copied.
Fix VertexBuffer move-constructor, vao was not copied.
C++
apache-2.0
maruno/collisionsdemo,maruno/collisionsdemo
c++
## Code Before: using namespace modelloader; VertexBuffer::VertexBuffer(VertexBuffer&& other) : vBO{other.vBO}, iBO{other.iBO}, nBO{other.nBO}, numIndices{other.numIndices}, extremes{other.extremes}, bounds(std::move(other.bounds)){ } VertexBuffer::VertexBuffer(GLuint myVBO, GLuint myIBO, GLuint myNBO, unsigned int ...
1367a1340087dfed2c6d38ed33c85489802d77b8
openstackdocstheme/theme/openstackdocs/sidebartoc.html
openstackdocstheme/theme/openstackdocs/sidebartoc.html
<div class="col-lg-3 col-md-4 col-sm-4 col-lg-pull-9 col-md-pull-8 col-sm-pull-8 docs-sidebar"> <div class="search-icon show"> <i class="fa fa-search"></i> Search </div> <div class="btn-group docs-sidebar-releases"> <button onclick="location.href='/'" class="btn docs-sidebar-home" data-toggle="tooltip" da...
<div class="col-lg-3 col-md-4 col-sm-4 col-lg-pull-9 col-md-pull-8 col-sm-pull-8 docs-sidebar"> <div class="btn-group docs-sidebar-releases"> <button onclick="location.href='/'" class="btn docs-sidebar-home" data-toggle="tooltip" data-placement="top" title="Docs Home"><i class="fa fa-arrow-circle-o-left"></i></bu...
Remove duplicate search field from the left sidebar
Remove duplicate search field from the left sidebar The search field is already part of the header. Change-Id: I32085e343ff20095a217a8c13ebe95b1addcdb90
HTML
apache-2.0
openstack/openstackdocstheme,openstack/openstackdocstheme,openstack/openstackdocstheme,openstack/openstackdocstheme
html
## Code Before: <div class="col-lg-3 col-md-4 col-sm-4 col-lg-pull-9 col-md-pull-8 col-sm-pull-8 docs-sidebar"> <div class="search-icon show"> <i class="fa fa-search"></i> Search </div> <div class="btn-group docs-sidebar-releases"> <button onclick="location.href='/'" class="btn docs-sidebar-home" data-tog...
12cb2971396fe0e3e330050de578864d73951140
.travis.yml
.travis.yml
language: objective-c osx_image: xcode7.2 xcode_project: xDripG5.xcodeproj xcode_scheme: xDripG5 xcode_sdk: iphonesimulator9.2 env: global: - FRAMEWORK_NAME=xDripG5 before_install: - brew update - brew install carthage before_script: # bootstrap the dependencies for the project # you can remove if you don...
language: objective-c osx_image: xcode7.2 xcode_project: xDripG5.xcodeproj xcode_scheme: xDripG5 xcode_sdk: iphonesimulator9.2 env: global: - FRAMEWORK_NAME=xDripG5 before_install: - brew update - brew install carthage before_script: - carthage bootstrap before_deploy: - carthage build --no-skip-current ...
Build and lint for CocoaPods
Build and lint for CocoaPods
YAML
mit
loudnate/xDripG5,loudnate/xDripG5
yaml
## Code Before: language: objective-c osx_image: xcode7.2 xcode_project: xDripG5.xcodeproj xcode_scheme: xDripG5 xcode_sdk: iphonesimulator9.2 env: global: - FRAMEWORK_NAME=xDripG5 before_install: - brew update - brew install carthage before_script: # bootstrap the dependencies for the project # you can r...
24d988e0d7f3d7d78649ce487c3c353f8ca7d7d6
plugins/src/kg/apc/jmeter/modifiers/AnchorModifierGui.java
plugins/src/kg/apc/jmeter/modifiers/AnchorModifierGui.java
package kg.apc.jmeter.modifiers; import java.awt.BorderLayout; import kg.apc.jmeter.JMeterPluginsUtils; import org.apache.jmeter.processor.gui.AbstractPreProcessorGui; import org.apache.jmeter.testelement.TestElement; public class AnchorModifierGui extends AbstractPreProcessorGui { private static final String WI...
package kg.apc.jmeter.modifiers; import java.awt.BorderLayout; import kg.apc.jmeter.JMeterPluginsUtils; import org.apache.jmeter.processor.gui.AbstractPreProcessorGui; import org.apache.jmeter.testelement.TestElement; public class AnchorModifierGui extends AbstractPreProcessorGui { private static final String WI...
Fix help link not displayed
Fix help link not displayed
Java
apache-2.0
Sausageo/jmeter-plugins,ptrd/jmeter-plugins,ptrd/jmeter-plugins,ptrd/jmeter-plugins,Sausageo/jmeter-plugins,Sausageo/jmeter-plugins,ptrd/jmeter-plugins,Sausageo/jmeter-plugins,ptrd/jmeter-plugins,Sausageo/jmeter-plugins
java
## Code Before: package kg.apc.jmeter.modifiers; import java.awt.BorderLayout; import kg.apc.jmeter.JMeterPluginsUtils; import org.apache.jmeter.processor.gui.AbstractPreProcessorGui; import org.apache.jmeter.testelement.TestElement; public class AnchorModifierGui extends AbstractPreProcessorGui { private static...
71139c81a2e1700d299c3a891e055861fc64f35e
recipes/java.rb
recipes/java.rb
dmg_package "Java 7 Update 13" do source "https://s3.amazonaws.com/boxen-downloads/java/jre-7u13.dmg" action :install type "pkg" package_id "com.oracle.jre" end dmg_package "JDK 7 Update 13" do source "https://s3.amazonaws.com/boxen-downloads/java/jdk-7u13.dmg" action :install type "pkg" package_id "co...
dmg_package "Java 7 Update 15" do source "http://javadl.sun.com/webapps/download/AutoDL?BundleId=74775" action :install type "pkg" package_id "com.oracle.jre" end dmg_package "JDK 7 Update 13" do source "https://s3.amazonaws.com/boxen-downloads/java/jdk-7u13.dmg" action :install type "pkg" package_id "...
Update Java JRE to _15
Update Java JRE to _15
Ruby
apache-2.0
lsvt-casey/chef-applications,mAAdhaTTah/chef-applications,lsvt-casey/chef-applications,lsvt-casey/chef-applications,kitchenplan/chef-applications,mAAdhaTTah/chef-applications,kitchenplan/chef-applications,kitchenplan/chef-applications
ruby
## Code Before: dmg_package "Java 7 Update 13" do source "https://s3.amazonaws.com/boxen-downloads/java/jre-7u13.dmg" action :install type "pkg" package_id "com.oracle.jre" end dmg_package "JDK 7 Update 13" do source "https://s3.amazonaws.com/boxen-downloads/java/jdk-7u13.dmg" action :install type "pkg" ...
8cc9016bc3cc976a474ba6a811e3ef9532111ade
lib/tent-statusapp/views/application.slim
lib/tent-statusapp/views/application.slim
doctype html head meta name="viewport" content="width=device-width, initial-scale=1.0" == csrf_meta_tag(:name => 'csrf-token') link rel="stylesheet" type="text/css" href=asset_path("application.css") body .navbar.navbar-static-top .navbar-inner .brand a href=full_path('/') StatusApp -...
doctype html head meta name="viewport" content="width=device-width, initial-scale=1.0" == csrf_meta_tag(:name => 'csrf-token') link rel="stylesheet" type="text/css" href=asset_path("application.css") body .navbar.navbar-static-top .navbar-inner .brand a href=full_path('/') StatusApp -...
Fix current_entity when no current_user
Fix current_entity when no current_user
Slim
bsd-3-clause
tent/tent-status,tent/tent-status
slim
## Code Before: doctype html head meta name="viewport" content="width=device-width, initial-scale=1.0" == csrf_meta_tag(:name => 'csrf-token') link rel="stylesheet" type="text/css" href=asset_path("application.css") body .navbar.navbar-static-top .navbar-inner .brand a href=full_path('/') St...
d5997e505c06cf103f81825a5c8af3ea3a4ac128
_if.js
_if.js
'use strict'; var remove = require('dom-ext/node/#/remove') , _if = require('observable-value/if') , validate = require('./lib/validate-injection') , isArray = Array.isArray, unbind; unbind = function (data) { if (data == null) return data; if (data.parentNode) remove.call(data); else if (isArray(dat...
'use strict'; var remove = require('dom-ext/node/#/remove') , isDocumentFragment = require('dom-ext/document-fragment/is-document-fragment') , _if = require('observable-value/if') , validate = require('./lib/validate-injection') , isArray = Array.isArray, unbind; unbind =...
Remove element only if in document fragment
Remove element only if in document fragment
JavaScript
mit
medikoo/domjs-ext
javascript
## Code Before: 'use strict'; var remove = require('dom-ext/node/#/remove') , _if = require('observable-value/if') , validate = require('./lib/validate-injection') , isArray = Array.isArray, unbind; unbind = function (data) { if (data == null) return data; if (data.parentNode) remove.call(data); else...
9eccb86b6f34abd145ebb9b107787953a8bc0adb
lib/utils/calculate-grid-points.ts
lib/utils/calculate-grid-points.ts
import lonlat from '@conveyal/lonlat' import {PROJECTION_ZOOM_LEVEL} from 'lib/constants' export default function calculateGridPoints( bounds: CL.Bounds, zoom = PROJECTION_ZOOM_LEVEL ): number { const topLeft = lonlat.toPixel([bounds.west, bounds.north], zoom) const bottomRight = lonlat.toPixel([bounds.east, ...
import lonlat from '@conveyal/lonlat' import {PROJECTION_ZOOM_LEVEL} from 'lib/constants' /** * The grid extent is computed from the points. If the cell number for the right edge of the grid is rounded * down, some points could fall outside the grid. `lonlat.toPixel` and `lonlat.toPixel` naturally truncate down, wh...
Add 1 to width and height
Add 1 to width and height Match what's being done on the backend
TypeScript
mit
conveyal/analysis-ui,conveyal/analysis-ui,conveyal/analysis-ui
typescript
## Code Before: import lonlat from '@conveyal/lonlat' import {PROJECTION_ZOOM_LEVEL} from 'lib/constants' export default function calculateGridPoints( bounds: CL.Bounds, zoom = PROJECTION_ZOOM_LEVEL ): number { const topLeft = lonlat.toPixel([bounds.west, bounds.north], zoom) const bottomRight = lonlat.toPixe...
d3cc9734010f0953a028770c413cf77530206c96
.travis.yml
.travis.yml
language: python python: - "2.7" addons: apt: packages: - swig env: matrix: - TOXENV=py27-dj15 - TOXENV=py27-dj16 - TOXENV=py27-dj17 - TOXENV=py27-dj18 install: - pip install tox script: tox
sudo: false language: python python: - "2.7" addons: apt: packages: - swig env: matrix: - TOXENV=py27-dj15 - TOXENV=py27-dj16 - TOXENV=py27-dj17 - TOXENV=py27-dj18 install: - pip install tox script: tox
Upgrade to newer Travis infrastructure
Upgrade to newer Travis infrastructure
YAML
mit
mobify/dj-saml-idp,mobify/dj-saml-idp,mobify/dj-saml-idp
yaml
## Code Before: language: python python: - "2.7" addons: apt: packages: - swig env: matrix: - TOXENV=py27-dj15 - TOXENV=py27-dj16 - TOXENV=py27-dj17 - TOXENV=py27-dj18 install: - pip install tox script: tox ## Instruction: Upgrade to newer Travis infrastructure #...
153f96730c256d5f1fa1fa2d7edb1246f4276f6b
assets/javascripts/spoiler_alert_main.js
assets/javascripts/spoiler_alert_main.js
(function() { Discourse.addInitializer(function () { var applySpoilers = function($post) { // text $('.spoiler:not(:has(img))', $post).removeClass('spoiler') .spoilText(); // images $('.spoiler:has(img)', $post).removeClass('spoiler') ...
(function() { Discourse.addInitializer(function () { var applySpoilers = function($post) { // text $('.spoiler:not(:has(img))', $post).removeClass('spoiler') .spoilText(); // images $('.spoiler:has(img)', $post).removeClass('spoiler') ...
Apply spoilers to the entire user activity stream.
Apply spoilers to the entire user activity stream.
JavaScript
mit
discourse/discourse-spoiler-alert,cyberkoi/discourse-spoiler-alert,cyberkoi/discourse-spoiler-alert,discourse/discourse-spoiler-alert
javascript
## Code Before: (function() { Discourse.addInitializer(function () { var applySpoilers = function($post) { // text $('.spoiler:not(:has(img))', $post).removeClass('spoiler') .spoilText(); // images $('.spoiler:has(img)', $post).removeClass('spoile...
f8288562f567a7a66154fffdfa91726ff658b525
app/User.php
app/User.php
<?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable { use Notifiable; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'first_name', ...
<?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable { use Notifiable; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'first_name', ...
Create relationship for users table
refactor(users): Create relationship for users table modifield: app/User.php see #124
PHP
mit
php-soft/laravel-marketplace-full-web,php-soft/laravel-marketplace-full-web
php
## Code Before: <?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable { use Notifiable; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ ...
259135772d70fa590d7c8aeb9263a3947741db98
gattaca/Model/Menu/MMenuItemProtocol.swift
gattaca/Model/Menu/MMenuItemProtocol.swift
import UIKit protocol MMenuItemProtocol { var icon:UIImage { get } var order:MMenu.Order { get } init(order:MMenu.Order) func controller(session:MSession) -> UIViewController }
import UIKit protocol MMenuItemProtocol { associatedtype V:ViewMain associatedtype M:Model<Self.V> associatedtype C:Controller<Self.V, Self.M> var icon:UIImage { get } var order:MMenu.Order { get } var controller:C.Type { get } init(order:MMenu.Order) }
Add associated types to protocol
Add associated types to protocol
Swift
mit
turingcorp/gattaca,turingcorp/gattaca
swift
## Code Before: import UIKit protocol MMenuItemProtocol { var icon:UIImage { get } var order:MMenu.Order { get } init(order:MMenu.Order) func controller(session:MSession) -> UIViewController } ## Instruction: Add associated types to protocol ## Code After: import UIKit protocol MMenuItemPr...
0dde9c80a59b8062c2ea70e716570a3947cd4eec
source/webserver.txt
source/webserver.txt
webserver.py written by Claude Pageau This is a stand alone web server. Please Note You will need at least two entries in a folder before the web server will display content. This web server can display other types of content but html files will be displayed full screen. Web pages with java...
webserver.py written by Claude Pageau This is a stand alone web server. Please Note You will need at least two entries in a folder before the web server will display content. This web server can display other types of content but html files will be displayed full screen. Web pages with java...
Revise for right panel BACK link navigation in browser
Revise for right panel BACK link navigation in browser
Text
mit
pageauc/pi-timolo,pageauc/pi-timolo
text
## Code Before: webserver.py written by Claude Pageau This is a stand alone web server. Please Note You will need at least two entries in a folder before the web server will display content. This web server can display other types of content but html files will be displayed full screen. Web...
7fffc1ed79f7c33d751aeb62c86de16979653262
config/translations/en/generate.plugin.ckeditorbutton.yml
config/translations/en/generate.plugin.ckeditorbutton.yml
description: 'Generate CKEditor button plugin.' help: 'The <info>generate:plugin:ckeditorbutton</info> command helps you generate a new CKEditor button plugin.' welcome: 'Welcome to the Drupal CKEditor Button Plugin generator' options: module: common.options.module class: 'Plugin class name' label: 'Plugin ...
description: 'Generate CKEditor button plugin.' help: 'The <info>generate:plugin:ckeditorbutton</info> command helps you generate a new CKEditor button plugin.' welcome: 'Welcome to the Drupal CKEditor Button Plugin generator' options: module: common.options.module class: 'Plugin class name' label: 'Plugin ...
Remove unused text for description prompt
Remove unused text for description prompt
YAML
mit
revagomes/DrupalConsole,revagomes/DrupalConsole,revagomes/DrupalConsole
yaml
## Code Before: description: 'Generate CKEditor button plugin.' help: 'The <info>generate:plugin:ckeditorbutton</info> command helps you generate a new CKEditor button plugin.' welcome: 'Welcome to the Drupal CKEditor Button Plugin generator' options: module: common.options.module class: 'Plugin class name' ...
591f707a76292e60e8fcd201aa9f8924d20057a3
dev-machine/roles/linux/tasks/apt_repos.yml
dev-machine/roles/linux/tasks/apt_repos.yml
--- - name: 'Ensure the /etc/apt/sources.list file contains ~nothing' become: true copy: dest: '/etc/apt/sources.list' content: | # This is a stub owner: 'root' group: 'root' mode: '0444' notify: 'linux_apt-get-update' - name: 'Add the base ubuntu repositories' become: true copy: ...
--- - name: 'Ensure the /etc/apt/sources.list file contains ~nothing' become: true copy: dest: '/etc/apt/sources.list' content: | # This is a stub owner: 'root' group: 'root' mode: '0444' notify: 'linux_apt-get-update' - name: 'Add the base ubuntu repositories' become: true copy: ...
Correct the Ubuntu default repo list
Correct the Ubuntu default repo list
YAML
mit
marvinpinto/kitchensink,marvinpinto/kitchensink,marvinpinto/kitchensink
yaml
## Code Before: --- - name: 'Ensure the /etc/apt/sources.list file contains ~nothing' become: true copy: dest: '/etc/apt/sources.list' content: | # This is a stub owner: 'root' group: 'root' mode: '0444' notify: 'linux_apt-get-update' - name: 'Add the base ubuntu repositories' become...
00a232ccc346a19e3ddcc97282099d67a5c154b1
_posts/2016-09-24-email-newsletter-signup.markdown
_posts/2016-09-24-email-newsletter-signup.markdown
--- layout: post title: "Sign up to the CSS mailing list!" date: 2016-09-24 13:06:00 +0100 categories: author: "Ross Gardiner" --- This year, we're starting a monthly(-ish) email newsletter. Find out about CSS events, news, trips and job postings. <a class="btn btn--dark" href="https://docs.google.com/a/cssbristol....
--- layout: post title: "Sign up to the CSS mailing list and WIN!" date: 2016-09-24 13:06:00 +0100 categories: author: "Ross Gardiner" --- This year, we're starting a monthly(-ish) email newsletter. Find out about CSS events, news, trips and job postings. ## I hear there are prizes? Yes - it's true! Win a Raspberr...
Add prizes to newsletter signup
Add prizes to newsletter signup
Markdown
mit
cssbristol/cssbristol.github.io,cssbristol/css-website-2015,cssbristol/cssbristol.github.io,cssbristol/cssbristol.github.io,cssbristol/cssbristol.github.io,cssbristol/cssbristol.github.io
markdown
## Code Before: --- layout: post title: "Sign up to the CSS mailing list!" date: 2016-09-24 13:06:00 +0100 categories: author: "Ross Gardiner" --- This year, we're starting a monthly(-ish) email newsletter. Find out about CSS events, news, trips and job postings. <a class="btn btn--dark" href="https://docs.google.c...
359cb51263ad1ebff047e292e2336970cf51cf64
client/admin/lib/views/stacks/editors/variableseditorview.coffee
client/admin/lib/views/stacks/editors/variableseditorview.coffee
BaseStackEditorView = require './basestackeditorview' module.exports = class VariablesEditorView extends BaseStackEditorView constructor: (options = {}, data) -> unless options.content options.content = """ # This is a YAML file which you can define # key-value pairs like; # ...
BaseStackEditorView = require './basestackeditorview' module.exports = class VariablesEditorView extends BaseStackEditorView constructor: (options = {}, data) -> unless options.content options.content = """ # Define custom variables here # You can define your custom variables, and use the...
Update yaml content with information.
VariablesEditorView: Update yaml content with information.
CoffeeScript
agpl-3.0
koding/koding,mertaytore/koding,acbodine/koding,sinan/koding,jack89129/koding,koding/koding,szkl/koding,kwagdy/koding-1,kwagdy/koding-1,kwagdy/koding-1,kwagdy/koding-1,mertaytore/koding,rjeczalik/koding,usirin/koding,jack89129/koding,rjeczalik/koding,cihangir/koding,drewsetski/koding,usirin/koding,andrewjcasal/koding,d...
coffeescript
## Code Before: BaseStackEditorView = require './basestackeditorview' module.exports = class VariablesEditorView extends BaseStackEditorView constructor: (options = {}, data) -> unless options.content options.content = """ # This is a YAML file which you can define # key-value pairs like;...
9aa1f6f75a44548337594551b852b94b1ff547d7
account_payment_purchase/views/purchase_order_view.xml
account_payment_purchase/views/purchase_order_view.xml
<?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2014 Akretion (http://www.akretion.com/) @author Alexis de Lattre <alexis.delattre@akretion.com> The licence is in the file __openerp__.py --> <openerp> <data> <record id="purchase_order_form" model="ir.ui.view"> <field name="name">account_pay...
<?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2014 Akretion (http://www.akretion.com/) @author Alexis de Lattre <alexis.delattre@akretion.com> The licence is in the file __openerp__.py --> <openerp> <data> <record id="purchase_order_form" model="ir.ui.view"> <field name="name">account_pay...
Add sale_ok and purchase_ok filters in partner/sale/purchase form views Use widget=selection for payment_mode_id fields Update demo data
Add sale_ok and purchase_ok filters in partner/sale/purchase form views Use widget=selection for payment_mode_id fields Update demo data
XML
agpl-3.0
OCA/bank-payment,OCA/bank-payment
xml
## Code Before: <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2014 Akretion (http://www.akretion.com/) @author Alexis de Lattre <alexis.delattre@akretion.com> The licence is in the file __openerp__.py --> <openerp> <data> <record id="purchase_order_form" model="ir.ui.view"> <field name="n...
6717365393dbc078e3ae4d5374e354eefe43c7ce
README.md
README.md
Helper classes that are useful for Unity projects I'll add helper classes that I often use in Unity projects ## Description ## Mass Set Tags Tool This tool simply sets the tags of all selected objects and their children. The class is `Scripts/EditorTools/Editor/MassSetTags.cs` and it can be accessed via `UnityHelpe...
Helper classes that are useful for Unity projects I'll add helper classes that I often use in Unity projects ## Description ## Mass Set Tags Tool This tool simply sets the tags of all selected objects and their children. The class is `Scripts/EditorTools/Editor/MassSetTags.cs` and it can be accessed via `UnityHelpe...
Add readme for singleton and component extension
Add readme for singleton and component extension
Markdown
mit
petereichinger/unity-helpers
markdown
## Code Before: Helper classes that are useful for Unity projects I'll add helper classes that I often use in Unity projects ## Description ## Mass Set Tags Tool This tool simply sets the tags of all selected objects and their children. The class is `Scripts/EditorTools/Editor/MassSetTags.cs` and it can be accessed...
bd88d35fdcb2242c8d6ad3c97adc58969fe82368
_posts/2016-08-02-dotnetbr.markdown
_posts/2016-08-02-dotnetbr.markdown
--- layout: post title: ".NET Brasil" categories: jekyll update link-telegram: https://telegram.me/dotnetbr --- Colaboração: Rafael Escobar (@nhanderu)
--- layout: post title: ".NET Brasil" categories: link-telegram: https://telegram.me/dotnetbr --- Colaboração: Rafael Escobar (@nhanderu)
Remove categorias do grupo de .NET.
Remove categorias do grupo de .NET.
Markdown
mit
listatelegram/listatelegram.github.io
markdown
## Code Before: --- layout: post title: ".NET Brasil" categories: jekyll update link-telegram: https://telegram.me/dotnetbr --- Colaboração: Rafael Escobar (@nhanderu) ## Instruction: Remove categorias do grupo de .NET. ## Code After: --- layout: post title: ".NET Brasil" categories: link-telegram: https://telegram...
3bdd62cc96e73cc547b15fb0cd785ad20e1e5fde
nbproject/project.xml
nbproject/project.xml
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://www.netbeans.org/ns/project/1"> <type>org.netbeans.modules.java.j2seproject</type> <configuration> <data xmlns="http://www.netbeans.org/ns/j2se-project/3"> <name>DMDirc</name> <minimum-ant-version>1.6.5</minimum-ant-ve...
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://www.netbeans.org/ns/project/1"> <type>org.netbeans.modules.java.j2seproject</type> <configuration> <data xmlns="http://www.netbeans.org/ns/j2se-project/3"> <name>DMDirc</name> <minimum-ant-version>1.6.5</minimum-ant-ve...
Add some random words to Netbeans' dictionary
Add some random words to Netbeans' dictionary Change-Id: I57d250db5445d73795ad0da1b0da63bbd0ac0a30 Reviewed-on: http://gerrit.dmdirc.com/1584 Reviewed-by: Greg Holmes <79e2475f81a6317276bf7cbb3958b20d289b78df@dmdirc.com> Automatic-Compile: DMDirc Local Commits <fd7610eb81751244add0a62da2de7da51cfdce47@googlemail.com>
XML
mit
greboid/DMDirc,csmith/DMDirc,DMDirc/DMDirc,ShaneMcC/DMDirc-Client,csmith/DMDirc,ShaneMcC/DMDirc-Client,greboid/DMDirc,greboid/DMDirc,ShaneMcC/DMDirc-Client,DMDirc/DMDirc,DMDirc/DMDirc,csmith/DMDirc,DMDirc/DMDirc,greboid/DMDirc,ShaneMcC/DMDirc-Client,csmith/DMDirc
xml
## Code Before: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://www.netbeans.org/ns/project/1"> <type>org.netbeans.modules.java.j2seproject</type> <configuration> <data xmlns="http://www.netbeans.org/ns/j2se-project/3"> <name>DMDirc</name> <minimum-ant-version>1.6.5...
d011f0279f868e56b0a36bb672f432ca2bfc2b35
mlbgame/league.py
mlbgame/league.py
import mlbgame.data import lxml.etree as etree def get_league_object(): """Returns the xml object corresponding to the league Only designed for internal use""" # get data data = mlbgame.data.get_properties() # return league object return etree.parse(data).getroot().find("leagues").find("...
import mlbgame.data import lxml.etree as etree def get_league_object(): """Returns the xml object corresponding to the league Only designed for internal use""" # get data data = mlbgame.data.get_properties() # return league object return etree.parse(data).getroot().find("leagues").find("...
Add function to parse team info
Add function to parse team info
Python
mit
zachpanz88/mlbgame,panzarino/mlbgame
python
## Code Before: import mlbgame.data import lxml.etree as etree def get_league_object(): """Returns the xml object corresponding to the league Only designed for internal use""" # get data data = mlbgame.data.get_properties() # return league object return etree.parse(data).getroot().find("...
0e460788c35a93e2bf589c9eeca3aadc89b40782
Salt/salt/build_tools.sls
Salt/salt/build_tools.sls
build_packages: pkg.installed: - names: - cmake - g++ - git - libqt4-dev - ncurses-dev - subversion
build_packages: pkg.installed: - names: - cmake - g++ - git - libqt4-dev - make - ncurses-dev - subversion
Make sure to install make.
BUG: Make sure to install make.
SaltStack
apache-2.0
InsightSoftwareConsortium/ITKDevelopmentEnvironment,InsightSoftwareConsortium/ITKDevelopmentEnvironment
saltstack
## Code Before: build_packages: pkg.installed: - names: - cmake - g++ - git - libqt4-dev - ncurses-dev - subversion ## Instruction: BUG: Make sure to install make. ## Code After: build_packages: pkg.installed: - names: - cmake - g++ - git - libqt...
31391303968eeaf226e988b4cdf174324d1da83e
spec/unit/veritas/relation/header/class_methods/new_spec.rb
spec/unit/veritas/relation/header/class_methods/new_spec.rb
require 'spec_helper' describe Relation::Header, '.new' do subject { object.new(argument) } let(:object) { described_class } context 'with no arguments' do subject { object.new } it { should be_kind_of(object) } it { should be_empty } end context 'with an argument that responds to #to_ary an...
require 'spec_helper' describe Relation::Header, '.new' do subject { object.new(argument) } let(:object) { described_class } context 'with no arguments' do subject { object.new } it { should be_kind_of(object) } it { should be_empty } end context 'with an argument that responds to #to_ary an...
Cover a missing spec mutation
Cover a missing spec mutation * The code needs to be tested with a mix of unique and duplicate attributes otherwise some branches of the code are not tested.
Ruby
mit
dkubb/axiom
ruby
## Code Before: require 'spec_helper' describe Relation::Header, '.new' do subject { object.new(argument) } let(:object) { described_class } context 'with no arguments' do subject { object.new } it { should be_kind_of(object) } it { should be_empty } end context 'with an argument that respon...
25df1907640b4174fb872792bd59f85272688afb
src/code/data/migrations/migrations.coffee
src/code/data/migrations/migrations.coffee
migrations = [ require "./01_base" require "./02_add_initial_values" ] module.exports = migrations: migrations update: (data) -> for m in migrations if m.update data = m.update(data) data latestVersion: -> @lastMigration().version lastMigration: -> _.max migrations, (m) -> m...
migrations = [ require "./01_base" ] module.exports = migrations: migrations update: (data) -> for m in migrations if m.update data = m.update(data) data latestVersion: -> @lastMigration().version lastMigration: -> _.max migrations, (m) -> m.version
Fix tests:, rm non-existant migration.
Fix tests:, rm non-existant migration.
CoffeeScript
mit
concord-consortium/building-models,concord-consortium/building-models,concord-consortium/building-models,concord-consortium/building-models,concord-consortium/building-models
coffeescript
## Code Before: migrations = [ require "./01_base" require "./02_add_initial_values" ] module.exports = migrations: migrations update: (data) -> for m in migrations if m.update data = m.update(data) data latestVersion: -> @lastMigration().version lastMigration: -> _.max migr...
f8d7652e57a2efb2a475d59e429e695babe86e42
.travis.yml
.travis.yml
language: python python: - "2.7" services: - rabbitmq install: - pip install -r requirements.txt --use-mirrors before_script: - cp config.py.tmpl config.py - sudo -u postgres createdb iatidq - python quickstart.py --drop-db - python quickstart.py --init-db - python quickstart.py --refresh --minimal scri...
language: python python: - "2.7" services: - rabbitmq install: - pip install -r requirements.txt --use-mirrors before_script: - cp config.py.tmpl config.py - sudo -u postgres createdb iatidq - python quickstart.py --drop-db - python quickstart.py --init-db - python quickstart.py --refresh --minimal scri...
Remove web tests from Travis for now, because they are not actually checking for anything as there is no data at that point in the test cycle
Remove web tests from Travis for now, because they are not actually checking for anything as there is no data at that point in the test cycle
YAML
agpl-3.0
pwyf/IATI-Data-Quality,pwyf/IATI-Data-Quality,pwyf/IATI-Data-Quality,pwyf/IATI-Data-Quality
yaml
## Code Before: language: python python: - "2.7" services: - rabbitmq install: - pip install -r requirements.txt --use-mirrors before_script: - cp config.py.tmpl config.py - sudo -u postgres createdb iatidq - python quickstart.py --drop-db - python quickstart.py --init-db - python quickstart.py --refres...
419b4d93a2d4418620b45b9094830f3813bac02c
WebRoot/rbtFrame.jsp
WebRoot/rbtFrame.jsp
<%@ page language="java" %> <%@ page import="gov.nih.nci.rembrandt.util.*" %> <% String bottomPage = "rbtFramesBottom.jsp"; String param = request.getParameter("p"); if (param != null) { param = MoreStringUtils.cleanJavascriptAndSpecialChars(MoreStringUtils.specialCharacters, param); bottomPage = param; } ...
<%@ page language="java" %> <%@ page import="gov.nih.nci.rembrandt.util.*" %> <% String bottomPage = "rbtFramesBottom.jsp"; String param = request.getParameter("p"); if (param != null) { param = MoreStringUtils.checkWhiteListBeforeCleaningJavascriptAndSpecialChars(MoreStringUtils.specialCharacters, param); bo...
Call checkWhiteListBeforeCleaningJavascriptAndSpecialChars() instead to clean param valule
Call checkWhiteListBeforeCleaningJavascriptAndSpecialChars() instead to clean param valule SVN-Revision: 15459
Java Server Pages
bsd-3-clause
NCIP/rembrandt,NCIP/rembrandt,NCIP/rembrandt,NCIP/rembrandt,NCIP/rembrandt,NCIP/rembrandt
java-server-pages
## Code Before: <%@ page language="java" %> <%@ page import="gov.nih.nci.rembrandt.util.*" %> <% String bottomPage = "rbtFramesBottom.jsp"; String param = request.getParameter("p"); if (param != null) { param = MoreStringUtils.cleanJavascriptAndSpecialChars(MoreStringUtils.specialCharacters, param); bottomPag...
e4f31972c8f668eb08b1cc0a08959bdc5c2feed6
spec/lib/server_spec.rb
spec/lib/server_spec.rb
describe Calabash::Server do let(:url) {'URL'} it 'should initialize using a url as its first and only parameter' do Calabash::Server.new(url) end it 'should save the url given when initialized and return it' do server = Calabash::Server.new(url) expect(server.url).to eq(url) end end
describe Calabash::Server do let(:endpoint) {:endpoint} let(:test_server_port) {200} it 'should initialize using an endpoint and a test server port as its first and second parameter' do Calabash::Server.new(endpoint, test_server_port) end it 'should save the endpoint given when initialized and return it...
Fix unit tests for server
Fix unit tests for server
Ruby
epl-1.0
calabash/calabash,calabash/calabash,tejasv02/calabash,tejasv02/calabash,tejasv02/calabash,calabash/calabash
ruby
## Code Before: describe Calabash::Server do let(:url) {'URL'} it 'should initialize using a url as its first and only parameter' do Calabash::Server.new(url) end it 'should save the url given when initialized and return it' do server = Calabash::Server.new(url) expect(server.url).to eq(url) en...
a3bfb462473769a1012ce9f8db3c2502f7bc646a
config/initializers/gds_api.rb
config/initializers/gds_api.rb
require 'gds_api/base' require 'gds_api/content_api' GdsApi::Base.logger = Logger.new(Rails.root.join("log/#{Rails.env}.api_client.log")) GdsApi::Base.default_options = {disable_timeout: true} Frontend.detailed_guidance_content_api = GdsApi::ContentApi.new(Plek.current.environment, endpoint_url: "#{Plek.current.find(...
require 'gds_api/base' require 'gds_api/content_api' GdsApi::Base.logger = Logger.new(Rails.root.join("log/#{Rails.env}.api_client.log")) GdsApi::Base.default_options = {disable_timeout: true} Frontend.detailed_guidance_content_api = GdsApi::ContentApi.new(Plek.current.environment, endpoint_url: "#{Plek.current.find(...
Make note of copies existing in preview/production
Make note of copies existing in preview/production
Ruby
mit
alphagov/frontend,alphagov/frontend,alphagov/frontend,alphagov/frontend
ruby
## Code Before: require 'gds_api/base' require 'gds_api/content_api' GdsApi::Base.logger = Logger.new(Rails.root.join("log/#{Rails.env}.api_client.log")) GdsApi::Base.default_options = {disable_timeout: true} Frontend.detailed_guidance_content_api = GdsApi::ContentApi.new(Plek.current.environment, endpoint_url: "#{Pl...
f8a756c70d5d3dcc7eb0e64c2c0ff6ebf2916ec1
app/search-page/searchPage.css
app/search-page/searchPage.css
.search-page__autocomplete-container { margin: 10px auto; max-width: 300px; }
.search-page__autocomplete-container { margin: 10px; }
Set proper resizeable layout for autocomplete
Set proper resizeable layout for autocomplete
CSS
mit
mczernow/whats-next,mczernow/whats-next
css
## Code Before: .search-page__autocomplete-container { margin: 10px auto; max-width: 300px; } ## Instruction: Set proper resizeable layout for autocomplete ## Code After: .search-page__autocomplete-container { margin: 10px; }
39a40e11377a6af5de6aa35566ea0ee706b0b137
src/Pippin/IPNParser.php
src/Pippin/IPNParser.php
<?php namespace Pippin; use Pippin\IPN; final class IPNParser { public function parse($IPNString) { $IPNData = []; $pairs = explode('&', $IPNString); foreach ($pairs as $pair) { $keyValue = explode('=', $pair); if (count($keyValue) == 2) { $IPNData[urldecode($keyValue[0])] = urldecode($keyValue[1])...
<?php namespace Pippin; use Pippin\IPN; final class IPNParser { public function parse($IPNString) { $IPNData = []; $pairs = explode('&', $IPNString); foreach ($pairs as $pair) { $keyValue = explode('=', $pair); if (count($keyValue) == 2) { $IPNData[urldecode($keyValue[0])] = urldecode($keyValue[1])...
Convert IPNs to UTF-8 when parsing.
Convert IPNs to UTF-8 when parsing.
PHP
mit
grantjbutler/pippin
php
## Code Before: <?php namespace Pippin; use Pippin\IPN; final class IPNParser { public function parse($IPNString) { $IPNData = []; $pairs = explode('&', $IPNString); foreach ($pairs as $pair) { $keyValue = explode('=', $pair); if (count($keyValue) == 2) { $IPNData[urldecode($keyValue[0])] = urldeco...
234f6f40674b7e62d519653611d7156f2b908f07
META6.json
META6.json
{ "perl" : "6.*", "name" : "Inline::Lua", "version" : "*", "description" : "Embedded Lua for Perl 6", "author" : "raydiak", "depends" : [ ], "provides" : { "Inline::Lua" : "lib/Inline/Lua.pm6", "Inline::Lua::Object" : "lib/Inline/Lua/Object.pm6", "Lua::Raw...
{ "perl" : "6.*", "name" : "Inline::Lua", "license" : "Artistic-2.0", "version" : "*", "description" : "Embedded Lua for Perl 6", "author" : "raydiak", "depends" : [ ], "provides" : { "Inline::Lua" : "lib/Inline/Lua.pm6", "Inline::Lua::Object" : "lib/Inline/Lu...
Use SPDX identifier in license field of META.info
Use SPDX identifier in license field of META.info
JSON
artistic-2.0
raydiak/Inline-Lua
json
## Code Before: { "perl" : "6.*", "name" : "Inline::Lua", "version" : "*", "description" : "Embedded Lua for Perl 6", "author" : "raydiak", "depends" : [ ], "provides" : { "Inline::Lua" : "lib/Inline/Lua.pm6", "Inline::Lua::Object" : "lib/Inline/Lua/Object.pm6", ...
f71343a60529fa111a1fe7e3a19fb511a5dcbbed
.travis.yml
.travis.yml
language: go go: - "1.10" before_install: - go get github.com/mattn/goveralls - go get github.com/boltdb/bolt - go get github.com/go-yaml/yaml - go get github.com/golang/protobuf/proto - go get github.com/op/go-logging - go get golang.org/x/net/context - go get google.golang.org/grpc script: - $HOME/g...
language: go go: - "1.10" before_install: - go get github.com/schrej/godacov - go get github.com/mattn/goveralls - go get github.com/boltdb/bolt - go get github.com/go-yaml/yaml - go get github.com/golang/protobuf/proto - go get github.com/op/go-logging - go get golang.org/x/net/context - go get googl...
Add Codacy coverage to Travis CI build
Add Codacy coverage to Travis CI build
YAML
mit
thomasylee/GoRaft,thomasylee/GoRaft
yaml
## Code Before: language: go go: - "1.10" before_install: - go get github.com/mattn/goveralls - go get github.com/boltdb/bolt - go get github.com/go-yaml/yaml - go get github.com/golang/protobuf/proto - go get github.com/op/go-logging - go get golang.org/x/net/context - go get google.golang.org/grpc scr...
a1b7e435a0b99bd760c94822ccc2d8b81ed30445
xc7/tests/ff_sr_ce/CMakeLists.txt
xc7/tests/ff_sr_ce/CMakeLists.txt
add_file_target(FILE ff_ce_sr.v SCANNER_TYPE verilog) add_fpga_target( NAME ff_ce_sr BOARD basys3 INPUT_IO_FILE ../common/basys3.pcf SOURCES ff_ce_sr.v EXPLICIT_ADD_FILE_TARGET )
add_file_target(FILE ff_ce_sr.v SCANNER_TYPE verilog) add_fpga_target( NAME ff_ce_sr BOARD basys3 INPUT_IO_FILE ../common/basys3.pcf SOURCES ff_ce_sr.v EXPLICIT_ADD_FILE_TARGET EMIT_CHECK_TESTS EQUIV_CHECK_SCRIPT ${symbiflow-arch-defs_SOURCE_DIR}/yosys/equiv_simple_opt_full.ys )
Add equiv tests for FF SR/CE test.
Add equiv tests for FF SR/CE test. Signed-off-by: Keith Rothman <1bc19627a439baf17510dc2d0b2d250c96d445a5@users.noreply.github.com>
Text
isc
SymbiFlow/symbiflow-arch-defs,SymbiFlow/symbiflow-arch-defs
text
## Code Before: add_file_target(FILE ff_ce_sr.v SCANNER_TYPE verilog) add_fpga_target( NAME ff_ce_sr BOARD basys3 INPUT_IO_FILE ../common/basys3.pcf SOURCES ff_ce_sr.v EXPLICIT_ADD_FILE_TARGET ) ## Instruction: Add equiv tests for FF SR/CE test. Signed-off-by: Keith Rothman <1bc19627a439baf17510dc2d0b2d2...
f031640c609281af558d2b871906545bc123e00b
app/views/activities/_activity.html.erb
app/views/activities/_activity.html.erb
<% @priority = [1,2,3,4].sample %> <% @resolved = [true,false].sample %> <li class="activity list-group-item t-activity <%= 't-hidden-activity activity--hideable activity--hide' if hide %><% if @priority == 1 && @resolved %> activity--priority-resolved<% end %><% if @priority == 1 && !@resolved %> activity--priority-un...
<li class="activity list-group-item t-activity <%= 't-hidden-activity activity--hideable activity--hide' if hide %> <% if activity.high_priority? && activity.resolved? %> activity--priority-resolved<% end %> <% if activity.high_priority? && !activity.resolved? %> activity--priority-unresolved<% end %> " data-acti...
Update activity partial for priority & resolution
Update activity partial for priority & resolution
HTML+ERB
mit
guidance-guarantee-programme/telephone_appointment_planner,guidance-guarantee-programme/telephone_appointment_planner,guidance-guarantee-programme/telephone_appointment_planner
html+erb
## Code Before: <% @priority = [1,2,3,4].sample %> <% @resolved = [true,false].sample %> <li class="activity list-group-item t-activity <%= 't-hidden-activity activity--hideable activity--hide' if hide %><% if @priority == 1 && @resolved %> activity--priority-resolved<% end %><% if @priority == 1 && !@resolved %> activ...
4461d9557780df5ec57f6355122c3746f4f8b85c
requirements.txt
requirements.txt
termcolor six jira requests argparse suds-jurko keyring
termcolor six ordereddict jira requests argparse suds-jurko keyring
Add ordereddict as it appears to have become a transient dependency
Add ordereddict as it appears to have become a transient dependency
Text
mit
rexyeah/jira-cli,alisaifee/jira-cli,alisaifee/jira-cli,rexyeah/jira-cli
text
## Code Before: termcolor six jira requests argparse suds-jurko keyring ## Instruction: Add ordereddict as it appears to have become a transient dependency ## Code After: termcolor six ordereddict jira requests argparse suds-jurko keyring
71b536d8b6150982dc495298ab36e986072ff6f1
lib/wiki-plugins/wikiplugin_userlink.php
lib/wiki-plugins/wikiplugin_userlink.php
<?php // (c) Copyright 2002-2010 by authors of the Tiki Wiki/CMS/Groupware Project // // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // $Id$ // this script may only be included - so it's better...
<?php // (c) Copyright 2002-2010 by authors of the Tiki Wiki/CMS/Groupware Project // // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // $Id$ // this script may only be included - so it's better...
Add tra and some rewording for plugin info for plugin edit window
Add tra and some rewording for plugin info for plugin edit window git-svn-id: 9bac41f8ebc9458fc3e28d41abfab39641e8bd1c@30965 b456876b-0849-0410-b77d-98878d47e9d5
PHP
lgpl-2.1
oregional/tiki,changi67/tiki,changi67/tiki,oregional/tiki,tikiorg/tiki,tikiorg/tiki,tikiorg/tiki,changi67/tiki,changi67/tiki,tikiorg/tiki,changi67/tiki,oregional/tiki,oregional/tiki
php
## Code Before: <?php // (c) Copyright 2002-2010 by authors of the Tiki Wiki/CMS/Groupware Project // // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // $Id$ // this script may only be included ...
f20d09acce7fdae6c6a9ac6c4596a90ec4b596b5
blog_info.go
blog_info.go
package tumblr import ( "encoding/json" ) // Blog Info func (blog Blog) Info() (*BlogInfo, error) { url, err := blog.blogEntityURL("info") if err != nil { return nil, err } data, err := callAPI(url) var v BlogInfo json.Unmarshal(data, &v) return nil, nil } // Type returned by blog.Info() type BlogInfo str...
package tumblr import ( ) // Blog Info func (blog Blog) Info() (*BlogInfo, error) { // url, err := blog.blogEntityURL("info") // if err != nil { // return nil, err // } //res, err := callAPI(url) return nil, nil } // Type returned by blog.Info() type BlogInfo struct { Title string Posts int64...
Comment this out so it compiles for now
Comment this out so it compiles for now
Go
mit
hut8/tumblr-go
go
## Code Before: package tumblr import ( "encoding/json" ) // Blog Info func (blog Blog) Info() (*BlogInfo, error) { url, err := blog.blogEntityURL("info") if err != nil { return nil, err } data, err := callAPI(url) var v BlogInfo json.Unmarshal(data, &v) return nil, nil } // Type returned by blog.Info() t...
7ae880ac6a130a9adcd24fe61022aa3ef64d24a6
lib/value.js
lib/value.js
'use strict'; /* value.js * Object to represent CSS Values. */ module.exports = exports = Value; function Value(){ }
'use strict'; /* value.js * Expresses CSS values. */ module.exports = exports = Value; function Value(data, value){ if (!(this instanceof Value)) return new Value(); if (typeof data === 'string' && Array.isArray(value)) { this.type = 'function'; // Data is a function. // Set object data. thi...
Add type and variable setting
Add type and variable setting
JavaScript
mit
jamen/rpv
javascript
## Code Before: 'use strict'; /* value.js * Object to represent CSS Values. */ module.exports = exports = Value; function Value(){ } ## Instruction: Add type and variable setting ## Code After: 'use strict'; /* value.js * Expresses CSS values. */ module.exports = exports = Value; function Value(data, value...
d7a01de1700feaba75f54ad272628fa19ebae7cc
resources/views/map/static.blade.php
resources/views/map/static.blade.php
@extends('map.base') @section('title', '靜態地圖 - 攤位地圖') @section('main_content') <div class="mt-2"> <a href="https://i.imgur.com/0NsiJbU.jpg" target="_blank"> <img src="https://i.imgur.com/0NsiJbUh.jpg" class="img-fluid w-100" alt="static map"> </a> </div> <div class="mt-2"> ...
@extends('map.base') @section('title', '靜態地圖 - 攤位地圖') @section('main_content') <div class="mt-2"> <a href="https://i.imgur.com/0NsiJbU.jpg" target="_blank"> <img src="https://i.imgur.com/19fh3hk.jpg" class="img-fluid w-100" alt="static map"> </a> </div> <div class="mt-2"> ...
Embed compressed images instead of original ones
Embed compressed images instead of original ones
PHP
mit
HackerSir/CheckIn,HackerSir/CheckIn2017,HackerSir/CheckIn2017,HackerSir/CheckIn,HackerSir/CheckIn2017
php
## Code Before: @extends('map.base') @section('title', '靜態地圖 - 攤位地圖') @section('main_content') <div class="mt-2"> <a href="https://i.imgur.com/0NsiJbU.jpg" target="_blank"> <img src="https://i.imgur.com/0NsiJbUh.jpg" class="img-fluid w-100" alt="static map"> </a> </div> <div cl...
65233cb0099f62a09ffa77d4a19084c765f60f86
src/reducers/notifications-list.js
src/reducers/notifications-list.js
import { ADD_NOTIFICATION, ADD_NOTIFICATIONS, READ_NOTIFICATION} from '../actions'; import {RECEIVE_NOTIFICATIONS} from '../actions/fetch-notifications'; import generateError from './util/error-generator'; import {isObject, isArray} from 'lodash/lang'; const REDUCER_NAME = 'NOTIFICATION_LIST'; // reducers in charge o...
import { ADD_NOTIFICATION, ADD_NOTIFICATIONS, READ_NOTIFICATION} from '../actions'; import {RECEIVE_NOTIFICATIONS} from '../actions/fetch-notifications'; import generateError from './util/error-generator'; import {isObject, isArray} from 'lodash/lang'; const REDUCER_NAME = 'NOTIFICATION_LIST'; // reducers in charge o...
Deal with the read action.
[read] Deal with the read action.
JavaScript
mit
KleeGroup/focus-notifications,pierr/notif,pierr/notif,KleeGroup/focus-notifications
javascript
## Code Before: import { ADD_NOTIFICATION, ADD_NOTIFICATIONS, READ_NOTIFICATION} from '../actions'; import {RECEIVE_NOTIFICATIONS} from '../actions/fetch-notifications'; import generateError from './util/error-generator'; import {isObject, isArray} from 'lodash/lang'; const REDUCER_NAME = 'NOTIFICATION_LIST'; // redu...
99a9a6e891408164e2ee26ad49ff3dcbd082281c
example/Gulpfile.js
example/Gulpfile.js
var NwBuilder = require('node-webkit-builder'); var gulp = require('gulp'); var gutil = require('gulp-util'); gulp.task('nw', function (callback) { var nw = new NwBuilder({ version: '0.9.2', files: [ './nwapp/**'] }); // Log stuff you want nw.on('log', function (mgs) { gutil.l...
var NwBuilder = require('node-webkit-builder'); var gulp = require('gulp'); var gutil = require('gulp-util'); gulp.task('nw', function () { var nw = new NwBuilder({ version: '0.9.2', files: [ './nwapp/**'] }); // Log stuff you want nw.on('log', function (msg) { gutil.log('node...
Use promises in Gulp example
Use promises in Gulp example Gulp supports returning promises to make the task not parallel, so just return it, and use promise-like functions for error logging. Also, fix a couple typos.
JavaScript
mit
Crunch/nw-builder,imperiumzigna/nw-builder,modulexcite/nw-builder,marianoguerra/nw-builder,GrabCAD/node-webkit-builder,nwjs/nw-builder,modulexcite/nw-builder,cypress-io/nw-builder,marianoguerra/nw-builder,GrabCAD/node-webkit-builder,nwjs/nw-builder,donkeycode/nw-builder,cypress-io/nw-builder,donkeycode/nw-builder,imper...
javascript
## Code Before: var NwBuilder = require('node-webkit-builder'); var gulp = require('gulp'); var gutil = require('gulp-util'); gulp.task('nw', function (callback) { var nw = new NwBuilder({ version: '0.9.2', files: [ './nwapp/**'] }); // Log stuff you want nw.on('log', function (mgs) {...
4fd5ce5420bcfab8604e7f404541d15392e66bc1
lib/github_cli/apis/watching.rb
lib/github_cli/apis/watching.rb
module GithubCLI class Watching < API class << self def list(user, repo, params, format) output format do github_api.repos.watching.list user, repo, params end end def watched(params, format) output format do github_api.repos.watching.watched param...
module GithubCLI class Watching < API class << self def list(user, repo, params, format) output format do github_api.activity.watching.list user, repo, params end end def watched(params, format) output format do github_api.activity.watching.watched...
Update to use new activity scope.
Update to use new activity scope.
Ruby
mit
pjump/github_cli,pjump/github_cli,ecliptik/github_cli,ecliptik/github_cli,piotrmurach/github_cli,peter-murach/github_cli,peter-murach/github_cli
ruby
## Code Before: module GithubCLI class Watching < API class << self def list(user, repo, params, format) output format do github_api.repos.watching.list user, repo, params end end def watched(params, format) output format do github_api.repos.watchi...
4e70703a5adf1570c44ed9bbec63f1ead002654c
openmm/meta.yaml
openmm/meta.yaml
package: name: openmm version: 6.2 source: url: https://github.com/pandegroup/openmm/archive/6.2.tar.gz fn: 6.2.tar.gz patches: - plugin-dir.patch build: number: 1 preserve_egg_dir: yes requirements: build: # on windows, need to install cmake manually - cmake # [not win] - python ...
package: name: openmm version: 6.2 source: url: https://github.com/pandegroup/openmm/archive/6.2.tar.gz fn: 6.2.tar.gz patches: - plugin-dir.patch build: number: 1 preserve_egg_dir: yes requirements: build: # on windows, need to install cmake manually - cmake # [not win] - python ...
Add swig back into the openmm conda build requirements.
Add swig back into the openmm conda build requirements. Former-commit-id: f32aaa6a405a524cf6aa1414e1ddb2cd3d6fb989
YAML
mit
peastman/conda-recipes,marscher/omnia-conda-recipes,jchodera/conda-recipes,omnia-md/conda-recipes,marscher/omnia-conda-recipes,cwehmeyer/conda-recipes,swails/conda-recipes,peastman/conda-recipes,swails/conda-recipes,rmcgibbo/conda-recipes,swails/conda-recipes,omnia-md/conda-recipes,jchodera/conda-recipes,cwehmeyer/cond...
yaml
## Code Before: package: name: openmm version: 6.2 source: url: https://github.com/pandegroup/openmm/archive/6.2.tar.gz fn: 6.2.tar.gz patches: - plugin-dir.patch build: number: 1 preserve_egg_dir: yes requirements: build: # on windows, need to install cmake manually - cmake # [not win]...
38c4cf0594ff023fc0acfd6cac16c82ddc27b32c
client/app/MainApp/sidebar/sidebarcontroller.coffee
client/app/MainApp/sidebar/sidebarcontroller.coffee
class SidebarController extends KDViewController constructor:-> super mainController = KD.getSingleton 'mainController' mainController.on 'ManageRemotes', -> new ManageRemotesModal mainController.on 'ManageDatabases', -> new ManageDatabasesModal mainController.on 'AccountChanged', @bound 'accoun...
class SidebarController extends KDViewController constructor:-> super mainController = KD.getSingleton 'mainController' mainController.on 'ManageRemotes', -> new ManageRemotesModal mainController.on 'ManageDatabases', -> new ManageDatabasesModal mainController.on 'AccountChanged', @bound 'accoun...
Fix the logic in SidebarController which triggers the FinderController reset to auto-mount vms
Fix the logic in SidebarController which triggers the FinderController reset to auto-mount vms
CoffeeScript
agpl-3.0
szkl/koding,usirin/koding,sinan/koding,sinan/koding,cihangir/koding,cihangir/koding,szkl/koding,gokmen/koding,gokmen/koding,gokmen/koding,andrewjcasal/koding,rjeczalik/koding,koding/koding,andrewjcasal/koding,drewsetski/koding,koding/koding,acbodine/koding,sinan/koding,acbodine/koding,sinan/koding,gokmen/koding,koding/...
coffeescript
## Code Before: class SidebarController extends KDViewController constructor:-> super mainController = KD.getSingleton 'mainController' mainController.on 'ManageRemotes', -> new ManageRemotesModal mainController.on 'ManageDatabases', -> new ManageDatabasesModal mainController.on 'AccountChanged'...
e12df4de76e168ca1c5dd76ed159f3c8979308d4
Source/Main.js
Source/Main.js
"use strict"; var OS = require('os'), Net = require('net'), CPP = require('childprocess-promise'); class Main{ constructor(Port){ this.Port = Port; this.Server = null; this.Children = []; } Run(){ let NumCPUs = OS.cpus().length; let SupportedEvents = []; for(let Name in Main){ ...
"use strict"; var OS = require('os'), Net = require('net'), CPP = require('childprocess-promise'); class Main{ constructor(Port){ this.Port = Port; this.Server = null; this.Children = []; this.DataBase = new Map(); } Run(){ let NumCPUs = OS.cpus().length; let SupportedEvents = []; ...
Use ES6 Map as Database
:new: Use ES6 Map as Database
JavaScript
mit
steelbrain/Happy-DB
javascript
## Code Before: "use strict"; var OS = require('os'), Net = require('net'), CPP = require('childprocess-promise'); class Main{ constructor(Port){ this.Port = Port; this.Server = null; this.Children = []; } Run(){ let NumCPUs = OS.cpus().length; let SupportedEvents = []; for(let Nam...
1c7a8c7759ac99cf089a806ef4cad5cd0af78f19
CHANGELOG.md
CHANGELOG.md
Changelog ========= ### Next release - [Devel] [New] Added Travis support (Continuous Integration server). - [Devel] [New] Added Coveralls support. - [Devel] [New] Added a required minimum PHP version (5.3.0). - [Devel] [Improv] Increased the code coverage. ### 1.0.0 (2014-05-21) - Initial release.
Changelog ========= ### Next release - [New] Added a new example (Graph). - [Devel] [New] Added Travis support (Continuous Integration server). - [Devel] [New] Added Coveralls support. - [Devel] [New] Added a required minimum PHP version (5.3.0). - [Devel] [Improv] Increased the code coverage. ### 1.0.0 (2014-05-21) ...
Add the new Graph example to the Changelog
Add the new Graph example to the Changelog
Markdown
mit
jmgq/php-a-star
markdown
## Code Before: Changelog ========= ### Next release - [Devel] [New] Added Travis support (Continuous Integration server). - [Devel] [New] Added Coveralls support. - [Devel] [New] Added a required minimum PHP version (5.3.0). - [Devel] [Improv] Increased the code coverage. ### 1.0.0 (2014-05-21) - Initial release. #...
6a12d8658bc1af045f3dc20c937d869a031240a9
README.md
README.md
OpenVML is an open soruce vector math library.
OpenVML is an open soruce vector math library. ## Compile ``` cd /your/build cmake /path/to/OpenVML make make install ``` ## Status Ongoing work
Update the doc for building library.
Update the doc for building library.
Markdown
bsd-2-clause
xinhuang/OpenVML,liyancas/OpenVML,xinhuang/OpenVML,xianyi/OpenVML,liyancas/OpenVML,xianyi/OpenVML
markdown
## Code Before: OpenVML is an open soruce vector math library. ## Instruction: Update the doc for building library. ## Code After: OpenVML is an open soruce vector math library. ## Compile ``` cd /your/build cmake /path/to/OpenVML make make install ``` ## Status Ongoing work
82480d181f24bf8aff9972d43b938ff815df7b94
.travis.yml
.travis.yml
language: cpp os: linux sudo: required dist: trusty addons: apt: sources: - ubuntu-toolchain-r-test packages: - lcov matrix: include: - compiler: gcc env: BUILD_TYPE=codecov - compiler: clang env: BUILD_TYPE=normal before_script: - util/travis_before_script.sh script: ...
language: cpp os: linux sudo: required dist: trusty addons: apt: sources: - ubuntu-toolchain-r-test packages: - lcov matrix: include: - compiler: gcc env: BUILD_TYPE=codecov - compiler: clang env: BUILD_TYPE=normal before_script: - util/travis_before_script.sh script: ...
Add IRC notifications for Travis CI
Add IRC notifications for Travis CI Use one-line notices from outside the #banditcpp channel.
YAML
mit
joakimkarlsson/bandit,joakimkarlsson/bandit,joakimkarlsson/bandit
yaml
## Code Before: language: cpp os: linux sudo: required dist: trusty addons: apt: sources: - ubuntu-toolchain-r-test packages: - lcov matrix: include: - compiler: gcc env: BUILD_TYPE=codecov - compiler: clang env: BUILD_TYPE=normal before_script: - util/travis_before_scr...
a2fb3da759e7c6b3c67e8fae1f625ef4d524e985
app/views/admin/videos/_edit.html.erb
app/views/admin/videos/_edit.html.erb
<%= semantic_form_for @resource, :url => admin_edition_path(@resource), :as => :edition do |f| %> <%= f.inputs do %> <%= render :partial => 'admin/shared/title_etc', :locals => {:f => f} %> <%= render :partial => 'admin/shared/video', :locals => {:f => f} %> <% end %> <hr> <div class="row-fluid"> ...
<%= semantic_form_for @resource, :url => admin_edition_path(@resource), :as => :edition do |f| %> <%= f.inputs do %> <%= render :partial => 'admin/shared/title_etc', :locals => {:f => f} %> <%= render :partial => 'admin/shared/video', :locals => {:f => f} %> <% end %> <% end %>
Remove some cruft from the Video edit form.
Remove some cruft from the Video edit form.
HTML+ERB
mit
theodi/publisher,theodi/publisher,telekomatrix/publisher,leftees/publisher,alphagov/publisher,leftees/publisher,leftees/publisher,theodi/publisher,telekomatrix/publisher,alphagov/publisher,telekomatrix/publisher,alphagov/publisher,leftees/publisher,telekomatrix/publisher,theodi/publisher
html+erb
## Code Before: <%= semantic_form_for @resource, :url => admin_edition_path(@resource), :as => :edition do |f| %> <%= f.inputs do %> <%= render :partial => 'admin/shared/title_etc', :locals => {:f => f} %> <%= render :partial => 'admin/shared/video', :locals => {:f => f} %> <% end %> <hr> <div class="...
7c6739df4cf61ffb6da960a14d563a737dc316ad
samples/SwingPad/application.properties
samples/SwingPad/application.properties
app.griffon.version=0.9.1 app.name=SwingPad app.version=0.4-SNAPSHOT plugins.coverflow=0.3 plugins.crystalicons=0.1 plugins.css-builder=0.6 plugins.designgridlayout=0.1 plugins.docking-frame=0.2 plugins.effects=0.1 plugins.flyingsaucer=0.2 plugins.gfx-builder=0.4 plugins.glazedlists=0.4 plugins.installer=0.5 plugins.jb...
app.griffon.version=@GRIFFON_VERSION@ app.name=SwingPad app.version=0.4-SNAPSHOT plugins.coverflow=0.3 plugins.crystalicons=0.1 plugins.css-builder=0.6 plugins.designgridlayout=0.2 plugins.docking-frame=0.2 plugins.effects=0.1 plugins.flyingsaucer=0.2 plugins.gfx-builder=0.4 plugins.glazedlists=0.4 plugins.installer=0....
Fix SwingPad's app metadata file with correct griffon version placeholder
Fix SwingPad's app metadata file with correct griffon version placeholder
INI
apache-2.0
tschulte/griffon,codehaus/griffon-git,breskeby/griffon,tschulte/griffon,codehaus/griffon-git,griffon/griffon,breskeby/griffon,levymoreira/griffon,tschulte/griffon,levymoreira/griffon,levymoreira/griffon,griffon/griffon
ini
## Code Before: app.griffon.version=0.9.1 app.name=SwingPad app.version=0.4-SNAPSHOT plugins.coverflow=0.3 plugins.crystalicons=0.1 plugins.css-builder=0.6 plugins.designgridlayout=0.1 plugins.docking-frame=0.2 plugins.effects=0.1 plugins.flyingsaucer=0.2 plugins.gfx-builder=0.4 plugins.glazedlists=0.4 plugins.installe...
b3a0ac2b81b0214aeb15ebdc51ed4fcf0455446e
docs/introduction/umbrella_projects.md
docs/introduction/umbrella_projects.md
Umbrella projects are not much different than regular projects with Distillery, but there are a few small difference worth noting. The release configuration generated by Distillery under an umbrella project will create a default release definition which includes all of the applications in the umbrella (which were pre...
Umbrella projects are not much different than regular projects with Distillery, but there are a few small difference worth noting. The release configuration generated by Distillery under an umbrella project will create a default release definition which includes all of the applications in the umbrella (which were pre...
Remove erroneous reference to release --all flag
Remove erroneous reference to release --all flag
Markdown
mit
bitwalker/distillery,bitwalker/distillery
markdown
## Code Before: Umbrella projects are not much different than regular projects with Distillery, but there are a few small difference worth noting. The release configuration generated by Distillery under an umbrella project will create a default release definition which includes all of the applications in the umbrella...
f5bbae841ac25890f755675756797301a8d6ac3c
test/oauth_consumer.rb
test/oauth_consumer.rb
require 'rubygems' require 'sinatra' require 'omniauth' require 'omniauth-deviantart' configure do set :sessions, true set :inline_templates, true end use OmniAuth::Builder do provider( :deviantart, 5230, '0dde8517b7c8881437d965e815f59c97', scope: 'browse user user.manage note feed gallery browse.mlt co...
require 'rubygems' require 'sinatra' require 'omniauth' require 'omniauth-deviantart' OUTPUT_PIPE = 'test/output_pipe' configure do set :sessions, true set :inline_templates, true end use OmniAuth::Builder do provider( :deviantart, 5230, '0dde8517b7c8881437d965e815f59c97', scope: 'browse user user.mana...
Use a global variable what has named pipe path
Use a global variable what has named pipe path
Ruby
mit
aycabta/deviantart,aycabta/deviantart
ruby
## Code Before: require 'rubygems' require 'sinatra' require 'omniauth' require 'omniauth-deviantart' configure do set :sessions, true set :inline_templates, true end use OmniAuth::Builder do provider( :deviantart, 5230, '0dde8517b7c8881437d965e815f59c97', scope: 'browse user user.manage note feed galle...
ffb36331f09c9522931748ed5fe5cbd0c34cdcac
examples/Test.hs
examples/Test.hs
module Main where import System.Console.Haskeline import System.Console.Haskeline.Monads mySettings :: MonadIO m => Settings m mySettings = defaultSettings {historyFile = Just "myhist", handleSigINT = True} myComplete :: Monad m => CompletionFunc m myComplete s = return (s,[]) main :: IO () ...
module Main where import System.Console.Haskeline import System.Console.Haskeline.Monads import qualified System.IO.UTF8 as UTF8 mySettings :: MonadIO m => Settings m mySettings = defaultSettings {historyFile = Just "myhist", handleSigINT = True} myComplete :: Monad m => CompletionFunc m myCo...
Make test program output UTF8 correctly.
Make test program output UTF8 correctly.
Haskell
bsd-3-clause
judah/haskeline,judah/haskeline,leroux/packages-haskeline,ghc/packages-haskeline,ghc/packages-haskeline
haskell
## Code Before: module Main where import System.Console.Haskeline import System.Console.Haskeline.Monads mySettings :: MonadIO m => Settings m mySettings = defaultSettings {historyFile = Just "myhist", handleSigINT = True} myComplete :: Monad m => CompletionFunc m myComplete s = return (s,[])...
5aa6da5bbb4d062c843d4dffe26b704a8b380234
css/main.css
css/main.css
body { margin: 0px; font-family: Helvetica; } html, body, #map, #sidebar { height: 100%; } h1, h2, h3, h4, h5, h6 { margin: 0.5em 0px; } ul { margin: 0px; } label { display: inline-block; width: 3em; } input[type=text] { font-size: 100%; width: 220px; } #map { float: right; width: calc(100% - ...
body { margin: 0px; font-family: Helvetica; } html, body, #map, #sidebar { height: 100%; } h1, h2, h3, h4, h5, h6 { margin: 0.5em 0px; } ul { margin: 0px; } label { display: inline-block; width: 3em; } input[type=text] { font-size: 100%; width: 220px; } #map { float: right; width: calc(100% - ...
Document which style is the modal's
Document which style is the modal's
CSS
mit
sakayph/sakayph,sakayph/sakayph
css
## Code Before: body { margin: 0px; font-family: Helvetica; } html, body, #map, #sidebar { height: 100%; } h1, h2, h3, h4, h5, h6 { margin: 0.5em 0px; } ul { margin: 0px; } label { display: inline-block; width: 3em; } input[type=text] { font-size: 100%; width: 220px; } #map { float: right; wid...
52daba470612c374fe3e9e5caece5cd8a9900326
models/base.coffee
models/base.coffee
_ = require 'underscore' class Base constructor: (props) -> _.each props, (v, k) => @[k] = v validate: -> validProperty = (property)=> valid = false valid = typeof @[property] isnt 'undefined' if @validator and @validator[property] valid = @validator[property]() vali...
_ = require 'underscore' class Base constructor: (props) -> _.each props, (v, k) => @[k] = v validate: -> validProperty = (property)=> valid = false valid = typeof @[property] isnt 'undefined' if @validator and @validator[property] valid = @validator[property]() vali...
Add in the optional propertys when present
Add in the optional propertys when present
CoffeeScript
bsd-3-clause
t3mpus/tempus-api
coffeescript
## Code Before: _ = require 'underscore' class Base constructor: (props) -> _.each props, (v, k) => @[k] = v validate: -> validProperty = (property)=> valid = false valid = typeof @[property] isnt 'undefined' if @validator and @validator[property] valid = @validator[proper...
a623c8f2b5e156937a56950020f6a4e3ff748472
lib/foodcritic/rules/fc004.rb
lib/foodcritic/rules/fc004.rb
rule "FC004", "Use a service resource to start and stop services" do tags %w{portability services} recipe do |ast| find_resources(ast, type: "execute").find_all do |cmd| cmd_str = (resource_attribute(cmd, "command") || resource_name(cmd)).to_s (cmd_str.include?("/etc/init.d") || ["service ", "/sbin/...
rule "FC004", "Use a service resource to start and stop services" do tags %w{portability services} recipe do |ast| find_resources(ast, type: "execute").find_all do |cmd| cmd_str = (resource_attribute(cmd, "command") || resource_name(cmd)).to_s next if cmd_str.include?(".exe") # don't catch windows c...
Refactor FC004 to catch more w/o as many false positives
Refactor FC004 to catch more w/o as many false positives I sorta thing this should be a series of regex statements, but this does work and we have expanded specs to catch the false positives I encountered along the way Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
Ruby
mit
acrmp/foodcritic,Foodcritic/foodcritic
ruby
## Code Before: rule "FC004", "Use a service resource to start and stop services" do tags %w{portability services} recipe do |ast| find_resources(ast, type: "execute").find_all do |cmd| cmd_str = (resource_attribute(cmd, "command") || resource_name(cmd)).to_s (cmd_str.include?("/etc/init.d") || ["se...
7cb9f692ce04d65d7533b2f458138374c2fe6ed6
lib/Resmon/ExtComm.pm
lib/Resmon/ExtComm.pm
package Resmon::ExtComm; use strict; use warnings; use base "Exporter"; our @EXPORT_OK = qw/cache_command run_command/; my %commhist; my %commcache; my %children; sub cache_command { my $expiry = pop; my @command = @_; my $command = join(" ", @command); my $now = time; if($commhist{$command}>$n...
package Resmon::ExtComm; use strict; use warnings; use base "Exporter"; our @EXPORT_OK = qw/cache_command run_command/; my %commhist; my %commcache; my %children; sub cache_command { my $expiry = pop; my @command = @_; my $command = join(" ", @command); my $now = time; if(defined($commhist{$com...
Make sure command is defined in commhist before referencing it
Make sure command is defined in commhist before referencing it
Perl
bsd-3-clause
omniti-labs/resmon,omniti-labs/resmon
perl
## Code Before: package Resmon::ExtComm; use strict; use warnings; use base "Exporter"; our @EXPORT_OK = qw/cache_command run_command/; my %commhist; my %commcache; my %children; sub cache_command { my $expiry = pop; my @command = @_; my $command = join(" ", @command); my $now = time; if($commh...