commit stringlengths 40 40 | old_file stringlengths 4 237 | new_file stringlengths 4 237 | old_contents stringlengths 1 4.24k | new_contents stringlengths 5 4.84k | subject stringlengths 15 778 | message stringlengths 16 6.86k | lang stringlengths 1 30 | license stringclasses 13
values | repos stringlengths 5 116k | config stringlengths 1 30 | content stringlengths 105 8.72k |
|---|---|---|---|---|---|---|---|---|---|---|---|
355f76947bad0b32ac96547c7a5397c150db19e1 | README.md | README.md |
(very early stage of development)
## Compile instructions
Be sure these librairies are installed :
* libsoup-2.4
* gio-2.0
* gio-unix-2.0
* gee-0.8
* json-glib-1.0
Just run :
```bash
valac -g --save-temps \
--pkg gtk+-3.0 \
--pkg libsoup-2.4 \
--pkg gio-2.0 \
--pkg gio-unix-2.0... |
(very early stage of development)
## Compile instructions
Be sure these librairies are installed :
* valac (`apt-get install valac`, `apt-get install libgtk-3-dev`)
* libsoup-2.4
* gio-2.0
* gio-unix-2.0
* gee-0.8 (`apt-get install libgee-0.8`)
* json-glib-1.0 (`apt-get install libjson-glib-1.0.0 libjson-glib-dev`)... | Add apt-get commands to install dependencies | Add apt-get commands to install dependencies | Markdown | mit | lcallarec/dockery,lcallarec/gnome-docker-manager | markdown | ## Code Before:
(very early stage of development)
## Compile instructions
Be sure these librairies are installed :
* libsoup-2.4
* gio-2.0
* gio-unix-2.0
* gee-0.8
* json-glib-1.0
Just run :
```bash
valac -g --save-temps \
--pkg gtk+-3.0 \
--pkg libsoup-2.4 \
--pkg gio-2.0 \
--... |
3246df2610f4d550a680624e77062e2056ff6356 | src/scripts/components/control-panel.js | src/scripts/components/control-panel.js | /** @jsx REACT.DOM */
import React from 'react';
export default React.createClass({
render: function () {
return (
<div className="control-panel">
<p>{this.props.track ? this.props.track.title : 'CONTROL PANEL'}</p>
</div>
);
}
});
| /** @jsx REACT.DOM */
import React from 'react';
export default React.createClass({
render: function () {
const trackTitle = this.props.track ? this.props.track.title : 'CONTROL PANEL';
return (
<div className="control-panel">
<p>{trackTitle}</p>
</div>
);
}
});
| Move control panel title into a variable | Move control panel title into a variable
This sets me up for more
| JavaScript | mit | brandly/ss15-queso,brandly/ss15-queso | javascript | ## Code Before:
/** @jsx REACT.DOM */
import React from 'react';
export default React.createClass({
render: function () {
return (
<div className="control-panel">
<p>{this.props.track ? this.props.track.title : 'CONTROL PANEL'}</p>
</div>
);
}
});
## Instruction:
Move control panel tit... |
cd4a0fe699a3dc7cc5624afb2368b4a7d6e7f5b9 | setup.rb | setup.rb | require 'rbconfig'
require 'fileutils'
class Setup
attr_accessor :site_dir, :site_lib_dir, :site_arch_dir
def initialize
@site_dir = RbConfig::CONFIG["sitedir"]
@site_lib_dir = RbConfig::CONFIG["sitelibdir"]
@site_arch_dir = RbConfig::CONFIG["sitearchdir"]
end
def compile
Dir.chdir 'ext' do
... | require 'rbconfig'
require 'fileutils'
class Setup
attr_accessor :site_dir, :site_lib_dir, :site_arch_dir
def initialize
@site_dir = RbConfig::CONFIG["sitedir"]
@site_lib_dir = RbConfig::CONFIG["sitelibdir"]
@site_arch_dir = RbConfig::CONFIG["sitearchdir"]
end
def compile
Dir.chdir 'ext' do
... | Implement new command for removing existing installation | Implement new command for removing existing installation
| Ruby | mit | code-mancers/rbkit,zBMNForks/rbkit,zBMNForks/rbkit,code-mancers/rbkit,code-mancers/rbkit | ruby | ## Code Before:
require 'rbconfig'
require 'fileutils'
class Setup
attr_accessor :site_dir, :site_lib_dir, :site_arch_dir
def initialize
@site_dir = RbConfig::CONFIG["sitedir"]
@site_lib_dir = RbConfig::CONFIG["sitelibdir"]
@site_arch_dir = RbConfig::CONFIG["sitearchdir"]
end
def compile
Dir.... |
41ba385efd7745efff2dc03bad513846964b2b2c | src/Collection/LocalityCollection.php | src/Collection/LocalityCollection.php | <?php
namespace Galahad\LaravelAddressing\Collection;
use Galahad\LaravelAddressing\Entity\Locality;
/**
* Class LocalityCollection
*
* @package Galahad\LaravelAddressing
* @author Junior Grossi <juniorgro@gmail.com>
*/
class LocalityCollection extends Collection implements CollectionInterface
{
/**
* ... | <?php
namespace Galahad\LaravelAddressing\Collection;
use Galahad\LaravelAddressing\Entity\Locality;
/**
* Class LocalityCollection
*
* @package Galahad\LaravelAddressing
* @author Junior Grossi <juniorgro@gmail.com>
*/
class LocalityCollection extends Collection implements CollectionInterface
{
/**
* ... | Remove key from toList() method in LocalitiesCollection class | Remove key from toList() method in LocalitiesCollection class
| PHP | mit | glhd/laravel-addressing | php | ## Code Before:
<?php
namespace Galahad\LaravelAddressing\Collection;
use Galahad\LaravelAddressing\Entity\Locality;
/**
* Class LocalityCollection
*
* @package Galahad\LaravelAddressing
* @author Junior Grossi <juniorgro@gmail.com>
*/
class LocalityCollection extends Collection implements CollectionInterface
{... |
f259b1b3d7f63176494ce919450f35863ac1d3ea | coreext.sh | coreext.sh |
parse() {
pop c
push `inbufgetaddr`
n=0;
while inbufget xc; do
if test $xc = $c; then break; fi
n="`\"$expr\" $n + 1`"
done
push $n
}
builtin 'parse' parse
dot_s() { # .s
n=0
while expr $n '<' $sp >/dev/null; do
eval "echo $n : \$stk_$n"
n="`\"$expr\" $n + 1`"
done
}
builtin '.s' dot... |
parse() {
pop c
push `inbufgetaddr`
n=0;
while inbufget xc; do
if test $xc = $c; then break; fi
n="`\"$expr\" $n + 1`"
done
push $n
}
builtin 'parse' parse
dot_s() { # .s
n=0
while expr $n '<' $sp >/dev/null; do
eval "echo $n : \$stk_$n"
n="`\"$expr\" $n + 1`"
done
}
builtin '.s' dot... | Add 0<> core extension word | Add 0<> core extension word
| Shell | mit | zeldin/shForth | shell | ## Code Before:
parse() {
pop c
push `inbufgetaddr`
n=0;
while inbufget xc; do
if test $xc = $c; then break; fi
n="`\"$expr\" $n + 1`"
done
push $n
}
builtin 'parse' parse
dot_s() { # .s
n=0
while expr $n '<' $sp >/dev/null; do
eval "echo $n : \$stk_$n"
n="`\"$expr\" $n + 1`"
done
}
... |
0006849e1a01450657b7de7e3475a5f2c8ac1927 | wordpress/wordpress-performance-notes.md | wordpress/wordpress-performance-notes.md |
Based on the TTFB in Chrome Dev Tools, I have determined that the following plugins significantly slow down a request.
- Easy Update Manager (aka stops-core-theme-and-plugin-updates)
+ Adds 100+ ms
|
Based on the TTFB in Chrome Dev Tools, I have determined that the following plugins significantly slow down a request.
- Easy Update Manager (aka stops-core-theme-and-plugin-updates)
+ Adds 100+ ms to front-end requests
- Yoast (aka wordpress-seo)
+ Adds ~25 ms to front-end requests
| Update Plugins Known to be Slow Section | Update Plugins Known to be Slow Section | Markdown | mit | dhurlburtusa/shortcuts,dhurlburtusa/shortcuts | markdown | ## Code Before:
Based on the TTFB in Chrome Dev Tools, I have determined that the following plugins significantly slow down a request.
- Easy Update Manager (aka stops-core-theme-and-plugin-updates)
+ Adds 100+ ms
## Instruction:
Update Plugins Known to be Slow Section
## Code After:
Based on the TTFB in Chrome ... |
c4d097e6b6193b7b2c02ab525df5bd5e99e16d50 | .travis.yml | .travis.yml | language: ruby
sudo: required
rvm:
- 2.2.7
- 2.3.5
- 2.4.2
install:
- sudo apt-get update -qq
- sudo apt-get install libpcap-dev -qq
- bundle install --path vendor/bundle --jobs=3 --retry=3
before_script:
- openssl version
- ruby -ropenssl -e 'puts OpenSSL::VERSION'
script:
- bundle exec rake
- rvm... | language: ruby
sudo: required
rvm:
- 2.2.7
- 2.3.5
- 2.4.2
- 2.5.0
install:
- sudo apt-get update -qq
- sudo apt-get install libpcap-dev -qq
- bundle install --path vendor/bundle --jobs=3 --retry=3
before_script:
- openssl version
- ruby -ropenssl -e 'puts OpenSSL::VERSION'
script:
- bundle exec ra... | Add build with ruby 2.5.0 | Add build with ruby 2.5.0
| YAML | mit | sdaubert/packetgen | yaml | ## Code Before:
language: ruby
sudo: required
rvm:
- 2.2.7
- 2.3.5
- 2.4.2
install:
- sudo apt-get update -qq
- sudo apt-get install libpcap-dev -qq
- bundle install --path vendor/bundle --jobs=3 --retry=3
before_script:
- openssl version
- ruby -ropenssl -e 'puts OpenSSL::VERSION'
script:
- bundle e... |
e4a6fa83cbb57ef2a27b93316dd5f8f2964d1b0b | package.json | package.json | {
"name": "karma-sauce-example",
"version": "0.0.0",
"description": "An example of using the Karma test runner with Sauce Labs' browser cloud to run JavaScript unit tests",
"main": "karma.conf-ci.js",
"scripts": {
"test": "karma start karma.conf-ci.js",
"postinstall": "node install.js"
},
"author"... | {
"name": "karma-sauce-example",
"version": "0.0.0",
"description": "An example of using the Karma test runner with Sauce Labs' browser cloud to run JavaScript unit tests",
"main": "karma.conf-ci.js",
"scripts": {
"test": "karma start karma.conf-ci.js",
"postinstall": "node install.js"
},
"author"... | Use newer version of sauce connect | Use newer version of sauce connect
| JSON | apache-2.0 | sarbbottam/karma-sauce-example,riyamodi/practiceCI,NickTomlin/karma-sauce-example,intrepido/CI-Test2 | json | ## Code Before:
{
"name": "karma-sauce-example",
"version": "0.0.0",
"description": "An example of using the Karma test runner with Sauce Labs' browser cloud to run JavaScript unit tests",
"main": "karma.conf-ci.js",
"scripts": {
"test": "karma start karma.conf-ci.js",
"postinstall": "node install.js"... |
f4ade201e4160b4bc9752c4a8db11ee5f64d343d | install-protobuf.sh | install-protobuf.sh | set -ex
basename=protobuf-2.6.0
tarball=$basename.tar.bz2
wget https://protobuf.googlecode.com/svn/rc/$tarball
tar -xvf $tarball
cd $basename && ./configure --prefix=/usr && make && make install
|
set -ex
version=2.6.1
basename=protobuf-$version
curl -sL https://github.com/google/protobuf/releases/download/v$version/$basename.tar.bz2 | tar jx
cd $basename && ./configure --prefix=/usr && make && make install
| Update `protobuf` to 2.6.1 and simplify the install | Update `protobuf` to 2.6.1 and simplify the install
| Shell | mit | quixoten/protobuf,zanker/protobuf,localshred/protobuf,lookout/protobuffy,film42/protobuf,ruby-protobuf/protobuf,quixoten/protobuf,localshred/protobuf,lookout/protobuffy,brianstien/protobuf,film42/protobuf,zanker/protobuf,ruby-protobuf/protobuf,brianstien/protobuf | shell | ## Code Before:
set -ex
basename=protobuf-2.6.0
tarball=$basename.tar.bz2
wget https://protobuf.googlecode.com/svn/rc/$tarball
tar -xvf $tarball
cd $basename && ./configure --prefix=/usr && make && make install
## Instruction:
Update `protobuf` to 2.6.1 and simplify the install
## Code After:
set -ex
version=2.6.... |
209b771431ad4472a94f3180dcfe34b50f93f053 | test/mjsunit/compiler/opt-next-call-turbo.js | test/mjsunit/compiler/opt-next-call-turbo.js | // Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax --turbo-filter=*
function foo() {
with ({ value:"fooed" }) { return value; }
}
%OptimizeFunctionOnNextCall(foo);
as... | // Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax --turbo-filter=*
function foo() {
with ({ value:"fooed" }) { return value; }
}
%OptimizeFunctionOnNextCall(foo);
as... | Enable test coverage for test coverage. | Enable test coverage for test coverage.
R=titzer@chromium.org
TEST=mjsunit/compiler/opt-next-call-turbo
Review URL: https://codereview.chromium.org/822673003
Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#26192}
| JavaScript | mit | UniversalFuture/moosh,UniversalFuture/moosh,UniversalFuture/moosh,UniversalFuture/moosh | javascript | ## Code Before:
// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax --turbo-filter=*
function foo() {
with ({ value:"fooed" }) { return value; }
}
%OptimizeFunctionOnN... |
956bf3e178e84b2733448ff6e98d74feac19b947 | README.md | README.md |
`sql_tracker` tracks SQL queries by subscribing to Rails' `sql.active_record` event notifications.
It then aggregates and generates report to give you insights about all the sql queries happened in your Rails application.
## Installation
Add this line to your application's Gemfile:
```ruby
group :development, :tes... |
`sql_tracker` tracks SQL queries by subscribing to Rails' `sql.active_record` event notifications.
It then aggregates and generates report to give you insights about all the sql queries happened in your Rails application.
## Installation
Add this line to your application's Gemfile:
```ruby
group :development, :tes... | Update readme to include configurations | Update readme to include configurations
| Markdown | mit | steventen/sql_tracker,steventen/sql_tracker | markdown | ## Code Before:
`sql_tracker` tracks SQL queries by subscribing to Rails' `sql.active_record` event notifications.
It then aggregates and generates report to give you insights about all the sql queries happened in your Rails application.
## Installation
Add this line to your application's Gemfile:
```ruby
group :d... |
b70e29af95577d048f8bb6aa04488431abd9ec90 | app/helpers/blacklight_helper.rb | app/helpers/blacklight_helper.rb | module BlacklightHelper
# Make our application helper functions available to core blacklight views
include ApplicationHelper
include Blacklight::BlacklightHelperBehavior
include Findingaids::Solr::CatalogHelpers::ClassMethods
# delegate :blacklight_config, to: CatalogController
# Change link to document t... | module BlacklightHelper
# Make our application helper functions available to core blacklight views
include ApplicationHelper
include Blacklight::BlacklightHelperBehavior
include Findingaids::Solr::CatalogHelpers::ClassMethods
# delegate :blacklight_config, to: CatalogController
# Change link to document t... | Fix blacklight helper error (cucumber not passing) | Fix blacklight helper error (cucumber not passing)
| Ruby | mit | NYULibraries/findingaids,NYULibraries/findingaids,NYULibraries/findingaids | ruby | ## Code Before:
module BlacklightHelper
# Make our application helper functions available to core blacklight views
include ApplicationHelper
include Blacklight::BlacklightHelperBehavior
include Findingaids::Solr::CatalogHelpers::ClassMethods
# delegate :blacklight_config, to: CatalogController
# Change li... |
f7b4d1cda4e1ffb5e50be903aafd8d0c1e1be38c | .circleci/config.yml | .circleci/config.yml | version: 2
jobs:
build:
working_directory: /go/src/github.com/SignifAi/snap-plugin-publisher-pubsub
docker:
- image: circleci/golang:1.8.1
steps:
- checkout
- run:
command: |
echo "---"
curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/g... | version: 2
jobs:
build:
working_directory: /go/src/github.com/SignifAi/snap-plugin-publisher-pubsub
docker:
- image: circleci/golang:1.8.1
steps:
- checkout
- run:
command: |
echo "---"
curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/g... | Install OpenJDK 7 JRE for pubsub emulator | Install OpenJDK 7 JRE for pubsub emulator
| YAML | apache-2.0 | SignifAi/snap-plugin-publisher-pubsub,SignifAi/snap-plugin-publisher-pubsub | yaml | ## Code Before:
version: 2
jobs:
build:
working_directory: /go/src/github.com/SignifAi/snap-plugin-publisher-pubsub
docker:
- image: circleci/golang:1.8.1
steps:
- checkout
- run:
command: |
echo "---"
curl -O https://dl.google.com/dl/cloudsdk/channels/r... |
c36f6f6399761fa8a29aea9ad4f16ce57d700c9d | src/scripts/modules/search/results/list/item-partial.html | src/scripts/modules/search/results/list/item-partial.html | <tr>
<td class="type">
{{#is mediaType 'application/vnd.org.cnx.collection'}}
<span class="fa fa-book"></span>
{{else}}
{{#is mediaType 'application/vnd.org.cnx.module'}}
<span class="fa fa-file"></span>
{{else}}
<span class="fa fa-question-circle"></span>
{{/is}}
{... | <tr>
<td class="type">
{{#is mediaType 'application/vnd.org.cnx.collection'}}
<span class="fa fa-book" aria-label="book"></span>
{{else}}
{{#is mediaType 'application/vnd.org.cnx.module'}}
<span class="fa fa-file" arai-label="file"></span>
{{else}}
<span class="fa fa-question... | Add labels to type icons | Add labels to type icons
| HTML | agpl-3.0 | katalysteducation/webview,Connexions/webview,katalysteducation/webview,Connexions/webview,dak/webview,dak/webview,Connexions/webview,dak/webview,katalysteducation/webview,katalysteducation/webview,Connexions/webview | html | ## Code Before:
<tr>
<td class="type">
{{#is mediaType 'application/vnd.org.cnx.collection'}}
<span class="fa fa-book"></span>
{{else}}
{{#is mediaType 'application/vnd.org.cnx.module'}}
<span class="fa fa-file"></span>
{{else}}
<span class="fa fa-question-circle"></span>
... |
a8c44e06e6cdebdcc9c6274b7547c064a8e935d9 | README.md | README.md | TextureMerger
=============
A tool to take multiple textures and combine them together to use a single one.<br>
Supports N by N textures with preview, up to 8x8 images and has a preference system to keep the settings over sessions.<br>
<br>
It also now support having preview of several sizes to ease big picture input ... | TextureMerger
=============
A tool to take multiple textures and combine them together to use a single one.<br>
Supports N by N textures with preview, up to 8x8 images and has a preference system to keep the settings over sessions.<br>
<br>
It also now support having preview of several sizes to ease big picture ... | Update the ReadMe file to reflect the fix to the preferences being in the main windows while the one in the prefs are the defaults used when clearing the whole thing. | Update the ReadMe file to reflect the fix to the preferences being in the main windows while the one in the prefs are the defaults used when clearing the whole thing.
| Markdown | mit | rl132/TextureMerger | markdown | ## Code Before:
TextureMerger
=============
A tool to take multiple textures and combine them together to use a single one.<br>
Supports N by N textures with preview, up to 8x8 images and has a preference system to keep the settings over sessions.<br>
<br>
It also now support having preview of several sizes to ease bi... |
458afca669d65ab2ce40c64a1e9013f1f93156fc | tsconfig.json | tsconfig.json | {
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"strict": true,
"declaration": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true
},
"include": ["src/**/*"]
}
| {
"compilerOptions": {
"target": "ES6",
"module": "ES2020",
"strict": true,
"declaration": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true
},
"include": ["src/**/*"]
}
| Increase accuracy of TS target + module | Increase accuracy of TS target + module
| JSON | mit | mkay581/scroll-js,mkay581/scroll-js | json | ## Code Before:
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"strict": true,
"declaration": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true
},
"include": ["src/**/*"]
}
## Instruction:
Increase accuracy of TS target + mod... |
872c4fc55b3e0d71eea61d9c5bfc60d7e0697d1a | roles/dotfiles/files/.vim/after/plugin/loupe.vim | roles/dotfiles/files/.vim/after/plugin/loupe.vim | function! s:SetUpLoupeHighlight()
highlight! link Search Underlined
endfunction
if has('autocmd')
augroup WincentLoupe
autocmd!
autocmd ColorScheme * call s:SetUpLoupeHighlight()
augroup END
endif
| function! s:SetUpLoupeHighlight()
highlight! clear Search
execute 'highlight! Search ' . pinnacle#embolden('Underlined')
endfunction
if has('autocmd')
augroup WincentLoupe
autocmd!
autocmd ColorScheme * call s:SetUpLoupeHighlight()
augroup END
endif
| Make Search highlighting bold like it was before | vim: Make Search highlighting bold like it was before
With the move to "Underlined" we lost the bold that we had with
"VisualNOS".
| VimL | unlicense | wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent | viml | ## Code Before:
function! s:SetUpLoupeHighlight()
highlight! link Search Underlined
endfunction
if has('autocmd')
augroup WincentLoupe
autocmd!
autocmd ColorScheme * call s:SetUpLoupeHighlight()
augroup END
endif
## Instruction:
vim: Make Search highlighting bold like it was before
With the move to "Un... |
21e0f8fb856c0be3ee297657ccae7fbfc7abf8fc | Demo/uMainForm.pas | Demo/uMainForm.pas | unit uMainForm;
{$IFDEF FPC}{$MODE Delphi}{$ENDIF}
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Menus, StdCtrls;
type
TForm1 = class(TForm)
Memo1: TMemo;
MainMenu1: TMainMenu;
OpenDelphiUnit1: TMenuItem;
OpenDialog1: TOpenDialog;
proced... | unit uMainForm;
{$IFDEF FPC}{$MODE Delphi}{$ENDIF}
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Menus, StdCtrls;
type
TForm1 = class(TForm)
Memo1: TMemo;
MainMenu1: TMainMenu;
OpenDelphiUnit1: TMenuItem;
OpenDialog1: TOpenDialog;
proced... | Correct resource include in demo project's main form | Correct resource include in demo project's main form
| Pascal | mpl-2.0 | Wosi/DelphiASTTemp,AmesianX/DelphiAST,Wosi/DelphiAST,RomanYankovsky/DelphiAST,vintagedave/DelphiAST,LaKraven/DelphiAST,NickRing/DelphiAST,uschuster/DelphiAST,monkeyxu/DelphiAST | pascal | ## Code Before:
unit uMainForm;
{$IFDEF FPC}{$MODE Delphi}{$ENDIF}
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Menus, StdCtrls;
type
TForm1 = class(TForm)
Memo1: TMemo;
MainMenu1: TMainMenu;
OpenDelphiUnit1: TMenuItem;
OpenDialog1: TOpenDi... |
06100741af8fd2c7f16aa6c2dd8ff8668353a8c4 | scripts/mysql/dbpatch/change-log/schema-portal/mike-25.sql | scripts/mysql/dbpatch/change-log/schema-portal/mike-25.sql | INSERT INTO `host`(hostname, ip, agent_version, plugin_version)
SELECT nqm_agent.ag_hostname, INET_NTOA(CONV(HEX(ag_ip_address), 16, 10)), '', ''
FROM nqm_agent
LEFT OUTER JOIN
`host`
ON nqm_agent.ag_hostname = `host`.hostname
WHERE `host`.id IS NULL;
ALTER TABLE nqm_agent
ADD COLUMN ag_hs_id INT AFTER ag_id;
UPDA... | DELETE FROM nqm_agent
WHERE ag_hostname LIKE '%.cdn.fastweb.com.cn';
INSERT INTO `host`(hostname, ip, agent_version, plugin_version)
SELECT DISTINCT nqm_agent.ag_hostname, INET_NTOA(CONV(HEX(ag_ip_address), 16, 10)), '', ''
FROM nqm_agent
LEFT OUTER JOIN
`host`
ON nqm_agent.ag_hostname = `host`.hostname
WHERE `host... | Fix patch of building host from existing NQM agent | [OWL-750] Fix patch of building host from existing NQM agent
| SQL | apache-2.0 | masato25/open-falcon-backend,Cepave/open-falcon-backend,Cepave/open-falcon-backend,masato25/open-falcon-backend,Cepave/open-falcon-backend,masato25/open-falcon-backend,Cepave/open-falcon-backend,masato25/open-falcon-backend,Cepave/open-falcon-backend,masato25/open-falcon-backend,masato25/open-falcon-backend,Cepave/open... | sql | ## Code Before:
INSERT INTO `host`(hostname, ip, agent_version, plugin_version)
SELECT nqm_agent.ag_hostname, INET_NTOA(CONV(HEX(ag_ip_address), 16, 10)), '', ''
FROM nqm_agent
LEFT OUTER JOIN
`host`
ON nqm_agent.ag_hostname = `host`.hostname
WHERE `host`.id IS NULL;
ALTER TABLE nqm_agent
ADD COLUMN ag_hs_id INT AF... |
2bde683bcfbdc7149a114abd609a3c91c19cac0f | tagcache/lock.py | tagcache/lock.py |
import os
import fcntl
class FileLock(object):
def __init__(self, fd):
# the fd is borrowed, so do not close it
self.fd = fd
def acquire(self, write=False, block=False):
try:
lock_flags = fcntl.LOCK_EX if write else fcntl.LOCK_SH
if not block:
... |
import os
import fcntl
class FileLock(object):
def __init__(self, fd):
# the fd is borrowed, so do not close it
self.fd = fd
def acquire(self, ex=False, nb=True):
"""
Acquire a lock on the fd.
:param ex (optional): default False, acquire a exclusive lock if True
... | Change parameter names in acquire. Add some doc. | Change parameter names in acquire.
Add some doc.
| Python | mit | huangjunwen/tagcache | python | ## Code Before:
import os
import fcntl
class FileLock(object):
def __init__(self, fd):
# the fd is borrowed, so do not close it
self.fd = fd
def acquire(self, write=False, block=False):
try:
lock_flags = fcntl.LOCK_EX if write else fcntl.LOCK_SH
if not bl... |
4f1aaea09b80e6a12e0b34df547eaf8222f59e81 | app/views/credit_invoices/_form.html.haml | app/views/credit_invoices/_form.html.haml | = semantic_form_for resource do |f|
= f.semantic_errors
= f.inputs do
= f.input :customer_id, :as => :hidden
= f.input :state, :collection => invoice_states_as_collection
.combobox-action= list_link_for(:new, Company, :target => 'blank')
= f.input :company, :input_html => {:class => 'combobox', 'dat... | = semantic_form_for resource, :html => {:multipart => true} do |f|
= f.semantic_errors
= f.inputs do
= f.input :customer_id, :as => :hidden
= f.input :state, :collection => invoice_states_as_collection
.combobox-action= list_link_for(:new, Company, :target => 'blank')
= f.input :company, :input_html... | Use multipart form for credit invoices because of attachments. | Use multipart form for credit invoices because of attachments.
| Haml | agpl-3.0 | xuewenfei/bookyt,hauledev/bookyt,hauledev/bookyt,xuewenfei/bookyt,silvermind/bookyt,wtag/bookyt,silvermind/bookyt,silvermind/bookyt,gaapt/bookyt,xuewenfei/bookyt,silvermind/bookyt,hauledev/bookyt,gaapt/bookyt,gaapt/bookyt,huerlisi/bookyt,wtag/bookyt,gaapt/bookyt,hauledev/bookyt,huerlisi/bookyt,huerlisi/bookyt,wtag/book... | haml | ## Code Before:
= semantic_form_for resource do |f|
= f.semantic_errors
= f.inputs do
= f.input :customer_id, :as => :hidden
= f.input :state, :collection => invoice_states_as_collection
.combobox-action= list_link_for(:new, Company, :target => 'blank')
= f.input :company, :input_html => {:class => ... |
a0f10069388ecc9cde03a2731b6669141f053511 | lib/generators/link_to_action/install_generator.rb | lib/generators/link_to_action/install_generator.rb | require 'rails/generators'
require 'rails/generators/named_base'
module LinkToAction
module Generators
class InstallGenerator < Rails::Generators::Base
desc "Copy LinkToAction configuration file"
source_root File.expand_path('../templates', __FILE__)
class_option :bootstrap, type: :boolean,
... | require 'rails/generators'
require 'rails/generators/named_base'
module LinkToAction
module Generators
class InstallGenerator < Rails::Generators::Base
desc "Copy LinkToAction configuration file"
source_root File.expand_path('../templates', __FILE__)
class_option :bootstrap, type: :boolean,
... | Copy bootstrap templates if option specified. | Copy bootstrap templates if option specified.
| Ruby | mit | denispeplin/link_to_action,denispeplin/link_to_action,denispeplin/link_to_action | ruby | ## Code Before:
require 'rails/generators'
require 'rails/generators/named_base'
module LinkToAction
module Generators
class InstallGenerator < Rails::Generators::Base
desc "Copy LinkToAction configuration file"
source_root File.expand_path('../templates', __FILE__)
class_option :bootstrap, typ... |
1fb17e45fce8927b8ab82416dc915233eaffc300 | SETUP.md | SETUP.md | How to add DNG Math to DNG
========
1) Navigate to RDNG
2) Open the 'Mini Dashboard' on the left hand side
3) Click the 'Add Widget' button

4) Click 'Add OpenSocial Gadget' under 'Add External Widgets'

4) Click 'Add OpenSocial Gadget' under 'Add External Widgets'

4) Click 'Add OpenSocial Gadget' under 'Add External Widgets'
![Click 'Add OpenSocial Gadget' under ... |
41a05c80e673dddd3037157a6190bfc5a5769f65 | device-base/Dockerfile.artik.fedora.tpl | device-base/Dockerfile.artik.fedora.tpl | FROM #{FROM}
LABEL io.resin.device-type="#{DEV_TYPE}"
COPY artik.repo /etc/yum.repos.d/
COPY RPM-GPG-KEY-artik-#{SUITE}-armhfp /etc/pki/rpm-gpg/
RUN dnf install -y \
less \
nano \
net-tools \
usbutils \
gnupg \
i2c-tools \
libartik-sdk-tests \
&& dnf clean all
| FROM #{FROM}
LABEL io.resin.device-type="#{DEV_TYPE}"
COPY artik.repo /etc/yum.repos.d/
COPY RPM-GPG-KEY-artik-#{SUITE}-armhfp /etc/pki/rpm-gpg/
RUN dnf install -y \
less \
nano \
net-tools \
usbutils \
gnupg \
i2c-tools \
libartik-sdk-tests \
libartik-sdk-zigbee-devel \
&& dnf clean all
| Integrate zigbee in Artik family | Integrate zigbee in Artik family
| Smarty | apache-2.0 | nghiant2710/base-images,resin-io-library/base-images,nghiant2710/base-images,resin-io-library/base-images | smarty | ## Code Before:
FROM #{FROM}
LABEL io.resin.device-type="#{DEV_TYPE}"
COPY artik.repo /etc/yum.repos.d/
COPY RPM-GPG-KEY-artik-#{SUITE}-armhfp /etc/pki/rpm-gpg/
RUN dnf install -y \
less \
nano \
net-tools \
usbutils \
gnupg \
i2c-tools \
libartik-sdk-tests \
&& dnf clean all
## Instruction:
Integrat... |
c990c35c73a353395a8a81fbea0f043757400388 | Modules/Multilabel/autoload/IO/CMakeLists.txt | Modules/Multilabel/autoload/IO/CMakeLists.txt | MITK_CREATE_MODULE( MultilabelIO
INCLUDE_DIRS
PRIVATE src/IO
DEPENDS PUBLIC MitkMultilabel MitkSceneSerialization MitkDICOMReader
PACKAGE_DEPENDS
PRIVATE ITK|ITKQuadEdgeMesh+ITKAntiAlias+ITKIONRRD+ITKImageProcessing DCMTK DCMQI
AUTOLOAD_WITH MitkCore
WARNINGS_AS_ERRORS
) | MITK_CREATE_MODULE( MultilabelIO
INCLUDE_DIRS
PRIVATE src/IO
DEPENDS PUBLIC MitkMultilabel MitkSceneSerialization MitkDICOMReader
PACKAGE_DEPENDS
PRIVATE ITK|ITKQuadEdgeMesh+ITKAntiAlias+ITKIONRRD DCMTK DCMQI
AUTOLOAD_WITH MitkCore
WARNINGS_AS_ERRORS
) | Remove unused ITK module dependency from Multilabel IO module | Remove unused ITK module dependency from Multilabel IO module
| Text | bsd-3-clause | RabadanLab/MITKats,MITK/MITK,fmilano/mitk,fmilano/mitk,MITK/MITK,fmilano/mitk,RabadanLab/MITKats,MITK/MITK,MITK/MITK,RabadanLab/MITKats,MITK/MITK,RabadanLab/MITKats,fmilano/mitk,MITK/MITK,RabadanLab/MITKats,RabadanLab/MITKats,fmilano/mitk,fmilano/mitk,fmilano/mitk | text | ## Code Before:
MITK_CREATE_MODULE( MultilabelIO
INCLUDE_DIRS
PRIVATE src/IO
DEPENDS PUBLIC MitkMultilabel MitkSceneSerialization MitkDICOMReader
PACKAGE_DEPENDS
PRIVATE ITK|ITKQuadEdgeMesh+ITKAntiAlias+ITKIONRRD+ITKImageProcessing DCMTK DCMQI
AUTOLOAD_WITH MitkCore
WARNINGS_AS_ERRORS
)
## Instruction... |
260f9fee341d9b6316c253de1c154c2330915e74 | Tests/features/support/env.rb | Tests/features/support/env.rb | require 'aruba/cucumber' | require 'aruba/cucumber'
%x'rm -rf ../Build/log'
%x'mkdir ../Build/log'
After do |scenario|
%x'cp -R ../Build/tmp ../Build/log/"#{scenario.name}"'
end | Add output logging to Aruba tests. | Add output logging to Aruba tests.
| Ruby | mit | SwiftKit/CuckooGenerator,SwiftKit/CuckooGenerator,SwiftKit/CuckooGenerator | ruby | ## Code Before:
require 'aruba/cucumber'
## Instruction:
Add output logging to Aruba tests.
## Code After:
require 'aruba/cucumber'
%x'rm -rf ../Build/log'
%x'mkdir ../Build/log'
After do |scenario|
%x'cp -R ../Build/tmp ../Build/log/"#{scenario.name}"'
end |
3faeef8c6578b6164c2153c24406b0fe87a5d0e9 | lib/threepl_central_api/soap_client.rb | lib/threepl_central_api/soap_client.rb | require 'savon'
module ThreePLCentralAPI
class SOAPClient
attr_reader :wsdl, :enable_logging, :raise_errors
def initialize(**opts)
options = default_options.merge(opts)
@wsdl = options[:wsdl]
@enable_logging = options[:enable_logging]
@raise_errors = options[:raise_errors]
end
... | require 'savon'
module ThreePLCentralAPI
class SOAPClient
attr_reader :wsdl, :enable_logging, :raise_errors
def initialize(**opts)
options = default_options.merge(opts)
@wsdl = options[:wsdl]
@enable_logging = options[:enable_logging]
@raise_errors = options[:raise_errors]
end
... | Change SOAP Client Response Value | Change SOAP Client Response Value
SOAP client now responds with the body hash from the Savon client if
the response is successful. Otherwise, it raises an exception.
| Ruby | apache-2.0 | dnunez24/3pl-central-endpoint,dnunez24/3pl-central-endpoint | ruby | ## Code Before:
require 'savon'
module ThreePLCentralAPI
class SOAPClient
attr_reader :wsdl, :enable_logging, :raise_errors
def initialize(**opts)
options = default_options.merge(opts)
@wsdl = options[:wsdl]
@enable_logging = options[:enable_logging]
@raise_errors = options[:raise_er... |
aba747a42620a6bfdd3bd115ebe77cc7548e0539 | .travis.yml | .travis.yml | language: python
python:
- 2.7
install:
- pip install .
before_install:
- wget http://aphyr.com/riemann/riemann_0.2.6_all.deb
- sudo apt-get install openjdk-7-jre
- sudo dpkg -i riemann_0.2.6_all.deb
- sudo /etc/init.d/riemann start
script:
- trial tensor
after_script:
- sudo /etc/init.d/... | language: python
python:
- 2.7
install:
- pip install .
before_install:
- wget http://aphyr.com/riemann/riemann_0.2.6_all.deb
- sudo apt-get update
- sudo apt-get install openjdk-7-jre
- sudo dpkg -i riemann_0.2.6_all.deb
- sudo /etc/init.d/riemann start
script:
- trial tensor
after_scrip... | Add an apt-get update to Travis | Add an apt-get update to Travis
| YAML | mit | calston/tensor,calston/tensor,hobbeswalsh/tensor,calston/tensor,hobbeswalsh/tensor,calston/tensor | yaml | ## Code Before:
language: python
python:
- 2.7
install:
- pip install .
before_install:
- wget http://aphyr.com/riemann/riemann_0.2.6_all.deb
- sudo apt-get install openjdk-7-jre
- sudo dpkg -i riemann_0.2.6_all.deb
- sudo /etc/init.d/riemann start
script:
- trial tensor
after_script:
- s... |
b79d602ebf46812a3b62ddf748c9e94cc3952926 | services/QuillLMS/lib/clever_library/api/client.rb | services/QuillLMS/lib/clever_library/api/client.rb | class CleverLibrary::Api::Client
include HTTParty
base_uri 'https://api.clever.com/v2.0'
def initialize(bearer_token)
@options = {
headers: {
"Authorization": "Bearer " + bearer_token
}
}
end
def get_teacher(teacher_id:)
self.class.get('/teachers/' + teacher_id, @options).par... | class CleverLibrary::Api::Client
include HTTParty
base_uri 'https://api.clever.com/v2.0'
def initialize(bearer_token)
@options = {
headers: {
"Authorization": "Bearer " + bearer_token
}
}
end
def get_user()
self.class.get('/me', @options).parsed_response["data"]
end
def ... | Add Me function to Clever 2.0 API | Add Me function to Clever 2.0 API
| Ruby | agpl-3.0 | empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core | ruby | ## Code Before:
class CleverLibrary::Api::Client
include HTTParty
base_uri 'https://api.clever.com/v2.0'
def initialize(bearer_token)
@options = {
headers: {
"Authorization": "Bearer " + bearer_token
}
}
end
def get_teacher(teacher_id:)
self.class.get('/teachers/' + teacher_i... |
0e1a68362c6086caa3e17af49589d82385888a24 | nls/fr/strings.js | nls/fr/strings.js | /* global define */
define({
HEADER_TITLE: "Outline",
TOOLBAR_ICON_TOOLTIP: "Onglet Outline",
BUTTON_SETTINGS: "Configurer Outline",
BUTTON_MOVE: "Changer la position de Outline",
BUTTON_CLOSE: "Fermer Outline",
COMMAND_SORT: "Liste courte",
COMMAND_UNNAMED: "Monter les fonctions anonyme... | /* global define */
define({
HEADER_TITLE: "Outline",
TOOLBAR_ICON_TOOLTIP: "Onglet Outline",
BUTTON_SETTINGS: "Configurer Outline",
BUTTON_MOVE: "Changer la position de Outline",
BUTTON_CLOSE: "Fermer Outline",
COMMAND_SORT: "Liste courte",
COMMAND_UNNAMED: "Monter les fonctions anonyme... | Add commithash to french translation | Add commithash to french translation
| JavaScript | mit | Hirse/brackets-outline-list,pelatx/brackets-outline-list,Hirse/brackets-outline-list,onesfreedom/brackets-outline-list,BernsteinA/brackets-outline-list,pelatx/brackets-outline-list,BernsteinA/brackets-outline-list,onesfreedom/brackets-outline-list,pelatx/brackets-outline-list,Hirse/brackets-outline-list,pelatx/brackets... | javascript | ## Code Before:
/* global define */
define({
HEADER_TITLE: "Outline",
TOOLBAR_ICON_TOOLTIP: "Onglet Outline",
BUTTON_SETTINGS: "Configurer Outline",
BUTTON_MOVE: "Changer la position de Outline",
BUTTON_CLOSE: "Fermer Outline",
COMMAND_SORT: "Liste courte",
COMMAND_UNNAMED: "Monter les f... |
9c9b96c1ebda907e1d91ea9960433a28bbefe8d9 | README.md | README.md |
[](http://travis-ci.org/angelozerr/minimatch.java)
Port of Node.js' [minimatch](https://github.com/isaacs/minimatch) to Java.
# Usage
```java
import minimatch.Minimatch;
...
boolean result = Minimatch.minimatch("bar.foo", "*.foo"); // retur... |
[](https://github.com/angelozerr/minimatch.java/blob/master/LICENSE)
[](http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22minimatch.java%22)
[](http://travis-ci.org/angelozerr/minimatch.java)
Port of Node.js' [minimatch](https://github.com/isaacs/minimatch) to Java.
# Usage
```java
import minimatch.Minimatch;
...
boolean result = Minimatch.minimatch("bar.foo", "*... |
f555b08f07c5dfe4690f1359106e12756856da8f | templates/base.html | templates/base.html | <!DOCTYPE html>
<html>
<head lang="en">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet"/>
<link href="/static/blogware.css" rel="stylesheet"/>
<title>
{% block title %}
{{ config.SITENAME }}
{% endblock title %}
</title>
</head>... | <!DOCTYPE html>
<html>
<head lang="en">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet"/>
<link href="/static/blogware.css" rel="stylesheet"/>
<title>
{% block title %}
{{ config.SITENAME }}
{% endblock title %}
</title>
</head>... | Add a link to the index page. | Add a link to the index page.
| HTML | agpl-3.0 | izrik/blogware,izrik/wikiware,izrik/blogware,izrik/wikiware,izrik/wikiware,izrik/blogware | html | ## Code Before:
<!DOCTYPE html>
<html>
<head lang="en">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet"/>
<link href="/static/blogware.css" rel="stylesheet"/>
<title>
{% block title %}
{{ config.SITENAME }}
{% endblock title %}
... |
87b10ebb6399c8e9ee1984b32337a358001a4baf | src/org/bouncycastle/crypto/tls/TlsOuputStream.java | src/org/bouncycastle/crypto/tls/TlsOuputStream.java | package org.bouncycastle.crypto.tls;
import java.io.IOException;
import java.io.OutputStream;
/**
* An OutputStream for an TLS connection.
*/
public class TlsOuputStream extends OutputStream
{
private TlsProtocolHandler handler;
protected TlsOuputStream(TlsProtocolHandler handler)
{
this.handl... | package org.bouncycastle.crypto.tls;
import java.io.IOException;
import java.io.OutputStream;
/**
* An OutputStream for an TLS connection.
*/
public class TlsOuputStream extends OutputStream
{
private TlsProtocolHandler handler;
protected TlsOuputStream(TlsProtocolHandler handler)
{
this.handl... | Add cose() back as a deprecated method for backward compatibility | Add cose() back as a deprecated method for backward compatibility
| Java | mit | sake/bouncycastle-java | java | ## Code Before:
package org.bouncycastle.crypto.tls;
import java.io.IOException;
import java.io.OutputStream;
/**
* An OutputStream for an TLS connection.
*/
public class TlsOuputStream extends OutputStream
{
private TlsProtocolHandler handler;
protected TlsOuputStream(TlsProtocolHandler handler)
{
... |
f43d90f2d6cff7c56e11577212caa2ab2eea4494 | .travis.yml | .travis.yml | language: ruby
sudo: false
branches:
only: master
rvm:
- 1.9.3
- 2.0.0
- 2.1.0
- 2.2.0
os:
- linux
- osx
cache:
- apt
- bundler
before_install:
- eval "$(curl -Ss https://raw.githubusercontent.com/neovim/bot-ci/master/scripts/travis-setup.sh) nightly-x64"
env: REPORT_COVERAGE=1
script: bundle ... | language: ruby
sudo: false
branches:
only: master
rvm:
- 1.9.3
- 2.0.0
- 2.1.0
- 2.2.0
cache:
- apt
- bundler
before_install:
- eval "$(curl -Ss https://raw.githubusercontent.com/neovim/bot-ci/master/scripts/travis-setup.sh) nightly-x64"
env: REPORT_COVERAGE=1
script: bundle exec rake --trace spec
| Remove osx builds for now | Remove osx builds for now
| YAML | mit | alexgenco/neovim-ruby | yaml | ## Code Before:
language: ruby
sudo: false
branches:
only: master
rvm:
- 1.9.3
- 2.0.0
- 2.1.0
- 2.2.0
os:
- linux
- osx
cache:
- apt
- bundler
before_install:
- eval "$(curl -Ss https://raw.githubusercontent.com/neovim/bot-ci/master/scripts/travis-setup.sh) nightly-x64"
env: REPORT_COVERAGE=1... |
e8081ee5d7ecafeb9ca34560fc0129bbf55efa6a | app/src/index.js | app/src/index.js | require('babelify/polyfill');
const config = require('./config');
const SculptureApp = require('./app');
const DEFAULT_CLIENT_CONNECTION_OPTIONS = {
protocol: "ws",
username: "anyware",
password: "anyware",
host: "broker.shiftr.io"
};
const app = new SculptureApp(config);
const connectionOptions = Object.a... | require('babelify/polyfill');
const config = require('./config');
const SculptureApp = require('./app');
const DEFAULT_CLIENT_CONNECTION_OPTIONS = {
protocol: "ws",
username: "sculpture0",
password: "7f24a3e73b91dc9f51f15861d75c888b",
host: "broker.shiftr.io"
};
const app = new SculptureApp(config);
const ... | Connect as sculpture0 for now, until we have config in local storage | Connect as sculpture0 for now, until we have config in local storage
| JavaScript | mit | anyWareSculpture/sculpture-client,anyWareSculpture/sculpture-client,anyWareSculpture/sculpture-client | javascript | ## Code Before:
require('babelify/polyfill');
const config = require('./config');
const SculptureApp = require('./app');
const DEFAULT_CLIENT_CONNECTION_OPTIONS = {
protocol: "ws",
username: "anyware",
password: "anyware",
host: "broker.shiftr.io"
};
const app = new SculptureApp(config);
const connectionOp... |
de80f307f52b41c16f5a328452b8b53856d040e2 | media/css/readthedocs-doc-embed.css | media/css/readthedocs-doc-embed.css | /* Left for CSS overrides we need to make in the future */
/* Fix badge on RTD Theme */
.rst-other-versions {
text-align: left;
}
.rst-other-versions a {
border: 0;
}
.rst-other-versions dl {
margin: 0;
}
/* Fix Mkdocs sidebar */
nav.stickynav {
position: absolute;
} | /* Left for CSS overrides we need to make in the future */
/* Fix badge on RTD Theme */
.rst-versions.rst-badge {
display: block;
}
.rst-other-versions {
text-align: left;
}
.rst-other-versions a {
border: 0;
}
.rst-other-versions dl {
margin: 0;
}
/* Fix Mkdocs sidebar */
nav.stickynav {
position: absol... | Set badge display to block | Set badge display to block | CSS | mit | KamranMackey/readthedocs.org,agjohnson/readthedocs.org,sils1297/readthedocs.org,emawind84/readthedocs.org,soulshake/readthedocs.org,sunnyzwh/readthedocs.org,michaelmcandrew/readthedocs.org,nikolas/readthedocs.org,raven47git/readthedocs.org,tddv/readthedocs.org,Tazer/readthedocs.org,techtonik/readthedocs.org,attakei/rea... | css | ## Code Before:
/* Left for CSS overrides we need to make in the future */
/* Fix badge on RTD Theme */
.rst-other-versions {
text-align: left;
}
.rst-other-versions a {
border: 0;
}
.rst-other-versions dl {
margin: 0;
}
/* Fix Mkdocs sidebar */
nav.stickynav {
position: absolute;
}
## Instruction:
Set badge ... |
3ba0ea726e62c04d83e92b823a6553ce5ac70e2b | circleci.gemspec | circleci.gemspec | Gem::Specification.new do |s|
s.name = 'circleci'
s.version = '0.0.2'
s.date = '2013-04-16'
s.summary = 'Circle CI API Wrapper'
s.description = 'Wraps Circle CI API calls in a gem.'
s.authors = ['Chavez']
s.email = ''
s.files ... | Gem::Specification.new do |s|
s.name = 'circleci'
s.version = '0.0.2'
s.date = '2013-04-16'
s.summary = 'Circle CI API Wrapper'
s.description = 'Wraps Circle CI API calls in a gem.'
s.licenses = ['MIT']
s.authors = ['Chavez']
s.email ... | Remove warnings when building gem | Remove warnings when building gem
| Ruby | mit | mtchavez/circleci,mtchavez/circleci,katsuhiko/circleci,leecade/circleci | ruby | ## Code Before:
Gem::Specification.new do |s|
s.name = 'circleci'
s.version = '0.0.2'
s.date = '2013-04-16'
s.summary = 'Circle CI API Wrapper'
s.description = 'Wraps Circle CI API calls in a gem.'
s.authors = ['Chavez']
s.email = ''
s.f... |
f819f61d81467fa87ac458c1ea66aaf99cef731b | .travis.yml | .travis.yml | matrix:
include:
- env: ubuntu_version="16.04"
- env: ubuntu_version="18.04"
sudo: required
services:
- docker
language: python
before_install:
- docker build --build-arg ubuntu_version=${ubuntu_version} -t kismon-travis-${ubuntu_version} .travis/
- docker run -v $PWD:/code/ -d --name kismon-container kismon-... | matrix:
include:
- env: ubuntu_version="16.04"
- env: ubuntu_version="18.04"
- env: ubuntu_version="19.10"
sudo: required
services:
- docker
language: python
before_install:
- docker build --build-arg ubuntu_version=${ubuntu_version} -t kismon-travis-${ubuntu_version} .travis/
- docker run -v $PWD:/code/ -d... | Add Ubuntu 19.10 to tests | Add Ubuntu 19.10 to tests
| YAML | bsd-3-clause | Kismon/kismon | yaml | ## Code Before:
matrix:
include:
- env: ubuntu_version="16.04"
- env: ubuntu_version="18.04"
sudo: required
services:
- docker
language: python
before_install:
- docker build --build-arg ubuntu_version=${ubuntu_version} -t kismon-travis-${ubuntu_version} .travis/
- docker run -v $PWD:/code/ -d --name kismon-c... |
d581b7d2198ab3b58a57d3b4125a7c9082927954 | install_clouderadirector.sh | install_clouderadirector.sh |
wget http://archive.cloudera.com/director/redhat/6/x86_64/director/cloudera-director.repo -O /etc/yum.repos.d/cloudera-director.repo
yum -y -e1 -d1 install oracle-j2sdk1.7 cloudera-director-server cloudera-director-client
service cloudera-director-server start
chkconfig cloudera-director-server on
|
wget http://archive.cloudera.com/director/redhat/6/x86_64/director/cloudera-director.repo -O /etc/yum.repos.d/cloudera-director.repo
yum -y -e1 -d1 install oracle-j2sdk1.7 cloudera-director-server cloudera-director-client
cp -pc /etc/cloudera-director-server/application.properties /etc/cloudera-director-server/applica... | Set a unique encryption key for Cloudera Director. | Set a unique encryption key for Cloudera Director.
| Shell | apache-2.0 | teamclairvoyant/hadoop-deployment-bash,teamclairvoyant/hadoop-deployment-bash | shell | ## Code Before:
wget http://archive.cloudera.com/director/redhat/6/x86_64/director/cloudera-director.repo -O /etc/yum.repos.d/cloudera-director.repo
yum -y -e1 -d1 install oracle-j2sdk1.7 cloudera-director-server cloudera-director-client
service cloudera-director-server start
chkconfig cloudera-director-server on
## ... |
5f8d83c4a6ee8db25ff1c023b8b2f70f2b1f7a6c | examples/fizzbuzz.rb | examples/fizzbuzz.rb | subject "FizzBuzz (1 ~ 15)"
expected <<EOS
1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
EOS
| subject "FizzBuzz (1 ~ 15)"
__END__
1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
| Fix style of FizzBuzz problem example | Fix style of FizzBuzz problem example
| Ruby | mit | yuya-takeyama/shellfish | ruby | ## Code Before:
subject "FizzBuzz (1 ~ 15)"
expected <<EOS
1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
EOS
## Instruction:
Fix style of FizzBuzz problem example
## Code After:
subject "FizzBuzz (1 ~ 15)"
__END__
1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
|
54b5ddd48d8a57bacb31faa7d6c7bad84e957dbb | gamernews/templates/news/single_blob.html | gamernews/templates/news/single_blob.html | {% extends 'base.html' %}
{% load blobs_tag %}
{% load comments %}
{% load threadedcomments_tags %}
{% load voting_tags %}
{% block title %}{{ blob.title }}{% endblock %}
{% block page %}gamernews{% endblock %}
{% block header %}
{% include "_includes/header.html" %}
{% endblock %}
{% block content %}
{% vote_by_u... | {% extends 'base.html' %}
{% load blobs_tag %}
{% load comments %}
{% load threadedcomments_tags %}
{% load voting_tags %}
{% block title %}{{ blob.title }}{% endblock %}
{% block page %}gamernews{% endblock %}
{% block header %}
{% include "_includes/header.html" %}
{% endblock %}
{% block content %}
{% vote_by_u... | Remove name, url and email from comment form | Remove name, url and email from comment form
| HTML | mit | underlost/GamerNews,underlost/GamerNews | html | ## Code Before:
{% extends 'base.html' %}
{% load blobs_tag %}
{% load comments %}
{% load threadedcomments_tags %}
{% load voting_tags %}
{% block title %}{{ blob.title }}{% endblock %}
{% block page %}gamernews{% endblock %}
{% block header %}
{% include "_includes/header.html" %}
{% endblock %}
{% block content ... |
0bcdde64aeee1ddc7ae40d6aca8729a4070c604a | fabfile.py | fabfile.py | import os
from fabric.api import *
from fab_shared import (test, webpy_deploy as deploy,
setup, development, production, localhost, staging, restart_webserver,
rollback, lint, enable, disable, maintenancemode, rechef)
env.unit = "trinity"
env.path = "/var/tornado/%(unit)s" % env
env.scm = "git@github.c... | import os
from fabric.api import *
from fab_shared import (test, webpy_deploy as deploy,
setup, development, production, localhost, staging, restart_webserver,
rollback, lint, enable, disable, maintenancemode, rechef)
env.unit = "trinity"
env.path = "/var/tornado/%(unit)s" % env
env.scm = "git@github.c... | Add reset method for erasing graph database. | Add reset method for erasing graph database.
| Python | mit | peplin/trinity | python | ## Code Before:
import os
from fabric.api import *
from fab_shared import (test, webpy_deploy as deploy,
setup, development, production, localhost, staging, restart_webserver,
rollback, lint, enable, disable, maintenancemode, rechef)
env.unit = "trinity"
env.path = "/var/tornado/%(unit)s" % env
env.scm... |
58cc2eaa9cfbdb19c3bedcc9cb5d553b7c7b69be | lib/ex_unit/escaper.ex | lib/ex_unit/escaper.ex | defmodule ExUnit::Escaper do
defrecord Flag, as: nil
defimpl String::Inspect, for: Flag do
def inspect(record), do: record.as
def to_binary(record), do: record.as
end
# Replace _ by a record that when inspected prints "_"
def escape({ :_, _, false }) do
quote { unquote(Flag).new(as: "_") }
e... | defmodule ExUnit::Escaper do
defrecord Flag, as: nil
defimpl String::Inspect, for: Flag do
def inspect(record), do: record.as
def to_binary(record), do: record.as
end
# Replace _ by a record that when inspected prints "_"
def escape({ :_, _, false }) do
Flag.new(as: "_")
end
def escape(ex... | Add some explanation for ExUnit::Escaper. | Add some explanation for ExUnit::Escaper.
| Elixir | apache-2.0 | lexmag/elixir,kelvinst/elixir,pedrosnk/elixir,beedub/elixir,joshprice/elixir,beedub/elixir,kimshrier/elixir,lexmag/elixir,ggcampinho/elixir,ggcampinho/elixir,antipax/elixir,kelvinst/elixir,gfvcastro/elixir,michalmuskala/elixir,kimshrier/elixir,gfvcastro/elixir,elixir-lang/elixir,pedrosnk/elixir,antipax/elixir | elixir | ## Code Before:
defmodule ExUnit::Escaper do
defrecord Flag, as: nil
defimpl String::Inspect, for: Flag do
def inspect(record), do: record.as
def to_binary(record), do: record.as
end
# Replace _ by a record that when inspected prints "_"
def escape({ :_, _, false }) do
quote { unquote(Flag).ne... |
ad24d28fef2c71f75ea9d3f8405864907eecb3c2 | templates/default/modules/http_geoip.conf.erb | templates/default/modules/http_geoip.conf.erb | geoip_country <%= @country_dat %>;
<% if @city_dat -%>
geoip_city <%= @city_dat %>;
<% end -%>
| geoip_country <%= @country_dat %> utf8;
<% if @city_dat -%>
geoip_city <%= @city_dat %> utf8;
<% end -%>
| Add utf8 for geoIp data | Add utf8 for geoIp data
| HTML+ERB | apache-2.0 | luishdez/nginx-cookbook,luishdez/nginx-cookbook,luishdez/nginx-cookbook | html+erb | ## Code Before:
geoip_country <%= @country_dat %>;
<% if @city_dat -%>
geoip_city <%= @city_dat %>;
<% end -%>
## Instruction:
Add utf8 for geoIp data
## Code After:
geoip_country <%= @country_dat %> utf8;
<% if @city_dat -%>
geoip_city <%= @city_dat %> utf8;
<% end -%>
|
beab909b96c2e922aaec50c1e13af99137d8a190 | events/orfik/templates/orfik/question.html | events/orfik/templates/orfik/question.html | {% extends 'orfik/home.html' %}
{% block body %}
<section id="events-container" style="margin: 60px auto 300px;">
<h2 class="light-space">Question {{ question.number }}</h2>
{% if question.text %}
<p class="lead">{{ question.text }}</p>
{% endif %}
{% if question.image %}
<img class='img-... | {% extends 'orfik/home.html' %}
{% block body %}
<!-- What do 'Scarface', 'Blow' and 'Miami Vice' have in common? -->
<section id="events-container" style="margin: 60px auto 300px;">
<h2 class="light-space">Question {{ question.number }}</h2>
{% if question.text %}
<p class="lead">{{ question.text }}... | Add some source code magic for orfik | Add some source code magic for orfik
| HTML | mit | compsoc-ssc/compsocssc,compsoc-ssc/compsocssc,compsoc-ssc/compsocssc | html | ## Code Before:
{% extends 'orfik/home.html' %}
{% block body %}
<section id="events-container" style="margin: 60px auto 300px;">
<h2 class="light-space">Question {{ question.number }}</h2>
{% if question.text %}
<p class="lead">{{ question.text }}</p>
{% endif %}
{% if question.image %}
... |
b32da432b3fcfea05728ec42d254f3e5ca109579 | test/sanitizer_common/TestCases/sanitizer_coverage_inline8bit_counter.cc | test/sanitizer_common/TestCases/sanitizer_coverage_inline8bit_counter.cc | // Tests -fsanitize-coverage=inline-8bit-counters
//
// REQUIRES: has_sancovcc,stable-runtime
// UNSUPPORTED: i386-darwin
//
// RUN: %clangxx -O0 %s -fsanitize-coverage=inline-8bit-counters 2>&1
#include <stdio.h>
#include <assert.h>
const char *first_counter;
extern "C"
void __sanitizer_cov_8bit_counters_init(const... | // Tests -fsanitize-coverage=inline-8bit-counters
//
// REQUIRES: has_sancovcc,stable-runtime
// UNSUPPORTED: i386-darwin, x86_64-darwin
//
// RUN: %clangxx -O0 %s -fsanitize-coverage=inline-8bit-counters 2>&1
#include <stdio.h>
#include <assert.h>
const char *first_counter;
extern "C"
void __sanitizer_cov_8bit_coun... | Mark sancov test as unsupported on Darwin | Mark sancov test as unsupported on Darwin
This test has been failing on all Darwin bots since it was introduced:
http://lab.llvm.org:8080/green/job/clang-stage1-configure-RA_check/32111
fatal error: error in backend: Global variable '__sancov_gen_' has an invalid section specifier '__DATA,__sancov_counters': mach-o s... | C++ | apache-2.0 | llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt | c++ | ## Code Before:
// Tests -fsanitize-coverage=inline-8bit-counters
//
// REQUIRES: has_sancovcc,stable-runtime
// UNSUPPORTED: i386-darwin
//
// RUN: %clangxx -O0 %s -fsanitize-coverage=inline-8bit-counters 2>&1
#include <stdio.h>
#include <assert.h>
const char *first_counter;
extern "C"
void __sanitizer_cov_8bit_cou... |
bae1161b3393b1b4aa87527bc2adb88f933410f2 | src/bb/buildinit.go | src/bb/buildinit.go | package main
import (
"log"
"os"
"os/exec"
"path"
)
func buildinit() {
e := os.Environ()
for i := range e {
if e[i][0:6] == "GOPATH" {
e[i] = e[i] + ":" + path.Join(config.Uroot, "src/bb/bbsh")
}
}
cmd := exec.Command("go", "build", "-o", "init", ".")
cmd.Stderr = os.Stderr
cmd.Stdout = os.Stdout
c... | package main
import (
"log"
"os"
"os/exec"
"path"
)
func buildinit() {
e := os.Environ()
for i := range e {
if e[i][0:6] == "GOPATH" {
e[i] = e[i] + ":" + path.Join(config.Uroot, "src/bb/bbsh")
}
}
e = append(e, "CGO_ENABLED=0")
cmd := exec.Command("go", "build", "-o", "init", ".")
cmd.Stderr = os.S... | Make sure CGO_ENABLED is 0 | Make sure CGO_ENABLED is 0
Signed-off-by: Ronald G. Minnich <f569d0af9a3481c4007b95c7180d6c41009f2513@gmail.com>
| Go | bsd-3-clause | rminnich/u-root,GanShun/u-root,hugelgupf/u-root,rminnich/u-root,u-root/u-root,hugelgupf/u-root,hugelgupf/u-root,hugelgupf/u-root,u-root/u-root,GanShun/u-root,GanShun/u-root,u-root/u-root,rminnich/u-root,rminnich/u-root | go | ## Code Before:
package main
import (
"log"
"os"
"os/exec"
"path"
)
func buildinit() {
e := os.Environ()
for i := range e {
if e[i][0:6] == "GOPATH" {
e[i] = e[i] + ":" + path.Join(config.Uroot, "src/bb/bbsh")
}
}
cmd := exec.Command("go", "build", "-o", "init", ".")
cmd.Stderr = os.Stderr
cmd.Stdou... |
c3bcedb66af80f5843f20488d238c8dfd2a5e2bf | src/util/syserror.cpp | src/util/syserror.cpp | // Copyright (c) 2020-2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#endif
#include <tinyformat.h>
#include <util/syserror.h>
#in... | // Copyright (c) 2020-2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#endif
#include <tinyformat.h>
#include <util/syserror.h>
#in... | Use strerror_s for SysErrorString on Windows | util: Use strerror_s for SysErrorString on Windows
Github-Pull: #24933
Rebased-From: e7f2f77756d33c6be9c8998a575b263ff2d39270
| C++ | mit | bitcoinknots/bitcoin,bitcoinknots/bitcoin,bitcoinknots/bitcoin,bitcoinknots/bitcoin,bitcoinknots/bitcoin | c++ | ## Code Before:
// Copyright (c) 2020-2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#endif
#include <tinyformat.h>
#include <util/... |
f4b287e84f3866ca34409442a73a505d20d1b433 | correctingInterval.js | correctingInterval.js | ;(function(global, factory) {
// Use UMD pattern to expose exported functions
if (typeof exports === 'object') {
// Expose to Node.js
module.exports = factory();
} else if (typeof define === 'function' && define.amd) {
// Expose to RequireJS
define([], factory);
}
// Expose to global object (... | ;(function(global, factory) {
// Use UMD pattern to expose exported functions
if (typeof exports === 'object') {
// Expose to Node.js
module.exports = factory();
} else if (typeof define === 'function' && define.amd) {
// Expose to RequireJS
define([], factory);
}
// Expose to global object (... | Resolve failing test "should allow string input for execution" | Resolve failing test "should allow string input for execution"
| JavaScript | mit | aduth/correctingInterval | javascript | ## Code Before:
;(function(global, factory) {
// Use UMD pattern to expose exported functions
if (typeof exports === 'object') {
// Expose to Node.js
module.exports = factory();
} else if (typeof define === 'function' && define.amd) {
// Expose to RequireJS
define([], factory);
}
// Expose to... |
752f89d866e899395d45c87a9bfc019839dfe7f6 | .travis.yml | .travis.yml | sudo: required
env:
- GHCVER=7.10.3
- GHCVER=8.0.2
- GHCVER=8.2.1
- GHCVER=8.4.1
- GHCVER=head
script:
- export HLINT_ARGUMENTS=src
- curl -sL https://raw.github.com/ndmitchell/neil/master/travis.sh | sh
| sudo: required
matrix:
include:
- env: GHCVER=7.10.3
- env: GHCVER=8.0.2
- env: GHCVER=8.2.1
- env: GHCVER=8.4.1
- env: GHCVER=head
- os: osx
script:
- export HLINT_ARGUMENTS=src
- curl -sL https://raw.github.com/ndmitchell/neil/master/travis.sh | sh
deploy:
provider: releases
api_key:
secure: ... | Test on osx as well | Test on osx as well
| YAML | bsd-3-clause | ndmitchell/weeder | yaml | ## Code Before:
sudo: required
env:
- GHCVER=7.10.3
- GHCVER=8.0.2
- GHCVER=8.2.1
- GHCVER=8.4.1
- GHCVER=head
script:
- export HLINT_ARGUMENTS=src
- curl -sL https://raw.github.com/ndmitchell/neil/master/travis.sh | sh
## Instruction:
Test on osx as well
## Code After:
sudo: required
matrix:
include:
- env: GH... |
85190b166740863e96b65cca09e44e0dda801c46 | app/controllers/metadata_values_controller.rb | app/controllers/metadata_values_controller.rb | class MetadataValuesController < ApplicationController
def index
raise "Corpus ID is missing!" unless received_id_for?(:corpus)
render json: MetadataValue
.joins(:metadata_category)
.where('metadata_categories.corpus_id = ?', params[:corpus_id])
end
end
| class MetadataValuesController < ApplicationController
def index
raise "Corpus ID is missing!" unless received_id_for?(:corpus)
render json: MetadataValue
.joins(:metadata_category)
.where(metadata_categories: {corpus_id: params[:corpus_id]})
end
end
| Use hash syntax for query conditions | Use hash syntax for query conditions
| Ruby | mit | textlab/rglossa,textlab/glossa,textlab/glossa,textlab/glossa,textlab/rglossa,textlab/rglossa,textlab/rglossa,textlab/glossa,textlab/glossa,textlab/rglossa | ruby | ## Code Before:
class MetadataValuesController < ApplicationController
def index
raise "Corpus ID is missing!" unless received_id_for?(:corpus)
render json: MetadataValue
.joins(:metadata_category)
.where('metadata_categories.corpus_id = ?', params[:corpus_id])
end
end
## Instruction:
Use ha... |
91ebc3e71a1d833c22713c06cae4bc1bf4494893 | apps/metric_vnode/src/metric_io_worker.erl | apps/metric_vnode/src/metric_io_worker.erl | -module(metric_io_worker).
-behaviour(riak_core_vnode_worker).
-include("metric_io.hrl").
-export([init_worker/3,
handle_work/3]).
-record(state, {index, node}).
%% ===================================================================
%% Public API
%% =========================================================... | -module(metric_io_worker).
-behaviour(riak_core_vnode_worker).
-include("metric_io.hrl").
-export([init_worker/3,
handle_work/3]).
-record(state, {index, node}).
%% ===================================================================
%% Public API
%% =========================================================... | Use one_off option for paralell reads | Use one_off option for paralell reads
| Erlang | mit | dalmatinerdb/dalmatinerdb | erlang | ## Code Before:
-module(metric_io_worker).
-behaviour(riak_core_vnode_worker).
-include("metric_io.hrl").
-export([init_worker/3,
handle_work/3]).
-record(state, {index, node}).
%% ===================================================================
%% Public API
%% =========================================... |
b0eafadae4b602b57ce0badcb8389bd239b9c9e5 | build/UpdateTest.sh | build/UpdateTest.sh |
export HAKA_TEST_FIX=$(pwd)/haka-test-fix
for i in $(seq $1 $2)
do
CONTINUE=1
while [ $CONTINUE = 1 ]; do
rm -f $HAKA_TEST_FIX
ctest -V -I $i,$i
if [ $? = 0 ]; then
CONTINUE=0
else
if [ -f "$HAKA_TEST_FIX" ]; then
cat $HAKA_TEST_FIX
read -p "Update test? (y/n) " -n 1 -r
echo
case $REP... |
export HAKA_TEST_FIX=$(pwd)/haka-test-fix
export QUICK=yes
for i in $(seq $1 $2)
do
CONTINUE=1
while [ $CONTINUE = 1 ]; do
rm -f $HAKA_TEST_FIX
ctest -V -I $i,$i
if [ $? = 0 ]; then
CONTINUE=0
else
if [ -f "$HAKA_TEST_FIX" ]; then
cat $HAKA_TEST_FIX
read -p "Update test? (y/n) " -n 1 -r
e... | Use quick mode for updateTest script | Use quick mode for updateTest script
| Shell | mpl-2.0 | nabilbendafi/haka,lcheylus/haka,LubyRuffy/haka,haka-security/haka,Wingless-Archangel/haka,lcheylus/haka,haka-security/haka,nabilbendafi/haka,Wingless-Archangel/haka,nabilbendafi/haka,lcheylus/haka,haka-security/haka,LubyRuffy/haka | shell | ## Code Before:
export HAKA_TEST_FIX=$(pwd)/haka-test-fix
for i in $(seq $1 $2)
do
CONTINUE=1
while [ $CONTINUE = 1 ]; do
rm -f $HAKA_TEST_FIX
ctest -V -I $i,$i
if [ $? = 0 ]; then
CONTINUE=0
else
if [ -f "$HAKA_TEST_FIX" ]; then
cat $HAKA_TEST_FIX
read -p "Update test? (y/n) " -n 1 -r
ec... |
379c159a860d94ad96050c4cd743539994f7a246 | .github/issue_template.md | .github/issue_template.md |
1) ...
2) ...
3) ...
### Expected behavior
Tell us what should happen ...
### Actual behavior
Tell us what happens instead ...
### System configuration
**Ruby version**:
**Rails version**:
|
1) ...
2) ...
3) ...
### Expected behavior
Tell us what should happen ...
### Actual behavior
Tell us what happens instead ...
### System configuration
**Ruby version**:
**Rails version**:
**Puma version**:
| Add puma version to issue template | Add puma version to issue template | Markdown | bsd-3-clause | eileencodes/puma,looker/puma,eileencodes/puma,eileencodes/puma,puma/puma,puma/puma,puma/puma,looker/puma,looker/puma,eileencodes/puma,puma/puma,looker/puma | markdown | ## Code Before:
1) ...
2) ...
3) ...
### Expected behavior
Tell us what should happen ...
### Actual behavior
Tell us what happens instead ...
### System configuration
**Ruby version**:
**Rails version**:
## Instruction:
Add puma version to issue template
## Code After:
1) ...
2) ...
3) ...
### Expected b... |
0dae7fb16b17c165a55b06370129793370007fd4 | exercises/practice/isogram/.meta/config.json | exercises/practice/isogram/.meta/config.json | {
"blurb": "Determine if a word or phrase is an isogram.",
"authors": [],
"contributors": [
"dector",
"eparovyshnaya",
"jtigger",
"lihofm",
"mdowds",
"nithia",
"sdavids13",
"sjwarner-bp",
"SleeplessByte",
"stkent",
"uzilan"
],
"files": {
"solution": [
"src... | {
"blurb": "Determine if a word or phrase is an isogram.",
"authors": [
"gandrianakis"
],
"contributors": [
"dector",
"eparovyshnaya",
"jtigger",
"lihofm",
"mdowds",
"nithia",
"sdavids13",
"sjwarner-bp",
"SleeplessByte",
"stkent",
"uzilan"
],
"files": {
"s... | Add gandrianakis as an exercise author | Add gandrianakis as an exercise author | JSON | mit | exercism/xkotlin,exercism/xkotlin | json | ## Code Before:
{
"blurb": "Determine if a word or phrase is an isogram.",
"authors": [],
"contributors": [
"dector",
"eparovyshnaya",
"jtigger",
"lihofm",
"mdowds",
"nithia",
"sdavids13",
"sjwarner-bp",
"SleeplessByte",
"stkent",
"uzilan"
],
"files": {
"solutio... |
2b48bf09a13de342e9aad08b6345dee4ddc410db | query-side/src/main/java/br/holandajunior/workaday/Application.java | query-side/src/main/java/br/holandajunior/workaday/Application.java | package br.holandajunior.workaday;
import org.apache.activemq.broker.BrokerService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.jms.annotation.EnableJms;
/**
* C... | package br.holandajunior.workaday;
import org.apache.activemq.broker.BrokerService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.jms.annotation.EnableJms;
import org... | Add cors filter into query-side | Add cors filter into query-side
| Java | mit | holandajunior/workaday,holandajunior/workaday | java | ## Code Before:
package br.holandajunior.workaday;
import org.apache.activemq.broker.BrokerService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.jms.annotation.Enabl... |
08177dd4bd443253415518147e03fdefceb4cc06 | Manifold/Inference.swift | Manifold/Inference.swift | // Copyright (c) 2015 Rob Rix. All rights reserved.
public typealias ConstraintSet = Multiset<Constraint>
public func typeOf(expression: Expression) -> Either<Error, (Type, AssumptionSet, ConstraintSet)> {
return expression.analysis(
ifVariable: { v in
let type = Type(Variable())
return .right(type, [ v: [ ... | // Copyright (c) 2015 Rob Rix. All rights reserved.
public typealias ConstraintSet = Multiset<Constraint>
public func typeOf(expression: Expression) -> Either<Error, (Type, AssumptionSet, ConstraintSet)> {
return expression.analysis(
ifVariable: { v in
let type = Type(Variable())
return .right(type, [ v: [ ... | Use the function type constructor. | Use the function type constructor.
| Swift | mit | antitypical/Manifold,antitypical/Manifold | swift | ## Code Before:
// Copyright (c) 2015 Rob Rix. All rights reserved.
public typealias ConstraintSet = Multiset<Constraint>
public func typeOf(expression: Expression) -> Either<Error, (Type, AssumptionSet, ConstraintSet)> {
return expression.analysis(
ifVariable: { v in
let type = Type(Variable())
return .rig... |
f999031a7a0164acd7c0b688a400a56b2fe77e67 | README.rdoc | README.rdoc | = define
define is a simple CLI to Google's define:word utility. Syntax is `define: word [or phrase]` to return Google's definitions.
== Copyright
Copyright (c) 2010 Trevor Hartman. See {LICENSE}[http://github.com/devth/define/blob/develop/LICENSE] for details.
| = define
define is a simple CLI to Google's define:word utility. Syntax is [\+define: word [or phrase]+] to return Google's definitions. Quit wasting your time looking up definitions in a clunky old browser and let command line define build your vocabulary minimalistically!
== Copyright
Copyright (c) 2010 Trevor Har... | Update docs with code formatting and more description. | Update docs with code formatting and more description.
| RDoc | mit | devth/define | rdoc | ## Code Before:
= define
define is a simple CLI to Google's define:word utility. Syntax is `define: word [or phrase]` to return Google's definitions.
== Copyright
Copyright (c) 2010 Trevor Hartman. See {LICENSE}[http://github.com/devth/define/blob/develop/LICENSE] for details.
## Instruction:
Update docs with code ... |
8bd236ee24b80d70906b14e6a64fbcaff526cd5f | app/mailers/permit_sender.rb | app/mailers/permit_sender.rb | class PermitSender < ActionMailer::Base
default from: "from@example.com"
# send the permit email to San Antonio Gov, pass in the user object that contains the user's email address
def send_permit_application(user)
@permit = permit
mail( :to => @permit.email,
:subject => 'Thanks for signing up for our... | class PermitSender < ActionMailer::Base
default from: "donotreply@homebasefix.com"
# send the permit email to San Antonio Gov, pass in the user object that contains the user's email address
def send_permit_application(user)
@permit = permit
mail( :to => @permit.email,
:subject => 'Thanks for signing ... | Configure email from permit sender to be donotreply@homebasefix | Configure email from permit sender to be donotreply@homebasefix
| Ruby | isc | codeforamerica/homebase,randy-r-masters/homebase,randy-r-masters/homebase,schlos/homebase,randy-r-masters/homebase,schlos/homebase,codeforamerica/homebase,schlos/homebase,codeforamerica/homebase | ruby | ## Code Before:
class PermitSender < ActionMailer::Base
default from: "from@example.com"
# send the permit email to San Antonio Gov, pass in the user object that contains the user's email address
def send_permit_application(user)
@permit = permit
mail( :to => @permit.email,
:subject => 'Thanks for si... |
376f5a856fd970cbb6ddfe7f19f83d4a88a691bc | src/field/email/email_pane.jsx | src/field/email/email_pane.jsx | import React from 'react';
import EmailInput from '../../ui/input/email_input';
import * as c from '../index';
import { swap, updateEntity } from '../../store/index';
import * as l from '../../core/index';
import { setEmail } from '../email';
import { debouncedRequestAvatar, requestAvatar } from '../../avatar';
export... | import React from 'react';
import EmailInput from '../../ui/input/email_input';
import * as c from '../index';
import { swap, updateEntity } from '../../store/index';
import * as l from '../../core/index';
import { setEmail } from '../email';
import { debouncedRequestAvatar, requestAvatar } from '../../avatar';
export... | Add instructions prop to EmailPane | Add instructions prop to EmailPane
| JSX | mit | mike-casas/lock,mike-casas/lock,mike-casas/lock | jsx | ## Code Before:
import React from 'react';
import EmailInput from '../../ui/input/email_input';
import * as c from '../index';
import { swap, updateEntity } from '../../store/index';
import * as l from '../../core/index';
import { setEmail } from '../email';
import { debouncedRequestAvatar, requestAvatar } from '../../... |
c2651fac1891a4aa120c00f99525f254363b0070 | Gruntfile.js | Gruntfile.js | /*
* Copyright 2013, All Rights Reserved.
*
* Code licensed under the BSD License:
* https://github.com/node-gh/gh/blob/master/LICENSE.md
*
* @author Zeno Rocha <zno.rocha@gmail.com>
*/
module.exports = function(grunt) {
grunt.initConfig({
jsbeautifier: {
files: ['bin/*.js', 'lib/**/*.js... | /*
* Copyright 2013, All Rights Reserved.
*
* Code licensed under the BSD License:
* https://github.com/node-gh/gh/blob/master/LICENSE.md
*
* @author Zeno Rocha <zno.rocha@gmail.com>
* @author Eduardo Lundgren <zno.rocha@gmail.com>
*/
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-jsbeautifi... | Move task dependencies to the top | Move task dependencies to the top
| JavaScript | bsd-3-clause | TomzxForks/gh,henvic/gh,dustinryerson/gh,tomzx/gh,TomzxForks/gh,tomzx/gh,modulexcite/gh,oouyang/gh,oouyang/gh,dustinryerson/gh,henvic/gh,modulexcite/gh | javascript | ## Code Before:
/*
* Copyright 2013, All Rights Reserved.
*
* Code licensed under the BSD License:
* https://github.com/node-gh/gh/blob/master/LICENSE.md
*
* @author Zeno Rocha <zno.rocha@gmail.com>
*/
module.exports = function(grunt) {
grunt.initConfig({
jsbeautifier: {
files: ['bin/*.j... |
44f29fca2d261d52f32a0a8d29ab819e6f0be569 | lib/http/controllers/api/set_domain.js | lib/http/controllers/api/set_domain.js | var gateway = require(__dirname+'/../../../../');
module.exports = function(req, res){
gateway.config.set('DOMAIN', req.body.domain);
gateway.config.save(function(){
res.send({ 'DOMAIN': gateway.config.get('DOMAIN') });
});
};
| var gateway = require(__dirname+'/../../../../');
/*
* @requires Config
* @function setDomain
* @description Set the domain via http for use in the
* ripple.txt file and also as the email address for
* admin basic authentication.
* @param {String} domain
*/
module.exports = function(req, res){
gateway.config.set(... | Add jsdoc to getDomain http call. | [DOC] Add jsdoc to getDomain http call.
| JavaScript | isc | xdv/gatewayd,xdv/gatewayd,zealord/gatewayd,crazyquark/gatewayd,zealord/gatewayd,whotooktwarden/gatewayd,whotooktwarden/gatewayd,Parkjeahwan/awegeeks,crazyquark/gatewayd,Parkjeahwan/awegeeks | javascript | ## Code Before:
var gateway = require(__dirname+'/../../../../');
module.exports = function(req, res){
gateway.config.set('DOMAIN', req.body.domain);
gateway.config.save(function(){
res.send({ 'DOMAIN': gateway.config.get('DOMAIN') });
});
};
## Instruction:
[DOC] Add jsdoc to getDomain http call.
## Cod... |
b6afb76d6f99c9b3d62ef0059ea26c4ae4c330d7 | wix/pluginlist.txt | wix/pluginlist.txt | github.com/mackerelio/go-check-plugins/check-log
github.com/mackerelio/go-check-plugins/check-procs
github.com/mackerelio/go-check-plugins/check-ntservice
github.com/mackerelio/go-check-plugins/wrrrrrong
| github.com/mackerelio/go-check-plugins/check-log
github.com/mackerelio/go-check-plugins/check-procs
github.com/mackerelio/go-check-plugins/check-ntservice
| Revert "[Revert later] Demonstrate test failure" | Revert "[Revert later] Demonstrate test failure"
This reverts commit 4904d6904cd4ec0030414559d71a169b57244acf.
| Text | apache-2.0 | mackerelio/mackerel-agent,mackerelio/mackerel-agent,mackerelio/mackerel-agent | text | ## Code Before:
github.com/mackerelio/go-check-plugins/check-log
github.com/mackerelio/go-check-plugins/check-procs
github.com/mackerelio/go-check-plugins/check-ntservice
github.com/mackerelio/go-check-plugins/wrrrrrong
## Instruction:
Revert "[Revert later] Demonstrate test failure"
This reverts commit 4904d6904cd4e... |
4508c9e566699b80aab9fb46da574a31edc3b36f | src/components/utils/utils.js | src/components/utils/utils.js | (function () {
'use strict';
var mod = angular.module('components.utils', []);
mod.factory('Utils', ['$window', function Utils($window) {
function stringify(obj, prefix) {
var str = [];
for(var p in obj) {
var k = prefix ? prefix + '[' + p + ']' : p, v = obj[p];
str.push(typeof... | (function () {
'use strict';
var mod = angular.module('components.utils', []);
mod.factory('Utils', ['$window', function Utils($window) {
function stringify(obj, prefix) {
var str = [];
for(var p in obj) {
var k = prefix ? prefix + '[' + p + ']' : p, v = obj[p];
str.push(typeof... | Fix checking type of data (array is recognized as an object) | Fix checking type of data (array is recognized as an object)
| JavaScript | apache-2.0 | yrezgui/buffer-firefoxos | javascript | ## Code Before:
(function () {
'use strict';
var mod = angular.module('components.utils', []);
mod.factory('Utils', ['$window', function Utils($window) {
function stringify(obj, prefix) {
var str = [];
for(var p in obj) {
var k = prefix ? prefix + '[' + p + ']' : p, v = obj[p];
... |
ebedde5912bb7ae51a9e250cc9419bdb57531e49 | apps/home/stylesheets/index.styl | apps/home/stylesheets/index.styl | .Home
img
max-width 100%
vertical-align bottom
@require './example'
@require './explore'
@require './hero'
@require './more'
@require './quotes'
@require './next'
@require './section'
@require './split'
@require './to_fold'
@require './responsive'
| .Home
img
max-width 100%
vertical-align bottom
@require './explore'
@require './hero'
@require './more'
@require './quotes'
@require './section'
@require './split'
@require './to_fold'
@require './responsive'
| Remove references to old styles | Remove references to old styles
| Stylus | mit | aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell | stylus | ## Code Before:
.Home
img
max-width 100%
vertical-align bottom
@require './example'
@require './explore'
@require './hero'
@require './more'
@require './quotes'
@require './next'
@require './section'
@require './split'
@require './to_fold'
@require './responsive'
## Instruction:
Remove references to old sty... |
4eb248c2c301e5b0f4f7a2dc8eb14f828230332c | Build/Grunt-Options/shell.js | Build/Grunt-Options/shell.js | /**
* Grunt-Shell
* @description Run shell commands.
* @docs https://github.com/sindresorhus/grunt-shell
*/
var config = require("../Config");
module.exports = {
"deleteGitHooks" : {
"command" : "rm -rf .git/hooks/",
"options" : {
"stdout" : true,
"stderr" : true,
"failOnError" : true
},
},
"hoo... | /**
* Grunt-Shell
* @description Run shell commands.
* @docs https://github.com/sindresorhus/grunt-shell
*/
var os = require('os'),
config = require("../Config"),
isWin = /^win/.test(os.platform());
module.exports = {
"deleteGitHooks" : {
"command" : isWin ? "rmdir .git\\hooks\\ /s /q" : "rm -rf .git/hooks/"... | Implement a hostname check to prevent errors while running 'grunt init' on windows based machines | [TASK] Implement a hostname check to prevent errors while running 'grunt init' on windows based machines
| JavaScript | mit | t3b/t3b_template,t3b/t3b_template,t3b/t3b_template,t3b/t3b_template,t3b/t3b_template | javascript | ## Code Before:
/**
* Grunt-Shell
* @description Run shell commands.
* @docs https://github.com/sindresorhus/grunt-shell
*/
var config = require("../Config");
module.exports = {
"deleteGitHooks" : {
"command" : "rm -rf .git/hooks/",
"options" : {
"stdout" : true,
"stderr" : true,
"failOnError" : tru... |
d022270b3a486cd1943129e8a10a30a25f6bb5d6 | examples/sample_doc.tex | examples/sample_doc.tex | %!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\documentclass{article}
\usepackage{fontspec}
\usepackage{gettext}
\newcommand{\sandwitches}[1]{
\ngettext{There is one sandwich on the table}{There are #1 sandwiches on the table}{#1}
}
\newcommand{\mercuries}[1]{
\npgettext{first mercury is a person, second ... | %!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\documentclass{article}
\usepackage{fontspec}
\usepackage{gettext}
\newcommand{\sandwitches}[1]{
\ngettext{There is one sandwich on the table}{There are #1 sandwiches on the table}{#1}
}
\newcommand{\mercuries}[1]{
\npgettext{first mercury is a person, second ... | Add \today and \formatdate to example document | Add \today and \formatdate to example document
| TeX | bsd-2-clause | mplucinski/tex-gettext | tex | ## Code Before:
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\documentclass{article}
\usepackage{fontspec}
\usepackage{gettext}
\newcommand{\sandwitches}[1]{
\ngettext{There is one sandwich on the table}{There are #1 sandwiches on the table}{#1}
}
\newcommand{\mercuries}[1]{
\npgettext{first mercury is a... |
683e4d747a34df88c12bfea61c5a56d9794e8ccb | pkgs/development/libraries/libdwarf/default.nix | pkgs/development/libraries/libdwarf/default.nix | { stdenv, fetchurl, libelf }:
stdenv.mkDerivation rec {
name = "libdwarf-20140805";
src = fetchurl {
url = "http://www.prevanders.net/${name}.tar.gz";
sha256 = "1z5xz0w1yvk8swcqzx4dvnig94j51pns39jmipv5rl20qahik0nl";
};
configureFlags = "--enable-shared";
preBuild = ''
export LD_LIBRARY_PATH=... | { stdenv, fetchurl, libelf }:
stdenv.mkDerivation rec {
name = "libdwarf-20121130";
src = fetchurl {
url = http://reality.sgiweb.org/davea/libdwarf-20121130.tar.gz;
sha256 = "1nfdfn5xf3n485pvpb853awyxxnvrg207i0wmrr7bhk8fcxdxbn0";
};
configureFlags = " --enable-shared --disable-nonshared";
preCon... | Revert "libdwarf: upgrade to the latest version" | Revert "libdwarf: upgrade to the latest version"
| Nix | mit | NixOS/nixpkgs,triton/triton,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,triton/triton,SymbiFlow/nixpkgs,triton/triton,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,triton/triton,NixOS/nixpkgs,triton/triton,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlo... | nix | ## Code Before:
{ stdenv, fetchurl, libelf }:
stdenv.mkDerivation rec {
name = "libdwarf-20140805";
src = fetchurl {
url = "http://www.prevanders.net/${name}.tar.gz";
sha256 = "1z5xz0w1yvk8swcqzx4dvnig94j51pns39jmipv5rl20qahik0nl";
};
configureFlags = "--enable-shared";
preBuild = ''
export ... |
2d188cc6efa50c3662295d532abc16b0e61839a3 | playbook.yml | playbook.yml | ---
- hosts: all
roles:
- bootstrap
- wiki
- self-upgrade
- knime
- modifiedtanimoto
- gpcrdb
- kripo
- sstea
- chemdb4vs
- klifs
tasks:
- name: Vagrant owns Knime
file: path=/opt/knime state=directory recurse=yes owner=vagrant group=vagrant
- name: Vagrant owns... | ---
- hosts: all
roles:
- bootstrap
- wiki
- self-upgrade
- knime
- modifiedtanimoto
- gpcrdb
- kripo
- sstea
- chemdb4vs
- klifs
tasks:
- name: Vagrant owns Knime
file: path=/opt/knime state=directory recurse=yes owner=vagrant group=vagrant
- name: Vagrant owns... | Allow writes to Knime 3D-e-Chem workflows. | Allow writes to Knime 3D-e-Chem workflows.
| YAML | apache-2.0 | 3D-e-Chem/3D-e-Chem-VM | yaml | ## Code Before:
---
- hosts: all
roles:
- bootstrap
- wiki
- self-upgrade
- knime
- modifiedtanimoto
- gpcrdb
- kripo
- sstea
- chemdb4vs
- klifs
tasks:
- name: Vagrant owns Knime
file: path=/opt/knime state=directory recurse=yes owner=vagrant group=vagrant
- na... |
0bff3a0056d1ac56c3de47b743bbd9c394921fe4 | app/api/v0.rb | app/api/v0.rb | require_relative 'v0/api'
require 'grape-swagger'
class ApiV0 < Grape::API
swagger_path = 'swagger'
get do
# Redirect base url to Swagger docs
redirect "http://petstore.swagger.io/?url=#{request.scheme}://#{request.host_with_port}/#{version}/#{swagger_path}"
end
content_type :json, 'application/json... | require_relative 'v0/api'
require 'grape-swagger'
class ApiV0 < Grape::API
swagger_path = 'swagger'
get do
# Redirect base url to Swagger docs
redirect "http://petstore.swagger.io/?url=#{request.scheme}://#{request.host_with_port}/#{version}/#{swagger_path}"
end
content_type :json, 'application/json... | Fix base url and api version in swagger. | Fix base url and api version in swagger.
| Ruby | mit | patcon/tocityhall-api,CivicTechTO/tocityhall-api | ruby | ## Code Before:
require_relative 'v0/api'
require 'grape-swagger'
class ApiV0 < Grape::API
swagger_path = 'swagger'
get do
# Redirect base url to Swagger docs
redirect "http://petstore.swagger.io/?url=#{request.scheme}://#{request.host_with_port}/#{version}/#{swagger_path}"
end
content_type :json, '... |
0947643977b989ca924bcf932a5153472e362108 | plata/utils.py | plata/utils.py | from django.utils import simplejson
class JSONFieldDescriptor(object):
def __init__(self, field):
self.field = field
def __get__(self, obj, objtype):
cache_field = '_cached_jsonfield_%s' % self.field
if not hasattr(obj, cache_field):
try:
setattr(obj, cache... | from django.core.serializers.json import DjangoJSONEncoder
from django.utils import simplejson
class JSONFieldDescriptor(object):
def __init__(self, field):
self.field = field
def __get__(self, obj, objtype):
cache_field = '_cached_jsonfield_%s' % self.field
if not hasattr(obj, cache_... | Use DjangoJSONEncoder, it knows how to handle dates and decimals | JSONFieldDescriptor: Use DjangoJSONEncoder, it knows how to handle dates and decimals
| Python | bsd-3-clause | armicron/plata,stefanklug/plata,allink/plata,armicron/plata,armicron/plata | python | ## Code Before:
from django.utils import simplejson
class JSONFieldDescriptor(object):
def __init__(self, field):
self.field = field
def __get__(self, obj, objtype):
cache_field = '_cached_jsonfield_%s' % self.field
if not hasattr(obj, cache_field):
try:
se... |
3c631da4e25a3e83fe9e9f1d81f1584782b4ea1e | platform/editor-ui-api/resources/META-INF/Editor.xml | platform/editor-ui-api/resources/META-INF/Editor.xml | <idea-plugin>
<extensionPoints>
<extensionPoint name="editorFactoryListener" interface="com.intellij.openapi.editor.event.EditorFactoryListener"/>
<extensionPoint name="syntaxHighlighter"
beanClass="com.intellij.openapi.extensions.KeyedFactoryEPBean"
dynamic="true">
... | <idea-plugin>
<extensionPoints>
<extensionPoint name="editorFactoryListener" interface="com.intellij.openapi.editor.event.EditorFactoryListener" dynamic="true"/>
<extensionPoint name="syntaxHighlighter"
beanClass="com.intellij.openapi.extensions.KeyedFactoryEPBean"
dyna... | Mark <editorFactoryListener> EP as dynamic | Mark <editorFactoryListener> EP as dynamic
GitOrigin-RevId: fd82f21696a19b9fa08729f6a83fa210d8db75cd | XML | apache-2.0 | allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int... | xml | ## Code Before:
<idea-plugin>
<extensionPoints>
<extensionPoint name="editorFactoryListener" interface="com.intellij.openapi.editor.event.EditorFactoryListener"/>
<extensionPoint name="syntaxHighlighter"
beanClass="com.intellij.openapi.extensions.KeyedFactoryEPBean"
dyn... |
3948043fe5f8d9ad8a3a9f2d0eb7c67bd8e0186e | app/controllers/email_alert_subscriptions_controller.rb | app/controllers/email_alert_subscriptions_controller.rb | require 'email_alert_signup_api'
require 'gds_api/helpers'
class EmailAlertSubscriptionsController < ApplicationController
include GdsApi::Helpers
protect_from_forgery except: :create
def new
# So using request.env["PATH_INFO"] has a leading slash which would need
# removing before asking the content ap... | require 'email_alert_signup_api'
require 'gds_api/helpers'
class EmailAlertSubscriptionsController < ApplicationController
include GdsApi::Helpers
protect_from_forgery except: :create
def new
content = content_store.content_item(request.path)
@signup = SignupPresenter.new(content)
end
def create
... | Refactor Finders to pull from content_store | Refactor Finders to pull from content_store
This commit contains the work needed to pull Finders from the
content_store and removes the ability for Finders to be retrieved from
the content-api.
Finders and email-alert-subs now pull their content_item and the
relevant tests have been updated to stub the content_store.... | Ruby | mit | alphagov/finder-frontend,alphagov/finder-frontend,alphagov/finder-frontend,alphagov/finder-frontend | ruby | ## Code Before:
require 'email_alert_signup_api'
require 'gds_api/helpers'
class EmailAlertSubscriptionsController < ApplicationController
include GdsApi::Helpers
protect_from_forgery except: :create
def new
# So using request.env["PATH_INFO"] has a leading slash which would need
# removing before askin... |
93e2ff0dd32a72efa90222988d4289c70bb55b98 | c2corg_api/models/common/fields_book.py | c2corg_api/models/common/fields_book.py | DEFAULT_FIELDS = [
'locales.title',
'locales.summary',
'locales.description',
'locales.lang',
'author',
'editor',
'activities',
'url',
'isbn',
'book_types',
'publication_date',
'langs',
'nb_pages'
]
DEFAULT_REQUIRED = [
'locales',
'locales.title',
'book_t... | DEFAULT_FIELDS = [
'locales.title',
'locales.summary',
'locales.description',
'locales.lang',
'author',
'editor',
'activities',
'url',
'isbn',
'book_types',
'publication_date',
'langs',
'nb_pages'
]
DEFAULT_REQUIRED = [
'locales',
'locales.title',
'book_t... | Add summary to book listing | Add summary to book listing
| Python | agpl-3.0 | c2corg/v6_api,c2corg/v6_api,c2corg/v6_api | python | ## Code Before:
DEFAULT_FIELDS = [
'locales.title',
'locales.summary',
'locales.description',
'locales.lang',
'author',
'editor',
'activities',
'url',
'isbn',
'book_types',
'publication_date',
'langs',
'nb_pages'
]
DEFAULT_REQUIRED = [
'locales',
'locales.tit... |
fc11092a0af459c3207084e070012f2fd2cf5435 | Request/PostCurlRequest.php | Request/PostCurlRequest.php | <?php
/**
* @file PostCurlRequest.php
*
* PHP version 5.4+
*
* @author Yancharuk Alexander <alex at itvault dot info>
* @date 2015-01-20 20:16
* @copyright The BSD 3-Clause License
*/
namespace Veles\Request;
/**
* Class PostCurlRequest
* @author Yancharuk Alexander <alex at itvault dot info>
*/
cl... | <?php
/**
* @file PostCurlRequest.php
*
* PHP version 5.4+
*
* @author Yancharuk Alexander <alex at itvault dot info>
* @date 2015-01-20 20:16
* @copyright The BSD 3-Clause License
*/
namespace Veles\Request;
/**
* Class PostCurlRequest
* @author Yancharuk Alexander <alex at itvault dot info>
*/
cl... | Allow string as POSTFIELDS param | Allow string as POSTFIELDS param
| PHP | bsd-3-clause | nafigator/Veles | php | ## Code Before:
<?php
/**
* @file PostCurlRequest.php
*
* PHP version 5.4+
*
* @author Yancharuk Alexander <alex at itvault dot info>
* @date 2015-01-20 20:16
* @copyright The BSD 3-Clause License
*/
namespace Veles\Request;
/**
* Class PostCurlRequest
* @author Yancharuk Alexander <alex at itvault ... |
80e5ef61f3a43a41d18df7540754545fa040d350 | docs/uploading-images.md | docs/uploading-images.md | Uploading Images
================
Images should be uploaded as a Zip file of JPG images. You'll need to upload any new images that you want to add before you add any metadata. Depending on how many images you add they can take a while to process (hours initially, to be fully indexed and searchable it could take many m... | Uploading Images
================
Images should be uploaded as a Zip file of JPG images. You'll need to upload any new images that you want to add before you add any metadata. Depending on how many images you add they can take a while to process (hours initially, to be fully indexed and searchable it could take many m... | Expand the uploading images docs a bit. | Expand the uploading images docs a bit.
| Markdown | mit | jeresig/pharos-images | markdown | ## Code Before:
Uploading Images
================
Images should be uploaded as a Zip file of JPG images. You'll need to upload any new images that you want to add before you add any metadata. Depending on how many images you add they can take a while to process (hours initially, to be fully indexed and searchable it c... |
99a29e5aebc2c283ee1d2d68881323021187c7eb | js/Search.jsx | js/Search.jsx | const React = require('react')
const data = require('../public/data')
const ShowCard = require('./ShowCard')
// key is needed for console/webpack complaint to go away. \
// key is a unique identifier
const Search = React.createClass({
getInitialState () {
return {
searchTerm: 'this is my seach term'
}... | const React = require('react')
const data = require('../public/data')
const ShowCard = require('./ShowCard')
// key is needed for console/webpack complaint to go away. \
// key is a unique identifier
//have to bind this when this syntaxis is uses
// class Search extends React.Component {
// constructor(props) {
/... | Add note about extends method | Add note about extends method
| JSX | mit | teatreelee/complete-react,teatreelee/complete-react | jsx | ## Code Before:
const React = require('react')
const data = require('../public/data')
const ShowCard = require('./ShowCard')
// key is needed for console/webpack complaint to go away. \
// key is a unique identifier
const Search = React.createClass({
getInitialState () {
return {
searchTerm: 'this is my s... |
0e4cb12d055c902c91b9d62864e35d100e2135f8 | README.md | README.md | - pluggable lint based on [metalsmith](https://github.com/metalsmith/metalsmith) |
[](https://travis-ci.org/jmayer13/eloquent-lint)
- pluggable lint based on [metalsmith](https://github.com/metalsmith/metalsmith) | Include trevis ci image into readme.md file | Include trevis ci image into readme.md file
| Markdown | mit | jmayer13/eloquent-lint | markdown | ## Code Before:
- pluggable lint based on [metalsmith](https://github.com/metalsmith/metalsmith)
## Instruction:
Include trevis ci image into readme.md file
## Code After:
[](https://travis-ci.org/jmayer13/eloquent-lint)
- pluggable lint ... |
247283aef8c62894a531ed4c48eb53fc37d39694 | Casks/iterm2.rb | Casks/iterm2.rb | cask 'iterm2' do
# note: "2" is not a version number, but indicates a different vendor
version '2.1.4'
sha256 '1062b83e7808dc1e13362f4a83ef770e1c24ea4ae090d1346b49f6196e9064cd'
url "https://iterm2.com/downloads/stable/iTerm2-#{version.gsub('.', '_')}.zip"
appcast 'https://iterm2.com/appcasts/final.xml',
... | cask 'iterm2' do
# note: "2" is not a version number, but indicates a different vendor
version '2.1.4'
sha256 '1062b83e7808dc1e13362f4a83ef770e1c24ea4ae090d1346b49f6196e9064cd'
url "https://iterm2.com/downloads/stable/iTerm2-#{version.gsub('.', '_')}.zip"
appcast 'https://iterm2.com/appcasts/final.xml',
... | Update iTerm2: depends_on macos and arch | Update iTerm2: depends_on macos and arch
| Ruby | bsd-2-clause | julionc/homebrew-cask,elyscape/homebrew-cask,Ephemera/homebrew-cask,mahori/homebrew-cask,JacopKane/homebrew-cask,xakraz/homebrew-cask,bric3/homebrew-cask,okket/homebrew-cask,skatsuta/homebrew-cask,diogodamiani/homebrew-cask,sjackman/homebrew-cask,schneidmaster/homebrew-cask,josa42/homebrew-cask,hristozov/homebrew-cask,... | ruby | ## Code Before:
cask 'iterm2' do
# note: "2" is not a version number, but indicates a different vendor
version '2.1.4'
sha256 '1062b83e7808dc1e13362f4a83ef770e1c24ea4ae090d1346b49f6196e9064cd'
url "https://iterm2.com/downloads/stable/iTerm2-#{version.gsub('.', '_')}.zip"
appcast 'https://iterm2.com/appcasts/... |
2028854ec4d6dca904d4ecdd6f85f572847e632f | lib/import/import_samples.rb | lib/import/import_samples.rb | require 'roo'
class Import::ImportSamples
def self.import_samples_from_file(file_path, collection_id)
ActiveRecord::Base.transaction do
xlsx = Roo::Spreadsheet.open(file_path)
rows = xlsx.parse(name: "Name", description: "Beschreibung", smiles: "Smiles")
rows.shift
rows.map do |row|
... | require 'roo'
class Import::ImportSamples
def self.import_samples_from_file(file_path, collection_id)
ActiveRecord::Base.transaction do
xlsx = Roo::Spreadsheet.open(file_path)
rows = xlsx.parse(name: "Name", description: "Beschreibung", smiles: "Smiles")
rows.shift
rows.map do |row|
... | Add raise to avoid import of samples without molecules | Add raise to avoid import of samples without molecules
| Ruby | agpl-3.0 | ComPlat/chemotion_ELN,ComPlat/chemotion_ELN,ComPlat/chemotion_ELN,ComPlat/chemotion_ELN | ruby | ## Code Before:
require 'roo'
class Import::ImportSamples
def self.import_samples_from_file(file_path, collection_id)
ActiveRecord::Base.transaction do
xlsx = Roo::Spreadsheet.open(file_path)
rows = xlsx.parse(name: "Name", description: "Beschreibung", smiles: "Smiles")
rows.shift
rows.ma... |
c14748e066cba9978cc1a73b81dbb76646a5a2ab | test.sh | test.sh | rm -rf ./build
cp -R ./test ./build
for file in ./build/*.jpg
do
./cartoonist.sh "$file"
done
| rm -rf ./build
cp -R ./test ./build
for file in ./build/*.jpg
do
echo Converting "$file"
./cartoonist.sh "$file"
done
| Test script now prints progress messages | Test script now prints progress messages
| Shell | mit | honzajavorek/cartoonist | shell | ## Code Before:
rm -rf ./build
cp -R ./test ./build
for file in ./build/*.jpg
do
./cartoonist.sh "$file"
done
## Instruction:
Test script now prints progress messages
## Code After:
rm -rf ./build
cp -R ./test ./build
for file in ./build/*.jpg
do
echo Converting "$file"
./cartoonist.sh "$file"
done
|
dc927a6001672bb9aeec92968df745bd65f0ab72 | src/scss/refugee-data-updated.scss | src/scss/refugee-data-updated.scss | .refugee-updated-at {
position: absolute;
text-align: right;
right: 0.5rem;
bottom: 0.5rem;
font-size: 0.8rem;
@media screen and (max-width: 600px) {
font-size: 0.5rem;
}
}
| .refugee-updated-at {
position: absolute;
text-align: right;
right: 0.5rem;
bottom: 0.5rem;
font-size: 0.8rem;
color: #777777;
text-shadow: -2px 0 white, 0 2px white, 2px 0 white, 0 -2px white;
@media screen and (max-width: 600px) {
font-size: 0.7rem;
}
}
| Tweak updated at text color and size | Tweak updated at text color and size
| SCSS | mit | lucified/lucify-asylum-countries,lucified/lucify-asylum-countries,lucified/lucify-asylum-countries,lucified/lucify-asylum-countries | scss | ## Code Before:
.refugee-updated-at {
position: absolute;
text-align: right;
right: 0.5rem;
bottom: 0.5rem;
font-size: 0.8rem;
@media screen and (max-width: 600px) {
font-size: 0.5rem;
}
}
## Instruction:
Tweak updated at text color and size
## Code After:
.refugee-updated-at {
position: absolute... |
837d1d3127756f38413b5eda18dfd636e768e55a | renovate.json | renovate.json | {
"extends": [
"config:base",
":rebaseStalePrs",
":automergePatch"
],
"rangeStrategy": "bump",
"packageRules": [
{
"packageNames": ["webpack"],
"paths": ["packages/test-v3"],
"allowedVersions": "<4.0.0"
},
{
"packageNames": ["uglifyjs-webpack-plugin"],
"path... | {
"extends": [
"config:base",
":rebaseStalePrs",
":automergePatch"
],
"rangeStrategy": "bump",
"packageRules": [
{
"packageNames": ["jest", "@types/jest", "ts-jest"],
"groupName": "jest packages"
},
{
"packageNames": ["webpack"],
"paths": ["packages/test-v3"],
... | Update Renovate config for grouping jest | Update Renovate config for grouping jest
| JSON | mit | yami-beta/license-pack | json | ## Code Before:
{
"extends": [
"config:base",
":rebaseStalePrs",
":automergePatch"
],
"rangeStrategy": "bump",
"packageRules": [
{
"packageNames": ["webpack"],
"paths": ["packages/test-v3"],
"allowedVersions": "<4.0.0"
},
{
"packageNames": ["uglifyjs-webpack-plugi... |
53a3020b513e3ff790bbbc9c75c12fea4fe47e58 | source/pre-build/CMakeLists.txt | source/pre-build/CMakeLists.txt |
set(GL_SPEC "${CMAKE_CURRENT_SOURCE_DIR}/gl.xml")
set(GENERATED_CONSTANTS "${CMAKE_CURRENT_BINARY_DIR}/gl_constants.h")
set(GENERATED_EXTENSIONS "${CMAKE_CURRENT_BINARY_DIR}/gl_extensions.h")
set(GENERATED_EXTENSION_INFO "${CMAKE_CURRENT_BINARY_DIR}/gl_extension_info.h")
find_program(PYTHON "python")
if (PYTHON)
me... |
set(GL_SPEC "${CMAKE_CURRENT_SOURCE_DIR}/gl.xml")
set(GENERATED_CONSTANTS "${CMAKE_CURRENT_BINARY_DIR}/gl_constants.h")
set(GENERATED_EXTENSIONS "${CMAKE_CURRENT_BINARY_DIR}/gl_extensions.h")
set(GENERATED_EXTENSION_INFO "${CMAKE_CURRENT_BINARY_DIR}/gl_extension_info.h")
find_program(PYTHON "python")
if (PYTHON)
me... | Throw an error if python is not found since its required to copy the gl_* header files to the correct directory | Throw an error if python is not found since its required to copy the gl_* header files to the correct directory
| Text | mit | j-o/globjects,cginternals/globjects,j-o/globjects,j-o/globjects,j-o/globjects,hpi-r2d2/globjects,cginternals/globjects,hpi-r2d2/globjects | text | ## Code Before:
set(GL_SPEC "${CMAKE_CURRENT_SOURCE_DIR}/gl.xml")
set(GENERATED_CONSTANTS "${CMAKE_CURRENT_BINARY_DIR}/gl_constants.h")
set(GENERATED_EXTENSIONS "${CMAKE_CURRENT_BINARY_DIR}/gl_extensions.h")
set(GENERATED_EXTENSION_INFO "${CMAKE_CURRENT_BINARY_DIR}/gl_extension_info.h")
find_program(PYTHON "python")
... |
dccb4284b0190f0ade93f21346577d4b1406cf0a | README.md | README.md |
Some images pulled from CustomizedGirl.com |
A Social Game for Healthy Eating
Created for [H4BC][1] (Feb. 20-22 2015) in Construct 2 by Team LEHP - Sean, Napoleon, Lisa, Paul, Maria. Some images pulled from CustomizedGirl.com.
[1]:http://hackforbigchoices.org/hackathons/ghana/
| Include team member names in readme | Include team member names in readme | Markdown | mit | skaulana/chopbuddy,skaulana/chopbuddy | markdown | ## Code Before:
Some images pulled from CustomizedGirl.com
## Instruction:
Include team member names in readme
## Code After:
A Social Game for Healthy Eating
Created for [H4BC][1] (Feb. 20-22 2015) in Construct 2 by Team LEHP - Sean, Napoleon, Lisa, Paul, Maria. Some images pulled from CustomizedGirl.com.
[1]:http... |
af4cbb8642afffdc32a060aad5c46131ef312d46 | src/run_tests_exclude.txt | src/run_tests_exclude.txt | ctests/burn
# these tests haven't been implemented
| ctests/burn
# these tests haven't been implemented
# Helper scripts for iozone
components/appio/tests/iozone/Gnuplot.txt
components/appio/tests/iozone/Generate_Graphs
components/appio/tests/iozone/report.pl
components/appio/tests/iozone/iozone_visualizer.pl
components/appio/tests/iozone/gengnuplot.sh
components/appi... | Exclude iozone helper scripts from run_tests. | Exclude iozone helper scripts from run_tests.
run_tests.sh looks for executible files under components/*/tests
Some of the plotting scripts in appio/iozone were getting picked up.
| Text | bsd-3-clause | arm-hpc/papi,pyrovski/papi,pyrovski/papi,arm-hpc/papi,arm-hpc/papi,arm-hpc/papi,pyrovski/papi,arm-hpc/papi,arm-hpc/papi,arm-hpc/papi,pyrovski/papi,pyrovski/papi,pyrovski/papi,pyrovski/papi,pyrovski/papi | text | ## Code Before:
ctests/burn
# these tests haven't been implemented
## Instruction:
Exclude iozone helper scripts from run_tests.
run_tests.sh looks for executible files under components/*/tests
Some of the plotting scripts in appio/iozone were getting picked up.
## Code After:
ctests/burn
# these tests haven't bee... |
3ca83d8a321443b3b4e385c456964d248bd2f978 | deploy-hooks.sh | deploy-hooks.sh | stage=$1
case $stage in
pre )
pm2 stop greenbot
;;
deploy )
git pull
rm -r node_modules
npm install
;;
post )
pm2 start node_modules/greenbot/bin/greenbot.js --node-args "modacity.cson"
;;
esac
| stage=$1
case $stage in
pre )
forever stop node_modules/greenbot/bin/greenbot.js
;;
deploy )
git pull
rm -r node_modules
npm install
;;
post )
forever start node_modules/greenbot/bin/greenbot.js modacity.cson
;;
esac
| Switch from pm2 to forever | Switch from pm2 to forever
| Shell | mit | csauve/gb-plugins-modacity | shell | ## Code Before:
stage=$1
case $stage in
pre )
pm2 stop greenbot
;;
deploy )
git pull
rm -r node_modules
npm install
;;
post )
pm2 start node_modules/greenbot/bin/greenbot.js --node-args "modacity.cson"
;;
esac
## Instruction:
Switch from pm2 to forever
## Code After:
stage=$1
c... |
b844e3c50241598757e4322214dab8f13af0ce98 | index.html | index.html | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<link rel="stylesheet" href="">
</head>
<body>
</body>
</html> | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>newInc</title>
<!--Import Google Icon Font-->
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="... | Add css, js and jquery | Add css, js and jquery
| HTML | apache-2.0 | kuroikyu/employr,kuroikyu/employr | html | ## Code Before:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<link rel="stylesheet" href="">
</head>
<body>
</body>
</html>
## Instruction:
Add css, js and jquery
## Code After:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<m... |
28f5eafe8b2e34e7a9dc9e2c00cf6881013e2314 | lib/algorhythmic.coffee | lib/algorhythmic.coffee | class Algorhythmic
max: 10
compute: (array) ->
array
.map(@getCharInt)
.reduce((previousInt, currentInt) =>
(previousInt + currentInt) % @max
, 0) + 1
getCharInt: (char) -> parseInt char.charCodeAt(0) or 0
convert: (string) ->
str = string.replace(/\.(png|jpg|gif|)$/g, "")
strin... | class Algorhythmic
max: 10
convert: (string) ->
str = string.replace(/\.(png|jpg|gif|)$/g, "")
stringArray = str.split('')
return @_compute(stringArray)
_compute: (array) ->
array
.map(@_getCharInt)
.reduce((previousInt, currentInt) =>
(previousInt + currentInt) % @max
, 0) + 1... | Use convention for 'private' functions | Use convention for 'private' functions
Move them below public functions, also.
| CoffeeScript | mit | gitblit/avatars-api,mojects/avatars-api,adorableio/avatars-api,mojects/avatars-api,gitblit/avatars-api | coffeescript | ## Code Before:
class Algorhythmic
max: 10
compute: (array) ->
array
.map(@getCharInt)
.reduce((previousInt, currentInt) =>
(previousInt + currentInt) % @max
, 0) + 1
getCharInt: (char) -> parseInt char.charCodeAt(0) or 0
convert: (string) ->
str = string.replace(/\.(png|jpg|gif|)$/... |
2f0419d10f555c97209ba8d2e857ea90ce2ae86f | src/Web/Twig/TwigResponseServiceProvider.php | src/Web/Twig/TwigResponseServiceProvider.php | <?php
namespace GMO\Common\Web\Twig;
use Silex\Application;
use Silex\ServiceProviderInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
use Symfony\Component\HttpKernel\KernelEvents;
clas... | <?php
namespace GMO\Common\Web\Twig;
use Silex\Application;
use Silex\ServiceProviderInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
use Symfony\Component\HttpKernel\KernelEvents;
clas... | Fix headers when creating new response from twig response | Fix headers when creating new response from twig response
| PHP | mit | gmo/common | php | ## Code Before:
<?php
namespace GMO\Common\Web\Twig;
use Silex\Application;
use Silex\ServiceProviderInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
use Symfony\Component\HttpKernel\Ker... |
65fdd17339f8bb3477ed27d3008905685fb61588 | _plugins/search-index-generator.rb | _plugins/search-index-generator.rb |
module Jekyll
class SearchIndexGenerator < Generator
priority :low
def generate(site)
index = site.posts.docs.reverse
.filter { |post| !post.data['retired'] }
.map do |post|
{
url: post.url,
title: post.data['title'],
category: ... |
module Jekyll
class SearchIndexGenerator < Generator
priority :low
def generate(site)
index = site.posts.docs.reverse
.filter { |post| !post.data['retired'] }
.map do |post|
{
url: site.config['url'] + post.url,
title: post.data['title'],... | Prepend site url to post url in search index | Prepend site url to post url in search index
| Ruby | mit | NSHipster/nshipster.com,NSHipster/nshipster.com,NSHipster/nshipster.com | ruby | ## Code Before:
module Jekyll
class SearchIndexGenerator < Generator
priority :low
def generate(site)
index = site.posts.docs.reverse
.filter { |post| !post.data['retired'] }
.map do |post|
{
url: post.url,
title: post.data['title'],
... |
fe86c733cbe322e621e0e833b9e04db2a0c4feee | lib/monolith/locations/default.rb | lib/monolith/locations/default.rb | module Monolith
class DefaultLocation < BaseLocation
def install
# For now we just copy any community cookbooks. It would be nice to be
# able to grab them from the source URL, but that isn't readily
# accessible, and then you have to guess how to check it out.
if File.directory?(@destinat... | module Monolith
class DefaultLocation < BaseLocation
def install
# For now we just copy any community cookbooks. It would be nice to be
# able to grab them from the source URL, but that isn't readily
# accessible, and then you have to guess how to check it out.
if File.directory?(@destinat... | Fix formatting exception when skipping a community cookbook | Fix formatting exception when skipping a community cookbook
| Ruby | mit | mivok/berks-monolith | ruby | ## Code Before:
module Monolith
class DefaultLocation < BaseLocation
def install
# For now we just copy any community cookbooks. It would be nice to be
# able to grab them from the source URL, but that isn't readily
# accessible, and then you have to guess how to check it out.
if File.dire... |
53c014a5ccff103a89c2b9ff9b5f1f30b5d4f7b0 | tests/test_states.py | tests/test_states.py | import pytest
from mmvdApp.utils import objective_function
from mmvdApp.utils import valid_solution
@pytest.mark.utils
@pytest.mark.linprog
def test_objective_function(states1):
"""
Test if ``utils.linprog.objective_function`` correctly calculates expected
objective function value.
"""
assert obje... | import pytest
from mmvdApp.utils import objective_function
from mmvdApp.utils import valid_solution
from mmvdApp.utils import InvalidOrderException
@pytest.mark.utils
@pytest.mark.linprog
def test_objective_function(states1):
"""
Test if ``utils.linprog.objective_function`` correctly calculates expected
o... | Test missing checking for InvalidOrderException raised | Fix: Test missing checking for InvalidOrderException raised
| Python | mit | WojciechFocus/MMVD,WojciechFocus/MMVD | python | ## Code Before:
import pytest
from mmvdApp.utils import objective_function
from mmvdApp.utils import valid_solution
@pytest.mark.utils
@pytest.mark.linprog
def test_objective_function(states1):
"""
Test if ``utils.linprog.objective_function`` correctly calculates expected
objective function value.
"""... |
78bd5327d990fc3d8777b0f9b0c156799baf5298 | CHANGELOG.md | CHANGELOG.md | - Fixed wrong parse error type returned by `GenericParser.unexpected()`
- Added missing guard statement to prevent crash in `UnicodeScalar.fromUInt32()`
- Added `ClosedInterval` variant of `ParsecType.oneOf()`
- Migration to Swift 2.2
- Internal code improvement
- Increased tests coverage
- Documentation improvement |
- Migrated source code to Swift 3.0
- Now Support Swift Package Manager
- Improved files and source code layout
- More documentation
## Performance
A benchmark was added to test the performance of the library.
An internal design modification greatly improved the parsing speed and memory
usage. Before the modificati... | Update change log for SwiftParsec 2.0 | Update change log for SwiftParsec 2.0
| Markdown | bsd-2-clause | davedufresne/SwiftParsec,davedufresne/SwiftParsec,davedufresne/SwiftParsec | markdown | ## Code Before:
- Fixed wrong parse error type returned by `GenericParser.unexpected()`
- Added missing guard statement to prevent crash in `UnicodeScalar.fromUInt32()`
- Added `ClosedInterval` variant of `ParsecType.oneOf()`
- Migration to Swift 2.2
- Internal code improvement
- Increased tests coverage
- Documentatio... |
07d0cafdf2018e8789e4e0671eb0ccc8bbc5c186 | contrib/sendmail/mail.local/pathnames.h | contrib/sendmail/mail.local/pathnames.h | /*-
* Copyright (c) 1998 Sendmail, Inc. All rights reserved.
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
*
* By using this file, you agree to the terms and conditions set
* forth in the LICENSE file which can be found at the top level of
* the sendmail distrib... | /*-
* Copyright (c) 1998 Sendmail, Inc. All rights reserved.
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
*
* By using this file, you agree to the terms and conditions set
* forth in the LICENSE file which can be found at the top level of
* the sendmail distrib... | Change location of temporary file from /tmp to /var/tmp. This is a repeat of an earlier commit which apparently got lost with the last import. It helps solve the frequently reported problem | Change location of temporary file from /tmp to /var/tmp. This is a
repeat of an earlier commit which apparently got lost with the last
import. It helps solve the frequently reported problem
pid 4032 (mail.local), uid 0 on /: file system full
(though there appears to be a lot of space) caused by idiots sending
30... | C | bsd-3-clause | jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase | c | ## Code Before:
/*-
* Copyright (c) 1998 Sendmail, Inc. All rights reserved.
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
*
* By using this file, you agree to the terms and conditions set
* forth in the LICENSE file which can be found at the top level of
* the ... |
dd2646122915e148f23a26bc7c8fcee076311bbc | app/views/repos/index.html.erb | app/views/repos/index.html.erb | <h1>Listing repos</h1>
<table>
<thead>
<tr>
<th>Name</th>
</tr>
</thead>
<tbody>
<% @repos.each do |repo| %>
<tr>
<td><%= link_to repo.full_name, issues_path(org: repo_full_name_to_org(repo.full_name), repo: repo_full_name_to_name(repo.full_name)) %></td>
</tr>
<% end %... | <h1>Listing repos</h1>
<table class="table">
<thead>
<tr>
<th>Name</th>
</tr>
</thead>
<tbody>
<% @repos.each do |repo| %>
<tr>
<td><%= link_to repo.full_name, issues_path(org: repo_full_name_to_org(repo.full_name), repo: repo_full_name_to_name(repo.full_name)) %></td>
</tr... | Add style to repos index | Add style to repos index
| HTML+ERB | mit | ajsharma/monologue,ajsharma/monologue,ajsharma/monologue,ajsharma/monologue | html+erb | ## Code Before:
<h1>Listing repos</h1>
<table>
<thead>
<tr>
<th>Name</th>
</tr>
</thead>
<tbody>
<% @repos.each do |repo| %>
<tr>
<td><%= link_to repo.full_name, issues_path(org: repo_full_name_to_org(repo.full_name), repo: repo_full_name_to_name(repo.full_name)) %></td>
</... |
457d6747dbdb4a45a32e8c804f2219c7eebb048c | .travis.yml | .travis.yml | sudo: false
language: ruby
# Needed for rainbow 2.2.1 / rubygems issues.
before_install:
- |
if [[ "$(ruby -e 'puts RUBY_VERSION')" != 1.* ]]; then gem update --system; fi
rvm:
- 1.9.3
- 2.3.8
- 2.4.5
- 2.5.3
- 2.6.0
- jruby-9.1.5.0
| sudo: false
language: ruby
# Needed for rainbow 2.2.1 / rubygems issues.
before_install:
- |
if [[ "$(ruby -e 'puts RUBY_VERSION')" != 1.* ]]; then gem update --system; fi
rvm:
- 2.3.8
- 2.4.5
- 2.5.3
- 2.6.0
- jruby-9.1.5.0
| Remove support for Ruby 1.9.3 and update current versions | Remove support for Ruby 1.9.3 and update current versions
Ruby < 2.0 has been EOL'd over 3 years ago, and we want to use kwargs,
so we're dropping support for it.
Signed-off-by: Daniel Magliola <89d49b6744ccc763daa8041f77a567a08347f890@gocardless.com>
| YAML | apache-2.0 | prometheus/client_ruby | yaml | ## Code Before:
sudo: false
language: ruby
# Needed for rainbow 2.2.1 / rubygems issues.
before_install:
- |
if [[ "$(ruby -e 'puts RUBY_VERSION')" != 1.* ]]; then gem update --system; fi
rvm:
- 1.9.3
- 2.3.8
- 2.4.5
- 2.5.3
- 2.6.0
- jruby-9.1.5.0
## Instruction:
Remove support for Ruby 1.9.3 and up... |
7730cc9a11fdf5df33a7012e87c699a363a344af | public/modules/campaigns/filter/campaign.expirydate.filter.js | public/modules/campaigns/filter/campaign.expirydate.filter.js | 'use strict';
angular.module('campaign').filter('daysflt', function() {
return function days(value) {
var filteredDay;
console.log(value);
if(value.hoursLeft) {
if(value.hoursLeft <= 1){
filteredDay = 1 + ' Hour';
}
else {
filteredDay = value.hoursLeft + ' Hours';
}... | 'use strict';
angular.module('campaign').filter('daysflt', function() {
return function days(value) {
var filteredDay;
console.log(value);
if(value.hoursLeft) {
if(value.hoursLeft <= 1){
filteredDay = 1 + ' Hour';
}
else {
filteredDay = value.hoursLeft + ' Hours';
}... | Remove unneeded value for campaign 'Days Left' | Remove unneeded value for campaign 'Days Left'
| JavaScript | mit | andela/mando,hisabimbola/mando,andela/mando,hisabimbola/mando,andela/mando,hisabimbola/mando | javascript | ## Code Before:
'use strict';
angular.module('campaign').filter('daysflt', function() {
return function days(value) {
var filteredDay;
console.log(value);
if(value.hoursLeft) {
if(value.hoursLeft <= 1){
filteredDay = 1 + ' Hour';
}
else {
filteredDay = value.hoursLeft + '... |
8c6630881746abf6cd6cf8324003d8099b1b4d97 | config/initializers/attachment_fu_file_mime_type.rb | config/initializers/attachment_fu_file_mime_type.rb |
module Technoweenie::AttachmentFu::InstanceMethods
def uploaded_data_with_unix_file_mime_type=(file_data)
tmp_file = self.uploaded_data_without_unix_file_mime_type=(file_data)
if tmp_file.present? && (unix_file = `which file`.chomp).present? && File.exists?(unix_file)
`#{ unix_file } -v` =~ /^file-(.*... |
module Technoweenie::AttachmentFu::InstanceMethods
def uploaded_data_with_unix_file_mime_type=(file_data)
tmp_file = self.uploaded_data_without_unix_file_mime_type=(file_data)
if tmp_file.present? && (unix_file = `which file`.chomp).present? && File.exists?(unix_file)
`#{ unix_file } -v 2>&1` =~ /^fil... | Make unix_file_mime_type compatible with file versions < 5 | Make unix_file_mime_type compatible with file versions < 5
| Ruby | agpl-3.0 | ging/vcc,ging/vcc,fbottin/mconf-web,amreis/mconf-web,amreis/mconf-web,ging/vcc,lfzawacki/mconf-web,mconf-ufrgs/mconf-web,mconf-rnp/mconf-web,mconf-ufrgs/mconf-web,mconf-rnp/mconf-web,amreis/mconf-web,fbottin/mconf-web,akratech/Akraconference,mconf-rnp/mconf-web,mconftec/mconf-web-santacasa,arrivu/web-conf,arrivu/web-co... | ruby | ## Code Before:
module Technoweenie::AttachmentFu::InstanceMethods
def uploaded_data_with_unix_file_mime_type=(file_data)
tmp_file = self.uploaded_data_without_unix_file_mime_type=(file_data)
if tmp_file.present? && (unix_file = `which file`.chomp).present? && File.exists?(unix_file)
`#{ unix_file } -... |
621a058c04302262982d5bedd0a0cd89800946d7 | styles/ui/editor.styl | styles/ui/editor.styl | editor-tag(color=color-primary, color-text=#fff)
background color
padding 2px
margin 0 -2px
border-radius()
color color-text
editor
min-height 460px
display block
border-radius()
&.ace_editor
line-height 26px
font-size 15px
.ace_content .ace_line
... | editor-tag(color=color-primary, color-text=#fff)
background color
padding 2px
margin 0 -2px
border-radius()
color color-text
editor
min-height 460px
display block
border-radius()
&.ace_editor
line-height 26px
font-size 15px
.ace_content .ace_line
... | Make line number less relevant | Make line number less relevant
| Stylus | mit | tancredi/draw,tancredi/draw,tancredi/draw | stylus | ## Code Before:
editor-tag(color=color-primary, color-text=#fff)
background color
padding 2px
margin 0 -2px
border-radius()
color color-text
editor
min-height 460px
display block
border-radius()
&.ace_editor
line-height 26px
font-size 15px
.ace_content .ace... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.