commit stringlengths 40 40 | old_file stringlengths 4 237 | new_file stringlengths 4 237 | old_contents stringlengths 1 4.24k | new_contents stringlengths 5 4.84k | subject stringlengths 15 778 | message stringlengths 16 6.86k | lang stringlengths 1 30 | license stringclasses 13
values | repos stringlengths 5 116k | config stringlengths 1 30 | content stringlengths 105 8.72k |
|---|---|---|---|---|---|---|---|---|---|---|---|
7275e32d218f542a205ec51d1cb456565538d743 | nubis/tests/spec/services_spec.rb | nubis/tests/spec/services_spec.rb | require 'spec_helper'
# These shouldn't be enabled, our own startup logic starts it up
describe service('consul') do
it { should_not be_enabled }
end
# These should be enabled
describe service('confd') do
it { should be_enabled }
end
describe service('td-agent') do
it { should be_enabled }
end
describe servic... | require 'spec_helper'
# These shouldn't be enabled, our own startup logic starts it up
describe service('consul') do
it { should_not be_enabled }
end
describe service('node_exporter') do
it { should_not be_enabled }
end
# These should be enabled
describe service('sshd') do
it { should be_enabled }
end
describ... | Add 2 more service tests - sshd enabled - node_exporter disabled (enabled by confd) | Add 2 more service tests
- sshd enabled
- node_exporter disabled (enabled by confd)
| Ruby | mpl-2.0 | limed/nubis-base,gozer/nubis-base,tinnightcap/nubis-base,Nubisproject/nubis-base,limed/nubis-base,gozer/nubis-base,tinnightcap/nubis-base,tinnightcap/nubis-base,limed/nubis-base,Nubisproject/nubis-base,gozer/nubis-base | ruby | ## Code Before:
require 'spec_helper'
# These shouldn't be enabled, our own startup logic starts it up
describe service('consul') do
it { should_not be_enabled }
end
# These should be enabled
describe service('confd') do
it { should be_enabled }
end
describe service('td-agent') do
it { should be_enabled }
end
... |
b4cbe5aafa2932577f22cdac3627f9cd14dff71e | bot.rb | bot.rb | require 'eventmachine'
require 'em-http'
require 'json'
require 'redis'
require 'logger'
require 'net/https'
require './helper.rb'
Dir['./plugins/*.rb'].each { |file| require file }
include GitterBot::Plugin
API_HOST = URI('https://api.gitter.im')
API = Net::HTTP.new(API_HOST.host, API_HOST.port)
API.use_ssl = true
... | require 'eventmachine'
require 'em-http'
require 'json'
require 'redis'
require 'logger'
require 'net/https'
require './helper.rb'
Dir['./plugins/*.rb'].each { |file| require file }
include GitterBot::Plugin
API_HOST = URI('https://api.gitter.im')
API = Net::HTTP.new(API_HOST.host, API_HOST.port)
API.use_ssl = true
... | Change Logger default to STDOUT | Change Logger default to STDOUT
| Ruby | mit | dictav/gitter-ruby-bot | ruby | ## Code Before:
require 'eventmachine'
require 'em-http'
require 'json'
require 'redis'
require 'logger'
require 'net/https'
require './helper.rb'
Dir['./plugins/*.rb'].each { |file| require file }
include GitterBot::Plugin
API_HOST = URI('https://api.gitter.im')
API = Net::HTTP.new(API_HOST.host, API_HOST.port)
API... |
0c4bdc2d27fb289979004c7e0a0b9d0bf0a764cf | main.py | main.py |
import numpy as np
import universe
seed = 91231
n_trials = 20
n_steps = 1000
steps_to_reward = 9
max_reward = n_steps // steps_to_reward * 5.
uni = universe.Universe('grid_world', world='2d_world0')
uni.show()
reward = []
for i in range(n_trials):
np.random.seed(1234 + i)
uni.reset_agent_position()
... |
import matplotlib.pyplot as plt
import numpy as np
import universe
seed = 91231
n_trials = 20
n_steps = 1000
steps_to_reward = 14
max_reward = n_steps // steps_to_reward * 5.
uni = universe.Universe('grid_world', world='2d_world1')
uni.show()
reward = []
for i in range(n_trials):
reward_trial = []
np.ran... | Add trial cumulative reward plot | Add trial cumulative reward plot
| Python | mit | jakobj/python-tdl | python | ## Code Before:
import numpy as np
import universe
seed = 91231
n_trials = 20
n_steps = 1000
steps_to_reward = 9
max_reward = n_steps // steps_to_reward * 5.
uni = universe.Universe('grid_world', world='2d_world0')
uni.show()
reward = []
for i in range(n_trials):
np.random.seed(1234 + i)
uni.reset_agent... |
100ede054dd548ce53d6d9bec54e7a86c7a622c8 | .travis.yml | .travis.yml | language: ruby
before_install: gem update --system
services:
- mongodb
rvm:
- "2.3.5"
- "2.4.2"
- "2.5.0"
gemfile:
- "gemfiles/rails4.2.gemfile"
- "gemfiles/rails5.0.gemfile"
- "gemfiles/rails5.1.gemfile"
- "gemfiles/rails5.2.gemfile"
env:
- BACKEND=mongoid
- BACKEND=active_record
| language: ruby
before_install:
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
- gem install bundler -v '< 2'
services:
- mongodb
rvm:
- "2.3.5"
- "2.4.2"
- "2.5.0"
gemfile:
- "gemfiles/rails4.2.gemfile"
- "gemfiles/rails5.0.gemfile"
- "gemfiles/rails5.1.gemfile"
- "gemfiles/ra... | Downgrade to Bundler 1 on Travis | Downgrade to Bundler 1 on Travis
| YAML | mit | adamniedzielski/tiddle | yaml | ## Code Before:
language: ruby
before_install: gem update --system
services:
- mongodb
rvm:
- "2.3.5"
- "2.4.2"
- "2.5.0"
gemfile:
- "gemfiles/rails4.2.gemfile"
- "gemfiles/rails5.0.gemfile"
- "gemfiles/rails5.1.gemfile"
- "gemfiles/rails5.2.gemfile"
env:
- BACKEND=mongoid
- BACKEND=active_record
## ... |
63a222843082760fc680df7af06f2cb4da46902b | README.md | README.md |
Build Zephyr SDK
================
You will need to install all the packages required to build Yocto,
makeself and p7zip-full.
Yocto Requirements:
http://www.yoctoproject.org/docs/current/yocto-project-qs/yocto-project-qs.html#packages
In order to build the SDK from source you need to first clone
meta-zephyr-s... |
Build the SDK in Docker using poky-zephyr-sdk container, follow the instructions below:
```
$ cd $HOME
$ mkdir -p zephyr-sdk
$ git clone git@github.com:zephyrproject-rtos/meta-zephyr-sdk.git zephyr-sdk/meta-zephyr-sdk
$ docker run --privileged --rm -it -v $HOME/zephyr-sdk:/workdir crops/poky-zephyr-sdk --workdir=/wo... | Update documentation for building using docker | doc: Update documentation for building using docker
Signed-off-by: Anas Nashif <0d9952ec84ac43c159f6b7e7ed99a9080c00dd6e@intel.com>
| Markdown | mit | zephyrproject-rtos/meta-zephyr-sdk,zephyrproject-rtos/meta-zephyr-sdk,zephyrproject-rtos/meta-zephyr-sdk,zephyrproject-rtos/meta-zephyr-sdk | markdown | ## Code Before:
Build Zephyr SDK
================
You will need to install all the packages required to build Yocto,
makeself and p7zip-full.
Yocto Requirements:
http://www.yoctoproject.org/docs/current/yocto-project-qs/yocto-project-qs.html#packages
In order to build the SDK from source you need to first clo... |
debcec2e64e85aafec3a11860042401e9d9955a7 | metafunctions/tests/test_star.py | metafunctions/tests/test_star.py | from metafunctions.util import node, star
from metafunctions.tests.util import BaseTestCase
class TestUnit(BaseTestCase):
def test_simple_star(self):
@node
def f(*args):
return args
cmp = (a | b) | star(f)
self.assertEqual(cmp('_'), ('_', 'a', 'b'))
def test_str_r... | from metafunctions.util import node, star
from metafunctions.tests.util import BaseTestCase
class TestUnit(BaseTestCase):
def test_simple_star(self):
@node
def f(*args):
return args
cmp = (a | b) | star(f)
self.assertEqual(cmp('_'), ('_', 'a', 'b'))
def test_str_r... | Add more expected star str | Add more expected star str
| Python | mit | ForeverWintr/metafunctions | python | ## Code Before:
from metafunctions.util import node, star
from metafunctions.tests.util import BaseTestCase
class TestUnit(BaseTestCase):
def test_simple_star(self):
@node
def f(*args):
return args
cmp = (a | b) | star(f)
self.assertEqual(cmp('_'), ('_', 'a', 'b'))
... |
90cf7eec8fcc5df4eadb1d17f06825254241f03c | modules/detail/components/partial-select/partials/rechten.html | modules/detail/components/partial-select/partials/rechten.html | <div class="u-margin__bottom--4">
<h4 ng-if="apiData.count >= 5" class="c-paginering">1-{{ apiData.results.length }} van {{ apiData.count }}</h4>
<p ng-if="!apiData.results.length"><dp-message>Geen rechten gevonden</dp-message></p>
<ul class="o-list">
<li ng-repeat="object in apiData.results">
<dp-lin... | <div class="u-margin__bottom--4">
<h4 ng-if="apiData.count >= 5" class="c-paginering">1-{{ apiData.results.length }} van {{ apiData.count }}</h4>
<p ng-if="!apiData.results.length"><dp-message>Geen rechten gevonden</dp-message></p>
<ul class="o-list">
<li ng-repeat="object in apiData.results">
<dp-l... | Fix link naar kadastraat subject page vanuit kadastraal object | Fix link naar kadastraat subject page vanuit kadastraal object
| HTML | mpl-2.0 | DatapuntAmsterdam/atlas_prototype,Amsterdam/atlas,DatapuntAmsterdam/atlas,DatapuntAmsterdam/atlas_prototype,DatapuntAmsterdam/atlas,Amsterdam/atlas,DatapuntAmsterdam/atlas,Amsterdam/atlas,Amsterdam/atlas | html | ## Code Before:
<div class="u-margin__bottom--4">
<h4 ng-if="apiData.count >= 5" class="c-paginering">1-{{ apiData.results.length }} van {{ apiData.count }}</h4>
<p ng-if="!apiData.results.length"><dp-message>Geen rechten gevonden</dp-message></p>
<ul class="o-list">
<li ng-repeat="object in apiData.results... |
4b1d873723b23e4f9f6bb8cce7ca3604041a16d9 | Source/ThreadLocal.swift | Source/ThreadLocal.swift | import Foundation
/// Convenience wrapper for generically storing values of type `T` in thread-local storage.
internal final class ThreadLocal<T> {
let key: String
init(_ key: String) {
self.key = key
}
var value: T? {
get {
#if swift(>=3.1)
return Thread.current.threadDictionary[key] as? T
#el... | import Foundation
/// Convenience wrapper for generically storing values of type `T` in thread-local storage.
internal final class ThreadLocal<T> {
let key: String
init(_ key: String) {
self.key = key
}
var value: T? {
get {
return Thread.current.threadDictionary[key] as? T
}
set {
... | Drop support for swift < 3.1 | Drop support for swift < 3.1
| Swift | mit | sharplet/Regex,sharplet/Regex,sharplet/Regex | swift | ## Code Before:
import Foundation
/// Convenience wrapper for generically storing values of type `T` in thread-local storage.
internal final class ThreadLocal<T> {
let key: String
init(_ key: String) {
self.key = key
}
var value: T? {
get {
#if swift(>=3.1)
return Thread.current.threadDictionar... |
80f04f278e9609d1d4a9ffbd0b07a712d4c09472 | docs/index.html | docs/index.html | ---
layout: "default"
title: "Documentation"
lead: "Learn more about the logsearch projects..."
---
<h3><a href="./boshrelease/">Logsearch (BOSH Release)</a></h3>
Learn about setting up, managing, and operational tasks required in running your own logsearch deployment.
<h3><a href="./shipper-boshrelease/">Logsearch... | ---
layout: "default"
title: "Documentation"
lead: "Learn more about the logsearch projects..."
---
<h3><a href="./boshrelease/">Logsearch (BOSH Release)</a></h3>
Learn about setting up, managing, and operational tasks required in running your own logsearch deployment.
<h3><a href="./shipper-boshrelease/">Logsearch... | Add link to workspace docs | Add link to workspace docs
| HTML | apache-2.0 | logsearch/website,logsearch/website,logsearch/website | html | ## Code Before:
---
layout: "default"
title: "Documentation"
lead: "Learn more about the logsearch projects..."
---
<h3><a href="./boshrelease/">Logsearch (BOSH Release)</a></h3>
Learn about setting up, managing, and operational tasks required in running your own logsearch deployment.
<h3><a href="./shipper-boshrel... |
6fab7a8170cbd993400b097478f328024c3f9247 | ezdaemon/__init__.py | ezdaemon/__init__.py |
from daemon import daemonize
if __name__ == "__main__":
assert daemonize
print "imported ok"
|
from daemon import daemonize
if __name__ == "__main__":
assert daemonize
print "ezdaemon.daemonize imported ok"
| Make init docstring reflect README | Make init docstring reflect README
| Python | mit | cjeffers/ezdaemon | python | ## Code Before:
from daemon import daemonize
if __name__ == "__main__":
assert daemonize
print "imported ok"
## Instruction:
Make init docstring reflect README
## Code After:
from daemon import daemonize
if __name__ == "__main__":
assert daemonize
print "ezdaemon.daemonize imported ok"
|
2993958c5b9399064e4cf29b745be68ef3a78669 | README.md | README.md |
React Native for OS X (Windows, Linux).
## Current stage

## Roadmap to 0.1.0
https://github.com/ptmt/react-native-desktop/issues/1
|
React Native for OS X (Windows, Linux).
## Current stage

## Roadmap to 0.1.0
https://github.com/ptmt/react-native-desktop/issues/1
| Replace dropbox link with imgur | Replace dropbox link with imgur
| Markdown | mit | ptmt/react-native-macos,pvinis/react-native-desktop,pvinis/react-native-desktop,ptmt/react-native-macos,ptmt/react-native-macos,pvinis/react-native-desktop,ptmt/react-native-macos,pvinis/react-native-desktop,pvinis/react-native-desktop,ptmt/react-native-macos,ptmt/react-native-macos,pvinis/react-native-desktop,ptmt/rea... | markdown | ## Code Before:
React Native for OS X (Windows, Linux).
## Current stage

## Roadmap to 0.1.0
https://github.com/ptmt/react-native-desktop/i... |
38e3d54b6f2a450e5b907a8092f61af8b190fbc3 | BlogApp/dev-docker-compose.yml | BlogApp/dev-docker-compose.yml |
version: '3.3'
services:
pg1:
image: postgres:11-alpine
container_name: pg1
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_USER: 'user1'
POSTGRES_PASSWORD: 'password1'
POSTGRES_DB: 'blog'
PGDATA: '/var/lib/postgresql/data/pdata/volume'
vo... |
version: '3.3'
services:
pg1:
image: postgres:11-alpine
container_name: pg1
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_USER: 'user1'
POSTGRES_PASSWORD: 'password1'
POSTGRES_DB: 'blog'
PGDATA: '/var/lib/postgresql/data/pdata/volume'
vo... | Fix vol mount for minio | Fix vol mount for minio
| YAML | mit | tburnett80/blogApp,tburnett80/blogApp | yaml | ## Code Before:
version: '3.3'
services:
pg1:
image: postgres:11-alpine
container_name: pg1
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_USER: 'user1'
POSTGRES_PASSWORD: 'password1'
POSTGRES_DB: 'blog'
PGDATA: '/var/lib/postgresql/data/pdata... |
ea6dfc176b05060b62efaae677f3f19fb99ebd22 | tests/Kwc/Trl/Table/config.ini | tests/Kwc/Trl/Table/config.ini | [production]
assets.Test.TestFiles = true
[test : production]
[vivid : production]
[dependencies]
TestFiles.dep[] = KwfTestCore
TestFiles.dep[] = ExtCore
TestFiles.dep[] = ComponentsAdmin
TestFiles.dep[] = KwfAutoForm
TestFiles.dep[] = ExtContainer | [production]
assets.Test.TestFiles = true
[test : production]
[vivid : production]
[dependencies]
TestFiles.dep[] = KwfTestCore
TestFiles.dep[] = ExtCore
TestFiles.dep[] = ComponentsAdmin
TestFiles.dep[] = KwfAutoForm
TestFiles.dep[] = ExtContainer
TestFiles.dep[] = ExtGrid
TestFiles.dep[] = KwfAutoGrid | Add additional dependencies, but still not working... | Add additional dependencies, but still not working...
| INI | bsd-2-clause | koala-framework/koala-framework,fraxachun/koala-framework,darimpulso/koala-framework,koala-framework/koala-framework,nsams/koala-framework,kaufmo/koala-framework,nsams/koala-framework,kaufmo/koala-framework,darimpulso/koala-framework,Sogl/koala-framework,Sogl/koala-framework,fraxachun/koala-framework,kaufmo/koala-frame... | ini | ## Code Before:
[production]
assets.Test.TestFiles = true
[test : production]
[vivid : production]
[dependencies]
TestFiles.dep[] = KwfTestCore
TestFiles.dep[] = ExtCore
TestFiles.dep[] = ComponentsAdmin
TestFiles.dep[] = KwfAutoForm
TestFiles.dep[] = ExtContainer
## Instruction:
Add additional dependencies, but sti... |
b56ab762ce6c5fd0780ea79b757cf4992bb8d3bd | assignments/elixir/grains/grains_test.exs | assignments/elixir/grains/grains_test.exs | Code.load_file("grains.exs")
ExUnit.start
defmodule GrainsTest do
use ExUnit.Case
test "square 1" do
assert 1 == Grains.square(1)
end
test "square 2" do
assert 2 == Grains.square(2)
end
test "square 3" do
assert 4 == Grains.square(3)
end
test "square 4" do
assert 8 == Grains.square(... | Code.load_file("grains.exs")
ExUnit.start
# NOTE: :math.pow/2 doesn't do what you'd expect:
# `:math.pow(2, 64) == :math.pow(2, 64) - 1` is true.
#
# It's best to avoid functions operating on floating point numbers for very
# large numbers.
defmodule GrainsTest do
use ExUnit.Case
test "square 1" do
assert 1 ... | Add warning about :math.pow to elixir grains | Add warning about :math.pow to elixir grains
| Elixir | agpl-3.0 | IanDCarroll/exercism.io,praveenpuglia/exercism.io,k4rtik/exercism.io,emilyforst/exercism.io,hanumakanthvvn/exercism.io,treiff/exercism.io,RaptorRCX/exercism.io,mscoutermarsh/exercism_coveralls,colinrubbert/exercism.io,Tonkpils/exercism.io,bmulvihill/exercism.io,RaptorRCX/exercism.io,exercistas/exercism.io,copiousfreeti... | elixir | ## Code Before:
Code.load_file("grains.exs")
ExUnit.start
defmodule GrainsTest do
use ExUnit.Case
test "square 1" do
assert 1 == Grains.square(1)
end
test "square 2" do
assert 2 == Grains.square(2)
end
test "square 3" do
assert 4 == Grains.square(3)
end
test "square 4" do
assert 8 =... |
af0e5d98b1db3df334aa3598d4137180ea2b33cd | README.md | README.md | Dashboard
=========
**This is a Chrome extension for filtering the activity feed on github.com dashboard.**
GitHub activity feed is filled with tons of different activities. I care some of them, some time, but not all the time.
I have always thought that I want an **activity filter** like this, but I don't know for s... | Dashboard
=========
**This is a Chrome extension for filtering the activity feed on github.com dashboard.**
GitHub activity feed is filled with tons of different activities. I care some of them, some time, but not all the time.
I have always thought that I want an **activity filter** like this, but I don't know for s... | Swap the screenshot cause that line is bugging me | Swap the screenshot cause that line is bugging me
| Markdown | mit | muan/dashboard,gkotian/dashboard | markdown | ## Code Before:
Dashboard
=========
**This is a Chrome extension for filtering the activity feed on github.com dashboard.**
GitHub activity feed is filled with tons of different activities. I care some of them, some time, but not all the time.
I have always thought that I want an **activity filter** like this, but I ... |
5f5ac71f80f5f2e17e60b19b449eb88fe158ab36 | webpack.config.prod.js | webpack.config.prod.js | var webpack = require('webpack');
var path = require('path');
module.exports = {
devtool: 'source-map',
context: __dirname,
entry: [
'./index.js'
],
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js'
},
module: {
loaders: [
{
test: /\.woff(2)?(\?v=[0-9]\.[0... | var webpack = require('webpack');
var path = require('path');
module.exports = {
devtool: 'source-map',
context: __dirname,
entry: [
'./index.js'
],
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js'
},
module: {
loaders: [
{
test: /\.woff(2)?(\?v=[0-9]\.[0... | Remove hot loader from webpack config | Remove hot loader from webpack config
| JavaScript | mit | argelius/react-onsenui-redux-weather,argelius/react-onsenui-redux-weather,argelius/react-onsenui-redux-weather | javascript | ## Code Before:
var webpack = require('webpack');
var path = require('path');
module.exports = {
devtool: 'source-map',
context: __dirname,
entry: [
'./index.js'
],
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js'
},
module: {
loaders: [
{
test: /\.woff(2... |
92e94b2866e6d38c84d44bf4029fc6436977ea11 | frontend/imports/ui/client/widgets/orderrow.html | frontend/imports/ui/client/widgets/orderrow.html | <template name="orderRow">
<tr class={{order.status}} title={{timestampToString order.timestamp false true}}>
{{#if showDate}}
<td class="timestamp">{{timestampToString order.timestamp false true}}</td>
{{/if}}
{{#if showType}}
<td class="{{determineOrderType order}}">
{{#if equals (de... | <template name="orderRow">
<tr class={{order.status}} title={{timestampToString order.timestamp false true}}>
{{#if showDate}}
<td class="timestamp">{{timestampToString order.timestamp false true}}</td>
{{/if}}
{{#if showType}}
<td class="{{determineOrderType order}} order-type">
{{#if... | Correct font for type column fix | Correct font for type column fix
| HTML | apache-2.0 | peculiarity/oasis,OasisDEX/oasis,OasisDEX/oasis,peculiarity/oasis | html | ## Code Before:
<template name="orderRow">
<tr class={{order.status}} title={{timestampToString order.timestamp false true}}>
{{#if showDate}}
<td class="timestamp">{{timestampToString order.timestamp false true}}</td>
{{/if}}
{{#if showType}}
<td class="{{determineOrderType order}}">
... |
abe53f2f5fa6b2a7833d0296ac0f6b87a2c3fd73 | init.bat | init.bat | @echo off
chcp 65001>nul
prompt [%USERNAME%@%COMPUTERNAME% $p]$_$$$s
rem Fake a UNIX environment
doskey clear=cls
doskey ls=dir /d $*
doskey cp=copy $*
doskey mv=move $*
doskey rm=del $*
doskey cat=type $*
doskey touch=type nul$G$G$*
rem Easier navigation
doskey cd=cd /D $*
doskey cd..=cd ..
doskey ..=cd ..
doske... | @echo off
chcp 65001>nul
prompt [%USERNAME%@%COMPUTERNAME% $p]$_$$$s
rem Fake a UNIX environment
doskey clear=cls
doskey ls=dir /d $*
doskey cp=copy $*
doskey mv=move $*
doskey rm=del $*
doskey cat=type $*
doskey touch=type nul$G$G$*
rem Easier navigation
doskey cd=cd /D $*
doskey cd..=cd ..
doskey ..=cd ..
doske... | Use vscode as editor in windows | Use vscode as editor in windows
| Batchfile | mit | ArloL/dotfiles,ArloL/dotfiles | batchfile | ## Code Before:
@echo off
chcp 65001>nul
prompt [%USERNAME%@%COMPUTERNAME% $p]$_$$$s
rem Fake a UNIX environment
doskey clear=cls
doskey ls=dir /d $*
doskey cp=copy $*
doskey mv=move $*
doskey rm=del $*
doskey cat=type $*
doskey touch=type nul$G$G$*
rem Easier navigation
doskey cd=cd /D $*
doskey cd..=cd ..
doske... |
e7874da3aed32c28a0823b760127ac307a93037b | config/config.php | config/config.php | <?php
return [
'layout' => 'ui::layouts.public.full',
'captcha' => false,
'identifier' => 'email',
'login' => [
'implementation' => \Laravolt\Auth\DefaultLogin::class,
],
'registration' => [
'enable' => true,
'status' => 'ACTIVE',
... | <?php
return [
'layout' => 'ui::layouts.public.full',
'captcha' => false,
'identifier' => 'email',
'login' => [
'implementation' => \Laravolt\Auth\DefaultLogin::class,
],
'registration' => [
'enable' => true,
'status' => 'ACTIVE',
... | Add warning about custom logout redirection | Add warning about custom logout redirection
| PHP | mit | laravolt/auth,laravolt/auth | php | ## Code Before:
<?php
return [
'layout' => 'ui::layouts.public.full',
'captcha' => false,
'identifier' => 'email',
'login' => [
'implementation' => \Laravolt\Auth\DefaultLogin::class,
],
'registration' => [
'enable' => true,
'status' =... |
7f6288fb8f5499c436aa7ff0a95957bb13c2b459 | usr.sbin/gssd/Makefile | usr.sbin/gssd/Makefile |
PROG= gssd
MAN= gssd.8
SRCS= gssd.c gssd.h gssd_svc.c gssd_xdr.c gssd_prot.c
CFLAGS+= -I.
WARNS?= 1
DPADD= ${LIBGSSAPI}
LDADD= -lgssapi
CLEANFILES= gssd_svc.c gssd.h
RPCSRC= ${.CURDIR}/../../sys/kgssapi/gssd.x
RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -L -C -M
gssd_svc.c: ${RPCSRC} gssd.h
${RPCGEN} -m -o ${.TARGET} ${R... |
PROG= gssd
MAN= gssd.8
SRCS= gssd.c gssd.h gssd_svc.c gssd_xdr.c gssd_prot.c
CFLAGS+= -I.
WARNS?= 1
DPADD= ${LIBGSSAPI} ${LIBKRB5} ${LIBHX509} ${LIBASN1} ${LIBROKEN} ${LIBCOM_ERR} ${LIBCRYPT} ${LIBCRYPTO}
LDADD= -lgssapi -lkrb5 -lhx509 -lasn1 -lroken -lcom_err -lcrypt -lcrypto
CLEANFILES= gssd_svc.c gssd.h
RPCSRC=... | Fix the Makefile so it can build gssd.c after r244604. | Fix the Makefile so it can build gssd.c after r244604.
MFC after: 2 weeks
| unknown | bsd-3-clause | jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase | unknown | ## Code Before:
PROG= gssd
MAN= gssd.8
SRCS= gssd.c gssd.h gssd_svc.c gssd_xdr.c gssd_prot.c
CFLAGS+= -I.
WARNS?= 1
DPADD= ${LIBGSSAPI}
LDADD= -lgssapi
CLEANFILES= gssd_svc.c gssd.h
RPCSRC= ${.CURDIR}/../../sys/kgssapi/gssd.x
RPCGEN= RPCGEN_CPP=${CPP:Q} rpcgen -L -C -M
gssd_svc.c: ${RPCSRC} gssd.h
${RPCGEN} -m -... |
4368728225781ce439c0e332f4d12f58439d357b | src/Service/ElasticSearch/Client.php | src/Service/ElasticSearch/Client.php | <?php
/**
* @author Jean Silva <me@jeancsil.com>
* @license MIT
*/
namespace Jeancsil\FlightSpy\Service\ElasticSearch;
use Elasticsearch\ClientBuilder;
final class Client
{
/**
* @var \Elasticsearch\Client
*/
private static $instance;
/**
* To avoid the direct construction
*/
p... | <?php
/**
* @author Jean Silva <me@jeancsil.com>
* @license MIT
*/
namespace Jeancsil\FlightSpy\Service\ElasticSearch;
use Elasticsearch\ClientBuilder;
final class Client
{
private static $ELASTICSEARCH_DEFAULT_HOST = 'elasticsearch:9200';
/**
* @var \Elasticsearch\Client
*/
private static $... | Add the default ElasticSearch host for Docker container. | Add the default ElasticSearch host for Docker container.
| PHP | mit | jeancsil/flight-spy,jeancsil/flight-spy,jeancsil/flight-spy | php | ## Code Before:
<?php
/**
* @author Jean Silva <me@jeancsil.com>
* @license MIT
*/
namespace Jeancsil\FlightSpy\Service\ElasticSearch;
use Elasticsearch\ClientBuilder;
final class Client
{
/**
* @var \Elasticsearch\Client
*/
private static $instance;
/**
* To avoid the direct constructi... |
0040da1ed6d70b9d0ca4169a0081a5c20a23622e | lib/tasks/hooks/RebundleTask.js | lib/tasks/hooks/RebundleTask.js | "use strict";
const HookTask = require('./HookTask');
class RebundleTask extends HookTask {
constructor(buildManager, taskRunner) {
super(buildManager, taskRunner);
this.command = "rebundle-hook";
}
action() {
console.log('rebundleeeee');
var Promise= require('bluebird');... | "use strict";
const HookTask = require('./HookTask');
class RebundleTask extends HookTask {
constructor(buildManager, taskRunner) {
super(buildManager, taskRunner);
this.command = "rebundle-hook";
}
_getTasks() {
return this._buildManager.options.onRebundle;
}
}
module.e... | Remove typo from rebundle task | Remove typo from rebundle task
| JavaScript | mit | mtfranchetto/smild,mtfranchetto/smild,mtfranchetto/smild | javascript | ## Code Before:
"use strict";
const HookTask = require('./HookTask');
class RebundleTask extends HookTask {
constructor(buildManager, taskRunner) {
super(buildManager, taskRunner);
this.command = "rebundle-hook";
}
action() {
console.log('rebundleeeee');
var Promise= requ... |
6f9c88af6f5dede846aadc4a1df50694c0190176 | test/test_helper.rb | test/test_helper.rb | require 'minitest/autorun'
if ENV["CI"]
require 'coveralls'
Coveralls.wear!
end
| if ENV["CI"]
require 'coveralls'
Coveralls.wear!
end
require 'minitest/autorun'
| Order matters of when we load Coveralls | Order matters of when we load Coveralls
| Ruby | mit | jasonrclark/hometown | ruby | ## Code Before:
require 'minitest/autorun'
if ENV["CI"]
require 'coveralls'
Coveralls.wear!
end
## Instruction:
Order matters of when we load Coveralls
## Code After:
if ENV["CI"]
require 'coveralls'
Coveralls.wear!
end
require 'minitest/autorun'
|
2f2a17f599a3d3de05b61664c6d321494c01e552 | server/production.js | server/production.js | /* eslint strict: 0 */
'use strict';
// Load environment variables
require('dotenv-safe').load();
// Load assets
const assets = require('./assets');
const express = require('express');
const compression = require('compression');
const cookieParser = require('cookie-parser');
const server = express();
// Set up the r... | /* eslint strict: 0 */
'use strict';
// Load environment variables
require('dotenv-safe').load();
// Load assets
const assets = require('./assets');
const express = require('express');
const compression = require('compression');
const cookieParser = require('cookie-parser');
const server = express();
// Set up the r... | Set long time caching for js/css builds. | Set long time caching for js/css builds.
| JavaScript | mit | reauv/persgroep-app,reauv/persgroep-app | javascript | ## Code Before:
/* eslint strict: 0 */
'use strict';
// Load environment variables
require('dotenv-safe').load();
// Load assets
const assets = require('./assets');
const express = require('express');
const compression = require('compression');
const cookieParser = require('cookie-parser');
const server = express();
... |
8dab0e8bc38760b2dd48047b658296eaed835f90 | app/controllers/source_download_controller.rb | app/controllers/source_download_controller.rb | class SourceDownloadController < ApplicationController
def show
@branch = Branch.find_by!(name: params[:branch])
@srpm = @branch.srpms.find_by!(name: params[:srpm_id])
@source = @srpm.sources.find_by!(filename: params[:source_id])
if @source.source?
send_data @source.source, disposition: 'attach... | class SourceDownloadController < ApplicationController
def show
@branch = Branch.find_by!(name: params[:branch])
@srpm = @branch.srpms.find_by!(name: params[:srpm_id])
@source = @srpm.sources.find_by!(filename: params[:source_id])
if @source.source?
send_data @source.source, disposition: 'attach... | Raise ActiveRecord::RecordNotFound if source is not imported | Raise ActiveRecord::RecordNotFound if source is not imported
| Ruby | mit | biow0lf/prometheus2.0,biow0lf/prometheus2.0,biow0lf/prometheus2.0,biow0lf/prometheus2.0 | ruby | ## Code Before:
class SourceDownloadController < ApplicationController
def show
@branch = Branch.find_by!(name: params[:branch])
@srpm = @branch.srpms.find_by!(name: params[:srpm_id])
@source = @srpm.sources.find_by!(filename: params[:source_id])
if @source.source?
send_data @source.source, disp... |
80d7192bb18c64645925b8844738a041051ba5c6 | internal/util/blackhole.go | internal/util/blackhole.go | package util
import "io"
// A BlackHole is an io.ReadWriter that accepts an infinite
// amount of input and produces no output.
type BlackHole struct{}
func (BlackHole) Read(p []byte) (int, error) { return 0, io.EOF }
func (BlackHole) Write(p []byte) (int, error) { return len(p), nil }
| package util
import "io"
// A BlackHole is an io.ReadWriteCloser that accepts an infinite
// amount of input and produces no output.
type BlackHole struct{}
func (BlackHole) Read(p []byte) (int, error) { return 0, io.EOF }
func (BlackHole) Write(p []byte) (int, error) { return len(p), nil }
func (BlackHole) Close()... | Implement the `io.ReadWriteCloser` interface for `util.Blackhole` | Implement the `io.ReadWriteCloser` interface for `util.Blackhole`
| Go | mit | droyo/styx | go | ## Code Before:
package util
import "io"
// A BlackHole is an io.ReadWriter that accepts an infinite
// amount of input and produces no output.
type BlackHole struct{}
func (BlackHole) Read(p []byte) (int, error) { return 0, io.EOF }
func (BlackHole) Write(p []byte) (int, error) { return len(p), nil }
## Instructi... |
8c457aafc5fca219bb150752d3c93579060b3303 | README.md | README.md | Aim of this framework is to speed up XJC plugins development.
It will also contains a few common fully usable plugins as a template for other contributors.
### usage of collection-manipulator
Add xml namespace to xjb document:
'''
xmlns:coll="http://common.jaxb.devontrain.com/plugin/collection-manipulator"
'''
Now you... | Aim of this framework is to speed up XJC plugins development.
It will also contains a few common fully usable plugins as a template for other contributors.
### usage of collection-manipulator
Add xml namespace to xjb document:
```
xmlns:coll="http://common.jaxb.devontrain.com/plugin/collection-manipulator"
```
Now you... | Add more description for the project. | Add more description for the project.
| Markdown | mit | piotr-tarnowski/xjc-plugins-base | markdown | ## Code Before:
Aim of this framework is to speed up XJC plugins development.
It will also contains a few common fully usable plugins as a template for other contributors.
### usage of collection-manipulator
Add xml namespace to xjb document:
'''
xmlns:coll="http://common.jaxb.devontrain.com/plugin/collection-manipula... |
033df3445dc820554bf65195c9b65a0de3b279fd | web/templates/page/index.html.eex | web/templates/page/index.html.eex | <table class="table table-striped">
<tbody>
<%= for user <- Map.keys(@prs) do %>
<%= for commit <- @prs[user] do %>
<tr class="">
<td>
<img src="<%= commit.github_user_avatar %>" style="width: 32px; height: 32px;" />
<%= user %>
</td>
<td><%= lin... | <table class="table table-striped">
<tbody>
<%= for user <- Map.keys(@prs) do %>
<%= for commit <- @prs[user] do %>
<tr class="">
<td>
<img src="<%= commit.github_user_avatar %>" style="width: 32px; height: 32px;" />
<%= user %>
</td>
<td><%= lin... | Add parens to try to fix heroku problem. | Add parens to try to fix heroku problem.
| HTML+EEX | mit | mgwidmann/slack_coder,mgwidmann/slack_coder,mgwidmann/slack_coder,mgwidmann/slack_coder | html+eex | ## Code Before:
<table class="table table-striped">
<tbody>
<%= for user <- Map.keys(@prs) do %>
<%= for commit <- @prs[user] do %>
<tr class="">
<td>
<img src="<%= commit.github_user_avatar %>" style="width: 32px; height: 32px;" />
<%= user %>
</td>
... |
794fb6093a9cfb93823c44f1cd80e4ae6723d287 | README.md | README.md |
*Matthew Bee (matt@todayishould.com)*
Instructions moved to INSTRUCTIONS.md and README.md has become developer instructions for running the code test locally and notes on development.
## Installation
### Requirements
* [NodeJS](https://nodejs.org/en/)
* [npm](https://www.npmjs.com/)
* [bower](https://bower.io/)
#... |
*Matthew Bee (matt@todayishould.com)*
Instructions moved to INSTRUCTIONS.md and README.md has become developer instructions for running the code test locally and notes on development.
## Installation
### Requirements
* [NodeJS](https://nodejs.org/en/)
* [npm](https://www.npmjs.com/)
* [bower](https://bower.io/)
#... | Add todo list/dev plan and mark completed items | Add todo list/dev plan and mark completed items
| Markdown | mit | mattbee/future-learn-code-exercise,mattbee/future-learn-code-exercise | markdown | ## Code Before:
*Matthew Bee (matt@todayishould.com)*
Instructions moved to INSTRUCTIONS.md and README.md has become developer instructions for running the code test locally and notes on development.
## Installation
### Requirements
* [NodeJS](https://nodejs.org/en/)
* [npm](https://www.npmjs.com/)
* [bower](https... |
d80f269fbe0d5a8cc7800aa46aefd6eea15b0fd3 | app/assets/javascripts/catalog-admin/summernote_init.coffee | app/assets/javascripts/catalog-admin/summernote_init.coffee | init = ->
$("[data-provider='summernote']").summernote
height: 300
maximumImageFileSize: 262144 # 256KB
toolbar: [
['style', ['style']],
['font', ['bold', 'italic', 'underline', 'clear']],
['fontname', ['fontname']],
['color', ['color']],
['para', ['ul', 'ol', 'paragraph']],
... | init = ->
$("[data-provider='summernote']").summernote
height: 300
maximumImageFileSize: 262144 # 256KB
callbacks: onBlurCodeview: -> $(this).val $(this).summernote('code') # Fix content not saved from codeview issue
toolbar: [
['style', ['style']],
['font', ['bold', 'italic', 'underline',... | Fix content not saved from codeview | Fix content not saved from codeview
| CoffeeScript | apache-2.0 | catima/catima,catima/catima,catima/catima,catima/catima | coffeescript | ## Code Before:
init = ->
$("[data-provider='summernote']").summernote
height: 300
maximumImageFileSize: 262144 # 256KB
toolbar: [
['style', ['style']],
['font', ['bold', 'italic', 'underline', 'clear']],
['fontname', ['fontname']],
['color', ['color']],
['para', ['ul', 'ol',... |
bc7fa0de7dcd55cce585151016e5092de7f7416b | lib/acts_as_simple_translatable/class_methods.rb | lib/acts_as_simple_translatable/class_methods.rb | module ActsAsSimpleTranslatable
module ClassMethods
def acts_as_simple_translatable_on(*fields)
# scope :with_translations, -> (locale) { joins(:translations).where(translations: {locale: locale}).preload(:translations) }
scope :with_translations, -> { includes(:translations) }
has_many :transla... | module ActsAsSimpleTranslatable
module ClassMethods
def acts_as_simple_translatable_on(*fields)
# scope :with_translations, -> (locale) { joins(:translations).where(translations: {locale: locale}).preload(:translations) }
scope :with_translations, -> { includes(:translations) }
has_many :transla... | Hide default translation message when default locale is active | Hide default translation message when default locale is active
| Ruby | mit | d4be4st/acts_as_simple_translatable | ruby | ## Code Before:
module ActsAsSimpleTranslatable
module ClassMethods
def acts_as_simple_translatable_on(*fields)
# scope :with_translations, -> (locale) { joins(:translations).where(translations: {locale: locale}).preload(:translations) }
scope :with_translations, -> { includes(:translations) }
h... |
3beca62d29306668632e6b0192b1a42bf0b92f65 | README.md | README.md | TypeScript 1.5 beta will include everything you need. Until that is released,
build your own TypeScript at HEAD. Follow the
[instructions on the TypeScript repo](https://github.com/Microsoft/TypeScript/#building)
## Start up the compiler
Because we built our own TypeScript, the command to run it is longer:
$ cd n... | TypeScript 1.5 beta will include everything you need. Until that is released,
we use a GitHub reference to the latest alpha.
$ npm install -g github:mhegazy/TypeScript
## Start up the compiler
$ cd ng2-ts-hello
$ tsc -w
message TS6042: Compilation complete. Watching for file changes.
## Use a TypeSc... | Update instructions to point to latest TS alpha | Update instructions to point to latest TS alpha
| Markdown | bsd-3-clause | cptaffe/angular-test,cptaffe/angular-test,cptaffe/angular-test | markdown | ## Code Before:
TypeScript 1.5 beta will include everything you need. Until that is released,
build your own TypeScript at HEAD. Follow the
[instructions on the TypeScript repo](https://github.com/Microsoft/TypeScript/#building)
## Start up the compiler
Because we built our own TypeScript, the command to run it is lon... |
f9747548e02769b525ea0b6ce1930698c7a7adac | app/assets/javascripts/components/trial.js.jsx | app/assets/javascripts/components/trial.js.jsx | class Trial extends React.Component {
constructor() {
super()
this._toggleDiv = this._toggleDiv.bind(this)
}
_toggleDiv() {
$(`#${this.props.trial.id}`).slideToggle()
}
render() {
const briefTitle = this.props.trial.brief_title;
const studyId = this.props.trial.id;
const recruitingSt... | class Trial extends React.Component {
constructor() {
super()
this._toggleDiv = this._toggleDiv.bind(this)
}
_toggleDiv() {
$(`#${this.props.trial.id}`).slideToggle()
}
checkContact() {
const contactName = this.props.trial.overall_contact_name;
const contactPhone = this.props.trial.overa... | Add logic for conditionally displaying contact info | Add logic for conditionally displaying contact info
| JSX | mit | danmckeon/crconnect,danmckeon/crconnect,danmckeon/crconnect | jsx | ## Code Before:
class Trial extends React.Component {
constructor() {
super()
this._toggleDiv = this._toggleDiv.bind(this)
}
_toggleDiv() {
$(`#${this.props.trial.id}`).slideToggle()
}
render() {
const briefTitle = this.props.trial.brief_title;
const studyId = this.props.trial.id;
co... |
fa1b13f00613b434a1d402a5d2edf3df060c8765 | roles/mesos-master/defaults/main.yml | roles/mesos-master/defaults/main.yml | ---
## Mesos framework versions
#
# A `*` is added after the version when installing, which permits to leave out
# version suffixes added by Mesosphere.
#
# To install the latest use `latest`, to install latest 0.11 use `0.11`.
marathon_version: "0.13.0"
chronos_version: "2.4.0"
cluster_name: "Mediative Performance Ne... | ---
## Mesos framework versions
#
# A `*` is added after the version when installing, which permits to leave out
# version suffixes added by Mesosphere.
#
# To install the latest use `latest`, to install latest 0.11 use `0.11`.
marathon_version: "0.13.0"
chronos_version: "2.4.0"
cluster_name: "Mesos Stack"
## Framewo... | Change default cluster name to "Mesos Stack" | mesos-master: Change default cluster name to "Mesos Stack"
| YAML | apache-2.0 | ypg-data/mesos-stack,ypg-data/mesos-stack | yaml | ## Code Before:
---
## Mesos framework versions
#
# A `*` is added after the version when installing, which permits to leave out
# version suffixes added by Mesosphere.
#
# To install the latest use `latest`, to install latest 0.11 use `0.11`.
marathon_version: "0.13.0"
chronos_version: "2.4.0"
cluster_name: "Mediativ... |
c77cf1bb3ca798fc164b94c41d58d1d7ecdefe09 | gns/test_util/random_number.cc | gns/test_util/random_number.cc |
namespace gns {
namespace test_util {
RandomNumber::RandomNumber(const size_t seed)
: engine_(), distribution_()
{
}
double RandomNumber::operator()()
{
return distribution_(engine_);
}
double RandomNumber::operator()(const double min, const double max)
{
const int diff = max - min;
ret... |
namespace gns {
namespace test_util {
RandomNumber::RandomNumber(const size_t seed)
: engine_(), distribution_()
{
engine_.seed(seed);
}
double RandomNumber::operator()()
{
return distribution_(engine_);
}
double RandomNumber::operator()(const double min, const double max)
{
const int d... | Fix error in Travic CI | Fix error in Travic CI
| C++ | mit | i05nagai/generalized_niederreiter_sequence,i05nagai/generalized_niederreiter_sequence | c++ | ## Code Before:
namespace gns {
namespace test_util {
RandomNumber::RandomNumber(const size_t seed)
: engine_(), distribution_()
{
}
double RandomNumber::operator()()
{
return distribution_(engine_);
}
double RandomNumber::operator()(const double min, const double max)
{
const int diff = ma... |
067ad2f4bb48fe9834091c777418ba67f612e5af | .github/workflows/webpack.yml | .github/workflows/webpack.yml | name: NodeJS with Webpack
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses... | name: NodeJS with Webpack
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: ... | Deploy site to github pages from github action | Deploy site to github pages from github action
| YAML | mit | Cellule/dndGenerator,Cellule/dndGenerator,Cellule/dndGenerator | yaml | ## Code Before:
name: NodeJS with Webpack
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-versi... |
c7ecb64e84b2704d7bb10def5d2cb908a9a0002f | test/unit/specs/Dashboard.spec.js | test/unit/specs/Dashboard.spec.js | import Vue from 'vue'
import Dashboard from 'src/components/Dashboard'
import axios from 'axios'
describe('Dashboard.vue', () => {
let sandbox
beforeEach(function() {
sandbox = sinon.sandbox.create()
sandbox.stub(axios, 'get').returns(Promise.resolve('hi'))
})
afterEach(() => {
sandbox.restore()
... | import Vue from 'vue'
import Dashboard from 'src/components/Dashboard'
import axios from 'axios'
describe('Dashboard.vue', () => {
let sandbox
let vm
beforeEach(function() {
sandbox = sinon.sandbox.create()
sandbox.stub(axios, 'get').returns(Promise.resolve('hi'))
vm = new Vue({
el: document.cr... | Move Vue element creation to beforeEach | Move Vue element creation to beforeEach
| JavaScript | mit | blakecontreras/play-me,blakecontreras/play-me | javascript | ## Code Before:
import Vue from 'vue'
import Dashboard from 'src/components/Dashboard'
import axios from 'axios'
describe('Dashboard.vue', () => {
let sandbox
beforeEach(function() {
sandbox = sinon.sandbox.create()
sandbox.stub(axios, 'get').returns(Promise.resolve('hi'))
})
afterEach(() => {
sand... |
4f4e6454f6a498fbb1a13320c4bb66c6c9ba83ec | lib/index.js | lib/index.js | 'use strict';
var hash = require('./hash');
exports.escapeDiacritic = require('./escape_diacritic');
exports.escapeHTML = require('./escape_html');
exports.escapeRegExp = require('./escape_regexp');
exports.highlight = require('./highlight');
exports.htmlTag = require('./html_tag');
exports.Pattern = require('./patte... | 'use strict';
var hash = require('./hash');
exports.escapeDiacritic = require('./escape_diacritic');
exports.escapeHTML = require('./escape_html');
exports.escapeRegExp = require('./escape_regexp');
exports.highlight = require('./highlight');
exports.htmlTag = require('./html_tag');
exports.Pattern = require('./patte... | Fix camelCaseKeys is not exported | Fix camelCaseKeys is not exported
| JavaScript | mit | hexojs/hexo-util,hexojs/hexo-util | javascript | ## Code Before:
'use strict';
var hash = require('./hash');
exports.escapeDiacritic = require('./escape_diacritic');
exports.escapeHTML = require('./escape_html');
exports.escapeRegExp = require('./escape_regexp');
exports.highlight = require('./highlight');
exports.htmlTag = require('./html_tag');
exports.Pattern = ... |
0ba7845651d167b70a15dc793e50b2b4b555a1f5 | frontend/app/views/layouts/mno_enterprise/_common_cdn_lib_js.html.haml | frontend/app/views/layouts/mno_enterprise/_common_cdn_lib_js.html.haml | - # JQuery
%script{ src: "//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" }
- # Angular
%script{ src: "//ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js" }
%script{ src: "//cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.5/angular-sanitize.min.js" }
%script{ src: "//cdnjs.cloudflare.com/ajax/li... | - # JQuery
%script{ src: "//ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js" }
- # Angular
%script{ src: "//ajax.googleapis.com/ajax/libs/angularjs/1.5.9/angular.min.js" }
%script{ src: "//cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.9/angular-sanitize.min.js" }
%script{ src: "//cdnjs.cloudflare.com/ajax/li... | Upgrade Angular and jQuery on Rails pages | [MNO-399] Upgrade Angular and jQuery on Rails pages
| Haml | apache-2.0 | hedudelgado/mno-enterprise,maestrano/mno-enterprise,maestrano/mno-enterprise,hedudelgado/mno-enterprise,hedudelgado/mno-enterprise,hedudelgado/mno-enterprise,maestrano/mno-enterprise,maestrano/mno-enterprise | haml | ## Code Before:
- # JQuery
%script{ src: "//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" }
- # Angular
%script{ src: "//ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js" }
%script{ src: "//cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.5/angular-sanitize.min.js" }
%script{ src: "//cdnjs.cloudf... |
60de17292159deb590de6e5c9c2a45f1b95b0094 | girder/app/app/__init__.py | girder/app/app/__init__.py | from .configuration import Configuration
from girder.utility import setting_utilities
from .constants import Features, Branding, Deployment
from .launch_taskflow import launch_taskflow
from .user import get_orcid, set_orcid, get_twitter, set_twitter
from girder.plugin import GirderPlugin
@setting_utilities.validator... | from .configuration import Configuration
from girder.api.rest import Resource
from girder.utility import setting_utilities
from .constants import Features, Branding, Deployment
from .launch_taskflow import launch_taskflow
from .user import get_orcid, set_orcid, get_twitter, set_twitter
from girder.plugin import Girde... | Put the endpoint at /launch_taskflow/launch | Put the endpoint at /launch_taskflow/launch
Put it here instead of under "queues"
Signed-off-by: Patrick Avery <743342299f279e7a8c3ff5eb40671fce3e95f13a@kitware.com>
| Python | bsd-3-clause | OpenChemistry/mongochemserver | python | ## Code Before:
from .configuration import Configuration
from girder.utility import setting_utilities
from .constants import Features, Branding, Deployment
from .launch_taskflow import launch_taskflow
from .user import get_orcid, set_orcid, get_twitter, set_twitter
from girder.plugin import GirderPlugin
@setting_uti... |
64ac1a03ec1c1d143ff901467b7bc18499d38da1 | lib/postnord/response.rb | lib/postnord/response.rb | module Postnord
class Response
def initialize(data)
@data = data
@code = data.status
@status = data.msg
end
def code
@data.code
end
def status
@data.status
end
def data
JSON.parse(@data.body)
rescue JSON::ParserError
@data.body
end
... | module Postnord
class Response
def initialize(data)
@data = data
@code = data.status
end
def code
@data.code
end
def data
JSON.parse(@data.body)
rescue JSON::ParserError
@data.body
end
def to_h
{
code: @code,
data: data,
}
... | Remove status since faraday does not provide message and it does not seem to be in use | Remove status since faraday does not provide message and it does not
seem to be in use
| Ruby | mit | apoex/postnord,apoex/postnord | ruby | ## Code Before:
module Postnord
class Response
def initialize(data)
@data = data
@code = data.status
@status = data.msg
end
def code
@data.code
end
def status
@data.status
end
def data
JSON.parse(@data.body)
rescue JSON::ParserError
@data.bo... |
6ad671b2dac40831064213214d102ab46a83c26b | README.md | README.md | Library to handle Christian liturgical calendar queries, including lectionary readings.
| Javascript library to handle Christian liturgical calendar queries, including lectionary readings.
[](https://travis-ci.org/nathanjsharpe/liturgy)
# Install
npm install liturgy
| Add travis build status to readme | Add travis build status to readme
| Markdown | mit | nathanjsharpe/liturgy | markdown | ## Code Before:
Library to handle Christian liturgical calendar queries, including lectionary readings.
## Instruction:
Add travis build status to readme
## Code After:
Javascript library to handle Christian liturgical calendar queries, including lectionary readings.
[ 2015 Rob Rix. All rights reserved.
final class IgnoreTests: XCTestCase {
let ignored = %"x"
func testIgnoredInputDoesNotGetConcatenatedAtLeft() {
assertTree(ignored *> %"y", "xy", ==, "y")
}
func testIgnoredInputDoesNotGetConcatenatedAtRight() {
assertTree(%"y" <* ignored, "yx", ==, "y")
}... | // Copyright (c) 2015 Rob Rix. All rights reserved.
final class IgnoreTests: XCTestCase {
let ignored = %"x"
func testIgnoredInputDoesNotGetConcatenatedAtLeft() {
assertTree(ignored *> %"y", "xy", ==, "y")
}
func testIgnoredInputDoesNotGetConcatenatedAtRight() {
assertTree(%"y" <* ignored, "yx", ==, "y")
}... | Remove the tests of half-dropped alternation. | Remove the tests of half-dropped alternation.
| Swift | mit | robrix/Madness,robrix/Madness,robrix/Madness | swift | ## Code Before:
// Copyright (c) 2015 Rob Rix. All rights reserved.
final class IgnoreTests: XCTestCase {
let ignored = %"x"
func testIgnoredInputDoesNotGetConcatenatedAtLeft() {
assertTree(ignored *> %"y", "xy", ==, "y")
}
func testIgnoredInputDoesNotGetConcatenatedAtRight() {
assertTree(%"y" <* ignored, "... |
2570f21a3dcfa5ad87f250e99a4f26f827be7a84 | Sources/pikter/main.swift | Sources/pikter/main.swift | import Foundation
import Docopt
let doc : String = "pikter - Picture on iTerm\n" +
"\n" +
"Usage:\n" +
" pikter <filePath>\n" +
" pikter (-h | --help)\n" +
"\n" +
"Options:\n" +
" -h, --help\n"
func printImage(data data: NSData, name: String="Unnamed") {
let fileContent = data.base64EncodedStringWithOptions(.... | import Foundation
import Docopt
let doc : String = "pikter - Picture on iTerm\n" +
"\n" +
"Usage:\n" +
" pikter <filePath>\n" +
" pikter (-h | --help)\n" +
"\n" +
"Options:\n" +
" -h, --help\n"
func printImage(data data: NSData, name: String="Unnamed") {
let fileContent = data.base64EncodedStringWithOptions(.... | Add Error enum for ImagePrinting | Add Error enum for ImagePrinting
| Swift | mit | anhdat/pikter | swift | ## Code Before:
import Foundation
import Docopt
let doc : String = "pikter - Picture on iTerm\n" +
"\n" +
"Usage:\n" +
" pikter <filePath>\n" +
" pikter (-h | --help)\n" +
"\n" +
"Options:\n" +
" -h, --help\n"
func printImage(data data: NSData, name: String="Unnamed") {
let fileContent = data.base64EncodedStr... |
8826f15b6d09706a468f288bf3dc9042752abd1c | common-run.sh | common-run.sh |
MARIADB_EXISTS=`docker inspect --format="{{ .Id }}" mariadb 2> /dev/null`
MARIADB_DATA_EXISTS=`docker inspect --format="{{ .Id }}" mariadb-data 2> /dev/null`
if [ -z "$MARIADB_DATA_EXISTS" ]
then
docker run -d -v /var/lib/mysql --name mariadb-data debian
fi
if ! [ -z "$MARIADB_EXISTS" ]
then
docker kill mariadb
... |
MARIADB_EXISTS=`docker inspect --format="{{ .Id }}" mariadb 2> /dev/null`
MARIADB_DATA_EXISTS=`docker inspect --format="{{ .Id }}" mariadb-data 2> /dev/null`
if [ -z "$MARIADB_DATA_EXISTS" ]
then
docker run -d -v /var/lib/mysql --name mariadb-data ubuntu:14.04
fi
if ! [ -z "$MARIADB_EXISTS" ]
then
docker kill ma... | Use ubuntu:14.04 for data container so that first run does not download debian container. | Use ubuntu:14.04 for data container so that first run does not download debian container.
| Shell | mit | bmichalski/docker-mariadb,bmichalski-docker/docker-mariadb | shell | ## Code Before:
MARIADB_EXISTS=`docker inspect --format="{{ .Id }}" mariadb 2> /dev/null`
MARIADB_DATA_EXISTS=`docker inspect --format="{{ .Id }}" mariadb-data 2> /dev/null`
if [ -z "$MARIADB_DATA_EXISTS" ]
then
docker run -d -v /var/lib/mysql --name mariadb-data debian
fi
if ! [ -z "$MARIADB_EXISTS" ]
then
dock... |
78ab1a9809872e77fb00c5863f4e3479d06b54f3 | cors.go | cors.go | package gofakes3
import (
"net/http"
"strings"
)
var (
corsHeaders = []string{
"Accept",
"Accept-Encoding",
"Authorization",
"Content-Disposition",
"Content-Length",
"Content-Type",
"X-Amz-Date",
"X-Amz-User-Agent",
"X-CSRF-Token",
"x-amz-acl",
"x-amz-meta-filename",
"x-amz-meta-from",
"x... | package gofakes3
import (
"net/http"
"strings"
)
var (
corsHeaders = []string{
"Accept",
"Accept-Encoding",
"Authorization",
"Content-Disposition",
"Content-Length",
"Content-Type",
"X-Amz-Date",
"X-Amz-User-Agent",
"X-CSRF-Token",
"x-amz-acl",
"x-amz-content-sha256",
"x-amz-meta-filename",... | Support multipart uploads from browser | Support multipart uploads from browser
| Go | mit | johannesboyne/gofakes3,johannesboyne/gofakes3 | go | ## Code Before:
package gofakes3
import (
"net/http"
"strings"
)
var (
corsHeaders = []string{
"Accept",
"Accept-Encoding",
"Authorization",
"Content-Disposition",
"Content-Length",
"Content-Type",
"X-Amz-Date",
"X-Amz-User-Agent",
"X-CSRF-Token",
"x-amz-acl",
"x-amz-meta-filename",
"x-amz-... |
6191f08963b636391982b976f59bd36ae8cce7e0 | vocab/api.py | vocab/api.py | from merriam_webster.api import CollegiateDictionary, WordNotFoundException
from translate.translate import translate_word
DICTIONARY = CollegiateDictionary('d59bdd56-d417-42d7-906e-6804b3069c90')
def lookup_term(language, term):
# If the language is English, use the Merriam-Webster API.
# Otherwise, use Wo... | from merriam_webster.api import CollegiateDictionary, WordNotFoundException
from translate.translate import translate_word
DICTIONARY = CollegiateDictionary('d59bdd56-d417-42d7-906e-6804b3069c90')
def lookup_term(language, term):
# If the language is English, use the Merriam-Webster API.
# Otherwise, use Wo... | Fix malformed data bugs in lookup_term() | Fix malformed data bugs in lookup_term()
| Python | mit | dellsystem/bookmarker,dellsystem/bookmarker,dellsystem/bookmarker | python | ## Code Before:
from merriam_webster.api import CollegiateDictionary, WordNotFoundException
from translate.translate import translate_word
DICTIONARY = CollegiateDictionary('d59bdd56-d417-42d7-906e-6804b3069c90')
def lookup_term(language, term):
# If the language is English, use the Merriam-Webster API.
# O... |
91493a7dceb89d2d965e66d3ce1b918b53e92196 | lib/mutant_school_api_model/mutant.rb | lib/mutant_school_api_model/mutant.rb | module MutantSchoolAPIModel
class Mutant
def self.base_url
'https://mutant-school.herokuapp.com/api/v1/mutants'
end
# Get all mutants from the backend
# mutants = Mutant.all
def self.all
response = HTTP.get(self.base_url)
JSON.parse response.to_s
end
# Get a single mut... | module MutantSchoolAPIModel
class Mutant
def self.base_url
'https://mutant-school.herokuapp.com/api/v1/mutants'
end
def self.attribute_names
[
:id,
:mutant_name,
:real_name,
:power,
:eligibility_begins_at,
:eligibility_ends_at,
:may_adv... | Return actual instances of Mutant. | Return actual instances of Mutant.
| Ruby | mit | dstrus/mutant_school_api_model,dstrus/mutant_school_api_model | ruby | ## Code Before:
module MutantSchoolAPIModel
class Mutant
def self.base_url
'https://mutant-school.herokuapp.com/api/v1/mutants'
end
# Get all mutants from the backend
# mutants = Mutant.all
def self.all
response = HTTP.get(self.base_url)
JSON.parse response.to_s
end
# ... |
e5b2670d959c05c83a0f99b2aec183ee71692d48 | api/spec/models/user_spec.rb | api/spec/models/user_spec.rb | require 'spec_helper'
describe User do
let(:user) { User.new }
context "#generate_api_key!" do
it "should set authentication_token to a 20 char SHA" do
user.generate_api_key!
user.authentication_token.to_s.length.should == 20
end
end
context "#anonymous?" do
it "should not be anonymo... | require 'spec_helper'
describe Spree::User do
let(:user) { Spree::User.new }
context "#generate_api_key!" do
it "should set authentication_token to a 20 char SHA" do
user.generate_api_key!
user.authentication_token.to_s.length.should == 20
end
end
context "#anonymous?" do
it "should ... | Fix references in api user spec | Fix references in api user spec
| Ruby | bsd-3-clause | Engeltj/spree,rakibulislam/spree,DarkoP/spree,orenf/spree,KMikhaylovCTG/spree,sideci-sample/sideci-sample-spree,pervino/solidus,joanblake/spree,mindvolt/spree,jparr/spree,watg/spree,quentinuys/spree,Arpsara/solidus,azclick/spree,lzcabrera/spree-1-3-stable,tailic/spree,Arpsara/solidus,locomotivapro/spree,Migweld/spree,k... | ruby | ## Code Before:
require 'spec_helper'
describe User do
let(:user) { User.new }
context "#generate_api_key!" do
it "should set authentication_token to a 20 char SHA" do
user.generate_api_key!
user.authentication_token.to_s.length.should == 20
end
end
context "#anonymous?" do
it "shoul... |
cb0815022da0bea88d04a7200dbe71f6ff29724e | src/pattern_brush.class.js | src/pattern_brush.class.js | /**
* PatternBrush class
* @class fabric.PatternBrush
* @extends fabric.BaseBrush
*/
fabric.PatternBrush = fabric.util.createClass(fabric.PencilBrush, /** @scope fabric.PatternBrush.prototype */ {
createPattern: function(patternCanvas) {
var dotWidth = 20,
dotDistance = 5,
patternCtx = patte... | /**
* PatternBrush class
* @class fabric.PatternBrush
* @extends fabric.BaseBrush
*/
fabric.PatternBrush = fabric.util.createClass(fabric.PencilBrush, /** @scope fabric.PatternBrush.prototype */ {
getPatternSrc: function() {
var dotWidth = 20,
dotDistance = 5,
patternCanvas = fabric.document... | Change pattern brush to work with fabric.Pattern | Change pattern brush to work with fabric.Pattern | JavaScript | mit | xronos-i-am/fabric.js,terrancesnyder/fabric.js,xronos-i-am/fabric.js,Drooids/fabric.js,jcppman/fabric.js,makelivedotnet/fabric.js,makelivedotnet/fabric.js,ChineseDron/fabric.js,kuldipem/fabric.js,partlyhuman/fabric.js,sapics/fabric.js,kabab/fabric.js,andrew168/fabric.js,Bnaya/fabric.js,partlyhuman/fabric.js,inssein/fab... | javascript | ## Code Before:
/**
* PatternBrush class
* @class fabric.PatternBrush
* @extends fabric.BaseBrush
*/
fabric.PatternBrush = fabric.util.createClass(fabric.PencilBrush, /** @scope fabric.PatternBrush.prototype */ {
createPattern: function(patternCanvas) {
var dotWidth = 20,
dotDistance = 5,
pa... |
19cea6e8f571ff556333dd8b4bb52eb555083a36 | CHANGELOG.md | CHANGELOG.md | CHANGELOG
=========
Breaking changes are marked with (!)
Latest
------
### Command line
* New `quark docs` command generates a file containing JSON describing the API
of the specified Quark files. It also generates rudimentary API documentation
in HTML.
### Language
* #129 Binary literals: `0b0101_0101`
* (!)... | CHANGELOG
=========
Breaking changes are marked with (!)
Latest
------
### Other
* New installation process
0.6.40
------
Released on 2016-05-11
### Command line
* New `quark docs` command generates a file containing JSON describing the API
of the specified Quark files. It also generates rudimentary API docu... | Add recent release info (manually...) | Add recent release info (manually...)
| Markdown | apache-2.0 | datawire/quark,datawire/quark,datawire/quark,datawire/quark,datawire/quark,datawire/quark | markdown | ## Code Before:
CHANGELOG
=========
Breaking changes are marked with (!)
Latest
------
### Command line
* New `quark docs` command generates a file containing JSON describing the API
of the specified Quark files. It also generates rudimentary API documentation
in HTML.
### Language
* #129 Binary literals: `0b... |
71c9235a7e48882fc8c1393e9527fea4531c536c | filter_plugins/fap.py | filter_plugins/fap.py |
import ipaddress
def site_code(ipv4):
# Verify IP address
_ = ipaddress.ip_address(ipv4)
segments = ipv4.split(".")
return int(segments[1])
class FilterModule(object):
def filters(self):
return {"site_code": site_code}
|
import ipaddress
def site_code(ipv4):
# Verify IP address
_ = ipaddress.ip_address(ipv4)
segments = ipv4.split(".")
return int(segments[1])
# rest:https://restic.storage.tjoda.fap.no/rpi1.ldn.fap.no
# rclone:Jotta:storage.tjoda.fap.no
# /Volumes/storage/restic/kramacbook
def restic_repo_friendly_... | Add really hacky way to reformat restic repos | Add really hacky way to reformat restic repos
| Python | mit | kradalby/plays,kradalby/plays | python | ## Code Before:
import ipaddress
def site_code(ipv4):
# Verify IP address
_ = ipaddress.ip_address(ipv4)
segments = ipv4.split(".")
return int(segments[1])
class FilterModule(object):
def filters(self):
return {"site_code": site_code}
## Instruction:
Add really hacky way to reformat ... |
0dbe67b1ef3cadc77065ae42573ffcab6fdaa387 | docs/PropsSection.vue | docs/PropsSection.vue | <template>
<div class="col-xs-12">
<h2>Props</h2>
<table class="table table-bordered table-striped js-options-table">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr v-fo... | <template>
<div class="col-xs-12">
<h2>Props</h2>
<table class="table table-bordered table-striped js-options-table">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr v-fo... | Fix props section for prop type as array | [docs] Fix props section for prop type as array
| Vue | mit | lucafaggianelli/vue-adminlte | vue | ## Code Before:
<template>
<div class="col-xs-12">
<h2>Props</h2>
<table class="table table-bordered table-striped js-options-table">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default</th>
<th>Description</th>
</tr>
</thead>
<tbody>
... |
e191a1ab0eec3c18b571db53479926c2423d6a3b | features/support/env.rb | features/support/env.rb | require File.expand_path('../../../lib/beetle', __FILE__)
# Allow using Test::Unit for step assertions
# See http://wiki.github.com/aslakhellesoy/cucumber/using-testunit
require 'test/unit/assertions'
World(Test::Unit::Assertions)
Before do
`ruby features/support/system_notification_logger start`
end
After do
cl... | require File.expand_path('../../../lib/beetle', __FILE__)
# See https://github.com/cucumber/cucumber/wiki/Using-MiniTest
require 'minitest/unit'
World do
extend MiniTest::Assertions
end
Before do
`ruby features/support/system_notification_logger start`
end
After do
cleanup_test_env
end
at_exit do
cleanup_te... | Fix cucumber tests in Ruby 2.2 | Fix cucumber tests in Ruby 2.2
Test::Unit is no more
| Ruby | mit | xing/beetle,xing/beetle,xing/beetle,xing/beetle | ruby | ## Code Before:
require File.expand_path('../../../lib/beetle', __FILE__)
# Allow using Test::Unit for step assertions
# See http://wiki.github.com/aslakhellesoy/cucumber/using-testunit
require 'test/unit/assertions'
World(Test::Unit::Assertions)
Before do
`ruby features/support/system_notification_logger start`
en... |
981d3a308ac585a8d5ccb143e668ae7b08305540 | xwiki-commons-core/xwiki-commons-extension/xwiki-platform-extension-repositories/xwiki-platform-extension-repository-xwiki/xwiki-platform-extension-repository-xwiki-server-ui/src/main/resources/Extensions/WebHome.xml | xwiki-commons-core/xwiki-commons-extension/xwiki-platform-extension-repositories/xwiki-platform-extension-repository-xwiki/xwiki-platform-extension-repository-xwiki-server-ui/src/main/resources/Extensions/WebHome.xml | <?xml version="1.0" encoding="UTF-8"?>
<xwikidoc>
<web>Extensions</web>
<name>WebHome</name>
<language></language>
<defaultLanguage>en</defaultLanguage>
<translation>0</translation>
<parent></parent>
<creator>XWiki.Admin</creator>
<author>XWiki.Admin</author>
<customClass></customClass>
<contentAuthor>XWiki.Admin</cont... | <?xml version="1.0" encoding="UTF-8"?>
<xwikidoc>
<web>Extensions</web>
<name>WebHome</name>
<language></language>
<defaultLanguage>en</defaultLanguage>
<translation>0</translation>
<parent></parent>
<creator>XWiki.Admin</creator>
<author>XWiki.Admin</author>
<customClass></customClass>
<contentAuthor>XWiki.Admin</cont... | Add XWiki extensions repository UI improvements | XWIKI-6574: Add XWiki extensions repository
UI improvements
| XML | lgpl-2.1 | xwiki/xwiki-commons,xwiki/xwiki-commons | xml | ## Code Before:
<?xml version="1.0" encoding="UTF-8"?>
<xwikidoc>
<web>Extensions</web>
<name>WebHome</name>
<language></language>
<defaultLanguage>en</defaultLanguage>
<translation>0</translation>
<parent></parent>
<creator>XWiki.Admin</creator>
<author>XWiki.Admin</author>
<customClass></customClass>
<contentAuthor>X... |
f115120f57947f26d44cc502d31e785040be73c2 | index.js | index.js | // # Ghost Startup
// Orchestrates the startup of Ghost when run from command line.
var express,
ghost,
parentApp,
errors;
// Make sure dependencies are installed and file system permissions are correct.
require('./core/server/utils/startup-check').check();
// Proceed with startup
express = require('expre... | // New relic monitoring
newrelic = require('newrelic');
// # Ghost Startup
// Orchestrates the startup of Ghost when run from command line.
var express,
ghost,
parentApp,
errors;
// Make sure dependencies are installed and file system permissions are correct.
require('./core/server/utils/startup-check').... | Increase new relic priority in loading. | Increase new relic priority in loading.
| JavaScript | mit | rmartin/thoughts.roy-martin.com,rmartin/thoughts.roy-martin.com,rmartin/thoughts.roy-martin.com | javascript | ## Code Before:
// # Ghost Startup
// Orchestrates the startup of Ghost when run from command line.
var express,
ghost,
parentApp,
errors;
// Make sure dependencies are installed and file system permissions are correct.
require('./core/server/utils/startup-check').check();
// Proceed with startup
express ... |
f003a553bfe3f8f42c7d09287ca46b1d738c5122 | packages/so/solve.yaml | packages/so/solve.yaml | homepage: ''
changelog-type: ''
hash: 4c61ebc229768a88eff97dfe074cfdb98efb903395dd2dd46866f096561d9059
test-bench-deps: {}
maintainer: Joe Leslie-Hurd <joe@gilith.com>
synopsis: Solving simple games
changelog: ''
basic-deps:
base: ! '>=4.0 && <5.0'
containers: ! '>=0.5.7.1'
all-versions:
- '1.0'
author: Joe Leslie-... | homepage: ''
changelog-type: ''
hash: d7b6dee502c63c7f2d5d2f64797ad87a8f745065277888dd8d2607140837e9b7
test-bench-deps: {}
maintainer: Joe Leslie-Hurd <joe@gilith.com>
synopsis: Solving simple games
changelog: ''
basic-deps:
base: ! '>=4.0 && <5.0'
filepath: ! '>=1.4.1.0'
containers: ! '>=0.5.7.1'
all-versions:
-... | Update from Hackage at 2018-09-10T17:50:32Z | Update from Hackage at 2018-09-10T17:50:32Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: ''
changelog-type: ''
hash: 4c61ebc229768a88eff97dfe074cfdb98efb903395dd2dd46866f096561d9059
test-bench-deps: {}
maintainer: Joe Leslie-Hurd <joe@gilith.com>
synopsis: Solving simple games
changelog: ''
basic-deps:
base: ! '>=4.0 && <5.0'
containers: ! '>=0.5.7.1'
all-versions:
- '1.0'
aut... |
6e5f0d3c527c2994156537cd181b41bbadcfe718 | README.md | README.md | Electrical AMU Android App
===
![App Logo] (https://raw.githubusercontent.com/iamareebjamal/electrical-amu/master/ic_launcher_web.png)
The Official Electrical Department, AMU application for Android Devices
###Features
- Faculty List
- About Department
- Contact and Feedback Option
- Notifications about the power m... | []()
[](https://opensource.org/licenses/Apache-2.0)
> The Official Electrical Department, AMU application for Android Devices

The Official Electrical Department, AMU application for Android Devices
###Features
- Faculty List
- About Department
- Contact and Feedback Option
- Notifications a... |
8f346fa87f43bad46bf42fe60cef9d75a174a7ba | docs/development.rst | docs/development.rst | Development
===========
Since latest release
--------------------
- Add Python 3 compatibility `GH189 <https://github.com/edoddridge/aronnax/pull/189>`_ (23 April 2018)
- Add Adams-Bashforth family of timestepping algorithms up to fifth-order `GH184 <https://github.com/edoddridge/aronnax/pull/184>`_ (15 March 2018)
... | Development
===========
Since latest release
--------------------
- Allow outcropping `GH196 <https://github.com/edoddridge/aronnax/pull/196>`_ (30 April 2018)
- Add Python 3 compatibility `GH189 <https://github.com/edoddridge/aronnax/pull/189>`_ (23 April 2018)
- Add Adams-Bashforth family of timestepping algorithm... | Document code changes that allow outcropping | Document code changes that allow outcropping
| reStructuredText | mit | edoddridge/aronnax,edoddridge/MIM | restructuredtext | ## Code Before:
Development
===========
Since latest release
--------------------
- Add Python 3 compatibility `GH189 <https://github.com/edoddridge/aronnax/pull/189>`_ (23 April 2018)
- Add Adams-Bashforth family of timestepping algorithms up to fifth-order `GH184 <https://github.com/edoddridge/aronnax/pull/184>`_ ... |
97786e8dec6acb41f3ac395e42829db5d83606d8 | app/assets/stylesheets/overrides/_turbolinks.scss | app/assets/stylesheets/overrides/_turbolinks.scss | .turbolinks-progress-bar {
background: var(--turbolinks-progress-color);
} | .turbolinks-progress-bar {
background: var(--turbolinks-progress-color);
@include media-breakpoint-down('sm') {
top: unset !important;
bottom: 0 !important;
position: fixed;
left: 0 !important;
}
} | Move turbolinks progressbar to the bottom on tablet and lower | Move turbolinks progressbar to the bottom on tablet and lower
| SCSS | agpl-3.0 | Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring,Retrospring/retrospring | scss | ## Code Before:
.turbolinks-progress-bar {
background: var(--turbolinks-progress-color);
}
## Instruction:
Move turbolinks progressbar to the bottom on tablet and lower
## Code After:
.turbolinks-progress-bar {
background: var(--turbolinks-progress-color);
@include media-breakpoint-down('sm') {
top: unset !... |
67d490df65aa9cd36d01e0e38c05b8ece4db0c50 | package.json | package.json | {
"name": "wookiee",
"repository": {
"type": "git",
"url": "https://github.com/mozillafordevelopment/wookiee"
},
"scripts": {
"test": "make test"
},
"dependencies": {
"domready": "1.0.5",
"i18n": "0.5.0",
"localforage": "thisandagain/localforage#browserify",
"node-static": "0.7.4... | {
"name": "wookiee",
"repository": {
"type": "git",
"url": "https://github.com/mozillafordevelopment/wookiee"
},
"scripts": {
"test": "make test"
},
"dependencies": {
"domready": "1.0.5",
"i18n": "0.5.0",
"localforage": "thisandagain/localforage#browserify",
"page": "1.3.7",
... | Move node-static to dev deps | Move node-static to dev deps
| JSON | mpl-2.0 | bolaram/webmaker-android,vazquez/webmaker-android,toolness/webmaker-android,alanmoo/webmaker-android,codex8/webmaker-app,j796160836/webmaker-android,thejdeep/webmaker-app,cadecairos/webmaker-android,mozilla/webmaker-android,mozilla/webmaker-android,j796160836/webmaker-android,secretrobotron/webmaker-android,gvn/webmake... | json | ## Code Before:
{
"name": "wookiee",
"repository": {
"type": "git",
"url": "https://github.com/mozillafordevelopment/wookiee"
},
"scripts": {
"test": "make test"
},
"dependencies": {
"domready": "1.0.5",
"i18n": "0.5.0",
"localforage": "thisandagain/localforage#browserify",
"node... |
3994a1b84560d72c27b219189e2af1219f76234b | db/migrate/20120506041011_create_radio_assignments.rb | db/migrate/20120506041011_create_radio_assignments.rb | class CreateRadioAssignments < ActiveRecord::Migration
def change
create_table :radio_assignments do |t|
t.integer :radio_id
t.integer :volunteer_id
t.timestamps
end
end
end
| class CreateRadioAssignments < ActiveRecord::Migration
def change
create_table :radio_assignments do |t|
t.integer :radio_id
t.integer :volunteer_id
t.string :state # This moves to radios in a later migration
t.timestamps
end
end
end
| Fix a migration that breaks a clean install | Fix a migration that breaks a clean install
| Ruby | apache-2.0 | ConOnRails/ConOnRails,ConOnRails/ConOnRails,ConOnRails/ConOnRails,ConOnRails/ConOnRails | ruby | ## Code Before:
class CreateRadioAssignments < ActiveRecord::Migration
def change
create_table :radio_assignments do |t|
t.integer :radio_id
t.integer :volunteer_id
t.timestamps
end
end
end
## Instruction:
Fix a migration that breaks a clean install
## Code After:
class CreateRadioAssig... |
cb7148e3f4e6c1d15082f5b76e5cc46fa90b2a56 | package.json | package.json | {
"name": "fec-loader",
"version": "0.1.0",
"description": "Loads FEC data into a database",
"license": "MIT",
"dependencies": {
"fec-parse": "^0.2.1-beta.2",
"moment": "^2.13.0",
"readdir-recursive": "0.0.4",
"sequelize": "^3.23.2"
}
}
| {
"name": "fec-loader",
"version": "0.1.0",
"description": "Loads FEC data into a database",
"license": "MIT",
"dependencies": {
"fec-parse": "^0.2.1-beta.2",
"moment": "^2.13.0",
"pg": "^4.5.5",
"readdir-recursive": "0.0.4",
"sequelize": "^3.23.2"
}
}
| Add pg as a dep | Add pg as a dep
| JSON | mit | chriszs/fec-loader | json | ## Code Before:
{
"name": "fec-loader",
"version": "0.1.0",
"description": "Loads FEC data into a database",
"license": "MIT",
"dependencies": {
"fec-parse": "^0.2.1-beta.2",
"moment": "^2.13.0",
"readdir-recursive": "0.0.4",
"sequelize": "^3.23.2"
}
}
## Instruction:
Add pg as a dep
## Co... |
daf0c3c194d0439caf96f260e23319b2ad8c7e0d | README.md | README.md | > 此repo为自己投食。
* Add AutoGetSS 自动获取SS配置文件(原网站已经挂了,不再维护)
* dropsWooyun 爬取乌云知识库(原网站已经挂了,不再维护)
* nexus 新知识sample2
[sample_typing.py](blob/master/nexus/sample_typing.py): Python3.6.4 中typing模块示例 | > 此repo为自己投食。
* Add AutoGetSS 自动获取SS配置文件(原网站已经挂了,不再维护)
* dropsWooyun 爬取乌云知识库(原网站已经挂了,不再维护)
* nexus 新知识sample2
[sample_typing.py](nexus/sample_typing.py): Python3.6.4 中typing模块示例 | Add Some Code About Everything dll | Add Some Code About Everything dll
| Markdown | apache-2.0 | Xarrow/PyCharmWorkSpace | markdown | ## Code Before:
> 此repo为自己投食。
* Add AutoGetSS 自动获取SS配置文件(原网站已经挂了,不再维护)
* dropsWooyun 爬取乌云知识库(原网站已经挂了,不再维护)
* nexus 新知识sample2
[sample_typing.py](blob/master/nexus/sample_typing.py): Python3.6.4 中typing模块示例
## Instruction:
Add Some Code About Everything dll
## Code After:
> 此repo为自己投食。
* Add AutoGetSS 自动获取SS配置... |
d2db3a31cd31495570207c1080bd6466850399b0 | lib/temple/coffee_script/generators.rb | lib/temple/coffee_script/generators.rb | require "json"
module Temple
module CoffeeScript
class Generator < Temple::Generator
define_options :indent => 0
def call(exp)
@indent = options[:indent]
compile [:multi,
[:code, "#{buffer} = []"],
exp,
[:code, "#{buffer}.join('')"]]... | require "json"
module Temple
module CoffeeScript
class Generator < Temple::Generator
define_options :indent => 0
def call(exp)
@indent = options[:indent]
compile [:multi, [:code, "#{buffer} = '';"], exp]
end
def on_multi(*exp)
exp.map {|e| compile(e) }.join("\n")... | Replace array buffer with string buffer | Replace array buffer with string buffer
| Ruby | mit | jfirebaugh/skim,Nikita-V/skim,Nikita-V/skim,flintinatux/skim,appjudo/skim,gkopylov/skim,jfirebaugh/skim,flintinatux/skim,gkopylov/skim,appjudo/skim | ruby | ## Code Before:
require "json"
module Temple
module CoffeeScript
class Generator < Temple::Generator
define_options :indent => 0
def call(exp)
@indent = options[:indent]
compile [:multi,
[:code, "#{buffer} = []"],
exp,
[:code, "#{buf... |
687ce11dd32ad13473ebdb9b7b8e15e79bdc7a16 | tox.ini | tox.ini | [flake8]
max-line-length = 100
exclude = venv/*,.tox/*,migrations,node_modules/,holonet/settings/__init__.py,holonet/settings/local.py,docs/*
[tox]
envlist = py34, docs
skipsdist = True
[testenv]
deps = -r{toxinidir}/requirements/test.txt
whitelist_externals =
/usr/bin/make
setenv =
DJANGO_SETTINGS_MODULE=hol... | [flake8]
max-line-length = 100
exclude = venv/*,.tox/*,migrations,node_modules/,holonet/settings/__init__.py,holonet/settings/local.py,docs/*
[tox]
envlist = py34, docs
skipsdist = True
[testenv]
deps = -r{toxinidir}/requirements/test.txt
whitelist_externals =
/usr/bin/make
setenv =
DJANGO_SETTINGS_MODULE=hol... | Remove make from docs repo | Remove make from docs repo
| INI | mit | webkom/holonet,webkom/holonet,webkom/holonet | ini | ## Code Before:
[flake8]
max-line-length = 100
exclude = venv/*,.tox/*,migrations,node_modules/,holonet/settings/__init__.py,holonet/settings/local.py,docs/*
[tox]
envlist = py34, docs
skipsdist = True
[testenv]
deps = -r{toxinidir}/requirements/test.txt
whitelist_externals =
/usr/bin/make
setenv =
DJANGO_SET... |
28a6dcb5481b348e3224182aa16d892bc3cce498 | src/main/java/bio/terra/cli/command/Status.java | src/main/java/bio/terra/cli/command/Status.java | package bio.terra.cli.command;
import bio.terra.cli.context.GlobalContext;
import bio.terra.cli.context.WorkspaceContext;
import java.nio.file.FileAlreadyExistsException;
import java.util.concurrent.Callable;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import picocli.CommandLine.Command;
/** This class c... | package bio.terra.cli.command;
import bio.terra.cli.context.GlobalContext;
import bio.terra.cli.context.WorkspaceContext;
import java.nio.file.FileAlreadyExistsException;
import java.util.concurrent.Callable;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import picocli.CommandLine.Command;
/** This class c... | Remove exception used for debugging. | Remove exception used for debugging.
| Java | bsd-3-clause | DataBiosphere/terra-cli,DataBiosphere/terra-cli | java | ## Code Before:
package bio.terra.cli.command;
import bio.terra.cli.context.GlobalContext;
import bio.terra.cli.context.WorkspaceContext;
import java.nio.file.FileAlreadyExistsException;
import java.util.concurrent.Callable;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import picocli.CommandLine.Command;
... |
8a8535632a25ecf440b847595c5e115fc4a01e9e | src/com/rabenauge/gl/PointSprite.java | src/com/rabenauge/gl/PointSprite.java | package com.rabenauge.gl;
import javax.microedition.khronos.opengles.GL11;
/*
* Wrapper class for point sprites (requires GL_OES_point_sprite).
*/
public class PointSprite extends Texture2D {
public PointSprite(GL11 gl) {
super(gl);
}
public void enable(boolean state) {
sup... | package com.rabenauge.gl;
import javax.microedition.khronos.opengles.GL11;
/*
* Wrapper class for point sprites (requires GL_OES_point_sprite).
*/
public class PointSprite extends Texture2D {
public PointSprite(GL11 gl) {
super(gl);
}
public void enable(boolean state) {
ena... | Add an argument allowing to toggle point sprites and texturing separately | Add an argument allowing to toggle point sprites and texturing separately
| Java | apache-2.0 | sschuberth/parandroid | java | ## Code Before:
package com.rabenauge.gl;
import javax.microedition.khronos.opengles.GL11;
/*
* Wrapper class for point sprites (requires GL_OES_point_sprite).
*/
public class PointSprite extends Texture2D {
public PointSprite(GL11 gl) {
super(gl);
}
public void enable(boolean state) {
... |
cb5fdad8b6433ffea9ee3aa7f1bc565c9c5ac385 | cla_frontend/assets-src/javascripts/app/partials/call_centre/case_detail.html | cla_frontend/assets-src/javascripts/app/partials/call_centre/case_detail.html | <div data-extend-template="case_detail.html">
<div data-block="case-actions">
<nav class="u-pullRight cf">
<div class="BtnDropdown BtnDropdown--right">
<button class="Button Button--secondary Button--dropdown" ng-class="{'is-open': btnOpts}" ng-click="btnOpts=!btnOpts" name="close-case">Close</butto... | <div data-extend-template="case_detail.html">
<div data-block="case-actions">
<nav class="u-pullRight cf">
<div class="BtnDropdown BtnDropdown--right">
<button class="Button Button--secondary Button--dropdown" ng-class="{'is-open': btnOpts}" ng-click="btnOpts=!btnOpts" name="close-case">Close</butto... | Check for diagnosis category when selecting Alternative help | Check for diagnosis category when selecting Alternative help
| HTML | mit | ministryofjustice/cla_frontend,ministryofjustice/cla_frontend,ministryofjustice/cla_frontend,ministryofjustice/cla_frontend | html | ## Code Before:
<div data-extend-template="case_detail.html">
<div data-block="case-actions">
<nav class="u-pullRight cf">
<div class="BtnDropdown BtnDropdown--right">
<button class="Button Button--secondary Button--dropdown" ng-class="{'is-open': btnOpts}" ng-click="btnOpts=!btnOpts" name="close-ca... |
b6c4701477d9ab739813acedc0e69d447e237b8d | news/_posts/2018-04-23-late-breaking.md | news/_posts/2018-04-23-late-breaking.md | ---
layout: post
title: "VIVO 2018 Late Breaking Call for Posters"
date: 2018-04-23 08:00:00
isStaticPost: false
---
#### Late Breaking Call For Posters
If you missed the earlier deadline, you have until May 30 to [submit your poster abstract](https://easychair.org/cfp/VIVO2018). The poster reception will be held... | ---
layout: post
title: "VIVO 2018 Late Breaking Call for Posters"
date: 2018-04-23 08:00:00
isStaticPost: false
---
#### Late Breaking Call For Posters
If you missed the earlier deadline, you have until May 30 to [submit your poster abstract](https://easychair.org/cfp/VIVO2018). The poster reception will be held... | Update late breaking call page | Update late breaking call page
| Markdown | apache-2.0 | vivoconference/vivoconference.github.io,vivoconference/vivoconference.github.io,vivoconference/vivoconference.github.io,vivoconference/vivoconference.github.io | markdown | ## Code Before:
---
layout: post
title: "VIVO 2018 Late Breaking Call for Posters"
date: 2018-04-23 08:00:00
isStaticPost: false
---
#### Late Breaking Call For Posters
If you missed the earlier deadline, you have until May 30 to [submit your poster abstract](https://easychair.org/cfp/VIVO2018). The poster recept... |
899c7cd0cee54b4acf2ee1abfec221c904f11ec4 | src/main/resources/application.properties | src/main/resources/application.properties | main.type.zk=org.springframework.cloud.cluster.zk.leader.ZKTestApplication
main.type.hz=org.springframework.cloud.cluster.hazelcast.leader.HazelcastTestApplication
spring.main.sources=${main.type.${type:zk}}
# logging options
logging.level.org.apache.zookeeper=WARN
logging.level.org.springframework=WARN
logging.level... | main.type.zk=org.springframework.cloud.cluster.zk.leader.ZKTestApplication
main.type.hz=org.springframework.cloud.cluster.hazelcast.leader.HazelcastTestApplication
main.type.=
spring.main.sources=${main.type.${type:}}
# logging options
logging.level.org.apache.zookeeper=WARN
logging.level.org.springframework=WARN
log... | Fix default sources to empty | Fix default sources to empty
| INI | apache-2.0 | spring-cloud/spring-cloud-cluster,spring-cloud/spring-cloud-cluster,spring-cloud/spring-cloud-cluster | ini | ## Code Before:
main.type.zk=org.springframework.cloud.cluster.zk.leader.ZKTestApplication
main.type.hz=org.springframework.cloud.cluster.hazelcast.leader.HazelcastTestApplication
spring.main.sources=${main.type.${type:zk}}
# logging options
logging.level.org.apache.zookeeper=WARN
logging.level.org.springframework=WA... |
ef88b09c6e64fbec56779ee6b6401c3ec5983d2f | app/views/thredded/moderation/activity.html.erb | app/views/thredded/moderation/activity.html.erb | <% content_for :thredded_page_title, t('thredded.nav.moderation') %>
<% content_for :thredded_page_id, 'thredded--moderation-activity' %>
<%= render 'nav' %>
<%= thredded_page do %>
<section class="thredded--main-section">
<h1><%= t 'thredded.recent_activity' %></h1>
<%= content_tag :section, class: 'thredde... | <% content_for :thredded_page_title, t('thredded.nav.moderation') %>
<% content_for :thredded_page_id, 'thredded--moderation-activity' %>
<%= render 'nav' %>
<%= thredded_page do %>
<section class="thredded--main-section">
<h1><%= t 'thredded.recent_activity' %></h1>
<% if @last_moderated_record %>
<di... | Remove extra main-section in mod activity | Remove extra main-section in mod activity
| HTML+ERB | mit | jayroh/thredded,jayroh/thredded,thredded/thredded,jayroh/thredded,thredded/thredded,jayroh/thredded,thredded/thredded,thredded/thredded | html+erb | ## Code Before:
<% content_for :thredded_page_title, t('thredded.nav.moderation') %>
<% content_for :thredded_page_id, 'thredded--moderation-activity' %>
<%= render 'nav' %>
<%= thredded_page do %>
<section class="thredded--main-section">
<h1><%= t 'thredded.recent_activity' %></h1>
<%= content_tag :section,... |
5063874c82c10a9cde6971fea5b01a002579e31e | ember/app/routes/flights/-base.js | ember/app/routes/flights/-base.js | import Ember from 'ember';
export default Ember.Route.extend({
ajax: Ember.inject.service(),
queryParams: {
page: { refreshModel: true },
column: { refreshModel: true },
order: { refreshModel: true },
},
model(params) {
return this.get('ajax').request(this.getURL(params), {
data: {
... | import Ember from 'ember';
export default Ember.Route.extend({
ajax: Ember.inject.service(),
queryParams: {
page: { refreshModel: true },
column: { refreshModel: true },
order: { refreshModel: true },
},
model(params) {
return this.get('ajax').request(this.getURL(params), {
data: {
... | Reset "page" to 1 after leaving the route | routes/flights/base: Reset "page" to 1 after leaving the route
| JavaScript | agpl-3.0 | kerel-fs/skylines,skylines-project/skylines,skylines-project/skylines,skylines-project/skylines,shadowoneau/skylines,kerel-fs/skylines,Harry-R/skylines,Turbo87/skylines,Turbo87/skylines,RBE-Avionik/skylines,Harry-R/skylines,shadowoneau/skylines,shadowoneau/skylines,RBE-Avionik/skylines,shadowoneau/skylines,RBE-Avionik/... | javascript | ## Code Before:
import Ember from 'ember';
export default Ember.Route.extend({
ajax: Ember.inject.service(),
queryParams: {
page: { refreshModel: true },
column: { refreshModel: true },
order: { refreshModel: true },
},
model(params) {
return this.get('ajax').request(this.getURL(params), {
... |
5b8ed6ee7453927472ad503cde497a8a17b10020 | README.md | README.md |
`panflute` is a Python package that makes creating Pandoc filters fun.
For a detailed user guide, documentation, and installation instructions, see
<http://scorreia.com/software/panflute/> (or the [PDF version](http://scorreia.com/software/panflute/Panflute.pdf))
### Install
To install panflute, open the command l... |
`panflute` is a Python package that makes creating Pandoc filters fun.
For a detailed user guide, documentation, and installation instructions, see
<http://scorreia.com/software/panflute/> (or the [PDF version](http://scorreia.com/software/panflute/Panflute.pdf))
## Install
To install panflute, open the command li... | Update readme with install instructions for Python2 | Update readme with install instructions for Python2
Also reorganize the heading markers
| Markdown | bsd-3-clause | sergiocorreia/panflute | markdown | ## Code Before:
`panflute` is a Python package that makes creating Pandoc filters fun.
For a detailed user guide, documentation, and installation instructions, see
<http://scorreia.com/software/panflute/> (or the [PDF version](http://scorreia.com/software/panflute/Panflute.pdf))
### Install
To install panflute, op... |
2d011374c04c03d0debd94e88059ba0f92c15302 | src/Language/K3/Optimization/Core.hs | src/Language/K3/Optimization/Core.hs | module Language.K3.Optimization.Core where
import qualified Data.Set as S
import Language.K3.Core.Common
data OptHint
-- | The sets of identifiers which can be bound by reference, by copy without writeback, and by
-- copy with writeback.
= BindHint (S.Set Identifier, S.Set Identifier, S.Set Identifier)
... | module Language.K3.Optimization.Core where
import qualified Data.Set as S
import Language.K3.Core.Common
data OptHint
-- | The sets of identifiers which can be bound by reference, by copy without writeback, and by
-- copy with writeback.
= BindHint (S.Set Identifier, S.Set Identifier, S.Set Identifier)
... | Add OptHint annotations to track pass and accept forms. | Add OptHint annotations to track pass and accept forms.
| Haskell | apache-2.0 | DaMSL/K3,DaMSL/K3,yliu120/K3 | haskell | ## Code Before:
module Language.K3.Optimization.Core where
import qualified Data.Set as S
import Language.K3.Core.Common
data OptHint
-- | The sets of identifiers which can be bound by reference, by copy without writeback, and by
-- copy with writeback.
= BindHint (S.Set Identifier, S.Set Identifier, S.S... |
d8c53d2060aa3029c41b9746f6c8b0a35fd6cbd4 | src/com/jaquadro/minecraft/storagedrawers/integration/thermalfoundation/CoFHSecurityProvider.java | src/com/jaquadro/minecraft/storagedrawers/integration/thermalfoundation/CoFHSecurityProvider.java | package com.jaquadro.minecraft.storagedrawers.integration.thermalfoundation;
import com.jaquadro.minecraft.storagedrawers.api.security.ISecurityProvider;
import com.jaquadro.minecraft.storagedrawers.api.storage.attribute.IProtectable;
import com.jaquadro.minecraft.storagedrawers.integration.ThermalFoundation;
import c... | package com.jaquadro.minecraft.storagedrawers.integration.thermalfoundation;
import com.jaquadro.minecraft.storagedrawers.api.security.ISecurityProvider;
import com.jaquadro.minecraft.storagedrawers.api.storage.attribute.IProtectable;
import com.jaquadro.minecraft.storagedrawers.integration.ThermalFoundation;
import c... | Fix CoFH-locked drawers crashing clients | Fix CoFH-locked drawers crashing clients
| Java | mit | bloodmc/StorageDrawers,jaquadro/StorageDrawers,jaquadro/StorageDrawers | java | ## Code Before:
package com.jaquadro.minecraft.storagedrawers.integration.thermalfoundation;
import com.jaquadro.minecraft.storagedrawers.api.security.ISecurityProvider;
import com.jaquadro.minecraft.storagedrawers.api.storage.attribute.IProtectable;
import com.jaquadro.minecraft.storagedrawers.integration.ThermalFoun... |
2a7dbd355b47dd701984e5192ff308d7508b167a | packages/pe/peregrin.yaml | packages/pe/peregrin.yaml | homepage: ''
changelog-type: ''
hash: b41b9dd5e76b96b2db64889228cf4f023e5da09976dd0b3e435e7a44356cdeb1
test-bench-deps:
base: ==4.*
hspec: ! '>=2.2.0 && <3.0'
text: ! '>=1.0 && <2'
peregrin: -any
resource-pool: ! '>=0.2.1 && <0.3'
postgresql-simple: ! '>=0.5.2.1 && <0.6'
transformers: ! '>=0.5.2 && <0.6'
... | homepage: ''
changelog-type: ''
hash: 97df0ac1477ad02536d8b7afa0a1e79adbce555299884c59a523bcbfae8decda
test-bench-deps:
base: ==4.*
hspec: ! '>=2.2.0 && <3.0'
text: ! '>=1.0 && <2'
peregrin: -any
resource-pool: ! '>=0.2.1 && <0.3'
postgresql-simple: ! '>=0.5.2.1 && <0.6'
transformers: ! '>=0.5.2 && <0.6'
... | Update from Hackage at 2017-04-22T05:30:40Z | Update from Hackage at 2017-04-22T05:30:40Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: ''
changelog-type: ''
hash: b41b9dd5e76b96b2db64889228cf4f023e5da09976dd0b3e435e7a44356cdeb1
test-bench-deps:
base: ==4.*
hspec: ! '>=2.2.0 && <3.0'
text: ! '>=1.0 && <2'
peregrin: -any
resource-pool: ! '>=0.2.1 && <0.3'
postgresql-simple: ! '>=0.5.2.1 && <0.6'
transformers: ! '>... |
49832dbc28970b000ca5f31ff92c0540134765ca | anatomy/myApp.md | anatomy/myApp.md |
This is your Sails app's root directory. All the files and subfolders it contains by default were generated upon running `sails new`.
As you build out your app, the models, controller actions, helpers, and other modules you create will all live somewhere within this folder.
<docmeta name="displayName" value="myApp... |
This is an interactive guide to the structure of the default app that is generated when you do `sails new`. Choose from any of the files or folders in the list to learn more about its purpose.
<docmeta name="displayName" value="Anatomy of a Sails App">
<docmeta name="notShownInWebsiteNav" value="true">
| Update intro to this documentation section | Update intro to this documentation section
| Markdown | mit | yoshioka-s/sails-docs-ja | markdown | ## Code Before:
This is your Sails app's root directory. All the files and subfolders it contains by default were generated upon running `sails new`.
As you build out your app, the models, controller actions, helpers, and other modules you create will all live somewhere within this folder.
<docmeta name="displayNa... |
65294f9863a2f63c86cf5d7cf5f6431532b8d4af | src/main/java/at/ac/tuwien/inso/repository/GradeRepository.java | src/main/java/at/ac/tuwien/inso/repository/GradeRepository.java | package at.ac.tuwien.inso.repository;
import org.springframework.data.repository.CrudRepository;
import at.ac.tuwien.inso.entity.Grade;
public interface GradeRepository extends CrudRepository<Grade, Long> {
}
| package at.ac.tuwien.inso.repository;
import org.springframework.data.repository.CrudRepository;
import java.util.List;
import at.ac.tuwien.inso.entity.Grade;
public interface GradeRepository extends CrudRepository<Grade, Long> {
List<Grade> findByStudentAccountId(Long id);
}
| Add method to find grades by student account id | Add method to find grades by student account id
| Java | mit | university-information-system/uis,university-information-system/uis,university-information-system/uis,university-information-system/uis | java | ## Code Before:
package at.ac.tuwien.inso.repository;
import org.springframework.data.repository.CrudRepository;
import at.ac.tuwien.inso.entity.Grade;
public interface GradeRepository extends CrudRepository<Grade, Long> {
}
## Instruction:
Add method to find grades by student account id
## Code After:
package at... |
8ef4417a95fdd9b5dde26583a9624181639df600 | nix/__init__.py | nix/__init__.py |
from nix.core import File, FileMode, Block, DataType, Section, Property, Value, \
Source, DataArray, RangeDimension, SetDimension, SampledDimension, \
DimensionType, Feature, LinkType, Tag, MultiTag
from nix.block import BlockMixin
from nix.file import FileMixin
from nix.section import SectionMixin
from nix.p... |
from nix.core import File, FileMode, Block, DataType, Section, Property, Value, \
Source, DataArray, RangeDimension, SetDimension, SampledDimension, \
DimensionType, Feature, LinkType, Tag, MultiTag
from nix.block import BlockMixin
from nix.file import FileMixin
from nix.section import SectionMixin
from nix.p... | Remove mixins from namespace after monkey patching | Remove mixins from namespace after monkey patching
After their job is done, they can go home ;-)
| Python | bsd-3-clause | stoewer/nixpy,stoewer/nixpy | python | ## Code Before:
from nix.core import File, FileMode, Block, DataType, Section, Property, Value, \
Source, DataArray, RangeDimension, SetDimension, SampledDimension, \
DimensionType, Feature, LinkType, Tag, MultiTag
from nix.block import BlockMixin
from nix.file import FileMixin
from nix.section import Section... |
aa0a968c73c340f3df8655bddbb8b5669e332160 | setup.all.cfg | setup.all.cfg | [nosetests]
verbosity=3
with-doctest=1
doctest-tests=1
with-coverage=1
ignore-files=setup.py
[build_sphinx]
builder=html
[versioneer]
VCS=git
versionfile_source=nanshe/_version.py
versionfile_build=
tag_prefix=v
parentdir_prefix=nanshe-
| [nosetests]
verbosity=3
with-doctest=1
doctest-tests=1
with-coverage=1
ignore-files=(?:^\.|^_,|^setup\.py|_version\.py$)
[build_sphinx]
builder=html
[versioneer]
VCS=git
versionfile_source=nanshe/_version.py
versionfile_build=
tag_prefix=v
parentdir_prefix=nanshe-
| Update files for coverage to ignore | Update files for coverage to ignore
The `ignore-files` section in `setup.all.cfg` was stale and did not
include the latest pattern from `setup.cfg`. So this copies
`ignore-files` from `setup.cfg` to `setup.all.cfg`.
| INI | bsd-3-clause | nanshe-org/nanshe,nanshe-org/nanshe,jakirkham/nanshe,DudLab/nanshe,DudLab/nanshe,jakirkham/nanshe | ini | ## Code Before:
[nosetests]
verbosity=3
with-doctest=1
doctest-tests=1
with-coverage=1
ignore-files=setup.py
[build_sphinx]
builder=html
[versioneer]
VCS=git
versionfile_source=nanshe/_version.py
versionfile_build=
tag_prefix=v
parentdir_prefix=nanshe-
## Instruction:
Update files for coverage to ignore
The `ignore-f... |
c0ce65ccd7db7e7f34e9d6172f7179cf9ee16ef2 | chandra_aca/tests/test_dark_scale.py | chandra_aca/tests/test_dark_scale.py | import numpy as np
from ..dark_model import dark_temp_scale
def test_dark_temp_scale():
scale = dark_temp_scale(-10., -14)
assert np.allclose(scale, 0.70)
scale = dark_temp_scale(-10., -14, scale_4c=2.0)
assert scale == 0.5 # Should be an exact match
| import numpy as np
from ..dark_model import dark_temp_scale, get_warm_fracs
def test_get_warm_fracs():
exp = {(100, '2020:001', -11): 341312,
(100, '2017:001', -11): 278627,
(100, '2020:001', -15): 250546,
(100, '2017:001', -15): 200786,
(1000, '2017:001', -11): 1703,
... | Add regression test of warm fractions calculation | Add regression test of warm fractions calculation
| Python | bsd-2-clause | sot/chandra_aca,sot/chandra_aca | python | ## Code Before:
import numpy as np
from ..dark_model import dark_temp_scale
def test_dark_temp_scale():
scale = dark_temp_scale(-10., -14)
assert np.allclose(scale, 0.70)
scale = dark_temp_scale(-10., -14, scale_4c=2.0)
assert scale == 0.5 # Should be an exact match
## Instruction:
Add regression te... |
ea6412967c145a5d02cb4aae74a4d466694af332 | Save.hs | Save.hs | module Save ( save
, retrieve
) where
import Core
import Binary
import Data.Binary
import qualified Data.ByteString.Lazy as L
import Control.Applicative ((<$>))
save :: FilePath -> IRCState -> IO ()
save fp = L.writeFile fp . encode
retrieve :: FilePath -> IO IRCState
retrieve fp = decode <$... | module Save ( save
, retrieve
) where
import Core
import Binary
import Data.Binary
import qualified Data.ByteString.Lazy as L
import qualified Data.ByteString as B
import Control.Applicative ((<$>))
save :: FilePath -> IRCState -> IO ()
save fp = B.writeFile fp . L.toStrict . encode
retrieve... | Use strict file writing for saving | Use strict file writing for saving
This prevents us from trying to write to the save file while we are
reading it.
| Haskell | mit | jchmrt/btjchm | haskell | ## Code Before:
module Save ( save
, retrieve
) where
import Core
import Binary
import Data.Binary
import qualified Data.ByteString.Lazy as L
import Control.Applicative ((<$>))
save :: FilePath -> IRCState -> IO ()
save fp = L.writeFile fp . encode
retrieve :: FilePath -> IO IRCState
retriev... |
8b025ee41c232509966fc4c9ac248911ccc92be4 | README.md | README.md | Sample map was adapted from [this blog post] (https://geonet.esri.com/blogs/nicogis/2014/08/05/websocket-with-streamlayer).
### Install and run on Linux with conda
Run the following commands after cloning the repository:
```shell
$ conda env create
$ source activate websocket
$ python server.py
```
### Other resource... | A websocket server (created using Autobahn|Python) that emits Esri json.
Sample map was adapted from [this blog post] (https://geonet.esri.com/blogs/nicogis/2014/08/05/websocket-with-streamlayer).
### Install and run on Linux with conda
Run the following commands after cloning the repository:
```shell
$ conda env crea... | Add back summary line that was accidentally deleted in an earlier commit | Add back summary line that was accidentally deleted in an earlier commit
| Markdown | mit | joshvernon/streamlayer_ws,joshvernon/streamlayer_ws | markdown | ## Code Before:
Sample map was adapted from [this blog post] (https://geonet.esri.com/blogs/nicogis/2014/08/05/websocket-with-streamlayer).
### Install and run on Linux with conda
Run the following commands after cloning the repository:
```shell
$ conda env create
$ source activate websocket
$ python server.py
```
##... |
abfee126a7db6ebf5a0fa9451d7199300ffbb01a | app/css/edid.css | app/css/edid.css | width:auto;
}
#edidParsed {
float:right;
width:600px;
}
#inputTextBox {
float:left;
position:relative;
}
#parseButton {
position:absolute;
right:0px;
}
#inputEdid, #outputEdid {
resize: none;
}
#edidTreeviewWrapper {
float:left;
width:250px;
}
#edidDataWrapper {
/*pad... | width:auto;
}
#edidParsed {
float:right;
width:600px;
}
#inputTextBox {
float:left;
position:relative;
}
#parseButton {
position:absolute;
right:0px;
}
#inputEdid, #outputEdid {
resize: none;
font-family: Consolas,"Liberation Mono",Courier,monospace;
}
#edidTreeviewWrapper {
... | Change input textbox to monospace font. | Change input textbox to monospace font.
| CSS | mit | dgallegos/edidreader,dgallegos/edidreader,dgallegos/edidreader,dgallegos/edidreader | css | ## Code Before:
width:auto;
}
#edidParsed {
float:right;
width:600px;
}
#inputTextBox {
float:left;
position:relative;
}
#parseButton {
position:absolute;
right:0px;
}
#inputEdid, #outputEdid {
resize: none;
}
#edidTreeviewWrapper {
float:left;
width:250px;
}
#edidDataWrapper {
/*padding-top:... |
7c4685c8a333d41096a1d5aadb6418a913f53ec2 | .styleci.yml | .styleci.yml | preset: laravel
enabled:
- unalign_double_arrow
- phpdoc_separation
linting: true
| preset: laravel
enabled:
- phpdoc_order
- phpdoc_separation
- unalign_double_arrow
linting: true
| Sort fixers and add phpdoc_order fixer | Sort fixers and add phpdoc_order fixer
| YAML | mit | lucasmichot/jwt-auth,mazasb/jwt-auth,tymondesigns/jwt-auth | yaml | ## Code Before:
preset: laravel
enabled:
- unalign_double_arrow
- phpdoc_separation
linting: true
## Instruction:
Sort fixers and add phpdoc_order fixer
## Code After:
preset: laravel
enabled:
- phpdoc_order
- phpdoc_separation
- unalign_double_arrow
linting: true
|
9049a718f7b4fa6394f5d8b153e91f21daa06888 | setup.py | setup.py | import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errno... | import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errno... | Add a description, because metadata is hard. | Add a description, because metadata is hard.
| Python | mit | dreid/atomiclong,alex/atomiclong | python | ## Code Before:
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pyte... |
ec714240a7186617b264870df12fa72900d0f5e4 | src/stylesheets/canvas/_icons.scss | src/stylesheets/canvas/_icons.scss | /*================ #Icons ================*/
.icon {
display: inline-block;
width: 20px;
height: 20px;
.supports-no-fontface & {
display: none;
}
}
svg,
symbol {
&.icon:not(.icon--full-color) {
circle,
ellipse,
g,
line,
path,
polygon,
polyline,
rect {
fill: inheri... | /*================ #Icons ================*/
.icon {
display: inline-block;
width: 20px;
height: 20px;
vertical-align: middle;
.supports-no-svg & {
display: none;
}
}
svg,
symbol {
&.icon:not(.icon--full-color) {
circle,
ellipse,
g,
line,
path,
polygon,
polyline,
rect... | Update SVG fallback text styles | Update SVG fallback text styles
| SCSS | mit | t-kelly/slate,t-kelly/slate | scss | ## Code Before:
/*================ #Icons ================*/
.icon {
display: inline-block;
width: 20px;
height: 20px;
.supports-no-fontface & {
display: none;
}
}
svg,
symbol {
&.icon:not(.icon--full-color) {
circle,
ellipse,
g,
line,
path,
polygon,
polyline,
rect {
... |
c8aed75afd9b23a339853423d916c38ddfe42a99 | examples/package.json | examples/package.json | {
"name": "react-image-webp",
"main": "dist/index.js",
"scripts": {
"build": "webpack --progress --color -p --config ./webpack.config.js"
},
"devDependencies": {
"babel-cli": "^6.9.0",
"babel-core": "^6.17.0",
"babel-eslint": "^7.0.0",
"babel-loader": "^6.2.5",
"babel-preset-es2015": "... | {
"name": "react-image-webp",
"main": "dist/index.js",
"scripts": {
"build": "webpack --progress --color -p --config ./webpack.config.js"
},
"devDependencies": {
"babel-cli": "^6.9.0",
"babel-core": "^6.17.0",
"babel-loader": "^6.2.5",
"babel-preset-es2015": "^6.22.0",
"babel-preset-re... | Remove depend from example too | Remove depend from example too
| JSON | mit | DonRai/react-image-webp | json | ## Code Before:
{
"name": "react-image-webp",
"main": "dist/index.js",
"scripts": {
"build": "webpack --progress --color -p --config ./webpack.config.js"
},
"devDependencies": {
"babel-cli": "^6.9.0",
"babel-core": "^6.17.0",
"babel-eslint": "^7.0.0",
"babel-loader": "^6.2.5",
"babel-p... |
0ef42cef4caafd4694291fa5ec87486c18ba9a30 | server.js | server.js | var app = require('./server/server-config.js');
var models = require('./server/db/orm-model.js');
var models = models();
var User = models.User;
var bodyParser = require('body-parser');
// parse application/x-www-form-urlencoded
app.use(bodyParser.urlencoded({ extended: false }));
// parse application/json
app.use(... | var app = require('./server/server-config.js');
var models = require('./server/db/orm-model.js');
var models = models();
var User = models.User;
var bodyParser = require('body-parser');
// parse application/x-www-form-urlencoded
app.use(bodyParser.urlencoded({ extended: false }));
// parse application/json
app.use(... | Remove uneccesary console.log and storage. | Remove uneccesary console.log and storage.
| JavaScript | mit | hmfoster/beards-of-zeus,hmfoster/beards-of-zeus,marqshort/beards-of-zeus,hmfoster/beards-of-zeus,beards-of-zeus/beards-of-zeus,beards-of-zeus/beards-of-zeus,marqshort/beards-of-zeus,kevinwchiang/beards-of-zeus,marqshort/beards-of-zeus,beards-of-zeus/beards-of-zeus,kevinwchiang/beards-of-zeus,kevinwchiang/beards-of-zeus | javascript | ## Code Before:
var app = require('./server/server-config.js');
var models = require('./server/db/orm-model.js');
var models = models();
var User = models.User;
var bodyParser = require('body-parser');
// parse application/x-www-form-urlencoded
app.use(bodyParser.urlencoded({ extended: false }));
// parse applicatio... |
0d9c231aedfdd831c820851341bc41cf4e7e8d31 | README.md | README.md |
A/B Testing tool for the modern Web
## Usage
### Basic usage
```js
import skift from 'skift';
// Configure Skift.
const test = skift({
tracking: {
track: function(event, trackingData) {
console.log('A/B test event: ' + event, trackingData);
}
}
});
// Describe the A/B Test.
test
.creat... |
A/B Testing tool for the modern Web
## Usage
### Basic usage
```js
import skift from 'skift';
// Configure Skift.
skift.config({
tracking: {
track: function(event, trackingData) {
console.log('A/B test event: ' + event, trackingData);
}
}
});
// Describe the A/B Test.
skift
.create('My... | Update docs to match the current API | Update docs to match the current API
| Markdown | mit | trustpilot/skift,trustpilot/skift | markdown | ## Code Before:
A/B Testing tool for the modern Web
## Usage
### Basic usage
```js
import skift from 'skift';
// Configure Skift.
const test = skift({
tracking: {
track: function(event, trackingData) {
console.log('A/B test event: ' + event, trackingData);
}
}
});
// Describe the A/B Tes... |
055db018275e13eccfcfecf438a1919764e1ecdc | src/cleaner.coffee | src/cleaner.coffee | { attemptShell, isBinaryExecutable } = require './utils'
logger = require './logger'
styler = require './styler'
_ = require 'lodash'
@clean = ({ recursive = no, deep = no } = {}) ->
hasFileTool = attemptShell('which', 'file')?
unless hasFileTool
if process.platform is "win32"
logger.e "To... | { attemptShell, isBinaryExecutable } = require './utils'
logger = require './logger'
styler = require './styler'
_ = require 'lodash'
@clean = ({ recursive = no, deep = no } = {}) ->
hasFileTool = attemptShell('which', 'file')?
unless hasFileTool
if process.platform is "win32"
logger.e "To... | Fix non-exiting on clean win32 error, improve efficiency | Fix non-exiting on clean win32 error, improve efficiency
| CoffeeScript | mit | albertsgrc/optim | coffeescript | ## Code Before:
{ attemptShell, isBinaryExecutable } = require './utils'
logger = require './logger'
styler = require './styler'
_ = require 'lodash'
@clean = ({ recursive = no, deep = no } = {}) ->
hasFileTool = attemptShell('which', 'file')?
unless hasFileTool
if process.platform is "win32"
... |
c474007c882fbe3a046170189dd462eb97174173 | site/content/tutorial/05-events/03-event-modifiers/text.md | site/content/tutorial/05-events/03-event-modifiers/text.md | ---
title: Event modifiers
---
DOM event handlers can have *modifiers* that alter their behaviour. For example, a handler with a `once` modifier will only run a single time:
```html
<script>
function handleClick() {
alert('no more alerts')
}
</script>
<button on:click|once={handleClick}>
Click me
</button>
```
... | ---
title: Event modifiers
---
DOM event handlers can have *modifiers* that alter their behaviour. For example, a handler with a `once` modifier will only run a single time:
```html
<script>
function handleClick() {
alert('no more alerts')
}
</script>
<button on:click|once={handleClick}>
Click me
</button>
```
... | Add link to Mozilla docs about events bubbling and capture phase | Add link to Mozilla docs about events bubbling and capture phase
Fixes #2393
| Markdown | mit | sveltejs/svelte,sveltejs/svelte | markdown | ## Code Before:
---
title: Event modifiers
---
DOM event handlers can have *modifiers* that alter their behaviour. For example, a handler with a `once` modifier will only run a single time:
```html
<script>
function handleClick() {
alert('no more alerts')
}
</script>
<button on:click|once={handleClick}>
Click m... |
62eea0104615b5d75183d5392fe250fa07d2a988 | src/bulksms/config.py | src/bulksms/config.py | CONFIG = {
'BULK_SMS': {
'AUTH': {
'USERNAME': '',
'PASSWORD': ''
},
'URL': {
'SINGLE': 'https://bulksms.2way.co.za/eapi/submission/send_sms/2/2.0',
'BATCH': 'http://bulksms.2way.co.za/eapi/submission/send_batch/1/1.0'
}
},
'CLE... | CONFIG = {
'BULK_SMS': {
'AUTH': {
'USERNAME': '',
'PASSWORD': ''
},
'URL': {
'SENDING': {
{
'SINGLE': 'https://bulksms.2way.co.za/eapi/submission/send_sms/2/2.0',
'BATCH': 'https://bulksms.2way.co.za... | Add url for getting credits. | Add url for getting credits.
| Python | mit | tsotetsi/django-bulksms | python | ## Code Before:
CONFIG = {
'BULK_SMS': {
'AUTH': {
'USERNAME': '',
'PASSWORD': ''
},
'URL': {
'SINGLE': 'https://bulksms.2way.co.za/eapi/submission/send_sms/2/2.0',
'BATCH': 'http://bulksms.2way.co.za/eapi/submission/send_batch/1/1.0'
}... |
6494d85dc2c8af65c2468e4ed7f8adbabc176cdb | lib/mingo.rb | lib/mingo.rb | require 'mongo'
require 'mingo/alternative'
require 'mingo/config'
require 'mingo/engine'
require 'mingo/experiment'
require 'mingo/helpers'
require 'mingo/version'
module Mingo
class << self
def configure
config = Config.instance
yield config if block_given?
config
end
alias :config :... | require 'mongo'
require 'mingo/alternative'
require 'mingo/config'
require 'mingo/engine'
require 'mingo/experiment'
require 'mingo/helpers'
require 'mingo/version'
module Mingo
class << self
def configure
config = Config.instance
yield config if block_given?
config
end
alias :config :... | Fix syntax error in 1.8.7. | Fix syntax error in 1.8.7.
| Ruby | mit | chanks/count,chanks/count | ruby | ## Code Before:
require 'mongo'
require 'mingo/alternative'
require 'mingo/config'
require 'mingo/engine'
require 'mingo/experiment'
require 'mingo/helpers'
require 'mingo/version'
module Mingo
class << self
def configure
config = Config.instance
yield config if block_given?
config
end
... |
5b4707865bbc9c34f08c4358890e32b0da920f27 | packages/ac/AC-Terminal.yaml | packages/ac/AC-Terminal.yaml | homepage: ''
changelog-type: ''
hash: e4b41af1e95875f68fac4d6b7a61ccaec86ec8cc9d70939a1a7e59300bbb9301
test-bench-deps: {}
maintainer: MathematicalOrchid@hotmail.com
synopsis: Trivial wrapper over ansi-terminal.
changelog: ''
basic-deps:
base: ! '>=4 && <5'
ansi-terminal: ! '>=0.5'
all-versions:
- '1.0'
author: And... | homepage: ''
changelog-type: ''
hash: 553274b7246c99776a496db22fb6bf500cafdd5a45f754dd43b731067d962bc5
test-bench-deps: {}
maintainer: MathematicalOrchid@hotmail.com
synopsis: Trivial wrapper over ansi-terminal.
changelog: ''
basic-deps:
base: ! '>=4 && <4.6'
ansi-terminal: ! '>=0.5 && <0.9'
all-versions:
- '1.0'
a... | Update from Hackage at 2018-09-30T14:12:08Z | Update from Hackage at 2018-09-30T14:12:08Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: ''
changelog-type: ''
hash: e4b41af1e95875f68fac4d6b7a61ccaec86ec8cc9d70939a1a7e59300bbb9301
test-bench-deps: {}
maintainer: MathematicalOrchid@hotmail.com
synopsis: Trivial wrapper over ansi-terminal.
changelog: ''
basic-deps:
base: ! '>=4 && <5'
ansi-terminal: ! '>=0.5'
all-versions:
- '... |
0b60a7bf993d3247aa763ab6e9d979f51c802104 | web-server/app/assets/javascripts/components/updates/show-update-component.jsx | web-server/app/assets/javascripts/components/updates/show-update-component.jsx | define(function(require) {
var _ = require('underscore'),
React = require('react'),
Status = require('../../stores/status'),
StatusComponent = require('../../components/updates/status-component'),
showModel = require('../../mixins/show-model');
var ShowUpdateComponent = React.createClass({
... | define(function(require) {
var _ = require('underscore'),
React = require('react'),
Status = require('../../stores/status'),
StatusComponent = require('../../components/updates/status-component'),
showModel = require('../../mixins/show-model');
var ShowUpdateComponent = React.createClass({
... | Fix show update campaign to use UUID | Fix show update campaign to use UUID
| JSX | mpl-2.0 | PDXostc/rvi_sota_server,PDXostc/rvi_sota_server,PDXostc/rvi_sota_server | jsx | ## Code Before:
define(function(require) {
var _ = require('underscore'),
React = require('react'),
Status = require('../../stores/status'),
StatusComponent = require('../../components/updates/status-component'),
showModel = require('../../mixins/show-model');
var ShowUpdateComponent = Reac... |
b9a0f5f0b23274caa7d5b34a1c9ed1d8c7443651 | lib/collections/mangasToAdd.js | lib/collections/mangasToAdd.js | MangasToAdd = new Mongo.Collection('mangasToAdd');
var Schemas = {};
Schemas.MangasToAdd = new SimpleSchema({});
MangasToAdd.attachSchema(Schemas.MangasToAdd);
| MangasToAdd = new Mongo.Collection('mangasToAdd');
var Schemas = {};
Schemas.MangasToAdd = new SimpleSchema({
askBy: {
type: [String],
label: 'UserID list of people demanding this manga',
},
name: {
type: String,
label: 'Manga name'
},
date: {
type: String,
label: 'Date of the demand'
}
});
MangasT... | Add schema and method to this collection | Add schema and method to this collection
| JavaScript | mit | dexterneo/mangatek,dexterneo/mangatek,dexterneo/mangas,dexterneo/mangas | javascript | ## Code Before:
MangasToAdd = new Mongo.Collection('mangasToAdd');
var Schemas = {};
Schemas.MangasToAdd = new SimpleSchema({});
MangasToAdd.attachSchema(Schemas.MangasToAdd);
## Instruction:
Add schema and method to this collection
## Code After:
MangasToAdd = new Mongo.Collection('mangasToAdd');
var Schemas = {... |
b02a7af79860c6a76fa1df5ade73ddd85b7f5332 | roles/common/tasks/python.yml | roles/common/tasks/python.yml | ---
- name: install additional python packages
git: repo={{ item.repo }} dest=/opt/stack/{{ item.name }}
version={{ item.rev }} accept_hostkey=True
with_items: common.python_extra_packages
- name: freeze eventlet to 0.15.2 for nova to work
pip: name=eventlet version=0.15.2
- name: install drivers
comma... | ---
- name: install additional python packages
git: repo={{ item.repo }} dest=/opt/stack/{{ item.name }}
version={{ item.rev }} accept_hostkey=True
with_items: common.python_extra_packages
- name: freeze eventlet to 0.15.2 for nova to work
pip: name=eventlet version=0.15.2
- name: install drivers
comma... | Install shade from git for now | Install shade from git for now
This is necessary to get floating IPs working right.
| YAML | mit | blueboxgroup/ursula,j2sol/ursula,channus/ursula,andrewrothstein/ursula,zrs233/ursula,MaheshIBM/ursula,davidcusatis/ursula,masteinhauser/ursula,blueboxgroup/ursula,knandya/ursula,persistent-ursula/ursula,EricCrosson/ursula,ryshah/ursula,j2sol/ursula,zrs233/ursula,persistent-ursula/ursula,knandya/ursula,rongzhus/ursula,n... | yaml | ## Code Before:
---
- name: install additional python packages
git: repo={{ item.repo }} dest=/opt/stack/{{ item.name }}
version={{ item.rev }} accept_hostkey=True
with_items: common.python_extra_packages
- name: freeze eventlet to 0.15.2 for nova to work
pip: name=eventlet version=0.15.2
- name: install... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.