commit
stringlengths
40
40
old_file
stringlengths
4
237
new_file
stringlengths
4
237
old_contents
stringlengths
1
4.24k
new_contents
stringlengths
5
4.84k
subject
stringlengths
15
778
message
stringlengths
16
6.86k
lang
stringlengths
1
30
license
stringclasses
13 values
repos
stringlengths
5
116k
config
stringlengths
1
30
content
stringlengths
105
8.72k
e97b4f1f06c9522eae74cb886f109e3b2dceb6f0
formats/README.md
formats/README.md
This area of repository contains different libraries with various add-on formats which were not included in the main runtime library – because they are not so popular, or they're big, or they contain other JVM runtime dependencies. For convenience, they have same groupId, versioning and release cycle as main runtime....
This area of repository contains different libraries with various add-on formats which were not included in the main runtime library – because they are not so popular, or they're big, or they contain other JVM runtime dependencies. For convenience, they have same groupId, versioning and release cycle as main runtime....
Update reference to kaml to indicate it supports serialization as well.
Update reference to kaml to indicate it supports serialization as well. This is supported as of version 0.5.
Markdown
apache-2.0
Kotlin/kotlinx.serialization,Kotlin/kotlinx.serialization
markdown
## Code Before: This area of repository contains different libraries with various add-on formats which were not included in the main runtime library – because they are not so popular, or they're big, or they contain other JVM runtime dependencies. For convenience, they have same groupId, versioning and release cycle ...
1676d741b9545fac23fb7da1a8fd07a12bb3812d
rails_event_store/spec/browser_integration_spec.rb
rails_event_store/spec/browser_integration_spec.rb
require 'spec_helper' require 'rails_event_store/middleware' require 'rack/test' require 'rack/lint' require 'support/test_application' module RailsEventStore RSpec.describe Browser do specify 'root' do request = ::Rack::MockRequest.new(app) response = request.get('/res') expect(response.body...
require 'spec_helper' require 'rails_event_store/middleware' require 'rack/test' require 'rack/lint' require 'support/test_application' module RailsEventStore RSpec.describe Browser do specify 'root' do request = ::Rack::MockRequest.new(app) response = request.get('/res') expect(response.body...
Adjust to new paging params
Adjust to new paging params [d077238b]
Ruby
mit
mpraglowski/rails_event_store,arkency/rails_event_store,arkency/rails_event_store,mpraglowski/rails_event_store,RailsEventStore/rails_event_store,RailsEventStore/rails_event_store,mpraglowski/rails_event_store,RailsEventStore/rails_event_store,arkency/rails_event_store,arkency/rails_event_store,mpraglowski/rails_event_...
ruby
## Code Before: require 'spec_helper' require 'rails_event_store/middleware' require 'rack/test' require 'rack/lint' require 'support/test_application' module RailsEventStore RSpec.describe Browser do specify 'root' do request = ::Rack::MockRequest.new(app) response = request.get('/res') expe...
afecd8c742588572113dededfa21ae77c858bb08
easy_menu.gemspec
easy_menu.gemspec
Gem::Specification.new do |s| s.name = "easy_menu" s.summary = "Simple menu bar dsl for rails 3.1 views" s.files = Dir["{app,lib,config}/**/*"] + ["MIT-LICENSE", "Gemfile", "README"] s.version = "0.2.2" s.authors = ['Nicholas Jakobsen', 'Ryan Wallace'] end
Gem::Specification.new do |s| s.name = "easy_menu" s.summary = "Simple menu bar dsl for Rails views" s.files = Dir["{app,lib,config}/**/*"] + ["MIT-LICENSE", "Gemfile", "README"] s.version = "0.2.2" s.authors = ['Nicholas Jakobsen', 'Ryan Wallace'] s.add_dependency "rails", ">= 3.1" end
Update gemspec with rails dependency.
Update gemspec with rails dependency.
Ruby
mit
culturecode/easy_menu,culturecode/easy_menu
ruby
## Code Before: Gem::Specification.new do |s| s.name = "easy_menu" s.summary = "Simple menu bar dsl for rails 3.1 views" s.files = Dir["{app,lib,config}/**/*"] + ["MIT-LICENSE", "Gemfile", "README"] s.version = "0.2.2" s.authors = ['Nicholas Jakobsen', 'Ryan Wallace'] end ## Instruction: Update gemspec with ...
43cf312c43bf768b6edba4a032668c6005a6ca29
test/phoenix/template_engine_test.exs
test/phoenix/template_engine_test.exs
defmodule Appsignal.Phoenix.TemplateEngineTest do use ExUnit.Case, async: true test "Whether the template instrumenter compiles files" do file = "test/fixtures/test.txt.eex" assert {_, _, _} = Appsignal.Phoenix.Template.EExEngine.compile(file, "test.txt") end end
defmodule Appsignal.Phoenix.TemplateEngineTest do use ExUnit.Case, async: true test "Whether the template instrumenter compiles files" do path = "test/fixtures/test.txt.eex" assert {_, _, [_, "render.phoenix_template", ^path, _]} = Appsignal.Phoenix.Template.EExEngine.compile(path, "test.txt") end ...
Add regression test for using paths in TemplateInstrumenter
Add regression test for using paths in TemplateInstrumenter
Elixir
mit
appsignal/appsignal-elixir,appsignal/appsignal-elixir,appsignal/appsignal-elixir,appsignal/appsignal-elixir
elixir
## Code Before: defmodule Appsignal.Phoenix.TemplateEngineTest do use ExUnit.Case, async: true test "Whether the template instrumenter compiles files" do file = "test/fixtures/test.txt.eex" assert {_, _, _} = Appsignal.Phoenix.Template.EExEngine.compile(file, "test.txt") end end ## Instruction: Add reg...
a72ca764b7cec03ff334fea26b5b939781488122
docker/README.md
docker/README.md
Prerequirements: * docker * docker-compose ## Starting the services `docker-compose up` This will bring up all the containers and network configuration ## Generating patch for iproute2 See Dockerfile for which branch is used to patch on top of iproute2. You might need to have tags and branches from the main upst...
Prerequirements: * docker * docker-compose ## Starting the services `docker-compose up -d --build` This will bring up all the containers and network configuration. ## Loading kernel modules (the schedulers) We do not allow kernel modules to be loaded inside the Docker containers, so they have to be compiled and l...
Add note about loading kernel modules
Add note about loading kernel modules
Markdown
mit
henrist/aqmt,henrist/aqmt,henrist/aqmt,henrist/aqmt
markdown
## Code Before: Prerequirements: * docker * docker-compose ## Starting the services `docker-compose up` This will bring up all the containers and network configuration ## Generating patch for iproute2 See Dockerfile for which branch is used to patch on top of iproute2. You might need to have tags and branches fr...
b370de88793a2f59aee61db30df6f320944d8781
src/main/java/com/github/pedrovgs/problem62/PalindromeList.java
src/main/java/com/github/pedrovgs/problem62/PalindromeList.java
/* * Copyright (C) 2014 Pedro Vicente Gómez Sánchez. * * 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 ...
/* * Copyright (C) 2014 Pedro Vicente Gómez Sánchez. * * 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 ...
Add solution to problem 62
Add solution to problem 62
Java
apache-2.0
JeffreyWei/Algorithms,pedrovgs/Algorithms,ArlenLiu/Algorithms,Ariloum/Algorithms,sridhar-newsdistill/Algorithms,VeskoI/Algorithms,mrgenco/Algorithms-1,inexistence/Algorithms,007slm/Algorithms,Arkar-Aung/Algorithms,zmywly8866/Algorithms,AppScientist/Algorithms,chengjinqian/Algorithms,jibaro/Algorithms,zhdh2008/Algorithm...
java
## Code Before: /* * Copyright (C) 2014 Pedro Vicente Gómez Sánchez. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
f4e697375c27ac1223dd0ef1503cf019e0614b5f
_drafts/YYYY-MM-DD-meetup.md
_drafts/YYYY-MM-DD-meetup.md
--- layout: meetup title: author: categories: - posts - meetups when: 2020-04-01T19:30:00-05:00 speakers: - name: title: picUrl: bio: url: twitter: github: linkedin: sponsor: key: hiring: venue: key: after: key: --- {REPLACE WITH MEETING AGENDA/CONTENT}
--- layout: meetup title: author: categories: - posts - meetups when: 2020-04-01T19:30:00-05:00 speakers: - name: title: picUrl: bio: url: twitter: github: linkedin: email: sponsor: key: hiring: venue: key: after: key: --- {REPLACE WITH MEETING AGENDA/CONTENT}
Add email to front matter draft
Add email to front matter draft
Markdown
mit
austinjavascript/austinjavascript.github.io,austinjavascript/austinjavascript.github.io,austinjavascript/austinjavascript.github.io,austinjavascript/austinjavascript.github.io,austinjavascript/austinjavascript.github.io
markdown
## Code Before: --- layout: meetup title: author: categories: - posts - meetups when: 2020-04-01T19:30:00-05:00 speakers: - name: title: picUrl: bio: url: twitter: github: linkedin: sponsor: key: hiring: venue: key: after: key: --- {REPLACE WITH MEETING AGENDA/CONTENT} ## Instruc...
fc81c225801101221d308f300d2491a39d2db22e
frontend/reducers/promoteModal.js
frontend/reducers/promoteModal.js
import * as CONST from '../constants/actionTypes'; const initialState = { open: false }; export default function promoteModal(state = initialState, action) { switch (action.type) { case CONST.SHOW_PROMOTE_MODAL: return { open: true }; case CONST.HIDE_PROMOTE_MODAL: return { open: false }; default: ...
import * as CONST from '../constants/actionTypes'; const initialState = { open: false, piece: undefined }; export default function promoteModal(state = initialState, action) { switch (action.type) { case CONST.SHOW_PROMOTE_MODAL: return { open: true, piece: action.piece }; case CONST.HIDE_PROMOTE_MODAL: ...
Update reducer properties, allow `piece` key.
Update reducer properties, allow `piece` key. * the `piece` is the target promote or not.
JavaScript
mit
mgi166/usi-front,mgi166/usi-front
javascript
## Code Before: import * as CONST from '../constants/actionTypes'; const initialState = { open: false }; export default function promoteModal(state = initialState, action) { switch (action.type) { case CONST.SHOW_PROMOTE_MODAL: return { open: true }; case CONST.HIDE_PROMOTE_MODAL: return { open: false }...
fa1bcd93bb50dfed00a56e908270a1338ca36b67
src/xmlWriter.js
src/xmlWriter.js
/* global jasmineImporter */ const {GLib} = imports.gi; const Utils = jasmineImporter.utils; function Node(name) { this.name = name; this.attrs = {}; this.children = []; this.text = ''; } function _attrsToString(attrs) { return Object.keys(attrs).map(key => { const value = attrs[key].toS...
/* global jasmineImporter */ /* exported Node */ const {GLib} = imports.gi; const Utils = jasmineImporter.utils; var Node = class Node { constructor(name) { this.name = name; this.attrs = {}; this.children = []; this.text = ''; } toString() { return `<?xml version...
Change XMLWriter.Node to an ES6 class
Change XMLWriter.Node to an ES6 class This was still using the old way without syntactic sugar.
JavaScript
mit
ptomato/jasmine-gjs,ptomato/jasmine-gjs
javascript
## Code Before: /* global jasmineImporter */ const {GLib} = imports.gi; const Utils = jasmineImporter.utils; function Node(name) { this.name = name; this.attrs = {}; this.children = []; this.text = ''; } function _attrsToString(attrs) { return Object.keys(attrs).map(key => { const value ...
5f718aece5abe7dc8d729a41d11ca43629824bf2
app/views/actionpark/dashboard/index.html.erb
app/views/actionpark/dashboard/index.html.erb
<%= form_tag("/dashboard", method: "get") do %> <%= label_tag(:user_id, "User ID") %> <%= text_field_tag(:user_id) %> <%= submit_tag("Filter Actions") %> <% end %> <ul> <% for request in @requests %> <li><%= request.user_id %> loaded <%= request.action_name %> <%= request.controller_name %></li> <% end %>...
<%= form_tag("/dashboard", method: "get") do %> <%= label_tag(:user_id, "User ID") %> <%= text_field_tag(:user_id) %> <%= submit_tag("Filter Actions") %> <% end %> <table> <tr> <th>User ID</th> <th>Action</th> <th>Controller</th> <th>When</th> </tr> <% for request in @requests %> <tr> ...
Convert the list of requests into a table
Convert the list of requests into a table
HTML+ERB
mit
bmulholland/actionpark,bmulholland/actionpark
html+erb
## Code Before: <%= form_tag("/dashboard", method: "get") do %> <%= label_tag(:user_id, "User ID") %> <%= text_field_tag(:user_id) %> <%= submit_tag("Filter Actions") %> <% end %> <ul> <% for request in @requests %> <li><%= request.user_id %> loaded <%= request.action_name %> <%= request.controller_name %><...
0970917faa0c9a331aa41d8912ccbd25316ec104
spec/travis/addons/email/instruments/event_handler_spec.rb
spec/travis/addons/email/instruments/event_handler_spec.rb
require 'spec_helper' describe Travis::Addons::Email::Instruments::EventHandler do include Travis::Testing::Stubs let(:build) { stub_build(state: :failed) } let(:subject) { Travis::Addons::Email::EventHandler } let(:publisher) { Travis::Notification::Publisher::Memory.new } let(:event) { publisher...
require 'spec_helper' describe Travis::Addons::Email::Instruments::EventHandler do include Travis::Testing::Stubs let(:build) { stub_build(state: :failed, repository: repository, on_default_branch?: true) } let(:subject) { Travis::Addons::Email::EventHandler } let(:publisher) { Travis::Notification::Publi...
Add enough stubs to instruments spec
Add enough stubs to instruments spec
Ruby
mit
final-ci/travis-core,travis-ci/travis-core,Tiger66639/travis-core,final-ci/travis-core,Tiger66639/travis-core,travis-ci/travis-core,developerfm/travis-core,Tiger66639/travis-core,final-ci/travis-core,kidaa/travis-core,travis-ci/travis-core,GistIcon/travis-core,developerfm/travis-core,jantman/travis-core,GistIcon/travis...
ruby
## Code Before: require 'spec_helper' describe Travis::Addons::Email::Instruments::EventHandler do include Travis::Testing::Stubs let(:build) { stub_build(state: :failed) } let(:subject) { Travis::Addons::Email::EventHandler } let(:publisher) { Travis::Notification::Publisher::Memory.new } let(:event)...
fb33fa9fef21bbe1e8d2d82dd986b69f8c3bdb64
jp-holidays.py
jp-holidays.py
import requests u = 'http://www.google.com/calendar/feeds/ja.japanese%23holiday@group.v.calendar.google.com/public/full?alt=json&max-results=100&futureevents=true' data = requests.get(u).json() print data.get('feed').get('title').get('$t') for item in data.get('feed').get('entry'): # gd$when # 'title']['$t']...
import requests import sys u = 'http://www.google.com/calendar/feeds/ja.japanese%23holiday@group.v.calendar.google.com/public/full' params = { 'alt': 'json', 'max-results': 100, 'futureevents': 'true' } res = requests.get(u, params=params) res.raise_for_status() data = res.json() print data.get('feed')....
Use dict for uri params.
Use dict for uri params.
Python
mit
shoma/python.tools
python
## Code Before: import requests u = 'http://www.google.com/calendar/feeds/ja.japanese%23holiday@group.v.calendar.google.com/public/full?alt=json&max-results=100&futureevents=true' data = requests.get(u).json() print data.get('feed').get('title').get('$t') for item in data.get('feed').get('entry'): # gd$when ...
4f061948de9c6c1c57badf30562f348d0643b16d
.travis.yml
.travis.yml
language: node_js node_js: - "0.11" - "0.10" - "0.8" before_install: - sudo pip install cpp-coveralls coveralls-merge install: - LDFLAGS=--coverage CFLAGS=--coverage CXXFLAGS=--coverage npm install script: - ./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R ...
language: node_js node_js: - "0.11" - "0.10" - "0.8" env: - CXXFLAGS=-std=c++98 CXX=g++ CC=gcc - CXXFLAGS=-std=c++0x CXX=g++ CC=gcc - CXXFLAGS=-std=c++98 CXX=clang++ CC=clang - CXXFLAGS=-std=c++0x CXX=clang++ CC=clang before_install: - sudo pip install cpp-coveralls coveralls-merge - sudo add-apt-repo...
Add clang to build matrix
Add clang to build matrix
YAML
mit
addaleax/lzma-native,addaleax/lzma-native,addaleax/lzma-native,addaleax/lzma-native
yaml
## Code Before: language: node_js node_js: - "0.11" - "0.10" - "0.8" before_install: - sudo pip install cpp-coveralls coveralls-merge install: - LDFLAGS=--coverage CFLAGS=--coverage CXXFLAGS=--coverage npm install script: - ./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report...
d10f87fee4eac91d21f8aac7f2b219ff1df1083c
lib/carto/connector/providers/postgresql.rb
lib/carto/connector/providers/postgresql.rb
require_relative './odbc' module Carto class Connector # PostgreSQL provider using [psqlODBC](https://odbc.postgresql.org/) driver # # For complete list of parameters, see these references: # * https://odbc.postgresql.org/docs/config-opt.html # * https://git.postgresql.org/gitweb/?p=psqlodbc.gi...
require_relative './odbc' module Carto class Connector # PostgreSQL provider using [psqlODBC](https://odbc.postgresql.org/) driver # # For complete list of parameters, see these references: # * https://odbc.postgresql.org/docs/config-opt.html # * https://git.postgresql.org/gitweb/?p=psqlodbc.gi...
Add sslmode to PG connector
Add sslmode to PG connector
Ruby
bsd-3-clause
CartoDB/cartodb,splashblot/dronedb,CartoDB/cartodb,splashblot/dronedb,CartoDB/cartodb,CartoDB/cartodb,splashblot/dronedb,splashblot/dronedb,CartoDB/cartodb,splashblot/dronedb
ruby
## Code Before: require_relative './odbc' module Carto class Connector # PostgreSQL provider using [psqlODBC](https://odbc.postgresql.org/) driver # # For complete list of parameters, see these references: # * https://odbc.postgresql.org/docs/config-opt.html # * https://git.postgresql.org/gitwe...
1dcb440b82776b71601295fba37a013966f38b32
project/profiles/templates/profiles/profile_detail.html
project/profiles/templates/profiles/profile_detail.html
{% extends "default.html" %} {% block default_content %} <div class="jumbotron"> {% if not profile.user.team_set.all.exists %} <div class="pull-right"> <p> <span class="label label-success"> Needs a team!&nbsp;&nbsp;<i class="fa fa-lightbulb-o"></i> </span> </p> </div> {% endif %} ...
{% extends "default.html" %} {% block default_content %} <div class="jumbotron"> {% if not profile.user.team_set.all.exists %} <div class="pull-right"> <p> <span class="label label-success"> Needs a team!&nbsp;&nbsp;<i class="fa fa-lightbulb-o"></i> </span> </p> </div> {% endif %} ...
Add 'edit' link to profile detail page
Add 'edit' link to profile detail page
HTML
mit
compsci-hfh/app,jonsimington/app,jonsimington/app,compsci-hfh/app
html
## Code Before: {% extends "default.html" %} {% block default_content %} <div class="jumbotron"> {% if not profile.user.team_set.all.exists %} <div class="pull-right"> <p> <span class="label label-success"> Needs a team!&nbsp;&nbsp;<i class="fa fa-lightbulb-o"></i> </span> </p> </div>...
9ef0d5220eb9ebd9044b935b62a02b35024f9686
test/config/main.cc
test/config/main.cc
DEFINE_string(message, "Hello World!", "The message to print"); int main(int argc, char **argv) { gflags::SetUsageMessage("Test CMake configuration of gflags library (gflags-config.cmake)"); gflags::ParseCommandLineFlags(&argc, &argv, true); std::cout << FLAGS_message << std::endl; gflags::ShutDownCommandLine...
DEFINE_string(message, "Hello World!", "The message to print"); static bool ValidateMessage(const char* flagname, const std::string &message) { return !message.empty(); } DEFINE_validator(message, ValidateMessage); int main(int argc, char **argv) { gflags::SetUsageMessage("Test CMake configuration of gflags libr...
Add usage of DEFINE_validator to test project
enh: Add usage of DEFINE_validator to test project
C++
bsd-3-clause
schuhschuh/gflags,fuchsia-mirror/third_party-gflags,n054/gflags,n054/gflags,fuchsia-mirror/third_party-gflags,gflags/gflags,n054/gflags,gflags/gflags,schuhschuh/gflags,gflags/gflags,fuchsia-mirror/third_party-gflags,schuhschuh/gflags,n054/gflags,gflags/gflags,schuhschuh/gflags,fuchsia-mirror/third_party-gflags
c++
## Code Before: DEFINE_string(message, "Hello World!", "The message to print"); int main(int argc, char **argv) { gflags::SetUsageMessage("Test CMake configuration of gflags library (gflags-config.cmake)"); gflags::ParseCommandLineFlags(&argc, &argv, true); std::cout << FLAGS_message << std::endl; gflags::Shu...
1d29ceca0ac37d881d3755ff65bb11b73d9516a2
mycroft/res/ui/SYSTEM_TextFrame.qml
mycroft/res/ui/SYSTEM_TextFrame.qml
import QtQuick.Layouts 1.4 import QtQuick 2.4 import QtQuick.Controls 2.0 import org.kde.kirigami 2.4 as Kirigami import Mycroft 1.0 as Mycroft Mycroft.ProportionalDelegate { id: systemTextFrame skillBackgroundColorOverlay: "#000000" property bool hasTitle: sessionData.title.length > 0 ? true : false ...
import QtQuick.Layouts 1.4 import QtQuick 2.4 import QtQuick.Controls 2.0 import org.kde.kirigami 2.4 as Kirigami import Mycroft 1.0 as Mycroft Mycroft.Delegate { id: systemTextFrame skillBackgroundColorOverlay: "#000000" property bool hasTitle: sessionData.title.length > 0 ? true : false Compone...
Use the correct delegate and fix layouts
Use the correct delegate and fix layouts
QML
apache-2.0
MycroftAI/mycroft-core,forslund/mycroft-core,forslund/mycroft-core,MycroftAI/mycroft-core
qml
## Code Before: import QtQuick.Layouts 1.4 import QtQuick 2.4 import QtQuick.Controls 2.0 import org.kde.kirigami 2.4 as Kirigami import Mycroft 1.0 as Mycroft Mycroft.ProportionalDelegate { id: systemTextFrame skillBackgroundColorOverlay: "#000000" property bool hasTitle: sessionData.title.length > 0 ? t...
393e46f0b2bc412821b57663b8e9ef4696a7b86a
pkgs/development/libraries/mlt/default.nix
pkgs/development/libraries/mlt/default.nix
{stdenv, fetchurl, SDL, qt, pkgconfig, ffmpeg, libdv, libxml2, libsamplerate, libvorbis, sox}: stdenv.mkDerivation { name = "mlt-0.6.2"; src = fetchurl { url = mirror://sourceforge/mlt/mlt-0.6.2.tar.gz; sha256 = "0rvyblxyp52mdjl4aicrk16k56yb24ic4ir3n145cxdarwi98r7i"; }; buildInputs = [ qt SDL ffmpeg ...
{stdenv, fetchurl, SDL, qt, pkgconfig, ffmpeg, libdv, libxml2, libsamplerate, libvorbis, sox}: stdenv.mkDerivation { name = "mlt-0.7.4"; src = fetchurl { url = mirror://sourceforge/mlt/mlt-0.7.4.tar.gz; sha256 = "1xcrrd3xbz9hmahgl7xf610cm97chwpxwgcajkd10mpcxbqs08i0"; }; buildInputs = [ qt SDL ffmpeg ...
Advance version of mlt; prior version no longer builds.
Advance version of mlt; prior version no longer builds. svn path=/nixpkgs/trunk/; revision=28161
Nix
mit
triton/triton,NixOS/nixpkgs,triton/triton,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,triton/triton,NixOS/nixpkgs,triton/triton,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,triton/triton,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/ni...
nix
## Code Before: {stdenv, fetchurl, SDL, qt, pkgconfig, ffmpeg, libdv, libxml2, libsamplerate, libvorbis, sox}: stdenv.mkDerivation { name = "mlt-0.6.2"; src = fetchurl { url = mirror://sourceforge/mlt/mlt-0.6.2.tar.gz; sha256 = "0rvyblxyp52mdjl4aicrk16k56yb24ic4ir3n145cxdarwi98r7i"; }; buildInputs = ...
a7c3cfa451a81d8e323a6818a7fdf51fb0211199
.travis.yml
.travis.yml
language: python python: 3.4 sudo: false cache: directories: - ~/.cache/pip env: - TOXENV=py34 TOXARGS="-- --dbfixtures-config .travis/dbfixtures.conf" - TOXENV=pep8 - TOXENV=docs - TOXENV=packaging - TOXENV=translations install: pip install -U pip wheel tox codecov script: tox $TOXARGS after_succ...
language: python python: 3.4 dist: trusty sudo: false cache: directories: - ~/.cache/pip env: - TOXENV=py34 TOXARGS="-- --dbfixtures-config .travis/dbfixtures.conf" - TOXENV=pep8 - TOXENV=docs - TOXENV=packaging - TOXENV=translations install: pip install -U pip wheel tox codecov script: tox $TOXAR...
Switch to trusty instead of precise
Switch to trusty instead of precise
YAML
apache-2.0
pypa/warehouse,dstufft/warehouse,karan/warehouse,dstufft/warehouse,ismail-s/warehouse,ismail-s/warehouse,wlonk/warehouse,pypa/warehouse,HonzaKral/warehouse,wlonk/warehouse,wlonk/warehouse,pypa/warehouse,alex/warehouse,karan/warehouse,ismail-s/warehouse,dstufft/warehouse,karan/warehouse,pypa/warehouse,dstufft/warehouse,...
yaml
## Code Before: language: python python: 3.4 sudo: false cache: directories: - ~/.cache/pip env: - TOXENV=py34 TOXARGS="-- --dbfixtures-config .travis/dbfixtures.conf" - TOXENV=pep8 - TOXENV=docs - TOXENV=packaging - TOXENV=translations install: pip install -U pip wheel tox codecov script: tox $TOX...
08ec212b6903bd8ba28206dd44525aef37756976
app/system/trigger/impl/push.coffee
app/system/trigger/impl/push.coffee
Bacon = require 'baconjs' router = require '../../../router' module.exports = (config) -> bus = new Bacon.Bus url = if config.url? then "/repo/poll/#{url}" else '/repo/poll' router.api.post url, (req, res) -> bus.push reason: "request from #{req.ip}" bus.toEventStream()
Bacon = require 'baconjs' router = require '../../../router' module.exports = (config) -> bus = new Bacon.Bus url = if config.url? then "/repo/poll/#{url}" else '/repo/poll' router.api.post url, (req, res) -> bus.push reason: "request from #{req.ip}" res.sendStatus 202 bus.toEventStream()
Make sure `/repo/poll` endpoint sends a response
Make sure `/repo/poll` endpoint sends a response
CoffeeScript
mit
baffles/awesome-build
coffeescript
## Code Before: Bacon = require 'baconjs' router = require '../../../router' module.exports = (config) -> bus = new Bacon.Bus url = if config.url? then "/repo/poll/#{url}" else '/repo/poll' router.api.post url, (req, res) -> bus.push reason: "request from #{req.ip}" bus.toEventStream() ## Instruction: Make sur...
7b3612dde0d2e6a5afdb66310aa35f71deef28eb
README.md
README.md
Collection of some of my dot files. Feel free to copy, suggest something different or ignore them :-)
Collection of some of my dot files: * .bash_profile * .bashrc * .gitconfig Feel free to copy, suggest something different or ignore them :-)
Add list of configuraton files
Add list of configuraton files
Markdown
mit
gl051/dot-files
markdown
## Code Before: Collection of some of my dot files. Feel free to copy, suggest something different or ignore them :-) ## Instruction: Add list of configuraton files ## Code After: Collection of some of my dot files: * .bash_profile * .bashrc * .gitconfig Feel free to copy, suggest something different or ignore them...
07bec7db879aee92316570770316857417636207
addons/hr_payroll_account/wizard/hr_payroll_payslips_by_employees.py
addons/hr_payroll_account/wizard/hr_payroll_payslips_by_employees.py
from odoo import api, models class HrPayslipEmployees(models.TransientModel): _inherit = 'hr.payslip.employees' @api.multi def compute_sheet(self): journal_id = False if self.env.context.get('active_id'): journal_id = self.env['hr.payslip.run'].browse(self.env.context.get('act...
from odoo import api, models class HrPayslipEmployees(models.TransientModel): _inherit = 'hr.payslip.employees' @api.multi def compute_sheet(self): if self.env.context.get('active_id'): journal_id = self.env['hr.payslip.run'].browse(self.env.context.get('active_id')).journal_id.id ...
Remove journal_id: False in context
[FIX] hr_payroll_account: Remove journal_id: False in context If the wizard to generate payslip was launched without an ´active_id´ in the context. A ´journal_id´ entry was set to False in the context later leading to a crash at payslip creation. The crash happens because, at creation time, the journal_id of a ´hr.pay...
Python
agpl-3.0
ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo
python
## Code Before: from odoo import api, models class HrPayslipEmployees(models.TransientModel): _inherit = 'hr.payslip.employees' @api.multi def compute_sheet(self): journal_id = False if self.env.context.get('active_id'): journal_id = self.env['hr.payslip.run'].browse(self.env....
f42f7d657b0fda84aa0e84310c999a09c0d60c15
README.md
README.md
fidemo ====== FIWARE Demo / Integration project How things work --------------- This repository is for a runtime of the demo: a way to run the code and ability to work on the assets. Attempts to use a typical sane dir structure -- current is: data/ -- for models and all related such as materials, textures etc js/...
fidemo ====== FIWARE Demo / Integration project How things work --------------- This repository is for a runtime of the demo: a way to run the code and ability to work on the assets. Attempts to use a typical sane dir structure -- current is: data/ -- for models and all related such as materials, textures etc js/...
Update instructions how to run local Tundra server with realXtend, Meshmoon and FIWARE distros.
Update instructions how to run local Tundra server with realXtend, Meshmoon and FIWARE distros.
Markdown
mit
playsign/fidemo,playsign/fidemo
markdown
## Code Before: fidemo ====== FIWARE Demo / Integration project How things work --------------- This repository is for a runtime of the demo: a way to run the code and ability to work on the assets. Attempts to use a typical sane dir structure -- current is: data/ -- for models and all related such as materials, t...
848929741cb1e2561bf3f2dbb40cfd9adbd2b0ce
lib/veeqo/resources/company.rb
lib/veeqo/resources/company.rb
module Veeqo class Company < Resource include Veeqo::Request.new 'current_company' property :id property :name property :created_at property :updated_at property :card_valid property :stripe_customer_id property :has_right_to_use_veeqo property :subscription_status property :...
module Veeqo class Company < Resource include Veeqo::Request.new 'current_company' property :id property :name property :created_at property :updated_at property :card_valid property :stripe_customer_id property :has_right_to_use_veeqo property :subscription_status property :...
Change check connection to receive connection on params
Change check connection to receive connection on params
Ruby
mit
coaxsoft/veeqo_api_ruby,coaxsoft/veeqo_api_ruby
ruby
## Code Before: module Veeqo class Company < Resource include Veeqo::Request.new 'current_company' property :id property :name property :created_at property :updated_at property :card_valid property :stripe_customer_id property :has_right_to_use_veeqo property :subscription_statu...
1e734243ea2f0358203fd30704441279d8bbff22
forrest.properties
forrest.properties
project.name=forrest #project.skin=forrest-site #project.skin=krysalis-site #project.skin=avalon-tigris
project.name=forrest #project.skin=forrest-site #project.skin=krysalis-site #project.skin=avalon-tigris forrest.validate.xdocs.excludes=*.dtdx.xml
Fix 5941 validation errors reported by validate-site :-) If someone wants to fix these, then see flat2document.xsl
Fix 5941 validation errors reported by validate-site :-) If someone wants to fix these, then see flat2document.xsl git-svn-id: fea306228a0c821168c534b698c8fa2a33280b3b@8616 13f79535-47bb-0310-9956-ffa450edef68
INI
apache-2.0
apache/forrest,apache/forrest,apache/forrest,apache/forrest,apache/forrest,apache/forrest
ini
## Code Before: project.name=forrest #project.skin=forrest-site #project.skin=krysalis-site #project.skin=avalon-tigris ## Instruction: Fix 5941 validation errors reported by validate-site :-) If someone wants to fix these, then see flat2document.xsl git-svn-id: fea306228a0c821168c534b698c8fa2a33280b3b@8616 13f7953...
75ab303aaa79910f6079906872e54ce7ba145d25
src/CMakeLists.txt
src/CMakeLists.txt
project(google_breakpad) IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") add_subdirectory("client/mac/handler") ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
project(google_breakpad) IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") set(CMAKE_OSX_SYSROOT /Developer/SDKs/MacOSX10.4u.sdk) set(CMAKE_OSX_DEPLOYMENT_TARGET 10.4) set(CMAKE_XCODE_ATTRIBUTE_GCC_VERSION "4.0") set(CMAKE_OSX_ARCHITECTURES i386) set(CMAKE_CXX_COMPILER "g++-4.0") set(CMAKE_CXX_FLAGS ...
Use gcc/g++ 4.0 for build compatibility.
Use gcc/g++ 4.0 for build compatibility.
Text
bsd-3-clause
AlericInglewood/3p-google-breakpad,AlericInglewood/3p-google-breakpad,AlericInglewood/3p-google-breakpad,AlericInglewood/3p-google-breakpad,AlericInglewood/3p-google-breakpad,AlericInglewood/3p-google-breakpad,AlericInglewood/3p-google-breakpad
text
## Code Before: project(google_breakpad) IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") add_subdirectory("client/mac/handler") ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") ## Instruction: Use gcc/g++ 4.0 for build compatibility. ## Code After: project(google_breakpad) IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") ...
b970f230864b40eaddb8e5faa76538c9f8e5c59c
txircd/modules/rfc/cmd_userhost.py
txircd/modules/rfc/cmd_userhost.py
from twisted.plugin import IPlugin from twisted.words.protocols import irc from txircd.module_interface import Command, ICommand, IModuleData, ModuleData from zope.interface import implements class UserhostCommand(ModuleData, Command): implements(IPlugin, IModuleData, ICommand) name = "UserhostCommand" core = Tru...
from twisted.plugin import IPlugin from twisted.words.protocols import irc from txircd.module_interface import Command, ICommand, IModuleData, ModuleData from zope.interface import implements class UserhostCommand(ModuleData, Command): implements(IPlugin, IModuleData, ICommand) name = "UserhostCommand" core = Tru...
Add affected users to userhasoperpermission call in USERHOST
Add affected users to userhasoperpermission call in USERHOST
Python
bsd-3-clause
Heufneutje/txircd,ElementalAlchemist/txircd
python
## Code Before: from twisted.plugin import IPlugin from twisted.words.protocols import irc from txircd.module_interface import Command, ICommand, IModuleData, ModuleData from zope.interface import implements class UserhostCommand(ModuleData, Command): implements(IPlugin, IModuleData, ICommand) name = "UserhostComm...
50dd1682ddd874fca2e5ada33eebb0acda9c341b
setenv.bat
setenv.bat
@ECHO OFF PUSHD %~DP0 SET CURDIR=%CD% PUSHD .. SET TOPDIR=%CD% POPD POPD SET GDAL_ROOT=%TOPDIR%\OSGeo4W SET GDAL_PAM_PROXY_DIR=%TEMP% SET GDAL_DATA=%GDAL_ROOT%\apps\gdal-16\share\gdal SET GEOTIFF_CSV=%GDAL_ROOT%\share\epsg_csv SET PROJ_LIB=%GDAL_ROOT%\share\proj SET GDAL_DRIVER_PATH=%GDAL_ROOT%\apps\gdal...
@ECHO OFF PUSHD %~DP0 SET CURDIR=%CD% PUSHD .. SET TOPDIR=%CD% POPD POPD SET GDAL_ROOT=%TOPDIR%\bin\gdal SET GDAL_PAM_PROXY_DIR=%TEMP% SET GDAL_DATA=%GDAL_ROOT%\share\gdal-data SET GEOTIFF_CSV=%GDAL_DATA% SET PROJ_LIB=%GDAL_ROOT%\share\proj SET GDAL_DRIVER_PATH=%GDAL_ROOT%\bin\plugins SET PYTHONHOME=%...
Update paths to GDAL 1.7.1 and Python 2.6
Update paths to GDAL 1.7.1 and Python 2.6
Batchfile
mit
ssutee/metageta,NikosAlexandris/metageta,lpinner/metageta,simonaoliver/metageta,NikosAlexandris/metageta
batchfile
## Code Before: @ECHO OFF PUSHD %~DP0 SET CURDIR=%CD% PUSHD .. SET TOPDIR=%CD% POPD POPD SET GDAL_ROOT=%TOPDIR%\OSGeo4W SET GDAL_PAM_PROXY_DIR=%TEMP% SET GDAL_DATA=%GDAL_ROOT%\apps\gdal-16\share\gdal SET GEOTIFF_CSV=%GDAL_ROOT%\share\epsg_csv SET PROJ_LIB=%GDAL_ROOT%\share\proj SET GDAL_DRIVER_PATH=%GDAL_ROOT%\apps\g...
c3e2c6f77dffc2ff5874c1bb495e6de119800cf4
rx/core/observable/merge.py
rx/core/observable/merge.py
import rx from rx import operators as ops from rx.core import Observable def _merge(*args) -> Observable: """Merges all the observable sequences into a single observable sequence. 1 - merged = rx.merge(xs, ys, zs) 2 - merged = rx.merge([xs, ys, zs]) Returns: The observable sequence that...
from typing import Iterable, Union import rx from rx import operators as ops from rx.core import Observable def _merge(*args: Union[Observable, Iterable[Observable]]) -> Observable: """Merges all the observable sequences into a single observable sequence. 1 - merged = rx.merge(xs, ys, zs) 2 - merge...
Fix typing and accept iterable instead of list
Fix typing and accept iterable instead of list
Python
mit
ReactiveX/RxPY,ReactiveX/RxPY
python
## Code Before: import rx from rx import operators as ops from rx.core import Observable def _merge(*args) -> Observable: """Merges all the observable sequences into a single observable sequence. 1 - merged = rx.merge(xs, ys, zs) 2 - merged = rx.merge([xs, ys, zs]) Returns: The observab...
d91bb710d6904008aa9cde435928e2ab690f83db
spec/acceptance/init_task_spec.rb
spec/acceptance/init_task_spec.rb
require 'spec_helper_acceptance' describe 'apt tasks' do describe 'update and upgrade', if: pe_install? && puppet_version =~ %r{(5\.\d\.\d)} && fact_on(master, 'osfamily') == 'Debian' do it 'execute arbitary sql' do result = run_task(task_name: 'apt', params: 'action=update') expect_multiple_regexes(...
require 'spec_helper_acceptance' describe 'apt tasks', if: pe_install? && puppet_version =~ %r{(5\.\d\.\d)} && fact_on(master, 'osfamily') == 'Debian' do describe 'update' do it 'updates package lists' do result = run_task(task_name: 'apt', params: 'action=update') expect_multiple_regexes(result: res...
Add tests for new apt actions
Add tests for new apt actions
Ruby
apache-2.0
puppetlabs/puppetlabs-apt
ruby
## Code Before: require 'spec_helper_acceptance' describe 'apt tasks' do describe 'update and upgrade', if: pe_install? && puppet_version =~ %r{(5\.\d\.\d)} && fact_on(master, 'osfamily') == 'Debian' do it 'execute arbitary sql' do result = run_task(task_name: 'apt', params: 'action=update') expect_m...
17066e6e9f9e0bfa25be61e58309e09618633111
README.md
README.md
Welcome. Here you can find the first steps you need to understand and to work with [DragonNode.js](http://github.com/dragonnodejs/dragonnodejs). - [Chapter0 - The "non structured" way](chapter0) - [Chapter1 - The structure of an application](chapter1) - [Chapter2 - The "Hello World!" with express](chapter2) - [Chapter...
Welcome. Here you can find the first steps you need to understand and to work with [DragonNode.js](http://github.com/dragonnodejs/dragonnodejs). - [Chapter0 - The "non structured" way](chapter0) - [Chapter1 - The structure of an application](chapter1) - [Chapter2 - The "Hello World!" with express](chapter2) - [Chapter...
Move the "feel free to share ... with me" to the end
Move the "feel free to share ... with me" to the end
Markdown
mit
dragonnodejs/getting-started
markdown
## Code Before: Welcome. Here you can find the first steps you need to understand and to work with [DragonNode.js](http://github.com/dragonnodejs/dragonnodejs). - [Chapter0 - The "non structured" way](chapter0) - [Chapter1 - The structure of an application](chapter1) - [Chapter2 - The "Hello World!" with express](chap...
262a8fe3651a4ad368fd6594cba0669267c2d225
run_deploy_job_wr.py
run_deploy_job_wr.py
import json import os from os.path import join import subprocess import sys from tempfile import NamedTemporaryFile def main(): revision_build = os.environ['revision_build'] job_name = os.environ['JOB_NAME'] build_number = os.environ['BUILD_NUMBER'] prefix = 'juju-ci/products/version-{}/{}/build-{}'.f...
import json import os from os.path import join import subprocess import sys from tempfile import NamedTemporaryFile def main(): revision_build = os.environ['revision_build'] job_name = os.environ['JOB_NAME'] build_number = os.environ['BUILD_NUMBER'] prefix = 'juju-ci/products/version-{}/{}/build-{}'.f...
Add *.json to the list of artifacts backed up by Workspace Runner.
Add *.json to the list of artifacts backed up by Workspace Runner.
Python
agpl-3.0
mjs/juju,mjs/juju,mjs/juju,mjs/juju,mjs/juju,mjs/juju,mjs/juju
python
## Code Before: import json import os from os.path import join import subprocess import sys from tempfile import NamedTemporaryFile def main(): revision_build = os.environ['revision_build'] job_name = os.environ['JOB_NAME'] build_number = os.environ['BUILD_NUMBER'] prefix = 'juju-ci/products/version-{...
2a5562dbe235f074335b890589be07b4f835a610
Source/Extensions/ViewController/UIViewControllerExtensionInitialization.swift
Source/Extensions/ViewController/UIViewControllerExtensionInitialization.swift
// // UIViewControllerExtensionInitialization.swift // Visuality // // Created by Igor Matyushkin on 23.10.15. // Copyright © 2015 Igor Matyushkin. All rights reserved. // import Foundation import UIKit public extension UIViewController { // MARK: Public class methods /** Creates new instan...
// // UIViewControllerExtensionInitialization.swift // Visuality // // Created by Igor Matyushkin on 23.10.15. // Copyright © 2015 Igor Matyushkin. All rights reserved. // import Foundation import UIKit public extension UIViewController { // MARK: Public class methods /** Creates new instan...
Load view immediately when instantiating new view controller
Load view immediately when instantiating new view controller
Swift
mit
igormatyushkin014/Visuality,igormatyushkin014/Visuality
swift
## Code Before: // // UIViewControllerExtensionInitialization.swift // Visuality // // Created by Igor Matyushkin on 23.10.15. // Copyright © 2015 Igor Matyushkin. All rights reserved. // import Foundation import UIKit public extension UIViewController { // MARK: Public class methods /** Cr...
e1b04570ca2076367b59e6d38580f98c9441b104
lib/neo4j/ansi.rb
lib/neo4j/ansi.rb
module ANSI CLEAR = "\e[0m" BOLD = "\e[1m" RED = "\e[31m" GREEN = "\e[32m" YELLOW = "\e[33m" BLUE = "\e[34m" MAGENTA = "\e[35m" CYAN = "\e[36m" WHITE = "\e[37m" end
module Neo4j module ANSI CLEAR = "\e[0m" BOLD = "\e[1m" RED = "\e[31m" GREEN = "\e[32m" YELLOW = "\e[33m" BLUE = "\e[34m" MAGENTA = "\e[35m" CYAN = "\e[36m" WHITE = "\e[37m" end end
Put ANSI under a namespace so that it doesn't conflict with other code
Put ANSI under a namespace so that it doesn't conflict with other code
Ruby
mit
subvertallchris/neo4j-core,subvertallchris/neo4j-core,neo4jrb/neo4j-core,neo4jrb/neo4j-core
ruby
## Code Before: module ANSI CLEAR = "\e[0m" BOLD = "\e[1m" RED = "\e[31m" GREEN = "\e[32m" YELLOW = "\e[33m" BLUE = "\e[34m" MAGENTA = "\e[35m" CYAN = "\e[36m" WHITE = "\e[37m" end ## Instruction: Put ANSI under a namespace so that it doesn't conflict with other code ## Code After: module Neo4j m...
0bd0dff2f5ea7f258b61aa3c13d484d3c4a064b2
v2/licenses/README.md
v2/licenses/README.md
The licenses in this directory are taken from [SPDX](https://spdx.org/licenses). ## Naming Convention The name of the file is the same as the identifier on the SPDX website with an extension of `.txt`. For instance, the "Academic Free License v1.1" license would be in a file called `AFL-1.1.txt`. ### Special varian...
The licenses in this directory were originally extracted from the [SPDX](https://spdx.org/licenses) license database. More have been added. ## Naming Convention The name of the file is the same as the identifier on the SPDX website with an extension of `.txt`. For instance, the "Academic Free License v1.1" license ...
Update LicenseDB readme to note that it's not just SPDX licenses anymore.
Update LicenseDB readme to note that it's not just SPDX licenses anymore. PiperOrigin-RevId: 381112082
Markdown
apache-2.0
google/licenseclassifier
markdown
## Code Before: The licenses in this directory are taken from [SPDX](https://spdx.org/licenses). ## Naming Convention The name of the file is the same as the identifier on the SPDX website with an extension of `.txt`. For instance, the "Academic Free License v1.1" license would be in a file called `AFL-1.1.txt`. ##...
21835b0a11fb8bac53f5113408ea455ea66657f6
Code/CLOS/class-initialization-defmethods.lisp
Code/CLOS/class-initialization-defmethods.lisp
(cl:in-package #:sicl-clos) (defmethod initialize-instance :after ((class regular-class) &rest initargs &key &allow-other-keys) (apply #'initialize-instance-after-regular-class-default class initargs)) (defmethod shared-initialize :around ((class real-class) slot-names &rest initargs &key ...
(cl:in-package #:sicl-clos) (defmethod shared-initialize :around ((class real-class) slot-names &rest initargs &key &allow-other-keys) (apply #'shared-initialize-around-real-class-default #'call-next-method class slot-names initargs))
Remove :AFTER methods. What they did is now in the :AROUND method.
Remove :AFTER methods. What they did is now in the :AROUND method.
Common Lisp
bsd-2-clause
vtomole/SICL,clasp-developers/SICL,vtomole/SICL,clasp-developers/SICL,vtomole/SICL,vtomole/SICL,clasp-developers/SICL,clasp-developers/SICL
common-lisp
## Code Before: (cl:in-package #:sicl-clos) (defmethod initialize-instance :after ((class regular-class) &rest initargs &key &allow-other-keys) (apply #'initialize-instance-after-regular-class-default class initargs)) (defmethod shared-initialize :around ((class real-class) slot-names &rest init...
866acad557a5e0d646364b635fa79e8874f96feb
composer.json
composer.json
{ "name": "adrosoftware/one-skeleton", "description": "A one page application", "type": "project", "keywords": ["php","one page","adrorocker","ajax"], "homepage": "https://github.com/adrosoftware/one-skeleton", "license": "MIT", "authors": [ { "name": "Adro Rocker", ...
{ "name": "adrosoftware/one-skeleton", "description": "A one page application", "type": "project", "keywords": ["php","one page","adrorocker","ajax"], "homepage": "https://github.com/adrosoftware/one-skeleton", "license": "MIT", "authors": [ { "name": "Adro Rocker", ...
Add post create project command
Add post create project command
JSON
mit
adrosoftware/one-skeleton,adrosoftware/one-skeleton,adrosoftware/one-skeleton
json
## Code Before: { "name": "adrosoftware/one-skeleton", "description": "A one page application", "type": "project", "keywords": ["php","one page","adrorocker","ajax"], "homepage": "https://github.com/adrosoftware/one-skeleton", "license": "MIT", "authors": [ { "name": "Adr...
872c7842484ef10e8e1836cabdfe472da31938c7
docker-compose.yml
docker-compose.yml
balrogadmin: build: ./ entrypoint: - bash - scripts/initdb_and_run.sh command: uwsgi --ini /app/uwsgi/admin.ini --python-autoreload 1 ports: - "8080:8080" volumes: - .:/app links: - balrogdb environment: - DBURI=mysql://balrogadmin:balrogadmin@balrogdb/balrog - SECRET_KEY=blahb...
balrogadmin: build: ./ entrypoint: - bash - scripts/initdb_and_run.sh command: uwsgi --ini /app/uwsgi/admin.ini --python-autoreload 1 ports: - "8080:8080" volumes: - .:/app links: - balrogdb environment: - DBURI=mysql://balrogadmin:balrogadmin@balrogdb/balrog - SECRET_KEY=blahb...
Fix mysql run script volume mount.
Fix mysql run script volume mount.
YAML
mpl-2.0
mozbhearsum/balrog,aksareen/balrog,mozbhearsum/balrog,nurav/balrog,testbhearsum/balrog,mozbhearsum/balrog,mozbhearsum/balrog,tieu/balrog,testbhearsum/balrog,testbhearsum/balrog,tieu/balrog,aksareen/balrog,nurav/balrog,aksareen/balrog,nurav/balrog,tieu/balrog,nurav/balrog,testbhearsum/balrog,tieu/balrog,aksareen/balrog
yaml
## Code Before: balrogadmin: build: ./ entrypoint: - bash - scripts/initdb_and_run.sh command: uwsgi --ini /app/uwsgi/admin.ini --python-autoreload 1 ports: - "8080:8080" volumes: - .:/app links: - balrogdb environment: - DBURI=mysql://balrogadmin:balrogadmin@balrogdb/balrog - ...
cbc268db4cdb7baf0a4e1951a4a2b1f8b2ca2f84
_sass/print/_resume.scss
_sass/print/_resume.scss
@media print { .main{ .wrapper{ .sidebar{ display: none; } .content{ /* CONTENT MAIN */ font-family: $font-family-secondary; .resume{ .header{ .title{ display: none; h1{} } .btn-print{ ...
@media print { .main{ .wrapper{ .sidebar{ display: none; } .content-main{ /* CONTENT MAIN */ .resume{ .header{ .title{ display: none; h1{} } .btn-print{ display: none; a{} ...
Update - sáb mai 6 00:57:15 -03 2017
Update - sáb mai 6 00:57:15 -03 2017
SCSS
mit
williamcanin/williamcanin.github.io,williamcanin/williamcanin.github.io,williamcanin/williamcanin.github.io,williamcanin/williamcanin.github.io
scss
## Code Before: @media print { .main{ .wrapper{ .sidebar{ display: none; } .content{ /* CONTENT MAIN */ font-family: $font-family-secondary; .resume{ .header{ .title{ display: none; h1{} } .btn-prin...
55b0627ae5e43779bdcf0badd7e7876602eac808
Source/Action/Clone.js
Source/Action/Clone.js
/* --- script: Clone.js description: Clones an element and inserts it back to parent again license: Public domain (http://unlicense.org). authors: Yaroslaff Fedin requires: - LSD.Action provides: - LSD.Action.Clone ... */ LSD.Action.Clone = LSD.Action.build({ enable: function(target) { var widg...
/* --- script: Clone.js description: Clones an element and inserts it back to parent again license: Public domain (http://unlicense.org). authors: Yaroslaff Fedin requires: - LSD.Action provides: - LSD.Action.Clone ... */ LSD.Action.Clone = LSD.Action.build({ enable: function(target) { var widg...
Fix a bug in clone action that switched the widgets with elements
Fix a bug in clone action that switched the widgets with elements
JavaScript
unlicense
Inviz/lsd
javascript
## Code Before: /* --- script: Clone.js description: Clones an element and inserts it back to parent again license: Public domain (http://unlicense.org). authors: Yaroslaff Fedin requires: - LSD.Action provides: - LSD.Action.Clone ... */ LSD.Action.Clone = LSD.Action.build({ enable: function(target...
d108fcac6b7e8aec7491bdc598c977de98da1180
themes/movim/conf.tpl
themes/movim/conf.tpl
<?php /* -*- mode: html -*- */ ?> <?php $this->widget('Poller');?> <?php $this->widget('Logout');?> <?php $this->widget('Notifs');?> <?php $this->widget('Chat');?> <?php $this->widget('ChatExt');?> <div id="head"> </div> <div id="main"> <div id="left"> <?php $this->widget('Profile');?> <?php $this...
<?php /* -*- mode: html -*- */ ?> <?php $this->widget('Poller');?> <?php $this->widget('Logout');?> <?php $this->widget('Notifs');?> <?php $this->widget('Chat');?> <?php $this->widget('ChatExt');?> <div id="head"> </div> <div id="main"> <div id="left"> <?php $this->widget('Profile');?> <?php $this...
Add text to flag in Configuration
Add text to flag in Configuration
Smarty
agpl-3.0
Nyco/movim,Nyco/movim,Nyco/movim,Nyco/movim
smarty
## Code Before: <?php /* -*- mode: html -*- */ ?> <?php $this->widget('Poller');?> <?php $this->widget('Logout');?> <?php $this->widget('Notifs');?> <?php $this->widget('Chat');?> <?php $this->widget('ChatExt');?> <div id="head"> </div> <div id="main"> <div id="left"> <?php $this->widget('Profile');?> ...
f3fc11945cf5263902c9bebcde49979dd80bc9b3
components/VideoLivestream.vue
components/VideoLivestream.vue
<style lang="scss" scoped> .video-wrapper { margin-top: 2rem; } .video-wrapper iframe { min-height: 360px; width: 100%; @include mobile { min-height: 230px; } } </style> <template> <div class="video-wrapper"> <iframe src="https://player.vimeo.com/video/323205772" frameborder="0" webkit...
<style lang="scss" scoped> .video-wrapper { margin-top: 2rem; } .video-wrapper iframe { min-height: 360px; width: 100%; @include mobile { min-height: 230px; } } </style> <template> <div class="video-wrapper"> <iframe src="https://www.youtube-nocookie.com/embed/Z94bOTBGLzM" frameborder="0" ...
Switch to official youtube stream
Switch to official youtube stream
Vue
isc
fightforthefuture/battleforthenet,fightforthefuture/battleforthenet,fightforthefuture/battleforthenet
vue
## Code Before: <style lang="scss" scoped> .video-wrapper { margin-top: 2rem; } .video-wrapper iframe { min-height: 360px; width: 100%; @include mobile { min-height: 230px; } } </style> <template> <div class="video-wrapper"> <iframe src="https://player.vimeo.com/video/323205772" frameborder="0" ...
8f3e56dc335607590e753256acddbd8a53aa16d8
features/images.feature
features/images.feature
Feature: image fallbacks @normal Scenario: Image fallbacks look vaguely correct When I GET https://spotlight.{PP_FULL_APP_DOMAIN}/performance/carers-allowance/volumetrics.png Then I should receive an HTTP 200 And the image should be between 950 and 970 pixels wide And the image should be between ...
Feature: image fallbacks @normal Scenario: Image fallbacks look vaguely correct Given I am benchmarking When I GET https://spotlight.{PP_FULL_APP_DOMAIN}/performance/carers-allowance/volumetrics.png Then I should receive an HTTP 200 And the elapsed time should be less than 4 seconds And the i...
Add 4 second limit to image fallback requests
Add 4 second limit to image fallback requests 4 seconds is a bit of a guess, based on the fact that I don't think we should be overly concerned if these requests are slow.
Cucumber
mit
alphagov/pp-smokey,alphagov/pp-smokey,alphagov/pp-smokey
cucumber
## Code Before: Feature: image fallbacks @normal Scenario: Image fallbacks look vaguely correct When I GET https://spotlight.{PP_FULL_APP_DOMAIN}/performance/carers-allowance/volumetrics.png Then I should receive an HTTP 200 And the image should be between 950 and 970 pixels wide And the image sh...
08a2fa8e6c05ec9569fcf98a19e7c6f9e91b982c
src/common/store.js
src/common/store.js
import {createStore, combineReducers, compose, applyMiddleware} from 'redux'; import {routerReducer, routerMiddleware} from 'react-router-redux'; import {reducer as reduxAsyncConnect} from 'redux-connect'; import thunkMiddleware from 'redux-thunk'; function configureStoreCreator(reducers, middleware = [thunkMiddleware...
import {createStore, combineReducers, compose, applyMiddleware} from 'redux'; import {routerReducer, routerMiddleware} from 'react-router-redux'; import {reducer as reduxAsyncConnect} from 'redux-connect'; import thunkMiddleware from 'redux-thunk'; function configureStoreCreator(reducers, middleware = () => [thunkMidd...
Provision of middleware now requires function to allow request to be passed in on server-side
Provision of middleware now requires function to allow request to be passed in on server-side
JavaScript
mit
andy-shea/react-cornerstone
javascript
## Code Before: import {createStore, combineReducers, compose, applyMiddleware} from 'redux'; import {routerReducer, routerMiddleware} from 'react-router-redux'; import {reducer as reduxAsyncConnect} from 'redux-connect'; import thunkMiddleware from 'redux-thunk'; function configureStoreCreator(reducers, middleware = ...
1ab97433ee1a6a6dddb2db0d3b92268f26fab932
project.clj
project.clj
(defproject soy-clj "0.1.0-SNAPSHOT" :description "An idiomatic Clojure wrapper for Google's Closure templating system." :url "https://github.com/codahale/soy-clj" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.8.0-RC...
(defproject soy-clj "0.1.0-SNAPSHOT" :description "An idiomatic Clojure wrapper for Google's Closure templating system." :url "https://github.com/codahale/soy-clj" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/core.cache "0.6.4...
Move Clojure dep to dev profile.
Move Clojure dep to dev profile.
Clojure
epl-1.0
codahale/soy-clj,codahale/soy-clj
clojure
## Code Before: (defproject soy-clj "0.1.0-SNAPSHOT" :description "An idiomatic Clojure wrapper for Google's Closure templating system." :url "https://github.com/codahale/soy-clj" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/c...
450068dba26f05ac5445fd3d3621074f8972c2d1
test/support/test_helpers.coffee
test/support/test_helpers.coffee
Walrus = require '../../bin/walrus' fs = require 'fs' path = require 'path' exec = require( 'child_process' ).exec TestHelpers = read : ( filename ) -> fs.readFileSync filename, 'utf8' if path.existsSync filename pass : ( specs, suffix='' ) -> for file in fs.readdirSync specs when path.extname( file ) is...
Walrus = require '../../bin/walrus' fs = require 'fs' path = require 'path' exec = require( 'child_process' ).exec TestHelpers = read : ( filename ) -> fs.readFileSync filename, 'utf8' if path.existsSync filename pass : ( specs, suffix='' ) -> for file in fs.readdirSync specs when path.extname( file ) is...
Fix diffing when using fallback spec
Fix diffing when using fallback spec
CoffeeScript
mit
jeremyruppel/walrus
coffeescript
## Code Before: Walrus = require '../../bin/walrus' fs = require 'fs' path = require 'path' exec = require( 'child_process' ).exec TestHelpers = read : ( filename ) -> fs.readFileSync filename, 'utf8' if path.existsSync filename pass : ( specs, suffix='' ) -> for file in fs.readdirSync specs when path.ex...
c82dee5e7aa8ced12906875b7f44ff7b7671eacb
telegram-bot-api/src/main/kotlin/com/github/telegram/domain/Update.kt
telegram-bot-api/src/main/kotlin/com/github/telegram/domain/Update.kt
package com.github.telegram.domain import com.google.gson.annotations.SerializedName as Name /** * This object represents an incoming update. * Only *one* of the optional parameters can be present in any given update. * * @property updateId The update‘s unique identifier. * Update identifiers start from ...
package com.github.telegram.domain import com.google.gson.annotations.SerializedName as Name /** * This object represents an incoming update. * Only *one* of the optional parameters can be present in any given update. * * @property updateId The update‘s unique identifier. * Update identifiers start from ...
Add more detailed exception message.
Add more detailed exception message.
Kotlin
mit
denzelby/telegram-bot-bumblebee,fare1990/telegram-bot-bumblebee,fare1990/telegram-bot-bumblebee,fare1990/telegram-bot-bumblebee
kotlin
## Code Before: package com.github.telegram.domain import com.google.gson.annotations.SerializedName as Name /** * This object represents an incoming update. * Only *one* of the optional parameters can be present in any given update. * * @property updateId The update‘s unique identifier. * Update identif...
1c6edae1eec03e92e66b91c7f280783970adae1d
docs/developers.rst
docs/developers.rst
For Javabridge developers ========================= Build from git repository ------------------------- :: git clone git@github.com:CellProfiler/python-javabridge.git cd python-javabridge cython *.pyx python setup.py build python setup.py install Make source distribution and publish ------------...
For Javabridge developers ========================= Build from git repository ------------------------- :: git clone git@github.com:CellProfiler/python-javabridge.git cd python-javabridge cython *.pyx python setup.py build python setup.py install Make source distribution and publish ------------...
Document how to release what Jenkins built.
Document how to release what Jenkins built.
reStructuredText
bsd-3-clause
jakirkham/python-javabridge,jakirkham/python-javabridge,jakirkham/python-javabridge,CellProfiler/python-javabridge,CellProfiler/python-javabridge,CellProfiler/python-javabridge,jakirkham/python-javabridge,CellProfiler/python-javabridge
restructuredtext
## Code Before: For Javabridge developers ========================= Build from git repository ------------------------- :: git clone git@github.com:CellProfiler/python-javabridge.git cd python-javabridge cython *.pyx python setup.py build python setup.py install Make source distribution and publ...
7acd0f07522aa1752585f519109129f9e9b8687e
h2o-py/tests/testdir_algos/deeplearning/pyunit_iris_basic_deeplearning.py
h2o-py/tests/testdir_algos/deeplearning/pyunit_iris_basic_deeplearning.py
from builtins import range import sys, os sys.path.insert(1, os.path.join("..","..")) import h2o from tests import pyunit_utils from h2o.estimators.deeplearning import H2ODeepLearningEstimator def deeplearning_basic(): iris_hex = h2o.import_file(path=pyunit_utils.locate("smalldata/iris/iris.csv")) hh = H2ODeepL...
from builtins import range import sys, os sys.path.insert(1, "../../../") import h2o from tests import pyunit_utils from h2o.estimators.deeplearning import H2ODeepLearningEstimator def deeplearning_basic(): iris_hex = h2o.import_file(path=pyunit_utils.locate("smalldata/iris/iris.csv")) hh = H2ODeepLearningEstim...
Make sure pyuni_iris_basic_deeplearning can also run locally
Make sure pyuni_iris_basic_deeplearning can also run locally
Python
apache-2.0
jangorecki/h2o-3,h2oai/h2o-3,mathemage/h2o-3,mathemage/h2o-3,jangorecki/h2o-3,h2oai/h2o-3,h2oai/h2o-3,michalkurka/h2o-3,h2oai/h2o-3,michalkurka/h2o-3,michalkurka/h2o-3,h2oai/h2o-dev,h2oai/h2o-3,mathemage/h2o-3,michalkurka/h2o-3,spennihana/h2o-3,h2oai/h2o-3,h2oai/h2o-dev,mathemage/h2o-3,h2oai/h2o-dev,michalkurka/h2o-3,m...
python
## Code Before: from builtins import range import sys, os sys.path.insert(1, os.path.join("..","..")) import h2o from tests import pyunit_utils from h2o.estimators.deeplearning import H2ODeepLearningEstimator def deeplearning_basic(): iris_hex = h2o.import_file(path=pyunit_utils.locate("smalldata/iris/iris.csv"))...
af295acf402b03a346c9aa61b9d93313825d874c
docs/link-filters.rst
docs/link-filters.rst
Link Filters ############ ACHE allows one to restrict what web domains and paths within a domain that should be crawled through regular expressions. There are two types of link filters: * **whitelists** - URLS that should be downloaded; * **blacklists** - URLS that should not be downloaded. To configure a link filte...
Link Filters ############ ACHE allows one to restrict what web domains and paths within a domain that should be crawled through regular expressions. There are two types of link filters: * **whitelists** - URLS that should be downloaded; * **blacklists** - URLS that should not be downloaded. To configure a link filte...
Fix regexes in link filters documentation
Fix regexes in link filters documentation
reStructuredText
apache-2.0
ViDA-NYU/ache,ViDA-NYU/ache,ViDA-NYU/ache
restructuredtext
## Code Before: Link Filters ############ ACHE allows one to restrict what web domains and paths within a domain that should be crawled through regular expressions. There are two types of link filters: * **whitelists** - URLS that should be downloaded; * **blacklists** - URLS that should not be downloaded. To config...
d07ea0e63c318178a3c09b2d1ea73fd12661a6d4
resources/views/attendance/kiosk.blade.php
resources/views/attendance/kiosk.blade.php
<!DOCTYPE html> <html lang="en"> <head> @include('layouts/head') <style type="text/css"> /* Vertically center all the things - http://bit.ly/2Fm2Gpe */ html, body { width: 100%; height: 100%; } html { display: table; } b...
<!DOCTYPE html> <html lang="en"> <head> @include('layouts/head') <style type="text/css"> /* Vertically center all the things - http://bit.ly/2Fm2Gpe */ html, body { width: 100%; height: 100%; } html { display: table; } b...
Add instructional text to kiosk header and remove unnecessary margin shrinkage
Add instructional text to kiosk header and remove unnecessary margin shrinkage
PHP
apache-2.0
RoboJackets/apiary,RoboJackets/apiary
php
## Code Before: <!DOCTYPE html> <html lang="en"> <head> @include('layouts/head') <style type="text/css"> /* Vertically center all the things - http://bit.ly/2Fm2Gpe */ html, body { width: 100%; height: 100%; } html { display: table; ...
2f310b69beb3a7621e779db823412fc1b67c2c9c
hasjob/static/css/editor.css
hasjob/static/css/editor.css
/* @import url("//fonts.googleapis.com/css?family=Fira+Sans:400,700,400italic,700italic&subset=latin,latin-ext"); */ @import url("//code.cdn.mozilla.net/fonts/fira.css"); body { margin: 5px; font-size: 16px; line-height: 24px; color: #444; font-family: "Fira Sans", "Arial", sans-serif; } p, ul, ol, blockquot...
@import url("//fonts.googleapis.com/css?family=Fira+Sans:400,700,400italic,700italic&subset=latin,latin-ext"); body { margin: 5px; font-size: 16px; line-height: 24px; color: #444; font-family: "Fira Sans", "Arial", sans-serif; } p, ul, ol, blockquote { margin-top: 0; margin-bottom: 12px; }
Switch to Google Fonts for Fira Sans
Switch to Google Fonts for Fira Sans
CSS
agpl-3.0
hasgeek/hasjob,hasgeek/hasjob,hasgeek/hasjob,hasgeek/hasjob
css
## Code Before: /* @import url("//fonts.googleapis.com/css?family=Fira+Sans:400,700,400italic,700italic&subset=latin,latin-ext"); */ @import url("//code.cdn.mozilla.net/fonts/fira.css"); body { margin: 5px; font-size: 16px; line-height: 24px; color: #444; font-family: "Fira Sans", "Arial", sans-serif; } p, u...
5b61a1916f545ec3ca204d543a80d6846f82cc9f
app/views/courses/_sidebar.html.erb
app/views/courses/_sidebar.html.erb
<div class="col-md-3 sidebar"> <ul class="nav sidenav" id="sidebar"> <li><h4>Actions</h4></li> <hr> <% if current_user.is_admin_or_convenor? %> <li class="sidebar-item"><%= link_to 'New course', new_course_path %></li> <% end %> <li class="sidebar-item"><%= link_to 'View Assignments', assign...
<div class="col-md-3 sidebar"> <ul class="nav sidenav" id="sidebar"> <li><h4>Actions</h4></li> <hr> <% if current_user.is_admin_or_convenor? %> <li class="sidebar-item"><a href="/courses/new"><span class="glyphicon glyphicon-plus"></span>New course</a></li> <% end %> <li class="sidebar-item"...
Add glyphicons to course index sidebar
Add glyphicons to course index sidebar
HTML+ERB
mit
frankzhao/SubmissionApp2,frankzhao/SubmissionApp2,frankzhao/SubmissionApp2,frankzhao/SubmissionApp2
html+erb
## Code Before: <div class="col-md-3 sidebar"> <ul class="nav sidenav" id="sidebar"> <li><h4>Actions</h4></li> <hr> <% if current_user.is_admin_or_convenor? %> <li class="sidebar-item"><%= link_to 'New course', new_course_path %></li> <% end %> <li class="sidebar-item"><%= link_to 'View Assi...
dadb6c16a90f355213ed929442104b09d84aacf5
templates/javascript.jsx
templates/javascript.jsx
import React, { PropTypes } from 'react' /* const ThisClass = ( props ) => ( <ThisClass key={ props.foo } /> ) // or: */ export default class ThisClass extends React.Component { constructor(props) { super(props) //this.bindInstanceMethods( 'methodName1', 'methodName2' ) //this.state = {} } bind...
import React, { PropTypes } from 'react' /* const ThisClass = (props) => ( <ThisClass key={props.foo} /> ) // or: */ export default class ThisClass extends React.Component { constructor (props) { super(props) this.bindInstanceMethods('methodName1', 'methodName2') // this.state = {} } bindInstan...
Fix syntax issues in JSX template to reconcile Standard
Fix syntax issues in JSX template to reconcile Standard
JSX
unlicense
chris-kobrzak/js-dev-vim-setup
jsx
## Code Before: import React, { PropTypes } from 'react' /* const ThisClass = ( props ) => ( <ThisClass key={ props.foo } /> ) // or: */ export default class ThisClass extends React.Component { constructor(props) { super(props) //this.bindInstanceMethods( 'methodName1', 'methodName2' ) //this.state ...
5e83bea69447a3ec45a913d839e4070cae2bd124
app/assets/css/_titlebar.scss
app/assets/css/_titlebar.scss
.title-bar { flex: 0 0 $title-bar-height; justify-content: flex-start; -webkit-app-region: drag; -webkit-user-select: none; cursor: default; background-color: white; height: 36px; width: 100%; z-index: 2; box-shadow: 0 0 8px 0 #afb0b5; .btn-close, .btn-minimize { background: $boring-gray;...
.title-bar { flex: 0 0 $title-bar-height; justify-content: flex-start; -webkit-app-region: drag; -webkit-user-select: none; cursor: default; background-color: white; height: 36px; width: 100%; z-index: 2; box-shadow: 0 0 8px 0 #afb0b5; .btn-close, .btn-minimize { background: $boring-gray;...
Make sure menu bar buttons aren't draggable
Make sure menu bar buttons aren't draggable
SCSS
mit
L-A/Little-Jekyll,L-A/Little-Jekyll
scss
## Code Before: .title-bar { flex: 0 0 $title-bar-height; justify-content: flex-start; -webkit-app-region: drag; -webkit-user-select: none; cursor: default; background-color: white; height: 36px; width: 100%; z-index: 2; box-shadow: 0 0 8px 0 #afb0b5; .btn-close, .btn-minimize { backgroun...
dd2b61e713bbc5f90d5bea1a30043b064827718c
test/remote/gateways/remote_cashnet_test.rb
test/remote/gateways/remote_cashnet_test.rb
require 'test_helper' class CashnetTest < Test::Unit::TestCase def setup @gateway = CashnetGateway.new(fixtures(:cashnet)) @amount = 100 @credit_card = credit_card( "5454545454545454", month: 12, year: 2015 ) @options = { order_id: generate_unique_id, billing_address...
require 'test_helper' class CashnetTest < Test::Unit::TestCase def setup @gateway = CashnetGateway.new(fixtures(:cashnet)) @amount = 100 @credit_card = credit_card( "5454545454545454", month: 12, year: 2015 ) @options = { order_id: generate_unique_id, billing_address...
Add a few remote tests
Cashnet: Add a few remote tests We now test that failures are working as expected. Closes #1203.
Ruby
mit
X0Refraction/active_merchant2,anthonye2007/spreedly1,varyonic/active_merchant,activemerchant/active_merchant,rubemz/active_merchant,tychobrailleur/active_merchant,Mixbook/active_merchant,bazarka/active_merchant,sealink/active_merchant,pledgemusic/active_merchant,jayfredlund/active_merchant,boone/active_merchant,cyanna/...
ruby
## Code Before: require 'test_helper' class CashnetTest < Test::Unit::TestCase def setup @gateway = CashnetGateway.new(fixtures(:cashnet)) @amount = 100 @credit_card = credit_card( "5454545454545454", month: 12, year: 2015 ) @options = { order_id: generate_unique_id, ...
5d93120a4211f8433b3b89c75e28d8fa7d6a209b
.travis.yml
.travis.yml
language: node_js node_js: - '0.12' - 'iojs' addons: apt: packages: -libzmq3-dev before_install: - npm install -g node-gyp install: - npm run build
language: node_js node_js: - '0.12' - 'iojs' sudo: false addons: apt: packages: -libzmq3-dev before_install: - npm install -g node-gyp install: - npm run build
Switch to container based builds.
Switch to container based builds.
YAML
bsd-3-clause
nteract/jupyter-sidecar,rgbkrk/jupyter-sidecar,nteract/sidecar,captainsafia/jupyter-sidecar,nteract/jupyter-sidecar,nteract/sidecar,rgbkrk/jupyter-sidecar,captainsafia/jupyter-sidecar
yaml
## Code Before: language: node_js node_js: - '0.12' - 'iojs' addons: apt: packages: -libzmq3-dev before_install: - npm install -g node-gyp install: - npm run build ## Instruction: Switch to container based builds. ## Code After: language: node_js node_js: - '0.12' - 'iojs' sudo: false add...
82a60ccfb5d78020a7d48d95fd9c534b07b42db7
src/main/java/com/thegongoliers/output/motors/CircuitBreakerMotorModule.java
src/main/java/com/thegongoliers/output/motors/CircuitBreakerMotorModule.java
package com.thegongoliers.output.motors; import com.thegongoliers.input.current.HighCurrentSensor; import com.thegongoliers.input.time.Clock; import com.thegongoliers.input.time.RobotClock; public class CircuitBreakerMotorModule implements MotorModule { private final HighCurrentSensor mCurrentSensor; private...
package com.thegongoliers.output.motors; import com.thegongoliers.input.switches.Switch; import com.thegongoliers.input.time.Clock; import com.thegongoliers.input.time.RobotClock; import com.thegongoliers.utils.Resettable; public class CircuitBreakerMotorModule implements MotorModule { private final Switch mSwit...
Make circuit breaker module more generic
Make circuit breaker module more generic
Java
mit
Gongoliers/Library-of-Gongolierium
java
## Code Before: package com.thegongoliers.output.motors; import com.thegongoliers.input.current.HighCurrentSensor; import com.thegongoliers.input.time.Clock; import com.thegongoliers.input.time.RobotClock; public class CircuitBreakerMotorModule implements MotorModule { private final HighCurrentSensor mCurrentSen...
c91d19a7d46fb41e3d3d6a0a9370a63cbf6d3d20
git/github-pull-request.sh
git/github-pull-request.sh
url=$(git remote get-url origin) if [[ "$(echo $url | cut -d@ -f1)" != "git" ]]; then echo "Unrecognized remote, can't open PR" exit 1 fi url_no_user=$(echo $url | cut -d@ -f2) host=$(echo $url_no_user | cut -d: -f1) project=$(echo $url_no_user | cut -d: -f2 | rev | cut -d. -f1- | rev) branch=$(git rev-parse --a...
url=$(git remote get-url origin) if [[ "$(echo $url | cut -d@ -f1)" != "git" ]]; then echo "Unrecognized remote, can't open PR" exit 1 fi url_no_user=$(echo $url | cut -d@ -f2) host=$(echo $url_no_user | cut -d: -f1) project=$(echo $url_no_user | cut -d: -f2 | cut -d. -f1) branch=$(git rev-parse --abbrev-ref HEA...
Revert fix for github project with dot, because it break other repos
Revert fix for github project with dot, because it break other repos
Shell
cc0-1.0
Sloy/dotfiles,Sloy/scripts,Sloy/dotfiles
shell
## Code Before: url=$(git remote get-url origin) if [[ "$(echo $url | cut -d@ -f1)" != "git" ]]; then echo "Unrecognized remote, can't open PR" exit 1 fi url_no_user=$(echo $url | cut -d@ -f2) host=$(echo $url_no_user | cut -d: -f1) project=$(echo $url_no_user | cut -d: -f2 | rev | cut -d. -f1- | rev) branch=$(g...
5d5556602dc1e3bfd1d4fef1ff6f8182fe8999c0
modules/jetty/src/main/resources/META-INF/q2/installs/deploy/90_jetty.xml
modules/jetty/src/main/resources/META-INF/q2/installs/deploy/90_jetty.xml
<!-- ~ jPOS Project [http://jpos.org] ~ Copyright (C) 2000-2012 Alejandro P. Revilla ~ ~ This program is free software: you can redistribute it and/or modify ~ it under the terms of the GNU Affero General Public License as ~ published by the Free Software Foundation, either version 3 of the ~ License, or ...
<!-- ~ jPOS Project [http://jpos.org] ~ Copyright (C) 2000-2012 Alejandro P. Revilla ~ ~ This program is free software: you can redistribute it and/or modify ~ it under the terms of the GNU Affero General Public License as ~ published by the Free Software Foundation, either version 3 of the ~ License, or ...
Add 'keystorePassword' property to the reference Jetty QBean descriptor.
Add 'keystorePassword' property to the reference Jetty QBean descriptor.
XML
agpl-3.0
jpos/jPOS-EE,jrfinc/jPOS-EE,barspi/jPOS-EE,barspi/jPOS-EE,jpos/jPOS-EE,jrfinc/jPOS-EE,jrfinc/jPOS-EE,jpos/jPOS-EE,barspi/jPOS-EE
xml
## Code Before: <!-- ~ jPOS Project [http://jpos.org] ~ Copyright (C) 2000-2012 Alejandro P. Revilla ~ ~ This program is free software: you can redistribute it and/or modify ~ it under the terms of the GNU Affero General Public License as ~ published by the Free Software Foundation, either version 3 of the ...
cbacddc6087d74141517d7907c8f2c6931eb851c
circle.yml
circle.yml
machine: python: version: 2.7.6 dependencies: pre: - pyenv install -s 3.4.2 - pyenv global 2.7.6 3.4.2 post: - make docs - mv docs/build ${CIRCLE_ARTIFACTS}/docs - cd ${CIRCLE_ARTIFACTS}; zip -r docs.zip docs test: pre: - mkdir -p ${CIRCLE_TEST_REPORTS}/junit ${CIRCLE_ARTIFACTS}/c...
machine: python: version: 2.7.11 dependencies: pre: - pyenv install -s 3.4.4 - pyenv install -s 3.5.1 - pyenv global 2.7.11 3.4.4 3.5.1 post: - make docs - mv docs/build ${CIRCLE_ARTIFACTS}/docs - cd ${CIRCLE_ARTIFACTS}; zip -r docs.zip docs test: pre: - mkdir -p ${CIRCLE_TEST...
Update CI python build versions.
Update CI python build versions.
YAML
bsd-3-clause
koordinates/python-client,koordinates/python-client
yaml
## Code Before: machine: python: version: 2.7.6 dependencies: pre: - pyenv install -s 3.4.2 - pyenv global 2.7.6 3.4.2 post: - make docs - mv docs/build ${CIRCLE_ARTIFACTS}/docs - cd ${CIRCLE_ARTIFACTS}; zip -r docs.zip docs test: pre: - mkdir -p ${CIRCLE_TEST_REPORTS}/junit ${CIR...
88e874da0fbc5e14318296fc6443ae4161a1e5cb
modules/DOMHistory.js
modules/DOMHistory.js
import React from 'react'; import assign from 'object-assign'; import History from './History'; import Location from './Location'; import { getWindowScrollPosition } from './DOMUtils'; /** * A history interface that assumes a DOM environment. */ class DOMHistory extends History { static propTypes = assign({ g...
import React from 'react'; import assign from 'object-assign'; import History from './History'; import Location from './Location'; import { getWindowScrollPosition } from './DOMUtils'; /** * A history interface that assumes a DOM environment. */ class DOMHistory extends History { static propTypes = assign({ g...
Use location.key for storing scroll position when available
Use location.key for storing scroll position when available
JavaScript
mit
zhijiansha123/react-router,mozillo/react-router,reactjs/react-router,MattSPalmer/react-router,leeric92/react-router,Sirlon/react-router,malte-wessel/react-router,sleexyz/react-router,nickaugust/react-router,kevinsimper/react-router,tmbtech/react-router,mozillo/react-router,yongxu/react-router,calebmichaelsanchez/react-...
javascript
## Code Before: import React from 'react'; import assign from 'object-assign'; import History from './History'; import Location from './Location'; import { getWindowScrollPosition } from './DOMUtils'; /** * A history interface that assumes a DOM environment. */ class DOMHistory extends History { static propTypes ...
41eafd25a0f7f7aa72293cec8bd51e736fe00d06
pkgs/applications/networking/remote/x2goclient/default.nix
pkgs/applications/networking/remote/x2goclient/default.nix
{ stdenv, fetchurl, cups, libssh, libXpm, nxproxy, openldap, makeWrapper, qt4, qmake4Hook }: stdenv.mkDerivation rec { name = "x2goclient-${version}"; version = "4.0.5.1"; src = fetchurl { url = "http://code.x2go.org/releases/source/x2goclient/${name}.tar.gz"; sha256 = "04gdccqywas029a76k3r9zhr2mfn385i9...
{ stdenv, fetchurl, cups, libssh, libXpm, nxproxy, openldap, makeWrapper, qt4 }: stdenv.mkDerivation rec { name = "x2goclient-${version}"; version = "4.0.5.1"; src = fetchurl { url = "http://code.x2go.org/releases/source/x2goclient/${name}.tar.gz"; sha256 = "04gdccqywas029a76k3r9zhr2mfn385i9r06cmi8mznxp...
Revert "x2goclient: move to qmake4Hook"
Revert "x2goclient: move to qmake4Hook" This reverts commit 83406bc171ca2b385c49838e6ed5e89007a875b5, because it broke the build. x2goclient requires to be built with its top-level (hand coded) Makefile (in accordance with upstream documentation). Invoking qmake directly on the .pro file, without specifying a separat...
Nix
mit
NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlo...
nix
## Code Before: { stdenv, fetchurl, cups, libssh, libXpm, nxproxy, openldap, makeWrapper, qt4, qmake4Hook }: stdenv.mkDerivation rec { name = "x2goclient-${version}"; version = "4.0.5.1"; src = fetchurl { url = "http://code.x2go.org/releases/source/x2goclient/${name}.tar.gz"; sha256 = "04gdccqywas029a76...
20534a71b9cba2558cc0f4d2c98571351a3f57ea
lib/gollum/frontend/templates/file_view.mustache
lib/gollum/frontend/templates/file_view.mustache
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-type" content="text/html;charset=utf-8"> <meta http-equiv="Content-type" content="text/html;charset=utf-8"> <link rel="stylesheet" type="text/css" href="/css/gollum.css" media="all"> <link rel="stylesheet" type="text/css" href="/css/template.css" media="al...
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-type" content="text/html;charset=utf-8"> <link rel="stylesheet" type="text/css" href="/css/gollum.css" media="all"> <link rel="stylesheet" type="text/css" href="/css/template.css" media="all"> <link rel="stylesheet" type="text/css" href="/css/_styles.css" ...
Remove New Page from file view.
Remove New Page from file view.
HTML+Django
mit
repotag/gollum,diguage/gollum,rLoopTeam/gollum-with-auth,ut7/gollum,bpieck/gollum,doordash/gollum,foursquare/gollum-OSS,ngyuki/gollum-lib,jhominal/gollum-lib,blabtonic/burning-wiki,rgroux/gollum,kissthink/gollum,abicky/gollum,cheenwe/gollum,webwlsong/gollum,jhominal/gollum,arr2036/gollum,rgroux/gollum,Komodo/gollum-lib...
html+django
## Code Before: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-type" content="text/html;charset=utf-8"> <meta http-equiv="Content-type" content="text/html;charset=utf-8"> <link rel="stylesheet" type="text/css" href="/css/gollum.css" media="all"> <link rel="stylesheet" type="text/css" href="/css/templat...
55e431179163d9b5d39800cd7cc20546301e645f
configuration/salt/state/airflow/load-workflows.sls
configuration/salt/state/airflow/load-workflows.sls
pcawg-germline-clone: git.latest: - rev: master - force_reset: True - name: https://github.com/llevar/pcawg-germline.git - target: /opt/pcawg-germline - submodules: True /opt/airflow/dags: file.symlink: - target: /opt/pcawg-germline/workflows/ - user: airflow - group: airflow ...
pcawg-germline-clone: git.latest: - rev: master - force_reset: True - name: https://github.com/llevar/pcawg-germline.git - target: /opt/pcawg-germline - submodules: True /opt/airflow/dags/pcawg-germline: file.symlink: - target: /opt/pcawg-germline/workflows/ - user: airflow - gr...
Change symlink to point inside the dags folder rather at the dags folder, to support workflow definitions from multiple repositories.
Change symlink to point inside the dags folder rather at the dags folder, to support workflow definitions from multiple repositories.
SaltStack
mit
llevar/germline-regenotyper,llevar/germline-regenotyper
saltstack
## Code Before: pcawg-germline-clone: git.latest: - rev: master - force_reset: True - name: https://github.com/llevar/pcawg-germline.git - target: /opt/pcawg-germline - submodules: True /opt/airflow/dags: file.symlink: - target: /opt/pcawg-germline/workflows/ - user: airflow - g...
149ca57fabad4430b22af08c88d8df6fbcc6dfc2
statictemplate/tests.py
statictemplate/tests.py
from StringIO import StringIO from django.conf import settings from django.core.management import call_command from django.template.base import TemplateDoesNotExist from django.template.loader import BaseLoader from statictemplate.management.commands.statictemplate import make_static import unittest class TestLoader(...
from StringIO import StringIO from django.conf import settings from django.http import HttpResponseRedirect from django.core.management import call_command from django.template.base import TemplateDoesNotExist from django.template.loader import BaseLoader from statictemplate.management.commands.statictemplate import ma...
Add test for meddling middleware
Add test for meddling middleware
Python
bsd-3-clause
bdon/django-statictemplate,ojii/django-statictemplate,yakky/django-statictemplate
python
## Code Before: from StringIO import StringIO from django.conf import settings from django.core.management import call_command from django.template.base import TemplateDoesNotExist from django.template.loader import BaseLoader from statictemplate.management.commands.statictemplate import make_static import unittest c...
14294b695550ee0b90aadd587534b824250af181
package.json
package.json
{ "name": "flashcardz", "description": "Intelligently quizes you", "repository": "https://github.com/jamescostian/flashcardz", "version": "0.1.0", "contributors": [ "James Costian <james@jamescostian.com> (http://jamescostian.com)" ], "engines": { "node": "0.10" }, "os": [ "!win32" ], "main": "lib/modu...
{ "name": "flashcardz", "description": "Intelligently quizes you", "repository": "https://github.com/jamescostian/flashcardz", "version": "0.1.0", "contributors": [ "James Costian <james@jamescostian.com> (http://jamescostian.com)" ], "engines": { "node": "0.10" }, "os": [ "!win32" ], "main": "lib/modu...
Add bluebird and validator as deps
Add bluebird and validator as deps
JSON
isc
jamescostian/flashcardz
json
## Code Before: { "name": "flashcardz", "description": "Intelligently quizes you", "repository": "https://github.com/jamescostian/flashcardz", "version": "0.1.0", "contributors": [ "James Costian <james@jamescostian.com> (http://jamescostian.com)" ], "engines": { "node": "0.10" }, "os": [ "!win32" ], "...
840c2f805c8a912ace0b590115bf19e97e2bad41
README.md
README.md
1. Read the pdf 2. Download & untar all deps 3. Apply `vita.patch` 4. Replace `src/newlib` with a version for the Vita: https://github.com/xyzz/vita-newlib 5. Clone https://github.com/vitasdk/vita-toolchain to `src/vita-toolchain` 6. Clone https://github.com/vitasdk/vita-headers to `src/vita-headers` 7. Build ... 8. A...
1. Read the pdf 2. Download & untar all deps 3. Apply `vita.patch` 4. Replace `src/newlib` with a version for the Vita: https://github.com/xyzz/vita-newlib 5. Clone https://github.com/vitasdk/vita-toolchain to `src/vita-toolchain` 6. Clone https://github.com/vitasdk/vita-headers to `src/vita-headers` 7. Download http:...
Add jansson requirement and some notes about git on 8.10.
Add jansson requirement and some notes about git on 8.10.
Markdown
mit
codestation/vitasdk-cmake,vitasdk/buildscripts,173210/vita-buildscripts
markdown
## Code Before: 1. Read the pdf 2. Download & untar all deps 3. Apply `vita.patch` 4. Replace `src/newlib` with a version for the Vita: https://github.com/xyzz/vita-newlib 5. Clone https://github.com/vitasdk/vita-toolchain to `src/vita-toolchain` 6. Clone https://github.com/vitasdk/vita-headers to `src/vita-headers` 7...
eff1b74f07937a6f3ecce831231e1d8f424672c8
test/test-add-layer.js
test/test-add-layer.js
/* See license.txt for terms of usage */ "use strict"; const { exist, addNewLayer } = require("./common.js"); const { closeTab } = require("sdk/tabs/utils"); /** * Add layer and check that it's properly created. */ exports["test Add Layer"] = function(assert, done) { addNewLayer().then(config => { ...
/* See license.txt for terms of usage */ "use strict"; const { exist, addNewLayer, removeLayer } = require("./common.js"); const { closeTab } = require("sdk/tabs/utils"); /** * Add layer and check that it's properly created. */ exports["test Add Layer"] = function(assert, done) { addNewLayer().then(co...
Remove layer also in the add layer test
Remove layer also in the add layer test
JavaScript
bsd-3-clause
firebug/pixel-perfect,mbuckley/pixel-perfect,mbuckley/pixel-perfect,firebug/pixel-perfect
javascript
## Code Before: /* See license.txt for terms of usage */ "use strict"; const { exist, addNewLayer } = require("./common.js"); const { closeTab } = require("sdk/tabs/utils"); /** * Add layer and check that it's properly created. */ exports["test Add Layer"] = function(assert, done) { addNewLayer().then(config => ...
7a8a2556bbeb255c991aa5a39aa04b4fed238a7b
kolibri/plugins/setup_wizard/middleware.py
kolibri/plugins/setup_wizard/middleware.py
from django.core.urlresolvers import reverse from django.shortcuts import redirect from kolibri.auth.models import DeviceOwner ALLOWED_PATH_LIST = [ "facility-list", "deviceowner-list", "kolibri:setupwizardplugin:setupwizard", "task-localdrive", "task-startremoteimport", "task-list", ] class...
from django.core.urlresolvers import reverse from django.shortcuts import redirect from kolibri.auth.models import DeviceOwner ALLOWED_PATH_LIST = [ "facility-list", "deviceowner-list", "kolibri:setupwizardplugin:setupwizard", "task-localdrive", "task-startremoteimport", "task-list", "sess...
Add 'session-list' to constants list.
Add 'session-list' to constants list.
Python
mit
DXCanas/kolibri,christianmemije/kolibri,learningequality/kolibri,jonboiser/kolibri,jonboiser/kolibri,rtibbles/kolibri,aronasorman/kolibri,learningequality/kolibri,rtibbles/kolibri,christianmemije/kolibri,jayoshih/kolibri,jayoshih/kolibri,jayoshih/kolibri,learningequality/kolibri,christianmemije/kolibri,DXCanas/kolibri,...
python
## Code Before: from django.core.urlresolvers import reverse from django.shortcuts import redirect from kolibri.auth.models import DeviceOwner ALLOWED_PATH_LIST = [ "facility-list", "deviceowner-list", "kolibri:setupwizardplugin:setupwizard", "task-localdrive", "task-startremoteimport", "task-...
73e5201e2cbbf99c8ba0f9a7d403d5178ecba501
.travis.yml
.travis.yml
language: python # We support from Python 2.4 to 2.7. However, 2.4 and 2.5 are not supported by # travis, so they are not listed here python: - "2.6" - "2.7" - "3.2" - "3.3" # For testing with JYTHON=true, we will use Jython 2.2 instead of the python # version provided by Travis CI env: - JYTHON=true - JY...
language: python # We support from Python 2.4 to 2.7. However, 2.4 and 2.5 are not supported by # travis, so they are not listed here python: - "2.6" - "2.7" - "3.2" - "3.3" install: - sudo apt-get install cmake # test script script: - ctest -VV --output-on-failure . # Notify the mailing list notificati...
Remove Jython support from Travis
Remove Jython support from Travis
YAML
bsd-2-clause
benjifisher/editorconfig-vim,benjifisher/editorconfig-vim,VictorBjelkholm/editorconfig-vim,johnfraney/editorconfig-vim,johnfraney/editorconfig-vim,pocke/editorconfig-vim,johnfraney/editorconfig-vim,VictorBjelkholm/editorconfig-vim,benjifisher/editorconfig-vim,VictorBjelkholm/editorconfig-vim,pocke/editorconfig-vim,pock...
yaml
## Code Before: language: python # We support from Python 2.4 to 2.7. However, 2.4 and 2.5 are not supported by # travis, so they are not listed here python: - "2.6" - "2.7" - "3.2" - "3.3" # For testing with JYTHON=true, we will use Jython 2.2 instead of the python # version provided by Travis CI env: - JY...
d036279051af169b981668e45459300893886b93
src/common/res/features/edit-button-position/left.css
src/common/res/features/edit-button-position/left.css
.nav-account-row .nav-account-name { display: flex; margin-left: -20px; } .nav-account-row .nav-account-name button { order: 1; } .nav-account-row .nav-account-name i { order: 0; display: inline-block; visibility: hidden; margin-right: 0.2em; } .nav-account-row .nav-account-name:hover i { visibility: visible...
.nav-account-row .nav-account-name { display: flex; margin-left: -20px; } .nav-account-row .nav-account-name .nav-account-name-val { order: 1; } .nav-account-row .nav-account-name i { order: 0; display: inline-block; opacity: 0; width: 0; margin-right: 0.2em; line-height: 1.8em; -webkit-transition: all .3s ...
Edit account button position fix
Edit account button position fix Improvements to the account edit button positioning when using the ‘left’ option.
CSS
mit
ahatzz11/toolkit-for-ynab,dbaldon/toolkit-for-ynab,dbaldon/toolkit-for-ynab,egens/toolkit-for-ynab,falkencreative/toolkit-for-ynab,blargity/toolkit-for-ynab,toolkit-for-ynab/toolkit-for-ynab,joshmadewell/toolkit-for-ynab,dbaldon/toolkit-for-ynab,ahatzz11/toolkit-for-ynab,egens/toolkit-for-ynab,joshmadewell/toolkit-for-...
css
## Code Before: .nav-account-row .nav-account-name { display: flex; margin-left: -20px; } .nav-account-row .nav-account-name button { order: 1; } .nav-account-row .nav-account-name i { order: 0; display: inline-block; visibility: hidden; margin-right: 0.2em; } .nav-account-row .nav-account-name:hover i { vis...
5161d6c0023151d39fb56a85f739063205e676f4
nova/api/manager.py
nova/api/manager.py
from nova import manager from nova.network import driver class MetadataManager(manager.Manager): """Metadata Manager. This class manages the Metadata API service initialization. Currently, it just adds an iptables filter rule for the metadata service. """ def __init__(self, *args, **kwargs): ...
from nova import manager from nova.network import driver class MetadataManager(manager.Manager): """Metadata Manager. This class manages the Metadata API service initialization. Currently, it just adds an iptables filter rule for the metadata service. """ def __init__(self, *args, **kwargs): ...
Initialize iptables rules on initialization of MetadataManager
Initialize iptables rules on initialization of MetadataManager To avoid multiple initialization of iptables rules if there are a few workers for metadata service, perform iptables configuration in __init__() of MetadataManager. Change-Id: I674c04f973318f06cbb98693f0a884c824af8748 Closes-Bug: #1097999
Python
apache-2.0
noironetworks/nova,orbitfp7/nova,eayunstack/nova,badock/nova,JioCloud/nova,CEG-FYP-OpenStack/scheduler,badock/nova,mikalstill/nova,gooddata/openstack-nova,LoHChina/nova,rahulunair/nova,jeffrey4l/nova,shahar-stratoscale/nova,vmturbo/nova,scripnichenko/nova,mandeepdhami/nova,cyx1231st/nova,felixma/nova,luogangyi/bcec-nov...
python
## Code Before: from nova import manager from nova.network import driver class MetadataManager(manager.Manager): """Metadata Manager. This class manages the Metadata API service initialization. Currently, it just adds an iptables filter rule for the metadata service. """ def __init__(self, *args...
7a30c071923c5c54582a534046a1afc6350b2905
index.js
index.js
/* jshint node: true */ 'use strict'; var path = require('path'); var fs = require('fs'); var VersionChecker = require('ember-cli-version-checker'); module.exports = { name: 'ember-modal-dialog', init: function() { var checker = new VersionChecker(this); if (!checker.for('ember-cli', 'npm').isAbove('0.2....
/* jshint node: true */ 'use strict'; var path = require('path'); var fs = require('fs'); var VersionChecker = require('ember-cli-version-checker'); module.exports = { name: 'ember-modal-dialog', init: function() { this._super.init && this._super.init.apply(this, arguments); var checker = new VersionChec...
Call `this._super.init` to avoid ember-cli deprecation
Call `this._super.init` to avoid ember-cli deprecation This avoids the following deprecation warning: DEPRECATION: Overriding init without calling this._super is deprecated. Please call this._super.init && this._super.init.apply(this, arguments);
JavaScript
mit
yapplabs/ember-modal-dialog,oscarni/ember-modal-dialog,oscarni/ember-modal-dialog,samselikoff/ember-modal-dialog,samselikoff/ember-modal-dialog,yapplabs/ember-modal-dialog
javascript
## Code Before: /* jshint node: true */ 'use strict'; var path = require('path'); var fs = require('fs'); var VersionChecker = require('ember-cli-version-checker'); module.exports = { name: 'ember-modal-dialog', init: function() { var checker = new VersionChecker(this); if (!checker.for('ember-cli', 'npm...
10e8e65cdaea58af641ebafd3dfd38f485a452fe
README.md
README.md
FeedPaper [![http://travis-ci.org/cliffano/feedpaper](https://secure.travis-ci.org/cliffano/feedpaper.png?branch=master)](http://travis-ci.org/cliffano/feedpaper) --------- FeedPaper is a feed reader + readability mashup for reading on handheld devices. It's like reading a newspaper with content from Atom/RSS feeds i...
FeedPaper [![http://travis-ci.org/cliffano/feedpaper](https://img.shields.io/travis/cliffano/feedpaper.svg)](http://travis-ci.org/cliffano/feedpaper) --------- FeedPaper is a feed reader + readability mashup for reading on handheld devices. It's like reading a newspaper with content from Atom/RSS feeds in a format th...
Move travis and david badges to shields.io .
Move travis and david badges to shields.io .
Markdown
mit
cliffano/feedpaper,cliffano/feedpaper,cliffano/feedpaper
markdown
## Code Before: FeedPaper [![http://travis-ci.org/cliffano/feedpaper](https://secure.travis-ci.org/cliffano/feedpaper.png?branch=master)](http://travis-ci.org/cliffano/feedpaper) --------- FeedPaper is a feed reader + readability mashup for reading on handheld devices. It's like reading a newspaper with content from ...
d09e2831d95a2bc045da75496c70337246e77d5f
BoxAndWhisker.py
BoxAndWhisker.py
from matplotlib import pyplot from PlotInfo import * class BoxAndWhisker(PlotInfo): """ Box and whisker plots """ def __init__(self): super(BoxAndWhisker,self).__init__("boxplot") self.width=None self.color="black" self.label = None self.xSequence = [] def ...
from matplotlib import pyplot from PlotInfo import * from Marker import Marker class BoxAndWhisker(PlotInfo): """ Box and whisker plots """ def __init__(self): super(BoxAndWhisker,self).__init__("boxplot") self.width=None self.color="black" self.label = None sel...
Allow flier markers in box-and-whisker plots to be modified.
Allow flier markers in box-and-whisker plots to be modified.
Python
bsd-3-clause
alexras/boomslang
python
## Code Before: from matplotlib import pyplot from PlotInfo import * class BoxAndWhisker(PlotInfo): """ Box and whisker plots """ def __init__(self): super(BoxAndWhisker,self).__init__("boxplot") self.width=None self.color="black" self.label = None self.xSequenc...
d7bcb0c00c318e504992f07ad18bb9a55d9f3ea2
CMakeLists.txt
CMakeLists.txt
cmake_minimum_required(VERSION 3.1) project(lobaro_coap C) file(GLOB_RECURSE SOURCE_FILES ${CMAKE_CURRENT_LIST_DIR}/src/*.h ${CMAKE_CURRENT_LIST_DIR}/src/*.c) add_library(${PROJECT_NAME} STATIC ${SOURCE_FILES} src/liblobaro_coap.c) target_include_directories(${PROJECT_NAME} INTERFACE ${CMAKE_CURRENT_LIST_DIR}/src) ...
if (DEFINED __INIT_LOBARO_BUILD) project(lobaro-coap) include(${CPATH}/src/github.com/lobaro/c-build/build.cmake) cbuild_module("lobaro/lobaro-coap/test") # cbuild_dependency(_ github.com/lobaro/cpp-utils) else() cmake_minimum_required(VERSION 3.1) project(lobaro_coap C) file(GLOB_RECUR...
Bring Board and App to read one-wire temperature.
Bring Board and App to read one-wire temperature.
Text
mit
Lobaro/lobaro-coap,Lobaro/lobaro-coap,Lobaro/lobaro-coap
text
## Code Before: cmake_minimum_required(VERSION 3.1) project(lobaro_coap C) file(GLOB_RECURSE SOURCE_FILES ${CMAKE_CURRENT_LIST_DIR}/src/*.h ${CMAKE_CURRENT_LIST_DIR}/src/*.c) add_library(${PROJECT_NAME} STATIC ${SOURCE_FILES} src/liblobaro_coap.c) target_include_directories(${PROJECT_NAME} INTERFACE ${CMAKE_CURRENT_...
2f99c756e334c1cd6b0fc808d43a9c4e0faf4fc0
Provider/IcsProvider.php
Provider/IcsProvider.php
<?php namespace BOMO\IcalBundle\Provider; use BOMO\IcalBundle\Model\Timezone, BOMO\IcalBundle\Model\Calendar, BOMO\IcalBundle\Model\Event, BOMO\IcalBundle\Model\Alarm ; class IcsProvider { public function createTimezone(array $config = array(), $timezoneType = FALSE) { return new Tim...
<?php namespace BOMO\IcalBundle\Provider; use BOMO\IcalBundle\Model\Timezone, BOMO\IcalBundle\Model\Calendar, BOMO\IcalBundle\Model\Event, BOMO\IcalBundle\Model\Alarm ; class IcsProvider { public function createTimezone(array $config = array()) { return new Timezone($config); } ...
Make sure that timezone information is included in calendar export
Make sure that timezone information is included in calendar export
PHP
mit
BorisMorel/IcalBundle
php
## Code Before: <?php namespace BOMO\IcalBundle\Provider; use BOMO\IcalBundle\Model\Timezone, BOMO\IcalBundle\Model\Calendar, BOMO\IcalBundle\Model\Event, BOMO\IcalBundle\Model\Alarm ; class IcsProvider { public function createTimezone(array $config = array(), $timezoneType = FALSE) { ...
2669aadf6115c3819f86480b76045f2d0ff628e6
.travis/misc-setup.sh
.travis/misc-setup.sh
psql -c 'create database commcarehq' -U postgres
psql -c 'create database commcarehq' -U postgres # The XFORMS_POST_URL is under suspicion of still pointing at the wrong DB; trying this curl -X PUT localhost:5984/commcarehq
Add a PUT of the non-test db
Add a PUT of the non-test db
Shell
bsd-3-clause
qedsoftware/commcare-hq,puttarajubr/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,SEL-Columbia/commcare-hq,SEL-Columbia/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,SEL-Columbia/commcare-hq,dimagi/commcare-hq,puttarajubr/commcare-hq,gmimano/commcaretest,dimagi/commcare-hq,qedsoftwa...
shell
## Code Before: psql -c 'create database commcarehq' -U postgres ## Instruction: Add a PUT of the non-test db ## Code After: psql -c 'create database commcarehq' -U postgres # The XFORMS_POST_URL is under suspicion of still pointing at the wrong DB; trying this curl -X PUT localhost:5984/commcarehq
b78f6e0e9f8a9ca3e7c8c096400dd32428550397
lib/fs/readdir-directories.js
lib/fs/readdir-directories.js
// Read all filenames from directory and it's subdirectories 'use strict'; var fs = require('fs') , aritize = require('es5-ext/lib/Function/aritize').call , curry = require('es5-ext/lib/Function/curry').call , invoke = require('es5-ext/lib/Function/invoke') , k = require('es5-ext/lib/Function/k'...
// Read all filenames from directory and it's subdirectories 'use strict'; var fs = require('fs') , aritize = require('es5-ext/lib/Function/prototype/aritize') , invoke = require('es5-ext/lib/Function/invoke') , k = require('es5-ext/lib/Function/k') , a2p = require('deferred/lib/async-to-promi...
Update up to changes in es5-ext
Update up to changes in es5-ext
JavaScript
mit
medikoo/node-ext
javascript
## Code Before: // Read all filenames from directory and it's subdirectories 'use strict'; var fs = require('fs') , aritize = require('es5-ext/lib/Function/aritize').call , curry = require('es5-ext/lib/Function/curry').call , invoke = require('es5-ext/lib/Function/invoke') , k = require('es5-ext...
548c5eeb1257b1e7a9586fb37633a06fad0fdf9a
app/views/catalog_admin/choices/new.html.erb
app/views/catalog_admin/choices/new.html.erb
<% provide(:title, t(".new_choice")) %> <div class="card-body "> <%= bootstrap_form_for( @choice, :url => catalog_admin_choice_set_choices_path) do |f| %> <div class="mb-4"> <%= select2_select(f, :parent_id, @choice_set.flat_ordered_choices.filter { |choice| choice.id != @choice.id }.map { |...
<% provide(:title, t(".new_choice")) %> <div class="card-body "> <%= bootstrap_form_for( @choice, :url => catalog_admin_choice_set_choices_path) do |f| %> <div class="mb-4"> <%= select2_select(f, :parent_id, @choice_set.flat_ordered_choices.filter { |choice| choice.id != @choice.id }.map { |...
Fix route when canceling a new choice
Fix route when canceling a new choice
HTML+ERB
apache-2.0
catima/catima,catima/catima,catima/catima,catima/catima
html+erb
## Code Before: <% provide(:title, t(".new_choice")) %> <div class="card-body "> <%= bootstrap_form_for( @choice, :url => catalog_admin_choice_set_choices_path) do |f| %> <div class="mb-4"> <%= select2_select(f, :parent_id, @choice_set.flat_ordered_choices.filter { |choice| choice.id != @cho...
76540e8abaf15baabc0f9fa007eb28b1be8ee450
ocradmin/requirements/apps.txt
ocradmin/requirements/apps.txt
-e svn+http://code.djangoproject.com/svn/django/branches/releases/1.2.X#egg=django -e svn+http://django-tagging.googlecode.com/svn/trunk#egg=django-tagging -e svn+http://wadofstuff.googlecode.com/svn/trunk/python/serializer#egg=django-full-serializer -e git+https://github.com/shrubberysoft/django-picklefield.git@v0.1.6...
-e svn+http://code.djangoproject.com/svn/django/branches/releases/1.3.X#egg=django -e svn+http://django-tagging.googlecode.com/svn/trunk#egg=django-tagging -e svn+http://wadofstuff.googlecode.com/svn/trunk/python/serializer#egg=django-full-serializer -e git+https://github.com/shrubberysoft/django-picklefield.git@v0.1.6...
Update to Django 1.3 and Celery 2.2.6. Everything seems to still work, but there are a few deprecation warnings.
Update to Django 1.3 and Celery 2.2.6. Everything seems to still work, but there are a few deprecation warnings.
Text
apache-2.0
vitorio/ocropodium,vitorio/ocropodium,vitorio/ocropodium,vitorio/ocropodium
text
## Code Before: -e svn+http://code.djangoproject.com/svn/django/branches/releases/1.2.X#egg=django -e svn+http://django-tagging.googlecode.com/svn/trunk#egg=django-tagging -e svn+http://wadofstuff.googlecode.com/svn/trunk/python/serializer#egg=django-full-serializer -e git+https://github.com/shrubberysoft/django-pickle...
c304ae40299e9f64973534b7fe311d71df78d676
vagrant/provisioning/setup-k8s-minion.sh
vagrant/provisioning/setup-k8s-minion.sh
XTRACE=$(set +o | grep xtrace) set -o xtrace # args # $1: IP of master host MASTER_IP=$1 echo "MASTER_IP=$MASTER_IP" >> setup_minion_args.sh # Install CNI pushd ~/ wget https://github.com/containernetworking/cni/releases/download/v0.2.0/cni-v0.2.0.tgz popd sudo mkdir -p /opt/cni/bin pushd /opt/cni/bin sudo tar xvzf...
XTRACE=$(set +o | grep xtrace) set -o xtrace # args # $1: IP of master host MASTER_IP=$1 echo "MASTER_IP=$MASTER_IP" >> setup_minion_args.sh # Install CNI pushd ~/ wget https://github.com/containernetworking/cni/releases/download/v0.5.2/cni-amd64-v0.5.2.tgz popd sudo mkdir -p /opt/cni/bin pushd /opt/cni/bin sudo ta...
Update CNI to the latest version.
vagrant: Update CNI to the latest version. Kubernetes 1.6 expects a newer CNI. Also, the --network-plugin-dir does not work with k8s 1.6. Signed-off-by: Gurucharan Shetty <a1872e333d0e52644f6125da2276530f7ebe5e77@ovn.org>
Shell
apache-2.0
shettyg/ovn-kubernetes,shettyg/ovn-kubernetes,shettyg/ovn-kubernetes
shell
## Code Before: XTRACE=$(set +o | grep xtrace) set -o xtrace # args # $1: IP of master host MASTER_IP=$1 echo "MASTER_IP=$MASTER_IP" >> setup_minion_args.sh # Install CNI pushd ~/ wget https://github.com/containernetworking/cni/releases/download/v0.2.0/cni-v0.2.0.tgz popd sudo mkdir -p /opt/cni/bin pushd /opt/cni/b...
31679501c91e6bee2632a9e41b13a4ab0f2ef251
templates/people.json
templates/people.json
{ "name": { "firstName": "first_name", "lastName": "last_name" }, "age": {"attr" : "random_int", "args": [16, 106]}, "email": "free_email", "phone": "phone_number", "street": "street_address", "state": "state", "postcode": "postcode", "tags": ["word", "day_of_week", "word", "word"], "times":...
{ "name": { "firstName": "first_name", "lastName": "last_name" }, "age": {"attr" : "random_int", "args": [16, 106]}, "sex": {"attr" : "random_element", "args": [["M", "F"]]}, "email": "free_email", "phone": "phone_number", "street": "street_address", "state": "state", "postcode": "postcode", ...
Add template example of choosing from a list of predefined values
Add template example of choosing from a list of predefined values
JSON
mit
eiri/echolalia-prototype
json
## Code Before: { "name": { "firstName": "first_name", "lastName": "last_name" }, "age": {"attr" : "random_int", "args": [16, 106]}, "email": "free_email", "phone": "phone_number", "street": "street_address", "state": "state", "postcode": "postcode", "tags": ["word", "day_of_week", "word", "wo...
eae763b58051f765466788041248e2e8cfb35f69
poseidon/config.rb
poseidon/config.rb
if File.exists?('kubernetes-cluster.yaml') && ARGV[0].eql?('up') require 'open-uri' require 'yaml' token = open('https://discovery.etcd.io/new').read data = YAML.load(IO.readlines('kubernetes-cluster.yaml')[1..-1].join) data['coreos']['etcd']['discovery'] = token lines = YAML.dump(data).split("\n") li...
if File.exists?('kubernetes-cluster.yaml') && ARGV[0].eql?('up') require 'open-uri' require 'yaml' token = open('https://discovery.etcd.io/new').read data = YAML.load(IO.readlines('kubernetes-cluster.yaml')[1..-1].join) data['coreos']['etcd']['discovery'] = token lines = YAML.dump(data).split("\n") li...
Make the VMs a little bigger, so users do not have to wait for too long (hopefully)
Make the VMs a little bigger, so users do not have to wait for too long (hopefully)
Ruby
apache-2.0
chourobin/weave-demos,errordeveloper/weave-demos,errordeveloper/weave-demos,errordeveloper/weave-demos,errordeveloper/weave-demos,chourobin/weave-demos,chourobin/weave-demos,chourobin/weave-demos
ruby
## Code Before: if File.exists?('kubernetes-cluster.yaml') && ARGV[0].eql?('up') require 'open-uri' require 'yaml' token = open('https://discovery.etcd.io/new').read data = YAML.load(IO.readlines('kubernetes-cluster.yaml')[1..-1].join) data['coreos']['etcd']['discovery'] = token lines = YAML.dump(data)....
08971b40d2496d1f70e99581252d4d182cf74a48
package.json
package.json
{ "name": "run-bike-and-hike", "version": "1.0.0", "description": "Style for Mapbox Studio", "main": "./package.json", "private": true }
{ "name": "run-bike-and-hike", "version": "1.0.0", "description": "Style for Mapbox Studio", "main": "./package.json" }
Remove private: true flag -- we'll publish to npm
Remove private: true flag -- we'll publish to npm
JSON
bsd-3-clause
mapbox/mapbox-studio-run-bike-and-hike.tm2,mapbox/mapbox-studio-run-bike-and-hike.tm2
json
## Code Before: { "name": "run-bike-and-hike", "version": "1.0.0", "description": "Style for Mapbox Studio", "main": "./package.json", "private": true } ## Instruction: Remove private: true flag -- we'll publish to npm ## Code After: { "name": "run-bike-and-hike", "version": "1.0.0", "...
3fa3271fcebbc3ab6b5ce7226f291c96efc2598c
sh/logout.sh
sh/logout.sh
if [ -d $HOME/.ecryptfs ]; then if $(tmux ls 2>&1 >/dev/null); then rm -f $HOME/.ecryptfs/auto-umount else touch $HOME/.ecryptfs/auto-umount fi fi
if [ -d $HOME/.ecryptfs ]; then if $(tmux ls 2>&1 >/dev/null); then rm -f $HOME/.ecryptfs/auto-umount else touch $HOME/.ecryptfs/auto-umount fi fi # Clear the console on exit if this is not a nested shell session if [ "$SHLVL" = 1 ]; then [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q fi
Clear the console on exit if possible
Clear the console on exit if possible
Shell
unlicense
ralish/dotfiles,ralish/dotfiles,ralish/dotfiles
shell
## Code Before: if [ -d $HOME/.ecryptfs ]; then if $(tmux ls 2>&1 >/dev/null); then rm -f $HOME/.ecryptfs/auto-umount else touch $HOME/.ecryptfs/auto-umount fi fi ## Instruction: Clear the console on exit if possible ## Code After: if [ -d $HOME/.ecryptfs ]; then if $(tmux ls 2>&1 >/dev/null); then rm -f $...
32aca3e1323886c478141cd488e1a5221fbaa04f
client.go
client.go
package twigo func NewClient(account_sid, auth_token, number string) (*Client, error) { c := &Client{AccountSid:account_sid,AuthToken:auth_token,Number:number} err := Validate(*c) if err != nil { return nil,err } return c, nil } func (c *Client) Text(msg_sms *SMS) (interface{}, error) { err := Validate(*...
package twigo func NewClient(account_sid, auth_token, number string) (*Client, error) { c := &Client{AccountSid:account_sid,AuthToken:auth_token,Number:number} err := Validate(*c) if err != nil { return nil,err } return c, nil } func (c *Client) Text(msg_sms *SMS) (*SMSResponse, error) { err := Validate(...
Return *SMSResponse for text and *CALLResponse for call
Return *SMSResponse for text and *CALLResponse for call
Go
mit
fibonacci1729/twigo
go
## Code Before: package twigo func NewClient(account_sid, auth_token, number string) (*Client, error) { c := &Client{AccountSid:account_sid,AuthToken:auth_token,Number:number} err := Validate(*c) if err != nil { return nil,err } return c, nil } func (c *Client) Text(msg_sms *SMS) (interface{}, error) { e...
81964521848a5ef2372b935a193b87e710f11b90
lib/caprese/routing/caprese_resources.rb
lib/caprese/routing/caprese_resources.rb
require 'action_dispatch/routing/mapper' class ActionDispatch::Routing::Mapper def caprese_resources(*resources, &block) options = resources.extract_options! options[:only] ||= %i[index show create update destroy] resources.each do |r| resources r, options do yield if block_given? ...
require 'action_dispatch/routing/mapper' class ActionDispatch::Routing::Mapper def caprese_resources(*resources, &block) options = resources.extract_options! resources.each do |r| resources r, options do yield if block_given? member do get 'relationships/:relationship', ...
Fix unnecessary routing :only option override
Fix unnecessary routing :only option override
Ruby
mit
nicklandgrebe/caprese,nicklandgrebe/caprese,nicklandgrebe/caprese,nicklandgrebe/caprese
ruby
## Code Before: require 'action_dispatch/routing/mapper' class ActionDispatch::Routing::Mapper def caprese_resources(*resources, &block) options = resources.extract_options! options[:only] ||= %i[index show create update destroy] resources.each do |r| resources r, options do yield if bloc...
2305d41a1a23cd8210f208461d34d47645ad4a91
views/index.haml
views/index.haml
%form_tag %input %submit
.hero-unit %h1 Techno Finder %br %p Find public technology resources in Chicago by calling (773) 280-8612. .row .span16 %h2 About %p Chicago has many public sites with technology resources that are free or afforable. %br %p Technology Resources include: %ul %li Computers with Internet...
Create layout for techno finder
Create layout for techno finder
Haml
mit
ryanatwork/techno_finder
haml
## Code Before: %form_tag %input %submit ## Instruction: Create layout for techno finder ## Code After: .hero-unit %h1 Techno Finder %br %p Find public technology resources in Chicago by calling (773) 280-8612. .row .span16 %h2 About %p Chicago has many public sites with technology resources that...
6c78dd08f72652ecc2c0d21e394170fc254fdacb
roles/base/tasks/main.yml
roles/base/tasks/main.yml
- yum: name={{ item }} state=latest with_items: - lshw - lldpd - ipmiutil - ruby - gem - shell: /usr/sbin/lshw > /tmp/it-lshw-report.xml creates=/tmp/it-lshw-report.xml - shell: /usr/sbin/lldpctl > /tmp/it-lldp-report.xml creates=/tmp/it-lldp-report.xml - file: path=/var/db owner=root group...
- get_url: url=http://download.opensuse.org/repositories/home:vbernat/CentOS_CentOS-6/home:vbernat.repo dest=/etc/yum.repos.d/vbernat.repo mode=0644 owner=root group=root - get_url: url=http://ipmiutil.sourceforge.net/FILES/ipmiutil-2.9.3-1_rhel6.x86_64.rpm dest=/tmp/ipmiutil.rpm mode=0644 owner=root group=root - com...
Install vbernat repo for lldp Fetch ipmiutil. No repo available :(
Install vbernat repo for lldp Fetch ipmiutil. No repo available :(
YAML
apache-2.0
funzoneq/OnMyWay,funzoneq/OnMyWay
yaml
## Code Before: - yum: name={{ item }} state=latest with_items: - lshw - lldpd - ipmiutil - ruby - gem - shell: /usr/sbin/lshw > /tmp/it-lshw-report.xml creates=/tmp/it-lshw-report.xml - shell: /usr/sbin/lldpctl > /tmp/it-lldp-report.xml creates=/tmp/it-lldp-report.xml - file: path=/var/db ...
107e4fdc9e1b6841bdd287195e8d602b67735bd8
Planning/package_structure.txt
Planning/package_structure.txt
gamehappy/ __init__.py materials/ __init__.py game_objects.py game_state.py graphics.py sound.py factory.py groups.py resources.py screen.py
gamehappy/ __init__.py materials/ __init__.py game_objects.py game_state.py graphics.py sound.py factory.py groups.py resources.py screen.py state_manager.py
Create module for Game State Manager
Planning: Create module for Game State Manager
Text
unlicense
MarquisLP/gamehappy
text
## Code Before: gamehappy/ __init__.py materials/ __init__.py game_objects.py game_state.py graphics.py sound.py factory.py groups.py resources.py screen.py ## Instruction: Planning: Create module for Game State Manager ## Code After: gamehappy/ __init__.py materials/ __init__.py game_objects.py...
891f49bcf60006b3862a48f01b52130655f015ea
config/webpack.dev.conf.js
config/webpack.dev.conf.js
const webpack = require('webpack'); const merge = require('webpack-merge'); const webpackConfig = require('./webpack.base.conf'); const config = require('./index'); const HtmlWebpackPlugin = require('html-webpack-plugin'); // so that everything is absolute webpackConfig.output.publicPath = `${config.domain}:${config....
const webpack = require('webpack'); const merge = require('webpack-merge'); const webpackConfig = require('./webpack.base.conf'); const config = require('./index'); const HtmlWebpackPlugin = require('html-webpack-plugin'); // so that everything is absolute webpackConfig.output.publicPath = `${config.domain}:${config....
Add sass sourcemaps to dev env
Add sass sourcemaps to dev env
JavaScript
mit
DynamoMTL/shopify-pipeline
javascript
## Code Before: const webpack = require('webpack'); const merge = require('webpack-merge'); const webpackConfig = require('./webpack.base.conf'); const config = require('./index'); const HtmlWebpackPlugin = require('html-webpack-plugin'); // so that everything is absolute webpackConfig.output.publicPath = `${config.d...
a6fd13a5a9d9be33a84c141c6c6807e65fe6760c
scripts/sql/version.5.sql
scripts/sql/version.5.sql
-- Store source for movies ALTER TABLE `movie` ADD `dateSearch` DATETIME NULL DEFAULT NULL, ADD `searchCount` TINYINT UNSIGNED NOT NULL, ADD `identity` TINYINT UNSIGNED NOT NULL, ADD `quality` TINYINT UNSIGNED NOT NULL, ADD `score` TINYINT UNSIGNED NOT NULL, ADD `source` VARCHAR( 1024 ) CHARACTER SET utf8 COLLATE utf8_...
-- Store source for movies ALTER TABLE `movie` ADD `dateSearch` DATETIME NULL DEFAULT NULL, ADD `searchCount` SMALLINT UNSIGNED NOT NULL, ADD `identity` SMALLINT UNSIGNED NOT NULL, ADD `quality` SMALLINT UNSIGNED NOT NULL, ADD `score` SMALLINT UNSIGNED NOT NULL, ADD `source` VARCHAR( 1024 ) CHARACTER SET utf8 COLLATE u...
Use SMALLINT to store high scores
Use SMALLINT to store high scores
SQL
mit
PowerKiKi/mqueue,PowerKiKi/mqueue,PowerKiKi/mqueue,PowerKiKi/mqueue,PowerKiKi/mqueue
sql
## Code Before: -- Store source for movies ALTER TABLE `movie` ADD `dateSearch` DATETIME NULL DEFAULT NULL, ADD `searchCount` TINYINT UNSIGNED NOT NULL, ADD `identity` TINYINT UNSIGNED NOT NULL, ADD `quality` TINYINT UNSIGNED NOT NULL, ADD `score` TINYINT UNSIGNED NOT NULL, ADD `source` VARCHAR( 1024 ) CHARACTER SET ut...
3e25d3b770f52c11a72974103c58b7ab1e99b345
java/zipkin/src/main/resources/application.properties
java/zipkin/src/main/resources/application.properties
spring.application.name=zipkin # Set the port server.port=8080
spring.application.name=zipkin # Set the port server.port=8080 # Enable and configure the credentials for /metrics, but only for that security.user.name=admin security.user.password=secret security.basic.enabled=false management.security.roles=SUPERUSER management.security.enabled=true # Configure Zipkin to use Elas...
ADD Zipkin configs (missing ES hostname and password)
ADD Zipkin configs (missing ES hostname and password)
INI
mit
xeraa/microservice-monitoring,xeraa/microservice-monitoring,xeraa/microservice-monitoring,xeraa/microservice-monitoring
ini
## Code Before: spring.application.name=zipkin # Set the port server.port=8080 ## Instruction: ADD Zipkin configs (missing ES hostname and password) ## Code After: spring.application.name=zipkin # Set the port server.port=8080 # Enable and configure the credentials for /metrics, but only for that security.user.nam...
a6818a5e5eb3c6a7650289d61372310b2e4349a7
src/App.js
src/App.js
import React, { Component } from 'react'; import { Route, Router } from 'react-router'; import ReactGA from 'react-ga'; import createHistory from 'history/createBrowserHistory'; import ScrollToTop from 'shared/components/scrollToTop/scrollToTop'; import Home from './scenes/home/home'; const history = createHistory(); ...
import React, { Component } from 'react'; import { Route, Router } from 'react-router'; import ReactGA from 'react-ga'; import createHistory from 'history/createBrowserHistory'; import ScrollToTop from 'shared/components/scrollToTop/scrollToTop'; import Home from './scenes/home/home'; const history = createHistory(); ...
Send pageview on app load and THEN listen
Send pageview on app load and THEN listen
JavaScript
mit
OperationCode/operationcode_frontend,tskuse/operationcode_frontend,tal87/operationcode_frontend,OperationCode/operationcode_frontend,tskuse/operationcode_frontend,NestorSegura/operationcode_frontend,sethbergman/operationcode_frontend,NestorSegura/operationcode_frontend,hollomancer/operationcode_frontend,NestorSegura/op...
javascript
## Code Before: import React, { Component } from 'react'; import { Route, Router } from 'react-router'; import ReactGA from 'react-ga'; import createHistory from 'history/createBrowserHistory'; import ScrollToTop from 'shared/components/scrollToTop/scrollToTop'; import Home from './scenes/home/home'; const history = c...
9578bcb8d06a691eb600c29b9ce50a7b9f24a52d
roles/python-dev/vars/main.yml
roles/python-dev/vars/main.yml
user_pip_packages: - ipython - black python_versions: - 3.7.2 - 2.7.15 global_python_version: "3.7.2 2.7.15"
user_pip_packages: - ipython - black python_versions: - 3.10.4 global_python_version: "3.10.4"
Install only Python 3.10.4 using pyenv
Install only Python 3.10.4 using pyenv
YAML
mit
renanivo/playbooks
yaml
## Code Before: user_pip_packages: - ipython - black python_versions: - 3.7.2 - 2.7.15 global_python_version: "3.7.2 2.7.15" ## Instruction: Install only Python 3.10.4 using pyenv ## Code After: user_pip_packages: - ipython - black python_versions: - 3.10.4 global_python_version: "3....
568416ae5750297bfaefae0e59cfcbf21d35d09b
spec/unit/axiom/types/object/class_methods/finalize_spec.rb
spec/unit/axiom/types/object/class_methods/finalize_spec.rb
require 'spec_helper' describe Axiom::Types::Object, '.finalize' do subject { object.finalize } let(:object) do Class.new(described_class) do primitive ::String end end it_should_behave_like 'a command method' it_should_behave_like 'an idempotent method' it { should be_frozen } its(:con...
require 'spec_helper' describe Axiom::Types::Object, '.finalize' do subject { object.finalize } let(:object) do # Class.new { ... } does not work with this on 1.8.7 object = Class.new(described_class) object.primitive(::String) object end it_should_behave_like 'a command method' it_should_b...
Fix specs to run under 1.8.7
Fix specs to run under 1.8.7 * For some reason the block passed to Class.new is not being evaluated under 1.8.7, causing the specs to fail.
Ruby
mit
dkubb/axiom-types
ruby
## Code Before: require 'spec_helper' describe Axiom::Types::Object, '.finalize' do subject { object.finalize } let(:object) do Class.new(described_class) do primitive ::String end end it_should_behave_like 'a command method' it_should_behave_like 'an idempotent method' it { should be_froz...
d131b74b0a3b0555e251eda3c490a0b92660c5d3
src/onestepback.org/gotags/tag_test.go
src/onestepback.org/gotags/tag_test.go
package main import ( "testing" "onestepback.org/assert" ) import "strconv" type StringIo struct { data string } func (self *StringIo) WriteString(s string) (int, error) { self.data += s return 0, nil } func TestTag(t *testing.T) { tag := NewTag("file.go") tag.Add("fun", "def fun", Location { 10, 123 }) tag...
package main import ( "testing" "onestepback.org/assert" ) import "strconv" type StringIo struct { data string } func (self *StringIo) WriteString(s string) (int, error) { self.data += s return 0, nil } func TestTag(t *testing.T) { tag := NewTag("file.go") tag.Add("fun", "def fun", Location { 10, 123 }) tag...
Test for empty definitions in tag
Test for empty definitions in tag
Go
mit
jimweirich/gotags,jimweirich/gotags
go
## Code Before: package main import ( "testing" "onestepback.org/assert" ) import "strconv" type StringIo struct { data string } func (self *StringIo) WriteString(s string) (int, error) { self.data += s return 0, nil } func TestTag(t *testing.T) { tag := NewTag("file.go") tag.Add("fun", "def fun", Location {...
f96316eaa85b5f1d8d27fc9b290ada543224e499
client/components/ServerThumbnail.js
client/components/ServerThumbnail.js
import React from 'react'; import { Card, CardHeader, CardTitle, CardMedia } from 'material-ui/Card'; const ServerThumbnail = ({ server, media }) => ( <Card className="thumb"> <CardHeader title={server.name} /> {media && ( <CardMedia overlay={( <CardTitle title={media....
import React from 'react'; import { Card, CardHeader, CardMedia, CardTitle } from 'material-ui/Card'; const ServerThumbnail = ({ server, media }) => ( <Card className="thumb"> <a href={server.url}> <CardHeader title={server.name} subtitle={server.description} /> {media && ( <CardMedia ...
Add server link to thumbnails.
client: Add server link to thumbnails.
JavaScript
mit
u-wave/hub
javascript
## Code Before: import React from 'react'; import { Card, CardHeader, CardTitle, CardMedia } from 'material-ui/Card'; const ServerThumbnail = ({ server, media }) => ( <Card className="thumb"> <CardHeader title={server.name} /> {media && ( <CardMedia overlay={( <CardTitle ...