commit
stringlengths
40
40
old_file
stringlengths
4
217
new_file
stringlengths
4
217
old_code
stringlengths
0
3.94k
new_code
stringlengths
1
4.42k
subject
stringlengths
15
736
message
stringlengths
15
9.92k
lang
stringclasses
218 values
license
stringclasses
13 values
repos
stringlengths
6
114k
udiff
stringlengths
42
4.57k
1760922c294f98fd742a846562a0b0f21fb920ba
lib/tracking_fwz.rb
lib/tracking_fwz.rb
require "tracking_fwz/version" module TrackingFwz # Your code goes here... end
require "tracking_fwz/version" module TrackingFwz class Engine < ::Rails::Engine end mattr_accessor :model_devise @@model_devise = nil def self.setup yield self end end
Update module, defined model_devise for config
Update module, defined model_devise for config
Ruby
mit
oliverfwz/tracking_fwz,oliverfwz/tracking_fwz,oliverfwz/tracking_fwz
--- +++ @@ -1,5 +1,13 @@ require "tracking_fwz/version" module TrackingFwz - # Your code goes here... + class Engine < ::Rails::Engine + end + + mattr_accessor :model_devise + @@model_devise = nil + + def self.setup + yield self + end end
6bbec28ea0193b09dbdfc2669b94ec7603506d21
src/test/compile-fail/resolve-conflict-type-vs-import.rs
src/test/compile-fail/resolve-conflict-type-vs-import.rs
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or ...
Add compile-fail test for missing import shadowing case
Add compile-fail test for missing import shadowing case
Rust
apache-2.0
richo/rust,ebfull/rust,krzysz00/rust,graydon/rust,richo/rust,jashank/rust,quornian/rust,krzysz00/rust,ebfull/rust,bombless/rust,pshc/rust,ktossell/rust,jroesch/rust,XMPPwocky/rust,zubron/rust,pelmers/rust,nham/rust,nwin/rust,AerialX/rust,jroesch/rust,zaeleus/rust,nwin/rust,untitaker/rust,andars/rust,erickt/rust,philyoo...
--- +++ @@ -0,0 +1,18 @@ +// Copyright 2014 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or th...
380a3f0a789580e31ddd41590fa1d324ff5acb4d
pip-freeze-praekelt.txt
pip-freeze-praekelt.txt
casepropods.family_connect_registration>=2.0.2 casepropods.family_connect_subscription>=0.3.3
casepropods.family_connect_registration>=2.0.3 casepropods.family_connect_subscription>=0.3.3
Upgrade registration pod to 2.0.3
Upgrade registration pod to 2.0.3
Text
bsd-3-clause
praekelt/casepro,praekelt/casepro,praekelt/casepro
--- +++ @@ -1,2 +1,2 @@ -casepropods.family_connect_registration>=2.0.2 +casepropods.family_connect_registration>=2.0.3 casepropods.family_connect_subscription>=0.3.3
3610182fdd17e08a016a57b08a760fb32907d03f
sass/rocssti-mobile-first-fr/14-print.scss
sass/rocssti-mobile-first-fr/14-print.scss
@media print { /** * ajouter là-dedans les éléments qui ont besoin d'être * resetés de manière très bourrine pour le print */ body, html, #page, .reset4print { background-color: #fff; background-image: none; border: 0; box-shadow: none; color: #000; float: none; height: a...
@media print { /** * ajouter là-dedans les éléments qui ont besoin d'être * resetés de manière très bourrine pour le print */ body, html, #page, .reset4print { background-color: #fff; background-image: none; border: 0; box-shadow: none; color: #000; float: none; height: a...
Fix mineur pour la partie print
Fix mineur pour la partie print La valeur de min-height par défaut est 0 et pas auto.
SCSS
mit
nico3333fr/ROCSSTI,nico3333fr/ROCSSTI
--- +++ @@ -16,7 +16,7 @@ height: auto; margin: 0; max-width: 100%; - min-height: auto; + min-height: 0; padding: 0; position: static; width: auto;
e462e77e0c7e54601e328297ecc699ade3c4eb9f
ringbuffer/pattern_solution/src/test/java/de/itemis/mosig/ringbuffer/CircularBufferTest.java
ringbuffer/pattern_solution/src/test/java/de/itemis/mosig/ringbuffer/CircularBufferTest.java
package de.itemis.mosig.ringbuffer; import org.junit.Test; public class CircularBufferTest { @Test public void constructorShouldSetProvidedSize() { new CircularBuffer(3); } }
package de.itemis.mosig.ringbuffer; import org.junit.Assert; import org.junit.Test; public class CircularBufferTest { @Test public void constructorShouldSetProvidedSize() { CircularBuffer underTest = new CircularBuffer(3); Assert.assertEquals(3, underTest.size()); } }
Test uses non existing size method.
RED: Test uses non existing size method.
Java
epl-1.0
JanMosigItemis/codingdojoleipzig
--- +++ @@ -1,11 +1,13 @@ package de.itemis.mosig.ringbuffer; +import org.junit.Assert; import org.junit.Test; public class CircularBufferTest { @Test public void constructorShouldSetProvidedSize() { - new CircularBuffer(3); + CircularBuffer underTest = new CircularBuffer(3); + Assert.assertEquals(3, ...
ada0da54a667b1ccc7bfac20f98c109c5d180167
src/systemdesign/README.md
src/systemdesign/README.md
## Table of Contents - [LRU Cache](#least-recently-used-cache) ## Least Recently Used Cache #### Problem Design and implement a data structure for Least Recently Used cache. It should support the following operations: get and set. `get(key)` - Get the value (will always be positive) of the key if the key exists in th...
## Table of Contents - [LRU Cache](#least-recently-used-cache) ## Least Recently Used Cache #### Problem Design and implement a data structure for Least Recently Used cache. It should support the following operations: get and set. `get(key)` - Get the value (will always be positive) of the key if the key exists in th...
Add explanation for lru cache
Add explanation for lru cache
Markdown
mit
vinnyoodles/algorithms,vinnyoodles/algorithms,vinnyoodles/algorithms
--- +++ @@ -7,3 +7,17 @@ `get(key)` - Get the value (will always be positive) of the key if the key exists in the cache, otherwise return -1. `set(key, value)` - Set or insert the value if the key is not already present. When the cache reaches its capacity, it should invalidate the least frequently used item befo...
c7612816626e5d609ef3c860338d5ca93a6dd12e
README.md
README.md
# linux-tips Collection of tips on Linux (mostly Debian/Ubuntu) helpful to me
# linux-tips Collection of tips on Linux (mostly Debian/Ubuntu) helpful to me ## Basic configuration for new Git repository ```bash # Set user name and e-mail address (required to do 'commit') git config [--global] user.email "user@domain.com" git config [--global] user.name "User Name" # Set the remote repository (f...
Add section on basic Git repository configuration.
Add section on basic Git repository configuration.
Markdown
mit
TimothyDJones/linux-tips
--- +++ @@ -1,2 +1,12 @@ # linux-tips Collection of tips on Linux (mostly Debian/Ubuntu) helpful to me + +## Basic configuration for new Git repository +```bash +# Set user name and e-mail address (required to do 'commit') +git config [--global] user.email "user@domain.com" +git config [--global] user.name "User Na...
954116c9b5bcd2a3fc2ceb0468c1314bcefd710a
gitconfig.erb
gitconfig.erb
[user] name = <%= print("Your Name: "); STDOUT.flush; STDIN.gets.chomp %> email = <%= print("Your Email: "); STDOUT.flush; STDIN.gets.chomp %> [color] ui = auto [alias] co = checkout ci = commit lol = log --oneline --decorate diffc = diff --color diffcc = diff --color --cached su = s...
[user] name = <%= print("Your Name: "); STDOUT.flush; STDIN.gets.chomp %> email = <%= print("Your Email: "); STDOUT.flush; STDIN.gets.chomp %> [color] ui = auto [init] defaultBranch = main [alias] co = checkout ci = commit lol = log --oneline --decorate diffc = diff --color diffcc = ...
Make main default branch name
Make main default branch name
HTML+ERB
mit
BinaryMuse/dotfiles,BinaryMuse/dotfiles,BinaryMuse/dotfiles,BinaryMuse/dotfiles
--- +++ @@ -3,6 +3,8 @@ email = <%= print("Your Email: "); STDOUT.flush; STDIN.gets.chomp %> [color] ui = auto +[init] + defaultBranch = main [alias] co = checkout ci = commit
1c12843b251184d3e683d9cebf9948565bbfe518
tests/conftest.py
tests/conftest.py
# pylint: disable=C0111 import pytest import os import tarfile BASEDIR = os.path.dirname(__file__) @pytest.fixture(autouse=True) def set_up(tmpdir): # print BASEDIR tmpdir.chdir() tar = tarfile.open(os.path.join(BASEDIR, "MockRepos.tar.gz")) tar.extractall() tar.close() os.chdir('MockRepos') print('In director...
# pylint: disable=C0111 import pytest import os import tarfile BASEDIR = os.path.dirname(__file__) @pytest.fixture(autouse=False) def set_up(tmpdir): # print BASEDIR tmpdir.chdir() tar = tarfile.open(os.path.join(BASEDIR, "MockRepos.tar.gz")) tar.extractall() tar.close() os.chdir('MockRepos') print('In directo...
Disable autouse for set_up so that help tests don't generate unnecessary files.
Disable autouse for set_up so that help tests don't generate unnecessary files.
Python
mit
bilderbuchi/ofStateManager
--- +++ @@ -6,7 +6,7 @@ BASEDIR = os.path.dirname(__file__) -@pytest.fixture(autouse=True) +@pytest.fixture(autouse=False) def set_up(tmpdir): # print BASEDIR tmpdir.chdir()
4160de1a24f5ca414508e396e43ba756d73f8338
Source/PPSSignatureView.h
Source/PPSSignatureView.h
#import <UIKit/UIKit.h> #import <GLKit/GLKit.h> @interface PPSSignatureView : GLKView @property (assign, nonatomic) UIColor *strokeColor; @property (assign, nonatomic) BOOL hasSignature; @property (strong, nonatomic) UIImage *signatureImage; - (void)erase; @end
#import <UIKit/UIKit.h> #import <GLKit/GLKit.h> @interface PPSSignatureView : GLKView @property (assign, nonatomic) IBInspectable UIColor *strokeColor; @property (assign, nonatomic) BOOL hasSignature; @property (strong, nonatomic) UIImage *signatureImage; - (void)erase; @end
Make stroke color an IBInspectable property.
Make stroke color an IBInspectable property.
C
mit
ronaldsmartin/PPSSignatureView
--- +++ @@ -3,7 +3,7 @@ @interface PPSSignatureView : GLKView -@property (assign, nonatomic) UIColor *strokeColor; +@property (assign, nonatomic) IBInspectable UIColor *strokeColor; @property (assign, nonatomic) BOOL hasSignature; @property (strong, nonatomic) UIImage *signatureImage;
c9286e8e97c8e07c2d97a271ee2520b7f782e61e
backend/src/main/resources/application.yml
backend/src/main/resources/application.yml
data: header: user-id: some-user #acquisition-provenance: # source-name: generator output-filename: 1mo-weight.json spring: main: show-banner: false
data: header: user-id: some-user #acquisition-provenance: # source-name: generator output-filename: some-filename.json spring: main: show-banner: false
Set output filename in configuration file to something generic
Set output filename in configuration file to something generic
YAML
apache-2.0
openmhealth/sample-data-generator,openmhealth/sample-data-generator
--- +++ @@ -4,7 +4,7 @@ #acquisition-provenance: # source-name: generator -output-filename: 1mo-weight.json +output-filename: some-filename.json spring: main:
dd44e17ecfe99ce08f0b451356cc175d19ef5fa6
release-notes-feed.xml
release-notes-feed.xml
--- layout: null --- <?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <channel> <title>{{ site.title | xml_escape }}</title> <description>{{ site.description | xml_escape }}</description> <link>{{ site.url }}{{ site.baseurl }}/</link> <atom:link href=...
Create the Release Notes Feed file to automate email sending
Create the Release Notes Feed file to automate email sending
XML
apache-2.0
SpineEventEngine/SpineEventEngine.github.io,SpineEventEngine/SpineEventEngine.github.io,SpineEventEngine/SpineEventEngine.github.io,SpineEventEngine/SpineEventEngine.github.io,SpineEventEngine/SpineEventEngine.github.io,SpineEventEngine/SpineEventEngine.github.io
--- +++ @@ -0,0 +1,32 @@ +--- +layout: null +--- +<?xml version="1.0" encoding="UTF-8"?> +<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> + <channel> + <title>{{ site.title | xml_escape }}</title> + <description>{{ site.description | xml_escape }}</description> + <link>{{ site.url }}{{ site.bas...
2cf0572dfee82674c1c4b93fd0b4e2b2e9cf3b45
README.md
README.md
Experimenting with arrowized push-pull FRP
# Arrow Experimenting with arrowized push-pull FRP. ## Design goals - Implement sound FRP semantics with a pure foundation (as far as possible in JS) - Avoid bugs, race conditions, and glitches - Push impurity and IO to the edges - Balance JavaScript's event-driven nature with the simplicity and predictability of ...
Add design goals to readme
docs(arrow): Add design goals to readme
Markdown
mit
briancavalier/arrow
--- +++ @@ -1 +1,16 @@ -Experimenting with arrowized push-pull FRP +# Arrow + +Experimenting with arrowized push-pull FRP. + +## Design goals + +- Implement sound FRP semantics with a pure foundation (as far as possible in JS) + - Avoid bugs, race conditions, and glitches + - Push impurity and IO to the edges +- Bala...
65167247a31d6ce47d3a72f85dcee0c948bc377d
.rubocop.yml
.rubocop.yml
Style/Tab: Enabled: false Style/IndentationWidth: Width: 1 Style/MultilineMethodCallIndentation: EnforcedStyle: indented AllCops: TargetRubyVersion: 2.3 Metrics/BlockLength: Exclude: - 'spec/**/*' - '*.gemspec'
Layout/Tab: Enabled: false Layout/IndentationWidth: Width: 1 Layout/MultilineMethodCallIndentation: EnforcedStyle: indented AllCops: TargetRubyVersion: 2.3 Metrics/BlockLength: Exclude: - 'spec/**/*' - '*.gemspec'
Fix scope of rules for new RuboCop
Fix scope of rules for new RuboCop
YAML
mit
AlexWayfer/flame,AlexWayfer/flame
--- +++ @@ -1,8 +1,8 @@ -Style/Tab: +Layout/Tab: Enabled: false -Style/IndentationWidth: +Layout/IndentationWidth: Width: 1 -Style/MultilineMethodCallIndentation: +Layout/MultilineMethodCallIndentation: EnforcedStyle: indented AllCops:
66e021d4137cc20ecac8501681d4bbf26ff41ac5
hflossk/templates/lectures/index.mak
hflossk/templates/lectures/index.mak
<%inherit file="../master.mak" /> <div class='jumbotron'> <h1>LN</h1> <p>Lecture Notes: Agenda-y type things to keep the train on the tracks</p> </div> <div class="row-fluid"> <div class="span4"> <ul class="list-unstyled"> <li><h2>Notes</h2></li> % for lecture in lectures: ...
<%inherit file="../master.mak" /> <div class='jumbotron'> <h1>LN</h1> <p>Lecture Notes: Agenda-y type things to keep the train on the tracks</p> </div> <div class="row-fluid"> <div class="span4"> <ul class="list-unstyled"> <li><h2>Notes</h2></li> % for lecture in lectures: ...
Change template to account for double-digit week numbers. @qalthos++
Change template to account for double-digit week numbers. @qalthos++
Makefile
apache-2.0
decause/hflossk,decause/hflossk
--- +++ @@ -9,8 +9,8 @@ <ul class="list-unstyled"> <li><h2>Notes</h2></li> % for lecture in lectures: - <li><a href="/lectures/${lecture.split('.')[0]}">Week ${lecture[1]} - Class - ${lecture[3]}</a></li> + <li><a href="/lectures/${lecture.spli...
eb92831b23a5a4060f8f1d8b28f9c07ab0411be1
test/SerilogWeb.Test/Global.asax.cs
test/SerilogWeb.Test/Global.asax.cs
using System; using Serilog; using Serilog.Events; using SerilogWeb.Classic; namespace SerilogWeb.Test { public class Global : System.Web.HttpApplication { protected void Application_Start(object sender, EventArgs e) { ApplicationLifecycleModule.FormDataLoggingLevel = LogEventLevel...
using System; using Serilog; using Serilog.Events; using SerilogWeb.Classic; namespace SerilogWeb.Test { public class Global : System.Web.HttpApplication { protected void Application_Start(object sender, EventArgs e) { // ReSharper disable once PossibleNullReferenceException ...
Update sample app to use newer config API
Update sample app to use newer config API
C#
apache-2.0
serilog-web/classic
--- +++ @@ -9,12 +9,12 @@ { protected void Application_Start(object sender, EventArgs e) { - ApplicationLifecycleModule.FormDataLoggingLevel = LogEventLevel.Debug; - ApplicationLifecycleModule.LogPostedFormData = LogPostedFormDataOption.OnMatch; - ApplicationLif...
77da7f5ef5e0f2dc522ae251ca4f8a6e885b8b1b
app/views/home/index.html.erb
app/views/home/index.html.erb
<h1>Home#index</h1> <p>Find me in app/views/home/index.html.erb</p>
<section class="page"> <header> <h1 class="page-title">Sarah</h1> <p class="tag-line">Make me a sandwich.</p> </header> <section class="content"> <button class="sign-up">Sign up with Google</button> </section> </section>
Add minimal landing page content.
Add minimal landing page content.
HTML+ERB
mit
francisbrito/sarah_rails,francisbrito/sarah_rails
--- +++ @@ -1,2 +1,9 @@ -<h1>Home#index</h1> -<p>Find me in app/views/home/index.html.erb</p> +<section class="page"> + <header> + <h1 class="page-title">Sarah</h1> + <p class="tag-line">Make me a sandwich.</p> + </header> + <section class="content"> + <button class="sign-up">Sign up wit...
1683324c7f5a8352456eab12376dd3c4100ef44d
.travis.yml
.travis.yml
language: go # Must generate the parser before installing deps or go get will error out on # undefined lexer tokens. before_install: - make vm/parser.go # Default dependency installation command, which is disabled when Makefile # detected. Also install three tools for measuring coverage and sending to # coveralls.i...
language: go # Must generate the parser before installing deps or go get will error out on # undefined lexer tokens. before_install: - make vm/parser.go # Default dependency installation command, which is disabled when Makefile # detected. Also install three tools for measuring coverage and sending to # coveralls.i...
Support 1.7 in the build matrix.
Support 1.7 in the build matrix.
YAML
apache-2.0
SuperQ/mtail,SuperQ/mtail,google/mtail,google/mtail
--- +++ @@ -23,6 +23,7 @@ # Run tests at these Go versions. go: - tip + - 1.7 - 1.6 - 1.5
7b1edfa09c0512f8ae67ad5ce68c7ae7a0f6a0a0
default.hbs
default.hbs
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="HandheldFriendly" content="True" /> <meta name="MobileOptimized" content="320" /> <title>{{meta_t...
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="HandheldFriendly" content="True" /> <meta name="MobileOptimized" content="320" /> <title>{{meta_t...
Add remaining links for bootstrap
Add remaining links for bootstrap
Handlebars
mit
Mr-Zer0/yansnote,Mr-Zer0/yansnote
--- +++ @@ -22,5 +22,7 @@ {{{body}}} {{ghost_foot}} + + <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> </body> </html>
217b344e1a5b4a2562a5733cd054f7b588eac0e9
README.md
README.md
# worktime-logger # Keep track of your daily worktime. ## Details ## worktime-logger allows you to see how many hours did you work in any given date range. For example, let's say I should work 6 hours per day and I'm curious how much time I've spent working this month. $ worktime show -s 01-11-2015 --hours=6 ...
# worktime-logger # Keep track of your daily worktime. ## Details ## worktime-logger allows you to see how many hours did you work in any given date range. For example, let's say I should work 6 hours per day and I'm curious how much time I've spent working this month. $ worktime show -s 01-11-2015 --hours=6 ...
Add license info to readme
Add license info to readme Add information on the licensing of the project to the readme file.
Markdown
mit
miedzinski/worktime
--- +++ @@ -35,3 +35,7 @@ Make sure you run `worktime save` everytime you shutdown. This script takes assumption your uptime reflects your worktime. + +## License ## + +worktime-logger is availible under [The MIT License](https://opensource.org/licenses/MIT), see the `LICENSE` file for more information.
7e94c6e32588bef5fa438624a7683062ded07642
app/views/shared/_welcome_navigation.html.erb
app/views/shared/_welcome_navigation.html.erb
<div class="welcome-navigation row-fluid"> <div class="welcome-container span5"> <span class="welcome-text">Hi, <%= current_user.name.split(' ').first %>!</span> </div> <div class="user-navigation-container span7"> <a href="<%= edit_club_path(club) %>" class="club-link <%= 'selected' if controller...
<div class="welcome-navigation row-fluid"> <div class="welcome-container span5"> <%- if user_signed_in? %> <span class="welcome-text">Hi, <%= current_user.name.split(' ').first %>!</span> <%- end %> </div> <div class="user-navigation-container span7"> <a href="<%= edit_club_path(club) %>" ...
Update Welcome Navigation for Non-Signed In User
Update Welcome Navigation for Non-Signed In User Update the Welcome navigation page to ensure that the User's name/welcome message is not displayed (cannot be displayed) unless the User is signed in.
HTML+ERB
mit
jekhokie/IfSimply,jekhokie/IfSimply,jekhokie/IfSimply
--- +++ @@ -1,6 +1,8 @@ <div class="welcome-navigation row-fluid"> <div class="welcome-container span5"> - <span class="welcome-text">Hi, <%= current_user.name.split(' ').first %>!</span> + <%- if user_signed_in? %> + <span class="welcome-text">Hi, <%= current_user.name.split(' ').first %>!</span> + ...
b08216deb4c17fd6e8cceb3ece193899765d2e55
lib/soft-wrap-indicator-view.coffee
lib/soft-wrap-indicator-view.coffee
{View} = require 'atom' # Status bar view for the soft wrap indicator. module.exports = class SoftWrapIndicatorView extends View @content: -> @div class: 'inline-block', => @a 'Wrap', class: 'soft-wrap-indicator', outlet: 'light' # Initializes the view by subscribing to various events. # # statusBar...
{View} = require 'atom' # Status bar view for the soft wrap indicator. module.exports = class SoftWrapIndicatorView extends View @content: -> @div class: 'inline-block', => @a 'Wrap', class: 'soft-wrap-indicator', outlet: 'light' # Initializes the view by subscribing to various events. # # statusBar...
Update indicator when first attached to status bar
:bug: Update indicator when first attached to status bar
CoffeeScript
mit
lee-dohm/soft-wrap-indicator
--- +++ @@ -18,6 +18,10 @@ @subscribe this, 'click', => @getActiveEditor()?.toggleSoftWrap() + # Internal: Executes after the view is added to the status bar. + afterAttach: -> + @update() + # Gets the currently active `Editor`. # # Returns the {Editor} that is currently active or `null` if the...
6b6fb12545ff3b35420fd2382576a6150044bdc8
kerze.py
kerze.py
from turtle import * GROESSE = 0.5 FARBE = "red" FAERBEN = True SHAPE = "turtle" fillcolor(FARBE) shape(SHAPE) def zeichneKerze(brennt): pd() begin_fill() forward(GROESSE*100) left(90) forward(GROESSE*400) left(90) forward(GROESSE*100) right(90) forward(GROESSE*30) back(GROESS...
from turtle import * GROESSE = 0.5 FARBE = "red" FAERBEN = True SHAPE = "turtle" fillcolor(FARBE) shape(SHAPE) def zeichneKerze(brennt): pd() begin_fill() forward(GROESSE*100) left(90) forward(GROESSE*400) left(90) forward(GROESSE*100) right(90) forward(GROESSE*30) back(GROESS...
Prepare for use as module
Prepare for use as module
Python
mit
luforst/adventskranz
--- +++ @@ -41,6 +41,6 @@ pu() home() -##zeichneKerze(brennt=False) # testweise erstmal nur nicht brennende Kerze -zeichneKerze(True) -hideturtle() +if __name__=="__main__": + zeichneKerze(True) + hideturtle()
0fe334b929af55ac5f6f503a5b1c26efe30c7dfa
app/views/anchor_link_topics/index.html.erb
app/views/anchor_link_topics/index.html.erb
<% provide(:title, 'Anchor Link Help') %> <% provide(:jumbotron_class, 'jumbotron-resources') %> <%= render 'layouts/jumbotron' %> <div class="container-content"> <div class="container"> <div class="row"> <div class="col-xs-12"> <div class="panel-group" id="accordion"> <%= render partial...
<% provide(:title, 'Anchor Link Help') %> <% provide(:jumbotron_class, 'resources') %> <%= render 'layouts/jumbotron' %> <div class="container-content"> <div class="container"> <div class="row"> <div class="col-xs-12"> <div class="panel-group" id="accordion"> <%= render partial: 'layouts...
Fix bug in Anchor Link page's jumbotron partial
Fix bug in Anchor Link page's jumbotron partial
HTML+ERB
mit
sethfri/VPAC,sethfri/VPAC
--- +++ @@ -1,5 +1,5 @@ <% provide(:title, 'Anchor Link Help') %> -<% provide(:jumbotron_class, 'jumbotron-resources') %> +<% provide(:jumbotron_class, 'resources') %> <%= render 'layouts/jumbotron' %>
a6c3d0027313ee3ba3b04904ec08afa768737c99
python27/requirements.txt
python27/requirements.txt
# Required packages for synapse tornado==4.5.2 cryptography==2.0.3 pyOpenSSL==17.3.0 msgpack-python==0.4.8 xxhash==1.0.1 lmdb==0.93 # Delayed import psycopg2==2.7.3.1 # Code style checks pycodestyle==2.3.1 # Test related packages coverage==4.3.4 # pyup: ignore codecov==2.0.9 pytest==3.2.2 pytest-cov==2.5.1 # Legacy te...
# Required packages for synapse tornado==4.5.2 cryptography==2.0.3 pyOpenSSL==17.3.0 msgpack-python==0.4.8 xxhash==1.0.1 lmdb==0.93 # Delayed import psycopg2==2.7.3.1 # Code style checks pycodestyle==2.3.1 # Test related packages coverage==4.3.4 # pyup: ignore codecov==2.0.9 pytest==3.2.3 pytest-cov==2.5.1 # Legacy te...
Update pytest from 3.2.2 to 3.2.3
Update pytest from 3.2.2 to 3.2.3
Text
apache-2.0
vertexproject/synapse-docker-testimages,vertexproject/synapse-docker-testimages
--- +++ @@ -12,7 +12,7 @@ # Test related packages coverage==4.3.4 # pyup: ignore codecov==2.0.9 -pytest==3.2.2 +pytest==3.2.3 pytest-cov==2.5.1 # Legacy test packages - nose is included but no longer used by Synapse. nose==1.3.7
ff7ba52422bc478db7163a6d8c82b92394eb9528
dev/golang/sql/postgresql/README.md
dev/golang/sql/postgresql/README.md
# PostgreSQL #### Basis * [Using PostgreSQL with Golang](https://www.calhoun.io/using-postgresql-with-golang/) * [Connecting to a PostgreSQL database with Go's database/sql package](https://www.calhoun.io/connecting-to-a-postgresql-database-with-gos-database-sql-package/) * [Why we import SQL drivers as the blank iden...
# PostgreSQL #### Basis * [Using PostgreSQL with Golang](https://www.calhoun.io/using-postgresql-with-golang/) * [Connecting to a PostgreSQL database with Go's database/sql package](https://www.calhoun.io/connecting-to-a-postgresql-database-with-gos-database-sql-package/) * [Why we import SQL drivers as the blank iden...
Add Handling JSONB in Go Structs
Add Handling JSONB in Go Structs
Markdown
mit
northbright/bookmarks,northbright/bookmarks,northbright/bookmarks
--- +++ @@ -8,3 +8,4 @@ #### JSON & JSONB * [JSONB support #348](https://github.com/lib/pq/issues/348) * [Storing Golang JSON into Postgresql](https://stackoverflow.com/questions/25758138/storing-golang-json-into-postgresql) +* [Handling JSONB in Go Structs](http://coussej.github.io/2016/02/16/Handling-JSONB-in-Go...
e3daf718595d251040398936fdacab2df01f3bba
README.md
README.md
# Smoke Tests Smoke tests for [Pension Wise]. ## Prerequisites * [Bundler] * [Git] * [Ruby 2.2.0][Ruby] ## Installation Clone the repository: ```sh $ git clone https://github.com/guidance-guarantee-programme/smoke_tests.git ``` Setup the application: ```sh $ ./bin/setup ``` ## Usage To start the application...
# Smoke Tests Smoke tests for [Pension Wise]. ## Prerequisites * [Bundler] * [Git] * [Ruby 2.2.0][Ruby] * [Redis] ## Installation Clone the repository: ```sh $ git clone https://github.com/guidance-guarantee-programme/smoke_tests.git ``` Setup the application: ```sh $ ./bin/setup ``` ## Usage To start the a...
Add Redis to list of requirements
Add Redis to list of requirements
Markdown
mit
guidance-guarantee-programme/smoke_tests,guidance-guarantee-programme/smoke_tests
--- +++ @@ -8,6 +8,7 @@ * [Bundler] * [Git] * [Ruby 2.2.0][Ruby] +* [Redis] ## Installation @@ -40,3 +41,4 @@ [git]: http://git-scm.com [pension wise]: https://www.pensionwise.gov.uk [ruby]: http://www.ruby-lang.org/en +[redis]: http://redis.io/
8aa778bc7d2b168240176779cd25fa41d344f7ca
src/olympia/migrations/924-more-accurate-count-of-approved-webextensions.sql
src/olympia/migrations/924-more-accurate-count-of-approved-webextensions.sql
TRUNCATE TABLE `addons_addonapprovalscounter`; INSERT INTO `addons_addonapprovalscounter` (`addon_id`, `counter`, `created`, `modified`) SELECT DISTINCT(`addons`.`id`), ( -- In this subquery, we count the number of public, non deleted, listed versions that are webextensions, for -- each add-on the main...
Insert the exact number of previously approved webextensions in addon approvals counter table
Insert the exact number of previously approved webextensions in addon approvals counter table Previous migration was just setting the counter to 1 for each public add-on. This sets it to the number of approved, non-deleted, listed webextensions versions, making the initial counter values more accurate for each add-on....
SQL
bsd-3-clause
atiqueahmedziad/addons-server,bqbn/addons-server,kumar303/addons-server,mozilla/addons-server,wagnerand/addons-server,tsl143/addons-server,atiqueahmedziad/addons-server,psiinon/addons-server,diox/olympia,wagnerand/addons-server,diox/olympia,tsl143/addons-server,bqbn/addons-server,harry-7/addons-server,harry-7/addons-se...
--- +++ @@ -0,0 +1,13 @@ +TRUNCATE TABLE `addons_addonapprovalscounter`; + +INSERT INTO `addons_addonapprovalscounter` (`addon_id`, `counter`, `created`, `modified`) +SELECT DISTINCT(`addons`.`id`), ( + -- In this subquery, we count the number of public, non deleted, listed versions that are webextensions, for...
0acd20cb42c96ed58f11c979bdfba9faa8a8370a
views/components/Main.jsx
views/components/Main.jsx
'use babel'; import React, { Component } from 'react'; import NavBar from './NavBar'; import Announcements from './Announcements/Container'; import Multimedia from './Multimedia/Container'; export default class Main extends Component { constructor(props) { super(props); this.state = { windowToRender: ...
'use babel'; import React, { Component } from 'react'; import NavBar from './NavBar'; import Announcements from './Announcements/Container'; import Multimedia from './Multimedia/Container'; export default class Main extends Component { constructor(props) { super(props); this.state = { windowToRender: ...
Add switch case for different view
Add switch case for different view
JSX
mit
amoshydra/nus-notify,amoshydra/nus-notify
--- +++ @@ -26,7 +26,15 @@ <NavBar switchView={this.switchView} windowToRender={this.state.windowToRender} /> </div> <div id="content"> - <Announcements /> + {(() => { + switch (this.state.windowToRender) { + case 'announcements': return <Announce...
418ae59b2fca08682765197a117a1e0c3cdfee14
rand_distr/Cargo.toml
rand_distr/Cargo.toml
[package] name = "rand_distr" version = "0.2.0" authors = ["The Rand Project Developers"] license = "MIT/Apache-2.0" readme = "README.md" repository = "https://github.com/rust-random/rand" documentation = "https://rust-random.github.io/rand/rand_distr/" homepage = "https://crates.io/crates/rand_distr" description = """...
[package] name = "rand_distr" version = "0.2.0" authors = ["The Rand Project Developers"] license = "MIT/Apache-2.0" readme = "README.md" repository = "https://github.com/rust-random/rand" documentation = "https://rust-random.github.io/rand/rand_distr/" homepage = "https://crates.io/crates/rand_distr" description = """...
Mark as compatible with rand 0.7
rand_distr: Mark as compatible with rand 0.7
TOML
apache-2.0
rust-lang/rand
--- +++ @@ -19,7 +19,7 @@ appveyor = { repository = "rust-random/rand" } [dependencies] -rand = { path = "..", version = ">=0.5, <=0.7.0-pre.9" } +rand = { path = "..", version = ">=0.5, <=0.7" } [dev-dependencies] rand_pcg = { version = "0.2", path = "../rand_pcg" }
0eb31fc617a73711b266faccaf5ee2e5e15dc6c5
app/models/plugin.js
app/models/plugin.js
import DS from 'ember-data'; var Plugin = DS.Model.extend({ name: DS.attr('string'), packageName: DS.attr('string'), description: DS.attr('string'), readme: DS.attr('string'), repositoryUrl: DS.attr('string'), website: DS.attr('string'), lastModified: DS.attr('date'), lastVersion: DS.attr('string'), ...
import DS from 'ember-data'; var Plugin = DS.Model.extend({ name: DS.attr('string'), packageName: DS.attr('string'), description: DS.attr('string'), readme: DS.attr('string'), repositoryUrl: DS.attr('string'), website: DS.attr('string'), lastModified: DS.attr('date'), lastVersion: DS.attr('string'), ...
Add installationCount attr on Plugin model
Add installationCount attr on Plugin model
JavaScript
mit
sergiolepore/hexo-plugin-site,sergiolepore/hexo-plugin-site
--- +++ @@ -13,7 +13,8 @@ keywords: DS.hasMany('keyword'), keywordCache: DS.attr('string'), versions: DS.hasMany('pluginversion'), - installations: DS.hasMany('plugininstallation') + installations: DS.hasMany('plugininstallation'), + installationCount: DS.attr('number') }); export default Plugin;
0b3bdd2235f14fae2d90e55a43600283783eba15
.travis.yml
.travis.yml
# Iris setup credit to github.com/SciTools/iris 07bbaf4. # language: python python: - 2.7.12 sudo: false git: depth: 10000 install: # Install miniconda # ----------------- - export CONDA_BASE=https://repo.continuum.io/miniconda/Miniconda - wget ${CONDA_BASE}2-latest-Linux-x86_64.sh -O miniconda.sh; - ...
# Iris setup credit to github.com/SciTools/iris 07bbaf4. # language: python python: - 2.7.12 sudo: false git: depth: 10000 install: # Install miniconda # ----------------- - export CONDA_BASE=https://repo.continuum.io/miniconda/Miniconda - wget ${CONDA_BASE}2-latest-Linux-x86_64.sh -O miniconda.sh; - ...
Edit to Travis to force numpy version to 1.11.1
Edit to Travis to force numpy version to 1.11.1
YAML
bsd-3-clause
metoppv/improver,fionaRust/improver,metoppv/improver,fionaRust/improver
--- +++ @@ -32,9 +32,12 @@ # Download Iris 1.13 and all dependencies. - conda install -c conda-forge iris=1.13 + # Force numpy to remain at version 1.11.1 + - conda install -c conda-forge numpy=1.11.1 + # Install our own extra dependencies (+ filelock for Iris test). - conda install -c conda-forge moc...
46f05fbbd0d015dac613447e93a19b23fdb7a2b5
.travis.yml
.travis.yml
language: node_js node_js: - 'node' - '6' - '5' - '4'
language: node_js node_js: - 'node' - '8' - '6'
Change the Node versions we test against
Change the Node versions we test against
YAML
mit
maxdeviant/redux-persist-transform-encrypt,maxdeviant/redux-persist-transform-encrypt
--- +++ @@ -1,6 +1,5 @@ language: node_js node_js: - 'node' + - '8' - '6' - - '5' - - '4'
cad0087b4d2a135a4e8917042bd1be711c2c8003
tools/ci/install_deps.sh
tools/ci/install_deps.sh
#!/bin/bash set -e # Directory where this script is located. SCRIPT_DIR=$( cd $(dirname $0); pwd -P) # Directory where external dependencies will be handled. DEPS_DIR="$SCRIPT_DIR/deps" mkdir -p "$DEPS_DIR" pushd "$DEPS_DIR" if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get -qq update sudo apt-get install ...
#!/bin/bash set -e # Directory where this script is located. SCRIPT_DIR=$( cd $(dirname $0); pwd -P) # Directory where external dependencies will be handled. DEPS_DIR="$SCRIPT_DIR/deps" mkdir -p "$DEPS_DIR" pushd "$DEPS_DIR" if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get -qq update sudo apt-get install ...
Remove missing brew tap homebrew/php.
Remove missing brew tap homebrew/php.
Shell
mit
msteinbeck/tinyspline,retuxx/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline,retuxx/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline,retuxx/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline
--- +++ @@ -27,7 +27,6 @@ fi if [ "$TRAVIS_OS_NAME" == "osx" ]; then - brew tap homebrew/php brew update brew install \ swig \
8068f92bd38760882263d7ae5375f3b99cc603dd
CHANGELOG.md
CHANGELOG.md
# master ### Views - Multiput now supports softdeleting related models. (#24) - Deleting models which don't have a "deleted" attribute now results in hard delete. (#42) - Filtering on datetime fields allows filtering on (milli)second instead of date granulatity. (#41) - The `_store`, `_store_field` and `_store__<fiel...
# master ### Views - Multiput now supports softdeleting related models. (#24) - Deleting models which don't have a "deleted" attribute now results in hard delete. (#42) - Filtering on datetime fields allows filtering on (milli)second instead of date granulatity. (#41) - The `_store`, `_store_field` and `_store__<fiel...
Document breaking change in internal _get_withs/_follow_related API
Document breaking change in internal _get_withs/_follow_related API
Markdown
mit
CodeYellowBV/django-binder
--- +++ @@ -7,7 +7,8 @@ - Filtering on datetime fields allows filtering on (milli)second instead of date granulatity. (#41) - The `_store`, `_store_field` and `_store__<fieldname>` methods now must accept a `pk` keyword argument (#64; **backwards incompatible**). - BinderValidationError no longer accepts an `objec...
ea821c8c2778ca3bbd25da17b36a1250310d5add
collect-config-setup/fragments/start_config_agent.sh
collect-config-setup/fragments/start_config_agent.sh
#!/bin/bash set -eux # on Atomic host os-collect-config runs inside a container which is # fetched&started in another step [ -e /run/ostree-booted ] && exit 0 if [[ `systemctl` =~ -\.mount ]]; then # if there is no system unit file, install a local unit if [ ! -f /usr/lib/systemd/system/os-collect-config.ser...
#!/bin/bash set -eux # on Atomic host os-collect-config runs inside a container which is # fetched&started in another step [ -e /run/ostree-booted ] && exit 0 # enable and start service to poll for deployment changes systemctl enable os-collect-config systemctl start --no-block os-collect-config
Use os-collect-config unit file from RPM
Use os-collect-config unit file from RPM Systemd unit file for os-collect-config is part of the RPM, there is no reason to create this file manually. Also manual creation of the systemd file caused flase-positive check if os-collect-config is present in infra-boot.sh script. Related to: #113
Shell
apache-2.0
markllama/openshift-on-openstack,redhat-openstack/openshift-on-openstack,BBVA/openshift-on-openstack,markllama/openshift-on-openstack,BBVA/openshift-on-openstack,redhat-openstack/openshift-on-openstack
--- +++ @@ -5,53 +5,6 @@ # fetched&started in another step [ -e /run/ostree-booted ] && exit 0 -if [[ `systemctl` =~ -\.mount ]]; then - - # if there is no system unit file, install a local unit - if [ ! -f /usr/lib/systemd/system/os-collect-config.service ]; then - - cat <<EOF >/etc/systemd/system/o...
ac27dea4b963bbe735589d75e8d83fd4d7b2b208
db/migrate/20201215180423_create_gdb_dashboards.rb
db/migrate/20201215180423_create_gdb_dashboards.rb
# frozen_string_literal: true class CreateGdbDashboards < ActiveRecord::Migration[6.0] def change create_table :gdb_dashboards do |t| t.references :site, index: true t.jsonb :title_translations t.integer :visibility_level, null: false, default: 0 t.string :context t.jsonb :widgets_c...
Add migration to create table of dashboards
Add migration to create table of dashboards
Ruby
agpl-3.0
PopulateTools/gobierto,PopulateTools/gobierto-dev,PopulateTools/gobierto-dev,PopulateTools/gobierto,PopulateTools/gobierto-dev,PopulateTools/gobierto,PopulateTools/gobierto-dev,PopulateTools/gobierto
--- +++ @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +class CreateGdbDashboards < ActiveRecord::Migration[6.0] + def change + create_table :gdb_dashboards do |t| + t.references :site, index: true + t.jsonb :title_translations + t.integer :visibility_level, null: false, default: 0 + t.stri...
4c6ad5cc7bc2f4ecb49f9452ee2d07d8ef2f29a4
package.json
package.json
{ "name": "crc-hash", "description": "A Crypto Hash (Stream) implementation for the CRC algorithm.", "version": "0.2.2", "homepage": "https://github.com/DavidAnson/crc-hash", "author": { "name": "David Anson", "url": "http://dlaa.me/" }, "repository": { "type": "git", "url": "https://githu...
{ "name": "crc-hash", "description": "A Crypto Hash (Stream) implementation for the CRC algorithm.", "version": "0.2.2", "homepage": "https://github.com/DavidAnson/crc-hash", "author": { "name": "David Anson", "url": "http://dlaa.me/" }, "repository": { "type": "git", "url": "https://githu...
Update grunt dependency to 1.3.0 for CVE-2020-7729.
Update grunt dependency to 1.3.0 for CVE-2020-7729.
JSON
mit
DavidAnson/crc-hash
--- +++ @@ -24,7 +24,7 @@ "crc": "^3.2.1" }, "devDependencies": { - "grunt": "^0.4.5", + "grunt": "^1.3.0", "grunt-contrib-nodeunit": "^0.4.1", "grunt-contrib-watch": "^0.6.1", "grunt-eslint": "^6.0.0",
d069de17242a68fe51a042d6fbb22a9b02d3732f
.mvn/wrapper/maven-wrapper.properties
.mvn/wrapper/maven-wrapper.properties
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.3/apache-maven-3.8.3-bin.zip wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.6/apache-maven-3.8.6-bin.zip wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
Use update maven used in maven wrapper
Use update maven used in maven wrapper
INI
mit
KristianKarl/graphwalker-project,GraphWalker/graphwalker-project,GraphWalker/graphwalker-project,GraphWalker/graphwalker-project,KristianKarl/graphwalker-project,KristianKarl/graphwalker-project
--- +++ @@ -1,2 +1,2 @@ -distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.3/apache-maven-3.8.3-bin.zip +distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.6/apache-maven-3.8.6-bin.zip wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/m...
3aa29c25e8ff53faadbfbcad935bc594f6f602e8
static/locales/en-GB/messages.properties
static/locales/en-GB/messages.properties
# Title tag # Navigation # Header upper-title=Pontoon by Mozilla headline-1=LocaliSe the web. # What what-desc=Pontoon allows you to localise web content in place, with context and spatial limitations right in front of you. context-desc=By localising web page on the page itself, you no longer need to worry if the wo...
# Title tag # Navigation navigation-title=Pontoon Intro navigation-developers=Developers # Header upper-title=Pontoon by Mozilla headline-1=LocaliSe the web. headline-2=In Place. call-to-action=Tell Me More # What what-desc=Pontoon allows you to localise web content in place, with context and spatial limitations rig...
Update English (en-GB) localization of Pontoon Intro.
Pontoon: Update English (en-GB) localization of Pontoon Intro.
INI
bsd-3-clause
mathjazz/pontoon-intro,Osmose/pontoon-intro,m8ttyB/pontoon-intro,m8ttyB/pontoon-intro,jotes/pontoon-intro,Osmose/pontoon-intro,jotes/pontoon-intro,mathjazz/pontoon-intro,Osmose/pontoon-intro,jotes/pontoon-intro,m8ttyB/pontoon-intro,mathjazz/pontoon-intro
--- +++ @@ -1,10 +1,14 @@ # Title tag # Navigation +navigation-title=Pontoon Intro +navigation-developers=Developers # Header upper-title=Pontoon by Mozilla headline-1=LocaliSe the web. +headline-2=In Place. +call-to-action=Tell Me More # What what-desc=Pontoon allows you to localise web content in place...
f892b5ae86cad49b020258dc3f0ec0b26d806511
catalog/Code_Organization/View_Objects.yml
catalog/Code_Organization/View_Objects.yml
name: View Objects description: Framework agnostic gems that implement Decorator / View Object pattern. projects: - cells - hanami-view
name: View Objects description: Framework agnostic gems that implement Decorator / View Object pattern. projects: - cells - dry-view - hanami-view
Add dry-view to View Objects
Add dry-view to View Objects
YAML
mit
rubytoolbox/catalog
--- +++ @@ -2,4 +2,5 @@ description: Framework agnostic gems that implement Decorator / View Object pattern. projects: - cells + - dry-view - hanami-view
11dbd00f6b6e006326607f8683fe6e82eaaf5604
config/initializers/session_store.rb
config/initializers/session_store.rb
# Be sure to restart your server when you modify this file. PaperSearchApi::Application.config.session_store :cookie_store, key: '_science_commons_api_session'
# Be sure to restart your server when you modify this file. PaperSearchApi::Application.config.session_store :cookie_store, key: '_science_commons_api_session', :domain => :all
Revert "Revert "Make our session cookie good across all subdomains""
Revert "Revert "Make our session cookie good across all subdomains"" This reverts commit 897199c643bac4bb5439ca856b891dda313d5ac6.
Ruby
mit
ScienceCommons/api,ScienceCommons/api,ScienceCommons/api,ScienceCommons/api
--- +++ @@ -1,3 +1,3 @@ # Be sure to restart your server when you modify this file. -PaperSearchApi::Application.config.session_store :cookie_store, key: '_science_commons_api_session' +PaperSearchApi::Application.config.session_store :cookie_store, key: '_science_commons_api_session', :domain => :all
40afa196ec94bbe7a2600fc18e612cf5ff267dc0
scrapi/harvesters/shareok.py
scrapi/harvesters/shareok.py
""" Harvester for the SHAREOK Repository Repository for the SHARE project Example API call: https://shareok.org/oai/request?verb=ListRecords&metadataPrefix=oai_dc """ from __future__ import unicode_literals from scrapi.base import OAIHarvester class ShareOKHarvester(OAIHarvester): short_name = 'shareok' l...
""" Harvester for the SHAREOK Repository Repository for the SHARE project Example API call: https://shareok.org/oai/request?verb=ListRecords&metadataPrefix=oai_dc """ from __future__ import unicode_literals from scrapi.base import OAIHarvester class ShareOKHarvester(OAIHarvester): short_name = 'shareok' l...
Add approves sets to SHAREOK harvester
Add approves sets to SHAREOK harvester
Python
apache-2.0
erinspace/scrapi,fabianvf/scrapi,felliott/scrapi,fabianvf/scrapi,mehanig/scrapi,jeffreyliu3230/scrapi,felliott/scrapi,CenterForOpenScience/scrapi,erinspace/scrapi,ostwald/scrapi,mehanig/scrapi,icereval/scrapi,alexgarciac/scrapi,CenterForOpenScience/scrapi
--- +++ @@ -23,3 +23,17 @@ 'type', 'source', 'format', 'description', 'setSpec' ] + approved_sets = [ + 'com_11244_14447', + 'com_11244_1', + 'col_11244_14248', + 'com_11244_6231', + 'col_11244_7929', + 'col_11244_7920', + 'col_11244_10476', +...
8883c74a8fca06bc5632090406e169df0e07bd20
app/models/observer/ticket/user_ticket_counter.rb
app/models/observer/ticket/user_ticket_counter.rb
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/ class Observer::Ticket::UserTicketCounter < ActiveRecord::Observer observe 'ticket' def after_create(record) user_ticket_counter_update(record) end def after_update(record) user_ticket_counter_update(record) end def user_t...
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/ class Observer::Ticket::UserTicketCounter < ActiveRecord::Observer observe 'ticket' def after_create(record) user_ticket_counter_update(record) end def after_update(record) user_ticket_counter_update(record) end def user_t...
Improve performance of import mode.
Improve performance of import mode.
Ruby
agpl-3.0
monotek/zammad,monotek/zammad,zammad/zammad,zammad/zammad,zammad/zammad,zammad/zammad,monotek/zammad,monotek/zammad,monotek/zammad,zammad/zammad,monotek/zammad,zammad/zammad
--- +++ @@ -11,6 +11,10 @@ end def user_ticket_counter_update(record) + + # return if we run import mode + return if Setting.get('import_mode') + return if !record.customer_id # open ticket count
81b131134c905b53d77c6cbce510a39622f1d95b
buildserver.gemspec
buildserver.gemspec
# coding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) Gem::Specification.new do |spec| spec.name = "buildserver" spec.version = '0.0.5' spec.authors = ["Kasper Grubbe"] spec.email = ["kawsper@gmail.com"] spec.summary ...
# coding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) Gem::Specification.new do |spec| spec.name = "buildserver" spec.version = '1.0.0' spec.authors = ["Kasper Grubbe"] spec.email = ["kawsper@gmail.com"] spec.summary ...
Add .gemspec for version 1.0.0
Add .gemspec for version 1.0.0
Ruby
mit
Pidrock/buildserver
--- +++ @@ -4,7 +4,7 @@ Gem::Specification.new do |spec| spec.name = "buildserver" - spec.version = '0.0.5' + spec.version = '1.0.0' spec.authors = ["Kasper Grubbe"] spec.email = ["kawsper@gmail.com"] spec.summary = %q{Lets you easily compile bash scripts from...
9eaf2c14243ef5d3ef3deb7b34c03e77b40eb8e9
bin/purge_unused_packages.sh
bin/purge_unused_packages.sh
#!/bin/sh sudo dpkg --purge `dpkg -l | awk '/^rc/{print $2;}' `
#!/bin/sh # sudo dpkg --purge `dpkg -l | awk '/^rc/{print $2;}' ` dpkg -l | awk '/^rc/{print $2;}' | xargs -r sudo dpkg --purge
Use xargs -r to prevent no 'rc' packages
Use xargs -r to prevent no 'rc' packages
Shell
apache-2.0
elleryq/oh-my-home,elleryq/oh-my-home,elleryq/oh-my-home
--- +++ @@ -1,2 +1,3 @@ #!/bin/sh -sudo dpkg --purge `dpkg -l | awk '/^rc/{print $2;}' ` +# sudo dpkg --purge `dpkg -l | awk '/^rc/{print $2;}' ` +dpkg -l | awk '/^rc/{print $2;}' | xargs -r sudo dpkg --purge
2169a0024aa2ddb83a4ab975f061f8a14f4c1c11
whelktool/scripts/cleanups/2019/02/delete-weeded-holdings-for-Li/delete-weeded-holdings-for-Li.groovy
whelktool/scripts/cleanups/2019/02/delete-weeded-holdings-for-Li/delete-weeded-holdings-for-Li.groovy
/* * This deletes all holdings for Li with availability 'UTGALLRAD'. * * See LXL-2275 for more info. * */ PrintWriter failedHoldIDs = getReportWriter("failed-to-delete-holdIDs") PrintWriter scheduledForDeletion = getReportWriter("scheduled-for-deletion") selectBySqlWhere(""" collection = 'hold' AND ...
Add script to delete weeded holdings for Li
Add script to delete weeded holdings for Li
Groovy
apache-2.0
libris/librisxl,libris/librisxl,libris/librisxl
--- +++ @@ -0,0 +1,20 @@ +/* + * This deletes all holdings for Li with availability 'UTGALLRAD'. + * + * See LXL-2275 for more info. + * + */ +PrintWriter failedHoldIDs = getReportWriter("failed-to-delete-holdIDs") +PrintWriter scheduledForDeletion = getReportWriter("scheduled-for-deletion") + +selectBySqlWhere(""" +...
baccac62c0b6f476001d5bb2119ff214f3256021
.travis.yml
.travis.yml
--- sudo: false language: ruby cache: bundler bundler_args: --without development system_tests before_install: rm Gemfile.lock || true script: bundle exec rake test SPEC_OPTS='--format documentation' matrix: fast_finish: true include: # Puppet 3 - rvm: 1.9.3 env: PUPPET_VERSION="~> 3" - rvm: 2.0 env: ...
--- sudo: false language: ruby cache: bundler bundler_args: --without development system_tests before_install: rm Gemfile.lock || true script: bundle exec rake test SPEC_OPTS='--format documentation' matrix: fast_finish: true include: # Puppet 3 - rvm: 1.9.3 env: PUPPET_VERSION="~> 3" - rvm: 2.0 env: ...
Use the latest ruby as a canary
Use the latest ruby as a canary
YAML
apache-2.0
tohuwabohu/puppet-patch
--- +++ @@ -20,7 +20,7 @@ env: PUPPET_VERSION="~> 4" - rvm: 2.2 env: PUPPET_VERSION="~> 4" - - rvm: 2.3 + - rvm: ruby-head env: PUPPET_VERSION="~> 4" # Beaker tests - rvm: 2.2
9e8d30405fa3028a66f226f16acdfbcc6d830c99
.travis.yml
.travis.yml
--- language: ruby bundler_args: --without development script: "bundle exec rake validate && bundle exec rake lint && bundle exec rake spec SPEC_OPTS='--format documentation'" after_success: ["git clone -q git://github.com/puppetlabs/ghpublisher.git .forge-releng", ".forge-releng/publish"] env: global: - PUBLIS...
--- language: ruby bundler_args: --without development script: "bundle exec rake validate && bundle exec rake lint && bundle exec rake spec SPEC_OPTS='--format documentation'" after_success: ["git clone -q git://github.com/puppetlabs/ghpublisher.git .forge-releng", ".forge-releng/publish"] env: global: - PUBLIS...
Use modulesync to manage meta files
Use modulesync to manage meta files
YAML
apache-2.0
camptocamp/puppet-public_ipaddress
--- +++ @@ -14,8 +14,6 @@ fast_finish: true include: - rvm: 1.8.7 - env: PUPPET_GEM_VERSION="~> 2.7" - - rvm: 1.8.7 env: PUPPET_GEM_VERSION="~> 3.0" - rvm: 1.9.3 env: PUPPET_GEM_VERSION="~> 3.0"
948434c6eaf2f78a24ea95dd72bead7352f50bbb
static/locales/en-GB/messages.properties
static/locales/en-GB/messages.properties
# Title tag # Navigation navigation-developers=Developers # Header upper-title=Pontoon by Mozilla headline-1=LocaliSe the web. headline-2=In Place. call-to-action=Tell Me More # What what-desc=Pontoon allows you to localise web content in place, with context and spatial limitations right in front of you. context-des...
# Title tag # Navigation # Header upper-title=Pontoon by Mozilla headline-1=LocaliSe the web. # What what-desc=Pontoon allows you to localise web content in place, with context and spatial limitations right in front of you. context-desc=By localising web page on the page itself, you no longer need to worry if the wo...
Update English (en-GB) localization of Pontoon Intro.
Pontoon: Update English (en-GB) localization of Pontoon Intro.
INI
bsd-3-clause
jotes/pontoon-intro,jotes/pontoon-intro,m8ttyB/pontoon-intro,mathjazz/pontoon-intro,Osmose/pontoon-intro,mathjazz/pontoon-intro,Osmose/pontoon-intro,jotes/pontoon-intro,mathjazz/pontoon-intro,m8ttyB/pontoon-intro,Osmose/pontoon-intro,m8ttyB/pontoon-intro
--- +++ @@ -1,13 +1,10 @@ # Title tag # Navigation -navigation-developers=Developers # Header upper-title=Pontoon by Mozilla headline-1=LocaliSe the web. -headline-2=In Place. -call-to-action=Tell Me More # What what-desc=Pontoon allows you to localise web content in place, with context and spatial limit...
72b9411ce13adc8ebb8baa4570f3e45e2aeaf182
Setup.hs
Setup.hs
module Main (main) where import Distribution.Simple main :: IO () main = defaultMainWithHooks defaultUserHooks
module Main (main) where import Distribution.Simple main :: IO () main = defaultMainWithHooks autoconfUserHooks
Use the right setup hooks.
Use the right setup hooks.
Haskell
bsd-2-clause
tibbe/event,tibbe/event,tibbe/event
--- +++ @@ -3,4 +3,4 @@ import Distribution.Simple main :: IO () -main = defaultMainWithHooks defaultUserHooks +main = defaultMainWithHooks autoconfUserHooks
7832d87cccb6e8285dc97dc46b86bc2fe7614ed3
app/controllers/comments_controller.rb
app/controllers/comments_controller.rb
class CommentsController < ApplicationController end
class CommentsController < ApplicationController before_action :require_user def create @comment = Comment.new(comment_params) @comment.user = current_user @success = @comment.save end private def comment_params params.require(:comment).permit(:commentable_type, :commentable_id, :body) end...
Add the comments controller for user to comment commentable items.
Add the comments controller for user to comment commentable items.
Ruby
mit
yiyangyi/cc98-rails,yiyangyi/cc98-rails,yiyangyi/cc98-rails
--- +++ @@ -1,2 +1,14 @@ class CommentsController < ApplicationController + before_action :require_user + + def create + @comment = Comment.new(comment_params) + @comment.user = current_user + @success = @comment.save + end + + private + def comment_params + params.require(:comment).permit(:commenta...
5eabea682317fe53d89fcf1b2ec98a1f44de51d3
rt/syslog/simpleConfig.py
rt/syslog/simpleConfig.py
# capture executables on all nodes hostname_patterns = [ ['KEEP', '.*'] ] path_patterns = [ ['PKGS', r'.*\/test_record_pkg'], ['SKIP', r'.*\/lua'], ['SKIP', r'.*\/expr'], ['SKIP', r'.*\/cc1'], ['SKIP', r'.*\/bash'], ['SKIP', r'.*\/collect2'], ['SKIP', r'.*\/mpich/.*'], ['SKIP', r'.*\/x86_64-linux-gnu...
# capture executables on all nodes hostname_patterns = [ ['KEEP', '.*'] ] path_patterns = [ ['PKGS', r'.*\/test_record_pkg'], ['PKGS', r'.*\/python[0-9][^/][^/]*'], ['SKIP', r'.*\/lua'], ['SKIP', r'.*\/expr'], ['SKIP', r'.*\/cc1'], ['SKIP', r'.*\/bash'], ['SKIP', r'.*\/collect2'], ['SKIP', r'.*\/mpich...
Add in python patterns for py pkg test
Add in python patterns for py pkg test
Python
lgpl-2.1
xalt/xalt,xalt/xalt,xalt/xalt,xalt/xalt,xalt/xalt,xalt/xalt,xalt/xalt
--- +++ @@ -3,7 +3,8 @@ ['KEEP', '.*'] ] path_patterns = [ - ['PKGS', r'.*\/test_record_pkg'], + ['PKGS', r'.*\/test_record_pkg'], + ['PKGS', r'.*\/python[0-9][^/][^/]*'], ['SKIP', r'.*\/lua'], ['SKIP', r'.*\/expr'], ['SKIP', r'.*\/cc1'], @@ -12,3 +13,11 @@ ['SKIP', r'.*\/mpich/.*'], ['SKIP', ...
5c519112ae35f8ded5e674474b2e9c9bef5bb58a
src/org/apache/markt/leaks/awt/AwtThreadLeak.java
src/org/apache/markt/leaks/awt/AwtThreadLeak.java
package org.apache.markt.leaks.awt; import org.apache.markt.leaks.LeakBase; /** * Java 5 - leaks * Java 6 - leaks * Java 7 * - update <=51 - leaks * - update >=55 - no leak * Java 8 * - update 00 - leaks * - update >=05 - no leak */ public class AwtThreadLeak extends LeakBase { public static void ...
Add test for AwtThread leak
Add test for AwtThread leak
Java
apache-2.0
markt-asf/memory-leaks
--- +++ @@ -0,0 +1,33 @@ +package org.apache.markt.leaks.awt; + +import org.apache.markt.leaks.LeakBase; + +/** + * Java 5 - leaks + * Java 6 - leaks + * Java 7 + * - update <=51 - leaks + * - update >=55 - no leak + * Java 8 + * - update 00 - leaks + * - update >=05 - no leak + */ +public class AwtThreadLeak e...
a15aed18d395a7a2c3ab734f69477e407d077c97
README.md
README.md
# Backend This was built with node and koajs (modern alternative for express) ## Installation - Enter the directory. - Installing yarn package manager : https://yarnpkg.com/en/docs/install - We need node version greater than 8. If your distro does not provide that, you can use nvm to install it ``` curl -o- https://...
# Backend This was built with node and koajs (modern alternative for express) ## Installation - Enter the directory. - Installing yarn package manager : https://yarnpkg.com/en/docs/install - We need node version greater than 8. If your distro does not provide that, you can use nvm to install it ``` curl -o- https://...
Add technologies used section in readme
Add technologies used section in readme
Markdown
isc
felicity-iiith/contest-portal-backend
--- +++ @@ -27,3 +27,9 @@ ``` yarn watch ``` + +## Technologies used / docs for reference +- [koajs](http://koajs.com/) +- [sequelize](http://docs.sequelizejs.com/) +- [koa-joi-router](https://github.com/koajs/joi-router) and [joi](https://github.com/hapijs/joi) +- Postman for debugging ([see these videos](https:/...
385a8ae116cb55508c9a927b229685f17c506414
composer.json
composer.json
{ "name": "ada-u/chocoflake", "type": "library", "description": "64bit time based id generator", "keywords": [ "chocoflake", "id", "generator", "idgen" ], "homepage": "https://github.com/ada-u/chocoflake", "authors": [ { "name": "ada-u", "email": "ada-u@ada-u.com" } ], "license": "MIT", "require-d...
{ "name": "ada-u/chocoflake", "type": "library", "description": "64bit time based id generator", "keywords": [ "chocoflake", "id", "generator", "idgen" ], "homepage": "https://github.com/ada-u/chocoflake", "authors": [ { "name": "ada-u", "email": "ada-u@ada-u.com" } ], "license": "MIT", "require-d...
Update mockery/mockery requirement from 1.4.* to 1.4.* || 1.5.*
Update mockery/mockery requirement from 1.4.* to 1.4.* || 1.5.* Updates the requirements on [mockery/mockery](https://github.com/mockery/mockery) to permit the latest version. - [Release notes](https://github.com/mockery/mockery/releases) - [Changelog](https://github.com/mockery/mockery/blob/master/CHANGELOG.md) - [Co...
JSON
mit
ada-u/chocoflake
--- +++ @@ -14,7 +14,7 @@ }, "require": { "php": ">=8.0", - "mockery/mockery": "1.4.*", + "mockery/mockery": "1.4.* || 1.5.*", "predis/predis": "1.1.*", "ext-sysvsem": "*", "ext-sysvshm": "*"
db0ac9f1ba9a54e432c7ccfd31fe1de1f3a64294
tsconfig.json
tsconfig.json
{ "compilerOptions": { "module": "commonjs", "target": "es6", "removeComments": true, "noEmitOnError": true, "noResolve": false, "experimentalDecorators": true, "strict": true, "noUnusedParameters": true, "noUnusedLocals": true, "sourceMap": true, "baseUrl": "./src/" }, ...
{ "compilerOptions": { "module": "commonjs", "target": "es5", "removeComments": true, "noEmitOnError": true, "noResolve": false, "experimentalDecorators": true, "strict": true, "noUnusedParameters": true, "noUnusedLocals": true, "sourceMap": true, "baseUrl": "./src/" }, ...
Set compile target down to `es5` to prevent unintended side effects
Set compile target down to `es5` to prevent unintended side effects
JSON
unlicense
Sean-Brown/screeps-typescript-starter,Sean-Brown/screeps-typescript-starter,Adirelle/typescreeps,KeithHanson/screeps-typescript,KeithHanson/screeps-typescript,Adirelle/typescreeps
--- +++ @@ -1,7 +1,7 @@ { "compilerOptions": { "module": "commonjs", - "target": "es6", + "target": "es5", "removeComments": true, "noEmitOnError": true, "noResolve": false,
7c206044c45a98c421ade438568b32f7dc8c671e
requirements.txt
requirements.txt
Django[argon2]==1.11.7 wagtail==1.13.1 # External Libraries requests==2.18.4 # Templates django-compressor==2.2 django-libsass==0.7 wagtailfontawesome==1.1.1 # Scheduled tasks django-kronos==1.0 # User management rules==1.3 django-simple-email-confirmation==0.22 # Logging raven==6.4.0
Django[argon2]==1.11.7 wagtail==1.13.1 # External Libraries requests==2.18.4 # Templates django-compressor==2.2 django-libsass==0.7 wagtailfontawesome==1.1.1 # Scheduled tasks django-kronos==1.0 # User management rules==1.3 django-simple-email-confirmation==0.23 # Logging raven==6.4.0
Bump django-simple-email-confirmation from 0.22 to 0.23
Bump django-simple-email-confirmation from 0.22 to 0.23 Bumps [django-simple-email-confirmation](https://github.com/mfogel/django-simple-email-confirmation) from 0.22 to 0.23. - [Commits](https://github.com/mfogel/django-simple-email-confirmation/commits)
Text
agpl-3.0
Dekker1/moore,Dekker1/moore,UTNkar/moore,UTNkar/moore,UTNkar/moore,Dekker1/moore,Dekker1/moore,UTNkar/moore
--- +++ @@ -14,7 +14,7 @@ # User management rules==1.3 -django-simple-email-confirmation==0.22 +django-simple-email-confirmation==0.23 # Logging raven==6.4.0
36c6c3156a7000aa9f99f8020314d86d50da505b
public/app/themes/starter/assets/css/main.scss
public/app/themes/starter/assets/css/main.scss
/* * Theme SASS entry point. */ // Import Bootstrap SASS @import 'bootstrap'; // Load variables @import 'variables/paths'; // Load utilities @import 'utils/urls';
/* * Theme SASS entry point. */ // Import Bootstrap SASS @import 'bootstrap';
Remove missing Sass file refs
Remove missing Sass file refs
SCSS
mit
3ev/wordpress-starter,3ev/wordpress-starter,3ev/wordpress-starter,3ev/wordpress-starter
--- +++ @@ -7,11 +7,3 @@ // Import Bootstrap SASS @import 'bootstrap'; - -// Load variables - -@import 'variables/paths'; - -// Load utilities - -@import 'utils/urls';
518227fd528a3ba0266364262006fdc82cec71ad
www/main.js
www/main.js
// Example server call: http://172.81.178.14:8080/na/rndminternetman/ function main() { // Get the standardized summoner name, which has spaces removed and is lowercase. var summonerName = document.getElementById('summonerName').value.replace(/\s+/g, '').toLowerCase(); var region = document.getElementById(...
// Example server call: http://172.81.178.14:8080/na/rndminternetman/ function main() { // Get the standardized summoner name, which has spaces removed and is lowercase. var summonerName = document.getElementById('summonerName').value.replace(/\s+/g, '').toLowerCase(); var region = document.getElementById(...
Build and play a song when we get data from the server
Build and play a song when we get data from the server
JavaScript
mit
red3141/UrfTunes,red3141/UrfTunes,red3141/UrfTunes
--- +++ @@ -14,7 +14,8 @@ championMasteryLevels[championNames[i]] = 0; } } - alert(JSON.stringify(championMasteryLevels)); + window.masteries = championMasteryLevels; + songBuilder.buildAndPlay(); } } xmlHttp.onerro...
cde6ead0d520a4ab944ac2c81dda3714acd0896b
test/lib/sanitized_test.rb
test/lib/sanitized_test.rb
require_relative '../test_helper' class SanitizedTest < ActiveSupport::TestCase include DC::Sanitized it "should strip non-characters & replace them with dashes" do assert sluggify(%[''(asdf)'''''___⌘⌘⌘\n"lol.wat".。---不]), "asdf-lol-wat-不" end end
require_relative '../test_helper' class SanitizedTest < ActiveSupport::TestCase include DC::Sanitized it "should strip non-characters & replace them with dashes" do assert_equal "asdf-lol-wat-不", sluggify(%[''(asdf)'''''___⌘⌘⌘\n"lol.wat".。---不]) end # Make sure characters from outside our intended unic...
Test we aren't slugging in 21-bit unicode space
Test we aren't slugging in 21-bit unicode space
Ruby
mit
documentcloud/documentcloud,monofox/documentcloud,documentcloud/documentcloud,monofox/documentcloud,documentcloud/documentcloud,documentcloud/documentcloud,monofox/documentcloud,monofox/documentcloud
--- +++ @@ -4,6 +4,13 @@ include DC::Sanitized it "should strip non-characters & replace them with dashes" do - assert sluggify(%[''(asdf)'''''___⌘⌘⌘\n"lol.wat".。---不]), "asdf-lol-wat-不" + assert_equal "asdf-lol-wat-不", sluggify(%[''(asdf)'''''___⌘⌘⌘\n"lol.wat".。---不]) end + + # Make sure characte...
bf0e8c8bf2adac2abb50de2c2aa3b31edcabe592
package.json
package.json
{ "name": "github-battle", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "start": "webpack-dev-server --open" }, "babel":{ "presets": ["env", "react"] }, "author": "ryuzaki644", "license": "ISC", "dependencies": { "react": "^15.6.0", "react-dom": "^15.6.0"...
{ "name": "github-battle", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "start": "webpack-dev-server --open" }, "babel": { "presets": [ "env", "react" ] }, "author": "ryuzaki644", "license": "ISC", "dependencies": { "axios": "^0.16.2", "re...
Add axios dependency to support promises
Add axios dependency to support promises
JSON
mit
ryuzaki644/github-battle,ryuzaki644/github-battle
--- +++ @@ -6,12 +6,16 @@ "scripts": { "start": "webpack-dev-server --open" }, - "babel":{ - "presets": ["env", "react"] + "babel": { + "presets": [ + "env", + "react" + ] }, "author": "ryuzaki644", "license": "ISC", "dependencies": { + "axios": "^0.16.2", "react": ...
49166dc5f77462f11b9e66c92e995c9aec967f15
README.md
README.md
STUN ==== This is a small, pure-Java library that implements the STUN message format as well as a non-blocking STUN client and server. ## License Copyright &copy; 2016 Stojan Dimitrovski This code is licensed under the permissive MIT X11 license. For the full text see `LICENSE.txt`.
STUN ==== [![Build Status](https://travis-ci.org/hf/stun.svg?branch=master)](https://travis-ci.org/hf/stun) [![codecov](https://codecov.io/gh/hf/stun/branch/master/graph/badge.svg)](https://codecov.io/gh/hf/stun) This is a small, pure-Java library that implements the STUN message format as well as a non-blocking STUN ...
Add Travis CI and Codecov badges
Add Travis CI and Codecov badges
Markdown
mit
hf/stun
--- +++ @@ -1,5 +1,6 @@ STUN ==== +[![Build Status](https://travis-ci.org/hf/stun.svg?branch=master)](https://travis-ci.org/hf/stun) [![codecov](https://codecov.io/gh/hf/stun/branch/master/graph/badge.svg)](https://codecov.io/gh/hf/stun) This is a small, pure-Java library that implements the STUN message format ...
0520e3c03917f13b481b18e87eaf04d621b211b7
templates/post-receive.public.sh
templates/post-receive.public.sh
#!/bin/bash # # {{ ansible_managed }} # # Copyright (c) 2014 Michael Scherer <mscherer@redhat.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without lim...
#!/bin/bash # # {{ ansible_managed }} # # Copyright (c) 2014 Michael Scherer <mscherer@redhat.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without lim...
Use sudo rather than su, to make it usable by non root user
Use sudo rather than su, to make it usable by non root user
Shell
mit
OSAS/ansible-role-ansible_bastion,mscherer/ansible-role-ansible_bastion,OSAS/ansible-role-ansible_bastion,mscherer/ansible-role-ansible_bastion
--- +++ @@ -28,5 +28,5 @@ # update /etc/ansible sudo /usr/local/bin/update_ansible_config.sh # run ansible - su - {{ ansible_username }} -c "generate_ansible_command.py {{ '--compat' if not compat_disable else '' }} --old $OLDREV --new $NEWREV --git $(pwd)" + sudo -u {{ ansibl...
345cd8ab1b62f887bdc8a05080a6a344e2da29f4
README.md
README.md
# node.btce.api Simple Node.js wrapper for btc-e.com exchange public API. This module requires request. `$npm install request` in your work directory, then add `var btce = require('./node.btce.js');` to your working file. A file called 'scratch.js' with a small example has been included. Currently only public call...
# node.btce.api Simple Node.js wrapper for btc-e.com exchange public API. This module requires request, the included hmac-sha512.js file, and querystring. Run `$npm install request querystring` in your work directory, then add `var btce = require('./node.btce.js');` to your working file. A file called 'scratch.js'...
Update to reflect private api update
Update to reflect private api update
Markdown
mit
broketech/node.btce.api
--- +++ @@ -1,13 +1,31 @@ # node.btce.api Simple Node.js wrapper for btc-e.com exchange public API. -This module requires request. `$npm install request` in your work directory, +This module requires request, the included hmac-sha512.js file, and querystring. +Run `$npm install request querystring` in your wor...
09752c2ca817b187cbbce31c47ce87e7c6982d97
src/main/webapp/views/common/searchBarVendors.html
src/main/webapp/views/common/searchBarVendors.html
<div class="row justify-content-md-center"> <div class="col-12"> <div class="card border-primary"> <h5 class="card-header">Find the nearest vendor</h5> <div class="card-body"> <div id="search-form"> <div class="row"> <div class="col"> <div class="form-group"...
<div class="row justify-content-md-center mt-3"> <div class="col-12"> <div class="card border-primary"> <h5 class="card-header">Find the nearest vendor</h5> <div class="card-body"> <div id="search-form"> <div class="row"> <div class="col"> <div class="form-g...
Update search form to perform queries
Update search form to perform queries
HTML
apache-2.0
googleinterns/Vendr-2020,googleinterns/Vendr-2020,googleinterns/Vendr-2020
--- +++ @@ -1,4 +1,4 @@ -<div class="row justify-content-md-center"> +<div class="row justify-content-md-center mt-3"> <div class="col-12"> <div class="card border-primary"> <h5 class="card-header">Find the nearest vendor</h5> @@ -10,10 +10,12 @@ <label for="distance">Distance in meter...
0b43292cf32f2c728372da11d3b87bf0c6960902
fmts/testdata/resources/scala/project/plugins.sbt
fmts/testdata/resources/scala/project/plugins.sbt
resolvers ++= Seq( "sonatype-releases" at "https://oss.sonatype.org/content/repositories/releases/" ) addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "0.8.0")
resolvers ++= Seq( "sonatype-releases" at "https://oss.sonatype.org/content/repositories/releases/" ) addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "0.9.0")
Update dependency org.scalastyle:scalastyle-sbt-plugin to v0.9.0
Update dependency org.scalastyle:scalastyle-sbt-plugin to v0.9.0
Scala
mit
haya14busa/errorformat,haya14busa/errorformat,haya14busa/errorformat,haya14busa/errorformat
--- +++ @@ -2,4 +2,4 @@ "sonatype-releases" at "https://oss.sonatype.org/content/repositories/releases/" ) -addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "0.8.0") +addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "0.9.0")
1515f6e25dbccea2656e214068a18605aa8ce9ae
src/components/loading/index.vue
src/components/loading/index.vue
<template> <div id="loadingToast" class="weui_loading_toast" v-show="show"> <div class="weui_mask_transparent"></div> <div class="weui_toast"> <div class="weui_loading"> <div class="weui_loading_leaf" v-for="i in 12" :class="['weui_loading_leaf_' + i]"></div> </div> <p class="weui_to...
<template> <div class="weui_loading_toast" v-show="show"> <div class="weui_mask_transparent"></div> <div class="weui_toast" :style="{position: position}"> <div class="weui_loading"> <div class="weui_loading_leaf" v-for="i in 12" :class="['weui_loading_leaf_' + i]"></div> </div> <p cl...
Remove id and support position setting
Loading: Remove id and support position setting
Vue
mit
airyland/vux,airyland/vux,greedying/vux,greedying/vux,szgxwj/vux,huixt/hxvux,greedying/vux,szgxwj/vux,szgxwj/vux,huixt/hxvux,huixt/hxvux,airyland/vux
--- +++ @@ -1,7 +1,7 @@ <template> - <div id="loadingToast" class="weui_loading_toast" v-show="show"> + <div class="weui_loading_toast" v-show="show"> <div class="weui_mask_transparent"></div> - <div class="weui_toast"> + <div class="weui_toast" :style="{position: position}"> <div class="weui_loa...
526bb40e5981229d11a4fa6b7f604e83bbd6eb75
locales/tr/addon.properties
locales/tr/addon.properties
experiment_list_enabled = Etkinleştirildi experiment_list_new_experiment = Yeni deney experiment_list_view_all = Tüm deneyleri gör experiment_eol_tomorrow_message = Yarın bitiyor experiment_eol_soon_message = Yakında bitiyor experiment_eol_complete_message = Deney tamamlandı installed_message = <strong>Not:</strong>T...
experiment_list_enabled = Etkinleştirildi experiment_list_new_experiment = Yeni deney experiment_list_view_all = Tüm deneyleri gör experiment_eol_tomorrow_message = Yarın bitiyor experiment_eol_soon_message = Yakında bitiyor experiment_eol_complete_message = Deney tamamlandı installed_message = <strong>Not:</strong>T...
Update Turkish (tr) localization of Test Pilot Website
Pontoon: Update Turkish (tr) localization of Test Pilot Website
INI
mpl-2.0
lmorchard/idea-town-server,fzzzy/testpilot,mozilla/idea-town,flodolo/testpilot,fzzzy/testpilot,fzzzy/testpilot,flodolo/testpilot,meandavejustice/testpilot,lmorchard/idea-town,mozilla/idea-town-server,meandavejustice/testpilot,chuckharmston/testpilot,mozilla/idea-town,mozilla/idea-town,chuckharmston/testpilot,fzzzy/test...
--- +++ @@ -16,9 +16,6 @@ # LOCALIZER NOTE: Placeholder is experiment title survey_launch_survey_label = %s deneyi sona erdi. Bu deney hakkında ne düşündünüz? -# LOCALIZER NOTE: Placeholder is site host (e.g. testpilot.firefox.com) -notification_via = %s üzerinden - no_experiment_message = Firefox'un en yeni den...
5f096880765e74e26b2ed21033fe975d87ef904a
h2spec.go
h2spec.go
package h2spec import ( "fmt" "time" "github.com/summerwind/h2spec/config" "github.com/summerwind/h2spec/http2" "github.com/summerwind/h2spec/log" "github.com/summerwind/h2spec/reporter" "github.com/summerwind/h2spec/spec" ) func Run(c *config.Config) error { failed := false specs := []*spec.TestGroup{ h...
package h2spec import ( "fmt" "time" "github.com/summerwind/h2spec/config" "github.com/summerwind/h2spec/http2" "github.com/summerwind/h2spec/log" "github.com/summerwind/h2spec/reporter" "github.com/summerwind/h2spec/spec" ) func Run(c *config.Config) error { total := 0 failed := false specs := []*spec.Te...
Print messagen if there is no matched test
Print messagen if there is no matched test
Go
mit
summerwind/h2spec
--- +++ @@ -12,6 +12,7 @@ ) func Run(c *config.Config) error { + total := 0 failed := false specs := []*spec.TestGroup{ @@ -21,14 +22,25 @@ start := time.Now() for _, s := range specs { s.Test(c) + if s.FailedCount > 0 { failed = true } + + total += s.FailedCount + total += s.SkippedCount...
5b0c3cad90d0876477ceb4e4bea0808d4ac94675
.travis.yml
.travis.yml
language: c env: global: - EnableNuGetPackageRestore=true install: - sudo add-apt-repository ppa:directhex/monoxide -y - sudo apt-get update - sudo apt-get install mono-devel mono-gmcs script: - xbuild - chmod +x .ci/xunit.sh - ./.ci/xunit.sh Spatial4n.Tests/bin/Debug/Spatial4n.Tests.dll
language: c env: global: - EnableNuGetPackageRestore=true install: - sudo add-apt-repository ppa:directhex/monoxide -y - sudo apt-get update - sudo apt-get install mono-devel mono-gmcs - mozroots --import --sync script: - xbuild - chmod +x .ci/xunit.sh - ./.ci/xunit.sh Spatial4n.Tests/bin/Debug/Spati...
Make sure we can bring nuget packages in Mono
Make sure we can bring nuget packages in Mono
YAML
apache-2.0
NightOwl888/Spatial4n,NightOwl888/Spatial4n,synhershko/Spatial4n,synhershko/Spatial4n
--- +++ @@ -8,6 +8,7 @@ - sudo add-apt-repository ppa:directhex/monoxide -y - sudo apt-get update - sudo apt-get install mono-devel mono-gmcs + - mozroots --import --sync script: - xbuild
6f02ed35f9ec5774f78ceb18679edc23db33d384
src/CashflowBundle/Resources/views/navbar.html.twig
src/CashflowBundle/Resources/views/navbar.html.twig
{% block content %} <nav class="navbar navbar-inverse"> <div class="container-fluid"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-c...
{% block content %} <nav class="navbar navbar-inverse"> <div class="container-fluid"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-c...
Add login and register link to navbar
Add login and register link to navbar
Twig
mit
stolarz92/cashflow,stolarz92/cashflow,stolarz92/cashflow
--- +++ @@ -19,6 +19,8 @@ <li><a href="{{ path('wallets') }}">Wallets</a></li> </ul> <ul class="nav navbar-nav navbar-right"> + <li><a href="{{ path('fos_user_security_login') }}">Login</a></li> + <li><a href="{{ path('fos_user_registration_regi...
54d85fe36634f3b47c830f341779b0e3ea8dd00d
test/asan/TestCases/Linux/init_fini_sections.cc
test/asan/TestCases/Linux/init_fini_sections.cc
// RUN: %clangxx_asan %s -o %t && %run %t | FileCheck %s #include <stdio.h> static void foo() { printf("foo\n"); } int main() { return 0; } __attribute__((section(".preinit_array"))) void (*call_foo)(void) = &foo; __attribute__((section(".init_array"))) void (*call_foo_2)(void) = &foo; __attribute__((section(...
Add test for .preinit_array/.init_array/.fini_array sections.
[ASan] Add test for .preinit_array/.init_array/.fini_array sections. git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@247737 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
--- +++ @@ -0,0 +1,24 @@ +// RUN: %clangxx_asan %s -o %t && %run %t | FileCheck %s + +#include <stdio.h> + +static void foo() { + printf("foo\n"); +} + +int main() { + return 0; +} + +__attribute__((section(".preinit_array"))) +void (*call_foo)(void) = &foo; + +__attribute__((section(".init_array"))) +void (*call_f...
a47e5743033a717ae6dab289d7e8a9fa86f31387
cgod.ini
cgod.ini
[globals] ipv6 = True rootdir = "/var/gopher" host = "daisy.shortcircuit.net.au" daemon = True pidfile = "/var/run/cgod.pid" logfile = "/var/log/cgod.log" [logger] logfile = "access.log" [serverinfo] admin = "prologic@shortcircuit.net.au" description = "ShortCircuit Gopherspace" [url] redirect-timeout = 5
[globals] ipv6 = True rootdir = "/var/gopher" host = "daisy.shortcircuit.net.au" ; daemon = True ; pidfile = "/var/run/cgod.pid" ; logfile = "/var/log/cgod.log" [logger] logfile = "access.log" [serverinfo] admin = "prologic@shortcircuit.net.au" description = "ShortCircuit Gopherspace" [url] redirect-timeout = 5
Disable running as a daemon for now
Disable running as a daemon for now
INI
mit
prologic/cgod,prologic/cgod
--- +++ @@ -2,9 +2,9 @@ ipv6 = True rootdir = "/var/gopher" host = "daisy.shortcircuit.net.au" -daemon = True -pidfile = "/var/run/cgod.pid" -logfile = "/var/log/cgod.log" +; daemon = True +; pidfile = "/var/run/cgod.pid" +; logfile = "/var/log/cgod.log" [logger] logfile = "access.log"
fc4ff7a516073272161e7903616a649c4a5d9e11
README.md
README.md
[![Build Status](https://travis-ci.org/NullInfinity/socman.py.svg?branch=master)](https://travis-ci.org/NullInfinity/socman.py) [![Coverage Status](https://coveralls.io/repos/github/NullInfinity/socman.py/badge.svg?branch=master)](https://coveralls.io/github/NullInfinity/socman.py?branch=master) [![Code Health](https:/...
[![Build Status](https://travis-ci.org/NullInfinity/socman.py.svg?branch=master)](https://travis-ci.org/NullInfinity/socman.py) [![Coverage Status](https://coveralls.io/repos/github/NullInfinity/socman.py/badge.svg?branch=master)](https://coveralls.io/github/NullInfinity/socman.py?branch=master) [![Code Health](https:/...
Set personal website address to use HTTPS
Set personal website address to use HTTPS
Markdown
mit
NullInfinity/society-event-manager,NullInfinity/socman
--- +++ @@ -18,5 +18,5 @@ ### Who do I talk to? ### -* This repository is maintained by [Alex Thorne](http://alexthorne.net/) ([email](mailto:alex@alexthorne.net)). +* This repository is maintained by [Alex Thorne](https://alexthorne.net/) ([email](mailto:alex@alexthorne.net)). * Please get in touch with featur...
945a11ece943e8d4bde889b297905a88150eef78
utils/seed_test_cases.js
utils/seed_test_cases.js
var str = "["; for (var seedVal = 0; seedVal < 256; seedVal++) { var a = -3969392806; var b = -1780940711; var c = -1021952437; var d = 255990488; var e = -651539848; var f = -1525007287; var g = -990909925; var h = 811634969; var results = []; for (var i = 0; i < 256; i++) { results[i] = see...
Create script for getting seed test cases
Create script for getting seed test cases
JavaScript
mit
Jameskmonger/isaac-crypto
--- +++ @@ -0,0 +1,72 @@ +var str = "["; + +for (var seedVal = 0; seedVal < 256; seedVal++) { + var a = -3969392806; + var b = -1780940711; + var c = -1021952437; + var d = 255990488; + var e = -651539848; + var f = -1525007287; + var g = -990909925; + var h = 811634969; + + var results = []; + + for (var i...
09d6f84a9398afa62f261f3de1904b89bb0ce470
lib/hidden_hippo/reader.rb
lib/hidden_hippo/reader.rb
require 'hidden_hippo/scanner' require 'hidden_hippo/updator' require 'hidden_hippo/packets/dns' require 'hidden_hippo/packets/dhcp' require 'hidden_hippo/packets/http' require 'hidden_hippo/extractors/mdns_hostname_extractor' require 'hidden_hippo/extractors/dhcp_hostname_extractor' require 'hidden_hippo/extractors/...
require 'hidden_hippo/scanner' require 'hidden_hippo/updator' require 'hidden_hippo/packets/dns' require 'hidden_hippo/packets/dhcp' require 'hidden_hippo/packets/http' require 'hidden_hippo/extractors/mdns_hostname_extractor' require 'hidden_hippo/extractors/dhcp_hostname_extractor' require 'hidden_hippo/extractors/...
Revert "Added a scanner for WPS"
Revert "Added a scanner for WPS" This reverts commit 5af0aa6039311aa816c1a6eccaadde0c7871bfe7.
Ruby
mit
beraboris/hidden-hippo,beraboris/hidden-hippo,beraboris/hidden-hippo
--- +++ @@ -9,7 +9,6 @@ require 'hidden_hippo/extractors/dhcp_hostname_extractor' require 'hidden_hippo/extractors/http_request_url_extractor' require 'hidden_hippo/extractors/dns_llmnr_extractor' -require 'hidden_hippo/extractors/wps_extractor' require 'thread' module HiddenHippo @@ -26,8 +25,6 @@ ...
763a0114d2efbae7b7a0be874b1f53029df9774f
microservices/services/tracking-service/src/main/resources/db/migration/V2__COLAB-2852-indexes.sql
microservices/services/tracking-service/src/main/resources/db/migration/V2__COLAB-2852-indexes.sql
CREATE INDEX xcolab_TrackedVisit_createDate_index ON xcolab_TrackedVisit (createDate DESC); CREATE INDEX xcolab_TrackedVisitor2User_createDate_index ON xcolab_TrackedVisitor2User (createDate DESC); CREATE INDEX xcolab_TrackedVisitor2User_userId_index ON xcolab_TrackedVisitor2User (userId);
Add indexes to tracking db
[COLAB-2852] Add indexes to tracking db
SQL
mit
CCI-MIT/XCoLab,CCI-MIT/XCoLab,CCI-MIT/XCoLab,CCI-MIT/XCoLab
--- +++ @@ -0,0 +1,3 @@ +CREATE INDEX xcolab_TrackedVisit_createDate_index ON xcolab_TrackedVisit (createDate DESC); +CREATE INDEX xcolab_TrackedVisitor2User_createDate_index ON xcolab_TrackedVisitor2User (createDate DESC); +CREATE INDEX xcolab_TrackedVisitor2User_userId_index ON xcolab_TrackedVisitor2User (userId);
232ef17debf40e8c8bc73876aaeaa50a76b4c4f0
scripts/android-x86-mock.sh
scripts/android-x86-mock.sh
#!/usr/bin/env bash set -e adb push libs/armeabi-v7a/memo-pad-7-test /data/local/tmp/memo-pad-7-test adb push libs/armeabi-v7a/zenfone-2-test /data/local/tmp/zenfone-2-test adb push libs/armeabi-v7a/zenfone-2e-test /data/local/tmp/zenfone-2e-test adb push libs/armeabi-v7a/zenfone-c-test /data/local/tmp/zenfone-c-test...
#!/usr/bin/env bash set -e adb push libs/x86/memo-pad-7-test /data/local/tmp/memo-pad-7-test adb push libs/x86/zenfone-2-test /data/local/tmp/zenfone-2-test adb push libs/x86/zenfone-2e-test /data/local/tmp/zenfone-2e-test adb push libs/x86/zenfone-c-test /data/local/tmp/zenfone-c-test adb shell "/data/local/tmp/mem...
Fix script to run x86 mock test on Android
Fix script to run x86 mock test on Android
Shell
bsd-2-clause
Maratyszcza/cpuinfo,pytorch/cpuinfo,pytorch/cpuinfo,Maratyszcza/cpuinfo,Maratyszcza/cpuinfo,Maratyszcza/cpuinfo,pytorch/cpuinfo,pytorch/cpuinfo
--- +++ @@ -2,10 +2,10 @@ set -e -adb push libs/armeabi-v7a/memo-pad-7-test /data/local/tmp/memo-pad-7-test -adb push libs/armeabi-v7a/zenfone-2-test /data/local/tmp/zenfone-2-test -adb push libs/armeabi-v7a/zenfone-2e-test /data/local/tmp/zenfone-2e-test -adb push libs/armeabi-v7a/zenfone-c-test /data/local/tmp...
1167cc33efd371c7432f4d68a437e84080cc74e6
app/assets/javascripts/relay/routes/board-route.react.jsx
app/assets/javascripts/relay/routes/board-route.react.jsx
var Relay = require('react-relay'); //var BoardRelayRoute = class extends Relay.Route { // static queries = { // board: () => Relay.QL`query { board }`, // }; // static routeName = 'BoardHomeRoute'; //}; //KAKAclass BoardRelayRoute extends Relay.Route {}; //KAKABoardRelayRoute.queries = { //KAKA simple: () => ...
var Relay = require('react-relay'); var BoardRelayRoute = { queries: { simple: () => Relay.QL` query { simple } `, }, params: { }, name: 'BoardHomeRoute', } module.exports = BoardRelayRoute;
Remove commented out code from route
Remove commented out code from route
JSX
mit
nethsix/relay_on_rails,nethsix/relay-on-rails,nethsix/relay_on_rails,nethsix/relay-on-rails,nethsix/relay_on_rails,nethsix/relay-on-rails
--- +++ @@ -1,25 +1,4 @@ var Relay = require('react-relay'); -//var BoardRelayRoute = class extends Relay.Route { -// static queries = { -// board: () => Relay.QL`query { board }`, -// }; -// static routeName = 'BoardHomeRoute'; -//}; -//KAKAclass BoardRelayRoute extends Relay.Route {}; -//KAKABoardRelayRoute....
51c1ad8bd2a8b9c315b2caf927f422acd511d16a
lib/ui.rb
lib/ui.rb
require_relative 'console' class Ui attr_reader :io def initialize(io) @io = io end def display_intro_msg(game_being_played) io.display_intro_msg(game_being_played) end def show_board(board) io.show_board(board) end def get_user_input io.get_user_input end end
Create Ui class inorder to remove dependency on stdin and stdout
Create Ui class inorder to remove dependency on stdin and stdout
Ruby
mit
portatlas/tictactoe,portatlas/tictactoe
--- +++ @@ -0,0 +1,23 @@ +require_relative 'console' + +class Ui + attr_reader :io + + def initialize(io) + @io = io + end + + def display_intro_msg(game_being_played) + io.display_intro_msg(game_being_played) + end + + def show_board(board) + io.show_board(board) + end + + def get_user_input + io...
fd64db575b0643f992dc1f90321c28ba162e80ef
app/views/admin/roles/index.html.haml
app/views/admin/roles/index.html.haml
.row .col-md-12.page-header %h2 Roles .text-muted The available roles for the conference .col-md-12 %table.table.table-bordered.table-striped.table-hover.datatable#roles %thead %th ID %th Name %th Description %th Users %th Actions %tbody ...
.row .col-md-12.page-header %h2 Roles .text-muted The available roles for the conference .col-md-12 %table.table.table-bordered.table-striped.table-hover#roles %thead %th ID %th Name %th Description %th Users %th Actions %tbody - ...
Remove datatable functionality from Roles index table.
Remove datatable functionality from Roles index table. The table in roles#index view has no need of datatable features as the number of roles is just 4.
Haml
mit
SeaGL/osem,rishabhptr/osem,hennevogel/osem,SeaGL/osem,bear454/osem,kormoc/osem,differentreality/osem,bear454/osem,bear454/osem,BelieveC/osem,Shriyanshagro/osem,ChrisBr/osem,rishabhptr/osem,differentreality/osem,openSUSE/osem,ChrisBr/osem,ChrisBr/osem,kormoc/osem,kormoc/osem,hennevogel/osem,Shriyanshagro/osem,AndrewKval...
--- +++ @@ -7,7 +7,7 @@ The available roles for the conference .col-md-12 - %table.table.table-bordered.table-striped.table-hover.datatable#roles + %table.table.table-bordered.table-striped.table-hover#roles %thead %th ID %th Name
c79f0fa931512d00a0c76b7d067e3e80088aeb69
app/javascript/components/forms/login/actions.js
app/javascript/components/forms/login/actions.js
import { createThunkAction } from 'utils/redux'; import { FORM_ERROR } from 'final-form'; import { login, register, resetPassword } from 'services/user'; import { getUserProfile } from 'providers/mygfw-provider/actions'; export const loginUser = createThunkAction('logUserIn', data => dispatch => login(data) .th...
import { createThunkAction } from 'utils/redux'; import { FORM_ERROR } from 'final-form'; import { login, register, resetPassword } from 'services/user'; import { getUserProfile } from 'providers/mygfw-provider/actions'; export const loginUser = createThunkAction('logUserIn', data => dispatch => login(data) .th...
Fix reset password for MyGFW
Fix reset password for MyGFW
JavaScript
mit
Vizzuality/gfw,Vizzuality/gfw
--- +++ @@ -34,11 +34,9 @@ export const resetUserPassword = createThunkAction( 'sendResetPassword', - ({ data, success }) => () => + data => () => resetPassword(data) - .then(() => { - success(); - }) + .then(() => {}) .catch(error => { const { errors } = error.respo...
a2d7e0a8af05d6ec4cc97f277041a1c9750205d8
lib/rubocop/cop/mixin/comments_help.rb
lib/rubocop/cop/mixin/comments_help.rb
# frozen_string_literal: true module RuboCop module Cop # Help methods for working with nodes containing comments. module CommentsHelp include VisibilityHelp def source_range_with_comment(node) begin_pos = begin_pos_with_comment(node) end_pos = end_position_for(node) end_...
# frozen_string_literal: true module RuboCop module Cop # Help methods for working with nodes containing comments. module CommentsHelp include VisibilityHelp def source_range_with_comment(node) begin_pos = begin_pos_with_comment(node) end_pos = end_position_for(node) end_...
Improve handling of comments in ClassMethodsDefinition autocorrection
Improve handling of comments in ClassMethodsDefinition autocorrection Previously it would take nodes that have inline comment as well, as long as a blank line to separate the node from the one that would be extracted is missing.
Ruby
mit
rrosenblum/rubocop,tejasbubane/rubocop,bbatsov/rubocop,tejasbubane/rubocop,maxjacobson/rubocop,tejasbubane/rubocop,maxjacobson/rubocop,bbatsov/rubocop,rrosenblum/rubocop,rrosenblum/rubocop,maxjacobson/rubocop
--- +++ @@ -22,16 +22,7 @@ end def begin_pos_with_comment(node) - annotation_line = node.first_line - 1 - first_comment = nil - - processed_source.comments_before_line(annotation_line) - .reverse_each do |comment| - if comment.location.line == annot...
738227496d6dd78b541ac00afe5a45fbeb9fa45e
bin/release.bat
bin/release.bat
@echo off if exist %1\web.config ( set message=Warning: We detected a Web.config in your app. This probably means that you want to use the hwc-buildpack. If you really want to use the binary-buildpack, you must specify a start command. ) else ( set message=Error: no start command specified during staging or la...
@echo off if exist %1\web.config ( set message=Warning: We detected a Web.config in your app. This probably means that you want to use the HWC Buildpack (run cf buildpacks for exact buildpack name). If you really want to use the Binary Buildpack, you must specify a start command. ) else ( set message=Error: no...
Update warning message with clear buildpack names
Update warning message with clear buildpack names [#162625493]
Batchfile
apache-2.0
cloudfoundry/binary-buildpack,rakutentech/binary-buildpack,cloudfoundry/binary-buildpack,rakutentech/binary-buildpack,rakutentech/binary-buildpack,cloudfoundry/binary-buildpack
--- +++ @@ -1,7 +1,7 @@ @echo off if exist %1\web.config ( - set message=Warning: We detected a Web.config in your app. This probably means that you want to use the hwc-buildpack. If you really want to use the binary-buildpack, you must specify a start command. + set message=Warning: We detected a Web.confi...
1b2e4c79c2f17ba30f547db7a20e509a78d2b844
lita-dig.gemspec
lita-dig.gemspec
Gem::Specification.new do |spec| spec.name = 'lita-dig' spec.version = '0.6.0' spec.authors = ['Eric Sigler'] spec.email = ['me@esigler.com'] spec.description = 'A Lita handler for resolving DNS records' spec.summary = 'A Lita handler for resolving DNS records' spec.ho...
Gem::Specification.new do |spec| spec.name = 'lita-dig' spec.version = '1.0.0' spec.authors = ['Eric Sigler'] spec.email = ['me@esigler.com'] spec.description = 'A Lita handler for resolving DNS records' spec.summary = 'A Lita handler for resolving DNS records' spec.ho...
Update gem to 1.0 for release
Update gem to 1.0 for release
Ruby
mit
esigler/lita-dig,esigler/lita-dig,brodock/lita-dig,brodock/lita-dig
--- +++ @@ -1,6 +1,6 @@ Gem::Specification.new do |spec| spec.name = 'lita-dig' - spec.version = '0.6.0' + spec.version = '1.0.0' spec.authors = ['Eric Sigler'] spec.email = ['me@esigler.com'] spec.description = 'A Lita handler for resolving DNS records'
994facc082268b590983eb72e530b8a10f193eca
LICENSE.md
LICENSE.md
/* * THE STRONGEST PUBLIC LICENSE * Draft 1, November 2010 * * Everyone is permitted to copy and distribute verbatim or modified * copies of this license document, and changing it is allowed as long * as the name is changed. * * THE STRONGEST PUBLIC LICENSE * ...
Add the license back because it's just awesome
Add the license back because it's just awesome Signed-off-by: kfei <1da1ad03e627cea4baf20871022464fcc6a4b2c4@kfei.net>
Markdown
mit
kfei/img2xterm
--- +++ @@ -0,0 +1,19 @@ +/* + * THE STRONGEST PUBLIC LICENSE + * Draft 1, November 2010 + * + * Everyone is permitted to copy and distribute verbatim or modified + * copies of this license document, and changing it is allowed as long + * as the name is changed. + * + * ...
65a53510c3526f76fe857a1566a0afd674887271
changeMacAddress.sh
changeMacAddress.sh
#!/bin/bash MAC_MACBOOK= MAC_IPHONE= SUPPORTED_DEVICES=("iPhone" "Macbook") usage() { echo "Usage: $0 ['iPhone'|'Macbook']" 1>&2; echo ""; exit 1; } isIn () { local e for e in "${@:2}"; do [[ "$e" == "$1" ]] && return 0; done return 1 } changeMacAddressTo() { DEVICE=$1 case "$DEVICE" in ...
#!/bin/bash # Please fill in below variables with your MAC addresses! MAC_MACBOOK= MAC_IPHONE= SUPPORTED_DEVICES=("iPhone" "Macbook") usage() { echo "Usage: $0 ['iPhone'|'Macbook']" 1>&2; echo ""; exit 1; } isIn () { local e for e in "${@:2}"; do [[ "$e" == "$1" ]] && return 0; done return 1 } changeMacA...
Add a comment for setting variables.
Add a comment for setting variables.
Shell
mit
iandmyhand/shellscript-utils
--- +++ @@ -1,5 +1,5 @@ #!/bin/bash - +# Please fill in below variables with your MAC addresses! MAC_MACBOOK= MAC_IPHONE= SUPPORTED_DEVICES=("iPhone" "Macbook")
3379b92218cb3c5c73b421677cb6d51c72f76d73
tests/functional/_bootstrap.php
tests/functional/_bootstrap.php
<?php /** * Here you can initialize variables that will be available to your tests. */ use Codeception\Util\Fixtures; // Define a complete, valid configuration identical to that configured in the functional suite. $mockValidModuleConfig = array( "create" => true, "delete" => true, "users" => array( ...
<?php /** * Here you can initialize variables that will be available to your tests. */ use Codeception\Util\Fixtures; // Define a complete, valid configuration identical to that configured in the functional suite. $mockValidModuleConfig = array( "create" => true, "delete" => true, "users" => array( ...
Remove module config with emails fixture
Remove module config with emails fixture
PHP
mit
chriscohen/codeception-module-drupal-user-registry,pfaocle/codeception-module-drupal-user-registry,ixis/codeception-module-drupal-user-registry
--- +++ @@ -32,16 +32,4 @@ ), "drush-alias" => "@d7.local", ); - -// Define a complete, valid configuration with email addresses for some roles. -// -// NOTE: don't use admin@example.com for the administrator test user, as the -// site we're testing against has uid 1 pre-configured with this address, and -...
090049e4fe06a9f2221a613de3b8b6926d2ca4bb
test/units/services/connections_builder_test.rb
test/units/services/connections_builder_test.rb
require "test_helper" class ConnectionsBuilderTest < ActiveSupport::TestCase setup do @organization = organizations(:ets) @provider = ConnectionsProviders::MembershipProvider.new end test "#call replaces the members" do ConnectionsBuilder.new( @organization, [users(:henry).email, users(:...
require "test_helper" class ConnectionsBuilderTest < ActiveSupport::TestCase setup do @organization = organizations(:ets) @provider = ConnectionsProviders::MembershipProvider.new @service = ConnectionsBuilder.new( @organization, [users(:henry).email, users(:clement).email], provider: @p...
Fix broken test for connection builder
Fix broken test for connection builder
Ruby
mit
maximebedard/remets,maximebedard/remets,maximebedard/remets
--- +++ @@ -4,29 +4,28 @@ setup do @organization = organizations(:ets) @provider = ConnectionsProviders::MembershipProvider.new + @service = ConnectionsBuilder.new( + @organization, + [users(:henry).email, users(:clement).email], + provider: @provider, + ) end test "#call rep...
d7fe2486b1bf113c9b96774c91adea4796f23587
drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/ClosableLabel.ui.xml
drools-guvnor/src/main/java/org/drools/guvnor/client/explorer/ClosableLabel.ui.xml
<?xml version="1.0" encoding="utf-8"?> <!-- Copyright 2010 JBoss Inc Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required ...
<?xml version="1.0" encoding="utf-8"?> <!-- Copyright 2010 JBoss Inc Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law...
Set Guvnor editors to be at least 640px width
Set Guvnor editors to be at least 640px width git-svn-id: a243bed356d289ca0d1b6d299a0597bdc4ecaa09@36426 c60d74c8-e8f6-0310-9e8f-d4a2fc68ab70
XML
apache-2.0
etirelli/guvnor,adrielparedes/guvnor,droolsjbpm/guvnor,psiroky/guvnor,psiroky/guvnor,yurloc/guvnor,porcelli-forks/guvnor,droolsjbpm/guvnor,etirelli/guvnor,mswiderski/guvnor,hxf0801/guvnor,nmirasch/guvnor,hxf0801/guvnor,porcelli-forks/guvnor,baldimir/guvnor,mbiarnes/guvnor,adrielparedes/guvnor,baldimir/guvnor,etirelli/g...
--- +++ @@ -1,30 +1,25 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- - Copyright 2010 JBoss Inc - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/lice...
f74c55596fbf4b6f386494ba7b3c9050d9e24c24
.travis.yml
.travis.yml
language: ruby rvm: - 1.8.7 - 1.9.2
language: ruby rvm: - 1.8.7 - 1.9.2 - 1.9.3 - 2.0.0
Test on some newer Rubies
Test on some newer Rubies
YAML
mit
hybridgroup/taskmapper-kanbanpad
--- +++ @@ -2,3 +2,5 @@ rvm: - 1.8.7 - 1.9.2 + - 1.9.3 + - 2.0.0
61594564532d73de76cf852ed97fa5d310b707a2
src/styles/_typography.styl
src/styles/_typography.styl
/* Variables */ blue = #125688 red = #bd0610 offwhite = #fafafa lightgrey = #EDEEED lightgray = lightgrey html font-size 10px font-family sans-serif p font-size 1.6rem line-height 1.5 h1 font-family merriweather, 'merriweatheritalic' text-align center font-weight 100 font-size 8rem margin 2rem ...
/* Variables */ blue = #125688 red = #bd0610 offwhite = #fafafa lightgrey = #EDEEED lightgray = lightgrey html font-size 10px font-family sans-serif p font-size 1.6rem line-height 1.5 h1 font-family merriweather, 'merriweatheritalic' text-align center font-weight 100 font-size 8rem margin 2rem ...
Change font size for mobile heading
Change font size for mobile heading
Stylus
mit
bigwisu/asik-sehat,bigwisu/asik-sehat
--- +++ @@ -36,3 +36,7 @@ font-weight: normal; font-style: normal; } + +@media (max-width: 500px) + h1 + font-size 5rem
b8d0138c095a4efa751ab612d712d4c5459a87fb
src/RootComponent.js
src/RootComponent.js
import React from 'react'; import Relay from 'react-relay'; import Container from './Container'; import RouteAggregator from './RouteAggregator'; export default class RootComponent extends React.Component { static displayName = 'ReactRouterRelay.RootComponent'; static propTypes = { routes: React.PropTypes.ar...
import React from 'react'; import Relay from 'react-relay'; import Container from './Container'; import RouteAggregator from './RouteAggregator'; export default class RootComponent extends React.Component { static displayName = 'ReactRouterRelay.RootComponent'; static propTypes = { location: React.PropTypes....
Use a more obvious check for transitions
Use a more obvious check for transitions
JavaScript
mit
devknoll/relay-nested-routes,relay-tools/react-router-relay
--- +++ @@ -8,7 +8,7 @@ static displayName = 'ReactRouterRelay.RootComponent'; static propTypes = { - routes: React.PropTypes.array.isRequired, + location: React.PropTypes.object.isRequired, }; static childContextTypes = { @@ -29,7 +29,7 @@ } componentWillReceiveProps(nextProps) { - i...
4fdfd60c45e4c590979aa6e2da40cd076128bd46
composer.json
composer.json
{ "name": "leroy-merlin-br/mongolid", "description": "Easy, powerful and ultrafast ODM for PHP and MongoDB.", "keywords": ["odm","mongodb","nosql"], "license": "MIT", "authors": [ { "name": "Zizaco Zizuini", "email": "zizaco@gmail.com" }, { ...
{ "name": "leroy-merlin-br/mongolid", "description": "Easy, powerful and ultrafast ODM for PHP and MongoDB.", "keywords": ["odm","mongodb","nosql"], "license": "MIT", "authors": [ { "name": "Zizaco Zizuini", "email": "zizaco@gmail.com" }, { ...
Bring version back to 2.0
Bring version back to 2.0
JSON
mit
leroy-merlin-br/mongolid
--- +++ @@ -34,7 +34,7 @@ }, "extra": { "branch-alias": { - "dev-master": "v2.1-dev" + "dev-master": "v2.0-dev" } } }
76ef9a0a2a8c9450c2e8ab50f702e655cb8b391f
database/migrations/2015_12_07_155223_populate_settings_table.php
database/migrations/2015_12_07_155223_populate_settings_table.php
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class PopulateSettingsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::table('settings')->insert(['key' => 'clearboard.sitename', 'val...
Add populate settings table database migration
Add populate settings table database migration
PHP
mit
mitchfizz05/clearboard,mitchfizz05/clearboard,clearboard/clearboard,clearboard/clearboard
--- +++ @@ -0,0 +1,32 @@ +<?php + +use Illuminate\Database\Schema\Blueprint; +use Illuminate\Database\Migrations\Migration; + +class PopulateSettingsTable extends Migration +{ + /** + * Run the migrations. + * + * @return void + */ + public function up() + { + DB::table('settings')->in...
e5caca436fb6b4b65ae2c2492ed039f34867dcd5
docs/style/highlighting.less
docs/style/highlighting.less
@import (npm) "inconsolata"; @import (npm) "code-mirror/codemirror"; pre code, pre, pre span { font-family: 'Inconsolata' monospace; font-size: 17px; overflow: auto; word-wrap: normal; white-space: pre; line-height: 1.2; } pre { padding: 4px; } .CodeMirror { font-size: 17px; font-family: 'Inconsolata...
@import (npm) "inconsolata"; @import (npm) "code-mirror/codemirror"; pre code, pre, pre span { font-family: 'Inconsolata' monospace; font-size: 17px; overflow: auto; word-wrap: normal; white-space: pre; line-height: 1.2; } pre, .code { padding: 4px; } .CodeMirror { font-size: 17px; font-family: 'Inco...
Add 4px padding for the options section too
docs/api: Add 4px padding for the options section too
Less
mit
hnag409/jade,colin-h/jade,pugjs/then-jade,Shinchy/jade,fredyteheranto/jade,cgvarela/jade,Laoujin/jade,jadejs/then-jade,omixen/jade,Mitrend/jade,Victorgichohi/jade,magicdawn/jade,pugjs/jade,ridixcr/jade,coderhaoxin/jade,angryrobot/jade,fredyteheranto/jade,webmasteraxe/jade,ceremcem/jade,ridixcr/jade,muthhus/jade,muthhus...
--- +++ @@ -9,7 +9,7 @@ white-space: pre; line-height: 1.2; } -pre { +pre, .code { padding: 4px; } .CodeMirror {
9e20647cdf8d26575334b941a16518b48aaba07c
app/views/investigations/printable_index.html.haml
app/views/investigations/printable_index.html.haml
%h1= Investigation.display_name.pluralize %table %tr %th= Investigation.display_name.pluralize %th Usage Count - @investigations.each do |investigation| %tr{:style=>"background-color: #{cycle("#FFF", "#EEE")}"} %td= investigation.name %td= investigation.offerings_count
%h1= Investigation.display_name.pluralize %table %tr %th= Investigation.display_name.pluralize %th Usage Count - @investigations.each do |investigation| %tr{:style=>"background-color: #{cycle("#FFF", "#EEE")}"} %td= investigation.name - unless session[:include_usage_count].blank? %t...
Hide usage count in print view
Hide usage count in print view
Haml
mit
concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse
--- +++ @@ -7,4 +7,5 @@ - @investigations.each do |investigation| %tr{:style=>"background-color: #{cycle("#FFF", "#EEE")}"} %td= investigation.name - %td= investigation.offerings_count+ - unless session[:include_usage_count].blank? + %td= investigation.offerings_count
c0afbca90677c404bdbef0c11394f11b9b43b0bd
.travis.yml
.travis.yml
language: python python: - 3.6 install: - pip install -r requirements.txt script: - pytest -vv playground
language: python python: - 3.6 install: - pip install -r requirements.txt - bash bin/post_compile script: - pytest -vv playground
Install yargy and natasha from git
Install yargy and natasha from git
YAML
mit
bureaucratic-labs/playground,bureaucratic-labs/playground
--- +++ @@ -3,5 +3,6 @@ - 3.6 install: - pip install -r requirements.txt + - bash bin/post_compile script: - pytest -vv playground
c7608162a4dfc500c04475cf45583f0e358d0037
packages/webdriverio/src/index.ts
packages/webdriverio/src/index.ts
import { Browser } from 'mugshot'; /** * API adapter for WebdriverIO to make working with it saner. */ export default class WebdriverIOAdapter implements Browser { private browser: WebDriver.ClientAsync & WebdriverIOAsync.Browser; constructor(browser: WebDriver.ClientAsync & WebdriverIOAsync.Browser) { this...
import { Browser } from 'mugshot'; /* istanbul ignore next because this will get stringified and sent to the browser */ function getBoundingRect(selector: string): DOMRect { // @ts-ignore because querySelector can be null and we don't // care about browsers that don't support it. return document.querySelector(se...
Fix stringified function breaking under istanbul
Fix stringified function breaking under istanbul
TypeScript
mit
uberVU/mugshot,uberVU/mugshot
--- +++ @@ -1,4 +1,11 @@ import { Browser } from 'mugshot'; + +/* istanbul ignore next because this will get stringified and sent to the browser */ +function getBoundingRect(selector: string): DOMRect { + // @ts-ignore because querySelector can be null and we don't + // care about browsers that don't support it. +...