commit
stringlengths
40
40
old_file
stringlengths
4
184
new_file
stringlengths
4
184
old_contents
stringlengths
1
3.6k
new_contents
stringlengths
5
3.38k
subject
stringlengths
15
778
message
stringlengths
16
6.74k
lang
stringclasses
201 values
license
stringclasses
13 values
repos
stringlengths
6
116k
config
stringclasses
201 values
content
stringlengths
137
7.24k
diff
stringlengths
26
5.55k
diff_length
int64
1
123
relative_diff_length
float64
0.01
89
n_lines_added
int64
0
108
n_lines_deleted
int64
0
106
0973942020260734e49a59cacb35d78c64aea566
read_test.go
read_test.go
package maxreader_test import ( "io/ioutil" "strings" "testing" "." ) func Test(t *testing.T) { type entry struct { s string ok bool } table := []entry{ {"", true}, {"h", true}, {"hell", true}, {"hello", true}, {"hellow", false}, {"helloworld", false}, } for _, e := range table { b, err...
package maxreader_test import ( "io/ioutil" "strings" "testing" "github.com/ninchat/maxreader" ) func Test(t *testing.T) { type entry struct { s string ok bool } table := []entry{ {"", true}, {"h", true}, {"hell", true}, {"hello", true}, {"hellow", false}, {"helloworld", false}, } for _, ...
Use absolute import in test
Use absolute import in test
Go
bsd-2-clause
ninchat/maxreader
go
## Code Before: package maxreader_test import ( "io/ioutil" "strings" "testing" "." ) func Test(t *testing.T) { type entry struct { s string ok bool } table := []entry{ {"", true}, {"h", true}, {"hell", true}, {"hello", true}, {"hellow", false}, {"helloworld", false}, } for _, e := range ...
package maxreader_test import ( "io/ioutil" "strings" "testing" - "." + "github.com/ninchat/maxreader" ) func Test(t *testing.T) { type entry struct { s string ok bool } table := []entry{ {"", true}, {"h", true}, {"hell", true}, {"hello", true}, {"hel...
2
0.043478
1
1
4fa1ae1199acd578918aa641f69c8de87e34abc3
recipes/sgp4/manifest.patch
recipes/sgp4/manifest.patch
diff --git a/setup.py b/setup.py index 6667adc..79f7482 100644 --- a/setup.py +++ b/setup.py @@ -29,4 +29,5 @@ setup(name = 'sgp4', 'Topic :: Scientific/Engineering :: Astronomy', ], packages = ['sgp4'], + package_data={'sgp4': ['tcppver.out', 'SGP4-VER.TLE', 'LICENSE'],}, )
diff --git a/setup.py b/setup.py index 6667adc..79f7482 100644 --- a/setup.py +++ b/setup.py @@ -29,4 +29,5 @@ setup(name = 'sgp4', 'Topic :: Scientific/Engineering :: Astronomy', ], packages = ['sgp4'], + package_data={'sgp4': ['tcppver.out', 'SGP4-VER.TLE', }, )
Drop LICENSE from package data
Drop LICENSE from package data
Diff
bsd-3-clause
Cashalow/staged-recipes,Juanlu001/staged-recipes,shadowwalkersb/staged-recipes,jochym/staged-recipes,hbredin/staged-recipes,bmabey/staged-recipes,stuertz/staged-recipes,ceholden/staged-recipes,basnijholt/staged-recipes,conda-forge/staged-recipes,caspervdw/staged-recipes,NOAA-ORR-ERD/staged-recipes,kwilcox/staged-recipe...
diff
## Code Before: diff --git a/setup.py b/setup.py index 6667adc..79f7482 100644 --- a/setup.py +++ b/setup.py @@ -29,4 +29,5 @@ setup(name = 'sgp4', 'Topic :: Scientific/Engineering :: Astronomy', ], packages = ['sgp4'], + package_data={'sgp4': ['tcppver.out', 'SGP4-VER.TLE', 'LICENSE'],}, ...
diff --git a/setup.py b/setup.py index 6667adc..79f7482 100644 --- a/setup.py +++ b/setup.py @@ -29,4 +29,5 @@ setup(name = 'sgp4', 'Topic :: Scientific/Engineering :: Astronomy', ], packages = ['sgp4'], - + package_data={'sgp4': ['tcppver.out', 'SGP4-VER.TLE', 'LICENSE'],}...
2
0.2
1
1
a7a1d513003a65c5c9772ba75631247decff444d
utils/utils.py
utils/utils.py
from django.core.paginator import Paginator, EmptyPage, InvalidPage from django.contrib.syndication.views import add_domain from django.contrib.sites.models import get_current_site def get_site_url(request, path): current_site = get_current_site(request) return add_domain(current_site.domain, path, request.i...
from django.core.paginator import Paginator, EmptyPage, InvalidPage from django.contrib.syndication.views import add_domain from django.contrib.sites.models import get_current_site def get_site_url(request, path): """Retrieve current site site Always returns as http (never https) """ current_site = g...
Make site url be http, not https
Make site url be http, not https
Python
bsd-3-clause
uq-eresearch/uqam,uq-eresearch/uqam,uq-eresearch/uqam,uq-eresearch/uqam
python
## Code Before: from django.core.paginator import Paginator, EmptyPage, InvalidPage from django.contrib.syndication.views import add_domain from django.contrib.sites.models import get_current_site def get_site_url(request, path): current_site = get_current_site(request) return add_domain(current_site.domain,...
from django.core.paginator import Paginator, EmptyPage, InvalidPage from django.contrib.syndication.views import add_domain from django.contrib.sites.models import get_current_site def get_site_url(request, path): + """Retrieve current site site + Always returns as http (never https) + """ ...
7
0.28
6
1
61dd80443c1ed9588dead6a44dff39cf39f63777
build.ps1
build.ps1
if (-not (Test-Path env:APPVEYOR_BUILD_NUMBER)) { $env:APPVEYOR_BUILD_NUMBER = '0' } $suffix = "build." + $env:APPVEYOR_BUILD_NUMBER $TOOLS_DIR = Join-Path $PSScriptRoot "tools" $NUGET_EXE = Join-Path $TOOLS_DIR "nuget.exe" dotnet build src\LibLog.sln -c Release dotnet test src\LibLog.Tests -c Release --no-build Get-...
function Run-Task { param( [scriptblock] $block ) & $block if($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } } if (-not (Test-Path env:APPVEYOR_BUILD_NUMBER)) { $env:APPVEYOR_BUILD_NUMBER = '0' } $suffix = "build." + $env:APPVEYOR_BUILD_NUMBER $TOOLS_DIR = Join-Path $PSScriptRoot...
Exit script of either of the dotnet task fails.
Exit script of either of the dotnet task fails.
PowerShell
mit
damianh/LibLog
powershell
## Code Before: if (-not (Test-Path env:APPVEYOR_BUILD_NUMBER)) { $env:APPVEYOR_BUILD_NUMBER = '0' } $suffix = "build." + $env:APPVEYOR_BUILD_NUMBER $TOOLS_DIR = Join-Path $PSScriptRoot "tools" $NUGET_EXE = Join-Path $TOOLS_DIR "nuget.exe" dotnet build src\LibLog.sln -c Release dotnet test src\LibLog.Tests -c Release ...
+ function Run-Task + { + param( + [scriptblock] $block + ) + + & $block + + if($LASTEXITCODE -ne 0) + { + exit $LASTEXITCODE + } + } + if (-not (Test-Path env:APPVEYOR_BUILD_NUMBER)) { $env:APPVEYOR_BUILD_NUMBER = '0' } $suffix = "build." + $env:APPVEYOR_BUILD_NUMBER $T...
18
0.947368
16
2
750e0e8e6787bd93a5a3ee6ad5fd4ea423b37484
metadata.rb
metadata.rb
name 'php' maintainer 'Chef Software, Inc.' maintainer_email 'cookbooks@getchef.com' license 'Apache 2.0' description 'Installs and maintains php and php modules' version '1.7.0' depends 'build-essential' depends 'xml' depends 'mysql', '>= 6.0.0' depends 'yum-epel' depend...
name 'php' maintainer 'Chef Software, Inc.' maintainer_email 'cookbooks@getchef.com' license 'Apache 2.0' description 'Installs and maintains php and php modules' version '1.7.0' depends 'build-essential' depends 'xml' depends 'mysql' depends 'yum-epel' depends 'windows' ...
Remove mysql cookbook version constraint
Remove mysql cookbook version constraint
Ruby
apache-2.0
beubi/cookbook-php,beubi/cookbook-php
ruby
## Code Before: name 'php' maintainer 'Chef Software, Inc.' maintainer_email 'cookbooks@getchef.com' license 'Apache 2.0' description 'Installs and maintains php and php modules' version '1.7.0' depends 'build-essential' depends 'xml' depends 'mysql', '>= 6.0.0' depends '...
name 'php' maintainer 'Chef Software, Inc.' maintainer_email 'cookbooks@getchef.com' license 'Apache 2.0' description 'Installs and maintains php and php modules' version '1.7.0' depends 'build-essential' depends 'xml' - depends 'mysql', '>= 6.0.0' + dep...
2
0.064516
1
1
567d28fcdaf9215a446ddea7346cd12352090ee0
config/test.js
config/test.js
module.exports = { database: 'factory-girl-sequelize', options: { dialect: 'sqlite', storage: 'test/tmp/test.db', logging: null } };
module.exports = { database: 'factory-girl-sequelize', options: { dialect: 'sqlite', storage: ':memory:', logging: null } };
Change to use in-memory SQLite
Change to use in-memory SQLite
JavaScript
mit
aexmachina/factory-girl-sequelize
javascript
## Code Before: module.exports = { database: 'factory-girl-sequelize', options: { dialect: 'sqlite', storage: 'test/tmp/test.db', logging: null } }; ## Instruction: Change to use in-memory SQLite ## Code After: module.exports = { database: 'factory-girl-sequelize', options: { dialect: 'sqlit...
module.exports = { database: 'factory-girl-sequelize', options: { dialect: 'sqlite', - storage: 'test/tmp/test.db', + storage: ':memory:', logging: null } };
2
0.25
1
1
3ec5d9520dd17bb6e38d88e82bbc0a3b4e599fce
setup.cfg
setup.cfg
[metadata] name = django-analog version = 1.1.0.pre+gitver description = Simple per-model log models for Django apps long_description = file: README.rst keywords = django, logging url = https://github.com/andersinno/django-analog author = Anders Innovations author_email = support@anders.fi license = MIT license_file = ...
[metadata] name = django-analog version = 1.1.0.pre+gitver description = Simple per-model log models for Django apps long_description = file: README.rst keywords = django, logging url = https://github.com/andersinno/django-analog author = Anders Innovations author_email = support@anders.fi license = MIT license_file = ...
Mark wheel as no longer universal
Mark wheel as no longer universal
INI
mit
andersinno/django-analog
ini
## Code Before: [metadata] name = django-analog version = 1.1.0.pre+gitver description = Simple per-model log models for Django apps long_description = file: README.rst keywords = django, logging url = https://github.com/andersinno/django-analog author = Anders Innovations author_email = support@anders.fi license = MIT...
[metadata] name = django-analog version = 1.1.0.pre+gitver description = Simple per-model log models for Django apps long_description = file: README.rst keywords = django, logging url = https://github.com/andersinno/django-analog author = Anders Innovations author_email = support@anders.fi license =...
3
0.04918
0
3
573d59b0daae33cfb61cc64c3a7003ecc82bc500
app/models/forem/ability.rb
app/models/forem/ability.rb
require 'cancan' module Forem module Ability include CanCan::Ability def self.included(target) target.class_eval do # Alias old class's initialize so we can get it to after # Otherwise initialize attempts to go to an initialize that doesn't take an arg alias_method :old_initial...
require 'cancan' module Forem module Ability include CanCan::Ability def self.included(target) target.class_eval do # Alias old class's initialize so we can get it to after # Otherwise initialize attempts to go to an initialize that doesn't take an arg alias_method :old_initial...
Remove erroneous can :read, :forums
Remove erroneous can :read, :forums
Ruby
mit
frankel/forem,dmitry-ilyashevich/forem,frankel/forem,dmitry-ilyashevich/forem
ruby
## Code Before: require 'cancan' module Forem module Ability include CanCan::Ability def self.included(target) target.class_eval do # Alias old class's initialize so we can get it to after # Otherwise initialize attempts to go to an initialize that doesn't take an arg alias_met...
require 'cancan' module Forem module Ability include CanCan::Ability def self.included(target) target.class_eval do # Alias old class's initialize so we can get it to after # Otherwise initialize attempts to go to an initialize that doesn't take an arg ali...
2
0.058824
0
2
4afaabee62e13b6cb1947106e93deb928451f65d
peril/compareReactionSchema.ts
peril/compareReactionSchema.ts
import { buildSchema } from "graphql" import { readFileSync } from "fs" const { diff: schemaDiff } = require("@graphql-inspector/core") import fetch from "node-fetch" import { warn } from "danger" // If there is a breaking change between the local schema, // and the current Reaction one, warn. export default async () ...
import { buildSchema } from "graphql" const { diff: schemaDiff } = require("@graphql-inspector/core") import fetch from "node-fetch" import { warn, danger } from "danger" // If there is a breaking change between the local schema, // and the current Reaction one, warn. export default async () => { const forcePackageJ...
Tweak schema check to infer URL to PR schema
[Peril] Tweak schema check to infer URL to PR schema
TypeScript
mit
artsy/metaphysics,artsy/metaphysics,artsy/metaphysics
typescript
## Code Before: import { buildSchema } from "graphql" import { readFileSync } from "fs" const { diff: schemaDiff } = require("@graphql-inspector/core") import fetch from "node-fetch" import { warn } from "danger" // If there is a breaking change between the local schema, // and the current Reaction one, warn. export d...
import { buildSchema } from "graphql" - import { readFileSync } from "fs" const { diff: schemaDiff } = require("@graphql-inspector/core") import fetch from "node-fetch" - import { warn } from "danger" + import { warn, danger } from "danger" ? ++++++++ // If there is a breaking change between th...
9
0.3
6
3
0999529f64a0b8ac8317ef1e941ed56bb834f7a6
freenas/scripts/api-v2.0-tests.sh
freenas/scripts/api-v2.0-tests.sh
PROGDIR="`realpath | sed 's|/scripts||g'`" ; export PROGDIR # Source our Testing functions . ${PROGDIR}/scripts/functions.sh . ${PROGDIR}/scripts/functions-tests.sh # Installl modules pip3.6 install requests ################################################################# # Run the tests now! ######################...
PROGDIR="`realpath | sed 's|/scripts||g'`" ; export PROGDIR # Source our Testing functions . ${PROGDIR}/scripts/functions.sh . ${PROGDIR}/scripts/functions-tests.sh # Installl modules pip3.6 install requests ################################################################# # Run the tests now! ######################...
Install middlewared.client with --single-version-externally-managed so it can be imported correctly
Install middlewared.client with --single-version-externally-managed so it can be imported correctly
Shell
bsd-2-clause
iXsystems/ixbuild,iXsystems/ix-tests,iXsystems/ix-tests
shell
## Code Before: PROGDIR="`realpath | sed 's|/scripts||g'`" ; export PROGDIR # Source our Testing functions . ${PROGDIR}/scripts/functions.sh . ${PROGDIR}/scripts/functions-tests.sh # Installl modules pip3.6 install requests ################################################################# # Run the tests now! ######...
PROGDIR="`realpath | sed 's|/scripts||g'`" ; export PROGDIR # Source our Testing functions . ${PROGDIR}/scripts/functions.sh . ${PROGDIR}/scripts/functions-tests.sh # Installl modules pip3.6 install requests ################################################################# # Run the tests now! ...
2
0.064516
1
1
89a25989d69a05a34a8c3b7ae6d7308444034741
lib/viera_play/player.rb
lib/viera_play/player.rb
module VieraPlay class Player def initialize(opts) @tv = TV.new(opts.fetch(:tv_control_url)) @file_path = opts.fetch(:file_path) @server = SingleFileServer.new(file_path, opts.fetch(:additional_mime_types, {})) end def call trap_interrupt play_and_wait end private ...
require "curses" module VieraPlay class Player def initialize(opts) @tv = TV.new(opts.fetch(:tv_control_url)) @file_path = opts.fetch(:file_path) @server = SingleFileServer.new(file_path, opts.fetch(:additional_mime_types, {})) end def call trap_interrupt play_and_wait ...
Add basic UI, including click to seek!
Add basic UI, including click to seek!
Ruby
mit
cwninja/viera_play
ruby
## Code Before: module VieraPlay class Player def initialize(opts) @tv = TV.new(opts.fetch(:tv_control_url)) @file_path = opts.fetch(:file_path) @server = SingleFileServer.new(file_path, opts.fetch(:additional_mime_types, {})) end def call trap_interrupt play_and_wait en...
+ require "curses" + module VieraPlay class Player def initialize(opts) @tv = TV.new(opts.fetch(:tv_control_url)) @file_path = opts.fetch(:file_path) @server = SingleFileServer.new(file_path, opts.fetch(:additional_mime_types, {})) end def call trap_interrupt ...
44
1.466667
44
0
4cc2c1880edd2462eeafbb000f922ce51a728703
elements-sk/package.json
elements-sk/package.json
{ "name": "elements-sk", "version": "2.2.0", "private": false, "description": "A set of light-weight custom elements with a uniform style.", "main": "index.js", "homepage": "https://github.com/google/skia-buildbot/tree/master/ap/skia-elements", "license": "Apache-2.0" }
{ "name": "elements-sk", "version": "2.2.1", "private": false, "description": "A set of light-weight custom elements with a uniform style.", "main": "index.js", "homepage": "https://github.com/google/elements-sk/", "license": "Apache-2.0" }
Update homepage since the repo has moved.
Update homepage since the repo has moved.
JSON
apache-2.0
google/elements-sk,google/elements-sk,google/elements-sk,google/elements-sk
json
## Code Before: { "name": "elements-sk", "version": "2.2.0", "private": false, "description": "A set of light-weight custom elements with a uniform style.", "main": "index.js", "homepage": "https://github.com/google/skia-buildbot/tree/master/ap/skia-elements", "license": "Apache-2.0" } ## Instruction: Up...
{ "name": "elements-sk", - "version": "2.2.0", ? ^ + "version": "2.2.1", ? ^ "private": false, "description": "A set of light-weight custom elements with a uniform style.", "main": "index.js", - "homepage": "https://github.com/google/skia-buildbot/tree/maste...
4
0.444444
2
2
111cfeaca0bdca16a24f03e28cf7590b2fce5e2d
core/array/constructor_spec.rb
core/array/constructor_spec.rb
require File.expand_path('../../../spec_helper', __FILE__) require File.expand_path('../fixtures/classes', __FILE__) describe "Array.[]" do it "returns a new array populated with the given elements" do obj = Object.new Array.[](5, true, nil, 'a', "Ruby", obj).should == [5, true, nil, "a", "Ruby", obj] a...
require File.expand_path('../../../spec_helper', __FILE__) require File.expand_path('../fixtures/classes', __FILE__) describe "Array.[]" do it "returns a new array populated with the given elements" do obj = Object.new Array.[](5, true, nil, 'a', "Ruby", obj).should == [5, true, nil, "a", "Ruby", obj] a...
Fix spec instance~class matchers for Array.[]
Fix spec instance~class matchers for Array.[]
Ruby
mit
kachick/rubyspec,eregon/rubyspec,DavidEGrayson/rubyspec,BanzaiMan/rubyspec,bl4ckdu5t/rubyspec,lucaspinto/rubyspec,scooter-dangle/rubyspec,askl56/rubyspec,agrimm/rubyspec,saturnflyer/rubyspec,chesterbr/rubyspec,ruby/rubyspec,Aesthetikx/rubyspec,eregon/rubyspec,mbj/rubyspec,sferik/rubyspec,yaauie/rubyspec,mbj/rubyspec,sa...
ruby
## Code Before: require File.expand_path('../../../spec_helper', __FILE__) require File.expand_path('../fixtures/classes', __FILE__) describe "Array.[]" do it "returns a new array populated with the given elements" do obj = Object.new Array.[](5, true, nil, 'a', "Ruby", obj).should == [5, true, nil, "a", "Ru...
require File.expand_path('../../../spec_helper', __FILE__) require File.expand_path('../fixtures/classes', __FILE__) describe "Array.[]" do it "returns a new array populated with the given elements" do obj = Object.new Array.[](5, true, nil, 'a', "Ruby", obj).should == [5, true, nil, "a", "Ruby...
4
0.166667
2
2
5f06f558722a68b07c8e123b05c49d3bbece86fb
app/views/talks/_form.html.erb
app/views/talks/_form.html.erb
<%= form_for(@talk) do |f| %> <% if @talk.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@talk.errors.count, "error") %> prohibited this talk from being saved:</h2> <ul> <% @talk.errors.full_messages.each do |message| %> <li><%= message %></li> <% end %> </ul>...
<%= form_for(@talk) do |f| %> <% if @talk.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@talk.errors.count, "error") %> prohibited this talk from being saved:</h2> <ul> <% @talk.errors.full_messages.each do |message| %> <li><%= message %></li> <% end %> </ul>...
Add dropdown to add a meeting to the talk
Add dropdown to add a meeting to the talk
HTML+ERB
unlicense
danascheider/testrubypdx,danascheider/testrubypdx,danascheider/testrubypdx
html+erb
## Code Before: <%= form_for(@talk) do |f| %> <% if @talk.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@talk.errors.count, "error") %> prohibited this talk from being saved:</h2> <ul> <% @talk.errors.full_messages.each do |message| %> <li><%= message %></li> <% en...
<%= form_for(@talk) do |f| %> <% if @talk.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@talk.errors.count, "error") %> prohibited this talk from being saved:</h2> <ul> <% @talk.errors.full_messages.each do |message| %> <li><%= message %></li> <% ...
12
0.363636
8
4
ab856c2e092814e87ffd840b25fe9a273b3cc173
requirements.txt
requirements.txt
betamax==0.5.0 nose==1.3.7 PyYAML==3.11 requests==2.7.0 wheel==0.24.0
betamax==0.5.0 matplotlib==1.4.3 nose==1.3.7 numpy==1.9.2 pyparsing==2.0.3 python-dateutil==2.4.2 pytz==2015.4 PyYAML==3.11 requests==2.7.0 six==1.9.0 wheel==0.24.0
Add matplotlib package (and it's dependencies).
Add matplotlib package (and it's dependencies).
Text
mit
mygulamali/rajab_roza
text
## Code Before: betamax==0.5.0 nose==1.3.7 PyYAML==3.11 requests==2.7.0 wheel==0.24.0 ## Instruction: Add matplotlib package (and it's dependencies). ## Code After: betamax==0.5.0 matplotlib==1.4.3 nose==1.3.7 numpy==1.9.2 pyparsing==2.0.3 python-dateutil==2.4.2 pytz==2015.4 PyYAML==3.11 requests==2.7.0 six==1.9.0 wh...
betamax==0.5.0 + matplotlib==1.4.3 nose==1.3.7 + numpy==1.9.2 + pyparsing==2.0.3 + python-dateutil==2.4.2 + pytz==2015.4 PyYAML==3.11 requests==2.7.0 + six==1.9.0 wheel==0.24.0
6
1.2
6
0
720102873c40b56b03acabc5a4a161d8df9029bb
src/main/java/org/ndexbio/model/object/network/Namespace.java
src/main/java/org/ndexbio/model/object/network/Namespace.java
package org.ndexbio.model.object.network; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @JsonIgnoreProperties(ignoreUnknown = true) public class Namespace extends NetworkElement { private String _prefix; private String _uri; /*************************************************...
package org.ndexbio.model.object.network; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @JsonIgnoreProperties(ignoreUnknown = true) public class Namespace extends PropertiedNetworkElement { private String _prefix; private String _uri; /***************************************...
Extend namespace class from PropertiedNetworkElement.
Extend namespace class from PropertiedNetworkElement.
Java
bsd-3-clause
ndexbio/ndex-object-model
java
## Code Before: package org.ndexbio.model.object.network; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @JsonIgnoreProperties(ignoreUnknown = true) public class Namespace extends NetworkElement { private String _prefix; private String _uri; /*********************************...
package org.ndexbio.model.object.network; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @JsonIgnoreProperties(ignoreUnknown = true) - public class Namespace extends NetworkElement + public class Namespace extends PropertiedNetworkElement ? ++++++++++ { ...
2
0.046512
1
1
5006643b70ac72a6a1cdde851b9b1a416c55f829
app/assets/javascripts/comment_editor.js
app/assets/javascripts/comment_editor.js
$(function(){ // initialize tinymce object for posts editor tinymce.init({ selector: '#comment_editor', width: 600, height: 300, menubar: false, plugins: [ 'advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker', 'searchreplace wordcount visualbloc...
$(function(){ // initialize tinymce object for posts editor tinymce.init({ selector: '#comment_editor', width: 600, menubar: false, plugins: [ 'advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker', 'searchreplace wordcount visualblocks visualchars co...
Change height of comment box
Change height of comment box
JavaScript
mit
pratikmshah/myblog,pratikmshah/myblog,pratikmshah/myblog
javascript
## Code Before: $(function(){ // initialize tinymce object for posts editor tinymce.init({ selector: '#comment_editor', width: 600, height: 300, menubar: false, plugins: [ 'advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker', 'searchreplace word...
$(function(){ // initialize tinymce object for posts editor tinymce.init({ selector: '#comment_editor', width: 600, - height: 300, menubar: false, plugins: [ 'advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker', 'searchreplac...
1
0.058824
0
1
4c2cc0e36c01c13532e70dfc7ac0e1fc3cbe1336
.travis.yml
.travis.yml
language: c compiler: - gcc - clang script: autoreconf -f -i && CFLAGS=-Werror ./configure && make check
env: matrix: - JANSSON_BUILD_METHOD=cmake JANSSON_CMAKE_OPTIONS="-DJANSSON_TEST_WITH_VALGRIND=ON" JANSSON_EXTRA_INSTALL="valgrind" - JANSSON_BUILD_METHOD=autotools language: c compiler: - gcc - clang install: - sudo apt-get update -qq - sudo apt-get install -y -qq cmake $JANSSON_EXTRA_INSTALL script: ...
Add CMake build to Travis config.
Add CMake build to Travis config.
YAML
mit
OlehKulykov/jansson,Mephistophiles/jansson,bstarynk/jansson,markalanj/jansson,markalanj/jansson,akheron/jansson,wirebirdlabs/featherweight-jansson,AmesianX/jansson,liu3tao/jansson,Vorne/jansson,slackner/jansson,chrullrich/jansson,Mephistophiles/jansson,firepick1/jansson,OlehKulykov/jansson,AmesianX/jansson,markalanj/ja...
yaml
## Code Before: language: c compiler: - gcc - clang script: autoreconf -f -i && CFLAGS=-Werror ./configure && make check ## Instruction: Add CMake build to Travis config. ## Code After: env: matrix: - JANSSON_BUILD_METHOD=cmake JANSSON_CMAKE_OPTIONS="-DJANSSON_TEST_WITH_VALGRIND=ON" JANSSON_EXTRA_INSTALL="v...
+ env: + matrix: + - JANSSON_BUILD_METHOD=cmake JANSSON_CMAKE_OPTIONS="-DJANSSON_TEST_WITH_VALGRIND=ON" JANSSON_EXTRA_INSTALL="valgrind" + - JANSSON_BUILD_METHOD=autotools language: c compiler: - gcc - clang - script: autoreconf -f -i && CFLAGS=-Werror ./configure && make check + install: + - su...
11
2.2
10
1
f338a8952e41a0955b40c895c3f031091d1d0f3f
pyproject.toml
pyproject.toml
[build-system] requires = ["setuptools", "wheel"] [tool.black] line-length = 99 skip-string-normalization = true target-version = ['py27', 'py34', 'py35', 'py36', 'py37'] # Only include files in /flexget/, or directly in project root include = '^/(flexget/.*)?[^/]*\.pyi?$' exclude = ''' ( /( \.git | \.venv...
[build-system] requires = ["setuptools", "wheel"] [tool.black] line-length = 99 skip-string-normalization = true target-version = ['py36', 'py37', 'py38'] # Only include files in /flexget/, or directly in project root include = '^/(flexget/.*)?[^/]*\.pyi?$' exclude = ''' ( /( \.git | \.venv | \.idea ...
Update target-version config for black
Update target-version config for black
TOML
mit
Flexget/Flexget,malkavi/Flexget,crawln45/Flexget,crawln45/Flexget,ianstalk/Flexget,Flexget/Flexget,Flexget/Flexget,crawln45/Flexget,malkavi/Flexget,crawln45/Flexget,ianstalk/Flexget,Flexget/Flexget,ianstalk/Flexget,malkavi/Flexget,malkavi/Flexget
toml
## Code Before: [build-system] requires = ["setuptools", "wheel"] [tool.black] line-length = 99 skip-string-normalization = true target-version = ['py27', 'py34', 'py35', 'py36', 'py37'] # Only include files in /flexget/, or directly in project root include = '^/(flexget/.*)?[^/]*\.pyi?$' exclude = ''' ( /( \....
[build-system] requires = ["setuptools", "wheel"] [tool.black] line-length = 99 skip-string-normalization = true - target-version = ['py27', 'py34', 'py35', 'py36', 'py37'] + target-version = ['py36', 'py37', 'py38'] # Only include files in /flexget/, or directly in project root include = '^/(flexget/....
2
0.0625
1
1
93510e324d577f43e69bb5f87fdb742e3871fc17
.travis.yml
.travis.yml
language: php php: - "5.3" - "5.4" - "5.5" - "hhvm" before_script: - curl -s https://getcomposer.org/installer | php && php composer.phar update --dev script: - mkdir -p build/logs - php vendor/bin/phpunit --coverage-clover ./build/logs/clover.xml -c SilMock/tests/phpunit.xml SilMock/tests/ after_scr...
language: php php: - "5.6" - "7.0" - "7.1" before_script: - curl -s https://getcomposer.org/installer | php && php composer.phar update --dev script: - mkdir -p build/logs - php vendor/bin/phpunit --coverage-clover ./build/logs/clover.xml -c SilMock/tests/phpunit.xml SilMock/tests/ after_script: - ph...
Test against fewer, more recent PHP versions
Test against fewer, more recent PHP versions
YAML
mit
silinternational/google-api-php-client-mock,silinternational/google-api-php-client-mock
yaml
## Code Before: language: php php: - "5.3" - "5.4" - "5.5" - "hhvm" before_script: - curl -s https://getcomposer.org/installer | php && php composer.phar update --dev script: - mkdir -p build/logs - php vendor/bin/phpunit --coverage-clover ./build/logs/clover.xml -c SilMock/tests/phpunit.xml SilMock/tes...
language: php php: - - "5.3" ? ^ + - "5.6" ? ^ - - "5.4" ? ^ ^ + - "7.0" ? ^ ^ - - "5.5" ? ^ ^ + - "7.1" ? ^ ^ - - "hhvm" before_script: - curl -s https://getcomposer.org/installer | php && php composer.phar update --dev script: - mkdir -p buil...
7
0.4375
3
4
4d3323e58fb9bd2d2a122b6f2ee54abbc4c39c41
vendor/assets/javascripts/jsboot.js
vendor/assets/javascripts/jsboot.js
function Jsboot(app, $) { var jsb; app.jsboot = app.jsboot || { callbacks: {} }; jsb = app.jsboot; // callback functions expect one parameter, a // data object that is stored in the inline // application/json script tags jsb.on = function(key, fun) { key = key.replace('#', '-'); jsb.callbacks['j...
function Jsboot(app, $) { var jsb; app.jsboot = app.jsboot || { callbacks: {} }; jsb = app.jsboot; // callback functions expect one parameter, a // data object that is stored in the inline // application/json script tags jsb.on = function(key, fun) { key = key.replace('#', '-'); jsb.callbacks['j...
Handle cases where a boot tag has no data
Handle cases where a boot tag has no data This is useful if you want to use js boot but don't have data you need to provide for bootstrapping
JavaScript
mit
Kajabi/jsboot-rails,Kajabi/jsboot-rails
javascript
## Code Before: function Jsboot(app, $) { var jsb; app.jsboot = app.jsboot || { callbacks: {} }; jsb = app.jsboot; // callback functions expect one parameter, a // data object that is stored in the inline // application/json script tags jsb.on = function(key, fun) { key = key.replace('#', '-'); ...
function Jsboot(app, $) { var jsb; app.jsboot = app.jsboot || { callbacks: {} }; jsb = app.jsboot; // callback functions expect one parameter, a // data object that is stored in the inline // application/json script tags jsb.on = function(key, fun) { key = key.replace('#', '-')...
8
0.205128
7
1
cebdb4653789554436ad5f5aca9decb289b606bc
app/helpers/admin/editions_helper.rb
app/helpers/admin/editions_helper.rb
module Admin::EditionsHelper def format_content_diff( body ) ContentDiffFormatter.new(body).to_html end # All guides should have at least one part # Those parts should be in the correct order def tidy_up_parts_before_editing(resource) resource.parts.build if resource.parts.empty? resource.parts.r...
module Admin::EditionsHelper def format_content_diff( body ) ContentDiffFormatter.new(body).to_html end end
Remove helper of a guide having at least one part
Remove helper of a guide having at least one part This enforcement, needs to be done on a model level, not within a view helper.
Ruby
mit
telekomatrix/publisher,leftees/publisher,theodi/publisher,telekomatrix/publisher,leftees/publisher,telekomatrix/publisher,theodi/publisher,alphagov/publisher,alphagov/publisher,theodi/publisher,theodi/publisher,alphagov/publisher,telekomatrix/publisher,leftees/publisher,leftees/publisher
ruby
## Code Before: module Admin::EditionsHelper def format_content_diff( body ) ContentDiffFormatter.new(body).to_html end # All guides should have at least one part # Those parts should be in the correct order def tidy_up_parts_before_editing(resource) resource.parts.build if resource.parts.empty? ...
module Admin::EditionsHelper def format_content_diff( body ) ContentDiffFormatter.new(body).to_html end - - # All guides should have at least one part - # Those parts should be in the correct order - def tidy_up_parts_before_editing(resource) - resource.parts.build if resource.parts.empty? - ...
7
0.583333
0
7
27112782272e1be81a2ea021d9ec24908c1201f0
app/views/admin/editions/_alerts.html.erb
app/views/admin/editions/_alerts.html.erb
<% if edition.force_published? %> <div class="alert alert-error force_published"> <p><strong>Warning</strong> This edition was force published and has not yet been reviewed by a second pair of eyes.</p> <% if edition.approvable_retrospectively_by?(current_user) %> <p><%= link_to "View this on the websi...
<% if edition.force_published? %> <div class="alert alert-error force_published"> <p><strong>Warning</strong> This edition was force published and has not yet been reviewed by a second pair of eyes.</p> <% if edition.approvable_retrospectively_by?(current_user) %> <p><%= link_to "View this on the websi...
Edit warning for force publish flag
Edit warning for force publish flag https://www.pivotaltracker.com/story/show/56117956
HTML+ERB
mit
alphagov/whitehall,ggoral/whitehall,robinwhittleton/whitehall,ggoral/whitehall,hotvulcan/whitehall,YOTOV-LIMITED/whitehall,alphagov/whitehall,askl56/whitehall,askl56/whitehall,askl56/whitehall,askl56/whitehall,alphagov/whitehall,hotvulcan/whitehall,YOTOV-LIMITED/whitehall,ggoral/whitehall,alphagov/whitehall,robinwhittl...
html+erb
## Code Before: <% if edition.force_published? %> <div class="alert alert-error force_published"> <p><strong>Warning</strong> This edition was force published and has not yet been reviewed by a second pair of eyes.</p> <% if edition.approvable_retrospectively_by?(current_user) %> <p><%= link_to "View t...
<% if edition.force_published? %> <div class="alert alert-error force_published"> <p><strong>Warning</strong> This edition was force published and has not yet been reviewed by a second pair of eyes.</p> <% if edition.approvable_retrospectively_by?(current_user) %> <p><%= link_to "View this ...
4
0.153846
3
1
ee3bbaf7798915b1be92ccfc8848b31f93b51a65
quicklook.sh
quicklook.sh
brew cask install qlmarkdown # Preview plain text files without a file extension (README, CHANGELOG, etc.). brew cask install qlstephen # Preview source code files for various programming languages, with syntax highlighting. brew cask install qlcolorcode # Preview JSON files. brew cask install quicklook-json # Prev...
brew cask install qlmarkdown # Preview plain text files without a file extension (README, CHANGELOG, etc.). brew cask install qlstephen # Preview source code files for various programming languages, with syntax highlighting. brew cask install qlcolorcode # Preview JSON files. brew cask install quicklook-json # Prev...
Enable text selection in QuickLook views.
Enable text selection in QuickLook views.
Shell
mit
boochtek/mac_config,boochtek/mac_config
shell
## Code Before: brew cask install qlmarkdown # Preview plain text files without a file extension (README, CHANGELOG, etc.). brew cask install qlstephen # Preview source code files for various programming languages, with syntax highlighting. brew cask install qlcolorcode # Preview JSON files. brew cask install quickl...
brew cask install qlmarkdown # Preview plain text files without a file extension (README, CHANGELOG, etc.). brew cask install qlstephen # Preview source code files for various programming languages, with syntax highlighting. brew cask install qlcolorcode # Preview JSON files. brew cask install qu...
4
0.16
4
0
246dd696b053acfb5d01986498f879268d59a5c8
app/views/documents/_document_show.html.erb
app/views/documents/_document_show.html.erb
<%= div_for document, :class => 'content_size' do %> <div class="document_show"> <%= link_to "", document, :class => icon75_class_for(document), :alt => document.title %> </div> <% end %>
<%= div_for document, :class => 'content_size' do %> <div class="document_show"> <iframe src="http://docs.google.com/viewer?url=http%3A%2F%2Fvishub.global.dit.upm.es<%=u download_document_path(document)%>&embedded=true" width="600" height="480" style="border: none;"></iframe> </div> <% end %>
Add google docs embedded view
Add google docs embedded view
HTML+ERB
agpl-3.0
rogervaas/vish,ging/vish_orange,suec78/vish_storyrobin,nathanV38/vishTst,agordillo/vish,rogervaas/vish,ging/vish,ging/vish_orange,agordillo/vish,rogervaas/vish,suec78/vish_storyrobin,ging/vish,ging/vish,agordillo/vish,agordillo/vish,ging/vish_orange,nathanV38/vishTst,ging/vish,suec78/vish_storyrobin,ging/vish_orange,ro...
html+erb
## Code Before: <%= div_for document, :class => 'content_size' do %> <div class="document_show"> <%= link_to "", document, :class => icon75_class_for(document), :alt => document.title %> </div> <% end %> ## Instruction: Add google docs embedded view ## Code After: <%= div_for document, :class => 'content_si...
<%= div_for document, :class => 'content_size' do %> <div class="document_show"> - <%= link_to "", document, :class => icon75_class_for(document), :alt => document.title %> + <iframe src="http://docs.google.com/viewer?url=http%3A%2F%2Fvishub.global.dit.upm.es<%=u download_document_path(document)%>&embe...
2
0.285714
1
1
a96dee7b1bff7fb409a798d52d283cd1b9c25175
app/app/config/routes.jsx
app/app/config/routes.jsx
import React from 'react' import Main from '../components/Main.jsx' import CreateUser from '../components/CreateUser.jsx' import CreateSerf from '../components/CreateSerf.jsx' import Home from '../components/Home.jsx' import {Route, IndexRoute} from 'react-router' const routes = () => <Route path="/" component={Main...
import React from 'react' import Main from '../components/Main.jsx' import CreateUser from '../components/user/CreateUser.jsx' import Home from '../components/home/Home.jsx' import Login from '../components/user/Login.jsx' import {Route, IndexRoute} from 'react-router' const CreateUserWrapper = () => <CreateUser myTyp...
Add new route for sessions
Add new route for sessions
JSX
mit
taodav/MicroSerfs,taodav/MicroSerfs
jsx
## Code Before: import React from 'react' import Main from '../components/Main.jsx' import CreateUser from '../components/CreateUser.jsx' import CreateSerf from '../components/CreateSerf.jsx' import Home from '../components/Home.jsx' import {Route, IndexRoute} from 'react-router' const routes = () => <Route path="/"...
import React from 'react' import Main from '../components/Main.jsx' - import CreateUser from '../components/CreateUser.jsx' + import CreateUser from '../components/user/CreateUser.jsx' ? +++++ - import CreateSerf from '../components/CreateSerf.jsx' - import Home from '../compo...
15
0.9375
10
5
020b7141e60007763068eb5ef51674f14b8aad94
spec/models/site_spec.rb
spec/models/site_spec.rb
require 'rails_helper' RSpec.describe Site, 'site attribut testing' do it 'cannot save without a name' do site = build(:site, name: nil) result = site.save expect(result).to be false end it 'can have many tracks' do site = build(:site, :has_tracks) expect(site.tracks.count).to eq(3) end en...
require 'rails_helper' RSpec.describe Site, "validations" do it { is_expected.to validate_presence_of(:name) } end RSpec.describe Site, 'obsolete association testing' do it 'can have many tracks' do site = build(:site, :has_tracks) expect(site.tracks.count).to eq(3) end end
Update site spec with shoulda gem
Update site spec with shoulda gem
Ruby
mit
colinfike/ploosic,colinfike/ploosic,colinfike/ploosic,colinfike/ploosic
ruby
## Code Before: require 'rails_helper' RSpec.describe Site, 'site attribut testing' do it 'cannot save without a name' do site = build(:site, name: nil) result = site.save expect(result).to be false end it 'can have many tracks' do site = build(:site, :has_tracks) expect(site.tracks.count).t...
require 'rails_helper' + RSpec.describe Site, "validations" do + it { is_expected.to validate_presence_of(:name) } - RSpec.describe Site, 'site attribut testing' do - it 'cannot save without a name' do - site = build(:site, name: nil) - result = site.save - expect(result).to be false - end ? -- ...
10
0.714286
4
6
9f784fbd423a95b98d452a6de80ad4779c8c232e
docs/documentation/autoloading_classes.rst
docs/documentation/autoloading_classes.rst
Autoloading classes =================== Ouzo is compliant with [PSR-4](http://www.php-fig.org/psr/psr-4/) specification. By default newly created project derived from ouzo-app will have [PSR-4](http://www.php-fig.org/psr/psr-4/) structure as well. However, you can use any class loading method: [PSR-4](http://www.php-f...
Autoloading classes =================== Ouzo is compliant with `PSR-4`_ specification. By default newly created project derived from ouzo-app will have `PSR-4`_ structure as well. However, you can use any class loading method: `PSR-4`_, `PSR-0`_, classmap or whatever. .. _`PSR-4`: http://www.php-fig.org/psr/psr-4/ .....
Edit docs - autoloading classes.
Edit docs - autoloading classes.
reStructuredText
mit
letsdrink/ouzo,letsdrink/ouzo,letsdrink/ouzo
restructuredtext
## Code Before: Autoloading classes =================== Ouzo is compliant with [PSR-4](http://www.php-fig.org/psr/psr-4/) specification. By default newly created project derived from ouzo-app will have [PSR-4](http://www.php-fig.org/psr/psr-4/) structure as well. However, you can use any class loading method: [PSR-4](...
Autoloading classes =================== - Ouzo is compliant with [PSR-4](http://www.php-fig.org/psr/psr-4/) specification. By default newly created project derived from ouzo-app will have [PSR-4](http://www.php-fig.org/psr/psr-4/) structure as well. However, you can use any class loading method: [PSR-4](http://w...
17
0.85
12
5
d2130b64c63bdcfdea854db39fb21c7efe0b24e1
tests/test_httpheader.py
tests/test_httpheader.py
import pytest pytestmark = pytest.mark.asyncio async def test_redirection(get_version): assert await get_version("jmeter-plugins-manager", { "source": "httpheader", "url": "https://www.unifiedremote.com/download/linux-x64-deb", "regex": r'urserver-([\d.]+).deb', }) != None
import pytest pytestmark = pytest.mark.asyncio async def test_redirection(get_version): assert await get_version("unifiedremote", { "source": "httpheader", "url": "https://www.unifiedremote.com/download/linux-x64-deb", "regex": r'urserver-([\d.]+).deb', }) != None
Correct package name in httpheader test
Correct package name in httpheader test
Python
mit
lilydjwg/nvchecker
python
## Code Before: import pytest pytestmark = pytest.mark.asyncio async def test_redirection(get_version): assert await get_version("jmeter-plugins-manager", { "source": "httpheader", "url": "https://www.unifiedremote.com/download/linux-x64-deb", "regex": r'urserver-([\d.]+).deb', }) != ...
import pytest pytestmark = pytest.mark.asyncio async def test_redirection(get_version): - assert await get_version("jmeter-plugins-manager", { + assert await get_version("unifiedremote", { "source": "httpheader", "url": "https://www.unifiedremote.com/download/linux-x64-deb", ...
2
0.166667
1
1
87f7e19542e9c0b64d67c21b6b8178c7d7cbc343
.travis.yml
.travis.yml
language: go sudo: required before_install: # Queue (Beanstalkd) - sudo apt-get update -qq - sudo apt-get install -qq beanstalkd - go get github.com/BurntSushi/toml - go get github.com/rakyll/statik - go get github.com/rakyll/statik/fs - go get -d -t -v ./... && go build -v ./... - beanstalkd -v - b...
language: go sudo: required before_install: # Queue (Beanstalkd) - sudo apt-get update -qq - sudo apt-get install -qq beanstalkd - go get github.com/BurntSushi/toml - go get github.com/rakyll/statik - go get github.com/rakyll/statik/fs - go get -d -t -v ./... && go build -v ./... - beanstalkd -v - b...
Update Travis CI to include GOARCH=386 tests
Update Travis CI to include GOARCH=386 tests
YAML
mit
xuri/aurora,Luxurioust/aurora,xuri/aurora,xuri/aurora,Luxurioust/aurora,Luxurioust/aurora
yaml
## Code Before: language: go sudo: required before_install: # Queue (Beanstalkd) - sudo apt-get update -qq - sudo apt-get install -qq beanstalkd - go get github.com/BurntSushi/toml - go get github.com/rakyll/statik - go get github.com/rakyll/statik/fs - go get -d -t -v ./... && go build -v ./... - bea...
language: go sudo: required before_install: # Queue (Beanstalkd) - sudo apt-get update -qq - sudo apt-get install -qq beanstalkd - go get github.com/BurntSushi/toml - go get github.com/rakyll/statik - go get github.com/rakyll/statik/fs - go get -d -t -v ./... && go build -v ./......
9
0.333333
9
0
7cbdde4d8fa9855682e25b80056eb49e2847c99d
Sources/App/Models/Sighting.swift
Sources/App/Models/Sighting.swift
import Vapor import HTTP import Node import Foundation final class Sighting: Model { var id: Node? var bird: String var time: Int var exists: Bool = false init(bird: String, time: Double) { self.bird = bird self.time = Int(time) } convenience init(bird: String) { ...
import Vapor import HTTP import Node import Foundation final class Sighting: Model { var id: Node? var bird: String var time: Int var exists: Bool = false init(bird: String, time: Double) { self.bird = bird self.time = Int(time) } convenience init(bird: String) { ...
Use readable date in sightings
Use readable date in sightings
Swift
mit
imeraj/TestApp-Vapor1.0,imeraj/TestApp-Vapor1.0
swift
## Code Before: import Vapor import HTTP import Node import Foundation final class Sighting: Model { var id: Node? var bird: String var time: Int var exists: Bool = false init(bird: String, time: Double) { self.bird = bird self.time = Int(time) } convenience init(b...
import Vapor import HTTP import Node import Foundation final class Sighting: Model { var id: Node? var bird: String var time: Int var exists: Bool = false init(bird: String, time: Double) { self.bird = bird self.time = Int(time) } ...
3
0.06383
2
1
d68ce51843726f2c5123a8f0aafefa9d82a15028
core/src/main/scala/doobie/enum/parametermode.scala
core/src/main/scala/doobie/enum/parametermode.scala
package doobie.enum import doobie.util.invariant._ import java.sql.ParameterMetaData._ import scalaz.Equal import scalaz.std.anyVal.intInstance object parametermode { /** @group Implementation */ sealed abstract class ParameterMode(val toInt: Int) /** @group Values */ case object ModeIn extends Parameter...
package doobie.enum import doobie.util.invariant._ import java.sql.ParameterMetaData._ import scalaz.Equal import scalaz.std.anyVal.intInstance object parametermode { /** @group Implementation */ sealed abstract class ParameterMode(val toInt: Int) /** @group Values */ case object ModeIn extends Paramet...
Add ModeUnknown to ParameterMode enum
Add ModeUnknown to ParameterMode enum
Scala
mit
refried/doobie,refried/doobie,tpolecat/doobie,wedens/doobie,beni55/doobie,wedens/doobie,coltfred/doobie,jamescway/doobie,rperry/doobie,rperry/doobie,coltfred/doobie,beni55/doobie,jamescway/doobie
scala
## Code Before: package doobie.enum import doobie.util.invariant._ import java.sql.ParameterMetaData._ import scalaz.Equal import scalaz.std.anyVal.intInstance object parametermode { /** @group Implementation */ sealed abstract class ParameterMode(val toInt: Int) /** @group Values */ case object ModeIn e...
package doobie.enum import doobie.util.invariant._ import java.sql.ParameterMetaData._ import scalaz.Equal import scalaz.std.anyVal.intInstance object parametermode { /** @group Implementation */ sealed abstract class ParameterMode(val toInt: Int) - /** @group Values */ case obje...
14
0.378378
8
6
116f1eee77abe96929663629bb1519e700641c91
app/views/internal_results_mailer/send_results.txt.erb
app/views/internal_results_mailer/send_results.txt.erb
Results for <%= @test_run.skill_test.title %> Total score: <%= number_to_percentage(@test_run.score, precision:2)%> Time taken: <%= "#{'%02i' % @time_taken[:minutes]}:#{'%02i' % @time_taken[:seconds]}" %> <% @test_run.submitted_answers.each do |a| %> Question <%= a.question_number %> Score: <%= a.score %>/...
Results for <%= @test_run.skill_test.title %> Submitted by <%= @test_run.user.name %> <%= @test_run.user.email %> <%= "http://github.com/#{@test_run.user.authentications.where(provider: :github).first.username}" %> Total score: <%= number_to_percentage(@test_run.score, precision:2)%> Time taken: <%= "#{'%02i' % @tim...
Update email template with user info
Update email template with user info
HTML+ERB
mit
LandingJobs/conundrum,LandingJobs/conundrum
html+erb
## Code Before: Results for <%= @test_run.skill_test.title %> Total score: <%= number_to_percentage(@test_run.score, precision:2)%> Time taken: <%= "#{'%02i' % @time_taken[:minutes]}:#{'%02i' % @time_taken[:seconds]}" %> <% @test_run.submitted_answers.each do |a| %> Question <%= a.question_number %> Score:...
Results for <%= @test_run.skill_test.title %> + + Submitted by + <%= @test_run.user.name %> + <%= @test_run.user.email %> + <%= "http://github.com/#{@test_run.user.authentications.where(provider: :github).first.username}" %> Total score: <%= number_to_percentage(@test_run.score, precision:2)%> Time taken: ...
5
0.384615
5
0
1d6a59aee21d8de9f5defd6058e3a5118d553dce
README.md
README.md
Haml-rails provides Haml generators for Rails 3. It also enables Haml as the templating engine for you, so you don't have to screw around in your own application.rb when your Gemfile already clearly indicated what templating engine you have installed. Hurrah. To use it, add this line to your Gemfile: gem "haml-r...
Haml-rails provides Haml generators for Rails 3. It also enables Haml as the templating engine for you, so you don't have to screw around in your own application.rb when your Gemfile already clearly indicated what templating engine you have installed. Hurrah. To use it, add this line to your Gemfile: gem "haml-r...
Add original generator authors to the readme
Add original generator authors to the readme
Markdown
mit
ipmobiletech/haml-rails,charly/haml-rails,indirect/haml-rails,olivierlacan/haml-rails,indirect/haml-rails,serv/haml-rails,charly/haml-rails,ipmobiletech/haml-rails,olivierlacan/haml-rails
markdown
## Code Before: Haml-rails provides Haml generators for Rails 3. It also enables Haml as the templating engine for you, so you don't have to screw around in your own application.rb when your Gemfile already clearly indicated what templating engine you have installed. Hurrah. To use it, add this line to your Gemfile: ...
Haml-rails provides Haml generators for Rails 3. It also enables Haml as the templating engine for you, so you don't have to screw around in your own application.rb when your Gemfile already clearly indicated what templating engine you have installed. Hurrah. To use it, add this line to your Gemfile: ...
4
0.4
4
0
c6d50c3feed444f8f450c5c140e8470c6897f2bf
societies/models.py
societies/models.py
from django.db import models from django_countries.fields import CountryField class GuitarSociety(models.Model): """ Represents a single guitar society. .. versionadded:: 0.1 """ #: the name of the society #: ..versionadded:: 0.1 name = models.CharField(max_length=1024) #: the soci...
from django.db import models from django_countries.fields import CountryField class GuitarSociety(models.Model): """ Represents a single guitar society. .. versionadded:: 0.1 """ #: the name of the society #: ..versionadded:: 0.1 name = models.CharField(max_length=1024) #: the soci...
Make the Guitar Society __str__ Method a bit more Logical
Make the Guitar Society __str__ Method a bit more Logical
Python
bsd-3-clause
chrisguitarguy/GuitarSocieties.org,chrisguitarguy/GuitarSocieties.org
python
## Code Before: from django.db import models from django_countries.fields import CountryField class GuitarSociety(models.Model): """ Represents a single guitar society. .. versionadded:: 0.1 """ #: the name of the society #: ..versionadded:: 0.1 name = models.CharField(max_length=1024) ...
from django.db import models from django_countries.fields import CountryField class GuitarSociety(models.Model): """ Represents a single guitar society. .. versionadded:: 0.1 """ #: the name of the society #: ..versionadded:: 0.1 name = models.CharField(max...
5
0.16129
4
1
ffe8a5dd0cf68e18894c9c6d35ee223aee24f0c9
styleguide/number.section.md
styleguide/number.section.md
All components in this section is built upon a private `<Number />` component. This has the effect that all props sent to either component below that are not specifically consumed by said component will *trickle down* to the `<Number />` component below. This means that all components in this section can also take the...
All components in this section is built upon a private `<Number />` component. This has the effect that all props sent to either component below that are not specifically consumed by said component will *trickle down* to the `<Number />` component below. This means that all components in this section can also take the...
Add new *style props that can be added to any Number component
Add new *style props that can be added to any Number component
Markdown
mit
nordnet/nordnet-component-kit
markdown
## Code Before: All components in this section is built upon a private `<Number />` component. This has the effect that all props sent to either component below that are not specifically consumed by said component will *trickle down* to the `<Number />` component below. This means that all components in this section c...
All components in this section is built upon a private `<Number />` component. This has the effect that all props sent to either component below that are not specifically consumed by said component will *trickle down* to the `<Number />` component below. This means that all components in this section can also ta...
3
0.1875
3
0
dd0aca7ef7d4a82deb9b974fbfaf7fdcb4f23968
index.js
index.js
var hslToHex = require('tie-dye/hslToHex'); function hashbow(input, saturation, lightness) { var toColor, sum; var toColor, sum; switch (typeof input) { case 'object': toColor = JSON.stringify(input); break; case 'number': sum = input; break; case 'boolean': return hslToHe...
var hslToHex = require('tie-dye/hslToHex'); function hashbow(input, saturation, lightness) { var toColor, sum; saturation = saturation || 100; lightness = lightness || 50; switch (typeof input) { case 'object': toColor = JSON.stringify(input); break; case 'number': sum = input; br...
Set default variables at start of function
Set default variables at start of function
JavaScript
mit
supercrabtree/hashbow
javascript
## Code Before: var hslToHex = require('tie-dye/hslToHex'); function hashbow(input, saturation, lightness) { var toColor, sum; var toColor, sum; switch (typeof input) { case 'object': toColor = JSON.stringify(input); break; case 'number': sum = input; break; case 'boolean': ...
var hslToHex = require('tie-dye/hslToHex'); function hashbow(input, saturation, lightness) { - var toColor, sum; var toColor, sum; + saturation = saturation || 100; + lightness = lightness || 50; switch (typeof input) { case 'object': toColor = JSON.stringify(input); break...
8
0.205128
4
4
1776ce20b6ebaad39d04f1287b8cc994712b476f
lib/livereload-rails/middleware.rb
lib/livereload-rails/middleware.rb
require "monitor" require "weak_observable" require "filewatcher" module Livereload class Middleware def initialize(app, assets: ) @app = app @clients = WeakObservable.new assets.configure do |environment| @watcher = Watcher.new(environment.paths) do |path, event| asset = env...
require "monitor" require "weak_observable" require "filewatcher" module Livereload class Middleware def initialize(app, assets: ) @app = app @clients = WeakObservable.new assets.configure do |environment| @watcher = Watcher.new(environment.paths) do |path, event| asset = env...
Append assets prefix path when livereloading
Append assets prefix path when livereloading
Ruby
mit
Burgestrand/livereload_rails,Burgestrand/livereload_rails,Burgestrand/livereload_rails,Burgestrand/livereload_rails
ruby
## Code Before: require "monitor" require "weak_observable" require "filewatcher" module Livereload class Middleware def initialize(app, assets: ) @app = app @clients = WeakObservable.new assets.configure do |environment| @watcher = Watcher.new(environment.paths) do |path, event| ...
require "monitor" require "weak_observable" require "filewatcher" module Livereload class Middleware def initialize(app, assets: ) @app = app @clients = WeakObservable.new assets.configure do |environment| @watcher = Watcher.new(environment.paths) do |path, even...
2
0.042553
1
1
50b707577c5b3b73c4698d2e66c7cf65b6af7d9b
NoteWrangler/app/index.html
NoteWrangler/app/index.html
<!DOCTYPE html> <html lang="en" ng-app="NoteWrangler"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Note Wrangler</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="css/bootstrap.css"> <link re...
<!DOCTYPE html> <html lang="en" ng-app="NoteWrangler"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Note Wrangler</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="assets/css/styles.css"> </head...
Edit parhs to js, css files
Edit parhs to js, css files
HTML
mit
var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training
html
## Code Before: <!DOCTYPE html> <html lang="en" ng-app="NoteWrangler"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Note Wrangler</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="css/bootstrap.cs...
<!DOCTYPE html> <html lang="en" ng-app="NoteWrangler"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Note Wrangler</title> <meta name="viewport" content="width=device-width, initial-scale=1"> - <link rel="stylesheet" href="css/bootstrap.cs...
11
0.323529
5
6
7bf02e9f50af733e0af28cfcb0dfb7e5f149a4bc
home/.config/starship.toml
home/.config/starship.toml
[directory] truncate_to_repo = false truncation_length = 8 truncation_symbol = "…/" # https://starship.rs/config/#username [username] show_always = true format = "[$user]($style) at " # https://starship.rs/config/#hostname [hostname] ssh_only = false
[directory] truncate_to_repo = false truncation_length = 8 truncation_symbol = "…/" # https://starship.rs/config/#username [username] show_always = true format = "[$user]($style) at " # https://starship.rs/config/#hostname [hostname] ssh_only = false # https://starship.rs/config/#command-duration [cmd_duration] show...
Make the spaceship took display more detailed
Make the spaceship took display more detailed
TOML
mit
By-Vasiliy/dotfiles,By-Vasiliy/dotfiles
toml
## Code Before: [directory] truncate_to_repo = false truncation_length = 8 truncation_symbol = "…/" # https://starship.rs/config/#username [username] show_always = true format = "[$user]($style) at " # https://starship.rs/config/#hostname [hostname] ssh_only = false ## Instruction: Make the spaceship took display mo...
[directory] truncate_to_repo = false truncation_length = 8 truncation_symbol = "…/" # https://starship.rs/config/#username [username] show_always = true format = "[$user]($style) at " # https://starship.rs/config/#hostname [hostname] ssh_only = false + + # https://starship.rs/config/#comman...
4
0.307692
4
0
2d8546a86c43c2cb30df13899a96da4120d264a4
memcached/content.md
memcached/content.md
Memcached is a general-purpose distributed memory caching system. It is often used to speed up dynamic database-driven websites by caching data and objects in RAM to reduce the number of times an external data source (such as a database or API) must be read. Memcached's APIs provide a very large hash table distribute...
Memcached is a general-purpose distributed memory caching system. It is often used to speed up dynamic database-driven websites by caching data and objects in RAM to reduce the number of times an external data source (such as a database or API) must be read. Memcached's APIs provide a very large hash table distribute...
Remove SIGTERM note from memcached docs
Remove SIGTERM note from memcached docs As of 1.4.22, it's FIXED UPSTREAM! :tada:
Markdown
mit
jakelly/docs,dmetzler/docker-library-docs,pydio/docs,crate/docker-docs,mysql/mysql-docker-docs,Lightstreamer/docs,hecklerm/docs,atyenoria/docs,Bonitasoft-Community/docker_docs,clakech/docs,dancrumb/docs,astawiarski/docs,crate/docker-docs,peterkuiper/docs,godu/docs,pierreozoux/docs,thaihau/docs,Scriptkiddi/docs,dpwspoon...
markdown
## Code Before: Memcached is a general-purpose distributed memory caching system. It is often used to speed up dynamic database-driven websites by caching data and objects in RAM to reduce the number of times an external data source (such as a database or API) must be read. Memcached's APIs provide a very large hash ...
Memcached is a general-purpose distributed memory caching system. It is often used to speed up dynamic database-driven websites by caching data and objects in RAM to reduce the number of times an external data source (such as a database or API) must be read. Memcached's APIs provide a very large hash ta...
8
0.222222
0
8
dd70fcd512962c5248928a1c9b897fc33249f567
judge/utils/views.py
judge/utils/views.py
from django.contrib.auth.decorators import login_required from django.shortcuts import render_to_response from django.template import RequestContext __author__ = 'Quantum' def generic_message(request, title, message): return render_to_response('generic_message.jade', { 'message': message, 'title'...
from django.contrib.auth.decorators import login_required from django.shortcuts import render __author__ = 'Quantum' def generic_message(request, title, message, status=None): return render(request, 'generic_message.jade', { 'message': message, 'title': title }, status=status) class TitleMi...
Use the render shortcut which defaults to RequestContext and allows passing a status code
Use the render shortcut which defaults to RequestContext and allows passing a status code
Python
agpl-3.0
Minkov/site,monouno/site,monouno/site,Phoenix1369/site,DMOJ/site,monouno/site,DMOJ/site,Minkov/site,Phoenix1369/site,DMOJ/site,Minkov/site,Phoenix1369/site,monouno/site,monouno/site,DMOJ/site,Minkov/site,Phoenix1369/site
python
## Code Before: from django.contrib.auth.decorators import login_required from django.shortcuts import render_to_response from django.template import RequestContext __author__ = 'Quantum' def generic_message(request, title, message): return render_to_response('generic_message.jade', { 'message': message,...
from django.contrib.auth.decorators import login_required - from django.shortcuts import render_to_response ? ------------ + from django.shortcuts import render - from django.template import RequestContext __author__ = 'Quantum' - def generic_message(request, title, mess...
9
0.290323
4
5
a50545a795cb934ce106b8dcf779eea6c5e981d7
views/index.html
views/index.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Wordgrid - An online wordbrain</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Wordgrid - An online wordbrain</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"...
Add error message when canvas can't be draw by the browser
Add error message when canvas can't be draw by the browser
HTML
mit
S0orax/Wordgrid,S0orax/Wordgrid
html
## Code Before: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Wordgrid - An online wordbrain</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossor...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Wordgrid - An online wordbrain</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin...
2
0.086957
1
1
7fcde284455f6c2f7796c3af67ddde6851374266
packages/la/language-qux.yaml
packages/la/language-qux.yaml
homepage: https://github.com/qux-lang/language-qux changelog-type: '' hash: 6358de5a8b49a16d285322dbcc8341b4623269373a0a39a54f39559fe47e9171 test-bench-deps: {} maintainer: public@hjwylde.com synopsis: Utilities for working with the Qux language changelog: '' basic-deps: either: ==4.* indents: ! '>=0.3.3 && <0.4' ...
homepage: https://github.com/qux-lang/language-qux changelog-type: '' hash: 44fcd0e9916fc87e7eac3961d9539f838d3c69adfa41f72cbc1d961c7f28681e test-bench-deps: {} maintainer: public@hjwylde.com synopsis: Utilities for working with the Qux language changelog: '' basic-deps: either: ==4.* indents: ! '>=0.3.3 && <0.4' ...
Update from Hackage at 2015-09-02T07:37:58+0000
Update from Hackage at 2015-09-02T07:37:58+0000
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/qux-lang/language-qux changelog-type: '' hash: 6358de5a8b49a16d285322dbcc8341b4623269373a0a39a54f39559fe47e9171 test-bench-deps: {} maintainer: public@hjwylde.com synopsis: Utilities for working with the Qux language changelog: '' basic-deps: either: ==4.* indents: ! '>=...
homepage: https://github.com/qux-lang/language-qux changelog-type: '' - hash: 6358de5a8b49a16d285322dbcc8341b4623269373a0a39a54f39559fe47e9171 + hash: 44fcd0e9916fc87e7eac3961d9539f838d3c69adfa41f72cbc1d961c7f28681e test-bench-deps: {} maintainer: public@hjwylde.com synopsis: Utilities for working with the Qu...
5
0.192308
3
2
6298f033763e87469fd68ad6fcc4e70298985e92
split/readme.md
split/readme.md
Splitting out the project components is done with [git split](https://github.com/dflydev/git-subsplit).
Splitting out the project components is done with [git split](https://github.com/dflydev/git-subsplit). #### How to add a new component - Place component under `components` folder. - Commit and push the code to github. - Create a new repository in [limoncello-php-dist](https://github.com/limoncello-php-dist); - Updat...
Add how-to add a new component.
Add how-to add a new component.
Markdown
apache-2.0
limoncello-php/framework,limoncello-php/framework,limoncello-php/framework,limoncello-php/framework
markdown
## Code Before: Splitting out the project components is done with [git split](https://github.com/dflydev/git-subsplit). ## Instruction: Add how-to add a new component. ## Code After: Splitting out the project components is done with [git split](https://github.com/dflydev/git-subsplit). #### How to add a new componen...
Splitting out the project components is done with [git split](https://github.com/dflydev/git-subsplit). + + #### How to add a new component + + - Place component under `components` folder. + - Commit and push the code to github. + - Create a new repository in [limoncello-php-dist](https://github.com/limoncello-php-...
10
10
10
0
0d3325a6d10947de0b737b654c1768bd33a1c340
script/add-key.cmd
script/add-key.cmd
openssl aes-256-cbc -k %ENCRYPTION_SECRET% -in .\build\resources\authenticode-signing-cert.p12.enc -out .\build\resources\authenticode-signing-cert.p12 -d -a certutil -p %KEY_PASSWORD% -importpfx .\build\resources\authenticode-signing-cert.p12
openssl aes-256-cbc -k %ENCRYPTION_SECRET% -in .\build\resources\authenticode-signing-cert.p12.enc -out .\build\resources\authenticode-signing-cert.p12 -d -a certutil -p %KEY_PASSWORD% -user -importpfx .\build\resources\authenticode-signing-cert.p12 NoRoot
Add key to user's store
Add key to user's store
Batchfile
apache-2.0
spark/particle-dev
batchfile
## Code Before: openssl aes-256-cbc -k %ENCRYPTION_SECRET% -in .\build\resources\authenticode-signing-cert.p12.enc -out .\build\resources\authenticode-signing-cert.p12 -d -a certutil -p %KEY_PASSWORD% -importpfx .\build\resources\authenticode-signing-cert.p12 ## Instruction: Add key to user's store ## Code After: ope...
openssl aes-256-cbc -k %ENCRYPTION_SECRET% -in .\build\resources\authenticode-signing-cert.p12.enc -out .\build\resources\authenticode-signing-cert.p12 -d -a - certutil -p %KEY_PASSWORD% -importpfx .\build\resources\authenticode-signing-cert.p12 + certutil -p %KEY_PASSWORD% -user -importpfx .\build\resources\authenti...
2
1
1
1
ce2f4dca16bd755f7cae42d93a4c7089a309e31a
awx/ui/client/src/instance-groups/instances/instance-modal.block.less
awx/ui/client/src/instance-groups/instances/instance-modal.block.less
.Modal-backdrop { position: fixed; top: 0px; left: 0px; height:100%; width:100%; background: #000; z-index: 2; opacity: 0.5; } .Modal-holder { position: fixed; top: 1; left: 0px; right: 0px; top: 0px; bottom: 0px; z-index: 3; overflow-y: scroll; .modal-dialog { padding-top: 100px; } }
.Modal-backdrop { background: #000; height:100%; left: 0px; opacity: 0.25; position: fixed; top: 0px; width:100%; z-index: 1050; } .Modal-holder { bottom: 0px; left: 0px; overflow-y: scroll; position: fixed; right: 0px; top: 0px; top: 1; z-index: 1100; .modal-dialog { padding-top: 100px;...
Fix instance modal backdrop styles
Fix instance modal backdrop styles
Less
apache-2.0
wwitzel3/awx,wwitzel3/awx,wwitzel3/awx,wwitzel3/awx
less
## Code Before: .Modal-backdrop { position: fixed; top: 0px; left: 0px; height:100%; width:100%; background: #000; z-index: 2; opacity: 0.5; } .Modal-holder { position: fixed; top: 1; left: 0px; right: 0px; top: 0px; bottom: 0px; z-index: 3; overflow-y: scroll; .modal-dialog { padding-to...
.Modal-backdrop { + background: #000; + height:100%; + left: 0px; + opacity: 0.25; position: fixed; top: 0px; - left: 0px; - height:100%; width:100%; - background: #000; - z-index: 2; ? ^ + z-index: 1050; ? ^^^^ - opacity: 0.5; } .Modal-holder { + bottom: 0px; + lef...
20
0.8
10
10
006665a5eba40510fbde07cf1cce117906769066
resources/leiningen/new/kraken/config.edn
resources/leiningen/new/kraken/config.edn
{:rabbit-mq {:connection {:host #resource-config/env "RABBITMQ_PORT_5672_TCP_ADDR" :port #resource-config/edn #resource-config/env "RABBITMQ_PORT_5672_TCP_PORT"} :queues {"{{name}}.ok" {:exclusive false :auto-delete true}}} :datomic {:uri "datomic:mem://{{name}}" :part...
{:rabbit-mq {:connection {:host #resource-config/env "RABBITMQ_PORT_5672_TCP_ADDR" :port #resource-config/edn #resource-config/env "RABBITMQ_PORT_5672_TCP_PORT"} :queues {"{{name}}.ok" {:exclusive false :durable true :auto-delete false}}} :datomic {:uri "datomic:mem://{{name}}" ...
Correct ususal Rabbit queue settings
[CS] Correct ususal Rabbit queue settings
edn
epl-1.0
democracyworks/kraken-works-lein-template,democracyworks/kraken-lein-template
edn
## Code Before: {:rabbit-mq {:connection {:host #resource-config/env "RABBITMQ_PORT_5672_TCP_ADDR" :port #resource-config/edn #resource-config/env "RABBITMQ_PORT_5672_TCP_PORT"} :queues {"{{name}}.ok" {:exclusive false :auto-delete true}}} :datomic {:uri "datomic:mem://{{name}}" ...
{:rabbit-mq {:connection {:host #resource-config/env "RABBITMQ_PORT_5672_TCP_ADDR" :port #resource-config/edn #resource-config/env "RABBITMQ_PORT_5672_TCP_PORT"} - :queues {"{{name}}.ok" {:exclusive false :auto-delete true}}} ? ...
2
0.285714
1
1
4348d845232336ce697dec6226e3b85b6cdf4e0c
base/meegotouch/libmeegotouchviews/style/mstatusbarstyle.css
base/meegotouch/libmeegotouchviews/style/mstatusbarstyle.css
MStatusBarStyle { minimum-size: 100% $HEIGHT_STATUSBAR_WITH_REACTIVE_MARGIN; preferred-size: 100% $HEIGHT_STATUSBAR_WITH_REACTIVE_MARGIN; maximum-size: 100% $HEIGHT_STATUSBAR_WITH_REACTIVE_MARGIN; background-color: ; use-swipe-gesture: true; swipe-threshold: 30; press-feedback : press; }
MStatusBarStyle { minimum-size: 100% $HEIGHT_STATUSBAR_WITH_REACTIVE_MARGIN; preferred-size: 100% $HEIGHT_STATUSBAR_WITH_REACTIVE_MARGIN; maximum-size: 100% $HEIGHT_STATUSBAR_WITH_REACTIVE_MARGIN; background-color: ; use-swipe-gesture: true; swipe-threshold: 30; press-feedback : press; p...
Add press dimming factor to MStatusBarStyle
Changes: Add press dimming factor to MStatusBarStyle
CSS
lgpl-2.1
nemomobile-graveyard/meegotouch-theme
css
## Code Before: MStatusBarStyle { minimum-size: 100% $HEIGHT_STATUSBAR_WITH_REACTIVE_MARGIN; preferred-size: 100% $HEIGHT_STATUSBAR_WITH_REACTIVE_MARGIN; maximum-size: 100% $HEIGHT_STATUSBAR_WITH_REACTIVE_MARGIN; background-color: ; use-swipe-gesture: true; swipe-threshold: 30; press-feedbac...
MStatusBarStyle { minimum-size: 100% $HEIGHT_STATUSBAR_WITH_REACTIVE_MARGIN; preferred-size: 100% $HEIGHT_STATUSBAR_WITH_REACTIVE_MARGIN; maximum-size: 100% $HEIGHT_STATUSBAR_WITH_REACTIVE_MARGIN; background-color: ; use-swipe-gesture: true; swipe-threshold: 30; press-feedb...
1
0.1
1
0
d5cb2a3f9ba2e647224c7c17e9125ef344028a4a
package.json
package.json
{ "name": "beer-tab", "version": "0.0.1", "description": "beer as social currency", "main": "server.js", "repository": { "type": "git", "url": "git://github.com/ViridescentGrizzly/beer-tab.git" }, "license": "MIT", "author": "Viridescent Grizzly", "contributors": [ { "name": "Michael...
{ "name": "beer-tab", "version": "0.0.1", "description": "beer as social currency", "main": "server.js", "repository": { "type": "git", "url": "git://github.com/ViridescentGrizzly/beer-tab.git" }, "license": "MIT", "author": "Viridescent Grizzly", "contributors": [{ "name": "Michael Kurr...
Add config file for mongoose setup
Add config file for mongoose setup
JSON
mit
mKurrels/beer-tab,viestat/beer-tab,RHays91/beer-tab,jimtom2713/beer-tab,ViridescentGrizzly/beer-tab,csaden/beer-tab,RHays91/beer-tab,stvnwu/beer-tab,macklevine/beer-tab,jimtom2713/beer-tab,mKurrels/beer-tab,csaden/beer-tab,ViridescentGrizzly/beer-tab,metallic-gazelle/beer-tab,viestat/beer-tab,MaxBreakfast/beer-tab,stvn...
json
## Code Before: { "name": "beer-tab", "version": "0.0.1", "description": "beer as social currency", "main": "server.js", "repository": { "type": "git", "url": "git://github.com/ViridescentGrizzly/beer-tab.git" }, "license": "MIT", "author": "Viridescent Grizzly", "contributors": [ { ...
{ "name": "beer-tab", "version": "0.0.1", "description": "beer as social currency", "main": "server.js", "repository": { "type": "git", "url": "git://github.com/ViridescentGrizzly/beer-tab.git" }, "license": "MIT", "author": "Viridescent Grizzly", - "contributors": [ + ...
13
0.309524
4
9
2639a46a5e67fb60764fa92b1205f2546262fb80
Cargo.toml
Cargo.toml
[package] authors = ["Philipp Oppermann <dev@phil-opp.com>"] name = "blog_os" version = "0.1.0" [dependencies] bit_field = "0.5.0" bitflags = "0.7.0" once = "0.3.2" rlibc = "0.1.4" spin = "0.3.4" [dependencies.hole_list_allocator] path = "libs/hole_list_allocator" [dependencies.multiboot2] git = "https://github.com/...
[package] authors = ["Philipp Oppermann <dev@phil-opp.com>"] name = "blog_os" version = "0.1.0" [dependencies] bit_field = "0.5.0" bitflags = "0.7.0" once = "0.3.2" rlibc = "0.1.4" spin = "0.3.4" [dependencies.hole_list_allocator] path = "libs/hole_list_allocator" [dependencies.lazy_static] features = ["spin_no_std"...
Reorder items to cargo-edit format
Reorder items to cargo-edit format
TOML
apache-2.0
phil-opp/blog_os,phil-opp/blog_os,phil-opp/blogOS,phil-opp/blogOS,phil-opp/blog_os,phil-opp/blog_os
toml
## Code Before: [package] authors = ["Philipp Oppermann <dev@phil-opp.com>"] name = "blog_os" version = "0.1.0" [dependencies] bit_field = "0.5.0" bitflags = "0.7.0" once = "0.3.2" rlibc = "0.1.4" spin = "0.3.4" [dependencies.hole_list_allocator] path = "libs/hole_list_allocator" [dependencies.multiboot2] git = "htt...
[package] authors = ["Philipp Oppermann <dev@phil-opp.com>"] name = "blog_os" version = "0.1.0" [dependencies] bit_field = "0.5.0" bitflags = "0.7.0" once = "0.3.2" rlibc = "0.1.4" spin = "0.3.4" [dependencies.hole_list_allocator] path = "libs/hole_list_allocator" + [dependencies.lazy_s...
12
0.333333
7
5
bfc0ce1298b9fe7a640dc31c6e5729d1c6360945
langs/pystartup.py
langs/pystartup.py
import atexit import os import readline import rlcompleter historyPath = os.path.expanduser("~/.pyhistory") def save_history(path=historyPath): import readline readline.write_history_file(path) if os.path.exists(historyPath): readline.read_history_file(historyPath) readline.parse_and_bind("tab: compl...
import atexit import os import readline import rlcompleter historyPath = os.path.expanduser("~/.pyhistory") def save_history(path=historyPath): import readline readline.write_history_file(path) if os.path.exists(historyPath): readline.read_history_file(historyPath) try: import __builtin__ except ...
Add json true/false/none in python repl
Add json true/false/none in python repl https://mobile.twitter.com/mitsuhiko/status/1229385843585974272/photo/2
Python
mit
keith/dotfiles,keith/dotfiles,keith/dotfiles,keith/dotfiles,keith/dotfiles,keith/dotfiles
python
## Code Before: import atexit import os import readline import rlcompleter historyPath = os.path.expanduser("~/.pyhistory") def save_history(path=historyPath): import readline readline.write_history_file(path) if os.path.exists(historyPath): readline.read_history_file(historyPath) readline.parse_and_...
import atexit import os import readline import rlcompleter historyPath = os.path.expanduser("~/.pyhistory") def save_history(path=historyPath): import readline readline.write_history_file(path) if os.path.exists(historyPath): readline.read_history_file(historyPath) +...
9
0.375
9
0
2f0a216c706725341b924c6484cd37fbb21630a9
lib/rspec_api_documentation/dsl/endpoint/params.rb
lib/rspec_api_documentation/dsl/endpoint/params.rb
require 'rspec_api_documentation/dsl/endpoint/set_param' module RspecApiDocumentation module DSL module Endpoint class Params attr_reader :example_group, :example def initialize(example_group, example, extra_params) @example_group = example_group @example = example ...
require 'rspec_api_documentation/dsl/endpoint/set_param' module RspecApiDocumentation module DSL module Endpoint class Params attr_reader :example_group, :example def initialize(example_group, example, extra_params) @example_group = example_group @example = example ...
Handle Attributes as Parameter for API Blueprint
Handle Attributes as Parameter for API Blueprint This let spec successfully passed.
Ruby
mit
zipmark/rspec_api_documentation,zipmark/rspec_api_documentation,zipmark/rspec_api_documentation
ruby
## Code Before: require 'rspec_api_documentation/dsl/endpoint/set_param' module RspecApiDocumentation module DSL module Endpoint class Params attr_reader :example_group, :example def initialize(example_group, example, extra_params) @example_group = example_group @exampl...
require 'rspec_api_documentation/dsl/endpoint/set_param' module RspecApiDocumentation module DSL module Endpoint class Params attr_reader :example_group, :example def initialize(example_group, example, extra_params) @example_group = example_group @...
11
0.366667
7
4
e0256c2ae08d61c251d3d2a8a154f89a199ad05b
release/doc/en_US.ISO8859-1/hardware/Makefile
release/doc/en_US.ISO8859-1/hardware/Makefile
RELN_ROOT?= ${.CURDIR}/../.. SUBDIR = alpha SUBDIR+= amd64 SUBDIR+= ia64 SUBDIR+= i386 SUBDIR+= pc98 SUBDIR+= sparc64 .include "${RELN_ROOT}/share/mk/doc.relnotes.mk" .include "${DOC_PREFIX}/share/mk/doc.project.mk"
RELN_ROOT?= ${.CURDIR}/../.. SUBDIR= amd64 SUBDIR+= ia64 SUBDIR+= i386 SUBDIR+= pc98 SUBDIR+= sparc64 .include "${RELN_ROOT}/share/mk/doc.relnotes.mk" .include "${DOC_PREFIX}/share/mk/doc.project.mk"
Prepare to shoot my own dog, decouple the alpha docs from the build.
Prepare to shoot my own dog, decouple the alpha docs from the build.
unknown
bsd-3-clause
jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase
unknown
## Code Before: RELN_ROOT?= ${.CURDIR}/../.. SUBDIR = alpha SUBDIR+= amd64 SUBDIR+= ia64 SUBDIR+= i386 SUBDIR+= pc98 SUBDIR+= sparc64 .include "${RELN_ROOT}/share/mk/doc.relnotes.mk" .include "${DOC_PREFIX}/share/mk/doc.project.mk" ## Instruction: Prepare to shoot my own dog, decouple the alpha docs from the build....
RELN_ROOT?= ${.CURDIR}/../.. - SUBDIR = alpha - SUBDIR+= amd64 ? - + SUBDIR= amd64 SUBDIR+= ia64 SUBDIR+= i386 SUBDIR+= pc98 SUBDIR+= sparc64 .include "${RELN_ROOT}/share/mk/doc.relnotes.mk" .include "${DOC_PREFIX}/share/mk/doc.project.mk"
3
0.25
1
2
f9b11ed9662b1fad567f918c6defa1d760a7a9e5
docs/building/internals.md
docs/building/internals.md
Internals of build process ========================================= The purpose of this document is to explain build process **internals** with subtle nuances. This document is not by any means complete. The ultimate source of truth is the code in `.\build.psm1` that's getting executed on the corresponding CI system...
Internals of build process ========================================= The purpose of this document is to explain build process **internals** with subtle nuances. This document is not by any means complete. The ultimate source of truth is the code in `.\build.psm1` that's getting executed on the corresponding CI system...
Add info about dummy dependencies
Add info about dummy dependencies
Markdown
mit
KarolKaczmarek/PowerShell,JamesWTruher/PowerShell-1,TravisEz13/PowerShell,bingbing8/PowerShell,JamesWTruher/PowerShell-1,bmanikm/PowerShell,bingbing8/PowerShell,PaulHigin/PowerShell,KarolKaczmarek/PowerShell,KarolKaczmarek/PowerShell,bingbing8/PowerShell,bmanikm/PowerShell,daxian-dbw/PowerShell,PaulHigin/PowerShell,bin...
markdown
## Code Before: Internals of build process ========================================= The purpose of this document is to explain build process **internals** with subtle nuances. This document is not by any means complete. The ultimate source of truth is the code in `.\build.psm1` that's getting executed on the corresp...
Internals of build process ========================================= The purpose of this document is to explain build process **internals** with subtle nuances. This document is not by any means complete. The ultimate source of truth is the code in `.\build.psm1` that's getting executed on the correspondi...
18
0.666667
18
0
86ef4815527aaaeede24435b49a6f654da6d9979
cmd_remove.go
cmd_remove.go
package main import ( "errors" "fmt" ) var cmdRemove = &Command{ Run: runRemove, UsageLine: "remove NAME", Short: "Remove saved password", Long: `Remove saved password by input name.`, } func runRemove(ctx context, args []string) error { if len(args) == 0 { return errors.New("item name requir...
package main import ( "errors" "fmt" ) var cmdRemove = &Command{ Run: runRemove, UsageLine: "remove NAME", Short: "Remove saved password", Long: `Remove saved password by input name.`, } func runRemove(ctx context, args []string) error { if len(args) == 0 { return errors.New("item name requir...
Fix create empty item on remove
Fix create empty item on remove
Go
mit
pinzolo/spwd
go
## Code Before: package main import ( "errors" "fmt" ) var cmdRemove = &Command{ Run: runRemove, UsageLine: "remove NAME", Short: "Remove saved password", Long: `Remove saved password by input name.`, } func runRemove(ctx context, args []string) error { if len(args) == 0 { return errors.New("...
package main import ( "errors" "fmt" ) var cmdRemove = &Command{ Run: runRemove, UsageLine: "remove NAME", Short: "Remove saved password", Long: `Remove saved password by input name.`, } func runRemove(ctx context, args []string) error { if len(args) == 0 { r...
2
0.045455
1
1
2deb42c97d1fd3e4314eb8612e080e4facfb92b6
locales/es-CL/addon.properties
locales/es-CL/addon.properties
tooltip_play= Reproducir tooltip_pause= Pausar tooltip_mute= Silenciar tooltip_unmute= Escuchar tooltip_send_to_tab= Enviar a pestaña tooltip_minimize= Minimizar tooltip_maximize= Maximizar tooltip_close= Cerrar error_msg= Algo está mal con este video. Vuelve a intentarlo más tarde. error_link= Abrir en nueva pestaña #...
tooltip_play= Reproducir tooltip_pause= Pausar tooltip_mute= Silenciar tooltip_unmute= Escuchar tooltip_send_to_tab= Enviar a pestaña tooltip_minimize= Minimizar tooltip_maximize= Maximizar tooltip_close= Cerrar tooltip_switch_visual= Clic para cambiar la visualización media_type_audio= audio media_type_video= video er...
Update Spanish (es-CL) localization of Test Pilot: Min Vid
Pontoon: Update Spanish (es-CL) localization of Test Pilot: Min Vid Localization authors: - ravmn <ravmn@ravmn.cl>
INI
mpl-2.0
meandavejustice/min-vid,meandavejustice/min-vid,meandavejustice/min-vid
ini
## Code Before: tooltip_play= Reproducir tooltip_pause= Pausar tooltip_mute= Silenciar tooltip_unmute= Escuchar tooltip_send_to_tab= Enviar a pestaña tooltip_minimize= Minimizar tooltip_maximize= Maximizar tooltip_close= Cerrar error_msg= Algo está mal con este video. Vuelve a intentarlo más tarde. error_link= Abrir en...
tooltip_play= Reproducir tooltip_pause= Pausar tooltip_mute= Silenciar tooltip_unmute= Escuchar tooltip_send_to_tab= Enviar a pestaña tooltip_minimize= Minimizar tooltip_maximize= Maximizar tooltip_close= Cerrar + tooltip_switch_visual= Clic para cambiar la visualización + media_type_audio= audio + medi...
4
0.333333
4
0
b39ffe08f43a554d8056db0c65ce8549a03b8891
.travis.yml
.travis.yml
language: objective-c matrix: include: - env: OSX=10.11 os: osx osx_image: osx10.11 rvm: system - env: OSX=10.10 os: osx osx_image: xcode7 rvm: system - env: OSX=10.9 os: osx osx_image: beta-xcode6.2 rvm: system before_install: - brew update ...
language: objective-c os: osx rvm: system matrix: include: - env: OSX=10.14 osx_image: xcode10.1 - env: OSX=10.13 osx_image: xcode9.4 - env: OSX=10.12 osx_image: xcode9.2 - env: OSX=10.11 osx_image: xcode8 before_install: - brew update install: # Make sure python is ...
Test on new macos versions and install the local formula.
Test on new macos versions and install the local formula. Running `brew install Formula/python36.rb` makes brew install the locally committed formula rather than pull the latest one from master. That removes the need to tap drolando/homebrew-deadsnakes.
YAML
mit
drolando/homebrew-deadsnakes
yaml
## Code Before: language: objective-c matrix: include: - env: OSX=10.11 os: osx osx_image: osx10.11 rvm: system - env: OSX=10.10 os: osx osx_image: xcode7 rvm: system - env: OSX=10.9 os: osx osx_image: beta-xcode6.2 rvm: system before_install: - ...
language: objective-c + os: osx + rvm: system matrix: include: + - env: OSX=10.14 + osx_image: xcode10.1 + - env: OSX=10.13 + osx_image: xcode9.4 + - env: OSX=10.12 + osx_image: xcode9.2 - env: OSX=10.11 - os: osx - osx_image: osx10.11 - rvm: system - ...
52
1.106383
21
31
e85f6e1454964f6be1db8d418759eda9494a9240
lib/Button/ButtonAccessibilitySupport.js
lib/Button/ButtonAccessibilitySupport.js
var kind = require('enyo/kind'); /** * @name ButtonAccessibilityMixin * @mixin */ module.exports = { /** * @private */ updateAccessibilityAttributes: kind.inherit(function (sup) { return function () { var enabled = !this.accessibilityDisabled, id = this.$.client ? this.$.client.getId() : this.getId(); ...
var kind = require('enyo/kind'); /** * @name ButtonAccessibilityMixin * @mixin */ module.exports = { /** * @private */ updateAccessibilityAttributes: kind.inherit(function (sup) { return function () { var enabled = !this.accessibilityDisabled, id = this.$.client ? this.$.client.getId() : this.getId(); ...
Remove aria-labelledby when user adds accessibilityLabel to Button
ENYO-1912: Remove aria-labelledby when user adds accessibilityLabel to Button https://jira2.lgsvl.com/browse/ENYO-1912 Enyo-DCO-1.1-Signed-off-by: Bongsub Kim <bongsub.kim@lgepartner.com> Change-Id: I50a490dbd25c59e4b48a828ab5e397e07dd9d13f
JavaScript
apache-2.0
enyojs/moonstone
javascript
## Code Before: var kind = require('enyo/kind'); /** * @name ButtonAccessibilityMixin * @mixin */ module.exports = { /** * @private */ updateAccessibilityAttributes: kind.inherit(function (sup) { return function () { var enabled = !this.accessibilityDisabled, id = this.$.client ? this.$.client.getId() :...
var kind = require('enyo/kind'); /** * @name ButtonAccessibilityMixin * @mixin */ module.exports = { /** * @private */ updateAccessibilityAttributes: kind.inherit(function (sup) { return function () { var enabled = !this.accessibilityDisabled, id = this.$.client ? this.$....
2
0.095238
1
1
4803d580155baf3c785cf48d1d8b8737d34b6279
blocks/html5_audio_player_basic/auto.js
blocks/html5_audio_player_basic/auto.js
var JPAudioPlayerBlock = { validate:function(){ var failed=0; if ($("#audioBlock-singleAudio input[name=fID]").val() <= 0) { alert(ccm_t('choose-file')); failed = 1; } if(failed){ ccm_isBlockError=1; return false; } return true; } } ccmValidateBlockForm = function() { return JPAudioPlayerBloc...
/* // Validation is currently broken in 5.7 var JPAudioPlayerBlock = { validate:function(){ var failed=0; if ($("#audioBlock-singleAudio input[name=fID]").val() <= 0) { alert(ccm_t('choose-file')); failed = 1; } if(failed){ ccm_isBlockError=1; return false; } return true; } } ccmValidateBlock...
Add note about block validation.
Add note about block validation.
JavaScript
mit
cpill0789/HTML5-Audio-Player-Basic,cpill0789/HTML5-Audio-Player-Basic,cpill0789/HTML5-Audio-Player-Basic
javascript
## Code Before: var JPAudioPlayerBlock = { validate:function(){ var failed=0; if ($("#audioBlock-singleAudio input[name=fID]").val() <= 0) { alert(ccm_t('choose-file')); failed = 1; } if(failed){ ccm_isBlockError=1; return false; } return true; } } ccmValidateBlockForm = function() { return J...
+ /* + // Validation is currently broken in 5.7 var JPAudioPlayerBlock = { validate:function(){ var failed=0; if ($("#audioBlock-singleAudio input[name=fID]").val() <= 0) { alert(ccm_t('choose-file')); failed = 1; } if(failed){ ccm_isBlockError=1; return false; } return ...
3
0.1875
3
0
5b2f5eefa1103c884f197458e774b1b43e2a6614
package.json
package.json
{ "name": "environmental", "version": "1.1.0", "description": "Provides conventions and code to deal with unix environment vars in a pleasant way", "homepage": "https://github.com/kvz/environmental", "author": "Kevin van Zonneveld <kevin@vanzonneveld.net>", "engines": { "node": ">= 0.8.0" }, "depend...
{ "name": "environmental", "version": "1.1.0", "description": "Provides conventions and code to deal with unix environment vars in a pleasant way", "homepage": "https://github.com/kvz/environmental", "author": "Kevin van Zonneveld <kevin@vanzonneveld.net>", "engines": { "node": ">= 0.8.0" }, "depend...
Upgrade flat to own fork to support overrides
Upgrade flat to own fork to support overrides https://github.com/hughsk/flat/issues/9
JSON
mit
kvz/environmental,kvz/environmental
json
## Code Before: { "name": "environmental", "version": "1.1.0", "description": "Provides conventions and code to deal with unix environment vars in a pleasant way", "homepage": "https://github.com/kvz/environmental", "author": "Kevin van Zonneveld <kevin@vanzonneveld.net>", "engines": { "node": ">= 0.8.0...
{ "name": "environmental", "version": "1.1.0", "description": "Provides conventions and code to deal with unix environment vars in a pleasant way", "homepage": "https://github.com/kvz/environmental", "author": "Kevin van Zonneveld <kevin@vanzonneveld.net>", "engines": { "node": ">= 0.8.0...
2
0.051282
1
1
850e5d24c3f76edaf23b6639af274446a34bf1c1
.forestry/front_matter/templates/partial-hero.yml
.forestry/front_matter/templates/partial-hero.yml
--- hide_body: false is_partial: true fields: - type: field_group name: hero label: Hero description: Hero Section fields: - type: text name: color label: Hex Color description: 'e.g. #0093c9' config: required: false default: "#0093c9" - type: file name: image label: Backgr...
--- hide_body: false is_partial: true fields: - type: field_group name: hero label: Hero description: Displayed at the Top fields: - type: text name: color label: Hex Color description: 'e.g. #0093c9' config: required: false default: "#0093c9" - type: file name: image label...
Update from Forestry.io - Updated Forestry configuration
Update from Forestry.io - Updated Forestry configuration
YAML
mit
truecodersio/truecoders.io,truecodersio/truecoders.io,truecodersio/truecoders.io
yaml
## Code Before: --- hide_body: false is_partial: true fields: - type: field_group name: hero label: Hero description: Hero Section fields: - type: text name: color label: Hex Color description: 'e.g. #0093c9' config: required: false default: "#0093c9" - type: file name: image ...
--- hide_body: false is_partial: true fields: - type: field_group name: hero label: Hero - description: Hero Section + description: Displayed at the Top fields: - type: text name: color label: Hex Color description: 'e.g. #0093c9' config: required: false ...
2
0.1
1
1
7fb5f9b610f1edd3559521b159c24c3cc65ea04d
fish/functions/punch.fish
fish/functions/punch.fish
function punch --description "Creates directories leading up to and including the file" set -l path (dirname $argv[1]) mkdir -p $path touch $argv[1] end
function punch --description "Creates directories leading up to and including the file" for file in $argv set -l path (dirname $file) mkdir -p $path touch $file end end
Extend to work with multiple arguments
Extend to work with multiple arguments
fish
mit
adrianObel/dotfiles
fish
## Code Before: function punch --description "Creates directories leading up to and including the file" set -l path (dirname $argv[1]) mkdir -p $path touch $argv[1] end ## Instruction: Extend to work with multiple arguments ## Code After: function punch --description "Creates directories leading up to and...
function punch --description "Creates directories leading up to and including the file" - + for file in $argv - set -l path (dirname $argv[1]) ? ^^^^^^^ + set -l path (dirname $file) ? ++ ^^^^ - - mkdir -p $path + mkdir -p $path ? ++ - touch $argv[...
11
1.375
5
6
0eb771862e6c830b68779ba53c380c009aee9b0f
spec/models/log_spec.rb
spec/models/log_spec.rb
require 'rails_helper' describe Log, :type => :model do it 'has valid factory' do expect(FactoryGirl.build(:log)).to be_valid end context 'properties' do before do @log = FactoryGirl.build(:log) end it 'has many chapters' do expect(@log).to respond_to(:chapters) end it 'belon...
require 'rails_helper' describe Log, :type => :model do it 'has valid factory' do expect(FactoryGirl.build(:log)).to be_valid end context 'properties' do before do @log = FactoryGirl.build(:log) end it 'has many chapters' do expect(@log).to respond_to(:chapters) end it 'belon...
Add 'it knows whether it has a chapter in progress' to Log unit test
Add 'it knows whether it has a chapter in progress' to Log unit test
Ruby
mit
viparthasarathy/fitness-tracker,viparthasarathy/fitness-tracker,viparthasarathy/fitness-tracker
ruby
## Code Before: require 'rails_helper' describe Log, :type => :model do it 'has valid factory' do expect(FactoryGirl.build(:log)).to be_valid end context 'properties' do before do @log = FactoryGirl.build(:log) end it 'has many chapters' do expect(@log).to respond_to(:chapters) en...
require 'rails_helper' describe Log, :type => :model do it 'has valid factory' do expect(FactoryGirl.build(:log)).to be_valid end context 'properties' do before do @log = FactoryGirl.build(:log) end it 'has many chapters' do expect(@log).to respond_to(:ch...
9
0.195652
8
1
2db538b86bc8f93b28b645411ef78830bd675c76
support/Config.php
support/Config.php
<?php /* * This file is part of Yolk - Gamer Network's PHP Framework. * * Copyright (c) 2015 Gamer Network Ltd. * * Distributed under the MIT License, a copy of which is available in the * LICENSE file that was bundled with this package, or online at: * https://github.com/gamernetwork/yolk-application */ name...
<?php /* * This file is part of Yolk - Gamer Network's PHP Framework. * * Copyright (c) 2015 Gamer Network Ltd. * * Distributed under the MIT License, a copy of which is available in the * LICENSE file that was bundled with this package, or online at: * https://github.com/gamernetwork/yolk-application */ name...
Support for loading a config file into a specific key
Support for loading a config file into a specific key
PHP
mit
gamernetwork/yolk-contracts
php
## Code Before: <?php /* * This file is part of Yolk - Gamer Network's PHP Framework. * * Copyright (c) 2015 Gamer Network Ltd. * * Distributed under the MIT License, a copy of which is available in the * LICENSE file that was bundled with this package, or online at: * https://github.com/gamernetwork/yolk-appli...
<?php /* * This file is part of Yolk - Gamer Network's PHP Framework. * * Copyright (c) 2015 Gamer Network Ltd. * * Distributed under the MIT License, a copy of which is available in the * LICENSE file that was bundled with this package, or online at: * https://github.com/gamernetwork/yolk-app...
2
0.057143
1
1
f65f18ceec8abf468b1426cf819c806f2d1d7ff8
auslib/migrate/versions/009_add_rule_alias.py
auslib/migrate/versions/009_add_rule_alias.py
from sqlalchemy import Column, String, MetaData, Table def upgrade(migrate_engine): metadata = MetaData(bind=migrate_engine) def add_alias(table): alias = Column('alias', String(50), unique=True) alias.create(table) add_alias(Table('rules', metadata, autoload=True)) add_alias(Table('r...
from sqlalchemy import Column, String, MetaData, Table def upgrade(migrate_engine): metadata = MetaData(bind=migrate_engine) alias = Column("alias", String(50), unique=True) alias.create(Table("rules", metadata, autoload=True), unique_name="alias_unique") history_alias = Column("alias", String(50)) ...
Fix migration script to make column unique+add index.
Fix migration script to make column unique+add index.
Python
mpl-2.0
testbhearsum/balrog,nurav/balrog,aksareen/balrog,testbhearsum/balrog,tieu/balrog,aksareen/balrog,aksareen/balrog,tieu/balrog,nurav/balrog,nurav/balrog,testbhearsum/balrog,tieu/balrog,mozbhearsum/balrog,mozbhearsum/balrog,aksareen/balrog,mozbhearsum/balrog,nurav/balrog,testbhearsum/balrog,mozbhearsum/balrog,tieu/balrog
python
## Code Before: from sqlalchemy import Column, String, MetaData, Table def upgrade(migrate_engine): metadata = MetaData(bind=migrate_engine) def add_alias(table): alias = Column('alias', String(50), unique=True) alias.create(table) add_alias(Table('rules', metadata, autoload=True)) ad...
from sqlalchemy import Column, String, MetaData, Table def upgrade(migrate_engine): metadata = MetaData(bind=migrate_engine) - def add_alias(table): - alias = Column('alias', String(50), unique=True) ? ---- ^ ^ + alias = Column("alias", String(50), unique=True) ...
10
0.588235
5
5
f7bbf6599623eefcecef89c10ee3f6fcbb97c3f7
roles/openshift_facts/tasks/main.yml
roles/openshift_facts/tasks/main.yml
--- - name: Gather OpenShift facts openshift_facts:
--- - name: Verify Ansible version is greater than 1.8.0 and not 1.9.0 assert: that: - ansible_version | version_compare('1.8.0', 'ge') - ansible_version | version_compare('1.9.0', 'ne') - name: Gather OpenShift facts openshift_facts:
Verify ansible is greater than 1.8.0 and not 1.9.0
Verify ansible is greater than 1.8.0 and not 1.9.0
YAML
apache-2.0
markllama/openshift-ansible,jimmidyson/openshift-ansible,menren/openshift-ansible,wbrefvem/openshift-ansible,quantiply-fork/openshift-ansible,rjhowe/openshift-ansible,nak3/openshift-ansible,ewolinetz/openshift-ansible,ibotty/openshift-ansible,mwoodson/openshift-ansible,wbrefvem/openshift-ansible,Jandersoft/openshift-an...
yaml
## Code Before: --- - name: Gather OpenShift facts openshift_facts: ## Instruction: Verify ansible is greater than 1.8.0 and not 1.9.0 ## Code After: --- - name: Verify Ansible version is greater than 1.8.0 and not 1.9.0 assert: that: - ansible_version | version_compare('1.8.0', 'ge') - ansible_versio...
--- + - name: Verify Ansible version is greater than 1.8.0 and not 1.9.0 + assert: + that: + - ansible_version | version_compare('1.8.0', 'ge') + - ansible_version | version_compare('1.9.0', 'ne') + - name: Gather OpenShift facts openshift_facts:
6
2
6
0
28f7b31d251fe9c07109ac21d5554250ef6f89eb
Cargo.toml
Cargo.toml
[package] name = "filters" version = "0.1.0" authors = ["Matthias Beyer <mail@beyermatthias.de>"] description = "Build filters/predicates with the builder pattern" keywords = ["iterator", "filter", "builder", "util"] readme = "./README.md" license = "LGPL-2.1" documentation = "https://matthiasbeyer.githu...
[package] name = "filters" version = "0.1.0" authors = ["Matthias Beyer <mail@beyermatthias.de>", "Marcel Müller <neikos@neikos.email>" ] description = "Build filters/predicates with the builder pattern" keywords = ["iterator", "filter", "builder", "util"] readme = "./README.md" license = "LGPL...
Add Marcel Müller als Author
Add Marcel Müller als Author
TOML
mpl-2.0
matthiasbeyer/filters
toml
## Code Before: [package] name = "filters" version = "0.1.0" authors = ["Matthias Beyer <mail@beyermatthias.de>"] description = "Build filters/predicates with the builder pattern" keywords = ["iterator", "filter", "builder", "util"] readme = "./README.md" license = "LGPL-2.1" documentation = "https://mat...
[package] name = "filters" version = "0.1.0" - authors = ["Matthias Beyer <mail@beyermatthias.de>"] ? ^ + authors = ["Matthias Beyer <mail@beyermatthias.de>", ? ^ + "Marcel Müller <neikos@neikos.emai...
3
0.214286
2
1
5af9f2cd214f12e2d16b696a0c62856e389b1397
test/test_doc.py
test/test_doc.py
import types from mpi4py import MPI import mpiunittest as unittest ModuleType = type(MPI) ClassType = type(MPI.Comm) FunctionType = type(MPI.Init) MethodDescrType = type(MPI.Comm.Get_rank) GetSetDescrType = type(MPI.Comm.rank) def getdocstr(mc, docstrings): if type(mc) in (ModuleType, ClassType): name = g...
import types from mpi4py import MPI import mpiunittest as unittest ModuleType = type(MPI) ClassType = type(MPI.Comm) FunctionType = type(MPI.Init) MethodDescrType = type(MPI.Comm.Get_rank) GetSetDescrType = type(MPI.Comm.rank) def getdocstr(mc, docstrings, namespace=None): name = getattr(mc, '__name__', None) ...
Improve test script, report namespaces for stuff missing docstrings
Improve test script, report namespaces for stuff missing docstrings
Python
bsd-2-clause
pressel/mpi4py,pressel/mpi4py,pressel/mpi4py,mpi4py/mpi4py,pressel/mpi4py,mpi4py/mpi4py,mpi4py/mpi4py
python
## Code Before: import types from mpi4py import MPI import mpiunittest as unittest ModuleType = type(MPI) ClassType = type(MPI.Comm) FunctionType = type(MPI.Init) MethodDescrType = type(MPI.Comm.Get_rank) GetSetDescrType = type(MPI.Comm.rank) def getdocstr(mc, docstrings): if type(mc) in (ModuleType, ClassType): ...
import types from mpi4py import MPI import mpiunittest as unittest ModuleType = type(MPI) ClassType = type(MPI.Comm) FunctionType = type(MPI.Init) MethodDescrType = type(MPI.Comm.Get_rank) GetSetDescrType = type(MPI.Comm.rank) - def getdocstr(mc, docstrings): + def getdocstr(mc, docstrings, namesp...
13
0.282609
7
6
10667b336ddb09d92339a91543ca4acea85f8e5f
CONTRIBUTING.md
CONTRIBUTING.md
We try to follow the [Golang coding standards](https://github.com/golang/go/wiki/CodeReviewComments) as close as possible. Make sure to run `go fmt`, `go vet`, `goimports`, `golint` before you push your code. ## Dependency Management Nginxbeats are using [godep](https://github.com/tools/godep) for dependency manage...
We try to follow the [Golang coding standards](https://github.com/golang/go/wiki/CodeReviewComments) as close as possible. And, we also follow [the seven rules of a great git commit message](http://chris.beams.io/posts/git-commit/). Anyway, make sure to run `go fmt`, `go vet`, `goimports`, `golint` before you push yo...
Add commit message writing practice
Add commit message writing practice
Markdown
apache-2.0
mrkschan/nginxbeat,mrkschan/nginxbeat,mrkschan/nginxbeat
markdown
## Code Before: We try to follow the [Golang coding standards](https://github.com/golang/go/wiki/CodeReviewComments) as close as possible. Make sure to run `go fmt`, `go vet`, `goimports`, `golint` before you push your code. ## Dependency Management Nginxbeats are using [godep](https://github.com/tools/godep) for d...
- We try to follow the [Golang coding standards](https://github.com/golang/go/wiki/CodeReviewComments) as close as possible. + We try to follow the [Golang coding standards](https://github.com/golang/go/wiki/CodeReviewComments) as close as possible. And, we also follow [the seven rules of a great git commit message]...
5
0.147059
3
2
3c256a9e260b836a81503f924aa3d6cf9032b59c
docs/mobile-application/installation.md
docs/mobile-application/installation.md
The mobile Android application is distributed through the [Google Play store] and requires a Google account. ## Download 1. Search for **PhotosynQ** in the [Google Play store]. 2. Tab the **Install** button. Check your permissions and **Accept** 3. Start the app by selecting the app icon from your phone start screen...
The mobile Android application is available on [Google Play] and requires a Google account. ## Download 1. Open [Google Play] 2. Search for **PhotosynQ** 3. Tab the **Install** button. Check your permissions and **Accept** 4. Start the app by selecting the app icon from your phone start screen ## Permissions The P...
Update wording to match google standards
Update wording to match google standards
Markdown
mit
Photosynq/PhotosynQ-Documentation
markdown
## Code Before: The mobile Android application is distributed through the [Google Play store] and requires a Google account. ## Download 1. Search for **PhotosynQ** in the [Google Play store]. 2. Tab the **Install** button. Check your permissions and **Accept** 3. Start the app by selecting the app icon from your ph...
- The mobile Android application is distributed through the [Google Play store] and requires a Google account. ? ^ ^^^^ ^^ - --- ^^^^^^^ ------ + The mobile Android application is available on [Google Play] and requires a Google account. ? ...
11
0.333333
6
5
39714a3b22baf75f693d2df1fe546682b7c3f35c
templates/accept_edit.html
templates/accept_edit.html
{% extends "base.html" %} {% block menubar %} {% include "includes/get_nav.html" %} {% endblock menubar %} {% block header %} <link href="{{ STATIC_URL }}calendar.css" type="text/css" rel="stylesheet" /> <link href="{{ STATIC_URL }}holidays.css" type="text/css" rel="stylesheet" /> {% endblock header %} {% b...
{% extends "base.html" %} {% block menubar %} {% include "includes/get_nav.html" %} {% endblock menubar %} {% block header %} <link href="{{ STATIC_URL }}calendar.css" type="text/css" rel="stylesheet" /> <link href="{{ STATIC_URL }}holidays.css" type="text/css" rel="stylesheet" /> {% endblock header %} {% b...
Use a select box for the status of the approval rather than two submit buttons.
Use a select box for the status of the approval rather than two submit buttons.
HTML
bsd-3-clause
AeroNotix/django-timetracker,AeroNotix/django-timetracker,AeroNotix/django-timetracker
html
## Code Before: {% extends "base.html" %} {% block menubar %} {% include "includes/get_nav.html" %} {% endblock menubar %} {% block header %} <link href="{{ STATIC_URL }}calendar.css" type="text/css" rel="stylesheet" /> <link href="{{ STATIC_URL }}holidays.css" type="text/css" rel="stylesheet" /> {% endbloc...
{% extends "base.html" %} {% block menubar %} {% include "includes/get_nav.html" %} {% endblock menubar %} {% block header %} <link href="{{ STATIC_URL }}calendar.css" type="text/css" rel="stylesheet" /> <link href="{{ STATIC_URL }}holidays.css" type="text/css" rel="stylesheet" /> {% end...
13
0.270833
12
1
86d1d05092b9c8e6b5c1723e6c7ad81c2aae7831
.travis.yml
.travis.yml
sudo: false language: php php: - 5.5 - 5.6 - 7.0 - hhvm - nightly matrix: allow_failures: - php: hhvm - php: nightly before_install: # Update composer binary - composer self-update before_script: # Install require & require-dev - composer install --prefer-source script: - phpunit --conf...
sudo: false language: php php: - 5.5 - 5.6 - 7.0 - hhvm - nightly matrix: allow_failures: - php: hhvm - php: nightly before_install: # Update composer binary - composer self-update before_script: # Install require & require-dev - composer install --prefer-source script: - ./vendor/bin/p...
Use a selected version of phpUnit
Use a selected version of phpUnit
YAML
mit
llaumgui/JunitXml
yaml
## Code Before: sudo: false language: php php: - 5.5 - 5.6 - 7.0 - hhvm - nightly matrix: allow_failures: - php: hhvm - php: nightly before_install: # Update composer binary - composer self-update before_script: # Install require & require-dev - composer install --prefer-source script: ...
sudo: false language: php php: - 5.5 - 5.6 - 7.0 - hhvm - nightly matrix: allow_failures: - php: hhvm - php: nightly before_install: # Update composer binary - composer self-update before_script: # Install require & require-dev - composer install --p...
2
0.066667
1
1
dba82e22b486bf6d15b5e32810adc51c281319e5
lib/rule.js
lib/rule.js
'use strict'; /* rule.js * Expresses CSS rules. */ const create = require('./create'); let Rule = create(function(names, list1, list2){ this.names = names; if (typeof names === 'string') this.names = [names]; if (this.names.length > 1 || arguments.length === 2) { this.type = 'selector'; this.selecto...
'use strict'; /* rule.js * Expresses CSS rules. */ const create = require('./create'); let Rule = create(function(name, list1, list2){ this.name = name; if (this.name[0] !== '@') { this.type = 'selector'; this.selector = this.name || []; this.items = list1 || []; } else if (this.name[0] === '@') ...
Change API for name to be string
Change API for name to be string
JavaScript
mit
jamen/rpv
javascript
## Code Before: 'use strict'; /* rule.js * Expresses CSS rules. */ const create = require('./create'); let Rule = create(function(names, list1, list2){ this.names = names; if (typeof names === 'string') this.names = [names]; if (this.names.length > 1 || arguments.length === 2) { this.type = 'selector'; ...
'use strict'; /* rule.js * Expresses CSS rules. */ const create = require('./create'); - let Rule = create(function(names, list1, list2){ ? - + let Rule = create(function(name, list1, list2){ - this.names = names; ? - - + this.name = name; + i...
14
0.291667
6
8
16fa8f7117b04e3dea5ee99427e0d946eaa601a6
test/cli/commands/test_watch.rb
test/cli/commands/test_watch.rb
class Nanoc::CLI::Commands::WatchTest < MiniTest::Unit::TestCase include Nanoc::TestHelpers def setup super @@warned ||= begin STDERR.puts "\n(fssm deprecation warning can be ignored; master branch uses guard/listen)" true end end def test_run with_site do |s| watch_thread ...
class Nanoc::CLI::Commands::WatchTest < MiniTest::Unit::TestCase include Nanoc::TestHelpers def setup super @@warned ||= begin STDERR.puts "\n(fssm deprecation warning can be ignored; master branch uses guard/listen)" true end end def test_run with_site do |s| watch_thread ...
Make watcher test case kill watcher thread to avoid garbage output
Make watcher test case kill watcher thread to avoid garbage output
Ruby
mit
remko/nanoc,gjtorikian/nanoc,barraq/nanoc,hilohiro/nanoc,nanoc/nanoc,RubenVerborgh/nanoc,legallybrown/nanoc
ruby
## Code Before: class Nanoc::CLI::Commands::WatchTest < MiniTest::Unit::TestCase include Nanoc::TestHelpers def setup super @@warned ||= begin STDERR.puts "\n(fssm deprecation warning can be ignored; master branch uses guard/listen)" true end end def test_run with_site do |s| ...
class Nanoc::CLI::Commands::WatchTest < MiniTest::Unit::TestCase include Nanoc::TestHelpers def setup super @@warned ||= begin STDERR.puts "\n(fssm deprecation warning can be ignored; master branch uses guard/listen)" true end end def test_run with_s...
4
0.08
3
1
34feaa97c2815c60d4b4d5035c9a9b860558f9a0
BothamNetworking/HTTPClient.swift
BothamNetworking/HTTPClient.swift
// // HTTPClient.swift // BothamNetworking // // Created by Pedro Vicente Gomez on 20/11/15. // Copyright © 2015 GoKarumi S.L. All rights reserved. // import Foundation import Foundation import Result public protocol HTTPClient { func send(httpRequest: HTTPRequest, completion: (Result<HTTPResponse, NSError>...
// // HTTPClient.swift // BothamNetworking // // Created by Pedro Vicente Gomez on 20/11/15. // Copyright © 2015 GoKarumi S.L. All rights reserved. // import Foundation import Foundation import Result public protocol HTTPClient { func send(httpRequest: HTTPRequest, completion: (Result<HTTPResponse, NSError>...
Add a new valid content type header
Add a new valid content type header
Swift
apache-2.0
Karumi/BothamNetworking,Karumi/BothamNetworking
swift
## Code Before: // // HTTPClient.swift // BothamNetworking // // Created by Pedro Vicente Gomez on 20/11/15. // Copyright © 2015 GoKarumi S.L. All rights reserved. // import Foundation import Foundation import Result public protocol HTTPClient { func send(httpRequest: HTTPRequest, completion: (Result<HTTPRe...
// // HTTPClient.swift // BothamNetworking // // Created by Pedro Vicente Gomez on 20/11/15. // Copyright © 2015 GoKarumi S.L. All rights reserved. // import Foundation import Foundation import Result public protocol HTTPClient { func send(httpRequest: HTTPRequest, completion...
8
0.222222
6
2
ba848918fe4200458af4712ae2113fb5bfd1b3b6
.travis.yml
.travis.yml
language: python sudo: false script: ./scripts/travis.sh os: - linux python: - 3.5 - 3.6 matrix: include: - python: 3.7 dist: xenial sudo: true - python: 3.8 dist: xenial sudo: true - python: 3.9 dist: xenial sudo: true - python: 3.10 dist: focal s...
language: python sudo: false script: ./scripts/travis.sh os: - linux python: - "3.5" - "3.6" matrix: include: - python: "3.7" dist: "xenial" sudo: true - python: "3.8" dist: "xenial" sudo: true - python: "3.9" dist: "xenial" sudo: true - python: "3.10" d...
Put 3.10 in Quotes for Travis
Put 3.10 in Quotes for Travis
YAML
bsd-3-clause
datafolklabs/cement,datafolklabs/cement,datafolklabs/cement
yaml
## Code Before: language: python sudo: false script: ./scripts/travis.sh os: - linux python: - 3.5 - 3.6 matrix: include: - python: 3.7 dist: xenial sudo: true - python: 3.8 dist: xenial sudo: true - python: 3.9 dist: xenial sudo: true - python: 3.10 dis...
language: python sudo: false script: ./scripts/travis.sh os: - linux python: - - 3.5 + - "3.5" ? + + - - 3.6 + - "3.6" ? + + matrix: include: - - python: 3.7 + - python: "3.7" ? + + - dist: xenial + dist: "xenial" ? + + ...
20
0.8
10
10
4697787c33396ff0d55cae67c45bce391fc884fc
.travis.yml
.travis.yml
sudo: false language: php php: - 7.1 - 7.2 addons: apt: packages: - rabbitmq-server services: - rabbitmq before_install: - rabbitmq-plugins enable rabbitmq_management - composer self-update --stable --no-interaction before_script: - composer install --prefer-source --no...
language: php php: - 7.1 - 7.2 addons: apt: packages: - rabbitmq-server services: - rabbitmq before_install: - sudo rabbitmq-plugins enable rabbitmq_management - composer self-update --stable --no-interaction before_script: - composer install --prefer-source --no-interac...
Use sudo to enable the rabbitmq plugin
Use sudo to enable the rabbitmq plugin
YAML
mit
odolbeau/rabbit-mq-admin-toolkit
yaml
## Code Before: sudo: false language: php php: - 7.1 - 7.2 addons: apt: packages: - rabbitmq-server services: - rabbitmq before_install: - rabbitmq-plugins enable rabbitmq_management - composer self-update --stable --no-interaction before_script: - composer install --pr...
- sudo: false - language: php php: - 7.1 - 7.2 addons: apt: packages: - rabbitmq-server services: - rabbitmq before_install: - - rabbitmq-plugins enable rabbitmq_management + - sudo rabbitmq-plugins enable rabbitmq_management ? +++++ ...
4
0.148148
1
3
8d7051913c6940d4e0e87f5a6ea011d936f79742
test/SemaCXX/old-style-cast.cpp
test/SemaCXX/old-style-cast.cpp
// RUN: %clang_cc1 -fsyntax-only -verify -Wold-style-cast %s void test1() { long x = (long)12; // expected-warning {{use of old-style cast}} (long)x; // expected-warning {{use of old-style cast}} expected-warning {{expression result unused}} (void**)x; // expected-warning {{use of old-style cast}} expected-warni...
// RUN: %clang_cc1 -triple x86_64-apple-darwin -fsyntax-only -verify -Wold-style-cast %s void test1() { long x = (long)12; // expected-warning {{use of old-style cast}} (long)x; // expected-warning {{use of old-style cast}} expected-warning {{expression result unused}} (void**)x; // expected-warning {{use of old...
Add a triple to fix this test on Windows
Add a triple to fix this test on Windows The warning from cmake-clang-x64-msc16-R was: test\SemaCXX\old-style-cast.cpp Line 6: cast to 'void **' from smaller integer type 'long' git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@195813 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
c++
## Code Before: // RUN: %clang_cc1 -fsyntax-only -verify -Wold-style-cast %s void test1() { long x = (long)12; // expected-warning {{use of old-style cast}} (long)x; // expected-warning {{use of old-style cast}} expected-warning {{expression result unused}} (void**)x; // expected-warning {{use of old-style cast}...
- // RUN: %clang_cc1 -fsyntax-only -verify -Wold-style-cast %s + // RUN: %clang_cc1 -triple x86_64-apple-darwin -fsyntax-only -verify -Wold-style-cast %s ? ++++++++++++++++++++++++++++ void test1() { long x = (long)12; // expected-warning {{use of old-style cast}} (long)x; // expected-wa...
2
0.181818
1
1
ab14020f31da3fda8d4c652485b311597a46e8fb
_includes/social/icon_partial.html
_includes/social/icon_partial.html
{% if include.isDisplayed %} <li> <a href="{{ include.url }}" title="{{ site.data.language.str_follow_on }} {{ include.social }}"> <span class="fa-stack fa-lg"> <i class="fas fa-circle fa-stack-2x"></i> <i class="fab fa-{{ include.social | downcase }} fa-stack-1x fa-inverse"></i> ...
{% if include.isDisplayed %} <li> <a href="{{ include.url }}" title="{{ site.data.language.str_follow_on }} {{ include.social }}" rel="me"> <span class="fa-stack fa-lg"> <i class="fas fa-circle fa-stack-2x"></i> <i class="fab fa-{{ include.social | downcase }} fa-stack-1x fa-...
Use rel="me" for identity consolidation
Use rel="me" for identity consolidation Adopt XFN specification https://gmpg.org/xfn/and/#idconsolidation
HTML
mit
Jeansen/jeansen.github.io,Jeansen/jeansen.github.io,Jeansen/jeansen.github.io
html
## Code Before: {% if include.isDisplayed %} <li> <a href="{{ include.url }}" title="{{ site.data.language.str_follow_on }} {{ include.social }}"> <span class="fa-stack fa-lg"> <i class="fas fa-circle fa-stack-2x"></i> <i class="fab fa-{{ include.social | downcase }} fa-stack-1x fa-...
{% if include.isDisplayed %} <li> <a href="{{ include.url }}" - title="{{ site.data.language.str_follow_on }} {{ include.social }}"> ? - + title="{{ site.data.language.str_follow_on }} {{ include.social }}" + rel="...
3
0.272727
2
1
bb8a08cf2550cef1d8901187e243fe3708f278eb
index.js
index.js
var utils = require('loader-utils'); var sass = require('node-sass'); var path = require('path'); module.exports = function(content) { var root; this.cacheable && this.cacheable(); var callback = this.async(); var opt = utils.parseQuery(this.query); opt.data = content; // set include path to fix ...
var nutil = require('util'); var utils = require('loader-utils'); var sass = require('node-sass'); var path = require('path'); module.exports = function(content) { var root; this.cacheable && this.cacheable(); var callback = this.async(); var opt = utils.parseQuery(this.query); opt.data = content; i...
Allow contextDependencies to be specified
Allow contextDependencies to be specified
JavaScript
mit
endaaman/sass-loader,oliverturner/sass-loader,jorrit/sass-loader,endaaman/sass-loader,mcanthony/sass-loader,Tol1/sass-loader,gabriel-laet/sass-loader,Updater/sass-loader,stevemao/sass-loader,Updater/sass-loader,jorrit/sass-loader,modulexcite/sass-loader,dtothefp/sass-loader,stevemao/sass-loader,mcanthony/sass-loader,od...
javascript
## Code Before: var utils = require('loader-utils'); var sass = require('node-sass'); var path = require('path'); module.exports = function(content) { var root; this.cacheable && this.cacheable(); var callback = this.async(); var opt = utils.parseQuery(this.query); opt.data = content; // set incl...
+ var nutil = require('util'); var utils = require('loader-utils'); var sass = require('node-sass'); var path = require('path'); module.exports = function(content) { var root; this.cacheable && this.cacheable(); var callback = this.async(); var opt = utils.parseQuery(this.query)...
13
0.371429
12
1
3d0a46f3e16889f2769ec9ec57affb3a21726c95
app/models/course_membership.rb
app/models/course_membership.rb
class CourseMembership < ActiveRecord::Base belongs_to :course belongs_to :user attr_accessible :auditing, :character_profile, :course_id, :instructor_of_record, :user_id, :role ROLES = %w(student professor gsi admin) ROLES.each do |role| scope role.pluralize, ->(course) { where role: role } de...
class CourseMembership < ActiveRecord::Base belongs_to :course belongs_to :user attr_accessible :auditing, :character_profile, :course_id, :instructor_of_record, :user_id, :role ROLES = %w(student professor gsi admin) ROLES.each do |role| scope role.pluralize, ->(course) { where role: role } de...
Update the instructors of record when their roles are updated
Update the instructors of record when their roles are updated
Ruby
agpl-3.0
UM-USElab/gradecraft-development,peterkshultz/gradecraft-development,peterkshultz/gradecraft-development,UM-USElab/gradecraft-development,UM-USElab/gradecraft-development,mkoon/gradecraft-development,mkoon/gradecraft-development,UM-USElab/gradecraft-development,peterkshultz/gradecraft-development,mkoon/gradecraft-devel...
ruby
## Code Before: class CourseMembership < ActiveRecord::Base belongs_to :course belongs_to :user attr_accessible :auditing, :character_profile, :course_id, :instructor_of_record, :user_id, :role ROLES = %w(student professor gsi admin) ROLES.each do |role| scope role.pluralize, ->(course) { where rol...
class CourseMembership < ActiveRecord::Base belongs_to :course belongs_to :user attr_accessible :auditing, :character_profile, :course_id, :instructor_of_record, :user_id, :role ROLES = %w(student professor gsi admin) ROLES.each do |role| scope role.pluralize, ->(course) { whe...
3
0.06383
3
0
9c40ab5f06d152e679ce85ac177096813140ed5c
cookbooks/ondemand_base/recipes/windows.rb
cookbooks/ondemand_base/recipes/windows.rb
windows_feature "SNMP-Service" action :install end #Install Powershell feature windows_feature "PowerShell-ISE" action :install end #Install .NET 3.5.1 windows_feature "NET-Framework-Core" action :install end #Install MSMQ windows_feature "MSMQ-Server" action :install end #Turn off hibernation execute powe...
windows_feature "SNMP-Service" action :install end #Install Powershell feature windows_feature "PowerShell-ISE" action :install end #Install .NET 3.5.1 windows_feature "NET-Framework-Core" action :install end #Install MSMQ windows_feature "MSMQ-Server" action :install end #Turn off hibernation execute powe...
Add auto rebooting on system crashes with dump creation and event log logging.
Add auto rebooting on system crashes with dump creation and event log logging.
Ruby
apache-2.0
scottymarshall/rundeck,scottymarshall/rundeck,scottymarshall/rundeck
ruby
## Code Before: windows_feature "SNMP-Service" action :install end #Install Powershell feature windows_feature "PowerShell-ISE" action :install end #Install .NET 3.5.1 windows_feature "NET-Framework-Core" action :install end #Install MSMQ windows_feature "MSMQ-Server" action :install end #Turn off hibernat...
windows_feature "SNMP-Service" action :install end #Install Powershell feature windows_feature "PowerShell-ISE" action :install end #Install .NET 3.5.1 windows_feature "NET-Framework-Core" action :install end #Install MSMQ windows_feature "MSMQ-Server" action :install end...
9
0.257143
9
0
6fa5e57b0dd68f2d4c682328e915fe4cccc4213e
web_client/views/imageViewerWidget/base.js
web_client/views/imageViewerWidget/base.js
import { restRequest } from 'girder/rest'; import View from 'girder/views/View'; var ImageViewerWidget = View.extend({ initialize: function (settings) { this.itemId = settings.itemId; restRequest({ type: 'GET', path: 'item/' + this.itemId + '/tiles' }).done((resp) =...
import { apiRoot, restRequest } from 'girder/rest'; import View from 'girder/views/View'; var ImageViewerWidget = View.extend({ initialize: function (settings) { this.itemId = settings.itemId; restRequest({ type: 'GET', path: 'item/' + this.itemId + '/tiles' }).done...
Fix a hard-coded api root in the image viewer.
Fix a hard-coded api root in the image viewer.
JavaScript
apache-2.0
DigitalSlideArchive/large_image,DigitalSlideArchive/large_image,DigitalSlideArchive/large_image,girder/large_image,girder/large_image,girder/large_image
javascript
## Code Before: import { restRequest } from 'girder/rest'; import View from 'girder/views/View'; var ImageViewerWidget = View.extend({ initialize: function (settings) { this.itemId = settings.itemId; restRequest({ type: 'GET', path: 'item/' + this.itemId + '/tiles' ...
- import { restRequest } from 'girder/rest'; + import { apiRoot, restRequest } from 'girder/rest'; ? +++++++++ import View from 'girder/views/View'; var ImageViewerWidget = View.extend({ initialize: function (settings) { this.itemId = settings.itemId; restRequest({ ...
4
0.095238
2
2
12f1024d559c300c7c04256362da78ec8d3a647b
data/models.py
data/models.py
from django.db import models class DataPoint(models.Model): name = models.CharField(max_length=600) exact_name = models.CharField(max_length=1000, null=True, blank=True) decay_feature = models.CharField(max_length=1000, null=True, blank=True) options = models.CharField(max_length=100) homo = mode...
import numpy import ast from django.db import models class DataPoint(models.Model): name = models.CharField(max_length=600) exact_name = models.CharField(max_length=1000, null=True, blank=True) decay_feature = models.CharField(max_length=1000, null=True, blank=True) options = models.CharField(max_le...
Add method on DataPoint to get numpy matrices with all the ML data
Add method on DataPoint to get numpy matrices with all the ML data
Python
mit
crcollins/chemtools-webapp,crcollins/chemtools-webapp,crcollins/chemtools-webapp,crcollins/chemtools-webapp,crcollins/chemtools-webapp
python
## Code Before: from django.db import models class DataPoint(models.Model): name = models.CharField(max_length=600) exact_name = models.CharField(max_length=1000, null=True, blank=True) decay_feature = models.CharField(max_length=1000, null=True, blank=True) options = models.CharField(max_length=100)...
+ import numpy + import ast + from django.db import models class DataPoint(models.Model): name = models.CharField(max_length=600) exact_name = models.CharField(max_length=1000, null=True, blank=True) decay_feature = models.CharField(max_length=1000, null=True, blank=True) options =...
21
1.166667
21
0
274c0a242ea7b0fac26dfaa1ea7e6ff8967bc9da
packer/src/packlist.yaml
packer/src/packlist.yaml
mac: mode: exact basedir: mac files: frameworks: - Flipper.app/Contents/Frameworks/ - Flipper.app/Contents/MacOS - Flipper.app/Contents/PkgInfo core: - Flipper.app/Contents/Resources - Flipper.app/Contents/Info.plist linux: mode: glob basedir: linux-unpacked files: ...
mac: mode: exact basedir: mac files: frameworks: - Flipper.app/Contents/Frameworks/ - Flipper.app/Contents/MacOS - Flipper.app/Contents/PkgInfo core: - Flipper.app/Contents/Resources - Flipper.app/Contents/Info.plist linux: mode: glob basedir: linux-unpacked files: ...
Update mac server bundle layout
Update mac server bundle layout Summary: Take changes from D36140809 into account. Reviewed By: aigoncharov Differential Revision: D36206155 fbshipit-source-id: 794f8dd60e47f14acc4fb5fd9fd3d98fa5afdadf
YAML
mit
facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper
yaml
## Code Before: mac: mode: exact basedir: mac files: frameworks: - Flipper.app/Contents/Frameworks/ - Flipper.app/Contents/MacOS - Flipper.app/Contents/PkgInfo core: - Flipper.app/Contents/Resources - Flipper.app/Contents/Info.plist linux: mode: glob basedir: linux-unpac...
mac: mode: exact basedir: mac files: frameworks: - Flipper.app/Contents/Frameworks/ - Flipper.app/Contents/MacOS - Flipper.app/Contents/PkgInfo core: - Flipper.app/Contents/Resources - Flipper.app/Contents/Info.plist linux: mode: glob basedi...
10
0.238095
5
5
e762c50fba4e25c6cff3152ab499c6ff310c95ee
src/components/UserVideos.js
src/components/UserVideos.js
import React from 'react' import {connect} from 'react-redux' import {Link} from 'react-router-dom' import {compose} from 'recompose' import {updateUserVideos} from '../actions/userVideos' import {withDatabaseSubscribe} from './hocs' import VideoPreviewsList from './VideoPreviewsList' const mapStateToProps = ({userVi...
import React from 'react' import {connect} from 'react-redux' import {compose, withHandlers, withProps} from 'recompose' import {updateUserVideos} from '../actions/userVideos' import {createVideo, VideoOwnerTypes} from '../actions/videos' import {withDatabaseSubscribe} from './hocs' import VideoPreviewsList from './Vi...
Make a user create video button
Make a user create video button
JavaScript
mit
mg4tv/mg4tv-web,mg4tv/mg4tv-web
javascript
## Code Before: import React from 'react' import {connect} from 'react-redux' import {Link} from 'react-router-dom' import {compose} from 'recompose' import {updateUserVideos} from '../actions/userVideos' import {withDatabaseSubscribe} from './hocs' import VideoPreviewsList from './VideoPreviewsList' const mapStateTo...
import React from 'react' import {connect} from 'react-redux' + import {compose, withHandlers, withProps} from 'recompose' - import {Link} from 'react-router-dom' - import {compose} from 'recompose' import {updateUserVideos} from '../actions/userVideos' + import {createVideo, VideoOwnerTypes} from '../actions/...
41
1.108108
31
10
43e1069a059330ca7acbfd2186aac1f9a952d9d4
Compiler/U3Windows/u3/u3windows.js
Compiler/U3Windows/u3/u3windows.js
window.registerMessageListener = null; window.sendMessage = null; (() => { let queue = []; let bridgeInstance = null; console.log(window.chrome.webview.hostObjects); console.log(window.chrome.webview.hostObjects.u3bridge); window.chrome.webview.hostObjects.u3bridge.then(async bridge => { bridgeInstance = bridge...
window.registerMessageListener = null; window.sendMessage = null; (() => { let queue = []; let bridgeInstance = null; window.chrome.webview.hostObjects.u3bridge.then(async bridge => { bridgeInstance = bridge; await bridgeInstance.sendToCSharp('bridgeReady', '{}'); if (queue.length > 0) { for (let queuedIt...
Remove a couple of leftover debug console.logs
Remove a couple of leftover debug console.logs
JavaScript
mit
blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon
javascript
## Code Before: window.registerMessageListener = null; window.sendMessage = null; (() => { let queue = []; let bridgeInstance = null; console.log(window.chrome.webview.hostObjects); console.log(window.chrome.webview.hostObjects.u3bridge); window.chrome.webview.hostObjects.u3bridge.then(async bridge => { bridgeI...
window.registerMessageListener = null; window.sendMessage = null; (() => { let queue = []; let bridgeInstance = null; - console.log(window.chrome.webview.hostObjects); - console.log(window.chrome.webview.hostObjects.u3bridge); window.chrome.webview.hostObjects.u3bridge.then(async bridge => { bridg...
2
0.051282
0
2
c725f1d9206e251cd6a21726ca9985f5a8ebb877
src/third_party/stlplus3/CMakeLists.txt
src/third_party/stlplus3/CMakeLists.txt
project(stlplus C CXX) file(GLOB LIBSLTPLUS_HPP_FILESYSTEM "${CMAKE_CURRENT_SOURCE_DIR}/filesystemSimplified/*.hpp" ) file(GLOB LIBSLTPLUS_CPP_FILESYSTEM "${CMAKE_CURRENT_SOURCE_DIR}/filesystemSimplified/*.cpp" ) list(APPEND LIBSLTPLUS_SRCS ${LIBSLTPLUS_HPP_FILESYSTEM} ${LIBSLTPLUS_CPP_FILESYSTEM}) add_library(ope...
project(stlplus C CXX) file(GLOB LIBSLTPLUS_HPP_FILESYSTEM "${CMAKE_CURRENT_SOURCE_DIR}/filesystemSimplified/*.hpp" ) file(GLOB LIBSLTPLUS_CPP_FILESYSTEM "${CMAKE_CURRENT_SOURCE_DIR}/filesystemSimplified/*.cpp" ) list(APPEND LIBSLTPLUS_SRCS ${LIBSLTPLUS_HPP_FILESYSTEM} ${LIBSLTPLUS_CPP_FILESYSTEM}) add_library(ope...
Enhance the transitive stlplus include path.
[build] Enhance the transitive stlplus include path.
Text
mpl-2.0
openMVG/openMVG,openMVG/openMVG,openMVG/openMVG,openMVG/openMVG,openMVG/openMVG
text
## Code Before: project(stlplus C CXX) file(GLOB LIBSLTPLUS_HPP_FILESYSTEM "${CMAKE_CURRENT_SOURCE_DIR}/filesystemSimplified/*.hpp" ) file(GLOB LIBSLTPLUS_CPP_FILESYSTEM "${CMAKE_CURRENT_SOURCE_DIR}/filesystemSimplified/*.cpp" ) list(APPEND LIBSLTPLUS_SRCS ${LIBSLTPLUS_HPP_FILESYSTEM} ${LIBSLTPLUS_CPP_FILESYSTEM}) ...
project(stlplus C CXX) file(GLOB LIBSLTPLUS_HPP_FILESYSTEM "${CMAKE_CURRENT_SOURCE_DIR}/filesystemSimplified/*.hpp" ) file(GLOB LIBSLTPLUS_CPP_FILESYSTEM "${CMAKE_CURRENT_SOURCE_DIR}/filesystemSimplified/*.cpp" ) list(APPEND LIBSLTPLUS_SRCS ${LIBSLTPLUS_HPP_FILESYSTEM} ${LIBSLTPLUS_CPP_FILESYSTEM}) ...
13
0.40625
10
3
c6af73103ef0f77a0c86ce4058c6e44c6a724dc4
bin/diff2marked.bash
bin/diff2marked.bash
cat - > /dev/null cd $MARKED_ORIGIN git diff --no-color --word-diff -U99999 -- $MARKED_PATH | sed -e '1,5d;s/ *{[-\.].*}$//g;s/\[-/{--/g;s/-\]/--}/g;s/{\+/{++/g;s/\+}/++}/g'
cd $MARKED_ORIGIN if git diff --quiet -- $MARKED_PATH; then cat - exit else cat - > /dev/null git diff --no-color --word-diff -U99999 -- $MARKED_PATH | sed -e '1,5d;s/ *{[-\.].*}$//g;s/\[-/{--/g;s/-\]/--}/g;s/{\+/{++/g;s/\+}/++}/g' fi
Handle case of no differences in diff preprocessor
Handle case of no differences in diff preprocessor
Shell
agpl-3.0
alerque/casile,alerque/casile,alerque/casile,alerque/casile,alerque/casile
shell
## Code Before: cat - > /dev/null cd $MARKED_ORIGIN git diff --no-color --word-diff -U99999 -- $MARKED_PATH | sed -e '1,5d;s/ *{[-\.].*}$//g;s/\[-/{--/g;s/-\]/--}/g;s/{\+/{++/g;s/\+}/++}/g' ## Instruction: Handle case of no differences in diff preprocessor ## Code After: cd $MARKED_ORIGIN if git diff --quiet -- $M...
- cat - > /dev/null cd $MARKED_ORIGIN + if git diff --quiet -- $MARKED_PATH; then + cat - + exit + else + cat - > /dev/null - git diff --no-color --word-diff -U99999 -- $MARKED_PATH | + git diff --no-color --word-diff -U99999 -- $MARKED_PATH | ? ++++ - sed -e '1,5d;s/ *{[-\.].*}$//g;s/\[-/{--/g;s...
11
2.2
8
3
e3828ae72ae778461eee9b93ccc87167505f91f8
validate.py
validate.py
"""Check for inconsistancies in the database.""" from server.db import BuildingBuilder, BuildingType, load, UnitType def main(): load() for name in UnitType.resource_names(): if UnitType.count(getattr(UnitType, name) == 1): continue else: print(f'There is no unit that ...
"""Check for inconsistancies in the database.""" from server.db import ( BuildingBuilder, BuildingRecruit, BuildingType, load, UnitType ) def main(): load() for name in UnitType.resource_names(): if UnitType.count(getattr(UnitType, name) >= 1): continue else: print...
Make sure all unit types can be recruited.
Make sure all unit types can be recruited.
Python
mpl-2.0
chrisnorman7/pyrts,chrisnorman7/pyrts,chrisnorman7/pyrts
python
## Code Before: """Check for inconsistancies in the database.""" from server.db import BuildingBuilder, BuildingType, load, UnitType def main(): load() for name in UnitType.resource_names(): if UnitType.count(getattr(UnitType, name) == 1): continue else: print(f'There ...
"""Check for inconsistancies in the database.""" - from server.db import BuildingBuilder, BuildingType, load, UnitType + from server.db import ( + BuildingBuilder, BuildingRecruit, BuildingType, load, UnitType + ) def main(): load() for name in UnitType.resource_names(): - if UnitTy...
9
0.409091
7
2
2c144d327c84875887fd1b22fa5418224c987c6d
Model.hs
Model.hs
{-# LANGUAGE TemplateHaskell, QuasiQuotes, TypeFamilies, GADTs #-} {-# LANGUAGE FlexibleContexts #-} module Model where import Prelude import Yesod import Data.Text (Text) -- You can define all of your database entities in the entities file. -- You can find more information on persistent and how to declare entities ...
{-# LANGUAGE TemplateHaskell, QuasiQuotes, TypeFamilies, GADTs #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE OverloadedStrings #-} module Model where import Prelude import Yesod import Data.Text (Text) import Text.Blaze (ToHtml(toHtml)) -- You can define all of your database entities in the entities file. -- Yo...
Declare ToHtml instance for Sex (compilation pass on cabal but failed on cabal-dev)
Declare ToHtml instance for Sex (compilation pass on cabal but failed on cabal-dev)
Haskell
bsd-2-clause
cutsea110/tut
haskell
## Code Before: {-# LANGUAGE TemplateHaskell, QuasiQuotes, TypeFamilies, GADTs #-} {-# LANGUAGE FlexibleContexts #-} module Model where import Prelude import Yesod import Data.Text (Text) -- You can define all of your database entities in the entities file. -- You can find more information on persistent and how to d...
{-# LANGUAGE TemplateHaskell, QuasiQuotes, TypeFamilies, GADTs #-} {-# LANGUAGE FlexibleContexts #-} + {-# LANGUAGE OverloadedStrings #-} module Model where import Prelude import Yesod import Data.Text (Text) + import Text.Blaze (ToHtml(toHtml)) -- You can define all of your database entities in ...
5
0.277778
5
0
23331ac06f363d2d32beda7c94878981a8340dc2
lib/nehm/commands/search_command.rb
lib/nehm/commands/search_command.rb
require 'nehm/tracks_view_command' module Nehm class SearchCommand < TracksViewCommand def initialize super end def execute @query = @options[:args].join(' ') super end def arguments { 'QUERY' => 'Search query' } end def program_name 'nehm search' en...
require 'nehm/tracks_view_command' module Nehm class SearchCommand < TracksViewCommand def initialize super add_option(:"-t", '-t PATH', 'Download track(s) to PATH') add_option(:"-pl", '-pl PLAYLIST', 'Add track(s) to iTunes playlist with PLAYLIST name') ...
Use dash-options in search command
Use dash-options in search command
Ruby
mit
bogem/nehm
ruby
## Code Before: require 'nehm/tracks_view_command' module Nehm class SearchCommand < TracksViewCommand def initialize super end def execute @query = @options[:args].join(' ') super end def arguments { 'QUERY' => 'Search query' } end def program_name 'neh...
require 'nehm/tracks_view_command' module Nehm class SearchCommand < TracksViewCommand def initialize super + + add_option(:"-t", '-t PATH', + 'Download track(s) to PATH') + + add_option(:"-pl", '-pl PLAYLIST', + 'Add track(s) to iTunes play...
23
0.560976
22
1
2b2a7c8b95155559d28138c9f2c62e7b5048b6ea
gateway/ci/make_tarball.sh
gateway/ci/make_tarball.sh
set -e SCRIPT_LOCATION=$(cd "$(dirname "$0")"; pwd) if [ $# -lt 1 ]; then echo "Usage: $0 <CernVM-FS source directory (the same as the build directory)>" echo "This script builds packages for the current platform." exit 1 fi CVMFS_BUILD_LOCATION="$1" shift 1 # run the build script echo "switching to $CVMFS_B...
set -e SCRIPT_LOCATION=$(cd "$(dirname "$0")"; pwd) if [ $# -lt 1 ]; then echo "Usage: $0 <CernVM-FS source directory (the same as the build directory)>" echo "This script builds packages for the current platform." exit 1 fi CVMFS_BUILD_LOCATION="$1" shift 1 export REBAR_CACHE_DIR=$WORKSPACE # run the build...
Set REBAR_CACHE_DIR to root of CI workspace
Set REBAR_CACHE_DIR to root of CI workspace
Shell
bsd-3-clause
DrDaveD/cvmfs,DrDaveD/cvmfs,cvmfs/cvmfs,cvmfs/cvmfs,cvmfs/cvmfs,cvmfs/cvmfs,DrDaveD/cvmfs,DrDaveD/cvmfs,DrDaveD/cvmfs,cvmfs/cvmfs,DrDaveD/cvmfs,cvmfs/cvmfs,cvmfs/cvmfs,DrDaveD/cvmfs
shell
## Code Before: set -e SCRIPT_LOCATION=$(cd "$(dirname "$0")"; pwd) if [ $# -lt 1 ]; then echo "Usage: $0 <CernVM-FS source directory (the same as the build directory)>" echo "This script builds packages for the current platform." exit 1 fi CVMFS_BUILD_LOCATION="$1" shift 1 # run the build script echo "switc...
set -e SCRIPT_LOCATION=$(cd "$(dirname "$0")"; pwd) if [ $# -lt 1 ]; then echo "Usage: $0 <CernVM-FS source directory (the same as the build directory)>" echo "This script builds packages for the current platform." exit 1 fi CVMFS_BUILD_LOCATION="$1" shift 1 + export REBAR_CACHE_D...
4
0.142857
2
2
765e407b2f96bcad75a7c4dbe07f53d4fdd7a5d4
README.txt
README.txt
The LLVM Compiler Infrastructure ================================ This directory and its subdirectories contain source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and runtime environments. LLVM is open source software. You may freely distribute it under the terms of the li...
The swift-llvm repository is frozen and is preserved for historical purposes only. Active development is now happening in the following repository: https://github.com/apple/llvm-project. The LLVM Compiler Infrastructure ================================ This directory and its subdirectories contain source code for LL...
Update readme to point to monorepo
Update readme to point to monorepo
Text
apache-2.0
apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm
text
## Code Before: The LLVM Compiler Infrastructure ================================ This directory and its subdirectories contain source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and runtime environments. LLVM is open source software. You may freely distribute it under the...
+ + The swift-llvm repository is frozen and is preserved for historical purposes only. + Active development is now happening in the following repository: https://github.com/apple/llvm-project. + The LLVM Compiler Infrastructure ================================ This directory and its subdirectories contain so...
4
0.235294
4
0
712bd9ee6b06d0964f53418fe7cb338d35f59ed1
certbot-nginx/tests/boulder-integration.sh
certbot-nginx/tests/boulder-integration.sh
. ./tests/integration/_common.sh export PATH="/usr/sbin:$PATH" # /usr/sbin/nginx nginx_root="$root/nginx" mkdir $nginx_root root="$nginx_root" ./certbot-nginx/tests/boulder-integration.conf.sh > $nginx_root/nginx.conf killall nginx || true nginx -c $nginx_root/nginx.conf certbot_test_nginx () { certbot_test \ ...
. ./tests/integration/_common.sh export PATH="/usr/sbin:$PATH" # /usr/sbin/nginx nginx_root="$root/nginx" mkdir $nginx_root root="$nginx_root" ./certbot-nginx/tests/boulder-integration.conf.sh > $nginx_root/nginx.conf cp certbot-nginx/certbot_nginx/options-ssl-nginx.conf $nginx_root killall nginx || true nginx -c $...
Copy nginx options file into integration testing environment
Copy nginx options file into integration testing environment
Shell
apache-2.0
stweil/letsencrypt,lmcro/letsencrypt,stweil/letsencrypt,jsha/letsencrypt,bsmr-misc-forks/letsencrypt,letsencrypt/letsencrypt,bsmr-misc-forks/letsencrypt,jtl999/certbot,lmcro/letsencrypt,jtl999/certbot,jsha/letsencrypt,letsencrypt/letsencrypt
shell
## Code Before: . ./tests/integration/_common.sh export PATH="/usr/sbin:$PATH" # /usr/sbin/nginx nginx_root="$root/nginx" mkdir $nginx_root root="$nginx_root" ./certbot-nginx/tests/boulder-integration.conf.sh > $nginx_root/nginx.conf killall nginx || true nginx -c $nginx_root/nginx.conf certbot_test_nginx () { ...
. ./tests/integration/_common.sh export PATH="/usr/sbin:$PATH" # /usr/sbin/nginx nginx_root="$root/nginx" mkdir $nginx_root root="$nginx_root" ./certbot-nginx/tests/boulder-integration.conf.sh > $nginx_root/nginx.conf + cp certbot-nginx/certbot_nginx/options-ssl-nginx.conf $nginx_root killall ngin...
1
0.038462
1
0
f1623c3ec5e8f63d14fd2c2bbc1caaa7a1a365bc
src/app/space/create/apps/apps.component.less
src/app/space/create/apps/apps.component.less
@import (reference) '../../../../assets/stylesheets/shared/osio.less'; .env-card-title { text-transform: capitalize; } .resource-card { background: lightgrey; padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0; } .resource-card-body { font-size: .8em; } .resource-title { color: black...
@import (reference) '../../../../assets/stylesheets/shared/osio.less'; .env-card-title { text-transform: capitalize; } .resource-card { background: @color-pf-black-300; padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0; } .resource-card-body { font-size: .8em; } .resource-title { co...
Use patternfly colors for apps styling
(fix): Use patternfly colors for apps styling
Less
apache-2.0
fabric8io/fabric8-ui,fabric8-ui/fabric8-ui,fabric8io/fabric8-ui,fabric8-ui/fabric8-ui,fabric8io/fabric8-ui,fabric8io/fabric8-ui,fabric8-ui/fabric8-ui,fabric8io/fabric8-ui,fabric8-ui/fabric8-ui,fabric8-ui/fabric8-ui
less
## Code Before: @import (reference) '../../../../assets/stylesheets/shared/osio.less'; .env-card-title { text-transform: capitalize; } .resource-card { background: lightgrey; padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0; } .resource-card-body { font-size: .8em; } .resource-title ...
@import (reference) '../../../../assets/stylesheets/shared/osio.less'; .env-card-title { text-transform: capitalize; } .resource-card { - background: lightgrey; + background: @color-pf-black-300; padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0; } .resource...
4
0.181818
2
2
46c28ff6d9f266e8efb6f06cf949fb8e305ade18
web/lib/assets/umakadata/lib/umakadata/service_description.rb
web/lib/assets/umakadata/lib/umakadata/service_description.rb
require 'umakadata/data_format' module Umakadata class ServiceDescription include Umakadata::DataFormat ## # return the type of service description # # @return [String] attr_reader :type ## # return service description # # @return [String] attr_reader :text ## ...
require 'umakadata/data_format' module Umakadata class ServiceDescription include Umakadata::DataFormat ## # return the type of service description # # @return [String] attr_reader :type ## # return service description # # @return [String] attr_reader :text ## ...
Convert encoding of invalid string to utf-8 in service description
Convert encoding of invalid string to utf-8 in service description
Ruby
mit
level-five/umakadata-1,dbcls/umakadata,dbcls/umakadata,level-five/umakadata-1,dbcls/umakadata,level-five/umakadata-1,dbcls/umakadata,level-five/umakadata-1
ruby
## Code Before: require 'umakadata/data_format' module Umakadata class ServiceDescription include Umakadata::DataFormat ## # return the type of service description # # @return [String] attr_reader :type ## # return service description # # @return [String] attr_reader :t...
require 'umakadata/data_format' module Umakadata class ServiceDescription include Umakadata::DataFormat ## # return the type of service description # # @return [String] attr_reader :type ## # return service description # # @return [String] ...
4
0.060606
4
0
7fd7bbb036b077f7a6eaad381c7884efeefa10de
build/ubuntufiles/client/usr/share/applications/sagetv.desktop
build/ubuntufiles/client/usr/share/applications/sagetv.desktop
[Desktop Entry] Encoding=UTF-8 Type=Application Name=SageTV Client 6.5.8 Comment=Client/Placeshifter for SageTV 6.5.8 Exec=/opt/sagetv/client/sageclient.sh TryExec=/opt/sagetv/client/sageclient.sh Terminal=false Categories=Applications;AudioVideo Icon=SageIcon64.png
[Desktop Entry] Encoding=UTF-8 Type=Application Name=SageTV Client MAJOR_VERSION.MINOR_VERSION.MICRO_VERSION Comment=Client/Placeshifter for SageTV MAJOR_VERSION.MINOR_VERSION.MICRO_VERSION Exec=/opt/sagetv/client/sageclient.sh TryExec=/opt/sagetv/client/sageclient.sh Terminal=false Categories=Applications;AudioVideo I...
Remove hard-coded SageTV versions in the Ubuntu desktop shortcut file.
Remove hard-coded SageTV versions in the Ubuntu desktop shortcut file.
desktop
apache-2.0
gilleslabelle/sagetv,OpenSageTV/sagetv,jason-bean/sagetv,shyamalschandra/sagetv,richard-nellist/sagetv,BartokW/sagetv,Slugger/sagetv,tmiranda1962/sagetv-1,peterSVS/sagetv,shyamalschandra/sagetv,BartokW/sagetv,OpenSageTV/sagetv,troll5501/sagetv,webernissle/sagetv,gasinger/sagetv,richard-nellist/sagetv,stuckless/sagetv,j...
desktop
## Code Before: [Desktop Entry] Encoding=UTF-8 Type=Application Name=SageTV Client 6.5.8 Comment=Client/Placeshifter for SageTV 6.5.8 Exec=/opt/sagetv/client/sageclient.sh TryExec=/opt/sagetv/client/sageclient.sh Terminal=false Categories=Applications;AudioVideo Icon=SageIcon64.png ## Instruction: Remove hard-coded Sa...
[Desktop Entry] Encoding=UTF-8 Type=Application - Name=SageTV Client 6.5.8 - Comment=Client/Placeshifter for SageTV 6.5.8 + Name=SageTV Client MAJOR_VERSION.MINOR_VERSION.MICRO_VERSION + Comment=Client/Placeshifter for SageTV MAJOR_VERSION.MINOR_VERSION.MICRO_VERSION Exec=/opt/sagetv/client/sageclient.sh TryE...
4
0.4
2
2
b6ee92cc179bcc57252f646367a9ba55e538768b
docs/source/_templates/page.html
docs/source/_templates/page.html
{% extends "!page.html" %} {% block footer %} {{ super() }} <link href="_static/nv.d3.css" rel="stylesheet"> <script src="_static/d3.min.js"></script> <script src="_static/nv.d3.min.js"></script> {% endblock %} {% block extrahead %} <link href="_static/nv.d3.css" rel="stylesheet"> <script src="_static/d...
{% extends "!page.html" %} {% block footer %} {{ super() }} {% endblock %} {% block extrahead %} <link href="http://cdnjs.cloudflare.com/ajax/libs/nvd3/1.1.15-beta/nv.d3.css" rel="stylesheet"> <script src="http://cdnjs.cloudflare.com/ajax/libs/d3/3.4.10/d3.min.js"></script> <script src="http://cdnjs.cloudflare....
Replace hard coded js with cloudflare
Replace hard coded js with cloudflare
HTML
mit
Coxious/python-nvd3,vdloo/python-nvd3,pignacio/python-nvd3,yelster/python-nvd3,mgx2/python-nvd3,yelster/python-nvd3,mgx2/python-nvd3,pignacio/python-nvd3,oz123/python-nvd3,oz123/python-nvd3,BibMartin/python-nvd3,yelster/python-nvd3,BibMartin/python-nvd3,liang42hao/python-nvd3,vdloo/python-nvd3,BibMartin/python-nvd3,oz1...
html
## Code Before: {% extends "!page.html" %} {% block footer %} {{ super() }} <link href="_static/nv.d3.css" rel="stylesheet"> <script src="_static/d3.min.js"></script> <script src="_static/nv.d3.min.js"></script> {% endblock %} {% block extrahead %} <link href="_static/nv.d3.css" rel="stylesheet"> <scrip...
{% extends "!page.html" %} {% block footer %} {{ super() }} - - <link href="_static/nv.d3.css" rel="stylesheet"> - <script src="_static/d3.min.js"></script> - <script src="_static/nv.d3.min.js"></script> {% endblock %} {% block extrahead %} + <link href="http://cdnjs.cloudflare.com/ajax/libs/nv...
12
0.545455
3
9