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
38fb348984b2bffed246dea6aee3c92d56cdfce5
src/Builder.php
src/Builder.php
<?php namespace GeneaLabs\LaravelModelCaching; use Closure; use Illuminate\Cache\TaggableStore; use Illuminate\Database\Eloquent\Builder as EloquentBuilder; class Builder extends EloquentBuilder { protected function eagerLoadRelation(array $models, $name, Closure $constraints) { $relation = $this->get...
<?php namespace GeneaLabs\LaravelModelCaching; use Closure; use Illuminate\Cache\TaggableStore; use Illuminate\Database\Eloquent\Builder as EloquentBuilder; use Illuminate\Database\Eloquent\Relations\Pivot; use Illuminate\Support\Collection; use Illuminate\Database\Eloquent\Relations\Relation; class Builder extends E...
Refactor builder method to cache relationships
Refactor builder method to cache relationships
PHP
mit
GeneaLabs/laravel-model-caching
php
## Code Before: <?php namespace GeneaLabs\LaravelModelCaching; use Closure; use Illuminate\Cache\TaggableStore; use Illuminate\Database\Eloquent\Builder as EloquentBuilder; class Builder extends EloquentBuilder { protected function eagerLoadRelation(array $models, $name, Closure $constraints) { $relat...
d459049d104fdcf08d176969f9ba448885fa51de
esigate42/src/main/webapp/index.jsp
esigate42/src/main/webapp/index.jsp
<%@taglib uri="http://www.sourceforge.net/webassembletool" prefix="w"%> <w:includeTemplate page="/templates/sparkle/index.html"> <html> <head> <w:includeParam name="title">ESIGate Test Example</w:includeParam> </head> <body> <w:includeParam name="colTwo"> <h2>Hello World</h2> <p>This is a simple de...
<%@taglib uri="http://www.sourceforge.net/webassembletool" prefix="w"%> <w:includeTemplate page="/templates/sparkle/index.html"> <html> <head> <w:includeParam name="title">ESIGate Test Example</w:includeParam> </head> <body> <w:includeParam name="colTwo"> <h2>Hello World</h2> <p>This is a simple de...
Include a remote block code
Include a remote block code
Java Server Pages
apache-2.0
thbaymet/esigate42
java-server-pages
## Code Before: <%@taglib uri="http://www.sourceforge.net/webassembletool" prefix="w"%> <w:includeTemplate page="/templates/sparkle/index.html"> <html> <head> <w:includeParam name="title">ESIGate Test Example</w:includeParam> </head> <body> <w:includeParam name="colTwo"> <h2>Hello World</h2> <p>Thi...
fab20ab4c0ea458531d5c893c37873a9b89641be
src/Models/PollQuestion.php
src/Models/PollQuestion.php
<?php namespace VoyagerPolls\Models; use Illuminate\Database\Eloquent\Model; class PollQuestion extends Model { protected $table = 'voyager_poll_questions'; protected $fillable = ['poll_id', 'question', 'order']; protected $appends = ['answered']; public function answers(){ return $this->hasMan...
<?php namespace VoyagerPolls\Models; use Illuminate\Database\Eloquent\Model; class PollQuestion extends Model { protected $table = 'voyager_poll_questions'; protected $fillable = ['poll_id', 'question', 'order']; protected $appends = ['answered']; public function answers(){ return $this->hasMan...
Fix relationship between question and poll.
Fix relationship between question and poll.
PHP
mit
thedevdojo/voyager-polls,thedevdojo/voyager-polls,thedevdojo/voyager-polls
php
## Code Before: <?php namespace VoyagerPolls\Models; use Illuminate\Database\Eloquent\Model; class PollQuestion extends Model { protected $table = 'voyager_poll_questions'; protected $fillable = ['poll_id', 'question', 'order']; protected $appends = ['answered']; public function answers(){ retu...
ba21db156c75bae9210b9bb90f35759790bf1d31
spec/runner.html
spec/runner.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>NoFlo in browser</title> <link rel="stylesheet" href="../node_modules/mocha/mocha.css"> <style type="text/css"> #fixtures { display: none; } </style> </head> <body> <div id="mocha"></div> <div id="fixtures"...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>NoFlo in browser</title> <link rel="stylesheet" href="../node_modules/mocha/mocha.css"> <style type="text/css"> #fixtures { display: none; } </style> </head> <body> <div id="mocha"></div> <div id="fixtures"...
Test journals on browser too
Test journals on browser too
HTML
mit
lxfschr/noflo,saurabhsood91/noflo,jonnor/noflo,lxfschr/noflo,noflo/noflo,npmcomponent/noflo-noflo,trustmaster/noflo,saurabhsood91/noflo,trustmaster/noflo,jonnor/noflo
html
## Code Before: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>NoFlo in browser</title> <link rel="stylesheet" href="../node_modules/mocha/mocha.css"> <style type="text/css"> #fixtures { display: none; } </style> </head> <body> <div id="mocha"></div> <d...
1f4550cfcd9075bdc793f60f667ebfb0cf14cb11
lib/pah/files/config/database.yml
lib/pah/files/config/database.yml
development: adapter: postgresql encoding: utf8 database: PROJECT_development pool: 5 username: postgres host: localhost template: template0 test: adapter: postgresql encoding: utf8 database: PROJECT_test pool: 5 username: postgres min_messages: WARNING host: localhost template: template0...
development: adapter: postgresql encoding: utf8 database: PROJECT_development pool: 5 username: postgres host: localhost template: template0 test: adapter: postgresql encoding: utf8 database: PROJECT_test pool: 5 username: postgres min_messages: WARNING host: localhost template: template0...
Add production url, to make the new app works correctly on heroku. Thanks @franciscomxs
Add production url, to make the new app works correctly on heroku. Thanks @franciscomxs
YAML
mit
Helabs/pah,ffscalco/pah,ffscalco/pah,Helabs/pah
yaml
## Code Before: development: adapter: postgresql encoding: utf8 database: PROJECT_development pool: 5 username: postgres host: localhost template: template0 test: adapter: postgresql encoding: utf8 database: PROJECT_test pool: 5 username: postgres min_messages: WARNING host: localhost tem...
560671921ac9063610cdf9ae551de3d63018b95b
app/src/lib/git/update-ref.ts
app/src/lib/git/update-ref.ts
import { git } from './core' import { Repository } from '../../models/repository' /** * Update the ref to a new value. * * @param repository - The repository in which the ref exists. * @param ref - The ref to update. Must be fully qualified * (e.g., `refs/heads/NAME`). * @param oldValu...
import { git } from './core' import { Repository } from '../../models/repository' /** * Update the ref to a new value. * * @param repository - The repository in which the ref exists. * @param ref - The ref to update. Must be fully qualified * (e.g., `refs/heads/NAME`). * @param oldValu...
Exit code will always be zero or it'll throw
Exit code will always be zero or it'll throw
TypeScript
mit
artivilla/desktop,say25/desktop,kactus-io/kactus,kactus-io/kactus,desktop/desktop,shiftkey/desktop,artivilla/desktop,desktop/desktop,kactus-io/kactus,j-f1/forked-desktop,j-f1/forked-desktop,j-f1/forked-desktop,kactus-io/kactus,shiftkey/desktop,artivilla/desktop,shiftkey/desktop,desktop/desktop,j-f1/forked-desktop,say25...
typescript
## Code Before: import { git } from './core' import { Repository } from '../../models/repository' /** * Update the ref to a new value. * * @param repository - The repository in which the ref exists. * @param ref - The ref to update. Must be fully qualified * (e.g., `refs/heads/NAME`). ...
9a344055fec21a3b02664d5fd5a935fba10366c6
app/views/welcome/index.html.erb
app/views/welcome/index.html.erb
<!-- Navigation --> <%= render :partial => 'navigation' %> <!-- Header --> <header id="top" class="header cover"> <%= render :partial => 'header' %> </header> <section class="whitespace"></section> <!-- School search results --> <section id="school-info-section" class="results-section cover"> <%= render :partial...
<!-- Navigation --> <%= render :partial => 'navigation' %> <!-- Header --> <header id="top" class="header cover"> <%= render :partial => 'header' %> </header> <section class="whitespace"></section> <!-- School search results --> <section id="school-info-section" class="results-section cover"> <%= render :partial...
Comment out some divs that create whitespace in index file
Comment out some divs that create whitespace in index file
HTML+ERB
mit
fma2/cfe-money,fma2/cfe-money,fma2/cfe-money
html+erb
## Code Before: <!-- Navigation --> <%= render :partial => 'navigation' %> <!-- Header --> <header id="top" class="header cover"> <%= render :partial => 'header' %> </header> <section class="whitespace"></section> <!-- School search results --> <section id="school-info-section" class="results-section cover"> <%=...
6b3fdb8c9b5bea403eb323951514f6607fc8ed67
chap02/build.sbt
chap02/build.sbt
name := "S4DS" organization := "s4ds" version := "0.1.0-SNAPSHOT" scalaVersion := "2.11.6" resolvers ++= Seq( "Sonatype OSS Releases" at "http://oss.sonatype.org/content/repositories/releases/", "Sonatype OSS Snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/" ) libraryDependencies ++= ...
name := "S4DS" organization := "s4ds" version := "0.1.0-SNAPSHOT" scalaVersion := "2.11.7" libraryDependencies ++= Seq( "org.scalanlp" %% "breeze" % "0.11.2", "org.scalanlp" %% "breeze-natives" % "0.11.2", "org.slf4j" % "slf4j-simple" % "1.7.5" )
Remove unnecessary resolvers and bump Scala version.
CHAP02: Remove unnecessary resolvers and bump Scala version.
Scala
apache-2.0
pbugnion/s4ds,pbugnion/s4ds,pbugnion/s4ds,pbugnion/s4ds
scala
## Code Before: name := "S4DS" organization := "s4ds" version := "0.1.0-SNAPSHOT" scalaVersion := "2.11.6" resolvers ++= Seq( "Sonatype OSS Releases" at "http://oss.sonatype.org/content/repositories/releases/", "Sonatype OSS Snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/" ) libraryD...
0668b59d8ec73e80976928706f96922605fe4f67
tsserver/models.py
tsserver/models.py
from tsserver import db from tsserver.dtutils import datetime_to_str class Telemetry(db.Model): """ All the data that is going to be obtained in regular time intervals (every second or so). """ id = db.Column(db.Integer, primary_key=True) timestamp = db.Column(db.DateTime) temperature = d...
from tsserver import db from tsserver.dtutils import datetime_to_str class Telemetry(db.Model): """ All the data that is going to be obtained in regular time intervals (every second or so). """ timestamp = db.Column(db.DateTime, primary_key=True) temperature = db.Column(db.Float) pressure...
Remove integer ID in Telemetry model
Remove integer ID in Telemetry model
Python
mit
m4tx/techswarm-server
python
## Code Before: from tsserver import db from tsserver.dtutils import datetime_to_str class Telemetry(db.Model): """ All the data that is going to be obtained in regular time intervals (every second or so). """ id = db.Column(db.Integer, primary_key=True) timestamp = db.Column(db.DateTime) ...
dd6884469b2b47b5eecd0349fd5e9c3e373f77b0
6.1.3.42/Dockerfile
6.1.3.42/Dockerfile
FROM debian:jessie MAINTAINER herloct <herloct@gmail.com> RUN apt-get update RUN apt-get install -y openjdk-7-jre-headless ruby unzip curl RUN useradd -ms /bin/bash sencha RUN cd && cp -R .bashrc .profile /home/sencha RUN mkdir -p /home/sencha/app ADD . /home/sencha/app RUN chown -R sencha:sencha /home/sencha USE...
FROM debian:jessie MAINTAINER herloct <herloct@gmail.com> RUN apt-get update && \ apt-get install -y \ curl \ openjdk-7-jre-headless \ ruby \ unzip RUN useradd -m sencha && \ cd && cp -R .bashrc .profile /home/sencha && \ mkdir -p /project && \ chown -R sencha:sencha /...
Simplify layers, use `/project` instead of `/home/sencha/app`, use VOLUME instead of ADD
Simplify layers, use `/project` instead of `/home/sencha/app`, use VOLUME instead of ADD
unknown
mit
herloct/docker-sencha-cmd
unknown
## Code Before: FROM debian:jessie MAINTAINER herloct <herloct@gmail.com> RUN apt-get update RUN apt-get install -y openjdk-7-jre-headless ruby unzip curl RUN useradd -ms /bin/bash sencha RUN cd && cp -R .bashrc .profile /home/sencha RUN mkdir -p /home/sencha/app ADD . /home/sencha/app RUN chown -R sencha:sencha /...
e9212c1b12613b67a8f8714ed4c2874fcbab8445
flags/sanitize_thread.cmake
flags/sanitize_thread.cmake
if(DEFINED POLLY_FLAGS_SANITIZE_THREAD_CMAKE_) return() else() set(POLLY_FLAGS_SANITIZE_THREAD_CMAKE_ 1) endif() include(polly_add_cache_flag) polly_add_cache_flag(CMAKE_CXX_FLAGS "-fsanitize=thread") polly_add_cache_flag(CMAKE_CXX_FLAGS "-fPIE") polly_add_cache_flag(CMAKE_CXX_FLAGS "-pie") polly_add_cache_flag(...
if(DEFINED POLLY_FLAGS_SANITIZE_THREAD_CMAKE_) return() else() set(POLLY_FLAGS_SANITIZE_THREAD_CMAKE_ 1) endif() include(polly_add_cache_flag) polly_add_cache_flag(CMAKE_CXX_FLAGS "-fsanitize=thread") polly_add_cache_flag(CMAKE_CXX_FLAGS "-g") polly_add_cache_flag(CMAKE_C_FLAGS "-fsanitize=thread") polly_add_ca...
Remove 'PIE' for Clang ThreadSanitizer
Remove 'PIE' for Clang ThreadSanitizer
CMake
bsd-2-clause
idscan/polly,idscan/polly
cmake
## Code Before: if(DEFINED POLLY_FLAGS_SANITIZE_THREAD_CMAKE_) return() else() set(POLLY_FLAGS_SANITIZE_THREAD_CMAKE_ 1) endif() include(polly_add_cache_flag) polly_add_cache_flag(CMAKE_CXX_FLAGS "-fsanitize=thread") polly_add_cache_flag(CMAKE_CXX_FLAGS "-fPIE") polly_add_cache_flag(CMAKE_CXX_FLAGS "-pie") polly...
684d1e6d4c2e11407ac0eb0333a89e1c4d50a058
app/assets/stylesheets/src_images.css.scss
app/assets/stylesheets/src_images.css.scss
// Place all the styles related to the SrcImages controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ .selected { background-color: #ffb700; } .input-prepend { margin-top: 10px; } .under-construction { color: #999; background-color...
$orange: #ffb700; $lightgrey: #f5f5f5; $darkgrey: #e3e3e3; .thumb-index .selected { background-color: $orange; } .input-prepend { margin-top: 10px; } .under-construction { color: #999; background-color: black; text-align: center; } .under-construction-icon { color: white; } #load-urls { width: 32em; ...
Change thumbnail index background and thumbnail selected color.
Change thumbnail index background and thumbnail selected color.
SCSS
mit
mmb/meme_captain_web,patrickmcguire/meme,mmb/meme_captain_web,mmb/meme_captain_web,mmb/meme_captain_web,patrickmcguire/meme
scss
## Code Before: // Place all the styles related to the SrcImages controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ .selected { background-color: #ffb700; } .input-prepend { margin-top: 10px; } .under-construction { color: #999; ...
5b07b5a7ee4c0e62c3667b8b251609ad9903254e
README.md
README.md
NRules is a production rules engine for .NET, based on the [Rete](http://www.wikipedia.org/wiki/Rete_algorithm) matching algorithm. ## Installing NRules First, [install NuGet](http://docs.nuget.org/docs/start-here/installing-nuget). Then, install NRules from the Package Manager Console: PM> Install-Package NRules...
NRules is a production rules engine for .NET, based on the [Rete](http://www.wikipedia.org/wiki/Rete_algorithm) matching algorithm. ## Installing NRules First, [install NuGet](http://docs.nuget.org/docs/start-here/installing-nuget). Then, install NRules from the Package Manager Console: PM> Install-Package NRules...
Fix links in the readme
Fix links in the readme
Markdown
mit
StanleyGoldman/NRules,StanleyGoldman/NRules,NRules/NRules,prashanthr/NRules
markdown
## Code Before: NRules is a production rules engine for .NET, based on the [Rete](http://www.wikipedia.org/wiki/Rete_algorithm) matching algorithm. ## Installing NRules First, [install NuGet](http://docs.nuget.org/docs/start-here/installing-nuget). Then, install NRules from the Package Manager Console: PM> Instal...
7e22f75e736289f71fddb73e22998c7a2369c8fb
common/patches.rb
common/patches.rb
class Array def find_property(property, value) find { |e| e[property.to_s] && e[property.to_s] == value } end end
class Array def find_property(property, value) find { |e| e.send(property) == value } end end
Fix the find_property patch to work for objects and not just hashes
Fix the find_property patch to work for objects and not just hashes
Ruby
apache-2.0
meew0/l-
ruby
## Code Before: class Array def find_property(property, value) find { |e| e[property.to_s] && e[property.to_s] == value } end end ## Instruction: Fix the find_property patch to work for objects and not just hashes ## Code After: class Array def find_property(property, value) find { |e| e.send(property) =...
bb077319a0ff4007ead81bdcd92c3174692f5bd5
.travis.yml
.travis.yml
dist: trusty sudo: false language: cpp addons: apt: sources: - ubuntu-toolchain-r-test packages: - g++-7 script: - /usr/bin/g++-7 -dumpfullversion - make clean all V=1 CXX=/usr/bin/g++-7 CC=/usr/bin/gcc-7 - for i in bin/*; do ${i}; done
dist: trusty sudo: false language: cpp addons: apt: sources: - ubuntu-toolchain-r-test packages: - g++-7 - cppcheck script: - /usr/bin/g++-7 -dumpfullversion - make clean all V=1 CXX=/usr/bin/g++-7 CC=/usr/bin/gcc-7 - for i in bin/*; do ${i}; done
Install Cppcheck on Travis CI.
Install Cppcheck on Travis CI. tab
YAML
mit
mpoullet/cpp-snippets,mpoullet/cpp-snippets
yaml
## Code Before: dist: trusty sudo: false language: cpp addons: apt: sources: - ubuntu-toolchain-r-test packages: - g++-7 script: - /usr/bin/g++-7 -dumpfullversion - make clean all V=1 CXX=/usr/bin/g++-7 CC=/usr/bin/gcc-7 - for i in bin/*; do ${i}; done ## Instruction: Install Cppcheck on ...
85205ec6e05db9ddc6a44699d541dabbd538dfad
src/test/scala/bio/db/fasta/fastareader_spec.scala
src/test/scala/bio/db/fasta/fastareader_spec.scala
import bio._ import org.scalatest.FlatSpec import org.scalatest.matchers.ShouldMatchers package bio.test { class FastaReaderSpec extends FlatSpec with ShouldMatchers { "FastaReader" should "read from file" in { val f = new FastaReader("./test/data/fasta/nt.fa") val ids = f.map { res => val...
import bio._ import org.scalatest.FlatSpec import org.scalatest.matchers.ShouldMatchers package bio.test { class FastaReaderSpec extends FlatSpec with ShouldMatchers { "FastaReader" should "read from file" in { val f = new FastaReader("./test/data/fasta/nt.fa") val ids = f.map { res => val...
Read FASTA into IUPACSequence works fine
Read FASTA into IUPACSequence works fine
Scala
bsd-2-clause
shamim8888/bioscala,shamim8888/bioscala,bioscala/bioscala,bioscala/bioscala
scala
## Code Before: import bio._ import org.scalatest.FlatSpec import org.scalatest.matchers.ShouldMatchers package bio.test { class FastaReaderSpec extends FlatSpec with ShouldMatchers { "FastaReader" should "read from file" in { val f = new FastaReader("./test/data/fasta/nt.fa") val ids = f.map { res...
2134ef5591fc3c4f8d2fa57dc0e9a3e5e53837e4
src/business/UsersService.js
src/business/UsersService.js
'use strict'; const bcrypt = require('bcrypt-nodejs'); class UsersService { constructor(options, usersRepository) { const self = this; self._options = options; self.usersRepository = usersRepository; } getUserById(id, callback) { const self = this; self.usersRepository.findUserById(id, call...
'use strict'; const bcrypt = require('bcrypt-nodejs'); class UsersService { constructor(options, usersRepository) { const self = this; self._options = options; self.usersRepository = usersRepository; } getUserById(id, callback) { const self = this; self.usersRepository.findUserById(id, call...
Set user service to always create a display name if one is not supplied
Set user service to always create a display name if one is not supplied
JavaScript
mit
andrewaramsay/aramsay-server
javascript
## Code Before: 'use strict'; const bcrypt = require('bcrypt-nodejs'); class UsersService { constructor(options, usersRepository) { const self = this; self._options = options; self.usersRepository = usersRepository; } getUserById(id, callback) { const self = this; self.usersRepository.findU...
a7c1a438b431d5d97ca89121575a5de33221f064
test/org/zalando/stups/friboo/system/cron_test.clj
test/org/zalando/stups/friboo/system/cron_test.clj
(ns org.zalando.stups.friboo.system.cron-test (:require [org.zalando.stups.friboo.system.cron :refer :all] [clojure.test :refer :all] [overtone.at-at :as at] [com.stuartsierra.component :as component])) (def-cron-component TestCron [state] (at/at (at/now) (job deliver state 42) ...
(ns org.zalando.stups.friboo.system.cron-test (:require [org.zalando.stups.friboo.system.cron :refer :all] [clojure.test :refer :all] [overtone.at-at :as at] [com.stuartsierra.component :as component])) (def-cron-component TestCron [state] (at/at (at/now) (job deliver state 42) ...
Fix race condition in unit test
Fix race condition in unit test Multithreading is tricky... :/
Clojure
apache-2.0
zalando-stups/friboo,zalando-stups/friboo,zalando-stups/friboo
clojure
## Code Before: (ns org.zalando.stups.friboo.system.cron-test (:require [org.zalando.stups.friboo.system.cron :refer :all] [clojure.test :refer :all] [overtone.at-at :as at] [com.stuartsierra.component :as component])) (def-cron-component TestCron [state] (at/at (at/now) (job de...
a410bfe7be49c8c2e879685a5dea6d60110d7b73
package.json
package.json
{ "name": "tempoiq", "description": "TempoIQ HTTP NodeJS Client", "version": "1.0.1", "author": "TempoIQ Tech <software@tempoiq.com>", "keywords": ["tempoiq", "time-series", "database"], "main": "lib/tempoiq.js", "devDependencies": { "mocha": "1.21.4" }, "scripts": { "test": "mocha" }, "re...
{ "name": "tempoiq", "description": "TempoIQ HTTP NodeJS Client", "version": "1.0.1", "author": "TempoIQ <support@tempoiq.com>", "keywords": ["tempoiq", "time-series", "database"], "main": "lib/tempoiq.js", "devDependencies": { "mocha": "1.21.4" }, "scripts": { "test": "mocha" }, "reposito...
Update contact email to support@
Update contact email to support@
JSON
mit
meshulam/tempoiq-node-js,TempoIQ/tempoiq-node-js
json
## Code Before: { "name": "tempoiq", "description": "TempoIQ HTTP NodeJS Client", "version": "1.0.1", "author": "TempoIQ Tech <software@tempoiq.com>", "keywords": ["tempoiq", "time-series", "database"], "main": "lib/tempoiq.js", "devDependencies": { "mocha": "1.21.4" }, "scripts": { "test": "m...
74a023de9af71822ac565ce384a496c3f50c2ffa
server/models/Category/utils.js
server/models/Category/utils.js
function generateTree(dataArr, root) { let subTree, directChildren, subDataArr; let { name, id, articlesCount } = root; if (dataArr.length === 0) { return { id, name, articlesCount, subCategories: [] }; } directChildren = dataArr.filter...
function generateTree(dataArr, root) { let subTree, directChildren, subDataArr; let { name, id, articlesCount } = root; if (Object.keys(root).length === 0) { return {}; } if (dataArr.length === 0) { return { id, name, articlesCount, sub...
Enhance generateTree function by adding edge condition for root
Enhance generateTree function by adding edge condition for root
JavaScript
mit
armaniExchange/work-genius,armaniExchange/work-genius,armaniExchange/work-genius
javascript
## Code Before: function generateTree(dataArr, root) { let subTree, directChildren, subDataArr; let { name, id, articlesCount } = root; if (dataArr.length === 0) { return { id, name, articlesCount, subCategories: [] }; } directChildren ...
7cd44c5bf480db537c76c3b06f09e83674623261
test/fixtures/with-directory.js
test/fixtures/with-directory.js
import tempy from 'tempy' import fs from 'fs-extra' export default function (test) { test.beforeEach(async (t) => { const directory = tempy.directory() await fs.ensureDir(directory) Object.assign(t.context, {directory}) }) test.afterEach.always(async (t) => { const {directory} = t.context aw...
import {temporaryDirectory} from 'tempy' import fs from 'fs-extra' export default function (test) { test.beforeEach(async (t) => { const directory = temporaryDirectory() await fs.ensureDir(directory) Object.assign(t.context, {directory}) }) test.afterEach.always(async (t) => { const {directory} ...
Fix breaking usages of an updated version of tempy
test(withDirectory): Fix breaking usages of an updated version of tempy
JavaScript
mit
vinsonchuong/create-npm
javascript
## Code Before: import tempy from 'tempy' import fs from 'fs-extra' export default function (test) { test.beforeEach(async (t) => { const directory = tempy.directory() await fs.ensureDir(directory) Object.assign(t.context, {directory}) }) test.afterEach.always(async (t) => { const {directory} = ...
d75742c0e5bc8059de5081076ab99bd4d5258d55
CHANGELOG.md
CHANGELOG.md
v1.0.0 / 2015-04-15 ------------------- * Initial release v1.0.1 / 2015-04-17 ------------------- * Fix crashes in go-jsonselect triggered with e.g. `rsc --x1 ':root ~ .name' ...` v1.0.2 / 2015-04-19 ------------------- * Update README, add basic example documentation * Fix `CloudSpecificAttributes` and `DatacenterPo...
v1.0.0 / 2015-04-15 ------------------- * Initial release v1.0.1 / 2015-04-17 ------------------- * Fix crashes in go-jsonselect triggered with e.g. `rsc --x1 ':root ~ .name' ...` v1.0.2 / 2015-04-19 ------------------- * Update README, add basic example documentation * Fix `CloudSpecificAttributes` and `DatacenterPo...
Update changelog for 1.0.5 release
Update changelog for 1.0.5 release
Markdown
mit
rightscale/rsc,rightscale/rsc,manuelfelipe/rsc,rgeyer/rsc,manuelfelipe/rsc,lopaka/rsc,dylanmei/rsc,rightscale/rsc,rgeyer/rsc,dylanmei/rsc,lopaka/rsc,lopaka/rsc,lopaka/rsc,dylanmei/rsc,rgeyer/rsc,rgeyer/rsc,rightscale/rsc,rgeyer/rsc,rightscale/rsc,manuelfelipe/rsc,dylanmei/rsc,dylanmei/rsc,manuelfelipe/rsc,lopaka/rsc,ma...
markdown
## Code Before: v1.0.0 / 2015-04-15 ------------------- * Initial release v1.0.1 / 2015-04-17 ------------------- * Fix crashes in go-jsonselect triggered with e.g. `rsc --x1 ':root ~ .name' ...` v1.0.2 / 2015-04-19 ------------------- * Update README, add basic example documentation * Fix `CloudSpecificAttributes` a...
b5853f2a385e88bc345796e9a3b078a3daaa10af
metadata/dmusiolik.pijaret.txt
metadata/dmusiolik.pijaret.txt
Categories:System,Security,Connectivity License:GPLv3 Web Site: Source Code:https://github.com/MrFlyingToasterman/Pijaret Issue Tracker:https://github.com/MrFlyingToasterman/Pijaret/issues Auto Name:Pijaret Summary:Encrypt text by rotation Description: Pijaret is just another rotation encryption tool. The main purpose...
Categories:System,Security,Connectivity License:GPLv3 Web Site: Source Code:https://github.com/MrFlyingToasterman/Pijaret Issue Tracker:https://github.com/MrFlyingToasterman/Pijaret/issues Auto Name:Pijaret Summary:Encrypt text by rotation Description: Pijaret is just another rotation encryption tool. The main purpose...
Update Pijaret to 1.4 (4)
Update Pijaret to 1.4 (4)
Text
agpl-3.0
f-droid/fdroiddata,f-droid/fdroid-data,f-droid/fdroiddata
text
## Code Before: Categories:System,Security,Connectivity License:GPLv3 Web Site: Source Code:https://github.com/MrFlyingToasterman/Pijaret Issue Tracker:https://github.com/MrFlyingToasterman/Pijaret/issues Auto Name:Pijaret Summary:Encrypt text by rotation Description: Pijaret is just another rotation encryption tool. ...
5fce7ac8e773a13b9b944a9bd31e24a4d48b6832
src/main/java/info/u_team/u_team_core/item/tool/ToolSet.java
src/main/java/info/u_team/u_team_core/item/tool/ToolSet.java
package info.u_team.u_team_core.item.tool; import info.u_team.u_team_core.api.registry.IUArrayRegistryType; import net.minecraft.item.Item; public class ToolSet implements IUArrayRegistryType<Item> { private final UAxeItem axe; private final UHoeItem hoe; private final UPickaxeItem pickaxe; private final UShove...
package info.u_team.u_team_core.item.tool; import info.u_team.u_team_core.api.registry.IUArrayRegistryType; import net.minecraft.item.Item; public class ToolSet implements IUArrayRegistryType<Item> { private final UAxeItem axe; private final UHoeItem hoe; private final UPickaxeItem pickaxe; private final UShove...
Rename all spade variable names to shovel variable names
Rename all spade variable names to shovel variable names
Java
apache-2.0
MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core
java
## Code Before: package info.u_team.u_team_core.item.tool; import info.u_team.u_team_core.api.registry.IUArrayRegistryType; import net.minecraft.item.Item; public class ToolSet implements IUArrayRegistryType<Item> { private final UAxeItem axe; private final UHoeItem hoe; private final UPickaxeItem pickaxe; priv...
d100b2fc59dd771c942b6feacdbef7cad886953d
lib/travis/model/remote_log.rb
lib/travis/model/remote_log.rb
require 'virtus' class RemoteLog include Virtus.model(nullify_blank: true) attribute :aggregated_at, Time attribute :archive_verified, Boolean, default: false attribute :archived_at, Time attribute :archiving, Boolean, default: false attribute :content, String attribute :created_at, Time attribute :id...
require 'virtus' class RemoteLog include Virtus.model(nullify_blank: true) attribute :aggregated_at, Time attribute :archive_verified, Boolean, default: false attribute :archived_at, Time attribute :archiving, Boolean, default: false attribute :content, String attribute :created_at, Time attribute :id...
Break early when no user id is present; slice attributes with symbols
Break early when no user id is present; slice attributes with symbols
Ruby
mit
travis-ci/travis-api,travis-ci/travis-api,travis-ci/travis-api
ruby
## Code Before: require 'virtus' class RemoteLog include Virtus.model(nullify_blank: true) attribute :aggregated_at, Time attribute :archive_verified, Boolean, default: false attribute :archived_at, Time attribute :archiving, Boolean, default: false attribute :content, String attribute :created_at, Time...
94483acbe5b7c6fcaa293c5bd4e9f47fa5c76776
README.md
README.md
Web based tool to label images for object. So that they can be used to train dlib or other object detectors. # How to use You can either import a file from a URL or from your computer. You can plot the landmark points by yourself or you can request to face++ API to collect the points which gets automatically plotted ...
Web based tool to label images for object. So that they can be used to train dlib or other object detectors. # How to use You can either import a file from a URL or from your computer. You can plot the landmark points by yourself or you can request to face++ API to collect the points which gets automatically plotted ...
Update Read Me for TO DO
Update Read Me for TO DO
Markdown
mit
NaturalIntelligence/imglab,NaturalIntelligence/imglab
markdown
## Code Before: Web based tool to label images for object. So that they can be used to train dlib or other object detectors. # How to use You can either import a file from a URL or from your computer. You can plot the landmark points by yourself or you can request to face++ API to collect the points which gets automa...
554cd0852818c527bc81a725405c4e06d99804e9
Gruntfile.js
Gruntfile.js
'use strict'; module.exports = function (grunt) { // Show elapsed time at the end require('time-grunt')(grunt); // Load all grunt tasks require('load-grunt-tasks')(grunt); // Project configuration. grunt.initConfig({ jshint: { options: { jshintrc: '.jshintrc', reporter: require('...
'use strict'; module.exports = function (grunt) { // Show elapsed time at the end require('time-grunt')(grunt); // Load all grunt tasks require('load-grunt-tasks')(grunt); // Project configuration. grunt.initConfig({ jshint: { options: { jshintrc: '.jshintrc', reporter: require('...
Set mocha tests timeout to 5s.
Set mocha tests timeout to 5s.
JavaScript
mit
cladera/orm-wrapper
javascript
## Code Before: 'use strict'; module.exports = function (grunt) { // Show elapsed time at the end require('time-grunt')(grunt); // Load all grunt tasks require('load-grunt-tasks')(grunt); // Project configuration. grunt.initConfig({ jshint: { options: { jshintrc: '.jshintrc', rep...
c44e241381917739e6ac6e6a22bd4a6c6611cd90
lib/rspec/templates/example_group_template.erb
lib/rspec/templates/example_group_template.erb
describe '<%= resource.uri_partial %>' do let(:route) { '<%= resource.uri_partial %>' } <% resource.methods.each do |method| %> describe '<%= method.method.upcase %>' do it '<%= method.description.downcase %>' do end it 'returns status <%= method.responses.first.code %>' do end ...
describe '<%= resource.uri_partial %>' do let(:route) { '<%= resource.uri_partial %>' } <% resource.methods.each do |method| %> describe '<%= method.method.upcase %>' do let(:response_body) do <%= method.responses.first.bodies.first %>.to_json end it '<%= method.description.down...
Add response body to spec
Add response body to spec
HTML+ERB
mit
danascheider/rambo,danascheider/rambo
html+erb
## Code Before: describe '<%= resource.uri_partial %>' do let(:route) { '<%= resource.uri_partial %>' } <% resource.methods.each do |method| %> describe '<%= method.method.upcase %>' do it '<%= method.description.downcase %>' do end it 'returns status <%= method.responses.first.code %>'...
3de053cb83ccdc934f19ab4e4985b4888983624a
.travis.yml
.travis.yml
language: node_js node_js: - "0.10" before_install: cd cordova-lib
language: node_js git: depth: 10 node_js: - "0.10" before_install: cd cordova-lib
Set git clone depth to 10 for Travis to make it faster
Set git clone depth to 10 for Travis to make it faster Some background: http://blogs.atlassian.com/2014/05/handle-big-repositories-git/ Suggested in https://github.com/apache/cordova-lib/pull/72 github: close #72
YAML
apache-2.0
surajpindoria/cordova-lib,phonegap-build/cordova-lib,timwindsor/cordova-lib,shazron/cordova-lib,gorkem/cordova-lib,ogoguel/cordova-lib,alsorokin/cordova-lib,purplecabbage/cordova-lib,shazron/cordova-lib,AxelNennker/cordova-lib,matrosov-nikita/cordova-lib,jasongin/cordova-lib,abstractj/cordova-lib,gorkem/cordova-lib,ton...
yaml
## Code Before: language: node_js node_js: - "0.10" before_install: cd cordova-lib ## Instruction: Set git clone depth to 10 for Travis to make it faster Some background: http://blogs.atlassian.com/2014/05/handle-big-repositories-git/ Suggested in https://github.com/apache/cordova-lib/pull/72 github: close #72 ## ...
349225aa1759ec10fad847be1e93df06e65a2ef9
app/views/events/_form.html.erb
app/views/events/_form.html.erb
<%= form_for @event, html: {class: 'row'} do |f| %> <div class="event-form-inputs col-sm-9"> <div class="form-group"> <%= f.label :activity_id %> <%= f.select :activity_id, options_from_collection_for_select(@activities, :id, :name, f.object.activity_id), {}, class: 'form-control' %> </div> <...
<%= form_for @event, html: {class: 'row'} do |f| %> <div class="event-form-inputs col-sm-9"> <div class="form-group"> <%= f.label :activity_id %> <%= f.select :activity_id, options_from_collection_for_select(@activities, :id, :name, f.object.activity_id), {}, class: 'form-control' %> </div> <...
Swap Save/Close buttons for clarity
Swap Save/Close buttons for clarity
HTML+ERB
mit
dncrht/mical,dncrht/mical,dncrht/mical,dncrht/mical
html+erb
## Code Before: <%= form_for @event, html: {class: 'row'} do |f| %> <div class="event-form-inputs col-sm-9"> <div class="form-group"> <%= f.label :activity_id %> <%= f.select :activity_id, options_from_collection_for_select(@activities, :id, :name, f.object.activity_id), {}, class: 'form-control' %> ...
87b8ed1107c0658711043b681f350aef7f08cec9
README.md
README.md
PHPUnit Notifier ================ ![Demo](http://i.imgur.com/XvDBg1c.gif) Use [composer](http://getcomposer.org/) to install on your project: ```shell $ composer require --dev "mdarse/phpunit-notifier" ``` To set up, just register `PHPUnitNotifier\NotifierListener` in the listeners section of you `phpunit.xml`. Exa...
PHPUnit Notifier ================ ![Demo](http://i.imgur.com/XvDBg1c.gif) Use [composer](http://getcomposer.org/) to install on your project: ```shell $ composer require --dev "mdarse/phpunit-notifier" ``` To set up, just register `PHPUnitNotifier\NotifierListener` in the listeners section of you `phpunit.xml`. Exa...
Add info to define notifier globally
Add info to define notifier globally
Markdown
mit
mdarse/phpunit-notifier
markdown
## Code Before: PHPUnit Notifier ================ ![Demo](http://i.imgur.com/XvDBg1c.gif) Use [composer](http://getcomposer.org/) to install on your project: ```shell $ composer require --dev "mdarse/phpunit-notifier" ``` To set up, just register `PHPUnitNotifier\NotifierListener` in the listeners section of you `ph...
663077e1fa11bdd1b351c673a36b184332348759
README.md
README.md
To be done ## FAQs To be done
``` $ npm install --save node-secure-password ``` ## Why do I need this? A lot of things can go wrong when it comes to permanently storing user passwords. To protect your user's data you should never store their passwords in plain text but instead use a hash function to store an irreversibly literal generated from y...
Add new paragraph to readme
Add new paragraph to readme
Markdown
mit
treylon/node-secure-password
markdown
## Code Before: To be done ## FAQs To be done ## Instruction: Add new paragraph to readme ## Code After: ``` $ npm install --save node-secure-password ``` ## Why do I need this? A lot of things can go wrong when it comes to permanently storing user passwords. To protect your user's data you should never store thei...
2d9fce5715b2d7d5b920d2e77212f076e9ebd1be
staticgen_demo/staticgen_views.py
staticgen_demo/staticgen_views.py
from __future__ import unicode_literals from staticgen.staticgen_pool import staticgen_pool from staticgen.staticgen_views import StaticgenView class StaicgenDemoStaticViews(StaticgenView): def items(self): return ( 'sitemap.xml', 'robots.txt', 'page_not_found', ...
from __future__ import unicode_literals from django.conf import settings from django.utils import translation from staticgen.staticgen_pool import staticgen_pool from staticgen.staticgen_views import StaticgenView class StaicgenDemoStaticViews(StaticgenView): def items(self): return ( 'sit...
Add CMS Pages to staticgen registry.
Add CMS Pages to staticgen registry.
Python
bsd-3-clause
mishbahr/staticgen-demo,mishbahr/staticgen-demo,mishbahr/staticgen-demo
python
## Code Before: from __future__ import unicode_literals from staticgen.staticgen_pool import staticgen_pool from staticgen.staticgen_views import StaticgenView class StaicgenDemoStaticViews(StaticgenView): def items(self): return ( 'sitemap.xml', 'robots.txt', 'page_...
f9a134b6e4a6c8fc94e377a8f3af1761645a4569
src/interfaces/ecpg/include/pgtypes_timestamp.h
src/interfaces/ecpg/include/pgtypes_timestamp.h
typedef int64 timestamp; typedef int64 TimestampTz; #else typedef double timestamp; typedef double TimestampTz; #endif #ifdef __cplusplus extern "C" { #endif extern timestamp PGTYPEStimestamp_from_asc(char *, char **); extern char *PGTYPEStimestamp_to_asc(timestamp); extern int PGTYPEStimestamp_sub(timestamp *, tim...
typedef int64 timestamp; typedef int64 TimestampTz; #else typedef double timestamp; typedef double TimestampTz; #endif #ifdef __cplusplus extern "C" { #endif extern timestamp PGTYPEStimestamp_from_asc(char *, char **); extern char *PGTYPEStimestamp_to_asc(timestamp); extern int PGTYPEStimestamp_sub(timestamp *, tim...
Add missing ecpg prototype for newly added functions.
Add missing ecpg prototype for newly added functions.
C
apache-2.0
kaknikhil/gpdb,Chibin/gpdb,Chibin/gpdb,kaknikhil/gpdb,rubikloud/gpdb,lisakowen/gpdb,kaknikhil/gpdb,adam8157/gpdb,arcivanov/postgres-xl,randomtask1155/gpdb,janebeckman/gpdb,foyzur/gpdb,rubikloud/gpdb,jmcatamney/gpdb,janebeckman/gpdb,yuanzhao/gpdb,xuegang/gpdb,ashwinstar/gpdb,Quikling/gpdb,pavanvd/postgres-xl,rvs/gpdb,li...
c
## Code Before: typedef int64 timestamp; typedef int64 TimestampTz; #else typedef double timestamp; typedef double TimestampTz; #endif #ifdef __cplusplus extern "C" { #endif extern timestamp PGTYPEStimestamp_from_asc(char *, char **); extern char *PGTYPEStimestamp_to_asc(timestamp); extern int PGTYPEStimestamp_sub(...
5ecb6e7c56aa12019c4ca2c47bdd87c49981ad78
setup.py
setup.py
from setuptools import setup, find_packages install_requires=['django>=1.5', 'django-easysettings', 'pytz'] try: import importlib except ImportError: install_requires.append('importlib') setup( name='django-password-policies', version=__import__('password_policies').__version__, description='A D...
from setuptools import setup, find_packages install_requires=['django>=1.5', 'django-easysettings', 'pytz'] try: import importlib except ImportError: install_requires.append('importlib') setup( name='django-password-policies', version=__import__('password_policies').__version__, description='A D...
Add the Language classifiers for 3.x and 2.x
Add the Language classifiers for 3.x and 2.x
Python
bsd-3-clause
tarak/django-password-policies,tarak/django-password-policies
python
## Code Before: from setuptools import setup, find_packages install_requires=['django>=1.5', 'django-easysettings', 'pytz'] try: import importlib except ImportError: install_requires.append('importlib') setup( name='django-password-policies', version=__import__('password_policies').__version__, ...
869d096f659a70c1c0df21e067b6ea346e1ca655
compute_engine_scripts/ct_master/install.sh
compute_engine_scripts/ct_master/install.sh
set -x # Create required dirs. mkdir --parents /b/skia-repo/ mkdir --parents /b/storage/ # Add env vars to ~/.bashrc echo 'export GOROOT=/usr/lib/go' >> ~/.bashrc echo 'export GOPATH=/b/skia-repo/go/' >> ~/.bashrc echo 'export PATH=$GOPATH/bin:$PATH' >> ~/.bashrc source ~/.bashrc # Install necessary packages. sudo a...
set -x # Create required dirs. mkdir --parents /b/skia-repo/ mkdir --parents /b/storage/ # Add env vars to ~/.bashrc echo 'export GOROOT=/usr/local/go' >> ~/.bashrc echo 'export GOPATH=/b/skia-repo/go/' >> ~/.bashrc echo 'export PATH=$GOPATH/bin:$PATH' >> ~/.bashrc source ~/.bashrc # Install necessary packages. sudo...
Install golang 1.8 on skia-ct-master
Install golang 1.8 on skia-ct-master BUG=skia:6700 Change-Id: Idb0e35b68616be8d2b5d941af47da157f1d5785b Reviewed-on: https://skia-review.googlesource.com/18139 Reviewed-by: Ben Wagner <3ef7217be91069877d94f7907ce5479000772cd3@google.com>
Shell
bsd-3-clause
google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot
shell
## Code Before: set -x # Create required dirs. mkdir --parents /b/skia-repo/ mkdir --parents /b/storage/ # Add env vars to ~/.bashrc echo 'export GOROOT=/usr/lib/go' >> ~/.bashrc echo 'export GOPATH=/b/skia-repo/go/' >> ~/.bashrc echo 'export PATH=$GOPATH/bin:$PATH' >> ~/.bashrc source ~/.bashrc # Install necessary ...
bd0b983eeb44927e1334816d282d897a9e31444e
app/views/platforms/index.html.slim
app/views/platforms/index.html.slim
.container .platforms - @platforms.each do |platform| .platform h3 = link_to platform.name, platform_path(platform) div .info span Last Activity div = timeago_tag platform.traces.order(:created_at).last.created_at .info ...
.container .platforms - @platforms.each do |platform| .platform h3 = link_to platform.name, platform_path(platform) div .info span Last Activity div - if platform.traces.any? = timeago_tag platform.traces.order(:create...
Fix index view when no traces exist
Fix index view when no traces exist
Slim
agpl-3.0
jgraichen/mnemosyne-server,jgraichen/mnemosyne-server,jgraichen/mnemosyne-server
slim
## Code Before: .container .platforms - @platforms.each do |platform| .platform h3 = link_to platform.name, platform_path(platform) div .info span Last Activity div = timeago_tag platform.traces.order(:created_at).last.created_at ...
fd7c53dffb3670826479c830e262ca27f2f3debc
polyfills/setImmediate/config.json
polyfills/setImmediate/config.json
{ "browsers": { "chrome": "*", "firefox": "*", "opera": "*", "safari": "*", "ie": "* - 9", "ios_saf": "*", "ios_chr": "*", "android": "*", "op_mob": "*", "ie_mob": "*", "firefox_mob": "*" }, "docs": "https://developer.mozilla.org/en-US/docs/Web/API/Window/setImmediate", "repo": "https://github...
{ "browsers": { "chrome": "<= 31", "firefox": "<= 28", "opera": "<= 19", "safari": "<= 7", "ie": "*", "ios_saf": "<= 7.1", "ios_chr": "<= 7.1", "android": "<= 4.4", "op_mob": "*", "ie_mob": "*", "firefox_mob": "<= 28", "bb": "<= 10", "op_mini": "*" }, "docs": "https://developer.mozilla.org/...
Add ranges for every browser version which does not have Promise natively.
Add ranges for every browser version which does not have Promise natively.
JSON
mit
mcshaz/polyfill-service,kdzwinel/polyfill-service,mcshaz/polyfill-service,JakeChampion/polyfill-service,mcshaz/polyfill-service,JakeChampion/polyfill-service,kdzwinel/polyfill-service,jonathan-fielding/polyfill-service,jonathan-fielding/polyfill-service,jonathan-fielding/polyfill-service,kdzwinel/polyfill-service
json
## Code Before: { "browsers": { "chrome": "*", "firefox": "*", "opera": "*", "safari": "*", "ie": "* - 9", "ios_saf": "*", "ios_chr": "*", "android": "*", "op_mob": "*", "ie_mob": "*", "firefox_mob": "*" }, "docs": "https://developer.mozilla.org/en-US/docs/Web/API/Window/setImmediate", "repo":...
003a099a4fb114985327b48fce62d2d16e83c81d
lib/title.rb
lib/title.rb
require 'title/version' require 'rails/engine' require 'title/engine' require 'helpers/title/title_helper' module Title # Your code goes here... end
app = File.expand_path('../../app', __FILE__) $LOAD_PATH.unshift(app) unless $LOAD_PATH.include?(app) require 'title/version' require 'rails/engine' require 'title/engine' require 'helpers/title/title_helper' module Title # Your code goes here... end
Add app back into load path
Add app back into load path I bet this is an API change in Rails sometime but this is an easy fix. Maybe I'll come back to it later.
Ruby
mit
calebthompson/title
ruby
## Code Before: require 'title/version' require 'rails/engine' require 'title/engine' require 'helpers/title/title_helper' module Title # Your code goes here... end ## Instruction: Add app back into load path I bet this is an API change in Rails sometime but this is an easy fix. Maybe I'll come back to it later. ...
60d1246cb7339c8c6f114d0e77fcbdb777956fb7
Library/Homebrew/utils/shebang.rb
Library/Homebrew/utils/shebang.rb
module Utils # Helper functions for manipulating shebang lines. # # @api private module Shebang module_function # Specification on how to rewrite a given shebang. # # @api private class RewriteInfo attr_reader :regex, :max_length, :replacement def initialize(regex, max_length,...
module Utils # Helper functions for manipulating shebang lines. # # @api private module Shebang extend T::Sig module_function # Specification on how to rewrite a given shebang. # # @api private class RewriteInfo extend T::Sig attr_reader :regex, :max_length, :replacement ...
Add type signatures to `Utils::Shebang`.
Add type signatures to `Utils::Shebang`.
Ruby
bsd-2-clause
EricFromCanada/brew,nandub/brew,EricFromCanada/brew,konqui/brew,claui/brew,nandub/brew,claui/brew,sjackman/homebrew,JCount/brew,MikeMcQuaid/brew,MikeMcQuaid/brew,nandub/brew,vitorgalvao/brew,claui/brew,EricFromCanada/brew,konqui/brew,nandub/brew,konqui/brew,claui/brew,vitorgalvao/brew,JCount/brew,Homebrew/brew,EricFrom...
ruby
## Code Before: module Utils # Helper functions for manipulating shebang lines. # # @api private module Shebang module_function # Specification on how to rewrite a given shebang. # # @api private class RewriteInfo attr_reader :regex, :max_length, :replacement def initialize(re...
cea0e33dd1a7186c392c851cb04b8ed4860ae96e
bokeh/src/main/scala/models/widgets/Layouts.scala
bokeh/src/main/scala/models/widgets/Layouts.scala
package io.continuum.bokeh package widgets @model abstract class Layout extends Widget { object width extends Field[Int] object height extends Field[Int] } @model class HBox extends Layout { object children extends Field[List[Widget]] } @model class VBox extends Layout { object children extends Field...
package io.continuum.bokeh package widgets @model abstract class Layout extends Widget { object width extends Field[Int] object height extends Field[Int] } @model abstract class BaseBox extends Layout { object children extends Field[List[Widget]] } @model class HBox extends BaseBox @model class VBox ext...
Make {H,V}Box inherit from BaseBox
Make {H,V}Box inherit from BaseBox
Scala
mit
bokeh/bokeh-scala,bokeh/bokeh-scala
scala
## Code Before: package io.continuum.bokeh package widgets @model abstract class Layout extends Widget { object width extends Field[Int] object height extends Field[Int] } @model class HBox extends Layout { object children extends Field[List[Widget]] } @model class VBox extends Layout { object childr...
28c35f432f73b0b710cc5f6a823e11bca53265b0
Cython/Includes/cpython/float.pxd
Cython/Includes/cpython/float.pxd
cdef extern from "Python.h": ############################################################################ # 7.2.3 ############################################################################ # PyFloatObject # # This subtype of PyObject represents a Python floating point object. # PyTypeObj...
cdef extern from "Python.h": """ #if PY_MAJOR_VERSION >= 3 #define __Pyx_PyFloat_FromString(obj) PyFloat_FromString(obj) #else #define __Pyx_PyFloat_FromString(obj) PyFloat_FromString(obj, NULL) #endif """ ###########################################################################...
Change the declaration of PyFloat_FromString to the Py3 signature and provide a fallback for Py2.
Change the declaration of PyFloat_FromString to the Py3 signature and provide a fallback for Py2. Closes https://github.com/cython/cython/issues/3909
Cython
apache-2.0
scoder/cython,cython/cython,da-woods/cython,scoder/cython,cython/cython,da-woods/cython,cython/cython,scoder/cython,da-woods/cython,da-woods/cython,scoder/cython,cython/cython
cython
## Code Before: cdef extern from "Python.h": ############################################################################ # 7.2.3 ############################################################################ # PyFloatObject # # This subtype of PyObject represents a Python floating point object. ...
f1f4f276a08e09e737f89581be6cbde07ab5c3b2
plugins/providers/virtualbox/plugin.rb
plugins/providers/virtualbox/plugin.rb
require "vagrant" module VagrantPlugins module ProviderVirtualBox class Plugin < Vagrant.plugin("2") name "VirtualBox provider" description <<-EOF The VirtualBox provider allows Vagrant to manage and control VirtualBox-based virtual machines. EOF provider(:virtualbox) do ...
require "vagrant" module VagrantPlugins module ProviderVirtualBox class Plugin < Vagrant.plugin("2") name "VirtualBox provider" description <<-EOF The VirtualBox provider allows Vagrant to manage and control VirtualBox-based virtual machines. EOF provider(:virtualbox) do ...
Set the virtualbox config scope
Set the virtualbox config scope
Ruby
mit
Endika/vagrant,gitebra/vagrant,chrisvire/vagrant,jberends/vagrant,theist/vagrant,wkolean/vagrant,theist/vagrant,janek-warchol/vagrant,h4ck3rm1k3/vagrant,muhanadra/vagrant,h4ck3rm1k3/vagrant,otagi/vagrant,crashlytics/vagrant,jhoblitt/vagrant,bshurts/vagrant,tbarrongh/vagrant,iNecas/vagrant,kamazee/vagrant,rivy/vagrant,k...
ruby
## Code Before: require "vagrant" module VagrantPlugins module ProviderVirtualBox class Plugin < Vagrant.plugin("2") name "VirtualBox provider" description <<-EOF The VirtualBox provider allows Vagrant to manage and control VirtualBox-based virtual machines. EOF provider(:vir...
6d1a61a1e56bbd27ed983096a4d659311b9d039c
src/client/formatters/html.coffee
src/client/formatters/html.coffee
fs = require('fs') exports.init = -> extensions: ['html'] assetType: 'html' contentType: 'text/html' compile: (path, options, cb) -> input = fs.readFileSync(path, 'utf8') # If passing optional headers for main view input = input.replace('<SocketStream>', options.headers) if options && options....
fs = require('fs') exports.init = -> extensions: ['html'] assetType: 'html' contentType: 'text/html' compile: (path, options, cb) -> input = fs.readFileSync(path, 'utf8') # If passing optional headers for main view if options && options.headers input = input.replace('<SocketStream>', options.he...
Make <SocketStream> tag xml compliant
Make <SocketStream> tag xml compliant
CoffeeScript
mit
socketstream/socketstream,baiyanghese/socketstream,RomanMinkin/ss-grunt-test,baiyanghese/socketstream,jmptrader/socketstream,RomanMinkin/ss-grunt-test,socketstream/socketstream,ListnPlay/socketstream,jmptrader/socketstream,evanlh/socketstream,ListnPlay/socketstream,evanlh/socketstream
coffeescript
## Code Before: fs = require('fs') exports.init = -> extensions: ['html'] assetType: 'html' contentType: 'text/html' compile: (path, options, cb) -> input = fs.readFileSync(path, 'utf8') # If passing optional headers for main view input = input.replace('<SocketStream>', options.headers) if opt...
780a2900500b744b226747e5358f8d3d655e0e18
lib/db.js
lib/db.js
var mysql = require('mysql'), config = require('../config'), Promise = require('promise'); var pool = mysql.createPool({ host: config.mysql.host, database: config.mysql.db, user: config.mysql.user, password: config.mysql.pass }); pool.callback_query = pool.query pool.query = function query() { ...
var mysql = require('mysql'), config = require('../config'), Promise = require('promise'); var pool = mysql.createPool({ host: config.mysql.host, database: config.mysql.db, user: config.mysql.user, password: config.mysql.pass }); pool.callback_query = pool.query pool.query = Promise.denodeify(poo...
Use denodeify in place of custom equivalent
Use denodeify in place of custom equivalent
JavaScript
mit
iFixit/pulldasher,iFixit/pulldasher,iFixit/pulldasher,iFixit/pulldasher
javascript
## Code Before: var mysql = require('mysql'), config = require('../config'), Promise = require('promise'); var pool = mysql.createPool({ host: config.mysql.host, database: config.mysql.db, user: config.mysql.user, password: config.mysql.pass }); pool.callback_query = pool.query pool.query = funct...
85cd16a724aedf58bc4424f4f8398ebcbedaffdc
update-project-references.sh
update-project-references.sh
set -e VERSION=$(grep '<Version>.*</Version>' src/CommonProperties.xml | sed -e 's/<\/\?Version>//g' | sed 's/ //g') for proj in $(find src/Google.Cloud.Functions.Templates/templates -name '*proj') do sed -i -e "s/Include=\"Google.Cloud.Functions.Invoker\" Version=\".*\"/Include=\"Google.Cloud.Functions.Invoker\"...
set -e VERSION=$(grep '<Version>.*</Version>' src/CommonProperties.xml | sed -e 's/<\/\?Version>//g' | sed 's/ //g') for proj in $(find src/Google.Cloud.Functions.Templates/templates -name '*proj') do sed -i -e "s/Include=\"Google.Cloud.Functions.Hosting\" Version=\".*\"/Include=\"Google.Cloud.Functions.Hosting\"...
Update tooling references to Invoker
Update tooling references to Invoker
Shell
apache-2.0
GoogleCloudPlatform/functions-framework-dotnet,GoogleCloudPlatform/functions-framework-dotnet
shell
## Code Before: set -e VERSION=$(grep '<Version>.*</Version>' src/CommonProperties.xml | sed -e 's/<\/\?Version>//g' | sed 's/ //g') for proj in $(find src/Google.Cloud.Functions.Templates/templates -name '*proj') do sed -i -e "s/Include=\"Google.Cloud.Functions.Invoker\" Version=\".*\"/Include=\"Google.Cloud.Fun...
ff0a1efa7467737de4ce25fe89fcacd58cb57f4f
gradle.properties
gradle.properties
android.enableD8=true # # Library Descriptors # GROUP=com.nextfaze.devfun VERSION_NAME=0.2.0 VERSION_SNAPSHOT=true LIB_DESCRIPTION=Annotation based developer targeted library. Call any function from anywhere from a nice UI or web interface. # # POM # POM_URL=https://github.com/NextFaze/dev-fun POM_ISSUES_URL=https://...
GROUP=com.nextfaze.devfun VERSION_NAME=0.2.0 VERSION_SNAPSHOT=true LIB_DESCRIPTION=Annotation based developer targeted library. Call any function from anywhere from a nice UI or web interface. # # POM # POM_URL=https://github.com/NextFaze/dev-fun POM_ISSUES_URL=https://github.com/NextFaze/dev-fun/issues # # Publishin...
Remove explicit D8 flag as it's on by default with Android Gradle 3.1.0+
Remove explicit D8 flag as it's on by default with Android Gradle 3.1.0+
INI
apache-2.0
NextFaze/dev-fun,NextFaze/dev-fun,NextFaze/dev-fun
ini
## Code Before: android.enableD8=true # # Library Descriptors # GROUP=com.nextfaze.devfun VERSION_NAME=0.2.0 VERSION_SNAPSHOT=true LIB_DESCRIPTION=Annotation based developer targeted library. Call any function from anywhere from a nice UI or web interface. # # POM # POM_URL=https://github.com/NextFaze/dev-fun POM_ISS...
65cc2c1290ed0d84b00e32ba4e46384906445744
MediaAdminBundle/Resources/public/coffee/WysiwygSelectView.coffee
MediaAdminBundle/Resources/public/coffee/WysiwygSelectView.coffee
WysiwygSelectView = OrchestraView.extend( events: 'click #sendToTiny': 'sendToTiny' 'change #media_crop_format' : 'changeCropFormat' initialize: (options) -> @options = @reduceOption(options, [ 'domContainer' 'html' 'thumbnails' 'original' ]) @loadTemplates [ 'Op...
WysiwygSelectView = OrchestraView.extend( events: 'click #sendToTiny': 'sendToTiny' 'change #media_crop_format' : 'changeCropFormat' initialize: (options) -> @options = @reduceOption(options, [ 'domContainer' 'html' 'thumbnails' 'original' ]) @loadTemplates [ 'Op...
Fix media url problem in tinymce
Fix media url problem in tinymce
CoffeeScript
apache-2.0
open-orchestra/open-orchestra-cms-bundle,open-orchestra/open-orchestra-cms-bundle,open-orchestra/open-orchestra-cms-bundle,open-orchestra/open-orchestra-media-admin-bundle,open-orchestra/open-orchestra-media-admin-bundle,open-orchestra/open-orchestra-media-admin-bundle
coffeescript
## Code Before: WysiwygSelectView = OrchestraView.extend( events: 'click #sendToTiny': 'sendToTiny' 'change #media_crop_format' : 'changeCropFormat' initialize: (options) -> @options = @reduceOption(options, [ 'domContainer' 'html' 'thumbnails' 'original' ]) @loadTemplat...
959310ddd1d54621beefe993422a0d090410039e
_config.yml
_config.yml
markdown: kramdown name: U.S. Open Data url: http://usopendata.org permalink: pretty paginate: 5 paginate_path: "blog/page:num" exclude: [".gitignore", "README.md", "_drafts"] # https://gist.github.com/ravasthi/1834570 authors: waldoj: name: Waldo Jaquith twitter: waldojaqui...
markdown: kramdown name: U.S. Open Data url: http://usopendata.org permalink: pretty paginate: 5 paginate_path: "blog/page:num" exclude: [".gitignore", "README.md", "_drafts"] # https://gist.github.com/ravasthi/1834570 authors: waldoj: name: Waldo Jaquith twitter: waldojaqui...
Add Karissa to authors list
Add Karissa to authors list
YAML
mit
opendata/usopendata.org,opendata/usopendata.org
yaml
## Code Before: markdown: kramdown name: U.S. Open Data url: http://usopendata.org permalink: pretty paginate: 5 paginate_path: "blog/page:num" exclude: [".gitignore", "README.md", "_drafts"] # https://gist.github.com/ravasthi/1834570 authors: waldoj: name: Waldo Jaquith twi...
89fb9a67fdfd91192b3113d195e049d8d07e8d39
examples/basic/index.js
examples/basic/index.js
import React from "react"; import ReactDOM from "react-dom"; import { Formik, Field, Form } from "formik"; const sleep = ms => new Promise(r => setTimeout(r, ms)); const Basic = () => ( <div> <h1>Sign Up</h1> <Formik initialValues={{ firstName: "", lastName: "", email: "" ...
import React from 'react'; import ReactDOM from 'react-dom'; import { Formik, Field, Form } from 'formik'; const Basic = () => ( <div> <h1>Sign Up</h1> <Formik initialValues={{ firstName: '', lastName: '', email: '', }} onSubmit={async values => { await new P...
Make basic example more a11y
Make basic example more a11y
JavaScript
apache-2.0
jaredpalmer/formik,jaredpalmer/formik,jaredpalmer/formik
javascript
## Code Before: import React from "react"; import ReactDOM from "react-dom"; import { Formik, Field, Form } from "formik"; const sleep = ms => new Promise(r => setTimeout(r, ms)); const Basic = () => ( <div> <h1>Sign Up</h1> <Formik initialValues={{ firstName: "", lastName: "", ...
762a22338afe26ff9135dbc5c2660162b9d676d0
index.html
index.html
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <link rel="stylesheet" href="/css/taw.min.css"> </head> <body> <main> <h1>Visualizing TAW</h1> </...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <link rel="stylesheet" href="/css/taw.min.css"> </head> <body> <main> <h1>Visualizing TAW</h1> ...
Restructure markup to organize page
Restructure markup to organize page * Makes it easier to place viz among other elements
HTML
mit
umd-mith/taw_viz,umd-mith/taw_viz
html
## Code Before: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <link rel="stylesheet" href="/css/taw.min.css"> </head> <body> <main> <h1>Visualizing...
df51311e55b1a6a6052e7d2e2bc9b7d84d26f9f8
ckanext/nhm/theme/templates/package/snippets/resource_view_full_text_search.html
ckanext/nhm/theme/templates/package/snippets/resource_view_full_text_search.html
{# Added to resource_view_filters.html - full text search #} {% set placeholder = _('Enter search text') %} {% set q = request.str_GET.get('q') or '' %} {% set action = h.url_for(controller='package', action='resource_read', id=package['name'], resource_id=resource['id'], view_id=resource_view['id'], filters=filter) %...
{# Added to resource_view_filters.html - full text search #} {% set placeholder = _('Enter search text') %} {% set q = request.str_GET.get('q') or '' %} {% set action = h.url_for(controller='package', action='resource_read', id=package['name'], resource_id=resource['id'], view_id=resource_view['id'], filters=filter) %...
Allow the full text search form to use utf-8 data
Allow the full text search form to use utf-8 data
HTML
mit
NaturalHistoryMuseum/ckanext-nhm,NaturalHistoryMuseum/ckanext-nhm,NaturalHistoryMuseum/ckanext-nhm
html
## Code Before: {# Added to resource_view_filters.html - full text search #} {% set placeholder = _('Enter search text') %} {% set q = request.str_GET.get('q') or '' %} {% set action = h.url_for(controller='package', action='resource_read', id=package['name'], resource_id=resource['id'], view_id=resource_view['id'], f...
8bba950e9836b4e1068be74efce2d3dbf5003fda
app/assets/javascripts/effective_ckeditor/before_init.js.erb
app/assets/javascripts/effective_ckeditor/before_init.js.erb
window['CKEDITOR_BASEPATH'] = "/assets/ckeditor/"; window.CKEDITOR_ASSETS_MAPPING = { <% if Rails.application.assets.present? %> <% Rails.application.assets.each_logical_path(->(path, _){ (path.include?('ckeditor/plugins/') || path.include?('ckeditor/skins/') || path.include?('effective/snippets/') || path.include?('e...
window['CKEDITOR_BASEPATH'] = "/assets/ckeditor/"; window.CKEDITOR_ASSETS_MAPPING = { <% (Rails.application.assets || environment).each_logical_path(->(path, _) { (path.include?('ckeditor/plugins/') || path.include?('ckeditor/skins/') || path.include?('effective/snippets/') || path.include?('effective/templates/') || ...
Work with newer version of sprockets
Work with newer version of sprockets
HTML+ERB
mit
code-and-effect/effective_ckeditor,code-and-effect/effective_ckeditor,code-and-effect/effective_ckeditor,code-and-effect/effective_ckeditor
html+erb
## Code Before: window['CKEDITOR_BASEPATH'] = "/assets/ckeditor/"; window.CKEDITOR_ASSETS_MAPPING = { <% if Rails.application.assets.present? %> <% Rails.application.assets.each_logical_path(->(path, _){ (path.include?('ckeditor/plugins/') || path.include?('ckeditor/skins/') || path.include?('effective/snippets/') || ...
5a2c4b1c2ed12496c12735f62ead947af45bb993
recipes/emacs/meta.yaml
recipes/emacs/meta.yaml
package: name: emacs version: 24.4 source: fn: emacs-24.4.tar.xz url: http://ftp.gnu.org/gnu/emacs/emacs-24.4.tar.xz md5: ad487658ad7421ad8d7b5152192eb945 build: number: 2 # [osx] number: 1 # [linux32] detect_binary_files_with_prefix: true requirements: build: - libxml2 - ncurses - dbus...
package: name: emacs version: 24.5 source: fn: emacs-24.5.tar.xz url: http://ftp.gnu.org/gnu/emacs/emacs-24.5.tar.xz sha1: 9d65d74506628cec19483204454aee25de5616e6 build: number: 0 skip: # [win] detect_binary_files_with_prefix: true requirements: build: - libxml2 - ncurses - dbus # [o...
Update and cleanup emacs recipe
Update and cleanup emacs recipe
YAML
bsd-3-clause
barkls/staged-recipes,cpaulik/staged-recipes,vamega/staged-recipes,mariusvniekerk/staged-recipes,blowekamp/staged-recipes,synapticarbors/staged-recipes,goanpeca/staged-recipes,ceholden/staged-recipes,jakirkham/staged-recipes,grlee77/staged-recipes,mcernak/staged-recipes,jjhelmus/staged-recipes,igortg/staged-recipes,lar...
yaml
## Code Before: package: name: emacs version: 24.4 source: fn: emacs-24.4.tar.xz url: http://ftp.gnu.org/gnu/emacs/emacs-24.4.tar.xz md5: ad487658ad7421ad8d7b5152192eb945 build: number: 2 # [osx] number: 1 # [linux32] detect_binary_files_with_prefix: true requirements: build: - libxml2 - nc...
a4e3d13df6a6f48974f541de0b5b061e8078ba9a
src/test/fuzz/fees.cpp
src/test/fuzz/fees.cpp
// Copyright (c) 2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <amount.h> #include <optional.h> #include <policy/fees.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/f...
// Copyright (c) 2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <amount.h> #include <optional.h> #include <policy/fees.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/f...
Add fuzzing coverage for StringForFeeReason(...)
tests: Add fuzzing coverage for StringForFeeReason(...)
C++
mit
practicalswift/bitcoin,instagibbs/bitcoin,tecnovert/particl-core,alecalve/bitcoin,Sjors/bitcoin,domob1812/namecore,sipsorcery/bitcoin,kallewoof/bitcoin,litecoin-project/litecoin,particl/particl-core,jambolo/bitcoin,prusnak/bitcoin,cdecker/bitcoin,MarcoFalke/bitcoin,prusnak/bitcoin,jlopp/statoshi,midnightmagic/bitcoin,r...
c++
## Code Before: // Copyright (c) 2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <amount.h> #include <optional.h> #include <policy/fees.h> #include <test/fuzz/FuzzedDataProvider.h> #incl...
990764ff9cd87477080dee1e26d3a40cf85e1cf9
.atoum.php
.atoum.php
<?php use mageekguy\atoum\reports; $runner ->addTestsFromDirectory(__DIR__ . '/tests/units/classes') ->disallowUndefinedMethodInInterface() ; $travis = getenv('TRAVIS'); if ($travis) { $script->addDefaultReport(); $coverallsToken = getenv('COVERALLS_REPO_TOKEN'); if ($coverallsToken) { $coverallsReport = ...
<?php use mageekguy\atoum\reports; $runner ->addTestsFromDirectory(__DIR__ . '/tests/units/classes') ->disallowUndefinedMethodInInterface() ; $travis = getenv('TRAVIS'); if ($travis) { $script->addDefaultReport(); $coverallsToken = getenv('COVERALLS_REPO_TOKEN'); if ($coverallsToken) { $coverallsReport = ...
Update source directory in coveralls configuration.
Update source directory in coveralls configuration.
PHP
bsd-3-clause
estvoyage/net
php
## Code Before: <?php use mageekguy\atoum\reports; $runner ->addTestsFromDirectory(__DIR__ . '/tests/units/classes') ->disallowUndefinedMethodInInterface() ; $travis = getenv('TRAVIS'); if ($travis) { $script->addDefaultReport(); $coverallsToken = getenv('COVERALLS_REPO_TOKEN'); if ($coverallsToken) { $co...
ad1b1cdf6a48a8c9d39714213570bf5b3e863824
app/src/main/res/xml/preferences.xml
app/src/main/res/xml/preferences.xml
<?xml version="1.0" encoding="utf-8"?> <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> <PreferenceCategory android:title="@string/activity_settings_category_general"> <EditTextPreference android:key="@string/setting_device_name" android:title="...
<?xml version="1.0" encoding="utf-8"?> <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> <PreferenceCategory android:title="@string/activity_settings_category_general"> <EditTextPreference android:key="@string/setting_device_name" android:title="...
Add option for receiving transfers.
Add option for receiving transfers.
XML
mit
nitroshare/nitroshare-android
xml
## Code Before: <?xml version="1.0" encoding="utf-8"?> <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> <PreferenceCategory android:title="@string/activity_settings_category_general"> <EditTextPreference android:key="@string/setting_device_name" ...
85263a3bb0708bebd5ed41c187715c952bfd588e
core/migrations/20220519154102_create_settings_table.php
core/migrations/20220519154102_create_settings_table.php
<?php declare(strict_types=1); use Phinx\Migration\AbstractMigration; final class CreateSettingsTable extends AbstractMigration { public function change(): void { $table = $this->table('nl2_settings'); $table ->addColumn('name', 'string', ['length' => 64]) ->addColumn(...
<?php declare(strict_types=1); use Phinx\Migration\AbstractMigration; final class CreateSettingsTable extends AbstractMigration { public function change(): void { $table = $this->table('nl2_settings'); $table ->addColumn('name', 'string', ['length' => 64]) ->addColumn(...
Add unique constraint for nl2_settings during installation
Add unique constraint for nl2_settings during installation
PHP
mit
NamelessMC/Nameless,NamelessMC/Nameless,NamelessMC/Nameless,NamelessMC/Nameless
php
## Code Before: <?php declare(strict_types=1); use Phinx\Migration\AbstractMigration; final class CreateSettingsTable extends AbstractMigration { public function change(): void { $table = $this->table('nl2_settings'); $table ->addColumn('name', 'string', ['length' => 64]) ...
0a0ebdde63628d9504ac9834ef20b996ab595d7d
stock_quant_package_product_packaging/models/stock_move_line.py
stock_quant_package_product_packaging/models/stock_move_line.py
from odoo import models class StockMoveLine(models.Model): _inherit = "stock.move.line" def _action_done(self): res = super()._action_done() for line in self.filtered(lambda l: l.result_package_id): line.result_package_id.auto_assign_packaging() return res
from odoo import models class StockMoveLine(models.Model): _inherit = "stock.move.line" def _action_done(self): res = super()._action_done() # _action_done in stock module sometimes delete a move line, we # have to check if it still exists before reading/writing on it for line...
Fix "record does not exist" when validating move line
Fix "record does not exist" when validating move line When _action_done is called on a transfer, it may delete a part of the move lines. The extension of `_action_done()` that assigns a packaging fails with "Record does not exist or has been deleted". Check if the if lines still exist before writing on them.
Python
agpl-3.0
BT-ojossen/stock-logistics-workflow,OCA/stock-logistics-workflow,BT-ojossen/stock-logistics-workflow,OCA/stock-logistics-workflow
python
## Code Before: from odoo import models class StockMoveLine(models.Model): _inherit = "stock.move.line" def _action_done(self): res = super()._action_done() for line in self.filtered(lambda l: l.result_package_id): line.result_package_id.auto_assign_packaging() return res ...
2243b997aa970d764c833c02536f670709fc5912
composer.json
composer.json
{ "name": "icanhazstring/systemctl-php", "description": "PHP wrapper for systemctl", "type": "library", "require": { "php": "^7.3", "symfony/process": "^5.0" }, "require-dev": { "phpunit/phpunit": "^9.4.2", "squizlabs/php_codesniffer": "^3.5.8", "slevomat/...
{ "name": "icanhazstring/systemctl-php", "description": "PHP wrapper for systemctl", "type": "library", "require": { "php": "^7.3", "symfony/process": "^5.0" }, "require-dev": { "phpunit/phpunit": "^9.4.2", "squizlabs/php_codesniffer": "^3.5.8", "slevomat/...
Add branch alias for dev-master
Add branch alias for dev-master
JSON
mit
icanhazstring/systemctl-php
json
## Code Before: { "name": "icanhazstring/systemctl-php", "description": "PHP wrapper for systemctl", "type": "library", "require": { "php": "^7.3", "symfony/process": "^5.0" }, "require-dev": { "phpunit/phpunit": "^9.4.2", "squizlabs/php_codesniffer": "^3.5.8", ...
152ac217d56280004102f1de355dfea2f6d74d66
README.md
README.md
Yeoman generator for FSharp kata inspired by [generator-fsharp](https://github.com/fsprojects/generator-fsharp). ![](https://github.com/pedromsantos/generator-fsharp-kata/blob/master/usage.gif?raw=true)
Yeoman generator for FSharp kata inspired by [generator-fsharp](https://github.com/fsprojects/generator-fsharp). ![](https://github.com/pedromsantos/generator-fsharp-kata/blob/master/usage.gif?raw=true) ## Installation Install [Git](http://git-scm.com), [node.js](http://nodejs.org), [NuGet](http://www.nuget.org/), [...
Add install and usage instructions
Add install and usage instructions
Markdown
apache-2.0
pedromsantos/generator-fsharp-kata,pedromsantos/generator-fsharp-kata
markdown
## Code Before: Yeoman generator for FSharp kata inspired by [generator-fsharp](https://github.com/fsprojects/generator-fsharp). ![](https://github.com/pedromsantos/generator-fsharp-kata/blob/master/usage.gif?raw=true) ## Instruction: Add install and usage instructions ## Code After: Yeoman generator for FSharp kata ...
62286ab16dcf8326d3a6be1d039696467a30a350
indico/modules/attachments/templates/_management_info_column.html
indico/modules/attachments/templates/_management_info_column.html
{% macro render_attachment_info(obj) -%} <td class="i-table" data-text="{{ obj.attachment_count }}"> <span class="vertical-aligner"> <a href="#" class="icon-attachment" title="{% trans %}Manage materials{% endtrans %}" data-title="{% trans title=obj.title %}Manage m...
{% macro render_attachment_info(obj) -%} <td class="i-table" data-text="{{ obj.attachment_count }}"> <span class="vertical-aligner"> <a href="#" class="icon-attachment" title="{% trans %}Manage materials{% endtrans %}" data-title="{% trans title=obj.title %}Manage m...
Add link to attachments column (contrib report)
Add link to attachments column (contrib report)
HTML
mit
indico/indico,OmeGak/indico,pferreir/indico,ThiefMaster/indico,indico/indico,OmeGak/indico,mvidalgarcia/indico,pferreir/indico,mic4ael/indico,ThiefMaster/indico,OmeGak/indico,mvidalgarcia/indico,ThiefMaster/indico,OmeGak/indico,mvidalgarcia/indico,DirkHoffmann/indico,indico/indico,indico/indico,DirkHoffmann/indico,mvid...
html
## Code Before: {% macro render_attachment_info(obj) -%} <td class="i-table" data-text="{{ obj.attachment_count }}"> <span class="vertical-aligner"> <a href="#" class="icon-attachment" title="{% trans %}Manage materials{% endtrans %}" data-title="{% trans title=obj....
eba51643d97a797b4726f0480ce020e68db8c22f
init.php
init.php
<?php date_default_timezone_set('Africa/Cairo'); require('src/PingLogger.php'); require('config.default.php'); @include('config.php'); $config = (object) array_merge($configDefault, $config); require('auth.php');
<?php date_default_timezone_set('Africa/Cairo'); require('src/PingLogger.php'); require('config.default.php'); $config = array(); @include('config.php'); $config = (object) array_merge($configDefault, @$config); require('auth.php');
Fix notices when user config is not present.
Fix notices when user config is not present.
PHP
apache-2.0
zhibek/ping-logger,zhibek/ping-logger
php
## Code Before: <?php date_default_timezone_set('Africa/Cairo'); require('src/PingLogger.php'); require('config.default.php'); @include('config.php'); $config = (object) array_merge($configDefault, $config); require('auth.php'); ## Instruction: Fix notices when user config is not present. ## Code After: <?php d...
e0022bf9c4531799cfc1171232a3180f94f073aa
vamp-kubernetes/vamp_kube_copy_container.sh
vamp-kubernetes/vamp_kube_copy_container.sh
green=$(tput setaf 2) yellow=$(tput setaf 3) reset=$(tput sgr0) step() { echo "${yellow}[STEP] $1${reset}" } ok() { echo "${green}[OK] $1${reset}" } # save the locally published katana-kubernetes image step "Saving katana-kubernetes to katana-kubernetes.tar." docker save magneticio/vamp:katana-kubernetes > ...
green=$(tput setaf 2) yellow=$(tput setaf 3) reset=$(tput sgr0) step() { echo "${yellow}[STEP] $1${reset}" } ok() { echo "${green}[OK] $1${reset}" } step "Building the magneticio/vamp:katana-kubernetes container." ../build.sh -b -i=vamp-kubernetes ok "Finished building the magneticio/vamp:katana-kubernetes ...
Add build step to kubernetes container copy script
Add build step to kubernetes container copy script
Shell
apache-2.0
magnetic-ci/vamp-docker-images,magneticio/vamp-docker-images
shell
## Code Before: green=$(tput setaf 2) yellow=$(tput setaf 3) reset=$(tput sgr0) step() { echo "${yellow}[STEP] $1${reset}" } ok() { echo "${green}[OK] $1${reset}" } # save the locally published katana-kubernetes image step "Saving katana-kubernetes to katana-kubernetes.tar." docker save magneticio/vamp:kata...
9fd0699054c1604a9eda8c82175af93a72099847
app/src/components/Navbar/Navbar.jsx
app/src/components/Navbar/Navbar.jsx
import React, {Component} from 'react'; import './Navbar.css'; class Navbar extends Component{ render(){ return( <div className="topnav"> <a href="https://github.com/Roshanjossey/first-contributions/blob/master/README.md">Get Started</a> <a href="#about">About</a> </div> ) } }...
import React, {Component} from 'react'; import './Navbar.css'; class Navbar extends Component{ render(){ return( <div className="topnav"> <a href="https://twitter.com/1stContribution" target="_blank">twitter</a> <a href="https://firstcontributions.herokuapp.com" target="_blank">slack</a> ...
Change links in navbar to point to slach and twitter
Change links in navbar to point to slach and twitter
JSX
mit
lauratavares/first-contributions,Shhzdmrz/first-contributions,Shhzdmrz/first-contributions,dichaves/first-contributions,RickHaan/first-contributions,Abhishekchakru/first-contributions,FearTheFrail/first-contributions,RickHaan/first-contributions,dichaves/first-contributions,lauratavares/first-contributions,Abhishekchak...
jsx
## Code Before: import React, {Component} from 'react'; import './Navbar.css'; class Navbar extends Component{ render(){ return( <div className="topnav"> <a href="https://github.com/Roshanjossey/first-contributions/blob/master/README.md">Get Started</a> <a href="#about">About</a> </...
c3863e11abfc840e79836260c637a22b09c77c9b
libs/Format/HTMLFile/ContentTypes/Markdown/CommonMarkConverter.php
libs/Format/HTMLFile/ContentTypes/Markdown/CommonMarkConverter.php
<?php namespace Todaymade\Daux\Format\HTMLFile\ContentTypes\Markdown; use Todaymade\Daux\Config; class CommonMarkConverter extends \Todaymade\Daux\Format\HTML\ContentTypes\Markdown\CommonMarkConverter { protected function getLinkRenderer(Config $config) { return new LinkRenderer($config); } }
<?php namespace Todaymade\Daux\Format\HTMLFile\ContentTypes\Markdown; use League\CommonMark\Normalizer\UniqueSlugNormalizerInterface; use Todaymade\Daux\Config; class CommonMarkConverter extends \Todaymade\Daux\Format\HTML\ContentTypes\Markdown\CommonMarkConverter { /** * Create a new Markdown converter pre-...
Make sure permalinks are unique in singlepage
Make sure permalinks are unique in singlepage
PHP
mit
dauxio/daux.io,dauxio/daux.io,dauxio/daux.io
php
## Code Before: <?php namespace Todaymade\Daux\Format\HTMLFile\ContentTypes\Markdown; use Todaymade\Daux\Config; class CommonMarkConverter extends \Todaymade\Daux\Format\HTML\ContentTypes\Markdown\CommonMarkConverter { protected function getLinkRenderer(Config $config) { return new LinkRenderer($confi...
4f4a469af510071868c179eb16fe76033f90288f
website/mcapp.projects/src/app/project/experiments/experiment/components/workflow/mc-processes-workflow.html
website/mcapp.projects/src/app/project/experiments/experiment/components/workflow/mc-processes-workflow.html
<div> <div layout="row" style="margin-right:15px; padding-top: 10px"> <div flex="{{$ctrl.workspaceSize}}" style="min-height:75vh"> <mc-workflow-toolbar></mc-workflow-toolbar> <mc-processes-workflow-graph ng-show="$ctrl.showGraphView" processe...
<div> <div layout="row" style="margin-right:15px; padding-top: 10px"> <div flex="{{$ctrl.workspaceSize}}" style="min-height:75vh"> <mc-workflow-toolbar></mc-workflow-toolbar> <mc-processes-workflow-graph ng-show="$ctrl.showGraphView" processe...
Set z-index of element so that its above the graph canvas
Set z-index of element so that its above the graph canvas
HTML
mit
materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org
html
## Code Before: <div> <div layout="row" style="margin-right:15px; padding-top: 10px"> <div flex="{{$ctrl.workspaceSize}}" style="min-height:75vh"> <mc-workflow-toolbar></mc-workflow-toolbar> <mc-processes-workflow-graph ng-show="$ctrl.showGraphView" ...
1e7a7f2abdc407cee1b90ce9160ff7be2ecf9e0d
bash_profile.d/bepc_changed_vs_origin_master.sh
bash_profile.d/bepc_changed_vs_origin_master.sh
function bepc_changed_vs_origin_master() { rspec_ensure_no_focus || return $? local bepc_changed_vs_origin_master_FILE local bepc_changed_vs_origin_master_FILES_EXISTING=() for bepc_changed_vs_origin_master_FILE in `git_files_changed_vs_origin_master | grep features | grep ".feature$"` do if [ -f $bepc_ch...
function bepc_changed_vs_origin_master() { local bepc_changed_vs_origin_master_FILE local bepc_changed_vs_origin_master_FILES_EXISTING=() for bepc_changed_vs_origin_master_FILE in `git_files_changed_vs_origin_master | grep features | grep ".feature$"` do if [ -f $bepc_changed_vs_origin_master_FILE ]; then ...
Remove redundant spec check from cucumber alias
Remove redundant spec check from cucumber alias
Shell
mit
pr0d1r2/plexus,pr0d1r2/plexus
shell
## Code Before: function bepc_changed_vs_origin_master() { rspec_ensure_no_focus || return $? local bepc_changed_vs_origin_master_FILE local bepc_changed_vs_origin_master_FILES_EXISTING=() for bepc_changed_vs_origin_master_FILE in `git_files_changed_vs_origin_master | grep features | grep ".feature$"` do ...
7689e9dc3e499c4c3e5b963a68f035be2c43f777
ext/hal/silabs/gecko/CMakeLists.txt
ext/hal/silabs/gecko/CMakeLists.txt
string(TOUPPER ${CONFIG_SOC_SERIES} SILABS_GECKO_DEVICE) set(SILABS_GECKO_PART_NUMBER ${CONFIG_SOC_PART_NUMBER}) zephyr_include_directories( Device/SiliconLabs/${SILABS_GECKO_DEVICE}/Include emlib/inc ) # The gecko SDK uses the cpu name to include the matching device header. # See Device/SiliconLabs/$(SILABS_G...
string(TOUPPER ${CONFIG_SOC_SERIES} SILABS_GECKO_DEVICE) set(SILABS_GECKO_PART_NUMBER ${CONFIG_SOC_PART_NUMBER}) zephyr_include_directories( Device/SiliconLabs/${SILABS_GECKO_DEVICE}/Include emlib/inc ) # The gecko SDK uses the cpu name to include the matching device header. # See Device/SiliconLabs/$(SILABS_G...
Integrate Silabs EFR32FG1P Gecko SDK into Zephyr
ext: Integrate Silabs EFR32FG1P Gecko SDK into Zephyr This patch integrates EFR32FG1P support into the build infrastructure of Zephyr. Signed-off-by: Christian Taedcke <1d7d3458c4d94e1013a9872dbd5fe0865ba6a124@taedcke.com>
Text
apache-2.0
zephyrproject-rtos/zephyr,explora26/zephyr,punitvara/zephyr,GiulianoFranchetto/zephyr,punitvara/zephyr,finikorg/zephyr,nashif/zephyr,explora26/zephyr,kraj/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr,GiulianoFranchetto/zephyr,kraj/zephyr,finikorg/zephyr,kraj/zephyr,GiulianoFranchetto/zephyr,nashif/zephyr,explora26/...
text
## Code Before: string(TOUPPER ${CONFIG_SOC_SERIES} SILABS_GECKO_DEVICE) set(SILABS_GECKO_PART_NUMBER ${CONFIG_SOC_PART_NUMBER}) zephyr_include_directories( Device/SiliconLabs/${SILABS_GECKO_DEVICE}/Include emlib/inc ) # The gecko SDK uses the cpu name to include the matching device header. # See Device/Silico...
3ea6db0c6258b325717087dcd5dbea0e1c459011
META6.json
META6.json
{ "name" : "Net::Curl", "license" : "MIT", "version" : "0.1.0", "perl" : "6.c", "description" : "Perl 6 interface to libcurl, the free and easy-to-use client-side URL transfer library", "depends" : [ ], "provides" : { "Net::Curl" : "lib/Net/Curl.pm6", "Net:...
{ "auth" : "github:azawawi", "authors" : [ "Ahmad M. Zawawi" ], "description" : "Perl 6 interface to libcurl, the free and easy-to-use client-side URL transfer library", "depends" : [ ], "license" : "MIT", "name" : "Net::Curl", "perl" : "6.*", "provides" ...
Update META.json: sort keys, add missing fields, depend on 6.*
Update META.json: sort keys, add missing fields, depend on 6.*
JSON
mit
azawawi/perl6-net-curl
json
## Code Before: { "name" : "Net::Curl", "license" : "MIT", "version" : "0.1.0", "perl" : "6.c", "description" : "Perl 6 interface to libcurl, the free and easy-to-use client-side URL transfer library", "depends" : [ ], "provides" : { "Net::Curl" : "lib/Net/Curl...
5f95b5b6dc233e1f75b4a564474491f4bd265362
src/Common/BlockEditor/Blocks/EditorBlock.php
src/Common/BlockEditor/Blocks/EditorBlock.php
<?php namespace Common\BlockEditor\Blocks; use Frontend\Core\Engine\TwigTemplate; abstract class EditorBlock { /** @var TwigTemplate */ private $template; public function __construct(TwigTemplate $template) { $this->template = $template; } final public function getName(): string ...
<?php namespace Common\BlockEditor\Blocks; use Frontend\Core\Engine\TwigTemplate; abstract class EditorBlock { /** @var TwigTemplate */ private $template; public function __construct(TwigTemplate $template) { $this->template = $template; } final public function getName(): string ...
Add extra method so we know what JS files to load
Add extra method so we know what JS files to load
PHP
mit
justcarakas/forkcms,justcarakas/forkcms,justcarakas/forkcms
php
## Code Before: <?php namespace Common\BlockEditor\Blocks; use Frontend\Core\Engine\TwigTemplate; abstract class EditorBlock { /** @var TwigTemplate */ private $template; public function __construct(TwigTemplate $template) { $this->template = $template; } final public function getNa...
4a2ea02e2e235434b7e742391e7f5d27e1632e97
plugin.rb
plugin.rb
enabled_site_setting :signatures_enabled DiscoursePluginRegistry.serialized_current_user_fields << "see_signatures" DiscoursePluginRegistry.serialized_current_user_fields << "signature_url" DiscoursePluginRegistry.serialized_current_user_fields << "signature_raw" after_initialize do User.register_custom_field_typ...
enabled_site_setting :signatures_enabled DiscoursePluginRegistry.serialized_current_user_fields << "see_signatures" DiscoursePluginRegistry.serialized_current_user_fields << "signature_url" DiscoursePluginRegistry.serialized_current_user_fields << "signature_raw" after_initialize do User.register_custom_field_typ...
Fix error on Akismet admin screen
Fix error on Akismet admin screen
Ruby
mit
Autsider/signatures,xfalcox/discourse-signatures,xfalcox/discourse-signatures,Autsider/signatures,xfalcox/discourse-signatures,Autsider/signatures
ruby
## Code Before: enabled_site_setting :signatures_enabled DiscoursePluginRegistry.serialized_current_user_fields << "see_signatures" DiscoursePluginRegistry.serialized_current_user_fields << "signature_url" DiscoursePluginRegistry.serialized_current_user_fields << "signature_raw" after_initialize do User.register_...
cf8b84caf4a1231e24af1e0d7b9771e662faa420
src/PhpTabs/Share/ChannelRoute.php
src/PhpTabs/Share/ChannelRoute.php
<?php /* * This file is part of the PhpTabs package. * * Copyright (c) landrok at github.com/landrok * * For the full copyright and license information, please see * <https://github.com/stdtabs/phptabs/blob/master/LICENSE>. */ namespace PhpTabs\Share; class ChannelRoute { const PARAMETER_CHANNEL_1 = "channe...
<?php /* * This file is part of the PhpTabs package. * * Copyright (c) landrok at github.com/landrok * * For the full copyright and license information, please see * <https://github.com/stdtabs/phptabs/blob/master/LICENSE>. */ namespace PhpTabs\Share; class ChannelRoute { const PARAMETER_CHANNEL_1 = "channe...
Fix PHPDoc wrong type annotation
Fix PHPDoc wrong type annotation
PHP
lgpl-2.1
stdtabs/phptabs
php
## Code Before: <?php /* * This file is part of the PhpTabs package. * * Copyright (c) landrok at github.com/landrok * * For the full copyright and license information, please see * <https://github.com/stdtabs/phptabs/blob/master/LICENSE>. */ namespace PhpTabs\Share; class ChannelRoute { const PARAMETER_CHA...
8b0dfac1cf30df61bfcb569037296549519d538d
.eslintrc.yml
.eslintrc.yml
env: browser: true es6: true node: true extends: 'eslint:recommended' parserOptions: ecmaFeatures: experimentalObjectRestSpread: true jsx: true sourceType: module plugins: - react - node rules: indent: - error - 4 linebreak-style: - error - unix quotes: - error - sing...
env: browser: true es6: true node: true extends: 'eslint:recommended' parserOptions: ecmaFeatures: experimentalObjectRestSpread: true jsx: true sourceType: module plugins: - react - node rules: indent: - error - 4 - SwitchCase: 1 linebreak-style: - error - unix quotes: ...
Allow indention of cases in switch
Allow indention of cases in switch
YAML
mit
jschirrmacher/cosmoteer-mod-editor,jschirrmacher/cosmoteer-mod-editor
yaml
## Code Before: env: browser: true es6: true node: true extends: 'eslint:recommended' parserOptions: ecmaFeatures: experimentalObjectRestSpread: true jsx: true sourceType: module plugins: - react - node rules: indent: - error - 4 linebreak-style: - error - unix quotes: - ...
79d9dfed782c8d6ca770ede22685aafae0010dee
app/templates/README.md
app/templates/README.md
> <%= props.description %> ## Install ```sh $ npm install --save <%= slugname %> ``` ## Usage ```js var <%= safeSlugname %> = require('<%= slugname %>'); <%= safeSlugname %>('Rainbow'); ```<% if (props.cli) { %> ```sh $ npm install --global <%= slugname %> $ <%= slugname %> --help ```<% } %><% if (props.browse...
> <%= props.description %> ## Install ```sh $ npm install --save <%= slugname %> ``` ## Usage ```js var <%= safeSlugname %> = require('<%= slugname %>'); <%= safeSlugname %>('Rainbow'); ```<% if (props.cli) { %> ```sh $ npm install --global <%= slugname %> $ <%= slugname %> --help ```<% } %><% if (props.browse...
Make variable names match each other
Make variable names match each other
Markdown
mit
iamstarkov/generator-node,amitport/generator-node,rhettl/generator-node,zckrs/generator-node,davewasmer/generator-node,thehobbit85/generator-node,yeoman/generator-node,RobertJGabriel/generator-node,canercandan/generator-node,stevemao/generator-node
markdown
## Code Before: > <%= props.description %> ## Install ```sh $ npm install --save <%= slugname %> ``` ## Usage ```js var <%= safeSlugname %> = require('<%= slugname %>'); <%= safeSlugname %>('Rainbow'); ```<% if (props.cli) { %> ```sh $ npm install --global <%= slugname %> $ <%= slugname %> --help ```<% } %><% ...
8e1d535317f15ef6b7d6e2f3398a22cb2f647e50
Sources/Sugar/Helpers/SecondsConverter.swift
Sources/Sugar/Helpers/SecondsConverter.swift
import Foundation public extension Int { public var minsInSecs: Int { return self * 60 } public var hoursInSecs: Int { return self.minsInSecs * 60 } public var daysInSecs: Int { return self.hoursInSecs * 24 } public var weeksInSecs: Int { return self.daysI...
public extension Numeric { public var minsInSecs: Self { return self * 60 } public var hoursInSecs: Self { return self.minsInSecs * 60 } public var daysInSecs: Self { return self.hoursInSecs * 24 } public var weeksInSecs: Self { return self.daysInSecs * 7 ...
Use Numeric over Int and TimeInterval
Use Numeric over Int and TimeInterval
Swift
mit
nodes-vapor/sugar
swift
## Code Before: import Foundation public extension Int { public var minsInSecs: Int { return self * 60 } public var hoursInSecs: Int { return self.minsInSecs * 60 } public var daysInSecs: Int { return self.hoursInSecs * 24 } public var weeksInSecs: Int { r...
921218359702113e6dd37c96112ac4c3a0e958f9
templates/base.html
templates/base.html
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content="Get Hexagrams and Trigrams"> <link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/pure-min.css"> <!--[if lte IE 8]> <link rel=...
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width; initial-scale=1.0; minimal-ui"> <meta name="description" content="Get Hexagrams and Trigrams"> <link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/pure-min.css"> <!--[if lte IE 8]> ...
Add minimal-ui property to hide address bar
Add minimal-ui property to hide address bar
HTML
mit
urschrei/hexagrams,urschrei/hexagrams
html
## Code Before: <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content="Get Hexagrams and Trigrams"> <link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/pure-min.css"> <!--[if lte IE 8]> ...
ef696998d558518d07782333d162b15262864ce6
lib/suspenders/generators/production/manifest_generator.rb
lib/suspenders/generators/production/manifest_generator.rb
require_relative "../base" module Suspenders module Production class ManifestGenerator < Generators::Base def render_manifest expand_json( "app.json", name: app_name.dasherize, scripts: {}, env: { APPLICATION_HOST: { required: true }, ...
require_relative "../base" module Suspenders module Production class ManifestGenerator < Generators::Base def render_manifest expand_json( "app.json", name: app_name.dasherize, scripts: {}, env: { APPLICATION_HOST: { required: true }, ...
Install redis on heroku for sidekiq
Install redis on heroku for sidekiq
Ruby
mit
welaika/welaika-suspenders,welaika/welaika-suspenders,welaika/welaika-suspenders
ruby
## Code Before: require_relative "../base" module Suspenders module Production class ManifestGenerator < Generators::Base def render_manifest expand_json( "app.json", name: app_name.dasherize, scripts: {}, env: { APPLICATION_HOST: { required: true...
ae1d897b5b9f74957047d07f98f0baa72557a530
test/app.js
test/app.js
'use strict'; var path = require('path'); var assert = require('yeoman-assert'); var helpers = require('yeoman-generator').test; describe('generator-ocaml:app', function () { before(function (done) { helpers.run(path.join(__dirname, '../generators/app')) .withOptions({someOption: true}) .withPrompts(...
'use strict'; var path = require('path') ,assert = require('yeoman-assert') ,helpers = require('yeoman-generator').test ,os = require('os'); describe('generator-ocaml:app', function () { before(function (done) { var prompts = { pkgName: 'an-awesome-ocaml-module', pkgDescription...
Set prompting info for tests
Set prompting info for tests
JavaScript
mit
mabrasil/generator-ocaml
javascript
## Code Before: 'use strict'; var path = require('path'); var assert = require('yeoman-assert'); var helpers = require('yeoman-generator').test; describe('generator-ocaml:app', function () { before(function (done) { helpers.run(path.join(__dirname, '../generators/app')) .withOptions({someOption: true}) ...
310cebbe1f4a4d92c8f181d7e4de9cc4f75a14dc
indra/assemblers/__init__.py
indra/assemblers/__init__.py
try: from pysb_assembler import PysbAssembler except ImportError: pass try: from graph_assembler import GraphAssembler except ImportError: pass try: from sif_assembler import SifAssembler except ImportError: pass try: from cx_assembler import CxAssembler except ImportError: pass try: ...
try: from indra.assemblers.pysb_assembler import PysbAssembler except ImportError: pass try: from indra.assemblers.graph_assembler import GraphAssembler except ImportError: pass try: from indra.assemblers.sif_assembler import SifAssembler except ImportError: pass try: from indra.assemblers.c...
Update to absolute imports in assemblers
Update to absolute imports in assemblers
Python
bsd-2-clause
johnbachman/indra,bgyori/indra,sorgerlab/belpy,sorgerlab/indra,pvtodorov/indra,pvtodorov/indra,pvtodorov/indra,johnbachman/indra,bgyori/indra,jmuhlich/indra,pvtodorov/indra,sorgerlab/indra,jmuhlich/indra,johnbachman/belpy,johnbachman/belpy,sorgerlab/belpy,johnbachman/indra,sorgerlab/belpy,johnbachman/belpy,jmuhlich/ind...
python
## Code Before: try: from pysb_assembler import PysbAssembler except ImportError: pass try: from graph_assembler import GraphAssembler except ImportError: pass try: from sif_assembler import SifAssembler except ImportError: pass try: from cx_assembler import CxAssembler except ImportError: ...
85ccdedf5f13d15f58405a2bfed06e725de41b34
app/controllers/home_controller.rb
app/controllers/home_controller.rb
class HomeController < ApplicationController layout 'relaunch' def index unless user_signed_in? || admin_user_signed_in? expires_in 1.hour, public: true end render end end
class HomeController < ApplicationController layout 'relaunch' def index =begin Find a way to cache this: unless user_signed_in? || admin_user_signed_in? expires_in 1.hour, public: true end =end render end end
Remove caching from home index action.
Remove caching from home index action.
Ruby
agpl-3.0
sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap
ruby
## Code Before: class HomeController < ApplicationController layout 'relaunch' def index unless user_signed_in? || admin_user_signed_in? expires_in 1.hour, public: true end render end end ## Instruction: Remove caching from home index action. ## Code After: class HomeController < Applicatio...
b952700fe49749638e314c2df52205bdb3bac7f6
doc/user_guide.rst
doc/user_guide.rst
.. _user_guide: User guide: table of contents ============================== .. sidebar:: **Download for offline viewing** Download the `user guide and examples <https://github.com/INCF/pybids/archive/gh-pages.zip>`_. .. include:: includes/big_toc_css.rst .. nice layout in the toc .. include:: tune_toc.rst...
.. _user_guide: User guide: table of contents ============================== .. sidebar:: **Download for offline viewing** Download the `user guide and examples <https://github.com/INCF/pybids/archive/gh-pages.zip>`_. .. toctree:: :numbered: introduction.rst grabbids/index.rst analysis/index.rst...
Fix User Guide font size.
Fix User Guide font size. The includes were messing up the font size on this one page. Now it should look.
reStructuredText
mit
INCF/pybids
restructuredtext
## Code Before: .. _user_guide: User guide: table of contents ============================== .. sidebar:: **Download for offline viewing** Download the `user guide and examples <https://github.com/INCF/pybids/archive/gh-pages.zip>`_. .. include:: includes/big_toc_css.rst .. nice layout in the toc .. includ...
e1d1c6910e2c28e471310731b149e1cc0f128bf1
.travis.yml
.travis.yml
language: python sudo: required services: - docker env: matrix: - REDIS_VERSION=2.6 - REDIS_VERSION=2.8 - REDIS_VERSION=3.0 before_install: - docker pull redis:$REDIS_VERSION - docker run -d -p 6379:6379 redis install: - pip install tox script: - make test-tox
language: python sudo: required services: - docker env: matrix: - REDIS_VERSION=2.6 - REDIS_VERSION=2.8 - REDIS_VERSION=3.0 before_install: - docker pull redis:$REDIS_VERSION - docker run -d -p 6379:6379 redis:$REDIS_VERSION install: - pip install tox script: - make test-tox
Fix running of redis containers.
Fix running of redis containers. They should be pinpointed to the version in the matrix.
YAML
lgpl-2.1
josiahcarlson/rom
yaml
## Code Before: language: python sudo: required services: - docker env: matrix: - REDIS_VERSION=2.6 - REDIS_VERSION=2.8 - REDIS_VERSION=3.0 before_install: - docker pull redis:$REDIS_VERSION - docker run -d -p 6379:6379 redis install: - pip install tox script: - make test-tox ## Instruction: Fi...
9ec6a6d1aad7b623728bc65a6a836bc9ee21a9ce
src/main/java/com/gmail/nossr50/events/experience/McMMOPlayerLevelUpEvent.java
src/main/java/com/gmail/nossr50/events/experience/McMMOPlayerLevelUpEvent.java
package com.gmail.nossr50.events.experience; import org.bukkit.entity.Player; import com.gmail.nossr50.skills.utilities.SkillType; /** * Called when a user levels up in a skill */ public class McMMOPlayerLevelUpEvent extends McMMOPlayerExperienceEvent { private int levelsGained; public McMMOPlayerLevelUpE...
package com.gmail.nossr50.events.experience; import org.bukkit.entity.Player; import com.gmail.nossr50.skills.utilities.SkillType; /** * Called when a user levels up in a skill */ public class McMMOPlayerLevelUpEvent extends McMMOPlayerExperienceEvent { private int levelsGained; public McMMOPlayerLevelUpE...
Add constructor for adding multiple levels at once. Need to work out how to handle level-ups in order for this to be properly cancelled, however.
Add constructor for adding multiple levels at once. Need to work out how to handle level-ups in order for this to be properly cancelled, however.
Java
agpl-3.0
isokissa3/mcMMO,Maximvdw/mcMMO,jhonMalcom79/mcMMO_pers,virustotalop/mcMMO,EvilOlaf/mcMMO
java
## Code Before: package com.gmail.nossr50.events.experience; import org.bukkit.entity.Player; import com.gmail.nossr50.skills.utilities.SkillType; /** * Called when a user levels up in a skill */ public class McMMOPlayerLevelUpEvent extends McMMOPlayerExperienceEvent { private int levelsGained; public McM...
99701c6e3be26e1a482595dad581dd91e4b99bb5
lib/nehm/path_manager.rb
lib/nehm/path_manager.rb
module Nehm ## # Path manager works with download paths module PathManager def self.default_dl_path Cfg[:dl_path] end ## # Checks path for validation and returns it if valid def self.get_path(path) # Check path for existence UI.term 'Invalid download path. Please enter c...
module Nehm ## # Path manager works with download paths module PathManager def self.default_dl_path Cfg[:dl_path] end ## # Checks path for validation and returns it if valid def self.get_path(path) unless Dir.exist?(path) UI.warning "This directory doesn't exist." ...
Add creation a directory entered in `to` option
Add creation a directory entered in `to` option
Ruby
mit
bogem/nehm
ruby
## Code Before: module Nehm ## # Path manager works with download paths module PathManager def self.default_dl_path Cfg[:dl_path] end ## # Checks path for validation and returns it if valid def self.get_path(path) # Check path for existence UI.term 'Invalid download path...
f899f8185095d3184df76b52855476a864a5b18e
.travis.yml
.travis.yml
language: rust rust: - nightly addons: apt: packages: - tree install: - git clone --depth 1 https://github.com/steveklabnik/rustbook.git - cd rustbook && cargo build --release && cd .. script: - rustbook/target/release/rustbook build text/ book/ after_success: - tree book - zip -r too-many-l...
language: rust rust: - nightly addons: apt: packages: - tree install: - git clone --depth 1 https://github.com/steveklabnik/rustbook.git - cd rustbook && cargo build --release && cd .. script: - rustbook/target/release/rustbook build text/ book/ after_success: - tree book - zip -r too-many-l...
Add Travis to Github Release deploy config
Add Travis to Github Release deploy config
YAML
mit
rust-unofficial/too-many-lists,Gankro/too-many-lists
yaml
## Code Before: language: rust rust: - nightly addons: apt: packages: - tree install: - git clone --depth 1 https://github.com/steveklabnik/rustbook.git - cd rustbook && cargo build --release && cd .. script: - rustbook/target/release/rustbook build text/ book/ after_success: - tree book - z...
1ad775f5e4fb9dd70071b87b887744171cd17e63
src/xc2bit/build.rs
src/xc2bit/build.rs
use std::io::Write; fn main() { let out_dir = std::env::var("OUT_DIR").unwrap(); let destination = std::path::Path::new(&out_dir).join("reftests.rs"); let mut f = std::fs::File::create(&destination).unwrap(); let files = std::fs::read_dir("../../tests/xc2bit/reftests").unwrap(); for file in files...
use std::io::Write; fn main() { let out_dir = std::env::var("OUT_DIR").unwrap(); let destination = std::path::Path::new(&out_dir).join("reftests.rs"); let mut f = std::fs::File::create(&destination).unwrap(); let root_dir = std::env::var("CARGO_MANIFEST_DIR").unwrap(); let reftests_dir = std::path...
Use CARGO_MANIFEST_DIR rather than assuming the cwd
xc2bit: Use CARGO_MANIFEST_DIR rather than assuming the cwd
Rust
lgpl-2.1
rqou/openfpga,rqou/openfpga,rqou/openfpga,azonenberg/openfpga,azonenberg/openfpga,azonenberg/openfpga,azonenberg/openfpga,rqou/openfpga,azonenberg/openfpga,rqou/openfpga
rust
## Code Before: use std::io::Write; fn main() { let out_dir = std::env::var("OUT_DIR").unwrap(); let destination = std::path::Path::new(&out_dir).join("reftests.rs"); let mut f = std::fs::File::create(&destination).unwrap(); let files = std::fs::read_dir("../../tests/xc2bit/reftests").unwrap(); f...
a27dad11160f1d5cecbbb4dec9e0bc6448f09461
app/serializers/spree_signifyd/credit_card_serializer.rb
app/serializers/spree_signifyd/credit_card_serializer.rb
require 'active_model/serializer' module SpreeSignifyd class CreditCardSerializer < ActiveModel::Serializer self.root = false attributes :cardHolderName, :last4, :expiryMonth, :expiryYear def cardHolderName "#{object.first_name} #{object.last_name}" end def last4 object.last_digits...
require 'active_model/serializer' module SpreeSignifyd class CreditCardSerializer < ActiveModel::Serializer self.root = false attributes :cardHolderName, :last4 # this is how to conditionally include attributes in AMS def attributes(*args) hash = super hash[:expiryMonth] = object.month ...
Make CreditCard expiryMonth and expiryYear optional
Make CreditCard expiryMonth and expiryYear optional These are about to become numbers, null is not a number.
Ruby
bsd-3-clause
solidusio/solidus_signifyd,solidusio/solidus_signifyd
ruby
## Code Before: require 'active_model/serializer' module SpreeSignifyd class CreditCardSerializer < ActiveModel::Serializer self.root = false attributes :cardHolderName, :last4, :expiryMonth, :expiryYear def cardHolderName "#{object.first_name} #{object.last_name}" end def last4 ob...
6aca94f42c4278d78a8b1b76f35999b0287200a4
dashboard/client/dashboard.html
dashboard/client/dashboard.html
<template name="dashboard"> <p>Placeholder</p> <form id="elasticsearch-host" method="post"> <input type="text" name="host" placeholder="https://elasticsearch.host:port"> <button type="submit" name="set-elasticsearch-host"> Set host </button> </form> </template>
<template name="dashboard"> <h1>API Umbrella Dashboard</h1> <form id="elasticsearch-host" method="post"> <input type="text" name="host" placeholder="https://elasticsearch.host:port"> <button type="submit" name="set-elasticsearch-host"> Set host </button> </form> </template>
Replace placeholder text with header
Replace placeholder text with header
HTML
mit
apinf/api-umbrella-dashboard,apinf/api-umbrella-dashboard
html
## Code Before: <template name="dashboard"> <p>Placeholder</p> <form id="elasticsearch-host" method="post"> <input type="text" name="host" placeholder="https://elasticsearch.host:port"> <button type="submit" name="set-elasticsearch-host"> Set host </button> </form> </template> ## Instruction: R...
3816cbbda6a19e551330c0b3fe6faac1301de342
gradle.properties
gradle.properties
jacocoVersion=0.7.7.201606060606
jacocoVersion=0.7.7.201606060606 android.enableD8=true
Enable d8 next-gen dex compiler
Enable d8 next-gen dex compiler
INI
apache-2.0
kruton/connectbot,lotan/connectbot,kruton/connectbot,alescdb/connectbot,connectbot/connectbot,lotan/connectbot,kruton/connectbot,iiordanov/BSSH,connectbot/connectbot,lotan/connectbot,alescdb/connectbot,alescdb/connectbot,iiordanov/BSSH,iiordanov/BSSH,connectbot/connectbot
ini
## Code Before: jacocoVersion=0.7.7.201606060606 ## Instruction: Enable d8 next-gen dex compiler ## Code After: jacocoVersion=0.7.7.201606060606 android.enableD8=true
416575ca3cc684925be0391b43b98a9fa1d9f909
ObjectTracking/testTrack.py
ObjectTracking/testTrack.py
from SimpleCV import ColorSegmentation, Image, Camera, VirtualCamera, Display # Open reference video cam=VirtualCamera('/media/bat/DATA/Baptiste/Nautilab/kite_project/zenith-wind-power-read-only/KiteControl-Qt/videos/kiteFlying.avi','video') # Select reference image img=cam.getFrame(50) modelImage = img.crop(255, 180...
from SimpleCV import ColorSegmentation, Image, Camera, VirtualCamera, Display, Color # Open reference video cam=VirtualCamera('/media/bat/DATA/Baptiste/Nautilab/kite_project/zenith-wind-power-read-only/KiteControl-Qt/videos/kiteFlying.avi','video') # Select reference image img=cam.getFrame(50) modelImage = img.crop(2...
Save the image of the selection (to be able to reinitialise later)
Save the image of the selection (to be able to reinitialise later)
Python
mit
baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite,baptistelabat/robokite
python
## Code Before: from SimpleCV import ColorSegmentation, Image, Camera, VirtualCamera, Display # Open reference video cam=VirtualCamera('/media/bat/DATA/Baptiste/Nautilab/kite_project/zenith-wind-power-read-only/KiteControl-Qt/videos/kiteFlying.avi','video') # Select reference image img=cam.getFrame(50) modelImage = i...
2aa96a57964299a9c7a21d0aa2570d411f25d23b
db/migrate/20121211151950_add_slider_taxons_and_apply_them.rb
db/migrate/20121211151950_add_slider_taxons_and_apply_them.rb
class AddSliderTaxonsAndApplyThem < ActiveRecord::Migration def up tags = Spree::Taxonomy.create(:name => 'Tags') slider = Spree::Taxon.create({:taxonomy_id => tags.id, :name => 'Slider'}) featured = Spree::Taxon.create({:taxonomy_id => tags.id, :name => 'Featured'}) latest = Spree::Taxon....
class AddSliderTaxonsAndApplyThem < ActiveRecord::Migration def up tags = Spree::Taxonomy.create(:name => 'Tags') slider = Spree::Taxon.create({:taxonomy_id => tags.id, :parent_id => tags.root.id, :name => 'Slider'}) featured = Spree::Taxon.create({:taxonomy_id => tags.id, :parent_id => tags.root...
Set parent_id when creating Slider, Featured, and Latest
Set parent_id when creating Slider, Featured, and Latest Since parent_id wasn't set to Tags taxonomy root id, these Taxons were not appearing in the admin, and were not being destroyed when the Tags taxonomy was destroyed. Fixes #112
Ruby
bsd-3-clause
samuels410/spree_fancy,samuels410/spree_fancy
ruby
## Code Before: class AddSliderTaxonsAndApplyThem < ActiveRecord::Migration def up tags = Spree::Taxonomy.create(:name => 'Tags') slider = Spree::Taxon.create({:taxonomy_id => tags.id, :name => 'Slider'}) featured = Spree::Taxon.create({:taxonomy_id => tags.id, :name => 'Featured'}) latest ...
dbdae0e9070c8dbbead88338effb870c82b08aa6
core/src/test/scala/hyperion/CoreAppSpec.scala
core/src/test/scala/hyperion/CoreAppSpec.scala
package hyperion import akka.testkit.TestProbe import scala.concurrent.duration.DurationInt class CoreAppSpec extends BaseAkkaSpec { val app = new CoreApp(system) "Creating the CoreApp" should { "result in creating the necessary top-level actors" in { // Assert TestProbe().expectActor("/user/rec...
package hyperion import akka.testkit.TestProbe import scala.concurrent.duration.DurationInt class CoreAppSpec extends BaseAkkaSpec { "Creating the CoreApp" should { "result in creating the necessary top-level actors" in { // Act new CoreApp(system) // Assert TestProbe().expectActor("/...
Fix test: expect the Actor to appear
Fix test: expect the Actor to appear
Scala
mit
mthmulders/hyperion
scala
## Code Before: package hyperion import akka.testkit.TestProbe import scala.concurrent.duration.DurationInt class CoreAppSpec extends BaseAkkaSpec { val app = new CoreApp(system) "Creating the CoreApp" should { "result in creating the necessary top-level actors" in { // Assert TestProbe().expect...
961c799b7ddca97ad148e0ed76f004a3d62c9e50
docker-compose.yml
docker-compose.yml
version: '3.3' services: lunamultiplayer: build: context: ./ dockerfile: Dockerfile_Server args: # set to desired version, available versions: https://github.com/LunaMultiplayer/LunaMultiplayer/releases - LMP_VERSION=0.25.0 container_name: ...
version: '3.3' services: lunamultiplayer: image: lunamultiplayer:local build: context: ./ dockerfile: Dockerfile_Server args: # set to desired version, available versions: https://github.com/LunaMultiplayer/LunaMultiplayer/releases - LMP_VE...
Add image name for local builds
DockerCompose: Add image name for local builds
YAML
mit
gavazquez/LunaMultiPlayer,gavazquez/LunaMultiPlayer,gavazquez/LunaMultiPlayer,DaggerES/LunaMultiPlayer
yaml
## Code Before: version: '3.3' services: lunamultiplayer: build: context: ./ dockerfile: Dockerfile_Server args: # set to desired version, available versions: https://github.com/LunaMultiplayer/LunaMultiplayer/releases - LMP_VERSION=0.25.0 ...
aa7bdaaf82d9c880a2562c716cd15d4a6f301f83
.travis.yml
.travis.yml
language: java jdk: - oraclejdk8 - oraclejdk7 - openjdk7 before_script: - cd src script: - mvn clean test
language: java jdk: - oraclejdk8 - oraclejdk7 - openjdk7 before_script: - cd example-hello-wps script: - mvn clean test
Fix copy and paste error.
Fix copy and paste error.
YAML
apache-2.0
marcjansen/geoserver-wps-archetype
yaml
## Code Before: language: java jdk: - oraclejdk8 - oraclejdk7 - openjdk7 before_script: - cd src script: - mvn clean test ## Instruction: Fix copy and paste error. ## Code After: language: java jdk: - oraclejdk8 - oraclejdk7 - openjdk7 before_script: - cd example-hello-wps script: - mvn clean test...
3bb71bfd7a2b979a6e2047f2ace6eda7a3546592
.travis.yml
.travis.yml
language: ruby rvm: - 1.9.3 - 2.0.0 - 2.1.1 before_install: - gem update --system - gem --version before_script: - sudo apt-get update -qq - sudo apt-get install -qq zip unzip - echo `whereis zip` - echo `whereis unzip`
language: ruby rvm: - 2.0.0 - 2.1.10 - 2.2.5 - 2.3.1 before_install: - gem update --system - gem --version before_script: - sudo apt-get update -qq - sudo apt-get install -qq zip unzip - echo `whereis zip` - echo `whereis unzip`
Test on Ruby 2.2 and 2.3, drop 1.9.3
Test on Ruby 2.2 and 2.3, drop 1.9.3
YAML
mit
orien/zip-zip
yaml
## Code Before: language: ruby rvm: - 1.9.3 - 2.0.0 - 2.1.1 before_install: - gem update --system - gem --version before_script: - sudo apt-get update -qq - sudo apt-get install -qq zip unzip - echo `whereis zip` - echo `whereis unzip` ## Instruction: Test on Ruby 2.2 and 2.3, drop 1.9.3 ## Code Aft...
d1e94fef2342ca67ec7b1120bd9fc415c5203ac1
app/partials/home.html
app/partials/home.html
<p>Player List</p> <ul> <li class="drag-item" style="-webkit-user-select:none;cursor:move;" lvl-draggable="true" ng-repeat="player in players.list" data-name="{{player.name}}" data-rank="{{player.rank}}"> <div class="player-name">Player Name: {{player.name}}</div> <div class="player-rank">Player Rank: {...
<p>Player List</p> <ul> <li class="drag-item" lvl-draggable="true" ng-repeat="player in players.list" data-name="{{player.name}}" data-rank="{{player.rank}}"> <div class="player-name">Player Name: {{player.name}}</div> <div class="player-rank">Player Rank: {{player.rank}}</div> </li> </ul> <ul class...
Remove inline styles from player list
Remove inline styles from player list
HTML
mit
paulmatthews/poNG
html
## Code Before: <p>Player List</p> <ul> <li class="drag-item" style="-webkit-user-select:none;cursor:move;" lvl-draggable="true" ng-repeat="player in players.list" data-name="{{player.name}}" data-rank="{{player.rank}}"> <div class="player-name">Player Name: {{player.name}}</div> <div class="player-rank...
c972d1085ee66fa9f273f728bb37460c413eebc5
README.md
README.md
> A simple CSS prototyping framework Mistype is a set of styles that helps you to design a new site. It's a simple CSS prototyping framework, put in a 2.52 kB file. ## Download - [**ZIP package**](https://github.com/zdroid/mistype/archive/master.zip) - **Bower:** `bower install mistype` ## Components - **Scaffold...
> A simple CSS prototyping framework Mistype is a set of styles that helps you to design a new site. It's a simple CSS prototyping framework, put in a 2.5 kB file. ## Download - [**ZIP package**](https://github.com/zdroid/mistype/archive/master.zip) - **Bower:** `bower install mistype` ## Components - **Scaffoldi...
Update browser support list and links
Update browser support list and links
Markdown
mit
ZDroid/mistype
markdown
## Code Before: > A simple CSS prototyping framework Mistype is a set of styles that helps you to design a new site. It's a simple CSS prototyping framework, put in a 2.52 kB file. ## Download - [**ZIP package**](https://github.com/zdroid/mistype/archive/master.zip) - **Bower:** `bower install mistype` ## Componen...
40d9822320955cca54ecf4069fdc769c37257454
docs/developer/sample-data.rst
docs/developer/sample-data.rst
Sample data =========== "Alice" dataset is a structure for the test data that is used for development. Relationships in the dataset are shown below. String in a circle means username. Password should be generated equal to the username. .. image:: ../images/testdata-alice.png
Sample data =========== "Alice" dataset is a structure for the test data that is used for development. Relationships in the dataset are shown below. String in a circle means username. .. image:: ../images/testdata-alice.png
Fix Alice dataset docs (WAL-485)
Fix Alice dataset docs (WAL-485)
reStructuredText
mit
opennode/nodeconductor,opennode/nodeconductor,opennode/nodeconductor
restructuredtext
## Code Before: Sample data =========== "Alice" dataset is a structure for the test data that is used for development. Relationships in the dataset are shown below. String in a circle means username. Password should be generated equal to the username. .. image:: ../images/testdata-alice.png ## Instruction: Fix Alic...
a920d661a7925e90b035468e7e307d5b5027ac2f
src/Lily/Application/MiddlewareApplication.php
src/Lily/Application/MiddlewareApplication.php
<?php namespace Lily\Application; class MiddlewareApplication { private $application; private $middleware; public function __construct(array $pipeline) { $this->handler = array_shift($pipeline); $this->middleware = $pipeline; } private function handler() { return ...
<?php namespace Lily\Application; class MiddlewareApplication { private $handler; private $middleware; public function __construct(array $pipeline) { $this->handler = array_shift($pipeline); $this->middleware = $pipeline; } private function handler() { return $thi...
Rename private variable to $handler
Rename private variable to $handler
PHP
mit
lukemorton/lily,lukemorton/lily,DrPheltRight/lily,DrPheltRight/lily
php
## Code Before: <?php namespace Lily\Application; class MiddlewareApplication { private $application; private $middleware; public function __construct(array $pipeline) { $this->handler = array_shift($pipeline); $this->middleware = $pipeline; } private function handler() {...