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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
712b44f8c2eb3d8636e3f7fd2dadc8ef263d8731 | content/docs/for-developers/sending-email/v3-python-code-example.md | content/docs/for-developers/sending-email/v3-python-code-example.md | ---
layout: page
weight: 0
title: v3 API Python Code Example
group: api-v3
navigation:
show: true
---
<call-out>
We recommend using SendGrid Python, our client library, [available on GitHub](https://github.com/sendgrid/sendgrid-python), with full documentation.
</call-out>
<call-out>
Do you have an [API Key](htt... | ---
layout: page
weight: 0
title: v3 API Python Code Example
group: api-v3
navigation:
show: true
---
<call-out>
We recommend using SendGrid Python, our client library, [available on GitHub](https://github.com/sendgrid/sendgrid-python), with full documentation.
</call-out>
<call-out>
Do you have an [API Key](htt... | Update code sample to reflect latest version of our Python SDK | Update code sample to reflect latest version of our Python SDK | Markdown | mit | sendgrid/docs,Whatthefoxsays/docs,sendgrid/docs,Whatthefoxsays/docs,Whatthefoxsays/docs,sendgrid/docs | markdown | ## Code Before:
---
layout: page
weight: 0
title: v3 API Python Code Example
group: api-v3
navigation:
show: true
---
<call-out>
We recommend using SendGrid Python, our client library, [available on GitHub](https://github.com/sendgrid/sendgrid-python), with full documentation.
</call-out>
<call-out>
Do you have ... |
bebb9f7886aa6db043b1d0ce5ba9c0a84aa7e17c | utils/ua.js | utils/ua.js | const UA = window.navigator.userAgent;
export const isiOS = /iPhone/i.test(UA);
export const isAndroid = /android/i.test(UA);
export const isMobile = isiOS || isAndroid;
| const UA = window.navigator.userAgent;
export const isiOS = /iPhone/i.test(UA);
export const isAndroid = /android/i.test(UA);
export const isMobile = window.innerWidth < window.innerHeight;
| Modify the mobile judgment standard | feat: Modify the mobile judgment standard
| JavaScript | mit | yinxin630/fiora,yinxin630/fiora,yinxin630/fiora | javascript | ## Code Before:
const UA = window.navigator.userAgent;
export const isiOS = /iPhone/i.test(UA);
export const isAndroid = /android/i.test(UA);
export const isMobile = isiOS || isAndroid;
## Instruction:
feat: Modify the mobile judgment standard
## Code After:
const UA = window.navigator.userAgent;
export const isi... |
a294ea80e95e8469031997ad40fbb3fa5e5eb658 | security-utils/src/main/java/com/yahoo/security/tls/MixedMode.java | security-utils/src/main/java/com/yahoo/security/tls/MixedMode.java | // Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.security.tls;
import java.util.Arrays;
/**
* @author bjorncs
*/
public enum MixedMode {
PLAINTEXT_CLIENT_MIXED_SERVER("plaintext_client_mixed_server"),
TLS_CLIENT_MIXED_SE... | // Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.security.tls;
import java.util.Arrays;
/**
* @author bjorncs
*/
public enum MixedMode {
PLAINTEXT_CLIENT_MIXED_SERVER("plaintext_client_mixed_server"),
TLS_CLIENT_MIXED_SE... | Add 'tls_client_tls_server' as tls mixed mode option | Add 'tls_client_tls_server' as tls mixed mode option
Also introduce default value for mixed mode.
| Java | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa | java | ## Code Before:
// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.security.tls;
import java.util.Arrays;
/**
* @author bjorncs
*/
public enum MixedMode {
PLAINTEXT_CLIENT_MIXED_SERVER("plaintext_client_mixed_server"),
TLS... |
4401efd199967494776e4f62a9d78a1c3cb70585 | envkey-react/src/lib/env/transform.js | envkey-react/src/lib/env/transform.js | import R from 'ramda'
import {inheritedVal} from './inheritance'
const
getMetaToValFn = (envsWithMeta)=> (meta, entryKey)=>{
return meta.inherits ?
inheritedVal({entryKey, envsWithMeta, inherits: meta.inherits}) :
(meta.val || undefined)
}
export const
rawEnv = ({envsWithMeta, environment})=> {
... | import R from 'ramda'
import {inheritedVal} from './inheritance'
const
getMetaToValFn = (envsWithMeta)=> (meta, entryKey)=>{
if (meta.inherits){
return inheritedVal({entryKey, envsWithMeta, inherits: meta.inherits})
} else if (meta.val || meta.val === ""){
return meta.val
} else if (meta.val ... | Fix for empty strings getting parsed as undefined for rawEnv | Fix for empty strings getting parsed as undefined for rawEnv
| JavaScript | mit | envkey/envkey-app,envkey/envkey-app,envkey/envkey-app,envkey/envkey-app | javascript | ## Code Before:
import R from 'ramda'
import {inheritedVal} from './inheritance'
const
getMetaToValFn = (envsWithMeta)=> (meta, entryKey)=>{
return meta.inherits ?
inheritedVal({entryKey, envsWithMeta, inherits: meta.inherits}) :
(meta.val || undefined)
}
export const
rawEnv = ({envsWithMeta, en... |
1b2e07a787d122673242a57d1c2743336df0dc75 | app/views/recipes/_ingredients.html.haml | app/views/recipes/_ingredients.html.haml | .col-md-12
.col-md-3
%strong
%label Ingredients:
.col-md-4= f.link_to_add "Add ingredient", :ingredients, class: "btn btn-danger btn-xs", data: {target: "#new_ingredient"}
%br
%br
%br
.col-md-9
#new_ingredient
= f.simple_fields_for :ingredients do |ingredient|
.col-md-4
= ingredient.associa... | .col-md-12
.col-md-3
%strong
%label Ingredients:
.col-md-4= f.link_to_add "Add ingredient", :ingredients, class: "btn btn-danger btn-xs", data: {target: "#new_ingredient"}
%br
%br
%br
.col-md-9
#new_ingredient
= f.simple_fields_for :ingredients do |ingredient|
.col-md-4
= ingredient.associa... | Remove 'remove' button from ingredient on edit page | Remove 'remove' button from ingredient on edit page
| Haml | mit | Shwetakale/recipe_guru,Shwetakale/recipe_guru,Shwetakale/recipe_guru | haml | ## Code Before:
.col-md-12
.col-md-3
%strong
%label Ingredients:
.col-md-4= f.link_to_add "Add ingredient", :ingredients, class: "btn btn-danger btn-xs", data: {target: "#new_ingredient"}
%br
%br
%br
.col-md-9
#new_ingredient
= f.simple_fields_for :ingredients do |ingredient|
.col-md-4
= in... |
a5870d784ba8642cf1db647c18152562c72ca0b4 | package.json | package.json | {
"name": "react-translate",
"version": "3.0.4",
"description": "react utilities for simple i18n",
"main": "./lib/index.js",
"files": [
"README.md",
"LICENSE",
"lib"
],
"devDependencies": {
"babel": "^5.8.29",
"babel-core": "^5.8.30",
"babel-loader": "^5.3.2",
"react": "^0.14.1... | {
"name": "react-translate",
"version": "3.0.4",
"description": "react utilities for simple i18n",
"main": "./lib/index.js",
"files": [
"README.md",
"LICENSE",
"lib"
],
"devDependencies": {
"babel": "^5.8.29",
"babel-core": "^5.8.30",
"babel-loader": "^5.3.2",
"react": "^0.14.1... | Allow latest version of react as a peer dependency | Allow latest version of react as a peer dependency | JSON | mit | bloodyowl/react-translate | json | ## Code Before:
{
"name": "react-translate",
"version": "3.0.4",
"description": "react utilities for simple i18n",
"main": "./lib/index.js",
"files": [
"README.md",
"LICENSE",
"lib"
],
"devDependencies": {
"babel": "^5.8.29",
"babel-core": "^5.8.30",
"babel-loader": "^5.3.2",
"... |
9541a3c4fc7566156b271f607ff3bf40bbd19ea6 | _pages/events.md | _pages/events.md | ---
title: "Community Events"
permalink: /events/
---
<iframe src="https://calendar.google.com/calendar/embed?src=pdxchinesehub%40gmail.com&ctz=America/Los_Angeles" style="border: 0" width="800" height="600" frameborder="0" scrolling="no"></iframe>
了解波村活动,推荐:https://www.events12.com/portland/。
| ---
title: "Community Events"
permalink: /events/
---
<iframe src="https://calendar.google.com/calendar/embed?src=pdxchinesehub%40gmail.com&ctz=America/Los_Angeles" style="border: 0" width="800" height="600" frameborder="0" scrolling="no"></iframe>
了解波村活动,推荐:[www.events12.com/portland/](https://www.events12.com/portl... | Change event link to hyperlink | Change event link to hyperlink
| Markdown | mit | PDXChinese/pdxchinese.github.io,PDXChinese/pdxchinese.github.io,PDXChinese/pdxchinese.github.io | markdown | ## Code Before:
---
title: "Community Events"
permalink: /events/
---
<iframe src="https://calendar.google.com/calendar/embed?src=pdxchinesehub%40gmail.com&ctz=America/Los_Angeles" style="border: 0" width="800" height="600" frameborder="0" scrolling="no"></iframe>
了解波村活动,推荐:https://www.events12.com/portland/。
## Ins... |
e65a1bc071a31f83e563e4a6853d19a33c110faa | go/1/main.go | go/1/main.go | package main
import "fmt"
func main() {
fmt.Println("Hello!")
} | package main
import "fmt"
func main() {
multiples := make(map[int]bool)
sum := 0
for n, by3, by5 := 1, 3, 5; n < 1000; n++ {
by3 = n * 3
if (by3 >= 1000) {
break;
}
_, ok := multiples[by3]
if ! ok {
sum += by3
multiples[by3] = true
}
by5 = n * 5
if (by5 >= 1000) {
continue;
}
... | Solve first problem with Go | Solve first problem with Go
| Go | mit | krasun/ProjectEulerSolutions | go | ## Code Before:
package main
import "fmt"
func main() {
fmt.Println("Hello!")
}
## Instruction:
Solve first problem with Go
## Code After:
package main
import "fmt"
func main() {
multiples := make(map[int]bool)
sum := 0
for n, by3, by5 := 1, 3, 5; n < 1000; n++ {
by3 = n * 3
if (by3 >= 1000) {
brea... |
d4a15f72592230aa1a400425e6156f1329c823a8 | config/fish/config.fish | config/fish/config.fish | set PATH ~/bin $PATH
# http://www.martinklepsch.org/posts/git-prompt-for-fish-shell.html
set __fish_git_prompt_showdirtystate 'yes'
set __fish_git_prompt_char_dirtystate '⚡'
### Prompt
function fish_prompt
set_color red
echo -n "❯"
set_color yellow
echo -n "❯"
set_color green
echo -n "❯ "
end
function f... | set PATH (brew --prefix coreutils)/libexec/gnubin $PATH
set PATH ~/bin $PATH
set PATH $PATH ~/.cask/bin
# http://www.martinklepsch.org/posts/git-prompt-for-fish-shell.html
set __fish_git_prompt_showdirtystate 'yes'
set __fish_git_prompt_char_dirtystate '⚡'
### Prompt
function fish_prompt
set_color red
echo -n "❯... | Bring over PATH changes to fish | Bring over PATH changes to fish
| fish | mit | drmohundro/dotfiles | fish | ## Code Before:
set PATH ~/bin $PATH
# http://www.martinklepsch.org/posts/git-prompt-for-fish-shell.html
set __fish_git_prompt_showdirtystate 'yes'
set __fish_git_prompt_char_dirtystate '⚡'
### Prompt
function fish_prompt
set_color red
echo -n "❯"
set_color yellow
echo -n "❯"
set_color green
echo -n "❯ "... |
67bfddda80433feb20a83876fca7eeb2c58067a7 | .travis.yml | .travis.yml | rvm:
- 1.8.7 # (current default)
- 1.9.2
gemfile:
- Gemfile
env:
- ISOLATED=true
- ISOLATED=false
script: "bundle exec rake spec"
| rvm:
- 1.8.7 # (current default)
- 1.9.2
gemfile:
- Gemfile
script: "bundle exec rake spec"
| Remove example stuff from the configuration | Remove example stuff from the configuration
| YAML | mit | lutechspa/devise_cas_authenticatable,identification-io/devise_cas_authenticatable,nbudin/devise_cas_authenticatable,nbudin/devise_cas_authenticatable,tomascharad/devise_cas_authenticatable,identification-io/devise_cas_authenticatable,tomascharad/devise_cas_authenticatable | yaml | ## Code Before:
rvm:
- 1.8.7 # (current default)
- 1.9.2
gemfile:
- Gemfile
env:
- ISOLATED=true
- ISOLATED=false
script: "bundle exec rake spec"
## Instruction:
Remove example stuff from the configuration
## Code After:
rvm:
- 1.8.7 # (current default)
- 1.9.2
gemfile:
- Gemfile
script: "bundle exec ... |
54652aba6a353e250792ebf79f7fccdf48ad9418 | CHANGELOG.md | CHANGELOG.md | Release date: 2019-05-03
* Support for ActiveRecord 6
* `discard_all` and `undiscard_all` now return affected records
* Add `discard!` and `undiscard!`
### Version 1.0.0
Release date: 2018-03-16
* Add undiscard callbacks and `.undiscard_all`
### Version 0.2.0
Release date: 2017-11-22
* Add `.discard_all`
* Add `un... |
* Add `discard_all!` and `undiscard_all!`
### Version 1.1.0
Release date: 2019-05-03
* Support for ActiveRecord 6
* `discard_all` and `undiscard_all` now return affected records
* Add `discard!` and `undiscard!`
### Version 1.0.0
Release date: 2018-03-16
* Add undiscard callbacks and `.undiscard_all`
### Version ... | Update changelog with features of last merged PR | Update changelog with features of last merged PR
| Markdown | mit | jhawthorn/discard,jhawthorn/discard | markdown | ## Code Before:
Release date: 2019-05-03
* Support for ActiveRecord 6
* `discard_all` and `undiscard_all` now return affected records
* Add `discard!` and `undiscard!`
### Version 1.0.0
Release date: 2018-03-16
* Add undiscard callbacks and `.undiscard_all`
### Version 0.2.0
Release date: 2017-11-22
* Add `.discar... |
78ad3613e02ed2ab7c848d33d6ff9ad40a0789ff | client/scripts/sw.js | client/scripts/sw.js | const toolbox = require('sw-toolbox');
// Try network but fallback to cache
toolbox.router.default = toolbox.networkFirst;
// Data should query the network first
toolbox.router.any('/api/*', toolbox.networkOnly);
// Data should query the network first
toolbox.router.any('/auth/*', toolbox.networkOnly);
| import {router} from 'sw-toolbox';
// Try network but fallback to cache
router.default = toolbox.networkFirst;
// Data should query the network first
router.any('/api/*', toolbox.networkOnly);
// Data should query the network first
router.any('/auth/*', toolbox.networkOnly);
| Use import rather than require | Use import rather than require
| JavaScript | mit | AdaRoseEdwards/81,AdaRoseEdwards/81,AdaRoseEdwards/81 | javascript | ## Code Before:
const toolbox = require('sw-toolbox');
// Try network but fallback to cache
toolbox.router.default = toolbox.networkFirst;
// Data should query the network first
toolbox.router.any('/api/*', toolbox.networkOnly);
// Data should query the network first
toolbox.router.any('/auth/*', toolbox.networkOnly... |
1c748d1198c7353da1610a8c3d63b7869f84617d | src/create-store.js | src/create-store.js | import forEach from 'lodash/collection/forEach';
import isEmpty from 'lodash/lang/isEmpty';
import isFunction from 'lodash/lang/isFunction';
import snakeCase from 'lodash/string/snakeCase';
import { Store, toImmutable } from 'nuclear-js';
export default function createStore(initialState, handlers) {
const imm... | import forEach from 'lodash/collection/forEach';
import isEmpty from 'lodash/lang/isEmpty';
import isFunction from 'lodash/lang/isFunction';
import snakeCase from 'lodash/string/snakeCase';
import { Store, toImmutable } from 'nuclear-js';
export default function createStore(initialState, handlers) {
const immutableS... | Replace line endings to lf and add default param as empty string for `handlerName` | Replace line endings to lf and add default param as empty string for `handlerName`
| JavaScript | apache-2.0 | raulmatei/frux | javascript | ## Code Before:
import forEach from 'lodash/collection/forEach';
import isEmpty from 'lodash/lang/isEmpty';
import isFunction from 'lodash/lang/isFunction';
import snakeCase from 'lodash/string/snakeCase';
import { Store, toImmutable } from 'nuclear-js';
export default function createStore(initialState, handlers) {
... |
dac06715f5c00883d7359b4098d332d74614f01f | snapcraft.yaml | snapcraft.yaml | name: syncplay
summary: Syncplay
version: build
version-script: cat syncplay/__init__.py | awk '/version/ {gsub("\047", "", $3); print $NF}'
summary: Client/server to synchronize media playback on many computers
description: |
Syncplay synchronises the position and play state of multiple media players
so that the v... | name: syncplay
summary: Syncplay
version: build
version-script: cat syncplay/__init__.py | awk '/version/ {gsub("\047", "", $3); print $NF}'
summary: Client/server to synchronize media playback on many computers
description: |
Syncplay synchronises the position and play state of multiple media players
so that the v... | Disable native wayland for snap | Disable native wayland for snap
Snap is using QT4 (due to lack of pyside2 in core18) which is not compatible with Wayland.
Hopefully this should prevent #331 from occurring. | YAML | apache-2.0 | alby128/syncplay,alby128/syncplay,Syncplay/syncplay,Syncplay/syncplay | yaml | ## Code Before:
name: syncplay
summary: Syncplay
version: build
version-script: cat syncplay/__init__.py | awk '/version/ {gsub("\047", "", $3); print $NF}'
summary: Client/server to synchronize media playback on many computers
description: |
Syncplay synchronises the position and play state of multiple media players... |
58d6e315fce52df67e598d4026269654ef4ab09e | jgrep.gemspec | jgrep.gemspec | require 'date'
Gem::Specification.new do |s|
s.name = "jgrep"
s.version = "1.4.1"
s.date = Date.today.to_s
s.summary = "Filter JSON documents with a simple logical language"
s.description = "Compare a list of json documents to a simple logical language and returns matches as output"
s.homepag... | require 'date'
Gem::Specification.new do |s|
s.name = "jgrep"
s.version = "1.4.1"
s.date = Date.today.to_s
s.summary = "Filter JSON documents with a simple logical language"
s.description = "Compare a list of json documents to a simple logical language and returns matches as output"
s.homepag... | Remove json dependency as modern ruby satisfies this magically | Remove json dependency as modern ruby satisfies this magically
| Ruby | apache-2.0 | ploubser/JSON-Grep | ruby | ## Code Before:
require 'date'
Gem::Specification.new do |s|
s.name = "jgrep"
s.version = "1.4.1"
s.date = Date.today.to_s
s.summary = "Filter JSON documents with a simple logical language"
s.description = "Compare a list of json documents to a simple logical language and returns matches as outpu... |
c8e7481a743690f342f7401d42bdb354f3e5916d | app/views/partials/attendance/list/studentAttendanceButtons.jade | app/views/partials/attendance/list/studentAttendanceButtons.jade | .pull-left.margin-left-10
.btn-toolbar(ng-show='!showRemoveConfirm')
button.btn.btn-danger.btn-sm.viewBtn(ng-click='removeAttendanceEntry()')
span.glyphicon.glyphicon-remove.white
button.btn.btn-default.btn-sm.viewBtn(ng-click='editAchievements(row.entity)', ng-show='!row.entity.workshop') Edit Achievements
.b... | .pull-left.margin-left-10
.btn-toolbar(ng-show='!showRemoveConfirm')
button.btn.btn-danger.btn-sm.viewBtn(ng-click='removeAttendanceEntry()')
span.glyphicon.glyphicon-remove.white
button.btn.btn-default.btn-sm.viewBtn(ng-click='editAchievements(row.entity)', ng-show='!row.entity.workshop && row.entity.sortedRan... | Remove Edit Achievements button for attendance items for programs that have no achievements | Remove Edit Achievements button for attendance items for programs that have no achievements
| Jade | mit | icompuiz/node-ttkd | jade | ## Code Before:
.pull-left.margin-left-10
.btn-toolbar(ng-show='!showRemoveConfirm')
button.btn.btn-danger.btn-sm.viewBtn(ng-click='removeAttendanceEntry()')
span.glyphicon.glyphicon-remove.white
button.btn.btn-default.btn-sm.viewBtn(ng-click='editAchievements(row.entity)', ng-show='!row.entity.workshop') Edit ... |
2d31f6b842f26b5c33d2650f0f7672ba09230bfd | ratechecker/migrations/0002_remove_fee_loader.py | ratechecker/migrations/0002_remove_fee_loader.py | from __future__ import unicode_literals
from django.db import migrations, OperationalError, ProgrammingError
class Migration(migrations.Migration):
dependencies = [
('ratechecker', '0001_initial'),
]
operations = [
migrations.AlterUniqueTogether(
name='fee',
uniqu... | from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('ratechecker', '0001_initial'),
]
operations = [
migrations.AlterUniqueTogether(
name='fee',
unique_together=set([]),
),
... | Remove OperationalError and ProgrammingError imports | Remove OperationalError and ProgrammingError imports
| Python | cc0-1.0 | cfpb/owning-a-home-api | python | ## Code Before:
from __future__ import unicode_literals
from django.db import migrations, OperationalError, ProgrammingError
class Migration(migrations.Migration):
dependencies = [
('ratechecker', '0001_initial'),
]
operations = [
migrations.AlterUniqueTogether(
name='fee',
... |
85611ba33b64475570128b90f369d8e97103dba0 | requirements.txt | requirements.txt | scipy
cython
matplotlib
numpy
biopython
scikit-learn
enum34 >=1.1.6; python_version < '3.4'
| scipy
cython
matplotlib
numpy
biopython
scikit-learn
| Revert "Added python version to dependency - requested by Charles" | Revert "Added python version to dependency - requested by Charles"
This reverts commit c9904cd37d0ae1d8aeb9158118f7d5b730ebaa7b.
| Text | bsd-3-clause | rigdenlab/conkit | text | ## Code Before:
scipy
cython
matplotlib
numpy
biopython
scikit-learn
enum34 >=1.1.6; python_version < '3.4'
## Instruction:
Revert "Added python version to dependency - requested by Charles"
This reverts commit c9904cd37d0ae1d8aeb9158118f7d5b730ebaa7b.
## Code After:
scipy
cython
matplotlib
numpy
biopython
scikit-le... |
e4d6faddda08d32a925d8a853af185fc6de212ff | lib/ossert/workers/refresh_fetch.rb | lib/ossert/workers/refresh_fetch.rb | module Ossert
module Workers
class RefreshFetch
include Sidekiq::Worker
include ForkProcessing
sidekiq_options unique: :until_executed,
unique_expiration: 1.hour,
retry: 3
def perform
process_in_fork do
Ossert.init
::... | module Ossert
module Workers
class RefreshFetch
include Sidekiq::Worker
include ForkProcessing
sidekiq_options unique: :until_executed,
unique_expiration: 1.hour,
retry: 3
def perform
process_in_fork do
Ossert.init
::... | Fix data update, use ordering by updated_at | Fix data update, use ordering by updated_at
| Ruby | mit | ossert/ossert,ossert/ossert | ruby | ## Code Before:
module Ossert
module Workers
class RefreshFetch
include Sidekiq::Worker
include ForkProcessing
sidekiq_options unique: :until_executed,
unique_expiration: 1.hour,
retry: 3
def perform
process_in_fork do
Ossert.i... |
5b0045b1d6796820e54cf3583e50c68fbc344dae | app/controllers/middleware_datasource_controller.rb | app/controllers/middleware_datasource_controller.rb | class MiddlewareDatasourceController < ApplicationController
include Mixins::GenericListMixin
include Mixins::GenericShowMixin
include EmsCommon
include MiddlewareCommonMixin
before_action :check_privileges
before_action :get_session_data
after_action :cleanup_action
after_action :set_session_data
O... | class MiddlewareDatasourceController < ApplicationController
include Mixins::GenericListMixin
include Mixins::GenericShowMixin
include EmsCommon
include MiddlewareCommonMixin
before_action :check_privileges
before_action :get_session_data
after_action :cleanup_action
after_action :set_session_data
O... | Fix MW Datasource removal toast text | Fix MW Datasource removal toast text
| Ruby | apache-2.0 | ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic | ruby | ## Code Before:
class MiddlewareDatasourceController < ApplicationController
include Mixins::GenericListMixin
include Mixins::GenericShowMixin
include EmsCommon
include MiddlewareCommonMixin
before_action :check_privileges
before_action :get_session_data
after_action :cleanup_action
after_action :set_s... |
d5f782fc7a8c7835af0d4d2810a923d218dea938 | mplwidget.py | mplwidget.py | from PyQt4 import QtGui
import matplotlib as mpl
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.backends.backend_qt4agg import NavigationToolbar2QT as NavigationToolbar
from matplotlib.figure import Figure
import matplotlib.mlab as mlab
import matplotlib.gridspec as gri... | from PyQt4 import QtGui,QtCore
import matplotlib as mpl
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.backends.backend_qt4agg import NavigationToolbar2QT as NavigationToolbar
from matplotlib.figure import Figure
import matplotlib.mlab as mlab
import matplotlib.gridspec... | Expand figure when window is resized | Expand figure when window is resized
| Python | apache-2.0 | scholi/pyOmicron | python | ## Code Before:
from PyQt4 import QtGui
import matplotlib as mpl
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.backends.backend_qt4agg import NavigationToolbar2QT as NavigationToolbar
from matplotlib.figure import Figure
import matplotlib.mlab as mlab
import matplotlib... |
6e4ff87282eb51d29d26ea6a36037ed6b2cdf886 | assets/sass/vendor/_mdc-checkbox.scss | assets/sass/vendor/_mdc-checkbox.scss | // Overrides for .mdc-checkbox
.googlesitekit-plugin .mdc-checkbox {
@include mdc-checkbox-container-colors($c-border-medium, $c-base, $c-border-brand, $c-background-brand, true);
@include mdc-checkbox-ink-color($c-base);
@include mdc-checkbox-focus-indicator-color($c-input);
box-sizing: content-box;
// Overrid... | // Overrides for .mdc-checkbox
.googlesitekit-plugin .mdc-checkbox {
@include mdc-checkbox-container-colors($c-border-medium, $c-base, $c-border-brand, $c-background-brand, true);
@include mdc-checkbox-ink-color($c-base);
@include mdc-checkbox-focus-indicator-color($c-input);
box-sizing: content-box;
// Overrid... | Adjust styling on Spinner when it is child of Checkbox. | Adjust styling on Spinner when it is child of Checkbox.
| SCSS | apache-2.0 | google/site-kit-wp,google/site-kit-wp,google/site-kit-wp,google/site-kit-wp | scss | ## Code Before:
// Overrides for .mdc-checkbox
.googlesitekit-plugin .mdc-checkbox {
@include mdc-checkbox-container-colors($c-border-medium, $c-base, $c-border-brand, $c-background-brand, true);
@include mdc-checkbox-ink-color($c-base);
@include mdc-checkbox-focus-indicator-color($c-input);
box-sizing: content-b... |
a291e17ad157d0c322c22f1244eafc918d5d9b8b | gulp/tasks/lint.js | gulp/tasks/lint.js | var gulp = require('gulp');
var config = require('../config');
var plumber = require('gulp-plumber');
var jscs = require('gulp-jscs');
var jshint = require('gulp-jshint');
var stylish = require('jshint-stylish');
var handleError = require('../util/handle-errors');
gulp.task('jshint', function() {
var allJavascript ... | var gulp = require('gulp'),
config = require('../config'),
plumber = require('gulp-plumber'),
jscs = require('gulp-jscs'),
jshint = require('gulp-jshint'),
stylish = require('jshint-stylish'),
handleError = require('../util/handle-errors');
gulp.task('jshint', function() {
var allJavascript ... | Use single var for requires | Use single var for requires | JavaScript | mit | walmartlabs/circus,walmartlabs/circus | javascript | ## Code Before:
var gulp = require('gulp');
var config = require('../config');
var plumber = require('gulp-plumber');
var jscs = require('gulp-jscs');
var jshint = require('gulp-jshint');
var stylish = require('jshint-stylish');
var handleError = require('../util/handle-errors');
gulp.task('jshint', function() {
va... |
d214211f0b43222f3f91f789d323c8de16facc50 | src/commonPasswords.ts | src/commonPasswords.ts | export let commonPasswords = [
"123456", "password", "pikachu", "pokemon", "12345678", "qwerty", "123456789",
"12345", "123456789", "letmein", "1234567", "iloveyou", "admin", "welcome",
"monkey", "login", "abc123", "123123", "dragon", "passw0rd", "master",
"hello", "freedom", "whatever", "qazwsx"
];
| export let commonPasswords = [
"123456", "password", "pikachu", "pokemon"
];
| Remove passwords to quell the login god | Remove passwords to quell the login god
| TypeScript | agpl-3.0 | shoedrip-unbound/dogars,shoedrip-unbound/dogars,shoedrip-unbound/dogars | typescript | ## Code Before:
export let commonPasswords = [
"123456", "password", "pikachu", "pokemon", "12345678", "qwerty", "123456789",
"12345", "123456789", "letmein", "1234567", "iloveyou", "admin", "welcome",
"monkey", "login", "abc123", "123123", "dragon", "passw0rd", "master",
"hello", "freedom", "whatever",... |
c24ba3fdc14831eed1bc54932383858b40d0e10f | assets/scripts/app.js | assets/scripts/app.js | import modular from 'modujs';
import * as modules from './modules';
import globals from './globals';
import { html } from './utils/environment';
const app = new modular({
modules: modules
});
window.onload = (event) => {
const $style = document.getElementById("stylesheet");
if ($style.isLoaded) {
... | import modular from 'modujs';
import * as modules from './modules';
import globals from './globals';
import { html } from './utils/environment';
const app = new modular({
modules: modules
});
window.onload = (event) => {
const $style = document.getElementById("stylesheet");
if ($style.isLoaded) {
... | Remove multiple Element.classList.add values (not compatible with IE11) | Remove multiple Element.classList.add values (not compatible with IE11)
| JavaScript | mit | stephenbe/locomotive-boilerplate,stephenbe/locomotive-boilerplate,locomotivemtl/locomotive-boilerplate,locomotivemtl/locomotive-boilerplate,stephenbe/locomotive-boilerplate | javascript | ## Code Before:
import modular from 'modujs';
import * as modules from './modules';
import globals from './globals';
import { html } from './utils/environment';
const app = new modular({
modules: modules
});
window.onload = (event) => {
const $style = document.getElementById("stylesheet");
if ($style.isL... |
4627795379bf0cebf12656d947837101cdefc4b7 | circle.yml | circle.yml | dependencies:
override:
- pip install tox tox-pyenv mkdocs
- pyenv local 2.7.10 3.5.1
notify:
webhooks:
- url: https://webhooks.gitter.im/e/3e39fb29521e82ee001d
test:
override:
- tox
deployment:
master:
branch: master
commands:
- mkdocs gh-deploy
| dependencies:
pre:
- sudo apt-get update; sudo apt-get install python-matplotlib python3-matplotlib python-tk python3-tk
override:
- pip install tox tox-pyenv mkdocs
- pyenv local 2.7.10 3.5.1
notify:
webhooks:
- url: https://webhooks.gitter.im/e/3e39fb29521e82ee001d
test:
override:
- tox
... | Install matplotlib packages on CircleCI | Install matplotlib packages on CircleCI
| YAML | apache-2.0 | liyi193328/seq2seq,shashankrajput/seq2seq,google/seq2seq,kontact-chan/seq2seq,google/seq2seq,kontact-chan/seq2seq,chunfengh/seq2seq,kontact-chan/seq2seq,liyi193328/seq2seq,shashankrajput/seq2seq,chunfengh/seq2seq,liyi193328/seq2seq,kontact-chan/seq2seq,chunfengh/seq2seq,shashankrajput/seq2seq,google/seq2seq,chunfengh/s... | yaml | ## Code Before:
dependencies:
override:
- pip install tox tox-pyenv mkdocs
- pyenv local 2.7.10 3.5.1
notify:
webhooks:
- url: https://webhooks.gitter.im/e/3e39fb29521e82ee001d
test:
override:
- tox
deployment:
master:
branch: master
commands:
- mkdocs gh-deploy
## Instruction:... |
176ff528638636e255037a92fbb37eb3523fd333 | .travis.yml | .travis.yml | rvm:
- 1.9.3
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- bundle exec rackup &
script:
- phantomjs tests/qunit/run-qunit.js "http://localhost:9292/tests/index.html?package=all&extendprototypes=true"
- phantomjs tests/qunit/run-qunit.js "http://localhost:9292/tests/index.html?pa... | rvm:
- 1.9.3
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- bundle exec rackup &
- sleep 5
script: phantomjs tests/qunit/run-qunit.js "http://localhost:9292/tests/index.html?package=all" && phantomjs tests/qunit/run-qunit.js "http://localhost:9292/tests/index.html?package=all&jquer... | Make sure server has started and fix script: | Make sure server has started and fix script:
Add tests for w/o extended prototypes
| YAML | mit | okuryu/ember.js,quaertym/ember.js,mfeckie/ember.js,thoov/ember.js,adamesque/ember.js,johanneswuerbach/ember.js,eliotsykes/ember.js,cdl/ember.js,cyjia/ember.js,mtaylor769/ember.js,balinterdi/ember.js,cesarizu/ember.js,miguelcobain/ember.js,jish/ember.js,jasonmit/ember.js,tomdale/ember.js,ef4/ember.js,tiegz/ember.js,omur... | yaml | ## Code Before:
rvm:
- 1.9.3
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- bundle exec rackup &
script:
- phantomjs tests/qunit/run-qunit.js "http://localhost:9292/tests/index.html?package=all&extendprototypes=true"
- phantomjs tests/qunit/run-qunit.js "http://localhost:9292/tes... |
62f1034cf77b025b2e34c69eea8446549eee768c | composer.json | composer.json | {
"name": "togos/tpfetcher",
"description": "Fetch blobs by hash-based URN.",
"license": "MIT",
"require": {
"togos/base32": "~1.0.0"
}
}
| {
"name": "togos/tpfetcher",
"description": "Fetch blobs by hash-based URN.",
"license": "MIT",
"require": {
"togos/base32": "~1.0.0"
},
"bin": [
"bin/fetch"
]
}
| Add bin/fetch to 'bin' list. | Add bin/fetch to 'bin' list.
| JSON | mit | TOGoS/TPFetcher | json | ## Code Before:
{
"name": "togos/tpfetcher",
"description": "Fetch blobs by hash-based URN.",
"license": "MIT",
"require": {
"togos/base32": "~1.0.0"
}
}
## Instruction:
Add bin/fetch to 'bin' list.
## Code After:
{
"name": "togos/tpfetcher",
"description": "Fetch blobs by hash-based URN.",
"license": "MIT"... |
a7212b772e55e1f04493a33adb69c61db1dab8b7 | common/library_main.cc | common/library_main.cc |
int BrightrayExampleMain(int argc, const char* argv[]) {
brightray_example::MainDelegate delegate;
return content::ContentMain(argc, argv, &delegate);
}
|
int BrightrayExampleMain(int argc, const char* argv[]) {
brightray_example::MainDelegate delegate;
content::ContentMainParams params(&delegate);
params.argc = argc;
params.argv = argv;
return content::ContentMain(params);
}
| Update for changes to content::ContentMain | Update for changes to content::ContentMain
| C++ | mit | atom/brightray_example,atom/brightray_example,atom/brightray_example | c++ | ## Code Before:
int BrightrayExampleMain(int argc, const char* argv[]) {
brightray_example::MainDelegate delegate;
return content::ContentMain(argc, argv, &delegate);
}
## Instruction:
Update for changes to content::ContentMain
## Code After:
int BrightrayExampleMain(int argc, const char* argv[]) {
brightray_... |
e4e030244b043182ca9b9dabaff47036153a3099 | src/app/core/services/socket.service.ts | src/app/core/services/socket.service.ts | import { Injectable } from '@angular/core';
import { environment } from './../../../environments/environment';
import { Observable } from 'rxjs';
import * as io from 'socket.io-client';
@Injectable()
export class SocketService {
url: string;
socket: SocketIOClient.Socket;
constructor() {
if(e... | import { Injectable } from '@angular/core';
import { environment } from './../../../environments/environment';
import { Observable } from 'rxjs';
import * as io from 'socket.io-client';
@Injectable()
export class SocketService {
url: string;
socket: SocketIOClient.Socket;
constructor() {
if(t... | Add experimental/temporal control to avoid create new connections | Add experimental/temporal control to avoid create new connections
| TypeScript | mit | semagarcia/javascript-kata-player,semagarcia/javascript-kata-player,semagarcia/javascript-kata-player | typescript | ## Code Before:
import { Injectable } from '@angular/core';
import { environment } from './../../../environments/environment';
import { Observable } from 'rxjs';
import * as io from 'socket.io-client';
@Injectable()
export class SocketService {
url: string;
socket: SocketIOClient.Socket;
constructor(... |
e830c98ae4982f1e886bf324e22d11273674edc8 | cheat.gemspec | cheat.gemspec | lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'cheat/version'
Gem::Specification.new do |spec|
spec.add_dependency 'pager', '~> 1.0'
spec.name = 'cheat'
spec.description = "cheat prints cheat sheets from cheat.errtheblog.com, a wiki-like re... | lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'cheat/version'
Gem::Specification.new do |spec|
spec.add_dependency 'pager', '~> 1.0'
spec.add_development_dependency 'bundler', '~> 1.0'
spec.name = 'cheat'
spec.description = "cheat prints ... | Add bundler as a development dependency | Add bundler as a development dependency
| Ruby | mit | defunkt/cheat | ruby | ## Code Before:
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'cheat/version'
Gem::Specification.new do |spec|
spec.add_dependency 'pager', '~> 1.0'
spec.name = 'cheat'
spec.description = "cheat prints cheat sheets from cheat.errtheblog.com... |
2ba213b3451acb336d1ac9959e947803447352b7 | _config.yml | _config.yml | permalink: pretty
relative_permalinks: true
# Setup
title: Sleep
tagline: Mixtapes
url: http://pedrolucasp.github.com/sleep
paginate: 1
baseurl: ""
# Assets
#
# We specify the directory for Jekyll so we can use @imports.
sass:
sass_dir: ... | permalink: pretty
relative_permalinks: true
# Setup
title: Sleep
tagline: Mixtapes
url: http://pedrolucasp.github.com/sleep
paginate: 1
baseurl: "http://pedrolucasp.github.io/sleep/"
# Assets
#
# We specify the directory for Jekyll so we can u... | Fix url for Github Pages | Fix url for Github Pages
| YAML | mit | pedrolucasp/sleep | yaml | ## Code Before:
permalink: pretty
relative_permalinks: true
# Setup
title: Sleep
tagline: Mixtapes
url: http://pedrolucasp.github.com/sleep
paginate: 1
baseurl: ""
# Assets
#
# We specify the directory for Jekyll so we can use @imports.
sass:
... |
6bf5b70bac76062aebe35c1951a23590710f902c | app/scripts/ripple.js | app/scripts/ripple.js | (function () {
document.addEventListener('mousedown', function (event) {
if (event.target && event.target.className.indexOf('ripple') !== -1) {
let $div = document.createElement('div'),
btnRect = event.target.getBoundingClientRect(),
height = event.target.clientHeight,
xPos = event.... | (function () {
document.addEventListener('mousedown', function (event) {
if (event.target &&
event.target.className &&
event.target.className.indexOf &&
event.target.className.indexOf('ripple') !== -1) {
let $div = document.createElement('div'),
btnRect = event.target.getBoundingC... | Fix for error when clicking on browser market share pie charts | Fix for error when clicking on browser market share pie charts
| JavaScript | mit | NOtherDev/whatwebcando,NOtherDev/whatwebcando,NOtherDev/whatwebcando | javascript | ## Code Before:
(function () {
document.addEventListener('mousedown', function (event) {
if (event.target && event.target.className.indexOf('ripple') !== -1) {
let $div = document.createElement('div'),
btnRect = event.target.getBoundingClientRect(),
height = event.target.clientHeight,
... |
b1e80208d11b2f65682a5f4902e830f3ed49a9c9 | rest-api/src/main/resources/definitions/paged_resources/activity_event.yml | rest-api/src/main/resources/definitions/paged_resources/activity_event.yml | type: object
readOnly: true
properties:
items:
type: array
items:
$ref: ../activity_event.yml
total:
type: integer
description: The total number of records in the items list
type:
type: string
readOnly: true
description: "ResourceList"
| type: object
readOnly: true
properties:
items:
type: array
items:
$ref: ../activity_event.yml
type:
type: string
readOnly: true
description: "ResourceList"
| Remove total from activity event list | Remove total from activity event list
| YAML | apache-2.0 | alxdarksage/BridgeJavaSDK,DwayneJengSage/BridgeJavaSDK,Sage-Bionetworks/BridgeJavaSDK,Sage-Bionetworks/BridgeJavaSDK,alxdarksage/BridgeJavaSDK,DwayneJengSage/BridgeJavaSDK | yaml | ## Code Before:
type: object
readOnly: true
properties:
items:
type: array
items:
$ref: ../activity_event.yml
total:
type: integer
description: The total number of records in the items list
type:
type: string
readOnly: true
description: "Re... |
03643b00e60ac4489f7a1b1d87bc12cd8051b391 | .travis.yml | .travis.yml | language: android
env:
global:
- ADB_INSTALL_TIMEOUT=30
# Using the new Container-Based Infrastructure
- sudo: false
# Turning off caching to avoid caching Issues
- cache: false
# Initiating clean Gradle output
- TERM=dumb
# Giving even more memory to Gradle JVM
- GRADLE_OPTS="-Xmx2048m -XX:MaxPe... | language: android
jdk: oraclejdk8
Use JDK8 for Android builds on TravisUse JDK8 for Android builds on TraviUse JDK8 for Android builds on Travis
env:
global:
- ADB_INSTALL_TIMEOUT=30
# Using the new Container-Based Infrastructure
- sudo: false
# Turning off caching to avoid caching Issues
- cache: false
#... | Use JDK8 for Android builds on Travis | Use JDK8 for Android builds on Travis
| YAML | apache-2.0 | dg76/Fast-Android-Networking,amitshekhariitbhu/Fast-Android-Networking | yaml | ## Code Before:
language: android
env:
global:
- ADB_INSTALL_TIMEOUT=30
# Using the new Container-Based Infrastructure
- sudo: false
# Turning off caching to avoid caching Issues
- cache: false
# Initiating clean Gradle output
- TERM=dumb
# Giving even more memory to Gradle JVM
- GRADLE_OPTS="-Xm... |
a8791965a4053192927e4db0274aae50635f0105 | README.md | README.md | This is the code to run a survey across mySociety sites in conjuction
with the University of Manchester
| This is the code to run a survey across mySociety sites in conjuction
with the University of Manchester
## Install instructions for Debian
Install necessary packages
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install -y $(cut -d " " -f 1 conf/packages | egrep -v "^#")
Install the projec... | Add some basic install instructions for debian | Add some basic install instructions for debian
These are tested in a fresh precise64 vagrant box using the
hashicorp/precise64 image.
| Markdown | agpl-3.0 | mysociety/manchester-survey,mysociety/manchester-survey,mysociety/manchester-survey,mysociety/manchester-survey,mysociety/manchester-survey | markdown | ## Code Before:
This is the code to run a survey across mySociety sites in conjuction
with the University of Manchester
## Instruction:
Add some basic install instructions for debian
These are tested in a fresh precise64 vagrant box using the
hashicorp/precise64 image.
## Code After:
This is the code to run a survey... |
d90c82cea8abeace95e5b97cc0e51debe0b63225 | packages/lesswrong/lib/collections/tagRels/views.js | packages/lesswrong/lib/collections/tagRels/views.js | import { TagRels } from './collection.js';
import { ensureIndex } from '../../collectionUtils';
TagRels.addView('postsWithTag', terms => {
return {
selector: {
tagId: terms.tagId,
baseScore: {$gt: 0},
},
}
});
TagRels.addView('tagsOnPost', terms => {
return {
selector: {
postId: te... | import { TagRels } from './collection.js';
import { ensureIndex } from '../../collectionUtils';
TagRels.addView('postsWithTag', terms => {
return {
selector: {
tagId: terms.tagId,
baseScore: {$gt: 0},
},
sort: {baseScore: -1},
}
});
TagRels.addView('tagsOnPost', terms => {
return {
s... | Sort tags by descending relevance | Sort tags by descending relevance
| JavaScript | mit | Discordius/Telescope,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Lesswrong2 | javascript | ## Code Before:
import { TagRels } from './collection.js';
import { ensureIndex } from '../../collectionUtils';
TagRels.addView('postsWithTag', terms => {
return {
selector: {
tagId: terms.tagId,
baseScore: {$gt: 0},
},
}
});
TagRels.addView('tagsOnPost', terms => {
return {
selector: {
... |
f6de960fb76ab36550a119b1465e8a24e59af219 | plat/rpi3/rpi3_stack_protector.c | plat/rpi3/rpi3_stack_protector.c | /*
* Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <stdint.h>
#include <lib/utils.h>
#include "rpi3_private.h"
/* Get 128 bits of entropy and fuse the values together to form the canary. */
#define TRNG_NBYTES 16U
u_register_t ... | /*
* Copyright (c) 2017-2019, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <stdint.h>
#include <lib/utils.h>
#include <lib/utils_def.h>
#include "rpi3_private.h"
/* Get 128 bits of entropy and fuse the values together to form the canary. */
#define TRN... | Fix compilation error when stack protector is enabled | rpi3: Fix compilation error when stack protector is enabled
Include necessary header file to use ARRAY_SIZE() macro
Change-Id: I5b7caccd02c14c598b7944cf4f347606c1e7a8e7
Signed-off-by: Madhukar Pappireddy <c854e377c0ff08e0fa4357b6357bedff114c98a6@arm.com>
| C | bsd-3-clause | achingupta/arm-trusted-firmware,achingupta/arm-trusted-firmware | c | ## Code Before:
/*
* Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <stdint.h>
#include <lib/utils.h>
#include "rpi3_private.h"
/* Get 128 bits of entropy and fuse the values together to form the canary. */
#define TRNG_NBYTES 16... |
7cf284616708aa10c416cb8913cc83b177d740a3 | mfa-mwim/packages.el | mfa-mwim/packages.el | (defconst mfa-mwim-packages '(mwim))
(defun mfa-mwim/init-mwim ()
(use-package mwim
:defer t
:init
(progn
(global-set-key (kbd "C-a") #'mwim-beginning-of-code-or-line)
(global-set-key (kbd "C-e") #'mwim-end-of-code-or-line)
(global-set-key (kbd "<home>") #'mwim-beginning-of-line-or-code... | (defconst mfa-mwim-packages '(mwim))
(defun mfa-mwim/init-mwim ()
(use-package mwim
:defer t
:init
(progn
(global-set-key (kbd "C-a") #'mwim-beginning)
(global-set-key (kbd "C-e") #'mwim-end)
(global-set-key (kbd "<home>") #'mwim-beginning)
(global-set-key (kbd "<end>") #'mwim-end... | Make mwim motions play nice with evil repeat | Make mwim motions play nice with evil repeat
Also leave it up to mwim to choose where exactly to move to.
| Emacs Lisp | mit | amfranz/spacemacs.d | emacs-lisp | ## Code Before:
(defconst mfa-mwim-packages '(mwim))
(defun mfa-mwim/init-mwim ()
(use-package mwim
:defer t
:init
(progn
(global-set-key (kbd "C-a") #'mwim-beginning-of-code-or-line)
(global-set-key (kbd "C-e") #'mwim-end-of-code-or-line)
(global-set-key (kbd "<home>") #'mwim-beginning... |
10c34ed2009cb6c3c0636ec3e1e797caf003feeb | app/views/coursewareable/collaborations/_sidebar.html.haml | app/views/coursewareable/collaborations/_sidebar.html.haml | .four.columns
.row.sidebar
%h5
= _('About collaborators')
%hr
%p
= _('Collaborators act as teachers in your classroom.')
= _('They can build and edit content pages just as you.')
%p
= _('This page also includes the full list of your current classroom collaborators.')
| .four.columns
.row.sidebar
%h5
= _('About collaborators')
%hr
%p
= _('Collaborators act as teachers in your classroom.')
= _('They can build and edit content pages just as you.')
%p
= _('They can not add members, collaborators or change classroom settings or customize it.')
... | Update collaborators sidebar help string. | Update collaborators sidebar help string. | Haml | mit | Courseware/coursewa.re,Courseware/coursewa.re | haml | ## Code Before:
.four.columns
.row.sidebar
%h5
= _('About collaborators')
%hr
%p
= _('Collaborators act as teachers in your classroom.')
= _('They can build and edit content pages just as you.')
%p
= _('This page also includes the full list of your current classroom collabo... |
8fecd4e9006fb0e877eb43b03332bcea69ea31ef | app/src/main/java/chat/rocket/android/util/Extensions.kt | app/src/main/java/chat/rocket/android/util/Extensions.kt | package chat.rocket.android.util
import android.support.annotation.LayoutRes
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
fun String.ifEmpty(value: String): String {
if (isEmpty()) {
return value
}
return this
}
fun View.... | package chat.rocket.android.util
import android.support.annotation.LayoutRes
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import ru.noties.markwon.Markwon
fun String.ifEmpty(value: String): String {
if (isEmpty()) {
return value
... | Add extensions for CharSequence.isEmpty and TextView.content that accepts CharSequence | Add extensions for CharSequence.isEmpty and TextView.content that accepts CharSequence
| Kotlin | mit | RocketChat/Rocket.Chat.Android,RocketChat/Rocket.Chat.Android.Lily,RocketChat/Rocket.Chat.Android.Lily,RocketChat/Rocket.Chat.Android | kotlin | ## Code Before:
package chat.rocket.android.util
import android.support.annotation.LayoutRes
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
fun String.ifEmpty(value: String): String {
if (isEmpty()) {
return value
}
return t... |
8b59b0fbb838779ca2bd74181afafec5498b00c5 | app/views/sessions/new.html.erb | app/views/sessions/new.html.erb | <% content_for :js do %>
<%= headjs_include_tag "plugins/jquery.min", "front/login" %>
<% end %>
<% content_for :head do %>
<%= stylesheet_link_tag('reset.css','front/sessions') %>
<% end %>
<div class="section">
<h1>Welcome to Carto<strong>DB</strong></h1>
<p>Enter your account information ... | <% content_for :js do %>
<%= headjs_include_tag "plugins/jquery.min", "front/login" %>
<% end %>
<% content_for :head do %>
<%= stylesheet_link_tag('reset.css','front/sessions') %>
<% end %>
<div class="section">
<h1>Welcome to Carto<strong>DB</strong></h1>
<p>Enter your account information ... | Check @login_error in login form | Check @login_error in login form
| HTML+ERB | bsd-3-clause | codeandtheory/cartodb,nyimbi/cartodb,dbirchak/cartodb,nyimbi/cartodb,thorncp/cartodb,future-analytics/cartodb,splashblot/dronedb,nuxcode/cartodb,splashblot/dronedb,splashblot/dronedb,nyimbi/cartodb,codeandtheory/cartodb,CartoDB/cartodb,raquel-ucl/cartodb,dbirchak/cartodb,CartoDB/cartodb,nuxcode/cartodb,DigitalCoder/car... | html+erb | ## Code Before:
<% content_for :js do %>
<%= headjs_include_tag "plugins/jquery.min", "front/login" %>
<% end %>
<% content_for :head do %>
<%= stylesheet_link_tag('reset.css','front/sessions') %>
<% end %>
<div class="section">
<h1>Welcome to Carto<strong>DB</strong></h1>
<p>Enter your acco... |
e8d4753616dd1bdd6b93fef3e4046ca1c8d38d4a | .zuul.yaml | .zuul.yaml | - project:
templates:
- check-requirements
- openstack-lower-constraints-jobs
- openstack-python-jobs
- openstack-python35-jobs
- openstack-python36-jobs
check:
jobs:
# making n-v till story#2005227
- freezer-web-ui-ubuntu:
voting: false
- ... | - project:
templates:
- check-requirements
- openstack-lower-constraints-jobs
- openstack-python-jobs
- openstack-python35-jobs
- openstack-python36-jobs
check:
jobs:
- freezer-web-ui-ubuntu
- openstack-tox-pylint
gate:
jobs:
- openstack-tox-... | Make freezer-web-ui-ubuntu as voting job again | Make freezer-web-ui-ubuntu as voting job again
freezer-web-ui-ubuntu job has been made n-v in legacy
job migration work.
- https://review.openstack.org/#/c/642610
Not issue has been fixed and it is working fine
- https://review.openstack.org/#/c/643213/3
Let's reenable it as voting.
Change-Id: I735e0dacb035770be814... | YAML | apache-2.0 | openstack/freezer-web-ui,openstack/freezer-web-ui,openstack/freezer-web-ui,openstack/freezer-web-ui | yaml | ## Code Before:
- project:
templates:
- check-requirements
- openstack-lower-constraints-jobs
- openstack-python-jobs
- openstack-python35-jobs
- openstack-python36-jobs
check:
jobs:
# making n-v till story#2005227
- freezer-web-ui-ubuntu:
voting: ... |
132aae8f71ce8bf9dae4acc3bfc57acc85c24ecc | src/migrations/2014_05_19_151759_create_forum_table_categories.php | src/migrations/2014_05_19_151759_create_forum_table_categories.php | <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateForumTableCategories extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('forum_categories', function(Blueprint $table)
{
$table->increments(... | <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateForumTableCategories extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('forum_categories', function(Blueprint $table)
{
$table->increments(... | Update migrations to insert sample categories | Update migrations to insert sample categories
| PHP | mit | Riari/laravel-forum,mandark/laravel-forum,matheusgomes17/laravel-forum,kaidesu/laravel-forum,casalero/laravel-forum,mikield/laravel-forum | php | ## Code Before:
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateForumTableCategories extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('forum_categories', function(Blueprint $table)
{
$ta... |
f7fb39be298640a05189f01612ee4df09c023971 | command.go | command.go | package main
import (
"bufio"
"github.com/kr/pty"
"io"
"os"
"os/exec"
)
type Cmd struct {
*exec.Cmd
Pty *os.File
output io.Reader
Output chan []byte
}
func Command(prog string, args ...string) *Cmd {
return &Cmd{exec.Command(prog, args...), nil, nil, nil}
}
func (c *Cmd) Start() error {
pterm, err := ... | package main
import (
"io"
"os"
"bufio"
"github.com/chrisseto/pty"
"os/exec"
)
type Cmd struct {
*exec.Cmd
Pty *os.File
output io.Reader
Output chan []byte
}
func Command(prog string, args ...string) *Cmd {
return &Cmd{exec.Command(prog, args...), nil, nil, nil}
}
func (c *Cmd) Start(width, height int)... | Switch to my fork of pty which supports SetSize | Switch to my fork of pty which supports SetSize
| Go | mit | chrisseto/Sux | go | ## Code Before:
package main
import (
"bufio"
"github.com/kr/pty"
"io"
"os"
"os/exec"
)
type Cmd struct {
*exec.Cmd
Pty *os.File
output io.Reader
Output chan []byte
}
func Command(prog string, args ...string) *Cmd {
return &Cmd{exec.Command(prog, args...), nil, nil, nil}
}
func (c *Cmd) Start() error {... |
0cc2bad1fccc34708c12cc49d505202040960f7c | spec/support/elasticsearch.rb | spec/support/elasticsearch.rb | require 'elasticsearch/extensions/test/cluster'
RSpec.configure do |config|
unless ENV['CI']
config.before(:suite) { start_elastic_cluster }
config.after(:suite) { stop_elastic_cluster }
end
end
def start_elastic_cluster
ENV['TEST_CLUSTER_PORT'] = '9250'
ENV['TEST_CLUSTER_NODES'] = '1'
ENV['TEST_CL... | require 'elasticsearch/extensions/test/cluster'
RSpec.configure do |config|
unless ENV['CI']
config.before(:suite) { start_elastic_cluster }
config.after(:suite) { stop_elastic_cluster }
end
SEARCHABLE_MODELS = [Spree::Product].freeze
# create indices for searchable models
config.before do
SEA... | Set up indices before tests and clean up after tests | Set up indices before tests and clean up after tests
| Ruby | bsd-3-clause | ronzalo/spree_searchkick,ronzalo/spree_searchkick,ronzalo/spree_searchkick | ruby | ## Code Before:
require 'elasticsearch/extensions/test/cluster'
RSpec.configure do |config|
unless ENV['CI']
config.before(:suite) { start_elastic_cluster }
config.after(:suite) { stop_elastic_cluster }
end
end
def start_elastic_cluster
ENV['TEST_CLUSTER_PORT'] = '9250'
ENV['TEST_CLUSTER_NODES'] = '1... |
c598062f38883da1f0aea0150f79d28e1144c2d5 | resources/views/layouts/partials/footer.blade.php | resources/views/layouts/partials/footer.blade.php | <p><a href="/politica-de-privacidade">Política de Privacidade</a></p>
| <p>
<a href="https://blog.benspenhorados.pt">Blogue</a> -
<a href="/politica-de-privacidade">Política de Privacidade</a>
</p>
| Add blog link to footer | Add blog link to footer
| PHP | mit | ffsantos92/bens-penhorados,ffsantos92/bens-penhorados,ffsantos92/bens-penhorados | php | ## Code Before:
<p><a href="/politica-de-privacidade">Política de Privacidade</a></p>
## Instruction:
Add blog link to footer
## Code After:
<p>
<a href="https://blog.benspenhorados.pt">Blogue</a> -
<a href="/politica-de-privacidade">Política de Privacidade</a>
</p>
|
c4f1586877424923134ff5e4e3c09309bb17cc49 | requirements.txt | requirements.txt | aiopg
aiohttp
aiodocker
sqlalchemy
jinja2
pyyaml
| aiopg
aiohttp
aiodocker
sqlalchemy
jinja2
pyyaml
# Needed to build the scripts.
# node-uglify
# node-less
# coffeescript
| Make a note of the platform tools | Make a note of the platform tools
| Text | mit | paultag/moxie,mileswwatkins/moxie,loandy/moxie,rshorey/moxie,mileswwatkins/moxie,rshorey/moxie,rshorey/moxie,loandy/moxie,mileswwatkins/moxie,tianon/moxie,paultag/moxie,loandy/moxie,tianon/moxie,paultag/moxie | text | ## Code Before:
aiopg
aiohttp
aiodocker
sqlalchemy
jinja2
pyyaml
## Instruction:
Make a note of the platform tools
## Code After:
aiopg
aiohttp
aiodocker
sqlalchemy
jinja2
pyyaml
# Needed to build the scripts.
# node-uglify
# node-less
# coffeescript
|
7475af0bcfbd98a2c759fa1c2f18152222d7bb8d | app/forms/gobierto_admin/gobierto_common/term_form.rb | app/forms/gobierto_admin/gobierto_common/term_form.rb |
module GobiertoAdmin
module GobiertoCommon
class TermForm < BaseForm
attr_accessor(
:id,
:site_id,
:vocabulary_id,
:name_translations,
:description_translations,
:slug,
:term_id
)
delegate :persisted?, to: :term
validates :name_tr... |
module GobiertoAdmin
module GobiertoCommon
class TermForm < BaseForm
attr_accessor(
:id,
:site_id,
:vocabulary_id,
:name_translations,
:description_translations,
:slug,
:term_id
)
delegate :persisted?, to: :term
validates :name_tr... | Make changes in terms_form to behave like issues_form | Make changes in terms_form to behave like issues_form
| Ruby | agpl-3.0 | PopulateTools/gobierto-dev,PopulateTools/gobierto-dev,PopulateTools/gobierto-dev,PopulateTools/gobierto,PopulateTools/gobierto-dev,PopulateTools/gobierto,PopulateTools/gobierto,PopulateTools/gobierto | ruby | ## Code Before:
module GobiertoAdmin
module GobiertoCommon
class TermForm < BaseForm
attr_accessor(
:id,
:site_id,
:vocabulary_id,
:name_translations,
:description_translations,
:slug,
:term_id
)
delegate :persisted?, to: :term
va... |
535e44928f48431635c882c68453cbd5ef416304 | appveyor.yml | appveyor.yml | version: 1.0.{build}
install:
- cmd: >-
git clone -q https://github.com/rebar/rebar3.git %APPVEYOR_BUILD_FOLDER%\bin\rebar3
cd %APPVEYOR_BUILD_FOLDER%\bin\rebar3
.\bootstrap.bat
cd %APPVEYOR_BUILD_FOLDER%
curl -fsSL -o configlet.zip https://github.com/exercism/configlet/releases/download/v1.0.6/... | version: 1.0.{build}
install:
- cmd: >-
git clone -q https://github.com/rebar/rebar3.git %APPVEYOR_BUILD_FOLDER%\bin\rebar3
cd %APPVEYOR_BUILD_FOLDER%\bin\rebar3
.\bootstrap.bat
cd %APPVEYOR_BUILD_FOLDER%
curl -fsSL -o configlet.zip https://github.com/exercism/configlet/releases/download/v1.0.6/... | Add hard-coded module list to Windows test command | Add hard-coded module list to Windows test command
This is obviously terrible, but it gets the job done for now.
I don't use Windows, nor plan to any time soon, so this will have to do
until a real Windows user comes along and fixes it.
Note that we'll need to manually update the module list as we add,
remove or ren... | YAML | mit | exercism/xlfe | yaml | ## Code Before:
version: 1.0.{build}
install:
- cmd: >-
git clone -q https://github.com/rebar/rebar3.git %APPVEYOR_BUILD_FOLDER%\bin\rebar3
cd %APPVEYOR_BUILD_FOLDER%\bin\rebar3
.\bootstrap.bat
cd %APPVEYOR_BUILD_FOLDER%
curl -fsSL -o configlet.zip https://github.com/exercism/configlet/releases/... |
7d4efa5cafbf48cd068f3f68ff6331febb9ccdf1 | app/models/user.rb | app/models/user.rb | require 'bcrypt'
class User < ActiveRecord::Base
has_many :folios
has_many :elements, through: :folios
validates :first_name, presence: true, unless: :provider
validates :first_name, presence: true, unless: :provider
validates :email, uniqueness: true,
presence: true,
... | require 'bcrypt'
class User < ActiveRecord::Base
has_many :folios
has_many :elements, through: :folios
validates :first_name, presence: true, unless: :provider
validates :first_name, presence: true, unless: :provider
validates :email, uniqueness: true,
presence: true,
... | Add conditional for time expires | Add conditional for time expires
| Ruby | mit | beccanelson/brightfolio,beccanelson/brightfolio,beccanelson/brightfolio | ruby | ## Code Before:
require 'bcrypt'
class User < ActiveRecord::Base
has_many :folios
has_many :elements, through: :folios
validates :first_name, presence: true, unless: :provider
validates :first_name, presence: true, unless: :provider
validates :email, uniqueness: true,
presence: true,
... |
c6396d2cefae249eded635afa1fce20c4ec1a330 | app/models/mix_collection.rb | app/models/mix_collection.rb | class MixCollection
include Mongoid::Document
include Mongoid::Timestamps
include Mongoid::Slug
paginates_per 12
field :name, type: String
field :mixes_count, type: Integer, default: 0
field :mixes_published_count, type: Integer, default: 0
slug :name
has_many :mixes
validates_presence_of :n... | class MixCollection
include Mongoid::Document
include Mongoid::Timestamps
include Mongoid::Slug
paginates_per 12
field :name, type: String
field :mixes_count, type: Integer, default: 0
slug :name
has_many :mixes
validates_presence_of :name, message: "cannot be blank."
validates_uniqueness_of :na... | Update counter cache now works. Was spitting out old published mixes number | Update counter cache now works. Was spitting out old published mixes number
| Ruby | bsd-2-clause | erickreutz/mixturefm,Medow/mixturefm,Medow/mixturefm,erickreutz/mixturefm,erickreutz/mixturefm,Medow/mixturefm | ruby | ## Code Before:
class MixCollection
include Mongoid::Document
include Mongoid::Timestamps
include Mongoid::Slug
paginates_per 12
field :name, type: String
field :mixes_count, type: Integer, default: 0
field :mixes_published_count, type: Integer, default: 0
slug :name
has_many :mixes
validate... |
22ff1fd4f7d2309f7c7b4dfb9e893cf9f0527aa5 | lib/data_loader/debates_parser.rb | lib/data_loader/debates_parser.rb | require 'nokogiri'
module DataLoader
class DebatesParser
# +xml_directory+ scrapedxml directory, e.g. files from http://data.openaustralia.org/scrapedxml/
# The options hash takes:
# +:house+ specify representatives or senate, omit for both
# +:date+ A single date
def self.run!(xml_directory, opt... | require 'nokogiri'
module DataLoader
class DebatesParser
# +xml_directory+ scrapedxml directory, e.g. files from http://data.openaustralia.org/scrapedxml/
# The options hash takes:
# +:house+ specify representatives or senate, omit for both
# +:date+ A single date
def self.run!(xml_directory, opt... | Use logger instead of puts | Use logger instead of puts
| Ruby | agpl-3.0 | mysociety/publicwhip,mysociety/publicwhip,mysociety/publicwhip | ruby | ## Code Before:
require 'nokogiri'
module DataLoader
class DebatesParser
# +xml_directory+ scrapedxml directory, e.g. files from http://data.openaustralia.org/scrapedxml/
# The options hash takes:
# +:house+ specify representatives or senate, omit for both
# +:date+ A single date
def self.run!(xm... |
b20e83a6b63dc92f5ea5590317583ffb9d0c68ca | Package.swift | Package.swift | // swift-tools-version:3.1
import PackageDescription
let package = Package(
name: "Regex"
)
| // swift-tools-version:3.1
import PackageDescription
let package = Package(
name: "Regex",
swiftLanguageVersions: [3, 4]
)
| Document support for Swift 3 and 4 | Document support for Swift 3 and 4
| Swift | mit | sharplet/Regex,sharplet/Regex,sharplet/Regex | swift | ## Code Before:
// swift-tools-version:3.1
import PackageDescription
let package = Package(
name: "Regex"
)
## Instruction:
Document support for Swift 3 and 4
## Code After:
// swift-tools-version:3.1
import PackageDescription
let package = Package(
name: "Regex",
swiftLanguageVersions: [3, 4]
)
|
d8afb3509f893f10cf6570d17573cd991e07a1f1 | spec/payload/message_parser_spec.rb | spec/payload/message_parser_spec.rb | require 'spec_helper'
describe Magnum::Payload::MessageParser do
let(:klass) { class Klass ; include Magnum::Payload::MessageParser ; end }
let(:subject) { klass.new }
describe '#skip_message?' do
it 'returns true when message contains "ci-skip"' do
subject.stub(:message).and_return('Commit message [c... | require "spec_helper"
describe Magnum::Payload::MessageParser do
let(:klass) { class Klass ; include Magnum::Payload::MessageParser ; end }
let(:subject) { klass.new }
describe "#skip_message?" do
it "returns true when message contains "ci-skip"" do
subject.stub(:message).and_return("Commit message [c... | Use double quotes in message spec | Use double quotes in message spec
| Ruby | mit | magnumci/magnum-payload | ruby | ## Code Before:
require 'spec_helper'
describe Magnum::Payload::MessageParser do
let(:klass) { class Klass ; include Magnum::Payload::MessageParser ; end }
let(:subject) { klass.new }
describe '#skip_message?' do
it 'returns true when message contains "ci-skip"' do
subject.stub(:message).and_return('C... |
0fc10cf29f63278b4a64709156726d9ad6e75368 | examples/mutex_map.rs | examples/mutex_map.rs | //! This example shows how to wrap a data structure in a mutex to achieve safe mutability.
#[macro_use(lazy_static)]
extern crate lazy_static;
use std::collections::HashMap;
use std::sync::Mutex;
lazy_static! {
static ref MUTEX_MAP: Mutex<HashMap<u32, &'static str>> = {
let mut m = HashMap::new();
... | //! This example shows how to wrap a data structure in a mutex to achieve safe mutability.
extern crate lazy_static;
use lazy_static::lazy_static;
use std::collections::HashMap;
use std::sync::Mutex;
lazy_static! {
static ref MUTEX_MAP: Mutex<HashMap<u32, &'static str>> = {
let mut m = HashMap::new();
... | Revert "macro_use instead of use" | Revert "macro_use instead of use"
This reverts commit 3ba90796169143e83efdd1a11bde779cbdeca29d.
| Rust | apache-2.0 | rust-lang-nursery/lazy-static.rs | rust | ## Code Before:
//! This example shows how to wrap a data structure in a mutex to achieve safe mutability.
#[macro_use(lazy_static)]
extern crate lazy_static;
use std::collections::HashMap;
use std::sync::Mutex;
lazy_static! {
static ref MUTEX_MAP: Mutex<HashMap<u32, &'static str>> = {
let mut m = HashMap:... |
76812edd35f5cc40af94822b148cff192cffa382 | main_test.go | main_test.go | package main
| package main
import (
"os"
"testing"
)
const ManifestFilename = "test-manifest.yml"
const Manifest string = `---
name: The Project
meta:
team: Project Devs
email: devs@project.com
slack: devs
vars:
- version
- assets_version
- owner
tasks:
- name: Deploy Postgres
manifests:
- postgres-rc
... | Add sample manifest, test ValidateManifests | Add sample manifest, test ValidateManifests
| Go | bsd-3-clause | cored/broadway,macat/broadway,namely/broadway,poopoothegorilla/broadway,namely/broadway,poopoothegorilla/broadway,macat/broadway,cored/broadway,therealplato/broadway,therealplato/broadway | go | ## Code Before:
package main
## Instruction:
Add sample manifest, test ValidateManifests
## Code After:
package main
import (
"os"
"testing"
)
const ManifestFilename = "test-manifest.yml"
const Manifest string = `---
name: The Project
meta:
team: Project Devs
email: devs@project.com
slack: devs
vars:
- v... |
a6a102c211875ea92f04dbb2ff8a10505e9c8e6a | metadata/anupam.acrylic.txt | metadata/anupam.acrylic.txt | Categories:Multimedia
License:GPLv3+
Web Site:https://github.com/valerio-bozzolan/AcrylicPaint/blob/HEAD/README.md
Source Code:https://github.com/valerio-bozzolan/AcrylicPaint
Issue Tracker:https://github.com/valerio-bozzolan/AcrylicPaint/issues
Auto Name:Acrylic Paint
Summary:Simple finger painting
Description:
Acryl... | Categories:Multimedia
License:GPLv3+
Web Site:https://github.com/valerio-bozzolan/AcrylicPaint/blob/HEAD/README.md
Source Code:https://github.com/valerio-bozzolan/AcrylicPaint
Issue Tracker:https://github.com/valerio-bozzolan/AcrylicPaint/issues
Auto Name:Acrylic Paint
Summary:Simple finger painting
Description:
Acryl... | Update CV of Acrylic Paint to 1.3.1 (7) | Update CV of Acrylic Paint to 1.3.1 (7)
| Text | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata,f-droid/fdroid-data | text | ## Code Before:
Categories:Multimedia
License:GPLv3+
Web Site:https://github.com/valerio-bozzolan/AcrylicPaint/blob/HEAD/README.md
Source Code:https://github.com/valerio-bozzolan/AcrylicPaint
Issue Tracker:https://github.com/valerio-bozzolan/AcrylicPaint/issues
Auto Name:Acrylic Paint
Summary:Simple finger painting
De... |
f9ba09adb0b25cbbe1fe2918029e3efab179d5de | package.json | package.json | {
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
"name": "ini",
"description": "An ini encoder/decoder for node",
"version": "1.3.3",
"repository": {
"type": "git",
"url": "git://github.com/isaacs/ini.git"
},
"main": "ini.js",
"scripts": {
"test": "tap test/*.js"
},
"en... | {
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
"name": "ini",
"description": "An ini encoder/decoder for node",
"version": "1.3.3",
"repository": {
"type": "git",
"url": "git://github.com/isaacs/ini.git"
},
"main": "ini.js",
"scripts": {
"test": "tap test/*.js"
},
"en... | Add pkg.files to ignore files when npm publish | Add pkg.files to ignore files when npm publish
| JSON | isc | npm/ini,hmunn/ini,isaacs/ini,fridaysedge/ini,idefy/ini | json | ## Code Before:
{
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
"name": "ini",
"description": "An ini encoder/decoder for node",
"version": "1.3.3",
"repository": {
"type": "git",
"url": "git://github.com/isaacs/ini.git"
},
"main": "ini.js",
"scripts": {
"test": "tap test/... |
c6ac0095d3b1139c559266f9ff266983fbffdbad | setup.cfg | setup.cfg | [bumpversion]
current_version = 2.1.0
commit = True
tag = True
tag_name = {new_version}
[metadata]
author = Seth M. Morton
author_email = drtuba78@gmail.com
url = https://github.com/SethMMorton/fastnumbers
description = Super-fast and clean conversions to numbers.
long_description = file: README.rst
license = MIT
clas... | [bumpversion]
current_version = 2.1.0
commit = True
tag = True
tag_name = {new_version}
[metadata]
author = Seth M. Morton
author_email = drtuba78@gmail.com
url = https://github.com/SethMMorton/fastnumbers
description = Super-fast and clean conversions to numbers.
long_description = file: README.rst
license = MIT
clas... | Change version.h location in bumpversion config. | Change version.h location in bumpversion config.
| INI | mit | SethMMorton/fastnumbers,SethMMorton/fastnumbers,SethMMorton/fastnumbers | ini | ## Code Before:
[bumpversion]
current_version = 2.1.0
commit = True
tag = True
tag_name = {new_version}
[metadata]
author = Seth M. Morton
author_email = drtuba78@gmail.com
url = https://github.com/SethMMorton/fastnumbers
description = Super-fast and clean conversions to numbers.
long_description = file: README.rst
li... |
3871d376ffa0ba395c14d6b8bce07852fb9bfdfc | index.html | index.html | ---
layout: page
---
<p class="teaser">
Some kind of JavaScript conference ostensibly coming to Denver, Colorado at some point in the late spring or early summer 2016.
</p>
| ---
layout: page
title: Home
---
<p class="teaser">
Some kind of JavaScript conference ostensibly coming to Denver, Colorado at some point in the late spring or early summer 2016.
</p>
| Add title to home page | Add title to home page
| HTML | mpl-2.0 | dinosaurjs/dinosaurjs.github.io,dinosaurjs/dinosaurjs.github.io | html | ## Code Before:
---
layout: page
---
<p class="teaser">
Some kind of JavaScript conference ostensibly coming to Denver, Colorado at some point in the late spring or early summer 2016.
</p>
## Instruction:
Add title to home page
## Code After:
---
layout: page
title: Home
---
<p class="teaser">
Some kind of Java... |
63c79ed59728f698fda76ab264d58e1135ca187d | resources/sass/components/_site-footer.scss | resources/sass/components/_site-footer.scss | // Copyright (C) 2021 Damien Dart, <damiendart@pobox.com>.
// This file is distributed under the MIT licence. For more information,
// please refer to the accompanying "LICENCE" file.
@use "sass:math";
@use "../variables";
.site-footer {
background: variables.$colour-white;
box-sizing: border-box;
flex-grow: 1;... | // Copyright (C) 2021 Damien Dart, <damiendart@pobox.com>.
// This file is distributed under the MIT licence. For more information,
// please refer to the accompanying "LICENCE" file.
@use "sass:math";
@use "../variables";
.site-footer {
background: variables.$colour-white;
box-sizing: border-box;
flex-grow: 1;... | Reduce site footer font size. | Reduce site footer font size.
| SCSS | mit | damiendart/robotinaponcho,damiendart/robotinaponcho,damiendart/robotinaponcho | scss | ## Code Before:
// Copyright (C) 2021 Damien Dart, <damiendart@pobox.com>.
// This file is distributed under the MIT licence. For more information,
// please refer to the accompanying "LICENCE" file.
@use "sass:math";
@use "../variables";
.site-footer {
background: variables.$colour-white;
box-sizing: border-box;... |
470c616cf598fb14842d8326d6fe416952b79d8a | test/common.js | test/common.js | 'use strict';
const hookModule = require("../src/");
class TallyHook extends hookModule.Hook {
preProcess(thing) {
thing.preTally = thing.preTally + 1;
return true;
}
postProcess(thing) {
thing.postTally = thing.postTally + 1;
}
}
module.exports = {
TallyHook
};
| 'use strict';
const hookModule = require("../src/");
class TallyHook extends hookModule.Hook {
preProcess(thing) {
thing.preTally = thing.preTally + 1;
return true;
}
postProcess(thing) {
thing.postTally = thing.postTally + 1;
}
}
class DelayableHook extends hookModule.Hook {
constructor(optio... | Add a DelayedHook test class. | Add a DelayedHook test class.
| JavaScript | mit | StevenBlack/hooks-and-anchors | javascript | ## Code Before:
'use strict';
const hookModule = require("../src/");
class TallyHook extends hookModule.Hook {
preProcess(thing) {
thing.preTally = thing.preTally + 1;
return true;
}
postProcess(thing) {
thing.postTally = thing.postTally + 1;
}
}
module.exports = {
TallyHook
};
## Instruction... |
ed84c6d8342b2d984e86f63f107bc8ef94e827e5 | js/_components/common.js | js/_components/common.js | import ChromePromise from 'chrome-promise'
window.chromep = new ChromePromise()
// set or unset CSS
window.CSS = (() => {
const styleEl = document.createElement('style')
document.head.appendChild(styleEl)
const sheet = styleEl.sheet
const set = (param1, param2) => {
const _action = (styleSelector, styl... | import ChromePromise from 'chrome-promise'
window.chromep = new ChromePromise()
// set or unset CSS
window.CSS = (() => {
const styleEl = document.createElement('style')
document.head.appendChild(styleEl)
const sheet = styleEl.sheet
const set = (param1, param2) => {
const _action = (styleSelector, styl... | Add window prefix to localStorage | Add window prefix to localStorage
| JavaScript | mit | foray1010/Popup-my-Bookmarks,foray1010/Popup-my-Bookmarks | javascript | ## Code Before:
import ChromePromise from 'chrome-promise'
window.chromep = new ChromePromise()
// set or unset CSS
window.CSS = (() => {
const styleEl = document.createElement('style')
document.head.appendChild(styleEl)
const sheet = styleEl.sheet
const set = (param1, param2) => {
const _action = (sty... |
403e1d317de736c25625a30583468b55d731bb8f | spec/jobs/job_logger_spec.rb | spec/jobs/job_logger_spec.rb | require 'spec_helper'
describe JobLogger do
describe '.logger' do
it 'passes the message to the Logger instance' do
job_logger = instance_double(::Logger)
allow(job_logger).to receive(:formatter=)
allow(job_logger).to receive(:info)
worker_logger = instance_double(::Logger, clone: job_lo... | require 'spec_helper'
describe JobLogger do
describe '.logger' do
it "returns a Ruby's logger instance" do
expect(JobLogger.logger).to respond_to(:info)
end
it 'returns custom formatted logger instance' do
expect(JobLogger.logger.formatter).to be_instance_of(JobLogger::Formatter)
end
e... | Make JobLogger spec more reliable | Make JobLogger spec more reliable
This will hopefully fix our bild. I believe that the underlying issue is
that the logger's test double gets leaked into other examples, as RSpec
tells when running `spec/jobs/` specs.
```
5) SubscriptionPlacementJob performing the job when unplaced proxy_orders exist processes placea... | Ruby | agpl-3.0 | mkllnk/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,Matt-Yorkley/openfoodnetwork,Matt-Yorkley/openfoodnetwork,mkllnk/openfoodnetwork,Matt-Yorkley/openfoodnetwork,mkllnk/openfoodnetwork,Matt-Yorkley/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfo... | ruby | ## Code Before:
require 'spec_helper'
describe JobLogger do
describe '.logger' do
it 'passes the message to the Logger instance' do
job_logger = instance_double(::Logger)
allow(job_logger).to receive(:formatter=)
allow(job_logger).to receive(:info)
worker_logger = instance_double(::Logge... |
0e46b47a3053e63f50d6fd90b1ba810e4694c9be | blo/__init__.py | blo/__init__.py | from blo.BloArticle import BloArticle
from blo.DBControl import DBControl
class Blo:
def __init__(self, db_file_path, template_dir=""):
self.template_dir = template_dir
# create tables
self.db_file_path = db_file_path
self.db_control = DBControl(self.db_file_path)
self.db_c... | import configparser
from blo.BloArticle import BloArticle
from blo.DBControl import DBControl
class Blo:
def __init__(self, config_file_path):
config = configparser.ConfigParser()
config.read(config_file_path)
self.template_dir = config['TEMPLATE']['TEMPLATE_DIR']
self.db_file_path... | Implement system configurations load from file. | Implement system configurations load from file.
| Python | mit | 10nin/blo,10nin/blo | python | ## Code Before:
from blo.BloArticle import BloArticle
from blo.DBControl import DBControl
class Blo:
def __init__(self, db_file_path, template_dir=""):
self.template_dir = template_dir
# create tables
self.db_file_path = db_file_path
self.db_control = DBControl(self.db_file_path)
... |
d5c2962e329c056dd4ccfd112b66b638c9750aeb | src/expressions/path/ContextItemExpression.js | src/expressions/path/ContextItemExpression.js | import Expression from '../Expression';
import Sequence from '../dataTypes/Sequence';
import Specificity from '../Specificity';
/**
* @extends {Expression}
*/
class ContextItemExpression extends Expression {
constructor () {
super(
new Specificity({}),
[]
);
}
evaluate (dynamicContext, _executionParame... | import Expression from '../Expression';
import Sequence from '../dataTypes/Sequence';
import Specificity from '../Specificity';
/**
* @extends {Expression}
*/
class ContextItemExpression extends Expression {
constructor () {
super(
new Specificity({}),
[],
{
resultOrder: Expression.RESULT_ORDERINGS.S... | Make the context item expression correctly predict the result order | Make the context item expression correctly predict the result order
| JavaScript | mit | FontoXML/fontoxpath,FontoXML/fontoxpath,FontoXML/fontoxpath | javascript | ## Code Before:
import Expression from '../Expression';
import Sequence from '../dataTypes/Sequence';
import Specificity from '../Specificity';
/**
* @extends {Expression}
*/
class ContextItemExpression extends Expression {
constructor () {
super(
new Specificity({}),
[]
);
}
evaluate (dynamicContext, ... |
5d48d908595c0f9e57c7b4ef8558b0ad03a627c2 | db/migrate/20151107105747_create_trends.rb | db/migrate/20151107105747_create_trends.rb | class CreateTrends < ActiveRecord::Migration
def change
create_table :trends do |t|
t.string :description
t.string :links # link of the feed itself
t.string :titles
t.string :authors
t.string :dates # edited date of the feeed
t.text :contents
t.string :tags
t.string... | class CreateTrends < ActiveRecord::Migration
def change
create_table :trends do |t|
t.string :description
t.string :links # link of the feed itself
t.string :titles
t.string :categories
t.string :authors
t.string :dates # edited date of the feeed
t.text :contents
t.... | Add new column "categories" in db | Add new column "categories" in db
| Ruby | mit | SOA-Upstart4/bnext_service,SOA-Upstart4/bnext_service,SOA-Upstart4/BnextService_Dynamo | ruby | ## Code Before:
class CreateTrends < ActiveRecord::Migration
def change
create_table :trends do |t|
t.string :description
t.string :links # link of the feed itself
t.string :titles
t.string :authors
t.string :dates # edited date of the feeed
t.text :contents
t.string :tag... |
31e9a0e44193bac48eafc722f6d46636a64082b7 | README.md | README.md | Like [zeit's list](https://github.com/zeit/micro-list), but for images.
Share you folder(s) of images with a single command.
## Usage
Install it (requires Node v6.0.0 and above)
```
$ npm install -g micro-gallery
```
Run it
```
$ gallery [options] <path>
```
### Options
| Usage | Description | ... | Like [zeit's serve](https://github.com/zeit/serve), but for images.
Share you folder(s) of images with a single command.
## Usage
Install it (requires Node v6.0.0 and above)
```
$ npm install -g micro-gallery
```
Run it
```
$ gallery [options] <path>
```
### Options
| Usage | Description | Defa... | Rename Zeit List -> Zeit Serve | Rename Zeit List -> Zeit Serve | Markdown | mit | andreasmcdermott/micro-gallery,andreasmcdermott/micro-gallery | markdown | ## Code Before:
Like [zeit's list](https://github.com/zeit/micro-list), but for images.
Share you folder(s) of images with a single command.
## Usage
Install it (requires Node v6.0.0 and above)
```
$ npm install -g micro-gallery
```
Run it
```
$ gallery [options] <path>
```
### Options
| Usage ... |
58fc39ae95522ce152b4ff137071f74c5490e14e | chatterbot/constants.py | chatterbot/constants.py |
'''
The maximum length of characters that the text of a statement can contain.
This should be enforced on a per-model basis by the data model for each
storage adapter.
'''
STATEMENT_TEXT_MAX_LENGTH = 400
'''
The maximum length of characters that the text label of a conversation can contain.
The number 32 was chosen b... |
'''
The maximum length of characters that the text of a statement can contain.
The number 255 is used because that is the maximum length of a char field
in most databases. This value should be enforced on a per-model basis by
the data model for each storage adapter.
'''
STATEMENT_TEXT_MAX_LENGTH = 255
'''
The maximum... | Change statement text max-length to 255 | Change statement text max-length to 255
| Python | bsd-3-clause | vkosuri/ChatterBot,gunthercox/ChatterBot | python | ## Code Before:
'''
The maximum length of characters that the text of a statement can contain.
This should be enforced on a per-model basis by the data model for each
storage adapter.
'''
STATEMENT_TEXT_MAX_LENGTH = 400
'''
The maximum length of characters that the text label of a conversation can contain.
The number... |
b9f5dccdbeb14a229fd14a3211490d83e53f70b8 | tests/flake-searching.sh | tests/flake-searching.sh | source common.sh
clearStore
cp ./simple.nix ./simple.builder.sh ./config.nix $TEST_HOME
cd $TEST_HOME
mkdir -p foo/subdir
echo '{ outputs = _: {}; }' > foo/flake.nix
cat <<EOF > flake.nix
{
inputs.foo.url = "$PWD/foo";
outputs = a: {
defaultPackage.$system = import ./simple.nix;
packages.$system... | source common.sh
clearStore
cp ./simple.nix ./simple.builder.sh ./config.nix $TEST_HOME
cd $TEST_HOME
mkdir -p foo/subdir
echo '{ outputs = _: {}; }' > foo/flake.nix
cat <<EOF > flake.nix
{
inputs.foo.url = "$PWD/foo";
outputs = a: {
defaultPackage.$system = import ./simple.nix;
packages.$system... | Check that we don't search past a git repo | Check that we don't search past a git repo
| Shell | lgpl-2.1 | NixOS/nix,NixOS/nix,NixOS/nix,rycee/nix,rycee/nix,rycee/nix,rycee/nix,rycee/nix,NixOS/nix,NixOS/nix | shell | ## Code Before:
source common.sh
clearStore
cp ./simple.nix ./simple.builder.sh ./config.nix $TEST_HOME
cd $TEST_HOME
mkdir -p foo/subdir
echo '{ outputs = _: {}; }' > foo/flake.nix
cat <<EOF > flake.nix
{
inputs.foo.url = "$PWD/foo";
outputs = a: {
defaultPackage.$system = import ./simple.nix;
... |
391dc74a28e4935b8b407b2e880d71269fbdbce8 | lib/utils.js | lib/utils.js | var spark = require('textspark');
var generateMetricParams = function(namespace, metric, unit, instance_id, dimension, period) {
var endDate = new Date();
var startDate = new Date(endDate);
var durationMinutes = 60;
return {
EndTime: endDate,
MetricName: metric,
Namespa... | var spark = require('textspark');
var generateMetricParams = function(namespace, metric, unit, instance_id, dimension, period) {
var endDate = new Date();
var startDate = new Date(endDate);
var durationMinutes = 120;
return {
EndTime: endDate,
MetricName: metric,
Namesp... | Increase time range and id filtering | Increase time range and id filtering
| JavaScript | mit | msempere/hal9001 | javascript | ## Code Before:
var spark = require('textspark');
var generateMetricParams = function(namespace, metric, unit, instance_id, dimension, period) {
var endDate = new Date();
var startDate = new Date(endDate);
var durationMinutes = 60;
return {
EndTime: endDate,
MetricName: metric,
... |
3bfd0189e135d14a3da6af7ee26638660dd80b63 | groker.go | groker.go | package main
import (
"fmt"
"flag"
"bufio"
"os"
"encoding/json"
"github.com/gemsi/grok"
)
func main() {
pattern := flag.String("pattern", "%{GREEDYDATA:msg}", "a grok expression")
namedcapture := flag.Bool("namedcapture", false, "parse only named captures (default is false)")
flag.... | package main
import (
"bufio"
"encoding/json"
"flag"
"fmt"
"os"
"github.com/gemsi/grok"
)
func main() {
pattern := flag.String("pattern", "%{GREEDYDATA:msg}", "a grok expression")
namedcapture := flag.Bool("namedcapture", false, "parse only named captures (default is false)")
flag.Parse()
var g *grok.Grok... | Change to match the gemsi/grok New() usage update | Change to match the gemsi/grok New() usage update
| Go | unknown | palmerabollo/groker,palmerabollo/grok | go | ## Code Before:
package main
import (
"fmt"
"flag"
"bufio"
"os"
"encoding/json"
"github.com/gemsi/grok"
)
func main() {
pattern := flag.String("pattern", "%{GREEDYDATA:msg}", "a grok expression")
namedcapture := flag.Bool("namedcapture", false, "parse only named captures (default is fa... |
4af4cdce9fe118f03fe1f551a0907ecfbff35d98 | README.md | README.md | base64-js
=========
`base64-js` does basic base64 encoding/decoding in pure JS.
[](http://travis-ci.org/beatgammit/base64-js)
[](https://ci.testling.com/beatgammit/base64-js)
Many... | base64-js
=========
`base64-js` does basic base64 encoding/decoding in pure JS.
[](http://travis-ci.org/beatgammit/base64-js)
[](https://ci.testling.com/beatgammit/base64-js)
Many... | Add getting started notes for use in webbroser | Add getting started notes for use in webbroser
| Markdown | mit | beatgammit/base64-js | markdown | ## Code Before:
base64-js
=========
`base64-js` does basic base64 encoding/decoding in pure JS.
[](http://travis-ci.org/beatgammit/base64-js)
[](https://ci.testling.com/beatgammit/... |
d6ec768fa7aee928210503c70eef0ce44a9c497d | vendor/stylesheets/prez.scss | vendor/stylesheets/prez.scss | @import "prez/variables";
body {
margin: 0;
padding: 0;
}
.header {
font-size: 32px;
}
.contact {
font-size: 25px;
}
.url {
color: blue;
}
.gem {
color: #bb0000;
font-weight: bold;
}
.prez-slide {
&, & input {
font-size: 50;
}
display: none;
min-height: $prez-s... | @import "prez/variables";
body {
margin: 0;
padding: 0;
}
.header {
font-size: 32px;
}
.contact {
font-size: 25px;
}
.url {
color: blue;
}
.gem {
color: #bb0000;
font-weight: bold;
}
.prez-slide {
&, & input {
font-size: 50;
}
display: none;
min-height: $prez-s... | Add some more default styling options | Add some more default styling options
| SCSS | mit | smellsblue/prez | scss | ## Code Before:
@import "prez/variables";
body {
margin: 0;
padding: 0;
}
.header {
font-size: 32px;
}
.contact {
font-size: 25px;
}
.url {
color: blue;
}
.gem {
color: #bb0000;
font-weight: bold;
}
.prez-slide {
&, & input {
font-size: 50;
}
display: none;
min... |
f4d42dce73a5d300cf2b87ba5caac9f0b356a3cd | index.js | index.js | // dependencies
var jipics = "http://jipics.net/"
, Request = require("request")
, fs = require("fs")
;
/**
* Upload method
*
* Arguments
* @options: a string representing the image path or an
* object contanining the following fields:
* - path: the path to the image
* - deleteAfte... | // dependencies
var jipics = "http://jipics.net/"
, Request = require("request")
, fs = require("fs")
;
/**
* Upload method
*
* Arguments
* @options: a string representing the image path or an
* object contanining the following fields:
* - path: the path to the image
* - deleteAfte... | Use options.path instead of absoluteImagePath | Use options.path instead of absoluteImagePath
| JavaScript | mit | jillix/node-jipics | javascript | ## Code Before:
// dependencies
var jipics = "http://jipics.net/"
, Request = require("request")
, fs = require("fs")
;
/**
* Upload method
*
* Arguments
* @options: a string representing the image path or an
* object contanining the following fields:
* - path: the path to the image
* ... |
ba5893b1e25aa45a6ee23894132c658a6eecee9d | circle.yml | circle.yml | general:
branches:
ignore:
- /dev.*/
machine:
environment:
PATH: /opt/local/bin:${PATH}
TINYTDS_VERSION: 2.1.0
ACTIVERECORD_UNITTEST_HOST: localhost
ACTIVERECORD_UNITTEST_DATASERVER: localhost
services:
- docker
dependencies:
override:
- sudo ./test/bin/install-openssl.sh
... | general:
branches:
ignore:
- /dev.*/
machine:
environment:
PATH: /opt/local/bin:${PATH}
TINYTDS_VERSION: 2.1.0
ACTIVERECORD_UNITTEST_HOST: localhost
ACTIVERECORD_UNITTEST_DATASERVER: localhost
services:
- docker
dependencies:
override:
- sudo ./test/bin/install-openssl.sh
... | Remove ruby 2.2 in favour of 2.6 | Remove ruby 2.2 in favour of 2.6
| YAML | mit | rails-sqlserver/activerecord-sqlserver-adapter,rails-sqlserver/activerecord-sqlserver-adapter | yaml | ## Code Before:
general:
branches:
ignore:
- /dev.*/
machine:
environment:
PATH: /opt/local/bin:${PATH}
TINYTDS_VERSION: 2.1.0
ACTIVERECORD_UNITTEST_HOST: localhost
ACTIVERECORD_UNITTEST_DATASERVER: localhost
services:
- docker
dependencies:
override:
- sudo ./test/bin/instal... |
59bbe2b67c0a2cec9e98660ada1e35a26d64b416 | views/index.jade | views/index.jade | body(style="text-align:center;")
div(style="height:325px; width:100%;")
button(id="signin", class="btn btn-large btn-block persona-button orange", style="clear:both; max-width:500px; font-size:25px; line-height:1.1; margin:auto;")
span Sign in with Persona
script(src='/lib/jquery.min.js')
script(src="/js/lo... | body(style="text-align:center;")
div(style="height:325px; width:100%;")
button(id="signin", class="btn btn-block persona-button orange", style=" max-width:500px; font-size:25px; color:white; text-shadow:black 0 0 0; border-width:0px; line-height:1.1; margin:auto;")
span Sign in with Persona
script(src='/lib/j... | Fix style on login button | Fix style on login button
| Jade | mit | vladikoff/tincan,rafaelfragosom/tincan,mozilla/tincan,rafaelfragosom/tincan | jade | ## Code Before:
body(style="text-align:center;")
div(style="height:325px; width:100%;")
button(id="signin", class="btn btn-large btn-block persona-button orange", style="clear:both; max-width:500px; font-size:25px; line-height:1.1; margin:auto;")
span Sign in with Persona
script(src='/lib/jquery.min.js')
sc... |
f57802a240ef528b5df1ee5c1dd828fbb5aeb8fd | assets/js/index.js | assets/js/index.js | import Vue from 'vue';
import VueRouter from 'vue-router';
import VueForm from 'vue-form';
import { sync } from 'vuex-router-sync';
import store from './vuex/store.js';
import * as actions from './vuex/actions.js';
import App from './app.vue';
import FeatureList from './components/featurelist.vue';
import FeatureForm... | import Vue from 'vue';
import VueRouter from 'vue-router';
import VueForm from 'vue-form';
import { sync } from 'vuex-router-sync';
import store from './vuex/store.js';
import * as actions from './vuex/actions.js';
import App from './app.vue';
import FeatureList from './components/featurelist.vue';
import FeatureForm... | Set redirect and alias config before starting app | Set redirect and alias config before starting app
| JavaScript | mit | wkevina/feature-requests-app,wkevina/feature-requests-app,wkevina/feature-requests-app | javascript | ## Code Before:
import Vue from 'vue';
import VueRouter from 'vue-router';
import VueForm from 'vue-form';
import { sync } from 'vuex-router-sync';
import store from './vuex/store.js';
import * as actions from './vuex/actions.js';
import App from './app.vue';
import FeatureList from './components/featurelist.vue';
im... |
44a4dfb6b5535c910a5e66a52061c662bf391a69 | src/main/java/com/github/jmchilton/blend4j/galaxy/beans/HistoryDetails.java | src/main/java/com/github/jmchilton/blend4j/galaxy/beans/HistoryDetails.java | package com.github.jmchilton.blend4j.galaxy.beans;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown=true)
public class HistoryDetails extends History {
private String state;
public String getState() {
return state;
}
public void setState(String state) {
... | package com.github.jmchilton.blend4j.galaxy.beans;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;
@JsonIgnoreProperties(ignoreUnknown=true)
public class HistoryDetails extends History ... | Add property to get state map from histories, figure out which HDAs are in what state - ok, failed, etc.... | Add property to get state map from histories, figure out which HDAs are in what state - ok, failed, etc....
| Java | epl-1.0 | jmchilton/blend4j,apetkau/blend4j,greenwoodma/blend4j,apetkau/blend4j,biologghe/blend4j,greenwoodma/blend4j,jmchilton/blend4j | java | ## Code Before:
package com.github.jmchilton.blend4j.galaxy.beans;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown=true)
public class HistoryDetails extends History {
private String state;
public String getState() {
return state;
}
public void setState(Stri... |
2c513c5d410e63da3f39ca9a05747da4dd3690c3 | examples/js/dom.js | examples/js/dom.js | var image = new Image();
image.src = "img/BlueMarbleNasa.png";
// create shatter object after image has loaded
image.addEventListener("load", function() {
var div = document.querySelectorAll('.shatter');
var shatter = new Shatter(image, 14, 1.5);
// adjustment to center image on screen
var adjustment =... | var image = new Image();
image.src = "img/BlueMarbleNasa.png";
// create shatter object after image has loaded
image.addEventListener("load", function() {
var div = document.querySelectorAll('.shatter');
var shatter = new Shatter(image, 14, 1.5);
// adjustment to center image on screen
var adjustment =... | Fix DOM example after breaking change to Shatter images array | Fix DOM example after breaking change to Shatter images array
| JavaScript | mit | cdgugler/shatter.js,cdgugler/shatter.js | javascript | ## Code Before:
var image = new Image();
image.src = "img/BlueMarbleNasa.png";
// create shatter object after image has loaded
image.addEventListener("load", function() {
var div = document.querySelectorAll('.shatter');
var shatter = new Shatter(image, 14, 1.5);
// adjustment to center image on screen
... |
de86e6aae62be31a949ccbfcd2849103b9e813e9 | tasks/build-bundle/run.sh | tasks/build-bundle/run.sh |
set -ex
lattice_release_version=$(git -C lattice-release describe --tags --always)
vagrant_box_version=$(cat vagrant-box-version/number)
lattice_tgz_url=$(cat lattice-tgz/url)
output_dir=lattice-bundle-$lattice_release_version
mkdir -p $output_dir/{vagrant,terraform}
box_version_filter="s/config\.vm\.box_version = ... |
set -ex
lattice_release_version=$(git -C lattice-release describe --tags --always)
vagrant_box_version=$(cat vagrant-box-version/number)
lattice_tgz_url=$(cat lattice-tgz/url)
output_dir=lattice-bundle-$lattice_release_version
mkdir -p $output_dir/{vagrant,terraform}
box_version_filter="s/config\.vm\.box_version = ... | Fix Vagrantfile lattice.tgz url branding | Fix Vagrantfile lattice.tgz url branding
[#104919732]
Signed-off-by: Stephen Levine <72d5489bdb659bea8b15ba0173fe796f11329883@pivotal.io>
| Shell | apache-2.0 | cloudfoundry-incubator/lattice-ci,cloudfoundry-incubator/lattice-ci,cloudfoundry-incubator/lattice-ci | shell | ## Code Before:
set -ex
lattice_release_version=$(git -C lattice-release describe --tags --always)
vagrant_box_version=$(cat vagrant-box-version/number)
lattice_tgz_url=$(cat lattice-tgz/url)
output_dir=lattice-bundle-$lattice_release_version
mkdir -p $output_dir/{vagrant,terraform}
box_version_filter="s/config\.vm... |
53e8165b77f4686353a78a77a089a9bef3620387 | buildout.cfg | buildout.cfg | [buildout]
parts = django
find-links = http://bitbucket.org/ubernostrum/django-registration/downloads/django-registration-0.8-alpha-1.tar.gz
unzip = true
eggs = pkginfo
django-registration==0.8-alpha-1
[django]
recipe = djangorecipe
version = 1.1.1
settings = settings
eggs = ${buildout:eggs}
test = djangopypi
p... | [buildout]
parts = django
find-links = http://bitbucket.org/ubernostrum/django-registration/downloads/django-registration-0.8-alpha-1.tar.gz
unzip = true
eggs = pkginfo
django-registration==0.8-alpha-1
[django]
recipe = djangorecipe
version = 1.1.1
settings = development
eggs = ${buildout:eggs}
test = djangopyp... | Use development settings by default | Use development settings by default
| INI | bsd-3-clause | popen2/djangopypi2,EightMedia/djangopypi,hsmade/djangopypi2,disqus/djangopypi,pitrho/djangopypi2,hsmade/djangopypi2,benliles/djangopypi,mattcaldwell/djangopypi,disqus/djangopypi,popen2/djangopypi2,EightMedia/djangopypi,pitrho/djangopypi2,ask/chishop | ini | ## Code Before:
[buildout]
parts = django
find-links = http://bitbucket.org/ubernostrum/django-registration/downloads/django-registration-0.8-alpha-1.tar.gz
unzip = true
eggs = pkginfo
django-registration==0.8-alpha-1
[django]
recipe = djangorecipe
version = 1.1.1
settings = settings
eggs = ${buildout:eggs}
tes... |
86eac8b3f0ab35a714600e42c58993ae334faf55 | spotify-to-mp3.gemspec | spotify-to-mp3.gemspec | Gem::Specification.new do |gem|
gem.name = 'spotify-to-mp3'
gem.summary = 'Spotify to MP3'
gem.description = 'Download MP3 files of your Spotify tracks from Grooveshark'
gem.version = '0.7.1'
gem.author = 'Francesc Rosàs'
gem.email = 'francescrosasbosque@gmail.com'
gem.homepage = 'https://github.com/frosa... | Gem::Specification.new do |gem|
gem.name = 'spotify-to-mp3'
gem.summary = 'Spotify to MP3'
gem.description = 'Download MP3 files of your Spotify tracks from Grooveshark'
gem.version = '0.7.1'
gem.author = 'Francesc Rosàs'
gem.email = 'francescrosasbosque@gmail.com'
gem.homepage = 'https://github.com/frosa... | Fix "pessimistic dependency on ..." warnings | Fix "pessimistic dependency on ..." warnings
| Ruby | mit | Morl99/spotify-to-mp3,frosas/spotify-to-mp3 | ruby | ## Code Before:
Gem::Specification.new do |gem|
gem.name = 'spotify-to-mp3'
gem.summary = 'Spotify to MP3'
gem.description = 'Download MP3 files of your Spotify tracks from Grooveshark'
gem.version = '0.7.1'
gem.author = 'Francesc Rosàs'
gem.email = 'francescrosasbosque@gmail.com'
gem.homepage = 'https://... |
014cafa3a222eff662e95e7519170e514c5ec4ec | lib/command.coffee | lib/command.coffee | js2coffee = require('./js2coffee')
_ = require('underscore')
fs = require('fs')
path = require('path')
UnsupportedError = js2coffee.UnsupportedError
basename = path.basename
cmd = basename(process.argv[1])
build_and_show = (fname) ->
contents = fs.readFileSync(fname, 'utf-8')
output = js2coffee.build... | js2coffee = require('./js2coffee')
_ = require('underscore')
fs = require('fs')
path = require('path')
tty = require('tty')
UnsupportedError = js2coffee.UnsupportedError
basename = path.basename
cmd = basename(process.argv[1])
build_and_show = (fname) ->
contents = fs.readFileSync(fname, 'utf-8')
outp... | Fix stdin probing on Linux | Fix stdin probing on Linux
Fixes #54
Since linux doesn't throw EAGAIN when stdin is not ready,
we can instead probe to see if stdin is a not a tty (has a pipe).
When there is nothing on stdin and no files are given, print the
usage instructions.
| CoffeeScript | mit | coffee-js/js2coffee | coffeescript | ## Code Before:
js2coffee = require('./js2coffee')
_ = require('underscore')
fs = require('fs')
path = require('path')
UnsupportedError = js2coffee.UnsupportedError
basename = path.basename
cmd = basename(process.argv[1])
build_and_show = (fname) ->
contents = fs.readFileSync(fname, 'utf-8')
output =... |
3bd0e3a0ae27d078b4887ac60353a703a36aa555 | web_app/views/partials/home.jade | web_app/views/partials/home.jade | div(class="row")
div(class="col-md-10 col-md-offset-1")
form
div(class="form-group")
h3 Search
input(ng-model="searchInput", class="form-control", type="text", placeholder="song, album, or artist name...")
div(class="row")
fl-loading(data="SpotifySearch.status", template="search/loading.h... | div(class="row")
div(class="col-md-10 col-md-offset-1")
form
div(class="form-group")
h3 Search
input(ng-model="searchInput", class="form-control", type="text", placeholder="song, album, or artist name...")
div(class="row")
div(class="col-md-10 col-md-offset-1")
fl-loading(data="Spotif... | Apply column div to restrict width | Apply column div to restrict width
| Jade | mit | projectweekend/Pi-Jukebox,projectweekend/Pi-Jukebox,projectweekend/Pi-Jukebox | jade | ## Code Before:
div(class="row")
div(class="col-md-10 col-md-offset-1")
form
div(class="form-group")
h3 Search
input(ng-model="searchInput", class="form-control", type="text", placeholder="song, album, or artist name...")
div(class="row")
fl-loading(data="SpotifySearch.status", template="... |
0b7060d48b2b1cb4b18c3288d65d8bc9cbc027a6 | app/views/layouts/_support_navigator_banner.html.haml | app/views/layouts/_support_navigator_banner.html.haml | -# See config/browser.rb
- if !browser.modern?
#support-navigator-banner.row
.col-xs-12
= browser.name
= browser.version
\-
Attention, votre navigateur est trop ancien pour utiliser demarches-simplifiees.fr : certaines parties du site ne fonctionneront pas correctement.
%br/
%b... | -# See config/browser.rb
- if !browser.modern?
#support-navigator-banner.row
.col-xs-12
Attention, votre navigateur (#{browser.name} #{browser.version}) est trop ancien pour utiliser demarches-simplifiees.fr : certaines parties du site ne fonctionneront pas correctement.
%br/
%br/
Nous vou... | Improve the outdated browser message | Improve the outdated browser message | Haml | agpl-3.0 | sgmap/tps,sgmap/tps,sgmap/tps | haml | ## Code Before:
-# See config/browser.rb
- if !browser.modern?
#support-navigator-banner.row
.col-xs-12
= browser.name
= browser.version
\-
Attention, votre navigateur est trop ancien pour utiliser demarches-simplifiees.fr : certaines parties du site ne fonctionneront pas correctement.
... |
e762bb0391eebc2956a242478921202a9e907c53 | public/include/pages/api/getuserworkers.inc.php | public/include/pages/api/getuserworkers.inc.php | <?php
// Make sure we are called from index.php
if (!defined('SECURITY')) die('Hacking attempt');
// Check if the API is activated
$api->isActive();
// Check user token
$user_id = $api->checkAccess($user->checkApiKey($_REQUEST['api_key']), @$_REQUEST['id']);
// Output JSON format
echo $api->get_json($worker->getWor... | <?php
// Make sure we are called from index.php
if (!defined('SECURITY')) die('Hacking attempt');
// Check if the API is activated
$api->isActive();
// Check user token
$user_id = $api->checkAccess($user->checkApiKey($_REQUEST['api_key']), @$_REQUEST['id']);
// Fetch data interval from admin settings
if ( ! $interv... | Use data interval on getuserworkers | [IMPROVED] Use data interval on getuserworkers
| PHP | apache-2.0 | mmitech/php-mpos,UNOMP/chunky-mpos,mculp/chunky-mpos,CoinHashMe/MPOS-SSO,bankonme/php-mpos,xisi/php-mpos,studio666/php-mpos,MPOS/php-mpos,MPOS/php-mpos,evgenyponomarev/pool,sixxkilur/php-mpos,sixxkilur/php-mpos,nimblecoin/web,sixxkilur/php-mpos,UNOMP/chunky-mpos,BlueDragon747/php-mpos,MPOS/php-mpos,machinecoin-project/... | php | ## Code Before:
<?php
// Make sure we are called from index.php
if (!defined('SECURITY')) die('Hacking attempt');
// Check if the API is activated
$api->isActive();
// Check user token
$user_id = $api->checkAccess($user->checkApiKey($_REQUEST['api_key']), @$_REQUEST['id']);
// Output JSON format
echo $api->get_json... |
160c2c7dbc90abd269a65d1bbb9b84fa06e7d08a | app/models/gallery.rb | app/models/gallery.rb | class Gallery < ActiveRecord::Base
has_many :pictures
after_initialize do
if new_record?
self.slug ||= Base64.encode64(UUIDTools::UUID.random_create)[0..7]
end
end
end
| class Gallery < ActiveRecord::Base
has_many :pictures, dependent: :destroy
after_initialize do
if new_record?
self.slug ||= Base64.encode64(UUIDTools::UUID.random_create)[0..7]
end
end
end
| Delete pictures, when galleries are deleted. | Delete pictures, when galleries are deleted.
| Ruby | agpl-3.0 | nning/imgshr,nning/imgshr,nning/imgshr,nning/imgshr | ruby | ## Code Before:
class Gallery < ActiveRecord::Base
has_many :pictures
after_initialize do
if new_record?
self.slug ||= Base64.encode64(UUIDTools::UUID.random_create)[0..7]
end
end
end
## Instruction:
Delete pictures, when galleries are deleted.
## Code After:
class Gallery < ActiveRecord::Base
... |
c131df999589ab5c8f34dc630da43e1237621f63 | README.md | README.md |
A system for ranking game players by skill, based on Rémi Coulom's Whole History Rating algorithm.
Developed for use on [GoShrine](http://goshrine.com)
Installation
------------
* gem install whole-history-rating
Enjoy!
-Pete
|
A system for ranking game players by skill, based on Rémi Coulom's Whole History Rating algorithm.
Developed for use on [GoShrine](http://goshrine.com), but the code is not go specific. It can support any two player game, as long as the outcome is a simple win/loss. An addition to the algorithm is support for handi... | Add note about supporting handicaps. | Add note about supporting handicaps.
| Markdown | mit | goshrine/whole_history_rating | markdown | ## Code Before:
A system for ranking game players by skill, based on Rémi Coulom's Whole History Rating algorithm.
Developed for use on [GoShrine](http://goshrine.com)
Installation
------------
* gem install whole-history-rating
Enjoy!
-Pete
## Instruction:
Add note about supporting handicaps.
## Code After... |
fb25fa04cf553b1084425a1f2af6a9315266ffaf | salt/renderers/yaml_jinja.py | salt/renderers/yaml_jinja.py | '''
The default rendering engine, process yaml with the jinja2 templating engine
This renderer will take a yaml file with the jinja2 template and render it to a
high data format for salt states.
'''
# Import Python Modules
import os
# Import thirt party modules
import yaml
try:
yaml.Loader = yaml.CLoader
yam... | '''
The default rendering engine, process yaml with the jinja2 templating engine
This renderer will take a yaml file with the jinja2 template and render it to a
high data format for salt states.
'''
# Import Python Modules
import os
# Import thirt party modules
import yaml
try:
yaml.Loader = yaml.CLoader
yam... | Add pillar data to default renderer | Add pillar data to default renderer
| Python | apache-2.0 | saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt | python | ## Code Before:
'''
The default rendering engine, process yaml with the jinja2 templating engine
This renderer will take a yaml file with the jinja2 template and render it to a
high data format for salt states.
'''
# Import Python Modules
import os
# Import thirt party modules
import yaml
try:
yaml.Loader = yaml... |
b9dde502c51381e3762d108270e6129d7952fd36 | autogen.sh | autogen.sh | giveup()
{
echo
echo " Something went wrong, giving up!"
echo
exit 1
}
OSTYPE=`uname -s`
for libtoolize in glibtoolize libtoolize; do
LIBTOOLIZE=`which $libtoolize 2>/dev/null`
if test -x "${LIBTOOLIZE}"; then
break;
fi
done
#AMFLAGS="--add-missing --copy --force-... | giveup()
{
echo
echo " Something went wrong, giving up!"
echo
exit 1
}
OSTYPE=`uname -s`
for aclocal in aclocal aclocal-1.10 aclocal-1.9; do
ACLOCAL=`which $aclocal 2>/dev/null`
if test -x "${ACLOCAL}"; then
break;
fi
done
for automake in automake automake-1.10 au... | Add version test for aclocal and automake to allow OpenSolaris to work. | Add version test for aclocal and automake to allow OpenSolaris to work.
git-svn-id: 6c2b1bd10c324c49ea9d9e6e31006a80e70507cb@2241 5242fede-7e19-0410-aef8-94bd7d2200fb
| Shell | lgpl-2.1 | vmx/geos,Uli1/geos,Uli1/geos,vmx/geos,Uli1/geos,vmx/geos,Uli1/geos,vmx/geos,vmx/geos,Uli1/geos,Uli1/geos,vmx/geos,Uli1/geos | shell | ## Code Before:
giveup()
{
echo
echo " Something went wrong, giving up!"
echo
exit 1
}
OSTYPE=`uname -s`
for libtoolize in glibtoolize libtoolize; do
LIBTOOLIZE=`which $libtoolize 2>/dev/null`
if test -x "${LIBTOOLIZE}"; then
break;
fi
done
#AMFLAGS="--add-missing... |
a9307e1ac7778f6073d275a4822bc5f1df9c45fb | termedit.py | termedit.py |
import os
import sys
import neovim
files = {os.path.abspath(arg) for arg in sys.argv[1:]}
if not files:
sys.exit(1)
addr = os.environ.get('NVIM_LISTEN_ADDRESS', None)
if not addr:
os.execvp('nvim', files)
nvim = neovim.attach('socket', path=addr)
tbuf = nvim.current.buffer
for fname in files:
nvim.comm... |
import os
import sys
import neovim
files = [os.path.abspath(arg) for arg in sys.argv[1:]]
if not files:
sys.exit(1)
addr = os.environ.get('NVIM_LISTEN_ADDRESS', None)
if not addr:
os.execvp('nvim', files)
nvim = neovim.attach('socket', path=addr)
tbuf = nvim.current.buffer
for fname in files:
fname = n... | Fix not opening paths with spaces. | Fix not opening paths with spaces.
| Python | apache-2.0 | rliang/termedit.nvim | python | ## Code Before:
import os
import sys
import neovim
files = {os.path.abspath(arg) for arg in sys.argv[1:]}
if not files:
sys.exit(1)
addr = os.environ.get('NVIM_LISTEN_ADDRESS', None)
if not addr:
os.execvp('nvim', files)
nvim = neovim.attach('socket', path=addr)
tbuf = nvim.current.buffer
for fname in file... |
9c7e516c224c216a01ac50a7b41cfe9b69a71fe6 | RELEASE_NOTES.md | RELEASE_NOTES.md | * Support for .NET core
### 0.2 - June 25th 2016
* String helper functions
* 40% faster processing large (> 1KB) inputs
### 0.1 - November 12th 2015
* 32bit Farmhash implemented
* 64bit Farmhash implemented
| * Release Farmhash.Sharp under netstandard 1.0
* Switch to new MSBuild project files
### 0.2 - June 25th 2016
* String helper functions
* 40% faster processing large (> 1KB) inputs
### 0.1 - November 12th 2015
* 32bit Farmhash implemented
* 64bit Farmhash implemented
| Update release notes with release date | Update release notes with release date
| Markdown | mit | nickbabcock/Farmhash.Sharp,nickbabcock/Farmhash.Sharp,nickbabcock/Farmhash.Sharp,nickbabcock/Farmhash.Sharp | markdown | ## Code Before:
* Support for .NET core
### 0.2 - June 25th 2016
* String helper functions
* 40% faster processing large (> 1KB) inputs
### 0.1 - November 12th 2015
* 32bit Farmhash implemented
* 64bit Farmhash implemented
## Instruction:
Update release notes with release date
## Code After:
* Release Farmhash.Shar... |
73372378d709080c65b799aa8c1026de53f465e8 | hero_mapper/app/models/heroe.rb | hero_mapper/app/models/heroe.rb | class Heroe < ApplicationRecord
validates :name, uniqueness: true
def self.save_hero_data
# offset = 0
response_count = nil
# until response_count == 0
# character_data = marvel_api_call
# if character_data['data']['results'].empty?
# end
# end
end
private
def se... | class Heroe < ApplicationRecord
validates :marvel_id, uniqueness: true
def self.save_hero_data
response_count = nil
until response_count == 0
character_data = marvel_api_call['data']
if !character_data['results'].empty?
character_data['results'].each do |hero|
character = Hero... | Update to validate on unique marvel_id. Create loop to populate database | Update to validate on unique marvel_id. Create loop to populate database
| Ruby | mit | wanderfal/saving_boston,wanderfal/saving_boston,wanderfal/saving_boston | ruby | ## Code Before:
class Heroe < ApplicationRecord
validates :name, uniqueness: true
def self.save_hero_data
# offset = 0
response_count = nil
# until response_count == 0
# character_data = marvel_api_call
# if character_data['data']['results'].empty?
# end
# end
end
p... |
3e85e5a3ee8b8f00edbc31fa701d0ebd92a87e47 | src/cljs/comic_reader/pages/sites.cljs | src/cljs/comic_reader/pages/sites.cljs | (ns comic-reader.pages.sites
(:require [comic-reader.session :as session]
[reagent.core :as reagent :refer [atom]]
[secretary.core :refer [dispatch!]]))
(defn manga-site [site-data]
^{:key (:id site-data)} [:li (:name site-data)])
(defn site-list [sites]
[:div
[:h1 "Comic Sources"]
... | (ns comic-reader.pages.sites
(:require [comic-reader.session :as session]
[reagent.core :as reagent :refer [atom]]
[secretary.core :refer [dispatch!]]))
(defn manga-site [site-data]
^{:key (:id site-data)}
[:li
[:input {:type "button"
:value (:name site-data)
:o... | Make the site components contain a button | Make the site components contain a button
| Clojure | epl-1.0 | RadicalZephyr/comic-reader,RadicalZephyr/comic-reader | clojure | ## Code Before:
(ns comic-reader.pages.sites
(:require [comic-reader.session :as session]
[reagent.core :as reagent :refer [atom]]
[secretary.core :refer [dispatch!]]))
(defn manga-site [site-data]
^{:key (:id site-data)} [:li (:name site-data)])
(defn site-list [sites]
[:div
[:h1 "Co... |
5878abaa6cb74bdf833e960bba71545da812ce6a | .github/workflows/validate-release-notes.yml | .github/workflows/validate-release-notes.yml | on: pull_request
name: Validate release notes
jobs:
validateReleaseNotes:
name: Validate release notes
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1.0.0
- name: Extract release notes
uses: lee-dohm/extract-release-notes@v1.0.2
if: "github.event.pull_request.user.type != 'Bo... | on:
pull_request:
types: [opened, edited, reopened]
name: Validate release notes
jobs:
validateReleaseNotes:
name: Validate release notes
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1.0.0
- name: Extract release notes
uses: lee-dohm/extract-release-notes@v1.0.2
if: "g... | Change pull request event types to validate release notes | Change pull request event types to validate release notes
| YAML | mit | lee-dohm/atom-style-tweaks,lee-dohm/atom-style-tweaks,lee-dohm/atom-style-tweaks,lee-dohm/atom-style-tweaks | yaml | ## Code Before:
on: pull_request
name: Validate release notes
jobs:
validateReleaseNotes:
name: Validate release notes
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1.0.0
- name: Extract release notes
uses: lee-dohm/extract-release-notes@v1.0.2
if: "github.event.pull_request.... |
cdd63064da8b730a5fe6eaf0b51aefa8f1b13a73 | index.html | index.html | ---
layout: default
---
<p><code>softpunk</code> is the GitHub organization for the #code IRC channel, which is currently on Rizon.</p>
<h2>Our Projects</h2>
<h3><a href="https://github.com/softpunk/temperate-tabs">Temperate Tabs</a></h3>
<p>A Firefox addon for those of us who have a bad habit of opening dozens or h... | ---
layout: default
---
<p><code>softpunk</code> is the GitHub organization for the #code IRC channel, which is currently on Rizon.</p>
<h2>Our Projects</h2>
<h3><a href="https://github.com/softpunk/temperate-tabs">Temperate Tabs</a></h3>
<p>A Firefox addon for those of us who have a bad habit of opening dozens or h... | Remove first instance of project idea line | Remove first instance of project idea line
| HTML | agpl-3.0 | softpunk/softpunk.github.io | html | ## Code Before:
---
layout: default
---
<p><code>softpunk</code> is the GitHub organization for the #code IRC channel, which is currently on Rizon.</p>
<h2>Our Projects</h2>
<h3><a href="https://github.com/softpunk/temperate-tabs">Temperate Tabs</a></h3>
<p>A Firefox addon for those of us who have a bad habit of ope... |
980fcd1cd81a6fa09822faa09d37a47163ddb046 | public/css/home.css | public/css/home.css |
body {
background-color: #FFFFFF;
}
h2, h3, h4, p, small, strong, .accounts, .networks, .nonetworks, .main, .disclaimer {
text-align: center;
}
@media only screen and (max-width: 720px) {
img { max-width: 100%; }
}
img {
width: auto;
max-width: 300px;
min-width: 200px;
margin: 0 auto;
display: block;
} | .title {
background: #fceabb; /* Old browsers */
background: -moz-linear-gradient(top, #fceabb 0%, #fccd4d 50%, #f8b500 51%, #fbdf93 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fceabb), color-stop(50%,#fccd4d), color-stop(51%,#f8b500), color-stop(100%,#fbdf93)); /*... | Add style for title on index | Add style for title on index
| CSS | mit | terriblesarcasm/Axihub | css | ## Code Before:
body {
background-color: #FFFFFF;
}
h2, h3, h4, p, small, strong, .accounts, .networks, .nonetworks, .main, .disclaimer {
text-align: center;
}
@media only screen and (max-width: 720px) {
img { max-width: 100%; }
}
img {
width: auto;
max-width: 300px;
min-width: 200px;
margin: 0 auto;
disp... |
23be1ec1be8e303fe223eb15d2793b24c33baee1 | app/views/message/deadlines/_new.html.haml | app/views/message/deadlines/_new.html.haml | = semantic_form_for DeadlineMessage.new, url: thread_deadlines_path(@thread), html: { class: "navigate-away-warning" } do |f|
= f.inputs do
= f.input :all_day, input_html: {class: "all-day"}
= f.input :deadline, as: :date_picker, label: t("deadline_date")
= f.input :title
= f.actions do
... | = semantic_form_for DeadlineMessage.new, url: thread_deadlines_path(@thread), html: { class: "navigate-away-warning" } do |f|
= f.inputs do
= f.input :all_day, input_html: {class: "all-day"}
= f.input :deadline, as: :date_picker, label: t("deadline_date"), input_html: { autocomplete: :off }
= f.... | Stop autocomplete on deadline input | Stop autocomplete on deadline input
Fixes #774
| Haml | mit | cyclestreets/cyclescape,cyclestreets/cyclescape,cyclestreets/cyclescape | haml | ## Code Before:
= semantic_form_for DeadlineMessage.new, url: thread_deadlines_path(@thread), html: { class: "navigate-away-warning" } do |f|
= f.inputs do
= f.input :all_day, input_html: {class: "all-day"}
= f.input :deadline, as: :date_picker, label: t("deadline_date")
= f.input :title
= f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.