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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
edfd117d4c76ff14e3ab6d9a0bf580acf53264c2 | app/assets/stylesheets/lib/_functions.scss | app/assets/stylesheets/lib/_functions.scss | @function u($multiplier) {
$baseline-number: 6;
@if $responsive == true {
@return 16 / ($multiplier * $baseline-number) + rem
}
@return $multiplier * $baseline-number + px
}
| // function based on the vertical rhythm, used to calculate all proportions without visual clutter
//
// e.g. padding: u(1) u(2) u(3) u(1);
@function u($multiplier) {
$baseline-number: 6;
@if $responsive == true {
@return ($multiplier * $baseline-number) / 16 + rem
}
@return $multiplier * $baseline-numb... | Add comments to new function | Add comments to new function
| SCSS | mit | moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend | scss | ## Code Before:
@function u($multiplier) {
$baseline-number: 6;
@if $responsive == true {
@return 16 / ($multiplier * $baseline-number) + rem
}
@return $multiplier * $baseline-number + px
}
## Instruction:
Add comments to new function
## Code After:
// function based on the vertical rhythm, used to calc... |
6ee05b36e9bc2df15eb145acab9da156fbca8d84 | public/stylesheets/sass/_linear-gradient.scss | public/stylesheets/sass/_linear-gradient.scss | @mixin linear-gradient ($from, $to) {
background: $from;
background: -moz-linear-gradient(top, $from, $to);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0, $from), color-stop(1, $to));
}
| @mixin linear-gradient ($from, $to) {
background: $from;
background: -moz-linear-gradient(top, $from, $to); // FF3.6
background: -ms-linear-gradient(top, $from, $to); // IE10
background: -o-linear-gradient(top, $from, $to); // Opera 11.10+
background: -webkit-gradient(linear, left top, left bottom... | Support more vendor specific linear-gradients | Support more vendor specific linear-gradients
| SCSS | mit | thoughtbot/flutie,diraulo/flutie,diraulo/flutie,fs/styleguides,openeducation/flutie,openeducation/flutie,thoughtbot/flutie | scss | ## Code Before:
@mixin linear-gradient ($from, $to) {
background: $from;
background: -moz-linear-gradient(top, $from, $to);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0, $from), color-stop(1, $to));
}
## Instruction:
Support more vendor specific linear-gradients
## Code After:
@mixin... |
32fbe3dc4686e413886911f5d373137648f08614 | packages/shim/src/index.js | packages/shim/src/index.js | /* eslint-disable global-require */
require('@webcomponents/template');
if (!window.customElements) require('@webcomponents/custom-elements');
if (!document.body.attachShadow) require('@webcomponents/shadydom');
require('@webcomponents/shadycss/scoping-shim.min');
require('@webcomponents/shadycss/apply-shim.min');
| /* eslint-disable global-require */
require('@webcomponents/template');
if (!document.body.attachShadow) require('@webcomponents/shadydom');
if (!window.customElements) require('@webcomponents/custom-elements');
require('@webcomponents/shadycss/scoping-shim.min');
require('@webcomponents/shadycss/apply-shim.min');
| Fix ShadyDOM before Custom Elements polyfill | Fix ShadyDOM before Custom Elements polyfill
| JavaScript | mit | hybridsjs/hybrids | javascript | ## Code Before:
/* eslint-disable global-require */
require('@webcomponents/template');
if (!window.customElements) require('@webcomponents/custom-elements');
if (!document.body.attachShadow) require('@webcomponents/shadydom');
require('@webcomponents/shadycss/scoping-shim.min');
require('@webcomponents/shadycss/appl... |
8cc4640490b7a1e28d322800b0df64005ab0e0ad | app/components/widgets/search-bar.scss | app/components/widgets/search-bar.scss |
.search-bar-input {
width: calc(100% - 50px);
padding: 9px;
}
.filter-button {
position: absolute;
right: 17px;
.arrow {
&::before,
&::after {
left: 16px;
}
}
.search-filter {
z-index: 3;
padding: 4px 1em;
border: none;
width: 50px;... |
.search-bar-input {
width: calc(100% - 50px);
padding: 9px;
}
.filter-button {
position: absolute;
right: 17px;
.arrow {
&::before,
&::after {
left: 16px;
}
&::after {
border-bottom-color: #eee;
}
}
.search-filter {
z-index: 3;
... | Adjust filter menu arrow color | Adjust filter menu arrow color
| SCSS | apache-2.0 | codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client | scss | ## Code Before:
.search-bar-input {
width: calc(100% - 50px);
padding: 9px;
}
.filter-button {
position: absolute;
right: 17px;
.arrow {
&::before,
&::after {
left: 16px;
}
}
.search-filter {
z-index: 3;
padding: 4px 1em;
border: none;
... |
6b22784da2375fc24a790b8be87778479d176cdb | templates/bio.html | templates/bio.html | {% extends "base.html" %}
{% block meta %}
<title>{{ pages.get('bio').title }} - Claudio Pastorini</title>
<meta name="description" content="{{ page.subtitle }}">
{% endblock %}
{% block ogmeta %}
{{ super() }}
<meta property="og:title" content="{{ pages.get('bio').title }}"/>
<meta property="... | {% extends "base.html" %}
{% block meta %}
<meta name="google-site-verification" content="IJiK-LS2ThwdodgTy2nrfSzNF66XOQA2H61IYIZXIIY"/>
<title>{{ pages.get('bio').title }} - Claudio Pastorini</title>
<meta name="description" content="{{ page.subtitle }}">
{% endblock %}
{% block ogmeta %}
{{ super... | Add Tag HTML for Google verification | Add Tag HTML for Google verification
| HTML | mit | claudiopastorini/claudiopastorini.github.io,claudiopastorini/claudiopastorini.github.io,claudiopastorini/claudiopastorini.github.io | html | ## Code Before:
{% extends "base.html" %}
{% block meta %}
<title>{{ pages.get('bio').title }} - Claudio Pastorini</title>
<meta name="description" content="{{ page.subtitle }}">
{% endblock %}
{% block ogmeta %}
{{ super() }}
<meta property="og:title" content="{{ pages.get('bio').title }}"/>
... |
295d570dcc517de13c60f3b7774cf388150bd4c3 | tools/templates/tools/character_detail.html | tools/templates/tools/character_detail.html | {% extends 'base.html' %}
{% load static from staticfiles %}
{% load frontend_extras %}
{% block header %}
{{ character.name }}
{% endblock header %}
{% block content %}
<div>
Age: {{ character.age|default:'-' }}
</div>
<div>
Appearance: {{ character.appearance|default:'-' }}
</div>
{% endblock content %}
| {% extends 'base.html' %}
{% load static from staticfiles %}
{% load frontend_extras %}
{% block header %}
{{ character.name }}
{% endblock header %}
{% block content %}
<div>
Age: {{ character.age|default:'-' }}
</div>
<div>
Appearance: {{ character.appearance|default:'-' }}
</div>
<div class="character-notes">
{... | Add CharacterNotes response to detail view | Add CharacterNotes response to detail view
| HTML | mit | Kromey/akwriters,Kromey/akwriters,Kromey/fbxnano,Kromey/akwriters,Kromey/akwriters,Kromey/fbxnano,Kromey/fbxnano,Kromey/fbxnano | html | ## Code Before:
{% extends 'base.html' %}
{% load static from staticfiles %}
{% load frontend_extras %}
{% block header %}
{{ character.name }}
{% endblock header %}
{% block content %}
<div>
Age: {{ character.age|default:'-' }}
</div>
<div>
Appearance: {{ character.appearance|default:'-' }}
</div>
{% endblock cont... |
5cfcf4c25ab0118e29915a65c925cca4011da17b | .travis.yml | .travis.yml | language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm
cache:
directories:
- vendor
before_script:
- composer install
script:
- bin/phpcs --standard=psr2 src/
| language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm
cache:
directories:
- vendor
before_script:
- composer install
script:
- bin/phpcs --standard=psr2 bin/projectlint src/
| Add "projectlint" binary to PHP_CodeSniffer checking | Add "projectlint" binary to PHP_CodeSniffer checking
| YAML | bsd-3-clause | jmfontaine/projectlint | yaml | ## Code Before:
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm
cache:
directories:
- vendor
before_script:
- composer install
script:
- bin/phpcs --standard=psr2 src/
## Instruction:
Add "projectlint" binary to PHP_CodeSniffer checking
## Code After:
language: php
php:
- 5.3
- 5.4
- ... |
ad8747a45e070a12204cb2170214c222b5e684a6 | .travis.yml | .travis.yml | language: ruby
script: bundle exec rake test
cache: bundler
sudo: false
after_success:
- bundle exec rake test:accuracy
- bundle exec rake benchmark:memory
rvm:
- 1.9.3
- 2.0.0
- 2.1
- 2.2
- ruby-head
- jruby-1.7.21
- jruby-9.0.0.0
- jruby-head
- rbx-2.4.1
- rbx-2.5.8
matrix:
allow... | language: ruby
script: bundle exec rake test
cache: bundler
sudo: false
before_install:
- 'if [[ "$TRAVIS_RUBY_VERSION" =~ "jruby" ]]; then rvm get head && rvm use --install $TRAVIS_RUBY_VERSION; fi'
after_success:
- bundle exec rake test:accuracy
- bundle exec rake benchmark:memory
rvm:
- 1.9.3
-... | Make sure to use the latest version of rvm | Make sure to use the latest version of rvm
The version of rvm installed on Travis is too old and it installs jruby-9000pre1 which doesn't install the interception gem properly.
| YAML | mit | Ye-Yong-Chi/did_you_mean,yui-knk/did_you_mean,yuki24/did_you_mean | yaml | ## Code Before:
language: ruby
script: bundle exec rake test
cache: bundler
sudo: false
after_success:
- bundle exec rake test:accuracy
- bundle exec rake benchmark:memory
rvm:
- 1.9.3
- 2.0.0
- 2.1
- 2.2
- ruby-head
- jruby-1.7.21
- jruby-9.0.0.0
- jruby-head
- rbx-2.4.1
- rbx-2.5.8
... |
78cddedf39239d50fbb33b7c5bf3bca68233709d | src/main/java/org/joow/elevator2/Actions.java | src/main/java/org/joow/elevator2/Actions.java | package org.joow.elevator2;
import com.google.common.base.Optional;
import com.google.common.base.Predicate;
import com.google.common.collect.Collections2;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
public class Actions {
public final List<Action> actions = new CopyOnWriteArrayList<... | package org.joow.elevator2;
import com.google.common.base.Optional;
import com.google.common.base.Predicate;
import com.google.common.collect.Collections2;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
public class Actions {
private final List<Action> actions = new CopyOnWriteArrayList... | Use FloorPredicate class to remove actions at given floor. | Use FloorPredicate class to remove actions at given floor.
| Java | bsd-2-clause | joow/CodeElevator,joow/CodeElevator | java | ## Code Before:
package org.joow.elevator2;
import com.google.common.base.Optional;
import com.google.common.base.Predicate;
import com.google.common.collect.Collections2;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
public class Actions {
public final List<Action> actions = new CopyO... |
87cf5c61ea9a023d125b59688bd687d1d465d8c3 | src/sagas.js | src/sagas.js | /** @babel */
/** global atom */
import { delay } from 'redux-saga'
import { put, call, select, take, fork } from 'redux-saga/effects'
import { run } from 'node-jq'
import { ACTIONS as ACTION } from './constants'
const ONE_SEC = 1000
// const jq = (filter) => {
// return (dispatch, getState) => {
// const { ac... | /** @babel */
/** global atom */
import { delay } from 'redux-saga'
import { put, call, select, take, fork } from 'redux-saga/effects'
import { run } from 'node-jq'
import { ACTIONS as ACTION } from './constants'
const ONE_SEC = 1000
function * jq () {
while (true) {
const action = yield take(ACTION.JQ_FILTER_... | Remove commented thunk code in saga | Remove commented thunk code in saga
| JavaScript | mit | sanack/atom-jq | javascript | ## Code Before:
/** @babel */
/** global atom */
import { delay } from 'redux-saga'
import { put, call, select, take, fork } from 'redux-saga/effects'
import { run } from 'node-jq'
import { ACTIONS as ACTION } from './constants'
const ONE_SEC = 1000
// const jq = (filter) => {
// return (dispatch, getState) => {
/... |
2953f0dfce560a7205fad56e455b20e6b3f4bcbb | README.md | README.md |
A small set of scripts to set up Raspberry Pi devices to a common configuration
## Installation
To configure preferences (WiFi, keyboard, etc.), first run:
```bash
$ sudo ./setup.sh
```
This script will trigger a reboot. After rebooting, run the update script\*
to get the latest firmware and packages:
```bash
$ c... |
A small set of scripts to set up Raspberry Pi devices to a common configuration
## Installation
To configure preferences (WiFi, keyboard, etc.), first run:
```bash
$ sudo ./bootstrap.sh
```
This script will trigger a reboot. After rebooting, run the setup script\*
to get the latest firmware, install default packag... | Update docs to reflect new path changes and nomenclature | Update docs to reflect new path changes and nomenclature
| Markdown | mit | restlessdesign/raspi-setup | markdown | ## Code Before:
A small set of scripts to set up Raspberry Pi devices to a common configuration
## Installation
To configure preferences (WiFi, keyboard, etc.), first run:
```bash
$ sudo ./setup.sh
```
This script will trigger a reboot. After rebooting, run the update script\*
to get the latest firmware and packag... |
6b4f7a9c6c01e16e2a777962b7a1f5c3536ced25 | Data/Aeson/Encode/Functions.hs | Data/Aeson/Encode/Functions.hs | module Data.Aeson.Encode.Functions
(
brackets
, builder
, char7
, foldable
, list
, pairs
) where
import Data.Aeson.Encode.Builder
import Data.Aeson.Types.Class
import Data.Aeson.Types.Internal
import Data.ByteString.Builder (Builder, char7)
import Data.ByteString.Builder.Prim (primBo... | module Data.Aeson.Encode.Functions
(
brackets
, builder
, char7
, foldable
, list
, pairs
) where
import Data.Aeson.Encode.Builder
import Data.Aeson.Types.Class
import Data.Aeson.Types.Internal
import Data.ByteString.Builder (Builder, char7)
import Data.ByteString.Builder.Prim (primBo... | Correct the definition of pairs | Correct the definition of pairs
| Haskell | bsd-3-clause | bwo/aeson,nurpax/aeson,neobrain/aeson,roelvandijk/aeson,23Skidoo/aeson,aelve/json-x,sol/aeson,roelvandijk/aeson,abbradar/aeson,lykahb/aeson,SeanRBurton/aeson,sol/aeson,dmjio/aeson,sol/aeson,neobrain/aeson,timmytofu/aeson,jkarni/aeson | haskell | ## Code Before:
module Data.Aeson.Encode.Functions
(
brackets
, builder
, char7
, foldable
, list
, pairs
) where
import Data.Aeson.Encode.Builder
import Data.Aeson.Types.Class
import Data.Aeson.Types.Internal
import Data.ByteString.Builder (Builder, char7)
import Data.ByteString.Buil... |
edf641fede9453d22c0d0ba3880aedbacb8fafec | app/scripts-browserify/mobile.js | app/scripts-browserify/mobile.js | 'use strict';
const helpers = require('../../shared/helpers');
function adjustClasses() {
if (helpers.isMobile($) === true) {
$('body').addClass('is-mobile').removeClass('is-desktop');
}
else {
$('body').addClass('is-desktop').removeClass('is-mobile');
}
}
window.addEventListener('resize', adjustClas... | 'use strict';
const helpers = require('../../shared/helpers');
// General function to add 'is-mobile' and 'is-desktop' class to body.
// Used to adjust styling for mobile/desktop and called on multiple events.
function adjustClasses() {
if (helpers.isMobile($) === true) {
$('body').addClass('is-mobile').removeC... | Add comment to adjustClasses function | Add comment to adjustClasses function
KB-419
| JavaScript | mit | CopenhagenCityArchives/kbh-billeder,CopenhagenCityArchives/kbh-billeder,CopenhagenCityArchives/kbh-billeder | javascript | ## Code Before:
'use strict';
const helpers = require('../../shared/helpers');
function adjustClasses() {
if (helpers.isMobile($) === true) {
$('body').addClass('is-mobile').removeClass('is-desktop');
}
else {
$('body').addClass('is-desktop').removeClass('is-mobile');
}
}
window.addEventListener('res... |
2de4f371e4174f992b09ffdc27307ea33517f6dd | .travis.yml | .travis.yml | language: php
php:
- 7.1
- 7.2
- 7.3
- 7.4snapshot
cache:
directories:
- ./vendor
- $HOME/.composer/cache
env:
- LARAVEL_VERSION=5.8.* TESTBENCH_VERSION=3.8.*
- LARAVEL_VERSION=6.* TESTBENCH_VERSION=4.*
before_script:
- composer self-update
- composer require "laravel/framework:${LARAVEL_V... | language: php
php:
- 7.1
- 7.2
- 7.3
- 7.4snapshot
cache:
directories:
- ./vendor
- $HOME/.composer/cache
env:
- LARAVEL_VERSION=5.8.* TESTBENCH_VERSION=3.8.*
- LARAVEL_VERSION=6.* TESTBENCH_VERSION=4.*
matrix:
exclude:
- php: 7.1
env: LARAVEL_VERSION=6.*
before_script:
- composer s... | Exclude PHP 7.1 setup for Laravel 6 | Exclude PHP 7.1 setup for Laravel 6
| YAML | mit | fntneves/laravel-transactional-events | yaml | ## Code Before:
language: php
php:
- 7.1
- 7.2
- 7.3
- 7.4snapshot
cache:
directories:
- ./vendor
- $HOME/.composer/cache
env:
- LARAVEL_VERSION=5.8.* TESTBENCH_VERSION=3.8.*
- LARAVEL_VERSION=6.* TESTBENCH_VERSION=4.*
before_script:
- composer self-update
- composer require "laravel/frame... |
3284ea678b3fdd1fdef23eea9861c1f72783f217 | README.md | README.md |
Jiff is an implementation of a subset of [JSON Patch RFC6902](https://tools.ietf.org/html/rfc6902), plus a Diff implementation that generates compliant patches.
It currently supports JSON Patch `add`, `replace`, and `remove` operations. It *does not* yet support `move`, `copy`, and `test`.
## Get it
`npm install -... |
Jiff is an implementation of a subset of [JSON Patch RFC6902](https://tools.ietf.org/html/rfc6902), plus a Diff implementation that generates compliant patches.
It currently supports JSON Patch `add`, `replace`, and `remove` operations. It *does not* yet support `move`, `copy`, and `test`.
## Get it
`npm install -... | Add info about InvalidPatchOperationException to API section | Add info about InvalidPatchOperationException to API section
| Markdown | mit | grncdr/jiff,jaredcacurak/jiff | markdown | ## Code Before:
Jiff is an implementation of a subset of [JSON Patch RFC6902](https://tools.ietf.org/html/rfc6902), plus a Diff implementation that generates compliant patches.
It currently supports JSON Patch `add`, `replace`, and `remove` operations. It *does not* yet support `move`, `copy`, and `test`.
## Get it... |
5181e1f5bc4efb1c1dd6682137b3af7079c262a6 | app/controllers/questions/new.js | app/controllers/questions/new.js | import Ember from 'ember';
export default Ember.Controller.extend({
needs: ['application'],
selectedPerson: Ember.computed.alias('controllers.application.attrs.person'),
errorMessage: null,
titleIsValid: function() {
var title = this.get('model.title');
return (!Ember.isEmpty(title) && title.length > ... | import Ember from 'ember';
export default Ember.Controller.extend({
needs: ['application'],
selectedPerson: Ember.computed.alias('controllers.application.attrs.person'),
errorMessage: null,
titleIsValid: Ember.computed('model.title', function() {
var title = this.get('model.title');
return (!Ember.isE... | Switch computed property syntax via ember-watson | Switch computed property syntax via ember-watson
| JavaScript | mit | opengovernment/person-widget,opengovernment/person-widget | javascript | ## Code Before:
import Ember from 'ember';
export default Ember.Controller.extend({
needs: ['application'],
selectedPerson: Ember.computed.alias('controllers.application.attrs.person'),
errorMessage: null,
titleIsValid: function() {
var title = this.get('model.title');
return (!Ember.isEmpty(title) &&... |
3aac304bfb0bf98e24e48369d5c21bc3ed65c551 | elements/Pod/Classes/EditProfileViewController.swift | elements/Pod/Classes/EditProfileViewController.swift | //
// EditProfileViewController.swift
// Pods
//
// Created by John Rikard Nilsen on 23/2/16.
//
//
import UIKit
import Tapglue
class EditProfileViewController: UIViewController {
@IBOutlet weak var userNameTextField: UITextField!
override func viewDidLoad() {
super.viewDidLoad()
userNameT... | //
// EditProfileViewController.swift
// Pods
//
// Created by John Rikard Nilsen on 23/2/16.
//
//
import UIKit
import Tapglue
class EditProfileViewController: UIViewController {
@IBOutlet weak var userNameTextField: UITextField!
override func viewDidLoad() {
super.viewDidLoad()
userNameT... | Add background color to edit profile screen | Add background color to edit profile screen
| Swift | mit | tapglue/elements-ios,tapglue/elements-ios,tapglue/elements-ios | swift | ## Code Before:
//
// EditProfileViewController.swift
// Pods
//
// Created by John Rikard Nilsen on 23/2/16.
//
//
import UIKit
import Tapglue
class EditProfileViewController: UIViewController {
@IBOutlet weak var userNameTextField: UITextField!
override func viewDidLoad() {
super.viewDidLoad()
... |
40622d59bcad4688e26f3bfea6578a2554bde9ec | docker-dev.sh | docker-dev.sh | docker run -i --rm -p 4000:4000 -v "$PWD:/srv/jekyll" numascott/jekylldev:latest
# Breaking it down
# docker run ... numascott/jekylldev:latest
# create a container from the latest numascott/jekyll image
# https://hub.docker.com/r/numascott/jekylldev/
# -i
# Use interactive mode so that the output from jekyll is dis... | docker run -i --rm -p 4000:4000 -v "$PWD:/srv/jekyll" numascott/jekylldev:latest serve --incremental
# Breaking it down
# docker run ... numascott/jekylldev:latest
# create a container from the latest numascott/jekyll image
# https://hub.docker.com/r/numascott/jekylldev/
# -i
# Use interactive mode so that the outpu... | Update bash script with incremental build | Update bash script with incremental build
| Shell | apache-2.0 | kev-chien/website,pioneers/website,pioneers/website,pioneers/website,kev-chien/website,pioneers/website,kev-chien/website,kev-chien/website,pioneers/website,kev-chien/website | shell | ## Code Before:
docker run -i --rm -p 4000:4000 -v "$PWD:/srv/jekyll" numascott/jekylldev:latest
# Breaking it down
# docker run ... numascott/jekylldev:latest
# create a container from the latest numascott/jekyll image
# https://hub.docker.com/r/numascott/jekylldev/
# -i
# Use interactive mode so that the output fr... |
70c1bfb393752cc62bfc1ff639153c3b6021f220 | vector/src/main/res/layout/public_room_spinner_item.xml | vector/src/main/res/layout/public_room_spinner_item.xml | <?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@android:id/text1"
style="?android:attr/spinnerItemStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
... | <?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@android:id/text1"
style="?android:attr/spinnerItemStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
... | Fix Jenkins build (lint issue) | Fix Jenkins build (lint issue)
| XML | apache-2.0 | vector-im/riot-android,vector-im/vector-android,vector-im/riot-android,vector-im/riot-android,vector-im/vector-android,vector-im/vector-android,vector-im/vector-android,vector-im/riot-android,vector-im/riot-android | xml | ## Code Before:
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@android:id/text1"
style="?android:attr/spinnerItemStyle"
android:layout_width="match_parent"
android:layout_height="... |
df779615cd9c7e4ed4b75570c96db8dfdb0e8177 | Parsimmon/Parsimmon/TaggedToken.swift | Parsimmon/Parsimmon/TaggedToken.swift | //
// TaggedToken.swift
// Parsimmon
//
// Created by Jordan Kay on 2/19/15.
//
//
import Foundation
//
// ParsimmonTaggedToken.swift
// Parsimmon
//
// Created by Jordan Kay on 2/17/15.
//
//
import Foundation
class TaggedToken: NSObject, Equatable {
let token: String
let tag: String
init(token:... | //
// TaggedToken.swift
// Parsimmon
//
// Created by Jordan Kay on 2/19/15.
//
//
import Foundation
class TaggedToken: NSObject, Equatable {
let token: String
let tag: String
init(token: String, tag: String) {
self.token = token
self.tag = tag
}
override var hash: Int {
... | Fix accidental duplicate boilerplate form copy-paste | Fix accidental duplicate boilerplate form copy-paste
| Swift | mit | tptee/Parsimmon,tptee/Parsimmon,ludovic-coder/Parsimmon,ludovic-coder/Parsimmon,ayanonagon/Parsimmon,jonsimington/Parsimmon,ayanonagon/Parsimmon,jonsimington/Parsimmon | swift | ## Code Before:
//
// TaggedToken.swift
// Parsimmon
//
// Created by Jordan Kay on 2/19/15.
//
//
import Foundation
//
// ParsimmonTaggedToken.swift
// Parsimmon
//
// Created by Jordan Kay on 2/17/15.
//
//
import Foundation
class TaggedToken: NSObject, Equatable {
let token: String
let tag: String
... |
6578d26b06121f1e1e87fea267d1e6696b1ddb34 | js/scrollback.js | js/scrollback.js | document.addEventListener("wheel", function(e) {
if (e.shiftKey && e.deltaX != 0) {
window.history.go(-Math.sign(e.deltaX));
return e.preventDefault();
}
});
| document.addEventListener("wheel", function(e) {
if (e.shiftKey && (e.deltaX != 0 || e.deltaY != 0)) {
window.history.go(-Math.sign(e.deltaX ? e.deltaX : e.deltaY));
return e.preventDefault();
}
});
| Fix a problem of deltaX and deltaY | Fix a problem of deltaX and deltaY
Signed-off-by: Dongyun Jin <25d657a5cae33e06b1c3348113f358ba8b6c833f@gmail.com>
| JavaScript | mit | jezcope/chrome-scroll-back | javascript | ## Code Before:
document.addEventListener("wheel", function(e) {
if (e.shiftKey && e.deltaX != 0) {
window.history.go(-Math.sign(e.deltaX));
return e.preventDefault();
}
});
## Instruction:
Fix a problem of deltaX and deltaY
Signed-off-by: Dongyun Jin <25d657a5cae33e06b1c3348113f358ba8b6c833f@gmail.com>
... |
e4dd5b9a09dee5e81fd50c05b394746559e32e63 | ci3/configs/ci3-secret.yaml | ci3/configs/ci3-secret.yaml | apiVersion: v1
data:
# DOCKER_HUB: ~
# DOCKER_PASSWORD: ~
# DOCKER_USER: ~
#
# All values here are exposed to ci3 server and agents via env variables
# with CI3_SECRET_ prefix
# $CI3_SECRET_GITHUB_TOKEN often used for checkouting submodules,
# example can be found in ../repo-configs/ci3.yaml
#
# e... | apiVersion: v1
data:
# DOCKER_HUB: ~
# DOCKER_PASSWORD: ~
# DOCKER_USER: ~
#
# All values here are exposed to ci3 server and agents via env variables
# with CI3_SECRET_ prefix
# $CI3_SECRET_GITHUB_TOKEN often used for checkouting submodules,
# example can be found in ../repo-configs/ci3.yaml
#
# e... | Update info about getting CHATID | Update info about getting CHATID
| YAML | epl-1.0 | HealthSamurai/ci3 | yaml | ## Code Before:
apiVersion: v1
data:
# DOCKER_HUB: ~
# DOCKER_PASSWORD: ~
# DOCKER_USER: ~
#
# All values here are exposed to ci3 server and agents via env variables
# with CI3_SECRET_ prefix
# $CI3_SECRET_GITHUB_TOKEN often used for checkouting submodules,
# example can be found in ../repo-configs/ci... |
0938ea3964013ec984118e96c7b126cf9db900a5 | src/prelude/string.ts | src/prelude/string.ts | export function concat(xs: string[]): string {
return xs.reduce((a, b) => a + b, '');
}
export function capitalize(s: string): string {
return toUpperCase(s.charAt(0)) + toLowerCase(s.slice(1));
}
export function toUpperCase(s: string): string {
return s.toUpperCase();
}
export function toLowerCase(s: string): st... | export function concat(xs: string[]): string {
return xs.join('');
}
export function capitalize(s: string): string {
return toUpperCase(s.charAt(0)) + toLowerCase(s.slice(1));
}
export function toUpperCase(s: string): string {
return s.toUpperCase();
}
export function toLowerCase(s: string): string {
return s.to... | Use join instead of reduce | Use join instead of reduce
| TypeScript | mit | syuilo/Misskey,syuilo/Misskey | typescript | ## Code Before:
export function concat(xs: string[]): string {
return xs.reduce((a, b) => a + b, '');
}
export function capitalize(s: string): string {
return toUpperCase(s.charAt(0)) + toLowerCase(s.slice(1));
}
export function toUpperCase(s: string): string {
return s.toUpperCase();
}
export function toLowerCas... |
001084635ab18ec13b3e56042a48e353f6cdf41b | patch/andyf-ant-jvmargs-v1.patch | patch/andyf-ant-jvmargs-v1.patch | diff --git a/build.xml b/build.xml
index 186b666..11a98b6 100644
--- a/build.xml
+++ b/build.xml
@@ -53,6 +53,12 @@
<!--<sysproperty key="clojure.compiler.disable-locals-clearing" value="true"/>-->
<!-- <sysproperty key="clojure.compile.warn-on-reflection" value="true"/> -->
<sysproperty key="ja... | diff --git a/build.xml b/build.xml
index 186b666..df98bdb 100644
--- a/build.xml
+++ b/build.xml
@@ -53,6 +53,12 @@
<!--<sysproperty key="clojure.compiler.disable-locals-clearing" value="true"/>-->
<!-- <sysproperty key="clojure.compile.warn-on-reflection" value="true"/> -->
<sysproperty key="ja... | Patch for Clojure's build.xml to pass extra JVM args for compile-clojure | Patch for Clojure's build.xml to pass extra JVM args for compile-clojure
| Diff | epl-1.0 | jafingerhut/clj1636 | diff | ## Code Before:
diff --git a/build.xml b/build.xml
index 186b666..11a98b6 100644
--- a/build.xml
+++ b/build.xml
@@ -53,6 +53,12 @@
<!--<sysproperty key="clojure.compiler.disable-locals-clearing" value="true"/>-->
<!-- <sysproperty key="clojure.compile.warn-on-reflection" value="true"/> -->
<sys... |
60e35af69803746bcaae62d137e17aebddfdb4a3 | app/views/advocates/claims/_basic_fees.html.haml | app/views/advocates/claims/_basic_fees.html.haml | %tr.nested-fields
%td
= f.text_field :description, value: f.object.description, disabled: true
%td
= f.number_field :quantity, value: @claim.new_record? ? nil : f.object.quantity, class: 'quantity'
%td
= f.number_field :rate, value: @claim.new_record? ? nil : number_with_precision(f.object.rate, preci... | %tr.nested-fields
%td
= f.text_field :description, value: f.object.description, disabled: true
%td
= f.number_field :quantity, value: f.object.quantity, class: 'quantity'
%td
= f.number_field :rate, value: number_with_precision(f.object.rate, precision: 2), class: 'rate'
%td
= f.number_field :am... | Set default zero values in basic fees | Set default zero values in basic fees
| Haml | mit | ministryofjustice/advocate-defence-payments,ministryofjustice/advocate-defence-payments,ministryofjustice/advocate-defence-payments,ministryofjustice/advocate-defence-payments | haml | ## Code Before:
%tr.nested-fields
%td
= f.text_field :description, value: f.object.description, disabled: true
%td
= f.number_field :quantity, value: @claim.new_record? ? nil : f.object.quantity, class: 'quantity'
%td
= f.number_field :rate, value: @claim.new_record? ? nil : number_with_precision(f.ob... |
79c2d182eda37410ea0204e3cb011192dd713d19 | vim/50-plugins-vim-multiple-cursors.vim | vim/50-plugins-vim-multiple-cursors.vim | " Disable YouCompleteMe when using vim-multiple-cursors
"
function! Multiple_cursors_before()
if exists('*youcompleteme#EnableCursorMovedAutocommands')
call youcompleteme#DisableCursorMovedAutocommands()
endif
endfunction
function! Multiple_cursors_after()
if exists('*youcompleteme#EnableCursorMove... | " Disable YouCompleteMe when using vim-multiple-cursors
"
function! Multiple_cursors_before()
let b:deoplete_disable_auto_complete = 1
endfunction
function! Multiple_cursors_after()
let b:deoplete_disable_auto_complete = 0
endfunction
| Disable deoplete while using multiple cursors | [vim] Disable deoplete while using multiple cursors
| VimL | mit | solarnz/dotfiles | viml | ## Code Before:
" Disable YouCompleteMe when using vim-multiple-cursors
"
function! Multiple_cursors_before()
if exists('*youcompleteme#EnableCursorMovedAutocommands')
call youcompleteme#DisableCursorMovedAutocommands()
endif
endfunction
function! Multiple_cursors_after()
if exists('*youcompleteme#... |
63136264aa4198ee15ffa1fe63601624f0fa59f6 | pkgs/applications/editors/lifeograph/default.nix | pkgs/applications/editors/lifeograph/default.nix | { stdenv, lib, fetchgit, pkg-config, meson, ninja
, enchant, gtkmm3, libchamplain, libgcrypt, shared-mime-info }:
stdenv.mkDerivation rec {
pname = "lifeograph";
version = "2.0.3";
src = fetchgit {
url = "https://git.launchpad.net/lifeograph";
rev = "v${version}";
sha256 = "sha256-RotbTdTtpwXmo+UKOy... | { stdenv, lib, fetchgit, pkg-config, meson, ninja, wrapGAppsHook
, enchant, gtkmm3, libchamplain, libgcrypt, shared-mime-info }:
stdenv.mkDerivation rec {
pname = "lifeograph";
version = "2.0.3";
src = fetchgit {
url = "https://git.launchpad.net/lifeograph";
rev = "v${version}";
sha256 = "sha256-Rot... | Add wrapGAppsHook to lifeograph to fix issue with being unable to decrypt diaries when launched from dmenu | Add wrapGAppsHook to lifeograph to fix issue with being unable to decrypt diaries when launched from dmenu
Signed-off-by: fly <f8e8abbf1b709463964d238e1c413892f6fd7ffc@airmail.cc>
| Nix | mit | NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs | nix | ## Code Before:
{ stdenv, lib, fetchgit, pkg-config, meson, ninja
, enchant, gtkmm3, libchamplain, libgcrypt, shared-mime-info }:
stdenv.mkDerivation rec {
pname = "lifeograph";
version = "2.0.3";
src = fetchgit {
url = "https://git.launchpad.net/lifeograph";
rev = "v${version}";
sha256 = "sha256-Ro... |
630eda5ff8bc202b8bf6983ca312f161df6732d5 | Java/ShoprAlgorithm/src/com/uwetrottmann/shopr/algorithm/model/GenericAttribute.java | Java/ShoprAlgorithm/src/com/uwetrottmann/shopr/algorithm/model/GenericAttribute.java |
package com.uwetrottmann.shopr.algorithm.model;
public abstract class GenericAttribute<T> {
private T currentValue;
double[] mValueWeights;
public double[] getValueWeights() {
return mValueWeights;
}
@Override
public String toString() {
StringBuilder builder = new StringBui... |
package com.uwetrottmann.shopr.algorithm.model;
public abstract class GenericAttribute<T> {
private T currentValue;
double[] mValueWeights;
public double[] getValueWeights() {
return mValueWeights;
}
@Override
public String toString() {
StringBuilder builder = new StringBui... | Print zero weights if there is no 1.0 weight. | Print zero weights if there is no 1.0 weight.
| Java | apache-2.0 | UweTrottmann/Shopr,adiguzel/Shopr | java | ## Code Before:
package com.uwetrottmann.shopr.algorithm.model;
public abstract class GenericAttribute<T> {
private T currentValue;
double[] mValueWeights;
public double[] getValueWeights() {
return mValueWeights;
}
@Override
public String toString() {
StringBuilder builder... |
331b9254534b57acf026db06096629ab6f33069d | app/mailers/georgia/notifier.rb | app/mailers/georgia/notifier.rb | module Georgia
class Notifier < ActionMailer::Base
include SendGrid
def notify_support(message)
@message = message
mail(
from: "#{@message.name} <#{@message.email}>",
to: 'support@motioneleven.com',
cc: @message.email,
subject: @message.subject)
end
def n... | module Georgia
class Notifier < ActionMailer::Base
include SendGrid
def notify_support(message)
@message = message
mail(
from: "#{@message.name} <#{@message.email}>",
to: 'support@motioneleven.com',
cc: @message.email,
subject: @message.subject)
end
def n... | Send emails in dev too, use letter_opener in main app | Send emails in dev too, use letter_opener in main app
| Ruby | mit | georgia-cms/georgia,georgia-cms/georgia,georgia-cms/georgia | ruby | ## Code Before:
module Georgia
class Notifier < ActionMailer::Base
include SendGrid
def notify_support(message)
@message = message
mail(
from: "#{@message.name} <#{@message.email}>",
to: 'support@motioneleven.com',
cc: @message.email,
subject: @message.subject)
... |
488a596fe5bff9cc2d3ea0b70711223f2798c2a0 | circle.yml | circle.yml | machine:
java:
version: oraclejdk8
post:
- pyenv global 2.7.9 3.5.0 3.4.3 2.6.8
environment:
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
dependencies:
override:
- ./gradlew downloadDependencies --console plain
test:
override:
... | machine:
java:
version: oraclejdk8
post:
- pyenv global 2.7.9 3.5.0 3.4.3 2.6.8
- chmod --recursive a-w ~/.pyenv/versions #Builds fail when we have write permissions, so disableing it
environment:
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'... | Disable write permissions on python venv | Disable write permissions on python venv
Without this it looks like there's an issue with the install of python
when we try to build a virtual env. I tested this by running the last
build in a ssh mode and ran this as quick as I could in the build.
| YAML | apache-2.0 | sixninetynine/pygradle,sixninetynine/pygradle,sixninetynine/pygradle,sixninetynine/pygradle | yaml | ## Code Before:
machine:
java:
version: oraclejdk8
post:
- pyenv global 2.7.9 3.5.0 3.4.3 2.6.8
environment:
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
dependencies:
override:
- ./gradlew downloadDependencies --console plain
test:
... |
ca2814e4c296e3aaf67f0930ee3567a15cbb2b3d | client/templates/bets_helper.js | client/templates/bets_helper.js | Template.betsList.helpers({
bets: function() {
var current_status = Session.get("status");
return Bets.find({$and: [{status: current_status}, {bettors: Session.get("user")}]})
}
});
Template.betsList.events({
"click .open-button": function() {
Session.set("user", Meteor.user().username)
Session.set("... | Template.betsList.helpers({
bets: function() {
var current_status = Session.get( "status" );
return Bets.find({ $and:
[ { status: current_status },
{ bettors: Session.get( "user" ) }
]});
}
});
Template.betsList.events({
"click .open-button": function() {
Session.set("user", Meteor... | Refactor template.betsList helper for readability. | Refactor template.betsList helper for readability.
| JavaScript | mit | nmmascia/webet,nmmascia/webet | javascript | ## Code Before:
Template.betsList.helpers({
bets: function() {
var current_status = Session.get("status");
return Bets.find({$and: [{status: current_status}, {bettors: Session.get("user")}]})
}
});
Template.betsList.events({
"click .open-button": function() {
Session.set("user", Meteor.user().username)
... |
cdc613aba932c61c7c3250f12a8c7fd76db4b70e | functest/opnfv_tests/openstack/rally/blacklist.yaml | functest/opnfv_tests/openstack/rally/blacklist.yaml | ---
scenario:
functionality:
-
functions:
- block_migration
tests:
- NovaServers.boot_server_from_volume_and_live_migrate
-
functions:
- no_migration
tests:
- NovaServers.boot_and_live_migrate_server
- NovaServers.boot_... | ---
scenario:
functionality:
-
functions:
- block_migration
tests:
- NovaServers.boot_server_from_volume_and_live_migrate
-
functions:
- no_migration
tests:
- NovaServers.boot_and_live_migrate_server
- NovaServers.boot_... | Remove Rally Router testing if no tenant resources | Remove Rally Router testing if no tenant resources
It pleases airship which doesn't support neither routers and floating
ips.
Change-Id: I8b9f44c0bccd66d7808e100203f4bfea000ead2f
Signed-off-by: Cédric Ollivier <d48310251a4a484d041bc5d09a9ac4d86d20f793@orange.com>
| YAML | apache-2.0 | opnfv/functest,opnfv/functest | yaml | ## Code Before:
---
scenario:
functionality:
-
functions:
- block_migration
tests:
- NovaServers.boot_server_from_volume_and_live_migrate
-
functions:
- no_migration
tests:
- NovaServers.boot_and_live_migrate_server
- N... |
ddabc040c4215984c776e4a8fc4be021c4fca1b7 | README.md | README.md | Editor2PDF
==========
Overview
--------
This software makes it possible to attach an annotation to an arbitrary MPS editor cell and render the cell to a PDF file output. The software uses iText to output PDF.
Usage
-----
This language provides an annotation that makes it possible to mark an editor cell for rendering ... | Editor2PDF
==========
Overview
--------
This software makes it possible to attach an annotation to an arbitrary MPS editor cell and render the cell to a PDF file output. The software uses iText to output PDF.
Usage
-----
This language provides an annotation that makes it possible to mark an editor cell for rendering ... | Add an ad for the book | Add an ad for the book
| Markdown | agpl-3.0 | CampagneLaboratory/Editor2PDF | markdown | ## Code Before:
Editor2PDF
==========
Overview
--------
This software makes it possible to attach an annotation to an arbitrary MPS editor cell and render the cell to a PDF file output. The software uses iText to output PDF.
Usage
-----
This language provides an annotation that makes it possible to mark an editor cel... |
60da2bdd3a0ba3c259a1fee62b5f6b122116cbd5 | spec/support/shared_examples.rb | spec/support/shared_examples.rb | shared_examples :node_set do |options|
example 'return a NodeSet instance' do
@set.is_a?(Oga::XML::NodeSet).should == true
end
example 'return the right amount of rows' do
@set.length.should == options[:length]
end
end
shared_examples :empty_node_set do
example 'return a NodeSet instance' do
@se... | RSpec.shared_examples :node_set do |options|
example 'return a NodeSet instance' do
@set.is_a?(Oga::XML::NodeSet).should == true
end
example 'return the right amount of rows' do
@set.length.should == options[:length]
end
end
RSpec.shared_examples :empty_node_set do
example 'return a NodeSet instance... | Use RSpec.shared_example vs just shared_example. | Use RSpec.shared_example vs just shared_example.
| Ruby | mpl-2.0 | altmetric/oga,dfockler/oga,jeffreybaird/oga,altmetric/oga,altmetric/oga,jeffreybaird/oga,dfockler/oga,jeffreybaird/oga,YorickPeterse/oga,altmetric/oga,altmetric/oga,YorickPeterse/oga,YorickPeterse/oga,dfockler/oga,jeffreybaird/oga,dfockler/oga,YorickPeterse/oga,ttasanen/oga,ttasanen/oga,jeffreybaird/oga,dfockler/oga,tt... | ruby | ## Code Before:
shared_examples :node_set do |options|
example 'return a NodeSet instance' do
@set.is_a?(Oga::XML::NodeSet).should == true
end
example 'return the right amount of rows' do
@set.length.should == options[:length]
end
end
shared_examples :empty_node_set do
example 'return a NodeSet inst... |
16745bf68c8f6fa0d967cae8a8c0bf884709c5f5 | doc/source/api.rst | doc/source/api.rst | API
===
This page contains a comprehensive list of all functions within ``toolz``.
Docstrings should provide sufficient understanding for any individual function.
Itertoolz
---------
.. currentmodule:: toolz.itertoolz
.. autosummary::
accumulate
concat
concatv
cons
count
drop
first
frequenci... | API
===
This page contains a comprehensive list of all functions within ``toolz``.
Docstrings should provide sufficient understanding for any individual function.
Itertoolz
---------
.. currentmodule:: toolz.itertoolz
.. autosummary::
accumulate
concat
concatv
cons
count
drop
first
frequenci... | Remove `jackknife` from docs too. | Remove `jackknife` from docs too.
| reStructuredText | bsd-3-clause | jdmcbr/toolz,machinelearningdeveloper/toolz,berrytj/toolz,llllllllll/toolz,machinelearningdeveloper/toolz,jcrist/toolz,simudream/toolz,jdmcbr/toolz,karansag/toolz,pombredanne/toolz,berrytj/toolz,bartvm/toolz,llllllllll/toolz,bartvm/toolz,simudream/toolz,karansag/toolz,cpcloud/toolz,jcrist/toolz,quantopian/toolz,cpcloud... | restructuredtext | ## Code Before:
API
===
This page contains a comprehensive list of all functions within ``toolz``.
Docstrings should provide sufficient understanding for any individual function.
Itertoolz
---------
.. currentmodule:: toolz.itertoolz
.. autosummary::
accumulate
concat
concatv
cons
count
drop
fi... |
a1410f1c0d85b1a0a7f74156447edf65bd74c57b | Package.swift | Package.swift | // swift-tools-version:4.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let pkgName = "gir2swift"
let package = Package(
name: pkgName,
dependencies: [ .package(url: "https://github.com/rhx/SwiftLibXML.git", from: "2.0.0"), ],
... | // swift-tools-version:4.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let pkgName = "gir2swift"
let package = Package(
name: pkgName,
dependencies: [ .package(url: "https://github.com/rhx/SwiftLibXML.git", .branch("master")) ],
... | Use SwiftLibXML from master branch | Use SwiftLibXML from master branch
| Swift | bsd-2-clause | rhx/gir2swift,rhx/gir2swift | swift | ## Code Before:
// swift-tools-version:4.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let pkgName = "gir2swift"
let package = Package(
name: pkgName,
dependencies: [ .package(url: "https://github.com/rhx/SwiftLibXML.git", from: "... |
b54ba570fbb835d67a5a2f3b58fdde20ac6489a4 | config/tagging-apps.yml | config/tagging-apps.yml | a-migrated-app: content-tagger # for testing puposes
businesssupportfinder: content-tagger
calculators: content-tagger
calendars: content-tagger
collections-publisher: content-tagger
contacts: panopticon
contacts-admin:
design-principles:
email-campaign-frontend:
external-link-tracker:
feedback:
frontend:
govuk_content... | a-migrated-app: content-tagger # for testing puposes
businesssupportfinder: content-tagger
calculators: content-tagger
calendars: content-tagger
collections-publisher: content-tagger
contacts: content-tagger
contacts-admin: content-tagger
design-principles:
email-campaign-frontend:
external-link-tracker:
feedback:
fron... | Allow contacts pages to be tagged | Allow contacts pages to be tagged
contacts-admin has been migrated since alphagov/contacts-admin#231.
| YAML | mit | alphagov/content-tagger,alphagov/content-tagger,alphagov/content-tagger | yaml | ## Code Before:
a-migrated-app: content-tagger # for testing puposes
businesssupportfinder: content-tagger
calculators: content-tagger
calendars: content-tagger
collections-publisher: content-tagger
contacts: panopticon
contacts-admin:
design-principles:
email-campaign-frontend:
external-link-tracker:
feedback:
fronten... |
821a0a97f549c8130a0f3944c6d076385fee328b | templates/syn-groupsearchlist.tpl | templates/syn-groupsearchlist.tpl | {foreach $results as $result}
<div class="col-md-6">
{assign var=grpname value="syn_organicgrp_`$result.object_id`"}
{if not $grpname|in_group}
{include file="syn-groupsbox.tpl" private="{if $result.status == 'o'}n{elseif $result.status == 'p'}y{/if}"}
{/if}
</div>
{/foreach}
| {foreach $results as $result}
{assign var=grpname value="syn_organicgrp_`$result.object_id`"}
{if not $grpname|in_group}
<div class="col-md-6">
{include file="syn-groupsbox.tpl" private="{if $result.status == 'o'}n{elseif $result.status == 'p'}y{/if}"}
</div>
{/if}
{/foreach}
| Join Collaborations - The first search result starts at the wrong location. | Join Collaborations - The first search result starts at the wrong location.
| Smarty | lgpl-2.1 | citadelrock/organicgrp,rjsmelo/syn_organicgrp,citadelrock/syn_organicgrp | smarty | ## Code Before:
{foreach $results as $result}
<div class="col-md-6">
{assign var=grpname value="syn_organicgrp_`$result.object_id`"}
{if not $grpname|in_group}
{include file="syn-groupsbox.tpl" private="{if $result.status == 'o'}n{elseif $result.status == 'p'}y{/if}"}
{/if}
</div>
{/foreach}
## Instru... |
3543329984af5f97fa27b7785e15e40e203382ef | plugins/flowdock/config.json | plugins/flowdock/config.json | {
"name": "Flowdock",
"description": "Post to a Flowdock inbox",
"supportedTriggers": "all",
"fields": [
{
"name": "apiToken",
"label": "Flow API token",
"description": "The API token of the Flow to send notifications to"
}
]
}
| {
"name": "Flowdock",
"description": "Post to a Flowdock inbox",
"supportedTriggers": "all",
"fields": [
{
"name": "apiToken",
"label": "Flow API token",
"description": "The API token of the Flow to send notifications to",
"link": "https://www.flowdock.com/account/tokens"
}
]
}... | Add link to flowdock apiToken | Add link to flowdock apiToken
| JSON | mit | kstream001/bugsnag-notification-plugins,sharesight/bugsnag-notification-plugins,korealert/bugsnag-notification-plugins,jacobmarshall/bugsnag-notification-plugins,cagedata/bugsnag-notification-plugins,6wunderkinder/bugsnag-notification-plugins,6wunderkinder/bugsnag-notification-plugins,indirect/bugsnag-notification-plug... | json | ## Code Before:
{
"name": "Flowdock",
"description": "Post to a Flowdock inbox",
"supportedTriggers": "all",
"fields": [
{
"name": "apiToken",
"label": "Flow API token",
"description": "The API token of the Flow to send notifications to"
}
]
}
## Instruction:
Add link to flowdock ap... |
9be0fc0a90a2893a6b82ef55bf37aa4c0e8784dc | README.md | README.md | String phone
============
.. image:: https://travis-ci.org/skorokithakis/stringphone.png?branch=master
:target: https://travis-ci.org/skorokithakis/stringphone
String phone is a secure communications library and protocol geared towards embedded devices. It is still a prototype.
Be warned that anything may cha... | String phone
============
[](https://travis-ci.org/skorokithakis/stringphone)
String phone is a secure communications library and protocol geared towards embedded devices. It is still a prototype.
Be warned that anything may change at a... | Use the correct build badge. | Use the correct build badge.
| Markdown | bsd-3-clause | skorokithakis/stringphone | markdown | ## Code Before:
String phone
============
.. image:: https://travis-ci.org/skorokithakis/stringphone.png?branch=master
:target: https://travis-ci.org/skorokithakis/stringphone
String phone is a secure communications library and protocol geared towards embedded devices. It is still a prototype.
Be warned that ... |
55b90e8839148197deb0cabaced5c7788fcf8933 | lib/upstreamer/cli.rb | lib/upstreamer/cli.rb |
require 'octokit'
require 'rugged'
module Upstreamer
class CLI
def self.run(argv = ARGV)
self.new(argv).run
end
def initialize(argv = ARGV)
@argv = argv
end
def run
directory = specified_directory || current_directory
repo = Rugged::Repository.new(directory)
if r... |
require 'octokit'
require 'rugged'
module Upstreamer
class CLI
def self.run(argv = ARGV)
self.new(argv).run
end
def initialize(argv = ARGV)
@argv = argv
end
def run
directory = specified_directory || current_directory
repo = Rugged::Repository.new(directory)
if r... | Modify error message to write to STDERR | Modify error message to write to STDERR
| Ruby | mit | meganemura/upstreamer | ruby | ## Code Before:
require 'octokit'
require 'rugged'
module Upstreamer
class CLI
def self.run(argv = ARGV)
self.new(argv).run
end
def initialize(argv = ARGV)
@argv = argv
end
def run
directory = specified_directory || current_directory
repo = Rugged::Repository.new(direct... |
a58ca51f48b168cfc6d0539868bf477643eed37b | README.md | README.md |
Default settings assign users by id to one of two equally sized buckets, "a" and "b", and pass the bucket name to the app via the env object.
**Note:** This code contains no logging. We would need to log bucket impressions and subsequent actions to compare performance between buckets.
## Basic usage
1. Set the user... |
Default settings assign users by id to one of two equally sized buckets, "a" and "b", and pass the bucket name to the app via the env object.
**Note:** This code contains no logging. We would need to log bucket impressions and subsequent actions to compare performance between buckets.
## Basic usage
1. Set the user... | Adjust formatting of code block in list | Adjust formatting of code block in list
| Markdown | apache-2.0 | erikeldridge/rack-ab | markdown | ## Code Before:
Default settings assign users by id to one of two equally sized buckets, "a" and "b", and pass the bucket name to the app via the env object.
**Note:** This code contains no logging. We would need to log bucket impressions and subsequent actions to compare performance between buckets.
## Basic usage
... |
789acb55b2747f7ba274127c05f8350969ce14e9 | tests/get_focus_callback.rs | tests/get_focus_callback.rs | /* Copyright 2016 Jordan Miner
*
* Licensed under the MIT license <LICENSE or
* http://opensource.org/licenses/MIT>. This file may not be copied,
* modified, or distributed except according to those terms.
*/
#[macro_use]
extern crate clear_coat;
use std::sync::atomic::{AtomicIsize, ATOMIC_ISIZE_INIT, Ordering};... | /* Copyright 2016 Jordan Miner
*
* Licensed under the MIT license <LICENSE or
* http://opensource.org/licenses/MIT>. This file may not be copied,
* modified, or distributed except according to those terms.
*/
#[macro_use]
extern crate clear_coat;
use std::sync::atomic::{AtomicIsize, ATOMIC_ISIZE_INIT, Ordering};... | Remove a couple of unused imports | Remove a couple of unused imports
| Rust | mit | jminer/clear-coat | rust | ## Code Before:
/* Copyright 2016 Jordan Miner
*
* Licensed under the MIT license <LICENSE or
* http://opensource.org/licenses/MIT>. This file may not be copied,
* modified, or distributed except according to those terms.
*/
#[macro_use]
extern crate clear_coat;
use std::sync::atomic::{AtomicIsize, ATOMIC_ISIZE_... |
c2f3776d68d86441a264acea244c6b7fe40b2b9f | README.md | README.md |
[](http://travis-ci.org/realityforge/gwt-mmvp)
[<img src="https://img.shields.io/maven-central/v/org.realityforge.gwt.mmvp/gwt-mmvp.svg?label=latest%20release"/>](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.realityforge.gwt.... |
[](http://travis-ci.org/realityforge/gwt-mmvp)
[<img src="https://img.shields.io/maven-central/v/org.realityforge.gwt.mmvp/gwt-mmvp.svg?label=latest%20release"/>](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.realityforge.gwt.... | Add a bit more documentation | Add a bit more documentation
| Markdown | apache-2.0 | realityforge/gwt-mmvp,realityforge/gwt-mmvp | markdown | ## Code Before:
[](http://travis-ci.org/realityforge/gwt-mmvp)
[<img src="https://img.shields.io/maven-central/v/org.realityforge.gwt.mmvp/gwt-mmvp.svg?label=latest%20release"/>](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.r... |
d5377e06ae059a9d478c3fe06652a353f1a8359c | address_book/address_book.py | address_book/address_book.py | from person import Person
__all__ = ['AddressBook']
class AddressBook(object):
def __init__(self):
self.persons = []
self.groups = []
def add_person(self, person):
self.persons.append(person)
def add_group(self, group):
self.groups.append(group)
def __contains__(se... | from group import Group
from person import Person
__all__ = ['AddressBook']
class AddressBook(object):
def __init__(self):
self.persons = []
self.groups = []
def add_person(self, person):
self.persons.append(person)
def add_group(self, group):
self.groups.append(group)... | Make it possible to check if some group is in the AddressBook or not | Make it possible to check if some group is in the AddressBook or not
| Python | mit | dizpers/python-address-book-assignment | python | ## Code Before:
from person import Person
__all__ = ['AddressBook']
class AddressBook(object):
def __init__(self):
self.persons = []
self.groups = []
def add_person(self, person):
self.persons.append(person)
def add_group(self, group):
self.groups.append(group)
def... |
f5166577a90e10c62d23623cb12d37cb8909872f | src/appc/schema/ac_name.h | src/appc/schema/ac_name.h |
namespace appc {
namespace schema {
const unsigned int max_ac_name_length = 512;
template<typename T>
struct ACName : StringType<T> {
explicit ACName<T>(const std::string& name)
: StringType<T>(name) {}
virtual Status validate() const {
if (this->value.empty()) {
return Invalid("ACName must not b... |
namespace appc {
namespace schema {
const unsigned int max_ac_name_length = 512;
template<typename T>
struct ACName : StringType<T> {
explicit ACName<T>(const std::string& name)
: StringType<T>(name) {}
virtual Status validate() const {
if (this->value.empty()) {
return Invalid("ACName must not b... | Fix for AC Name type adherence to rfc1123 | schema: Fix for AC Name type adherence to rfc1123
| C | apache-2.0 | cdaylward/libappc,cdaylward/libappc | c | ## Code Before:
namespace appc {
namespace schema {
const unsigned int max_ac_name_length = 512;
template<typename T>
struct ACName : StringType<T> {
explicit ACName<T>(const std::string& name)
: StringType<T>(name) {}
virtual Status validate() const {
if (this->value.empty()) {
return Invalid("A... |
f4fd7eb87d688cf61fa922e1a1894abcae60a976 | .travis.yml | .travis.yml | language: ruby
rvm:
- 2.2.2
branches:
only:
- master
before_install:
- mysql -e "create database IF NOT EXISTS transam_spatial_testing;" -uroot
addons:
code_climate:
repo_token: ce7c157104b0cf1f2babf66d9cc10bbe598607781e8eeb1ba1593fec1d1fc5c1
before_script:
- cp spec/dummy/config/database.travis.yml spec/dumm... | language: ruby
rvm:
- 2.2.2
branches:
only:
- master
before_install:
- sudo apt-get update
- gem update bundler
- sudo apt-get install libgeos-dev libproj-dev
- mysql -e "create database IF NOT EXISTS transam_spatial_testing;" -uroot
addons:
code_climate:
repo_token: ce7c157104b0cf1f2babf66d9cc10bbe598607781e... | Configure Travis to install geos and proj libs before test | Configure Travis to install geos and proj libs before test
| YAML | mit | camsys/transam_spatial,camsys/transam_spatial,camsys/transam_spatial | yaml | ## Code Before:
language: ruby
rvm:
- 2.2.2
branches:
only:
- master
before_install:
- mysql -e "create database IF NOT EXISTS transam_spatial_testing;" -uroot
addons:
code_climate:
repo_token: ce7c157104b0cf1f2babf66d9cc10bbe598607781e8eeb1ba1593fec1d1fc5c1
before_script:
- cp spec/dummy/config/database.trav... |
cd691f75bd60da21c01e1b45830fb90f936fbf73 | randomwallpaper@iflow.productions/metadata.json | randomwallpaper@iflow.productions/metadata.json | {
"shell-version": ["3.12.2", "3.14.1"],
"uuid": "randomwallpaper@iflow.productions",
"name": "Random Wallpaper",
"description": "Fetches random wallpaper from desktopper.co and sets it as desktop background"
} | {
"shell-version": [
"3.12.2",
"3.14.1",
"3.16.3",
"3.18.0",
"3.18.1",
"3.18.2"],
"uuid": "randomwallpaper@iflow.productions",
"name": "Random Wallpaper",
"description": "Fetches random wallpaper from desktopper.co and sets it as desktop background"
}
| Add support for 3.18.0, 3.18.1, 3.18.2 | Add support for 3.18.0, 3.18.1, 3.18.2
| JSON | mit | ifl0w/RandomWallpaperGnome3,ifl0w/RandomWallpaperGnome3 | json | ## Code Before:
{
"shell-version": ["3.12.2", "3.14.1"],
"uuid": "randomwallpaper@iflow.productions",
"name": "Random Wallpaper",
"description": "Fetches random wallpaper from desktopper.co and sets it as desktop background"
}
## Instruction:
Add support for 3.18.0, 3.18.1, 3.18.2
## Code After:
{
"shell-version"... |
804ed81acbd6e6d03bb725f76deb1dd1ecce2b79 | app/views/spree/admin/shared/_calculator_fields.html.haml | app/views/spree/admin/shared/_calculator_fields.html.haml | %fieldset#calculator_fields.no-border-bottom
%legend{align: "center"}= t(:calculator)
#preference-settings
.row
.alpha.four.columns
= f.label(:calculator_type, t(:calculator), for: 'calc_type')
.omega.twelve.columns
= f.select(:calculator_type, @calculators.map { |c| [c.description, ... | %fieldset#calculator_fields.no-border-bottom
%legend{align: "center"}= t(:fees)
#preference-settings
.row
.alpha.four.columns
= f.label(:calculator_type, t(:calculator), for: 'calc_type')
.omega.twelve.columns
= f.select(:calculator_type, @calculators.map { |c| [c.description, c.name... | Change translation for calculator section from Calculator to Fees | Change translation for calculator section from Calculator to Fees
| Haml | agpl-3.0 | mkllnk/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,openfoodfoundation/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork | haml | ## Code Before:
%fieldset#calculator_fields.no-border-bottom
%legend{align: "center"}= t(:calculator)
#preference-settings
.row
.alpha.four.columns
= f.label(:calculator_type, t(:calculator), for: 'calc_type')
.omega.twelve.columns
= f.select(:calculator_type, @calculators.map { |c| ... |
346762ae521f99c4fdad4865b39ff6c497d171d1 | doc/toc.xml | doc/toc.xml | <?xml version="1.0" encoding="UTF-8"?>
<?NLS TYPE="org.eclipse.help.toc"?>
<!--
Convention is: Omit prefixes for "SVN" (as in "SVN Resource History View") and don't use
menu qualifiers (such as "Team -> Foo". Just put "Foo".) We have enough context.
-->
<toc label="Subclipse - Subversion Eclipse Plugin" topic="ht... | <?xml version="1.0" encoding="UTF-8"?>
<?NLS TYPE="org.eclipse.help.toc"?>
<!--
Convention is: Omit prefixes for "SVN" (as in "SVN Resource History View") and don't use
menu qualifiers (such as "Team -> Foo". Just put "Foo".) We have enough context.
-->
<toc label="Subclipse - Subversion Eclipse Plugin" topic="ht... | Move reference to changelog out of plugin and just point to web site. That way, we do not have to update the doc plugin for every release. Just when there are changes. This will save 2MB or so from the download of updates. | Move reference to changelog out of plugin and just point to web site. That way, we do
not have to update the doc plugin for every release. Just when there are changes.
This will save 2MB or so from the download of updates.
| XML | epl-1.0 | subclipse/subclipse,subclipse/subclipse,subclipse/subclipse | xml | ## Code Before:
<?xml version="1.0" encoding="UTF-8"?>
<?NLS TYPE="org.eclipse.help.toc"?>
<!--
Convention is: Omit prefixes for "SVN" (as in "SVN Resource History View") and don't use
menu qualifiers (such as "Team -> Foo". Just put "Foo".) We have enough context.
-->
<toc label="Subclipse - Subversion Eclipse P... |
643eab7ef6cde9a797f3ad7646accedffb0070bf | source/setup/sass/ConnectArchiveDialog.sass | source/setup/sass/ConnectArchiveDialog.sass | .connectArchiveDialog
display: flex
flex-direction: row
flex-wrap: nowrap
justify-content: flex-start
align-items: flex-start
.configuration
flex-grow: 0
order: 1
width: 300px
.options
padding-left: 8px
.explorer
flex-grow: 1
... | .connectArchiveDialog
display: flex
flex-direction: row
flex-wrap: nowrap
justify-content: flex-start
align-items: flex-start
height: 100%
.configuration
flex-grow: 0
order: 1
width: 300px
.options
padding-left: 8px
.explorer
... | Fix scroll overflow in remote file explorer | Fix scroll overflow in remote file explorer
| Sass | mit | perry-mitchell/buttercup-chrome,buttercup-pw/buttercup-browser-extension,perry-mitchell/buttercup-chrome,buttercup-pw/buttercup-browser-extension | sass | ## Code Before:
.connectArchiveDialog
display: flex
flex-direction: row
flex-wrap: nowrap
justify-content: flex-start
align-items: flex-start
.configuration
flex-grow: 0
order: 1
width: 300px
.options
padding-left: 8px
.explorer
... |
9ee8605af644bd9b6489d8b648247730c9569750 | test/integration/index.js | test/integration/index.js | 'use strict'
var childProcess = require('child_process')
childProcess.exec('./index.js', function onBoot (err) {
if (err) {
throw err
}
})
| 'use strict'
var childProcess = require('child_process')
var path = require('path')
var assert = require('chai').assert
var TREAD = path.join(process.cwd(), 'index.js')
var proc = childProcess.fork(TREAD, ['-h'])
proc.on('error', function onError (error) {
assert.fail(error)
})
proc.on('exit', function onExit (c... | Add assertions to integration tests | Add assertions to integration tests
| JavaScript | isc | wraithan/tread | javascript | ## Code Before:
'use strict'
var childProcess = require('child_process')
childProcess.exec('./index.js', function onBoot (err) {
if (err) {
throw err
}
})
## Instruction:
Add assertions to integration tests
## Code After:
'use strict'
var childProcess = require('child_process')
var path = require('path')
v... |
a74e89ef84180f72535322afe3d8f6086088cfb6 | docs/release-guide.md | docs/release-guide.md |
First, test your build:
./gradlew clean test
If everything went ok, tag your release:
git tag v1.2.3
Now publish your changes:
./gradlew publish
Go to [Sonatype Nexus](https://oss.sonatype.org/) _Staging Repositories_ section, close and release the repository.
After a while, the artifacts will be syn... |
First, test your build:
./gradlew clean test
If everything went ok, tag your release:
git tag v1.2.3
Now publish your changes:
./gradlew publish
Go to [Sonatype Nexus](https://oss.sonatype.org/) _Staging Repositories_ section, close and release the repository.
After a while, the artifacts will be syn... | Add link to CHANGELOG.md from release guide | Add link to CHANGELOG.md from release guide
| Markdown | mit | EvidentSolutions/dalesbred,EvidentSolutions/dalesbred,EvidentSolutions/dalesbred | markdown | ## Code Before:
First, test your build:
./gradlew clean test
If everything went ok, tag your release:
git tag v1.2.3
Now publish your changes:
./gradlew publish
Go to [Sonatype Nexus](https://oss.sonatype.org/) _Staging Repositories_ section, close and release the repository.
After a while, the artif... |
bb5c498f73e3cebb9fe04e69ed188ad0eaae1bd2 | metadata/in.sunilpaulmathew.izzyondroid.yml | metadata/in.sunilpaulmathew.izzyondroid.yml | Categories:
- System
License: GPL-3.0-or-later
AuthorName: sunilpaulmathew
AuthorEmail: smartpack.org@gmail.com
AuthorWebSite: https://smartpack.github.io/
SourceCode: https://gitlab.com/sunilpaulmathew/izzyondroid
IssueTracker: https://gitlab.com/sunilpaulmathew/izzyondroid/-/issues
Donate: https://smartpack.github.... | Categories:
- System
License: GPL-3.0-or-later
AuthorName: sunilpaulmathew
AuthorEmail: smartpack.org@gmail.com
AuthorWebSite: https://smartpack.github.io/
SourceCode: https://gitlab.com/sunilpaulmathew/izzyondroid
IssueTracker: https://gitlab.com/sunilpaulmathew/izzyondroid/-/issues
Donate: https://smartpack.github.... | Update IzzyOnDroid to v0.6 (6) | Update IzzyOnDroid to v0.6 (6)
| YAML | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata | yaml | ## Code Before:
Categories:
- System
License: GPL-3.0-or-later
AuthorName: sunilpaulmathew
AuthorEmail: smartpack.org@gmail.com
AuthorWebSite: https://smartpack.github.io/
SourceCode: https://gitlab.com/sunilpaulmathew/izzyondroid
IssueTracker: https://gitlab.com/sunilpaulmathew/izzyondroid/-/issues
Donate: https://s... |
0db9c4161a7687cd57c4301e93e69458ccd322d5 | Mk/macports.tea.mk | Mk/macports.tea.mk |
.SUFFIXES: .m
.m.o:
${CC} -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED ${OBJCFLAGS} ${CPPFLAGS} ${SHLIB_CFLAGS} $< -o $@
.c.o:
${CC} -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED ${CFLAGS} ${CPPFLAGS} ${SHLIB_CFLAGS} $< -o $@
all:: ${SHLIB_NAME} pkgIndex.tcl
$(SHLIB_NAME): ${OBJS}
${SHLIB_LD} ${OBJS} -o ${SHLIB_NAME} ${TCL_... |
.SUFFIXES: .m
.m.o:
${CC} -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED ${OBJCFLAGS} ${CPPFLAGS} ${SHLIB_CFLAGS} $< -o $@
.c.o:
${CC} -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED ${CFLAGS} ${CPPFLAGS} ${SHLIB_CFLAGS} $< -o $@
all:: ${SHLIB_NAME} pkgIndex.tcl
$(SHLIB_NAME): ${OBJS}
${SHLIB_LD} ${OBJS} -o ${SHLIB_NAME} ${TCL_... | Add missing quotes around Makefile variables | Mk: Add missing quotes around Makefile variables
Put quotes around some variables which can contain special characters.
These are quoted in other makefiles.
Closes: #12
| Makefile | bsd-3-clause | danchr/macports-base,macports/macports-base,neverpanic/macports-base,neverpanic/macports-base,macports/macports-base,danchr/macports-base | makefile | ## Code Before:
.SUFFIXES: .m
.m.o:
${CC} -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED ${OBJCFLAGS} ${CPPFLAGS} ${SHLIB_CFLAGS} $< -o $@
.c.o:
${CC} -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED ${CFLAGS} ${CPPFLAGS} ${SHLIB_CFLAGS} $< -o $@
all:: ${SHLIB_NAME} pkgIndex.tcl
$(SHLIB_NAME): ${OBJS}
${SHLIB_LD} ${OBJS} -o ${SH... |
4ad4784472813ddec18a507aef478e40dd57020b | gulpfile.js/tasks/watch.js | gulpfile.js/tasks/watch.js | const gulp = require('gulp');
gulp.task('watch', ['watch:sass', 'watch:scripts', 'watch:app', 'watch:components']);
gulp.task('watch:sass', function() {
return gulp.watch('timestrap/static_src/sass/**/*.scss', ['styles:sass']);
});
gulp.task('watch:scripts', function() {
return gulp.watch('timestrap/stati... | const gulp = require('gulp');
gulp.task('watch', ['watch:sass', 'watch:scripts', 'watch:app', 'watch:components', 'watch:plugins']);
gulp.task('watch:sass', function() {
return gulp.watch('timestrap/static_src/sass/**/*.scss', ['styles:sass']);
});
gulp.task('watch:scripts', function() {
return gulp.watch... | Watch for changes to plugin files. | Watch for changes to plugin files.
| JavaScript | bsd-2-clause | overshard/timestrap,overshard/timestrap,overshard/timestrap,cdubz/timestrap,muhleder/timestrap,cdubz/timestrap,muhleder/timestrap,muhleder/timestrap,cdubz/timestrap | javascript | ## Code Before:
const gulp = require('gulp');
gulp.task('watch', ['watch:sass', 'watch:scripts', 'watch:app', 'watch:components']);
gulp.task('watch:sass', function() {
return gulp.watch('timestrap/static_src/sass/**/*.scss', ['styles:sass']);
});
gulp.task('watch:scripts', function() {
return gulp.watch(... |
0c10a827ac28283a3b330fd82118431c4239896c | bower.json | bower.json | {
"name": "j.point.me",
"dependencies": {
"angular": "~1.3.*",
"angular-sanitize": "~1.3.*",
"angular-resource": "~1.3.*",
"angular-touch": "1.3.*",
"bootstrap": "~3.1.1"
},
"devDependencies": {
"angular-mocks": "~1.3.*",
"jasmine-jquery": "1.7.0"
... | {
"name": "j.point.me",
"dependencies": {
"angular": "~1.3.*",
"angular-sanitize": "~1.3.*",
"angular-resource": "~1.3.*",
"angular-touch": "1.3.*",
"angularfire": "0.9.0",
"bootstrap": "~3.1.1",
"firebase": "2.0.5"
},
"devDependencies": {
... | Add firebase and angularfire dependencies | Add firebase and angularfire dependencies
| JSON | mit | bertjan/jpointme,bertjan/jpointme | json | ## Code Before:
{
"name": "j.point.me",
"dependencies": {
"angular": "~1.3.*",
"angular-sanitize": "~1.3.*",
"angular-resource": "~1.3.*",
"angular-touch": "1.3.*",
"bootstrap": "~3.1.1"
},
"devDependencies": {
"angular-mocks": "~1.3.*",
"jasmine-j... |
daae60016f341197d5eea9bc8addab919cdec5a7 | src/Workspaces/SharedUtilitiesAndExtensions/Compiler/VisualBasic/Services/SyntaxFacts/VisualBasicFileBanner.vb | src/Workspaces/SharedUtilitiesAndExtensions/Compiler/VisualBasic/Services/SyntaxFacts/VisualBasicFileBanner.vb | ' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports Microsoft.CodeAnalysis.LanguageServices
#If CODE_STYLE Then
Imports Microsoft.CodeAnalysis.Internal.Editing
#... | ' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports Microsoft.CodeAnalysis.LanguageServices
#If CODE_STYLE Then
Imports Microsoft.CodeAnalysis.Internal.Editing
#... | Fix uninitialized values during construction | Fix uninitialized values during construction
| Visual Basic | mit | CyrusNajmabadi/roslyn,KevinRansom/roslyn,shyamnamboodiripad/roslyn,shyamnamboodiripad/roslyn,diryboy/roslyn,mavasani/roslyn,diryboy/roslyn,shyamnamboodiripad/roslyn,dotnet/roslyn,jasonmalinowski/roslyn,bartdesmet/roslyn,sharwell/roslyn,bartdesmet/roslyn,KevinRansom/roslyn,CyrusNajmabadi/roslyn,weltkante/roslyn,weltkant... | visual-basic | ## Code Before:
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports Microsoft.CodeAnalysis.LanguageServices
#If CODE_STYLE Then
Imports Microsoft.CodeAnalysis.In... |
ff6e4c8b4ee1b320da114ed4b4fbbbf89d446110 | src/Annotation/index.js | src/Annotation/index.js | class Annotation {
constructor(objectOf) {
this.value = null;
this.objectOf = objectOf;
}
value() { return this.value; }
objectOf() { return this.objectOf; }
set(name, value) {
if (name !== "value" && typeof this[name] !== "function") {
let err = new Error("Inva... | class Annotation {
constructor(objectOf) {
if (objectOf == undefined) {
throw new Error("Call to super(String annotationName) is required ");
}
this.value = null;
this.objectOf = objectOf;
}
value() { return this.value; }
objectOf() { return this.objectOf; ... | Throw Error if subclass doesn't call super | Throw Error if subclass doesn't call super
| JavaScript | mit | anupam-git/nodeannotations | javascript | ## Code Before:
class Annotation {
constructor(objectOf) {
this.value = null;
this.objectOf = objectOf;
}
value() { return this.value; }
objectOf() { return this.objectOf; }
set(name, value) {
if (name !== "value" && typeof this[name] !== "function") {
let err =... |
177a49dd8f4b8d53c10e8f7cc5f1e66ba04c9946 | get-router-address-list.sh | get-router-address-list.sh |
set -e
die() {
echo >&2 "$@"
exit 1
}
[ "$#" -eq 1 ] || die "Usage: $0 <SSH address of router>"
ssh "$1" '/ip firewall address-list export' | grep -F 'list=spamhaus-drop' | grep -oE 'address=((1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\.){3}(1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])(/([1-2]?[0-9]|3[0-2]))?' | cut -d '=' -f2
|
set -e
die() {
echo >&2 "$@"
exit 1
}
[ "$#" -eq 1 ] || die "Usage: $0 <SSH address of router>"
#ssh "$1" '/ip firewall address-list export compact' | grep -F 'list=spamhaus-drop' | grep -oE 'address=((1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\.){3}(1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])(/([1-2]?[0-9]|3[0-2]))?' | cut -d '=... | Use more reliable method to get router address list contents | Use more reliable method to get router address list contents
| Shell | mit | nightexcessive/routeros-spamhaus-drop | shell | ## Code Before:
set -e
die() {
echo >&2 "$@"
exit 1
}
[ "$#" -eq 1 ] || die "Usage: $0 <SSH address of router>"
ssh "$1" '/ip firewall address-list export' | grep -F 'list=spamhaus-drop' | grep -oE 'address=((1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\.){3}(1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])(/([1-2]?[0-9]|3[0-2]))?' | cu... |
7dc812dac6f2ce6cc71e0d41b096b8c20d743081 | ansible/roles/ckan/files/patches/remove_old_fontawesome.patch | ansible/roles/ckan/files/patches/remove_old_fontawesome.patch | diff --git a/ckan/public/base/vendor/webassets.yml b/ckan/public/base/vendor/webassets.yml
index 45ea87b74..8a89ee5c1 100644
--- a/ckan/public/base/vendor/webassets.yml
+++ b/ckan/public/base/vendor/webassets.yml
@@ -4,12 +4,6 @@ select2-css:
contents:
- select2/select2.css
-font-awesome:
- output: vendor/%(v... | diff --git a/ckan/public/base/vendor/webassets.yml b/ckan/public/base/vendor/webassets.yml
index 45ea87b74..8f7b253de 100644
--- a/ckan/public/base/vendor/webassets.yml
+++ b/ckan/public/base/vendor/webassets.yml
@@ -4,12 +4,6 @@ select2-css:
contents:
- select2/select2.css
-font-awesome:
- output: vendor/%(... | Remove preload of old font awesome | LIKA-332: Remove preload of old font awesome
| Diff | mit | vrk-kpa/api-catalog,vrk-kpa/api-catalog,vrk-kpa/api-catalog,vrk-kpa/api-catalog | diff | ## Code Before:
diff --git a/ckan/public/base/vendor/webassets.yml b/ckan/public/base/vendor/webassets.yml
index 45ea87b74..8a89ee5c1 100644
--- a/ckan/public/base/vendor/webassets.yml
+++ b/ckan/public/base/vendor/webassets.yml
@@ -4,12 +4,6 @@ select2-css:
contents:
- select2/select2.css
-font-awesome:
- ou... |
07a89c48c25851b4e711d655d567c109b14937b5 | cloud/aws/courses/met.yaml | cloud/aws/courses/met.yaml | ---
master:
ami: "ami-9a0ec2fa"
type: "m4.large"
key_name: "training"
security_group_ids:
- "sg-ee9abc89"
lon-agent-1234:
ami: "ami-13988772"
type: "t2.micro"
key_name: "training"
security_group_ids:
- "sg-ee9abc89"
pdx-agent-1743:
ami: "ami-13988772"
type: "t2.micro"
key_name: "training"
... | ---
master:
ami: "ami-9a0ec2fa"
type: "m4.large"
key_name: "training"
security_group_ids:
- "sg-ee9abc89"
lon-agent-1234:
ami: "ami-86e0ffe7"
type: "t1.micro"
key_name: "training"
security_group_ids:
- "sg-ee9abc89"
pdx-agent-1743:
ami: "ami-86e0ffe7"
type: "t1.micro"
key_name: "training"
... | Select supported instance type for 14.04 vm | Select supported instance type for 14.04 vm
| YAML | apache-2.0 | samuelson/puppetlabs-training-bootstrap,marrero984/education-builds,samuelson/puppetlabs-training-bootstrap,joshsamuelson/puppetlabs-training-bootstrap,puppetlabs/puppetlabs-training-bootstrap,joshsamuelson/puppetlabs-training-bootstrap,carthik/puppetlabs-training-bootstrap,samuelson/puppetlabs-training-bootstrap,joshs... | yaml | ## Code Before:
---
master:
ami: "ami-9a0ec2fa"
type: "m4.large"
key_name: "training"
security_group_ids:
- "sg-ee9abc89"
lon-agent-1234:
ami: "ami-13988772"
type: "t2.micro"
key_name: "training"
security_group_ids:
- "sg-ee9abc89"
pdx-agent-1743:
ami: "ami-13988772"
type: "t2.micro"
key_n... |
db7c550e88e71ab7906754f613d12e2dd1ddeb96 | gitlab-pipeline/stage/trigger-packages.yml | gitlab-pipeline/stage/trigger-packages.yml | trigger:mender-dist-packages:
stage: trigger:packages
needs: []
rules:
- if: $BUILD_MENDER_DIST_PACKAGES == "true"
variables:
# Mender release tagged versions:
MENDER_VERSION: $MENDER_REV
MENDER_CONNECT_VERSION: $MENDER_CONNECT_REV
MENDER_MONITOR_VERSION: $MONITOR_CLIENT_REV
MENDER_CONFI... | trigger:mender-dist-packages:
stage: trigger:packages
needs: []
rules:
- if: $BUILD_MENDER_DIST_PACKAGES == "true"
variables:
# Mender release tagged versions:
MENDER_VERSION: $MENDER_REV
MENDER_CONNECT_VERSION: $MENDER_CONNECT_REV
MENDER_MONITOR_VERSION: $MONITOR_CLIENT_REV
MENDER_CONFI... | Add missing translation for the Debian package build trigger | chore: Add missing translation for the Debian package build trigger
Signed-off-by: Ole Petter <311ee1acef6e516b58238217629109071539b6ed@northern.tech>
| YAML | apache-2.0 | mendersoftware/meta-mender-qemu | yaml | ## Code Before:
trigger:mender-dist-packages:
stage: trigger:packages
needs: []
rules:
- if: $BUILD_MENDER_DIST_PACKAGES == "true"
variables:
# Mender release tagged versions:
MENDER_VERSION: $MENDER_REV
MENDER_CONNECT_VERSION: $MENDER_CONNECT_REV
MENDER_MONITOR_VERSION: $MONITOR_CLIENT_REV
... |
c7571042af6465e59678db65542650eb1e6e5472 | packages/de/deburr.yaml | packages/de/deburr.yaml | homepage: https://github.com/pinktrink/deburr
changelog-type: ''
hash: 72ad4e75ed688e775978eb4dfc9f39d80c27a96095183d07cc37f35123ae4b61
test-bench-deps:
base: -any
hspec: -any
QuickCheck: -any
deburr: -any
maintainer: lolbummer@gmail.com
synopsis: Convert Unicode characters with burrs to their ASCII counterpart... | homepage: https://github.com/pinktrink/deburr
changelog-type: ''
hash: 165ae1b143ce573b5da4663bd758b6b7096b2396d45f36c8b4750c23a3056029
test-bench-deps:
base: -any
hspec: -any
QuickCheck: -any
deburr: -any
maintainer: lolbummer@gmail.com
synopsis: Convert Unicode characters with burrs to their ASCII counterpart... | Update from Hackage at 2017-08-28T19:55:54Z | Update from Hackage at 2017-08-28T19:55:54Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: https://github.com/pinktrink/deburr
changelog-type: ''
hash: 72ad4e75ed688e775978eb4dfc9f39d80c27a96095183d07cc37f35123ae4b61
test-bench-deps:
base: -any
hspec: -any
QuickCheck: -any
deburr: -any
maintainer: lolbummer@gmail.com
synopsis: Convert Unicode characters with burrs to their A... |
04f0ca2cfe48423bdacef90ad4103fc1b2202194 | wellspring.gemspec | wellspring.gemspec | $:.push File.expand_path("../lib", __FILE__)
# Maintain your gem's version:
require "wellspring/version"
# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
s.name = "wellspring"
s.version = Wellspring::VERSION
s.authors = ["Piotr Chmolowski"]
s.email = ["piotr... | $:.push File.expand_path("../lib", __FILE__)
# Maintain your gem's version:
require "wellspring/version"
# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
s.name = "wellspring"
s.version = Wellspring::VERSION
s.authors = ["Piotr Chmolowski"]
s.email = ["piotr... | Add valid gemspec metadata to fix bundle errors | Add valid gemspec metadata to fix bundle errors
Solves:
https://github.com/pch/wellspring-example-blog/issues/2
| Ruby | mit | pch/wellspring,pch/wellspring,pch/wellspring | ruby | ## Code Before:
$:.push File.expand_path("../lib", __FILE__)
# Maintain your gem's version:
require "wellspring/version"
# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
s.name = "wellspring"
s.version = Wellspring::VERSION
s.authors = ["Piotr Chmolowski"]
s.email... |
175e143acba4f2a122aba6d3b96ed16f4b323605 | app/components/SearchResultItem.js | app/components/SearchResultItem.js | // @flow
import React, { Component } from 'react';
import { Link } from 'react-router';
import ALL_DATA from '../fixtures/alldata.js';
class SearchResultItem extends Component {
render() {
const { id, title, previewText, authors, year, currentSearch} = this.props;
const boldTerms = function(text, term){
... | // @flow
import React, { Component } from 'react';
import { Link } from 'react-router';
import ALL_DATA from '../fixtures/alldata.js';
class SearchResultItem extends Component {
render() {
const { id, title, previewText, authors, year, currentSearch} = this.props;
const boldTerms = function(text, term){
... | Add some spacing to search results | Add some spacing to search results
| JavaScript | mit | Fresh-maker/razor-client,Fresh-maker/razor-client | javascript | ## Code Before:
// @flow
import React, { Component } from 'react';
import { Link } from 'react-router';
import ALL_DATA from '../fixtures/alldata.js';
class SearchResultItem extends Component {
render() {
const { id, title, previewText, authors, year, currentSearch} = this.props;
const boldTerms = function(t... |
ac4fbad2d96a711666c797d05f1d80a52811fab1 | src/core/_variables.scss | src/core/_variables.scss | /*--------------------------------------------------------*\
* Core Font Size
* This font size will determine the typography size of
* all elements on this page that use the em or rem function
* These functions can be found in:
* ../functions/_px-to-rem.scss
*------------------------------------------------------... | /*--------------------------------------------------------*\
* Core Font Size
* This font size will determine the typography size of
* all elements on this page that use the em or rem function
* These functions can be found in:
* ../functions/_px-to-rem.scss
*------------------------------------------------------... | Move paths variables below core font size var | Move paths variables below core font size var
| SCSS | mit | floscr/SASS-Starter-Kit,floscr/SASS-Starter-Kit | scss | ## Code Before:
/*--------------------------------------------------------*\
* Core Font Size
* This font size will determine the typography size of
* all elements on this page that use the em or rem function
* These functions can be found in:
* ../functions/_px-to-rem.scss
*--------------------------------------... |
3eaeeb0e1a98fe1fdecb8eca648cbef96268292b | .travis.yml | .travis.yml | language: php
sudo: false
php:
- 5.5
- 5.6
- 7.0
before_install:
- composer self-update
install:
- composer install --no-interaction --prefer-source
script:
- vendor/bin/phpunit
notifications:
email: false
| language: php
sudo: false
php:
- 5.5
- 5.6
- 7.0
- nightly
- hhvm
matrix:
allow_failures:
- php: nightly
- php: hhvm
before_install:
- composer self-update
install:
- composer install --no-interaction --prefer-source
script:
- vendor/bin/phpunit
notifications:
email: false
| Add further PHP versions to test | Add further PHP versions to test
| YAML | mit | tommy-muehle/error-log-parser | yaml | ## Code Before:
language: php
sudo: false
php:
- 5.5
- 5.6
- 7.0
before_install:
- composer self-update
install:
- composer install --no-interaction --prefer-source
script:
- vendor/bin/phpunit
notifications:
email: false
## Instruction:
Add further PHP versions to test
## Code After:
language: php
sudo... |
8e91301d9f2629647bbeac5d56b12d36a34c7908 | awa/plugins/awa-images/dynamo.xml | awa/plugins/awa-images/dynamo.xml | <project>
<name>awa-images</name>
<property name="author_email">Stephane.Carrez@gmail.com</property>
<property name="author">Stephane Carrez</property>
</project> | <project>
<name>awa-images</name>
<property name="author_email">Stephane.Carrez@gmail.com</property>
<property name="search_dirs">.;../awa-storages;../awa-workspaces;../../../asf;../../../security;../../../ado;../../</property>
<property name="author">Stephane Carrez</property>
<module name="awa"></... | Update and ignore some files | Update and ignore some files
| XML | apache-2.0 | stcarrez/ada-awa,stcarrez/ada-awa,stcarrez/ada-awa,stcarrez/ada-awa | xml | ## Code Before:
<project>
<name>awa-images</name>
<property name="author_email">Stephane.Carrez@gmail.com</property>
<property name="author">Stephane Carrez</property>
</project>
## Instruction:
Update and ignore some files
## Code After:
<project>
<name>awa-images</name>
<property name="author_ema... |
1819d471f7e46d00d8f0fd1e030ce3fecbbd0875 | src/themes/backend/default/layouts/error.blade.php | src/themes/backend/default/layouts/error.blade.php | <!DOCTYPE html>
<html>
<head>
{{Asset::css()}}
<link rel="stylesheet" href="/themes/admin-lte/css/AdminLTE.min.css">
<link rel="stylesheet" href="/themes/admin-lte/css/skins/skin-{{config('site.admin_theme')}}.css">
<style>
h1 {
font-size: 120px;
text-align: center;
... | <!DOCTYPE html>
<html>
<head>
@include('system.meta')
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">
{{ Asset::css() }}
<... | Fix admin error page styles. | Fix admin error page styles.
| PHP | mit | yajra/cms-themes,yajra/cms-themes | php | ## Code Before:
<!DOCTYPE html>
<html>
<head>
{{Asset::css()}}
<link rel="stylesheet" href="/themes/admin-lte/css/AdminLTE.min.css">
<link rel="stylesheet" href="/themes/admin-lte/css/skins/skin-{{config('site.admin_theme')}}.css">
<style>
h1 {
font-size: 120px;
text-alig... |
9daabfd6976002791c0ee4cf679bb92508de74b4 | src/actions/index.js | src/actions/index.js | const types = {
USERNAME: 'USERNAME',
GET_EVENTS: 'GET_EVENTS',
GET_PUSH_EVENTS: 'GET_PUSH_EVENTS',
GET_OPENED_PULL_REQUESTS: 'GET_OPENED_PULL_REQUESTS',
GET_ISSUES_CREATED: 'GET_ISSUES_CREATED',
GET_ISSUES_CLOSED: 'GET_ISSUES_CLOSED',
GET_COMMITS: 'GET_COMMITS',
};
export const submitUserName = (inputVa... | const types = {
USERNAME: 'USERNAME',
GET_EVENTS: 'GET_EVENTS'
};
export const submitUserName = (inputVal) => {
return {
type: types.USERNAME,
username: inputVal
};
};
export const getEvents = (data) => {
return {
type: types.GET_EVENTS,
data: data
};
};
| Remove actions that we are no longer using post-refactor | Remove actions that we are no longer using post-refactor
| JavaScript | mit | bcgodfrey91/git-in-the-game,bcgodfrey91/git-in-the-game | javascript | ## Code Before:
const types = {
USERNAME: 'USERNAME',
GET_EVENTS: 'GET_EVENTS',
GET_PUSH_EVENTS: 'GET_PUSH_EVENTS',
GET_OPENED_PULL_REQUESTS: 'GET_OPENED_PULL_REQUESTS',
GET_ISSUES_CREATED: 'GET_ISSUES_CREATED',
GET_ISSUES_CLOSED: 'GET_ISSUES_CLOSED',
GET_COMMITS: 'GET_COMMITS',
};
export const submitUse... |
4d841ab4595b28b9fd9a516379634489d368704d | wcfsetup/install/files/lib/page/AccountSecurityPage.class.php | wcfsetup/install/files/lib/page/AccountSecurityPage.class.php | <?php
namespace wcf\page;
use wcf\system\menu\user\UserMenu;
use wcf\system\session\Session;
use wcf\system\session\SessionHandler;
use wcf\system\WCF;
/**
* Shows the account security page.
*
* @author Joshua Ruesweg
* @copyright 2001-2020 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensou... | <?php
namespace wcf\page;
use wcf\system\menu\user\UserMenu;
use wcf\system\session\Session;
use wcf\system\session\SessionHandler;
use wcf\system\WCF;
/**
* Shows the account security page.
*
* @author Joshua Ruesweg
* @copyright 2001-2020 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensou... | Sort active sessions by last activity time | Sort active sessions by last activity time
| PHP | lgpl-2.1 | SoftCreatR/WCF,WoltLab/WCF,Cyperghost/WCF,SoftCreatR/WCF,SoftCreatR/WCF,WoltLab/WCF,SoftCreatR/WCF,Cyperghost/WCF,Cyperghost/WCF,WoltLab/WCF,WoltLab/WCF,Cyperghost/WCF,Cyperghost/WCF | php | ## Code Before:
<?php
namespace wcf\page;
use wcf\system\menu\user\UserMenu;
use wcf\system\session\Session;
use wcf\system\session\SessionHandler;
use wcf\system\WCF;
/**
* Shows the account security page.
*
* @author Joshua Ruesweg
* @copyright 2001-2020 WoltLab GmbH
* @license GNU Lesser General Public License... |
e5586458a7f00d9e891289b53e4827342b4d4f2a | blog/categories/index.html | blog/categories/index.html | ---
layout: post-index
title: Blog Categories
description: "An archive of posts sorted by category."
comments: false
---
{% capture site_cats %}{% for cat in site.categories %}{{ cat | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
{% assign cats_list = site_cats | split:',' | sort %}
<... | ---
layout: post-index
title: Blog Categories
description: "An archive of posts sorted by category."
comments: false
---
{% capture site_cats %}{% for cat in site.categories %}{{ cat | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
{% assign cats_list = site_cats | split:',' | sort %}
<... | Fix links in tag and categories | Fix links in tag and categories
| HTML | apache-2.0 | TechRapport/techrapport.github.io,TechRapport/techrapport.github.io,TechRapport/techrapport.github.io | html | ## Code Before:
---
layout: post-index
title: Blog Categories
description: "An archive of posts sorted by category."
comments: false
---
{% capture site_cats %}{% for cat in site.categories %}{{ cat | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
{% assign cats_list = site_cats | split:... |
6bd668af3fd098bdd07a1bedd399564141e275da | README.md | README.md |
**lowdown** is a fork of [hoedown](https://github.com/hoedown/hoedown),
although the parser and front-ends have changed significantly.
This is a read-only repository for tracking development of the system
and managing bug reports and patches. (Feature requests will be just be
closed, sorry!) Stable releases, documen... |
**lowdown** is a fork of [hoedown](https://github.com/hoedown/hoedown),
although the parser and front-ends have changed significantly.
For stable releases, documentation, and general information, please visit
https://kristaps.bsd.lv/lowdown.
## License
All sources use the ISC license.
See the [LICENSE.md](LICENSE.m... | Remove mention of the CVS repository. | Remove mention of the CVS repository.
| Markdown | isc | kristapsdz/lowdown,kristapsdz/lowdown,kristapsdz/lowdown | markdown | ## Code Before:
**lowdown** is a fork of [hoedown](https://github.com/hoedown/hoedown),
although the parser and front-ends have changed significantly.
This is a read-only repository for tracking development of the system
and managing bug reports and patches. (Feature requests will be just be
closed, sorry!) Stable r... |
94beba55dfa57cc71998cd2e5c8fa4ecdf359b15 | README.md | README.md |
Simple and FAST family budget organizer. Very easy to use, no training necessary.
## Change log
### Juno 13, 2016
- Add view/edit expense detail page (no save yet)
- Refactor application into multiple components
- Add routing for list vs view/edit, based on elm-lang/navigation
- Some routing code is ugly, I'm consi... |
Simple and FAST family budget organizer. Very easy to use, no training necessary.
## Change log
### June 17, 2016
- Add full expense editing
- Add full budget list editing
- Cancel the switch to React/Redux LOL!
### June 13, 2016
- Add view/edit expense detail page (no save yet)
- Refactor application into multip... | Add changelog entry to Readme | Add changelog entry to Readme
| Markdown | agpl-3.0 | aspushkinus/hobo-elm,aspushkinus/hobo-elm,aspushkinus/hobo-elm | markdown | ## Code Before:
Simple and FAST family budget organizer. Very easy to use, no training necessary.
## Change log
### Juno 13, 2016
- Add view/edit expense detail page (no save yet)
- Refactor application into multiple components
- Add routing for list vs view/edit, based on elm-lang/navigation
- Some routing code is... |
d7b5afd3ee499b154a013e389318fb7b253d94b0 | README.md | README.md | giv2giv-jquery
==============
`https://giv2giv.org` user interface using jquery, history.js, crossroads.js
##Setup:##
*Step 1*: Install nginx
sudo apt-get install nginx
*Step 2*: Edit example-nginx.conf to point to your local git folder
root /home/my_user/giv2giv-jquery;
*Step 3*: Make a link to *your* `exampl... | giv2giv-jquery
==============
`https://giv2giv.org` user interface using jquery, history.js, crossroads.js
##Setup:##
**Step 1**: Install nginx
sudo apt-get install nginx
**Step 2**: Edit example-nginx.conf to point to your local git folder
root /home/my_user/giv2giv-jquery;
**Step 3**: Make a link to *your* `... | Make headers bold instead of italics | Make headers bold instead of italics
| Markdown | mit | giv2giv/giv2giv-jquery,giv2giv/giv2giv-jquery | markdown | ## Code Before:
giv2giv-jquery
==============
`https://giv2giv.org` user interface using jquery, history.js, crossroads.js
##Setup:##
*Step 1*: Install nginx
sudo apt-get install nginx
*Step 2*: Edit example-nginx.conf to point to your local git folder
root /home/my_user/giv2giv-jquery;
*Step 3*: Make a link t... |
01939bee685831667426a30fb63a001174689fdd | src/components/about/about-body.jsx | src/components/about/about-body.jsx | import React from 'react';
import Icon from '../partials/icon.jsx';
import linebreakToBr from "../../helpers/linebreak-to-br";
export default class AboutBody extends React.PureComponent {
render() {
const {about} = this.props.profile;
const findMeOnElements = about.findMeOn.map(
(element, i) => <a cl... | import React from 'react';
import Icon from '../partials/icon.jsx';
import linebreakToBr from "../../helpers/linebreak-to-br";
export default class AboutBody extends React.PureComponent {
render() {
const {about} = this.props.profile;
const findMeOnElements = about.findMeOn.map(
(element, i) => (elem... | Replace a for span in findMeOnElements which hasn't any link | Replace a for span in findMeOnElements which hasn't any link
| JSX | mit | nethruster/ptemplate,nethruster/ptemplate | jsx | ## Code Before:
import React from 'react';
import Icon from '../partials/icon.jsx';
import linebreakToBr from "../../helpers/linebreak-to-br";
export default class AboutBody extends React.PureComponent {
render() {
const {about} = this.props.profile;
const findMeOnElements = about.findMeOn.map(
(elem... |
e2b7dc6c6d85c3478d95814a4c712657c32d8f5b | leetcode/409_longest_palindrome.go | leetcode/409_longest_palindrome.go | package leetcode
// 409. Longest Palindrome
func longestPalindrome(s string) int {
bytes := make(map[byte]int, 0)
for i := 0; i < len(s); i++ {
b := s[i]
count := bytes[b]
bytes[b] = count + 1
}
res := 0
hasPrime := false
for _, count := range bytes {
x, y := count/2, count%2
res += x * 2
if y == 1 ... | package leetcode
// 409. Longest Palindrome
func longestPalindrome(s string) int {
bytes := make(map[byte]int, 0)
count := 0
for i := 0; i < len(s); i++ {
b := s[i]
_, ok := bytes[b]
if ok {
count++
delete(bytes, b)
} else {
bytes[b] = 1
}
}
if len(bytes) > 0 {
return count*2 + 1
}
return c... | Fix 409. Longest Palindrome to use single loop | Fix 409. Longest Palindrome to use single loop
| Go | mit | motomux/go-algo | go | ## Code Before:
package leetcode
// 409. Longest Palindrome
func longestPalindrome(s string) int {
bytes := make(map[byte]int, 0)
for i := 0; i < len(s); i++ {
b := s[i]
count := bytes[b]
bytes[b] = count + 1
}
res := 0
hasPrime := false
for _, count := range bytes {
x, y := count/2, count%2
res += x ... |
2bf8c5d96335aea58730094c66fa28438d0ee859 | README.md | README.md | R Code for analysis of PBR Tier System simulations.
| R Code for analysis of PBR Tier System simulations.
See if syntax highlighting works for R code:
```R
x = 4
y = sqrt(x)
```
| Test edit to .md in RStudio | Test edit to .md in RStudio
| Markdown | mit | John-Brandon/pbrr | markdown | ## Code Before:
R Code for analysis of PBR Tier System simulations.
## Instruction:
Test edit to .md in RStudio
## Code After:
R Code for analysis of PBR Tier System simulations.
See if syntax highlighting works for R code:
```R
x = 4
y = sqrt(x)
```
|
e8f4df09baca31917a9dedb1b1e74359bdda32f1 | app/components/Header/index.js | app/components/Header/index.js | import React from 'react';
import styled from 'styled-components';
import theme from 'theme';
import Hamburger, { Bar } from 'components/Hamburger';
const Logo = styled.h1`
font-family: Poppins, sans-serif;
letter-spacing: 1px;
font-size: 30px;
margin: 0;
display: inline;
flex: 0 0 calc(100% - ... | import React from 'react';
import styled from 'styled-components';
import theme from 'theme';
import Hamburger, { Bar } from 'components/Hamburger';
import SearchButton from 'components/SearchButton';
const Logo = styled.h1`
font-family: Poppins, sans-serif;
letter-spacing: 1px;
font-size: 30px;
margin... | Add SearchButton component to Header component | Add SearchButton component to Header component
| JavaScript | mit | nathanhood/mmdb,nathanhood/mmdb | javascript | ## Code Before:
import React from 'react';
import styled from 'styled-components';
import theme from 'theme';
import Hamburger, { Bar } from 'components/Hamburger';
const Logo = styled.h1`
font-family: Poppins, sans-serif;
letter-spacing: 1px;
font-size: 30px;
margin: 0;
display: inline;
flex: ... |
2770d499cc3d3e47bc7c5d30a272e860c18cff73 | test/validate-config.js | test/validate-config.js | var test = require('tape')
test('load config in eslint to validate all rule syntax is correct', function (t) {
var CLIEngine = require('eslint').CLIEngine
var cli = new CLIEngine({
useEslintrc: false,
configFile: 'eslintrc.json'
})
t.ok(cli.executeOnText('var foo\n'))
t.end()
})
| var test = require('tape')
test('load config in eslint to validate all rule syntax is correct', function (t) {
var CLIEngine = require('eslint').CLIEngine
var cli = new CLIEngine({
useEslintrc: false,
configFile: 'eslintrc.json'
})
var code = 'var foo = 1\nvar bar = function () {}\nbar(foo)\n'
t.o... | Make test check for errorCount of 0 | Make test check for errorCount of 0
| JavaScript | mit | valedaemon/eslint-config-postmodern,feross/eslint-config-standard | javascript | ## Code Before:
var test = require('tape')
test('load config in eslint to validate all rule syntax is correct', function (t) {
var CLIEngine = require('eslint').CLIEngine
var cli = new CLIEngine({
useEslintrc: false,
configFile: 'eslintrc.json'
})
t.ok(cli.executeOnText('var foo\n'))
t.end()
})
##... |
d4683f71ad6cbdf7836cec2c55e2e889d4f2f0e9 | .travis.yml | .travis.yml | language: node_js
sudo: false
node_js:
- "0.10"
- "0.11"
before_install:
- npm config set spin false
- npm install -g npm@^2
- npm install -g sails
before_script:
- npm install -g ember-cli
script: npm run-script test-all | language: node_js
sudo: false
node_js:
- "0.10.34"
- "0.11.14"
before_install:
- npm config set spin false
- npm install -g npm@^2
- npm install -g ember-cli
- npm install -g sails
- export PATH=$PATH:/home/travis/.nvm/v0.11.14/bin/:/home/travis/.nvm/v0.10.34/bin/
script: npm run-script test-all | Fix node versions and add ember to path manually. | Fix node versions and add ember to path manually.
| YAML | mit | kriswill/sane,codepreneur/sane,devinus/sane,sane/sane,kriswill/sane,artificialio/sane,codepreneur/sane,imfly/sane,devinus/sane,ndufreche/sane,ndufreche/sane,sane/sane,IanVS/sane,artificialio/sane,imfly/sane,IanVS/sane | yaml | ## Code Before:
language: node_js
sudo: false
node_js:
- "0.10"
- "0.11"
before_install:
- npm config set spin false
- npm install -g npm@^2
- npm install -g sails
before_script:
- npm install -g ember-cli
script: npm run-script test-all
## Instruction:
Fix node versions and add ember to path manually.
## ... |
fd88b90aa3f455edd59d4ad3892aaf0e37164132 | recipes/default.rb | recipes/default.rb |
if data_bag(node['omnibus-gitlab']['data_bag'])
environment_secrets = data_bag_item(node['omnibus-gitlab']['data_bag'], node.chef_environment)
if environment_secrets
node.consume_attributes(environment_secrets)
end
end
pkg_source = node['omnibus-gitlab']['package']['url']
pkg_path = File.join(Chef::Config[:... |
data_bag_name = node['omnibus-gitlab']['data_bag']
data_bag_item = node.chef_environment
if search(data_bag_name, "id:#{data_bag_item}").any?
environment_secrets = data_bag_item(data_bag_name, data_bag_item)
node.consume_attributes(environment_secrets)
end
pkg_source = node['omnibus-gitlab']['package']['url']
pkg... | Use `search` to check if the data bag exists | Use `search` to check if the data bag exists
| Ruby | mit | mattyjones/cookbook-omnibus-gitlab,mattyjones/cookbook-omnibus-gitlab,mattyjones/cookbook-omnibus-gitlab | ruby | ## Code Before:
if data_bag(node['omnibus-gitlab']['data_bag'])
environment_secrets = data_bag_item(node['omnibus-gitlab']['data_bag'], node.chef_environment)
if environment_secrets
node.consume_attributes(environment_secrets)
end
end
pkg_source = node['omnibus-gitlab']['package']['url']
pkg_path = File.joi... |
de8a3e47fd77172a67d5f1f6fb8cb33f1fc70ce7 | src/libclient/channel.cpp | src/libclient/channel.cpp |
class Channel::Private
{
public:
Private()
: id(0)
{
}
int id;
QString target;
QString certificate;
TimingPtr timing;
};
Channel::Channel()
: d(new Private)
{
}
Channel::Channel(const int &id, const QString &target, const QString &certificate, const TimingPtr &timing)
: d(new Private... |
class Channel::Private
{
public:
Private()
: id(0)
{
}
int id;
QString target;
QString certificate;
TimingPtr timing;
};
Channel::Channel()
: d(new Private)
{
}
Channel::Channel(const int &id, const QString &target, const QString &certificate, const TimingPtr &timing)
: d(new Private... | Fix bug when timing is not set inc hannel | Fix bug when timing is not set inc hannel
| C++ | bsd-3-clause | HSAnet/glimpse_client,HSAnet/glimpse_client,Kri-7-q/glimpse_client-1,personalunion/glimpse_client-1,Kri-7-q/glimpse_client-1,MKV21/glimpse_client,HSAnet/glimpse_client,Kri-7-q/glimpse_client-1,Kri-7-q/glimpse_client-1,personalunion/glimpse_client-1,HSAnet/glimpse_client,HSAnet/glimpse_client,Kri-7-q/glimpse_client-1,MK... | c++ | ## Code Before:
class Channel::Private
{
public:
Private()
: id(0)
{
}
int id;
QString target;
QString certificate;
TimingPtr timing;
};
Channel::Channel()
: d(new Private)
{
}
Channel::Channel(const int &id, const QString &target, const QString &certificate, const TimingPtr &timing)... |
de6d22bc04255da642a9fba83f6b02fb9df271f7 | app/models/peoplefinder/concerns/searchable.rb | app/models/peoplefinder/concerns/searchable.rb | require 'peoplefinder'
module Peoplefinder::Concerns::Searchable
extend ActiveSupport::Concern
included do
include Elasticsearch::Model
include Elasticsearch::Model::Callbacks
index_name [Rails.env, model_name.collection.gsub(/\//, '-')].join('_')
def self.delete_indexes
__elasticsearch__.... | require 'peoplefinder'
module Peoplefinder::Concerns::Searchable
extend ActiveSupport::Concern
included do
include Elasticsearch::Model
include Elasticsearch::Model::Callbacks
index_name [Rails.env, model_name.collection.gsub(/\//, '-')].join('_')
def self.delete_indexes
__elasticsearch__.... | Add tags to elasticsearch index | Add tags to elasticsearch index
| Ruby | mit | MjAbuz/peoplefinder,ministryofjustice/peoplefinder,ministryofjustice/peoplefinder,ministryofjustice/peoplefinder,MjAbuz/peoplefinder,MjAbuz/peoplefinder,ministryofjustice/peoplefinder,ministryofjustice/peoplefinder,MjAbuz/peoplefinder | ruby | ## Code Before:
require 'peoplefinder'
module Peoplefinder::Concerns::Searchable
extend ActiveSupport::Concern
included do
include Elasticsearch::Model
include Elasticsearch::Model::Callbacks
index_name [Rails.env, model_name.collection.gsub(/\//, '-')].join('_')
def self.delete_indexes
__... |
bfc7ae42c589838f6ae04b3d2e944d585e8382bb | www/app/app.js | www/app/app.js | 'use strict';
/*
* Angular Seed - v0.1
* https://github.com/rachellcarbone/angular-seed/
* Copyright (c) 2015 Rachel L Carbone; Licensed MIT
*/
// Include modules, and run application.
angular.module('theApp', [
'ui.bootstrap',
'ui.bootstrap.showErrors',
'datatables',
'datatables.bootstrap',
... | 'use strict';
/*
* Angular Seed - v0.1
* https://github.com/rachellcarbone/angular-seed/
* Copyright (c) 2015 Rachel L Carbone; Licensed MIT
*/
// Include modules, and run application.
angular.module('theApp', [
'ui.bootstrap',
'ui.bootstrap.showErrors',
'datatables',
'datatables.bootstrap',
... | Include new libraries in the project. | Include new libraries in the project.
| JavaScript | mit | rachellcarbone/angular-seed,rachellcarbone/angular-seed,rachellcarbone/angular-seed | javascript | ## Code Before:
'use strict';
/*
* Angular Seed - v0.1
* https://github.com/rachellcarbone/angular-seed/
* Copyright (c) 2015 Rachel L Carbone; Licensed MIT
*/
// Include modules, and run application.
angular.module('theApp', [
'ui.bootstrap',
'ui.bootstrap.showErrors',
'datatables',
'datatables... |
918c679d941d9384c6beee3db4487361b4a64b6e | lettre/examples/smtp.rs | lettre/examples/smtp.rs | extern crate lettre;
use lettre::{EmailTransport, SimpleSendableEmail};
use lettre::smtp::SmtpTransportBuilder;
fn main() {
let email = SimpleSendableEmail::new(
"user@localhost",
vec!["root@localhost"],
"file_id",
"Hello file",
);
// Open a local connection on port 25
... | extern crate lettre;
use lettre::{EmailTransport, SimpleSendableEmail};
use lettre::smtp::{SecurityLevel, SmtpTransportBuilder};
fn main() {
let email = SimpleSendableEmail::new(
"user@localhost",
vec!["root@localhost"],
"file_id",
"Hello ß☺ example",
);
// Open a local co... | Use utf-8 chars in example email | feat(transport): Use utf-8 chars in example email
| Rust | mit | amousset/lettre,amousset/rust-smtp,lettre/lettre,amousset/lettre | rust | ## Code Before:
extern crate lettre;
use lettre::{EmailTransport, SimpleSendableEmail};
use lettre::smtp::SmtpTransportBuilder;
fn main() {
let email = SimpleSendableEmail::new(
"user@localhost",
vec!["root@localhost"],
"file_id",
"Hello file",
);
// Open a local connectio... |
0fc8c491ae313fea18dd71a0d843e95521ce48bd | public/javascripts/projectDetail.js | public/javascripts/projectDetail.js | var projectOwner = null;
var projectSlug = null;
var alreadyStarred = false;
$(function() {
// setup star button
var increment = alreadyStarred ? -1 : 1;
$('.btn-star').click(function() {
var starred = $(this).find('.starred');
starred.html(' ' + (parseInt(starred.text()) + increment).toStr... | var projectOwner = null;
var projectSlug = null;
var alreadyStarred = false;
var KEY_TAB = 9;
$(function() {
// setup star button
var increment = alreadyStarred ? -1 : 1;
$('.btn-star').click(function() {
var starred = $(this).find('.starred');
starred.html(' ' + (parseInt(starred.text()) ... | Add tab navigation to project page | Add tab navigation to project page
Signed-off-by: Walker Crouse <a52c6ce3cf7a08dcbb27377aa79f9b994b446d4c@hotmail.com>
| JavaScript | mit | SpongePowered/Ore,SpongePowered/Ore,SpongePowered/Ore,SpongePowered/Ore,SpongePowered/Ore | javascript | ## Code Before:
var projectOwner = null;
var projectSlug = null;
var alreadyStarred = false;
$(function() {
// setup star button
var increment = alreadyStarred ? -1 : 1;
$('.btn-star').click(function() {
var starred = $(this).find('.starred');
starred.html(' ' + (parseInt(starred.text()) + ... |
bd01ff260d6a4eadd984340997ed80a01018873c | app/static/models/barcharts/timehistory.ts | app/static/models/barcharts/timehistory.ts | import {ExerciseHistory} from "./exercisehistory";
export class TimeHistory extends ExerciseHistory {
private distance: number;
private duration: number;
getHistoryId(): number {
return this.historyId;
}
getWidth(): number {
return this.distance;
}
setWidth(value: number):... | import {ExerciseHistory} from "./exercisehistory";
export class TimeHistory extends ExerciseHistory {
private distance: number;
private duration: number;
constructor(jsonObject: any) {
super(jsonObject);
this.distance = jsonObject.history_distance;
this.duration = jsonObject.history... | Add constructor to time history model | Add constructor to time history model
| TypeScript | mit | pbraunstein/trackercise,pbraunstein/trackercise,pbraunstein/trackercise,pbraunstein/trackercise,pbraunstein/trackercise | typescript | ## Code Before:
import {ExerciseHistory} from "./exercisehistory";
export class TimeHistory extends ExerciseHistory {
private distance: number;
private duration: number;
getHistoryId(): number {
return this.historyId;
}
getWidth(): number {
return this.distance;
}
setWidth... |
550a702dc84a332c212926c59c513dce3fa9b72c | Controller/TagController.php | Controller/TagController.php | <?php
namespace Coosos\TagBundle\Controller;
use Coosos\TagBundle\Entity\Tag;
use Coosos\TagBundle\Repository\TagRepository;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\H... | <?php
namespace Coosos\TagBundle\Controller;
use Coosos\TagBundle\Entity\Tag;
use Coosos\TagBundle\Repository\TagRepository;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\H... | Return array, change param name | Return array, change param name
| PHP | mit | Coosos/TagBundle,Coosos/TagBundle | php | ## Code Before:
<?php
namespace Coosos\TagBundle\Controller;
use Coosos\TagBundle\Entity\Tag;
use Coosos\TagBundle\Repository\TagRepository;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\JsonResponse;
use Sym... |
675e3615255054550bfa98c342f5761428619fc5 | CRYPTO.md | CRYPTO.md | groundstation uses RSA under the hood with (planned for now) experimental
support for ECDSA.
The rationale for this is that while other algorithms are more practical in
many ways, RSA keys are the most widespread amongst developers, and being able
to use your ssh keys as an identity will hopefully make significant str... | groundstation uses RSA under the hood with (planned for now) experimental
support for ECDSA.
The rationale for this is that while other algorithms are more practical in
many ways, RSA keys are the most widespread amongst developers, and being able
to use your ssh keys as an identity will hopefully make significant str... | Update crypto doc with potential sync strategies | Update crypto doc with potential sync strategies
| Markdown | mit | richo/groundstation,richo/groundstation,richo/groundstation,richo/groundstation,richo/groundstation | markdown | ## Code Before:
groundstation uses RSA under the hood with (planned for now) experimental
support for ECDSA.
The rationale for this is that while other algorithms are more practical in
many ways, RSA keys are the most widespread amongst developers, and being able
to use your ssh keys as an identity will hopefully make... |
1490bbb380114d7b8651f2d6356cf1bb917e3f62 | docker-compose.yml | docker-compose.yml | version: "3.5"
networks:
proxy:
external: true
volumes:
app: {}
asset: {}
db: {}
services:
db:
image: akilli/postgres
restart: unless-stopped
volumes:
- source: asset
target: /app
type: volume
- source: db
target: /data
type: volume
app:
image:... | version: "3.5"
networks:
proxy:
external: true
volumes:
app: {}
asset: {}
db: {}
tmp: {}
services:
db:
image: akilli/postgres
restart: unless-stopped
volumes:
- source: asset
target: /app
type: volume
- source: db
target: /data
type: volume
app:
... | Add tmp volume to share session amongst multiple app containers | Add tmp volume to share session amongst multiple app containers
| YAML | mit | akilli/cms,akilli/cms,akilli/cms | yaml | ## Code Before:
version: "3.5"
networks:
proxy:
external: true
volumes:
app: {}
asset: {}
db: {}
services:
db:
image: akilli/postgres
restart: unless-stopped
volumes:
- source: asset
target: /app
type: volume
- source: db
target: /data
type: volume
... |
0f28b5f70e1f8d3489321e72e0a5aaa3656f6bcd | .travis.yml | .travis.yml | language: ruby
rvm:
- 1.9.3
- 2.1
- 2.2
before_install:
- gem update bundler
script:
- bundle exec rake
branches:
except:
- release
notifications:
email: false
| language: ruby
sudo: false
rvm:
- 1.9.3
- 2.1
- 2.2
script:
- bundle exec rake
branches:
except:
- release
notifications:
email: false
| Move to Travis's container-based infrastructure | Move to Travis's container-based infrastructure
https://docs.travis-ci.com/user/workers/container-based-infrastructure/
Alternative to:
https://github.com/guidance-guarantee-programme/govspeak/commit/1135adab
9d1e4404b9a903ee1ffb35f7ebbeb21e
| YAML | mit | alphagov/govspeak,alphagov/govspeak,met-office-lab/govspeak,met-office-lab/govspeak | yaml | ## Code Before:
language: ruby
rvm:
- 1.9.3
- 2.1
- 2.2
before_install:
- gem update bundler
script:
- bundle exec rake
branches:
except:
- release
notifications:
email: false
## Instruction:
Move to Travis's container-based infrastructure
https://docs.travis-ci.com/user/workers/container-based-infr... |
db9907c3b7875d921cca610c5b304cf440b4df8e | services/stock_info.rb | services/stock_info.rb | require 'date'
class StockInfo
attr_accessor :symbol
def initialize(symbol)
self.symbol = symbol
end
def last_prices
quotes.map { |quote| quote[:close].to_f }
end
def last_prices_days
quotes.map { |quote| quote[:date].strftime("%a") }
end
def to_hash
{ company: company,
... | require 'date'
class StockInfo
attr_accessor :symbol
def initialize(symbol)
self.symbol = symbol
end
def last_prices
quotes.map { |quote| quote[:close].to_f }
end
def last_prices_days
quotes.map { |quote| quote[:date].strftime("%a") }
end
def to_hash
{ company: company,
... | Make sure to include today in chart history | Make sure to include today in chart history
| Ruby | apache-2.0 | kunalbhat/stocky,kunalbhat/stocky | ruby | ## Code Before:
require 'date'
class StockInfo
attr_accessor :symbol
def initialize(symbol)
self.symbol = symbol
end
def last_prices
quotes.map { |quote| quote[:close].to_f }
end
def last_prices_days
quotes.map { |quote| quote[:date].strftime("%a") }
end
def to_hash
{ company: ... |
962fc49f734b04e717bf936745013ab0c19c4ee1 | utils.py | utils.py | import cv2
import itertools
import numpy as np
def partition(pred, iterable):
"""
Partition the iterable into two disjoint entries based
on the predicate.
@return: Tuple (iterable1, iterable2)
"""
iter1, iter2 = itertools.tee(iterable)
return itertools.filterfalse(pred, iter1), filter(pred, iter2)
def ... | from six.moves import filterfalse
import cv2
import itertools
import numpy as np
def partition(pred, iterable):
"""
Partition the iterable into two disjoint entries based
on the predicate.
@return: Tuple (iterable1, iterable2)
"""
iter1, iter2 = itertools.tee(iterable)
return filterfalse(pred, iter1), ... | Fix python 2.7 compatibility issue | Fix python 2.7 compatibility issue
| Python | mit | viswanathgs/dist-dqn,viswanathgs/dist-dqn | python | ## Code Before:
import cv2
import itertools
import numpy as np
def partition(pred, iterable):
"""
Partition the iterable into two disjoint entries based
on the predicate.
@return: Tuple (iterable1, iterable2)
"""
iter1, iter2 = itertools.tee(iterable)
return itertools.filterfalse(pred, iter1), filter(pr... |
4fbf43d24d5c391de3d4b6abf964d361ad0f55e0 | Realization/backend/core/core-api/src/main/java/eu/bcvsolutions/idm/core/api/rest/lookup/AbstractEntityLookup.java | Realization/backend/core/core-api/src/main/java/eu/bcvsolutions/idm/core/api/rest/lookup/AbstractEntityLookup.java | package eu.bcvsolutions.idm.core.api.rest.lookup;
import org.springframework.core.GenericTypeResolver;
import eu.bcvsolutions.idm.core.api.entity.BaseEntity;
/**
* Lookup support
*
* @author Radek Tomiška
*
* @param <E>
*/
public abstract class AbstractEntityLookup<E extends BaseEntity> implements EntityLooku... | package eu.bcvsolutions.idm.core.api.rest.lookup;
import org.springframework.core.GenericTypeResolver;
import eu.bcvsolutions.idm.core.api.entity.BaseEntity;
import eu.bcvsolutions.idm.core.api.script.ScriptEnabled;
/**
* Lookup support
*
* @author Radek Tomiška
*
* @param <E>
*/
public abstract class Abstrac... | Add temporary scrip enabled for lookup services | Add temporary scrip enabled for lookup services
| Java | mit | bcvsolutions/CzechIdMng,bcvsolutions/CzechIdMng,bcvsolutions/CzechIdMng,bcvsolutions/CzechIdMng | java | ## Code Before:
package eu.bcvsolutions.idm.core.api.rest.lookup;
import org.springframework.core.GenericTypeResolver;
import eu.bcvsolutions.idm.core.api.entity.BaseEntity;
/**
* Lookup support
*
* @author Radek Tomiška
*
* @param <E>
*/
public abstract class AbstractEntityLookup<E extends BaseEntity> implem... |
d2c0444ade109ca25bb07fe0b0ad9c1efa1b9ba6 | packages/ember-data/lib/system/application_ext.js | packages/ember-data/lib/system/application_ext.js | var set = Ember.set;
Ember.onLoad('application', function(app) {
app.registerInjection(function(app, stateManager, property) {
if (property === 'Store') {
set(stateManager, 'store', app[property].create());
}
});
});
| var set = Ember.set;
Ember.onLoad('application', function(app) {
app.registerInjection({
name: "store",
before: "controllers",
injection: function(app, stateManager, property) {
if (property === 'Store') {
set(stateManager, 'store', app[property].create());
}
}
});
});
| Update to new injection syntax | Update to new injection syntax | JavaScript | mit | jmurphyau/data,gniquil/data,heathharrelson/data,sebweaver/data,tarzan/data,rwjblue/data,nickiaconis/data,splattne/data,tarzan/data,thaume/data,andrejunges/data,Kuzirashi/data,swarmbox/data,sebweaver/data,simaob/data,greyhwndz/data,sebweaver/data,trisrael/em-data,faizaanshamsi/data,k-fish/data,kappiah/data,hibariya/data... | javascript | ## Code Before:
var set = Ember.set;
Ember.onLoad('application', function(app) {
app.registerInjection(function(app, stateManager, property) {
if (property === 'Store') {
set(stateManager, 'store', app[property].create());
}
});
});
## Instruction:
Update to new injection syntax
## Code After:
var s... |
1583b3d71310e60f85064557db991de7617d47dd | app/src/main/java/com/koustuvsinha/benchmarker/utils/Constants.java | app/src/main/java/com/koustuvsinha/benchmarker/utils/Constants.java | package com.koustuvsinha.benchmarker.utils;
import com.koustuvsinha.benchmarker.models.DbFactoryModel;
import java.util.ArrayList;
/**
* Created by koustuv on 24/5/15.
*/
public class Constants {
public static ArrayList<DbFactoryModel> DB_LIST = new ArrayList<DbFactoryModel>() {{
add(new DbFactoryMode... | package com.koustuvsinha.benchmarker.utils;
import com.koustuvsinha.benchmarker.models.DbFactoryModel;
import java.util.ArrayList;
/**
* Created by koustuv on 24/5/15.
*/
public class Constants {
public static ArrayList<DbFactoryModel> DB_LIST = new ArrayList<DbFactoryModel>() {{
add(new DbFactoryMode... | Update constants as per db list | Update constants as per db list
| Java | mit | koustuvsinha/benchmarker | java | ## Code Before:
package com.koustuvsinha.benchmarker.utils;
import com.koustuvsinha.benchmarker.models.DbFactoryModel;
import java.util.ArrayList;
/**
* Created by koustuv on 24/5/15.
*/
public class Constants {
public static ArrayList<DbFactoryModel> DB_LIST = new ArrayList<DbFactoryModel>() {{
add(n... |
d140c7079dc729f33adc73eb247d4b533ebf39de | features/step_definitions/filesystem_steps.rb | features/step_definitions/filesystem_steps.rb | require 'fileutils'
require 'tempfile'
require 'tmpdir'
Given /^an empty home directory$/ do
@homedir = Dir.mktmpdir
end
And /^an empty config directory$/ do
@configdir = Dir.mktmpdir
end
Given /^a file named "(.*?)" in the home directory$/ do |file|
filepath = File.expand_path File.join(@homedir, file)
@fil... | require 'pathname'
require 'fileutils'
require 'tempfile'
require 'tmpdir'
Given /^an empty home directory$/ do
@homedir = Dir.mktmpdir
end
And /^an empty config directory$/ do
@configdir = Dir.mktmpdir
end
Given /^a file named "(.*?)" in the home directory$/ do |file|
filepath = File.expand_path File.join(@ho... | Make sure we properly create symlinks in feature | Make sure we properly create symlinks in feature
| Ruby | mit | Trevoke/pipboy | ruby | ## Code Before:
require 'fileutils'
require 'tempfile'
require 'tmpdir'
Given /^an empty home directory$/ do
@homedir = Dir.mktmpdir
end
And /^an empty config directory$/ do
@configdir = Dir.mktmpdir
end
Given /^a file named "(.*?)" in the home directory$/ do |file|
filepath = File.expand_path File.join(@homed... |
fbb2611d73edd5290c1f6d8f0f53f3c6de2179c8 | sample/src/main/res/values/strings.xml | sample/src/main/res/values/strings.xml | <?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">ZXing Sample</string>
<string name="scan_barcode">Scan Barcode</string>
<string name="any_orientation">1D Any Orientation</string>
<string name="scan_from_fragment">Scan from fragment</string>
<string name="front_camera">Fro... | <?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">TO Code</string>
<string name="scan_barcode">Scan Barcode</string>
<string name="any_orientation">1D Any Orientation</string>
<string name="scan_from_fragment">Scan from fragment</string>
<string name="front_camera">Front Ca... | Update app name for 0.0.3 release | Update app name for 0.0.3 release | XML | apache-2.0 | movedon2otherthings/zxing-android-embedded | xml | ## Code Before:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">ZXing Sample</string>
<string name="scan_barcode">Scan Barcode</string>
<string name="any_orientation">1D Any Orientation</string>
<string name="scan_from_fragment">Scan from fragment</string>
<string name="f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.