commit stringlengths 40 40 | old_file stringlengths 4 184 | new_file stringlengths 4 184 | old_contents stringlengths 1 3.6k | new_contents stringlengths 5 3.38k | subject stringlengths 15 778 | message stringlengths 16 6.74k | lang stringclasses 201
values | license stringclasses 13
values | repos stringlengths 6 116k | config stringclasses 201
values | content stringlengths 137 7.24k | diff stringlengths 26 5.55k | diff_length int64 1 123 | relative_diff_length float64 0.01 89 | n_lines_added int64 0 108 | n_lines_deleted int64 0 106 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
46a6ff52f77210187a8904c3b89f2440e06479ca | spec/util.coffee | spec/util.coffee | module.exports =
openPath: (path, callback) ->
waitsForPromise -> atom.workspace.open(path)
runs ->
callback(atom.views.getView(atom.workspace.getActivePaneItem()))
rowRangeFrom: (marker) ->
[marker.getTailBufferPosition().row, marker.getHeadBufferPosition().row]
| module.exports =
openPath: (path, callback) ->
workspaceElement = atom.views.getView(atom.workspace)
jasmine.attachToDOM(workspaceElement)
waitsForPromise -> atom.workspace.open(path)
runs ->
callback(atom.views.getView(atom.workspace.getActivePaneItem()))
rowRangeFrom: (marker) ->
[mar... | Attach the workspace to the DOM in specs. | Attach the workspace to the DOM in specs.
| CoffeeScript | mit | antcodd/merge-conflicts,smashwilson/merge-conflicts,smashwilson/merge-conflicts | coffeescript | ## Code Before:
module.exports =
openPath: (path, callback) ->
waitsForPromise -> atom.workspace.open(path)
runs ->
callback(atom.views.getView(atom.workspace.getActivePaneItem()))
rowRangeFrom: (marker) ->
[marker.getTailBufferPosition().row, marker.getHeadBufferPosition().row]
## Instruction:... | module.exports =
openPath: (path, callback) ->
+ workspaceElement = atom.views.getView(atom.workspace)
+ jasmine.attachToDOM(workspaceElement)
+
waitsForPromise -> atom.workspace.open(path)
runs ->
callback(atom.views.getView(atom.workspace.getActivePaneItem()))
rowRangeFrom... | 3 | 0.333333 | 3 | 0 |
9e8cf1e4230e208e28febbea6c9aae7f11a61f4f | kode/kxml_compiler/CMakeLists.txt | kode/kxml_compiler/CMakeLists.txt |
add_subdirectory( tests )
include_directories( ${CMAKE_SOURCE_DIR}/kode/libkode ${CMAKE_SOURCE_DIR}/kode )
########### next target ###############
set(kschema_LIB_SRCS
parserrelaxng.cpp
parserxsd.cpp
schema.cpp
)
kde4_automoc(${kschema_LIB_SRCS})
kde4_add_library(kschema SHARED ${kschema_LIB_SRCS})
target... |
add_subdirectory( tests )
include_directories( ${CMAKE_SOURCE_DIR}/kode/libkode ${CMAKE_SOURCE_DIR}/kode )
########### next target ###############
set(kschema_LIB_SRCS
parserrelaxng.cpp
parserxsd.cpp
schema.cpp
)
kde4_automoc(${kschema_LIB_SRCS})
kde4_add_library(kschema SHARED ${kschema_LIB_SRCS})
target... | Fix kxml_compiler: symbol lookup error: kxml_compiler: undefined symbol: _ZN3RNG13ParserRelaxng10setVerboseEb which was due to the RPATH pointing to the kde inst dir, so even LD_LIBRARY_PATH in the .shell was ineffective. | Fix
kxml_compiler: symbol lookup error: kxml_compiler: undefined symbol: _ZN3RNG13ParserRelaxng10setVerboseEb
which was due to the RPATH pointing to the kde inst dir, so even LD_LIBRARY_PATH in the .shell was ineffective.
svn path=/trunk/KDE/kdepim/; revision=594843
| Text | lgpl-2.1 | lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi | text | ## Code Before:
add_subdirectory( tests )
include_directories( ${CMAKE_SOURCE_DIR}/kode/libkode ${CMAKE_SOURCE_DIR}/kode )
########### next target ###############
set(kschema_LIB_SRCS
parserrelaxng.cpp
parserxsd.cpp
schema.cpp
)
kde4_automoc(${kschema_LIB_SRCS})
kde4_add_library(kschema SHARED ${kschema_LI... |
add_subdirectory( tests )
include_directories( ${CMAKE_SOURCE_DIR}/kode/libkode ${CMAKE_SOURCE_DIR}/kode )
########### next target ###############
set(kschema_LIB_SRCS
parserrelaxng.cpp
parserxsd.cpp
schema.cpp
)
kde4_automoc(${kschema_LIB_SRCS})
kde4_add_library(kschema S... | 2 | 0.051282 | 1 | 1 |
b518e90a3691b32f6328af0a5b68c3104396cb61 | client/src/components/Users.jsx | client/src/components/Users.jsx | import React from 'react';
import { Link } from 'react-router-dom';
import { GridList, GridTile } from 'material-ui/GridList';
const Users = (props) => {
return (
<div>
<GridList cellHeight="auto" cols={5} padding={15}>
{props.users
.map((user)=>(
<div key={user.id}>
<span classNam... | import React from 'react';
import { Link } from 'react-router-dom';
import { GridList, GridTile } from 'material-ui/GridList';
const Users = (props) => {
return (
<div className="item largeSidePadding">
<GridList cellHeight="auto" cols={props.usersCount}>
{props.users
.map((user)=>(
<div key=... | Add div centering and adaptive number of columns to number of users | Add div centering and adaptive number of columns to number of users
| JSX | mit | SentinelsOfMagic/SentinelsOfMagic | jsx | ## Code Before:
import React from 'react';
import { Link } from 'react-router-dom';
import { GridList, GridTile } from 'material-ui/GridList';
const Users = (props) => {
return (
<div>
<GridList cellHeight="auto" cols={5} padding={15}>
{props.users
.map((user)=>(
<div key={user.id}>
... | import React from 'react';
import { Link } from 'react-router-dom';
import { GridList, GridTile } from 'material-ui/GridList';
const Users = (props) => {
return (
- <div>
+ <div className="item largeSidePadding">
- <GridList cellHeight="auto" cols={5} padding={15}>
? ... | 4 | 0.129032 | 2 | 2 |
f4923929b885c45d76cfd1280da6403ca987a8b8 | README.markdown | README.markdown | Vmwarephp
--------
Vmwarephp is a library containing bindings for vSphere API using PHP. You can
use it to manage ESX and VCenter servers. It was inspired by other efforts of
constructing Vsphere bindings for other dynamically typed languages like RbvMomi
for Ruby. Currently the library supports vSphere API from versi... | Vmwarephp
--------
Vmwarephp is a library containing bindings for vSphere API using PHP. You can
use it to manage ESX and VCenter servers. It was inspired by other efforts of
constructing Vsphere bindings for other dynamically typed languages like RbvMomi
for Ruby. Currently the library supports vSphere API from versi... | Set the require in readme | Set the require in readme
| Markdown | bsd-3-clause | mattiasgeniar/vmwarephp,ClipMyHorseTV/vmwarephp,arthurpro/vmwarephp,Wirehive/vmwarephp,vadimcomanescu/vmwarephp,spandeyindia/vmwarephp | markdown | ## Code Before:
Vmwarephp
--------
Vmwarephp is a library containing bindings for vSphere API using PHP. You can
use it to manage ESX and VCenter servers. It was inspired by other efforts of
constructing Vsphere bindings for other dynamically typed languages like RbvMomi
for Ruby. Currently the library supports vSpher... | Vmwarephp
--------
Vmwarephp is a library containing bindings for vSphere API using PHP. You can
use it to manage ESX and VCenter servers. It was inspired by other efforts of
constructing Vsphere bindings for other dynamically typed languages like RbvMomi
for Ruby. Currently the library supports vSphere ... | 2 | 0.0625 | 1 | 1 |
e8282687241d763a86a8e7187445f1685d9a0be5 | .travis.yml | .travis.yml | language: php
php:
- 5.4
install:
- composer install --dev
script:
- sh -c "cd Croogo; vendor/bin/phpunit"
notifications:
email: false
| language: php
php:
- 5.4
- 5.5
- 5.6
sudo: false
env:
- DB=mysql db_class='Cake\Database\Driver\Mysql' db_dsn='mysql:host=0.0.0.0;dbname=cakephp_test' db_database='cakephp_test' db_login='travis' db_password=''
- DB=pgsql db_class='Cake\Database\Driver\Postgres' db_dsn='pgsql:host=127.0.0.1;dbname=cakephp_... | Add database configurations to Travis config | Add database configurations to Travis config
| YAML | mit | cvo-technologies/croogo,cvo-technologies/croogo,cvo-technologies/croogo | yaml | ## Code Before:
language: php
php:
- 5.4
install:
- composer install --dev
script:
- sh -c "cd Croogo; vendor/bin/phpunit"
notifications:
email: false
## Instruction:
Add database configurations to Travis config
## Code After:
language: php
php:
- 5.4
- 5.5
- 5.6
sudo: false
env:
- DB=mysql db_... | language: php
php:
- 5.4
+ - 5.5
+ - 5.6
- install:
- - composer install --dev
+ sudo: false
+
+ env:
+ - DB=mysql db_class='Cake\Database\Driver\Mysql' db_dsn='mysql:host=0.0.0.0;dbname=cakephp_test' db_database='cakephp_test' db_login='travis' db_password=''
+ - DB=pgsql db_class='Cake\Databa... | 39 | 3 | 37 | 2 |
9af4a62056cf5f9a298fe7654b3cdd180482b20a | spec/active_interaction/filter_spec.rb | spec/active_interaction/filter_spec.rb |
require 'spec_helper'
class ActiveInteraction::TestFilter < ActiveInteraction::Filter; end
describe ActiveInteraction::Filter, :filter do
include_context 'filters'
describe '.slug' do
it 'raises an error' do
expect do
described_class.slug
end.to raise_error ActiveInteraction::InvalidClas... |
require 'spec_helper'
class ActiveInteraction::TestFilter < ActiveInteraction::Filter; end
class TestFilter < ActiveInteraction::Filter; end
describe ActiveInteraction::Filter, :filter do
include_context 'filters'
describe '.slug' do
it 'raises an error' do
expect do
described_class.slug
... | Add specs for filters that don't match the name | Add specs for filters that don't match the name
| Ruby | mit | frbl/active_interaction,antoinefinkelstein/active_interaction,orgsync/active_interaction,AaronLasseigne/active_interaction,frbl/active_interaction,orgsync/active_interaction,JasOXIII/active_interaction,antoinefinkelstein/active_interaction,JasOXIII/active_interaction,AaronLasseigne/active_interaction | ruby | ## Code Before:
require 'spec_helper'
class ActiveInteraction::TestFilter < ActiveInteraction::Filter; end
describe ActiveInteraction::Filter, :filter do
include_context 'filters'
describe '.slug' do
it 'raises an error' do
expect do
described_class.slug
end.to raise_error ActiveInteract... |
require 'spec_helper'
class ActiveInteraction::TestFilter < ActiveInteraction::Filter; end
+ class TestFilter < ActiveInteraction::Filter; end
describe ActiveInteraction::Filter, :filter do
include_context 'filters'
describe '.slug' do
it 'raises an error' do
expect do
... | 20 | 0.909091 | 20 | 0 |
55d206488c220c0acaa7c4e2fec40206766c7695 | README.md | README.md | 
# Easy Inbox Zero
_Achieve coveted Inbox Zero status without actually doing anything._
A [Chrome extension](https://chrome.google.com/webstore/detail/cljdnejdgbfjcpodbahcofcbofleelne/)<sup name="a1">[1](#f1)</sup>.
This extension removes the unread count from your Gmail in... | 
# Easy Inbox Zero (deprecated)
**Update 2020: this extension is no-longer on the Chrome or Firefox web stores. Any app that has email permissions should have a proper privacy policy. My silly app does not have one of those.**
**Rest assured that this this extension never, _... | Update 2020: deprecated, removed from web stores | Update 2020: deprecated, removed from web stores
| Markdown | mit | rileyjshaw/easy-inbox-zero,rileyjshaw/easy-inbox-zero | markdown | ## Code Before:

# Easy Inbox Zero
_Achieve coveted Inbox Zero status without actually doing anything._
A [Chrome extension](https://chrome.google.com/webstore/detail/cljdnejdgbfjcpodbahcofcbofleelne/)<sup name="a1">[1](#f1)</sup>.
This extension removes the unread count fr... | 
- # Easy Inbox Zero
+ # Easy Inbox Zero (deprecated)
+
+ **Update 2020: this extension is no-longer on the Chrome or Firefox web stores. Any app that has email permissions should have a proper privacy policy. My silly app does not have one of those.**
+
+ **Rest assured... | 18 | 1.125 | 14 | 4 |
e460369a7b0490195ab9ad44f9d8b2eefbb1f1f1 | rbxmk/testdata/args.lua | rbxmk/testdata/args.lua | -- Test arguments
assert(select(1, ...) == true, "arg 1 must be true")
assert(select(2, ...) == false, "arg 2 must be false")
assert(select(3, ...) == nil, "arg 3 must be nil")
assert(select(4, ...) == 42, "arg 4 must be 42")
assert(select(5, ...) == 3.141592653589793, "arg 5 must be pi")
assert(select(6, ...) == -1e-8... | -- Test arguments
T.Pass("arg 1 is true",
select(1, ...) == true)
T.Pass("arg 2 is false",
select(2, ...) == false)
T.Pass("arg 3 is nil",
select(3, ...) == nil)
T.Pass("arg 4 is 42",
select(4, ...) == 42)
T.Pass("arg 5 is pi",
select(5, ...) == 3.141592653589793)
T.Pass("arg 6 is -1e-8",
select(6, ...) == -1e-8)... | Use new format for argument test. | Use new format for argument test.
| Lua | mit | Anaminus/rbxmk,Anaminus/rbxmk | lua | ## Code Before:
-- Test arguments
assert(select(1, ...) == true, "arg 1 must be true")
assert(select(2, ...) == false, "arg 2 must be false")
assert(select(3, ...) == nil, "arg 3 must be nil")
assert(select(4, ...) == 42, "arg 4 must be 42")
assert(select(5, ...) == 3.141592653589793, "arg 5 must be pi")
assert(select(... | -- Test arguments
- assert(select(1, ...) == true, "arg 1 must be true")
- assert(select(2, ...) == false, "arg 2 must be false")
- assert(select(3, ...) == nil, "arg 3 must be nil")
- assert(select(4, ...) == 42, "arg 4 must be 42")
- assert(select(5, ...) == 3.141592653589793, "arg 5 must be pi")
- assert(select(6,... | 24 | 2.666667 | 16 | 8 |
580b2a973de7fdf9bfcbbce2feeccd1388996268 | .scripts/push-to-npm.yaml | .scripts/push-to-npm.yaml |
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '12.x'
displayName: 'Install Node.js'
- script: |
# ensure latest npm is installed
npm install -g npm
npm config set //registry.npmjs.org/:_authToken=$(azure-sdk-npm-token)
# grab the file sp... |
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '12.x'
displayName: 'Install Node.js'
- script: |
# ensure latest npm is installed
npm install -g npm
npm config set //registry.npmjs.org/:_authToken=$(azure-sdk-npm-token)
# grab the file sp... | Use 'tag' parameter for NPM publishing pipeline | Use 'tag' parameter for NPM publishing pipeline
| YAML | mit | Azure/autorest,jhendrixMSFT/autorest,Azure/autorest,Azure/autorest,Azure/autorest,jhendrixMSFT/autorest,jhendrixMSFT/autorest,jhendrixMSFT/autorest | yaml | ## Code Before:
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '12.x'
displayName: 'Install Node.js'
- script: |
# ensure latest npm is installed
npm install -g npm
npm config set //registry.npmjs.org/:_authToken=$(azure-sdk-npm-token)
# ... |
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '12.x'
displayName: 'Install Node.js'
- script: |
# ensure latest npm is installed
npm install -g npm
npm config set //registry.npmjs.org/:_authToken=$(azure-sdk-... | 10 | 0.3125 | 8 | 2 |
5231b5940c5786e91f969b2e28349535603d734c | app/assets/stylesheets/modules/conversation_reply.css.scss | app/assets/stylesheets/modules/conversation_reply.css.scss | .conversation-reply {
background-color: $white;
border-bottom: 2px solid $light-gray;
border-right: 2px solid $light-gray;
border-top: 2px solid $light-gray;
padding: 20px 20px 20px 40px;
margin-bottom: 370px;
> .avatar {
position: absolute;
margin-left: -(40px + (30px / 2));
}
textarea {
... | .conversation-reply {
background-color: $white;
border-bottom: 2px solid $light-gray;
border-right: 2px solid $light-gray;
border-top: 2px solid $light-gray;
padding: 20px 20px 20px 40px;
margin-bottom: 370px;
> .avatar {
position: absolute;
margin-left: -(40px + (30px / 2));
}
textarea {
... | Remove outline from reply area | Remove outline from reply area
| SCSS | agpl-3.0 | asm-helpful/helpful-web,asm-helpful/helpful-web,asm-helpful/helpful-web,asm-helpful/helpful-web | scss | ## Code Before:
.conversation-reply {
background-color: $white;
border-bottom: 2px solid $light-gray;
border-right: 2px solid $light-gray;
border-top: 2px solid $light-gray;
padding: 20px 20px 20px 40px;
margin-bottom: 370px;
> .avatar {
position: absolute;
margin-left: -(40px + (30px / 2));
}
... | .conversation-reply {
background-color: $white;
border-bottom: 2px solid $light-gray;
border-right: 2px solid $light-gray;
border-top: 2px solid $light-gray;
padding: 20px 20px 20px 40px;
margin-bottom: 370px;
> .avatar {
position: absolute;
margin-left: -(40px + (30px / 2))... | 1 | 0.02 | 1 | 0 |
98304b2430b2501700058c8f8f54db4254f23bbb | .travis.yml | .travis.yml | language: php
php:
- 5.5
- 5.6
script:
- mkdir cache
- chmod 777 bin
- php build/compile.php -v
| language: php
php:
- 4.3
- 5.0
- 5.1
- 5.2
- 5.3
- 5.4
- 5.5
- 5.6
script:
- mkdir bin
- chmod 777 bin
- php build/compile.php -v
| Test the application on more PHP versions. | Test the application on more PHP versions.
| YAML | mit | Soneritics/SingleFileApplication | yaml | ## Code Before:
language: php
php:
- 5.5
- 5.6
script:
- mkdir cache
- chmod 777 bin
- php build/compile.php -v
## Instruction:
Test the application on more PHP versions.
## Code After:
language: php
php:
- 4.3
- 5.0
- 5.1
- 5.2
- 5.3
- 5.4
- 5.5
- 5.6
script:
- mkdir bin
- chmod 777 bin
- php build/compile.php -v
| language: php
php:
+ - 4.3
+ - 5.0
+ - 5.1
+ - 5.2
+ - 5.3
+ - 5.4
- 5.5
- 5.6
script:
- - mkdir cache
+ - mkdir bin
- chmod 777 bin
- php build/compile.php -v | 8 | 1 | 7 | 1 |
eeb3887ba565d4ae428d7ded2a0f019852c74c55 | .travis.yml | .travis.yml | ---
sudo: false
language: scala
scala:
- 2.12.10
- 2.13.1
env:
- TRAVIS_JDK=8
- TRAVIS_JDK=11
before_install: curl -Ls https://git.io/jabba | bash && . ~/.jabba/jabba.sh
install: jabba install "adopt@~1.$TRAVIS_JDK.0-0" && jabba use "$_" && java -Xmx32m -version
script: sbt ++$TRAVIS_SCALA_VERSION test
cach... | ---
sudo: false
language: scala
scala:
- 2.12.10
- 2.13.1
env:
- TRAVIS_JDK=8
- TRAVIS_JDK=11
jobs:
allow_failures:
- env: TRAVIS_JDK=11
before_install: curl -Ls https://git.io/jabba | bash && . ~/.jabba/jabba.sh
install: jabba install "adopt@~1.$TRAVIS_JDK.0-0" && jabba use "$_" && java -Xmx32m -versi... | Allow Java 11 jobs to fail | Allow Java 11 jobs to fail
| YAML | mit | webjars/webjars-play,webjars/webjars-play | yaml | ## Code Before:
---
sudo: false
language: scala
scala:
- 2.12.10
- 2.13.1
env:
- TRAVIS_JDK=8
- TRAVIS_JDK=11
before_install: curl -Ls https://git.io/jabba | bash && . ~/.jabba/jabba.sh
install: jabba install "adopt@~1.$TRAVIS_JDK.0-0" && jabba use "$_" && java -Xmx32m -version
script: sbt ++$TRAVIS_SCALA_VE... | ---
sudo: false
language: scala
scala:
- 2.12.10
- 2.13.1
env:
- TRAVIS_JDK=8
- TRAVIS_JDK=11
+
+ jobs:
+ allow_failures:
+ - env: TRAVIS_JDK=11
before_install: curl -Ls https://git.io/jabba | bash && . ~/.jabba/jabba.sh
install: jabba install "adopt@~1.$TRAVIS_JDK.0-0" && jab... | 4 | 0.121212 | 4 | 0 |
6b7b9f0df8201b18f7388524db9fd41578e7a491 | CONTRIBUTING.md | CONTRIBUTING.md |
:+1::tada: First off, thanks for taking the time to contribute! :tada::+1:
## Getting started
1. Fork the repository
2. Clone the forked repository `git clone https://github.com/<user>/sakura.git`
3. Install dependencies `npm install`
4. Run `npm run scss:watch` and `npm run test`
5. Make your changes -> Check them ... |
:+1::tada: First off, thanks for taking the time to contribute! :tada::+1:
## Getting started
1. Fork the repository
2. Clone the forked repository `git clone https://github.com/<user>/sakura.git`
3. Install dependencies `npm install`
4. Run `npm run scss:watch` and `npm run test`
5. Make your changes -> Check them ... | Remove contributing step on building | Remove contributing step on building
Building now happens automatically.
| Markdown | mit | oxalorg/sakura,oxalorg/sakura,oxalorg/sakura | markdown | ## Code Before:
:+1::tada: First off, thanks for taking the time to contribute! :tada::+1:
## Getting started
1. Fork the repository
2. Clone the forked repository `git clone https://github.com/<user>/sakura.git`
3. Install dependencies `npm install`
4. Run `npm run scss:watch` and `npm run test`
5. Make your change... |
:+1::tada: First off, thanks for taking the time to contribute! :tada::+1:
## Getting started
1. Fork the repository
2. Clone the forked repository `git clone https://github.com/<user>/sakura.git`
3. Install dependencies `npm install`
4. Run `npm run scss:watch` and `npm run test`
5. Make your ch... | 3 | 0.142857 | 1 | 2 |
ec7449690e566beae6ee71ed15715f980a26785b | codec-preview/codectabs/h264manager.cpp | codec-preview/codectabs/h264manager.cpp |
H264Manager::H264Manager()
{
encodingParameters = "-c:v libx264 -preset ultrafast -f matroska";
}
void H264Manager::start(QProcess &process, QString file)
{
QString command = "ffmpeg -re -i \"" + file + "\" -c:v libx264 -preset ultrafast -an -f matroska udp://localhost:" + ENCODED_VIDEO_PORT + " -c:v libx264 ... |
H264Manager::H264Manager()
{
encodingParameters = "-c:v libx264 -preset ultrafast -f matroska";
}
| Remove extra functions from codec classes | Remove extra functions from codec classes
| C++ | mit | gorge-raccoon/codec-preview,gorge-raccoon/codec-preview | c++ | ## Code Before:
H264Manager::H264Manager()
{
encodingParameters = "-c:v libx264 -preset ultrafast -f matroska";
}
void H264Manager::start(QProcess &process, QString file)
{
QString command = "ffmpeg -re -i \"" + file + "\" -c:v libx264 -preset ultrafast -an -f matroska udp://localhost:" + ENCODED_VIDEO_PORT +... |
H264Manager::H264Manager()
{
encodingParameters = "-c:v libx264 -preset ultrafast -f matroska";
}
-
- void H264Manager::start(QProcess &process, QString file)
- {
- QString command = "ffmpeg -re -i \"" + file + "\" -c:v libx264 -preset ultrafast -an -f matroska udp://localhost:" + ENCODED_VIDEO_PORT... | 6 | 0.545455 | 0 | 6 |
b89a6a10e2a1beafe893faa6eec6e2562ded7492 | local-celery.py | local-celery.py | import sys
from deployer.celery import app
if __name__ == '__main__':
argv = sys.argv if len(sys.argv) > 1 else [__file__, '--loglevel=info']
app.worker_main(argv=argv)
| import sys
from deployer.celery import app
if __name__ == '__main__':
argv = sys.argv if len(sys.argv) > 1 else [__file__, '--loglevel=info']
app.conf.CELERYD_CONCURRENCY = 2
app.worker_main(argv=argv)
| Set concurrency to 2 for local | Set concurrency to 2 for local
| Python | mit | totem/cluster-deployer,totem/cluster-deployer,totem/cluster-deployer | python | ## Code Before:
import sys
from deployer.celery import app
if __name__ == '__main__':
argv = sys.argv if len(sys.argv) > 1 else [__file__, '--loglevel=info']
app.worker_main(argv=argv)
## Instruction:
Set concurrency to 2 for local
## Code After:
import sys
from deployer.celery import app
if __name__ == '__... | import sys
from deployer.celery import app
if __name__ == '__main__':
argv = sys.argv if len(sys.argv) > 1 else [__file__, '--loglevel=info']
+ app.conf.CELERYD_CONCURRENCY = 2
app.worker_main(argv=argv) | 1 | 0.166667 | 1 | 0 |
60cb0ab55cf57f25e98793699c781b4034273191 | arquillian-liferay-maven-extension/src/test/resources/settings.xml | arquillian-liferay-maven-extension/src/test/resources/settings.xml | <?xml version="1.0" encoding="UTF-8"?>
<settings
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"
xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<profiles>
<profile>
<repositories>
<... | <?xml version="1.0" encoding="UTF-8"?>
<settings
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"
xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<profiles>
<profile>
<repositories>
<... | Remove jboss repo as it causes Aether to not find liferay artifact | Remove jboss repo as it causes Aether to not find liferay artifact
| XML | apache-2.0 | arquillian/arquillian-extension-liferay,cgoncas/arquillian-extension-liferay,csierra/arquillian-extension-liferay,liferay-labs/arquillian-liferay,csierra/arquillian-liferay,mdelapenya/arquillian-extension-liferay,jrao/arquillian-extension-liferay,cgoncas/arquillian-extension-liferay,csierra/arquillian-extension-liferay... | xml | ## Code Before:
<?xml version="1.0" encoding="UTF-8"?>
<settings
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"
xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<profiles>
<profile>
<reposito... | <?xml version="1.0" encoding="UTF-8"?>
<settings
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"
xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<profiles>
<profile>
<repositori... | 12 | 0.292683 | 0 | 12 |
198003a3cd1e1b47e6139540a2dcc374ea6a1dab | object/_iterate.js | object/_iterate.js | // Internal method, used by iteration functions.
// Calls a function for each key-value pair found in object
// Optionally takes compareFn to iterate object in specific order
'use strict';
var isCallable = require('./is-callable')
, callable = require('./valid-callable')
, value = require('./valid-value')
... | // Internal method, used by iteration functions.
// Calls a function for each key-value pair found in object
// Optionally takes compareFn to iterate object in specific order
'use strict';
var callable = require('./valid-callable')
, value = require('./valid-value')
, bind = Function.prototype.bind, call = Fu... | Use typeof instead of isCallable | Use typeof instead of isCallable
| JavaScript | isc | medikoo/es5-ext | javascript | ## Code Before:
// Internal method, used by iteration functions.
// Calls a function for each key-value pair found in object
// Optionally takes compareFn to iterate object in specific order
'use strict';
var isCallable = require('./is-callable')
, callable = require('./valid-callable')
, value = require('... | // Internal method, used by iteration functions.
// Calls a function for each key-value pair found in object
// Optionally takes compareFn to iterate object in specific order
'use strict';
- var isCallable = require('./is-callable')
- , callable = require('./valid-callable')
? ^^^ --
+ var ca... | 9 | 0.310345 | 4 | 5 |
715a28db2a8346dd8df318d9677b47262247eed9 | package/tool-coco/README.md | package/tool-coco/README.md |
This is the API of the COCO dataset: https://github.com/cocodataset/cocoapi.git
**NB:** Using Python 3 is recommended.
## Dependencies
- Setuptools.
- Cython (needed for compilation)
- NumPy (needed for compilation)
- Matplotlib (not needed for compilation)
We have no CK packages for some Python dependencies yet, ... |
This is the API of the COCO dataset: https://github.com/cocodataset/cocoapi.git
```
$ ck install package --tags=tool,coco
```
**NB:** Using Python 3 is recommended.
## Dependencies
- Setuptools.
- Cython (needed for compilation)
- NumPy (needed for compilation)
- Matplotlib (not needed for compilation)
We have no... | Add build command and future warning. | Add build command and future warning.
| Markdown | bsd-3-clause | ctuning/ck-env,ctuning/ck-env,ctuning/ck-env,ctuning/ck-env,ctuning/ck-env,ctuning/ck-env,ctuning/ck-env,ctuning/ck-env | markdown | ## Code Before:
This is the API of the COCO dataset: https://github.com/cocodataset/cocoapi.git
**NB:** Using Python 3 is recommended.
## Dependencies
- Setuptools.
- Cython (needed for compilation)
- NumPy (needed for compilation)
- Matplotlib (not needed for compilation)
We have no CK packages for some Python de... |
This is the API of the COCO dataset: https://github.com/cocodataset/cocoapi.git
+
+ ```
+ $ ck install package --tags=tool,coco
+ ```
**NB:** Using Python 3 is recommended.
## Dependencies
- Setuptools.
- Cython (needed for compilation)
- NumPy (needed for compilation)
- Matplotlib (not neede... | 13 | 0.619048 | 13 | 0 |
6d97b723915e5de7a008e5d7bdd44e7883967fdc | retdec/tools/__init__.py | retdec/tools/__init__.py |
"""Tools that use the library to analyze and decompile files."""
from retdec import DEFAULT_API_URL
from retdec import __version__
def _add_arguments_shared_by_all_tools(parser):
"""Adds arguments that are used by all tools to the given parser."""
parser.add_argument(
'-k', '--api-key',
dest... |
"""Tools that use the library to analyze and decompile files."""
from retdec import DEFAULT_API_URL
from retdec import __version__
def _add_arguments_shared_by_all_tools(parser):
"""Adds arguments that are used by all tools to the given parser."""
parser.add_argument(
'-k', '--api-key',
dest... | Simplify the help message for the -k/--api-key parameter. | Simplify the help message for the -k/--api-key parameter.
We can use the '%(default)s' placeholder instead of string formatting.
| Python | mit | s3rvac/retdec-python | python | ## Code Before:
"""Tools that use the library to analyze and decompile files."""
from retdec import DEFAULT_API_URL
from retdec import __version__
def _add_arguments_shared_by_all_tools(parser):
"""Adds arguments that are used by all tools to the given parser."""
parser.add_argument(
'-k', '--api-ke... |
"""Tools that use the library to analyze and decompile files."""
from retdec import DEFAULT_API_URL
from retdec import __version__
def _add_arguments_shared_by_all_tools(parser):
"""Adds arguments that are used by all tools to the given parser."""
parser.add_argument(
'-k', '--... | 2 | 0.074074 | 1 | 1 |
fe3350df1859f244faebc4dd6825847bc7c1450d | .forestry/front_matter/templates/post.yml | .forestry/front_matter/templates/post.yml | ---
label: post
hide_body: false
fields:
- type: text
name: title
label: title
- type: text
name: permalink
label: permalink
- type: datetime
name: date
label: date
- type: list
name: tags
label: tags
- type: text
name: description
label: description
pages:
- _posts/2022-02-06-testing-forestry.md
| ---
label: post
hide_body: false
fields:
- type: text
name: title
label: title
- type: text
name: permalink
label: permalink
- type: datetime
name: date
label: date
- type: list
name: tags
label: tags
- type: text
name: description
label: description
- name: rss_only
type: boolean
label: rss_onl... | Update from Forestry.io - Updated Forestry configuration | Update from Forestry.io - Updated Forestry configuration
| YAML | mit | JacksonBates/blog,JacksonBates/blog,JacksonBates/blog,JacksonBates/blog | yaml | ## Code Before:
---
label: post
hide_body: false
fields:
- type: text
name: title
label: title
- type: text
name: permalink
label: permalink
- type: datetime
name: date
label: date
- type: list
name: tags
label: tags
- type: text
name: description
label: description
pages:
- _posts/2022-02-06-testin... | ---
label: post
hide_body: false
fields:
- type: text
name: title
label: title
- type: text
name: permalink
label: permalink
- type: datetime
name: date
label: date
- type: list
name: tags
label: tags
- type: text
name: description
label: description
+ - name: r... | 3 | 0.142857 | 3 | 0 |
1fc9339f25f7cedd4eb65ed62657722d8523946d | i18n/static/i18n/admin-languages.css | i18n/static/i18n/admin-languages.css | .vLargeTextField, .item-richtext {
width:300px !important;
height:120px !important;
}
.vTextField {
width:300px !important;
}
#language-selector label.translated {
text-decoration:underline;
}
#all_languages { float:left; }
fieldset.module {
clear: left;
}
fieldset.language {
clear: none;
float: left;
w... | .vLargeTextField, .item-richtext {
width:300px !important;
height:120px !important;
}
.vTextField {
width:300px !important;
}
#language-selector label.translated {
text-decoration:underline;
}
#all_languages { float:left; }
fieldset.module {
clear: left;
}
fieldset.language {
clear: none;
float: left;
w... | Fix display of form rows in admin | Fix display of form rows in admin
| CSS | bsd-3-clause | jonasundderwolf/django-localizedfields,jonasundderwolf/django-localizedfields | css | ## Code Before:
.vLargeTextField, .item-richtext {
width:300px !important;
height:120px !important;
}
.vTextField {
width:300px !important;
}
#language-selector label.translated {
text-decoration:underline;
}
#all_languages { float:left; }
fieldset.module {
clear: left;
}
fieldset.language {
clear: none;
... | .vLargeTextField, .item-richtext {
width:300px !important;
height:120px !important;
}
.vTextField {
width:300px !important;
}
#language-selector label.translated {
text-decoration:underline;
}
#all_languages { float:left; }
fieldset.module {
clear: left;
}
fieldset.language {
... | 1 | 0.034483 | 1 | 0 |
c1ae43fd33cd0f8eb3e270907a8ed7e728d1e268 | server.py | server.py | import evdev
import requests
import json
import datetime
import yaml
def main():
config = load_config()
dev = evdev.InputDevice(config['device_path'])
output_line('Initialized - Capturing device: ' + str(dev))
for event in dev.read_loop():
if event.type == evdev.ecodes.EV_KEY:
event = evdev.categor... | import evdev
import requests
import json
import datetime
import yaml
def main():
config = load_config()
dev = evdev.InputDevice(config['device_path'])
output_line('Initialized - Capturing device: ' + str(dev))
for event in dev.read_loop():
if event.type == evdev.ecodes.EV_KEY:
output_line(event)
... | Add captured_at timestamp to POST payload | Add captured_at timestamp to POST payload
Timestamp is in ISO 8601 format
| Python | mit | nicolas-fricke/keypost | python | ## Code Before:
import evdev
import requests
import json
import datetime
import yaml
def main():
config = load_config()
dev = evdev.InputDevice(config['device_path'])
output_line('Initialized - Capturing device: ' + str(dev))
for event in dev.read_loop():
if event.type == evdev.ecodes.EV_KEY:
event... | import evdev
import requests
import json
import datetime
import yaml
def main():
config = load_config()
dev = evdev.InputDevice(config['device_path'])
output_line('Initialized - Capturing device: ' + str(dev))
for event in dev.read_loop():
if event.type == evdev.ecodes.EV_KEY:... | 5 | 0.125 | 3 | 2 |
56348fa50e309cdffb944f9c563ccea277682519 | angular-lazyload-webpack/src/app.states.js | angular-lazyload-webpack/src/app.states.js | // app.states.js
"use strict";
const appBlog = {
name: "blog",
url: "/blog",
component: "blogComponent",
lazyLoad: ($transition$) => {
const $ocLazyLoad = $transition$.injector().get("$ocLazyLoad");
return import(/* webpackChunkName: "blog.module" */ "./pages/blog/blog.module")
.then(mod => $oc... | // app.states.js
"use strict";
const appBlog = {
name: "blog",
url: "/blog",
component: "blogComponent",
lazyLoad: ($transition$) => {
const $ocLazyLoad = $transition$.injector().get("$ocLazyLoad");
const blogModule = () => import(/* webpackChunkName: "blog.module" */ "./pages/blog/blog.module");
... | Edit lazyLoad for appBlog state | Edit lazyLoad for appBlog state
| JavaScript | mit | var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training | javascript | ## Code Before:
// app.states.js
"use strict";
const appBlog = {
name: "blog",
url: "/blog",
component: "blogComponent",
lazyLoad: ($transition$) => {
const $ocLazyLoad = $transition$.injector().get("$ocLazyLoad");
return import(/* webpackChunkName: "blog.module" */ "./pages/blog/blog.module")
... | // app.states.js
"use strict";
const appBlog = {
name: "blog",
url: "/blog",
component: "blogComponent",
lazyLoad: ($transition$) => {
const $ocLazyLoad = $transition$.injector().get("$ocLazyLoad");
+ const blogModule = () => import(/* webpackChunkName: "blog.module" */ "./pages/bl... | 6 | 0.352941 | 4 | 2 |
c3e9a5685fa1d49feb033b0a4354e37f0e895996 | roles/quarkslab.peid/defaults/main.yml | roles/quarkslab.peid/defaults/main.yml | ---
peid_sig_url: http://handlers.sans.org/jclausing/userdb.txt
sig_dir: /opt/irma/peid_sig
| ---
peid_sig_url: https://raw.githubusercontent.com/viper-framework/viper/master/data/peid/UserDB.TXT
sig_dir: /opt/irma/peid_sig
| Fix get peid signatures from viper | Fix get peid signatures from viper
| YAML | apache-2.0 | quarkslab/irma,quarkslab/irma,hirokihamasaki/irma,quarkslab/irma,hirokihamasaki/irma,quarkslab/irma,hirokihamasaki/irma,hirokihamasaki/irma,hirokihamasaki/irma | yaml | ## Code Before:
---
peid_sig_url: http://handlers.sans.org/jclausing/userdb.txt
sig_dir: /opt/irma/peid_sig
## Instruction:
Fix get peid signatures from viper
## Code After:
---
peid_sig_url: https://raw.githubusercontent.com/viper-framework/viper/master/data/peid/UserDB.TXT
sig_dir: /opt/irma/peid_sig
| ---
- peid_sig_url: http://handlers.sans.org/jclausing/userdb.txt
+ peid_sig_url: https://raw.githubusercontent.com/viper-framework/viper/master/data/peid/UserDB.TXT
sig_dir: /opt/irma/peid_sig | 2 | 0.5 | 1 | 1 |
0d0f371b56e0d325b6195f9a6457d7f4d93f54f9 | ssh/completion.zsh | ssh/completion.zsh | hosts=$(awk '/^Host / {print $2}' ~/.ssh/config 2>/dev/null | tr ' ' "\n")
zstyle ':completion:*:hosts' hosts $hosts
| local hosts=$(awk '/^Host / {print $2}' ~/.ssh/config.d/* | grep -v '*')
zstyle ':completion:*:hosts' hosts $hosts
| Use include directory for SSH auto-complete | Use include directory for SSH auto-complete
| Shell | mit | lenn4rd/dotfiles,lenn4rd/dotfiles | shell | ## Code Before:
hosts=$(awk '/^Host / {print $2}' ~/.ssh/config 2>/dev/null | tr ' ' "\n")
zstyle ':completion:*:hosts' hosts $hosts
## Instruction:
Use include directory for SSH auto-complete
## Code After:
local hosts=$(awk '/^Host / {print $2}' ~/.ssh/config.d/* | grep -v '*')
zstyle ':completion:*:hosts' hosts $h... | - hosts=$(awk '/^Host / {print $2}' ~/.ssh/config 2>/dev/null | tr ' ' "\n")
? ^^^ ^^^^^^^^ ^ ^ -----
+ local hosts=$(awk '/^Host / {print $2}' ~/.ssh/config.d/* | grep -v '*')
? ++++++ ^^ ^ ^ +++++ ^
zstyle ':comple... | 2 | 1 | 1 | 1 |
76ec9824fadd26e388ba9f3ea8c26377cbe384ac | app/views/admin/topics/_form.html.erb | app/views/admin/topics/_form.html.erb | <%= form_for [:admin, topic] do |topic_form| %>
<%= topic_form.errors %>
<fieldset>
<%= topic_form.text_field :name %>
<%= topic_form.text_area :description %>
</fieldset>
<fieldset>
<h1>Policy ordering</h1>
<%= topic_form.fields_for :document_topics do |document_topic_form| %>
<% if doc... | <%= form_for [:admin, topic] do |topic_form| %>
<%= topic_form.errors %>
<fieldset>
<%= topic_form.text_field :name %>
<%= topic_form.text_area :description %>
</fieldset>
<fieldset>
<legend>Policy ordering</legend>
<%= topic_form.fields_for :document_topics do |document_topic_form| %>
<... | Use a legend, not a heading. | Use a legend, not a heading.
| HTML+ERB | mit | askl56/whitehall,ggoral/whitehall,hotvulcan/whitehall,ggoral/whitehall,hotvulcan/whitehall,askl56/whitehall,YOTOV-LIMITED/whitehall,askl56/whitehall,alphagov/whitehall,alphagov/whitehall,alphagov/whitehall,YOTOV-LIMITED/whitehall,robinwhittleton/whitehall,hotvulcan/whitehall,alphagov/whitehall,hotvulcan/whitehall,robin... | html+erb | ## Code Before:
<%= form_for [:admin, topic] do |topic_form| %>
<%= topic_form.errors %>
<fieldset>
<%= topic_form.text_field :name %>
<%= topic_form.text_area :description %>
</fieldset>
<fieldset>
<h1>Policy ordering</h1>
<%= topic_form.fields_for :document_topics do |document_topic_form| %>... | <%= form_for [:admin, topic] do |topic_form| %>
<%= topic_form.errors %>
<fieldset>
<%= topic_form.text_field :name %>
<%= topic_form.text_area :description %>
</fieldset>
<fieldset>
- <h1>Policy ordering</h1>
? ^^ ^^
+ <legend>Policy ordering</legend>
... | 2 | 0.105263 | 1 | 1 |
af2f7338c2c9bdddbb90af2ce96866af98482215 | concurrency/test_get_websites.py | concurrency/test_get_websites.py | import unittest
from unittest.mock import patch
from concurrency.get_websites import load_url as load_url
class TestGetWebsites(unittest.TestCase):
@patch('concurrency.get_websites.requests')
def test_load_url(self, m):
""" Check that we're getting the data from a request object """
m.get = l... | import unittest
from unittest.mock import patch, MagicMock
from concurrency.get_websites import load_url as load_url
class TestGetWebsites(unittest.TestCase):
@patch('concurrency.get_websites.requests')
def test_load_url_returns_data(self, m):
""" Check that we're getting the data from a request obje... | Add a test case to see that we're making a request with the url we pass in | Add a test case to see that we're making a request with the url we pass in
| Python | mit | b-ritter/python-notes,b-ritter/python-notes | python | ## Code Before:
import unittest
from unittest.mock import patch
from concurrency.get_websites import load_url as load_url
class TestGetWebsites(unittest.TestCase):
@patch('concurrency.get_websites.requests')
def test_load_url(self, m):
""" Check that we're getting the data from a request object """
... | import unittest
- from unittest.mock import patch
+ from unittest.mock import patch, MagicMock
? +++++++++++
from concurrency.get_websites import load_url as load_url
class TestGetWebsites(unittest.TestCase):
@patch('concurrency.get_websites.requests')
- def test... | 15 | 0.9375 | 11 | 4 |
fee97e83ce0ca63bdb7b943ce5d09892223a745a | test/Transforms/InstCombine/phi.ll | test/Transforms/InstCombine/phi.ll | ; This test makes sure that these instructions are properly eliminated.
;
; RUN: if as < %s | opt -instcombine -dce | dis | grep phi
; RUN: then exit 1
; RUN: else exit 0
; RUN: fi
implementation
int "test1"(int %A) {
BB0: br label %BB1
BB1:
%B = phi int [%A, %BB0] ; Combine away one argument PHI nodes
ret int... | ; This test makes sure that these instructions are properly eliminated.
;
; RUN: if as < %s | opt -instcombine -die | dis | grep phi
; RUN: then exit 1
; RUN: else exit 0
; RUN: fi
implementation
int "test1"(int %A, bool %b) {
BB0: br bool %b, label %BB1, label %BB2
BB1:
%B = phi int [%A, %BB0] ; Comb... | Make the testcase more interesting so that DCE does not eliminate it. Use DIE instead of DCE anyway | Make the testcase more interesting so that DCE does not eliminate it.
Use DIE instead of DCE anyway
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@2500 91177308-0d34-0410-b5e6-96231b3b80d8
| LLVM | apache-2.0 | GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/as... | llvm | ## Code Before:
; This test makes sure that these instructions are properly eliminated.
;
; RUN: if as < %s | opt -instcombine -dce | dis | grep phi
; RUN: then exit 1
; RUN: else exit 0
; RUN: fi
implementation
int "test1"(int %A) {
BB0: br label %BB1
BB1:
%B = phi int [%A, %BB0] ; Combine away one argument PH... | ; This test makes sure that these instructions are properly eliminated.
;
- ; RUN: if as < %s | opt -instcombine -dce | dis | grep phi
? ^
+ ; RUN: if as < %s | opt -instcombine -die | dis | grep phi
? ^
; RUN: then exit 1
; RUN:... | 12 | 0.705882 | 7 | 5 |
5e62c889783342238de36baf787de5195a90ab2b | app/views/pages/_new_comment_section.html.erb | app/views/pages/_new_comment_section.html.erb | <div id="new-comment-section">
<h3><%= t('comments.what_do_you_think') %></h3>
<% if current_user %>
<%= render 'comments/form_in_page' %>
<% else %>
<p><label class="label label-info"><%= t('comments.login_needed') %></label></p>
<%= render 'shared/embedded_login_module' %>
<% end -%>
</div> | <div id="new-comment-section">
<h3><%= t('comments.what_do_you_think') %></h3>
<% if current_user %>
<%= render 'comments/form_in_page' %>
<% else %>
<%= render 'shared/embedded_access_control' %>
<% end -%>
</div>
| Call to new tkh_authentication partial in new comment section partial. | Call to new tkh_authentication partial in new comment section partial.
| HTML+ERB | mit | allesklar/tkh_content,allesklar/tkh_content,allesklar/tkh_content | html+erb | ## Code Before:
<div id="new-comment-section">
<h3><%= t('comments.what_do_you_think') %></h3>
<% if current_user %>
<%= render 'comments/form_in_page' %>
<% else %>
<p><label class="label label-info"><%= t('comments.login_needed') %></label></p>
<%= render 'shared/embedded_login_module' %>
<% end -%>
</div>
... | <div id="new-comment-section">
<h3><%= t('comments.what_do_you_think') %></h3>
<% if current_user %>
<%= render 'comments/form_in_page' %>
<% else %>
+ <%= render 'shared/embedded_access_control' %>
- <p><label class="label label-info"><%= t('comments.login_needed') %></label></p>
- <%= render 's... | 3 | 0.333333 | 1 | 2 |
e86ec93def569ec100bcbca7e9f1952e64a0851d | inc/libutils/io/system_log.h | inc/libutils/io/system_log.h | /*
* system_log.h
*
* Author: Ming Tsang
* Copyright (c) 2014 Ming Tsang
* Refer to LICENSE for details
*/
#pragma once
#include "libutils/io/logger.h"
#include "libutils/misc/singleton.h"
namespace libutils
{
namespace io
{
/**
* The default system logger
*/
template<typename CharT>
class SystemLog : publi... | /*
* system_log.h
*
* Author: Ming Tsang
* Copyright (c) 2014 Ming Tsang
* Refer to LICENSE for details
*/
#pragma once
#include "libutils/misc/singleton.h"
namespace libutils
{
namespace io
{
template<typename T> class Logger;
}
}
namespace libutils
{
namespace io
{
/**
* The default system logger
*/
te... | Include logger.h later to prevent using SystemLog before definition | Include logger.h later to prevent using SystemLog before definition | C | mit | nkming2/libutils,nkming2/libutils,nkming2/libutils,nkming2/libutils,nkming2/libutils,nkming2/libutils | c | ## Code Before:
/*
* system_log.h
*
* Author: Ming Tsang
* Copyright (c) 2014 Ming Tsang
* Refer to LICENSE for details
*/
#pragma once
#include "libutils/io/logger.h"
#include "libutils/misc/singleton.h"
namespace libutils
{
namespace io
{
/**
* The default system logger
*/
template<typename CharT>
class S... | /*
* system_log.h
*
* Author: Ming Tsang
* Copyright (c) 2014 Ming Tsang
* Refer to LICENSE for details
*/
#pragma once
- #include "libutils/io/logger.h"
#include "libutils/misc/singleton.h"
+
+ namespace libutils
+ {
+ namespace io
+ {
+
+ template<typename T> class Logger;
+
+ }
+ }
... | 13 | 0.481481 | 12 | 1 |
2b29b2a408f0ed35ce9aeaf7961acc44e56dc449 | doc/basic.md | doc/basic.md |
````php
final class Notification extends \Dy\Orm\Model
{
const TABLE_NAME = 'notification';
// comment this line if you need create_time and update_time
public static $timestamps = false;
}
```` |
````php
namespace MyApp/Resources;
final class Notification extends \Dy\Orm\Model
{
const TABLE_NAME = 'notification';
// comment this line if you need create_time and update_time
public static $timestamps = false;
}
````
In your controller file
````php
use MyApp/Resources/Notification as Notify;
class... | Add a sample for bmfu usage in Codeigniter | Add a sample for bmfu usage in Codeigniter
for #10.
But I didn't run this sample.... oops.
| Markdown | mit | dyweb/bmFu,dyweb/bmFu | markdown | ## Code Before:
````php
final class Notification extends \Dy\Orm\Model
{
const TABLE_NAME = 'notification';
// comment this line if you need create_time and update_time
public static $timestamps = false;
}
````
## Instruction:
Add a sample for bmfu usage in Codeigniter
for #10.
But I didn't run this sampl... |
````php
+ namespace MyApp/Resources;
+
final class Notification extends \Dy\Orm\Model
{
const TABLE_NAME = 'notification';
// comment this line if you need create_time and update_time
public static $timestamps = false;
}
````
+
+ In your controller file
+
+ ````php
+ use MyApp/Resource... | 22 | 2.444444 | 22 | 0 |
3ad630f5570101f6f7aa077de622f29e319e7f4b | main.cpp | main.cpp | using namespace roadagain;
int main()
{
initscr();
cbreak();
noecho();
curs_set(0);
start_color();
init_colors();
board b(5, 5);
keybindings k("emacs");
while (!b.is_perfect()){
char c = getch();
const char* key = keyname(c);
b.move_board(k.dy(key), k.dx(ke... | using namespace roadagain;
int main(int argc, char** argv)
{
initscr();
cbreak();
noecho();
curs_set(0);
start_color();
init_colors();
std::string key = "vim";
for (int i = 1; i < argc; i++){
if (std::strncmp("--key=", argv[i], 6) == 0){
key = argv[i] + 6;
}... | Add getting keybindings from argv | Add getting keybindings from argv
| C++ | mit | Roadagain/KeyBindings-LightsOut | c++ | ## Code Before:
using namespace roadagain;
int main()
{
initscr();
cbreak();
noecho();
curs_set(0);
start_color();
init_colors();
board b(5, 5);
keybindings k("emacs");
while (!b.is_perfect()){
char c = getch();
const char* key = keyname(c);
b.move_board(k.... | using namespace roadagain;
- int main()
+ int main(int argc, char** argv)
{
initscr();
cbreak();
noecho();
curs_set(0);
start_color();
init_colors();
+ std::string key = "vim";
+ for (int i = 1; i < argc; i++){
+ if (std::strncmp("--key=", argv[i], 6) == 0){... | 11 | 0.478261 | 9 | 2 |
5e54ab8cf23b519e6962e9a5352bd33f787c81a1 | package.json | package.json | {
"name": "gl-css3d",
"description": "",
"version": "0.0.1",
"main": "gl-css3d.js",
"repository": {
"type": "git",
"url": "git@github.com:deathcap/gl-css3d.git"
},
"keywords": [],
"scripts": {
"start": "wzrd demo.js"
},
"dependencies": {
"matrix-to-css": "^1.0.4",
"gl-mat4": "^1.... | {
"name": "gl-css3d",
"description": "",
"version": "0.0.1",
"main": "gl-css3d.js",
"repository": {
"type": "git",
"url": "git@github.com:deathcap/gl-css3d.git"
},
"keywords": [
"css3d",
"webgl"
],
"scripts": {
"start": "wzrd demo.js"
},
"dependencies": {
"matrix-to-css": "... | Add missing wzrd development dependency | Add missing wzrd development dependency
| JSON | mit | deathcap/gl-css3d | json | ## Code Before:
{
"name": "gl-css3d",
"description": "",
"version": "0.0.1",
"main": "gl-css3d.js",
"repository": {
"type": "git",
"url": "git@github.com:deathcap/gl-css3d.git"
},
"keywords": [],
"scripts": {
"start": "wzrd demo.js"
},
"dependencies": {
"matrix-to-css": "^1.0.4",
... | {
"name": "gl-css3d",
"description": "",
"version": "0.0.1",
"main": "gl-css3d.js",
"repository": {
"type": "git",
"url": "git@github.com:deathcap/gl-css3d.git"
},
- "keywords": [],
? --
+ "keywords": [
+ "css3d",
+ "webgl"
+ ],
"scripts": {
... | 8 | 0.266667 | 6 | 2 |
d215c789145d0068d0eaba170bea412a69f9d135 | plugins/fb_app/views/fb_app_plugin_myprofile/_settings.html.erb | plugins/fb_app/views/fb_app_plugin_myprofile/_settings.html.erb | <h1><%= t('fb_app_plugin.lib.plugin.name') %></h1>
<%= button(:back, _('Back to control panel'), :controller => 'profile_editor') %>
<div id="fb-app-connect-status">
<%= render 'intro' if @auth.not_authorized? %>
<div id="fb-app-auth">
<%= render 'auth' %>
</div>
</div>
<% if @auth.connected? or Rails.env.... | <h1><%= t('fb_app_plugin.lib.plugin.name') %></h1>
<%= button(:back, _('Back to control panel'), :controller => 'profile_editor') %>
<div id="fb-app-connect-status">
<%= render 'intro' if @auth.not_authorized? %>
<div id="fb-app-auth">
<%= render 'auth' %>
</div>
</div>
<% if @auth.connected? or Rails.env.... | Make some suspense about timeline posting in cirandas | Make some suspense about timeline posting in cirandas | HTML+ERB | agpl-3.0 | CIRANDAS/noosfero-ecosol,blogoosfero/noosfero,coletivoEITA/noosfero-ecosol,coletivoEITA/noosfero-ecosol,EcoAlternative/noosfero-ecosol,blogoosfero/noosfero,CIRANDAS/noosfero-ecosol,CIRANDAS/noosfero-ecosol,EcoAlternative/noosfero-ecosol,EcoAlternative/noosfero-ecosol,blogoosfero/noosfero,coletivoEITA/noosfero-ecosol,sa... | html+erb | ## Code Before:
<h1><%= t('fb_app_plugin.lib.plugin.name') %></h1>
<%= button(:back, _('Back to control panel'), :controller => 'profile_editor') %>
<div id="fb-app-connect-status">
<%= render 'intro' if @auth.not_authorized? %>
<div id="fb-app-auth">
<%= render 'auth' %>
</div>
</div>
<% if @auth.connecte... | <h1><%= t('fb_app_plugin.lib.plugin.name') %></h1>
<%= button(:back, _('Back to control panel'), :controller => 'profile_editor') %>
<div id="fb-app-connect-status">
<%= render 'intro' if @auth.not_authorized? %>
<div id="fb-app-auth">
<%= render 'auth' %>
</div>
</div>
<% if @auth.... | 18 | 0.580645 | 12 | 6 |
829a560e4aedaa001591eb937f74f84724029269 | README.md | README.md | lumoslabs/bootstrap_haml_helpers
====
HAML wrappers for [Twitter Bootstrap](http://getbootstrap.com/2.3.2) components.
Integration
----
To integrate our gem into your application, follow these steps:
1. Add it to your gemfile, gem 'bootstrap_haml_helpers'
2. bundle
3. Add the following line to your main SASS file (t... | lumoslabs/bootstrap_haml_helpers
====
HAML wrappers for [Twitter Bootstrap](http://getbootstrap.com/2.3.2) components.
Integration
----
To integrate our gem into your application, follow these steps:
1. Add it to your gemfile, gem 'bootstrap_haml_helpers'
2. bundle
3. Add the following line to your main SASS file (t... | Document the versioning scheme for the gem. | Document the versioning scheme for the gem.
| Markdown | mit | lumoslabs/bootstrap_haml_helpers | markdown | ## Code Before:
lumoslabs/bootstrap_haml_helpers
====
HAML wrappers for [Twitter Bootstrap](http://getbootstrap.com/2.3.2) components.
Integration
----
To integrate our gem into your application, follow these steps:
1. Add it to your gemfile, gem 'bootstrap_haml_helpers'
2. bundle
3. Add the following line to your m... | lumoslabs/bootstrap_haml_helpers
====
HAML wrappers for [Twitter Bootstrap](http://getbootstrap.com/2.3.2) components.
Integration
----
To integrate our gem into your application, follow these steps:
1. Add it to your gemfile, gem 'bootstrap_haml_helpers'
2. bundle
3. Add the following line t... | 4 | 0.235294 | 4 | 0 |
ef9bdd71d77b6bd5f4a252be7da62e21d15999ed | server/boot/updateModelTime.js | server/boot/updateModelTime.js | /**
* For each our own defined models, handle 'created' and 'lastUpdated' automatically.
* Refer to: http://docs.strongloop.com/display/public/LB/Operation+hooks
* Created by Ting on 2015/5/18.
*/
module.exports = function (app) {
var builtInModels = ['User', 'Email', 'ACL', 'AccessToken', 'Role', 'RoleMapping'];... | /**
* For each our own defined models, handle 'created' and 'lastUpdated' automatically.
* Refer to: http://docs.strongloop.com/display/public/LB/Operation+hooks
* Created by Ting on 2015/5/18.
*/
var loopback = require('loopback');
module.exports = function (app) {
var builtInModels = ['User', 'Email', 'ACL', 'A... | Replace 'memberId' according to current accessToken, avoid user change it in client. | Replace 'memberId' according to current accessToken, avoid user change it in client.
| JavaScript | apache-2.0 | jarvisji/FreeCoder,jarvisji/FreeCoder,jarvisji/FreeCoder | javascript | ## Code Before:
/**
* For each our own defined models, handle 'created' and 'lastUpdated' automatically.
* Refer to: http://docs.strongloop.com/display/public/LB/Operation+hooks
* Created by Ting on 2015/5/18.
*/
module.exports = function (app) {
var builtInModels = ['User', 'Email', 'ACL', 'AccessToken', 'Role',... | /**
* For each our own defined models, handle 'created' and 'lastUpdated' automatically.
* Refer to: http://docs.strongloop.com/display/public/LB/Operation+hooks
* Created by Ting on 2015/5/18.
*/
+ var loopback = require('loopback');
module.exports = function (app) {
var builtInModels = ['User', 'E... | 9 | 0.391304 | 9 | 0 |
ad4993d2c9717161026c1a60af5d03bc76c49529 | README.md | README.md | A lightweight jQuery lightbox plugin so light it's lighter than light. The CSS and JS file combined is only 1.129kb 🎉🔥🔥🔥🎉.
## Usage
MiniModal requires jQuery version 1.3.0 or higher,
```html
<script src="//code.jquery.com/jquery-latest.js"></script>
<script src="mini-modal.min.js" type="text/javascript" charset=... | A lightweight jQuery lightbox plugin so light it's lighter than light. The CSS and JS file combined is only 1.129kb 🎉🔥🔥🔥🎉.
## Usage
MiniModal requires jQuery version 1.3.0 or higher,
```html
<script src="//code.jquery.com/jquery-latest.js"></script>
<script src="mini-modal.min.js" type="text/javascript" charset=... | Remove extra js script snippet. | Remove extra js script snippet.
| Markdown | mit | magnificode/minimodal,magnificode/minimodal | markdown | ## Code Before:
A lightweight jQuery lightbox plugin so light it's lighter than light. The CSS and JS file combined is only 1.129kb 🎉🔥🔥🔥🎉.
## Usage
MiniModal requires jQuery version 1.3.0 or higher,
```html
<script src="//code.jquery.com/jquery-latest.js"></script>
<script src="mini-modal.min.js" type="text/java... | A lightweight jQuery lightbox plugin so light it's lighter than light. The CSS and JS file combined is only 1.129kb 🎉🔥🔥🔥🎉.
## Usage
MiniModal requires jQuery version 1.3.0 or higher,
```html
<script src="//code.jquery.com/jquery-latest.js"></script>
<script src="mini-modal.min.js" type="text/java... | 5 | 0.147059 | 0 | 5 |
647269d9ceec623ffee4780d838fb053bcff79bb | README.md | README.md | A computational lab for ASEN 3111 that uses the Vortex Panel Method to compute the lifting flow over several different NACA airfoils.
## Update Journal
#### This serves as a listing of software updates during the software development process
#### Updates are listed reverse chronologically
### Update 1:
Files initial... | A computational lab for ASEN 3111 that uses the Vortex Panel Method to compute the lifting flow over several different NACA airfoils.
# Running the Code:
* Download all Matlab Files
* Open in Matlab software (2014b or newer)
* Run the "runThis.m" file
* All calculations will be run
# Changing the Code for Other Reso... | Add info for running the code | Add info for running the code | Markdown | mit | Jual6332/VortexPanelMethod | markdown | ## Code Before:
A computational lab for ASEN 3111 that uses the Vortex Panel Method to compute the lifting flow over several different NACA airfoils.
## Update Journal
#### This serves as a listing of software updates during the software development process
#### Updates are listed reverse chronologically
### Update ... | A computational lab for ASEN 3111 that uses the Vortex Panel Method to compute the lifting flow over several different NACA airfoils.
- ## Update Journal
+ # Running the Code:
+ * Download all Matlab Files
+ * Open in Matlab software (2014b or newer)
+ * Run the "runThis.m" file
+ * All calculations will be run
+... | 16 | 1 | 15 | 1 |
c1307594bb64a53e90738a809c59524f39c65c10 | README.md | README.md | WakomExercice
=============
www.asciipenguins.webs.com
| WakomExercice
=============
The rules:
1- no one talk about fight club
2- DO NOT TOUCH BLACK THINGS IF YOU DONT WANT TO START AGAIN
3- try to reach the other side of the window to win
3.5- the colision will be detected by the red dot, deal with it
4- Enjoy it. (it is a rule, so if you are not enjoying the game is ... | READ IT sriously do it | READ IT sriously do it
| Markdown | mit | kaitokidi/WakomExercice | markdown | ## Code Before:
WakomExercice
=============
www.asciipenguins.webs.com
## Instruction:
READ IT sriously do it
## Code After:
WakomExercice
=============
The rules:
1- no one talk about fight club
2- DO NOT TOUCH BLACK THINGS IF YOU DONT WANT TO START AGAIN
3- try to reach the other side of the window to win
3.5-... | WakomExercice
=============
+ The rules:
+ 1- no one talk about fight club
+ 2- DO NOT TOUCH BLACK THINGS IF YOU DONT WANT TO START AGAIN
+ 3- try to reach the other side of the window to win
+ 3.5- the colision will be detected by the red dot, deal with it
+ 4- Enjoy it. (it is a rule, so if you are not enj... | 18 | 4.5 | 18 | 0 |
32cc986d3a8948dc3daf747dfdd684dcef5df0d2 | packages/wi/witch.yaml | packages/wi/witch.yaml | homepage: ''
changelog-type: ''
hash: e27cfdd94a5f1171f441707646f87a6372d2b8ab8a31739fc1ee4d1b30028238
test-bench-deps:
bytestring: -any
base: -any
hspec: '>=2.7.1 && <2.8'
text: -any
witch: -any
containers: -any
QuickCheck: '>=2.13.2 && <2.14'
maintainer: Taylor Fausak
synopsis: Convert values from one t... | homepage: ''
changelog-type: markdown
hash: 2d0ec123e5ba6bdf4c07d93af4fc8ecda9e354e6213d8a71779210dacaf2aa1e
test-bench-deps:
bytestring: -any
base: -any
hspec: '>=2.7.1 && <2.8'
text: -any
witch: -any
containers: -any
QuickCheck: '>=2.13.2 && <2.14'
maintainer: Taylor Fausak
synopsis: Convert values from... | Update from Hackage at 2020-11-14T17:55:54Z | Update from Hackage at 2020-11-14T17:55:54Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: ''
changelog-type: ''
hash: e27cfdd94a5f1171f441707646f87a6372d2b8ab8a31739fc1ee4d1b30028238
test-bench-deps:
bytestring: -any
base: -any
hspec: '>=2.7.1 && <2.8'
text: -any
witch: -any
containers: -any
QuickCheck: '>=2.13.2 && <2.14'
maintainer: Taylor Fausak
synopsis: Convert v... | homepage: ''
- changelog-type: ''
? ^^
+ changelog-type: markdown
? ^^^^^^^^
- hash: e27cfdd94a5f1171f441707646f87a6372d2b8ab8a31739fc1ee4d1b30028238
+ hash: 2d0ec123e5ba6bdf4c07d93af4fc8ecda9e354e6213d8a71779210dacaf2aa1e
test-bench-deps:
bytestring: -any
base: -any
hs... | 13 | 0.448276 | 9 | 4 |
dc43be8d6b34de47b5bcb900e7d055372c2e28cc | parseBowtieOutput.py | parseBowtieOutput.py | import sys, getopt
import libPipeline
# Set constants
helpMsg ='''
SYNOPSIS
parseBowtieOutput
parseBowtieOutput [OPTIONS] [FILE]
#
DESCRIPTION
parseBowtieOutput.py
Parses Bowtie alignments into paired-end read summaries.
Prints results to stdout.
OPTIONS
-h/--help Print help mes... | import sys, getopt
import libPipeline
# Set constants
helpMsg ='''
SYNOPSIS
parseBowtieOutput
parseBowtieOutput [OPTIONS] [FILE]
#
DESCRIPTION
parseBowtieOutput.py
Parses Bowtie alignments into paired-end read summaries.
Required if not using SAM output.
However, with SAM output, can parse... | Add note on advantages of SAM format. | Add note on advantages of SAM format.
| Python | apache-2.0 | awblocker/paired-end-pipeline,awblocker/paired-end-pipeline | python | ## Code Before:
import sys, getopt
import libPipeline
# Set constants
helpMsg ='''
SYNOPSIS
parseBowtieOutput
parseBowtieOutput [OPTIONS] [FILE]
#
DESCRIPTION
parseBowtieOutput.py
Parses Bowtie alignments into paired-end read summaries.
Prints results to stdout.
OPTIONS
-h/--help ... | import sys, getopt
import libPipeline
# Set constants
helpMsg ='''
SYNOPSIS
parseBowtieOutput
parseBowtieOutput [OPTIONS] [FILE]
#
DESCRIPTION
parseBowtieOutput.py
Parses Bowtie alignments into paired-end read summaries.
+ Required if not using SAM output.
+ Howev... | 3 | 0.069767 | 3 | 0 |
2c22b87b40e70dbb70e47a868408aa742bad019d | lib/tasks/data_migrations/remove_deprecated_star_records.rake | lib/tasks/data_migrations/remove_deprecated_star_records.rake | namespace :data_migration do
desc "Remove deprecated STAR records"
task remove_deprecated_star: :environment do
Assessment.where(family: 'STAR').destroy_all
end
end
| namespace :data_migration do
desc "Remove deprecated STAR records"
task remove_deprecated_star: :environment do
puts "Records in student_assessment table: #{StudentAssessment.count}"
put "Destorying STAR assessments..."
Assessment.where(family: 'STAR').destroy_all
puts "Done."
puts "Records in... | Add more logging to deprecated records check | Add more logging to deprecated records check
| Ruby | mit | studentinsights/studentinsights,studentinsights/studentinsights,studentinsights/studentinsights,studentinsights/studentinsights | ruby | ## Code Before:
namespace :data_migration do
desc "Remove deprecated STAR records"
task remove_deprecated_star: :environment do
Assessment.where(family: 'STAR').destroy_all
end
end
## Instruction:
Add more logging to deprecated records check
## Code After:
namespace :data_migration do
desc "Remove depreca... | namespace :data_migration do
desc "Remove deprecated STAR records"
task remove_deprecated_star: :environment do
+ puts "Records in student_assessment table: #{StudentAssessment.count}"
+
+ put "Destorying STAR assessments..."
Assessment.where(family: 'STAR').destroy_all
+ puts "Done."
+
+ ... | 6 | 1 | 6 | 0 |
b2fcda1c15fa5c0ad33d29417c142e80fcf39eb6 | release.sh | release.sh | set -e
echo "Enter release version: "
read VERSION
read -p "Releasing $VERSION - are you sure? (y/n)" -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo "Releasing $VERSION ..."
# lint and test
npm run lint 2>/dev/null
npm test 2>/dev/null
# build
npm run build
# commi... | set -e
echo "Enter release version: "
read VERSION
read -p "Releasing $VERSION - are you sure? (y/n)" -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo "Releasing $VERSION ..."
# lint and test
npm run lint 2>/dev/null
npm test 2>/dev/null
# build
npm run build
# commi... | Remove the next tag when publish to npm | Remove the next tag when publish to npm
| Shell | mit | PeachScript/vue-infinite-loading,PeachScript/vue-infinite-loading | shell | ## Code Before:
set -e
echo "Enter release version: "
read VERSION
read -p "Releasing $VERSION - are you sure? (y/n)" -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo "Releasing $VERSION ..."
# lint and test
npm run lint 2>/dev/null
npm test 2>/dev/null
# build
npm run ... | set -e
echo "Enter release version: "
read VERSION
read -p "Releasing $VERSION - are you sure? (y/n)" -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo "Releasing $VERSION ..."
# lint and test
npm run lint 2>/dev/null
npm test 2>/dev/null
# bu... | 2 | 0.045455 | 1 | 1 |
b636372137487a366e8c11172692755f615763ca | package.json | package.json | {
"name": "pluralize",
"version": "3.0.0",
"description": "Pluralize and singularize any word",
"main": "pluralize.js",
"files": [
"pluralize.js"
],
"scripts": {
"lint": "semistandard",
"test-spec": "mocha -R spec --bail",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- -R spe... | {
"name": "pluralize",
"version": "3.0.0",
"description": "Pluralize and singularize any word",
"main": "pluralize.js",
"files": [
"pluralize.js"
],
"scripts": {
"lint": "semistandard",
"test-spec": "mocha -R spec --bail",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- -R spe... | Remove `pre-commit` from development workflow | Remove `pre-commit` from development workflow
| JSON | mit | blakeembrey/pluralize | json | ## Code Before:
{
"name": "pluralize",
"version": "3.0.0",
"description": "Pluralize and singularize any word",
"main": "pluralize.js",
"files": [
"pluralize.js"
],
"scripts": {
"lint": "semistandard",
"test-spec": "mocha -R spec --bail",
"test-cov": "istanbul cover node_modules/mocha/bin/... | {
"name": "pluralize",
"version": "3.0.0",
"description": "Pluralize and singularize any word",
"main": "pluralize.js",
"files": [
"pluralize.js"
],
"scripts": {
"lint": "semistandard",
"test-spec": "mocha -R spec --bail",
"test-cov": "istanbul cover node_modules/mo... | 1 | 0.026316 | 0 | 1 |
8c829381d7ce3980763bf2b45d83d5c50339843e | src/components/Dataset/DatasetSection.js | src/components/Dataset/DatasetSection.js | import React from 'react'
import './DatasetDetail.css'
import { doneSince } from '../../helpers/doneSince'
const styles = {
resume: {
display: 'flex',
flexDirection: 'column',
},
infos: {
display: 'flex',
},
}
const DatasetSection = ({dataset}) => {
const type = dataset.metadata.type || 'inconnu... | import React from 'react'
import MarkdownViewer from '../Markdown/MarkdownViewer'
import './DatasetDetail.css'
import { doneSince } from '../../helpers/doneSince'
import { theme } from '../../tools'
const styles = {
resume: {
display: 'flex',
flexDirection: 'column',
padding: '2em',
color: '#fff',
... | Use MarkdownViewer for Dataset description | Use MarkdownViewer for Dataset description
| JavaScript | mit | sgmap/inspire,sgmap/inspire | javascript | ## Code Before:
import React from 'react'
import './DatasetDetail.css'
import { doneSince } from '../../helpers/doneSince'
const styles = {
resume: {
display: 'flex',
flexDirection: 'column',
},
infos: {
display: 'flex',
},
}
const DatasetSection = ({dataset}) => {
const type = dataset.metadata.... | import React from 'react'
+ import MarkdownViewer from '../Markdown/MarkdownViewer'
import './DatasetDetail.css'
import { doneSince } from '../../helpers/doneSince'
+ import { theme } from '../../tools'
const styles = {
resume: {
display: 'flex',
flexDirection: 'column',
+ padding: '2em',... | 30 | 0.857143 | 20 | 10 |
376fd0782a5f57ba3aae46d12a07be6598cfc016 | source/views/layouts/partials/_footer_support_links.html.erb | source/views/layouts/partials/_footer_support_links.html.erb | <h2 class="visuallyhidden">Support links</h2>
<ul>
<li><a href="http://www.gov.uk/help">Help</a></li>
<li><a href="http://www.gov.uk/help/cookies">Cookies</a></li>
<li><a href="http://www.gov.uk/contact">Contact</a></li>
<li><a href="http://www.gov.uk/... | <h2 class="visuallyhidden">Support links</h2>
<ul>
<% if content_for?(:footer_support_links_override) %>
<%= yield(:footer_support_links_override) %>
<% else %>
<li><a href="http://www.gov.uk/help">Help</a></li>
<li><a href="http://... | Allow support links to be overridden | Allow support links to be overridden
| HTML+ERB | mit | ministryofjustice/moj_template,ministryofjustice/moj_template,ministryofjustice/moj_template,ministryofjustice/moj_template,ministryofjustice/moj_template | html+erb | ## Code Before:
<h2 class="visuallyhidden">Support links</h2>
<ul>
<li><a href="http://www.gov.uk/help">Help</a></li>
<li><a href="http://www.gov.uk/help/cookies">Cookies</a></li>
<li><a href="http://www.gov.uk/contact">Contact</a></li>
<li><a href="ht... | <h2 class="visuallyhidden">Support links</h2>
<ul>
+ <% if content_for?(:footer_support_links_override) %>
+ <%= yield(:footer_support_links_override) %>
+ <% else %>
- <li><a href="http://www.gov.uk/help">Help</a></li>
+ <li><a h... | 12 | 1.090909 | 8 | 4 |
1a60b4381c63041ea79fb114448a4eff1885430e | README.md | README.md | Yet Another Http Client
**Yet Another Http Client** is a small client side HTTP request library. The
purpose is to permit to make http request with simplicity.
## Installation
If you want use **yahc** you have to install it. There are two methods to do
that:
n your package.json add the following item:
```json
"yah... | Yet Another Http Client
**Yet Another Http Client** is a small client side HTTP request library. The
purpose is to permit to make http request with simplicity.
## Installation
If you want use **yahc** you have to install it. There are two methods to do
that:
n your package.json add the following item:
```json
"yah... | Fix simple use in documentation | Fix simple use in documentation
| Markdown | apache-2.0 | NickNaso/yahc | markdown | ## Code Before:
Yet Another Http Client
**Yet Another Http Client** is a small client side HTTP request library. The
purpose is to permit to make http request with simplicity.
## Installation
If you want use **yahc** you have to install it. There are two methods to do
that:
n your package.json add the following it... | Yet Another Http Client
**Yet Another Http Client** is a small client side HTTP request library. The
purpose is to permit to make http request with simplicity.
## Installation
If you want use **yahc** you have to install it. There are two methods to do
that:
n your package.json add the followin... | 18 | 0.310345 | 9 | 9 |
265a20787f6982e5b0373656efbc01512c179576 | app/src/ui/cli-installed/cli-installed.tsx | app/src/ui/cli-installed/cli-installed.tsx | import * as React from 'react'
import { Button } from '../lib/button'
import { ButtonGroup } from '../lib/button-group'
import { Dialog, DialogContent, DialogFooter } from '../dialog'
import { InstalledCLIPath } from '../lib/install-cli'
interface ICLIInstalledProps {
/** Called when the popup should be dismissed. *... | import * as React from 'react'
import { Dialog, DialogContent, DefaultDialogFooter } from '../dialog'
import { InstalledCLIPath } from '../lib/install-cli'
interface ICLIInstalledProps {
/** Called when the popup should be dismissed. */
readonly onDismissed: () => void
}
/** Tell the user the CLI tool was success... | Convert cli installed notice dialog to default dialog footer | Convert cli installed notice dialog to default dialog footer
| TypeScript | mit | desktop/desktop,say25/desktop,kactus-io/kactus,shiftkey/desktop,say25/desktop,artivilla/desktop,shiftkey/desktop,j-f1/forked-desktop,kactus-io/kactus,say25/desktop,shiftkey/desktop,artivilla/desktop,j-f1/forked-desktop,say25/desktop,desktop/desktop,desktop/desktop,artivilla/desktop,j-f1/forked-desktop,kactus-io/kactus,... | typescript | ## Code Before:
import * as React from 'react'
import { Button } from '../lib/button'
import { ButtonGroup } from '../lib/button-group'
import { Dialog, DialogContent, DialogFooter } from '../dialog'
import { InstalledCLIPath } from '../lib/install-cli'
interface ICLIInstalledProps {
/** Called when the popup should... | import * as React from 'react'
- import { Button } from '../lib/button'
- import { ButtonGroup } from '../lib/button-group'
- import { Dialog, DialogContent, DialogFooter } from '../dialog'
+ import { Dialog, DialogContent, DefaultDialogFooter } from '../dialog'
? +++++++
import { ... | 10 | 0.25641 | 2 | 8 |
eb7aef13be3cefa786e6c54bba0b4c719dbf1d1d | .travis.yml | .travis.yml | if: tag IS present OR type = pull_request OR (branch = master AND type = push) # we only CI the master, tags and PRs
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.7-dev"
addons:
apt:
packages:
- graphviz
install:
- pip install -U pip setuptools
- python setup.py sdist
- ... | if: tag IS present OR type = pull_request OR (branch = master AND type = push) # we only CI the master, tags and PRs
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
# Enable 3.7 without globally enabling sudo and dist: xenial for other build jobs
matrix:
include:
- python: 3.7
dist: xen... | Replace 3.7-dev with 3.7 final | Replace 3.7-dev with 3.7 final
| YAML | mit | erocarrera/pydot,pydot/pydot | yaml | ## Code Before:
if: tag IS present OR type = pull_request OR (branch = master AND type = push) # we only CI the master, tags and PRs
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.7-dev"
addons:
apt:
packages:
- graphviz
install:
- pip install -U pip setuptools
- python set... | if: tag IS present OR type = pull_request OR (branch = master AND type = push) # we only CI the master, tags and PRs
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- - "3.7-dev"
+
+ # Enable 3.7 without globally enabling sudo and dist: xenial for other build jobs
+ matrix:
+ in... | 8 | 0.296296 | 7 | 1 |
b5ba0430b012d93367a4f87c304f1d4c8c22941c | lib/node-modules-paths.js | lib/node-modules-paths.js | var path = require('path');
module.exports = function (start, opts) {
var modules = opts.moduleDirectory || 'node_modules';
var splitRe = process.platform === 'win32' ? /[\/\\]/ : /\/+/;
var parts = start.split(splitRe);
var dirs = [];
for (var i = parts.length - 1; i >= 0; i--) {
if (par... | var path = require('path');
module.exports = function (start, opts) {
var modules = opts.moduleDirectory || 'node_modules';
var prefix = '/';
if (/^([A-Za-z]:)/.test(start)) {
prefix = '';
} else if (/^\\\\/.test(start)) {
prefix = '\\\\';
}
var splitRe = process.platform === '... | Fix prefix for windows azure | Fix prefix for windows azure
| JavaScript | mit | AuyaJackie/node-resolve,jameswomack/node-resolve,substack/node-resolve,parshap/node-resolve | javascript | ## Code Before:
var path = require('path');
module.exports = function (start, opts) {
var modules = opts.moduleDirectory || 'node_modules';
var splitRe = process.platform === 'win32' ? /[\/\\]/ : /\/+/;
var parts = start.split(splitRe);
var dirs = [];
for (var i = parts.length - 1; i >= 0; i--) {... | var path = require('path');
module.exports = function (start, opts) {
var modules = opts.moduleDirectory || 'node_modules';
+ var prefix = '/';
+ if (/^([A-Za-z]:)/.test(start)) {
+ prefix = '';
+ } else if (/^\\\\/.test(start)) {
+ prefix = '\\\\';
+ }
var splitRe ... | 11 | 0.5 | 7 | 4 |
1b2a41c8f2297a890a560bae72ecce912d509d5a | app/models/georgia/concerns/contentable.rb | app/models/georgia/concerns/contentable.rb | require 'active_support/concern'
module Georgia
module Concerns
module Contentable
extend ActiveSupport::Concern
included do
has_many :contents, as: :contentable, dependent: :destroy, class_name: Georgia::Content
accepts_nested_attributes_for :contents
attr_accessible :conten... | require 'active_support/concern'
module Georgia
module Concerns
module Contentable
extend ActiveSupport::Concern
included do
has_many :contents, as: :contentable, dependent: :destroy, class_name: Georgia::Content
accepts_nested_attributes_for :contents
attr_accessible :conten... | Add locale to the delegated method list | Add locale to the delegated method list
| Ruby | mit | georgia-cms/georgia,georgia-cms/georgia,georgia-cms/georgia | ruby | ## Code Before:
require 'active_support/concern'
module Georgia
module Concerns
module Contentable
extend ActiveSupport::Concern
included do
has_many :contents, as: :contentable, dependent: :destroy, class_name: Georgia::Content
accepts_nested_attributes_for :contents
attr_ac... | require 'active_support/concern'
module Georgia
module Concerns
module Contentable
extend ActiveSupport::Concern
included do
has_many :contents, as: :contentable, dependent: :destroy, class_name: Georgia::Content
accepts_nested_attributes_for :contents
a... | 4 | 0.166667 | 1 | 3 |
32a933a7dfe9d3331e1f8cc7b0d04a38f91b5d6e | flume_1.5.2-1/etc/flume/flume-conf.properties | flume_1.5.2-1/etc/flume/flume-conf.properties | agent.sources = seqGenSrc
agent.channels = memoryChannel
agent.sinks = hdfsSink
agent.sources.seqGenSrc.type = seq
agent.sources.seqGenSrc.channels = memoryChannel
agent.sinks.hdfsSink.type = hdfs
agent.sinks.hdfsSink.channel = memoryChannel
agent.sinks.hdfsSink.hdfs.path = hdfs://bd-test-master.hvgdev.hu:9000/flume/... | agent.sources = seqGenSrc
agent.channels = memoryChannel
agent.sinks = loggerSink
agent.sources.seqGenSrc.type = seq
agent.sources.seqGenSrc.channels = memoryChannel
agent.sinks.logger.type = logger
agent.sinks.logger.channel = memoryChannel
agent.channels.memoryChannel.type = memory
agent.channels.memoryChannel.cap... | Use default config instead of the old one with the HDFS sink | Use default config instead of the old one with the HDFS sink
| INI | apache-2.0 | balazsbotond/flume-deb-package,balazsbotond/flume-deb-package,balazsbotond/flume-deb-package | ini | ## Code Before:
agent.sources = seqGenSrc
agent.channels = memoryChannel
agent.sinks = hdfsSink
agent.sources.seqGenSrc.type = seq
agent.sources.seqGenSrc.channels = memoryChannel
agent.sinks.hdfsSink.type = hdfs
agent.sinks.hdfsSink.channel = memoryChannel
agent.sinks.hdfsSink.hdfs.path = hdfs://bd-test-master.hvgde... | agent.sources = seqGenSrc
agent.channels = memoryChannel
- agent.sinks = hdfsSink
? ^^^^
+ agent.sinks = loggerSink
? ^^^^^^
agent.sources.seqGenSrc.type = seq
agent.sources.seqGenSrc.channels = memoryChannel
- agent.sinks.hdfsSink.type = hdfs
+ agent.sinks.logger.type = logg... | 12 | 0.666667 | 3 | 9 |
f7610f76241bc87954253ffcb2f446aa0679673f | lib/js/backend/test/index.html | lib/js/backend/test/index.html | <!-- Copyright 2015 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | <!-- Copyright 2015 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | Remove script tag referencing non-existing file. Change: 116379470 | Remove script tag referencing non-existing file.
Change: 116379470
| HTML | apache-2.0 | qiuminxu/tensorboard,ioeric/tensorboard,agrubb/tensorboard,tensorflow/tensorboard,agrubb/tensorboard,tensorflow/tensorboard,francoisluus/tensorboard-supervise,francoisluus/tensorboard-supervise,ioeric/tensorboard,agrubb/tensorboard,francoisluus/tensorboard-supervise,ioeric/tensorboard,tensorflow/tensorboard,agrubb/tens... | html | ## Code Before:
<!-- Copyright 2015 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... | <!-- Copyright 2015 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law ... | 1 | 0.03125 | 0 | 1 |
016988a9455a71e639672cab88d6c4819722c481 | Casks/openlp.rb | Casks/openlp.rb | class Openlp < Cask
version '2.0.4'
sha256 '24850da1e2d75b17d76cf102721d4c5e56d8faaa97ce1194577264c8edc6cc70'
url "http://builds.openlp.org/OpenLP-#{version}.dmg"
homepage 'http://openlp.org'
license :unknown
app 'OpenLP.app'
end
| class Openlp < Cask
version '2.0.5'
sha256 '0ba5a37c359394c277e221f8ca74191d3425cf3cfbd70699d81346c77c93d746'
# sourceforge is the official download host per the vendor homepage
url "http://downloads.sourceforge.net/project/openlp/openlp/#{version}/OpenLP-#{version}.dmg"
homepage 'http://openlp.org'
licens... | Fix OpenLP.app & upgrade to 2.0.5 | Fix OpenLP.app & upgrade to 2.0.5
Closes #7310.
| Ruby | bsd-2-clause | cobyism/homebrew-cask,casidiablo/homebrew-cask,englishm/homebrew-cask,bgandon/homebrew-cask,atsuyim/homebrew-cask,squid314/homebrew-cask,MircoT/homebrew-cask,greg5green/homebrew-cask,tan9/homebrew-cask,jedahan/homebrew-cask,andrewdisley/homebrew-cask,claui/homebrew-cask,jacobdam/homebrew-cask,tmoreira2020/homebrew,dvdo... | ruby | ## Code Before:
class Openlp < Cask
version '2.0.4'
sha256 '24850da1e2d75b17d76cf102721d4c5e56d8faaa97ce1194577264c8edc6cc70'
url "http://builds.openlp.org/OpenLP-#{version}.dmg"
homepage 'http://openlp.org'
license :unknown
app 'OpenLP.app'
end
## Instruction:
Fix OpenLP.app & upgrade to 2.0.5
Closes #... | class Openlp < Cask
- version '2.0.4'
? ^
+ version '2.0.5'
? ^
- sha256 '24850da1e2d75b17d76cf102721d4c5e56d8faaa97ce1194577264c8edc6cc70'
+ sha256 '0ba5a37c359394c277e221f8ca74191d3425cf3cfbd70699d81346c77c93d746'
- url "http://builds.openlp.org/OpenLP-#{version}.dmg"
+ ... | 9 | 0.9 | 5 | 4 |
27121939e12fa9ca97bfd6858971a5fe0be0ffb7 | src/man/geoc-vector-simplify.1 | src/man/geoc-vector-simplify.1 | .TH "geoc-vector-simplify" "1" "10 December 2014" "version 0.1"
.SH NAME
geoc vector simplify
.SH DESCRIPTION
Simplify the features of the input Layer and save them to the output Layer
.SH USAGE
geoc vector simplify -i states.shp -o states_simplified -a DouglasPeucker -d 100
.SH OPTIONS
-a --algorithm: The simplify alg... | .TH "geoc-vector-simplify" "1" "12 January 2015" "version 0.1"
.SH NAME
geoc vector simplify
.SH DESCRIPTION
Simplify the features of the input Layer and save them to the output Layer
.SH USAGE
geoc vector simplify -i states.shp -o states_simplified.shp -a DouglasPeucker -d 100
.SH OPTIONS
-a --algorithm: The simplify ... | Fix geoc vector simplify command line example | Fix geoc vector simplify command line example
| Groff | mit | jericks/geoc,jericks/geoc | groff | ## Code Before:
.TH "geoc-vector-simplify" "1" "10 December 2014" "version 0.1"
.SH NAME
geoc vector simplify
.SH DESCRIPTION
Simplify the features of the input Layer and save them to the output Layer
.SH USAGE
geoc vector simplify -i states.shp -o states_simplified -a DouglasPeucker -d 100
.SH OPTIONS
-a --algorithm: ... | - .TH "geoc-vector-simplify" "1" "10 December 2014" "version 0.1"
? ^ ^^^^^^^ ^
+ .TH "geoc-vector-simplify" "1" "12 January 2015" "version 0.1"
? ^ ^^^^^ + ^
.SH NAME
geoc vector simplify
.SH DESCRIPTION
Simplify the features of the inp... | 4 | 0.181818 | 2 | 2 |
64af868a2d35704c0dc7e56995affbdfaf02acac | _includes/side-nav.html | _includes/side-nav.html | <ul id="slide-out" class="side-nav fixed">
<li>
<div class="userView">
<img class="background" src="/img/user-background.jpg">
<img class="circle" src="{{ site.github.owner_gravatar_url }}">
<span class="name">{{ site.title }}</span>
<a {% include email.html %... | <ul id="slide-out" class="side-nav fixed">
<li>
<div class="userView">
<img class="background" src="/img/user-background.jpg" alt="User background">
<img class="circle" src="{{ site.github.owner_gravatar_url }}" alt="Profile picture">
<span class="name">{{ site.title }}</... | Add alt text to images | Add alt text to images
| HTML | mit | Steven-Roberts/Steven-Roberts.github.io,Steven-Roberts/Steven-Roberts.github.io,Steven-Roberts/Steven-Roberts.github.io | html | ## Code Before:
<ul id="slide-out" class="side-nav fixed">
<li>
<div class="userView">
<img class="background" src="/img/user-background.jpg">
<img class="circle" src="{{ site.github.owner_gravatar_url }}">
<span class="name">{{ site.title }}</span>
<a {% incl... | <ul id="slide-out" class="side-nav fixed">
<li>
<div class="userView">
- <img class="background" src="/img/user-background.jpg">
+ <img class="background" src="/img/user-background.jpg" alt="User background">
? +... | 4 | 0.125 | 2 | 2 |
3ef74dfafa7e5414baba40ab53d33a146987d4b3 | app/operations/story_operations.rb | app/operations/story_operations.rb | require 'story_operations/member_notification'
require 'story_operations/state_change_notification'
require 'story_operations/legacy_fixes'
module StoryOperations
class Create < BaseOperations::Create
include MemberNotification
def after_save
model.changesets.create!
notify_users
end
end... | require 'story_operations/member_notification'
require 'story_operations/state_change_notification'
require 'story_operations/legacy_fixes'
module StoryOperations
class Create < BaseOperations::Create
include MemberNotification
def after_save
model.changesets.create!
notify_users
end
end... | Fix how to set `changed_attributes` in Rails 4.2.x | Fix how to set `changed_attributes` in Rails 4.2.x
| Ruby | agpl-3.0 | PedroFelipe/cm42-central,Codeminer42/cm42-central,PedroFelipe/cm42-central,PedroFelipe/cm42-central,Codeminer42/cm42-central,Codeminer42/cm42-central | ruby | ## Code Before:
require 'story_operations/member_notification'
require 'story_operations/state_change_notification'
require 'story_operations/legacy_fixes'
module StoryOperations
class Create < BaseOperations::Create
include MemberNotification
def after_save
model.changesets.create!
notify_use... | require 'story_operations/member_notification'
require 'story_operations/state_change_notification'
require 'story_operations/legacy_fixes'
module StoryOperations
class Create < BaseOperations::Create
include MemberNotification
def after_save
model.changesets.create!
... | 5 | 0.116279 | 4 | 1 |
6fe87916704123369f17979299719c4a5b047284 | ubuntu/integration-environment-elasticsearch-5.x/elasticsearch.yml | ubuntu/integration-environment-elasticsearch-5.x/elasticsearch.yml | cluster.name: graylog_test
node.master: true
node.data: true
index.number_of_shards: 1
index.number_of_replicas: 0
network.host: _local:ipv4_
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["127.0.0.1:9350"]
| cluster.name: graylog_test
node.master: true
node.data: true
index.number_of_shards: 1
index.number_of_replicas: 0
network.host: _local:ipv4_
| Fix settings for Elasticsearch 5.x | Fix settings for Elasticsearch 5.x
| YAML | apache-2.0 | Graylog2/build-environments | yaml | ## Code Before:
cluster.name: graylog_test
node.master: true
node.data: true
index.number_of_shards: 1
index.number_of_replicas: 0
network.host: _local:ipv4_
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["127.0.0.1:9350"]
## Instruction:
Fix settings for Elasticsearch 5.x
## Code Afte... | cluster.name: graylog_test
node.master: true
node.data: true
index.number_of_shards: 1
index.number_of_replicas: 0
network.host: _local:ipv4_
- discovery.zen.ping.multicast.enabled: false
- discovery.zen.ping.unicast.hosts: ["127.0.0.1:9350"] | 2 | 0.25 | 0 | 2 |
92b675020db0448e118631118be59f19caffabb6 | lib/board.rb | lib/board.rb | class Board
attr_reader :width, :height
def initialize(opts = {})
@width = opts[:width] || 5
@height = opts[:height] || 5
end
end
| class Board
DEFAULT_WIDTH = 5
DEFAULT_HEIGHT = 5
attr_reader :width, :height
def initialize(opts = {})
@width = opts[:width] || DEFAULT_WIDTH
@height = opts[:height] || DEFAULT_HEIGHT
end
end
| Use constents to define default values | Use constents to define default values
| Ruby | mit | xuebinglee/toyrobot,xuebingli/toyrobot | ruby | ## Code Before:
class Board
attr_reader :width, :height
def initialize(opts = {})
@width = opts[:width] || 5
@height = opts[:height] || 5
end
end
## Instruction:
Use constents to define default values
## Code After:
class Board
DEFAULT_WIDTH = 5
DEFAULT_HEIGHT = 5
attr_reader :width, :height
... | class Board
+ DEFAULT_WIDTH = 5
+ DEFAULT_HEIGHT = 5
+
attr_reader :width, :height
def initialize(opts = {})
- @width = opts[:width] || 5
? ^
+ @width = opts[:width] || DEFAULT_WIDTH
? ^^^^^^^^^^^^^
- @height = opts[:heig... | 7 | 0.875 | 5 | 2 |
c0b947f1a4cd59045092ee37a4952c015c7b9418 | app/initializers/image-imgix.js | app/initializers/image-imgix.js | import BackgroundImage from 'ember-cli-image/components/background-image';
import ImageContainer from 'ember-cli-image/components/image-container';
import XImg from 'ember-cli-image/components/x-img';
import ImgixMixin from 'ember-cli-image-imgix/mixins/imgix-mixin';
import ImgixStaticMixin from 'ember-cli-image-imgix... | import BackgroundImageComponent from 'ember-cli-image/components/background-image-component';
import ImageContainerComponent from 'ember-cli-image/components/image-container-component';
import ImgComponent from 'ember-cli-image/components/img-component';
import ImgixMixin from 'ember-cli-image-imgix/mixins/imgix-mixin... | Use the updated file names for image components in import statements | Use the updated file names for image components in import statements
| JavaScript | mit | bustlelabs/ember-cli-image-imgix,bustlelabs/ember-cli-image-imgix | javascript | ## Code Before:
import BackgroundImage from 'ember-cli-image/components/background-image';
import ImageContainer from 'ember-cli-image/components/image-container';
import XImg from 'ember-cli-image/components/x-img';
import ImgixMixin from 'ember-cli-image-imgix/mixins/imgix-mixin';
import ImgixStaticMixin from 'ember... | - import BackgroundImage from 'ember-cli-image/components/background-image';
+ import BackgroundImageComponent from 'ember-cli-image/components/background-image-component';
? +++++++++ ++++++++++
- import ImageContainer from 'ember-cli-image/compon... | 18 | 0.818182 | 9 | 9 |
79f5e52b3934828b1d1416dce7422f2018b2831f | .eslintrc.js | .eslintrc.js | module.exports = {
extends: ['paazmaya'],
rules: {
'no-console': 0,
'no-process-exit': 0
}
};
| module.exports = {
extends: ['paazmaya'],
parserOptions: {
ecmaVersion: 'latest'
},
rules: {
'no-console': 0,
'no-process-exit': 0
}
};
| Use latest version of ES | Use latest version of ES
| JavaScript | mit | paazmaya/sakugawa | javascript | ## Code Before:
module.exports = {
extends: ['paazmaya'],
rules: {
'no-console': 0,
'no-process-exit': 0
}
};
## Instruction:
Use latest version of ES
## Code After:
module.exports = {
extends: ['paazmaya'],
parserOptions: {
ecmaVersion: 'latest'
},
rules: {
'no-console': 0,
'no-proc... | module.exports = {
extends: ['paazmaya'],
+ parserOptions: {
+ ecmaVersion: 'latest'
+ },
rules: {
'no-console': 0,
'no-process-exit': 0
}
}; | 3 | 0.428571 | 3 | 0 |
9fd7309e09069855e2b015fb7afc541f0ebf7fc3 | 20150325-announce.md | 20150325-announce.md |
On 27 March 2014 a handful of people got together at the former Travis
Office at Moritzplatz for the very first Emacs Berlin meetup.
This means that our next meetup on **25 March 2015** will be our one year
anniversary.
Because of this we'd like to make a little more effort to make this a great
day, and to invite so... | ---
title: (emacs-berlin)
layout: default
---
# One year anniversary - 25 March 2015 -
On 27 March 2014 a handful of people got together at the former Travis
Office at Moritzplatz for the very first Emacs Berlin meetup.
This means that our next meetup on **25 March 2015** will be our one year
anniversary.
Because o... | Add frontmatter to make Jekyll happy | Add frontmatter to make Jekyll happy
| Markdown | cc0-1.0 | emacs-berlin/emacs-berlin.org,emacs-berlin/emacs-berlin.org,emacs-berlin/emacs-berlin.org | markdown | ## Code Before:
On 27 March 2014 a handful of people got together at the former Travis
Office at Moritzplatz for the very first Emacs Berlin meetup.
This means that our next meetup on **25 March 2015** will be our one year
anniversary.
Because of this we'd like to make a little more effort to make this a great
day, ... | + ---
+ title: (emacs-berlin)
+ layout: default
+ ---
+
+ # One year anniversary - 25 March 2015 -
On 27 March 2014 a handful of people got together at the former Travis
Office at Moritzplatz for the very first Emacs Berlin meetup.
This means that our next meetup on **25 March 2015** will be our one year
... | 6 | 0.3 | 6 | 0 |
9553b18d7633101db556900e7f802edd057a7cab | views/layouts/main_layout.php | views/layouts/main_layout.php | <?php
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use app\assets\AppAsset;
AppAsset::register($this);?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="w... | <?php
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use app\assets\AppAsset;
AppAsset::register($this);?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="w... | Fix oops in previous commit(folder shadow). | Fix oops in previous commit(folder shadow).
| PHP | apache-2.0 | KirMerzlikin/Coursey,KirMerzlikin/Coursey,KirMerzlikin/Coursey | php | ## Code Before:
<?php
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use app\assets\AppAsset;
AppAsset::register($this);?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
<meta charset="utf-8" />
<meta name="view... | <?php
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use app\assets\AppAsset;
AppAsset::register($this);?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
<meta charset="utf-8" />
... | 2 | 0.052632 | 1 | 1 |
a058f058b007d294dd5db3dca6d606b72998bb18 | shell.nix | shell.nix | let
pkgs = import ./.;
poetryEnv = pkgs.poetry2nix.mkPoetryEnv {
projectDir = ./.;
editablePackageSources = {
slumba = ./slumba;
};
};
in pkgs.mkShell {
buildInputs = with pkgs; [
niv
poetry
poetryEnv
sqlite
];
}
| let
pkgs = import ./.;
poetryEnv = pkgs.poetry2nix.mkPoetryEnv {
projectDir = ./.;
editablePackageSources = {
slumba = ./slumba;
};
};
in pkgs.mkShell {
buildInputs = with pkgs; [
niv
poetry
poetryEnv
sqlite
rlwrap
];
}
| Add rlwrap to make sqlite3 cli usable | Add rlwrap to make sqlite3 cli usable
| Nix | apache-2.0 | cpcloud/slumba,cpcloud/slumba | nix | ## Code Before:
let
pkgs = import ./.;
poetryEnv = pkgs.poetry2nix.mkPoetryEnv {
projectDir = ./.;
editablePackageSources = {
slumba = ./slumba;
};
};
in pkgs.mkShell {
buildInputs = with pkgs; [
niv
poetry
poetryEnv
sqlite
];
}
## Instruction:
Add rlwrap to make sqlite3 cli... | let
pkgs = import ./.;
poetryEnv = pkgs.poetry2nix.mkPoetryEnv {
projectDir = ./.;
editablePackageSources = {
slumba = ./slumba;
};
};
in pkgs.mkShell {
buildInputs = with pkgs; [
niv
poetry
poetryEnv
sqlite
+ rlwrap
];
} | 1 | 0.0625 | 1 | 0 |
dc2ff22af8e2ec7a78fafaf39a83f77922525c2e | README.md | README.md |
Backend code and schema for Open Badges.
Note this only includes the bare minimum to set up a database to hold issuer,
earner and badge data. There is no admin or user frontend.
In the database schema, we have been stricter than the standard requires in some
areas, making optional fields NOT NULL and therefore requi... |
Backend code and schema for Open Badges.
Note this only includes the bare minimum to set up a database to hold issuer,
earner and badge data. There is no admin or user frontend.
In the database schema, we have been stricter than the standard requires in some
areas, making optional fields NOT NULL and therefore requi... | Document assumption about hosted assertions | Document assumption about hosted assertions
| Markdown | mit | UoMCS/openbadges-backend | markdown | ## Code Before:
Backend code and schema for Open Badges.
Note this only includes the bare minimum to set up a database to hold issuer,
earner and badge data. There is no admin or user frontend.
In the database schema, we have been stricter than the standard requires in some
areas, making optional fields NOT NULL and... |
Backend code and schema for Open Badges.
Note this only includes the bare minimum to set up a database to hold issuer,
earner and badge data. There is no admin or user frontend.
In the database schema, we have been stricter than the standard requires in some
areas, making optional fields NOT NULL and... | 3 | 0.130435 | 3 | 0 |
8ff96c7a1663d50b7cc5c1e6b7097844eaf3c116 | resource/status/resource.js | resource/status/resource.js | function getStatus( status ) {
return {
uptime: {
host: status.uptime,
service: status.serviceUptime
},
package: status.state,
activity: status.activity,
lastEvent: status.lastEvent,
lastFailure: status.lastFailure || "N/A",
time: {
sinceLastActivity: status.timeSinceLastActivity,
sinceLastEv... | var _ = require( "lodash" );
function getStatus( status ) {
return {
uptime: {
host: status.uptime,
service: status.serviceUptime
},
package: status.state,
activity: status.activity,
lastEvent: status.lastEvent,
lastFailure: status.lastFailure || "N/A",
time: {
sinceLastActivity: status.timeSin... | Add api call to status to return environment variables from container | Add api call to status to return environment variables from container
| JavaScript | mit | LeanKit-Labs/nonstop-host | javascript | ## Code Before:
function getStatus( status ) {
return {
uptime: {
host: status.uptime,
service: status.serviceUptime
},
package: status.state,
activity: status.activity,
lastEvent: status.lastEvent,
lastFailure: status.lastFailure || "N/A",
time: {
sinceLastActivity: status.timeSinceLastActivity... | + var _ = require( "lodash" );
+
function getStatus( status ) {
return {
uptime: {
host: status.uptime,
service: status.serviceUptime
},
package: status.state,
activity: status.activity,
lastEvent: status.lastEvent,
lastFailure: status.lastFailure || "N/A",
time: {
since... | 16 | 0.347826 | 16 | 0 |
f63b1cd62f823d89e62d559ef5e86a70f504126c | javascripts/pong.js | javascripts/pong.js | (function() {
'use strict';
var canvas = document.getElementById('game');
var width = window.innerWidth;
var height = window.innerHeight;
canvas.width = width;
canvas.height = height;
var ctx = canvas.getContext('2d');
var FPS = 1000 / 60;
var clear = function() {
ctx.clearRect(0, 0, width, heigh... | (function() {
'use strict';
var canvas = document.getElementById('game');
var WIDTH = window.innerWidth;
var HEIGHT = window.innerHeight;
canvas.width = WIDTH;
canvas.height = HEIGHT;
var ctx = canvas.getContext('2d');
var FPS = 1000 / 60;
var Paddle = function(x, y, width, height) {
this.x = x;
... | Define paddle object and a basic render function. Also capitalise width and height constants to easily distinguish them from object properties or parameters | Define paddle object and a basic render function. Also capitalise width and height constants to easily distinguish them from object properties or parameters
| JavaScript | mit | msanatan/pong,msanatan/pong,msanatan/pong | javascript | ## Code Before:
(function() {
'use strict';
var canvas = document.getElementById('game');
var width = window.innerWidth;
var height = window.innerHeight;
canvas.width = width;
canvas.height = height;
var ctx = canvas.getContext('2d');
var FPS = 1000 / 60;
var clear = function() {
ctx.clearRect(0,... | (function() {
'use strict';
var canvas = document.getElementById('game');
- var width = window.innerWidth;
? ^^^^^
+ var WIDTH = window.innerWidth;
? ^^^^^
- var height = window.innerHeight;
? ^^^^^^
+ var HEIGHT = window.innerHeight;
? ^^^^^^
- canvas.width = width;
? ... | 27 | 0.9 | 21 | 6 |
d5fa465bf4f231cd3a588f8e9124f30f6e66ebf0 | scripts/run_dweb_me.sh | scripts/run_dweb_me.sh |
set -x
cd /usr/local/dweb_gateway
#pip install --disable-pip-version-check -U $PIPS
pip3 -q install --disable-pip-version-check -U -r python/requirements.txt
[ -d data ] || mkdir data
# First push whatever branch we are on
git status | grep 'nothing to commit' || git commit -a -m "Changes made on server"
git status | ... |
set -x
cd /usr/local/dweb_gateway
#pip install --disable-pip-version-check -U $PIPS
pip3 -q install --disable-pip-version-check -U -r python/requirements.txt
[ -d data ] || mkdir data
# First push whatever branch we are on
git status | grep 'nothing to commit' || git commit -a -m "Changes made on server"
git status | ... | Use supervisor to start daemon | Use supervisor to start daemon
| Shell | agpl-3.0 | ArchiveLabs/dweb_gateway,ArchiveLabs/dweb_gateway | shell | ## Code Before:
set -x
cd /usr/local/dweb_gateway
#pip install --disable-pip-version-check -U $PIPS
pip3 -q install --disable-pip-version-check -U -r python/requirements.txt
[ -d data ] || mkdir data
# First push whatever branch we are on
git status | grep 'nothing to commit' || git commit -a -m "Changes made on serve... |
set -x
cd /usr/local/dweb_gateway
#pip install --disable-pip-version-check -U $PIPS
pip3 -q install --disable-pip-version-check -U -r python/requirements.txt
[ -d data ] || mkdir data
# First push whatever branch we are on
git status | grep 'nothing to commit' || git commit -a -m "Changes made on serve... | 12 | 0.315789 | 2 | 10 |
340296d360344df9e7d2d011ad1cb9b3dc0b3226 | MAINTENENCE.md | MAINTENENCE.md |
Update the `ENV CLOUD_SDK_VERSION` statement with the version number (e.g. `ENV CLOUD_SDK_VERSION 160.0.0`) in the
following files:
* `Dockerfile`
* `debian_slim/Dockerfile`
* `alpine/Dockerfile`
Commit, and tag the release:
```bash
export VERSION=160.0.0
git add --all && git commit -m "Update SDK to $VERSION" && ... |
Update the `ENV CLOUD_SDK_VERSION` statement with the version number (e.g. `ENV CLOUD_SDK_VERSION 160.0.0`) in the
following files:
* `Dockerfile`
* `debian_slim/Dockerfile`
* `alpine/Dockerfile`
Commit, and tag the release:
```bash
export VERSION=160.0.0
git add --all && git commit -m "Update SDK to $VERSION" --a... | Allow empty commits marking releases | maintenance: Allow empty commits marking releases
Signed-off-by: Ahmet Alp Balkan <c786c8527fd6be7431bb94ca48b6f76cc06787cc@google.com>
| Markdown | apache-2.0 | GoogleCloudPlatform/cloud-sdk-docker | markdown | ## Code Before:
Update the `ENV CLOUD_SDK_VERSION` statement with the version number (e.g. `ENV CLOUD_SDK_VERSION 160.0.0`) in the
following files:
* `Dockerfile`
* `debian_slim/Dockerfile`
* `alpine/Dockerfile`
Commit, and tag the release:
```bash
export VERSION=160.0.0
git add --all && git commit -m "Update SDK ... |
Update the `ENV CLOUD_SDK_VERSION` statement with the version number (e.g. `ENV CLOUD_SDK_VERSION 160.0.0`) in the
following files:
* `Dockerfile`
* `debian_slim/Dockerfile`
* `alpine/Dockerfile`
Commit, and tag the release:
```bash
export VERSION=160.0.0
- git add --all && git commit -m "U... | 2 | 0.058824 | 1 | 1 |
f5356198f30002b4b4d26fba424a4bdd546a26e5 | keeper/api_v1/errorhandlers.py | keeper/api_v1/errorhandlers.py |
from flask import jsonify
from ..exceptions import ValidationError
from . import api
@api.errorhandler(ValidationError)
def bad_request(e):
"""Handler for ValidationError exceptions."""
response = jsonify({'status': 400, 'error': 'bad request',
'message': e.args[0]})
response.stat... |
from flask import jsonify
import structlog
from ..exceptions import ValidationError
from . import api
@api.errorhandler(ValidationError)
def bad_request(e):
"""Handler for ValidationError exceptions."""
response = jsonify({'status': 400, 'error': 'bad request',
'message': e.args[0]})... | Add an error logger to the 500 handler | Add an error logger to the 500 handler
| Python | mit | lsst-sqre/ltd-keeper,lsst-sqre/ltd-keeper | python | ## Code Before:
from flask import jsonify
from ..exceptions import ValidationError
from . import api
@api.errorhandler(ValidationError)
def bad_request(e):
"""Handler for ValidationError exceptions."""
response = jsonify({'status': 400, 'error': 'bad request',
'message': e.args[0]})
... |
from flask import jsonify
+ import structlog
+
from ..exceptions import ValidationError
from . import api
@api.errorhandler(ValidationError)
def bad_request(e):
"""Handler for ValidationError exceptions."""
response = jsonify({'status': 400, 'error': 'bad request',
... | 5 | 0.125 | 5 | 0 |
d411a995830e9236e6d5908d25452a780c8767cc | app/views/layouts/application.html.erb | app/views/layouts/application.html.erb | <!DOCTYPE html>
<html>
<head>
<title>Giftoppr</title>
<link href='http://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'>
<%= stylesheet_link_tag "application", :media => "all" %>
<%= csrf_meta_tags %>
<%= render :partial => 'layouts/head_js' %>
<script>head.js("<%= javascript_p... | <!DOCTYPE html>
<html>
<head>
<title>Giftoppr</title>
<link href='http://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'>
<%= stylesheet_link_tag "application", :media => "all" %>
<%= csrf_meta_tags %>
<%= render :partial => 'layouts/head_js' %>
</head>
<body>
<header>
<div ... | Revert "Move head.js call to just after the script loader." | Revert "Move head.js call to just after the script loader."
This reverts commit fe808aa46dbe9c85063e97f4170b847c03703913.
| HTML+ERB | mit | desktoppr/giftoppr,desktoppr/giftoppr | html+erb | ## Code Before:
<!DOCTYPE html>
<html>
<head>
<title>Giftoppr</title>
<link href='http://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'>
<%= stylesheet_link_tag "application", :media => "all" %>
<%= csrf_meta_tags %>
<%= render :partial => 'layouts/head_js' %>
<script>head.js("... | <!DOCTYPE html>
<html>
<head>
<title>Giftoppr</title>
<link href='http://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'>
<%= stylesheet_link_tag "application", :media => "all" %>
<%= csrf_meta_tags %>
<%= render :partial => 'layouts/head_js' %>
- <script>head.js... | 2 | 0.058824 | 1 | 1 |
6e67ce51023dbfa50b5d306bc734c538a46a52db | devices/danfoss/danfoss_windowopen_state.js | devices/danfoss/danfoss_windowopen_state.js | switch (Attr.val) {
case "0":
Item.val = "Quarantine";
break;
case "1":
Item.val = "Closed";
break;
case "2":
Item.val = "Hold";
break;
case "3":
Item.val = "Open";
break;
case "4":
Item.val = "Open (external), closed (internal)... | switch (Attr.val) {
case 0:
Item.val = "Quarantine";
break;
case 1:
Item.val = "Closed";
break;
case 2:
Item.val = "Hold";
break;
case 3:
Item.val = "Open";
break;
case 4:
Item.val = "Open (external), closed (internal)";
... | Correct Danfoss window states script | Correct Danfoss window states script
| JavaScript | bsd-3-clause | dresden-elektronik/deconz-rest-plugin,dresden-elektronik/deconz-rest-plugin,dresden-elektronik/deconz-rest-plugin,dresden-elektronik/deconz-rest-plugin,dresden-elektronik/deconz-rest-plugin | javascript | ## Code Before:
switch (Attr.val) {
case "0":
Item.val = "Quarantine";
break;
case "1":
Item.val = "Closed";
break;
case "2":
Item.val = "Hold";
break;
case "3":
Item.val = "Open";
break;
case "4":
Item.val = "Open (external), c... | switch (Attr.val) {
- case "0":
? - -
+ case 0:
Item.val = "Quarantine";
break;
- case "1":
? - -
+ case 1:
Item.val = "Closed";
break;
- case "2":
? - -
+ case 2:
Item.val = "Hold";
break;
- case "3"... | 10 | 0.588235 | 5 | 5 |
46b88d104dbb958b56a76a2b9134e7b722598784 | qml/PropagandaMain.qml | qml/PropagandaMain.qml | import VPlay 1.0
import QtQuick 1.1
import "manager"
GameWindow {
id: window
width: 320
height: 480
minimizeable: true
// this would disable the fps label both for QML & cocos renderer - if only qml renderer should be disabled use fpsTextItem.visible: false
displayFpsEnabled: developerBuild
// in th... | import VPlay 1.0
import QtQuick 1.1
import "manager"
GameWindow {
id: window
width: 320
height: 480
minimizeable: true
maximizeable: true
// this would disable the fps label both for QML & cocos renderer - if only qml renderer should be disabled use fpsTextItem.visible: false
displayFpsEnabled: deve... | Add maximizeable flag to support maximizeable app. | Add maximizeable flag to support maximizeable app.
| QML | mit | V-Play/HGJ13,V-Play/HGJ13 | qml | ## Code Before:
import VPlay 1.0
import QtQuick 1.1
import "manager"
GameWindow {
id: window
width: 320
height: 480
minimizeable: true
// this would disable the fps label both for QML & cocos renderer - if only qml renderer should be disabled use fpsTextItem.visible: false
displayFpsEnabled: developerB... | import VPlay 1.0
import QtQuick 1.1
import "manager"
GameWindow {
id: window
width: 320
height: 480
minimizeable: true
+ maximizeable: true
// this would disable the fps label both for QML & cocos renderer - if only qml renderer should be disabled use fpsTextItem.visible: f... | 1 | 0.016949 | 1 | 0 |
a700e027ac466797bd0d48777e9d60e97f9bdbc2 | templates/Includes/HailPublicationPreview.ss | templates/Includes/HailPublicationPreview.ss | <div class="hail-preview col-md-6 col-lg-4">
<div class="card">
<div class="card-img-top">
<div class="embed-responsive embed-responsive-16by9">
<% if $HeroVideo %>
<div class="hail-play-button" data-type="$HeroVideo.Service" data-embed="$HeroVideo.Servic... | <div class="hail-preview col-md-6 col-lg-4">
<div class="card">
<div class="card-img-top">
<div class="embed-responsive embed-responsive-16by9">
<% if $HeroVideo %>
<div class="hail-play-button" data-type="$HeroVideo.Service" data-embed="$HeroVideo.Servic... | Fix broken publication link on Hail Page | Fix broken publication link on Hail Page
| Scheme | bsd-3-clause | firebrandhq/silverstripe-hail,firebrandhq/silverstripe-hail | scheme | ## Code Before:
<div class="hail-preview col-md-6 col-lg-4">
<div class="card">
<div class="card-img-top">
<div class="embed-responsive embed-responsive-16by9">
<% if $HeroVideo %>
<div class="hail-play-button" data-type="$HeroVideo.Service" data-embed="$HeroV... | <div class="hail-preview col-md-6 col-lg-4">
<div class="card">
<div class="card-img-top">
<div class="embed-responsive embed-responsive-16by9">
<% if $HeroVideo %>
<div class="hail-play-button" data-type="$HeroVideo.Service" data-embed="$HeroVideo... | 2 | 0.08 | 1 | 1 |
95a3a717ed8f5ed245147a1b214218a8ad904098 | id/random.go | id/random.go | package id
import (
"fmt"
"crypto/rand"
)
// GenerateRandomString creates a random string of characters of the given
// length from the given dictionary of possible characters.
//
// This example generates a hexadecimal string 6 characters long:
// GenerateRandomString("0123456789abcdef", 6)
func GenerateRandom... | package id
import (
"crypto/rand"
"fmt"
)
// GenerateRandomString creates a random string of characters of the given
// length from the given dictionary of possible characters.
//
// This example generates a hexadecimal string 6 characters long:
// GenerateRandomString("0123456789abcdef", 6)
func GenerateRandom... | Move remaining writeas/nerds/store funcs to web-core | Move remaining writeas/nerds/store funcs to web-core
Finishes the work started in #8.
| Go | mpl-2.0 | writeas/web-core,writeas/web-core | go | ## Code Before:
package id
import (
"fmt"
"crypto/rand"
)
// GenerateRandomString creates a random string of characters of the given
// length from the given dictionary of possible characters.
//
// This example generates a hexadecimal string 6 characters long:
// GenerateRandomString("0123456789abcdef", 6)
fun... | package id
import (
+ "crypto/rand"
"fmt"
- "crypto/rand"
)
// GenerateRandomString creates a random string of characters of the given
// length from the given dictionary of possible characters.
//
// This example generates a hexadecimal string 6 characters long:
// GenerateRandomString("... | 14 | 0.538462 | 13 | 1 |
527c414da01dd40425086253dec2007c54e30675 | send_reminders.py | send_reminders.py | from twilio.rest import TwilioRestClient
import project.utils.reminders
ACCOUNT_SID = "AC6a9746370384b26236aae71013aa35b2"
AUTH_TOKEN = "38b0bcc37788e553978c840929d54aa2"
def send_reminder(text, phone):
client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN)
client.messages.create(to=phone, from_="+15713646776", b... | from twilio.rest import TwilioRestClient
import project.utils.reminders
ACCOUNT_SID = "ayylmao"
AUTH_TOKEN = "ayylmao"
def send_reminder(text, phone):
client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN)
client.messages.create(to=phone, from_="+15172194225", body=text)
def send_all_reminders():
x = project... | Update API keys and phone number | Update API keys and phone number
| Python | apache-2.0 | tjcsl/mhacksiv | python | ## Code Before:
from twilio.rest import TwilioRestClient
import project.utils.reminders
ACCOUNT_SID = "AC6a9746370384b26236aae71013aa35b2"
AUTH_TOKEN = "38b0bcc37788e553978c840929d54aa2"
def send_reminder(text, phone):
client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN)
client.messages.create(to=phone, from_="... | from twilio.rest import TwilioRestClient
import project.utils.reminders
- ACCOUNT_SID = "AC6a9746370384b26236aae71013aa35b2"
- AUTH_TOKEN = "38b0bcc37788e553978c840929d54aa2"
+ ACCOUNT_SID = "ayylmao"
+ AUTH_TOKEN = "ayylmao"
def send_reminder(text, phone):
client = TwilioRestClient(ACCOUNT_SID, AUTH_... | 6 | 0.375 | 3 | 3 |
d1637cfe9f75cad6ad61d3863c61611e3a892cbe | doc/foot.html | doc/foot.html |
<div id="push"></div>
</div> <!-- #content -->
</div> <!-- .layout -->
</div> <!-- #container -->
<div id="footer">
<table><tr>
<td class="copyright">Copyright ©$year Enlightenment</td>
<td class="generated">Docs generated $datetime</td>
</tr></table>
</div>
</body>
</html>
|
<div id="push"></div>
</div> <!-- #content -->
</div> <!-- .layout -->
</div> <!-- #container -->
<div id="footer">
<table><tr>
<td class="poweredby"><img src="doxygen.png"></td>
<td>Samsung Electronics is supporting the EFL Documentation Project</td>
<td class="copyright">Copyright... | Add acknowledgment of Samsung's patronage to documentation project. | elementary: Add acknowledgment of Samsung's patronage to
documentation project.
SVN revision: 60348
| HTML | lgpl-2.1 | FlorentRevest/Elementary,tasn/elementary,FlorentRevest/Elementary,rvandegrift/elementary,tasn/elementary,rvandegrift/elementary,rvandegrift/elementary,tasn/elementary,tasn/elementary,tasn/elementary,rvandegrift/elementary,FlorentRevest/Elementary,FlorentRevest/Elementary | html | ## Code Before:
<div id="push"></div>
</div> <!-- #content -->
</div> <!-- .layout -->
</div> <!-- #container -->
<div id="footer">
<table><tr>
<td class="copyright">Copyright ©$year Enlightenment</td>
<td class="generated">Docs generated $datetime</td>
</tr></table>
</div>
<... |
<div id="push"></div>
</div> <!-- #content -->
</div> <!-- .layout -->
</div> <!-- #container -->
<div id="footer">
<table><tr>
+ <td class="poweredby"><img src="doxygen.png"></td>
+ <td>Samsung Electronics is supporting the EFL Documentation Project</td>
<td c... | 2 | 0.111111 | 2 | 0 |
efacfbf41e22bea8cc990ae2ebfc4a5a334964cd | .travis.yml | .travis.yml | language: php
before_script:
- composer self-update
- composer install
- php app/console doctrine:database:create --env=test
- php app/console doctrine:schema:create --env=test
- php app/console doctrine:fixtures:load -n --env=test
script:
- phpunit -c app
notifications:
email:
- llopez@sopinet.co... | language: php
before_script:
- composer self-update
- composer install
- mysql -e 'drop database if exists symfony;'
- mysql -e 'create database symfony;'
- php app/console doctrine:database:create --env=test
- php app/console doctrine:schema:create --env=test
- php app/console doctrine:fixtures:load -n ... | Remove and create database symfony | Remove and create database symfony
| YAML | mit | CochicerrosDev/monigotes,molinan2/BasicSymfony,CochicerrosDev/monigotes,s1yamuza/BasicSymfony,sopinet/BasicSymfony,s1yamuza/BasicSymfony,molinan2/BasicSymfony,sopinet/BasicSymfony,s1yamuza/BasicSymfony,CochicerrosDev/monigotes,CochicerrosDev/monigotes,sopinet/BasicSymfony,molinan2/BasicSymfony | yaml | ## Code Before:
language: php
before_script:
- composer self-update
- composer install
- php app/console doctrine:database:create --env=test
- php app/console doctrine:schema:create --env=test
- php app/console doctrine:fixtures:load -n --env=test
script:
- phpunit -c app
notifications:
email:
- l... | language: php
before_script:
- composer self-update
- composer install
+ - mysql -e 'drop database if exists symfony;'
+ - mysql -e 'create database symfony;'
- php app/console doctrine:database:create --env=test
- php app/console doctrine:schema:create --env=test
- php app/console doctri... | 2 | 0.133333 | 2 | 0 |
a9df72c4d7215f0c5e81c9bebe3d1148c02c0482 | src/Decoder/Record.js | src/Decoder/Record.js | /* @flow */
import type { Decoder, Decode } from "./Decoder"
import { Error, TypeError, ThrownError } from "./Error"
import { FieldError } from "./Field"
import * as Variant from "./Decoder"
export type Record<a> = Decoder<$ObjMap<a, <b>(Decoder<b>) => b>>
export type Fields<a> = $ObjMap<a, <b>(b) => Decoder<b>>
exp... | /* @flow */
import type { Decoder, Decode } from "./Decoder"
import { Error, TypeError, ThrownError } from "./Error"
import { FieldError } from "./Field"
import * as Variant from "./Decoder"
export type Record<a> = Decoder<$ObjMap<a, <b>(Decoder<b>) => b>>
export type Fields<a> = $ObjMap<a, <b>(b) => Decoder<b>> & {
... | Make Fields type more concrete. | Make Fields type more concrete. | JavaScript | mit | Gozala/decoder.flow | javascript | ## Code Before:
/* @flow */
import type { Decoder, Decode } from "./Decoder"
import { Error, TypeError, ThrownError } from "./Error"
import { FieldError } from "./Field"
import * as Variant from "./Decoder"
export type Record<a> = Decoder<$ObjMap<a, <b>(Decoder<b>) => b>>
export type Fields<a> = $ObjMap<a, <b>(b) => ... | /* @flow */
import type { Decoder, Decode } from "./Decoder"
import { Error, TypeError, ThrownError } from "./Error"
import { FieldError } from "./Field"
import * as Variant from "./Decoder"
export type Record<a> = Decoder<$ObjMap<a, <b>(Decoder<b>) => b>>
- export type Fields<a> = $ObjMap<a, <b>(b) =... | 4 | 0.095238 | 3 | 1 |
58c0e84d9a6d2a910128ec870546ca907d71f880 | .travis.yml | .travis.yml | language: python
python:
- "2.7"
install:
- "pip install SQLAlchemy"
script: nosetests
| language: python
python:
- "2.7"
install:
- "pip install SQLAlchemy"
- "pip install MySQL-python"
before_script:
- "mysqld"
script: nosetests
| Add MySQL database to Travis | Add MySQL database to Travis
| YAML | mit | Dallinger/Dallinger,Dallinger/Dallinger,jcpeterson/Dallinger,jcpeterson/Dallinger,Dallinger/Dallinger,berkeley-cocosci/Wallace,jcpeterson/Dallinger,suchow/Wallace,Dallinger/Dallinger,suchow/Wallace,jcpeterson/Dallinger,jcpeterson/Dallinger,berkeley-cocosci/Wallace,berkeley-cocosci/Wallace,suchow/Wallace,Dallinger/Dalli... | yaml | ## Code Before:
language: python
python:
- "2.7"
install:
- "pip install SQLAlchemy"
script: nosetests
## Instruction:
Add MySQL database to Travis
## Code After:
language: python
python:
- "2.7"
install:
- "pip install SQLAlchemy"
- "pip install MySQL-python"
before_script:
- "mysqld"
script: nosetests
| language: python
python:
- "2.7"
install:
- "pip install SQLAlchemy"
+ - "pip install MySQL-python"
+ before_script:
+ - "mysqld"
script: nosetests | 3 | 0.5 | 3 | 0 |
4df2a6f53283e632f6b7e601352e08fa3a05ff15 | src/Illuminate/Config/EnvironmentVariables.php | src/Illuminate/Config/EnvironmentVariables.php | <?php namespace Illuminate\Config;
/**
* PHP $_ENV loader for protecting sensitive configuration options.
*
* Inspired by the wonderful "Dotenv" library by Vance Lucas.
*/
class EnvironmentVariables {
/**
* The environment loader implementation.
*
* @var \Illuminate\Config\EnvironmentLoaderInterface $load... | <?php namespace Illuminate\Config;
/**
* PHP $_ENV loader for protecting sensitive configuration options.
*
* Inspired by the wonderful "Dotenv" library by Vance Lucas.
*/
class EnvironmentVariables {
/**
* The environment loader implementation.
*
* @var \Illuminate\Config\EnvironmentLoaderInterface $load... | Allow environment variables to be accessed via `getenv()` function. | Allow environment variables to be accessed via `getenv()` function.
Signed-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>
| PHP | mit | katcountiss/framework,smb/framework,rogue780/framework,irfanevrens/framework,willrowe/laravel-framework,loduis/laravel-framework,egekhter/framework,bobbybouwmann/framework,cjaoude/framework,maxbublik/framework,pouya-parsa/framework,proshanto/framework,GiantCowFilms/framework,TheGIBSON/framework,HipsterJazzbo/framework,... | php | ## Code Before:
<?php namespace Illuminate\Config;
/**
* PHP $_ENV loader for protecting sensitive configuration options.
*
* Inspired by the wonderful "Dotenv" library by Vance Lucas.
*/
class EnvironmentVariables {
/**
* The environment loader implementation.
*
* @var \Illuminate\Config\EnvironmentLoader... | <?php namespace Illuminate\Config;
/**
* PHP $_ENV loader for protecting sensitive configuration options.
*
* Inspired by the wonderful "Dotenv" library by Vance Lucas.
*/
class EnvironmentVariables {
/**
* The environment loader implementation.
*
* @var \Illuminate\Config\Environ... | 2 | 0.046512 | 2 | 0 |
011d0a591bc405794778748036166987a0a67db6 | README.md | README.md | [rxbroadcast.website](http://rxbroadcast.website)
=================================================
This is the source for [rxbroadcast.website](http://rxbroadcast.website), the website for the [RxBroadcast](https://github.com/RxBroadcast/RxBroadcast) project.
Quick start
-----------
To build the site:
vagrant ... | [rxbroadcast.website](http://rxbroadcast.website)
=================================================
This is the source for [rxbroadcast.website](http://rxbroadcast.website), the website for the [RxBroadcast](https://github.com/RxBroadcast) organization.
Quick start
-----------
To build the site:
vagrant up
... | Reword intro to work for organization more generally | Reword intro to work for organization more generally
| Markdown | isc | RxBroadcast/rxbroadcast.website,RxBroadcast/rxbroadcast.website,RxBroadcast/rxbroadcast.website | markdown | ## Code Before:
[rxbroadcast.website](http://rxbroadcast.website)
=================================================
This is the source for [rxbroadcast.website](http://rxbroadcast.website), the website for the [RxBroadcast](https://github.com/RxBroadcast/RxBroadcast) project.
Quick start
-----------
To build the sit... | [rxbroadcast.website](http://rxbroadcast.website)
=================================================
- This is the source for [rxbroadcast.website](http://rxbroadcast.website), the website for the [RxBroadcast](https://github.com/RxBroadcast/RxBroadcast) project.
? ... | 2 | 0.166667 | 1 | 1 |
6c1a81561131f8576dd384f55acea14b4993267e | markdown/escaping-hash-characters-in-markdown.md | markdown/escaping-hash-characters-in-markdown.md |
In the process of creating the root TIL `readme.md`, I wanted to make a header for C# items but was having trouble getting it to appear properly. In Markdown, you can escape various characters using a backslash (`\`), so if you wanted to type C\#, you would use `C\#`.
Unfortunately, when creating a heading the trail... |
In the process of creating the root TIL `readme.md`, I wanted to make a header for C# items but was having trouble getting it to appear properly. In Markdown, you can escape various characters using a backslash (`\`), so if you wanted to type C\#, you would use `C\#`.
Unfortunately, when creating a heading the trail... | Fix link to point to correct header. | Fix link to point to correct header. | Markdown | mit | veleek/til | markdown | ## Code Before:
In the process of creating the root TIL `readme.md`, I wanted to make a header for C# items but was having trouble getting it to appear properly. In Markdown, you can escape various characters using a backslash (`\`), so if you wanted to type C\#, you would use `C\#`.
Unfortunately, when creating a h... |
In the process of creating the root TIL `readme.md`, I wanted to make a header for C# items but was having trouble getting it to appear properly. In Markdown, you can escape various characters using a backslash (`\`), so if you wanted to type C\#, you would use `C\#`.
Unfortunately, when creating a heading t... | 2 | 0.125 | 1 | 1 |
e890ac9ef00193beac77b757c62911553cebf656 | test.py | test.py | import urllib
urllib.urlretrieve('http://192.168.0.13:8080/photoaf.jpg', '/home/pi/img/img.jpg') | import urllib
urllib.urlretrieve('http://192.168.0.13:8080/photoaf.jpg', 'img.jpg') | Change save path to local path | Change save path to local path
| Python | mit | adampiskorski/lpr_poc | python | ## Code Before:
import urllib
urllib.urlretrieve('http://192.168.0.13:8080/photoaf.jpg', '/home/pi/img/img.jpg')
## Instruction:
Change save path to local path
## Code After:
import urllib
urllib.urlretrieve('http://192.168.0.13:8080/photoaf.jpg', 'img.jpg') | import urllib
- urllib.urlretrieve('http://192.168.0.13:8080/photoaf.jpg', '/home/pi/img/img.jpg')
? -------------
+ urllib.urlretrieve('http://192.168.0.13:8080/photoaf.jpg', 'img.jpg') | 2 | 1 | 1 | 1 |
63823effc0df29af7dd404726eebcd67e92874fd | cu-production/files/cron.sh | cu-production/files/cron.sh |
STATUS=`docker inspect -f {{.State.Running}} cuplatform_tomcat_1`
if [ "$STATUS"=="false" ]; then
cd /home/admincu/cloudunit/cu-compose && /home/admincu/cloudunit/cu-compose/start-with-elk.sh
fi
|
STATUS=`docker inspect -f {{.State.Running}} cuplatform_tomcat_1`
if [ "$STATUS"=="false" ]; then
cd /home/admincu/cloudunit/cu-compose
/home/admincu/cloudunit/cu-compose/start-with-elk.sh
docker-compose kill hipache
docker-compose rm -f hipache
docker-compose up -d hipache
fi
| FIX : AUFS corruption after brutal electric reboot of server. Extrem usecase | FIX : AUFS corruption after brutal electric reboot of server. Extrem usecase
| Shell | agpl-3.0 | Treeptik/cloudunit,Treeptik/cloudunit,Treeptik/cloudunit,Treeptik/cloudunit,Treeptik/cloudunit,Treeptik/cloudunit | shell | ## Code Before:
STATUS=`docker inspect -f {{.State.Running}} cuplatform_tomcat_1`
if [ "$STATUS"=="false" ]; then
cd /home/admincu/cloudunit/cu-compose && /home/admincu/cloudunit/cu-compose/start-with-elk.sh
fi
## Instruction:
FIX : AUFS corruption after brutal electric reboot of server. Extrem usecase
## Code Afte... |
STATUS=`docker inspect -f {{.State.Running}} cuplatform_tomcat_1`
if [ "$STATUS"=="false" ]; then
- cd /home/admincu/cloudunit/cu-compose && /home/admincu/cloudunit/cu-compose/start-with-elk.sh
+ cd /home/admincu/cloudunit/cu-compose
+ /home/admincu/cloudunit/cu-compose/start-with-elk.sh
+ docker-co... | 7 | 1.4 | 6 | 1 |
b5ac1bcb2c61aceb0d823dea9ad47ac7bdd1f8fe | src/Stfalcon/Bundle/SponsorBundle/Resources/views/Sponsor/widget.html.twig | src/Stfalcon/Bundle/SponsorBundle/Resources/views/Sponsor/widget.html.twig | <div class="side-right-wrap">
<div class="side-right-holder">
<div class="partners">
<h2>Спонсоры</h2>
{% if sponsors %}
{% for sponsor in sponsors %}
{% if sponsor.logo %}
<div class="partner">
{... | <div class="side-right-wrap">
<div class="side-right-holder">
<div class="partners">
<h2>Спонсоры</h2>
{% if sponsors %}
{% for sponsor in sponsors %}
{% if sponsor.logo %}
<div class="partner">
{... | Update sponsor widget to show always link "to become sponsor" | Update sponsor widget to show always link "to become sponsor"
| Twig | mit | stfalcon/fwdays,bolotyuh/fwdays,bolotyuh/fwdays,bolotyuh/fwdays,stfalcon/fwdays,stfalcon/fwdays,stfalcon/fwdays,bolotyuh/fwdays,bolotyuh/fwdays | twig | ## Code Before:
<div class="side-right-wrap">
<div class="side-right-holder">
<div class="partners">
<h2>Спонсоры</h2>
{% if sponsors %}
{% for sponsor in sponsors %}
{% if sponsor.logo %}
<div class="partner">
... | <div class="side-right-wrap">
<div class="side-right-holder">
<div class="partners">
<h2>Спонсоры</h2>
{% if sponsors %}
{% for sponsor in sponsors %}
{% if sponsor.logo %}
<div class="partner">
... | 3 | 0.081081 | 1 | 2 |
de60661809953a18469585684e0c9570cc4d1858 | docker-entrypoint.sh | docker-entrypoint.sh |
set -e
MANAGE_PATH=/opt/km-api/km_api/manage.py
MANAGE_CMD="python $MANAGE_PATH"
if [[ "$1" = 'migrate' ]]; then
${MANAGE_CMD} migrate
${MANAGE_CMD} collectstatic --no-input
exit 0
fi
if [[ "$1" = 'server' ]]; then
# First shift to pop 'server' off the arg list. The rest of the arguments
# are p... |
set -e
MANAGE_PATH=/opt/km-api/km_api/manage.py
MANAGE_CMD="python $MANAGE_PATH"
if [[ "$1" = 'migrate' ]]; then
${MANAGE_CMD} migrate
${MANAGE_CMD} collectstatic --no-input
${MANAGE_CMD} createadmin
exit 0
fi
if [[ "$1" = 'server' ]]; then
# First shift to pop 'server' off the arg list. The res... | Create admin during migration process. | Create admin during migration process.
| Shell | apache-2.0 | knowmetools/km-api,knowmetools/km-api,knowmetools/km-api,knowmetools/km-api | shell | ## Code Before:
set -e
MANAGE_PATH=/opt/km-api/km_api/manage.py
MANAGE_CMD="python $MANAGE_PATH"
if [[ "$1" = 'migrate' ]]; then
${MANAGE_CMD} migrate
${MANAGE_CMD} collectstatic --no-input
exit 0
fi
if [[ "$1" = 'server' ]]; then
# First shift to pop 'server' off the arg list. The rest of the argum... |
set -e
MANAGE_PATH=/opt/km-api/km_api/manage.py
MANAGE_CMD="python $MANAGE_PATH"
if [[ "$1" = 'migrate' ]]; then
${MANAGE_CMD} migrate
${MANAGE_CMD} collectstatic --no-input
+ ${MANAGE_CMD} createadmin
exit 0
fi
if [[ "$1" = 'server' ]]; then
# First shift to pop 'ser... | 1 | 0.037037 | 1 | 0 |
520d08e46bf2554c2580003b9b33b70841db074a | themes/novel/layouts/shortcodes/csv-to-table.html | themes/novel/layouts/shortcodes/csv-to-table.html | {{ $arg0 := .Get 0 }}
{{ $csvResource := .Page.Resources.GetMatch $arg0 }}
{{ $parsedCsv := getCSV "," $csvResource.Permalink }}
{{ $resources := .Page.Resources }}
<div class="responsive-table">
<table class="sortable-table">
{{ range first 1 $parsedCsv }}
<thead>
<tr>
{{ range . }}<th>{{ . }}</t... | {{ $arg0 := .Get 0 }}
{{ $csvResource := .Page.Resources.GetMatch $arg0 }}
{{ $parsedCsv := getCSV "," $csvResource.Permalink }}
{{ $resources := .Page.Resources }}
<div class="responsive-table">
<table class="sortable-table">
{{ range first 1 $parsedCsv }}
<thead>
<tr>
{{ range . }}<th>{{ . }}</t... | Improve CSV table image alt text | Improve CSV table image alt text
Render the file name without dashes or characters like that and minus
the file extension.
TODO: Make the image rendering work for different types other than JPG.
| HTML | mit | bronzehedwick/chrisdeluca,bronzehedwick/chrisdeluca,bronzehedwick/chrisdeluca,bronzehedwick/chrisdeluca | html | ## Code Before:
{{ $arg0 := .Get 0 }}
{{ $csvResource := .Page.Resources.GetMatch $arg0 }}
{{ $parsedCsv := getCSV "," $csvResource.Permalink }}
{{ $resources := .Page.Resources }}
<div class="responsive-table">
<table class="sortable-table">
{{ range first 1 $parsedCsv }}
<thead>
<tr>
{{ range . ... | {{ $arg0 := .Get 0 }}
{{ $csvResource := .Page.Resources.GetMatch $arg0 }}
{{ $parsedCsv := getCSV "," $csvResource.Permalink }}
{{ $resources := .Page.Resources }}
<div class="responsive-table">
<table class="sortable-table">
{{ range first 1 $parsedCsv }}
<thead>
<tr>
{{ rang... | 2 | 0.060606 | 1 | 1 |
c867ed671203e74d4e1a2d43c8dce52064e293fb | README.md | README.md | A demo to test scss import under Windows
==============
Even if the <em>Typescript</em> compiler is used, the code is written with vanilla javascript (".js" as file extension), i.e. ES6/ES2015.
Angular annotations such as <em>component</em>, <em>directive</em>, ... are used but as plain javascript, i.e. without the ... | A demo to test scss import under Windows
==============
Even if the <em>Typescript</em> compiler is used, the code is written with vanilla javascript (".js" as file extension), i.e. ES6/ES2015.
Angular annotations such as <em>component</em>, <em>directive</em>, ... are used but as plain javascript, i.e. without the ... | Update docs with Meteor freezing launching under Windows | Update docs with Meteor freezing launching under Windows
| Markdown | mit | atao60/meteor-angular4-scss,atao60/meteor-angular4-scss | markdown | ## Code Before:
A demo to test scss import under Windows
==============
Even if the <em>Typescript</em> compiler is used, the code is written with vanilla javascript (".js" as file extension), i.e. ES6/ES2015.
Angular annotations such as <em>component</em>, <em>directive</em>, ... are used but as plain javascript, i... | A demo to test scss import under Windows
==============
Even if the <em>Typescript</em> compiler is used, the code is written with vanilla javascript (".js" as file extension), i.e. ES6/ES2015.
Angular annotations such as <em>component</em>, <em>directive</em>, ... are used but as plain javascript, i.e... | 6 | 0.5 | 6 | 0 |
f9fa16fb2bc04d6bdddf19a939291e39b0fa1741 | ores/wsgi/routes/v3/precache.py | ores/wsgi/routes/v3/precache.py | import json
import logging
from urllib.parse import unquote
from flask import request
from . import scores
from ... import preprocessors, responses, util
logger = logging.getLogger(__name__)
def configure(config, bp, scoring_system):
precache_map = util.build_precache_map(config)
@bp.route("/v3/precache/... | import logging
from flask import request
from . import scores
from ... import preprocessors, responses, util
logger = logging.getLogger(__name__)
def configure(config, bp, scoring_system):
precache_map = util.build_precache_map(config)
@bp.route("/v3/precache/", methods=["POST"])
@preprocessors.nocac... | Use the whole body of POST request as the json event in precaching | Use the whole body of POST request as the json event in precaching
| Python | mit | he7d3r/ores,wiki-ai/ores,wiki-ai/ores,wiki-ai/ores,he7d3r/ores,he7d3r/ores | python | ## Code Before:
import json
import logging
from urllib.parse import unquote
from flask import request
from . import scores
from ... import preprocessors, responses, util
logger = logging.getLogger(__name__)
def configure(config, bp, scoring_system):
precache_map = util.build_precache_map(config)
@bp.rout... | - import json
import logging
- from urllib.parse import unquote
from flask import request
from . import scores
from ... import preprocessors, responses, util
logger = logging.getLogger(__name__)
def configure(config, bp, scoring_system):
precache_map = util.build_precache_map(config)... | 18 | 0.486486 | 8 | 10 |
40a17b23b6916c50a04a4304a30e703fe6d757d0 | components/commercial_filter/views/popular_artists/index.styl | components/commercial_filter/views/popular_artists/index.styl | .cf-popular_artists
&__row
margin-top 15px
&:hover
i
color black
img
display inline-block
border-radius 15px
margin-right 10px
vertical-align middle
a
text-decoration none
i
color gray-lighter-color
vertical-align middle
float right
... | .cf-popular_artists
&__row
margin-top 15px
&:hover
i
color black
img
display inline-block
border-radius 15px
margin-right 10px
vertical-align middle
a
text-decoration none
i
color gray-lighter-color
vertical-align middle
float right
... | Add color transition and change font size of chevron on popular artists on /collect | Add color transition and change font size of chevron on popular artists on /collect
| Stylus | mit | artsy/force,xtina-starr/force,xtina-starr/force,mzikherman/force,izakp/force,erikdstock/force,joeyAghion/force,yuki24/force,izakp/force,yuki24/force,kanaabe/force,anandaroop/force,artsy/force-public,xtina-starr/force,cavvia/force-1,anandaroop/force,yuki24/force,erikdstock/force,anandaroop/force,oxaudo/force,damassi/for... | stylus | ## Code Before:
.cf-popular_artists
&__row
margin-top 15px
&:hover
i
color black
img
display inline-block
border-radius 15px
margin-right 10px
vertical-align middle
a
text-decoration none
i
color gray-lighter-color
vertical-align middle
... | .cf-popular_artists
&__row
margin-top 15px
&:hover
i
color black
img
display inline-block
border-radius 15px
margin-right 10px
vertical-align middle
a
text-decoration none
i
color gray-lighter-color
vertical-al... | 2 | 0.074074 | 2 | 0 |
3307bfb7075a527dc7805da2ff735f461f5fc02f | employees/models.py | employees/models.py | from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import AbstractUser
from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compatible
class Role(models.Model):
name = models.CharField(max_length=100)
def __str__(self):
ret... | from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import AbstractUser
from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compatible
class Role(models.Model):
name = models.CharField(max_length=100)
def __str__(self):
ret... | Change categories field to non required. | Change categories field to non required.
| Python | mit | neosergio/allstars | python | ## Code Before:
from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import AbstractUser
from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compatible
class Role(models.Model):
name = models.CharField(max_length=100)
def __str__(se... | from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import AbstractUser
from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compatible
class Role(models.Model):
name = models.CharField(max_length=100)
def __... | 2 | 0.054054 | 1 | 1 |
d417900d9660701f2a510239280d724fb0eb0d49 | manoseimas/mps_v2/templates/header_scrooled.jade | manoseimas/mps_v2/templates/header_scrooled.jade | - load static from staticfiles
- load i18n
- load sboard
header.ui.grid.scrooled
.computer.tablet.only.row
.row
.ui.pointing.menu.fixed
a(href="/"): img(src="{% static 'img/logo.png' %}").logo
.item.parliamentarian
.name {{profile.full_name}}
.fraction-name {{profile.fr... | - load static from staticfiles
- load i18n
- load sboard
header.ui.grid.scrooled
.computer.tablet.only.row
.row
.ui.pointing.menu.fixed
a(href="/"): img(src="{% static 'img/logo.png' %}").logo
.item.parliamentarian
.name {{profile.full_name}}
.fraction-name {{profile.fr... | Add projects into scrolled header. | Add projects into scrolled header. | Jade | agpl-3.0 | ManoSeimas/manoseimas.lt,ManoSeimas/manoseimas.lt,ManoSeimas/manoseimas.lt,ManoSeimas/manoseimas.lt | jade | ## Code Before:
- load static from staticfiles
- load i18n
- load sboard
header.ui.grid.scrooled
.computer.tablet.only.row
.row
.ui.pointing.menu.fixed
a(href="/"): img(src="{% static 'img/logo.png' %}").logo
.item.parliamentarian
.name {{profile.full_name}}
.fraction-n... | - load static from staticfiles
- load i18n
- load sboard
header.ui.grid.scrooled
.computer.tablet.only.row
.row
.ui.pointing.menu.fixed
a(href="/"): img(src="{% static 'img/logo.png' %}").logo
.item.parliamentarian
.name {{profile.full_name}}
.... | 1 | 0.033333 | 1 | 0 |
e7bfa4bc9bc8c1caf7ef5f4618943543bed99f0a | linter.py | linter.py |
from SublimeLinter.lint import Linter, util
import platform
class Iverilog (Linter):
syntax = ('verilog')
cmd = 'iverilog -t null'
tempfile_suffix = 'verilog'
# We are missing out on some errors by ignoring multiline messages.
if platform.system() == 'Windows':
regex = (
r'^(... |
import sublime, sublime_plugin
from SublimeLinter.lint import Linter, util
class Iverilog (Linter):
syntax = ('verilog')
cmd = 'iverilog -t null'
tempfile_suffix = 'verilog'
# We are missing out on some errors by ignoring multiline messages.
if sublime.platform() == 'windows':
regex = (
... | Use the platform() in sublime.py rather than importing platform. | Use the platform() in sublime.py rather than importing platform.
| Python | mit | jfcherng/SublimeLinter-contrib-iverilog,jfcherng/SublimeLinter-contrib-iverilog | python | ## Code Before:
from SublimeLinter.lint import Linter, util
import platform
class Iverilog (Linter):
syntax = ('verilog')
cmd = 'iverilog -t null'
tempfile_suffix = 'verilog'
# We are missing out on some errors by ignoring multiline messages.
if platform.system() == 'Windows':
regex = (
... |
+ import sublime, sublime_plugin
from SublimeLinter.lint import Linter, util
- import platform
class Iverilog (Linter):
syntax = ('verilog')
cmd = 'iverilog -t null'
tempfile_suffix = 'verilog'
# We are missing out on some errors by ignoring multiline messages.
- if platform.... | 4 | 0.16 | 2 | 2 |
5a62ea062482cbf2cdab33391d8f30b0f59dcdcb | src/background.js | src/background.js | /**
* Mailvelope - secure email with OpenPGP encryption for Webmail
* Copyright (C) 2012-2017 Mailvelope GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License version 3
* as published by the Free Software Foundation.
*
* This ... | /**
* Mailvelope - secure email with OpenPGP encryption for Webmail
* Copyright (C) 2012-2017 Mailvelope GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License version 3
* as published by the Free Software Foundation.
*
* This ... | Enable event handling before keyring is loaded | Enable event handling before keyring is loaded
| JavaScript | agpl-3.0 | mailvelope/mailvelope,mailvelope/mailvelope,mailvelope/mailvelope | javascript | ## Code Before:
/**
* Mailvelope - secure email with OpenPGP encryption for Webmail
* Copyright (C) 2012-2017 Mailvelope GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License version 3
* as published by the Free Software Foundat... | /**
* Mailvelope - secure email with OpenPGP encryption for Webmail
* Copyright (C) 2012-2017 Mailvelope GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License version 3
* as published by the Free Software Foundatio... | 2 | 0.060606 | 1 | 1 |
c672d9b5351688f2df5ead860378afd178169c9e | scripts/initialize.sh | scripts/initialize.sh |
set -e
pip3 install --upgrade pip
pip3 install neovim
pip2 install --upgrade pip
pip2 install neovim
gem update
gem install neovim
npm i -g neovim
KYRAT_PATH=~/.local/share/kyrat
mkdir -p "$(dirname ~/.local/share)"
if [ ! -d $KYRAT_PATH ]; then
git clone git@github.com:fsquillace/kyrat.git $KYRAT_PATH
else
... |
set -e
/usr/local/bin/pip3 install --upgrade pip
/usr/local/bin/pip3 install neovim
/usr/local/bin/pip2 install --upgrade pip
/usr/local/bin/pip2 install neovim
/usr/local/opt/ruby/bin/gem update
/usr/local/opt/ruby/bin/gem install neovim
/usr/local/bin/npm i -g neovim
KYRAT_PATH=~/.local/share/kyrat
mkdir -p "$(... | Use system assets for vim | Use system assets for vim
| Shell | mit | ikuwow/dotfiles,ikuwow/dotfiles,ikuwow/dotfiles | shell | ## Code Before:
set -e
pip3 install --upgrade pip
pip3 install neovim
pip2 install --upgrade pip
pip2 install neovim
gem update
gem install neovim
npm i -g neovim
KYRAT_PATH=~/.local/share/kyrat
mkdir -p "$(dirname ~/.local/share)"
if [ ! -d $KYRAT_PATH ]; then
git clone git@github.com:fsquillace/kyrat.git $K... |
set -e
- pip3 install --upgrade pip
+ /usr/local/bin/pip3 install --upgrade pip
? +++++++++++++++
- pip3 install neovim
+ /usr/local/bin/pip3 install neovim
- pip2 install --upgrade pip
+ /usr/local/bin/pip2 install --upgrade pip
? +++++++++++++++
- pip2 install neovim
+ /usr/local/bin/pip2 install neovim
... | 14 | 0.538462 | 7 | 7 |
efa89e30b379bd614cdccd5017d9b1e970e08e66 | metadata/agersant.polaris.yml | metadata/agersant.polaris.yml | Categories:
- Multimedia
License: MIT
AuthorName: Antoine Gersant
AuthorEmail: antoine.gersant@lesforges.org
SourceCode: https://github.com/agersant/polaris-android
IssueTracker: https://github.com/agersant/polaris-android/issues
AutoName: Polaris
RepoType: git
Repo: https://github.com/agersant/polaris-android
Bui... | Categories:
- Multimedia
License: MIT
AuthorName: Antoine Gersant
AuthorEmail: antoine.gersant@lesforges.org
SourceCode: https://github.com/agersant/polaris-android
IssueTracker: https://github.com/agersant/polaris-android/issues
AutoName: Polaris
RepoType: git
Repo: https://github.com/agersant/polaris-android
Bui... | Update Polaris to 0.8.7 (415293113) | Update Polaris to 0.8.7 (415293113)
| YAML | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata | yaml | ## Code Before:
Categories:
- Multimedia
License: MIT
AuthorName: Antoine Gersant
AuthorEmail: antoine.gersant@lesforges.org
SourceCode: https://github.com/agersant/polaris-android
IssueTracker: https://github.com/agersant/polaris-android/issues
AutoName: Polaris
RepoType: git
Repo: https://github.com/agersant/pola... | Categories:
- Multimedia
License: MIT
AuthorName: Antoine Gersant
AuthorEmail: antoine.gersant@lesforges.org
SourceCode: https://github.com/agersant/polaris-android
IssueTracker: https://github.com/agersant/polaris-android/issues
AutoName: Polaris
RepoType: git
Repo: https://github.com/agers... | 12 | 0.363636 | 10 | 2 |
b6441bb6f9cd8e5fe84df045138b2e7eb0c8026c | app/mailers/spree/shipment_mailer.rb | app/mailers/spree/shipment_mailer.rb | class Spree::ShipmentMailer < ActionMailer::Base
helper "spree/base"
def shipped_email(shipment, resend=false)
@shipment = shipment
subject = (resend ? "[RESEND] " : "")
subject += "#{Spree::Config[:site_name]} Shipment Notification ##{shipment.order.number}"
mail_params = {:to => shipment.order.em... | class Spree::ShipmentMailer < ActionMailer::Base
helper "spree/base"
def shipped_email(shipment, resend=false)
@shipment = shipment.respond_to?(:id) ? shipment : Spree::Shipment.find(shipment)
subject = (resend ? "[RESEND] " : "")
subject += "#{Spree::Config[:site_name]} Shipment Notification ##{shipme... | Allow shipped_email to take either a shipment id or a shipment object | Allow shipped_email to take either a shipment id or a shipment object
Fixes #54
| Ruby | bsd-3-clause | solidusio/solidus_multi_domain,solidusio/solidus_multi_domain,solidusio/solidus_multi_domain | ruby | ## Code Before:
class Spree::ShipmentMailer < ActionMailer::Base
helper "spree/base"
def shipped_email(shipment, resend=false)
@shipment = shipment
subject = (resend ? "[RESEND] " : "")
subject += "#{Spree::Config[:site_name]} Shipment Notification ##{shipment.order.number}"
mail_params = {:to => s... | class Spree::ShipmentMailer < ActionMailer::Base
helper "spree/base"
def shipped_email(shipment, resend=false)
- @shipment = shipment
+ @shipment = shipment.respond_to?(:id) ? shipment : Spree::Shipment.find(shipment)
subject = (resend ? "[RESEND] " : "")
subject += "#{Spree::Config[:si... | 2 | 0.142857 | 1 | 1 |
1fa758c1cf37209c06560dbd9734cca29a53c689 | components/camel-hashicorp-vault/src/main/docs/hashicorp-vault-component.adoc | components/camel-hashicorp-vault/src/main/docs/hashicorp-vault-component.adoc | = Hashicorp Vault Component
:doctitle: Hashicorp Vault
:shortname: hashicorp-vault
:artifactid: camel-hashicorp-vault
:description: Manage secrets in Hashicorp Vault Service
:since: 3.18
:supportlevel: Preview
:component-header: Only producer is supported
//Manually maintained attributes
:group: Azure
:camel-spring-boo... | = Hashicorp Vault Component
:doctitle: Hashicorp Vault
:shortname: hashicorp-vault
:artifactid: camel-hashicorp-vault
:description: Manage secrets in Hashicorp Vault Service
:since: 3.18
:supportlevel: Preview
:component-header: Only producer is supported
//Manually maintained attributes
:camel-spring-boot-name: hashic... | Remove group azure as its not from azure | Remove group azure as its not from azure
| AsciiDoc | apache-2.0 | cunningt/camel,christophd/camel,cunningt/camel,tadayosi/camel,cunningt/camel,christophd/camel,christophd/camel,tadayosi/camel,christophd/camel,apache/camel,apache/camel,tadayosi/camel,tadayosi/camel,apache/camel,cunningt/camel,apache/camel,tadayosi/camel,apache/camel,cunningt/camel,tadayosi/camel,christophd/camel,apach... | asciidoc | ## Code Before:
= Hashicorp Vault Component
:doctitle: Hashicorp Vault
:shortname: hashicorp-vault
:artifactid: camel-hashicorp-vault
:description: Manage secrets in Hashicorp Vault Service
:since: 3.18
:supportlevel: Preview
:component-header: Only producer is supported
//Manually maintained attributes
:group: Azure
:... | = Hashicorp Vault Component
:doctitle: Hashicorp Vault
:shortname: hashicorp-vault
:artifactid: camel-hashicorp-vault
:description: Manage secrets in Hashicorp Vault Service
:since: 3.18
:supportlevel: Preview
:component-header: Only producer is supported
//Manually maintained attributes
- :group: Azu... | 1 | 0.022727 | 0 | 1 |
486169b301445fc9daeb15cd75b62b79fa2ef5c3 | test/dtile-app/dtile-app_test.html | test/dtile-app/dtile-app_test.html | <!doctype html>
<html>
<head>
<title>dtile-app test</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
<script src="../../../web-component-tester/brow... | <!doctype html>
<html>
<head>
<title>dtile-app test</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
<script src="../../../web-component-tester/brow... | Convert test style to BDD | Convert test style to BDD
| HTML | unknown | MagnonGames/DTile,theMagnon/DTile,MagnonGames/DTile,theMagnon/DTile,theMagnon/DTile,MagnonGames/DTile | html | ## Code Before:
<!doctype html>
<html>
<head>
<title>dtile-app test</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
<script src="../../../web-compo... | <!doctype html>
<html>
<head>
<title>dtile-app test</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
<script src="../../../web-com... | 9 | 0.290323 | 5 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.