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
0caa3cfe22c7bfaf7f2460b3d24c148713fbbc10
ci/tasks/build-ucl.yaml
ci/tasks/build-ucl.yaml
--- platform: linux image: packages/base-build inputs: - name: docker-upx.git - name: ucl/source outputs: - name: ucl/build run: path: docker-upx.git/ci/scripts/build-ucl
--- platform: linux image: docker:///packages/build-base inputs: - name: docker-upx.git - name: ucl/source outputs: - name: ucl/build run: path: docker-upx.git/ci/scripts/build-ucl
Fix bad image reference in task
Fix bad image reference in task
YAML
mit
colstrom/docker-upx
yaml
## Code Before: --- platform: linux image: packages/base-build inputs: - name: docker-upx.git - name: ucl/source outputs: - name: ucl/build run: path: docker-upx.git/ci/scripts/build-ucl ## Instruction: Fix bad image reference in task ## Code After: --- platform: linux image: docker:///packages/build-base inp...
e5d456300842357725e18ab53787f3b6963e6abb
app/admin/artifact.rb
app/admin/artifact.rb
ActiveAdmin.register Artifact do permit_params :name, :approved, :downloadable, :author, :user, :file_hash, :mirrors, :license, :more_info_urls, :extra_license_text, :stored_files, :tag_list, :software_list, :file_format_list index do selectable_column id_column column :name column :user co...
ActiveAdmin.register Artifact do permit_params :name, :approved, :downloadable, :author, :user, :file_hash, :mirrors, :license, :more_info_urls, :extra_license_text, :stored_files, :tag_list, :software_list, :file_format_list index do selectable_column id_column column :name column :user co...
Correct tags, mirrors, etc in admin dashboard in case of nil values
Correct tags, mirrors, etc in admin dashboard in case of nil values
Ruby
mit
lfzawacki/musical-artifacts,lfzawacki/musical-artifacts,lfzawacki/musical-artifacts,lfzawacki/musical-artifacts
ruby
## Code Before: ActiveAdmin.register Artifact do permit_params :name, :approved, :downloadable, :author, :user, :file_hash, :mirrors, :license, :more_info_urls, :extra_license_text, :stored_files, :tag_list, :software_list, :file_format_list index do selectable_column id_column column :name col...
05f8d24ed87947f368b849d0b1b2c31383e4279c
lib/spree.rb
lib/spree.rb
SPREE_ROOT = File.expand_path(File.join(File.dirname(__FILE__), "..")) unless defined? SPREE_ROOT unless defined? Spree::Version module Spree module Version Major = '0' Minor = '9' Tiny = '99' class << self def to_s [Major, Minor, Tiny].join('.') end a...
SPREE_ROOT = File.expand_path(File.join(File.dirname(__FILE__), "..")) unless defined? SPREE_ROOT unless defined? Spree::Version module Spree module Version Major = '0' Minor = '10' Tiny = '0' Pre = nil # 'beta' class << self def to_s v = "#{Major}.#{Minor}....
Allow for pre-release gem versions.
Allow for pre-release gem versions.
Ruby
bsd-3-clause
Nevensoft/spree,jasonfb/spree,archSeer/spree,richardnuno/solidus,SadTreeFriends/spree,bjornlinder/Spree,njerrywerry/spree,robodisco/spree,zaeznet/spree,shaywood2/spree,jeffboulet/spree,surfdome/spree,Senjai/spree,softr8/spree,omarsar/spree,patdec/spree,kewaunited/spree,Ropeney/spree,alepore/spree,thogg4/spree,hifly/spr...
ruby
## Code Before: SPREE_ROOT = File.expand_path(File.join(File.dirname(__FILE__), "..")) unless defined? SPREE_ROOT unless defined? Spree::Version module Spree module Version Major = '0' Minor = '9' Tiny = '99' class << self def to_s [Major, Minor, Tiny].join('.') ...
793e31c814519453f649bd8f7bc898caa35a07b4
app/js/react-em.js
app/js/react-em.js
var CommentBox = React.createClass({ render: function() { return ( <div className="commentBox"> <h1>Comments</h1> <CommentList /> <CommentForm /> </div> ); } }); var CommentList = React.createClass({ render: function() { return ( <div className="commentList">...
var data = [ {id: 1, author: "Clint Eastwood", text: "This is one comment"}, {id: 2, author: "Eric Modeen", text: "This is *another* comment"} ]; var CommentBox = React.createClass({ render: function() { return ( <div className="commentBox"> <h1>Comments</h1> <CommentList data={this.pro...
Use JSON to pass in data to CommentList
Use JSON to pass in data to CommentList
JavaScript
mit
emodeen/healthcare-dashboard-angular,emodeen/nrdsc,emodeen/nrdsc,emodeen/nrdsc,emodeen/healthcare-dashboard-angular,emodeen/nrdsc,emodeen/healthcare-dashboard-angular
javascript
## Code Before: var CommentBox = React.createClass({ render: function() { return ( <div className="commentBox"> <h1>Comments</h1> <CommentList /> <CommentForm /> </div> ); } }); var CommentList = React.createClass({ render: function() { return ( <div classNam...
f1daedf4c2d20d85e899a033726b81728633fd90
Widgets/Widgets/PictureOfTheDayWidget+LocalizedStrings.swift
Widgets/Widgets/PictureOfTheDayWidget+LocalizedStrings.swift
import Foundation import WMF extension PictureOfTheDayWidget { enum LocalizedStrings { static let widgetTitle = WMFLocalizedString("potd-widget-title", value:"Picture of the day", comment: "Text for title of Picture of the day widget.") static let widgetDescription = WMFLocalizedString("potd-widget-description",...
import Foundation import WMF extension PictureOfTheDayWidget { enum LocalizedStrings { static let widgetTitle = WMFLocalizedString("potd-widget-title", value:"Picture of the day", comment: "Text for title of Picture of the day widget.") static let widgetDescription = WMFLocalizedString("potd-widget-description",...
Rename localized string key for sample entry description.
Rename localized string key for sample entry description.
Swift
mit
wikimedia/wikipedia-ios,wikimedia/wikipedia-ios,wikimedia/wikipedia-ios,wikimedia/wikipedia-ios,wikimedia/wikipedia-ios,wikimedia/wikipedia-ios,wikimedia/wikipedia-ios
swift
## Code Before: import Foundation import WMF extension PictureOfTheDayWidget { enum LocalizedStrings { static let widgetTitle = WMFLocalizedString("potd-widget-title", value:"Picture of the day", comment: "Text for title of Picture of the day widget.") static let widgetDescription = WMFLocalizedString("potd-widg...
7c6af226c601e337a4d4a11f345a0be5034fab42
src/router/index.js
src/router/index.js
import Vue from 'vue'; import VueResource from 'vue-resource'; import Router from 'vue-router'; import Endpoint from '@/components/Endpoint'; import EndpointList from '@/components/EndpointList'; import Home from '@/components/Home'; import yaml from 'js-yaml'; Vue.use(Router); Vue.use(VueResource); const router = ne...
import Vue from 'vue'; import VueResource from 'vue-resource'; import Router from 'vue-router'; import Endpoint from '@/components/Endpoint'; import EndpointList from '@/components/EndpointList'; import Home from '@/components/Home'; import yaml from 'js-yaml'; Vue.use(Router); Vue.use(VueResource); const router = ne...
Remove unnecessary routes for specific routes
Remove unnecessary routes for specific routes
JavaScript
mit
Decicus/DecAPI-Docs,Decicus/DecAPI-Docs
javascript
## Code Before: import Vue from 'vue'; import VueResource from 'vue-resource'; import Router from 'vue-router'; import Endpoint from '@/components/Endpoint'; import EndpointList from '@/components/EndpointList'; import Home from '@/components/Home'; import yaml from 'js-yaml'; Vue.use(Router); Vue.use(VueResource); c...
3edddc31237cf76276a74d67d8e93120a128c22d
tests/src/main/scala/ingraph/tests/BiValidationTest.scala
tests/src/main/scala/ingraph/tests/BiValidationTest.scala
package ingraph.tests import org.scalatest.FunSuite class BiValidationTest extends FunSuite { //val testCases: Seq[LdbcSnbTestCase] = Seq(2, 3, 4, 6, 7, 8, 9, 12, 15, 17, 23, 24) map (new LdbcSnbTestCase("bi", _)) val testCases: Seq[LdbcSnbTestCase] = Seq(2, 4, 6, 7, 8, 9, 12) map (new LdbcSnbTestCase("bi", _)) ...
package ingraph.tests import org.scalatest.FunSuite class BiValidationTest extends FunSuite { //val testCases: Seq[LdbcSnbTestCase] = Seq(2, 3, 4, 6, 7, 8, 9, 12, 15, 17, 23, 24) map (new LdbcSnbTestCase("bi", _)) val testCases: Seq[LdbcSnbTestCase] = Seq(2, 4, 6, 7, 8, 9, 12) map (new LdbcSnbTestCase("bi", _)) ...
Swap results to get proper actual vs. expected order
Swap results to get proper actual vs. expected order
Scala
epl-1.0
FTSRG/ingraph,FTSRG/ingraph,FTSRG/ingraph,FTSRG/ingraph,FTSRG/ingraph
scala
## Code Before: package ingraph.tests import org.scalatest.FunSuite class BiValidationTest extends FunSuite { //val testCases: Seq[LdbcSnbTestCase] = Seq(2, 3, 4, 6, 7, 8, 9, 12, 15, 17, 23, 24) map (new LdbcSnbTestCase("bi", _)) val testCases: Seq[LdbcSnbTestCase] = Seq(2, 4, 6, 7, 8, 9, 12) map (new LdbcSnbTes...
0fd85e031eec0b8b2e5896185d32c320016ac8db
README.md
README.md
The Sensu handlers must have the team declarations available for consumption. This data must be in hiera because currently the monitoring\_check module also utilizes it. On the plus side, hiera allows you to describe your team configuration easily: ``` sensu_handlers::teams: dev1: pagerduty_api_key: 1234 p...
![Build status](https://travis-ci.org/Yelp/sensu_handlers.svg) # Yelp sensu\_handlers ## Usage ### Teams The Sensu handlers must have the team declarations available for consumption. This data must be in hiera because currently the monitoring\_check module also utilizes it. On the plus side, hiera allows you to de...
Add the travis build status icon
Add the travis build status icon
Markdown
apache-2.0
somic/sensu_handlers
markdown
## Code Before: The Sensu handlers must have the team declarations available for consumption. This data must be in hiera because currently the monitoring\_check module also utilizes it. On the plus side, hiera allows you to describe your team configuration easily: ``` sensu_handlers::teams: dev1: pagerduty_api...
5f4889dfa722a58ec22ea827e6150bc32141f304
README.md
README.md
Zeegaree ======== Stopwatch, Timer and Time Management ## Where does it work? Zeegaree was developed to work with desktop version of Ubuntu Unity in mind but it also should work on other Linux distros. ## Dependencies **Zeegaree needs few packages in order to work properly.** These are: - libqt4-sql-sqlite - python-...
Zeegaree ======== Stopwatch, Timer and Time Management ## Where does it work? Zeegaree was developed to work with desktop version of Ubuntu Unity in mind but it also should work on other Linux distros. ## Dependencies **Zeegaree needs few packages in order to work properly.** These are: - libqt4-sql-sqlite - python-...
Add info about "python-dbus" to dependencies
Add info about "python-dbus" to dependencies @teobaluta noticed that "python-dbus" is needed on Ubuntu 16.04 ( https://github.com/mivoligo/Zeegaree/issues/8 )
Markdown
apache-2.0
mivoligo/Zeegaree,mivoligo/Zeegaree
markdown
## Code Before: Zeegaree ======== Stopwatch, Timer and Time Management ## Where does it work? Zeegaree was developed to work with desktop version of Ubuntu Unity in mind but it also should work on other Linux distros. ## Dependencies **Zeegaree needs few packages in order to work properly.** These are: - libqt4-sql-...
ca5660d324e5faa4c795bd3d92a6bf61051b0af3
src/certificate/randomgenerator.cpp
src/certificate/randomgenerator.cpp
QT_BEGIN_NAMESPACE_CERTIFICATE /*! \class RandomGenerator \brief The RandomGenerator class is a tool for creating hard random numbers. The RandomGenerator class provides a source of secure random numbers using the system's random source (/dev/random on UNIX). The numbers are suitable for uses such as certi...
QT_BEGIN_NAMESPACE_CERTIFICATE /*! \class RandomGenerator \brief The RandomGenerator class is a tool for creating hard random numbers. The RandomGenerator class provides a source of secure random numbers using the gnutls rnd API. The numbers are suitable for uses such as certificate serial numbers. */ /*!...
Switch from using /dev/random directly to use gnutls_rnd.
Switch from using /dev/random directly to use gnutls_rnd. This removes the platform specific code, so we should be portable again.
C++
lgpl-2.1
richmoore/qt-certificate-addon,richmoore/qt-certificate-addon
c++
## Code Before: QT_BEGIN_NAMESPACE_CERTIFICATE /*! \class RandomGenerator \brief The RandomGenerator class is a tool for creating hard random numbers. The RandomGenerator class provides a source of secure random numbers using the system's random source (/dev/random on UNIX). The numbers are suitable for us...
65a4dd3eb836db75ce80c58f2de8b755c04445c9
test/test_mechanize_http_auth_challenge.rb
test/test_mechanize_http_auth_challenge.rb
require 'mechanize/test_case' class TestMechanizeHttpAuthChallenge < Mechanize::TestCase def setup super @uri = URI 'http://example/' @AR = Mechanize::HTTP::AuthRealm @AC = Mechanize::HTTP::AuthChallenge @challenge = @AC.new 'Digest', { 'realm' => 'r' }, 'Digest realm=r' end def test_realm...
require 'mechanize/test_case' class TestMechanizeHttpAuthChallenge < Mechanize::TestCase def setup super @uri = URI 'http://example/' @AR = Mechanize::HTTP::AuthRealm @AC = Mechanize::HTTP::AuthChallenge @challenge = @AC.new 'Digest', { 'realm' => 'r' }, 'Digest realm=r' end def test_realm...
Add tests for realm case sensitivity in AuthChallenge
Add tests for realm case sensitivity in AuthChallenge As per RFC 1945 (section 11) and RFC 2617, the realm value is case sensitive. This commit adds tests for realm case sensitivity in Mechanize::HTTP::AuthChallenge.
Ruby
mit
eligoenergy/mechanize,sparklemotion/mechanize,sparklemotion/mechanize,eligoenergy/mechanize,flavorjones/mechanize
ruby
## Code Before: require 'mechanize/test_case' class TestMechanizeHttpAuthChallenge < Mechanize::TestCase def setup super @uri = URI 'http://example/' @AR = Mechanize::HTTP::AuthRealm @AC = Mechanize::HTTP::AuthChallenge @challenge = @AC.new 'Digest', { 'realm' => 'r' }, 'Digest realm=r' end ...
0d871b83165f0f8b7b663516c05b1e6e646dfd1e
.travis.yml
.travis.yml
sudo: required dist: trusty language: - cpp compiler: - gcc before_install: - pip install --user cpp-coveralls - echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca- addons: apt: packages: - ruby cove...
sudo: required dist: trusty language: - cpp compiler: - gcc before_install: - pip install --user cpp-coveralls - echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca- addons: apt: packages: - ruby cove...
Rollback to MxxRu 1.6.14.4 in Travis CI.
Rollback to MxxRu 1.6.14.4 in Travis CI.
YAML
mit
igormironchik/read-excel
yaml
## Code Before: sudo: required dist: trusty language: - cpp compiler: - gcc before_install: - pip install --user cpp-coveralls - echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca- addons: apt: packages: ...
43e1f20e85eb78b80c89dfc3456b1544faee4f00
lib/sinatra/assetpack.rb
lib/sinatra/assetpack.rb
require 'rack/test' module Sinatra module AssetPack def self.registered(app) unless app.root? raise Error, "Please set :root in your Sinatra app." end app.extend ClassMethods app.helpers Helpers end # Returns a list of formats that can be served. # Anything not in t...
require 'rack/test' module Sinatra module AssetPack def self.registered(app) unless app.root? raise Error, "Please set :root in your Sinatra app." end app.extend ClassMethods app.helpers Helpers end # Returns a list of formats that can be served. # Anything not in t...
Add filetypes used in @font-face.
Add filetypes used in @font-face.
Ruby
mit
rstacruz/sinatra-assetpack,rstacruz/sinatra-assetpack,flywithmemsl/sinatra-assetpack,flywithmemsl/sinatra-assetpack,rstacruz/sinatra-assetpack,flywithmemsl/sinatra-assetpack,jwhitcraft/sinatra-assetpack,jwhitcraft/sinatra-assetpack,jwhitcraft/sinatra-assetpack
ruby
## Code Before: require 'rack/test' module Sinatra module AssetPack def self.registered(app) unless app.root? raise Error, "Please set :root in your Sinatra app." end app.extend ClassMethods app.helpers Helpers end # Returns a list of formats that can be served. # A...
644392bc52d91c0e9476bfd0a0016efa66c095b8
script/msgpackify.coffee
script/msgpackify.coffee
msgpack = require 'msgpack' r = require('redis').createClient detect_buffers: true r.keys '*', (err, all_keys) -> throw err if err keys = [] for key in all_keys parts = key.split ':' continue if (parts.length == 1) || (parts[0] == 'lock') keys.push key count = keys.length for key in keys do (...
msgpack = require 'msgpack' r = require('redis').createClient 6379, 'localhost', detect_buffers: true r.keys '*', (err, all_keys) -> throw err if err keys = [] for key in all_keys parts = key.split ':' continue if (parts.length == 1) || (parts[0] == 'lock') keys.push key count = keys.length for k...
Fix bug in new script
Fix bug in new script
CoffeeScript
mit
waterfield/redeye,waterfield/redeye
coffeescript
## Code Before: msgpack = require 'msgpack' r = require('redis').createClient detect_buffers: true r.keys '*', (err, all_keys) -> throw err if err keys = [] for key in all_keys parts = key.split ':' continue if (parts.length == 1) || (parts[0] == 'lock') keys.push key count = keys.length for key ...
09e65fc25e2ff9a5dac6df1d2b0670027752c942
test/unittests/front_end/test_setup/test_setup.ts
test/unittests/front_end/test_setup/test_setup.ts
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /* * This file is automatically loaded and run by Karma because it automatically * loads and injects all *.js files it finds. */ import type * as Commo...
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /* * This file is automatically loaded and run by Karma because it automatically * loads and injects all *.js files it finds. */ import type * as Commo...
Clear sinon stubs between each unit test
Clear sinon stubs between each unit test Consider the following unit tests: ``` describe.only('jack test', () => { const someObj = { foo() { return 2; }, }; it('does a thing', () => { const stub = sinon.stub(someObj, 'foo').callsFake(() => { return 5; }) assert.strictEqual(someOb...
TypeScript
bsd-3-clause
ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend
typescript
## Code Before: // Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /* * This file is automatically loaded and run by Karma because it automatically * loads and injects all *.js files it finds. */ import...
db3a73a5fba7c2a587d7983cc48df7730a9d80a5
package.json
package.json
{ "name": "cloudatcost", "version": "1.2.0", "description": "CloudAtCost: An Ionic project", "scripts": { "start": "ionic serve", "emulate:ios": "ionic emulate ios --target iPhone-6", "run:ios": "ionic run ios --device" }, "dependencies": { "gulp": "^3.5.6", "gulp-sass": "^2.3.1", "g...
{ "name": "cloudatcost", "version": "1.2.0", "description": "CloudAtCost: An Ionic project", "scripts": { "start": "ionic serve", "emulate:ios": "ionic emulate ios --target iPhone-6", "run:ios": "ionic run ios --device" }, "dependencies": { "gulp": "^3.5.6", "gulp-sass": "^2.3.1", "g...
Add cordova-whitelist-plugin to allow network requests on android
fix(whitelist): Add cordova-whitelist-plugin to allow network requests on android
JSON
mit
AndreasGassmann/cloudatcostapp,AndreasGassmann/cloudatcostapp,AndreasGassmann/cloudatcostapp
json
## Code Before: { "name": "cloudatcost", "version": "1.2.0", "description": "CloudAtCost: An Ionic project", "scripts": { "start": "ionic serve", "emulate:ios": "ionic emulate ios --target iPhone-6", "run:ios": "ionic run ios --device" }, "dependencies": { "gulp": "^3.5.6", "gulp-sass": ...
80a11d3ccca09d156272d69ed18f1471b9efb55e
Cargo.toml
Cargo.toml
[package] exclude = [ ".gitmodules", ".gitignore", ".travis.yml" ] authors = [ "Tom Bebbington <tophattedcoder@gmail.com>" ] description = "Just-In-Time Compilation in Rust using LibJIT bindings" documentation = "http://tombebbington.github.io/jit.rs/" keywords = [ "compile", "compiler", "jit", "interpreter" ] license...
[package] exclude = [ ".gitmodules", ".gitignore", ".travis.yml" ] authors = [ "Tom Bebbington <tophattedcoder@gmail.com>" ] description = "Just-In-Time Compilation in Rust using LibJIT bindings" documentation = "http://tombebbington.github.io/jit.rs/" keywords = [ "compile", "compiler", "jit", "interpreter" ] license...
Use path dependencies for the repo-internal crates.
Use path dependencies for the repo-internal crates. This ensures that git dependencies get the correct version of those crates.
TOML
mit
TomBebbington/jit.rs,tempbottle/jit.rs,bvssvni/jit.rs
toml
## Code Before: [package] exclude = [ ".gitmodules", ".gitignore", ".travis.yml" ] authors = [ "Tom Bebbington <tophattedcoder@gmail.com>" ] description = "Just-In-Time Compilation in Rust using LibJIT bindings" documentation = "http://tombebbington.github.io/jit.rs/" keywords = [ "compile", "compiler", "jit", "interp...
259598230240544af945254ed834a32eebec2608
Pod/Classes/Utils/UIColor+HKHex.h
Pod/Classes/Utils/UIColor+HKHex.h
// // UIColor+HKHex.h // HKProjectBase-Sample // // Created by Harley.xk on 15/8/26. // Copyright (c) 2015年 Harley.xk. All rights reserved. // #import <UIKit/UIKit.h> @interface UIColor (HKHex) + (UIColor *)colorWithHexString:(NSString *)hexString; + (UIColor *)colorWithHexString:(NSString *)hexString alpha:(CGF...
// // UIColor+HKHex.h // HKProjectBase-Sample // // Created by Harley.xk on 15/8/26. // Copyright (c) 2015年 Harley.xk. All rights reserved. // #import <UIKit/UIKit.h> @interface UIColor (HKHex) /** * 使用16进制字符串创建颜色 * * @param hexString 16进制字符串,可以是 0XFFFFFF/#FFFFFF/FFFFFF 三种格式之一 * * @return 返回创建的UIColor对象 ...
Add comment to Hex color category
Add comment to Hex color category
C
mit
Harley-xk/HKProjectBase,Harley-xk/HKProjectBase,Harley-xk/HKProjectBase
c
## Code Before: // // UIColor+HKHex.h // HKProjectBase-Sample // // Created by Harley.xk on 15/8/26. // Copyright (c) 2015年 Harley.xk. All rights reserved. // #import <UIKit/UIKit.h> @interface UIColor (HKHex) + (UIColor *)colorWithHexString:(NSString *)hexString; + (UIColor *)colorWithHexString:(NSString *)hexS...
159c20827bc1b14aff2608ccfbf194cfc62df07a
src/Zuehlke.Eacm.Client/src/app/shared/navbar/navbar.component.html
src/Zuehlke.Eacm.Client/src/app/shared/navbar/navbar.component.html
<nav class="navbar"> <a md-button class="button" routerLink="/" aria-label="Configuration Manager"> Configuration Manager </a> <div class="flex-spacer"></div> </nav>
<nav class="navbar"> <a md-button class="button" routerLink="/" aria-label="Configuration Manager"> Configuration Manager </a> <md-menu #projectsMenu="mdMenu"> <a md-button class="button" routerLink="/projects" aria-label="All Projects"> All Projects </a> </md-menu> <button md-icon-button [...
Add a projects menu button
Add a projects menu button
HTML
mit
lehmamic/EnterpriseApplicationConfigurationManager,lehmamic/EnterpriseApplicationConfigurationManager,lehmamic/EnterpriseApplicationConfigurationManager,lehmamic/EnterpriseApplicationConfigurationManager
html
## Code Before: <nav class="navbar"> <a md-button class="button" routerLink="/" aria-label="Configuration Manager"> Configuration Manager </a> <div class="flex-spacer"></div> </nav> ## Instruction: Add a projects menu button ## Code After: <nav class="navbar"> <a md-button class="button" routerLink="/" ar...
007afa6f32c7cfd9e0157d62113cc81abd6df098
README.md
README.md
A lite Zebra (i.e. a baby Zebra)
A lite Zebra (i.e. a baby Zebra) ## Overview This is a light version of Zebra enabling users to access their forms and submissions through the Ona API. They will not be able to access projects and organisations from this version. ## Component Architecture + Login + Forms View + Submission View * table-page * ...
Update readme to include the component architecture of zebra-lite
GM: Update readme to include the component architecture of zebra-lite
Markdown
agpl-3.0
onaio/zebra-lite,onaio/zebra-lite
markdown
## Code Before: A lite Zebra (i.e. a baby Zebra) ## Instruction: GM: Update readme to include the component architecture of zebra-lite ## Code After: A lite Zebra (i.e. a baby Zebra) ## Overview This is a light version of Zebra enabling users to access their forms and submissions through the Ona API. They will not b...
ae9cf04fb6ef5df90954046a663af2a9d93387de
src/gallery.reveal.js
src/gallery.reveal.js
(function() { if( typeof window.addEventListener === 'function' ) { Reveal.addEventListener("slidechanged", function (event) { if (event.previousSlide.querySelector('.gallery') || document.querySelector('.reveal > .gallery')) { Gallery.stop(); } Gallery.start(event.currentSlide); }); // during ini...
(function() { if( typeof window.addEventListener === 'function' ) { Reveal.addEventListener("slidechanged", function (event) { if (event.previousSlide.querySelector('.gallery') || document.querySelector('.reveal > .gallery')) { Gallery.stop(); } var galleryNode = event.currentSlide.querySelector('.gall...
Fix plugin to pass right node in
Fix plugin to pass right node in
JavaScript
mit
marcins/revealjs-simple-gallery
javascript
## Code Before: (function() { if( typeof window.addEventListener === 'function' ) { Reveal.addEventListener("slidechanged", function (event) { if (event.previousSlide.querySelector('.gallery') || document.querySelector('.reveal > .gallery')) { Gallery.stop(); } Gallery.start(event.currentSlide); }); ...
8d0c1ce42f72cf87f83836487994a51b7fb8c9f5
.travis.yml
.travis.yml
language: java jdk: oraclejdk8 before_install: - npm install after_script: - grunt test
language: java jdk: oraclejdk8 before_install: - npm install after_success: - ./gradlew build - grunt test
Update to build before QUnit test
Update to build before QUnit test
YAML
mit
kvakil/venus,kvakil/venus,kvakil/venus
yaml
## Code Before: language: java jdk: oraclejdk8 before_install: - npm install after_script: - grunt test ## Instruction: Update to build before QUnit test ## Code After: language: java jdk: oraclejdk8 before_install: - npm install after_success: - ./gradlew build - grunt test
c723471a21751382d92fcbe017a9ce673571a601
pombola/south_africa/templates/south_africa/latlon_national_view.html
pombola/south_africa/templates/south_africa/latlon_national_view.html
{% extends 'south_africa/latlon_detail_base_view.html' %} {% load url from future %} {% block title %}{{ object.name }} - National Politicians{% endblock %} {% block subcontent %} <ul class="tab-links"> <li><a href="{% url 'latlon' lat=location.y lon=location.x %}">Constituency offices</a></li> <li><a ...
{% extends 'south_africa/latlon_detail_base_view.html' %} {% load url from future %} {% block title %}{{ object.name }} - National Politicians{% endblock %} {% block subcontent %} <ul class="tab-links"> <li><a href="{% url 'latlon' lat=location.y lon=location.x %}">Constituency offices</a></li> <li><a ...
Add province name to the heading
Add province name to the heading
HTML
agpl-3.0
hzj123/56th,geoffkilpin/pombola,ken-muturi/pombola,hzj123/56th,mysociety/pombola,patricmutwiri/pombola,mysociety/pombola,geoffkilpin/pombola,patricmutwiri/pombola,patricmutwiri/pombola,ken-muturi/pombola,hzj123/56th,ken-muturi/pombola,mysociety/pombola,ken-muturi/pombola,mysociety/pombola,ken-muturi/pombola,geoffkilpin...
html
## Code Before: {% extends 'south_africa/latlon_detail_base_view.html' %} {% load url from future %} {% block title %}{{ object.name }} - National Politicians{% endblock %} {% block subcontent %} <ul class="tab-links"> <li><a href="{% url 'latlon' lat=location.y lon=location.x %}">Constituency offices</a></l...
49999de7ac753f57e3c25d9d36c1806f3ec3a0ee
omnirose/curve/forms.py
omnirose/curve/forms.py
from django import forms from django.forms.models import formset_factory, BaseModelFormSet from django.forms.widgets import NumberInput from .models import Reading class ReadingForm(forms.Form): ships_head = forms.FloatField(required=False, widget=NumberInput(attrs={'style': "width: 5em;"})) deviation = form...
from django import forms from django.forms.models import formset_factory, BaseModelFormSet from django.forms.widgets import NumberInput from .models import Reading class DegreeInput(NumberInput): """Set the default style""" def __init__(self, attrs=None): if attrs is None: attrs = {} ...
Customize degree widget so that if formats floats more elegantly
Customize degree widget so that if formats floats more elegantly
Python
agpl-3.0
OmniRose/omnirose-website,OmniRose/omnirose-website,OmniRose/omnirose-website
python
## Code Before: from django import forms from django.forms.models import formset_factory, BaseModelFormSet from django.forms.widgets import NumberInput from .models import Reading class ReadingForm(forms.Form): ships_head = forms.FloatField(required=False, widget=NumberInput(attrs={'style': "width: 5em;"})) d...
24820f57df9ac141eac7557041c5dd945e69a159
app/assets/javascripts/admin/admin.js.coffee
app/assets/javascripts/admin/admin.js.coffee
jQuery -> $('.locales a:first').tab('show') $('.accordion-body').on('hidden', -> $(@).prev().find('i').first().removeClass().addClass('icon-chevron-right') ) $('.accordion-body').on('shown', -> $(@).prev().find('i').first().removeClass().addClass('icon-chevron-down')) $('body').o...
jQuery -> $('.locales a:first').tab('show') $('.accordion-body').on('hidden', -> $(@).prev().find('i').first().removeClass().addClass('icon-chevron-right') ) $('.accordion-body').on('shown', -> $(@).prev().find('i').first().removeClass().addClass('icon-chevron-down')) $('.toggle-...
Fix syntax error in on() method.
Fix syntax error in on() method. Looks like this was a mistake in ec2999ef8c233d30c46dd5181e246916b0145606
CoffeeScript
agpl-3.0
nzherald/alaveteli,andreicristianpetcu/alaveteli,Br3nda/alaveteli,4bic/alaveteli,andreicristianpetcu/alaveteli_old,Br3nda/alaveteli,4bic/alaveteli,andreicristianpetcu/alaveteli_old,andreicristianpetcu/alaveteli_old,andreicristianpetcu/alaveteli_old,andreicristianpetcu/alaveteli,nzherald/alaveteli,4bic/alaveteli,andreic...
coffeescript
## Code Before: jQuery -> $('.locales a:first').tab('show') $('.accordion-body').on('hidden', -> $(@).prev().find('i').first().removeClass().addClass('icon-chevron-right') ) $('.accordion-body').on('shown', -> $(@).prev().find('i').first().removeClass().addClass('icon-chevron-down'))...
43ae00206a8c53e5b87c814e6b41e0e711d62bb5
scripts/run-all.sh
scripts/run-all.sh
mkdir -p log function cleanUp() { kill `cat log/mongodb.pid` } trap cleanUp EXIT mkdir -p mongodb mongod --dbpath mongodb --pidfilepath log/mongodb.pid > log/mongodb.log 2>&1 & scripts/web-server.js > log/webserver.log 2>&1 & cd ../monkey-tail supervisor app.js > ../monkey-face/log/app.log 2>&1 & cd ../monkey-...
mkdir -p log function cleanUp() { kill `cat log/mongodb.pid` } trap cleanUp EXIT mkdir -p mongodb mongod --dbpath mongodb --pidfilepath log/mongodb.pid > log/mongodb.log 2>&1 & scripts/web-server.js > log/webserver.log 2>&1 & cd ../monkey-tail supervisor app.js > ../monkey-face/log/app.log 2>&1 & supervisor e2e...
Add e2eBridge to started processes
Add e2eBridge to started processes
Shell
mit
veganaut/veganaut,veganaut/veganaut,veganaut/veganaut
shell
## Code Before: mkdir -p log function cleanUp() { kill `cat log/mongodb.pid` } trap cleanUp EXIT mkdir -p mongodb mongod --dbpath mongodb --pidfilepath log/mongodb.pid > log/mongodb.log 2>&1 & scripts/web-server.js > log/webserver.log 2>&1 & cd ../monkey-tail supervisor app.js > ../monkey-face/log/app.log 2>&1 ...
b9a1e215e2ce93daf684dfc1e3b5588352cea375
admin/server/routes/signout.js
admin/server/routes/signout.js
var keystone = require('../../../'); var session = require('../../../lib/session'); module.exports = function (req, res) { session.signout(req, res, function () { if (typeof keystone.get('signout redirect') === 'string') { return res.redirect(keystone.get('signout redirect')); } else if (typeof keystone.get('s...
var keystone = require('../../../'); var session = require('../../../lib/session'); module.exports = function (req, res) { session.signout(req, res, function () { if (typeof keystone.get('signout redirect') === 'string') { return res.redirect(keystone.get('signout redirect')); } else if (typeof keystone.get('s...
Comment for signin?signedout version added
Comment for signin?signedout version added
JavaScript
mit
creynders/keystone,creynders/keystone
javascript
## Code Before: var keystone = require('../../../'); var session = require('../../../lib/session'); module.exports = function (req, res) { session.signout(req, res, function () { if (typeof keystone.get('signout redirect') === 'string') { return res.redirect(keystone.get('signout redirect')); } else if (typeof...
05f151a026bcdc5f671af23025687dd40098e644
app/controllers/concerns/webhook_validations.rb
app/controllers/concerns/webhook_validations.rb
module WebhookValidations extend ActiveSupport::Concern def verify_incoming_webhook_address! if valid_incoming_webhook_address? true else render :status => 404, :json => "{}" end end def valid_incoming_webhook_address? if Octokit.api_endpoint == "https://api.github.com/" Gith...
module WebhookValidations extend ActiveSupport::Concern def verify_incoming_webhook_address! if valid_incoming_webhook_address? true else render :json => {}, :status => :not_found end end def valid_incoming_webhook_address? if Octokit.api_endpoint == "https://api.github.com/" ...
Use :not_found instead of 404
Use :not_found instead of 404
Ruby
mit
ResultadosDigitais/newrelic_notifier,flowdock/heaven,ngpestelos/heaven,cloudy9101/heaven,kidaa/heaven,digideskio/heaven,cloudy9101/heaven,flowdock/heaven,waysact/heaven,digideskio/heaven,digideskio/heaven,waysact/heaven,eLobato/heaven,ackimwilliams/heaven,flowdock/heaven,LoveMondays/heaven,dLobatog/heaven,TailorDev/hea...
ruby
## Code Before: module WebhookValidations extend ActiveSupport::Concern def verify_incoming_webhook_address! if valid_incoming_webhook_address? true else render :status => 404, :json => "{}" end end def valid_incoming_webhook_address? if Octokit.api_endpoint == "https://api.github....
988e89245f6f06303406a7589908f4a13dc2e03c
lib/mixins.js
lib/mixins.js
"use strict"; const P = require('bluebird'); const redis = require('redis'); const HyperSwitch = require('hyperswitch'); const Redis = superclass => class extends superclass { constructor(options) { super(options); if (!options.redis) { throw new Error('Redis options not provided to t...
"use strict"; const P = require('bluebird'); const redis = require('redis'); const HyperSwitch = require('hyperswitch'); const Redis = superclass => class extends superclass { constructor(options) { super(options); if (!options.redis) { throw new Error('Redis options not provided to t...
Use arguments instead of the spread operator
Use arguments instead of the spread operator
JavaScript
apache-2.0
wikimedia/change-propagation,Pchelolo/change-propagation,wikimedia/change-propagation,Pchelolo/change-propagation,d00rman/restbase-mod-queue-kafka
javascript
## Code Before: "use strict"; const P = require('bluebird'); const redis = require('redis'); const HyperSwitch = require('hyperswitch'); const Redis = superclass => class extends superclass { constructor(options) { super(options); if (!options.redis) { throw new Error('Redis options n...
59a2c8b686b428ead95eb5a00c68b68f1dca67df
test_images.sh
test_images.sh
for D_s in 0.001 0.005 0.01 0.02 0.1; do for D_a in 0.1 0.2 0.25 0.3; do for D_b in 0.02 0.03 0.05 0.2; do for beta_i in 12; do ./PyMorphogenesis.py -r -s $D_s -a $D_a -b $D_b -d $beta_i done done done
for D_s in 0.001 0.005 0.01 0.02 0.1; do for D_a in 0.1 0.2 0.25 0.3; do for D_b in 0.02 0.03 0.05 0.2; do for beta_i in 12; do ./PyMorphogenesis.py -r -p images -s $D_s -a $D_a -b $D_b -d $beta_i done done done
Use dumpAtEndPath in the test script
Use dumpAtEndPath in the test script
Shell
bsd-3-clause
thomasdeniau/pyfauxfur,thomasdeniau/pyfauxfur
shell
## Code Before: for D_s in 0.001 0.005 0.01 0.02 0.1; do for D_a in 0.1 0.2 0.25 0.3; do for D_b in 0.02 0.03 0.05 0.2; do for beta_i in 12; do ./PyMorphogenesis.py -r -s $D_s -a $D_a -b $D_b -d $beta_i done done done ## Instruction: Use dumpAtEndPath in the test script ## Code After: fo...
0744e0610df59e9d091edeea0698178b37603782
src/interface/modals/Modal.scss
src/interface/modals/Modal.scss
@import 'interface/layout/Theme.scss'; .modal { position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 2; > .container { padding: 50px; > .close { float: right; background: none; border: 0; color: $primaryColor; font-size: 55px; line-height: 1; ...
@import 'interface/layout/Theme.scss'; .modal { position: fixed; left: 0; right: 0; top: 0; bottom: 0; overflow-y: auto; z-index: 2; > .container { padding: 50px; > .close { float: right; background: none; border: 0; color: $primaryColor; font-size: 55px; l...
Make the modal scrollable and appear anywhere on screen
Make the modal scrollable and appear anywhere on screen
SCSS
agpl-3.0
yajinni/WoWAnalyzer,ronaldpereira/WoWAnalyzer,Juko8/WoWAnalyzer,WoWAnalyzer/WoWAnalyzer,fyruna/WoWAnalyzer,Juko8/WoWAnalyzer,Juko8/WoWAnalyzer,sMteX/WoWAnalyzer,fyruna/WoWAnalyzer,ronaldpereira/WoWAnalyzer,anom0ly/WoWAnalyzer,anom0ly/WoWAnalyzer,yajinni/WoWAnalyzer,WoWAnalyzer/WoWAnalyzer,sMteX/WoWAnalyzer,anom0ly/WoWA...
scss
## Code Before: @import 'interface/layout/Theme.scss'; .modal { position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 2; > .container { padding: 50px; > .close { float: right; background: none; border: 0; color: $primaryColor; font-size: 55px; li...
de8482c0b03cc2d2e8b975862476babfe83641f4
src/Oro/Bundle/WorkflowBundle/Resources/views/Widget/widget/steps.html.twig
src/Oro/Bundle/WorkflowBundle/Resources/views/Widget/widget/steps.html.twig
<div class="widget-content"> {% set stepsCount = steps|length %} {% if stepsCount > 0 %} <ul class="workflow-step-list nav {% if stepsCount == 1 %}single-step{% endif %}"> {% set isProcessed = true %} {% for step in steps %} {% set isCurrent = currentStep and step...
<div class="widget-content"> {% set stepsCount = steps|length %} {% set minStepsCount = 1 %} {% if stepsCount > minStepsCount %} <ul class="workflow-step-list nav {% if stepsCount == 1 %}single-step{% endif %}"> {% set isProcessed = true %} {% for step in steps %} ...
Hide steps widget if there is only one step
BAP-2978: Hide steps widget if there is only one step
Twig
mit
mszajner/platform,orocrm/platform,morontt/platform,trustify/oroplatform,northdakota/platform,ramunasd/platform,morontt/platform,ramunasd/platform,hugeval/platform,orocrm/platform,2ndkauboy/platform,hugeval/platform,geoffroycochard/platform,2ndkauboy/platform,Djamy/platform,northdakota/platform,morontt/platform,mszajner...
twig
## Code Before: <div class="widget-content"> {% set stepsCount = steps|length %} {% if stepsCount > 0 %} <ul class="workflow-step-list nav {% if stepsCount == 1 %}single-step{% endif %}"> {% set isProcessed = true %} {% for step in steps %} {% set isCurrent = curr...
f368f54aa406f3bda333f8135516f8c23dec31a6
circle.yml
circle.yml
machine: pre: - curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0 services: - docker python: version: 2.7.11 dependencies: pre: - pip install ansible - pip install invoke - pip install docker-compose - docker info ...
machine: pre: - curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0 services: - docker python: version: 2.7.11 dependencies: pre: - pip install ansible - pip install docker-compose - docker info test: pre: - do...
Remove invoke - not needed
Remove invoke - not needed
YAML
bsd-2-clause
banjocat/calorie-find,banjocat/calorie-find
yaml
## Code Before: machine: pre: - curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0 services: - docker python: version: 2.7.11 dependencies: pre: - pip install ansible - pip install invoke - pip install docker-compose ...
ceb491a81d2751fbe60068451f8cf900ef95e397
TodUni/spec/factories.rb
TodUni/spec/factories.rb
FactoryGirl.define do factory :user do email "example@example.com" name "Example" password "12345678" password_confirmation "12345678" birth_date Date.today - 20.year end end
FactoryGirl.define do factory :user do name "Example" email { "#{name}@example.com" } password "12345678" password_confirmation "12345678" date_birth Date.today - 20.year end factory :project do sequence(:name) { |n| "TEST_PROJECT_#{n}" } description "This project is a test" factory :pre_project d...
Add projects factory, edit users factory
Add projects factory, edit users factory
Ruby
apache-2.0
lalo2302/TodUni,lalo2302/TodUni,lalo2302/TodUni
ruby
## Code Before: FactoryGirl.define do factory :user do email "example@example.com" name "Example" password "12345678" password_confirmation "12345678" birth_date Date.today - 20.year end end ## Instruction: Add projects factory, edit users factory ## Code After: FactoryGirl.define do factory :user do ...
2044e5ed29fd356b17e437fb360c3c5311f701b9
src/forager/server/ListManager.java
src/forager/server/ListManager.java
package forager.server; import java.io.BufferedOutputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.PrintWriter; /** * Handles the active and completed task lists and allows them to be flushed * and synced to disk. * * @author malensek */ public class ListManager { publ...
package forager.server; import java.io.BufferedOutputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.PrintWriter; /** * Handles the active and completed task lists and allows them to be flushed * and synced to disk. * * @author malensek */ public class ListManager { publ...
Add checks for list files
Add checks for list files
Java
bsd-2-clause
malensek/forager,malensek/forager
java
## Code Before: package forager.server; import java.io.BufferedOutputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.PrintWriter; /** * Handles the active and completed task lists and allows them to be flushed * and synced to disk. * * @author malensek */ public class ListMan...
494905d41e71709e811a646372843a886fe15ba8
recipes/locale.rb
recipes/locale.rb
require 'dbus/systemd/localed' require 'set' ruby_block 'set-locale' do locale = node['systemd']['locale'].to_kv_pairs localed = DBus::Systemd::Localed.new block do localed.SetLocale(locale, false) end not_if do localed.properties['Locale'].to_set == locale.to_set end end
locale = node['systemd']['locale'] file '/etc/locale.conf' do content locale.to_h.to_kv_pairs.join("\n") not_if { locale.empty? } notifies :restart, 'service[systemd-localed]', :immediately end # oneshot service that runs at boot service 'systemd-localed' do action :nothing end
Revert "Revert "revert for now""
Revert "Revert "revert for now"" This reverts commit b3d8b368e08507fe4e1cae43d4a699ba58d7cafe.
Ruby
apache-2.0
nathwill/chef-systemd
ruby
## Code Before: require 'dbus/systemd/localed' require 'set' ruby_block 'set-locale' do locale = node['systemd']['locale'].to_kv_pairs localed = DBus::Systemd::Localed.new block do localed.SetLocale(locale, false) end not_if do localed.properties['Locale'].to_set == locale.to_set end end ## In...
8b5546052efe14ef61167475ae76b1d3faf43179
src/sas/perspectives/fitting/media/fitting.rst
src/sas/perspectives/fitting/media/fitting.rst
Fitting Documentation ===================== .. toctree:: :maxdepth: 1 Fitting Perspective <fitting_help> Polydispersity Distributions <pd_help> Smearing Computation <sm_help> Polarisation/Magnetic Scattering <mag_help> SasView Optimisers <Bumps/doc/guide/index>
Fitting Documentation ===================== .. toctree:: :maxdepth: 1 Fitting Perspective <fitting_help> Polydispersity Distributions <pd_help> Smearing Computation <sm_help> Polarisation/Magnetic Scattering <mag_help> SasView Optimisers <https://github.com/bumps/bumps/blob/master/doc/guide/opti...
Include trial link to Bumps documentation
Include trial link to Bumps documentation
reStructuredText
bsd-3-clause
SasView/sasview,SasView/sasview,SasView/sasview,lewisodriscoll/sasview,SasView/sasview,SasView/sasview,lewisodriscoll/sasview,lewisodriscoll/sasview,lewisodriscoll/sasview,SasView/sasview,lewisodriscoll/sasview
restructuredtext
## Code Before: Fitting Documentation ===================== .. toctree:: :maxdepth: 1 Fitting Perspective <fitting_help> Polydispersity Distributions <pd_help> Smearing Computation <sm_help> Polarisation/Magnetic Scattering <mag_help> SasView Optimisers <Bumps/doc/guide/index> ## Instruction: I...
b3b4200d9dcc41efcd1400393d399603b766f431
app/helpers/application_helper/button/generic_feature_button_with_disable.rb
app/helpers/application_helper/button/generic_feature_button_with_disable.rb
class ApplicationHelper::Button::GenericFeatureButtonWithDisable < ApplicationHelper::Button::GenericFeatureButton needs :@record def disabled? @error_message = begin @record.unsupported_reason(@feature) unless @record.supports?(@feature) rescue SupportsFeatureMixin::U...
class ApplicationHelper::Button::GenericFeatureButtonWithDisable < ApplicationHelper::Button::GenericFeatureButton needs :@record def disabled? @error_message = # Feature supported via SupportsFeatureMixin if @record.respond_to?("supports_#{@feature}?") @record.unsupported_reason(@feature) ...
Rework to not use SupportsFeatureMixin::UnknownFeatureError which no longer exists
Rework to not use SupportsFeatureMixin::UnknownFeatureError which no longer exists
Ruby
apache-2.0
ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic
ruby
## Code Before: class ApplicationHelper::Button::GenericFeatureButtonWithDisable < ApplicationHelper::Button::GenericFeatureButton needs :@record def disabled? @error_message = begin @record.unsupported_reason(@feature) unless @record.supports?(@feature) rescue Support...
084bc03c8f2438d773e673dbe760592e036ffca5
.github/workflows/auto-update.yml
.github/workflows/auto-update.yml
name: Auto Update on: # schedule: # - cron: '*/5 * * * *' workflow_dispatch: jobs: nix: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 with: submodules: 'recursive' - uses: cachix/install-nix-action@v8 - uses: cachix/cachix-action@v6 with: name: vulk...
name: Auto Update on: # schedule: # - cron: '*/5 * * * *' workflow_dispatch: jobs: nix: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 with: submodules: 'recursive' - uses: cachix/install-nix-action@v8 - uses: cachix/cachix-action@v6 with: name: vulk...
Use bot to open update PR
Use bot to open update PR
YAML
bsd-3-clause
expipiplus1/vulkan,expipiplus1/vulkan,expipiplus1/vulkan
yaml
## Code Before: name: Auto Update on: # schedule: # - cron: '*/5 * * * *' workflow_dispatch: jobs: nix: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 with: submodules: 'recursive' - uses: cachix/install-nix-action@v8 - uses: cachix/cachix-action@v6 with: ...
90c42dc28ff91180914d5d5a0fa12f94f480523e
src/examples/worker/index.ts
src/examples/worker/index.ts
import { runWorker } from '../../utils/worker' import { viewHandler } from '../../interfaces/view' import { logFns } from '../../utils/log' // all communicatios are transfered via postMessage runWorker({ worker: new (<any> require('worker-loader!./worker')), interfaces: { view: viewHandler('#app'), }, /* N...
import { runWorker } from '../../utils/worker' import { viewHandler } from '../../interfaces/view' import { logFns } from '../../utils/log' // all communicatios are transfered via postMessage runWorker({ worker: new (<any> require('worker-loader!./worker')), interfaces: { view: viewHandler('#app'), }, // D...
Remove note on worker implementation
Remove note on worker implementation
TypeScript
mit
FractalBlocks/Fractal,FractalBlocks/Fractal,FractalBlocks/Fractal
typescript
## Code Before: import { runWorker } from '../../utils/worker' import { viewHandler } from '../../interfaces/view' import { logFns } from '../../utils/log' // all communicatios are transfered via postMessage runWorker({ worker: new (<any> require('worker-loader!./worker')), interfaces: { view: viewHandler('#ap...
7788edff9108cafc593759e9e406d6da6509c799
test/tstnmem.c
test/tstnmem.c
/* * Copyright (c) 2002-2004, Index Data * See the file LICENSE for details. * * $Id: tstnmem.c,v 1.2 2004-09-29 20:15:48 adam Exp $ */ #if HAVE_CONFIG_H #include <config.h> #endif #include <errno.h> #include <string.h> #include <stdlib.h> #include <ctype.h> #include <yaz/nmem.h> int main (int argc, char **arg...
/* * Copyright (c) 2002-2004, Index Data * See the file LICENSE for details. * * $Id: tstnmem.c,v 1.3 2005-01-05 10:29:42 adam Exp $ */ #if HAVE_CONFIG_H #include <config.h> #endif #include <errno.h> #include <string.h> #include <stdlib.h> #include <ctype.h> #include <yaz/nmem.h> int main (int argc, char **arg...
Check that assignments to NMEM memory for some basic types
Check that assignments to NMEM memory for some basic types
C
bsd-3-clause
dcrossleyau/yaz,nla/yaz,dcrossleyau/yaz,nla/yaz,nla/yaz,dcrossleyau/yaz,nla/yaz
c
## Code Before: /* * Copyright (c) 2002-2004, Index Data * See the file LICENSE for details. * * $Id: tstnmem.c,v 1.2 2004-09-29 20:15:48 adam Exp $ */ #if HAVE_CONFIG_H #include <config.h> #endif #include <errno.h> #include <string.h> #include <stdlib.h> #include <ctype.h> #include <yaz/nmem.h> int main (int ...
0a907442eee18d0b30ca4ad2c6a5ef1fabb90684
pelicanconf.py
pelicanconf.py
from __future__ import unicode_literals AUTHOR = u'Lex Toumbourou' SITENAME = u'LexToumbourou.com' SITEURL = 'http://lextoumbourou.com' TIMEZONE = 'Australia/Melbourne' DEFAULT_LANG = u'en' ARTICLE_URL = 'blog/posts/{slug}/' ARTICLE_SAVE_AS = 'blog/posts/{slug}/index.html' # Feed generation is usually not desired ...
from __future__ import unicode_literals AUTHOR = u'Lex Toumbourou' SITENAME = u'LexToumbourou.com' SITEURL = 'http://lextoumbourou.com' TIMEZONE = 'Australia/Melbourne' DEFAULT_LANG = u'en' ARTICLE_URL = 'blog/posts/{slug}/' ARTICLE_SAVE_AS = 'blog/posts/{slug}/index.html' # Feed generation is usually not desired ...
Support static files via new Pelican API
Support static files via new Pelican API
Python
mit
lextoumbourou/lextoumbourou.github.io,lextoumbourou/lextoumbourou.github.io,lextoumbourou/lextoumbourou.github.io,lextoumbourou/lextoumbourou.github.io
python
## Code Before: from __future__ import unicode_literals AUTHOR = u'Lex Toumbourou' SITENAME = u'LexToumbourou.com' SITEURL = 'http://lextoumbourou.com' TIMEZONE = 'Australia/Melbourne' DEFAULT_LANG = u'en' ARTICLE_URL = 'blog/posts/{slug}/' ARTICLE_SAVE_AS = 'blog/posts/{slug}/index.html' # Feed generation is usua...
940323b0c0dc9526e087e68fc1fd9af8d3c4682b
src/php/lib/includes/globals.php
src/php/lib/includes/globals.php
<?php /* Escape a string for interpolation in HTML. Note that this does NOT encode * double quotes (`"`). */ function html($str) { return htmlspecialchars($str, ENT_NOQUOTES | ENT_HTML5, 'UTF-8'); } /* Escape a string for interpolation inside a double-quoted HTML attribute. */ function htmlattr($str) { return html...
<?php /* Escape a string for interpolation in HTML text. Note that this does NOT * encode double quotes (`"`). */ function html($str) { return htmlspecialchars($str, ENT_NOQUOTES | ENT_HTML5, 'UTF-8'); } /* Escape a string for interpolation inside a double-quoted HTML attribute. */ function htmlattr($str) { return...
Add wrapper functions for "X" classes.
Add wrapper functions for "X" classes.
PHP
mit
bdusell/phrame,bdusell/phrame,bdusell/jitsu,bdusell/jitsu,bdusell/phrame
php
## Code Before: <?php /* Escape a string for interpolation in HTML. Note that this does NOT encode * double quotes (`"`). */ function html($str) { return htmlspecialchars($str, ENT_NOQUOTES | ENT_HTML5, 'UTF-8'); } /* Escape a string for interpolation inside a double-quoted HTML attribute. */ function htmlattr($str...
c2d7f4c6ae9042d1cc7f11fa82d7133e9b506ad7
src/main/scripts/data_exports/export_json.py
src/main/scripts/data_exports/export_json.py
from lib.harvester import Harvester from lib.cli_helper import is_writable_directory import argparse import logging import json logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s") logging.basicConfig(format="%(asctime...
from lib.harvester import Harvester from lib.cli_helper import is_writable_directory import argparse import logging import json logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s") logging.basicConfig(format="%(asctime...
Fix UTF-8 encoding for json exports
Fix UTF-8 encoding for json exports
Python
apache-2.0
dainst/gazetteer,dainst/gazetteer,dainst/gazetteer,dainst/gazetteer,dainst/gazetteer,dainst/gazetteer
python
## Code Before: from lib.harvester import Harvester from lib.cli_helper import is_writable_directory import argparse import logging import json logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s") logging.basicConfig(f...
56f0701602342c69052ef9a88d49187aa96540cc
us_ignite/templates/search/event_list.html
us_ignite/templates/search/event_list.html
{% extends "base.html" %} {% block title %}Search events - {{ block.super }}{% endblock title %} {% block content %} <h1>Search: Events</h1> <p><a href="{% url 'event_add' %}">Add an event</a></p> {% if page.object_list %} {% for object in page.object_list %} {% include "events/object_block.html" with object=object ...
{% extends "base.html" %} {% block title %}Search events - {{ block.super }}{% endblock title %} {% block content %} <h1>Search: Events</h1> <form method="get" action="{% url 'search_events' %}"> {{ form.as_p }} <p><button type="submit">Submit</button></p> </form> {% if page.object_list %} {% for object in pa...
Add search form to the ``Event`` search tag page.
Add search form to the ``Event`` search tag page.
HTML
bsd-3-clause
us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite
html
## Code Before: {% extends "base.html" %} {% block title %}Search events - {{ block.super }}{% endblock title %} {% block content %} <h1>Search: Events</h1> <p><a href="{% url 'event_add' %}">Add an event</a></p> {% if page.object_list %} {% for object in page.object_list %} {% include "events/object_block.html" wit...
3f89014b9caddebc1b293112edcb80a7ff3a2341
SmartKitchenApp/SmartKitchenApp/js/source/templates/dashboard/members.html
SmartKitchenApp/SmartKitchenApp/js/source/templates/dashboard/members.html
<div data-ng-controller="members" class="container"> <h1 class="text-center">Who's in the kitchen?</h1><br/> <div class="row" ng-init="allMembers"> <div ng-repeat="member in allMembers"> <div class="col-sm-4" style="margin-bottom: 20px;"> <button style="width: 100%;" class="...
<div data-ng-controller="members" class="container"> <h1 class="text-center">Who's in the kitchen?</h1><br/> <div class="row" ng-init="allMembers"> <div ng-repeat="member in allMembers"> <div class="col-sm-4" style="margin-bottom: 20px;"> <button style="width: 100%;" class="...
Make the admin visible in the memberlist
Make the admin visible in the memberlist
HTML
mit
OAMK-Smart-Kitchen/Smart-Fridge-OAMK,OAMK-Smart-Kitchen/Smart-Fridge-OAMK,OAMK-Smart-Kitchen/Smart-Fridge-OAMK,OAMK-Smart-Kitchen/Smart-Fridge-OAMK,OAMK-Smart-Kitchen/Smart-Fridge-OAMK,OAMK-Smart-Kitchen/Smart-Fridge-OAMK,OAMK-Smart-Kitchen/Smart-Fridge-OAMK,OAMK-Smart-Kitchen/Smart-Fridge-OAMK,OAMK-Smart-Kitchen/Smart...
html
## Code Before: <div data-ng-controller="members" class="container"> <h1 class="text-center">Who's in the kitchen?</h1><br/> <div class="row" ng-init="allMembers"> <div ng-repeat="member in allMembers"> <div class="col-sm-4" style="margin-bottom: 20px;"> <button style="width...
979ec05ed34cec2af0d45dc76b84921af85f84e9
script/compile-coffee.py
script/compile-coffee.py
import os import subprocess import sys from lib.util import * SOURCE_ROOT = os.path.dirname(os.path.dirname(__file__)) def main(): input_file = sys.argv[1] output_dir = os.path.dirname(sys.argv[2]) coffee = os.path.join(SOURCE_ROOT, 'node_modules', 'coffee-script', 'bin', 'coffee') ...
import os import subprocess import sys from lib.util import * SOURCE_ROOT = os.path.dirname(os.path.dirname(__file__)) def main(): input_file = sys.argv[1] output_dir = os.path.dirname(sys.argv[2]) coffee = os.path.join(SOURCE_ROOT, 'node_modules', 'coffee-script', 'bin', 'coffee') ...
Fix running node from python.
[Win] Fix running node from python. There is a mysterious "WindowsError [error 5] Access is denied" error is the "executable" is not specified under Windows.
Python
mit
mjaniszew/electron,meowlab/electron,rreimann/electron,eriser/electron,tonyganch/electron,nicholasess/electron,wolfflow/electron,thingsinjars/electron,dongjoon-hyun/electron,rhencke/electron,Evercoder/electron,yan-foto/electron,mattdesl/electron,pirafrank/electron,nagyistoce/electron-atom-shell,bitemyapp/electron,Andrey...
python
## Code Before: import os import subprocess import sys from lib.util import * SOURCE_ROOT = os.path.dirname(os.path.dirname(__file__)) def main(): input_file = sys.argv[1] output_dir = os.path.dirname(sys.argv[2]) coffee = os.path.join(SOURCE_ROOT, 'node_modules', 'coffee-script', 'bin', ...
a615c8028cb1f6821dbe7590e7044182d1d8672c
Kwc/Statistics/OptBox/Component.js
Kwc/Statistics/OptBox/Component.js
Kwf.onContentReady(function statisticsOptBox(body, param) { if (!param.newRender) return; if (Kwf.Statistics.defaultOptValue == 'out' && Kwf.Statistics.optBoxHtml && !Kwf.Statistics.issetUserOptValue() && !$('body').data().optbox ) { $('body').prepend(Kwf.Statistics.optBoxHtml); $('b...
Kwf.onContentReady(function statisticsOptBox(body, param) { if (!param.newRender) return; if (Kwf.Statistics.defaultOptValue == 'out' && Kwf.Statistics.optBoxHtml && !Kwf.Statistics.issetUserOptValue() && !$('body').data().optbox ) { $('body').prepend(Kwf.Statistics.optBoxHtml); $('b...
Use jQuery instead of ext.
OptBox: Use jQuery instead of ext. Simplifies code, step forward to remove ext from frontend.
JavaScript
bsd-2-clause
yacon/koala-framework,koala-framework/koala-framework,Ben-Ho/koala-framework,nsams/koala-framework,kaufmo/koala-framework,nsams/koala-framework,kaufmo/koala-framework,nsams/koala-framework,Sogl/koala-framework,yacon/koala-framework,yacon/koala-framework,koala-framework/koala-framework,Sogl/koala-framework,Ben-Ho/koala-...
javascript
## Code Before: Kwf.onContentReady(function statisticsOptBox(body, param) { if (!param.newRender) return; if (Kwf.Statistics.defaultOptValue == 'out' && Kwf.Statistics.optBoxHtml && !Kwf.Statistics.issetUserOptValue() && !$('body').data().optbox ) { $('body').prepend(Kwf.Statistics.optBoxHtm...
dc87229eeeef35325d72a1b97e0790204673a5aa
main.py
main.py
from curses import wrapper from ui import ChatUI from client import Client import ConfigParser def main(stdscr): cp = ConfigParser.ConfigParser() cp.read('config.cfg') username = cp.get('credentials', 'username') password = cp.get('credentials', 'password') stdscr.clear() ui = ChatUI(stdscr) ...
from curses import wrapper from ui import ChatUI from client import Client import configparser def main(stdscr): cp = configparser.ConfigParser() cp.read('config.cfg') username = cp.get('credentials', 'username') password = cp.get('credentials', 'password').encode('utf-8') stdscr.clear() ui = ...
Make it work with Py3
Make it work with Py3
Python
mit
vhf/kwak_cli
python
## Code Before: from curses import wrapper from ui import ChatUI from client import Client import ConfigParser def main(stdscr): cp = ConfigParser.ConfigParser() cp.read('config.cfg') username = cp.get('credentials', 'username') password = cp.get('credentials', 'password') stdscr.clear() ui = ...
d53ecdef139bb4e1457c89f1db023a3b708f0dbc
docs/cpanratings/rate/rate_submitted.html
docs/cpanratings/rate/rate_submitted.html
<h2>Thanks</h2> <p> Thank you for submitting a review of [% review.distribution %]. </p> <p> <pre> [% review.review | html %] </pre> </p> <a href="/">Go back to the front page</a>
<h2>Thanks</h2> <p> Thank you for submitting a review of [% review.distribution %]. </p> <p> [% PROCESS display/short_review.html %] </p> <a href="/">Go back to the front page</a>
Make 'thank you for rating' page show the properly formatted review
Make 'thank you for rating' page show the properly formatted review
HTML
apache-2.0
PeterMartini/perlweb,ajolma/perlweb,Abigail/perlweb,Abigail/perlweb,ajolma/perlweb,autarch/perlweb,briandfoy/perlweb,Abigail/perlweb,dagolden/perlweb,alcy/perlweb,alcy/perlweb,dagolden/perlweb,PeterMartini/perlweb,autarch/perlweb,bjakubski/perlweb,briandfoy/perlweb,dagolden/perlweb,autarch/perlweb,alcy/perlweb,briandfo...
html
## Code Before: <h2>Thanks</h2> <p> Thank you for submitting a review of [% review.distribution %]. </p> <p> <pre> [% review.review | html %] </pre> </p> <a href="/">Go back to the front page</a> ## Instruction: Make 'thank you for rating' page show the properly formatted review ## Code After: <h2>Thanks</h2> <...
ce02ec025ab6d0ace3b07628049095a62815683b
lib/stompede.rb
lib/stompede.rb
require "stomp_parser" require "celluloid" require "celluloid/io" require "delegate" require "securerandom" require "stompede/version" require "stompede/error" require "stompede/base" require "stompede/connector" require "stompede/frame" require "stompede/error_frame" require "stompede/session" require "stompede/sub...
require "stomp_parser" require "celluloid" require "celluloid/io" require "delegate" require "securerandom" require "stompede/version" require "stompede/error" require "stompede/base" require "stompede/connector" require "stompede/frame" require "stompede/error_frame" require "stompede/session" require "stompede/sub...
Fix TCP server to work with Connector
Fix TCP server to work with Connector
Ruby
mit
elabs/stompede,elabs/stompede
ruby
## Code Before: require "stomp_parser" require "celluloid" require "celluloid/io" require "delegate" require "securerandom" require "stompede/version" require "stompede/error" require "stompede/base" require "stompede/connector" require "stompede/frame" require "stompede/error_frame" require "stompede/session" requi...
bc4fb3e9c85d9ada2b7c336b427d550d0615e8ce
metadata.rb
metadata.rb
name 'rstudio' maintainer 'Sprint.ly, Inc.' maintainer_email 'joe@joestump.net' license 'All rights reserved' description 'Installs/Configures rstudio' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) version '0.2.0' depends "apt" depends "nginx" depends...
name 'rstudio' maintainer 'Sprint.ly, Inc.' maintainer_email 'joe@joestump.net' license 'All rights reserved' description 'Installs/Configures rstudio' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) version '0.2.0' depends "apt" depends "nginx" depends...
Make sure we depends on users cookbook.
Make sure we depends on users cookbook.
Ruby
bsd-3-clause
sprintly/rstudio-chef,sprintly/rstudio-chef
ruby
## Code Before: name 'rstudio' maintainer 'Sprint.ly, Inc.' maintainer_email 'joe@joestump.net' license 'All rights reserved' description 'Installs/Configures rstudio' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) version '0.2.0' depends "apt" depends...
25e6e9949e99ae485568ed238d0a2595cc290882
test/Feature/varargs.ll
test/Feature/varargs.ll
; Demonstrate all of the variable argument handling intrinsic functions plus ; the va_arg instruction. implementation declare void %llvm.va_start(sbyte**, ...) declare void %llvm.va_copy(sbyte**, sbyte*) declare void %llvm.va_end(sbyte**) int %test(int %X, ...) { %ap = alloca sbyte* %aq = alloca sbyte* call void ...
; Demonstrate all of the variable argument handling intrinsic functions plus ; the va_arg instruction. implementation declare sbyte* %llvm.va_start() declare sbyte* %llvm.va_copy(sbyte*) declare void %llvm.va_end(sbyte*) int %test(int %X, ...) { %ap = call sbyte* %llvm.va_start() %aq = call sbyte* %llvm.va_copy(sb...
Update test to new style
Update test to new style git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@9327 91177308-0d34-0410-b5e6-96231b3b80d8
LLVM
apache-2.0
GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,app...
llvm
## Code Before: ; Demonstrate all of the variable argument handling intrinsic functions plus ; the va_arg instruction. implementation declare void %llvm.va_start(sbyte**, ...) declare void %llvm.va_copy(sbyte**, sbyte*) declare void %llvm.va_end(sbyte**) int %test(int %X, ...) { %ap = alloca sbyte* %aq = alloca sb...
0399263d648fca5103f3067ad0dcd84ae6cb71a8
.eslintrc.js
.eslintrc.js
module.exports = { presets: [ ['env', { targets: { node: 'current' } }] ]; }
module.exports = { parserOptions: { ecmaVersion: 8, sourceType: 'module' }, env: { node: true } };
Fix eslint config (copied babel conf on accident)
Fix eslint config (copied babel conf on accident)
JavaScript
mit
joshperry/carwings
javascript
## Code Before: module.exports = { presets: [ ['env', { targets: { node: 'current' } }] ]; } ## Instruction: Fix eslint config (copied babel conf on accident) ## Code After: module.exports = { parserOptions: { ecmaVersion: 8, sourceType: 'module' }, env: { node: true ...
44dc97d358930f37dedbac919f1b488603043793
spec/spec_helper.rb
spec/spec_helper.rb
require 'simplecov' SimpleCov.start 'rails' ENV['RAILS_ENV'] ||= 'test' begin require File.expand_path('../dummy/config/environment', __FILE__) rescue LoadError puts 'Could not load dummy application. Please ensure you have run `bundle exec rake test_app`' exit end require 'rspec/rails' require 'ffaker' requir...
require 'simplecov' SimpleCov.start 'rails' do add_filter "/lib/generators" add_filter "/lib/solidus_volume_pricing" end ENV['RAILS_ENV'] ||= 'test' begin require File.expand_path('../dummy/config/environment', __FILE__) rescue LoadError puts 'Could not load dummy application. Please ensure you have run `bund...
Remove from generators and engine.rb from coverage
Remove from generators and engine.rb from coverage The generators, the engine.rb class and the version file has no code relevant to coverage.
Ruby
bsd-3-clause
solidusio-contrib/solidus_volume_pricing,solidusio-contrib/solidus_volume_pricing,solidusio-contrib/solidus_volume_pricing,solidusio-contrib/solidus_volume_pricing
ruby
## Code Before: require 'simplecov' SimpleCov.start 'rails' ENV['RAILS_ENV'] ||= 'test' begin require File.expand_path('../dummy/config/environment', __FILE__) rescue LoadError puts 'Could not load dummy application. Please ensure you have run `bundle exec rake test_app`' exit end require 'rspec/rails' require...
c8db46552b7dc7f385ec70e38ccd904fffaeb4be
core/admin/home.inc.php
core/admin/home.inc.php
<?php /*********************************************************************** Elf Web App Copyright (C) 2013-2015 Kazuichi Takashiro This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either v...
<?php /*********************************************************************** Elf Web App Copyright (C) 2013-2015 Kazuichi Takashiro This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either v...
Update home page redirecting (ordered by header menu list)
Update home page redirecting (ordered by header menu list)
PHP
agpl-3.0
takashiro/Elf,takashiro/Elf,takashiro/Elf,takashiro/Elf
php
## Code Before: <?php /*********************************************************************** Elf Web App Copyright (C) 2013-2015 Kazuichi Takashiro This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foun...
566240674c3aca64d16ba13fb8bca80ae7ad2018
config_staging.php
config_staging.php
<?php if (file_exists($this->DocPath()."/config.php")){ $defaultConfig = include($this->DocPath()."/config.php"); }else { $defaultConfig = array(); } $stagingConfig = array( 'db' => array_merge($defaultConfig["db"],array( 'dbname' => $defaultConfig["custom"]["staging_cache_general"] )), 'c...
<?php if (file_exists($this->DocPath()."/config.php")){ $defaultConfig = include($this->DocPath()."/config.php"); }else { $defaultConfig = array(); } $stagingConfig = array( 'db' => array_merge($defaultConfig["db"],array( 'dbname' => $defaultConfig["custom"]["staging_database"] )), 'custom...
Fix typo in default staging config
Fix typo in default staging config
PHP
agpl-3.0
philippmahlow/shopware,ShopwareHackathon/shopware-ajax-variant,NetInventors/shopware,bcremer/shopware,philippmahlow/shopware,ShopwareHackathon/shopware_media,jhit/shopware,Zwilla/shopware,Sunchairs/shopware,Pttde/shopware,ShopwareHackathon/shopware_media,zeroseven/shopware,t2oh4e/shopware,NetInventors/shopware,Shopware...
php
## Code Before: <?php if (file_exists($this->DocPath()."/config.php")){ $defaultConfig = include($this->DocPath()."/config.php"); }else { $defaultConfig = array(); } $stagingConfig = array( 'db' => array_merge($defaultConfig["db"],array( 'dbname' => $defaultConfig["custom"]["staging_cache_general"...
7507134d83163d38f489ca24de039c8ba5048b31
.travis.yml
.travis.yml
language: php php: - 5.6 - 5.5 - hhvm - hhvm-nightly sudo: false env: matrix: - PREFER_LOWEST="--prefer-lowest --prefer-stable" - PREFER_LOWEST="" before_install: - composer self-update install: - composer update --prefer-source $PREFER_LOWEST
language: php php: - 5.6 - 5.5 - hhvm sudo: false env: matrix: - PREFER_LOWEST="--prefer-lowest --prefer-stable" - PREFER_LOWEST="" before_install: - composer self-update install: - composer update --prefer-source $PREFER_LOWEST
Remove HHVM-nightly from Travis as it's no longer supported
Remove HHVM-nightly from Travis as it's no longer supported
YAML
mit
dchesterton/image
yaml
## Code Before: language: php php: - 5.6 - 5.5 - hhvm - hhvm-nightly sudo: false env: matrix: - PREFER_LOWEST="--prefer-lowest --prefer-stable" - PREFER_LOWEST="" before_install: - composer self-update install: - composer update --prefer-source $PREFER_LOWEST ## Instruction: Remove HHVM-nigh...
609ea24357e85e0f2d974c56e285ec954e694224
app/controllers/setup_controller.rb
app/controllers/setup_controller.rb
class SetupController < ApplicationController layout "setup" skip_before_action :require_login skip_before_action :run_first_time_setup def first_project @project = Project.new end def create_project @project = current_user.created_projects.build(project_params) if @project.save @projec...
class SetupController < ApplicationController layout "setup" skip_before_action :require_login skip_before_action :run_first_time_setup def first_project @project = Project.new end def create_project @project = current_user.created_projects.build(project_params) if @project.save @projec...
Fix another bug with new urls
Fix another bug with new urls
Ruby
mit
openhq/openhq,openhq/openhq,openhq/openhq,openhq/openhq
ruby
## Code Before: class SetupController < ApplicationController layout "setup" skip_before_action :require_login skip_before_action :run_first_time_setup def first_project @project = Project.new end def create_project @project = current_user.created_projects.build(project_params) if @project.sa...
f25189fc749f3ec9d00a3a0095215d4e47ccb63e
util/nconfig.php
util/nconfig.php
<?php /** * set channel email notifications utility * This is a preliminary solution using the existing functions from include/channel.php. * More options would be nice. **/ if(! file_exists('include/cli_startup.php')) { echo 'Run from the top level $Projectname web directory, as util/nconfig <args>' . PHP_EOL; ...
<?php /** * switch off channel email notifications utility * This is a preliminary solution using the existing functions from include/channel.php. * More options would be nice. **/ if(! file_exists('include/cli_startup.php')) { echo 'Run from the top level $Projectname web directory, as util/nconfig <args>' . PH...
Drop on switch for notifications
Drop on switch for notifications
PHP
mit
redmatrix/hubzilla,mjfriaza/hubzilla,anaqreon/hubzilla,redmatrix/hubzilla,phellmes/hubzilla,mjfriaza/hubzilla,sasiflo/hubzilla,mrjive/hubzilla,sasiflo/hubzilla,redmatrix/hubzilla,phellmes/hubzilla,anaqreon/hubzilla,dawnbreak/hubzilla,mjfriaza/hubzilla,mjfriaza/hubzilla,mrjive/hubzilla,sasiflo/hubzilla,dawnbreak/hubzill...
php
## Code Before: <?php /** * set channel email notifications utility * This is a preliminary solution using the existing functions from include/channel.php. * More options would be nice. **/ if(! file_exists('include/cli_startup.php')) { echo 'Run from the top level $Projectname web directory, as util/nconfig <ar...
b18a98b3740896bec6e7e55b4a2bd4430aced0fb
spec/resty/openssl/bio_spec.lua
spec/resty/openssl/bio_spec.lua
local _M = require('resty.openssl.bio') describe('OpenSSL BIO', function() describe('.new', function() it('returns cdata', function() assert.equal('cdata', type(_M.new())) end) end) describe(':write', function() it('writes data to bio', function() local bio = _M.new() local str = '...
local _M = require('resty.openssl.bio') describe('OpenSSL BIO', function() describe('.new', function() it('returns cdata', function() assert.equal('cdata', type(_M.new())) end) end) describe(':write', function() it('writes data to bio', function() local bio = _M.new() local str = '...
Fix ssl test due library change
[test] Fix ssl test due library change Due to the update on the image the ssl library return 0 instead of error. Signed-off-by: Eloy Coto <2a8acc28452926ceac4d9db555411743254cf5f9@gmail.com>
Lua
mit
3scale/apicast,3scale/apicast,3scale/apicast,3scale/docker-gateway,3scale/apicast,3scale/docker-gateway
lua
## Code Before: local _M = require('resty.openssl.bio') describe('OpenSSL BIO', function() describe('.new', function() it('returns cdata', function() assert.equal('cdata', type(_M.new())) end) end) describe(':write', function() it('writes data to bio', function() local bio = _M.new() ...
9d4f87b885465c2010f53cfecbbd5d8f24811521
src/client/scripts/pages/authentification.react.js
src/client/scripts/pages/authentification.react.js
const React = require('react'); const Utils = require('../utils'); const AuthentificationPage = React.createClass({ getInitialState() { return { loading: false }; }, openAuthWindow() { this.setState({ loading: true }); Utils.Socket.emit('youtube/auth'); }, render() { if (this.state.loading) { ...
const React = require('react'); const Utils = require('../utils'); const AuthentificationPage = React.createClass({ getInitialState() { return { loading: false }; }, openAuthWindow() { this.setState({ loading: true }); Utils.Socket.emit('youtube/auth'); }, render() { if (this.state.loading) { ...
Add a loading indicator on the auth page
Add a loading indicator on the auth page
JavaScript
mit
YannBertrand/Youtube,YannBertrand/Youtube
javascript
## Code Before: const React = require('react'); const Utils = require('../utils'); const AuthentificationPage = React.createClass({ getInitialState() { return { loading: false }; }, openAuthWindow() { this.setState({ loading: true }); Utils.Socket.emit('youtube/auth'); }, render() { if (this.state...
0f9d1e4d0e1eb6a69eb5715cb8e034e7541e1dc0
packages/mw/mwc-probability-transition.yaml
packages/mw/mwc-probability-transition.yaml
homepage: https://github.com/ocramz/mwc-probability-transition changelog-type: '' hash: 6ca7d08242fd8be14f37a6fa33bb44324d996aca0e4b25653a201ee0b4cf0072 test-bench-deps: base: -any hspec: -any mwc-probability-transition: -any QuickCheck: -any mwc-probability: -any maintainer: zocca.marco gmail synopsis: A Mar...
homepage: https://github.com/ocramz/mwc-probability-transition changelog-type: '' hash: 42d82dd5cb90933637d7e247e88f0935fc75f8ea3e968e6abd1cec469ba9be8e test-bench-deps: base: -any hspec: -any mwc-probability-transition: -any QuickCheck: -any mwc-probability: -any maintainer: zocca.marco gmail synopsis: A Mar...
Update from Hackage at 2018-04-21T09:03:40Z
Update from Hackage at 2018-04-21T09:03:40Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/ocramz/mwc-probability-transition changelog-type: '' hash: 6ca7d08242fd8be14f37a6fa33bb44324d996aca0e4b25653a201ee0b4cf0072 test-bench-deps: base: -any hspec: -any mwc-probability-transition: -any QuickCheck: -any mwc-probability: -any maintainer: zocca.marco gmail...
ca47d26c302eb95864c6655473f00398b98e03b3
homebrew/install.sh
homebrew/install.sh
if [[ "$OSTYPE" == "darwin"* ]]; then echo 'Installing homebrew' ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew install hub fi
if [[ "$OSTYPE" == "darwin"* ]]; then echo 'Installing homebrew' /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" brew install hub fi
Use new homebrew sh script
fix(setup): Use new homebrew sh script
Shell
mit
cmckni3/dotfiles,cmckni3/dotfiles,cmckni3/dotfiles
shell
## Code Before: if [[ "$OSTYPE" == "darwin"* ]]; then echo 'Installing homebrew' ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew install hub fi ## Instruction: fix(setup): Use new homebrew sh script ## Code After: if [[ "$OSTYPE" == "darwin"* ]]; then echo 'Ins...
1781d10b1cc0f010da094fbd8e647d0e0355dcbe
manifest.template.json
manifest.template.json
{ "schema_version": 2, "image": "maestro.png", "name": "Built-In Images", "description": "Images for the standard built-in tasks in Maestro", "author": "Doug Henderson <dhenderson@maestrodev.com>", "version": "0.01", "type": "images", "tags": ["maestro"], "tasks": [{ "name": "fork compositions", ...
{ "schema_version": 2, "image": "maestro.png", "name": "Built-In Images", "description": "Images for the standard built-in tasks in Maestro", "author": "Doug Henderson <dhenderson@maestrodev.com>", "type": "images", "tags": [ "maestro" ], "tasks": [ { "name": "fork compositions", "...
Remove unused version and reformat
Remove unused version and reformat
JSON
apache-2.0
maestrodev/maestro-builtin-images-plugin
json
## Code Before: { "schema_version": 2, "image": "maestro.png", "name": "Built-In Images", "description": "Images for the standard built-in tasks in Maestro", "author": "Doug Henderson <dhenderson@maestrodev.com>", "version": "0.01", "type": "images", "tags": ["maestro"], "tasks": [{ "name": "fork ...
9cbb23d3b9591d2094165ab0d9ad70fe2381dba8
app/views/reservation_mailer/_style.erb
app/views/reservation_mailer/_style.erb
<style type="text/css"> div.custom-message p, div.followup p { margin-top: 1em; margin-bottom: 1em; } div.reservationCard { background-color: #eeeeaa; color: #000000; padding: 1em; margin-bottom: 1em; } div.reservationCard h2 { font-family: Palatino, serif; font-style: ita...
<style type="text/css"> div.custom-message p, div.followup p { margin-top: 1em; margin-bottom: 1em; } div.reservationCard { color: #000000; padding: 1em; margin-bottom: 1em; } div.reservationCard h2 { background-color: #eeeeaa; font-family: Palatino, serif; font-style: ita...
Remove email body background color, only apply to header line
Remove email body background color, only apply to header line
HTML+ERB
apache-2.0
txstate-etc/txst-signup,txstate-etc/txst-signup,txstate-etc/txst-signup
html+erb
## Code Before: <style type="text/css"> div.custom-message p, div.followup p { margin-top: 1em; margin-bottom: 1em; } div.reservationCard { background-color: #eeeeaa; color: #000000; padding: 1em; margin-bottom: 1em; } div.reservationCard h2 { font-family: Palatino, serif; ...
3fcd05764683ae0c39685f1b60f6bd88564e27fa
README.md
README.md
Leaf-snowflake ============= Last Modified: 2017-06-28 Introduction ============ Leaf-snowflake is a distributed ID maker. Based on http://tech.meituan.com/MT_Leaf.html leaf-snowflake. Steps: ============ 1. mvn package 2. Set ${LEAF_HOME} environment variable 3. Config leaf.yaml at ${LEAF_HOME}/conf 4. Exe...
Leaf-snowflake ============= Last Modified: 2017-06-28 Introduction ============ Leaf-snowflake is a distributed ID maker. Based on http://tech.meituan.com/MT_Leaf.html leaf-snowflake. Steps: ============ 1. mvn package 2. Set ${LEAF_HOME} environment variable 3. Config leaf.yaml at ${LEAF_HOME}/conf 4. Exe...
Add Command line tools: zktool how to use
Add Command line tools: zktool how to use
Markdown
apache-2.0
weizhenyi/leaf-snowflake,weizhenyi/leaf-snowflake,weizhenyi/leaf-snowflake
markdown
## Code Before: Leaf-snowflake ============= Last Modified: 2017-06-28 Introduction ============ Leaf-snowflake is a distributed ID maker. Based on http://tech.meituan.com/MT_Leaf.html leaf-snowflake. Steps: ============ 1. mvn package 2. Set ${LEAF_HOME} environment variable 3. Config leaf.yaml at ${LEAF_H...
7d9b58fcb4e3eb4c1350295eb6d8e4816a380862
src/Conduit/Middleware/ApplicationMiddleware.php
src/Conduit/Middleware/ApplicationMiddleware.php
<?php namespace Conduit\Middleware; use Phly\Conduit\MiddlewareInterface; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\ResponseInterface; use Aura\Router\Router; use Aura\Dispatcher\Dispatcher; use Aura\Di\Container; class ApplicationMiddleware implements MiddlewareInterface { private $contai...
<?php namespace Conduit\Middleware; use Phly\Conduit\MiddlewareInterface; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\ResponseInterface; use Aura\Router\Router; use Aura\Dispatcher\Dispatcher; use Aura\Di\Container; class ApplicationMiddleware implements MiddlewareInterface { private $contai...
Check and makse sure we have no dispatcher object
Check and makse sure we have no dispatcher object
PHP
mit
harikt/conduit-skelton,harikt/conduit-skelton
php
## Code Before: <?php namespace Conduit\Middleware; use Phly\Conduit\MiddlewareInterface; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\ResponseInterface; use Aura\Router\Router; use Aura\Dispatcher\Dispatcher; use Aura\Di\Container; class ApplicationMiddleware implements MiddlewareInterface { ...
381b54073efdfe910f4cf5a0f06226d74f18be9d
models/ospatch/entities.go
models/ospatch/entities.go
package ospatch import "time" type PatchInfo struct { Execution_id string Status string Start_time time.Time End_time time.Time Init_messages []map[string]interface{} }
package ospatch import "github.com/centurylinkcloud/clc-go-cli/base" type PatchInfo struct { Execution_id string Status string Start_time base.Time End_time base.Time Init_messages []map[string]interface{} }
Use base.Time for displaying times
Use base.Time for displaying times
Go
apache-2.0
CenturyLinkCloud/clc-go-cli,CenturyLinkCloud/clc-go-cli
go
## Code Before: package ospatch import "time" type PatchInfo struct { Execution_id string Status string Start_time time.Time End_time time.Time Init_messages []map[string]interface{} } ## Instruction: Use base.Time for displaying times ## Code After: package ospatch import "github.com/centuryl...
4ccf029c868647085b5a726ef27a270d206b33a7
app/views/version_4/google/results.html
app/views/version_4/google/results.html
{% extends "layout_unbranded.html" %} {% set imgpath="/public/images/google/" %} {% block page_title %} Search results {% endblock %} {% block proposition_header %} <!-- blank to remove the proposition header --> {% endblock %} {% block header_class %} <!-- blank to remove the proposition header --> {% endblo...
{% extends "layout_unbranded.html" %} {% set imgpath="/public/images/google/" %} {% block page_title %} Search results {% endblock %} {% block proposition_header %} <!-- blank to remove the proposition header --> {% endblock %} {% block header_class %} <!-- blank to remove the proposition header --> {% endblo...
Fix link to guidance from Google
Fix link to guidance from Google
HTML
mit
EnvironmentAgency/river-permissions-prototype,EnvironmentAgency/river-permissions-prototype,EnvironmentAgency/river-permissions-prototype
html
## Code Before: {% extends "layout_unbranded.html" %} {% set imgpath="/public/images/google/" %} {% block page_title %} Search results {% endblock %} {% block proposition_header %} <!-- blank to remove the proposition header --> {% endblock %} {% block header_class %} <!-- blank to remove the proposition head...
5fb08d025253520bb0e44a5a6af3801659833f7f
Cargo.toml
Cargo.toml
[package] name = "rust-sqlite" version = "0.3.0" authors = [ "Dan Connolly <dckc@madmode.com>", "Peter Reid <peter.d.reid@gmail.com>" ] keywords = ["database", "sql"] exclude = [ ".hg/*", "*.orig", "*~", ] description = "Rustic bindings for sqlite3" repository = "https://github.com/dckc/rust-sqlite3"...
[package] name = "rust-sqlite" version = "0.3.0" authors = [ "Dan Connolly <dckc@madmode.com>", "Peter Reid <peter.d.reid@gmail.com>" ] keywords = ["database", "sql", "sqlite"] exclude = [ ".hg/*", "*.orig", "*~", ] description = "Rustic bindings for sqlite3" repository = "https://github.com/dckc/rus...
Add keyword to improve linkability on crates.io
Add keyword to improve linkability on crates.io
TOML
mit
dckc/rust-sqlite3
toml
## Code Before: [package] name = "rust-sqlite" version = "0.3.0" authors = [ "Dan Connolly <dckc@madmode.com>", "Peter Reid <peter.d.reid@gmail.com>" ] keywords = ["database", "sql"] exclude = [ ".hg/*", "*.orig", "*~", ] description = "Rustic bindings for sqlite3" repository = "https://github.com/dc...
6167b90964d8d89afdcdd27b192ea71205868694
src/ui/mod.rs
src/ui/mod.rs
extern crate sdl2; pub use self::screen::Screen; mod screen; /// Abstract object that can be created to initialize and access the UI pub struct UI; impl UI { /// Create an abstract UI object (initializes SDL2 until dropped) pub fn new () -> UI { match sdl2::init([sdl2::InitVideo]) { false => fail!("ui: Faile...
extern crate sdl2; pub use self::screen::Screen; mod screen; /// Abstract object that can be created to initialize and access the UI pub struct UI; impl UI { /// Create an abstract UI object (initializes SDL2 until dropped) pub fn new () -> UI { match sdl2::init([sdl2::InitVideo]) { false => fail!("ui: Faile...
Allow closure for UI loop to return false to break the loop
Allow closure for UI loop to return false to break the loop
Rust
mit
zargony/rusty64,zargony/rusty64
rust
## Code Before: extern crate sdl2; pub use self::screen::Screen; mod screen; /// Abstract object that can be created to initialize and access the UI pub struct UI; impl UI { /// Create an abstract UI object (initializes SDL2 until dropped) pub fn new () -> UI { match sdl2::init([sdl2::InitVideo]) { false => ...
eb5e3d416a4a9da2ea2f06498683a095d6c5c7cd
spec/presenters/sufia/select_type_list_presenter_spec.rb
spec/presenters/sufia/select_type_list_presenter_spec.rb
require 'spec_helper' describe Sufia::SelectTypeListPresenter do let(:instance) { described_class.new(user) } let(:user) { create(:user) } describe "#many?" do subject { instance.many? } it { is_expected.to be false } context "if user is nil" do it { is_expected.to be false } end con...
require 'spec_helper' describe Sufia::SelectTypeListPresenter do let(:instance) { described_class.new(user) } let(:user) { create(:user) } describe "#many?" do subject { instance.many? } context "if authorized_models returns one" do before do allow(instance).to receive(:authorized_models)...
Refactor SelectTypeListPresenter spec so it isn't affected by works being generated
Refactor SelectTypeListPresenter spec so it isn't affected by works being generated
Ruby
apache-2.0
samvera/hyrax,samvera/hyrax,samvera/hyrax,samvera/hyrax
ruby
## Code Before: require 'spec_helper' describe Sufia::SelectTypeListPresenter do let(:instance) { described_class.new(user) } let(:user) { create(:user) } describe "#many?" do subject { instance.many? } it { is_expected.to be false } context "if user is nil" do it { is_expected.to be false } ...
20e8a4757610dc78858c13d854b109e1477ec757
app/components/job-log.js
app/components/job-log.js
import Ember from 'ember'; export default Ember.Component.extend({ logBinding: 'job.log', didReceiveAttrs: function(options) { this._super(...arguments); if(options.oldAttrs && options.oldAttrs.job && options.oldAttrs.job.value) { this.teardownLog(options.oldAttrs.job.value); } if(options....
import Ember from 'ember'; export default Ember.Component.extend({ logBinding: 'job.log', didReceiveAttrs: function(options) { this._super(...arguments); let oldJob = options.oldAttrs && options.oldAttrs.job && options.oldAttrs.job.value, newJob = options.newAttrs && options.newAttrs.job && optio...
Fix logs displaying when a restart happens
Fix logs displaying when a restart happens When a user restarts a job, we should not try fetching the log again. In order to do this I added a guard in job-log component, which checks if attributes changed in didReceiveAttrs callback. If the old job value is the same as the new value, we don't need to do anything.
JavaScript
mit
fotinakis/travis-web,fotinakis/travis-web,travis-ci/travis-web,travis-ci/travis-web,fauxton/travis-web,fotinakis/travis-web,fauxton/travis-web,fauxton/travis-web,travis-ci/travis-web,travis-ci/travis-web,fotinakis/travis-web,fauxton/travis-web
javascript
## Code Before: import Ember from 'ember'; export default Ember.Component.extend({ logBinding: 'job.log', didReceiveAttrs: function(options) { this._super(...arguments); if(options.oldAttrs && options.oldAttrs.job && options.oldAttrs.job.value) { this.teardownLog(options.oldAttrs.job.value); } ...
f3cf637ca71c2bf65a56f9a1ab81407e94732786
hello/hello.asd
hello/hello.asd
;;;; -*- Mode: Lisp; -*- (defsystem "hello" :description "Example Bazel Hello World application" :class program-system :entry-point "hello:main" :depends-on (:alexandria) :components ((:file "hello"))) (defsystem "hello/chello" :description "Example Bazel Hello World application, using C" :class program...
;;;; -*- Mode: Lisp; -*- (defsystem "hello" :description "Example Bazel Hello World application" :class program-system :entry-point "hello:main" :depends-on (:alexandria) :components ((:file "hello"))) (defsystem "hello/chello" :description "Example Bazel Hello World application, using C" :class program...
Make cffi-toolchain a runtime dependency, too.
Make cffi-toolchain a runtime dependency, too. This resolves a load-time dependency on ASDF and allows chello to be built as a statically linked executable with ECL.
Common Lisp
mit
qitab/bazelisp,qitab/bazelisp,qitab/bazelisp
common-lisp
## Code Before: ;;;; -*- Mode: Lisp; -*- (defsystem "hello" :description "Example Bazel Hello World application" :class program-system :entry-point "hello:main" :depends-on (:alexandria) :components ((:file "hello"))) (defsystem "hello/chello" :description "Example Bazel Hello World application, using C" ...
a5d269d758a67ef1019d82cc74b2392ab45404e8
README.md
README.md
This repository contains TmLanguage files that are consumed by TypeScript editors and plugins such as [Visual Studio Code](https://github.com/Microsoft/vscode), [The TypeScript Sublime Plugin](https://github.com/Microsoft/TypeScript-Sublime-Plugin), [Atom TypeScript](https://github.com/TypeStrong/atom-typescript), and...
[![Build status](https://ci.appveyor.com/api/projects/status/i7fp97q9nc5uw5kf?svg=true)](https://ci.appveyor.com/project/zhengbli/typescript-tmlanguage) This repository contains TmLanguage files that are consumed by TypeScript editors and plugins such as [Visual Studio Code](https://github.com/Microsoft/vscode), [The ...
Add build status badge in readme
Add build status badge in readme
Markdown
mit
Microsoft/TypeScript-TmLanguage
markdown
## Code Before: This repository contains TmLanguage files that are consumed by TypeScript editors and plugins such as [Visual Studio Code](https://github.com/Microsoft/vscode), [The TypeScript Sublime Plugin](https://github.com/Microsoft/TypeScript-Sublime-Plugin), [Atom TypeScript](https://github.com/TypeStrong/atom-...
c63bff7d566508be31bbad3d42c7a2f2381ae0b9
backup_s3.bash
backup_s3.bash
source venv/bin/activate python manage.py backup_data_to_s3
source $HOME/.bashrc source $HOME/trackercise/venv/bin/activate python manage.py backup_data_to_s3 deactivate
Use home var to make the script simpler
Use home var to make the script simpler
Shell
mit
pbraunstein/trackercise,pbraunstein/trackercise,pbraunstein/trackercise,pbraunstein/trackercise,pbraunstein/trackercise
shell
## Code Before: source venv/bin/activate python manage.py backup_data_to_s3 ## Instruction: Use home var to make the script simpler ## Code After: source $HOME/.bashrc source $HOME/trackercise/venv/bin/activate python manage.py backup_data_to_s3 deactivate
455e018320d68b4dcc9f182de2ba93e6388acebf
test/trash_test.rb
test/trash_test.rb
require 'test/unit' require 'rubygems' require 'active_record' require 'trash' ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:") def setup_db silence_stream(STDOUT) do ActiveRecord::Schema.define(:version => 1) do create_table :entries do |t| t.string :title ...
require 'test/unit' require 'rubygems' require 'active_record' require 'trash' require 'factory_girl' ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:") def setup_db silence_stream(STDOUT) do ActiveRecord::Schema.define(:version => 1) do create_table :entries do |t| ...
Use factories to create data
Use factories to create data
Ruby
mit
trilogyinteractive/rails-trash,Kangou/rails-trash
ruby
## Code Before: require 'test/unit' require 'rubygems' require 'active_record' require 'trash' ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:") def setup_db silence_stream(STDOUT) do ActiveRecord::Schema.define(:version => 1) do create_table :entries do |t| t...
fc80a4b350782b49504b87ebfb11265e02f1870a
.travis.yml
.travis.yml
language: node_js node_js: - '8.2.1' os: - linux dist: trusty install: - yarn install --frozen-lockfile script: - yarn transpile - yarn lint - yarn test-node - yarn nsp check - yarn generate - yarn prepare-beta-build - $(yarn bin)/build --config.extraMetadata.environment=$SIGNAL_ENV --config.mac.bun...
language: node_js node_js: - '8.2.1' os: - linux dist: trusty install: - yarn install --frozen-lockfile script: - yarn transpile - yarn lint - yarn test-node - yarn nsp check - yarn generate - yarn prepare-beta-build - $(yarn bin)/build --config.extraMetadata.environment=$SIGNAL_ENV --config.mac.bun...
Stop uploading linux build assets; no longer used in build
Stop uploading linux build assets; no longer used in build
YAML
agpl-3.0
nrizzio/Signal-Desktop,nrizzio/Signal-Desktop,nrizzio/Signal-Desktop,nrizzio/Signal-Desktop
yaml
## Code Before: language: node_js node_js: - '8.2.1' os: - linux dist: trusty install: - yarn install --frozen-lockfile script: - yarn transpile - yarn lint - yarn test-node - yarn nsp check - yarn generate - yarn prepare-beta-build - $(yarn bin)/build --config.extraMetadata.environment=$SIGNAL_ENV ...
d72b383a9d6ba2c94d72ccabf48771b4664ce2d1
partials/postheader.hbs
partials/postheader.hbs
<header class="main-header post-head {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}"> <nav class="main-nav {{#if image}}overlay{{/if}} clearfix"> <a class="back-button icon-arrow-left" href="{{@blog.url}}"> Home</a> <a class="subscribe-button icon-feed" href="{{@blog.u...
<header class="main-header post-head {{#if image}}" style="background-image: url({{image}}){{else}}{{#if @blog.cover}}" style="background-image: url({{@blog.cover}}){{else}}no-cover{{/if}}{{/if}}"> <nav class="main-nav {{#if image}}overlay{{/if}} clearfix"> <a class="back-button icon-arrow-left" href="{{@bl...
Add header image to post pages
Add header image to post pages
Handlebars
mit
eddielee6/SleepyMoon,eddielee6/SleepyMoon
handlebars
## Code Before: <header class="main-header post-head {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}"> <nav class="main-nav {{#if image}}overlay{{/if}} clearfix"> <a class="back-button icon-arrow-left" href="{{@blog.url}}"> Home</a> <a class="subscribe-button icon-feed"...
afacbbe516783cf2889ece0cc10a15c1353c3704
lib/partitioned.rb
lib/partitioned.rb
require 'monkey_patch_activerecord' require 'monkey_patch_postgres' require 'monkey_patch_redshift' require 'partitioned/active_record_overrides' require 'partitioned/partitioned_base/configurator.rb' require 'partitioned/partitioned_base/configurator/data' require 'partitioned/partitioned_base/configurator/dsl' requi...
require 'monkey_patch_activerecord' require 'monkey_patch_postgres' require 'monkey_patch_redshift' require 'partitioned/active_record_overrides' require 'partitioned/partitioned_base/configurator.rb' require 'partitioned/partitioned_base/configurator/data' require 'partitioned/partitioned_base/configurator/dsl' requi...
Add a require of by_daily_time_field
Add a require of by_daily_time_field
Ruby
bsd-3-clause
fiksu/partitioned,fiksu/partitioned,fiksu/partitioned,fiksu/partitioned
ruby
## Code Before: require 'monkey_patch_activerecord' require 'monkey_patch_postgres' require 'monkey_patch_redshift' require 'partitioned/active_record_overrides' require 'partitioned/partitioned_base/configurator.rb' require 'partitioned/partitioned_base/configurator/data' require 'partitioned/partitioned_base/configu...
611834461556dd10f3f4663c20cfabc4043dd5ce
src/OVAL/probes/SEAP/CMakeLists.txt
src/OVAL/probes/SEAP/CMakeLists.txt
add_subdirectory("generic/rbt") file(GLOB_RECURSE SEAP_SOURCES "*.c") file(GLOB_RECURSE SEAP_HEADERS "*.h") file(GLOB_RECURSE RBT_SOURCES "generic/rbt/*.c") file(GLOB_RECURSE RBT_HEADERS "generic/rbt/*.h") file(GLOB_RECURSE SEAP_SOURCES_TO_REMOVE "sexp-handler.c" "sexp-template.c") list(REMOVE_ITEM SEAP_SOURCES ${SE...
add_subdirectory("generic/rbt") file(GLOB_RECURSE SEAP_SOURCES "*.c") file(GLOB_RECURSE SEAP_HEADERS "*.h") file(GLOB_RECURSE RBT_SOURCES "generic/rbt/*.c") file(GLOB_RECURSE RBT_HEADERS "generic/rbt/*.h") file(GLOB_RECURSE SEAP_SOURCES_TO_REMOVE "sexp-handler.c" "sexp-template.c") list(REMOVE_ITEM SEAP_SOURCES ${SE...
Use CMAKE_SOURCE_DIR instead of a relative path
Use CMAKE_SOURCE_DIR instead of a relative path It's way more readable. This commit also fixes indentation.
Text
lgpl-2.1
mpreisler/openscap,redhatrises/openscap,mpreisler/openscap,jan-cerny/openscap,OpenSCAP/openscap,OpenSCAP/openscap,mpreisler/openscap,redhatrises/openscap,OpenSCAP/openscap,jan-cerny/openscap,OpenSCAP/openscap,redhatrises/openscap,jan-cerny/openscap,jan-cerny/openscap,mpreisler/openscap,redhatrises/openscap,redhatrises/...
text
## Code Before: add_subdirectory("generic/rbt") file(GLOB_RECURSE SEAP_SOURCES "*.c") file(GLOB_RECURSE SEAP_HEADERS "*.h") file(GLOB_RECURSE RBT_SOURCES "generic/rbt/*.c") file(GLOB_RECURSE RBT_HEADERS "generic/rbt/*.h") file(GLOB_RECURSE SEAP_SOURCES_TO_REMOVE "sexp-handler.c" "sexp-template.c") list(REMOVE_ITEM S...
3207ced1281fd992c3888769cfbe3b72a728056c
sh/update_production.sh
sh/update_production.sh
KEYSLOADED=`ssh-add -l | grep -v "The agent has no identities." | wc -l` if [ $KEYSLOADED -lt 1 ]; then ssh-add fi pushd $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) pushd ../../myplaceonline_posixcubes ../../../posixcube/posixcube.sh -u root -w ~/production.pwd -h web*.myplaceonline.com -o "cubevar_app_web_serv...
KEYSLOADED=`ssh-add -l | grep -v "The agent has no identities." | wc -l` if [ $KEYSLOADED -lt 1 ]; then ssh-add fi pushd $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) pushd ../../myplaceonline_posixcubes ../../../posixcube/posixcube.sh -u root -h web*.myplaceonline.com -o "cubevar_app_web_servers=web*" -c core_be...
Remove unneeded pwd file reference
Remove unneeded pwd file reference
Shell
agpl-3.0
myplaceonline/myplaceonline_scripts
shell
## Code Before: KEYSLOADED=`ssh-add -l | grep -v "The agent has no identities." | wc -l` if [ $KEYSLOADED -lt 1 ]; then ssh-add fi pushd $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) pushd ../../myplaceonline_posixcubes ../../../posixcube/posixcube.sh -u root -w ~/production.pwd -h web*.myplaceonline.com -o "cube...
da20a079ae72de4bbc156009e751a39c11926e76
src/resources/fresh-site/src/documentation/translations/menu_es.xml
src/resources/fresh-site/src/documentation/translations/menu_es.xml
<?xml version="1.0" encoding="UTF-8"?> <catalogue xml:lang="es" ><message key="About" >Sobre</message ><message key="Index" >Indice</message ><message key="Changes" >Cambios</message ><message key="Todo" >Cosas que hacer</message ><message key="Samples" >Ejemplos</message ><message key="Apache document page" >Página do...
<?xml version="1.0" encoding="UTF-8"?> <catalogue xml:lang="es" > <message key="About">Sobre</message > <message key="Index">Indice</message > <message key="Changes">Cambios</message> <message key="Todo" >Cosas que hacer</message> <message key="Samples" >Ejemplos</message> <message key="Apache document page...
Remove eol and tidy up as it was wrong format.
Remove eol and tidy up as it was wrong format. git-svn-id: fea306228a0c821168c534b698c8fa2a33280b3b@8759 13f79535-47bb-0310-9956-ffa450edef68
XML
apache-2.0
apache/forrest,apache/forrest,apache/forrest,apache/forrest,apache/forrest,apache/forrest
xml
## Code Before: <?xml version="1.0" encoding="UTF-8"?> <catalogue xml:lang="es" ><message key="About" >Sobre</message ><message key="Index" >Indice</message ><message key="Changes" >Cambios</message ><message key="Todo" >Cosas que hacer</message ><message key="Samples" >Ejemplos</message ><message key="Apache document ...
86a1b886b9282765392fec8e10c55d9d2892359a
docker-compose.yaml
docker-compose.yaml
version: '3' services: repoxplorer: image: morucci/repoxplorer container_name: repoxplorer ports: - 51000:51000 volumes: - repoxplorer-data:/repoxplorer-data - elasticsearch-data:/var/lib/elasticsearch - $PWD/docker-data/conf:/etc/repoxplorer/defs:z volumes: elasticsearch-da...
version: '3' services: repoxplorer: image: morucci/repoxplorer container_name: repoxplorer ports: - 51000:51000 volumes: - repoxplorer-data:/usr/local/share/repoxplorer - elasticsearch-data:/var/lib/elasticsearch - $PWD/docker-data/conf:/etc/repoxplorer/defs:z volumes: elast...
Fix path for docker container data
Fix path for docker container data Change-Id: I9312ebbe6b70c89027d8efce5f2fce762a704e60
YAML
apache-2.0
morucci/repoxplorer,morucci/repoxplorer,morucci/repoxplorer,morucci/repoxplorer
yaml
## Code Before: version: '3' services: repoxplorer: image: morucci/repoxplorer container_name: repoxplorer ports: - 51000:51000 volumes: - repoxplorer-data:/repoxplorer-data - elasticsearch-data:/var/lib/elasticsearch - $PWD/docker-data/conf:/etc/repoxplorer/defs:z volumes: ...
4528d4fdf564860fe2cd345135710e42a86f3884
requirements.txt
requirements.txt
Flask==0.10 Pillow==2.3 numpy==1.8
Flask==0.10 Pillow==2.3 numpy==1.8 pylibmc==1.2
Add pylibmc requirement for memcached.
Add pylibmc requirement for memcached. modified: requirements.txt
Text
bsd-3-clause
lenards/pretty-doge
text
## Code Before: Flask==0.10 Pillow==2.3 numpy==1.8 ## Instruction: Add pylibmc requirement for memcached. modified: requirements.txt ## Code After: Flask==0.10 Pillow==2.3 numpy==1.8 pylibmc==1.2
182b94f777b1743671b706c939ce14f89c31efca
lint/queue.py
lint/queue.py
from . import persist import time import threading # Map from view_id to threading.Timer objects timers = {} # For compatibility this is a class with unchanged API from SL3. class Daemon: def start(self, callback): self._callback = callback def hit(self, view): assert self._callback, "Queu...
from . import persist import time import threading # Map from view_id to threading.Timer objects timers = {} # For compatibility this is a class with unchanged API from SL3. class Daemon: def start(self, callback): self._callback = callback def hit(self, view): assert self._callback, "Queu...
Remove MIN_DELAY bc a default setting is guaranteed
Remove MIN_DELAY bc a default setting is guaranteed
Python
mit
SublimeLinter/SublimeLinter3,SublimeLinter/SublimeLinter3
python
## Code Before: from . import persist import time import threading # Map from view_id to threading.Timer objects timers = {} # For compatibility this is a class with unchanged API from SL3. class Daemon: def start(self, callback): self._callback = callback def hit(self, view): assert self....
24d6f8483ac5460552dc51767132ffb2882b3f02
docs-to-pdf-converter/src/DocToPDFConverter.java
docs-to-pdf-converter/src/DocToPDFConverter.java
import java.io.FileInputStream; import org.docx4j.convert.in.Doc; import org.docx4j.openpackaging.packages.WordprocessingMLPackage; public class DocToPDFConverter extends DocxToPDFConverter { public DocToPDFConverter(String inputFilePath, String outputFilePath) { super(inputFilePath, outputFilePath); } @Overr...
import java.io.FileInputStream; import java.io.OutputStream; import java.io.PrintStream; import org.docx4j.convert.in.Doc; import org.docx4j.openpackaging.packages.WordprocessingMLPackage; public class DocToPDFConverter extends DocxToPDFConverter { public DocToPDFConverter(String inputFilePath, String outputFilePa...
Disable stdout when convert doc to docx
Disable stdout when convert doc to docx
Java
mit
dvijeshpatel/docs-to-pdf-converter,yeokm1/docs-to-pdf-converter
java
## Code Before: import java.io.FileInputStream; import org.docx4j.convert.in.Doc; import org.docx4j.openpackaging.packages.WordprocessingMLPackage; public class DocToPDFConverter extends DocxToPDFConverter { public DocToPDFConverter(String inputFilePath, String outputFilePath) { super(inputFilePath, outputFilePa...
6192ff29aeff277fce10b27d9b81b3ebe0d0bdf0
src/loader.cpp
src/loader.cpp
GridManager* Loader::Load() { size_t size; char* buffer; File::Load(_fileName.c_str(), buffer, size); ByteBuffer bb(size); bb.WriteBuffer(buffer, size); delete[] buffer; return GridManager::Load(bb); }
GridManager* Loader::Load() { size_t size; char* buffer; if (!File::Load(_fileName.c_str(), buffer, size)) { delete[] buffer; return NULL; } ByteBuffer bb(size); bb.WriteBuffer(buffer, size); delete[] buffer; return GridManager::Load(bb); }
Fix a crash when loading unexisting file
Fix a crash when loading unexisting file
C++
mit
DDuarte/feup-aeda-grid,DDuarte/feup-aeda-grid
c++
## Code Before: GridManager* Loader::Load() { size_t size; char* buffer; File::Load(_fileName.c_str(), buffer, size); ByteBuffer bb(size); bb.WriteBuffer(buffer, size); delete[] buffer; return GridManager::Load(bb); } ## Instruction: Fix a crash when loading unexisting file ## Code Aft...
25d3ac3fbb5921a1452a48da6ef77e5cce149a1a
hiera/data/role/bootstrap.yaml
hiera/data/role/bootstrap.yaml
rjil::jiocloud::consul_role: bootstrapserver # etcd serves as the ntp server rjil::system::ntp::server: true ntp::servers: "%{lookup_array('upstream_ntp_servers')}" ntp::udlc: yes
rjil::jiocloud::consul_role: bootstrapserver # etcd serves as the ntp server rjil::system::ntp::server: true rjil::system::ntp::run_ntpdate: false ntp::servers: "%{lookup_array('upstream_ntp_servers')}" ntp::udlc: yes
Disable execution of ntpdate on ntp server
Disable execution of ntpdate on ntp server Sometimes ntpdate to pool.ntp.org is keep on failing, which is causing the entire build failing, This patch is to disable ntpdate on local ntp server which should not cause any issues as other nodes are syncing the time from this server and until ntp server get the time from ...
YAML
apache-2.0
akash1808/puppet-rjil,rahul1aggarwal/puppet-rjil,upadhyay-prashant/puppet-rjil,JioCloud/puppet-rjil,JioCloud/puppet-rjil-keystone,rohit-k/puppet-rjil,rohit-k/puppet-rjil,jiocloudDSS/puppet-dss,rakeshmi/puppet-rjil,swamireddy/puppet-rjil,anshprat/puppet-rjil,roopali8/puppet-rjil,JioCloud/puppet-rjil-keystone,rakeshmi/pu...
yaml
## Code Before: rjil::jiocloud::consul_role: bootstrapserver # etcd serves as the ntp server rjil::system::ntp::server: true ntp::servers: "%{lookup_array('upstream_ntp_servers')}" ntp::udlc: yes ## Instruction: Disable execution of ntpdate on ntp server Sometimes ntpdate to pool.ntp.org is keep on failing, which is...
e449390926c5e7ad731036f2f691b9ccc80edc6c
compiler-plugin/src/main/scala/com/trueaccord/scalapb/compiler/ProtoValidation.scala
compiler-plugin/src/main/scala/com/trueaccord/scalapb/compiler/ProtoValidation.scala
package com.trueaccord.scalapb.compiler import com.google.protobuf.Descriptors._ import scala.collection.JavaConverters._ class ProtoValidation(val params: GeneratorParams) extends DescriptorPimps { val ForbiddenFieldNames = Set( "hashCode", "equals", "clone", "finalize", "getClass", "notify", "notifyAll", "toS...
package com.trueaccord.scalapb.compiler import com.google.protobuf.Descriptors._ import scala.collection.JavaConverters._ class ProtoValidation(val params: GeneratorParams) extends DescriptorPimps { val ForbiddenFieldNames = Set( "hashCode", "equals", "clone", "finalize", "getClass", "notify", "notifyAll", "toS...
Add reference to how to use custom names.
Add reference to how to use custom names.
Scala
apache-2.0
scalapb/ScalaPB,scalapb/ScalaPB,scalapb/ScalaPB,dotty-staging/ScalaPB,scalapb/ScalaPB,trueaccord/ScalaPB
scala
## Code Before: package com.trueaccord.scalapb.compiler import com.google.protobuf.Descriptors._ import scala.collection.JavaConverters._ class ProtoValidation(val params: GeneratorParams) extends DescriptorPimps { val ForbiddenFieldNames = Set( "hashCode", "equals", "clone", "finalize", "getClass", "notify", "...
970af68b59cb444fe28656cf5a9bde54fb9a5c19
src/main/scala-2.11/com/sageserpent/plutonium/AbstractPatch.scala
src/main/scala-2.11/com/sageserpent/plutonium/AbstractPatch.scala
package com.sageserpent.plutonium import java.lang.reflect.Method import scala.reflect.runtime.universe._ /** * Created by Gerard on 10/01/2016. */ object AbstractPatch { def patchesAreRelated(lhs: AbstractPatch[_], rhs: AbstractPatch[_]): Boolean = { val bothReferToTheSameItem = lhs.id == rhs...
package com.sageserpent.plutonium import java.lang.reflect.Method import scala.reflect.runtime.universe._ /** * Created by Gerard on 10/01/2016. */ object AbstractPatch { def patchesAreRelated(lhs: AbstractPatch[_], rhs: AbstractPatch[_]): Boolean = { val bothReferToTheSameItem = lhs.id == rhs...
Fix test breakage revealed by previous commit. All tests pass now.
Fix test breakage revealed by previous commit. All tests pass now.
Scala
mit
sageserpent-open/open-plutonium
scala
## Code Before: package com.sageserpent.plutonium import java.lang.reflect.Method import scala.reflect.runtime.universe._ /** * Created by Gerard on 10/01/2016. */ object AbstractPatch { def patchesAreRelated(lhs: AbstractPatch[_], rhs: AbstractPatch[_]): Boolean = { val bothReferToTheSameItem = lhs.id ==...
a88748469678a8fcacc1b11ffe18b6b1b65278e6
app/views/sermons/_most_recent.html.haml
app/views/sermons/_most_recent.html.haml
.section %h1 Latest Sermon %h3= @last_sermon.title %small= "#{@last_sermon.speaker} - #{@last_sermon.date_string} - #{@last_sermon.verses}" .sermon-audio-container = audio_tag @last_sermon.audio_file.url, controls: true, class: 'sermon-audio' %hr %ul.list-inline %li =link_to "Direct Link", @la...
.section %h1 Latest Sermon %h3= @last_sermon.title %small= "#{@last_sermon.speaker} - #{@last_sermon.date_string}" .sermon-audio-container = audio_tag @last_sermon.audio_file.url, controls: true, class: 'sermon-audio' %hr %ul.list-inline %li =link_to "Direct Link", @last_sermon %li =...
Remove verse ref from homepage sermon summary
Remove verse ref from homepage sermon summary The verse list could get long, or may be missing. Other times there may not be one central text, such that listing the verses wouldn't help much immediately with describing this content. Could work around to only show verses if present, only show primary verse reference, ...
Haml
mit
embell/CGBC-web,embell/CGBC-web,embell/CGBC-web
haml
## Code Before: .section %h1 Latest Sermon %h3= @last_sermon.title %small= "#{@last_sermon.speaker} - #{@last_sermon.date_string} - #{@last_sermon.verses}" .sermon-audio-container = audio_tag @last_sermon.audio_file.url, controls: true, class: 'sermon-audio' %hr %ul.list-inline %li =link_to "D...
a24469a92d187342ff3186d93d2af0a10d0237c9
recipes/sympy/meta.yaml
recipes/sympy/meta.yaml
{% set version="1.0" %} package: name: sympy version: {{ version }} source: fn: sympy-{{ version }}.tar.gz url: https://pypi.python.org/packages/source/s/sympy/sympy-{{ version }}.tar.gz md5: 43e797de799f00f9e8fd2307dba9fab1 build: number: 0 script: python setup.py install requirements: build: -...
{% set version = "1.1" %} package: name: sympy version: {{ version }} source: fn: sympy-{{ version }}.tar.gz url: https://pypi.io/packages/source/s/sympy/sympy-{{ version }}.tar.gz md5: e1b7a2b14066fc99c1cf22cedba56be8 build: number: 0 script: python setup.py install requirements: build: - fastc...
Update sympy recipe to version 1.1
Update sympy recipe to version 1.1
YAML
bsd-3-clause
jjhelmus/berryconda,jjhelmus/berryconda,jjhelmus/berryconda,jjhelmus/berryconda,jjhelmus/berryconda
yaml
## Code Before: {% set version="1.0" %} package: name: sympy version: {{ version }} source: fn: sympy-{{ version }}.tar.gz url: https://pypi.python.org/packages/source/s/sympy/sympy-{{ version }}.tar.gz md5: 43e797de799f00f9e8fd2307dba9fab1 build: number: 0 script: python setup.py install requirements...
56c798c98761c11e98875240d7df2bd46c9afdfe
circle.yml
circle.yml
machine: node: version: 4.4.5 dependencies: cache_directories: - /home/ubuntu/nvm/versions/node/v4.4.5/bin - /home/ubuntu/nvm/versions/node/v4.4.5/lib/node_modules - node_modules - bower_components override: - npm install -g bower - npm install --cache-min Infinity - bower install ...
machine: node: version: 4.4.5 dependencies: cache_directories: - /home/ubuntu/nvm/versions/node/v4.4.5/bin - /home/ubuntu/nvm/versions/node/v4.4.5/lib/node_modules - node_modules - bower_components override: - npm install -g bower - npm install - bower install - npm rebuild nod...
Revert "Circle CI script changes for faster build times"
Revert "Circle CI script changes for faster build times"
YAML
mit
jderr-mx/code-corps-ember,code-corps/code-corps-ember,jderr-mx/code-corps-ember,code-corps/code-corps-ember
yaml
## Code Before: machine: node: version: 4.4.5 dependencies: cache_directories: - /home/ubuntu/nvm/versions/node/v4.4.5/bin - /home/ubuntu/nvm/versions/node/v4.4.5/lib/node_modules - node_modules - bower_components override: - npm install -g bower - npm install --cache-min Infinity ...
07db4df0b7e928622a46cd50dae5034d283d2781
composer.json
composer.json
{ "name": "milsdev/sarcofag", "description": "Wordpress MU plugin which add to wp support for DI and MVC", "type": "wordpress-muplugin", "license": "GPL", "authors": [ { "name": "Mil's", "email": "hi@milsdev.com" } ], "minimum-stability": "dev", "r...
{ "name": "milsdev/sarcofag", "description": "Wordpress MU plugin which add to wp support for DI and MVC", "type": "wordpress-muplugin", "license": "GPL", "authors": [ { "name": "Mil's", "email": "hi@milsdev.com" } ], "require": { "composer/ins...
Add support for sarcofag to be installed in plugins dir.
Add support for sarcofag to be installed in plugins dir.
JSON
mit
milsdev/wordpress-plugin-sarcofag,milsdev/wordpress-plugin-sarcofag
json
## Code Before: { "name": "milsdev/sarcofag", "description": "Wordpress MU plugin which add to wp support for DI and MVC", "type": "wordpress-muplugin", "license": "GPL", "authors": [ { "name": "Mil's", "email": "hi@milsdev.com" } ], "minimum-stability...
2dccf1d9368e28d651f7a0aed6dd50171d90a456
api/app/views/spree/api/addresses/show.v1.rabl
api/app/views/spree/api/addresses/show.v1.rabl
object @address attributes :id, :firstname, :lastname, :address1, :address2, :city, :zipcode, :phone, :company, :alternative_phone, :country_id, :state_id, :state_name child(:country) do |address| attributes :id, :iso_name, :iso, :iso3, :name, :numcode end child(:state) do |address| ...
object @address attributes :id, :firstname, :lastname, :address1, :address2, :city, :zipcode, :phone, :company, :alternative_phone, :country_id, :state_id, :state_name child(:country) do |address| attributes *country_attributes end child(:state) do |address| attributes *state_attrib...
Clean up addresses show rabl
Clean up addresses show rabl
Ruby
bsd-3-clause
gautamsawhney/spree,lsirivong/spree,JuandGirald/spree,shioyama/spree,LBRapid/spree,surfdome/spree,builtbybuffalo/spree,JuandGirald/spree,brchristian/spree,pjmj777/spree,omarsar/spree,TrialGuides/spree,project-eutopia/spree,imella/spree,CiscoCloud/spree,Nevensoft/spree,reinaris/spree,karlitxo/spree,shekibobo/spree,priya...
ruby
## Code Before: object @address attributes :id, :firstname, :lastname, :address1, :address2, :city, :zipcode, :phone, :company, :alternative_phone, :country_id, :state_id, :state_name child(:country) do |address| attributes :id, :iso_name, :iso, :iso3, :name, :numcode end child(:state...
ca97517795ba44e89ef71cf08768e461a1c49581
tests/integration/files/file/base/ssh_state_tests.sls
tests/integration/files/file/base/ssh_state_tests.sls
ssh-file-test: file.managed: - name: /tmp/test - contents: 'test'
{% set jinja = 'test' %} ssh-file-test: file.managed: - name: /tmp/{{ jinja }} - contents: 'test'
Add jinja to ssh sls test file
Add jinja to ssh sls test file
SaltStack
apache-2.0
saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt
saltstack
## Code Before: ssh-file-test: file.managed: - name: /tmp/test - contents: 'test' ## Instruction: Add jinja to ssh sls test file ## Code After: {% set jinja = 'test' %} ssh-file-test: file.managed: - name: /tmp/{{ jinja }} - contents: 'test'
39fe09cf9cd85ad89af6c49d83ae9b84eabe6a53
src/server/controllers/userController.js
src/server/controllers/userController.js
const User = require('../../models/User'); const Elo = require('arpad'); function findUsersOfLeague(req, res) { User.findAll({ where: { league: req.params.league } }).then((data) => { console.log(data); res.json(data) }); } function findUser(req, res) { User.find({ where: { username: req.params.username...
const User = require('../../models/User'); const Elo = require('arpad'); function findUsersOfLeague(req, res) { User.findAll({ where: { league: req.params.league } }).then((data) => { console.log(data); res.json(data) }); } function findUser(req, res) { User.find({ where: { username: req.params.username...
Update elo in database on click
Update elo in database on click
JavaScript
apache-2.0
wdavew/king-pong
javascript
## Code Before: const User = require('../../models/User'); const Elo = require('arpad'); function findUsersOfLeague(req, res) { User.findAll({ where: { league: req.params.league } }).then((data) => { console.log(data); res.json(data) }); } function findUser(req, res) { User.find({ where: { username: req...
b5aa0b900c8de79ab6a567600551e7ec33f9993a
src/packages/collaboration/lib/session-utils.coffee
src/packages/collaboration/lib/session-utils.coffee
Peer = require './peer' Guid = require 'guid' module.exports = createPeer: -> id = Guid.create().toString() new Peer(id, host: 'ec2-54-218-51-127.us-west-2.compute.amazonaws.com', port: 8080) connectDocument: (doc, connection) -> doc.outputEvents.on 'changed', (event) -> console.log 'sending eve...
Peer = require './peer' Guid = require 'guid' module.exports = createPeer: -> id = Guid.create().toString() new Peer(id, host: 'ec2-54-218-51-127.us-west-2.compute.amazonaws.com', port: 8080) connectDocument: (doc, connection) -> outputListener = (event) -> console.log 'sending event', event ...
Remove output listener when connection is closed
Remove output listener when connection is closed
CoffeeScript
mit
gisenberg/atom,vhutheesing/atom,gzzhanghao/atom,basarat/atom,jtrose2/atom,sebmck/atom,rsvip/aTom,dannyflax/atom,mdumrauf/atom,dannyflax/atom,johnrizzo1/atom,medovob/atom,yalexx/atom,Jandersolutions/atom,mnquintana/atom,rsvip/aTom,dijs/atom,kdheepak89/atom,Abdillah/atom,johnhaley81/atom,AlisaKiatkongkumthon/atom,me6iato...
coffeescript
## Code Before: Peer = require './peer' Guid = require 'guid' module.exports = createPeer: -> id = Guid.create().toString() new Peer(id, host: 'ec2-54-218-51-127.us-west-2.compute.amazonaws.com', port: 8080) connectDocument: (doc, connection) -> doc.outputEvents.on 'changed', (event) -> console....