commit stringlengths 40 40 | old_file stringlengths 4 184 | new_file stringlengths 4 184 | old_contents stringlengths 1 3.6k | new_contents stringlengths 5 3.38k | subject stringlengths 15 778 | message stringlengths 16 6.74k | lang stringclasses 201
values | license stringclasses 13
values | repos stringlengths 6 116k | config stringclasses 201
values | content stringlengths 137 7.24k | diff stringlengths 26 5.55k | diff_length int64 1 123 | relative_diff_length float64 0.01 89 | n_lines_added int64 0 108 | n_lines_deleted int64 0 106 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
95cbf8e26d0794bc1da3f7dbd876bc3da04bd107 | .travis.yml | .travis.yml | language: c
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y libavutil-dev libavcodec-dev libavformat-dev libavresample-dev
script:
- cmake . && cmake --build .
- make test
compiler:
- gcc
- clang
| language: c
addons:
apt:
packages:
- libavutil-dev
- libavcodec-dev
- libavformat-dev
- libavresample-dev
script:
- cmake . && cmake --build .
- make test
compiler:
- gcc
- clang
| Use Travis-CI docker infrastructure, which makes build run faster | Use Travis-CI docker infrastructure, which makes build run faster
| YAML | mit | Polochon-street/bliss,Polochon-street/bliss,Phyks/bliss,Polochon-street/bliss,Phyks/bliss | yaml | ## Code Before:
language: c
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y libavutil-dev libavcodec-dev libavformat-dev libavresample-dev
script:
- cmake . && cmake --build .
- make test
compiler:
- gcc
- clang
## Instruction:
Use Travis-CI docker infrastructure, which makes build ... | language: c
- before_install:
- - sudo apt-get update -qq
- - sudo apt-get install -y libavutil-dev libavcodec-dev libavformat-dev libavresample-dev
+ addons:
+ apt:
+ packages:
+ - libavutil-dev
+ - libavcodec-dev
+ - libavformat-dev
+ - libavresample-dev
... | 10 | 1 | 7 | 3 |
7723715d8e996d9389f0961571ba663b6016029a | bin/password.bat | bin/password.bat | @echo off
if "%OS%" == "Windows_NT" setlocal
if not defined JAVA_HOME goto no_java_home
if not defined VTPASS_HOME goto no_vtpass_home
set JAVA=%JAVA_HOME%\bin\java
set PASS_JAR=%VTPASS_HOME%\jars\vt-password-${project.version}.jar
set CLASSPATH=%LIBDIR%\vt-dictionary-3.0-SNAPSHOT.jar;%LIBDIR%\vt-crypt-2.1.1.jar;%L... | @echo off
if "%OS%" == "Windows_NT" setlocal
if not defined JAVA_HOME goto no_java_home
if not defined VTPASS_HOME goto no_vtpass_home
set JAVA=%JAVA_HOME%\bin\java
set PASS_JAR=%VTPASS_HOME%\jars\vt-password-${project.version}.jar
set LIBDIR=%VTPASS_HOME%\lib
set CLASSPATH=%LIBDIR%\vt-dictionary-3.0.jar;%LIBDIR%\v... | Update script for latest vt-dictionary. | Update script for latest vt-dictionary.
| Batchfile | apache-2.0 | dfish3r/vt-password,dfish3r/vt-password | batchfile | ## Code Before:
@echo off
if "%OS%" == "Windows_NT" setlocal
if not defined JAVA_HOME goto no_java_home
if not defined VTPASS_HOME goto no_vtpass_home
set JAVA=%JAVA_HOME%\bin\java
set PASS_JAR=%VTPASS_HOME%\jars\vt-password-${project.version}.jar
set CLASSPATH=%LIBDIR%\vt-dictionary-3.0-SNAPSHOT.jar;%LIBDIR%\vt-cr... | @echo off
if "%OS%" == "Windows_NT" setlocal
if not defined JAVA_HOME goto no_java_home
if not defined VTPASS_HOME goto no_vtpass_home
set JAVA=%JAVA_HOME%\bin\java
set PASS_JAR=%VTPASS_HOME%\jars\vt-password-${project.version}.jar
+ set LIBDIR=%VTPASS_HOME%\lib
- set CLASSPATH=%LIBDIR%\vt-dicti... | 3 | 0.130435 | 2 | 1 |
90a94b1d511aa17f167d783992fe0f874ad529c1 | examples/python_interop/python_interop.py | examples/python_interop/python_interop.py |
from __future__ import print_function
import legion
@legion.task
def f(ctx):
print("inside task f")
@legion.task
def main_task(ctx):
print("%x" % legion.c.legion_runtime_get_executing_processor(ctx.runtime, ctx.context).id)
f(ctx)
|
from __future__ import print_function
import legion
@legion.task
def f(ctx, *args):
print("inside task f%s" % (args,))
@legion.task
def main_task(ctx):
print("inside main()")
f(ctx, 1, "asdf", True)
| Test Python support for arguments. | examples: Test Python support for arguments.
| Python | apache-2.0 | StanfordLegion/legion,StanfordLegion/legion,StanfordLegion/legion,StanfordLegion/legion,StanfordLegion/legion,StanfordLegion/legion,StanfordLegion/legion,StanfordLegion/legion | python | ## Code Before:
from __future__ import print_function
import legion
@legion.task
def f(ctx):
print("inside task f")
@legion.task
def main_task(ctx):
print("%x" % legion.c.legion_runtime_get_executing_processor(ctx.runtime, ctx.context).id)
f(ctx)
## Instruction:
examples: Test Python support for argume... |
from __future__ import print_function
import legion
@legion.task
- def f(ctx):
+ def f(ctx, *args):
? +++++++
- print("inside task f")
+ print("inside task f%s" % (args,))
? ++ +++++++++ +
@legion.task
def main_task(ctx):
- print("%x" % legion.c.legio... | 8 | 0.615385 | 4 | 4 |
5a9573a4b361ae9c92ac529d47d19e6d7f7af59a | scripts/switch-clang-version.sh | scripts/switch-clang-version.sh |
if [ -z "$1" ]; then
exit
fi
export LLVM_VERSION=$1
sudo rm /usr/bin/llvm-config
sudo rm /usr/lib/x86_64-linux-gnu/libclang.so
sudo apt-get install -y clang-$LLVM_VERSION libclang1-$LLVM_VERSION libclang-$LLVM_VERSION-dev llvm-$LLVM_VERSION llvm-$LLVM_VERSION-dev llvm-$LLVM_VERSION-runtime libclang-common-$LLVM_VER... |
if [ -z "$1" ]; then
exit
fi
export CODENAME=$(lsb_release --codename --short)
export LLVM_VERSION=$1
# Add repositories
sudo add-apt-repository --enable-source "deb http://llvm.org/apt/${CODENAME}/ llvm-toolchain-${CODENAME}-${LLVM_VERSION} main"
sudo apt-get update
sudo rm /usr/bin/llvm-config
sudo rm /usr/lib/x... | Add clang repository for each version | Add clang repository for each version
| Shell | mit | zimmski/go-clang-phoenix,zimmski/go-clang-phoenix | shell | ## Code Before:
if [ -z "$1" ]; then
exit
fi
export LLVM_VERSION=$1
sudo rm /usr/bin/llvm-config
sudo rm /usr/lib/x86_64-linux-gnu/libclang.so
sudo apt-get install -y clang-$LLVM_VERSION libclang1-$LLVM_VERSION libclang-$LLVM_VERSION-dev llvm-$LLVM_VERSION llvm-$LLVM_VERSION-dev llvm-$LLVM_VERSION-runtime libclang-... |
if [ -z "$1" ]; then
exit
fi
+ export CODENAME=$(lsb_release --codename --short)
export LLVM_VERSION=$1
+
+ # Add repositories
+ sudo add-apt-repository --enable-source "deb http://llvm.org/apt/${CODENAME}/ llvm-toolchain-${CODENAME}-${LLVM_VERSION} main"
+ sudo apt-get update
sudo rm /usr/bin/llvm... | 5 | 0.416667 | 5 | 0 |
8030eb6fbc974c1fdcab19535c637c60e1fb276a | app/views/sessions/login.html.erb | app/views/sessions/login.html.erb | <%= form_for(:user, html: {class: "small-6 small-centered columns"}) do |f| %>
<%= f.label :email %>
<%= f.text_field :email %>
<%= f.label :password %>
<%= f.text_field :password %>
<%= f.submit "Login" %>
<% end %>
| <%= form_for(:user, html: {class: "small-6 small-centered columns"}) do |f| %>
<%= f.label :email %>
<%= f.text_field :email %>
<%= f.label :password %>
<%= f.text_field :password %>
<%= f.submit "Login", :class => "button radius" %>
<% end %>
| Update login button with style | Update login button with style
| HTML+ERB | mit | jjparseghian/only_chai_proto,jjparseghian/only_chai_proto,jjparseghian/only_chai_proto | html+erb | ## Code Before:
<%= form_for(:user, html: {class: "small-6 small-centered columns"}) do |f| %>
<%= f.label :email %>
<%= f.text_field :email %>
<%= f.label :password %>
<%= f.text_field :password %>
<%= f.submit "Login" %>
<% end %>
## Instruction:
Update login button with style
##... | <%= form_for(:user, html: {class: "small-6 small-centered columns"}) do |f| %>
<%= f.label :email %>
<%= f.text_field :email %>
<%= f.label :password %>
<%= f.text_field :password %>
- <%= f.submit "Login" %>
+ <%= f.submit "Login", :class => "button radius" %>
... | 2 | 0.222222 | 1 | 1 |
734c85c0ed13c6316966022930128b03a774f900 | api-error.js | api-error.js | 'use strict';
var inherits = require('inherits');
inherits(APIError, Error);
module.exports = APIError;
function APIError (error, request) {
if (!(this instanceof APIError)) {
return new APIError(error);
}
this.name = error.sys.id;
this.message = [request.method, request.uri, formatMessage(error)].join(' '... | 'use strict';
var inherits = require('inherits');
inherits(APIError, Error);
module.exports = APIError;
function APIError (error, request) {
if (!(this instanceof APIError)) {
return new APIError(error);
}
this.name = error.sys.id;
this.message = [request.method, request.uri, formatMessage(error)].join(' '... | Add single-line-stringified error to error.message case | Add single-line-stringified error to error.message case
| JavaScript | mit | contentful/contentful-management.js,contentful/contentful-management.js | javascript | ## Code Before:
'use strict';
var inherits = require('inherits');
inherits(APIError, Error);
module.exports = APIError;
function APIError (error, request) {
if (!(this instanceof APIError)) {
return new APIError(error);
}
this.name = error.sys.id;
this.message = [request.method, request.uri, formatMessage(... | 'use strict';
var inherits = require('inherits');
inherits(APIError, Error);
module.exports = APIError;
function APIError (error, request) {
if (!(this instanceof APIError)) {
return new APIError(error);
}
this.name = error.sys.id;
this.message = [request.method, request.uri, formatMe... | 2 | 0.046512 | 1 | 1 |
0e98bc0417a6f25504dad5c8d224fb758a12c791 | src/Client/Configuration/Macros.hs | src/Client/Configuration/Macros.hs | {-# LANGUAGE ApplicativeDo, OverloadedStrings #-}
{-|
Module : Client.Configuration.Macros
Description : Configuration schema for macros
Copyright : (c) Eric Mertens, 2017
License : ISC
Maintainer : emertens@gmail.com
-}
module Client.Configuration.Macros
( macroMapSpec
, macroCommandSpec
) where
... | {-# LANGUAGE ApplicativeDo, OverloadedStrings #-}
{-|
Module : Client.Configuration.Macros
Description : Configuration schema for macros
Copyright : (c) Eric Mertens, 2017
License : ISC
Maintainer : emertens@gmail.com
-}
module Client.Configuration.Macros
( macroMapSpec
, macroCommandSpec
) where
... | Allow single command in macro-commands | Allow single command in macro-commands
| Haskell | isc | glguy/irc-core,dolio/irc-core,glguy/irc-core,glguy/irc-core,dolio/irc-core,dolio/irc-core | haskell | ## Code Before:
{-# LANGUAGE ApplicativeDo, OverloadedStrings #-}
{-|
Module : Client.Configuration.Macros
Description : Configuration schema for macros
Copyright : (c) Eric Mertens, 2017
License : ISC
Maintainer : emertens@gmail.com
-}
module Client.Configuration.Macros
( macroMapSpec
, macroCommand... | {-# LANGUAGE ApplicativeDo, OverloadedStrings #-}
{-|
Module : Client.Configuration.Macros
Description : Configuration schema for macros
Copyright : (c) Eric Mertens, 2017
License : ISC
Maintainer : emertens@gmail.com
-}
module Client.Configuration.Macros
( macroMapSpec
, ... | 6 | 0.157895 | 3 | 3 |
75949a62feb0fbbac42afb2fa0914d1e8cc47e33 | config/locales/en.yml | config/locales/en.yml |
en:
hello: "Hello world"
# responders gem
flash:
actions:
create:
success: "%{resource_name} was successfully created."
update:
success: "%{resource_name} was successfully updated."
destroy:
success: "%{resource_name} was successfully destroyed."
danger: "%{resource_name} could... |
en:
hello: "Hello world"
helpers:
label:
profile:
secondary_email: 'Alternate e-mail'
total_years: 'Total years of study'
| Move responders localization, add form label localizations | Move responders localization, add form label localizations
| YAML | mit | jrhorn424/recruiter,jrhorn424/recruiter | yaml | ## Code Before:
en:
hello: "Hello world"
# responders gem
flash:
actions:
create:
success: "%{resource_name} was successfully created."
update:
success: "%{resource_name} was successfully updated."
destroy:
success: "%{resource_name} was successfully destroyed."
danger: "%{reso... |
en:
hello: "Hello world"
+ helpers:
+ label:
+ profile:
+ secondary_email: 'Alternate e-mail'
+ total_years: 'Total years of study'
-
- # responders gem
- flash:
- actions:
- create:
- success: "%{resource_name} was successfully created."
- update:
- success: ... | 16 | 1.142857 | 5 | 11 |
b421d632c3154a219019571d23a9af71ad58e197 | app/controllers/sessions_controller.rb | app/controllers/sessions_controller.rb | class SessionsController < ApplicationController
def create
user = User.auth_case_insens(params[:email], params[:password])
if user
session[:user_id] = user.id
return_to = session.delete(:return_to)
redirect_to(return_to || my_url, notice: 'Logged in.')
else
flash[:error] = 'Login... | class SessionsController < ApplicationController
def create
user = User.auth_case_insens(params[:email], params[:password])
if user
login(user)
else
flash[:error] = 'Login failed.'
render :new
end
end
def destroy
if session[:user_id]
session.delete :user_id
red... | Move login code to its own method. | Move login code to its own method.
| Ruby | mit | mmb/meme_captain_web,mmb/meme_captain_web,mmb/meme_captain_web,mmb/meme_captain_web | ruby | ## Code Before:
class SessionsController < ApplicationController
def create
user = User.auth_case_insens(params[:email], params[:password])
if user
session[:user_id] = user.id
return_to = session.delete(:return_to)
redirect_to(return_to || my_url, notice: 'Logged in.')
else
flash[... | class SessionsController < ApplicationController
def create
user = User.auth_case_insens(params[:email], params[:password])
if user
+ login(user)
- session[:user_id] = user.id
- return_to = session.delete(:return_to)
- redirect_to(return_to || my_url, notice: 'Logged in.')
... | 12 | 0.5 | 9 | 3 |
7b37efdfa368f739fad70cab64310b475b76661b | docs/source/api_reference/marker_cluster.rst | docs/source/api_reference/marker_cluster.rst | Marker Cluster
==============
Example
-------
.. code::
from ipyleaflet import Map, Marker, MarkerCluster
m = Map(center=(50, 354), zoom=5)
marker1 = Marker(location=(50, 354))
marker2 = Marker(location=(52, 356))
marker3 = Marker(location=(48, 352))
marker_cluster = MarkerCluster(
... | Marker Cluster
==============
Example
-------
.. code::
from ipyleaflet import Map, Marker, MarkerCluster
m = Map(center=(50, 0), zoom=5)
marker1 = Marker(location=(48, -2))
marker2 = Marker(location=(50, 0))
marker3 = Marker(location=(52, 2))
marker_cluster = MarkerCluster(
marker... | Change example longitudes to more reasonable values inside (-180, 180) | Change example longitudes to more reasonable values inside (-180, 180)
| reStructuredText | mit | ellisonbg/leafletwidget,ellisonbg/leafletwidget,ellisonbg/ipyleaflet,ellisonbg/ipyleaflet | restructuredtext | ## Code Before:
Marker Cluster
==============
Example
-------
.. code::
from ipyleaflet import Map, Marker, MarkerCluster
m = Map(center=(50, 354), zoom=5)
marker1 = Marker(location=(50, 354))
marker2 = Marker(location=(52, 356))
marker3 = Marker(location=(48, 352))
marker_cluster = Marker... | Marker Cluster
==============
Example
-------
.. code::
from ipyleaflet import Map, Marker, MarkerCluster
- m = Map(center=(50, 354), zoom=5)
? ^^^
+ m = Map(center=(50, 0), zoom=5)
? ^
- marker1 = Marker(location=(50, 354))
- ... | 8 | 0.25 | 4 | 4 |
92de971285137229eb8a4fbe94ef0de7841bef88 | src/components/GlobalSearch.scss | src/components/GlobalSearch.scss | @import '../styles/colors';
.gs-input-wrapper {
display: inline-block;
width: 100%;
padding: 0;
position: relative;
}
.gs-input-wrapper::after {
background-color: $gh-box-fill-color;
display: inline-block;
font-family: FontAwesome;
color: white;
content: "\f002";
padding: 8px 10px;
height: 37px ... | @import '../styles/colors';
.gs-input-wrapper {
display: inline-block;
width: 100%;
padding: 0;
position: relative;
}
.gs-input-wrapper::after {
background-color: $gh-box-fill-color;
display: inline-block;
font-family: FontAwesome;
color: white;
content: "\f002";
padding: 8px 13px;
height: 37px ... | Make the search icon better match the drop down icons on the header widgets by removing the left border and adjusting its size. | Make the search icon better match the drop down icons on the header widgets by removing the left border and adjusting its size.
| SCSS | bsd-3-clause | FiviumAustralia/RNSH-Pilot,FiviumAustralia/RNSH-Pilot,FiviumAustralia/RNSH-Pilot | scss | ## Code Before:
@import '../styles/colors';
.gs-input-wrapper {
display: inline-block;
width: 100%;
padding: 0;
position: relative;
}
.gs-input-wrapper::after {
background-color: $gh-box-fill-color;
display: inline-block;
font-family: FontAwesome;
color: white;
content: "\f002";
padding: 8px 10px;... | @import '../styles/colors';
.gs-input-wrapper {
display: inline-block;
width: 100%;
padding: 0;
position: relative;
}
.gs-input-wrapper::after {
background-color: $gh-box-fill-color;
display: inline-block;
font-family: FontAwesome;
color: white;
content: "\f002";
- pa... | 3 | 0.090909 | 2 | 1 |
c0204cf718377783ebd14bfab04d9ab15ed53216 | lib/slackMessage.js | lib/slackMessage.js | const RESPONSE_PUBLIC = 'in_channel';
const RESPONSE_PRIVATE = 'ephemeral';
// Required names for slack
/*eslint-disable camelcase */
const baseResponse = {
parse: 'full',
text: '',
unfurl_media: true
};
/*eslint-enable camelcase */
function getImageAttachment(image) {
// Required names for sla... | const RESPONSE_PUBLIC = 'in_channel';
const RESPONSE_PRIVATE = 'ephemeral';
const baseResponse = {
// Required names for slack
/*eslint-disable camelcase */
parse: 'full',
text: '',
unfurl_media: true
/*eslint-enable camelcase */
};
function getImageAttachment(image) {
// Required names for ... | Tidy up the eslint excludes | chore: Tidy up the eslint excludes
| JavaScript | mit | bmds/SlackXWingCardCmd | javascript | ## Code Before:
const RESPONSE_PUBLIC = 'in_channel';
const RESPONSE_PRIVATE = 'ephemeral';
// Required names for slack
/*eslint-disable camelcase */
const baseResponse = {
parse: 'full',
text: '',
unfurl_media: true
};
/*eslint-enable camelcase */
function getImageAttachment(image) {
// Requir... | const RESPONSE_PUBLIC = 'in_channel';
const RESPONSE_PRIVATE = 'ephemeral';
- // Required names for slack
- /*eslint-disable camelcase */
const baseResponse = {
+ // Required names for slack
+ /*eslint-disable camelcase */
parse: 'full',
text: '',
unfurl_media: true
+ /*eslint-en... | 6 | 0.157895 | 3 | 3 |
f153c277ad0dd29c8c04a8cca90fe41d290b0e2b | _protected/framework/Layout/Form/Engine/PFBC/Validation.php | _protected/framework/Layout/Form/Engine/PFBC/Validation.php | <?php
/**
* Many changes have been made in this file.
* By Pierre-Henry SORIA.
*/
namespace PFBC;
use PH7\Framework\Security\Validate\Validate;
abstract class Validation extends Base
{
protected $oValidate, $message;
public function __construct($message = '')
{
$this->oValidate = new Validate... | <?php
/**
* Many changes have been made in this file.
* By Pierre-Henry SORIA.
*/
namespace PFBC;
use PH7\Framework\Security\Validate\Validate;
abstract class Validation extends Base
{
protected $oValidate, $message;
public function __construct($message = '')
{
$this->oValidate = new Validate... | Replace is_null with strict identical operator | [Optimization:Speed] Replace is_null with strict identical operator
| PHP | mit | pH7Software/pH7-Social-Dating-CMS,pH7Software/pH7-Social-Dating-CMS,pH7Software/pH7-Social-Dating-CMS,pH7Software/pH7-Social-Dating-CMS | php | ## Code Before:
<?php
/**
* Many changes have been made in this file.
* By Pierre-Henry SORIA.
*/
namespace PFBC;
use PH7\Framework\Security\Validate\Validate;
abstract class Validation extends Base
{
protected $oValidate, $message;
public function __construct($message = '')
{
$this->oValidat... | <?php
/**
* Many changes have been made in this file.
* By Pierre-Henry SORIA.
*/
namespace PFBC;
use PH7\Framework\Security\Validate\Validate;
abstract class Validation extends Base
{
protected $oValidate, $message;
public function __construct($message = '')
{
... | 2 | 0.057143 | 1 | 1 |
adc886313ce5b308ab72982be1fdbba9681ae7f3 | README.md | README.md | gpuush
======
This is a very basic puush.me client for linux written in golang.
**gpuush** can either use imagemagick's import command to select an area/window to upload or upload a file from command line.
The protocol has been reverse engineering in order to upload files without the official client, which does not... | gpuush
======
This is a very basic puush.me client for linux written in golang.
**gpuush** can either use imagemagick's import command to select an area/window to upload or upload a file from command line.
The protocol has been reverse engineering in order to upload files without the official client, which does not... | Update readme to contain configuration info | Update readme to contain configuration info
| Markdown | mit | xthexder/gpuush | markdown | ## Code Before:
gpuush
======
This is a very basic puush.me client for linux written in golang.
**gpuush** can either use imagemagick's import command to select an area/window to upload or upload a file from command line.
The protocol has been reverse engineering in order to upload files without the official client... | gpuush
======
This is a very basic puush.me client for linux written in golang.
**gpuush** can either use imagemagick's import command to select an area/window to upload or upload a file from command line.
The protocol has been reverse engineering in order to upload files without the official client, ... | 7 | 0.291667 | 7 | 0 |
b5337fa5cf373ef169ce014d0303106f0db5e01c | example_app_generator/generate_action_mailer_specs.rb | example_app_generator/generate_action_mailer_specs.rb | require 'active_support'
require 'active_support/core_ext/module'
using_source_path(File.expand_path(__dir__)) do
# Comment out the default mailer stuff
comment_lines 'config/environments/development.rb', /action_mailer/
comment_lines 'config/environments/test.rb', /action_mailer/
initializer 'action_mailer.r... | require 'active_support'
require 'active_support/core_ext/module'
using_source_path(File.expand_path(__dir__)) do
# Comment out the default mailer stuff
comment_lines 'config/environments/development.rb', /action_mailer/
comment_lines 'config/environments/test.rb', /action_mailer/
initializer 'action_mailer.r... | Replace deprecated parent method with module_parent | Replace deprecated parent method with module_parent
| Ruby | mit | rspec/rspec-rails,rspec/rspec-rails,rspec/rspec-rails | ruby | ## Code Before:
require 'active_support'
require 'active_support/core_ext/module'
using_source_path(File.expand_path(__dir__)) do
# Comment out the default mailer stuff
comment_lines 'config/environments/development.rb', /action_mailer/
comment_lines 'config/environments/test.rb', /action_mailer/
initializer ... | require 'active_support'
require 'active_support/core_ext/module'
using_source_path(File.expand_path(__dir__)) do
# Comment out the default mailer stuff
comment_lines 'config/environments/development.rb', /action_mailer/
comment_lines 'config/environments/test.rb', /action_mailer/
initialize... | 17 | 0.548387 | 11 | 6 |
029b9de65f189345ec8ef630757aa1f2e280007a | parity-top/src/main/java/org/jvirtanen/parity/top/MarketListener.java | parity-top/src/main/java/org/jvirtanen/parity/top/MarketListener.java | package org.jvirtanen.parity.top;
/**
* <code>MarketListener</code> is the interface for outbound events from the
* order book reconstruction.
*/
public interface MarketListener {
/**
* An event indicating that the best bid and offer (BBO) has changed.
*
* @param instrument the instrument
*... | package org.jvirtanen.parity.top;
/**
* The interface for outbound events from the order book reconstruction.
*/
public interface MarketListener {
/**
* An event indicating that the best bid and offer (BBO) has changed.
*
* @param instrument the instrument
* @param bidPrice the bid price or ... | Tweak documentation for market listener in order book reconstruction | Tweak documentation for market listener in order book reconstruction
| Java | apache-2.0 | pmcs/parity,pmcs/parity,paritytrading/parity,paritytrading/parity | java | ## Code Before:
package org.jvirtanen.parity.top;
/**
* <code>MarketListener</code> is the interface for outbound events from the
* order book reconstruction.
*/
public interface MarketListener {
/**
* An event indicating that the best bid and offer (BBO) has changed.
*
* @param instrument the i... | package org.jvirtanen.parity.top;
/**
+ * The interface for outbound events from the order book reconstruction.
- * <code>MarketListener</code> is the interface for outbound events from the
- * order book reconstruction.
*/
public interface MarketListener {
/**
* An event indicating that ... | 3 | 0.1 | 1 | 2 |
1dcacbc8a960279db61610185b7155719f5046d5 | find-core/src/main/public/static/js/find/app/pages.js | find-core/src/main/public/static/js/find/app/pages.js | /*
* Copyright 2014-2015 Hewlett-Packard Development Company, L.P.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
*/
define([
'find/app/find-pages',
'find/app/page/find-search',
'find/app/page/find-settings-page',
'i18n!find/nls/bun... | /*
* Copyright 2014-2015 Hewlett-Packard Development Company, L.P.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
*/
define([
'find/app/find-pages',
'find/app/page/find-settings-page',
'i18n!find/nls/bundle'
], function(FindPages, Setti... | Remove unnecessary import [rev: minor] | Remove unnecessary import [rev: minor]
| JavaScript | mit | hpautonomy/find,hpautonomy/find,LinkPowerHK/find,hpe-idol/find,hpe-idol/find,LinkPowerHK/find,hpe-idol/find,hpautonomy/find,LinkPowerHK/find,LinkPowerHK/find,hpe-idol/find,hpautonomy/find,hpe-idol/java-powerpoint-report,hpe-idol/java-powerpoint-report,LinkPowerHK/find,hpautonomy/find,hpe-idol/find | javascript | ## Code Before:
/*
* Copyright 2014-2015 Hewlett-Packard Development Company, L.P.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
*/
define([
'find/app/find-pages',
'find/app/page/find-search',
'find/app/page/find-settings-page',
'i... | /*
* Copyright 2014-2015 Hewlett-Packard Development Company, L.P.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
*/
define([
'find/app/find-pages',
- 'find/app/page/find-search',
'find/app/page/find-settings-page',
... | 3 | 0.125 | 1 | 2 |
6ffef37cd27e45733479ec3b652c09ff030b9557 | roles/firewall/tasks/main.yml | roles/firewall/tasks/main.yml | ---
- name: Firewall
block:
- name: Install iptables
apt:
state: present
name:
- iptables
- netfilter-persistent
- iptables-persistent
- name: Put ip4tables
template: src=ip4tables.j2 dest='/etc/iptables/rules.v4'
notify:
- restart netf... | ---
- name: Firewall
block:
- name: Install iptables
apt:
state: present
name:
- iptables
- netfilter-persistent
- iptables-persistent
- name: Put ip4tables
template: src=ip4tables.j2 dest='/etc/iptables/rules.v4'
notify:
- restart netf... | Fix to prevent configuration of a firewall in the case of VMs. This was previously blocked only for Docker configuration | Fix to prevent configuration of a firewall in the case of VMs. This was previously blocked only for Docker configuration
| YAML | apache-2.0 | SURFscz/SCZ-deploy,SURFscz/SCZ-deploy,SURFscz/SCZ-deploy,SURFscz/SCZ-deploy | yaml | ## Code Before:
---
- name: Firewall
block:
- name: Install iptables
apt:
state: present
name:
- iptables
- netfilter-persistent
- iptables-persistent
- name: Put ip4tables
template: src=ip4tables.j2 dest='/etc/iptables/rules.v4'
notify:
... | ---
- name: Firewall
block:
- name: Install iptables
apt:
state: present
name:
- iptables
- netfilter-persistent
- iptables-persistent
- name: Put ip4tables
template: src=ip4tables.j2 dest='/etc/iptables/rules.v4'
... | 2 | 0.076923 | 1 | 1 |
5796a54d10eb3baebda51e3420a818a251406a5c | python/test.py | python/test.py | import sys
from PyQt5 import QtWidgets
from QHexEdit import QHexEdit, QHexEditData
class HexEdit(QHexEdit):
def __init__(self, fileName=None):
super(HexEdit, self).__init__()
file = open(fileName)
data = file.read()
self.setData(data)
self.setReadOnly(False)
if __name__ ... | import sys
from PyQt5 import QtWidgets, QtGui
from QHexEdit import QHexEdit, QHexEditData
if __name__ == '__main__':
app = QtWidgets.QApplication(sys.argv)
# QHexEditData* hexeditdata = QHexEditData::fromFile("test.py");
hexeditdata = QHexEditData.fromFile('test.py')
# QHexEdit* hexedit = new QHexEdi... | Test more stuff in python | Test more stuff in python
| Python | mit | parallaxinc/QHexEdit,parallaxinc/QHexEdit | python | ## Code Before:
import sys
from PyQt5 import QtWidgets
from QHexEdit import QHexEdit, QHexEditData
class HexEdit(QHexEdit):
def __init__(self, fileName=None):
super(HexEdit, self).__init__()
file = open(fileName)
data = file.read()
self.setData(data)
self.setReadOnly(False... | import sys
- from PyQt5 import QtWidgets
+ from PyQt5 import QtWidgets, QtGui
? +++++++
from QHexEdit import QHexEdit, QHexEditData
-
-
- class HexEdit(QHexEdit):
-
- def __init__(self, fileName=None):
- super(HexEdit, self).__init__()
- file = open(fileName)
- ... | 30 | 1.071429 | 13 | 17 |
323b195642bab258001da6b0a85ca998e8697d3d | static/js/submit.js | static/js/submit.js | $(document).ready(function()
{
$("#invite-form").on('submit', function()
{
var inviteeEmail = $("#email").val();
console.log(inviteeEmail)
if (!inviteeEmail || !inviteeEmail.length) {
alert('Please enter an email');
return false;
}
$.ajax({... | $(document).ready(function()
{
$("#invite-form").on('submit', function()
{
var inviteeEmail = $("#email").val();
console.log(inviteeEmail)
if (!inviteeEmail || !inviteeEmail.length) {
alert('Please enter an email');
return false;
}
$.ajax({... | Use Materialize toasts to show the status | Use Materialize toasts to show the status
| JavaScript | mit | avinassh/slackipy,avinassh/slackipy,avinassh/slackipy | javascript | ## Code Before:
$(document).ready(function()
{
$("#invite-form").on('submit', function()
{
var inviteeEmail = $("#email").val();
console.log(inviteeEmail)
if (!inviteeEmail || !inviteeEmail.length) {
alert('Please enter an email');
return false;
}
... | $(document).ready(function()
{
$("#invite-form").on('submit', function()
{
var inviteeEmail = $("#email").val();
console.log(inviteeEmail)
if (!inviteeEmail || !inviteeEmail.length) {
alert('Please enter an email');
return false;
... | 3 | 0.083333 | 2 | 1 |
76f901532fdc63aab1c0c19a1b25895e5ba6ca56 | tests/verify.sh | tests/verify.sh |
repo_dir="`dirname $0`/.."
original="$repo_dir/original/spamsum"
spamspy="$repo_dir/spamsum/spamsum.py"
target_files="original/spamsum.c LICENSE README.md tests/data/*"
(cd "$repo_dir/original"; make)
for target_file in $target_files; do
echo -n "Comparing $target_file - "
target_file="$repo_dir/$target_f... |
repo_dir="`dirname $0`/.."
cd "$repo_dir"
original=original/spamsum
spamspy=spamsum/spamsum.py
target_files="original/spamsum.c LICENSE README.md tests/data/*"
(cd original/; make)
for target_file in $target_files; do
echo -n "Comparing $target_file - "
original_out=`$original $target_file`
spamspy_o... | Verify does not depend on current directory | Verify does not depend on current directory
| Shell | mit | barahilia/spamspy,barahilia/spamspy,barahilia/spamspy | shell | ## Code Before:
repo_dir="`dirname $0`/.."
original="$repo_dir/original/spamsum"
spamspy="$repo_dir/spamsum/spamsum.py"
target_files="original/spamsum.c LICENSE README.md tests/data/*"
(cd "$repo_dir/original"; make)
for target_file in $target_files; do
echo -n "Comparing $target_file - "
target_file="$re... |
repo_dir="`dirname $0`/.."
+ cd "$repo_dir"
- original="$repo_dir/original/spamsum"
? ----------- -
+ original=original/spamsum
- spamspy="$repo_dir/spamsum/spamsum.py"
? ----------- -
+ spamspy=spamsum/spamsum.py
target_files="original/spamsum.c LICENSE R... | 8 | 0.32 | 4 | 4 |
63decb5e6f6f94447d752d94931bc704575967e0 | due/Oscilloscope/README.md | due/Oscilloscope/README.md |
Oscilloscope in XY mode can be used as a vector monitor. The beam is then controlled directly by two analog signals applied to X and Y inputs.
[<img src="https://github.com/cazacov/Arduino/blob/master/due/Oscilloscope/Documentation/Overview_en.png?raw=true" alt="Arduino DACs control oscilloscope" width="800" height=... |
Oscilloscope in XY mode can be used as a vector monitor. The beam is then controlled directly by two analog signals applied to X and Y inputs.
[<img src="https://github.com/cazacov/Arduino/blob/master/due/Oscilloscope/Documentation/Overview_en.png?raw=true" alt="Arduino DACs control oscilloscope" width="800" height=... | Add link to youtube video | Add link to youtube video
| Markdown | mit | cazacov/Arduino,cazacov/Arduino | markdown | ## Code Before:
Oscilloscope in XY mode can be used as a vector monitor. The beam is then controlled directly by two analog signals applied to X and Y inputs.
[<img src="https://github.com/cazacov/Arduino/blob/master/due/Oscilloscope/Documentation/Overview_en.png?raw=true" alt="Arduino DACs control oscilloscope" wid... |
Oscilloscope in XY mode can be used as a vector monitor. The beam is then controlled directly by two analog signals applied to X and Y inputs.
[<img src="https://github.com/cazacov/Arduino/blob/master/due/Oscilloscope/Documentation/Overview_en.png?raw=true" alt="Arduino DACs control oscilloscope" width="800"... | 2 | 0.2 | 1 | 1 |
afa24a55bbceca98c07f360f792485614937bb93 | rt/01-ext.ll | rt/01-ext.ll | declare i8* @malloc(i64)
declare void @free(i8*)
declare i64 @write(i32, i8*, i64)
declare i32 @asprintf(i8**, i8*, ...)
declare void @llvm.memcpy.p0i8.p0i8.i64(i8*, i8*, i64, i32, i1)
%IBool = type { i64 (i8*, i1*)* }
%IBool.wrap = type { %IBool*, i8* }
%str = type { i1, i64, i8* }
%IStr = type { i64 (i8*, %str*)* }... | declare i8* @malloc(i64)
declare void @free(i8*)
declare i64 @write(i32, i8*, i64)
declare i32 @asprintf(i8**, i8*, ...)
declare i32 @printf(i8*, ...)
declare void @llvm.memcpy.p0i8.p0i8.i64(i8*, i8*, i64, i32, i1)
%IBool = type { i64 (i8*, i1*)* }
%IBool.wrap = type { %IBool*, i8* }
%str = type { i1, i64, i8* }
%ISt... | Add some stuff to help debugging memory issues. | Add some stuff to help debugging memory issues.
| LLVM | mit | djc/runa,djc/runa,djc/runa,djc/runa | llvm | ## Code Before:
declare i8* @malloc(i64)
declare void @free(i8*)
declare i64 @write(i32, i8*, i64)
declare i32 @asprintf(i8**, i8*, ...)
declare void @llvm.memcpy.p0i8.p0i8.i64(i8*, i8*, i64, i32, i1)
%IBool = type { i64 (i8*, i1*)* }
%IBool.wrap = type { %IBool*, i8* }
%str = type { i1, i64, i8* }
%IStr = type { i64... | declare i8* @malloc(i64)
declare void @free(i8*)
declare i64 @write(i32, i8*, i64)
declare i32 @asprintf(i8**, i8*, ...)
+ declare i32 @printf(i8*, ...)
declare void @llvm.memcpy.p0i8.p0i8.i64(i8*, i8*, i64, i32, i1)
%IBool = type { i64 (i8*, i1*)* }
%IBool.wrap = type { %IBool*, i8* }
%str = type... | 12 | 0.545455 | 10 | 2 |
482d865f9913650f4057100950db6614cc2c2330 | .travis.yml | .travis.yml | language: ruby
install:
- bundle
- bundle exec rake db:migrate RAILS_ENV=test
script:
- cucumber
branches:
only:
- master
| language: ruby
install:
- bundle
- bundle exec rake db:migrate RAILS_ENV=test
- git config --global user.name "Example User"
- git config --global user.email "user@example.com"
script:
- cucumber
branches:
only:
- master
| Add example Git user info | Add example Git user info
| YAML | mit | oponder/big-gollum,501st-alpha1/big-gollum,501st-alpha1/big-gollum,oponder/big-gollum,oponder/big-gollum,501st-alpha1/big-gollum | yaml | ## Code Before:
language: ruby
install:
- bundle
- bundle exec rake db:migrate RAILS_ENV=test
script:
- cucumber
branches:
only:
- master
## Instruction:
Add example Git user info
## Code After:
language: ruby
install:
- bundle
- bundle exec rake db:migrate RAILS_ENV=test
- git config --global user.... | language: ruby
install:
- bundle
- bundle exec rake db:migrate RAILS_ENV=test
+ - git config --global user.name "Example User"
+ - git config --global user.email "user@example.com"
script:
- cucumber
branches:
only:
- master | 2 | 0.222222 | 2 | 0 |
2df1b7da323b75692fed7db2697d021b9fe5e0c6 | deploy-aws.js | deploy-aws.js | /**
* aws - deploys "earth" files to AWS S3
*/
"use strict";
var util = require("util");
var tool = require("./tool");
var aws = require("./aws");
console.log("============================================================");
console.log(new Date().toISOString() + " - Starting");
// UNDONE: delete objects in S3 but... | /**
* aws - deploys "earth" files to AWS S3
*/
"use strict";
var util = require("util");
var tool = require("./tool");
var aws = require("./aws");
console.log("============================================================");
console.log(new Date().toISOString() + " - Starting");
// UNDONE: delete objects in S3 but... | Define M+ font subset that contains only those characters necessary for the site. | Define M+ font subset that contains only those characters necessary for the site.
| JavaScript | mit | awdesch/earth,gardart/earth,sobetn/earth,DougFirErickson/earth,ianynchen/earth,Colbey/earth,bernardodiasc/earth,cambecc/earth,fengxw/earth,Colbey/earth,ianynchen/earth,icedwater/earth,jaythaceo/earth,bernardodiasc/earth,chenr6/earth,grahamrobbo/demojam14,icedwater/earth,fuchao2012/earth,m-funky/earth,Colbey/earth,fucha... | javascript | ## Code Before:
/**
* aws - deploys "earth" files to AWS S3
*/
"use strict";
var util = require("util");
var tool = require("./tool");
var aws = require("./aws");
console.log("============================================================");
console.log(new Date().toISOString() + " - Starting");
// UNDONE: delete o... | /**
* aws - deploys "earth" files to AWS S3
*/
"use strict";
var util = require("util");
var tool = require("./tool");
var aws = require("./aws");
console.log("============================================================");
console.log(new Date().toISOString() + " - Starting");
// UNDO... | 1 | 0.027778 | 1 | 0 |
62bdec3e2ffa390b0eb4d5467c369ba9c47c4dcc | README.md | README.md | Precircuit a Vectorworks plot using the most efficient pairing of lights and dimmers.
## Binary Download
[<img src="http://precircuiter.harryshamansky.com/appstore.svg">](https://itunes.apple.com/us/app/precircuiter/id1041643812?ls=1&mt=12)
## Caveats
- Precircuiter needs to know where outlets are. These must be adde... | Precircuit a Vectorworks plot using the most efficient pairing of lights and dimmers.
## Binary Download
[<img src="http://harryshamansky.com/precircuiter/appstore.svg">](https://itunes.apple.com/us/app/precircuiter/id1041643812?ls=1&mt=12)
## Caveats
- Precircuiter needs to know where outlets are. These must be adde... | Update binary download button image URL in readme | Update binary download button image URL in readme
| Markdown | mit | shamanskyh/Precircuiter,shamanskyh/Precircuiter | markdown | ## Code Before:
Precircuit a Vectorworks plot using the most efficient pairing of lights and dimmers.
## Binary Download
[<img src="http://precircuiter.harryshamansky.com/appstore.svg">](https://itunes.apple.com/us/app/precircuiter/id1041643812?ls=1&mt=12)
## Caveats
- Precircuiter needs to know where outlets are. Th... | Precircuit a Vectorworks plot using the most efficient pairing of lights and dimmers.
## Binary Download
- [<img src="http://precircuiter.harryshamansky.com/appstore.svg">](https://itunes.apple.com/us/app/precircuiter/id1041643812?ls=1&mt=12)
? -------------
+ [<img src="http://harryshamansky.... | 2 | 0.222222 | 1 | 1 |
b8839302c0a4d8ada99a695f8829027fa433e05e | zerver/migrations/0232_make_archive_transaction_field_not_nullable.py | zerver/migrations/0232_make_archive_transaction_field_not_nullable.py | from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('zerver', '0231_add_archive_transaction_model'),
]
operations = [
migrations.RunSQL("DELETE FROM zerver_archiveduser... | from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
"""
Tables cannot have data deleted from them and be altered in a single transaction,
but we need the DELETEs to be atomic together. So we set atomic=Fal... | Fix migration making archive_transaction field not null. | retention: Fix migration making archive_transaction field not null.
DELETing from archive tables and ALTERing ArchivedMessage needs to be
split into separate transactions.
zerver_archivedattachment_messages needs to be cleared out before
zerver_archivedattachment.
| Python | apache-2.0 | eeshangarg/zulip,shubhamdhama/zulip,zulip/zulip,brainwane/zulip,synicalsyntax/zulip,eeshangarg/zulip,andersk/zulip,hackerkid/zulip,hackerkid/zulip,timabbott/zulip,zulip/zulip,timabbott/zulip,synicalsyntax/zulip,tommyip/zulip,tommyip/zulip,rht/zulip,andersk/zulip,rishig/zulip,rht/zulip,timabbott/zulip,brainwane/zulip,ee... | python | ## Code Before:
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('zerver', '0231_add_archive_transaction_model'),
]
operations = [
migrations.RunSQL("DELETE FROM zer... | from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
-
class Migration(migrations.Migration):
+ """
+ Tables cannot have data deleted from them and be altered in a single transaction,
+ but we need the DELETEs to be atomic together.... | 25 | 0.961538 | 17 | 8 |
24abf5759883beff7e6c101eb06d1a4d076695c7 | appveyor.yml | appveyor.yml | init:
- git config --global core.autocrlf input
environment:
matrix:
- nodejs_version: "0.12"
- nodejs_version: "4"
- nodejs_version: "5"
- nodejs_version: "6"
- nodejs_version: "7"
skip_tags: true
platform:
- x86
- x64
version: "{build}"
build: off
install:
- ps: Install-Product node $env:nod... | init:
- git config --global core.autocrlf input
environment:
matrix:
- nodejs_version: "0.12"
- nodejs_version: "4"
- nodejs_version: "5"
- nodejs_version: "6"
- nodejs_version: "7"
skip_tags: true
version: "{build}"
build: off
install:
- ps: Install-Product node $env:nodejs_version
- set PATH=%A... | Drop platform in Appveyor, really too long to test | Drop platform in Appveyor, really too long to test
| YAML | mit | srod/node-minify | yaml | ## Code Before:
init:
- git config --global core.autocrlf input
environment:
matrix:
- nodejs_version: "0.12"
- nodejs_version: "4"
- nodejs_version: "5"
- nodejs_version: "6"
- nodejs_version: "7"
skip_tags: true
platform:
- x86
- x64
version: "{build}"
build: off
install:
- ps: Install-Produ... | init:
- git config --global core.autocrlf input
environment:
matrix:
- nodejs_version: "0.12"
- nodejs_version: "4"
- nodejs_version: "5"
- nodejs_version: "6"
- nodejs_version: "7"
skip_tags: true
- platform:
- - x86
- - x64
-
version: "{build}"
build: off
in... | 6 | 0.2 | 1 | 5 |
ec448b60e22e8fd830e13ba7138aa5ebc26ca3fa | app/models/government.rb | app/models/government.rb | class Government < ActiveRecord::Base
validates :name, presence: true, uniqueness: true
validates :slug, presence: true, uniqueness: true
validates :start_date, presence: true
has_many :documents
before_validation on: :create do |government|
government.slug = government.name.to_s.parameterize
end
s... | class Government < ActiveRecord::Base
validates :name, presence: true, uniqueness: true
validates :slug, presence: true, uniqueness: true
validates :start_date, presence: true
before_validation on: :create do |government|
government.slug = government.name.to_s.parameterize
end
scope :current, -> { ord... | Remove unused association on Government | Remove unused association on Government
This association is not used anywhere in the app. Getting rid of it
as a pre step to refactoring the derivation of government on editions.
| Ruby | mit | askl56/whitehall,ggoral/whitehall,robinwhittleton/whitehall,robinwhittleton/whitehall,YOTOV-LIMITED/whitehall,alphagov/whitehall,alphagov/whitehall,hotvulcan/whitehall,alphagov/whitehall,robinwhittleton/whitehall,hotvulcan/whitehall,askl56/whitehall,ggoral/whitehall,YOTOV-LIMITED/whitehall,robinwhittleton/whitehall,YOT... | ruby | ## Code Before:
class Government < ActiveRecord::Base
validates :name, presence: true, uniqueness: true
validates :slug, presence: true, uniqueness: true
validates :start_date, presence: true
has_many :documents
before_validation on: :create do |government|
government.slug = government.name.to_s.paramet... | class Government < ActiveRecord::Base
validates :name, presence: true, uniqueness: true
validates :slug, presence: true, uniqueness: true
validates :start_date, presence: true
-
- has_many :documents
before_validation on: :create do |government|
government.slug = government.name.to_s.param... | 2 | 0.111111 | 0 | 2 |
881141cf06d2f4b2e2adad2a97116811b2a5b17b | lib/capistrano-info/capistrano.rb | lib/capistrano-info/capistrano.rb | Capistrano::Configuration.instance.load do
namespace :info do
desc <<-DESC
Tail all or a single remote file
The logfile can be specified with a LOGFILE-environment variable.
It defaults to RAILS_ENV.log
DESC
task :tail, :roles => :app do
ENV["LOGFILE"] ||= "#{fetch(:rails_env, 'producti... | Capistrano::Configuration.instance.load do
namespace :info do
desc <<-DESC
Tail all or a single remote file
The logfile can be specified with a LOGFILE-environment variable.
It defaults to RAILS_ENV.log
DESC
task :tail, :roles => :app do
ENV["LOGFILE"] ||= "#{fetch(:rails_env, 'producti... | Handle "failed" reading of VERSION-file silently | Handle "failed" reading of VERSION-file silently
| Ruby | mit | kronn/capistrano-info | ruby | ## Code Before:
Capistrano::Configuration.instance.load do
namespace :info do
desc <<-DESC
Tail all or a single remote file
The logfile can be specified with a LOGFILE-environment variable.
It defaults to RAILS_ENV.log
DESC
task :tail, :roles => :app do
ENV["LOGFILE"] ||= "#{fetch(:rail... | Capistrano::Configuration.instance.load do
namespace :info do
desc <<-DESC
Tail all or a single remote file
The logfile can be specified with a LOGFILE-environment variable.
It defaults to RAILS_ENV.log
DESC
task :tail, :roles => :app do
ENV["LOGFILE"] ||= "#{fetch(:... | 6 | 0.113208 | 5 | 1 |
3a59ae67834165ec18dc85563992ae58f9c38969 | test/std/atomics/atomics.types.operations/atomics.types.operations.req/ctor.pass.cpp | test/std/atomics/atomics.types.operations/atomics.types.operations.req/ctor.pass.cpp | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | Mark this test as XFAIL with older compilers, since they hit PR18097 | Mark this test as XFAIL with older compilers, since they hit PR18097
git-svn-id: 756ef344af921d95d562d9e9f9389127a89a6314@242967 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx,llvm-mirror/libcxx | c++ | ## Code Before:
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===------------------------... | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===------------------------... | 4 | 0.071429 | 4 | 0 |
730db8392e67363ea657fde22e3e5705738934a9 | tests/Transport/fsockopen.php | tests/Transport/fsockopen.php | <?php
class RequestsTest_Transport_fsockopen extends RequestsTest_Transport_Base {
protected $transport = 'Requests_Transport_fsockopen';
public function testHTTPS() {
// If OpenSSL isn't loaded, this should fail
if (!defined('OPENSSL_VERSION_NUMBER')) {
$this->setExpectedException('Requests_Exception');
}... | <?php
class RequestsTest_Transport_fsockopen extends RequestsTest_Transport_Base {
protected $transport = 'Requests_Transport_fsockopen';
public function testHTTPS() {
// If OpenSSL isn't loaded, this should fail
if (!defined('OPENSSL_VERSION_NUMBER')) {
$this->setExpectedException('Requests_Exception');
}... | Remove closure for 5.2 and 5.3 support | Remove closure for 5.2 and 5.3 support
| PHP | bsd-3-clause | meox/Requests,dskanth/Requests,andreipetcu/Requests,ifwe/Requests,mubassirhayat/Requests,meox/Requests,meox/Requests | php | ## Code Before:
<?php
class RequestsTest_Transport_fsockopen extends RequestsTest_Transport_Base {
protected $transport = 'Requests_Transport_fsockopen';
public function testHTTPS() {
// If OpenSSL isn't loaded, this should fail
if (!defined('OPENSSL_VERSION_NUMBER')) {
$this->setExpectedException('Requests_... | <?php
class RequestsTest_Transport_fsockopen extends RequestsTest_Transport_Base {
protected $transport = 'Requests_Transport_fsockopen';
public function testHTTPS() {
// If OpenSSL isn't loaded, this should fail
if (!defined('OPENSSL_VERSION_NUMBER')) {
$this->setExpectedException('Request... | 13 | 0.448276 | 7 | 6 |
33c7bd546236497aae9b0c96d6ae4c41f317a00e | saau/sections/transportation/data.py | saau/sections/transportation/data.py | from operator import itemgetter
from itertools import chain
from typing import List
from ...utils.py3_hook import with_hook
with with_hook():
from arcrest import Catalog
import numpy as np
def get_layers(service):
layers = service.layers
return {
layer.name: layer
for layer in layers
... | from operator import itemgetter
from itertools import chain
from typing import List
import cgi
from urllib.parse import parse_qs
from ...utils.py3_hook import with_hook
with with_hook():
from arcrest import Catalog
import numpy as np
cgi.parse_qs = parse_qs
def get_layers(service):
layers = service.layer... | Patch missing method on cgi package | Patch missing method on cgi package
| Python | mit | Mause/statistical_atlas_of_au | python | ## Code Before:
from operator import itemgetter
from itertools import chain
from typing import List
from ...utils.py3_hook import with_hook
with with_hook():
from arcrest import Catalog
import numpy as np
def get_layers(service):
layers = service.layers
return {
layer.name: layer
for lay... | from operator import itemgetter
from itertools import chain
from typing import List
+
+ import cgi
+ from urllib.parse import parse_qs
from ...utils.py3_hook import with_hook
with with_hook():
from arcrest import Catalog
import numpy as np
+
+
+ cgi.parse_qs = parse_qs
def get_layers(... | 6 | 0.117647 | 6 | 0 |
1016d5481d3dd72571fbfe060d8b8eb4783a66e3 | src/Oro/Bundle/UIBundle/Resources/public/blank/scss/components/page-content.scss | src/Oro/Bundle/UIBundle/Resources/public/blank/scss/components/page-content.scss | // @theme: blank
.page-content {
width: $page-content-width;
@include clearfix();
&--has-sidebar {
padding: $page-content-with-sidebar-inner-offset;
order: $page-content-with-sidebar-order;
}
}
@include breakpoint('desktop') {
.page-content {
&--has-sidebar {
... | // @theme: blank
.page-content {
width: $page-content-width;
@include clearfix();
&--has-sidebar {
padding: $page-content-with-sidebar-inner-offset;
order: $page-content-with-sidebar-order;
}
}
@include breakpoint('desktop') {
.page-content {
&--has-sidebar {
... | Order History - page is broken after click "Select All" in "Manage Grid" popup in Firefox browser | BB-7983: Order History - page is broken after click "Select All" in "Manage Grid" popup in Firefox browser
| SCSS | mit | orocrm/platform,Djamy/platform,Djamy/platform,Djamy/platform,orocrm/platform,orocrm/platform,geoffroycochard/platform,geoffroycochard/platform,geoffroycochard/platform | scss | ## Code Before:
// @theme: blank
.page-content {
width: $page-content-width;
@include clearfix();
&--has-sidebar {
padding: $page-content-with-sidebar-inner-offset;
order: $page-content-with-sidebar-order;
}
}
@include breakpoint('desktop') {
.page-content {
&--has-s... | // @theme: blank
.page-content {
width: $page-content-width;
@include clearfix();
&--has-sidebar {
padding: $page-content-with-sidebar-inner-offset;
order: $page-content-with-sidebar-order;
}
}
@include breakpoint('desktop') {
.page-content {
... | 2 | 0.064516 | 0 | 2 |
7eab1d3486ba89cda4d0ff2bb70d6af9c3fdfc57 | test/00/t0034a.sh | test/00/t0034a.sh |
here=`pwd`
if test $? -ne 0; then exit 2; fi
tmp=/tmp/$$
mkdir $tmp
if test $? -ne 0; then exit 2; fi
cd $tmp
if test $? -ne 0; then exit 2; fi
fail()
{
echo "FAILED" 1>&2
cd $here
chmod -R u+w $tmp
rm -rf $tmp
exit 1
}
pass()
{
echo "PASSED" 1>&2
cd $here
chmod -R u+w $tmp
rm -r... |
here=`pwd`
if test $? -ne 0; then exit 2; fi
tmp=/tmp/$$
mkdir $tmp
if test $? -ne 0; then exit 2; fi
cd $tmp
if test $? -ne 0; then exit 2; fi
fail()
{
echo "FAILED" 1>&2
cd $here
chmod -R u+w $tmp
rm -rf $tmp
exit 1
}
pass()
{
echo "PASSED" 1>&2
cd $here
chmod -R u+w $tmp
rm -r... | Add xvfb line into test script | Add xvfb line into test script
| Shell | mit | highperformancecoder/ecolab,highperformancecoder/ecolab,highperformancecoder/ecolab,highperformancecoder/ecolab | shell | ## Code Before:
here=`pwd`
if test $? -ne 0; then exit 2; fi
tmp=/tmp/$$
mkdir $tmp
if test $? -ne 0; then exit 2; fi
cd $tmp
if test $? -ne 0; then exit 2; fi
fail()
{
echo "FAILED" 1>&2
cd $here
chmod -R u+w $tmp
rm -rf $tmp
exit 1
}
pass()
{
echo "PASSED" 1>&2
cd $here
chmod -R u+... |
here=`pwd`
if test $? -ne 0; then exit 2; fi
tmp=/tmp/$$
mkdir $tmp
if test $? -ne 0; then exit 2; fi
cd $tmp
if test $? -ne 0; then exit 2; fi
fail()
{
echo "FAILED" 1>&2
cd $here
chmod -R u+w $tmp
rm -rf $tmp
exit 1
}
pass()
{
echo "PASSED" 1>&2
... | 3 | 0.083333 | 2 | 1 |
641092d5cdb87924c2a486bb95fb2f750f7b21c0 | README.md | README.md |
Synchronize remote files with local directory.
# Installation
If you don't have `pipsi` installed, you can find
the instructions to install it [here](https://github.com/mitsuhiko/pipsi#readme).
Otherwise, simply run:
$ pipsi install .
Note: `pipsi` relies on `pip` and `virtualenv` which may need to be insta... |
Synchronize remote files with local directory.
# Installation
If you don't have `pipsi` installed, you can find
the instructions to install it [here](https://github.com/mitsuhiko/pipsi#readme).
Otherwise, simply run:
$ pipsi install .
Note: `pipsi` depends on [pip](https://github.com/pypa/pip) and [virtuale... | Update to Installation and Conflict | Update to Installation and Conflict
| Markdown | mit | Jvlythical/KoDrive,Jvlythical/KoDrive | markdown | ## Code Before:
Synchronize remote files with local directory.
# Installation
If you don't have `pipsi` installed, you can find
the instructions to install it [here](https://github.com/mitsuhiko/pipsi#readme).
Otherwise, simply run:
$ pipsi install .
Note: `pipsi` relies on `pip` and `virtualenv` which may ... |
Synchronize remote files with local directory.
# Installation
If you don't have `pipsi` installed, you can find
the instructions to install it [here](https://github.com/mitsuhiko/pipsi#readme).
Otherwise, simply run:
$ pipsi install .
- Note: `pipsi` relies on `pip` and `virtualenv... | 9 | 0.333333 | 8 | 1 |
5f3859a3b1e672874e035984dcc79d1e77405c63 | README.md | README.md | Cecil
=====
Mono.Cecil is a library to generate and inspect programs and libraries in the ECMA CIL form.
To put it simply, you can use Cecil to:
* Analyze .NET binaries using a simple and powerful object model, without having to load assemblies to use Reflection.
* Modify .NET binaries, add new metadata structures a... | Cecil
=====
Mono.Cecil is a library to generate and inspect programs and libraries in the ECMA CIL form.
To put it simply, you can use Cecil to:
* Analyze .NET binaries using a simple and powerful object model, without having to load assemblies to use Reflection.
* Modify .NET binaries, add new metadata structures a... | Add link to the devlog | Add link to the devlog
| Markdown | mit | SiliconStudio/Mono.Cecil,saynomoo/cecil,ttRevan/cecil,mono/cecil,gluck/cecil,cgourlay/cecil,kzu/cecil,jbevain/cecil,furesoft/cecil,fnajera-rac-de/cecil,sailro/cecil | markdown | ## Code Before:
Cecil
=====
Mono.Cecil is a library to generate and inspect programs and libraries in the ECMA CIL form.
To put it simply, you can use Cecil to:
* Analyze .NET binaries using a simple and powerful object model, without having to load assemblies to use Reflection.
* Modify .NET binaries, add new metad... | Cecil
=====
Mono.Cecil is a library to generate and inspect programs and libraries in the ECMA CIL form.
To put it simply, you can use Cecil to:
* Analyze .NET binaries using a simple and powerful object model, without having to load assemblies to use Reflection.
* Modify .NET binaries, add new met... | 6 | 0.315789 | 4 | 2 |
a528d6b800144f46e2ec1be111323496b6d906bc | lib/manage_engine/app_manager/api/version11.rb | lib/manage_engine/app_manager/api/version11.rb | module ManageEngine
module AppManager
module Api
class Version11
attr_reader :connect_path
def connect_path
"/AppManager/xml/ListDashboards?apikey=%{api_key}"
end
def connect_response_valid?(response)
doc = Nokogiri::XML response
status = doc.x... | module ManageEngine
module AppManager
module Api
class Version11
attr_reader :connect_path
###########################
# URL Response Methods
###########################
def connect_path
"/AppManager/xml/ListDashboards?apikey=%{api_key}"
end
... | Update Version11 Class for hosts and host_path | Update Version11 Class for hosts and host_path
Update the Version11 class to include the hosts method and host_path.
| Ruby | mit | jekhokie/manage-engine-app-manager | ruby | ## Code Before:
module ManageEngine
module AppManager
module Api
class Version11
attr_reader :connect_path
def connect_path
"/AppManager/xml/ListDashboards?apikey=%{api_key}"
end
def connect_response_valid?(response)
doc = Nokogiri::XML response
... | module ManageEngine
module AppManager
module Api
class Version11
attr_reader :connect_path
+ ###########################
+ # URL Response Methods
+ ###########################
+
def connect_path
"/AppManager/xml/ListDashboards?apikey=%{api_... | 27 | 1.35 | 27 | 0 |
657c9cd539f474c475aeeea0d90c2342083e46a4 | CMakeLists.txt | CMakeLists.txt |
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(ninja)
# Additional CXX/C Flags
SET(ADDITIONAL_C_FLAGS "" CACHE STRING "Additional C Flags")
SET(ADDITIONAL_CXX_FLAGS "" CACHE STRING "Additional CXX Flags")
SET(cflags "-Wno-deprecated")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS_INIT} ${cflags} ${ADDITIONAL_C_FLAGS}")
SET(CMAK... |
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(ninja)
OPTION(BUILD_TESTING "Enable testing" ON)
# Additional CXX/C Flags
SET(ADDITIONAL_C_FLAGS "" CACHE STRING "Additional C Flags")
SET(ADDITIONAL_CXX_FLAGS "" CACHE STRING "Additional CXX Flags")
SET(cflags "-Wno-deprecated")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS_INIT}... | Add BUILD_TESTING option and add "LongSlowBuild" test | Add BUILD_TESTING option and add "LongSlowBuild" test
| Text | apache-2.0 | jcfr/ninja,jcfr/ninja,jcfr/ninja,jcfr/ninja | text | ## Code Before:
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(ninja)
# Additional CXX/C Flags
SET(ADDITIONAL_C_FLAGS "" CACHE STRING "Additional C Flags")
SET(ADDITIONAL_CXX_FLAGS "" CACHE STRING "Additional CXX Flags")
SET(cflags "-Wno-deprecated")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS_INIT} ${cflags} ${ADDITIONAL_C_F... |
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(ninja)
+
+ OPTION(BUILD_TESTING "Enable testing" ON)
# Additional CXX/C Flags
SET(ADDITIONAL_C_FLAGS "" CACHE STRING "Additional C Flags")
SET(ADDITIONAL_CXX_FLAGS "" CACHE STRING "Additional CXX Flags")
SET(cflags "-Wno-deprecated")
SET(CMAKE_C_... | 12 | 0.363636 | 12 | 0 |
30bf3804322184808a6ec29a73d49f13db6fdaf7 | begin/package.json | begin/package.json | {
"private": true,
"devDependencies": {
"gulp": "^3.8.8"
},
"dependencies": {
"babel-core": "^6.3.26",
"babel-plugin-transform-runtime": "^6.3.13",
"babel-preset-es2015": "^6.3.13",
"babel-runtime": "^5.8.34",
"bootstrap-sass": "^3.0.0",
"laravel-elixir": "^4.0.0",
"laravel-elixi... | {
"private": true,
"devDependencies": {
"gulp": "^3.8.8"
},
"dependencies": {
"babel-core": "^6.3.26",
"babel-plugin-transform-runtime": "^6.3.13",
"babel-preset-es2015": "^6.3.13",
"babel-runtime": "^5.8.34",
"blueimp-md5": "^2.1.0",
"bootstrap-sass": "^3.0.0",
"ladda": "^0.9.8"... | Use the facade ability in the application | Use the facade ability in the application
| JSON | mit | rajabishek/begin,rajabishek/begin,rajabishek/begin | json | ## Code Before:
{
"private": true,
"devDependencies": {
"gulp": "^3.8.8"
},
"dependencies": {
"babel-core": "^6.3.26",
"babel-plugin-transform-runtime": "^6.3.13",
"babel-preset-es2015": "^6.3.13",
"babel-runtime": "^5.8.34",
"bootstrap-sass": "^3.0.0",
"laravel-elixir": "^4.0.0",
... | {
"private": true,
"devDependencies": {
"gulp": "^3.8.8"
},
"dependencies": {
"babel-core": "^6.3.26",
"babel-plugin-transform-runtime": "^6.3.13",
"babel-preset-es2015": "^6.3.13",
"babel-runtime": "^5.8.34",
+ "blueimp-md5": "^2.1.0",
"bootstrap-sass": "^3.0.0... | 2 | 0.095238 | 2 | 0 |
55ae2b505cb2b9d58544cb535e6645a3ec764316 | mobile-tap-targets.html | mobile-tap-targets.html | <!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css">
<title>Andres Castillo</title>
<meta name="viewport" content="width=device-width, initial-scale=invalid-value, unknown-property=1">
<h2>Andres Castillo Ormaechea</h2>
<h3>Developer<span style="c... | <!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css">
<title>Andres Castillo</title>
<meta name="viewport" content="width=device-width, initial-scale=invalid-value, unknown-property=1">
<style>
.triangle-up {
width: 0;
height: 0;
... | Add buttons and links close to eachother | Add buttons and links close to eachother
| HTML | mit | ormaechea/ormaechea.github.io | html | ## Code Before:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css">
<title>Andres Castillo</title>
<meta name="viewport" content="width=device-width, initial-scale=invalid-value, unknown-property=1">
<h2>Andres Castillo Ormaechea</h2>
<h3>Develop... | <!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css">
<title>Andres Castillo</title>
<meta name="viewport" content="width=device-width, initial-scale=invalid-value, unknown-property=1">
+ <style>
+ .triangle-up {
+ width: 0;
+... | 16 | 0.571429 | 13 | 3 |
09e1d2ff59bdbb66944c1235d130b77900eb7918 | snap/snapcraft.yaml | snap/snapcraft.yaml | name: geocoder # you probably want to 'snapcraft register <name>'
version: '1.23.2' # just for humans, typically '1.2+git' or '1.3.2'
summary: Geocoder is a simple and consistent geocoding library.
description: |
Simple and consistent geocoding library written in Python.
Many online providers such as Google & Bing ... | name: geocoder # you probably want to 'snapcraft register <name>'
version: '1.23.2' # just for humans, typically '1.2+git' or '1.3.2'
summary: Geocoder is a simple and consistent geocoding library.
description: |
Simple and consistent geocoding library written in Python.
Many online providers such as Google & Bing ... | Add the network plug to the snap | Add the network plug to the snap
In order to make network requests on a strict snap, it is required to declare the plug. | YAML | mit | DenisCarriere/geocoder | yaml | ## Code Before:
name: geocoder # you probably want to 'snapcraft register <name>'
version: '1.23.2' # just for humans, typically '1.2+git' or '1.3.2'
summary: Geocoder is a simple and consistent geocoding library.
description: |
Simple and consistent geocoding library written in Python.
Many online providers such a... | name: geocoder # you probably want to 'snapcraft register <name>'
version: '1.23.2' # just for humans, typically '1.2+git' or '1.3.2'
summary: Geocoder is a simple and consistent geocoding library.
description: |
Simple and consistent geocoding library written in Python.
Many online providers such as Go... | 1 | 0.052632 | 1 | 0 |
a0632359d6e6c2a91e98a5261d98a957692e99bd | server/methods/projects.js | server/methods/projects.js | Meteor.methods({
addProject: function(project) {
project.createdAt = new Date();
Projects.insert(project);
}
});
| Meteor.methods({
addProject: function(project) {
_.extend(project, {createdAt: new Date()});
Projects.insert(project);
}
});
| Use underscore .extend() to add fields instead of being a moron | Use underscore .extend() to add fields instead of being a moron
| JavaScript | mit | PUMATeam/puma,PUMATeam/puma | javascript | ## Code Before:
Meteor.methods({
addProject: function(project) {
project.createdAt = new Date();
Projects.insert(project);
}
});
## Instruction:
Use underscore .extend() to add fields instead of being a moron
## Code After:
Meteor.methods({
addProject: function(project) {
_.extend(project, {createdA... | Meteor.methods({
addProject: function(project) {
- project.createdAt = new Date();
? ^ ^^
+ _.extend(project, {createdAt: new Date()});
? +++++++++ ^^^ ^ ++
Projects.insert(project);
}
}); | 2 | 0.333333 | 1 | 1 |
b4bf872f784fed5bd56d2abdd5ea1e1339bd2d0a | README.md | README.md | Asp.NET Web API client generator for TypeScript files
This tool help you generating the complete client api in typescript to consume an web api made in .net
It's generate the interface, class and all types needed.
The generate is based on a template mode, wich read the api (.net) and generate the client api... | Asp.NET Web API client generator for TypeScript files
This tool helps you generating the complete client API in TypeScript to consume a Web API made in .NET . It generates interfaces for all the types exposed by the API and classes to request each controller.
The generation is based on the ASP.NET ApiExplorer cl... | Fix the introduction section in Readme.md | Fix the introduction section in Readme.md | Markdown | mit | eberlitz/WebApiClientTS,eberlitz/WebApiClientTS,eberlitz/WebApiClientTS | markdown | ## Code Before:
Asp.NET Web API client generator for TypeScript files
This tool help you generating the complete client api in typescript to consume an web api made in .net
It's generate the interface, class and all types needed.
The generate is based on a template mode, wich read the api (.net) and generat... | Asp.NET Web API client generator for TypeScript files
+ This tool helps you generating the complete client API in TypeScript to consume a Web API made in .NET . It generates interfaces for all the types exposed by the API and classes to request each controller.
+
+ The generation is based on the ASP.NET ApiE... | 15 | 0.535714 | 7 | 8 |
29397c351748ac94bf802ffe52237acb7cccc746 | resources/views/users/beatmapset_activities.blade.php | resources/views/users/beatmapset_activities.blade.php | {{--
Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
See the LICENCE file in the repository root for full licence text.
--}}
@extends('master', [
'titlePrepend' => $user->username,
'pageDescription' => trans('users.show.page_description', ['username... | {{--
Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
See the LICENCE file in the repository root for full licence text.
--}}
@extends('master', [
'titlePrepend' => blade_safe(str_replace(' ', ' ', e($user->username))),
'pageDescription' => page... | Fix user modding page title and description | Fix user modding page title and description
| PHP | agpl-3.0 | nekodex/osu-web,notbakaneko/osu-web,notbakaneko/osu-web,nekodex/osu-web,LiquidPL/osu-web,nanaya/osu-web,nanaya/osu-web,ppy/osu-web,ppy/osu-web,notbakaneko/osu-web,ppy/osu-web,notbakaneko/osu-web,ppy/osu-web,nekodex/osu-web,omkelderman/osu-web,notbakaneko/osu-web,nekodex/osu-web,LiquidPL/osu-web,nanaya/osu-web,omkelderm... | php | ## Code Before:
{{--
Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
See the LICENCE file in the repository root for full licence text.
--}}
@extends('master', [
'titlePrepend' => $user->username,
'pageDescription' => trans('users.show.page_descript... | {{--
Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
See the LICENCE file in the repository root for full licence text.
--}}
@extends('master', [
- 'titlePrepend' => $user->username,
+ 'titlePrepend' => blade_safe(str_replace(' ', ' '... | 4 | 0.125 | 2 | 2 |
d3291512db02304c0948992436817d36f86046fd | stdlib/public/SDK/simd/CMakeLists.txt | stdlib/public/SDK/simd/CMakeLists.txt | add_swift_library(swiftsimd SHARED IS_STDLIB
simd.swift.gyb
SWIFT_COMPILE_FLAGS -Xfrontend -sil-serialize-all
SWIFT_MODULE_DEPENDS Darwin
INSTALL_IN_COMPONENT stdlib)
| add_swift_library(swiftsimd IS_SDK_OVERLAY
simd.swift.gyb
SWIFT_COMPILE_FLAGS -Xfrontend -sil-serialize-all
SWIFT_MODULE_DEPENDS Darwin)
| Make the 'simd' module build like the rest of the overlays. | Make the 'simd' module build like the rest of the overlays.
At one point we were considering it to be a replacement rather than an
overlay, but that's not where we are today. We can revisit that later.
Necessary for next commit.
Swift SVN r29438
| Text | apache-2.0 | airspeedswift/swift,djwbrown/swift,apple/swift,hughbe/swift,hughbe/swift,xedin/swift,IngmarStein/swift,calebd/swift,tinysun212/swift-windows,JaSpa/swift,tardieu/swift,glessard/swift,emilstahl/swift,kentya6/swift,aschwaighofer/swift,arvedviehweger/swift,gregomni/swift,tjw/swift,return/swift,bitjammer/swift,jmgc/swift,ar... | text | ## Code Before:
add_swift_library(swiftsimd SHARED IS_STDLIB
simd.swift.gyb
SWIFT_COMPILE_FLAGS -Xfrontend -sil-serialize-all
SWIFT_MODULE_DEPENDS Darwin
INSTALL_IN_COMPONENT stdlib)
## Instruction:
Make the 'simd' module build like the rest of the overlays.
At one point we were considering it to be a replac... | - add_swift_library(swiftsimd SHARED IS_STDLIB
? ------- - ^^
+ add_swift_library(swiftsimd IS_SDK_OVERLAY
? ++++++ ^^
simd.swift.gyb
SWIFT_COMPILE_FLAGS -Xfrontend -sil-serialize-all
- SWIFT_MODULE_DEPENDS Darwin
+ SWIFT_MODULE_DEPENDS D... | 5 | 0.833333 | 2 | 3 |
a4709d4d9b8d50a2c2bd3b3af1a9005e739d8a21 | src/de/gurkenlabs/litiengine/graphics/PositionLockCamera.java | src/de/gurkenlabs/litiengine/graphics/PositionLockCamera.java | package de.gurkenlabs.litiengine.graphics;
import java.awt.geom.Point2D;
import de.gurkenlabs.litiengine.Game;
import de.gurkenlabs.litiengine.entities.IEntity;
import de.gurkenlabs.litiengine.graphics.animation.IAnimationController;
/**
* The Class LocalPlayerCamera.
*/
public class PositionLockCamera ... | package de.gurkenlabs.litiengine.graphics;
import java.awt.geom.Point2D;
import de.gurkenlabs.litiengine.entities.IEntity;
/**
* The Class LocalPlayerCamera.
*/
public class PositionLockCamera extends Camera {
private final IEntity entity;
public PositionLockCamera(final IEntity entity) {
sup... | Remove the additional handling for the focused entity because this was only a result of the the gameloop having a lower updaterate than the renderloop which causes flickering because the position of entities is not updates as often as it is rendered. | Remove the additional handling for the focused entity because this was only a result of the the gameloop having a lower updaterate than the renderloop which causes flickering because the position of entities is not updates as often as it is rendered.
| Java | mit | gurkenlabs/litiengine,gurkenlabs/litiengine | java | ## Code Before:
package de.gurkenlabs.litiengine.graphics;
import java.awt.geom.Point2D;
import de.gurkenlabs.litiengine.Game;
import de.gurkenlabs.litiengine.entities.IEntity;
import de.gurkenlabs.litiengine.graphics.animation.IAnimationController;
/**
* The Class LocalPlayerCamera.
*/
public class PositionLockCa... | package de.gurkenlabs.litiengine.graphics;
import java.awt.geom.Point2D;
- import de.gurkenlabs.litiengine.Game;
import de.gurkenlabs.litiengine.entities.IEntity;
- import de.gurkenlabs.litiengine.graphics.animation.IAnimationController;
/**
* The Class LocalPlayerCamera.
*/
public class Positi... | 20 | 0.37037 | 0 | 20 |
be856e1f4afaf0e7171aa8edc1b12ab09aa2f24a | README.md | README.md | kramer-python-control
=====================
Simple python-based [Kramer 8x8](http://www.kramerelectronics.com/products/model.asp?pid=387) (and alike) Computer Graphics Video Matrix Switcher; more of a PoC as of now with autoswitch capability, but simple enough to get started.
### Basic protocol syntax
Messages use 4 ... | kramer-python-control
=====================
Simple python-based [Kramer 8x8](http://www.kramerelectronics.com/products/model.asp?pid=387) (and alike) Computer Graphics Video Matrix Switcher (the protocol is called "Protocol 2000"); more of a PoC as of now with autoswitch capability, but simple enough to get started.
... | Add links to kramer helper tools | Add links to kramer helper tools
| Markdown | unlicense | UbiCastTeam/kramer-python-control | markdown | ## Code Before:
kramer-python-control
=====================
Simple python-based [Kramer 8x8](http://www.kramerelectronics.com/products/model.asp?pid=387) (and alike) Computer Graphics Video Matrix Switcher; more of a PoC as of now with autoswitch capability, but simple enough to get started.
### Basic protocol syntax... | kramer-python-control
=====================
- Simple python-based [Kramer 8x8](http://www.kramerelectronics.com/products/model.asp?pid=387) (and alike) Computer Graphics Video Matrix Switcher; more of a PoC as of now with autoswitch capability, but simple enough to get started.
+ Simple python-based [Kramer 8x8]... | 9 | 0.9 | 7 | 2 |
6d113c9716e9c1f629e13d777396a81544e22ad7 | include/automations/lighting.yaml | include/automations/lighting.yaml | - alias: Turn On Living Dusk Devices
trigger:
- platform: event
event_type: button_pressed
event_data:
entity_id: switch.living_wallswitch_left
state: 'on'
action:
- service: light.turn_on
entity_id: group.dusk_living_lights
- service: logbook.log
data:
n... | - alias: Turn On Living Lights
trigger:
- platform: event
event_type: button_pressed
event_data:
entity_id: switch.living_wallswitch_left
state: 'on'
action:
- service: light.turn_on
entity_id: group.living_lights
- service: logbook.log
data:
name: Woonka... | Change from switching dusk to all lights | Change from switching dusk to all lights
| YAML | mit | rtvb/home-assistant-config | yaml | ## Code Before:
- alias: Turn On Living Dusk Devices
trigger:
- platform: event
event_type: button_pressed
event_data:
entity_id: switch.living_wallswitch_left
state: 'on'
action:
- service: light.turn_on
entity_id: group.dusk_living_lights
- service: logbook.log
... | - - alias: Turn On Living Dusk Devices
? ^^ ---------
+ - alias: Turn On Living Lights
? ^^^^^
trigger:
- platform: event
event_type: button_pressed
event_data:
entity_id: switch.living_wallswitch_left
state: 'on'
actio... | 8 | 0.275862 | 4 | 4 |
89b463c5ce29e89bfcf444de9a8d73bc1ad78fc8 | omop_harvest/migrations/0003_avocado_metadata_migration.py | omop_harvest/migrations/0003_avocado_metadata_migration.py | from south.v2 import DataMigration
class Migration(DataMigration):
def forwards(self, orm):
"Perform a 'safe' load using Avocado's backup utilities."
from avocado.core import backup
backup.safe_load(u'0001_avocado_metadata', backup_path=None,
using='default')
def backwards... | from south.v2 import DataMigration
class Migration(DataMigration):
depends_on = (
("avocado", "0031_auto__add_field_dataquery_tree__add_field_datacontext_tree"),
)
def forwards(self, orm):
"Perform a 'safe' load using Avocado's backup utilities."
from avocado.core import backup
... | Add avocado dependency to metadata migration. | Add avocado dependency to metadata migration.
Signed-off-by: Aaron Browne <a437ff1f67cf5e38cd2f6119addad5bba3897ae0@gmail.com>
| Python | bsd-2-clause | chop-dbhi/omop_harvest,chop-dbhi/omop_harvest,chop-dbhi/omop_harvest | python | ## Code Before:
from south.v2 import DataMigration
class Migration(DataMigration):
def forwards(self, orm):
"Perform a 'safe' load using Avocado's backup utilities."
from avocado.core import backup
backup.safe_load(u'0001_avocado_metadata', backup_path=None,
using='default')
... | from south.v2 import DataMigration
class Migration(DataMigration):
+
+ depends_on = (
+ ("avocado", "0031_auto__add_field_dataquery_tree__add_field_datacontext_tree"),
+ )
def forwards(self, orm):
"Perform a 'safe' load using Avocado's backup utilities."
from avocado.... | 4 | 0.307692 | 4 | 0 |
6744ad7a6fec39bde2f002736439f25417416dd6 | client/app/bundles/HelloWorld/components/accounts/new/new_teacher.jsx | client/app/bundles/HelloWorld/components/accounts/new/new_teacher.jsx | 'use strict';
import React from 'react'
import BasicTeacherInfo from './basic_teacher_info'
import EducatorType from './educator_type'
import AnalyticsWrapper from '../../shared/analytics_wrapper'
export default React.createClass({
propTypes: {
signUp: React.PropTypes.func.isRequired,
errors: React.PropType... | 'use strict';
import React from 'react'
import BasicTeacherInfo from './basic_teacher_info'
import EducatorType from './educator_type'
import AnalyticsWrapper from '../../shared/analytics_wrapper'
export default React.createClass({
propTypes: {
signUp: React.PropTypes.func.isRequired,
errors: React.PropType... | Fix newsletter checkbox default state on signup form for teachers | Fix newsletter checkbox default state on signup form for teachers
| JSX | 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 | jsx | ## Code Before:
'use strict';
import React from 'react'
import BasicTeacherInfo from './basic_teacher_info'
import EducatorType from './educator_type'
import AnalyticsWrapper from '../../shared/analytics_wrapper'
export default React.createClass({
propTypes: {
signUp: React.PropTypes.func.isRequired,
errors... | 'use strict';
import React from 'react'
import BasicTeacherInfo from './basic_teacher_info'
import EducatorType from './educator_type'
import AnalyticsWrapper from '../../shared/analytics_wrapper'
export default React.createClass({
propTypes: {
signUp: React.PropTypes.func.isRequired,
... | 5 | 0.172414 | 3 | 2 |
765939fc174dce23c47b689f4bdc3d7c9f4a86c8 | test/model/record.js | test/model/record.js | /*globals describe, it*/
var Record = require('../../lib/model/record'),
Rx = require('rx');
require('should');
describe('Record', function () {
describe('#has(key)', function () {
var r = new Record({ foo: 'foo' });
it('should return true if record has the property', function () {
... | /*globals describe, it*/
var Record = require('../../lib/model/record'),
Rx = require('../../lib/util/rx');
require('should');
describe('Record', function () {
describe('#has(key)', function () {
var r = new Record({ foo: 'foo' });
it('should return true if record has the property', function ... | Update Rx require to point to local utility version | Update Rx require to point to local utility version
| JavaScript | mit | jhamlet/rpg-kit | javascript | ## Code Before:
/*globals describe, it*/
var Record = require('../../lib/model/record'),
Rx = require('rx');
require('should');
describe('Record', function () {
describe('#has(key)', function () {
var r = new Record({ foo: 'foo' });
it('should return true if record has the property', function... | /*globals describe, it*/
var Record = require('../../lib/model/record'),
- Rx = require('rx');
+ Rx = require('../../lib/util/rx');
? +++++++++++++++
require('should');
describe('Record', function () {
describe('#has(key)', function () {
var r = new Record({ foo:... | 2 | 0.068966 | 1 | 1 |
a62bdd5fe37c39327a49fae8f1f94280789b9a84 | php-classes/Jarvus/Sencha/Framework/Touch.php | php-classes/Jarvus/Sencha/Framework/Touch.php | <?php
namespace Jarvus\Sencha\Framework;
class Touch extends \Jarvus\Sencha\Framework
{
} | <?php
namespace Jarvus\Sencha\Framework;
class Touch extends \Jarvus\Sencha\Framework
{
public function getDownloadUrl()
{
return parent::getDownloadUrl() ?: preg_replace('/^(\\d+\\.\\d+\\.\\d+)(\\.\\d*)?$/', 'http://cdn.sencha.com/touch/gpl/sencha-touch-$1-gpl.zip', $this->version);
}
} | Add download URL for touch | Add download URL for touch
| PHP | mit | JarvusInnovations/emergence-sencha,JarvusInnovations/emergence-sencha | php | ## Code Before:
<?php
namespace Jarvus\Sencha\Framework;
class Touch extends \Jarvus\Sencha\Framework
{
}
## Instruction:
Add download URL for touch
## Code After:
<?php
namespace Jarvus\Sencha\Framework;
class Touch extends \Jarvus\Sencha\Framework
{
public function getDownloadUrl()
{
return parent::g... | <?php
namespace Jarvus\Sencha\Framework;
class Touch extends \Jarvus\Sencha\Framework
{
-
+ public function getDownloadUrl()
+ {
+ return parent::getDownloadUrl() ?: preg_replace('/^(\\d+\\.\\d+\\.\\d+)(\\.\\d*)?$/', 'http://cdn.sencha.com/touch/gpl/sencha-touch-$1-gpl.zip', $this->version);
+... | 5 | 0.625 | 4 | 1 |
0b80b573049b771f551b2fa47e570d849cd14ea4 | packages/syft/src/syft/core/node/common/node_manager/node_route_manager.py | packages/syft/src/syft/core/node/common/node_manager/node_route_manager.py | from sqlalchemy.engine import Engine
# relative
from ..node_table.node_route import NodeRoute
from .database_manager import DatabaseManager
class NodeRouteManager(DatabaseManager):
schema = NodeRoute
def __init__(self, database: Engine) -> None:
super().__init__(schema=NodeRouteManager.schema, db=da... | from sqlalchemy.engine import Engine
# relative
from ..node_table.node_route import NodeRoute
from .database_manager import DatabaseManager
class NodeRouteManager(DatabaseManager):
schema = NodeRoute
def __init__(self, database: Engine) -> None:
super().__init__(schema=NodeRouteManager.schema, db=da... | UPDATE update_route_for_node method to accept new parameters (vpn_endpoint/vpn_key) | UPDATE update_route_for_node method to accept new parameters (vpn_endpoint/vpn_key)
| Python | apache-2.0 | OpenMined/PySyft,OpenMined/PySyft,OpenMined/PySyft,OpenMined/PySyft | python | ## Code Before:
from sqlalchemy.engine import Engine
# relative
from ..node_table.node_route import NodeRoute
from .database_manager import DatabaseManager
class NodeRouteManager(DatabaseManager):
schema = NodeRoute
def __init__(self, database: Engine) -> None:
super().__init__(schema=NodeRouteManag... | from sqlalchemy.engine import Engine
# relative
from ..node_table.node_route import NodeRoute
from .database_manager import DatabaseManager
class NodeRouteManager(DatabaseManager):
schema = NodeRoute
def __init__(self, database: Engine) -> None:
super().__init__(schema=NodeRo... | 22 | 0.709677 | 17 | 5 |
8a5558e989b4c34221d3ceb7ca66e3081e183b3a | README.md | README.md | BeanPurée
=========
**BeanPurée** is a middle layer between JavaBeans and [shapeless][shapeless].
[](https://travis-ci.org/limansky/beanpuree)
[shapeless]: http://github.com/milessabin/shapeless
| BeanPurée
=========
**BeanPurée** is a middle layer between JavaBeans and [shapeless][shapeless].
The library is in very beginning of development and isn't ready for any usage.
[](https://travis-ci.org/limansky/beanpuree)
[shapeless]: http:/... | Add not ready note to readme. | Add not ready note to readme.
| Markdown | apache-2.0 | limansky/beanpuree | markdown | ## Code Before:
BeanPurée
=========
**BeanPurée** is a middle layer between JavaBeans and [shapeless][shapeless].
[](https://travis-ci.org/limansky/beanpuree)
[shapeless]: http://github.com/milessabin/shapeless
## Instruction:
Add not ready ... | BeanPurée
=========
**BeanPurée** is a middle layer between JavaBeans and [shapeless][shapeless].
+ The library is in very beginning of development and isn't ready for any usage.
+
[](https://travis-ci.org/limansky/beanpuree)
... | 2 | 0.25 | 2 | 0 |
4d2194b91599eb7a1fbe98b76ecb33d809a3285f | about.md | about.md | ---
layout: page
title: About
---
Hi, I'm [Prem Ganeshkumar](mailto:ganeprem at gmail). I'm a Natural Language Processing Engineer at [Agolo](http://agolo.com/) in New York City.
Before this, I was a Masters student in Computer Science at [Columbia University](http://www.columbia.edu/), New York City. My concentratio... | ---
layout: page
title: About
---
Hi, I'm [Prem Ganeshkumar](mailto:ganeprem at gmail). I'm a Natural Language Processing Engineer at [Agolo](http://agolo.com/) in New York City.
Before this, I was a Masters student in Computer Science at [Columbia University](http://www.columbia.edu/), New York City. My concentratio... | Add attribution for theme to About. | Add attribution for theme to About.
| Markdown | mit | premgane/premgane.github.io,premgane/premgane.github.io,premgane/premgane.github.io | markdown | ## Code Before:
---
layout: page
title: About
---
Hi, I'm [Prem Ganeshkumar](mailto:ganeprem at gmail). I'm a Natural Language Processing Engineer at [Agolo](http://agolo.com/) in New York City.
Before this, I was a Masters student in Computer Science at [Columbia University](http://www.columbia.edu/), New York City.... | ---
layout: page
title: About
---
Hi, I'm [Prem Ganeshkumar](mailto:ganeprem at gmail). I'm a Natural Language Processing Engineer at [Agolo](http://agolo.com/) in New York City.
Before this, I was a Masters student in Computer Science at [Columbia University](http://www.columbia.edu/), New York City.... | 2 | 0.125 | 2 | 0 |
635bbbb07005be82f03f85c48864132670af265a | keymaps/simple-align.cson | keymaps/simple-align.cson | 'atom-workspace':
'ctrl-cmd-a': 'simple-align:align'
| '.platform-darwin':
'ctrl-cmd-a': 'simple-align:align'
'.platform-win32, .platform-linux':
'ctrl-alt-a': 'simple-align:align'
| Add keymaps supported by Linux and Windows | Add keymaps supported by Linux and Windows | CoffeeScript | mit | stevenhauser/atom-simple-align | coffeescript | ## Code Before:
'atom-workspace':
'ctrl-cmd-a': 'simple-align:align'
## Instruction:
Add keymaps supported by Linux and Windows
## Code After:
'.platform-darwin':
'ctrl-cmd-a': 'simple-align:align'
'.platform-win32, .platform-linux':
'ctrl-alt-a': 'simple-align:align'
| - 'atom-workspace':
+ '.platform-darwin':
'ctrl-cmd-a': 'simple-align:align'
+
+ '.platform-win32, .platform-linux':
+ 'ctrl-alt-a': 'simple-align:align' | 5 | 2.5 | 4 | 1 |
0f0fb6928ba790cc8aaae72d4cc17735c26990a7 | src/services/index.js | src/services/index.js | 'use strict';
// const userLessonTokens = require('./user-lesson-tokens');
// const lessons = require('./lessons');
const users = require('./users');
const mongoose = require('mongoose')
module.exports = function() {
const app = this;
mongoose.connect(app.get('mongodb'));
mongoose.Promise = global.Promise;
... | 'use strict';
const userLessonTokens = require('./user-lesson-tokens');
const lessons = require('./lessons');
const users = require('./users');
const mongoose = require('mongoose');
module.exports = function() {
const app = this;
mongoose.connect(app.get('mongodb'));
mongoose.Promise = global.Promise;
app... | Add lessons and other service | Add lessons and other service
| JavaScript | mit | tum-ase-33/rest-server | javascript | ## Code Before:
'use strict';
// const userLessonTokens = require('./user-lesson-tokens');
// const lessons = require('./lessons');
const users = require('./users');
const mongoose = require('mongoose')
module.exports = function() {
const app = this;
mongoose.connect(app.get('mongodb'));
mongoose.Promise = ... | 'use strict';
- // const userLessonTokens = require('./user-lesson-tokens');
? ---
+ const userLessonTokens = require('./user-lesson-tokens');
-
- // const lessons = require('./lessons');
? ---
+ const lessons = require('./lessons');
const users = require('./users');
- const mongoose = require('mongoose... | 11 | 0.55 | 5 | 6 |
f9a2bd05a3cb1bea8f1febbdf3adb4e6bb901787 | docs/campaign-pages.md | docs/campaign-pages.md |
Collections currently renders the following campaign pages:
## Brexit landing page ([/brexit](https://www.gov.uk/brexit))
All content for the transition landing pages are currently read from yaml files. [Welsh](config/locales/cy/brexit_landing_page.yml) and [English](config/locales/en/brexit_landing_page.yml) transl... |
Collections currently renders the following campaign pages:
## Brexit landing page ([/brexit](https://www.gov.uk/brexit))
All content for the transition landing pages are currently read from yaml files. [Welsh](config/locales/cy/brexit_landing_page.yml) and [English](config/locales/en/brexit_landing_page.yml) transl... | Remove coronavirus hub pages from campaign docs | Remove coronavirus hub pages from campaign docs
We have been given permission to retire the coronavirus hub pages.
The links to the hub pages have already been removed and the content in
the hubs as already been added to the accordions and the hub pages have
been unpublished, so the page rendering code can be removed.... | Markdown | mit | alphagov/collections,alphagov/collections,alphagov/collections,alphagov/collections | markdown | ## Code Before:
Collections currently renders the following campaign pages:
## Brexit landing page ([/brexit](https://www.gov.uk/brexit))
All content for the transition landing pages are currently read from yaml files. [Welsh](config/locales/cy/brexit_landing_page.yml) and [English](config/locales/en/brexit_landing_... |
Collections currently renders the following campaign pages:
## Brexit landing page ([/brexit](https://www.gov.uk/brexit))
All content for the transition landing pages are currently read from yaml files. [Welsh](config/locales/cy/brexit_landing_page.yml) and [English](config/locales/en/brexit_landing_page... | 1 | 0.090909 | 0 | 1 |
0e4f2fbdfff3312d2ff80bba32ed19cc5762702b | reload_on_resume.js | reload_on_resume.js | // Hook into the hot-reload to
// 1) wait until the application has resumed to reload the app
// 2) show the splashscreen while the app is reloading
var hasResumed = false;
var retryReloadFunc = null;
var retryReloadOnResume = function () {
// Set resumed to true so _onMigrate performs the reload
hasResumed = tru... | // Hook into the hot-reload to
// 1) wait until the application has resumed to reload the app
// 2) show the splashscreen while the app is reloading
var hasResumed = false;
var retryReloadFunc = null;
var retryReloadOnResume = function () {
// Set hasResumed to true so _onMigrate performs the reload
hasResumed = ... | Add check around splashscreen object | Add check around splashscreen object
Minor cleanup.
From: https://gist.github.com/jperl/60d02a5d4301c1e29eec
| JavaScript | mit | DispatchMe/meteor-reload-on-resume | javascript | ## Code Before:
// Hook into the hot-reload to
// 1) wait until the application has resumed to reload the app
// 2) show the splashscreen while the app is reloading
var hasResumed = false;
var retryReloadFunc = null;
var retryReloadOnResume = function () {
// Set resumed to true so _onMigrate performs the reload
... | // Hook into the hot-reload to
// 1) wait until the application has resumed to reload the app
// 2) show the splashscreen while the app is reloading
var hasResumed = false;
var retryReloadFunc = null;
var retryReloadOnResume = function () {
- // Set resumed to true so _onMigrate performs the reload
... | 14 | 0.4375 | 8 | 6 |
b3d6c0b130a1704292bf818c75a456f71a7b2ead | homebrew/install.sh | homebrew/install.sh | if test ! $(which brew)
then
echo " x You should probably install Homebrew first:"
echo " https://github.com/mxcl/homebrew/wiki/installation"
exit
fi
# Install homebrew packages
brew install grc coreutils spark ack ctags ffmpeg git mutt siege tidy tmux tofrodos watch wget youtube-dl yuicompressor node
exit ... | if test ! $(which brew)
then
echo " x You should probably install Homebrew first:"
echo " https://github.com/mxcl/homebrew/wiki/installation"
exit
fi
# Install homebrew packages
brew install grc coreutils spark ack ctags ffmpeg git mutt siege tidy tmux tofrodos watch wget youtube-dl yuicompressor node
# Tap... | Add brew cask and some apps | Add brew cask and some apps
| Shell | mit | caseyw/dotfiles,caseyw/dotfiles | shell | ## Code Before:
if test ! $(which brew)
then
echo " x You should probably install Homebrew first:"
echo " https://github.com/mxcl/homebrew/wiki/installation"
exit
fi
# Install homebrew packages
brew install grc coreutils spark ack ctags ffmpeg git mutt siege tidy tmux tofrodos watch wget youtube-dl yuicompre... | if test ! $(which brew)
then
echo " x You should probably install Homebrew first:"
echo " https://github.com/mxcl/homebrew/wiki/installation"
exit
fi
# Install homebrew packages
brew install grc coreutils spark ack ctags ffmpeg git mutt siege tidy tmux tofrodos watch wget youtube-dl yuicomp... | 22 | 2 | 22 | 0 |
5645c6c5b8624296868ce95832ab366457eebc81 | .travis.yml | .travis.yml | language: go
go_import_path: googlemaps.github.io/maps
# See https://github.com/travis-ci/gimme/blob/master/.known-binary-versions-linux for known golang versions
go:
- 1.7.x
- 1.8.x
- tip
| language: go
go_import_path: googlemaps.github.io/maps
# See https://github.com/travis-ci/gimme/blob/master/.testdata/binary-linux for known golang versions
go:
- 1.7.x
- 1.8.x
- tip
| Correct location of known Go versions | Correct location of known Go versions | YAML | apache-2.0 | domesticmouse/google-maps-services-go,googlemaps/google-maps-services-go | yaml | ## Code Before:
language: go
go_import_path: googlemaps.github.io/maps
# See https://github.com/travis-ci/gimme/blob/master/.known-binary-versions-linux for known golang versions
go:
- 1.7.x
- 1.8.x
- tip
## Instruction:
Correct location of known Go versions
## Code After:
language: go
go_import_path: googlemap... | language: go
go_import_path: googlemaps.github.io/maps
- # See https://github.com/travis-ci/gimme/blob/master/.known-binary-versions-linux for known golang versions
? ^^^^^^ ---------
+ # See https://github.com/travis-ci/gimme/blob/master/.testdata/bina... | 2 | 0.25 | 1 | 1 |
508fa276ed35f52d39224d6045ea277e78d46ab8 | lib/sugar.rb | lib/sugar.rb |
module Sugar
class << self
attr_writer :redis
def aws_s3?
if config.amazon_aws_key &&
config.amazon_aws_secret &&
config.amazon_s3_bucket
true
else
false
end
end
def redis
@redis ||= Redis.new(driver: :hiredis, url: redis_url)
end
d... |
module Sugar
class << self
attr_writer :redis
def aws_s3?
if config.amazon_aws_key &&
config.amazon_aws_secret &&
config.amazon_s3_bucket
true
else
false
end
end
def redis
@redis ||= Redis.new(driver: :hiredis, url: redis_url)
end
d... | Reset config when Redis URL changes | Reset config when Redis URL changes
| Ruby | mit | elektronaut/sugar,elektronaut/sugar,elektronaut/sugar,elektronaut/sugar | ruby | ## Code Before:
module Sugar
class << self
attr_writer :redis
def aws_s3?
if config.amazon_aws_key &&
config.amazon_aws_secret &&
config.amazon_s3_bucket
true
else
false
end
end
def redis
@redis ||= Redis.new(driver: :hiredis, url: redis_url... |
module Sugar
class << self
attr_writer :redis
def aws_s3?
if config.amazon_aws_key &&
config.amazon_aws_secret &&
config.amazon_s3_bucket
true
else
false
end
end
def redis
@redis ||= Redis.new(driver: :hired... | 1 | 0.027027 | 1 | 0 |
16e1afe930e80a55ef8572e53408f4cab3b49b9a | test/libs/queue/format/add.spec.js | test/libs/queue/format/add.spec.js | 'use strict';
// Load chai
const chai = require('chai');
const expect = chai.expect;
// Load our module
const format = require('../../../../app/lib/queue/format');
// Describe the module
describe('Function "add"', () => {
afterEach(() => { format.reset(); });
it('should export a function', () => {
expect(f... | 'use strict';
// Load chai
const chai = require('chai');
const expect = chai.expect;
// Load our module
const format = require('../../../../app/lib/queue/format');
// Describe the module
describe('Function "add"', () => {
beforeEach(() => { format.reset(); });
afterEach(() => { format.reset(); });
it('shoul... | Add before each reset to format add | Add before each reset to format add
| JavaScript | apache-2.0 | transmutejs/core | javascript | ## Code Before:
'use strict';
// Load chai
const chai = require('chai');
const expect = chai.expect;
// Load our module
const format = require('../../../../app/lib/queue/format');
// Describe the module
describe('Function "add"', () => {
afterEach(() => { format.reset(); });
it('should export a function', () =... | 'use strict';
// Load chai
const chai = require('chai');
const expect = chai.expect;
// Load our module
const format = require('../../../../app/lib/queue/format');
// Describe the module
describe('Function "add"', () => {
+
+ beforeEach(() => { format.reset(); });
afterEach(() => { fo... | 2 | 0.033333 | 2 | 0 |
9c593e10c013d0000c3b61e6a0ee97a89418eff9 | ObjectiveRocks/RocksDBCuckooTableOptions.h | ObjectiveRocks/RocksDBCuckooTableOptions.h | //
// RocksDBCuckooTableOptions.h
// ObjectiveRocks
//
// Created by Iska on 04/01/15.
// Copyright (c) 2015 BrainCookie. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface RocksDBCuckooTableOptions : NSObject
@property (nonatomic, assign) double hashTableRatio;
@property (nonatomic, assign) ui... | //
// RocksDBCuckooTableOptions.h
// ObjectiveRocks
//
// Created by Iska on 04/01/15.
// Copyright (c) 2015 BrainCookie. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface RocksDBCuckooTableOptions : NSObject
/**
@brief
Determines the utilization of hash tables. Smaller values
result in l... | Add source code documentation for the RocksDB Cuckoo Table Options class | Add source code documentation for the RocksDB Cuckoo Table Options class
| C | mit | iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks | c | ## Code Before:
//
// RocksDBCuckooTableOptions.h
// ObjectiveRocks
//
// Created by Iska on 04/01/15.
// Copyright (c) 2015 BrainCookie. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface RocksDBCuckooTableOptions : NSObject
@property (nonatomic, assign) double hashTableRatio;
@property (nonat... | //
// RocksDBCuckooTableOptions.h
// ObjectiveRocks
//
// Created by Iska on 04/01/15.
// Copyright (c) 2015 BrainCookie. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface RocksDBCuckooTableOptions : NSObject
+ /**
+ @brief
+ Determines the utilization of hash tables... | 39 | 2.052632 | 39 | 0 |
a6c205b9a8575376f971f74e7fc1cd907a6c920a | src/gulp/test.js | src/gulp/test.js | import extend from 'extend'
import gulp, {tasks} from 'gulp'
import karma from 'karma'
import rump from 'rump'
const name = ::rump.taskName,
task = ::gulp.task,
{configs} = rump
task(name('scripts:test'), () => {
const options = extend(true, {}, configs.karma, {
singleRun: !configs.watch,
webpac... | import extend from 'extend'
import gulp, {tasks} from 'gulp'
import {Server} from 'karma'
import rump from 'rump'
const name = ::rump.taskName,
task = ::gulp.task,
{configs} = rump
task(name('scripts:test'), done => {
const server = new Server(extend(true, {}, configs.karma, {
singleRun: !configs.wa... | Use non deprecating Karma API | Use non deprecating Karma API
| JavaScript | mit | rumps/rump-scripts-test,rumps/scripts-test | javascript | ## Code Before:
import extend from 'extend'
import gulp, {tasks} from 'gulp'
import karma from 'karma'
import rump from 'rump'
const name = ::rump.taskName,
task = ::gulp.task,
{configs} = rump
task(name('scripts:test'), () => {
const options = extend(true, {}, configs.karma, {
singleRun: !configs.w... | import extend from 'extend'
import gulp, {tasks} from 'gulp'
- import karma from 'karma'
? ^^ ^^
+ import {Server} from 'karma'
? ^^^ ^^^^
import rump from 'rump'
const name = ::rump.taskName,
task = ::gulp.task,
{configs} = rump
- task(name('scripts:test'), () => {
? ... | 10 | 0.526316 | 5 | 5 |
0330c3e3c05f7b4a2969cee1ad2a86bb44dabbfc | circle.yml | circle.yml | machine:
services:
- docker
checkout:
post:
- ([[ "$CIRCLE_BRANCH" = pull/* ]] && git merge --no-ff master) || [[ "$CIRCLE_BRANCH" != pull/* ]]
- rm -rf ${GOPATH%%:*}/src/github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}
- mkdir -p ${GOPATH%%:*}/src/github.com/${CIRCLE_PROJECT_USERNA... | machine:
services:
- docker
checkout:
post:
- ([[ "$CIRCLE_BRANCH" = pull/* ]] && git merge --no-ff master) || [[ "$CIRCLE_BRANCH" != pull/* ]]
- rm -rf ${GOPATH%%:*}/src/github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}
- mkdir -p ${GOPATH%%:*}/src/github.com/${CIRCLE_PROJECT_USERNA... | Sort go fmt stuff for generated code | Sort go fmt stuff for generated code
| YAML | apache-2.0 | jimmidyson/kadvisor,jimmidyson/kadvisor | yaml | ## Code Before:
machine:
services:
- docker
checkout:
post:
- ([[ "$CIRCLE_BRANCH" = pull/* ]] && git merge --no-ff master) || [[ "$CIRCLE_BRANCH" != pull/* ]]
- rm -rf ${GOPATH%%:*}/src/github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}
- mkdir -p ${GOPATH%%:*}/src/github.com/${CIRCL... | machine:
services:
- docker
checkout:
post:
- ([[ "$CIRCLE_BRANCH" = pull/* ]] && git merge --no-ff master) || [[ "$CIRCLE_BRANCH" != pull/* ]]
- rm -rf ${GOPATH%%:*}/src/github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}
- mkdir -p ${GOPATH%%:*}/src/github.com/${CIR... | 1 | 0.04 | 1 | 0 |
33f909f49018584fbdc78eaaab4470199c4095e8 | public/stylesheets/style.css | public/stylesheets/style.css | padding: 0;
margin: 0;
}
span.icon {
margin: 0 auto;
display: block;
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
}
span.icon.small {
width: 18px;
}
span.icon.medium {
width: 24px;
}
span.icon.large {
width: 40px;
}
span.icon svg {
widt... | padding: 0;
margin: 0;
}
span.icon {
margin: 0 auto;
display: block;
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
-moz-transform: translateY(0);
}
span.icon.small {
width: 18px;
}
span.icon.medium {
width: 24px;
}
span.icon.large {
width... | Make sure mozilla doesnt transform | Make sure mozilla doesnt transform
| CSS | mit | ello/ello-button,ello/ello-button | css | ## Code Before:
padding: 0;
margin: 0;
}
span.icon {
margin: 0 auto;
display: block;
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
}
span.icon.small {
width: 18px;
}
span.icon.medium {
width: 24px;
}
span.icon.large {
width: 40px;
}
span.i... | padding: 0;
margin: 0;
}
span.icon {
margin: 0 auto;
display: block;
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
+ -moz-transform: translateY(0);
}
span.icon.small {
width: 18px;
}
span.icon.medium {
w... | 1 | 0.021277 | 1 | 0 |
bf78c8f7b1c0b45e7c7429bc6e1f7f79f92cd20e | app/controllers/monologue/tags_controller.rb | app/controllers/monologue/tags_controller.rb | class Monologue::TagsController < Monologue::ApplicationController
def show
@tag = retrieve_tag
if @tag
@page = nil
@posts = @tag.posts_with_tag
else
redirect_to :root ,notice: "No post found with label \"#{params[:tag]}\""
end
end
private
def retrieve_tag
Monologue::Tag.w... | class Monologue::TagsController < Monologue::ApplicationController
def show
@tag = retrieve_tag
if @tag
@page = nil
@posts = @tag.posts_with_tag
else
redirect_to :root ,notice: "No post found with label \"#{params[:tag]}\""
end
end
private
def retrieve_tag
Monologue::Tag.w... | Use non-latin symbols for tags | Use non-latin symbols for tags | Ruby | mit | GapIntelligence/monologue,munirent/monologue,paresharma/monologue,kyle-annen/monologue,jipiboily/monologue,tam-vo/monologue,bertomartin/monologue,kyle-annen/monologue,jipiboily/monologue,thiesa/monologue,caitlingoldman/monologue,jaimerson/monologue,jaimerson/monologue,caitlingoldman/monologue,thiesa/monologue,jipiboily... | ruby | ## Code Before:
class Monologue::TagsController < Monologue::ApplicationController
def show
@tag = retrieve_tag
if @tag
@page = nil
@posts = @tag.posts_with_tag
else
redirect_to :root ,notice: "No post found with label \"#{params[:tag]}\""
end
end
private
def retrieve_tag
... | class Monologue::TagsController < Monologue::ApplicationController
def show
@tag = retrieve_tag
if @tag
@page = nil
@posts = @tag.posts_with_tag
else
redirect_to :root ,notice: "No post found with label \"#{params[:tag]}\""
end
end
private
def retriev... | 2 | 0.125 | 1 | 1 |
ccb1d0fb3b0ac37379a57359e9c1cfb4817eb23a | lib/backlogjp/base.rb | lib/backlogjp/base.rb |
module Backlogjp
class Base
URI_FORMAT = "https://%s.backlog.jp/XML-RPC"
def initialize(space, user, pass)
if space.empty? || user.empty? || pass.empty?
raise ArgumentException("Provide a valid space, user and password")
end
@base_uri = URI.parse( URI_FORMAT % space )
@clie... |
module Backlogjp
class Base
URI_FORMAT = "https://%s.backlog.jp/XML-RPC"
def initialize(space, user, pass)
if space.empty? || user.empty? || pass.empty?
raise ArgumentException("Provide a valid space, user and password")
end
@base_uri = URI.parse( URI_FORMAT % space )
@clie... | Allow symbol-keyed hashes in creating objects | Allow symbol-keyed hashes in creating objects | Ruby | mit | zaki/backlogjp | ruby | ## Code Before:
module Backlogjp
class Base
URI_FORMAT = "https://%s.backlog.jp/XML-RPC"
def initialize(space, user, pass)
if space.empty? || user.empty? || pass.empty?
raise ArgumentException("Provide a valid space, user and password")
end
@base_uri = URI.parse( URI_FORMAT % spac... |
module Backlogjp
class Base
URI_FORMAT = "https://%s.backlog.jp/XML-RPC"
def initialize(space, user, pass)
if space.empty? || user.empty? || pass.empty?
raise ArgumentException("Provide a valid space, user and password")
end
@base_uri = URI.parse( URI_FORMAT ... | 2 | 0.038462 | 1 | 1 |
b63d8d2609985c26835c3890a3a929af6a4a6d1e | lib/Basic/OpenMPKinds.cpp | lib/Basic/OpenMPKinds.cpp | //===--- OpenMPKinds.cpp - Token Kinds Support ----------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===--- OpenMPKinds.cpp - Token Kinds Support ----------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Fix a layering violation introduced in r177705. | Fix a layering violation introduced in r177705.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@177922 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-cl... | c++ | ## Code Before:
//===--- OpenMPKinds.cpp - Token Kinds Support ----------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===---------------------------------------... | //===--- OpenMPKinds.cpp - Token Kinds Support ----------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===---------------------------------------... | 2 | 0.046512 | 1 | 1 |
7b97be8d840160b1f19325d77619e916233a8c06 | priv/templates/release_rc_win_exec.eex | priv/templates/release_rc_win_exec.eex | :: Discover the current release directory from the directory
:: of this script and the start_erl.data file
@echo off
set script_dir=%~dp0
for %%A in ("%script_dir%\..") do (
set release_root_dir=%%~fA
)
set rel_name=<%= release_name %>
set rel_vsn=<%= release_version %>
set boot_script=%release_root_dir%\releases\%re... | :: Discover the current release directory from the directory
:: of this script and the start_erl.data file
@echo off
set script_dir=%~dp0
for %%A in ("%script_dir%\..") do (
set release_root_dir=%%~fA
)
set rel_name=<%= release_name %>
set rel_vsn=<%= release_version %>
set boot_script=%release_root_dir%\releases\%re... | Update exec script to use pwsh over powershell, when available | Update exec script to use pwsh over powershell, when available
| HTML+EEX | mit | bitwalker/distillery,bitwalker/distillery | html+eex | ## Code Before:
:: Discover the current release directory from the directory
:: of this script and the start_erl.data file
@echo off
set script_dir=%~dp0
for %%A in ("%script_dir%\..") do (
set release_root_dir=%%~fA
)
set rel_name=<%= release_name %>
set rel_vsn=<%= release_version %>
set boot_script=%release_root_d... | :: Discover the current release directory from the directory
:: of this script and the start_erl.data file
@echo off
set script_dir=%~dp0
for %%A in ("%script_dir%\..") do (
set release_root_dir=%%~fA
)
set rel_name=<%= release_name %>
set rel_vsn=<%= release_version %>
set boot_script=%release_ro... | 9 | 0.818182 | 8 | 1 |
b9e60d25f735f389ca9f1de21f69d48cea7cfac7 | routes/scrape.js | routes/scrape.js | var express = require('express');
var router = express.Router();
const {
getEntry,
getAllEntries,
addEntry,
deleteEntry
} = require('./../db/entries')
const {
getDataFromUrl,
getDataFromName
} = require('./../scrape/getData')
const getPeopleFromWiki = require('./../scrape/getPeopleFromWiki')
/* GET entrie... | var express = require('express');
var router = express.Router();
const {
getEntry,
getAllEntries,
addEntry,
deleteEntry
} = require('./../db/entries')
const {
getDataFromUrl,
getDataFromName
} = require('./../scrape/getData')
const getPeopleFromWiki = require('./../scrape/getPeopleFromWiki')
/* GET entrie... | Set up route for scraping wikipedia | Set up route for scraping wikipedia
| JavaScript | mit | michael-lowe-nz/ageGuessAPI,michael-lowe-nz/ageGuessAPI | javascript | ## Code Before:
var express = require('express');
var router = express.Router();
const {
getEntry,
getAllEntries,
addEntry,
deleteEntry
} = require('./../db/entries')
const {
getDataFromUrl,
getDataFromName
} = require('./../scrape/getData')
const getPeopleFromWiki = require('./../scrape/getPeopleFromWiki'... | var express = require('express');
var router = express.Router();
const {
getEntry,
getAllEntries,
addEntry,
deleteEntry
} = require('./../db/entries')
const {
getDataFromUrl,
getDataFromName
} = require('./../scrape/getData')
const getPeopleFromWiki = require('./../scrape/getPeo... | 25 | 0.78125 | 13 | 12 |
c4069a9169a38b175fe71cd2cb1a5e8c53a101a9 | src/assets/js/scrolling-nav.js | src/assets/js/scrolling-nav.js | function scrollTo(e) {
var distanceToTop = function(el) {
try {
return Math.floor(el.getBoundingClientRect().top);
} catch(err) {
console.log(err);
}
};
var checkIfDone = setInterval(function() {
var atBottom = window.innerHeight + window.pageYOffset ... | function scrollTo(e) {
var distanceToTop = function (el) {
try {
return Math.floor(el.getBoundingClientRect().top);
} catch (err) {
console.log(err);
}
},
targetID = this.getAttribute("href"),
targetAnchor = document.querySe... | Remove timing function, which was causing issues. Fixed some eslint configuration recommendations for the codebase. | Remove timing function, which was causing issues. Fixed some eslint configuration recommendations for the codebase.
* Note: right now the scroll is working with chrome and firefox but not safari.
| JavaScript | mit | deduced/bov-personal-portfolio,deduced/bov-personal-portfolio | javascript | ## Code Before:
function scrollTo(e) {
var distanceToTop = function(el) {
try {
return Math.floor(el.getBoundingClientRect().top);
} catch(err) {
console.log(err);
}
};
var checkIfDone = setInterval(function() {
var atBottom = window.innerHeight + win... | function scrollTo(e) {
- var distanceToTop = function(el) {
+ var distanceToTop = function (el) {
? +
- try {
+ try {
? ++++
- return Math.floor(el.getBoundingClientRect().top);
+ return Math.floor(el.getBoundingClientRect().top... | 37 | 0.973684 | 14 | 23 |
e9eb18b754a6ad243f0458488e1146b4d9f957c7 | app/views/emarketing/index.rhtml | app/views/emarketing/index.rhtml | <script>
SourcesCharts = {
chart: null,
date: "<%= @date.strftime('%F') %>",
next: function() {
$j.getJSON("<%= url_for :action => 'referrer_sources' %>", {date: SourcesCharts.date, direction: 'next'}, function(res) {SourcesCharts.load(res);});
},
prev: function() {
$j.getJSON("<%= url_for :action =... | <script>
SourcesCharts = {
chart: null,
date: "<%= @date.strftime('%F') %>",
next: function() {
$j.getJSON("<%= url_for :action => 'referrer_sources' %>", {date: SourcesCharts.date, direction: 'next'}, function(res) {SourcesCharts.load(res);});
},
prev: function() {
$j.getJSON("<%= url_for :action =... | Add more actions button for the rest of the stats | Add more actions button for the rest of the stats
| RHTML | mit | cykod/Webiva,treybean/Webiva-lis,cykod/Webiva,cykod/Webiva,treybean/Webiva-lis,treybean/Webiva-lis,treybean/Webiva-lis,cykod/Webiva,cykod/Webiva,treybean/Webiva-lis | rhtml | ## Code Before:
<script>
SourcesCharts = {
chart: null,
date: "<%= @date.strftime('%F') %>",
next: function() {
$j.getJSON("<%= url_for :action => 'referrer_sources' %>", {date: SourcesCharts.date, direction: 'next'}, function(res) {SourcesCharts.load(res);});
},
prev: function() {
$j.getJSON("<%= u... | <script>
SourcesCharts = {
chart: null,
date: "<%= @date.strftime('%F') %>",
next: function() {
$j.getJSON("<%= url_for :action => 'referrer_sources' %>", {date: SourcesCharts.date, direction: 'next'}, function(res) {SourcesCharts.load(res);});
},
prev: function() {
$j.getJSON(... | 18 | 0.45 | 12 | 6 |
d8bb247dfce89796164c4b146a1d0adc92ca6182 | templates/studygroups/studygroupmeeting_form.html | templates/studygroups/studygroupmeeting_form.html | {% extends 'base.html' %}
{% load crispy_forms_tags %}
{% block content %}
<div class="container learning-circle-signup">
<div class="row">
<div class="col-md-8 col-sm-12">
<form action="" method="POST">
{% csrf_token %}
{% crispy form %}
<p><button type="submit" class="btn btn-default">Save</bu... | {% extends 'base.html' %}
{% load crispy_forms_tags %}
{% block content %}
<div class="container learning-circle-signup">
<div class="row">
<div class="col-md-8 col-sm-12">
<form action="" method="POST">
{% csrf_token %}
{{ form|crispy }}
<p><button type="submit" class="btn btn-default">Save<... | Fix problem with crispy forms | Fix problem with crispy forms
| HTML | mit | p2pu/learning-circles,p2pu/learning-circles,p2pu/learning-circles,p2pu/learning-circles | html | ## Code Before:
{% extends 'base.html' %}
{% load crispy_forms_tags %}
{% block content %}
<div class="container learning-circle-signup">
<div class="row">
<div class="col-md-8 col-sm-12">
<form action="" method="POST">
{% csrf_token %}
{% crispy form %}
<p><button type="submit" class="btn btn-d... | {% extends 'base.html' %}
{% load crispy_forms_tags %}
{% block content %}
<div class="container learning-circle-signup">
<div class="row">
<div class="col-md-8 col-sm-12">
<form action="" method="POST">
{% csrf_token %}
- {% crispy form %}
+ {{ form|crispy }}
<p><but... | 2 | 0.125 | 1 | 1 |
197e27200e8d22a0d912dfceda846bb1ea6a402d | src/main/scala/modules/counter/guice/modules/CounterModule.scala | src/main/scala/modules/counter/guice/modules/CounterModule.scala | package modules.counter.guice.modules
import akka.actor.{ActorRef, ActorSystem}
import com.google.inject.name.Named
import com.google.inject.{AbstractModule, Provides, Singleton}
import core.services.persistence.PersistenceCleanup
import modules.counter.services.count.CounterPersistentActor
import net.codingwell.scala... | package modules.counter.guice.modules
import akka.actor.{ActorRef, ActorSystem}
import com.google.inject.Provides
import com.google.inject.name.Named
import modules.counter.repositories.{CounterRepo, CounterRepoImpl}
import modules.counter.services.count.CounterActor
import net.codingwell.scalaguice.ScalaModule
impor... | Add bind of 'CounterRepo' to implementation | Add bind of 'CounterRepo' to implementation
| Scala | mit | sysgears/apollo-universal-starter-kit,sysgears/apollo-universal-starter-kit,sysgears/apollo-fullstack-starter-kit,sysgears/apollo-universal-starter-kit,sysgears/apollo-universal-starter-kit | scala | ## Code Before:
package modules.counter.guice.modules
import akka.actor.{ActorRef, ActorSystem}
import com.google.inject.name.Named
import com.google.inject.{AbstractModule, Provides, Singleton}
import core.services.persistence.PersistenceCleanup
import modules.counter.services.count.CounterPersistentActor
import net.... | package modules.counter.guice.modules
import akka.actor.{ActorRef, ActorSystem}
+ import com.google.inject.Provides
import com.google.inject.name.Named
+ import modules.counter.repositories.{CounterRepo, CounterRepoImpl}
- import com.google.inject.{AbstractModule, Provides, Singleton}
- import core.services.pe... | 22 | 1.222222 | 14 | 8 |
8237291e194aa900857fe382d0b8cefb7806c331 | ocradmin/ocrmodels/models.py | ocradmin/ocrmodels/models.py | from django.db import models
from django.contrib.auth.models import User
from tagging.fields import TagField
import tagging
# OCR model, erm, model
class OcrModel(models.Model):
"""
OCR model objects.
"""
user = models.ForeignKey(User)
derived_from = models.ForeignKey("self", null=True, blank=... | from django.db import models
from django.contrib.auth.models import User
from tagging.fields import TagField
import tagging
# OCR model, erm, model
class OcrModel(models.Model):
"""
OCR model objects.
"""
user = models.ForeignKey(User)
derived_from = models.ForeignKey("self", null=True, blank=... | Improve unicode method. Whitespace cleanup | Improve unicode method. Whitespace cleanup
| Python | apache-2.0 | vitorio/ocropodium,vitorio/ocropodium,vitorio/ocropodium,vitorio/ocropodium | python | ## Code Before:
from django.db import models
from django.contrib.auth.models import User
from tagging.fields import TagField
import tagging
# OCR model, erm, model
class OcrModel(models.Model):
"""
OCR model objects.
"""
user = models.ForeignKey(User)
derived_from = models.ForeignKey("self", n... | from django.db import models
from django.contrib.auth.models import User
from tagging.fields import TagField
import tagging
# OCR model, erm, model
class OcrModel(models.Model):
"""
OCR model objects.
"""
user = models.ForeignKey(User)
derived_from = models.ForeignKey... | 5 | 0.151515 | 2 | 3 |
51ac844e88a6cd30af2a9f2c0367eaada1e9c8dc | nassau/src/main/java/org/jvirtanen/nassau/MessageListener.java | nassau/src/main/java/org/jvirtanen/nassau/MessageListener.java | package org.jvirtanen.nassau;
import java.io.IOException;
import java.nio.ByteBuffer;
/**
* <code>MessageListener</code> is the interface for inbound messages.
*/
public interface MessageListener {
/**
* Receive a message. The message is contained in the buffer between the
* current position and the ... | package org.jvirtanen.nassau;
import java.io.IOException;
import java.nio.ByteBuffer;
/**
* The interface for inbound messages.
*/
public interface MessageListener {
/**
* Receive a message. The message is contained in the buffer between the
* current position and the limit.
*
* @param buff... | Tweak documentation for message listener | Tweak documentation for message listener
| Java | apache-2.0 | pmcs/nassau,pmcs/nassau,paritytrading/nassau,paritytrading/nassau | java | ## Code Before:
package org.jvirtanen.nassau;
import java.io.IOException;
import java.nio.ByteBuffer;
/**
* <code>MessageListener</code> is the interface for inbound messages.
*/
public interface MessageListener {
/**
* Receive a message. The message is contained in the buffer between the
* current p... | package org.jvirtanen.nassau;
import java.io.IOException;
import java.nio.ByteBuffer;
/**
- * <code>MessageListener</code> is the interface for inbound messages.
+ * The interface for inbound messages.
*/
public interface MessageListener {
/**
* Receive a message. The message is con... | 2 | 0.1 | 1 | 1 |
b1b51c56f372adf4658200b7332bfd0ad19052ca | lib/simple_form/inputs/numeric_input.rb | lib/simple_form/inputs/numeric_input.rb | module SimpleForm
module Inputs
class NumericInput < Base
def input
@builder.text_field(attribute_name, input_html_options)
end
def input_html_options
input_options = super
input_options[:type] ||= "number"
input_options[:size] ||= SimpleForm.default_input_size
... | module SimpleForm
module Inputs
class NumericInput < Base
def input
@builder.text_field(attribute_name, input_html_options)
end
def input_html_options
input_options = super
input_options[:type] ||= "number"
input_options[:size] ||= SimpleForm.default_input_size
... | Refactor the code a bit | Refactor the code a bit
| Ruby | mit | jasnow/simple_form,wethu/simple_form,westonganger/simple_form,ktw1222/simple_form,patrick99e99/simple_form,alesshh/simple_form,dwilkie/simple_form,zlx/simple_form_bootstrap3,joshsoftware/simple_form,pcantrell/simple_form,mikeahmarani/simple_form,jobteaser/simple_form,alesshh/simple_form,Eric-Guo/simple_form,stevestmart... | ruby | ## Code Before:
module SimpleForm
module Inputs
class NumericInput < Base
def input
@builder.text_field(attribute_name, input_html_options)
end
def input_html_options
input_options = super
input_options[:type] ||= "number"
input_options[:size] ||= SimpleForm.defa... | module SimpleForm
module Inputs
class NumericInput < Base
def input
@builder.text_field(attribute_name, input_html_options)
end
def input_html_options
input_options = super
input_options[:type] ||= "number"
input_options[:size] ||= SimpleFor... | 15 | 0.357143 | 9 | 6 |
846a1145c3f9b49e61871229851886440313bcee | .travis.yml | .travis.yml | dist: trusty
before_install:
- sudo add-apt-repository ppa:jonathonf/texlive-2016 -y
- sudo apt-get update
install:
- sudo apt-get install -y texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended texlive-bibtex-extra texlive-lang-german texlive-generic-extra
- wget https://sourceforge.net/pro... | dist: trusty
before_install:
- sudo add-apt-repository ppa:jonathonf/texlive-2016 -y
- sudo apt-get update
install:
- sudo apt-get install -y texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended texlive-bibtex-extra texlive-lang-german texlive-generic-extra biber --no-install-recommends
scrip... | Install the same on TravisCI like in the Dockerfile | Install the same on TravisCI like in the Dockerfile
| YAML | mit | koep/FOM-LaTeX-Template,andygrunwald/FOM-LaTeX-Template,andygrunwald/FOM-LaTeX-Template,koep/FOM-LaTeX-Template | yaml | ## Code Before:
dist: trusty
before_install:
- sudo add-apt-repository ppa:jonathonf/texlive-2016 -y
- sudo apt-get update
install:
- sudo apt-get install -y texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended texlive-bibtex-extra texlive-lang-german texlive-generic-extra
- wget https://sou... | dist: trusty
before_install:
- sudo add-apt-repository ppa:jonathonf/texlive-2016 -y
- sudo apt-get update
install:
- - sudo apt-get install -y texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended texlive-bibtex-extra texlive-lang-german texlive-generic-extra
+ - sudo apt-get ins... | 5 | 0.333333 | 1 | 4 |
723617ee5f627f7eb8b8204660482605a3aaffa5 | docker-paas.yml | docker-paas.yml | www:
build: public
links:
- turadmin
ports:
- "8080"
restart: always
turadmin:
build: .
ports:
- "8080"
environment:
- APP_PORT=8080
- APP_URL
- DNT_CONNECT_KEY
- DNT_CONNECT_USER
- NEW_RELIC_APP_NAME=Turadmin
- NEW_RELIC_LICENSE_KEY
- NEW_RELIC_LOG=stdout
- NE... | www:
build: public
links:
- turadmin
ports:
- "8080"
restart: always
turadmin:
build: .
ports:
- "8080"
environment:
- APP_PORT=8080
- APP_URL=http://tur.app.dnt.no
- DNT_CONNECT_KEY
- DNT_CONNECT_USER
- NEW_RELIC_APP_NAME=Turadmin
- NEW_RELIC_LICENSE_KEY
- NEW_REL... | Set default APP_URL for Docker PaaS config | Set default APP_URL for Docker PaaS config
| YAML | mit | Turistforeningen/Turadmin,Turistforeningen/Turadmin,Turistforeningen/Turadmin,Turistforeningen/Turadmin | yaml | ## Code Before:
www:
build: public
links:
- turadmin
ports:
- "8080"
restart: always
turadmin:
build: .
ports:
- "8080"
environment:
- APP_PORT=8080
- APP_URL
- DNT_CONNECT_KEY
- DNT_CONNECT_USER
- NEW_RELIC_APP_NAME=Turadmin
- NEW_RELIC_LICENSE_KEY
- NEW_RELIC_LOG... | www:
build: public
links:
- turadmin
ports:
- "8080"
restart: always
turadmin:
build: .
ports:
- "8080"
environment:
- APP_PORT=8080
- - APP_URL
+ - APP_URL=http://tur.app.dnt.no
- DNT_CONNECT_KEY
- DNT_CONNECT_USER
- NEW_RELIC_APP_NAM... | 2 | 0.071429 | 1 | 1 |
7f54079273ecc4d65cfd80b2a61391210b85604b | _config.yml | _config.yml | name: Nick Williams
tagline: Full-stack developer with a passion for JavaScript.
location: Leicestershire, UK
twitter: http://twitter.com/nickwuh
github: https://github.com/nilliams
markdown: redcarpet
pygments: false
sass:
sass_dir: _sass
| name: Nick Williams
tagline: Full-stack developer with a passion for JavaScript.
location: Leicestershire, UK
twitter: http://twitter.com/nickwuh
github: https://github.com/nilliams
markdown: redcarpet
pygments: false
permalink: /:title
sass:
sass_dir: _sass
| Use blog-post title for url by default (reverts e0d914f) | Use blog-post title for url by default (reverts e0d914f)
| YAML | mit | nilliams/jekyll-minimal-blog-theme,nilliams/jekyll-minimal-blog-theme,nilliams/jekyll-minimal-blog-theme | yaml | ## Code Before:
name: Nick Williams
tagline: Full-stack developer with a passion for JavaScript.
location: Leicestershire, UK
twitter: http://twitter.com/nickwuh
github: https://github.com/nilliams
markdown: redcarpet
pygments: false
sass:
sass_dir: _sass
## Instruction:
Use blog-post title for url by default (rever... | name: Nick Williams
tagline: Full-stack developer with a passion for JavaScript.
location: Leicestershire, UK
twitter: http://twitter.com/nickwuh
github: https://github.com/nilliams
markdown: redcarpet
pygments: false
+ permalink: /:title
sass:
sass_dir: _sass | 1 | 0.111111 | 1 | 0 |
6438fc8108d214c6cb56e5d75253cad9acfd0334 | templates/plugin.template.php | templates/plugin.template.php | <?php
/**
* Template file for notifications
*
* @package Dragooon:WeNotif
* @author Shitiz "Dragooon" Garg <Email mail@dragooon.net> <Url http://smf-media.com>
* @copyright 2012, Shitiz "Dragooon" Garg <mail@dragooon.net>
* @license
* Licensed under "New BSD License (3-clause version)"
* http://www.opensourc... | <?php
/**
* Template file for notifications
*
* @package Dragooon:WeNotif
* @author Shitiz "Dragooon" Garg <Email mail@dragooon.net> <Url http://smf-media.com>
* @copyright 2012, Shitiz "Dragooon" Garg <mail@dragooon.net>
* @license
* Licensed under "New BSD License (3-clause version)"
* http://www.opensourc... | Make the cursor as pointer for quick notifications | Make the cursor as pointer for quick notifications
| PHP | bsd-3-clause | Dragooon/WeNotif,Dragooon/WeNotif,Dragooon/WeNotif | php | ## Code Before:
<?php
/**
* Template file for notifications
*
* @package Dragooon:WeNotif
* @author Shitiz "Dragooon" Garg <Email mail@dragooon.net> <Url http://smf-media.com>
* @copyright 2012, Shitiz "Dragooon" Garg <mail@dragooon.net>
* @license
* Licensed under "New BSD License (3-clause version)"
* http... | <?php
/**
* Template file for notifications
*
* @package Dragooon:WeNotif
* @author Shitiz "Dragooon" Garg <Email mail@dragooon.net> <Url http://smf-media.com>
* @copyright 2012, Shitiz "Dragooon" Garg <mail@dragooon.net>
* @license
* Licensed under "New BSD License (3-clause version)"
* ... | 2 | 0.060606 | 1 | 1 |
68b3c1b5a93b20ffcbeffb051b3c4fdf6c1eab23 | client/desktop/app/components/Profile.js | client/desktop/app/components/Profile.js | import React from 'react'
import {Route, RouteHandler, Link, Button} from 'react-router'
class Profile extends React.Component {
constructor(props){
super(props);
this.state = {
teacherData: {
name: 'Teachy McTeacherton',
email: 'teachy@teach.er'
}
};
}
render(){
retu... | import React from 'react'
import {Route, RouteHandler, Link, Button} from 'react-router'
var auth = require('./../utils/auth');
class Profile extends React.Component {
constructor(props){
super(props);
this.state = {
teacherData: {
name: 'Teachy McTeacherton',
email: 'teachy@teach.er'
... | Add functionality to logout button | Add functionality to logout button
| JavaScript | mit | absurdSquid/thumbroll,Jakeyrob/thumbroll,Jakeyrob/thumbroll,shanemcgraw/thumbroll,Jakeyrob/thumbroll,shanemcgraw/thumbroll,shanemcgraw/thumbroll,absurdSquid/thumbroll | javascript | ## Code Before:
import React from 'react'
import {Route, RouteHandler, Link, Button} from 'react-router'
class Profile extends React.Component {
constructor(props){
super(props);
this.state = {
teacherData: {
name: 'Teachy McTeacherton',
email: 'teachy@teach.er'
}
};
}
re... | import React from 'react'
import {Route, RouteHandler, Link, Button} from 'react-router'
+ var auth = require('./../utils/auth');
class Profile extends React.Component {
constructor(props){
super(props);
this.state = {
teacherData: {
name: 'Teachy McTeacherton',
emai... | 15 | 0.375 | 12 | 3 |
235a226ac582e25a05f4e69cb5f6415049ea01ed | .travis.yml | .travis.yml | language: python
python:
- 3.5
sudo: false
env:
- TOXENV=py27-django18
- TOXENV=pypy-django18
- TOXENV=py34-django18
- TOXENV=py27-django19
- TOXENV=pypy-django19
- TOXENV=py34-django19
- TOXENV=py35-django19
docsinstall: pip install -q tox
script: tox
deploy:
provider: pypi
user: jazzband
distrib... | language: python
python:
- 3.5
sudo: false
env:
- TOXENV=py27-django16
- TOXENV=py34-django16
- TOXENV=pypy-django16
- TOXENV=py27-django17
- TOXENV=py34-django17
- TOXENV=pypy-django17
- TOXENV=py27-django18
- TOXENV=pypy-django18
- TOXENV=py34-django18
- TOXENV=py27-django19
- TOXENV=pypy-djan... | Add new Django versions to TravisCI file | Add new Django versions to TravisCI file
| YAML | mit | chipx86/django-pipeline,beedesk/django-pipeline,sideffect0/django-pipeline,kronion/django-pipeline,chipx86/django-pipeline,theatlantic/django-pipeline,d9pouces/django-pipeline,theatlantic/django-pipeline,kronion/django-pipeline,sideffect0/django-pipeline,d9pouces/django-pipeline,lexqt/django-pipeline,theatlantic/django... | yaml | ## Code Before:
language: python
python:
- 3.5
sudo: false
env:
- TOXENV=py27-django18
- TOXENV=pypy-django18
- TOXENV=py34-django18
- TOXENV=py27-django19
- TOXENV=pypy-django19
- TOXENV=py34-django19
- TOXENV=py35-django19
docsinstall: pip install -q tox
script: tox
deploy:
provider: pypi
user: ja... | language: python
python:
- 3.5
sudo: false
env:
+ - TOXENV=py27-django16
+ - TOXENV=py34-django16
+ - TOXENV=pypy-django16
+ - TOXENV=py27-django17
+ - TOXENV=py34-django17
+ - TOXENV=pypy-django17
- TOXENV=py27-django18
- TOXENV=pypy-django18
- TOXENV=py34-django18
- TOXENV=py27... | 6 | 0.230769 | 6 | 0 |
09c2c73e46b974e33f7d7aab4515510484b4538b | app/views/article/_article_links.html.erb | app/views/article/_article_links.html.erb | <div id="context_wrapper" class="inside-column">
<p>
<%= link_to("Read pages that mention #{@article.title} in all works.",
:controller => 'display',
:action => 'read_all_works',
:article_id => @article.id) %>
</p>
<p><%= link_to("Graph of subjects related to #{@article... | <div id="context_wrapper" class="inside-column">
<p>
<%= link_to("Read pages that mention #{@article.title} in all works.",
:controller => 'display',
:action => 'read_all_works',
:article_id => @article.id) %>
</p>
<p><%= link_to("Graph of subjects related to #{@article... | Remove inter-article links section unless they exist | Remove inter-article links section unless they exist
| HTML+ERB | agpl-3.0 | benwbrum/fromthepage,benwbrum/fromthepage,benwbrum/fromthepage,benwbrum/fromthepage | html+erb | ## Code Before:
<div id="context_wrapper" class="inside-column">
<p>
<%= link_to("Read pages that mention #{@article.title} in all works.",
:controller => 'display',
:action => 'read_all_works',
:article_id => @article.id) %>
</p>
<p><%= link_to("Graph of subjects relat... | <div id="context_wrapper" class="inside-column">
<p>
<%= link_to("Read pages that mention #{@article.title} in all works.",
:controller => 'display',
:action => 'read_all_works',
:article_id => @article.id) %>
</p>
<p><%= link_to("Graph of subjects relat... | 22 | 0.647059 | 12 | 10 |
49e601a6e9327046407cf748df53a5c27e4c2123 | test/test_main.ml | test/test_main.ml | open OUnit
let base_suite =
"base_suite" >:::
[
Test_config.test;
]
let _ = run_test_tt_main base_suite
| open OUnit
let base_suite =
"base_suite" >:::
[
Test_config.test;
]
let () =
OUnit2.run_test_tt_main (OUnit.ounit2_of_ounit1 base_suite)
| Make sure tests don't exit 0 even when they fail | Make sure tests don't exit 0 even when they fail
Signed-off-by: John Else <37b74501daa612e48fea94f9846ed4ddeb6a8f07@citrix.com>
| OCaml | isc | johnelse/gpumon,johnelse/gpumon,xenserver/gpumon | ocaml | ## Code Before:
open OUnit
let base_suite =
"base_suite" >:::
[
Test_config.test;
]
let _ = run_test_tt_main base_suite
## Instruction:
Make sure tests don't exit 0 even when they fail
Signed-off-by: John Else <37b74501daa612e48fea94f9846ed4ddeb6a8f07@citrix.com>
## Code After:
open OUnit
let base_suite =... | open OUnit
let base_suite =
"base_suite" >:::
[
Test_config.test;
]
- let _ = run_test_tt_main base_suite
+ let () =
+ OUnit2.run_test_tt_main (OUnit.ounit2_of_ounit1 base_suite) | 3 | 0.333333 | 2 | 1 |
730a394e755102fadfb7b378ad7297c695944601 | pkgs/tools/security/hologram/default.nix | pkgs/tools/security/hologram/default.nix | { stdenv, lib, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }:
buildGoPackage rec {
name = "hologram-${version}";
version = "20170130-${stdenv.lib.strings.substring 0 7 rev}";
rev = "d20d1c30379e7010e8f9c428a5b9e82f54d390e1";
src = fetchgit {
inherit rev;
url = "https://github.com/AdRoll/holo... | { stdenv, lib, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }:
buildGoPackage rec {
name = "hologram-${version}";
version = "20170130-${stdenv.lib.strings.substring 0 7 rev}";
rev = "d20d1c30379e7010e8f9c428a5b9e82f54d390e1";
src = fetchgit {
inherit rev;
url = "https://github.com/AdRoll/holo... | Fix hologram server with go versions > 1.4, no fix yet upstream. | Fix hologram server with go versions > 1.4, no fix yet upstream.
(cherry picked from commit cbfb35a145287f9c18c801ffaf4f36967f1bd563)
| Nix | mit | NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,... | nix | ## Code Before:
{ stdenv, lib, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }:
buildGoPackage rec {
name = "hologram-${version}";
version = "20170130-${stdenv.lib.strings.substring 0 7 rev}";
rev = "d20d1c30379e7010e8f9c428a5b9e82f54d390e1";
src = fetchgit {
inherit rev;
url = "https://github... | { stdenv, lib, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }:
buildGoPackage rec {
name = "hologram-${version}";
version = "20170130-${stdenv.lib.strings.substring 0 7 rev}";
rev = "d20d1c30379e7010e8f9c428a5b9e82f54d390e1";
src = fetchgit {
inherit rev;
url = "https://gi... | 4 | 0.16 | 4 | 0 |
af5f2c4a3ee20bc18308ffa4d508588a7b5d0f59 | .travis.yml | .travis.yml | language: cpp
compiler: clang
script:
- mkdir _build
- cd _build
- cmake ..
- cmake --build .
| language: cpp
compiler: clang
before_install:
- sudo add-apt-repository --yes ppa:jamie-snape/tubetk
- sudo apt-get update -qq
- sudo apt-get install -qq libgdcm2-dev libinsighttoolkit-dev
script:
- mkdir _build
- cd _build
- cmake -DUSE_SYSTEM_ITK:BOOL=ON ..
- cmake --build .
| Use binary Debian package of ITK for Travis CI builds | ENH: Use binary Debian package of ITK for Travis CI builds
| YAML | apache-2.0 | KitwareMedical/ImageViewer,thewtex/ImageViewer,aylward/ImageViewer | yaml | ## Code Before:
language: cpp
compiler: clang
script:
- mkdir _build
- cd _build
- cmake ..
- cmake --build .
## Instruction:
ENH: Use binary Debian package of ITK for Travis CI builds
## Code After:
language: cpp
compiler: clang
before_install:
- sudo add-apt-repository --yes ppa:jamie-snape/tubetk
-... | language: cpp
compiler: clang
+ before_install:
+ - sudo add-apt-repository --yes ppa:jamie-snape/tubetk
+ - sudo apt-get update -qq
+ - sudo apt-get install -qq libgdcm2-dev libinsighttoolkit-dev
+
script:
- mkdir _build
- cd _build
- - cmake ..
+ - cmake -DUSE_SYSTEM_ITK:BOOL=ON ..
... | 7 | 0.777778 | 6 | 1 |
f0945d30ba8a2581467397abae00db1e55847ef7 | _config.yml | _config.yml | title: Martin Seeler
email: blog@chasmo.de
description: "About programming and trading"
baseurl: ""
url: "http://martinseeler.github.io"
twitter_username: Chasmo90
github_username: MartinSeeler
timezone: "Europe/Berlin"
lsi: false
# Build settings
markdown: kramdown
kramdown:
input: GFM
#redcarpet:
# extensions: [... | title: Martin Seeler
email: blog@chasmo.de
description: "About programming and trading"
baseurl: ""
url: "http://www.martinseeler.com"
twitter_username: Chasmo90
github_username: MartinSeeler
timezone: "Europe/Berlin"
lsi: false
# Build settings
markdown: kramdown
kramdown:
input: GFM
permalink: "/:title.html"
safe... | Change url of jekyll page to martinseeler.com | Change url of jekyll page to martinseeler.com
| YAML | mit | MartinSeeler/MartinSeeler.github.io,MartinSeeler/MartinSeeler.github.io | yaml | ## Code Before:
title: Martin Seeler
email: blog@chasmo.de
description: "About programming and trading"
baseurl: ""
url: "http://martinseeler.github.io"
twitter_username: Chasmo90
github_username: MartinSeeler
timezone: "Europe/Berlin"
lsi: false
# Build settings
markdown: kramdown
kramdown:
input: GFM
#redcarpet:
... | title: Martin Seeler
email: blog@chasmo.de
description: "About programming and trading"
baseurl: ""
- url: "http://martinseeler.github.io"
? ^^^^^^^^
+ url: "http://www.martinseeler.com"
? ++++ ^ +
twitter_username: Chasmo90
github_username: MartinSeeler... | 4 | 0.190476 | 1 | 3 |
60661e5cbcba4aea817f7fa1625287dbb7a1aeb4 | .travis.yml | .travis.yml | language: cpp
compiler:
- gcc
- clang
before_install:
- ./Install-OpenCV/get_latest_version_download_file.sh
before_script:
- mkdir bin
script: make skin-detect
| language: cpp
compiler:
- gcc
- clang
before_install:
- chmod +x Install-OpenCV/Ubuntu/opencv_latest.sh
- ./Install-OpenCV/Ubuntu/opencv_latest.sh
before_script:
- mkdir bin
script: make skin-detect
| Set execute flag before trying to execute | Set execute flag before trying to execute
| YAML | mit | JamieMagee/skin-detect | yaml | ## Code Before:
language: cpp
compiler:
- gcc
- clang
before_install:
- ./Install-OpenCV/get_latest_version_download_file.sh
before_script:
- mkdir bin
script: make skin-detect
## Instruction:
Set execute flag before trying to execute
## Code After:
language: cpp
compiler:
- gcc
- clang
before... | language: cpp
compiler:
- gcc
- clang
before_install:
- - ./Install-OpenCV/get_latest_version_download_file.sh
+ - chmod +x Install-OpenCV/Ubuntu/opencv_latest.sh
+ - ./Install-OpenCV/Ubuntu/opencv_latest.sh
before_script:
- mkdir bin
script: make skin-detect | 3 | 0.230769 | 2 | 1 |
fb6f02f42efc172bed02a29244a8e9eace4631de | contrib/packs/actions/install.meta.yaml | contrib/packs/actions/install.meta.yaml | ---
name: "install"
runner_type: "action-chain"
description: "Installs packs from st2-contrib into local content repository.
Will download pack, load the actions, sensors and rules from the pack.
Note that install require reboot of some st2 services."
enabled: true
entry_point:... | ---
name: "install"
runner_type: "action-chain"
description: "Installs packs from st2-contrib into local content repository.
Will download pack, load the actions, sensors and rules from the pack.
Note that install require reboot of some st2 services."
enabled: true
entry_point:... | Update packs.install to also register triggers (trigger types) by default. | Update packs.install to also register triggers (trigger types) by default.
| YAML | apache-2.0 | nzlosh/st2,nzlosh/st2,StackStorm/st2,emedvedev/st2,StackStorm/st2,punalpatel/st2,peak6/st2,pixelrebel/st2,emedvedev/st2,nzlosh/st2,Plexxi/st2,peak6/st2,StackStorm/st2,peak6/st2,StackStorm/st2,nzlosh/st2,tonybaloney/st2,pixelrebel/st2,Plexxi/st2,punalpatel/st2,Plexxi/st2,tonybaloney/st2,lakshmi-kannan/st2,lakshmi-kannan... | yaml | ## Code Before:
---
name: "install"
runner_type: "action-chain"
description: "Installs packs from st2-contrib into local content repository.
Will download pack, load the actions, sensors and rules from the pack.
Note that install require reboot of some st2 services."
enabled: tru... | ---
name: "install"
runner_type: "action-chain"
description: "Installs packs from st2-contrib into local content repository.
Will download pack, load the actions, sensors and rules from the pack.
Note that install require reboot of some st2 services."
enabled: true
... | 4 | 0.125 | 2 | 2 |
78b3f2c509e3bda127fa78f00b534b25e8dd83c1 | metadata.json | metadata.json | {
"name": "zleslie-ldapquery",
"version": "1.0.3",
"author": "Zach Leslie",
"summary": "Query an LDAP server using Puppet.",
"license": "Apache-2.0",
"source": "https://github.com/xaque208/puppet-ldapquery",
"project_page": "https://github.com/xaque208/puppet-ldapquery",
"issues_url": "https://github.co... | {
"name": "zleslie-ldapquery",
"version": "1.0.3",
"author": "Zach Leslie",
"summary": "Query an LDAP server using Puppet.",
"license": "Apache-2.0",
"source": "https://github.com/xaque208/puppet-ldapquery",
"project_page": "https://github.com/xaque208/puppet-ldapquery",
"issues_url": "https://github.co... | Declare support for Puppet 5 & 6 | Declare support for Puppet 5 & 6
| JSON | apache-2.0 | xaque208/puppet-ldapquery,xaque208/puppet-ldapquery | json | ## Code Before:
{
"name": "zleslie-ldapquery",
"version": "1.0.3",
"author": "Zach Leslie",
"summary": "Query an LDAP server using Puppet.",
"license": "Apache-2.0",
"source": "https://github.com/xaque208/puppet-ldapquery",
"project_page": "https://github.com/xaque208/puppet-ldapquery",
"issues_url": "h... | {
"name": "zleslie-ldapquery",
"version": "1.0.3",
"author": "Zach Leslie",
"summary": "Query an LDAP server using Puppet.",
"license": "Apache-2.0",
"source": "https://github.com/xaque208/puppet-ldapquery",
"project_page": "https://github.com/xaque208/puppet-ldapquery",
"issues_url": ... | 6 | 0.461538 | 6 | 0 |
2077023bb0022a89d6bc4bb93b0ebb45ea3af045 | utils/jenkins/deploy-to-local-docker.sh | utils/jenkins/deploy-to-local-docker.sh | echo "Creating Working Directory"
mkdir server/target/docker_deploy
# Copying Dockerfile to working Directory
echo "Copying Dockerfile"
cp utils/jenkins/Dockerfile server/target/docker_deploy
# Copying server.jar in working Directory
echo "Copying server.jar"
cp server/target/server-1.0-SNAPSHOT.jar server/target/dock... | echo "Creating Working Directory"
mkdir server/target/docker_deploy
# Copying Dockerfile to working Directory
echo "Copying Dockerfile"
cp utils/jenkins/Dockerfile server/target/docker_deploy
# Copying server.jar in working Directory
echo "Copying server.jar"
cp server/target/server-1.0-SNAPSHOT.jar server/target/dock... | Fix Port binding of TOSCAna deployed by jenkins | Fix Port binding of TOSCAna deployed by jenkins
The script not binds the instance to 127.0.0.1.
To forward it some sort of proxy is needed.
This step is necessary, because firewall restrictions dont apply to
docker.
| Shell | apache-2.0 | StuPro-TOSCAna/TOSCAna,StuPro-TOSCAna/TOSCAna,StuPro-TOSCAna/TOSCAna,StuPro-TOSCAna/TOSCAna,StuPro-TOSCAna/TOSCAna,StuPro-TOSCAna/TOSCAna,StuPro-TOSCAna/TOSCAna | shell | ## Code Before:
echo "Creating Working Directory"
mkdir server/target/docker_deploy
# Copying Dockerfile to working Directory
echo "Copying Dockerfile"
cp utils/jenkins/Dockerfile server/target/docker_deploy
# Copying server.jar in working Directory
echo "Copying server.jar"
cp server/target/server-1.0-SNAPSHOT.jar se... | echo "Creating Working Directory"
mkdir server/target/docker_deploy
# Copying Dockerfile to working Directory
echo "Copying Dockerfile"
cp utils/jenkins/Dockerfile server/target/docker_deploy
# Copying server.jar in working Directory
echo "Copying server.jar"
cp server/target/server-1.0-SNAPSHOT.jar ... | 2 | 0.066667 | 1 | 1 |
3cbf04d036beff8e1a980bd81e9e28fe0683f118 | templates/markdown/cv.md | templates/markdown/cv.md | ---
layout: layout
title: CV
---
<section class="content">
# {{ name.first }} {{ name.last }}
<section class="byline">
[PDF]({{ pdf }}) •
[source]({{ src }}) •
Generated on {{ today }}
</section>
{{ body }}
</section>
| ---
layout: layout
title: 'Brandon Amos: CV'
---
<section class="content">
# {{ name.first }} {{ name.last }}: CV
<section class="byline">
[PDF]({{ pdf }}) •
[source]({{ src }}) •
Generated on {{ today }}
</section>
{{ body }}
</section>
| Tweak heading and markdown title. | Tweak heading and markdown title.
| Markdown | mit | bamos/cv | markdown | ## Code Before:
---
layout: layout
title: CV
---
<section class="content">
# {{ name.first }} {{ name.last }}
<section class="byline">
[PDF]({{ pdf }}) •
[source]({{ src }}) •
Generated on {{ today }}
</section>
{{ body }}
</section>
## Instruction:
Tweak heading and markdown title.
## Code Afte... | ---
layout: layout
- title: CV
+ title: 'Brandon Amos: CV'
---
<section class="content">
- # {{ name.first }} {{ name.last }}
+ # {{ name.first }} {{ name.last }}: CV
? ++++
<section class="byline">
[PDF]({{ pdf }}) •
[source]({{ src }}) •
Gene... | 4 | 0.210526 | 2 | 2 |
1dc7383a2f51c225f0138792eff6d35dc35dac8c | infinite_memcached/tests.py | infinite_memcached/tests.py | import time
from django.test import TestCase
from infinite_memcached.cache import MemcachedCache
class InfiniteMemcached(TestCase):
def test_handle_timeouts(self):
mc = MemcachedCache(
server="127.0.0.1:11211",
params={},
)
self.assertEqual(0, mc._get_memcache_timeou... | import time
from django.test import TestCase
from django.core.cache import get_cache
class InfiniteMemcached(TestCase):
def test_handle_timeouts(self):
mc = get_cache('infinite_memcached.cache.MemcachedCache',
LOCATION='127.0.0.1:11211')
self.assertEqual(0, mc._get_memcache_... | Load the backend with get_cache | Load the backend with get_cache
| Python | bsd-3-clause | edavis/django-infinite-memcached,edavis/django-infinite-memcached | python | ## Code Before:
import time
from django.test import TestCase
from infinite_memcached.cache import MemcachedCache
class InfiniteMemcached(TestCase):
def test_handle_timeouts(self):
mc = MemcachedCache(
server="127.0.0.1:11211",
params={},
)
self.assertEqual(0, mc._get... | import time
from django.test import TestCase
- from infinite_memcached.cache import MemcachedCache
+ from django.core.cache import get_cache
class InfiniteMemcached(TestCase):
def test_handle_timeouts(self):
+ mc = get_cache('infinite_memcached.cache.MemcachedCache',
+ LOCA... | 9 | 0.473684 | 4 | 5 |
b1c7efd773495a84b383868e9e812d7170480d02 | src/MessageBus/WrapsMessageHandlingInTransaction.php | src/MessageBus/WrapsMessageHandlingInTransaction.php | <?php
namespace SimpleBus\DoctrineORMBridge\MessageBus;
use Doctrine\ORM\EntityManager;
use Doctrine\Persistence\ManagerRegistry;
use SimpleBus\Message\Bus\Middleware\MessageBusMiddleware;
use Throwable;
class WrapsMessageHandlingInTransaction implements MessageBusMiddleware
{
/**
* @var ManagerRegistry
... | <?php
namespace SimpleBus\DoctrineORMBridge\MessageBus;
use Doctrine\ORM\EntityManager;
use Doctrine\Persistence\ManagerRegistry;
use SimpleBus\Message\Bus\Middleware\MessageBusMiddleware;
use Throwable;
class WrapsMessageHandlingInTransaction implements MessageBusMiddleware
{
/**
* @var ManagerRegistry
... | Move the `/* @var` syntax above | Move the `/* @var` syntax above
| PHP | mit | SimpleBus/DoctrineORMBridge | php | ## Code Before:
<?php
namespace SimpleBus\DoctrineORMBridge\MessageBus;
use Doctrine\ORM\EntityManager;
use Doctrine\Persistence\ManagerRegistry;
use SimpleBus\Message\Bus\Middleware\MessageBusMiddleware;
use Throwable;
class WrapsMessageHandlingInTransaction implements MessageBusMiddleware
{
/**
* @var Man... | <?php
namespace SimpleBus\DoctrineORMBridge\MessageBus;
use Doctrine\ORM\EntityManager;
use Doctrine\Persistence\ManagerRegistry;
use SimpleBus\Message\Bus\Middleware\MessageBusMiddleware;
use Throwable;
class WrapsMessageHandlingInTransaction implements MessageBusMiddleware
{
/**
... | 2 | 0.041667 | 1 | 1 |
94a8cf63a91f371314fd6a8e93d97b3ef266ceff | src/clj/aspire/templates.clj | src/clj/aspire/templates.clj | (ns aspire.templates
(:require [net.cgrand.enlive-html :as en]
[hiccup.core :as hc]))
(en/deftemplate index "public/index.html"
[user-display-name]
[:script] nil
[:body] (en/append
{:tag "script"
:attrs {:type "text/javascript"
:src "js/aspire.js"}}))
| (ns aspire.templates
(:require [net.cgrand.enlive-html :as en]
[hiccup.core :as hc]))
(defn render [template]
(reduce str template))
(en/deftemplate index "public/index.html"
[user-display-name]
[:script] nil
[:body] (en/append
{:tag "script"
:attrs {:type "text/javascript... | Add a 'render fn for deftemplate --> strings. | Add a 'render fn for deftemplate --> strings.
This keeps liberator happier.
| Clojure | epl-1.0 | vlacs/navigator-archive | clojure | ## Code Before:
(ns aspire.templates
(:require [net.cgrand.enlive-html :as en]
[hiccup.core :as hc]))
(en/deftemplate index "public/index.html"
[user-display-name]
[:script] nil
[:body] (en/append
{:tag "script"
:attrs {:type "text/javascript"
:src "js/asp... | (ns aspire.templates
(:require [net.cgrand.enlive-html :as en]
[hiccup.core :as hc]))
+
+ (defn render [template]
+ (reduce str template))
(en/deftemplate index "public/index.html"
[user-display-name]
[:script] nil
[:body] (en/append
{:tag "script"
:att... | 3 | 0.25 | 3 | 0 |
730de95b183cdd885f4bae58b6b2f7d38f50ed40 | src/Wave/Framework/External/Phroute/Filters/After/Encoding.php | src/Wave/Framework/External/Phroute/Filters/After/Encoding.php | <?php
namespace Wave\Framework\External\Phroute\Filters\After;
use Wave\Framework\Application\Wave;
class Encoding
{
/**
* Sets the content type to `application/json`
*/
public function useJSON()
{
Wave::getResponse()->withHeader('content-type', 'application/json');
}
/**
*... | <?php
namespace Wave\Framework\External\Phroute\Filters\After;
use Wave\Framework\Application\Wave;
class Encoding
{
const ENC_JSON = 'application/json';
const ENC_XML = 'text/xml';
const ENC_HTML = 'text/html';
const ENC_PLAIN = 'text/plain';
private function verifyAcceptance($type)
{
... | Check if the return content type is within the Accept header | Check if the return content type is within the Accept header
| PHP | mit | DaGhostman/codewave | php | ## Code Before:
<?php
namespace Wave\Framework\External\Phroute\Filters\After;
use Wave\Framework\Application\Wave;
class Encoding
{
/**
* Sets the content type to `application/json`
*/
public function useJSON()
{
Wave::getResponse()->withHeader('content-type', 'application/json');
}... | <?php
namespace Wave\Framework\External\Phroute\Filters\After;
use Wave\Framework\Application\Wave;
class Encoding
{
+ const ENC_JSON = 'application/json';
+ const ENC_XML = 'text/xml';
+ const ENC_HTML = 'text/html';
+ const ENC_PLAIN = 'text/plain';
+
+ private function verifyAcce... | 28 | 0.777778 | 28 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.