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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c17c451b7c2f191442d7e2d4c3149b11cebf16f6 | README.md | README.md | desmoj
======
Desmo-J is a Framework for Discrete-Event Modelling and Simulation Library developing object-oriented simulation models in Java.
Developed by Department of Computer Science, University of Hamburg. Main contributors for this work are Johannes Göbel, Gunnar Kiesel, Nicolas Knaak, Julia Kuck, Tim Lechler, ... | desmoj
======
Desmo-J is a Framework for Discrete-Event Modelling and Simulation Library developing object-oriented simulation models in Java.
Developed by Department of Computer Science, University of Hamburg. Main contributors for this work are Johannes Göbel, Gunnar Kiesel, Nicolas Knaak, Julia Kuck, Tim Lechler, ... | Add another one contributor's name. | Add another one contributor's name.
| Markdown | apache-2.0 | muhd7rosli/desmoj | markdown | ## Code Before:
desmoj
======
Desmo-J is a Framework for Discrete-Event Modelling and Simulation Library developing object-oriented simulation models in Java.
Developed by Department of Computer Science, University of Hamburg. Main contributors for this work are Johannes Göbel, Gunnar Kiesel, Nicolas Knaak, Julia Kuc... | desmoj
======
Desmo-J is a Framework for Discrete-Event Modelling and Simulation Library developing object-oriented simulation models in Java.
- Developed by Department of Computer Science, University of Hamburg. Main contributors for this work are Johannes Göbel, Gunnar Kiesel, Nicolas Knaak, Julia Kuck, T... | 2 | 0.181818 | 1 | 1 |
7822c56d8d623e03682b46a836e68e36d07053ee | src/utils/promises.ts | src/utils/promises.ts | export async function waitFor<T>(action: () => T, checkEveryMilliseconds: number, tryForMilliseconds: number, token?: { isCancellationRequested: boolean }): Promise<T | undefined> {
let timeRemaining = tryForMilliseconds;
while (timeRemaining > 0 && !(token && token.isCancellationRequested)) {
const res = action();... | export async function waitFor<T>(action: () => T, checkEveryMilliseconds: number, tryForMilliseconds: number, token?: { isCancellationRequested: boolean }): Promise<T | undefined> {
let timeRemaining = tryForMilliseconds;
while (timeRemaining > 0 && !(token && token.isCancellationRequested)) {
const res = action();... | Fix bug in waitFor not waiting long enough | Fix bug in waitFor not waiting long enough
| TypeScript | mit | Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code | typescript | ## Code Before:
export async function waitFor<T>(action: () => T, checkEveryMilliseconds: number, tryForMilliseconds: number, token?: { isCancellationRequested: boolean }): Promise<T | undefined> {
let timeRemaining = tryForMilliseconds;
while (timeRemaining > 0 && !(token && token.isCancellationRequested)) {
const... | export async function waitFor<T>(action: () => T, checkEveryMilliseconds: number, tryForMilliseconds: number, token?: { isCancellationRequested: boolean }): Promise<T | undefined> {
let timeRemaining = tryForMilliseconds;
while (timeRemaining > 0 && !(token && token.isCancellationRequested)) {
const res = a... | 2 | 0.2 | 1 | 1 |
8e029786ff8fad8bbe851fe28acb8253e0721d0e | test/functional/schemes_controller_test.rb | test/functional/schemes_controller_test.rb | require 'test_helper'
class SchemesControllerTest < ActionController::TestCase
test "should get new" do
get :new
assert_response :success
end
end
| require 'test_helper'
class SchemesControllerTest < ActionController::TestCase
test 'redirect to splash if not logged in' do
get :new, {}, {id: nil}
assert_redirected_to :root
end
test 'gets new if logged in' do
get :new, {}, {id: true}
assert_response :success
end
end
| Change some tests for schemes controller | Change some tests for schemes controller
| Ruby | mit | mybuddymichael/skeemah,mybuddymichael/skeemah | ruby | ## Code Before:
require 'test_helper'
class SchemesControllerTest < ActionController::TestCase
test "should get new" do
get :new
assert_response :success
end
end
## Instruction:
Change some tests for schemes controller
## Code After:
require 'test_helper'
class SchemesControllerTest < ActionController:... | require 'test_helper'
class SchemesControllerTest < ActionController::TestCase
- test "should get new" do
- get :new
+ test 'redirect to splash if not logged in' do
+ get :new, {}, {id: nil}
+ assert_redirected_to :root
+ end
+
+ test 'gets new if logged in' do
+ get :new, {}, {id: true}... | 9 | 1 | 7 | 2 |
1592c50612b4fdf45aa32294a96b59cc0bfb3c49 | .travis.yml | .travis.yml | language: php
sudo: true
php:
- '5.5'
- '5.6'
- '7.0'
- hhvm
- nightly
before_install:
- wget http://ppa.launchpad.net/anton+/dnscrypt/ubuntu/pool/main/libs/libsodium/libsodium-dbg_1.0.3-1pmo1~precise_amd64.deb
- wget http://ppa.launchpad.net/anton+/dnscrypt/ubuntu/pool/main/libs/libsodium/libsodium-de... | language: php
sudo: true
php:
- '5.5'
- '5.6'
- '7.0'
before_install:
- wget http://ppa.launchpad.net/anton+/dnscrypt/ubuntu/pool/main/libs/libsodium/libsodium-dbg_1.0.3-1pmo1~precise_amd64.deb
- wget http://ppa.launchpad.net/anton+/dnscrypt/ubuntu/pool/main/libs/libsodium/libsodium-dev_1.0.3-1pmo1~precise... | Remove HHVM and nightly from the build targets. | Remove HHVM and nightly from the build targets.
| YAML | mit | simpleapisecurity/php | yaml | ## Code Before:
language: php
sudo: true
php:
- '5.5'
- '5.6'
- '7.0'
- hhvm
- nightly
before_install:
- wget http://ppa.launchpad.net/anton+/dnscrypt/ubuntu/pool/main/libs/libsodium/libsodium-dbg_1.0.3-1pmo1~precise_amd64.deb
- wget http://ppa.launchpad.net/anton+/dnscrypt/ubuntu/pool/main/libs/libsod... | language: php
sudo: true
php:
- '5.5'
- '5.6'
- '7.0'
- - hhvm
- - nightly
before_install:
- wget http://ppa.launchpad.net/anton+/dnscrypt/ubuntu/pool/main/libs/libsodium/libsodium-dbg_1.0.3-1pmo1~precise_amd64.deb
- wget http://ppa.launchpad.net/anton+/dnscrypt/ubuntu/pool/main... | 2 | 0.083333 | 0 | 2 |
7f513be538a0aab943afed25ee1f64295b25644d | Cargo.toml | Cargo.toml | [package]
name = "rsciidoc"
version = "0.1.0"
authors = [
"Andrew Aday <andrewladay@gmail.com>",
"Alan Du <alanhdu@gmail.com>",
"Dennis Wei <dw2654@columbia.edu>",
]
[dependencies]
| [package]
name = "rsciidoc"
version = "0.1.0"
authors = [
"Andrew Aday <andrewladay@gmail.com>",
"Alan Du <alanhdu@gmail.com>",
"Dennis Wei <dw2654@columbia.edu>",
]
[dependencies]
nom = "^1.2.2"
| Add nom as a dependency | Add nom as a dependency
| TOML | mpl-2.0 | ADI-Labs/rsciidoc | toml | ## Code Before:
[package]
name = "rsciidoc"
version = "0.1.0"
authors = [
"Andrew Aday <andrewladay@gmail.com>",
"Alan Du <alanhdu@gmail.com>",
"Dennis Wei <dw2654@columbia.edu>",
]
[dependencies]
## Instruction:
Add nom as a dependency
## Code After:
[package]
name = "rsciidoc"
version = "0.1.0"
authors... | [package]
name = "rsciidoc"
version = "0.1.0"
authors = [
"Andrew Aday <andrewladay@gmail.com>",
"Alan Du <alanhdu@gmail.com>",
"Dennis Wei <dw2654@columbia.edu>",
]
[dependencies]
+ nom = "^1.2.2" | 1 | 0.1 | 1 | 0 |
a16e2a2db996469e0112297d5214cf8eaf1aaf97 | deploy-to-nodes.sh | deploy-to-nodes.sh |
nodes=($(docker-machine ls -q | grep hyperquick))
version_tag() {
if [ ! "${VERSION_TAG+x}" = "x" ] ; then git --git-dir "${KUBE_ROOT:-../}/.git" describe; fi
}
docker save -o "node.tar" "errordeveloper/hyperquick:node-$(version_tag)"
for n in "${nodes[@]}" ; do
eval "$(docker-machine env --shell bash "${n}")"
... |
cd "$(dirname "${BASH_SOURCE[0]}")"
nodes=($(docker-machine ls -q | grep hyperquick))
version_tag() {
if [ ! "${VERSION_TAG+x}" = "x" ] ; then git --git-dir "${KUBE_ROOT:-../}/.git" describe; fi
}
docker save -o "node.tar" "errordeveloper/hyperquick:node-$(version_tag)"
for n in "${nodes[@]}" ; do
eval "$(dock... | Make sure this can be called from any subdir | Make sure this can be called from any subdir
| Shell | apache-2.0 | errordeveloper/t8s | shell | ## Code Before:
nodes=($(docker-machine ls -q | grep hyperquick))
version_tag() {
if [ ! "${VERSION_TAG+x}" = "x" ] ; then git --git-dir "${KUBE_ROOT:-../}/.git" describe; fi
}
docker save -o "node.tar" "errordeveloper/hyperquick:node-$(version_tag)"
for n in "${nodes[@]}" ; do
eval "$(docker-machine env --shel... | +
+ cd "$(dirname "${BASH_SOURCE[0]}")"
nodes=($(docker-machine ls -q | grep hyperquick))
version_tag() {
if [ ! "${VERSION_TAG+x}" = "x" ] ; then git --git-dir "${KUBE_ROOT:-../}/.git" describe; fi
}
docker save -o "node.tar" "errordeveloper/hyperquick:node-$(version_tag)"
for n in "${nodes[... | 2 | 0.117647 | 2 | 0 |
9e9acac9b5c956f514678ee23e6ef72ce73ef158 | lib/crepe/versioning/endpoint.rb | lib/crepe/versioning/endpoint.rb | require 'crepe/versioning/request'
module Crepe
module Versioning
module Endpoint
# The most acceptable format requested, e.g. +:json+.
#
# @return [Symbol]
def format
return @format if defined? @format
formats = Util.media_types config[:formats]
media_type = reque... | require 'crepe/versioning/request'
module Crepe
module Versioning
# Crepe::Endpoint needs a format override.
module Endpoint
# The most acceptable format requested, e.g. +:json+.
#
# @return [Symbol]
def format
return @format if defined? @format
formats = Util.media_ty... | Add explanatory comment to Crepe::Versioning::Endpoint | Add explanatory comment to Crepe::Versioning::Endpoint
Signed-off-by: David Celis <b1c1d8736f20db3fb6c1c66bb1455ed43909f0d8@davidcel.is>
| Ruby | mit | crepe/crepe-versioning | ruby | ## Code Before:
require 'crepe/versioning/request'
module Crepe
module Versioning
module Endpoint
# The most acceptable format requested, e.g. +:json+.
#
# @return [Symbol]
def format
return @format if defined? @format
formats = Util.media_types config[:formats]
me... | require 'crepe/versioning/request'
module Crepe
module Versioning
+ # Crepe::Endpoint needs a format override.
module Endpoint
# The most acceptable format requested, e.g. +:json+.
#
# @return [Symbol]
def format
return @format if defined? @format
... | 1 | 0.052632 | 1 | 0 |
b6ddc2ba05bd552290853a78952025f8dbc44409 | deployment_scripts/puppet/modules/lma_monitoring_analytics/metadata.json | deployment_scripts/puppet/modules/lma_monitoring_analytics/metadata.json | {
"name": "lma_monitoring_analytics",
"version": "1.0.0",
"author": "Guillaume Thouvenin <gthouvenin@mirantis.com>",
"summary": "Provides Grafana for InfluxDB for LMA monitoring analytics",
"license": "Apache-2.0",
"source": "git://git.openstack.org/cgit/stackforge/fuel-plugin-influxdb-grafana.g... | {
"name": "lma_monitoring_analytics",
"version": "1.0.0",
"author": "Guillaume Thouvenin <gthouvenin@mirantis.com>",
"summary": "Provides Grafana for InfluxDB for LMA monitoring analytics",
"license": "Apache-2.0",
"source": "git://git.openstack.org/cgit/stackforge/fuel-plugin-influxdb-grafana.g... | Remove nginx Puppet module dependency | Remove nginx Puppet module dependency
Change-Id: I005f738acaf49117dd4f737a5385c45de2e38f0a
| JSON | apache-2.0 | stackforge/fuel-plugin-influxdb-grafana,stackforge/fuel-plugin-influxdb-grafana,stackforge/fuel-plugin-influxdb-grafana,stackforge/fuel-plugin-influxdb-grafana | json | ## Code Before:
{
"name": "lma_monitoring_analytics",
"version": "1.0.0",
"author": "Guillaume Thouvenin <gthouvenin@mirantis.com>",
"summary": "Provides Grafana for InfluxDB for LMA monitoring analytics",
"license": "Apache-2.0",
"source": "git://git.openstack.org/cgit/stackforge/fuel-plugin-in... | {
"name": "lma_monitoring_analytics",
"version": "1.0.0",
"author": "Guillaume Thouvenin <gthouvenin@mirantis.com>",
"summary": "Provides Grafana for InfluxDB for LMA monitoring analytics",
"license": "Apache-2.0",
"source": "git://git.openstack.org/cgit/stackforge/fuel-plugin-infl... | 1 | 0.038462 | 0 | 1 |
25a93f9091e2b0c744a11a6aa4074e1ab657e333 | README.md | README.md | gmap-fm
=======
Retrieve online digital map data from Google to provide local calculation resource.
| gmap-fm
=======
Retrieve online digital map data from Google to visualize local resource.
Framework
---------
1. Frontend uses jQuery to present the content to users.
2. Use Google Map API to visualize data.
3. Backend uses MongoDB database to store and manage trajectory data
4. Server is built on python BaseHTTPServ... | Update the project readme file | Update the project readme file
| Markdown | mit | thekingofkings/gmap-fm,thekingofkings/gmap-fm,thekingofkings/gmap-fm | markdown | ## Code Before:
gmap-fm
=======
Retrieve online digital map data from Google to provide local calculation resource.
## Instruction:
Update the project readme file
## Code After:
gmap-fm
=======
Retrieve online digital map data from Google to visualize local resource.
Framework
---------
1. Frontend uses jQuery to ... | gmap-fm
=======
- Retrieve online digital map data from Google to provide local calculation resource.
? --- ^ ------------
+ Retrieve online digital map data from Google to visualize local resource.
? ^^^^^^... | 9 | 2.25 | 8 | 1 |
87a3ce1f57961d68daead09340c2da9bff568501 | src/components/Home.vue | src/components/Home.vue | <template>
<div class="container">
<h1>{{ title }}</h1>
<div id="search">
</div>
<ul>
<serie v-for="serie in series" :key="serie.id" :serie-details="serie" @clicked="toggleFavorites($event)"></serie>
</ul>
</div>
</template>
<script>
import Serie from '@/comp... | <template>
<div class="container">
<h1>{{ title }}</h1>
<div id="search">
<input type="text" v-model="search" class="form-control" placeholder="Filtrer...">
</div>
<ul>
<serie v-for="serie in filteredSeries" :key="serie.id" :serie-details="serie" @clicked="tog... | Add search input to filter series | Add search input to filter series
| Vue | apache-2.0 | GregoryBevan/devfest-vuejs,GregoryBevan/devfest-vuejs | vue | ## Code Before:
<template>
<div class="container">
<h1>{{ title }}</h1>
<div id="search">
</div>
<ul>
<serie v-for="serie in series" :key="serie.id" :serie-details="serie" @clicked="toggleFavorites($event)"></serie>
</ul>
</div>
</template>
<script>
import Se... | <template>
<div class="container">
<h1>{{ title }}</h1>
<div id="search">
+ <input type="text" v-model="search" class="form-control" placeholder="Filtrer...">
</div>
<ul>
- <serie v-for="serie in series" :key="serie.id" :serie-details="serie" @clic... | 11 | 0.244444 | 9 | 2 |
019beb13dcf5d594dd7c6a201d0b9db5d3b36e91 | config-template.json | config-template.json | {
"api_key": "<discord api key here>",
"services": {
"BiblesOrg": {
"api_key": "<bibles.org api key here>"
},
"BibleGateway": {}
},
"bibles": {
"esv": {
"name": "English Standard Version",
"service": "BiblesOrg",
"service_version": "eng-ESV"
},
"kjv": {
"nam... | {
"api_key": "<discord api key here>",
"services": {
"BiblesOrg": {
"api_key": "<bibles.org api key here>"
},
"BibleGateway": {}
},
"bibles": {
"esv": {
"name": "English Standard Version",
"abbr": "ESV",
"service": "BiblesOrg",
"service_version": "eng-ESV"
},
... | Add "abbr" to Bible objects in config template | Add "abbr" to Bible objects in config template
| JSON | bsd-3-clause | bryanforbes/Erasmus | json | ## Code Before:
{
"api_key": "<discord api key here>",
"services": {
"BiblesOrg": {
"api_key": "<bibles.org api key here>"
},
"BibleGateway": {}
},
"bibles": {
"esv": {
"name": "English Standard Version",
"service": "BiblesOrg",
"service_version": "eng-ESV"
},
"kj... | {
"api_key": "<discord api key here>",
"services": {
"BiblesOrg": {
"api_key": "<bibles.org api key here>"
},
"BibleGateway": {}
},
"bibles": {
"esv": {
"name": "English Standard Version",
+ "abbr": "ESV",
"service": "BiblesOrg",
"service_v... | 6 | 0.146341 | 6 | 0 |
106ea580471387a3645877f52018ff2880db34f3 | live_studio/config/forms.py | live_studio/config/forms.py | from django import forms
from .models import Config
class ConfigForm(forms.ModelForm):
class Meta:
model = Config
exclude = ('created', 'user')
PAGES = (
('base',),
('distribution',),
('media_type',),
('architecture',),
('installer',),
('locale', 'keyboard_layout'),
)
WIZ... | from django import forms
from .models import Config
class ConfigForm(forms.ModelForm):
class Meta:
model = Config
exclude = ('created', 'user')
PAGES = (
('base',),
('distribution',),
('media_type',),
('architecture',),
('installer',),
('locale', 'keyboard_layout'),
)
WIZ... | Use radio buttons for most of the interface. | Use radio buttons for most of the interface.
Signed-off-by: Chris Lamb <29e6d179a8d73471df7861382db6dd7e64138033@debian.org>
| Python | agpl-3.0 | lamby/live-studio,lamby/live-studio,lamby/live-studio,debian-live/live-studio,debian-live/live-studio,debian-live/live-studio | python | ## Code Before:
from django import forms
from .models import Config
class ConfigForm(forms.ModelForm):
class Meta:
model = Config
exclude = ('created', 'user')
PAGES = (
('base',),
('distribution',),
('media_type',),
('architecture',),
('installer',),
('locale', 'keyboard_... | from django import forms
from .models import Config
class ConfigForm(forms.ModelForm):
class Meta:
model = Config
exclude = ('created', 'user')
PAGES = (
('base',),
('distribution',),
('media_type',),
('architecture',),
('installer',),
('loc... | 7 | 0.269231 | 7 | 0 |
7159908eb64ebe4a1d0b94435e8d2ba318b44b63 | setup.py | setup.py | from setuptools import setup
import re
import os
import requests
def get_pip_version(pkginfo_url):
pkginfo = requests.get(pkginfo_url).text
for record in pkginfo.split('\n'):
if record.startswith('Version'):
current_version = str(record).split(':',1)
return (current_version[1]).... | from setuptools import setup
setup(
name='taskcat',
packages=['taskcat'],
description='An OpenSource Cloudformation Deployment Framework',
author='Tony Vattathil, Santiago Cardenas, Shivansh Singh',
author_email='tonynv@amazon.com, sancard@amazon.com, sshvans@amazon.com',
url='https://aws-quicks... | Revert Auto Version (Versioning is now managed by CI) | Revert Auto Version (Versioning is now managed by CI)
| Python | apache-2.0 | aws-quickstart/taskcat,aws-quickstart/taskcat,aws-quickstart/taskcat | python | ## Code Before:
from setuptools import setup
import re
import os
import requests
def get_pip_version(pkginfo_url):
pkginfo = requests.get(pkginfo_url).text
for record in pkginfo.split('\n'):
if record.startswith('Version'):
current_version = str(record).split(':',1)
return (curr... | from setuptools import setup
- import re
- import os
- import requests
- def get_pip_version(pkginfo_url):
- pkginfo = requests.get(pkginfo_url).text
- for record in pkginfo.split('\n'):
- if record.startswith('Version'):
- current_version = str(record).split(':',1)
- return (... | 24 | 0.545455 | 1 | 23 |
2dba897ed903815e6f904aa04a16abfbfeb02f7b | CMakeLists.txt | CMakeLists.txt | cmake_minimum_required(VERSION 2.8)
project(amqp-cpp)
# ensure c++11 on all compilers
include(set_cxx_norm.cmake)
set_cxx_norm (${CXX_NORM_CXX11})
macro (add_sources)
file (RELATIVE_PATH _relPath "${PROJECT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
foreach (_src ${ARGN})
if (_relPath)
l... | cmake_minimum_required(VERSION 2.8)
project(amqp-cpp)
# ensure c++11 on all compilers
include(set_cxx_norm.cmake)
set_cxx_norm (${CXX_NORM_CXX11})
macro (add_sources)
file (RELATIVE_PATH _relPath "${PROJECT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
foreach (_src ${ARGN})
if (_relPath)
l... | Add install target to CMake. | Add install target to CMake.
| Text | apache-2.0 | tm604/AMQP-CPP,tangkingchun/AMQP-CPP,Kojoley/AMQP-CPP,tangkingchun/AMQP-CPP,antoniomonty/AMQP-CPP,toolking/AMQP-CPP,fantastory/AMQP-CPP,tm604/AMQP-CPP,fantastory/AMQP-CPP,Kojoley/AMQP-CPP,antoniomonty/AMQP-CPP,toolking/AMQP-CPP,CopernicaMarketingSoftware/AMQP-CPP,CopernicaMarketingSoftware/AMQP-CPP | text | ## Code Before:
cmake_minimum_required(VERSION 2.8)
project(amqp-cpp)
# ensure c++11 on all compilers
include(set_cxx_norm.cmake)
set_cxx_norm (${CXX_NORM_CXX11})
macro (add_sources)
file (RELATIVE_PATH _relPath "${PROJECT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
foreach (_src ${ARGN})
if (_relPat... | cmake_minimum_required(VERSION 2.8)
project(amqp-cpp)
# ensure c++11 on all compilers
include(set_cxx_norm.cmake)
set_cxx_norm (${CXX_NORM_CXX11})
macro (add_sources)
file (RELATIVE_PATH _relPath "${PROJECT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
foreach (_src ${ARGN})
if ... | 3 | 0.096774 | 3 | 0 |
5aa8bcf6400824b4856eafb178cee723f0927c27 | utils/Cargo.toml | utils/Cargo.toml | [package]
name = "asn1-parse-utils"
version = "0.1.0"
authors = ["Josh <keeperofdakeys@gmail.comm>"]
[[bin]]
path = "src/asn1-spec-dump.rs"
name = "dump"
[dependencies]
asn1-parse = { path = "../../asn1-parse" }
nom = "^1.2"
argparse = "0.2"
| [package]
name = "asn1-parse-utils"
version = "0.1.0"
authors = ["Josh <keeperofdakeys@gmail.comm>"]
[[bin]]
path = "src/asn1-spec-dump.rs"
name = "dump"
[dependencies]
asn1-parse = { path = "../" }
# nom = "^1.2"
nom = { path = "../../nom" }
argparse = "0.2"
| Use local nom until eol patch is landed | Use local nom until eol patch is landed
| TOML | apache-2.0 | keeperofdakeys/asn1-parse,keeperofdakeys/asn1-parse | toml | ## Code Before:
[package]
name = "asn1-parse-utils"
version = "0.1.0"
authors = ["Josh <keeperofdakeys@gmail.comm>"]
[[bin]]
path = "src/asn1-spec-dump.rs"
name = "dump"
[dependencies]
asn1-parse = { path = "../../asn1-parse" }
nom = "^1.2"
argparse = "0.2"
## Instruction:
Use local nom until eol patch is landed
##... | [package]
name = "asn1-parse-utils"
version = "0.1.0"
authors = ["Josh <keeperofdakeys@gmail.comm>"]
[[bin]]
path = "src/asn1-spec-dump.rs"
name = "dump"
[dependencies]
- asn1-parse = { path = "../../asn1-parse" }
? -------------
+ asn1-parse = { path = "../" }
- nom = "... | 5 | 0.384615 | 3 | 2 |
6c2ef049a9ef00b4c753f614830d2d51be87dcf3 | tools/renew-certificates.sh | tools/renew-certificates.sh |
moziot_dir="/home/pi/mozilla-iot"
certbot renew \
--config-dir "$moziot_dir/etc" \
--logs-dir "$moziot_dir/var/log" \
--work-dir "$moziot_dir/var/lib" \
--deploy-hook "$moziot_dir/gateway/tools/deploy-certificates.sh"
|
moziot_dir="/home/pi/mozilla-iot"
certbot renew \
--config-dir "$moziot_dir/etc" \
--logs-dir "$moziot_dir/var/log" \
--work-dir "$moziot_dir/var/lib" \
--deploy-hook "$moziot_dir/gateway/tools/deploy-certificates.sh"
chown -R pi:pi "$moziot_dir/etc" "$moziot_dir/var"
| Fix permissions after renewing certs. | Fix permissions after renewing certs.
| Shell | mpl-2.0 | mozilla-iot/gateway,moziot/gateway,moziot/gateway,mozilla-iot/gateway,mozilla-iot/gateway,mozilla-iot/gateway,moziot/gateway,mozilla-iot/gateway | shell | ## Code Before:
moziot_dir="/home/pi/mozilla-iot"
certbot renew \
--config-dir "$moziot_dir/etc" \
--logs-dir "$moziot_dir/var/log" \
--work-dir "$moziot_dir/var/lib" \
--deploy-hook "$moziot_dir/gateway/tools/deploy-certificates.sh"
## Instruction:
Fix permissions after renewing certs.
## Code Afte... |
moziot_dir="/home/pi/mozilla-iot"
certbot renew \
--config-dir "$moziot_dir/etc" \
--logs-dir "$moziot_dir/var/log" \
--work-dir "$moziot_dir/var/lib" \
--deploy-hook "$moziot_dir/gateway/tools/deploy-certificates.sh"
+
+ chown -R pi:pi "$moziot_dir/etc" "$moziot_dir/var" | 2 | 0.25 | 2 | 0 |
254d2831fcab758f55302a01032fe73c3fe49e10 | www/modules/core/components/session.service.js | www/modules/core/components/session.service.js | (function() {
'use strict';
angular.module('Core')
.service('sessionService', sessionService);
sessionService.$inject = ['commonService'];
function sessionService(commonService) {
var service = this;
service.isUserLoggedIn = isUserLoggedIn;
/* ===============... | (function() {
'use strict';
angular.module('Core')
.service('sessionService', sessionService);
sessionService.$inject = [];
function sessionService() {
var service = this;
service.isUserLoggedIn = isUserLoggedIn;
/* ======================================== Va... | Remove commonSvc dependency to prevent circular dependency | Remove commonSvc dependency to prevent circular dependency
| JavaScript | mit | tlkiong/cxa_test,tlkiong/cxa_test | javascript | ## Code Before:
(function() {
'use strict';
angular.module('Core')
.service('sessionService', sessionService);
sessionService.$inject = ['commonService'];
function sessionService(commonService) {
var service = this;
service.isUserLoggedIn = isUserLoggedIn;
/*... | (function() {
'use strict';
angular.module('Core')
.service('sessionService', sessionService);
- sessionService.$inject = ['commonService'];
? ---------------
+ sessionService.$inject = [];
- function sessionService(commonService) {
... | 4 | 0.117647 | 2 | 2 |
74ff9b6416a1225f2051ff7dde7f6e5b16b5f847 | app/js/services.js | app/js/services.js | 'use strict';
/* Services */
// Demonstrate how to register services
// In this case it is a simple value service.
angular.module('myApp.services', []).
value('version', '0.1')
.factory("moviesService", function($http){
var _movies = [];
var _getMovies = function(){
$http.get("js/data/movies.jso... | 'use strict';
/* Services */
// Demonstrate how to register services
// In this case it is a simple value service.
angular.module('myApp.services', []).
value('version', '0.1')
.factory("moviesService", function($http){
var _movies = [];
var _getMovies = function(){
$http.get("js/data/movies.jso... | Comment for revealing module pattern | Comment for revealing module pattern
| JavaScript | mit | compufreakjosh/add-delete-routing,compufreakjosh/add-delete-routing,compufreakjosh/add-delete-routing,compufreakjosh/add-delete-routing | javascript | ## Code Before:
'use strict';
/* Services */
// Demonstrate how to register services
// In this case it is a simple value service.
angular.module('myApp.services', []).
value('version', '0.1')
.factory("moviesService", function($http){
var _movies = [];
var _getMovies = function(){
$http.get("js... | 'use strict';
/* Services */
// Demonstrate how to register services
// In this case it is a simple value service.
angular.module('myApp.services', []).
value('version', '0.1')
.factory("moviesService", function($http){
var _movies = [];
var _getMovies = function(){
$... | 2 | 0.044444 | 1 | 1 |
806885d20b798a4120e301790efc5fb9077a853e | lib/osc-ruby/em_server.rb | lib/osc-ruby/em_server.rb | require 'eventmachine'
module OSC
Channel = EM::Channel.new
class Connection < EventMachine::Connection
def receive_data(data)
ip_info = get_peername[2,6].unpack("nC4")
Channel << OSC::OSCPacket.messages_from_network(data, ip_info)
end
end
class EMServer
def initialize(port = 3333)
... | require 'eventmachine'
module OSC
Channel = EM::Channel.new
class Connection < EventMachine::Connection
def receive_data(data)
ip_info = get_peername[2,6].unpack("nC4")
Channel << OSC::OSCPacket.messages_from_network(data, ip_info)
end
end
class EMServer
def initialize(port = 3333)
... | Use actual exceptions for handler errors | Use actual exceptions for handler errors
| Ruby | mit | aberant/osc-ruby,aberant/osc-ruby | ruby | ## Code Before:
require 'eventmachine'
module OSC
Channel = EM::Channel.new
class Connection < EventMachine::Connection
def receive_data(data)
ip_info = get_peername[2,6].unpack("nC4")
Channel << OSC::OSCPacket.messages_from_network(data, ip_info)
end
end
class EMServer
def initializ... | require 'eventmachine'
module OSC
Channel = EM::Channel.new
class Connection < EventMachine::Connection
def receive_data(data)
ip_info = get_peername[2,6].unpack("nC4")
Channel << OSC::OSCPacket.messages_from_network(data, ip_info)
end
end
class EMServer
... | 3 | 0.046875 | 1 | 2 |
051992e0dd7bc5b9a4f8d84eb0b7dcca31dc0bfb | project.clj | project.clj | (defproject com.taoensso/faraday "0.5.2"
:description "Clojure DynamoDB client"
:url "https://github.com/ptaoussanis/faraday"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
[org.clojure/... | (defproject com.taoensso/faraday "0.5.2"
:description "Clojure DynamoDB client"
:url "https://github.com/ptaoussanis/faraday"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
[org.clojure/... | Add dependency (Expectations 1.4.43 & plugins) | Add dependency (Expectations 1.4.43 & plugins)
| Clojure | epl-1.0 | jeffh/faraday,ptaoussanis/faraday,langford/faraday,marcuswr/faraday-rotary | clojure | ## Code Before:
(defproject com.taoensso/faraday "0.5.2"
:description "Clojure DynamoDB client"
:url "https://github.com/ptaoussanis/faraday"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
... | (defproject com.taoensso/faraday "0.5.2"
:description "Clojure DynamoDB client"
:url "https://github.com/ptaoussanis/faraday"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
... | 5 | 0.277778 | 4 | 1 |
2fa22fb28e11abbbfbe5dc4a43ce94b287f71e43 | project/plugins.sbt | project/plugins.sbt | resolvers += Resolver.url("artifactory", url("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.4.2")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.10.0")
addSbtPlugin("com.openstudy" % "sbt-resource-management... | resolvers += Resolver.url("artifactory", url("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.4.2")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.10.0")
addSbtPlugin("com.openstudy" % "sbt-resource-management... | Use release 0.4.2 of sbt-resource-management. | Use release 0.4.2 of sbt-resource-management.
| Scala | apache-2.0 | farmdawgnation/anchortab,farmdawgnation/anchortab,farmdawgnation/anchortab,farmdawgnation/anchortab | scala | ## Code Before:
resolvers += Resolver.url("artifactory", url("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.4.2")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.10.0")
addSbtPlugin("com.openstudy" % "sbt-res... | resolvers += Resolver.url("artifactory", url("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.4.2")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.10.0")
- addSbtPlugin("com.openstudy" % "sbt-resou... | 2 | 0.222222 | 1 | 1 |
248f8e37846e06a53305785ec09de42213fb0876 | st2tests/st2tests/fixtures/generic/actionchains/chain_with_output.json | st2tests/st2tests/fixtures/generic/actionchains/chain_with_output.json | {
"vars": {
"strtype": "{{system.a}}",
"inttype": 1
},
"chain": [
{
"name": "c1",
"ref": "wolfpack.a2",
"params":
{
"inttype": "{{inttype}}",
"strtype": "{{strtype}}",
"booltype": true
... | {
"vars": {
"strtype": "{{system.a}}",
"inttype": 1
},
"chain": [
{
"name": "c1",
"ref": "wolfpack.a2",
"params":
{
"inttype": "{{inttype}}",
"strtype": "{{strtype}}",
"booltype": true
... | Update fixture to include output and multiple nodes. | Update fixture to include output and multiple nodes.
| JSON | apache-2.0 | StackStorm/st2,nzlosh/st2,pixelrebel/st2,peak6/st2,Plexxi/st2,StackStorm/st2,lakshmi-kannan/st2,tonybaloney/st2,grengojbo/st2,pinterb/st2,pinterb/st2,emedvedev/st2,dennybaa/st2,armab/st2,alfasin/st2,nzlosh/st2,Itxaka/st2,peak6/st2,Itxaka/st2,punalpatel/st2,grengojbo/st2,emedvedev/st2,armab/st2,armab/st2,lakshmi-kannan/... | json | ## Code Before:
{
"vars": {
"strtype": "{{system.a}}",
"inttype": 1
},
"chain": [
{
"name": "c1",
"ref": "wolfpack.a2",
"params":
{
"inttype": "{{inttype}}",
"strtype": "{{strtype}}",
"boo... | {
"vars": {
"strtype": "{{system.a}}",
"inttype": 1
},
"chain": [
{
"name": "c1",
"ref": "wolfpack.a2",
"params":
{
"inttype": "{{inttype}}",
"strtype": "{{strtype}}",
... | 11 | 0.478261 | 11 | 0 |
4ab058dbc4cd8e38355012d19b00f956df8d85da | README.md | README.md |
A [less] mixin for [flexbox].
## Available Mixins
The mixin names and their values correspond to the official draft.
* `display`
* `justify-content`
* `align-items`
* `align-self`
* `align-content`
* `order`
* `flex`
* `flex-grow`
* `flex-shrink`
* `flex-basis`
* `flex-direction`
* `flex-wrap`
* `flex-grow`
## B... |
A [less] mixin for [flexbox].
## Available Mixins
The mixin names and their values correspond to the official draft.
* `display`
* `justify-content`
* `align-items`
* `align-self`
* `align-content`
* `order`
* `flex`
* `flex-grow`
* `flex-shrink`
* `flex-basis`
* `flex-direction`
* `flex-wrap`
* `flex-grow`
## B... | Add notice about shitty firefox | Add notice about shitty firefox
| Markdown | mit | codio/Flex.less,jianliaoim/Flex.less | markdown | ## Code Before:
A [less] mixin for [flexbox].
## Available Mixins
The mixin names and their values correspond to the official draft.
* `display`
* `justify-content`
* `align-items`
* `align-self`
* `align-content`
* `order`
* `flex`
* `flex-grow`
* `flex-shrink`
* `flex-basis`
* `flex-direction`
* `flex-wrap`
* `f... |
A [less] mixin for [flexbox].
## Available Mixins
The mixin names and their values correspond to the official draft.
* `display`
* `justify-content`
* `align-items`
* `align-self`
* `align-content`
* `order`
* `flex`
* `flex-grow`
* `flex-shrink`
* `flex-basis`
* `flex-directi... | 15 | 0.384615 | 15 | 0 |
01535f9ad9e25ff8856b01ab7dc14ad69fc45b53 | src/Repositories/SeriesRepository.php | src/Repositories/SeriesRepository.php | <?php namespace Bishopm\Connexion\Repositories;
use Bishopm\Connexion\Repositories\EloquentBaseRepository;
class SeriesRepository extends EloquentBaseRepository
{
public function findwithsermons($id)
{
return $series=$this->model->with('sermons')->where('id',$id)->first();
}
public function all... | <?php namespace Bishopm\Connexion\Repositories;
use Bishopm\Connexion\Repositories\EloquentBaseRepository;
class SeriesRepository extends EloquentBaseRepository
{
public function findwithsermons($id)
{
return $this->model->with('sermons.comments')->where('id',$id)->first();
}
public function al... | Include sermon comments for API | Include sermon comments for API
| PHP | mit | bishopm/base,bishopm/base,bishopm/connexion,bishopm/connexion,bishopm/base,bishopm/connexion | php | ## Code Before:
<?php namespace Bishopm\Connexion\Repositories;
use Bishopm\Connexion\Repositories\EloquentBaseRepository;
class SeriesRepository extends EloquentBaseRepository
{
public function findwithsermons($id)
{
return $series=$this->model->with('sermons')->where('id',$id)->first();
}
pub... | <?php namespace Bishopm\Connexion\Repositories;
use Bishopm\Connexion\Repositories\EloquentBaseRepository;
class SeriesRepository extends EloquentBaseRepository
{
public function findwithsermons($id)
{
- return $series=$this->model->with('sermons')->where('id',$id)->first();
? ... | 2 | 0.117647 | 1 | 1 |
3ccaf18243232d756ed139d9f84a6b3903af15f7 | exploratory_analysis/author_scan.py | exploratory_analysis/author_scan.py | import os
from utils import Reader
import code
import sys
author_dict = dict()
def extract_authors(tweets):
# code.interact(local=dict(globals(), **locals()))
for t in tweets:
if t.is_post():
actor = t.actor()
create_key(actor['id'])
increment_author(actor, t.is_p... | import os
from utils import Reader
import code
import sys
def extract_authors(tweets):
for t in tweets:
if t.is_post():
actor = t.actor()
print '"{}","{}","{}","{}",{},{}'.format(actor['id'],
actor['link'],
... | Print everything out in csv and use tableau to do calculation | Print everything out in csv and use tableau to do calculation
| Python | apache-2.0 | chuajiesheng/twitter-sentiment-analysis | python | ## Code Before:
import os
from utils import Reader
import code
import sys
author_dict = dict()
def extract_authors(tweets):
# code.interact(local=dict(globals(), **locals()))
for t in tweets:
if t.is_post():
actor = t.actor()
create_key(actor['id'])
increment_auth... | import os
from utils import Reader
import code
import sys
- author_dict = dict()
-
def extract_authors(tweets):
- # code.interact(local=dict(globals(), **locals()))
-
for t in tweets:
if t.is_post():
actor = t.actor()
- create_key(actor['id'])
- ... | 46 | 0.69697 | 10 | 36 |
5fc87a678fc30482b854618f11cba187d0a67e16 | dart_test.yaml | dart_test.yaml | presets:
travis:
# Travis is sloooow.
timeout: 3x
| presets:
travis:
# Travis is sloooow.
timeout: 3x
# Pub has a huge number of small suites, which means test is frequently
# loading new ones. Keeping concurrency low helps limit load timeouts.
concurrency: 4
| Use low concurrency on Travis. | Use low concurrency on Travis.
4 is just a guess here.
| YAML | bsd-3-clause | dart-lang/pub,dart-lang/pub | yaml | ## Code Before:
presets:
travis:
# Travis is sloooow.
timeout: 3x
## Instruction:
Use low concurrency on Travis.
4 is just a guess here.
## Code After:
presets:
travis:
# Travis is sloooow.
timeout: 3x
# Pub has a huge number of small suites, which means test is frequently
# loading new ... | presets:
travis:
# Travis is sloooow.
timeout: 3x
+
+ # Pub has a huge number of small suites, which means test is frequently
+ # loading new ones. Keeping concurrency low helps limit load timeouts.
+ concurrency: 4 | 4 | 1 | 4 | 0 |
d079caadc86f718720cf61e20b3b27d66cc00102 | .expeditor/update_version.sh | .expeditor/update_version.sh |
set -evx
VERSION=$(cat VERSION)
sed -i -r "s/^(\s*)VERSION = \".+\"/\1VERSION = \"${VERSION}\"/" lib/chef_fixie/version.rb
# Once Expeditor finshes executing this script, it will commit the changes and push
# the commit as a new tag corresponding to the value in the VERSION file.
|
set -evx
sed -i -r "s/^(\s*)VERSION = \".+\"/\1VERSION = \"$(cat VERSION)\"/" lib/chef_fixie/version.rb
# Once Expeditor finshes executing this script, it will commit the changes and push
# the commit as a new tag corresponding to the value in the VERSION file.
| Revert "Fix version bump for fixie" | Revert "Fix version bump for fixie"
This reverts commit 20485ba57b86457181272fbc86c86101d62abfe2.
| Shell | apache-2.0 | chef/fixie,chef/fixie | shell | ## Code Before:
set -evx
VERSION=$(cat VERSION)
sed -i -r "s/^(\s*)VERSION = \".+\"/\1VERSION = \"${VERSION}\"/" lib/chef_fixie/version.rb
# Once Expeditor finshes executing this script, it will commit the changes and push
# the commit as a new tag corresponding to the value in the VERSION file.
## Instruction:
Reve... |
set -evx
- VERSION=$(cat VERSION)
+
- sed -i -r "s/^(\s*)VERSION = \".+\"/\1VERSION = \"${VERSION}\"/" lib/chef_fixie/version.rb
? ^ ^
+ sed -i -r "s/^(\s*)VERSION = \".+\"/\1VERSION = \"$(cat VERSION)\"/" lib/chef_fixie/version.rb
? ... | 4 | 0.571429 | 2 | 2 |
573db628a9882d20339b9d66a583981abc2e3446 | assets/stylesheets/modules/_panels.scss | assets/stylesheets/modules/_panels.scss | // Elements overrides
.form-group {
.panel-border-narrow {
padding-bottom: em(15, 19);
}
}
| // Elements overrides
.panel {
margin-bottom: $gutter-half;
@include media(tablet) {
margin-bottom: $gutter;
}
&:last-child {
margin-bottom: 0;
}
}
.form-group {
.panel-border-narrow {
padding-bottom: em(15, 19);
}
}
| Increase bottom margin of panels | Increase bottom margin of panels
Increase the bottom margin of panels to follow form-group spacing and allow more space between these and other form elements.
| SCSS | mit | UKHomeOffice/passports-frontend-toolkit | scss | ## Code Before:
// Elements overrides
.form-group {
.panel-border-narrow {
padding-bottom: em(15, 19);
}
}
## Instruction:
Increase bottom margin of panels
Increase the bottom margin of panels to follow form-group spacing and allow more space between these and other form elements.
## Code After:
// E... | // Elements overrides
+
+ .panel {
+ margin-bottom: $gutter-half;
+ @include media(tablet) {
+ margin-bottom: $gutter;
+ }
+
+ &:last-child {
+ margin-bottom: 0;
+ }
+ }
+
.form-group {
.panel-border-narrow {
padding-bottom: em(15, 19);
}
} | 12 | 2 | 12 | 0 |
8e87598d8b641647100f4e05508995948f1282f0 | Tests/Integration/BlockRepositoryTest.php | Tests/Integration/BlockRepositoryTest.php | <?php namespace Modules\Block\Tests\Integration;
class BlockRepositoryTest extends BaseBlockTest
{
/** @test */
public function it_creates_blocks()
{
$block = $this->block->create(['name' => 'testBlock', 'en' => ['body' => 'lorem en'], 'fr' => ['body' => 'lorem fr']]);
$blocks = $this->bloc... | <?php namespace Modules\Block\Tests\Integration;
use Faker\Factory;
class BlockRepositoryTest extends BaseBlockTest
{
/** @test */
public function it_creates_blocks()
{
$block = $this->block->create(['name' => 'testBlock', 'en' => ['body' => 'lorem en'], 'fr' => ['body' => 'lorem fr']]);
$... | Test for getting all blocks in given language | Test for getting all blocks in given language
| PHP | mit | oimken/Block,simonfunk/Block,oimken/Block | php | ## Code Before:
<?php namespace Modules\Block\Tests\Integration;
class BlockRepositoryTest extends BaseBlockTest
{
/** @test */
public function it_creates_blocks()
{
$block = $this->block->create(['name' => 'testBlock', 'en' => ['body' => 'lorem en'], 'fr' => ['body' => 'lorem fr']]);
$bloc... | <?php namespace Modules\Block\Tests\Integration;
+
+ use Faker\Factory;
class BlockRepositoryTest extends BaseBlockTest
{
/** @test */
public function it_creates_blocks()
{
$block = $this->block->create(['name' => 'testBlock', 'en' => ['body' => 'lorem en'], 'fr' => ['body' => 'lor... | 44 | 2.75 | 44 | 0 |
2d95a5ba5b20b0b46c587d6ea68d3f4cbc956ba6 | apuniverse/templates/blog/base_blog.html | apuniverse/templates/blog/base_blog.html | {% extends "base.html" %}
{% load taggit_extras %}
{% block title %}Blog{% endblock title %}
{% block extrahead %}
{% endblock extrahead %}
{% block page_title %}
BLOG!
{% endblock page_title %}
{% block aside %}
<div class="links-box">
<h3>Categories</h3>
<nav>
{% get_taglist as all_tags %}
<ul>
{% for ... | {% extends "base.html" %}
{% load taggit_extras %}
{% block title %}Blog{% endblock title %}
{% block extrahead %}
{% endblock extrahead %}
{% block page_title %}
BLOG!
{% endblock page_title %}
{% block aside %}
<div class="links-box">
<h3>Categories</h3>
<nav>
{% get_taglist as all_tags for 'blog'%}
<ul>
... | Remove tag counts because theyre wrong | Remove tag counts because theyre wrong
| HTML | mit | dangerdak/apuniverse,dangerdak/apuniverse,dangerdak/apuniverse | html | ## Code Before:
{% extends "base.html" %}
{% load taggit_extras %}
{% block title %}Blog{% endblock title %}
{% block extrahead %}
{% endblock extrahead %}
{% block page_title %}
BLOG!
{% endblock page_title %}
{% block aside %}
<div class="links-box">
<h3>Categories</h3>
<nav>
{% get_taglist as all_tags %}
... | {% extends "base.html" %}
{% load taggit_extras %}
{% block title %}Blog{% endblock title %}
{% block extrahead %}
{% endblock extrahead %}
{% block page_title %}
BLOG!
{% endblock page_title %}
{% block aside %}
<div class="links-box">
<h3>Categories</h3>
<nav>
- {% get_... | 4 | 0.095238 | 2 | 2 |
859e891a1f5418a877615a510d03f0e421a8140d | layouts/partials/jumbotron.html | layouts/partials/jumbotron.html | {{ $isHomePage := eq .Title .Site.Title }}
<div class="jumbotron" style="background-image: url({{ if $isHomePage }}{{ with .Site.Params.image }}{{ . }}{{ end }}{{ else }}{{ with .Params.image }}{{ . }}{{ end }}{{ end }})">
<div class="container">
<h1>{{ if $isHomePage }}{{ .Site.Title }}{{ else }}{{ .Title... | {{ $isHomePage := eq .Title .Site.Title }}
{{ $baseUrl := .Site.BaseURL }}
<div class="jumbotron" style="background-image: url({{ if isset .Params "image" }}{{ .Params.image }}{{ else }}{{ with .Site.Params.image }}{{ if $isHomePage }}{{ . }}{{ else }}{{ $baseUrl }}/{{ . }}{{ end }}{{ end }}{{ end }});">
<div clas... | Make .Site.Params.image default on other pages | Make .Site.Params.image default on other pages
If a page does not have .Params.image defined, it will use
.Site.Params.image in the jumbotron.
This means all pages will hae jumbotron images.
Signed-off-by: Ethan Madison <0a27e12d062ad71673d57f9c2799b207af316885@ethanmad.com>
| HTML | mit | UM-Fencing/club-theme,UM-Fencing/club-theme | html | ## Code Before:
{{ $isHomePage := eq .Title .Site.Title }}
<div class="jumbotron" style="background-image: url({{ if $isHomePage }}{{ with .Site.Params.image }}{{ . }}{{ end }}{{ else }}{{ with .Params.image }}{{ . }}{{ end }}{{ end }})">
<div class="container">
<h1>{{ if $isHomePage }}{{ .Site.Title }}{{ ... | {{ $isHomePage := eq .Title .Site.Title }}
+ {{ $baseUrl := .Site.BaseURL }}
- <div class="jumbotron" style="background-image: url({{ if $isHomePage }}{{ with .Site.Params.image }}{{ . }}{{ end }}{{ else }}{{ with .Params.image }}{{ . }}{{ end }}{{ end }})">
+ <div class="jumbotron" style="background-image: url({{... | 3 | 0.375 | 2 | 1 |
e884b8a6bda740c9ed0c53761672cacaaf3f7cb6 | appveyor.yml | appveyor.yml | environment:
matrix:
- nodejs_version: '6'
- nodejs_version: '5'
- nodejs_version: '4'
install:
- ps: Install-Product node $env:nodejs_version
- set CI=true
- set CASH_APPVEYOR=true
- npm install -g npm@latest || (timeout 30 && npm install -g npm@latest)
- set PATH=%APPDATA%\npm;%PATH%
- npm i... | environment:
matrix:
- nodejs_version: '7'
- nodejs_version: '6'
- nodejs_version: '5'
- nodejs_version: '4'
install:
- ps: Install-Product node $env:nodejs_version
- set CI=true
- set CASH_APPVEYOR=true
- npm install -g npm@latest || (timeout 30 && npm install -g npm@latest)
- set PATH=%APP... | Update Appveyor to use Node v7 | Update Appveyor to use Node v7 | YAML | mit | dthree/cash | yaml | ## Code Before:
environment:
matrix:
- nodejs_version: '6'
- nodejs_version: '5'
- nodejs_version: '4'
install:
- ps: Install-Product node $env:nodejs_version
- set CI=true
- set CASH_APPVEYOR=true
- npm install -g npm@latest || (timeout 30 && npm install -g npm@latest)
- set PATH=%APPDATA%\npm;... | environment:
matrix:
+ - nodejs_version: '7'
- nodejs_version: '6'
- nodejs_version: '5'
- nodejs_version: '4'
install:
- ps: Install-Product node $env:nodejs_version
- set CI=true
- set CASH_APPVEYOR=true
- npm install -g npm@latest || (timeout 30 && npm install -g npm@lat... | 1 | 0.045455 | 1 | 0 |
e64358edc12b9a2fcbf57ecb2ce17ca609df8d43 | Core/Assembler.h | Core/Assembler.h |
enum class ArmipsMode { FILE, MEMORY };
struct LabelDefinition
{
std::wstring name;
int64_t value;
};
struct EquationDefinition
{
std::wstring name;
std::wstring value;
};
struct ArmipsArguments
{
// common
ArmipsMode mode;
int symFileVersion;
bool errorOnWarning;
bool silent;
StringList* errorsResult;
s... |
enum class ArmipsMode { FILE, MEMORY };
struct LabelDefinition
{
std::wstring name;
int64_t value;
};
struct EquationDefinition
{
std::wstring name;
std::wstring value;
};
struct ArmipsArguments
{
// common
ArmipsMode mode;
int symFileVersion;
bool errorOnWarning;
bool silent;
StringList* errorsResult;
s... | Fix symFileVersion not being initialized in ArmipsArguments constructor | Fix symFileVersion not being initialized in ArmipsArguments constructor
| C | mit | Kingcom/armips,Kingcom/armips,sp1187/armips,sp1187/armips,Kingcom/armips,sp1187/armips | c | ## Code Before:
enum class ArmipsMode { FILE, MEMORY };
struct LabelDefinition
{
std::wstring name;
int64_t value;
};
struct EquationDefinition
{
std::wstring name;
std::wstring value;
};
struct ArmipsArguments
{
// common
ArmipsMode mode;
int symFileVersion;
bool errorOnWarning;
bool silent;
StringList* ... |
enum class ArmipsMode { FILE, MEMORY };
struct LabelDefinition
{
std::wstring name;
int64_t value;
};
struct EquationDefinition
{
std::wstring name;
std::wstring value;
};
struct ArmipsArguments
{
// common
ArmipsMode mode;
int symFileVersion;
bool errorOnWarning;
... | 1 | 0.021277 | 1 | 0 |
1778588444dca3c3c87d05411561fddefa1ecd64 | app/views/spree/admin/container_taxonomies/_list.html.erb | app/views/spree/admin/container_taxonomies/_list.html.erb | <table class="index" id='listing_container_taxonomies' data-hook>
<tr data-hook="container_taxonomies_header">
<th><%= t(:name) %></th>
<th><%= t(:count)%></th>
<th></th>
</tr>
<% @container_taxonomies.each do |container_taxonomy| %>
<tr id="<%= dom_id container_taxonomy %>" data-hook="container_taxon... | <table class="index" id='listing_container_taxonomies' data-hook>
<tr data-hook="container_taxonomies_header">
<th><%= t(:name) %></th>
<th><%= t(:count)%></th>
<th></th>
</tr>
<% @container_taxonomies.each do |container_taxonomy| %>
<tr id="<%= dom_id container_taxonomy %>" data-hook="container_taxon... | Add a show link to container_taxonomies index view | Add a show link to container_taxonomies index view
| HTML+ERB | bsd-3-clause | Genshin/spree_warehouse,Genshin/spree_warehouse | html+erb | ## Code Before:
<table class="index" id='listing_container_taxonomies' data-hook>
<tr data-hook="container_taxonomies_header">
<th><%= t(:name) %></th>
<th><%= t(:count)%></th>
<th></th>
</tr>
<% @container_taxonomies.each do |container_taxonomy| %>
<tr id="<%= dom_id container_taxonomy %>" data-hook=... | <table class="index" id='listing_container_taxonomies' data-hook>
<tr data-hook="container_taxonomies_header">
<th><%= t(:name) %></th>
<th><%= t(:count)%></th>
<th></th>
</tr>
<% @container_taxonomies.each do |container_taxonomy| %>
<tr id="<%= dom_id container_taxonomy %>" data-hook=... | 3 | 0.166667 | 2 | 1 |
93d65e5163d52024708f03caf4799f0b40458a00 | README.md | README.md | infix-doller-reader
===================
Infix $ operator for reducing redundant paranthesis
example:
(fun x y $ fun2 z)
This form above would be expanded to
(fun x y (fun2 z))
| infix-doller-reader
===================
Infix $ operator for reducing redundant paranthesis.
### usage:
1. load package;
(asdf:load-system :infix-doller-reader)
2. enable to use infix $ notation;
(idoller:use-infix-doller)
CAUTION: this operation replaces current \*READTABLE\* wi... | Update readme with usages and more examples | Update readme with usages and more examples
| Markdown | mit | ichimal/infix-dollar-reader | markdown | ## Code Before:
infix-doller-reader
===================
Infix $ operator for reducing redundant paranthesis
example:
(fun x y $ fun2 z)
This form above would be expanded to
(fun x y (fun2 z))
## Instruction:
Update readme with usages and more examples
## Code After:
infix-doller-reader
===================
Inf... | infix-doller-reader
===================
- Infix $ operator for reducing redundant paranthesis
+ Infix $ operator for reducing redundant paranthesis.
? +
+ ### usage:
- example:
- (fun x y $ fun2 z)
- This form above would be expanded to
- (fun x y (fun2 ... | 36 | 3.6 | 31 | 5 |
e4249fd1a9187086d8eff3097d0b322728c83448 | flake.nix | flake.nix | {
description = "glualint - Linter and pretty printer for Garry's Mod's variant of Lua.";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs... | {
description = "glualint - Linter and pretty printer for Garry's Mod's variant of Lua.";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs... | Add HLS to the development environment | Add HLS to the development environment
| Nix | lgpl-2.1 | FPtje/GLuaFixer | nix | ## Code Before:
{
description = "glualint - Linter and pretty printer for Garry's Mod's variant of Lua.";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system:
let
... | {
description = "glualint - Linter and pretty printer for Garry's Mod's variant of Lua.";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system:
let
... | 1 | 0.033333 | 1 | 0 |
db6b875ec1aeae640aac351d55d819fe7baeeb41 | bower.json | bower.json | {
"name": "automation-inspector",
"description": "Inspection app for Chrome Automation API",
"main": "build/app/manifest.json",
"authors": [
"Aaron Leventhal"
],
"license": "Apache-2.0",
"keywords": [
"Chrome",
"automation",
"accessibility"
],
"homepage": "https://github.com/google/aut... | {
"name": "automation-inspector",
"description": "Inspection app for Chrome Automation API",
"main": "build/app/manifest.json",
"authors": [
"Aaron Leventhal"
],
"license": "Apache-2.0",
"keywords": [
"Chrome",
"automation",
"accessibility"
],
"homepage": "https://github.com/google/aut... | Use fancytree with workaround for Chrome treeitem names including too much descendant text | Use fancytree with workaround for Chrome treeitem names including too much descendant text
| JSON | apache-2.0 | google/automation-inspector,google/automation-inspector | json | ## Code Before:
{
"name": "automation-inspector",
"description": "Inspection app for Chrome Automation API",
"main": "build/app/manifest.json",
"authors": [
"Aaron Leventhal"
],
"license": "Apache-2.0",
"keywords": [
"Chrome",
"automation",
"accessibility"
],
"homepage": "https://githu... | {
"name": "automation-inspector",
"description": "Inspection app for Chrome Automation API",
"main": "build/app/manifest.json",
"authors": [
"Aaron Leventhal"
],
"license": "Apache-2.0",
"keywords": [
"Chrome",
"automation",
"accessibility"
],
"homepage": "h... | 2 | 0.071429 | 1 | 1 |
648cdac73ab608dc56fa3ed3faf0f514fdf8b348 | ci/ansible/all.yml | ci/ansible/all.yml | ---
node_config_directory: "/etc/ovn-scale-test"
container_config_directory: "/var/lib/ovn-scale-test/config_files"
deploy_user: "root"
###################
# Docker options
###################
ovn_db_image: "ovn-scale-test-ovn"
ovn_chassis_image: "ovn-scale-test-ovn"
rally_image: "ovn-scale-test-rally"
# Valid op... | ---
node_config_directory: "/etc/ovn-scale-test"
container_config_directory: "/var/lib/ovn-scale-test/config_files"
deploy_user: "root"
###################
# Docker options
###################
ovn_db_image: "huikang/ovn-scale-test-ovn"
ovn_chassis_image: "huikang/ovn-scale-test-ovn"
rally_image: "huikang/ovn-scale... | Update docker image names in ci | Update docker image names in ci
It's unclear how this used to work, but a recent issue arose (see
Isse #74) where running ovn-scale-test using the CI scripts was
failing. This was tracked down to incorrect docker image names.
Closes Issue #74
Signed-off-by: Kyle Mestery <9cfbda34e625c7b0454bcb19a48d07c46f9097d2@mest... | YAML | apache-2.0 | openvswitch/ovn-scale-test,openvswitch/ovn-scale-test,sivakom/ovn-scale-test,sivakom/ovn-scale-test | yaml | ## Code Before:
---
node_config_directory: "/etc/ovn-scale-test"
container_config_directory: "/var/lib/ovn-scale-test/config_files"
deploy_user: "root"
###################
# Docker options
###################
ovn_db_image: "ovn-scale-test-ovn"
ovn_chassis_image: "ovn-scale-test-ovn"
rally_image: "ovn-scale-test-ra... | ---
node_config_directory: "/etc/ovn-scale-test"
container_config_directory: "/var/lib/ovn-scale-test/config_files"
deploy_user: "root"
###################
# Docker options
###################
- ovn_db_image: "ovn-scale-test-ovn"
+ ovn_db_image: "huikang/ovn-scale-test-ovn"
? ++... | 6 | 0.130435 | 3 | 3 |
56c90f495c31ed61aeda21ae4cc2216a2723b464 | core/db/default/spree/stores.rb | core/db/default/spree/stores.rb | unless Spree::Store.where(code: 'spree').exists?
Spree::Store.new do |s|
s.code = 'spree'
s.name = 'Spree Demo Site'
s.url = 'demo.spreecommerce.com'
s.mail_from_address = 'spree@example.com'
end.save!
end
| unless Spree::Store.where(code: 'spree').exists?
Spree::Store.new do |s|
s.code = 'spree'
s.name = 'Spree Demo Site'
s.url = 'demo.spreecommerce.com'
s.mail_from_address = 'spree@example.com'
s.cart_tax_country_iso = Spree::Config.admin_vat_location
end.sa... | Initialize the demo store with a sensible default tax country column | Initialize the demo store with a sensible default tax country column
The current default behaviour in Solidus is one setting for two
behaviour changes: What taxes are included in the prices in the backend,
and how carts without a shipping address are taxed.
While doing the work in separating the two settings, it does... | Ruby | bsd-3-clause | Arpsara/solidus,Arpsara/solidus,Arpsara/solidus,pervino/solidus,jordan-brough/solidus,pervino/solidus,pervino/solidus,pervino/solidus,jordan-brough/solidus,jordan-brough/solidus,Arpsara/solidus,jordan-brough/solidus | ruby | ## Code Before:
unless Spree::Store.where(code: 'spree').exists?
Spree::Store.new do |s|
s.code = 'spree'
s.name = 'Spree Demo Site'
s.url = 'demo.spreecommerce.com'
s.mail_from_address = 'spree@example.com'
end.save!
end
## Instruction:
Initialize the demo s... | unless Spree::Store.where(code: 'spree').exists?
Spree::Store.new do |s|
s.code = 'spree'
s.name = 'Spree Demo Site'
s.url = 'demo.spreecommerce.com'
s.mail_from_address = 'spree@example.com'
+ s.cart_tax_country_iso = Spree::Config.admin_vat_loc... | 1 | 0.125 | 1 | 0 |
0a418d04f67a853d178b16d1ed6a815fc5a63e3b | lib/tytus.rb | lib/tytus.rb |
require "tytus/version"
require "tytus/compatibility"
require "tytus/controller_extensions"
require "tytus/view_extensions"
module Tytus
if defined? Rails::Railtie
require "tytus/railtie"
else
Tytus::Railtie.insert_view
Tytus::Railtie.insert_controller
end
end # Tytus
|
require "rails"
require "tytus/version"
require "tytus/railtie"
require "tytus/compatibility"
require "tytus/controller_extensions"
require "tytus/view_extensions"
module Tytus
if defined? Rails::Railtie
require "tytus/railtie"
else
Tytus::Railtie.insert_view
Tytus::Railtie.insert_controller
end
e... | Add railtie and rails to gem requires | Add railtie and rails to gem requires
| Ruby | mit | peter-murach/tytus,peter-murach/tytus | ruby | ## Code Before:
require "tytus/version"
require "tytus/compatibility"
require "tytus/controller_extensions"
require "tytus/view_extensions"
module Tytus
if defined? Rails::Railtie
require "tytus/railtie"
else
Tytus::Railtie.insert_view
Tytus::Railtie.insert_controller
end
end # Tytus
## Instructi... |
+ require "rails"
require "tytus/version"
+ require "tytus/railtie"
require "tytus/compatibility"
require "tytus/controller_extensions"
require "tytus/view_extensions"
module Tytus
if defined? Rails::Railtie
require "tytus/railtie"
else
Tytus::Railtie.insert_view
Tytus::Rail... | 2 | 0.125 | 2 | 0 |
cf2b6d959acfc700119aaf081b371f940b89c7e8 | conf/pgp-keyservers.php | conf/pgp-keyservers.php | <?php
return [
'keys.openpgp.org',
'keys.fedoraproject.org',
'keyserver.ubuntu.com',
'hkps.pool.sks-keyservers.net'
];
| <?php
return [
'keys.openpgp.org',
'keyserver.ubuntu.com',
'hkps.pool.sks-keyservers.net'
];
| Remove keys.fedoraproject.org from server list | Remove keys.fedoraproject.org from server list
| PHP | bsd-3-clause | phar-io/phive | php | ## Code Before:
<?php
return [
'keys.openpgp.org',
'keys.fedoraproject.org',
'keyserver.ubuntu.com',
'hkps.pool.sks-keyservers.net'
];
## Instruction:
Remove keys.fedoraproject.org from server list
## Code After:
<?php
return [
'keys.openpgp.org',
'keyserver.ubuntu.com',
'hkps.pool.sks-k... | <?php
return [
'keys.openpgp.org',
- 'keys.fedoraproject.org',
'keyserver.ubuntu.com',
'hkps.pool.sks-keyservers.net'
]; | 1 | 0.125 | 0 | 1 |
eeef2a8459090a7fc4dfca1dc3c93f064b4e01e9 | .travis.yml | .travis.yml | sudo: false
language: python
python:
- '2.7'
- '3.5'
env:
- CONDA=true
- CONDA=false
install:
- lsb_release -a
- if [[ "${CONDA}" == "true" ]]; then
source auto_version/travis_install_conda.sh numpy scipy numba pip pytest;
fi
- python setup.py install
script:
- py.test
after_success:
- chmod +x ./.conda_dep... | sudo: false
language: python
python:
- '2.7'
- '3.5'
env:
- CONDA=true
- CONDA=false
install:
- lsb_release -a
- if [[ "${CONDA}" == "true" ]]; then
source auto_version/travis_install_conda.sh numpy scipy numba pip pytest;
fi
- python setup.py install
script:
- py.test
after_success:
- chmod +x ./.conda_dep... | Remove "matrix", but add conditions for pypi deployment | Remove "matrix", but add conditions for pypi deployment
| YAML | mit | moble/quaternion,moble/quaternion | yaml | ## Code Before:
sudo: false
language: python
python:
- '2.7'
- '3.5'
env:
- CONDA=true
- CONDA=false
install:
- lsb_release -a
- if [[ "${CONDA}" == "true" ]]; then
source auto_version/travis_install_conda.sh numpy scipy numba pip pytest;
fi
- python setup.py install
script:
- py.test
after_success:
- chmod... | sudo: false
language: python
python:
- '2.7'
- '3.5'
env:
- CONDA=true
- CONDA=false
install:
- lsb_release -a
- if [[ "${CONDA}" == "true" ]]; then
source auto_version/travis_install_conda.sh numpy scipy numba pip pytest;
fi
- python setup.py install
script:
- py.te... | 3 | 0.081081 | 2 | 1 |
01e79f1297b94ddce9e9f31f16f8d05db6989d0d | lib/awspec/type/route53_hosted_zone.rb | lib/awspec/type/route53_hosted_zone.rb | module Awspec::Type
class Route53HostedZone < ResourceBase
def resource_via_client
@resource_via_client ||= find_hosted_zone(@display_name)
end
def id
@id ||= resource_via_client.id if resource_via_client
end
def resource_via_client_record_sets
@resource_via_client_record_sets ... | module Awspec::Type
class Route53HostedZone < ResourceBase
def resource_via_client
@resource_via_client ||= find_hosted_zone(@display_name)
end
def id
@id ||= resource_via_client.id if resource_via_client
end
def resource_via_client_record_sets
@resource_via_client_record_sets ... | Support "no order guarantee Route53 record value" | Support "no order guarantee Route53 record value"
| Ruby | mit | k1LoW/awspec,k1LoW/awspec | ruby | ## Code Before:
module Awspec::Type
class Route53HostedZone < ResourceBase
def resource_via_client
@resource_via_client ||= find_hosted_zone(@display_name)
end
def id
@id ||= resource_via_client.id if resource_via_client
end
def resource_via_client_record_sets
@resource_via_cli... | module Awspec::Type
class Route53HostedZone < ResourceBase
def resource_via_client
@resource_via_client ||= find_hosted_zone(@display_name)
end
def id
@id ||= resource_via_client.id if resource_via_client
end
def resource_via_client_record_sets
@resource... | 4 | 0.114286 | 2 | 2 |
636ea5cdc91b5dcf51ffb69e17c0a09296f1afae | docs/developer/other/IDE_INTEGRATION.md | docs/developer/other/IDE_INTEGRATION.md |
These scripts automatically generate project configuration for the Intellij and Eclipse editors.
Using these scripts removes the need to run custom import and configuration to integrate uPortal with the Integrated Development Environment (IDE).
## Intellij
1. Open a terminal
2. `cd` to the uPortal folder
3. run
```s... |
These scripts automatically generate project configuration for the Intellij and Eclipse editors.
Using these scripts removes the need to run custom import and configuration to integrate uPortal with the Integrated Development Environment (IDE).
## Intellij
1. Open a terminal
2. `cd` to the uPortal folder
3. run
```s... | Add nested projects option to Eclipse guide. | Add nested projects option to Eclipse guide. | Markdown | apache-2.0 | groybal/uPortal,groybal/uPortal,jonathanmtran/uPortal,cousquer/uPortal,Jasig/uPortal,groybal/uPortal,jonathanmtran/uPortal,cousquer/uPortal,cousquer/uPortal,bjagg/uPortal,jonathanmtran/uPortal,bjagg/uPortal,Jasig/uPortal,groybal/uPortal,mgillian/uPortal,mgillian/uPortal,mgillian/uPortal,ChristianMurphy/uPortal,Christia... | markdown | ## Code Before:
These scripts automatically generate project configuration for the Intellij and Eclipse editors.
Using these scripts removes the need to run custom import and configuration to integrate uPortal with the Integrated Development Environment (IDE).
## Intellij
1. Open a terminal
2. `cd` to the uPortal fo... |
These scripts automatically generate project configuration for the Intellij and Eclipse editors.
Using these scripts removes the need to run custom import and configuration to integrate uPortal with the Integrated Development Environment (IDE).
## Intellij
1. Open a terminal
2. `cd` to the uPortal fo... | 7 | 0.212121 | 4 | 3 |
867087fcb10ee9540696a4c7c24737ac4456437c | app/views/events/index.html.haml | app/views/events/index.html.haml | - provide(:title, '近日開催の道場まとめ')
- provide(:desc, '開催される道場情報をまとめています。')
- provide(:url, @url)
%section.cover
= image_tag "events_cover.png"
%section#events.text-center
%br
%h1 📅 近日開催の道場 (β版)
%br
%p{style: "margin: 0 30px 40px 0px;"}
☯️開催予定のイベントをチェックしましょう! ✅
%br
(Facebook イベントにも
%a{href: "... | - provide(:title, '近日開催の道場まとめ')
- provide(:desc, '開催される道場情報をまとめています。')
- provide(:url, @url)
%section.cover
= image_tag "events_cover.png"
%section#events.text-center
%br
%h1 📅 近日開催の道場 (β版)
%br
%p{style: "margin: 0 30px 40px 0px;"}
☯️開催予定のイベントをチェックしましょう! ✅
%br
(Facebook イベントにも
%a{href: "... | Add links to Issue/PR in GitHub from /events page | Add links to Issue/PR in GitHub from /events page
| Haml | mit | yasslab/coderdojo.jp,coderdojo-japan/coderdojo.jp,coderdojo-japan/coderdojo.jp,yasslab/coderdojo.jp,coderdojo-japan/coderdojo.jp,coderdojo-japan/coderdojo.jp,yasslab/coderdojo.jp | haml | ## Code Before:
- provide(:title, '近日開催の道場まとめ')
- provide(:desc, '開催される道場情報をまとめています。')
- provide(:url, @url)
%section.cover
= image_tag "events_cover.png"
%section#events.text-center
%br
%h1 📅 近日開催の道場 (β版)
%br
%p{style: "margin: 0 30px 40px 0px;"}
☯️開催予定のイベントをチェックしましょう! ✅
%br
(Facebook イベントに... | - provide(:title, '近日開催の道場まとめ')
- provide(:desc, '開催される道場情報をまとめています。')
- provide(:url, @url)
%section.cover
= image_tag "events_cover.png"
%section#events.text-center
%br
%h1 📅 近日開催の道場 (β版)
%br
%p{style: "margin: 0 30px 40px 0px;"}
☯️開催予定のイベントをチェックしましょう! ✅
%br
(... | 12 | 0.571429 | 12 | 0 |
86fbbb5ca26a1e1f601ca469332d5e19a5e7474d | .travis.yml | .travis.yml | language: erlang
branches:
only:
- master
notifications:
email: mongoose-im@erlang-solutions.com
otp_release:
- 21.3
- 22.0
sudo: required
services:
- docker
install:
- make
before_script:
- make mongooseim-start
script:
- make test
... | language: erlang
branches:
only:
- master
notifications:
email: mongoose-im@erlang-solutions.com
otp_release:
- 21.3
- 22.3
- 23.0
sudo: required
services:
- docker
install:
- make
before_script:
- make mongooseim-start
script:
... | Introduce OTP23 and upgrade OTP22 | Introduce OTP23 and upgrade OTP22
| YAML | apache-2.0 | esl/escalus | yaml | ## Code Before:
language: erlang
branches:
only:
- master
notifications:
email: mongoose-im@erlang-solutions.com
otp_release:
- 21.3
- 22.0
sudo: required
services:
- docker
install:
- make
before_script:
- make mongooseim-start
script:
... | language: erlang
branches:
only:
- master
notifications:
email: mongoose-im@erlang-solutions.com
otp_release:
- 21.3
- - 22.0
? ^
+ - 22.3
? ^
+ - 23.0
sudo: required
services:
- docker
... | 3 | 0.090909 | 2 | 1 |
47a7cedf2cc90d495973195a4bf52ec4818fd753 | _drafts/2019-03-26-mistakes.md | _drafts/2019-03-26-mistakes.md | ---
layout: post
title: "List of Programming Mistakes"
description: "A list of programming mistakes that I have encountered."
keywords: ""
---
This article is really a list of a programming mistakes that I have encountered or made myself. This article won't really have any structure.
- Unexpected side-effects
Re... | ---
layout: post
title: "List of Programming Mistakes"
description: "A list of programming mistakes that I have encountered."
keywords: ""
---
This article is really a list of a programming mistakes that I have encountered or made myself. This article won't really have any structure.
- Unexpected side-effects
Re... | Use `numeric_limits` instead of `DBL_MIN` | Use `numeric_limits` instead of `DBL_MIN`
| Markdown | mit | aaronang/aaronang.github.io,aaronang/aaronang.github.io | markdown | ## Code Before:
---
layout: post
title: "List of Programming Mistakes"
description: "A list of programming mistakes that I have encountered."
keywords: ""
---
This article is really a list of a programming mistakes that I have encountered or made myself. This article won't really have any structure.
- Unexpected side... | ---
layout: post
title: "List of Programming Mistakes"
description: "A list of programming mistakes that I have encountered."
keywords: ""
---
This article is really a list of a programming mistakes that I have encountered or made myself. This article won't really have any structure.
- Unexpected ... | 3 | 0.103448 | 2 | 1 |
40a66c58fab00f05c84602eaf258a455a532a77d | scala3doc-testcases/src/tests/objectSignatures.scala | scala3doc-testcases/src/tests/objectSignatures.scala | package tests
package objectSignatures
class A[T]
{
val a: String = "asd"
def method3() = "asd"
}
object A
trait C
object Base
object A2 extends A[String] with C
// We are not going to add final below
// final object B
| package tests
package objectSignatures
class A[T]
{
val a: String = "asd"
def method3() = "asd"
}
object A
trait C
object Base
object A2 extends A[String] with C
object <
object >
// We are not going to add final below
// final object B
| Add testcases to check uniqueness of page links for symbols with special characters | Add testcases to check uniqueness of page links for symbols with special characters
| Scala | apache-2.0 | lampepfl/dotty,dotty-staging/dotty,lampepfl/dotty,lampepfl/dotty,sjrd/dotty,sjrd/dotty,dotty-staging/dotty,dotty-staging/dotty,sjrd/dotty,lampepfl/dotty,dotty-staging/dotty,sjrd/dotty,dotty-staging/dotty,lampepfl/dotty,sjrd/dotty | scala | ## Code Before:
package tests
package objectSignatures
class A[T]
{
val a: String = "asd"
def method3() = "asd"
}
object A
trait C
object Base
object A2 extends A[String] with C
// We are not going to add final below
// final object B
## Instruction:
Add testcases to check uniqueness of page links for symbol... | package tests
package objectSignatures
class A[T]
{
val a: String = "asd"
def method3() = "asd"
}
object A
trait C
object Base
object A2 extends A[String] with C
+ object <
+
+ object >
+
// We are not going to add final below
// final object B | 4 | 0.210526 | 4 | 0 |
dcd399ba3d9c1e3c1ce8a9f654e681d9791e0143 | libraries/index.css | libraries/index.css | justify-content: center;
}
#libraries-index .tabs {
flex-flow: column;
align-items: center;
}
#libraries-index .tabs:first-child {
margin-bottom: -1.5em;
}
#libraries-index .tabs.contains-title > h1 {
margin-left: 0;
margin-right: 0;
}
#libraries-index .tabs ul > li.contains-children {
a... | flex-flow: column;
align-items: center;
}
#libraries-index .tabs:first-child {
margin-bottom: -1.5em;
}
#libraries-index .tabs.contains-title > h1 {
margin-left: 0;
margin-right: 0;
}
#libraries-index .tabs ul > li.contains-children {
align-items: center;
}
#libraries-index .tabs ul > li.con... | Use new global support for centered tab groups. | Use new global support for centered tab groups.
| CSS | unlicense | Hexstream/hexstreamsoft.com,Hexstream/www.hexstreamsoft.com,Hexstream/www.hexstreamsoft.com,Hexstream/www.hexstreamsoft.com | css | ## Code Before:
justify-content: center;
}
#libraries-index .tabs {
flex-flow: column;
align-items: center;
}
#libraries-index .tabs:first-child {
margin-bottom: -1.5em;
}
#libraries-index .tabs.contains-title > h1 {
margin-left: 0;
margin-right: 0;
}
#libraries-index .tabs ul > li.contains-... | - justify-content: center;
- }
-
- #libraries-index .tabs {
flex-flow: column;
align-items: center;
}
#libraries-index .tabs:first-child {
margin-bottom: -1.5em;
}
#libraries-index .tabs.contains-title > h1 {
margin-left: 0;
margin-right: 0;
}
#libraries-index .ta... | 4 | 0.085106 | 0 | 4 |
5b869f49ae68196656d3806bc3e738a0e60dfb87 | CHANGES.md | CHANGES.md | 0.1.0 (2016-01-05):
* Initial public release
| 0.1.1 (2017-04-24)
------------------
* Switch from Oasis to topkg
* Switch from ctypes.foreign to ctypes.stubs in the tests
* Drop OCaml 4.00.0 support
0.1.0 (2016-01-05)
------------------
* Initial public release
| Update change log for 0.1.1. | Update change log for 0.1.1.
| Markdown | mit | yallop/ocaml-unix-type-representations | markdown | ## Code Before:
0.1.0 (2016-01-05):
* Initial public release
## Instruction:
Update change log for 0.1.1.
## Code After:
0.1.1 (2017-04-24)
------------------
* Switch from Oasis to topkg
* Switch from ctypes.foreign to ctypes.stubs in the tests
* Drop OCaml 4.00.0 support
0.1.0 (2016-01-05)
------------------
* Ini... | + 0.1.1 (2017-04-24)
+ ------------------
+ * Switch from Oasis to topkg
+ * Switch from ctypes.foreign to ctypes.stubs in the tests
+ * Drop OCaml 4.00.0 support
+
- 0.1.0 (2016-01-05):
? -
+ 0.1.0 (2016-01-05)
+ ------------------
* Initial public release | 9 | 4.5 | 8 | 1 |
5b087ed18a88f9c3ffe340eb31ee734e55ff5ecc | symlink_git_hooks.sh | symlink_git_hooks.sh | set -eo pipefail
cd .git/hooks/
SCRIPTS=$HOME/github.com/hkjn/scripts
ln -vs $SCRIPTS/pre-commit.sh pre-commit
ln -vs $SCRIPTS/pre-push.sh pre-push
| set -eo pipefail
cd .git/hooks/
SCRIPTS="$GOPATH/src/hkjn.me/scripts"
ln -vs $SCRIPTS/pre-commit.sh pre-commit
ln -vs $SCRIPTS/pre-push.sh pre-push
| Use GOPATH for scripts/ link | Use GOPATH for scripts/ link
| Shell | mit | hkjn/scripts,hkjn/scripts | shell | ## Code Before:
set -eo pipefail
cd .git/hooks/
SCRIPTS=$HOME/github.com/hkjn/scripts
ln -vs $SCRIPTS/pre-commit.sh pre-commit
ln -vs $SCRIPTS/pre-push.sh pre-push
## Instruction:
Use GOPATH for scripts/ link
## Code After:
set -eo pipefail
cd .git/hooks/
SCRIPTS="$GOPATH/src/hkjn.me/scripts"
ln -vs $SCRIPTS/pre-co... | set -eo pipefail
cd .git/hooks/
- SCRIPTS=$HOME/github.com/hkjn/scripts
+ SCRIPTS="$GOPATH/src/hkjn.me/scripts"
ln -vs $SCRIPTS/pre-commit.sh pre-commit
ln -vs $SCRIPTS/pre-push.sh pre-push | 2 | 0.333333 | 1 | 1 |
6332d7c0b3e3dddfdc6f0a77c63bd2684dda3b69 | ocm-provider/index.php | ocm-provider/index.php | <?php
/**
* @copyright Copyright (c) 2018 Bjoern Schiessle <bjoern@schiessle.org>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundat... | <?php
/**
* @copyright Copyright (c) 2018 Bjoern Schiessle <bjoern@schiessle.org>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundat... | Make sure the cloud_federation_api routes are loaded | Make sure the cloud_federation_api routes are loaded
Signed-off-by: Joas Schilling <ab43a7c9cb5b2380afc4ddf8b3e2583169b39a02@schilljs.com>
| PHP | agpl-3.0 | andreas-p/nextcloud-server,nextcloud/server,andreas-p/nextcloud-server,andreas-p/nextcloud-server,nextcloud/server,nextcloud/server,nextcloud/server,andreas-p/nextcloud-server,andreas-p/nextcloud-server | php | ## Code Before:
<?php
/**
* @copyright Copyright (c) 2018 Bjoern Schiessle <bjoern@schiessle.org>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free ... | <?php
/**
* @copyright Copyright (c) 2018 Bjoern Schiessle <bjoern@schiessle.org>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Fre... | 2 | 0.052632 | 2 | 0 |
95e30fb8c7e00a1e494392d22b1bede70978d587 | app/interactors/handle_policy_notification/create_policy_or_update_continuation.rb | app/interactors/handle_policy_notification/create_policy_or_update_continuation.rb | module HandlePolicyNotification
# Create or update the 'main' policy in glue to bring the data
# into line with the changes we are about to transmit.
class CreatePolicyOrUpdateContinuation
include Interactor
# Context requires:
# - primary_policy_action (a HandlePolicyNotification::PolicyAction)
... | module HandlePolicyNotification
# Create or update the 'main' policy in glue to bring the data
# into line with the changes we are about to transmit.
class CreatePolicyOrUpdateContinuation
include Interactor
# Context requires:
# - primary_policy_action (a HandlePolicyNotification::PolicyAction)
... | Disable db munging for now. | Disable db munging for now.
| Ruby | mit | blackeaglejs/gluedb,blackeaglejs/gluedb,blackeaglejs/gluedb,blackeaglejs/gluedb | ruby | ## Code Before:
module HandlePolicyNotification
# Create or update the 'main' policy in glue to bring the data
# into line with the changes we are about to transmit.
class CreatePolicyOrUpdateContinuation
include Interactor
# Context requires:
# - primary_policy_action (a HandlePolicyNotification::Po... | module HandlePolicyNotification
# Create or update the 'main' policy in glue to bring the data
# into line with the changes we are about to transmit.
class CreatePolicyOrUpdateContinuation
include Interactor
# Context requires:
# - primary_policy_action (a HandlePolicyNotification::Po... | 4 | 0.2 | 4 | 0 |
50941019c3a55bfd03bcf4b0bedfc00a5ff58564 | public/examples/Reactive/Draw.elm | public/examples/Reactive/Draw.elm | -- Try this out on an iOS or Android device by removing "edit"
-- from the URL: http://elm-lang.org/examples/Reactive/Touches.elm
import Dict
import Touch
import Window
main = lift2 scene Window.dimensions
(Dict.values <~ foldp addN Dict.empty Touch.touches)
addN : [Touch.Touch] -> Dict.Dict Int [... |
import Dict
import Touch
import Window
main = lift2 scene Window.dimensions
(Dict.values <~ foldp addN Dict.empty Touch.touches)
addN : [Touch.Touch] -> Dict.Dict Int [(Int,Int)] -> Dict.Dict Int [(Int,Int)]
addN ts dict = foldl add1 dict ts
add1 : Touch.Touch -> Dict.Dict Int [(Int,Int)] -> Dict... | Remove incorrect and redundant comment | Remove incorrect and redundant comment
Thanks @jvoigtlaender!
| Elm | bsd-3-clause | liubko/elm-lang.org,jvoigtlaender/elm-lang.org,yang-wei/elm-lang.org,rtfeldman/elm-lang.org,frankschmitt/elm-lang.org,kevinrood/elm-lang.org,randomer/elm-lang.org,jazmit/elm-lang.org,elm-lang/debug.elm-lang.org,amitaibu/elm-lang.org,randomer/elm-lang.org,elm-lang/debug.elm-lang.org,yang-wei/elm-lang.org,FranklinChen/el... | elm | ## Code Before:
-- Try this out on an iOS or Android device by removing "edit"
-- from the URL: http://elm-lang.org/examples/Reactive/Touches.elm
import Dict
import Touch
import Window
main = lift2 scene Window.dimensions
(Dict.values <~ foldp addN Dict.empty Touch.touches)
addN : [Touch.Touch] ->... | - -- Try this out on an iOS or Android device by removing "edit"
- -- from the URL: http://elm-lang.org/examples/Reactive/Touches.elm
import Dict
import Touch
import Window
main = lift2 scene Window.dimensions
(Dict.values <~ foldp addN Dict.empty Touch.touches)
addN : [Touch.Tou... | 2 | 0.058824 | 0 | 2 |
6ead56f0cc7c82d7ecab9a41a0e36d2502005e57 | actions/norm-names.js | actions/norm-names.js | registerAction(function (node) {
if (!settings["fixNames"]) return;
node = node || document.body;
toArray(node.querySelectorAll(".content > .l_profile, .lbody > .l_profile, .name > .l_profile, .foaf > .l_profile"))
.forEach(function (node) {
var login = node.getAttribute("href").substr(... | registerAction(function (node) {
if (!settings["fixNames"]) return;
node = node || document.body;
toArray(node.querySelectorAll(".content > .l_profile, .lbody > .l_profile, .name > .l_profile, .foaf > .l_profile"))
.forEach(function (node) {
var login = node.getAttribute("href").substr(... | FIX Неправильно обрабатывались юзеры без дисплейнейма | FIX Неправильно обрабатывались юзеры без дисплейнейма
| JavaScript | mit | davidmz/friendfeed-and-co,davidmz/friendfeed-and-co | javascript | ## Code Before:
registerAction(function (node) {
if (!settings["fixNames"]) return;
node = node || document.body;
toArray(node.querySelectorAll(".content > .l_profile, .lbody > .l_profile, .name > .l_profile, .foaf > .l_profile"))
.forEach(function (node) {
var login = node.getAttribute... | registerAction(function (node) {
if (!settings["fixNames"]) return;
node = node || document.body;
toArray(node.querySelectorAll(".content > .l_profile, .lbody > .l_profile, .name > .l_profile, .foaf > .l_profile"))
.forEach(function (node) {
var login = node.getAttribute("... | 3 | 0.157895 | 2 | 1 |
b5a0b4d4750bec3c80f50f4653aed37603bcd679 | app/jobs/fetch_link_data_job.rb | app/jobs/fetch_link_data_job.rb | class FetchLinkDataJob < ApplicationJob
queue_as :http_service
def perform(post_id, url, retry_count=1)
post = Post.find(post_id)
post.link_crawler_cache = LinkCrawlerCache.find_or_create_by(url: url)
post.save
rescue ActiveRecord::RecordNotFound
FetchLinkDataJob.set(wait: 1.minute).
perfor... | class FetchLinkDataJob < ApplicationJob
queue_as :http_service
def perform(post_id, url, retry_count=1)
post = Post.find(post_id)
post.link_crawler_cache = LinkCrawlerCache.find_or_create_by(url: url)
post.save
rescue ActiveRecord::RecordNotFound
FetchLinkDataJob.set(wait: 1.minute).
perfor... | Update wait time on LinkThumbnailer::Exceptions | Update wait time on LinkThumbnailer::Exceptions
| Ruby | mit | exsules/exsules-api,exsules/exsules-api | ruby | ## Code Before:
class FetchLinkDataJob < ApplicationJob
queue_as :http_service
def perform(post_id, url, retry_count=1)
post = Post.find(post_id)
post.link_crawler_cache = LinkCrawlerCache.find_or_create_by(url: url)
post.save
rescue ActiveRecord::RecordNotFound
FetchLinkDataJob.set(wait: 1.minut... | class FetchLinkDataJob < ApplicationJob
queue_as :http_service
def perform(post_id, url, retry_count=1)
post = Post.find(post_id)
post.link_crawler_cache = LinkCrawlerCache.find_or_create_by(url: url)
post.save
rescue ActiveRecord::RecordNotFound
FetchLinkDataJob.set(wait: 1.min... | 2 | 0.133333 | 1 | 1 |
d51a843e91150edd506614fdf78502f0f1441ce9 | spec/integration/veritas/finding_one_object_spec.rb | spec/integration/veritas/finding_one_object_spec.rb | require 'spec_helper_integration'
describe 'Finding One Object' do
include_context 'Models and Mappers'
before(:all) do
setup_db
insert_user 1, 'John', 18
insert_user 2, 'Jane', 21
insert_user 3, 'Jane', 22
insert_user 4, 'Piotr', 20
user_mapper
end
it 'finds one object matching ... | require 'spec_helper_integration'
describe 'Finding One Object' do
include_context 'Models and Mappers'
before(:all) do
setup_db
insert_user 1, 'John', 18
insert_user 2, 'Jane', 21
insert_user 3, 'Jane', 22
insert_user 4, 'Piotr', 20
user_mapper
end
it 'finds one object matching ... | Fix veritas integration specs for "finding one object" | Fix veritas integration specs for "finding one object" | Ruby | mit | solnic/rom-relation | ruby | ## Code Before:
require 'spec_helper_integration'
describe 'Finding One Object' do
include_context 'Models and Mappers'
before(:all) do
setup_db
insert_user 1, 'John', 18
insert_user 2, 'Jane', 21
insert_user 3, 'Jane', 22
insert_user 4, 'Piotr', 20
user_mapper
end
it 'finds one ... | require 'spec_helper_integration'
describe 'Finding One Object' do
include_context 'Models and Mappers'
before(:all) do
setup_db
insert_user 1, 'John', 18
insert_user 2, 'Jane', 21
insert_user 3, 'Jane', 22
insert_user 4, 'Piotr', 20
user_mapper
end
... | 2 | 0.066667 | 1 | 1 |
115e299d4ea176099ec7c14af0404ad84deedc63 | decisioncenter/script/addDCApplications.sh | decisioncenter/script/addDCApplications.sh |
applicationXml=$1
if [ ! ${applicationXml} ]; then
applicationXml="/config/application.xml"
fi
function addApplication {
if [ -e "${APPS}/$1.war" ]
then
cat "/config/application-$1.xml" >> ${applicationXml}
fi
}
# Begin - Add DC Apps
touch ${applicationXml}
echo "<server>" >> ${applicationXm... |
applicationXml=$1
if [ ! ${applicationXml} ]; then
applicationXml="/config/application.xml"
fi
function addApplication {
if [ -e "${APPS}/$1.war" ]
then
cat "/config/application-$1.xml" >> ${applicationXml}
fi
}
# Begin - Add DC Apps
touch ${applicationXml}
echo "<server>" >> ${applicationXm... | Fix RTC Defect : 115704 | Fix RTC Defect : 115704
| Shell | mit | lgrateau/ODM-on-Docker,lgrateau/ODM-on-Docker,lgrateau/odm-ondocker,lgrateau/odm-ondocker,lgrateau/odm-ondocker | shell | ## Code Before:
applicationXml=$1
if [ ! ${applicationXml} ]; then
applicationXml="/config/application.xml"
fi
function addApplication {
if [ -e "${APPS}/$1.war" ]
then
cat "/config/application-$1.xml" >> ${applicationXml}
fi
}
# Begin - Add DC Apps
touch ${applicationXml}
echo "<server>" >>... |
applicationXml=$1
if [ ! ${applicationXml} ]; then
applicationXml="/config/application.xml"
fi
function addApplication {
if [ -e "${APPS}/$1.war" ]
then
cat "/config/application-$1.xml" >> ${applicationXml}
fi
}
# Begin - Add DC Apps
touch ${applicationXml}
... | 3 | 0.096774 | 1 | 2 |
0558a38c82b663756a68530c374c5ed4eec9e97a | src/main/resources/webapp/WEB-INF/jsp/sidebar/navigation.jsp | src/main/resources/webapp/WEB-INF/jsp/sidebar/navigation.jsp | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:url var="homeUrl" value="/" />
<c:url var="aboutUrl" value="/legal/about" />
<div class="sectionHeading">Go...</div>
<div class="sectionContent">
<ul class="nav">
<li><a href="${homeUrl}">Home</a></li>
<li class="navbreak"><a href="https:... | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:url var="homeUrl" value="/" />
<c:url var="aboutUrl" value="/legal/about" />
<div class="sectionHeading">Go...</div>
<div class="sectionContent">
<ul class="nav">
<li><a href="${homeUrl}">Home</a></li>
<li class="navbreak"><a href="https:... | Make download / git repo links external | Make download / git repo links external
| Java Server Pages | bsd-2-clause | insideo/randomcoder-website,insideo/randomcoder-website,insideo/randomcoder-website | java-server-pages | ## Code Before:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:url var="homeUrl" value="/" />
<c:url var="aboutUrl" value="/legal/about" />
<div class="sectionHeading">Go...</div>
<div class="sectionContent">
<ul class="nav">
<li><a href="${homeUrl}">Home</a></li>
<li class="navbreak"><a hre... | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:url var="homeUrl" value="/" />
<c:url var="aboutUrl" value="/legal/about" />
<div class="sectionHeading">Go...</div>
<div class="sectionContent">
<ul class="nav">
<li><a href="${homeUrl}">Home</a></li>
- <li class="navbreak"><a hre... | 4 | 0.333333 | 2 | 2 |
9822c184d44e728fcf79aa911498cb59df9d70c4 | recipes/_plugin_manager.rb | recipes/_plugin_manager.rb | add_vim_git_plugin({ "vundle" => "https://github.com/gmarik/vundle.git",
"unbundle" => "https://github.com/sunaku/vim-unbundle.git",
"pathogen" => "https://github.com/tpope/vim-pathogen.git" }[node[:vim_config][:plugin_manager].to_s])
| add_vim_git_plugin({ "vundle" => "https://github.com/gmarik/vundle.git",
"unbundle" => "https://github.com/sunaku/vim-unbundle.git",
"pathogen" => "https://github.com/tpope/vim-pathogen.git" }[node[:vim_config][:plugin_manager].to_s])
case node[:vim_config][:plugin_manager]
... | Configure pathogen for autoload system-wide bundles | Configure pathogen for autoload system-wide bundles
| Ruby | mit | promisedlandt/cookbook-vim_config,promisedlandt/cookbook-vim_config | ruby | ## Code Before:
add_vim_git_plugin({ "vundle" => "https://github.com/gmarik/vundle.git",
"unbundle" => "https://github.com/sunaku/vim-unbundle.git",
"pathogen" => "https://github.com/tpope/vim-pathogen.git" }[node[:vim_config][:plugin_manager].to_s])
## Instruction:
Configur... | add_vim_git_plugin({ "vundle" => "https://github.com/gmarik/vundle.git",
"unbundle" => "https://github.com/sunaku/vim-unbundle.git",
"pathogen" => "https://github.com/tpope/vim-pathogen.git" }[node[:vim_config][:plugin_manager].to_s])
+
+ case node[:vim_config][:plugin... | 5 | 1.666667 | 5 | 0 |
b86bfcfeeeb61b2f4f60164e18a974129c899bec | packages/lesswrong/components/users/UsersSingle.jsx | packages/lesswrong/components/users/UsersSingle.jsx | import { Components, registerComponent, Utils } from 'meteor/vulcan:core';
import React from 'react';
import { withRouter } from 'react-router';
import Users from "meteor/vulcan:users";
const UsersSingle = ({params, router}) => {
const slug = Utils.slugify(params.slug);
const canonicalUrl = Users.getProfileUrlFrom... | import { Components, registerComponent, Utils } from 'meteor/vulcan:core';
import React from 'react';
import { withRouter } from 'react-router';
import Users from "meteor/vulcan:users";
const UsersSingle = ({params, router}) => {
const slug = Utils.slugify(params.slug);
const canonicalUrl = Users.getProfileUrlFrom... | Comment about what router.replace does | Comment about what router.replace does
| JSX | mit | Discordius/Telescope,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Telescope | jsx | ## Code Before:
import { Components, registerComponent, Utils } from 'meteor/vulcan:core';
import React from 'react';
import { withRouter } from 'react-router';
import Users from "meteor/vulcan:users";
const UsersSingle = ({params, router}) => {
const slug = Utils.slugify(params.slug);
const canonicalUrl = Users.g... | import { Components, registerComponent, Utils } from 'meteor/vulcan:core';
import React from 'react';
import { withRouter } from 'react-router';
import Users from "meteor/vulcan:users";
const UsersSingle = ({params, router}) => {
const slug = Utils.slugify(params.slug);
const canonicalUrl = Users.g... | 3 | 0.157895 | 3 | 0 |
fe02b6422225d1d23b2367f006a9c229b78af8dc | lib/roo_on_rails/railties/sidekiq.rb | lib/roo_on_rails/railties/sidekiq.rb | require 'sidekiq'
require 'roo_on_rails/sidekiq/settings'
module RooOnRails
module Railties
class Sidekiq < Rails::Railtie
initializer 'roo_on_rails.sidekiq' do |app|
require 'hirefire-resource'
$stderr.puts 'initializer roo_on_rails.sidekiq'
break unless ENV.fetch('SIDEKIQ_ENABLED',... | require 'sidekiq'
require 'roo_on_rails/sidekiq/settings'
require 'roo_on_rails/sidekiq/sla_metric'
module RooOnRails
module Railties
class Sidekiq < Rails::Railtie
initializer 'roo_on_rails.sidekiq' do |app|
require 'hirefire-resource'
$stderr.puts 'initializer roo_on_rails.sidekiq'
... | Use correct SLA class name | HOTFIX: Use correct SLA class name
This could really do with some tests, but I’m not quite sure how to
test it and this is causing errors in production so I’d prefer to patch
it quickly and then work out how to test it later.
@danielcooper maybe you have some thoughts on how to test?
| Ruby | mit | deliveroo/roo_on_rails,deliveroo/roo_on_rails,deliveroo/roo_on_rails | ruby | ## Code Before:
require 'sidekiq'
require 'roo_on_rails/sidekiq/settings'
module RooOnRails
module Railties
class Sidekiq < Rails::Railtie
initializer 'roo_on_rails.sidekiq' do |app|
require 'hirefire-resource'
$stderr.puts 'initializer roo_on_rails.sidekiq'
break unless ENV.fetch('S... | require 'sidekiq'
require 'roo_on_rails/sidekiq/settings'
+ require 'roo_on_rails/sidekiq/sla_metric'
+
module RooOnRails
module Railties
class Sidekiq < Rails::Railtie
initializer 'roo_on_rails.sidekiq' do |app|
require 'hirefire-resource'
$stderr.puts 'initializer roo_on_r... | 4 | 0.1 | 3 | 1 |
590f04e426a72ae905f3ea9209588fdfd249cf33 | recipes/bokeh_conda_requirements/meta.yaml | recipes/bokeh_conda_requirements/meta.yaml | {% set name = "bokeh_conda_requirements" %}
{% set version = "0.12.6" %}
package:
name: {{ name }}
version: {{ version }}
requirements:
run:
- python
- six >=1.5.2
- requests >=1.2.3
- pyyaml >=3.10
- python-dateutil >=2.1
- jinja2 >=2.7
- numpy >=1.7.1
- tornado >=4.3
- futu... | {% set name = "bokeh_conda_requirements" %}
{% set version = "0.12.6" %}
package:
name: {{ name }}
version: {{ version }}
build:
number: 0
noarch: True
string: py2_0 # [py2k]
string: py3_0 # [py3k]
requirements:
run:
- python 2.* # [py2k]
- python 3.* # [py3k]
- six >=1.5.2
- reques... | Make bokeh_conda_requirements a noarch package | Make bokeh_conda_requirements a noarch package
| YAML | bsd-3-clause | jjhelmus/berryconda,jjhelmus/berryconda,jjhelmus/berryconda,jjhelmus/berryconda,jjhelmus/berryconda | yaml | ## Code Before:
{% set name = "bokeh_conda_requirements" %}
{% set version = "0.12.6" %}
package:
name: {{ name }}
version: {{ version }}
requirements:
run:
- python
- six >=1.5.2
- requests >=1.2.3
- pyyaml >=3.10
- python-dateutil >=2.1
- jinja2 >=2.7
- numpy >=1.7.1
- tornado ... | {% set name = "bokeh_conda_requirements" %}
{% set version = "0.12.6" %}
package:
name: {{ name }}
version: {{ version }}
+ build:
+ number: 0
+ noarch: True
+ string: py2_0 # [py2k]
+ string: py3_0 # [py3k]
+
requirements:
run:
- - python
+ - python 2.* # [py2k]
+ - py... | 9 | 0.409091 | 8 | 1 |
d7d55dbbfa73e39a7b8ea687444e2cb78e5cb50d | ReadMe.md | ReadMe.md |
This plugin provides a wiki for hawtio
### Basic usage
#### Running this plugin locally
First clone the source
git clone https://github.com/hawtio/hawtio-wiki
cd hawtio-wiki
Next you'll need to [install NodeJS](http://nodejs.org/download/) and then install the default global npm dependencies:
npm ins... |
The source is now in [fabric8-console](https://github.com/fabric8io/fabric8-console)
See the new [source code here](https://github.com/fabric8io/fabric8-console/tree/master/plugins/wiki)
| Update readme with new source location | Update readme with new source location
| Markdown | apache-2.0 | hawtio/hawtio-wiki,hawtio/hawtio-wiki,hawtio/hawtio-wiki | markdown | ## Code Before:
This plugin provides a wiki for hawtio
### Basic usage
#### Running this plugin locally
First clone the source
git clone https://github.com/hawtio/hawtio-wiki
cd hawtio-wiki
Next you'll need to [install NodeJS](http://nodejs.org/download/) and then install the default global npm dependenci... |
- This plugin provides a wiki for hawtio
+ The source is now in [fabric8-console](https://github.com/fabric8io/fabric8-console)
- ### Basic usage
+ See the new [source code here](https://github.com/fabric8io/fabric8-console/tree/master/plugins/wiki)
- #### Running this plugin locally
-
- First clone the sourc... | 27 | 0.964286 | 2 | 25 |
a62be2b6891068481edb556af690cb0919dbeb4f | r01/src/main/java/edu/virginia/psyc/r01/persistence/CC.java | r01/src/main/java/edu/virginia/psyc/r01/persistence/CC.java | package edu.virginia.psyc.r01.persistence;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.collections.map.HashedMap;
import org.mindtrails.domain.questionnaire.LinkedQuestionnaireData;
import org.mindtrails.domain.questionnaire.MeasureField;
import javax.persistence.Entity;
import java... | package edu.virginia.psyc.r01.persistence;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.collections.map.HashedMap;
import org.mindtrails.domain.questionnaire.LinkedQuestionnaireData;
import org.mindtrails.domain.questionnaire.MeasureField;
import javax.persistence.Entity;
import java... | Return the scale in the order it was created. | Return the scale in the order it was created.
| Java | mit | danfunk/MindTrails,danfunk/MindTrails,danfunk/MindTrails,danfunk/MindTrails | java | ## Code Before:
package edu.virginia.psyc.r01.persistence;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.collections.map.HashedMap;
import org.mindtrails.domain.questionnaire.LinkedQuestionnaireData;
import org.mindtrails.domain.questionnaire.MeasureField;
import javax.persistence.Ent... | package edu.virginia.psyc.r01.persistence;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.collections.map.HashedMap;
import org.mindtrails.domain.questionnaire.LinkedQuestionnaireData;
import org.mindtrails.domain.questionnaire.MeasureField;
import javax.persistence.E... | 3 | 0.066667 | 2 | 1 |
7a22c6301dc5bb41bae4fcb4e1031204db5156ef | .travis.yml | .travis.yml | language: node_js
node_js:
- '0.11'
script:
- npm test -- --single-run
- npm run lint
cache:
directories:
- node_modules
| sudo: false
language: node_js
node_js:
- '0.11'
script:
- npm test -- --single-run
- npm run lint
cache:
directories:
- node_modules
| Upgrade to new Travis CI infrastructure | Upgrade to new Travis CI infrastructure
| YAML | mit | js-fns/date-fns,date-fns/date-fns,date-fns/date-fns,js-fns/date-fns,date-fns/date-fns | yaml | ## Code Before:
language: node_js
node_js:
- '0.11'
script:
- npm test -- --single-run
- npm run lint
cache:
directories:
- node_modules
## Instruction:
Upgrade to new Travis CI infrastructure
## Code After:
sudo: false
language: node_js
node_js:
- '0.11'
script:
- npm test -- --single-run
- npm ru... | + sudo: false
language: node_js
node_js:
- '0.11'
script:
- npm test -- --single-run
- npm run lint
cache:
directories:
- node_modules
| 1 | 0.1 | 1 | 0 |
a71425b57660c767534cd36687f8bb03ba4c7eaf | tox.ini | tox.ini | [tox]
envlist = py27,py33,py34,py35,py36,py37,pypy,pypy3
[testenv]
commands = python run_tests.py
[testenv:py27-flake8]
deps =
flake8
commands = flake8 {posargs} pep8ext_naming.py
[testenv:py37-flake8]
basepython = python3.7
deps =
flake8
commands = flake8 {posargs} pep8ext_naming.py
[testenv:release]
deps ... | [tox]
envlist = py27,py33,py34,py35,py36,py37,pypy,pypy3
[testenv]
commands = python run_tests.py
[testenv:py27-flake8]
deps =
flake8
commands =
flake8 {posargs} pep8ext_naming.py
python setup.py check --restructuredtext
[testenv:py37-flake8]
basepython = python3.7
deps =
flake8
commands =
flake8... | Check reStructuredText syntax along with flake8 | Check reStructuredText syntax along with flake8
This verifies the integrity of the setup metadata so we can be even more
confident in our PyPI releases.
| INI | mit | flintwork/pep8-naming | ini | ## Code Before:
[tox]
envlist = py27,py33,py34,py35,py36,py37,pypy,pypy3
[testenv]
commands = python run_tests.py
[testenv:py27-flake8]
deps =
flake8
commands = flake8 {posargs} pep8ext_naming.py
[testenv:py37-flake8]
basepython = python3.7
deps =
flake8
commands = flake8 {posargs} pep8ext_naming.py
[testen... | [tox]
envlist = py27,py33,py34,py35,py36,py37,pypy,pypy3
[testenv]
commands = python run_tests.py
[testenv:py27-flake8]
deps =
flake8
+ commands =
- commands = flake8 {posargs} pep8ext_naming.py
? -------- ^
+ flake8 {posargs} pep8ext_naming.py
? ^^
+ python setup.py check --restructu... | 8 | 0.333333 | 6 | 2 |
477f306724cee65c93f18cf10a1be9328f7dbdd5 | jekyll-itafroma-archive.gemspec | jekyll-itafroma-archive.gemspec | Gem::Specification.new do |s|
s.name = 'jekyll-itafroma-archive'
s.version = '0.3.0'
s.date = '2015-01-07'
s.summary = 'Jekyll plugin to create a set of archive pages.'
s.description = <<-EOF
Jekyll Archive Generator creates a set of archive pages for a Jekyll
website.
Oddly... | Gem::Specification.new do |s|
s.name = 'jekyll-itafroma-archive'
s.version = '0.4.0'
s.date = '2015-01-15'
s.summary = 'Jekyll plugin to create a set of archive pages.'
s.description = <<-EOF
Jekyll Archive Generator creates a set of archive pages for a Jekyll
website.
Oddly... | Prepare gemspec for 0.4.0 release. | Prepare gemspec for 0.4.0 release.
| Ruby | mit | itafroma/jekyll-archive,itafroma/jekyll-archive | ruby | ## Code Before:
Gem::Specification.new do |s|
s.name = 'jekyll-itafroma-archive'
s.version = '0.3.0'
s.date = '2015-01-07'
s.summary = 'Jekyll plugin to create a set of archive pages.'
s.description = <<-EOF
Jekyll Archive Generator creates a set of archive pages for a Jekyll
web... | Gem::Specification.new do |s|
s.name = 'jekyll-itafroma-archive'
- s.version = '0.3.0'
? ^
+ s.version = '0.4.0'
? ^
- s.date = '2015-01-07'
? ^^
+ s.date = '2015-01-15'
? ^^
... | 7 | 0.25 | 5 | 2 |
2e30fa87d0f66a45da8bc8b74aaf208c32ab37ab | test/test_camera.rb | test/test_camera.rb | require_relative 'test_helper'
class TestCamera < Poke::Test
class Player
attr_reader :x, :y
def initialize
@x = 32
@y = 64
end
end
def setup
@window = TWindow.new
@player = Player.new
@camera = Poke::Camera.new(window: @window, player: @player)
end
end
| require_relative 'test_helper'
class TestCamera < Poke::Test
class Player
attr_reader :x, :y
def initialize
@x = 32
@y = 64
end
end
def setup
@player = Player.new
@camera = Poke::Camera.new(window: @window, player: @player)
end
end
| Remove Camera test Window assignment for now | Remove Camera test Window assignment for now
| Ruby | mit | mybuddymichael/poke | ruby | ## Code Before:
require_relative 'test_helper'
class TestCamera < Poke::Test
class Player
attr_reader :x, :y
def initialize
@x = 32
@y = 64
end
end
def setup
@window = TWindow.new
@player = Player.new
@camera = Poke::Camera.new(window: @window, player: @player)
end
end
... | require_relative 'test_helper'
class TestCamera < Poke::Test
class Player
attr_reader :x, :y
def initialize
@x = 32
@y = 64
end
end
def setup
- @window = TWindow.new
@player = Player.new
@camera = Poke::Camera.new(window: @window, player: @pl... | 1 | 0.05 | 0 | 1 |
c11d0b3d616fb1d03cdbf0453dcdc5cb39ac122a | lib/node_modules/@stdlib/types/ndarray/ctor/lib/getnd.js | lib/node_modules/@stdlib/types/ndarray/ctor/lib/getnd.js | 'use strict';
// MODULES //
var isInteger = require( '@stdlib/assert/is-integer' ).isPrimitive;
// FUNCTIONS //
/**
* Returns an array element.
*
* @private
* @param {...integer} idx - indices
* @throws {TypeError} provided indices must be integer valued
* @throws {RangeError} index exceeds array dimensions
* @ret... | 'use strict';
// MODULES //
var isInteger = require( '@stdlib/assert/is-integer' ).isPrimitive;
var getIndex = require( './get_index.js' );
// FUNCTIONS //
/**
* Returns an array element.
*
* @private
* @param {...integer} idx - indices
* @throws {TypeError} provided indices must be integer valued
* @throws {Range... | Add support for an index mode | Add support for an index mode
| JavaScript | apache-2.0 | stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib | javascript | ## Code Before:
'use strict';
// MODULES //
var isInteger = require( '@stdlib/assert/is-integer' ).isPrimitive;
// FUNCTIONS //
/**
* Returns an array element.
*
* @private
* @param {...integer} idx - indices
* @throws {TypeError} provided indices must be integer valued
* @throws {RangeError} index exceeds array d... | 'use strict';
// MODULES //
var isInteger = require( '@stdlib/assert/is-integer' ).isPrimitive;
+ var getIndex = require( './get_index.js' );
// FUNCTIONS //
/**
* Returns an array element.
*
* @private
* @param {...integer} idx - indices
* @throws {TypeError} provided indices must be... | 7 | 0.170732 | 4 | 3 |
790c4a4e4fa6b022ec664933711452aa27751d98 | .travis.yml | .travis.yml | sudo: required
dist: trusty
install:
- sudo pip install -r requirements.txt
script:
sudo python -m doctest main.py
| sudo: required
dist: trusty
install:
- sudo pip install -r requirements.txt
- mv config.example.py config.py
script:
sudo python -m doctest main.py
| Use example config during tests | Use example config during tests
| YAML | mit | jncraton/gCal-iCal-Sync | yaml | ## Code Before:
sudo: required
dist: trusty
install:
- sudo pip install -r requirements.txt
script:
sudo python -m doctest main.py
## Instruction:
Use example config during tests
## Code After:
sudo: required
dist: trusty
install:
- sudo pip install -r requirements.txt
- mv config.example.py config.py
scrip... | sudo: required
dist: trusty
install:
- sudo pip install -r requirements.txt
+ - mv config.example.py config.py
script:
sudo python -m doctest main.py | 1 | 0.142857 | 1 | 0 |
b7433c0d18a01a9e1340123f7c0423d1fdec04a3 | sphinxdoc/urls.py | sphinxdoc/urls.py | from django.conf.urls.defaults import patterns, url
from django.views.generic import list_detail
from sphinxdoc import models
from sphinxdoc.views import ProjectSearchView
project_info = {
'queryset': models.Project.objects.all().order_by('name'),
'template_object_name': 'project',
}
urlpatterns = patterns(... | from django.conf.urls.defaults import patterns, url
from django.views.generic.list import ListView
from sphinxdoc import models
from sphinxdoc.views import ProjectSearchView
urlpatterns = patterns('sphinxdoc.views',
url(
r'^$',
ListView.as_view(queryset=models.Project.objects.all().order_by('name... | Change function-based generic view to class-based. | Change function-based generic view to class-based.
As per their deprecation policy, Django 1.5 removed function-based
generic views.
| Python | mit | kamni/django-sphinxdoc | python | ## Code Before:
from django.conf.urls.defaults import patterns, url
from django.views.generic import list_detail
from sphinxdoc import models
from sphinxdoc.views import ProjectSearchView
project_info = {
'queryset': models.Project.objects.all().order_by('name'),
'template_object_name': 'project',
}
urlpatt... | from django.conf.urls.defaults import patterns, url
- from django.views.generic import list_detail
? ^ ^^ ^^^^
+ from django.views.generic.list import ListView
? +++++ ^ ^^ ^
from sphinxdoc import models
from sphinxdoc.views import ProjectS... | 10 | 0.208333 | 2 | 8 |
1c2270a6363a2c2b0d84ca7baf1845219b64839f | metadata/it.feio.android.omninotes.txt | metadata/it.feio.android.omninotes.txt | Categories:Office
License:Apache2
Web Site:https://github.com/federicoiosue/Omni-Notes
Source Code:https://github.com/federicoiosue/Omni-Notes
Issue Tracker:https://github.com/federicoiosue/Omni-Notes/issues
Auto Name:Omni Notes
Summary:Note taking
Description:
Note taking application aimed at having oth a lightweight... | Categories:Office
License:Apache2
Web Site:https://github.com/federicoiosue/Omni-Notes
Source Code:https://github.com/federicoiosue/Omni-Notes
Issue Tracker:https://github.com/federicoiosue/Omni-Notes/issues
Auto Name:Omni Notes
Summary:Note taking
Description:
Note taking application aimed at having oth a lightweight... | Update CV of Omni Notes to 4.5.0 Beta 3 (96) | Update CV of Omni Notes to 4.5.0 Beta 3 (96)
| Text | agpl-3.0 | f-droid/fdroid-data,f-droid/fdroiddata,f-droid/fdroiddata | text | ## Code Before:
Categories:Office
License:Apache2
Web Site:https://github.com/federicoiosue/Omni-Notes
Source Code:https://github.com/federicoiosue/Omni-Notes
Issue Tracker:https://github.com/federicoiosue/Omni-Notes/issues
Auto Name:Omni Notes
Summary:Note taking
Description:
Note taking application aimed at having o... | Categories:Office
License:Apache2
Web Site:https://github.com/federicoiosue/Omni-Notes
Source Code:https://github.com/federicoiosue/Omni-Notes
Issue Tracker:https://github.com/federicoiosue/Omni-Notes/issues
Auto Name:Omni Notes
Summary:Note taking
Description:
Note taking application aimed at havi... | 4 | 0.16 | 2 | 2 |
890de402df0a64598abbde5cd135c62548e7e75c | static/templates/announce_stream_docs.hbs | static/templates/announce_stream_docs.hbs | {{! Explanation of what "announce stream" does when creating a stream }}
<div>
{{#tr}}
<p>Stream will be announced in <b>#{notifications_stream}</b>.</p>
{{/tr}}
<p>{{t 'Organization administrators can change this in the organization settings.' }}</p>
</div>
| {{! Explanation of what "announce stream" does when creating a stream }}
<div>
{{#tr}}
<p>Stream will be announced in <b>#{notifications_stream}</b>.</p>
{{/tr}}
<p>{{t 'Organization administrators can change the announcement stream in the organization settings.' }}</p>
</div>
| Modify the message of the "Announce stream" hint tooltip. | stream_settings: Modify the message of the "Announce stream" hint tooltip.
Follow-up to commit bbda7a5bb05898fd87b99e8b20176ea6bce88aa3.
The "Announce stream" hint tooltip earlier read "Organization
administrators can change this in in the organization settings."
It wasn't obvious that "this" refers to the stream the... | Handlebars | apache-2.0 | zulip/zulip,rht/zulip,zulip/zulip,zulip/zulip,zulip/zulip,andersk/zulip,andersk/zulip,andersk/zulip,rht/zulip,zulip/zulip,zulip/zulip,andersk/zulip,rht/zulip,andersk/zulip,rht/zulip,andersk/zulip,rht/zulip,rht/zulip,rht/zulip,zulip/zulip,andersk/zulip | handlebars | ## Code Before:
{{! Explanation of what "announce stream" does when creating a stream }}
<div>
{{#tr}}
<p>Stream will be announced in <b>#{notifications_stream}</b>.</p>
{{/tr}}
<p>{{t 'Organization administrators can change this in the organization settings.' }}</p>
</div>
## Instruction:
stream_set... | {{! Explanation of what "announce stream" does when creating a stream }}
<div>
{{#tr}}
<p>Stream will be announced in <b>#{notifications_stream}</b>.</p>
{{/tr}}
- <p>{{t 'Organization administrators can change this in the organization settings.' }}</p>
? ... | 2 | 0.222222 | 1 | 1 |
771c2eef39547dd1c61c53080b7eb2e769e0fc6a | .travis.yml | .travis.yml | language: node_js
node_js:
- 'lts/*'
env:
- NODE_TEST_ENV=development
- NODE_TEST_ENV=production
addons:
chrome: stable # headless chrome testing
before_script:
- yarn build
| language: node_js
node_js:
- 'node'
- 'lts/*'
env:
- NODE_TEST_ENV=development
- NODE_TEST_ENV=production
addons:
chrome: stable # headless chrome testing
before_script:
- yarn build
| Add back latest non-LTS node to CI/CD matrix | Add back latest non-LTS node to CI/CD matrix
| YAML | mit | thesephist/torus | yaml | ## Code Before:
language: node_js
node_js:
- 'lts/*'
env:
- NODE_TEST_ENV=development
- NODE_TEST_ENV=production
addons:
chrome: stable # headless chrome testing
before_script:
- yarn build
## Instruction:
Add back latest non-LTS node to CI/CD matrix
## Code After:
language: node_js
node_js:
- 'node'
... | language: node_js
node_js:
+ - 'node'
- 'lts/*'
env:
- NODE_TEST_ENV=development
- NODE_TEST_ENV=production
addons:
chrome: stable # headless chrome testing
before_script:
- yarn build | 1 | 0.083333 | 1 | 0 |
646b0f8babf346f3ec21ae688453deee24fb410f | tests/core/tests/base_formats_tests.py | tests/core/tests/base_formats_tests.py | from __future__ import unicode_literals
import os
from django.test import TestCase
from django.utils.text import force_text
from import_export.formats import base_formats
class XLSTest(TestCase):
def test_binary_format(self):
self.assertTrue(base_formats.XLS().is_binary())
class CSVTest(TestCase):
... | from __future__ import unicode_literals
import os
from django.test import TestCase
try:
from django.utils.encoding import force_text
except ImportError:
from django.utils.encoding import force_unicode as force_text
from import_export.formats import base_formats
class XLSTest(TestCase):
def test_binar... | Fix importing force_text tests for 1.4 compatibility | Fix importing force_text tests for 1.4 compatibility
use 1.4 compat code
| Python | bsd-2-clause | copperleaftech/django-import-export,PetrDlouhy/django-import-export,PetrDlouhy/django-import-export,rhunwicks/django-import-export,copperleaftech/django-import-export,Apkawa/django-import-export,jnns/django-import-export,PetrDlouhy/django-import-export,daniell/django-import-export,django-import-export/django-import-exp... | python | ## Code Before:
from __future__ import unicode_literals
import os
from django.test import TestCase
from django.utils.text import force_text
from import_export.formats import base_formats
class XLSTest(TestCase):
def test_binary_format(self):
self.assertTrue(base_formats.XLS().is_binary())
class CSVT... | from __future__ import unicode_literals
import os
from django.test import TestCase
+
+ try:
- from django.utils.text import force_text
? - ^^
+ from django.utils.encoding import force_text
? ++++ ^^^^^^^
+ except ImportError:
+ from django.utils.encoding import... | 6 | 0.146341 | 5 | 1 |
96c8eb90358eb5d1136338a053dbeda6303caa1c | ORIGINSTORY.md | ORIGINSTORY.md |
This project came to be when I saw a really badly implemented [*Icelandic name generator*](http://www.vg.no/spesial/2016/islandsk-navnegenerator/?lang=en) which swapped out characters just because, added random suffixes and didn't use genitive form. It was horrible to use as an Icelander but it was a nice idea. So I j... |
This project came to be when I saw a really badly implemented [*Icelandic name generator*](http://www.vg.no/spesial/2016/islandsk-navnegenerator/?lang=en) which swapped out characters just because, added random suffixes and didn't use genitive form. It was horrible to use as an Icelander but it was a nice idea. So I j... | Fix typo by adding a better explanation | Fix typo by adding a better explanation
It was really just one evening.
| Markdown | agpl-3.0 | trickvi/better-names | markdown | ## Code Before:
This project came to be when I saw a really badly implemented [*Icelandic name generator*](http://www.vg.no/spesial/2016/islandsk-navnegenerator/?lang=en) which swapped out characters just because, added random suffixes and didn't use genitive form. It was horrible to use as an Icelander but it was a n... |
This project came to be when I saw a really badly implemented [*Icelandic name generator*](http://www.vg.no/spesial/2016/islandsk-navnegenerator/?lang=en) which swapped out characters just because, added random suffixes and didn't use genitive form. It was horrible to use as an Icelander but it was a nice idea. So... | 2 | 0.5 | 1 | 1 |
e2eaf48c0cc9198a388e42d8c2ca5aa446df409e | tests/contentSpec.js | tests/contentSpec.js | describe('traffic', function() {
beforeEach(function() {
window.matrix.settings = {
profileId: ''
};
subject = window.matrix.content;
sandbox = sinon.sandbox.create();
server = sinon.fakeServer.create();
});
afterEach(function() {
sandbox.restore();
server.restore();
});
it(... | describe('traffic', function() {
beforeEach(function() {
window.matrix.settings = {
profileId: ''
};
subject = window.matrix.content;
sandbox = sinon.sandbox.create();
server = sinon.fakeServer.create();
});
afterEach(function() {
sandbox.restore();
server.restore();
});
it(... | Add tests for init method | Add tests for init method
| JavaScript | mit | codeforamerica/city-analytics-dashboard,codeforamerica/city-analytics-dashboard,codeforamerica/city-analytics-dashboard | javascript | ## Code Before:
describe('traffic', function() {
beforeEach(function() {
window.matrix.settings = {
profileId: ''
};
subject = window.matrix.content;
sandbox = sinon.sandbox.create();
server = sinon.fakeServer.create();
});
afterEach(function() {
sandbox.restore();
server.restor... | describe('traffic', function() {
beforeEach(function() {
window.matrix.settings = {
profileId: ''
};
subject = window.matrix.content;
sandbox = sinon.sandbox.create();
server = sinon.fakeServer.create();
});
afterEach(function() {
sandbox.restore();
serve... | 17 | 0.53125 | 16 | 1 |
46d81f2bcfa56dc2579d26b1d38b86051119c7ca | src/Core/Framework/QScriptEngineHelpers.h | src/Core/Framework/QScriptEngineHelpers.h | // For conditions of distribution and use, see copyright notice in license.txt
#include <QScriptEngine>
#include <QMetaType>
// The following functions help register a custom QObject-derived class to a QScriptEngine.
// See http://lists.trolltech.com/qt-interest/2007-12/thread00158-0.html .
template <typename Tp>
QSc... | // For conditions of distribution and use, see copyright notice in license.txt
#include <QScriptEngine>
#include <QMetaType>
// The following functions help register a custom QObject-derived class to a QScriptEngine.
// See http://lists.trolltech.com/qt-interest/2007-12/thread00158-0.html .
template <typename Tp>
QSc... | Use dynamic_cast in qScriptValueToQObject as qobject_cast fails for some metatypes such as Entity*. However, assert that if dynamic_cast is null, so is qobject_cast. | Use dynamic_cast in qScriptValueToQObject as qobject_cast fails for some metatypes such as Entity*. However, assert that if dynamic_cast is null, so is qobject_cast.
| C | apache-2.0 | realXtend/tundra,jesterKing/naali,pharos3d/tundra,jesterKing/naali,jesterKing/naali,AlphaStaxLLC/tundra,AlphaStaxLLC/tundra,BogusCurry/tundra,jesterKing/naali,pharos3d/tundra,jesterKing/naali,AlphaStaxLLC/tundra,jesterKing/naali,BogusCurry/tundra,jesterKing/naali,BogusCurry/tundra,BogusCurry/tundra,pharos3d/tundra,real... | c | ## Code Before:
// For conditions of distribution and use, see copyright notice in license.txt
#include <QScriptEngine>
#include <QMetaType>
// The following functions help register a custom QObject-derived class to a QScriptEngine.
// See http://lists.trolltech.com/qt-interest/2007-12/thread00158-0.html .
template <... | // For conditions of distribution and use, see copyright notice in license.txt
#include <QScriptEngine>
#include <QMetaType>
// The following functions help register a custom QObject-derived class to a QScriptEngine.
// See http://lists.trolltech.com/qt-interest/2007-12/thread00158-0.html .
template <... | 11 | 0.392857 | 10 | 1 |
1577651697ad587fecb657cabc981f63d2fa683c | spec/fc-reminder/gateways/twilio_spec.rb | spec/fc-reminder/gateways/twilio_spec.rb | require 'spec_helper'
describe FCReminder::Gateways::Twilio do
subject(:gateway) { FCReminder::Gateways::Twilio.new }
let(:config) do
{
account_sid: "accound sid",
auth_token: "auth token",
phone_number: "+1234567890"
}
end
context "#initialize" do
it { expect(gateway).to be_kind... | require 'spec_helper'
describe FCReminder::Gateways::Twilio do
subject(:gateway) { FCReminder::Gateways::Twilio.new }
let(:config) do
{
account_sid: "accound sid",
auth_token: "auth token",
phone_number: "+1234567890"
}
end
context "#initialize" do
it { expect(gateway).to be_kind... | Use only one before block | Use only one before block | Ruby | bsd-3-clause | kiela/fc-reminder | ruby | ## Code Before:
require 'spec_helper'
describe FCReminder::Gateways::Twilio do
subject(:gateway) { FCReminder::Gateways::Twilio.new }
let(:config) do
{
account_sid: "accound sid",
auth_token: "auth token",
phone_number: "+1234567890"
}
end
context "#initialize" do
it { expect(gat... | require 'spec_helper'
describe FCReminder::Gateways::Twilio do
subject(:gateway) { FCReminder::Gateways::Twilio.new }
let(:config) do
{
account_sid: "accound sid",
auth_token: "auth token",
phone_number: "+1234567890"
}
end
context "#initialize" do
it ... | 3 | 0.06383 | 2 | 1 |
5d332259e16758bc43201073db91409390be9134 | UM/Operations/GroupedOperation.py | UM/Operations/GroupedOperation.py |
from . import Operation
## An operation that groups several other operations together.
#
# The intent of this operation is to hide an underlying chain of operations
# from the user if they correspond to only one interaction with the user, such
# as an operation applied to multiple scene nodes or a re-arrangeme... |
from . import Operation
## An operation that groups several other operations together.
#
# The intent of this operation is to hide an underlying chain of operations
# from the user if they correspond to only one interaction with the user, such
# as an operation applied to multiple scene nodes or a re-arrangeme... | Remove removeOperation from grouped operation | Remove removeOperation from grouped operation
This function is never used and actually should never be used. The operation may not be modified after it is used, so removing an operation from the list makes no sense.
| Python | agpl-3.0 | onitake/Uranium,onitake/Uranium | python | ## Code Before:
from . import Operation
## An operation that groups several other operations together.
#
# The intent of this operation is to hide an underlying chain of operations
# from the user if they correspond to only one interaction with the user, such
# as an operation applied to multiple scene nodes o... |
from . import Operation
## An operation that groups several other operations together.
#
# The intent of this operation is to hide an underlying chain of operations
# from the user if they correspond to only one interaction with the user, such
# as an operation applied to multiple scene nodes o... | 4 | 0.095238 | 0 | 4 |
5ccc167150e63ba58522d0bf62301980f2b456c0 | views/instagram.rb | views/instagram.rb | module Views
module Instagram
class << self
def parse(message)
message_array = message.split(' ')
message_array.map! do |word|
if word.include?(Views::HASHMARK)
populate_tag_url(word)
elsif word.start_with?(Views::AT_SIGN)
"<a href='https://www.ins... | module Views
module Instagram
class << self
def parse(message)
message_array = message.split(' ')
message_array.map! do |word|
next populate_tag_url(word) if word.include?(Views::HASHMARK)
next account_url_for(word) if word.start_with?(Views::AT_SIGN)
word
... | Simplify methods of Instagram module | Simplify methods of Instagram module
* Use early returns
| Ruby | mit | spaceneedle2019/FranksHat,spaceneedle2019/FranksHat,spaceneedle2019/FranksHat | ruby | ## Code Before:
module Views
module Instagram
class << self
def parse(message)
message_array = message.split(' ')
message_array.map! do |word|
if word.include?(Views::HASHMARK)
populate_tag_url(word)
elsif word.start_with?(Views::AT_SIGN)
"<a href=... | module Views
module Instagram
class << self
def parse(message)
message_array = message.split(' ')
message_array.map! do |word|
- if word.include?(Views::HASHMARK)
+ next populate_tag_url(word) if word.include?(Views::HASHMARK)
? ++++++++++++++++++++++... | 28 | 0.8 | 12 | 16 |
adb6288e0414a95c3001bae364e7d84fa67dbd7a | dev-build-push.sh | dev-build-push.sh |
dcos marathon app remove /scale-db
dcos marathon app remove /scale-fluentd
dcos marathon app remove /scale-webserver
dcos marathon app stop /scale
if [ ! -f scale-ui/deploy/scale-ui-master.tar.gz ]
then
cd scale-ui
tar xf node_modules.tar.gz
tar xf bower_components.tar.gz
npm install
node node_mod... |
dcos marathon app remove /scale-db
dcos marathon app remove /scale-fluentd
dcos marathon app remove /scale-webserver
dcos marathon app stop /scale
# Assumes an adjacent scale-ui source code checkout to grab UI assets from
if [ ! -f ./scale-ui/index.html ]
then
cd ../scale-ui
npm run builddev:prod
cd -
... | Build UI in for testing | Build UI in for testing
| Shell | apache-2.0 | ngageoint/scale,ngageoint/scale,ngageoint/scale,ngageoint/scale | shell | ## Code Before:
dcos marathon app remove /scale-db
dcos marathon app remove /scale-fluentd
dcos marathon app remove /scale-webserver
dcos marathon app stop /scale
if [ ! -f scale-ui/deploy/scale-ui-master.tar.gz ]
then
cd scale-ui
tar xf node_modules.tar.gz
tar xf bower_components.tar.gz
npm install
... |
dcos marathon app remove /scale-db
dcos marathon app remove /scale-fluentd
dcos marathon app remove /scale-webserver
dcos marathon app stop /scale
- if [ ! -f scale-ui/deploy/scale-ui-master.tar.gz ]
+ # Assumes an adjacent scale-ui source code checkout to grab UI assets from
+ if [ ! -f ./scale-ui/index.... | 13 | 0.65 | 6 | 7 |
01dd232947895052939d7279ba699565db6a8d77 | services/value-stat-getter.js | services/value-stat-getter.js | 'use strict';
var _ = require('lodash');
var P = require('bluebird');
var FilterParser = require('./filter-parser');
function ValueStatGetter(model, params, opts) {
function getAggregateField() {
// jshint sub: true
return params['aggregate_field'] || '_id';
}
this.perform = function () {
return ne... | 'use strict';
var _ = require('lodash');
var P = require('bluebird');
var FilterParser = require('./filter-parser');
function ValueStatGetter(model, params, opts) {
function getAggregateField() {
// jshint sub: true
return params['aggregate_field'] || '_id';
}
this.perform = function () {
return ne... | Fix the value stat getter when no records available | Fix the value stat getter when no records available
| JavaScript | mit | SeyZ/forest-express-mongoose | javascript | ## Code Before:
'use strict';
var _ = require('lodash');
var P = require('bluebird');
var FilterParser = require('./filter-parser');
function ValueStatGetter(model, params, opts) {
function getAggregateField() {
// jshint sub: true
return params['aggregate_field'] || '_id';
}
this.perform = function ()... | 'use strict';
var _ = require('lodash');
var P = require('bluebird');
var FilterParser = require('./filter-parser');
function ValueStatGetter(model, params, opts) {
function getAggregateField() {
// jshint sub: true
return params['aggregate_field'] || '_id';
}
this.perform = f... | 2 | 0.047619 | 2 | 0 |
2282238d2c4fd629258ef1702217444aa21936d0 | lib/_request.js | lib/_request.js | 'use strict';
const https = require('https');
function _request(options, body) {
return new Promise(function(resolve, reject) {
const request = https.request(Object.assign({
hostname: 'api.mojang.com',
headers: { 'Content-Type': 'application/json' },
}, options), function(resp) {
let data ... | 'use strict';
const https = require('https');
function _request(options, body) {
return new Promise(function(resolve, reject) {
const request = https.request(Object.assign({
hostname: 'api.mojang.com',
headers: { 'Content-Type': 'application/json' },
}, options), function(resp) {
let data ... | Patch when no data received. | Patch when no data received.
If there was not a response from the Mojang servers then an error would occur:
```
SyntaxError: Unexpected end of input
at Object.parse (native)
at IncomingMessage.<anonymous> (/home/player-info/node_modules/mojang/lib/_request.js:18:21)
at emitNone (events.js:85:20)
... | JavaScript | unknown | jamen/node-mojang,jamen/mcnode,maccelerated/node-mojang,JamenMarz/mcnode | javascript | ## Code Before:
'use strict';
const https = require('https');
function _request(options, body) {
return new Promise(function(resolve, reject) {
const request = https.request(Object.assign({
hostname: 'api.mojang.com',
headers: { 'Content-Type': 'application/json' },
}, options), function(resp) {... | 'use strict';
const https = require('https');
function _request(options, body) {
return new Promise(function(resolve, reject) {
const request = https.request(Object.assign({
hostname: 'api.mojang.com',
headers: { 'Content-Type': 'application/json' },
}, options), function(res... | 3 | 0.085714 | 3 | 0 |
a4ac01a10007bd63b2ab225198f1badee606b8b2 | src/bem/blocks/sv-select-base.scss | src/bem/blocks/sv-select-base.scss | .sv-select-base {
padding: 0;
}
.sv-select-base__item {
position: relative;
margin-top: 0.3em;
margin-bottom: 1.07em;
vertical-align: middle;
}
.sv-select-base__item--inline {
display: inline-block;
padding-right: 2%;
}
.sv-select-base__column {
display: inline-block;
width: 19%;
vertical-align: top;
}
.sv-se... | .sv-select-base {
padding: 0;
}
.sv-select-base__item {
position: relative;
margin-top: 0.3em;
margin-bottom: 1.07em;
vertical-align: middle;
}
.sv-select-base__item--inline {
display: inline-block;
padding-right: 2%;
}
.sv-select-base__column {
display: inline-block;
width: 19%;
vertical-align: top;
}
.sv-se... | Fix labels in the select-base for small width case | Fix labels in the select-base for small width case
| SCSS | mit | surveyjs/surveyjs,andrewtelnov/surveyjs,surveyjs/surveyjs,surveyjs/surveyjs,andrewtelnov/surveyjs,andrewtelnov/surveyjs,surveyjs/surveyjs | scss | ## Code Before:
.sv-select-base {
padding: 0;
}
.sv-select-base__item {
position: relative;
margin-top: 0.3em;
margin-bottom: 1.07em;
vertical-align: middle;
}
.sv-select-base__item--inline {
display: inline-block;
padding-right: 2%;
}
.sv-select-base__column {
display: inline-block;
width: 19%;
vertical-alig... | .sv-select-base {
padding: 0;
}
.sv-select-base__item {
position: relative;
margin-top: 0.3em;
margin-bottom: 1.07em;
vertical-align: middle;
}
.sv-select-base__item--inline {
display: inline-block;
padding-right: 2%;
}
.sv-select-base__column {
display: inline-block;
width: 19%... | 4 | 0.137931 | 4 | 0 |
2fbd88f1a8fbf02601a1121a88096271279bfca2 | src/scripts/hubot-zoi.coffee | src/scripts/hubot-zoi.coffee |
request = require 'request'
uri = 'http://zoi.herokuapp.com/js/services.js'
getZois = (cb) ->
request(uri, (err, response, body) ->
if err
cb.onError(err)
else
zois = body.match(/image: 'https:\/\/pbs.twimg.com\/media\/.+.jpg:large'/mg).
map((l) -> l.match("'(.+)'")[1])
... |
request = require 'request'
uri = 'http://zoi.herokuapp.com/js/services.js'
getZois = (cb) ->
request(uri, (err, response, body) ->
if err
cb.onError(err)
else
zois = body.match(/image: 'https:\/\/pbs.twimg.com\/media\/.+.jpg:large'/mg).
map((l) -> l.match("'(https.+\.jpg)... | Remove :large suffix to usefully expand on limechat | Remove :large suffix to usefully expand on limechat
| CoffeeScript | mit | udzura/hubot-zoi | coffeescript | ## Code Before:
request = require 'request'
uri = 'http://zoi.herokuapp.com/js/services.js'
getZois = (cb) ->
request(uri, (err, response, body) ->
if err
cb.onError(err)
else
zois = body.match(/image: 'https:\/\/pbs.twimg.com\/media\/.+.jpg:large'/mg).
map((l) -> l.match(... |
request = require 'request'
uri = 'http://zoi.herokuapp.com/js/services.js'
getZois = (cb) ->
request(uri, (err, response, body) ->
if err
cb.onError(err)
else
zois = body.match(/image: 'https:\/\/pbs.twimg.com\/media\/.+.jpg:large'/mg).
- map((l) -> ... | 2 | 0.095238 | 1 | 1 |
404a349ff820cc9897ce4f95cec460620bf21e4d | .travis.yml | .travis.yml | language: java
matrix:
include:
- jdk: openjdk8
env: TARGET=checkstyle
- jdk: openjdk8
env: TARGET=pmd
- jdk: openjdk8
env: TARGET=cpd
- jdk: openjdk8
env: TARGET=test
services: xvfb
- jdk: openjdk11
env: TARGET=test
services: xvfb
- os: osx
osx... | language: java
matrix:
include:
- jdk: openjdk8
env: TARGET=checkstyle
- jdk: openjdk8
env: TARGET=pmd
- jdk: openjdk8
env: TARGET=cpd
- jdk: openjdk8
env: TARGET=test
services: xvfb
- jdk: openjdk11
env: TARGET=test
services: xvfb
- os: osx
osx... | Use Travis addons for installing Clasp | Use Travis addons for installing Clasp
| YAML | mit | tuura/workcraft,danilovesky/workcraft,danilovesky/workcraft,workcraft/workcraft,danilovesky/workcraft,workcraft/workcraft,workcraft/workcraft,danilovesky/workcraft,tuura/workcraft,tuura/workcraft,workcraft/workcraft | yaml | ## Code Before:
language: java
matrix:
include:
- jdk: openjdk8
env: TARGET=checkstyle
- jdk: openjdk8
env: TARGET=pmd
- jdk: openjdk8
env: TARGET=cpd
- jdk: openjdk8
env: TARGET=test
services: xvfb
- jdk: openjdk11
env: TARGET=test
services: xvfb
- o... | language: java
matrix:
include:
- jdk: openjdk8
env: TARGET=checkstyle
- jdk: openjdk8
env: TARGET=pmd
- jdk: openjdk8
env: TARGET=cpd
- jdk: openjdk8
env: TARGET=test
services: xvfb
- jdk: openjdk11
env: TARGET=test
servic... | 16 | 0.432432 | 7 | 9 |
43f9b4f23c2eae1414acac7a6196fd428f4c826a | app/views/sprint/confirmation.blade.php | app/views/sprint/confirmation.blade.php | @extends('layouts.default')
@section('content')
<h1>Successfully created "{{ $sprint->title }}"</h1>
<ul>
<li>
{{ link_to(
$_ENV['PHABRICATOR_URL'] . 'project/view/' . $sprint->phabricator_id,
$sprint->title . ' on Phabricator'
) }}
</li>
<li>
{{ link_to_route(
'sprint_path',
$sprint-... | @extends('layouts.default')
@section('content')
<h1>Successfully created "{{ $sprint->title }}"</h1>
<ul>
<li>
{{ link_to(
$_ENV['PHABRICATOR_URL'] . 'project/view/' . $sprint->phabricator_id,
$sprint->title . ' on Phabricator'
) }}
</li>
<li>
{{ link_to_route(
'sprint_path',
$sprint-... | Fix confirmation page id again. | Fix confirmation page id again.
| PHP | apache-2.0 | christopher-johnson/phabricator,christopher-johnson/phabricator,christopher-johnson/phabricator,christopher-johnson/phabricator,christopher-johnson/phabricator | php | ## Code Before:
@extends('layouts.default')
@section('content')
<h1>Successfully created "{{ $sprint->title }}"</h1>
<ul>
<li>
{{ link_to(
$_ENV['PHABRICATOR_URL'] . 'project/view/' . $sprint->phabricator_id,
$sprint->title . ' on Phabricator'
) }}
</li>
<li>
{{ link_to_route(
'sprint_pat... | @extends('layouts.default')
@section('content')
<h1>Successfully created "{{ $sprint->title }}"</h1>
<ul>
<li>
{{ link_to(
$_ENV['PHABRICATOR_URL'] . 'project/view/' . $sprint->phabricator_id,
$sprint->title . ' on Phabricator'
) }}
</li>
<li>
{{ link_to_route(
... | 2 | 0.071429 | 1 | 1 |
98059cc0ecbcce5cd87545a02b233b6819b7821a | .travis-ci.sh | .travis-ci.sh | echo "build here"
echo "Compiling new static content"
make release
BUILD_WWW=`make build_www`
echo "chmod"
chmod 600 deploy-key
echo "eval"
eval `ssh-agent -s`
echo "ssh"
ssh-add deploy-key
echo "git clone"
git clone git@github.com:hazelgrove/hazel.git
echo "git conf"
git config --global user.email "travis@travis-c... | echo "build here"
echo "compile new static content"
make release
BUILD_WWW=`make build_www`
# cf.
# http://markbucciarelli.com/posts/2019-01-26_how-to-push-to-github-from-travis-ci.html
# https://stackoverflow.com/questions/18935539/authenticate-with-github-using-a-token/22977235#22977235
echo "set up private key to p... | Update travis script to push to hazel-build | Update travis script to push to hazel-build
| Shell | mit | hazelgrove/hazel,hazelgrove/hazel,hazelgrove/hazel | shell | ## Code Before:
echo "build here"
echo "Compiling new static content"
make release
BUILD_WWW=`make build_www`
echo "chmod"
chmod 600 deploy-key
echo "eval"
eval `ssh-agent -s`
echo "ssh"
ssh-add deploy-key
echo "git clone"
git clone git@github.com:hazelgrove/hazel.git
echo "git conf"
git config --global user.email ... | echo "build here"
-
- echo "Compiling new static content"
? ^ ^^^
+ echo "compile new static content"
? ^ ^
make release
BUILD_WWW=`make build_www`
- echo "chmod"
- chmod 600 deploy-key
- echo "eval"
+ # cf.
+ # http://markbucciarelli.com/posts/2019-01-26_how-to-push-to-github-from-travi... | 37 | 0.880952 | 19 | 18 |
24ffb225bf6a7777461884f7c13f5feba63a43e7 | t/020-construct.t | t/020-construct.t |
use v6.c;
use Test;
use GDBM;
my $obj;
lives-ok { $obj = GDBM.new('foo.db') }, "create one";
isa-ok $obj, GDBM, "and it's the right sort of object";
ok 'foo.db'.IO.e, "and the file exists";
"foo.db".IO.unlink;
done-testing;
# vim: expandtab shiftwidth=4 ft=perl6
|
use v6.c;
use Test;
use GDBM;
my $filename = 'tmp-' ~ $*PID ~ '.db';
subtest {
my $obj;
lives-ok { $obj = GDBM.new($filename) }, "create one";
isa-ok $obj, GDBM, "and it's the right sort of object";
ok $obj.filename.IO.e, "and the file exists";
$obj.close;
$filename.IO.unlink;
}, "positio... | Test the new style constructor | Test the new style constructor
| Perl | artistic-2.0 | jonathanstowe/p6-GDBM,jonathanstowe/p6-GDBM | perl | ## Code Before:
use v6.c;
use Test;
use GDBM;
my $obj;
lives-ok { $obj = GDBM.new('foo.db') }, "create one";
isa-ok $obj, GDBM, "and it's the right sort of object";
ok 'foo.db'.IO.e, "and the file exists";
"foo.db".IO.unlink;
done-testing;
# vim: expandtab shiftwidth=4 ft=perl6
## Instruction:
Test the new sty... |
use v6.c;
use Test;
use GDBM;
- my $obj;
- lives-ok { $obj = GDBM.new('foo.db') }, "create one";
+ my $filename = 'tmp-' ~ $*PID ~ '.db';
- isa-ok $obj, GDBM, "and it's the right sort of object";
+ subtest {
+ my $obj;
+ lives-ok { $obj = GDBM.new($filename) }, "create one";
- ok 'foo.db... | 25 | 1.388889 | 20 | 5 |
af79dfa608ceba4ac757fcc7797e01401869ff94 | Entity/ReferralRegistrationRepository.php | Entity/ReferralRegistrationRepository.php | <?php
namespace Shaygan\AffiliateBundle\Entity;
use Doctrine\ORM\EntityRepository;
/**
* ReferralRegistrationRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class ReferralRegistrationRepository extends EntityRepository
{
public function getReg... | <?php
namespace Shaygan\AffiliateBundle\Entity;
use Doctrine\ORM\EntityRepository;
/**
* ReferralRegistrationRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class ReferralRegistrationRepository extends EntityRepository
{
public function getReg... | Add get registration count to service | Add get registration count to service | PHP | mit | Shaygan/AffiliateBundle | php | ## Code Before:
<?php
namespace Shaygan\AffiliateBundle\Entity;
use Doctrine\ORM\EntityRepository;
/**
* ReferralRegistrationRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class ReferralRegistrationRepository extends EntityRepository
{
public... | <?php
namespace Shaygan\AffiliateBundle\Entity;
use Doctrine\ORM\EntityRepository;
/**
* ReferralRegistrationRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class ReferralRegistrationRepository extends EntityRepository
{... | 1 | 0.027027 | 1 | 0 |
25cc54cacd4eb8f997dba2290e9d09818bd6a269 | lib/gitlab/ci/templates/Serverless.gitlab-ci.yml | lib/gitlab/ci/templates/Serverless.gitlab-ci.yml |
image: alpine:latest
stages:
- build
- test
- deploy
.serverless:build:image:
stage: build
image: registry.gitlab.com/gitlab-org/gitlabktl:latest
script: /usr/bin/gitlabktl app build
.serverless:deploy:image:
stage: deploy
image: gcr.io/triggermesh/tm@sha256:3cfdd470a66b741004fb02354319d79f1598c7011... |
image: alpine:latest
stages:
- build
- test
- deploy
.serverless:build:image:
image: registry.gitlab.com/gitlab-org/gitlabktl:latest
stage: build
script: /usr/bin/gitlabktl app build
.serverless:deploy:image:
image: registry.gitlab.com/gitlab-org/gitlabktl:latest
stage: deploy
environment: develop... | Deploy serverless apps with `gitlabktl` | Deploy serverless apps with `gitlabktl`
| YAML | mit | mmkassem/gitlabhq,stoplightio/gitlabhq,stoplightio/gitlabhq,mmkassem/gitlabhq,stoplightio/gitlabhq,mmkassem/gitlabhq,stoplightio/gitlabhq,mmkassem/gitlabhq | yaml | ## Code Before:
image: alpine:latest
stages:
- build
- test
- deploy
.serverless:build:image:
stage: build
image: registry.gitlab.com/gitlab-org/gitlabktl:latest
script: /usr/bin/gitlabktl app build
.serverless:deploy:image:
stage: deploy
image: gcr.io/triggermesh/tm@sha256:3cfdd470a66b741004fb02354... |
image: alpine:latest
stages:
- build
- test
- deploy
.serverless:build:image:
+ image: registry.gitlab.com/gitlab-org/gitlabktl:latest
stage: build
- image: registry.gitlab.com/gitlab-org/gitlabktl:latest
script: /usr/bin/gitlabktl app build
.serverless:deploy:image:
+ imag... | 13 | 0.40625 | 5 | 8 |
27f5676656e7507883ba365d2639e5f3cb5b0b58 | snippets/keras_testing.py | snippets/keras_testing.py | from keras.models import Sequential
from keras.layers import Dense, Dropout
import sys
import numpy as np
def main():
input_filename = sys.argv[1]
training = np.loadtxt('data/%s.csv' % input_filename, delimiter=',')
test = np.loadtxt('data/%s_test.csv' % input_filename, delimiter=',')
y_train = traini... | from keras.models import Sequential
from keras.layers import Dense, Dropout
import sys
import numpy as np
def main():
input_filename = sys.argv[1]
num_networks = int(sys.argv[2])
training = np.loadtxt('data/%s.csv' % input_filename, delimiter=',')
test = np.loadtxt('data/%s_test.csv' % input_filename,... | Tweak parameters and allow runs over multiple networks | Tweak parameters and allow runs over multiple networks
| Python | mit | farthir/msc-project | python | ## Code Before:
from keras.models import Sequential
from keras.layers import Dense, Dropout
import sys
import numpy as np
def main():
input_filename = sys.argv[1]
training = np.loadtxt('data/%s.csv' % input_filename, delimiter=',')
test = np.loadtxt('data/%s_test.csv' % input_filename, delimiter=',')
... | from keras.models import Sequential
from keras.layers import Dense, Dropout
import sys
import numpy as np
def main():
input_filename = sys.argv[1]
+ num_networks = int(sys.argv[2])
training = np.loadtxt('data/%s.csv' % input_filename, delimiter=',')
test = np.loadtxt('data/%s_test.... | 36 | 1.2 | 22 | 14 |
545aba006876923681b167596d0f931f542f7ec4 | CHANGELOG.md | CHANGELOG.md | Changelog
=========
### 0.1.1 March 11, 2014
**Features**
* Add changelog overview (#14)
* Add Change map bounds when loading GeoJSON (#13)
**Bugfixes**
* Fix undefined evaluation when snapping layer is not avaiable (#15)
* Fail gracefully when loading invalid GeoJSON (#12)
### 0.1.0 March 10, 2014
* Implements ... | Changelog
=========
### 0.2.0 (Unreadlesed)
**Features**
* Add option for overriding draw shortcuts (#23)
* Disable shortcuts by setting `options.shortcut` to `false`.
**Breaking changes**
* Default shortcut key for draw enable is `d`
* Default shortcut key for draw disable is `q`
### 0.1.1 March 11, 2014
**Feat... | Add shortcut changes to Changelog | Add shortcut changes to Changelog
| Markdown | bsd-2-clause | Turistforeningen/leaflet-routing,Turistforeningen/leaflet-routing | markdown | ## Code Before:
Changelog
=========
### 0.1.1 March 11, 2014
**Features**
* Add changelog overview (#14)
* Add Change map bounds when loading GeoJSON (#13)
**Bugfixes**
* Fix undefined evaluation when snapping layer is not avaiable (#15)
* Fail gracefully when loading invalid GeoJSON (#12)
### 0.1.0 March 10, 201... | Changelog
=========
+
+ ### 0.2.0 (Unreadlesed)
+
+ **Features**
+
+ * Add option for overriding draw shortcuts (#23)
+ * Disable shortcuts by setting `options.shortcut` to `false`.
+
+ **Breaking changes**
+
+ * Default shortcut key for draw enable is `d`
+ * Default shortcut key for draw disable is `q`
... | 12 | 0.521739 | 12 | 0 |
8f399e4211b45fb5eba8f21888b7c84b1d46a26c | site/README.md | site/README.md |
This directory contains the code for the Apache ORC docs site, [orc.apache.org](https://orc.apache.org/).
## Running locally
You can preview your contributions before opening a pull request by running from within the directory:
1. `gem install bundler`
2. `bundle install`
3. `bundle exec jekyll serve`
|
This directory contains the code for the Apache ORC web site,
[orc.apache.org](https://orc.apache.org/).
## Setup
1. `cd site`
2. `git clone https://git-wip-us.apache.org/repos/asf/orc.git -b asf-site target`
3. `sudo gem install bundler`
4. `sudo gem install github-pages jeykll`
4. `bundle install`
## Running loca... | Update the readme for the site. | Update the readme for the site.
| Markdown | apache-2.0 | chunyang-wen/orc,pudidic/orc,chunyang-wen/orc,chunyang-wen/orc,AnatoliShein/orc,omalley/orc,pudidic/orc,AnatoliShein/orc,omalley/orc,apache/orc,apache/orc,xunzhang/orc,apache/orc,omalley/orc,majetideepak/orc,AnatoliShein/orc,omalley/orc,xunzhang/orc,xunzhang/orc,AnatoliShein/orc,pudidic/orc,xunzhang/orc,omalley/orc,maj... | markdown | ## Code Before:
This directory contains the code for the Apache ORC docs site, [orc.apache.org](https://orc.apache.org/).
## Running locally
You can preview your contributions before opening a pull request by running from within the directory:
1. `gem install bundler`
2. `bundle install`
3. `bundle exec jekyll serve... |
- This directory contains the code for the Apache ORC docs site, [orc.apache.org](https://orc.apache.org/).
+ This directory contains the code for the Apache ORC web site,
+ [orc.apache.org](https://orc.apache.org/).
+
+ ## Setup
+
+ 1. `cd site`
+ 2. `git clone https://git-wip-us.apache.org/repos/asf/orc.git -b a... | 21 | 2.333333 | 18 | 3 |
e24d07e42053207fc4b13339a3f5f86e144e3de9 | doc/ops-guide/source/ops_projects.rst | doc/ops-guide/source/ops_projects.rst | =================
Managing Projects
=================
Users must be associated with at least one project, though they may
belong to many. Therefore, you should add at least one project before
adding users.
Adding Projects
~~~~~~~~~~~~~~~
To create a project through the OpenStack dashboard:
#. Log in as an administr... | =================
Managing Projects
=================
Users must be associated with at least one project, though they may
belong to many. Therefore, you should add at least one project before
adding users.
Adding Projects
~~~~~~~~~~~~~~~
To create a project through the OpenStack dashboard:
#. Log in as an administr... | Fix typos and enhance description | Fix typos and enhance description
In section 'Adding Projects', 1) “demo.” below might need to
be changed to '“demo”.', 2) 'tenant-description' might be
better if changed to 'project-description'
Change-Id: Ib7a96c86ae95c95563aa51e9c4241103c922676e
Closes-bug: 1604670
| reStructuredText | apache-2.0 | openstack/openstack-manuals,AlekhyaMallina-Vedams/openstack-manuals,openstack/openstack-manuals,AlekhyaMallina-Vedams/openstack-manuals,openstack/openstack-manuals,AlekhyaMallina-Vedams/openstack-manuals,openstack/openstack-manuals | restructuredtext | ## Code Before:
=================
Managing Projects
=================
Users must be associated with at least one project, though they may
belong to many. Therefore, you should add at least one project before
adding users.
Adding Projects
~~~~~~~~~~~~~~~
To create a project through the OpenStack dashboard:
#. Log in... | =================
Managing Projects
=================
Users must be associated with at least one project, though they may
belong to many. Therefore, you should add at least one project before
adding users.
Adding Projects
~~~~~~~~~~~~~~~
To create a project through the OpenStack dashboard:
... | 4 | 0.081633 | 2 | 2 |
eb26baf49634cc1547b2a8a9be0befac551c11ac | src/app-webapp/app/components/new-question/new-question.js | src/app-webapp/app/components/new-question/new-question.js | import React from 'react'
class NewQuestion extends React.Component {
render () {
return <div>
<h2>Create a New Question</h2>
</div>
}
}
export default NewQuestion
| import React from 'react'
import {
Form, FormGroup, ControlLabel, FormControl, Col
} from 'react-bootstrap'
import Button from 'react-bootstrap-button-loader'
class NewQuestion extends React.Component {
constructor (props) {
super(props)
this.state = { question: '', answer: '', isLoading: false }
this... | Add form for for creating a new question. | Add form for for creating a new question.
| JavaScript | mit | Charterhouse/NextBuild2017,Charterhouse/NextBuild2017,Charterhouse/NextBuild2017 | javascript | ## Code Before:
import React from 'react'
class NewQuestion extends React.Component {
render () {
return <div>
<h2>Create a New Question</h2>
</div>
}
}
export default NewQuestion
## Instruction:
Add form for for creating a new question.
## Code After:
import React from 'react'
import {
Form, Fo... | import React from 'react'
+ import {
+ Form, FormGroup, ControlLabel, FormControl, Col
+ } from 'react-bootstrap'
+ import Button from 'react-bootstrap-button-loader'
class NewQuestion extends React.Component {
+
+ constructor (props) {
+ super(props)
+ this.state = { question: '', answer: '', isLoa... | 65 | 5.909091 | 65 | 0 |
77ea218dd7d99d34ba635034e2c70436864d8bb1 | metadata/fr.xgouchet.packageexplorer.yml | metadata/fr.xgouchet.packageexplorer.yml | Categories:
- Development
License: MIT
SourceCode: https://github.com/xgouchet/Stanley
IssueTracker: https://github.com/xgouchet/Stanley/issues
Donate: https://www.paypal.me/xaviergouchet
AutoName: Stanley
RepoType: git
Repo: https://github.com/xgouchet/Stanley
Builds:
- versionName: '2.3'
versionCode: 15
... | Categories:
- Development
License: MIT
SourceCode: https://github.com/xgouchet/Stanley
IssueTracker: https://github.com/xgouchet/Stanley/issues
Donate: https://www.paypal.me/xaviergouchet
AutoName: Stanley
RepoType: git
Repo: https://github.com/xgouchet/Stanley
Builds:
- versionName: '2.3'
versionCode: 15
... | Update Stanley to 2.5 (17) | Update Stanley to 2.5 (17)
| YAML | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata | yaml | ## Code Before:
Categories:
- Development
License: MIT
SourceCode: https://github.com/xgouchet/Stanley
IssueTracker: https://github.com/xgouchet/Stanley/issues
Donate: https://www.paypal.me/xaviergouchet
AutoName: Stanley
RepoType: git
Repo: https://github.com/xgouchet/Stanley
Builds:
- versionName: '2.3'
ve... | Categories:
- Development
License: MIT
SourceCode: https://github.com/xgouchet/Stanley
IssueTracker: https://github.com/xgouchet/Stanley/issues
Donate: https://www.paypal.me/xaviergouchet
AutoName: Stanley
RepoType: git
Repo: https://github.com/xgouchet/Stanley
Builds:
- versionName: ... | 13 | 0.371429 | 11 | 2 |
0c3e1fb2e5ad9cfde759f9a6c262387e0a989065 | spec/integration/shared/valid_and_invalid_model.rb | spec/integration/shared/valid_and_invalid_model.rb | describe "valid model", :shared => true do
it "is valid" do
@model.should be_valid
end
it "has no error messages" do
@model.errors.should be_empty
end
end
describe "invalid model", :shared => true do
it "is NOT valid" do
@model.should_not be_valid
end
end
| describe "valid model", :shared => true do
it "is valid" do
@model.should be_valid
end
it "has no error messages" do
@model.errors.should be_empty
end
it "has empty list of full error messages" do
@model.errors.full_messages.should be_empty
end
end
describe "invalid model", :shared => true do... | Add error message expectations to 'valid model' and 'invalid model' shared spec groups | [dm-validations] Add error message expectations to 'valid model' and 'invalid model' shared spec groups
| Ruby | mit | emmanuel/aequitas,datamapper/dm-validations,mbj/aequitas | ruby | ## Code Before:
describe "valid model", :shared => true do
it "is valid" do
@model.should be_valid
end
it "has no error messages" do
@model.errors.should be_empty
end
end
describe "invalid model", :shared => true do
it "is NOT valid" do
@model.should_not be_valid
end
end
## Instruction:
[dm-v... | describe "valid model", :shared => true do
it "is valid" do
@model.should be_valid
end
it "has no error messages" do
@model.errors.should be_empty
end
+
+ it "has empty list of full error messages" do
+ @model.errors.full_messages.should be_empty
+ end
end
describe "inva... | 12 | 0.8 | 12 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.