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
b689218d9cd3b9b0c60a1147d05b6c2a3076c007
fiware-region-sanity-tests/resources/settings.json
fiware-region-sanity-tests/resources/settings.json
{ "environment": "fiware-lab", "credentials": { "keystone_url": "http://cloud.lab.fiware.org:4731/v2.0/", "tenant_id": "", "tenant_name": "", "user": "", "password": "" }, "region_configuration": { "external_network_name": { "Spain": "net8300",...
{ "environment": "fiware-lab", "credentials": { "keystone_url": "http://cloud.lab.fiware.org:4731/v2.0/", "tenant_id": "", "tenant_name": "", "user": "", "password": "" }, "region_configuration": { "external_network_name": { "Spain": "net8300",...
FIX PiraeusN external network name
FIX PiraeusN external network name
JSON
apache-2.0
Fiware/ops.Health,telefonicaid/fiware-health,telefonicaid/fiware-health,Fiware/ops.Health,Fiware/ops.Health,telefonicaid/fiware-health,Fiware/ops.Health,telefonicaid/fiware-health,telefonicaid/fiware-health,Fiware/ops.Health
json
## Code Before: { "environment": "fiware-lab", "credentials": { "keystone_url": "http://cloud.lab.fiware.org:4731/v2.0/", "tenant_id": "", "tenant_name": "", "user": "", "password": "" }, "region_configuration": { "external_network_name": { "Sp...
fe1acd0f95871f28a4ff4dd86dedf7e61fc40d29
runBenchmark.sh
runBenchmark.sh
cd `dirname $0` git fetch && \ git rebase origin/master && \ rm -rf build && \ ./gradlew clean && \ ./gradlew jmh publishResults processResults | tee benchmark.log && \ git add results && git ci -m "Add daily results" && \ git push
cd `dirname $0` git fetch && \ git rebase origin/master && \ rm -rf build && \ ./gradlew clean && \ ./gradlew --no-parallel --no-daemon jmh publishResults processResults | tee benchmark.log && \ git add results && git ci -m "Add daily results" && \ git push
Disable parallel build and Gradle daemon
Disable parallel build and Gradle daemon
Shell
apache-2.0
centic9/poi-benchmark,centic9/poi-benchmark,centic9/poi-benchmark
shell
## Code Before: cd `dirname $0` git fetch && \ git rebase origin/master && \ rm -rf build && \ ./gradlew clean && \ ./gradlew jmh publishResults processResults | tee benchmark.log && \ git add results && git ci -m "Add daily results" && \ git push ## Instruction: Disable parallel build and Gradle daemon ## Code Aft...
b7dc1da7962369c8c54b2f6c1345ccd812df1ab9
setup.py
setup.py
from setuptools import setup setup( name='firetv', version='1.0.5.dev', description='Communicate with an Amazon Fire TV device via ADB over a network.', url='https://github.com/happyleavesaoc/python-firetv/', license='MIT', author='happyleaves', author_email='happyleaves.tfr@gmail.com', ...
from setuptools import setup setup( name='firetv', version='1.0.5.dev', description='Communicate with an Amazon Fire TV device via ADB over a network.', url='https://github.com/happyleavesaoc/python-firetv/', license='MIT', author='happyleaves', author_email='happyleaves.tfr@gmail.com', ...
Remove github link from 'install_requires'
Remove github link from 'install_requires'
Python
mit
happyleavesaoc/python-firetv
python
## Code Before: from setuptools import setup setup( name='firetv', version='1.0.5.dev', description='Communicate with an Amazon Fire TV device via ADB over a network.', url='https://github.com/happyleavesaoc/python-firetv/', license='MIT', author='happyleaves', author_email='happyleaves.tfr...
047483d9897e75f8284c39e8477a285763da7b37
heufybot/modules/util/commandhandler.py
heufybot/modules/util/commandhandler.py
from twisted.plugin import IPlugin from heufybot.moduleinterface import BotModule, IBotModule from zope.interface import implements class CommandHandler(BotModule): implements(IPlugin, IBotModule) name = "CommandHandler" def actions(self): return [ ("message-channel", 1, self.handleChannelMessag...
from twisted.plugin import IPlugin from heufybot.moduleinterface import BotModule, IBotModule from zope.interface import implements class CommandHandler(BotModule): implements(IPlugin, IBotModule) name = "CommandHandler" def actions(self): return [ ("message-channel", 1, self.handleChannelMessag...
Make the bot respond to its name
Make the bot respond to its name Implements GH-7
Python
mit
Heufneutje/PyHeufyBot,Heufneutje/PyHeufyBot
python
## Code Before: from twisted.plugin import IPlugin from heufybot.moduleinterface import BotModule, IBotModule from zope.interface import implements class CommandHandler(BotModule): implements(IPlugin, IBotModule) name = "CommandHandler" def actions(self): return [ ("message-channel", 1, self.han...
02ac39fa5d771c7c39e8908213192c10a9f39c88
app/models/greenhouse/image_datum.rb
app/models/greenhouse/image_datum.rb
require 'date' module Greenhouse class ImageDatum < ActiveRecord::Base include WeatherHelper belongs_to :greenhouse_data_point, class_name: 'Greenhouse::DataPoint' self.table_name = 'gh_image_data' def self.most_recent_image_name most_recent_record = Greenhouse::ImageDatum.order('gh_data_point...
require 'date' module Greenhouse class ImageDatum < ActiveRecord::Base include WeatherHelper belongs_to :greenhouse_data_point, class_name: 'Greenhouse::DataPoint' self.table_name = 'gh_image_data' def self.most_recent_image_name most_recent_data_point = Greenhouse::DataPoint.where(synchronize...
Fix for not getting most recent image that has been synchronized.
Fix for not getting most recent image that has been synchronized.
Ruby
mit
dtrotzjr/greenhouse_rails_data_server,dtrotzjr/greenhouse_rails_data_server,dtrotzjr/greenhouse_rails_data_server
ruby
## Code Before: require 'date' module Greenhouse class ImageDatum < ActiveRecord::Base include WeatherHelper belongs_to :greenhouse_data_point, class_name: 'Greenhouse::DataPoint' self.table_name = 'gh_image_data' def self.most_recent_image_name most_recent_record = Greenhouse::ImageDatum.orde...
0f907a3e9ffcab8727bc93216cbf8770bb277932
templates/bower.json
templates/bower.json
{ "name": "<%= pkg.name %>", "version": "{{pkg.version}}", {{#if authors}}"authors": {{authors}},{{/if}}{{#if author}}"author": "{{author}}",{{/if}} "private": true, "dependencies": { "bootstrap": "~3.1.0", "backbone": "~1.1.0", "jquery": "~2.1.0", "underscore": "~1.5.2" } }
{ "name": "<%= pkg.name %>", "version": "<%= pkg.version %>", <% if(pkg.authors) { %><%= '"authors": ' + JSON.stringify(pkg.authors) + ',' %><% } else { %><%= '"author": ' + JSON.stringify(pkg.author) + ',' %><% } %> "private": true }
Switch to full ejs template
Switch to full ejs template
JSON
mit
PaulAvery/sails-generate-gulp-bower
json
## Code Before: { "name": "<%= pkg.name %>", "version": "{{pkg.version}}", {{#if authors}}"authors": {{authors}},{{/if}}{{#if author}}"author": "{{author}}",{{/if}} "private": true, "dependencies": { "bootstrap": "~3.1.0", "backbone": "~1.1.0", "jquery": "~2.1.0", "underscore": "~1.5.2" } } ...
a00a62f147489141cfb7d3fb2d10e08e8f161e01
demo/js/components/workbench-new.js
demo/js/components/workbench-new.js
angular.module('yds').directive('ydsWorkbenchNew', ['$ocLazyLoad', '$timeout', '$window', 'Data', 'Basket', 'Workbench', function ($ocLazyLoad, $timeout, $window, Data, Basket, Workbench) { return { restrict: 'E', scope: { lang: '@', userId: '@' ...
angular.module('yds').directive('ydsWorkbenchNew', ['$ocLazyLoad', '$timeout', '$window', 'Data', 'Basket', 'Workbench', function ($ocLazyLoad, $timeout, $window, Data, Basket, Workbench) { return { restrict: 'E', scope: { lang: '@', userId: '@' ...
Disable steps that are not needed in Highcharts Editor
Disable steps that are not needed in Highcharts Editor
JavaScript
apache-2.0
YourDataStories/components-visualisation,YourDataStories/components-visualisation,YourDataStories/components-visualisation
javascript
## Code Before: angular.module('yds').directive('ydsWorkbenchNew', ['$ocLazyLoad', '$timeout', '$window', 'Data', 'Basket', 'Workbench', function ($ocLazyLoad, $timeout, $window, Data, Basket, Workbench) { return { restrict: 'E', scope: { lang: '@', us...
44e7523e9106bb6cf962e80b1ddaa400397d1e2e
app/assets/javascripts/add_skill.js
app/assets/javascripts/add_skill.js
function addSkill() { $("#new_skill").on("submit", function (event) { event.preventDefault(); var $target = $(event.target); if ($('#skill_title').val() === "") { alert("No skill specified"); } else { $.ajax({ url: $target.attr("action") + '.json', type: "post", dat...
function addSkill() { $("#new_skill").on("submit", function (event) { event.preventDefault(); var $target = $(event.target); if ($('#skill_title').val() === "") { alert("No skill specified"); } else { $.ajax({ url: $target.attr("action") + '.json', type: "post", dat...
Append skill title to vertical-tabs
Append skill title to vertical-tabs
JavaScript
mit
costolo/chain,costolo/chain,costolo/chain
javascript
## Code Before: function addSkill() { $("#new_skill").on("submit", function (event) { event.preventDefault(); var $target = $(event.target); if ($('#skill_title').val() === "") { alert("No skill specified"); } else { $.ajax({ url: $target.attr("action") + '.json', type: "po...
622940ef605dfe33117c4383f4b5828628430473
scripts/run-avd.sh
scripts/run-avd.sh
echo no | android create avd --force -n test -t android-24 --abi armeabi-v7a emulator -avd test -no-audio -no-window & android-wait-for-emulator adb shell input keyevent 82 &
echo no | android create avd --force -n test -t android-24 --abi armeabi-v7a emulator -avd test -no-window -no-boot-anim & adb wait-for-device adb shell input keyevent 82 &
Remove audio flag from avd
Remove audio flag from avd
Shell
apache-2.0
joaoevangelista/Convertx,joaoevangelista/Convertx
shell
## Code Before: echo no | android create avd --force -n test -t android-24 --abi armeabi-v7a emulator -avd test -no-audio -no-window & android-wait-for-emulator adb shell input keyevent 82 & ## Instruction: Remove audio flag from avd ## Code After: echo no | android create avd --force -n test -t android-24 --abi arme...
79a27054c8a34f39c9b30228638871239f4bb9a1
Lib.AspNetCore.Mvc.Security/project.json
Lib.AspNetCore.Mvc.Security/project.json
{ "version": "1.0.0-rc1", "description": "Lib.AspNetCore.Mvc.Security is a library which provides security features like Content Security Policy Level 2 and Strict Transport Security for ASP.NET Core", "authors": [ "Tomasz Pęczek" ], "copyright": "Copyright © 2016 Tomasz Pęczek", "packOptions": { "tags": ...
{ "version": "1.0.0", "description": "Lib.AspNetCore.Mvc.Security is a library which provides security features like Content Security Policy Level 2 and Strict Transport Security for ASP.NET Core", "authors": [ "Tomasz Pęczek" ], "copyright": "Copyright © 2016 Tomasz Pęczek", "packOptions": { "tags": [ "a...
Upgrade to ASP.NET Core 1.0 Final
Upgrade to ASP.NET Core 1.0 Final
JSON
mit
tpeczek/Lib.AspNetCore.Security
json
## Code Before: { "version": "1.0.0-rc1", "description": "Lib.AspNetCore.Mvc.Security is a library which provides security features like Content Security Policy Level 2 and Strict Transport Security for ASP.NET Core", "authors": [ "Tomasz Pęczek" ], "copyright": "Copyright © 2016 Tomasz Pęczek", "packOptions"...
d60ffa204e581ce456e72a0499a7b2e32f7a6736
web/views/task_view.ex
web/views/task_view.ex
defmodule MyApp_802337.TaskView do use MyApp_802337.Web, :view def render("index.json", %{tasks: tasks}) do %{data: render_many(tasks, "task.json")} end def render("show.json", %{task: task}) do %{data: render_one(task, "task.json")} end def render("task.json", %{task: task}) do %{id: task.id...
defmodule MyApp_802337.TaskView do use MyApp_802337.Web, :view def render("index.json", %{tasks: tasks}) do %{data: render_many(tasks, "task.json")} end def render("show.json", %{task: task}) do %{data: render_one(task, "task.json")} end def render("task.json", %{task: task}) do %{id: task.id...
Add fields to the json view.
Add fields to the json view.
Elixir
mit
wsmoak/my_app_802337
elixir
## Code Before: defmodule MyApp_802337.TaskView do use MyApp_802337.Web, :view def render("index.json", %{tasks: tasks}) do %{data: render_many(tasks, "task.json")} end def render("show.json", %{task: task}) do %{data: render_one(task, "task.json")} end def render("task.json", %{task: task}) do ...
3990ad03281e28d4bae3c172f4ffba79355d1cef
resources/views/cms/about.blade.php
resources/views/cms/about.blade.php
@extends('layouts.master') @section('title', 'Home') @section('description', 'Converter to create mp3 podcasts to subcribe in itunes for your articles.') @section('content') <section class="main-inner"> <p>Created on a <a href="http://www.meetup.com/Meanbee-Hack-Nights/">Meanbee Hacknight</a>.</p> ...
@extends('layouts.master') @section('title', 'About') @section('description', 'Find out more about why we created Articles to Podcast with Pocket.') @section('content') <section class="main-inner"> <p>Created on a <a href="http://www.meetup.com/Meanbee-Hack-Nights/">Meanbee hack night</a>.</p> <p...
Update title of the about page.
Update title of the about page.
PHP
mit
meanbee/articles-to-podcast,meanbee/articles-to-podcast,meanbee/articles-to-podcast
php
## Code Before: @extends('layouts.master') @section('title', 'Home') @section('description', 'Converter to create mp3 podcasts to subcribe in itunes for your articles.') @section('content') <section class="main-inner"> <p>Created on a <a href="http://www.meetup.com/Meanbee-Hack-Nights/">Meanbee Hacknight<...
2c27c5ee2b016130b08609032c6422a87dab99ee
.travis.yml
.travis.yml
language: objective-c osx_image: xcode7 env: matrix: - TEST_SDK=macosx10.11 TEST_SCHEME="TrustKit OS X" - TEST_SDK=iphonesimulator9.0 TEST_SCHEME=TrustKit - TEST_SDK=iphonesimulator9.0 TEST_SCHEME=TrustKit_Static script: - xcodebuild clean -project TrustKit.xcodeproj -scheme "$TEST_SCHEME" -configurati...
language: objective-c osx_image: xcode7 env: matrix: - TEST_SDK=macosx10.11 TEST_SCHEME="TrustKit OS X" - TEST_SDK=iphonesimulator9.0 TEST_SCHEME=TrustKit - TEST_SDK=iphonesimulator9.0 TEST_SCHEME=TrustKit_Static - TEST_SDK=appletvsimulator9.0 TEST_SCHEME="TrustKit tvOS" script: - xcodebuild clean ...
Add tvOS tests to Travis
Add tvOS tests to Travis
YAML
mit
datatheorem/TrustKit,datatheorem/TrustKit,datatheorem/TrustKit,datatheorem/TrustKit
yaml
## Code Before: language: objective-c osx_image: xcode7 env: matrix: - TEST_SDK=macosx10.11 TEST_SCHEME="TrustKit OS X" - TEST_SDK=iphonesimulator9.0 TEST_SCHEME=TrustKit - TEST_SDK=iphonesimulator9.0 TEST_SCHEME=TrustKit_Static script: - xcodebuild clean -project TrustKit.xcodeproj -scheme "$TEST_SCHE...
5b05e964a965d50e6bb29af88a958edbff2875f0
assets/scss/style.scss
assets/scss/style.scss
// Use Compass @import "compass"; // Reset using Normalize @import "normalize"; // Import fonts from Google @import url(http://fonts.googleapis.com/css?family=Open+Sans:300,400,800); @import url(http://fonts.googleapis.com/css?family=PT+Serif:400,700,400italic,700italic); // Site configuration @import "config"; /...
// Use Compass @import "compass"; // Reset using Normalize @import "normalize"; // Import fonts from Google @import url(http://fonts.googleapis.com/css?family=Open+Sans:300,400,800); @import url(http://fonts.googleapis.com/css?family=PT+Serif:400,700,400italic,700italic); // Site configuration @import "config"; /...
Add css for about page
Add css for about page
SCSS
mit
CheramiCards/blog,CheramiCards/blog,CheramiCards/blog
scss
## Code Before: // Use Compass @import "compass"; // Reset using Normalize @import "normalize"; // Import fonts from Google @import url(http://fonts.googleapis.com/css?family=Open+Sans:300,400,800); @import url(http://fonts.googleapis.com/css?family=PT+Serif:400,700,400italic,700italic); // Site configuration @impo...
50dd832e6365f9448ada4da2b5c125dfe81336c5
lib/vagrant/util.rb
lib/vagrant/util.rb
module Vagrant module Util autoload :Busy, 'vagrant/util/busy' autoload :CommandDeprecation, 'vagrant/util/command_deprecation' autoload :Counter, 'vagrant/util/counter' autoload :CredentialScrubber, 'vagrant/util/credential_scrubber' autoload :...
module Vagrant module Util autoload :Busy, 'vagrant/util/busy' autoload :CommandDeprecation, 'vagrant/util/command_deprecation' autoload :Counter, 'vagrant/util/counter' autoload :CredentialScrubber, 'vagrant/util/credential_scrubber' autoload :...
Include `Which` within Util autoloads
Include `Which` within Util autoloads
Ruby
mit
gitebra/vagrant,chrisroberts/vagrant,justincampbell/vagrant,bshurts/vagrant,crashlytics/vagrant,crashlytics/vagrant,chrisroberts/vagrant,PatrickLang/vagrant,mwrock/vagrant,benh57/vagrant,mitchellh/vagrant,mwrock/vagrant,benh57/vagrant,taliesins/vagrant,chrisroberts/vagrant,sni/vagrant,gitebra/vagrant,mitchellh/vagrant,...
ruby
## Code Before: module Vagrant module Util autoload :Busy, 'vagrant/util/busy' autoload :CommandDeprecation, 'vagrant/util/command_deprecation' autoload :Counter, 'vagrant/util/counter' autoload :CredentialScrubber, 'vagrant/util/credential_scrubber...
6f6535c29cf75c5f958866e03403d14416e6e3de
ext/extconf.rb
ext/extconf.rb
require 'mkmf' if ARGV.include?("--use-float") || ARGV.include?("-F") $CFLAGS += " -DUSE_FLOAT" puts "Using float as base type" else puts "Using double as base type" end have_library('m', 'cos') create_makefile('snow-math/bindings', 'snow-math/')
require 'mkmf' # Compile as C99 $CFLAGS += " -std=c99" if ARGV.include?("--use-float") || ARGV.include?("-F") $CFLAGS += " -DUSE_FLOAT" puts "Using float as base type" else puts "Using double as base type" end have_library('m', 'cos') create_makefile('snow-math/bindings', 'snow-math/')
Add flag to compile as C99.
Add flag to compile as C99. Because screw C89.
Ruby
bsd-2-clause
nilium/ruby-snowmath,nilium/ruby-snowmath
ruby
## Code Before: require 'mkmf' if ARGV.include?("--use-float") || ARGV.include?("-F") $CFLAGS += " -DUSE_FLOAT" puts "Using float as base type" else puts "Using double as base type" end have_library('m', 'cos') create_makefile('snow-math/bindings', 'snow-math/') ## Instruction: Add flag to compile as C99. B...
a6c311e1301dfef75951c5e4412e93cfa80a01bd
appveyor.yml
appveyor.yml
skip_branch_with_pr: true environment: HOME: $(HOMEDRIVE)$(HOMEPATH) cache: - $(HOME)\.gradle\caches\build-cache-1 - $(HOME)\.gradle\caches\jars-1 - $(HOME)\.gradle\caches\jars-2 - $(HOME)\.gradle\caches\jars-3 - $(HOME)\.gradle\caches\modules-2 - $(HOME)\.gradle\caches\transforms-1 - $(HOME)\.gradle\...
skip_branch_with_pr: true environment: HOME: $(HOMEDRIVE)$(HOMEPATH) cache: - $(HOME)\.gradle\caches\build-cache-1 - $(HOME)\.gradle\caches\jars-1 - $(HOME)\.gradle\caches\jars-2 - $(HOME)\.gradle\caches\jars-3 - $(HOME)\.gradle\caches\modules-2 - $(HOME)\.gradle\caches\transforms-1 - $(HOME)\.gradle\...
Use Java 8 on AppVeyor
Use Java 8 on AppVeyor There seem to be issues with Java 9.
YAML
mit
kotlintest/kotlintest,sksamuel/ktest,kotlintest/kotlintest,kotlintest/kotlintest
yaml
## Code Before: skip_branch_with_pr: true environment: HOME: $(HOMEDRIVE)$(HOMEPATH) cache: - $(HOME)\.gradle\caches\build-cache-1 - $(HOME)\.gradle\caches\jars-1 - $(HOME)\.gradle\caches\jars-2 - $(HOME)\.gradle\caches\jars-3 - $(HOME)\.gradle\caches\modules-2 - $(HOME)\.gradle\caches\transforms-1 - ...
c129b435a7759104feaaa5b828dc2f2ac46d5ab1
src/cmdlinetest/afp_mock.py
src/cmdlinetest/afp_mock.py
from bottle import route from textwrap import dedent from bottledaemon import daemon_run """ Simple AFP mock to allow testing the afp-cli. """ @route('/account') def account(): return """{"test_account": ["test_role"]}""" @route('/account/<account>/<role>') def credentials(account, role): return dedent(""" ...
""" Simple AFP mock to allow testing the afp-cli. """ from bottle import route from textwrap import dedent from bottledaemon import daemon_run @route('/account') def account(): return """{"test_account": ["test_role"]}""" @route('/account/<account>/<role>') def credentials(account, role): return dedent(""" ...
Move string above the imports so it becomes a docstring
Move string above the imports so it becomes a docstring
Python
apache-2.0
ImmobilienScout24/afp-cli,ImmobilienScout24/afp-cli,ImmobilienScout24/afp-cli
python
## Code Before: from bottle import route from textwrap import dedent from bottledaemon import daemon_run """ Simple AFP mock to allow testing the afp-cli. """ @route('/account') def account(): return """{"test_account": ["test_role"]}""" @route('/account/<account>/<role>') def credentials(account, role): re...
34fb27c8dd1d0fb4203d8199bd267eff5773cc76
src/lib/assets/index.js
src/lib/assets/index.js
const fs = require('fs'); const childProcess = require('child_process'); let version = require('../../../package.json').version; try { version = childProcess.execSync('git log -1 "--format=%H"', { encoding: 'utf8' }).trim(); } catch (e) { try { version = fs.readFileSync(__dirname + '/../../../sha.txt', 'utf8').tri...
const fs = require('fs'); const childProcess = require('child_process'); let version = require('../../../package.json').version; try { version = childProcess.execSync('git log -1 "--format=%H"', { encoding: 'utf8' }).trim(); } catch (e) { try { version = fs.readFileSync(__dirname + '/../../../sha.txt', 'utf8').tri...
Add support for CC's COMMIT_ID env var
Add support for CC's COMMIT_ID env var
JavaScript
mit
jsdelivr/beta.jsdelivr.com,jsdelivr/beta.jsdelivr.com,jsdelivr/beta.jsdelivr.com
javascript
## Code Before: const fs = require('fs'); const childProcess = require('child_process'); let version = require('../../../package.json').version; try { version = childProcess.execSync('git log -1 "--format=%H"', { encoding: 'utf8' }).trim(); } catch (e) { try { version = fs.readFileSync(__dirname + '/../../../sha.t...
51bcfe9ae0996736afa90f524c9f9c74fce98274
playgrounds/SceneKit.playground/section-1.swift
playgrounds/SceneKit.playground/section-1.swift
// Playground: SceneKit import Cocoa import SceneKit import QuartzCore // for the basic animation import XCPlayground // for the live preview // create a scene view with an empty scene var sceneView = SCNView(frame:CGRect(x:0, y:0, width:300, height:300)) // New scene var scene = SCNScene() // Connect the scene to th...
// Playground: SceneKit import Cocoa import SceneKit import QuartzCore // for the basic animation import XCPlayground // for the live preview // create a scene view with an empty scene var sceneView = SCNView(frame:CGRect(x:0, y:0, width:300, height:300)) // New scene var scene = SCNScene() // Connect the scene to th...
Connect the geometry object to the scene
Connect the geometry object to the scene
Swift
mit
domenicosolazzo/practice-swift,hanhailong/practice-swift,nguyenantinhbk77/practice-swift,domenicosolazzo/practice-swift,hanhailong/practice-swift,nguyenantinhbk77/practice-swift,nguyenantinhbk77/practice-swift,domenicosolazzo/practice-swift,nguyenantinhbk77/practice-swift,domenicosolazzo/practice-swift,hanhailong/pract...
swift
## Code Before: // Playground: SceneKit import Cocoa import SceneKit import QuartzCore // for the basic animation import XCPlayground // for the live preview // create a scene view with an empty scene var sceneView = SCNView(frame:CGRect(x:0, y:0, width:300, height:300)) // New scene var scene = SCNScene() // Connect...
55edcb32025f1e140d13fb0a8c5239da33c1376c
views/general-file.hbs
views/general-file.hbs
{{> layout_start_document}} <link rel="stylesheet" href="/public/css/general-file.css"> {{> layout_start_body}} <main> <header> <h1>File contents</h1> </header> <section class="content-controls"> <button class="back-button call-to-action" onclick="window.history.back()"></button> </section> <p class="...
{{> layout_start_document}} <link rel="stylesheet" href="/public/css/general-file.css"> {{> layout_start_body}} <main> <header> <h1>File contents</h1> </header> <section class="content-controls"> <button class="back-button call-to-action" onclick="window.history.back()"></button> </section> <section> ...
Fix small screen layout for file which have not been parsed.
Fix small screen layout for file which have not been parsed.
Handlebars
mit
oss-specs/specs,oss-specs/specs
handlebars
## Code Before: {{> layout_start_document}} <link rel="stylesheet" href="/public/css/general-file.css"> {{> layout_start_body}} <main> <header> <h1>File contents</h1> </header> <section class="content-controls"> <button class="back-button call-to-action" onclick="window.history.back()"></button> </secti...
f7174150c99062608dba8f71a4d16e6bf8a5186f
lib/handlebars_assets/engine.rb
lib/handlebars_assets/engine.rb
module HandlebarsAssets # NOTE: must be an engine because we are including assets in the gem class Engine < ::Rails::Engine initializer "handlebars_assets.assets.register", :group => :all do |app| ::HandlebarsAssets::register_extensions(app.assets) if Gem::Version.new(Sprockets::VERSION) < Gem::Vers...
module HandlebarsAssets # NOTE: must be an engine because we are including assets in the gem class Engine < ::Rails::Engine initializer "handlebars_assets.assets.register", :group => :all do |app| sprockets_env = app.assets || Sprockets ::HandlebarsAssets::register_extensions(sprockets_env) if...
Handle when asset compilation is off in rails.
Handle when asset compilation is off in rails.
Ruby
mit
cgvarela/handlebars_assets,cgvarela/handlebars_assets,leshill/handlebars_assets,envato/handlebars_assets,leshill/handlebars_assets,envato/handlebars_assets
ruby
## Code Before: module HandlebarsAssets # NOTE: must be an engine because we are including assets in the gem class Engine < ::Rails::Engine initializer "handlebars_assets.assets.register", :group => :all do |app| ::HandlebarsAssets::register_extensions(app.assets) if Gem::Version.new(Sprockets::VERS...
0ba70829d078471240c1926ab439d2ffd2c84509
app/models/searchable.rb
app/models/searchable.rb
module Searchable class DocumentInstanceAccessor < Sunspot::Adapters::InstanceAdapter def id @instance.id end end class DocumentDataAccessor < Sunspot::Adapters::DataAccessor def load(id) Child.get(id) end end def self.included(klass) klass.extend ClassMethods klass.class...
module Searchable class DocumentInstanceAccessor < Sunspot::Adapters::InstanceAdapter def id @instance.id end end class DocumentDataAccessor < Sunspot::Adapters::DataAccessor def load(id) Child.get(id) end end def self.included(klass) klass.extend ClassMethods klass.class...
FIX - Ashok - Reindex solr if solr is not in sync with couchdb data
FIX - Ashok - Reindex solr if solr is not in sync with couchdb data
Ruby
agpl-3.0
mwangiann/RapidFTR,tomclement/RapidFTR,sferik/RapidFTR,mwangiann/RapidFTR,tomclement/RapidFTR,austiine04/RapidFTR,tomclement/RapidFTR,ctumwebaze/RapidFTR,ctumwebaze/RapidFTR,sorashiro/RapidFTR,austiine04/RapidFTR,sriprasanna/RapidFTR,sorashiro/RapidFTR,rapidftr/RapidFTR,sriprasanna/RapidFTR,sriprasanna/RapidFTR,timothy...
ruby
## Code Before: module Searchable class DocumentInstanceAccessor < Sunspot::Adapters::InstanceAdapter def id @instance.id end end class DocumentDataAccessor < Sunspot::Adapters::DataAccessor def load(id) Child.get(id) end end def self.included(klass) klass.extend ClassMethods...
d4597ab70abf1b3a1ffadfd685b48cfe9ac2ff49
src/Zoomdata.js
src/Zoomdata.js
const ZoomdataSDK = window.ZoomdataSDK; const application = { host: 'preview.zoomdata.com', port: 443, path: '/zoomdata', secure: true, }; const credentials = { key: 'PHD5icxZK5', }; export function getClient() { return ZoomdataSDK.createClient({ application, credentials }); }
const ZoomdataSDK = window.ZoomdataSDK; const application = { host: 'live.zoomdata.com', port: 443, path: '/zoomdata', secure: true, }; const credentials = { key: '58cbe712e4b0336a00f938d7', }; export function getClient() { return ZoomdataSDK.createClient({ application, credentials }); }
Update connection to live server
Update connection to live server
JavaScript
mit
Zoomdata/nhtsa-dashboard,Zoomdata/nhtsa-dashboard
javascript
## Code Before: const ZoomdataSDK = window.ZoomdataSDK; const application = { host: 'preview.zoomdata.com', port: 443, path: '/zoomdata', secure: true, }; const credentials = { key: 'PHD5icxZK5', }; export function getClient() { return ZoomdataSDK.createClient({ application, credentials }); } ## Instruc...
48b7a40ec9d0dc0ded1a44bb12bdc7151f3627d3
lib/hubble_api_client/connection/base.rb
lib/hubble_api_client/connection/base.rb
module HubbleApiClient # @api private module Connection class Base private def self.get_http_request(uri) request = Net::HTTP::Get.new(uri.request_uri) assign_headers(request) end def self.post_http_request(uri, body) request = Net::HTTP::Post.new uri req...
module HubbleApiClient # @api private module Connection class Base private def self.get_http_request(uri) request = Net::HTTP::Get.new(uri.request_uri) assign_headers(request) end def self.post_http_request(uri, body) request = Net::HTTP::Post.new uri req...
Add Content-Type header from JSON API spec
Add Content-Type header from JSON API spec
Ruby
mit
Fullscreen/hubble_observatory,Fullscreen/hubble_observatory
ruby
## Code Before: module HubbleApiClient # @api private module Connection class Base private def self.get_http_request(uri) request = Net::HTTP::Get.new(uri.request_uri) assign_headers(request) end def self.post_http_request(uri, body) request = Net::HTTP::Post.new...
4aa06dd69404818bad47be288abce831dcafdf31
Sources/hspp/Policies/IoPolicy.cpp
Sources/hspp/Policies/IoPolicy.cpp
// Copyright (c) 2018 Chris Ohk, Youngjoong Kim, SeungHyun Jeon // We are making my contributions/submissions to this project solely in our // personal capacity and are not conveying any rights to any intellectual // property of any third parties. #include <hspp/Commons/Utils.hpp> #include <hspp/Policies/IoPolicy.hpp...
// Copyright (c) 2018 Chris Ohk, Youngjoong Kim, SeungHyun Jeon // We are making my contributions/submissions to this project solely in our // personal capacity and are not conveying any rights to any intellectual // property of any third parties. #include <hspp/Commons/Utils.hpp> #include <hspp/Policies/IoPolicy.hpp...
Correct 'unused private field' warning
fix: Correct 'unused private field' warning
C++
mit
Hearthstonepp/Hearthstonepp,Hearthstonepp/Hearthstonepp
c++
## Code Before: // Copyright (c) 2018 Chris Ohk, Youngjoong Kim, SeungHyun Jeon // We are making my contributions/submissions to this project solely in our // personal capacity and are not conveying any rights to any intellectual // property of any third parties. #include <hspp/Commons/Utils.hpp> #include <hspp/Polic...
04673432828ef45f98331cfa6428fa71bb66c8f1
src/main/resources/populate_subset_2_refset.sql
src/main/resources/populate_subset_2_refset.sql
-- Original SubsetIds are not known in RF2, so we need to populate those INSERT INTO RF2_subset2refset (originalSubsetId, SubsetName, RefsetId, fsn, location) values (100032, 'GB English Language reference set', 900000000000508004, 'Great Britain English language reference set (foundation metadata concept)', 'Refset/C...
-- Original SubsetIds are not known in RF2, so we need to populate those INSERT INTO RF2_subset2refset (originalSubsetId, SubsetName, RefsetId, fsn, location) values (100032, 'GB English Dialect Subset', 900000000000508004, 'Great Britain English language reference set (foundation metadata concept)', 'Refset/Content/'...
Correct subset names for US/GB English
Correct subset names for US/GB English
SQL
apache-2.0
IHTSDO/rf2-to-rf1-conversion,IHTSDO/rf2-to-rf1-conversion
sql
## Code Before: -- Original SubsetIds are not known in RF2, so we need to populate those INSERT INTO RF2_subset2refset (originalSubsetId, SubsetName, RefsetId, fsn, location) values (100032, 'GB English Language reference set', 900000000000508004, 'Great Britain English language reference set (foundation metadata conc...
d3435c9782d69060d034dfed9d127860410e4366
static/css/base-theme.css
static/css/base-theme.css
.navbar{ margin-bottom: 0px; } .panel-default {padding: 20px;} div.field{margin: 20px 0px; } div.pnl-btns{ margin: 20px 10px; text-align: right; } .wf_dropdown_lbl{ margin: 0px 20px; } .required{color: blue;} .error{color: red; font-weight:900;} label[for]{cursor:pointer;} /* Mobile Device */ @media screen and (max-de...
.navbar{ margin-bottom: 0px; } .panel-default {padding: 20px;} div.field{margin: 20px 0px; } div.pnl-btns{margin: 20px 10px; text-align:right;} div.pnl-lbtns{margin: 20px 10px;} div.pnl-rbtns{margin: 20px 10px; text-align:right;} .wf_dropdown_lbl{ margin: 0px 20px; } .required{color: blue;} .error{color: red; font-weig...
Add classes div.pnl-lbtns and div.pnl-rbtns
Add classes div.pnl-lbtns and div.pnl-rbtns
CSS
apache-2.0
kensonman/webframe,kensonman/webframe,kensonman/webframe
css
## Code Before: .navbar{ margin-bottom: 0px; } .panel-default {padding: 20px;} div.field{margin: 20px 0px; } div.pnl-btns{ margin: 20px 10px; text-align: right; } .wf_dropdown_lbl{ margin: 0px 20px; } .required{color: blue;} .error{color: red; font-weight:900;} label[for]{cursor:pointer;} /* Mobile Device */ @media sc...
b99946c52d1a53580d40647d006bc90068930e77
test/imgViewer.html
test/imgViewer.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>ImgViewer Test Suite</title> <!-- Load local jQuery. This can be overridden with a ?jquery=___ param. --> <script src="../libs/jquery-loader.js"></script> <script src="../libs/jquery-ui.js"></script> <script src="../libs/jquery.mousewheel.min.js"><...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>imgNotes Test Suite</title> <!-- Load local jQuery. This can be overridden with a ?jquery=___ param. --> <script src="../libs/jquery-loader.js"></script> <script src="../libs/jquery-ui-loader.js"></script> <script src="../libs/jquery.mousewheel.min...
Add loader for jQuery-ui versions
Add loader for jQuery-ui versions
HTML
mit
waynegm/imgViewer,waynegm/imgViewer
html
## Code Before: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>ImgViewer Test Suite</title> <!-- Load local jQuery. This can be overridden with a ?jquery=___ param. --> <script src="../libs/jquery-loader.js"></script> <script src="../libs/jquery-ui.js"></script> <script src="../libs/jquery.mous...
4450bf39371fd17df18f8eee181a5f77303f5eee
src/medCore/medDataReaderWriter.h
src/medCore/medDataReaderWriter.h
struct medDataReaderWriter { typedef dtkSmartPointer<dtkAbstractDataReader> Reader; typedef dtkSmartPointer<dtkAbstractDataWriter> Writer; typedef dtkSmartPointer<dtkAbstractData> Data; static Reader reader(const QString& path); static Writer writer(const QString& path,const dtkAbstractData...
struct MEDCORE_EXPORT medDataReaderWriter { typedef dtkSmartPointer<dtkAbstractDataReader> Reader; typedef dtkSmartPointer<dtkAbstractDataWriter> Writer; typedef dtkSmartPointer<dtkAbstractData> Data; static Reader reader(const QString& path); static Writer writer(const QString& path,const ...
Correct for windows compilation (exports)
Correct for windows compilation (exports)
C
bsd-3-clause
NicolasSchnitzler/medInria-public,aabadie/medInria-public,aabadie/medInria-public,rdebroiz/medInria-public,NicolasSchnitzler/medInria-public,rdebroiz/medInria-public,NicolasSchnitzler/medInria-public,rdebroiz/medInria-public,aabadie/medInria-public
c
## Code Before: struct medDataReaderWriter { typedef dtkSmartPointer<dtkAbstractDataReader> Reader; typedef dtkSmartPointer<dtkAbstractDataWriter> Writer; typedef dtkSmartPointer<dtkAbstractData> Data; static Reader reader(const QString& path); static Writer writer(const QString& path,const...
542c7fedce8f12658512ed97bee5eeb58015586b
lib/cb/utils/validator.rb
lib/cb/utils/validator.rb
require 'json' module Cb module ResponseValidator def self.validate(response) if response.blank? || response.response.body.blank? return false end if response.code != 200 return false end begin json = JSON.parse(response.response.body) if json[json...
require 'json' module Cb module ResponseValidator def self.validate(response) if response.blank? || response.response.body.blank? return false end if response.code != 200 return false end begin json = JSON.parse(response.response.body) if json.keys...
Check if keys exist before accessing
Check if keys exist before accessing
Ruby
apache-2.0
careerbuilder/ruby-cb-api,cbdr/ruby-cb-api
ruby
## Code Before: require 'json' module Cb module ResponseValidator def self.validate(response) if response.blank? || response.response.body.blank? return false end if response.code != 200 return false end begin json = JSON.parse(response.response.body) ...
9e43fcc11b844cd7d52bc5208c2bd3e484e7ac8b
.travis.yml
.travis.yml
language: python python: - "2.7" sudo: true addons: apt: packages: - libatlas-dev - libatlas-base-dev - liblapack-dev - libproj-dev - gfortran - gdal-bin - libgdal1-dev install: # Expand include path for building python-gdal bindings. - export CP...
language: python python: - "2.7" before_install: - travis_retry wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh - chmod +x miniconda.sh - ./miniconda.sh -b - export PATH=/home/travis/miniconda/bin:$PATH - travis_retry conda update --yes conda install: ...
Switch to miniconda for faster scipy install.
Switch to miniconda for faster scipy install.
YAML
apache-2.0
ama-jharrison/agdc,ama-jharrison/agdc
yaml
## Code Before: language: python python: - "2.7" sudo: true addons: apt: packages: - libatlas-dev - libatlas-base-dev - liblapack-dev - libproj-dev - gfortran - gdal-bin - libgdal1-dev install: # Expand include path for building python-gdal bindings....
863fbd1d00ab1028f20573e16ef747bff3b0d3bb
web/app/themes/omoshetech/index.php
web/app/themes/omoshetech/index.php
<?php get_template_part('templates/page', 'header'); ?> <?php if (!have_posts()) : ?> <div class="alert alert-warning"> <?php _e('Sorry, no results were found.', 'roots'); ?> </div> <?php get_search_form(); ?> <?php endif; ?> <?php while (have_posts()) : the_post(); ?> <?php get_template_part('templates/c...
<?php get_template_part('templates/page', 'header'); ?> <?php if (!have_posts()) : ?> <div class="alert alert-warning"> <?php _e('Sorry, no results were found.', 'roots'); ?> </div> <?php endif; ?> <?php while (have_posts()) : the_post(); ?> <?php get_template_part('templates/content', get_post_format()); ?...
Remove the search form when it returns no results and add a pagination
Remove the search form when it returns no results and add a pagination
PHP
mit
omoshetech/website,omoshetech/website,omoshetech/website
php
## Code Before: <?php get_template_part('templates/page', 'header'); ?> <?php if (!have_posts()) : ?> <div class="alert alert-warning"> <?php _e('Sorry, no results were found.', 'roots'); ?> </div> <?php get_search_form(); ?> <?php endif; ?> <?php while (have_posts()) : the_post(); ?> <?php get_template_p...
b5fe50d5e3f0660cb65db985703e911c2ddd2650
README.md
README.md
[![GitHub release](https://img.shields.io/github/release/palashmon/car-names.svg?colorB=32cd32)](https://git.io/vyUIl) [![npm version](https://img.shields.io/npm/v/starwars-names.svg)](http://npm.im/car-names) [![MIT License](https://img.shields.io/npm/l/car-names.svg?colorB=0BD6D3)](http://opensource.org/licenses/MIT...
[![GitHub release](https://img.shields.io/github/release/palashmon/car-names.svg?colorB=32cd32)](https://git.io/vyUIl) [![npm version](https://img.shields.io/npm/v/starwars-names.svg)](http://npm.im/car-names) [![npm downloads](https://img.shields.io/npm/dm/car-names.svg)](http://npm-stat.com/charts.html?package=car-n...
Add a npm downloads badge
Add a npm downloads badge
Markdown
mit
palashmon/car-names
markdown
## Code Before: [![GitHub release](https://img.shields.io/github/release/palashmon/car-names.svg?colorB=32cd32)](https://git.io/vyUIl) [![npm version](https://img.shields.io/npm/v/starwars-names.svg)](http://npm.im/car-names) [![MIT License](https://img.shields.io/npm/l/car-names.svg?colorB=0BD6D3)](http://opensource....
159a49826eba438280edd1822b3ed36a45b11ae5
.github/workflows/dockerimage.yml
.github/workflows/dockerimage.yml
name: Check if a Docker image can be built on: [push, pull_request] jobs: build_docker_image: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: Build the Docker image run: | docker build . --tag ${{ github.repository }} docker images - name: Run tests ins...
name: Check if a Docker image can be built on: [push, pull_request] jobs: build_docker_image: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: Build the Docker image env: # @see https://testdriven.io/blog/faster-ci-builds-with-docker-cache/ CACHE_IMAGE: macb...
Use Docker layers cache to speed up CI builds
Use Docker layers cache to speed up CI builds See https://testdriven.io/blog/faster-ci-builds-with-docker-cache/
YAML
bsd-2-clause
macbre/phantomas,gmetais/phantomas,gmetais/phantomas,macbre/phantomas,macbre/phantomas,gmetais/phantomas
yaml
## Code Before: name: Check if a Docker image can be built on: [push, pull_request] jobs: build_docker_image: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: Build the Docker image run: | docker build . --tag ${{ github.repository }} docker images - nam...
fa5591de41d27c3d90cb7ea5d5f8a19e4e6110da
app/services/spree_shopify_importer/connections/base.rb
app/services/spree_shopify_importer/connections/base.rb
module SpreeShopifyImporter module Connections class Base class << self def count(**opts) api_class.get(:count, opts) end def all(**opts) results = [] find_in_batches(**opts) do |batch| break if batch.blank? results += batch ...
module SpreeShopifyImporter module Connections class Base class << self def count(**opts) api_class.get(:count, opts) end def all(**opts) results = [] find_in_batches(**opts) do |batch| break if batch.blank? results += batch ...
Break pagination loop if result is empty
Break pagination loop if result is empty Haven't really tested this, just spotted it as I came here to grab the ShopifyAPI pagination code. :)
Ruby
bsd-3-clause
spark-solutions/spree_shopify_importer,spark-solutions/spree_shopify_importer
ruby
## Code Before: module SpreeShopifyImporter module Connections class Base class << self def count(**opts) api_class.get(:count, opts) end def all(**opts) results = [] find_in_batches(**opts) do |batch| break if batch.blank? resul...
c925a7d9aa57a5e4436cea8902518f93875230f3
src/tests/recursion/stack_recursion.c
src/tests/recursion/stack_recursion.c
/** * @file * @brief tests proper stack usage (particularly, right handling * of window overflow/underflow on SPARC). * * @date 14.08.09 * @author Eldar Abusalimov */ #include <embox/test.h> #include <test/misc.h> #define RECURSION_DEPTH 32 EMBOX_TEST(run); static int run(void) { return test_misc_recursion(...
/** * @file * @brief Tests proper stack usage. * * @date 14.08.09 * @author Eldar Abusalimov */ #include <embox/test.h> #include <test/misc.h> EMBOX_TEST_SUITE("Stack usage tests"); static int fib(int k) { if (k < 2) { return k; } else { return fib(k - 1) + fib(k - 2); } } TEST_CASE("Recursively calcul...
Rewrite recursion test to calculate Fibonacci
Rewrite recursion test to calculate Fibonacci
C
bsd-2-clause
Kefir0192/embox,gzoom13/embox,gzoom13/embox,vrxfile/embox-trik,Kakadu/embox,vrxfile/embox-trik,embox/embox,mike2390/embox,Kakadu/embox,vrxfile/embox-trik,Kefir0192/embox,Kefir0192/embox,Kakadu/embox,mike2390/embox,mike2390/embox,abusalimov/embox,Kefir0192/embox,Kakadu/embox,mike2390/embox,mike2390/embox,embox/embox,emb...
c
## Code Before: /** * @file * @brief tests proper stack usage (particularly, right handling * of window overflow/underflow on SPARC). * * @date 14.08.09 * @author Eldar Abusalimov */ #include <embox/test.h> #include <test/misc.h> #define RECURSION_DEPTH 32 EMBOX_TEST(run); static int run(void) { return test...
14460e4928353287b8133b86b5868798ea0812d0
application/chrome/content/wesabe/ofx/Status.coffee
application/chrome/content/wesabe/ofx/Status.coffee
type = require 'lang/type' class Status constructor: (@code, @status, @message) -> isSuccess: -> @code in ["0", "1"] isError: -> not @isSuccess() isGeneralError: -> @code is '2000' isAuthenticationError: -> @code is '15500' isAuthorizationError: -> @code is '15000' or @code is '15...
type = require 'lang/type' privacy = require 'util/privacy' class Status constructor: (@code, @status, @message) -> isSuccess: -> @code in ["0", "1"] isError: -> not @isSuccess() isGeneralError: -> @code is '2000' isAuthenticationError: -> @code is '15500' isAuthorizationError: -> ...
Stop referencing the old style naming for util/privacy.
Stop referencing the old style naming for util/privacy.
CoffeeScript
apache-2.0
wesabe/ssu,wesabe/ssu,wesabe/ssu,wesabe/ssu,wesabe/ssu
coffeescript
## Code Before: type = require 'lang/type' class Status constructor: (@code, @status, @message) -> isSuccess: -> @code in ["0", "1"] isError: -> not @isSuccess() isGeneralError: -> @code is '2000' isAuthenticationError: -> @code is '15500' isAuthorizationError: -> @code is '15000'...
af0a7eb97b629ff5f2b163ffe4058f48f2a4ae6e
build-windows.cmd
build-windows.cmd
electron-packager .\ Squiffy --platform=win32 --arch=ia32 --version=0.27.3 --app-bundle-id=uk.co.textadventures.squiffy --icon=squiffy.ico --app-version=3.9.0 --ignore=Output
electron-packager .\ Squiffy --platform=win32 --arch=ia32 --version=0.27.3 --app-bundle-id=uk.co.textadventures.squiffy --icon=squiffy.ico --app-version=3.9.0 --ignore=Output --version-string.ProductName=Squiffy --version-string.FileDescription=Squiffy --version-string.LegalCopyright="Copyright (c) 2015 Alex Warren" --...
Set Windows resource version info
Set Windows resource version info
Batchfile
mit
textadventures/squiffy-editor,textadventures/squiffy-editor
batchfile
## Code Before: electron-packager .\ Squiffy --platform=win32 --arch=ia32 --version=0.27.3 --app-bundle-id=uk.co.textadventures.squiffy --icon=squiffy.ico --app-version=3.9.0 --ignore=Output ## Instruction: Set Windows resource version info ## Code After: electron-packager .\ Squiffy --platform=win32 --arch=ia32 --ver...
785e223325cbce75b63a93db432fec2d2bea6dca
mixin/test/js/qunit-shim.js
mixin/test/js/qunit-shim.js
// Temporary Shim File for use while migrating from QUnit to Mocha /*global chai */ function qunitShim() { var _currentTest, _describe = describe; function emitQUnit() { if (_currentTest) { _describe(_currentTest.name, function() { var config = _currentTest.config; if (config && con...
// Temporary Shim File for use while migrating from QUnit to Mocha /*global chai */ function qunitShim() { var _currentTest, _describe = describe; function emitQUnit() { if (_currentTest) { _describe(_currentTest.name, function() { var config = _currentTest.config; if (config && con...
Add skip support to shim
Add skip support to shim
JavaScript
mit
walmartlabs/phoenix-build
javascript
## Code Before: // Temporary Shim File for use while migrating from QUnit to Mocha /*global chai */ function qunitShim() { var _currentTest, _describe = describe; function emitQUnit() { if (_currentTest) { _describe(_currentTest.name, function() { var config = _currentTest.config; i...
aca1b138350434c9afb08f31164269cd58de1d2d
YouKnowShit/CheckFile.py
YouKnowShit/CheckFile.py
import os import sys (dir, filename) = os.path.split(os.path.abspath(sys.argv[0])) print(dir) filenames = os.listdir(dir) for file in filenames: print(file) print('*****************************************************') updir = os.path.abspath('..') print(updir) filenames = os.listdir(updir) for file in filenames...
import os import sys (dir, filename) = os.path.split(os.path.abspath(sys.argv[0])) print(dir) filenames = os.listdir(dir) for file in filenames: print(file) print() print() print() print('*****************************************************') updir = os.path.abspath('..') print(updir) filenames = os.listdir(updi...
Add a level of uper directory
Add a level of uper directory
Python
mit
jiangtianyu2009/PiSoftCake
python
## Code Before: import os import sys (dir, filename) = os.path.split(os.path.abspath(sys.argv[0])) print(dir) filenames = os.listdir(dir) for file in filenames: print(file) print('*****************************************************') updir = os.path.abspath('..') print(updir) filenames = os.listdir(updir) for f...
81d00454906ce9a4be17474b35f0ccb341ece287
mobile/src/main/java/com/chaos/databinding/activities/MainActivity.java
mobile/src/main/java/com/chaos/databinding/activities/MainActivity.java
package com.chaos.databinding.activities; import android.databinding.DataBindingUtil; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import com.chaos.databinding.R; import com.chaos.databinding.models.User; import com.chaos.databinding.databinding.ActivityMainBinding; public class MainAct...
package com.chaos.databinding.activities; import android.databinding.DataBindingUtil; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import com.chaos.databinding.R; import com.chaos.databinding.models.User; import com.chaos.databinding.databinding.ActivityMainBinding; public class MainAct...
Store binding as local variable
Store binding as local variable
Java
apache-2.0
ashdavies/data-binding,jandrop/data-binding
java
## Code Before: package com.chaos.databinding.activities; import android.databinding.DataBindingUtil; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import com.chaos.databinding.R; import com.chaos.databinding.models.User; import com.chaos.databinding.databinding.ActivityMainBinding; publ...
3c7b845af124ca61c9925caedf98a42578b36445
app/models/quote.rb
app/models/quote.rb
class Quote < ActiveRecord::Base has_many :lines, dependent: :destroy, autosave: true has_many :people, through: :lines, uniq: true default_scope order('created_at DESC').includes(:people).includes(:lines) audit :description, :raw_quote def raw_quote lines.map(&:raw_line).join("\n") end ...
class Quote < ActiveRecord::Base has_many :lines, dependent: :destroy, autosave: true has_many :people, through: :lines, uniq: true attr_accessible :description, :raw_quote default_scope order('created_at DESC').includes(:people).includes(:lines) audit :description, :raw_quote def raw_quote ...
Add mass-assignment protection to Quote
Add mass-assignment protection to Quote
Ruby
mit
skyshaper/satq,skyshaper/satq,skyshaper/satq,skyshaper/satq
ruby
## Code Before: class Quote < ActiveRecord::Base has_many :lines, dependent: :destroy, autosave: true has_many :people, through: :lines, uniq: true default_scope order('created_at DESC').includes(:people).includes(:lines) audit :description, :raw_quote def raw_quote lines.map(&:raw_line).join("\n...
a5bf04bd4c5c71f097daade2dbec86d8e1dbe2f4
README.md
README.md
A command line interface that runs a build in a container with [ATC](https://github.com/concourse/atc). A good place to start learning about Concourse is its [BOSH release](https://github.com/concourse/concourse). ## Building Building and testing fly is most easily done from a checkout of [concourse](https://github...
A command line interface that runs a build in a container with [ATC](https://github.com/concourse/atc). A good place to start learning about Concourse is its [BOSH release](https://github.com/concourse/concourse). ## Building Fly is built using [Go](http://golang.org/). Building and testing fly is most easily done ...
Add note about Go lang
Add note about Go lang
Markdown
apache-2.0
cjcjameson/fly,cjcjameson/fly,zachgersh/fly,zachgersh/fly,simonjjones/fly
markdown
## Code Before: A command line interface that runs a build in a container with [ATC](https://github.com/concourse/atc). A good place to start learning about Concourse is its [BOSH release](https://github.com/concourse/concourse). ## Building Building and testing fly is most easily done from a checkout of [concourse...
cdb362a58e810a849097bd547644e5d508fd7ff5
net/jwtauth/bm_baseline.txt
net/jwtauth/bm_baseline.txt
BenchmarkBlackListMap_Parallel-4 3000 544769 ns/op 3 B/op 0 allocs/op BenchmarkBlackListFreeCache_Parallel-4 100000 22652 ns/op 100 B/op 100 allocs/op BenchmarkServeHTTPHMAC-4 100000 18256 ns/op 2...
BenchmarkBlackListMap_Parallel-4 3000 544900 ns/op 3 B/op 0 allocs/op BenchmarkBlackListFreeCache_Parallel-4 100000 24148 ns/op 100 B/op 100 allocs/op BenchmarkServeHTTPHMAC-4 100000 17692 ns/op 2...
Update benchmark for Go 1.7
net/jwtauth: Update benchmark for Go 1.7 benchmark old ns/op new ns/op delta BenchmarkBlackListMap_Parallel-4 544769 544900 +0.02% BenchmarkBlackListFreeCache_Parallel-4 22652 24148 +6.60% ...
Text
apache-2.0
corestoreio/csfw,corestoreio/csfw
text
## Code Before: BenchmarkBlackListMap_Parallel-4 3000 544769 ns/op 3 B/op 0 allocs/op BenchmarkBlackListFreeCache_Parallel-4 100000 22652 ns/op 100 B/op 100 allocs/op BenchmarkServeHTTPHMAC-4 100000 1...
f160da9a4d196f79dd43003d82a7a960789153f0
README.md
README.md
if not docker-machine is created ``` docker-machine create dev `docker-machine env dev` ``` ``` docker build -t comicstrip --rm . docker run --name mongodb -d mongo docker run --name redis -d redis docker run --name pushd -d --link redis:res -e "REDIS_HOST=res" -e "GCM_KEY=XXX" -p 8080:8081 amsdard/pushd:latest d...
if not docker-machine is created ``` docker-machine create dev `docker-machine env dev` ``` ``` docker build -t comicstrip --rm . docker run --name mongodb -d mongo docker run --name redis -d redis docker run --name pushd -d --link redis:res -e "REDIS_HOST=res" -e "GCM_KEY=XXX" -p 8080:8081 amsdard/pushd:latest d...
FIX update readme docker configuration
FIX update readme docker configuration
Markdown
mit
kozko2001/existentialcomics,kozko2001/existentialcomics
markdown
## Code Before: if not docker-machine is created ``` docker-machine create dev `docker-machine env dev` ``` ``` docker build -t comicstrip --rm . docker run --name mongodb -d mongo docker run --name redis -d redis docker run --name pushd -d --link redis:res -e "REDIS_HOST=res" -e "GCM_KEY=XXX" -p 8080:8081 amsdar...
d26b2fd19b048d3720d757ba850d88b683d4b367
st2common/st2common/runners/__init__.py
st2common/st2common/runners/__init__.py
__all__ = [ 'BACKENDS_NAMESPACE' ] BACKENDS_NAMESPACE = 'st2common.runners.runner'
from stevedore.driver import DriverManager from stevedore.extension import ExtensionManager __all__ = [ 'BACKENDS_NAMESPACE', 'get_available_backends', 'get_backend_instance' ] BACKENDS_NAMESPACE = 'st2common.runners.runner' def get_available_backends(): """ Return names of the available / ins...
Add functions for retrieving a list of dynamically registered runners.
Add functions for retrieving a list of dynamically registered runners. Those functions match same functions exposed by the auth backend loading functionality.
Python
apache-2.0
StackStorm/st2,StackStorm/st2,Plexxi/st2,nzlosh/st2,StackStorm/st2,StackStorm/st2,Plexxi/st2,Plexxi/st2,Plexxi/st2,nzlosh/st2,nzlosh/st2,nzlosh/st2
python
## Code Before: __all__ = [ 'BACKENDS_NAMESPACE' ] BACKENDS_NAMESPACE = 'st2common.runners.runner' ## Instruction: Add functions for retrieving a list of dynamically registered runners. Those functions match same functions exposed by the auth backend loading functionality. ## Code After: from stevedore.driver...
c796cb4eac9c788d6b15614dab335a57076fc0e8
data/generator/sfDoctrineRestGenerator/default/parts/parsePayload.php
data/generator/sfDoctrineRestGenerator/default/parts/parsePayload.php
protected function parsePayload($payload, $force = false) { if ($force || !isset($this->_payload_array)) { $format = $this->getFormat(); $serializer = $this->getSerializer(); if ($serializer) { $payload_array = $serializer->unserialize($payload); } if (!isset($p...
protected function parsePayload($payload, $force = false) { if ($force || !isset($this->_payload_array)) { $format = $this->getFormat(); $serializer = $this->getSerializer(); if ($serializer) { $payload_array = $serializer->unserialize($payload); } if (!isset($p...
Make unserialization error message more friendly
Make unserialization error message more friendly
PHP
mit
stadline/sfDoctrineRestGeneratorPlugin,Recras/sfDoctrineRestGeneratorPlugin,xavierlacot/sfDoctrineRestGeneratorPlugin
php
## Code Before: protected function parsePayload($payload, $force = false) { if ($force || !isset($this->_payload_array)) { $format = $this->getFormat(); $serializer = $this->getSerializer(); if ($serializer) { $payload_array = $serializer->unserialize($payload); } ...
bb838cc0d6aa935ba589f31b72c19eb347511389
app/app.html
app/app.html
<!doctype html> <html> <head> <meta charset="utf-8"> <title>youtube-dl gui</title> <link href="../node_modules/bootstrap/dist/css/bootstrap.css" rel="stylesheet"> <link href="../node_modules/font-awesome/css/font-awesome.css" rel="stylesheet"> <link href="stylesheets/main.css" rel="stylesheet" type...
<!doctype html> <html> <head> <meta charset="utf-8"> <title>youtube-dl gui</title> <link href="../node_modules/bootstrap/dist/css/bootstrap.css" rel="stylesheet"> <link href="../node_modules/font-awesome/css/font-awesome.css" rel="stylesheet"> <link href="stylesheets/main.css" rel="stylesheet" type...
Replace download icon, add "download" text if xm
Replace download icon, add "download" text if xm
HTML
mit
yannbertrand/youtube-dl-gui,yannbertrand/youtube-dl-gui,yannbertrand/youtube-dl-gui
html
## Code Before: <!doctype html> <html> <head> <meta charset="utf-8"> <title>youtube-dl gui</title> <link href="../node_modules/bootstrap/dist/css/bootstrap.css" rel="stylesheet"> <link href="../node_modules/font-awesome/css/font-awesome.css" rel="stylesheet"> <link href="stylesheets/main.css" rel="...
5a20e27700819a737f4d0942e03adcb5b7b4f44f
applications/opibuilder/opibuilder-repository/category.xml
applications/opibuilder/opibuilder-repository/category.xml
<?xml version="1.0" encoding="UTF-8"?> <site> <feature id="org.csstudio.applications.opibuilder.feature"> <category name="org.csstudio.category.applications"/> </feature> <category-def name="org.csstudio.category.applications" label="CS-Studio Applications"/> </site>
<?xml version="1.0" encoding="UTF-8"?> <site> <feature id="org.csstudio.applications.opibuilder.feature"> <category name="org.csstudio.category.applications"/> </feature> <feature id="org.csstudio.applications.opibuilder.rap.feature"> <category name="org.csstudio.category.applications"/> </featu...
Add the rap feature back to the repository.
Add the rap feature back to the repository.
XML
epl-1.0
ControlSystemStudio/cs-studio,css-iter/cs-studio,ESSICS/cs-studio,css-iter/cs-studio,ESSICS/cs-studio,ESSICS/cs-studio,ESSICS/cs-studio,ControlSystemStudio/cs-studio,ESSICS/cs-studio,ESSICS/cs-studio,css-iter/cs-studio,css-iter/cs-studio,ControlSystemStudio/cs-studio,ControlSystemStudio/cs-studio,ControlSystemStudio/cs...
xml
## Code Before: <?xml version="1.0" encoding="UTF-8"?> <site> <feature id="org.csstudio.applications.opibuilder.feature"> <category name="org.csstudio.category.applications"/> </feature> <category-def name="org.csstudio.category.applications" label="CS-Studio Applications"/> </site> ## Instruction: Add ...
2cc9c97612b77c950c205277c0cd3725ed5f5191
app/views/brexit_checker/_question_multiple_grouped_choice.html.erb
app/views/brexit_checker/_question_multiple_grouped_choice.html.erb
<%= render "govuk_publishing_components/components/title", { title: current_question.text, } %> <%= formatted_description %> <% current_question.options.each do | group | %> <%= render "govuk_publishing_components/components/checkboxes", { name: "c[]", heading: group.label, no_hint_text: true, item...
<%= render "govuk_publishing_components/components/title", { title: current_question.text, margin_bottom: 5 } %> <%= formatted_description %> <% if current_question.hint_text.present? %> <%= render "govuk_publishing_components/components/hint", { text: current_question.hint_text } %> <% end %> <% current...
Support hint text for multiple grouped questions
Support hint text for multiple grouped questions Previously the hint text was not shown for this question type, but is required for the work/study question. This adds support for hint text and adjusts the title margin to be consistent with other question types.
HTML+ERB
mit
alphagov/finder-frontend,alphagov/finder-frontend,alphagov/finder-frontend,alphagov/finder-frontend
html+erb
## Code Before: <%= render "govuk_publishing_components/components/title", { title: current_question.text, } %> <%= formatted_description %> <% current_question.options.each do | group | %> <%= render "govuk_publishing_components/components/checkboxes", { name: "c[]", heading: group.label, no_hint_text...
a1bd0d55c76b679cf98ebeedaa64d2fe88800cd7
src/Console/Command/ModuleValidateCommand.php
src/Console/Command/ModuleValidateCommand.php
<?php declare(strict_types=1); namespace LotGD\Core\Console\Command; use LotGD\Core\Bootstrap; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\C...
<?php declare(strict_types=1); namespace LotGD\Core\Console\Command; use LotGD\Core\Bootstrap; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\C...
Add completion message to module:validate command
Add completion message to module:validate command
PHP
agpl-3.0
lotgd/core,lotgd/core
php
## Code Before: <?php declare(strict_types=1); namespace LotGD\Core\Console\Command; use LotGD\Core\Bootstrap; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Sym...
038fde309fe825a7c4fef140f7cbbf59c6ad8163
lib/rails/assets/templates/README.md.erb
lib/rails/assets/templates/README.md.erb
This gem was generated, please visit [rails-asset.org](http://rails-assets.org) for more information. ## Installation Add this two lines to your application's Gemfile: ```ruby source "http://rails-assets.org" gem <%= component.gem_name.dump %> ``` ## Usage ```js //= require <%= component.name.dump %> ```
> The Bower package inside a gem This gem was automatically generated. You can visit [rails-assets.org](http://rails-assets.org) for more information. ## Usage Add these two lines to your application’s `Gemfile`: ```ruby source "http://rails-assets.org" gem <%= component.gem_name.dump %> ``` Then, import the ass...
Tweak the gem README template
Tweak the gem README template
HTML+ERB
mit
tenex/rails-assets,tenex/rails-assets,tenex/rails-assets
html+erb
## Code Before: This gem was generated, please visit [rails-asset.org](http://rails-assets.org) for more information. ## Installation Add this two lines to your application's Gemfile: ```ruby source "http://rails-assets.org" gem <%= component.gem_name.dump %> ``` ## Usage ```js //= require <%= component.name.dum...
8e6c6d0291cdeae0a79b007a802f72f17a89134b
Wangscape/noise/module/codecs/CurveWrapperCodec.cpp
Wangscape/noise/module/codecs/CurveWrapperCodec.cpp
namespace spotify { namespace json { using CurveWrapper = noise::module::Wrapper<noise::module::Curve>; codec::object_t<CurveWrapper> default_codec_t<CurveWrapper>::codec() { auto codec = codec::object<CurveWrapper>(); codec.required("type", codec::eq<std::string>("Curve")); codec.require...
namespace spotify { namespace json { using CurveWrapper = noise::module::Wrapper<noise::module::Curve>; codec::object_t<CurveWrapper> default_codec_t<CurveWrapper>::codec() { auto codec = codec::object<CurveWrapper>(); codec.required("type", codec::eq<std::string>("Curve")); codec.require...
Use std::transform in Curve codec
Use std::transform in Curve codec
C++
mit
Wangscape/Wangscape,Wangscape/Wangscape,Wangscape/Wangscape,serin-delaunay/Wangscape,serin-delaunay/Wangscape
c++
## Code Before: namespace spotify { namespace json { using CurveWrapper = noise::module::Wrapper<noise::module::Curve>; codec::object_t<CurveWrapper> default_codec_t<CurveWrapper>::codec() { auto codec = codec::object<CurveWrapper>(); codec.required("type", codec::eq<std::string>("Curve")); ...
46bee322a1ee07f33d8e75c766a029814c42747f
lib/lol/tournament_code.rb
lib/lol/tournament_code.rb
require 'lol/model' module Lol class TournamentCode < Lol::Model attr_reader :id attr_reader :provider_id # @!attribute [r] tournament_id # @return [Fixnum] Tournament ID attr_reader :tournament_id # @!attribute [r] code # @return [String] Code attr_reader :code # @!attribute ...
require 'lol/model' module Lol class TournamentCode < Lol::Model attr_reader :id attr_reader :provider_id # @!attribute [r] tournament_id # @return [Fixnum] Tournament ID attr_reader :tournament_id # @!attribute [r] code # @return [String] Code attr_reader :code # @!attribute ...
Add participants default value to TournamentCode
Add participants default value to TournamentCode
Ruby
mit
mikamai/ruby-lol,rhuberdeau/ruby-lol
ruby
## Code Before: require 'lol/model' module Lol class TournamentCode < Lol::Model attr_reader :id attr_reader :provider_id # @!attribute [r] tournament_id # @return [Fixnum] Tournament ID attr_reader :tournament_id # @!attribute [r] code # @return [String] Code attr_reader :code ...
9c4f0aa3c4b1c1e4523c5a414decf15c6ce2ad2e
app/models/pull_request_downloader.rb
app/models/pull_request_downloader.rb
class PullRequestDownloader attr_reader :login, :oauth_token def initialize(login, oauth_token) @login, @oauth_token = login, oauth_token end def pull_requests @pull_requests ||= download_pull_requests end private def github_client @github_client ||= Octokit::Client.new(:login => login, :ac...
class PullRequestDownloader attr_reader :login, :oauth_token def initialize(login, oauth_token) @login, @oauth_token = login, oauth_token end def pull_requests @pull_requests ||= download_pull_requests end private def github_client @github_client ||= Octokit::Client.new(:login => login, :ac...
Use Octokit client for now
Use Octokit client for now
Ruby
mit
davefp/24pullrequests,erikaheidi/24pullrequests,erikaheidi/24pullrequests,davefp/24pullrequests
ruby
## Code Before: class PullRequestDownloader attr_reader :login, :oauth_token def initialize(login, oauth_token) @login, @oauth_token = login, oauth_token end def pull_requests @pull_requests ||= download_pull_requests end private def github_client @github_client ||= Octokit::Client.new(:log...
d8d0dd2a5afde0604780d641e0c7cb33bc00edb2
usr.sbin/arp/Makefile
usr.sbin/arp/Makefile
PROG= arp MAN8= arp.0 CLEANFILES=arp4.0 all: ${PROG} arp4.0 ${MAN8} beforeinstall: install -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} arp4.0 \ ${DESTDIR}${MANDIR}4/arp.0 .include <bsd.prog.mk>
PROG= arp MAN8= arp.0 CLEANFILES=arp4.0 .include <bsd.prog.mk>
Remove stuff for building manual pages the old way.
Remove stuff for building manual pages the old way.
unknown
bsd-3-clause
jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase
unknown
## Code Before: PROG= arp MAN8= arp.0 CLEANFILES=arp4.0 all: ${PROG} arp4.0 ${MAN8} beforeinstall: install -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} arp4.0 \ ${DESTDIR}${MANDIR}4/arp.0 .include <bsd.prog.mk> ## Instruction: Remove stuff for building manual pages the old way. ## Code After: PROG= arp MAN8=...
f172f168db3e4390485c18cc377c4e8bba9978b3
app/models/structured_error_attribute.rb
app/models/structured_error_attribute.rb
class StructuredErrorAttribute < ActiveRecord::Base belongs_to :structured_error belongs_to :error_template_attribute def self.create_from_template(attribute, structured_error, message_buffer) match = false value = nil result = message_buffer.match(attribute.regex) if result != nil match = ...
class StructuredErrorAttribute < ActiveRecord::Base belongs_to :structured_error belongs_to :error_template_attribute def self.create_from_template(attribute, structured_error, message_buffer) value = nil result = message_buffer.match(attribute.regex) if result != nil if result.captures.size > ...
Refactor structured error attribute creation
Refactor structured error attribute creation
Ruby
bsd-3-clause
openHPI/codeocean,openHPI/codeocean,openHPI/codeocean,openHPI/codeocean,openHPI/codeocean,openHPI/codeocean
ruby
## Code Before: class StructuredErrorAttribute < ActiveRecord::Base belongs_to :structured_error belongs_to :error_template_attribute def self.create_from_template(attribute, structured_error, message_buffer) match = false value = nil result = message_buffer.match(attribute.regex) if result != ni...
1250d66e60b3b429a1f5f39ecd5beda6e4074ff9
setup.py
setup.py
from distutils.util import convert_path import re from setuptools import setup import sys def get_version(): with open(convert_path('cinspect/__init__.py')) as f: metadata = dict(re.findall("__([a-z]+)__\s*=\s*'([^']+)'", f.read())) return metadata.get('version', '0.1') def get_long_description(...
from distutils.util import convert_path import re from setuptools import setup import sys def get_version(): with open(convert_path('cinspect/__init__.py')) as f: metadata = dict(re.findall("__([a-z]+)__\s*=\s*'([^']+)'", f.read())) return metadata.get('version', '0.1') def get_long_description(...
Install console script only in Py2.x.
Install console script only in Py2.x.
Python
bsd-3-clause
punchagan/cinspect,punchagan/cinspect
python
## Code Before: from distutils.util import convert_path import re from setuptools import setup import sys def get_version(): with open(convert_path('cinspect/__init__.py')) as f: metadata = dict(re.findall("__([a-z]+)__\s*=\s*'([^']+)'", f.read())) return metadata.get('version', '0.1') def get_l...
55d860657bcd2aea03665a2848c4a8b9f9c721ea
dotfiles.d/go.bash
dotfiles.d/go.bash
go version &>/dev/null || return # Set this to the directory you use for your Go workspace; by default, this just # assumes it is ~/go if that directory exists. if [[ -z ${GOPATH} && -d ~/go ]]; then export GOPATH=~/go fi # If GOPATH is not set, skip the rest of this script. [[ -n ${GOPATH} ]] || return # Change...
go version &>/dev/null || return # Set this to the directory you use for your Go workspace; by default, this just # assumes it is ~/go if that directory exists. if [[ -z ${GOPATH} && -d ~/go ]]; then export GOPATH=~/go fi # If GOPATH is not set, skip the rest of this script. [[ -n ${GOPATH} ]] || return # Add us...
Add user-installed Go programs to PATH.
Add user-installed Go programs to PATH.
Shell
mit
princebot/dotfiles
shell
## Code Before: go version &>/dev/null || return # Set this to the directory you use for your Go workspace; by default, this just # assumes it is ~/go if that directory exists. if [[ -z ${GOPATH} && -d ~/go ]]; then export GOPATH=~/go fi # If GOPATH is not set, skip the rest of this script. [[ -n ${GOPATH} ]] || ...
88400a26f3f52153e41bc644f59e254e746f5031
help/VRPN-INSTALL.txt
help/VRPN-INSTALL.txt
VRPN is probably not in any common Linux package managers. However, it is available in homebrew on OSX. To install, follow these steps: wget 'http://www.cs.unc.edu/Research/vrpn/downloads/vrpn_07_33.zip' unzip vrpn_07_33.zip cd vrpn mkdir build cd build cmake -DVRPN_GPL_SERVER=1 .. make OPTIONAL: If you have root ac...
VRPN is probably not in any common Linux package managers. However, it is available in homebrew on OSX. To install, follow these steps: wget 'https://github.com/vrpn/vrpn/releases/download/v07.33/vrpn_07_33.zip' unzip vrpn_07_33.zip cd vrpn mkdir build cd build cmake -DVRPN_GPL_SERVER=1 .. make OPTIONAL: If you have...
Update VRPN URL (Thanks John Thomas)
Update VRPN URL (Thanks John Thomas)
Text
bsd-3-clause
JohnRThomas/opengl-examples,JohnRThomas/opengl-examples,JohnRThomas/opengl-examples,JohnRThomas/opengl-examples
text
## Code Before: VRPN is probably not in any common Linux package managers. However, it is available in homebrew on OSX. To install, follow these steps: wget 'http://www.cs.unc.edu/Research/vrpn/downloads/vrpn_07_33.zip' unzip vrpn_07_33.zip cd vrpn mkdir build cd build cmake -DVRPN_GPL_SERVER=1 .. make OPTIONAL: If ...
379ae590fcc5e56087ba6270d6a3c49ae15f438a
source/index.js
source/index.js
import stream from 'stream' export function toObj () { } export default class Json2obj extends stream.Transform { constructor ( {writableObjectMode, readableObjectMode} = { writableObjectMode: false, readableObjectMode: true } ) { super({writableObjectMode, readableObjectMode}) this.vertices = new ...
import stream from 'stream' export function toObj () { } export default class Json2obj extends stream.Transform { constructor ( {writableObjectMode, readableObjectMode} = { writableObjectMode: false, readableObjectMode: true } ) { super({writableObjectMode, readableObjectMode}) this.vertexMap = new...
Implement first simple version of OBJ exporter
Implement first simple version of OBJ exporter
JavaScript
mit
adius/obj-exporter
javascript
## Code Before: import stream from 'stream' export function toObj () { } export default class Json2obj extends stream.Transform { constructor ( {writableObjectMode, readableObjectMode} = { writableObjectMode: false, readableObjectMode: true } ) { super({writableObjectMode, readableObjectMode}) this...
84c51ddaf6363c96a527954e4f398da0de9350fd
examples/bench/method_call.nobj.lua
examples/bench/method_call.nobj.lua
object "method_call" { c_source[[ typedef struct method_call method_call; #define DEFAULT_PTR ((method_call *)0xDEADBEEF) method_call *method_call_create() { return DEFAULT_PTR; } void method_call_destroy(method_call *call) { assert(call == DEFAULT_PTR); } int method_call_null(method_call *call) { return 0; } ...
object "method_call" { c_source[[ typedef struct method_call method_call; #define DEFAULT_PTR ((method_call *)0xDEADBEEF) method_call *method_call_create() { return DEFAULT_PTR; } void method_call_destroy(method_call *call) { assert(call == DEFAULT_PTR); } int method_call_null(method_call *call) { return 0; } ...
Add FFI code to 'simple' method.
Add FFI code to 'simple' method.
Lua
mit
Neopallium/LuaNativeObjects
lua
## Code Before: object "method_call" { c_source[[ typedef struct method_call method_call; #define DEFAULT_PTR ((method_call *)0xDEADBEEF) method_call *method_call_create() { return DEFAULT_PTR; } void method_call_destroy(method_call *call) { assert(call == DEFAULT_PTR); } int method_call_null(method_call *call) ...
ef91943085d294bb28a956de36945d4f90cca436
bash/FONTS.md
bash/FONTS.md
The following font should be used for all terminal applications: <table> <thead> <tr> <th>Font Name</th> <th>Font Size</th> </tr> </thead> <tbody> <tr> <td>Droid Sans Mono for Powerline</td> <td>13px</td> </tr> </tbody> </...
The following font should be used for various applications: <table> <thead> <tr> <th>Type</th> <th>Name</th> <th>Size</th> </tr> </thead> <tbody> <tr> <td>Monospace Font</td> <td>Droid Sans Mono for Powerline</td> ...
Update fonts with other defaults from elementary.
Update fonts with other defaults from elementary.
Markdown
mit
rfkrocktk/teekopolis-shell,rfkrocktk/teekopolis-shell
markdown
## Code Before: The following font should be used for all terminal applications: <table> <thead> <tr> <th>Font Name</th> <th>Font Size</th> </tr> </thead> <tbody> <tr> <td>Droid Sans Mono for Powerline</td> <td>13px</td> </tr>...
cc5499eea40e24cdb5042a9bc76d47f179bed2c4
README.md
README.md
Replacement USB stack for chipKIT -------------------------------- * This is ***WORK IN PROGRESS*** Usage ----- First create objects for the USB interface and manager: #include <USB.h> USBFS usbDriver; USBManager USB(usbDriver, 0xDEAD, 0xBEEF); // Provide the VID and PID here Then create objects for e...
Replacement USB stack for chipKIT -------------------------------- * This is ***WORK IN PROGRESS*** Usage ----- First create objects for the USB interface and manager: ```C++ #include <USB.h> USBFS usbDriver; USBManager USB(usbDriver, 0xDEAD, 0xBEEF); // Provide the VID and PID here ``` Then create objects for ea...
Set language of code blocks
Set language of code blocks
Markdown
bsd-3-clause
MajenkoLibraries/USB
markdown
## Code Before: Replacement USB stack for chipKIT -------------------------------- * This is ***WORK IN PROGRESS*** Usage ----- First create objects for the USB interface and manager: #include <USB.h> USBFS usbDriver; USBManager USB(usbDriver, 0xDEAD, 0xBEEF); // Provide the VID and PID here Then crea...
a016e896f05d2bd79b3e74667388764afbd68af1
packages/ta/taco.yaml
packages/ta/taco.yaml
homepage: https://github.com/ocramz/taco-hs#readme changelog-type: '' hash: 990e839e311c782b4114b9834986433cae937ffe6ea7ca7703dbe9f466338a21 test-bench-deps: base: -any taco: -any maintainer: zocca.marco gmail synopsis: Tensor Algebra COmpiler changelog: '' basic-deps: exceptions: -any base: ! '>=4.7 && <5' c...
homepage: https://github.com/ocramz/taco-hs#readme changelog-type: '' hash: 990e839e311c782b4114b9834986433cae937ffe6ea7ca7703dbe9f466338a21 test-bench-deps: base: -any taco: -any maintainer: zocca.marco gmail synopsis: Tensor Algebra COmpiler changelog: '' basic-deps: exceptions: -any base: ! '>=4.7 && <5' c...
Update from Hackage at 2018-03-04T13:57:31Z
Update from Hackage at 2018-03-04T13:57:31Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/ocramz/taco-hs#readme changelog-type: '' hash: 990e839e311c782b4114b9834986433cae937ffe6ea7ca7703dbe9f466338a21 test-bench-deps: base: -any taco: -any maintainer: zocca.marco gmail synopsis: Tensor Algebra COmpiler changelog: '' basic-deps: exceptions: -any base: ! '...
d5c3a3a91a5d109bdf6222295535e4c4ee545cd7
app/controllers/likes_controller.rb
app/controllers/likes_controller.rb
class LikesController < ApplicationController before_action :require_user before_action :find_likeable def create end def destroy end private def find_likeable end end
class LikesController < ApplicationController before_action :require_user before_action :find_likeable def create current_user.like(@item) render text: @item.reload.likes_count end def destroy current_user.unlike(@item) render text: @item.reload.likes_count end private def find_like...
Add the find_likable before_action to find something able to the liked based on the params.
Add the find_likable before_action to find something able to the liked based on the params.
Ruby
mit
yiyangyi/cc98-rails,yiyangyi/cc98-rails,yiyangyi/cc98-rails
ruby
## Code Before: class LikesController < ApplicationController before_action :require_user before_action :find_likeable def create end def destroy end private def find_likeable end end ## Instruction: Add the find_likable before_action to find something able to the liked based on the params. ## ...
0bce306943df133640215f16ab292061db28393a
README.md
README.md
A simple Appnexus API client #Install Via [composer](https://getcomposer.org): `$ composer require "f3ath/appnexus"` #Use ```php $storage = new F3\AppNexusClient\ArrayTokenStorage(); // Memcached or Apc storage is also available $appnexus = new F3\AppNexusClient\AppNexusClient('username', 'password', "http://sand.ap...
A simple Appnexus API client #Install Via [composer](https://getcomposer.org): `$ composer require "f3ath/appnexus"` #Use ```php $storage = new F3\AppNexusClient\ArrayTokenStorage(); // Memcached or Apc storage is also available $appnexus = new F3\AppNexusClient\AppNexusClient('username', 'password', "http://api-con...
Change in documentation to use the API endpoint for the Client-Testing environment
Change in documentation to use the API endpoint for the Client-Testing environment
Markdown
mit
f3ath/appnexusclient
markdown
## Code Before: A simple Appnexus API client #Install Via [composer](https://getcomposer.org): `$ composer require "f3ath/appnexus"` #Use ```php $storage = new F3\AppNexusClient\ArrayTokenStorage(); // Memcached or Apc storage is also available $appnexus = new F3\AppNexusClient\AppNexusClient('username', 'password',...
5fc5f98a6eaa2a9f5b95cd4a889c2760d8d13a1e
_layouts/page.html.twig
_layouts/page.html.twig
{% extends '_layouts/base.html.twig' %} {% block content_root %} <main class="container background-dark s-documentation"> <div class="py-3 px-md-3"> {% block content %}{% endblock %} </div> </main> {% endblock %}
{% extends '_layouts/base.html.twig' %} {% block content_root %} <main class="container background-dark s-documentation"> <div class="py-3 px-md-3"> {% block content %}{% endblock %} </div> {% if this.editable %} {% include "_includes/edit_me.html.twig" %} {...
Allow regular pages to be "editable"
Allow regular pages to be "editable"
Twig
mit
BZFlag-Dev/bzflag.org,BZFlag-Dev/bzflag.org,BZFlag-Dev/bzflag.org
twig
## Code Before: {% extends '_layouts/base.html.twig' %} {% block content_root %} <main class="container background-dark s-documentation"> <div class="py-3 px-md-3"> {% block content %}{% endblock %} </div> </main> {% endblock %} ## Instruction: Allow regular pages to be "editable" ...
4e78179d81f5e3da6d9981f60133089347a81caf
txsni/snimap.py
txsni/snimap.py
from OpenSSL.SSL import Context, TLSv1_METHOD from twisted.internet.ssl import ContextFactory from txsni.only_noticed_pypi_pem_after_i_wrote_this import ( certificateOptionsFromPileOfPEM ) class SNIMap(ContextFactory, object): def __init__(self, mapping): self.mapping = mapping try: ...
from twisted.internet.ssl import CertificateOptions, ContextFactory from txsni.only_noticed_pypi_pem_after_i_wrote_this import ( certificateOptionsFromPileOfPEM ) class SNIMap(ContextFactory, object): def __init__(self, mapping): self.mapping = mapping try: self.context = self.mapp...
Create a properly configured SSL Context
Create a properly configured SSL Context
Python
mit
glyph/txsni
python
## Code Before: from OpenSSL.SSL import Context, TLSv1_METHOD from twisted.internet.ssl import ContextFactory from txsni.only_noticed_pypi_pem_after_i_wrote_this import ( certificateOptionsFromPileOfPEM ) class SNIMap(ContextFactory, object): def __init__(self, mapping): self.mapping = mapping ...
a2d4e700f2049a668b197c4021fce2c3a011587d
loci/formats/todo.txt
loci/formats/todo.txt
Testing: * leica-lif/matthias (from Leica SP5 scope) * quicktime/haining/video2.mov (both legacy and native) QuickTime: * svq3 codec (lower priority) AVI: * msrle codec (super low priority) Implement readers for other file formats: * SDT (java/loci/slim/SlimPlotter.java, data/sdt, data/specs/sdt) * Anything listed o...
Testing: * leica-lif/matthias (from Leica SP5 scope) * quicktime/haining/video2.mov (both legacy and native) TIFF: * fix support for floating point TIFF files (see TiffTools.java:1199-1203) QuickTime: * svq3 codec (lower priority) AVI: * msrle codec (super low priority) Implement readers for other file formats: * S...
Add floating point TIFF problem to list of things to fix.
Add floating point TIFF problem to list of things to fix.
Text
bsd-2-clause
scifio/scifio
text
## Code Before: Testing: * leica-lif/matthias (from Leica SP5 scope) * quicktime/haining/video2.mov (both legacy and native) QuickTime: * svq3 codec (lower priority) AVI: * msrle codec (super low priority) Implement readers for other file formats: * SDT (java/loci/slim/SlimPlotter.java, data/sdt, data/specs/sdt) * A...
8abf752c4daa2cd54f8796117201595810485c1c
sample-apps/pom.xml
sample-apps/pom.xml
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. --> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0...
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. --> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0...
Revert "build tensor sample app"
Revert "build tensor sample app"
XML
apache-2.0
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
xml
## Code Before: <?xml version="1.0" encoding="UTF-8"?> <!-- Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. --> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.ap...
4eda3f3535d28e2486745f33504c417ba6837c3a
stdnum/nz/__init__.py
stdnum/nz/__init__.py
"""Collection of New Zealand numbers."""
"""Collection of New Zealand numbers.""" # provide aliases from stdnum.nz import ird as vat # noqa: F401
Add missing vat alias for New Zealand
Add missing vat alias for New Zealand Closes https://github.com/arthurdejong/python-stdnum/pull/202
Python
lgpl-2.1
arthurdejong/python-stdnum,arthurdejong/python-stdnum,arthurdejong/python-stdnum
python
## Code Before: """Collection of New Zealand numbers.""" ## Instruction: Add missing vat alias for New Zealand Closes https://github.com/arthurdejong/python-stdnum/pull/202 ## Code After: """Collection of New Zealand numbers.""" # provide aliases from stdnum.nz import ird as vat # noqa: F401
0e87bd1939fe48896b840de59d69b990b8f5d91f
giki/formatter.py
giki/formatter.py
from markdown2 import markdown from docutils.core import publish_parts from textile import textile def rst(string): """Wraps the ReST parser in Docutils. Note that Docutils wraps its output in a `<div class='document'>`.""" return publish_parts( source=string, settings_overrides={ 'file_insertion_enabled':...
from markdown2 import markdown from docutils.core import publish_parts from textile import textile def rst(string): """Wraps the ReST parser in Docutils. Note that Docutils wraps its output in a `<div class='document'>`.""" return publish_parts( source=string, settings_overrides={ 'file_insertion_enabled':...
Add some extras to the Markdown parser
Add some extras to the Markdown parser
Python
bsd-2-clause
adambrenecki/giki
python
## Code Before: from markdown2 import markdown from docutils.core import publish_parts from textile import textile def rst(string): """Wraps the ReST parser in Docutils. Note that Docutils wraps its output in a `<div class='document'>`.""" return publish_parts( source=string, settings_overrides={ 'file_ins...
d8be0fcd4d2e9c00c83b46f9231ad25636d5ef47
lib/grape/attack/request.rb
lib/grape/attack/request.rb
require 'grape/attack/options' module Grape module Attack class Request attr_reader :env, :context, :request, :throttle_options def initialize(env) @env = env @context = env['api.endpoint'] @request = @context.routes.first @throttle_opt...
require 'grape/attack/options' module Grape module Attack class Request attr_reader :env, :context, :request, :throttle_options def initialize(env) @env = env @context = env['api.endpoint'] @request = @context.routes.first @throttle_opt...
Support X-Real-IP for when behind loadbalancer
Support X-Real-IP for when behind loadbalancer
Ruby
mit
gottfrois/grape-attack,gottfrois/grape-attack
ruby
## Code Before: require 'grape/attack/options' module Grape module Attack class Request attr_reader :env, :context, :request, :throttle_options def initialize(env) @env = env @context = env['api.endpoint'] @request = @context.routes.first ...
847773f0c764b23255d3d8da7e4aa55c15e316c8
lib/rubicure_fuzzy_match.rb
lib/rubicure_fuzzy_match.rb
require "rubicure_fuzzy_match/version" require "rubicure" require "fuzzy_match" class Rubicure::Seriese TITLES = Precure.map(&:title) TITLES_DICTIONARY = Hash[*TITLES.map.with_index { |e, i| [e, i] }.flatten] FUZZY_TITLES_DICTIONARY = { '初代' => 0, '無印' ...
require "rubicure_fuzzy_match/version" require "rubicure" require "fuzzy_match" class Rubicure::Seriese TITLES = Precure.map(&:title) TITLES_DICTIONARY = Hash[*TITLES.map.with_index { |e, i| [e, i] }.flatten] FUZZY_TITLES_DICTIONARY = { '初代' => 0, '無印' ...
Return nil when find method result is nil
Return nil when find method result is nil
Ruby
mit
kaosf/rubicure_fuzzy_match,kaosf/rubicure_fuzzy_match
ruby
## Code Before: require "rubicure_fuzzy_match/version" require "rubicure" require "fuzzy_match" class Rubicure::Seriese TITLES = Precure.map(&:title) TITLES_DICTIONARY = Hash[*TITLES.map.with_index { |e, i| [e, i] }.flatten] FUZZY_TITLES_DICTIONARY = { '初代' => 0, '無印' ...
c44175098ba63814a3d47472d3b0056d4bcac1c5
Units/RoutingUnit.php
Units/RoutingUnit.php
<?php // Jivoo // Copyright (c) 2015 Niels Sonnich Poulsen (http://nielssp.dk) // Licensed under the MIT license. // See the LICENSE file or http://opensource.org/licenses/MIT for more information. namespace Jivoo\Core\Units; use Jivoo\Core\UnitBase; use Jivoo\Core\App; use Jivoo\Core\Store\Document; use Jivoo\Control...
<?php // Jivoo // Copyright (c) 2015 Niels Sonnich Poulsen (http://nielssp.dk) // Licensed under the MIT license. // See the LICENSE file or http://opensource.org/licenses/MIT for more information. namespace Jivoo\Core\Units; use Jivoo\Core\UnitBase; use Jivoo\Core\App; use Jivoo\Core\Store\Document; use Jivoo\Control...
Attach event handlers in routing unit.
Attach event handlers in routing unit.
PHP
mit
jivoo/core
php
## Code Before: <?php // Jivoo // Copyright (c) 2015 Niels Sonnich Poulsen (http://nielssp.dk) // Licensed under the MIT license. // See the LICENSE file or http://opensource.org/licenses/MIT for more information. namespace Jivoo\Core\Units; use Jivoo\Core\UnitBase; use Jivoo\Core\App; use Jivoo\Core\Store\Document; u...
e82af71277a2b3ecc4e301e159359f7104e212ea
zookeeper-server/zookeeper-server-3.4/CMakeLists.txt
zookeeper-server/zookeeper-server-3.4/CMakeLists.txt
install_fat_java_artifact(zookeeper-server-3.4)
install_fat_java_artifact(zookeeper-server-3.4) install_symlink(lib/jars/zookeeper-server-3.4-jar-with-dependencies.jar lib/jars/zookeeper-server-jar-with-dependencies.jar)
Create symlink to default ZooKeeper server jar file (version 3.4)
Create symlink to default ZooKeeper server jar file (version 3.4)
Text
apache-2.0
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
text
## Code Before: install_fat_java_artifact(zookeeper-server-3.4) ## Instruction: Create symlink to default ZooKeeper server jar file (version 3.4) ## Code After: install_fat_java_artifact(zookeeper-server-3.4) install_symlink(lib/jars/zookeeper-server-3.4-jar-with-dependencies.jar lib/jars/zookeeper-server-jar-with-de...
322d43f8d58e5382b9d64c11890c2dee81cde32c
apps/block/templates/info/_connections.jade
apps/block/templates/info/_connections.jade
.block-sidebar__section if connections && connections.length - s = connections.length == 1 ? '' : 's' .block-sidebar__separator(id="tab-connection-count") #{connections.length} Connection#{s} .js-connections-list for channel in connections .block-connection-outer include ../../../....
.block-sidebar__section if connections && connections.length - s = connections.length == 1 ? '' : 's' .block-sidebar__separator(id="tab-connection-count") #{connections.length} Connection#{s} .js-connections-list for channel in connections .block-connection-outer include ../../../....
Comment out connect button for now
Comment out connect button for now
Jade
mit
aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell
jade
## Code Before: .block-sidebar__section if connections && connections.length - s = connections.length == 1 ? '' : 's' .block-sidebar__separator(id="tab-connection-count") #{connections.length} Connection#{s} .js-connections-list for channel in connections .block-connection-outer in...
b5299e3690f8a64a4963851fc92ceff8975014ff
src/vs/workbench/api/browser/mainThreadBulkEdits.ts
src/vs/workbench/api/browser/mainThreadBulkEdits.ts
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
Revert "respect auto save config when using workspace edit API"
Revert "respect auto save config when using workspace edit API" This reverts commit 22c5f41aab0eda67b6829c3a578e5856d2ee8c63.
TypeScript
mit
eamodio/vscode,eamodio/vscode,microsoft/vscode,eamodio/vscode,eamodio/vscode,microsoft/vscode,eamodio/vscode,microsoft/vscode,microsoft/vscode,microsoft/vscode,eamodio/vscode,eamodio/vscode,microsoft/vscode,microsoft/vscode,microsoft/vscode,eamodio/vscode,eamodio/vscode,eamodio/vscode,eamodio/vscode,microsoft/vscode,mi...
typescript
## Code Before: /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *-----------------------------------------------...
f030754c2c51d9bc3fc25eadfb9b604e84963633
.travis.yml
.travis.yml
language: java jdk: - oraclejdk8 - oraclejdk7 git: depth: 3 before_script: - chmod +x gradlew script: - ./gradlew build
language: java jdk: - oraclejdk8 - oraclejdk7 git: depth: 3 before_script: - chmod +x gradlew script: - echo 'Setup environment' - ./gradlew setupCiWorkspace - echo 'Build' - ./gradlew build
Make Travis using efficient build script
Make Travis using efficient build script
YAML
mit
lion328/ThaiFixes
yaml
## Code Before: language: java jdk: - oraclejdk8 - oraclejdk7 git: depth: 3 before_script: - chmod +x gradlew script: - ./gradlew build ## Instruction: Make Travis using efficient build script ## Code After: language: java jdk: - oraclejdk8 - oraclejdk7 git: depth: 3 before_scr...
dfd49f65e83ff87fbe1ef62294b92f91d8d4f772
tools/makie/plugins/makie-repl/lib/index.js
tools/makie/plugins/makie-repl/lib/index.js
'use strict'; // MODULES // var spawn = require( 'child_process' ).spawn; // MAIN // /** * `makie` plugin for launching a REPL. * * @param {string} dir - Makefile directory * @param {string} cwd - current working directory * @param {string} subpath - subdirectory path */ function plugin( dir, cwd ) { var opts; v...
'use strict'; // MODULES // var spawn = require( 'child_process' ).spawn; // MAIN // /** * Plugin for launching a REPL. * * @param {string} dir - Makefile directory * @param {string} cwd - current working directory * @param {string} subpath - subdirectory path */ function plugin( dir, cwd ) { var opts; var args;...
Remove unused variable and update description
Remove unused variable and update description
JavaScript
apache-2.0
stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib
javascript
## Code Before: 'use strict'; // MODULES // var spawn = require( 'child_process' ).spawn; // MAIN // /** * `makie` plugin for launching a REPL. * * @param {string} dir - Makefile directory * @param {string} cwd - current working directory * @param {string} subpath - subdirectory path */ function plugin( dir, cwd )...
b8e6d521c7e12edffd9c485e407504fd6db5f2f4
build-scripts/src/test/resources/notacomponent/resources/tests/profiles/simple.pan
build-scripts/src/test/resources/notacomponent/resources/tests/profiles/simple.pan
object template simple; # TT relpath is mycomp # use /metaconfig as default for Test::Quattor::RegexpTest "/metaconfig/module" = "main"; prefix "/metaconfig/contents"; "data" = "default_simple"; "extra" = "more_simple";
object template simple; # Make sure it's different from the other simple.pan files in same test "/unique" = 1; # TT relpath is mycomp # use /metaconfig as default for Test::Quattor::RegexpTest "/metaconfig/module" = "main"; prefix "/metaconfig/contents"; "data" = "default_simple"; "extra" = "more_simple";
Use unique pan test profiles
Use unique pan test profiles
Pan
apache-2.0
quattor/maven-tools,quattor/maven-tools,quattor/maven-tools,jouvin/maven-tools,quattor/maven-tools,jouvin/maven-tools,jouvin/maven-tools,jouvin/maven-tools
pan
## Code Before: object template simple; # TT relpath is mycomp # use /metaconfig as default for Test::Quattor::RegexpTest "/metaconfig/module" = "main"; prefix "/metaconfig/contents"; "data" = "default_simple"; "extra" = "more_simple"; ## Instruction: Use unique pan test profiles ## Code After: object template simp...
0abcbf6e0ef7df2c50dba5c279707e791c1c288b
app/assets/stylesheets/content/modals.scss
app/assets/stylesheets/content/modals.scss
@import "bootstrap/modals"; .modal-button { @extend .btn; @extend .btn-default; } .modal-body .results-list { overflow-y: scroll; overflow-x: hidden; max-height: 600px; } .modal-body { .search-tabs { @include make-row(); margin-bottom: 15px; .search-tab { @include make-md-column(3.5);...
@import "bootstrap/modals"; .modal-button { @extend .btn; @extend .btn-default; } .modal-body .results-list { overflow-y: scroll; overflow-x: hidden; max-height: 600px; } .modal-body { .search-tabs { @include make-row(); margin-bottom: 15px; .search-tab { @include make-md-column(3.5);...
Fix new text text editor spacing.
Fix new text text editor spacing.
SCSS
agpl-3.0
harvard-lil/h2o,harvard-lil/h2o,harvard-lil/h2o,harvard-lil/h2o
scss
## Code Before: @import "bootstrap/modals"; .modal-button { @extend .btn; @extend .btn-default; } .modal-body .results-list { overflow-y: scroll; overflow-x: hidden; max-height: 600px; } .modal-body { .search-tabs { @include make-row(); margin-bottom: 15px; .search-tab { @include make...
8a1dc8594da404ce3d4d73b94bdd310b4b39b9b6
src/javascripts/_init.js
src/javascripts/_init.js
$(document).ready(function() { autosize($('textarea.autosize')); $("form.validate").validate(); });
$(document).ready(function() { autosize($('textarea.autosize')); $("form.validate").each(function() { $(this).validate(); }); });
Support for multiple form validation
Support for multiple form validation
JavaScript
mit
andrew-waters/SASS-Material-Design-for-Bootstrap,2947721120/SASS-Material-Design-for-Bootstrap-Introduction,2947721120/SASS-Material-Design-for-Bootstrap,2947721120/SASS-Material-Design-for-Bootstrap,2947721120/SASS-Material-Design-for-Bootstrap-Introduction,2947721120/SASS-Material-Design-for-Bootstrap,andrew-waters/S...
javascript
## Code Before: $(document).ready(function() { autosize($('textarea.autosize')); $("form.validate").validate(); }); ## Instruction: Support for multiple form validation ## Code After: $(document).ready(function() { autosize($('textarea.autosize')); $("form.validate").each(function() { $(this).validate();...
3df72fa3536ba570dbf66a49b9892ae89eb9af56
_config.yml
_config.yml
name: "Brandon Amos: Blog" description: The personal blog of Brandon Amos url: http://bamos.github.io destination: ./_site lsi: false port: 4000 pygments: true markdown: maruku permalink: pretty paginate: 5 maruku: use_tex: false use_divs: false png_dir: images/latex/ png_url: /...
name: "Brandon Amos: Blog" description: The personal blog of Brandon Amos url: http://bamos.io destination: ./_site lsi: false port: 4000 pygments: true markdown: kramdown permalink: pretty paginate: 5
Clean and update config to use kramdown.
Clean and update config to use kramdown.
YAML
mit
renan-souza/renan-souza.github.io,bamos/bamos.github.io,bamos/bamos.github.io,bamos/bamos.github.io,bamos/bamos.github.io,renan-souza/renan-souza.github.io,renan-souza/renan-souza.github.io
yaml
## Code Before: name: "Brandon Amos: Blog" description: The personal blog of Brandon Amos url: http://bamos.github.io destination: ./_site lsi: false port: 4000 pygments: true markdown: maruku permalink: pretty paginate: 5 maruku: use_tex: false use_divs: false png_dir: images/latex...
418bb8e7efcecf7bb53f14f8101f562342ca9859
packages/al/alloy.yaml
packages/al/alloy.yaml
homepage: '' changelog-type: '' hash: 9efca709421be0138603cba5f292aac220877e87dcb110e420b9206b0b33f9b7 test-bench-deps: {} maintainer: neil@twistedsquare.com synopsis: Generic programming library changelog: '' basic-deps: base: ! '>=4.3 && <5' syb: -any containers: -any mtl: -any vector: -any all-versions: - ...
homepage: '' changelog-type: '' hash: 372776d0e7236e49dfd605ca6ae17f5963d6c8b396b61700410c93763bb7af9d test-bench-deps: {} maintainer: neil@twistedsquare.com synopsis: Generic programming library changelog: '' basic-deps: base: ! '>=4.7 && <5' syb: -any containers: -any mtl: -any vector: -any all-versions: - ...
Update from Hackage at 2016-03-06T20:40:53+0000
Update from Hackage at 2016-03-06T20:40:53+0000
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: '' changelog-type: '' hash: 9efca709421be0138603cba5f292aac220877e87dcb110e420b9206b0b33f9b7 test-bench-deps: {} maintainer: neil@twistedsquare.com synopsis: Generic programming library changelog: '' basic-deps: base: ! '>=4.3 && <5' syb: -any containers: -any mtl: -any vector: -any ...
c724e75274f83f59b77f08f3594413de37e6a6d4
googleDirectionLibrary/src/main/java/com/akexorcist/googledirection/request/DirectionDestinationRequest.java
googleDirectionLibrary/src/main/java/com/akexorcist/googledirection/request/DirectionDestinationRequest.java
/* Copyright 2015 Akexorcist Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distrib...
/* Copyright 2015 Akexorcist Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distrib...
Add LatLng list support for direction request
Add LatLng list support for direction request
Java
apache-2.0
akexorcist/Android-GoogleDirectionLibrary,akexorcist/Android-GoogleDirectionLibrary
java
## Code Before: /* Copyright 2015 Akexorcist Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
b5f0184c21800065efa29fea313b406aadda677d
app/models/user.rb
app/models/user.rb
class User < ActiveRecord::Base devise :two_factor_authenticatable, otp_secret_encryption_key: ENV['TWO_FACTOR_ENCRYPTION_KEY'], otp_allowed_drift: 60 devise :rememberable, :trackable, :validatable, :timeoutable before_create :initialize_otp_secret def initialize_otp_secret self.otp_sec...
class User < ActiveRecord::Base devise :two_factor_authenticatable, otp_secret_encryption_key: Rails.env.test? ? 'SECRET' : ENV['TWO_FACTOR_ENCRYPTION_KEY'], otp_allowed_drift: 60 devise :rememberable, :trackable, :validatable, :timeoutable before_create :initialize_otp_secret def initializ...
Make tests less dependent on config.
Make tests less dependent on config. For the test environment it's okay if no TWO_FACTOR_ENCRYPTION_KEY is set up, we can use any old key. This will make it easier to run tests from a fresh install.
Ruby
mit
studentinsights/studentinsights,jhilde/studentinsights,hunterowens/somerville-teacher-tool,studentinsights/studentinsights,thfield/somerville-teacher-tool,codeforamerica/somerville-teacher-tool,erose/studentinsights,jamestyack/somerville-teacher-tool,codeforamerica/somerville-teacher-tool,studentinsights/studentinsight...
ruby
## Code Before: class User < ActiveRecord::Base devise :two_factor_authenticatable, otp_secret_encryption_key: ENV['TWO_FACTOR_ENCRYPTION_KEY'], otp_allowed_drift: 60 devise :rememberable, :trackable, :validatable, :timeoutable before_create :initialize_otp_secret def initialize_otp_secret ...
45e685fb5f40bceb5b98d75c790b6caa99ef738b
lib/domgen/xml/helper.rb
lib/domgen/xml/helper.rb
module Domgen module Xml module Helper def to_tag_name(name) name.to_s.gsub(/_/, '-').gsub(/\?/, '') end def tag_each(target, name) values = target.send(name) unless values.nil? || values.empty? doc.tag!(to_tag_name(name)) do values.each do |item| ...
module Domgen module Xml module Helper def to_tag_name(name) name.to_s.gsub(/_/, '-').gsub(/\?/, '') end def tag_each(target, name) values = target.send(name) unless values.nil? || values.empty? doc.tag!(to_tag_name(name)) do values.each do |item| ...
Fix failure-to-start crash when running under Rake, rather than Builder. No guarantee that the XML generation works however.
Fix failure-to-start crash when running under Rake, rather than Builder. No guarantee that the XML generation works however.
Ruby
apache-2.0
realityforge/domgen,icaughley/domgen,icaughley/domgen,william-ml-leslie/domgen,realityforge/domgen
ruby
## Code Before: module Domgen module Xml module Helper def to_tag_name(name) name.to_s.gsub(/_/, '-').gsub(/\?/, '') end def tag_each(target, name) values = target.send(name) unless values.nil? || values.empty? doc.tag!(to_tag_name(name)) do values....
cfa1b339d3524659319f10aa6d681e9c74618d6f
lib/model/AbstractEntity.ts
lib/model/AbstractEntity.ts
import {isPresent} from "../utils/core"; import {attribute} from "../annotations"; import {AttributesMetadata} from "../metadata/AttributesMetadata"; export abstract class AbstractEntity<T> { @attribute() id?:string; constructor(params:Partial<T> = {}) { let attributesMetadata = AttributesMetadata.get...
import {isPresent} from "../utils/core"; import {attribute} from "../annotations"; import {AttributesMetadata} from "../metadata/AttributesMetadata"; export abstract class AbstractEntity<T> { @attribute() readonly id?:string; constructor(params:Partial<T> = {}) { if (isPresent((params as any).id)) { ...
Add assertion for id property
Add assertion for id property
TypeScript
mit
robak86/neography
typescript
## Code Before: import {isPresent} from "../utils/core"; import {attribute} from "../annotations"; import {AttributesMetadata} from "../metadata/AttributesMetadata"; export abstract class AbstractEntity<T> { @attribute() id?:string; constructor(params:Partial<T> = {}) { let attributesMetadata = Attrib...
d135884b0f5d2880adf6a23f03750a6a8302e1d4
manifest.json
manifest.json
{ "name":"Tabular", "description":"Tree-based-tabs in chrome", "author":"ollien", "version":"0.1", "manifest_version":3, "icons":{ "16":"img/icon16.png", "48":"img/icon48.png", "128":"img/icon128.png" }, "offline_enabled":true, "browser_action":{ "default_icon":{ "19":"img/icon19.png", "38":"img/...
{ "name":"Tabular", "description":"Tree-based-tabs in chrome", "author":"ollien", "version":"0.1", "manifest_version":3, "icons":{ "16":"img/icon16.png", "48":"img/icon48.png", "128":"img/icon128.png" }, "offline_enabled":true, "browser_action":{ "default_icon":{ "19":"img/icon19.png", "38":"img/...
Add default shortcut to open the extension
Add default shortcut to open the extension
JSON
mit
ollien/Spectabular,ollien/Spectabular
json
## Code Before: { "name":"Tabular", "description":"Tree-based-tabs in chrome", "author":"ollien", "version":"0.1", "manifest_version":3, "icons":{ "16":"img/icon16.png", "48":"img/icon48.png", "128":"img/icon128.png" }, "offline_enabled":true, "browser_action":{ "default_icon":{ "19":"img/icon19.png...
1c4abc3e60aefef0fc80f6a2b3b57d0bb6d06374
.travis.yml
.travis.yml
language: java script: "mvn verify" jdk: - openjdk7 - openjdk8
language: java script: "mvn verify" jdk: - openjdk7 - openjdk8 cache: directories: - "$HOME/.m2"
Add caching of .m2 for Travis
Add caching of .m2 for Travis
YAML
apache-2.0
stinsonga/jsonschema2pojo,joelittlejohn/jsonschema2pojo,stinsonga/jsonschema2pojo,stinsonga/jsonschema2pojo,joelittlejohn/jsonschema2pojo,joelittlejohn/jsonschema2pojo
yaml
## Code Before: language: java script: "mvn verify" jdk: - openjdk7 - openjdk8 ## Instruction: Add caching of .m2 for Travis ## Code After: language: java script: "mvn verify" jdk: - openjdk7 - openjdk8 cache: directories: - "$HOME/.m2"
b76af26ba3afb49790bf6f302968b43caa6b0f94
models.js
models.js
var mongoose = require( 'mongoose' ); db = mongoose.connection; var Packages = db.model( 'Packages', require( './models/packages' )); Packages.ensureIndexes(function ( err ) { console.error(err); }); module.exports = { 'Packages' : Packages };
var mongoose = require( 'mongoose' ); db = mongoose.connection; var Component = db.model( 'Component', require( './models/component' )); Component.ensureIndexes(function ( err ) { console.error(err); }); module.exports = { 'Component' : Component };
Update naming of model Packages to Component
Update naming of model Packages to Component
JavaScript
mit
web-audio-components/web-audio-components-service
javascript
## Code Before: var mongoose = require( 'mongoose' ); db = mongoose.connection; var Packages = db.model( 'Packages', require( './models/packages' )); Packages.ensureIndexes(function ( err ) { console.error(err); }); module.exports = { 'Packages' : Packages }; ## Instruction: Update naming of model Packag...
7077f10830ae9ffda7acf7ca591ae85ecb667864
app/src/index.scss
app/src/index.scss
@import url("https://fonts.googleapis.com/css?family=Noto+Sans"); @import "./style/colors.scss"; @import "./style/border.scss"; @import "./style/shadow.scss"; @mixin font-without-size { color: $black; font-family: "Noto Sans", sans-serif; } @mixin font { @include font-without-size; font-size: 14px; } * { box-...
@import url("https://fonts.googleapis.com/css?family=Noto+Sans"); @import "./style/colors.scss"; @import "./style/border.scss"; @import "./style/shadow.scss"; @mixin font-without-size { color: $black; font-family: "Noto Sans", sans-serif; } @mixin font { @include font-without-size; font-size: 14px; } * { box-...
Change background color of scrollbar of sign-in page
Change background color of scrollbar of sign-in page
SCSS
mit
raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d
scss
## Code Before: @import url("https://fonts.googleapis.com/css?family=Noto+Sans"); @import "./style/colors.scss"; @import "./style/border.scss"; @import "./style/shadow.scss"; @mixin font-without-size { color: $black; font-family: "Noto Sans", sans-serif; } @mixin font { @include font-without-size; font-size: 14...
99dd45582cba9f54a5cc9042812d255fe57b1222
oauthclientbridge/__init__.py
oauthclientbridge/__init__.py
from flask import Flask from werkzeug.contrib.fixers import ProxyFix __version__ = '1.0.1' app = Flask(__name__) app.config.from_object('oauthclientbridge.default_settings') app.config.from_envvar('OAUTH_SETTINGS', silent=True) if app.config['OAUTH_NUM_PROXIES']: wrapper = ProxyFix(app.wsgi_app, app.config['OA...
from flask import Flask try: from werkzeug.middleware.proxy_fix import ProxyFix except ImportError: from werkzeug.contrib.fixers import ProxyFix __version__ = '1.0.1' app = Flask(__name__) app.config.from_object('oauthclientbridge.default_settings') app.config.from_envvar('OAUTH_SETTINGS', silent=True) if ...
Support new location of ProxyFix helper
Support new location of ProxyFix helper
Python
apache-2.0
adamcik/oauthclientbridge
python
## Code Before: from flask import Flask from werkzeug.contrib.fixers import ProxyFix __version__ = '1.0.1' app = Flask(__name__) app.config.from_object('oauthclientbridge.default_settings') app.config.from_envvar('OAUTH_SETTINGS', silent=True) if app.config['OAUTH_NUM_PROXIES']: wrapper = ProxyFix(app.wsgi_app...
9b524fa97d1d1c8c132d1a880103a5ab4d0dabfc
models.py
models.py
from google.appengine.ext import ndb class Photo(ndb.Model): name = ndb.StringProperty() blob_info_key = ndb.BlobKeyProperty() date_created = ndb.DateTimeProperty(auto_now_add=True) class Album(ndb.Model): name = ndb.StringProperty() description = ndb.StringProperty() date_created = ndb.Date...
from google.appengine.ext import ndb class Photo(ndb.Model): name = ndb.StringProperty() blob_info_key = ndb.BlobKeyProperty() date_created = ndb.DateTimeProperty(auto_now_add=True) class Album(ndb.Model): name = ndb.StringProperty() description = ndb.StringProperty() date_created = ndb.Date...
Add Comment Model for Photo and Album
Add Comment Model for Photo and Album
Python
mit
MichaelAquilina/Photo-Nebula,MichaelAquilina/Photo-Nebula
python
## Code Before: from google.appengine.ext import ndb class Photo(ndb.Model): name = ndb.StringProperty() blob_info_key = ndb.BlobKeyProperty() date_created = ndb.DateTimeProperty(auto_now_add=True) class Album(ndb.Model): name = ndb.StringProperty() description = ndb.StringProperty() date_cr...
7d0c97b5a56142dcffcd50486c872ebbd1b09595
helpers.js
helpers.js
'use strict'; exports.formatStr = function () { var args = Array.prototype.slice.call(arguments) , str = args.shift() , i = 0; return str.replace(/\{([0-9]*)\}/g, function (m, argI) { argI = argI || i; i += 1; return typeof(args[argI]) !== 'undefined' ? args[argI] : ''; }); }; exports.stringList...
'use strict'; exports.formatStr = function () { var args = Array.prototype.slice.call(arguments) , str = args.shift() , i = 0; return str.replace(/\{([0-9]*)\}/g, function (m, argI) { argI = argI || i; i += 1; return String(args[argI]); }); }; exports.stringListJoin = function (arr) { if (arr....
Use string representation of object when formatting error messages
Use string representation of object when formatting error messages
JavaScript
mit
jaycetde/is-validation
javascript
## Code Before: 'use strict'; exports.formatStr = function () { var args = Array.prototype.slice.call(arguments) , str = args.shift() , i = 0; return str.replace(/\{([0-9]*)\}/g, function (m, argI) { argI = argI || i; i += 1; return typeof(args[argI]) !== 'undefined' ? args[argI] : ''; }); }; ex...
ab7c28f902d42777207489832b8179ca877ffd56
public/js/main.js
public/js/main.js
//Load in the require.js config file require([ 'require-config' , 'app' ], function(conf, App) { new App() })
//Load in the require.js config file require([ 'require-config' ], function(conf) { require(['app'], function() { new App() }) })
Fix race condition in app startup
Fix race condition in app startup
JavaScript
mit
cosmicflame/besttemplate,cosmicflame/besttemplate
javascript
## Code Before: //Load in the require.js config file require([ 'require-config' , 'app' ], function(conf, App) { new App() }) ## Instruction: Fix race condition in app startup ## Code After: //Load in the require.js config file require([ 'require-config' ], function(conf) { require(['app'], function() { new A...
8f9ef8825615852b667b762ff59870505d5f6d74
lib/assets/javascripts/dashboard/components/support-view.js
lib/assets/javascripts/dashboard/components/support-view.js
const CoreView = require('backbone/core-view'); const template = require('./support-view/support-banner.tpl'); const checkAndBuildOpts = require('../../builder/helpers/required-opts'); const REQUIRED_OPTS = [ 'userModel' ]; /** * Decide what support block app should show * */ module.exports = CoreView.extend({ ...
const CoreView = require('backbone/core-view'); const template = require('./support-view/support-banner.tpl'); const checkAndBuildOpts = require('../../builder/helpers/required-opts'); const REQUIRED_OPTS = [ 'userModel' ]; /** * Decide what support block app should show * */ module.exports = CoreView.extend({ ...
Add SupportBanner class to support view
Add SupportBanner class to support view
JavaScript
bsd-3-clause
CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb
javascript
## Code Before: const CoreView = require('backbone/core-view'); const template = require('./support-view/support-banner.tpl'); const checkAndBuildOpts = require('../../builder/helpers/required-opts'); const REQUIRED_OPTS = [ 'userModel' ]; /** * Decide what support block app should show * */ module.exports = Co...