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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
4486a629e709039dc1269a801bbbbf60ed8a098b | roles/install/tasks/main.yml | roles/install/tasks/main.yml | - include_tasks: flavor.yml
- include_tasks: os.yml
- include_tasks: steam.yml
- include_tasks: kf2.yml
when: not kf2_classic|bool
- include_tasks: kf2classic.yml
when: kf2_classic|bool
- include_tasks: systemd.yml
- include_tasks: sudo.yml
- include_tasks: firewalld.yml
- include_tasks: selinux.yml
- include_tas... | - include_tasks: flavor.yml
- include_tasks: os.yml
- include_tasks: selinux.yml
- include_tasks: steam.yml
- include_tasks: kf2.yml
when: not kf2_classic|bool
- include_tasks: kf2classic.yml
when: kf2_classic|bool
- include_tasks: systemd.yml
- include_tasks: sudo.yml
- include_tasks: firewalld.yml
- include_tas... | Move SELinux to top to have the dependencies for 'become' | Move SELinux to top to have the dependencies for 'become'
| YAML | mit | bviktor/kf2-centos | yaml | ## Code Before:
- include_tasks: flavor.yml
- include_tasks: os.yml
- include_tasks: steam.yml
- include_tasks: kf2.yml
when: not kf2_classic|bool
- include_tasks: kf2classic.yml
when: kf2_classic|bool
- include_tasks: systemd.yml
- include_tasks: sudo.yml
- include_tasks: firewalld.yml
- include_tasks: selinux.y... |
6e08a454f936d58fc5fc1720e7a74d94b3bc9c9e | demo/simple.js | demo/simple.js | 'use strict';
var sandboxFactory = require('..'),
MemoryFS = require('memory-fs'),
memoryFS = new MemoryFS(),
sandbox = sandboxFactory.create(memoryFS);
memoryFS.mkdirpSync('/my/dir');
memoryFS.writeFileSync(
'/my/dir/file1.js',
'console.log("File1"); require("./file2.js"); console.log("Then"); re... | 'use strict';
var sandboxFactory = require('..'),
mockFS = require('mock-fs').fs(),
sandbox = sandboxFactory.create(mockFS);
mockFS.mkdirSync('/my');
mockFS.mkdirSync('/my/dir');
mockFS.writeFileSync(
'/my/dir/file1.js',
'console.log("File1"); require("./file2.js"); console.log("Then"); require("/my/d... | Switch demo to use mock-fs rather than memory-fs | Switch demo to use mock-fs rather than memory-fs
| JavaScript | mit | asmblah/playpit | javascript | ## Code Before:
'use strict';
var sandboxFactory = require('..'),
MemoryFS = require('memory-fs'),
memoryFS = new MemoryFS(),
sandbox = sandboxFactory.create(memoryFS);
memoryFS.mkdirpSync('/my/dir');
memoryFS.writeFileSync(
'/my/dir/file1.js',
'console.log("File1"); require("./file2.js"); console... |
6c43d4a683eecb94cc1c4eda20102ac54c1479d5 | app/helpers/items_helper.rb | app/helpers/items_helper.rb | module ItemsHelper
def itemable_items_path(itemable)
if itemable.class.name =~ /Channel$/
channel_items_path(channel_id: itemable.id)
else
items_path(entity_id: itemable.id)
end
end
def excerpt_for(item, length=150)
decoder = HTMLEntities.new
string = if item.to_s == item.guid
... | module ItemsHelper
def itemable_items_path(itemable)
if itemable.class.name =~ /Channel$/
channel_items_path(channel_id: itemable.id)
else
items_path(entity_id: itemable.id)
end
end
def excerpt_for(item, length=150)
decoder = HTMLEntities.new
string = if item.to_s == item.guid
... | Fix bug where rails tag helper tried to make iFrame self-closing | Fix bug where rails tag helper tried to make iFrame self-closing
| Ruby | agpl-3.0 | osucomm/mediamagnet,osucomm/mediamagnet | ruby | ## Code Before:
module ItemsHelper
def itemable_items_path(itemable)
if itemable.class.name =~ /Channel$/
channel_items_path(channel_id: itemable.id)
else
items_path(entity_id: itemable.id)
end
end
def excerpt_for(item, length=150)
decoder = HTMLEntities.new
string = if item.to_s... |
71a7e61cfbc9975dcea6836aee7ecdaeb93861fa | app/assets/stylesheets/css3/_placeholder.scss | app/assets/stylesheets/css3/_placeholder.scss | $placeholders: '-webkit-input-placeholder',
'-moz-placeholder',
'-ms-input-placeholder';
@mixin placeholder {
@each $placeholder in $placeholders {
@if $placeholder == "-webkit-input-placeholder" {
&::#{$placeholder} {
@content;
}
}
@else {
&:#{$pla... | $placeholders: '-webkit-input-placeholder',
'-moz-placeholder',
'-ms-input-placeholder';
@mixin placeholder {
@each $placeholder in $placeholders {
@if $placeholder == "-webkit-input-placeholder" {
&::#{$placeholder} {
@content;
}
}
@else if $placeholder ... | Add Placeholder support for firefox 19+ | Add Placeholder support for firefox 19+
| SCSS | mit | jamadam/bourbon-docs-jp,thoughtbot/bourbon,greyhwndz/bourbon,nickg33/bourbon,jasonwalkow/bourbon,ismarkunc/bourbon,chriseppstein/bourbon,thoughtbot/bourbon,jamadam/bourbon-docs-jp,zyj1022/bourbon,setie/bourbon,Jazz-Man/bourbon,jamadam/bourbon-docs-jp,cllns/bourbon,jamesmenera/bourbon-libsass,zyj1022/bourbon,smithdamen/... | scss | ## Code Before:
$placeholders: '-webkit-input-placeholder',
'-moz-placeholder',
'-ms-input-placeholder';
@mixin placeholder {
@each $placeholder in $placeholders {
@if $placeholder == "-webkit-input-placeholder" {
&::#{$placeholder} {
@content;
}
}
@else ... |
114097d614c06525a50c4e7d67795222a689a7a3 | environ_prebuild.sh | environ_prebuild.sh | set -e
chmod +x miniconda.sh
./miniconda.sh -b
export PATH=/home/travis/miniconda/bin:$PATH
conda update --yes conda
conda install --yes conda-server conda-build jinja2 anaconda-client sh pip
conda config --add channels distributions
conda config --add channels datamicroscopes
| set -e
chmod +x miniconda.sh
./miniconda.sh -b
export PATH=$HOME/miniconda/bin:$PATH
conda update --yes conda
conda install --yes conda-server conda-build jinja2 anaconda-client sh pip
conda config --add channels distributions
conda config --add channels datamicroscopes
| Make $PATH cross platform by using $HOME | Make $PATH cross platform by using $HOME
| Shell | bsd-3-clause | datamicroscopes/release,jzf2101/release,jzf2101/release,datamicroscopes/release | shell | ## Code Before:
set -e
chmod +x miniconda.sh
./miniconda.sh -b
export PATH=/home/travis/miniconda/bin:$PATH
conda update --yes conda
conda install --yes conda-server conda-build jinja2 anaconda-client sh pip
conda config --add channels distributions
conda config --add channels datamicroscopes
## Instruction:
Make $PAT... |
c8eee1866545c8ebbf55e1e4b0fa8cc28425805e | src/resources/views/forms/submit.blade.php | src/resources/views/forms/submit.blade.php | {!! Form::submit((isset($text)) ? $text : 'Submit', ['class' => 'btn btn-success form-control']) !!} | {!! Form::submit((isset($text)) ? $text : trans('mconsole::forms.submit'), ['class' => 'btn btn-success form-control']) !!} | Use translation from submit button | Use translation from submit button
| PHP | mit | misterpaladin/mconsole,misterpaladin/mconsole,misterpaladin/mconsole | php | ## Code Before:
{!! Form::submit((isset($text)) ? $text : 'Submit', ['class' => 'btn btn-success form-control']) !!}
## Instruction:
Use translation from submit button
## Code After:
{!! Form::submit((isset($text)) ? $text : trans('mconsole::forms.submit'), ['class' => 'btn btn-success form-control']) !!} |
cf115c10b1cacaaa2364ed9ca58a694586a3dd32 | lib/vagrant/util/safe_exec.rb | lib/vagrant/util/safe_exec.rb | module Vagrant
module Util
# This module provies a `safe_exec` method which is a drop-in
# replacement for `Kernel.exec` which addresses a specific issue
# which manifests on OS X 10.5 and perhaps other operating systems.
# This issue causes `exec` to fail if there is more than one system
# thread... | module Vagrant
module Util
# This module provies a `safe_exec` method which is a drop-in
# replacement for `Kernel.exec` which addresses a specific issue
# which manifests on OS X 10.5 and perhaps other operating systems.
# This issue causes `exec` to fail if there is more than one system
# thread... | Fix errno not defined [closes GH-465] | Fix errno not defined [closes GH-465]
| Ruby | mit | benizi/vagrant,aaam/vagrant,kalabiyau/vagrant,mitchellh/vagrant,bdwyertech/vagrant,theist/vagrant,zsjohny/vagrant,loren-osborn/vagrant,marxarelli/vagrant,marxarelli/vagrant,aneeshusa/vagrant,mwrock/vagrant,apertoso/vagrant,teotihuacanada/vagrant,glensc/vagrant,kamazee/vagrant,lonniev/vagrant,benh57/vagrant,Chhed13/vagr... | ruby | ## Code Before:
module Vagrant
module Util
# This module provies a `safe_exec` method which is a drop-in
# replacement for `Kernel.exec` which addresses a specific issue
# which manifests on OS X 10.5 and perhaps other operating systems.
# This issue causes `exec` to fail if there is more than one sys... |
ce98ba5f5416adaaa6a1da3c0297c12187037834 | .travis.yml | .travis.yml | language: ruby
bundler_args: --quiet
rvm:
- 1.9.3
- 2.0.0
- 2.1.1
- 2.1.2
- 2.2.0-rc1
- 2.2.1
- 2.2.2
- 2.2.3
- ruby-head
script: "bundle exec rake"
gemfile:
- Gemfile
notifications:
recipients:
- lourens@methodmissing.com
- matt.connolly@me.com
before_install:
- if [[ $(ruby -v) =~ rubi... | language: ruby
bundler_args: --quiet
rvm:
- 1.9.3
- 2.0.0
- 2.1.1
- 2.1.2
- 2.2.0-rc1
- 2.2.1
- 2.2.2
- 2.2.3
- 2.3.0
- 2.3.1
- ruby-head
script: "bundle exec rake"
gemfile:
- Gemfile
notifications:
recipients:
- lourens@methodmissing.com
- matt.connolly@me.com
before_install:
- if [... | Add Ruby 2.3.0 and 2.3.1 to CI targets | Add Ruby 2.3.0 and 2.3.1 to CI targets
| YAML | mit | methodmissing/rbczmq,methodmissing/rbczmq,methodmissing/rbczmq | yaml | ## Code Before:
language: ruby
bundler_args: --quiet
rvm:
- 1.9.3
- 2.0.0
- 2.1.1
- 2.1.2
- 2.2.0-rc1
- 2.2.1
- 2.2.2
- 2.2.3
- ruby-head
script: "bundle exec rake"
gemfile:
- Gemfile
notifications:
recipients:
- lourens@methodmissing.com
- matt.connolly@me.com
before_install:
- if [[ $(... |
389819417a556d123db99236d99a100310f6350e | client/src/App.js | client/src/App.js | import React, { Component } from 'react';
import './App.css';
import { connect } from 'react-redux'
import { Intent, Position, Toaster } from "@blueprintjs/core";
class App extends Component {
componentWillMount() {
this.toaster = Toaster.create({
className: "my-toaster",
position: Position.TOP_CENTE... | import React, { Component } from 'react';
import './App.css';
import { connect } from 'react-redux'
import { Intent, Position, Toaster } from "@blueprintjs/core";
class App extends Component {
componentWillMount() {
this.toaster = Toaster.create({
className: "my-toaster",
position: Position.TOP_CENTE... | Make sure to change the toaster when new error appears | Make sure to change the toaster when new error appears
| JavaScript | mit | RudthMael/chatx,RudthMael/chatx | javascript | ## Code Before:
import React, { Component } from 'react';
import './App.css';
import { connect } from 'react-redux'
import { Intent, Position, Toaster } from "@blueprintjs/core";
class App extends Component {
componentWillMount() {
this.toaster = Toaster.create({
className: "my-toaster",
position: Po... |
a7c365efaa1e0d795583811017c533a7e30d21ba | src/index.js | src/index.js | import { GitHub } from './GitHub';
import * as _ from 'lodash';
const fs = require('fs');
let hub = null;
let jsonFile = null;
let keys = [
'name', 'description', 'updated_at', 'language',
'stargazers_count', 'forks_count', 'contributor_count'
];
if (process.argv.length > 2) {
let user = process.argv[2];
l... | import { GitHub } from './GitHub';
import * as _ from 'lodash';
const fs = require('fs');
let hub = null;
let jsonFile = null;
let keys = [
'name', 'description', 'updated_at', 'html_url', 'language',
'stargazers_count', 'forks_count', 'contributor_count'
];
if (process.argv.length > 2) {
let user = process.... | Add html_url into default keys | Add html_url into default keys
| JavaScript | mit | TSedlar/github-scraper | javascript | ## Code Before:
import { GitHub } from './GitHub';
import * as _ from 'lodash';
const fs = require('fs');
let hub = null;
let jsonFile = null;
let keys = [
'name', 'description', 'updated_at', 'language',
'stargazers_count', 'forks_count', 'contributor_count'
];
if (process.argv.length > 2) {
let user = proc... |
76763538b8b6665a13640fd448eabf0321676b09 | data/entity/core_type_string.go | data/entity/core_type_string.go | // Copyright 2014 The goyy Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package entity
import (
"gopkg.in/goyy/goyy.v0/util/bytes"
)
type String struct {
base
value []byte
}
func (me *String) Value() string {
return string... | // Copyright 2014 The goyy Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package entity
import (
"gopkg.in/goyy/goyy.v0/util/bytes"
)
type String struct {
base
value []byte
}
func (me *String) Value() string {
if me.value =... | Add whether to empty judgments | Add whether to empty judgments
| Go | mit | goyy/goyy,goyy/goyy,goyy/goyy,goyy/goyy | go | ## Code Before:
// Copyright 2014 The goyy Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package entity
import (
"gopkg.in/goyy/goyy.v0/util/bytes"
)
type String struct {
base
value []byte
}
func (me *String) Value() string ... |
aeac9eca918f1cc165d55c162865aac7ab1de99b | lib/ehrmagerd/translator.rb | lib/ehrmagerd/translator.rb | require "ehrmagerd/version"
require "unirest"
require "pry"
module Ehrmagerd
class Translator
def self.translate(string)
response = Unirest::post "https://jmillerdesign-ermahgerd-translator.p.mashape.com/api",
headers: {
"X-Mashape-Authorization" => "hm4geMmQl70fwzsJAY9ddGVg9QtReNlj"
... | require "ehrmagerd/version"
require "unirest"
require "JSON"
require "pry"
module Ehrmagerd
class Translator
def self.translate(string)
response = Unirest::post "https://jmillerdesign-ermahgerd-translator.p.mashape.com/api",
headers: {
"X-Mashape-Authorization" => "hm4geMmQl70fwzsJAY9ddGV... | Update translate method to return just the translated string | Update translate method to return just the translated string
| Ruby | mit | hchood/ehrmagerd | ruby | ## Code Before:
require "ehrmagerd/version"
require "unirest"
require "pry"
module Ehrmagerd
class Translator
def self.translate(string)
response = Unirest::post "https://jmillerdesign-ermahgerd-translator.p.mashape.com/api",
headers: {
"X-Mashape-Authorization" => "hm4geMmQl70fwzsJAY9ddG... |
9f4fadb971beb3b42528d9d59fccd2fb59147b50 | common/src/main/scala/tracking/InMemoryNotificationReportRepository.scala | common/src/main/scala/tracking/InMemoryNotificationReportRepository.scala | package tracking
import models.NotificationReport
import org.joda.time.DateTime
import tracking.Repository.RepositoryResult
import scala.concurrent.Future
import scalaz.\/
import scalaz.std.option.optionSyntax._
class InMemoryNotificationReportRepository extends SentNotificationReportRepository {
val db = scala.c... | package tracking
import models.NotificationReport
import org.joda.time.{DateTime, Interval}
import tracking.Repository.RepositoryResult
import scala.concurrent.Future
import scalaz.\/
import scalaz.std.option.optionSyntax._
class InMemoryNotificationReportRepository extends SentNotificationReportRepository {
val ... | Use interval instead of isAfter and isBefore | Use interval instead of isAfter and isBefore
| Scala | apache-2.0 | guardian/mobile-n10n,guardian/mobile-n10n,guardian/mobile-n10n | scala | ## Code Before:
package tracking
import models.NotificationReport
import org.joda.time.DateTime
import tracking.Repository.RepositoryResult
import scala.concurrent.Future
import scalaz.\/
import scalaz.std.option.optionSyntax._
class InMemoryNotificationReportRepository extends SentNotificationReportRepository {
... |
bf3d042da6525ec030af5c2c9d220b219c39e5b1 | .travis.yml | .travis.yml | language: go
go:
- 1.12.x
- 1.13.x
- tip
os:
- linux
- osx
- windows
arch:
- amd64
- arm64
matrix:
fast_finish: true
allow_failures:
- go: tip
exclude:
- os: windows
go: tip
- os: windows
arch: arm64
- os: osx
arch: arm64
install:
- go get -d -v -t ./...
s... | language: go
go:
- 1.12.x
- 1.13.x
- master
os:
- linux
- osx
- windows
arch:
- amd64
- arm64
matrix:
fast_finish: true
allow_failures:
- go: master
exclude:
- os: windows
go: master
- os: windows
arch: arm64
- os: osx
arch: arm64
install:
- go get -d -v -t... | Use master instead of tip | Use master instead of tip
| YAML | mit | moorereason/webhook,adnanh/webhook | yaml | ## Code Before:
language: go
go:
- 1.12.x
- 1.13.x
- tip
os:
- linux
- osx
- windows
arch:
- amd64
- arm64
matrix:
fast_finish: true
allow_failures:
- go: tip
exclude:
- os: windows
go: tip
- os: windows
arch: arm64
- os: osx
arch: arm64
install:
- go get -... |
9359faa9f95d051e1abd9b0c88edad624ed8b174 | README.md | README.md |
This repo is a fork of [puppet-skeleton](https://github.com/gds-operations/puppet-skeleton).
## Development workflow
1. `bundle install`
1. `bundle exec librarian-puppet install`
1. `vagrant up`
## Requirements
- [Ruby](http://www.ruby-lang.org/) and [Bundler](http://gembundler.com/) -- ideally with [rbenv](https:... |
Provisions a GOV.UK mirror, using standalone Puppet (`puppet apply`).
Relies on the [govuk_mirror-deployment](https://github.gds/gds/govuk_mirror-deployment) repository.
## Development workflow
1. `bundle install`
1. `bundle exec librarian-puppet install`
1. `vagrant up`
## Requirements
- [Ruby](http://www.ruby-l... | Add link to govuk_mirror-deployment repo | Add link to govuk_mirror-deployment repo
This repo depends on the private gov_mirror-deployment repository; adds
a note to the readme explaining this.
| Markdown | mit | alphagov/govuk_mirror-puppet,alphagov/govuk_mirror-puppet,alphagov/govuk_mirror-puppet | markdown | ## Code Before:
This repo is a fork of [puppet-skeleton](https://github.com/gds-operations/puppet-skeleton).
## Development workflow
1. `bundle install`
1. `bundle exec librarian-puppet install`
1. `vagrant up`
## Requirements
- [Ruby](http://www.ruby-lang.org/) and [Bundler](http://gembundler.com/) -- ideally wit... |
0399746b4eeefaf599079643f5710b4fb76a4733 | handlers/logout_test.go | handlers/logout_test.go | package handlers
import (
"net/http"
"net/http/httptest"
"testing"
)
func TestLogoutHandler(t *testing.T) {
setUp("/config/testing/handler_logout_url.yml")
handler := http.HandlerFunc(LogoutHandler)
tests := []struct {
name string
url string
wantcode int
}{
{"allowed", "http://myapp.example.c... | package handlers
import (
"net/http"
"net/http/httptest"
"testing"
)
func TestLogoutHandler(t *testing.T) {
setUp("/config/testing/handler_logout_url.yml")
handler := http.HandlerFunc(LogoutHandler)
tests := []struct {
name string
url string
wantcode int
}{
{"allowed", "http://myapp.example.c... | Validate redirect for logout tests | Validate redirect for logout tests
| Go | mit | bnfinet/lasso,bnfinet/lasso | go | ## Code Before:
package handlers
import (
"net/http"
"net/http/httptest"
"testing"
)
func TestLogoutHandler(t *testing.T) {
setUp("/config/testing/handler_logout_url.yml")
handler := http.HandlerFunc(LogoutHandler)
tests := []struct {
name string
url string
wantcode int
}{
{"allowed", "http:/... |
1be0bc9438ac3b17391282ed47e0187be47ad9af | features/step_definitions/renalware/peritonitis_episodes_steps.rb | features/step_definitions/renalware/peritonitis_episodes_steps.rb | Given(/^Patty is being treated for a peritonitis episode$/) do
record_peritonitis_episode_for(
patient: @patty,
user: @clyde,
diagnosed_on: "10-10-2016"
)
end
When(/^Clyde records a peritonitis episode for Patty$/) do
record_peritonitis_episode_for(
patient: @patty,
user: @clyde,
diagnose... | Given(/^Patty is being treated for a peritonitis episode$/) do
record_peritonitis_episode_for(
patient: @patty,
user: @clyde,
diagnosed_on: "10-10-2016"
)
record_organism_for(
infectable: @patty.peritonitis_episodes.last!,
organism_name: "Acineobactor"
)
record_medication_for(
treata... | Add missing organism and medication to episode | Add missing organism and medication to episode
- these are required when the episode is revised | Ruby | mit | airslie/renalware-core,airslie/renalware-core,airslie/renalware-core,airslie/renalware-core | ruby | ## Code Before:
Given(/^Patty is being treated for a peritonitis episode$/) do
record_peritonitis_episode_for(
patient: @patty,
user: @clyde,
diagnosed_on: "10-10-2016"
)
end
When(/^Clyde records a peritonitis episode for Patty$/) do
record_peritonitis_episode_for(
patient: @patty,
user: @cly... |
5cc343ee85412cade7cb501d047d6013300f348f | .travis.yml | .travis.yml | language: objective-c
script:
- xctool -project RoundButton.xcodeproj -scheme RoundButton -sdk iphonesimulator clean build test
- xctool -project RoundButton.xcodeproj -scheme RoundButton clean build test
| language: objective-c
script:
- xctool -project RoundButton.xcodeproj -scheme RoundButton -sdk iphonesimulator clean build test
| Remove second build from scripts | Remove second build from scripts
| YAML | mit | exsortis/RoundButton | yaml | ## Code Before:
language: objective-c
script:
- xctool -project RoundButton.xcodeproj -scheme RoundButton -sdk iphonesimulator clean build test
- xctool -project RoundButton.xcodeproj -scheme RoundButton clean build test
## Instruction:
Remove second build from scripts
## Code After:
language: objective-c
script:... |
75aec5dafd46d06283394dcba5ae4278ab59368c | resources/public/css/styles.css | resources/public/css/styles.css | * {
box-sizing: border-box;
}
body {
background: silver;
}
.container {
margin: 0 auto;
width: 140px;
}
h1 {
font-size: 28px;
font-family: monospace;
text-align: center;
}
.grid {
position: relative;
background: #030;
}
.grid .cell {
display: inline-block;
user-select: none;
-webkit-user-selec... | * {
box-sizing: border-box;
}
body {
color: #ddd;
background: black;
}
h1 {
font-size: 28px;
font-family: monospace;
text-align: center;
}
.container {
margin: 0 auto;
width: 282px;
}
.grid {
position: relative;
margin-bottom: 20px;
border: 1px solid white;
}
.grid .cell {
display: inline-block... | Apply some (additional) minimal styling | Apply some (additional) minimal styling
| CSS | epl-1.0 | suweller/utf8ify | css | ## Code Before:
* {
box-sizing: border-box;
}
body {
background: silver;
}
.container {
margin: 0 auto;
width: 140px;
}
h1 {
font-size: 28px;
font-family: monospace;
text-align: center;
}
.grid {
position: relative;
background: #030;
}
.grid .cell {
display: inline-block;
user-select: none;
-w... |
c8de25178c04750ad90f3cc9644caa651020eb17 | app/views/layouts/application.html.haml | app/views/layouts/application.html.haml | = render partial: 'layouts/shared'
- content_for :header_app_name do
=link_to app_title, home_path
= render "shared/loginout"
- content_for :content do
#wrapper
%main#content{role: 'main'}
= yield :editing_alert
= flash_messages
.grid-wrapper
.grid.grid-1-3.new-profile
.inn... | = render partial: 'layouts/shared'
- content_for :header_app_name do
=link_to app_title, home_path
= render "shared/loginout"
- content_for :content do
#wrapper
%main#content{role: 'main'}
= yield :editing_alert
= flash_messages
.grid-wrapper
.grid.grid-3-3
.inner-block
... | Move Create profile link and extend breadcrumbs full width | Move Create profile link and extend breadcrumbs full width
| Haml | mit | ministryofjustice/peoplefinder,ministryofjustice/peoplefinder,ministryofjustice/peoplefinder,ministryofjustice/peoplefinder,ministryofjustice/peoplefinder | haml | ## Code Before:
= render partial: 'layouts/shared'
- content_for :header_app_name do
=link_to app_title, home_path
= render "shared/loginout"
- content_for :content do
#wrapper
%main#content{role: 'main'}
= yield :editing_alert
= flash_messages
.grid-wrapper
.grid.grid-1-3.new-profil... |
a44ff80c408a4c216e311abb2c8d4eb3672d0746 | spec/unit/ice_nine/freezer/range/class_methods/deep_freeze_spec.rb | spec/unit/ice_nine/freezer/range/class_methods/deep_freeze_spec.rb |
require 'spec_helper'
require 'ice_nine'
describe IceNine::Freezer::Range, '.deep_freeze' do
subject { object.deep_freeze(value) }
let(:object) { described_class }
context 'with a Range' do
let(:value) { 'a'..'z' }
it 'returns the object' do
should be(value)
end
it 'freezes the object'... |
require 'spec_helper'
require 'ice_nine'
describe IceNine::Freezer::Range, '.deep_freeze' do
subject { object.deep_freeze(value) }
let(:object) { described_class }
let(:element_class) do
Class.new do
attr_reader :number, :range
protected :number, :range
def initialize(number, range = ni... | Add spec for circular references in IceNine::Freezer::Range.deep_freeze | Add spec for circular references in IceNine::Freezer::Range.deep_freeze
| Ruby | mit | soulcutter/ice_nine,dkubb/ice_nine,nepalez/ice_nine | ruby | ## Code Before:
require 'spec_helper'
require 'ice_nine'
describe IceNine::Freezer::Range, '.deep_freeze' do
subject { object.deep_freeze(value) }
let(:object) { described_class }
context 'with a Range' do
let(:value) { 'a'..'z' }
it 'returns the object' do
should be(value)
end
it 'fre... |
400c5dbdd759a3c3af12bff773f122218a9838d5 | vim/vimify.sh | vim/vimify.sh |
echo "Starting Alvaro's vim setup"
# Make sure git is installed
OS_T="$OSTYPE"
if [[ $OS_T == "linux-gnu" ]]; then
# Linux (Ubuntu)
sudo apt-get install vim -y
sudo apt-get install git -y
sudo apt-get install python-pip -y
elif [[ $OS_T == "darwin"* ]]; then
# MAC OS
brew install git
fi
# Create the nece... |
echo "Starting Alvaro's vim setup"
# Make sure git is installed
OS_T="$OSTYPE"
if [[ $OS_T == "linux-gnu" ]]; then
# Linux (Ubuntu)
sudo apt-get install vim -y
sudo apt-get install git -y
sudo apt-get install python-pip -y
elif [[ $OS_T == "darwin"* ]]; then
# MAC OS
brew install git
fi
# Create the nece... | Check if pip packages are already installed | Check if pip packages are already installed
| Shell | mit | alvaromorales/dotfiles | shell | ## Code Before:
echo "Starting Alvaro's vim setup"
# Make sure git is installed
OS_T="$OSTYPE"
if [[ $OS_T == "linux-gnu" ]]; then
# Linux (Ubuntu)
sudo apt-get install vim -y
sudo apt-get install git -y
sudo apt-get install python-pip -y
elif [[ $OS_T == "darwin"* ]]; then
# MAC OS
brew install git
fi
#... |
8568714bfa835a89ac0a96105b30a9265d8fcc12 | _includes/scripts.html | _includes/scripts.html | <script type="text/javascript" src="/assets/js/main.js"></script>
{% include disqus-scripts.html %}
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o... | <script type="text/javascript" src="/assets/js/main.js"></script>
{% include disqus-scripts.html %}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-23343106-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLa... | Update Google Analytics tracking with Global Site Tag | Update Google Analytics tracking with Global Site Tag | HTML | mit | dpdearing/dpdearing.github.io,dpdearing/dpdearing-homepage,dpdearing/dpdearing.github.io,dpdearing/dpdearing.github.io,dpdearing/dpdearing-homepage,dpdearing/dpdearing-homepage | html | ## Code Before:
<script type="text/javascript" src="/assets/js/main.js"></script>
{% include disqus-scripts.html %}
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getEle... |
55135725abc71fdac715f651e6a1863d9d54d2f4 | .travis.yml | .travis.yml | language: r
cache: packages
sudo: false
script: "Rscript checkmydois.R"
| language: r
cache: packages
sudo: false
env:
matrix:
- ORCID_ID="0000-0002-3520-2046"
script: Rscript checkmydois.R
| Set ORCID_ID env variable for Travis | Set ORCID_ID env variable for Travis
| YAML | mit | rossmounce/checkmydois | yaml | ## Code Before:
language: r
cache: packages
sudo: false
script: "Rscript checkmydois.R"
## Instruction:
Set ORCID_ID env variable for Travis
## Code After:
language: r
cache: packages
sudo: false
env:
matrix:
- ORCID_ID="0000-0002-3520-2046"
script: Rscript checkmydois.R
|
7321ed72469ad4b9eaf7b1feda370472c294fa97 | django_backend_test/noras_menu/forms.py | django_backend_test/noras_menu/forms.py | from django import forms
#Third Party apps imports
#Imports local apps
from .models import Menu, MenuItems
| from datetime import date
#Core Django Imports
from django import forms
from django.forms.models import inlineformset_factory
#Third Party apps imports
#Imports local apps
from .models import Menu, MenuItems, UserSelectedLunch, Subscribers
class MenuForm(forms.ModelForm):
day = forms.DateField(label='Menu date', in... | Add ModelForm of Menu, MenuItems and Subscriber | Add ModelForm of Menu, MenuItems and Subscriber
| Python | mit | semorale/backend-test,semorale/backend-test,semorale/backend-test | python | ## Code Before:
from django import forms
#Third Party apps imports
#Imports local apps
from .models import Menu, MenuItems
## Instruction:
Add ModelForm of Menu, MenuItems and Subscriber
## Code After:
from datetime import date
#Core Django Imports
from django import forms
from django.forms.models import inlineform... |
cb66d35cc521c8b6cd960f64a0c02bab73a24e8d | scripts/ci.sh | scripts/ci.sh | set -e
echo "Building project"
yarn build
echo "\n\n"
echo "Linting"
yarn lint
echo "\n\n"
echo "Installing React 15"
yarn add react@15 react-dom@15 react-test-renderer@15 --pure-lockfile
echo "\n\n"
yarn test:react-dom:prepare
echo "Running tests on React 15 - Babel ES2015"
yarn test:es2015
echo "\n\n"
echo "Run... | set -e
echo "Building project"
yarn build
echo "\n\n"
echo "Linting"
yarn lint
echo "\n\n"
echo "Installing React 15"
yarn add react@15 react-dom@15 react-test-renderer@15 --pure-lockfile
echo "\n\n"
yarn test:react-dom:prepare
# echo "Running tests on React 15 - Babel ES2015"
# yarn test:es2015
# echo "\n\n"
# e... | Disable react 15. lets see | Disable react 15. lets see
| Shell | mit | gaearon/react-hot-loader,gaearon/react-hot-loader | shell | ## Code Before:
set -e
echo "Building project"
yarn build
echo "\n\n"
echo "Linting"
yarn lint
echo "\n\n"
echo "Installing React 15"
yarn add react@15 react-dom@15 react-test-renderer@15 --pure-lockfile
echo "\n\n"
yarn test:react-dom:prepare
echo "Running tests on React 15 - Babel ES2015"
yarn test:es2015
echo "... |
21fc14a9fe9af3c6b5e2c4a4e3997a9e69b494f7 | engines/dfc_provider/app/controllers/dfc_provider/api/products_controller.rb | engines/dfc_provider/app/controllers/dfc_provider/api/products_controller.rb | module DfcProvider
module Api
class ProductsController < ::ActionController::Base
# To access 'base_url' helper
include Rails.application.routes.url_helpers
before_filter :check_authorization,
:check_user,
:check_enterprise
respond_to :json
... | module DfcProvider
module Api
class ProductsController < ::ActionController::Base
# To access 'base_url' helper
include Rails.application.routes.url_helpers
before_filter :check_authorization,
:check_user,
:check_enterprise
respond_to :json
... | Use a better products list for catalog | Use a better products list for catalog
| Ruby | agpl-3.0 | lin-d-hop/openfoodnetwork,openfoodfoundation/openfoodnetwork,openfoodfoundation/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,Matt-Yorkley/openfoodnetwork,mkllnk/openfoodnetwork,mkllnk/openfoodnetwork,lin-d-hop/openfoodnetwork,mkllnk/openfoodnetwork,Matt-Yorkley/openfoodnetwork,Matt-Yorkl... | ruby | ## Code Before:
module DfcProvider
module Api
class ProductsController < ::ActionController::Base
# To access 'base_url' helper
include Rails.application.routes.url_helpers
before_filter :check_authorization,
:check_user,
:check_enterprise
respond_... |
e7ea6bcf50cf4bf24cc3c09eab74e31b1ad097c6 | unit-tests/ci/install_zephir_parser.sh | unit-tests/ci/install_zephir_parser.sh | set -o pipefail
# trace ERR through 'time command' and other functions
set -o errtrace
# set -u : exit the script if you try to use an uninitialised variable
set -o nounset
# set -e : exit the script if any statement returns a non-true return value
set -o errexit
# Ensure that this is being run inside a CI containe... | set -o pipefail
# trace ERR through 'time command' and other functions
set -o errtrace
# set -u : exit the script if you try to use an uninitialised variable
set -o nounset
# set -e : exit the script if any statement returns a non-true return value
set -o errexit
# Ensure that this is being run inside a CI containe... | Allow install zephir-parser on scrutinizer | Allow install zephir-parser on scrutinizer
| Shell | mit | phalcon/zephir,sjinks/zephir,sjinks/zephir,dreamsxin/zephir,phalcon/zephir,zephir-lang/zephir,sergeyklay/zephir,phalcon/zephir,vpg/zephir,sergeyklay/zephir,zephir-lang/zephir,phalcon/zephir,phalcon/zephir,sergeyklay/zephir,sjinks/zephir,zephir-lang/zephir,phalcon/zephir,sjinks/zephir,vpg/zephir,dreamsxin/zephir,sjinks/... | shell | ## Code Before:
set -o pipefail
# trace ERR through 'time command' and other functions
set -o errtrace
# set -u : exit the script if you try to use an uninitialised variable
set -o nounset
# set -e : exit the script if any statement returns a non-true return value
set -o errexit
# Ensure that this is being run insi... |
9a6d284fc8e900410108e40ab0e8c83fd162b38b | gem_config.rb | gem_config.rb | OPTIONS = %w{ --bindir= --sbindir=
--libexecdir= --datadir=
--sysconfdir= --sharedstatedir=
--localstatedir= --libdir=
--includedir= --oldincludedir=
--infodir= --mandir=
--disable- --enable-
--... | OPTIONS = %w{ --bindir= --sbindir=
--libexecdir= --datadir=
--sysconfdir= --sharedstatedir=
--localstatedir= --libdir=
--includedir= --oldincludedir=
--infodir= --mandir=
--disable- --enable-
--... | Allow --disable-htmldoc to pass thru to ./configure | Allow --disable-htmldoc to pass thru to ./configure
| Ruby | mit | modulexcite/rmagick,mockdeep/rmagick,rmagick-temp/rmagick,modulexcite/rmagick,rmagick-temp/rmagick,btakita/rmagick,rmagick/rmagick,pecha7x/rmagick,rmagick/rmagick,jonmartindell/rmagick,chand3040/Rmagic,rmagick/rmagick,carsonreinke/rmagick,prognostikos/rmagick,tvon/rmagick,rmagick-temp/rmagick,btakita/rmagick,prognostik... | ruby | ## Code Before:
OPTIONS = %w{ --bindir= --sbindir=
--libexecdir= --datadir=
--sysconfdir= --sharedstatedir=
--localstatedir= --libdir=
--includedir= --oldincludedir=
--infodir= --mandir=
--disable- --enable-
... |
4fb39abc5afef5b0ca87e5c3b40e3dc9c9c0b2ef | tests/functions_tests/test_accuracy.py | tests/functions_tests/test_accuracy.py | import unittest
import numpy
import six
import chainer
from chainer import cuda
from chainer import gradient_check
from chainer.testing import attr
if cuda.available:
cuda.init()
class TestAccuracy(unittest.TestCase):
def setUp(self):
self.x = numpy.random.uniform(-1, 1, (10, 3)).astype(numpy.flo... | import unittest
import numpy
import six
import chainer
from chainer import cuda
from chainer import gradient_check
from chainer.testing import attr
if cuda.available:
cuda.init()
class TestAccuracy(unittest.TestCase):
def setUp(self):
self.x = numpy.random.uniform(-1, 1, (10, 3)).astype(numpy.flo... | Add test fot shape of result of accuracy function | Add test fot shape of result of accuracy function
| Python | mit | elviswf/chainer,1986ks/chainer,cupy/cupy,ktnyt/chainer,hvy/chainer,tigerneil/chainer,rezoo/chainer,sou81821/chainer,tereka114/chainer,hvy/chainer,wavelets/chainer,jfsantos/chainer,chainer/chainer,ikasumi/chainer,okuta/chainer,aonotas/chainer,ysekky/chainer,kashif/chainer,ktnyt/chainer,niboshi/chainer,pfnet/chainer,ytoy... | python | ## Code Before:
import unittest
import numpy
import six
import chainer
from chainer import cuda
from chainer import gradient_check
from chainer.testing import attr
if cuda.available:
cuda.init()
class TestAccuracy(unittest.TestCase):
def setUp(self):
self.x = numpy.random.uniform(-1, 1, (10, 3)).... |
e8241761e644f04b24d9b8811210c1307abbad14 | README.md | README.md | cli_tools
=========
There are some simple tasks I do very often but for which there is no command
line tool yet available so I just create one and add it here.
drae
----
Searches the term specified in the first argument in the _Diccionario de la Real
Academia Española_. As an Spanish native speaker this comes in ... | cli_tools
=========
There are some simple tasks I do very often but for which there is no command
line tool yet available so I just create one and add it here.
drae
----
Searches the term specified in the first argument in the _Diccionario de la Real
Academia Española_. As an Spanish native speaker this comes in ... | Add dependencies and usage example to `drae` | Add dependencies and usage example to `drae`
| Markdown | mit | fredym/cli_tools | markdown | ## Code Before:
cli_tools
=========
There are some simple tasks I do very often but for which there is no command
line tool yet available so I just create one and add it here.
drae
----
Searches the term specified in the first argument in the _Diccionario de la Real
Academia Española_. As an Spanish native speake... |
be1cde6efff58ad6fd26639fc4431b694ca12363 | script/build/test_startup.sh | script/build/test_startup.sh | RAILS_ENV=$1
APP_PORT=$2
WS_PORT=$3
export ZAMMAD_SETTING_TTL=15
rails r "Setting.set('developer_mode', true)"
rails r "Setting.set('websocket_port', '$WS_PORT')"
pumactl start --pidfile tmp/pids/puma.pid -d -p $APP_PORT -e $RAILS_ENV
script/websocket-server.rb start -d -p $WS_PORT
script/scheduler.rb start
| RAILS_ENV=$1
APP_PORT=$2
WS_PORT=$3
export ZAMMAD_SETTING_TTL=15
rails r "Setting.set('developer_mode', true)"
rails r "Setting.set('websocket_port', '$WS_PORT')"
rails r "Setting.set('fqdn', '$IP:$BROWSER_PORT')"
pumactl start --pidfile tmp/pids/puma.pid -d -p $APP_PORT -e $RAILS_ENV
script/websocket-server.rb star... | Set fqdn for each env. | Set fqdn for each env.
| Shell | agpl-3.0 | monotek/zammad,zammad/zammad,monotek/zammad,zammad/zammad,monotek/zammad,monotek/zammad,zammad/zammad,zammad/zammad,monotek/zammad,zammad/zammad,monotek/zammad,zammad/zammad | shell | ## Code Before:
RAILS_ENV=$1
APP_PORT=$2
WS_PORT=$3
export ZAMMAD_SETTING_TTL=15
rails r "Setting.set('developer_mode', true)"
rails r "Setting.set('websocket_port', '$WS_PORT')"
pumactl start --pidfile tmp/pids/puma.pid -d -p $APP_PORT -e $RAILS_ENV
script/websocket-server.rb start -d -p $WS_PORT
script/scheduler.r... |
01a97e8399075946941e998bc3899e4a31ce81ab | kurento_ci_container_entrypoint.sh | kurento_ci_container_entrypoint.sh | echo "##################### EXECUTE: kurento_ci_container_entrypoint #####################"
[ -n "$1" ] || { echo "No script to run specified. Need one to run after preparing the environment"; exit 1; }
BUILD_COMMAND=$@
PATH=$PATH:$(realpath $(dirname "$0"))
echo "Preparing environment..."
# Configure SSH keys
if [... | echo "##################### EXECUTE: kurento_ci_container_entrypoint #####################"
[ -n "$1" ] || { echo "No script to run specified. Need one to run after preparing the environment"; exit 1; }
BUILD_COMMAND=$@
PATH=$PATH:$(realpath $(dirname "$0"))
echo "Preparing environment..."
# Configure SSH keys
if [... | Add KEY_ID for backwards compatibility | Add KEY_ID for backwards compatibility
Change-Id: Ie01636774bd1d7b975f309ffbcc30678efd80a45
| Shell | apache-2.0 | Kurento/adm-scripts,Kurento/adm-scripts | shell | ## Code Before:
echo "##################### EXECUTE: kurento_ci_container_entrypoint #####################"
[ -n "$1" ] || { echo "No script to run specified. Need one to run after preparing the environment"; exit 1; }
BUILD_COMMAND=$@
PATH=$PATH:$(realpath $(dirname "$0"))
echo "Preparing environment..."
# Configu... |
64596672e3494028aafd5aa9fc6e22b1fd9180c1 | buildScripts/srcServer.js | buildScripts/srcServer.js | import express from 'express';
import webpack from 'webpack';
import path from 'path';
import config from '../webpack.config.dev';
import open from 'open';
/* eslint-disable no-console */
const port = 3000;
const app = express();
const compiler = webpack(config);
app.use(require('webpack-dev-middleware')(compiler, {... | import express from 'express';
import webpack from 'webpack';
import path from 'path';
import config from '../webpack.config.dev';
import open from 'open';
/* eslint-disable no-console */
const port = 3000;
const app = express();
const compiler = webpack(config);
app.use(require('webpack-dev-middleware')(compiler, {... | Update example data in "real" API | Update example data in "real" API
| JavaScript | mit | galakhov/js-dev-env,galakhov/js-dev-env | javascript | ## Code Before:
import express from 'express';
import webpack from 'webpack';
import path from 'path';
import config from '../webpack.config.dev';
import open from 'open';
/* eslint-disable no-console */
const port = 3000;
const app = express();
const compiler = webpack(config);
app.use(require('webpack-dev-middlewa... |
a920fdb615171394f24a26d9be23eeda5cf421b1 | app/helpers/blog/pagination_helper.rb | app/helpers/blog/pagination_helper.rb | module Blog::PaginationHelper
WILL_PAGINATE_BASE = defined?(WillPaginate::ViewHelpers) ? WillPaginate::ViewHelpers::LinkRenderer : WillPaginate::LinkRenderer
class LinkRenderer < WILL_PAGINATE_BASE
PAGE_PARAMETER = /\/page\/\d+$/
def pagination
items = @options[:page_links] ? windowed_page_num... | module Blog::PaginationHelper
WILL_PAGINATE_BASE = defined?(WillPaginate::ViewHelpers) ? WillPaginate::ViewHelpers::LinkRenderer : WillPaginate::LinkRenderer
class LinkRenderer < WILL_PAGINATE_BASE
PAGE_PARAMETER = /\/page\/\d+$/
def pagination
items = @options[:page_links] ? windowed_page_num... | Fix pagination paths in Rails 4.2 | Fix pagination paths in Rails 4.2
| Ruby | mit | WheelhouseCMS/wheelhouse-blog,WheelhouseCMS/wheelhouse-blog | ruby | ## Code Before:
module Blog::PaginationHelper
WILL_PAGINATE_BASE = defined?(WillPaginate::ViewHelpers) ? WillPaginate::ViewHelpers::LinkRenderer : WillPaginate::LinkRenderer
class LinkRenderer < WILL_PAGINATE_BASE
PAGE_PARAMETER = /\/page\/\d+$/
def pagination
items = @options[:page_links] ? w... |
e5e348fb4b3dee12b9200806114f30046f6192ea | index.js | index.js | var Obstruct = require('obstruct');
var minivents = require('minivents');
var createGetter = require('./lib/createGet');
var createSetter = require('./lib/createSet');
var noop = function () {};
var Model = Obstruct.extend({
constructor: function (data) {
minivents(this);
var _attr = Object.create({}, this.d... | var Obstruct = require('obstruct');
var minivents = require('minivents');
var createGetter = require('./lib/createGet');
var createSetter = require('./lib/createSet');
var noop = function () {};
var Model = Obstruct.extend({
constructor: function (data) {
minivents(this);
data = data || {};
var _attr = {... | Remove default functionality, for now | Remove default functionality, for now
| JavaScript | mit | allouis/model | javascript | ## Code Before:
var Obstruct = require('obstruct');
var minivents = require('minivents');
var createGetter = require('./lib/createGet');
var createSetter = require('./lib/createSet');
var noop = function () {};
var Model = Obstruct.extend({
constructor: function (data) {
minivents(this);
var _attr = Object.c... |
e893a860f4a8ad9682f400507948ee20fce1c328 | healthcheck/contrib/django/status_endpoint/views.py | healthcheck/contrib/django/status_endpoint/views.py | import json
from django.conf import settings
from django.views.decorators.http import require_http_methods
from django.http import HttpResponse, HttpResponseServerError
from healthcheck.healthcheck import (
DjangoDBsHealthCheck, FilesDontExistHealthCheck, HealthChecker)
@require_http_methods(['GET'])
def status... | import json
from django.conf import settings
from django.views.decorators.http import require_http_methods
from django.http import HttpResponse
from healthcheck.healthcheck import (
DjangoDBsHealthCheck, FilesDontExistHealthCheck, HealthChecker)
class JsonResponse(HttpResponse):
def __init__(self, data, **k... | Fix content_type for JSON responses | Fix content_type for JSON responses
| Python | mit | yola/healthcheck | python | ## Code Before:
import json
from django.conf import settings
from django.views.decorators.http import require_http_methods
from django.http import HttpResponse, HttpResponseServerError
from healthcheck.healthcheck import (
DjangoDBsHealthCheck, FilesDontExistHealthCheck, HealthChecker)
@require_http_methods(['G... |
91482b66709598c3f9f3bb7a216ba962c550b8f2 | data/users.yml | data/users.yml | - url: http://livingsocial.com/
image: livingsocial.png
- url: http://squareup.com/
image: square.png
- url: http://tilde.io/
image: tilde.png
- url: http://www.zendesk.com/
image: zendesk.png
- url: http://www.groupon.com
image: groupon.png
- url: https://www.yapp.us/
image: yapp.png
- url: http://www.mhel... | - url: http://livingsocial.com/
image: livingsocial.png
- url: http://squareup.com/
image: square.png
- url: http://tilde.io/
image: tilde.png
- url: http://www.zendesk.com/
image: zendesk.png
- url: http://www.groupon.com
image: groupon.png
- url: https://www.yapp.us/
image: yapp.png
- url: http://www.mhel... | Add kohactive logo to about page | Add kohactive logo to about page
| YAML | mit | mrjavascript/website,elwayman02/website,cyberkoi/website,quangv/website,MinxianLi/ember,wifelette/website,EricSchank/website,elwayman02/website,duggiefresh/website,davidpett/website,mrjavascript/website,datajohnny/website,kpfefferle/website,MinxianLi/ember,cyberkoi/website,knownasilya/website,workmanw/ember-website,wor... | yaml | ## Code Before:
- url: http://livingsocial.com/
image: livingsocial.png
- url: http://squareup.com/
image: square.png
- url: http://tilde.io/
image: tilde.png
- url: http://www.zendesk.com/
image: zendesk.png
- url: http://www.groupon.com
image: groupon.png
- url: https://www.yapp.us/
image: yapp.png
- url:... |
2799824f80817abe0a335bf72a4fbbf87096c999 | app/views/kalibro_configurations/_metric_configurations.html.erb | app/views/kalibro_configurations/_metric_configurations.html.erb | <tr>
<td><%= metric_configuration.metric.name %></td>
<td><%= metric_configuration.metric.code %></td>
<% unless metric_configuration.metric.is_a? KalibroClient::Entities::Miscellaneous::HotspotMetric %>
<td><%= metric_configuration.weight %></td>
<% end %>
<td>
<%= link_to_show_page(metric_configurat... | <tr>
<td><%= metric_configuration.metric.name %></td>
<td><%= metric_configuration.metric.code %></td>
<% unless metric_configuration.metric.is_a? KalibroClient::Entities::Miscellaneous::HotspotMetric %>
<td><%= metric_configuration.weight %></td>
<% end %>
<td>
<%= link_to_show_page(metric_configurat... | Remove edit button from metric configuration list | Remove edit button from metric configuration list
There are no attributes to be edited on a hotspot metric configuration
Signed off by: Diego Araújo <diegoamc90@gmail.com>
| HTML+ERB | agpl-3.0 | mezuro/prezento,mezuro/prezento,mezuro/prezento | html+erb | ## Code Before:
<tr>
<td><%= metric_configuration.metric.name %></td>
<td><%= metric_configuration.metric.code %></td>
<% unless metric_configuration.metric.is_a? KalibroClient::Entities::Miscellaneous::HotspotMetric %>
<td><%= metric_configuration.weight %></td>
<% end %>
<td>
<%= link_to_show_page(m... |
0080f81ee471972876be9fe847f60da2c6f37fc0 | app/index.js | app/index.js | 'use strict';
var express = require('express'),
index = require('./routes/index.js');
var app = express();
app.get('/', index.get);
var server = app.listen(3000, function () {
var host = server.address().address;
var port = server.address().port;
console.log('Listening at http://%s:%s', host, port);
}); | 'use strict';
var express = require('express'),
index = require('./routes/index.js');
var app = express();
app.get('/', index.get);
var server = app.listen(process.env.PORT || 3000, function () {
var host = server.address().address;
var port = server.address().port;
console.log('Listening at http://%s:%s', ... | Fix port to be compatible with heroku | Fix port to be compatible with heroku
| JavaScript | mit | Zeikko/beating-forehead-vein-backend | javascript | ## Code Before:
'use strict';
var express = require('express'),
index = require('./routes/index.js');
var app = express();
app.get('/', index.get);
var server = app.listen(3000, function () {
var host = server.address().address;
var port = server.address().port;
console.log('Listening at http://%s:%s', host... |
1c5abcd6bb361bce7ef2d0a279461247fd3af292 | spec/tasks/import_contacts/contact_builder_spec.rb | spec/tasks/import_contacts/contact_builder_spec.rb | require 'spec_helper'
describe ImportContacts::ContactBuilder do
describe '.build' do
let(:contact_record) { build :contact_record }
let(:titles) { "title1\ntitle2" }
let(:input_attributes) {
{
'title' => titles
}
}
it 'builds contact record: title1' do
contacts = d... | require 'spec_helper'
describe ImportContacts::ContactBuilder do
describe '.build' do
let(:contact_record) { build :contact_record }
let(:titles) { "title1\ntitle2" }
let!(:department) { create :department, title: 'HMRC', id: 1 }
let(:input_attributes) {
{
'title' => titles
}
... | Fix specs that were dependent on Department yaml file content | Fix specs that were dependent on Department yaml file content
These now require record creation
| Ruby | mit | alphagov/contacts-admin,alphagov/contacts-admin,alphagov/contacts-admin | ruby | ## Code Before:
require 'spec_helper'
describe ImportContacts::ContactBuilder do
describe '.build' do
let(:contact_record) { build :contact_record }
let(:titles) { "title1\ntitle2" }
let(:input_attributes) {
{
'title' => titles
}
}
it 'builds contact record: title1' do
... |
559ec4e4417a190341cdaa1a50203780f393f489 | lisp/init-misc.el | lisp/init-misc.el | ;;----------------------------------------------------------------------------
;; Misc config - yet to be placed in separate files
;;----------------------------------------------------------------------------
(add-auto-mode 'tcl-mode "Portfile\\'")
(fset 'yes-or-no-p 'y-or-n-p)
(add-hook 'prog-mode-hook 'goto-address... | ;;----------------------------------------------------------------------------
;; Misc config - yet to be placed in separate files
;;----------------------------------------------------------------------------
(add-auto-mode 'tcl-mode "Portfile\\'")
(fset 'yes-or-no-p 'y-or-n-p)
(add-hook 'prog-mode-hook 'goto-address... | Support quitting with C-c C-k in re-builder | Support quitting with C-c C-k in re-builder
| Emacs Lisp | bsd-2-clause | blueseason/emacs.d,emuio/emacs.d,kongfy/emacs.d,sgarciac/emacs.d,qianwan/emacs.d,arthurl/emacs.d,krzysz00/emacs.d,dcorking/emacs.d,cjqw/emacs.d,braveoyster/emacs.d,blueabysm/emacs.d,mmqmzk/emacs.d,purcell/emacs.d,me020523/emacs.d,kindoblue/emacs.d,svenyurgensson/emacs.d,wegatron/emacs.d,benkha/emacs.d,roxolan/emacs.d,l... | emacs-lisp | ## Code Before:
;;----------------------------------------------------------------------------
;; Misc config - yet to be placed in separate files
;;----------------------------------------------------------------------------
(add-auto-mode 'tcl-mode "Portfile\\'")
(fset 'yes-or-no-p 'y-or-n-p)
(add-hook 'prog-mode-ho... |
58cd9b70fb87e0dc7553033a024d60328522e1ed | web-ng/src/app/components/map/map.component.html | web-ng/src/app/components/map/map.component.html | <!--
Copyright 2019 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
d... | <!--
Copyright 2019 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
d... | Remove latitude and longitude (center point) of agm-map. | Remove latitude and longitude (center point) of agm-map.
| HTML | apache-2.0 | google/ground-platform,google/ground-platform,google/ground-platform,google/ground-platform | html | ## Code Before:
<!--
Copyright 2019 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... |
54f55d0c2458bf7c7141d1440eee79d6592137db | src/apps/companies/controllers/investments.js | src/apps/companies/controllers/investments.js | const { getCompanyInvestmentProjects } = require('../../investment-projects/repos')
const { transformInvestmentProjectToListItem } = require('../../investment-projects/transformers')
const { transformApiResponseToCollection } = require('../../transformers')
async function renderInvestments (req, res, next) {
const t... | const { getCompanyInvestmentProjects } = require('../../investment-projects/repos')
const { transformInvestmentProjectToListItem } = require('../../investment-projects/transformers')
const { transformApiResponseToCollection } = require('../../transformers')
async function renderInvestments (req, res, next) {
const t... | Hide action buttons if the company is archived | Hide action buttons if the company is archived
This prevents bad data being added when a company
has been archived
| JavaScript | mit | uktrade/data-hub-fe-beta2,uktrade/data-hub-fe-beta2,uktrade/data-hub-frontend,uktrade/data-hub-frontend,uktrade/data-hub-frontend | javascript | ## Code Before:
const { getCompanyInvestmentProjects } = require('../../investment-projects/repos')
const { transformInvestmentProjectToListItem } = require('../../investment-projects/transformers')
const { transformApiResponseToCollection } = require('../../transformers')
async function renderInvestments (req, res, n... |
06eb768721f0deb31d90acc9b5f70bd508dc0ab3 | spring-session-jdbc/src/main/resources/org/springframework/session/jdbc/schema-postgresql.sql | spring-session-jdbc/src/main/resources/org/springframework/session/jdbc/schema-postgresql.sql | CREATE TABLE SPRING_SESSION (
PRIMARY_ID CHAR(36) NOT NULL,
SESSION_ID CHAR(36) NOT NULL,
CREATION_TIME BIGINT NOT NULL,
LAST_ACCESS_TIME BIGINT NOT NULL,
MAX_INACTIVE_INTERVAL INT NOT NULL,
EXPIRY_TIME BIGINT NOT NULL,
PRINCIPAL_NAME VARCHAR(100),
CONSTRAINT SPRING_SESSION_PK PRIMARY KEY (PRIMARY_ID)
);
CREAT... | CREATE TABLE SPRING_SESSION (
PRIMARY_ID CHAR(36) NOT NULL,
SESSION_ID CHAR(36) NOT NULL,
CREATION_TIME BIGINT NOT NULL,
LAST_ACCESS_TIME BIGINT NOT NULL,
MAX_INACTIVE_INTERVAL INT NOT NULL,
EXPIRY_TIME BIGINT NOT NULL,
PRINCIPAL_NAME VARCHAR(100),
CONSTRAINT SPRING_SESSION_PK PRIMARY KEY (PRIMARY_ID)
);
CREAT... | Remove redundant index in JDBC schema scripts | Remove redundant index in JDBC schema scripts
See gh-1014
| SQL | apache-2.0 | vpavic/spring-session,vpavic/spring-session,vpavic/spring-session | sql | ## Code Before:
CREATE TABLE SPRING_SESSION (
PRIMARY_ID CHAR(36) NOT NULL,
SESSION_ID CHAR(36) NOT NULL,
CREATION_TIME BIGINT NOT NULL,
LAST_ACCESS_TIME BIGINT NOT NULL,
MAX_INACTIVE_INTERVAL INT NOT NULL,
EXPIRY_TIME BIGINT NOT NULL,
PRINCIPAL_NAME VARCHAR(100),
CONSTRAINT SPRING_SESSION_PK PRIMARY KEY (PRIMA... |
743a89c5c27c3c17b87af5df8c381d95b00f2f42 | pg_query.c | pg_query.c |
const char* progname = "pg_query";
void pg_query_init(void)
{
MemoryContextInit();
}
|
const char* progname = "pg_query";
void pg_query_init(void)
{
MemoryContextInit();
SetDatabaseEncoding(PG_UTF8);
}
| Set database encoding to UTF8. | Set database encoding to UTF8.
Fixes error when parsing this statement:
SELECT U&'\0441\043B\043E\043D'
The error is:
Unicode escape values cannot be used for code point values above
007F when the server encoding is not UTF8.
Perhapes there could be an API to set the encoding used by the
parser. But I think it mak... | C | bsd-3-clause | lfittl/libpg_query,ranxian/peloton-frontend,lfittl/libpg_query,lfittl/libpg_query,ranxian/peloton-frontend,ranxian/peloton-frontend,ranxian/peloton-frontend,ranxian/peloton-frontend | c | ## Code Before:
const char* progname = "pg_query";
void pg_query_init(void)
{
MemoryContextInit();
}
## Instruction:
Set database encoding to UTF8.
Fixes error when parsing this statement:
SELECT U&'\0441\043B\043E\043D'
The error is:
Unicode escape values cannot be used for code point values above
007F when th... |
1cffb363b4456ffc9064479c02c72b96b2deba33 | covervid.js | covervid.js | jQuery.fn.extend({
coverVid: function(width, height) {
var $this = this;
$(window).on('resize load', function(){
// Get parent element height and width
var parentHeight = $this.parent().height();
var parentWidth = $this.parent().width();
// Get native video width and height
v... | jQuery.fn.extend({
coverVid: function(width, height) {
$(document).ready(sizeVideo);
$(window).resize(sizeVideo);
var $this = this;
function sizeVideo() {
// Get parent element height and width
var parentHeight = $this.parent().height();
var parentWidth = $this.parent().width... | Clean up spacing + use document ready | Clean up spacing + use document ready
| JavaScript | mit | zonayedpca/covervid,tianskyluj/covervid,A11oW/ngCovervid,jfeigel/ngCovervid,gdseller/covervid,space150/covervid,AlptugYaman/covervid,AlptugYaman/covervid,gdseller/covervid,tatygrassini/covervid,kitestudio/covervid,PabloValor/covervid,stefanerickson/covervid,stefanerickson/covervid,kitestudio/covervid,PabloValor/covervi... | javascript | ## Code Before:
jQuery.fn.extend({
coverVid: function(width, height) {
var $this = this;
$(window).on('resize load', function(){
// Get parent element height and width
var parentHeight = $this.parent().height();
var parentWidth = $this.parent().width();
// Get native video width an... |
6666b5a2f0dc05caa6481c2049c69749bb67f8ad | desktop/assets/editorial_features.coffee | desktop/assets/editorial_features.coffee | require('backbone').$ = $
$ ->
if location.pathname is '/2016-year-in-art'
require('../apps/editorial_features/components/eoy/client.coffee').init
else if location.pathname.includes('/venice-biennale')
require('../apps/editorial_features/components/venice_2017/client.coffee').init() | require('backbone').$ = $
$ ->
if location.pathname is '/2016-year-in-art'
require('../apps/editorial_features/components/eoy/client.coffee').init
else if location.pathname.indexOf('/venice-biennale') > -1
require('../apps/editorial_features/components/venice_2017/client.coffee').init() | Support more browsers with indexOf | Support more browsers with indexOf
| CoffeeScript | mit | yuki24/force,mzikherman/force,artsy/force,artsy/force-public,xtina-starr/force,eessex/force,kanaabe/force,erikdstock/force,yuki24/force,damassi/force,artsy/force,izakp/force,anandaroop/force,oxaudo/force,kanaabe/force,izakp/force,artsy/force-public,damassi/force,oxaudo/force,anandaroop/force,yuki24/force,erikdstock/for... | coffeescript | ## Code Before:
require('backbone').$ = $
$ ->
if location.pathname is '/2016-year-in-art'
require('../apps/editorial_features/components/eoy/client.coffee').init
else if location.pathname.includes('/venice-biennale')
require('../apps/editorial_features/components/venice_2017/client.coffee').init()
## Instr... |
737528769c2a1ca2b5faaf2d53854d8a98ee6903 | tox.ini | tox.ini | [tox]
envlist = py27,py33
minversion=1.6
whitelist_externals=/usr/bin/make
[pep8]
# ignore =
max-line-length = 80
[testenv]
setenv =
TIMEZONE=UTC
TZ=UTC
commands =
{envpython} setup.py build_ext --inplace
nosetests
deps = -rrequirements.txt
| [tox]
envlist = py27,py33
minversion=1.6
whitelist_externals=/usr/bin/make
[pep8]
# ignore =
max-line-length = 80
[testenv]
setenv =
TIMEZONE=UTC
TZ=UTC
commands =
{envpython} setup.py build_ext --inplace
{envpython} setup.py develop
nosetests
deps = -rrequirements.txt
| Add setup.py develop to have all static files in place | Add setup.py develop to have all static files in place
| INI | bsd-3-clause | cigroup-ol/metaopt,cigroup-ol/metaopt,cigroup-ol/metaopt | ini | ## Code Before:
[tox]
envlist = py27,py33
minversion=1.6
whitelist_externals=/usr/bin/make
[pep8]
# ignore =
max-line-length = 80
[testenv]
setenv =
TIMEZONE=UTC
TZ=UTC
commands =
{envpython} setup.py build_ext --inplace
nosetests
deps = -rrequirements.txt
## Instruction:
Add setup.py develop to have a... |
27d17a5365187ea1921972ca421cf32903c43ba0 | buildSrc/build.gradle.kts | buildSrc/build.gradle.kts | plugins {
`kotlin-dsl`
}
repositories {
mavenLocal()
mavenCentral()
gradlePluginPortal()
jcenter()
}
dependencies {
implementation("net.minecrell.licenser:net.minecrell.licenser.gradle.plugin:0.4.1")
implementation(group = "org.spongepowered", name = "SpongeGradle", version = "0.11.0-SNAPS... | plugins {
`kotlin-dsl`
}
repositories {
mavenLocal()
mavenCentral()
gradlePluginPortal()
maven("https://repo.spongepowered.org/maven")
jcenter()
}
dependencies {
implementation("net.minecrell.licenser:net.minecrell.licenser.gradle.plugin:0.4.1")
implementation(group = "org.spongepowere... | Update buildSrc script since SpongeGradle 0.11 is now available. | Update buildSrc script since SpongeGradle 0.11 is now available.
Signed-off-by: Gabriel Harris-Rouquette <f9869a2c93dad38a06e8fb39147155331a1102ab@me.com>
| Kotlin | mit | SpongePowered/SpongeAPI,SpongePowered/SpongeAPI,SpongePowered/SpongeAPI | kotlin | ## Code Before:
plugins {
`kotlin-dsl`
}
repositories {
mavenLocal()
mavenCentral()
gradlePluginPortal()
jcenter()
}
dependencies {
implementation("net.minecrell.licenser:net.minecrell.licenser.gradle.plugin:0.4.1")
implementation(group = "org.spongepowered", name = "SpongeGradle", version... |
2a9a785e0ebd496ee1fa0d5c8651a13de94eac44 | .travis.yml | .travis.yml | sudo: false
language: java
jdk:
- openjdk6
- openjdk7
- oraclejdk7
- oraclejdk8
before_cache:
# The `ivydata-*.properties` & root level `*.{properties,xml}` files'
# effect on resolution time is in the noise, but they are
# re-timestamped in internal comments and fields on each run and this
# leads t... | sudo: false
language: java
jdk:
- openjdk7
- oraclejdk7
- oraclejdk8
before_cache:
# The `ivydata-*.properties` & root level `*.{properties,xml}` files'
# effect on resolution time is in the noise, but they are
# re-timestamped in internal comments and fields on each run and this
# leads to travis-ci c... | Kill java 6 support - not supported by javapoet. | Kill java 6 support - not supported by javapoet.
| YAML | apache-2.0 | perkuno/forward,perkuno/forward,perkuno/forward | yaml | ## Code Before:
sudo: false
language: java
jdk:
- openjdk6
- openjdk7
- oraclejdk7
- oraclejdk8
before_cache:
# The `ivydata-*.properties` & root level `*.{properties,xml}` files'
# effect on resolution time is in the noise, but they are
# re-timestamped in internal comments and fields on each run and ... |
bf27b2b9d609ab45e47c53be447293f277f41e0b | compiler_source/6_actions_perl/template-runtime-code-for-action-put-into-phrase.txt | compiler_source/6_actions_perl/template-runtime-code-for-action-put-into-phrase.txt | template-runtime-code-for-every-action-begin
runtime-code-check-operand-initialize
runtime-code-check-operand-begin-is-phrase-name runtime-code-for-operand-number-one runtime-code-check-operand-end
if ( $global_yes_or_no_operand_error == $global_no ) { <new_line>
$global_concatenated_all_operands = runtime-code-fo... | template-runtime-code-standard-action-begin
$global_concatenated_all_operands = runtime-code-for-concatenated-all-operands ; <new_line>
$global_pointer_to_first_space = index( $global_concatenated_all_operands , ' ' ) ; <new_line>
code-get-or-put-phrase-definition-begin runtime-code-for-operand-number-one code-get-o... | Use higher-level code templates (to reduce line count, and avoid redundant code) | Use higher-level code templates (to reduce line count, and avoid redundant code)
| Text | artistic-2.0 | cpsolver/Dashrep-language,cpsolver/Dashrep-language,cpsolver/Dashrep-language | text | ## Code Before:
template-runtime-code-for-every-action-begin
runtime-code-check-operand-initialize
runtime-code-check-operand-begin-is-phrase-name runtime-code-for-operand-number-one runtime-code-check-operand-end
if ( $global_yes_or_no_operand_error == $global_no ) { <new_line>
$global_concatenated_all_operands =... |
67f57861b05b9097e8f5f178ee5980c9a5501b3d | index.html | index.html | ---
bg: "kdm_logo.png"
hover_text: "That's no moon"
layout: default
tab_text: "Krewe Du Moon"
title: "Krewe Du Moon"
summary: "Events"
---
{% assign events = site.posts | reverse %}
{% for post in events %}
{% if post.date > site.time and post.categories contains "event" %}
<article class="index-page">
<h2... | ---
bg: "kdm_logo.png"
hover_text: "That's no moon. That's Sailor Moon!"
layout: default
tab_text: "Krewe Du Moon"
title: "Krewe Du Moon"
summary: "Events"
---
{% assign events = site.posts | reverse %}
{% for post in events %}
{% if post.date > site.time and post.categories contains "event" %}
<article class="i... | Update hover text on main page | Update hover text on main page
| HTML | mit | krewedumoon/krewedumoon,krewedumoon/krewedumoon | html | ## Code Before:
---
bg: "kdm_logo.png"
hover_text: "That's no moon"
layout: default
tab_text: "Krewe Du Moon"
title: "Krewe Du Moon"
summary: "Events"
---
{% assign events = site.posts | reverse %}
{% for post in events %}
{% if post.date > site.time and post.categories contains "event" %}
<article class="index-... |
657b65a6418ed3deb6d1cfa7982773475e4be71c | README.md | README.md |
A gem to create recursive open structs.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'recursive_struct'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install recursive_struct
## Usage
Passing a hash into the initializer will create an open struct that has ... |
A gem to create recursive open structs.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'recursive_struct'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install recursive_struct
## Usage
Passing a hash into the initializer will create an open struct that has ... | Add more usage info to readme | Add more usage info to readme | Markdown | mit | pboksz/recursive_struct | markdown | ## Code Before:
A gem to create recursive open structs.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'recursive_struct'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install recursive_struct
## Usage
Passing a hash into the initializer will create an open ... |
1e091c197ec4a8940ef2babd7f72902897000e0f | tests/docker-conf/phpfpm/initpgsql.php | tests/docker-conf/phpfpm/initpgsql.php | <?php
echo "Create the schema lizmap into the database lizmap\n";
$tryAgain = true;
while($tryAgain) {
$cnx = @pg_connect("host='pgsql' port='5432' dbname='lizmap' user='lizmap' password='lizmap1234!' ");
if (!$cnx) {
echo " postgresql is not ready yet\n";
sleep(1);
continue;
}
... | <?php
echo "Create the schema lizmap into the database lizmap\n";
$tryAgain = true;
while($tryAgain) {
$cnx = @pg_connect("host='pgsql' port='5432' dbname='lizmap' user='lizmap' password='lizmap1234!' ");
if (!$cnx) {
echo " postgresql is not ready yet\n";
sleep(1);
continue;
}
... | Create postgis extension in public schema | [Tests] Create postgis extension in public schema
| PHP | mpl-2.0 | nboisteault/lizmap-web-client,laurentj/lizmap-web-client,rldhont/lizmap-web-client,laurentj/lizmap-web-client,nboisteault/lizmap-web-client,rldhont/lizmap-web-client,nboisteault/lizmap-web-client,rldhont/lizmap-web-client,3liz/lizmap-web-client,nboisteault/lizmap-web-client,3liz/lizmap-web-client,laurentj/lizmap-web-cl... | php | ## Code Before:
<?php
echo "Create the schema lizmap into the database lizmap\n";
$tryAgain = true;
while($tryAgain) {
$cnx = @pg_connect("host='pgsql' port='5432' dbname='lizmap' user='lizmap' password='lizmap1234!' ");
if (!$cnx) {
echo " postgresql is not ready yet\n";
sleep(1);
c... |
dd591262d79ad9b20d02c3ee5b5359b60a78b061 | client/src/scss/rules/modules/_comments.scss | client/src/scss/rules/modules/_comments.scss | /*.loading {*/
/*border: 10px solid red;*/
/*transition: none;*/
/*}*/
.comments {
.comment {
/*background: {*/
/*color: $flat-clouds;*/
/*}*/
.btn-group {
opacity: 0;
transition: opacity 0.2s;
}
&:hover {
.btn-group {
opacity: 1;
}
}
.star {
clear: left;
line-height: 1... | /*.loading {*/
/*border: 10px solid red;*/
/*transition: none;*/
/*}*/
.comments {
.comment {
/*background: {*/
/*color: $flat-clouds;*/
/*}*/
.btn-group {
opacity: 0;
transition: opacity 0.2s;
}
&:hover {
.btn-group {
opacity: 1;
}
}
.star {
clear: left;
line-height: 1... | Fix line breaking in comment stars | Fix line breaking in comment stars
| SCSS | mit | neagle/gokibitz,levelonedev/gokibitz,neagle/gokibitz,levelonedev/gokibitz | scss | ## Code Before:
/*.loading {*/
/*border: 10px solid red;*/
/*transition: none;*/
/*}*/
.comments {
.comment {
/*background: {*/
/*color: $flat-clouds;*/
/*}*/
.btn-group {
opacity: 0;
transition: opacity 0.2s;
}
&:hover {
.btn-group {
opacity: 1;
}
}
.star {
clear: left;
... |
0bdaa4a906bd76f4817fe6ffca01d24477269828 | ci/travis/script.sh | ci/travis/script.sh | . "${TRAVIS_BUILD_DIR}/ci/travis/helpers.sh"
enter_build_step
header 'Running script.sh...'
run bundle exec rake test:coverage
run bundle exec rake coveralls:push
run bundle exec rake rubocop
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
TRAVIS_BRANCH_COMMIT="$(git rev-parse --verify -q "${TRAVIS_BRANCH}")"
... | . "${TRAVIS_BUILD_DIR}/ci/travis/helpers.sh"
enter_build_step
header 'Running script.sh...'
run bundle exec rake test:coverage
run bundle exec rake coveralls:push || true # in case of networking errors
run bundle exec rake rubocop
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
TRAVIS_BRANCH_COMMIT="$(git rev-pa... | Allow coveralls:push rake task to fail | Allow coveralls:push rake task to fail
| Shell | bsd-2-clause | xyb/homebrew-cask,aguynamedryan/homebrew-cask,exherb/homebrew-cask,xight/homebrew-cask,bosr/homebrew-cask,claui/homebrew-cask,okket/homebrew-cask,tyage/homebrew-cask,0rax/homebrew-cask,moogar0880/homebrew-cask,tangestani/homebrew-cask,FinalDes/homebrew-cask,elnappo/homebrew-cask,codeurge/homebrew-cask,paour/homebrew-ca... | shell | ## Code Before:
. "${TRAVIS_BUILD_DIR}/ci/travis/helpers.sh"
enter_build_step
header 'Running script.sh...'
run bundle exec rake test:coverage
run bundle exec rake coveralls:push
run bundle exec rake rubocop
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
TRAVIS_BRANCH_COMMIT="$(git rev-parse --verify -q "${TRAV... |
9ba31ccf4f1030fea1352627a4871b91c217de76 | .travis.yml | .travis.yml | language: node_js
sudo: required
dist: xenial
node_js:
- "8"
- "10"
branches:
only:
- master
services:
- mysql
install:
- npm install
before_install:
- sudo mysql -e "use mysql; update user set authentication_string=password('test') where user='root'; update user set plugin='mysql_native_password';... | jobs:
include:
- stage: test
name: "Unit Tests"
language: node_js
sudo: required
dist: xenial
node_js:
- "8"
- "10"
branches:
only:
- master
services:
- mysql
install:
- npm install
before_install:
... | Split Docs and Unit Test into two jobs | Split Docs and Unit Test into two jobs
| YAML | mit | Fiware/security.Idm,ging/fiware-idm,ging/fiware-idm,Fiware/security.Idm,ging/fiware-idm,Fiware/security.Idm | yaml | ## Code Before:
language: node_js
sudo: required
dist: xenial
node_js:
- "8"
- "10"
branches:
only:
- master
services:
- mysql
install:
- npm install
before_install:
- sudo mysql -e "use mysql; update user set authentication_string=password('test') where user='root'; update user set plugin='mysql_n... |
b0135dd5acaefeb7a079b7d9c6e56b2fddb23f77 | lib/aliases.zsh | lib/aliases.zsh | alias pu='pushd'
alias po='popd'
# Basic directory operations
alias ...='cd ../..'
alias -- -='cd -'
# Super user
alias _='sudo'
alias please='sudo'
#alias g='grep -in'
# Show history
if [ "$HIST_STAMPS" = "mm/dd/yyyy" ]
then
alias history='fc -fl 1'
elif [ "$HIST_STAMPS" = "dd.mm.yyyy" ]
then
alias history... | alias pu='pushd'
alias po='popd'
# Basic directory operations
alias ...='cd ../..'
alias -- -='cd -'
# Super user
alias _='sudo'
alias please='sudo'
#alias g='grep -in'
# Show history
if [ "$HIST_STAMPS" = "mm/dd/yyyy" ]
then
alias history='fc -fl 1'
elif [ "$HIST_STAMPS" = "dd.mm.yyyy" ]
then
alias history... | Update dockup alias for Docker Machine | Update dockup alias for Docker Machine | Shell | mit | abiggs/oh-my-zsh,abiggs/oh-my-zsh | shell | ## Code Before:
alias pu='pushd'
alias po='popd'
# Basic directory operations
alias ...='cd ../..'
alias -- -='cd -'
# Super user
alias _='sudo'
alias please='sudo'
#alias g='grep -in'
# Show history
if [ "$HIST_STAMPS" = "mm/dd/yyyy" ]
then
alias history='fc -fl 1'
elif [ "$HIST_STAMPS" = "dd.mm.yyyy" ]
then
... |
12d1c742fb5a0240e4b8a6b68ab443b882a1b3ff | README.md | README.md |
Take a diff of 2 parts of text(s).

## Commands
* `PartialDiff: Mark 1st text`: Mark the selected text as the 1st text to compare.
* `PartialDiff: Mark 2nd text and Take diff`: Mark the selected text as the 2nd text and compare it with the 1s... |
Take a diff of 2 parts of text(s).

## Commands
* `PartialDiff: Mark 1st text`: Mark the selected text as the 1st text to compare.
* `PartialDiff: Mark 2nd text and Take diff`:... | Fix the problem that gif animation is not shown | Fix the problem that gif animation is not shown
| Markdown | mit | ryu1kn/vscode-partial-diff,ryu1kn/vscode-partial-diff,ryu1kn/vscode-partial-diff | markdown | ## Code Before:
Take a diff of 2 parts of text(s).

## Commands
* `PartialDiff: Mark 1st text`: Mark the selected text as the 1st text to compare.
* `PartialDiff: Mark 2nd text and Take diff`: Mark the selected text as the 2nd text and compar... |
1b37e55437d1fb40c50f81e7ee686f40628ef7a8 | metadata/x653.bullseye.yml | metadata/x653.bullseye.yml | Categories:
- Games
License: GPL-3.0-only
SourceCode: https://gitlab.com/x653/bullseye
IssueTracker: https://gitlab.com/x653/bullseye/issues
AutoName: Bullseye
Description: |-
Scoreboard for tournament dart x01
* one, two or three Player
* 301, 501, etc.
* dart calculator
* checkouts
* avera... | Categories:
- Games
License: GPL-3.0-only
SourceCode: https://gitlab.com/x653/bullseye
IssueTracker: https://gitlab.com/x653/bullseye/issues
AutoName: Bullseye
Description: |-
Scoreboard for tournament dart x01
* one, two or three Player
* 301, 501, etc.
* dart calculator
* checkouts
* avera... | Update Bullseye to 0.4 (4) | Update Bullseye to 0.4 (4)
| YAML | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata | yaml | ## Code Before:
Categories:
- Games
License: GPL-3.0-only
SourceCode: https://gitlab.com/x653/bullseye
IssueTracker: https://gitlab.com/x653/bullseye/issues
AutoName: Bullseye
Description: |-
Scoreboard for tournament dart x01
* one, two or three Player
* 301, 501, etc.
* dart calculator
* check... |
7467bbc136c53156bd57c0955095a44201cb54c7 | src/js/app/resources/app.less | src/js/app/resources/app.less | // If you are developing a project that makes use of Dojo's built-in
// widgets, you will probably want to include the two files below;
// otherwise, you can remove them.
@import url('../../dojo/resources/dojo.css');
@import url('../../dijit/themes/claro/claro.css');
// The following includes the central variables and... | // Import a base stylesheet; if you have your own instead, you can remove this.
@import url('../../dojo/resources/dojo.css');
// Import the Claro theme for skinning Dijit widgets; this can be swapped for
// another theme, or removed if the app doesn't use Dijit.
@import url('../../dijit/themes/claro/claro.css');
// T... | Improve dojo.css / claro.css comments | Improve dojo.css / claro.css comments
| Less | isc | rishson/dojoEnterpriseApp,rishson/dojoEnterpriseApp | less | ## Code Before:
// If you are developing a project that makes use of Dojo's built-in
// widgets, you will probably want to include the two files below;
// otherwise, you can remove them.
@import url('../../dojo/resources/dojo.css');
@import url('../../dijit/themes/claro/claro.css');
// The following includes the centr... |
78eb520f8fc50439e4d109acd5f63fcfd4cc36b9 | script/purge_local_s3_downloads_cache.sh | script/purge_local_s3_downloads_cache.sh |
set -e
PWD="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
MC_ROOT="$PWD/../"
S3_CACHE_ROOT="$MC_ROOT/data/cache/s3_downloads/"
S3_CACHE_DEFAULT_DIR="$S3_CACHE_ROOT/Default/"
if [ ! -z "$1" ]; then
if [[ ! "$1" =~ ^-?[0-9]+$ ]]; then
echo "Max. age in days is not an integer."
exit 1
fi
... |
set -e
PWD="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
MC_ROOT="$PWD/../"
S3_CACHE_ROOT="$MC_ROOT/data/cache/s3_downloads/"
S3_CACHE_DEFAULT_DIR="$S3_CACHE_ROOT/Default/"
if [ ! -z "$1" ]; then
if [[ ! "$1" =~ ^-?[0-9]+$ ]]; then
echo "Max. age in days is not an integer."
exit 1
fi
... | Purge only "*.dat" files which are safely stored cache files | Purge only "*.dat" files which are safely stored cache files
| Shell | agpl-3.0 | berkmancenter/mediacloud,berkmancenter/mediacloud,berkmancenter/mediacloud,berkmancenter/mediacloud,berkmancenter/mediacloud | shell | ## Code Before:
set -e
PWD="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
MC_ROOT="$PWD/../"
S3_CACHE_ROOT="$MC_ROOT/data/cache/s3_downloads/"
S3_CACHE_DEFAULT_DIR="$S3_CACHE_ROOT/Default/"
if [ ! -z "$1" ]; then
if [[ ! "$1" =~ ^-?[0-9]+$ ]]; then
echo "Max. age in days is not an integer."
... |
5e5b8e19fd4dfd90551e87b0bdf3a8e668d47025 | .travis.yml | .travis.yml | language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
env:
- SYMFONY_VERSION="~2.3"
# Test against previous minor releases of Symfony 2.x to ensure that we
# actually support the versions we specify in our requirements.
- SYMFONY_VERSION="2.3.*"
before_script:
# Use --prefer-source to download dependencies via... | language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
env:
- SYMFONY_VERSION="~2.3"
# Test against previous minor releases of Symfony 2.x to ensure that we
# actually support the versions we specify in our requirements.
- SYMFONY_VERSION="2.3.*"
sudo: false
before_script:
# Use --prefer-source to download de... | Use the new build env on Travis | Use the new build env on Travis
more ram, more cpu, better network, improve vm start times
http://docs.travis-ci.com/user/workers/container-based-infrastructure/
more docs coming soon | YAML | mit | Intera/wsdl2phpgenerator,sha1/wsdl2phpgenerator,ivol84/wsdl2phpgenerator,yethee/wsdl2phpgenerator,parabolicinteractive/wsdl2phpgenerator,red-led/wsdl2phpgenerator,wsdl2phpgenerator/wsdl2phpgenerator,jongotlin/wsdl2phpgenerator,kasperg/wsdl2phpgenerator,Razoxane/wsdl2phpgenerator | yaml | ## Code Before:
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
env:
- SYMFONY_VERSION="~2.3"
# Test against previous minor releases of Symfony 2.x to ensure that we
# actually support the versions we specify in our requirements.
- SYMFONY_VERSION="2.3.*"
before_script:
# Use --prefer-source to download ... |
bdba46586d552f8ed9deb36a1c875a5ca67af227 | share/qtcreator/templates/wizards/bb-qt5-bardescriptor/bar-descriptor.xml | share/qtcreator/templates/wizards/bb-qt5-bardescriptor/bar-descriptor.xml | <?xml version="1.0" encoding="utf-8" standalone="no"?>
<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
<id>ID</id>
<name>PROJECTNAME</name>
<versionNumber>1.0.0</versionNumber>
<description>DESCRIPTION</description>
<initialWindow>
<systemChrome>none</systemChrome>
<transpa... | <?xml version="1.0" encoding="utf-8" standalone="no"?>
<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
<id>ID</id>
<name>PROJECTNAME</name>
<versionNumber>1.0.0</versionNumber>
<description>DESCRIPTION</description>
<initialWindow>
<systemChrome>none</systemChrome>
<transpa... | Fix the generated file descriptor to deploy Qt5 apps | Qnx: Fix the generated file descriptor to deploy Qt5 apps
Task-number: QTCREATORBUG-8989
Change-Id: I727f7c5d1db5dcea10bf06e42ab0d063fbbd51b2
Reviewed-by: Eike Ziller <c142da16c73a95a82d35191bcc55b22835617128@digia.com>
Reviewed-by: Tobias Hunger <012f8d714267bccc9d4766fbeace9f175fcc70c4@digia.com>
| XML | lgpl-2.1 | darksylinc/qt-creator,richardmg/qtcreator,maui-packages/qt-creator,omniacreator/qtcreator,kuba1/qtcreator,richardmg/qtcreator,Distrotech/qtcreator,amyvmiwei/qt-creator,AltarBeastiful/qt-creator,AltarBeastiful/qt-creator,duythanhphan/qt-creator,martyone/sailfish-qtcreator,AltarBeastiful/qt-creator,danimo/qt-creator,dark... | xml | ## Code Before:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
<id>ID</id>
<name>PROJECTNAME</name>
<versionNumber>1.0.0</versionNumber>
<description>DESCRIPTION</description>
<initialWindow>
<systemChrome>none</systemChrome>
... |
e4e05d2cc1345e8307568ab7edd782906f431aee | app/models/api/v3/household_heat_csv_presenter.rb | app/models/api/v3/household_heat_csv_presenter.rb | module Api
module V3
# Creates CSV rows describing household heat demand and supply.
class HouseholdHeatCSVPresenter
def initialize(graph)
@graph = graph
end
def to_csv_rows
# Empty CSV if time-resolved calculations are not enabled.
unless @graph.plugin(:time_resolve... | module Api
module V3
# Creates CSV rows describing household heat demand and supply.
class HouseholdHeatCSVPresenter
def initialize(graph)
@graph = graph
end
def filename
'household_heat'
end
def to_csv_rows
# Empty CSV if time-resolved calculations are ... | Add "filename" method for household heat CSV | Add "filename" method for household heat CSV
Resolves ETENGINE-2V
| Ruby | mit | quintel/etengine,quintel/etengine,quintel/etengine,quintel/etengine | ruby | ## Code Before:
module Api
module V3
# Creates CSV rows describing household heat demand and supply.
class HouseholdHeatCSVPresenter
def initialize(graph)
@graph = graph
end
def to_csv_rows
# Empty CSV if time-resolved calculations are not enabled.
unless @graph.plug... |
b1d816775aca54173c29e4b9acc988adc3e99ccb | builds/swi/all/shared/etc/profile.d/onl.sh | builds/swi/all/shared/etc/profile.d/onl.sh |
dir=/lib/platform/`cat /etc/onl_platform`
if [ "`id -u`" -eq 0 ]; then
PATH="$PATH:$dir/bin"
else
PATH="$PATH:$dir/bin:$dir/sbin"
fi
export PATH
|
dir=/lib/platform-config/`cat /etc/onl_platform`
if [ "`id -u`" -eq 0 ]; then
PATH="$PATH:$dir/bin:$dir/sbin"
else
PATH="$PATH:$dir/bin"
fi
export PATH
| FIX typos in ORC platform path | FIX typos in ORC platform path
| Shell | epl-1.0 | capveg/ONL,JS-Wang/ONL,InterfaceMasters/ONL,shengzhou/ONL,capveg/ONL,iamyaw/ONL,InterfaceMasters/ONL,iamyaw/ONL,audihsu-qci/ONL,audihsu-qci/ONL,jeankuo/ONL,JS-Wang/ONL,shengzhou/ONL,jeankuo/ONL | shell | ## Code Before:
dir=/lib/platform/`cat /etc/onl_platform`
if [ "`id -u`" -eq 0 ]; then
PATH="$PATH:$dir/bin"
else
PATH="$PATH:$dir/bin:$dir/sbin"
fi
export PATH
## Instruction:
FIX typos in ORC platform path
## Code After:
dir=/lib/platform-config/`cat /etc/onl_platform`
if [ "`id -u`" -eq 0 ]; then
P... |
7c91f1f532c4731a9019952677a925cf0cc91a4d | tool/cl.uchile.pleiad.textram/xtend-gen/cl/uchile/pleiad/scoping/TextRAMScopeProvider.java | tool/cl.uchile.pleiad.textram/xtend-gen/cl/uchile/pleiad/scoping/TextRAMScopeProvider.java | /**
* generated by Xtext
*/
package cl.uchile.pleiad.scoping;
import org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider;
/**
* This class contains custom scoping description.
*
* see : http://www.eclipse.org/Xtext/documentation.html#scoping
* on how and when to use it
*/
@SuppressWarnings("all")
... | /**
* generated by Xtext
*/
package cl.uchile.pleiad.scoping;
import ca.mcgill.cs.sel.ram.StructuralView;
import ca.mcgill.cs.sel.ram.Type;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.xtext.scoping.IScope;
import org.eclipse.xtext.scoping.Scopes;
import org.e... | Support for types using declarative scoping | Support for types using declarative scoping
| Java | mit | mjorod/textram | java | ## Code Before:
/**
* generated by Xtext
*/
package cl.uchile.pleiad.scoping;
import org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider;
/**
* This class contains custom scoping description.
*
* see : http://www.eclipse.org/Xtext/documentation.html#scoping
* on how and when to use it
*/
@Suppress... |
a224137f062a96c51ab420b4328768d92c9203f8 | .circleci/config.yml | .circleci/config.yml | version: 2
jobs:
build:
parallelism: 3
working_directory: /app
docker:
- image: ubuntu:16.04
steps:
- checkout
# Install any system package dependencies.
- run: env INSTALL_TEST_DEPENDENCIES=true ./build/scripts/install_build_dependencies
- restore_cache:
key: b... | version: 2
jobs:
build:
parallelism: 3
working_directory: /app
docker:
- image: ubuntu:16.04
steps:
- checkout
# Install any system package dependencies.
- run: env INSTALL_TEST_DEPENDENCIES=true ./build/scripts/install_build_dependencies
- restore_cache:
key: c... | Add mechanism for being able to clear cache via version env variable. | Add mechanism for being able to clear cache via version env variable.
| YAML | mit | NREL/api-umbrella,NREL/api-umbrella,NREL/api-umbrella,NREL/api-umbrella | yaml | ## Code Before:
version: 2
jobs:
build:
parallelism: 3
working_directory: /app
docker:
- image: ubuntu:16.04
steps:
- checkout
# Install any system package dependencies.
- run: env INSTALL_TEST_DEPENDENCIES=true ./build/scripts/install_build_dependencies
- restore_cache:
... |
1e9e76f10cf53c04e6b9dd0baf4eeaa42594f358 | bower.json | bower.json | {
"name": "loopback-sdk-restangular",
"version": "0.0.1",
"homepage": "https://github.com/frankcarey/loopback-sdk-restangular",
"authors": [
"Frank Carey <fcarey@gmail.com>"
],
"description": "A loopback angular sdk based on restangular instead of $resource.",
"main": "lb-services.js",
"keywords": [... | {
"name": "loopback-sdk-restangular",
"version": "0.0.1",
"homepage": "https://github.com/frankcarey/loopback-sdk-restangular",
"authors": [
"Frank Carey <fcarey@gmail.com>"
],
"description": "A loopback angular sdk based on restangular instead of $resource.",
"main": "lb-services.js",
"keywords": [... | Add restangular and angular as dependencies. | Add restangular and angular as dependencies.
| JSON | mit | frankcarey/loopback-sdk-restangular | json | ## Code Before:
{
"name": "loopback-sdk-restangular",
"version": "0.0.1",
"homepage": "https://github.com/frankcarey/loopback-sdk-restangular",
"authors": [
"Frank Carey <fcarey@gmail.com>"
],
"description": "A loopback angular sdk based on restangular instead of $resource.",
"main": "lb-services.js",... |
a356bd07150e558e19cead5eaa9d11e78b7842cb | test/ClangModules/Inputs/resolve-cross-language/BaseUser.framework/Headers/BaseUser.h | test/ClangModules/Inputs/resolve-cross-language/BaseUser.framework/Headers/BaseUser.h | @import Base;
@import ObjectiveC;
BaseClass *getBaseClassObjC();
void useBaseClassObjC(BaseClass *);
@interface UserClass : NSObject <BaseProto>
@end
id <BaseProto> getBaseProtoObjC();
void useBaseProtoObjC(id <BaseProto>);
| @import Base;
@import ObjectiveC;
BaseClass *getBaseClassObjC();
void useBaseClassObjC(BaseClass *);
@interface UserClass : NSObject <BaseProto>
@end
id <BaseProto> getBaseProtoObjC();
void useBaseProtoObjC(id <BaseProto>);
@interface BaseClass (ObjCExtensions)
- (void)categoryMethod;
@end
| Add a test for ObjC categories on Swift classes. | [ClangImporter] Add a test for ObjC categories on Swift classes.
...that get unified by the importer.
Swift SVN r15083
| C | apache-2.0 | ken0nek/swift,JGiola/swift,deyton/swift,austinzheng/swift,bitjammer/swift,stephentyrone/swift,airspeedswift/swift,bitjammer/swift,JGiola/swift,glessard/swift,therealbnut/swift,ahoppen/swift,mightydeveloper/swift,allevato/swift,sdulal/swift,ben-ng/swift,codestergit/swift,mightydeveloper/swift,calebd/swift,nathawes/swift... | c | ## Code Before:
@import Base;
@import ObjectiveC;
BaseClass *getBaseClassObjC();
void useBaseClassObjC(BaseClass *);
@interface UserClass : NSObject <BaseProto>
@end
id <BaseProto> getBaseProtoObjC();
void useBaseProtoObjC(id <BaseProto>);
## Instruction:
[ClangImporter] Add a test for ObjC categories on Swift cla... |
7fb741a5d06a5389c10d21842af2d385e7330777 | .travis.yml | .travis.yml | language: android
jdk: oraclejdk8
env:
global:
- GRADLE_OPTS="-Xmx512m -XX:MaxPermSize=512m"
- ANDROID_TARGET=android-23 ANDROID_ABI=armeabi-v7a
- ADB_INSTALL_TIMEOUT=5 # minutes
android:
components:
- platform-tools
- tools
- build-tools-23.0.3
- android-23
- extra-android-m2reposi... | sudo: required
language: android
jdk: oraclejdk8
env:
global:
- GRADLE_OPTS="-Xmx512m"
- ANDROID_TARGET=android-23
- ANDROID_ABI=armeabi-v7a
- ANDROID_TAG=google_apis
- ADB_INSTALL_TIMEOUT=5 # minutes
android:
components:
- tools
- platform-tools
- build-tools-23.0.3
- android-2... | Fix Travis script (ABI and system image names changed) | Fix Travis script (ABI and system image names changed)
| YAML | apache-2.0 | INTENT-TECHNOLOGIES/SDK-Android | yaml | ## Code Before:
language: android
jdk: oraclejdk8
env:
global:
- GRADLE_OPTS="-Xmx512m -XX:MaxPermSize=512m"
- ANDROID_TARGET=android-23 ANDROID_ABI=armeabi-v7a
- ADB_INSTALL_TIMEOUT=5 # minutes
android:
components:
- platform-tools
- tools
- build-tools-23.0.3
- android-23
- extra-... |
d314504621b3b0d36d8248a4ef36d089cd593108 | 153957_theme/theme.py | 153957_theme/theme.py | """Use the 153957-theme as theme for the gallery"""
from pathlib import Path
from sigal import signals
def get_path():
return str(Path(__file__).resolve().parent)
def theme(gallery):
"""Set theme settings to this theme"""
gallery.settings['theme'] = get_path()
def register(settings):
signals.ga... | """Use the 153957-theme as theme for the gallery"""
from pathlib import Path
from shutil import rmtree
from sigal import signals
def get_path():
return str(Path(__file__).resolve().parent)
def theme(gallery):
"""Set theme settings to this theme"""
gallery.settings['theme'] = get_path()
def remove_l... | Remove leaflet static files included by default by sigal | Remove leaflet static files included by default by sigal
Leaflet is not used by this theme, those static files are unnecessary.
| Python | mit | 153957/153957-theme,153957/153957-theme | python | ## Code Before:
"""Use the 153957-theme as theme for the gallery"""
from pathlib import Path
from sigal import signals
def get_path():
return str(Path(__file__).resolve().parent)
def theme(gallery):
"""Set theme settings to this theme"""
gallery.settings['theme'] = get_path()
def register(settings)... |
9aae92e0aa14a429e55e2ac02651bcc7815a6a5a | app/Libs/Controller.php | app/Libs/Controller.php | <?php
namespace App\Libs;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use App\Libs\ViewResolver;
use Illuminate\Http\Request;
abstract class Control... | <?php
namespace App\Libs;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use App\Libs\ViewResolver;
use Illuminate\Http\Request;
abstract class Control... | Revert last commit, to avoid vulnerabilities | Revert last commit, to avoid vulnerabilities
| PHP | mit | ttimot24/HorizontCMS,ttimot24/HorizontCMS,ttimot24/HorizontCMS | php | ## Code Before:
<?php
namespace App\Libs;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use App\Libs\ViewResolver;
use Illuminate\Http\Request;
abstra... |
55f6fc280e9ddf7286ab93e73c8115592986561b | lib/raphl/true_random.rb | lib/raphl/true_random.rb | module Raphl
module TrueRandom
class << self
# Pick a random element from collection using Random.org true random number generator
def select(collection = [])
entry_index = random(0, collection.count-1)
collection[entry_index]
end
def random(min, max)
true_random(m... | module Raphl
module TrueRandom
module_function
# Pick a random element from collection using Random.org true random number generator
def select(collection = [])
entry_index = random(0, collection.count-1)
collection[entry_index]
end
def random(min, max)
true_random(min, max)
... | Use "module_function" instead of "class << self" | Use "module_function" instead of "class << self"
| Ruby | mit | rubyftw/raphl | ruby | ## Code Before:
module Raphl
module TrueRandom
class << self
# Pick a random element from collection using Random.org true random number generator
def select(collection = [])
entry_index = random(0, collection.count-1)
collection[entry_index]
end
def random(min, max)
... |
72d801b3d0b8f67166c98a2c44d2c8ea53f7fb9d | devops/docker.sh | devops/docker.sh | for script in "infrastructure-network.sh" "infrastructure-mongo.sh" "infrastructure-redis.sh"; do
source "$PWD/devops/${script}"
done
# Link the infrastructure and run the image.
# Stop the containers even if the tests fail.
docker run -it --name linz --network linz --rm -p 8888:8888 linz
# Store the exit status ... | for script in "infrastructure-network.sh" "infrastructure-mongo.sh" "infrastructure-redis.sh"; do
source "$PWD/devops/${script}"
done
# Link the infrastructure and run the image.
# Stop the containers even if the tests fail.
docker run -it --name linz --network linz -v $PWD/public:/app/public -v $PWD/views:/app/vi... | Add the ability to edit public and view files without restarting node | Add the ability to edit public and view files without restarting node
| Shell | mit | linzjs/linz,linzjs/linz,linzjs/linz | shell | ## Code Before:
for script in "infrastructure-network.sh" "infrastructure-mongo.sh" "infrastructure-redis.sh"; do
source "$PWD/devops/${script}"
done
# Link the infrastructure and run the image.
# Stop the containers even if the tests fail.
docker run -it --name linz --network linz --rm -p 8888:8888 linz
# Store ... |
cbbce1c48f784449a4210e4eefc5dff339649eb6 | src/firefox/lib/main.js | src/firefox/lib/main.js | var buttons = require('sdk/ui/button/action');
var panels = require("sdk/panel");
var self = require("sdk/self");
const {Cu} = require("chrome");
Cu.import(self.data.url('freedom-for-firefox.jsm'));
// Main uProxy button.
var button = buttons.ActionButton({
id: "uProxy-button",
label: "uProxy-button",
icon: {
... | var buttons = require('sdk/ui/button/action');
var panels = require("sdk/panel");
var self = require("sdk/self");
const {Cu} = require("chrome");
Cu.import(self.data.url('freedom-for-firefox.jsm'));
// Main uProxy button.
var button = buttons.ActionButton({
id: "uProxy-button",
label: "uProxy-button",
icon: {
... | Update FF icon to correct size | Update FF icon to correct size
| JavaScript | apache-2.0 | chinarustin/uproxy,jpevarnek/uproxy,qida/uproxy,itplanes/uproxy,uProxy/uproxy,qida/uproxy,chinarustin/uproxy,roceys/uproxy,jpevarnek/uproxy,MinFu/uproxy,chinarustin/uproxy,dhkong88/uproxy,IveWong/uproxy,roceys/uproxy,dhkong88/uproxy,dhkong88/uproxy,chinarustin/uproxy,uProxy/uproxy,itplanes/uproxy,roceys/uproxy,dhkong88... | javascript | ## Code Before:
var buttons = require('sdk/ui/button/action');
var panels = require("sdk/panel");
var self = require("sdk/self");
const {Cu} = require("chrome");
Cu.import(self.data.url('freedom-for-firefox.jsm'));
// Main uProxy button.
var button = buttons.ActionButton({
id: "uProxy-button",
label: "uProxy-butt... |
a1acbcfc41a3f55e58e0f240eedcdf6568de4850 | test/contrib/test_securetransport.py | test/contrib/test_securetransport.py | import contextlib
import socket
import ssl
import pytest
try:
from urllib3.contrib.securetransport import (
WrappedSocket, inject_into_urllib3, extract_from_urllib3
)
except ImportError as e:
pytestmark = pytest.mark.skip('Could not import SecureTransport: %r' % e)
from ..with_dummyserver.test_ht... | import contextlib
import socket
import ssl
import pytest
try:
from urllib3.contrib.securetransport import WrappedSocket
except ImportError:
pass
def setup_module():
try:
from urllib3.contrib.securetransport import inject_into_urllib3
inject_into_urllib3()
except ImportError as e:
... | Fix skip logic in SecureTransport tests | Fix skip logic in SecureTransport tests | Python | mit | urllib3/urllib3,urllib3/urllib3,sigmavirus24/urllib3,sigmavirus24/urllib3 | python | ## Code Before:
import contextlib
import socket
import ssl
import pytest
try:
from urllib3.contrib.securetransport import (
WrappedSocket, inject_into_urllib3, extract_from_urllib3
)
except ImportError as e:
pytestmark = pytest.mark.skip('Could not import SecureTransport: %r' % e)
from ..with_dum... |
3d223aed27eae125b7b08162d204290612b652b6 | src/base_authentication_app_skeleton/spec/support/boxes/user_box.cr | src/base_authentication_app_skeleton/spec/support/boxes/user_box.cr | class UserBox < Avram::Box
def initialize
email "test@example.com"
encrypted_password Authentic.generate_encrypted_password("password")
end
end
| class UserBox < Avram::Box
def initialize
email "#{sequence("test-email")}@example.com"
encrypted_password Authentic.generate_encrypted_password("password")
end
end
| Use unique email address in UserBox | Use unique email address in UserBox
| Crystal | mit | luckyframework/cli,luckyframework/cli,luckyframework/cli | crystal | ## Code Before:
class UserBox < Avram::Box
def initialize
email "test@example.com"
encrypted_password Authentic.generate_encrypted_password("password")
end
end
## Instruction:
Use unique email address in UserBox
## Code After:
class UserBox < Avram::Box
def initialize
email "#{sequence("test-email")... |
cea7b367cfd7f7c58b326ca9ada85ed475dee327 | examples/rails/app/controllers/snoop_controller.rb | examples/rails/app/controllers/snoop_controller.rb | class SnoopController < ApplicationController
def index
@snoop = {}
@snoop[:env] = request.env
@snoop[:remote_addr] = request.remote_addr
@snoop[:remote_ip] = request.remote_ip
@snoop[:host_with_port] = request.host_with_port
@snoop[:path] = request.... | class SnoopController < ApplicationController
def index
@snoop = {}
@snoop[:env] = request.env
@snoop[:remote_addr] = request.remote_addr
@snoop[:remote_ip] = request.remote_ip
@snoop[:host_with_port] = request.host_with_port
@snoop[:path] = request.... | Add a controller action which purposefully generates an exception | examplles/rails: Add a controller action which purposefully generates an exception
| Ruby | mit | atambo/jruby-rack,jruby/jruby-rack,jhstatewide/jruby-rack,janrain/jruby-rack,jruby/jruby-rack,janrain/jruby-rack,janrain/jruby-rack,jruby/jruby-rack,jhstatewide/jruby-rack,jruby/jruby-rack,jhstatewide/jruby-rack,atambo/jruby-rack,atambo/jruby-rack,jruby/jruby-rack,janrain/jruby-rack,jhstatewide/jruby-rack,jruby/jruby-r... | ruby | ## Code Before:
class SnoopController < ApplicationController
def index
@snoop = {}
@snoop[:env] = request.env
@snoop[:remote_addr] = request.remote_addr
@snoop[:remote_ip] = request.remote_ip
@snoop[:host_with_port] = request.host_with_port
@snoop[:path] ... |
a8d7bfdbaf25ec35ca677ed2f9b5b07c7bda328b | src/EntityManager.php | src/EntityManager.php | <?php
/**
* @author: Patsura Dmitry http://github.com/ovr <talk@dmtry.me>
*/
namespace Lynx;
use Doctrine\DBAL\Connection;
class EntityManager
{
/**
* @var Connection
*/
protected $connection;
/**
* @var Repository[]
*/
protected $repositories;
public function __construct(... | <?php
/**
* @author: Patsura Dmitry http://github.com/ovr <talk@dmtry.me>
*/
namespace Lynx;
use Doctrine\DBAL\Connection;
class EntityManager
{
/**
* @var Connection
*/
protected $connection;
/**
* @var Repository[]
*/
protected $repositories;
public function __construct(... | Allow to use own Repositories like UserRepository | Allow to use own Repositories like UserRepository
| PHP | mit | lynx/lynx,lynx/lynx | php | ## Code Before:
<?php
/**
* @author: Patsura Dmitry http://github.com/ovr <talk@dmtry.me>
*/
namespace Lynx;
use Doctrine\DBAL\Connection;
class EntityManager
{
/**
* @var Connection
*/
protected $connection;
/**
* @var Repository[]
*/
protected $repositories;
public funct... |
64ae36f2daf137ae830c5598edabc06632b5cc9c | .travis.yml | .travis.yml | language: ruby
cache: bundler
rvm:
- 2.0.0
- 2.1.2
- 2.2.5
- 2.3.1
gemfile:
- gemfiles/Gemfile.activemodel-3.2.x
- gemfiles/Gemfile.activemodel-4.0.x
- gemfiles/Gemfile.activemodel-4.1.x
- gemfiles/Gemfile.activemodel-4.2.x
- gemfiles/Gemfile.activemodel-5.0.x
script:
- bundle exec rake spec
before_... | language: ruby
cache: bundler
rvm:
- 2.0.0
- 2.1.2
- 2.2.5
- 2.3.1
- 2.3.4
- 2.4.1
gemfile:
- gemfiles/Gemfile.activemodel-3.2.x
- gemfiles/Gemfile.activemodel-4.0.x
- gemfiles/Gemfile.activemodel-4.1.x
- gemfiles/Gemfile.activemodel-4.2.x
- gemfiles/Gemfile.activemodel-5.0.x
script:
- bundle ex... | Test on more ruby versions | Test on more ruby versions
| YAML | mit | ninech/REST-in-Peace | yaml | ## Code Before:
language: ruby
cache: bundler
rvm:
- 2.0.0
- 2.1.2
- 2.2.5
- 2.3.1
gemfile:
- gemfiles/Gemfile.activemodel-3.2.x
- gemfiles/Gemfile.activemodel-4.0.x
- gemfiles/Gemfile.activemodel-4.1.x
- gemfiles/Gemfile.activemodel-4.2.x
- gemfiles/Gemfile.activemodel-5.0.x
script:
- bundle exec r... |
fcdaa3e6aa6205a0959608bc788eeb549c4a2d7c | build/post-commit.sh | build/post-commit.sh |
set +x
# Assert assumption that we're running from the project root directory
# This works for all of my projects, but someone else may want to modify this
if [[ ! -d "test" ]]; then
echo >&2 'Could not find "test" directory. Refusing to run'
exit 1
fi
echo "
$(git show --name-status)
"
set -x
# PHPUnit ... |
set +x
# Set our default phpunit flags
PHPUNIT_FLAGS="--log-junit build/reports/phpunit.xml $PHPUNIT_FLAGS"
# Assert assumption that we're running from the project root directory
# This works for all of my projects, but someone else may want to modify this
if [[ ! -d "test" ]]; then
echo >&2 'Could not find "tes... | Allow for custom PHPUNIT flags | Allow for custom PHPUNIT flags
| Shell | apache-2.0 | geoffreyanderson/bart,box/bart,box/bart,geoffreyanderson/bart | shell | ## Code Before:
set +x
# Assert assumption that we're running from the project root directory
# This works for all of my projects, but someone else may want to modify this
if [[ ! -d "test" ]]; then
echo >&2 'Could not find "test" directory. Refusing to run'
exit 1
fi
echo "
$(git show --name-status)
"
se... |
9d1d8549922e5b3b4f98f33507fee464d1b3ed3e | server.js | server.js | var express = require('express');
var app = express();
app.use(express.static('public'));
app.listen(3000, function () {
console.log('Example app listening on port 3000!');
});
| var express = require('express');
var app = express();
app.use(express.static('public', {index: 'index.html'}));
app.listen(3000, function () {
console.log('Example app listening on port 3000!');
});
| Configure path to index.html manually | Configure path to index.html manually
| JavaScript | mit | denisnarush/postcard,denisnarush/postcard | javascript | ## Code Before:
var express = require('express');
var app = express();
app.use(express.static('public'));
app.listen(3000, function () {
console.log('Example app listening on port 3000!');
});
## Instruction:
Configure path to index.html manually
## Code After:
var express = require('express');
var app = expres... |
f637b1379cc1a8d02fb63f6fca46e9001af2ee57 | tests/manual/testgeolocation.html | tests/manual/testgeolocation.html | <html>
<head>
<meta name="viewport" content="width=device-width, user-scalable=false;">
<title>Simple Geolocation smoke test</title>
<script>
function outputData(position) {
// Write each attribute from position data.
var data = document.getElement... | <html>
<head>
<meta name="viewport" content="width=device-width, user-scalable=false;">
<title>Simple Geolocation smoke test</title>
<script>
function outputData(position) {
// Write each attribute from position data.
var data = document.getElement... | Add geolocation link to manual test page | Add geolocation link to manual test page
| HTML | mpl-2.0 | sailfishos/sailfish-browser,sailfishos/sailfish-browser,sailfishos/sailfish-browser,sailfishos/sailfish-browser,sailfishos/sailfish-browser | html | ## Code Before:
<html>
<head>
<meta name="viewport" content="width=device-width, user-scalable=false;">
<title>Simple Geolocation smoke test</title>
<script>
function outputData(position) {
// Write each attribute from position data.
var data = doc... |
43dde6d6aa339177ae24367f636c89d06c41054b | src/index.ts | src/index.ts | /// <reference path="../typings/index.d.ts" />
try { require("source-map-support").install(); } catch (e) { /* empty */ }
const log4js = require("log4js");
import {app, BrowserWindow} from "electron";
log4js.configure({
appenders: [{ type: "console", layout: { type: "basic" } }]
});
async function main() {
aw... | /// <reference path="../typings/index.d.ts" />
try { require("source-map-support").install(); } catch (e) { /* empty */ }
const log4js = require("log4js");
import { app, BrowserWindow } from "electron";
log4js.configure({
appenders: [{ type: "console", layout: { type: "basic" } }]
});
async function main() {
... | Fix exit when window closed | Fix exit when window closed
| TypeScript | mit | progre/chatreader,progre/chatreader,progre/chatreader | typescript | ## Code Before:
/// <reference path="../typings/index.d.ts" />
try { require("source-map-support").install(); } catch (e) { /* empty */ }
const log4js = require("log4js");
import {app, BrowserWindow} from "electron";
log4js.configure({
appenders: [{ type: "console", layout: { type: "basic" } }]
});
async function... |
22397f228ea4b29c5fc3021578f90a1f917c03d4 | .travis.yml | .travis.yml | language: ruby
rvm:
- ruby-2.3.3
- ruby-2.4.0
addons:
code_climate:
repo_token: edec9ede0a6915474955b4afc932be887f09bcd5257433adc79a13ef3451f36d
| language: ruby
rvm:
- ruby-2.3.3
- ruby-2.4.0
| Remove the code climate addon. | Remove the code climate addon.
| YAML | mit | ubpb/metacrunch-mab2 | yaml | ## Code Before:
language: ruby
rvm:
- ruby-2.3.3
- ruby-2.4.0
addons:
code_climate:
repo_token: edec9ede0a6915474955b4afc932be887f09bcd5257433adc79a13ef3451f36d
## Instruction:
Remove the code climate addon.
## Code After:
language: ruby
rvm:
- ruby-2.3.3
- ruby-2.4.0
|
5fb04aedfebb84ee0a9534f5ba363e7e5d328f27 | doc/dev/contributing.rst | doc/dev/contributing.rst | Contributing source code
========================
We encourage contributions to Zotonic from the community!
1. Fork the `zotonic` repository on Github (at https://github.com/zotonic/zotonic).
2. Clone your fork or add the remote if you already have a clone of
the repository::
git clone git@github.com:yourus... | Contributing source code
========================
We encourage contributions to Zotonic from the community!
1. Fork the `zotonic` repository on Github (at https://github.com/zotonic/zotonic).
2. Clone your fork or add the remote if you already have a clone of
the repository::
git clone git@github.com:yourus... | Test commit for testing the github webhook. | Test commit for testing the github webhook.
| reStructuredText | apache-2.0 | erlanger-ru/erlanger-ru.meta,erlanger-ru/erlanger-ru.meta,erlanger-ru/erlanger-ru.meta,erlanger-ru/erlanger-ru.meta,erlanger-ru/erlanger-ru.meta | restructuredtext | ## Code Before:
Contributing source code
========================
We encourage contributions to Zotonic from the community!
1. Fork the `zotonic` repository on Github (at https://github.com/zotonic/zotonic).
2. Clone your fork or add the remote if you already have a clone of
the repository::
git clone git@g... |
590494bf9d840cb6353260392b94700656db5d47 | fabfile/__init__.py | fabfile/__init__.py |
from __future__ import with_statement
import nose
from fabric.api import abort, local, task
import tag
from utils import msg
@task(default=True)
def test(args=None):
"""
Run all unit tests and doctests.
Specify string argument ``args`` for additional args to ``nosetests``.
"""
default_args = ... |
from __future__ import with_statement
import nose
from fabric.api import abort, local, task
import tag
from utils import msg
@task(default=True)
def test(args=None):
"""
Run all unit tests and doctests.
Specify string argument ``args`` for additional args to ``nosetests``.
"""
# Default to ex... | Fix super dumb mistake causing all test runs to hit tests folder. | Fix super dumb mistake causing all test runs to hit tests folder.
This causes integration level tests to run both test suites.
Oops!
| Python | bsd-2-clause | cgvarela/fabric,raimon49/fabric,elijah513/fabric,StackStorm/fabric,amaniak/fabric,kmonsoor/fabric,mathiasertl/fabric,opavader/fabric,bspink/fabric,fernandezcuesta/fabric,pgroudas/fabric,likesxuqiang/fabric,xLegoz/fabric,tekapo/fabric,jaraco/fabric,bitmonk/fabric,sdelements/fabric,kxxoling/fabric,itoed/fabric,SamuelMark... | python | ## Code Before:
from __future__ import with_statement
import nose
from fabric.api import abort, local, task
import tag
from utils import msg
@task(default=True)
def test(args=None):
"""
Run all unit tests and doctests.
Specify string argument ``args`` for additional args to ``nosetests``.
"""
... |
9a8faccefd0413eaff48c74f540ccfeec038ce45 | lib/aggro/event_proxy.rb | lib/aggro/event_proxy.rb | module Aggro
# Private: Used as a proxy to apply and save events to an aggregate.
class EventProxy
def initialize(aggregate, id)
@aggregate = aggregate
@id = id
end
def method_missing(method_sym, *args)
return unless @aggregate.handles_event?(method_sym)
details = merge_details... | module Aggro
# Private: Used as a proxy to apply and save events to an aggregate.
class EventProxy
def initialize(aggregate, id)
@aggregate = aggregate
@id = id
end
def method_missing(method_sym, *args)
details = merge_details_with_command_context(args.pop || {})
event = Event.n... | Allow undefined events to be logged. | Allow undefined events to be logged.
| Ruby | mit | SebastianEdwards/aggro | ruby | ## Code Before:
module Aggro
# Private: Used as a proxy to apply and save events to an aggregate.
class EventProxy
def initialize(aggregate, id)
@aggregate = aggregate
@id = id
end
def method_missing(method_sym, *args)
return unless @aggregate.handles_event?(method_sym)
details... |
6108cbbeaeef2cceac6936891083be106d3ffee4 | zine/templates/admin/approve_comment.html | zine/templates/admin/approve_comment.html | {% extends "admin/layout.html" %}
{% block title %}{{ _("Approve Comment") }}{% endblock %}
{% block contents %}
<h1>{{ _("Approve Comment") }}</h1>
{% call form() %}
<div>
<p>{% trans comment_author=form.comment.author|e,
reason=form.comment.blocked_msg|e %}
Do you really want t... | {% extends "admin/layout.html" %}
{% block title %}{{ _("Approve Comment") }}{% endblock %}
{% block contents %}
<h1>{{ _("Approve Comment") }}</h1>
{% call form() %}
<div>
<p>{% trans comment_author=form.comment.author|e,
reason=form.comment.blocked_msg|e %}
Do you really want t... | Make order of yes/no buttons consistent. | Make order of yes/no buttons consistent.
| HTML | bsd-3-clause | mitsuhiko/zine,mitsuhiko/zine,mitsuhiko/zine | html | ## Code Before:
{% extends "admin/layout.html" %}
{% block title %}{{ _("Approve Comment") }}{% endblock %}
{% block contents %}
<h1>{{ _("Approve Comment") }}</h1>
{% call form() %}
<div>
<p>{% trans comment_author=form.comment.author|e,
reason=form.comment.blocked_msg|e %}
Do y... |
d9497da46e647f2ca9d6a2ad2f3fcf4d8c56c90d | assets/src/edit-story/elements/video/display.js | assets/src/edit-story/elements/video/display.js | /**
* External dependencies
*/
import PropTypes from 'prop-types';
import styled from 'styled-components';
/**
* Internal dependencies
*/
import { ElementWithPosition, ElementWithSize, ElementWithRotation } from '../shared';
const Element = styled.video`
${ ElementWithPosition }
${ ElementWithSize }
${ Element... | /**
* External dependencies
*/
import PropTypes from 'prop-types';
import styled from 'styled-components';
/**
* Internal dependencies
*/
import { ElementWithPosition, ElementWithSize, ElementWithRotation } from '../shared';
const Element = styled.video`
${ ElementWithPosition }
${ ElementWithSize }
${ Element... | Add some basic video element. | Add some basic video element.
| JavaScript | apache-2.0 | GoogleForCreators/web-stories-wp,GoogleForCreators/web-stories-wp,GoogleForCreators/web-stories-wp,GoogleForCreators/web-stories-wp,GoogleForCreators/web-stories-wp | javascript | ## Code Before:
/**
* External dependencies
*/
import PropTypes from 'prop-types';
import styled from 'styled-components';
/**
* Internal dependencies
*/
import { ElementWithPosition, ElementWithSize, ElementWithRotation } from '../shared';
const Element = styled.video`
${ ElementWithPosition }
${ ElementWithSi... |
2662b56530d4a42bc7cd8cedff7518bd3c5cf7fa | p-adic/src/test/java/vvk/numbers/PAdicCombinedOperationsTest.java | p-adic/src/test/java/vvk/numbers/PAdicCombinedOperationsTest.java | package vvk.numbers;
/**
* Created with IntelliJ IDEA.
* User: Estraaanged
* Date: 26.04.14
* Time: 18:28
* To change this template use File | Settings | File Templates.
*/
public class PAdicCombinedOperationsTest {
}
| package vvk.numbers;
import org.junit.Assert;
import org.junit.Test;
public class PAdicCombinedOperationsTest {
@Test
public void testOperations() {
PAdic a = new PAdic("11", 7);
PAdic b = new PAdic("2", 7);
PAdic c = new PAdic("60", 7);
PAdic result1 = a.divide(b);
Sy... | Test with sequence of operations added. TODO: More tests. | Test with sequence of operations added. TODO: More tests.
| Java | mit | vvk/P-adic-numbers,Estraaanged/P-adic-numbers | java | ## Code Before:
package vvk.numbers;
/**
* Created with IntelliJ IDEA.
* User: Estraaanged
* Date: 26.04.14
* Time: 18:28
* To change this template use File | Settings | File Templates.
*/
public class PAdicCombinedOperationsTest {
}
## Instruction:
Test with sequence of operations added. TODO: More tests.
## ... |
f6468fd5f96af32f136abc197c07c97bda74885a | cookbooks/ondemand_base/README.rdoc | cookbooks/ondemand_base/README.rdoc | = DESCRIPTION:
Applies base OS setup for Ubuntu, Windows, and CentOS systems
= REQUIREMENTS:
= ATTRIBUTES:
= USAGE:
The ondemand_server role should include each of the 3 recipes in its runlist.
| = DESCRIPTION:
Applies base OS setup for Ubuntu, Windows, and CentOS systems
Changelog:
1.3:
* Installs vmware-tools
* Installs and configures NRPE including configuration of nrpe.cfg and installation of plugins
* Installs likewise the proper way avoiding some failure scenarios, which required systems be rebuilt
* ... | Add change log to ondemand_base | Add change log to ondemand_base
| RDoc | apache-2.0 | scottymarshall/rundeck,scottymarshall/rundeck,scottymarshall/rundeck | rdoc | ## Code Before:
= DESCRIPTION:
Applies base OS setup for Ubuntu, Windows, and CentOS systems
= REQUIREMENTS:
= ATTRIBUTES:
= USAGE:
The ondemand_server role should include each of the 3 recipes in its runlist.
## Instruction:
Add change log to ondemand_base
## Code After:
= DESCRIPTION:
Applies base OS setup f... |
0a0d6b87aac75f298194b43cfcea67b0d1651a97 | knights/library.py | knights/library.py | from functools import partial
class Library:
'''
Container for registering tags and filters
'''
def __init__(self):
self.tags = {}
self.filters = {}
self.helpers = {}
def tag(self, func=None, name=None):
if func is None:
return partial(self.tag, name=na... | from functools import partial
class Library:
'''
Container for registering tags and helpers
'''
def __init__(self):
self.tags = {}
self.helpers = {}
def tag(self, func=None, name=None):
if func is None:
return partial(self.tag, name=name)
if name is No... | Remove another reference to filter | Remove another reference to filter
| Python | mit | funkybob/knights-templater,funkybob/knights-templater | python | ## Code Before:
from functools import partial
class Library:
'''
Container for registering tags and filters
'''
def __init__(self):
self.tags = {}
self.filters = {}
self.helpers = {}
def tag(self, func=None, name=None):
if func is None:
return partial(s... |
7387936e37a52ef41fcd36a0034da7a394dfbcaf | webapp/editor/text-editor.html | webapp/editor/text-editor.html | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Editor</title>
<style type="text/css" media="screen">
body {
overflow: hidden;
margin: 0px;
padding: 0px;
}
#editor {
margin: 0px;
position: absolute;
... | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Editor</title>
<style type="text/css" media="screen">
body {
overflow: hidden;
margin: 0px;
padding: 0px;
}
#editor {
margin: 0px;
position: absolute;
... | Change text editor to use transparent background | Change text editor to use transparent background
| HTML | apache-2.0 | 3-Round-Stones/callimachus,jimmccusker/callimachus,Thellmann/callimachus,jimmccusker/callimachus,Thellmann/callimachus,3-Round-Stones/callimachus,Thellmann/callimachus,Thellmann/callimachus,edwardsph/callimachus,jimmccusker/callimachus,edwardsph/callimachus,jimmccusker/callimachus,jimmccusker/callimachus,3-Round-Stones... | html | ## Code Before:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Editor</title>
<style type="text/css" media="screen">
body {
overflow: hidden;
margin: 0px;
padding: 0px;
}
#editor {
margin: 0px;
position:... |
d89bb741a257fd9d04dfe27e117304a3e4015637 | app/views/teachers/show.html.haml | app/views/teachers/show.html.haml | / add picture at some point
/ edit info
/ delete self
= image_tag(@teacher.avatar.url, size: "300x250")
%h2= @teacher.full_name
%p= @teacher.email
= render partial: '/students/table', locals: { students: @students }
= button_to "Remove #{@teacher.full_name}", teacher_path, method: :delete, class: "btn btn-danger"
| = image_tag(@teacher.avatar.url, size: "300x250")
%h2= @teacher.full_name
%p= @teacher.email
= render partial: '/students/table', locals: { students: @students }
- if is_admin? || @teacher.id == current_teacher.id
= button_to "Remove #{@teacher.full_name}", teacher_path, method: :delete, class: "btn btn-danger"
| Stop teachers from deleting each other unless admin | Stop teachers from deleting each other unless admin
| Haml | mit | GregoryBL/StrangerTeams,GregoryBL/StrangerTeams,GregoryBL/StrangerTeams | haml | ## Code Before:
/ add picture at some point
/ edit info
/ delete self
= image_tag(@teacher.avatar.url, size: "300x250")
%h2= @teacher.full_name
%p= @teacher.email
= render partial: '/students/table', locals: { students: @students }
= button_to "Remove #{@teacher.full_name}", teacher_path, method: :delete, class: "btn ... |
ad6879426e6f0fc32c1fe20baf2c1eb66d6a44c9 | Site/index.html | Site/index.html | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>TermKit</title>
<style type="text/css" media="screen"... | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>TermKit, the next generation terminal</title>
<style ... | Move usage tracker to usage.termkit.org | Move usage tracker to usage.termkit.org
| HTML | bsd-3-clause | vineck/TermKit,Floby/TermKit,Floby/TermKit,unconed/TermKit,slang800/TermKit,colinmarc/TermKit,ChineseDron/TermKit,Floby/TermKit,Floby/TermKit,colinmarc/TermKit,colinmarc/TermKit,FireyFly/TermKit,ChineseDron/TermKit,unconed/TermKit,slang800/TermKit,unconed/TermKit,vineck/TermKit,colinmarc/TermKit,ChineseDron/TermKit,Fir... | html | ## Code Before:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>TermKit</title>
<style type="text/css... |
aa18c0731e8c47b7415a16e338734d9cd0162ccb | examples/blocks/MediaBlock.scss | examples/blocks/MediaBlock.scss | .MediaBlock {
display: inline-block;
position: relative;
border: 0;
padding: 0;
cursor: pointer;
&:focus {
outline: none;
}
&__icon-wrapper {
position: absolute;
top: 0;
right: 0;
background: $draftail-editor-chrome;
color: $draftail-edit... | .MediaBlock {
display: inline-block;
position: relative;
border: 0;
padding: 0;
cursor: pointer;
&:focus {
outline: none;
}
&__icon-wrapper {
position: absolute;
top: 0;
right: 0;
background: $draftail-editor-chrome;
color: $draftail-edit... | Fix media block bottom border in Safari, Android Chrome | Fix media block bottom border in Safari, Android Chrome
| SCSS | mit | springload/draftail,springload/draftail,springload/draftail,springload/draftail | scss | ## Code Before:
.MediaBlock {
display: inline-block;
position: relative;
border: 0;
padding: 0;
cursor: pointer;
&:focus {
outline: none;
}
&__icon-wrapper {
position: absolute;
top: 0;
right: 0;
background: $draftail-editor-chrome;
color... |
1af644ba76f52848c5278dbb886291c4e548f7e0 | test/unit/org/codehaus/groovy/grails/plugins/orm/auditable/AuditableRegistryTests.groovy | test/unit/org/codehaus/groovy/grails/plugins/orm/auditable/AuditableRegistryTests.groovy | package org.codehaus.groovy.grails.plugins.orm.auditable
import org.codehaus.groovy.grails.commons.GrailsApplication
import grails.test.GrailsUnitTestCase
/**
* Created by IntelliJ IDEA.
* User: hartsock
* Date: 2/2/12
* Time: 8:38 PM
* To change this template use File | Settings | File Templates.
*/
class Audi... | package org.codehaus.groovy.grails.plugins.orm.auditable
import org.codehaus.groovy.grails.commons.GrailsApplication
import grails.test.GrailsUnitTestCase
/**
* Created by IntelliJ IDEA.
* User: hartsock
* Date: 2/2/12
* Time: 8:38 PM
* To change this template use File | Settings | File Templates.
*/
class Audi... | Revert "helps diagnose where the stack fails when altering the abstract base class for this type of test." | Revert "helps diagnose where the stack fails when altering the abstract base class for this type of test."
This reverts commit 523ce11ceec2a429adf73bc2ac35c215facf46c6.
| Groovy | apache-2.0 | dmahapatro/grails-audit-logging-plugin,tkvw/grails-audit-logging-plugin,dmahapatro/grails-audit-logging-plugin,jetgeng/grails-audit-logging-plugin,robertoschwald/grails-audit-logging-plugin,jetgeng/grails-audit-logging-plugin | groovy | ## Code Before:
package org.codehaus.groovy.grails.plugins.orm.auditable
import org.codehaus.groovy.grails.commons.GrailsApplication
import grails.test.GrailsUnitTestCase
/**
* Created by IntelliJ IDEA.
* User: hartsock
* Date: 2/2/12
* Time: 8:38 PM
* To change this template use File | Settings | File Templates... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.