commit stringlengths 40 40 | old_file stringlengths 4 217 | new_file stringlengths 4 217 | old_code stringlengths 0 3.94k | new_code stringlengths 1 4.42k | subject stringlengths 15 736 | message stringlengths 15 9.92k | lang stringclasses 218
values | license stringclasses 13
values | repos stringlengths 6 114k | udiff stringlengths 42 4.57k |
|---|---|---|---|---|---|---|---|---|---|---|
c830e66431dab010309b4ad92ef38c418ec7029b | models.py | models.py | import datetime
from flask import url_for
from Simpoll import db
class Poll(db.Document):
created_at = db.DateTimeField(default=datetime.datetime.now, required=True)
question = db.StringField(max_length=255, required=True)
option1 = db.StringField(max_length=255, required=True)
option2 = db.StringFiel... | import datetime
from flask import url_for
from Simpoll import db
class Poll(db.Document):
created_at = db.DateTimeField(default=datetime.datetime.now, required=True)
question = db.StringField(max_length=255, required=True)
option1 = db.StringField(max_length=255, required=True)
option2 = db.StringFiel... | Add default votes and topscores | Add default votes and topscores
| Python | mit | dpuleri/simpoll_backend,dpuleri/simpoll_backend,dpuleri/simpoll_backend,dpuleri/simpoll_backend | ---
+++
@@ -8,9 +8,9 @@
question = db.StringField(max_length=255, required=True)
option1 = db.StringField(max_length=255, required=True)
option2 = db.StringField(max_length=255, required=True)
- option1votes = db.IntField(required=True)
- option2votes = db.IntField(required=True)
- topscore = ... |
38d04f69cf4d8554cf0ef626d80a5be1d81748bd | requirements.txt | requirements.txt | # 'lxml' is not a primary requirement of psautohint but it's listed here because we
# want to have control over the version and guarantee that the XML output remains stable
lxml==4.4.1
fonttools[ufo,lxml]==3.44.0
| # 'lxml' is not a primary requirement of psautohint but it's listed here because we
# want to have control over the version and guarantee that the XML output remains stable
lxml==4.4.1
fonttools[lxml,ufo]==4.0.0
| Update fonttools from 3.44.0 to 4.0.0 | Update fonttools from 3.44.0 to 4.0.0 | Text | apache-2.0 | khaledhosny/psautohint,khaledhosny/psautohint | ---
+++
@@ -1,4 +1,4 @@
# 'lxml' is not a primary requirement of psautohint but it's listed here because we
# want to have control over the version and guarantee that the XML output remains stable
lxml==4.4.1
-fonttools[ufo,lxml]==3.44.0
+fonttools[lxml,ufo]==4.0.0
|
c442e10588497ef8aab18959239095cd041b7091 | top.sls | top.sls | dev:
'*snbgt1-03*':
- base
- slave
- runner
base:
'*':
- base
'otc-mesa-ci*':
- master
'otc-gfx*':
- slave
- runner
'*snb*':
- snb
# vim: ft=yaml
| base:
'*':
- base
'otc-mesa-ci*':
- master
'otc-gfx*':
- slave
- runner
'*snb*':
- snb
# vim: ft=yaml
| Revert "enable dev for snbgt1-03" | Revert "enable dev for snbgt1-03"
This reverts commit 3d7c1cebae9716b4fea200c7caa52789c3e5f704.
| SaltStack | mit | dcbaker/jenkins-salt,dcbaker/jenkins-salt | ---
+++
@@ -1,8 +1,3 @@
-dev:
- '*snbgt1-03*':
- - base
- - slave
- - runner
base:
'*':
- base
|
f5306ef8c101b8913d855c4086e3f4a64103aff6 | .settings/org.eclipse.jdt.core.prefs | .settings/org.eclipse.jdt.core.prefs | eclipse.preferences.version=1
# We target Java 1.6
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.source=1.6
# Lines should be splitted at 140 chars
org.eclipse.jdt.core.formatter.lineSplit=140
# Indentation is 4 spaces
org.eclipse.jdt... | eclipse.preferences.version=1
# We target Java 1.7
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.source=1.7
# Lines should be splitted at 140 chars
org.eclipse.jdt.core.formatter.lineSplit=140
# Indentation is 4 spaces
org.eclipse.jdt... | Update Eclipse configuration to Java 1.7. | Update Eclipse configuration to Java 1.7.
| INI | apache-2.0 | rajanm/elasticsearch,gmarz/elasticsearch,Liziyao/elasticsearch,socialrank/elasticsearch,elancom/elasticsearch,F0lha/elasticsearch,petmit/elasticsearch,lchennup/elasticsearch,mgalushka/elasticsearch,SergVro/elasticsearch,lightslife/elasticsearch,AleksKochev/elasticsearch,skearns64/elasticsearch,Flipkart/elasticsearch,a2... | ---
+++
@@ -1,8 +1,8 @@
eclipse.preferences.version=1
-# We target Java 1.6
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.source=1.6
+# We target Java 1.7
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
+org.eclipse.jd... |
d960aa53baa8208e879046d55a41587caba43d63 | .travis.yml | .travis.yml | language: python
python:
- "2.7"
# Command to install dependencies.
install:
- pip install -r requirements.txt
# Command to run tests.
script:
- python rake_test.py
| language: python
python:
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
# Command to install dependencies.
install:
- pip install -r requirements.txt
# Command to run tests.
script:
- python rake_test.py
| Enable testing with different python versions. | Enable testing with different python versions.
| YAML | mit | csurfer/rake-nltk,cgratie/rake-nltk | ---
+++
@@ -1,6 +1,11 @@
language: python
python:
- "2.7"
+ - "3.2"
+ - "3.3"
+ - "3.4"
+ - "3.5"
+ - "3.6"
# Command to install dependencies.
install:
- pip install -r requirements.txt
|
deaa469fcec628f7c233f21ffdbccef1c07c0657 | lib/split/version.rb | lib/split/version.rb | # frozen_string_literal: true
module Split
MAJOR = 3
MINOR = 4
PATCH = 1
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
| # frozen_string_literal: true
module Split
VERSION = "4.0.0.pre"
end
| Set main branch as 4.0.0.pre | Set main branch as 4.0.0.pre
| Ruby | mit | splitrb/split,splitrb/split,splitrb/split | ---
+++
@@ -1,8 +1,5 @@
# frozen_string_literal: true
module Split
- MAJOR = 3
- MINOR = 4
- PATCH = 1
- VERSION = [MAJOR, MINOR, PATCH].join('.')
+ VERSION = "4.0.0.pre"
end
|
8b401042e4069339abd1d219151f924bcc557d83 | assignments/coffeescript/binary/binary_test.spec.coffee | assignments/coffeescript/binary/binary_test.spec.coffee | Binary = require('./example');
describe 'binary', ->
it '1 is decimal 1', ->
expect(1).toEqual new Binary('1').toDecimal()
xit '10 is decimal 2', ->
expect(2).toEqual new Binary('10').toDecimal()
xit '11 is decimal 3', ->
expect(3).toEqual new Binary('11').toDecimal()
xit '100 is decimal 4', ->... | Binary = require('./binary');
describe 'binary', ->
it '1 is decimal 1', ->
expect(1).toEqual new Binary('1').toDecimal()
xit '10 is decimal 2', ->
expect(2).toEqual new Binary('10').toDecimal()
xit '11 is decimal 3', ->
expect(3).toEqual new Binary('11').toDecimal()
xit '100 is decimal 4', ->
... | Fix require in binary test for coffeescript | Fix require in binary test for coffeescript | CoffeeScript | agpl-3.0 | mhelmetag/exercism.io,kangkyu/exercism.io,praveenpuglia/exercism.io,alexclarkofficial/exercism.io,exercistas/exercism.io,treiff/exercism.io,mhelmetag/exercism.io,tejasbubane/exercism.io,tejasbubane/exercism.io,kizerxl/exercism.io,exercistas/exercism.io,exercistas/exercism.io,praveenpuglia/exercism.io,bmulvihill/exercis... | ---
+++
@@ -1,4 +1,4 @@
-Binary = require('./example');
+Binary = require('./binary');
describe 'binary', ->
|
986e1ea58b31ffd799830d7050622e5e35663d22 | lib/collections/posts.js | lib/collections/posts.js | Posts = new Mongo.Collection('posts');
Meteor.methods({
postInsert: function(postAttributes) {
check(Meteor.userId(), String);
check(postAttributes, {
title: String,
url: String
});
var postWithSameLink = Posts.findOne({ url: postAttributes.url });
if (postWithSameLink) {
retu... | Posts = new Mongo.Collection('posts');
Posts.allow({
update: function(userId, post) {
return ownsDocument(userId, post);
},
remove: function(userId, post) {
return ownsDocument(userId, post);
}
});
Posts.deny({
update: function(userId, post, fieldNames) {
return (_.without(fieldNames, 'url', 'ti... | Add allow/deny for post editing/deleting | Add allow/deny for post editing/deleting
| JavaScript | mit | Bennyz/microscope,Bennyz/microscope | ---
+++
@@ -1,4 +1,19 @@
Posts = new Mongo.Collection('posts');
+
+Posts.allow({
+ update: function(userId, post) {
+ return ownsDocument(userId, post);
+ },
+ remove: function(userId, post) {
+ return ownsDocument(userId, post);
+ }
+});
+
+Posts.deny({
+ update: function(userId, post, fieldNames) {
+ ... |
436d37a6978a7e62bb9626d3127684c1a30b5dde | gshell-core/src/main/java/org/apache/geronimo/gshell/CommandExecutionFailied.java | gshell-core/src/main/java/org/apache/geronimo/gshell/CommandExecutionFailied.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | Add new exception type when commands fail | Add new exception type when commands fail
git-svn-id: cd28ba526fba5b39766c0a4e72305690b33c2c6e@662168 13f79535-47bb-0310-9956-ffa450edef68
| Java | apache-2.0 | apache/geronimo-gshell,apache/geronimo-gshell,apache/geronimo-gshell | ---
+++
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Ver... | |
17cbfbc9b0d021f2d4d10ea0bad510eb234747ee | .circleci/config.yml | .circleci/config.yml | version: 2
jobs:
build:
docker:
- image: circleci/golang:1.10
working_directory: /go/src/github.com/codelingo/clql
steps:
- checkout
- run: go get -u github.com/golang/dep/cmd/dep
- run: dep ensure -v
- run: go test $(go list ./flows/... | grep -v /vendor/ | grep -v /syntax_s... | version: 2
jobs:
build:
docker:
- image: circleci/golang:1.10
working_directory: /go/src/github.com/codelingo/clql
steps:
- checkout
- run: go get -u github.com/golang/dep/cmd/dep
- run: dep ensure -v
- run: go test $(go list ./... 2>/dev/null | grep -v /tenets/ | grep -v /v... | Add CI to all non tenet directories. | Add CI to all non tenet directories.
| YAML | agpl-3.0 | lingo-reviews/lingo,lingo-reviews/lingo | ---
+++
@@ -8,4 +8,4 @@
- checkout
- run: go get -u github.com/golang/dep/cmd/dep
- run: dep ensure -v
- - run: go test $(go list ./flows/... | grep -v /vendor/ | grep -v /syntax_spec)
+ - run: go test $(go list ./... 2>/dev/null | grep -v /tenets/ | grep -v /vendor)
|
e6806532bf9a9b635fbf94e85ea9ea6c9fbe2998 | doc/requirements-doc.txt | doc/requirements-doc.txt | numpydoc
imageio
sphinx
sphinx_rtd_theme
sphinx_gallery
sphinx-argparse
sphinx-issues
#
# Example requirements
#
# all examples
matplotlib
# frequency example
multidict
# wordcloud_cn example
jieba
scipy
| numpydoc
imageio
sphinx
sphinx_rtd_theme
sphinx_gallery
sphinx-argparse
sphinx-issues
#
# Example requirements
#
# all examples
matplotlib
# frequency example
multidict
# wordcloud_cn example
jieba
scipy
# arabic example
python-bidi
arabic_reshaper
| Add the dependency packages to the docs requirements file | Add the dependency packages to the docs requirements file
| Text | mit | amueller/word_cloud | ---
+++
@@ -19,3 +19,7 @@
# wordcloud_cn example
jieba
scipy
+
+# arabic example
+python-bidi
+arabic_reshaper
|
17fd96b0feb2c2dc4b2fc5c98de4bd9ebf1bca18 | db/migrate/20150811075115_fix_new_discussion_sequences.rb | db/migrate/20150811075115_fix_new_discussion_sequences.rb | class FixNewDiscussionSequences < ActiveRecord::Migration
def up
Event.where('kind = ? AND sequence_id IS NOT NULL', :new_discussion).update_all(sequence_id: nil)
end
end
| Set existing new_discussion event sequence ids to nil | Set existing new_discussion event sequence ids to nil
| Ruby | agpl-3.0 | gvalerin/loomio,doomergithub/loomio,loomio/loomio,mhjb/loomio,codingnutty/loomio,mlarghydracept/loomio,digideskio/loomio,annewchen/loomio,doomergithub/loomio,wangjun/loomio,juliagra/loomio,gvalerin/loomio,sicambria/loomio,FSFTN/Loomio,mlarghydracept/loomio,sicambria/loomio,codingnutty/loomio,digideskio/loomio,FSFTN/Loo... | ---
+++
@@ -0,0 +1,5 @@
+class FixNewDiscussionSequences < ActiveRecord::Migration
+ def up
+ Event.where('kind = ? AND sequence_id IS NOT NULL', :new_discussion).update_all(sequence_id: nil)
+ end
+end
| |
e299ab7566bac622fe596e44bced0800f15e6a24 | manup-demo/src/app/app.component.ts | manup-demo/src/app/app.component.ts | import { Component } from '@angular/core';
import { Platform } from 'ionic-angular';
import { StatusBar, Splashscreen } from 'ionic-native';
import { TabsPage } from '../pages/tabs/tabs';
import { ManUpService } from 'ionic-manup';
@Component({
templateUrl: 'app.html'
})
export class MyApp {
rootPage = TabsPage;... | import { Component } from '@angular/core';
import { Platform } from 'ionic-angular';
import { StatusBar, Splashscreen } from 'ionic-native';
import { TabsPage } from '../pages/tabs/tabs';
import { ManUpService } from 'ionic-manup';
import { TranslateService } from 'ng2-translate'
@Component({
templateUrl: 'app.htm... | Set default languate to english | Set default languate to english
| TypeScript | mit | NextFaze/ionic-manup,NextFaze/ionic-manup,NextFaze/ionic-manup | ---
+++
@@ -5,6 +5,7 @@
import { TabsPage } from '../pages/tabs/tabs';
import { ManUpService } from 'ionic-manup';
+import { TranslateService } from 'ng2-translate'
@Component({
templateUrl: 'app.html'
@@ -12,7 +13,8 @@
export class MyApp {
rootPage = TabsPage;
- constructor(platform: Platform, priva... |
27030a0b198fba368f00fc23b024bc5f50c4e631 | spec/todo/item_spec.rb | spec/todo/item_spec.rb | require 'spec_helper'
Todo::Item = Struct.new(:text) do
attr_reader :assignee
def assign_to(assignee)
@assignee = assignee
end
def mark_complete
@completed = true
end
def completed?
@completed ||= false
end
end
RSpec.describe Todo::Item do
it 'is not completed' do
item = described_c... | require 'spec_helper'
Todo::Item = Struct.new(:text) do
attr_reader :assignee, :due_at
def assign_to(assignee)
@assignee = assignee
end
def set_deadline(due_date)
@due_at = due_date
end
def mark_complete
@completed = true
end
def completed?
@completed ||= false
end
end
RSpec.desc... | Add deadlines to todo items | Add deadlines to todo items
| Ruby | mit | joemsak/todo-list,joemsak/todo-list | ---
+++
@@ -1,10 +1,14 @@
require 'spec_helper'
Todo::Item = Struct.new(:text) do
- attr_reader :assignee
+ attr_reader :assignee, :due_at
def assign_to(assignee)
@assignee = assignee
+ end
+
+ def set_deadline(due_date)
+ @due_at = due_date
end
def mark_complete
@@ -33,4 +37,11 @@
i... |
a563baf1a68c469029fd376af3d14500600ac7ec | .travis.yml | .travis.yml | sudo: false
language: rust
rust:
- '1.22.1' # base line for backwards compatibility
- stable # to stay up to date
- beta # because the Rust team appreciates it
- nightly
script:
- cargo build --verbose
- cargo test --verbose
cache: cargo
# Check formatting before running tests
stages:
- formatting
- tes... | sudo: false
language: rust
rust:
- '1.22.1' # base line for backwards compatibility
- stable # to stay up to date
- beta # because the Rust team appreciates it
- nightly
script:
- cargo build --verbose
- cargo test --verbose
cache: cargo
# Check formatting before running tests
stages:
- formatting
- tes... | Use stable rustfmt for formatting | Use stable rustfmt for formatting
| YAML | apache-2.0 | lunaryorn/xkpwgen.rs | ---
+++
@@ -19,4 +19,4 @@
- stage: formatting
before_install: rustup component add rustfmt-preview
script: cargo fmt -- --write-mode=diff
- rust: nightly
+ rust: stable
|
081256c466e638b65cc2d58a6ca002c66f128098 | locales/mn/webextension.properties | locales/mn/webextension.properties | # Clip in this context refers to a portion of an image
addonDescription = Вэбээс авсан клип болон дэлгэцийн зургийг аваад тэдгээрийг түр эсвэл бүрмөсөн хадгал.
# Also used for the title on the toolbar button
# The downloadOnlyDetails string introduces a list of items. The keys
# downloadOnlyDetailsPrivate, downloadOnly... | Update Mongolian (mn) localization of Firefox Screenshots | Pontoon: Update Mongolian (mn) localization of Firefox Screenshots
Localization authors:
- eharkerrox <eharkerrox@hotmail.com>
| INI | mpl-2.0 | mozilla-services/pageshot,mozilla-services/pageshot,mozilla-services/pageshot,mozilla-services/screenshots,mozilla-services/pageshot,mozilla-services/screenshots,mozilla-services/screenshots,mozilla-services/screenshots | ---
+++
@@ -0,0 +1,34 @@
+# Clip in this context refers to a portion of an image
+addonDescription = Вэбээс авсан клип болон дэлгэцийн зургийг аваад тэдгээрийг түр эсвэл бүрмөсөн хадгал.
+# Also used for the title on the toolbar button
+# The downloadOnlyDetails string introduces a list of items. The keys
+# download... | |
897e10a81e3495c7749977a51cc4b82602f9ba03 | tests/cases/fourslash/jsxExpressionFollowedByIdentifier.ts | tests/cases/fourslash/jsxExpressionFollowedByIdentifier.ts | /// <reference path="fourslash.ts" />
//@Filename: jsxExpressionFollowedByIdentifier.tsx
////declare var React: any;
////declare var x: string;
////const a = <div>{<div />/*1*/x/*2*/}</div>
goTo.marker('1');
verify.getSyntacticDiagnostics([{
code: 1005,
message: "'}' expected.",
range: {
fileName: test.mark... | /// <reference path="fourslash.ts" />
//@Filename: jsxExpressionFollowedByIdentifier.tsx
////declare var React: any;
////declare var x: string;
////const a = <div>{<div />[|x|]}</div>
const range = test.ranges()[0];
verify.getSyntacticDiagnostics([{
code: 1005,
message: "'}' expected.",
range,
}]);
verify.quick... | Use range instead of two markers | Use range instead of two markers
| TypeScript | apache-2.0 | alexeagle/TypeScript,kpreisser/TypeScript,RyanCavanaugh/TypeScript,SaschaNaz/TypeScript,Microsoft/TypeScript,Microsoft/TypeScript,nojvek/TypeScript,weswigham/TypeScript,kpreisser/TypeScript,kpreisser/TypeScript,nojvek/TypeScript,alexeagle/TypeScript,weswigham/TypeScript,kitsonk/TypeScript,alexeagle/TypeScript,RyanCavan... | ---
+++
@@ -3,16 +3,12 @@
//@Filename: jsxExpressionFollowedByIdentifier.tsx
////declare var React: any;
////declare var x: string;
-////const a = <div>{<div />/*1*/x/*2*/}</div>
+////const a = <div>{<div />[|x|]}</div>
-goTo.marker('1');
+const range = test.ranges()[0];
verify.getSyntacticDiagnostics([{
cod... |
1e2bdb9044994fa2b03c5e2161e66c4977c038b9 | appveyor.yml | appveyor.yml | version: '{branch}_1.0.{build}'
branches:
except:
- gh-pages
clone_folder: C:\Users\appveyor\md2html
environment:
GOPATH: C:\gopath
matrix:
- GOOS: windows
GOARCH: 386
- GOOS: windows
GOARCH: amd64
- GOOS: linux
GOARCH: 386
- GOOS: linux
GOARCH: amd64
before_build:
- cmd... | version: '{branch}_1.0.{build}'
branches:
except:
- gh-pages
skip_tags: true
clone_folder: C:\Users\appveyor\md2html
environment:
GOPATH: C:\gopath
matrix:
- GOOS: windows
GOARCH: 386
- GOOS: windows
GOARCH: amd64
- GOOS: linux
GOARCH: 386
- GOOS: linux
GOARCH: amd64
bef... | Cut & Try AppVeyor debug | Cut & Try AppVeyor debug
| YAML | mit | nocd5/md2html,nocd5/md2html | ---
+++
@@ -2,6 +2,7 @@
branches:
except:
- gh-pages
+skip_tags: true
clone_folder: C:\Users\appveyor\md2html
environment:
GOPATH: C:\gopath
@@ -35,4 +36,4 @@
auth_token:
secure: msXREOrf813FAzkJvvU5/QyYe/ZKzMQhMx9Zv3XD7NAHHAR+Zf1ueMDi6MsQmFlt
artifact: md2html_$(GOOS)_$(GOARCH).zip
-... |
af8aaa35ea90b27e5742e6290a9a9019c1051f5f | .travis.yml | .travis.yml | sudo: required
language: java
jdk:
- oraclejdk8
before_install:
- curl -sL https://github.com/jpm4j/jpm4j.installers/raw/master/dist/biz.aQute.jpm.run.jar >jpm4j.jar
- java -jar jpm4j.jar -g init
- ~/jpm/bin/jpm install com.codacy:codacy-coverage-reporter:assembly
install:
- mvn install -DskipTests=true ... | sudo: required
language: java
jdk:
- oraclejdk8
before_install:
- curl -sL https://github.com/jpm4j/jpm4j.installers/raw/master/dist/biz.aQute.jpm.run.jar >jpm4j.jar
- java -jar jpm4j.jar -u init
- ~/jpm/bin/jpm install com.codacy:codacy-coverage-reporter:assembly
install:
- mvn install -DskipTests=true ... | Rollback of the previous commit :( | Rollback of the previous commit :( | YAML | mit | andersonbco/shortener,andersonbco/shortener | ---
+++
@@ -7,7 +7,7 @@
before_install:
- curl -sL https://github.com/jpm4j/jpm4j.installers/raw/master/dist/biz.aQute.jpm.run.jar >jpm4j.jar
- - java -jar jpm4j.jar -g init
+ - java -jar jpm4j.jar -u init
- ~/jpm/bin/jpm install com.codacy:codacy-coverage-reporter:assembly
install:
|
8b7166c92ee65e55f9e8aa08f0f8a1426bfa67ee | examples/script.simple.php | examples/script.simple.php | <?php
require_once "../vendor/autoload.php";
use BitWasp\Bitcoin\Script\ScriptFactory;
use BitWasp\Bitcoin\Transaction\Transaction;
$ec = \BitWasp\Bitcoin\Bitcoin::getEcAdapter();
$script = ScriptFactory::create()->op('OP_1')->op('OP_1')->op('OP_ADD')->op('OP_2')->op('OP_EQUALVERIFY')->getScript();
echo "Formed sc... | <?php
require_once "../vendor/autoload.php";
use BitWasp\Bitcoin\Script\ScriptFactory;
use BitWasp\Bitcoin\Transaction\Transaction;
use BitWasp\Bitcoin\Script\Script;
$ec = \BitWasp\Bitcoin\Bitcoin::getEcAdapter();
$scriptSig = ScriptFactory::create()->int(1)->int(1)->getScript();
$scriptPubKey = ScriptFactory::cre... | Fix an example since run() visibility is now private | Fix an example since run() visibility is now private
| PHP | unlicense | afk11/bitcoin-php,afk11/bitcoin-php,Bit-Wasp/bitcoin-php,Bit-Wasp/bitcoin-php | ---
+++
@@ -4,15 +4,17 @@
use BitWasp\Bitcoin\Script\ScriptFactory;
use BitWasp\Bitcoin\Transaction\Transaction;
+use BitWasp\Bitcoin\Script\Script;
$ec = \BitWasp\Bitcoin\Bitcoin::getEcAdapter();
-$script = ScriptFactory::create()->op('OP_1')->op('OP_1')->op('OP_ADD')->op('OP_2')->op('OP_EQUALVERIFY')->getS... |
2012de9c3cb4406b5bfb04760e4c93a776417688 | recipes/pyxdsm/LICENSE.txt | recipes/pyxdsm/LICENSE.txt | OpenMDAO Open Source License:
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this software except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software... | Revert "Remove license file because it is included in the archive" | Revert "Remove license file because it is included in the archive"
This reverts commit b92c339724dff33b99c172d54b635677ef1a4ea4.
| Text | bsd-3-clause | jakirkham/staged-recipes,ocefpaf/staged-recipes,patricksnape/staged-recipes,johanneskoester/staged-recipes,hadim/staged-recipes,mariusvniekerk/staged-recipes,patricksnape/staged-recipes,jochym/staged-recipes,goanpeca/staged-recipes,conda-forge/staged-recipes,goanpeca/staged-recipes,scopatz/staged-recipes,ReimarBauer/st... | ---
+++
@@ -0,0 +1,13 @@
+OpenMDAO Open Source License:
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this software except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable l... | |
45b42cf32fa82a590e854ac1fe765525ddef4f41 | sample/python/swift_put_object.py | sample/python/swift_put_object.py | #!/usr/bin/env python
import pprint
import sys
from os import environ as env
from swiftclient.client import get_auth, put_object, put_container
from swiftclient.exceptions import ClientException
auth_url = env.get('OS_AUTH_URL')
account = env.get('OS_TENANT_NAME')
user = env.get('OS_USERNAME')
key = env.get('OS_PASS... | Add a put_object sample script. | Add a put_object sample script.
| Python | apache-2.0 | yoyama/swift_book | ---
+++
@@ -0,0 +1,57 @@
+#!/usr/bin/env python
+
+import pprint
+import sys
+from os import environ as env
+
+from swiftclient.client import get_auth, put_object, put_container
+from swiftclient.exceptions import ClientException
+
+auth_url = env.get('OS_AUTH_URL')
+account = env.get('OS_TENANT_NAME')
+user = env.ge... | |
4ba711a3aee3779e6d0d81d7faa191443c683c52 | corser.js | corser.js | var http = require('http');
http.createServer(function (req, res) {
res.setHeader('Access-Control-Allow-Origin', '*');
res.writeHead(200, {'Content-Type': 'application/json'});
res.end(JSON.stringify({
message: req.headers.host + ' answered a ' + req.method + ' request.'
}));
}).listen(80, '0.0.... | var http = require('http');
http.createServer(function (req, res) {
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS');
res.writeHead(200, {'Content-Type': 'application/json'});
res.end(JSON.stringify({
message: req... | Add PUT and DELETE to Access-Control-Allow-Methods. | Add PUT and DELETE to Access-Control-Allow-Methods.
| JavaScript | mit | agrueneberg/Corser | ---
+++
@@ -1,6 +1,7 @@
var http = require('http');
http.createServer(function (req, res) {
res.setHeader('Access-Control-Allow-Origin', '*');
+ res.setHeader('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS');
res.writeHead(200, {'Content-Type': 'application/json'});
res.end(JSON.... |
c2a99db9983c0dc4742ecc0580e47b790a8a330d | Sources/Models.swift | Sources/Models.swift | import Foundation
public typealias Id = UUID
public typealias Date = Foundation.Date
}
public struct ToDo {
internal let id: Id
public let title: String
public let done: Bool
public let due: Date?
public let notes: String
public let tags: [Tag]
public init(
id: Id = Id(),
... | import Foundation
public typealias Id = UUID
public typealias Date = Foundation.Date
public struct ToDo {
internal let id: Id
public let title: String
public let done: Bool
public let due: Date?
public let notes: String
public let tags: [Tag]
public init(
id: Id = Id(),
ti... | Fix extra `}` by doing `git add --patch` | Fix extra `}` by doing `git add --patch`
| Swift | mit | NicholasTD07/ToDoRedux,NicholasTD07/ToDoRedux,NicholasTD07/ToDoRedux,NicholasTD07/ToDoRedux | ---
+++
@@ -2,8 +2,6 @@
public typealias Id = UUID
public typealias Date = Foundation.Date
-
-}
public struct ToDo {
internal let id: Id
|
284a5da3fa37342c6001a131659b1244be7c1828 | tox.ini | tox.ini | [tox]
envlist = py26,py27,pep8
[testenv]
setenv = VIRTUAL_ENV={envdir}
NOSE_WITH_OPENSTACK=1
NOSE_OPENSTACK_COLOR=1
NOSE_OPENSTACK_RED=0.05
NOSE_OPENSTACK_YELLOW=0.025
NOSE_OPENSTACK_SHOW_ELAPSED=1
NOSE_OPENSTACK_STDOUT=1
LANG=en_US.UTF-8
LANGUAGE... | [tox]
envlist = py26,py27,pep8
[testenv]
setenv = VIRTUAL_ENV={envdir}
NOSE_WITH_OPENSTACK=1
NOSE_OPENSTACK_COLOR=1
NOSE_OPENSTACK_RED=0.05
NOSE_OPENSTACK_YELLOW=0.025
NOSE_OPENSTACK_SHOW_ELAPSED=1
NOSE_OPENSTACK_STDOUT=1
LANG=en_US.UTF-8
LANGUAGE... | Update tools hacking for pep8 1.2 and beyond | Update tools hacking for pep8 1.2 and beyond
* https://github.com/jcrocholl/pep8/commit/b9f72b16011aac981ce9e3a47fd0ffb1d3d2e085
broke tools/hacking.py
* Upgrade pep8 to 1.2 and disable the following new tests: E12,E711,E712,E721,E502
Change-Id: I32a8808c6c9cccfedcc4d2a26649333aca1cd713
| INI | apache-2.0 | n0ano/gantt,n0ano/gantt | ---
+++
@@ -22,9 +22,9 @@
downloadcache = ~/cache/pip
[testenv:pep8]
-deps=pep8==1.0.1
+deps=pep8==1.2
commands =
- python tools/hacking.py --ignore=N4 --repeat --show-source \
+ python tools/hacking.py --ignore=N4,E12,E711,E712,E721,E502 --repeat --show-source \
--exclude=.venv,.tox,dist,doc,*openstack/c... |
23aca2d4e5fe1c0b46502019f5b52ee588e030b7 | dev/app/table-schemas/ext-sections-table-schema.js | dev/app/table-schemas/ext-sections-table-schema.js | module.exports = {
headers: ['Codigo', 'Clase', 'Periodo', 'Catedratico'],
rows: [
{ type: 'label', props: { text: obj => obj.Code } },
{ type: 'label', props: { text: obj => obj.Class.Name } },
{ type: 'label', props: { text: obj => obj.Period.Number+" - "+obj.Period.Year } },
{ type: 'label', props: { te... | module.exports = btnClick => {
return {
headers: ['Codigo', 'Clase', 'Periodo', 'Catedratico', 'Editar'],
rows: [
{ type: 'label', props: { text: obj => obj.Code } },
{ type: 'label', props: { text: obj => obj.Class.Name } },
{ type: 'label', props: { text: obj => obj.Period.Number + " - " + obj.Peri... | Add edit for sections table | Add edit for sections table
| JavaScript | mit | Tribu-Anal/Vinculacion-Front-End,Tribu-Anal/Manejo-Horas-de-Vinculacion-UNITEC,Tribu-Anal/Manejo-Horas-de-Vinculacion-UNITEC,Tribu-Anal/Vinculacion-Front-End | ---
+++
@@ -1,9 +1,14 @@
-module.exports = {
- headers: ['Codigo', 'Clase', 'Periodo', 'Catedratico'],
- rows: [
- { type: 'label', props: { text: obj => obj.Code } },
- { type: 'label', props: { text: obj => obj.Class.Name } },
- { type: 'label', props: { text: obj => obj.Period.Number+" - "+obj.Period.Year } ... |
9430cc633deede87371109668d998482009f0aef | .travis.yml | .travis.yml | language: java
script: mvn clean package
jdk:
- oraclejdk6
- oraclejdk7
- oraclejdk8
sudo: false
| language: java
script: mvn clean package
jdk:
- oraclejdk7
- oraclejdk8
sudo: false
| Remove oraclejdk6 from Travis CI configuration | Remove oraclejdk6 from Travis CI configuration
| YAML | mit | vbauer/yandex-metrica-plugin,vbauer/yandex-metrica-plugin | ---
+++
@@ -1,7 +1,6 @@
language: java
script: mvn clean package
jdk:
- - oraclejdk6
- oraclejdk7
- oraclejdk8
sudo: false
|
fbd811dd9cee0535ef0f4215c5bbda5c536fa70c | conda.recipe/meta.yaml | conda.recipe/meta.yaml | package:
version: {{ environ.get('GIT_DESCRIBE_TAG', '') }}
name: anypytools # lower case name of package, may contain '-' but no spaces
source:
path: ../
build:
number: {{ environ.get('GIT_DESCRIBE_NUMBER', 0) }}
# Added to allow the pytest entry points in setup.py to work
# This is also th... | package:
version: {{ environ.get('GIT_DESCRIBE_TAG', '') }}
name: anypytools # lower case name of package, may contain '-' but no spaces
source:
path: ../
build:
number: {{ environ.get('GIT_DESCRIBE_NUMBER', 0) }}
# Added to allow the pytest entry points in setup.py to work
# This is also th... | Update dependency in conda recipe | Update dependency in conda recipe
| YAML | mit | AnyBody-Research-Group/AnyPyTools | ---
+++
@@ -19,14 +19,13 @@
- future
run:
- - python
- pywin32 # [win]
- - future
- - h5py
+ - future >=0.15
+ - h5py >=2.5
- setuptools
- scipy >=0.15
- - jupyter
- - ipython
+ - jupyter >=1.0
+ - ipython >=4.0
test:
requires:
|
d18923d26e9419eb41067fc935ffee671dc6b722 | examples/leaderboard/leaderboard.js | examples/leaderboard/leaderboard.js | // Set up a collection to contain player information. On the server,
// it is backed by a MongoDB collection named "players".
Players = new Meteor.Collection("players");
if (Meteor.isClient) {
Template.leaderboard.players = function () {
return Players.find({}, {sort: {score: -1, name: 1}});
};
Template.le... | // Set up a collection to contain player information. On the server,
// it is backed by a MongoDB collection named "players".
Players = new Meteor.Collection("players");
if (Meteor.isClient) {
Template.leaderboard.players = function () {
return Players.find({}, {sort: {score: -1, name: 1}});
};
Template.le... | Fix the event handler input->button | Fix the event handler input->button
| JavaScript | mit | dev-bobsong/meteor,wmkcc/meteor,jagi/meteor,jeblister/meteor,lieuwex/meteor,pjump/meteor,kencheung/meteor,Hansoft/meteor,aramk/meteor,tdamsma/meteor,kidaa/meteor,EduShareOntario/meteor,dboyliao/meteor,Puena/meteor,jeblister/meteor,ljack/meteor,esteedqueen/meteor,alphanso/meteor,udhayam/meteor,judsonbsilva/meteor,evilem... | ---
+++
@@ -18,7 +18,7 @@
};
Template.leaderboard.events({
- 'click input.inc': function () {
+ 'click button.inc': function () {
Players.update(Session.get("selected_player"), {$inc: {score: 5}});
}
});
|
2565f027fe40722d58f8ae9cfc9866ce5b943b8c | templates/page-header.php | templates/page-header.php | <div class="page-header">
<h2 class="text-center text-orange">
<?php echo i4web_title(); ?>
</h2>
<?php
if ( is_post_type_archive('i4web_portfolio') ){ //If the page displayed is the portfolio archive of the Porftolio Custom Post Type
echo '<p class="text-center">Here you will find examples of my work... | <div class="page-header">
<h2 class="text-center text-orange">
<?php echo i4web_title(); ?>
</h2>
<?php
if ( is_post_type_archive('i4web_portfolio') ){ //If the page displayed is the portfolio archive of the Porftolio Custom Post Type
echo '<p class="text-center">Here you will find examples of my work... | Update quote on the Blog page | Update quote on the Blog page
| PHP | mit | i4web/sern-programming,Serneum/sern-programming,i4web/sern-programming,Serneum/sern-programming | ---
+++
@@ -9,7 +9,7 @@
echo '<p class="text-center">Here you will find examples of my work past, present, and maybe even the future!</p>';
}
elseif (get_post_type( $post ) == 'post'){
- echo '<p class="text-center">Blog Description Goes Here!</p>';
+ echo '<p class="text-center">This is the dimensio... |
5ef6db5b4d3e9ab950fd6d2a2b1194c5f0e8a5c2 | src/effects/SkColorMatrixFilter.cpp | src/effects/SkColorMatrixFilter.cpp | /*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkColorMatrixFilter.h"
static SkScalar byte_to_scale(U8CPU byte) {
if (0xFF == byte) {
// want to get this exact
return 1;
} else {
... | /*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkColorMatrixFilter.h"
static SkScalar byte_to_scale(U8CPU byte) {
if (0xFF == byte) {
// want to get this exact
return 1;
} else {
... | Simplify LightingFilter in add-free case am: 0698300cc5 am: a184d5e49d am: 7e02270397 | Simplify LightingFilter in add-free case am: 0698300cc5 am: a184d5e49d
am: 7e02270397
* commit '7e0227039795fdc9891b14697f54b888d7f69fb6':
Simplify LightingFilter in add-free case
Change-Id: I18f77ece7ae91da4965af29c4a2bf779d8a180c4
| C++ | bsd-3-clause | Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_sk... | ---
+++
@@ -17,6 +17,10 @@
}
SkColorFilter* SkColorMatrixFilter::CreateLightingFilter(SkColor mul, SkColor add) {
+ if (0 == add) {
+ return SkColorFilter::CreateModeFilter(mul | SK_ColorBLACK,
+ SkXfermode::Mode::kModulate_Mode);
+ }
SkColorMatrix m... |
1ee0b19f959517c5c66fee433f5e119ac885fe98 | requirements.txt | requirements.txt | requests==2.21.0
patool==1.12
# configs
pyyaml>=4.2b1
# Logs
daiquiri==1.5.0
# Tests
pytest==4.4.0
pytest-cov==2.6.1
codecov==2.0.15
python-coveralls==2.9.1
coveralls==1.6.0
mock==2.0.0
# Find media name
guessit==3.0.3
# Emails
sendgrid==5.6.0
| requests==2.21.0
patool==1.12
# configs
pyyaml>=4.2b1
# Logs
daiquiri==1.5.0
# Tests
pytest==4.4.0
pytest-cov==2.6.1
codecov==2.0.15
python-coveralls==2.9.1
coveralls==1.7.0
mock==2.0.0
# Find media name
guessit==3.0.3
# Emails
sendgrid==5.6.0
| Update coveralls from 1.6.0 to 1.7.0 | Update coveralls from 1.6.0 to 1.7.0 | Text | mit | shlomiLan/tvsort_sl | ---
+++
@@ -12,7 +12,7 @@
pytest-cov==2.6.1
codecov==2.0.15
python-coveralls==2.9.1
-coveralls==1.6.0
+coveralls==1.7.0
mock==2.0.0
# Find media name
|
d8469473f1e5be90c22ff710b4c72eeeffbf4f75 | bower.json | bower.json | {
"name": "pinny",
"version": "1.0.0",
"homepage": "https://github.com/mobify/pinny",
"authors": [
"Mobify <jobs@mobify.com>"
],
"description": "A mobile first content fly-in UI plugin",
"main": "dist/pinny.min.js",
"keywords": [
"pinny",
"fly-in",
"modal",
"mobile",
"mobify"
]... | {
"name": "pinny",
"version": "1.0.0",
"homepage": "https://github.com/mobify/pinny",
"authors": [
"Mobify <jobs@mobify.com>"
],
"description": "A mobile first content fly-in UI plugin",
"main": "dist/pinny.min.js",
"keywords": [
"pinny",
"fly-in",
"modal",
"mobile",
"mobify"
]... | Update to use latest lockup version | Update to use latest lockup version
| JSON | mit | mobify/pinny,mobify/pinny | ---
+++
@@ -25,6 +25,6 @@
"requirejs": "~2.1.14",
"bouncefix.js": "~0.3.0",
"shade": "~1.0.5",
- "lockup": "git://github.com/mobify/lockup.git#jquery-wrapinner-fix"
+ "lockup": "~0.0.4"
}
}
|
57c296421a03d7fb3e6be38d7fa9b231031df847 | metadata/net.opendasharchive.openarchive.release.txt | metadata/net.opendasharchive.openarchive.release.txt | Categories:Multimedia
License:GPL-3.0
Web Site:https://open-archive.net
Source Code:https://github.com/OpenArchive/openarchive
Issue Tracker:https://github.com/OpenArchive/openarchive/issues
Auto Name:OpenArchive
Summary:Organize and share media
Description:
Add metadata and Creative Commons licensing to your audiovis... | Categories:Multimedia
License:GPL-3.0
Web Site:https://open-archive.net
Source Code:https://github.com/OpenArchive/openarchive
Issue Tracker:https://github.com/OpenArchive/openarchive/issues
Auto Name:OpenArchive
Summary:Organize and share media
Description:
Add metadata and Creative Commons licensing to your audiovis... | Update OpenArchive to 0.0.17-alpha-1 (17) | Update OpenArchive to 0.0.17-alpha-1 (17)
| Text | agpl-3.0 | f-droid/fdroid-data,f-droid/fdroiddata,f-droid/fdroiddata | ---
+++
@@ -23,6 +23,12 @@
submodules=yes
gradle=yes
+Build:0.0.17-alpha-1,17
+ commit=0.0.17-alpha-1
+ subdir=app
+ submodules=yes
+ gradle=yes
+
Auto Update Mode:None
Update Check Mode:Tags
Current Version:0.0.17-alpha-1
|
28bb711bfbfc7b134b3288a92c05361746721b8e | t/204-reason-notaccept.t | t/204-reason-notaccept.t | use strict;
use Test::More;
use lib qw(./lib ./blib/lib);
use Sisimai::Reason::NotAccept;
my $PackageName = 'Sisimai::Reason::NotAccept';
my $MethodNames = {
'class' => [ 'text', 'match', 'true' ],
'object' => [],
};
use_ok $PackageName;
can_ok $PackageName, @{ $MethodNames->{'class'} };
MAKE_TEST: {
is ... | use strict;
use Test::More;
use lib qw(./lib ./blib/lib);
use Sisimai::Reason::NotAccept;
my $PackageName = 'Sisimai::Reason::NotAccept';
my $MethodNames = {
'class' => [ 'text', 'match', 'true' ],
'object' => [],
};
use_ok $PackageName;
can_ok $PackageName, @{ $MethodNames->{'class'} };
MAKE_TEST: {
is ... | Add test code for Sisimai::Reason::NotAccept->match | Add test code for Sisimai::Reason::NotAccept->match
| Perl | bsd-2-clause | sisimai/p5-Sisimai,jcbf/Sisimai,azumakuniyuki/p5-Sisimai,jcbf/Sisimai,azumakuniyuki/p5-Sisimai | ---
+++
@@ -14,6 +14,7 @@
MAKE_TEST: {
is $PackageName->text, 'notaccept', '->text = notaccept';
+ ok $PackageName->match('SMTP protocol returned a permanent error');
is $PackageName->true, undef, '->true = undef';
}
|
cd7cbc6e777bab0490c6fe103a6a8e23f12c8847 | spec/app_spec.rb | spec/app_spec.rb | require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
describe Example::App do
before(:each) do
@config = {
name: "Baz",
type: :qux,
serial: "def456"
}
@app = Example::App.new
end
it "should allow access to its config" do
@app.should respond_to(:config)
@ap... | require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
describe Example::App do
before(:each) do
@config = {
name: "Baz",
type: :qux,
serial: "def456"
}
@app = Example::App.new
end
it "should allow access to its config" do
@app.should respond_to(:config)
@ap... | Fix private function call in spec | Fix private function call in spec
| Ruby | mit | jlindsey/log_test_example | ---
+++
@@ -36,7 +36,7 @@
Example.logger.level = Logger::ERROR
@app.config[:type] = :widget
- @app.perform_action
+ @app.run
log.should include("Widgets can't perform this action!")
end
|
780be281d8bc76b60b86118cd53b0d2e6820d1f7 | dtdinst/src/com/thaiopensource/xml/dtd/app/Driver.java | dtdinst/src/com/thaiopensource/xml/dtd/app/Driver.java | package com.thaiopensource.xml.dtd.app;
import java.io.IOException;
import java.io.BufferedWriter;
import java.io.OutputStreamWriter;
import com.thaiopensource.xml.out.CharRepertoire;
import com.thaiopensource.xml.out.XmlWriter;
import com.thaiopensource.xml.util.EncodingMap;
import com.thaiopensource.xml.dtd.om.DtdP... | package com.thaiopensource.xml.dtd.app;
import java.io.IOException;
import java.io.BufferedWriter;
import java.io.OutputStreamWriter;
import com.thaiopensource.xml.out.CharRepertoire;
import com.thaiopensource.xml.out.XmlWriter;
import com.thaiopensource.xml.util.EncodingMap;
import com.thaiopensource.xml.dtd.om.DtdP... | Call RelaxNgWriter as a temporary hack. | Call RelaxNgWriter as a temporary hack.
| Java | bsd-3-clause | webhost/jing-trang,webhost/jing-trang,webhost/jing-trang | ---
+++
@@ -15,6 +15,7 @@
public static void main (String args[]) throws IOException {
DtdParser dtdParser = new DtdParserImpl();
Dtd dtd = dtdParser.parse(args[0], new FileEntityManager());
+ new RelaxNgWriter(null).writeDtd(dtd);
String enc = EncodingMap.getJavaName(dtd.getEncoding());
Buf... |
dcbe86e987caaa7f1cf634cc9242bc7e69acfd68 | requirements-alpine.txt | requirements-alpine.txt | # These packages all have pre-compiled manylinux builds for Debian now, so we
# only need to build them on Alpine
cffi==1.11.3
cryptography==2.1.4
lxml==4.1.1
Pillow==5.0.0
psycopg2==2.7.3.2
numpy==1.14.0
| # These packages all have pre-compiled manylinux builds for Debian now, so we
# only need to build them on Alpine
cffi==1.11.4
cryptography==2.1.4
lxml==4.1.1
Pillow==5.0.0
psycopg2==2.7.3.2
numpy==1.14.0
| Update cffi from 1.11.3 to 1.11.4 | Update cffi from 1.11.3 to 1.11.4 | Text | bsd-3-clause | praekeltfoundation/debian-wheel-mirror | ---
+++
@@ -1,6 +1,6 @@
# These packages all have pre-compiled manylinux builds for Debian now, so we
# only need to build them on Alpine
-cffi==1.11.3
+cffi==1.11.4
cryptography==2.1.4
lxml==4.1.1
Pillow==5.0.0
|
81b0d783db5e2d6163164cc48750e53b7c05c185 | src/main/java/com/vaguehope/onosendai/provider/TaskUtils.java | src/main/java/com/vaguehope/onosendai/provider/TaskUtils.java | package com.vaguehope.onosendai.provider;
import twitter4j.TwitterException;
public final class TaskUtils {
private TaskUtils () {
throw new AssertionError();
}
public static String getEmsg(final Exception e) {
if (e instanceof TwitterException) {
final TwitterException te = (TwitterException) e;
retur... | package com.vaguehope.onosendai.provider;
import twitter4j.TwitterException;
public final class TaskUtils {
private TaskUtils () {
throw new AssertionError();
}
public static String getEmsg(final Exception e) {
if (e instanceof TwitterException) {
final TwitterException te = (TwitterException) e;
if (t... | Fix displaying TwitterException when twitter unreachable. | Fix displaying TwitterException when twitter unreachable. | Java | apache-2.0 | haku/Onosendai,haku/Onosendai | ---
+++
@@ -11,7 +11,9 @@
public static String getEmsg(final Exception e) {
if (e instanceof TwitterException) {
final TwitterException te = (TwitterException) e;
- return String.format("%s %s", te.getErrorCode(), te.getErrorMessage());
+ if (te.getErrorCode() >= 0 && te.getErrorMessage() != null) {
+ ... |
714d7c75a55ad99618206df4ed8e17d9c86ed2a1 | app/decorators/author_decorator.rb | app/decorators/author_decorator.rb | class AuthorDecorator < UserDecorator
decorates :user
def email
if source.email && !source.private_email
mail_to source.email
end
end
def toggle_email_privacy
alternate_email_status = source.private_email == true ? "Public" : "Private"
link_to "Make Email #{alternate_email_status}", auth... | class AuthorDecorator < UserDecorator
decorates :user
def email
if object.email && !object.private_email
mail_to source.email
end
end
def toggle_email_privacy
alternate_email_status = object.private_email == true ? "Public" : "Private"
link_to "Make Email #{alternate_email_status}", auth... | Replace source with object in Draper | Replace source with object in Draper
| Ruby | mit | splicers/orientation,splicers/orientation,orientation/orientation,codeschool/orientation,cmckni3/orientation,codeschool/orientation,cmckni3/orientation,orientation/orientation,splicers/orientation,cmckni3/orientation,orientation/orientation,codeschool/orientation,orientation/orientation | ---
+++
@@ -2,13 +2,13 @@
decorates :user
def email
- if source.email && !source.private_email
+ if object.email && !object.private_email
mail_to source.email
end
end
def toggle_email_privacy
- alternate_email_status = source.private_email == true ? "Public" : "Private"
- link_... |
20764887bc338c2cd366ad11fb41d8932c2326a2 | bot.py | bot.py | import json
import discord
from handlers.message_handler import MessageHandler
with open("config.json", "r") as f:
config = json.load(f)
client = discord.Client()
message_handler = MessageHandler(config, client)
@client.event
async def on_ready():
print("Logged in as", client.user.name)
@client.event
async def ... | #!/usr/bin/env python
import argparse
import json
import discord
from handlers.message_handler import MessageHandler
def main():
p = argparse.ArgumentParser()
p.add_argument("--config", required=True, help="Path to configuration file")
args = p.parse_args()
with open(args.config, "r") as f:
config = json.load... | Add --config argument as a path to the config file | Add --config argument as a path to the config file
| Python | mit | azeier/hearthbot | ---
+++
@@ -1,22 +1,32 @@
+#!/usr/bin/env python
+
+import argparse
import json
import discord
from handlers.message_handler import MessageHandler
-with open("config.json", "r") as f:
- config = json.load(f)
-client = discord.Client()
-message_handler = MessageHandler(config, client)
+def main():
+ p = argpars... |
b350dd102ff82b8119d373d64f01b546c183ee70 | Exception/ModelManagerNotFoundException.php | Exception/ModelManagerNotFoundException.php | <?php
namespace HCLabs\ModelManagerBundle\Exception;
class ModelManagerNotFoundException extends \Exception
{
public function __construct($class = null)
{
if (is_object($class)) {
$class = get_class($class);
}
$message = sprintf('Model Manager for class \'%s\' not found.',... | Add a manager not found exception | [Exception] Add a manager not found exception
| PHP | mit | jrdnhannah/ModelManager | ---
+++
@@ -0,0 +1,17 @@
+<?php
+
+namespace HCLabs\ModelManagerBundle\Exception;
+
+class ModelManagerNotFoundException extends \Exception
+{
+ public function __construct($class = null)
+ {
+ if (is_object($class)) {
+ $class = get_class($class);
+ }
+
+ $message = sprintf('Mod... | |
4f3923a8aa34b6e0ab8e6e7287bb7c5caa7cb2a0 | README.md | README.md | easyrel
=====
easyrel searches newznab providers on the command line.
* configurable for multiple newznab hosts.
* 'send to SABnzbd+' functionality.
* batch from xrel fav lists.
## dependencies:
* Python 2
* [feedparser][feedparser]
## usage:
* getrel.py -q "Search.query" (search for one specific release)
or
* getf... | easyrel
=====
easyrel searches newznab providers on the command line.
* silent mode automatically picks first match
* send directly to SABnzbd without downloading the nzb
* batch download new relaseses from your xREL favorite lists
* block specific lists from searching, thus downloading
* can now mark grabbed release... | Update readme to reflect changes | Update readme to reflect changes
| Markdown | mit | Threak/easyrel | ---
+++
@@ -3,9 +3,11 @@
easyrel searches newznab providers on the command line.
-* configurable for multiple newznab hosts.
-* 'send to SABnzbd+' functionality.
-* batch from xrel fav lists.
+* silent mode automatically picks first match
+* send directly to SABnzbd without downloading the nzb
+* batch download ... |
c0219cc34b633ae2d436a1947b0dfe06740054e8 | package.json | package.json | {
"scripts": {
"build": "grunt build",
"pretest-e2e": "webdriver-manager update --versions.standalone=3.2.0",
"test-e2e": "protractor protractor.conf.js",
"test-jsu": "karma start karma.conf.js",
"watch": "grunt watch"
},
"dependencies": {
"angular": "1.6.x",
"bootstrap-sass": "3.3.x"
... | {
"scripts": {
"build": "grunt build",
"pretest-e2e": "webdriver-manager update",
"test-e2e": "protractor protractor.conf.js",
"test-jsu": "karma start karma.conf.js",
"watch": "grunt watch"
},
"dependencies": {
"angular": "1.6.x",
"bootstrap-sass": "3.3.x"
},
"devDependencies": {
... | Use up to date web driver version due to bug fix | Use up to date web driver version due to bug fix
- Resolved-ish: https://github.com/angular/protractor/issues/4141
| JSON | mit | Jgreub/treeline,Jgreub/treeline,Jgreub/treeline,Jgreub/treeline | ---
+++
@@ -1,7 +1,7 @@
{
"scripts": {
"build": "grunt build",
- "pretest-e2e": "webdriver-manager update --versions.standalone=3.2.0",
+ "pretest-e2e": "webdriver-manager update",
"test-e2e": "protractor protractor.conf.js",
"test-jsu": "karma start karma.conf.js",
"watch": "grunt watch... |
70fcc0027b00722d6d64238ad978791efaedbc16 | ohmyzsh/plugins/clock/clock.plugin.zsh | ohmyzsh/plugins/clock/clock.plugin.zsh | function clock() {
watch -t -n1 'echo "$(date +%a\ %b\ %e\ %Y%n%X\ %Z)\n$(date -u +%X\ %Z)" | figlet -k -c -w$(tput cols)'
}
| function clock() {
watch -t -n1 \
'echo "$(date +%a\ %b\ %e\ %Y%n%Z\ %X)\n$(date -u +%Z\ %X)\nLondon $(TZ=Europe/London date +%X)\nBerlin $(TZ=Europe/Berlin date +%X)\nJakarta $(TZ=Asia/Jakarta date +%X)" \
| figlet -k -c -w$(tput cols)'
}
| Add more locations to clock | Add more locations to clock
| Shell | mit | sax/dotfiles,sax/dotfiles | ---
+++
@@ -1,4 +1,6 @@
function clock() {
- watch -t -n1 'echo "$(date +%a\ %b\ %e\ %Y%n%X\ %Z)\n$(date -u +%X\ %Z)" | figlet -k -c -w$(tput cols)'
+ watch -t -n1 \
+ 'echo "$(date +%a\ %b\ %e\ %Y%n%Z\ %X)\n$(date -u +%Z\ %X)\nLondon $(TZ=Europe/London date +%X)\nBerlin $(TZ=Europe/Berlin date +%X)\nJakarta $(... |
0ba718d681d5252a362fd93d479b5e51cd4453f2 | package.json | package.json | {
"name": "atom-package-deps",
"version": "2.1.3",
"description": "Automatically install package dependencies",
"main": "lib/main",
"scripts": {
"test": "apm test"
},
"repository": {
"type": "git",
"url": "git+https://github.com/steelbrain/package-deps.git"
},
"keywords": [
"atom"
],... | {
"name": "atom-package-deps",
"version": "2.1.3",
"description": "Automatically install package dependencies",
"main": "lib/main",
"scripts": {
"test": "apm test"
},
"repository": {
"type": "git",
"url": "git+https://github.com/steelbrain/package-deps.git"
},
"keywords": [
"atom"
],... | Add event-kit as a devDependency | :new: Add event-kit as a devDependency
| JSON | mit | openlawlibrary/package-deps,steelbrain/package-deps,steelbrain/package-deps | ---
+++
@@ -18,5 +18,8 @@
"bugs": {
"url": "https://github.com/AtomLinter/package-deps/issues"
},
- "homepage": "https://github.com/AtomLinter/package-deps#readme"
+ "homepage": "https://github.com/AtomLinter/package-deps#readme",
+ "devDependencies": {
+ "event-kit": "^1.3.0"
+ }
}
|
8b9c56f917399fd11e05f0561c095c275035c095 | config.h | config.h | #ifndef CJET_CONFIG_H
#define CJET_CONFIG_H
#define SERVER_PORT 11122
#define LISTEN_BACKLOG 40
/*
* It is somehow beneficial if this size is 32 bit aligned.
*/
#define MAX_MESSAGE_SIZE 512
#define WRITE_BUFFER_CHUNK 512
#define MAX_WRITE_BUFFER_SIZE 10 * WRITE_BUFFER_CHUNK
/* Linux specific configs */
#define MAX_... | #ifndef CJET_CONFIG_H
#define CJET_CONFIG_H
#define SERVER_PORT 11122
#define LISTEN_BACKLOG 40
/*
* It is somehow beneficial if this size is 32 bit aligned.
*/
#define MAX_MESSAGE_SIZE 512
#define WRITE_BUFFER_CHUNK 512
#define MAX_WRITE_BUFFER_SIZE (10 * (WRITE_BUFFER_CHUNK))
/* Linux specific configs */
#define ... | Use some paranthesis around macro parameters. | Use some paranthesis around macro parameters.
| C | mit | mloy/cjet,gatzka/cjet,gatzka/cjet,gatzka/cjet,gatzka/cjet,mloy/cjet,mloy/cjet,mloy/cjet,mloy/cjet,gatzka/cjet | ---
+++
@@ -8,7 +8,7 @@
*/
#define MAX_MESSAGE_SIZE 512
#define WRITE_BUFFER_CHUNK 512
-#define MAX_WRITE_BUFFER_SIZE 10 * WRITE_BUFFER_CHUNK
+#define MAX_WRITE_BUFFER_SIZE (10 * (WRITE_BUFFER_CHUNK))
/* Linux specific configs */
#define MAX_EPOLL_EVENTS 100
|
a9b4bbf76b0e9419843075bb73453d55fe988172 | main.go | main.go | package main
import (
"fmt"
"os"
"github.com/ksonnet/kubecfg/cmd"
)
// Version is overridden using `-X main.version` during release builds
var version = "(dev build)"
func main() {
cmd.Version = version
if err := cmd.RootCmd.Execute(); err != nil {
fmt.Println("Error:", err)
os.Exit(1)
}
}
| package main
import (
"fmt"
"os"
"github.com/ksonnet/kubecfg/cmd"
)
// Version is overridden using `-X main.version` during release builds
var version = "(dev build)"
func main() {
cmd.Version = version
if err := cmd.RootCmd.Execute(); err != nil {
fmt.Fprintln(os.Stderr, "Error:", err)
os.Exit(1)
}
}
| Write error message to stderr | Write error message to stderr
| Go | apache-2.0 | anguslees/kubecfg-1,ksonnet/kubecfg | ---
+++
@@ -14,7 +14,7 @@
cmd.Version = version
if err := cmd.RootCmd.Execute(); err != nil {
- fmt.Println("Error:", err)
+ fmt.Fprintln(os.Stderr, "Error:", err)
os.Exit(1)
}
}
|
806a19cad3c73023b623ddfdef1467e06fdfd612 | lib/react_components/hello_world.cjsx | lib/react_components/hello_world.cjsx | Link = require('react-router').Link
module.exports = React.createClass
displayName: 'HelloWorld'
render: ->
<div>
<h1>Hello world!</h1>
<p>You're looking at the <a href="https://github.com/KyleAMathews/coffee-react-quickstart">Coffeescript React Quickstart</a> project by <a href="https://twitter.co... | Link = require('react-router').Link
module.exports = React.createClass
displayName: 'HelloWorld'
render: ->
<div>
<h1>Hello world!</h1>
<p>You're looking at the <a href="https://github.com/KyleAMathews/coffee-react-quickstart">Coffeescript React Quickstart</a> project by <a href="https://twitter.co... | Add list of 'batteries included' for demo page | Add list of 'batteries included' for demo page
| CoffeeScript | mit | VinSpee/webpacker,KyleAMathews/coffee-react-quickstart,duncanchen/coffee-react-quickstart,w01fgang/coffee-react-quickstart,mariopeixoto/todo-flux,methyl/react-typeahead-example,locomote/tycoon,ZECTBynmo/coffee-react-quickstart,josesanch/coffee-react-quickstart,ZECTBynmo/coffee-react-quickstart,KyleAMathews/coffee-react... | ---
+++
@@ -8,9 +8,11 @@
<p>You're looking at the <a href="https://github.com/KyleAMathews/coffee-react-quickstart">Coffeescript React Quickstart</a> project by <a href="https://twitter.com/kylemathews">Kyle Mathews</a>.</p>
<p>It has a number of nice goodies included like:</p>
<ul>
- <li>... |
0ca7113ca22a8456d547d0e40cdd944a3d7d3aee | lib/main.coffee | lib/main.coffee | SpellCheckView = null
module.exports =
configDefaults:
grammars: [
'source.gfm'
'text.git-commit'
'text.plain'
]
activate: ->
@editorSubscription = atom.workspaceView.eachEditorView(addViewToEditor)
deactivate: ->
@editorSubscription?.off()
addViewToEditor = (editorView) ->
... | SpellCheckView = null
module.exports =
configDefaults:
grammars: [
'source.gfm'
'text.git-commit'
'text.plain'
'text.plain.null-grammar'
]
activate: ->
@editorSubscription = atom.workspaceView.eachEditorView(addViewToEditor)
deactivate: ->
@editorSubscription?.off()
add... | Add null grammar to defaults | Add null grammar to defaults
| CoffeeScript | mit | atom/spell-check | ---
+++
@@ -6,6 +6,7 @@
'source.gfm'
'text.git-commit'
'text.plain'
+ 'text.plain.null-grammar'
]
activate: ->
|
1bc27bbd8a5d4d53648d3313f8a0ec6d8faccc55 | Casks/okapi-apps.rb | Casks/okapi-apps.rb | cask 'okapi-apps' do
version '0.32'
sha256 '5d63f1ef997b05b4faa896a10a2d35ae4998648fada60230e65757a240c62c5c'
# bintray.com/okapi was verified as official when first introduced to the cask
url "http://dl.bintray.com/okapi/Distribution/okapi-apps_cocoa-macosx-x86_64_#{version}.dmg"
name 'Okapi-Apps'
homepag... | Add Cask for Okapi-Apps v0.32 | Add Cask for Okapi-Apps v0.32
| Ruby | bsd-2-clause | jbeagley52/homebrew-cask,jbeagley52/homebrew-cask | ---
+++
@@ -0,0 +1,15 @@
+cask 'okapi-apps' do
+ version '0.32'
+ sha256 '5d63f1ef997b05b4faa896a10a2d35ae4998648fada60230e65757a240c62c5c'
+
+ # bintray.com/okapi was verified as official when first introduced to the cask
+ url "http://dl.bintray.com/okapi/Distribution/okapi-apps_cocoa-macosx-x86_64_#{version}.d... | |
c6eb2c136ed61fc0ac5e38a1c2e16872a7f99822 | index.js | index.js | const onepass = require("onepass")({
bundleId: "com.sudolikeaboss.sudolikeaboss"
});
exports.decorateTerm = (Term, { React }) => {
return class extends React.Component {
_onTerminal (term) {
if (this.props && this.props.onTerminal) this.props.onTerminal(term);
term.uninstallKeyboard();
ter... | const onepass = require("onepass")({
bundleId: "com.sudolikeaboss.sudolikeaboss"
});
exports.decorateTerm = (Term, { React }) => {
return class extends React.Component {
_onTerminal (term) {
if (this.props && this.props.onTerminal) this.props.onTerminal(term);
term.uninstallKeyboard();
ter... | Extend existing keydown handler, instead of overriding it | Extend existing keydown handler, instead of overriding it
| JavaScript | mit | sibartlett/hyperterm-1password | ---
+++
@@ -15,6 +15,8 @@
return handler;
}
+ const fn = handler[1];
+
return [
"keydown",
function(e) {
@@ -23,7 +25,7 @@
.then(pass => this.terminal.io.sendString(pass))
.catch(() => {});
}
- ... |
e29c56ae73e492c3ccc97bb63e7824f226646ea5 | docs/English/welcome/kettle_version_check.html | docs/English/welcome/kettle_version_check.html | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Kettle Version Check</title>
<link href="$css$" rel="stylesheet" type="text/css" />
</head>
<body class="body_doc">
<div class="log... | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Kettle Version Check</title>
<link href="$css$" rel="stylesheet" type="text/css" />
</head>
<body class="body_doc">
<div class="log... | Fix for PDI-504 : Version Checker Implementation | Fix for PDI-504 : Version Checker Implementation
git-svn-id: 51b39fcfd0d3a6ea7caa15377cad4af13b9d2664@5943 5fb7f6ec-07c1-534a-b4ca-9155e429e800
| HTML | lgpl-2.1 | juanmjacobs/kettle,cwarden/kettle,juanmjacobs/kettle,juanmjacobs/kettle,cwarden/kettle,cwarden/kettle | ---
+++
@@ -6,12 +6,19 @@
</head>
<body class="body_doc">
-<div class="logo"><a href="http://www.pentaho.org" target="_blank"><img src="$pentaho_logo$" alt="Pentaho - Open Source Business Intelligence" width="220" height="65" border="0"/></a></div>
+<div class="logo"><a href="http://www.pentaho.org" target="_... |
4d9ca7ae759a81e31065c3f770fc12f4ea1144a7 | microcontainers/README.md | microcontainers/README.md | # microcontainers
One of the reasons that Docker has become so popular is because of

https://martinfowler.com/articles/microservices.html
http://microservices.io/patterns/index.html
however if, for example, you go ahead and naively pull the official Node image from dockerhub
````... | # microcontainers
One of the reasons that Docker has become so popular is because of

https://martinfowler.com/articles/microservices.html
http://microservices.io/patterns/index.html
however if, for example, you go ahead and naively pull the official Node image from dockerhub
````... | Add some info on Alpine base images | Add some info on Alpine base images
| Markdown | apache-2.0 | fadams/docker-playpen,fadams/docker-playpen | ---
+++
@@ -15,9 +15,9 @@
````
docker images
````
-You might be surprised to note that the image is **663MB**
+You might be surprised to note that the image is **663MB**.
-and your microservice just might be not quite as "micro" as you were expecting!
+and your microservice *just might* not be quite as "micro" ... |
de6530467b96ce2884df19a1e8e8c789ab31be51 | init.fish | init.fish | # Initialize the current fish session and connect to the tmux session.
function init --on-event init_tmux-zen
# If we're running in a superuser shell, do nothing.
if test $USER = root
return 0
end
# Connect to the TMUX session if it exists, or create it if it doesn't.
if not set -q TMUX
set -l tmux_b... | # Initialize the current fish session and connect to the tmux session.
function init --on-event init_tmux-zen
# If we're not running in an interactive terminal, do nothing.
if begin; not isatty; or not status --is-interactive; end
return 0
end
# If we're running in a superuser shell, do nothing.
if test ... | Fix unwanted exec when fish is used to externally run shell commands | Fix unwanted exec when fish is used to externally run shell commands
| fish | mit | coderstephen/tmux-zen | ---
+++
@@ -1,5 +1,10 @@
# Initialize the current fish session and connect to the tmux session.
function init --on-event init_tmux-zen
+ # If we're not running in an interactive terminal, do nothing.
+ if begin; not isatty; or not status --is-interactive; end
+ return 0
+ end
+
# If we're running in a supe... |
6485cca6ec0871289740a942fc354aedc41e6414 | vagrant/README.md | vagrant/README.md | # Using the vagrant box
* Install [VirtualBox](https://www.virtualbox.org/wiki/Downloads) including download the "Oracle VM VirtualBox Extension Pack"
* Install [Vagrant](https://www.vagrantup.com/downloads.html)
In a terminal (Windows users can use powershell)
```
vagrant init --minimal lennyt/magma --box-version 0.0... | # Using the vagrant box
* Install [VirtualBox](https://www.virtualbox.org/wiki/Downloads) including download the "Oracle VM VirtualBox Extension Pack"
* Install [Vagrant](https://www.vagrantup.com/downloads.html)
In a terminal (Windows users can use powershell)
```
vagrant init --minimal lennyt/magma --box-version 0.0... | Add some notes on building the box | Add some notes on building the box
| Markdown | mit | phanrahan/magmathon,phanrahan/magmathon | ---
+++
@@ -10,12 +10,13 @@
```
# Building the vagrant box
-
+This should only be done when changing the Vagrantfile or if you wish to provision a custom vagrant box from scratch. Most users should use the pre-built box using the instructions above.
```
vagrant up
vagrant package
```
-## Resources
+### Reso... |
bb60b6598e36d2864024dd57cd960298654b0edd | solution/zwitscher-service/src/main/resources/application.properties | solution/zwitscher-service/src/main/resources/application.properties | # set on the command line as environment variables
spring.social.twitter.appId=${TWITTER_APP_ID}
spring.social.twitter.appSecret=${TWITTER_APP_SECRET}
# hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds:30000 | # Netflix OSS Hystrix Cicuit Breaker configuration
# hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds:30000
# Spring Social Twitter configuration
# set on the command line as environment variables
spring.social.twitter.appId=${TWITTER_APP_ID}
spring.social.twitter.appSecret=${TWITTER_APP_SECRET... | Adjust timeout settings for Hystrix. | Adjust timeout settings for Hystrix.
| INI | mit | qaware/hitchhikers-guide-cloudnative,qaware/hitchhikers-guide-cloudnative,qaware/hitchhikers-guide-cloudnative,qaware/hitchhikers-guide-cloudnative | ---
+++
@@ -1,4 +1,7 @@
+# Netflix OSS Hystrix Cicuit Breaker configuration
+# hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds:30000
+
+# Spring Social Twitter configuration
# set on the command line as environment variables
spring.social.twitter.appId=${TWITTER_APP_ID}
-spring.social.twitt... |
4d19133b83ee8f93e2580b15f8ec5f42f02a2901 | matrix/vars/os-configuration.yml | matrix/vars/os-configuration.yml | ---
os_configuration:
# Enabling strict policy will lead to denied access over SSH for not allowed hosts.
strict_ssh_policy: yes
sshd:
UsePAM: "yes"
PermitRootLogin: "prohibit-password"
AuthorizedKeysFile: "%h/.ssh/authorized_keys"
PubkeyAuthentication: "yes"
PasswordAuthentication: "no"
C... | ---
os_configuration:
# Enabling strict policy will lead to denied access over SSH for not allowed hosts.
strict_ssh_policy: no
sshd:
UsePAM: "yes"
PermitRootLogin: "prohibit-password"
AuthorizedKeysFile: "%h/.ssh/authorized_keys"
PubkeyAuthentication: "yes"
PasswordAuthentication: "no"
Ch... | Disable strict SSH policy by default | [CIKit][Matrox] Disable strict SSH policy by default
| YAML | apache-2.0 | BR0kEN-/cikit,BR0kEN-/cikit,BR0kEN-/cikit,BR0kEN-/cikit,BR0kEN-/cikit | ---
+++
@@ -1,7 +1,7 @@
---
os_configuration:
# Enabling strict policy will lead to denied access over SSH for not allowed hosts.
- strict_ssh_policy: yes
+ strict_ssh_policy: no
sshd:
UsePAM: "yes"
PermitRootLogin: "prohibit-password"
|
1da5443b7bb828650e53affe7e99c45f98f60c8f | minimal.nix | minimal.nix | { pkgs, ... }:
{
imports = [
./home-manager.nix
];
home.packages = with pkgs; [
nixpkgs-fmt
# standard unix tools
coreutils
diffutils
ed
findutils
gawk
indent
gnused
gnutar
which
gnutls
gnugrep
gzip
gnupatch
less
file
perl
rsync
... | { pkgs, ... }:
{
imports = [
./home-manager.nix
];
home.packages = with pkgs; [
nixpkgs-fmt
# standard unix tools
coreutils
diffutils
ed
findutils
gawk
indent
gnused
gnutar
which
gnutls
gnugrep
gzip
gnupatch
less
file
perl
rsync
... | Add rp & rsp aliases | git: Add rp & rsp aliases
| Nix | mit | okpedersen/dotfiles | ---
+++
@@ -51,6 +51,8 @@
lp = "log -p";
lg = "log --oneline --graph";
lga = "log --oneline --graph --all";
+ rp = "restore -p";
+ rsp = "restore --staged -p";
};
extraConfig = {
pull.ff = "only";
|
736804a1326e0e2316c6b103824c61d88d137655 | graphs/celebrity.go | graphs/celebrity.go | // Copyright (c) 2015, Peter Mrekaj. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE.txt file.
package graphs
// FindCelebrity returns an index into 2D slice f that represents a celebrity
// on the party who doesn't know no one. -1 is returned if ... | // Copyright (c) 2015, Peter Mrekaj. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE.txt file.
package graphs
// FindCelebrity returns an index into 2D slice f that represents a celebrity
// on the party who doesn't know no one. -1 is returned if ... | Change local variables names in graphs.FindCelebrity function | Change local variables names in graphs.FindCelebrity function
This change makes code more readable.
| Go | mit | mrekucci/epi,mrekucci/epi | ---
+++
@@ -9,18 +9,18 @@
// doesn't exists in f or if a person exists who doesn't know the celebrity.
// The time complexity is O(n), and O(1) additional space is needed.
func FindCelebrity(f [][]bool) int {
- r, c := 0, 1 // c starts at 1 'cause it's after start of diagonal (A<->A, B<->B, C<->C, ...)
- for c < l... |
4042d7eac0b1378778d0721e5434122b3c010a69 | delayed_job_sqs.gemspec | delayed_job_sqs.gemspec | # coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
Gem::Specification.new do |s|
s.require_paths = ['lib']
s.name = 'delayed_job_sqs'
s.version = '0.0.2'
s.authors = ['Israël Hallé']
s.email = ['isra017@gmail.com']
... | # coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
Gem::Specification.new do |s|
s.require_paths = ['lib']
s.name = 'delayed_job_sqs'
s.version = '0.0.2'
s.authors = ['Israël Hallé']
s.email = ['isra017@gmail.com']
... | Update the gem spec's "homepage" property. | Update the gem spec's "homepage" property.
| Ruby | mit | Shopify/delayed_job_sqs | ---
+++
@@ -10,7 +10,7 @@
s.email = ['isra017@gmail.com']
s.description = 'Amazon SQS backend for delayed_job'
s.summary = 'Amazon SQS backend for delayed_job'
- s.homepage = 'https://github.com/isra17/delayed_job_sqs'
+ s.homepage = 'https://github.com/Shopify/delayed_job_sqs'
... |
7a634145da6f1d4d74e2e5cf1332ed36b6e2b00d | docs/docker-container-setup.md | docs/docker-container-setup.md | By default, a container receives the default permissions configured by the metadata
proxy. However, some containers require more or less permissions. For these cases, the
container can provide a custom IAM role, a custom IAM policy, or both.
# Container Role
A container can specify a specific role to use by setting t... | By default, a container receives the default permissions configured by the metadata
proxy. However, some containers require more or less permissions. For these cases, the
container can provide a custom IAM role, a custom IAM policy, or both.
The role and/or policy are configured in container environment variables. The... | Expand documentation on use of environment variables | Expand documentation on use of environment variables
Addresses the confusion expressed in issue #7.
| Markdown | mit | dump247/docker-ec2-metadata,codeactual/ec2metaproxy,jnewbigin/ec2metaproxy,codeactual/ec2metaproxy,dump247/docker-ec2-metadata,jnewbigin/ec2metaproxy,dump247/ec2metaproxy,dump247/ec2metaproxy | ---
+++
@@ -1,6 +1,11 @@
By default, a container receives the default permissions configured by the metadata
proxy. However, some containers require more or less permissions. For these cases, the
container can provide a custom IAM role, a custom IAM policy, or both.
+
+The role and/or policy are configured in cont... |
dae1adc8e19e728e359b64ab1e1bd8c8b4dbf01a | core/app/assets/stylesheets/base/reset.css.less | core/app/assets/stylesheets/base/reset.css.less | ul {
margin: 0;
padding: 0;
> li {
list-style-type: none;
margin: 0;
padding: 0;
}
} | ul {
margin: 0;
padding: 0;
> li {
list-style-type: none;
margin: 0;
padding: 0;
}
}
textarea {
font-family: inherit;
} | Fix text area font in firefox, IE. | Fix text area font in firefox, IE.
| Less | mit | daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core | ---
+++
@@ -7,4 +7,7 @@
margin: 0;
padding: 0;
}
+}
+textarea {
+ font-family: inherit;
} |
7c50367c3687418582df46daba8c39acd8bbd6cc | java/client/test/org/openqa/selenium/TagNameTest.java | java/client/test/org/openqa/selenium/TagNameTest.java | /*
Copyright 2007-2009 WebDriver committers
Copyright 2007-2009 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless require... | /*
Copyright 2007-2009 WebDriver committers
Copyright 2007-2009 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless require... | Make a test case insensitive. | JasonLeyba: Make a test case insensitive.
git-svn-id: 4179480af2c2519a5eb5e1e9b541cbdf5cf27696@11860 07704840-8298-11de-bf8c-fd130f914ac9
| Java | apache-2.0 | winhamwr/selenium,winhamwr/selenium,virajs/selenium-1,winhamwr/selenium,virajs/selenium-1,winhamwr/selenium,akiellor/selenium,winhamwr/selenium,akiellor/selenium,akiellor/selenium,virajs/selenium-1,akiellor/selenium,virajs/selenium-1,winhamwr/selenium,akiellor/selenium,virajs/selenium-1,akiellor/selenium,winhamwr/selen... | ---
+++
@@ -28,7 +28,7 @@
public void shouldReturnInput() {
driver.get(pages.formPage);
WebElement selectBox = driver.findElement(By.id("cheese"));
- assertThat(selectBox.getTagName(), is("input"));
+ assertThat(selectBox.getTagName().toLowerCase(), is("input"));
}
}
|
6c85a3b55984f41aa788623087d532648dd4ab6f | .travis.yml | .travis.yml | language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.8
- 2.2.4
- 2.3.0
gemfile:
- gemfiles/rails31.gemfile
- gemfiles/rails32.gemfile
- gemfiles/rails40.gemfile
- gemfiles/rails41.gemfile
- gemfiles/rails42.gemfile
- gemfiles/rails50.gemfile
script: bundle exec rake test
| language: ruby
rvm:
- 2.0.0
- 2.1.8
- 2.2.4
- 2.3.0
gemfile:
- gemfiles/rails31.gemfile
- gemfiles/rails32.gemfile
- gemfiles/rails40.gemfile
- gemfiles/rails41.gemfile
- gemfiles/rails42.gemfile
- gemfiles/rails50.gemfile
script: bundle exec rake test
| Revert "Test gem on `1.9.3` too" | Revert "Test gem on `1.9.3` too"
This reverts commit 633bafbda3082c46ed97e0d5abca387ac326fc20.
| YAML | mit | demiazz/railspack,demiazz/railspack | ---
+++
@@ -1,6 +1,5 @@
language: ruby
rvm:
- - 1.9.3
- 2.0.0
- 2.1.8
- 2.2.4
|
281ab33133bf050db408e604c28e4cbc33c8cccb | Tools/Python/Install_Python_OSX.sh | Tools/Python/Install_Python_OSX.sh | set -e
echo "After the download, get ready to enter the root password. You should make sure your proxy is set."
# export http_proxy=http://proxy.dp.intel.com:911
# curl --remote-name http://www.python.org/ftp/python/2.4.4/python-2.4.4-macosx2006-10-18.dmg --progress-bar
hdiutil attach python-2.4.4-macosx2006-10-18.dmg
... | echo "You proxy is currently set to \"$http_proxy\"."
echo "It needs to set in order to download through a firewall."
echo "For example: \"export http://proxy.company.com:911\""
set -e
echo "After the download, get ready to enter the root password."
# export http_proxy=http://proxy.dp.intel.com:911
# curl --remote-name... | Add wxPython to the installer. | Add wxPython to the installer.
git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@2173 6f19259b-4bc3-4df7-8a09-765794883524
| Shell | bsd-2-clause | MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2 | ---
+++
@@ -1,8 +1,17 @@
+echo "You proxy is currently set to \"$http_proxy\"."
+echo "It needs to set in order to download through a firewall."
+echo "For example: \"export http://proxy.company.com:911\""
set -e
-echo "After the download, get ready to enter the root password. You should make sure your proxy is set.... |
5c04c41777bf0834be47b4e9231ef7d7ead4e20f | lib/scamp.rb | lib/scamp.rb | require 'eventmachine'
require 'em-http-request'
require 'yajl'
require "scamp/version"
require 'scamp/connection'
require 'scamp/channels'
require 'scamp/users'
require 'scamp/matcher'
require 'scamp/action'
class Scamp
include Connection
include Channels
include Users
attr_accessor :channels, :user_cache... | require 'eventmachine'
require 'em-http-request'
require 'yajl'
require "scamp/version"
require 'scamp/connection'
require 'scamp/channels'
require 'scamp/users'
require 'scamp/matcher'
require 'scamp/action'
class Scamp
include Connection
include Channels
include Users
attr_accessor :channels, :user_cache... | Use attr_accessor to be 1.8 friendly | Use attr_accessor to be 1.8 friendly
| Ruby | mit | wjessop/Scamp | ---
+++
@@ -15,7 +15,7 @@
include Users
attr_accessor :channels, :user_cache, :channel_cache
- attr :matchers, :api_key, :subdomain
+ attr_accessor :matchers, :api_key, :subdomain
def initialize(options = {})
options ||= {}
|
d8ef2d65328980ef34ae0758048ab23a86e1ea5b | requirements/dev.txt | requirements/dev.txt | # ulid/requirements/dev.txt
#
# Requirements for using developing package.
-r base.txt
bumpversion==0.5.3
mypy==0.560
pylint==1.7.5; python_version < '2.7' or (python_version > '3.0' and python_version < '3.4') # pyup: ignore
pylint==1.8.2; (python_version > '2.7' and python_version < '3.0') or python_version > '3.4... | # ulid/requirements/dev.txt
#
# Requirements for using developing package.
-r base.txt
bumpversion==0.5.3
mypy==0.560
pylint==1.7.5; python_version < '2.7' or (python_version > '3.0' and python_version < '3.4') # pyup: ignore
pylint==1.8.2; (python_version > '2.7' and python_version < '3.0') or python_version > '3.4... | Update safety from 1.6.1 to 1.7.0 | Update safety from 1.6.1 to 1.7.0 | Text | apache-2.0 | ahawker/ulid | ---
+++
@@ -8,7 +8,7 @@
mypy==0.560
pylint==1.7.5; python_version < '2.7' or (python_version > '3.0' and python_version < '3.4') # pyup: ignore
pylint==1.8.2; (python_version > '2.7' and python_version < '3.0') or python_version > '3.4'
-safety==1.6.1
+safety==1.7.0
bandit==1.4.0
isort==4.2.15; (python_version ... |
cf636847874b16472d755515b5538aabc13db387 | packages/lingui-react/package.json | packages/lingui-react/package.json | {
"name": "lingui-react",
"version": "0.12.0",
"description": "React components for translations",
"main": "lib/index.js",
"author": {
"name": "Tomáš Ehrlich",
"email": "tomas.ehrlich@gmail.com"
},
"license": "MIT",
"keywords": [
"react",
"component",
"i18n",
"internationalizatio... | {
"name": "lingui-react",
"version": "0.12.1",
"description": "React components for translations",
"main": "lib/index.js",
"author": {
"name": "Tomáš Ehrlich",
"email": "tomas.ehrlich@gmail.com"
},
"license": "MIT",
"keywords": [
"react",
"component",
"i18n",
"internationalizatio... | Fix inline elements formattign with newlines | release: Fix inline elements formattign with newlines
Updated packages:
lingui-react@0.12.1
| JSON | mit | lingui/js-lingui,lingui/js-lingui | ---
+++
@@ -1,6 +1,6 @@
{
"name": "lingui-react",
- "version": "0.12.0",
+ "version": "0.12.1",
"description": "React components for translations",
"main": "lib/index.js",
"author": {
|
56437dfda6512a192e1eb227019c36e83c3df422 | src/common/global_state_annotation.h | src/common/global_state_annotation.h | /// @file
/// @brief Defines global state annotation class.
#ifndef GLOBAL_STATE_ANNOTATION_H
#define GLOBAL_STATE_ANNOTATION_H
namespace fish_annotator {
/// Defines global state information for one image/frame.
struct GlobalStateAnnotation : public Serialization {
/// Constructor.
///
/// @param states Globa... | Add global state annotation definitions | Add global state annotation definitions
| C | mit | BGWoodward/FishDetector | ---
+++
@@ -0,0 +1,35 @@
+/// @file
+/// @brief Defines global state annotation class.
+
+#ifndef GLOBAL_STATE_ANNOTATION_H
+#define GLOBAL_STATE_ANNOTATION_H
+
+namespace fish_annotator {
+
+/// Defines global state information for one image/frame.
+struct GlobalStateAnnotation : public Serialization {
+ /// Constr... | |
de2acc09a72eef33252c3dcc2fb0865d553dc990 | gitgo/gitgo.go | gitgo/gitgo.go | package main
import (
"bytes"
"fmt"
"io"
"log"
"os"
"github.com/ChimeraCoder/gitgo"
)
func main() {
args := os.Args
module := args[1]
switch module {
case "cat-file":
hash := args[2]
result, err := gitgo.CatFile(gitgo.SHA(hash))
if err != nil {
log.Fatal(err)
}
io.Copy(os.Stdout, result)
cas... | package main
import (
"bytes"
"fmt"
"io"
"log"
"os"
"github.com/ChimeraCoder/gitgo"
)
func main() {
args := os.Args
module := args[1]
switch module {
case "cat-file":
hash := args[2]
result, err := gitgo.CatFile(gitgo.SHA(hash))
if err != nil {
log.Fatal(err)
}
io.Copy(os.Stdout, result)
cas... | Print error message when `git log` is not given a SHA | Print error message when `git log` is not given a SHA
* This will be allowed after references are implemented
| Go | apache-2.0 | ChimeraCoder/gitgo,ChimeraCoder/gitgo,ChimeraCoder/gitgo | ---
+++
@@ -23,6 +23,10 @@
io.Copy(os.Stdout, result)
case "log":
+ if len(args) < 3 {
+ fmt.Println("must specify commit name with `log`")
+ os.Exit(1)
+ }
hash := gitgo.SHA(args[2])
commits, err := gitgo.Log(hash, "")
if err != nil {
|
08b9537b5247f5f463b520d4c4bf6f8b27e9a916 | views/index.jade | views/index.jade | extends layout
block content
h1= title
p.
A simple tool for experimenting with JS libraries in your web console.
p.
Development versions of jQuery and Underscore are included in this page,
with no other JavaScript files. To use your web console with these
libraries, simply open it up on this page... | extends layout
block content
h1= title
p.
A simple tool for experimenting with JS libraries in your web console.
p.
Development versions of jQuery and Underscore are included in this page,
with no other JavaScript files. To use your web console with these
libraries, simply open it up on this page... | Make package links lead to jsbox with the appropriate library included | Make package links lead to jsbox with the appropriate library included
| Jade | mit | nicolasmccurdy/jsbox | ---
+++
@@ -23,6 +23,6 @@
ul
each package in libraryUrls
li
- a(href=package.url)= package.name
+ a(href='?scriptUrl='+encodeURIComponent(package.url))= package.name
script(src=scriptUrl)
|
8b4b37668cb0d0286d85a92f1f399025df8df4d1 | .circleci/config.yml | .circleci/config.yml | version: 2.1
orbs:
python: circleci/python@1.1.0
jobs:
build:
docker:
- image: cimg/python:3.8
environment:
DJANGO_SETTINGS_MODULE: chowist.settings.test
- image: postgres:12
environment:
POSTGRES_USER: circleci
POSTGRES_PASSWORD: circleci
PO... | version: 2.1
orbs:
python: circleci/python@1.1.0
jobs:
build-and-test:
docker:
- image: cimg/python:3.8
environment:
DJANGO_SETTINGS_MODULE: chowist.settings.test
- image: postgres:12
environment:
POSTGRES_USER: circleci
POSTGRES_PASSWORD: circleci
... | Change name of circleci job | Change name of circleci job
| YAML | mit | huangsam/chowist,huangsam/chowist,huangsam/chowist | ---
+++
@@ -4,7 +4,7 @@
python: circleci/python@1.1.0
jobs:
- build:
+ build-and-test:
docker:
- image: cimg/python:3.8
environment:
@@ -24,3 +24,8 @@
python manage.py check
python manage.py test
name: Test
+
+workflows:
+ main:
+ jobs:
+ - bu... |
07f835ab23fdd5c73f0c3b79424b565751a577b9 | app/Data/User.php | app/Data/User.php | <?php namespace App\Data;
use UserPresenter;
use App\Authorization;
use Illuminate\Notifications\Notifiable;
use Laracasts\Presenter\PresentableTrait;
use Illuminate\Foundation\Auth\Access\Authorizable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Authorizable, Aut... | <?php namespace App\Data;
use UserPresenter;
use App\Authorization;
use Illuminate\Notifications\Notifiable;
use Laracasts\Presenter\PresentableTrait;
use Illuminate\Foundation\Auth\Access\Authorizable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Authorizable, Aut... | Set a subscription relationship for users | Set a subscription relationship for users
| PHP | mit | anodyne/aurora,anodyne/aurora,anodyne/aurora | ---
+++
@@ -30,6 +30,11 @@
{
return $this->hasMany(Reply::class);
}
+
+ public function subscriptions()
+ {
+ return $this->hasMany(DiscussionSubscription::class);
+ }
//--------------------------------------------------------------------------
// Model Scopes
|
b0053c6cb09ed32e7d33bb942b4b7b87f52d783b | config/software/berkshelf-no-depselector.rb | config/software/berkshelf-no-depselector.rb | #
# Copyright 2016 Chef Software, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | #
# Copyright 2016 Chef Software, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | Update berks gemfile groups to match reality | Update berks gemfile groups to match reality
Add docs
Remove guardfile / test which aren't there
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
| Ruby | apache-2.0 | aerobase/omnibus-software,aerobase/omnibus-software,aerobase/omnibus-software,chef/omnibus-software,mattray/omnibus-software,chef/omnibus-software,chef/omnibus-software,chef/omnibus-software,mattray/omnibus-software,mattray/omnibus-software,aerobase/omnibus-software,mattray/omnibus-software,aerobase/omnibus-software,ch... | ---
+++
@@ -37,7 +37,7 @@
bundle "install" \
" --jobs #{workers}" \
- " --without guard changelog development test", env: env
+ " --without changelog docs development", env: env
bundle "exec thor gem:build", env: env
|
4ee3d699a160c3b504b9cb26681a773f9b672bd9 | src/cmsplugin_carousel/templates/cmsplugin_carousel/carousel.html | src/cmsplugin_carousel/templates/cmsplugin_carousel/carousel.html | <div id="{{ auto_id }}" class="carousel slide" data-ride="carousel" data-interval="{{ rotate_interval }}">
<ol class="carousel-indicators">
{% for object in objects_list %}
<li {% if forloop.first %}class=active{% else %}class=""{% endif %} data-target="#{{ auto_id }}" data-slide-to="{{ forloop.counter0 }}"... | <div id="{{ auto_id }}" class="carousel slide" data-ride="carousel" data-interval="{{ rotate_interval }}">
<ol class="carousel-indicators">
{% for object in objects_list %}
<li {% if forloop.first %}class=active{% else %}class=""{% endif %} data-target="#{{ auto_id }}" data-slide-to="{{ forloop.counter0 }}"... | Move caption into the <a> tag | Move caption into the <a> tag
| HTML | mit | awesto/djangocms-carousel,awesto/djangocms-carousel,awesto/djangocms-carousel | ---
+++
@@ -9,12 +9,12 @@
<div class="item {% if forloop.first %}active{% endif %}">
{% if object.link %}<a href="{{ object.link.get_public_url }}" {% if object.open_in_tab %}target="_blank"{% endif %}>{% endif %}
<img src="{{ object.image.url }}" alt="{% if object.alt_tag %}{{ object.alt_tag... |
61ab87691c314ab9626af5ea3cc80745162e6214 | website/templates/options/on-doc-load.html | website/templates/options/on-doc-load.html | <li>
<label><b>onDocLoad</b> (Boolean) —</label>
Run the initializer on the page (<code>$(window.document)</code>)
when it load (default: <b>true</b>).
</li>
| <li>
<label><b>onDocLoad</b> (Boolean) —</label>
Run the initializer on the web page (<code>$(window.document)</code>)
once the page loads (default: <b>true</b>).
</li>
| Fix wording for onDocLoad() documentation | Fix wording for onDocLoad() documentation
| HTML | mit | dnajs/dna.js,dnajs/dna.js,dnajs/dna.js,dnajs/dna.js,dnajs/dna.js | ---
+++
@@ -1,5 +1,5 @@
<li>
<label><b>onDocLoad</b> (Boolean) —</label>
- Run the initializer on the page (<code>$(window.document)</code>)
- when it load (default: <b>true</b>).
+ Run the initializer on the web page (<code>$(window.document)</code>)
+ once the page loads (default: <b>true</b>).
... |
54156cd6f121690cc41a61aa4f637d9740d7bb51 | data/sites/decc_offshoresea.yml | data/sites/decc_offshoresea.yml | ---
site: decc_offshoresea
host: www.offshore-sea.org.uk
redirection_date: 16th May 2013
tna_timestamp: 20130103064208
title: Department of Energy and Climate Change
furl: www.gov.uk/decc
homepage: https://www.gov.uk/government/organisations/department-of-energy-climate-change
css: department-of-energy-climate-change
-... | ---
site: decc_offshoresea
host: www.offshore-sea.org.uk
redirection_date: 16th May 2013
tna_timestamp: 20130103064208
title: Department of Energy and Climate Change
furl: www.gov.uk/decc
homepage: https://www.gov.uk/government/organisations/department-of-energy-climate-change
options: --query-string categoryID:documen... | Add query strings for decc-offshoresea | Add query strings for decc-offshoresea
| YAML | mit | alphagov/transition-config,alphagov/transition-config | ---
+++
@@ -6,5 +6,6 @@
title: Department of Energy and Climate Change
furl: www.gov.uk/decc
homepage: https://www.gov.uk/government/organisations/department-of-energy-climate-change
+options: --query-string categoryID:documentID:fileID:faqID:meetingID:consultationID:productID:bookID:downloadID:newsID
css: depart... |
3ab73432f9644613e3ada637a80834a38fdf34aa | tasks/tls.yml | tasks/tls.yml | ---
# File: tasks/tls.yml - TLS tasks for Vault
- name: Vault SSL Certificate and Key
copy:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
owner: "{{ vault_user }}"
group: "{{ vault_group }}"
mode: "{{ item.mode }}"
with_items:
- src: "{{ vault_tls_cert_file }}"
dest: "{{ vau... | ---
# File: tasks/tls.yml - TLS tasks for Vault
- name: Create tls directory
file:
dest: "{{ item }}"
state: directory
owner: "{{ vault_user }}"
group: "{{ vault_group}}"
with_items:
- "{{ vault_tls_config_path }}"
- name: Vault SSL Certificate and Key
copy:
src: "{{ item.src }}"
... | Add TLS directory if TLS is enabled | [fix] Add TLS directory if TLS is enabled | YAML | bsd-2-clause | brianshumate/ansible-vault | ---
+++
@@ -1,5 +1,14 @@
---
# File: tasks/tls.yml - TLS tasks for Vault
+
+- name: Create tls directory
+ file:
+ dest: "{{ item }}"
+ state: directory
+ owner: "{{ vault_user }}"
+ group: "{{ vault_group}}"
+ with_items:
+ - "{{ vault_tls_config_path }}"
- name: Vault SSL Certificate and Key
... |
fc6a0edca3ae42cb3570ddf62c841282bb0229aa | integration/util.py | integration/util.py | from fabric.api import env
class Integration(object):
def setup(self):
env.host_string = "127.0.0.1"
| from fabric.api import env
class Integration(object):
def setup(self):
if not env.host_string: # Allow runtime selection
env.host_string = "127.0.0.1"
| Allow easy local exec of integration suite via eg -H | Allow easy local exec of integration suite via eg -H
| Python | bsd-2-clause | kmonsoor/fabric,haridsv/fabric,kxxoling/fabric,cgvarela/fabric,rane-hs/fabric-py3,tolbkni/fabric,jaraco/fabric,TarasRudnyk/fabric,cmattoon/fabric,raimon49/fabric,itoed/fabric,pashinin/fabric,ploxiln/fabric,elijah513/fabric,opavader/fabric,xLegoz/fabric,rbramwell/fabric,qinrong/fabric,bspink/fabric,hrubi/fabric,StackSto... | ---
+++
@@ -3,4 +3,5 @@
class Integration(object):
def setup(self):
- env.host_string = "127.0.0.1"
+ if not env.host_string: # Allow runtime selection
+ env.host_string = "127.0.0.1"
|
671cf8b7d4ce613be5e0f31e61d2b30c9926ddc6 | app/templates/_package.json | app/templates/_package.json | {
"name": "<%= _.slugify(appname) %>",
"description": "<%= appdescription.replace('\"', '\\"') %>",
"version": "0.0.0",
"engines": {
"node": ">= 0.8.0"
},
"scripts": {
"test": "grunt qunit"
},
"author": {
"name": "Author Name",
"email": "email@domain.com",
"url": "http://bower.io/"
... | {
"name": "<%= _.slugify(appname) %>",
"description": "<%= appdescription.replace('\"', '\\"') %>",
"version": "0.0.0",
"engines": {
"node": ">= 0.8.0"
},
"scripts": {
"test": "grunt qunit"
},
"author": {
"name": "Author Name",
"email": "email@domain.com",
"url": "http://bower.io/"
... | Switch license link to mit-license.org | Switch license link to mit-license.org
| JSON | mit | danheberden/yeoman-generator-requirejs | ---
+++
@@ -16,7 +16,7 @@
"licenses": [
{
"type": "MIT",
- "url": "https://github.com/danheberden/gith/blob/master/LICENSE-MIT"
+ "url": "http://mit-license.org"
}
],
"devDependencies": {
|
81fdd387737d25ccca7e6628497268f4e2a2415a | src/components/home/Ventures/index.module.css | src/components/home/Ventures/index.module.css | .root {
padding: 56px 20px 168px;
}
.content {
display: grid;
grid-row-gap: 56px;
max-width: 1184px;
margin-right: auto;
margin-left: auto;
}
.section {
display: grid;
grid-row-gap: 28px;
}
@media (min-width: 768px) {
.root {
padding: 112px 28px 224px;
}
.content {
grid-template-column... | .root {
padding: 56px 20px 168px;
}
.content {
display: grid;
grid-row-gap: 56px;
max-width: 1184px;
margin-right: auto;
margin-left: auto;
}
.section {
display: grid;
grid-row-gap: 28px;
}
.footer {
padding-top: 112px;
}
@media (min-width: 768px) {
.root {
padding: 112px 28px 224px;
}
... | Fix ventures section footer top spacing | Fix ventures section footer top spacing
| CSS | mit | subvisual/subvisual.co,subvisual/subvisual.co | ---
+++
@@ -13,6 +13,10 @@
.section {
display: grid;
grid-row-gap: 28px;
+}
+
+.footer {
+ padding-top: 112px;
}
@media (min-width: 768px) {
|
672a21894cb4459e9fe6b06658230ca3be512ad1 | requirements.txt | requirements.txt | Twisted[tls]==18.9.0
beautifulsoup4==4.6.3
lxml==4.2.4
psutil==5.4.7
python-dateutil==2.7.3
ply==3.11
enum34==1.1.6
twitter==1.18.0
requests==2.19.1
pytimeparse==1.1.8
pymysql==0.9.2
pycryptodome==3.6.6
pyasn1==0.4.4
isodate==0.6.0
google-api-python-client==1.7.4
pyxDamerauLevenshtein==1.5
numpy==1.15.2
Cython==0.28.5
... | Twisted[tls]==18.9.0
beautifulsoup4==4.6.3
lxml==4.2.5
psutil==5.4.7
python-dateutil==2.7.3
ply==3.11
enum34==1.1.6
twitter==1.18.0
requests==2.19.1
pytimeparse==1.1.8
pymysql==0.9.2
pycryptodome==3.6.6
pyasn1==0.4.4
isodate==0.6.0
google-api-python-client==1.7.4
pyxDamerauLevenshtein==1.5
numpy==1.15.2
Cython==0.28.5
... | Update lxml from 4.2.4 to 4.2.5 | Update lxml from 4.2.4 to 4.2.5 | Text | mit | DesertBot/DesertBot | ---
+++
@@ -1,6 +1,6 @@
Twisted[tls]==18.9.0
beautifulsoup4==4.6.3
-lxml==4.2.4
+lxml==4.2.5
psutil==5.4.7
python-dateutil==2.7.3
ply==3.11
|
1f8c3a2e06593165f600844c11ba12343fe9af21 | spec/requests/admin/admin_teams_spec.rb | spec/requests/admin/admin_teams_spec.rb | require 'rails_helper'
RSpec.describe "Admin::Teams", type: :request do
include_context "a configured contest"
let(:admin) { Account.create! username: "proctor", password: 'asdf123', contest: Contest.instance, admin: true }
describe "GET /admin/teams" do
it "works! (now write some real specs)" do
# I... | Add a request level spec for admin testing | Add a request level spec for admin testing
This operates more at the API level, but it appears that Rails5.1 has
taken away access to the session variable, so it becomes necessary to
interact with multiple different controller endpoints, instead of simply
preconfiguring a value in the session.
Apparently, DHH thinks ... | Ruby | mit | wburns84/loudoun_codes,bennacer860/loudoun_codes,apaslak/loudoun_codes,wburns84/loudoun_codes,cflipse/loudoun_codes,Benabik/loudoun_codes,apaslak/loudoun_codes,cflipse/loudoun_codes,apaslak/loudoun_codes,bennacer860/loudoun_codes,Benabik/loudoun_codes,Benabik/loudoun_codes,bennacer860/loudoun_codes,wburns84/loudoun_cod... | ---
+++
@@ -0,0 +1,21 @@
+require 'rails_helper'
+
+RSpec.describe "Admin::Teams", type: :request do
+ include_context "a configured contest"
+ let(:admin) { Account.create! username: "proctor", password: 'asdf123', contest: Contest.instance, admin: true }
+
+ describe "GET /admin/teams" do
+
+ it "works! (now ... | |
9ce980b6b44e3e7cbabe18d49b8f0a7a6a8cc533 | generate_bindings.sh | generate_bindings.sh | #!/bin/sh
set -ex
which bindgen || cargo install bindgen
echo '#include <stdarg.h>' > /tmp/postgres.c
echo '#include "postgres.h"' >> /tmp/postgres.c
echo '#include "fmgr.h"' >> /tmp/postgres.c
echo '#include "replication/output_plugin.h"' >> /tmp/postgres.c
echo '#include "replication/logical.h"' >> /tmp/postgres.c
... | #!/bin/sh
set -ex
which bindgen || cargo install bindgen
echo '#include <stdarg.h>' > /tmp/postgres.c
echo '#include "postgres.h"' >> /tmp/postgres.c
echo '#include "fmgr.h"' >> /tmp/postgres.c
echo '#include "replication/output_plugin.h"' >> /tmp/postgres.c
echo '#include "replication/logical.h"' >> /tmp/postgres.c
... | Include Homebrew's PG include path | Include Homebrew's PG include path
| Shell | apache-2.0 | posix4e/elephantpump,posix4e/elephantpump,posix4e/elephantpump | ---
+++
@@ -9,7 +9,8 @@
echo '#include "replication/logical.h"' >> /tmp/postgres.c
-gcc -I /usr/include/postgresql/9.4/server -E /tmp/postgres.c > /tmp/libpq.c
+gcc -I /usr/include/postgresql/9.4/server -I /usr/local/include/server/ \
+ -E /tmp/postgres.c > /tmp/libpq.c
cat /tmp/libpq.c | python src/remove... |
ad9c971454e13ed4376276f6936841c978812ce4 | .github/PULL_REQUEST_TEMPLATE.md | .github/PULL_REQUEST_TEMPLATE.md | <!--
Thanks for contributing to ActiveAdmin!
You can find all the instructions for contributing at the [CONTRIBUTING file].
Before submitting your PR make sure that:
* You wrote [good commit messages].
* The PR relates to *only* one subject with a clear title and description in grammatically correct, complete sente... | <!--
Thanks for contributing to ActiveAdmin!
You can find all the instructions for contributing at the [CONTRIBUTING file].
Before submitting your PR make sure that:
* You wrote [good commit messages].
* The PR relates to *only* one subject with a clear title and description in grammatically correct, complete sente... | Fix typo in PR template | Fix typo in PR template | Markdown | mit | vraravam/activeadmin,deivid-rodriguez/activeadmin,activeadmin/activeadmin,deivid-rodriguez/activeadmin,javierjulio/activeadmin,javierjulio/activeadmin,activeadmin/activeadmin,deivid-rodriguez/activeadmin,activeadmin/activeadmin,vraravam/activeadmin,vraravam/activeadmin,javierjulio/activeadmin | ---
+++
@@ -8,7 +8,7 @@
* You wrote [good commit messages].
* The PR relates to *only* one subject with a clear title and description in grammatically correct, complete sentences.
-+ The PR descripion [includes keywords to automatically close issues] if it fixes an existing issue.
++ The PR description [includes ... |
5defe266fd961b26bbc2ba57987a838259b374f7 | activesupport/lib/active_support/core_ext/class/subclasses.rb | activesupport/lib/active_support/core_ext/class/subclasses.rb | # frozen_string_literal: true
class Class
# Returns an array with all classes that are < than its receiver.
#
# class C; end
# C.descendants # => []
#
# class B < C; end
# C.descendants # => [B]
#
# class A < B; end
# C.descendants # => [B, A]
#
# class D < C; end
# C.descenda... | # frozen_string_literal: true
class Class
# Returns an array with all classes that are < than its receiver.
#
# class C; end
# C.descendants # => []
#
# class B < C; end
# C.descendants # => [B]
#
# class A < B; end
# C.descendants # => [B, A]
#
# class D < C; end
# C.descenda... | Refactor to reduce complexity from O(n*2) to O(n) | Refactor to reduce complexity from O(n*2) to O(n)
A class is only a direct descendant if its superclass is self.
Fixes https://github.com/rails/rails/pull/37487
| Ruby | mit | tjschuck/rails,Envek/rails,starknx/rails,joonyou/rails,mechanicles/rails,rafaelfranca/omg-rails,yalab/rails,MSP-Greg/rails,notapatch/rails,palkan/rails,schuetzm/rails,lcreid/rails,betesh/rails,jeremy/rails,Stellenticket/rails,shioyama/rails,mechanicles/rails,georgeclaghorn/rails,Edouard-chin/rails,iainbeeston/rails,geo... | ---
+++
@@ -28,9 +28,6 @@
#
# Foo.subclasses # => [Bar]
def subclasses
- chain = descendants
- chain.reject do |k|
- chain.any? { |c| c > k }
- end
+ descendants.select { |descendant| descendant.superclass == self }
end
end
|
e17773441a47f4b2ea15af9946309c34bb512f02 | README.md | README.md | ember-browserify-test
=====================
Test Ember with ED and Browserify/shim
```bash
npm install
npm run build
npm start
```
The noparse version is `npm run build2`.
Both builds work fine, but when you run either, i.e. `npm start`, then you get different errors.
| ember-browserify-test
=====================
Test Ember with ED and Browserify/shim
```bash
npm install
npm run build
npm start
```
The noparse version is `npm run build2`.
Both builds work fine, but when you run either, i.e. `npm start`, then you get different errors.
Adding `ember` to the noparse will create the gl... | Add note on global issue | Add note on global issue | Markdown | mit | knownasilya/ember-browserify-test | ---
+++
@@ -11,3 +11,4 @@
The noparse version is `npm run build2`.
Both builds work fine, but when you run either, i.e. `npm start`, then you get different errors.
+Adding `ember` to the noparse will create the global issue tracked [here](https://github.com/thlorenz/browserify-shim/issues/17).
|
1847ead0083e975ade3e2f799be10dd7e756c59c | views/photos.html | views/photos.html | <html>
<body>
<div style="margin:100px;">
<nav class="navbar navbar-inverse navbar-static-top">
<div class="container">
<a class="navbar-brand" href="/">Photo Application</a>
<ul class="nav navbar-nav">
<li class="active">
<a href="/">Home</a>
... | <html>
<body>
<div style="margin:100px;">
<nav class="navbar navbar-inverse navbar-static-top">
<div class="container">
<a class="navbar-brand" href="/">Photo Application</a>
<ul class="nav navbar-nav">
<li class="active">
<a href="/">Home</a>
... | Fix path in new photo view | Fix path in new photo view
| HTML | mit | amyhliao/photoApp,amyhliao/photoApp | ---
+++
@@ -12,7 +12,7 @@
<a href="/albums">Albums</a>
</li>
<li class="active">
- <a href="/photos/new">Add New Photo</a>
+ <a href="/photo/new">Add New Photo</a>
</li>
<li class="active">
<a href="/logout">Lo... |
61de67ce5d865db32d81453b369e49dc2cef867a | src/Core/Config.php | src/Core/Config.php | <?php
namespace Vela\Core;
/**
* Config class
*
* Simple class to store or get elements from configuration registry
*/
class Config
{
/** @var array $data Data configuration array */
private $data = [];
/**
* Class constructor
* @param array $data List of values to add to the configuratio... | <?php
namespace Vela\Core;
/**
* Config class
*
* Simple class to store or get elements from configuration registry
*/
class Config
{
/** @var array $data Data configuration array */
private $data = [];
/**
* Class constructor
* @param array $data List of values to add to the configuratio... | Add another configuration array to the orginal | Add another configuration array to the orginal | PHP | mit | acidvertigo/vela-commerce | ---
+++
@@ -21,6 +21,21 @@
public function __construct(array $data = [])
{
$this->data = $data;
+ }
+
+ /**
+ * Add another array to original configuration array
+ * @param array
+ * @throw \Exception
+ */
+ public function add(array $array)
+ {
+ if (!empty(a... |
5ab0e32f3a3b49747b6035cee6dcc1002b5075e1 | path/program_drive_provider.py | path/program_drive_provider.py | import os
from functools import lru_cache
from .. import logger
# use absolute path because of re-occuraing imports '.' could not work
from .program_path_provider import get_cached_program_path
@lru_cache(maxsize=None)
def get_cached_program_drive():
"""Get the value of the #PROGRAMDRIVE# variable"""
rainme... | """
This module provides methods for determine the program drive.
Rainmeter has an built-in variable called #PROGRAMDRIVE#.
With this you can directly route to the drive in which Rainmeter is contained.
If by some chance people use @Include on #PROGRAMDRIVE# it is still able to resolve
the path and open the include fo... | Add docstring to program drive provider | Add docstring to program drive provider
| Python | mit | thatsIch/sublime-rainmeter | ---
+++
@@ -1,3 +1,12 @@
+"""
+This module provides methods for determine the program drive.
+
+Rainmeter has an built-in variable called #PROGRAMDRIVE#.
+With this you can directly route to the drive in which Rainmeter is contained.
+If by some chance people use @Include on #PROGRAMDRIVE# it is still able to resolve... |
634bd061c23511c2b5d0098bf95df4394183cedf | testem.js | testem.js | /* eslint-env node */
module.exports = {
test_page: 'tests/index.html?hidepassed',
disable_watching: true,
launch_in_ci: [
'PhantomJS'
],
launch_in_dev: [
'PhantomJS',
'Chrome'
]
};
| /* eslint-env node */
module.exports = {
test_page: 'tests/index.html?hidepassed',
disable_watching: true,
launch_in_ci: [
'Chrome'
],
launch_in_dev: [
'Chrome'
]
};
| Set back to just Chrome | Set back to just Chrome
| JavaScript | mit | shipshapecode/ember-drop,shipshapecode/ember-drop,rwwagner90/ember-drop,rwwagner90/ember-drop | ---
+++
@@ -3,10 +3,9 @@
test_page: 'tests/index.html?hidepassed',
disable_watching: true,
launch_in_ci: [
- 'PhantomJS'
+ 'Chrome'
],
launch_in_dev: [
- 'PhantomJS',
'Chrome'
]
};
|
dd765d19881afbb98a58832f053ff8e70f48b8c6 | package.json | package.json | {
"name": "threeflows",
"version": "0.1.0",
"engines": {
"node": "6.2.1"
},
"main": "server/index.js",
"scripts": {
"dev": "READ_LOCAL_EVIDENCE=true DATABASE_URL=http://localhost:5432 NODE_ENV=development npm run start",
"start": "node server/index.js",
"watch": "cd ui && npm run watch && cd... | {
"name": "threeflows",
"version": "0.1.0",
"engines": {
"node": "6.2.1"
},
"main": "server/index.js",
"scripts": {
"dev": "READ_LOCAL_EVIDENCE=true DATABASE_URL=http://localhost:5432 NODE_ENV=development npm run start",
"start": "node server/index.js",
"watch": "cd ui && npm run watch && cd... | Install UI dependencies with yarn in Heroku deploy | Install UI dependencies with yarn in Heroku deploy
| JSON | mit | kesiena115/threeflows,mit-teaching-systems-lab/threeflows,mit-teaching-systems-lab/threeflows,mit-teaching-systems-lab/threeflows,kesiena115/threeflows,mit-teaching-systems-lab/threeflows,kesiena115/threeflows | ---
+++
@@ -9,7 +9,7 @@
"dev": "READ_LOCAL_EVIDENCE=true DATABASE_URL=http://localhost:5432 NODE_ENV=development npm run start",
"start": "node server/index.js",
"watch": "cd ui && npm run watch && cd ..",
- "heroku-prebuild": "cd ui && mkdir build && npm install",
+ "heroku-prebuild": "cd ui && ... |
65ab4444a13c695a7c3b1ca24403e2202e7c57f0 | lib/model_presenter/has_many.rb | lib/model_presenter/has_many.rb | module ModelPresenter
module HasMany
# The DSL adds an instance method `relation` to represnet a `has_many` relationship
#
# ```ruby
# class User
# include ModelPresenter::Base
# has_many :groups, presenter_class: Presenters::Group
# end
# ```
#
# The macro will generates a... | module ModelPresenter
module HasMany
# The DSL adds an instance method `relation` to represnet a `has_many` relationship
#
# `
#
# class User
# include ModelPresenter::Base
# has_many :groups, presenter_class: Presenters::Group
# end
#
# `
#
# The macro will generat... | Reformat the code snippet in the doc | Reformat the code snippet in the doc
| Ruby | mit | ywen/model_presenter | ---
+++
@@ -2,12 +2,14 @@
module HasMany
# The DSL adds an instance method `relation` to represnet a `has_many` relationship
#
- # ```ruby
+ # `
+ #
# class User
# include ModelPresenter::Base
# has_many :groups, presenter_class: Presenters::Group
# end
- # ```
+ #
... |
8d53debba111623e5a804a61b72939136fb99ff3 | Gruntfile.js | Gruntfile.js | /* jshint node: true */
module.exports = function (grunt) {
'use strict';
// Force use of Unix newlines
grunt.util.linefeed = '\n';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
src: {
options: {
jshintrc: true,
ignores: 'node_modules/**'
... | /* jshint node: true */
module.exports = function (grunt) {
'use strict';
// Force use of Unix newlines
grunt.util.linefeed = '\n';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
src: {
options: {
jshintrc: true,
ignores: 'node_modules/**'
... | Use File Array Format for zip task | Use File Array Format for zip task
To build for individual platform, use humanized task name. For example, `grunt dist chrome`.
| JavaScript | agpl-3.0 | openfaux/openfaux-client,openfaux/openfaux-client,openfaux/openfaux-client,openfaux/openfaux-client | ---
+++
@@ -33,7 +33,10 @@
}
},
zip: {
- 'dist/chrome.crx': 'chrome/'
+ chrome: {
+ src: 'chrome/',
+ dest: 'dist/chrome.crx'
+ }
}
});
|
f1fb2254bfa9bd68350204738eb24047b90b431f | .styleci.yml | .styleci.yml | preset: symfony
enabled:
- ordered_use
- strict
disabled:
- empty_return
| preset: symfony
finder:
- path: src
- path: tests
enabled:
- ordered_use
- strict
disabled:
- empty_return
| Fix the StyleCI configuration not to replace "Tests" namespace by "tests" | Fix the StyleCI configuration not to replace "Tests" namespace by "tests"
| YAML | mit | temp/repository,mnapoli/repository,tgalopin/repository,puli/repository,samsonasik/repository,WedgeSama/repository,kormik/repository,stof/repository | ---
+++
@@ -1,4 +1,8 @@
preset: symfony
+
+finder:
+ - path: src
+ - path: tests
enabled:
- ordered_use
|
11f63603850c911d37f8ad200cd9cae4325a59cf | Source/Options/RemoveHeaderOption.cs | Source/Options/RemoveHeaderOption.cs | using System;
using System.IO;
using System.Linq;
namespace AutoHeader.Options
{
public class RemoveHeaderOption : Option
{
public override void Execute()
{
Console.WriteLine("Execute \'RemoveHeaderOption\': {0}", Arg);
if (!Directory.Exists(Arg))
{
... | using System;
using System.IO;
using System.Linq;
namespace AutoHeader.Options
{
public class RemoveHeaderOption : Option
{
public override void Execute()
{
Console.WriteLine("Execute \'RemoveHeaderOption\': {0}", Arg);
if (!Directory.Exists(Arg))
{
... | Check for header before removing it | Check for header before removing it
| C# | mit | RonaldValkenburg/AutoHeader | ---
+++
@@ -32,9 +32,6 @@
private void RemoveHeaderFromFile(string filePath)
{
- var tempFilePath = GetTempFileName(filePath);
- File.Move(filePath, tempFilePath);
-
string header;
using (var streamReader = new StreamReader("HeaderTemplate.txt"))
... |
bd32b6077756cc6bfe210014326cffb816a0c938 | cookbooks/cobbler/files/default/config/profiles.d/ubuntu-12.04-x86_64.json | cookbooks/cobbler/files/default/config/profiles.d/ubuntu-12.04-x86_64.json | {"comment": "", "kickstart": "/var/lib/cobbler/kickstarts/ubuntu-12.04-x86_64.preseed", "name_servers_search": ["staging.dmz"], "ks_meta": {}, "kernel_options_post": {}, "repos": [], "redhat_management_key": "<<inherit>>", "virt_path": "", "kernel_options": {}, "name_servers": ["10.164.0.11", "10.164.0.12"], "mtime": 1... | {"comment": "", "kickstart": "/var/lib/cobbler/kickstarts/ubuntu-12.04-x86_64.preseed", "name_servers_search": [], "ks_meta": {}, "kernel_options_post": {}, "repos": [], "redhat_management_key": "<<inherit>>", "virt_path": "", "kernel_options": {}, "name_servers": [], "mtime": 1339188662.239933, "template_files": {}, "... | Remove the staging specific values from the 12.04 profile. These get filled in by Viracocha | Remove the staging specific values from the 12.04 profile. These get filled in by Viracocha
Former-commit-id: c3047efe5936c4ea022da2a127ae46fb14ebc73c [formerly c74fc8016d14df0a4e3ed22a68133bbaa5f3d8b3] [formerly d060bb4d4e303587cb6ee1945d9acb9bd3ea85f0 [formerly 05430b7452508cdc28a744f155e2f9d2b2a7345a]]
Former-com... | JSON | apache-2.0 | edwlarkey/rundeck,tas50/rundeck,ronabop/rundeck,ARentz07/rundeck,ronabop/rundeck,marthag8/rundeck,tas50/rundeck,edwlarkey/rundeck,ARentz07/rundeck,marthag8/rundeck,ronabop/rundeck,marthag8/rundeck,tas50/rundeck,edwlarkey/rundeck,ARentz07/rundeck | ---
+++
@@ -1 +1 @@
-{"comment": "", "kickstart": "/var/lib/cobbler/kickstarts/ubuntu-12.04-x86_64.preseed", "name_servers_search": ["staging.dmz"], "ks_meta": {}, "kernel_options_post": {}, "repos": [], "redhat_management_key": "<<inherit>>", "virt_path": "", "kernel_options": {}, "name_servers": ["10.164.0.11", "10... |
3d0a11907a5c28487769799e15f6f8d6060c22b6 | .travis.yml | .travis.yml | rvm:
- jruby
- 1.8.7
- 1.9.2
- 1.9.3
- ruby-head
- rbx-18mode
- rbx-19mode
env:
- JRUBY_OPTS="--server"
- JRUBY_OPTS="--server --1.9" | language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- ruby-head
- rbx-18mode
- rbx-19mode
matrix:
include:
- rvm: jruby
env: JRUBY_OPTS="--server"
- rvm: jruby
env: JRUBY_OPTS="--server --1.9"
| Reduce the number of jobs run in each Travis build | Reduce the number of jobs run in each Travis build
There's no need to have two different JRUBY_OPTS for *every* single
ruby, only JRuby.
| YAML | mit | dammer/simple_states,svenfuchs/simple_states | ---
+++
@@ -1,11 +1,14 @@
+language: ruby
rvm:
- - jruby
- 1.8.7
- 1.9.2
- 1.9.3
- ruby-head
- rbx-18mode
- rbx-19mode
-env:
- - JRUBY_OPTS="--server"
- - JRUBY_OPTS="--server --1.9"+matrix:
+ include:
+ - rvm: jruby
+ env: JRUBY_OPTS="--server"
+ - rvm: jruby
+ env: JRUBY_OPTS=... |
ef2a8e3dc71fbe04ef7c4421bdc0fa01a3bb1103 | _layouts/test.html | _layouts/test.html | {% include head.html %}
{% include nav.html %}
{% include header.html %}
{% include indiv_post.html %}
| {% include head.html %}
{% include nav.html %}
{% include header.html %}
{% include indiv_post.html %}
{% include modals.html %}
{% include js.html %}
| Add modals and js to get navbar to render properly. WILL CHANGE HORRIBLE FILENAME | Add modals and js to get navbar to render properly. WILL CHANGE HORRIBLE FILENAME
| HTML | mit | SputterPuttRedux/SputterPuttRedux.github.io,SputterPuttRedux/SputterPuttRedux.github.io | ---
+++
@@ -2,3 +2,5 @@
{% include nav.html %}
{% include header.html %}
{% include indiv_post.html %}
+{% include modals.html %}
+{% include js.html %}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.